construct-hub-webapp 0.1.770 → 0.1.772

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "/static/css/main.efe592a7.css",
4
- "main.js": "/static/js/main.5de3122d.js",
4
+ "main.js": "/static/js/main.bc305b87.js",
5
5
  "static/js/19.d330fc34.chunk.js": "/static/js/19.d330fc34.chunk.js",
6
6
  "static/js/679.4c3850de.chunk.js": "/static/js/679.4c3850de.chunk.js",
7
7
  "static/js/58.a6b0cce7.chunk.js": "/static/js/58.a6b0cce7.chunk.js",
8
8
  "static/js/577.0fbaedf1.chunk.js": "/static/js/577.0fbaedf1.chunk.js",
9
- "static/js/545.a8e262dc.chunk.js": "/static/js/545.a8e262dc.chunk.js",
9
+ "static/js/545.d0d54604.chunk.js": "/static/js/545.d0d54604.chunk.js",
10
10
  "static/js/418.6340af6e.chunk.js": "/static/js/418.6340af6e.chunk.js",
11
11
  "static/js/51.56334876.chunk.js": "/static/js/51.56334876.chunk.js",
12
12
  "static/js/540.c326d22f.chunk.js": "/static/js/540.c326d22f.chunk.js",
@@ -14,19 +14,19 @@
14
14
  "static/js/787.34927533.chunk.js": "/static/js/787.34927533.chunk.js",
15
15
  "static/js/270.b0f6a012.chunk.js": "/static/js/270.b0f6a012.chunk.js",
16
16
  "static/js/639.2f63f818.chunk.js": "/static/js/639.2f63f818.chunk.js",
17
- "static/js/912.4e8446c1.chunk.js": "/static/js/912.4e8446c1.chunk.js",
17
+ "static/js/644.beb4ce05.chunk.js": "/static/js/644.beb4ce05.chunk.js",
18
18
  "static/js/122.5930759a.chunk.js": "/static/js/122.5930759a.chunk.js",
19
19
  "static/js/225.8711ae88.chunk.js": "/static/js/225.8711ae88.chunk.js",
20
20
  "static/js/29.b8d3336e.chunk.js": "/static/js/29.b8d3336e.chunk.js",
21
21
  "service-worker.js": "/service-worker.js",
22
22
  "index.html": "/index.html",
23
23
  "main.efe592a7.css.map": "/static/css/main.efe592a7.css.map",
24
- "main.5de3122d.js.map": "/static/js/main.5de3122d.js.map",
24
+ "main.bc305b87.js.map": "/static/js/main.bc305b87.js.map",
25
25
  "19.d330fc34.chunk.js.map": "/static/js/19.d330fc34.chunk.js.map",
26
26
  "679.4c3850de.chunk.js.map": "/static/js/679.4c3850de.chunk.js.map",
27
27
  "58.a6b0cce7.chunk.js.map": "/static/js/58.a6b0cce7.chunk.js.map",
28
28
  "577.0fbaedf1.chunk.js.map": "/static/js/577.0fbaedf1.chunk.js.map",
29
- "545.a8e262dc.chunk.js.map": "/static/js/545.a8e262dc.chunk.js.map",
29
+ "545.d0d54604.chunk.js.map": "/static/js/545.d0d54604.chunk.js.map",
30
30
  "418.6340af6e.chunk.js.map": "/static/js/418.6340af6e.chunk.js.map",
31
31
  "51.56334876.chunk.js.map": "/static/js/51.56334876.chunk.js.map",
32
32
  "540.c326d22f.chunk.js.map": "/static/js/540.c326d22f.chunk.js.map",
@@ -34,13 +34,13 @@
34
34
  "787.34927533.chunk.js.map": "/static/js/787.34927533.chunk.js.map",
35
35
  "270.b0f6a012.chunk.js.map": "/static/js/270.b0f6a012.chunk.js.map",
36
36
  "639.2f63f818.chunk.js.map": "/static/js/639.2f63f818.chunk.js.map",
37
- "912.4e8446c1.chunk.js.map": "/static/js/912.4e8446c1.chunk.js.map",
37
+ "644.beb4ce05.chunk.js.map": "/static/js/644.beb4ce05.chunk.js.map",
38
38
  "122.5930759a.chunk.js.map": "/static/js/122.5930759a.chunk.js.map",
39
39
  "225.8711ae88.chunk.js.map": "/static/js/225.8711ae88.chunk.js.map",
40
40
  "29.b8d3336e.chunk.js.map": "/static/js/29.b8d3336e.chunk.js.map"
41
41
  },
42
42
  "entrypoints": [
43
43
  "static/css/main.efe592a7.css",
44
- "static/js/main.5de3122d.js"
44
+ "static/js/main.bc305b87.js"
45
45
  ]
46
46
  }
