@xyd-js/atlas 0.1.0-xyd.6 → 0.1.0-xyd.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ # @xyd-js/atlas
2
+
3
+ ## 0.1.0-xyd.8
4
+
5
+ ### Patch Changes
6
+
7
+ - another update
8
+ - Updated dependencies
9
+ - @xyd-js/uniform@0.1.0-xyd.7
10
+
11
+ ## 0.1.0-xyd.7
12
+
13
+ ### Patch Changes
14
+
15
+ - initial changeset bump
16
+ - Updated dependencies
17
+ - @xyd-js/uniform@0.1.0-xyd.6
package/dist/index.css CHANGED
@@ -41,13 +41,13 @@
41
41
  .h18n51vi{margin:0 4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5;}
42
42
 
43
43
  .h1de1isv{position:relative;max-width:100%;}
44
- .c174knag{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:8px;background-color:var(--atlas-comp-code-sample_buttons-container-background);}
45
- .hdr58em{padding:8px;background-color:var(--atlas-comp-code-sample_buttons-background--active);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05);}
44
+ .c174knag{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:8px;background-color:#F3F4F6;}
45
+ .hdr58em{padding:8px;background-color:#ffffff;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05);}
46
46
  .izmf263{width:16px;height:16px;}
47
47
  .h1olbpn1{overflow-x:auto;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
48
48
  .c1dubejs{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;gap:4px;padding:4px;margin-left:4px;}
49
- .he063xp{padding:0.5rem 1rem;border-radius:0.375rem;font-size:0.875rem;line-height:1.25rem;font-weight:500;white-space:nowrap;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;color:var(--atlas-comp-code-sample_buttons-color);}.he063xp:hover{color:var(--atlas-comp-code-sample_buttons-color--active);}
50
- ._lt697q{color:var(--atlas-comp-code-sample_buttons-color--active);background-color:var(--atlas-comp-code-sample_buttons-background--active);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05);}
49
+ .he063xp{padding:0.5rem 1rem;border-radius:0.375rem;font-size:0.875rem;line-height:1.25rem;font-weight:500;white-space:nowrap;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;color:#6B7280;}.he063xp:hover{color:#111827;}
50
+ ._lt697q{color:#111827;background-color:#ffffff;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05);}
51
51
 
52
52
  .hskauww{position:-webkit-sticky;position:sticky;top:6rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:32px;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.hskauww:first-child{margin-top:0;}.hskauww:last-child{margin-bottom:0;}
53
53
  .h1nkbfqz{gap:10px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
package/dist/index.d.ts CHANGED
@@ -15,4 +15,5 @@ interface AtlasLazyProps {
15
15
  }
16
16
  declare function AtlasLazy(props: AtlasLazyProps): React.JSX.Element[];
17
17
 
18
- export { Atlas, AtlasLazy, type AtlasLazyProps, type AtlasProps };
18
+ export { Atlas, AtlasLazy };
19
+ export type { AtlasLazyProps, AtlasProps };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import e,{useState as t,useRef as n,forwardRef as r,useEffect as o}from"react";import{ReferenceCategory as a}from"@xyd-js/uniform";import{CheckCheck as i,Copy as l,ChevronLeft as c,ChevronRight as u}from"lucide-react";import*as s from"@radix-ui/react-tabs";import{extractAnnotations as f,highlight as p,LANG_NAMES as d}from"@code-hike/lighter";var m="h9tkkeg",v="lz9sagk",h="he1ymcw",y="c1q2rf33",g="lhk53ap",b="h1t46rpg",E="gq5m3p7",k="hky03d0",w="i1lmmgv6",x="hpmrvhc",S="l8q9wny";function j(t){var n,r,o=t.reference;if((null===(n=null==o?void 0:o.category)||void 0===n?void 0:n.title)===a.REST){var i=o.context;r=e.createElement(O,{label:i.method.title,subtitle:"".concat(i.path.title)})}return e.createElement("div",{className:b},e.createElement(_,{title:o.title||""}),r,o.description.children,e.createElement("div",{className:E},e.createElement(N,{reference:o}),e.createElement(Lt,{examples:o.examples})))}function N(t){var n,r=t.reference;return e.createElement("div",{className:k},null===(n=null==r?void 0:r.definitions)||void 0===n?void 0:n.map((function(t,n){var r;return e.createElement("div",{key:n},(null===(r=t.properties)||void 0===r?void 0:r.length)&&e.createElement("div",{key:n,className:w},e.createElement(C,{title:t.title.title}),e.createElement(ne,{properties:t.properties})))})))}function O(t){var n=t.label,r=t.subtitle;return e.createElement(e.Fragment,null,e.createElement("div",{className:h},e.createElement("span",{className:y},e.createElement("span",{className:g},n.toUpperCase()),e.createElement("span",null,r))))}function _(t){var n=t.title;return e.createElement(e.Fragment,null,e.createElement("h1",{className:m},e.createElement("a",{className:v},n)))}function C(t){var n=t.title;return e.createElement(e.Fragment,null,e.createElement("h1",{className:x},e.createElement("a",{className:S},n)))}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function F(e){if(Array.isArray(e))return e}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function P(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)}))}}function A(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=K(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function B(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function z(){z=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var a=t&&t.prototype instanceof y?t:y,i=Object.create(a.prototype),l=new D(r||[]);return o(i,"_invoke",{value:N(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="suspendedYield",m="executing",v="completed",h={};function y(){}function g(){}function b(){}var E={};u(E,i,(function(){return this}));var k=Object.getPrototypeOf,w=k&&k(k(F([])));w&&w!==n&&r.call(w,i)&&(E=w);var x=b.prototype=y.prototype=Object.create(E);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(o,a,i,l){var c=f(e[o],e,a);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==typeof s&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(s).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function N(t,n,r){var o=p;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var c=O(l,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?v:d,u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=v,r.method="throw",r.arg=u.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var a=f(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,h;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function F(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(typeof t+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},S(j.prototype),u(j.prototype,l,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new j(s(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(x),u(x,c,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=F,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:F(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}function W(e,t){return F(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||K(e,t)||B()}function G(e){return F(e)||R(e)||K(e)||B()}function M(e){return function(e){if(Array.isArray(e))return D(e)}(e)||R(e)||K(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function K(e,t){if(e){if("string"==typeof e)return D(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}function V(e){return e?e.title?e.title:e:""}var Y={host:"h1b8wz9m"},H={host:"h1ayic9k"},J={host:"hkisad5"},X={host:"h159tzrk"},Z={host:"ht6ukcw"},Q={host:"h1hhb1ak",link:"l1ud1m37"},ee={host:"h1fjyrqx",host$$expanded:"h12sxrry",box:"b1hrqzjh",ul:"u1ofrsp8",li:"lmjvvs5"},te={host:"h9u79h5",link:"l16o3qrr"};function ne(t){var n=t.properties;return e.createElement("ul",{className:Y.host},null==n?void 0:n.map((function(t,n){return e.createElement("li",{className:H.host,key:n},e.createElement("dl",{className:X.host},e.createElement(re,{name:"name",value:V(t.name)}),e.createElement(oe,{name:"type",value:V(t.type),href:le(t)})),e.createElement("div",{className:J.host},t.children),t.properties?e.createElement(ae,{properties:t.properties}):null)})))}function re(t){t.name;var n=t.value;return e.createElement(e.Fragment,null,e.createElement("dd",null,e.createElement("code",{className:Z.host},n)))}function oe(t){t.name;var n=t.value,r=t.href;return e.createElement(e.Fragment,null,e.createElement("dd",null,e.createElement("code",{className:Q.host},r?e.createElement("a",{className:Q.link,href:r},n):n)))}function ae(n){var r=n.properties,o=W(t(!1),2),a=o[0],i=o[1];return e.createElement(e.Fragment,null,e.createElement(ie,{onClick:function(){return i(!a)},isExpanded:a}),e.createElement("div",{className:"".concat(ee.host," ").concat(a&&ee.host$$expanded)},e.createElement("div",{className:ee.box},e.createElement("ul",{role:"list",className:ee.ul},null==r?void 0:r.map((function(t,n){return e.createElement("li",{className:ee.li,key:n},e.createElement("dl",{className:X.host},e.createElement(re,{name:"name",value:V(t.name)}),e.createElement(oe,{name:"type",value:V(t.type),href:le(t)})),e.createElement("div",{className:J.host},t.children),t.properties?e.createElement(ae,{properties:t.properties}):null)}))))))}function ie(t){return e.createElement("button",{"aria-expanded":t.isExpanded,"aria-controls":"chat/object-usage_table",onClick:t.onClick,className:te.host},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24"},e.createElement("path",{fillRule:"evenodd",d:t.isExpanded?"M12 8a1 1 0 0 1 .707.293l7 7a1 1 0 0 1-1.414 1.414L12 10.414l-6.293 6.293a1 1 0 0 1-1.414-1.414l7-7A1 1 0 0 1 12 8Z":"M4.293 8.293a1 1 0 0 1 1.414 0L12 14.586l6.293-6.293a1 1 0 1 1 1.414 1.414l-7 7a1 1 0 0 1-1.414 0l-7-7a1 1 0 0 1 0-1.414Z",clipRule:"evenodd"})),e.createElement("span",{className:te.link},t.isExpanded?"Hide properties":"Show properties"))}function le(e){var t,n,r,o,a,i,l,c;if("true"!==(null===(n=null===(t=null==e?void 0:e.context)||void 0===t?void 0:t.graphqlBuiltInType)||void 0===n?void 0:n.title))return(null===(o=null===(r=e.context)||void 0===r?void 0:r.graphqlTypeShort)||void 0===o?void 0:o.title)?"/docs/api/graphql/".concat(null===(i=null===(a=e.context)||void 0===a?void 0:a.graphqlTypeShort)||void 0===i?void 0:i.title,"-").concat(V(null===(c=null===(l=e.context)||void 0===l?void 0:l.graphqlTypeFlat)||void 0===c?void 0:c.title)):void 0}var ce={host:"h47igvr"};function ue(n){var r=n.text,o=W(t(!1),2),a=o[0],c=o[1];return e.createElement("button",{"aria-label":"Copy to clipboard",onClick:function(){navigator.clipboard.writeText(r),c(!0),setTimeout((function(){c(!1)}),1200)},className:ce.host},a?e.createElement(i,{size:16}):e.createElement(l,{size:16}))}function se(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function fe(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}c((r=r.apply(e,t||[])).next())}))}function pe(e,t,n){return de.apply(this,arguments)}function de(){return(de=P(z().mark((function e(t,n,r){var o,a,i,l,c;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=[],a=t,e.next=4,me(a,n,r);case 4:return i=e.sent,l=i.code,c=i.annotations,o=[].concat(M(o),M(c)),a=l,e.abrupt("return",{code:a,annotations:o});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function me(e,t){return ve.apply(this,arguments)}function ve(){return ve=P(z().mark((function e(t,n){var r,o,a,i,l,c=arguments;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:"!",o=function(e){var t,n=new RegExp("\\s*(".concat(r,"?[\\w-]+)?(\\([^\\)]*\\)|\\[[^\\]]*\\])?(.*)$")),o=e.match(n);if(!o)return null;var a=o[1],i=o[2],l=null===(t=o[3])||void 0===t?void 0:t.trim();return a&&a.startsWith(r)?{name:a.slice(r.length),rangeString:i,query:l}:null},e.next=4,f(t,n,o);case 4:return a=e.sent,i=a.code,l=a.annotations,e.abrupt("return",{code:i,annotations:l});case 8:case"end":return e.stop()}}),e)}))),ve.apply(this,arguments)}function he(e){return!ye(e)}function ye(e){return e.hasOwnProperty("lineNumber")}function ge(e){return"string"==typeof e}"function"==typeof SuppressedError&&SuppressedError;var be=["color"];function Ee(e,t){return ke.apply(this,arguments)}function ke(){return ke=P(z().mark((function e(t,n){var r,o,a,i,l,c,u,s,f,m,v,h,y,g,b=arguments;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=b.length>2&&void 0!==b[2]?b[2]:{},o=t.value,a=t.lang,i=void 0===a?"txt":a,d.includes(i)||(console.warn('Code Hike warning: Unknown language "'.concat(i,'"')),i="txt"),e.next=5,pe(o,i,r.annotationPrefix||"!");case 5:return l=e.sent,c=l.code,u=l.annotations,e.next=10,p(c,i,n,{annotations:[],scopes:!1});case 10:return s=e.sent,f=s.lines,m=s.lang,v=s.style,h=xe(f),y=Se(h),g=je(y),e.abrupt("return",I(I({},t),{},{code:c,tokens:g,lang:m,annotations:we(u),themeName:"string"==typeof n?n:(null==n?void 0:n.name)||"unknown",style:v}));case 18:case"end":return e.stop()}}),e)}))),ke.apply(this,arguments)}function we(e){var t,n=[],r=A(e);try{for(r.s();!(t=r.n()).done;){var o,a=t.value,i=a.name,l=a.query,c=A(a.ranges);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(u.lineNumber){var s=u.lineNumber,f=u.fromColumn,p=u.toColumn;n.push({name:i,query:l,lineNumber:s,fromColumn:f,toColumn:p})}else{var d=u.fromLineNumber,m=u.toLineNumber;n.push({name:i,query:l,fromLineNumber:d,toLineNumber:m})}}}catch(e){c.e(e)}finally{c.f()}}}catch(e){r.e(e)}finally{r.f()}return n}function xe(e){var t=[];return e.forEach((function(n,r){if("lines"in n)throw new Error("Shouldnt be groups");var o=function(e){return e.map((function(e){if("tokens"in e)throw new Error("Shouldnt be groups");var t=[e.content],n=e.style||{},r=n.color,o=q(n,be);return t.push(r),Object.keys(o).length&&t.push(o),t}))}(n.tokens);t.push.apply(t,M(o)),r<e.length-1&&t.push("\n")})),t}function Se(e){var t=[];return e.forEach((function(e){if(ge(e))t.push(e);else{var n=function(e){var t=e.trim(),n=e.slice(0,e.indexOf(t)),r=e.slice(e.indexOf(t)+t.length);return[n,t,r]}(e[0]),r=W(n,3),o=r[0],a=r[1],i=r[2];if((null==o?void 0:o.length)&&t.push(o),a.length){var l=M(e);l[0]=a,t.push(l)}(null==i?void 0:i.length)&&t.push(i)}})),t}function je(e){var t=[];return e.forEach((function(e){if(ge(e)){var n=t[t.length-1];n&&ge(n)?t[t.length-1]+=e:""!==e&&t.push(e)}else e[0].length>0&&t.push(e)})),t}var Ne,Oe={exports:{}},_e={};var Ce,De,Fe={};function Le(){return Ce||(Ce=1,"production"!==process.env.NODE_ENV&&function(){var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.iterator;var h=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=h.ReactDebugCurrentFrame,o=r.getStackAddendum();""!==o&&(t+="%s",n=n.concat([o]));var a=n.map((function(e){return String(e)}));a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}("error",e,n)}var g;function b(e){return e.displayName||"Context"}function E(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case s:return"Suspense";case f:return"SuspenseList"}if("object"===U(e))switch(e.$$typeof){case c:return b(e)+".Consumer";case l:return b(e._context)+".Provider";case u:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:E(e.type)||"Memo";case d:var n=e,m=n._payload,v=n._init;try{return E(v(m))}catch(e){return null}}return null}g=Symbol.for("react.module.reference");var k,w,x,S,j,N,O,_=Object.assign,C=0;function D(){}D.__reactDisabledLog=!0;var F,L=h.ReactCurrentDispatcher;function P(e,t,n){if(void 0===F)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);F=r&&r[1]||""}return"\n"+F+e}var A,T=!1,R="function"==typeof WeakMap?WeakMap:Map;function B(e,t){if(!e||T)return"";var n,r=A.get(e);if(void 0!==r)return r;T=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=L.current,L.current=null,function(){if(0===C){k=console.log,w=console.info,x=console.warn,S=console.error,j=console.group,N=console.groupCollapsed,O=console.groupEnd;var e={configurable:!0,enumerable:!0,value:D,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}C++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"===("undefined"==typeof Reflect?"undefined":U(Reflect))&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),c=n.stack.split("\n"),u=l.length-1,s=c.length-1;u>=1&&s>=0&&l[u]!==c[s];)s--;for(;u>=1&&s>=0;u--,s--)if(l[u]!==c[s]){if(1!==u||1!==s)do{if(u--,--s<0||l[u]!==c[s]){var f="\n"+l[u].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&A.set(e,f),f}}while(u>=1&&s>=0);break}}}finally{T=!1,L.current=o,function(){if(0==--C){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},e,{value:k}),info:_({},e,{value:w}),warn:_({},e,{value:x}),error:_({},e,{value:S}),group:_({},e,{value:j}),groupCollapsed:_({},e,{value:N}),groupEnd:_({},e,{value:O})})}C<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var p=e?e.displayName||e.name:"",d=p?P(p):"";return"function"==typeof e&&A.set(e,d),d}function $(e,t,n){if(null==e)return"";if("function"==typeof e)return B(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return P(e);switch(e){case s:return P("Suspense");case f:return P("SuspenseList")}if("object"===U(e))switch(e.$$typeof){case u:return B(e.render,!1);case p:return $(e.type,t,n);case d:var o=e,a=o._payload,i=o._init;try{return $(i(a),t,n)}catch(e){}}return""}A=new R;var I=Object.prototype.hasOwnProperty,q={},z=h.ReactDebugCurrentFrame;function W(e){if(e){var t=e._owner,n=$(e.type,e._source,t?t.type:null);z.setExtraStackFrame(n)}else z.setExtraStackFrame(null)}var G=Array.isArray;function M(e){return G(e)}function K(e){return""+e}function V(e){if(function(e){try{return K(e),!1}catch(e){return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),K(e)}var Y,H,J=h.ReactCurrentOwner,X={key:!0,ref:!0,__self:!0,__source:!0};function Z(e,t,r,o,a){var i,l={},c=null,u=null;for(i in void 0!==r&&(V(r),c=""+r),function(e){if(I.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(V(t.key),c=""+t.key),function(e){if(I.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(u=t.ref,function(e){"string"==typeof e.ref&&J.current}(t)),t)I.call(t,i)&&!X.hasOwnProperty(i)&&(l[i]=t[i]);if(e&&e.defaultProps){var s=e.defaultProps;for(i in s)void 0===l[i]&&(l[i]=s[i])}if(c||u){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;c&&function(e,t){var n=function(){Y||(Y=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(l,f),u&&function(e,t){var n=function(){H||(H=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(l,f)}return function(e,t,r,o,a,i,l){var c={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:i,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}(e,c,u,a,o,J.current,l)}var Q,ee=h.ReactCurrentOwner,te=h.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,n=$(e.type,e._source,t?t.type:null);te.setExtraStackFrame(n)}else te.setExtraStackFrame(null)}function re(e){return"object"===U(e)&&null!==e&&e.$$typeof===n}function oe(){if(ee.current){var e=E(ee.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Q=!1;var ae={};function ie(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=oe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!ae[n]){ae[n]=!0;var r="";e&&e._owner&&e._owner!==ee.current&&(r=" It was passed a child from "+E(e._owner.type)+"."),ne(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ne(null)}}}function le(e,t){if("object"===U(e))if(M(e))for(var n=0;n<e.length;n++){var r=e[n];re(r)&&ie(r,t)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!==U(e))return null;var t=v&&e[v]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)re(a.value)&&ie(a.value,t)}}function ce(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!==U(n)||n.$$typeof!==u&&n.$$typeof!==p)return;t=n.propTypes}if(t){var r=E(n);!function(e,t,n,r,o){var a=Function.call.bind(I);for(var i in e)if(a(e,i)){var l=void 0;try{if("function"!=typeof e[i]){var c=Error((r||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+U(e[i])+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}l=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(W(o),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,U(l)),W(null)),l instanceof Error&&!(l.message in q)&&(q[l.message]=!0,W(o),y("Failed %s type: %s",n,l.message),W(null))}}(t,e.props,"prop",r,e)}else if(void 0!==n.PropTypes&&!Q){Q=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ue={};function se(e,t,r,v,h,b){var k=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===i||e===a||e===s||e===f||e===m||"object"===U(e)&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===l||e.$$typeof===c||e.$$typeof===u||e.$$typeof===g||void 0!==e.getModuleId)}(e);if(!k){var w="";(void 0===e||"object"===U(e)&&null!==e&&0===Object.keys(e).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var x;w+=oe(),null===e?x="null":M(e)?x="array":void 0!==e&&e.$$typeof===n?(x="<"+(E(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):x=U(e),y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,w)}var S=Z(e,t,r,h,b);if(null==S)return S;if(k){var j=t.children;if(void 0!==j)if(v)if(M(j)){for(var N=0;N<j.length;N++)le(j[N],e);Object.freeze&&Object.freeze(j)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(j,e)}if(I.call(t,"key")){var O=E(e),_=Object.keys(t).filter((function(e){return"key"!==e})),C=_.length>0?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}";if(!ue[O+C])y('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',C,O,_.length>0?"{"+_.join(": ..., ")+": ...}":"{}",O),ue[O+C]=!0}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ne(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ne(null);break}}null!==e.ref&&(ne(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null))}(S):ce(S),S}var fe=function(e,t,n){return se(e,t,n,!1)},pe=function(e,t,n){return se(e,t,n,!0)};Fe.Fragment=o,Fe.jsx=fe,Fe.jsxs=pe}()),Fe}var Pe=(De||(De=1,"production"===process.env.NODE_ENV?Oe.exports=function(){if(Ne)return _e;Ne=1;var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var l,c={},u=null,s=null;for(l in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(s=t.ref),t)o.call(t,l)&&!i.hasOwnProperty(l)&&(c[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps)void 0===c[l]&&(c[l]=t[l]);return{$$typeof:n,type:e,key:u,ref:s,props:c,_owner:a.current}}return _e.Fragment=r,_e.jsx=l,_e.jsxs=l,_e}():Oe.exports=Le()),Oe.exports);function Ae(e,t,n){if("children"===t)e.children=n||e.children;else if("_ref"===t)e._ref=n||e._ref;else if("data"===t)e.data=e.data?I(I({},e.data),n):n;else if("className"===t)e.className=[e.className,n].join(" ").trim();else if("style"===t)e.style=I(I({},e.style),n);else if("function"==typeof n){var r=e[t];e[t]=r?function(){r.apply(void 0,arguments),n.apply(void 0,arguments)}:n}else{if(void 0===n||"object"!==U(n)&&n===e[t])return;if(t in e)throw new Error("Didn’t know how to merge prop '".concat(t,"'. ")+"Only 'className', 'style', and event handlers are supported");e[t]=n}}function Te(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length?t[0]:t.reduce((function(e,t){for(var n in t)Ae(e,n,t[n]);return e}),{})}var Re=["merge"],Be=["_stack"],$e=["_ref","data","children"],Ie=["merge"],qe=["_stack"],ze=["lineNumber","totalLines","indentation","data","annotation"],We=["merge"],Ge=["_stack"],Me=["value","data"],Ue=function(e){var t=Te(e.merge,q(e,Re)),n=t._stack,r=q(t,Be),o=G(n),a=o[0],i=o.slice(1);if(a)return Pe.jsx(a,I({_stack:i},r));var l=r._ref;r.data;var c=r.children,u=q(r,$e);return Pe.jsx("pre",I(I({},u),{},{ref:l,"data-ch":!0,children:Pe.jsx("div",{style:{minWidth:"fit-content"},children:c})}))},Ke=function(e){var t=Te(e.merge,q(e,Ie)),n=t._stack,r=q(t,qe),o=G(n),a=o[0],i=o.slice(1);if(a){var l=a.Component,c=a.annotation;return Pe.jsx(l,I(I({_stack:i},r),{},{annotation:c}))}r.lineNumber,r.totalLines,r.indentation,r.data,r.annotation;var u=q(r,ze);return Pe.jsx("div",I({},u))},Ve=function(e){var t=Te(e.merge,q(e,We)),n=t._stack,r=q(t,Ge),o=G(n),a=o[0],i=o.slice(1);if(a){var l=a.Component,c=a.annotation;return Pe.jsx(l,I(I({_stack:i},r),{},{annotation:c}))}var u=r.value;r.data;var s=q(r,Me);return Pe.jsx("span",I(I({},s),{},{children:u}))},Ye=function(e){var t=n(null),r=e._ref||t;return Pe.jsx(Ue,{merge:e,_ref:r})};function He(e,t){var n=[t.fromColumn,t.toColumn],r=Je(e,n[0]);r=Je(r,n[1]+1);var o=[],a=[],i=[];return r.forEach((function(e){e.range[1]<n[0]?o.push(e):e.range[0]>n[1]?i.push(e):a.push(e)})),[].concat(o,[{annotation:t,content:a,range:[a[0].range[0],a[a.length-1].range[1]]}],i)}function Je(e,t){var n=e.findIndex((function(e){return e.range[0]<t&&t<=e.range[1]}));if(-1===n)return e;var r=e[n];if(Xe(r)){var o,a=[],i=[],l=A(Je(r.content,t));try{for(l.s();!(o=l.n()).done;){var c=o.value;c.range[1]<t?a.push(c):i.push(c)}}catch(e){l.e(e)}finally{l.f()}return[].concat(M(e.slice(0,n)),[I(I({},r),{},{content:a,range:[r.range[0],t-1]}),I(I({},r),{},{content:i,range:[t,r.range[1]]})],M(e.slice(n+1)))}return[].concat(M(e.slice(0,n)),[I(I({},r),{},{value:r.value.slice(0,t-r.range[0]),range:[r.range[0],t-1]}),I(I({},r),{},{value:r.value.slice(t-r.range[0]),range:[t,r.range[1]]})],M(e.slice(n+1)))}function Xe(e){return void 0!==e.content}function Ze(e){var t=e.content,n=e.handlers,r=e.annotationStack;return t.map((function(e,t){return Xe(e)?Pe.jsx(et,{annotationStack:r,handlers:n,group:e},t):e.style?Pe.jsx(Qe,{annotationStack:r,handlers:n,token:e},t):e.value}))}function Qe(e){var t=e.handlers,n=e.token,r=function(e,t){var n=[];return e.forEach((function(e){var r=e.name,o=e.Token,a=e.AnnotatedToken,i=t.filter((function(e){return e.name===r}));a&&i.forEach((function(e){return n.push({Component:a,annotation:e})})),o&&(i.length||n.push({Component:o}),i.forEach((function(e){return n.push({Component:o,annotation:e})})))})),n}(t,e.annotationStack);return Pe.jsx(Ve,{merge:{_stack:r,style:n.style,value:n.value}})}function et(e){var t,n=e.group,r=e.handlers,o=e.annotationStack,a=n.annotation,i=n.content,l=a.name,c=Ze({content:i,handlers:r,annotationStack:[].concat(M(o),[a])}),u=null===(t=r.find((function(e){return e.name===l})))||void 0===t?void 0:t.Inline;return u?Pe.jsx(u,{annotation:a,children:c}):c}function tt(e,t){var n=[t.fromLineNumber,t.toLineNumber],r=nt(e,n[0]);r=nt(r,n[1]+1);var o=[],a=[],i=[];return r.forEach((function(e){e.range[1]<n[0]?o.push(e):e.range[0]>n[1]?i.push(e):a.push(e)})),[].concat(o,[{annotation:t,lines:a,range:[a[0].range[0],a[a.length-1].range[1]]}],i)}function nt(e,t){var n=e.findIndex((function(e){return rt(e)&&e.range[0]<t&&t<=e.range[1]}));if(-1===n)return e;var r=e[n],o=nt(r.lines,t),a=[],i=[];return o.forEach((function(e){e.range[1]<t?a.push(e):i.push(e)})),[].concat(M(e.slice(0,n)),[I(I({},r),{},{lines:a,range:[r.range[0],t-1]}),I(I({},r),{},{lines:i,range:[t,r.range[1]]})],M(e.slice(n+1)))}function rt(e){return void 0!==e.annotation}function ot(e){var t=e.linesOrGroups,n=e.handlers,r=e.inlineAnnotations,o=e.annotationStack,a=void 0===o?[]:o;return t.map((function(e){return rt(e)?Pe.jsx(it,{group:e,handlers:n,inlineAnnotations:r,annotationStack:a},e.range[0]):Pe.jsx(at,{line:e,handlers:n,inlineAnnotations:r,annotationStack:a},e.lineNumber)}))}function at(e){var t=e.line,n=e.handlers,r=e.inlineAnnotations,o=e.annotationStack,a=void 0===o?[]:o,i=t.lineNumber,l=t.totalLines,c=t.indentation,u=r.filter((function(e){return e.lineNumber===i})),s=function(e,t){for(var n=e,r=t.length-1;r>=0;r--)n=He(n,t[r]);return n}(t.tokens,u),f=function(e,t){var n=[];return e.forEach((function(e){var r=e.name,o=e.Line,a=e.AnnotatedLine,i=t.filter((function(e){return e.name===r}));a&&i.forEach((function(e){n.push({Component:a,annotation:e})})),o&&(i.length||n.push({Component:o}),i.forEach((function(e){n.push({Component:o,annotation:e})})))})),n}(n,a),p=Ze({content:s,handlers:n,annotationStack:a}),d={lineNumber:i,indentation:c,totalLines:l,_stack:f};return Pe.jsx(Ke,{merge:d,children:p},i)}function it(e){var t,n=e.group,r=e.handlers,o=e.inlineAnnotations,a=e.annotationStack,i=n.annotation,l=n.lines,c=i.name,u=null===(t=r.find((function(e){return e.name===c})))||void 0===t?void 0:t.Block,s=ot({linesOrGroups:l,handlers:r,inlineAnnotations:o,annotationStack:[].concat(M(a),[i])});return u?Pe.jsx(u,{annotation:i,children:s}):s}var lt=["code","handlers"],ct=r((function(e,t){var n=e.code,r=e.handlers,o=void 0===r?[]:r,a=q(e,lt),i=n.tokens,l=n.themeName,c=n.lang,u=n.annotations;if(!i)throw new Error("Missing tokens in code block. Use the `highlight` function to generate the tokens.");o.filter((function(e){return e.transform})).forEach((function(e){u=u.flatMap((function(t){return e.name!=t.name?t:e.transform(t)||[]}))}));var s=new Set(u.map((function(e){return e.name}))),f=o.filter((function(e){return!e.onlyIfAnnotated||s.has(e.name)})),p=function(e){var t=e.map((function(e){return e.Pre})).filter(Boolean),n=e.map((function(e){return e.PreWithRef})).filter(Boolean);n.length>0&&n.unshift(Ye);return[].concat(M(t),M(n))}(f),d={_stack:p,_ref:t};return Pe.jsx(Ue,I(I({merge:d,"data-theme":l,"data-lang":c},a),{},{children:Pe.jsx(ut,{tokens:i,handlers:f,annotations:u})}))}));function ut(e){var t=e.tokens,n=e.handlers,r=e.annotations,o=function(e){for(var t=[[]],n=e.slice(),r=1;n.length;){var o=n.shift();if("string"==typeof o){var a=G(o.split("\n")),i=a[0],l=a.slice(1);if(i){var c=r;r+=i.length,t[t.length-1].push({value:i,range:[c,r]})}l.length&&(t[t.length-1].push({value:"\n",range:[r,r+1]}),t.push([]),r=1,n.unshift(l.join("\n")))}else{var u=W(o,3),s=u[0],f=u[1],p=u[2],d=void 0===p?{}:p,m=r;r+=s.length,t[t.length-1].push({value:s,style:I({color:f},d),range:[m,r]})}}var v=t.length;return t.map((function(e,t){var n,r,o;return{tokens:e,range:[t+1,t+1],lineNumber:t+1,indentation:(null===(o=null===(r=null===(n=e[0])||void 0===n?void 0:n.value)||void 0===r?void 0:r.replace(/\t/g," ").match(/^\s*/))||void 0===o?void 0:o[0].length)||0,totalLines:v}}))}(t),a=r.filter(he),i=r.filter(ye),l=function(e,t){for(var n=e,r=t.length-1;r>=0;r--)n=tt(n,t[r]);return n}(o,a);return ot({linesOrGroups:l,handlers:n,inlineAnnotations:i})}var st={type:"light",colors:{"list.focusForeground":"#FFFFFF","scrollbar.shadow":"#ffffff00","tab.activeBorder":"#ffffff","widget.shadow":"#ffffff00","activityBar.border":"#D9D7D5","editorGroup.border":"#D9D7D5","editorGroupHeader.tabsBorder":"#D9D7D5","editorWidget.border":"#D9D7D5","editorWidget.resizeBorder":"#D9D7D5","input.border":"#D9D7D5","notificationCenter.border":"#D9D7D5","notifications.border":"#D9D7D5","panel.border":"#D9D7D5","sideBar.border":"#D9D7D5","statusBar.border":"#D9D7D5","tab.border":"#D9D7D5","activityBar.background":"#ECECEC","statusBar.background":"#ECECEC","statusBar.noFolderBackground":"#ECECEC","statusBar.debuggingBackground":"#ECECEC","editorGroupHeader.tabsBackground":"#F5F5F5","editorWidget.background":"#F5F5F5","sideBar.background":"#F5F5F5","sideBarSectionHeader.background":"#F5F5F5","tab.inactiveBackground":"#F5F5F5","activityBarBadge.background":"#282828","activityBar.foreground":"#282828","statusBar.foreground":"#565456","input.placeholderForeground":"#C7C6C5","editorLineNumber.foreground":"#A6A6A6","editorLineNumber.activeForeground":"#282828",foreground:"#282828","panelTitle.activeForeground":"#282828","sideBarTitle.foreground":"#282828","sideBarSectionHeader.foreground":"#282828","panelTitle.inactiveForeground":"#242424","tab.inactiveForeground":"#242424","list.highlightForeground":"#242424","editor.lineHighlightBackground":"#EEF5FE",focusBorder:"#82ADF3","button.background":"#3C93FD","list.activeSelectionBackground":"#3C93FD","list.focusBackground":"#3C93FD","selection.background":"#B3D7FF","list.inactiveSelectionBackground":"#CECECE","terminal.ansiBlack":"#000000","terminal.ansiBrightBlack":"#000000","terminal.ansiRed":"#C41A16","terminal.ansiBrightRed":"#C41A16","terminal.ansiGreen":"#007400","terminal.ansiBrightGreen":"#007400","terminal.ansiYellow":"#643820","terminal.ansiBrightYellow":"#643820","terminal.ansiBlue":"#272AD8","terminal.ansiBrightBlue":"#272AD8","terminal.ansiMagenta":"#AA0D91","terminal.ansiBrightMagenta":"#AA0D91","terminal.ansiCyan":"#3F6E74","terminal.ansiBrightCyan":"#3F6E74"},tokenColors:[{scope:"new.expr entity.name",settings:{foreground:"#713DA9"}},{name:"Comments",scope:["comment","comment storage.type"],settings:{foreground:"#536579",fontStyle:"italic"}},{name:"CSS",scope:["entity.other.attribute-name.pseudo-class.css","entity.other.attribute-name.pseudo-class.scss","entity.other.attribute-name.pseudo-element.css","entity.other.attribute-name.pseudo-element.scss","support.function.calc.css","support.function.calc.scss","support.type.property-name.css","support.type.property-name.scss","support.type.vendored.property-name.css","support.type.vendored.property-name.scss","meta.property-value.css support.constant","meta.property-value.scss support.constant","meta.property-value.css support.constant.property-value","meta.property-value.scss support.constant.property-value","support.function.transform.css","support.function.transform.scss"],settings:{foreground:"#AA0D91"}},{name:"Decorator",scope:["meta.decorator","meta.decorator punctuation.decorator","meta.decorator variable.other.readwrite","meta.decorator meta.function-call entity.name.function"],settings:{foreground:"#643820"}},{name:"Doctype",scope:["meta.tag.sgml.html"],settings:{foreground:"#A6A6A6"}},{name:"Functions",scope:["entity.name.function","support.function"],settings:{foreground:"#7051d4"}},{name:"Keys",scope:["meta.property-list meta.property-name","support.type.property-name","support.type.map.key","entity.name.tag.yaml"],settings:{foreground:"#7051d4"}},{name:"Keywords",scope:["keyword.control","keyword.declaration","keyword.expressions-and-types","keyword.operator.new","keyword.reserved","keyword.statement","storage.type","storage.modifier","constant.language","variable.language.super","variable.language.this","text.html entity.name.tag","meta.tag entity.name.tag","meta.tag support.class","string.regexp keyword.other"],settings:{foreground:"#AD3DA4",fontStyle:"bold"}},{name:"Operators",scope:["storage.type.function.arrow","meta.template.expression punctuation","punctuation.separator.key-value","meta.object-literal.key meta.brace.square","meta.template.expression keyword.operator","keyword.operator.or.regexp","keyword.operator.quantifier","punctuation.definition.group.regexp","punctuation.definition.character-class"],settings:{foreground:"#000000"}},{scope:["meta.tag entity.other.attribute-name","constant.character.escape.backslash"],settings:{foreground:"#816927"}},{name:"Numbers",scope:["constant.numeric","keyword.other.unit","constant.other.color"],settings:{foreground:"#272AD8"}},{name:"Strings",scope:["string","variable.parameter.url.scss","markup.heading.markdown","beginning.punctuation.definition.list.markdown","meta.template.expression meta.embedded punctuation.definition.string.begin","meta.template.expression meta.embedded punctuation.definition.string.end"],settings:{foreground:"#D12F1B"}},{name:"Types",scope:["meta.type","meta.return.type","entity.name.type","support.type.primitive"],settings:{foreground:"#713DA9"}},{scope:["meta.objectliteral variable.other.object","entity.name.type.module","entity.other.inherited-class","variable.scss","variable.other.bracket.shell","entity.name.function.scss"],settings:{foreground:"#3F6E74"}},{scope:["keyword.control.at-rule","meta.import variable.other.readwrite","meta.definition.variable variable.other.readwrite","meta.definition.variable variable.other.constant","meta.template.expression variable.other.readwrite","meta.template.expression variable.other.constant","support.constant.property-value"],settings:{foreground:"#000000"}},{scope:["variable.other.property","variable.other.object.property","support.variable.property"],settings:{foreground:"#713DA9"}}]};var ft,pt={host:"h1ur68ey"},dt={host:"hp2fg9q",list:"l1u5q09",button:"b1g5l43",description:"d1x4vxzj",description$item:"d1n1kybx",copy:"c1qxxuld"},mt={host:"h1gfddng"},vt="h1h0n8u6",ht="l12klvp",yt="_4uqa3m",gt="h18n51vi",bt=(ft=s.Root,function(n){var r=W(t("undefined"!=typeof localStorage&&(null===localStorage||void 0===localStorage?void 0:localStorage.getItem(n.localStorageKey))||n.defaultValue),2),a=r[0],i=r[1];return o((function(){var e=function(e){e.key===n.localStorageKey&&i(e.newValue||n.defaultValue)};return window.addEventListener("storage",e),function(){window.removeEventListener("storage",e)}}),[n.localStorageKey]),e.createElement(ft,{onValueChange:function(e){localStorage.setItem(n.localStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:n.localStorageKey,newValue:e}))},value:a},n.children)});function Et(n){var r,a,i,l,c=W(t([]),2),u=c[0],f=c[1];return o((function(){!function(){fe(this,void 0,void 0,z().mark((function e(){var t,r;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(null===(t=n.codeblocks)||void 0===t?void 0:t.map((function(e){return Ee(e,st)})));case 2:r=e.sent,f(r);case 4:case"end":return e.stop()}}),e)})))}()}),[n.codeblocks]),0===u.length?e.createElement("div",null,"Loading"):u?e.createElement(bt,{className:pt.host,style:null===(r=u[0])||void 0===r?void 0:r.style,localStorageKey:"preferredLanguage[".concat(name,"]"),defaultValue:null===(a=u[0])||void 0===a?void 0:a.meta},e.createElement("div",{className:dt.host},e.createElement(kt,{description:n.description}),e.createElement(s.List,{className:dt.list},null===(i=n.codeblocks)||void 0===i?void 0:i.map((function(t,n){var r=t.meta;return e.createElement(s.Trigger,{value:r,key:n,className:dt.button},r)}))),e.createElement("div",{className:dt.copy},null===(l=n.codeblocks)||void 0===l?void 0:l.map((function(t,n){return e.createElement(s.Content,{value:t.meta,asChild:!0,key:n},e.createElement(ue,{text:t.value}))})))),null==u?void 0:u.map((function(t,n){return e.createElement(s.Content,{value:t.meta,key:n},e.createElement(ct,{className:mt.host,style:(null==t?void 0:t.style)||(null==t?void 0:t.style),code:t,handlers:[wt,xt]}))}))):e.createElement("div",null,"Loading")}function kt(t){return e.createElement("div",{className:dt.description},e.createElement("div",{className:dt.description$item},t.description))}var wt={name:"Mark",Line:function(t){var n=t.annotation,r=se(t,["annotation"]);return e.createElement("div",{className:"".concat(vt," ").concat(n&&yt)},e.createElement(Ke,{merge:r,className:ht}))}},xt={name:"LineNumber",Line:function(t){t.annotation;var n=se(t,["annotation"]),r=n.totalLines.toString().length+1;return e.createElement(e.Fragment,null,e.createElement("span",{style:{minWidth:"".concat(r,"ch")},className:gt},n.lineNumber),e.createElement(Ke,{merge:n}))}},St={host:"h1de1isv",container:"c174knag"},jt={host:"hdr58em",icon:"izmf263"},Nt={host:"h1olbpn1",container:"c1dubejs"},Ot={host:"he063xp",$$active:"_lt697q"};function _t(r){var a=r.examples,i=r.activeExample,l=r.onClick,s=W(t(!1),2),f=s[0],p=s[1],d=W(t(!1),2),m=d[0],v=d[1],h=n(null),y=function(){if(h.current){var e=h.current,t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;p(t>0),v(t<n-r)}};o((function(){return y(),window.addEventListener("resize",y),function(){return window.removeEventListener("resize",y)}}),[]);var g=function(e){if(h.current){var t="left"===e?-200:200;h.current.scrollBy({left:t,behavior:"smooth"})}};return e.createElement("div",{className:St.host},e.createElement("div",{className:St.container},f&&e.createElement("button",{onClick:function(){return g("left")},className:jt.host},e.createElement(c,{className:jt.icon})),e.createElement("div",{ref:h,onScroll:y,className:Nt.host},e.createElement("div",{className:Nt.container},null==a?void 0:a.map((function(t){return e.createElement(Ct,{key:t.codeblock.title,onClick:function(){return l(t)},example:t,activeExample:i},V(t.codeblock.title||null))})))),m&&e.createElement("button",{onClick:function(){return g("right")},className:jt.host},e.createElement(u,{className:jt.icon}))))}function Ct(t){var n,r,o=t.onClick,a=t.children,i=t.activeExample,l=t.example,c=(null==i?void 0:i.description)&&(null==i?void 0:i.description)===(null==l?void 0:l.description)||(null===(n=null==i?void 0:i.codeblock)||void 0===n?void 0:n.title)&&(null===(r=null==i?void 0:i.codeblock)||void 0===r?void 0:r.title)===l.codeblock.title;return e.createElement("button",{onClick:o,className:"".concat(Ot.host," ").concat(c&&Ot.$$active)},a)}var Dt={host:"hskauww"},Ft={host:"h1nkbfqz"};function Lt(n){var r,o=n.examples;return e.createElement("div",{className:Dt.host},null===(r=o.groups)||void 0===r?void 0:r.map((function(n,r){var o,a,i=n.description,l=n.examples,c=W(t(null==l?void 0:l[0]),2),u=c[0],s=c[1],f=null===(a=null===(o=null==u?void 0:u.codeblock)||void 0===o?void 0:o.tabs)||void 0===a?void 0:a.map((function(e){return e.code}));return e.createElement("div",{key:r,className:Ft.host},(null==l?void 0:l.length)>1?e.createElement(_t,{activeExample:u,examples:l,onClick:function(e){s(e)}}):null,e.createElement(Et,{name:String(r),description:(null==i?void 0:i.title)||"",codeblocks:f||[]}))})))}var Pt="h5edgc7";function At(t){var n;return e.createElement("div",{className:Pt},null===(n=t.references)||void 0===n?void 0:n.map((function(t,n){return e.createElement("div",{key:n},e.createElement(j,{reference:Object.assign({},t)}))})))}var Tt="h12vpet9",Rt="_18e99ku";function Bt(t){var n;return null===(n=t.references)||void 0===n?void 0:n.map((function(n,r){var o;return e.createElement(e.Fragment,null,e.createElement("div",{key:r,className:"".concat(Tt," ").concat(0===r&&Rt),"data-slug":"".concat(t.urlPrefix,"/").concat(null===(o=n.canonical)||void 0===o?void 0:o.title)},e.createElement($t,{reference:n,onLoad:r===t.references.length-1?t.onLoaded:null})))}))}function $t(t){var n=t.reference,r=t.onLoad;return o((function(){r&&r()}),[]),e.createElement(e.Fragment,null,e.createElement(j,{reference:n}))}export{At as Atlas,Bt as AtlasLazy};
1
+ import e,{useState as t,useRef as n,forwardRef as r,useEffect as o}from"react";import{ReferenceCategory as a}from"@xyd-js/uniform";import{CheckCheck as i,Copy as l,ChevronLeft as c,ChevronRight as u}from"lucide-react";import*as s from"@radix-ui/react-tabs";import{extractAnnotations as f,highlight as p,LANG_NAMES as d}from"@code-hike/lighter";var m="h9tkkeg",h="lz9sagk",v="he1ymcw",y="c1q2rf33",g="lhk53ap",b="h1t46rpg",k="gq5m3p7",E="hky03d0",w="i1lmmgv6",x="hpmrvhc",S="l8q9wny";function j(t){var n,r,o=t.reference;switch(null===(n=null==o?void 0:o.category)||void 0===n?void 0:n.title){case a.REST:var i=o.context;if(!(i&&i.method&&i.path&&i.path.title))break;r=e.createElement(O,{label:i.method.title,subtitle:"".concat(decodeURIComponent(i.path.title))})}return e.createElement("div",{className:b},e.createElement(C,{title:o.title||""}),r,o.description.children,e.createElement("div",{className:k},e.createElement(N,{reference:o}),o.examples&&e.createElement(Lt,{examples:o.examples})))}function N(t){var n,r=t.reference;return e.createElement("div",{className:E},null===(n=null==r?void 0:r.definitions)||void 0===n?void 0:n.map((function(t,n){var r;return e.createElement("div",{key:n},(null===(r=t.properties)||void 0===r?void 0:r.length)&&e.createElement("div",{key:n,className:w},e.createElement(D,{title:t.title.title}),e.createElement(ne,{properties:t.properties})))})))}function O(t){var n=t.label,r=t.subtitle;return e.createElement(e.Fragment,null,e.createElement("div",{className:v},e.createElement("span",{className:y},e.createElement("span",{className:g},n.toUpperCase()),e.createElement("span",null,r))))}function C(t){var n=t.title;return e.createElement(e.Fragment,null,e.createElement("h1",{className:m},e.createElement("a",{className:h},n)))}function D(t){var n=t.title;return e.createElement(e.Fragment,null,e.createElement("h1",{className:x},e.createElement("a",{className:S},n)))}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function F(e){if(Array.isArray(e))return e}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function A(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)}))}}function P(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=K(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function B(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function T(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function z(){z=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var a=t&&t.prototype instanceof y?t:y,i=Object.create(a.prototype),l=new _(r||[]);return o(i,"_invoke",{value:N(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="suspendedYield",m="executing",h="completed",v={};function y(){}function g(){}function b(){}var k={};u(k,i,(function(){return this}));var E=Object.getPrototypeOf,w=E&&E(E(F([])));w&&w!==n&&r.call(w,i)&&(k=w);var x=b.prototype=y.prototype=Object.create(k);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(o,a,i,l){var c=f(e[o],e,a);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==typeof s&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(s).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function N(t,n,r){var o=p;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var c=O(l,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?h:d,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=h,r.method="throw",r.arg=u.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=f(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function F(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(typeof t+" is not iterable")}return g.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},S(j.prototype),u(j.prototype,l,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new j(s(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(x),u(x,c,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=F,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;D(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:F(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function G(e,t){return F(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||K(e,t)||T()}function M(e){return F(e)||R(e)||K(e)||T()}function W(e){return function(e){if(Array.isArray(e))return _(e)}(e)||R(e)||K(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(e)}function K(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function U(e){return e?e.title?e.title:e:""}var V={host:"h1b8wz9m"},Y={host:"h1ayic9k"},J={host:"hkisad5"},X={host:"h159tzrk"},Z={host:"ht6ukcw"},Q={host:"h1hhb1ak",link:"l1ud1m37"},ee={host:"h1fjyrqx",host$$expanded:"h12sxrry",box:"b1hrqzjh",ul:"u1ofrsp8",li:"lmjvvs5"},te={host:"h9u79h5",link:"l16o3qrr"};function ne(t){var n=t.properties;return e.createElement("ul",{className:V.host},null==n?void 0:n.map((function(t,n){return e.createElement("li",{className:Y.host,key:n},e.createElement("dl",{className:X.host},e.createElement(re,{name:"name",value:U(t.name)}),e.createElement(oe,{name:"type",value:U(t.type),href:le(t)})),e.createElement("div",{className:J.host},t.children),t.properties?e.createElement(ae,{properties:t.properties}):null)})))}function re(t){t.name;var n=t.value;return e.createElement(e.Fragment,null,e.createElement("dd",null,e.createElement("code",{className:Z.host},n)))}function oe(t){t.name;var n=t.value,r=t.href;return e.createElement(e.Fragment,null,e.createElement("dd",null,e.createElement("code",{className:Q.host},r?e.createElement("a",{className:Q.link,href:r},n):n)))}function ae(n){var r=n.properties,o=G(t(!1),2),a=o[0],i=o[1];return e.createElement(e.Fragment,null,e.createElement(ie,{onClick:function(){return i(!a)},isExpanded:a}),e.createElement("div",{className:"".concat(ee.host," ").concat(a&&ee.host$$expanded)},e.createElement("div",{className:ee.box},e.createElement("ul",{role:"list",className:ee.ul},null==r?void 0:r.map((function(t,n){return e.createElement("li",{className:ee.li,key:n},e.createElement("dl",{className:X.host},e.createElement(re,{name:"name",value:U(t.name)}),e.createElement(oe,{name:"type",value:U(t.type),href:le(t)})),e.createElement("div",{className:J.host},t.children),t.properties?e.createElement(ae,{properties:t.properties}):null)}))))))}function ie(t){return e.createElement("button",{"aria-expanded":t.isExpanded,"aria-controls":"chat/object-usage_table",onClick:t.onClick,className:te.host},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24"},e.createElement("path",{fillRule:"evenodd",d:t.isExpanded?"M12 8a1 1 0 0 1 .707.293l7 7a1 1 0 0 1-1.414 1.414L12 10.414l-6.293 6.293a1 1 0 0 1-1.414-1.414l7-7A1 1 0 0 1 12 8Z":"M4.293 8.293a1 1 0 0 1 1.414 0L12 14.586l6.293-6.293a1 1 0 1 1 1.414 1.414l-7 7a1 1 0 0 1-1.414 0l-7-7a1 1 0 0 1 0-1.414Z",clipRule:"evenodd"})),e.createElement("span",{className:te.link},t.isExpanded?"Hide properties":"Show properties"))}function le(e){var t,n,r,o,a,i,l,c;if("true"!==(null===(n=null===(t=null==e?void 0:e.context)||void 0===t?void 0:t.graphqlBuiltInType)||void 0===n?void 0:n.title))return(null===(o=null===(r=e.context)||void 0===r?void 0:r.graphqlTypeShort)||void 0===o?void 0:o.title)?"/docs/api/graphql/".concat(null===(i=null===(a=e.context)||void 0===a?void 0:a.graphqlTypeShort)||void 0===i?void 0:i.title,"-").concat(U(null===(c=null===(l=e.context)||void 0===l?void 0:l.graphqlTypeFlat)||void 0===c?void 0:c.title)):void 0}var ce={host:"h47igvr"};function ue(n){var r=n.text,o=G(t(!1),2),a=o[0],c=o[1];return e.createElement("button",{"aria-label":"Copy to clipboard",onClick:function(){navigator.clipboard.writeText(r),c(!0),setTimeout((function(){c(!1)}),1200)},className:ce.host},a?e.createElement(i,{size:16}):e.createElement(l,{size:16}))}function se(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function fe(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}c((r=r.apply(e,t||[])).next())}))}function pe(e,t,n){return de.apply(this,arguments)}function de(){return(de=A(z().mark((function e(t,n,r){var o,a,i,l,c;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=[],a=t,e.next=4,me(a,n,r);case 4:return i=e.sent,l=i.code,c=i.annotations,o=[].concat(W(o),W(c)),a=l,e.abrupt("return",{code:a,annotations:o});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function me(e,t){return he.apply(this,arguments)}function he(){return he=A(z().mark((function e(t,n){var r,o,a,i,l,c=arguments;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:"!",o=function(e){var t,n=new RegExp("\\s*(".concat(r,"?[\\w-]+)?(\\([^\\)]*\\)|\\[[^\\]]*\\])?(.*)$")),o=e.match(n);if(!o)return null;var a=o[1],i=o[2],l=null===(t=o[3])||void 0===t?void 0:t.trim();return a&&a.startsWith(r)?{name:a.slice(r.length),rangeString:i,query:l}:null},e.next=4,f(t,n,o);case 4:return a=e.sent,i=a.code,l=a.annotations,e.abrupt("return",{code:i,annotations:l});case 8:case"end":return e.stop()}}),e)}))),he.apply(this,arguments)}function ve(e){return!ye(e)}function ye(e){return e.hasOwnProperty("lineNumber")}function ge(e){return"string"==typeof e}"function"==typeof SuppressedError&&SuppressedError;var be=["color"];function ke(e,t){return Ee.apply(this,arguments)}function Ee(){return Ee=A(z().mark((function e(t,n){var r,o,a,i,l,c,u,s,f,m,h,v,y,g,b=arguments;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=b.length>2&&void 0!==b[2]?b[2]:{},o=t.value,a=t.lang,i=void 0===a?"txt":a,d.includes(i)||(console.warn('Code Hike warning: Unknown language "'.concat(i,'"')),i="txt"),e.next=5,pe(o,i,r.annotationPrefix||"!");case 5:return l=e.sent,c=l.code,u=l.annotations,e.next=10,p(c,i,n,{annotations:[],scopes:!1});case 10:return s=e.sent,f=s.lines,m=s.lang,h=s.style,v=xe(f),y=Se(v),g=je(y),e.abrupt("return",I(I({},t),{},{code:c,tokens:g,lang:m,annotations:we(u),themeName:"string"==typeof n?n:(null==n?void 0:n.name)||"unknown",style:h}));case 18:case"end":return e.stop()}}),e)}))),Ee.apply(this,arguments)}function we(e){var t,n=[],r=P(e);try{for(r.s();!(t=r.n()).done;){var o,a=t.value,i=a.name,l=a.query,c=P(a.ranges);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(u.lineNumber){var s=u.lineNumber,f=u.fromColumn,p=u.toColumn;n.push({name:i,query:l,lineNumber:s,fromColumn:f,toColumn:p})}else{var d=u.fromLineNumber,m=u.toLineNumber;n.push({name:i,query:l,fromLineNumber:d,toLineNumber:m})}}}catch(e){c.e(e)}finally{c.f()}}}catch(e){r.e(e)}finally{r.f()}return n}function xe(e){var t=[];return e.forEach((function(n,r){if("lines"in n)throw new Error("Shouldnt be groups");var o=function(e){return e.map((function(e){if("tokens"in e)throw new Error("Shouldnt be groups");var t=[e.content],n=e.style||{},r=n.color,o=q(n,be);return t.push(r),Object.keys(o).length&&t.push(o),t}))}(n.tokens);t.push.apply(t,W(o)),r<e.length-1&&t.push("\n")})),t}function Se(e){var t=[];return e.forEach((function(e){if(ge(e))t.push(e);else{var n=function(e){var t=e.trim(),n=e.slice(0,e.indexOf(t)),r=e.slice(e.indexOf(t)+t.length);return[n,t,r]}(e[0]),r=G(n,3),o=r[0],a=r[1],i=r[2];if((null==o?void 0:o.length)&&t.push(o),a.length){var l=W(e);l[0]=a,t.push(l)}(null==i?void 0:i.length)&&t.push(i)}})),t}function je(e){var t=[];return e.forEach((function(e){if(ge(e)){var n=t[t.length-1];n&&ge(n)?t[t.length-1]+=e:""!==e&&t.push(e)}else e[0].length>0&&t.push(e)})),t}var Ne,Oe={exports:{}},Ce={};var De,_e,Fe={};function Le(){return De||(De=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===R?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case N:return"Profiler";case j:return"StrictMode";case _:return"Suspense";case F:return"SuspenseList"}if("object"===H(e))switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case C:return(e.displayName||"Context")+".Provider";case O:return(e._context.displayName||"Context")+".Consumer";case D:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(n=e.displayName||null)?n:t(e.type)||"Memo";case A:n=e._payload,e=e._init;try{return t(e(n))}catch(e){}}return null}function n(e){return""+e}function r(e){try{n(e);var t=!1}catch(e){t=!0}if(t){var r=(t=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),n(e)}}function o(){}function a(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||"",W=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+M+e+W}function i(e,t){if(!e||U)return"";var n=V.get(e);if(void 0!==n)return n;U=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r;r=T.H,T.H=null,function(){if(0===G){m=console.log,h=console.info,v=console.warn,y=console.error,g=console.group,b=console.groupCollapsed,k=console.groupEnd;var e={configurable:!0,enumerable:!0,value:o,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}();try{var i={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===("undefined"==typeof Reflect?"undefined":H(Reflect))&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),u=c[0],s=c[1];if(u&&s){var f=u.split("\n"),p=s.split("\n");for(c=l=0;l<f.length&&!f[l].includes("DetermineComponentFrameRoot");)l++;for(;c<p.length&&!p[c].includes("DetermineComponentFrameRoot");)c++;if(l===f.length||c===p.length)for(l=f.length-1,c=p.length-1;1<=l&&0<=c&&f[l]!==p[c];)c--;for(;1<=l&&0<=c;l--,c--)if(f[l]!==p[c]){if(1!==l||1!==c)do{if(l--,0>--c||f[l]!==p[c]){var d="\n"+f[l].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&V.set(e,d),d}}while(1<=l&&0<=c);break}}}finally{U=!1,T.H=r,function(){if(0==--G){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:m}),info:I({},e,{value:h}),warn:I({},e,{value:v}),error:I({},e,{value:y}),group:I({},e,{value:g}),groupCollapsed:I({},e,{value:b}),groupEnd:I({},e,{value:k})})}0>G&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=n}return f=(f=e?e.displayName||e.name:"")?a(f):"","function"==typeof e&&V.set(e,f),f}function l(e){if(null==e)return"";if("function"==typeof e){var t=e.prototype;return i(e,!(!t||!t.isReactComponent))}if("string"==typeof e)return a(e);switch(e){case _:return a("Suspense");case F:return a("SuspenseList")}if("object"===H(e))switch(e.$$typeof){case D:return e=i(e.render,!1);case L:return l(e.type);case A:t=e._payload,e=e._init;try{return l(e(t))}catch(e){}}return""}function c(){var e=T.A;return null===e?null:e.getOwner()}function u(){var e=t(this.type);return J[e]||(J[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function s(e,n,o,a,i,l){if("string"==typeof e||"function"==typeof e||e===S||e===N||e===j||e===_||e===F||e===P||"object"===H(e)&&null!==e&&(e.$$typeof===A||e.$$typeof===L||e.$$typeof===C||e.$$typeof===O||e.$$typeof===D||e.$$typeof===q||void 0!==e.getModuleId)){var s=n.children;if(void 0!==s)if(a)if(z(s)){for(a=0;a<s.length;a++)f(s[a],e);Object.freeze&&Object.freeze(s)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(s,e)}else s="",(void 0===e||"object"===H(e)&&null!==e&&0===Object.keys(e).length)&&(s+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),null===e?a="null":z(e)?a="array":void 0!==e&&e.$$typeof===w?(a="<"+(t(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):a=H(e),console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",a,s);if($.call(n,"key")){s=t(e);var p=Object.keys(n).filter((function(e){return"key"!==e}));a=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",X[s+a]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',a,s,p,s),X[s+a]=!0)}if(s=null,void 0!==o&&(r(o),s=""+o),function(e){if($.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(n)&&(r(n.key),s=""+n.key),"key"in n)for(var d in o={},n)"key"!==d&&(o[d]=n[d]);else o=n;return s&&function(e,t){function n(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,t,n,r,o,a){return n=a.ref,e={$$typeof:w,type:e,key:t,props:a,_owner:o},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:u}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,s,l,0,c(),o)}function f(e,t){if("object"===H(e)&&e&&e.$$typeof!==Y)if(z(e))for(var n=0;n<e.length;n++){var r=e[n];p(r)&&d(r,t)}else if(p(e))e._store&&(e._store.validated=1);else if(null===e||"object"!==H(e)?n=null:n="function"==typeof(n=B&&e[B]||e["@@iterator"])?n:null,"function"==typeof n&&n!==e.entries&&(n=n.call(e))!==e)for(;!(e=n.next()).done;)p(e.value)&&d(e.value,t)}function p(e){return"object"===H(e)&&null!==e&&e.$$typeof===w}function d(e,n){if(e._store&&!e._store.validated&&null==e.key&&(e._store.validated=1,n=function(e){var n="",r=c();return r&&(r=t(r.type))&&(n="\n\nCheck the render method of `"+r+"`."),n||(e=t(e))&&(n="\n\nCheck the top-level render call using <"+e+">."),n}(n),!Z[n])){Z[n]=!0;var r="";e&&null!=e._owner&&e._owner!==c()&&(r=null,"number"==typeof e._owner.tag?r=t(e._owner.type):"string"==typeof e._owner.name&&(r=e._owner.name),r=" It was passed a child from "+r+".");var o=T.getCurrentStack;T.getCurrentStack=function(){var t=l(e.type);return o&&(t+=o()||""),t},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,r),T.getCurrentStack=o}}var m,h,v,y,g,b,k,E=e,w=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),C=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),B=Symbol.iterator,R=Symbol.for("react.client.reference"),T=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,I=Object.assign,q=Symbol.for("react.client.reference"),z=Array.isArray,G=0;o.__reactDisabledLog=!0;var M,W,K,U=!1,V=new("function"==typeof WeakMap?WeakMap:Map),Y=Symbol.for("react.client.reference"),J={},X={},Z={};Fe.Fragment=S,Fe.jsx=function(e,t,n,r,o){return s(e,t,n,!1,0,o)},Fe.jsxs=function(e,t,n,r,o){return s(e,t,n,!0,0,o)}}()),Fe}var Ae=(_e||(_e=1,"production"===process.env.NODE_ENV?Oe.exports=function(){if(Ne)return Ce;Ne=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var a in r={},n)"key"!==a&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return Ce.Fragment=t,Ce.jsx=n,Ce.jsxs=n,Ce}():Oe.exports=Le()),Oe.exports);function Pe(e,t,n){if("children"===t)e.children=n||e.children;else if("_ref"===t)e._ref=n||e._ref;else if("data"===t)e.data=e.data?I(I({},e.data),n):n;else if("className"===t)e.className=[e.className,n].join(" ").trim();else if("style"===t)e.style=I(I({},e.style),n);else if("function"==typeof n){var r=e[t];e[t]=r?function(){r.apply(void 0,arguments),n.apply(void 0,arguments)}:n}else{if(void 0===n||"object"!==H(n)&&n===e[t])return;if(t in e)throw new Error("Didn’t know how to merge prop '".concat(t,"'. ")+"Only 'className', 'style', and event handlers are supported");e[t]=n}}function Be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length?t[0]:t.reduce((function(e,t){for(var n in t)Pe(e,n,t[n]);return e}),{})}var Re=["merge"],Te=["_stack"],$e=["_ref","data","children"],Ie=["merge"],qe=["_stack"],ze=["lineNumber","totalLines","indentation","data","annotation"],Ge=["merge"],Me=["_stack"],We=["value","data"],He=function(e){var t=Be(e.merge,q(e,Re)),n=t._stack,r=q(t,Te),o=M(n),a=o[0],i=o.slice(1);if(a)return Ae.jsx(a,I({_stack:i},r));var l=r._ref;r.data;var c=r.children,u=q(r,$e);return Ae.jsx("pre",I(I({},u),{},{ref:l,"data-ch":!0,children:Ae.jsx("div",{style:{minWidth:"fit-content"},children:c})}))},Ke=function(e){var t=Be(e.merge,q(e,Ie)),n=t._stack,r=q(t,qe),o=M(n),a=o[0],i=o.slice(1);if(a){var l=a.Component,c=a.annotation;return Ae.jsx(l,I(I({_stack:i},r),{},{annotation:c}))}r.lineNumber,r.totalLines,r.indentation,r.data,r.annotation;var u=q(r,ze);return Ae.jsx("div",I({},u))},Ue=function(e){var t=Be(e.merge,q(e,Ge)),n=t._stack,r=q(t,Me),o=M(n),a=o[0],i=o.slice(1);if(a){var l=a.Component,c=a.annotation;return Ae.jsx(l,I(I({_stack:i},r),{},{annotation:c}))}var u=r.value;r.data;var s=q(r,We);return Ae.jsx("span",I(I({},s),{},{children:u}))},Ve=function(e){var t=n(null),r=e._ref||t;return Ae.jsx(He,{merge:e,_ref:r})};function Ye(e,t){var n=[t.fromColumn,t.toColumn],r=Je(e,n[0]);r=Je(r,n[1]+1);var o=[],a=[],i=[];return r.forEach((function(e){e.range[1]<n[0]?o.push(e):e.range[0]>n[1]?i.push(e):a.push(e)})),[].concat(o,[{annotation:t,content:a,range:[a[0].range[0],a[a.length-1].range[1]]}],i)}function Je(e,t){var n=e.findIndex((function(e){return e.range[0]<t&&t<=e.range[1]}));if(-1===n)return e;var r=e[n];if(Xe(r)){var o,a=[],i=[],l=P(Je(r.content,t));try{for(l.s();!(o=l.n()).done;){var c=o.value;c.range[1]<t?a.push(c):i.push(c)}}catch(e){l.e(e)}finally{l.f()}return[].concat(W(e.slice(0,n)),[I(I({},r),{},{content:a,range:[r.range[0],t-1]}),I(I({},r),{},{content:i,range:[t,r.range[1]]})],W(e.slice(n+1)))}return[].concat(W(e.slice(0,n)),[I(I({},r),{},{value:r.value.slice(0,t-r.range[0]),range:[r.range[0],t-1]}),I(I({},r),{},{value:r.value.slice(t-r.range[0]),range:[t,r.range[1]]})],W(e.slice(n+1)))}function Xe(e){return void 0!==e.content}function Ze(e){var t=e.content,n=e.handlers,r=e.annotationStack;return t.map((function(e,t){return Xe(e)?Ae.jsx(et,{annotationStack:r,handlers:n,group:e},t):e.style?Ae.jsx(Qe,{annotationStack:r,handlers:n,token:e},t):e.value}))}function Qe(e){var t=e.handlers,n=e.token,r=function(e,t){var n=[];return e.forEach((function(e){var r=e.name,o=e.Token,a=e.AnnotatedToken,i=t.filter((function(e){return e.name===r}));a&&i.forEach((function(e){return n.push({Component:a,annotation:e})})),o&&(i.length||n.push({Component:o}),i.forEach((function(e){return n.push({Component:o,annotation:e})})))})),n}(t,e.annotationStack);return Ae.jsx(Ue,{merge:{_stack:r,style:n.style,value:n.value}})}function et(e){var t,n=e.group,r=e.handlers,o=e.annotationStack,a=n.annotation,i=n.content,l=a.name,c=Ze({content:i,handlers:r,annotationStack:[].concat(W(o),[a])}),u=null===(t=r.find((function(e){return e.name===l})))||void 0===t?void 0:t.Inline;return u?Ae.jsx(u,{annotation:a,children:c}):c}function tt(e,t){var n=[t.fromLineNumber,t.toLineNumber],r=nt(e,n[0]);r=nt(r,n[1]+1);var o=[],a=[],i=[];return r.forEach((function(e){e.range[1]<n[0]?o.push(e):e.range[0]>n[1]?i.push(e):a.push(e)})),[].concat(o,[{annotation:t,lines:a,range:[a[0].range[0],a[a.length-1].range[1]]}],i)}function nt(e,t){var n=e.findIndex((function(e){return rt(e)&&e.range[0]<t&&t<=e.range[1]}));if(-1===n)return e;var r=e[n],o=nt(r.lines,t),a=[],i=[];return o.forEach((function(e){e.range[1]<t?a.push(e):i.push(e)})),[].concat(W(e.slice(0,n)),[I(I({},r),{},{lines:a,range:[r.range[0],t-1]}),I(I({},r),{},{lines:i,range:[t,r.range[1]]})],W(e.slice(n+1)))}function rt(e){return void 0!==e.annotation}function ot(e){var t=e.linesOrGroups,n=e.handlers,r=e.inlineAnnotations,o=e.annotationStack,a=void 0===o?[]:o;return t.map((function(e){return rt(e)?Ae.jsx(it,{group:e,handlers:n,inlineAnnotations:r,annotationStack:a},e.range[0]):Ae.jsx(at,{line:e,handlers:n,inlineAnnotations:r,annotationStack:a},e.lineNumber)}))}function at(e){var t=e.line,n=e.handlers,r=e.inlineAnnotations,o=e.annotationStack,a=void 0===o?[]:o,i=t.lineNumber,l=t.totalLines,c=t.indentation,u=r.filter((function(e){return e.lineNumber===i})),s=function(e,t){for(var n=e,r=t.length-1;r>=0;r--)n=Ye(n,t[r]);return n}(t.tokens,u),f=function(e,t){var n=[];return e.forEach((function(e){var r=e.name,o=e.Line,a=e.AnnotatedLine,i=t.filter((function(e){return e.name===r}));a&&i.forEach((function(e){n.push({Component:a,annotation:e})})),o&&(i.length||n.push({Component:o}),i.forEach((function(e){n.push({Component:o,annotation:e})})))})),n}(n,a),p=Ze({content:s,handlers:n,annotationStack:a}),d={lineNumber:i,indentation:c,totalLines:l,_stack:f};return Ae.jsx(Ke,{merge:d,children:p},i)}function it(e){var t,n=e.group,r=e.handlers,o=e.inlineAnnotations,a=e.annotationStack,i=n.annotation,l=n.lines,c=i.name,u=null===(t=r.find((function(e){return e.name===c})))||void 0===t?void 0:t.Block,s=ot({linesOrGroups:l,handlers:r,inlineAnnotations:o,annotationStack:[].concat(W(a),[i])});return u?Ae.jsx(u,{annotation:i,children:s}):s}var lt=["code","handlers"],ct=r((function(e,t){var n=e.code,r=e.handlers,o=void 0===r?[]:r,a=q(e,lt),i=n.tokens,l=n.themeName,c=n.lang,u=n.annotations;if(!i)throw new Error("Missing tokens in code block. Use the `highlight` function to generate the tokens.");o.filter((function(e){return e.transform})).forEach((function(e){u=u.flatMap((function(t){return e.name!=t.name?t:e.transform(t)||[]}))}));var s=new Set(u.map((function(e){return e.name}))),f=o.filter((function(e){return!e.onlyIfAnnotated||s.has(e.name)})),p=function(e){var t=e.map((function(e){return e.Pre})).filter(Boolean),n=e.map((function(e){return e.PreWithRef})).filter(Boolean);n.length>0&&n.unshift(Ve);return[].concat(W(t),W(n))}(f),d={_stack:p,_ref:t};return Ae.jsx(He,I(I({merge:d,"data-theme":l,"data-lang":c},a),{},{children:Ae.jsx(ut,{tokens:i,handlers:f,annotations:u})}))}));function ut(e){var t=e.tokens,n=e.handlers,r=e.annotations,o=function(e){for(var t=[[]],n=e.slice(),r=1;n.length;){var o=n.shift();if("string"==typeof o){var a=M(o.split("\n")),i=a[0],l=a.slice(1);if(i){var c=r;r+=i.length,t[t.length-1].push({value:i,range:[c,r]})}l.length&&(t[t.length-1].push({value:"\n",range:[r,r+1]}),t.push([]),r=1,n.unshift(l.join("\n")))}else{var u=G(o,3),s=u[0],f=u[1],p=u[2],d=void 0===p?{}:p,m=r;r+=s.length,t[t.length-1].push({value:s,style:I({color:f},d),range:[m,r]})}}var h=t.length;return t.map((function(e,t){var n,r,o;return{tokens:e,range:[t+1,t+1],lineNumber:t+1,indentation:(null===(o=null===(r=null===(n=e[0])||void 0===n?void 0:n.value)||void 0===r?void 0:r.replace(/\t/g," ").match(/^\s*/))||void 0===o?void 0:o[0].length)||0,totalLines:h}}))}(t),a=r.filter(ve),i=r.filter(ye),l=function(e,t){for(var n=e,r=t.length-1;r>=0;r--)n=tt(n,t[r]);return n}(o,a);return ot({linesOrGroups:l,handlers:n,inlineAnnotations:i})}var st={type:"light",colors:{"list.focusForeground":"#FFFFFF","scrollbar.shadow":"#ffffff00","tab.activeBorder":"#ffffff","widget.shadow":"#ffffff00","activityBar.border":"#D9D7D5","editorGroup.border":"#D9D7D5","editorGroupHeader.tabsBorder":"#D9D7D5","editorWidget.border":"#D9D7D5","editorWidget.resizeBorder":"#D9D7D5","input.border":"#D9D7D5","notificationCenter.border":"#D9D7D5","notifications.border":"#D9D7D5","panel.border":"#D9D7D5","sideBar.border":"#D9D7D5","statusBar.border":"#D9D7D5","tab.border":"#D9D7D5","activityBar.background":"#ECECEC","statusBar.background":"#ECECEC","statusBar.noFolderBackground":"#ECECEC","statusBar.debuggingBackground":"#ECECEC","editorGroupHeader.tabsBackground":"#F5F5F5","editorWidget.background":"#F5F5F5","sideBar.background":"#F5F5F5","sideBarSectionHeader.background":"#F5F5F5","tab.inactiveBackground":"#F5F5F5","activityBarBadge.background":"#282828","activityBar.foreground":"#282828","statusBar.foreground":"#565456","input.placeholderForeground":"#C7C6C5","editorLineNumber.foreground":"#A6A6A6","editorLineNumber.activeForeground":"#282828",foreground:"#282828","panelTitle.activeForeground":"#282828","sideBarTitle.foreground":"#282828","sideBarSectionHeader.foreground":"#282828","panelTitle.inactiveForeground":"#242424","tab.inactiveForeground":"#242424","list.highlightForeground":"#242424","editor.lineHighlightBackground":"#EEF5FE",focusBorder:"#82ADF3","button.background":"#3C93FD","list.activeSelectionBackground":"#3C93FD","list.focusBackground":"#3C93FD","selection.background":"#B3D7FF","list.inactiveSelectionBackground":"#CECECE","terminal.ansiBlack":"#000000","terminal.ansiBrightBlack":"#000000","terminal.ansiRed":"#C41A16","terminal.ansiBrightRed":"#C41A16","terminal.ansiGreen":"#007400","terminal.ansiBrightGreen":"#007400","terminal.ansiYellow":"#643820","terminal.ansiBrightYellow":"#643820","terminal.ansiBlue":"#272AD8","terminal.ansiBrightBlue":"#272AD8","terminal.ansiMagenta":"#AA0D91","terminal.ansiBrightMagenta":"#AA0D91","terminal.ansiCyan":"#3F6E74","terminal.ansiBrightCyan":"#3F6E74"},tokenColors:[{scope:"new.expr entity.name",settings:{foreground:"#713DA9"}},{name:"Comments",scope:["comment","comment storage.type"],settings:{foreground:"#536579",fontStyle:"italic"}},{name:"CSS",scope:["entity.other.attribute-name.pseudo-class.css","entity.other.attribute-name.pseudo-class.scss","entity.other.attribute-name.pseudo-element.css","entity.other.attribute-name.pseudo-element.scss","support.function.calc.css","support.function.calc.scss","support.type.property-name.css","support.type.property-name.scss","support.type.vendored.property-name.css","support.type.vendored.property-name.scss","meta.property-value.css support.constant","meta.property-value.scss support.constant","meta.property-value.css support.constant.property-value","meta.property-value.scss support.constant.property-value","support.function.transform.css","support.function.transform.scss"],settings:{foreground:"#AA0D91"}},{name:"Decorator",scope:["meta.decorator","meta.decorator punctuation.decorator","meta.decorator variable.other.readwrite","meta.decorator meta.function-call entity.name.function"],settings:{foreground:"#643820"}},{name:"Doctype",scope:["meta.tag.sgml.html"],settings:{foreground:"#A6A6A6"}},{name:"Functions",scope:["entity.name.function","support.function"],settings:{foreground:"#7051d4"}},{name:"Keys",scope:["meta.property-list meta.property-name","support.type.property-name","support.type.map.key","entity.name.tag.yaml"],settings:{foreground:"#7051d4"}},{name:"Keywords",scope:["keyword.control","keyword.declaration","keyword.expressions-and-types","keyword.operator.new","keyword.reserved","keyword.statement","storage.type","storage.modifier","constant.language","variable.language.super","variable.language.this","text.html entity.name.tag","meta.tag entity.name.tag","meta.tag support.class","string.regexp keyword.other"],settings:{foreground:"#AD3DA4",fontStyle:"bold"}},{name:"Operators",scope:["storage.type.function.arrow","meta.template.expression punctuation","punctuation.separator.key-value","meta.object-literal.key meta.brace.square","meta.template.expression keyword.operator","keyword.operator.or.regexp","keyword.operator.quantifier","punctuation.definition.group.regexp","punctuation.definition.character-class"],settings:{foreground:"#000000"}},{scope:["meta.tag entity.other.attribute-name","constant.character.escape.backslash"],settings:{foreground:"#816927"}},{name:"Numbers",scope:["constant.numeric","keyword.other.unit","constant.other.color"],settings:{foreground:"#272AD8"}},{name:"Strings",scope:["string","variable.parameter.url.scss","markup.heading.markdown","beginning.punctuation.definition.list.markdown","meta.template.expression meta.embedded punctuation.definition.string.begin","meta.template.expression meta.embedded punctuation.definition.string.end"],settings:{foreground:"#D12F1B"}},{name:"Types",scope:["meta.type","meta.return.type","entity.name.type","support.type.primitive"],settings:{foreground:"#713DA9"}},{scope:["meta.objectliteral variable.other.object","entity.name.type.module","entity.other.inherited-class","variable.scss","variable.other.bracket.shell","entity.name.function.scss"],settings:{foreground:"#3F6E74"}},{scope:["keyword.control.at-rule","meta.import variable.other.readwrite","meta.definition.variable variable.other.readwrite","meta.definition.variable variable.other.constant","meta.template.expression variable.other.readwrite","meta.template.expression variable.other.constant","support.constant.property-value"],settings:{foreground:"#000000"}},{scope:["variable.other.property","variable.other.object.property","support.variable.property"],settings:{foreground:"#713DA9"}}]};var ft,pt={host:"h1ur68ey"},dt={host:"hp2fg9q",list:"l1u5q09",button:"b1g5l43",description:"d1x4vxzj",description$item:"d1n1kybx",copy:"c1qxxuld"},mt={host:"h1gfddng"},ht="h1h0n8u6",vt="l12klvp",yt="_4uqa3m",gt="h18n51vi",bt=(ft=s.Root,function(n){var r=G(t("undefined"!=typeof localStorage&&(null===localStorage||void 0===localStorage?void 0:localStorage.getItem(n.localStorageKey))||n.defaultValue),2),a=r[0],i=r[1];return o((function(){var e=function(e){e.key===n.localStorageKey&&i(e.newValue||n.defaultValue)};return window.addEventListener("storage",e),function(){window.removeEventListener("storage",e)}}),[n.localStorageKey]),e.createElement(ft,{onValueChange:function(e){localStorage.setItem(n.localStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:n.localStorageKey,newValue:e}))},value:a},n.children)});function kt(n){var r,a,i,l,c=G(t([]),2),u=c[0],f=c[1];return o((function(){!function(){fe(this,void 0,void 0,z().mark((function e(){var t,r;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(null===(t=n.codeblocks)||void 0===t?void 0:t.map((function(e){return ke(e,st)})));case 2:r=e.sent,f(r);case 4:case"end":return e.stop()}}),e)})))}()}),[n.codeblocks]),0===u.length?e.createElement("div",null,"Loading"):u?e.createElement(bt,{className:pt.host,style:null===(r=u[0])||void 0===r?void 0:r.style,localStorageKey:"preferredLanguage[".concat(name,"]"),defaultValue:null===(a=u[0])||void 0===a?void 0:a.meta},e.createElement("div",{className:dt.host},e.createElement(Et,{description:n.description}),e.createElement(s.List,{className:dt.list},null===(i=n.codeblocks)||void 0===i?void 0:i.map((function(t,n){var r=t.meta;return e.createElement(s.Trigger,{value:r,key:n,className:dt.button},r)}))),e.createElement("div",{className:dt.copy},null===(l=n.codeblocks)||void 0===l?void 0:l.map((function(t,n){return e.createElement(s.Content,{value:t.meta,asChild:!0,key:n},e.createElement(ue,{text:t.value}))})))),null==u?void 0:u.map((function(t,n){return e.createElement(s.Content,{value:t.meta,key:n},e.createElement(ct,{className:mt.host,style:(null==t?void 0:t.style)||(null==t?void 0:t.style),code:t,handlers:[wt,xt]}))}))):e.createElement("div",null,"Loading")}function Et(t){return e.createElement("div",{className:dt.description},e.createElement("div",{className:dt.description$item},t.description))}var wt={name:"Mark",Line:function(t){var n=t.annotation,r=se(t,["annotation"]);return e.createElement("div",{className:"".concat(ht," ").concat(n&&yt)},e.createElement(Ke,{merge:r,className:vt}))}},xt={name:"LineNumber",Line:function(t){t.annotation;var n=se(t,["annotation"]),r=n.totalLines.toString().length+1;return e.createElement(e.Fragment,null,e.createElement("span",{style:{minWidth:"".concat(r,"ch")},className:gt},n.lineNumber),e.createElement(Ke,{merge:n}))}},St={host:"h1de1isv",container:"c174knag"},jt={host:"hdr58em",icon:"izmf263"},Nt={host:"h1olbpn1",container:"c1dubejs"},Ot={host:"he063xp",$$active:"_lt697q"};function Ct(r){var a=r.examples,i=r.activeExample,l=r.onClick,s=G(t(!1),2),f=s[0],p=s[1],d=G(t(!1),2),m=d[0],h=d[1],v=n(null),y=function(){if(v.current){var e=v.current,t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;p(t>0),h(t<n-r)}};o((function(){return y(),window.addEventListener("resize",y),function(){return window.removeEventListener("resize",y)}}),[]);var g=function(e){if(v.current){var t="left"===e?-200:200;v.current.scrollBy({left:t,behavior:"smooth"})}};return e.createElement("div",{className:St.host},e.createElement("div",{className:St.container},f&&e.createElement("button",{onClick:function(){return g("left")},className:jt.host},e.createElement(c,{className:jt.icon})),e.createElement("div",{ref:v,onScroll:y,className:Nt.host},e.createElement("div",{className:Nt.container},null==a?void 0:a.map((function(t){return e.createElement(Dt,{key:t.codeblock.title,onClick:function(){return l(t)},example:t,activeExample:i},U(t.codeblock.title||null))})))),m&&e.createElement("button",{onClick:function(){return g("right")},className:jt.host},e.createElement(u,{className:jt.icon}))))}function Dt(t){var n,r,o=t.onClick,a=t.children,i=t.activeExample,l=t.example,c=(null==i?void 0:i.description)&&(null==i?void 0:i.description)===(null==l?void 0:l.description)||(null===(n=null==i?void 0:i.codeblock)||void 0===n?void 0:n.title)&&(null===(r=null==i?void 0:i.codeblock)||void 0===r?void 0:r.title)===l.codeblock.title;return e.createElement("button",{onClick:o,className:"".concat(Ot.host," ").concat(c&&Ot.$$active)},a)}var _t={host:"hskauww"},Ft={host:"h1nkbfqz"};function Lt(n){var r,o=n.examples;return e.createElement("div",{className:_t.host},null===(r=o.groups)||void 0===r?void 0:r.map((function(n,r){var o,a,i=n.description,l=n.examples,c=G(t(null==l?void 0:l[0]),2),u=c[0],s=c[1],f=null===(a=null===(o=null==u?void 0:u.codeblock)||void 0===o?void 0:o.tabs)||void 0===a?void 0:a.map((function(e){return e.code}));return e.createElement("div",{key:r,className:Ft.host},(null==l?void 0:l.length)>1?e.createElement(Ct,{activeExample:u,examples:l,onClick:function(e){s(e)}}):null,e.createElement(kt,{name:String(r),description:(null==i?void 0:i.title)||"",codeblocks:f||[]}))})))}var At="h5edgc7";function Pt(t){var n;return e.createElement("div",{className:At},null===(n=t.references)||void 0===n?void 0:n.map((function(t,n){return e.createElement("div",{key:n},e.createElement(j,{reference:Object.assign({},t)}))})))}var Bt="h12vpet9",Rt="_18e99ku";function Tt(t){var n;return null===(n=t.references)||void 0===n?void 0:n.map((function(n,r){var o;return e.createElement(e.Fragment,null,e.createElement("div",{key:r,className:"".concat(Bt," ").concat(0===r&&Rt),"data-slug":"".concat(t.urlPrefix,"/").concat(null===(o=n.canonical)||void 0===o?void 0:o.title)},e.createElement($t,{reference:n,onLoad:r===t.references.length-1?t.onLoaded:null})))}))}function $t(t){var n=t.reference,r=t.onLoad;return o((function(){r&&r()}),[]),e.createElement(e.Fragment,null,e.createElement(j,{reference:n}))}export{Pt as Atlas,Tt as AtlasLazy};
2
2
  //# sourceMappingURL=index.js.map