construct-hub-webapp 0.1.374 → 0.1.375

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.
Files changed (39) hide show
  1. package/.gitattributes +21 -20
  2. package/build/asset-manifest.json +36 -36
  3. package/build/index.html +1 -1
  4. package/build/static/js/{0.8e185e41.chunk.js → 0.1511b94c.chunk.js} +1 -1
  5. package/build/static/js/{0.8e185e41.chunk.js.map → 0.1511b94c.chunk.js.map} +1 -1
  6. package/build/static/js/{1.0bc0f9ef.chunk.js → 1.7f05dc1b.chunk.js} +1 -1
  7. package/build/static/js/{1.0bc0f9ef.chunk.js.map → 1.7f05dc1b.chunk.js.map} +1 -1
  8. package/build/static/js/{10.cb0a0ad5.chunk.js → 10.2f5864a2.chunk.js} +1 -1
  9. package/build/static/js/{10.cb0a0ad5.chunk.js.map → 10.2f5864a2.chunk.js.map} +1 -1
  10. package/build/static/js/{11.5c18c5b8.chunk.js → 11.dc2f1de7.chunk.js} +1 -1
  11. package/build/static/js/{11.5c18c5b8.chunk.js.map → 11.dc2f1de7.chunk.js.map} +1 -1
  12. package/build/static/js/{12.6e403af3.chunk.js → 12.288fe983.chunk.js} +1 -1
  13. package/build/static/js/{12.6e403af3.chunk.js.map → 12.288fe983.chunk.js.map} +1 -1
  14. package/build/static/js/{13.a62ee528.chunk.js → 13.2ec99b1d.chunk.js} +2 -2
  15. package/build/static/js/{13.a62ee528.chunk.js.LICENSE.txt → 13.2ec99b1d.chunk.js.LICENSE.txt} +0 -0
  16. package/build/static/js/{13.a62ee528.chunk.js.map → 13.2ec99b1d.chunk.js.map} +1 -1
  17. package/build/static/js/{14.ab599924.chunk.js → 14.6308c024.chunk.js} +1 -1
  18. package/build/static/js/{14.ab599924.chunk.js.map → 14.6308c024.chunk.js.map} +1 -1
  19. package/build/static/js/{4.b0942e16.chunk.js → 4.85b3922a.chunk.js} +2 -2
  20. package/build/static/js/{4.b0942e16.chunk.js.LICENSE.txt → 4.85b3922a.chunk.js.LICENSE.txt} +0 -0
  21. package/build/static/js/{4.b0942e16.chunk.js.map → 4.85b3922a.chunk.js.map} +1 -1
  22. package/build/static/js/5.8ebb41a9.chunk.js +3 -0
  23. package/build/static/js/{5.63dc612f.chunk.js.LICENSE.txt → 5.8ebb41a9.chunk.js.LICENSE.txt} +0 -0
  24. package/build/static/js/5.8ebb41a9.chunk.js.map +1 -0
  25. package/build/static/js/{6.ea01f3c4.chunk.js → 6.a2d54ede.chunk.js} +1 -1
  26. package/build/static/js/{6.ea01f3c4.chunk.js.map → 6.a2d54ede.chunk.js.map} +1 -1
  27. package/build/static/js/{7.9e6e1e68.chunk.js → 7.f4b14571.chunk.js} +1 -1
  28. package/build/static/js/{7.9e6e1e68.chunk.js.map → 7.f4b14571.chunk.js.map} +1 -1
  29. package/build/static/js/{8.2c2735bc.chunk.js → 8.90bc7c73.chunk.js} +1 -1
  30. package/build/static/js/{8.2c2735bc.chunk.js.map → 8.90bc7c73.chunk.js.map} +1 -1
  31. package/build/static/js/{9.be60d9a6.chunk.js → 9.4830c70a.chunk.js} +1 -1
  32. package/build/static/js/{9.be60d9a6.chunk.js.map → 9.4830c70a.chunk.js.map} +1 -1
  33. package/build/static/js/{main.ca8f47ca.chunk.js → main.090a0a75.chunk.js} +1 -1
  34. package/build/static/js/{main.ca8f47ca.chunk.js.map → main.090a0a75.chunk.js.map} +1 -1
  35. package/build/static/js/{runtime-main.c382787e.js → runtime-main.240313c1.js} +2 -2
  36. package/build/static/js/{runtime-main.c382787e.js.map → runtime-main.240313c1.js.map} +1 -1
  37. package/package.json +10 -10
  38. package/build/static/js/5.63dc612f.chunk.js +0 -3
  39. package/build/static/js/5.63dc612f.chunk.js.map +0 -1