package/build/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><script src="/preload.js"></script><meta charset="utf-8"/><meta name="description" content="Construct Hub helps developers find open-source construct libraries for use with AWS CDK, CDK8s, CDKTF and other construct-based tools."/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#ffffff"><title>Construct Hub</title><script defer="defer" src="/static/js/main.5de3122d.js"></script><link href="/static/css/main.efe592a7.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><script src="/preload.js"></script><meta charset="utf-8"/><meta name="description" content="Construct Hub helps developers find open-source construct libraries for use with AWS CDK, CDK8s, CDKTF and other construct-based tools."/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#ffffff"><title>Construct Hub</title><script defer="defer" src="/static/js/main.bc305b87.js"></script><link href="/static/css/main.efe592a7.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[545],{50535:function(e,n,t){t.d(n,{y:function(){return c}});var r=t(28227),a=t(28735),o=t(53046),i=t(80184),c=function(e){var n=e.label,t=e.color,c=e.icon,s=(0,r.ff)("none","brightness(1.75)");return(0,i.jsxs)(a.Kq,{align:"center",direction:"row",filter:s,spacing:2,children:[(0,i.jsx)(o.Ee,{alt:"".concat(n," icon"),src:c,w:4}),(0,i.jsx)(a.xv,{color:t,fontWeight:"bold",children:n})]})}},2148:function(e,n,t){t.d(n,{N:function(){return i}});var r=t(81070),a=t(86617),o=t(80184),i=function(e){var n=e.children,t=e.language,i=a.dX.has(t),c=a.k8[t],s=i?"Click to view documentation in ".concat(c):"Documentation support for ".concat(c," is coming soon!");return(0,o.jsx)(r.u,{hasArrow:!0,label:s,placement:"top-start",children:(0,o.jsx)("span",{children:n})})}},29988:function(e,n,t){t.d(n,{X:function(){return d}});var r=t(1413),a=t(45987),o=t(96450),i=t(19748),c=t(67003),s=t(80184),l=["children","value","label","zIndex"],d=function(e){var n=e.children,t=e.value,d=e.label,u=void 0===d?t:d,h=e.zIndex,f=(0,a.Z)(e,l);return(0,s.jsx)(c.O,{"aria-label":"Tag: ".concat(u),to:(0,i.yc)({keywords:[t]}),zIndex:h,children:(0,s.jsx)(o.Vp,(0,r.Z)((0,r.Z)({_hover:{textDecoration:"underline"}},f),{},{children:(0,s.jsx)(o.Sn,{children:n})}))})}},41712:function(e,n,t){t.d(n,{T:function(){return l}});var r=t(72791),a=t(54270),o={contribute:{event:{name:"Contribute Load"}},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"}}},i=t(59534),c=t(56804),s=t(80184),l=(["default-src 'self' 'unsafe-inline' http://*.awsstatic.com;","connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","frame-src http://aws.demdex.net http://dpm.demdex.net;","img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","object-src 'none';","style-src 'self' 'unsafe-inline';"].join(" "),function(e){var n=e.children,t=e.meta,l=e.pageName,d=(0,i.aQ)(o[l]);(0,r.useEffect)((function(){d()}),[d]);var u=(0,c.E)("feeds")||[],h=t.suffix,f=void 0===h||h,p=t.title,v=t.description,m=f?"".concat(p," - Construct Hub"):p;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(a.q,{children:[!1,(0,s.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,s.jsx)("meta",{charSet:"utf-8"}),u.map((function(e){var n=e.url,t=e.mimeType;return(0,s.jsx)("link",{href:n,rel:"alternate",type:t},n)})),(0,s.jsx)("title",{children:m}),(0,s.jsx)("meta",{content:m,property:"og:title"}),(0,s.jsx)("meta",{content:m,name:"twitter:title"}),(0,s.jsx)("meta",{content:"summary",name:"twitter:card"}),(0,s.jsx)("meta",{content:v,name:"description"}),(0,s.jsx)("meta",{content:v,property:"og:description"}),(0,s.jsx)("meta",{content:v,name:"twitter:description"})]}),n]})})},79227:function(e,n,t){t.d(n,{q:function(){return d}});var r=t(1413),a=t(45987),o=t(31959),i=t(28735),c=t(29158),s=t(80184),l=["date","format","formattedDate"],d=(0,o.Gp)((function(e,n){var t=e.date,o=e.format,d=e.formattedDate,u=(0,a.Z)(e,l);return(0,s.jsx)(i.xu,(0,r.Z)((0,r.Z)({as:"time",dateTime:t.toISOString(),ref:n},u),{},{children:null!==d&&void 0!==d?d:(0,c.Z)(t,null!==o&&void 0!==o?o:"")}))}));d.displayName="Time"},56804:function(e,n,t){t.d(n,{E:function(){return a}});var r=t(24026),a=function(e){var n=(0,r.Z)().data;return(null!==n&&void 0!==n?n:{})[e]}},7991:function(e,n,t){t.d(n,{Z:function(){return f}});var r=t(29439),a=t(72791),o=t(64880),i=t(86617),c=t(29499),s=t(4487),l=i.SQ.TypeScript,d="preferred-language",u=function(e){return null!=e&&i.dX.has(e)},h=function(e){if(u(e))return e;try{var n,t=null!==(n=localStorage.getItem(d))&&void 0!==n?n:"";if(u(t))return t}catch(r){}return l},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.updateUrl,t=e.updateSaved,i=(0,o.TH)(),l=i.pathname,f=i.hash,p=(0,o.k6)(),v=p.replace,m=(0,s.K)(),x=m.get(c.Tx.LANGUAGE),g=(0,a.useState)((function(){return h(x)})),b=(0,r.Z)(g,2),j=b[0],y=b[1];(0,a.useEffect)((function(){u(x)&&x!==j&&y(x)}),[x]),(0,a.useEffect)((function(){x!==j&&n&&(m.set(c.Tx.LANGUAGE,j),v({pathname:l,hash:f,search:m.toString()}))}),[j,n]);var w=(0,a.useCallback)((function(e){if(y(e),t)try{localStorage.setItem(d,e)}catch(n){}}),[t]);return(0,a.useMemo)((function(){return[j,w]}),[j,w])}},4487:function(e,n,t){t.d(n,{K:function(){return o}});var r=t(72791),a=t(64880),o=function(){var e=(0,a.TH)().search;return(0,r.useMemo)((function(){return new URLSearchParams(e)}),[e])}},98371:function(e,n,t){t.d(n,{JA:function(){return i},QX:function(){return c}});var r=t(1413),a=t(93433),o=t(9272),i=function(e){return!e||e.length<1?[]:e.reduce((function(e,n){return n.highlight?[].concat((0,a.Z)(e),[n.highlight]):e}),[])},c=function(e){for(var n=e.packageTags,t=e.keywords,i=new Array,c=new Set,s=0,l=[].concat((0,a.Z)(function(e){return(null!==e&&void 0!==e?e:[]).filter((function(e){var n;return Boolean(null===(n=e.keyword)||void 0===n?void 0:n.label)})).map((function(e){var n;return(0,r.Z)((0,r.Z)({},e),{},{id:null===(n=e.keyword)||void 0===n?void 0:n.label})}))}(n)),(0,a.Z)(function(e){return!e||e.length<1?[]:e.filter((function(e){return Boolean(e)&&!o.h.has(e)})).map((function(e){return{id:e,keyword:{label:e}}}))}(t)));s<l.length;s++){var d=l[s],u=d.keyword.label.toLowerCase();c.has(u)||(i.push(d),c.add(u))}return i}},42577:function(e,n,t){t.r(n),t.d(n,{NotFound:function(){return v},default:function(){return v}});var r=t(28735),a=t(82504),o=t(91523),i=t(41712),c=t(1413),s=t(45987),l=t(31959),d=t(53046),u=t(80184),h=["sources"],f=(0,l.Gp)((function(e,n){var t=e.sources,a=(0,s.Z)(e,h);return(0,u.jsxs)(r.xu,{as:"picture",children:[null===t||void 0===t?void 0:t.map((function(e,n){return(0,u.jsx)("source",{media:e.media,srcSet:e.srcSet},n)})),(0,u.jsx)(d.Ee,(0,c.Z)({ref:n},a))]})}));f.displayName="Picture";var p={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"},v=function(){return(0,u.jsx)(i.T,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:(0,u.jsxs)(r.M5,{h:"100%",position:"relative",w:"100%",children:[(0,u.jsx)(f,{alt:"",inset:0,position:"absolute",sources:p.optimal,src:p.fallback,zIndex:"hide"}),(0,u.jsxs)(r.kC,{align:"center",direction:"column",justify:"center",children:[(0,u.jsx)(f,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),(0,u.jsx)(a.zx,{as:o.rU,colorScheme:"brand",to:"/",children:"Take Me Home"})]})]})})}},73545:function(e,n,t){t.r(n),t.d(n,{default:function(){return Et}});var r=t(64880),a=t(42577),o=t(29439),i=t(28735),c=t(13822),s=t(72791),l=t(78236),d=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return l.o.apply(void 0,["Package Page"].concat(n))},u={SCOPE:d(),SELECT_VERSION:d("Select Version"),CDK_BADGE:{eventName:function(e){return d("CDK Badge",e)}},KEYWORD:{eventName:function(e){return d("Keyword",e)}},LANGUAGE:{eventName:function(e){return d("Language",e)}},DOCUMENTATION:{TAB:d("Documentation","Tab")},DEPENDENCIES:{TAB:d("Dependencies","Tab")},GITHUB_BADGE:{TAB:d("Badge","Tab")},FEEDBACK:{PUBLISHER:d("Feedback","Publisher"),CONSTRUCT_HUB:d("Feedback","Construct Hub"),ABUSE:d("Feedback","Abuse")}},h="api",f="Readme",p="docs-container",v=t(1413),m=t(91933),x=t(4942),g=t(93433),b=t(15841),j=t.n(b),y=t(29499),w=function(e){return e.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-")},k=function e(n,t){var r=n[n.length-1];return r&&r.level<t.level?(r.children=e(r.children,t),n):(n.push(t),n)},C=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,t=new RegExp("(`{3}[\\s\\S]*?(?:`{3})|^#{1,".concat(n,"}[^#].*)"),"gm");return e.split(t).reduce((function(e,n){var t=e[e.length-1];return n.startsWith("#")||null!==t&&void 0!==t&&t.startsWith("#")?[].concat((0,g.Z)(e),[n]):(e[e.length-1]+=n,e)}),[])},Z=function(e){var n,t,r,a,i=(null!==(n=e.match(/(\S+)\s*=\s*(\"?)([^"]*)(\2|\s|$)/g))&&void 0!==n?n:[]).reduce((function(e,n){var t,r=n.split("="),a=(0,o.Z)(r,2),i=a[0],c=a[1],s=null!==(t=/['"](.*?)['"]/.exec(c))&&void 0!==t?t:[],l=(0,o.Z)(s,2),d=(l[0],l[1]);return(0,v.Z)((0,v.Z)({},e),{},(0,x.Z)({},i,d))}),{}),c=null!==(t=/^#*\s*(?:<a\s.*?(?:\/>|<\/a>))?\s*([^<]+?)\s*(?:<|$)/.exec(e))&&void 0!==t?t:[e,e],s=(0,o.Z)(c,2),l=(s[0],s[1].replace(/\[([^\]]+)\](?:\([^)]+\)|\[[^\]]+\])/g,"$1").replace(/:\+1:|:-1:|:[\w-]+:/g,(function(e){var n;return null!==(n=j().get(e))&&void 0!==n?n:e}))),d=null!==(r=i["data-heading-title"])&&void 0!==r?r:l;return{id:null!==(a=i["data-heading-id"])&&void 0!==a?a:encodeURIComponent(w(d)),title:d}},S=function(e,n){var t=n.scope,r=n.language,a=n.name,o=n.version,i=n.submodule,c=t?"".concat(t,"/").concat(a):"".concat(a),s="/packages/".concat(c,"/v/").concat(o),l="?".concat(y.Tx.LANGUAGE,"=").concat(r);i&&(l+="&submodule=".concat(i));var d='# API Reference <span data-heading-title="API Reference" data-heading-id="api-reference"></span>',u=e.split(d),h=u.length>1?u.pop():"",p=u.join(d),m=C(h,3),x=C(p),b=[d.trim()].concat((0,g.Z)(null!==m&&void 0!==m?m:[])),j="".concat(s).concat(l),w=x.reduce((function(e,n){if(n.startsWith("#")){var t,r,a=Z(n),o=a.id,i=a.title,c=null!==(t=null===(r=n.match(/(#)/gm))||void 0===r?void 0:r.length)&&void 0!==t?t:1,s=function(e){return(e.endsWith(".")||e.endsWith(":"))&&(e=e.slice(0,-1)),e}(i),l={level:c,id:o,title:s,path:"".concat(j,"#").concat(o),children:[]};return k(e,l)}return e}),[]);1===w.length&&(w=w[0].children);var S,T,E=[].concat([{level:1,id:f,title:"Readme",path:j,children:w}]),I={};return null===b||void 0===b||b.forEach((function(e){var n,t,r,a=e.match(/(^#{1,3}[^#].*)/g),o=null!==(n=null===(t=e.match(/(#)/gm))||void 0===t?void 0:t.length)&&void 0!==n?n:1;if(null!==a&&void 0!==a&&a.length){var i=Z(e),c=i.id,d=i.title,u=3===o?(r=c,"".concat(s,"/api/").concat(r).concat(l)):void 0,h=(0,v.Z)({level:o,id:c,title:d,children:[]},u?{path:u}:{});E=k(E,h),S={id:c,title:d},T=o}else 3===T&&(I[S.id]={title:S.title,content:e})})),{readme:p,apiReference:I,menuItems:E}},T=t(74165),E=t(15861),I=function(e,n){return n?"".concat(n,"/").concat(e):e},L=function(e,n,t){var r="".concat(y.i0.PACKAGES_PREFIX,"/"),a=I(e,t),o="/v".concat(n);return"".concat(r).concat(a).concat(o)},O=function(e){var n=e;return(n.startsWith("~")||n.startsWith("^"))&&(n=n.substring(1)),n},A=function(){var e=(0,E.Z)((0,T.Z)().mark((function e(n,t,r){var a,o;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(L(n,t,r)).concat(y.i0.ASSEMBLY_SUFFIX),e.next=3,fetch(a);case 3:if((o=e.sent).ok){e.next=6;break}throw new Error("Failed fetching assembly for ".concat(a,": ").concat(o.statusText));case 6:return e.abrupt("return",o.json());case 7:case"end":return e.stop()}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}(),P=function(e,n,t){return"/docs-".concat(t?"".concat(t,"-"):"").concat(e,".").concat(n)},B=function(){var e=(0,E.Z)((0,T.Z)().mark((function e(n,t,r,a,o){var i,c,s,l,d;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=P(r,"md",o),c="".concat(L(n,t,a)).concat(i),e.next=4,fetch(c);case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Failed fetching documentation for ".concat(c,": ").concat(s.statusText));case 7:if(l="text/markdown",(d=s.headers.get("Content-Type"))&&d.includes(l)){e.next=11;break}throw new Error("Invalid content type: ".concat(d,". Expected ").concat(l,'"'));case 11:return e.abrupt("return",s.text());case 12:case"end":return e.stop()}}),e)})));return function(n,t,r,a,o){return e.apply(this,arguments)}}(),D=function(){var e=(0,E.Z)((0,T.Z)().mark((function e(n,t,r,a,o){var i,c,s,l,d;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=P(r,"json",o),c="".concat(L(n,t,a)).concat(i),e.next=4,fetch(c);case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Failed fetching documentation for ".concat(c,": ").concat(s.statusText));case 7:if(l="application/json",(d=s.headers.get("Content-Type"))&&d.includes(l)){e.next=11;break}throw new Error("Invalid content type: ".concat(d,". Expected ").concat(l,'"'));case 11:return e.abrupt("return",s.json());case 12:case"end":return e.stop()}}),e)})));return function(n,t,r,a,o){return e.apply(this,arguments)}}(),z=function(){var e=(0,E.Z)((0,T.Z)().mark((function e(n,t,r){var a,o,i;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=t).startsWith("^")&&(a=a.substring(1,a.length)),o="".concat(L(n,t,r)).concat(y.i0.METADATA_SUFFIX),e.next=5,fetch(o);case 5:if((i=e.sent).ok){e.next=8;break}throw new Error("Failed fetching metadata for ".concat(o,": ").concat(i.statusText));case 8:return e.abrupt("return",i.json());case 9:case"end":return e.stop()}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}(),U=t(86617),M=t(7991),N=t(4487),R={packages:{},updated:"NOT_FOUND"},W=function(){var e=(0,E.Z)((0,T.Z)().mark((function e(){var n;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(y.i0.ALL_VERSIONS);case 2:if((n=e.sent).ok){e.next=7;break}return console.error(n.statusText),console.warn("Could not retrieve package versions. Using empty data."),e.abrupt("return",R);case 7:return e.abrupt("return",n.json().catch((function(e){return console.error(e),console.warn("Error in package versions response. Using empty data."),R})));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=t(80184),F=(0,s.createContext)(void 0),G=function(){var e=(0,s.useContext)(F);if(!e)throw new Error("This component must be a child of a <PackageStateProvider />");return e},K=function(e){var n,t,i,c,l,d=e.children,u=(0,r.UO)(),h=u.name,f=u.scope,p=u.version,x="".concat(f,"/").concat(h,"/v").concat(p),g=(0,M.Z)(),b=(0,o.Z)(g,1)[0],j=null!==(n=(0,N.K)().get(y.Tx.SUBMODULE))&&void 0!==n?n:"",w=(0,m.useQuery)("Versions",W).data,k=f?"".concat(f,"/").concat(h):h,C=null===w||void 0===w?void 0:w.packages[k],Z=(0,m.useQuery)("".concat(x,"-docs-").concat(b,"-").concat(j,"-md"),(function(){return B(h,p,U.$[b],f,j)})),T=(0,m.useQuery)("".concat(x,"-docs-").concat(b,"-").concat(j,"-json"),(function(){return D(h,p,U.$[b],f,j)})),E=(0,m.useQuery)("".concat(x,"-assembly"),(function(){return A(h,p,f)})),I=(0,m.useQuery)("".concat(x,"-metadata"),(function(){return z(h,p,f)})),L="".concat(f?"".concat(f,"/").concat(h):h," ").concat(p),O=null!==(t=null===(i=E.data)||void 0===i?void 0:i.description)&&void 0!==t?t:"",P=Boolean(Z.error||T.error||E.error),R=Boolean(!Z.isLoading&&!T.isLoading&&!E.isLoading&&Z.data&&T.data&&E.data),G=Boolean(b===U.SQ.TypeScript||E.isLoading||E.error||null!=(null===(c=E.data)||void 0===c||null===(l=c.targets)||void 0===l?void 0:l[b.toString()])),K=Boolean(!I.isLoading&&(E.isLoading||Z.isLoading||T.isLoading)),V=(0,s.useMemo)((function(){return Z.data?S(Z.data,{scope:f,name:h,version:p,language:b,submodule:j}):{menuItems:[]}}),[Z.data,h,f,p,b,j]);return E.error?(0,H.jsx)(a.NotFound,{}):(0,H.jsx)(F.Provider,{value:(0,v.Z)({assembly:E,hasDocs:R,hasError:P,isLoadingDocs:K,isSupported:G,language:b,markdownDocs:Z,jsonDocs:T,metadata:I,name:h,pageDescription:O,pageTitle:L,scope:f,version:p,allVersions:C},V),children:d})},V=t(88606),_=(0,V.$)("package-page",["page","feedbackLinks","reportLink","reportAbuseLink","githubLink","dependenciesTab","dependenciesList","dependenciesLink","badgeTab","description","markdown","selectVersionButton","selectVersionDropdown","selectVersionItem"]),q=t(67003),Q=t(7752),X=t(19748),$=function(){var e,n=G().assembly.data;if(!n)return(0,H.jsx)(Q.w,{});var t=Object.entries(null!==(e=n.dependencies)&&void 0!==e?e:{});return t.length?(0,H.jsx)(i.Kq,{"data-testid":_.dependenciesList,direction:"row",justify:"center",mx:"auto",spacing:4,wrap:"wrap",children:t.map((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1];return(0,H.jsxs)(q.O,{_first:{ml:4},"data-testid":_.dependenciesLink,fontWeight:"semibold",p:2,to:(0,X.Mt)({name:t,version:O(r)}),children:[t," - ",r]},"".concat(t,"-").concat(r))}))}):(0,H.jsx)(i.M5,{children:"This library does not have any known CDK dependencies"})},Y=t(75272),J=t(10855),ee=t(6074),ne=t(76798),te=t(69113),re=function(e){return(0,H.jsxs)(te.JO,(0,v.Z)((0,v.Z)({},e),{},{children:[(0,H.jsx)("path",{clipRule:"evenodd",d:"M10.2532 0C4.59124 0 0 4.59022 0 10.2532C0 14.7835 2.93785 18.6266 7.01174 19.9825C7.524 20.0776 7.71212 19.7601 7.71212 19.4893C7.71212 19.2448 7.70261 18.4371 7.6982 17.5804C4.84576 18.2006 4.24386 16.3706 4.24386 16.3706C3.77745 15.1855 3.10543 14.8704 3.10543 14.8704C2.17499 14.234 3.17555 14.2473 3.17555 14.2473C4.20498 14.3194 4.74728 15.3039 4.74728 15.3039C5.66176 16.871 7.14588 16.418 7.73097 16.1562C7.82299 15.4935 8.08871 15.041 8.38194 14.785C6.10457 14.5261 3.71038 13.6467 3.71038 9.718C3.71038 8.59859 4.11108 7.68394 4.76697 6.96573C4.66035 6.70765 4.30939 5.66481 4.86613 4.25252C4.86613 4.25252 5.72696 3.97695 7.68631 5.3035C8.50435 5.07616 9.38165 4.96189 10.2532 4.95799C11.1242 4.96189 12.002 5.07582 12.8216 5.30317C14.7785 3.97661 15.6383 4.25218 15.6383 4.25218C16.1964 5.6643 15.8455 6.70731 15.739 6.96539C16.3964 7.6836 16.7943 8.59825 16.7943 9.71766C16.7943 13.6557 14.3957 14.5227 12.1125 14.7767C12.4805 15.0949 12.8081 15.719 12.8081 16.6754C12.8081 18.0473 12.7963 19.1514 12.7963 19.4891C12.7963 19.762 12.981 20.0817 13.5005 19.981C17.5721 18.6237 20.5065 14.7818 20.5065 10.2532C20.5063 4.59056 15.9156 0.000169776 10.2532 0.000169776V0Z",fill:"currentColor",fillRule:"evenodd"}),(0,H.jsx)("path",{d:"M3.88318 14.7214C3.86059 14.7724 3.78045 14.7876 3.70744 14.7528C3.63274 14.7195 3.59114 14.6501 3.61525 14.599C3.63732 14.5464 3.71763 14.5319 3.79183 14.5671C3.86654 14.6005 3.90898 14.6706 3.88301 14.7216L3.88318 14.7214ZM4.29848 15.1848C4.24975 15.2301 4.15416 15.209 4.0893 15.1372C4.02206 15.0659 4.0095 14.9703 4.05925 14.9243C4.10984 14.8791 4.20255 14.9005 4.26978 14.9719C4.33668 15.0442 4.34992 15.1389 4.29865 15.1849L4.29848 15.1848ZM4.70291 15.7751C4.64009 15.8189 4.5372 15.778 4.4737 15.6868C4.41088 15.5955 4.41088 15.486 4.4754 15.4423C4.53873 15.3985 4.64009 15.4381 4.70461 15.5284C4.76709 15.621 4.76709 15.7305 4.70291 15.775V15.7751ZM5.25659 16.3458C5.20056 16.4078 5.08069 16.3911 4.99308 16.3067C4.9036 16.224 4.87864 16.1064 4.93484 16.0446C4.99189 15.9824 5.11227 15.9998 5.20039 16.0836C5.28987 16.1661 5.31687 16.284 5.25693 16.3456L5.25659 16.3458ZM6.02064 16.677C5.99568 16.7573 5.88056 16.7939 5.76426 16.7596C5.64829 16.7244 5.5724 16.6305 5.59617 16.5494C5.61994 16.4684 5.7359 16.4305 5.85289 16.467C5.96885 16.502 6.04475 16.5954 6.02064 16.677ZM6.8599 16.7383C6.86279 16.8229 6.76431 16.8928 6.64257 16.8945C6.51982 16.8974 6.42049 16.8288 6.4193 16.7456C6.4193 16.6602 6.51574 16.5911 6.63833 16.5887C6.76007 16.5865 6.86007 16.6545 6.86007 16.7382L6.8599 16.7383ZM7.64059 16.6056C7.65519 16.6879 7.57047 16.7726 7.44941 16.7952C7.33056 16.8173 7.22019 16.766 7.20491 16.6843C7.19031 16.5998 7.27656 16.5151 7.39541 16.4932C7.51664 16.4723 7.62531 16.522 7.64059 16.6057V16.6056Z",fill:"currentColor"})]}))},ae={h:6,ml:2,w:6},oe=function(){var e,n=G(),t=(0,J.Sx)({base:"horizontal",md:"vertical"}),r=(0,H.jsx)(i.iz,{borderColor:"white",mr:6,orientation:t}),a=n.metadata.data,o=n.assembly.data;if(!o||!a)return null;var c,s=null!==(e=null===o||void 0===o?void 0:o.repository)&&void 0!==e?e:{},l=void 0;"git"===s.type&&((l=null!==(c=s.url)&&void 0!==c&&c.endsWith(".git")?s.url.replace(".git",""):s.url).endsWith("/")&&(l=l.slice(0,l.length-1)));return(0,H.jsxs)(i.Kq,{align:"center",backgroundColor:"blue.600",borderTop:"1px solid",borderTopColor:"borderColor",color:"white","data-testid":_.feedbackLinks,direction:{base:"column",md:"row"},justify:"space-evenly",px:8,py:5,spacing:4,children:[l&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(ee.d,{color:"currentcolor","data-event":u.FEEDBACK.PUBLISHER,"data-testid":_.githubLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(l,"/issues"),rightIcon:(0,H.jsx)(re,(0,v.Z)({color:"white"},ae)),variant:"solid",children:"Provide feedback to publisher"}),r]}),(0,H.jsx)(ee.d,{color:"currentcolor","data-event":u.FEEDBACK.CONSTRUCT_HUB,"data-testid":_.reportLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(ne.Sx,"/issues/new"),rightIcon:(0,H.jsx)(re,(0,v.Z)({color:"white"},ae)),children:"Provide feedback to Construct Hub"}),r,(0,H.jsx)(ee.d,{color:"currentcolor","data-event":u.FEEDBACK.ABUSE,"data-testid":_.reportAbuseLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"mailto:abuse@amazonaws.com?subject=".concat(encodeURIComponent("ConstructHub - Report of abusive package: ".concat(null===o||void 0===o?void 0:o.name))),rightIcon:(0,H.jsx)(Y.LQ,(0,v.Z)({},ae)),children:"Report abuse"})]})},ie=t(65223),ce=t(82504),se=t(3308),le=t(31959),de=t(95798),ue=t(57992),he=t(89570),fe=(0,le.Gp)((function(e,n){var t=e.value,r=e.onChange,a=e.onSubmit,i=(0,s.useState)(t),c=(0,o.Z)(i,2),l=c[0],d=c[1];return(0,he.N)(l,{onChange:r}),(0,H.jsx)(ue.l,{"data-testid":"choose-submodule-search-form",onSubmit:a,children:(0,H.jsxs)(de.BZ,{children:[(0,H.jsx)(de.Z8,{children:(0,H.jsx)(Y.W1,{color:"gray.400"})}),(0,H.jsx)(de.II,{"data-testid":"choose-submodule-search-input",onChange:function(e){return d(e.target.value)},placeholder:"Search",ref:n,value:l,variant:"filled"})]})})}));fe.displayName="SearchInput";var pe=t(3669),ve=function(e){var n=e.inputValue,t=e.isOpen,a=e.onClose,o=e.onInputChange,c=e.submodules,l=(0,s.useRef)(null),d=(0,r.k6)().push,u=(0,s.useCallback)((function(e){a(),d(e)}),[a,d]),h=(0,s.useCallback)((function(e){if(e.preventDefault(),c.length){var n=c[0].to;u(n)}}),[u,c]);return(0,H.jsx)(se.u_,{initialFocusRef:l,isOpen:t,onClose:a,children:(0,H.jsx)(se.ZA,{children:(0,H.jsxs)(se.hz,{mx:4,children:[(0,H.jsx)(se.ol,{"data-testid":"choose-submodule-modal-close"}),(0,H.jsx)(se.xB,{"data-testid":"choose-submodule-modal-header",fontSize:"lg",fontWeight:"bold",children:"Choose a submodule"}),(0,H.jsxs)(se.fe,{"data-testid":"choose-submodule-modal-body",p:0,children:[(0,H.jsx)(i.xu,{pb:4,px:4,children:(0,H.jsx)(fe,{onChange:o,onSubmit:h,ref:l,value:n})}),(0,H.jsx)(i.iz,{}),(0,H.jsx)(i.QI,{"data-testid":"choose-submodule-modal-results",m:0,maxH:"50vh",overflow:"hidden auto",p:0,role:"listbox",tabIndex:-1,children:c.map((function(e){var n=e.name,t=e.to;return(0,H.jsx)(pe.T,{"data-testid":"choose-submodule-result",name:n,onClick:function(){return u(t)}},n)}))})]})]})})})},me=function(){var e,n,t,a=G(),c=a.assembly,l=a.name,d=a.language,u=a.scope,h=a.version,f=(0,r.k6)().push,p=(0,N.K)(),v=Object.keys(null!==(e=null===c||void 0===c||null===(n=c.data)||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}),m=(0,ie.qY)(),x=m.isOpen,g=m.onOpen,b=m.onClose,j=p.get(y.Tx.SUBMODULE),w=j?"Submodule: ".concat(j):"Choose Submodule",k=(0,s.useState)(""),C=(0,o.Z)(k,2),Z=C[0],S=C[1],T=u?"".concat(u,"/").concat(l):l,E=(0,s.useCallback)((function(e){return(0,X.Mt)({name:T,version:h,language:d,submodule:e})}),[d,T,h]),I=(0,s.useMemo)((function(){var e=v;return Z&&(e=e.filter((function(e){return e.toLowerCase().includes(Z.toLowerCase())}))),e.map((function(e){var n=e.split(".")[1];return{name:n,to:E(n)}}))}),[v,Z,E]);return 0===v.length?null:(0,H.jsxs)(i.Kq,{spacing:4,w:"100%",children:[j&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(ce.zx,{borderRadius:"none","data-testid":"choose-submodule-go-back",leftIcon:(0,H.jsx)(Y.Rp,{"aria-label":"Back to construct root"}),onClick:function(){f((0,X.Mt)({name:T,version:h,language:d}))},title:"Back to construct root",variant:"link",children:null===c||void 0===c||null===(t=c.data)||void 0===t?void 0:t.name}),(0,H.jsx)(i.iz,{})]}),(0,H.jsx)(ce.zx,{borderRadius:"none",color:"blue.500","data-testid":"choose-submodule-search-trigger",flexGrow:1,onClick:g,rightIcon:(0,H.jsx)(Y.v4,{}),title:"Choose Submodule",variant:"link",children:w}),(0,H.jsx)(ve,{inputValue:Z,isOpen:x,onClose:b,onInputChange:S,submodules:I})]})},xe=t(51922),ge=function(e){var n=e.children,t=e["data-event"],r=e.path,a=e.title,o=e.showToggle,c=e.variant,s=(0,v.Z)({_hover:{bg:"rgba(0, 124, 253, 0.05)"},overflow:"hidden",pl:1,py:o?2:1,marginLeft:o?0:1,fontWeight:o?"bold":void 0,textOverflow:"ellipsis",whiteSpace:"nowrap",w:"100%"},"sm"===c?{fontSize:"sm"}:{fontSize:"md"});return r?(0,H.jsx)(q.O,(0,v.Z)((0,v.Z)({"data-event":t,title:a,to:r},s),{},{children:n})):(0,H.jsx)(i.xv,(0,v.Z)((0,v.Z)({},s),{},{children:n}))},be=t(59534),je=function(e,n){return(0,be.oJ)(e,"NavTree",n)},ye={color:"textTertiary",h:4,w:4},we=function e(n){var t,r,a=n.children,o=n["data-event"],c=n.getIsActiveItem,l=n.id,d=n.title,u=n.path,h=n.level,f=n.onOpen,p=n.variant,m=(0,be.z$)().trackCustomEvent,x=h<2,g=(0,ie.qY)({onOpen:f,defaultIsOpen:x}),b=null!==(t=null===c||void 0===c?void 0:c({id:l,title:d,path:u,children:a}))&&void 0!==t&&t,j=(null!==(r=null===a||void 0===a?void 0:a.length)&&void 0!==r?r:0)>0,y=g.isOpen&&j,w=(0,s.useMemo)((function(){return null===a||void 0===a?void 0:a.map((function(n,t){return(0,s.createElement)(e,(0,v.Z)((0,v.Z)({"data-event":o},n),{},{getIsActiveItem:c,key:t,level:h+1,onOpen:g.onOpen,variant:p}))}))}),[a,o,c,h,g.onOpen,p]);return(0,H.jsxs)(i.kC,{direction:"column",children:[(0,H.jsxs)(i.kC,{align:"center",color:b?"link":"textPrimary",children:[j&&(0,H.jsx)(ce.hU,{"aria-label":"expand-toggle",borderRadius:"md",h:4,icon:g.isOpen?(0,H.jsx)(Y.v4,(0,v.Z)({},ye)):(0,H.jsx)(Y.XC,(0,v.Z)({},ye)),ml:-1,onClick:function(){g.onToggle(),o&&m((0,be.Q5)({name:je(o,"Toggle")}))},size:"xs",variant:"link",w:0}),(0,H.jsx)(ge,{"data-event":o?je(o,"Link"):void 0,path:u,showToggle:j,title:d,variant:p,children:d})]}),(0,H.jsx)(i.xu,{_before:{bg:"borderColor",bottom:0,content:'""',left:0,position:"absolute",top:0,w:"1px"},display:y?"initial":"none",ml:2,mr:2,pl:2,position:"relative",children:w})]})},ke=function(e){var n=e["data-event"],t=e.getIsActiveItem,r=e.items,a=e.variant;return(0,H.jsx)(i.kC,{direction:"column",maxWidth:"100%",children:r.map((function(e,r){return(0,s.createElement)(we,(0,v.Z)((0,v.Z)({},e),{},{"data-event":n,getIsActiveItem:t,key:r,level:0,onOpen:void 0,variant:a}))}))})},Ce=function(){var e,n,t=G(),a=t.assembly,o=t.menuItems,c=(0,ie.qY)(),l=(0,r.TH)(),d=Object.keys(null!==(e=null===(n=a.data)||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}).length>0;return(0,s.useEffect)((function(){c.isOpen&&c.onClose()}),[l]),(0,H.jsxs)(i.xu,{bottom:0,display:{lg:"none"},left:0,pos:"fixed",right:0,children:[(0,H.jsx)(ce.zx,{bg:"bgPrimary",borderTop:"base",boxShadow:"base",fontSize:"xl",fontWeight:"semibold",h:"3.5rem",onClick:c.onOpen,variant:"unstyled",w:"full",children:(0,H.jsxs)(i.kC,{align:"center",justify:"space-between",px:6,children:["Table of contents",(0,H.jsx)(Y.g8,{})]})}),(0,H.jsx)(xe.h_,{children:(0,H.jsxs)(se.dy,(0,v.Z)((0,v.Z)({},c),{},{blockScrollOnMount:!1,placement:"bottom",children:[(0,H.jsx)(se.P1,{}),(0,H.jsxs)(se.sc,{maxH:"60vh",children:[(0,H.jsx)(se.OX,{children:"Table of contents"}),(0,H.jsx)(se.cC,{}),(0,H.jsxs)(se.Ng,{children:[d&&(0,H.jsx)(i.xu,{mb:4,sx:{button:{justifyContent:"initial"}},children:(0,H.jsx)(me,{})}),(0,H.jsx)(ke,{items:o})]})]})]}))})]})},Ze=function(e){var n=e.children;return(0,H.jsx)(i.xv,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",children:n})},Se=t(29370),Te=t(54915),Ee=t.n(Te),Ie=t(5474),Le=t.n(Ie),Oe=t(16580),Ae=t.n(Oe),Pe=t(80092),Be=t(65218),De=t.n(Be),ze=t(45987),Ue=t(28227),Me=t(60185),Ne=t(1250),Re=t(32536),We=["value"],He=(0,le.Gp)((function(e,n){var t=e.value,r=(0,ze.Z)(e,We),a=(0,ie.VP)(t),o=a.hasCopied,i=a.onCopy;return(0,H.jsx)(ce.hU,(0,v.Z)({"aria-label":"Copy Button",color:"blue.500",colorScheme:"brand",h:6,icon:o?(0,H.jsx)(Y.nQ,{color:"green.300"}):(0,H.jsx)(Y.TI,{}),minW:"auto",ml:1,onClick:i,ref:n,variant:"ghost",w:6},r))}));He.displayName="CopyButton";var Fe,Ge=function(e){var n=e.code,t=e.tokens,r=e.getLineProps,a=e.getTokenProps;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(i.kC,{align:"center",bg:"rgba(0, 124, 253, 0.15)",borderTopRadius:"md",justify:"flex-end",px:2,py:1,children:(0,H.jsx)(He,{value:n})}),(0,H.jsx)(i.xu,{overflowX:"auto",p:2,children:t.map((function(e,n){return(0,H.jsx)("div",(0,v.Z)((0,v.Z)({},r({line:e,key:n})),{},{children:e.map((function(e,n){return(0,H.jsx)(i.xu,(0,v.Z)({as:"span",sx:{wordWrap:"normal"}},a({token:e,key:n})),n)}))}),n)}))})]})},Ke=function(e){var n=e.code,t=e.tokens,r=e.getLineProps,a=e.getTokenProps;return(0,H.jsxs)(i.rj,{p:3,templateColumns:"1fr min-content",w:"full",children:[(0,H.jsx)(i.xu,{m:-3,maxW:"full",overflow:"auto",p:3,children:t.map((function(e,n){return(0,H.jsx)("div",(0,v.Z)((0,v.Z)({},r({line:e,key:n})),{},{children:e.map((function(e,n){return(0,H.jsx)("span",(0,v.Z)({},a({token:e,key:n})),n)}))}),n)}))}),(0,H.jsx)(i.kC,{align:"center",ml:1,children:(0,H.jsx)(He,{value:n})})]})},Ve=["code","language"],_e=function(e){var n=e.code,t=e.language,r=(0,ze.Z)(e,Ve),a=(0,Ue.ff)(Re.Z,Ne.Z);return(0,H.jsx)(Me.ZP,(0,v.Z)((0,v.Z)({},Me.lG),{},{code:n,language:t,theme:a,children:function(e){return(0,H.jsx)(i.xu,(0,v.Z)((0,v.Z)({as:"pre",border:"base",borderRadius:"md",boxShadow:"base",className:e.className,style:e.style},r),{},{children:e.tokens.length>1?(0,H.jsx)(Ge,(0,v.Z)((0,v.Z)({},e),{},{code:n})):(0,H.jsx)(Ke,(0,v.Z)((0,v.Z)({},e),{},{code:n}))}))}}))},qe=function(e){var n=e.inline,t=e.children,r=e.language,a=void 0===r?"typescript":r;if(n)return(0,H.jsx)(i.EK,{border:"base",marginTop:"md",mx:2,px:2,py:0,children:t});var o=s.Children.toArray(t).reduce((function(e,n){return"string"===typeof n?"".concat(e).concat(n):e}),"").trim();return(0,H.jsx)(_e,{code:o,fontSize:"0.9rem",language:a})},Qe=t(58340),Xe=function e(n){return s.Children.toArray(n).reduce((function(n,t){return"string"===typeof t?n+t:"object"===typeof t&&"props"in t?n+e(t.props.children):n}),"").trim()},$e=function(e){var n=e.id,t=e.level,a=e.title,o=(0,r.TH)().search;return(0,H.jsx)(q.O,{_active:{visibility:"initial"},_focus:{visibility:"initial"},alignItems:"center","data-heading-id":"#".concat(n),"data-heading-level":t,"data-heading-title":a,display:"flex",id:n,lineHeight:1,opacity:"hidden",replace:!0,to:"".concat(o,"#").concat(n),visibility:"hidden",children:(0,H.jsx)(Y.xP,{boxSize:4})})},Ye=function(e){var n,t,r=e.level,a=e.children,o=["2xl","xl","lg","md","sm","xs"][r-1],c="h".concat(r),s=(new DOMParser).parseFromString(Qe.renderToStaticMarkup(a),"text/html").querySelector("span[data-heading-title][data-heading-id]"),l=null!==(n=null===s||void 0===s?void 0:s.dataset.headingTitle)&&void 0!==n?n:Xe(a),d=null!==(t=null===s||void 0===s?void 0:s.dataset.headingId)&&void 0!==t?t:w(l);return(0,H.jsxs)(i.kC,{_hover:{"> a":{visibility:"initial"}},align:"stretch",borderBottom:"base",justify:"space-between",mb:4,mt:r>=4?"1.5em":4,px:r>=4?2:void 0,py:2,children:[(0,H.jsx)(i.X6,{as:c,color:"textPrimary",level:r,size:o,sx:{"> code":{fontSize:"inherit"}},children:a}),(0,H.jsx)($e,{id:d,level:r,title:l})]})},Je=t(53046),en=t(97005),nn=(0,V.$)("markdown",["container"]),tn=["children","href"],rn={a:function(e){var n=e.children,t=e.href,r=(0,ze.Z)(e,tn),a={color:"link",sx:{"> img + svg":{display:"none"}}};try{if(t&&t.startsWith("http"))if(new URL(t).hostname!==window.location.hostname)return(0,H.jsx)(ee.d,(0,v.Z)((0,v.Z)((0,v.Z)({href:t},a),r),{},{children:n}))}catch(o){}return(0,H.jsx)(q.O,(0,v.Z)((0,v.Z)((0,v.Z)({to:t},a),r),{},{children:n}))},blockquote:function(e){var n=e.children;return(0,H.jsx)(i.xu,{as:"blockquote",borderLeft:"5px solid",borderLeftColor:"borderColor",marginX:"2",px:"2",wordBreak:"break-word",children:n})},caption:en.Rn,code:qe,em:function(e){var n=e.children;return(0,H.jsx)(i.xu,{as:"em",fontStyle:"normal",fontWeight:"bold",children:n})},h1:Ye,h2:Ye,h3:Ye,h4:Ye,h5:Ye,h6:Ye,hr:function(){return(0,H.jsx)(H.Fragment,{})},img:function(e){return(0,H.jsx)(Je.Ee,(0,v.Z)({display:"inline-block"},e))},li:function(e){var n=e.children;return(0,H.jsx)(i.HC,{lineHeight:"tall",marginX:2,sx:{"em:first-of-type":{fontSize:"small"},code:{fontSize:"small"}},children:n})},ol:function(e){var n=e.children;return(0,H.jsx)(i.GS,{children:n})},p:function(e){var n=e.children;return(0,H.jsx)(i.xv,{lineHeight:"1.5",mx:2,my:4,children:n})},pre:function(e){var n=e.children,t=e.lang;return t?(0,H.jsx)(qe,{language:t,children:n}):(0,H.jsx)(i.xu,{as:"pre",children:n})},sup:function(e){var n=e.children,t=void 0,r="";if(Array.isArray(n)){var a=(0,o.Z)(n,1)[0];"string"===typeof a&&(r=a)}return"Required"===r?t="orange.700":"Optional"===r&&(t="green.700"),(0,H.jsx)(i.xu,{as:"sup",color:t,fontSize:"xs",ml:-1,top:-1,children:n})},table:function(e){var n=e.children;return(0,H.jsx)(i.xu,{maxW:"100%",overflowX:"auto",children:(0,H.jsx)(en.iA,{variant:"striped",children:n})})},tbody:en.p3,td:en.Td,tfoot:en.$R,th:en.Th,thead:en.hr,tr:en.Tr,ul:function(e){var n=e.children;return(0,H.jsx)(i.QI,{marginTop:2,padding:0,children:n})}},an=(0,v.Z)({},Se);an.attributes.span=(null!==(Fe=an.attributes.span)&&void 0!==Fe?Fe:[]).concat(["dataHeadingTitle","dataHeadingId"]);var on=[[Le()],[Ae(),an]],cn=[De(),Pe.Z],sn=/^(?:(?:git@)?github\.com:|(?:https?:\/\/)github\.com\/)([^/]+)\/([^/]+)(?:\.git)?$/,ln=function(e){var n=e.children,t=function(e){var n=e.type,t=e.url,r=e.directory;if("git"===n){var a=sn.exec(t);if(null!=a){var i=(0,o.Z)(a,3);return{owner:i[1],repo:i[2],directory:r}}}}(e.repository),r=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HEAD";return null==t?Ee().uriTransformer:function(r){var a=Ee().uriTransformer(r),i=(0,o.Z)(a,1)[0];if("#"===i||"/"===i)return a;if(a.includes("://"))return a;var c=t.owner,s=t.repo.replace(/\.git$/,""),l=t.directory?"".concat(t.directory,"/"):"";return"https://".concat(e,"/").concat(c,"/").concat(s,"/").concat(n,"/").concat(l).concat(a)}};return(0,H.jsx)(i.xu,{"data-testid":nn.container,px:8,children:(0,H.jsx)(Ee(),{components:rn,rehypePlugins:on,remarkPlugins:cn,transformImageUri:r("raw.githubusercontent.com"),transformLinkUri:r("github.com","blob/HEAD"),children:n})})},dn=function(){var e=G(),n=e.isLoadingDocs,t=e.readme,r=e.assembly.data;return!n&&t&&r?"\n"===t?(0,H.jsx)(Ze,{children:"No readme available for this module or submodule"}):(0,H.jsx)(ln,{repository:r.repository,children:t}):null},un=t(91523),hn=function(){var e=G().language,n=(0,H.jsx)(ee.d,{href:"".concat(ne.Sx,"/issues/new"),children:"issue"});return(0,H.jsxs)(Ze,{children:["Documentation in ",e," is still not ready for this package. Come back soon. If this issue persists, please let us know by creating an"," ",n,"."]})},fn=function(e){var n=e.rootId,t=(0,r.TH)(),a=t.pathname,o=t.hash,c=t.search,s=G(),l=s.isLoadingDocs,d=s.assembly.data,u=function(){var e=(0,r.UO)().typeId,n=G().apiReference;if(e)return null===n||void 0===n?void 0:n[e]}();if(l)return null;if(!u||!d)return(0,H.jsx)(hn,{});var h=u.title,f=u.content,p="".concat(a).concat(c,"#").concat(o);return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(i.X6,{as:"h2",p:8,size:"2xl",children:(0,H.jsx)(un.OL,{id:n,to:p,children:h})}),(0,H.jsx)(ln,{repository:d.repository,children:f})]})},pn=["children"],vn=function(){var e=G().menuItems,n=(0,r.TH)(),t=n.pathname,a=n.hash,o=(0,s.useMemo)((function(){return e.reduce((function(e,n,t){if(0===t&&(null===n||void 0===n?void 0:n.id)===f){n.children;var r=(0,ze.Z)(n,pn);e.push((0,v.Z)((0,v.Z)({},r),{},{children:[]}))}else e.push(n);return e}),[])}),[e]),i=(0,s.useCallback)((function(e){var n=e.path,r=new URL(null!==n&&void 0!==n?n:"",window.origin);return Boolean(null!==n&&void 0!==n&&n.includes("/".concat(h,"/"))?r.pathname===t:r.hash&&a&&r.hash===a)}),[a,t]);return(0,H.jsx)(ke,{"data-event":u.SCOPE,getIsActiveItem:i,items:o})},mn=function(e){return e.replace("#","").toLowerCase()},xn=function e(n){var t,r=[mn(n.id)];return null===(t=n.children)||void 0===t||t.forEach((function(n){null!==n&&void 0!==n&&n.id&&r.push.apply(r,(0,g.Z)(e(n)))})),r},gn=function(e){return mn(e.getAttribute("data-heading-id"))},bn=function(e){return new Set(e.map(xn).flat())},jn=t(84506),yn=function(e){return function(n){var t=n.split(".").slice(-e),r=(0,jn.Z)(t);return{path:r[0],hash:"#"+r.slice(1).join(".")}}},wn={initializer:{header:"Initializer Props",getValues:function(e){var n,t;return null!==(n=null===(t=e.initializer)||void 0===t?void 0:t.parameters)&&void 0!==n?n:[]},getPath:yn(4)},instanceMethods:{header:"Instance Methods",getValues:function(e){return e.instanceMethods},getPath:yn(2)},staticMethods:{header:"Static Methods",getValues:function(e){return e.staticMethods},getPath:yn(2)},properties:{header:"Properties",getValues:function(e){return e.properties},getPath:yn(3)},constants:{header:"Constants",getValues:function(e){return e.constants},getPath:yn(3)},members:{header:"Enum Members",getValues:function(e){return e.members},getPath:yn(2)}},kn=function(){var e,n=(0,r.TH)().pathname,t=(0,r.$B)().path,a=G(),i=a.menuItems,c=a.jsonDocs,l=(0,r.$B)("".concat(t,"/").concat(h,"/:typeId")),d=null===l||void 0===l?void 0:l.params.typeId,u=(0,M.Z)(),p=(0,o.Z)(u,1)[0],v=null!==(e=(0,N.K)().get(y.Tx.SUBMODULE))&&void 0!==e?e:"",m=(0,s.useMemo)((function(){var e;if(!c.data)return{types:[]};var n=null===(e=c.data)||void 0===e?void 0:e.apiReference;return n?{types:[].concat((0,g.Z)(n.classes),(0,g.Z)(n.constructs),(0,g.Z)(n.interfaces),(0,g.Z)(n.structs),(0,g.Z)(n.enums)),metadata:c.data.metadata}:{types:[]}}),[c]),x=m.types,b=m.metadata;return(0,s.useMemo)((function(){if(!function(e){var n=e.split("/");return n[n.length-2]===h}(n)){var e=(0,o.Z)(i,1)[0];return(null===e||void 0===e?void 0:e.id)===f?e.children:[]}var t=x.find((function(e){return e.displayName===d}));return t&&b?function(e,n,t){for(var r=[],a=function(){var a=(0,o.Z)(c[i],2),s=a[0],l=a[1],d=l.header,u=l.getValues,h=l.getPath;if(s in e){var f,p={level:1,id:d,title:d,children:[]},v=u(e).map((function(e){var r=h(e.id),a=r.path,o=r.hash,i="?".concat(y.Tx.LANGUAGE,"=").concat(n);return t&&(i+="&".concat(y.Tx.SUBMODULE,"=").concat(t)),{level:2,id:o,title:e.displayName,path:"".concat(a).concat(i).concat(o),children:[]}}));v.length>0&&((f=p.children).push.apply(f,(0,g.Z)(v)),r.push(p))}},i=0,c=Object.entries(wn);i<c.length;i++)a();return r}(t,p,v):[]}),[p,i,b,n,v,d,x])},Cn={rootMargin:"-15% 0% -15% 0%"},Zn={attributes:!1,childList:!0,subtree:!0},Sn=function(){var e=function(){var e=kn(),n=(0,s.useRef)(bn(e)),t=(0,s.useState)((0,g.Z)(n.current)[0]),r=(0,o.Z)(t,2),a=r[0],i=r[1],c=(0,s.useMemo)((function(){return new IntersectionObserver((function(e){var n;e.forEach((function(e){e.isIntersecting&&(n=e.target)})),n&&i(gn(n))}),Cn)}),[]);return(0,s.useEffect)((function(){var t=bn(e);n.current=t;var r=(0,o.Z)(t,1)[0];return i(r),function(){i(void 0)}}),[e]),(0,s.useEffect)((function(){var e=document.getElementById(p);if(e){var t,r=new MutationObserver((function(e){var r;e.length&&(null===(r=t)||void 0===r||r.forEach((function(e){c.unobserve(e)})),(t=document.querySelectorAll("[data-heading-id]")).forEach((function(e){var t=gn(e);n.current.has(t)&&c.observe(e)})))}));return r.observe(e,Zn),function(){r.disconnect()}}}),[c]),a}(),n=kn(),t=(0,r.TH)().hash,a=(0,s.useRef)(!1),i=(0,s.useState)(t),c=(0,o.Z)(i,2),l=c[0],d=c[1];(0,s.useEffect)((function(){d(t),a.current=!1,setTimeout((function(){a.current=!0}),500)}),[t]),(0,s.useEffect)((function(){l&&a.current&&d(void 0)}),[e]);var h=(0,s.useCallback)((function(n){var t=n.path,r=n.id;return l?new URL(null!==t&&void 0!==t?t:"",window.origin).hash===l:mn(r)===e}),[e,l]);return(0,H.jsx)(ke,{"data-event":u.SCOPE,getIsActiveItem:h,items:n,variant:"sm"})},Tn=["offset"],En=function(e){var n=e.offset,t=(0,ze.Z)(e,Tn);return(0,H.jsx)(i.kC,(0,v.Z)({alignSelf:"stretch",as:"nav",direction:"column",display:{base:"none",lg:"flex"},maxHeight:"calc(100vh - ".concat(n,")"),overflow:"hidden auto",position:"sticky"},t))},In="4.5rem",Ln=function(){var e,n=G().assembly.data;return Object.keys(null!==(e=null===n||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}).length>0?(0,H.jsx)(i.kC,{borderBottom:"1px solid",borderColor:"borderColor",justify:"center",py:4,children:(0,H.jsx)(me,{})}):null},On=function(){var e=(0,r.$B)().path,n=G().markdownDocs,t=(0,r.TH)(),a=t.hash,o=t.pathname,c=t.search;return(0,s.useEffect)((function(){window.requestAnimationFrame((function(){if(a){var e=document.querySelector('[data-heading-id="'.concat(a,'"]'));null===e||void 0===e||e.scrollIntoView(!0)}else window.scrollTo(0,0)}))}),[a,o,n.isLoading]),(0,H.jsxs)(i.rj,{columnGap:4,h:"full",templateColumns:{base:"1fr",lg:"minmax(20rem, 1fr) 3fr minmax(16rem, 0.9fr)"},width:"100%",children:[(0,H.jsxs)(En,{borderRight:"1px solid",borderRightColor:"borderColor",offset:In,pl:6,pr:4,top:In,children:[(0,H.jsx)(Ln,{}),(0,H.jsx)(i.xu,{overflowY:"auto",py:4,children:(0,H.jsx)(vn,{})})]}),(0,H.jsx)(i.xu,{h:"max-content",id:p,maxWidth:"100%",overflow:"hidden",py:4,sx:{a:{scrollMarginTop:In}},children:(0,H.jsxs)(r.rs,{children:[(0,H.jsx)(r.l_,{exact:!0,from:"".concat(e,"/").concat(h),to:{pathname:e,search:c}}),(0,H.jsx)(r.AW,{exact:!0,path:e,children:(0,H.jsx)(dn,{})}),(0,H.jsx)(r.AW,{exact:!0,path:"".concat(e,"/").concat(h,"/:typeId"),children:(0,H.jsx)(fn,{rootId:"apidocs_header"})})]})}),(0,H.jsx)(En,{borderLeft:"1px solid",borderLeftColor:"borderColor",offset:In,pl:6,pr:4,top:In,children:(0,H.jsx)(i.xu,{overflowY:"auto",py:4,children:(0,H.jsx)(Sn,{})})}),(0,H.jsx)(Ce,{})]})},An=t(92213),Pn=t(81070),Bn=t(77231),Dn=t(44717),zn=["openText","closeText","isOpen"],Un=function(e){var n=e.openText,t=e.closeText,r=e.isOpen,a=(0,ze.Z)(e,zn);return(0,H.jsx)(ce.zx,(0,v.Z)((0,v.Z)({color:"link",colorScheme:"blue",leftIcon:r?(0,H.jsx)(Y.g8,{}):(0,H.jsx)(Y.v4,{}),variant:"link"},a),{},{children:r?t:n}))},Mn=t(50535),Nn=["license"],Rn=(0,le.Gp)((function(e,n){var t=e.license,r=(0,ze.Z)(e,Nn),a=Dn[t].url;return(0,H.jsx)(ee.d,(0,v.Z)((0,v.Z)({href:a,ref:n},r),{},{children:t}))}));Rn.displayName="LicenseLink";var Wn=t(79227),Hn="MMM dd, yyyy 'at' h:mmaaa",Fn=t(56804),Gn=t(10297),Kn=t(98371),Vn=function(e){var n=e.children,t=e.label,r=e.tooltip;return(0,H.jsx)(Pn.u,{hasArrow:!0,isDisabled:!r,label:r,placement:"left",children:(0,H.jsxs)(i.xv,{fontWeight:"bold",children:[t," ",(0,H.jsx)(i.xu,{as:"span",fontWeight:"normal",children:n})]})})},_n=function(e){var n=e.downloads;return(0,H.jsx)(Vn,{label:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(i.xu,{as:"span",mr:1,children:(0,H.jsx)(Y._8,{})}),n.toLocaleString()]}),tooltip:"Download numbers are periodically sourced from the npm registry",children:"Weekly downloads"})},qn=function(e){var n=G(),t=(0,Gn.V)().data,r=(0,ie.qY)({defaultIsOpen:!0}),a=(0,Fn.E)("packageLinks"),c=n.assembly.data,l=n.metadata.data,d=n.scope?"".concat(n.scope,"/").concat(n.name):n.name,u=(0,Kn.JA)(null===l||void 0===l?void 0:l.packageTags),h=(0,o.Z)(u,1)[0],f=function(e){var n=e.assembly,t=e.metadata,r=e.name,a=e.packageLinks,o=e.stats,i=[];if(n||t||o||a){var c,l,d,u,h,f=null===o||void 0===o||null===(c=o.packages)||void 0===c||null===(l=c[r])||void 0===l||null===(d=l.downloads)||void 0===d?void 0:d.npm;void 0!==f&&i.push((0,H.jsx)(_n,{downloads:f}));var p=null===n||void 0===n?void 0:n.author.name,v=null===n||void 0===n?void 0:n.repository,m=null===n||void 0===n?void 0:n.license;if(p){var x=(0,H.jsx)(q.O,{color:"link",to:(0,X.yc)({query:p}),children:p});i.push((0,H.jsx)(Vn,{label:"Author",children:x}))}var g=null===t||void 0===t?void 0:t.date;if(g){var b=(0,H.jsx)(Wn.q,{date:new Date(g),fontWeight:"normal",format:Hn});i.push((0,H.jsx)(Vn,{label:"Published",children:b}))}if(v){var j=(0,X.rM)(v.url);if(j){var y=(0,H.jsx)(ee.d,{href:j.url,children:j.hostname});i.push((0,H.jsx)(Vn,{label:"Repository",children:y}))}}if(m&&m in Dn){var w=(0,H.jsx)(Rn,{license:m});i.push((0,H.jsx)(Vn,{label:"License",children:w}))}null!==a&&void 0!==a&&a.length&&a.forEach((function(e){var n,r=e.linkLabel,a=e.configKey,o=e.linkText,c=(null!==(n=null===t||void 0===t?void 0:t.packageLinks)&&void 0!==n?n:{})[a];if(c){var s=(0,H.jsx)(ee.d,{href:c,children:null!==o&&void 0!==o?o:c});i.push((0,H.jsxs)(Vn,{label:r,children:[r,": ",s]}))}}));var k=null!==(u=null===t||void 0===t||null===(h=t.links)||void 0===h?void 0:h.npm)&&void 0!==u?u:"https://www.npmjs.com/package/".concat(null===n||void 0===n?void 0:n.name,"/v/").concat(null===n||void 0===n?void 0:n.version);if(k){var C=(0,H.jsx)(ee.d,{href:k,children:new URL(k).hostname});i.push((0,H.jsx)(Vn,{label:"Registry",children:C}))}}return i.map((function(e,n){return(0,H.jsx)(s.Fragment,{children:e},n)}))}({assembly:c,metadata:l,name:d,packageLinks:a,stats:t});if(!f.length)return null;var p=f.slice(0,2),m=f.slice(2,f.length);return(0,H.jsxs)(i.Kq,(0,v.Z)((0,v.Z)({align:"start",color:"textPrimary",fontSize:".75rem",mt:2,spacing:2},e),{},{children:[h&&(0,H.jsx)(Mn.y,(0,v.Z)({},h)),p,m.length>0&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Bn.UO,{animateOpacity:!0,in:r.isOpen,children:(0,H.jsx)(i.Kq,{spacing:2,children:m})}),(0,H.jsx)(Un,{closeText:"See fewer details (".concat(p.length,")"),fontSize:"inherit",isOpen:r.isOpen,onClick:r.onToggle,openText:"See more details (".concat(m.length,")")})]})]}))},Qn=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.map((function(e){return'"'.concat(e.map((function(e){return null!==e&&void 0!==e?e:"."})).join(" "),'"')})).join(" ")},Xn="heading",$n="install",Yn="languages",Jn="meta",et=Qn([Xn],[Jn],[Yn],[$n]),nt=Qn([Xn,Yn,$n],[Xn,null,Jn]),tt=function(e){var n=e.children;return(0,H.jsx)(i.rj,{bg:"bgSecondary",columnGap:{md:6,lg:10},pt:{base:3,lg:6},px:{base:5,md:6,lg:10},rowGap:{base:4,lg:0},templateAreas:{base:et,lg:nt},templateColumns:{base:"1fr",lg:"1fr auto 15rem"},templateRows:{lg:"auto 1fr"},children:n})},rt=t(57640),at=t(10724),ot=t.n(at),it=t(59707),ct=function(){var e=G(),n=e.scope,t=e.name,a=e.version,i=e.allVersions,c=e.language,l=n?"".concat(n,"/").concat(t):t,d=(0,it.A)(),h=(0,r.k6)(),f=h.push,p=h.location,v=d.findByName(l),m=(0,s.useMemo)((function(){var e=v.map((function(e){return e.version})),n=(0,g.Z)(new Set([].concat((0,g.Z)(null!==i&&void 0!==i?i:[]),(0,g.Z)(e),[a])));return n.sort(ot().rcompare),n}),[v,a,i]);return(0,H.jsx)(rt.Ph,{"data-event":u.SELECT_VERSION,"data-testid":_.selectVersionDropdown,fontWeight:"500",onChange:function(e){var n=p.pathname,t=p.hash,r="";if(n.includes("/api/")){var a=n.split("/api/");r=(0,o.Z)(a,2)[1]}var i=[(0,X.Mt)({name:l,version:e.target.value,language:c,api:r}),t].join("");f(i)},size:"sm",value:a,width:"10rem",children:m.map((function(e){return(0,H.jsx)("option",{"data-testid":_.selectVersionItem,"data-value":e,value:e,children:"v".concat(e)},e)}))})},st=t(37864),lt=t(77766),dt=t(29988),ut=["assembly","name","description","metadata","version"],ht=function(e){var n,t,r=e.assembly,a=e.name,c=e.description,s=e.metadata,l=(e.version,(0,ze.Z)(e,ut)),d=(0,Kn.QX)({packageTags:null!==(n=null===s||void 0===s?void 0:s.packageTags)&&void 0!==n?n:[],keywords:null!==(t=null===r||void 0===r?void 0:r.keywords)&&void 0!==t?t:[]}),h=(0,st.eG)(s),f=(0,o.Z)(h,1)[0],p=null!==f&&void 0!==f?f:[],m=(0,o.Z)(p,2),x=m[0],g=m[1],b=1===h.size?u.CDK_BADGE.eventName("".concat(x).concat(void 0!==g?" v".concat(g):"")):void 0;return(0,H.jsxs)(i.Kq,(0,v.Z)((0,v.Z)({lineHeight:"1.5",maxW:"full",overflow:"hidden",spacing:2},l),{},{children:[(0,H.jsxs)(i.kC,{align:"center",wrap:"wrap",children:[(0,H.jsx)(i.X6,{color:"textPrimary",flexShrink:1,fontSize:"1.5rem",isTruncated:!0,mr:4,children:a}),(0,H.jsx)(ct,{})]}),(0,H.jsx)(i.xv,{"data-testid":_.description,fontSize:"1rem",children:c}),(0,H.jsxs)(i.kC,{align:"center",direction:"row",pt:1,sx:{gap:"0.5rem"},wrap:"wrap",children:[(0,H.jsx)(lt.u,{constructFrameworks:h,"data-event":b}),d.map((function(e){var n=e.id,t=e.keyword,r=void 0===t?{}:t,a=r.label,o=r.color;return(0,H.jsx)(dt.X,{"data-event":u.KEYWORD.eventName(a),value:n,variant:o,children:a},n)}))]})]}))},ft=function(e){var n=G(),t=n.language,r=n.assembly.data,a=(0,ie.qY)();if(!r)return null;var o=function(e){var n=e.language,t=e.assembly,r=t.version;if(n===U.SQ.TypeScript){var a=t.name;return"npm install ".concat(a,"@").concat(r)}if(n===U.SQ.Python){var o,i,c=null===(o=t.targets)||void 0===o||null===(i=o.python)||void 0===i?void 0:i.distName;if(!c)return;return"pip install ".concat(c,"==").concat(r)}if(n===U.SQ.Java){var s,l,d,u,h,f,p=null===(s=t.targets)||void 0===s||null===(l=s.java)||void 0===l||null===(d=l.maven)||void 0===d?void 0:d.groupId,v=null===(u=t.targets)||void 0===u||null===(h=u.java)||void 0===h||null===(f=h.maven)||void 0===f?void 0:f.artifactId;if(!p||!v)return;return["// add this to your pom.xml","<dependency>"," <groupId>".concat(p,"</groupId>")," <artifactId>".concat(v,"</artifactId>")," <version>".concat(r,"</version>"),"</dependency>"].join("\n")}if(n===U.SQ.DotNet){var m,x,g=null===(m=t.targets)||void 0===m||null===(x=m.dotnet)||void 0===x?void 0:x.packageId;if(!g)return;return"dotnet add package ".concat(g," --version ").concat(r)}if(n===U.SQ.Go){var b,j,y=null===t||void 0===t||null===(b=t.targets)||void 0===b||null===(j=b.go)||void 0===j?void 0:j.moduleName;if(!y)return;return"go get ".concat(y)}}({language:t,assembly:r});return o&&t?(0,H.jsx)(i.kC,(0,v.Z)((0,v.Z)({align:"start",direction:"column",fontSize:".75rem",w:"full"},e),{},{children:t===U.SQ.Java?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Un,{closeText:"Hide",fontSize:"inherit",isOpen:a.isOpen,mt:2,onClick:a.onToggle,openText:"Install"}),(0,H.jsx)(i.xu,{maxW:"full",overflow:"hidden",children:(0,H.jsx)(Bn.UO,{in:a.isOpen,children:(0,H.jsx)(_e,{boxShadow:"none",code:o,fontSize:"inherit",language:t,mt:2})})})]}):(0,H.jsx)(_e,{boxShadow:"none",code:o,fontSize:"inherit",language:t,lineHeight:"2",w:"full"})})):null},pt=t(2148),vt=function(e){var n=e.targetLanguages,t=e.selectedLanguage,r=e.setSelectedLanguage,a=(0,be.z$)().trackCustomEvent;return(0,H.jsx)(i.Kq,{align:"center","data-testid":"language-bar",direction:"row",spacing:2,children:(0,g.Z)(n).sort((function(e,n){return U.a2.indexOf(e)-U.a2.indexOf(n)})).map((function(e){var n=!U.dX.has(e),o=e===t,i=U.kP[e].icon;return(0,H.jsx)(pt.N,{language:e,children:(0,H.jsx)(ce.hU,{"aria-label":"Select ".concat(e," icon"),bg:"bgSecondary",border:"base",borderColor:o?"brand.500":"borderColor",borderRadius:"lg",boxShadow:"base",colorScheme:"brand",cursor:n?"not-allowed":"pointer","data-testid":"language-".concat(e),disabled:n,icon:(0,H.jsx)(i,{"aria-label":"".concat(e,"-icon"),borderRadius:"sm",height:[4,5,6],width:[4,5,6]}),onClick:function(){o||(a((0,be.Q5)({name:u.LANGUAGE.eventName(e)})),r(e))},p:1,variant:"outline",w:"max-content"})},e)}))})},mt=new Set(U.a2),xt=function(){var e,n=G(),t=n.assembly.data,r=n.language,a=(0,M.Z)({updateSaved:!0,updateUrl:!0}),i=(0,o.Z)(a,2)[1],c=(0,M.Z)({updateUrl:!0}),l=(0,o.Z)(c,2)[1],d=[].concat((0,g.Z)(Object.keys(null!==(e=null===t||void 0===t?void 0:t.targets)&&void 0!==e?e:{})),[U.SQ.TypeScript]),u=d.includes(r);(0,s.useEffect)((function(){u||l(U.SQ.TypeScript)}),[u]);var h={selectedLanguage:u?r:U.SQ.TypeScript,setSelectedLanguage:i,targetLanguages:d.filter((function(e){return mt.has(e)}))};return(0,H.jsx)(vt,(0,v.Z)({},h))},gt=function(){var e=G(),n=e.assembly,t=e.metadata,r=e.version,a=n.data,o=t.data;return a&&o?(0,H.jsxs)(tt,{children:[(0,H.jsx)(ht,{assembly:a,description:a.description,gridArea:Xn,metadata:o,name:a.name,version:r}),(0,H.jsx)(i.kC,{align:"start",gridArea:Yn,children:(0,H.jsx)(xt,{})}),(0,H.jsxs)(i.kC,{direction:"column",gridArea:Jn,children:[(0,H.jsx)(i.iz,{borderBottom:"base",display:{md:"none"},mb:2}),(0,H.jsx)(qn,{}),(0,H.jsx)(i.iz,{borderBottom:"base",display:{md:"none"},mt:2})]}),(0,H.jsx)(i.kC,{align:"start",gridArea:$n,children:(0,H.jsx)(ft,{})})]}):(0,H.jsx)(An.$,{mx:"auto",my:10,size:"xl"})},bt=function(){var e=(0,s.useState)(0),n=(0,o.Z)(e,2),t=n[0],r=n[1],a=G(),l=a.scope,d=a.name,u=l?"".concat(l,"/").concat(d):d,h=encodeURIComponent(u);(0,s.useEffect)((function(){r(0)}),[]);var f=window.location.hostname,p=(0,X.Mt)({name:u}),v="https://".concat(f,"/badge?package=").concat(h),m="https://".concat(f).concat(p),x="[![View on Construct Hub](".concat(v,")](").concat(m,")"),g='<a href="'.concat(m,'"><img src="').concat(v,'" alt="View on Construct Hub"/></a>');return(0,H.jsxs)(i.xu,{bg:"bgPrimary",py:1,width:"100%",children:[(0,H.jsx)(i.xv,{pb:3,children:"Use the snippets below in your Git repositories or elsewhere to add a button that links to this package. The button will automatically update to light mode or dark mode based on whether the user's client has requested a light or dark theme."}),(0,H.jsx)(un.rU,{to:p,children:(0,H.jsx)(Je.Ee,{src:"/badge-dynamic.svg"})}),(0,H.jsxs)(c.mQ,{index:t,my:3,onChange:r,variant:"line",children:[(0,H.jsxs)(c.td,{borderBottom:"base",px:{base:0,lg:6},children:[(0,H.jsx)(c.OK,{children:"Markdown"}),(0,H.jsx)(c.OK,{children:"HTML"})]}),(0,H.jsxs)(c.nP,{maxW:"full",children:[(0,H.jsx)(c.x4,{children:(0,H.jsx)(_e,{boxShadow:"none",code:x,fontSize:"inherit",language:"markdown",mt:2})}),(0,H.jsx)(c.x4,{children:(0,H.jsx)(_e,{boxShadow:"none",code:g,fontSize:"inherit",language:"markdown",mt:2})})]})]})]})},jt=t(41712),yt=function(){var e=G(),n=e.pageDescription,t=e.pageTitle,r=(0,s.useState)(0),a=(0,o.Z)(r,2),l=a[0],d=a[1];return(0,s.useEffect)((function(){d(0)}),[t]),(0,H.jsx)(jt.T,{meta:{title:t,description:n},pageName:"packageProfile",children:(0,H.jsxs)(i.rj,{bg:"bgPrimary","data-testid":_.page,maxW:"100vw",templateColumns:"1fr",templateRows:"auto 1fr auto",children:[(0,H.jsx)(gt,{}),(0,H.jsxs)(c.mQ,{index:l,onChange:d,variant:"line",children:[(0,H.jsxs)(c.td,{bg:"bgSecondary",borderBottom:"base",px:{base:0,lg:6},children:[(0,H.jsx)(c.OK,{"data-event":u.DOCUMENTATION.TAB,children:"Documentation"}),(0,H.jsx)(c.OK,{"data-event":u.DEPENDENCIES.TAB,"data-testid":_.dependenciesTab,children:"Dependencies"}),(0,H.jsx)(c.OK,{"data-event":u.GITHUB_BADGE.TAB,"data-testid":_.badgeTab,children:"Share"})]}),(0,H.jsxs)(c.nP,{maxW:"full",children:[(0,H.jsx)(c.x4,{p:0,children:(0,H.jsx)(On,{})}),(0,H.jsx)(c.x4,{children:(0,H.jsx)($,{})}),(0,H.jsx)(c.x4,{children:(0,H.jsx)(bt,{})})]})]}),(0,H.jsx)(oe,{})]})})},wt=function(){return(0,H.jsx)(K,{children:(0,H.jsx)(yt,{})})},kt=t(95038),Ct=function(e,n,t){var r=I(n,t),a=function(e,n){var t=e.packages.filter((function(e){return e.name===n}));return t.length>1?t.sort((function(e,n){var t=new Date(e.metadata.date);return new Date(n.metadata.date).getTime()-t.getTime()}))[0]:t[0]}(e,r);if(a){var o=a.version,i="/v/".concat(o);return"".concat("/packages/").concat(r).concat(i)}},Zt=function(){var e=(0,r.UO)(),n=e.name,t=e.scope,o=(0,kt.r)();if(o.isLoading||!o.data)return(0,H.jsx)(i.M5,{minH:"16rem",children:(0,H.jsx)(An.$,{size:"xl"})});var c=Ct(o.data,n,t);return c?(0,H.jsx)(r.l_,{to:c}):(0,H.jsx)(a.default,{})},St="[^@\\/]+",Tt="@[^\\/]+",Et=function(){var e=(0,r.$B)().path;return(0,H.jsxs)(r.rs,{children:[(0,H.jsx)(r.AW,{exact:!0,path:"".concat(e,"/:scope(").concat(Tt,")?/:name(").concat(St,")"),children:(0,H.jsx)(Zt,{})}),(0,H.jsx)(r.AW,{path:"".concat(e,"/:scope(").concat(Tt,")?/:name(").concat(St,")/v/:version"),children:(0,H.jsx)(wt,{})}),(0,H.jsx)(r.AW,{path:"*",children:(0,H.jsx)(a.NotFound,{})})]})}}}]);
2
- //# sourceMappingURL=545.a8e262dc.chunk.js.map
1
+ "use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[545],{50535:function(e,n,t){t.d(n,{y:function(){return c}});var r=t(28227),a=t(28735),o=t(53046),i=t(80184),c=function(e){var n=e.label,t=e.color,c=e.icon,s=(0,r.ff)("none","brightness(1.75)");return(0,i.jsxs)(a.Kq,{align:"center",direction:"row",filter:s,spacing:2,children:[(0,i.jsx)(o.Ee,{alt:"".concat(n," icon"),src:c,w:4}),(0,i.jsx)(a.xv,{color:t,fontWeight:"bold",children:n})]})}},2148:function(e,n,t){t.d(n,{N:function(){return i}});var r=t(81070),a=t(86617),o=t(80184),i=function(e){var n=e.children,t=e.language,i=a.dX.has(t),c=a.k8[t],s=i?"Click to view documentation in ".concat(c):"Documentation support for ".concat(c," is coming soon!");return(0,o.jsx)(r.u,{hasArrow:!0,label:s,placement:"top-start",children:(0,o.jsx)("span",{children:n})})}},29988:function(e,n,t){t.d(n,{X:function(){return d}});var r=t(1413),a=t(45987),o=t(96450),i=t(19748),c=t(67003),s=t(80184),l=["children","value","label","zIndex"],d=function(e){var n=e.children,t=e.value,d=e.label,u=void 0===d?t:d,h=e.zIndex,f=(0,a.Z)(e,l);return(0,s.jsx)(c.O,{"aria-label":"Tag: ".concat(u),to:(0,i.yc)({keywords:[t]}),zIndex:h,children:(0,s.jsx)(o.Vp,(0,r.Z)((0,r.Z)({_hover:{textDecoration:"underline"}},f),{},{children:(0,s.jsx)(o.Sn,{children:n})}))})}},41712:function(e,n,t){t.d(n,{T:function(){return l}});var r=t(72791),a=t(54270),o={contribute:{event:{name:"Contribute Load"}},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"}}},i=t(59534),c=t(56804),s=t(80184),l=(["default-src 'self' 'unsafe-inline' http://*.awsstatic.com;","connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","frame-src http://aws.demdex.net http://dpm.demdex.net;","img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","object-src 'none';","style-src 'self' 'unsafe-inline';"].join(" "),function(e){var n=e.children,t=e.meta,l=e.pageName,d=(0,i.aQ)(o[l]);(0,r.useEffect)((function(){d()}),[d]);var u=(0,c.E)("feeds")||[],h=t.suffix,f=void 0===h||h,p=t.title,v=t.description,m=f?"".concat(p," - Construct Hub"):p;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(a.q,{children:[!1,(0,s.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,s.jsx)("meta",{charSet:"utf-8"}),u.map((function(e){var n=e.url,t=e.mimeType;return(0,s.jsx)("link",{href:n,rel:"alternate",type:t},n)})),(0,s.jsx)("title",{children:m}),(0,s.jsx)("meta",{content:m,property:"og:title"}),(0,s.jsx)("meta",{content:m,name:"twitter:title"}),(0,s.jsx)("meta",{content:"summary",name:"twitter:card"}),(0,s.jsx)("meta",{content:v,name:"description"}),(0,s.jsx)("meta",{content:v,property:"og:description"}),(0,s.jsx)("meta",{content:v,name:"twitter:description"})]}),n]})})},79227:function(e,n,t){t.d(n,{q:function(){return d}});var r=t(1413),a=t(45987),o=t(31959),i=t(28735),c=t(29158),s=t(80184),l=["date","format","formattedDate"],d=(0,o.Gp)((function(e,n){var t=e.date,o=e.format,d=e.formattedDate,u=(0,a.Z)(e,l);return(0,s.jsx)(i.xu,(0,r.Z)((0,r.Z)({as:"time",dateTime:t.toISOString(),ref:n},u),{},{children:null!==d&&void 0!==d?d:(0,c.Z)(t,null!==o&&void 0!==o?o:"")}))}));d.displayName="Time"},56804:function(e,n,t){t.d(n,{E:function(){return a}});var r=t(24026),a=function(e){var n=(0,r.Z)().data;return(null!==n&&void 0!==n?n:{})[e]}},7991:function(e,n,t){t.d(n,{Z:function(){return f}});var r=t(29439),a=t(72791),o=t(64880),i=t(86617),c=t(29499),s=t(4487),l=i.SQ.TypeScript,d="preferred-language",u=function(e){return null!=e&&i.dX.has(e)},h=function(e){if(u(e))return e;try{var n,t=null!==(n=localStorage.getItem(d))&&void 0!==n?n:"";if(u(t))return t}catch(r){}return l},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.updateUrl,t=e.updateSaved,i=(0,o.TH)(),l=i.pathname,f=i.hash,p=(0,o.k6)(),v=p.replace,m=(0,s.K)(),x=m.get(c.Tx.LANGUAGE),g=(0,a.useState)((function(){return h(x)})),b=(0,r.Z)(g,2),j=b[0],y=b[1];(0,a.useEffect)((function(){u(x)&&x!==j&&y(x)}),[x]),(0,a.useEffect)((function(){x!==j&&n&&(m.set(c.Tx.LANGUAGE,j),v({pathname:l,hash:f,search:m.toString()}))}),[j,n]);var w=(0,a.useCallback)((function(e){if(y(e),t)try{localStorage.setItem(d,e)}catch(n){}}),[t]);return(0,a.useMemo)((function(){return[j,w]}),[j,w])}},4487:function(e,n,t){t.d(n,{K:function(){return o}});var r=t(72791),a=t(64880),o=function(){var e=(0,a.TH)().search;return(0,r.useMemo)((function(){return new URLSearchParams(e)}),[e])}},98371:function(e,n,t){t.d(n,{JA:function(){return i},QX:function(){return c}});var r=t(1413),a=t(93433),o=t(9272),i=function(e){return!e||e.length<1?[]:e.reduce((function(e,n){return n.highlight?[].concat((0,a.Z)(e),[n.highlight]):e}),[])},c=function(e){for(var n=e.packageTags,t=e.keywords,i=new Array,c=new Set,s=0,l=[].concat((0,a.Z)(function(e){return(null!==e&&void 0!==e?e:[]).filter((function(e){var n;return Boolean(null===(n=e.keyword)||void 0===n?void 0:n.label)})).map((function(e){var n;return(0,r.Z)((0,r.Z)({},e),{},{id:null===(n=e.keyword)||void 0===n?void 0:n.label})}))}(n)),(0,a.Z)(function(e){return!e||e.length<1?[]:e.filter((function(e){return Boolean(e)&&!o.h.has(e)})).map((function(e){return{id:e,keyword:{label:e}}}))}(t)));s<l.length;s++){var d=l[s],u=d.keyword.label.toLowerCase();c.has(u)||(i.push(d),c.add(u))}return i}},42577:function(e,n,t){t.r(n),t.d(n,{NotFound:function(){return v},default:function(){return v}});var r=t(28735),a=t(82504),o=t(91523),i=t(41712),c=t(1413),s=t(45987),l=t(31959),d=t(53046),u=t(80184),h=["sources"],f=(0,l.Gp)((function(e,n){var t=e.sources,a=(0,s.Z)(e,h);return(0,u.jsxs)(r.xu,{as:"picture",children:[null===t||void 0===t?void 0:t.map((function(e,n){return(0,u.jsx)("source",{media:e.media,srcSet:e.srcSet},n)})),(0,u.jsx)(d.Ee,(0,c.Z)({ref:n},a))]})}));f.displayName="Picture";var p={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"},v=function(){return(0,u.jsx)(i.T,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:(0,u.jsxs)(r.M5,{h:"100%",position:"relative",w:"100%",children:[(0,u.jsx)(f,{alt:"",inset:0,position:"absolute",sources:p.optimal,src:p.fallback,zIndex:"hide"}),(0,u.jsxs)(r.kC,{align:"center",direction:"column",justify:"center",children:[(0,u.jsx)(f,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),(0,u.jsx)(a.zx,{as:o.rU,colorScheme:"brand",to:"/",children:"Take Me Home"})]})]})})}},73545:function(e,n,t){t.r(n),t.d(n,{default:function(){return Et}});var r=t(64880),a=t(42577),o=t(29439),i=t(28735),c=t(13822),s=t(72791),l=t(78236),d=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return l.o.apply(void 0,["Package Page"].concat(n))},u={SCOPE:d(),SELECT_VERSION:d("Select Version"),CDK_BADGE:{eventName:function(e){return d("CDK Badge",e)}},KEYWORD:{eventName:function(e){return d("Keyword",e)}},LANGUAGE:{eventName:function(e){return d("Language",e)}},DOCUMENTATION:{TAB:d("Documentation","Tab")},DEPENDENCIES:{TAB:d("Dependencies","Tab")},GITHUB_BADGE:{TAB:d("Badge","Tab")},FEEDBACK:{PUBLISHER:d("Feedback","Publisher"),CONSTRUCT_HUB:d("Feedback","Construct Hub"),ABUSE:d("Feedback","Abuse")}},h="api",f="Readme",p="docs-container",v=t(1413),m=t(91933),x=t(4942),g=t(93433),b=t(15841),j=t.n(b),y=t(29499),w=function(e){return e.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-")},k=function e(n,t){var r=n[n.length-1];return r&&r.level<t.level?(r.children=e(r.children,t),n):(n.push(t),n)},C=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,t=new RegExp("(`{3}[\\s\\S]*?(?:`{3})|^#{1,".concat(n,"}[^#].*)"),"gm");return e.split(t).reduce((function(e,n){var t=e[e.length-1];return n.startsWith("#")||null!==t&&void 0!==t&&t.startsWith("#")?[].concat((0,g.Z)(e),[n]):(e[e.length-1]+=n,e)}),[])},Z=function(e){var n,t,r,a,i=(null!==(n=e.match(/(\S+)\s*=\s*(\"?)([^"]*)(\2|\s|$)/g))&&void 0!==n?n:[]).reduce((function(e,n){var t,r=n.split("="),a=(0,o.Z)(r,2),i=a[0],c=a[1],s=null!==(t=/['"](.*?)['"]/.exec(c))&&void 0!==t?t:[],l=(0,o.Z)(s,2),d=(l[0],l[1]);return(0,v.Z)((0,v.Z)({},e),{},(0,x.Z)({},i,d))}),{}),c=null!==(t=/^#*\s*(?:<a\s.*?(?:\/>|<\/a>))?\s*([^<]+?)\s*(?:<|$)/.exec(e))&&void 0!==t?t:[e,e],s=(0,o.Z)(c,2),l=(s[0],s[1].replace(/\[([^\]]+)\](?:\([^)]+\)|\[[^\]]+\])/g,"$1").replace(/:\+1:|:-1:|:[\w-]+:/g,(function(e){var n;return null!==(n=j().get(e))&&void 0!==n?n:e}))),d=null!==(r=i["data-heading-title"])&&void 0!==r?r:l;return{id:null!==(a=i["data-heading-id"])&&void 0!==a?a:encodeURIComponent(w(d)),title:d}},S=function(e,n){var t=n.scope,r=n.language,a=n.name,o=n.version,i=n.submodule,c=t?"".concat(t,"/").concat(a):"".concat(a),s="/packages/".concat(c,"/v/").concat(o),l="?".concat(y.Tx.LANGUAGE,"=").concat(r);i&&(l+="&submodule=".concat(i));var d='# API Reference <span data-heading-title="API Reference" data-heading-id="api-reference"></span>',u=e.split(d),h=u.length>1?u.pop():"",p=u.join(d),m=C(h,3),x=C(p),b=[d.trim()].concat((0,g.Z)(null!==m&&void 0!==m?m:[])),j="".concat(s).concat(l),w=x.reduce((function(e,n){if(n.startsWith("#")){var t,r,a=Z(n),o=a.id,i=a.title,c=null!==(t=null===(r=n.match(/(#)/gm))||void 0===r?void 0:r.length)&&void 0!==t?t:1,s=function(e){return(e.endsWith(".")||e.endsWith(":"))&&(e=e.slice(0,-1)),e}(i),l={level:c,id:o,title:s,path:"".concat(j,"#").concat(o),children:[]};return k(e,l)}return e}),[]);1===w.length&&(w=w[0].children);var S,T,E=[].concat([{level:1,id:f,title:"Readme",path:j,children:w}]),I={};return null===b||void 0===b||b.forEach((function(e){var n,t,r,a=e.match(/(^#{1,3}[^#].*)/g),o=null!==(n=null===(t=e.match(/(#)/gm))||void 0===t?void 0:t.length)&&void 0!==n?n:1;if(null!==a&&void 0!==a&&a.length){var i=Z(e),c=i.id,d=i.title,u=3===o?(r=c,"".concat(s,"/api/").concat(r).concat(l)):void 0,h=(0,v.Z)({level:o,id:c,title:d,children:[]},u?{path:u}:{});E=k(E,h),S={id:c,title:d},T=o}else 3===T&&(I[S.id]={title:S.title,content:e})})),{readme:p,apiReference:I,menuItems:E}},T=t(74165),E=t(15861),I=function(e,n){return n?"".concat(n,"/").concat(e):e},L=function(e,n,t){var r="".concat(y.i0.PACKAGES_PREFIX,"/"),a=I(e,t),o="/v".concat(n);return"".concat(r).concat(a).concat(o)},O=function(e){var n=e;return(n.startsWith("~")||n.startsWith("^"))&&(n=n.substring(1)),n},A=function(){var e=(0,E.Z)((0,T.Z)().mark((function e(n,t,r){var a,o;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat(L(n,t,r)).concat(y.i0.ASSEMBLY_SUFFIX),e.next=3,fetch(a);case 3:if((o=e.sent).ok){e.next=6;break}throw new Error("Failed fetching assembly for ".concat(a,": ").concat(o.statusText));case 6:return e.abrupt("return",o.json());case 7:case"end":return e.stop()}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}(),P=function(e,n,t){return"/docs-".concat(t?"".concat(t,"-"):"").concat(e,".").concat(n)},B=function(){var e=(0,E.Z)((0,T.Z)().mark((function e(n,t,r,a,o){var i,c,s,l,d;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=P(r,"md",o),c="".concat(L(n,t,a)).concat(i),e.next=4,fetch(c);case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Failed fetching documentation for ".concat(c,": ").concat(s.statusText));case 7:if(l="text/markdown",(d=s.headers.get("Content-Type"))&&d.includes(l)){e.next=11;break}throw new Error("Invalid content type: ".concat(d,". Expected ").concat(l,'"'));case 11:return e.abrupt("return",s.text());case 12:case"end":return e.stop()}}),e)})));return function(n,t,r,a,o){return e.apply(this,arguments)}}(),D=function(){var e=(0,E.Z)((0,T.Z)().mark((function e(n,t,r,a,o){var i,c,s,l,d;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=P(r,"json",o),c="".concat(L(n,t,a)).concat(i),e.next=4,fetch(c);case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Failed fetching documentation for ".concat(c,": ").concat(s.statusText));case 7:if(l="application/json",(d=s.headers.get("Content-Type"))&&d.includes(l)){e.next=11;break}throw new Error("Invalid content type: ".concat(d,". Expected ").concat(l,'"'));case 11:return e.abrupt("return",s.json());case 12:case"end":return e.stop()}}),e)})));return function(n,t,r,a,o){return e.apply(this,arguments)}}(),z=function(){var e=(0,E.Z)((0,T.Z)().mark((function e(n,t,r){var a,o,i;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=t).startsWith("^")&&(a=a.substring(1,a.length)),o="".concat(L(n,t,r)).concat(y.i0.METADATA_SUFFIX),e.next=5,fetch(o);case 5:if((i=e.sent).ok){e.next=8;break}throw new Error("Failed fetching metadata for ".concat(o,": ").concat(i.statusText));case 8:return e.abrupt("return",i.json());case 9:case"end":return e.stop()}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}(),U=t(86617),M=t(7991),N=t(4487),R={packages:{},updated:"NOT_FOUND"},W=function(){var e=(0,E.Z)((0,T.Z)().mark((function e(){var n;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(y.i0.ALL_VERSIONS);case 2:if((n=e.sent).ok){e.next=7;break}return console.error(n.statusText),console.warn("Could not retrieve package versions. Using empty data."),e.abrupt("return",R);case 7:return e.abrupt("return",n.json().catch((function(e){return console.error(e),console.warn("Error in package versions response. Using empty data."),R})));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=t(80184),F=(0,s.createContext)(void 0),G=function(){var e=(0,s.useContext)(F);if(!e)throw new Error("This component must be a child of a <PackageStateProvider />");return e},K=function(e){var n,t,i,c,l,d=e.children,u=(0,r.UO)(),h=u.name,f=u.scope,p=u.version,x="".concat(f,"/").concat(h,"/v").concat(p),g=(0,M.Z)(),b=(0,o.Z)(g,1)[0],j=null!==(n=(0,N.K)().get(y.Tx.SUBMODULE))&&void 0!==n?n:"",w=(0,m.useQuery)("Versions",W).data,k=f?"".concat(f,"/").concat(h):h,C=null===w||void 0===w?void 0:w.packages[k],Z=(0,m.useQuery)("".concat(x,"-docs-").concat(b,"-").concat(j,"-md"),(function(){return B(h,p,U.$[b],f,j)})),T=(0,m.useQuery)("".concat(x,"-docs-").concat(b,"-").concat(j,"-json"),(function(){return D(h,p,U.$[b],f,j)})),E=(0,m.useQuery)("".concat(x,"-assembly"),(function(){return A(h,p,f)})),I=(0,m.useQuery)("".concat(x,"-metadata"),(function(){return z(h,p,f)})),L="".concat(f?"".concat(f,"/").concat(h):h," ").concat(p),O=null!==(t=null===(i=E.data)||void 0===i?void 0:i.description)&&void 0!==t?t:"",P=Boolean(Z.error||T.error||E.error),R=Boolean(!Z.isLoading&&!T.isLoading&&!E.isLoading&&Z.data&&T.data&&E.data),G=Boolean(b===U.SQ.TypeScript||E.isLoading||E.error||null!=(null===(c=E.data)||void 0===c||null===(l=c.targets)||void 0===l?void 0:l[b.toString()])),K=Boolean(!I.isLoading&&(E.isLoading||Z.isLoading||T.isLoading)),V=(0,s.useMemo)((function(){return Z.data?S(Z.data,{scope:f,name:h,version:p,language:b,submodule:j}):{menuItems:[]}}),[Z.data,h,f,p,b,j]);return E.error?(0,H.jsx)(a.NotFound,{}):(0,H.jsx)(F.Provider,{value:(0,v.Z)({assembly:E,hasDocs:R,hasError:P,isLoadingDocs:K,isSupported:G,language:b,markdownDocs:Z,jsonDocs:T,metadata:I,name:h,pageDescription:O,pageTitle:L,scope:f,version:p,allVersions:C},V),children:d})},V=t(88606),_=(0,V.$)("package-page",["page","feedbackLinks","reportLink","reportAbuseLink","githubLink","dependenciesTab","dependenciesList","dependenciesLink","badgeTab","description","markdown","selectVersionButton","selectVersionDropdown","selectVersionItem"]),q=t(67003),Q=t(7752),X=t(19748),$=function(){var e,n=G().assembly.data;if(!n)return(0,H.jsx)(Q.w,{});var t=Object.entries(null!==(e=n.dependencies)&&void 0!==e?e:{});return t.length?(0,H.jsx)(i.Kq,{"data-testid":_.dependenciesList,direction:"row",justify:"center",mx:"auto",spacing:4,wrap:"wrap",children:t.map((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1];return(0,H.jsxs)(q.O,{_first:{ml:4},"data-testid":_.dependenciesLink,fontWeight:"semibold",p:2,to:(0,X.Mt)({name:t,version:O(r)}),children:[t," - ",r]},"".concat(t,"-").concat(r))}))}):(0,H.jsx)(i.M5,{children:"This library does not have any known CDK dependencies"})},Y=t(75272),J=t(10855),ee=t(6074),ne=t(76798),te=t(69113),re=function(e){return(0,H.jsxs)(te.JO,(0,v.Z)((0,v.Z)({},e),{},{children:[(0,H.jsx)("path",{clipRule:"evenodd",d:"M10.2532 0C4.59124 0 0 4.59022 0 10.2532C0 14.7835 2.93785 18.6266 7.01174 19.9825C7.524 20.0776 7.71212 19.7601 7.71212 19.4893C7.71212 19.2448 7.70261 18.4371 7.6982 17.5804C4.84576 18.2006 4.24386 16.3706 4.24386 16.3706C3.77745 15.1855 3.10543 14.8704 3.10543 14.8704C2.17499 14.234 3.17555 14.2473 3.17555 14.2473C4.20498 14.3194 4.74728 15.3039 4.74728 15.3039C5.66176 16.871 7.14588 16.418 7.73097 16.1562C7.82299 15.4935 8.08871 15.041 8.38194 14.785C6.10457 14.5261 3.71038 13.6467 3.71038 9.718C3.71038 8.59859 4.11108 7.68394 4.76697 6.96573C4.66035 6.70765 4.30939 5.66481 4.86613 4.25252C4.86613 4.25252 5.72696 3.97695 7.68631 5.3035C8.50435 5.07616 9.38165 4.96189 10.2532 4.95799C11.1242 4.96189 12.002 5.07582 12.8216 5.30317C14.7785 3.97661 15.6383 4.25218 15.6383 4.25218C16.1964 5.6643 15.8455 6.70731 15.739 6.96539C16.3964 7.6836 16.7943 8.59825 16.7943 9.71766C16.7943 13.6557 14.3957 14.5227 12.1125 14.7767C12.4805 15.0949 12.8081 15.719 12.8081 16.6754C12.8081 18.0473 12.7963 19.1514 12.7963 19.4891C12.7963 19.762 12.981 20.0817 13.5005 19.981C17.5721 18.6237 20.5065 14.7818 20.5065 10.2532C20.5063 4.59056 15.9156 0.000169776 10.2532 0.000169776V0Z",fill:"currentColor",fillRule:"evenodd"}),(0,H.jsx)("path",{d:"M3.88318 14.7214C3.86059 14.7724 3.78045 14.7876 3.70744 14.7528C3.63274 14.7195 3.59114 14.6501 3.61525 14.599C3.63732 14.5464 3.71763 14.5319 3.79183 14.5671C3.86654 14.6005 3.90898 14.6706 3.88301 14.7216L3.88318 14.7214ZM4.29848 15.1848C4.24975 15.2301 4.15416 15.209 4.0893 15.1372C4.02206 15.0659 4.0095 14.9703 4.05925 14.9243C4.10984 14.8791 4.20255 14.9005 4.26978 14.9719C4.33668 15.0442 4.34992 15.1389 4.29865 15.1849L4.29848 15.1848ZM4.70291 15.7751C4.64009 15.8189 4.5372 15.778 4.4737 15.6868C4.41088 15.5955 4.41088 15.486 4.4754 15.4423C4.53873 15.3985 4.64009 15.4381 4.70461 15.5284C4.76709 15.621 4.76709 15.7305 4.70291 15.775V15.7751ZM5.25659 16.3458C5.20056 16.4078 5.08069 16.3911 4.99308 16.3067C4.9036 16.224 4.87864 16.1064 4.93484 16.0446C4.99189 15.9824 5.11227 15.9998 5.20039 16.0836C5.28987 16.1661 5.31687 16.284 5.25693 16.3456L5.25659 16.3458ZM6.02064 16.677C5.99568 16.7573 5.88056 16.7939 5.76426 16.7596C5.64829 16.7244 5.5724 16.6305 5.59617 16.5494C5.61994 16.4684 5.7359 16.4305 5.85289 16.467C5.96885 16.502 6.04475 16.5954 6.02064 16.677ZM6.8599 16.7383C6.86279 16.8229 6.76431 16.8928 6.64257 16.8945C6.51982 16.8974 6.42049 16.8288 6.4193 16.7456C6.4193 16.6602 6.51574 16.5911 6.63833 16.5887C6.76007 16.5865 6.86007 16.6545 6.86007 16.7382L6.8599 16.7383ZM7.64059 16.6056C7.65519 16.6879 7.57047 16.7726 7.44941 16.7952C7.33056 16.8173 7.22019 16.766 7.20491 16.6843C7.19031 16.5998 7.27656 16.5151 7.39541 16.4932C7.51664 16.4723 7.62531 16.522 7.64059 16.6057V16.6056Z",fill:"currentColor"})]}))},ae={h:6,ml:2,w:6},oe=function(){var e,n=G(),t=(0,J.Sx)({base:"horizontal",md:"vertical"}),r=(0,H.jsx)(i.iz,{borderColor:"white",mr:6,orientation:t}),a=n.metadata.data,o=n.assembly.data;if(!o||!a)return null;var c,s=null!==(e=null===o||void 0===o?void 0:o.repository)&&void 0!==e?e:{},l=void 0;"git"===s.type&&((l=null!==(c=s.url)&&void 0!==c&&c.endsWith(".git")?s.url.replace(".git",""):s.url).endsWith("/")&&(l=l.slice(0,l.length-1)));return(0,H.jsxs)(i.Kq,{align:"center",backgroundColor:"blue.600",borderTop:"1px solid",borderTopColor:"borderColor",color:"white","data-testid":_.feedbackLinks,direction:{base:"column",md:"row"},justify:"space-evenly",px:8,py:5,spacing:4,children:[l&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(ee.d,{color:"currentcolor","data-event":u.FEEDBACK.PUBLISHER,"data-testid":_.githubLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(l,"/issues"),rightIcon:(0,H.jsx)(re,(0,v.Z)({color:"white"},ae)),variant:"solid",children:"Provide feedback to publisher"}),r]}),(0,H.jsx)(ee.d,{color:"currentcolor","data-event":u.FEEDBACK.CONSTRUCT_HUB,"data-testid":_.reportLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(ne.Sx,"/issues/new"),rightIcon:(0,H.jsx)(re,(0,v.Z)({color:"white"},ae)),children:"Provide feedback to Construct Hub"}),r,(0,H.jsx)(ee.d,{color:"currentcolor","data-event":u.FEEDBACK.ABUSE,"data-testid":_.reportAbuseLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"mailto:abuse@amazonaws.com?subject=".concat(encodeURIComponent("ConstructHub - Report of abusive package: ".concat(null===o||void 0===o?void 0:o.name))),rightIcon:(0,H.jsx)(Y.LQ,(0,v.Z)({},ae)),children:"Report abuse"})]})},ie=t(65223),ce=t(82504),se=t(3308),le=t(31959),de=t(95798),ue=t(57992),he=t(89570),fe=(0,le.Gp)((function(e,n){var t=e.value,r=e.onChange,a=e.onSubmit,i=(0,s.useState)(t),c=(0,o.Z)(i,2),l=c[0],d=c[1];return(0,he.N)(l,{onChange:r}),(0,H.jsx)(ue.l,{"data-testid":"choose-submodule-search-form",onSubmit:a,children:(0,H.jsxs)(de.BZ,{children:[(0,H.jsx)(de.Z8,{children:(0,H.jsx)(Y.W1,{color:"gray.400"})}),(0,H.jsx)(de.II,{"data-testid":"choose-submodule-search-input",onChange:function(e){return d(e.target.value)},placeholder:"Search",ref:n,value:l,variant:"filled"})]})})}));fe.displayName="SearchInput";var pe=t(3669),ve=function(e){var n=e.inputValue,t=e.isOpen,a=e.onClose,o=e.onInputChange,c=e.submodules,l=(0,s.useRef)(null),d=(0,r.k6)().push,u=(0,s.useCallback)((function(e){a(),d(e)}),[a,d]),h=(0,s.useCallback)((function(e){if(e.preventDefault(),c.length){var n=c[0].to;u(n)}}),[u,c]);return(0,H.jsx)(se.u_,{initialFocusRef:l,isOpen:t,onClose:a,children:(0,H.jsx)(se.ZA,{children:(0,H.jsxs)(se.hz,{mx:4,children:[(0,H.jsx)(se.ol,{"data-testid":"choose-submodule-modal-close"}),(0,H.jsx)(se.xB,{"data-testid":"choose-submodule-modal-header",fontSize:"lg",fontWeight:"bold",children:"Choose a submodule"}),(0,H.jsxs)(se.fe,{"data-testid":"choose-submodule-modal-body",p:0,children:[(0,H.jsx)(i.xu,{pb:4,px:4,children:(0,H.jsx)(fe,{onChange:o,onSubmit:h,ref:l,value:n})}),(0,H.jsx)(i.iz,{}),(0,H.jsx)(i.QI,{"data-testid":"choose-submodule-modal-results",m:0,maxH:"50vh",overflow:"hidden auto",p:0,role:"listbox",tabIndex:-1,children:c.map((function(e){var n=e.name,t=e.to;return(0,H.jsx)(pe.T,{"data-testid":"choose-submodule-result",name:n,onClick:function(){return u(t)}},n)}))})]})]})})})},me=function(){var e,n,t,a=G(),c=a.assembly,l=a.name,d=a.language,u=a.scope,h=a.version,f=(0,r.k6)().push,p=(0,N.K)(),v=Object.keys(null!==(e=null===c||void 0===c||null===(n=c.data)||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}),m=(0,ie.qY)(),x=m.isOpen,g=m.onOpen,b=m.onClose,j=p.get(y.Tx.SUBMODULE),w=j?"Submodule: ".concat(j):"Choose Submodule",k=(0,s.useState)(""),C=(0,o.Z)(k,2),Z=C[0],S=C[1],T=u?"".concat(u,"/").concat(l):l,E=(0,s.useCallback)((function(e){return(0,X.Mt)({name:T,version:h,language:d,submodule:e})}),[d,T,h]),I=(0,s.useMemo)((function(){var e=v;return Z&&(e=e.filter((function(e){return e.toLowerCase().includes(Z.toLowerCase())}))),e.map((function(e){var n=e.split(".")[1];return{name:n,to:E(n)}}))}),[v,Z,E]);return 0===v.length?null:(0,H.jsxs)(i.Kq,{spacing:4,w:"100%",children:[j&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(ce.zx,{borderRadius:"none","data-testid":"choose-submodule-go-back",leftIcon:(0,H.jsx)(Y.Rp,{"aria-label":"Back to construct root"}),onClick:function(){f((0,X.Mt)({name:T,version:h,language:d}))},title:"Back to construct root",variant:"link",children:null===c||void 0===c||null===(t=c.data)||void 0===t?void 0:t.name}),(0,H.jsx)(i.iz,{})]}),(0,H.jsx)(ce.zx,{borderRadius:"none",color:"blue.500","data-testid":"choose-submodule-search-trigger",flexGrow:1,onClick:g,rightIcon:(0,H.jsx)(Y.v4,{}),title:"Choose Submodule",variant:"link",children:w}),(0,H.jsx)(ve,{inputValue:Z,isOpen:x,onClose:b,onInputChange:S,submodules:I})]})},xe=t(51922),ge=function(e){var n=e.children,t=e["data-event"],r=e.path,a=e.title,o=e.showToggle,c=e.variant,s=(0,v.Z)({_hover:{bg:"rgba(0, 124, 253, 0.05)"},overflow:"hidden",pl:1,py:o?2:1,marginLeft:o?0:1,fontWeight:o?"bold":void 0,textOverflow:"ellipsis",whiteSpace:"nowrap",w:"100%"},"sm"===c?{fontSize:"sm"}:{fontSize:"md"});return r?(0,H.jsx)(q.O,(0,v.Z)((0,v.Z)({"data-event":t,title:a,to:r},s),{},{children:n})):(0,H.jsx)(i.xv,(0,v.Z)((0,v.Z)({},s),{},{children:n}))},be=t(59534),je=function(e,n){return(0,be.oJ)(e,"NavTree",n)},ye={color:"textTertiary",h:4,w:4},we=function e(n){var t,r,a=n.children,o=n["data-event"],c=n.getIsActiveItem,l=n.id,d=n.title,u=n.path,h=n.level,f=n.onOpen,p=n.variant,m=(0,be.z$)().trackCustomEvent,x=h<2,g=(0,ie.qY)({onOpen:f,defaultIsOpen:x}),b=null!==(t=null===c||void 0===c?void 0:c({id:l,title:d,path:u,children:a}))&&void 0!==t&&t,j=(null!==(r=null===a||void 0===a?void 0:a.length)&&void 0!==r?r:0)>0,y=g.isOpen&&j,w=(0,s.useMemo)((function(){return null===a||void 0===a?void 0:a.map((function(n,t){return(0,s.createElement)(e,(0,v.Z)((0,v.Z)({"data-event":o},n),{},{getIsActiveItem:c,key:t,level:h+1,onOpen:g.onOpen,variant:p}))}))}),[a,o,c,h,g.onOpen,p]);return(0,H.jsxs)(i.kC,{direction:"column",children:[(0,H.jsxs)(i.kC,{align:"center",color:b?"link":"textPrimary",children:[j&&(0,H.jsx)(ce.hU,{"aria-label":"expand-toggle",borderRadius:"md",h:4,icon:g.isOpen?(0,H.jsx)(Y.v4,(0,v.Z)({},ye)):(0,H.jsx)(Y.XC,(0,v.Z)({},ye)),ml:-1,onClick:function(){g.onToggle(),o&&m((0,be.Q5)({name:je(o,"Toggle")}))},size:"xs",variant:"link",w:0}),(0,H.jsx)(ge,{"data-event":o?je(o,"Link"):void 0,path:u,showToggle:j,title:d,variant:p,children:d})]}),(0,H.jsx)(i.xu,{_before:{bg:"borderColor",bottom:0,content:'""',left:0,position:"absolute",top:0,w:"1px"},display:y?"initial":"none",ml:2,mr:2,pl:2,position:"relative",children:w})]})},ke=function(e){var n=e["data-event"],t=e.getIsActiveItem,r=e.items,a=e.variant;return(0,H.jsx)(i.kC,{direction:"column",maxWidth:"100%",children:r.map((function(e,r){return(0,s.createElement)(we,(0,v.Z)((0,v.Z)({},e),{},{"data-event":n,getIsActiveItem:t,key:r,level:0,onOpen:void 0,variant:a}))}))})},Ce=function(){var e,n,t=G(),a=t.assembly,o=t.menuItems,c=(0,ie.qY)(),l=(0,r.TH)(),d=Object.keys(null!==(e=null===(n=a.data)||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}).length>0;return(0,s.useEffect)((function(){c.isOpen&&c.onClose()}),[l]),(0,H.jsxs)(i.xu,{bottom:0,display:{lg:"none"},left:0,pos:"fixed",right:0,children:[(0,H.jsx)(ce.zx,{bg:"bgPrimary",borderTop:"base",boxShadow:"base",fontSize:"xl",fontWeight:"semibold",h:"3.5rem",onClick:c.onOpen,variant:"unstyled",w:"full",children:(0,H.jsxs)(i.kC,{align:"center",justify:"space-between",px:6,children:["Table of contents",(0,H.jsx)(Y.g8,{})]})}),(0,H.jsx)(xe.h_,{children:(0,H.jsxs)(se.dy,(0,v.Z)((0,v.Z)({},c),{},{blockScrollOnMount:!1,placement:"bottom",children:[(0,H.jsx)(se.P1,{}),(0,H.jsxs)(se.sc,{maxH:"60vh",children:[(0,H.jsx)(se.OX,{children:"Table of contents"}),(0,H.jsx)(se.cC,{}),(0,H.jsxs)(se.Ng,{children:[d&&(0,H.jsx)(i.xu,{mb:4,sx:{button:{justifyContent:"initial"}},children:(0,H.jsx)(me,{})}),(0,H.jsx)(ke,{items:o})]})]})]}))})]})},Ze=function(e){var n=e.children;return(0,H.jsx)(i.xv,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",children:n})},Se=t(29370),Te=t(54915),Ee=t.n(Te),Ie=t(5474),Le=t.n(Ie),Oe=t(16580),Ae=t.n(Oe),Pe=t(96509),Be=t(65218),De=t.n(Be),ze=t(45987),Ue=t(28227),Me=t(60185),Ne=t(1250),Re=t(32536),We=["value"],He=(0,le.Gp)((function(e,n){var t=e.value,r=(0,ze.Z)(e,We),a=(0,ie.VP)(t),o=a.hasCopied,i=a.onCopy;return(0,H.jsx)(ce.hU,(0,v.Z)({"aria-label":"Copy Button",color:"blue.500",colorScheme:"brand",h:6,icon:o?(0,H.jsx)(Y.nQ,{color:"green.300"}):(0,H.jsx)(Y.TI,{}),minW:"auto",ml:1,onClick:i,ref:n,variant:"ghost",w:6},r))}));He.displayName="CopyButton";var Fe,Ge=function(e){var n=e.code,t=e.tokens,r=e.getLineProps,a=e.getTokenProps;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(i.kC,{align:"center",bg:"rgba(0, 124, 253, 0.15)",borderTopRadius:"md",justify:"flex-end",px:2,py:1,children:(0,H.jsx)(He,{value:n})}),(0,H.jsx)(i.xu,{overflowX:"auto",p:2,children:t.map((function(e,n){return(0,H.jsx)("div",(0,v.Z)((0,v.Z)({},r({line:e,key:n})),{},{children:e.map((function(e,n){return(0,H.jsx)(i.xu,(0,v.Z)({as:"span",sx:{wordWrap:"normal"}},a({token:e,key:n})),n)}))}),n)}))})]})},Ke=function(e){var n=e.code,t=e.tokens,r=e.getLineProps,a=e.getTokenProps;return(0,H.jsxs)(i.rj,{p:3,templateColumns:"1fr min-content",w:"full",children:[(0,H.jsx)(i.xu,{m:-3,maxW:"full",overflow:"auto",p:3,children:t.map((function(e,n){return(0,H.jsx)("div",(0,v.Z)((0,v.Z)({},r({line:e,key:n})),{},{children:e.map((function(e,n){return(0,H.jsx)("span",(0,v.Z)({},a({token:e,key:n})),n)}))}),n)}))}),(0,H.jsx)(i.kC,{align:"center",ml:1,children:(0,H.jsx)(He,{value:n})})]})},Ve=["code","language"],_e=function(e){var n=e.code,t=e.language,r=(0,ze.Z)(e,Ve),a=(0,Ue.ff)(Re.Z,Ne.Z);return(0,H.jsx)(Me.ZP,(0,v.Z)((0,v.Z)({},Me.lG),{},{code:n,language:t,theme:a,children:function(e){return(0,H.jsx)(i.xu,(0,v.Z)((0,v.Z)({as:"pre",border:"base",borderRadius:"md",boxShadow:"base",className:e.className,style:e.style},r),{},{children:e.tokens.length>1?(0,H.jsx)(Ge,(0,v.Z)((0,v.Z)({},e),{},{code:n})):(0,H.jsx)(Ke,(0,v.Z)((0,v.Z)({},e),{},{code:n}))}))}}))},qe=function(e){var n=e.inline,t=e.children,r=e.language,a=void 0===r?"typescript":r;if(n)return(0,H.jsx)(i.EK,{border:"base",marginTop:"md",mx:2,px:2,py:0,children:t});var o=s.Children.toArray(t).reduce((function(e,n){return"string"===typeof n?"".concat(e).concat(n):e}),"").trim();return(0,H.jsx)(_e,{code:o,fontSize:"0.9rem",language:a})},Qe=t(58340),Xe=function e(n){return s.Children.toArray(n).reduce((function(n,t){return"string"===typeof t?n+t:"object"===typeof t&&"props"in t?n+e(t.props.children):n}),"").trim()},$e=function(e){var n=e.id,t=e.level,a=e.title,o=(0,r.TH)().search;return(0,H.jsx)(q.O,{_active:{visibility:"initial"},_focus:{visibility:"initial"},alignItems:"center","data-heading-id":"#".concat(n),"data-heading-level":t,"data-heading-title":a,display:"flex",id:n,lineHeight:1,opacity:"hidden",replace:!0,to:"".concat(o,"#").concat(n),visibility:"hidden",children:(0,H.jsx)(Y.xP,{boxSize:4})})},Ye=function(e){var n,t,r=e.level,a=e.children,o=["2xl","xl","lg","md","sm","xs"][r-1],c="h".concat(r),s=(new DOMParser).parseFromString(Qe.renderToStaticMarkup(a),"text/html").querySelector("span[data-heading-title][data-heading-id]"),l=null!==(n=null===s||void 0===s?void 0:s.dataset.headingTitle)&&void 0!==n?n:Xe(a),d=null!==(t=null===s||void 0===s?void 0:s.dataset.headingId)&&void 0!==t?t:w(l);return(0,H.jsxs)(i.kC,{_hover:{"> a":{visibility:"initial"}},align:"stretch",borderBottom:"base",justify:"space-between",mb:4,mt:r>=4?"1.5em":4,px:r>=4?2:void 0,py:2,children:[(0,H.jsx)(i.X6,{as:c,color:"textPrimary",level:r,size:o,sx:{"> code":{fontSize:"inherit"}},children:a}),(0,H.jsx)($e,{id:d,level:r,title:l})]})},Je=t(53046),en=t(97005),nn=(0,V.$)("markdown",["container"]),tn=["children","href"],rn={a:function(e){var n=e.children,t=e.href,r=(0,ze.Z)(e,tn),a={color:"link",sx:{"> img + svg":{display:"none"}}};try{if(t&&t.startsWith("http"))if(new URL(t).hostname!==window.location.hostname)return(0,H.jsx)(ee.d,(0,v.Z)((0,v.Z)((0,v.Z)({href:t},a),r),{},{children:n}))}catch(o){}return(0,H.jsx)(q.O,(0,v.Z)((0,v.Z)((0,v.Z)({to:t},a),r),{},{children:n}))},blockquote:function(e){var n=e.children;return(0,H.jsx)(i.xu,{as:"blockquote",borderLeft:"5px solid",borderLeftColor:"borderColor",marginX:"2",px:"2",wordBreak:"break-word",children:n})},caption:en.Rn,code:qe,em:function(e){var n=e.children;return(0,H.jsx)(i.xu,{as:"em",fontStyle:"normal",fontWeight:"bold",children:n})},h1:Ye,h2:Ye,h3:Ye,h4:Ye,h5:Ye,h6:Ye,hr:function(){return(0,H.jsx)(H.Fragment,{})},img:function(e){return(0,H.jsx)(Je.Ee,(0,v.Z)({display:"inline-block"},e))},li:function(e){var n=e.children;return(0,H.jsx)(i.HC,{lineHeight:"tall",marginX:2,sx:{"em:first-of-type":{fontSize:"small"},code:{fontSize:"small"}},children:n})},ol:function(e){var n=e.children;return(0,H.jsx)(i.GS,{children:n})},p:function(e){var n=e.children;return(0,H.jsx)(i.xv,{lineHeight:"1.5",mx:2,my:4,children:n})},pre:function(e){var n=e.children,t=e.lang;return t?(0,H.jsx)(qe,{language:t,children:n}):(0,H.jsx)(i.xu,{as:"pre",children:n})},sup:function(e){var n=e.children,t=void 0,r="";if(Array.isArray(n)){var a=(0,o.Z)(n,1)[0];"string"===typeof a&&(r=a)}return"Required"===r?t="orange.700":"Optional"===r&&(t="green.700"),(0,H.jsx)(i.xu,{as:"sup",color:t,fontSize:"xs",ml:-1,top:-1,children:n})},table:function(e){var n=e.children;return(0,H.jsx)(i.xu,{maxW:"100%",overflowX:"auto",children:(0,H.jsx)(en.iA,{variant:"striped",children:n})})},tbody:en.p3,td:en.Td,tfoot:en.$R,th:en.Th,thead:en.hr,tr:en.Tr,ul:function(e){var n=e.children;return(0,H.jsx)(i.QI,{marginTop:2,padding:0,children:n})}},an=(0,v.Z)({},Se);an.attributes.span=(null!==(Fe=an.attributes.span)&&void 0!==Fe?Fe:[]).concat(["dataHeadingTitle","dataHeadingId"]);var on=[[Le()],[Ae(),an]],cn=[De(),Pe.Z],sn=/^(?:(?:git@)?github\.com:|(?:https?:\/\/)github\.com\/)([^/]+)\/([^/]+)(?:\.git)?$/,ln=function(e){var n=e.children,t=function(e){var n=e.type,t=e.url,r=e.directory;if("git"===n){var a=sn.exec(t);if(null!=a){var i=(0,o.Z)(a,3);return{owner:i[1],repo:i[2],directory:r}}}}(e.repository),r=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HEAD";return null==t?Ee().uriTransformer:function(r){var a=Ee().uriTransformer(r),i=(0,o.Z)(a,1)[0];if("#"===i||"/"===i)return a;if(a.includes("://"))return a;var c=t.owner,s=t.repo.replace(/\.git$/,""),l=t.directory?"".concat(t.directory,"/"):"";return"https://".concat(e,"/").concat(c,"/").concat(s,"/").concat(n,"/").concat(l).concat(a)}};return(0,H.jsx)(i.xu,{"data-testid":nn.container,px:8,children:(0,H.jsx)(Ee(),{components:rn,rehypePlugins:on,remarkPlugins:cn,transformImageUri:r("raw.githubusercontent.com"),transformLinkUri:r("github.com","blob/HEAD"),children:n})})},dn=function(){var e=G(),n=e.isLoadingDocs,t=e.readme,r=e.assembly.data;return!n&&t&&r?"\n"===t?(0,H.jsx)(Ze,{children:"No readme available for this module or submodule"}):(0,H.jsx)(ln,{repository:r.repository,children:t}):null},un=t(91523),hn=function(){var e=G().language,n=(0,H.jsx)(ee.d,{href:"".concat(ne.Sx,"/issues/new"),children:"issue"});return(0,H.jsxs)(Ze,{children:["Documentation in ",e," is still not ready for this package. Come back soon. If this issue persists, please let us know by creating an"," ",n,"."]})},fn=function(e){var n=e.rootId,t=(0,r.TH)(),a=t.pathname,o=t.hash,c=t.search,s=G(),l=s.isLoadingDocs,d=s.assembly.data,u=function(){var e=(0,r.UO)().typeId,n=G().apiReference;if(e)return null===n||void 0===n?void 0:n[e]}();if(l)return null;if(!u||!d)return(0,H.jsx)(hn,{});var h=u.title,f=u.content,p="".concat(a).concat(c,"#").concat(o);return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(i.X6,{as:"h2",p:8,size:"2xl",children:(0,H.jsx)(un.OL,{id:n,to:p,children:h})}),(0,H.jsx)(ln,{repository:d.repository,children:f})]})},pn=["children"],vn=function(){var e=G().menuItems,n=(0,r.TH)(),t=n.pathname,a=n.hash,o=(0,s.useMemo)((function(){return e.reduce((function(e,n,t){if(0===t&&(null===n||void 0===n?void 0:n.id)===f){n.children;var r=(0,ze.Z)(n,pn);e.push((0,v.Z)((0,v.Z)({},r),{},{children:[]}))}else e.push(n);return e}),[])}),[e]),i=(0,s.useCallback)((function(e){var n=e.path,r=new URL(null!==n&&void 0!==n?n:"",window.origin);return Boolean(null!==n&&void 0!==n&&n.includes("/".concat(h,"/"))?r.pathname===t:r.hash&&a&&r.hash===a)}),[a,t]);return(0,H.jsx)(ke,{"data-event":u.SCOPE,getIsActiveItem:i,items:o})},mn=function(e){return e.replace("#","").toLowerCase()},xn=function e(n){var t,r=[mn(n.id)];return null===(t=n.children)||void 0===t||t.forEach((function(n){null!==n&&void 0!==n&&n.id&&r.push.apply(r,(0,g.Z)(e(n)))})),r},gn=function(e){return mn(e.getAttribute("data-heading-id"))},bn=function(e){return new Set(e.map(xn).flat())},jn=t(84506),yn=function(e){return function(n){var t=n.split(".").slice(-e),r=(0,jn.Z)(t);return{path:r[0],hash:"#"+r.slice(1).join(".")}}},wn={initializer:{header:"Initializer Props",getValues:function(e){var n,t;return null!==(n=null===(t=e.initializer)||void 0===t?void 0:t.parameters)&&void 0!==n?n:[]},getPath:yn(4)},instanceMethods:{header:"Instance Methods",getValues:function(e){return e.instanceMethods},getPath:yn(2)},staticMethods:{header:"Static Methods",getValues:function(e){return e.staticMethods},getPath:yn(2)},properties:{header:"Properties",getValues:function(e){return e.properties},getPath:yn(3)},constants:{header:"Constants",getValues:function(e){return e.constants},getPath:yn(3)},members:{header:"Enum Members",getValues:function(e){return e.members},getPath:yn(2)}},kn=function(){var e,n=(0,r.TH)().pathname,t=(0,r.$B)().path,a=G(),i=a.menuItems,c=a.jsonDocs,l=(0,r.$B)("".concat(t,"/").concat(h,"/:typeId")),d=null===l||void 0===l?void 0:l.params.typeId,u=(0,M.Z)(),p=(0,o.Z)(u,1)[0],v=null!==(e=(0,N.K)().get(y.Tx.SUBMODULE))&&void 0!==e?e:"",m=(0,s.useMemo)((function(){var e;if(!c.data)return{types:[]};var n=null===(e=c.data)||void 0===e?void 0:e.apiReference;return n?{types:[].concat((0,g.Z)(n.classes),(0,g.Z)(n.constructs),(0,g.Z)(n.interfaces),(0,g.Z)(n.structs),(0,g.Z)(n.enums)),metadata:c.data.metadata}:{types:[]}}),[c]),x=m.types,b=m.metadata;return(0,s.useMemo)((function(){if(!function(e){var n=e.split("/");return n[n.length-2]===h}(n)){var e=(0,o.Z)(i,1)[0];return(null===e||void 0===e?void 0:e.id)===f?e.children:[]}var t=x.find((function(e){return e.displayName===d}));return t&&b?function(e,n,t){for(var r=[],a=function(){var a=(0,o.Z)(c[i],2),s=a[0],l=a[1],d=l.header,u=l.getValues,h=l.getPath;if(s in e){var f,p={level:1,id:d,title:d,children:[]},v=u(e).map((function(e){var r=h(e.id),a=r.path,o=r.hash,i="?".concat(y.Tx.LANGUAGE,"=").concat(n);return t&&(i+="&".concat(y.Tx.SUBMODULE,"=").concat(t)),{level:2,id:o,title:e.displayName,path:"".concat(a).concat(i).concat(o),children:[]}}));v.length>0&&((f=p.children).push.apply(f,(0,g.Z)(v)),r.push(p))}},i=0,c=Object.entries(wn);i<c.length;i++)a();return r}(t,p,v):[]}),[p,i,b,n,v,d,x])},Cn={rootMargin:"-15% 0% -15% 0%"},Zn={attributes:!1,childList:!0,subtree:!0},Sn=function(){var e=function(){var e=kn(),n=(0,s.useRef)(bn(e)),t=(0,s.useState)((0,g.Z)(n.current)[0]),r=(0,o.Z)(t,2),a=r[0],i=r[1],c=(0,s.useMemo)((function(){return new IntersectionObserver((function(e){var n;e.forEach((function(e){e.isIntersecting&&(n=e.target)})),n&&i(gn(n))}),Cn)}),[]);return(0,s.useEffect)((function(){var t=bn(e);n.current=t;var r=(0,o.Z)(t,1)[0];return i(r),function(){i(void 0)}}),[e]),(0,s.useEffect)((function(){var e=document.getElementById(p);if(e){var t,r=new MutationObserver((function(e){var r;e.length&&(null===(r=t)||void 0===r||r.forEach((function(e){c.unobserve(e)})),(t=document.querySelectorAll("[data-heading-id]")).forEach((function(e){var t=gn(e);n.current.has(t)&&c.observe(e)})))}));return r.observe(e,Zn),function(){r.disconnect()}}}),[c]),a}(),n=kn(),t=(0,r.TH)().hash,a=(0,s.useRef)(!1),i=(0,s.useState)(t),c=(0,o.Z)(i,2),l=c[0],d=c[1];(0,s.useEffect)((function(){d(t),a.current=!1,setTimeout((function(){a.current=!0}),500)}),[t]),(0,s.useEffect)((function(){l&&a.current&&d(void 0)}),[e]);var h=(0,s.useCallback)((function(n){var t=n.path,r=n.id;return l?new URL(null!==t&&void 0!==t?t:"",window.origin).hash===l:mn(r)===e}),[e,l]);return(0,H.jsx)(ke,{"data-event":u.SCOPE,getIsActiveItem:h,items:n,variant:"sm"})},Tn=["offset"],En=function(e){var n=e.offset,t=(0,ze.Z)(e,Tn);return(0,H.jsx)(i.kC,(0,v.Z)({alignSelf:"stretch",as:"nav",direction:"column",display:{base:"none",lg:"flex"},maxHeight:"calc(100vh - ".concat(n,")"),overflow:"hidden auto",position:"sticky"},t))},In="4.5rem",Ln=function(){var e,n=G().assembly.data;return Object.keys(null!==(e=null===n||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}).length>0?(0,H.jsx)(i.kC,{borderBottom:"1px solid",borderColor:"borderColor",justify:"center",py:4,children:(0,H.jsx)(me,{})}):null},On=function(){var e=(0,r.$B)().path,n=G().markdownDocs,t=(0,r.TH)(),a=t.hash,o=t.pathname,c=t.search;return(0,s.useEffect)((function(){window.requestAnimationFrame((function(){if(a){var e=document.querySelector('[data-heading-id="'.concat(a,'"]'));null===e||void 0===e||e.scrollIntoView(!0)}else window.scrollTo(0,0)}))}),[a,o,n.isLoading]),(0,H.jsxs)(i.rj,{columnGap:4,h:"full",templateColumns:{base:"1fr",lg:"minmax(20rem, 1fr) 3fr minmax(16rem, 0.9fr)"},width:"100%",children:[(0,H.jsxs)(En,{borderRight:"1px solid",borderRightColor:"borderColor",offset:In,pl:6,pr:4,top:In,children:[(0,H.jsx)(Ln,{}),(0,H.jsx)(i.xu,{overflowY:"auto",py:4,children:(0,H.jsx)(vn,{})})]}),(0,H.jsx)(i.xu,{h:"max-content",id:p,maxWidth:"100%",overflow:"hidden",py:4,sx:{a:{scrollMarginTop:In}},children:(0,H.jsxs)(r.rs,{children:[(0,H.jsx)(r.l_,{exact:!0,from:"".concat(e,"/").concat(h),to:{pathname:e,search:c}}),(0,H.jsx)(r.AW,{exact:!0,path:e,children:(0,H.jsx)(dn,{})}),(0,H.jsx)(r.AW,{exact:!0,path:"".concat(e,"/").concat(h,"/:typeId"),children:(0,H.jsx)(fn,{rootId:"apidocs_header"})})]})}),(0,H.jsx)(En,{borderLeft:"1px solid",borderLeftColor:"borderColor",offset:In,pl:6,pr:4,top:In,children:(0,H.jsx)(i.xu,{overflowY:"auto",py:4,children:(0,H.jsx)(Sn,{})})}),(0,H.jsx)(Ce,{})]})},An=t(92213),Pn=t(81070),Bn=t(77231),Dn=t(44717),zn=["openText","closeText","isOpen"],Un=function(e){var n=e.openText,t=e.closeText,r=e.isOpen,a=(0,ze.Z)(e,zn);return(0,H.jsx)(ce.zx,(0,v.Z)((0,v.Z)({color:"link",colorScheme:"blue",leftIcon:r?(0,H.jsx)(Y.g8,{}):(0,H.jsx)(Y.v4,{}),variant:"link"},a),{},{children:r?t:n}))},Mn=t(50535),Nn=["license"],Rn=(0,le.Gp)((function(e,n){var t=e.license,r=(0,ze.Z)(e,Nn),a=Dn[t].url;return(0,H.jsx)(ee.d,(0,v.Z)((0,v.Z)({href:a,ref:n},r),{},{children:t}))}));Rn.displayName="LicenseLink";var Wn=t(79227),Hn="MMM dd, yyyy 'at' h:mmaaa",Fn=t(56804),Gn=t(10297),Kn=t(98371),Vn=function(e){var n=e.children,t=e.label,r=e.tooltip;return(0,H.jsx)(Pn.u,{hasArrow:!0,isDisabled:!r,label:r,placement:"left",children:(0,H.jsxs)(i.xv,{fontWeight:"bold",children:[t," ",(0,H.jsx)(i.xu,{as:"span",fontWeight:"normal",children:n})]})})},_n=function(e){var n=e.downloads;return(0,H.jsx)(Vn,{label:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(i.xu,{as:"span",mr:1,children:(0,H.jsx)(Y._8,{})}),n.toLocaleString()]}),tooltip:"Download numbers are periodically sourced from the npm registry",children:"Weekly downloads"})},qn=function(e){var n=G(),t=(0,Gn.V)().data,r=(0,ie.qY)({defaultIsOpen:!0}),a=(0,Fn.E)("packageLinks"),c=n.assembly.data,l=n.metadata.data,d=n.scope?"".concat(n.scope,"/").concat(n.name):n.name,u=(0,Kn.JA)(null===l||void 0===l?void 0:l.packageTags),h=(0,o.Z)(u,1)[0],f=function(e){var n=e.assembly,t=e.metadata,r=e.name,a=e.packageLinks,o=e.stats,i=[];if(n||t||o||a){var c,l,d,u,h,f=null===o||void 0===o||null===(c=o.packages)||void 0===c||null===(l=c[r])||void 0===l||null===(d=l.downloads)||void 0===d?void 0:d.npm;void 0!==f&&i.push((0,H.jsx)(_n,{downloads:f}));var p=null===n||void 0===n?void 0:n.author.name,v=null===n||void 0===n?void 0:n.repository,m=null===n||void 0===n?void 0:n.license;if(p){var x=(0,H.jsx)(q.O,{color:"link",to:(0,X.yc)({query:p}),children:p});i.push((0,H.jsx)(Vn,{label:"Author",children:x}))}var g=null===t||void 0===t?void 0:t.date;if(g){var b=(0,H.jsx)(Wn.q,{date:new Date(g),fontWeight:"normal",format:Hn});i.push((0,H.jsx)(Vn,{label:"Published",children:b}))}if(v){var j=(0,X.rM)(v.url);if(j){var y=(0,H.jsx)(ee.d,{href:j.url,children:j.hostname});i.push((0,H.jsx)(Vn,{label:"Repository",children:y}))}}if(m&&m in Dn){var w=(0,H.jsx)(Rn,{license:m});i.push((0,H.jsx)(Vn,{label:"License",children:w}))}null!==a&&void 0!==a&&a.length&&a.forEach((function(e){var n,r=e.linkLabel,a=e.configKey,o=e.linkText,c=(null!==(n=null===t||void 0===t?void 0:t.packageLinks)&&void 0!==n?n:{})[a];if(c){var s=(0,H.jsx)(ee.d,{href:c,children:null!==o&&void 0!==o?o:c});i.push((0,H.jsxs)(Vn,{label:r,children:[r,": ",s]}))}}));var k=null!==(u=null===t||void 0===t||null===(h=t.links)||void 0===h?void 0:h.npm)&&void 0!==u?u:"https://www.npmjs.com/package/".concat(null===n||void 0===n?void 0:n.name,"/v/").concat(null===n||void 0===n?void 0:n.version);if(k){var C=(0,H.jsx)(ee.d,{href:k,children:new URL(k).hostname});i.push((0,H.jsx)(Vn,{label:"Registry",children:C}))}}return i.map((function(e,n){return(0,H.jsx)(s.Fragment,{children:e},n)}))}({assembly:c,metadata:l,name:d,packageLinks:a,stats:t});if(!f.length)return null;var p=f.slice(0,2),m=f.slice(2,f.length);return(0,H.jsxs)(i.Kq,(0,v.Z)((0,v.Z)({align:"start",color:"textPrimary",fontSize:".75rem",mt:2,spacing:2},e),{},{children:[h&&(0,H.jsx)(Mn.y,(0,v.Z)({},h)),p,m.length>0&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Bn.UO,{animateOpacity:!0,in:r.isOpen,children:(0,H.jsx)(i.Kq,{spacing:2,children:m})}),(0,H.jsx)(Un,{closeText:"See fewer details (".concat(p.length,")"),fontSize:"inherit",isOpen:r.isOpen,onClick:r.onToggle,openText:"See more details (".concat(m.length,")")})]})]}))},Qn=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.map((function(e){return'"'.concat(e.map((function(e){return null!==e&&void 0!==e?e:"."})).join(" "),'"')})).join(" ")},Xn="heading",$n="install",Yn="languages",Jn="meta",et=Qn([Xn],[Jn],[Yn],[$n]),nt=Qn([Xn,Yn,$n],[Xn,null,Jn]),tt=function(e){var n=e.children;return(0,H.jsx)(i.rj,{bg:"bgSecondary",columnGap:{md:6,lg:10},pt:{base:3,lg:6},px:{base:5,md:6,lg:10},rowGap:{base:4,lg:0},templateAreas:{base:et,lg:nt},templateColumns:{base:"1fr",lg:"1fr auto 15rem"},templateRows:{lg:"auto 1fr"},children:n})},rt=t(57640),at=t(10724),ot=t.n(at),it=t(59707),ct=function(){var e=G(),n=e.scope,t=e.name,a=e.version,i=e.allVersions,c=e.language,l=n?"".concat(n,"/").concat(t):t,d=(0,it.A)(),h=(0,r.k6)(),f=h.push,p=h.location,v=d.findByName(l),m=(0,s.useMemo)((function(){var e=v.map((function(e){return e.version})),n=(0,g.Z)(new Set([].concat((0,g.Z)(null!==i&&void 0!==i?i:[]),(0,g.Z)(e),[a])));return n.sort(ot().rcompare),n}),[v,a,i]);return(0,H.jsx)(rt.Ph,{"data-event":u.SELECT_VERSION,"data-testid":_.selectVersionDropdown,fontWeight:"500",onChange:function(e){var n=p.pathname,t=p.hash,r="";if(n.includes("/api/")){var a=n.split("/api/");r=(0,o.Z)(a,2)[1]}var i=[(0,X.Mt)({name:l,version:e.target.value,language:c,api:r}),t].join("");f(i)},size:"sm",value:a,width:"10rem",children:m.map((function(e){return(0,H.jsx)("option",{"data-testid":_.selectVersionItem,"data-value":e,value:e,children:"v".concat(e)},e)}))})},st=t(37864),lt=t(77766),dt=t(29988),ut=["assembly","name","description","metadata","version"],ht=function(e){var n,t,r=e.assembly,a=e.name,c=e.description,s=e.metadata,l=(e.version,(0,ze.Z)(e,ut)),d=(0,Kn.QX)({packageTags:null!==(n=null===s||void 0===s?void 0:s.packageTags)&&void 0!==n?n:[],keywords:null!==(t=null===r||void 0===r?void 0:r.keywords)&&void 0!==t?t:[]}),h=(0,st.eG)(s),f=(0,o.Z)(h,1)[0],p=null!==f&&void 0!==f?f:[],m=(0,o.Z)(p,2),x=m[0],g=m[1],b=1===h.size?u.CDK_BADGE.eventName("".concat(x).concat(void 0!==g?" v".concat(g):"")):void 0;return(0,H.jsxs)(i.Kq,(0,v.Z)((0,v.Z)({lineHeight:"1.5",maxW:"full",overflow:"hidden",spacing:2},l),{},{children:[(0,H.jsxs)(i.kC,{align:"center",wrap:"wrap",children:[(0,H.jsx)(i.X6,{color:"textPrimary",flexShrink:1,fontSize:"1.5rem",isTruncated:!0,mr:4,children:a}),(0,H.jsx)(ct,{})]}),(0,H.jsx)(i.xv,{"data-testid":_.description,fontSize:"1rem",children:c}),(0,H.jsxs)(i.kC,{align:"center",direction:"row",pt:1,sx:{gap:"0.5rem"},wrap:"wrap",children:[(0,H.jsx)(lt.u,{constructFrameworks:h,"data-event":b}),d.map((function(e){var n=e.id,t=e.keyword,r=void 0===t?{}:t,a=r.label,o=r.color;return(0,H.jsx)(dt.X,{"data-event":u.KEYWORD.eventName(a),value:n,variant:o,children:a},n)}))]})]}))},ft=function(e){var n=G(),t=n.language,r=n.assembly.data,a=(0,ie.qY)();if(!r)return null;var o=function(e){var n=e.language,t=e.assembly,r=t.version;if(n===U.SQ.TypeScript){var a=t.name;return"npm install ".concat(a,"@").concat(r)}if(n===U.SQ.Python){var o,i,c=null===(o=t.targets)||void 0===o||null===(i=o.python)||void 0===i?void 0:i.distName;if(!c)return;return"pip install ".concat(c,"==").concat(r)}if(n===U.SQ.Java){var s,l,d,u,h,f,p=null===(s=t.targets)||void 0===s||null===(l=s.java)||void 0===l||null===(d=l.maven)||void 0===d?void 0:d.groupId,v=null===(u=t.targets)||void 0===u||null===(h=u.java)||void 0===h||null===(f=h.maven)||void 0===f?void 0:f.artifactId;if(!p||!v)return;return["// add this to your pom.xml","<dependency>"," <groupId>".concat(p,"</groupId>")," <artifactId>".concat(v,"</artifactId>")," <version>".concat(r,"</version>"),"</dependency>"].join("\n")}if(n===U.SQ.DotNet){var m,x,g=null===(m=t.targets)||void 0===m||null===(x=m.dotnet)||void 0===x?void 0:x.packageId;if(!g)return;return"dotnet add package ".concat(g," --version ").concat(r)}if(n===U.SQ.Go){var b,j,y=null===t||void 0===t||null===(b=t.targets)||void 0===b||null===(j=b.go)||void 0===j?void 0:j.moduleName;if(!y)return;return"go get ".concat(y)}}({language:t,assembly:r});return o&&t?(0,H.jsx)(i.kC,(0,v.Z)((0,v.Z)({align:"start",direction:"column",fontSize:".75rem",w:"full"},e),{},{children:t===U.SQ.Java?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Un,{closeText:"Hide",fontSize:"inherit",isOpen:a.isOpen,mt:2,onClick:a.onToggle,openText:"Install"}),(0,H.jsx)(i.xu,{maxW:"full",overflow:"hidden",children:(0,H.jsx)(Bn.UO,{in:a.isOpen,children:(0,H.jsx)(_e,{boxShadow:"none",code:o,fontSize:"inherit",language:t,mt:2})})})]}):(0,H.jsx)(_e,{boxShadow:"none",code:o,fontSize:"inherit",language:t,lineHeight:"2",w:"full"})})):null},pt=t(2148),vt=function(e){var n=e.targetLanguages,t=e.selectedLanguage,r=e.setSelectedLanguage,a=(0,be.z$)().trackCustomEvent;return(0,H.jsx)(i.Kq,{align:"center","data-testid":"language-bar",direction:"row",spacing:2,children:(0,g.Z)(n).sort((function(e,n){return U.a2.indexOf(e)-U.a2.indexOf(n)})).map((function(e){var n=!U.dX.has(e),o=e===t,i=U.kP[e].icon;return(0,H.jsx)(pt.N,{language:e,children:(0,H.jsx)(ce.hU,{"aria-label":"Select ".concat(e," icon"),bg:"bgSecondary",border:"base",borderColor:o?"brand.500":"borderColor",borderRadius:"lg",boxShadow:"base",colorScheme:"brand",cursor:n?"not-allowed":"pointer","data-testid":"language-".concat(e),disabled:n,icon:(0,H.jsx)(i,{"aria-label":"".concat(e,"-icon"),borderRadius:"sm",height:[4,5,6],width:[4,5,6]}),onClick:function(){o||(a((0,be.Q5)({name:u.LANGUAGE.eventName(e)})),r(e))},p:1,variant:"outline",w:"max-content"})},e)}))})},mt=new Set(U.a2),xt=function(){var e,n=G(),t=n.assembly.data,r=n.language,a=(0,M.Z)({updateSaved:!0,updateUrl:!0}),i=(0,o.Z)(a,2)[1],c=(0,M.Z)({updateUrl:!0}),l=(0,o.Z)(c,2)[1],d=[].concat((0,g.Z)(Object.keys(null!==(e=null===t||void 0===t?void 0:t.targets)&&void 0!==e?e:{})),[U.SQ.TypeScript]),u=d.includes(r);(0,s.useEffect)((function(){u||l(U.SQ.TypeScript)}),[u]);var h={selectedLanguage:u?r:U.SQ.TypeScript,setSelectedLanguage:i,targetLanguages:d.filter((function(e){return mt.has(e)}))};return(0,H.jsx)(vt,(0,v.Z)({},h))},gt=function(){var e=G(),n=e.assembly,t=e.metadata,r=e.version,a=n.data,o=t.data;return a&&o?(0,H.jsxs)(tt,{children:[(0,H.jsx)(ht,{assembly:a,description:a.description,gridArea:Xn,metadata:o,name:a.name,version:r}),(0,H.jsx)(i.kC,{align:"start",gridArea:Yn,children:(0,H.jsx)(xt,{})}),(0,H.jsxs)(i.kC,{direction:"column",gridArea:Jn,children:[(0,H.jsx)(i.iz,{borderBottom:"base",display:{md:"none"},mb:2}),(0,H.jsx)(qn,{}),(0,H.jsx)(i.iz,{borderBottom:"base",display:{md:"none"},mt:2})]}),(0,H.jsx)(i.kC,{align:"start",gridArea:$n,children:(0,H.jsx)(ft,{})})]}):(0,H.jsx)(An.$,{mx:"auto",my:10,size:"xl"})},bt=function(){var e=(0,s.useState)(0),n=(0,o.Z)(e,2),t=n[0],r=n[1],a=G(),l=a.scope,d=a.name,u=l?"".concat(l,"/").concat(d):d,h=encodeURIComponent(u);(0,s.useEffect)((function(){r(0)}),[]);var f=window.location.hostname,p=(0,X.Mt)({name:u}),v="https://".concat(f,"/badge?package=").concat(h),m="https://".concat(f).concat(p),x="[![View on Construct Hub](".concat(v,")](").concat(m,")"),g='<a href="'.concat(m,'"><img src="').concat(v,'" alt="View on Construct Hub"/></a>');return(0,H.jsxs)(i.xu,{bg:"bgPrimary",py:1,width:"100%",children:[(0,H.jsx)(i.xv,{pb:3,children:"Use the snippets below in your Git repositories or elsewhere to add a button that links to this package. The button will automatically update to light mode or dark mode based on whether the user's client has requested a light or dark theme."}),(0,H.jsx)(un.rU,{to:p,children:(0,H.jsx)(Je.Ee,{src:"/badge-dynamic.svg"})}),(0,H.jsxs)(c.mQ,{index:t,my:3,onChange:r,variant:"line",children:[(0,H.jsxs)(c.td,{borderBottom:"base",px:{base:0,lg:6},children:[(0,H.jsx)(c.OK,{children:"Markdown"}),(0,H.jsx)(c.OK,{children:"HTML"})]}),(0,H.jsxs)(c.nP,{maxW:"full",children:[(0,H.jsx)(c.x4,{children:(0,H.jsx)(_e,{boxShadow:"none",code:x,fontSize:"inherit",language:"markdown",mt:2})}),(0,H.jsx)(c.x4,{children:(0,H.jsx)(_e,{boxShadow:"none",code:g,fontSize:"inherit",language:"markdown",mt:2})})]})]})]})},jt=t(41712),yt=function(){var e=G(),n=e.pageDescription,t=e.pageTitle,r=(0,s.useState)(0),a=(0,o.Z)(r,2),l=a[0],d=a[1];return(0,s.useEffect)((function(){d(0)}),[t]),(0,H.jsx)(jt.T,{meta:{title:t,description:n},pageName:"packageProfile",children:(0,H.jsxs)(i.rj,{bg:"bgPrimary","data-testid":_.page,maxW:"100vw",templateColumns:"1fr",templateRows:"auto 1fr auto",children:[(0,H.jsx)(gt,{}),(0,H.jsxs)(c.mQ,{index:l,onChange:d,variant:"line",children:[(0,H.jsxs)(c.td,{bg:"bgSecondary",borderBottom:"base",px:{base:0,lg:6},children:[(0,H.jsx)(c.OK,{"data-event":u.DOCUMENTATION.TAB,children:"Documentation"}),(0,H.jsx)(c.OK,{"data-event":u.DEPENDENCIES.TAB,"data-testid":_.dependenciesTab,children:"Dependencies"}),(0,H.jsx)(c.OK,{"data-event":u.GITHUB_BADGE.TAB,"data-testid":_.badgeTab,children:"Share"})]}),(0,H.jsxs)(c.nP,{maxW:"full",children:[(0,H.jsx)(c.x4,{p:0,children:(0,H.jsx)(On,{})}),(0,H.jsx)(c.x4,{children:(0,H.jsx)($,{})}),(0,H.jsx)(c.x4,{children:(0,H.jsx)(bt,{})})]})]}),(0,H.jsx)(oe,{})]})})},wt=function(){return(0,H.jsx)(K,{children:(0,H.jsx)(yt,{})})},kt=t(95038),Ct=function(e,n,t){var r=I(n,t),a=function(e,n){var t=e.packages.filter((function(e){return e.name===n}));return t.length>1?t.sort((function(e,n){var t=new Date(e.metadata.date);return new Date(n.metadata.date).getTime()-t.getTime()}))[0]:t[0]}(e,r);if(a){var o=a.version,i="/v/".concat(o);return"".concat("/packages/").concat(r).concat(i)}},Zt=function(){var e=(0,r.UO)(),n=e.name,t=e.scope,o=(0,kt.r)();if(o.isLoading||!o.data)return(0,H.jsx)(i.M5,{minH:"16rem",children:(0,H.jsx)(An.$,{size:"xl"})});var c=Ct(o.data,n,t);return c?(0,H.jsx)(r.l_,{to:c}):(0,H.jsx)(a.default,{})},St="[^@\\/]+",Tt="@[^\\/]+",Et=function(){var e=(0,r.$B)().path;return(0,H.jsxs)(r.rs,{children:[(0,H.jsx)(r.AW,{exact:!0,path:"".concat(e,"/:scope(").concat(Tt,")?/:name(").concat(St,")"),children:(0,H.jsx)(Zt,{})}),(0,H.jsx)(r.AW,{path:"".concat(e,"/:scope(").concat(Tt,")?/:name(").concat(St,")/v/:version"),children:(0,H.jsx)(wt,{})}),(0,H.jsx)(r.AW,{path:"*",children:(0,H.jsx)(a.NotFound,{})})]})}}}]);
2
+ //# sourceMappingURL=545.d0d54604.chunk.js.map