construct-hub 0.1.182 → 0.1.186

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/.jsii +2 -2
  2. package/lib/backend/orchestration/index.js +26 -3
  3. package/lib/backend/transliterator/transliterator.bundle/index.js +2 -2
  4. package/lib/construct-hub.js +1 -1
  5. package/lib/package-sources/code-artifact.js +1 -1
  6. package/lib/package-sources/npmjs.js +1 -1
  7. package/lib/spdx-license.js +1 -1
  8. package/package.json +6 -6
  9. package/website/asset-manifest.json +34 -15
  10. package/website/index.html +1 -1
  11. package/website/service-worker.js +1 -1
  12. package/website/service-worker.js.map +1 -1
  13. package/website/static/js/0.ff9d42f8.chunk.js +2 -0
  14. package/website/static/js/0.ff9d42f8.chunk.js.map +1 -0
  15. package/website/static/js/1.a7f029fd.chunk.js +2 -0
  16. package/website/static/js/1.a7f029fd.chunk.js.map +1 -0
  17. package/website/static/js/10.32615aa0.chunk.js +2 -0
  18. package/website/static/js/10.32615aa0.chunk.js.map +1 -0
  19. package/website/static/js/11.051d89fc.chunk.js +2 -0
  20. package/website/static/js/11.051d89fc.chunk.js.map +1 -0
  21. package/website/static/js/12.e96b82dd.chunk.js +3 -0
  22. package/website/static/js/{3.fcccb6af.chunk.js.LICENSE.txt → 12.e96b82dd.chunk.js.LICENSE.txt} +0 -0
  23. package/website/static/js/12.e96b82dd.chunk.js.map +1 -0
  24. package/website/static/js/13.fb054c47.chunk.js +2 -0
  25. package/website/static/js/{4.920a8651.chunk.js.map → 13.fb054c47.chunk.js.map} +1 -1
  26. package/website/static/js/4.7cd92fab.chunk.js +3 -0
  27. package/website/static/js/4.7cd92fab.chunk.js.LICENSE.txt +40 -0
  28. package/website/static/js/4.7cd92fab.chunk.js.map +1 -0
  29. package/website/static/js/5.0da0a8ef.chunk.js +3 -0
  30. package/website/static/js/{2.200df80d.chunk.js.LICENSE.txt → 5.0da0a8ef.chunk.js.LICENSE.txt} +0 -41
  31. package/website/static/js/5.0da0a8ef.chunk.js.map +1 -0
  32. package/website/static/js/6.c0e3f99c.chunk.js +2 -0
  33. package/website/static/js/6.c0e3f99c.chunk.js.map +1 -0
  34. package/website/static/js/7.11632168.chunk.js +2 -0
  35. package/website/static/js/7.11632168.chunk.js.map +1 -0
  36. package/website/static/js/8.8af79a83.chunk.js +2 -0
  37. package/website/static/js/8.8af79a83.chunk.js.map +1 -0
  38. package/website/static/js/9.2b21526e.chunk.js +2 -0
  39. package/website/static/js/9.2b21526e.chunk.js.map +1 -0
  40. package/website/static/js/main.f1390607.chunk.js +2 -0
  41. package/website/static/js/main.f1390607.chunk.js.map +1 -0
  42. package/website/static/js/runtime-main.82c3976d.js +2 -0
  43. package/website/static/js/runtime-main.82c3976d.js.map +1 -0
  44. package/website/static/js/2.200df80d.chunk.js +0 -3
  45. package/website/static/js/2.200df80d.chunk.js.map +0 -1
  46. package/website/static/js/3.fcccb6af.chunk.js +0 -3
  47. package/website/static/js/3.fcccb6af.chunk.js.map +0 -1
  48. package/website/static/js/4.920a8651.chunk.js +0 -2
  49. package/website/static/js/main.e4cce0ad.chunk.js +0 -2
  50. package/website/static/js/main.e4cce0ad.chunk.js.map +0 -1
  51. package/website/static/js/runtime-main.a7d2400e.js +0 -2
  52. package/website/static/js/runtime-main.a7d2400e.js.map +0 -1