@@ -1,2 +1,2 @@
1
1
  (this["webpackJsonpconstruct-hub-webapp"]=this["webpackJsonpconstruct-hub-webapp"]||[]).push([[7,11],{244:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),c=n(257),r={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"}}},o=n(123),i=n(1),s=function(e){var t=e.children,n=e.meta,s=e.pageName,l=Object(o.b)(r[s]);Object(a.useEffect)((function(){l()}),[l]);var d=n.suffix,u=void 0===d||d,b=n.title,j=n.description,h=u?"".concat(b," - Construct Hub"):b;return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsxs)(c.a,{children:[!1,Object(i.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),Object(i.jsx)("meta",{charSet:"utf-8"}),Object(i.jsx)("title",{children:h}),Object(i.jsx)("meta",{content:h,property:"og:title"}),Object(i.jsx)("meta",{content:h,name:"twitter:title"}),Object(i.jsx)("meta",{content:"summary",name:"twitter:card"}),Object(i.jsx)("meta",{content:j,name:"description"}),Object(i.jsx)("meta",{content:j,property:"og:description"}),Object(i.jsx)("meta",{content:j,name:"twitter:description"})]}),t]})}},254:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),c=n(22),r=function(){var e=Object(c.h)().search;return Object(a.useMemo)((function(){return new URLSearchParams(e)}),[e])}},255:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return s}));var a=n(14),c=function(e,t){return t?"".concat(t,"/").concat(e):e},r=function(e,t,n){var r="".concat(a.a.PACKAGES_PREFIX,"/"),o=c(e,n),i="/v".concat(t);return"".concat(r).concat(o).concat(i)},o=function(e){var t=e;return(t.startsWith("~")||t.startsWith("^"))&&(t=t.substring(1)),t},i=function(e){return o(e).split(".")[0]},s=function(e,t){var n=e.packages.filter((function(e){return e.name===t}));return n.length>1?n.sort((function(e,t){var n=i(e.version);return i(t.version).localeCompare(n)}))[0]:n[0]}},260:function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var a=n(5),c=n(0),r=n(22),o=n(122),i=n(14),s=n(254),l=o.d.TypeScript,d="preferred-language",u=function(e){return null!=e&&o.e.has(e)},b=function(e){if(u(e))return e;try{var t,n=null!==(t=localStorage.getItem(d))&&void 0!==t?t:"";if(u(n))return n}catch(a){}return l},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.updateUrl,n=e.updateSaved,o=Object(r.h)(),l=o.pathname,j=o.hash,h=Object(r.g)(),O=h.replace,p=Object(s.a)(),f=p.get(i.b.LANGUAGE),m=Object(c.useState)((function(){return b(f)})),v=Object(a.a)(m,2),g=v[0],x=v[1];Object(c.useEffect)((function(){u(f)&&f!==g&&x(f)}),[f]),Object(c.useEffect)((function(){f!==g&&t&&(p.set(i.b.LANGUAGE,g),O({pathname:l,hash:j,search:p.toString()}))}),[g,t]);var y=Object(c.useCallback)((function(e){if(x(e),n)try{localStorage.setItem(d,e)}catch(t){}}),[n]);return Object(c.useMemo)((function(){return[g,y]}),[g,y])}},261:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){return'"'.concat(e.map((function(e){return null!==e&&void 0!==e?e:"."})).join(" "),'"')})).join(" ")}},272:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(89),c=function(e){var t=Object(a.b)().data;return(null!==t&&void 0!==t?t:{})[e]}},273:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(6),c=n(25),r=n(19),o=n(203),i=n(582),s=n(1),l=["date","format"],d=Object(r.a)((function(e,t){var n=e.date,r=e.format,d=Object(c.a)(e,l);return Object(s.jsx)(o.a,Object(a.a)(Object(a.a)({as:"time",dateTime:n.toISOString(),ref:t},d),{},{children:Object(i.a)(n,r)}))}));d.displayName="Time"},274:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(6),c=n(4),r=n(25),o=n(575),i=n(87),s=n(72),l=n(1),d=["children","isKeyword","value","label","zIndex"],u=function(e){var t=e.children,n=e.isKeyword,u=void 0!==n&&n,b=e.value,j=e.label,h=void 0===j?b:j,O=e.zIndex,p=Object(r.a)(e,d),f=u?"keywords":"tags";return Object(l.jsx)(s.a,{"aria-label":"Tag: ".concat(h),to:Object(i.c)(Object(c.a)({},f,[b])),zIndex:O,children:Object(l.jsx)(o.a,Object(a.a)(Object(a.a)({_hover:{textDecoration:"underline"}},p),{},{children:Object(l.jsx)(o.b,{children:t})}))})}},275:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(230),c=n(122),r=n(1),o=function(e){var t=e.children,n=e.language,o=c.e.has(n),i=c.b[n],s=o?"Click to view documentation in ".concat(i):"Documentation support for ".concat(i," is coming soon!");return Object(r.jsx)(a.a,{hasArrow:!0,label:s,placement:"top-start",children:Object(r.jsx)("span",{children:t})})}},287:function(e,t,n){"use strict";n.r(t),n.d(t,"NotFound",(function(){return f})),n.d(t,"default",(function(){return f}));var a=n(220),c=n(213),r=n(158),o=n(36),i=n(244),s=n(6),l=n(25),d=n(19),u=n(203),b=n(234),j=n(1),h=["sources"],O=Object(d.a)((function(e,t){var n=e.sources,a=Object(l.a)(e,h);return Object(j.jsxs)(u.a,{as:"picture",children:[null===n||void 0===n?void 0:n.map((function(e,t){return Object(j.jsx)("source",{media:e.media,srcSet:e.srcSet},t)})),Object(j.jsx)(b.a,Object(s.a)({ref:t},a))]})}));O.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"},f=function(){return Object(j.jsx)(i.a,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:Object(j.jsxs)(a.a,{h:"100%",position:"relative",w:"100%",children:[Object(j.jsx)(O,{alt:"",inset:0,position:"absolute",sources:p.optimal,src:p.fallback,zIndex:"hide"}),Object(j.jsxs)(c.a,{align:"center",direction:"column",justify:"center",children:[Object(j.jsx)(O,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),Object(j.jsx)(r.a,{as:o.b,colorScheme:"blue",to:"/",children:"Take Me Home"})]})]})})}},581:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return Vt}));var a=n(22),c=n(287),r=n(5),o=n(153),i=n(574),s=n(0),l=n(244),d=n(220),u=n(235),b=n(255),j=n(72),h=n(75),O=n(87),p=n(6),f=n(28),m=n.n(f),v=n(44),g=n(14),x=function(){var e=Object(v.a)(m.a.mark((function e(t,n,a){var c,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c="".concat(Object(b.b)(t,n,a)).concat(g.a.ASSEMBLY_SUFFIX),e.next=3,fetch(c);case 3:if((r=e.sent).ok){e.next=6;break}throw new Error("Failed fetching assembly for ".concat(c,": ").concat(r.statusText));case 6:return e.abrupt("return",r.json());case 7:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),y=function(){var e=Object(v.a)(m.a.mark((function e(t,n,a,c,r){var o,i,s,l,d;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="/docs-".concat(r?"".concat(r,"-"):"").concat(a,".md"),i="".concat(Object(b.b)(t,n,c)).concat(o),e.next=4,fetch(i);case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Failed fetching documentation for ".concat(i,": ").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(t,n,a,c,r){return e.apply(this,arguments)}}(),w=function(){var e=Object(v.a)(m.a.mark((function e(t,n,a){var c,r,o;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(c=n).startsWith("^")&&(c=c.substring(1,c.length)),r="".concat(Object(b.b)(t,n,a)).concat(g.a.METADATA_SUFFIX),e.next=5,fetch(r);case 5:if((o=e.sent).ok){e.next=8;break}throw new Error("Failed fetching metadata for ".concat(r,": ").concat(o.statusText));case 8:return e.abrupt("return",o.json());case 9:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),k=n(122),C=n(260),S=n(254),L=n(76),T=n(4),I=n(16),A=n(308),R=n.n(A),E=function(e){return e.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-")},F=function e(t,n){var a=t[t.length-1];return a&&a.level<n.level?(a.children=e(a.children,n),t):(t.push(n),t)},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=new RegExp("(`{3}[\\s\\S]*?(?:`{3})|^#{1,".concat(t,"}[^#].*)"),"gm");return e.split(n).reduce((function(e,t){var n=e[e.length-1];return t.startsWith("#")||(null===n||void 0===n?void 0:n.startsWith("#"))?[].concat(Object(I.a)(e),[t]):(e[e.length-1]+=t,e)}),[])},M=function(e){var t,n,a,c,o=(null!==(t=e.match(/(\S+)\s*=\s*(\"?)([^"]*)(\2|\s|$)/g))&&void 0!==t?t:[]).reduce((function(e,t){var n,a=t.split("="),c=Object(r.a)(a,2),o=c[0],i=c[1],s=null!==(n=/['"](.*?)['"]/.exec(i))&&void 0!==n?n:[],l=Object(r.a)(s,2),d=(l[0],l[1]);return Object(p.a)(Object(p.a)({},e),{},Object(T.a)({},o,d))}),{}),i=null!==(n=/^#*\s*([^<]+?)\s*(?:<|$)/.exec(e))&&void 0!==n?n:[],s=Object(r.a)(i,2),l=(s[0],s[1].replace(/:\+1:|:-1:|:[\w-]+:/g,(function(e){var t;return null!==(t=R.a.get(e))&&void 0!==t?t:e}))),d=null!==(a=o["data-heading-title"])&&void 0!==a?a:l;return{id:null!==(c=o["data-heading-id"])&&void 0!==c?c:encodeURIComponent(E(d)),title:d}},P=function(e,t){var n,a,c=t.scope,r=t.language,o=t.name,i=t.version,s=c?"".concat(c,"/").concat(o):"".concat(o),l="/packages/".concat(s,"/v/").concat(i),d="?".concat(g.b.LANGUAGE,"=").concat(r),u='# API Reference <span data-heading-title="API Reference" data-heading-id="api-reference"></span>',b=e.split(u),j=b.length>1?b.pop():"",h=b.join(u),O=z(j,3),f=z(h),m=[u.trim()].concat(Object(I.a)(null!==O&&void 0!==O?O:[])),v="".concat(l).concat(d),x=[{level:1,id:"Readme",title:"Readme",path:v,children:f.reduce((function(e,t){if(t.startsWith("#")){var n,a,c=M(t),r=c.id,o=c.title,i={level:null!==(n=null===(a=t.match(/(#)/gm))||void 0===a?void 0:a.length)&&void 0!==n?n:1,id:r,title:o,path:"".concat(v,"#").concat(r),children:[]};return F(e,i)}return e}),[])}],y=[].concat(x),w={};return null===m||void 0===m||m.forEach((function(e){var t,c,r,o=e.match(/(^#{1,3}[^#].*)/g),i=null!==(t=null===(c=e.match(/(#)/gm))||void 0===c?void 0:c.length)&&void 0!==t?t:1;if(null===o||void 0===o?void 0:o.length){var s=M(e),u=s.id,b=s.title,j=3===i?(r=u,"".concat(l,"/api/").concat(r).concat(d)):void 0,h=Object(p.a)({level:i,id:u,title:b,children:[]},j?{path:j}:{});y=F(y,h),n={id:u,title:b},a=i}else 3===a&&(w[n.id]={title:n.title,content:e})})),{readme:h,apiReference:w,menuItems:y}},W=n(1),B=Object(s.createContext)(void 0),D=function(){var e=Object(s.useContext)(B);if(!e)throw new Error("This component must be a child of a <PackageStateProvider />");return e},N=function(e){var t,n,o,i,l,d=e.children,u=Object(a.i)(),b=u.name,j=u.scope,h=u.version,O=Object(L.a)(y),f=Object(r.a)(O,2),m=f[0],v=f[1],T=Object(L.a)(x),I=Object(r.a)(T,2),A=I[0],R=I[1],E=Object(L.a)(w),F=Object(r.a)(E,2),z=F[0],M=F[1],D=Object(S.a)(),N=Object(C.a)(),U=Object(r.a)(N,1)[0],H=null!==(t=D.get(g.b.SUBMODULE))&&void 0!==t?t:"";Object(s.useEffect)((function(){z(b,h,j),A(b,h,j)}),[b,A,z,j,h]),Object(s.useEffect)((function(){m(b,h,k.f[U],j,H)}),[b,j,h,U,H,m]);var G="".concat(j?"".concat(j,"/").concat(b):b," ").concat(h),q=null!==(n=null===(o=R.data)||void 0===o?void 0:o.description)&&void 0!==n?n:"",Z=Boolean(v.error||R.error),X=Boolean(!v.loading&&!R.loading&&v.data&&R.data),K=Boolean(U===k.d.TypeScript||R.loading||R.error||null!=(null===(i=R.data)||void 0===i||null===(l=i.targets)||void 0===l?void 0:l[U.toString()])),_=Boolean(!M.loading&&(R.loading||v.loading)),V=Object(s.useMemo)((function(){return v.data?P(v.data,{scope:j,name:b,version:h,language:U}):{menuItems:[]}}),[v.data,b,j,h,U]);return R.error?Object(W.jsx)(c.NotFound,{}):Object(W.jsx)(B.Provider,{value:Object(p.a)({assembly:R,hasDocs:X,hasError:Z,isLoadingDocs:_,isSupported:K,language:U,markdown:v,metadata:M,name:b,pageDescription:q,pageTitle:G,scope:j,version:h},V),children:d})},U=n(60),H=Object(U.a)("package-page",["page","feedbackLinks","reportLink","githubLink","dependenciesTab","dependenciesList","dependenciesLink"]),G=function(){var e,t=D().assembly.data;if(!t)return Object(W.jsx)(h.a,{});var n=Object.entries(null!==(e=t.dependencies)&&void 0!==e?e:{});return n.length?Object(W.jsx)(u.a,{"data-testid":H.dependenciesList,direction:"row",justify:"center",mx:"auto",spacing:4,wrap:"wrap",children:n.map((function(e){var t=Object(r.a)(e,2),n=t[0],a=t[1];return Object(W.jsxs)(j.a,{_first:{ml:4},"data-testid":H.dependenciesLink,fontWeight:"semibold",p:2,to:Object(O.a)({name:n,version:Object(b.d)(a)}),children:[n," - ",a]},"".concat(n,"-").concat(a))}))}):Object(W.jsx)(d.a,{children:"This library does not have any known dependencies"})},q=n(30),Z=n(158),X=n(210),K=n(48),_=n(159),V=function(e){return Object(W.jsxs)(_.a,Object(p.a)(Object(p.a)({},e),{},{children:[Object(W.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:"#002954",fillRule:"evenodd"}),Object(W.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:"#181616"})]}))},J={h:5,ml:2,w:5},$=function(){var e,t=D(),n=t.metadata.data,a=t.assembly.data;if(!a||!n)return null;var c=null!==(e=null===a||void 0===a?void 0:a.repository)&&void 0!==e?e:{},r=null;if("git"===c.type){var o,i=(null===(o=c.url)||void 0===o?void 0:o.endsWith(".git"))?c.url.replace(".git",""):c.url;i.endsWith("/")&&(i=i.slice(0,i.length-1)),r=Object(W.jsx)(Z.a,{as:K.a,color:"black","data-testid":H.githubLink,hasIcon:!1,href:"".concat(i,"/issues"),rightIcon:Object(W.jsx)(V,Object(p.a)({},J)),variant:"solid",children:"Provide Feedback"})}return Object(W.jsxs)(u.a,{align:"center",borderTop:"1px solid",borderTopColor:"blue.50",color:"blue.500","data-testid":H.feedbackLinks,direction:{base:"column",md:"row"},justify:"space-evenly",mx:8,py:10,spacing:4,children:[Object(W.jsx)(Z.a,{as:X.a,colorScheme:"blue","data-testid":H.reportLink,href:"mailto:abuse@amazonaws.com?subject=".concat(encodeURIComponent("ConstructHub - Report of abusive package: ".concat(null===a||void 0===a?void 0:a.name))),rightIcon:Object(W.jsx)(q.j,Object(p.a)({},J)),children:"Report this package"}),r]})},Y=n(213),Q=n(203),ee=n(207),te=n(209),ne=n(212),ae={color:"gray.900",h:4,w:4},ce=function(e){var t=e.children,n=e.path,a=e.title,c=e.showToggle,r={_hover:{bg:"rgba(0, 124, 253, 0.05)"},overflow:"hidden",pl:1,py:c?2:1,marginLeft:c?0:1,fontWeight:c?"bold":void 0,textOverflow:"ellipsis",w:"100%"};return n?Object(W.jsx)(j.a,Object(p.a)(Object(p.a)({title:a,to:n},r),{},{children:t})):Object(W.jsx)(ee.a,Object(p.a)(Object(p.a)({},r),{},{children:t}))},re=function e(t){var n,a=t.children,c=t.title,r=t.path,o=t.level,i=t.onOpen,l=o<2,d=Object(te.a)({onOpen:i,defaultIsOpen:l}),u=(null!==(n=null===a||void 0===a?void 0:a.length)&&void 0!==n?n:0)>0,b=d.isOpen&&u,j=Object(s.useMemo)((function(){return null===a||void 0===a?void 0:a.map((function(t,n){return Object(s.createElement)(e,Object(p.a)(Object(p.a)({},t),{},{key:n,level:o+1,onOpen:d.onOpen}))}))}),[a,d.onOpen,o]);return Object(W.jsxs)(Y.a,{direction:"column",children:[Object(W.jsxs)(Y.a,{align:"center",color:"gray.800",children:[u&&Object(W.jsx)(ne.a,{"aria-label":"expand-toggle",borderRadius:"md",h:4,icon:d.isOpen?Object(W.jsx)(q.c,Object(p.a)({},ae)):Object(W.jsx)(q.e,Object(p.a)({},ae)),ml:-1,onClick:d.onToggle,size:"xs",variant:"link",w:0}),Object(W.jsx)(ce,{path:r,showToggle:u,title:c,children:c})]}),Object(W.jsx)(Q.a,{_before:{bg:"gray.100",bottom:0,content:'""',left:0,position:"absolute",top:0,w:"1px"},display:b?"initial":"none",ml:2,mr:2,pl:2,position:"relative",children:j})]})},oe=function(e){var t=e.items;return Object(W.jsx)(Y.a,{direction:"column",maxWidth:"100%",children:t.map((function(e,t){return Object(s.createElement)(re,Object(p.a)(Object(p.a)({},e),{},{key:t,level:0,onOpen:void 0}))}))})},ie=n(215),se=n(49),le=n(221),de=n(147),ue=n(19),be=n(218),je=n(219),he=n(233),Oe=n(145),pe=n(146),fe=Object(ue.a)((function(e,t){var n=e.value,a=e.onChange,c=e.onSubmit,o=Object(s.useState)(n),i=Object(r.a)(o,2),l=i[0],d=i[1];return Object(pe.a)(l,{onChange:a}),Object(W.jsx)(Oe.a,{"data-testid":"choose-submodule-search-form",onSubmit:c,children:Object(W.jsxs)(be.a,{children:[Object(W.jsx)(je.a,{children:Object(W.jsx)(q.o,{color:"gray.400"})}),Object(W.jsx)(he.a,{"data-testid":"choose-submodule-search-input",onChange:function(e){return d(e.target.value)},placeholder:"Search",ref:t,value:l,variant:"filled"})]})})}));fe.displayName="SearchInput";var me=function(e){var t=e.inputValue,n=e.isOpen,c=e.onClose,r=e.onInputChange,o=e.submodules,i=Object(s.useRef)(null),l=Object(a.g)().push,d=Object(s.useCallback)((function(e){c(),l(e)}),[c,l]),u=Object(s.useCallback)((function(e){if(e.preventDefault(),o.length){var t=o[0].to;d(t)}}),[d,o]);return Object(W.jsx)(se.a,{initialFocusRef:i,isOpen:n,onClose:c,children:Object(W.jsx)(se.h,{children:Object(W.jsxs)(se.d,{mx:4,children:[Object(W.jsx)(se.c,{"data-testid":"choose-submodule-modal-close"}),Object(W.jsx)(se.g,{"data-testid":"choose-submodule-modal-header",fontSize:"lg",fontWeight:"bold",children:"Choose a submodule"}),Object(W.jsxs)(se.b,{"data-testid":"choose-submodule-modal-body",p:0,children:[Object(W.jsx)(Q.a,{pb:4,px:4,children:Object(W.jsx)(fe,{onChange:r,onSubmit:u,ref:i,value:t})}),Object(W.jsx)(ie.a,{}),Object(W.jsx)(le.c,{"data-testid":"choose-submodule-modal-results",m:0,maxH:"50vh",overflow:"hidden auto",p:0,role:"listbox",tabIndex:-1,children:o.map((function(e){var t=e.name,n=e.to;return Object(W.jsx)(de.a,{"data-testid":"choose-submodule-result",name:t,onClick:function(){return d(n)}},t)}))})]})]})})})},ve=function(e){var t,n=e.assembly,c=Object(a.h)().pathname,o=Object(a.g)().push,i=Object(S.a)(),l=Object.keys(null!==(t=null===n||void 0===n?void 0:n.submodules)&&void 0!==t?t:{}),d=Object(te.a)(),b=d.isOpen,j=d.onOpen,h=d.onClose,O=i.get(g.b.SUBMODULE),p=O?"Submodule: ".concat(O):"Choose Submodule",f=Object(s.useState)(""),m=Object(r.a)(f,2),v=m[0],x=m[1],y=Object(s.useCallback)((function(e){var t=new URLSearchParams(i.toString());return t.set("submodule",e),"".concat(c,"?").concat(t)}),[c,i]),w=Object(s.useMemo)((function(){var e=l;return v&&(e=e.filter((function(e){return e.toLowerCase().includes(v.toLowerCase())}))),e.map((function(e){var t=e.split(".")[1];return{name:t,to:y(t)}}))}),[l,v,y]);return 0===l.length?null:Object(W.jsxs)(u.a,{spacing:4,w:"100%",children:[O&&Object(W.jsxs)(W.Fragment,{children:[Object(W.jsx)(Z.a,{borderRadius:"none","data-testid":"choose-submodule-go-back",leftIcon:Object(W.jsx)(q.a,{"aria-label":"Back to construct root"}),onClick:function(){var e=i.get(g.b.LANGUAGE);o("".concat(c).concat(e?"?".concat(g.b.LANGUAGE,"=").concat(e):""))},title:"Back to construct root",variant:"link",children:null===n||void 0===n?void 0:n.name}),Object(W.jsx)(ie.a,{})]}),Object(W.jsx)(Z.a,{borderRadius:"none",color:"blue.500","data-testid":"choose-submodule-search-trigger",flexGrow:1,onClick:j,rightIcon:Object(W.jsx)(q.c,{}),title:"Choose Submodule",variant:"link",children:p}),Object(W.jsx)(me,{inputValue:v,isOpen:b,onClose:h,onInputChange:x,submodules:w})]})},ge=n(316),xe=n(403),ye=n.n(xe),we=n(499),ke=n.n(we),Ce=n(532),Se=n.n(Ce),Le=n(572),Te=n(535),Ie=n.n(Te),Ae=n(577),Re=n(25),Ee=n(573),Fe=n(569),ze=n(576),Me=["value"],Pe=Object(ue.a)((function(e,t){var n=e.value,a=Object(Re.a)(e,Me),c=Object(ze.a)(n),r=c.hasCopied,o=c.onCopy;return Object(W.jsx)(ne.a,Object(p.a)({"aria-label":"Copy Button",color:"blue.500",colorScheme:"blue",h:6,icon:r?Object(W.jsx)(q.b,{color:"green.300"}):Object(W.jsx)(q.h,{}),minW:"auto",ml:1,onClick:o,ref:t,variant:"ghost",w:6},a))}));Pe.displayName="CopyButton";var We,Be=function(e){var t=e.code,n=e.tokens,a=e.getLineProps,c=e.getTokenProps;return Object(W.jsxs)(W.Fragment,{children:[Object(W.jsx)(Y.a,{align:"center",bg:"rgba(0, 124, 253, 0.15)",borderTopRadius:"md",justify:"flex-end",px:2,py:1,children:Object(W.jsx)(Pe,{value:t})}),Object(W.jsx)(Q.a,{overflowX:"auto",p:2,children:n.map((function(e,t){return Object(W.jsx)("div",Object(p.a)(Object(p.a)({},a({line:e,key:t})),{},{children:e.map((function(e,t){return Object(W.jsx)("span",Object(p.a)({},c({token:e,key:t})),t)}))}),t)}))})]})},De=function(e){var t=e.code,n=e.tokens,a=e.getLineProps,c=e.getTokenProps;return Object(W.jsxs)(o.a,{p:3,templateColumns:"1fr min-content",w:"full",children:[Object(W.jsx)(Q.a,{m:-3,maxW:"full",overflow:"auto",p:3,children:n.map((function(e,t){return Object(W.jsx)("div",Object(p.a)(Object(p.a)({},a({line:e,key:t})),{},{children:e.map((function(e,t){return Object(W.jsx)("span",Object(p.a)({},c({token:e,key:t})),t)}))}),t)}))}),Object(W.jsx)(Y.a,{align:"center",ml:1,children:Object(W.jsx)(Pe,{value:t})})]})},Ne=["code","language"],Ue=function(e){var t=e.code,n=e.language,a=Object(Re.a)(e,Ne);return Object(W.jsx)(Ee.a,Object(p.a)(Object(p.a)({},Ee.b),{},{code:t,language:n,theme:Fe.a,children:function(e){return Object(W.jsx)(Q.a,Object(p.a)(Object(p.a)({as:"pre",border:"base",borderRadius:"md",boxShadow:"base",className:e.className,style:e.style},a),{},{children:e.tokens.length>1?Object(W.jsx)(Be,Object(p.a)(Object(p.a)({},e),{},{code:t})):Object(W.jsx)(De,Object(p.a)(Object(p.a)({},e),{},{code:t}))}))}}))},He=n(222),Ge=n(570),qe=n.n(Ge),Ze=function(e){var t,n,a=e.level,c=e.children,r=["2xl","xl","lg","md","sm","xs"][a-1],o="h".concat(a),i=(new DOMParser).parseFromString(qe.a.renderToStaticMarkup(c),"text/html").querySelector("span[data-heading-title][data-heading-id]"),l=null!==(t=null===i||void 0===i?void 0:i.dataset.headingTitle)&&void 0!==t?t:s.Children.toArray(c).reduce((function(e,t){return"string"===typeof t?"".concat(e).concat(t):e}),"").trim(),d=null!==(n=null===i||void 0===i?void 0:i.dataset.headingId)&&void 0!==n?n:E(l);return Object(W.jsx)(W.Fragment,{children:Object(W.jsx)(He.a,{as:o,backgroundColor:5===a?"gray.50":void 0,borderBottom:"1px solid",borderBottomColor:"gray.100",color:"gray.800",level:a,marginBottom:4,marginTop:a>=4?"1.5em":4,paddingBottom:2,paddingTop:2,paddingX:a>=4?2:void 0,size:r,children:Object(W.jsx)(j.a,{"data-heading-id":d,"data-heading-level":a,"data-heading-title":l,id:d,replace:!0,sx:{"> code":{color:"blue.800",fontSize:"inherit"}},to:"#".concat(d),children:c})})})},Xe=n(234),Ke=n(578),_e=Object(U.a)("markdown",["container"]),Ve=["children","href"],Je={a:function(e){var t=e.children,n=e.href,a=Object(Re.a)(e,Ve),c=X.a;try{if(n&&n.startsWith("http"))if(new URL(n).hostname!==window.location.hostname){c=function(e){return Object(W.jsx)(K.a,Object(p.a)({},e))}}}catch(r){c=X.a}return Object(W.jsx)(c,Object(p.a)(Object(p.a)({color:"blue.500",href:n,sx:{"> img + svg":{display:"none"}}},a),{},{children:t}))},blockquote:function(e){var t=e.children;return Object(W.jsx)(Q.a,{as:"blockquote",borderLeft:"5px solid",borderLeftColor:"gray.100",marginX:"2",px:"2",wordBreak:"break-word",children:t})},caption:Ke.b,code:function(e){var t=e.inline,n=e.children,a=e.language,c=void 0===a?"typescript":a;if(t)return Object(W.jsx)(Ae.a,{bg:"gray.50",border:"1px solid",borderColor:"gray.50",borderRadius:"md",marginTop:"md",mx:2,px:2,py:0,children:n});var r=s.Children.toArray(n).reduce((function(e,t){return"string"===typeof t?"".concat(e).concat(t):e}),"").trim();return Object(W.jsx)(Ue,{code:r,language:c})},em:function(e){var t=e.children;return Object(W.jsx)(Q.a,{as:"em",fontStyle:"normal",fontWeight:"bold",children:t})},h1:Ze,h2:Ze,h3:Ze,h4:Ze,h5:Ze,h6:Ze,hr:function(){return Object(W.jsx)(W.Fragment,{})},img:function(e){return Object(W.jsx)(Xe.a,Object(p.a)({display:"inline-block"},e))},li:function(e){var t=e.children;return Object(W.jsx)(le.a,{lineHeight:"tall",marginX:2,sx:{"em:first-of-type":{fontSize:"small"},"&::marker":{color:"gray.400"},code:{fontSize:"small"}},children:t})},ol:function(e){var t=e.children;return Object(W.jsx)(le.b,{children:t})},p:function(e){var t=e.children;return Object(W.jsx)(ee.a,{lineHeight:"1.5",mx:2,my:4,children:t})},pre:function(e){var t=e.children;return Object(W.jsx)(Q.a,{as:"pre",children:t})},sup:function(e){var t=e.children,n=void 0,a="";if(Array.isArray(t)){var c=Object(r.a)(t,1)[0];"string"===typeof c&&(a=c)}return"Required"===a?n="orange.700":"Optional"===a&&(n="green.700"),Object(W.jsx)(Q.a,{as:"sup",color:n,fontSize:"xs",ml:-1,top:-1,children:t})},table:function(e){var t=e.children;return Object(W.jsx)(Q.a,{maxW:"100%",overflowX:"auto",children:Object(W.jsx)(Ke.a,{variant:"striped",children:t})})},tbody:Ke.c,td:Ke.d,tfoot:Ke.e,th:Ke.f,thead:Ke.g,tr:Ke.h,ul:function(e){var t=e.children;return Object(W.jsx)(le.c,{marginTop:2,padding:0,children:t})}},$e=Object(p.a)({},ge);$e.attributes.span=(null!==(We=$e.attributes.span)&&void 0!==We?We:[]).concat(["dataHeadingTitle","dataHeadingId"]);var Ye=[[ke.a],[Se.a,$e]],Qe=[Ie.a,Le.a],et=/^(?:(?:git@)?github\.com:|(?:https?:\/\/)github\.com\/)([^/]+)\/([^/]+)(?:\.git)?$/,tt=function(e){var t=e.children,n=function(e){var t=e.type,n=e.url;if("git"===t){var a=et.exec(n);if(null!=a){var c=Object(r.a)(a,3);return{owner:c[1],repo:c[2]}}}}(e.repository),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HEAD";return null==n?ye.a.uriTransformer:function(a){var c=ye.a.uriTransformer(a),o=Object(r.a)(c,1)[0];if("#"===o||"/"===o)return c;if(c.includes("://"))return c;var i=n.owner,s=n.repo.replace(/\.git$/,"");return"https://".concat(e,"/").concat(i,"/").concat(s,"/").concat(t,"/").concat(c)}};return Object(W.jsx)(Q.a,{"data-testid":_e.container,px:8,children:Object(W.jsx)(ye.a,{components:Je,rehypePlugins:Ye,remarkPlugins:Qe,transformImageUri:a("raw.githubusercontent.com"),transformLinkUri:a("github.com","blob/HEAD"),children:t})})},nt=function(){var e=D(),t=e.isLoadingDocs,n=e.readme,a=e.assembly.data;return!t&&n&&a?Object(W.jsx)(tt,{repository:a.repository,children:n}):null},at=n(54),ct=function(){var e=D().language,t=Object(W.jsx)(K.a,{href:"".concat(at.a,"/issues/new"),children:"issue"});return Object(W.jsxs)(ee.a,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",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"," ",t,"."]})},rt=function(){var e=D(),t=e.isLoadingDocs,n=e.assembly.data,c=function(){var e=Object(a.i)().typeId,t=D().apiReference;if(e)return null===t||void 0===t?void 0:t[e]}();if(t)return null;if(!c||!n)return Object(W.jsx)(ct,{});var r=c.title,o=c.content;return Object(W.jsxs)(W.Fragment,{children:[Object(W.jsx)(He.a,{as:"h2",p:8,size:"2xl",children:r}),Object(W.jsx)(tt,{repository:n.repository,children:o})]})},ot="4.5rem",it=function(){var e,t=D().assembly.data;return Object.keys(null!==(e=null===t||void 0===t?void 0:t.submodules)&&void 0!==e?e:{}).length>0?Object(W.jsx)(Y.a,{borderBottom:"1px solid",borderColor:"blue.50",justify:"center",py:4,children:Object(W.jsx)(ve,{assembly:t})}):null},st=function(){var e=Object(a.j)().path,t=D().menuItems,n=Object(a.h)().hash;return Object(s.useEffect)((function(){if(n){var e=document.querySelector("".concat(n));null===e||void 0===e||e.scrollIntoView(!0)}else window.scrollTo(0,0)})),Object(W.jsxs)(o.a,{bg:"white",columnGap:4,h:"100%",templateColumns:{base:"1fr",md:"1fr 3fr"},width:"100%",children:[Object(W.jsxs)(Y.a,{alignSelf:"stretch",borderRight:"1px solid",borderRightColor:"blue.50",direction:"column",display:{base:"none",md:"flex"},maxHeight:"calc(100vh - ".concat(ot,")"),overflow:"hidden auto",pl:6,position:"sticky",pr:4,top:ot,children:[Object(W.jsx)(it,{}),Object(W.jsx)(Q.a,{overflowY:"auto",py:4,children:Object(W.jsx)(oe,{items:t})})]}),Object(W.jsx)(Q.a,{h:"max-content",maxWidth:"100%",overflow:"hidden",py:4,sx:{a:{scrollMarginTop:ot}},children:Object(W.jsxs)(a.d,{children:[Object(W.jsx)(a.b,{exact:!0,path:e,children:Object(W.jsx)(nt,{})}),Object(W.jsx)(a.b,{exact:!0,path:"".concat(e,"/api/:typeId"),children:Object(W.jsx)(rt,{})})]})})]})},lt=n(208),dt=n(275),ut=function(e){var t=e.targetLanguages,n=e.selectedLanguage,a=e.setSelectedLanguage;return Object(W.jsx)(u.a,{align:"center","data-testid":"language-bar",direction:"row",spacing:2,children:Object(I.a)(t).sort((function(e,t){return k.a.indexOf(e)-k.a.indexOf(t)})).map((function(e){var t=!k.e.has(e),c=e===n,r=k.c[e].icon;return Object(W.jsx)(dt.a,{language:e,children:Object(W.jsx)(ne.a,{"aria-label":"Select ".concat(e," icon"),border:c?"1px solid":"none",borderColor:"blue.500",borderRadius:"lg",boxShadow:"base",colorScheme:"blue",cursor:t?"not-allowed":"pointer","data-testid":"language-".concat(e),disabled:t,icon:Object(W.jsx)(r,{"aria-label":"".concat(e,"-icon"),borderRadius:"sm",height:[4,5,6],width:[4,5,6]}),onClick:function(){c||a(e)},p:1,variant:"outline",w:"max-content"})},e)}))})},bt=new Set(k.a),jt=function(){var e,t=D(),n=t.assembly.data,a=t.language,c=Object(C.a)({updateSaved:!0,updateUrl:!0}),o=Object(r.a)(c,2)[1],i=Object(C.a)({updateUrl:!0}),l=Object(r.a)(i,2)[1],d=[].concat(Object(I.a)(Object.keys(null!==(e=null===n||void 0===n?void 0:n.targets)&&void 0!==e?e:{})),[k.d.TypeScript]),u=d.includes(a);Object(s.useEffect)((function(){u||l(k.d.TypeScript)}),[u]);var b={selectedLanguage:u?a:k.d.TypeScript,setSelectedLanguage:o,targetLanguages:d.filter((function(e){return bt.has(e)}))};return Object(W.jsx)(ut,Object(p.a)({},b))},ht=n(230),Ot=n(211),pt="https://opensource.org/licenses",ft={"Apache-2.0":"".concat(pt,"/apache2.0.php"),"BSD-2-Clause":"".concat(pt,"/bsd-license.php"),MIT:"".concat(pt,"/mit-license.php")},mt=["license"],vt=Object(ue.a)((function(e,t){var n=e.license,a=Object(Re.a)(e,mt),c=ft[n];return Object(W.jsx)(K.a,Object(p.a)(Object(p.a)({href:c,ref:t},a),{},{children:n}))}));vt.displayName="LicenseLink";var gt=n(273),xt=n(88),yt=n(272),wt=["openText","closeText","isOpen"],kt=function(e){var t=e.openText,n=e.closeText,a=e.isOpen,c=Object(Re.a)(e,wt);return Object(W.jsx)(Z.a,Object(p.a)(Object(p.a)({colorScheme:"blue",leftIcon:a?Object(W.jsx)(q.f,{}):Object(W.jsx)(q.c,{}),variant:"link"},c),{},{children:a?n:t}))},Ct=function(e){var t=e.children,n=e.label,a=e.tooltip;return Object(W.jsx)(ht.a,{hasArrow:!0,isDisabled:!a,label:a,placement:"left",children:Object(W.jsxs)(ee.a,{fontWeight:"bold",children:[n," ",Object(W.jsx)(Q.a,{as:"span",fontWeight:"normal",children:t})]})})},St=function(e){var t=e.downloads;return Object(W.jsx)(Ct,{label:Object(W.jsxs)(W.Fragment,{children:[Object(W.jsx)(Q.a,{as:"span",mr:1,children:Object(W.jsx)(q.i,{})}),t.toLocaleString()]}),tooltip:"Download numbers are periodically sourced from the NPM registry",children:"Weekly downloads"})},Lt=function(e){var t=D(),n=Object(xt.b)().data,a=Object(te.a)(),c=Object(yt.a)("packageLinks"),r=function(e){var t=e.assembly,n=e.metadata,a=e.name,c=e.packageLinks,r=e.stats,o=[];if(t||n||r||c){var i,l,d,u,b,h=null===r||void 0===r||null===(i=r.packages)||void 0===i||null===(l=i[a])||void 0===l||null===(d=l.downloads)||void 0===d?void 0:d.npm;void 0!==h&&o.push(Object(W.jsx)(St,{downloads:h}));var p=null===t||void 0===t?void 0:t.author.name,f=null===t||void 0===t?void 0:t.repository,m=null===t||void 0===t?void 0:t.license;if(p){var v=Object(W.jsx)(j.a,{color:"blue.500",to:Object(O.c)({query:p}),children:p});o.push(Object(W.jsx)(Ct,{label:"Author",children:v}))}var g=null===n||void 0===n?void 0:n.date;if(g){var x=Object(W.jsx)(gt.a,{date:new Date(g),fontWeight:"normal",format:"MMMM dd, yyyy"});o.push(Object(W.jsx)(Ct,{label:"Published",children:x}))}if((null===c||void 0===c?void 0:c.length)&&c.forEach((function(e){var t,a=e.linkLabel,c=e.configKey,r=e.linkText,i=(null!==(t=null===n||void 0===n?void 0:n.packageLinks)&&void 0!==t?t:{})[c];if(i){var s=Object(W.jsx)(K.a,{href:i,children:null!==r&&void 0!==r?r:i});o.push(Object(W.jsxs)(Ct,{label:a,children:[a,": ",s]}))}})),f){var y=Object(O.b)(f.url);if(y){var w=Object(W.jsx)(K.a,{href:y.url,children:y.hostname});o.push(Object(W.jsx)(Ct,{label:"Repository",children:w}))}}if(m&&m in ft){var k=Object(W.jsx)(vt,{license:m});o.push(Object(W.jsx)(Ct,{label:"License",children:k}))}var C=null!==(u=null===n||void 0===n||null===(b=n.links)||void 0===b?void 0:b.npm)&&void 0!==u?u:"https://www.npmjs.com/package/".concat(null===t||void 0===t?void 0:t.name,"/v/").concat(null===t||void 0===t?void 0:t.version);if(C){var S=Object(W.jsx)(K.a,{href:C,children:new URL(C).hostname});o.push(Object(W.jsx)(Ct,{label:"Registry",children:S}))}}return o.map((function(e,t){return Object(W.jsx)(s.Fragment,{children:e},t)}))}({assembly:t.assembly.data,metadata:t.metadata.data,name:t.scope?"".concat(t.scope,"/").concat(t.name):t.name,packageLinks:c,stats:n});if(!r.length)return null;var o=r.slice(0,6),i=r.slice(6,r.length);return Object(W.jsxs)(u.a,Object(p.a)(Object(p.a)({align:"start",color:"gray.600",fontSize:".75rem",mt:2,spacing:2},e),{},{children:[o,i.length>0&&Object(W.jsxs)(W.Fragment,{children:[Object(W.jsx)(Ot.a,{animateOpacity:!0,in:a.isOpen,children:Object(W.jsx)(u.a,{spacing:2,children:i})}),Object(W.jsx)(kt,{closeText:"See less details (".concat(o.length,")"),fontSize:"inherit",isOpen:a.isOpen,onClick:a.onToggle,openText:"See more details (".concat(i.length,")")})]})]}))},Tt=n(261),It="heading",At="install",Rt="languages",Et="meta",Ft=Object(Tt.a)([It],[Et],[Rt],[At]),zt=Object(Tt.a)([It,Rt,At],[It,null,Et]),Mt=function(e){var t=e.children;return Object(W.jsx)(o.a,{columnGap:{md:6,lg:10},pt:{base:3,lg:6},px:{base:5,md:6,lg:10},rowGap:{base:4,lg:0},templateAreas:{base:Ft,lg:zt},templateColumns:{base:"1fr",lg:"1fr auto 15rem"},templateRows:{lg:"auto 1fr"},children:t})},Pt=n(126),Wt=n(274),Bt=n(110),Dt=["assembly","name","description","metadata","version"],Nt=function(e){var t,n,a,c=e.assembly,r=e.name,o=e.description,i=e.metadata,s=e.version,l=Object(Re.a)(e,Dt),d=[].concat(Object(I.a)((null!==(t=i.packageTags)&&void 0!==t?t:[]).filter((function(e){return Boolean(e.keyword)}))),Object(I.a)((null!==(n=c.keywords)&&void 0!==n?n:[]).filter((function(e){return Boolean(e)&&!Bt.a.has(e)})).map((function(e){return{isKeyword:!0,id:e,keyword:{label:e}}})))),b=null!==(a=i.constructFramework)&&void 0!==a?a:{};return Object(W.jsxs)(u.a,Object(p.a)(Object(p.a)({lineHeight:"1.5",maxW:"full",overflow:"hidden",spacing:2},l),{},{children:[Object(W.jsxs)(Y.a,{align:"center",children:[Object(W.jsx)(He.a,{color:"blue.800",flexShrink:1,fontSize:"1.5rem",isTruncated:!0,children:r}),Object(W.jsx)(Q.a,{as:"span",flex:1,fontSize:"sm",ml:4,children:s})]}),Object(W.jsx)(ee.a,{fontSize:"1rem",children:o}),Object(W.jsxs)(Y.a,{align:"center",direction:"row",pt:3,sx:{gap:"0.5rem"},wrap:"wrap",children:[Object(W.jsx)(Pt.a,Object(p.a)({},b)),Object(W.jsx)(Pt.b,Object(p.a)({color:"gray.700",fontSize:".75rem",fontWeight:"semibold"},b)),d.map((function(e){var t=e.id,n=e.isKeyword,a=e.keyword,c=(a=void 0===a?{}:a).label,r=a.color;return Object(W.jsx)(Wt.a,{isKeyword:n,value:t,variant:r,children:c},t)}))]})]}))},Ut=function(e){var t=D(),n=t.language,a=t.assembly.data,c=Object(te.a)();if(!a)return null;var r=function(e){var t=e.language,n=e.assembly,a=n.version;if(t===k.d.TypeScript){var c=n.name;return"npm install ".concat(c,"@").concat(a)}if(t===k.d.Python){var r,o,i=null===(r=n.targets)||void 0===r||null===(o=r.python)||void 0===o?void 0:o.distName;if(!i)return;return"pip install ".concat(i,"==").concat(a)}if(t===k.d.Java){var s,l,d,u,b,j,h=null===(s=n.targets)||void 0===s||null===(l=s.java)||void 0===l||null===(d=l.maven)||void 0===d?void 0:d.groupId,O=null===(u=n.targets)||void 0===u||null===(b=u.java)||void 0===b||null===(j=b.maven)||void 0===j?void 0:j.artifactId;if(!h||!O)return;return["// add this to your pom.xml","<dependency>"," <groupId>".concat(h,"</groupId>")," <artifactId>".concat(O,"</artifactId>")," <version>".concat(a,"</version>"),"</dependency>"].join("\n")}if(t===k.d.DotNet){var p,f,m=null===(p=n.targets)||void 0===p||null===(f=p.dotnet)||void 0===f?void 0:f.packageId;if(!m)return;return"dotnet add package ".concat(m," --version ").concat(a)}}({language:n,assembly:a});return r&&n?Object(W.jsx)(Y.a,Object(p.a)(Object(p.a)({align:"start",direction:"column",fontSize:".75rem"},e),{},{children:n===k.d.Java?Object(W.jsxs)(W.Fragment,{children:[Object(W.jsx)(kt,{closeText:"Hide",fontSize:"inherit",isOpen:c.isOpen,mt:2,onClick:c.onToggle,openText:"Install"}),Object(W.jsx)(Q.a,{maxW:"full",overflow:"hidden",children:Object(W.jsx)(Ot.a,{in:c.isOpen,children:Object(W.jsx)(Ue,{boxShadow:"none",code:r,fontSize:"inherit",language:n,mt:2})})})]}):Object(W.jsx)(Ue,{boxShadow:"none",code:r,fontSize:"inherit",language:n,lineHeight:"2"})})):null},Ht=function(){var e=D(),t=e.assembly,n=e.metadata,a=e.version,c=t.data,r=n.data;return c&&r?Object(W.jsxs)(Mt,{children:[Object(W.jsx)(Nt,{assembly:c,description:c.description,gridArea:It,metadata:r,name:c.name,version:a}),Object(W.jsx)(Y.a,{align:"start",gridArea:Rt,children:Object(W.jsx)(jt,{})}),Object(W.jsxs)(Y.a,{direction:"column",gridArea:Et,children:[Object(W.jsx)(ie.a,{borderBottom:"base",display:{md:"none"},mb:2}),Object(W.jsx)(Lt,{}),Object(W.jsx)(ie.a,{borderBottom:"base",display:{md:"none"},mt:2})]}),Object(W.jsx)(Y.a,{align:"start",gridArea:At,children:Object(W.jsx)(Ut,{})})]}):Object(W.jsx)(lt.a,{mx:"auto",my:10,size:"xl"})},Gt=function(){var e=D(),t=e.pageDescription,n=e.pageTitle,a=Object(s.useState)(0),c=Object(r.a)(a,2),d=c[0],u=c[1];return Object(s.useEffect)((function(){u(0)}),[n]),Object(W.jsx)(l.a,{meta:{title:n,description:t},pageName:"packageProfile",children:Object(W.jsxs)(o.a,{bg:"white","data-testid":H.page,maxW:"100vw",templateColumns:"1fr",templateRows:"auto 1fr auto",children:[Object(W.jsx)(Ht,{}),Object(W.jsxs)(i.e,{index:d,onChange:u,pt:4,variant:"line",children:[Object(W.jsxs)(i.b,{borderBottom:"base",mx:{base:0,lg:6},children:[Object(W.jsx)(i.a,{children:"Documentation"}),Object(W.jsx)(i.a,{"data-testid":H.dependenciesTab,children:"Dependencies"})]}),Object(W.jsxs)(i.d,{maxW:"full",children:[Object(W.jsx)(i.c,{p:0,children:Object(W.jsx)(st,{})}),Object(W.jsx)(i.c,{children:Object(W.jsx)(G,{})})]})]}),Object(W.jsx)($,{})]})})},qt=function(){return Object(W.jsx)(N,{children:Object(W.jsx)(Gt,{})})},Zt=n(73),Xt=function(){var e=Object(a.i)(),t=e.name,n=e.scope,r=Object(Zt.b)();if(r.loading||!r.data)return Object(W.jsx)(d.a,{minH:"16rem",children:Object(W.jsx)(lt.a,{size:"xl"})});var o=function(e,t,n){var a=Object(b.c)(t,n),c=Object(b.a)(e,a);if(c){var r=c.version,o="/v/".concat(r);return"".concat("/packages/").concat(a).concat(o)}}(r.data,t,n);return o?Object(W.jsx)(a.a,{to:o}):Object(W.jsx)(c.default,{})},Kt="[^@\\/]+",_t="@[^\\/]+",Vt=function(){var e=Object(a.j)().path;return Object(W.jsxs)(a.d,{children:[Object(W.jsx)(a.b,{exact:!0,path:"".concat(e,"/:scope(").concat(_t,")?/:name(").concat(Kt,")"),children:Object(W.jsx)(Xt,{})}),Object(W.jsx)(a.b,{path:"".concat(e,"/:scope(").concat(_t,")?/:name(").concat(Kt,")/v/:version"),children:Object(W.jsx)(qt,{})}),Object(W.jsx)(a.b,{path:"*",children:Object(W.jsx)(c.NotFound,{})})]})}}}]);
2
- //# sourceMappingURL=7.9e6e1e68.chunk.js.map
2
+ //# sourceMappingURL=7.f4b14571.chunk.js.map