@@ -1,2 +0,0 @@
1
- (this["webpackJsonpconstruct-hub-webapp"]=this["webpackJsonpconstruct-hub-webapp"]||[]).push([[0],{135:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(5),c=n(494),r=n(1),i=function(e){return Object(r.jsx)(c.a,Object(a.a)({my:10},e))}},140:function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g}));var a=n(5),c=n(4),r=n(515),i=n(0),o="prefersWarnOnExternalLinkClick",s=n(516),l=n(60),u=n(492),d=n(550),b=n(257),j=n(552),h=n(23),f=n(1),p=function(e){var t=e.href,n=e.isOpen,a=e.onClick,r=e.onClose,p=e.setShouldWarn,O=Object(i.useState)(!0),m=Object(c.a)(O,2),g=m[0],x=m[1];return Object(f.jsx)(l.a,{closeOnOverlayClick:!1,isOpen:n,onClose:r,children:Object(f.jsx)(l.h,{children:Object(f.jsxs)(l.d,{color:"blue.800",children:[Object(f.jsx)(l.g,{children:"Confirm"}),Object(f.jsxs)(l.b,{children:[Object(f.jsx)(u.a,{fontSize:"lg",mb:2,children:"This link is taking you to an external site"}),Object(f.jsx)(u.a,{bg:"gray.100",borderRadius:"sm",color:"blue.500",fontSize:"sm",mb:4,p:1,children:t}),Object(f.jsx)(d.a,{onChange:function(e){var t=!e.target.checked;x(t)},children:"Do not show this warning again."})]}),Object(f.jsxs)(l.f,{children:[Object(f.jsx)(b.a,{onClick:function(){x(!0),r()},variant:"ghost",children:"Cancel"}),Object(f.jsx)(j.a,{hasArrow:!0,label:t,placement:"top",children:Object(f.jsx)(h.a,{hasIcon:!1,hasWarning:!1,href:t,noFollow:!0,onClick:function(e){if(!g){p(g);try{localStorage.setItem(o,JSON.stringify(g))}catch(t){}}null===a||void 0===a||a(e),r()},children:Object(f.jsx)(b.a,{colorScheme:"blue",ml:4,rightIcon:Object(f.jsx)(s.a,{}),tabIndex:0,variant:"ghost",children:"Proceed"})})})]})]})})})},O=Object(i.createContext)((function(e){return e.onClick})),m=function(){return Object(i.useContext)(O)},g=function(e){var t=e.children,n=Object(i.useState)(null),s=Object(c.a)(n,2),l=s[0],u=s[1],d=Object(r.a)({onClose:function(){u(null)}}),b=d.isOpen,j=d.onOpen,h=d.onClose,m=Object(i.useState)((function(){try{var e,t=null!==(e=localStorage.getItem(o))&&void 0!==e?e:"true";return JSON.parse(t)}catch(n){return!0}})),g=Object(c.a)(m,2),x=g[0],v=g[1],y=Object(i.useCallback)((function(e){var t=e.href,n=e.onClick;if(!x)return n;return function(e){u({href:t,onClick:n}),e.preventDefault(),j()}}),[j,x]);return Object(f.jsxs)(O.Provider,{value:y,children:[t,Object(f.jsx)(p,Object(a.a)({isOpen:b,onClose:h,setShouldWarn:v},l))]})}},142:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var a=n(173),c=n(1),r=function(e){var t=e.children;return Object(c.jsx)(a.c,{children:t})},i=function(e){var t=e.children;return Object(c.jsx)(a.b,{children:t})},o=function(e){var t=e.children;return Object(c.jsx)(a.a,{lineHeight:"tall",mb:2,sx:{"em:first-of-type":{mr:2,fontStyle:"italic",fontSize:"small"},"&::marker":{color:"blue.500"},code:{fontSize:"small"}},children:t})}},184:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return T}));var a,c=n(4),r=n(96),i=n(141),o=n.n(i),s=n(245),l=n.n(s),u=n(246),d=n.n(u),b=n(256),j=n(248),h=n.n(j),f=n(255),p=n(87),O=n(135),m=n(251),g=n(142),x=n(72),v=n(86),y=n(1),w={a:v.a,blockquote:v.b,caption:x.b,code:f.a,em:v.c,h1:p.a,h2:p.a,h3:p.a,h4:p.a,h5:p.a,h6:p.a,hr:O.a,img:m.a,li:g.a,ol:g.b,p:v.d,pre:v.e,sup:v.f,table:x.a,tbody:x.c,td:x.d,tfoot:x.e,th:x.f,thead:x.g,tr:x.h,ul:g.c},k=n(223);k.attributes.span=(null!==(a=k.attributes.span)&&void 0!==a?a:[]).concat(["dataHeadingTitle","dataHeadingId"]);var C=[[l.a],[d.a,k]],S=[h.a,b.a],I=/^(?:(?:git@)?github\.com:|(?:https?:\/\/)github\.com\/)([^/]+)\/([^/]+)(?:\.git)?$/,T=function(t){var n=t.children,a=function(e){var t=e.type,n=e.url;if("git"===t){var a=I.exec(n);if(null!=a){var r=Object(c.a)(a,3);return{owner:r[1],repo:r[2]}}}}(t.repository),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HEAD";return null==a?o.a.uriTransformer:function(n){var r=o.a.uriTransformer(n),i=Object(c.a)(r,1)[0];if("#"===i||"/"===i)return r;if(r.includes("://"))return r;var s=a.owner,l=a.repo.replace(/\.git$/,"");return"https://".concat(e,"/").concat(s,"/").concat(l,"/").concat(t,"/").concat(r)}};return e.byteLength(n)>1048576&&(n=[n=n.substring(0,n.lastIndexOf("# API Reference")),"# API Reference","The API Reference for this package could not be rendered.","If this issue persists, please let us know by creating an [issue](https://github.com/cdklabs/construct-hub-webapp/issues/new)"].join("\n")),Object(y.jsx)(r.a,{px:8,sx:{"& > *":{mb:8},"& > p":{lineHeight:"taller"}},children:Object(y.jsx)(o.a,{components:w,rehypePlugins:C,remarkPlugins:S,transformImageUri:i("raw.githubusercontent.com"),transformLinkUri:i("github.com","blob/HEAD"),children:n})})}}).call(this,n(281).Buffer)},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(5),c=n(20),r=n(516),i=n(12),o=n(259),s=n(140),l=n(1),u=["children","hasIcon","hasWarning","href","onClick","noFollow"],d=Object(i.a)((function(e,t){var n=e.children,i=e.hasIcon,d=void 0===i||i,b=e.hasWarning,j=void 0===b||b,h=e.href,f=e.onClick,p=e.noFollow,O=Object(c.a)(e,u),m=Object(s.b)(),g="noopener noreferrer";return(j||p)&&(g+=" nofollow"),Object(l.jsxs)(o.a,Object(a.a)(Object(a.a)({color:"blue.500",href:h,isExternal:!0,onClick:j?m({href:h,onClick:f}):f,ref:t,rel:g},O),{},{children:[n," ",d&&Object(l.jsx)(r.a,{mb:1,ml:2})]}))}));d.displayName="ExternalLink"},251:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(5),c=n(498),r=n(1),i=function(e){return Object(r.jsx)(c.a,Object(a.a)({display:"inline-block"},e))}},255:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var a=n(540),c=n(0),r=n(5),i=n(96),o=n(171),s=n(249),l=n(521),u=n(20),d=n(538),b=n(539),j=n(12),h=n(536),f=n(519),p=n(1),O=["value"],m=Object(j.a)((function(e,t){var n=e.value,a=Object(u.a)(e,O),c=Object(h.a)(n),i=c.hasCopied,o=c.onCopy;return Object(p.jsx)(f.a,Object(r.a)({"aria-label":"Copy Button",h:6,icon:i?Object(p.jsx)(d.a,{color:"green.300"}):Object(p.jsx)(b.a,{}),minW:"auto",onClick:o,ref:t,variant:"ghost",w:6},a))}));m.displayName="CopyButton";var g=function(e){var t=e.code,n=e.tokens,a=e.getLineProps,c=e.getTokenProps;return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(l.a,{align:"center",bg:"rgba(0, 124, 253, 0.15)",justify:"flex-end",px:2,py:1,children:Object(p.jsx)(m,{_hover:{bg:"gray.300"},color:"gray.500",value:t})}),Object(p.jsx)(i.a,{maxW:"100%",overflowX:"auto",p:2,children:Object(p.jsx)(i.a,{w:"max-content",children:n.map((function(e,t){return Object(p.jsx)("div",Object(r.a)(Object(r.a)({},a({line:e,key:t})),{},{children:e.map((function(e,t){return Object(p.jsx)("span",Object(r.a)({},c({token:e,key:t})),t)}))}),t)}))})})]})},x=function(e){var t=e.code,n=e.tokens,a=e.getLineProps,c=e.getTokenProps;return Object(p.jsxs)(l.a,{align:"center",justify:"space-between",p:2,children:[n.map((function(e,t){return Object(p.jsx)("div",Object(r.a)(Object(r.a)({},a({line:e,key:t})),{},{children:e.map((function(e,t){return Object(p.jsx)("span",Object(r.a)({},c({token:e,key:t})),t)}))}),t)})),Object(p.jsx)(i.a,{children:Object(p.jsx)(m,{color:"blue.500",colorScheme:"blue",ml:4,value:t})})]})},v=function(e){var t=e.code,n=e.language;return Object(p.jsx)(o.a,Object(r.a)(Object(r.a)({},o.b),{},{code:t,language:n,theme:s.a,children:function(e){return Object(p.jsx)(i.a,{as:"pre",border:"base",borderRadius:"md",boxShadow:"base",className:e.className,maxW:"100%",overflow:"hidden",style:e.style,w:"min-content",children:e.tokens.length>1?Object(p.jsx)(g,Object(r.a)(Object(r.a)({},e),{},{code:t})):Object(p.jsx)(x,Object(r.a)(Object(r.a)({},e),{},{code:t}))})}}))},y=function(e){var t=e.inline,n=e.children,r=e.language,i=void 0===r?"typescript":r;if(t)return Object(p.jsx)(a.a,{bg:"gray.100",border:"1px solid",borderColor:"gray.100",borderRadius:"md",color:"blue.500",px:2,py:0,children:n});var o=c.Children.toArray(n).reduce((function(e,t){return"string"===typeof t?"".concat(e).concat(t):e}),"").trim();return Object(p.jsx)(v,{code:o,language:i})}},273:function(e,t,n){},489:function(e,t,n){"use strict";n.r(t);var a={};n.r(a),n.d(a,"initialize",(function(){return F})),n.d(a,"access",(function(){return K})),n.d(a,"checkForCookieConsent",(function(){return N})),n.d(a,"customizeCookies",(function(){return B})),n.d(a,"getConsentCookie",(function(){return U})),n.d(a,"hasConsent",(function(){return G}));var c=n(0),r=n.n(c),i=n(110),o=n.n(i),s=n(15),l=(n(273),n(241)),u=n(26),d=n(518),b=n(520),j=n(515),h=n(96),f=n(517),p=n(492),O=n(519),m=n(5),g=n(12),x=n(1),v=Object(g.a)((function(e,t){return Object(x.jsx)(h.a,Object(m.a)({bg:"white",border:"base",borderRadius:"card",boxShadow:"base",p:2,ref:t},e))}));v.displayName="Card";var y,w,k,C,S=n(23),I="showing-dev-preview-banner",T=function(){var e,t=Object(j.a)({defaultIsOpen:JSON.parse(null!==(e=window.sessionStorage.getItem(I))&&void 0!==e?e:"true"),onClose:function(){return window.sessionStorage.setItem(I,"false")}}),n=t.isOpen,a=t.onClose;return Object(x.jsx)(h.a,{h:"max-content",children:Object(x.jsx)(f.a,{in:n,children:Object(x.jsxs)(v,{"aria-label":"Preview Banner",bg:"blue.500",border:"none",boxShadow:"none",color:"white",mt:4,mx:4,p:4,position:"relative",role:"alertdialog",children:[Object(x.jsx)(d.a,{h:5,left:4,position:"absolute",top:4,w:5}),Object(x.jsxs)(p.a,{fontSize:"md",mx:8,textAlign:"center",children:["This application is in Dev Preview. Some features may change. If you find any issues, please report them"," ",Object(x.jsx)(S.a,{color:"inherit",hasWarning:!1,href:"https://github.com/cdklabs/construct-hub-webapp/issues",textDecoration:"underline",children:"here"})]}),Object(x.jsx)(O.a,{"aria-label":"Dismiss banner",colorScheme:"white",icon:Object(x.jsx)(b.a,{}),onClick:a,position:"absolute",right:4,size:"xs",top:3,variant:"ghost"})]})})})},A=n(4),W=n(521),P=n(522),H=n(494),D=n(257),z=n(20),E=n(24),L=n.n(E),R=n(37),M=function(){new URLSearchParams(window.location.search).get("sb")},F=function(){var e=Object(R.a)(L.a.mark((function e(){return L.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,t){window.addEventListener("load",Object(R.a)(L.a.mark((function a(){var c,r,i;return L.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,c={domain:window.location.hostname,language:navigator.language,__storeWriter:M()},a.next=4,n.e(3).then(n.t.bind(null,559,7));case 4:r=a.sent,i=r.AWSCShortbread,y=i(c),e(),a.next=13;break;case 10:a.prev=10,a.t0=a.catch(0),t(a.t0);case 13:case"end":return a.stop()}}),a,null,[[0,10]])}))))})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(e){return function(){var t;if(!y)throw new Error("shortbread has not been initialized");return(t=y)[e].apply(t,arguments)}},K=q("access"),N=q("checkForCookieConsent"),B=q("customizeCookies"),U=q("getConsentCookie"),G=q("hasConsent"),V=F,J=Object(z.a)(a,["initialize"]),_=Object(c.createContext)({}),Q=function(e){var t=e.children,n=Object(c.useState)(!1),a=Object(A.a)(n,2),r=a[0],i=a[1];return Object(c.useEffect)((function(){var e=!1;return V().then((function(){e||(J.checkForCookieConsent(),i(!0))})).catch((function(t){console.error(t),e||i(!1)})),function(){e=!0,i(!1)}}),[]),Object(x.jsx)(_.Provider,{value:r?J:{},children:t})},Y=n(49),X="/data",Z="/catalog.json",$="/assembly.json",ee="/metadata.json",te="/config.json",ne="lang",ae="offset",ce="q",re="submodule",ie={FAQ:"/faq",HOME:"/",PACKAGES:"/packages",SEARCH:"/search",SITE_TERMS:"/terms"},oe={SERVICE_TERMS:{display:"AWS Service Terms",url:"https://aws.amazon.com/service-terms/",testId:"service-terms"},PRIVACY:{display:"Privacy",url:"https://aws.amazon.com/privacy/",testId:"privacy"},SITE_TERMS:{display:"Site Terms",url:ie.SITE_TERMS,testId:"site-terms",isExternal:!1},LEGAL:{display:"Legal",url:"https://aws.amazon.com/legal/",testId:"legal"}},se=n(17),le=function(e,t){return t.reduce((function(t,n){return t[n]="".concat(e,"-").concat(n),t}),{})},ue=le("footer",["container","links","disclaimer","manageCookies"].concat(Object(se.a)(Object.values(oe).map((function(e){return e.testId}))))),de=function(){var e=Object(c.useContext)(_).customizeCookies;return Object(x.jsxs)(W.a,{align:"center",as:"footer",bg:"blue.800",color:"white","data-testid":ue.container,direction:"column",justify:"center",py:4,children:[Object(x.jsx)(P.a,{columnGap:6,columns:[1,2,4],"data-testid":ue.links,children:Object.entries(oe).map((function(e,t){var n=Object(A.a)(e,2),a=n[0],c=n[1],r=c.display,i=c.isExternal,o=void 0===i||i,s=c.testId,l=c.url;return Object(x.jsxs)(W.a,{align:"center",direction:{base:"column",md:"row"},children:[Object(x.jsx)(h.a,{display:{base:"none",md:0!==t?"initial":"none"},h:5,children:Object(x.jsx)(H.a,{borderColor:"white",mr:6,orientation:"vertical"})}),o?Object(x.jsx)(S.a,{color:"currentcolor","data-testid":ue[s],hasWarning:!1,href:l,lineHeight:10,mx:"auto",children:r}):Object(x.jsx)(Y.a,{color:"currentcolor","data-testid":ue[s],lineHeight:10,mx:"auto",to:l,children:r}),Object(x.jsx)(h.a,{display:{base:"none",sm:t<2?"initial":"none",md:"none"},w:"100%",children:Object(x.jsx)(H.a,{borderColor:"white"})})]},a)}))}),Object(x.jsx)(p.a,{"data-testid":ue.disclaimer,fontSize:"xs",mt:4,children:"2021 Amazon Web Services, Inc. All rights reserved."}),Object(x.jsx)(D.a,{color:"white","data-testid":ue.manageCookies,fontSize:"xs",fontWeight:"normal",mt:4,onClick:e,variant:"link",children:"Manage Cookies"})]})},be=[{display:"FAQ",isNavLink:!0,url:"/faq"},{display:"Construct Hub on GitHub",url:"https://github.com/cdklabs/construct-hub"},{display:"Issues on GitHub",url:"https://github.com/cdklabs/construct-hub/issues"}],je=[{display:"AWS CDK",links:[{display:"Home",url:"https://aws.amazon.com/cdk/"},{display:"Getting Started",url:"https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html"},{display:"Workshop",url:"https://cdkworkshop.com/"},{display:"Best Practices",url:"https://aws.amazon.com/blogs/devops/best-practices-for-developing-cloud-applications-with-aws-cdk"}]},{display:"CDK for Terraform",links:[{display:"Getting Started",url:"https://learn.hashicorp.com/tutorials/terraform/cdktf"},{display:"Tutorials",url:"https://learn.hashicorp.com/collections/terraform/cdktf"}]},{display:"CDK for Kubernetes",links:[{display:"Home",url:"https://cdk8s.io"},{display:"Getting Started",url:"https://cdk8s.io/docs/latest/getting-started"},{display:"Documentation",url:"https://cdk8s.io/docs/latest"},{display:"API Reference",url:"https://cdk8s.io/docs/latest/reference/index.html"}]},{display:"Community",links:[{display:"Slack",url:"https://join.slack.com/t/cdk-dev/shared_invite/zt-mso6p56d-qJp7SOTBvMaQuDrx7R2wHg"},{display:"Community Hub",url:"https://cdk.dev"}]}],he=n(548),fe=["children"],pe=function(e){var t=e.children,n=Object(z.a)(e,fe);return Object(x.jsx)(he.a,Object(m.a)(Object(m.a)({colorScheme:"blue.800",strategy:"fixed"},n),{},{children:t}))},Oe=["items"],me=function(e){var t=e.display,n=e.isNavLink,a=e.url;return n?Object(x.jsx)(Y.a,{color:"blue.500",to:a,children:t}):Object(x.jsx)(S.a,{alignItems:"center",display:"flex",hasWarning:!1,href:a,justifyContent:"space-between",w:"100%",children:t})},ge=Object(g.a)((function(e,t){var n=e.items,a=Object(z.a)(e,Oe);return Object(x.jsx)(he.f,Object(m.a)(Object(m.a)({},a),{},{ref:t,children:n.map((function(e,t){return"links"in e?Object(x.jsxs)(c.Fragment,{children:[Object(x.jsx)(he.d,{align:"left",title:e.display,children:e.links.map((function(e,t){return Object(x.jsx)(he.e,{children:Object(x.jsx)(me,Object(m.a)({},e))},"".concat(e.display,"-").concat(t))}))}),t!==n.length-1&&Object(x.jsx)(he.c,{})]},"".concat(e.display,"-").concat(t)):Object(x.jsx)(he.e,{children:Object(x.jsx)(me,Object(m.a)({},e))},"".concat(e.display,"-").concat(t))}))}))})),xe=n(525),ve=["children"],ye=Object(g.a)((function(e,t){var n=e.children,a=Object(z.a)(e,ve);return Object(x.jsx)(he.b,Object(m.a)(Object(m.a)({as:D.a,color:"blue.800",fontWeight:"500",ref:t,rightIcon:Object(x.jsx)(xe.a,{h:6,w:6}),size:"md",variant:"link"},a),{},{children:n}))})),we=le("header",["container","title","gettingStartedTrigger","gettingStartedMenu","resourcesTrigger","resourcesMenu","navOpen","navClose","searchButton","searchIcon","mobileNav"]),ke=function(){return Object(x.jsxs)(pe,{children:[Object(x.jsx)(ye,{"data-testid":we.gettingStartedTrigger,children:"Getting Started"}),Object(x.jsx)(ge,{"data-testid":we.gettingStartedMenu,items:be})]})},Ce=n(527),Se=n(555),Ie=n(556),Te=n(60),Ae=n(557),We=function(){return Object(x.jsxs)(pe,{children:[Object(x.jsx)(ye,{"data-testid":we.resourcesTrigger,children:"Resources"}),Object(x.jsx)(ge,{"data-testid":we.resourcesMenu,items:je})]})},Pe=n(526),He=function(){return Object(x.jsx)(Pe.a,{as:"h1",color:"blue.800","data-testid":we.title,size:"lg",children:Object(x.jsxs)(s.b,{to:"/",children:[Object(x.jsx)(h.a,{as:"span",color:"blue.500",children:"Construct"})," ","Hub"]})})},De=function(e){var t=e.isOpen,n=e.onClose;return Object(x.jsx)(Se.a,{children:Object(x.jsxs)(Ie.a,{isOpen:t,onClose:n,placement:"left",size:"xs",children:[Object(x.jsx)(Te.h,{}),Object(x.jsxs)(Ie.b,{"data-testid":we.mobileNav,children:[Object(x.jsx)(Te.c,{}),Object(x.jsx)(Te.g,{display:"flex",justifyContent:"center",children:Object(x.jsx)(He,{})}),Object(x.jsx)(Te.b,{children:Object(x.jsxs)(Ae.a,{align:"start",justify:"start",spacing:4,children:[Object(x.jsx)(ke,{}),Object(x.jsx)(We,{})]})})]})]})})},ze=function(){var e=Object(j.a)();return Object(x.jsxs)(x.Fragment,{children:[Object(x.jsx)(O.a,{"aria-label":"Navigation Menu",borderRadius:"md","data-testid":we.navOpen,display:{md:"none"},icon:Object(x.jsx)(Ce.a,{}),onClick:e.onOpen,variant:"ghost"}),Object(x.jsx)(De,Object(m.a)({},e))]})},Ee=n(528),Le=n(173),Re=n(6),Me=n(85);!function(e){e.DotNet="dotnet",e.TypeScript="typescript",e.Python="python",e.Go="golang",e.Java="java"}(C||(C={}));var Fe=[C.TypeScript,C.Python,C.Java,C.Go,C.DotNet],qe=(w={},Object(Re.a)(w,C.TypeScript,"TypeScript"),Object(Re.a)(w,C.Python,"Python"),Object(Re.a)(w,C.Java,"Java"),Object(Re.a)(w,C.Go,"Go"),Object(Re.a)(w,C.DotNet,".NET"),w),Ke=new Set([C.Python,C.TypeScript]),Ne=(k={},Object(Re.a)(k,C.TypeScript,{name:qe.typescript,icon:function(e){return Object(x.jsxs)(Me.a,Object(m.a)(Object(m.a)({},e),{},{"aria-hidden":"true",transform:"rotate(360)",viewBox:"0 0 256 256",children:[Object(x.jsx)("path",{d:"M0 128v128h256V0H0z",fill:"#007ACC"}),Object(x.jsx)("path",{d:"M56.611 128.85l-.081 10.483h33.32v94.68h23.57v-94.68h33.32v-10.28c0-5.69-.122-10.444-.284-10.566-.122-.162-20.399-.244-44.983-.203l-44.739.122-.122 10.443zM206.567 118.108c6.501 1.626 11.459 4.51 16.01 9.224 2.357 2.52 5.851 7.112 6.136 8.209.08.325-11.053 7.802-17.798 11.987-.244.163-1.22-.894-2.317-2.52-3.291-4.794-6.745-6.867-12.028-7.232-7.76-.529-12.759 3.535-12.718 10.32 0 1.992.284 3.17 1.097 4.796 1.707 3.535 4.876 5.648 14.832 9.955 18.326 7.884 26.168 13.085 31.045 20.48 5.445 8.25 6.664 21.415 2.966 31.208-4.063 10.646-14.14 17.88-28.323 20.277-4.388.772-14.79.65-19.504-.203-10.28-1.829-20.033-6.908-26.047-13.572-2.357-2.601-6.949-9.387-6.664-9.875.122-.162 1.178-.812 2.356-1.503 1.138-.65 5.446-3.13 9.509-5.486l7.355-4.267 1.544 2.276c2.154 3.291 6.867 7.802 9.712 9.305 8.167 4.308 19.383 3.698 24.909-1.26 2.357-2.153 3.332-4.388 3.332-7.68 0-2.966-.366-4.266-1.91-6.5-1.99-2.845-6.054-5.243-17.595-10.24-13.206-5.69-18.895-9.225-24.096-14.833-3.007-3.25-5.852-8.452-7.03-12.8-.975-3.616-1.22-12.678-.447-16.335 2.723-12.76 12.353-21.658 26.25-24.3 4.51-.853 14.994-.528 19.424.57z",fill:"#FFF"})]}))}}),Object(Re.a)(k,C.Python,{name:qe.python,icon:function(e){return Object(x.jsxs)(Me.a,Object(m.a)(Object(m.a)({},e),{},{version:"1.0",viewBox:"0 0 110.421 109.846",children:[Object(x.jsxs)("defs",{children:[Object(x.jsxs)("linearGradient",{id:"a",children:[Object(x.jsx)("stop",{offset:"0",stopColor:"#ffe052"}),Object(x.jsx)("stop",{offset:"1",stopColor:"#ffc331"})]}),Object(x.jsx)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"d",x1:"89.137",x2:"147.777",xlinkHref:"#a",y1:"111.921",y2:"168.101"}),Object(x.jsxs)("linearGradient",{id:"b",children:[Object(x.jsx)("stop",{offset:"0",stopColor:"#387eb8"}),Object(x.jsx)("stop",{offset:"1",stopColor:"#366994"})]}),Object(x.jsx)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"c",x1:"55.549",x2:"110.149",xlinkHref:"#b",y1:"77.07",y2:"131.853"})]}),Object(x.jsxs)("g",{color:"#000",children:[Object(x.jsx)("path",{d:"M99.75 67.469c-28.032 0-26.281 12.156-26.281 12.156l.031 12.594h26.75V96H62.875s-17.938-2.034-17.938 26.25 15.657 27.281 15.657 27.281h9.343v-13.125s-.503-15.656 15.407-15.656h26.531s14.906.241 14.906-14.406V82.125s2.263-14.656-27.031-14.656zM85 75.938a4.808 4.808 0 014.813 4.812A4.808 4.808 0 0185 85.563a4.808 4.808 0 01-4.813-4.813A4.808 4.808 0 0185 75.937z",fill:"url(#c)",overflow:"visible",style:{marker:"none"},transform:"translate(-44.938 -67.469)"}),Object(x.jsx)("path",{d:"M100.546 177.315c28.032 0 26.281-12.156 26.281-12.156l-.03-12.594h-26.75v-3.781h37.374s17.938 2.034 17.938-26.25c0-28.285-15.657-27.282-15.657-27.282h-9.343v13.125s.503 15.657-15.407 15.657h-26.53s-14.907-.241-14.907 14.406v24.219s-2.263 14.656 27.031 14.656zm14.75-8.469a4.808 4.808 0 01-4.812-4.812 4.808 4.808 0 014.812-4.813 4.808 4.808 0 014.813 4.813 4.808 4.808 0 01-4.813 4.812z",fill:"url(#d)",overflow:"visible",style:{marker:"none"},transform:"translate(-44.938 -67.469)"})]})]}))}}),Object(Re.a)(k,C.Java,{name:qe.java,icon:function(e){return Object(x.jsxs)(Me.a,Object(m.a)(Object(m.a)({},e),{},{"aria-hidden":"true",transform:"rotate(360)",viewBox:"0 0 256 346",children:[Object(x.jsx)("path",{d:"M82.554 267.473s-13.198 7.675 9.393 10.272c27.369 3.122 41.356 2.675 71.517-3.034 0 0 7.93 4.972 19.003 9.279-67.611 28.977-153.019-1.679-99.913-16.517M74.292 229.659s-14.803 10.958 7.805 13.296c29.236 3.016 52.324 3.263 92.276-4.43 0 0 5.526 5.602 14.215 8.666-81.747 23.904-172.798 1.885-114.296-17.532",fill:"#5382A1"}),Object(x.jsx)("path",{d:"M143.942 165.515c16.66 19.18-4.377 36.44-4.377 36.44s42.301-21.837 22.874-49.183c-18.144-25.5-32.059-38.172 43.268-81.858 0 0-118.238 29.53-61.765 94.6",fill:"#E76F00"}),Object(x.jsx)("path",{d:"M233.364 295.442s9.767 8.047-10.757 14.273c-39.026 11.823-162.432 15.393-196.714.471-12.323-5.36 10.787-12.8 18.056-14.362 7.581-1.644 11.914-1.337 11.914-1.337-13.705-9.655-88.583 18.957-38.034 27.15 137.853 22.356 251.292-10.066 215.535-26.195M88.9 190.48s-62.771 14.91-22.228 20.323c17.118 2.292 51.243 1.774 83.03-.89 25.978-2.19 52.063-6.85 52.063-6.85s-9.16 3.923-15.787 8.448c-63.744 16.765-186.886 8.966-151.435-8.183 29.981-14.492 54.358-12.848 54.358-12.848M201.506 253.422c64.8-33.672 34.839-66.03 13.927-61.67-5.126 1.066-7.411 1.99-7.411 1.99s1.903-2.98 5.537-4.27c41.37-14.545 73.187 42.897-13.355 65.647 0 .001 1.003-.895 1.302-1.697",fill:"#5382A1"}),Object(x.jsx)("path",{d:"M162.439.371s35.887 35.9-34.037 91.101c-56.071 44.282-12.786 69.53-.023 98.377-32.73-29.53-56.75-55.526-40.635-79.72C111.395 74.612 176.918 57.393 162.439.37",fill:"#E76F00"}),Object(x.jsx)("path",{d:"M95.268 344.665c62.199 3.982 157.712-2.209 159.974-31.64 0 0-4.348 11.158-51.404 20.018-53.088 9.99-118.564 8.824-157.399 2.421.001 0 7.95 6.58 48.83 9.201",fill:"#5382A1"})]}))}}),Object(Re.a)(k,C.Go,{name:qe.golang,icon:function(e){return Object(x.jsx)(Me.a,Object(m.a)(Object(m.a)({},e),{},{"aria-hidden":"true",transform:"rotate(360)",viewBox:"0 0 512 192",children:Object(x.jsx)("path",{d:"M292.533 13.295l1.124.75c13.212 8.725 22.685 20.691 28.917 35.15 1.496 2.243.499 3.49-2.493 4.237l-5.063 1.296c-11.447 2.949-20.53 5.429-31.827 8.378l-6.443 1.678c-2.32.574-2.96.333-5.428-2.477l-.348-.399c-3.519-3.988-6.155-6.652-10.817-9.03l-.899-.443c-15.705-7.727-30.911-5.484-45.12 3.74-16.952 10.968-25.677 27.172-25.428 47.364.25 19.942 13.96 36.395 33.654 39.137 16.951 2.244 31.16-3.739 42.378-16.452 2.244-2.743 4.238-5.734 6.73-9.224h-48.11c-5.235 0-6.481-3.24-4.736-7.478l.864-2.035c3.204-7.454 8.173-18.168 11.4-24.294l.704-1.319c.862-1.494 2.612-3.513 5.977-3.513h80.224c3.603-11.415 9.449-22.201 17.246-32.407 18.198-23.931 40.135-36.396 69.8-41.63 25.427-4.488 49.359-1.995 71.046 12.713 19.694 13.461 31.909 31.66 35.15 55.59 4.237 33.654-5.485 61.075-28.668 84.508-16.453 16.702-36.645 27.172-59.829 31.908-6.73 1.247-13.461 1.496-19.942 2.244-22.685-.499-43.376-6.98-60.826-21.937-12.273-10.61-20.727-23.648-24.928-38.828a104.937 104.937 0 01-10.47 16.89c-17.949 23.683-41.381 38.39-71.046 42.38-24.43 3.24-47.115-1.497-67.058-16.454-18.447-13.96-28.917-32.407-31.66-55.34-3.24-27.173 4.737-51.603 21.19-73.041 17.7-23.184 41.132-37.891 69.8-43.126 22.999-4.16 45.037-1.595 64.936 11.464zM411.12 49.017l-.798.178c-23.183 5.235-38.14 19.942-43.624 43.375-4.488 19.444 4.985 39.138 22.934 47.115 13.71 5.983 27.421 5.235 40.633-1.496 19.694-10.22 30.413-26.175 31.66-47.613-.25-3.24-.25-5.734-.749-8.227-4.436-24.401-26.664-38.324-50.056-33.332zM116.416 94.564c.997 0 1.496.748 1.496 1.745l-.499 5.983c0 .997-.997 1.745-1.745 1.745l-54.344-.249c-.997 0-1.246-.748-.748-1.496l3.49-6.232c.499-.748 1.496-1.496 2.493-1.496h49.857zM121.9 71.63c.997 0 1.496.748 1.247 1.496l-1.995 5.983c-.249.997-1.246 1.495-2.243 1.495l-117.912.25c-.997 0-1.246-.499-.748-1.247l5.235-6.73c.499-.748 1.745-1.247 2.742-1.247H121.9zm12.963-22.934c.997 0 1.246.748.748 1.496l-4.238 6.481c-.499.748-1.745 1.496-2.493 1.496l-90.24-.25c-.998 0-1.247-.498-.749-1.246l5.235-6.73c.499-.748 1.745-1.247 2.742-1.247h88.995z",fill:"#00ACD7"})}))}}),Object(Re.a)(k,C.DotNet,{name:qe.dotnet,icon:function(e){return Object(x.jsx)(Me.a,Object(m.a)(Object(m.a)({},e),{},{"aria-hidden":"true",transform:"rotate(360)",viewBox:"0 0 32 32",children:Object(x.jsx)("path",{d:"M4.224 10.089v11.667h1.365v-8.438a12.58 12.58 0 00-.068-1.599h.052c.099.255.224.5.37.729l6 9.302h1.672V10.089h-1.359v8.203c-.016.573.016 1.146.083 1.714h-.031a13.986 13.986 0 00-.474-.781L5.995 10.09zm12.417 0v11.667h6.203l.005-1.281h-4.813v-4.047h4.214v-1.229h-4.214v-3.875h4.521V10.09zm7.25 0v1.234h3.354v10.432h1.365V11.323h3.391v-1.234zm-23.021 10a.86.86 0 00-.609.276.91.91 0 00-.26.641.901.901 0 001.542.641c.172-.167.271-.401.271-.641s-.099-.474-.271-.641a.876.876 0 00-.641-.276H.871z",fill:"#626262"})}))}}),k),Be=function(){var e=Object(R.a)(L.a.mark((function e(){var t;return L.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(Z);case 2:if((t=e.sent).ok){e.next=6;break}throw console.error(t.statusText),new Error("Failed fetching packages index: ".concat(t.statusText));case 6:return e.abrupt("return",t.json());case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initialValue,a=t.onSuccess,r=t.onError,i=Object(c.useState)(!1),o=Object(A.a)(i,2),s=o[0],l=o[1],u=Object(c.useState)(n),d=Object(A.a)(u,2),b=d[0],j=d[1],h=Object(c.useState)(),f=Object(A.a)(h,2),p=f[0],O=f[1],m=Object(c.useRef)(!1);Object(c.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var g=Object(c.useCallback)(Object(R.a)(L.a.mark((function t(){var c,i=arguments;return L.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m.current){t.next=2;break}return t.abrupt("return");case 2:return l(!0),O(void 0),t.prev=4,t.next=7,e.apply(void 0,i);case 7:c=t.sent,null===a||void 0===a||a(c),m.current&&(j(c),l(!1)),t.next=17;break;case 12:t.prev=12,t.t0=t.catch(4),console.error(t.t0),null===r||void 0===r||r(t.t0),m.current&&(j(n),O(t.t0),l(!1));case 17:case"end":return t.stop()}}),t,null,[[4,12]])}))),[r,a]);return Object(c.useMemo)((function(){return[g,{data:b,loading:s,error:p}]}),[g,b,s,p])},Ge=Object(c.createContext)({loading:!1,data:void 0,error:void 0}),Ve=function(){return Object(c.useContext)(Ge)},Je=function(e){var t=e.children,n=Ue(Be),a=Object(A.a)(n,2),r=a[0],i=a[1];return Object(c.useEffect)((function(){r()}),[r]),Object(x.jsx)(Ge.Provider,{value:i,children:t})},_e=function(e){var t=e.limit,n=e.offset,a=void 0===n?0:n,r=e.query,i=void 0===r?"":r,o=e.language,s=void 0===o?null:o,l=Ve(),u=l.data,d=l.loading,b=l.error,j=Object(c.useMemo)((function(){if(d||b||!(null===u||void 0===u?void 0:u.packages))return[];var e=u.packages.filter((function(e){if(s&&s!==C.TypeScript&&!Object.keys(e.languages).includes(s))return!1;if(i.length){var t=JSON.stringify(e).toLowerCase(),n=i.toLowerCase();if(!t.includes(n))return!1}return!0}));return Object(se.a)(e).sort((function(e,t){var n=new Date(e.metadata.date),a=new Date(t.metadata.date);return n===a?0:n<a?1:-1}))}),[null===u||void 0===u?void 0:u.packages,b,s,d,i]),h=j?Math.floor(j.length/t):0,f=Object(c.useMemo)((function(){var e=(a>h?h:a)*t,n=e+t;return j.slice(e,n)}),[t,a,h,j]);return Object(c.useMemo)((function(){return{loading:d,results:j,error:b,displayable:f,pageLimit:h}}),[f,b,d,h,j])},Qe=new RegExp(/git@github\.com:([a-zA-Z-]+)+\/?([a-zA-Z-]+)*(\.git)?/),Ye=function(e,t){var n=e;if(t){var a=function(e,t){var n=new URLSearchParams(t);return Object.entries(e).filter((function(e){return null!=Object(A.a)(e,2)[1]})).forEach((function(e){var t=Object(A.a)(e,2),a=t[0],c=t[1];n.set(a,"".concat(c))})),n.toString()}(t);a&&(n+="?".concat(a))}return n},Xe=function(e){var t,n=e.query,a=e.offset,c=e.language;return Ye(ie.SEARCH,(t={},Object(Re.a)(t,ce,n),Object(Re.a)(t,ne,c),Object(Re.a)(t,ae,null!==a&&void 0!==a?a:0),t))},Ze=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=Object(c.useState)(null!==(e=n.defaultQuery)&&void 0!==e?e:""),r=Object(A.a)(a,2),i=r[0],o=r[1],s=Object(c.useState)(null!==(t=n.defaultLanguage)&&void 0!==t?t:null),l=Object(A.a)(s,2),d=l[0],b=l[1],j=Object(u.g)(),h=j.push,f=function(e){e.preventDefault(),o(e.target.value)},p=Object(c.useCallback)((function(){h(Xe({language:d,query:i}))}),[d,h,i]),O=Object(c.useCallback)((function(e){null===e||void 0===e||e.preventDefault(),p()}),[p]);return Object(c.useMemo)((function(){return{language:d,onLanguageChange:b,onQueryChange:f,onSearch:p,onSubmit:O,query:i,setLanguage:b,setQuery:o}}),[d,p,O,i])},$e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(c.useState)(e),a=Object(A.a)(n,2),r=a[0],i=a[1],o=t.delay,s=void 0===o?250:o,l=t.onChange;return Object(c.useEffect)((function(){var t=setTimeout((function(){i(e),null===l||void 0===l||l(e)}),s);return function(){clearTimeout(t)}}),[e,s,l]),r},et=function(){var e=Object(u.h)().search;return Object(c.useMemo)((function(){return new URLSearchParams(e)}),[e])},tt=C.TypeScript,nt="preferred-language",at=function(e){return null!=e&&Ke.has(e)},ct=function(e){if(at(e))return e;try{var t,n=null!==(t=localStorage.getItem(nt))&&void 0!==t?t:"";if(at(n))return n}catch(a){}return tt},rt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.updateUrl,n=e.updateSaved,a=Object(u.h)(),r=a.pathname,i=a.hash,o=Object(u.g)(),s=o.replace,l=et(),d=l.get(ne),b=Object(c.useState)((function(){return ct(d)})),j=Object(A.a)(b,2),h=j[0],f=j[1];Object(c.useEffect)((function(){at(d)&&d!==h&&f(d)}),[d]),Object(c.useEffect)((function(){d!==h&&t&&(l.set(ne,h),s({pathname:r,hash:i,search:l.toString()}))}),[h,t]);var p=Object(c.useCallback)((function(e){if(f(e),n)try{localStorage.setItem(nt,e)}catch(t){}}),[n]);return Object(c.useMemo)((function(){return[h,p]}),[h,p])},it=n(13),ot=Object(g.a)((function(e,t){return Object(x.jsx)(it.a.form,Object(m.a)(Object(m.a)({},e),{},{ref:t}))}));ot.displayName="Form";var st=n(553),lt=le("catalogSearch",["form","input","languageDropdown","languageDropdownMenu","languageDropdownValue","languageItem","submit"]),ut=Object.fromEntries(Object.entries(qe).filter((function(e){var t=Object(A.a)(e,1)[0];return Ke.has(t)}))),dt=function(e){var t=e.placeholder,n=e.items,a=e.onSelect,c=e.selected,r=e.testIds,i=c?n[c]:t,o=Object.entries(n);return Object(x.jsxs)(he.a,{strategy:"fixed",children:[Object(x.jsx)(he.b,{as:D.a,bg:"white",borderColor:"blue.100",boxShadow:"base","data-testid":r.trigger,rightIcon:Object(x.jsx)(xe.a,{color:"blue.500"}),variant:"outline",children:Object(x.jsx)(p.a,{"data-testid":r.value,children:i})}),Object(x.jsxs)(he.f,{"data-testid":r.menu,children:[Object(x.jsx)(he.e,{"data-testid":r.item,onClick:function(){return a(null)},children:"Any"}),o.map((function(e){var t=Object(A.a)(e,2),n=t[0],c=t[1];return Object(x.jsx)(he.e,{"data-testid":r.item,onClick:function(){return a(n)},children:c},n)}))]})]})},bt=Object(g.a)((function(e,t){var n=e.query,a=e.onQueryChange,c=e.language,r=e.onLanguageChange;return Object(x.jsxs)(x.Fragment,{children:[Object(x.jsx)(st.a,{bg:"white",borderColor:"blue.100",boxShadow:"base","data-testid":lt.input,name:"query",onChange:a,placeholder:"Search Constructs...",ref:t,value:n}),Object(x.jsx)(dt,{items:ut,onSelect:r,placeholder:"Language...",selected:c,testIds:{item:lt.languageItem,menu:lt.languageDropdownMenu,trigger:lt.languageDropdown,value:lt.languageDropdownValue}}),Object(x.jsx)(D.a,{boxShadow:"base",colorScheme:"blue","data-testid":lt.submit,type:"submit",children:"Search"})]})})),jt=["onSubmit"],ht=function(e){var t=e.onSubmit,n=Object(z.a)(e,jt);return Object(x.jsx)(ot,{"data-testid":lt.form,onSubmit:t,children:Object(x.jsx)(l.a,{autoRows:"1fr",gap:4,templateColumns:{sm:"1fr",md:"3fr 1fr 1fr"},width:"full",children:Object(x.jsx)(bt,Object(m.a)({},n))})})},ft=["name","onClick"],pt=Object(g.a)((function(e,t){var n=e.name,a=e.onClick,c=Object(z.a)(e,ft);return Object(x.jsx)(Le.a,Object(m.a)(Object(m.a)({alignItems:"center",display:"flex",fontSize:"lg",h:12,lineHeight:"base",listStyleType:"none",onClick:a,onKeyDown:function(e){"Enter"===e.key&&a()},px:4,ref:t,role:"option",sx:{":hover, :focus":{bg:"gray.100"}},tabIndex:0},c),{},{children:n}))}));pt.displayName="SearchItem";var Ot=le("searchModal",["container"]),mt=["onSubmit"],gt=function(e){var t=e.isOpen,n=e.onClose,a=Object(u.g)().push,r=rt(),i=Object(A.a)(r,1)[0],o=Ze(),s=o.onSubmit,l=Object(z.a)(o,mt),d=$e({query:l.query,language:l.language}),b=d.query,j=d.language,h=_e({limit:5,offset:0,query:b,language:j}).displayable,f=(b||j)&&h.length>0,p=Object(c.useRef)(null);return Object(x.jsx)(Se.a,{children:Object(x.jsx)(Te.a,{initialFocusRef:p,isOpen:t,onClose:n,children:Object(x.jsx)(Te.h,{children:Object(x.jsxs)(Te.d,{"data-testid":Ot.container,children:[Object(x.jsx)(Te.c,{}),Object(x.jsx)(Te.g,{children:"Search modules or providers"}),Object(x.jsxs)(Te.b,{children:[Object(x.jsx)(ot,{onSubmit:function(e){n(),s(e)},pb:4,children:Object(x.jsx)(Ae.a,{spacing:4,children:Object(x.jsx)(bt,Object(m.a)({ref:p},l))})}),f&&Object(x.jsxs)(x.Fragment,{children:[Object(x.jsx)(H.a,{}),Object(x.jsx)(Pe.a,{fontSize:"md",my:4,textAlign:"center",children:"Suggestions"}),Object(x.jsx)(Le.c,{children:h.map((function(e){return Object(x.jsx)(pt,{name:e.name,onClick:function(){return t="".concat(ie.PACKAGES,"/").concat(e.name,"/v/").concat(e.version,"?").concat(ne,"=").concat(null!==j&&void 0!==j?j:i),n(),void a(t);var t}},e.name)}))})]})]})]})})})})},xt=function(){var e=Object(j.a)(),t=Object(u.h)().pathname;return[ie.HOME,ie.SEARCH].some((function(e){return e===t}))?null:Object(x.jsxs)(x.Fragment,{children:[Object(x.jsx)(D.a,{align:"center",color:"gray.600",colorScheme:"gray","data-testid":we.searchButton,display:{base:"none",md:"flex"},fontWeight:"medium",justifyContent:"space-between",m:"0 auto",maxW:"500px",onClick:e.onOpen,rightIcon:Object(x.jsx)(Ee.a,{color:"gray.600",ml:4}),variant:"outline",w:"100%",children:"Search Constructs..."}),Object(x.jsx)(O.a,{"aria-label":"Search Icon",borderRadius:"md","data-testid":we.searchIcon,display:{base:"initial",md:"none"},icon:Object(x.jsx)(Ee.a,{color:"gray.600"}),onClick:e.onOpen,variant:"ghost"}),Object(x.jsx)(gt,Object(m.a)({},e))]})},vt=function(e){return Object(x.jsx)(l.b,Object(m.a)({align:"center",justify:"center",rowStart:1},e))},yt=function(){return Object(x.jsxs)(l.a,{alignItems:"center",as:"header",bg:"white",boxShadow:"base","data-testid":we.container,gap:4,gridTemplateColumns:{base:"1fr 3fr 1fr",md:"minmax(200px, 2fr) minmax(200px, 3fr) 2fr"},gridTemplateRows:"1fr",maxW:"100vw",position:"sticky",px:4,py:4,top:0,w:"100%",zIndex:"sticky",children:[Object(x.jsx)(vt,{colStart:{base:2,md:1},justifySelf:{base:"center",md:"start"},children:Object(x.jsx)(He,{})}),Object(x.jsx)(vt,{colStart:{base:3,md:2},justifySelf:{base:"end",md:"stretch"},children:Object(x.jsx)(xt,{})}),Object(x.jsxs)(vt,{colStart:{base:1,md:3},justifySelf:{base:"start",md:"end"},children:[Object(x.jsxs)(l.a,{display:{base:"none",md:"grid"},gap:4,gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr",placeItems:"center",w:"100%",children:[Object(x.jsx)(h.a,{children:Object(x.jsx)(ke,{})}),Object(x.jsx)(h.a,{children:Object(x.jsx)(We,{})})]}),Object(x.jsx)(ze,{})]})]})},wt=n(558),kt=n(242),Ct={home:{event:{name:"Home Load"}},faq:{event:{name:"Frequently Asked Questions Load"}},packageProfile:{event:{name:"Package Profile Load"}},search:{event:{name:"Search Load"}},siteTerms:{event:{name:"Site Terms Load"}},notFound:{page:{pageType:"errorPage"},event:{name:"404 Page Load"}}},St=Object(c.createContext)({trackPageView:function(){}}),It=function(e){var t=e.children,n=Object(u.h)().pathname,a=Object(c.useRef)(null),r=Object(c.useCallback)((function(e){var t,c,r;a.current!==n&&(null===(t=window)||void 0===t||null===(c=t.AWSMA)||void 0===c||null===(r=c.ready)||void 0===r||r.call(c,(function(){document.dispatchEvent(new CustomEvent(window.AWSMA.TRIGGER_EVENT,{detail:e})),a.current=n})))}),[n]);return Object(x.jsx)(St.Provider,{value:{trackPageView:r},children:t})},Tt=function(e){var t=Object(c.useContext)(St).trackPageView,n=Object(u.h)().pathname,a=Object(c.useMemo)((function(){return{page:Object(m.a)({pageURL:window.location.href.replace("://localhost:3000","://constructs.local.dev")},e.page),event:{type:"pageview",name:e.event.name,description:e.event.description}}}),[n,e]);return Object(c.useCallback)((function(){return t(a)}),[t,a])},At=function(e){var t=e.children,n=e.meta,a=e.pageName,r=Tt(Ct[a]);Object(c.useEffect)((function(){r()}),[r]);var i=n.suffix,o=void 0===i||i,s=n.title,l=n.description,u=o?"".concat(s," - Construct Hub"):s;return Object(x.jsxs)(x.Fragment,{children:[Object(x.jsxs)(kt.a,{children:[!1,Object(x.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),Object(x.jsx)("meta",{charSet:"utf-8"}),Object(x.jsx)("title",{children:u}),Object(x.jsx)("meta",{content:u,property:"og:title"}),Object(x.jsx)("meta",{content:u,name:"twitter:title"}),Object(x.jsx)("meta",{content:"summary",name:"twitter:card"}),Object(x.jsx)("meta",{content:l,name:"description"}),Object(x.jsx)("meta",{content:l,property:"og:description"}),Object(x.jsx)("meta",{content:l,name:"twitter:description"})]}),t]})},Wt=function(e){var t=e.question,n=e.children;return Object(x.jsxs)(wt.d,{children:[Object(x.jsxs)(wt.b,{children:[Object(x.jsx)(h.a,{flex:"1",py:2,textAlign:"left",children:Object(x.jsx)(Pe.a,{as:"h3",ml:8,size:"sm",children:t})}),Object(x.jsx)(wt.c,{})]}),Object(x.jsx)(wt.e,{px:12,py:4,children:Object(x.jsx)(p.a,{color:"gray.800",fontSize:"md",sx:{p:{marginTop:"0",marginBottom:"4"}},children:n})})]})},Pt=function(e){var t=e.href,n=e.children;return Object(x.jsx)(S.a,{color:"inherit",hasWarning:!1,href:t,textDecoration:"underline",children:n})},Ht=function(e){var t=e.heading,n=e.children;return Object(x.jsxs)(wt.d,{children:[Object(x.jsxs)(wt.b,{children:[Object(x.jsx)(h.a,{flex:"1",textAlign:"left",children:Object(x.jsx)(Pe.a,{as:"h2",ml:4,size:"lg",children:t})}),Object(x.jsx)(wt.c,{})]}),Object(x.jsx)(wt.e,{p:0,children:Object(x.jsx)(wt.a,{allowMultiple:!0,w:"100%",children:n})})]})},Dt=function(){return Object(x.jsx)(At,{meta:{title:"FAQ",description:"Frequently Asked Questions"},pageName:"faq",children:Object(x.jsxs)(h.a,{bg:"white",color:"blue.800",h:"100%",w:"100%",children:[Object(x.jsx)(h.a,{bg:"gray.50",py:20,width:"100%",children:Object(x.jsx)(Pe.a,{as:"h1",mx:"auto",textAlign:"center",children:"Frequently Asked Questions"})}),Object(x.jsxs)(wt.a,{allowMultiple:!0,defaultIndex:[0,1],children:[Object(x.jsxs)(Ht,{heading:"General",children:[Object(x.jsx)(Wt,{question:"What is Construct Hub?",children:Object(x.jsx)("p",{children:"It is a central destination to discover and share cloud application design patterns and reference architectures defined for the AWS CDK, CDK for Kubernetes (CDK8s), CDK for Terraform (CDKtf) and any other construct-based tool."})}),Object(x.jsxs)(Wt,{question:"Why should I use Construct Hub?",children:[Object(x.jsx)("p",{children:"Construct Hub is built to serve the community that uses the constructs programming model (CPM) and to allow them find publicly available constructs they can reuse. Before the Construct Hub, developers did not have an easy way to discover construct libraries created by the community since they were published across various package managers and without a central index."}),Object(x.jsx)("p",{children:"The Construct Hub is a central, trusted venue CDK developers can use to discover published constructs to help them build their applications. In the Dev Preview Construct Hub you can discover constructs in TypeScript and Python and read their documentation and improved API reference in the programming language that the package supports."})]}),Object(x.jsxs)(Wt,{question:"How can I add my construct to the Construct Hub?",children:[Object(x.jsxs)("p",{children:["In order to add your construct to the Construct Hub, you will need to publish it to the"," ",Object(x.jsx)(Pt,{href:"https://www.npmjs.com/",children:"npmjs.com"})," ","registry, use a permissive license (Apache, BSD, MIT), and annotate it with one of the supported keywords (aws-cdk, cdk8s or cdktf)."]}),Object(x.jsxs)("p",{children:["Additionally, since one of the main goals of the Construct Hub is to enable an ecosystem of constructs that can be consumed by all CDK languages, your library ",Object(x.jsx)("strong",{children:"must"})," be compiled with"," ",Object(x.jsx)(Pt,{href:"https://aws.github.io/jsii/",children:"JSII"}),", which is a TypeScript-based, which is a TypeScript-based programming language for creating multi-language libraries. The Construct Hub leverages the type information produced by the JSII compiler in order to render the rich multi-language API reference displayed at the Construct Hub."]}),Object(x.jsx)("p",{children:"The Construct Hub monitors all updates to the npm Registry and will list any packages that meet the above requirements within 5-10 minutes. If your package does not appear in the Construct Hub, please file an issue on our GitHub repository."}),Object(x.jsxs)("p",{children:["There\u2019s some great community content about publishing construct libraries. Check out"," ",Object(x.jsx)(Pt,{href:"https://dev.to/aws-builders/a-beginner-s-guide-to-create-aws-cdk-construct-library-with-projen-5eh4",children:'"A Beginner\'s Guide to Create AWS CDK Construct Library with projen"'})," ","by ",Object(x.jsx)(Pt,{href:"https://hayao-k.dev/",children:"hayao-k"}),"."]}),Object(x.jsxs)("p",{children:["If you already have a library written in TypeScript and you are looking for information on how to migrate to JSII, see the"," ",Object(x.jsx)(Pt,{href:"https://aws.github.io/jsii/user-guides/#library-author-guide",children:"JSII library author guide"}),"."]})]}),Object(x.jsx)(Wt,{question:"What is a construct?",children:Object(x.jsxs)("p",{children:["The Constructs Programming Model (CPM) introduces the notion of"," ",Object(x.jsx)("strong",{children:"constructs"}),", which represent cloud building blocks that can be used to assemble complete applications of any complexity. AWS, enterprises, start-ups, and individual developers use CDK constructs to share proven architecture patterns as reusable code libraries, so that everyone can benefit from the collective wisdom of the community."]})}),Object(x.jsx)(Wt,{question:"Who owns the constructs in the Construct Hub?",children:Object(x.jsx)("p",{children:"The constructs are owned by the publishers of the packages. Constructs are user generated content that are governed by their own license terms which is displayed in the search results and can be accessed directly through the hyperlinked package page."})}),Object(x.jsx)(Wt,{question:"Is the content served in Construct Hub meant to be consumed programmatically?",children:Object(x.jsxs)("p",{children:["No. The content displayed in the site is user generated, with some display formatting. We do not advise that you consume constructs from the search results programmatically. Please note that Construct Hub is a search engine intended to surface third party content from a public endpoint and we provide these results for your convenience AS-IS in accordance with our"," ",Object(x.jsx)(Pt,{href:"https://constructs.dev/terms",children:"Site Terms"}),"."]})}),Object(x.jsx)(Wt,{question:"Which CDK types are available on the Construct Hub?",children:Object(x.jsx)("p",{children:"AWS CDK, CDK for Kubernetes (CDK8s) and CDK for Terraform (CDKtf)."})}),Object(x.jsx)(Wt,{question:"What is AWS CDK?",children:Object(x.jsxs)("p",{children:["AWS CDK is an open-source software development framework for defining applications on AWS and reusable abstractions using familiar programming languages and rich object-oriented APIs. AWS CDK apps synthesize intostandard CloudFormation templates which can be deployed to create infrastructure on AWS. For more information, click"," ",Object(x.jsx)(Pt,{href:"https://docs.aws.amazon.com/cdk/latest/guide/home.html",children:"here"}),"."]})}),Object(x.jsx)(Wt,{question:"What is CDK8s?",children:Object(x.jsxs)("p",{children:["CDK8s is an open-source software development framework for defining Kubernetes applications and reusable abstractions using familiar programming languages and rich object-oriented APIs."," ",Object(x.jsx)("strong",{children:"cdk8s"})," apps synthesize into standard Kubernetes manifests which can be applied to any Kubernetes cluster. For more information, click"," ",Object(x.jsx)(Pt,{href:"https://cdk8s.io/",children:"here"}),"."]})}),Object(x.jsx)(Wt,{question:"What is CDKtf?",children:Object(x.jsxs)("p",{children:["The community preview of the"," ",Object(x.jsx)(Pt,{href:"https://aws.amazon.com/cdk/",children:"Cloud Development Kit"}),"for Terraform allows you to define infrastructure using a familiar programming language such as TypeScript, Python, or Go, while leveraging the hundreds of providers and thousands of module definitions provided by Terraform and the Terraform ecosystem. For more information, click"," ",Object(x.jsx)(Pt,{href:"https://learn.hashicorp.com/tutorials/terraform/cdktf",children:"here"}),"."]})}),Object(x.jsx)(Wt,{question:"What programming languages are supported in Dev Preview?",children:Object(x.jsx)("p",{children:"The Construct Hub Dev Preview supports Python and TypeScript."})}),Object(x.jsx)(Wt,{question:"Is the support for .NET, Java and Go in the roadmap?",children:Object(x.jsx)("p",{children:"Yes."})}),Object(x.jsx)(Wt,{question:"Can I view the source code of a construct?",children:Object(x.jsx)("p",{children:"For each package you can click the repository link that the publisher provided with the package. Theoretically this link should redirect your to the package\u2019s repository. However, we noticed that sometimes the code in the repository can be more or less updated than the package\u2019s code. Please take that into account."})}),Object(x.jsx)(Wt,{question:"How can I install a package?",children:Object(x.jsx)("p",{children:"Press \u201cInstall\u201d in the package page and you\u2019ll see the installation instructions."})}),Object(x.jsx)(Wt,{question:"How can I report a package?",children:Object(x.jsxs)("p",{children:['You can report a package by clicking "Report a package" from the package page. For claims of copyright infringement, read here:'," ",Object(x.jsx)(Pt,{href:"https://aws.amazon.com/terms/#notice-and-procedure-for-making-claims-of-copyright-infringement",children:"https://aws.amazon.com/terms/#notice-and-procedure-for-making-claims-of-copyright-infringement"}),"."]})}),Object(x.jsx)(Wt,{question:"How can I open a bug or send a PR for a package?",children:Object(x.jsx)("p",{children:"The package is owned by the publisher. To report a bug or send a PR, you should go to the repository link the publisher provided and open a ticket there"})}),Object(x.jsx)(Wt,{question:"Why isn\u2019t my package displayed in the Construct Hub?",children:Object(x.jsx)("p",{children:"The Construct Hub displays only publicly available constructs that are JSII compatible and that were published on a public npm registry with an open source license. The package should be published on npm registry with the one of the following Keywords: aws-cdk, cdk8s or cdktf."})}),Object(x.jsx)(Wt,{question:"Can I update my package after it has been displayed?",children:Object(x.jsx)("p",{children:"Yes. You should publish a new valid version to the public npm registry. We will detect the new version and display it on the Construct Hub."})}),Object(x.jsx)(Wt,{question:"How does the Construct Hub relates to the Construct Catalog?",children:Object(x.jsxs)("p",{children:["The Construct Catalog was built by the CDK community in collaboration with the AWS CDK team. The Construct Hub is the official version for the Construct Catalog."," ",Object(x.jsx)(Pt,{href:"https://awscdk.io",children:"https://awscdk.io"})," now redirects to the Construct Hub."]})}),Object(x.jsx)(Wt,{question:"How can I participate in the Construct Hub community?",children:Object(x.jsxs)("p",{children:["The Construct Hub is built as a public construct. Please join the"," ",Object(x.jsx)(Pt,{href:"https://github.com/cdklabs/construct-hub-webapp",children:"Construct Hub GitHub community"}),". You are also welcome to join the #construct-hub-dev channel in the ",Object(x.jsx)(Pt,{href:"https://cdk.dev/",children:"CDK community"})," Slack workspace."]})}),Object(x.jsx)(Wt,{question:"Is there a community slack channel for the CDK community?",children:Object(x.jsxs)("p",{children:["Please join the CDK Slack channel (",Object(x.jsx)(Pt,{href:"https://cdk.dev/",children:"https://cdk.dev/"}),"). This Slack channel is managed by the CDK community for the CDK community."]})})]}),Object(x.jsxs)(Ht,{heading:"Getting Started",children:[Object(x.jsx)(Wt,{question:"Do I need a user for the Construct Hub?",children:Object(x.jsx)("p",{children:"No. The Construct Hub doesn\u2019t require any signup."})}),Object(x.jsx)(Wt,{question:"How do I get started?",children:Object(x.jsx)("p",{children:"Use our home page to discover publicly available packages. You may run a search to find packages you\u2019re interested in and mention your preferred programming language. For each package you will find helpful information such as README and API reference for the supported programming languages. You will also find links and keywords that the publisher provided with the package and installation instructions."})})]})]})]})})},zt=n(549),Et=n(498),Lt=["sources"],Rt=Object(g.a)((function(e,t){var n=e.sources,a=Object(z.a)(e,Lt);return Object(x.jsxs)(h.a,{as:"picture",children:[null===n||void 0===n?void 0:n.map((function(e,t){return Object(x.jsx)("source",{media:e.media,srcSet:e.srcSet},t)})),Object(x.jsx)(Et.a,Object(m.a)({ref:t},a))]})}));Rt.displayName="Picture";var Mt=n(530),Ft=n(259),qt=n(552),Kt=function(e){var t=e.children,n=e.language;return Ke.has(n)?Object(x.jsx)(x.Fragment,{children:t}):Object(x.jsx)(qt.a,{hasArrow:!0,label:"Documentation support for ".concat(qe[n]," is coming soon!"),placement:"top-start",children:Object(x.jsx)("span",{children:t})})},Nt=n(529),Bt=["children","language","value","label","zIndex"],Ut=function(e){var t=e.children,n=e.language,a=e.value,c=e.label,r=void 0===c?a:c,i=e.zIndex,o=Object(z.a)(e,Bt);return Object(x.jsx)(Y.a,{"aria-label":"Tag: ".concat(r),to:Xe({query:"".concat(a),language:n}),zIndex:i,children:Object(x.jsx)(Nt.a,Object(m.a)(Object(m.a)({_hover:{textDecoration:"underline"}},o),{},{children:Object(x.jsx)(Nt.b,{children:t})}))})},Gt=n(546),Vt=["date","format"],Jt=Object(g.a)((function(e,t){var n=e.date,a=e.format,c=Object(z.a)(e,Vt);return Object(x.jsx)(h.a,Object(m.a)(Object(m.a)({as:"time",dateTime:n.toISOString(),ref:t},c),{},{children:Object(Gt.a)(n,a)}))}));Jt.displayName="Time";var _t=le("catalogCard",["container","name","version","tags","description","date","author","languages"]),Qt=function(e){var t=e.children;return Object(x.jsx)(v,{h:64,p:0,w:"100%",children:Object(x.jsx)(l.a,{as:"article",h:"100%",overflow:"hidden",templateColumns:"1fr",templateRows:"2fr 1fr",children:t})})},Yt=function(e){var t=e.children;return e.isLink?Object(x.jsx)(Mt.a,{_hover:{"> :first-child":{bg:"gray.50"}},"data-testid":_t.container,children:Object(x.jsx)(Qt,{children:t})}):Object(x.jsx)(Qt,{children:t})},Xt=function(){return Object(x.jsxs)(x.Fragment,{children:[Object(x.jsxs)(Ae.a,{p:4,spacing:4,children:[Object(x.jsx)(zt.a,{h:5,w:"50%"}),Object(x.jsxs)(Ae.a,{align:"center",direction:"row",spacing:2,children:[Object(x.jsx)(zt.a,{h:5,w:10}),Object(x.jsx)(zt.a,{h:5,w:10}),Object(x.jsx)(zt.a,{h:5,w:10})]}),Object(x.jsx)(zt.a,{h:3,w:"75%"}),Object(x.jsx)(zt.a,{h:3,w:"50%"})]}),Object(x.jsxs)(h.a,{children:[Object(x.jsx)(H.a,{}),Object(x.jsxs)(Ae.a,{px:4,py:2,spacing:2,children:[Object(x.jsx)(zt.a,{h:5,w:"25%"}),Object(x.jsxs)(Ae.a,{align:"center",direction:"row",spacing:2,children:[Object(x.jsx)(zt.a,{h:5,w:10}),Object(x.jsx)(zt.a,{h:5,w:10}),Object(x.jsx)(zt.a,{h:5,w:10}),Object(x.jsx)(zt.a,{h:5,w:10})]})]})]})]})},Zt=function(e){var t,n,a,c=e.language,r=e.pkg;if(!r)return Object(x.jsx)(Yt,{children:Object(x.jsx)(Xt,{})});var i=(null===(t=r.metadata)||void 0===t?void 0:t.date)?Object(x.jsx)(Jt,{date:new Date(r.metadata.date),fontSize:"sm",format:"MMMM dd, yyyy"}):null,o=null!==(n=r.author)&&void 0!==n?n:{},l=null!==(a=r.languages)&&void 0!==a?a:{},u=Object.keys(l),d=function(e){return function(e){var t,n=e.name,a=e.version,c=e.language,r=e.submodule;return Ye("".concat(ie.PACKAGES,"/").concat(n,"/v/").concat(a),(t={},Object(Re.a)(t,re,r),Object(Re.a)(t,ne,c),t))}(Object(m.a)({name:r.name,version:r.version,language:c},e))},b="string"===typeof o?o:o.name;return Object(x.jsxs)(Yt,{isLink:!0,children:[Object(x.jsxs)(Ae.a,{maxH:"100%",maxW:"100%",overflow:"hidden",p:4,spacing:0,children:[Object(x.jsx)(Mt.b,{as:s.b,to:d(),children:Object(x.jsxs)(p.a,{color:"blue.800","data-testid":_t.name,fontWeight:"semibold",isTruncated:!0,children:[r.name,Object(x.jsx)(p.a,{as:"span",color:"blue.500","data-testid":_t.version,fontSize:"xs",ml:2,children:r.version})]})}),Object(x.jsx)(Mt.a,{as:W.a,"data-testid":_t.tags,flexWrap:"wrap",maxH:6,overflow:"hidden",children:[r.name.startsWith("@aws-cdk/")?Object(x.jsx)(Ut,{label:"official",language:c,mr:1,value:"@aws-cdk",variant:"official",children:"Official"},"official"):null].concat(Object(se.a)(r.keywords.filter(Boolean).slice(0,3).map((function(e){return Object(x.jsx)(Ut,{language:c,mr:1,value:'"'.concat(e,'"'),zIndex:"0 !important",children:e},e)}))))}),Object(x.jsx)(p.a,{"data-testid":_t.description,fontSize:"sm",noOfLines:2,children:r.description})]}),Object(x.jsxs)(h.a,{children:[Object(x.jsx)(H.a,{}),Object(x.jsxs)(Ae.a,{maxW:"100%",overflow:"hidden",px:4,py:2,spacing:2,children:[Object(x.jsx)(p.a,{"data-testid":_t.date,fontSize:"sm",isTruncated:!0,children:i}),Object(x.jsx)(Ft.a,{as:s.b,color:"blue.500","data-testid":_t.author,fontSize:"sm",to:Xe({query:b}),children:b}),Object(x.jsx)(Mt.a,{align:"center",as:Ae.a,"data-testid":_t.languages,direction:"row",children:Object.entries(Ne).sort((function(e,t){var n=Object(A.a)(e,1)[0],a=Object(A.a)(t,1)[0];return Fe.indexOf(n)-Fe.indexOf(a)})).map((function(e){var t=Object(A.a)(e,2),n=t[0],a=t[1],c=n,r=c===C.TypeScript||u.includes(c),i=c===C.TypeScript||Ke.has(c);if(!r)return null;var o=a.name,l=a.icon,b=Object(x.jsx)(l,{"aria-label":"Supports ".concat(o),h:6,opacity:i?1:.2,w:6});return Object(x.jsx)(Kt,{language:c,children:i?Object(x.jsx)(s.b,{"aria-label":"View package docs for ".concat(c),to:d({language:c}),children:b}):b},c)}))})]})]})]})},$t=function(e){var t=e.children;return Object(x.jsx)(P.a,{columns:{base:1,sm:2,md:3,lg:4,xl:5,"2xl":6},spacing:6,children:t})},en=function(e){for(var t=e.noOfItems,n=[],a=0;a<t;a+=1)n.push(Object(x.jsx)(Zt,{},a));return Object(x.jsx)($t,{children:n})},tn=Object(c.memo)(en),nn=function(e){var t=e.language,n=e.results,a=e.skeleton;return(null===a||void 0===a?void 0:a.loading)?Object(x.jsx)(tn,{noOfItems:a.noOfItems}):Object(x.jsx)($t,{children:n.map((function(e,n){return Object(x.jsx)(Zt,{language:t,pkg:e},"".concat(e.name,"-").concat(n))}))})},an=Object(c.memo)(nn),cn=n(531),rn=n(532),on=n(533),sn=le("home",["headings","results","nextPageBtn","nextIcon","prevIcon"]),ln={borderRadius:"md",borderColor:"blue.500",colorScheme:"blue",mx:2,h:10,w:10,variant:"outline"},un={color:"blue.500",h:5,w:5},dn=function(e){var t=e.offset,n=e.pageLimit,a=e.setOffset,c=t===n,r=0===t,i=function(){a(t+1)};return Object(x.jsxs)(l.a,{alignItems:"center",pt:6,templateColumns:"repeat(3, 1fr)",templateRows:"1fr",children:[Object(x.jsx)(l.b,{colStart:2,justifySelf:"center",children:Object(x.jsx)(D.a,{colorScheme:"blue","data-testid":sn.nextPageBtn,disabled:c,onClick:i,rightIcon:Object(x.jsx)(cn.a,{color:"white"}),children:"Next Page"})}),Object(x.jsx)(l.b,{colStart:3,justifySelf:"end",children:Object(x.jsxs)(W.a,{align:"center",justify:"center",py:4,children:[Object(x.jsx)(O.a,Object(m.a)({"aria-label":"Previous Page","data-testid":sn.prevIcon,disabled:r,icon:Object(x.jsx)(rn.a,Object(m.a)({},un)),onClick:function(){a(t-1)}},ln)),Object(x.jsx)(O.a,Object(m.a)({"aria-label":"Next Page","data-testid":sn.nextIcon,disabled:c,icon:Object(x.jsx)(on.a,Object(m.a)({},un)),onClick:i},ln))]})})]})},bn={optimal:[{media:"(max-width:1024px)",srcSet:"/assets/hive@50.webp"},{media:"(min-width:1024px)",srcSet:"/assets/hive@100.webp"},{media:"(min-width:1024px)",srcSet:"/assets/hive@100.png"}],fallback:"/assets/hive@50.png"},jn=function(){var e=Ze(),t=Object(c.useState)(0),n=Object(A.a)(t,2),a=n[0],r=n[1],i=_e({offset:a,limit:20,query:"",language:null}),o=i.results,s=i.displayable,l=i.loading,u=i.pageLimit;return Object(x.jsx)(At,{meta:{title:"Construct Hub",description:"Construct Hub helps developers find open-source construct libraries for use with AWS CDK, CDK8s, CDKTf and other construct-based tools.",suffix:!1},pageName:"home",children:Object(x.jsxs)(h.a,{position:"relative",children:[Object(x.jsx)(Rt,{alt:"",h:"540px",position:"absolute",sources:bn.optimal,src:bn.fallback,top:"0",w:"100%",zIndex:"hide"}),Object(x.jsxs)(Ae.a,{align:"stretch",direction:"column",justify:"center",m:"0 auto",maxW:"container.lg",p:[10,15,20],spacing:8,children:[Object(x.jsxs)(Ae.a,{color:"blue.800","data-testid":sn.headings,spacing:4,textAlign:"center",children:[Object(x.jsx)(Pe.a,{size:"2xl",children:"Find reusable components for your cloud applications"}),Object(x.jsx)(Pe.a,{as:"h3",size:"md",children:"AWS CDK | CDK for Terraform | CDK For Kubernetes"}),Object(x.jsxs)(Pe.a,{as:"h4",mb:8,size:"sm",children:["Search from"," ",o.length?Object(x.jsx)(h.a,{as:"span",color:"blue.500",children:o.length}):Object(x.jsx)(zt.a,{display:"inline-block",h:3,w:8})," ","construct libraries"]})]}),Object(x.jsx)(ht,Object(m.a)({},e))]}),Object(x.jsxs)(h.a,{p:4,pb:8,children:[Object(x.jsx)(an,{results:s,skeleton:{loading:l,noOfItems:20}}),Object(x.jsx)(dn,{offset:a,pageLimit:u,setOffset:r})]})]})})},hn=n(534),fn={optimal:[{media:"(max-width:1024px)",srcSet:"/assets/404-hive@50.webp"},{media:"(min-width:1024px)",srcSet:"/assets/404-hive@100.webp"},{media:"(min-width:1024px)",srcSet:"/assets/404-hive@100.png"}],fallback:"/assets/404-hive@50.png"},pn=function(){return Object(x.jsx)(At,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:Object(x.jsxs)(hn.a,{h:"100%",position:"relative",w:"100%",children:[Object(x.jsx)(Rt,{alt:"",inset:0,position:"absolute",sources:fn.optimal,src:fn.fallback,zIndex:"hide"}),Object(x.jsxs)(W.a,{align:"center",direction:"column",justify:"center",children:[Object(x.jsx)(Rt,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),Object(x.jsx)(D.a,{as:s.b,colorScheme:"blue",to:"/",children:"Take Me Home"})]})]})})},On=function(e,t){return t?"".concat(t,"/").concat(e):e},mn=function(e,t,n){var a="".concat(X,"/"),c=On(e,n),r="/v".concat(t);return"".concat(a).concat(c).concat(r)},gn=function(e){var t=e;return(t.startsWith("~")||t.startsWith("^"))&&(t=t.substring(1)),t},xn=function(){var e=Object(R.a)(L.a.mark((function e(t,n,a){var c,r;return L.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c="".concat(mn(t,n,a)).concat($),e.next=3,fetch(c);case 3:if((r=e.sent).ok){e.next=6;break}throw new Error("Failed fetching assembly for ".concat(c,": ").concat(r.statusText));case 6:return e.abrupt("return",r.json());case 7:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),vn=function(){var e=Object(R.a)(L.a.mark((function e(t,n,a,c,r){var i,o,s,l,u;return L.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="/docs-".concat(r?"".concat(r,"-"):"").concat(a,".md"),o="".concat(mn(t,n,c)).concat(i),e.next=4,fetch(o);case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Failed fetching documentation for ".concat(o,": ").concat(s.statusText));case 7:if(l="text/markdown",(u=s.headers.get("Content-Type"))&&u.includes(l)){e.next=11;break}throw new Error("Invalid content type: ".concat(u,". Expected ").concat(l,'"'));case 11:return e.abrupt("return",s.text());case 12:case"end":return e.stop()}}),e)})));return function(t,n,a,c,r){return e.apply(this,arguments)}}(),yn=function(){var e=Object(R.a)(L.a.mark((function e(t,n,a){var c,r,i;return L.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(c=n).startsWith("^")&&(c=c.substring(1,c.length)),r="".concat(mn(t,n,a)).concat(ee),e.next=5,fetch(r);case 5:if((i=e.sent).ok){e.next=8;break}throw new Error("Failed fetching metadata for ".concat(r,": ").concat(i.statusText));case 8:return e.abrupt("return",i.json());case 9:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),wn={},kn=function(){var e=Object(R.a)(L.a.mark((function e(){var t;return L.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(te);case 2:if((t=e.sent).ok){e.next=6;break}return console.log("Failed to fetch application config, using default values"),e.abrupt("return",wn);case 6:return e.abrupt("return",t.json().catch((function(e){return console.error(e),console.log("Invalid config response, using default values"),wn})));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Cn=Object(c.createContext)({loading:!1,data:void 0,error:void 0}),Sn=function(e){var t=e.children,n=Ue(kn),a=Object(A.a)(n,2),r=a[0],i=a[1];return Object(c.useEffect)((function(){r()}),[r]),Object(x.jsx)(Cn.Provider,{value:i,children:t})},In=n(514),Tn=function(e){var t=e.targetLanguages,n=e.selectedLanguage,a=e.setSelectedLanguage;return Object(x.jsx)(Ae.a,{align:"center","data-testid":"language-bar",direction:"row",spacing:2,children:Object(se.a)(t).sort((function(e,t){return Fe.indexOf(e)-Fe.indexOf(t)})).map((function(e){var t=!Ke.has(e),c=e===n,r=Ne[e].icon;return Object(x.jsx)(Kt,{language:e,children:Object(x.jsx)(O.a,{"aria-label":"Select ".concat(e," icon"),border:c?"1px solid":"none",borderColor:"blue.500",borderRadius:"lg",boxShadow:"base",colorScheme:"blue",cursor:t?"not-allowed":"pointer","data-testid":"language-".concat(e),disabled:t,icon:Object(x.jsx)(r,{"aria-label":"".concat(e,"-icon"),borderRadius:"sm",height:[4,5,6],width:[4,5,6]}),onClick:function(){c||a(e)},p:1,variant:"outline",w:"max-content"})},e)}))})},An=new Set(Fe),Wn=function(e){var t,n=e.assembly,a=rt({updateSaved:!0,updateUrl:!0}),c=Object(A.a)(a,2),r=c[0],i=c[1],o=[].concat(Object(se.a)(Object.keys(null!==(t=null===n||void 0===n?void 0:n.targets)&&void 0!==t?t:{})),[C.TypeScript]);return Object(x.jsx)(Tn,{selectedLanguage:o.includes(r)?r:o[0],setSelectedLanguage:i,targetLanguages:o.filter((function(e){return An.has(e)}))})},Pn=n(535),Hn=function(e){var t=e.dependencies,n=Object.entries(t);return n.length?Object(x.jsxs)(he.a,{children:[Object(x.jsx)(he.b,{as:D.a,color:"blue.500",leftIcon:Object(x.jsx)(Pn.a,{}),rightIcon:Object(x.jsx)(xe.a,{h:6,w:6}),size:"md",variant:"outline",children:"Dependencies"}),Object(x.jsx)(he.f,{children:n.map((function(e){var t=Object(A.a)(e,2),n=t[0],a=t[1];return Object(x.jsx)(he.e,{p:0,children:Object(x.jsx)(Y.a,{h:"100%",p:2,to:"/packages/".concat(n,"/v/").concat(gn(a)),w:"100%",children:"".concat(n," - ").concat(a)})},"".concat(n,"/").concat(a))}))})]}):null},Dn="https://opensource.org/licenses",zn={"Apache-2.0":"".concat(Dn,"/apache2.0.php"),"BSD-2-Clause":"".concat(Dn,"/bsd-license.php"),MIT:"".concat(Dn,"/mit-license.php")},En=["license"],Ln=Object(g.a)((function(e,t){var n=e.license,a=Object(z.a)(e,En),c=zn[n];return Object(x.jsx)(S.a,Object(m.a)(Object(m.a)({href:c,ref:t},a),{},{children:n}))}));Ln.displayName="LicenseLink";var Rn=function(e){var t=e.assembly,n=e.linksConfig,a=e.metadata,r=Object(c.useMemo)((function(){var e;if(!a)return[];var c=a.date,r=a.links,i=null===t||void 0===t?void 0:t.author.name,o=null===t||void 0===t?void 0:t.author.url,s=null===t||void 0===t?void 0:t.repository,l=null===t||void 0===t?void 0:t.license,u=null!==(e=null===r||void 0===r?void 0:r.npm)&&void 0!==e?e:"https://www.npmjs.com/package/".concat(null===t||void 0===t?void 0:t.name,"/v/").concat(null===t||void 0===t?void 0:t.version),d=[];if(c){var b=Object(x.jsx)(Jt,{date:new Date(c),fontWeight:"bold",format:"MMMM dd, yyyy"});d.push(Object(x.jsxs)(x.Fragment,{children:["Published: ",b]}))}if(i){var j=o?Object(x.jsx)(S.a,{href:o,children:i}):Object(x.jsx)(h.a,{as:"strong",fontWeight:"bold",children:i});d.push(Object(x.jsxs)(x.Fragment,{children:["Author: ",j]}))}if((null===n||void 0===n?void 0:n.length)&&n.forEach((function(e){var t,n=e.name,c=e.value,r=e.displayText,i=(null!==(t=null===a||void 0===a?void 0:a.packageLinks)&&void 0!==t?t:{})[c];if(i){var o=Object(x.jsx)(S.a,{href:i,children:null!==r&&void 0!==r?r:i});d.push(Object(x.jsxs)(x.Fragment,{children:[n,": ",o]}))}})),s){var f=function(e){try{var t=e,n=e.match(Qe);if(n){var a=Object(A.a)(n,3),c=a[1],r=a[2];t="https://github.com/".concat(c,"/").concat(r)}return{hostname:new URL(t).hostname,url:t}}catch(i){return}}(s.url);if(f){var O=Object(x.jsx)(S.a,{href:f.url,children:f.hostname});d.push(Object(x.jsxs)(x.Fragment,{children:["Repository: ",O]}))}}if(l&&l in zn){var m=Object(x.jsx)(Ln,{license:l});d.push(Object(x.jsxs)(x.Fragment,{children:["License: ",m]}))}if(u){var g=Object(x.jsx)(S.a,{href:u,children:new URL(u).hostname});d.push(Object(x.jsxs)(x.Fragment,{children:["Registry: ",g]}))}return d.slice(0,5).map((function(e,t){return Object(x.jsx)(Le.a,{listStyleType:"none",my:1,children:Object(x.jsx)(p.a,{color:"gray.600",children:e})},"detail-".concat(t))}))}),[a,t,n]);return Object(x.jsx)(Le.c,{ml:0,children:r})},Mn=function(e){var t=e.assembly,n=e.linksConfig,a=e.metadata;return Object(x.jsxs)(W.a,{direction:"column",textAlign:{base:"center",md:"initial"},children:[Object(x.jsx)(Ft.a,{color:"blue.500",fontSize:"sm",href:"mailto:abuse@amazonaws.com?subject=".concat(encodeURIComponent("ConstructHub - Report of abusive package: ".concat(null===t||void 0===t?void 0:t.name))),m:2,textAlign:{base:"center",md:"right"},children:"Report this Package"}),Object(x.jsx)(Rn,{assembly:t,linksConfig:n,metadata:a}),(null===t||void 0===t?void 0:t.dependencies)&&Object(x.jsx)(h.a,{mt:4,children:Object(x.jsx)(Hn,{dependencies:t.dependencies})})]})},Fn=function(e){var t=e.description,n=e.tags,a=e.title,c=e.version,r=rt(),i=Object(A.a)(r,1)[0];return Object(x.jsxs)(W.a,{direction:"column",maxWidth:"100%",overflowX:"hidden",p:2,textAlign:{base:"center",md:"initial"},children:[Object(x.jsxs)(Ae.a,{align:"center",direction:{base:"column",md:"row"},justify:{base:"center",md:"start"},mb:4,spacing:4,children:[Object(x.jsx)(Pe.a,{wordBreak:"break-word",children:a}),Object(x.jsx)(p.a,{color:"blue.500",fontSize:"md",children:c})]}),Object(x.jsx)(p.a,{wordBreak:"break-word",children:t}),!!n.length&&Object(x.jsxs)(W.a,{direction:"row",justify:{base:"center",md:"initial"},mt:3,children:[a.startsWith("@aws-cdk/")?Object(x.jsx)(Ut,{label:"official",language:i,mr:2,value:"@aws-cdk",variant:"official",children:"Official"},"official"):null,n.filter(Boolean).slice(0,3).map((function(e){return Object(x.jsx)(Ut,{language:i,mr:2,value:e,children:e},e)}))]})]})},qn=n(538),Kn=n(539),Nn=n(536),Bn=n(234),Un=n(537),Gn=n(547),Vn=n(540),Jn={borderRadius:"md",color:"white",variant:"link"},_n={h:4,w:4},Qn=le("code-popover",["close","content","code","copy","header","trigger"]),Yn=function(e){var t=e.code,n=e.header,a=e.trigger,r=Object(Nn.a)(t),i=r.hasCopied,o=r.onCopy,s=Object(j.a)(),l=Object(c.useRef)(null),u=Object(Bn.b)("breakpoints","md"),d=Object(Un.a)("(min-width: ".concat(u,")")),h=Object(A.a)(d,1)[0];return Object(x.jsxs)(Gn.a,Object(m.a)(Object(m.a)({initialFocusRef:l,isLazy:!0,placement:h?"bottom-end":"bottom"},s),{},{children:[Object(x.jsx)(Gn.e,{children:a}),Object(x.jsxs)(Gn.c,{bg:"blue.500","data-testid":Qn.content,children:[Object(x.jsxs)(Gn.d,{align:"center",as:W.a,color:"white","data-testid":Qn.header,justify:"space-between",pr:0,children:[Object(x.jsx)(p.a,{children:n}),Object(x.jsxs)(W.a,{align:"center",children:[Object(x.jsx)(O.a,Object(m.a)({"aria-label":"copy-text-icon","data-testid":Qn.copy,icon:i?Object(x.jsx)(qn.a,Object(m.a)(Object(m.a)({},_n),{},{color:"green.200"})):Object(x.jsx)(Kn.a,Object(m.a)({},_n)),onClick:o,ref:l},Jn)),Object(x.jsx)(O.a,Object(m.a)({"aria-label":"close-icon","data-testid":Qn.close,icon:Object(x.jsx)(b.a,{h:3,w:3}),onClick:s.onClose},Jn))]})]}),Object(x.jsx)(Gn.b,{as:Vn.a,bg:"gray.100",borderTopLeftRadius:"0",borderTopRightRadius:"0",color:"gray.800","data-testid":Qn.code,overflow:"auto",variant:"code-block",children:t})]})]}))},Xn=Object(g.a)((function(e,t){return Object(x.jsx)(D.a,Object(m.a)(Object(m.a)({color:"white",colorScheme:"blue","data-testid":Qn.trigger,ref:t,rightIcon:Object(x.jsx)(xe.a,{h:5,w:5})},e),{},{children:e.children}))}));Xn.displayName="CodePopoverTrigger";var Zn=function(e){var t=e.assembly,n=rt(),a=Object(A.a)(n,1)[0],c=qe[a],r=function(e){var t=e.language,n=e.assembly,a=n.version;if(t===C.TypeScript){var c=n.name;return"npm install ".concat(c,"@").concat(a)}if(t===C.Python){var r,i,o=null===(r=n.targets)||void 0===r||null===(i=r.python)||void 0===i?void 0:i.distName;if(!o)return;return"pip install ".concat(o,"==").concat(a)}}({language:a,assembly:t}),i=!r,o=i?"Unsupported":"Install",s=Object(x.jsx)(Xn,{disabled:i,children:o});return Object(x.jsx)(Yn,{code:null!==r&&void 0!==r?r:"",header:c,trigger:s})},$n=function(e){var t,n,a=e.assembly,c=e.config,r=e.metadata,i=e.version;return!(a.loading||r.loading)&&a.data&&r.data?Object(x.jsxs)(W.a,{as:v,direction:"column",children:[Object(x.jsxs)(l.a,{gap:4,overflow:"hidden",templateColumns:{base:"1fr",md:"3fr auto 2fr"},templateRows:"auto",children:[Object(x.jsx)(Fn,{description:a.data.description,tags:null!==(t=a.data.keywords)&&void 0!==t?t:[],title:a.data.name,version:i}),Object(x.jsx)(H.a,{display:{base:"none",md:"initial"},orientation:"vertical"}),Object(x.jsx)(H.a,{display:{base:"initial",md:"none"},orientation:"horizontal"}),c.loading?Object(x.jsx)(hn.a,{minH:"200px",children:Object(x.jsx)(In.a,{size:"xl"})}):Object(x.jsx)(Mn,{assembly:a.data,linksConfig:null===(n=c.data)||void 0===n?void 0:n.packageLinks,metadata:r.data})]}),Object(x.jsxs)(Ae.a,{align:"center",direction:{base:"column",md:"row"},justify:{base:"center",md:"space-between"},px:2,py:4,spacing:4,children:[Object(x.jsx)(Wn,{assembly:a.data}),Object(x.jsx)(Zn,{assembly:a.data})]})]}):Object(x.jsx)(hn.a,{minH:"200px",children:Object(x.jsx)(In.a,{size:"xl"})})},ea=n(184),ta={color:"gray.900",h:4,w:4},na=function e(t){var n,a=t.children,r=t.display,i=t.url,o=t.onOpen,s=Object(u.h)(),l=s.pathname,d=s.hash,b=i.startsWith("#"),f=b?d===i:l===i,p=Object(j.a)({onOpen:o,defaultIsOpen:!0}),g=(null!==(n=null===a||void 0===a?void 0:a.length)&&void 0!==n?n:0)>0,v=p.isOpen&&g,y=b?Ft.a:Y.a,w=Object(c.useMemo)((function(){return null===a||void 0===a?void 0:a.map((function(t,n){return Object(c.createElement)(e,Object(m.a)(Object(m.a)({},t),{},{key:n,onOpen:p.onOpen}))}))}),[a,p.onOpen]);return Object(x.jsxs)(W.a,{direction:"column",children:[Object(x.jsxs)(W.a,{align:"center",color:f?"blue.500":"gray.800",children:[g&&Object(x.jsx)(O.a,{"aria-label":"expand-toggle",borderRadius:"md",h:4,icon:p.isOpen?Object(x.jsx)(xe.a,Object(m.a)({},ta)):Object(x.jsx)(on.a,Object(m.a)({},ta)),ml:-1,onClick:p.onToggle,size:"xs",variant:"link",w:4}),Object(x.jsx)(y,{_hover:{bg:"rgba(0, 124, 253, 0.05)"},href:i,overflow:"hidden",pl:g?1:2,py:1.5,textOverflow:"ellipsis",title:r,to:i,w:"100%",whiteSpace:"nowrap",children:r})]}),Object(x.jsx)(h.a,{_before:{bg:"gray.100",bottom:0,content:'""',left:0,position:"absolute",top:0,w:"1px"},display:v?"initial":"none",ml:2,pl:2,position:"relative",children:w})]})},aa=function(e){var t=e.items;return Object(x.jsx)(W.a,{direction:"column",maxWidth:"100%",children:t.map((function(e,t){return Object(c.createElement)(na,Object(m.a)(Object(m.a)({},e),{},{key:t,onOpen:void 0}))}))})},ca=n(543),ra=n(541),ia=n(542),oa=Object(g.a)((function(e,t){var n=e.value,a=e.onChange,r=e.onSubmit,i=Object(c.useState)(n),o=Object(A.a)(i,2),s=o[0],l=o[1];return $e(s,{onChange:a}),Object(x.jsx)(ot,{"data-testid":"choose-submodule-search-form",onSubmit:r,children:Object(x.jsxs)(ra.a,{children:[Object(x.jsx)(ia.a,{children:Object(x.jsx)(Ee.a,{color:"gray.400"})}),Object(x.jsx)(st.a,{"data-testid":"choose-submodule-search-input",onChange:function(e){return l(e.target.value)},placeholder:"Search",ref:t,value:s,variant:"filled"})]})})}));oa.displayName="SearchInput";var sa,la=function(e){var t=e.inputValue,n=e.isOpen,a=e.onClose,r=e.onInputChange,i=e.submodules,o=Object(c.useRef)(null),s=Object(u.g)().push,l=Object(c.useCallback)((function(e){a(),s(e)}),[a,s]),d=Object(c.useCallback)((function(e){if(e.preventDefault(),i.length){var t=i[0].to;l(t)}}),[l,i]);return Object(x.jsx)(Te.a,{initialFocusRef:o,isOpen:n,onClose:a,children:Object(x.jsx)(Te.h,{children:Object(x.jsxs)(Te.d,{mx:4,children:[Object(x.jsx)(Te.c,{"data-testid":"choose-submodule-modal-close"}),Object(x.jsx)(Te.g,{"data-testid":"choose-submodule-modal-header",fontSize:"lg",fontWeight:"bold",children:"Choose a submodule"}),Object(x.jsxs)(Te.b,{"data-testid":"choose-submodule-modal-body",p:0,children:[Object(x.jsx)(h.a,{pb:4,px:4,children:Object(x.jsx)(oa,{onChange:r,onSubmit:d,ref:o,value:t})}),Object(x.jsx)(H.a,{}),Object(x.jsx)(Le.c,{"data-testid":"choose-submodule-modal-results",m:0,maxH:"50vh",overflow:"hidden auto",p:0,role:"listbox",tabIndex:-1,children:i.map((function(e){var t=e.name,n=e.to;return Object(x.jsx)(pt,{"data-testid":"choose-submodule-result",name:t,onClick:function(){return l(n)}},t)}))})]})]})})})},ua=function(e){var t,n=e.assembly,a=Object(u.h)().pathname,r=Object(u.g)().push,i=et(),o=Object.keys(null!==(t=null===n||void 0===n?void 0:n.submodules)&&void 0!==t?t:{}),s=Object(j.a)(),l=s.isOpen,d=s.onOpen,b=s.onClose,h=i.get(re),f=h?"Submodule: ".concat(h):"Choose Submodule",p=Object(c.useState)(""),O=Object(A.a)(p,2),m=O[0],g=O[1],v=Object(c.useCallback)((function(e){var t=new URLSearchParams(i.toString());return t.set("submodule",e),"".concat(a,"?").concat(t)}),[a,i]),y=Object(c.useMemo)((function(){var e=o;return m&&(e=e.filter((function(e){return e.toLowerCase().includes(m.toLowerCase())}))),e.map((function(e){var t=e.split(".")[1];return{name:t,to:v(t)}}))}),[o,m,v]);return 0===o.length?null:Object(x.jsxs)(Ae.a,{spacing:4,w:"100%",children:[h&&Object(x.jsxs)(x.Fragment,{children:[Object(x.jsx)(D.a,{borderRadius:"none","data-testid":"choose-submodule-go-back",leftIcon:Object(x.jsx)(ca.a,{"aria-label":"Back to construct root"}),onClick:function(){var e=i.get(ne);r("".concat(a).concat(e?"?".concat(ne,"=").concat(e):""))},title:"Back to construct root",variant:"link",children:null===n||void 0===n?void 0:n.name}),Object(x.jsx)(H.a,{})]}),Object(x.jsx)(D.a,{borderRadius:"none",color:"blue.500","data-testid":"choose-submodule-search-trigger",flexGrow:1,onClick:d,rightIcon:Object(x.jsx)(xe.a,{}),title:"Choose Submodule",variant:"link",children:f}),Object(x.jsx)(la,{inputValue:m,isOpen:l,onClose:b,onInputChange:g,submodules:y})]})},da=function e(t,n){if(!(n instanceof HTMLElement))return t;var a=n.dataset,c=a.headingId,r=a.headingLevel,i=void 0===r?"100":r,o=n.innerText,s=parseInt(i);if(s>3||!o||!c)return t;var l=t[t.length-1];return null==l||l.level>=s?[].concat(Object(se.a)(t),[{display:o,url:"#".concat(c),level:s,children:[]}]):(l.children=e(l.children,n),t)},ba="72px",ja=function(e){var t,n=e.markdown,a=e.assembly,r=Object(c.useState)([]),i=Object(A.a)(r,2),o=i[0],s=i[1];Object(c.useEffect)((function(){var e=Object(se.a)(document.querySelectorAll("[data-heading-id][data-heading-title][data-heading-level]")).reduce(da,[]);s(e)}),[n]);var d=Object(u.h)().hash;Object(c.useEffect)((function(){if(d){var e=document.querySelector("".concat(d));null===e||void 0===e||e.scrollIntoView(!0)}}),[n]);var b=Object(c.useMemo)((function(){return Object(x.jsx)(ea.a,{repository:a.repository,children:n})}),[a.repository,n]);return Object(x.jsxs)(l.a,{bg:"white",columnGap:4,h:"100%",templateColumns:{base:"1fr",md:"1fr 3fr"},width:"100%",children:[Object(x.jsxs)(W.a,{alignSelf:"stretch",borderRight:"1px solid",borderRightColor:"blue.50",direction:"column",display:{base:"none",md:"flex"},maxHeight:"calc(100vh - ".concat(ba,")"),overflow:"hidden auto",position:"sticky",px:4,top:ba,children:[Object.keys(null!==(t=null===a||void 0===a?void 0:a.submodules)&&void 0!==t?t:{}).length>0&&Object(x.jsx)(W.a,{borderBottom:"1px solid",borderColor:"blue.50",justify:"center",py:4,children:Object(x.jsx)(ua,{assembly:a})}),Object(x.jsx)(h.a,{overflowY:"auto",py:4,children:Object(x.jsx)(aa,{items:o})})]}),Object(x.jsx)(h.a,{h:"max-content",maxWidth:"100%",overflow:"hidden",py:4,sx:{a:{scrollMarginTop:ba}},children:b})]})},ha=function(e){var t=e.language,n=Object(x.jsx)(S.a,{href:"https://github.com/cdklabs/construct-hub-webapp/issues/new",children:"issue"});return Object(x.jsxs)(p.a,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",children:["Documentation in ",t," is still not ready for this package. Come back soon. If this issue persists, please let us know by creating an"," ",n,"."]})},fa=function(e){var t=e.language,n=qe[t];return Object(x.jsxs)(p.a,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",children:["This package does not currently support ",n,". Select one of the supported languages above, or ask the author to add support for"," ",n," in a future release."]})},pa=function(){var e,t,n,a,r,i=Object(u.i)(),o=i.name,s=i.scope,l=i.version,d=Ue(vn),b=Object(A.a)(d,2),j=b[0],f=b[1],p=Ue(xn),O=Object(A.a)(p,2),m=O[0],g=O[1],v=Ue(yn),y=Object(A.a)(v,2),w=y[0],k=y[1],S=Object(c.useContext)(Cn),I=et(),T=rt(),W=Object(A.a)(T,1)[0],P=null!==(e=I.get(re))&&void 0!==e?e:"",H="".concat(s?"".concat(s,"/").concat(o):o," ").concat(l),D=null!==(t=null===g||void 0===g||null===(n=g.data)||void 0===n?void 0:n.description)&&void 0!==t?t:"";if(Object(c.useEffect)((function(){w(o,l,s),m(o,l,s)}),[o,m,w,s,l]),Object(c.useEffect)((function(){j(o,l,W,s,P)}),[o,s,l,W,P,j]),g.error)return Object(x.jsx)(pn,{});var z=f.error||g.error,E=!f.loading&&!g.loading&&f.data&&g.data,L=W===C.TypeScript||g.loading||g.error||null!=(null===(a=g.data)||void 0===a||null===(r=a.targets)||void 0===r?void 0:r[W.toString()]);return Object(x.jsx)(At,{meta:{title:H,description:D},pageName:"packageProfile",children:Object(x.jsxs)(Ae.a,{maxW:"100vw",pt:4,spacing:4,children:[Object(x.jsx)(h.a,{px:4,children:Object(x.jsx)($n,{assembly:g,config:S,metadata:k,version:l})}),L?z?Object(x.jsx)(ha,{language:W}):E&&Object(x.jsx)(ja,{assembly:g.data,markdown:f.data}):Object(x.jsx)(fa,{language:W})]})})},Oa=function(e){return gn(e).split(".")[0]},ma=function(e,t,n){var a=On(t,n),c=function(e,t){var n=e.packages.filter((function(e){return e.name===t}));if(0===n.length)throw new Error("Package ".concat(t," does not exist in catalog"));return n.length>1?n.sort((function(e,t){var n=Oa(e.version);return Oa(t.version).localeCompare(n)}))[0]:n[0]}(e,a).version,r="/v/".concat(c);return"".concat("/packages/").concat(a).concat(r)},ga=function(){var e=Object(u.i)(),t=e.name,n=e.scope,a=Ve();return a.loading||!a.data?Object(x.jsx)(hn.a,{minH:"200px",children:Object(x.jsx)(In.a,{size:"xl"})}):Object(x.jsx)(u.a,{to:ma(a.data,t,n)})},xa="[^@\\/]+",va="@[^\\/]+",ya=function(){var e=Object(u.j)().path;return Object(x.jsxs)(u.d,{children:[Object(x.jsx)(u.b,{exact:!0,path:"".concat(e,"/:scope(").concat(va,")?/:name(").concat(xa,")"),children:Object(x.jsx)(ga,{})}),Object(x.jsx)(u.b,{path:"".concat(e,"/:scope(").concat(va,")?/:name(").concat(xa,")/v/:version"),children:Object(x.jsx)(pa,{})}),Object(x.jsx)(u.b,{path:"*",children:Object(x.jsx)(pn,{})})]})},wa=function(e){var t=e.icon,n=e.offset,a=e.getPageUrl,c={"aria-label":"Page ".concat(n," link"),borderRadius:"md",borderColor:"blue.500",colorScheme:"blue",icon:Object(x.jsx)(t,{color:"blue.500",h:5,w:5}),mx:2,h:10,w:10,variant:"outline"};return void 0!==n?Object(x.jsx)(O.a,Object(m.a)(Object(m.a)({},c),{},{as:s.b,to:a({offset:n})})):Object(x.jsx)(O.a,Object(m.a)(Object(m.a)({},c),{},{disabled:!0}))},ka=function(e){var t=e.pageLimit,n=e.offset,a=e.getPageUrl,r=Object(c.useState)((n+1).toString()),i=Object(A.a)(r,2),o=i[0],s=i[1],l=Object(u.g)().push;Object(c.useEffect)((function(){s((n+1).toString())}),[n]);return Object(x.jsxs)(W.a,{align:"center",as:"form",mx:2,onSubmit:function(e){e.preventDefault(),l(a({offset:parseInt(o)-1}))},children:[Object(x.jsx)(st.a,{colorScheme:"blue",h:10,max:t+1,min:1,name:"page",onChange:function(e){e.preventDefault(),s(e.target.value)},p:0,textAlign:"center",type:"number",value:o,w:10}),Object(x.jsxs)(p.a,{ml:2,w:"max-content",children:["of ",t+1]})]})},Ca={children:"Next Page",colorScheme:"blue",rightIcon:Object(x.jsx)(cn.a,{color:"white"})},Sa=function(e){var t=e.nextPageUrl;return t?Object(x.jsx)(D.a,Object(m.a)(Object(m.a)({},Ca),{},{as:s.b,to:t})):Object(x.jsx)(D.a,Object(m.a)(Object(m.a)({},Ca),{},{disabled:!0}))},Ia=function(e){var t=e.offset,n=e.pageLimit,a=e.getPageUrl,c=t<n?t+1:void 0,r=t>0?t-1:void 0;return Object(x.jsxs)(l.a,{alignItems:"center",pt:4,templateColumns:"repeat(3, 1fr)",templateRows:"1fr",children:[Object(x.jsx)(l.b,{colStart:2,justifySelf:"center",children:Object(x.jsx)(Sa,{nextPageUrl:c?a({offset:c}):void 0})}),Object(x.jsx)(l.b,{colStart:3,justifySelf:"end",children:Object(x.jsxs)(W.a,{align:"center",justify:"center",py:4,children:[Object(x.jsx)(ka,{getPageUrl:a,offset:t,pageLimit:n}),Object(x.jsx)(wa,{getPageUrl:a,icon:rn.a,offset:r}),Object(x.jsx)(wa,{getPageUrl:a,icon:on.a,offset:c})]})})]})},Ta=function(e){var t=e.children;return Object(x.jsx)(p.a,{as:"em",color:"blue.500",fontWeight:"bold",children:t})},Aa=function(e){var t=e.limit,n=e.offset,a=e.count,c=e.filtered,r=t*n,i=r+t;return Object(x.jsxs)(p.a,{children:["Displaying"," ",Object(x.jsxs)(Ta,{children:[a?r+1:a," - ",i>a?a:i]})," ","of ",Object(x.jsx)(Ta,{children:a})," ",c?"search results":"constructs","."]})},Wa=function(){var e,t,n=et(),a=decodeURIComponent(null!==(e=n.get(ce))&&void 0!==e?e:""),r=n.get(ne),i=Ze({defaultQuery:a,defaultLanguage:r}),o=function(e){var t=parseInt(e);return"NaN"==="".concat(t)?0:t}(null!==(t=n.get(ae))&&void 0!==t?t:"0"),s=Object(u.g)().push,l=_e({query:a,offset:o,limit:25,language:r}),d=l.results,b=l.displayable,j=l.loading,f=l.pageLimit,p=function(e){var t,n;return Xe({query:null!==(t=e.q)&&void 0!==t?t:a,language:r,offset:null!==(n=e.offset)&&void 0!==n?n:o})};return Object(c.useEffect)((function(){!j&&d.length&&(o<0||o>f)&&s(p(o<0?{offset:0}:{offset:f}))}),[j,d,f,o]),Object(c.useEffect)((function(){a!==i.query&&i.setQuery(a)}),[a]),Object(x.jsx)(At,{meta:{title:a||"Search",description:a?"".concat(d.length," results for ").concat(a," at Construct Hub"):"Search reusable components for your cloud application"},pageName:"search",children:Object(x.jsxs)(W.a,{direction:"column",maxW:"100vw",children:[Object(x.jsx)(h.a,{p:4,children:Object(x.jsx)(ht,Object(m.a)({},i))}),Object(x.jsx)(H.a,{}),Object(x.jsxs)(h.a,{p:4,children:[Object(x.jsx)(h.a,{pb:4,children:Object(x.jsx)(Aa,{count:d.length,filtered:!!a,limit:25,offset:o})}),Object(x.jsx)(an,{language:null!==r&&void 0!==r?r:void 0,results:b,skeleton:{loading:j,noOfItems:25}}),Object(x.jsx)(Ia,{getPageUrl:p,limit:25,offset:o,pageLimit:f})]})]})})},Pa=function(){return Object(x.jsx)(At,{meta:{title:"Site Terms",description:"View the Construct Hub Site Terms"},pageName:"siteTerms",children:Object(x.jsx)(h.a,{bg:"white",h:"100%",py:16,w:"100%",children:Object(x.jsxs)(h.a,{as:"article",color:"gray.800",fontSize:"lg",maxW:{base:"80%",md:"600px"},mx:"auto",textAlign:"justify",w:"100%",children:[Object(x.jsx)(Pe.a,{as:"h1",color:"blue.800",mb:8,mx:"auto",size:"lg",children:"AWS Site Terms for CDK Construct Hub"}),Object(x.jsxs)(Ae.a,{spacing:4,children:[Object(x.jsx)(p.a,{fontStyle:"italic",children:"Last Updated: July 2021"}),Object(x.jsxs)(p.a,{children:["Welcome to the AWS CDK Construct Hub site (the \u201cAWS Site\u201d or \u201cConstruct Hub\u201d). Except as specifically follows, the AWS CDK Construct Hub site shall be subject to the"," ",Object(x.jsx)(S.a,{hasWarning:!1,href:"https://aws.amazon.com/terms/",children:"Site Terms"})," ","(\u201cAWS Site Terms\u201d) and considered an AWS Site for purposes of applying the AWS Site Terms (together, the \u201cCDK Construct Hub Site Terms\u201d)."]}),Object(x.jsxs)(p.a,{children:["In place of the \u201cLicense and Site Access\u201d term of the AWS Site Terms, the Construct Hub is provided to you under this license:"," ",Object(x.jsx)(S.a,{hasWarning:!1,href:"https://github.com/cdklabs/construct-hub-webapp/blob/main/LICENSE",children:"https://github.com/cdklabs/construct-hub-webapp/blob/main/LICENSE"}),". Some AWS Content and Third-Party Content may be provided to you under a separate license, such as the Apache License, Version 2.0, or other open source license. In the event of a conflict between the CDK Construct Hub Site Terms and any separate license, the separate license will prevail with respect to the AWS Content or Third-Party Content that is the subject of such separate license. This AWS Site is a construct registry and search site. The links to the CDK constructs displayed may comprise third party user generated content which shall, in any case, be subject to the \u201cDisclaimer of Warranties and Limitation of Liability\u201d section of the AWS Site Terms. Accessing a construct via its hyperlink will send you to a non-affiliated third party website (\u2018Third-Party Website\u201d) and you shall be subject to the terms and conditions of that Third-Party Website upon entering it."]})]})]})})})},Ha=function(){return Object(x.jsxs)(l.a,{as:"main",bg:"bgPrimary",gridTemplateColumns:"1fr",gridTemplateRows:"auto auto 1fr auto",h:"100%",inset:0,maxW:"100vw",overflow:"hidden auto",position:"fixed",children:[Object(x.jsx)(yt,{}),Object(x.jsx)(T,{}),Object(x.jsxs)(u.d,{children:[Object(x.jsx)(u.b,{exact:!0,path:ie.FAQ,children:Object(x.jsx)(Dt,{})}),Object(x.jsx)(u.b,{exact:!0,path:ie.HOME,children:Object(x.jsx)(jn,{})}),Object(x.jsx)(u.b,{exact:!0,path:ie.SITE_TERMS,children:Object(x.jsx)(Pa,{})}),Object(x.jsx)(u.b,{path:ie.PACKAGES,children:Object(x.jsx)(ya,{})}),Object(x.jsx)(u.b,{exact:!0,path:ie.SEARCH,children:Object(x.jsx)(Wa,{})}),Object(x.jsx)(u.b,{path:"*",children:Object(x.jsx)(pn,{})})]}),Object(x.jsx)(de,{})]})},Da=n(140),za=n(551),Ea=n(544),La=n(136),Ra=La.theme.components.Code,Ma=Object(m.a)(Object(m.a)({},Ra),{},{variants:Object(m.a)(Object(m.a)({},Ra.variants),{},{"code-block":Object(m.a)(Object(m.a)({},Ra.variants.subtle),{},{display:"block",whiteSpace:"pre"})})}),Fa=function(e,t){return function(n){var a="function"===typeof e?e(n):e;return Object(m.a)(Object(m.a)({},a),{},{container:Object(m.a)(Object(m.a)({},a.container),t)})}},qa=La.theme.components.Tag,Ka=Object(m.a)(Object(m.a)({},qa),{},{baseStyle:{container:{fontWeight:"normal"}},variants:Object(m.a)(Object(m.a)({},qa.variants),{},{subtle:Fa(qa.variants.subtle,{background:"#F2F2F2",color:"blue.800"}),official:Fa(qa.variants.subtle,{background:"rgba(33, 150, 83, 0.1)",color:"#219653"})})}),Na=Object(m.a)(Object(m.a)({},La.theme.components),{},{Code:Ma,Divider:{defaultProps:{borderColor:"rgba(0, 124, 253, 0.15)"}},Tag:Ka}),Ba={borders:{base:"1px solid rgba(0, 124, 253, 0.15)"},colors:Object(m.a)(Object(m.a)({},La.theme.colors),{},{blue:{50:"#dcf3ff",100:"#aed9ff",200:"#7dbeff",300:"#4aa4ff",400:"#1a8aff",500:"#0070e6",600:"#0057b4",700:"#003e82",800:"#002551",900:"#000d21"},bgPrimary:"#F8F8F8"}),radii:{card:"0.75rem"},sizes:{container:{"2xl":"1920px"}},shadows:{base:"0px 4px 15px rgba(40, 132, 178, 0.15)"}},Ua=Object(Ea.a)(Object(m.a)(Object(m.a)({},Ba),{},{components:Na})),Ga=function(e){var t=e.children;return Object(x.jsx)(za.a,{resetCSS:!0,theme:Ua,children:t})},Va=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),Ja=function(e,t){navigator.serviceWorker.register(e).then((function(e){e.onupdatefound=function(){var n=e.installing;null!=n&&(n.onstatechange=function(){"installed"===n.state&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(e)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(e)))})}})).catch((function(e){console.error("Error during service worker registration:",e)}))};o.a.render(Object(x.jsx)(r.a.StrictMode,{children:Object(x.jsx)(Sn,{children:Object(x.jsx)(Q,{children:Object(x.jsx)(s.a,{children:Object(x.jsx)(It,{children:Object(x.jsx)(Ga,{children:Object(x.jsx)(Da.a,{children:Object(x.jsx)(Je,{children:Object(x.jsx)(Ha,{})})})})})})})})}),document.getElementById("root")),sa&&sa instanceof Function&&n.e(4).then(n.bind(null,560)).then((function(e){var t=e.getCLS,n=e.getFID,a=e.getFCP,c=e.getLCP,r=e.getTTFB;t(sa),n(sa),a(sa),c(sa),r(sa)}),(function(){})),function(e){if("serviceWorker"in navigator){if(new URL("",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(function(){var t="".concat("","/service-worker.js");Va?(!function(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then((function(n){var a=n.headers.get("content-type");404===n.status||null!=a&&-1===a.indexOf("javascript")?navigator.serviceWorker.ready.then((function(e){e.unregister().then((function(){window.location.reload()}))})):Ja(e,t)})).catch((function(){console.log("No internet connection found. App is running in offline mode.")}))}(t,e),navigator.serviceWorker.ready.then((function(){console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")}))):Ja(t,e)}))}}()},49:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(5),c=n(259),r=n(15),i=n(1),o=function(e){return Object(i.jsx)(c.a,Object(a.a)({as:r.b},e))}},72:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(96),c=n(77);n.d(t,"e",(function(){return c.e})),n.d(t,"c",(function(){return c.c})),n.d(t,"d",(function(){return c.d})),n.d(t,"g",(function(){return c.g})),n.d(t,"h",(function(){return c.h})),n.d(t,"f",(function(){return c.f})),n.d(t,"b",(function(){return c.b}));var r=n(1),i=function(e){var t=e.children;return Object(r.jsx)(a.a,{maxW:"100%",overflowX:"auto",children:Object(r.jsx)(c.a,{variant:"striped",children:t})})}},86:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return j})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return O}));var a=n(4),c=n(5),r=n(20),i=n(259),o=n(96),s=n(492),l=n(23),u=n(1),d=["children","href"],b=function(e){var t=e.children,n=e.href,a=Object(r.a)(e,d),o=i.a;try{if(n&&n.startsWith("http"))if(new URL(n).hostname!==window.location.hostname){o=function(e){return Object(u.jsx)(l.a,Object(c.a)({},e))}}}catch(s){o=i.a}return Object(u.jsx)(o,Object(c.a)(Object(c.a)({color:"blue.500",href:n,sx:{"> img + svg":{display:"none"}}},a),{},{children:t}))},j=function(e){var t=e.children;return Object(u.jsx)(o.a,{as:"blockquote",bg:"gray.100",borderLeft:"5px solid",borderLeftColor:"gray.200",borderRadius:"md",p:2,wordBreak:"break-word",children:t})},h=function(e){var t=e.children;return Object(u.jsx)(o.a,{as:"em",color:"blue.500",fontStyle:"normal",fontWeight:"semibold",children:t})},f=function(e){var t=e.children;return Object(u.jsx)(s.a,{children:t})},p=function(e){var t=e.children;return Object(u.jsx)(o.a,{as:"pre",children:t})},O=function(e){var t=e.children,n=void 0,c="";if(Array.isArray(t)){var r=Object(a.a)(t,1)[0];"string"===typeof r&&(c=r)}return"Required"===c?n="orange.500":"Optional"===c&&(n="green.500"),Object(u.jsx)(o.a,{as:"sup",color:n,ml:2,top:-1,children:t})}},87:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(526),c=n(0),r=n(250),i=n.n(r),o=n(49),s=n(135),l=n(1),u=function(e){var t,n,r=e.level,u=e.children,d=["2xl","xl","lg","md","sm","xs"][r-1],b=[10,10,10,8,8,8][r-1],j="h".concat(r),h=(new DOMParser).parseFromString(i.a.renderToStaticMarkup(u),"text/html").querySelector("span[data-heading-title][data-heading-id]"),f=null!==(t=null===h||void 0===h?void 0:h.dataset.headingTitle)&&void 0!==t?t:c.Children.toArray(u).reduce((function(e,t){return"string"===typeof t?"".concat(e).concat(t):e}),"").trim(),p=null!==(n=null===h||void 0===h?void 0:h.dataset.headingId)&&void 0!==n?n:f.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-"),O=r<4;return Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)(a.a,{as:j,color:"blue.800",level:r,mb:O?0:r,mt:b,size:d,children:Object(l.jsx)(o.a,{"data-heading-id":p,"data-heading-level":r,"data-heading-title":f,id:p,replace:!0,sx:{"> code":{color:"blue.800",fontSize:"inherit"}},to:"#".concat(p),children:u})}),O&&Object(l.jsx)(s.a,{mb:b,mt:0,sx:{"& + hr":{display:"none"}}})]})}}},[[489,1,2]]]);
2
- //# sourceMappingURL=main.e4cce0ad.chunk.js.map