@teambit/preview 1.0.600 → 1.0.604
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/artifacts/ui-bundle/asset-manifest.json +2 -2
- package/artifacts/ui-bundle/static/js/{main.e74fa0f7.cjs → main.5b69d01e.cjs} +2 -2
- package/dist/{preview-1745032684816.js → preview-1745464885481.js} +2 -2
- package/dist/preview.preview.runtime.js +32 -19
- package/dist/preview.preview.runtime.js.map +1 -1
- package/package.json +22 -22
- package/preview.preview.runtime.tsx +25 -29
- /package/artifacts/ui-bundle/static/js/{main.e74fa0f7.cjs.LICENSE.txt → main.5b69d01e.cjs.LICENSE.txt} +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! For license information please see main.
|
1
|
+
/*! For license information please see main.5b69d01e.cjs.LICENSE.txt */
|
2
2
|
(()=>{var e={8401:(e,t,n)=>{"use strict";function r(e){return e.split("-")[0]}function i(e){return e.split("-")[1]}function o(e){return["top","bottom"].includes(r(e))?"x":"y"}function a(e){return"y"===e?"height":"width"}function s(e,t,n){let{reference:s,floating:u}=e;const c=s.x+s.width/2-u.width/2,l=s.y+s.height/2-u.height/2,f=o(t),p=a(f),d=s[p]/2-u[p]/2,h="x"===f;let v;switch(r(t)){case"top":v={x:c,y:s.y-u.height};break;case"bottom":v={x:c,y:s.y+s.height};break;case"right":v={x:s.x+s.width,y:l};break;case"left":v={x:s.x-u.width,y:l};break;default:v={x:s.x,y:s.y}}switch(i(t)){case"start":v[f]-=d*(n&&h?-1:1);break;case"end":v[f]+=d*(n&&h?-1:1)}return v}function u(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function c(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function l(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:h=!1,padding:v=0}=t,m=u(v),y=s[h?"floating"===d?"reference":"floating":d],g=c(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(y)))||n?y:y.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:f,rootBoundary:p,strategy:l})),b=c(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:i}:a.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:g.top-b.top+m.top,bottom:b.bottom-g.bottom+m.bottom,left:g.left-b.left+m.left,right:b.right-g.right+m.right}}n.r(t),n.d(t,{arrow:()=>ve,autoPlacement:()=>w,autoUpdate:()=>ue,computePosition:()=>ce,detectOverflow:()=>l,flip:()=>O,getOverflowAncestors:()=>ie,hide:()=>N,inline:()=>P,limitShift:()=>x,offset:()=>S,shift:()=>R,size:()=>j,useFloating:()=>he});const f=Math.min,p=Math.max;function d(e,t,n){return p(e,f(t,n))}const h=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:s,y:c,placement:l,rects:f,platform:p}=t;if(null==n)return{};const h=u(r),v={x:s,y:c},m=o(l),y=i(l),g=a(m),b=await p.getDimensions(n),E="y"===m?"top":"left",_="y"===m?"bottom":"right",w=f.reference[g]+f.reference[m]-v[m]-f.floating[g],O=v[m]-f.reference[m],T=await(null==p.getOffsetParent?void 0:p.getOffsetParent(n));let I=T?"y"===m?T.clientHeight||0:T.clientWidth||0:0;0===I&&(I=f.floating[g]);const N=w/2-O/2,S=h[E],A=I-b[g]-h[_],R=I/2-b[g]/2+N,x=d(S,R,A),j=("start"===y?h[E]:h[_])>0&&R!==x&&f.reference[g]<=f.floating[g];return{[m]:v[m]-(j?R<S?S-R:A-R:0),data:{[m]:x,centerOffset:R-x}}}}),v={left:"right",right:"left",bottom:"top",top:"bottom"};function m(e){return e.replace(/left|right|bottom|top/g,(e=>v[e]))}function y(e,t,n){void 0===n&&(n=!1);const r=i(e),s=o(e),u=a(s);let c="x"===s?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[u]>t.floating[u]&&(c=m(c)),{main:c,cross:m(c)}}const g={start:"end",end:"start"};function b(e){return e.replace(/start|end/g,(e=>g[e]))}const E=["top","right","bottom","left"],_=E.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),w=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,a,s,u;const{x:c,y:f,rects:p,middlewareData:d,placement:h,platform:v,elements:m}=t,{alignment:g=null,allowedPlacements:E=_,autoAlignment:w=!0,...O}=e,T=function(e,t,n){return(e?[...n.filter((t=>i(t)===e)),...n.filter((t=>i(t)!==e))]:n.filter((e=>r(e)===e))).filter((n=>!e||i(n)===e||!!t&&b(n)!==n))}(g,w,E),I=await l(t,O),N=null!=(n=null==(o=d.autoPlacement)?void 0:o.index)?n:0,S=T[N];if(null==S)return{};const{main:A,cross:R}=y(S,p,await(null==v.isRTL?void 0:v.isRTL(m.floating)));if(h!==S)return{x:c,y:f,reset:{placement:T[0]}};const x=[I[r(S)],I[A],I[R]],j=[...null!=(a=null==(s=d.autoPlacement)?void 0:s.overflows)?a:[],{placement:S,overflows:x}],P=T[N+1];if(P)return{data:{index:N+1,overflows:j},reset:{placement:P}};const D=j.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),L=null==(u=D.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:u.placement,M=null!=L?L:D[0].placement;return M!==h?{data:{index:N+1,overflows:j},reset:{placement:M}}:{}}}},O=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:u,elements:c}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",flipAlignment:v=!0,...g}=e,E=r(i),_=d||(E!==s&&v?function(e){const t=m(e);return[b(e),t,b(t)]}(s):[m(s)]),w=[s,..._],O=await l(t,g),T=[];let I=(null==(n=o.flip)?void 0:n.overflows)||[];if(f&&T.push(O[E]),p){const{main:e,cross:t}=y(i,a,await(null==u.isRTL?void 0:u.isRTL(c.floating)));T.push(O[e],O[t])}if(I=[...I,{placement:i,overflows:T}],!T.every((e=>e<=0))){var N,S;const e=(null!=(N=null==(S=o.flip)?void 0:S.index)?N:0)+1,t=w[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n="bottom";switch(h){case"bestFit":{var A;const e=null==(A=I.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0].placement;e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}};function T(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function I(e){return E.some((t=>e[t]>=0))}const N=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=T(await l(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:I(t)}}}case"escaped":{const t=T(await l(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:I(t)}}}default:return{}}}}},S=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:a}=t,s=await async function(e,t){const{placement:n,platform:a,elements:s}=e,u=await(null==a.isRTL?void 0:a.isRTL(s.floating)),c=r(n),l=i(n),f="x"===o(n),p=["left","top"].includes(c)?-1:1,d=u&&f?-1:1,h="function"==typeof t?t(e):t;let{mainAxis:v,crossAxis:m,alignmentAxis:y}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return l&&"number"==typeof y&&(m="end"===l?-1*y:y),f?{x:m*d,y:v*p}:{x:v*p,y:m*d}}(t,e);return{x:n+s.x,y:a+s.y,data:s}}}};function A(e){return"x"===e?"y":"x"}const R=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:a}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...f}=e,p={x:n,y:i},h=await l(t,f),v=o(r(a)),m=A(v);let y=p[v],g=p[m];if(s){const e="y"===v?"bottom":"right";y=d(y+h["y"===v?"top":"left"],y,y-h[e])}if(u){const e="y"===m?"bottom":"right";g=d(g+h["y"===m?"top":"left"],g,g-h[e])}const b=c.fn({...t,[v]:y,[m]:g});return{...b,data:{x:b.x-n,y:b.y-i}}}}},x=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:a,rects:s,middlewareData:u}=t,{offset:c=0,mainAxis:l=!0,crossAxis:f=!0}=e,p={x:n,y:i},d=o(a),h=A(d);let v=p[d],m=p[h];const y="function"==typeof c?c({...s,placement:a}):c,g="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const e="y"===d?"height":"width",t=s.reference[d]-s.floating[e]+g.mainAxis,n=s.reference[d]+s.reference[e]-g.mainAxis;v<t?v=t:v>n&&(v=n)}if(f){var b,E,_,w;const e="y"===d?"width":"height",t=["top","left"].includes(r(a)),n=s.reference[h]-s.floating[e]+(t&&null!=(b=null==(E=u.offset)?void 0:E[h])?b:0)+(t?0:g.crossAxis),i=s.reference[h]+s.reference[e]+(t?0:null!=(_=null==(w=u.offset)?void 0:w[h])?_:0)-(t?g.crossAxis:0);m<n?m=n:m>i&&(m=i)}return{[d]:v,[h]:m}}}},j=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:a,elements:s}=t,{apply:u,...c}=e,f=await l(t,c),d=r(n),h=i(n);let v,m;"top"===d||"bottom"===d?(v=d,m=h===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(m=d,v="end"===h?"top":"bottom");const y=p(f.left,0),g=p(f.right,0),b=p(f.top,0),E=p(f.bottom,0),_={availableHeight:o.floating.height-(["left","right"].includes(n)?2*(0!==b||0!==E?b+E:p(f.top,f.bottom)):f[v]),availableWidth:o.floating.width-(["top","bottom"].includes(n)?2*(0!==y||0!==g?y+g:p(f.left,f.right)):f[m])},w=await a.getDimensions(s.floating);null==u||u({...t,..._});const O=await a.getDimensions(s.floating);return w.width!==O.width||w.height!==O.height?{reset:{rects:!0}}:{}}}},P=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:i,elements:a,rects:s,platform:l,strategy:d}=t,{padding:h=2,x:v,y:m}=e,y=c(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:s.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(a.floating)),strategy:d}):s.reference),g=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(a.reference)))?n:[],b=u(h),E=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===g.length&&g[0].left>g[1].right&&null!=v&&null!=m)return null!=(e=g.find((e=>v>e.left-b.left&&v<e.right+b.right&&m>e.top-b.top&&m<e.bottom+b.bottom)))?e:y;if(g.length>=2){if("x"===o(i)){const e=g[0],t=g[g.length-1],n="top"===r(i),o=e.top,a=t.bottom,s=n?e.left:t.left,u=n?e.right:t.right;return{top:o,bottom:a,left:s,right:u,width:u-s,height:a-o,x:s,y:o}}const e="left"===r(i),t=p(...g.map((e=>e.right))),n=f(...g.map((e=>e.left))),a=g.filter((r=>e?r.left===n:r.right===t)),s=a[0].top,u=a[a.length-1].bottom;return{top:s,bottom:u,left:n,right:t,width:t-n,height:u-s,x:n,y:s}}return y}},floating:a.floating,strategy:d});return s.reference.x!==E.reference.x||s.reference.y!==E.reference.y||s.reference.width!==E.reference.width||s.reference.height!==E.reference.height?{reset:{rects:E}}:{}}}};function D(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function L(e){if(null==e)return window;if(!D(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function M(e){return L(e).getComputedStyle(e)}function k(e){return D(e)?"":e?(e.nodeName||"").toLowerCase():""}function C(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function V(e){return e instanceof L(e).HTMLElement}function F(e){return e instanceof L(e).Element}function $(e){return"undefined"!=typeof ShadowRoot&&(e instanceof L(e).ShadowRoot||e instanceof ShadowRoot)}function U(e){const{overflow:t,overflowX:n,overflowY:r}=M(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function B(e){return["table","td","th"].includes(k(e))}function H(e){const t=/firefox/i.test(C()),n=M(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function G(){return!/^((?!chrome|android).)*safari/i.test(C())}const q=Math.min,W=Math.max,z=Math.round;function Y(e,t,n){var r,i,o,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let u=1,c=1;t&&V(e)&&(u=e.offsetWidth>0&&z(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&z(s.height)/e.offsetHeight||1);const l=F(e)?L(e):window,f=!G()&&n,p=(s.left+(f&&null!=(r=null==(i=l.visualViewport)?void 0:i.offsetLeft)?r:0))/u,d=(s.top+(f&&null!=(o=null==(a=l.visualViewport)?void 0:a.offsetTop)?o:0))/c,h=s.width/u,v=s.height/c;return{width:h,height:v,top:d,right:p+h,bottom:d+v,left:p,x:p,y:d}}function X(e){return(t=e,(t instanceof L(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function J(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Q(e){return Y(X(e)).left+J(e).scrollLeft}function K(e,t,n){const r=V(t),i=X(t),o=Y(e,r&&function(e){const t=Y(e);return z(t.width)!==e.offsetWidth||z(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==k(t)||U(i))&&(a=J(t)),V(t)){const e=Y(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Q(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function Z(e){return"html"===k(e)?e:e.assignedSlot||e.parentNode||($(e)?e.host:null)||X(e)}function ee(e){return V(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function te(e){const t=L(e);let n=ee(e);for(;n&&B(n)&&"static"===getComputedStyle(n).position;)n=ee(n);return n&&("html"===k(n)||"body"===k(n)&&"static"===getComputedStyle(n).position&&!H(n))?t:n||function(e){let t=Z(e);for($(t)&&(t=t.host);V(t)&&!["html","body"].includes(k(t));){if(H(t))return t;t=t.parentNode}return null}(e)||t}function ne(e){if(V(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Y(e);return{width:t.width,height:t.height}}function re(e){const t=Z(e);return["html","body","#document"].includes(k(t))?e.ownerDocument.body:V(t)&&U(t)?t:re(t)}function ie(e,t){var n;void 0===t&&(t=[]);const r=re(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=L(r),a=i?[o].concat(o.visualViewport||[],U(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(ie(a))}function oe(e,t,n){return"viewport"===t?c(function(e,t){const n=L(e),r=X(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;const e=G();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s,y:u}}(e,n)):F(t)?function(e,t){const n=Y(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):c(function(e){var t;const n=X(e),r=J(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=W(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=W(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let s=-r.scrollLeft+Q(e);const u=-r.scrollTop;return"rtl"===M(i||n).direction&&(s+=W(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}(X(e)))}function ae(e){const t=ie(e),n=["absolute","fixed"].includes(M(e).position)&&V(e)?te(e):e;return F(n)?t.filter((e=>F(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&$(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==k(e))):[]}const se={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?ae(t):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=oe(t,n,i);return e.top=W(r.top,e.top),e.right=q(r.right,e.right),e.bottom=q(r.bottom,e.bottom),e.left=W(r.left,e.left),e}),oe(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=V(n),o=X(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==k(n)||U(o))&&(a=J(n)),V(n))){const e=Y(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:F,getDimensions:ne,getOffsetParent:te,getDocumentElement:X,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:K(t,te(n),r),floating:{...ne(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===M(e).direction};function ue(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r,u=i&&!s,c=o&&!s,l=u||c?[...F(e)?ie(e):[],...ie(t)]:[];l.forEach((e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let f,p=null;if(a){let r=!0;p=new ResizeObserver((()=>{r||n(),r=!1})),F(e)&&!s&&p.observe(e),p.observe(t)}let d=s?Y(e):null;return s&&function t(){const r=Y(e);!d||r.x===d.x&&r.y===d.y&&r.width===d.width&&r.height===d.height||n(),d=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(f)}}const ce=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,u=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:f}=s(c,r,u),p=r,d={},h=0;for(let n=0;n<o.length;n++){const{name:v,fn:m}=o[n],{x:y,y:g,data:b,reset:E}=await m({x:l,y:f,initialPlacement:r,placement:p,strategy:i,middlewareData:d,rects:c,platform:a,elements:{reference:e,floating:t}});l=null!=y?y:l,f=null!=g?g:f,d={...d,[v]:{...d[v],...b}},E&&h<=50&&(h++,"object"==typeof E&&(E.placement&&(p=E.placement),E.rects&&(c=!0===E.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):E.rects),({x:l,y:f}=s(c,p,u))),n=-1)}return{x:l,y:f,placement:p,strategy:i,middlewareData:d}})(e,t,{platform:se,...n});var le=n(2015),fe=n(2326),pe="undefined"!=typeof document?le.useLayoutEffect:le.useEffect;function de(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!de(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(!("_owner"===n&&e.$$typeof||de(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function he(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e;const o=le.useRef(null),a=le.useRef(null),s=function(e){const t=le.useRef(e);return pe((()=>{t.current=e})),t}(i),u=le.useRef(null),[c,l]=le.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[f,p]=le.useState(t);de(null==f?void 0:f.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||p(t);const d=le.useCallback((()=>{o.current&&a.current&&ce(o.current,a.current,{middleware:f,placement:n,strategy:r}).then((e=>{h.current&&fe.flushSync((()=>{l(e)}))}))}),[f,n,r]);pe((()=>{h.current&&d()}),[d]);const h=le.useRef(!1);pe((()=>(h.current=!0,()=>{h.current=!1})),[]);const v=le.useCallback((()=>{if("function"==typeof u.current&&(u.current(),u.current=null),o.current&&a.current)if(s.current){const e=s.current(o.current,a.current,d);u.current=e}else d()}),[d,s]),m=le.useCallback((e=>{o.current=e,v()}),[v]),y=le.useCallback((e=>{a.current=e,v()}),[v]),g=le.useMemo((()=>({reference:o,floating:a})),[]);return le.useMemo((()=>({...c,update:d,refs:g,reference:m,floating:y})),[c,d,g,m,y])}const ve=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn:e=>function(e){return Object.prototype.hasOwnProperty.call(e,"current")}(t)?null!=t.current?h({element:t.current,padding:n}).fn(e):{}:t?h({element:t,padding:n}).fn(e):{}}}},2895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NativeLink=void 0;var r=n(7593);Object.defineProperty(t,"NativeLink",{enumerable:!0,get:function(){return r.NativeLink}})},7593:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__rest||function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.NativeLink=void 0;const s=o(n(2015)),u={rel:"noopener",target:"_blank"};t.NativeLink=function(e){var{href:t="",external:n,replace:r,onClick:i}=e,o=a(e,["href","external","replace","onClick"]);const c=n?u:{},l=s.useCallback((e=>{const o=null==i?void 0:i(e);return e.defaultPrevented||!r||n||(e.preventDefault(),window.location.replace(t)),o}),[t,r,i]);return s.default.createElement("a",Object.assign({},o,c,{onClick:l,href:t}))}},4445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.affix=void 0,t.affix=function(e="",t,n=""){return t?`${e}${t}${n}`:""}},1611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.affix=void 0;var r=n(4445);Object.defineProperty(t,"affix",{enumerable:!0,get:function(){return r.affix}})},5950:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BitError=void 0;class n extends Error{constructor(e){super(e||""),this.isUserError=!0,this.name=this.constructor.name}report(){return this.message}}t.BitError=n},4490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BitError=void 0;var r=n(5950);Object.defineProperty(t,"BitError",{enumerable:!0,get:function(){return r.BitError}})},8635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentIdList=void 0;const r=n(2935),i=n(1936),o=n(6578);class a extends Array{toStringArray(){return this.map((e=>e.toString()))}has(e){return Boolean(this.search(e))}hasWithoutVersion(e){return Boolean(this.searchWithoutVersion(e))}hasWithoutScopeAndVersion(e){return Boolean(this.searchWithoutScopeAndVersion(e))}search(e){return this.find((t=>t.fullName===e.fullName&&t.scope===e.scope&&t._legacy.hasSameVersion(e._legacy)))}searchWithoutVersion(e){return this.find((t=>t.fullName===e.fullName&&t.scope===e.scope))}searchWithoutScopeAndVersion(e){return this.find((t=>t.fullName===e.fullName))}searchStrWithoutVersion(e){return this.find((t=>t.toStringWithoutVersion()===e))}filterExact(e){return this.filter((t=>t.fullName===e.fullName&&t.scope===e.scope&&t.hasSameVersion(e)))}filterWithoutVersion(e){return this.filter((t=>t.fullName===e.fullName&&t.scope===e.scope))}removeIfExist(e){return a.fromArray(this.filter((t=>!t.isEqual(e))))}toObject(){return this.reduce(((e,t)=>(e[t.toString()]=t,e)),{})}toString(){return this.map((e=>e.toString())).join(", ")}toGroupByIdWithoutVersion(){return this.reduce(((e,t)=>{const n=t.toStringWithoutVersion();return e[n]?e[n].push(t):e[n]=new a(t),e}),{})}toGroupByScopeName(){return this.reduce(((e,t)=>{const n=t.scope;return e[n]?e[n].push(t):e[n]=new a(t),e}),{})}findDuplicationsIgnoreVersion(){const e={};return this.forEach((t=>{const n=this.filterWithoutVersion(t);n.length>1&&(e[t.toStringWithoutVersion()]=n)})),e}add(e){e.forEach((e=>{this.search(e)||this.push(e)}))}static fromArray(e){const t=new a;return e.forEach((e=>t.push(e))),t}static uniqFromArray(e){const t=(0,r.uniqBy)(e,(e=>e.toString()));return a.fromArray(t)}static fromStringArray(e=[]){return a.fromArray(e.map((e=>o.ComponentID.fromString(e))))}throwForDuplicationIgnoreVersion(){this.forEach((e=>{const t=this.filterWithoutVersion(e);if(t.length>1)throw new Error(`componentIds has "${e.toStringWithoutVersion()}" duplicated as following:\n${t.map((e=>e.toString())).join("\n")}`)}))}toVersionLatest(){return a.uniqFromArray(this.map((e=>e.changeVersion(i.LATEST_VERSION))))}clone(){return a.fromArray(this.map((e=>e.clone())))}}t.ComponentIdList=a},6578:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentID=void 0;const r=n(5575),i=n(1904);class o{constructor(e,t){if(this._legacy=e,this._scope=t,!e.name)throw new Error(`ComponentID expects to get an object with "name" prop. got ${e}`);if(!t&&!e.scope)throw new i.MissingScope(e)}hasVersion(){return this._legacy.hasVersion()}get version(){return this._legacy.version}get namespace(){return this._legacy.name.split("/").slice(0,-1).join("/")}get fullName(){return this._legacy.name}get name(){const e=this._legacy.name.split("/");return e[e.length-1]}get scope(){const e=this._legacy.scope;if(e)return e;if(!this._scope)throw new Error("scope cannot be undefined");return this._scope}changeScope(e){const t=this._legacy.changeScope(e);return o.fromLegacy(t,this.scope)}changeDefaultScope(e){return o.fromLegacy(this._legacy,e)}changeVersion(e){const t=this._legacy.changeVersion(e);return o.fromLegacy(t,this.scope)}isEqual(e,t){return o.isEqual(this,e,t)}isEqualWithoutVersion(e){return this.isEqual(e,{ignoreVersion:!0})}isLocal(e){return this._legacy.isLocal(e)}hasScope(){return this._legacy.hasScope()}serialize(){return this.toObject()}static deserialize(e){return o.fromObject(e)}static isValidVersion(e){return r.BitId.isValidVersion(e)}static getVersionFromString(e){return e.split(r.VERSION_DELIMITER)[1]}static getStringWithoutVersion(e){return e.split(r.VERSION_DELIMITER)[0]}getVersionPreReleaseData(){return this._legacy.getVersionPreReleaseData()}toStringWithoutVersion(){let e=this._legacy;return this._scope&&!this._legacy.scope&&(e=e.changeScope(this._scope)),e.toStringWithoutVersion()}hasSameVersion(e){return this._legacy.hasSameVersion(e._legacy)}toString(e={}){let t=this._legacy;this._scope&&!this._legacy.scope&&(t=t.changeScope(this._scope));const n=t.toString(!1,e.ignoreVersion);return e.fsCompatible?n.replace(/\//g,"_").replace(/\./g,"_").replace(/-/g,"_"):n}toObject(){const e=this._legacy.serialize();return e.scope||(e.scope=this.scope),e}clone(){return o.fromLegacy(this._legacy.clone(),this._scope)}static tryFromString(e,t){try{return o.fromString(e,t)}catch(e){return}}static isValidCompIdStr(e){return Boolean(o.tryFromString(e))}static fromString(e,t){const n=r.BitId.parse(e,!0);if(!t&&!n.scope)throw new i.MissingScope(e);return new o(n,t)}static fromLegacyString(e,t){const n=r.BitId.parse(e,!1);return new o(n,t)}static fromObject(e,t){if(e instanceof o)throw new Error(`ComponentID.fromObject expect to get an object, got an instance of ComponentID: ${e.toString()}`);return o.fromLegacy(new r.BitId(e),t)}static isValidObject(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.scope}static isEqual(e,t,n={}){if(!e&&!t)return!0;if(!e||!t)return!1;const r=e.scope===t.scope&&e.toString({ignoreVersion:n.ignoreVersion})===t.toString({ignoreVersion:n.ignoreVersion});return n.ignoreVersion?r:r&&e.hasSameVersion(t)}static isEqualObj(e,t,n={}){if(!e&&!t)return!0;if(!e||!t)return!1;let r=e.scope===t.scope&&e.name===t.name;return n.ignoreVersion||(r=r&&e.version===t.version),r}static fromLegacy(e,t){if(!t&&!e.scope)throw new i.MissingScope(e);return new o(e,t)}static sortIds(e){return e.sort(((e,t)=>e.toString().localeCompare(t.toString())))}}t.ComponentID=o},1904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingScope=void 0;const r=n(6805);Object.defineProperty(t,"MissingScope",{enumerable:!0,get:function(){return r.MissingScope}})},6805:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingScope=void 0;class n extends Error{constructor(e){super(`scope is missing from a component-id "${e.toString()}".\nin case you just upgraded bit version to >= 1.2.10 and you're getting this error, please run "bit cc" and then "bit status" to fix it.\nif you're still getting the same error, run "bit reset --never-exported"`)}report(){return this.message}}t.MissingScope=n},1001:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentIdList=t.ComponentID=void 0;var r=n(6578);Object.defineProperty(t,"ComponentID",{enumerable:!0,get:function(){return r.ComponentID}});var i=n(8635);Object.defineProperty(t,"ComponentIdList",{enumerable:!0,get:function(){return i.ComponentIdList}})},9489:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentIdList=void 0;const r=n(2935),i=n(5699),o=n(4136);class a extends Array{toStringArray(){return this.map((e=>e.toString()))}has(e){return Boolean(this.search(e))}hasWithoutVersion(e){return Boolean(this.searchWithoutVersion(e))}hasWithoutScopeAndVersion(e){return Boolean(this.searchWithoutScopeAndVersion(e))}search(e){return this.find((t=>t.fullName===e.fullName&&t.scope===e.scope&&t._legacy.hasSameVersion(e._legacy)))}searchWithoutVersion(e){return this.find((t=>t.fullName===e.fullName&&t.scope===e.scope))}searchWithoutScopeAndVersion(e){return this.find((t=>t.fullName===e.fullName))}searchStrWithoutVersion(e){return this.find((t=>t.toStringWithoutVersion()===e))}filterExact(e){return this.filter((t=>t.fullName===e.fullName&&t.scope===e.scope&&t.hasSameVersion(e)))}filterWithoutVersion(e){return this.filter((t=>t.fullName===e.fullName&&t.scope===e.scope))}removeIfExist(e){return a.fromArray(this.filter((t=>!t.isEqual(e))))}toObject(){return this.reduce(((e,t)=>(e[t.toString()]=t,e)),{})}toString(){return this.map((e=>e.toString())).join(", ")}toGroupByIdWithoutVersion(){return this.reduce(((e,t)=>{const n=t.toStringWithoutVersion();return e[n]?e[n].push(t):e[n]=new a(t),e}),{})}toGroupByScopeName(){return this.reduce(((e,t)=>{const n=t.scope;return e[n]?e[n].push(t):e[n]=new a(t),e}),{})}findDuplicationsIgnoreVersion(){const e={};return this.forEach((t=>{const n=this.filterWithoutVersion(t);n.length>1&&(e[t.toStringWithoutVersion()]=n)})),e}add(e){e.forEach((e=>{this.search(e)||this.push(e)}))}static fromArray(e){const t=new a;return e.forEach((e=>t.push(e))),t}static uniqFromArray(e){const t=(0,r.uniqBy)(e,(e=>e.toString()));return a.fromArray(t)}static fromStringArray(e=[]){return a.fromArray(e.map((e=>o.ComponentID.fromString(e))))}throwForDuplicationIgnoreVersion(){this.forEach((e=>{const t=this.filterWithoutVersion(e);if(t.length>1)throw new Error(`componentIds has "${e.toStringWithoutVersion()}" duplicated as following:\n${t.map((e=>e.toString())).join("\n")}`)}))}toVersionLatest(){return a.uniqFromArray(this.map((e=>e.changeVersion(i.LATEST_VERSION))))}clone(){return a.fromArray(this.map((e=>e.clone())))}}t.ComponentIdList=a},4136:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentID=void 0;const r=n(7973),i=n(2290);class o{constructor(e,t){if(this._legacy=e,this._scope=t,!e.name)throw new Error(`ComponentID expects to get an object with "name" prop. got ${e}`);if(!t&&!e.scope)throw new i.MissingScope(e)}hasVersion(){return this._legacy.hasVersion()}get version(){return this._legacy.version}get namespace(){return this._legacy.name.split("/").slice(0,-1).join("/")}get fullName(){return this._legacy.name}get name(){const e=this._legacy.name.split("/");return e[e.length-1]}get scope(){const e=this._legacy.scope;if(e)return e;if(!this._scope)throw new Error("scope cannot be undefined");return this._scope}changeScope(e){const t=this._legacy.changeScope(e);return o.fromLegacy(t,this.scope)}changeDefaultScope(e){return o.fromLegacy(this._legacy,e)}changeVersion(e){const t=this._legacy.changeVersion(e);return o.fromLegacy(t,this.scope)}isEqual(e,t){return o.isEqual(this,e,t)}isEqualWithoutVersion(e){return this.isEqual(e,{ignoreVersion:!0})}isLocal(e){return this._legacy.isLocal(e)}hasScope(){return this._legacy.hasScope()}serialize(){return this.toObject()}static deserialize(e){return o.fromObject(e)}static isValidVersion(e){return r.BitId.isValidVersion(e)}static getVersionFromString(e){return e.split(r.VERSION_DELIMITER)[1]}static getStringWithoutVersion(e){return e.split(r.VERSION_DELIMITER)[0]}getVersionPreReleaseData(){return this._legacy.getVersionPreReleaseData()}toStringWithoutVersion(){let e=this._legacy;return this._scope&&!this._legacy.scope&&(e=e.changeScope(this._scope)),e.toStringWithoutVersion()}hasSameVersion(e){return this._legacy.hasSameVersion(e._legacy)}toString(e={}){let t=this._legacy;this._scope&&!this._legacy.scope&&(t=t.changeScope(this._scope));const n=t.toString(!1,e.ignoreVersion);return e.fsCompatible?n.replace(/\//g,"_").replace(/\./g,"_").replace(/-/g,"_"):n}toObject(){const e=this._legacy.serialize();return e.scope||(e.scope=this.scope),e}clone(){return o.fromLegacy(this._legacy.clone(),this._scope)}static tryFromString(e,t){try{return o.fromString(e,t)}catch(e){return}}static isValidCompIdStr(e){return Boolean(o.tryFromString(e))}static fromString(e,t){const n=r.BitId.parse(e,!0);if(!t&&!n.scope)throw new i.MissingScope(e);return new o(n,t)}static fromLegacyString(e,t){const n=r.BitId.parse(e,!1);return new o(n,t)}static fromObject(e,t){if(e instanceof o)throw new Error(`ComponentID.fromObject expect to get an object, got an instance of ComponentID: ${e.toString()}`);return o.fromLegacy(new r.BitId(e),t)}static isValidObject(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.scope}static isEqual(e,t,n={}){if(!e&&!t)return!0;if(!e||!t)return!1;const r=e.scope===t.scope&&e.toString({ignoreVersion:n.ignoreVersion})===t.toString({ignoreVersion:n.ignoreVersion});return n.ignoreVersion?r:r&&e.hasSameVersion(t)}static isEqualObj(e,t,n={}){if(!e&&!t)return!0;if(!e||!t)return!1;let r=e.scope===t.scope&&e.name===t.name;return n.ignoreVersion||(r=r&&e.version===t.version),r}static fromLegacy(e,t){if(!t&&!e.scope)throw new i.MissingScope(e);return new o(e,t)}static sortIds(e){return e.sort(((e,t)=>e.toString().localeCompare(t.toString())))}}t.ComponentID=o},2290:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingScope=void 0;const r=n(2231);Object.defineProperty(t,"MissingScope",{enumerable:!0,get:function(){return r.MissingScope}})},2231:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingScope=void 0;class n extends Error{constructor(e){super(`scope is missing from a component-id "${e.toString()}".\nin case you just upgraded bit version to >= 1.2.10 and you're getting this error, please run "bit cc" and then "bit status" to fix it.\nif you're still getting the same error, run "bit reset --never-exported"`)}report(){return this.message}}t.MissingScope=n},2435:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentIdList=t.ComponentID=void 0;var r=n(4136);Object.defineProperty(t,"ComponentID",{enumerable:!0,get:function(){return r.ComponentID}});var i=n(9489);Object.defineProperty(t,"ComponentIdList",{enumerable:!0,get:function(){return i.ComponentIdList}})},2699:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidVersion=void 0;const i=r(n(657));t.InvalidVersion=i.default},657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4490);class i extends r.BitError{constructor(e){super(`error: version ${e||"(empty)"} is not a valid semantic version. learn more: https://semver.org`)}}t.default=i},1936:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SHORT_HASH_MINIMUM_SIZE=t.HASH_SIZE=t.InvalidVersion=t.isTag=t.isSnap=t.isHash=t.versionParser=t.LATEST_VERSION=t.Version=void 0;const a=n(3980);Object.defineProperty(t,"Version",{enumerable:!0,get:function(){return a.Version}}),Object.defineProperty(t,"LATEST_VERSION",{enumerable:!0,get:function(){return a.LATEST_VERSION}});const s=o(n(146));t.versionParser=s.default,Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return s.isHash}}),Object.defineProperty(t,"isSnap",{enumerable:!0,get:function(){return s.isSnap}}),Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return s.isTag}}),Object.defineProperty(t,"HASH_SIZE",{enumerable:!0,get:function(){return s.HASH_SIZE}}),Object.defineProperty(t,"SHORT_HASH_MINIMUM_SIZE",{enumerable:!0,get:function(){return s.SHORT_HASH_MINIMUM_SIZE}});const u=n(2699);Object.defineProperty(t,"InvalidVersion",{enumerable:!0,get:function(){return u.InvalidVersion}})},146:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isSnap=t.isTag=t.isHash=t.SHORT_HASH_MINIMUM_SIZE=t.HASH_SIZE=void 0;const i=r(n(7449)),o=n(2699),a=n(3980);function s(e){return Boolean(i.default.valid(e))}function u(){return new a.Version(null,!0)}function c(e){return"string"==typeof e&&function(e){return/^[0-9a-fA-F]+$/.test(e)}(e)&&e.length>=t.SHORT_HASH_MINIMUM_SIZE&&e.length<=t.HASH_SIZE}t.HASH_SIZE=40,t.SHORT_HASH_MINIMUM_SIZE=3,t.isHash=c,t.isTag=function(e){return"string"==typeof e&&s(e)},t.isSnap=function(e){return c(e)&&"string"==typeof e&&e.length===t.HASH_SIZE},t.default=function(e){if(!e)return u();if(function(e){return e===a.LATEST_VERSION}(e))return u();if(s(e))return function(e){return new a.Version(e,!1)}(e);if(c(e))return t=e,new a.Version(t,!1);var t;throw new o.InvalidVersion(e.toString())}},3980:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Version=t.LATEST_VERSION=void 0;const i=r(n(7449)),o=n(2699);t.LATEST_VERSION="latest",t.Version=class{constructor(e,t){if(this.versionNum=e,this.latest=t,e&&t)throw new Error('a component version cannot have both: version and "latest"')}toString(){if(!this.versionNum&&this.latest)return"latest";if(this.versionNum&&!this.latest)return this.versionNum.toString();throw new o.InvalidVersion(this.versionNum)}isLaterThan(e){return!this.versionNum||this.versionNum===t.LATEST_VERSION||!(!e.versionNum||e.versionNum===t.LATEST_VERSION)&&i.default.gt(this.versionNum,e.versionNum)}}},9346:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidVersion=void 0;const i=r(n(4028));t.InvalidVersion=i.default},4028:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4490);class i extends r.BitError{constructor(e){super(`error: version ${e||"(empty)"} is not a valid semantic version. learn more: https://semver.org`)}}t.default=i},5699:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SHORT_HASH_MINIMUM_SIZE=t.HASH_SIZE=t.InvalidVersion=t.isTag=t.isSnap=t.isHash=t.versionParser=t.LATEST_VERSION=t.Version=void 0;const a=n(8667);Object.defineProperty(t,"Version",{enumerable:!0,get:function(){return a.Version}}),Object.defineProperty(t,"LATEST_VERSION",{enumerable:!0,get:function(){return a.LATEST_VERSION}});const s=o(n(2147));t.versionParser=s.default,Object.defineProperty(t,"isHash",{enumerable:!0,get:function(){return s.isHash}}),Object.defineProperty(t,"isSnap",{enumerable:!0,get:function(){return s.isSnap}}),Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return s.isTag}}),Object.defineProperty(t,"HASH_SIZE",{enumerable:!0,get:function(){return s.HASH_SIZE}}),Object.defineProperty(t,"SHORT_HASH_MINIMUM_SIZE",{enumerable:!0,get:function(){return s.SHORT_HASH_MINIMUM_SIZE}});const u=n(9346);Object.defineProperty(t,"InvalidVersion",{enumerable:!0,get:function(){return u.InvalidVersion}})},2147:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SHORT_HASH_MINIMUM_SIZE=t.HASH_SIZE=void 0,t.isHash=c,t.isTag=function(e){return"string"==typeof e&&s(e)},t.isSnap=function(e){return c(e)&&"string"==typeof e&&e.length===t.HASH_SIZE},t.default=function(e){if(!e)return u();if(function(e){return e===a.LATEST_VERSION}(e))return u();if(s(e))return function(e){return new a.Version(e,!1)}(e);if(c(e))return t=e,new a.Version(t,!1);var t;throw new o.InvalidVersion(e.toString())};const i=r(n(6322)),o=n(9346),a=n(8667);function s(e){return Boolean(i.default.valid(e))}function u(){return new a.Version(null,!0)}function c(e){return"string"==typeof e&&function(e){return/^[0-9a-fA-F]+$/.test(e)}(e)&&e.length>=t.SHORT_HASH_MINIMUM_SIZE&&e.length<=t.HASH_SIZE}t.HASH_SIZE=40,t.SHORT_HASH_MINIMUM_SIZE=3},8667:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Version=t.LATEST_VERSION=void 0;const i=r(n(6322)),o=n(9346);t.LATEST_VERSION="latest",t.Version=class{constructor(e,t){if(this.versionNum=e,this.latest=t,e&&t)throw new Error('a component version cannot have both: version and "latest"')}toString(){if(!this.versionNum&&this.latest)return"latest";if(this.versionNum&&!this.latest)return this.versionNum.toString();throw new o.InvalidVersion(this.versionNum)}isLaterThan(e){return!this.versionNum||this.versionNum===t.LATEST_VERSION||!(!e.versionNum||e.versionNum===t.LATEST_VERSION)&&i.default.gt(this.versionNum,e.versionNum)}}},2526:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useComponentUrl=t.ComponentUrlProvider=t.ComponentUrlContext=void 0;const r=n(2015);t.ComponentUrlContext=(0,r.createContext)(void 0),t.ComponentUrlProvider=t.ComponentUrlContext.Provider,t.useComponentUrl=(e,n)=>{const i=(0,r.useContext)(t.ComponentUrlContext);return null==i?void 0:i(e,n)}},967:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentUrl=void 0;const i=r(n(887)),o=n(1611),a=n(1077);function s(e){return e.toString({ignoreVersion:!0}).replace(".","/")}t.ComponentUrl={toUrl:function(e,t={}){const n=i.default.stringify(c(e,t)),{useLocationOrigin:r}=t;return`${r?window.location.origin:a.baseUrl}/${s(e)}${(0,o.affix)("?",n)}`},toPathname:s,toQuery:c};const u=/[\^~]/;function c(e,{includeVersion:t=!0}={}){var n;return{version:t&&"latest"!==e.version?null===(n=e.version)||void 0===n?void 0:n.replace(u,""):void 0}}},1077:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.baseUrl=void 0,t.baseUrl="https://bit.cloud"},6528:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useComponentUrl=t.ComponentUrlProvider=t.ScopeUrl=t.ComponentUrl=void 0;var r=n(967);Object.defineProperty(t,"ComponentUrl",{enumerable:!0,get:function(){return r.ComponentUrl}});var i=n(4688);Object.defineProperty(t,"ScopeUrl",{enumerable:!0,get:function(){return i.ScopeUrl}});var o=n(2526);Object.defineProperty(t,"ComponentUrlProvider",{enumerable:!0,get:function(){return o.ComponentUrlProvider}}),Object.defineProperty(t,"useComponentUrl",{enumerable:!0,get:function(){return o.useComponentUrl}})},4688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeUrl=void 0;const r=n(1077);function i(e){return e.replace(".","/")}t.ScopeUrl={toUrl:function(e){return`${r.baseUrl}/${i(e)}`},toPathname:i}},6477:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Aspect=void 0;class n{constructor(e,t,n,r={},i,o){this.id=e,this.dependencies=t,this.slots=n,this.defaultConfig=r,this.declareRuntime=i,this.files=o,this._runtimes=[]}addRuntime(e){return this._runtimes.push(e),this}getRuntime(e){return this._runtimes.find((t=>"string"==typeof t.runtime?t.runtime===e.name:t.runtime.name===e.name))}getRuntimes(){return this._runtimes}static create(e){return new n(e.id,e.dependencies||[],e.slots||[],e.defaultConfig,e.declareRuntime,e.files||[])}}t.Aspect=n},4560:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Config=void 0;class n{constructor(e){this.raw=e}toObject(){return Array.from(this.raw.entries()).reduce(((e,[t,n])=>(e[t]=n,e)),{})}set(e,t){this.raw.set(e,t)}get(e){return this.raw.get(e)}static from(e){return new n(new Map(Object.entries(e)))}}t.Config=n},2332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Config=void 0;var r=n(4560);Object.defineProperty(t,"Config",{enumerable:!0,get:function(){return r.Config}})},4747:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionInstantiationException=void 0;class n extends Error{}t.ExtensionInstantiationException=n},1917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e,t,n){super(),this.extension=e,this.originalError=t,this.msg=n}toString(){return`failed to load extension: ${this.extension.name} with error:\n\n${this.msg||this.originalError.stack}`}}t.default=n},8230:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6885);class i extends r.HarmonyError{constructor(e,t){super(),this.extension=e,this.validDeps=t}toString(){return"Failed to load the dependencies for extension . \nThis may result from a wrong import or from circular dependencies in imports. \nThe following dependencies succeeded loading:"}}t.default=i},5593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HarmonyAlreadyRunning=void 0;class n extends Error{}t.HarmonyAlreadyRunning=n},6885:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HarmonyError=void 0;class n extends Error{}t.HarmonyError=n},3268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HookNotFound=void 0;class n extends Error{}t.HookNotFound=n},3560:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionInstantiationException=t.HookNotFound=t.HarmonyAlreadyRunning=t.ExtensionPotentialCircular=t.ExtensionLoadError=void 0;var i=n(1917);Object.defineProperty(t,"ExtensionLoadError",{enumerable:!0,get:function(){return r(i).default}});var o=n(8230);Object.defineProperty(t,"ExtensionPotentialCircular",{enumerable:!0,get:function(){return r(o).default}});var a=n(5593);Object.defineProperty(t,"HarmonyAlreadyRunning",{enumerable:!0,get:function(){return a.HarmonyAlreadyRunning}});var s=n(3268);Object.defineProperty(t,"HookNotFound",{enumerable:!0,get:function(){return s.HookNotFound}});var u=n(4747);Object.defineProperty(t,"ExtensionInstantiationException",{enumerable:!0,get:function(){return u.ExtensionInstantiationException}})},9174:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(1895),o=n(368);class a extends i.Graph{constructor(){super(...arguments),this.cache=new Map}getRuntimeDependencies(e,t,n={}){const r=this.successors(e.name),i=this.successors(e.name,(e=>!!e.runtime&&e.runtime===t.name)),o=e.getRuntime(t);return o?i&&i.size?this.sortDeps(o.dependencies,Array.from(i.values()),n):this.sortDeps(o.dependencies,Array.from(r.values()),n):Array.from(r.values())}sortDeps(e,t,n={}){const r=n.getName?(null==e?void 0:e.map((e=>n.getName?(e.id=n.getName(e),e):e)))||[]:e;return t.sort(((e,t)=>r.findIndex((t=>t.id===e.id))-r.findIndex((e=>e.id===t.id))))}byExecutionOrder(){return this.toposort(!0)}enrichRuntimeExtension(e,t,n,i,o){return r(this,arguments,void 0,(function*(e,t,n,i,o,a={}){yield o(t,n);const s=t.getRuntime(n);if(!s)return;const u=s.dependencies;if(!u)return;const c=u.map((t=>r(this,void 0,void 0,(function*(){const r=a.getName?a.getName(t):t.id;if(!this.hasNode(r)){this.add(t),t.declareRuntime&&i.add(t.declareRuntime);const e=this.get(r);if(!e)return;yield o(e,n),yield this.enrichRuntimeExtension(r,this.get(r),n,i,o)}this.setEdge(e,r,{runtime:n.name,type:"runtime-dependency"})}))));return Promise.all(c)}))}enrichRuntime(e,t,n){return r(this,arguments,void 0,(function*(e,t,n,i={}){const o=Array.from(this.nodes.entries()).map((o=>r(this,[o],void 0,(function*([r,o]){return this.enrichRuntimeExtension(r,o,e,t,n,i)}))));return Promise.all(o)}))}add(e){const{vertices:t,edges:n}=(0,o.fromExtension)(e);return this.setNodes(t),this.setEdges(n),this}load(e){const t=e.filter((e=>!!e.id&&!this.get(e.id))),{vertices:n,edges:r}=(0,o.fromExtensions)(t);return this.setNodes(n,!1),this.setEdges(r),this}getExtension(e){const t=function(e){return Reflect.getMetadata("harmony:name",e)||e.id||e.name}(e),n=this.cache.get(t);if(n)return n;const r=this.node(t);return r?(this.cache.set(r.name,r),r):null}get extensions(){return Array.from(this.nodes.values())}get aspects(){return this.extensions}get(e){const t=this.cache.get(e);if(t)return t;const n=this.node(e);return n?(this.cache.set(n.name,n),n):null}static fromRoot(e){const{vertices:t,edges:n}=(0,o.fromExtension)(e);return new a(t,n)}static from(e,t={}){const{vertices:n,edges:r}=(0,o.fromExtensions)(e,t);return new a(n,r)}}t.default=a},368:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fromExtension=a,t.fromExtensions=function(e,t={}){return e.map((e=>a(e,t))).reduce(((e,t)=>(e.edges=e.edges.concat(t.edges),e.vertices=e.vertices.concat(t.vertices),e)),{vertices:[],edges:[]})};const i=n(7556),o=r(n(8230));function a(e,t={}){const n={};let r=[];!function e(a){const s=t.getName?t.getName(a):(u=a,Reflect.getMetadata("harmony:name",u)||u.id||u.name);var u;if(n[s])return;const c=(0,i.extensionFactory)(a),l=c.dependencies.filter((e=>e)).map((e=>(0,i.extensionFactory)(e)));if(c.dependencies.length>l.length)throw new o.default(c,l);n[s]=c;const f=l.map((e=>({sourceId:s,targetId:e.name,edge:{type:"dependency"}})));r=r.concat(f),c.dependencies.forEach((t=>e(t)))}(e);let a=[];for(let[e,t]of Object.entries(n))a.push({id:e,node:t});return{vertices:a,edges:r}}},6522:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HookRegistry=void 0,t.ExtensionDecorator=function({name:e,dependencies:t}={}){return function(n){Reflect.defineMetadata("harmony:name",e||n.name,n),Reflect.defineMetadata("harmony:dependencies",function(e,t){const n=t||function(){const t=function(e){return e.provide?e.provide:e.provider}(e);return t?[]:Reflect.getMetadata("design:paramtypes",e)}()||[],r=e.__hookDeps?e.__hookDeps:[];return n.concat(r)||[]}(n,t),n)}},t.provider=function(){return function(e,t,n){Reflect.getMetadata("design:paramtypes",n)}},t.register=function(e,t){return function(r,i,o){const a=Reflect.getMetadata("harmony:name",e);n[a]||(n[a]={});const s=n[a][t||i];s&&s.register(r[i])}},t.createHook=function(){const e=Math.random().toString(36).substring(2);n[e]=r.create();const t=function(t,r,i){n[e].register(i.value)};return t.hash=e,t},t.hook=function(e){return function(t,i){let o=r.create();const a=Reflect.getMetadata("harmony:name",t.constructor),s=e||i;n[a]?n[a][s]=o:n[a]={[s]:o},Object.defineProperty(t,i,{get:()=>o,set:e=>{o=e}})}};const n={};class r{constructor(e,t){this.fillers=e,this.hash=t}register(e){this.fillers.push(e)}list(){return this.fillers}static of(e){return n[e.hash]}static create(){return new r([])}}t.HookRegistry=r},2866:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Extension=void 0;const i=n(4747);t.Extension=class{constructor(e){this.manifest=e,this._instance=null,this._loaded=!1}get instance(){return this._instance}get name(){return Reflect.getMetadata("harmony:name",this.manifest)||this.manifest.id||this.manifest.name}get id(){return this.name}get dependencies(){return Reflect.getMetadata("harmony:dependencies",this.manifest)||this.manifest.dependencies||[]}get provider(){return Reflect.getMetadata("harmony:provider",this.manifest)||this.manifest.provider}get files(){return this.manifest.files}get loaded(){return this._loaded}toString(){return JSON.stringify(this.name)}buildSlotRegistries(e,t){return e.map((e=>e((()=>t.current))))}get declareRuntime(){return this.manifest.declareRuntime}getRuntime(e){return this.manifest.getRuntime(e)}getRuntimes(){return this.manifest.getRuntimes()}getSlots(e){return e.slots&&e.slots.length?e.slots:this.manifest.slots||[]}getConfig(e,t){const n=t.defaultConfig||this.manifest.defaultConfig||{},r=e.config.get(this.name)||{};return Object.assign({},n,r)}__run(e,t,n){return r(this,void 0,void 0,(function*(){const r=this.name;t.initExtension(r);const o=this.getRuntime(n);if(!o)return;const a=this.buildSlotRegistries(this.getSlots(o),t),s=this.getConfig(t,o);if(!this.loaded){if(o.provider)this._instance=yield o.provider(e,s,a,t);else try{this._instance=new o.manifest(...e)}catch(e){throw new i.ExtensionInstantiationException(e.toString())}return this._loaded=!0,this._instance}return t.endExtension(),Promise.resolve(this.instance)}))}}},4135:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHook=t.provider=t.HookRegistry=t.hook=t.register=t.ExtensionDecorator=t.Extension=void 0;var r=n(2866);Object.defineProperty(t,"Extension",{enumerable:!0,get:function(){return r.Extension}});var i=n(6522);Object.defineProperty(t,"ExtensionDecorator",{enumerable:!0,get:function(){return i.ExtensionDecorator}}),Object.defineProperty(t,"register",{enumerable:!0,get:function(){return i.register}}),Object.defineProperty(t,"hook",{enumerable:!0,get:function(){return i.hook}}),Object.defineProperty(t,"HookRegistry",{enumerable:!0,get:function(){return i.HookRegistry}}),Object.defineProperty(t,"provider",{enumerable:!0,get:function(){return i.provider}}),Object.defineProperty(t,"createHook",{enumerable:!0,get:function(){return i.createHook}})},3794:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extensionFactory=function(e){return e.provide&&(e.provider=e.provide),new r.Extension(e)};const r=n(2866)},7556:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extensionFactory=void 0;var r=n(3794);Object.defineProperty(t,"extensionFactory",{enumerable:!0,get:function(){return r.extensionFactory}})},5631:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Harmony=void 0,n(4957);const o=i(n(9174)),a=n(3560),s=n(5987),u=n(2332),c=n(8914),l=n(8518);class f{constructor(e,t,n,r,i){this.graph=e,this.config=t,this.runtimes=n,this.activeRuntime=r,this.depOptions=i,this.current=null}get extensions(){return this.graph.nodes}get extensionsIds(){return[...this.graph.nodes.keys()]}load(e){return r(this,void 0,void 0,(function*(){return this.set(e)}))}set(e){return r(this,void 0,void 0,(function*(){this.graph.load(e);const t=e.map((e=>Reflect.getMetadata("harmony:name",e)||e.id||e.name));yield this.graph.enrichRuntime(this.runtime,this.runtimes,(()=>{}));const n=this.graph.successorsSubgraph(t);if(n){const e=n.toposort(!0);yield(0,s.asyncForEach)(e,(e=>r(this,void 0,void 0,(function*(){if(!this.runtime)throw new l.RuntimeNotDefined(this.activeRuntime);yield this.runOne(e,this.runtime)}))))}}))}runOne(e,t){return r(this,void 0,void 0,(function*(){if(e.loaded)return;const n=this.graph.getRuntimeDependencies(e,t,this.depOptions).map((e=>e.instance));try{return e.__run(n,this,t)}catch(t){throw new a.ExtensionLoadError(e,t)}}))}getDependencies(e){if(!this.runtime)throw new l.RuntimeNotDefined(this.activeRuntime);return this.graph.getRuntimeDependencies(e,this.runtime,this.depOptions)}initExtension(e){this.current=e}endExtension(){this.current=null}get(e){const t=this.graph.get(e);if(!t||!t.instance)throw new Error(`failed loading extension ${e}`);return t.instance}resolveRuntime(e){return this.runtimes.get(e)}run(e){return r(this,void 0,void 0,(function*(){const t=this.resolveRuntime(this.activeRuntime);this.runtime=t,yield this.graph.enrichRuntime(t,this.runtimes,e||((e,t)=>r(this,void 0,void 0,(function*(){t.getRuntimeFile(e.files)}))),this.depOptions);const n=this.graph.byExecutionOrder();yield(0,s.asyncForEach)(n,(e=>r(this,void 0,void 0,(function*(){yield this.runOne(e,t)}))))}))}static load(e,t,n){return r(this,arguments,void 0,(function*(e,t,n,r={}){const i=o.default.from(e,r),a=yield c.Runtimes.load(i);return new f(i,u.Config.from(n),a,t,r)}))}}t.Harmony=f},2337:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AspectGraph=t.RuntimeDefinition=t.Aspect=t.HarmonyError=t.SlotRegistry=t.Slot=t.Harmony=t.createHook=t.provider=t.hook=t.HookRegistry=t.register=t.Extension=t.ExtensionDecorator=void 0;var i=n(4135);Object.defineProperty(t,"ExtensionDecorator",{enumerable:!0,get:function(){return i.ExtensionDecorator}}),Object.defineProperty(t,"Extension",{enumerable:!0,get:function(){return i.Extension}}),Object.defineProperty(t,"register",{enumerable:!0,get:function(){return i.register}}),Object.defineProperty(t,"HookRegistry",{enumerable:!0,get:function(){return i.HookRegistry}}),Object.defineProperty(t,"hook",{enumerable:!0,get:function(){return i.hook}}),Object.defineProperty(t,"provider",{enumerable:!0,get:function(){return i.provider}}),Object.defineProperty(t,"createHook",{enumerable:!0,get:function(){return i.createHook}});var o=n(5631);Object.defineProperty(t,"Harmony",{enumerable:!0,get:function(){return o.Harmony}});var a=n(2387);Object.defineProperty(t,"Slot",{enumerable:!0,get:function(){return a.Slot}}),Object.defineProperty(t,"SlotRegistry",{enumerable:!0,get:function(){return a.SlotRegistry}});var s=n(6885);Object.defineProperty(t,"HarmonyError",{enumerable:!0,get:function(){return s.HarmonyError}});var u=n(6477);Object.defineProperty(t,"Aspect",{enumerable:!0,get:function(){return u.Aspect}});var c=n(3087);Object.defineProperty(t,"RuntimeDefinition",{enumerable:!0,get:function(){return c.RuntimeDefinition}});var l=n(9174);Object.defineProperty(t,"AspectGraph",{enumerable:!0,get:function(){return r(l).default}})},8518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RuntimeModuleError=t.RuntimeNotDefined=void 0;var r=n(3006);Object.defineProperty(t,"RuntimeNotDefined",{enumerable:!0,get:function(){return r.RuntimeNotDefined}});var i=n(4968);Object.defineProperty(t,"RuntimeModuleError",{enumerable:!0,get:function(){return i.RuntimeModuleError}})},4968:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RuntimeModuleError=void 0;class n extends Error{constructor(e){super(`failed to load Harmony aspect with error message: ${e.message}`),this.err=e}get stack(){return this.err.stack}}t.RuntimeModuleError=n},3006:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RuntimeNotDefined=void 0;class n extends Error{constructor(e){super(`runtime: '${e}' was not defined by any aspect`)}}t.RuntimeNotDefined=n},3087:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RuntimeDefinition=t.Runtimes=void 0;var r=n(8914);Object.defineProperty(t,"Runtimes",{enumerable:!0,get:function(){return r.Runtimes}});var i=n(9901);Object.defineProperty(t,"RuntimeDefinition",{enumerable:!0,get:function(){return i.RuntimeDefinition}})},9901:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RuntimeDefinition=void 0;const n=(e,t)=>e.includes(`.${t}.`);class r{constructor(e,t=n){this.name=e,this.filePredicate=t}getRuntimeFile(e){return e.find((e=>this.filePredicate(e,this.name)))}require(e){}static create(e){return new r(e.name)}}t.RuntimeDefinition=r},8914:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Runtimes=void 0;const i=n(8518);class o{constructor(e){this.runtimeDefinition=e}add(e){return this.runtimeDefinition[e.name]=e,this}get(e){if(!this.runtimeDefinition[e])throw new i.RuntimeNotDefined(e);return this.runtimeDefinition[e]}dispose(){}static load(e){return r(this,void 0,void 0,(function*(){const t={};return e.extensions.forEach((e=>{e.declareRuntime&&(t[e.declareRuntime.name]=e.declareRuntime)})),new o(t)}))}}t.Runtimes=o},2387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SlotRegistry=t.Slot=void 0;var r=n(9547);Object.defineProperty(t,"Slot",{enumerable:!0,get:function(){return r.Slot}});var i=n(4876);Object.defineProperty(t,"SlotRegistry",{enumerable:!0,get:function(){return i.SlotRegistry}})},4876:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SlotRegistry=void 0,t.SlotRegistry=class{constructor(e,t=new Map){this.registerFn=e,this.map=t}get(e){return this.map.get(e)}toArray(){return Array.from(this.map.entries())}values(){return Array.from(this.map.values())}register(e){const t=this.registerFn();this.map.set(t,e)}}},9547:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Slot=void 0;const r=n(4876);t.Slot=class{static withType(){return e=>new r.SlotRegistry(e)}}},6587:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.asyncForEach=function(e,t){return n(this,void 0,void 0,(function*(){for(let n=0;n<e.length;n+=1)yield t(e[n],n,e)}))}},5987:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asyncForEach=void 0;var r=n(6587);Object.defineProperty(t,"asyncForEach",{enumerable:!0,get:function(){return r.asyncForEach}})},7472:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION_DELIMITER=void 0;const s=a(n(9936)),u=o(n(2101)),c=o(n(7449)),l=n(2935),f=n(1936),p=a(n(5246)),d=a(n(7772)),h=n(2638);t.VERSION_DELIMITER="@";class v{constructor({scope:e,box:t,name:n,version:r}){if(!n)throw new h.InvalidName(n);this.scope=e||null,this.box=void 0,this.name=t?`${t}/${n}`:n,this.version=r||void 0,Object.freeze(this)}clone(){return new v(this)}changeScope(e){return new v({scope:e,name:this.name,version:this.version})}changeVersion(e){return new v({scope:this.scope,name:this.name,version:e})}isLocal(e){return!this.scope||Boolean(e&&e===this.scope)}getVersion(){return(0,f.versionParser)(this.version)}hasVersion(){return Boolean(this.version&&this.version!==f.LATEST_VERSION)}hasScope(){return Boolean(this.scope)}hasSameName(e){return this.name===e.name}hasSameScope(e){return this.hasScope()&&e.hasScope()?this.scope===e.scope:!this.hasScope()&&!e.hasScope()}hasSameVersion(e){return this.hasVersion()&&e.hasVersion()?this.version===e.version:!this.hasVersion()&&!e.hasVersion()}toString(e=!1,n=!1){const{name:r,version:i}=this,o=this.scope,a=e||!o?r:[o,r].join("/");return n||!this.hasVersion()?a:a.concat(`${t.VERSION_DELIMITER}${i}`)}toStringWithoutScope(){return this.toString(!0)}toStringWithoutVersion(){return this.toString(!1,!0)}toStringWithoutScopeAndVersion(){return this.toString(!0,!0)}isEqual(e){return this.hasSameName(e)&&this.hasSameScope(e)&&this.hasSameVersion(e)}isEqualWithoutVersion(e){return this.hasSameName(e)&&this.hasSameScope(e)}isEqualWithoutScopeAndVersion(e){return this.hasSameName(e)}serialize(){const e={scope:this.scope,name:this.name,version:this.version};return this.hasVersion()||delete e.version,this.hasScope()||delete e.scope,e}toFullPath(){if(!this.scope||!this.version)throw new Error("BitId.toFullPath is unable to generate a path without a scope or a version");return u.join(this.name,this.scope,this.version)}isVersionSnap(){return!(0,f.isTag)(this.version)}getVersionPreReleaseData(){return this.version?c.prerelease(this.version):null}static getStringWithoutVersion(e){const n=e.split(t.VERSION_DELIMITER);let r=n[0];return e.startsWith(t.VERSION_DELIMITER)&&(r=`${t.VERSION_DELIMITER}${n[1]}`),r}static getVersionOnlyFromString(e){return e.split(t.VERSION_DELIMITER)[1]}static parse(e,n=!0,r=f.LATEST_VERSION){if("string"!=typeof e)throw new TypeError('BitId.parse expects to get "id" as a string, instead, got '+typeof e);if(e.includes(t.VERSION_DELIMITER)&&e.lastIndexOf(t.VERSION_DELIMITER)>0){const[n,i]=e.split(t.VERSION_DELIMITER);e=n,r=i}const{scope:i,name:o}=n?v.getScopeAndName(e):{scope:void 0,name:e};if(!(0,p.default)(o))throw new h.InvalidName(o);if(i&&!(0,d.default)(i))throw new h.InvalidScopeName(i,e);return new v({scope:i,name:o,version:r})}static getScopeAndName(e){const t=e.indexOf("/");if(t<0)throw new h.InvalidBitId(e);return{scope:e.substring(0,t),name:e.substring(t+1)}}static parseObsolete(e,n=f.LATEST_VERSION){if(e.includes(t.VERSION_DELIMITER)){const[r,i]=e.split(t.VERSION_DELIMITER);e=r,n=i}const r=e.split("/");if(3===r.length){const[e,t,i]=r;if(!(0,p.default)(i,!1)||!(0,p.default)(t,!1)||!(0,d.default)(e))throw new h.InvalidIdChunk(`${e}/${t}/${i}`);return new v({scope:e,box:t,name:i,version:n})}if(2===r.length){const[e,t]=r;if(!(0,p.default)(t,!1)||!(0,p.default)(e,!1))throw new h.InvalidIdChunk(`${e}/${t}`);return new v({box:e,name:t,version:n})}if(1===r.length){const[e]=r;if(!(0,p.default)(e))throw new h.InvalidIdChunk(e);return new v({name:e,version:n})}throw new h.InvalidBitId(e)}static parseBackwardCompatible(e){return"string"==typeof e?v.parseObsolete(e):new v(e)}static getValidScopeName(e){let t=e.toLowerCase().split("").map((e=>/^[$\-_!.a-z0-9]+$/.test(e)?e:"")).join("");const n=t.split(".");if(n.length>1&&(t=`${(0,l.head)(n)}.${(0,l.tail)(n).join("")}`),!t)throw new Error("scope name created by directory name have to contains at least one character or number");return t}static getValidIdChunk(e){return(0,p.default)(e)||(e=(e=e.replace(/\./g,"")).replace(/ /g,"-"),e=(0,s.default)(e,"-")),e}static getValidBitId(e,t){return new v({name:v.getValidIdChunk(t),box:e?v.getValidIdChunk(e):void 0})}static isValidVersion(e){return(0,f.isTag)(e)||(0,f.isHash)(e)}static isValidSemver(e){return Boolean(c.valid(e))}}t.default=v},2063:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(2935),o=n(1936),a=r(n(7472));class s extends Array{serialize(){return this.map((e=>e.toString()))}has(e){return Boolean(this.search(e))}hasWithoutVersion(e){return Boolean(this.searchWithoutVersion(e))}hasWithoutScope(e){return Boolean(this.searchWithoutScope(e))}hasWithoutScopeAndVersion(e){return Boolean(this.searchWithoutScopeAndVersion(e))}hasWithoutScopeAndVersionAsString(e){return Boolean(this.find((t=>t.name===e)))}search(e){return this.find((t=>t.hasSameName(e)&&t.hasSameScope(e)&&t.hasSameVersion(e)))}searchWithoutVersion(e){return this.find((t=>t.hasSameName(e)&&t.hasSameScope(e)))}searchWithoutScopeAndVersion(e){return this.find((t=>t.hasSameName(e)))}searchWithoutScope(e){return this.find((t=>t.hasSameName(e)&&t.hasSameVersion(e)))}searchStrWithoutVersion(e){return this.find((t=>t.toStringWithoutVersion()===e))}searchStrWithoutScopeAndVersion(e){return this.find((t=>t.toStringWithoutScopeAndVersion()===e))}filterExact(e){return this.filter((t=>t.hasSameName(e)&&t.hasSameScope(e)&&t.hasSameVersion(e)))}filterWithoutVersion(e){return this.filter((t=>t.hasSameName(e)&&t.hasSameScope(e)))}filterWithoutScopeAndVersion(e){return this.filter((t=>t.hasSameName(e)))}removeIfExist(e){return s.fromArray(this.filter((t=>!t.isEqual(e))))}difference(e){return s.fromArray(this.filter((t=>!e.search(t))))}removeIfExistWithoutVersion(e){return s.fromArray(this.filter((t=>!t.isEqualWithoutVersion(e))))}removeMultipleIfExistWithoutVersion(e){return s.fromArray(this.filter((t=>!e.hasWithoutVersion(t))))}toObject(){return this.reduce(((e,t)=>(e[t.toString()]=t,e)),{})}static deserialize(e=[]){return new s(...e.map((e=>a.default.parse(e,!0))))}static deserializeObsolete(e=[]){return new s(...e.map((e=>a.default.parseObsolete(e))))}toString(){return this.map((e=>e.toString())).join(", ")}toGroupByIdWithoutVersion(){return this.reduce(((e,t)=>{const n=t.toStringWithoutVersion();return e[n]?e[n].push(t):e[n]=new s(t),e}),{})}toGroupByScopeName(e){return this.reduce(((t,n)=>{const r=(()=>{if(n.scope)return n.scope;const t=e.searchWithoutScopeAndVersion(n);return t?t.scope:null})();if(!r)throw new Error(`toGroupByScopeName() expect ids to have a scope name, got ${n.toString()}`);return t[r]?t[r].push(n):t[r]=new s(n),t}),{})}findDuplicationsIgnoreVersion(){const e={};return this.forEach((t=>{const n=this.filterWithoutVersion(t);n.length>1&&(e[t.toStringWithoutVersion()]=n)})),e}add(e){e.forEach((e=>{this.search(e)||this.push(e)}))}static fromObject(e){const t=[];return(0,i.forEach)(e,((e,n)=>{t.push(a.default.parse(n,!0,e))})),new s(...t)}static fromArray(e){const t=new s;return e.forEach((e=>t.push(e))),t}static uniqFromArray(e){const t=(0,i.uniqBy)(e,(e=>e.toString()));return s.fromArray(t)}throwForDuplicationIgnoreVersion(){this.forEach((e=>{const t=this.filterWithoutVersion(e);if(t.length>1)throw new Error(`bitIds has "${e.toStringWithoutVersion()}" duplicated as following:\n${t.map((e=>e.toString())).join("\n")}`)}))}toVersionLatest(){return s.uniqFromArray(this.map((e=>e.changeVersion(o.LATEST_VERSION))))}clone(){const e=this.map((e=>e.clone()));return new s(...e)}}t.default=s},2638:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidScopeNameFromRemote=t.InvalidScopeName=t.InvalidName=t.InvalidIdChunk=t.InvalidBitId=void 0;const i=r(n(2273));t.InvalidBitId=i.default;const o=r(n(7927));t.InvalidIdChunk=o.default;const a=r(n(1269));t.InvalidName=a.default;const s=r(n(7254));t.InvalidScopeName=s.default;const u=r(n(2878));t.InvalidScopeNameFromRemote=u.default},2273:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4490);class i extends r.BitError{constructor(e){super(`error: component ID "${e}" is invalid, please use the following format: [scope]/<name>`)}}t.default=i},7927:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4490);class i extends r.BitError{constructor(e){super(`error: "${e}" is invalid, component IDs can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!"]`)}}t.default=i},1269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4490);class i extends r.BitError{constructor(e){super(`error: "${e}" is invalid, component names can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!", "/"]`)}}t.default=i},2878:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4490);class i extends r.BitError{constructor(e){super(`cannot find scope '${e}'.\nif you are targeting a self-hosted scope, please ensure the scope is configured in your remotes (via "bit remote" command) and that the scope name is correct.\nif this is a scope on bit.cloud please add the organization name before the scope (yourOrg.some-scope-name)`),this.scopeName=e}}t.default=i},7254:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4490);class i extends r.BitError{constructor(e,t,n){super(`error: "${t||e}" ${n?`configured in variant "${n}" `:""}is invalid, component scope names can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!"]`)}}t.default=i},5575:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidScopeNameFromRemote=t.InvalidScopeName=t.InvalidName=t.isValidIdChunk=t.isValidScopeName=t.VERSION_DELIMITER=t.BitIds=t.BitId=void 0;const s=o(n(7472));t.BitId=s.default,Object.defineProperty(t,"VERSION_DELIMITER",{enumerable:!0,get:function(){return s.VERSION_DELIMITER}});const u=a(n(2063));t.BitIds=u.default;const c=n(2638);Object.defineProperty(t,"InvalidName",{enumerable:!0,get:function(){return c.InvalidName}}),Object.defineProperty(t,"InvalidScopeName",{enumerable:!0,get:function(){return c.InvalidScopeName}}),Object.defineProperty(t,"InvalidScopeNameFromRemote",{enumerable:!0,get:function(){return c.InvalidScopeNameFromRemote}});const l=a(n(7772));t.isValidScopeName=l.default;const f=a(n(5246));t.isValidIdChunk=f.default},5246:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=/^[-_a-z0-9/]+$/,r=/^[-_a-z0-9]+$/;t.default=function(e,t=!0){return"string"==typeof e&&!e.includes("//")&&(t?n:r).test(e)}},7772:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=/^[$\-_!a-z0-9]+[.]?[$\-_!a-z0-9]+$/;t.default=function(e){return"string"==typeof e&&n.test(e)}},1026:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION_DELIMITER=void 0;const s=a(n(9936)),u=o(n(2101)),c=o(n(6322)),l=n(2935),f=n(5699),p=a(n(1724)),d=a(n(1857)),h=n(3796);t.VERSION_DELIMITER="@";class v{constructor({scope:e,box:t,name:n,version:r}){if(!n)throw new h.InvalidName(n);this.scope=e||null,this.box=void 0,this.name=t?`${t}/${n}`:n,this.version=r||void 0,Object.freeze(this)}clone(){return new v(this)}changeScope(e){return new v({scope:e,name:this.name,version:this.version})}changeVersion(e){return new v({scope:this.scope,name:this.name,version:e})}isLocal(e){return!this.scope||Boolean(e&&e===this.scope)}getVersion(){return(0,f.versionParser)(this.version)}hasVersion(){return Boolean(this.version&&this.version!==f.LATEST_VERSION)}hasScope(){return Boolean(this.scope)}hasSameName(e){return this.name===e.name}hasSameScope(e){return this.hasScope()&&e.hasScope()?this.scope===e.scope:!this.hasScope()&&!e.hasScope()}hasSameVersion(e){return this.hasVersion()&&e.hasVersion()?this.version===e.version:!this.hasVersion()&&!e.hasVersion()}toString(e=!1,n=!1){const{name:r,version:i}=this,o=this.scope,a=e||!o?r:[o,r].join("/");return n||!this.hasVersion()?a:a.concat(`${t.VERSION_DELIMITER}${i}`)}toStringWithoutScope(){return this.toString(!0)}toStringWithoutVersion(){return this.toString(!1,!0)}toStringWithoutScopeAndVersion(){return this.toString(!0,!0)}isEqual(e){return this.hasSameName(e)&&this.hasSameScope(e)&&this.hasSameVersion(e)}isEqualWithoutVersion(e){return this.hasSameName(e)&&this.hasSameScope(e)}isEqualWithoutScopeAndVersion(e){return this.hasSameName(e)}serialize(){const e={scope:this.scope,name:this.name,version:this.version};return this.hasVersion()||delete e.version,this.hasScope()||delete e.scope,e}toFullPath(){if(!this.scope||!this.version)throw new Error("BitId.toFullPath is unable to generate a path without a scope or a version");return u.join(this.name,this.scope,this.version)}isVersionSnap(){return!(0,f.isTag)(this.version)}getVersionPreReleaseData(){return this.version?c.prerelease(this.version):null}static getStringWithoutVersion(e){const n=e.split(t.VERSION_DELIMITER);let r=n[0];return e.startsWith(t.VERSION_DELIMITER)&&(r=`${t.VERSION_DELIMITER}${n[1]}`),r}static getVersionOnlyFromString(e){return e.split(t.VERSION_DELIMITER)[1]}static parse(e,n=!0,r=f.LATEST_VERSION){if("string"!=typeof e)throw new TypeError('BitId.parse expects to get "id" as a string, instead, got '+typeof e);if(e.includes(t.VERSION_DELIMITER)&&e.lastIndexOf(t.VERSION_DELIMITER)>0){const[n,i]=e.split(t.VERSION_DELIMITER);e=n,r=i}const{scope:i,name:o}=n?v.getScopeAndName(e):{scope:void 0,name:e};if(!(0,p.default)(o))throw new h.InvalidName(o);if(i&&!(0,d.default)(i))throw new h.InvalidScopeName(i,e);return new v({scope:i,name:o,version:r})}static getScopeAndName(e){const t=e.indexOf("/");if(t<0)throw new h.InvalidBitId(e);return{scope:e.substring(0,t),name:e.substring(t+1)}}static parseObsolete(e,n=f.LATEST_VERSION){if(e.includes(t.VERSION_DELIMITER)){const[r,i]=e.split(t.VERSION_DELIMITER);e=r,n=i}const r=e.split("/");if(3===r.length){const[e,t,i]=r;if(!(0,p.default)(i,!1)||!(0,p.default)(t,!1)||!(0,d.default)(e))throw new h.InvalidIdChunk(`${e}/${t}/${i}`);return new v({scope:e,box:t,name:i,version:n})}if(2===r.length){const[e,t]=r;if(!(0,p.default)(t,!1)||!(0,p.default)(e,!1))throw new h.InvalidIdChunk(`${e}/${t}`);return new v({box:e,name:t,version:n})}if(1===r.length){const[e]=r;if(!(0,p.default)(e))throw new h.InvalidIdChunk(e);return new v({name:e,version:n})}throw new h.InvalidBitId(e)}static parseBackwardCompatible(e){return"string"==typeof e?v.parseObsolete(e):new v(e)}static getValidScopeName(e){let t=e.toLowerCase().split("").map((e=>/^[$\-_!.a-z0-9]+$/.test(e)?e:"")).join("");const n=t.split(".");if(n.length>1&&(t=`${(0,l.head)(n)}.${(0,l.tail)(n).join("")}`),!t)throw new Error("scope name created by directory name have to contains at least one character or number");return t}static getValidIdChunk(e){return(0,p.default)(e)||(e=(e=e.replace(/\./g,"")).replace(/ /g,"-"),e=(0,s.default)(e,"-")),e}static getValidBitId(e,t){return new v({name:v.getValidIdChunk(t),box:e?v.getValidIdChunk(e):void 0})}static isValidVersion(e){return(0,f.isTag)(e)||(0,f.isHash)(e)}static isValidSemver(e){return Boolean(c.valid(e))}}t.default=v},6321:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(2935),o=n(5699),a=r(n(1026));class s extends Array{serialize(){return this.map((e=>e.toString()))}has(e){return Boolean(this.search(e))}hasWithoutVersion(e){return Boolean(this.searchWithoutVersion(e))}hasWithoutScope(e){return Boolean(this.searchWithoutScope(e))}hasWithoutScopeAndVersion(e){return Boolean(this.searchWithoutScopeAndVersion(e))}hasWithoutScopeAndVersionAsString(e){return Boolean(this.find((t=>t.name===e)))}search(e){return this.find((t=>t.hasSameName(e)&&t.hasSameScope(e)&&t.hasSameVersion(e)))}searchWithoutVersion(e){return this.find((t=>t.hasSameName(e)&&t.hasSameScope(e)))}searchWithoutScopeAndVersion(e){return this.find((t=>t.hasSameName(e)))}searchWithoutScope(e){return this.find((t=>t.hasSameName(e)&&t.hasSameVersion(e)))}searchStrWithoutVersion(e){return this.find((t=>t.toStringWithoutVersion()===e))}searchStrWithoutScopeAndVersion(e){return this.find((t=>t.toStringWithoutScopeAndVersion()===e))}filterExact(e){return this.filter((t=>t.hasSameName(e)&&t.hasSameScope(e)&&t.hasSameVersion(e)))}filterWithoutVersion(e){return this.filter((t=>t.hasSameName(e)&&t.hasSameScope(e)))}filterWithoutScopeAndVersion(e){return this.filter((t=>t.hasSameName(e)))}removeIfExist(e){return s.fromArray(this.filter((t=>!t.isEqual(e))))}difference(e){return s.fromArray(this.filter((t=>!e.search(t))))}removeIfExistWithoutVersion(e){return s.fromArray(this.filter((t=>!t.isEqualWithoutVersion(e))))}removeMultipleIfExistWithoutVersion(e){return s.fromArray(this.filter((t=>!e.hasWithoutVersion(t))))}toObject(){return this.reduce(((e,t)=>(e[t.toString()]=t,e)),{})}static deserialize(e=[]){return new s(...e.map((e=>a.default.parse(e,!0))))}static deserializeObsolete(e=[]){return new s(...e.map((e=>a.default.parseObsolete(e))))}toString(){return this.map((e=>e.toString())).join(", ")}toGroupByIdWithoutVersion(){return this.reduce(((e,t)=>{const n=t.toStringWithoutVersion();return e[n]?e[n].push(t):e[n]=new s(t),e}),{})}toGroupByScopeName(e){return this.reduce(((t,n)=>{const r=(()=>{if(n.scope)return n.scope;const t=e.searchWithoutScopeAndVersion(n);return t?t.scope:null})();if(!r)throw new Error(`toGroupByScopeName() expect ids to have a scope name, got ${n.toString()}`);return t[r]?t[r].push(n):t[r]=new s(n),t}),{})}findDuplicationsIgnoreVersion(){const e={};return this.forEach((t=>{const n=this.filterWithoutVersion(t);n.length>1&&(e[t.toStringWithoutVersion()]=n)})),e}add(e){e.forEach((e=>{this.search(e)||this.push(e)}))}static fromObject(e){const t=[];return(0,i.forEach)(e,((e,n)=>{t.push(a.default.parse(n,!0,e))})),new s(...t)}static fromArray(e){const t=new s;return e.forEach((e=>t.push(e))),t}static uniqFromArray(e){const t=(0,i.uniqBy)(e,(e=>e.toString()));return s.fromArray(t)}throwForDuplicationIgnoreVersion(){this.forEach((e=>{const t=this.filterWithoutVersion(e);if(t.length>1)throw new Error(`bitIds has "${e.toStringWithoutVersion()}" duplicated as following:\n${t.map((e=>e.toString())).join("\n")}`)}))}toVersionLatest(){return s.uniqFromArray(this.map((e=>e.changeVersion(o.LATEST_VERSION))))}clone(){const e=this.map((e=>e.clone()));return new s(...e)}}t.default=s},3796:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidScopeNameFromRemote=t.InvalidScopeName=t.InvalidName=t.InvalidIdChunk=t.InvalidBitId=void 0;const i=r(n(7611));t.InvalidBitId=i.default;const o=r(n(9273));t.InvalidIdChunk=o.default;const a=r(n(8991));t.InvalidName=a.default;const s=r(n(7060));t.InvalidScopeName=s.default;const u=r(n(4872));t.InvalidScopeNameFromRemote=u.default},7611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4490);class i extends r.BitError{constructor(e){super(`error: component ID "${e}" is invalid, please use the following format: [scope]/<name>`)}}t.default=i},9273:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4490);class i extends r.BitError{constructor(e){super(`error: "${e}" is invalid, component IDs can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!"]`)}}t.default=i},8991:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4490);class i extends r.BitError{constructor(e){super(`error: "${e}" is invalid, component names can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!", "/"]`)}}t.default=i},4872:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4490);class i extends r.BitError{constructor(e){super(`cannot find scope '${e}'.\nif you are targeting a self-hosted scope, please ensure the scope is configured in your remotes (via "bit remote" command) and that the scope name is correct.\nif this is a scope on bit.cloud please add the organization name before the scope (yourOrg.some-scope-name)`),this.scopeName=e}}t.default=i},7060:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4490);class i extends r.BitError{constructor(e,t,n){super(`error: "${t||e}" ${n?`configured in variant "${n}" `:""}is invalid, component scope names can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!"]`)}}t.default=i},7973:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidScopeNameFromRemote=t.InvalidScopeName=t.InvalidName=t.isValidIdChunk=t.isValidScopeName=t.VERSION_DELIMITER=t.BitIds=t.BitId=void 0;const s=o(n(1026));t.BitId=s.default,Object.defineProperty(t,"VERSION_DELIMITER",{enumerable:!0,get:function(){return s.VERSION_DELIMITER}});const u=a(n(6321));t.BitIds=u.default;const c=n(3796);Object.defineProperty(t,"InvalidName",{enumerable:!0,get:function(){return c.InvalidName}}),Object.defineProperty(t,"InvalidScopeName",{enumerable:!0,get:function(){return c.InvalidScopeName}}),Object.defineProperty(t,"InvalidScopeNameFromRemote",{enumerable:!0,get:function(){return c.InvalidScopeNameFromRemote}});const l=a(n(1857));t.isValidScopeName=l.default;const f=a(n(1724));t.isValidIdChunk=f.default},1724:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0){return"string"==typeof e&&(!e.includes("//")&&(t?n:r).test(e))};const n=/^[-_a-z0-9/]+$/,r=/^[-_a-z0-9]+$/},1857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&n.test(e)};const n=/^[$\-_!a-z0-9]+[.]?[$\-_!a-z0-9]+$/},6300:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.linkModules=t.PreviewModules=t.PREVIEW_MODULES=void 0;var r=n(668);Object.defineProperty(t,"PREVIEW_MODULES",{enumerable:!0,get:function(){return r.PREVIEW_MODULES}}),Object.defineProperty(t,"PreviewModules",{enumerable:!0,get:function(){return r.PreviewModules}}),Object.defineProperty(t,"linkModules",{enumerable:!0,get:function(){return r.linkModules}})},668:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.linkModules=t.PREVIEW_MODULES=t.PreviewModules=void 0;class n extends Map{constructor(){super(...arguments),this.onSet=new Set}set(e,t){return super.set(e,t),this.onSet.forEach((e=>e())),this}loadComponentPreviews(e,t){Object.entries(t).forEach((([t,n])=>{const r=this.get(t);r&&(r.componentMap[e]=n)}))}}t.PreviewModules=n,t.PREVIEW_MODULES="undefined"!=typeof window?(window.__bit_preview_modules||(window.__bit_preview_modules=new n),window.__bit_preview_modules):new n,t.linkModules=function(e,n){t.PREVIEW_MODULES.set(e,n)}},833:(e,t)=>{"use strict";function n(e){for(let t=e;null!==t&&null!==t.type;t=t.return){if("function"==typeof t.type)return t;if("object"==typeof t.type&&"function"==typeof t.type.render)return t}return null}Object.defineProperty(t,"__esModule",{value:!0}),t.fiberToPrototype=t.toRootFiber=t.domToFiber=void 0,t.domToFiber=function(e){if(!e)return null;const t=Object.keys(e).find((e=>e.startsWith("__reactFiber")||e.startsWith("__reactInternalInstance")));if(!t)return null;return e[t]||null},t.toRootFiber=n,t.fiberToPrototype=function(e){var t;return(null===(t=n(e))||void 0===t?void 0:t.type)||null}},7304:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.domToReacts=t.domToReact=t.toRootElement=void 0;const r=n(833);function i(e){if(null===e)return[];const t=(0,r.domToFiber)(e);return function(e){const t=[];let n=e;for(;n&&null!==n.type&&"string"!=typeof n.type;)t.push(n.type),n=n.return;return t}((0,r.toRootFiber)(t))}t.toRootElement=function(e){const t=(0,r.toRootFiber)((0,r.domToFiber)(e));if(!t)return null;for(let n=e;n;n=n.parentElement){const e=(0,r.domToFiber)(n);if(!e)return null;const i=e.return;if(e===t||i===t)return n}return null},t.domToReact=function(e){return i(e).pop()},t.domToReacts=i},9046:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fiberToPrototype=t.toRootFiber=t.domToFiber=t.toRootElement=t.domToReacts=t.domToReact=void 0;var r=n(7304);Object.defineProperty(t,"domToReact",{enumerable:!0,get:function(){return r.domToReact}}),Object.defineProperty(t,"domToReacts",{enumerable:!0,get:function(){return r.domToReacts}}),Object.defineProperty(t,"toRootElement",{enumerable:!0,get:function(){return r.toRootElement}});var i=n(833);Object.defineProperty(t,"domToFiber",{enumerable:!0,get:function(){return i.domToFiber}}),Object.defineProperty(t,"toRootFiber",{enumerable:!0,get:function(){return i.toRootFiber}}),Object.defineProperty(t,"fiberToPrototype",{enumerable:!0,get:function(){return i.fiberToPrototype}})},464:function(e,t,n){"use strict";var r=this&&this.__rest||function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChildrenHighlighter=void 0;const o=i(n(2015)),a=n(6992);t.ChildrenHighlighter=function(e){var{watchMotion:t=!1}=e,n=r(e,["watchMotion"]);return o.default.createElement(a.HybridHighlighter,Object.assign({},n,{mode:"allChildren",watchMotion:t}))}},3789:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChildrenHighlighter=t.useChildrenHighlighter=void 0;var r=n(370);Object.defineProperty(t,"useChildrenHighlighter",{enumerable:!0,get:function(){return r.useChildrenHighlighter}});var i=n(464);Object.defineProperty(t,"ChildrenHighlighter",{enumerable:!0,get:function(){return i.ChildrenHighlighter}})},370:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useChildrenHighlighter=void 0;const i=n(2015),o=r(n(5692)),a=n(9046),s=n(5489),u=n(9835),c=n(2014);t.useChildrenHighlighter=function({onChange:e,disabled:t,scopeRef:n,scopeClass:r="",rule:l,componentRule:f}){(0,i.useEffect)((()=>{const i={},p=n.current;if(!p||t)return;let d=Array.from(p.querySelectorAll(function(e=":scope"){return`:not(${`${e} ${u.excludeHighlighterSelector}, ${e} ${u.excludeHighlighterSelector} *`}, ${`${e} ${u.skipHighlighterSelector}, ${e} ${u.skipHighlighterSelector} *`})`}(`.${r}`)));l&&(d=d.filter((e=>(0,c.ruleMatcher)(e,l))));const h=d.map(a.toRootElement).filter((e=>!!e));new Set(h).forEach((e=>{if(!e)return;const t=(0,a.domToReacts)(e).filter((e=>(0,s.hasComponentMeta)(e)&&(0,c.componentRuleMatcher)({meta:e[s.componentMetaField]},f)));if(t.length<1)return;const n=(0,o.default)(e);i[n]={element:e,components:t}})),e(i)}),[t,r])}},8556:function(e,t,n){"use strict";var r=this&&this.__rest||function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ElementHighlighter=void 0;const o=i(n(2015)),a=i(n(7500)),s=n(4813),u=n(6018),c=n(9835),l=i(n(4610));t.ElementHighlighter=function(e){var{targetRef:t,components:n,placement:i="top",watchMotion:f,className:p,classes:d}=e,h=r(e,["targetRef","components","placement","watchMotion","className","classes"]);return o.default.createElement("div",Object.assign({},h,c.skipHighlighterAttr,{className:(0,a.default)(null==d?void 0:d.container,l.default.container,p)}),o.default.createElement(s.Frame,{targetRef:t,className:(0,a.default)(l.default.frame,null==d?void 0:d.frame),watchMotion:f}),n&&o.default.createElement(u.LabelContainer,{targetRef:t,className:l.default.label,placement:i,watchMotion:f},o.default.createElement(u.Label,{components:n,className:null==d?void 0:d.label})))}},6786:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ElementHighlighter=void 0;var r=n(8556);Object.defineProperty(t,"ElementHighlighter",{enumerable:!0,get:function(){return r.ElementHighlighter}})},9636:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Frame=void 0;const u=o(n(2015)),c=s(n(7500)),l=n(8401),f=s(n(4858)),p=+f.default.offset||6,d={rootBoundary:"document",padding:0},h="undefined"!=typeof window&&!!window.ResizeObserver;t.Frame=function({targetRef:e,watchMotion:t,className:n,stylesClass:r=f.default.overlayBorder,style:i}){var o;const s=(0,u.useRef)({width:0,height:0}),{x:v,y:m,strategy:y,reference:g,floating:b,update:E,refs:_,middlewareData:w}=(0,l.useFloating)({placement:"bottom-start",middleware:[{name:"align-to-target",fn:({rects:e})=>(e.floating=Object.assign(Object.assign({},e.floating),{width:e.reference.width+2*p,height:e.reference.height+2*p}),{})},(0,l.offset)((({rects:e})=>-e.reference.height)),(0,l.offset)((()=>({mainAxis:-p,crossAxis:-p}))),{name:"shiftPositive",fn:e=>a(this,void 0,void 0,(function*(){const t=yield(0,l.detectOverflow)(e,d),n={x:t.left>0?e.x+t.left:e.x,y:t.top>0?e.y+t.top:e.y},r={x:n.x-e.x,y:n.y-e.y};return Object.assign(Object.assign({},n),{data:r})}))},(0,l.size)({rootBoundary:"document",padding:0,apply({elements:e,rects:t,availableHeight:n,availableWidth:r,middlewareData:i}){const o=i.shiftPositive||{x:0,y:0},a=2*p-o.x,u=2*p-o.y,c={width:t.reference.width+a,height:t.reference.height+u,maxWidth:r,maxHeight:n};Object.assign(e.floating.style,c),s.current=c}}),(0,l.hide)({strategy:"referenceHidden"})]});(0,u.useLayoutEffect)((()=>{g(e.current)}),[e.current]),(0,u.useEffect)((()=>_.reference.current&&_.floating.current&&h?(0,l.autoUpdate)(_.reference.current,_.floating.current,E,{animationFrame:t}):()=>{}),[_.reference.current,_.floating.current,E,t]);const O=!(null===(o=w.hide)||void 0===o?void 0:o.referenceHidden);return u.default.createElement("div",{ref:b,className:(0,c.default)(n,r,!O&&f.default.hidden),style:Object.assign(Object.assign(Object.assign({},i),s.current),{position:y,top:null!=m?m:0,left:null!=v?v:0})})}},4813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Frame=void 0;var r=n(9636);Object.defineProperty(t,"Frame",{enumerable:!0,get:function(){return r.Frame}})},5198:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bubbleToComponent=void 0;const r=n(9046),i=n(5489),o=n(2014);function a(e,t,n){for(let a=e;a;a=a.parentElement){if(a=(0,r.toRootElement)(a),!a)return;if((0,o.ruleMatcher)(a,t)){const e=(0,r.domToReacts)(a).filter((e=>(0,i.hasComponentMeta)(e)&&(0,o.componentRuleMatcher)({meta:e[i.componentMetaField]},n)));if(e.length<1)return;return{element:a,components:e}}}}t.bubbleToComponent=function(e,{elementRule:t,componentRule:n,propagateSameParents:r=!0}={}){let o=a(e,t,n);if(!r)return o;for(;o;){const e=a(o.element.parentElement,t,n),r=null==o?void 0:o.components.slice(-1).pop(),s=null==e?void 0:e.components.slice(-1).pop();if((null==r?void 0:r[i.componentMetaField].id)!==(null==s?void 0:s[i.componentMetaField].id))return o;o=e}}},2424:function(e,t,n){"use strict";var r=this&&this.__rest||function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HoverHighlighter=void 0;const o=i(n(2015)),a=n(6992);t.HoverHighlighter=function(e){var t=r(e,[]);return o.default.createElement(a.HybridHighlighter,Object.assign({},t,{mode:"hover"}))}},4212:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HoverHighlighter=t.useHoverHighlighter=void 0;var r=n(3510);Object.defineProperty(t,"useHoverHighlighter",{enumerable:!0,get:function(){return r.useHoverHighlighter}});var i=n(2424);Object.defineProperty(t,"HoverHighlighter",{enumerable:!0,get:function(){return i.HoverHighlighter}})},3510:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useHoverHighlighter=void 0;const r=n(2015),i=n(3724),o=n(2840),a=n(9835),s=n(5198);t.useHoverHighlighter=function(e,t={},{debounceDuration:n,scopeClass:u,disabled:c,rule:l,componentRule:f}){const{handleElement:p}=function({onChange:e,scopeClass:t="",debounceDuration:n,disabled:o,rule:u,componentRule:c}){const l=(0,i.useDebouncedCallback)((n=>{if(!n||n.hasAttribute("data-nullify-component-highlight"))return void e(void 0);if(n.closest(`.${t} ${a.excludeHighlighterSelector}`))return void e(void 0);if(n.closest(`.${t} ${a.skipHighlighterSelector}`))return;const r=(0,s.bubbleToComponent)(n,{elementRule:u,componentRule:c});r&&e({element:r.element,components:r.components})}),n);return(0,r.useEffect)((()=>{o&&l.cancel()}),[o,l]),{handleElement:l}}({onChange:e,scopeClass:u,debounceDuration:n,disabled:c,rule:l,componentRule:f});return(0,o.useHoverSelection)(c?void 0:p,t)}},4722:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__rest||function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HybridHighlighter=void 0;const u=o(n(2015)),c=s(n(7500)),l=n(637),f=n(4212),p=n(6786),d=n(3789);t.HybridHighlighter=function(e){var{disabled:t,mode:n="hover",debounceSelection:r=80,watchMotion:i=!0,placement:o,rule:s,componentRule:h,classes:v,highlightStyle:m,className:y,style:g,bgColor:b,bgColorHover:E,bgColorActive:_,children:w}=e,O=a(e,["disabled","mode","debounceSelection","watchMotion","placement","rule","componentRule","classes","highlightStyle","className","style","bgColor","bgColorHover","bgColorActive","children"]);const T=(0,u.createRef)(),[I,N]=(0,u.useState)({}),S=(0,u.useRef)(`hl-scope-${(0,l.v4)()}`).current,A=Object.entries(I).length>0;(0,u.useEffect)((()=>{t&&N({})}),[t]);const R=(0,f.useHoverHighlighter)((e=>N(e?{"hover-target":e}:{})),O,{debounceDuration:A?r:0,scopeClass:S,disabled:t||"hover"!==n,rule:s,componentRule:h});(0,d.useChildrenHighlighter)({onChange:N,scopeRef:T,scopeClass:S,disabled:t||"allChildren"!==n,rule:s,componentRule:h});const x=(0,u.useMemo)((()=>Object.assign({"--bit-highlighter-color":b,"--bit-highlighter-color-hover":E,"--bit-highlighter-color-active":_},g)),[b,E,_,g]);return u.default.createElement("div",Object.assign({ref:T},O,R,{style:x,className:(0,c.default)(y,S),"data-nullify-component-highlight":!0}),w,Object.entries(I).map((([e,t])=>u.default.createElement(p.ElementHighlighter,{key:e,targetRef:{current:t.element},components:t.components,classes:v,style:m,placement:o,watchMotion:i}))))}},6992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HybridHighlighter=void 0;var r=n(4722);Object.defineProperty(t,"HybridHighlighter",{enumerable:!0,get:function(){return r.HybridHighlighter}})},9835:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.skipHighlighterSelector=t.skipHighlighterAttr=t.skipHighlighterAttrName=t.ExcludeHighlighter=t.excludeHighlighterAtt=t.excludeHighlighterSelector=t.excludeHighlighterAttrName=void 0;const i=r(n(2015));t.excludeHighlighterAttrName="data-ignore-component-highlight",t.excludeHighlighterSelector=`[${t.excludeHighlighterAttrName}]`,t.excludeHighlighterAtt={[t.excludeHighlighterAttrName]:!0},t.ExcludeHighlighter=function(e){return i.default.createElement("div",Object.assign({},e,t.excludeHighlighterAtt))},t.skipHighlighterAttrName="data-skip-component-highlight",t.skipHighlighterAttr={[t.skipHighlighterAttrName]:!0},t.skipHighlighterSelector=`[${t.skipHighlighterAttrName}]`},1779:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipHighlighterAttrName=t.skipHighlighterAttr=t.excludeHighlighterAttrName=t.excludeHighlighterAtt=t.ExcludeHighlighter=t.ElementHighlighter=t.ChildrenHighlighter=t.HoverHighlighter=t.ComponentHighlighter=void 0;var r=n(6992);Object.defineProperty(t,"ComponentHighlighter",{enumerable:!0,get:function(){return r.HybridHighlighter}});var i=n(4212);Object.defineProperty(t,"HoverHighlighter",{enumerable:!0,get:function(){return i.HoverHighlighter}});var o=n(3789);Object.defineProperty(t,"ChildrenHighlighter",{enumerable:!0,get:function(){return o.ChildrenHighlighter}});var a=n(6786);Object.defineProperty(t,"ElementHighlighter",{enumerable:!0,get:function(){return a.ElementHighlighter}});var s=n(9835);Object.defineProperty(t,"ExcludeHighlighter",{enumerable:!0,get:function(){return s.ExcludeHighlighter}}),Object.defineProperty(t,"excludeHighlighterAtt",{enumerable:!0,get:function(){return s.excludeHighlighterAtt}}),Object.defineProperty(t,"excludeHighlighterAttrName",{enumerable:!0,get:function(){return s.excludeHighlighterAttrName}}),Object.defineProperty(t,"skipHighlighterAttr",{enumerable:!0,get:function(){return s.skipHighlighterAttr}}),Object.defineProperty(t,"skipHighlighterAttrName",{enumerable:!0,get:function(){return s.skipHighlighterAttrName}})},8278:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentStrip=void 0;const s=o(n(2015)),u=n(2895),c=n(1001),l=n(6528),f=n(5489),p=a(n(5080)),d=n(2651);function h({link:e,children:t,className:n}){const r=e?u.NativeLink:"span";return s.default.createElement(r,{href:e,external:!!e,className:n},t)}t.ComponentStrip=(0,s.forwardRef)((function({component:e,children:t},n){const{id:r,homepage:i,exported:o}="string"==typeof(v=e)?{id:v,exported:!0}:v[f.componentMetaField],a=(0,s.useMemo)((()=>c.ComponentID.tryFromString(r)),[r]),u=i||(0,d.calcComponentLink)(a,o);var v;return s.default.createElement("div",{className:p.default.componentStrip,ref:n},!a&&s.default.createElement(h,{link:i},r),a&&s.default.createElement(h,{link:l.ScopeUrl.toUrl(a.scope)},a.scope),a&&s.default.createElement(h,{link:u,className:p.default.nameBlock},s.default.createElement("span",null,a.fullName),a.version&&"latest"!==a.version&&s.default.createElement("span",{className:p.default.version},"@",a.version)),t)}))},6018:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LabelContainer=t.Label=void 0;var r=n(8112);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return r.Label}});var i=n(7818);Object.defineProperty(t,"LabelContainer",{enumerable:!0,get:function(){return i.LabelContainer}})},7818:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__rest||function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LabelContainer=void 0;const u=o(n(2015)),c=s(n(7500)),l=s(n(763)),f=n(8401),p=s(n(3174)),d="undefined"!=typeof window&&!!window.ResizeObserver;t.LabelContainer=function(e){var t,{targetRef:n,offset:r,placement:i,flip:o=!0,watchMotion:s,className:h,style:v}=e,m=a(e,["targetRef","offset","placement","flip","watchMotion","className","style"]);const{x:y,y:g,strategy:b,floating:E,reference:_,refs:w,update:O,middlewareData:T}=(0,f.useFloating)({placement:i,middleware:(0,l.default)([r&&(0,f.offset)({mainAxis:r[0],crossAxis:r[1]}),o&&(0,f.flip)(),(0,f.shift)({rootBoundary:"document",mainAxis:!0,crossAxis:!0}),(0,f.hide)({strategy:"referenceHidden"})])});(0,u.useLayoutEffect)((()=>{_(n.current)}),[n.current,_]),(0,u.useEffect)((()=>w.reference.current&&w.floating.current&&d?(0,f.autoUpdate)(w.reference.current,w.floating.current,O,{animationFrame:!!s}):()=>{}),[w.reference.current,w.floating.current,O,s]);const I=!(null===(t=T.hide)||void 0===t?void 0:t.referenceHidden);return u.default.createElement("div",Object.assign({},m,{ref:E,className:(0,c.default)(h,!I&&p.default.hidden),style:Object.assign(Object.assign({},v),{position:b,top:null!=g?g:0,left:null!=y?y:0})}))}},8112:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__rest||function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Label=void 0;const u=o(n(2015)),c=s(n(7500)),l=s(n(3174)),f=n(8278),p=n(2061);t.Label=function(e){var{components:t}=e,n=a(e,["components"]);const[r,i]=(0,u.useState)(!1),o=t.slice(-1).pop();if(!o)return null;const s=t.length>1;return(0,u.useEffect)((()=>{i(!1)}),[t]),u.default.createElement(p.OtherComponentsPopper,{components:t,visible:r,placement:"bottom-start"},u.default.createElement(f.ComponentStrip,Object.assign({},n,{component:o}),s&&u.default.createElement("span",{className:(0,c.default)(l.default.othersTooltip,r&&l.default.active),onClick:()=>i((e=>!e))})))}},2651:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.calcComponentLink=void 0;const i=r(n(2176)),o=n(6528);t.calcComponentLink=function(e,t){if(e)return t?o.ComponentUrl.toUrl(e):(0,i.default)("/",e.fullName)}},2061:function(e,t,n){"use strict";var r=this&&this.__rest||function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OtherComponentsPopper=void 0;const o=i(n(2015)),a=i(n(1002)),s=n(8278),u=i(n(3174));t.OtherComponentsPopper=function(e){var{components:t,children:n,start:i,end:c=-1,placement:l="bottom",interactive:f=!0}=e,p=r(e,["components","children","start","end","placement","interactive"]);const d=o.default.createElement(o.default.Fragment,null,t.slice(i,c).reverse().map(((e,t)=>o.default.createElement(s.ComponentStrip,{key:t,component:e}))));return o.default.createElement(a.default,Object.assign({placement:l,interactive:f},p,{render:e=>o.default.createElement("div",Object.assign({},e,{className:u.default.othersContainer}),d)}),n)}},2014:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.componentRuleMatcher=t.ruleMatcher=void 0;const r=n(1001);t.ruleMatcher=function(e,t){return"string"==typeof t?e.matches(t):"function"!=typeof t||t(e)},t.componentRuleMatcher=function(e,t){if("string"==typeof t){const n=r.ComponentID.tryFromString(e.meta.id),i=r.ComponentID.tryFromString(t);return r.ComponentID.isEqual(i,n,{ignoreVersion:!0})}if(Array.isArray(t)){const n=r.ComponentID.tryFromString(e.meta.id);return t.map((e=>r.ComponentID.tryFromString(e))).some((e=>r.ComponentID.isEqual(n,e,{ignoreVersion:!0})))}return"function"!=typeof t||t(e)}},8242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasComponentMeta=t.componentMetaProperties=t.componentMetaField=void 0,t.componentMetaField="__bit_component",t.componentMetaProperties={componentId:"id",homepageUrl:"homepage",isExported:"exported"},t.hasComponentMeta=function(e){return e&&"object"==typeof e.__bit_component&&"string"==typeof e.__bit_component.id}},4464:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MockedComponentWithMeta=void 0;const i=r(n(2015)),o=n(8242);function a(e){return i.default.createElement("button",Object.assign({type:"button"},e))}t.MockedComponentWithMeta=a,a[o.componentMetaField]={id:"teambit.base-ui/input/button"}},5489:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MockedComponentWithMeta=t.componentMetaProperties=t.componentMetaField=t.hasComponentMeta=void 0;var r=n(8242);Object.defineProperty(t,"hasComponentMeta",{enumerable:!0,get:function(){return r.hasComponentMeta}}),Object.defineProperty(t,"componentMetaField",{enumerable:!0,get:function(){return r.componentMetaField}}),Object.defineProperty(t,"componentMetaProperties",{enumerable:!0,get:function(){return r.componentMetaProperties}});var i=n(4464);Object.defineProperty(t,"MockedComponentWithMeta",{enumerable:!0,get:function(){return i.MockedComponentWithMeta}})},5318:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__rest||function(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.useHoverSelection=t.HoverSelector=void 0;const s=o(n(2015));function u(e,t={}){const{onMouseOver:n,onMouseLeave:r}=t,i=(0,s.useCallback)((t=>{null==n||n(t);const{target:r}=t;r&&(null==e||e(r))}),[n,e]),o=(0,s.useCallback)((t=>{null==r||r(t),null==e||e(null)}),[r,e]);return e?{onMouseOver:i,onMouseLeave:o}:{}}t.HoverSelector=function(e){var{onElementChange:t,disabled:n}=e,r=a(e,["onElementChange","disabled"]);const i=u(t,r);return s.default.createElement("div",Object.assign({},r,n?{}:i))},t.useHoverSelection=u},2840:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useHoverSelection=t.HoverSelector=void 0;var r=n(5318);Object.defineProperty(t,"HoverSelector",{enumerable:!0,get:function(){return r.HoverSelector}}),Object.defineProperty(t,"useHoverSelection",{enumerable:!0,get:function(){return r.useHoverSelection}})},5867:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=void 0;var r=n(6238);Object.defineProperty(t,"isBrowser",{enumerable:!0,get:function(){return r.isBrowser}})},6238:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=void 0;const n="undefined"!=typeof window;t.isBrowser=n},1002:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof r(e).Element||e instanceof Element}function o(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.r(t),n.d(t,{default:()=>ot,tippy:()=>Be,useSingleton:()=>it});var s=Math.max,u=Math.min,c=Math.round;function l(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function f(){return!/^((?!chrome|android).)*safari/i.test(l())}function p(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),s=1,u=1;t&&o(e)&&(s=e.offsetWidth>0&&c(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&c(a.height)/e.offsetHeight||1);var l=(i(e)?r(e):window).visualViewport,p=!f()&&n,d=(a.left+(p&&l?l.offsetLeft:0))/s,h=(a.top+(p&&l?l.offsetTop:0))/u,v=a.width/s,m=a.height/u;return{width:v,height:m,top:h,right:d+v,bottom:h+m,left:d,x:d,y:h}}function d(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function v(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return p(v(e)).left+d(e).scrollLeft}function y(e){return r(e).getComputedStyle(e)}function g(e){var t=y(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function b(e,t,n){void 0===n&&(n=!1);var i,a,s=o(t),u=o(t)&&function(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,r=c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=v(t),f=p(e,u,n),y={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(s||!s&&!n)&&(("body"!==h(t)||g(l))&&(y=(i=t)!==r(i)&&o(i)?{scrollLeft:(a=i).scrollLeft,scrollTop:a.scrollTop}:d(i)),o(t)?((b=p(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):l&&(b.x=m(l))),{x:f.left+y.scrollLeft-b.x,y:f.top+y.scrollTop-b.y,width:f.width,height:f.height}}function E(e){var t=p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function _(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||v(e)}function w(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:o(e)&&g(e)?e:w(_(e))}function O(e,t){var n;void 0===t&&(t=[]);var i=w(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=r(i),s=o?[a].concat(a.visualViewport||[],g(i)?i:[]):i,u=t.concat(s);return o?u:u.concat(O(_(s)))}function T(e){return["table","td","th"].indexOf(h(e))>=0}function I(e){return o(e)&&"fixed"!==y(e).position?e.offsetParent:null}function N(e){for(var t=r(e),n=I(e);n&&T(n)&&"static"===y(n).position;)n=I(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===y(n).position)?t:n||function(e){var t=/firefox/i.test(l());if(/Trident/i.test(l())&&o(e)&&"fixed"===y(e).position)return null;var n=_(e);for(a(n)&&(n=n.host);o(n)&&["html","body"].indexOf(h(n))<0;){var r=y(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var S="top",A="bottom",R="right",x="left",j="auto",P=[S,A,R,x],D="start",L="end",M="viewport",k="popper",C=P.reduce((function(e,t){return e.concat([t+"-"+D,t+"-"+L])}),[]),V=[].concat(P,[j]).reduce((function(e,t){return e.concat([t,t+"-"+D,t+"-"+L])}),[]),F=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function $(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var U={placement:"bottom",modifiers:[],strategy:"absolute"};function B(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function H(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?U:o;return function(e,t,n){void 0===n&&(n=a);var o,s,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},U,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,f={state:u,setOptions:function(n){var o="function"==typeof n?n(u.options):n;p(),u.options=Object.assign({},a,u.options,o),u.scrollParents={reference:i(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var s,l,d=function(e){var t=$(e);return F.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(r,u.options.modifiers),l=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(l).map((function(e){return l[e]}))));return u.orderedModifiers=d.filter((function(e){return e.enabled})),u.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var o=i({state:u,name:t,instance:f,options:r});c.push(o||function(){})}})),f.update()},forceUpdate:function(){if(!l){var e=u.elements,t=e.reference,n=e.popper;if(B(t,n)){u.rects={reference:b(t,N(n),"fixed"===u.options.strategy),popper:E(n)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(e){return u.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<u.orderedModifiers.length;r++)if(!0!==u.reset){var i=u.orderedModifiers[r],o=i.fn,a=i.options,s=void 0===a?{}:a,c=i.name;"function"==typeof o&&(u=o({state:u,options:s,name:c,instance:f})||u)}else u.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(u)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){p(),l=!0}};if(!B(e,t))return f;function p(){c.forEach((function(e){return e()})),c=[]}return f.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),f}}var G={passive:!0};function q(e){return e.split("-")[0]}function W(e){return e.split("-")[1]}function z(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Y(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?q(i):null,a=i?W(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case S:t={x:s,y:n.y-r.height};break;case A:t={x:s,y:n.y+n.height};break;case R:t={x:n.x+n.width,y:u};break;case x:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=o?z(o):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case D:t[c]=t[c]-(n[l]/2-r[l]/2);break;case L:t[c]=t[c]+(n[l]/2-r[l]/2)}}return t}var X={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t,n=e.popper,i=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,u=e.position,l=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,d=e.isFixed,h=s.x,m=void 0===h?0:h,g=s.y,b=void 0===g?0:g,E="function"==typeof p?p({x:m,y:b}):{x:m,y:b};m=E.x,b=E.y;var _=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),O=x,T=S,I=window;if(f){var j=N(n),P="clientHeight",D="clientWidth";j===r(n)&&"static"!==y(j=v(n)).position&&"absolute"===u&&(P="scrollHeight",D="scrollWidth"),(o===S||(o===x||o===R)&&a===L)&&(T=A,b-=(d&&j===I&&I.visualViewport?I.visualViewport.height:j[P])-i.height,b*=l?1:-1),o!==x&&(o!==S&&o!==A||a!==L)||(O=R,m-=(d&&j===I&&I.visualViewport?I.visualViewport.width:j[D])-i.width,m*=l?1:-1)}var M,k=Object.assign({position:u},f&&X),C=!0===p?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:c(n*i)/i||0,y:c(r*i)/i||0}}({x:m,y:b},r(n)):{x:m,y:b};return m=C.x,b=C.y,l?Object.assign({},k,((M={})[T]=w?"0":"",M[O]=_?"0":"",M.transform=(I.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",M)):Object.assign({},k,((t={})[T]=w?b+"px":"",t[O]=_?m+"px":"",t.transform="",t))}var Q={left:"right",right:"left",bottom:"top",top:"bottom"};function K(e){return e.replace(/left|right|bottom|top/g,(function(e){return Q[e]}))}var Z={start:"end",end:"start"};function ee(e){return e.replace(/start|end/g,(function(e){return Z[e]}))}function te(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ne(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function re(e,t,n){return t===M?ne(function(e,t){var n=r(e),i=v(e),o=n.visualViewport,a=i.clientWidth,s=i.clientHeight,u=0,c=0;if(o){a=o.width,s=o.height;var l=f();(l||!l&&"fixed"===t)&&(u=o.offsetLeft,c=o.offsetTop)}return{width:a,height:s,x:u+m(e),y:c}}(e,n)):i(t)?function(e,t){var n=p(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ne(function(e){var t,n=v(e),r=d(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=s(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+m(e),c=-r.scrollTop;return"rtl"===y(i||n).direction&&(u+=s(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:c}}(v(e)))}function ie(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function oe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ae(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=void 0===r?e.placement:r,c=n.strategy,l=void 0===c?e.strategy:c,f=n.boundary,d=void 0===f?"clippingParents":f,m=n.rootBoundary,g=void 0===m?M:m,b=n.elementContext,E=void 0===b?k:b,w=n.altBoundary,T=void 0!==w&&w,I=n.padding,x=void 0===I?0:I,j=ie("number"!=typeof x?x:oe(x,P)),D=E===k?"reference":k,L=e.rects.popper,C=e.elements[T?D:E],V=function(e,t,n,r){var a="clippingParents"===t?function(e){var t=O(_(e)),n=["absolute","fixed"].indexOf(y(e).position)>=0&&o(e)?N(e):e;return i(n)?t.filter((function(e){return i(e)&&te(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),c=[].concat(a,[n]),l=c[0],f=c.reduce((function(t,n){var i=re(e,n,r);return t.top=s(i.top,t.top),t.right=u(i.right,t.right),t.bottom=u(i.bottom,t.bottom),t.left=s(i.left,t.left),t}),re(e,l,r));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}(i(C)?C:C.contextElement||v(e.elements.popper),d,g,l),F=p(e.elements.reference),$=Y({reference:F,element:L,strategy:"absolute",placement:a}),U=ne(Object.assign({},L,$)),B=E===k?U:F,H={top:V.top-B.top+j.top,bottom:B.bottom-V.bottom+j.bottom,left:V.left-B.left+j.left,right:B.right-V.right+j.right},G=e.modifiersData.offset;if(E===k&&G){var q=G[a];Object.keys(H).forEach((function(e){var t=[R,A].indexOf(e)>=0?1:-1,n=[S,A].indexOf(e)>=0?"y":"x";H[e]+=q[n]*t}))}return H}function se(e,t,n){return s(e,u(t,n))}function ue(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ce(e){return[S,R,A,x].some((function(t){return e[t]>=0}))}var le=H({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,a=void 0===o||o,s=i.resize,u=void 0===s||s,c=r(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,G)})),u&&c.addEventListener("resize",n.update,G),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,G)})),u&&c.removeEventListener("resize",n.update,G)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,c={placement:q(t.placement),variation:W(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,J(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,J(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];o(i)&&h(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(r)&&h(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=V.reduce((function(e,n){return e[n]=function(e,t,n){var r=q(e),i=[x,S].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[x,R].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,h=void 0===d||d,v=n.allowedAutoPlacements,m=t.options.placement,y=q(m),g=u||(y!==m&&h?function(e){if(q(e)===j)return[];var t=K(e);return[ee(e),t,ee(t)]}(m):[K(m)]),b=[m].concat(g).reduce((function(e,n){return e.concat(q(n)===j?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?V:u,l=W(r),f=l?s?C:C.filter((function(e){return W(e)===l})):P,p=f.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=f);var d=p.reduce((function(t,n){return t[n]=ae(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[q(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),E=t.rects.reference,_=t.rects.popper,w=new Map,O=!0,T=b[0],I=0;I<b.length;I++){var N=b[I],L=q(N),M=W(N)===D,k=[S,A].indexOf(L)>=0,F=k?"width":"height",$=ae(t,{placement:N,boundary:l,rootBoundary:f,altBoundary:p,padding:c}),U=k?M?R:x:M?A:S;E[F]>_[F]&&(U=K(U));var B=K(U),H=[];if(o&&H.push($[L]<=0),s&&H.push($[U]<=0,$[B]<=0),H.every((function(e){return e}))){T=N,O=!1;break}w.set(N,H)}if(O)for(var G=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return T=t,"break"},z=h?3:1;z>0&&"break"!==G(z);z--);t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,c=void 0!==a&&a,l=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.padding,h=n.tether,v=void 0===h||h,m=n.tetherOffset,y=void 0===m?0:m,g=ae(t,{boundary:l,rootBoundary:f,padding:d,altBoundary:p}),b=q(t.placement),_=W(t.placement),w=!_,O=z(b),T="x"===O?"y":"x",I=t.modifiersData.popperOffsets,j=t.rects.reference,P=t.rects.popper,L="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,M="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(I){if(o){var V,F="y"===O?S:x,$="y"===O?A:R,U="y"===O?"height":"width",B=I[O],H=B+g[F],G=B-g[$],Y=v?-P[U]/2:0,X=_===D?j[U]:P[U],J=_===D?-P[U]:-j[U],Q=t.elements.arrow,K=v&&Q?E(Q):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Z[F],te=Z[$],ne=se(0,j[U],K[U]),re=w?j[U]/2-Y-ne-ee-M.mainAxis:X-ne-ee-M.mainAxis,ie=w?-j[U]/2+Y+ne+te+M.mainAxis:J+ne+te+M.mainAxis,oe=t.elements.arrow&&N(t.elements.arrow),ue=oe?"y"===O?oe.clientTop||0:oe.clientLeft||0:0,ce=null!=(V=null==k?void 0:k[O])?V:0,le=B+ie-ce,fe=se(v?u(H,B+re-ce-ue):H,B,v?s(G,le):G);I[O]=fe,C[O]=fe-B}if(c){var pe,de="x"===O?S:x,he="x"===O?A:R,ve=I[T],me="y"===T?"height":"width",ye=ve+g[de],ge=ve-g[he],be=-1!==[S,x].indexOf(b),Ee=null!=(pe=null==k?void 0:k[T])?pe:0,_e=be?ye:ve-j[me]-P[me]-Ee+M.altAxis,we=be?ve+j[me]+P[me]-Ee-M.altAxis:ge,Oe=v&&be?function(e,t,n){var r=se(e,t,n);return r>n?n:r}(_e,ve,we):se(v?_e:ye,ve,v?we:ge);I[T]=Oe,C[T]=Oe-ve}t.modifiersData[r]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=q(n.placement),u=z(s),c=[x,R].indexOf(s)>=0?"height":"width";if(o&&a){var l=function(e,t){return ie("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:oe(e,P))}(i.padding,n),f=E(o),p="y"===u?S:x,d="y"===u?A:R,h=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],v=a[u]-n.rects.reference[u],m=N(o),y=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,g=h/2-v/2,b=l[p],_=y-f[c]-l[d],w=y/2-f[c]/2+g,O=se(b,w,_),T=u;n.modifiersData[r]=((t={})[T]=O,t.centerOffset=O-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&te(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ae(t,{elementContext:"reference"}),s=ae(t,{altBoundary:!0}),u=ue(a,r),c=ue(s,i,o),l=ce(u),f=ce(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),fe={passive:!0,capture:!0};function pe(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function de(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function he(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ve(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function me(e){return[].concat(e)}function ye(e,t){-1===e.indexOf(t)&&e.push(t)}function ge(e){return[].slice.call(e)}function be(){return document.createElement("div")}function Ee(e){return["Element","Fragment"].some((function(t){return de(e,t)}))}function _e(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function we(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Oe(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var Te={isTouch:!1},Ie=0;function Ne(){Te.isTouch||(Te.isTouch=!0,window.performance&&document.addEventListener("mousemove",Se))}function Se(){var e=performance.now();e-Ie<20&&(Te.isTouch=!1,document.removeEventListener("mousemove",Se)),Ie=e}function Ae(){var e=document.activeElement;if(function(e){return!(!e||!e._tippy||e._tippy.reference!==e)}(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var Re="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",xe=/MSIE |Trident\//.test(Re),je=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Pe=Object.keys(je);function De(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,i=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:i),t}),{});return Object.assign({},e,{},t)}function Le(e,t){var n=Object.assign({},t,{content:he(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(De(Object.assign({},je,{plugins:t}))):Pe).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},je.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Me(e){var t=e.firstElementChild,n=ge(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}var ke=1,Ce=[],Ve=[];function Fe(e,t){var n,r,i,o,a,s,u,c,l,f=Le(e,Object.assign({},je,{},De((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),p=!1,d=!1,h=!1,v=!1,m=[],y=ve(Y,f.interactiveDebounce),g=ke++,b=(l=f.plugins).filter((function(e,t){return l.indexOf(e)===t})),E={id:g,reference:e,popper:be(),popperInstance:null,props:f,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)},setProps:function(t){if(!E.state.isDestroyed){L("onBeforeUpdate",[E,t]),W();var n=E.props,r=Le(e,Object.assign({},E.props,{},t,{ignoreAttributes:!0}));E.props=r,q(),n.interactiveDebounce!==r.interactiveDebounce&&(C(),y=ve(Y,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?me(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),k(),D(),O&&O(n,r),E.popperInstance&&(K(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),L("onAfterUpdate",[E,t])}},setContent:function(e){E.setProps({content:e})},show:function(){var e=E.state.isVisible,t=E.state.isDestroyed,n=!E.state.isEnabled,r=Te.isTouch&&!E.props.touch,i=pe(E.props.duration,0,je.duration);if(!(e||t||n||r||R().hasAttribute("disabled")||(L("onShow",[E],!1),!1===E.props.onShow(E)))){if(E.state.isVisible=!0,A()&&(w.style.visibility="visible"),D(),U(),E.state.isMounted||(w.style.transition="none"),A()){var o=j();_e([o.box,o.content],0)}var a,s,c;u=function(){if(E.state.isVisible&&!v){if(v=!0,w.offsetHeight,w.style.transition=E.props.moveTransition,A()&&E.props.animation){var e=j(),t=e.box,n=e.content;_e([t,n],i),we([t,n],"visible")}M(),k(),ye(Ve,E),E.state.isMounted=!0,L("onMount",[E]),E.props.animation&&A()&&function(e){H(e,(function(){E.state.isShown=!0,L("onShown",[E])}))}(i)}},s=E.props.appendTo,c=R(),(a=E.props.interactive&&s===je.appendTo||"parent"===s?c.parentNode:he(s,[c])).contains(w)||a.appendChild(w),K()}},hide:function(){var e=!E.state.isVisible,t=E.state.isDestroyed,n=!E.state.isEnabled,r=pe(E.props.duration,1,je.duration);if(!(e||t||n)&&(L("onHide",[E],!1),!1!==E.props.onHide(E))){if(E.state.isVisible=!1,E.state.isShown=!1,v=!1,p=!1,A()&&(w.style.visibility="hidden"),C(),B(),D(),A()){var i=j(),o=i.box,a=i.content;E.props.animation&&(_e([o,a],r),we([o,a],"hidden"))}M(),k(),E.props.animation?A()&&function(e,t){H(e,(function(){!E.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(r,E.unmount):E.unmount()}},hideWithInteractivity:function(e){x().addEventListener("mousemove",y),ye(Ce,y),y(e)},enable:function(){E.state.isEnabled=!0},disable:function(){E.hide(),E.state.isEnabled=!1},unmount:function(){E.state.isVisible&&E.hide(),E.state.isMounted&&(Z(),ee().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w),Ve=Ve.filter((function(e){return e!==E})),E.state.isMounted=!1,L("onHidden",[E]))},destroy:function(){E.state.isDestroyed||(E.clearDelayTimeouts(),E.unmount(),W(),delete e._tippy,E.state.isDestroyed=!0,L("onDestroy",[E]))}};if(!f.render)return E;var _=f.render(E),w=_.popper,O=_.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+E.id,E.popper=w,e._tippy=E,w._tippy=E;var T=b.map((function(e){return e.fn(E)})),I=e.hasAttribute("aria-expanded");return q(),k(),D(),L("onCreate",[E]),f.showOnCreate&&te(),w.addEventListener("mouseenter",(function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(e){E.props.interactive&&E.props.trigger.indexOf("mouseenter")>=0&&(x().addEventListener("mousemove",y),y(e))})),E;function N(){var e=E.props.touch;return Array.isArray(e)?e:[e,0]}function S(){return"hold"===N()[0]}function A(){var e;return!!(null==(e=E.props.render)?void 0:e.$$tippy)}function R(){return c||e}function x(){var e,t=R().parentNode;return t?(e=me(t)[0])&&e.ownerDocument||document:document}function j(){return Me(w)}function P(e){return E.state.isMounted&&!E.state.isVisible||Te.isTouch||a&&"focus"===a.type?0:pe(E.props.delay,e?0:1,je.delay)}function D(){w.style.pointerEvents=E.props.interactive&&E.state.isVisible?"":"none",w.style.zIndex=""+E.props.zIndex}function L(e,t,n){var r;void 0===n&&(n=!0),T.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n&&(r=E.props)[e].apply(r,t)}function M(){var t=E.props.aria;if(t.content){var n="aria-"+t.content,r=w.id;me(E.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(E.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function k(){!I&&E.props.aria.expanded&&me(E.props.triggerTarget||e).forEach((function(e){E.props.interactive?e.setAttribute("aria-expanded",E.state.isVisible&&e===R()?"true":"false"):e.removeAttribute("aria-expanded")}))}function C(){x().removeEventListener("mousemove",y),Ce=Ce.filter((function(e){return e!==y}))}function V(e){if(!(Te.isTouch&&(h||"mousedown"===e.type)||E.props.interactive&&w.contains(e.target))){if(R().contains(e.target)){if(Te.isTouch)return;if(E.state.isVisible&&E.props.trigger.indexOf("click")>=0)return}else L("onClickOutside",[E,e]);!0===E.props.hideOnClick&&(E.clearDelayTimeouts(),E.hide(),d=!0,setTimeout((function(){d=!1})),E.state.isMounted||B())}}function F(){h=!0}function $(){h=!1}function U(){var e=x();e.addEventListener("mousedown",V,!0),e.addEventListener("touchend",V,fe),e.addEventListener("touchstart",$,fe),e.addEventListener("touchmove",F,fe)}function B(){var e=x();e.removeEventListener("mousedown",V,!0),e.removeEventListener("touchend",V,fe),e.removeEventListener("touchstart",$,fe),e.removeEventListener("touchmove",F,fe)}function H(e,t){var n=j().box;function r(e){e.target===n&&(Oe(n,"remove",r),t())}if(0===e)return t();Oe(n,"remove",s),Oe(n,"add",r),s=r}function G(t,n,r){void 0===r&&(r=!1),me(E.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function q(){S()&&(G("touchstart",z,{passive:!0}),G("touchend",X,{passive:!0})),function(e){return e.split(/\s+/).filter(Boolean)}(E.props.trigger).forEach((function(e){if("manual"!==e)switch(G(e,z),e){case"mouseenter":G("mouseleave",X);break;case"focus":G(xe?"focusout":"blur",J);break;case"focusin":G("focusout",J)}}))}function W(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),m=[]}function z(e){var t,n=!1;if(E.state.isEnabled&&!Q(e)&&!d){var r="focus"===(null==(t=a)?void 0:t.type);a=e,c=e.currentTarget,k(),!E.state.isVisible&&function(e){return de(e,"MouseEvent")}(e)&&Ce.forEach((function(t){return t(e)})),"click"===e.type&&(E.props.trigger.indexOf("mouseenter")<0||p)&&!1!==E.props.hideOnClick&&E.state.isVisible?n=!0:te(e),"click"===e.type&&(p=!n),n&&!r&&ne(e)}}function Y(e){var t=e.target,n=R().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var r=ee().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:f}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,a=i.placement.split("-")[0],s=i.modifiersData.offset;if(!s)return!0;var u="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,l="right"===a?s.left.x:0,f="left"===a?s.right.x:0,p=t.top-r+u>o,d=r-t.bottom-c>o,h=t.left-n+l>o,v=n-t.right-f>o;return p||d||h||v}))})(r,e)&&(C(),ne(e))}}function X(e){Q(e)||E.props.trigger.indexOf("click")>=0&&p||(E.props.interactive?E.hideWithInteractivity(e):ne(e))}function J(e){E.props.trigger.indexOf("focusin")<0&&e.target!==R()||E.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||ne(e)}function Q(e){return!!Te.isTouch&&S()!==e.type.indexOf("touch")>=0}function K(){Z();var t=E.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,s=A()?Me(w).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||R()}:e,l=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(A()){var n=j().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];A()&&s&&l.push({name:"arrow",options:{element:s,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),E.popperInstance=le(c,w,Object.assign({},n,{placement:r,onFirstUpdate:u,modifiers:l}))}function Z(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function ee(){return ge(w.querySelectorAll("[data-tippy-root]"))}function te(e){E.clearDelayTimeouts(),e&&L("onTrigger",[E,e]),U();var t=P(!0),n=N(),i=n[0],o=n[1];Te.isTouch&&"hold"===i&&o&&(t=o),t?r=setTimeout((function(){E.show()}),t):E.show()}function ne(e){if(E.clearDelayTimeouts(),L("onUntrigger",[E,e]),E.state.isVisible){if(!(E.props.trigger.indexOf("mouseenter")>=0&&E.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=P(!1);t?i=setTimeout((function(){E.state.isVisible&&E.hide()}),t):o=requestAnimationFrame((function(){E.hide()}))}}else B()}}function $e(e,t){void 0===t&&(t={});var n=je.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ne,fe),window.addEventListener("blur",Ae);var r=Object.assign({},t,{plugins:n}),i=function(e){return Ee(e)?[e]:function(e){return de(e,"NodeList")}(e)?ge(e):Array.isArray(e)?e:ge(document.querySelectorAll(e))}(e).reduce((function(e,t){var n=t&&Fe(t,r);return n&&e.push(n),e}),[]);return Ee(e)?i[0]:i}$e.defaultProps=je,$e.setDefaultProps=function(e){Object.keys(e).forEach((function(t){je[t]=e[t]}))},$e.currentInput=Te;var Ue=function(e,t){void 0===t&&(t={});var n,r=e,i=[],o=t.overrides,a=[];function s(){i=r.map((function(e){return e.reference}))}function u(e){r.forEach((function(t){e?t.enable():t.disable()}))}function c(e){return r.map((function(t){var r=t.setProps;return t.setProps=function(i){r(i),t.reference===n&&e.setProps(i)},function(){t.setProps=r}}))}u(!1),s();var l,f,p,d={fn:function(){return{onDestroy:function(){u(!0)},onTrigger:function(e,t){var a=t.currentTarget,s=i.indexOf(a);if(a!==n){n=a;var u=(o||[]).concat("content").reduce((function(e,t){return e[t]=r[s].props[t],e}),{});e.setProps(Object.assign({},u,{getReferenceClientRect:"function"==typeof u.getReferenceClientRect?u.getReferenceClientRect:function(){return a.getBoundingClientRect()}}))}}}}},h=$e(be(),Object.assign({},(l=t,f=["overrides"],p=Object.assign({},l),f.forEach((function(e){delete p[e]})),p),{plugins:[d].concat(t.plugins||[]),triggerTarget:i})),v=h.setProps;return h.setProps=function(e){o=e.overrides||o,v(e)},h.setInstances=function(e){u(!0),a.forEach((function(e){return e()})),r=e,u(!1),s(),c(h),h.setProps({triggerTarget:i})},a=c(h),h};$e.setDefaultProps({animation:!1});const Be=$e;var He=n(2015),Ge=n.n(He),qe=n(2326);function We(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var ze="undefined"!=typeof window&&"undefined"!=typeof document;function Ye(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Xe(){return ze&&document.createElement("div")}function Je(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name.indexOf("tippy")>=0})),(null==(r=t.popperOptions)?void 0:r.modifiers)||[])})})}var Qe=ze?He.useLayoutEffect:He.useEffect;function Ke(e){var t=(0,He.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Ze(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var et={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||Ze(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&Ze(t,"remove",e.props.className)},onAfterUpdate:r}}};function tt(e){return function(t){var n=t.children,r=t.content,i=t.visible,o=t.singleton,a=t.render,s=t.reference,u=t.disabled,c=void 0!==u&&u,l=t.ignoreAttributes,f=void 0===l||l,p=(t.__source,t.__self,We(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),d=void 0!==i,h=void 0!==o,v=(0,He.useState)(!1),m=v[0],y=v[1],g=(0,He.useState)({}),b=g[0],E=g[1],_=(0,He.useState)(),w=_[0],O=_[1],T=Ke((function(){return{container:Xe(),renders:1}})),I=Object.assign({ignoreAttributes:f},p,{content:T.container});d&&(I.trigger="manual",I.hideOnClick=!1),h&&(c=!0);var N=I,S=I.plugins||[];a&&(N=Object.assign({},I,{plugins:h?[].concat(S,[{fn:function(){return{onTrigger:function(e,t){var n=o.data.children.find((function(e){return e.instance.reference===t.currentTarget})).content;O(n)}}}}]):S,render:function(){return{popper:T.container}}}));var A=[s].concat(n?[n.type]:[]);return Qe((function(){var t=s;s&&s.hasOwnProperty("current")&&(t=s.current);var n=e(t||T.ref||Xe(),Object.assign({},N,{plugins:[et].concat(I.plugins||[])}));return T.instance=n,c&&n.disable(),i&&n.show(),h&&o.hook({instance:n,content:r,props:N}),y(!0),function(){n.destroy(),null==o||o.cleanup(n)}}),A),Qe((function(){if(1!==T.renders){var e=T.instance;e.setProps(Je(e.props,N)),c?e.disable():e.enable(),d&&(i?e.show():e.hide()),h&&o.hook({instance:e,content:r,props:N})}else T.renders++})),Qe((function(){var e;if(a){var t=T.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[],[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;b.placement===n.placement&&b.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&b.escaped===(null==r?void 0:r.hasPopperEscaped)||E({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[b.placement,b.referenceHidden,b.escaped].concat(A)),Ge().createElement(Ge().Fragment,null,n?(0,He.cloneElement)(n,{ref:function(e){T.ref=e,Ye(n.ref,e)}}):null,m&&(0,qe.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(b),w,T.instance):r,T.container))}}function nt(e){return function(t){var n=void 0===t?{}:t,r=n.disabled,i=void 0!==r&&r,o=n.overrides,a=void 0===o?[]:o,s=(0,He.useState)(!1),u=s[0],c=s[1],l=Ke({children:[],renders:1});return Qe((function(){if(u){var t=l.children,n=l.sourceData;if(n){var r=e(t.map((function(e){return e.instance})),Object.assign({},n.props,{popperOptions:n.instance.props.popperOptions,overrides:a,plugins:[et].concat(n.props.plugins||[])}));return l.instance=r,i&&r.disable(),function(){r.destroy(),l.children=t.filter((function(e){return!e.instance.state.isDestroyed}))}}}else c(!0)}),[u]),Qe((function(){if(u)if(1!==l.renders){var e=l.children,t=l.instance,n=l.sourceData;if(t&&n){var r=n.props,o=(r.content,We(r,["content"]));t.setProps(Je(t,Object.assign({},o,{overrides:a}))),t.setInstances(e.map((function(e){return e.instance}))),i?t.disable():t.enable()}}else l.renders++})),(0,He.useMemo)((function(){return[{data:l,hook:function(e){l.sourceData=e},cleanup:function(){l.sourceData=null}},{hook:function(e){l.children.find((function(t){var n=t.instance;return e.instance===n}))||l.children.push(e)},cleanup:function(e){l.children=l.children.filter((function(t){return t.instance!==e}))}}]}),[])}}var rt=function(e,t){return(0,He.forwardRef)((function(n,r){var i=n.children,o=We(n,["children"]);return Ge().createElement(e,Object.assign({},t,o),i?(0,He.cloneElement)(i,{ref:function(e){Ye(r,e),Ye(i.ref,e)}}):null)}))},it=nt(Ue);const ot=rt(tt(Be),{render:function(){return""}})},4487:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var a=i.apply(null,n);a&&e.push(a)}else if("object"===o)for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},2570:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(380);t.tarjan=r.tarjan},380:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(2935));t.tarjan=function(e){var t=0,n=[],r={},o=[];function a(s){var u=r[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),[...e.successors(s).keys()].forEach((function(e){i.default.has(r,e)?r[e].onStack&&(u.lowlink=Math.min(u.lowlink,r[e].index)):(a(e),u.lowlink=Math.min(u.lowlink,r[e].lowlink))})),u.lowlink===u.index){var c,l=[];do{c=n.pop(),r[c].onStack=!1,l.push(c)}while(s!==c);o.push(l)}}return[...e.nodes.keys()].forEach((function(e){i.default.has(r,e)||a(e)})),o}},2842:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphEdge=class{constructor(e,t,n){this.sourceId=e,this.targetId=t,this.sourceId=e,this.targetId=t,this.attr=n}stringify(){let e="";return e=this.attr.stringify&&"function"==typeof this.attr.stringify?this.attr.stringify():JSON.stringify(this.attr),e}static fromObject(e,t){if(!e.hasOwnProperty("sourceId"))throw Error("missing source id");if(!e.hasOwnProperty("targetId"))throw Error("missing target id");return{sourceId:e.sourceId,targetId:e.targetId,edge:t(e.edge)}}static edgeId(e,t){return`${e}->${t}`}static parseEdgeId(e){const t=e.split("->");return 2===t.length?{sourceId:t[0],targetId:t[1]}:{sourceId:"",targetId:""}}get nodes(){return[this.sourceId,this.targetId]}},t.genericParseEdge=function(e){return 0===Object.keys(e).length&&e.constructor===Object||"object"!=typeof e?e:JSON.parse(e)},t.genericEdgeToJson=function(e){return e}},7509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}t.CyclicError=n;class r extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}t.NodeDoesntExist=r},3871:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(1895),o=n(1895),a=n(1895),s=r(n(2935)),u=n(2570),c=n(7287),l=n(2842);class f{constructor(e=[],t=[]){this._nodes=new Map,this._edges=new Map,e.forEach((e=>this.setNode(e.id,e.node))),t.forEach((e=>this.setEdge(e.sourceId,e.targetId,e.edge)))}create(e=[],t=[]){return new f(e,t)}get _userNodes(){return this._transformToUserNodeMap(this._nodes)}get _userEdges(){return this._transformToUserEdgeMap(this._edges)}_transformToUserNodeMap(e){let t=new Map;for(const[n,r]of e.entries())t.set(n,r.attr);return t}_transformToUserEdgeMap(e){let t=new Map;for(const[n,r]of e.entries())t.set(n,r.attr);return t}setNode(e,t,n=!0){if(this.hasNode(e)){if(n){let n=this._node(e);n&&(n.attr=t)}}else{let n=new i.GraphNode(e,t);this._nodes.set(e,n)}return this}setEdge(e,t,n,r=!0){if(this.hasEdge(e,t)){if(r){let r=this._edge(e,t);return r&&(r.attr=n),this}return this}const i=o.GraphEdge.edgeId(e,t);let a=new o.GraphEdge(e,t,n);if(this._edges.set(i,a),!this._nodes.has(e))throw Error("source node does not exist");{let t=this._nodes.get(e);void 0!==t&&t.setOutEdge(i)}if(!this._nodes.has(t))throw Error("target node does not exist");{let e=this._nodes.get(t);void 0!==e&&e.setInEdge(i)}return this}setNodes(e,t=!0){return e.forEach((e=>{if(this.hasNode(e.id)){if(t){let t=this._node(e.id);t&&(t.attr=e.node)}}else this.setNode(e.id,e.node)})),this}setEdges(e,t=!0){return e.forEach((e=>{if(this.hasEdge(e.sourceId,e.targetId)){if(t){let t=this._edge(e.sourceId,e.targetId);t&&(t.attr=e.edge)}}else this.setEdge(e.sourceId,e.targetId,e.edge)})),this}hasNode(e){return this._nodes.has(e)}hasEdge(e,t){return this._edges.has(o.GraphEdge.edgeId(e,t))}node(e){var t;return null===(t=this._nodes.get(e))||void 0===t?void 0:t.attr}edge(e,t){var n;return null===(n=this._edges.get(o.GraphEdge.edgeId(e,t)))||void 0===n?void 0:n.attr}_node(e){return this._nodes.get(e)}_edge(e,t){return this._edges.get(o.GraphEdge.edgeId(e,t))}_edgeById(e){return this._edges.get(e)}edgeNodesById(e){var t,n;return{sourceId:null===(t=this._edges.get(e))||void 0===t?void 0:t.sourceId,targetId:null===(n=this._edges.get(e))||void 0===n?void 0:n.targetId}}get nodes(){return this._userNodes}get graphNodes(){return this._nodes}get edges(){return this._userEdges}get graphEdges(){return this._edges}nodeCount(){return[...this._nodes.keys()].length}edgeCount(){return[...this._edges.keys()].length}sources(){return[...this._nodes.values()].filter((e=>e.isSource())).map((e=>e.attr))}sinks(){return[...this._nodes.values()].filter((e=>e.isSink())).map((e=>e.attr))}deleteNode(e){const t=this._node(e);void 0!==t&&(t.nodeEdges.forEach((e=>{const{sourceId:t,targetId:n}=o.GraphEdge.parseEdgeId(e);this.deleteEdge(t,n)})),this._nodes.delete(e))}deleteEdge(e,t){const n=o.GraphEdge.edgeId(e,t);if(void 0!==this._edges.get(n)){let r=this._nodes.get(e);void 0!==r&&r.deleteEdge(n);let i=this._nodes.get(t);void 0!==i&&i.deleteEdge(n)}this._edges.delete(n)}inEdges(e){return this._transformToUserEdgeMap(this._inEdges(e))}outEdges(e){return this._transformToUserEdgeMap(this._outEdges(e))}nodeEdges(e){return this._transformToUserEdgeMap(this._nodeEdges(e))}_inEdges(e){let t=new Map;const n=this._node(e);return void 0===n||n.inEdges.forEach((e=>{let{sourceId:n,targetId:r}=o.GraphEdge.parseEdgeId(e),i=this._edge(n,r);void 0!==i&&t.set(e,i)})),t}_outEdges(e){let t=new Map;const n=this._node(e);return void 0===n||n.outEdges.forEach((e=>{let{sourceId:n,targetId:r}=o.GraphEdge.parseEdgeId(e),i=this._edge(n,r);void 0!==i&&t.set(e,i)})),t}_nodeEdges(e){let t=new Map;const n=this._node(e);return void 0===n||n.nodeEdges.forEach((e=>{let{sourceId:n,targetId:r}=o.GraphEdge.parseEdgeId(e),i=this._edge(n,r);void 0!==i&&t.set(e,i)})),t}successors(e,t=p){return this._transformToUserNodeMap(this._successors(e,t))}predecessors(e,t=p){return this._transformToUserNodeMap(this._predecessors(e,t))}neighbors(e,t=p){return this._transformToUserNodeMap(this._neighbors(e,t))}_successors(e,t=p){let n=new Map;const r=this._node(e);return void 0===r||r.outEdges.forEach((e=>{var r;const i=null===(r=this._edges.get(e))||void 0===r?void 0:r.attr;if(null!=i&&t(i)){const{sourceId:t,targetId:r}=o.GraphEdge.parseEdgeId(e),i=this._node(r);r&&void 0!==i&&n.set(r,i)}})),n}_predecessors(e,t=p){let n=new Map;const r=this._node(e);return void 0===r||r.inEdges.forEach((e=>{var r;const i=null===(r=this._edges.get(e))||void 0===r?void 0:r.attr;if(null!=i&&t(i)){const{sourceId:t,targetId:r}=o.GraphEdge.parseEdgeId(e),i=this._node(t);t&&void 0!==i&&n.set(t,i)}})),n}_neighbors(e,t=p){return new Map([...this._predecessors(e,t),...this._successors(e,t)])}successorsSubgraph(e,t=p){return this._buildSubgraphs(e,t,"successors")}_alreadyProcessed(e,t){for(const n of t)if(n.hasNode(e))return!0;return!1}_buildSubgraphs(e,t,n){let r=[];if(!Array.isArray(e))return this._buildSubgraph(e,t,n);if(e.forEach((e=>{this._alreadyProcessed(e,r)||r.push(this._buildSubgraph(e,t,n))})),1===r.length)return r[0];let i=this.create();return r.length&&(i=r[0].merge(r)),i}_buildSubgraph(e,t,n){let r=this.create(),i=this._node(e);if(!i)throw new Error("Node does not exist on graph");return r.setNode(e,i.attr),"successors"===n?this._successorsSubgraphUtil(e,r,{},t):this._predecessorsSubgraphUtil(e,r,{},t)}_successorsSubgraphUtil(e,t,n={},r){const i=[...this._successors(e,r).keys()]||[];return i.length>0&&!n[e]&&i.forEach((i=>{n[e]=!0;const a=this._nodes.get(i),s=this._edges.get(o.GraphEdge.edgeId(e,i));if(void 0!==a&&null!=s)return t.setNode(i,a.attr),t.setEdge(e,i,s.attr),this._successorsSubgraphUtil(i,t,n,r)})),t}successorsArray(e,t=p){const n=s.default.uniq(this._successorsArrayUtil(e,[],{},t));let r=[];return n.forEach((e=>{let t=this.node(e);null!=t&&r.push(t)})),r}_successorsArrayUtil(e,t=[],n={},r=p){const i=[...this._successors(e,r).keys()]||[];return i.length>0&&!n[e]&&i.forEach((i=>(n[e]=!0,t.push(i),this._successorsArrayUtil(i,t,n,r)))),t}successorsLayers(e,t=p,n="fromSource"){let r=this.successorsSubgraph(e,t);if(this.isCyclic(r))throw new Error("cyclic dependency");let i=[];return i[0]=[e],d(this._successorsLayersUtil([e],i,0,t),n)}_successorsLayersUtil(e,t,n,r=p){if(e.length>0){let e=n+1;return t.push([]),t[n].forEach((n=>{const i=[...this.successors(n,r).keys()];t[e]=t[e].concat(i)})),this._successorsLayersUtil(t[e],t,e,r)}return t}predecessorsSubgraph(e,t=p){return this._buildSubgraphs(e,t,"predecessors")}_predecessorsSubgraphUtil(e,t,n={},r=p){const i=[...this._predecessors(e,r).keys()]||[];return i.length>0&&!n[e]&&i.forEach((i=>{n[e]=!0;const a=this._nodes.get(i),s=this._edges.get(o.GraphEdge.edgeId(i,e));if(void 0!==a&&null!=s)return t.setNode(i,a.attr),t.setEdge(i,e,s.attr),this._predecessorsSubgraphUtil(i,t,n,r)})),t}predecessorsArray(e,t=p){const n=s.default.uniq(this._predecessorsArrayUtil(e,[],{},t));let r=[];return n.forEach((e=>{let t=this.node(e);null!=t&&r.push(t)})),r}_predecessorsArrayUtil(e,t=[],n={},r=p){const i=[...this._predecessors(e,r).keys()]||[];return i.length>0&&!n[e]&&i.forEach((i=>(n[e]=!0,t.push(i),this._predecessorsArrayUtil(i,t,n,r)))),t}predecessorsLayers(e,t=p,n="fromSource"){let r=this.predecessorsSubgraph(e,t);if(this.isCyclic(r))throw new Error("cyclic sub-graph");let i=[];return i[0]=[e],d(this._predecessorsLayersUtil([e],i,0,t),n)}_predecessorsLayersUtil(e,t,n,r=p){if(e.length>0){let e=n+1;return t.push([]),t[n].forEach((n=>{const i=[...this.predecessors(n,r).keys()];t[e]=t[e].concat(i)})),this._predecessorsLayersUtil(t[e],t,e,r)}return t}toposort(e=!1){let t=this._toposort().map((e=>this.node(e)));return t=s.default.compact(t),e?t.reverse():t}_transformEdges(){let e=[];return this._edges.forEach((t=>{e.push([t.sourceId,t.targetId])})),e}_toposort(){const e=[...this._nodes.keys()],t=this._transformEdges();var n=e.length,r=new Array(n),i={},o=n,s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),u=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!u.has(e[0])||!u.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));o--;)i[o]||c(e[o],o,new Set);return r;function c(e,t,o){if(o.has(e)){var l;try{l=", node was:"+JSON.stringify(e)}catch(e){l=""}throw new a.CyclicError("Cyclic dependency"+l)}if(!u.has(e))throw new Error("Found unknown node. Make sure to provide all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var f=s.get(e)||new Set;if(t=(f=Array.from(f)).length){o.add(e);do{var p=f[--t];c(p,u.get(p),o)}while(t);o.delete(e)}r[--n]=e}}}isCyclic(e=this){try{e.toposort()}catch(e){if(e instanceof a.CyclicError)return!0;throw e}return!1}findCycles(e=this){return t=e,s.default.filter(u.tarjan(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}));var t}merge(e){let t=this;return e.forEach((e=>{var n,r;for(let[n,r]of e.nodes)t.setNode(n,r);for(let[i,o]of e.edges){const s=null===(n=e._edges.get(i))||void 0===n?void 0:n.sourceId,u=null===(r=e._edges.get(i))||void 0===r?void 0:r.targetId;if(t.edges.has(i)&&s&&u)t.setEdge(s,u,o);else{if(!(s&&u&&t.hasNode(s)&&t.hasNode(u)))throw a.NodeDoesntExist;t.setEdge(s,u,o)}}})),t}allPaths(e,t){return this._allPaths(e,t,[],[])}_allPaths(e,t,n,r,i={}){return i[e]=!0,n.push(e),e===t?r.push(s.default.cloneDeep(n)):([...this._successors(e).keys()]||[]).forEach((e=>{i[e]||this._allPaths(e,t,n,r,i)})),n.pop(),i[e]=!1,r}toJson(e){return e?this._toJson(e,"object"):this._toJson(this,"object")}stringify(e){return e?this._toJson(e,"string"):this._toJson(this,"string")}static parse(e,t=c.genericParseNode,n=l.genericParseEdge){return this._fromJson(e,t,n)}_toJson(e,t){let n=[];for(let[r,i]of e.nodes.entries()){const i=e._node(r);if(i){let e;e="object"===t?i.attr.toJson&&"function"==typeof i.attr.toJson?i.attr.toJson():c.genericNodeToJson(i.attr):i.stringify(),n.push({id:r,node:e})}}let r=[];for(let[n,i]of e.edges.entries()){const i=e._edgeById(n);if(i){let e;e="object"===t?i.attr.toJson&&"function"==typeof i.attr.toJson?i.attr.toJson():c.genericNodeToJson(i.attr):i.stringify(),r.push({sourceId:i.sourceId,targetId:i.targetId,edge:e})}}let i={nodes:n,edges:r};return"object"===t?i:JSON.stringify(i)}static _fromJson(e,t,n){const r="string"==typeof e?JSON.parse(e):e;let a=new f;if(!r.hasOwnProperty("nodes")||!r.hasOwnProperty("edges"))throw Error("missing properties on JSON. Should contain nodes: {id: string, node: N}[], and edges: {sourceId: string, targetId: string, edge:E}[]");return r.nodes.forEach((e=>{const n=i.GraphNode.fromObject(e,t);a.setNode(n.id,n.node)})),r.edges.forEach((e=>{const t=o.GraphEdge.fromObject(e,n);a.setEdge(t.sourceId,t.targetId,t.edge)})),a}bfs(){}dfs(){}}function p(){return!0}function d(e,t){let n=[],r=[];e=e.reverse();let i=0;return e.forEach((e=>{e.length>0&&(n.push([]),e.forEach((e=>{-1==r.indexOf(e)&&(r.push(e),n[i].push(e))})),i++)})),"fromSource"===t?n.reverse():n}t.Graph=f},1895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2842);t.GraphEdge=r.GraphEdge;var i=n(7287);t.GraphNode=i.GraphNode;var o=n(7509);t.CyclicError=o.CyclicError,t.NodeDoesntExist=o.NodeDoesntExist;var a=n(3871);t.Graph=a.Graph},7287:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(2935),o=r(n(2935));t.GraphNode=class{constructor(e,t,n,r){this.id=e,this.attr=t,this._inEdges=n||[],this._outEdges=r||[]}setInEdge(e){this._inEdges.push(e)}setOutEdge(e){this._outEdges.push(e)}deleteEdge(e){o.default.remove(this._inEdges,(function(t){return t===e})),o.default.remove(this._outEdges,(function(t){return t===e}))}get inEdges(){return this._inEdges}get outEdges(){return this._outEdges}get nodeEdges(){return this._inEdges.concat(this._outEdges)}isSource(){return 0===this._inEdges.length&&this._outEdges.length>0}isSink(){return this._inEdges.length>0&&0===this._outEdges.length}equals(e){return this.id===e.id&&i.isEqual(this.attr,e.attr)}stringify(){let e="";return e=this.attr.stringify&&"function"==typeof this.attr.stringify?this.attr.stringify():JSON.stringify(this.attr),e}static fromObject(e,t){if(!e.hasOwnProperty("id"))throw Error("missing object id");return{id:e.id,node:t(e.node)}}},t.genericParseNode=function(e){return 0===Object.keys(e).length&&e.constructor===Object||"object"!=typeof e?e:JSON.parse(e)},t.genericNodeToJson=function(e){return e}},2607:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,n,r=d(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=l(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,i=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function E(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function _(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];_.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function O(e,n){return new Promise((function(r,o){var a=new b(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new _(i,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}O.polyfill=!0,e.fetch||(e.fetch=O,e.Headers=p,e.Request=b,e.Response=_),t.Headers=p,t.Request=b,t.Response=_,t.fetch=O,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},3706:(e,t,n)=>{"use strict";var r=n(6909),i=n(1135),o=n(2542),a=n(5482),s=n(5416);(e.exports=function(e,t){var n,i,u,c,l;return arguments.length<2||"string"!=typeof e?(c=t,t=e,e=null):c=arguments[2],r(e)?(n=s.call(e,"c"),i=s.call(e,"e"),u=s.call(e,"w")):(n=u=!0,i=!1),l={value:t,configurable:n,enumerable:i,writable:u},c?o(a(c),l):l}).gs=function(e,t,n){var u,c,l,f;return"string"!=typeof e?(l=n,n=t,t=e,e=null):l=arguments[3],r(t)?i(t)?r(n)?i(n)||(l=n,n=void 0):n=void 0:(l=t,t=n=void 0):t=void 0,r(e)?(u=s.call(e,"c"),c=s.call(e,"e")):(u=!0,c=!1),f={get:t,set:n,configurable:u,enumerable:c},l?o(a(l),f):f}},9936:e=>{"use strict";e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");return t=void 0===t?"_":t,e.replace(/([a-z\d])([A-Z])/g,"$1"+t+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+t+"$2").toLowerCase()}},4233:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=i(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var i=o(n[0]);i!==n[0]&&(t[n[0]]=i)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var u=a[s];e=e.replace(new RegExp(u,"g"),t[u])}return e}(e)}}},5740:(e,t,n)=>{"use strict";var r=n(3393),i=n(2047),o=n(8948),a=Array.prototype.indexOf,s=Object.prototype.hasOwnProperty,u=Math.abs,c=Math.floor;e.exports=function(e){var t,n,l,f;if(!r(e))return a.apply(this,arguments);for(n=i(o(this).length),l=arguments[1],t=l=isNaN(l)?0:l>=0?c(l):i(this.length)-c(u(l));t<n;++t)if(s.call(this,t)&&(f=this[t],r(f)))return t;return-1}},3583:(e,t,n)=>{"use strict";e.exports=n(6070)()?Array.from:n(6302)},6070:e=>{"use strict";e.exports=function(){var e,t,n=Array.from;return"function"==typeof n&&(t=n(e=["raz","dwa"]),Boolean(t&&t!==e&&"dwa"===t[1]))}},6302:(e,t,n)=>{"use strict";var r=n(4711).iterator,i=n(236),o=n(474),a=n(2047),s=n(529),u=n(8948),c=n(9340),l=n(9694),f=Array.isArray,p=Function.prototype.call,d={configurable:!0,enumerable:!0,writable:!0,value:null},h=Object.defineProperty;e.exports=function(e){var t,n,v,m,y,g,b,E,_,w,O=arguments[1],T=arguments[2];if(e=Object(u(e)),c(O)&&s(O),this&&this!==Array&&o(this))t=this;else{if(!O){if(i(e))return 1!==(y=e.length)?Array.apply(null,e):((m=new Array(1))[0]=e[0],m);if(f(e)){for(m=new Array(y=e.length),n=0;n<y;++n)m[n]=e[n];return m}}m=[]}if(!f(e))if(void 0!==(_=e[r])){for(b=s(_).call(e),t&&(m=new t),E=b.next(),n=0;!E.done;)w=O?p.call(O,T,E.value,n):E.value,t?(d.value=w,h(m,n,d)):m[n]=w,E=b.next(),++n;y=n}else if(l(e)){for(y=e.length,t&&(m=new t),n=0,v=0;n<y;++n)w=e[n],n+1<y&&(g=w.charCodeAt(0))>=55296&&g<=56319&&(w+=e[++n]),w=O?p.call(O,T,w,v):w,t?(d.value=w,h(m,v,d)):m[v]=w,++v;y=v}if(void 0===y)for(y=a(e.length),t&&(m=new t(y)),n=0;n<y;++n)w=O?p.call(O,T,e[n],n):e[n],t?(d.value=w,h(m,n,d)):m[n]=w;return t&&(d.value=null,m.length=y),m}},8017:(e,t,n)=>{"use strict";var r=n(3583),i=Array.isArray;e.exports=function(e){return i(e)?e:r(e)}},3678:(e,t,n)=>{"use strict";var r=n(2542),i=n(6702),o=n(9340),a=Error.captureStackTrace;e.exports=function(t){var n=new Error(t),s=arguments[1],u=arguments[2];return o(u)||i(s)&&(u=s,s=null),o(u)&&r(n,u),o(s)&&(n.code=s),a&&a(n,e.exports),n}},860:(e,t,n)=>{"use strict";var r,i,o,a,s,u=n(2047),c=function(e,t){return t};try{Object.defineProperty(c,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch(e){}1===c.length?(r={configurable:!0,writable:!1,enumerable:!1},i=Object.defineProperty,e.exports=function(e,t){return t=u(t),e.length===t?e:(r.value=t,i(e,"length",r))}):(a=n(559),s=[],o=function(e){var t,n=0;if(s[e])return s[e];for(t=[];e--;)t.push("a"+(++n).toString(36));return new Function("fn","return function ("+t.join(", ")+") { return fn.apply(this, arguments); };")},e.exports=function(e,t){var n;if(t=u(t),e.length===t)return e;n=o(t)(e);try{a(n,e)}catch(e){}return n})},236:e=>{"use strict";var t=Object.prototype.toString,n=t.call(function(){return arguments}());e.exports=function(e){return t.call(e)===n}},474:e=>{"use strict";var t=Object.prototype.toString,n=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(e){return"function"==typeof e&&n(t.call(e))}},7469:e=>{"use strict";e.exports=function(){}},6157:(e,t,n)=>{"use strict";e.exports=n(9700)()?Math.sign:n(7240)},9700:e=>{"use strict";e.exports=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}},7240:e=>{"use strict";e.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:e>0?1:-1}},3393:(e,t,n)=>{"use strict";e.exports=n(6280)()?Number.isNaN:n(5620)},6280:e=>{"use strict";e.exports=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34)}},5620:e=>{"use strict";e.exports=function(e){return e!=e}},1100:(e,t,n)=>{"use strict";var r=n(6157),i=Math.abs,o=Math.floor;e.exports=function(e){return isNaN(e)?0:0!==(e=Number(e))&&isFinite(e)?r(e)*o(i(e)):e}},2047:(e,t,n)=>{"use strict";var r=n(1100),i=Math.max;e.exports=function(e){return i(0,r(e))}},9009:(e,t,n)=>{"use strict";var r=n(529),i=n(8948),o=Function.prototype.bind,a=Function.prototype.call,s=Object.keys,u=Object.prototype.propertyIsEnumerable;e.exports=function(e,t){return function(n,c){var l,f=arguments[2],p=arguments[3];return n=Object(i(n)),r(c),l=s(n),p&&l.sort("function"==typeof p?o.call(p,n):void 0),"function"!=typeof e&&(e=l[e]),a.call(e,l,(function(e,r){return u.call(n,e)?a.call(c,f,n[e],e,n,r):t}))}}},2542:(e,t,n)=>{"use strict";e.exports=n(1013)()?Object.assign:n(1113)},1013:e=>{"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},1113:(e,t,n)=>{"use strict";var r=n(679),i=n(8948),o=Math.max;e.exports=function(e,t){var n,a,s,u=o(arguments.length,2);for(e=Object(i(e)),s=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},a=1;a<u;++a)r(t=arguments[a]).forEach(s);if(void 0!==n)throw n;return e}},9483:(e,t,n)=>{"use strict";e.exports=n(9009)("forEach")},5865:e=>{"use strict";e.exports=function(e){return"function"==typeof e}},6702:(e,t,n)=>{"use strict";var r=n(9340),i={function:!0,object:!0};e.exports=function(e){return r(e)&&i[typeof e]||!1}},9340:(e,t,n)=>{"use strict";var r=n(7469)();e.exports=function(e){return e!==r&&null!==e}},679:(e,t,n)=>{"use strict";e.exports=n(174)()?Object.keys:n(1414)},174:e=>{"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},1414:(e,t,n)=>{"use strict";var r=n(9340),i=Object.keys;e.exports=function(e){return i(r(e)?Object(e):e)}},5120:(e,t,n)=>{"use strict";var r=n(529),i=n(9483),o=Function.prototype.call;e.exports=function(e,t){var n={},a=arguments[2];return r(t),i(e,(function(e,r,i,s){n[r]=o.call(t,a,e,r,i,s)})),n}},559:(e,t,n)=>{"use strict";var r=n(8948),i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols;e.exports=function(e,t){var n,u=Object(r(t));if(e=Object(r(e)),a(u).forEach((function(r){try{i(e,r,o(t,r))}catch(e){n=e}})),"function"==typeof s&&s(u).forEach((function(r){try{i(e,r,o(t,r))}catch(e){n=e}})),void 0!==n)throw n;return e}},5482:(e,t,n)=>{"use strict";var r=n(9340),i=Array.prototype.forEach,o=Object.create;e.exports=function(e){var t=o(null);return i.call(arguments,(function(e){r(e)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(e),t)})),t}},8758:e=>{"use strict";var t=Array.prototype.forEach,n=Object.create;e.exports=function(e){var r=n(null);return t.call(arguments,(function(e){r[e]=!0})),r}},529:e=>{"use strict";e.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}},8948:(e,t,n)=>{"use strict";var r=n(9340);e.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}},3630:(e,t,n)=>{"use strict";var r=n(8948),i=n(3122);e.exports=function(e){return i(r(e))}},3122:(e,t,n)=>{"use strict";var r=n(5865);e.exports=function(e){try{return e&&r(e.toString)?e.toString():String(e)}catch(e){throw new TypeError("Passed argument cannot be stringifed")}}},779:(e,t,n)=>{"use strict";var r=n(5865);e.exports=function(e){try{return e&&r(e.toString)?e.toString():String(e)}catch(e){return"<Non-coercible to string value>"}}},5416:(e,t,n)=>{"use strict";e.exports=n(6479)()?String.prototype.contains:n(999)},6479:e=>{"use strict";var t="razdwatrzy";e.exports=function(){return"function"==typeof t.contains&&!0===t.contains("dwa")&&!1===t.contains("foo")}},999:e=>{"use strict";var t=String.prototype.indexOf;e.exports=function(e){return t.call(this,e,arguments[1])>-1}},9694:e=>{"use strict";var t=Object.prototype.toString,n=t.call("");e.exports=function(e){return"string"==typeof e||e&&"object"==typeof e&&(e instanceof String||t.call(e)===n)||!1}},5160:(e,t,n)=>{"use strict";var r=n(779),i=/[\n\r\u2028\u2029]/g;e.exports=function(e){var t=r(e);return t.length>100&&(t=t.slice(0,99)+"…"),t.replace(i,(function(e){return JSON.stringify(e).slice(1,-1)}))}},4711:(e,t,n)=>{"use strict";e.exports=n(7214)()?n(5596).Symbol:n(8076)},7214:(e,t,n)=>{"use strict";var r=n(5596),i={object:!0,symbol:!0};e.exports=function(){var e,t=r.Symbol;if("function"!=typeof t)return!1;e=t("test symbol");try{String(e)}catch(e){return!1}return!!i[typeof t.iterator]&&!!i[typeof t.toPrimitive]&&!!i[typeof t.toStringTag]}},3912:e=>{"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},5926:(e,t,n)=>{"use strict";var r=n(3706),i=Object.create,o=Object.defineProperty,a=Object.prototype,s=i(null);e.exports=function(e){for(var t,n,i=0;s[e+(i||"")];)++i;return s[e+=i||""]=!0,o(a,t="@@"+e,r.gs(null,(function(e){n||(n=!0,o(this,t,r(e)),n=!1)}))),t}},8308:(e,t,n)=>{"use strict";var r=n(3706),i=n(5596).Symbol;e.exports=function(e){return Object.defineProperties(e,{hasInstance:r("",i&&i.hasInstance||e("hasInstance")),isConcatSpreadable:r("",i&&i.isConcatSpreadable||e("isConcatSpreadable")),iterator:r("",i&&i.iterator||e("iterator")),match:r("",i&&i.match||e("match")),replace:r("",i&&i.replace||e("replace")),search:r("",i&&i.search||e("search")),species:r("",i&&i.species||e("species")),split:r("",i&&i.split||e("split")),toPrimitive:r("",i&&i.toPrimitive||e("toPrimitive")),toStringTag:r("",i&&i.toStringTag||e("toStringTag")),unscopables:r("",i&&i.unscopables||e("unscopables"))})}},8725:(e,t,n)=>{"use strict";var r=n(3706),i=n(7914),o=Object.create(null);e.exports=function(e){return Object.defineProperties(e,{for:r((function(t){return o[t]?o[t]:o[t]=e(String(t))})),keyFor:r((function(e){var t;for(t in i(e),o)if(o[t]===e)return t}))})}},8076:(e,t,n)=>{"use strict";var r,i,o,a=n(3706),s=n(7914),u=n(5596).Symbol,c=n(5926),l=n(8308),f=n(8725),p=Object.create,d=Object.defineProperties,h=Object.defineProperty;if("function"==typeof u)try{String(u()),o=!0}catch(e){}else u=null;i=function(e){if(this instanceof i)throw new TypeError("Symbol is not a constructor");return r(e)},e.exports=r=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return o?u(t):(n=p(i.prototype),t=void 0===t?"":String(t),d(n,{__description__:a("",t),__name__:a("",c(t))}))},l(r),f(r),d(i.prototype,{constructor:a(r),toString:a("",(function(){return this.__name__}))}),d(r.prototype,{toString:a((function(){return"Symbol ("+s(this).__description__+")"})),valueOf:a((function(){return s(this)}))}),h(r.prototype,r.toPrimitive,a("",(function(){var e=s(this);return"symbol"==typeof e?e:e.toString()}))),h(r.prototype,r.toStringTag,a("c","Symbol")),h(i.prototype,r.toStringTag,a("c",r.prototype[r.toStringTag])),h(i.prototype,r.toPrimitive,a("c",r.prototype[r.toPrimitive]))},7914:(e,t,n)=>{"use strict";var r=n(3912);e.exports=function(e){if(!r(e))throw new TypeError(e+" is not a symbol");return e}},4697:(e,t,n)=>{"use strict";var r,i,o,a,s,u,c,l=n(3706),f=n(529),p=Function.prototype.apply,d=Function.prototype.call,h=Object.create,v=Object.defineProperty,m=Object.defineProperties,y=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};i=function(e,t){var n,i;return f(t),i=this,r.call(this,e,n=function(){o.call(i,e,n),p.call(t,this,arguments)}),n.__eeOnceListener__=t,this},s={on:r=function(e,t){var n;return f(t),y.call(this,"__ee__")?n=this.__ee__:(n=g.value=h(null),v(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:i,off:o=function(e,t){var n,r,i,o;if(f(t),!y.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(o=0;i=r[o];++o)i!==t&&i.__eeOnceListener__!==t||(2===r.length?n[e]=r[o?0:1]:r.splice(o,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:a=function(e){var t,n,r,i,o;if(y.call(this,"__ee__")&&(i=this.__ee__[e]))if("object"==typeof i){for(n=arguments.length,o=new Array(n-1),t=1;t<n;++t)o[t-1]=arguments[t];for(i=i.slice(),t=0;r=i[t];++t)p.call(r,this,o)}else switch(arguments.length){case 1:d.call(i,this);break;case 2:d.call(i,this,arguments[1]);break;case 3:d.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),t=1;t<n;++t)o[t-1]=arguments[t];p.call(i,this,o)}}},u={on:l(r),once:l(i),off:l(o),emit:l(a)},c=m({},u),e.exports=t=function(e){return null==e?h(c):m(Object(e),u)},t.methods=s},7551:(e,t,n)=>{var r,i=n(8558);!function(o){var a=Object.hasOwnProperty,s=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},u="object"==typeof i&&"function"==typeof i.nextTick,c="function"==typeof Symbol,l="object"==typeof Reflect,f="function"==typeof setImmediate?setImmediate:setTimeout,p=c?l&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys:function(e){var t=Object.getOwnPropertyNames(e);return t.push.apply(t,Object.getOwnPropertySymbols(e)),t}:Object.keys;function d(){this._events={},this._conf&&h.call(this,this._conf)}function h(e){e&&(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),e.maxListeners!==o&&(this._maxListeners=e.maxListeners),e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this._newListener=e.newListener),e.removeListener&&(this._removeListener=e.removeListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),e.ignoreErrors&&(this.ignoreErrors=e.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function v(e,t){var n="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(n+=" Event name: "+t+"."),void 0!==i&&i.emitWarning){var r=new Error(n);r.name="MaxListenersExceededWarning",r.emitter=this,r.count=e,i.emitWarning(r)}else console.error(n),console.trace&&console.trace()}var m=function(e,t,n){var r=arguments.length;switch(r){case 0:return[];case 1:return[e];case 2:return[e,t];case 3:return[e,t,n];default:for(var i=new Array(r);r--;)i[r]=arguments[r];return i}};function y(e,t){for(var n={},r=e.length,i=t?value.length:0,a=0;a<r;a++)n[e[a]]=a<i?t[a]:o;return n}function g(e,t,n){var r,i;if(this._emitter=e,this._target=t,this._listeners={},this._listenersCount=0,(n.on||n.off)&&(r=n.on,i=n.off),t.addEventListener?(r=t.addEventListener,i=t.removeEventListener):t.addListener?(r=t.addListener,i=t.removeListener):t.on&&(r=t.on,i=t.off),!r&&!i)throw Error("target does not implement any known event API");if("function"!=typeof r)throw TypeError("on method must be a function");if("function"!=typeof i)throw TypeError("off method must be a function");this._on=r,this._off=i;var o=e._observers;o?o.push(this):e._observers=[this]}function b(e,t,n,r){var i=Object.assign({},t);if(!e)return i;if("object"!=typeof e)throw TypeError("options must be an object");var s,u,c,l=Object.keys(e),f=l.length;function p(e){throw Error('Invalid "'+s+'" option value'+(e?". Reason: "+e:""))}for(var d=0;d<f;d++){if(s=l[d],!r&&!a.call(t,s))throw Error('Unknown "'+s+'" option');(u=e[s])!==o&&(c=n[s],i[s]=c?c(u,p):u)}return i}function E(e,t){return"function"==typeof e&&e.hasOwnProperty("prototype")||t("value must be a constructor"),e}function _(e){var t="value must be type of "+e.join("|"),n=e.length,r=e[0],i=e[1];return 1===n?function(e,n){if(typeof e===r)return e;n(t)}:2===n?function(e,n){var o=typeof e;if(o===r||o===i)return e;n(t)}:function(r,i){for(var o=typeof r,a=n;a-- >0;)if(o===e[a])return r;i(t)}}Object.assign(g.prototype,{subscribe:function(e,t,n){var r=this,i=this._target,o=this._emitter,a=this._listeners,s=function(){var r=m.apply(null,arguments),a={data:r,name:t,original:e};n?!1!==n.call(i,a)&&o.emit.apply(o,[a.name].concat(r)):o.emit.apply(o,[t].concat(r))};if(a[e])throw Error("Event '"+e+"' is already listening");this._listenersCount++,o._newListener&&o._removeListener&&!r._onNewListener?(this._onNewListener=function(n){n===t&&null===a[e]&&(a[e]=s,r._on.call(i,e,s))},o.on("newListener",this._onNewListener),this._onRemoveListener=function(n){n===t&&!o.hasListeners(n)&&a[e]&&(a[e]=null,r._off.call(i,e,s))},a[e]=null,o.on("removeListener",this._onRemoveListener)):(a[e]=s,r._on.call(i,e,s))},unsubscribe:function(e){var t,n,r,i=this,o=this._listeners,a=this._emitter,s=this._off,u=this._target;if(e&&"string"!=typeof e)throw TypeError("event must be a string");function c(){i._onNewListener&&(a.off("newListener",i._onNewListener),a.off("removeListener",i._onRemoveListener),i._onNewListener=null,i._onRemoveListener=null);var e=I.call(a,i);a._observers.splice(e,1)}if(e){if(!(t=o[e]))return;s.call(u,e,t),delete o[e],--this._listenersCount||c()}else{for(r=(n=p(o)).length;r-- >0;)e=n[r],s.call(u,e,o[e]);this._listeners={},this._listenersCount=0,c()}}});var w=_(["function"]),O=_(["object","function"]);function T(e,t,n){var r,i,o,a=0,s=new e((function(u,c,l){function f(){i&&(i=null),a&&(clearTimeout(a),a=0)}n=b(n,{timeout:0,overload:!1},{timeout:function(e,t){return("number"!=typeof(e*=1)||e<0||!Number.isFinite(e))&&t("timeout must be a positive number"),e}}),r=!n.overload&&"function"==typeof e.prototype.cancel&&"function"==typeof l;var p=function(e){f(),u(e)},d=function(e){f(),c(e)};r?t(p,d,l):(i=[function(e){d(e||Error("canceled"))}],t(p,d,(function(e){if(o)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!=typeof e)throw TypeError("onCancel callback must be a function");i.push(e)})),o=!0),n.timeout>0&&(a=setTimeout((function(){var e=Error("timeout");e.code="ETIMEDOUT",a=0,s.cancel(e),c(e)}),n.timeout))}));return r||(s.cancel=function(e){if(i){for(var t=i.length,n=1;n<t;n++)i[n](e);i[0](e),i=null}}),s}function I(e){var t=this._observers;if(!t)return-1;for(var n=t.length,r=0;r<n;r++)if(t[r]._target===e)return r;return-1}function N(e,t,n,r,i){if(!n)return null;if(0===r){var o=typeof t;if("string"===o){var a,s,u=0,c=0,l=this.delimiter,f=l.length;if(-1!==(s=t.indexOf(l))){a=new Array(5);do{a[u++]=t.slice(c,s),c=s+f}while(-1!==(s=t.indexOf(l,c)));a[u++]=t.slice(c),t=a,i=u}else t=[t],i=1}else"object"===o?i=t.length:(t=[t],i=1)}var d,h,v,m,y,g,b,E=null,_=t[r],w=t[r+1];if(r===i&&n._listeners)return"function"==typeof n._listeners?(e&&e.push(n._listeners),[n]):(e&&e.push.apply(e,n._listeners),[n]);if("*"===_){for(s=(g=p(n)).length;s-- >0;)"_listeners"!==(d=g[s])&&(b=N(e,t,n[d],r+1,i))&&(E?E.push.apply(E,b):E=b);return E}if("**"===_){for((y=r+1===i||r+2===i&&"*"===w)&&n._listeners&&(E=N(e,t,n,i,i)),s=(g=p(n)).length;s-- >0;)"_listeners"!==(d=g[s])&&("*"===d||"**"===d?(n[d]._listeners&&!y&&(b=N(e,t,n[d],i,i))&&(E?E.push.apply(E,b):E=b),b=N(e,t,n[d],r,i)):b=N(e,t,n[d],d===w?r+2:r,i),b&&(E?E.push.apply(E,b):E=b));return E}if(n[_]&&(E=N(e,t,n[_],r+1,i)),(h=n["*"])&&N(e,t,h,r+1,i),v=n["**"])if(r<i)for(v._listeners&&N(e,t,v,i,i),s=(g=p(v)).length;s-- >0;)"_listeners"!==(d=g[s])&&(d===w?N(e,t,v[d],r+2,i):d===_?N(e,t,v[d],r+1,i):((m={})[d]=v[d],N(e,t,{"**":m},r+1,i)));else v._listeners?N(e,t,v,i,i):v["*"]&&v["*"]._listeners&&N(e,t,v["*"],i,i);return E}function S(e,t,n){var r,i,o=0,a=0,s=this.delimiter,u=s.length;if("string"==typeof e)if(-1!==(r=e.indexOf(s))){i=new Array(5);do{i[o++]=e.slice(a,r),a=r+u}while(-1!==(r=e.indexOf(s,a)));i[o++]=e.slice(a)}else i=[e],o=1;else i=e,o=e.length;if(o>1)for(r=0;r+1<o;r++)if("**"===i[r]&&"**"===i[r+1])return;var c,l=this.listenerTree;for(r=0;r<o;r++)if(l=l[c=i[r]]||(l[c]={}),r===o-1)return l._listeners?("function"==typeof l._listeners&&(l._listeners=[l._listeners]),n?l._listeners.unshift(t):l._listeners.push(t),!l._listeners.warned&&this._maxListeners>0&&l._listeners.length>this._maxListeners&&(l._listeners.warned=!0,v.call(this,l._listeners.length,c))):l._listeners=t,!0;return!0}function A(e,t,n,r){for(var i,o,a,s,u=p(e),c=u.length,l=e._listeners;c-- >0;)i=e[o=u[c]],a="_listeners"===o?n:n?n.concat(o):[o],s=r||"symbol"==typeof o,l&&t.push(s?a:a.join(this.delimiter)),"object"==typeof i&&A.call(this,i,t,a,s);return t}function R(e){for(var t,n,r,i=p(e),o=i.length;o-- >0;)(t=e[n=i[o]])&&(r=!0,"_listeners"===n||R(t)||delete e[n]);return r}function x(e,t,n){this.emitter=e,this.event=t,this.listener=n}function j(e,t,n){if(!0===n)a=!0;else if(!1===n)r=!0;else{if(!n||"object"!=typeof n)throw TypeError("options should be an object or true");var r=n.async,a=n.promisify,s=n.nextTick,c=n.objectify}if(r||s||a){var l=t,p=t._origin||t;if(s&&!u)throw Error("process.nextTick is not supported");a===o&&(a="AsyncFunction"===t.constructor.name),t=function(){var e=arguments,t=this,n=this.event;return a?s?Promise.resolve():new Promise((function(e){f(e)})).then((function(){return t.event=n,l.apply(t,e)})):(s?i.nextTick:f)((function(){t.event=n,l.apply(t,e)}))},t._async=!0,t._origin=p}return[t,c?new x(this,e,t):this]}function P(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,h.call(this,e)}x.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},P.EventEmitter2=P,P.prototype.listenTo=function(e,t,n){if("object"!=typeof e)throw TypeError("target musts be an object");var r=this;function i(t){if("object"!=typeof t)throw TypeError("events must be an object");var i,o=n.reducers,a=I.call(r,e);i=-1===a?new g(r,e,n):r._observers[a];for(var s,u=p(t),c=u.length,l="function"==typeof o,f=0;f<c;f++)s=u[f],i.subscribe(s,t[s]||s,l?o:o&&o[s])}return n=b(n,{on:o,off:o,reducers:o},{on:w,off:w,reducers:O}),s(t)?i(y(t)):i("string"==typeof t?y(t.split(/\s+/)):t),this},P.prototype.stopListeningTo=function(e,t){var n=this._observers;if(!n)return!1;var r,i=n.length,o=!1;if(e&&"object"!=typeof e)throw TypeError("target should be an object");for(;i-- >0;)r=n[i],e&&r._target!==e||(r.unsubscribe(t),o=!0);return o},P.prototype.delimiter=".",P.prototype.setMaxListeners=function(e){e!==o&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},P.prototype.getMaxListeners=function(){return this._maxListeners},P.prototype.event="",P.prototype.once=function(e,t,n){return this._once(e,t,!1,n)},P.prototype.prependOnceListener=function(e,t,n){return this._once(e,t,!0,n)},P.prototype._once=function(e,t,n,r){return this._many(e,1,t,n,r)},P.prototype.many=function(e,t,n,r){return this._many(e,t,n,!1,r)},P.prototype.prependMany=function(e,t,n,r){return this._many(e,t,n,!0,r)},P.prototype._many=function(e,t,n,r,i){var o=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function a(){return 0==--t&&o.off(e,a),n.apply(this,arguments)}return a._origin=n,this._on(e,a,r,i)},P.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||d.call(this);var e,t,n,r,i,o,a=arguments[0],s=this.wildcard;if("newListener"===a&&!this._newListener&&!this._events.newListener)return!1;if(s&&(e=a,"newListener"!==a&&"removeListener"!==a&&"object"==typeof a)){if(n=a.length,c)for(r=0;r<n;r++)if("symbol"==typeof a[r]){o=!0;break}o||(a=a.join(this.delimiter))}var u,l=arguments.length;if(this._all&&this._all.length)for(r=0,n=(u=this._all.slice()).length;r<n;r++)switch(this.event=a,l){case 1:u[r].call(this,a);break;case 2:u[r].call(this,a,arguments[1]);break;case 3:u[r].call(this,a,arguments[1],arguments[2]);break;default:u[r].apply(this,arguments)}if(s)u=[],N.call(this,u,e,this.listenerTree,0,n);else{if("function"==typeof(u=this._events[a])){switch(this.event=a,l){case 1:u.call(this);break;case 2:u.call(this,arguments[1]);break;case 3:u.call(this,arguments[1],arguments[2]);break;default:for(t=new Array(l-1),i=1;i<l;i++)t[i-1]=arguments[i];u.apply(this,t)}return!0}u&&(u=u.slice())}if(u&&u.length){if(l>3)for(t=new Array(l-1),i=1;i<l;i++)t[i-1]=arguments[i];for(r=0,n=u.length;r<n;r++)switch(this.event=a,l){case 1:u[r].call(this);break;case 2:u[r].call(this,arguments[1]);break;case 3:u[r].call(this,arguments[1],arguments[2]);break;default:u[r].apply(this,t)}return!0}if(!this.ignoreErrors&&!this._all&&"error"===a)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},P.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||d.call(this);var e,t,n,r,i,o,a=arguments[0],s=this.wildcard;if("newListener"===a&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(s&&(e=a,"newListener"!==a&&"removeListener"!==a&&"object"==typeof a)){if(r=a.length,c)for(i=0;i<r;i++)if("symbol"==typeof a[i]){t=!0;break}t||(a=a.join(this.delimiter))}var u,l=[],f=arguments.length;if(this._all)for(i=0,r=this._all.length;i<r;i++)switch(this.event=a,f){case 1:l.push(this._all[i].call(this,a));break;case 2:l.push(this._all[i].call(this,a,arguments[1]));break;case 3:l.push(this._all[i].call(this,a,arguments[1],arguments[2]));break;default:l.push(this._all[i].apply(this,arguments))}if(s?(u=[],N.call(this,u,e,this.listenerTree,0)):u=this._events[a],"function"==typeof u)switch(this.event=a,f){case 1:l.push(u.call(this));break;case 2:l.push(u.call(this,arguments[1]));break;case 3:l.push(u.call(this,arguments[1],arguments[2]));break;default:for(n=new Array(f-1),o=1;o<f;o++)n[o-1]=arguments[o];l.push(u.apply(this,n))}else if(u&&u.length){if(u=u.slice(),f>3)for(n=new Array(f-1),o=1;o<f;o++)n[o-1]=arguments[o];for(i=0,r=u.length;i<r;i++)switch(this.event=a,f){case 1:l.push(u[i].call(this));break;case 2:l.push(u[i].call(this,arguments[1]));break;case 3:l.push(u[i].call(this,arguments[1],arguments[2]));break;default:l.push(u[i].apply(this,n))}}else if(!this.ignoreErrors&&!this._all&&"error"===a)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(l)},P.prototype.on=function(e,t,n){return this._on(e,t,!1,n)},P.prototype.prependListener=function(e,t,n){return this._on(e,t,!0,n)},P.prototype.onAny=function(e){return this._onAny(e,!1)},P.prototype.prependAny=function(e){return this._onAny(e,!0)},P.prototype.addListener=P.prototype.on,P.prototype._onAny=function(e,t){if("function"!=typeof e)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),t?this._all.unshift(e):this._all.push(e),this},P.prototype._on=function(e,t,n,r){if("function"==typeof e)return this._onAny(e,t),this;if("function"!=typeof t)throw new Error("on only accepts instances of Function");this._events||d.call(this);var i,a=this;return r!==o&&(t=(i=j.call(this,e,t,r))[0],a=i[1]),this._newListener&&this.emit("newListener",e,t),this.wildcard?(S.call(this,e,t,n),a):(this._events[e]?("function"==typeof this._events[e]&&(this._events[e]=[this._events[e]]),n?this._events[e].unshift(t):this._events[e].push(t),!this._events[e].warned&&this._maxListeners>0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,v.call(this,this._events[e].length,e))):this._events[e]=t,a)},P.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var n,r=[];if(this.wildcard){var i="string"==typeof e?e.split(this.delimiter):e.slice();if(!(r=N.call(this,null,i,this.listenerTree,0)))return this}else{if(!this._events[e])return this;n=this._events[e],r.push({_listeners:n})}for(var o=0;o<r.length;o++){var a=r[o];if(n=a._listeners,s(n)){for(var u=-1,c=0,l=n.length;c<l;c++)if(n[c]===t||n[c].listener&&n[c].listener===t||n[c]._origin&&n[c]._origin===t){u=c;break}if(u<0)continue;return this.wildcard?a._listeners.splice(u,1):this._events[e].splice(u,1),0===n.length&&(this.wildcard?delete a._listeners:delete this._events[e]),this._removeListener&&this.emit("removeListener",e,t),this}(n===t||n.listener&&n.listener===t||n._origin&&n._origin===t)&&(this.wildcard?delete a._listeners:delete this._events[e],this._removeListener&&this.emit("removeListener",e,t))}return this.listenerTree&&R(this.listenerTree),this},P.prototype.offAny=function(e){var t,n=0,r=0;if(e&&this._all&&this._all.length>0){for(n=0,r=(t=this._all).length;n<r;n++)if(e===t[n])return t.splice(n,1),this._removeListener&&this.emit("removeListenerAny",e),this}else{if(t=this._all,this._removeListener)for(n=0,r=t.length;n<r;n++)this.emit("removeListenerAny",t[n]);this._all=[]}return this},P.prototype.removeListener=P.prototype.off,P.prototype.removeAllListeners=function(e){if(e===o)return!this._events||d.call(this),this;if(this.wildcard){var t,n=N.call(this,null,e,this.listenerTree,0);if(!n)return this;for(t=0;t<n.length;t++)n[t]._listeners=null;this.listenerTree&&R(this.listenerTree)}else this._events&&(this._events[e]=null);return this},P.prototype.listeners=function(e){var t,n,r,i,a,s=this._events;if(e===o){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!s)return[];for(i=(t=p(s)).length,r=[];i-- >0;)"function"==typeof(n=s[t[i]])?r.push(n):r.push.apply(r,n);return r}if(this.wildcard){if(!(a=this.listenerTree))return[];var u=[],c="string"==typeof e?e.split(this.delimiter):e.slice();return N.call(this,u,c,a,0),u}return s&&(n=s[e])?"function"==typeof n?[n]:n:[]},P.prototype.eventNames=function(e){var t=this._events;return this.wildcard?A.call(this,this.listenerTree,[],null,e):t?p(t):[]},P.prototype.listenerCount=function(e){return this.listeners(e).length},P.prototype.hasListeners=function(e){if(this.wildcard){var t=[],n="string"==typeof e?e.split(this.delimiter):e.slice();return N.call(this,t,n,this.listenerTree,0),t.length>0}var r=this._events,i=this._all;return!!(i&&i.length||r&&(e===o?p(r).length:r[e]))},P.prototype.listenersAny=function(){return this._all?this._all:[]},P.prototype.waitFor=function(e,t){var n=this,r=typeof t;return"number"===r?t={timeout:t}:"function"===r&&(t={filter:t}),T((t=b(t,{timeout:0,filter:o,handleError:!1,Promise,overload:!1},{filter:w,Promise:E})).Promise,(function(r,i,o){function a(){var o=t.filter;if(!o||o.apply(n,arguments))if(n.off(e,a),t.handleError){var s=arguments[0];s?i(s):r(m.apply(null,arguments).slice(1))}else r(m.apply(null,arguments))}o((function(){n.off(e,a)})),n._on(e,a,!1)}),{timeout:t.timeout,overload:t.overload})};var D=P.prototype;Object.defineProperties(P,{defaultMaxListeners:{get:function(){return D._maxListeners},set:function(e){if("number"!=typeof e||e<0||Number.isNaN(e))throw TypeError("n must be a non-negative number");D._maxListeners=e},enumerable:!0},once:{value:function(e,t,n){return T((n=b(n,{Promise,timeout:0,overload:!1},{Promise:E})).Promise,(function(n,r,i){var o;if("function"==typeof e.addEventListener)return o=function(){n(m.apply(null,arguments))},i((function(){e.removeEventListener(t,o)})),void e.addEventListener(t,o,{once:!0});var a,s=function(){a&&e.removeListener("error",a),n(m.apply(null,arguments))};"error"!==t&&(a=function(n){e.removeListener(t,s),r(n)},e.once("error",a)),i((function(){a&&e.removeListener("error",a),e.removeListener(t,s)})),e.once(t,s)}),{timeout:n.timeout,overload:n.overload})},writable:!0,configurable:!0}}),Object.defineProperties(D,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),(r=function(){return P}.call(t,n,t,e))===o||(e.exports=r)}()},7760:e=>{var t=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{return __global__||t()}finally{delete Object.prototype.__global__}}()},5596:(e,t,n)=>{"use strict";e.exports=n(4851)()?globalThis:n(7760)},4851:e=>{"use strict";e.exports=function(){return"object"==typeof globalThis&&!!globalThis&&globalThis.Array===Array}},6901:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o<r.length;o++){var a=r[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(n[a]=s)}return n}},5692:function(e){e.exports=function(){function e(){return(e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var t={ignoreId:!1};return function(n,r){var i=e({},t,r),o=n;if(o&&o.id&&!i.ignoreId)return'//*[@id="'+o.id+'"]';for(var a=[];o&&(Node.ELEMENT_NODE===o.nodeType||Node.TEXT_NODE===o.nodeType);){for(var s=0,u=!1,c=o.previousSibling;c;)c.nodeType!==Node.DOCUMENT_TYPE_NODE&&c.nodeName===o.nodeName&&s++,c=c.previousSibling;for(c=o.nextSibling;c;){if(c.nodeName===o.nodeName){u=!0;break}c=c.nextSibling}var l=s||u?"["+(s+1)+"]":"",f=o.nodeType!=Node.TEXT_NODE?(o.prefix?o.prefix+":":"")+o.localName+l:"text()"+(l||"[1]");a.push(f),o=o.parentNode}return a.length?"/"+a.reverse().join("/"):""}}()},8539:e=>{"use strict";e.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}},2687:e=>{function t(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=t,e.exports.default=t},763:e=>{e.exports=function(e){for(var t=-1,n=e?e.length:0,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i}},7065:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();function a(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var s=Object.prototype,u=s.hasOwnProperty,c=s.toString,l=o.Symbol,f=s.propertyIsEnumerable,p=l?l.isConcatSpreadable:void 0;function d(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=h),i||(i=[]);++o<s;){var u=e[o];t>0&&n(u)?t>1?d(u,t-1,n,r,i):a(i,u):r||(i[i.length]=u)}return i}function h(e){return v(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?c.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}(e)}(e)&&u.call(e,"callee")&&(!f.call(e,"callee")||"[object Arguments]"==c.call(e))}(e)||!!(p&&e&&e[p])}var v=Array.isArray;e.exports=function(e){return e&&e.length?d(e,1):[]}},994:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},2935:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],v="[object Arguments]",m="[object Array]",y="[object Boolean]",g="[object Date]",b="[object Error]",E="[object Function]",_="[object GeneratorFunction]",w="[object Map]",O="[object Number]",T="[object Object]",I="[object Promise]",N="[object RegExp]",S="[object Set]",A="[object String]",R="[object Symbol]",x="[object WeakMap]",j="[object ArrayBuffer]",P="[object DataView]",D="[object Float32Array]",L="[object Float64Array]",M="[object Int8Array]",k="[object Int16Array]",C="[object Int32Array]",V="[object Uint8Array]",F="[object Uint8ClampedArray]",$="[object Uint16Array]",U="[object Uint32Array]",B=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,z=RegExp(q.source),Y=RegExp(W.source),X=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Ne="\\ufe0e\\ufe0f",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="["+_e+"]",Re="["+Se+"]",xe="["+we+"]",je="\\d+",Pe="["+Oe+"]",De="["+Te+"]",Le="[^"+_e+Se+je+Oe+Te+Ie+"]",Me="\\ud83c[\\udffb-\\udfff]",ke="[^"+_e+"]",Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Ie+"]",$e="\\u200d",Ue="(?:"+De+"|"+Le+")",Be="(?:"+Fe+"|"+Le+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+xe+"|"+Me+")?",We="["+Ne+"]?",ze=We+qe+"(?:"+$e+"(?:"+[ke,Ce,Ve].join("|")+")"+We+qe+")*",Ye="(?:"+[Pe,Ce,Ve].join("|")+")"+ze,Xe="(?:"+[ke+xe+"?",xe,Ce,Ve,Ae].join("|")+")",Je=RegExp("['’]","g"),Qe=RegExp(xe,"g"),Ke=RegExp(Me+"(?="+Me+")|"+Xe+ze,"g"),Ze=RegExp([Fe+"?"+De+"+"+He+"(?="+[Re,Fe,"$"].join("|")+")",Be+"+"+Ge+"(?="+[Re,Fe+Ue,"$"].join("|")+")",Fe+"?"+Ue+"+"+He,Fe+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",je,Ye].join("|"),"g"),et=RegExp("["+$e+_e+we+Ne+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[D]=it[L]=it[M]=it[k]=it[C]=it[V]=it[F]=it[$]=it[U]=!0,it[v]=it[m]=it[j]=it[y]=it[P]=it[g]=it[b]=it[E]=it[w]=it[O]=it[T]=it[N]=it[S]=it[A]=it[x]=!1;var ot={};ot[v]=ot[m]=ot[j]=ot[P]=ot[y]=ot[g]=ot[D]=ot[L]=ot[M]=ot[k]=ot[C]=ot[w]=ot[O]=ot[T]=ot[N]=ot[S]=ot[A]=ot[R]=ot[V]=ot[F]=ot[$]=ot[U]=!0,ot[b]=ot[E]=ot[x]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,lt="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||lt||Function("return this")(),pt=t&&!t.nodeType&&t,dt=pt&&e&&!e.nodeType&&e,ht=dt&&dt.exports===pt,vt=ht&&ct.process,mt=function(){try{return dt&&dt.require&&dt.require("util").types||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),yt=mt&&mt.isArrayBuffer,gt=mt&&mt.isDate,bt=mt&&mt.isMap,Et=mt&&mt.isRegExp,_t=mt&&mt.isSet,wt=mt&&mt.isTypedArray;function Ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Nt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function At(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Rt(e,t){return!(null==e||!e.length)&&Ft(e,t,0)>-1}function xt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function jt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Dt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Lt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var kt=Ht("length");function Ct(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Vt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ft(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Vt(e,Ut,n)}function $t(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ut(e){return e!=e}function Bt(e,t){var n=null==e?0:e.length;return n?Wt(e,t)/n:p}function Ht(e){return function(t){return null==t?i:t[e]}}function Gt(e){return function(t){return null==e?i:e[t]}}function qt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Wt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Yt(e){return e?e.slice(0,pn(e)+1).replace(re,""):e}function Xt(e){return function(t){return e(t)}}function Jt(e,t){return jt(t,(function(t){return e[t]}))}function Qt(e,t){return e.has(t)}function Kt(e,t){for(var n=-1,r=e.length;++n<r&&Ft(t,e[n],0)>-1;);return n}function Zt(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var en=Gt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function ln(e){return rn(e)?function(e){for(var t=Ke.lastIndex=0;Ke.test(e);)++t;return t}(e):kt(e)}function fn(e){return rn(e)?function(e){return e.match(Ke)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var dn=Gt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hn=function e(t){var n,r=(t=null==t?ft:hn.defaults(ft.Object(),t,hn.pick(ft,nt))).Array,ie=t.Date,_e=t.Error,we=t.Function,Oe=t.Math,Te=t.Object,Ie=t.RegExp,Ne=t.String,Se=t.TypeError,Ae=r.prototype,Re=we.prototype,xe=Te.prototype,je=t["__core-js_shared__"],Pe=Re.toString,De=xe.hasOwnProperty,Le=0,Me=(n=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ke=xe.toString,Ce=Pe.call(Te),Ve=ft._,Fe=Ie("^"+Pe.call(De).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=ht?t.Buffer:i,Ue=t.Symbol,Be=t.Uint8Array,He=$e?$e.allocUnsafe:i,Ge=an(Te.getPrototypeOf,Te),qe=Te.create,We=xe.propertyIsEnumerable,ze=Ae.splice,Ye=Ue?Ue.isConcatSpreadable:i,Xe=Ue?Ue.iterator:i,Ke=Ue?Ue.toStringTag:i,et=function(){try{var e=uo(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==ft.Date.now&&ie.now,lt=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=Oe.ceil,dt=Oe.floor,vt=Te.getOwnPropertySymbols,mt=$e?$e.isBuffer:i,kt=t.isFinite,Gt=Ae.join,vn=an(Te.keys,Te),mn=Oe.max,yn=Oe.min,gn=ie.now,bn=t.parseInt,En=Oe.random,_n=Ae.reverse,wn=uo(t,"DataView"),On=uo(t,"Map"),Tn=uo(t,"Promise"),In=uo(t,"Set"),Nn=uo(t,"WeakMap"),Sn=uo(Te,"create"),An=Nn&&new Nn,Rn={},xn=Co(wn),jn=Co(On),Pn=Co(Tn),Dn=Co(In),Ln=Co(Nn),Mn=Ue?Ue.prototype:i,kn=Mn?Mn.valueOf:i,Cn=Mn?Mn.toString:i;function Vn(e){if(es(e)&&!Ha(e)&&!(e instanceof Bn)){if(e instanceof Un)return e;if(De.call(e,"__wrapped__"))return Vo(e)}return new Un(e)}var Fn=function(){function e(){}return function(t){if(!Za(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function $n(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Bn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function zn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Yn(e,t){var n=Ha(e),r=!n&&Ba(e),i=!n&&!r&&za(e),o=!n&&!r&&!i&&us(e),a=n||r||i||o,s=a?zt(e.length,Ne):[],u=s.length;for(var c in e)!t&&!De.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mo(c,u))||s.push(c);return s}function Xn(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Jn(e,t){return Po(Ni(e),or(t,0,e.length))}function Qn(e){return Po(Ni(e))}function Kn(e,t,n){(n!==i&&!Fa(e[t],n)||n===i&&!(t in e))&&rr(e,t,n)}function Zn(e,t,n){var r=e[t];De.call(e,t)&&Fa(r,n)&&(n!==i||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(Fa(e[n][0],t))return n;return-1}function tr(e,t,n,r){return lr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function nr(e,t){return e&&Si(t,xs(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,o=t.length,a=r(o),s=null==e;++n<o;)a[n]=s?i:Is(e,t[n]);return a}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ar(e,t,n,r,o,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Za(e))return e;var f=Ha(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&De.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Ni(e,s)}else{var p=fo(e),d=p==E||p==_;if(za(e))return Ei(e,u);if(p==T||p==v||d&&!o){if(s=c||d?{}:ho(e),!u)return c?function(e,t){return Si(e,lo(e),t)}(e,function(e,t){return e&&Si(t,js(t),e)}(s,e)):function(e,t){return Si(e,co(e),t)}(e,nr(s,e))}else{if(!ot[p])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case j:return _i(e);case y:case g:return new i(+e);case P:return function(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case L:case M:case k:case C:case V:case F:case $:case U:return wi(e,n);case w:return new i;case O:case A:return new i(e);case N:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case S:return new i;case R:return r=e,kn?Te(kn.call(r)):{}}}(e,p,u)}}a||(a=new zn);var h=a.get(e);if(h)return h;a.set(e,s),os(e)?e.forEach((function(r){s.add(ar(r,t,n,r,e,a))})):ts(e)&&e.forEach((function(r,i){s.set(i,ar(r,t,n,i,e,a))}));var m=f?i:(l?c?to:eo:c?js:xs)(e);return It(m||e,(function(r,i){m&&(r=e[i=r]),Zn(s,i,ar(r,t,n,i,e,a))})),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Se(o);return Ao((function(){e.apply(i,n)}),t)}function cr(e,t,n,r){var i=-1,o=Rt,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=jt(t,Xt(n))),r?(o=xt,a=!1):t.length>=200&&(o=Qt,a=!1,t=new Wn(t));e:for(;++i<s;){var l=e[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=c;p--;)if(t[p]===f)continue e;u.push(l)}else o(t,f,r)||u.push(l)}return u}Vn.templateSettings={escape:X,evaluate:J,interpolate:Q,variable:"",imports:{_:Vn}},Vn.prototype=$n.prototype,Vn.prototype.constructor=Vn,Un.prototype=Fn($n.prototype),Un.prototype.constructor=Un,Bn.prototype=Fn($n.prototype),Bn.prototype.constructor=Bn,Hn.prototype.clear=function(){this.__data__=Sn?Sn(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(Sn){var n=t[e];return n===a?i:n}return De.call(t,e)?t[e]:i},Hn.prototype.has=function(e){var t=this.__data__;return Sn?t[e]!==i:De.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Sn&&t===i?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():ze.call(t,n,1),--this.size,0))},Gn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?i:t[n][1]},Gn.prototype.has=function(e){return er(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(On||Gn),string:new Hn}},qn.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return ao(this,e).get(e)},qn.prototype.has=function(e){return ao(this,e).has(e)},qn.prototype.set=function(e,t){var n=ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,a),this},Wn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new Gn,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!On||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var lr=xi(gr),fr=xi(br,!0);function pr(e,t){var n=!0;return lr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function dr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(u===i?s==s&&!ss(s):n(s,u)))var u=s,c=a}return c}function hr(e,t){var n=[];return lr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function vr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=vo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?vr(s,t-1,n,r,i):Pt(i,s):r||(i[i.length]=s)}return i}var mr=ji(),yr=ji(!0);function gr(e,t){return e&&mr(e,t,xs)}function br(e,t){return e&&yr(e,t,xs)}function Er(e,t){return At(t,(function(t){return Ja(e[t])}))}function _r(e,t){for(var n=0,r=(t=mi(t,e)).length;null!=e&&n<r;)e=e[ko(t[n++])];return n&&n==r?e:i}function wr(e,t,n){var r=t(e);return Ha(e)?r:Pt(r,n(e))}function Or(e){return null==e?e===i?"[object Undefined]":"[object Null]":Ke&&Ke in Te(e)?function(e){var t=De.call(e,Ke),n=e[Ke];try{e[Ke]=i;var r=!0}catch(e){}var o=ke.call(e);return r&&(t?e[Ke]=n:delete e[Ke]),o}(e):function(e){return ke.call(e)}(e)}function Tr(e,t){return e>t}function Ir(e,t){return null!=e&&De.call(e,t)}function Nr(e,t){return null!=e&&t in Te(e)}function Sr(e,t,n){for(var o=n?xt:Rt,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=jt(p,Xt(t))),l=yn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new Wn(u&&p):i}p=e[0];var d=-1,h=c[0];e:for(;++d<a&&f.length<l;){var v=p[d],m=t?t(v):v;if(v=n||0!==v?v:0,!(h?Qt(h,m):o(f,m,n))){for(u=s;--u;){var y=c[u];if(!(y?Qt(y,m):o(e[u],m,n)))continue e}h&&h.push(m),f.push(v)}}return f}function Ar(e,t,n){var r=null==(e=Io(e,t=mi(t,e)))?e:e[ko(Xo(t))];return null==r?i:Ot(r,e,n)}function Rr(e){return es(e)&&Or(e)==v}function xr(e,t,n,r,o){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var s=Ha(e),u=Ha(t),c=s?m:fo(e),l=u?m:fo(t),f=(c=c==v?T:c)==T,p=(l=l==v?T:l)==T,d=c==l;if(d&&za(e)){if(!za(t))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new zn),s||us(e)?Ki(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case j:return!(e.byteLength!=t.byteLength||!o(new Be(e),new Be(t)));case y:case g:case O:return Fa(+e,+t);case b:return e.name==t.name&&e.message==t.message;case N:case A:return e==t+"";case w:var s=on;case S:var u=1&r;if(s||(s=un),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=Ki(s(e),s(t),r,i,o,a);return a.delete(e),l;case R:if(kn)return kn.call(e)==kn.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=f&&De.call(e,"__wrapped__"),E=p&&De.call(t,"__wrapped__");if(h||E){var _=h?e.value():e,I=E?t.value():t;return a||(a=new zn),o(_,I,n,r,a)}}return!!d&&(a||(a=new zn),function(e,t,n,r,o,a){var s=1&n,u=eo(e),c=u.length;if(c!=eo(t).length&&!s)return!1;for(var l=c;l--;){var f=u[l];if(!(s?f in t:De.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var v=s;++l<c;){var m=e[f=u[l]],y=t[f];if(r)var g=s?r(y,m,f,t,e,a):r(m,y,f,e,t,a);if(!(g===i?m===y||o(m,y,n,r,a):g)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var b=e.constructor,E=t.constructor;b==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a))}(e,t,n,r,xr,o))}function jr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Te(e);o--;){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=n[o])[0],l=e[c],f=u[1];if(s&&u[2]){if(l===i&&!(c in e))return!1}else{var p=new zn;if(r)var d=r(l,f,c,e,t,p);if(!(d===i?xr(f,l,3,r,p):d))return!1}}return!0}function Pr(e){return!(!Za(e)||(t=e,Me&&Me in t))&&(Ja(e)?Fe:ve).test(Co(e));var t}function Dr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?Ha(e)?Vr(e[0],e[1]):Cr(e):fu(e)}function Lr(e){if(!_o(e))return vn(e);var t=[];for(var n in Te(e))De.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Mr(e,t){return e<t}function kr(e,t){var n=-1,i=qa(e)?r(e.length):[];return lr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Cr(e){var t=so(e);return 1==t.length&&t[0][2]?Oo(t[0][0],t[0][1]):function(n){return n===e||jr(n,e,t)}}function Vr(e,t){return go(e)&&wo(t)?Oo(ko(e),t):function(n){var r=Is(n,e);return r===i&&r===t?Ns(n,e):xr(t,r,3)}}function Fr(e,t,n,r,o){e!==t&&mr(t,(function(a,s){if(o||(o=new zn),Za(a))!function(e,t,n,r,o,a,s){var u=No(e,n),c=No(t,n),l=s.get(c);if(l)Kn(e,n,l);else{var f=a?a(u,c,n+"",e,t,s):i,p=f===i;if(p){var d=Ha(c),h=!d&&za(c),v=!d&&!h&&us(c);f=c,d||h||v?Ha(u)?f=u:Wa(u)?f=Ni(u):h?(p=!1,f=Ei(c,!0)):v?(p=!1,f=wi(c,!0)):f=[]:rs(c)||Ba(c)?(f=u,Ba(u)?f=ms(u):Za(u)&&!Ja(u)||(f=ho(c))):p=!1}p&&(s.set(c,f),o(f,c,r,a,s),s.delete(c)),Kn(e,n,f)}}(e,t,s,n,Fr,r,o);else{var u=r?r(No(e,s),a,s+"",e,t,o):i;u===i&&(u=a),Kn(e,s,u)}}),js)}function $r(e,t){var n=e.length;if(n)return mo(t+=t<0?n:0,n)?e[t]:i}function Ur(e,t,n){t=t.length?jt(t,(function(e){return Ha(e)?function(t){return _r(t,1===e.length?e[0]:e)}:e})):[nu];var r=-1;t=jt(t,Xt(oo()));var i=kr(e,(function(e,n,i){var o=jt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e){var t=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var u=Oi(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));t--;)e[t]=e[t].value;return e}(i)}function Br(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=_r(e,a);n(s,a)&&Jr(o,mi(a,e),s)}return o}function Hr(e,t,n,r){var i=r?$t:Ft,o=-1,a=t.length,s=e;for(e===t&&(t=Ni(t)),n&&(s=jt(e,Xt(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&ze.call(s,u,1),ze.call(e,u,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;mo(i)?ze.call(e,i,1):ui(e,i)}}return e}function qr(e,t){return e+dt(En()*(t-e+1))}function Wr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=dt(t/2))&&(e+=e)}while(t);return n}function zr(e,t){return Ro(To(e,t,nu),e+"")}function Yr(e){return Xn(Fs(e))}function Xr(e,t){var n=Fs(e);return Po(n,or(t,0,n.length))}function Jr(e,t,n,r){if(!Za(e))return e;for(var o=-1,a=(t=mi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var c=ko(t[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var f=u[c];(l=r?r(f,c,u):i)===i&&(l=Za(f)?f:mo(t[o+1])?[]:{})}Zn(u,c,l),u=u[c]}return e}var Qr=An?function(e,t){return An.set(e,t),e}:nu,Kr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Zs(t),writable:!0})}:nu;function Zr(e){return Po(Fs(e))}function ei(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function ti(e,t){var n;return lr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ni(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ss(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ri(e,t,nu,n)}function ri(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=ss(t),l=t===i;o<a;){var f=dt((o+a)/2),p=n(e[f]),d=p!==i,h=null===p,v=p==p,m=ss(p);if(s)var y=r||v;else y=l?v&&(r||d):u?v&&d&&(r||!h):c?v&&d&&!h&&(r||!m):!h&&!m&&(r?p<=t:p<t);y?o=f+1:a=f}return yn(a,4294967294)}function ii(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Fa(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function oi(e){return"number"==typeof e?e:ss(e)?p:+e}function ai(e){if("string"==typeof e)return e;if(Ha(e))return jt(e,ai)+"";if(ss(e))return Cn?Cn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function si(e,t,n){var r=-1,i=Rt,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=xt;else if(o>=200){var c=t?null:Wi(e);if(c)return un(c);a=!1,i=Qt,u=new Wn}else u=t?[]:s;e:for(;++r<o;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(l)}else i(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function ui(e,t){return null==(e=Io(e,t=mi(t,e)))||delete e[ko(Xo(t))]}function ci(e,t,n,r){return Jr(e,t,n(_r(e,t)),r)}function li(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ei(e,r?0:o,r?o+1:i):ei(e,r?o+1:0,r?i:o)}function fi(e,t){var n=e;return n instanceof Bn&&(n=n.value()),Dt(t,(function(e,t){return t.func.apply(t.thisArg,Pt([e],t.args))}),n)}function pi(e,t,n){var i=e.length;if(i<2)return i?si(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=cr(a[o]||s,e[u],t,n));return si(vr(a,1),t,n)}function di(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var u=r<a?t[r]:i;n(s,e[r],u)}return s}function hi(e){return Wa(e)?e:[]}function vi(e){return"function"==typeof e?e:nu}function mi(e,t){return Ha(e)?e:go(e,t)?[e]:Mo(ys(e))}var yi=zr;function gi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ei(e,t,n)}var bi=at||function(e){return ft.clearTimeout(e)};function Ei(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function _i(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function wi(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Oi(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=ss(e),s=t!==i,u=null===t,c=t==t,l=ss(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e<t||l&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}function Ti(e,t,n,i){for(var o=-1,a=e.length,s=n.length,u=-1,c=t.length,l=mn(a-s,0),f=r(c+l),p=!i;++u<c;)f[u]=t[u];for(;++o<s;)(p||o<a)&&(f[n[o]]=e[o]);for(;l--;)f[u++]=e[o++];return f}function Ii(e,t,n,i){for(var o=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,f=mn(a-u,0),p=r(f+l),d=!i;++o<f;)p[o]=e[o];for(var h=o;++c<l;)p[h+c]=t[c];for(;++s<u;)(d||o<a)&&(p[h+n[s]]=e[o++]);return p}function Ni(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Si(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):i;c===i&&(c=e[u]),o?rr(n,u,c):Zn(n,u,c)}return n}function Ai(e,t){return function(n,r){var i=Ha(n)?Tt:tr,o=t?t():{};return i(n,e,oo(r,2),o)}}function Ri(e){return zr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&yo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Te(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}function xi(e,t){return function(n,r){if(null==n)return n;if(!qa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Te(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function ji(e){return function(t,n,r){for(var i=-1,o=Te(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function Pi(e){return function(t){var n=rn(t=ys(t))?fn(t):i,r=n?n[0]:t.charAt(0),o=n?gi(n,1).join(""):t.slice(1);return r[e]()+o}}function Di(e){return function(t){return Dt(Js(Bs(t).replace(Je,"")),e,"")}}function Li(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fn(e.prototype),r=e.apply(n,t);return Za(r)?r:n}}function Mi(e){return function(t,n,r){var o=Te(t);if(!qa(t)){var a=oo(n,3);t=xs(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function ki(e){return Zi((function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Se(o);if(a&&!u&&"wrapper"==ro(s))var u=new Un([],!0)}for(r=u?r:n;++r<n;){var c=ro(s=t[r]),l="wrapper"==c?no(s):i;u=l&&bo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[ro(l[0])].apply(u,l[3]):1==s.length&&bo(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Ha(r))return u.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ci(e,t,n,o,a,s,u,l,f,p){var d=t&c,h=1&t,v=2&t,m=24&t,y=512&t,g=v?i:Li(e);return function c(){for(var b=arguments.length,E=r(b),_=b;_--;)E[_]=arguments[_];if(m)var w=io(c),O=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(E,w);if(o&&(E=Ti(E,o,a,m)),s&&(E=Ii(E,s,u,m)),b-=O,m&&b<p){var T=sn(E,w);return Gi(e,t,Ci,c.placeholder,n,E,T,l,f,p-b)}var I=h?n:this,N=v?I[e]:e;return b=E.length,l?E=function(e,t){for(var n=e.length,r=yn(t.length,n),o=Ni(e);r--;){var a=t[r];e[r]=mo(a,n)?o[a]:i}return e}(E,l):y&&b>1&&E.reverse(),d&&f<b&&(E.length=f),this&&this!==ft&&this instanceof c&&(N=g||Li(N)),N.apply(I,E)}}function Vi(e,t){return function(n,r){return function(e,t,n,r){return gr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Fi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ai(n),r=ai(r)):(n=oi(n),r=oi(r)),o=e(n,r)}return o}}function $i(e){return Zi((function(t){return t=jt(t,Xt(oo())),zr((function(n){var r=this;return e(t,(function(e){return Ot(e,r,n)}))}))}))}function Ui(e,t){var n=(t=t===i?" ":ai(t)).length;if(n<2)return n?Wr(t,e):t;var r=Wr(t,pt(e/ln(t)));return rn(t)?gi(fn(r),0,e).join(""):r.slice(0,e)}function Bi(e){return function(t,n,o){return o&&"number"!=typeof o&&yo(t,n,o)&&(n=o=i),t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n,i){for(var o=-1,a=mn(pt((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,o=o===i?t<n?1:-1:ps(o),e)}}function Hi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Gi(e,t,n,r,o,a,s,c,l,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var d=[e,t,o,p?a:i,p?s:i,p?i:a,p?i:s,c,l,f],h=n.apply(i,d);return bo(e)&&So(h,d),h.placeholder=r,xo(h,e,t)}function qi(e){var t=Oe[e];return function(e,n){if(e=vs(e),(n=null==n?0:yn(ds(n),292))&&kt(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Wi=In&&1/un(new In([,-0]))[1]==l?function(e){return new In(e)}:su;function zi(e){return function(t){var n=fo(t);return n==w?on(t):n==S?cn(t):function(e,t){return jt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yi(e,t,n,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Se(o);var v=a?a.length:0;if(v||(t&=-97,a=l=i),p=p===i?p:mn(ds(p),0),d=d===i?d:ds(d),v-=l?l.length:0,64&t){var m=a,y=l;a=l=i}var g=h?i:no(e),b=[e,t,n,a,l,m,y,f,p,d];if(g&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Ti(l,u,t[4]):u,e[4]=l?sn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Ii(l,u,t[6]):u,e[6]=l?sn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(b,g),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(d=b[9]=b[9]===i?h?0:e.length:mn(b[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||16==t?function(e,t,n){var o=Li(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=io(a);c--;)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:sn(u,l);return(s-=f.length)<n?Gi(e,t,Ci,a.placeholder,i,u,f,i,i,n-s):Ot(this&&this!==ft&&this instanceof a?o:e,this,u)}}(e,t,d):t!=u&&33!=t||l.length?Ci.apply(i,b):function(e,t,n,i){var o=1&t,a=Li(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=i.length,f=r(l+u),p=this&&this!==ft&&this instanceof t?a:e;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++s];return Ot(p,o?n:this,f)}}(e,t,n,a);else var E=function(e,t,n){var r=1&t,i=Li(e);return function t(){return(this&&this!==ft&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return xo((g?Qr:So)(E,b),e,t)}function Xi(e,t,n,r){return e===i||Fa(e,xe[n])&&!De.call(r,n)?t:e}function Ji(e,t,n,r,o,a){return Za(e)&&Za(t)&&(a.set(t,e),Fr(e,t,i,Ji,a),a.delete(t)),e}function Qi(e){return rs(e)?i:e}function Ki(e,t,n,r,o,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new Wn:i;for(a.set(e,t),a.set(t,e);++p<u;){var v=e[p],m=t[p];if(r)var y=s?r(m,v,p,t,e,a):r(v,m,p,e,t,a);if(y!==i){if(y)continue;d=!1;break}if(h){if(!Mt(t,(function(e,t){if(!Qt(h,t)&&(v===e||o(v,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(v!==m&&!o(v,m,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function Zi(e){return Ro(To(e,i,Go),e+"")}function eo(e){return wr(e,xs,co)}function to(e){return wr(e,js,lo)}var no=An?function(e){return An.get(e)}:su;function ro(e){for(var t=e.name+"",n=Rn[t],r=De.call(Rn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(De.call(Vn,"placeholder")?Vn:e).placeholder}function oo(){var e=Vn.iteratee||ru;return e=e===ru?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function ao(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function so(e){for(var t=xs(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,wo(i)]}return t}function uo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Pr(n)?n:i}var co=vt?function(e){return null==e?[]:(e=Te(e),At(vt(e),(function(t){return We.call(e,t)})))}:hu,lo=vt?function(e){for(var t=[];e;)Pt(t,co(e)),e=Ge(e);return t}:hu,fo=Or;function po(e,t,n){for(var r=-1,i=(t=mi(t,e)).length,o=!1;++r<i;){var a=ko(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ka(i)&&mo(a,i)&&(Ha(e)||Ba(e))}function ho(e){return"function"!=typeof e.constructor||_o(e)?{}:Fn(Ge(e))}function vo(e){return Ha(e)||Ba(e)||!!(Ye&&e&&e[Ye])}function mo(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,n){if(!Za(n))return!1;var r=typeof t;return!!("number"==r?qa(n)&&mo(t,n.length):"string"==r&&t in n)&&Fa(n[t],e)}function go(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||Z.test(e)||!K.test(e)||null!=t&&e in Te(t)}function bo(e){var t=ro(e),n=Vn[t];if("function"!=typeof n||!(t in Bn.prototype))return!1;if(e===n)return!0;var r=no(n);return!!r&&e===r[0]}(wn&&fo(new wn(new ArrayBuffer(1)))!=P||On&&fo(new On)!=w||Tn&&fo(Tn.resolve())!=I||In&&fo(new In)!=S||Nn&&fo(new Nn)!=x)&&(fo=function(e){var t=Or(e),n=t==T?e.constructor:i,r=n?Co(n):"";if(r)switch(r){case xn:return P;case jn:return w;case Pn:return I;case Dn:return S;case Ln:return x}return t});var Eo=je?Ja:vu;function _o(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||xe)}function wo(e){return e==e&&!Za(e)}function Oo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Te(n))}}function To(e,t,n){return t=mn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=mn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=r(t+1);++o<t;)u[o]=i[o];return u[t]=n(s),Ot(e,this,u)}}function Io(e,t){return t.length<2?e:_r(e,ei(t,0,-1))}function No(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var So=jo(Qr),Ao=lt||function(e,t){return ft.setTimeout(e,t)},Ro=jo(Kr);function xo(e,t,n){var r=t+"";return Ro(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return It(h,(function(n){var r="_."+n[0];t&n[1]&&!Rt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function jo(e){var t=0,n=0;return function(){var r=gn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Po(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=qr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Do,Lo,Mo=(Do=Da((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(le,"$1"):n||e)})),t}),(function(e){return 500===Lo.size&&Lo.clear(),e})),Lo=Do.cache,Do);function ko(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Co(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Vo(e){if(e instanceof Bn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Ni(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fo=zr((function(e,t){return Wa(e)?cr(e,vr(t,1,Wa,!0)):[]})),$o=zr((function(e,t){var n=Xo(t);return Wa(n)&&(n=i),Wa(e)?cr(e,vr(t,1,Wa,!0),oo(n,2)):[]})),Uo=zr((function(e,t){var n=Xo(t);return Wa(n)&&(n=i),Wa(e)?cr(e,vr(t,1,Wa,!0),i,n):[]}));function Bo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ds(n);return i<0&&(i=mn(r+i,0)),Vt(e,oo(t,3),i)}function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ds(n),o=n<0?mn(r+o,0):yn(o,r-1)),Vt(e,oo(t,3),o,!0)}function Go(e){return null!=e&&e.length?vr(e,1):[]}function qo(e){return e&&e.length?e[0]:i}var Wo=zr((function(e){var t=jt(e,hi);return t.length&&t[0]===e[0]?Sr(t):[]})),zo=zr((function(e){var t=Xo(e),n=jt(e,hi);return t===Xo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Sr(n,oo(t,2)):[]})),Yo=zr((function(e){var t=Xo(e),n=jt(e,hi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Sr(n,i,t):[]}));function Xo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Jo=zr(Qo);function Qo(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var Ko=Zi((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Gr(e,jt(t,(function(e){return mo(e,n)?+e:e})).sort(Oi)),r}));function Zo(e){return null==e?e:_n.call(e)}var ea=zr((function(e){return si(vr(e,1,Wa,!0))})),ta=zr((function(e){var t=Xo(e);return Wa(t)&&(t=i),si(vr(e,1,Wa,!0),oo(t,2))})),na=zr((function(e){var t=Xo(e);return t="function"==typeof t?t:i,si(vr(e,1,Wa,!0),i,t)}));function ra(e){if(!e||!e.length)return[];var t=0;return e=At(e,(function(e){if(Wa(e))return t=mn(e.length,t),!0})),zt(t,(function(t){return jt(e,Ht(t))}))}function ia(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:jt(n,(function(e){return Ot(t,i,e)}))}var oa=zr((function(e,t){return Wa(e)?cr(e,t):[]})),aa=zr((function(e){return pi(At(e,Wa))})),sa=zr((function(e){var t=Xo(e);return Wa(t)&&(t=i),pi(At(e,Wa),oo(t,2))})),ua=zr((function(e){var t=Xo(e);return t="function"==typeof t?t:i,pi(At(e,Wa),i,t)})),ca=zr(ra),la=zr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ia(e,n)}));function fa(e){var t=Vn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var da=Zi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Bn&&mo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[o],thisArg:i}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ha=Ai((function(e,t,n){De.call(e,n)?++e[n]:rr(e,n,1)})),va=Mi(Bo),ma=Mi(Ho);function ya(e,t){return(Ha(e)?It:lr)(e,oo(t,3))}function ga(e,t){return(Ha(e)?Nt:fr)(e,oo(t,3))}var ba=Ai((function(e,t,n){De.call(e,n)?e[n].push(t):rr(e,n,[t])})),Ea=zr((function(e,t,n){var i=-1,o="function"==typeof t,a=qa(e)?r(e.length):[];return lr(e,(function(e){a[++i]=o?Ot(t,e,n):Ar(e,t,n)})),a})),_a=Ai((function(e,t,n){rr(e,n,t)}));function wa(e,t){return(Ha(e)?jt:kr)(e,oo(t,3))}var Oa=Ai((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ta=zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,vr(t,1),[])})),Ia=ct||function(){return ft.Date.now()};function Na(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Yi(e,c,i,i,i,i,t)}function Sa(e,t){var n;if("function"!=typeof t)throw new Se(o);return e=ds(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Aa=zr((function(e,t,n){var r=1;if(n.length){var i=sn(n,io(Aa));r|=u}return Yi(e,r,t,n,i)})),Ra=zr((function(e,t,n){var r=3;if(n.length){var i=sn(n,io(Ra));r|=u}return Yi(t,r,e,n,i)}));function xa(e,t,n){var r,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Se(o);function v(t){var n=r,o=a;return r=a=i,f=t,u=e.apply(o,n)}function m(e){var n=e-l;return l===i||n>=t||n<0||d&&e-f>=s}function y(){var e=Ia();if(m(e))return g(e);c=Ao(y,function(e){var n=t-(e-l);return d?yn(n,s-(e-f)):n}(e))}function g(e){return c=i,h&&r?v(e):(r=a=i,u)}function b(){var e=Ia(),n=m(e);if(r=arguments,a=this,l=e,n){if(c===i)return function(e){return f=e,c=Ao(y,t),p?v(e):u}(l);if(d)return bi(c),c=Ao(y,t),v(l)}return c===i&&(c=Ao(y,t)),u}return t=vs(t)||0,Za(n)&&(p=!!n.leading,s=(d="maxWait"in n)?mn(vs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==i&&bi(c),f=0,r=l=a=c=i},b.flush=function(){return c===i?u:g(Ia())},b}var ja=zr((function(e,t){return ur(e,1,t)})),Pa=zr((function(e,t,n){return ur(e,vs(t)||0,n)}));function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Se(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Da.Cache||qn),n}function La(e){if("function"!=typeof e)throw new Se(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Da.Cache=qn;var Ma=yi((function(e,t){var n=(t=1==t.length&&Ha(t[0])?jt(t[0],Xt(oo())):jt(vr(t,1),Xt(oo()))).length;return zr((function(r){for(var i=-1,o=yn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Ot(e,this,r)}))})),ka=zr((function(e,t){var n=sn(t,io(ka));return Yi(e,u,i,t,n)})),Ca=zr((function(e,t){var n=sn(t,io(Ca));return Yi(e,64,i,t,n)})),Va=Zi((function(e,t){return Yi(e,256,i,i,i,t)}));function Fa(e,t){return e===t||e!=e&&t!=t}var $a=Hi(Tr),Ua=Hi((function(e,t){return e>=t})),Ba=Rr(function(){return arguments}())?Rr:function(e){return es(e)&&De.call(e,"callee")&&!We.call(e,"callee")},Ha=r.isArray,Ga=yt?Xt(yt):function(e){return es(e)&&Or(e)==j};function qa(e){return null!=e&&Ka(e.length)&&!Ja(e)}function Wa(e){return es(e)&&qa(e)}var za=mt||vu,Ya=gt?Xt(gt):function(e){return es(e)&&Or(e)==g};function Xa(e){if(!es(e))return!1;var t=Or(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Ja(e){if(!Za(e))return!1;var t=Or(e);return t==E||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==ds(e)}function Ka(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Za(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Xt(bt):function(e){return es(e)&&fo(e)==w};function ns(e){return"number"==typeof e||es(e)&&Or(e)==O}function rs(e){if(!es(e)||Or(e)!=T)return!1;var t=Ge(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Ce}var is=Et?Xt(Et):function(e){return es(e)&&Or(e)==N},os=_t?Xt(_t):function(e){return es(e)&&fo(e)==S};function as(e){return"string"==typeof e||!Ha(e)&&es(e)&&Or(e)==A}function ss(e){return"symbol"==typeof e||es(e)&&Or(e)==R}var us=wt?Xt(wt):function(e){return es(e)&&Ka(e.length)&&!!it[Or(e)]},cs=Hi(Mr),ls=Hi((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(qa(e))return as(e)?fn(e):Ni(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=fo(e);return(t==w?on:t==S?un:Fs)(e)}function ps(e){return e?(e=vs(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ds(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?or(ds(e),0,d):0}function vs(e){if("number"==typeof e)return e;if(ss(e))return p;if(Za(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Za(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=he.test(e);return n||me.test(e)?ut(e.slice(2),n?2:8):de.test(e)?p:+e}function ms(e){return Si(e,js(e))}function ys(e){return null==e?"":ai(e)}var gs=Ri((function(e,t){if(_o(t)||qa(t))Si(t,xs(t),e);else for(var n in t)De.call(t,n)&&Zn(e,n,t[n])})),bs=Ri((function(e,t){Si(t,js(t),e)})),Es=Ri((function(e,t,n,r){Si(t,js(t),e,r)})),_s=Ri((function(e,t,n,r){Si(t,xs(t),e,r)})),ws=Zi(ir),Os=zr((function(e,t){e=Te(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&yo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=js(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===i||Fa(f,xe[l])&&!De.call(e,l))&&(e[l]=a[l])}return e})),Ts=zr((function(e){return e.push(i,Ji),Ot(Ds,i,e)}));function Is(e,t,n){var r=null==e?i:_r(e,t);return r===i?n:r}function Ns(e,t){return null!=e&&po(e,t,Nr)}var Ss=Vi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ke.call(t)),e[t]=n}),Zs(nu)),As=Vi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ke.call(t)),De.call(e,t)?e[t].push(n):e[t]=[n]}),oo),Rs=zr(Ar);function xs(e){return qa(e)?Yn(e):Lr(e)}function js(e){return qa(e)?Yn(e,!0):function(e){if(!Za(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=_o(e),n=[];for(var r in e)("constructor"!=r||!t&&De.call(e,r))&&n.push(r);return n}(e)}var Ps=Ri((function(e,t,n){Fr(e,t,n)})),Ds=Ri((function(e,t,n,r){Fr(e,t,n,r)})),Ls=Zi((function(e,t){var n={};if(null==e)return n;var r=!1;t=jt(t,(function(t){return t=mi(t,e),r||(r=t.length>1),t})),Si(e,to(e),n),r&&(n=ar(n,7,Qi));for(var i=t.length;i--;)ui(n,t[i]);return n})),Ms=Zi((function(e,t){return null==e?{}:function(e,t){return Br(e,t,(function(t,n){return Ns(e,n)}))}(e,t)}));function ks(e,t){if(null==e)return{};var n=jt(to(e),(function(e){return[e]}));return t=oo(t),Br(e,n,(function(e,n){return t(e,n[0])}))}var Cs=zi(xs),Vs=zi(js);function Fs(e){return null==e?[]:Jt(e,xs(e))}var $s=Di((function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)}));function Us(e){return Xs(ys(e).toLowerCase())}function Bs(e){return(e=ys(e))&&e.replace(ge,en).replace(Qe,"")}var Hs=Di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gs=Di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qs=Pi("toLowerCase"),Ws=Di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),zs=Di((function(e,t,n){return e+(n?" ":"")+Xs(t)})),Ys=Di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=Pi("toUpperCase");function Js(e,t,n){return e=ys(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Qs=zr((function(e,t){try{return Ot(e,i,t)}catch(e){return Xa(e)?e:new _e(e)}})),Ks=Zi((function(e,t){return It(t,(function(t){t=ko(t),rr(e,t,Aa(e[t],e))})),e}));function Zs(e){return function(){return e}}var eu=ki(),tu=ki(!0);function nu(e){return e}function ru(e){return Dr("function"==typeof e?e:ar(e,1))}var iu=zr((function(e,t){return function(n){return Ar(n,e,t)}})),ou=zr((function(e,t){return function(n){return Ar(e,n,t)}}));function au(e,t,n){var r=xs(t),i=Er(t,r);null!=n||Za(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,xs(t)));var o=!(Za(n)&&"chain"in n&&!n.chain),a=Ja(e);return It(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ni(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})})),e}function su(){}var uu=$i(jt),cu=$i(St),lu=$i(Mt);function fu(e){return go(e)?Ht(ko(e)):function(e){return function(t){return _r(t,e)}}(e)}var pu=Bi(),du=Bi(!0);function hu(){return[]}function vu(){return!1}var mu,yu=Fi((function(e,t){return e+t}),0),gu=qi("ceil"),bu=Fi((function(e,t){return e/t}),1),Eu=qi("floor"),_u=Fi((function(e,t){return e*t}),1),wu=qi("round"),Ou=Fi((function(e,t){return e-t}),0);return Vn.after=function(e,t){if("function"!=typeof t)throw new Se(o);return e=ds(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=Na,Vn.assign=gs,Vn.assignIn=bs,Vn.assignInWith=Es,Vn.assignWith=_s,Vn.at=ws,Vn.before=Sa,Vn.bind=Aa,Vn.bindAll=Ks,Vn.bindKey=Ra,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},Vn.chain=fa,Vn.chunk=function(e,t,n){t=(n?yo(e,t,n):t===i)?1:mn(ds(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(pt(o/t));a<o;)u[s++]=ei(e,a,a+=t);return u},Vn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Vn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Pt(Ha(n)?Ni(n):[n],vr(t,1))},Vn.cond=function(e){var t=null==e?0:e.length,n=oo();return e=t?jt(e,(function(e){if("function"!=typeof e[1])throw new Se(o);return[n(e[0]),e[1]]})):[],zr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Ot(i[0],this,n))return Ot(i[1],this,n)}}))},Vn.conforms=function(e){return function(e){var t=xs(e);return function(n){return sr(n,e,t)}}(ar(e,1))},Vn.constant=Zs,Vn.countBy=ha,Vn.create=function(e,t){var n=Fn(e);return null==t?n:nr(n,t)},Vn.curry=function e(t,n,r){var o=Yi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Vn.curryRight=function e(t,n,r){var o=Yi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Vn.debounce=xa,Vn.defaults=Os,Vn.defaultsDeep=Ts,Vn.defer=ja,Vn.delay=Pa,Vn.difference=Fo,Vn.differenceBy=$o,Vn.differenceWith=Uo,Vn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=n||t===i?1:ds(t))<0?0:t,r):[]},Vn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,0,(t=r-(t=n||t===i?1:ds(t)))<0?0:t):[]},Vn.dropRightWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!0,!0):[]},Vn.dropWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!0):[]},Vn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&yo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ds(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:ds(r))<0&&(r+=o),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Vn.filter=function(e,t){return(Ha(e)?At:hr)(e,oo(t,3))},Vn.flatMap=function(e,t){return vr(wa(e,t),1)},Vn.flatMapDeep=function(e,t){return vr(wa(e,t),l)},Vn.flatMapDepth=function(e,t,n){return n=n===i?1:ds(n),vr(wa(e,t),n)},Vn.flatten=Go,Vn.flattenDeep=function(e){return null!=e&&e.length?vr(e,l):[]},Vn.flattenDepth=function(e,t){return null!=e&&e.length?vr(e,t=t===i?1:ds(t)):[]},Vn.flip=function(e){return Yi(e,512)},Vn.flow=eu,Vn.flowRight=tu,Vn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Vn.functions=function(e){return null==e?[]:Er(e,xs(e))},Vn.functionsIn=function(e){return null==e?[]:Er(e,js(e))},Vn.groupBy=ba,Vn.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Vn.intersection=Wo,Vn.intersectionBy=zo,Vn.intersectionWith=Yo,Vn.invert=Ss,Vn.invertBy=As,Vn.invokeMap=Ea,Vn.iteratee=ru,Vn.keyBy=_a,Vn.keys=xs,Vn.keysIn=js,Vn.map=wa,Vn.mapKeys=function(e,t){var n={};return t=oo(t,3),gr(e,(function(e,r,i){rr(n,t(e,r,i),e)})),n},Vn.mapValues=function(e,t){var n={};return t=oo(t,3),gr(e,(function(e,r,i){rr(n,r,t(e,r,i))})),n},Vn.matches=function(e){return Cr(ar(e,1))},Vn.matchesProperty=function(e,t){return Vr(e,ar(t,1))},Vn.memoize=Da,Vn.merge=Ps,Vn.mergeWith=Ds,Vn.method=iu,Vn.methodOf=ou,Vn.mixin=au,Vn.negate=La,Vn.nthArg=function(e){return e=ds(e),zr((function(t){return $r(t,e)}))},Vn.omit=Ls,Vn.omitBy=function(e,t){return ks(e,La(oo(t)))},Vn.once=function(e){return Sa(2,e)},Vn.orderBy=function(e,t,n,r){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(n=r?i:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Vn.over=uu,Vn.overArgs=Ma,Vn.overEvery=cu,Vn.overSome=lu,Vn.partial=ka,Vn.partialRight=Ca,Vn.partition=Oa,Vn.pick=Ms,Vn.pickBy=ks,Vn.property=fu,Vn.propertyOf=function(e){return function(t){return null==e?i:_r(e,t)}},Vn.pull=Jo,Vn.pullAll=Qo,Vn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,oo(n,2)):e},Vn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,i,n):e},Vn.pullAt=Ko,Vn.range=pu,Vn.rangeRight=du,Vn.rearg=Va,Vn.reject=function(e,t){return(Ha(e)?At:hr)(e,La(oo(t,3)))},Vn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=oo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Gr(e,i),n},Vn.rest=function(e,t){if("function"!=typeof e)throw new Se(o);return zr(e,t=t===i?t:ds(t))},Vn.reverse=Zo,Vn.sampleSize=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:ds(t),(Ha(e)?Jn:Xr)(e,t)},Vn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Vn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},Vn.shuffle=function(e){return(Ha(e)?Qn:Zr)(e)},Vn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yo(e,t,n)?(t=0,n=r):(t=null==t?0:ds(t),n=n===i?r:ds(n)),ei(e,t,n)):[]},Vn.sortBy=Ta,Vn.sortedUniq=function(e){return e&&e.length?ii(e):[]},Vn.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},Vn.split=function(e,t,n){return n&&"number"!=typeof n&&yo(e,t,n)&&(t=n=i),(n=n===i?d:n>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=ai(t))&&rn(e)?gi(fn(e),0,n):e.split(t,n):[]},Vn.spread=function(e,t){if("function"!=typeof e)throw new Se(o);return t=null==t?0:mn(ds(t),0),zr((function(n){var r=n[t],i=gi(n,0,t);return r&&Pt(i,r),Ot(e,this,i)}))},Vn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Vn.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:ds(t))<0?0:t):[]},Vn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:ds(t)))<0?0:t,r):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?li(e,oo(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Se(o);return Za(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),xa(e,t,{leading:r,maxWait:t,trailing:i})},Vn.thru=pa,Vn.toArray=fs,Vn.toPairs=Cs,Vn.toPairsIn=Vs,Vn.toPath=function(e){return Ha(e)?jt(e,ko):ss(e)?[e]:Ni(Mo(ys(e)))},Vn.toPlainObject=ms,Vn.transform=function(e,t,n){var r=Ha(e),i=r||za(e)||us(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Za(e)&&Ja(o)?Fn(Ge(e)):{}}return(i?It:gr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Vn.unary=function(e){return Na(e,1)},Vn.union=ea,Vn.unionBy=ta,Vn.unionWith=na,Vn.uniq=function(e){return e&&e.length?si(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?si(e,oo(t,2)):[]},Vn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?si(e,i,t):[]},Vn.unset=function(e,t){return null==e||ui(e,t)},Vn.unzip=ra,Vn.unzipWith=ia,Vn.update=function(e,t,n){return null==e?e:ci(e,t,vi(n))},Vn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ci(e,t,vi(n),r)},Vn.values=Fs,Vn.valuesIn=function(e){return null==e?[]:Jt(e,js(e))},Vn.without=oa,Vn.words=Js,Vn.wrap=function(e,t){return ka(vi(t),e)},Vn.xor=aa,Vn.xorBy=sa,Vn.xorWith=ua,Vn.zip=ca,Vn.zipObject=function(e,t){return di(e||[],t||[],Zn)},Vn.zipObjectDeep=function(e,t){return di(e||[],t||[],Jr)},Vn.zipWith=la,Vn.entries=Cs,Vn.entriesIn=Vs,Vn.extend=bs,Vn.extendWith=Es,au(Vn,Vn),Vn.add=yu,Vn.attempt=Qs,Vn.camelCase=$s,Vn.capitalize=Us,Vn.ceil=gu,Vn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=vs(n))==n?n:0),t!==i&&(t=(t=vs(t))==t?t:0),or(vs(e),t,n)},Vn.clone=function(e){return ar(e,4)},Vn.cloneDeep=function(e){return ar(e,5)},Vn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:i)},Vn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:i)},Vn.conformsTo=function(e,t){return null==t||sr(e,t,xs(t))},Vn.deburr=Bs,Vn.defaultTo=function(e,t){return null==e||e!=e?t:e},Vn.divide=bu,Vn.endsWith=function(e,t,n){e=ys(e),t=ai(t);var r=e.length,o=n=n===i?r:or(ds(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Vn.eq=Fa,Vn.escape=function(e){return(e=ys(e))&&Y.test(e)?e.replace(W,tn):e},Vn.escapeRegExp=function(e){return(e=ys(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Vn.every=function(e,t,n){var r=Ha(e)?St:pr;return n&&yo(e,t,n)&&(t=i),r(e,oo(t,3))},Vn.find=va,Vn.findIndex=Bo,Vn.findKey=function(e,t){return Ct(e,oo(t,3),gr)},Vn.findLast=ma,Vn.findLastIndex=Ho,Vn.findLastKey=function(e,t){return Ct(e,oo(t,3),br)},Vn.floor=Eu,Vn.forEach=ya,Vn.forEachRight=ga,Vn.forIn=function(e,t){return null==e?e:mr(e,oo(t,3),js)},Vn.forInRight=function(e,t){return null==e?e:yr(e,oo(t,3),js)},Vn.forOwn=function(e,t){return e&&gr(e,oo(t,3))},Vn.forOwnRight=function(e,t){return e&&br(e,oo(t,3))},Vn.get=Is,Vn.gt=$a,Vn.gte=Ua,Vn.has=function(e,t){return null!=e&&po(e,t,Ir)},Vn.hasIn=Ns,Vn.head=qo,Vn.identity=nu,Vn.includes=function(e,t,n,r){e=qa(e)?e:Fs(e),n=n&&!r?ds(n):0;var i=e.length;return n<0&&(n=mn(i+n,0)),as(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ft(e,t,n)>-1},Vn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ds(n);return i<0&&(i=mn(r+i,0)),Ft(e,t,i)},Vn.inRange=function(e,t,n){return t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n){return e>=yn(t,n)&&e<mn(t,n)}(e=vs(e),t,n)},Vn.invoke=Rs,Vn.isArguments=Ba,Vn.isArray=Ha,Vn.isArrayBuffer=Ga,Vn.isArrayLike=qa,Vn.isArrayLikeObject=Wa,Vn.isBoolean=function(e){return!0===e||!1===e||es(e)&&Or(e)==y},Vn.isBuffer=za,Vn.isDate=Ya,Vn.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Vn.isEmpty=function(e){if(null==e)return!0;if(qa(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||za(e)||us(e)||Ba(e)))return!e.length;var t=fo(e);if(t==w||t==S)return!e.size;if(_o(e))return!Lr(e).length;for(var n in e)if(De.call(e,n))return!1;return!0},Vn.isEqual=function(e,t){return xr(e,t)},Vn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?xr(e,t,i,n):!!r},Vn.isError=Xa,Vn.isFinite=function(e){return"number"==typeof e&&kt(e)},Vn.isFunction=Ja,Vn.isInteger=Qa,Vn.isLength=Ka,Vn.isMap=ts,Vn.isMatch=function(e,t){return e===t||jr(e,t,so(t))},Vn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,jr(e,t,so(t),n)},Vn.isNaN=function(e){return ns(e)&&e!=+e},Vn.isNative=function(e){if(Eo(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},Vn.isNil=function(e){return null==e},Vn.isNull=function(e){return null===e},Vn.isNumber=ns,Vn.isObject=Za,Vn.isObjectLike=es,Vn.isPlainObject=rs,Vn.isRegExp=is,Vn.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=f},Vn.isSet=os,Vn.isString=as,Vn.isSymbol=ss,Vn.isTypedArray=us,Vn.isUndefined=function(e){return e===i},Vn.isWeakMap=function(e){return es(e)&&fo(e)==x},Vn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Or(e)},Vn.join=function(e,t){return null==e?"":Gt.call(e,t)},Vn.kebabCase=Hs,Vn.last=Xo,Vn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ds(n))<0?mn(r+o,0):yn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Vt(e,Ut,o,!0)},Vn.lowerCase=Gs,Vn.lowerFirst=qs,Vn.lt=cs,Vn.lte=ls,Vn.max=function(e){return e&&e.length?dr(e,nu,Tr):i},Vn.maxBy=function(e,t){return e&&e.length?dr(e,oo(t,2),Tr):i},Vn.mean=function(e){return Bt(e,nu)},Vn.meanBy=function(e,t){return Bt(e,oo(t,2))},Vn.min=function(e){return e&&e.length?dr(e,nu,Mr):i},Vn.minBy=function(e,t){return e&&e.length?dr(e,oo(t,2),Mr):i},Vn.stubArray=hu,Vn.stubFalse=vu,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=_u,Vn.nth=function(e,t){return e&&e.length?$r(e,ds(t)):i},Vn.noConflict=function(){return ft._===this&&(ft._=Ve),this},Vn.noop=su,Vn.now=Ia,Vn.pad=function(e,t,n){e=ys(e);var r=(t=ds(t))?ln(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ui(dt(i),n)+e+Ui(pt(i),n)},Vn.padEnd=function(e,t,n){e=ys(e);var r=(t=ds(t))?ln(e):0;return t&&r<t?e+Ui(t-r,n):e},Vn.padStart=function(e,t,n){e=ys(e);var r=(t=ds(t))?ln(e):0;return t&&r<t?Ui(t-r,n)+e:e},Vn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(ys(e).replace(re,""),t||0)},Vn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ps(e),t===i?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=En();return yn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return qr(e,t)},Vn.reduce=function(e,t,n){var r=Ha(e)?Dt:qt,i=arguments.length<3;return r(e,oo(t,4),n,i,lr)},Vn.reduceRight=function(e,t,n){var r=Ha(e)?Lt:qt,i=arguments.length<3;return r(e,oo(t,4),n,i,fr)},Vn.repeat=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:ds(t),Wr(ys(e),t)},Vn.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,n){var r=-1,o=(t=mi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[ko(t[r])];a===i&&(r=o,a=n),e=Ja(a)?a.call(e):a}return e},Vn.round=wu,Vn.runInContext=e,Vn.sample=function(e){return(Ha(e)?Xn:Yr)(e)},Vn.size=function(e){if(null==e)return 0;if(qa(e))return as(e)?ln(e):e.length;var t=fo(e);return t==w||t==S?e.size:Lr(e).length},Vn.snakeCase=Ws,Vn.some=function(e,t,n){var r=Ha(e)?Mt:ti;return n&&yo(e,t,n)&&(t=i),r(e,oo(t,3))},Vn.sortedIndex=function(e,t){return ni(e,t)},Vn.sortedIndexBy=function(e,t,n){return ri(e,t,oo(n,2))},Vn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ni(e,t);if(r<n&&Fa(e[r],t))return r}return-1},Vn.sortedLastIndex=function(e,t){return ni(e,t,!0)},Vn.sortedLastIndexBy=function(e,t,n){return ri(e,t,oo(n,2),!0)},Vn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ni(e,t,!0)-1;if(Fa(e[n],t))return n}return-1},Vn.startCase=zs,Vn.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:or(ds(n),0,e.length),t=ai(t),e.slice(n,n+t.length)==t},Vn.subtract=Ou,Vn.sum=function(e){return e&&e.length?Wt(e,nu):0},Vn.sumBy=function(e,t){return e&&e.length?Wt(e,oo(t,2)):0},Vn.template=function(e,t,n){var r=Vn.templateSettings;n&&yo(e,t,n)&&(t=i),e=ys(e),t=Es({},t,r,Xi);var o,a,s=Es({},t.imports,r.imports,Xi),u=xs(s),c=Jt(s,u),l=0,f=t.interpolate||be,p="__p += '",d=Ie((t.escape||be).source+"|"+f.source+"|"+(f===Q?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(De.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(d,(function(t,n,r,i,s,u){return r||(r=i),p+=e.slice(l,u).replace(Ee,nn),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),p+="';\n";var v=De.call(t,"variable")&&t.variable;if(v){if(ce.test(v))throw new _e("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(B,""):p).replace(H,"$1").replace(G,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Qs((function(){return we(u,h+"return "+p).apply(i,c)}));if(m.source=p,Xa(m))throw m;return m},Vn.times=function(e,t){if((e=ds(e))<1||e>f)return[];var n=d,r=yn(e,d);t=oo(t),e-=d;for(var i=zt(r,t);++n<e;)t(n);return i},Vn.toFinite=ps,Vn.toInteger=ds,Vn.toLength=hs,Vn.toLower=function(e){return ys(e).toLowerCase()},Vn.toNumber=vs,Vn.toSafeInteger=function(e){return e?or(ds(e),-9007199254740991,f):0===e?e:0},Vn.toString=ys,Vn.toUpper=function(e){return ys(e).toUpperCase()},Vn.trim=function(e,t,n){if((e=ys(e))&&(n||t===i))return Yt(e);if(!e||!(t=ai(t)))return e;var r=fn(e),o=fn(t);return gi(r,Kt(r,o),Zt(r,o)+1).join("")},Vn.trimEnd=function(e,t,n){if((e=ys(e))&&(n||t===i))return e.slice(0,pn(e)+1);if(!e||!(t=ai(t)))return e;var r=fn(e);return gi(r,0,Zt(r,fn(t))+1).join("")},Vn.trimStart=function(e,t,n){if((e=ys(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=ai(t)))return e;var r=fn(e);return gi(r,Kt(r,fn(t))).join("")},Vn.truncate=function(e,t){var n=30,r="...";if(Za(t)){var o="separator"in t?t.separator:o;n="length"in t?ds(t.length):n,r="omission"in t?ai(t.omission):r}var a=(e=ys(e)).length;if(rn(e)){var s=fn(e);a=s.length}if(n>=a)return e;var u=n-ln(r);if(u<1)return r;var c=s?gi(s,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(s&&(u+=c.length-u),is(o)){if(e.slice(u).search(o)){var l,f=c;for(o.global||(o=Ie(o.source,ys(pe.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;c=c.slice(0,p===i?u:p)}}else if(e.indexOf(ai(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r},Vn.unescape=function(e){return(e=ys(e))&&z.test(e)?e.replace(q,dn):e},Vn.uniqueId=function(e){var t=++Le;return ys(e)+t},Vn.upperCase=Ys,Vn.upperFirst=Xs,Vn.each=ya,Vn.eachRight=ga,Vn.first=qo,au(Vn,(mu={},gr(Vn,(function(e,t){De.call(Vn.prototype,t)||(mu[t]=e)})),mu),{chain:!1}),Vn.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vn[e].placeholder=Vn})),It(["drop","take"],(function(e,t){Bn.prototype[e]=function(n){n=n===i?1:mn(ds(n),0);var r=this.__filtered__&&!t?new Bn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Bn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),It(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Bn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),It(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Bn.prototype[e]=function(){return this[n](1).value()[0]}})),It(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Bn.prototype[e]=function(){return this.__filtered__?new Bn(this):this[n](1)}})),Bn.prototype.compact=function(){return this.filter(nu)},Bn.prototype.find=function(e){return this.filter(e).head()},Bn.prototype.findLast=function(e){return this.reverse().find(e)},Bn.prototype.invokeMap=zr((function(e,t){return"function"==typeof e?new Bn(this):this.map((function(n){return Ar(n,e,t)}))})),Bn.prototype.reject=function(e){return this.filter(La(oo(e)))},Bn.prototype.slice=function(e,t){e=ds(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Bn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ds(t))<0?n.dropRight(-t):n.take(t-e)),n)},Bn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Bn.prototype.toArray=function(){return this.take(d)},gr(Bn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Vn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Vn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Bn,c=s[0],l=u||Ha(t),f=function(e){var t=o.apply(Vn,Pt([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,v=u&&!d;if(!a&&l){t=v?t:new Bn(this);var m=e.apply(t,s);return m.__actions__.push({func:pa,args:[f],thisArg:i}),new Un(m,p)}return h&&v?e.apply(this,s):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})})),It(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ha(i)?i:[],e)}return this[n]((function(n){return t.apply(Ha(n)?n:[],e)}))}})),gr(Bn.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+"";De.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Ci(i,2).name]=[{name:"wrapper",func:i}],Bn.prototype.clone=function(){var e=new Bn(this.__wrapped__);return e.__actions__=Ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ni(this.__views__),e},Bn.prototype.reverse=function(){if(this.__filtered__){var e=new Bn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Bn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=mn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,p=0,d=yn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return fi(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var v=-1,m=e[c+=t];++v<f;){var y=l[v],g=y.iteratee,b=y.type,E=g(m);if(2==b)m=E;else if(!E){if(1==b)continue e;break e}}h[p++]=m}return h},Vn.prototype.at=da,Vn.prototype.chain=function(){return fa(this)},Vn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Vn.prototype.next=function(){this.__values__===i&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,n=this;n instanceof $n;){var r=Vo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Bn){var t=e;return this.__actions__.length&&(t=new Bn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[Zo],thisArg:i}),new Un(t,this.__chain__)}return this.thru(Zo)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return fi(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,Xe&&(Vn.prototype[Xe]=function(){return this}),Vn}();ft._=hn,(r=function(){return hn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},4099:(e,t,n)=>{"use strict";const r=n(8155),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),l=Symbol("noDisposeOnSet"),f=Symbol("lruList"),p=Symbol("cache"),d=Symbol("updateAgeOnGet"),h=()=>1,v=(e,t,n)=>{const r=e[p].get(t);if(r){const t=r.value;if(m(e,t)){if(g(e,r),!e[s])return}else n&&(e[d]&&(r.value.now=Date.now()),e[f].unshiftNode(r));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[u])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[u]&&n>e[u]},y=e=>{if(e[o]>e[i])for(let t=e[f].tail;e[o]>e[i]&&null!==t;){const n=t.prev;g(e,t),t=n}},g=(e,t)=>{if(t){const n=t.value;e[c]&&e[c](n.key,n.value),e[o]-=n.length,e[p].delete(n.key),e[f].removeNode(t)}};class b{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const E=(e,t,n,r)=>{let i=n.value;m(e,i)&&(g(e,n),e[s]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||h;if(this[a]="function"!=typeof t?h:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,y(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[u]=e,y(this)}get maxAge(){return this[u]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[a]&&(this[a]=e,this[o]=0,this[f].forEach((e=>{e.length=this[a](e.value,e.key),this[o]+=e.length}))),y(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[f].length}rforEach(e,t){t=t||this;for(let n=this[f].tail;null!==n;){const r=n.prev;E(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[f].head;null!==n;){const r=n.next;E(this,e,n,t),n=r}}keys(){return this[f].toArray().map((e=>e.key))}values(){return this[f].toArray().map((e=>e.value))}reset(){this[c]&&this[f]&&this[f].length&&this[f].forEach((e=>this[c](e.key,e.value))),this[p]=new Map,this[f]=new r,this[o]=0}dump(){return this[f].map((e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[f]}set(e,t,n){if((n=n||this[u])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,s=this[a](t,e);if(this[p].has(e)){if(s>this[i])return g(this,this[p].get(e)),!1;const a=this[p].get(e).value;return this[c]&&(this[l]||this[c](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[o]+=s-a.length,a.length=s,this.get(e),y(this),!0}const d=new b(e,t,s,r,n);return d.length>this[i]?(this[c]&&this[c](e,t),!1):(this[o]+=d.length,this[f].unshift(d),this[p].set(e,this[f].head),y(this),!0)}has(e){if(!this[p].has(e))return!1;const t=this[p].get(e).value;return!m(this,t)}get(e){return v(this,e,!0)}peek(e){return v(this,e,!1)}pop(){const e=this[f].tail;return e?(g(this,e),e.value):null}del(e){g(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[p].forEach(((e,t)=>v(this,t,!1)))}}},1906:(e,t,n)=>{"use strict";var r=n(2047),i=Object.create,o=Object.prototype.hasOwnProperty;e.exports=function(e){var t,n=0,a=1,s=i(null),u=i(null),c=0;return e=r(e),{hit:function(r){var i=u[r],l=++c;if(s[l]=r,u[r]=l,!i){if(++n<=e)return;return r=s[a],t(r),r}if(delete s[i],a===i)for(;!o.call(s,++a);)continue},delete:t=function(e){var t=u[e];if(t&&(delete s[t],delete u[e],--n,a===t)){if(!n)return c=0,void(a=1);for(;!o.call(s,++a);)continue}},clear:function(){n=0,a=1,s=i(null),u=i(null),c=0}}}},7539:(e,t,n)=>{"use strict";var r=n(3583),i=n(5120),o=n(559),a=n(860),s=n(6663),u=Array.prototype.slice,c=Function.prototype.apply,l=Object.create;n(6958).async=function(e,t){var n,f,p,d=l(null),h=l(null),v=t.memoized,m=t.original;t.memoized=a((function(e){var t=arguments,r=t[t.length-1];return"function"==typeof r&&(n=r,t=u.call(t,0,-1)),v.apply(f=this,p=t)}),v);try{o(t.memoized,v)}catch(e){}t.on("get",(function(e){var r,i,o;if(n){if(d[e])return"function"==typeof d[e]?d[e]=[d[e],n]:d[e].push(n),void(n=null);r=n,i=f,o=p,n=f=p=null,s((function(){var a;hasOwnProperty.call(h,e)?(a=h[e],t.emit("getasync",e,o,i),c.call(r,a.context,a.args)):(n=r,f=i,p=o,v.apply(i,o))}))}})),t.original=function(){var e,i,o,a;return n?(e=r(arguments),i=function e(n){var i,o,u=e.id;if(null!=u){if(delete e.id,i=d[u],delete d[u],i)return o=r(arguments),t.has(u)&&(n?t.delete(u):(h[u]={context:this,args:o},t.emit("setasync",u,"function"==typeof i?1:i.length))),"function"==typeof i?a=c.call(i,this,o):i.forEach((function(e){a=c.call(e,this,o)}),this),a}else s(c.bind(e,this,arguments))},o=n,n=f=p=null,e.push(i),a=c.call(m,this,e),i.cb=o,n=i,a):c.call(m,this,arguments)},t.on("set",(function(e){n?(d[e]?"function"==typeof d[e]?d[e]=[d[e],n.cb]:d[e].push(n.cb):d[e]=n.cb,delete n.cb,n.id=e,n=null):t.delete(e)})),t.on("delete",(function(e){var n;hasOwnProperty.call(d,e)||h[e]&&(n=h[e],delete h[e],t.emit("deleteasync",e,u.call(n.args,1)))})),t.on("clear",(function(){var e=h;h=l(null),t.emit("clearasync",i(e,(function(e){return u.call(e.args,1)})))}))}},8034:(e,t,n)=>{"use strict";var r=n(529),i=n(9483),o=n(6958),a=Function.prototype.apply;o.dispose=function(e,t,n){var s;if(r(e),n.async&&o.async||n.promise&&o.promise)return t.on("deleteasync",s=function(t,n){a.call(e,null,n)}),void t.on("clearasync",(function(e){i(e,(function(e,t){s(t,e)}))}));t.on("delete",s=function(t,n){e(n)}),t.on("clear",(function(e){i(e,(function(e,t){s(t,e)}))}))}},4276:(e,t,n)=>{"use strict";var r=n(3583),i=n(9483),o=n(6663),a=n(2687),s=n(9862),u=n(6958),c=Function.prototype,l=Math.max,f=Math.min,p=Object.create;u.maxAge=function(e,t,n){var d,h,v,m;(e=s(e))&&(d=p(null),h=n.async&&u.async||n.promise&&u.promise?"async":"",t.on("set"+h,(function(n){d[n]=setTimeout((function(){t.delete(n)}),e),"function"==typeof d[n].unref&&d[n].unref(),m&&(m[n]&&"nextTick"!==m[n]&&clearTimeout(m[n]),m[n]=setTimeout((function(){delete m[n]}),v),"function"==typeof m[n].unref&&m[n].unref())})),t.on("delete"+h,(function(e){clearTimeout(d[e]),delete d[e],m&&("nextTick"!==m[e]&&clearTimeout(m[e]),delete m[e])})),n.preFetch&&(v=!0===n.preFetch||isNaN(n.preFetch)?.333:l(f(Number(n.preFetch),1),0))&&(m={},v=(1-v)*e,t.on("get"+h,(function(e,i,s){m[e]||(m[e]="nextTick",o((function(){var o;"nextTick"===m[e]&&(delete m[e],t.delete(e),n.async&&(i=r(i)).push(c),o=t.memoized.apply(s,i),n.promise&&a(o)&&("function"==typeof o.done?o.done(c,c):o.then(c,c)))})))}))),t.on("clear"+h,(function(){i(d,(function(e){clearTimeout(e)})),d={},m&&(i(m,(function(e){"nextTick"!==e&&clearTimeout(e)})),m={})})))}},337:(e,t,n)=>{"use strict";var r=n(2047),i=n(1906),o=n(6958);o.max=function(e,t,n){var a,s,u;(e=r(e))&&(s=i(e),a=n.async&&o.async||n.promise&&o.promise?"async":"",t.on("set"+a,u=function(e){void 0!==(e=s.hit(e))&&t.delete(e)}),t.on("get"+a,u),t.on("delete"+a,s.delete),t.on("clear"+a,s.clear))}},4234:(e,t,n)=>{"use strict";var r=n(5120),i=n(8758),o=n(3630),a=n(5160),s=n(2687),u=n(6663),c=Object.create,l=i("then","then:finally","done","done:finally");n(6958).promise=function(e,t){var n=c(null),i=c(null),f=c(null);if(!0===e)e=null;else if(e=o(e),!l[e])throw new TypeError("'"+a(e)+"' is not valid promise mode");t.on("set",(function(r,o,a){var c=!1;if(!s(a))return i[r]=a,void t.emit("setasync",r,1);n[r]=1,f[r]=a;var l=function(e){var o=n[r];if(c)throw new Error("Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)\nConsider to rely on 'then' or 'done' mode instead.");o&&(delete n[r],i[r]=e,t.emit("setasync",r,o))},p=function(){c=!0,n[r]&&(delete n[r],delete f[r],t.delete(r))},d=e;if(d||(d="then"),"then"===d){var h=function(){u(p)};"function"==typeof(a=a.then((function(e){u(l.bind(this,e))}),h)).finally&&a.finally(h)}else if("done"===d){if("function"!=typeof a.done)throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");a.done(l,p)}else if("done:finally"===d){if("function"!=typeof a.done)throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if("function"!=typeof a.finally)throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");a.done(l),a.finally(p)}})),t.on("get",(function(e,r,i){var o;if(n[e])++n[e];else{o=f[e];var a=function(){t.emit("getasync",e,r,i)};s(o)?"function"==typeof o.done?o.done(a):o.then((function(){u(a)})):a()}})),t.on("delete",(function(e){if(delete f[e],n[e])delete n[e];else if(hasOwnProperty.call(i,e)){var r=i[e];delete i[e],t.emit("deleteasync",e,[r])}})),t.on("clear",(function(){var e=i;i=c(null),n=c(null),f=c(null),t.emit("clearasync",r(e,(function(e){return[e]})))}))}},9211:(e,t,n)=>{"use strict";var r=n(3706),i=n(6958),o=Object.create,a=Object.defineProperties;i.refCounter=function(e,t,n){var s,u;s=o(null),u=n.async&&i.async||n.promise&&i.promise?"async":"",t.on("set"+u,(function(e,t){s[e]=t||1})),t.on("get"+u,(function(e){++s[e]})),t.on("delete"+u,(function(e){delete s[e]})),t.on("clear"+u,(function(){s={}})),a(t.memoized,{deleteRef:r((function(){var e=t.get(arguments);return null===e?null:s[e]?! --s[e]&&(t.delete(e),!0):null})),getRefCount:r((function(){var e=t.get(arguments);return null===e?0:s[e]?s[e]:0}))})}},1695:(e,t,n)=>{"use strict";var r=n(5482),i=n(1852),o=n(8935);e.exports=function(e){var t,a=r(arguments[1]);return a.normalizer||0!==(t=a.length=i(a.length,e.length,a.async))&&(a.primitive?!1===t?a.normalizer=n(8413):t>1&&(a.normalizer=n(6695)(t)):a.normalizer=!1===t?n(8576)():1===t?n(9626)():n(3219)(t)),a.async&&n(7539),a.promise&&n(4234),a.dispose&&n(8034),a.maxAge&&n(4276),a.max&&n(337),a.refCounter&&n(9211),o(e,a)}},2828:(e,t,n)=>{"use strict";var r=n(3678),i=n(860),o=n(3706),a=n(4697).methods,s=n(1706),u=n(5621),c=Function.prototype.apply,l=Function.prototype.call,f=Object.create,p=Object.defineProperties,d=a.on,h=a.emit;e.exports=function(e,t,n){var a,v,m,y,g,b,E,_,w,O,T,I,N,S,A,R=f(null);return v=!1!==t?t:isNaN(e.length)?1:e.length,n.normalizer&&(O=u(n.normalizer),m=O.get,y=O.set,g=O.delete,b=O.clear),null!=n.resolvers&&(A=s(n.resolvers)),S=m?i((function(t){var n,i,o=arguments;if(A&&(o=A(o)),null!==(n=m(o))&&hasOwnProperty.call(R,n))return T&&a.emit("get",n,o,this),R[n];if(i=1===o.length?l.call(e,this,o[0]):c.call(e,this,o),null===n){if(null!==(n=m(o)))throw r("Circular invocation","CIRCULAR_INVOCATION");n=y(o)}else if(hasOwnProperty.call(R,n))throw r("Circular invocation","CIRCULAR_INVOCATION");return R[n]=i,I&&a.emit("set",n,null,i),i}),v):0===t?function(){var t;if(hasOwnProperty.call(R,"data"))return T&&a.emit("get","data",arguments,this),R.data;if(t=arguments.length?c.call(e,this,arguments):l.call(e,this),hasOwnProperty.call(R,"data"))throw r("Circular invocation","CIRCULAR_INVOCATION");return R.data=t,I&&a.emit("set","data",null,t),t}:function(t){var n,i,o=arguments;if(A&&(o=A(arguments)),i=String(o[0]),hasOwnProperty.call(R,i))return T&&a.emit("get",i,o,this),R[i];if(n=1===o.length?l.call(e,this,o[0]):c.call(e,this,o),hasOwnProperty.call(R,i))throw r("Circular invocation","CIRCULAR_INVOCATION");return R[i]=n,I&&a.emit("set",i,null,n),n},a={original:e,memoized:S,profileName:n.profileName,get:function(e){return A&&(e=A(e)),m?m(e):String(e[0])},has:function(e){return hasOwnProperty.call(R,e)},delete:function(e){var t;hasOwnProperty.call(R,e)&&(g&&g(e),t=R[e],delete R[e],N&&a.emit("delete",e,t))},clear:function(){var e=R;b&&b(),R=f(null),a.emit("clear",e)},on:function(e,t){return"get"===e?T=!0:"set"===e?I=!0:"delete"===e&&(N=!0),d.call(this,e,t)},emit:h,updateEnv:function(){e=a.original}},E=m?i((function(e){var t,n=arguments;A&&(n=A(n)),null!==(t=m(n))&&a.delete(t)}),v):0===t?function(){return a.delete("data")}:function(e){return A&&(e=A(arguments)[0]),a.delete(e)},_=i((function(){var e,n=arguments;return 0===t?R.data:(A&&(n=A(n)),e=m?m(n):String(n[0]),R[e])})),w=i((function(){var e,n=arguments;return 0===t?a.has("data"):(A&&(n=A(n)),null!==(e=m?m(n):String(n[0]))&&a.has(e))})),p(S,{__memoized__:o(!0),delete:o(E),clear:o(a.clear),_get:o(_),_has:o(w)}),a}},6958:()=>{},1852:(e,t,n)=>{"use strict";var r=n(2047);e.exports=function(e,t,n){var i;return isNaN(e)?(i=t)>=0?n&&i?i-1:i:1:!1!==e&&r(e)}},5621:(e,t,n)=>{"use strict";var r=n(529);e.exports=function(e){var t;return"function"==typeof e?{set:e,get:e}:(t={get:r(e.get)},void 0!==e.set?(t.set=r(e.set),e.delete&&(t.delete=r(e.delete)),e.clear&&(t.clear=r(e.clear)),t):(t.set=t.get,t))}},1706:(e,t,n)=>{"use strict";var r,i=n(8017),o=n(9340),a=n(529),s=Array.prototype.slice;r=function(e){return this.map((function(t,n){return t?t(e[n]):e[n]})).concat(s.call(e,this.length))},e.exports=function(e){return(e=i(e)).forEach((function(e){o(e)&&a(e)})),r.bind(e)}},9626:(e,t,n)=>{"use strict";var r=n(5740);e.exports=function(){var e=0,t=[],n=[];return{get:function(e){var i=r.call(t,e[0]);return-1===i?null:n[i]},set:function(r){return t.push(r[0]),n.push(++e),e},delete:function(e){var i=r.call(n,e);-1!==i&&(t.splice(i,1),n.splice(i,1))},clear:function(){t=[],n=[]}}}},3219:(e,t,n)=>{"use strict";var r=n(5740),i=Object.create;e.exports=function(e){var t=0,n=[[],[]],o=i(null);return{get:function(t){for(var i,o=0,a=n;o<e-1;){if(-1===(i=r.call(a[0],t[o])))return null;a=a[1][i],++o}return-1===(i=r.call(a[0],t[o]))?null:a[1][i]||null},set:function(i){for(var a,s=0,u=n;s<e-1;)-1===(a=r.call(u[0],i[s]))&&(a=u[0].push(i[s])-1,u[1].push([[],[]])),u=u[1][a],++s;return-1===(a=r.call(u[0],i[s]))&&(a=u[0].push(i[s])-1),u[1][a]=++t,o[t]=i,t},delete:function(t){for(var i,a=0,s=n,u=[],c=o[t];a<e-1;){if(-1===(i=r.call(s[0],c[a])))return;u.push(s,i),s=s[1][i],++a}if(-1!==(i=r.call(s[0],c[a]))){for(t=s[1][i],s[0].splice(i,1),s[1].splice(i,1);!s[0].length&&u.length;)i=u.pop(),(s=u.pop())[0].splice(i,1),s[1].splice(i,1);delete o[t]}},clear:function(){n=[[],[]],o=i(null)}}}},6695:e=>{"use strict";e.exports=function(e){return e?function(t){for(var n=String(t[0]),r=0,i=e;--i;)n+=""+t[++r];return n}:function(){return""}}},8576:(e,t,n)=>{"use strict";var r=n(5740),i=Object.create;e.exports=function(){var e=0,t=[],n=i(null);return{get:function(e){var n,i=0,o=t,a=e.length;if(0===a)return o[a]||null;if(o=o[a]){for(;i<a-1;){if(-1===(n=r.call(o[0],e[i])))return null;o=o[1][n],++i}return-1===(n=r.call(o[0],e[i]))?null:o[1][n]||null}return null},set:function(i){var o,a=0,s=t,u=i.length;if(0===u)s[u]=++e;else{for(s[u]||(s[u]=[[],[]]),s=s[u];a<u-1;)-1===(o=r.call(s[0],i[a]))&&(o=s[0].push(i[a])-1,s[1].push([[],[]])),s=s[1][o],++a;-1===(o=r.call(s[0],i[a]))&&(o=s[0].push(i[a])-1),s[1][o]=++e}return n[e]=i,e},delete:function(e){var i,o=0,a=t,s=n[e],u=s.length,c=[];if(0===u)delete a[u];else if(a=a[u]){for(;o<u-1;){if(-1===(i=r.call(a[0],s[o])))return;c.push(a,i),a=a[1][i],++o}if(-1===(i=r.call(a[0],s[o])))return;for(e=a[1][i],a[0].splice(i,1),a[1].splice(i,1);!a[0].length&&c.length;)i=c.pop(),(a=c.pop())[0].splice(i,1),a[1].splice(i,1)}delete n[e]},clear:function(){t=[],n=i(null)}}}},8413:e=>{"use strict";e.exports=function(e){var t,n,r=e.length;if(!r)return"";for(t=String(e[n=0]);--r;)t+=""+e[++n];return t}},8935:(e,t,n)=>{"use strict";var r=n(529),i=n(9483),o=n(6958),a=n(2828),s=n(1852);e.exports=function e(t){var n,u,c;if(r(t),(n=Object(arguments[1])).async&&n.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!n.force?t:(u=s(n.length,t.length,n.async&&o.async),c=a(t,u,n),i(o,(function(e,t){n[t]&&e(n[t],c,n)})),e.__profiler__&&e.__profiler__(c),c.updateEnv(),c.memoized)}},4610:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={label:"element-highlighter_label__IcLj0",frame:"element-highlighter_frame__K1cr8"}},4858:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={offset:"6",overlayBorder:"frame_overlayBorder__5sw9A",hidden:"frame_hidden__vILaI"}},5080:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={componentStrip:"component-strip_componentStrip__kq173",nameBlock:"component-strip_nameBlock__JYgk1",version:"component-strip_version__SyWej"}},3174:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={othersContainer:"label_othersContainer__DYfRN",othersTooltip:"label_othersTooltip__OkJs2",active:"label_active__dqbi+",hidden:"label_hidden__w7v+u"}},108:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={highlighter:"highlighter-provider_highlighter__vY8on",active:"highlighter-provider_active__xgxqx",label:"highlighter-provider_label__iLN6B"}},6663:(e,t,n)=>{"use strict";var r=n(8558),i=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},o=function(e){var t,n,r=document.createTextNode(""),o=0;return new e((function(){var e;if(t)n&&(t=n.concat(t));else{if(!n)return;t=n}if(n=t,t=null,"function"==typeof n)return e=n,n=null,void e();for(r.data=o=++o%2;n;)e=n.shift(),n.length||(n=null),e()})).observe(r,{characterData:!0}),function(e){i(e),t?"function"==typeof t?t=[t,e]:t.push(e):(t=e,r.data=o=++o%2)}};e.exports=function(){if("object"==typeof r&&r&&"function"==typeof r.nextTick)return r.nextTick;if("function"==typeof queueMicrotask)return function(e){queueMicrotask(i(e))};if("object"==typeof document&&document){if("function"==typeof MutationObserver)return o(MutationObserver);if("function"==typeof WebKitMutationObserver)return o(WebKitMutationObserver)}return"function"==typeof setImmediate?function(e){setImmediate(i(e))}:"function"==typeof setTimeout||"object"==typeof setTimeout?function(e){setTimeout(i(e),0)}:null}()},2101:(e,t,n)=>{"use strict";var r=n(8558);function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",i=0):i=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var a={resolve:function(){for(var e,t="",n=!1,a=arguments.length-1;a>=-1&&!n;a--){var s;a>=0?s=arguments[a]:(void 0===e&&(e=r.cwd()),s=e),i(s),0!==s.length&&(t=s+"/"+t,n=47===s.charCodeAt(0))}return t=o(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];i(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":a.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=a.resolve(e))===(t=a.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var r=e.length,o=r-n,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var u=t.length-s,c=o<u?o:u,l=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(47===t.charCodeAt(s+f))return t.slice(s+f+1);if(0===f)return t.slice(s+f)}else o>c&&(47===e.charCodeAt(n+f)?l=f:0===f&&(l=0));break}var p=e.charCodeAt(n+f);if(p!==t.charCodeAt(s+f))break;47===p&&(l=f)}var d="";for(f=n+l+1;f<=r;++f)f!==r&&47!==e.charCodeAt(f)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(s+l):(s+=l,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!o){r=a;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var n,r=0,o=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,u=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!a){r=n+1;break}}else-1===u&&(a=!1,u=n+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=u))}return r===o?o=u:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){r=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname:function(e){i(e);for(var t=-1,n=0,r=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47!==u)-1===r&&(o=!1,r=s+1),46===u?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){n=s+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),o=47===r;o?(t.root="/",n=1):n=0;for(var a=-1,s=0,u=-1,c=!0,l=e.length-1,f=0;l>=n;--l)if(47!==(r=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===r?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1);else if(!c){s=l+1;break}return-1===a||-1===u||0===f||1===f&&a===u-1&&a===s+1?-1!==u&&(t.base=t.name=0===s&&o?e.slice(1,u):e.slice(s,u)):(0===s&&o?(t.name=e.slice(1,a),t.base=e.slice(1,u)):(t.name=e.slice(s,a),t.base=e.slice(s,u)),t.ext=e.slice(a,u)),s>0?t.dir=e.slice(0,s-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,e.exports=a},8926:(e,t,n)=>{"use strict";var r,i,o,a,s;n.r(t),n.d(t,{ErrorCode:()=>o,connectToChild:()=>w,connectToParent:()=>O}),function(e){e.Call="call",e.Reply="reply",e.Syn="syn",e.SynAck="synAck",e.Ack="ack"}(r||(r={})),function(e){e.Fulfilled="fulfilled",e.Rejected="rejected"}(i||(i={})),function(e){e.ConnectionDestroyed="ConnectionDestroyed",e.ConnectionTimeout="ConnectionTimeout",e.NoIframeSrc="NoIframeSrc"}(o||(o={})),function(e){e.DataCloneError="DataCloneError"}(a||(a={})),function(e){e.Message="message"}(s||(s={}));const u=(e,t)=>{const n=[];let r=!1;return{destroy(i){r||(r=!0,t(`${e}: Destroying connection`),n.forEach((e=>{e(i)})))},onDestroy(e){r?e():n.push(e)}}},c=e=>(...t)=>{e&&console.log("[Penpal]",...t)},l={"http:":"80","https:":"443"},f=/^(https?:)?\/\/([^/:]+)?(:(\d+))?/,p=["file:","data:"],d=({name:e,message:t,stack:n})=>({name:e,message:t,stack:n}),h=(e,t,n)=>{const{localName:o,local:u,remote:c,originForSending:l,originForReceiving:f}=e;let p=!1;const h=e=>{if(e.source!==c||e.data.penpal!==r.Call)return;if("*"!==f&&e.origin!==f)return void n(`${o} received message from origin ${e.origin} which did not match expected origin ${f}`);const s=e.data,{methodName:u,args:h,id:v}=s;n(`${o}: Received ${u}() call`);const m=e=>t=>{if(n(`${o}: Sending ${u}() reply`),p)return void n(`${o}: Unable to send ${u}() reply due to destroyed connection`);const s={penpal:r.Reply,id:v,resolution:e,returnValue:t};e===i.Rejected&&t instanceof Error&&(s.returnValue=d(t),s.returnValueIsError=!0);try{c.postMessage(s,l)}catch(e){if(e.name===a.DataCloneError){const t={penpal:r.Reply,id:v,resolution:i.Rejected,returnValue:d(e),returnValueIsError:!0};c.postMessage(t,l)}throw e}};new Promise((e=>e(t[u].apply(t,h)))).then(m(i.Fulfilled),m(i.Rejected))};return u.addEventListener(s.Message,h),()=>{p=!0,u.removeEventListener(s.Message,h)}};let v=0;const m=()=>++v,y=e=>e?e.split("."):[],g=(e,t,n)=>{const r=y(t);return r.reduce(((e,t,i)=>(void 0===e[t]&&(e[t]={}),i===r.length-1&&(e[t]=n),e[t])),e),e},b=(e,t)=>{const n={};return Object.keys(e).forEach((r=>{const i=e[r],o=((e,t)=>{const n=y(t||"");return n.push(e),(e=>e.join("."))(n)})(r,t);"object"==typeof i&&Object.assign(n,b(i,o)),"function"==typeof i&&(n[o]=i)})),n},E=(e,t,n,a,u)=>{const{localName:c,local:l,remote:f,originForSending:p,originForReceiving:d}=t;let h=!1;u(`${c}: Connecting call sender`);const v=n.reduce(((e,t)=>{return e[t]=(n=t,(...e)=>{let t;u(`${c}: Sending ${n}() call`);try{f.closed&&(t=!0)}catch(e){t=!0}if(t&&a(),h){const e=new Error(`Unable to send ${n}() call due to destroyed connection`);throw e.code=o.ConnectionDestroyed,e}return new Promise(((t,o)=>{const a=m(),h=e=>{if(e.source!==f||e.data.penpal!==r.Reply||e.data.id!==a)return;if("*"!==d&&e.origin!==d)return void u(`${c} received message from origin ${e.origin} which did not match expected origin ${d}`);const p=e.data;u(`${c}: Received ${n}() reply`),l.removeEventListener(s.Message,h);let v=p.returnValue;p.returnValueIsError&&(v=(e=>{const t=new Error;return Object.keys(e).forEach((n=>t[n]=e[n])),t})(v)),(p.resolution===i.Fulfilled?t:o)(v)};l.addEventListener(s.Message,h);const v={penpal:r.Call,id:a,methodName:n,args:e};f.postMessage(v,p)}))}),e;var n}),{});return Object.assign(e,(e=>{const t={};for(const n in e)g(t,n,e[n]);return t})(v)),()=>{h=!0}},_=(e,t)=>{let n;return void 0!==e&&(n=window.setTimeout((()=>{const n=new Error(`Connection timed out after ${e}ms`);n.code=o.ConnectionTimeout,t(n)}),e)),()=>{clearTimeout(n)}},w=e=>{let{iframe:t,methods:n={},childOrigin:i,timeout:a,debug:d=!1}=e;const v=c(d),m=u("Parent",v),{onDestroy:y,destroy:g}=m;i||((e=>{if(!e.src&&!e.srcdoc){const e=new Error("Iframe must have src or srcdoc property defined.");throw e.code=o.NoIframeSrc,e}})(t),i=(e=>{if(e&&p.find((t=>e.startsWith(t))))return"null";const t=document.location,n=f.exec(e);let r,i,o;return n?(r=n[1]?n[1]:t.protocol,i=n[2],o=n[4]):(r=t.protocol,i=t.hostname,o=t.port),`${r}//${i}${o&&o!==l[r]?`:${o}`:""}`})(t.src));const w="null"===i?"*":i,O=b(n),T=((e,t,n,i)=>o=>{if(!o.source)return;if("*"!==n&&o.origin!==n)return void e(`Parent: Handshake - Received SYN message from origin ${o.origin} which did not match expected origin ${n}`);e("Parent: Handshake - Received SYN, responding with SYN-ACK");const a={penpal:r.SynAck,methodNames:Object.keys(t)};o.source.postMessage(a,i)})(v,O,i,w),I=((e,t,n,r,i)=>{const{destroy:o,onDestroy:a}=r;let s,u;const c={};return r=>{if("*"!==t&&r.origin!==t)return void i(`Parent: Handshake - Received ACK message from origin ${r.origin} which did not match expected origin ${t}`);i("Parent: Handshake - Received ACK");const l={localName:"Parent",local:window,remote:r.source,originForSending:n,originForReceiving:t};s&&s(),s=h(l,e,i),a(s),u&&u.forEach((e=>{delete c[e]})),u=r.data.methodNames;const f=E(c,l,u,o,i);return a(f),c}})(O,i,w,m,v),N=new Promise(((e,n)=>{const i=_(a,g),o=n=>{if(n.source===t.contentWindow&&n.data)if(n.data.penpal!==r.Syn)if(n.data.penpal!==r.Ack);else{const t=I(n);t&&(i(),e(t))}else T(n)};window.addEventListener(s.Message,o),v("Parent: Awaiting handshake"),((e,t)=>{const{destroy:n,onDestroy:r}=t,i=setInterval((()=>{e.isConnected||(clearInterval(i),n())}),6e4);r((()=>{clearInterval(i)}))})(t,m),y((e=>{window.removeEventListener(s.Message,o),e&&n(e)}))}));return{promise:N,destroy(){g()}}},O=(e={})=>{const{parentOrigin:t="*",methods:n={},timeout:i,debug:o=!1}=e,a=c(o),l=u("Child",a),{destroy:f,onDestroy:p}=l,d=b(n),v=((e,t,n,i)=>{const{destroy:o,onDestroy:a}=n;return n=>{if(!(e instanceof RegExp?e.test(n.origin):"*"===e||e===n.origin))return void i(`Child: Handshake - Received SYN-ACK from origin ${n.origin} which did not match expected origin ${e}`);i("Child: Handshake - Received SYN-ACK, responding with ACK");const s="null"===n.origin?"*":n.origin,u={penpal:r.Ack,methodNames:Object.keys(t)};window.parent.postMessage(u,s);const c={localName:"Child",local:window,remote:window.parent,originForSending:s,originForReceiving:n.origin},l=h(c,t,i);a(l);const f={},p=E(f,c,n.data.methodNames,o,i);return a(p),f}})(t,d,l,a);return{promise:new Promise(((e,n)=>{const o=_(i,f),u=t=>{if((()=>{try{clearTimeout()}catch(e){return!1}return!0})()&&t.source===parent&&t.data&&t.data.penpal===r.SynAck){const n=v(t);n&&(window.removeEventListener(s.Message,u),o(),e(n))}};window.addEventListener(s.Message,u),(()=>{a("Child: Handshake - Sending SYN");const e={penpal:r.Syn},n=t instanceof RegExp?"*":t;window.parent.postMessage(e,n)})(),p((e=>{window.removeEventListener(s.Message,u),e&&n(e)}))})),destroy(){f()}}}},8558:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&p())}function p(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new d(e,t)),1!==u.length||c||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},887:(e,t,n)=>{"use strict";const r=n(373),i=n(4233),o=n(3921),a=n(6901);function s(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function c(e,t){return t.decode?i(e):e}function l(e){return Array.isArray(e)?e.sort():"object"==typeof e?l(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&c(n,e).includes(e.arrayFormatSeparator);n=o?c(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>c(t,e))):null===n?n:c(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?c(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>c(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:c(a,t),n(c(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=d(n[e],t);else r[e]=d(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=l(n):e[t]=n,e}),Object.create(null))}t.extract=p,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&(e=>null==e)(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[",i,"]"].join("")]:[...n,[u(t,e),"[",u(i,e),"]=",u(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[]"].join("")]:[...n,[u(t,e),"[]=",u(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[u(n,e),t,u(i,e)].join("")]:[[r,u(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,u(t,e)]:[...n,[u(t,e),"=",u(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?u(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?u(n,t)+"[]":i.reduce(r(n),[]).join("&"):u(n,t)+"="+u(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:h(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:c(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=f(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let s=t.stringify(a,n);s&&(s=`?${s}`);let c=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(c=`#${u(e.fragmentIdentifier,n)}`),`${r}${s}${c}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0},r);const{url:i,query:o,fragmentIdentifier:s}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:s},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},4957:(e,t,n)=>{var r,i=n(8558);!function(e){!function(){var t="object"==typeof n.g?n.g:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=o(e);function o(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===t.Reflect?t.Reflect=e:r=o(t.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return k(Object.create(null))}:s?function(){return k({__proto__:null})}:function(){return k({})},has:u?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:u?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),f="object"==typeof i&&i.env&&"true"===i.env.REFLECT_METADATA_USE_MAP_POLYFILL,p=f||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[o]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,a)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[o]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function a(e,t){return[e,t]}}():Map,d=f||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new p}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[o]=function(){return this.keys()},e}():Set,h=new(f||"function"!=typeof WeakMap?function(){var e=c.create(),n=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&c.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?c.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+a()}while(c.has(e,t));return e[t]=!0,t}function i(e,r){if(!t.call(e,n)){if(!r)return;Object.defineProperty(e,n,{value:c.create()})}return e[n]}function o(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function a(){var e,t=(e=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):o(new Uint8Array(e),e):o(new Array(e),e));t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var n="",r=0;r<16;++r){var i=t[r];4!==r&&6!==r&&8!==r||(n+="-"),i<16&&(n+="0"),n+=i.toString(16).toLowerCase()}return n}}():WeakMap);function v(e,t,n){var r=h.get(e);if(T(r)){if(!n)return;r=new p,h.set(e,r)}var i=r.get(t);if(T(i)){if(!n)return;i=new p,r.set(t,i)}return i}function m(e,t,n){if(y(e,t,n))return!0;var r=M(t);return!I(r)&&m(e,r,n)}function y(e,t,n){var r=v(t,n,!1);return!T(r)&&!!r.has(e)}function g(e,t,n){if(y(e,t,n))return b(e,t,n);var r=M(t);return I(r)?void 0:g(e,r,n)}function b(e,t,n){var r=v(t,n,!1);if(!T(r))return r.get(e)}function E(e,t,n,r){v(n,r,!0).set(e,t)}function _(e,t){var n=w(e,t),r=M(e);if(null===r)return n;var i=_(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var o=new d,a=[],s=0,u=n;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var l=0,f=i;l<f.length;l++)c=f[l],o.has(c)||(o.add(c),a.push(c));return a}function w(e,t){var n=[],r=v(e,t,!1);if(T(r))return n;for(var i=function(e){var t=P(e,o);if(!x(t))throw new TypeError;var n=t.call(e);if(!N(n))throw new TypeError;return n}(r.keys()),a=0;;){var s=D(i);if(!s)return n.length=a,n;var u=s.value;try{n[a]=u}catch(e){try{L(i)}finally{throw e}}a++}}function O(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function T(e){return void 0===e}function I(e){return null===e}function N(e){return"object"==typeof e?null!==e:"function"==typeof e}function S(e,t){switch(O(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var n=3===t?"string":5===t?"number":"default",i=P(e,r);if(void 0!==i){var o=i.call(e,n);if(N(o))throw new TypeError;return o}return function(e,t){if("string"===t){var n=e.toString;if(x(n)&&!N(i=n.call(e)))return i;if(x(r=e.valueOf)&&!N(i=r.call(e)))return i}else{var r;if(x(r=e.valueOf)&&!N(i=r.call(e)))return i;var i,o=e.toString;if(x(o)&&!N(i=o.call(e)))return i}throw new TypeError}(e,"default"===n?"number":n)}function A(e){var t=S(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function R(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function x(e){return"function"==typeof e}function j(e){return"function"==typeof e}function P(e,t){var n=e[t];if(null!=n){if(!x(n))throw new TypeError;return n}}function D(e){var t=e.next();return!t.done&&t}function L(e){var t=e.return;t&&t.call(e)}function M(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===l)return t;if(t!==l)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function k(e){return e.__=void 0,delete e.__,e}e("decorate",(function(e,t,n,r){if(T(n)){if(!R(e))throw new TypeError;if(!j(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!T(r)&&!I(r)){if(!j(r))throw new TypeError;t=r}}return t}(e,t)}if(!R(e))throw new TypeError;if(!N(t))throw new TypeError;if(!N(r)&&!T(r)&&!I(r))throw new TypeError;return I(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!T(o)&&!I(o)){if(!N(o))throw new TypeError;r=o}}return r}(e,t,n=A(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!N(n))throw new TypeError;if(!T(r)&&!function(e){switch(O(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;E(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!N(n))throw new TypeError;return T(r)||(r=A(r)),E(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!N(t))throw new TypeError;return T(n)||(n=A(n)),m(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!N(t))throw new TypeError;return T(n)||(n=A(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!N(t))throw new TypeError;return T(n)||(n=A(n)),g(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!N(t))throw new TypeError;return T(n)||(n=A(n)),b(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!N(e))throw new TypeError;return T(t)||(t=A(t)),_(e,t)})),e("getOwnMetadataKeys",(function(e,t){if(!N(e))throw new TypeError;return T(t)||(t=A(t)),w(e,t)})),e("deleteMetadata",(function(e,t,n){if(!N(t))throw new TypeError;T(n)||(n=A(n));var r=v(t,n,!1);if(T(r))return!1;if(!r.delete(e))return!1;if(r.size>0)return!0;var i=h.get(t);return i.delete(n),i.size>0||h.delete(t),!0}))}(r)}()}(r||(r={}))},6156:(e,t,n)=>{const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new l(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new f(e.value,t).test(this.value):""===e.operator?""===e.value||new f(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=i;const o=n(5068),{safeRe:a,t:s}=n(6138),u=n(4555),c=n(9900),l=n(704),f=n(9907)},9907:(e,t,n)=>{class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!m(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&h)|(this.options.loose&&v))+":"+e,n=i.get(t);if(n)return n;const r=this.options.loose,o=r?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(o,R(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(c[l.COMPARATORTRIM],f),s("comparator trim",e);let u=(e=(e=e.replace(c[l.TILDETRIM],p)).replace(c[l.CARETTRIM],d)).split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>A(e,this.options)));r&&(u=u.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(c[l.COMPARATORLOOSE]))))),s("range list",u);const y=new Map,g=u.map((e=>new a(e,this.options)));for(const e of g){if(m(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const E=[...y.values()];return i.set(t,E),E}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>g(n,t)&&e.set.some((e=>g(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(x(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const i=new(n(4099))({max:1e3}),o=n(5068),a=n(6156),s=n(9900),u=n(704),{safeRe:c,t:l,comparatorTrimReplace:f,tildeTrimReplace:p,caretTrimReplace:d}=n(6138),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:v}=n(4214),m=e=>"<0.0.0-0"===e.value,y=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},b=(e,t)=>(s("comp",e,t),e=O(e,t),s("caret",e),e=_(e,t),s("tildes",e),e=I(e,t),s("xrange",e),e=S(e,t),s("stars",e),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,_=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{const n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,((t,n,r,i,o)=>{let a;return s("tilde",e,t,n,r,i,o),E(n)?a="":E(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:E(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,s("tilde return",a),a}))},O=(e,t)=>e.trim().split(/\s+/).map((e=>T(e,t))).join(" "),T=(e,t)=>{s("caret",e,t);const n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,a)=>{let u;return s("caret",e,t,n,i,o,a),E(n)?u="":E(i)?u=`>=${n}.0.0${r} <${+n+1}.0.0-0`:E(o)?u="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(s("replaceCaret pr",a),u="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(s("no pr"),u="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),s("caret return",u),u}))},I=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>N(e,t))).join(" ")),N=(e,t)=>{e=e.trim();const n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,((n,r,i,o,a,u)=>{s("xRange",e,n,r,i,o,a,u);const c=E(i),l=c||E(o),f=l||E(a),p=f;return"="===r&&p&&(r=""),u=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(l&&(o=0),a=0,">"===r?(r=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",l?i=+i+1:o=+o+1),"<"===r&&(u="-0"),n=`${r+i}.${o}.${a}${u}`):l?n=`>=${i}.0.0${u} <${+i+1}.0.0-0`:f&&(n=`>=${i}.${o}.0${u} <${i}.${+o+1}.0-0`),s("xRange return",n),n}))},S=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[l.STAR],"")),A=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),R=e=>(t,n,r,i,o,a,s,u,c,l,f,p,d)=>`${n=E(r)?"":E(i)?`>=${r}.0.0${e?"-0":""}`:E(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${u=E(c)?"":E(l)?`<${+c+1}.0.0-0`:E(f)?`<${c}.${+l+1}.0-0`:p?`<=${c}.${l}.${f}-${p}`:e?`<${c}.${l}.${+f+1}-0`:`<=${u}`}`.trim(),x=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(s(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},704:(e,t,n)=>{const r=n(9900),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(4214),{safeRe:a,t:s}=n(6138),u=n(5068),{compareIdentifiers:c}=n(6647);class l{constructor(e,t){if(t=u(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return c(n,i)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return c(n,i)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=l},1554:(e,t,n)=>{const r=n(3324);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},4555:(e,t,n)=>{const r=n(3013),i=n(3443),o=n(1112),a=n(3925),s=n(5967),u=n(5164);e.exports=(e,t,n,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return i(e,n,c);case">":return o(e,n,c);case">=":return a(e,n,c);case"<":return s(e,n,c);case"<=":return u(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},7342:(e,t,n)=>{const r=n(704),i=n(3324),{safeRe:o,t:a}=n(6138);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);return null===n?null:i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},2537:(e,t,n)=>{const r=n(704);e.exports=(e,t,n)=>{const i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)}},1399:(e,t,n)=>{const r=n(8396);e.exports=(e,t)=>r(e,t,!0)},8396:(e,t,n)=>{const r=n(704);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},556:(e,t,n)=>{const r=n(3324);e.exports=(e,t)=>{const n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;const a=o>0,s=a?n:i,u=a?i:n,c=!!s.prerelease.length;if(u.prerelease.length&&!c)return u.patch||u.minor?s.patch?"patch":s.minor?"minor":"major":"major";const l=c?"pre":"";return n.major!==i.major?l+"major":n.minor!==i.minor?l+"minor":n.patch!==i.patch?l+"patch":"prerelease"}},3013:(e,t,n)=>{const r=n(8396);e.exports=(e,t,n)=>0===r(e,t,n)},1112:(e,t,n)=>{const r=n(8396);e.exports=(e,t,n)=>r(e,t,n)>0},3925:(e,t,n)=>{const r=n(8396);e.exports=(e,t,n)=>r(e,t,n)>=0},2043:(e,t,n)=>{const r=n(704);e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version}catch(e){return null}}},5967:(e,t,n)=>{const r=n(8396);e.exports=(e,t,n)=>r(e,t,n)<0},5164:(e,t,n)=>{const r=n(8396);e.exports=(e,t,n)=>r(e,t,n)<=0},5502:(e,t,n)=>{const r=n(704);e.exports=(e,t)=>new r(e,t).major},8538:(e,t,n)=>{const r=n(704);e.exports=(e,t)=>new r(e,t).minor},3443:(e,t,n)=>{const r=n(8396);e.exports=(e,t,n)=>0!==r(e,t,n)},3324:(e,t,n)=>{const r=n(704);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},2649:(e,t,n)=>{const r=n(704);e.exports=(e,t)=>new r(e,t).patch},4453:(e,t,n)=>{const r=n(3324);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},1334:(e,t,n)=>{const r=n(8396);e.exports=(e,t,n)=>r(t,e,n)},745:(e,t,n)=>{const r=n(2537);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},4050:(e,t,n)=>{const r=n(9907);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},1123:(e,t,n)=>{const r=n(2537);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},9890:(e,t,n)=>{const r=n(3324);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},7449:(e,t,n)=>{const r=n(6138),i=n(4214),o=n(704),a=n(6647),s=n(3324),u=n(9890),c=n(1554),l=n(2043),f=n(556),p=n(5502),d=n(8538),h=n(2649),v=n(4453),m=n(8396),y=n(1334),g=n(1399),b=n(2537),E=n(1123),_=n(745),w=n(1112),O=n(5967),T=n(3013),I=n(3443),N=n(3925),S=n(5164),A=n(4555),R=n(7342),x=n(6156),j=n(9907),P=n(4050),D=n(6339),L=n(2216),M=n(7874),k=n(6873),C=n(3998),V=n(5375),F=n(2823),$=n(6722),U=n(5088),B=n(2497),H=n(3932);e.exports={parse:s,valid:u,clean:c,inc:l,diff:f,major:p,minor:d,patch:h,prerelease:v,compare:m,rcompare:y,compareLoose:g,compareBuild:b,sort:E,rsort:_,gt:w,lt:O,eq:T,neq:I,gte:N,lte:S,cmp:A,coerce:R,Comparator:x,Range:j,satisfies:P,toComparators:D,maxSatisfying:L,minSatisfying:M,minVersion:k,validRange:C,outside:V,gtr:F,ltr:$,intersects:U,simplifyRange:B,subset:H,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},4214:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},9900:(e,t,n)=>{var r=n(8558);const i="object"==typeof r&&r.env&&r.env.NODE_DEBUG&&/\bsemver\b/i.test(r.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},6647:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},5068:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},6138:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r}=n(4214),i=n(9900),o=(t=e.exports={}).re=[],a=t.safeRe=[],s=t.src=[],u=t.t={};let c=0;const l=(e,t,n)=>{const r=t.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),l=c++;i(e,l,t),u[e]=l,s[l]=t,o[l]=new RegExp(t,n?"g":void 0),a[l]=new RegExp(r,n?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${s[u.NUMERICIDENTIFIER]})\\.(${s[u.NUMERICIDENTIFIER]})\\.(${s[u.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${s[u.NUMERICIDENTIFIERLOOSE]})\\.(${s[u.NUMERICIDENTIFIERLOOSE]})\\.(${s[u.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${s[u.NUMERICIDENTIFIER]}|${s[u.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${s[u.NUMERICIDENTIFIERLOOSE]}|${s[u.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${s[u.PRERELEASEIDENTIFIER]}(?:\\.${s[u.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${s[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[u.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${s[u.BUILDIDENTIFIER]}(?:\\.${s[u.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${s[u.MAINVERSION]}${s[u.PRERELEASE]}?${s[u.BUILD]}?`),l("FULL",`^${s[u.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${s[u.MAINVERSIONLOOSE]}${s[u.PRERELEASELOOSE]}?${s[u.BUILD]}?`),l("LOOSE",`^${s[u.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${s[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${s[u.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${s[u.XRANGEIDENTIFIER]})(?:\\.(${s[u.XRANGEIDENTIFIER]})(?:\\.(${s[u.XRANGEIDENTIFIER]})(?:${s[u.PRERELEASE]})?${s[u.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${s[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[u.XRANGEIDENTIFIERLOOSE]})(?:${s[u.PRERELEASELOOSE]})?${s[u.BUILD]}?)?)?`),l("XRANGE",`^${s[u.GTLT]}\\s*${s[u.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${s[u.GTLT]}\\s*${s[u.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),l("COERCERTL",s[u.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${s[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${s[u.LONETILDE]}${s[u.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${s[u.LONETILDE]}${s[u.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${s[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${s[u.LONECARET]}${s[u.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${s[u.LONECARET]}${s[u.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${s[u.GTLT]}\\s*(${s[u.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${s[u.GTLT]}\\s*(${s[u.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${s[u.GTLT]}\\s*(${s[u.LOOSEPLAIN]}|${s[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${s[u.XRANGEPLAIN]})\\s+-\\s+(${s[u.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${s[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[u.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2823:(e,t,n)=>{const r=n(5375);e.exports=(e,t,n)=>r(e,t,">",n)},5088:(e,t,n)=>{const r=n(9907);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},6722:(e,t,n)=>{const r=n(5375);e.exports=(e,t,n)=>r(e,t,"<",n)},2216:(e,t,n)=>{const r=n(704),i=n(9907);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(o&&-1!==a.compare(e)||(o=e,a=new r(o,n)))})),o}},7874:(e,t,n)=>{const r=n(704),i=n(9907);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(o&&1!==a.compare(e)||(o=e,a=new r(o,n)))})),o}},6873:(e,t,n)=>{const r=n(704),i=n(9907),o=n(1112);e.exports=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let a=null;i.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!o(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||n&&!o(n,a)||(n=a)}return n&&e.test(n)?n:null}},5375:(e,t,n)=>{const r=n(704),i=n(6156),{ANY:o}=i,a=n(9907),s=n(4050),u=n(1112),c=n(5967),l=n(5164),f=n(3925);e.exports=(e,t,n,p)=>{let d,h,v,m,y;switch(e=new r(e,p),t=new a(t,p),n){case">":d=u,h=l,v=c,m=">",y=">=";break;case"<":d=c,h=f,v=u,m="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,p))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let a=null,s=null;if(r.forEach((e=>{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,d(e.semver,a.semver,p)?a=e:v(e.semver,s.semver,p)&&(s=e)})),a.operator===m||a.operator===y)return!1;if((!s.operator||s.operator===m)&&h(e,s.semver))return!1;if(s.operator===y&&v(e,s.semver))return!1}return!0}},2497:(e,t,n)=>{const r=n(4050),i=n(8396);e.exports=(e,t,n)=>{const o=[];let a=null,s=null;const u=e.sort(((e,t)=>i(e,t,n)));for(const e of u)r(e,t,n)?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);const c=[];for(const[e,t]of o)e===t?c.push(e):t||e!==u[0]?t?e===u[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const l=c.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return l.length<f.length?l:t}},3932:(e,t,n)=>{const r=n(9907),i=n(6156),{ANY:o}=i,a=n(4050),s=n(8396),u=[new i(">=0.0.0-0")],c=[new i(">=0.0.0")],l=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?u:c}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=c}const r=new Set;let i,l,d,h,v,m,y;for(const t of e)">"===t.operator||">="===t.operator?i=f(i,t,n):"<"===t.operator||"<="===t.operator?l=p(l,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&l){if(d=s(i.semver,l.semver,n),d>0)return null;if(0===d&&(">="!==i.operator||"<="!==l.operator))return null}for(const e of r){if(i&&!a(e,String(i),n))return null;if(l&&!a(e,String(l),n))return null;for(const r of t)if(!a(e,String(r),n))return!1;return!0}let g=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver,b=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;g&&1===g.prerelease.length&&"<"===l.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(y=y||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,i)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if(h=f(i,e,n),h===e&&h!==i)return!1}else if(">="===i.operator&&!a(i.semver,String(e),n))return!1;if(l)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if(v=p(l,e,n),v===e&&v!==l)return!1}else if("<="===l.operator&&!a(l.semver,String(e),n))return!1;if(!e.operator&&(l||i)&&0!==d)return!1}return!(i&&m&&!l&&0!==d||l&&y&&!i&&0!==d||b||g)},f=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=l(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},6339:(e,t,n)=>{const r=n(9907);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},3998:(e,t,n)=>{const r=n(9907);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},4669:(e,t,n)=>{const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new l(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new f(e.value,t).test(this.value):""===e.operator?""===e.value||new f(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=i;const o=n(534),{safeRe:a,t:s}=n(2745),u=n(8500),c=n(4737),l=n(4837),f=n(7476)},7476:(e,t,n)=>{const r=/\s+/g;class i{constructor(e,t){if(t=a(t),e instanceof i)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new i(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!y(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&v)|(this.options.loose&&m))+":"+e,n=o.get(t);if(n)return n;const r=this.options.loose,i=r?l[f.HYPHENRANGELOOSE]:l[f.HYPHENRANGE];e=e.replace(i,x(this.options.includePrerelease)),u("hyphen replace",e),e=e.replace(l[f.COMPARATORTRIM],p),u("comparator trim",e),e=e.replace(l[f.TILDETRIM],d),u("tilde trim",e),e=e.replace(l[f.CARETTRIM],h),u("caret trim",e);let a=e.split(" ").map((e=>E(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));r&&(a=a.filter((e=>(u("loose invalid filter",e,this.options),!!e.match(l[f.COMPARATORLOOSE]))))),u("range list",a);const c=new Map,g=a.map((e=>new s(e,this.options)));for(const e of g){if(y(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const b=[...c.values()];return o.set(t,b),b}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Range is required");return this.set.some((n=>b(n,t)&&e.set.some((e=>b(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(j(this.set[t],e,this.options))return!0;return!1}}e.exports=i;const o=new(n(2361)),a=n(534),s=n(4669),u=n(4737),c=n(4837),{safeRe:l,t:f,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:h}=n(2745),{FLAG_INCLUDE_PRERELEASE:v,FLAG_LOOSE:m}=n(2439),y=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,b=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},E=(e,t)=>(u("comp",e,t),e=T(e,t),u("caret",e),e=w(e,t),u("tildes",e),e=N(e,t),u("xrange",e),e=A(e,t),u("stars",e),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,w=(e,t)=>e.trim().split(/\s+/).map((e=>O(e,t))).join(" "),O=(e,t)=>{const n=t.loose?l[f.TILDELOOSE]:l[f.TILDE];return e.replace(n,((t,n,r,i,o)=>{let a;return u("tilde",e,t,n,r,i,o),_(n)?a="":_(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:_(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(u("replaceTilde pr",o),a=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,u("tilde return",a),a}))},T=(e,t)=>e.trim().split(/\s+/).map((e=>I(e,t))).join(" "),I=(e,t)=>{u("caret",e,t);const n=t.loose?l[f.CARETLOOSE]:l[f.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,a)=>{let s;return u("caret",e,t,n,i,o,a),_(n)?s="":_(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:_(o)?s="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(u("replaceCaret pr",a),s="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(u("no pr"),s="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),u("caret return",s),s}))},N=(e,t)=>(u("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>{e=e.trim();const n=t.loose?l[f.XRANGELOOSE]:l[f.XRANGE];return e.replace(n,((n,r,i,o,a,s)=>{u("xRange",e,n,r,i,o,a,s);const c=_(i),l=c||_(o),f=l||_(a),p=f;return"="===r&&p&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(l&&(o=0),a=0,">"===r?(r=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",l?i=+i+1:o=+o+1),"<"===r&&(s="-0"),n=`${r+i}.${o}.${a}${s}`):l?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:f&&(n=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),u("xRange return",n),n}))},A=(e,t)=>(u("replaceStars",e,t),e.trim().replace(l[f.STAR],"")),R=(e,t)=>(u("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?f.GTE0PRE:f.GTE0],"")),x=e=>(t,n,r,i,o,a,s,u,c,l,f,p)=>`${n=_(r)?"":_(i)?`>=${r}.0.0${e?"-0":""}`:_(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${u=_(c)?"":_(l)?`<${+c+1}.0.0-0`:_(f)?`<${c}.${+l+1}.0-0`:p?`<=${c}.${l}.${f}-${p}`:e?`<${c}.${l}.${+f+1}-0`:`<=${u}`}`.trim(),j=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(u(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},4837:(e,t,n)=>{const r=n(4737),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(2439),{safeRe:a,safeSrc:s,t:u}=n(2745),c=n(534),{compareIdentifiers:l}=n(6046);class f{constructor(e,t){if(t=c(t),e instanceof f){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[u.LOOSE]:a[u.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof f)){if("string"==typeof e&&e===this.version)return 0;e=new f(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof f||(e=new f(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof f||(e=new f(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return l(n,i)}while(++t)}compareBuild(e){e instanceof f||(e=new f(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("build compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return l(n,i)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=new RegExp(`^${this.options.loose?s[u.PRERELEASELOOSE]:s[u.PRERELEASE]}$`),n=`-${t}`.match(e);if(!n||n[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=f},2265:(e,t,n)=>{const r=n(739);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},8500:(e,t,n)=>{const r=n(912),i=n(7404),o=n(5361),a=n(8466),s=n(9390),u=n(8823);e.exports=(e,t,n,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return i(e,n,c);case">":return o(e,n,c);case">=":return a(e,n,c);case"<":return s(e,n,c);case"<=":return u(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},5391:(e,t,n)=>{const r=n(4837),i=n(739),{safeRe:o,t:a}=n(2745);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?o[a.COERCERTLFULL]:o[a.COERCERTL];let i;for(;(i=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&i.index+i[0].length===n.index+n[0].length||(n=i),r.lastIndex=i.index+i[1].length+i[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?o[a.COERCEFULL]:o[a.COERCE]);if(null===n)return null;const s=n[2],u=n[3]||"0",c=n[4]||"0",l=t.includePrerelease&&n[5]?`-${n[5]}`:"",f=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${s}.${u}.${c}${l}${f}`,t)}},9274:(e,t,n)=>{const r=n(4837);e.exports=(e,t,n)=>{const i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)}},5876:(e,t,n)=>{const r=n(4923);e.exports=(e,t)=>r(e,t,!0)},4923:(e,t,n)=>{const r=n(4837);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},3765:(e,t,n)=>{const r=n(739);e.exports=(e,t)=>{const n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;const a=o>0,s=a?n:i,u=a?i:n,c=!!s.prerelease.length;if(u.prerelease.length&&!c){if(!u.patch&&!u.minor)return"major";if(0===u.compareMain(s))return u.minor&&!u.patch?"minor":"patch"}const l=c?"pre":"";return n.major!==i.major?l+"major":n.minor!==i.minor?l+"minor":n.patch!==i.patch?l+"patch":"prerelease"}},912:(e,t,n)=>{const r=n(4923);e.exports=(e,t,n)=>0===r(e,t,n)},5361:(e,t,n)=>{const r=n(4923);e.exports=(e,t,n)=>r(e,t,n)>0},8466:(e,t,n)=>{const r=n(4923);e.exports=(e,t,n)=>r(e,t,n)>=0},8964:(e,t,n)=>{const r=n(4837);e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version}catch(e){return null}}},9390:(e,t,n)=>{const r=n(4923);e.exports=(e,t,n)=>r(e,t,n)<0},8823:(e,t,n)=>{const r=n(4923);e.exports=(e,t,n)=>r(e,t,n)<=0},3277:(e,t,n)=>{const r=n(4837);e.exports=(e,t)=>new r(e,t).major},2985:(e,t,n)=>{const r=n(4837);e.exports=(e,t)=>new r(e,t).minor},7404:(e,t,n)=>{const r=n(4923);e.exports=(e,t,n)=>0!==r(e,t,n)},739:(e,t,n)=>{const r=n(4837);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},4530:(e,t,n)=>{const r=n(4837);e.exports=(e,t)=>new r(e,t).patch},8628:(e,t,n)=>{const r=n(739);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},3091:(e,t,n)=>{const r=n(4923);e.exports=(e,t,n)=>r(t,e,n)},5378:(e,t,n)=>{const r=n(9274);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},5069:(e,t,n)=>{const r=n(7476);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},6029:(e,t,n)=>{const r=n(9274);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},954:(e,t,n)=>{const r=n(739);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},6322:(e,t,n)=>{const r=n(2745),i=n(2439),o=n(4837),a=n(6046),s=n(739),u=n(954),c=n(2265),l=n(8964),f=n(3765),p=n(3277),d=n(2985),h=n(4530),v=n(8628),m=n(4923),y=n(3091),g=n(5876),b=n(9274),E=n(6029),_=n(5378),w=n(5361),O=n(9390),T=n(912),I=n(7404),N=n(8466),S=n(8823),A=n(8500),R=n(5391),x=n(4669),j=n(7476),P=n(5069),D=n(3740),L=n(5567),M=n(7053),k=n(8400),C=n(1835),V=n(9430),F=n(1482),$=n(1439),U=n(9887),B=n(2646),H=n(2471);e.exports={parse:s,valid:u,clean:c,inc:l,diff:f,major:p,minor:d,patch:h,prerelease:v,compare:m,rcompare:y,compareLoose:g,compareBuild:b,sort:E,rsort:_,gt:w,lt:O,eq:T,neq:I,gte:N,lte:S,cmp:A,coerce:R,Comparator:x,Range:j,satisfies:P,toComparators:D,maxSatisfying:L,minSatisfying:M,minVersion:k,validRange:C,outside:V,gtr:F,ltr:$,intersects:U,simplifyRange:B,subset:H,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},2439:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},4737:(e,t,n)=>{var r=n(8558);const i="object"==typeof r&&r.env&&r.env.NODE_DEBUG&&/\bsemver\b/i.test(r.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},6046:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},2361:e=>{e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},534:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},2745:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=n(2439),a=n(4737),s=(t=e.exports={}).re=[],u=t.safeRe=[],c=t.src=[],l=t.safeSrc=[],f=t.t={};let p=0;const d="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[d,i]],v=(e,t,n)=>{const r=(e=>{for(const[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=p++;a(e,i,t),f[e]=i,c[i]=t,l[i]=r,s[i]=new RegExp(t,n?"g":void 0),u[i]=new RegExp(r,n?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),v("MAINVERSION",`(${c[f.NUMERICIDENTIFIER]})\\.(${c[f.NUMERICIDENTIFIER]})\\.(${c[f.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${c[f.NUMERICIDENTIFIERLOOSE]})\\.(${c[f.NUMERICIDENTIFIERLOOSE]})\\.(${c[f.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${c[f.NUMERICIDENTIFIER]}|${c[f.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${c[f.NUMERICIDENTIFIERLOOSE]}|${c[f.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${c[f.PRERELEASEIDENTIFIER]}(?:\\.${c[f.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${c[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[f.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${d}+`),v("BUILD",`(?:\\+(${c[f.BUILDIDENTIFIER]}(?:\\.${c[f.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${c[f.MAINVERSION]}${c[f.PRERELEASE]}?${c[f.BUILD]}?`),v("FULL",`^${c[f.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${c[f.MAINVERSIONLOOSE]}${c[f.PRERELEASELOOSE]}?${c[f.BUILD]}?`),v("LOOSE",`^${c[f.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${c[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${c[f.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${c[f.XRANGEIDENTIFIER]})(?:\\.(${c[f.XRANGEIDENTIFIER]})(?:\\.(${c[f.XRANGEIDENTIFIER]})(?:${c[f.PRERELEASE]})?${c[f.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${c[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[f.XRANGEIDENTIFIERLOOSE]})(?:${c[f.PRERELEASELOOSE]})?${c[f.BUILD]}?)?)?`),v("XRANGE",`^${c[f.GTLT]}\\s*${c[f.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${c[f.GTLT]}\\s*${c[f.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${c[f.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",c[f.COERCEPLAIN]+`(?:${c[f.PRERELEASE]})?`+`(?:${c[f.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",c[f.COERCE],!0),v("COERCERTLFULL",c[f.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${c[f.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${c[f.LONETILDE]}${c[f.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${c[f.LONETILDE]}${c[f.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${c[f.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${c[f.LONECARET]}${c[f.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${c[f.LONECARET]}${c[f.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${c[f.GTLT]}\\s*(${c[f.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${c[f.GTLT]}\\s*(${c[f.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${c[f.GTLT]}\\s*(${c[f.LOOSEPLAIN]}|${c[f.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${c[f.XRANGEPLAIN]})\\s+-\\s+(${c[f.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${c[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[f.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},1482:(e,t,n)=>{const r=n(9430);e.exports=(e,t,n)=>r(e,t,">",n)},9887:(e,t,n)=>{const r=n(7476);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},1439:(e,t,n)=>{const r=n(9430);e.exports=(e,t,n)=>r(e,t,"<",n)},5567:(e,t,n)=>{const r=n(4837),i=n(7476);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(o&&-1!==a.compare(e)||(o=e,a=new r(o,n)))})),o}},7053:(e,t,n)=>{const r=n(4837),i=n(7476);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(o&&1!==a.compare(e)||(o=e,a=new r(o,n)))})),o}},8400:(e,t,n)=>{const r=n(4837),i=n(7476),o=n(5361);e.exports=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let a=null;i.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!o(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||n&&!o(n,a)||(n=a)}return n&&e.test(n)?n:null}},9430:(e,t,n)=>{const r=n(4837),i=n(4669),{ANY:o}=i,a=n(7476),s=n(5069),u=n(5361),c=n(9390),l=n(8823),f=n(8466);e.exports=(e,t,n,p)=>{let d,h,v,m,y;switch(e=new r(e,p),t=new a(t,p),n){case">":d=u,h=l,v=c,m=">",y=">=";break;case"<":d=c,h=f,v=u,m="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,p))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let a=null,s=null;if(r.forEach((e=>{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,d(e.semver,a.semver,p)?a=e:v(e.semver,s.semver,p)&&(s=e)})),a.operator===m||a.operator===y)return!1;if((!s.operator||s.operator===m)&&h(e,s.semver))return!1;if(s.operator===y&&v(e,s.semver))return!1}return!0}},2646:(e,t,n)=>{const r=n(5069),i=n(4923);e.exports=(e,t,n)=>{const o=[];let a=null,s=null;const u=e.sort(((e,t)=>i(e,t,n)));for(const e of u)r(e,t,n)?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);const c=[];for(const[e,t]of o)e===t?c.push(e):t||e!==u[0]?t?e===u[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const l=c.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return l.length<f.length?l:t}},2471:(e,t,n)=>{const r=n(7476),i=n(4669),{ANY:o}=i,a=n(5069),s=n(4923),u=[new i(">=0.0.0-0")],c=[new i(">=0.0.0")],l=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?u:c}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=c}const r=new Set;let i,l,d,h,v,m,y;for(const t of e)">"===t.operator||">="===t.operator?i=f(i,t,n):"<"===t.operator||"<="===t.operator?l=p(l,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&l){if(d=s(i.semver,l.semver,n),d>0)return null;if(0===d&&(">="!==i.operator||"<="!==l.operator))return null}for(const e of r){if(i&&!a(e,String(i),n))return null;if(l&&!a(e,String(l),n))return null;for(const r of t)if(!a(e,String(r),n))return!1;return!0}let g=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver,b=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;g&&1===g.prerelease.length&&"<"===l.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(y=y||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,i)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if(h=f(i,e,n),h===e&&h!==i)return!1}else if(">="===i.operator&&!a(i.semver,String(e),n))return!1;if(l)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if(v=p(l,e,n),v===e&&v!==l)return!1}else if("<="===l.operator&&!a(l.semver,String(e),n))return!1;if(!e.operator&&(l||i)&&0!==d)return!1}return!(i&&m&&!l&&0!==d||l&&y&&!i&&0!==d||b||g)},f=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=l(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},3740:(e,t,n)=>{const r=n(7476);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},1835:(e,t,n)=>{const r=n(7476);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},3921:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},373:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},7442:e=>{"use strict";e.exports=2147483647},9862:(e,t,n)=>{"use strict";var r=n(2047),i=n(7442);e.exports=function(e){if((e=r(e))>i)throw new TypeError(e+" exceeds maximum possible timeout");return e}},7274:(e,t,n)=>{"use strict";var r=n(1184);e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!r(e)}},6051:(e,t,n)=>{"use strict";var r=n(6909),i={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!r(e)&&hasOwnProperty.call(i,typeof e)}},1135:(e,t,n)=>{"use strict";var r=n(7274),i=/^\s*class[\s{/}]/,o=Function.prototype.toString;e.exports=function(e){return!!r(e)&&!i.test(o.call(e))}},1184:(e,t,n)=>{"use strict";var r=n(6051);e.exports=function(e){if(!r(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},6909:e=>{"use strict";e.exports=function(e){return null!=e}},2176:function(e,t,n){var r,i,o;o=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var i=e[r];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(r>0&&(i=i.replace(/^[\/]+/,"")),i=r<e.length-1?i.replace(/[\/]+$/,""):i.replace(/[\/]+$/,"/"),t.push(i))}var o=t.join("/"),a=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=o():void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)},3724:(e,t,n)=>{var r=n(2015);function i(e,t,n){var i=this,o=r.useRef(null),a=r.useRef(0),s=r.useRef(null),u=r.useRef([]),c=r.useRef(),l=r.useRef(),f=r.useRef(e),p=r.useRef(!0);r.useEffect((function(){f.current=e}),[e]);var d=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var h=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,m="maxWait"in n,y=m?Math.max(+n.maxWait||0,t):null;r.useEffect((function(){return p.current=!0,function(){p.current=!1}}),[]);var g=r.useMemo((function(){var e=function(e){var t=u.current,n=c.current;return u.current=c.current=null,a.current=e,l.current=f.current.apply(n,t)},n=function(e,t){d&&cancelAnimationFrame(s.current),s.current=d?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!p.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||m&&e-a.current>=y},g=function(t){return s.current=null,v&&u.current?e(t):(u.current=c.current=null,l.current)},b=function e(){var i=Date.now();if(r(i))return g(i);if(p.current){var s=t-(i-o.current),u=m?Math.min(s,y-(i-a.current)):s;n(e,u)}},E=function(){var f=Date.now(),d=r(f);if(u.current=[].slice.call(arguments),c.current=i,o.current=f,d){if(!s.current&&p.current)return a.current=o.current,n(b,t),h?e(o.current):l.current;if(m)return n(b,t),e(o.current)}return s.current||n(b,t),l.current};return E.cancel=function(){s.current&&(d?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,u.current=o.current=c.current=s.current=null},E.isPending=function(){return!!s.current},E.flush=function(){return s.current?g(Date.now()):l.current},E}),[h,m,t,y,v,d]);return g}function o(e,t){return e===t}function a(e){return"function"==typeof e?function(){return e}:e}t.useDebounce=function(e,t,n){var s,u,c=n&&n.equalityFn||o,l=(s=r.useState(a(e)),u=s[1],[s[0],r.useCallback((function(e){return u(a(e))}),[])]),f=l[0],p=l[1],d=i(r.useCallback((function(e){return p(e)}),[p]),t,n),h=r.useRef(e);return c(h.current,e)||(d(e),h.current=e),[f,d]},t.useDebouncedCallback=i,t.useThrottledCallback=function(e,t,n){var r=void 0===n?{}:n,o=r.leading,a=r.trailing;return i(e,t,{maxWait:t,leading:void 0===o||o,trailing:void 0===a||a})}},637:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"v1ToV6",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return m.default}});var r=y(n(5911)),i=y(n(7462)),o=y(n(4738)),a=y(n(9372)),s=y(n(5408)),u=y(n(5653)),c=y(n(5258)),l=y(n(2771)),f=y(n(4780)),p=y(n(1733)),d=y(n(729)),h=y(n(1014)),v=y(n(2303)),m=y(n(6437));function y(e){return e&&e.__esModule?e:{default:e}}},5911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="ffffffff-ffff-ffff-ffff-ffffffffffff"},6953:(e,t)=>{"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,a){return r((s=r(r(t,e),r(i,a)))<<(u=o)|s>>>32-u,n);var s,u}function o(e,t,n,r,o,a,s){return i(t&n|~t&r,e,t,o,a,s)}function a(e,t,n,r,o,a,s){return i(t&r|n&~r,e,t,o,a,s)}function s(e,t,n,r,o,a,s){return i(t^n^r,e,t,o,a,s)}function u(e,t,n,r,o,a,s){return i(n^(t|~r),e,t,o,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var i=0;i<t.length;++i)e[i]=t.charCodeAt(i)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;for(var i=1732584193,c=-271733879,l=-1732584194,f=271733878,p=0;p<e.length;p+=16){var d=i,h=c,v=l,m=f;i=o(i,c,l,f,e[p],7,-680876936),f=o(f,i,c,l,e[p+1],12,-389564586),l=o(l,f,i,c,e[p+2],17,606105819),c=o(c,l,f,i,e[p+3],22,-1044525330),i=o(i,c,l,f,e[p+4],7,-176418897),f=o(f,i,c,l,e[p+5],12,1200080426),l=o(l,f,i,c,e[p+6],17,-1473231341),c=o(c,l,f,i,e[p+7],22,-45705983),i=o(i,c,l,f,e[p+8],7,1770035416),f=o(f,i,c,l,e[p+9],12,-1958414417),l=o(l,f,i,c,e[p+10],17,-42063),c=o(c,l,f,i,e[p+11],22,-1990404162),i=o(i,c,l,f,e[p+12],7,1804603682),f=o(f,i,c,l,e[p+13],12,-40341101),l=o(l,f,i,c,e[p+14],17,-1502002290),i=a(i,c=o(c,l,f,i,e[p+15],22,1236535329),l,f,e[p+1],5,-165796510),f=a(f,i,c,l,e[p+6],9,-1069501632),l=a(l,f,i,c,e[p+11],14,643717713),c=a(c,l,f,i,e[p],20,-373897302),i=a(i,c,l,f,e[p+5],5,-701558691),f=a(f,i,c,l,e[p+10],9,38016083),l=a(l,f,i,c,e[p+15],14,-660478335),c=a(c,l,f,i,e[p+4],20,-405537848),i=a(i,c,l,f,e[p+9],5,568446438),f=a(f,i,c,l,e[p+14],9,-1019803690),l=a(l,f,i,c,e[p+3],14,-187363961),c=a(c,l,f,i,e[p+8],20,1163531501),i=a(i,c,l,f,e[p+13],5,-1444681467),f=a(f,i,c,l,e[p+2],9,-51403784),l=a(l,f,i,c,e[p+7],14,1735328473),i=s(i,c=a(c,l,f,i,e[p+12],20,-1926607734),l,f,e[p+5],4,-378558),f=s(f,i,c,l,e[p+8],11,-2022574463),l=s(l,f,i,c,e[p+11],16,1839030562),c=s(c,l,f,i,e[p+14],23,-35309556),i=s(i,c,l,f,e[p+1],4,-1530992060),f=s(f,i,c,l,e[p+4],11,1272893353),l=s(l,f,i,c,e[p+7],16,-155497632),c=s(c,l,f,i,e[p+10],23,-1094730640),i=s(i,c,l,f,e[p+13],4,681279174),f=s(f,i,c,l,e[p],11,-358537222),l=s(l,f,i,c,e[p+3],16,-722521979),c=s(c,l,f,i,e[p+6],23,76029189),i=s(i,c,l,f,e[p+9],4,-640364487),f=s(f,i,c,l,e[p+12],11,-421815835),l=s(l,f,i,c,e[p+15],16,530742520),i=u(i,c=s(c,l,f,i,e[p+2],23,-995338651),l,f,e[p],6,-198630844),f=u(f,i,c,l,e[p+7],10,1126891415),l=u(l,f,i,c,e[p+14],15,-1416354905),c=u(c,l,f,i,e[p+5],21,-57434055),i=u(i,c,l,f,e[p+12],6,1700485571),f=u(f,i,c,l,e[p+3],10,-1894986606),l=u(l,f,i,c,e[p+10],15,-1051523),c=u(c,l,f,i,e[p+1],21,-2054922799),i=u(i,c,l,f,e[p+8],6,1873313359),f=u(f,i,c,l,e[p+15],10,-30611744),l=u(l,f,i,c,e[p+6],15,-1560198380),c=u(c,l,f,i,e[p+13],21,1309151649),i=u(i,c,l,f,e[p+4],6,-145523070),f=u(f,i,c,l,e[p+11],10,-1120210379),l=u(l,f,i,c,e[p+2],15,718787259),c=u(c,l,f,i,e[p+9],21,-343485551),i=r(i,d),c=r(c,h),l=r(l,v),f=r(f,m)}return[i,c,l,f]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(n(t)),i=0;i<t;i+=8)r[i>>5]|=(255&e[i/8])<<i%32;return r}(e),8*e.length))}},9658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},7462:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},4738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(2303))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},1290:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i},2432:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};var r=new Uint8Array(16)},2180:(e,t)=>{"use strict";function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var o=unescape(encodeURIComponent(e));e=[];for(var a=0;a<o.length;++a)e.push(o.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,u=Math.ceil(s/16),c=new Array(u),l=0;l<u;++l){for(var f=new Uint32Array(16),p=0;p<16;++p)f[p]=e[64*l+4*p]<<24|e[64*l+4*p+1]<<16|e[64*l+4*p+2]<<8|e[64*l+4*p+3];c[l]=f}c[u-1][14]=8*(e.length-1)/Math.pow(2,32),c[u-1][14]=Math.floor(c[u-1][14]),c[u-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<u;++d){for(var h=new Uint32Array(80),v=0;v<16;++v)h[v]=c[d][v];for(var m=16;m<80;++m)h[m]=r(h[m-3]^h[m-8]^h[m-14]^h[m-16],1);for(var y=i[0],g=i[1],b=i[2],E=i[3],_=i[4],w=0;w<80;++w){var O=Math.floor(w/20),T=r(y,5)+n(O,g,b,E)+_+t[O]+h[w]>>>0;_=E,E=b,b=r(g,30)>>>0,g=y,y=T}i[0]=i[0]+y>>>0,i[1]=i[1]+g>>>0,i[2]=i[2]+b>>>0,i[3]=i[3]+E>>>0,i[4]=i[4]+_>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]}},9372:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=s;for(var r,i=(r=n(2303))&&r.__esModule?r:{default:r},o=[],a=0;a<256;++a)o.push((a+256).toString(16).slice(1));function s(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}t.default=function(e,t=0){var n=s(e,t);if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n}},5408:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,o,a=(r=n(2432))&&r.__esModule?r:{default:r},s=n(9372),u=0,c=0;t.default=function(e,t,n){var r=t&&n||0,l=t||new Array(16),f=(e=e||{}).node,p=e.clockseq;if(e._v6||(f||(f=i),null==p&&(p=o)),null==f||null==p){var d=e.random||(e.rng||a.default)();null==f&&(f=[d[0],d[1],d[2],d[3],d[4],d[5]],i||e._v6||(f[0]|=1,i=f)),null==p&&(p=16383&(d[6]<<8|d[7]),void 0!==o||e._v6||(o=p))}var h=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:c+1,m=h-u+(v-c)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||h>u)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=h,c=v,o=p;var y=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;l[r++]=y>>>24&255,l[r++]=y>>>16&255,l[r++]=y>>>8&255,l[r++]=255&y;var g=h/4294967296*1e4&268435455;l[r++]=g>>>8&255,l[r++]=255&g,l[r++]=g>>>24&15|16,l[r++]=g>>>16&255,l[r++]=p>>>8|128,l[r++]=255&p;for(var b=0;b<6;++b)l[r+b]=f[b];return t||(0,s.unsafeStringify)(l)}},5653:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=(t="string"==typeof e?(0,i.default)(e):e,Uint8Array.of((15&t[6])<<4|t[7]>>4&15,(15&t[7])<<4|(240&t[4])>>4,(15&t[4])<<4|(240&t[5])>>4,(15&t[5])<<4|(240&t[0])>>4,(15&t[0])<<4|(240&t[1])>>4,(15&t[1])<<4|(240&t[2])>>4,96|15&t[2],t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]));return"string"==typeof e?(0,o.unsafeStringify)(n):n};var r,i=(r=n(4738))&&r.__esModule?r:{default:r},o=n(9372)},5258:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(3171)),i=o(n(6953));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v3",48,i.default);t.default=a},3171:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,a,s){var u;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,o.default)(r)),16!==(null===(u=r)||void 0===u?void 0:u.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),(c=n(c))[6]=15&c[6]|t,c[8]=63&c[8]|128,a){s=s||0;for(var l=0;l<16;++l)a[s+l]=c[l];return a}return(0,i.unsafeStringify)(c)}try{r.name=e}catch(e){}return r.DNS=a,r.URL=s,r};var r,i=n(9372),o=(r=n(4738))&&r.__esModule?r:{default:r},a=t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",s=t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8"},2771:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(9658)),i=a(n(2432)),o=n(9372);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();var a=(e=e||{}).random||(e.rng||i.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=a[s];return t}return(0,o.unsafeStringify)(a)}},4780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(3171)),i=o(n(2180));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v5",80,i.default);t.default=a},1733:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e={},t,n=0){var a=(0,i.default)(u(u({},e),{},{_v6:!0}),new Uint8Array(16));if(a=(0,o.default)(a),t){for(var s=0;s<16;s++)t[n+s]=a[s];return t}return(0,r.unsafeStringify)(a)};var r=n(9372),i=a(n(5408)),o=a(n(5653));function a(e){return e&&e.__esModule?e:{default:e}}function s(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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}},729:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=(t="string"==typeof e?(0,i.default)(e):e,Uint8Array.of((15&t[3])<<4|t[4]>>4&15,(15&t[4])<<4|(240&t[5])>>4,(15&t[5])<<4|15&t[6],t[7],(15&t[1])<<4|(240&t[2])>>4,(15&t[2])<<4|(240&t[3])>>4,16|(240&t[0])>>4,(15&t[0])<<4|(240&t[1])>>4,t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]));return"string"==typeof e?(0,o.unsafeStringify)(n):n};var r,i=(r=n(4738))&&r.__esModule?r:{default:r},o=n(9372)},1014:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(2432))&&r.__esModule?r:{default:r},o=n(9372),a=null,s=null,u=0;t.default=function(e,t,n){e=e||{};var r=t&&n||0,c=t||new Uint8Array(16),l=e.random||(e.rng||i.default)(),f=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.seq?e.seq:null,d=s,h=a;return f>u&&void 0===e.msecs&&(u=f,null!==p&&(d=null,h=null)),null!==p&&(p>2147483647&&(p=2147483647),d=p>>>19&4095,h=524287&p),null!==d&&null!==h||(d=(d=127&l[6])<<8|l[7],h=(h=(h=63&l[8])<<8|l[9])<<5|l[10]>>>3),f+1e4>u&&null===p?++h>524287&&(h=0,++d>4095&&(d=0,u++)):u=f,s=d,a=h,c[r++]=u/1099511627776&255,c[r++]=u/4294967296&255,c[r++]=u/16777216&255,c[r++]=u/65536&255,c[r++]=u/256&255,c[r++]=255&u,c[r++]=d>>>4&15|112,c[r++]=255&d,c[r++]=h>>>13&63|128,c[r++]=h>>>5&255,c[r++]=h<<3&255|7&l[10],c[r++]=l[11],c[r++]=l[12],c[r++]=l[13],c[r++]=l[14],c[r++]=l[15],t||(0,o.unsafeStringify)(c)}},2303:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(1290))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&i.default.test(e)}},6437:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(2303))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},7311:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},8155:(e,t,n)=>{"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}function i(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=s,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)n.push(o.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;var a=[];for(r=0;o&&r<t;r++)a.push(o.value),o=this.removeNode(o);for(null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev),r=0;r<n.length;r++)o=i(this,o,n[r]);return a},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(7311)(r)}catch(e){}},7463:(e,t,n)=>{"use strict";function r(){const e=n(2337);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CommandBarAspect=void 0;const i=t.CommandBarAspect=r().Aspect.create({id:"teambit.explorer/command-bar",dependencies:[],defaultConfig:{}});t.default=i},497:(e,t,n)=>{"use strict";function r(){const e=n(2268);return r=function(){return e},e}function i(){const e=n(8410);return i=function(){return e},e}function o(){const e=n(5026);return o=function(){return e},e}function a(){const e=n(7463);return a=function(){return e},e}function s(){const e=n(6707);return s=function(){return e},e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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}class c{constructor(e){this.pubSub=e,u(this,"handleKeyEvent",(e=>{const{target:t}=e;var n;!t||(n=t,l.includes(n.tagName)||n.isContentEditable)||(function(e){return(0,o().isOpenCommandBarKeybinding)(e)}(e)&&e.preventDefault(),this.pubSub.pub(a().CommandBarAspect.id,new(s().KeyEvent)(e)))})),document.addEventListener("keydown",this.handleKeyEvent),document.addEventListener("keypress",this.handleKeyEvent),document.addEventListener("keyup",this.handleKeyEvent)}static async provider([e]){return new c(e)}}u(c,"dependencies",[i().PubsubAspect]),u(c,"runtime",r().PreviewRuntime);const l=["INPUT","SELECT","TEXTAREA"];a().CommandBarAspect.addRuntime(c)},5026:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openCommandBarKeybinding=t.isOpenCommandBarKeybinding=void 0,t.openCommandBarKeybinding="mod+k",t.isOpenCommandBarKeybinding=e=>(e.ctrlKey||e.metaKey)&&"k"===e.key},6707:(e,t,n)=>{"use strict";function r(){const e=n(6869);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"KeyEvent",{enumerable:!0,get:function(){return r().KeyEvent}})},6869:(e,t,n)=>{"use strict";function r(){const e=n(8410);return r=function(){return e},e}function i(){const e=n(8246);return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.KeyEvent=void 0;class o extends r().BitBaseEvent{constructor(e,t=Date.now()){const n=(0,i().serializeKeyboardEvent)(e);super(e.type,"0.0.1",t,n)}}t.KeyEvent=o},8246:(e,t,n)=>{"use strict";function r(){const e=(t=n(8539))&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.serializeKeyboardEvent=function(e){const t={};for(const n in e){const i=e[n];(0,r().default)(i)&&(t[n]=i)}return t}},3453:(e,t,n)=>{"use strict";function r(){const e=n(2337);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CompositionsAspect=void 0;const i=t.CompositionsAspect=r().Aspect.create({id:"teambit.compositions/compositions",dependencies:[],defaultConfig:{}});t.default=i},6195:(e,t,n)=>{"use strict";function r(){const e=n(2268);return r=function(){return e},e}function i(){const e=(t=n(994))&&t.__esModule?t:{default:t};var t;return i=function(){return e},e}function o(){const e=n(3453);return o=function(){return e},e}function a(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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}class s{constructor(e){this.preview=e}render(e,t,n,r,i){if(!n.componentMap[e.fullName])return;const o=this.selectPreviewModel(e.fullName,n),a=this.getMetadata(e.fullName,n),s=this.getActiveComposition(o,a);let u=(n.modulesMap[t]||n.modulesMap.default).default;"function"!=typeof u&&u.default&&(u=u.default),u(s,i)}selectPreviewModel(e,t){const n=t.componentMap[e]||[];return Object.assign({},...n)}getMetadata(e,t){const n=t?.componentMapMetadata?t.componentMapMetadata[e]:void 0;if(n)return n}getActiveComposition(e,t){const n=window.location.hash.split("&")[1],r=this.preview.getQuery(),o=this.preview.getParam(r,"name")||n;if(o&&e[o])return e[o];if(t&&t.compositions){const n=(0,i().default)(t.compositions),r=n?.identifier;if(r&&e[r])return e[r]}return(0,i().default)(Object.values(e))}static async provider([e]){const t=new s(e);return e.registerPreview({name:"compositions",render:t.render.bind(t),selectPreviewModel:t.selectPreviewModel.bind(t),default:!0}),t}}a(s,"runtime",r().PreviewRuntime),a(s,"dependencies",[r().PreviewAspect]),o().CompositionsAspect.addRuntime(s)},2021:(e,t,n)=>{"use strict";function r(){const e=n(2337);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DocsAspect=void 0;const i=t.DocsAspect=r().Aspect.create({id:"teambit.docs/docs",dependencies:[],defaultConfig:{}});t.default=i},5995:(e,t,n)=>{"use strict";function r(){const e=(t=n(2015))&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}function i(){const e=n(2268);return i=function(){return e},e}function o(){const e=n(2021);return o=function(){return e},e}function a(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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}class s{constructor(e){this.preview=e,a(this,"render",((e,t,n,[r],i)=>{const o=this.selectPreviewModel(e.fullName,n),a=r||[];let s=(n.modulesMap[t]||n.modulesMap.default).default;"function"!=typeof s&&s.default&&(s=s.default),s.apiObject?s({Provider:u,componentId:e.toString(),docs:o,compositions:a,context:i}):s(u,e.toString(),o,a,i)}))}selectPreviewModel(e,t){const n=t.componentMap[e];if(n)return n[0]}static async provider([e]){const t=new s(e);return e.registerPreview({name:"overview",render:t.render.bind(t),selectPreviewModel:t.selectPreviewModel.bind(t),include:["compositions"]}),t}}function u({children:e}){return r().default.createElement(r().default.Fragment,null,e)}a(s,"runtime",i().PreviewRuntime),a(s,"dependencies",[i().PreviewAspect]),o().DocsAspect.addRuntime(s)},8925:(e,t,n)=>{"use strict";function r(){const e=n(8410);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.ClickInsideAnIframeEvent=void 0;class i{constructor(e){this.clickEvent=e}}class o extends r().BitBaseEvent{constructor(e=Date.now(),t){super(o.TYPE,"0.0.1",e,new i(t)),this.timestamp=e,this.clickEvent=t}}var a,s,u;t.ClickInsideAnIframeEvent=o,a=o,u="click-inside-an-iframe",(s=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(s="TYPE"))in a?Object.defineProperty(a,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[s]=u},2709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8925);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},5804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BundlingStrategyNotFound=void 0;class n extends Error{constructor(e){super(`bundling strategy with name ${e} was not found`),this.strategyName=e}}t.BundlingStrategyNotFound=n},7414:(e,t,n)=>{"use strict";function r(){const e=n(4419);return r=function(){return e},e}function i(){const e=n(3584);return i=function(){return e},e}function o(){const e=n(5804);return o=function(){return e},e}function a(){const e=n(828);return a=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BundlingStrategyNotFound",{enumerable:!0,get:function(){return o().BundlingStrategyNotFound}}),Object.defineProperty(t,"PreviewArtifactNotFound",{enumerable:!0,get:function(){return i().PreviewArtifactNotFound}}),Object.defineProperty(t,"PreviewNotFound",{enumerable:!0,get:function(){return r().PreviewNotFound}}),Object.defineProperty(t,"PreviewOutputFileNotFound",{enumerable:!0,get:function(){return a().PreviewOutputFileNotFound}})},3584:(e,t,n)=>{"use strict";function r(){const e=n(4490);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewArtifactNotFound=void 0;class i extends r().BitError{constructor(e){super(`preview for component ${e.toString()} was not found`)}}t.PreviewArtifactNotFound=i},4419:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewNotFound=void 0;class n extends Error{constructor(e){super(`Preview for name: ${e} was not found`)}}t.PreviewNotFound=n},828:(e,t,n)=>{"use strict";function r(){const e=n(4490);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewOutputFileNotFound=void 0;class i extends r().BitError{constructor(e,t){super(`preview output file for component: "${e.toString()}" was not found in the path: "${t}".\n\nThis is usually a result of an error during the bundling process.\nThe error might be an error of another component that uses the same env.\nRun "bit build" with "--dev" to see more info.\nRun "bit envs" to see other components that uses the same env`)}}t.PreviewOutputFileNotFound=i},9442:(e,t,n)=>{"use strict";function r(){const e=n(6313);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.fetchComponentAspects=async function(e){try{return(await(0,r().request)(i,o,{id:e.toString()})).getHost.get.aspects.map((e=>e.id))}catch(e){return void console.error(`[gql] error on "getComponentAspects" - "${e.toString()}"`)}};const i="/graphql",o=r().gql`
|
3
3
|
query getComponentAspects($id: String!) {
|
4
4
|
getHost {
|
@@ -10,4 +10,4 @@
|
|
10
10
|
}
|
11
11
|
}
|
12
12
|
}
|
13
|
-
`},7154:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadLink=function({href:e}){return new Promise(((t,n)=>{const r=document.createElement("link");e.endsWith(".css")&&r.setAttribute("rel","stylesheet"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=(e,t,r,i,o)=>n(o||new Error(`[preview.preview] failed to load link: ${e}`)),document.head.appendChild(r)}))},t.loadScript=function({src:e}){return new Promise(((t,n)=>{const r=document.createElement("script");r.setAttribute("defer","defer"),r.src=e,r.onload=()=>t(),r.onerror=(e,t,r,i,o)=>n(o||new Error(`[preview.preview] failed to load script: ${e}`)),document.head.appendChild(r)}))}},2268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={PreviewAspect:!0,PreviewRuntime:!0,ENV_PREVIEW_STRATEGY_NAME:!0,COMPONENT_PREVIEW_STRATEGY_NAME:!0};function i(){const e=n(3389);return i=function(){return e},e}Object.defineProperty(t,"COMPONENT_PREVIEW_STRATEGY_NAME",{enumerable:!0,get:function(){return a().COMPONENT_PREVIEW_STRATEGY_NAME}}),Object.defineProperty(t,"ENV_PREVIEW_STRATEGY_NAME",{enumerable:!0,get:function(){return a().ENV_PREVIEW_STRATEGY_NAME}}),Object.defineProperty(t,"PreviewAspect",{enumerable:!0,get:function(){return i().PreviewAspect}}),Object.defineProperty(t,"PreviewRuntime",{enumerable:!0,get:function(){return i().PreviewRuntime}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i().PreviewAspect}});var o=n(2709);function a(){const e=n(9285);return a=function(){return e},e}Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},9663:(e,t,n)=>{"use strict";function r(){const e=n(6300);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PREVIEW_MODULES",{enumerable:!0,get:function(){return r().PREVIEW_MODULES}}),Object.defineProperty(t,"PreviewModules",{enumerable:!0,get:function(){return r().PreviewModules}}),Object.defineProperty(t,"linkModules",{enumerable:!0,get:function(){return r().linkModules}})},3389:(e,t,n)=>{"use strict";function r(){const e=n(2337);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PreviewRuntime=t.PreviewAspect=void 0;const i=t.PreviewRuntime=new(r().RuntimeDefinition)("preview"),o=t.PreviewAspect=r().Aspect.create({id:"teambit.preview/preview",dependencies:[],defaultConfig:{},declareRuntime:i});t.default=o},755:(e,t,n)=>{"use strict";function r(){const e=n(8410);return r=function(){return e},e}function i(){const e=n(2337);return i=function(){return e},e}function o(){const e=n(2435);return o=function(){return e},e}function a(){const e=y(n(2607));return a=function(){return e},e}function s(){const e=y(n(1695));return s=function(){return e},e}function u(){const e=n(2935);return u=function(){return e},e}function c(){const e=n(7414);return c=function(){return e},e}function l(){const e=n(3389);return l=function(){return e},e}function f(){const e=n(2709);return f=function(){return e},e}function p(){const e=n(2269);return p=function(){return e},e}function d(){const e=n(9442);return d=function(){return e},e}function h(){const e=n(9663);return h=function(){return e},e}function v(){const e=n(7154);return v=function(){return e},e}function m(){const e=n(6575);return m=function(){return e},e}function y(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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}class b{constructor(e,t,n){this.pubsub=e,this.previewSlot=t,this.renderingContextSlot=n,g(this,"isDev",!1),g(this,"_setupPromise",void 0),g(this,"setup",(()=>this.isReady()?Promise.resolve():(this._setupPromise??=new Promise((e=>{h().PREVIEW_MODULES.onSet.add((()=>{this.isReady()&&e()}))})),this._setupPromise))),g(this,"render",(async e=>{window.document.body.style.width="fit-content";const{previewName:t,componentId:n,envId:r}=this.getLocation(),i=t||this.getDefault();e&&(this.isDev="teambit.workspace/workspace"===e);const o=this.getPreview(i);if(!o||!n)throw new(c().PreviewNotFound)(t);const a=await Promise.all((o.include||[]).map((async e=>{const t=this.getPreview(e);if(!t)return;const r=await this.getPreviewModule(e,n);return t.selectPreviewModel?.(n.fullName,r)}))),s=this.getQuery(),l="true"===this.getParam(s,"onlyOverview")?[]:a.filter((e=>!!e)).map((e=>{if(!e.default||!(0,u().isObject)(e.default))return e;const t=Object.keys(e).filter((e=>"default"!==e)),n=Object.keys(e.default);return(0,u().intersection)(t,n).length===n.length?e.default:e})),f=this.isDev?await this.getComponentAspects(n.toString()):void 0,p=await this.getPreviewModule(i,n),d=o.render(n,r||"",p,l,this.getRenderingContext(f));return this.reportSize(),this.setViewport(),this.setFullScreen(),d})),g(this,"getComponentAspects",(0,s().default)(d().fetchComponentAspects,{max:100,maxAge:432e5})),this.registerClickPubSub()}registerClickPubSub(){window.addEventListener("click",(e=>{const t=Date.now(),n=Object.assign({},e);this.pubsub.pub(l().PreviewAspect.id,new(f().ClickInsideAnIframeEvent)(t,n))}))}isReady(){const{previewName:e}=this.getLocation(),t=e||this.getDefault();if(!h().PREVIEW_MODULES.has(t))return!1;const n=this.getPreview(t);return!!n&&!!(n.include?.every((e=>h().PREVIEW_MODULES.has(e)))??1)}setFullScreen(){const e=this.getQuery();if(!this.getParam(e,"fullscreen"))return;const t=window.document.getElementById("root");t&&(t.style.height="100vh")}setViewport(){const e=this.getQuery(),t=this.getParam(e,"viewport");t?window.document.body.style.maxWidth=`${t}px`:window.document.body.style.width="100%"}reportSize(){if(!window?.parent||!window?.document)return;window.document.body.addEventListener("resize",(0,u().debounce)((()=>{this.pubsub.pub(l().PreviewAspect.id,new(m().SizeEvent)({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))}),300));let e=0;const t=setInterval((()=>{e+=1,e>10?clearInterval(t):this.pubsub.pub(l().PreviewAspect.id,new(m().SizeEvent)({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))}),200)}async getPreviewModule(e,t){const n=t.fullName,r=h().PREVIEW_MODULES.get(e);if(!r)throw new Error(`[preview.preview] missing preview "${e}"`);if(r.componentMap[n])return r;const i=await this.fetchComponentPreview(t,e);h().PREVIEW_MODULES.loadComponentPreviews(n,i);const o=i[e],a=i[`${e}_metadata`];return{modulesMap:r.modulesMap,componentMap:{[t.fullName]:o},componentMapMetadata:{[t.fullName]:a}}}async fetchComponentPreview(e,t){let n;const r=await this.fetchComponentPreviewFiles(e,t);return null===r?{}:(await Promise.all(r.map((t=>{if(!t.endsWith("-preview.js"))return this.addComponentFileElement(e,t);n=t}))),n?this.loadPreviewScript(e,t,n):{})}addComponentFileElement(e,t){if(t.endsWith(".js"))return this.addComponentFileScriptElement(e,t);this.addComponentFileLinkElement(e,t).catch((e=>{throw new Error(`[preview.preview] failed loading asset "${t}". Error - "${e?.toString()}"`)}))}async fetchComponentPreviewFiles(e,t){const n=`/api/${e.toString()}/~aspect/preview-assets`,r=await(0,a().default)(n);if(r.status>=400)throw new(c().PreviewNotFound)(t);const i=await r.json();if(i.isBundledWithEnv)return null;if(!i.files||!i.files.length)throw new(c().PreviewNotFound)(t);return i.files}addComponentFileScriptElement(e,t){const n=`/api/${e.toString()}/~aspect/component-preview/${t}`;return(0,v().loadScript)({src:n})}addComponentFileLinkElement(e,t){const n=`/api/${e.toString()}/~aspect/component-preview/${t}`;return(0,v().loadLink)({href:n})}async loadPreviewScript(e,t,n){const r=`/api/${e.toString()}/~aspect/component-preview/${n}`;await(0,v().loadScript)({src:r});const i=`${e.toStringWithoutVersion()}-preview`,o=window[i];if(!o)throw new(c().PreviewNotFound)(t);return o}registerPreview(e){return this.previewSlot.register(e),this}getRenderingContext(e){return new(p().RenderingContext)(this.renderingContextSlot,{aspectsFilter:e})}registerRenderContext(e){return this.renderingContextSlot.register(e),this}getDefault(){const e=this.previewSlot.values(),t=e.find((e=>e.default));return t?.name||e[0].name}getPreview(e){return this.previewSlot.values().find((t=>t.name===e))}getParam(e,t){return new URLSearchParams(e).get(t)}getQuery(){const e=window.location.hash.substring(1),[,t]=e.split("?");return t}getLocation(){const e=window.location.hash.substring(1),[t,n]=e.split("?");return{previewName:this.getParam(n,"preview"),envId:this.getParam(n,"env"),componentId:o().ComponentID.tryFromString(t)}}static async provider([e],t,[n,r]){const i=new b(e,n,r);return window.addEventListener("hashchange",(()=>{i.render()})),i}}g(b,"runtime",l().PreviewRuntime),g(b,"dependencies",[r().PubsubAspect]),g(b,"slots",[i().Slot.withType(),i().Slot.withType()]),l().PreviewAspect.addRuntime(b)},2269:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenderingContext=void 0,t.RenderingContext=class{constructor(e,t={}){this.contexts=e,this.options=t}get(e){const t=this.contexts.get(e);return t?.(this.options)}}},6575:(e,t,n)=>{"use strict";function r(){const e=n(8410);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.SizeEvent=void 0;class i extends r().BitBaseEvent{constructor(e){super(i.TYPE,"0.0.1",(new Date).getTime(),e)}}var o,a,s;t.SizeEvent=i,o=i,s="preview-size",(a=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(a="TYPE"))in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s},9285:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ENV_PREVIEW_STRATEGY_NAME=t.COMPONENT_PREVIEW_STRATEGY_NAME=void 0,t.ENV_PREVIEW_STRATEGY_NAME="env",t.COMPONENT_PREVIEW_STRATEGY_NAME="component"},8434:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BitBaseEvent=void 0,t.BitBaseEvent=class{constructor(e,t,n,r){this.type=e,this.version=t,this.timestamp=n,this.data=r}}},8410:(e,t,n)=>{"use strict";function r(){const e=n(6525);return r=function(){return e},e}function i(){const e=n(8434);return i=function(){return e},e}function o(){const e=n(9665);return o=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BitBaseEvent",{enumerable:!0,get:function(){return i().BitBaseEvent}}),Object.defineProperty(t,"PubsubAspect",{enumerable:!0,get:function(){return r().PubsubAspect}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r().PubsubAspect}}),Object.defineProperty(t,"usePubSub",{enumerable:!0,get:function(){return o().usePubSub}}),Object.defineProperty(t,"usePubSubIframe",{enumerable:!0,get:function(){return o().usePubSubIframe}})},7559:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PubSubNoParentError=void 0;class n extends Error{constructor(){super("could not connect to parent window"),this.name="PubSubNoParentError"}}t.PubSubNoParentError=n},9665:(e,t,n)=>{"use strict";function r(){const e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2015));return r=function(){return e},e}function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createProvider=function(e){return({children:t})=>r().default.createElement(o.Provider,{value:e},t)},t.pubsubRegistry=void 0,t.usePubSub=a,t.usePubSubIframe=function(e){const t=a();(0,r().useEffect)((()=>{if(!e?.current||!t)return()=>{};const n=t.connect(e.current);return()=>n()}),[e?.current,t])};const o=t.pubsubRegistry=(0,r().createContext)(void 0);function a(){return(0,r().useContext)(o)}},6525:(e,t,n)=>{"use strict";function r(){const e=n(2337);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PubsubAspect=void 0;const i=t.PubsubAspect=r().Aspect.create({id:"teambit.harmony/pubsub",dependencies:[]});t.default=i},9283:(e,t,n)=>{"use strict";function r(){const e=n(2268);return r=function(){return e},e}function i(){const e=n(5867);return i=function(){return e},e}function o(){const e=n(7551);return o=function(){return e},e}function a(){const e=n(8926);return a=function(){return e},e}function s(){const e=n(7559);return s=function(){return e},e}function u(){const e=n(6525);return u=function(){return e},e}function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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}class l{constructor(){c(this,"_parentPubsub",void 0),c(this,"events",new(o().EventEmitter2)),c(this,"connectToParentPubSub",((e=10)=>{if(e<=0)throw new(s().PubSubNoParentError);return(0,a().connectToParent)({timeout:300,methods:{pub:this.handleMessageFromParent}}).promise.then((e=>this._parentPubsub=e)).catch((t=>{if(t.code!==a().ErrorCode.ConnectionTimeout)throw t;return this.connectToParentPubSub(e-1)}))})),c(this,"handleMessageFromParent",((e,t)=>{this.events.emit(e,t)}))}sub(e,t){const n=this.events;return n.on(e,t),()=>{n.off(e,t)}}pub(e,t){this.events.emit(e,t),this._parentPubsub?.pub(e,t).catch((e=>{console.error("[Pubsub.preview]",e)}))}inIframe(){try{return i().isBrowser&&window.self!==window.top}catch{return!1}}static async provider(){const e=new l;return e.inIframe()&&e.connectToParentPubSub().catch((e=>{e instanceof s().PubSubNoParentError||console.error("[Pubsub.preview]",e)})),e}}c(l,"runtime",r().PreviewRuntime),u().PubsubAspect.addRuntime(l)},1110:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HighlighterProvider=t.PARAM_NAME=void 0;const s=o(n(2015)),u=a(n(4487)),c=n(1779),l=a(n(887)),f=a(n(108));t.PARAM_NAME="highlighter";const p={container:f.default.label};t.HighlighterProvider=({children:e})=>{const n=function(){const[e,t]=(0,s.useState)(window?window.location.hash:"");return(0,s.useEffect)((()=>{const e=()=>{t(window.location.hash)};return e(),window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}}),[]),e}(),r=(0,s.useMemo)((()=>{const e=n.split("?")[1];return"true"===l.default.parse(e)[t.PARAM_NAME]}),[n]);return s.default.createElement(c.ComponentHighlighter,{disabled:!r,className:(0,u.default)(f.default.highlighter,r&&f.default.active),classes:p},e)}},9493:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HighlighterProvider=void 0;var r=n(1110);Object.defineProperty(t,"HighlighterProvider",{enumerable:!0,get:function(){return r.HighlighterProvider}})},7075:(e,t,n)=>{"use strict";function r(){const e=n(2337);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReactAspect=void 0;const i=t.ReactAspect=r().Aspect.create({id:"teambit.react/react"});t.default=i},3893:(e,t,n)=>{"use strict";function r(){const e=(t=n(7065))&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}function i(){const e=n(2337);return i=function(){return e},e}function o(){const e=n(2268);return o=function(){return e},e}function a(){const e=n(9493);return a=function(){return e},e}function s(){const e=n(7075);return s=function(){return e},e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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}class c{constructor(e,t){this.preview=e,this.providerSlot=t,u(this,"getRenderingContext",(({aspectsFilter:e})=>{let t=this.providerSlot.toArray();if(e){const n=new Set(e);n.add(s().ReactAspect.id),t=t.filter((([e])=>n.has(e)))}return{providers:(0,r().default)(t.map((([,e])=>e)))}}))}registerProvider(e){this.providerSlot.register(e)}static async provider([e],t,[n]){const r=new c(e,n);return r.registerProvider([a().HighlighterProvider]),e.registerRenderContext(r.getRenderingContext),r}}u(c,"runtime",o().PreviewRuntime),u(c,"slots",[i().Slot.withType()]),u(c,"dependencies",[o().PreviewAspect]),s().ReactAspect.addRuntime(c)},2015:e=>{"use strict";e.exports=require("react")},2326:e=>{"use strict";e.exports=require("react-dom")},7500:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},3922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer=JSON},4927:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=void 0;const r=n(6917),i=n(5928),o="ping",a="pong",s="complete";class u{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(e,t,n){this._type=e,this._payload=t,this._id=n}get text(){const e={type:this.type};return null!=this.id&&null!=this.id&&(e.id=this.id),null!=this.payload&&null!=this.payload&&(e.payload=this.payload),JSON.stringify(e)}static parse(e,t){const{type:n,payload:r,id:i}=JSON.parse(e);return new u(n,t(r),i)}}class c{constructor(e,{onInit:t,onAcknowledged:n,onPing:r,onPong:c}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.addEventListener("open",(async n=>{var r;this.socketState.acknowledged=!1,this.socketState.subscriptions={},e.send((r=t?await t():null,new u("connection_init",r)).text)})),e.addEventListener("close",(e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}})),e.addEventListener("error",(e=>{console.error(e)})),e.addEventListener("message",(t=>{try{const f=function(e,t=e=>e){return u.parse(e,t)}(t.data);switch(f.type){case"connection_ack":return void(this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,n&&n(f.payload)));case o:return void(r?r(f.payload).then((t=>e.send(l(t).text))):e.send(l(null).text));case a:return void(c&&c(f.payload))}if(!this.socketState.acknowledged)return;if(void 0===f.id||null===f.id||!this.socketState.subscriptions[f.id])return;const{query:p,variables:d,subscriber:h}=this.socketState.subscriptions[f.id];switch(f.type){case"next":return!f.payload.errors&&f.payload.data&&h.next&&h.next(f.payload.data),void(f.payload.errors&&h.error&&h.error(new i.ClientError({...f.payload,status:200},{query:p,variables:d})));case"error":return void(h.error&&h.error(new i.ClientError({errors:f.payload,status:200},{query:p,variables:d})));case s:return h.complete&&h.complete(),void delete this.socketState.subscriptions[f.id]}}catch(t){console.error(t),e.close(1006)}e.close(4400,"Unknown graphql-ws message.")}))}makeSubscribe(e,t,n,r){const i=(this.socketState.lastRequestId++).toString();var o,a;return this.socketState.subscriptions[i]={query:e,variables:r,subscriber:n},this.socket.send((o=i,a={query:e,operationName:t,variables:r},new u("subscribe",a,o)).text),()=>{this.socket.send(function(e){return new u(s,void 0,e)}(i).text),delete this.socketState.subscriptions[i]}}rawRequest(e,t){return new Promise(((n,r)=>{let i;this.rawSubscribe(e,{next:(e,t)=>i={data:e,extensions:t},error:r,complete:()=>n(i)},t)}))}request(e,t){return new Promise(((n,r)=>{let i;this.subscribe(e,{next:e=>i=e,error:r,complete:()=>n(i)},t)}))}subscribe(e,t,n){const{query:i,operationName:o}=(0,r.resolveRequestDocument)(e);return this.makeSubscribe(i,o,t,n)}rawSubscribe(e,t,n){return this.makeSubscribe(e,void 0,t,n)}ping(e){this.socket.send(function(e){return new u(o,e,void 0)}(e).text)}close(){this.socket.close(1e3)}}function l(e){return new u(a,e,void 0)}c.PROTOCOL="graphql-transport-ws",t.GraphQLWebSocketClient=c},3028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadersInstanceToPlainObject=t.uppercase=void 0,t.uppercase=e=>e.toUpperCase(),t.HeadersInstanceToPlainObject=e=>{const t={};return e.forEach(((e,n)=>{t[n]=e})),t}},6313:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.request=t.rawRequest=t.GraphQLClient=t.ClientError=t.batchRequests=t.resolveRequestDocument=t.GraphQLWebSocketClient=t.gql=void 0;const a=n(3922),s=n(3028),u=n(7491),c=n(6917),l=n(5928);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return l.ClientError}});const f=o(n(2607)),p=f,d=e=>{let t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||p&&p.Headers&&e instanceof p.Headers?t=(0,s.HeadersInstanceToPlainObject)(e):Array.isArray(e)?e.forEach((([e,n])=>{e&&void 0!==n&&(t[e]=n)})):t=e),t},h=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim();class v{constructor(e,t={}){this.url=e,this.requestConfig=t,this.rawRequest=async(...e)=>{const[t,n,r]=e,i=(0,u.parseRawRequestArgs)(t,n,r),{headers:o,fetch:a=f.default,method:s="POST",requestMiddleware:l,responseMiddleware:p,...h}=this.requestConfig,{url:v}=this;void 0!==i.signal&&(h.signal=i.signal);const{operationName:y}=(0,c.resolveRequestDocument)(i.query);return m({url:v,query:i.query,variables:i.variables,headers:{...d(_(o)),...d(i.requestHeaders)},operationName:y,fetch:a,method:s,fetchOptions:h,middleware:l}).then((e=>(p&&p(e),e))).catch((e=>{throw p&&p(e),e}))}}async request(e,...t){const[n,r]=t,i=(0,u.parseRequestArgs)(e,n,r),{headers:o,fetch:a=f.default,method:s="POST",requestMiddleware:l,responseMiddleware:p,...h}=this.requestConfig,{url:v}=this;void 0!==i.signal&&(h.signal=i.signal);const{query:y,operationName:g}=(0,c.resolveRequestDocument)(i.document);return m({url:v,query:y,variables:i.variables,headers:{...d(_(o)),...d(i.requestHeaders)},operationName:g,fetch:a,method:s,fetchOptions:h,middleware:l}).then((e=>(p&&p(e),e.data))).catch((e=>{throw p&&p(e),e}))}batchRequests(e,t){const n=(0,u.parseBatchRequestArgs)(e,t),{headers:r,...i}=this.requestConfig;void 0!==n.signal&&(i.signal=n.signal);const o=n.documents.map((({document:e})=>(0,c.resolveRequestDocument)(e).query)),a=n.documents.map((({variables:e})=>e));return m({url:this.url,query:o,variables:a,headers:{...d(_(r)),...d(n.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??f.default,method:this.requestConfig.method||"POST",fetchOptions:i,middleware:this.requestConfig.requestMiddleware}).then((e=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e.data))).catch((e=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e}))}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){const{headers:n}=this.requestConfig;return n?n[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}t.GraphQLClient=v;const m=async e=>{const{query:t,variables:n,fetchOptions:r}=e,i=(d=(0,s.uppercase)(e.method??"post"),async e=>{const{url:t,query:n,variables:r,operationName:i,fetch:o,fetchOptions:s,middleware:u}=e,c={...e.headers};let l,f="";"POST"===d?(l=b(n,r,i,s.jsonSerializer),"string"==typeof l&&(c["Content-Type"]="application/json")):f=(e=>{if(!Array.isArray(e.query)){const t=e,n=[`query=${encodeURIComponent(h(t.query))}`];return e.variables&&n.push(`variables=${encodeURIComponent(t.jsonSerializer.stringify(t.variables))}`),t.operationName&&n.push(`operationName=${encodeURIComponent(t.operationName)}`),n.join("&")}if(void 0!==e.variables&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");const t=e,n=e.query.reduce(((e,n,r)=>(e.push({query:h(n),variables:t.variables?t.jsonSerializer.stringify(t.variables[r]):void 0}),e)),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`})({query:n,variables:r,operationName:i,jsonSerializer:s.jsonSerializer??a.defaultJsonSerializer});const p={method:d,headers:c,body:l,...s};let v=t,m=p;if(u){const e=await Promise.resolve(u({...p,url:t,operationName:i,variables:r})),{url:n,...o}=e;v=n,m=o}return f&&(v=`${v}?${f}`),await o(v,m)}),o=Array.isArray(e.query),u=await i(e),c=await E(u,r.jsonSerializer??a.defaultJsonSerializer),f=Array.isArray(c)?!c.some((({data:e})=>!e)):Boolean(c.data),p=Array.isArray(c)||!c.errors||Array.isArray(c.errors)&&!c.errors.length||"all"===r.errorPolicy||"ignore"===r.errorPolicy;var d;if(u.ok&&p&&f){const{errors:e,...t}=(Array.isArray(c),c),n="ignore"===r.errorPolicy?t:c;return{...o?{data:n}:n,headers:u.headers,status:u.status}}{const e="string"==typeof c?{error:c}:c;throw new l.ClientError({...e,status:u.status,headers:u.headers},{query:t,variables:n})}};async function y(e,t,...n){const r=(0,u.parseRequestExtendedArgs)(e,t,...n);return new v(r.url).request({...r})}t.rawRequest=async(...e)=>{const[t,n,...r]=e,i=(0,u.parseRawRequestExtendedArgs)(t,n,...r);return new v(i.url).rawRequest({...i})},t.request=y,t.batchRequests=async(...e)=>{const t=g(e);return new v(t.url).batchRequests(t)};const g=e=>1===e.length?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0},b=(e,t,n,r)=>{const i=r??a.defaultJsonSerializer;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:n});if(void 0!==t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");const o=e.reduce(((e,n,r)=>(e.push({query:n,variables:t?t[r]:void 0}),e)),[]);return i.stringify(o)},E=async(e,t)=>{let n;return e.headers.forEach(((e,t)=>{"content-type"===t.toLowerCase()&&(n=e)})),n&&(n.toLowerCase().startsWith("application/json")||n.toLowerCase().startsWith("application/graphql+json")||n.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(await e.text()):e.text()},_=e=>"function"==typeof e?e():e;t.gql=(e,...t)=>e.reduce(((e,n,r)=>`${e}${n}${r in t?String(t[r]):""}`),"");var w=n(4927);Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return w.GraphQLWebSocketClient}});var O=n(6917);Object.defineProperty(t,"resolveRequestDocument",{enumerable:!0,get:function(){return O.resolveRequestDocument}}),t.default=y},7491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawRequestExtendedArgs=t.parseRequestExtendedArgs=t.parseBatchRequestArgs=t.parseRawRequestArgs=t.parseRequestArgs=void 0,t.parseRequestArgs=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},t.parseRawRequestArgs=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0},t.parseBatchRequestArgs=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},t.parseRequestExtendedArgs=(e,t,...n)=>{const[r,i]=n;return e.document?e:{url:e,document:t,variables:r,requestHeaders:i,signal:void 0}},t.parseRawRequestExtendedArgs=(e,t,...n)=>{const[r,i]=n;return e.query?e:{url:e,query:t,variables:r,requestHeaders:i,signal:void 0}}},6917:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveRequestDocument=void 0;const r=n(2874),i=e=>{let t;const n=e.definitions.filter((e=>"OperationDefinition"===e.kind));return 1===n.length&&(t=n[0]?.name?.value),t};t.resolveRequestDocument=e=>{if("string"==typeof e){let t;try{const n=(0,r.parse)(e);t=i(n)}catch(e){}return{query:e,operationName:t}}const t=i(e);return{query:(0,r.print)(e),operationName:t}}},5928:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;class n extends Error{constructor(e,t){super(`${n.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,n.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,n)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${e.status})`}}t.ClientError=n},2874:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BREAK:()=>be,BreakingChangeType:()=>Da,DEFAULT_DEPRECATION_REASON:()=>qn,DangerousChangeType:()=>La,DirectiveLocation:()=>X,ExecutableDefinitionsRule:()=>jr,FieldsOnCorrectTypeRule:()=>$r,FragmentsOnCompositeTypesRule:()=>Cr,GraphQLBoolean:()=>bn,GraphQLDeprecatedDirective:()=>Wn,GraphQLDirective:()=>Bn,GraphQLEnumType:()=>Zt,GraphQLError:()=>S,GraphQLFloat:()=>mn,GraphQLID:()=>En,GraphQLIncludeDirective:()=>Hn,GraphQLInputObjectType:()=>tn,GraphQLInt:()=>vn,GraphQLInterfaceType:()=>Jt,GraphQLList:()=>xt,GraphQLNonNull:()=>jt,GraphQLObjectType:()=>Ht,GraphQLScalarType:()=>Bt,GraphQLSchema:()=>Zn,GraphQLSkipDirective:()=>Gn,GraphQLSpecifiedByDirective:()=>zn,GraphQLString:()=>gn,GraphQLUnionType:()=>Qt,Kind:()=>j,KnownArgumentNamesRule:()=>ei,KnownDirectivesRule:()=>Xr,KnownFragmentNamesRule:()=>Br,KnownTypeNamesRule:()=>Mr,Lexer:()=>ee,Location:()=>M,LoneAnonymousOperationRule:()=>Dr,LoneSchemaDefinitionRule:()=>Ni,NoDeprecatedCustomRule:()=>ko,NoFragmentCyclesRule:()=>qr,NoSchemaIntrospectionCustomRule:()=>Co,NoUndefinedVariablesRule:()=>zr,NoUnusedFragmentsRule:()=>Hr,NoUnusedVariablesRule:()=>Yr,OverlappingFieldsCanBeMergedRule:()=>hi,PossibleFragmentSpreadsRule:()=>Gr,PossibleTypeExtensionsRule:()=>Li,ProvidedRequiredArgumentsRule:()=>ui,ScalarLeafsRule:()=>Fr,SchemaMetaFieldDef:()=>Ln,SingleFieldSubscriptionsRule:()=>Lr,Source:()=>z,Token:()=>k,TokenKind:()=>V,TypeInfo:()=>br,TypeKind:()=>Pn,TypeMetaFieldDef:()=>Mn,TypeNameMetaFieldDef:()=>kn,UniqueArgumentNamesRule:()=>ni,UniqueDirectiveNamesRule:()=>Pi,UniqueDirectivesPerLocationRule:()=>Jr,UniqueEnumValueNamesRule:()=>Ri,UniqueFieldDefinitionNamesRule:()=>xi,UniqueFragmentNamesRule:()=>Ur,UniqueInputFieldNamesRule:()=>Ii,UniqueOperationNamesRule:()=>Pr,UniqueOperationTypesRule:()=>Si,UniqueTypeNamesRule:()=>Ai,UniqueVariableNamesRule:()=>Wr,ValidationContext:()=>Ui,ValuesOfCorrectTypeRule:()=>ri,VariablesAreInputTypesRule:()=>Vr,VariablesInAllowedPositionRule:()=>fi,__Directive:()=>Nn,__DirectiveLocation:()=>Sn,__EnumValue:()=>jn,__Field:()=>Rn,__InputValue:()=>xn,__Schema:()=>In,__Type:()=>An,__TypeKind:()=>Dn,assertAbstractType:()=>Rt,assertCompositeType:()=>St,assertDirective:()=>Un,assertEnumType:()=>dt,assertInputObjectType:()=>vt,assertInputType:()=>_t,assertInterfaceType:()=>ct,assertLeafType:()=>It,assertListType:()=>yt,assertNamedType:()=>Vt,assertNonNullType:()=>bt,assertNullableType:()=>Mt,assertObjectType:()=>st,assertOutputType:()=>Ot,assertScalarType:()=>ot,assertSchema:()=>Kn,assertType:()=>rt,assertUnionType:()=>ft,assertValidName:()=>Se,assertValidSchema:()=>nr,assertWrappingType:()=>Dt,astFromValue:()=>On,buildASTSchema:()=>na,buildClientSchema:()=>Wo,buildSchema:()=>ra,coerceInputValue:()=>Ji,concatAST:()=>Ta,createSourceEventStream:()=>Mo,defaultFieldResolver:()=>Io,defaultTypeResolver:()=>To,doTypesOverlap:()=>sn,execute:()=>no,executeSync:()=>ro,extendSchema:()=>Jo,findBreakingChanges:()=>Ma,findDangerousChanges:()=>ka,findDeprecatedUsages:()=>Xa,formatError:()=>Vo,getDescription:()=>ta,getDirectiveValues:()=>eo,getIntrospectionQuery:()=>Uo,getLocation:()=>f,getNamedType:()=>Ft,getNullableType:()=>kt,getOperationAST:()=>Bo,getOperationRootType:()=>Wi,getVisitFn:()=>we,graphql:()=>So,graphqlSync:()=>Ao,introspectionFromSchema:()=>qo,introspectionTypes:()=>Cn,isAbstractType:()=>At,isCompositeType:()=>Nt,isDefinitionNode:()=>wr,isDirective:()=>$n,isEnumType:()=>pt,isEqualType:()=>on,isExecutableDefinitionNode:()=>Or,isInputObjectType:()=>ht,isInputType:()=>Et,isInterfaceType:()=>ut,isIntrospectionType:()=>Vn,isLeafType:()=>Tt,isListType:()=>mt,isNamedType:()=>Ct,isNonNullType:()=>gt,isNullableType:()=>Lt,isObjectType:()=>at,isOutputType:()=>wt,isRequiredArgument:()=>Xt,isRequiredInputField:()=>rn,isScalarType:()=>it,isSchema:()=>Qn,isSelectionNode:()=>Tr,isSpecifiedDirective:()=>Xn,isSpecifiedScalarType:()=>wn,isType:()=>nt,isTypeDefinitionNode:()=>Ar,isTypeExtensionNode:()=>xr,isTypeNode:()=>Nr,isTypeSubTypeOf:()=>an,isTypeSystemDefinitionNode:()=>Sr,isTypeSystemExtensionNode:()=>Rr,isUnionType:()=>lt,isValidNameError:()=>Ae,isValueNode:()=>Ir,isWrappingType:()=>Pt,lexicographicSortSchema:()=>sa,locatedError:()=>Ie,parse:()=>pe,parseType:()=>he,parseValue:()=>de,print:()=>Ge,printError:()=>R,printIntrospectionSchema:()=>pa,printLocation:()=>p,printSchema:()=>fa,printSourceLocation:()=>d,printType:()=>ma,responsePathAsArray:()=>qi,separateOperations:()=>Ia,specifiedDirectives:()=>Yn,specifiedRules:()=>ki,specifiedScalarTypes:()=>_n,stripIgnoredCharacters:()=>Aa,subscribe:()=>Do,syntaxError:()=>x,typeFromAST:()=>gr,validate:()=>Bi,validateSchema:()=>tr,valueFromAST:()=>Yi,valueFromASTUntyped:()=>Ze,version:()=>r,versionInfo:()=>i,visit:()=>Ee,visitInParallel:()=>_e,visitWithTypeInfo:()=>_r});var r="15.8.0",i=Object.freeze({major:15,minor:8,patch:0,preReleaseTag:null});function o(e){return"function"==typeof(null==e?void 0:e.then)}function a(e){return a="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},a(e)}function s(e){return"object"==a(e)&&null!==e}var u="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",c="function"==typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator",l="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function f(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function p(e){return d(e.source,f(e.source,e.start))}function d(e,t){var n=e.locationOffset.column-1,r=v(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,u=t.column+s,c="".concat(e.name,":").concat(a,":").concat(u,"\n"),l=r.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){for(var p=Math.floor(u/80),d=u%80,m=[],y=0;y<f.length;y+=80)m.push(f.slice(y,y+80));return c+h([["".concat(a),m[0]]].concat(m.slice(1,p+1).map((function(e){return["",e]})),[[" ",v(d-1)+"^"],["",m[p+1]]]))}return c+h([["".concat(a-1),l[i-1]],["".concat(a),f],["",v(u-1)+"^"],["".concat(a+1),l[i+1]]])}function h(e){var t=e.filter((function(e){return e[0],void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return v(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function v(e){return Array(e+1).join(" ")}function m(e){return m="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},m(e)}function y(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 g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){var t="function"==typeof Map?new Map:void 0;return w=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return O(e,arguments,N(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),I(r,e)},w(e)}function O(e,t,n){return O=T()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&I(i,n.prototype),i},O.apply(null,arguments)}function T(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function I(e,t){return I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},I(e,t)}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(a,e);var t,n,r,i,o=(t=a,n=T(),function(){var e,r=N(t);if(n){var i=N(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return E(this,e)});function a(e,t,n,r,i,u,c){var l,p,d,h;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(h=o.call(this,e)).name="GraphQLError",h.originalError=null!=u?u:void 0,h.nodes=A(Array.isArray(t)?t:t?[t]:void 0);for(var v=[],m=0,b=null!==(w=h.nodes)&&void 0!==w?w:[];m<b.length;m++){var w,O=b[m].loc;null!=O&&v.push(O)}v=A(v),h.source=null!=n?n:null===(l=v)||void 0===l?void 0:l[0].source,h.positions=null!=r?r:null===(p=v)||void 0===p?void 0:p.map((function(e){return e.start})),h.locations=r&&n?r.map((function(e){return f(n,e)})):null===(d=v)||void 0===d?void 0:d.map((function(e){return f(e.source,e.start)})),h.path=null!=i?i:void 0;var T=null==u?void 0:u.extensions;return null==c&&s(T)?h.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},T):h.extensions=null!=c?c:{},Object.defineProperties(_(h),{message:{enumerable:!0},locations:{enumerable:null!=h.locations},path:{enumerable:null!=h.path},extensions:{enumerable:null!=h.extensions&&Object.keys(h.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?(Object.defineProperty(_(h),"stack",{value:u.stack,writable:!0,configurable:!0}),E(h)):(Error.captureStackTrace?Error.captureStackTrace(_(h),a):Object.defineProperty(_(h),"stack",{value:Error().stack,writable:!0,configurable:!0}),h)}return r=a,(i=[{key:"toString",value:function(){return R(this)}},{key:l,get:function(){return"Object"}}])&&b(r.prototype,i),a}(w(Error));function A(e){return void 0===e||0===e.length?void 0:e}function R(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+p(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var s=a[o];t+="\n\n"+d(e.source,s)}return t}function x(e,t,n){return new S("Syntax Error: ".concat(n),void 0,e,[t])}var j=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function P(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const D="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function L(e){var t=e.prototype.toJSON;"function"==typeof t||P(0),e.prototype.inspect=t,D&&(e.prototype[D]=t)}var M=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();L(M);var k=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function C(e){return null!=e&&"string"==typeof e.kind}L(k);var V=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function F(e){return F="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},F(e)}var $=10,U=2;function B(e){return H(e,[])}function H(e,t){switch(F(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(D)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:H(i,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>U)return"[Array]";for(var n=Math.min($,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(H(e[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>U?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map((function(n){return n+": "+H(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function G(e,t){if(!Boolean(e))throw new Error(t)}const q=function(e,t){return e instanceof t};function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var z=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||G(0,"Body must be a string. Received: ".concat(B(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||G(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||G(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n;return t=e,(n=[{key:l,get:function(){return"Source"}}])&&W(t.prototype,n),e}();function Y(e){return q(e,z)}var X=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function J(e){var t=e.split(/\r\n|[\n\r]/g),n=K(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&Q(t[i]);)++i;for(var o=t.length;o>i&&Q(t[o-1]);)--o;return t.slice(i,o).join("\n")}function Q(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function K(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}var ee=function(){function e(e){var t=new k(V.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==V.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=re(this,e)}while(e.kind===V.COMMENT);return e},e}();function te(e){return e===V.BANG||e===V.DOLLAR||e===V.AMP||e===V.PAREN_L||e===V.PAREN_R||e===V.SPREAD||e===V.COLON||e===V.EQUALS||e===V.AT||e===V.BRACKET_L||e===V.BRACKET_R||e===V.BRACE_L||e===V.PIPE||e===V.BRACE_R}function ne(e){return isNaN(e)?V.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function re(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var a=r.charCodeAt(o),s=e.line,u=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new k(V.BANG,o,o+1,s,u,t);case 35:return oe(n,o,s,u,t);case 36:return new k(V.DOLLAR,o,o+1,s,u,t);case 38:return new k(V.AMP,o,o+1,s,u,t);case 40:return new k(V.PAREN_L,o,o+1,s,u,t);case 41:return new k(V.PAREN_R,o,o+1,s,u,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new k(V.SPREAD,o,o+3,s,u,t);break;case 58:return new k(V.COLON,o,o+1,s,u,t);case 61:return new k(V.EQUALS,o,o+1,s,u,t);case 64:return new k(V.AT,o,o+1,s,u,t);case 91:return new k(V.BRACKET_L,o,o+1,s,u,t);case 93:return new k(V.BRACKET_R,o,o+1,s,u,t);case 123:return new k(V.BRACE_L,o,o+1,s,u,t);case 124:return new k(V.PIPE,o,o+1,s,u,t);case 125:return new k(V.BRACE_R,o,o+1,s,u,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?ce(n,o,s,u,t,e):ue(n,o,s,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return ae(n,o,a,s,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return fe(n,o,s,u,t)}throw x(n,o,ie(a))}var c=e.line,l=1+o-e.lineStart;return new k(V.EOF,i,i,c,l,t)}function ie(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(ne(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(ne(e),".")}function oe(e,t,n,r,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new k(V.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function ae(e,t,n,r,i,o){var a=e.body,s=n,u=t,c=!1;if(45===s&&(s=a.charCodeAt(++u)),48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw x(e,u,"Invalid number, unexpected digit after 0: ".concat(ne(s),"."))}else u=se(e,u,s),s=a.charCodeAt(u);if(46===s&&(c=!0,s=a.charCodeAt(++u),u=se(e,u,s),s=a.charCodeAt(u)),69!==s&&101!==s||(c=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=se(e,u,s),s=a.charCodeAt(u)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw x(e,u,"Invalid number, expected digit but got: ".concat(ne(s),"."));return new k(c?V.FLOAT:V.INT,t,u,r,i,o,a.slice(t,u))}function se(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw x(e,i,"Invalid number, expected digit but got: ".concat(ne(o),"."))}function ue(e,t,n,r,i){for(var o,a,s,u,c=e.body,l=t+1,f=l,p=0,d="";l<c.length&&!isNaN(p=c.charCodeAt(l))&&10!==p&&13!==p;){if(34===p)return d+=c.slice(f,l),new k(V.STRING,t,l+1,n,r,i,d);if(p<32&&9!==p)throw x(e,l,"Invalid character within String: ".concat(ne(p),"."));if(++l,92===p){switch(d+=c.slice(f,l-1),p=c.charCodeAt(l)){case 34:d+='"';break;case 47:d+="/";break;case 92:d+="\\";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+="\n";break;case 114:d+="\r";break;case 116:d+="\t";break;case 117:var h=(o=c.charCodeAt(l+1),a=c.charCodeAt(l+2),s=c.charCodeAt(l+3),u=c.charCodeAt(l+4),le(o)<<12|le(a)<<8|le(s)<<4|le(u));if(h<0){var v=c.slice(l+1,l+5);throw x(e,l,"Invalid character escape sequence: \\u".concat(v,"."))}d+=String.fromCharCode(h),l+=4;break;default:throw x(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(p),"."))}f=++l}}throw x(e,l,"Unterminated string.")}function ce(e,t,n,r,i,o){for(var a=e.body,s=t+3,u=s,c=0,l="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(34===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return l+=a.slice(u,s),new k(V.BLOCK_STRING,t,s+3,n,r,i,J(l));if(c<32&&9!==c&&10!==c&&13!==c)throw x(e,s,"Invalid character within String: ".concat(ne(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(l+=a.slice(u,s)+'"""',u=s+=4):++s}throw x(e,s,"Unterminated string.")}function le(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function fe(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new k(V.NAME,t,s,n,r,i,o.slice(t,s))}function pe(e,t){return new ve(e,t).parseDocument()}function de(e,t){var n=new ve(e,t);n.expectToken(V.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(V.EOF),r}function he(e,t){var n=new ve(e,t);n.expectToken(V.SOF);var r=n.parseTypeReference();return n.expectToken(V.EOF),r}var ve=function(){function e(e,t){var n=Y(e)?e:new z(e);this._lexer=new ee(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(V.NAME);return{kind:j.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:j.DOCUMENT,definitions:this.many(V.SOF,this.parseDefinition,V.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(V.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(V.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(V.BRACE_L))return{kind:j.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(V.NAME)&&(t=this.parseName()),{kind:j.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(V.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(V.PAREN_L,this.parseVariableDefinition,V.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:j.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(V.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(V.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(V.DOLLAR),{kind:j.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:j.SELECTION_SET,selections:this.many(V.BRACE_L,this.parseSelection,V.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(V.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(V.COLON)?(e=r,t=this.parseName()):t=r,{kind:j.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(V.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(V.PAREN_L,t,V.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(V.COLON),{kind:j.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:j.ARGUMENT,name:this.parseName(),value:(this.expectToken(V.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(V.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(V.NAME)?{kind:j.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:j.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:j.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:j.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case V.BRACKET_L:return this.parseList(e);case V.BRACE_L:return this.parseObject(e);case V.INT:return this._lexer.advance(),{kind:j.INT,value:t.value,loc:this.loc(t)};case V.FLOAT:return this._lexer.advance(),{kind:j.FLOAT,value:t.value,loc:this.loc(t)};case V.STRING:case V.BLOCK_STRING:return this.parseStringLiteral();case V.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:j.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:j.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:j.NULL,loc:this.loc(t)};default:return{kind:j.ENUM,value:t.value,loc:this.loc(t)}}case V.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:j.STRING,value:e.value,block:e.kind===V.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:j.LIST,values:this.any(V.BRACKET_L,(function(){return t.parseValueLiteral(e)}),V.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:j.OBJECT,fields:this.any(V.BRACE_L,(function(){return t.parseObjectField(e)}),V.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(V.COLON),{kind:j.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(V.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(V.AT),{kind:j.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(V.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(V.BRACKET_R),e={kind:j.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(V.BANG)?{kind:j.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:j.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===V.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(V.STRING)||this.peek(V.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(V.BRACE_L,this.parseOperationTypeDefinition,V.BRACE_R);return{kind:j.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(V.COLON);var n=this.parseNamedType();return{kind:j.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:j.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:j.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(V.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(V.AMP)||this.peek(V.NAME));return t}return this.delimitedMany(V.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(V.BRACE_L)&&this._lexer.lookahead().kind===V.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(V.BRACE_L,this.parseFieldDefinition,V.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(V.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:j.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(V.PAREN_L,this.parseInputValueDef,V.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(V.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(V.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:j.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:j.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:j.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(V.EQUALS)?this.delimitedMany(V.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:j.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(V.BRACE_L,this.parseEnumValueDefinition,V.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:j.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:j.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(V.BRACE_L,this.parseInputValueDef,V.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===V.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(V.BRACE_L,this.parseOperationTypeDefinition,V.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:j.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:j.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:j.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:j.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:j.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:j.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:j.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(V.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:j.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(V.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==X[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new M(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw x(this._lexer.source,t.start,"Expected ".concat(ye(e),", found ").concat(me(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==V.NAME||t.value!==e)throw x(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(me(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===V.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return x(this._lexer.source,t.start,"Unexpected ".concat(me(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function me(e){var t=e.value;return ye(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function ye(e){return te(e)?'"'.concat(e,'"'):e}var ge={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},be=Object.freeze({});function Ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ge,r=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],u=void 0,c=void 0,l=void 0,f=[],p=[],d=e;do{var h=++a===o.length,v=h&&0!==s.length;if(h){if(c=0===p.length?void 0:f[f.length-1],u=l,l=p.pop(),v){if(i)u=u.slice();else{for(var m={},y=0,g=Object.keys(u);y<g.length;y++){var b=g[y];m[b]=u[b]}u=m}for(var E=0,_=0;_<s.length;_++){var w=s[_][0],O=s[_][1];i&&(w-=E),i&&null===O?(u.splice(w,1),E++):u[w]=O}}a=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(c=l?i?a:o[a]:void 0,null==(u=l?l[c]:d))continue;l&&f.push(c)}var T,I=void 0;if(!Array.isArray(u)){if(!C(u))throw new Error("Invalid AST Node: ".concat(B(u),"."));var N=we(t,u.kind,h);if(N){if((I=N.call(t,u,c,l,f,p))===be)break;if(!1===I){if(!h){f.pop();continue}}else if(void 0!==I&&(s.push([c,I]),!h)){if(!C(I)){f.pop();continue}u=I}}}void 0===I&&v&&s.push([c,u]),h?f.pop():(r={inArray:i,index:a,keys:o,edits:s,prev:r},o=(i=Array.isArray(u))?u:null!==(T=n[u.kind])&&void 0!==T?T:[],a=-1,s=[],l&&p.push(l),l=u)}while(void 0!==r);return 0!==s.length&&(d=s[s.length-1][1]),d}function _e(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=we(e[r],n.kind,!1);if(i){var o=i.apply(e[r],arguments);if(!1===o)t[r]=n;else if(o===be)t[r]=be;else if(void 0!==o)return o}}},leave:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=we(e[r],n.kind,!0);if(i){var o=i.apply(e[r],arguments);if(o===be)t[r]=be;else if(void 0!==o&&!1!==o)return o}}else t[r]===n&&(t[r]=null)}}}function we(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}const Oe=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}},Te=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))};function Ie(e,t,n){var r,i=e instanceof Error?e:new Error("Unexpected error value: "+B(e));return Array.isArray(i.path)?i:new S(i.message,null!==(r=i.nodes)&&void 0!==r?r:t,i.source,i.positions,n,i)}var Ne=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function Se(e){var t=Ae(e);if(t)throw t;return e}function Ae(e){return"string"==typeof e||G(0,"Expected name to be a string."),e.length>1&&"_"===e[0]&&"_"===e[1]?new S('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.')):Ne.test(e)?void 0:new S('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}const Re=Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))};function xe(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}function je(e,t){for(var n=Object.create(null),r=0,i=Re(e);r<i.length;r++){var o=i[r],a=o[0],s=o[1];n[a]=t(s,a)}return n}function Pe(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,r=Re(e);n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t}function De(e,t,n){return e.reduce((function(e,r){return e[t(r)]=n(r),e}),Object.create(null))}var Le=5;function Me(e,t){var n="string"==typeof e?[e,t]:[void 0,e],r=n[0],i=" Did you mean ";r&&(i+=r+" ");var o=n[1].map((function(e){return'"'.concat(e,'"')}));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}var a=o.slice(0,Le),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function ke(e){return e}function Ce(e,t){for(var n=0,r=0;n<e.length&&r<t.length;){var i=e.charCodeAt(n),o=t.charCodeAt(r);if($e(i)&&$e(o)){var a=0;do{++n,a=10*a+i-Ve,i=e.charCodeAt(n)}while($e(i)&&a>0);var s=0;do{++r,s=10*s+o-Ve,o=t.charCodeAt(r)}while($e(o)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}var Ve=48,Fe=57;function $e(e){return!isNaN(e)&&Ve<=e&&e<=Fe}function Ue(e,t){for(var n=Object.create(null),r=new Be(e),i=Math.floor(.4*e.length)+1,o=0;o<t.length;o++){var a=t[o],s=r.measure(a,i);void 0!==s&&(n[a]=s)}return Object.keys(n).sort((function(e,t){var r=n[e]-n[t];return 0!==r?r:Ce(e,t)}))}var Be=function(){function e(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=He(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}return e.prototype.measure=function(e,t){if(this._input===e)return 0;var n=e.toLowerCase();if(this._inputLowerCase===n)return 1;var r=He(n),i=this._inputArray;if(r.length<i.length){var o=r;r=i,i=o}var a=r.length,s=i.length;if(!(a-s>t)){for(var u=this._rows,c=0;c<=s;c++)u[0][c]=c;for(var l=1;l<=a;l++){for(var f=u[(l-1)%3],p=u[l%3],d=p[0]=l,h=1;h<=s;h++){var v=r[l-1]===i[h-1]?0:1,m=Math.min(f[h]+1,p[h-1]+1,f[h-1]+v);if(l>1&&h>1&&r[l-1]===i[h-2]&&r[l-2]===i[h-1]){var y=u[(l-2)%3][h-2];m=Math.min(m,y+1)}m<d&&(d=m),p[h]=m}if(d>t)return}var g=u[a%3][s];return g<=t?g:void 0}},e}();function He(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function Ge(e){return Ee(e,{leave:qe})}var qe={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return ze(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=Xe("(",ze(e.variableDefinitions,", "),")"),i=ze(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?ze([t,ze([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+Xe(" = ",r)+Xe(" ",ze(i," "))},SelectionSet:function(e){return Ye(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=Xe("",t,": ")+n,s=a+Xe("(",ze(r,", "),")");return s.length>80&&(s=a+Xe("(\n",Je(ze(r,"\n")),"\n)")),ze([s,ze(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+Xe(" ",ze(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return ze(["...",Xe("on ",t),ze(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(Xe("(",ze(r,", "),")")," ")+"on ".concat(n," ").concat(Xe("",ze(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?Z(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+ze(e.values,", ")+"]"},ObjectValue:function(e){return"{"+ze(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+Xe("(",ze(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:We((function(e){var t=e.directives,n=e.operationTypes;return ze(["schema",ze(t," "),Ye(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:We((function(e){return ze(["scalar",e.name,ze(e.directives," ")]," ")})),ObjectTypeDefinition:We((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return ze(["type",t,Xe("implements ",ze(n," & ")),ze(r," "),Ye(i)]," ")})),FieldDefinition:We((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(Ke(n)?Xe("(\n",Je(ze(n,"\n")),"\n)"):Xe("(",ze(n,", "),")"))+": "+r+Xe(" ",ze(i," "))})),InputValueDefinition:We((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return ze([t+": "+n,Xe("= ",r),ze(i," ")]," ")})),InterfaceTypeDefinition:We((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return ze(["interface",t,Xe("implements ",ze(n," & ")),ze(r," "),Ye(i)]," ")})),UnionTypeDefinition:We((function(e){var t=e.name,n=e.directives,r=e.types;return ze(["union",t,ze(n," "),r&&0!==r.length?"= "+ze(r," | "):""]," ")})),EnumTypeDefinition:We((function(e){var t=e.name,n=e.directives,r=e.values;return ze(["enum",t,ze(n," "),Ye(r)]," ")})),EnumValueDefinition:We((function(e){return ze([e.name,ze(e.directives," ")]," ")})),InputObjectTypeDefinition:We((function(e){var t=e.name,n=e.directives,r=e.fields;return ze(["input",t,ze(n," "),Ye(r)]," ")})),DirectiveDefinition:We((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(Ke(n)?Xe("(\n",Je(ze(n,"\n")),"\n)"):Xe("(",ze(n,", "),")"))+(r?" repeatable":"")+" on "+ze(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return ze(["extend schema",ze(t," "),Ye(n)]," ")},ScalarTypeExtension:function(e){return ze(["extend scalar",e.name,ze(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return ze(["extend type",t,Xe("implements ",ze(n," & ")),ze(r," "),Ye(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return ze(["extend interface",t,Xe("implements ",ze(n," & ")),ze(r," "),Ye(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return ze(["extend union",t,ze(n," "),r&&0!==r.length?"= "+ze(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return ze(["extend enum",t,ze(n," "),Ye(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return ze(["extend input",t,ze(n," "),Ye(r)]," ")}};function We(e){return function(t){return ze([t.description,e(t)],"\n")}}function ze(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function Ye(e){return Xe("{\n",Je(ze(e,"\n")),"\n}")}function Xe(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function Je(e){return Xe(" ",e.replace(/\n/g,"\n "))}function Qe(e){return-1!==e.indexOf("\n")}function Ke(e){return null!=e&&e.some(Qe)}function Ze(e,t){switch(e.kind){case j.NULL:return null;case j.INT:return parseInt(e.value,10);case j.FLOAT:return parseFloat(e.value);case j.STRING:case j.ENUM:case j.BOOLEAN:return e.value;case j.LIST:return e.values.map((function(e){return Ze(e,t)}));case j.OBJECT:return De(e.fields,(function(e){return e.name.value}),(function(e){return Ze(e.value,t)}));case j.VARIABLE:return null==t?void 0:t[e.name.value]}P(0,"Unexpected value node: "+B(e))}function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tt(e,t,n){return t&&et(e.prototype,t),n&&et(e,n),e}function nt(e){return it(e)||at(e)||ut(e)||lt(e)||pt(e)||ht(e)||mt(e)||gt(e)}function rt(e){if(!nt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL type."));return e}function it(e){return q(e,Bt)}function ot(e){if(!it(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL Scalar type."));return e}function at(e){return q(e,Ht)}function st(e){if(!at(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL Object type."));return e}function ut(e){return q(e,Jt)}function ct(e){if(!ut(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL Interface type."));return e}function lt(e){return q(e,Qt)}function ft(e){if(!lt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL Union type."));return e}function pt(e){return q(e,Zt)}function dt(e){if(!pt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL Enum type."));return e}function ht(e){return q(e,tn)}function vt(e){if(!ht(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL Input Object type."));return e}function mt(e){return q(e,xt)}function yt(e){if(!mt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL List type."));return e}function gt(e){return q(e,jt)}function bt(e){if(!gt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL Non-Null type."));return e}function Et(e){return it(e)||pt(e)||ht(e)||Pt(e)&&Et(e.ofType)}function _t(e){if(!Et(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL input type."));return e}function wt(e){return it(e)||at(e)||ut(e)||lt(e)||pt(e)||Pt(e)&&wt(e.ofType)}function Ot(e){if(!wt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL output type."));return e}function Tt(e){return it(e)||pt(e)}function It(e){if(!Tt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL leaf type."));return e}function Nt(e){return at(e)||ut(e)||lt(e)}function St(e){if(!Nt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL composite type."));return e}function At(e){return ut(e)||lt(e)}function Rt(e){if(!At(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL abstract type."));return e}function xt(e){if(!(this instanceof xt))return new xt(e);this.ofType=rt(e)}function jt(e){if(!(this instanceof jt))return new jt(e);this.ofType=Mt(e)}function Pt(e){return mt(e)||gt(e)}function Dt(e){if(!Pt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL wrapping type."));return e}function Lt(e){return nt(e)&&!gt(e)}function Mt(e){if(!Lt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL nullable type."));return e}function kt(e){if(e)return gt(e)?e.ofType:e}function Ct(e){return it(e)||at(e)||ut(e)||lt(e)||pt(e)||ht(e)}function Vt(e){if(!Ct(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL named type."));return e}function Ft(e){if(e){for(var t=e;Pt(t);)t=t.ofType;return t}}function $t(e){return"function"==typeof e?e():e}function Ut(e){return e&&e.length>0?e:void 0}xt.prototype.toString=function(){return"["+String(this.ofType)+"]"},xt.prototype.toJSON=function(){return this.toString()},Object.defineProperty(xt.prototype,l,{get:function(){return"GraphQLList"}}),L(xt),jt.prototype.toString=function(){return String(this.ofType)+"!"},jt.prototype.toJSON=function(){return this.toString()},Object.defineProperty(jt.prototype,l,{get:function(){return"GraphQLNonNull"}}),L(jt);var Bt=function(){function e(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:ke;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:ke,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e,t){return i(Ze(e,t))},this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Ut(e.extensionASTNodes),"string"==typeof e.name||G(0,"Must provide name."),null==e.specifiedByUrl||"string"==typeof e.specifiedByUrl||G(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(B(e.specifiedByUrl),".")),null==e.serialize||"function"==typeof e.serialize||G(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||G(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},tt(e,[{key:l,get:function(){return"GraphQLScalarType"}}]),e}();L(Bt);var Ht=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Ut(e.extensionASTNodes),this._fields=qt.bind(void 0,e),this._interfaces=Gt.bind(void 0,e),"string"==typeof e.name||G(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||G(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(B(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:zt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},tt(e,[{key:l,get:function(){return"GraphQLObjectType"}}]),e}();function Gt(e){var t,n=null!==(t=$t(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||G(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function qt(e){var t=$t(e.fields);return Wt(t)||G(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),je(t,(function(t,n){var r;Wt(t)||G(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||G(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"==typeof t.resolve||G(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(B(t.resolve),"."));var i=null!==(r=t.args)&&void 0!==r?r:{};Wt(i)||G(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var o=Re(i).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&Pe(n.extensions),astNode:n.astNode}}));return{name:n,description:t.description,type:t.type,args:o,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&Pe(t.extensions),astNode:t.astNode}}))}function Wt(e){return s(e)&&!Array.isArray(e)}function zt(e){return je(e,(function(e){return{description:e.description,type:e.type,args:Yt(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function Yt(e){return De(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function Xt(e){return gt(e.type)&&void 0===e.defaultValue}L(Ht);var Jt=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Ut(e.extensionASTNodes),this._fields=qt.bind(void 0,e),this._interfaces=Gt.bind(void 0,e),"string"==typeof e.name||G(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||G(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(B(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:zt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},tt(e,[{key:l,get:function(){return"GraphQLInterfaceType"}}]),e}();L(Jt);var Qt=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Ut(e.extensionASTNodes),this._types=Kt.bind(void 0,e),"string"==typeof e.name||G(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||G(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(B(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},tt(e,[{key:l,get:function(){return"GraphQLUnionType"}}]),e}();function Kt(e){var t=$t(e.types);return Array.isArray(t)||G(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}L(Qt);var Zt=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Ut(e.extensionASTNodes),this._values=(t=this.name,Wt(n=e.values)||G(0,"".concat(t," values must be an object with value names as keys.")),Re(n).map((function(e){var n=e[0],r=e[1];return Wt(r)||G(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(B(r),".")),!("isDeprecated"in r)||G(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&Pe(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=xe(this._values,(function(e){return e.name})),"string"==typeof e.name||G(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new S('Enum "'.concat(this.name,'" cannot represent value: ').concat(B(e)));return t.name},t.parseValue=function(e){if("string"!=typeof e){var t=B(e);throw new S('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+en(this,t))}var n=this.getValue(e);if(null==n)throw new S('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+en(this,e));return n.value},t.parseLiteral=function(e,t){if(e.kind!==j.ENUM){var n=Ge(e);throw new S('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+en(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=Ge(e);throw new S('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+en(this,i),e)}return r.value},t.toConfig=function(){var e,t=De(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},tt(e,[{key:l,get:function(){return"GraphQLEnumType"}}]),e}();function en(e,t){return Me("the enum value",Ue(t,e.getValues().map((function(e){return e.name}))))}L(Zt);var tn=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Ut(e.extensionASTNodes),this._fields=nn.bind(void 0,e),"string"==typeof e.name||G(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e,t=je(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},tt(e,[{key:l,get:function(){return"GraphQLInputObjectType"}}]),e}();function nn(e){var t=$t(e.fields);return Wt(t)||G(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),je(t,(function(t,n){return!("resolve"in t)||G(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&Pe(t.extensions),astNode:t.astNode}}))}function rn(e){return gt(e.type)&&void 0===e.defaultValue}function on(e,t){return e===t||(gt(e)&>(t)||!(!mt(e)||!mt(t)))&&on(e.ofType,t.ofType)}function an(e,t,n){return t===n||(gt(n)?!!gt(t)&&an(e,t.ofType,n.ofType):gt(t)?an(e,t.ofType,n):mt(n)?!!mt(t)&&an(e,t.ofType,n.ofType):!mt(t)&&At(n)&&(ut(t)||at(t))&&e.isSubType(n,t))}function sn(e,t,n){return t===n||(At(t)?At(n)?e.getPossibleTypes(t).some((function(t){return e.isSubType(n,t)})):e.isSubType(t,n):!!At(n)&&e.isSubType(n,t))}L(tn);const un=Array.from||function(e,t,n){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r=e[u];if("function"==typeof r){for(var i,o=r.call(e),a=[],s=0;!(i=o.next()).done;++s)if(a.push(t.call(n,i.value,s)),s>9999999)throw new TypeError("Near-infinite iteration.");return a}var c=e.length;if("number"==typeof c&&c>=0&&c%1==0){for(var l=[],f=0;f<c;++f)Object.prototype.hasOwnProperty.call(e,f)&&l.push(t.call(n,e[f],f));return l}return[]},cn=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)};function ln(e){return ln="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},ln(e)}function fn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};if(null==e||"object"!==ln(e))return null;if(Array.isArray(e))return e.map(t);var n=e[u];if("function"==typeof n){for(var r,i=n.call(e),o=[],a=0;!(r=i.next()).done;++a)o.push(t(r.value,a));return o}var s=e.length;if("number"==typeof s&&s>=0&&s%1==0){for(var c=[],l=0;l<s;++l){if(!Object.prototype.hasOwnProperty.call(e,l))return null;c.push(t(e[String(l)],l))}return c}return null}const pn=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};var dn=2147483647,hn=-2147483648,vn=new Bt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){var t=yn(e);if("boolean"==typeof t)return t?1:0;var n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),!pn(n))throw new S("Int cannot represent non-integer value: ".concat(B(t)));if(n>dn||n<hn)throw new S("Int cannot represent non 32-bit signed integer value: "+B(t));return n},parseValue:function(e){if(!pn(e))throw new S("Int cannot represent non-integer value: ".concat(B(e)));if(e>dn||e<hn)throw new S("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(e){if(e.kind!==j.INT)throw new S("Int cannot represent non-integer value: ".concat(Ge(e)),e);var t=parseInt(e.value,10);if(t>dn||t<hn)throw new S("Int cannot represent non 32-bit signed integer value: ".concat(e.value),e);return t}}),mn=new Bt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){var t=yn(e);if("boolean"==typeof t)return t?1:0;var n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),!cn(n))throw new S("Float cannot represent non numeric value: ".concat(B(t)));return n},parseValue:function(e){if(!cn(e))throw new S("Float cannot represent non numeric value: ".concat(B(e)));return e},parseLiteral:function(e){if(e.kind!==j.FLOAT&&e.kind!==j.INT)throw new S("Float cannot represent non numeric value: ".concat(Ge(e)),e);return parseFloat(e.value)}});function yn(e){if(s(e)){if("function"==typeof e.valueOf){var t=e.valueOf();if(!s(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}var gn=new Bt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=yn(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if(cn(t))return t.toString();throw new S("String cannot represent value: ".concat(B(e)))},parseValue:function(e){if("string"!=typeof e)throw new S("String cannot represent a non string value: ".concat(B(e)));return e},parseLiteral:function(e){if(e.kind!==j.STRING)throw new S("String cannot represent a non string value: ".concat(Ge(e)),e);return e.value}}),bn=new Bt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var t=yn(e);if("boolean"==typeof t)return t;if(cn(t))return 0!==t;throw new S("Boolean cannot represent a non boolean value: ".concat(B(t)))},parseValue:function(e){if("boolean"!=typeof e)throw new S("Boolean cannot represent a non boolean value: ".concat(B(e)));return e},parseLiteral:function(e){if(e.kind!==j.BOOLEAN)throw new S("Boolean cannot represent a non boolean value: ".concat(Ge(e)),e);return e.value}}),En=new Bt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=yn(e);if("string"==typeof t)return t;if(pn(t))return String(t);throw new S("ID cannot represent value: ".concat(B(e)))},parseValue:function(e){if("string"==typeof e)return e;if(pn(e))return e.toString();throw new S("ID cannot represent value: ".concat(B(e)))},parseLiteral:function(e){if(e.kind!==j.STRING&&e.kind!==j.INT)throw new S("ID cannot represent a non-string and non-integer value: "+Ge(e),e);return e.value}}),_n=Object.freeze([gn,vn,mn,bn,En]);function wn(e){return _n.some((function(t){var n=t.name;return e.name===n}))}function On(e,t){if(gt(t)){var n=On(e,t.ofType);return(null==n?void 0:n.kind)===j.NULL?null:n}if(null===e)return{kind:j.NULL};if(void 0===e)return null;if(mt(t)){var r=t.ofType,i=fn(e);if(null!=i){for(var o=[],a=0;a<i.length;a++){var u=On(i[a],r);null!=u&&o.push(u)}return{kind:j.LIST,values:o}}return On(e,r)}if(ht(t)){if(!s(e))return null;for(var c=[],l=0,f=Te(t.getFields());l<f.length;l++){var p=f[l],d=On(e[p.name],p.type);d&&c.push({kind:j.OBJECT_FIELD,name:{kind:j.NAME,value:p.name},value:d})}return{kind:j.OBJECT,fields:c}}if(Tt(t)){var h=t.serialize(e);if(null==h)return null;if("boolean"==typeof h)return{kind:j.BOOLEAN,value:h};if("number"==typeof h&&cn(h)){var v=String(h);return Tn.test(v)?{kind:j.INT,value:v}:{kind:j.FLOAT,value:v}}if("string"==typeof h)return pt(t)?{kind:j.ENUM,value:h}:t===En&&Tn.test(h)?{kind:j.INT,value:h}:{kind:j.STRING,value:h};throw new TypeError("Cannot convert value to AST: ".concat(B(h),"."))}P(0,"Unexpected input type: "+B(t))}var Tn=/^-?(?:0|[1-9][0-9]*)$/,In=new Ht({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:gn,resolve:function(e){return e.description}},types:{description:"A list of all types supported by this server.",type:new jt(new xt(new jt(An))),resolve:function(e){return Te(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new jt(An),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:An,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:An,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new jt(new xt(new jt(Nn))),resolve:function(e){return e.getDirectives()}}}}}),Nn=new Ht({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:new jt(gn),resolve:function(e){return e.name}},description:{type:gn,resolve:function(e){return e.description}},isRepeatable:{type:new jt(bn),resolve:function(e){return e.isRepeatable}},locations:{type:new jt(new xt(new jt(Sn))),resolve:function(e){return e.locations}},args:{type:new jt(new xt(new jt(xn))),args:{includeDeprecated:{type:bn,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}}}}}),Sn=new Zt({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:X.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:X.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:X.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:X.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:X.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:X.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:X.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:X.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:X.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:X.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:X.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:X.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:X.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:X.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:X.UNION,description:"Location adjacent to a union definition."},ENUM:{value:X.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:X.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:X.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:X.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),An=new Ht({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new jt(Dn),resolve:function(e){return it(e)?Pn.SCALAR:at(e)?Pn.OBJECT:ut(e)?Pn.INTERFACE:lt(e)?Pn.UNION:pt(e)?Pn.ENUM:ht(e)?Pn.INPUT_OBJECT:mt(e)?Pn.LIST:gt(e)?Pn.NON_NULL:void P(0,'Unexpected type: "'.concat(B(e),'".'))}},name:{type:gn,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:gn,resolve:function(e){return void 0!==e.description?e.description:void 0}},specifiedByUrl:{type:gn,resolve:function(e){return void 0!==e.specifiedByUrl?e.specifiedByUrl:void 0}},fields:{type:new xt(new jt(Rn)),args:{includeDeprecated:{type:bn,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(at(e)||ut(e)){var r=Te(e.getFields());return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},interfaces:{type:new xt(new jt(An)),resolve:function(e){if(at(e)||ut(e))return e.getInterfaces()}},possibleTypes:{type:new xt(new jt(An)),resolve:function(e,t,n,r){var i=r.schema;if(At(e))return i.getPossibleTypes(e)}},enumValues:{type:new xt(new jt(jn)),args:{includeDeprecated:{type:bn,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(pt(e)){var r=e.getValues();return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},inputFields:{type:new xt(new jt(xn)),args:{includeDeprecated:{type:bn,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(ht(e)){var r=Te(e.getFields());return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},ofType:{type:An,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),Rn=new Ht({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new jt(gn),resolve:function(e){return e.name}},description:{type:gn,resolve:function(e){return e.description}},args:{type:new jt(new xt(new jt(xn))),args:{includeDeprecated:{type:bn,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}},type:{type:new jt(An),resolve:function(e){return e.type}},isDeprecated:{type:new jt(bn),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:gn,resolve:function(e){return e.deprecationReason}}}}}),xn=new Ht({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new jt(gn),resolve:function(e){return e.name}},description:{type:gn,resolve:function(e){return e.description}},type:{type:new jt(An),resolve:function(e){return e.type}},defaultValue:{type:gn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=e.type,n=On(e.defaultValue,t);return n?Ge(n):null}},isDeprecated:{type:new jt(bn),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:gn,resolve:function(e){return e.deprecationReason}}}}}),jn=new Ht({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new jt(gn),resolve:function(e){return e.name}},description:{type:gn,resolve:function(e){return e.description}},isDeprecated:{type:new jt(bn),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:gn,resolve:function(e){return e.deprecationReason}}}}}),Pn=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),Dn=new Zt({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Pn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Pn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Pn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Pn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Pn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Pn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Pn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Pn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Ln={name:"__schema",type:new jt(In),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Mn={name:"__type",type:An,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new jt(gn),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},kn={name:"__typename",type:new jt(gn),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Cn=Object.freeze([In,Nn,Sn,An,Rn,xn,jn,Dn]);function Vn(e){return Cn.some((function(t){var n=t.name;return e.name===n}))}function Fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $n(e){return q(e,Bn)}function Un(e){if(!$n(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL directive."));return e}var Bn=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,e.name||G(0,"Directive must be named."),Array.isArray(e.locations)||G(0,"@".concat(e.name," locations must be an Array."));var r=null!==(n=e.args)&&void 0!==n?n:{};s(r)&&!Array.isArray(r)||G(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=Re(r).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&Pe(n.extensions),astNode:n.astNode}}))}var t,n,r=e.prototype;return r.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Yt(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},r.toString=function(){return"@"+this.name},r.toJSON=function(){return this.toString()},t=e,(n=[{key:l,get:function(){return"GraphQLDirective"}}])&&Fn(t.prototype,n),e}();L(Bn);var Hn=new Bn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[X.FIELD,X.FRAGMENT_SPREAD,X.INLINE_FRAGMENT],args:{if:{type:new jt(bn),description:"Included when true."}}}),Gn=new Bn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[X.FIELD,X.FRAGMENT_SPREAD,X.INLINE_FRAGMENT],args:{if:{type:new jt(bn),description:"Skipped when true."}}}),qn="No longer supported",Wn=new Bn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[X.FIELD_DEFINITION,X.ARGUMENT_DEFINITION,X.INPUT_FIELD_DEFINITION,X.ENUM_VALUE],args:{reason:{type:gn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:qn}}}),zn=new Bn({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[X.SCALAR],args:{url:{type:new jt(gn),description:"The URL that specifies the behaviour of this scalar."}}}),Yn=Object.freeze([Hn,Gn,Wn,zn]);function Xn(e){return Yn.some((function(t){return t.name===e.name}))}function Jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qn(e){return q(e,Zn)}function Kn(e){if(!Qn(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL schema."));return e}var Zn=function(){function e(e){var t;this.__validationErrors=!0===e.assumeValid?[]:void 0,s(e)||G(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||G(0,'"types" must be Array if provided but got: '.concat(B(e.types),".")),!e.directives||Array.isArray(e.directives)||G(0,'"directives" must be Array if provided but got: '+"".concat(B(e.directives),".")),this.description=e.description,this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(t=e.directives)&&void 0!==t?t:Yn;var n=new Set(e.types);if(null!=e.types)for(var r=0,i=e.types;r<i.length;r++){var o=i[r];n.delete(o),er(o,n)}null!=this._queryType&&er(this._queryType,n),null!=this._mutationType&&er(this._mutationType,n),null!=this._subscriptionType&&er(this._subscriptionType,n);for(var a=0,u=this._directives;a<u.length;a++){var c=u[a];if($n(c))for(var l=0,f=c.args;l<f.length;l++)er(f[l].type,n)}er(In,n),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var p=0,d=un(n);p<d.length;p++){var h=d[p];if(null!=h){var v=h.name;if(v||G(0,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[v])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(v,'".'));if(this._typeMap[v]=h,ut(h))for(var m=0,y=h.getInterfaces();m<y.length;m++){var g=y[m];if(ut(g)){var b=this._implementationsMap[g.name];void 0===b&&(b=this._implementationsMap[g.name]={objects:[],interfaces:[]}),b.interfaces.push(h)}}else if(at(h))for(var E=0,_=h.getInterfaces();E<_.length;E++){var w=_[E];if(ut(w)){var O=this._implementationsMap[w.name];void 0===O&&(O=this._implementationsMap[w.name]={objects:[],interfaces:[]}),O.objects.push(h)}}}}}var t,n,r=e.prototype;return r.getQueryType=function(){return this._queryType},r.getMutationType=function(){return this._mutationType},r.getSubscriptionType=function(){return this._subscriptionType},r.getTypeMap=function(){return this._typeMap},r.getType=function(e){return this.getTypeMap()[e]},r.getPossibleTypes=function(e){return lt(e)?e.getTypes():this.getImplementations(e).objects},r.getImplementations=function(e){var t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}},r.isPossibleType=function(e,t){return this.isSubType(e,t)},r.isSubType=function(e,t){var n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),lt(e))for(var r=0,i=e.getTypes();r<i.length;r++)n[i[r].name]=!0;else{for(var o=this.getImplementations(e),a=0,s=o.objects;a<s.length;a++)n[s[a].name]=!0;for(var u=0,c=o.interfaces;u<c.length;u++)n[c[u].name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]},r.getDirectives=function(){return this._directives},r.getDirective=function(e){return Oe(this.getDirectives(),(function(t){return t.name===e}))},r.toConfig=function(){var e;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Te(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[],assumeValid:void 0!==this.__validationErrors}},t=e,(n=[{key:l,get:function(){return"GraphQLSchema"}}])&&Jn(t.prototype,n),e}();function er(e,t){var n=Ft(e);if(!t.has(n))if(t.add(n),lt(n))for(var r=0,i=n.getTypes();r<i.length;r++)er(i[r],t);else if(at(n)||ut(n)){for(var o=0,a=n.getInterfaces();o<a.length;o++)er(a[o],t);for(var s=0,u=Te(n.getFields());s<u.length;s++){var c=u[s];er(c.type,t);for(var l=0,f=c.args;l<f.length;l++)er(f[l].type,t)}}else if(ht(n))for(var p=0,d=Te(n.getFields());p<d.length;p++)er(d[p].type,t);return t}function tr(e){if(Kn(e),e.__validationErrors)return e.__validationErrors;var t=new rr(e);!function(e){var t=e.schema,n=t.getQueryType();if(n){if(!at(n)){var r;e.reportError("Query root type must be Object type, it cannot be ".concat(B(n),"."),null!==(r=ir(t,"query"))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);var i,o=t.getMutationType();o&&!at(o)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(B(o),"."),null!==(i=ir(t,"mutation"))&&void 0!==i?i:o.astNode);var a,s=t.getSubscriptionType();s&&!at(s)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(B(s),"."),null!==(a=ir(t,"subscription"))&&void 0!==a?a:s.astNode)}(t),function(e){for(var t=0,n=e.schema.getDirectives();t<n.length;t++){var r=n[t];if($n(r)){or(e,r);for(var i=0,o=r.args;i<o.length;i++){var a,s=o[i];or(e,s),Et(s.type)||e.reportError("The type of @".concat(r.name,"(").concat(s.name,":) must be Input Type ")+"but got: ".concat(B(s.type),"."),s.astNode),Xt(s)&&null!=s.deprecationReason&&e.reportError("Required argument @".concat(r.name,"(").concat(s.name,":) cannot be deprecated."),[yr(s.astNode),null===(a=s.astNode)||void 0===a?void 0:a.type])}}else e.reportError("Expected directive but got: ".concat(B(r),"."),null==r?void 0:r.astNode)}}(t),function(e){for(var t=function(e){var t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(!t[o.name]){t[o.name]=!0,r[o.name]=n.length;for(var a=Te(o.getFields()),s=0;s<a.length;s++){var u=a[s];if(gt(u.type)&&ht(u.type.ofType)){var c=u.type.ofType,l=r[c.name];if(n.push(u),void 0===l)i(c);else{var f=n.slice(l),p=f.map((function(e){return e.name})).join(".");e.reportError('Cannot reference Input Object "'.concat(c.name,'" within itself through a series of non-null fields: "').concat(p,'".'),f.map((function(e){return e.astNode})))}n.pop()}}r[o.name]=void 0}}}(e),n=e.schema.getTypeMap(),r=0,i=Te(n);r<i.length;r++){var o=i[r];Ct(o)?(Vn(o)||or(e,o),at(o)||ut(o)?(ar(e,o),sr(e,o)):lt(o)?lr(e,o):pt(o)?fr(e,o):ht(o)&&(pr(e,o),t(o))):e.reportError("Expected GraphQL named type but got: ".concat(B(o),"."),o.astNode)}}(t);var n=t.getErrors();return e.__validationErrors=n,n}function nr(e){var t=tr(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}var rr=function(){function e(e){this._errors=[],this.schema=e}var t=e.prototype;return t.reportError=function(e,t){var n=Array.isArray(t)?t.filter(Boolean):t;this.addError(new S(e,n))},t.addError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},e}();function ir(e,t){for(var n=hr(e,(function(e){return e.operationTypes})),r=0;r<n.length;r++){var i=n[r];if(i.operation===t)return i.type}}function or(e,t){var n=Ae(t.name);n&&e.addError(Ie(n,t.astNode))}function ar(e,t){var n=Te(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),dr(t));for(var r=0;r<n.length;r++){var i,o=n[r];or(e,o),wt(o.type)||e.reportError("The type of ".concat(t.name,".").concat(o.name," must be Output Type ")+"but got: ".concat(B(o.type),"."),null===(i=o.astNode)||void 0===i?void 0:i.type);for(var a=0,s=o.args;a<s.length;a++){var u,c,l=s[a],f=l.name;or(e,l),Et(l.type)||e.reportError("The type of ".concat(t.name,".").concat(o.name,"(").concat(f,":) must be Input ")+"Type but got: ".concat(B(l.type),"."),null===(u=l.astNode)||void 0===u?void 0:u.type),Xt(l)&&null!=l.deprecationReason&&e.reportError("Required argument ".concat(t.name,".").concat(o.name,"(").concat(f,":) cannot be deprecated."),[yr(l.astNode),null===(c=l.astNode)||void 0===c?void 0:c.type])}}}function sr(e,t){for(var n=Object.create(null),r=0,i=t.getInterfaces();r<i.length;r++){var o=i[r];ut(o)?t!==o?n[o.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(o.name," once."),vr(t,o)):(n[o.name]=!0,cr(e,t,o),ur(e,t,o)):e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),vr(t,o)):e.reportError("Type ".concat(B(t)," must only implement Interface types, ")+"it cannot implement ".concat(B(o),"."),vr(t,o))}}function ur(e,t,n){for(var r=t.getFields(),i=0,o=Te(n.getFields());i<o.length;i++){var a=o[i],s=a.name,u=r[s];if(u){var c,l;an(e.schema,u.type,a.type)||e.reportError("Interface field ".concat(n.name,".").concat(s," expects type ")+"".concat(B(a.type)," but ").concat(t.name,".").concat(s," ")+"is type ".concat(B(u.type),"."),[null===(c=a.astNode)||void 0===c?void 0:c.type,null===(l=u.astNode)||void 0===l?void 0:l.type]);for(var f=function(r,i){var o,a,c=i[r],l=c.name,f=Oe(u.args,(function(e){return e.name===l}));if(!f)return e.reportError("Interface field argument ".concat(n.name,".").concat(s,"(").concat(l,":) expected but ").concat(t.name,".").concat(s," does not provide it."),[c.astNode,u.astNode]),"continue";on(c.type,f.type)||e.reportError("Interface field argument ".concat(n.name,".").concat(s,"(").concat(l,":) ")+"expects type ".concat(B(c.type)," but ")+"".concat(t.name,".").concat(s,"(").concat(l,":) is type ")+"".concat(B(f.type),"."),[null===(o=c.astNode)||void 0===o?void 0:o.type,null===(a=f.astNode)||void 0===a?void 0:a.type])},p=0,d=a.args;p<d.length;p++)f(p,d);for(var h=function(r,i){var o=i[r],u=o.name;!Oe(a.args,(function(e){return e.name===u}))&&Xt(o)&&e.reportError("Object field ".concat(t.name,".").concat(s," includes required argument ").concat(u," that is missing from the Interface field ").concat(n.name,".").concat(s,"."),[o.astNode,a.astNode])},v=0,m=u.args;v<m.length;v++)h(v,m)}else e.reportError("Interface field ".concat(n.name,".").concat(s," expected but ").concat(t.name," does not provide it."),[a.astNode].concat(dr(t)))}}function cr(e,t,n){for(var r=t.getInterfaces(),i=0,o=n.getInterfaces();i<o.length;i++){var a=o[i];-1===r.indexOf(a)&&e.reportError(a===t?"Type ".concat(t.name," cannot implement ").concat(n.name," because it would create a circular reference."):"Type ".concat(t.name," must implement ").concat(a.name," because it is implemented by ").concat(n.name,"."),[].concat(vr(n,a),vr(t,n)))}}function lr(e,t){var n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),dr(t));for(var r=Object.create(null),i=0;i<n.length;i++){var o=n[i];r[o.name]?e.reportError("Union type ".concat(t.name," can only include type ").concat(o.name," once."),mr(t,o.name)):(r[o.name]=!0,at(o)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat(B(o),"."),mr(t,String(o))))}}function fr(e,t){var n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),dr(t));for(var r=0;r<n.length;r++){var i=n[r],o=i.name;or(e,i),"true"!==o&&"false"!==o&&"null"!==o||e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(o,"."),i.astNode)}}function pr(e,t){var n=Te(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),dr(t));for(var r=0;r<n.length;r++){var i,o,a=n[r];or(e,a),Et(a.type)||e.reportError("The type of ".concat(t.name,".").concat(a.name," must be Input Type ")+"but got: ".concat(B(a.type),"."),null===(i=a.astNode)||void 0===i?void 0:i.type),rn(a)&&null!=a.deprecationReason&&e.reportError("Required input field ".concat(t.name,".").concat(a.name," cannot be deprecated."),[yr(a.astNode),null===(o=a.astNode)||void 0===o?void 0:o.type])}}function dr(e){var t=e.astNode,n=e.extensionASTNodes;return t?n?[t].concat(n):[t]:null!=n?n:[]}function hr(e,t){for(var n=[],r=0,i=dr(e);r<i.length;r++){var o,a=i[r];n=n.concat(null!==(o=t(a))&&void 0!==o?o:[])}return n}function vr(e,t){return hr(e,(function(e){return e.interfaces})).filter((function(e){return e.name.value===t.name}))}function mr(e,t){return hr(e,(function(e){return e.types})).filter((function(e){return e.name.value===t}))}function yr(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((function(e){return e.name.value===Wn.name}))}function gr(e,t){var n;return t.kind===j.LIST_TYPE?(n=gr(e,t.type))&&new xt(n):t.kind===j.NON_NULL_TYPE?(n=gr(e,t.type))&&new jt(n):t.kind===j.NAMED_TYPE?e.getType(t.name.value):void P(0,"Unexpected type node: "+B(t))}var br=function(){function e(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=t?t:Er,n&&(Et(n)&&this._inputTypeStack.push(n),Nt(n)&&this._parentTypeStack.push(n),wt(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case j.SELECTION_SET:var n=Ft(this.getType());this._parentTypeStack.push(Nt(n)?n:void 0);break;case j.FIELD:var r,i,o=this.getParentType();o&&(r=this._getFieldDef(t,o,e))&&(i=r.type),this._fieldDefStack.push(r),this._typeStack.push(wt(i)?i:void 0);break;case j.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case j.OPERATION_DEFINITION:var a;switch(e.operation){case"query":a=t.getQueryType();break;case"mutation":a=t.getMutationType();break;case"subscription":a=t.getSubscriptionType()}this._typeStack.push(at(a)?a:void 0);break;case j.INLINE_FRAGMENT:case j.FRAGMENT_DEFINITION:var s=e.typeCondition,u=s?gr(t,s):Ft(this.getType());this._typeStack.push(wt(u)?u:void 0);break;case j.VARIABLE_DEFINITION:var c=gr(t,e.type);this._inputTypeStack.push(Et(c)?c:void 0);break;case j.ARGUMENT:var l,f,p,d=null!==(l=this.getDirective())&&void 0!==l?l:this.getFieldDef();d&&(f=Oe(d.args,(function(t){return t.name===e.name.value})))&&(p=f.type),this._argument=f,this._defaultValueStack.push(f?f.defaultValue:void 0),this._inputTypeStack.push(Et(p)?p:void 0);break;case j.LIST:var h=kt(this.getInputType()),v=mt(h)?h.ofType:h;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Et(v)?v:void 0);break;case j.OBJECT_FIELD:var m,y,g=Ft(this.getInputType());ht(g)&&(y=g.getFields()[e.name.value])&&(m=y.type),this._defaultValueStack.push(y?y.defaultValue:void 0),this._inputTypeStack.push(Et(m)?m:void 0);break;case j.ENUM:var b,E=Ft(this.getInputType());pt(E)&&(b=E.getValue(e.value)),this._enumValue=b}},t.leave=function(e){switch(e.kind){case j.SELECTION_SET:this._parentTypeStack.pop();break;case j.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case j.DIRECTIVE:this._directive=null;break;case j.OPERATION_DEFINITION:case j.INLINE_FRAGMENT:case j.FRAGMENT_DEFINITION:this._typeStack.pop();break;case j.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case j.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case j.LIST:case j.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case j.ENUM:this._enumValue=null}},e}();function Er(e,t,n){var r=n.name.value;return r===Ln.name&&e.getQueryType()===t?Ln:r===Mn.name&&e.getQueryType()===t?Mn:r===kn.name&&Nt(t)?kn:at(t)||ut(t)?t.getFields()[r]:void 0}function _r(e,t){return{enter:function(n){e.enter(n);var r=we(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),C(i)&&e.enter(i)),i}},leave:function(n){var r,i=we(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}}function wr(e){return Or(e)||Sr(e)||Rr(e)}function Or(e){return e.kind===j.OPERATION_DEFINITION||e.kind===j.FRAGMENT_DEFINITION}function Tr(e){return e.kind===j.FIELD||e.kind===j.FRAGMENT_SPREAD||e.kind===j.INLINE_FRAGMENT}function Ir(e){return e.kind===j.VARIABLE||e.kind===j.INT||e.kind===j.FLOAT||e.kind===j.STRING||e.kind===j.BOOLEAN||e.kind===j.NULL||e.kind===j.ENUM||e.kind===j.LIST||e.kind===j.OBJECT}function Nr(e){return e.kind===j.NAMED_TYPE||e.kind===j.LIST_TYPE||e.kind===j.NON_NULL_TYPE}function Sr(e){return e.kind===j.SCHEMA_DEFINITION||Ar(e)||e.kind===j.DIRECTIVE_DEFINITION}function Ar(e){return e.kind===j.SCALAR_TYPE_DEFINITION||e.kind===j.OBJECT_TYPE_DEFINITION||e.kind===j.INTERFACE_TYPE_DEFINITION||e.kind===j.UNION_TYPE_DEFINITION||e.kind===j.ENUM_TYPE_DEFINITION||e.kind===j.INPUT_OBJECT_TYPE_DEFINITION}function Rr(e){return e.kind===j.SCHEMA_EXTENSION||xr(e)}function xr(e){return e.kind===j.SCALAR_TYPE_EXTENSION||e.kind===j.OBJECT_TYPE_EXTENSION||e.kind===j.INTERFACE_TYPE_EXTENSION||e.kind===j.UNION_TYPE_EXTENSION||e.kind===j.ENUM_TYPE_EXTENSION||e.kind===j.INPUT_OBJECT_TYPE_EXTENSION}function jr(e){return{Document:function(t){for(var n=0,r=t.definitions;n<r.length;n++){var i=r[n];if(!Or(i)){var o=i.kind===j.SCHEMA_DEFINITION||i.kind===j.SCHEMA_EXTENSION?"schema":'"'+i.name.value+'"';e.reportError(new S("The ".concat(o," definition is not executable."),i))}}return!1}}}function Pr(e){var t=Object.create(null);return{OperationDefinition:function(n){var r=n.name;return r&&(t[r.value]?e.reportError(new S('There can be only one operation named "'.concat(r.value,'".'),[t[r.value],r])):t[r.value]=r),!1},FragmentDefinition:function(){return!1}}}function Dr(e){var t=0;return{Document:function(e){t=e.definitions.filter((function(e){return e.kind===j.OPERATION_DEFINITION})).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new S("This anonymous operation must be the only defined operation.",n))}}}function Lr(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new S(t.name?'Subscription "'.concat(t.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}}function Mr(e){for(var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null),i=0,o=e.getDocument().definitions;i<o.length;i++){var a=o[i];Ar(a)&&(r[a.name.value]=!0)}var s=Object.keys(n).concat(Object.keys(r));return{NamedType:function(t,i,o,a,u){var c=t.name.value;if(!n[c]&&!r[c]){var l,f=null!==(l=u[2])&&void 0!==l?l:o,p=null!=f&&function(e){return!Array.isArray(e)&&(Sr(e)||Rr(e))}(f);if(p&&function(e){return-1!==kr.indexOf(e)}(c))return;var d=Ue(c,p?kr.concat(s):s);e.reportError(new S('Unknown type "'.concat(c,'".')+Me(d),t))}}}}var kr=[].concat(_n,Cn).map((function(e){return e.name}));function Cr(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var r=gr(e.getSchema(),n);if(r&&!Nt(r)){var i=Ge(n);e.reportError(new S('Fragment cannot condition on non composite type "'.concat(i,'".'),n))}}},FragmentDefinition:function(t){var n=gr(e.getSchema(),t.typeCondition);if(n&&!Nt(n)){var r=Ge(t.typeCondition);e.reportError(new S('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(r,'".'),t.typeCondition))}}}}function Vr(e){return{VariableDefinition:function(t){var n=gr(e.getSchema(),t.type);if(n&&!Et(n)){var r=t.variable.name.value,i=Ge(t.type);e.reportError(new S('Variable "$'.concat(r,'" cannot be non-input type "').concat(i,'".'),t.type))}}}}function Fr(e){return{Field:function(t){var n=e.getType(),r=t.selectionSet;if(n)if(Tt(Ft(n))){if(r){var i=t.name.value,o=B(n);e.reportError(new S('Field "'.concat(i,'" must not have a selection since type "').concat(o,'" has no subfields.'),r))}}else if(!r){var a=t.name.value,s=B(n);e.reportError(new S('Field "'.concat(a,'" of type "').concat(s,'" must have a selection of subfields. Did you mean "').concat(a,' { ... }"?'),t))}}}}function $r(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var r=e.getSchema(),i=t.name.value,o=Me("to use an inline fragment on",function(e,t,n){if(!At(t))return[];for(var r=new Set,i=Object.create(null),o=0,a=e.getPossibleTypes(t);o<a.length;o++){var s=a[o];if(s.getFields()[n]){r.add(s),i[s.name]=1;for(var u=0,c=s.getInterfaces();u<c.length;u++){var l,f=c[u];f.getFields()[n]&&(r.add(f),i[f.name]=(null!==(l=i[f.name])&&void 0!==l?l:0)+1)}}}return un(r).sort((function(t,n){var r=i[n.name]-i[t.name];return 0!==r?r:ut(t)&&e.isSubType(t,n)?-1:ut(n)&&e.isSubType(n,t)?1:Ce(t.name,n.name)})).map((function(e){return e.name}))}(r,n,i));""===o&&(o=Me(function(e,t){return at(e)||ut(e)?Ue(t,Object.keys(e.getFields())):[]}(n,i))),e.reportError(new S('Cannot query field "'.concat(i,'" on type "').concat(n.name,'".')+o,t))}}}}function Ur(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var r=n.name.value;return t[r]?e.reportError(new S('There can be only one fragment named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name,!1}}}function Br(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new S('Unknown fragment "'.concat(n,'".'),t.name))}}}function Hr(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var r=Object.create(null),i=0;i<t.length;i++)for(var o=t[i],a=0,s=e.getRecursivelyReferencedFragments(o);a<s.length;a++)r[s[a].name.value]=!0;for(var u=0;u<n.length;u++){var c=n[u],l=c.name.value;!0!==r[l]&&e.reportError(new S('Fragment "'.concat(l,'" is never used.'),c))}}}}}function Gr(e){return{InlineFragment:function(t){var n=e.getType(),r=e.getParentType();if(Nt(n)&&Nt(r)&&!sn(e.getSchema(),n,r)){var i=B(r),o=B(n);e.reportError(new S('Fragment cannot be spread here as objects of type "'.concat(i,'" can never be of type "').concat(o,'".'),t))}},FragmentSpread:function(t){var n=t.name.value,r=function(e,t){var n=e.getFragment(t);if(n){var r=gr(e.getSchema(),n.typeCondition);if(Nt(r))return r}}(e,n),i=e.getParentType();if(r&&i&&!sn(e.getSchema(),r,i)){var o=B(i),a=B(r);e.reportError(new S('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(o,'" can never be of type "').concat(a,'".'),t))}}}}function qr(e){var t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(e){return i(e),!1}};function i(o){if(!t[o.name.value]){var a=o.name.value;t[a]=!0;var s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){r[a]=n.length;for(var u=0;u<s.length;u++){var c=s[u],l=c.name.value,f=r[l];if(n.push(c),void 0===f){var p=e.getFragment(l);p&&i(p)}else{var d=n.slice(f),h=d.slice(0,-1).map((function(e){return'"'+e.name.value+'"'})).join(", ");e.reportError(new S('Cannot spread fragment "'.concat(l,'" within itself')+(""!==h?" via ".concat(h,"."):"."),d))}n.pop()}r[a]=void 0}}}}function Wr(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var r=n.variable.name.value;t[r]?e.reportError(new S('There can be only one variable named "$'.concat(r,'".'),[t[r],n.variable.name])):t[r]=n.variable.name}}}function zr(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var r=e.getRecursiveVariableUsages(n),i=0;i<r.length;i++){var o=r[i].node,a=o.name.value;!0!==t[a]&&e.reportError(new S(n.name?'Variable "$'.concat(a,'" is not defined by operation "').concat(n.name.value,'".'):'Variable "$'.concat(a,'" is not defined.'),[o,n]))}}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}}function Yr(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var r=Object.create(null),i=e.getRecursiveVariableUsages(n),o=0;o<i.length;o++)r[i[o].node.name.value]=!0;for(var a=0,s=t;a<s.length;a++){var u=s[a],c=u.variable.name.value;!0!==r[c]&&e.reportError(new S(n.name?'Variable "$'.concat(c,'" is never used in operation "').concat(n.name.value,'".'):'Variable "$'.concat(c,'" is never used.'),u))}}},VariableDefinition:function(e){t.push(e)}}}function Xr(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Yn,i=0;i<r.length;i++){var o=r[i];t[o.name]=o.locations}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];u.kind===j.DIRECTIVE_DEFINITION&&(t[u.name.value]=u.locations.map((function(e){return e.value})))}return{Directive:function(n,r,i,o,a){var s=n.name.value,u=t[s];if(u){var c=function(e){var t=e[e.length-1];switch(!Array.isArray(t)||P(0),t.kind){case j.OPERATION_DEFINITION:return function(e){switch(e){case"query":return X.QUERY;case"mutation":return X.MUTATION;case"subscription":return X.SUBSCRIPTION}P(0,"Unexpected operation: "+B(e))}(t.operation);case j.FIELD:return X.FIELD;case j.FRAGMENT_SPREAD:return X.FRAGMENT_SPREAD;case j.INLINE_FRAGMENT:return X.INLINE_FRAGMENT;case j.FRAGMENT_DEFINITION:return X.FRAGMENT_DEFINITION;case j.VARIABLE_DEFINITION:return X.VARIABLE_DEFINITION;case j.SCHEMA_DEFINITION:case j.SCHEMA_EXTENSION:return X.SCHEMA;case j.SCALAR_TYPE_DEFINITION:case j.SCALAR_TYPE_EXTENSION:return X.SCALAR;case j.OBJECT_TYPE_DEFINITION:case j.OBJECT_TYPE_EXTENSION:return X.OBJECT;case j.FIELD_DEFINITION:return X.FIELD_DEFINITION;case j.INTERFACE_TYPE_DEFINITION:case j.INTERFACE_TYPE_EXTENSION:return X.INTERFACE;case j.UNION_TYPE_DEFINITION:case j.UNION_TYPE_EXTENSION:return X.UNION;case j.ENUM_TYPE_DEFINITION:case j.ENUM_TYPE_EXTENSION:return X.ENUM;case j.ENUM_VALUE_DEFINITION:return X.ENUM_VALUE;case j.INPUT_OBJECT_TYPE_DEFINITION:case j.INPUT_OBJECT_TYPE_EXTENSION:return X.INPUT_OBJECT;case j.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===j.INPUT_OBJECT_TYPE_DEFINITION?X.INPUT_FIELD_DEFINITION:X.ARGUMENT_DEFINITION}}(a);c&&-1===u.indexOf(c)&&e.reportError(new S('Directive "@'.concat(s,'" may not be used on ').concat(c,"."),n))}else e.reportError(new S('Unknown directive "@'.concat(s,'".'),n))}}}function Jr(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Yn,i=0;i<r.length;i++){var o=r[i];t[o.name]=!o.isRepeatable}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];u.kind===j.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable)}var c=Object.create(null),l=Object.create(null);return{enter:function(n){if(null!=n.directives){var r;if(n.kind===j.SCHEMA_DEFINITION||n.kind===j.SCHEMA_EXTENSION)r=c;else if(Ar(n)||xr(n)){var i=n.name.value;void 0===(r=l[i])&&(l[i]=r=Object.create(null))}else r=Object.create(null);for(var o=0,a=n.directives;o<a.length;o++){var s=a[o],u=s.name.value;t[u]&&(r[u]?e.reportError(new S('The directive "@'.concat(u,'" can only be used once at this location.'),[r[u],s])):r[u]=s)}}}}}function Qr(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 Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(n),!0).forEach((function(t){Zr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ei(e){return Kr(Kr({},ti(e)),{},{Argument:function(t){var n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){var o=t.name.value,a=Ue(o,r.args.map((function(e){return e.name})));e.reportError(new S('Unknown argument "'.concat(o,'" on field "').concat(i.name,".").concat(r.name,'".')+Me(a),t))}}})}function ti(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Yn,i=0;i<r.length;i++){var o=r[i];t[o.name]=o.args.map((function(e){return e.name}))}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];if(u.kind===j.DIRECTIVE_DEFINITION){var c,l=null!==(c=u.arguments)&&void 0!==c?c:[];t[u.name.value]=l.map((function(e){return e.name.value}))}}return{Directive:function(n){var r=n.name.value,i=t[r];if(n.arguments&&i)for(var o=0,a=n.arguments;o<a.length;o++){var s=a[o],u=s.name.value;if(-1===i.indexOf(u)){var c=Ue(u,i);e.reportError(new S('Unknown argument "'.concat(u,'" on directive "@').concat(r,'".')+Me(c),s))}}return!1}}}function ni(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var r=n.name.value;return t[r]?e.reportError(new S('There can be only one argument named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name,!1}}}function ri(e){return{ListValue:function(t){if(!mt(kt(e.getParentInputType())))return ii(e,t),!1},ObjectValue:function(t){var n=Ft(e.getInputType());if(!ht(n))return ii(e,t),!1;for(var r=xe(t.fields,(function(e){return e.name.value})),i=0,o=Te(n.getFields());i<o.length;i++){var a=o[i];if(!r[a.name]&&rn(a)){var s=B(a.type);e.reportError(new S('Field "'.concat(n.name,".").concat(a.name,'" of required type "').concat(s,'" was not provided.'),t))}}},ObjectField:function(t){var n=Ft(e.getParentInputType());if(!e.getInputType()&&ht(n)){var r=Ue(t.name.value,Object.keys(n.getFields()));e.reportError(new S('Field "'.concat(t.name.value,'" is not defined by type "').concat(n.name,'".')+Me(r),t))}},NullValue:function(t){var n=e.getInputType();gt(n)&&e.reportError(new S('Expected value of type "'.concat(B(n),'", found ').concat(Ge(t),"."),t))},EnumValue:function(t){return ii(e,t)},IntValue:function(t){return ii(e,t)},FloatValue:function(t){return ii(e,t)},StringValue:function(t){return ii(e,t)},BooleanValue:function(t){return ii(e,t)}}}function ii(e,t){var n=e.getInputType();if(n){var r=Ft(n);if(Tt(r))try{if(void 0===r.parseLiteral(t,void 0)){var i=B(n);e.reportError(new S('Expected value of type "'.concat(i,'", found ').concat(Ge(t),"."),t))}}catch(r){var o=B(n);r instanceof S?e.reportError(r):e.reportError(new S('Expected value of type "'.concat(o,'", found ').concat(Ge(t),"; ")+r.message,t,void 0,void 0,void 0,r))}else{var a=B(n);e.reportError(new S('Expected value of type "'.concat(a,'", found ').concat(Ge(t),"."),t))}}}function oi(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 ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach((function(t){si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ui(e){return ai(ai({},ci(e)),{},{Field:{leave:function(t){var n,r=e.getFieldDef();if(!r)return!1;for(var i=xe(null!==(n=t.arguments)&&void 0!==n?n:[],(function(e){return e.name.value})),o=0,a=r.args;o<a.length;o++){var s=a[o];if(!i[s.name]&&Xt(s)){var u=B(s.type);e.reportError(new S('Field "'.concat(r.name,'" argument "').concat(s.name,'" of type "').concat(u,'" is required, but it was not provided.'),t))}}}}})}function ci(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Yn,i=0;i<r.length;i++){var o=r[i];t[o.name]=xe(o.args.filter(Xt),(function(e){return e.name}))}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];if(u.kind===j.DIRECTIVE_DEFINITION){var c,l=null!==(c=u.arguments)&&void 0!==c?c:[];t[u.name.value]=xe(l.filter(li),(function(e){return e.name.value}))}}return{Directive:{leave:function(n){var r=n.name.value,i=t[r];if(i)for(var o,a=xe(null!==(o=n.arguments)&&void 0!==o?o:[],(function(e){return e.name.value})),s=0,u=Object.keys(i);s<u.length;s++){var c=u[s];if(!a[c]){var l=i[c].type,f=nt(l)?B(l):Ge(l);e.reportError(new S('Directive "@'.concat(r,'" argument "').concat(c,'" of type "').concat(f,'" is required, but it was not provided.'),n))}}}}}}function li(e){return e.type.kind===j.NON_NULL_TYPE&&null==e.defaultValue}function fi(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var r=e.getRecursiveVariableUsages(n),i=0;i<r.length;i++){var o=r[i],a=o.node,s=o.type,u=o.defaultValue,c=a.name.value,l=t[c];if(l&&s){var f=e.getSchema(),p=gr(f,l.type);if(p&&!pi(f,p,l.defaultValue,s,u)){var d=B(p),h=B(s);e.reportError(new S('Variable "$'.concat(c,'" of type "').concat(d,'" used in position expecting type "').concat(h,'".'),[l,a]))}}}}},VariableDefinition:function(e){t[e.variable.name.value]=e}}}function pi(e,t,n,r,i){return gt(r)&&!gt(t)?(null!=n&&n.kind!==j.NULL||void 0!==i)&&an(e,t,r.ofType):an(e,t,r)}function di(e){return Array.isArray(e)?e.map((function(e){var t=e[0],n=e[1];return'subfields "'.concat(t,'" conflict because ')+di(n)})).join(" and "):e}function hi(e){var t=new Ti,n=new Map;return{SelectionSet:function(r){for(var i=function(e,t,n,r,i){var o=[],a=Ei(e,t,r,i),s=a[0],u=a[1];if(function(e,t,n,r,i){for(var o=0,a=Re(i);o<a.length;o++){var s=a[o],u=s[0],c=s[1];if(c.length>1)for(var l=0;l<c.length;l++)for(var f=l+1;f<c.length;f++){var p=gi(e,n,r,!1,u,c[l],c[f]);p&&t.push(p)}}}(e,o,t,n,s),0!==u.length)for(var c=0;c<u.length;c++){vi(e,o,t,n,!1,s,u[c]);for(var l=c+1;l<u.length;l++)mi(e,o,t,n,!1,u[c],u[l])}return o}(e,n,t,e.getParentType(),r),o=0;o<i.length;o++){var a=i[o],s=a[0],u=s[0],c=s[1],l=a[1],f=a[2],p=di(c);e.reportError(new S('Fields "'.concat(u,'" conflict because ').concat(p,". Use different aliases on the fields to fetch both if this was intentional."),l.concat(f)))}}}}function vi(e,t,n,r,i,o,a){var s=e.getFragment(a);if(s){var u=_i(e,n,s),c=u[0],l=u[1];if(o!==c){yi(e,t,n,r,i,o,c);for(var f=0;f<l.length;f++)vi(e,t,n,r,i,o,l[f])}}}function mi(e,t,n,r,i,o,a){if(o!==a&&!r.has(o,a,i)){r.add(o,a,i);var s=e.getFragment(o),u=e.getFragment(a);if(s&&u){var c=_i(e,n,s),l=c[0],f=c[1],p=_i(e,n,u),d=p[0],h=p[1];yi(e,t,n,r,i,l,d);for(var v=0;v<h.length;v++)mi(e,t,n,r,i,o,h[v]);for(var m=0;m<f.length;m++)mi(e,t,n,r,i,f[m],a)}}}function yi(e,t,n,r,i,o,a){for(var s=0,u=Object.keys(o);s<u.length;s++){var c=u[s],l=a[c];if(l)for(var f=o[c],p=0;p<f.length;p++)for(var d=0;d<l.length;d++){var h=gi(e,n,r,i,c,f[p],l[d]);h&&t.push(h)}}}function gi(e,t,n,r,i,o,a){var s,u,c=o[0],l=o[1],f=o[2],p=a[0],d=a[1],h=a[2],v=r||c!==p&&at(c)&&at(p);if(!v){var m,y,g=l.name.value,b=d.name.value;if(g!==b)return[[i,'"'.concat(g,'" and "').concat(b,'" are different fields')],[l],[d]];if(s=null!==(m=l.arguments)&&void 0!==m?m:[],u=null!==(y=d.arguments)&&void 0!==y?y:[],s.length!==u.length||!s.every((function(e){var t,n,r=Oe(u,(function(t){return t.name.value===e.name.value}));return!!r&&(t=e.value,n=r.value,Ge(t)===Ge(n))})))return[[i,"they have differing arguments"],[l],[d]]}var E=null==f?void 0:f.type,_=null==h?void 0:h.type;if(E&&_&&bi(E,_))return[[i,'they return conflicting types "'.concat(B(E),'" and "').concat(B(_),'"')],[l],[d]];var w=l.selectionSet,O=d.selectionSet;if(w&&O){var T=function(e,t,n,r,i,o,a,s){var u=[],c=Ei(e,t,i,o),l=c[0],f=c[1],p=Ei(e,t,a,s),d=p[0],h=p[1];if(yi(e,u,t,n,r,l,d),0!==h.length)for(var v=0;v<h.length;v++)vi(e,u,t,n,r,l,h[v]);if(0!==f.length)for(var m=0;m<f.length;m++)vi(e,u,t,n,r,d,f[m]);for(var y=0;y<f.length;y++)for(var g=0;g<h.length;g++)mi(e,u,t,n,r,f[y],h[g]);return u}(e,t,n,v,Ft(E),w,Ft(_),O);return function(e,t,n,r){if(e.length>0)return[[t,e.map((function(e){return e[0]}))],e.reduce((function(e,t){var n=t[1];return e.concat(n)}),[n]),e.reduce((function(e,t){var n=t[2];return e.concat(n)}),[r])]}(T,i,l,d)}}function bi(e,t){return mt(e)?!mt(t)||bi(e.ofType,t.ofType):!!mt(t)||(gt(e)?!gt(t)||bi(e.ofType,t.ofType):!!gt(t)||!(!Tt(e)&&!Tt(t))&&e!==t)}function Ei(e,t,n,r){var i=t.get(r);if(!i){var o=Object.create(null),a=Object.create(null);wi(e,n,r,o,a),i=[o,Object.keys(a)],t.set(r,i)}return i}function _i(e,t,n){var r=t.get(n.selectionSet);if(r)return r;var i=gr(e.getSchema(),n.typeCondition);return Ei(e,t,i,n.selectionSet)}function wi(e,t,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var s=a[o];switch(s.kind){case j.FIELD:var u=s.name.value,c=void 0;(at(t)||ut(t))&&(c=t.getFields()[u]);var l=s.alias?s.alias.value:u;r[l]||(r[l]=[]),r[l].push([t,s,c]);break;case j.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case j.INLINE_FRAGMENT:var f=s.typeCondition,p=f?gr(e.getSchema(),f):t;wi(e,p,s.selectionSet,r,i)}}}var Oi,Ti=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(e,t,n){var r=this._data[e],i=r&&r[t];return void 0!==i&&(!1!==n||!1===i)},t.add=function(e,t,n){this._pairSetAdd(e,t,n),this._pairSetAdd(t,e,n)},t._pairSetAdd=function(e,t,n){var r=this._data[e];r||(r=Object.create(null),this._data[e]=r),r[t]=n},e}();function Ii(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var r=t.name.value;n[r]?e.reportError(new S('There can be only one input field named "'.concat(r,'".'),[n[r],t.name])):n[r]=t.name}}}function Ni(e){var t,n,r,i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition:function(t){o?e.reportError(new S("Cannot define a new schema within a schema extension.",t)):(a>0&&e.reportError(new S("Must provide only one schema definition.",t)),++a)}}}function Si(e){var t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){for(var i,o=null!==(i=t.operationTypes)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a],u=s.operation,c=n[u];r[u]?e.reportError(new S("Type for ".concat(u," already defined in the schema. It cannot be redefined."),s)):c?e.reportError(new S("There can be only one ".concat(u," type in schema."),[c,s])):n[u]=s}return!1}}function Ai(e){var t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){var i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new S('There can be only one type named "'.concat(i,'".'),[t[i],r.name])):t[i]=r.name,!1;e.reportError(new S('Type "'.concat(i,'" already exists in the schema. It cannot also be defined in this type definition.'),r.name))}}function Ri(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i,o=t.name.value;r[o]||(r[o]=Object.create(null));for(var a=null!==(i=t.values)&&void 0!==i?i:[],s=r[o],u=0;u<a.length;u++){var c=a[u],l=c.name.value,f=n[o];pt(f)&&f.getValue(l)?e.reportError(new S('Enum value "'.concat(o,".").concat(l,'" already exists in the schema. It cannot also be defined in this type extension.'),c.name)):s[l]?e.reportError(new S('Enum value "'.concat(o,".").concat(l,'" can only be defined once.'),[s[l],c.name])):s[l]=c.name}return!1}}function xi(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i,o=t.name.value;r[o]||(r[o]=Object.create(null));for(var a=null!==(i=t.fields)&&void 0!==i?i:[],s=r[o],u=0;u<a.length;u++){var c=a[u],l=c.name.value;ji(n[o],l)?e.reportError(new S('Field "'.concat(o,".").concat(l,'" already exists in the schema. It cannot also be defined in this type extension.'),c.name)):s[l]?e.reportError(new S('Field "'.concat(o,".").concat(l,'" can only be defined once.'),[s[l],c.name])):s[l]=c.name}return!1}}function ji(e,t){return!!(at(e)||ut(e)||ht(e))&&null!=e.getFields()[t]}function Pi(e){var t=Object.create(null),n=e.getSchema();return{DirectiveDefinition:function(r){var i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new S('There can be only one directive named "@'.concat(i,'".'),[t[i],r.name])):t[i]=r.name,!1;e.reportError(new S('Directive "@'.concat(i,'" already exists in the schema. It cannot be redefined.'),r.name))}}}function Di(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Li(e){for(var t=e.getSchema(),n=Object.create(null),r=0,i=e.getDocument().definitions;r<i.length;r++){var o=i[r];Ar(o)&&(n[o.name.value]=o)}return{ScalarTypeExtension:a,ObjectTypeExtension:a,InterfaceTypeExtension:a,UnionTypeExtension:a,EnumTypeExtension:a,InputObjectTypeExtension:a};function a(r){var i,o,a=r.name.value,s=n[a],u=null==t?void 0:t.getType(a);if(s?i=Mi[s.kind]:u&&(i=it(o=u)?j.SCALAR_TYPE_EXTENSION:at(o)?j.OBJECT_TYPE_EXTENSION:ut(o)?j.INTERFACE_TYPE_EXTENSION:lt(o)?j.UNION_TYPE_EXTENSION:pt(o)?j.ENUM_TYPE_EXTENSION:ht(o)?j.INPUT_OBJECT_TYPE_EXTENSION:void P(0,"Unexpected type: "+B(o))),i){if(i!==r.kind){var c=function(e){switch(e){case j.SCALAR_TYPE_EXTENSION:return"scalar";case j.OBJECT_TYPE_EXTENSION:return"object";case j.INTERFACE_TYPE_EXTENSION:return"interface";case j.UNION_TYPE_EXTENSION:return"union";case j.ENUM_TYPE_EXTENSION:return"enum";case j.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}P(0,"Unexpected kind: "+B(e))}(r.kind);e.reportError(new S("Cannot extend non-".concat(c,' type "').concat(a,'".'),s?[s,r]:r))}}else{var l=Object.keys(n);t&&(l=l.concat(Object.keys(t.getTypeMap())));var f=Ue(a,l);e.reportError(new S('Cannot extend type "'.concat(a,'" because it is not defined.')+Me(f),r.name))}}}var Mi=(Di(Oi={},j.SCALAR_TYPE_DEFINITION,j.SCALAR_TYPE_EXTENSION),Di(Oi,j.OBJECT_TYPE_DEFINITION,j.OBJECT_TYPE_EXTENSION),Di(Oi,j.INTERFACE_TYPE_DEFINITION,j.INTERFACE_TYPE_EXTENSION),Di(Oi,j.UNION_TYPE_DEFINITION,j.UNION_TYPE_EXTENSION),Di(Oi,j.ENUM_TYPE_DEFINITION,j.ENUM_TYPE_EXTENSION),Di(Oi,j.INPUT_OBJECT_TYPE_DEFINITION,j.INPUT_OBJECT_TYPE_EXTENSION),Oi),ki=Object.freeze([jr,Pr,Dr,Lr,Mr,Cr,Vr,Fr,$r,Ur,Br,Hr,Gr,qr,Wr,zr,Yr,Xr,Jr,ei,ni,ri,ui,fi,hi,Ii]),Ci=Object.freeze([Ni,Si,Ai,Ri,xi,Pi,Mr,Xr,Jr,Li,ti,ni,Ii,ci]);function Vi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Fi=function(){function e(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}var t=e.prototype;return t.reportError=function(e){this._onError(e)},t.getDocument=function(){return this._ast},t.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce((function(e,t){return t.kind===j.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e}),Object.create(null))),t[e]},t.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var r=0,i=n.pop().selections;r<i.length;r++){var o=i[r];o.kind===j.FRAGMENT_SPREAD?t.push(o):o.selectionSet&&n.push(o.selectionSet)}this._fragmentSpreads.set(e,t)}return t},t.getRecursivelyReferencedFragments=function(e){var t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];for(var n=Object.create(null),r=[e.selectionSet];0!==r.length;)for(var i=r.pop(),o=0,a=this.getFragmentSpreads(i);o<a.length;o++){var s=a[o].name.value;if(!0!==n[s]){n[s]=!0;var u=this.getFragment(s);u&&(t.push(u),r.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t},e}(),$i=function(e){function t(t,n,r){var i;return(i=e.call(this,t,r)||this)._schema=n,i}return Vi(t,e),t.prototype.getSchema=function(){return this._schema},t}(Fi),Ui=function(e){function t(t,n,r,i){var o;return(o=e.call(this,n,i)||this)._schema=t,o._typeInfo=r,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}Vi(t,e);var n=t.prototype;return n.getSchema=function(){return this._schema},n.getVariableUsages=function(e){var t=this._variableUsages.get(e);if(!t){var n=[],r=new br(this._schema);Ee(e,_r(r,{VariableDefinition:function(){return!1},Variable:function(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t},n.getRecursiveVariableUsages=function(e){var t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(var n=0,r=this.getRecursivelyReferencedFragments(e);n<r.length;n++){var i=r[n];t=t.concat(this.getVariableUsages(i))}this._recursiveVariableUsages.set(e,t)}return t},n.getType=function(){return this._typeInfo.getType()},n.getParentType=function(){return this._typeInfo.getParentType()},n.getInputType=function(){return this._typeInfo.getInputType()},n.getParentInputType=function(){return this._typeInfo.getParentInputType()},n.getFieldDef=function(){return this._typeInfo.getFieldDef()},n.getDirective=function(){return this._typeInfo.getDirective()},n.getArgument=function(){return this._typeInfo.getArgument()},n.getEnumValue=function(){return this._typeInfo.getEnumValue()},t}(Fi);function Bi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ki,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new br(e),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{maxErrors:void 0};t||G(0,"Must provide document."),nr(e);var o=Object.freeze({}),a=[],s=new Ui(e,t,r,(function(e){if(null!=i.maxErrors&&a.length>=i.maxErrors)throw a.push(new S("Too many validation errors, error limit reached. Validation aborted.")),o;a.push(e)})),u=_e(n.map((function(e){return e(s)})));try{Ee(t,_r(r,u))}catch(e){if(e!==o)throw e}return a}function Hi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ci,r=[],i=new $i(e,t,(function(e){r.push(e)}));return Ee(e,_e(n.map((function(e){return e(i)})))),r}function Gi(e,t,n){return{prev:e,key:t,typename:n}}function qi(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}function Wi(e,t){if("query"===t.operation){var n=e.getQueryType();if(!n)throw new S("Schema does not define the required query root type.",t);return n}if("mutation"===t.operation){var r=e.getMutationType();if(!r)throw new S("Schema is not configured for mutations.",t);return r}if("subscription"===t.operation){var i=e.getSubscriptionType();if(!i)throw new S("Schema is not configured for subscriptions.",t);return i}throw new S("Can only have query, mutation and subscription operations.",t)}function zi(e){return e.map((function(e){return"number"==typeof e?"["+e.toString()+"]":"."+e})).join("")}function Yi(e,t,n){if(e){if(e.kind===j.VARIABLE){var r=e.name.value;if(null==n||void 0===n[r])return;var i=n[r];if(null===i&>(t))return;return i}if(gt(t)){if(e.kind===j.NULL)return;return Yi(e,t.ofType,n)}if(e.kind===j.NULL)return null;if(mt(t)){var o=t.ofType;if(e.kind===j.LIST){for(var a=[],s=0,u=e.values;s<u.length;s++){var c=u[s];if(Xi(c,n)){if(gt(o))return;a.push(null)}else{var l=Yi(c,o,n);if(void 0===l)return;a.push(l)}}return a}var f=Yi(e,o,n);if(void 0===f)return;return[f]}if(ht(t)){if(e.kind!==j.OBJECT)return;for(var p=Object.create(null),d=xe(e.fields,(function(e){return e.name.value})),h=0,v=Te(t.getFields());h<v.length;h++){var m=v[h],y=d[m.name];if(y&&!Xi(y.value,n)){var g=Yi(y.value,m.type,n);if(void 0===g)return;p[m.name]=g}else if(void 0!==m.defaultValue)p[m.name]=m.defaultValue;else if(gt(m.type))return}return p}if(Tt(t)){var b;try{b=t.parseLiteral(e,n)}catch(e){return}if(void 0===b)return;return b}P(0,"Unexpected input type: "+B(t))}}function Xi(e,t){return e.kind===j.VARIABLE&&(null==t||void 0===t[e.name.value])}function Ji(e,t){return Ki(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qi)}function Qi(e,t,n){var r="Invalid value "+B(t);throw e.length>0&&(r+=' at "value'.concat(zi(e),'"')),n.message=r+": "+n.message,n}function Ki(e,t,n,r){if(gt(t))return null!=e?Ki(e,t.ofType,n,r):void n(qi(r),e,new S('Expected non-nullable type "'.concat(B(t),'" not to be null.')));if(null==e)return null;if(mt(t)){var i=t.ofType,o=fn(e,(function(e,t){var o=Gi(r,t,void 0);return Ki(e,i,n,o)}));return null!=o?o:[Ki(e,i,n,r)]}if(ht(t)){if(!s(e))return void n(qi(r),e,new S('Expected type "'.concat(t.name,'" to be an object.')));for(var a={},u=t.getFields(),c=0,l=Te(u);c<l.length;c++){var f=l[c],p=e[f.name];if(void 0!==p)a[f.name]=Ki(p,f.type,n,Gi(r,f.name,t.name));else if(void 0!==f.defaultValue)a[f.name]=f.defaultValue;else if(gt(f.type)){var d=B(f.type);n(qi(r),e,new S('Field "'.concat(f.name,'" of required type "').concat(d,'" was not provided.')))}}for(var h=0,v=Object.keys(e);h<v.length;h++){var m=v[h];if(!u[m]){var y=Ue(m,Object.keys(t.getFields()));n(qi(r),e,new S('Field "'.concat(m,'" is not defined by type "').concat(t.name,'".')+Me(y)))}}return a}if(Tt(t)){var g;try{g=t.parseValue(e)}catch(i){return void n(qi(r),e,i instanceof S?i:new S('Expected type "'.concat(t.name,'". ')+i.message,void 0,void 0,void 0,void 0,i))}return void 0===g&&n(qi(r),e,new S('Expected type "'.concat(t.name,'".'))),g}P(0,"Unexpected input type: "+B(t))}function Zi(e,t,n){for(var r,i={},o=xe(null!==(r=t.arguments)&&void 0!==r?r:[],(function(e){return e.name.value})),a=0,s=e.args;a<s.length;a++){var u=s[a],c=u.name,l=u.type,f=o[c];if(f){var p=f.value,d=p.kind===j.NULL;if(p.kind===j.VARIABLE){var h=p.name.value;if(null==n||!to(n,h)){if(void 0!==u.defaultValue)i[c]=u.defaultValue;else if(gt(l))throw new S('Argument "'.concat(c,'" of required type "').concat(B(l),'" ')+'was provided the variable "$'.concat(h,'" which was not provided a runtime value.'),p);continue}d=null==n[h]}if(d&>(l))throw new S('Argument "'.concat(c,'" of non-null type "').concat(B(l),'" ')+"must not be null.",p);var v=Yi(p,l,n);if(void 0===v)throw new S('Argument "'.concat(c,'" has invalid value ').concat(Ge(p),"."),p);i[c]=v}else if(void 0!==u.defaultValue)i[c]=u.defaultValue;else if(gt(l))throw new S('Argument "'.concat(c,'" of required type "').concat(B(l),'" ')+"was not provided.",t)}return i}function eo(e,t,n){var r=t.directives&&Oe(t.directives,(function(t){return t.name.value===e.name}));if(r)return Zi(e,r,n)}function to(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function no(e,t,n,r,i,o,a,s){return io(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s})}function ro(e){var t=io(e);if(o(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function io(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,a=e.variableValues,s=e.operationName,u=e.fieldResolver,c=e.typeResolver;ao(t,n,a);var l=so(t,n,r,i,a,s,u,c);if(Array.isArray(l))return{errors:l};var f=function(e,t,n){var r=Wi(e.schema,t),i=co(e,r,t.selectionSet,Object.create(null),Object.create(null)),a=void 0;try{var s="mutation"===t.operation?function(e,t,n,r,i){return a=Object.keys(i),s=function(a,s){var u=i[s],c=Gi(r,s,t.name),l=po(e,t,n,u,c);return void 0===l?a:o(l)?l.then((function(e){return a[s]=e,a})):(a[s]=l,a)},u=Object.create(null),a.reduce((function(e,t){return o(e)?e.then((function(e){return s(e,t)})):s(e,t)}),u);var a,s,u}(e,r,n,a,i):uo(e,r,n,a,i);return o(s)?s.then(void 0,(function(t){return e.errors.push(t),Promise.resolve(null)})):s}catch(t){return e.errors.push(t),null}}(l,l.operation,r);return oo(l,f)}function oo(e,t){return o(t)?t.then((function(t){return oo(e,t)})):0===e.errors.length?{data:t}:{errors:e.errors,data:t}}function ao(e,t,n){t||G(0,"Must provide document."),nr(e),null==n||s(n)||G(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function so(e,t,n,r,i,o,a,s){for(var u,c,l,f=Object.create(null),p=0,d=t.definitions;p<d.length;p++){var h=d[p];switch(h.kind){case j.OPERATION_DEFINITION:if(null==o){if(void 0!==l)return[new S("Must provide operation name if query contains multiple operations.")];l=h}else(null===(u=h.name)||void 0===u?void 0:u.value)===o&&(l=h);break;case j.FRAGMENT_DEFINITION:f[h.name.value]=h}}if(!l)return null!=o?[new S('Unknown operation named "'.concat(o,'".'))]:[new S("Must provide an operation.")];var v=function(e,t,n,r){var i=[],o=null==r?void 0:r.maxErrors;try{var a=function(e,t,n,r){for(var i={},o=function(o){var a=t[o],s=a.variable.name.value,u=gr(e,a.type);if(!Et(u)){var c=Ge(a.type);return r(new S('Variable "$'.concat(s,'" expected value of type "').concat(c,'" which cannot be used as an input type.'),a.type)),"continue"}if(!to(n,s)){if(a.defaultValue)i[s]=Yi(a.defaultValue,u);else if(gt(u)){var l=B(u);r(new S('Variable "$'.concat(s,'" of required type "').concat(l,'" was not provided.'),a))}return"continue"}var f=n[s];if(null===f&>(u)){var p=B(u);return r(new S('Variable "$'.concat(s,'" of non-null type "').concat(p,'" must not be null.'),a)),"continue"}i[s]=Ji(f,u,(function(e,t,n){var i='Variable "$'.concat(s,'" got invalid value ')+B(t);e.length>0&&(i+=' at "'.concat(s).concat(zi(e),'"')),r(new S(i+"; "+n.message,a,void 0,void 0,void 0,n.originalError))}))},a=0;a<t.length;a++)o(a);return i}(e,t,n,(function(e){if(null!=o&&i.length>=o)throw new S("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)}));if(0===i.length)return{coerced:a}}catch(e){i.push(e)}return{errors:i}}(e,null!==(c=l.variableDefinitions)&&void 0!==c?c:[],null!=i?i:{},{maxErrors:50});return v.errors?v.errors:{schema:e,fragments:f,rootValue:n,contextValue:r,operation:l,variableValues:v.coerced,fieldResolver:null!=a?a:Io,typeResolver:null!=s?s:To,errors:[]}}function uo(e,t,n,r,i){for(var a,s,u,c=Object.create(null),l=!1,f=0,p=Object.keys(i);f<p.length;f++){var d=p[f],h=po(e,t,n,i[d],Gi(r,d,t.name));void 0!==h&&(c[d]=h,o(h)&&(l=!0))}return l?(a=c,u=(s=Object.keys(a)).map((function(e){return a[e]})),Promise.all(u).then((function(e){return e.reduce((function(e,t,n){return e[s[n]]=t,e}),Object.create(null))}))):c}function co(e,t,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var s=a[o];switch(s.kind){case j.FIELD:if(!lo(e,s))continue;var u=(f=s).alias?f.alias.value:f.name.value;r[u]||(r[u]=[]),r[u].push(s);break;case j.INLINE_FRAGMENT:if(!lo(e,s)||!fo(e,s,t))continue;co(e,t,s.selectionSet,r,i);break;case j.FRAGMENT_SPREAD:var c=s.name.value;if(i[c]||!lo(e,s))continue;i[c]=!0;var l=e.fragments[c];if(!l||!fo(e,l,t))continue;co(e,t,l.selectionSet,r,i)}}var f;return r}function lo(e,t){var n=eo(Gn,t,e.variableValues);if(!0===(null==n?void 0:n.if))return!1;var r=eo(Hn,t,e.variableValues);return!1!==(null==r?void 0:r.if)}function fo(e,t,n){var r=t.typeCondition;if(!r)return!0;var i=gr(e.schema,r);return i===n||!!At(i)&&e.schema.isSubType(i,n)}function po(e,t,n,r,i){var a,s=r[0].name.value,u=No(e.schema,t,s);if(u){var c=u.type,l=null!==(a=u.resolve)&&void 0!==a?a:e.fieldResolver,f=ho(e,u,r,t,i);try{var p,d=l(n,Zi(u,r[0],e.variableValues),e.contextValue,f);return p=o(d)?d.then((function(t){return mo(e,c,r,f,i,t)})):mo(e,c,r,f,i,d),o(p)?p.then(void 0,(function(t){return vo(Ie(t,r,qi(i)),c,e)})):p}catch(t){return vo(Ie(t,r,qi(i)),c,e)}}}function ho(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function vo(e,t,n){if(gt(t))throw e;return n.errors.push(e),null}function mo(e,t,n,r,i,a){if(a instanceof Error)throw a;if(gt(t)){var s=mo(e,t.ofType,n,r,i,a);if(null===s)throw new Error("Cannot return null for non-nullable field ".concat(r.parentType.name,".").concat(r.fieldName,"."));return s}return null==a?null:mt(t)?function(e,t,n,r,i,a){var s=t.ofType,u=!1,c=fn(a,(function(t,a){var c=Gi(i,a,void 0);try{var l;return l=o(t)?t.then((function(t){return mo(e,s,n,r,c,t)})):mo(e,s,n,r,c,t),o(l)?(u=!0,l.then(void 0,(function(t){return vo(Ie(t,n,qi(c)),s,e)}))):l}catch(t){return vo(Ie(t,n,qi(c)),s,e)}}));if(null==c)throw new S('Expected Iterable, but did not find one for field "'.concat(r.parentType.name,".").concat(r.fieldName,'".'));return u?Promise.all(c):c}(e,t,n,r,i,a):Tt(t)?function(e,t){var n=e.serialize(t);if(void 0===n)throw new Error('Expected a value of type "'.concat(B(e),'" but ')+"received: ".concat(B(t)));return n}(t,a):At(t)?function(e,t,n,r,i,a){var s,u=null!==(s=t.resolveType)&&void 0!==s?s:e.typeResolver,c=e.contextValue,l=u(a,c,r,t);return o(l)?l.then((function(o){return go(e,yo(o,e,t,n,r,a),n,r,i,a)})):go(e,yo(l,e,t,n,r,a),n,r,i,a)}(e,t,n,r,i,a):at(t)?go(e,t,n,r,i,a):void P(0,"Cannot complete value of unexpected output type: "+B(t))}function yo(e,t,n,r,i,o){if(null==e)throw new S('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'". Either the "').concat(n.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),r);var a=Ct(e)?e.name:e;if("string"!=typeof a)throw new S('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'" with ')+"value ".concat(B(o),', received "').concat(B(e),'".'));var s=t.schema.getType(a);if(null==s)throw new S('Abstract type "'.concat(n.name,'" was resolve to a type "').concat(a,'" that does not exist inside schema.'),r);if(!at(s))throw new S('Abstract type "'.concat(n.name,'" was resolve to a non-object type "').concat(a,'".'),r);if(!t.schema.isSubType(n,s))throw new S('Runtime Object type "'.concat(s.name,'" is not a possible type for "').concat(n.name,'".'),r);return s}function go(e,t,n,r,i,a){if(t.isTypeOf){var s=t.isTypeOf(a,e.contextValue,r);if(o(s))return s.then((function(r){if(!r)throw bo(t,a,n);return Eo(e,t,n,i,a)}));if(!s)throw bo(t,a,n)}return Eo(e,t,n,i,a)}function bo(e,t,n){return new S('Expected value of type "'.concat(e.name,'" but got: ').concat(B(t),"."),n)}function Eo(e,t,n,r,i){return uo(e,t,i,r,Oo(e,t,n))}var _o,wo,Oo=(_o=function(e,t,n){for(var r=Object.create(null),i=Object.create(null),o=0;o<n.length;o++){var a=n[o];a.selectionSet&&(r=co(e,t,a.selectionSet,r,i))}return r},function(e,t,n){wo||(wo=new WeakMap);var r,i=wo.get(e);if(i){if(r=i.get(t)){var o=r.get(n);if(void 0!==o)return o}}else i=new WeakMap,wo.set(e,i);r||(r=new WeakMap,i.set(t,r));var a=_o(e,t,n);return r.set(n,a),a}),To=function(e,t,n,r){if(s(e)&&"string"==typeof e.__typename)return e.__typename;for(var i=n.schema.getPossibleTypes(r),a=[],u=0;u<i.length;u++){var c=i[u];if(c.isTypeOf){var l=c.isTypeOf(e,t,n);if(o(l))a[u]=l;else if(l)return c.name}}return a.length?Promise.all(a).then((function(e){for(var t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0},Io=function(e,t,n,r){if(s(e)||"function"==typeof e){var i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function No(e,t,n){return n===Ln.name&&e.getQueryType()===t?Ln:n===Mn.name&&e.getQueryType()===t?Mn:n===kn.name?kn:t.getFields()[n]}function So(e,t,n,r,i,o,a,s){var u=arguments;return new Promise((function(c){return c(Ro(1===u.length?e:{schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s}))}))}function Ao(e,t,n,r,i,a,s,u){var c=Ro(1===arguments.length?e:{schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:a,fieldResolver:s,typeResolver:u});if(o(c))throw new Error("GraphQL execution failed to complete synchronously.");return c}function Ro(e){var t,n=e.schema,r=e.source,i=e.rootValue,o=e.contextValue,a=e.variableValues,s=e.operationName,u=e.fieldResolver,c=e.typeResolver,l=tr(n);if(l.length>0)return{errors:l};try{t=pe(r)}catch(e){return{errors:[e]}}var f=Bi(n,t);return f.length>0?{errors:f}:no({schema:n,document:t,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:u,typeResolver:c})}function xo(e){return"function"==typeof(null==e?void 0:e[c])}function jo(e,t){return new Promise((function(n){return n(t(e))}))}function Po(e){return{value:e,done:!1}}function Do(e,t,n,r,i,o,a,s){return function(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,o=e.variableValues,a=e.operationName,s=e.fieldResolver,u=e.subscribeFieldResolver,l=Mo(t,n,r,i,o,a,u),f=function(e){return no({schema:t,document:n,rootValue:e,contextValue:i,variableValues:o,operationName:a,fieldResolver:s})};return l.then((function(e){return xo(e)?function(e,t,n){var r,i,o,a=e[c].call(e);function s(e){return e.done?e:jo(e.value,t).then(Po,i)}if("function"==typeof a.return&&(r=a.return,i=function(e){var t=function(){return Promise.reject(e)};return r.call(a).then(t,t)}),n){var u=n;o=function(e){return jo(e,u).then(Po,i)}}return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({next:function(){return a.next().then(s,o)},return:function(){return r?r.call(a).then(s,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof a.throw?a.throw(e).then(s,o):Promise.reject(e).catch(i)}},c,(function(){return this}))}(e,f,Lo):e}))}(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,subscribeFieldResolver:s})}function Lo(e){if(e instanceof S)return{errors:[e]};throw e}function Mo(e,t,n,r,i,o,a){return ao(e,t,i),new Promise((function(s){var u=so(e,t,n,r,i,o,a);s(Array.isArray(u)?{errors:u}:function(e){var t=e.schema,n=e.operation,r=e.variableValues,i=e.rootValue,o=Wi(t,n),a=co(e,o,n.selectionSet,Object.create(null),Object.create(null)),s=Object.keys(a)[0],u=a[s],c=u[0].name.value,l=No(t,o,c);if(!l)throw new S('The subscription field "'.concat(c,'" is not defined.'),u);var f=Gi(void 0,s,o.name),p=ho(e,l,u,o,f);return new Promise((function(t){var n,o=Zi(l,u[0],r),a=e.contextValue;t((null!==(n=l.subscribe)&&void 0!==n?n:e.fieldResolver)(i,o,a,p))})).then((function(e){if(e instanceof Error)throw Ie(e,u,qi(f));if(!xo(e))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat(B(e),"."));return e}),(function(e){throw Ie(e,u,qi(f))}))}(u))})).catch(Lo)}function ko(e){return{Field:function(t){var n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=e.getParentType();null!=i||P(0),e.reportError(new S("The field ".concat(i.name,".").concat(n.name," is deprecated. ").concat(r),t))}},Argument:function(t){var n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=e.getDirective();if(null!=i)e.reportError(new S('Directive "@'.concat(i.name,'" argument "').concat(n.name,'" is deprecated. ').concat(r),t));else{var o=e.getParentType(),a=e.getFieldDef();null!=o&&null!=a||P(0),e.reportError(new S('Field "'.concat(o.name,".").concat(a.name,'" argument "').concat(n.name,'" is deprecated. ').concat(r),t))}}},ObjectField:function(t){var n=Ft(e.getParentInputType());if(ht(n)){var r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new S("The input field ".concat(n.name,".").concat(r.name," is deprecated. ").concat(i),t))}},EnumValue:function(t){var n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=Ft(e.getInputType());null!=i||P(0),e.reportError(new S('The enum value "'.concat(i.name,".").concat(n.name,'" is deprecated. ').concat(r),t))}}}}function Co(e){return{Field:function(t){var n=Ft(e.getType());n&&Vn(n)&&e.reportError(new S('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(t.name.value,'".'),t))}}}function Vo(e){var t;e||G(0,"Received null or undefined error.");var n=null!==(t=e.message)&&void 0!==t?t:"An unknown error occurred.",r=e.locations,i=e.path,o=e.extensions;return o&&Object.keys(o).length>0?{message:n,locations:r,path:i,extensions:o}:{message:n,locations:r,path:i}}function Fo(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 $o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uo(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fo(Object(n),!0).forEach((function(t){$o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByUrl":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}return"\n query IntrospectionQuery {\n __schema {\n ".concat(o,"\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ").concat(n,"\n ").concat(i,"\n locations\n args").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(n,"\n ").concat(r,"\n fields(includeDeprecated: true) {\n name\n ").concat(n,"\n args").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(n,"\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(n,"\n type { ...TypeRef }\n defaultValue\n ").concat(a("isDeprecated"),"\n ").concat(a("deprecationReason"),"\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}function Bo(e,t){for(var n=null,r=0,i=e.definitions;r<i.length;r++){var o,a=i[r];if(a.kind===j.OPERATION_DEFINITION)if(null==t){if(n)return null;n=a}else if((null===(o=a.name)||void 0===o?void 0:o.value)===t)return a}return n}function Ho(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 Go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qo(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ho(Object(n),!0).forEach((function(t){Go(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),r=ro({schema:e,document:pe(Uo(n))});return!r.errors&&r.data||P(0),r.data}function Wo(e,t){s(e)&&s(e.__schema)||G(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat(B(e),"."));for(var n=e.__schema,r=De(n.types,(function(e){return e.name}),(function(e){return function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case Pn.SCALAR:return new Bt({name:(r=e).name,description:r.description,specifiedByUrl:r.specifiedByUrl});case Pn.OBJECT:return new Ht({name:(n=e).name,description:n.description,interfaces:function(){return m(n)},fields:function(){return y(n)}});case Pn.INTERFACE:return new Jt({name:(t=e).name,description:t.description,interfaces:function(){return m(t)},fields:function(){return y(t)}});case Pn.UNION:return function(e){if(!e.possibleTypes){var t=B(e);throw new Error("Introspection result missing possibleTypes: ".concat(t,"."))}return new Qt({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(h)}})}(e);case Pn.ENUM:return function(e){if(!e.enumValues){var t=B(e);throw new Error("Introspection result missing enumValues: ".concat(t,"."))}return new Zt({name:e.name,description:e.description,values:De(e.enumValues,(function(e){return e.name}),(function(e){return{description:e.description,deprecationReason:e.deprecationReason}}))})}(e);case Pn.INPUT_OBJECT:return function(e){if(!e.inputFields){var t=B(e);throw new Error("Introspection result missing inputFields: ".concat(t,"."))}return new tn({name:e.name,description:e.description,fields:function(){return b(e.inputFields)}})}(e)}var t,n,r,i=B(e);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(i,"."))}(e)})),i=0,o=[].concat(_n,Cn);i<o.length;i++){var a=o[i];r[a.name]&&(r[a.name]=a)}var u=n.queryType?h(n.queryType):null,c=n.mutationType?h(n.mutationType):null,l=n.subscriptionType?h(n.subscriptionType):null,f=n.directives?n.directives.map((function(e){if(!e.args){var t=B(e);throw new Error("Introspection result missing directive args: ".concat(t,"."))}if(!e.locations){var n=B(e);throw new Error("Introspection result missing directive locations: ".concat(n,"."))}return new Bn({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:b(e.args)})})):[];return new Zn({description:n.description,query:u,mutation:c,subscription:l,types:Te(r),directives:f,assumeValid:null==t?void 0:t.assumeValid});function p(e){if(e.kind===Pn.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new xt(p(t))}if(e.kind===Pn.NON_NULL){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");return new jt(Mt(p(n)))}return d(e)}function d(e){var t=e.name;if(!t)throw new Error("Unknown type reference: ".concat(B(e),"."));var n=r[t];if(!n)throw new Error("Invalid or incomplete schema, unknown type: ".concat(t,". Ensure that a full introspection query is used in order to build a client schema."));return n}function h(e){return st(d(e))}function v(e){return ct(d(e))}function m(e){if(null===e.interfaces&&e.kind===Pn.INTERFACE)return[];if(!e.interfaces){var t=B(e);throw new Error("Introspection result missing interfaces: ".concat(t,"."))}return e.interfaces.map(v)}function y(e){if(!e.fields)throw new Error("Introspection result missing fields: ".concat(B(e),"."));return De(e.fields,(function(e){return e.name}),g)}function g(e){var t=p(e.type);if(!wt(t)){var n=B(t);throw new Error("Introspection must provide output type for fields, but received: ".concat(n,"."))}if(!e.args){var r=B(e);throw new Error("Introspection result missing field args: ".concat(r,"."))}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:b(e.args)}}function b(e){return De(e,(function(e){return e.name}),E)}function E(e){var t=p(e.type);if(!Et(t)){var n=B(t);throw new Error("Introspection must provide input type for arguments, but received: ".concat(n,"."))}var r=null!=e.defaultValue?Yi(de(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}}function zo(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 Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach((function(t){Xo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jo(e,t,n){Kn(e),null!=t&&t.kind===j.DOCUMENT||G(0,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e,t){var n=Hi(e,t);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))}(t,e);var r=e.toConfig(),i=Qo(r,t,n);return r===i?e:new Zn(i)}function Qo(e,t,n){for(var r,i,o,a,s,u=[],c=Object.create(null),l=[],f=[],p=0,d=t.definitions;p<d.length;p++){var h=d[p];if(h.kind===j.SCHEMA_DEFINITION)s=h;else if(h.kind===j.SCHEMA_EXTENSION)f.push(h);else if(Ar(h))u.push(h);else if(xr(h)){var v=h.name.value,m=c[v];c[v]=m?m.concat([h]):[h]}else h.kind===j.DIRECTIVE_DEFINITION&&l.push(h)}if(0===Object.keys(c).length&&0===u.length&&0===l.length&&0===f.length&&null==s)return e;for(var y=Object.create(null),g=0,b=e.types;g<b.length;g++){var E=b[g];y[E.name]=Vn(_=E)||wn(_)?_:it(_)?function(e){for(var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[],i=n.specifiedByUrl,o=0;o<r.length;o++){var a;i=null!==(a=ea(r[o]))&&void 0!==a?a:i}return new Bt(Yo(Yo({},n),{},{specifiedByUrl:i,extensionASTNodes:n.extensionASTNodes.concat(r)}))}(_):at(_)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Ht(Yo(Yo({},n),{},{interfaces:function(){return[].concat(e.getInterfaces().map(A),$(r))},fields:function(){return Yo(Yo({},je(n.fields,R)),k(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(_):ut(_)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Jt(Yo(Yo({},n),{},{interfaces:function(){return[].concat(e.getInterfaces().map(A),$(r))},fields:function(){return Yo(Yo({},je(n.fields,R)),k(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(_):lt(_)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Qt(Yo(Yo({},n),{},{types:function(){return[].concat(e.getTypes().map(A),U(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(_):pt(_)?function(e){var t,n=e.toConfig(),r=null!==(t=c[e.name])&&void 0!==t?t:[];return new Zt(Yo(Yo({},n),{},{values:Yo(Yo({},n.values),F(r)),extensionASTNodes:n.extensionASTNodes.concat(r)}))}(_):ht(_)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new tn(Yo(Yo({},n),{},{fields:function(){return Yo(Yo({},je(n.fields,(function(e){return Yo(Yo({},e),{},{type:S(e.type)})}))),V(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(_):void P(0,"Unexpected type: "+B(_))}for(var _,w=0;w<u.length;w++){var O,T=u[w],I=T.name.value;y[I]=null!==(O=Ko[I])&&void 0!==O?O:H(T)}var N=Yo(Yo({query:e.query&&A(e.query),mutation:e.mutation&&A(e.mutation),subscription:e.subscription&&A(e.subscription)},s&&D([s])),D(f));return Yo(Yo({description:null===(r=s)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value},N),{},{types:Te(y),directives:[].concat(e.directives.map((function(e){var t=e.toConfig();return new Bn(Yo(Yo({},t),{},{args:je(t.args,x)}))})),l.map((function(e){var t=e.locations.map((function(e){return e.value}));return new Bn({name:e.name.value,description:ta(e,n),locations:t,isRepeatable:e.repeatable,args:C(e.arguments),astNode:e})}))),extensions:void 0,astNode:null!==(o=s)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!==(a=null==n?void 0:n.assumeValid)&&void 0!==a&&a});function S(e){return mt(e)?new xt(S(e.ofType)):gt(e)?new jt(S(e.ofType)):A(e)}function A(e){return y[e.name]}function R(e){return Yo(Yo({},e),{},{type:S(e.type),args:je(e.args,x)})}function x(e){return Yo(Yo({},e),{},{type:S(e.type)})}function D(e){for(var t={},n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].operationTypes)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t[a.operation]=L(a.type)}return t}function L(e){var t,n=e.name.value,r=null!==(t=Ko[n])&&void 0!==t?t:y[n];if(void 0===r)throw new Error('Unknown type: "'.concat(n,'".'));return r}function M(e){return e.kind===j.LIST_TYPE?new xt(M(e.type)):e.kind===j.NON_NULL_TYPE?new jt(M(e.type)):L(e)}function k(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].fields)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a];t[s.name.value]={type:M(s.type),description:ta(s,n),args:C(s.arguments),deprecationReason:Zo(s),astNode:s}}return t}function C(e){for(var t=null!=e?e:[],r=Object.create(null),i=0;i<t.length;i++){var o=t[i],a=M(o.type);r[o.name.value]={type:a,description:ta(o,n),defaultValue:Yi(o.defaultValue,a),deprecationReason:Zo(o),astNode:o}}return r}function V(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].fields)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a],u=M(s.type);t[s.name.value]={type:u,description:ta(s,n),defaultValue:Yi(s.defaultValue,u),deprecationReason:Zo(s),astNode:s}}return t}function F(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].values)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a];t[s.name.value]={description:ta(s,n),deprecationReason:Zo(s),astNode:s}}return t}function $(e){for(var t=[],n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].interfaces)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t.push(L(a))}return t}function U(e){for(var t=[],n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].types)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t.push(L(a))}return t}function H(e){var t,r=e.name.value,i=ta(e,n),o=null!==(t=c[r])&&void 0!==t?t:[];switch(e.kind){case j.OBJECT_TYPE_DEFINITION:var a=o,s=[e].concat(a);return new Ht({name:r,description:i,interfaces:function(){return $(s)},fields:function(){return k(s)},astNode:e,extensionASTNodes:a});case j.INTERFACE_TYPE_DEFINITION:var u=o,l=[e].concat(u);return new Jt({name:r,description:i,interfaces:function(){return $(l)},fields:function(){return k(l)},astNode:e,extensionASTNodes:u});case j.ENUM_TYPE_DEFINITION:var f=o,p=[e].concat(f);return new Zt({name:r,description:i,values:F(p),astNode:e,extensionASTNodes:f});case j.UNION_TYPE_DEFINITION:var d=o,h=[e].concat(d);return new Qt({name:r,description:i,types:function(){return U(h)},astNode:e,extensionASTNodes:d});case j.SCALAR_TYPE_DEFINITION:var v=o;return new Bt({name:r,description:i,specifiedByUrl:ea(e),astNode:e,extensionASTNodes:v});case j.INPUT_OBJECT_TYPE_DEFINITION:var m=o,y=[e].concat(m);return new tn({name:r,description:i,fields:function(){return V(y)},astNode:e,extensionASTNodes:m})}P(0,"Unexpected type definition node: "+B(e))}}var Ko=xe(_n.concat(Cn),(function(e){return e.name}));function Zo(e){var t=eo(Wn,e);return null==t?void 0:t.reason}function ea(e){var t=eo(zn,e);return null==t?void 0:t.url}function ta(e,t){if(e.description)return e.description.value;if(!0===(null==t?void 0:t.commentDescriptions)){var n=function(e){var t=e.loc;if(t){for(var n=[],r=t.startToken.prev;null!=r&&r.kind===V.COMMENT&&r.next&&r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){var i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join("\n"):void 0}}(e);if(void 0!==n)return J("\n"+n)}}function na(e,t){null!=e&&e.kind===j.DOCUMENT||G(0,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){var t=Hi(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}(e);var n=Qo({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(var r=0,i=n.types;r<i.length;r++){var o=i[r];switch(o.name){case"Query":n.query=o;break;case"Mutation":n.mutation=o;break;case"Subscription":n.subscription=o}}for(var a=n.directives,s=function(e){var t=Yn[e];a.every((function(e){return e.name!==t.name}))&&a.push(t)},u=0;u<Yn.length;u++)s(u);return new Zn(n)}function ra(e,t){return na(pe(e,{noLocation:null==t?void 0:t.noLocation,allowLegacySDLEmptyFields:null==t?void 0:t.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null==t?void 0:t.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null==t?void 0:t.experimentalFragmentVariables}),{commentDescriptions:null==t?void 0:t.commentDescriptions,assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function ia(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 oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(n),!0).forEach((function(t){aa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sa(e){var t=e.toConfig(),n=De(ca(t.types),(function(e){return e.name}),(function(e){if(it(e)||Vn(e))return e;if(at(e)){var t=e.toConfig();return new Ht(oa(oa({},t),{},{interfaces:function(){return u(t.interfaces)},fields:function(){return s(t.fields)}}))}if(ut(e)){var n=e.toConfig();return new Jt(oa(oa({},n),{},{interfaces:function(){return u(n.interfaces)},fields:function(){return s(n.fields)}}))}if(lt(e)){var i=e.toConfig();return new Qt(oa(oa({},i),{},{types:function(){return u(i.types)}}))}if(pt(e)){var o=e.toConfig();return new Zt(oa(oa({},o),{},{values:ua(o.values)}))}if(ht(e)){var a=e.toConfig();return new tn(oa(oa({},a),{},{fields:function(){return ua(a.fields,(function(e){return oa(oa({},e),{},{type:r(e.type)})}))}}))}P(0,"Unexpected type: "+B(e))}));return new Zn(oa(oa({},t),{},{types:Te(n),directives:ca(t.directives).map((function(e){var t=e.toConfig();return new Bn(oa(oa({},t),{},{locations:la(t.locations,(function(e){return e})),args:a(t.args)}))})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function r(e){return mt(e)?new xt(r(e.ofType)):gt(e)?new jt(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function a(e){return ua(e,(function(e){return oa(oa({},e),{},{type:r(e.type)})}))}function s(e){return ua(e,(function(e){return oa(oa({},e),{},{type:r(e.type),args:a(e.args)})}))}function u(e){return ca(e).map(i)}}function ua(e,t){for(var n=Object.create(null),r=la(Object.keys(e),(function(e){return e})),i=0;i<r.length;i++){var o=r[i],a=e[o];n[o]=t?t(a):a}return n}function ca(e){return la(e,(function(e){return e.name}))}function la(e,t){return e.slice().sort((function(e,n){return Ce(t(e),t(n))}))}function fa(e,t){return ha(e,(function(e){return!Xn(e)}),da,t)}function pa(e,t){return ha(e,Xn,Vn,t)}function da(e){return!wn(e)&&!Vn(e)}function ha(e,t,n,r){var i=e.getDirectives().filter(t),o=Te(e.getTypeMap()).filter(n);return[va(e)].concat(i.map((function(e){return function(e,t){return Oa(t,e)+"directive @"+e.name+Ea(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e,r)})),o.map((function(e){return ma(e,r)}))).filter(Boolean).join("\n\n")+"\n"}function va(e){if(null!=e.description||!function(e){var t=e.getQueryType();if(t&&"Query"!==t.name)return!1;var n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;var r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e)){var t=[],n=e.getQueryType();n&&t.push(" query: ".concat(n.name));var r=e.getMutationType();r&&t.push(" mutation: ".concat(r.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),Oa({},e)+"schema {\n".concat(t.join("\n"),"\n}")}}function ma(e,t){return it(e)?function(e,t){return Oa(t,e)+"scalar ".concat(e.name)+function(e){if(null==e.specifiedByUrl)return"";var t=On(e.specifiedByUrl,gn);return t||P(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+Ge(t)+")"}(e)}(e,t):at(e)?function(e,t){return Oa(t,e)+"type ".concat(e.name)+ya(e)+ga(t,e)}(e,t):ut(e)?function(e,t){return Oa(t,e)+"interface ".concat(e.name)+ya(e)+ga(t,e)}(e,t):lt(e)?function(e,t){var n=e.getTypes(),r=n.length?" = "+n.join(" | "):"";return Oa(t,e)+"union "+e.name+r}(e,t):pt(e)?function(e,t){var n=e.getValues().map((function(e,n){return Oa(t,e," ",!n)+" "+e.name+wa(e.deprecationReason)}));return Oa(t,e)+"enum ".concat(e.name)+ba(n)}(e,t):ht(e)?function(e,t){var n=Te(e.getFields()).map((function(e,n){return Oa(t,e," ",!n)+" "+_a(e)}));return Oa(t,e)+"input ".concat(e.name)+ba(n)}(e,t):void P(0,"Unexpected type: "+B(e))}function ya(e){var t=e.getInterfaces();return t.length?" implements "+t.map((function(e){return e.name})).join(" & "):""}function ga(e,t){return ba(Te(t.getFields()).map((function(t,n){return Oa(e,t," ",!n)+" "+t.name+Ea(e,t.args," ")+": "+String(t.type)+wa(t.deprecationReason)})))}function ba(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function Ea(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every((function(e){return!e.description}))?"("+t.map(_a).join(", ")+")":"(\n"+t.map((function(t,r){return Oa(e,t," "+n,!r)+" "+n+_a(t)})).join("\n")+"\n"+n+")"}function _a(e){var t=On(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=" = ".concat(Ge(t))),n+wa(e.deprecationReason)}function wa(e){if(null==e)return"";var t=On(e,gn);return t&&e!==qn?" @deprecated(reason: "+Ge(t)+")":" @deprecated"}function Oa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=t.description;return null==i?"":!0===(null==e?void 0:e.commentDescriptions)?function(e,t,n){return(t&&!n?"\n":"")+e.split("\n").map((function(e){return t+(""!==e?"# "+e:"#")})).join("\n")+"\n"}(i,n,r):(n&&!r?"\n"+n:n)+Z(i,"",i.length>70).replace(/\n/g,"\n"+n)+"\n"}function Ta(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t=t.concat(r.definitions)}return{kind:"Document",definitions:t}}function Ia(e){for(var t=[],n=Object.create(null),r=0,i=e.definitions;r<i.length;r++){var o=i[r];switch(o.kind){case j.OPERATION_DEFINITION:t.push(o);break;case j.FRAGMENT_DEFINITION:n[o.name.value]=Sa(o.selectionSet)}}for(var a=Object.create(null),s=function(r){for(var i=t[r],o=new Set,s=0,u=Sa(i.selectionSet);s<u.length;s++){var c=u[s];Na(o,n,c)}var l=i.name?i.name.value:"";a[l]={kind:j.DOCUMENT,definitions:e.definitions.filter((function(e){return e===i||e.kind===j.FRAGMENT_DEFINITION&&o.has(e.name.value)}))}},u=0;u<t.length;u++)s(u);return a}function Na(e,t,n){if(!e.has(n)){e.add(n);var r=t[n];if(void 0!==r)for(var i=0;i<r.length;i++)Na(e,t,r[i])}}function Sa(e){var t=[];return Ee(e,{FragmentSpread:function(e){t.push(e.name.value)}}),t}function Aa(e){for(var t=Y(e)?e:new z(e),n=t.body,r=new ee(t),i="",o=!1;r.advance().kind!==V.EOF;){var a=r.token,s=a.kind,u=!te(a.kind);o&&(u||a.kind===V.SPREAD)&&(i+=" ");var c=n.slice(a.start,a.end);s===V.BLOCK_STRING?i+=Ra(c):i+=c,o=u}return i}function Ra(e){var t=J(e.slice(3,-3));K(t)>0&&(t="\n"+t);var n=t[t.length-1];return('"'===n&&'\\"""'!==t.slice(-4)||"\\"===n)&&(t+="\n"),'"""'+t+'"""'}function xa(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 ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach((function(t){Pa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Da=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),La=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function Ma(e,t){return Ca(e,t).filter((function(e){return e.type in Da}))}function ka(e,t){return Ca(e,t).filter((function(e){return e.type in La}))}function Ca(e,t){return[].concat(function(e,t){for(var n=[],r=Ya(Te(e.getTypeMap()),Te(t.getTypeMap())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:Da.TYPE_REMOVED,description:wn(a)?"Standard scalar ".concat(a.name," was removed because it is not referenced anymore."):"".concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){var c=u[s],l=c[0],f=c[1];pt(l)&&pt(f)?n.push.apply(n,$a(l,f)):lt(l)&<(f)?n.push.apply(n,Fa(l,f)):ht(l)&&ht(f)?n.push.apply(n,Va(l,f)):at(l)&&at(f)||ut(l)&&ut(f)?n.push.apply(n,Ba(l,f).concat(Ua(l,f))):l.constructor!==f.constructor&&n.push({type:Da.TYPE_CHANGED_KIND,description:"".concat(l.name," changed from ")+"".concat(Wa(l)," to ").concat(Wa(f),".")})}return n}(e,t),function(e,t){for(var n=[],r=Ya(e.getDirectives(),t.getDirectives()),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:Da.DIRECTIVE_REMOVED,description:"".concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){for(var c=u[s],l=c[0],f=c[1],p=Ya(l.args,f.args),d=0,h=p.added;d<h.length;d++){var v=h[d];Xt(v)&&n.push({type:Da.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(v.name," on directive ").concat(l.name," was added.")})}for(var m=0,y=p.removed;m<y.length;m++){var g=y[m];n.push({type:Da.DIRECTIVE_ARG_REMOVED,description:"".concat(g.name," was removed from ").concat(l.name,".")})}l.isRepeatable&&!f.isRepeatable&&n.push({type:Da.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(l.name,".")});for(var b=0,E=l.locations;b<E.length;b++){var _=E[b];-1===f.locations.indexOf(_)&&n.push({type:Da.DIRECTIVE_LOCATION_REMOVED,description:"".concat(_," was removed from ").concat(l.name,".")})}}return n}(e,t))}function Va(e,t){for(var n=[],r=Ya(Te(e.getFields()),Te(t.getFields())),i=0,o=r.added;i<o.length;i++){var a=o[i];rn(a)?n.push({type:Da.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(a.name," on input type ").concat(e.name," was added.")}):n.push({type:La.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(a.name," on input type ").concat(e.name," was added.")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Da.FIELD_REMOVED,description:"".concat(e.name,".").concat(c.name," was removed.")})}for(var l=0,f=r.persisted;l<f.length;l++){var p=f[l],d=p[0],h=p[1];qa(d.type,h.type)||n.push({type:Da.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(d.name," changed type from ")+"".concat(String(d.type)," to ").concat(String(h.type),".")})}return n}function Fa(e,t){for(var n=[],r=Ya(e.getTypes(),t.getTypes()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:La.TYPE_ADDED_TO_UNION,description:"".concat(a.name," was added to union type ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Da.TYPE_REMOVED_FROM_UNION,description:"".concat(c.name," was removed from union type ").concat(e.name,".")})}return n}function $a(e,t){for(var n=[],r=Ya(e.getValues(),t.getValues()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:La.VALUE_ADDED_TO_ENUM,description:"".concat(a.name," was added to enum type ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Da.VALUE_REMOVED_FROM_ENUM,description:"".concat(c.name," was removed from enum type ").concat(e.name,".")})}return n}function Ua(e,t){for(var n=[],r=Ya(e.getInterfaces(),t.getInterfaces()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:La.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(a.name," added to interfaces implemented by ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Da.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(e.name," no longer implements interface ").concat(c.name,".")})}return n}function Ba(e,t){for(var n=[],r=Ya(Te(e.getFields()),Te(t.getFields())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:Da.FIELD_REMOVED,description:"".concat(e.name,".").concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){var c=u[s],l=c[0],f=c[1];n.push.apply(n,Ha(e,l,f)),Ga(l.type,f.type)||n.push({type:Da.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(l.name," changed type from ")+"".concat(String(l.type)," to ").concat(String(f.type),".")})}return n}function Ha(e,t,n){for(var r=[],i=Ya(t.args,n.args),o=0,a=i.removed;o<a.length;o++){var s=a[o];r.push({type:Da.ARG_REMOVED,description:"".concat(e.name,".").concat(t.name," arg ").concat(s.name," was removed.")})}for(var u=0,c=i.persisted;u<c.length;u++){var l=c[u],f=l[0],p=l[1];if(qa(f.type,p.type)){if(void 0!==f.defaultValue)if(void 0===p.defaultValue)r.push({type:La.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," defaultValue was removed.")});else{var d=za(f.defaultValue,f.type),h=za(p.defaultValue,p.type);d!==h&&r.push({type:La.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," has changed defaultValue from ").concat(d," to ").concat(h,".")})}}else r.push({type:Da.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," has changed type from ")+"".concat(String(f.type)," to ").concat(String(p.type),".")})}for(var v=0,m=i.added;v<m.length;v++){var y=m[v];Xt(y)?r.push({type:Da.REQUIRED_ARG_ADDED,description:"A required arg ".concat(y.name," on ").concat(e.name,".").concat(t.name," was added.")}):r.push({type:La.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(y.name," on ").concat(e.name,".").concat(t.name," was added.")})}return r}function Ga(e,t){return mt(e)?mt(t)&&Ga(e.ofType,t.ofType)||gt(t)&&Ga(e,t.ofType):gt(e)?gt(t)&&Ga(e.ofType,t.ofType):Ct(t)&&e.name===t.name||gt(t)&&Ga(e,t.ofType)}function qa(e,t){return mt(e)?mt(t)&&qa(e.ofType,t.ofType):gt(e)?gt(t)&&qa(e.ofType,t.ofType)||!gt(t)&&qa(e.ofType,t):Ct(t)&&e.name===t.name}function Wa(e){return it(e)?"a Scalar type":at(e)?"an Object type":ut(e)?"an Interface type":lt(e)?"a Union type":pt(e)?"an Enum type":ht(e)?"an Input type":void P(0,"Unexpected type: "+B(e))}function za(e,t){var n=On(e,t);return null!=n||P(0),Ge(Ee(n,{ObjectValue:function(e){var t=[].concat(e.fields);return t.sort((function(e,t){return Ce(e.name.value,t.name.value)})),ja(ja({},e),{},{fields:t})}}))}function Ya(e,t){for(var n=[],r=[],i=[],o=xe(e,(function(e){return e.name})),a=xe(t,(function(e){return e.name})),s=0;s<e.length;s++){var u=e[s],c=a[u.name];void 0===c?r.push(u):i.push([u,c])}for(var l=0;l<t.length;l++){var f=t[l];void 0===o[f.name]&&n.push(f)}return{added:n,persisted:i,removed:r}}function Xa(e,t){return Bi(e,t,[ko])}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};(()=>{"use strict";n.r(r),n.d(r,{run:()=>c});var e=n(2337),t=n(3389),i=n(2021),o=n(3453),a=n(6525),s=n(7075),u=n(7463);n(755),n(5995),n(6195),n(9283),n(3893),n(497);const c=(n,r=[])=>{const c="undefined"!=typeof window,l={...n,...c?window.harmonyAppConfig:void 0};t.default.id="teambit.preview/preview",i.default.id="teambit.docs/docs",o.default.id="teambit.compositions/compositions",a.default.id="teambit.harmony/pubsub",s.default.id="teambit.react/react",u.default.id="teambit.explorer/command-bar",c&&function(...n){e.Harmony.load([...r,t.default,i.default,o.default,a.default,s.default,u.default],"preview",l).then((e=>e.run().then((()=>e.get("teambit.preview/preview"))).then((e=>{const t=!c&&e.setupSsr,n=e.setup,r=(t||n||function(){}).bind(e);return Promise.resolve(r()).then((()=>e))})).then((e=>c?e.render("teambit.workspace/workspace",...n):e.renderSsr("teambit.workspace/workspace",...n))).catch((e=>{throw e}))))}()}})(),exports.run=r.run,Object.defineProperty(exports,"__esModule",{value:!0})})();
|
13
|
+
`},7154:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadLink=function({href:e}){return new Promise(((t,n)=>{const r=document.createElement("link");e.endsWith(".css")&&r.setAttribute("rel","stylesheet"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=(e,t,r,i,o)=>n(o||new Error(`[preview.preview] failed to load link: ${e}`)),document.head.appendChild(r)}))},t.loadScript=function({src:e}){return new Promise(((t,n)=>{const r=document.createElement("script");r.setAttribute("defer","defer"),r.src=e,r.onload=()=>t(),r.onerror=(e,t,r,i,o)=>n(o||new Error(`[preview.preview] failed to load script: ${e}`)),document.head.appendChild(r)}))}},2268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={PreviewAspect:!0,PreviewRuntime:!0,ENV_PREVIEW_STRATEGY_NAME:!0,COMPONENT_PREVIEW_STRATEGY_NAME:!0};function i(){const e=n(3389);return i=function(){return e},e}Object.defineProperty(t,"COMPONENT_PREVIEW_STRATEGY_NAME",{enumerable:!0,get:function(){return a().COMPONENT_PREVIEW_STRATEGY_NAME}}),Object.defineProperty(t,"ENV_PREVIEW_STRATEGY_NAME",{enumerable:!0,get:function(){return a().ENV_PREVIEW_STRATEGY_NAME}}),Object.defineProperty(t,"PreviewAspect",{enumerable:!0,get:function(){return i().PreviewAspect}}),Object.defineProperty(t,"PreviewRuntime",{enumerable:!0,get:function(){return i().PreviewRuntime}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i().PreviewAspect}});var o=n(2709);function a(){const e=n(9285);return a=function(){return e},e}Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},9663:(e,t,n)=>{"use strict";function r(){const e=n(6300);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PREVIEW_MODULES",{enumerable:!0,get:function(){return r().PREVIEW_MODULES}}),Object.defineProperty(t,"PreviewModules",{enumerable:!0,get:function(){return r().PreviewModules}}),Object.defineProperty(t,"linkModules",{enumerable:!0,get:function(){return r().linkModules}})},3389:(e,t,n)=>{"use strict";function r(){const e=n(2337);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PreviewRuntime=t.PreviewAspect=void 0;const i=t.PreviewRuntime=new(r().RuntimeDefinition)("preview"),o=t.PreviewAspect=r().Aspect.create({id:"teambit.preview/preview",dependencies:[],defaultConfig:{},declareRuntime:i});t.default=o},755:(e,t,n)=>{"use strict";function r(){const e=n(8410);return r=function(){return e},e}function i(){const e=n(2337);return i=function(){return e},e}function o(){const e=n(2435);return o=function(){return e},e}function a(){const e=y(n(2607));return a=function(){return e},e}function s(){const e=y(n(1695));return s=function(){return e},e}function u(){const e=n(2935);return u=function(){return e},e}function c(){const e=n(7414);return c=function(){return e},e}function l(){const e=n(3389);return l=function(){return e},e}function f(){const e=n(2709);return f=function(){return e},e}function p(){const e=n(2269);return p=function(){return e},e}function d(){const e=n(9442);return d=function(){return e},e}function h(){const e=n(9663);return h=function(){return e},e}function v(){const e=n(7154);return v=function(){return e},e}function m(){const e=n(6575);return m=function(){return e},e}function y(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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}class b{constructor(e,t,n){this.pubsub=e,this.previewSlot=t,this.renderingContextSlot=n,g(this,"isDev",!1),g(this,"_setupPromise",void 0),g(this,"setup",(()=>this.isReady()?Promise.resolve():(this._setupPromise??=new Promise((e=>{h().PREVIEW_MODULES.onSet.add((()=>{this.isReady()&&e()}))})),this._setupPromise))),g(this,"render",(async e=>{window.document.body.style.width="fit-content";const{previewName:t,componentId:n,envId:r}=this.getLocation(),i=t||this.getDefault();e&&(this.isDev="teambit.workspace/workspace"===e);const o=this.getPreview(i);if(!o||!n)throw new(c().PreviewNotFound)(t);const a=await Promise.all((o.include||[]).map((async e=>{const t=this.getPreview(e);if(!t)return;const r=await this.getPreviewModule(e,n);return t.selectPreviewModel?.(n.fullName,r)}))),s=this.getQuery(),l="true"===this.getParam(s,"onlyOverview")?[]:a.filter((e=>!!e)).map((e=>{if(!e.default||!(0,u().isObject)(e.default))return e;const t=Object.keys(e).filter((e=>"default"!==e)),n=Object.keys(e.default);return(0,u().intersection)(t,n).length===n.length?e.default:e})),f=this.isDev?await this.getComponentAspects(n.toString()):void 0,p=await this.getPreviewModule(i,n),d=o.render(n,r||"",p,l,this.getRenderingContext(f));return this.reportSize(),this.setViewport(),this.setFullScreen(),d})),g(this,"getComponentAspects",(0,s().default)(d().fetchComponentAspects,{max:100,maxAge:432e5})),this.registerClickPubSub()}registerClickPubSub(){window.addEventListener("click",(e=>{const t=Date.now(),n=Object.assign({},e);this.pubsub.pub(l().PreviewAspect.id,new(f().ClickInsideAnIframeEvent)(t,n))}))}isReady(){const{previewName:e}=this.getLocation(),t=e||this.getDefault();if(!h().PREVIEW_MODULES.has(t))return!1;const n=this.getPreview(t);return!!n&&!!(n.include?.every((e=>h().PREVIEW_MODULES.has(e)))??1)}setFullScreen(){const e=this.getQuery();if(!this.getParam(e,"fullscreen"))return;const t=window.document.getElementById("root");t&&(t.style.height="100vh")}setViewport(){const e=this.getQuery(),t=this.getParam(e,"viewport");t?window.document.body.style.maxWidth=`${t}px`:window.document.body.style.width="100%"}reportSize(){if(!window?.parent||!window?.document)return;const e=()=>{const{width:e,height:t}=(()=>{const e=window.document.getElementById("root")??window.document.documentElement,t=e.style.height;e.style.height="auto";const n=e.scrollHeight,r=e.scrollWidth;return e.style.height=t,{width:r,height:n}})();this.pubsub.pub(l().PreviewAspect.id,new(m().SizeEvent)({width:e,height:t}))};e();const t=(0,u().debounce)(e,100),n=new ResizeObserver(t);n.observe(window.document.documentElement);const r=window.document.getElementById("root");r&&n.observe(r)}async getPreviewModule(e,t){const n=t.fullName,r=h().PREVIEW_MODULES.get(e);if(!r)throw new Error(`[preview.preview] missing preview "${e}"`);if(r.componentMap[n])return r;const i=await this.fetchComponentPreview(t,e);h().PREVIEW_MODULES.loadComponentPreviews(n,i);const o=i[e],a=i[`${e}_metadata`];return{modulesMap:r.modulesMap,componentMap:{[t.fullName]:o},componentMapMetadata:{[t.fullName]:a}}}async fetchComponentPreview(e,t){let n;const r=await this.fetchComponentPreviewFiles(e,t);return null===r?{}:(await Promise.all(r.map((t=>{if(!t.endsWith("-preview.js"))return this.addComponentFileElement(e,t);n=t}))),n?this.loadPreviewScript(e,t,n):{})}addComponentFileElement(e,t){if(t.endsWith(".js"))return this.addComponentFileScriptElement(e,t);this.addComponentFileLinkElement(e,t).catch((e=>{throw new Error(`[preview.preview] failed loading asset "${t}". Error - "${e?.toString()}"`)}))}async fetchComponentPreviewFiles(e,t){const n=`/api/${e.toString()}/~aspect/preview-assets`,r=await(0,a().default)(n);if(r.status>=400)throw new(c().PreviewNotFound)(t);const i=await r.json();if(i.isBundledWithEnv)return null;if(!i.files||!i.files.length)throw new(c().PreviewNotFound)(t);return i.files}addComponentFileScriptElement(e,t){const n=`/api/${e.toString()}/~aspect/component-preview/${t}`;return(0,v().loadScript)({src:n})}addComponentFileLinkElement(e,t){const n=`/api/${e.toString()}/~aspect/component-preview/${t}`;return(0,v().loadLink)({href:n})}async loadPreviewScript(e,t,n){const r=`/api/${e.toString()}/~aspect/component-preview/${n}`;await(0,v().loadScript)({src:r});const i=`${e.toStringWithoutVersion()}-preview`,o=window[i];if(!o)throw new(c().PreviewNotFound)(t);return o}registerPreview(e){return this.previewSlot.register(e),this}getRenderingContext(e){return new(p().RenderingContext)(this.renderingContextSlot,{aspectsFilter:e})}registerRenderContext(e){return this.renderingContextSlot.register(e),this}getDefault(){const e=this.previewSlot.values(),t=e.find((e=>e.default));return t?.name||e[0].name}getPreview(e){return this.previewSlot.values().find((t=>t.name===e))}getParam(e,t){return new URLSearchParams(e).get(t)}getQuery(){const e=window.location.hash.substring(1),[,t]=e.split("?");return t}getLocation(){const e=window.location.hash.substring(1),[t,n]=e.split("?");return{previewName:this.getParam(n,"preview"),envId:this.getParam(n,"env"),componentId:o().ComponentID.tryFromString(t)}}static async provider([e],t,[n,r]){const i=new b(e,n,r);return window.addEventListener("hashchange",(()=>{i.render()})),i}}g(b,"runtime",l().PreviewRuntime),g(b,"dependencies",[r().PubsubAspect]),g(b,"slots",[i().Slot.withType(),i().Slot.withType()]),l().PreviewAspect.addRuntime(b)},2269:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenderingContext=void 0,t.RenderingContext=class{constructor(e,t={}){this.contexts=e,this.options=t}get(e){const t=this.contexts.get(e);return t?.(this.options)}}},6575:(e,t,n)=>{"use strict";function r(){const e=n(8410);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.SizeEvent=void 0;class i extends r().BitBaseEvent{constructor(e){super(i.TYPE,"0.0.1",(new Date).getTime(),e)}}var o,a,s;t.SizeEvent=i,o=i,s="preview-size",(a=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(a="TYPE"))in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s},9285:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ENV_PREVIEW_STRATEGY_NAME=t.COMPONENT_PREVIEW_STRATEGY_NAME=void 0,t.ENV_PREVIEW_STRATEGY_NAME="env",t.COMPONENT_PREVIEW_STRATEGY_NAME="component"},8434:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BitBaseEvent=void 0,t.BitBaseEvent=class{constructor(e,t,n,r){this.type=e,this.version=t,this.timestamp=n,this.data=r}}},8410:(e,t,n)=>{"use strict";function r(){const e=n(6525);return r=function(){return e},e}function i(){const e=n(8434);return i=function(){return e},e}function o(){const e=n(9665);return o=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BitBaseEvent",{enumerable:!0,get:function(){return i().BitBaseEvent}}),Object.defineProperty(t,"PubsubAspect",{enumerable:!0,get:function(){return r().PubsubAspect}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r().PubsubAspect}}),Object.defineProperty(t,"usePubSub",{enumerable:!0,get:function(){return o().usePubSub}}),Object.defineProperty(t,"usePubSubIframe",{enumerable:!0,get:function(){return o().usePubSubIframe}})},7559:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PubSubNoParentError=void 0;class n extends Error{constructor(){super("could not connect to parent window"),this.name="PubSubNoParentError"}}t.PubSubNoParentError=n},9665:(e,t,n)=>{"use strict";function r(){const e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2015));return r=function(){return e},e}function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createProvider=function(e){return({children:t})=>r().default.createElement(o.Provider,{value:e},t)},t.pubsubRegistry=void 0,t.usePubSub=a,t.usePubSubIframe=function(e){const t=a();(0,r().useEffect)((()=>{if(!e?.current||!t)return()=>{};const n=t.connect(e.current);return()=>n()}),[e?.current,t])};const o=t.pubsubRegistry=(0,r().createContext)(void 0);function a(){return(0,r().useContext)(o)}},6525:(e,t,n)=>{"use strict";function r(){const e=n(2337);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PubsubAspect=void 0;const i=t.PubsubAspect=r().Aspect.create({id:"teambit.harmony/pubsub",dependencies:[]});t.default=i},9283:(e,t,n)=>{"use strict";function r(){const e=n(2268);return r=function(){return e},e}function i(){const e=n(5867);return i=function(){return e},e}function o(){const e=n(7551);return o=function(){return e},e}function a(){const e=n(8926);return a=function(){return e},e}function s(){const e=n(7559);return s=function(){return e},e}function u(){const e=n(6525);return u=function(){return e},e}function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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}class l{constructor(){c(this,"_parentPubsub",void 0),c(this,"events",new(o().EventEmitter2)),c(this,"connectToParentPubSub",((e=10)=>{if(e<=0)throw new(s().PubSubNoParentError);return(0,a().connectToParent)({timeout:300,methods:{pub:this.handleMessageFromParent}}).promise.then((e=>this._parentPubsub=e)).catch((t=>{if(t.code!==a().ErrorCode.ConnectionTimeout)throw t;return this.connectToParentPubSub(e-1)}))})),c(this,"handleMessageFromParent",((e,t)=>{this.events.emit(e,t)}))}sub(e,t){const n=this.events;return n.on(e,t),()=>{n.off(e,t)}}pub(e,t){this.events.emit(e,t),this._parentPubsub?.pub(e,t).catch((e=>{console.error("[Pubsub.preview]",e)}))}inIframe(){try{return i().isBrowser&&window.self!==window.top}catch{return!1}}static async provider(){const e=new l;return e.inIframe()&&e.connectToParentPubSub().catch((e=>{e instanceof s().PubSubNoParentError||console.error("[Pubsub.preview]",e)})),e}}c(l,"runtime",r().PreviewRuntime),u().PubsubAspect.addRuntime(l)},1110:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HighlighterProvider=t.PARAM_NAME=void 0;const s=o(n(2015)),u=a(n(4487)),c=n(1779),l=a(n(887)),f=a(n(108));t.PARAM_NAME="highlighter";const p={container:f.default.label};t.HighlighterProvider=({children:e})=>{const n=function(){const[e,t]=(0,s.useState)(window?window.location.hash:"");return(0,s.useEffect)((()=>{const e=()=>{t(window.location.hash)};return e(),window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}}),[]),e}(),r=(0,s.useMemo)((()=>{const e=n.split("?")[1];return"true"===l.default.parse(e)[t.PARAM_NAME]}),[n]);return s.default.createElement(c.ComponentHighlighter,{disabled:!r,className:(0,u.default)(f.default.highlighter,r&&f.default.active),classes:p},e)}},9493:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HighlighterProvider=void 0;var r=n(1110);Object.defineProperty(t,"HighlighterProvider",{enumerable:!0,get:function(){return r.HighlighterProvider}})},7075:(e,t,n)=>{"use strict";function r(){const e=n(2337);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReactAspect=void 0;const i=t.ReactAspect=r().Aspect.create({id:"teambit.react/react"});t.default=i},3893:(e,t,n)=>{"use strict";function r(){const e=(t=n(7065))&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}function i(){const e=n(2337);return i=function(){return e},e}function o(){const e=n(2268);return o=function(){return e},e}function a(){const e=n(9493);return a=function(){return e},e}function s(){const e=n(7075);return s=function(){return e},e}function u(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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}class c{constructor(e,t){this.preview=e,this.providerSlot=t,u(this,"getRenderingContext",(({aspectsFilter:e})=>{let t=this.providerSlot.toArray();if(e){const n=new Set(e);n.add(s().ReactAspect.id),t=t.filter((([e])=>n.has(e)))}return{providers:(0,r().default)(t.map((([,e])=>e)))}}))}registerProvider(e){this.providerSlot.register(e)}static async provider([e],t,[n]){const r=new c(e,n);return r.registerProvider([a().HighlighterProvider]),e.registerRenderContext(r.getRenderingContext),r}}u(c,"runtime",o().PreviewRuntime),u(c,"slots",[i().Slot.withType()]),u(c,"dependencies",[o().PreviewAspect]),s().ReactAspect.addRuntime(c)},2015:e=>{"use strict";e.exports=require("react")},2326:e=>{"use strict";e.exports=require("react-dom")},7500:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},3922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer=JSON},4927:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=void 0;const r=n(6917),i=n(5928),o="ping",a="pong",s="complete";class u{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(e,t,n){this._type=e,this._payload=t,this._id=n}get text(){const e={type:this.type};return null!=this.id&&null!=this.id&&(e.id=this.id),null!=this.payload&&null!=this.payload&&(e.payload=this.payload),JSON.stringify(e)}static parse(e,t){const{type:n,payload:r,id:i}=JSON.parse(e);return new u(n,t(r),i)}}class c{constructor(e,{onInit:t,onAcknowledged:n,onPing:r,onPong:c}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.addEventListener("open",(async n=>{var r;this.socketState.acknowledged=!1,this.socketState.subscriptions={},e.send((r=t?await t():null,new u("connection_init",r)).text)})),e.addEventListener("close",(e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}})),e.addEventListener("error",(e=>{console.error(e)})),e.addEventListener("message",(t=>{try{const f=function(e,t=e=>e){return u.parse(e,t)}(t.data);switch(f.type){case"connection_ack":return void(this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,n&&n(f.payload)));case o:return void(r?r(f.payload).then((t=>e.send(l(t).text))):e.send(l(null).text));case a:return void(c&&c(f.payload))}if(!this.socketState.acknowledged)return;if(void 0===f.id||null===f.id||!this.socketState.subscriptions[f.id])return;const{query:p,variables:d,subscriber:h}=this.socketState.subscriptions[f.id];switch(f.type){case"next":return!f.payload.errors&&f.payload.data&&h.next&&h.next(f.payload.data),void(f.payload.errors&&h.error&&h.error(new i.ClientError({...f.payload,status:200},{query:p,variables:d})));case"error":return void(h.error&&h.error(new i.ClientError({errors:f.payload,status:200},{query:p,variables:d})));case s:return h.complete&&h.complete(),void delete this.socketState.subscriptions[f.id]}}catch(t){console.error(t),e.close(1006)}e.close(4400,"Unknown graphql-ws message.")}))}makeSubscribe(e,t,n,r){const i=(this.socketState.lastRequestId++).toString();var o,a;return this.socketState.subscriptions[i]={query:e,variables:r,subscriber:n},this.socket.send((o=i,a={query:e,operationName:t,variables:r},new u("subscribe",a,o)).text),()=>{this.socket.send(function(e){return new u(s,void 0,e)}(i).text),delete this.socketState.subscriptions[i]}}rawRequest(e,t){return new Promise(((n,r)=>{let i;this.rawSubscribe(e,{next:(e,t)=>i={data:e,extensions:t},error:r,complete:()=>n(i)},t)}))}request(e,t){return new Promise(((n,r)=>{let i;this.subscribe(e,{next:e=>i=e,error:r,complete:()=>n(i)},t)}))}subscribe(e,t,n){const{query:i,operationName:o}=(0,r.resolveRequestDocument)(e);return this.makeSubscribe(i,o,t,n)}rawSubscribe(e,t,n){return this.makeSubscribe(e,void 0,t,n)}ping(e){this.socket.send(function(e){return new u(o,e,void 0)}(e).text)}close(){this.socket.close(1e3)}}function l(e){return new u(a,e,void 0)}c.PROTOCOL="graphql-transport-ws",t.GraphQLWebSocketClient=c},3028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadersInstanceToPlainObject=t.uppercase=void 0,t.uppercase=e=>e.toUpperCase(),t.HeadersInstanceToPlainObject=e=>{const t={};return e.forEach(((e,n)=>{t[n]=e})),t}},6313:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.request=t.rawRequest=t.GraphQLClient=t.ClientError=t.batchRequests=t.resolveRequestDocument=t.GraphQLWebSocketClient=t.gql=void 0;const a=n(3922),s=n(3028),u=n(7491),c=n(6917),l=n(5928);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return l.ClientError}});const f=o(n(2607)),p=f,d=e=>{let t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||p&&p.Headers&&e instanceof p.Headers?t=(0,s.HeadersInstanceToPlainObject)(e):Array.isArray(e)?e.forEach((([e,n])=>{e&&void 0!==n&&(t[e]=n)})):t=e),t},h=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim();class v{constructor(e,t={}){this.url=e,this.requestConfig=t,this.rawRequest=async(...e)=>{const[t,n,r]=e,i=(0,u.parseRawRequestArgs)(t,n,r),{headers:o,fetch:a=f.default,method:s="POST",requestMiddleware:l,responseMiddleware:p,...h}=this.requestConfig,{url:v}=this;void 0!==i.signal&&(h.signal=i.signal);const{operationName:y}=(0,c.resolveRequestDocument)(i.query);return m({url:v,query:i.query,variables:i.variables,headers:{...d(_(o)),...d(i.requestHeaders)},operationName:y,fetch:a,method:s,fetchOptions:h,middleware:l}).then((e=>(p&&p(e),e))).catch((e=>{throw p&&p(e),e}))}}async request(e,...t){const[n,r]=t,i=(0,u.parseRequestArgs)(e,n,r),{headers:o,fetch:a=f.default,method:s="POST",requestMiddleware:l,responseMiddleware:p,...h}=this.requestConfig,{url:v}=this;void 0!==i.signal&&(h.signal=i.signal);const{query:y,operationName:g}=(0,c.resolveRequestDocument)(i.document);return m({url:v,query:y,variables:i.variables,headers:{...d(_(o)),...d(i.requestHeaders)},operationName:g,fetch:a,method:s,fetchOptions:h,middleware:l}).then((e=>(p&&p(e),e.data))).catch((e=>{throw p&&p(e),e}))}batchRequests(e,t){const n=(0,u.parseBatchRequestArgs)(e,t),{headers:r,...i}=this.requestConfig;void 0!==n.signal&&(i.signal=n.signal);const o=n.documents.map((({document:e})=>(0,c.resolveRequestDocument)(e).query)),a=n.documents.map((({variables:e})=>e));return m({url:this.url,query:o,variables:a,headers:{...d(_(r)),...d(n.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??f.default,method:this.requestConfig.method||"POST",fetchOptions:i,middleware:this.requestConfig.requestMiddleware}).then((e=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e.data))).catch((e=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e}))}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){const{headers:n}=this.requestConfig;return n?n[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}t.GraphQLClient=v;const m=async e=>{const{query:t,variables:n,fetchOptions:r}=e,i=(d=(0,s.uppercase)(e.method??"post"),async e=>{const{url:t,query:n,variables:r,operationName:i,fetch:o,fetchOptions:s,middleware:u}=e,c={...e.headers};let l,f="";"POST"===d?(l=b(n,r,i,s.jsonSerializer),"string"==typeof l&&(c["Content-Type"]="application/json")):f=(e=>{if(!Array.isArray(e.query)){const t=e,n=[`query=${encodeURIComponent(h(t.query))}`];return e.variables&&n.push(`variables=${encodeURIComponent(t.jsonSerializer.stringify(t.variables))}`),t.operationName&&n.push(`operationName=${encodeURIComponent(t.operationName)}`),n.join("&")}if(void 0!==e.variables&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");const t=e,n=e.query.reduce(((e,n,r)=>(e.push({query:h(n),variables:t.variables?t.jsonSerializer.stringify(t.variables[r]):void 0}),e)),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`})({query:n,variables:r,operationName:i,jsonSerializer:s.jsonSerializer??a.defaultJsonSerializer});const p={method:d,headers:c,body:l,...s};let v=t,m=p;if(u){const e=await Promise.resolve(u({...p,url:t,operationName:i,variables:r})),{url:n,...o}=e;v=n,m=o}return f&&(v=`${v}?${f}`),await o(v,m)}),o=Array.isArray(e.query),u=await i(e),c=await E(u,r.jsonSerializer??a.defaultJsonSerializer),f=Array.isArray(c)?!c.some((({data:e})=>!e)):Boolean(c.data),p=Array.isArray(c)||!c.errors||Array.isArray(c.errors)&&!c.errors.length||"all"===r.errorPolicy||"ignore"===r.errorPolicy;var d;if(u.ok&&p&&f){const{errors:e,...t}=(Array.isArray(c),c),n="ignore"===r.errorPolicy?t:c;return{...o?{data:n}:n,headers:u.headers,status:u.status}}{const e="string"==typeof c?{error:c}:c;throw new l.ClientError({...e,status:u.status,headers:u.headers},{query:t,variables:n})}};async function y(e,t,...n){const r=(0,u.parseRequestExtendedArgs)(e,t,...n);return new v(r.url).request({...r})}t.rawRequest=async(...e)=>{const[t,n,...r]=e,i=(0,u.parseRawRequestExtendedArgs)(t,n,...r);return new v(i.url).rawRequest({...i})},t.request=y,t.batchRequests=async(...e)=>{const t=g(e);return new v(t.url).batchRequests(t)};const g=e=>1===e.length?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0},b=(e,t,n,r)=>{const i=r??a.defaultJsonSerializer;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:n});if(void 0!==t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");const o=e.reduce(((e,n,r)=>(e.push({query:n,variables:t?t[r]:void 0}),e)),[]);return i.stringify(o)},E=async(e,t)=>{let n;return e.headers.forEach(((e,t)=>{"content-type"===t.toLowerCase()&&(n=e)})),n&&(n.toLowerCase().startsWith("application/json")||n.toLowerCase().startsWith("application/graphql+json")||n.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(await e.text()):e.text()},_=e=>"function"==typeof e?e():e;t.gql=(e,...t)=>e.reduce(((e,n,r)=>`${e}${n}${r in t?String(t[r]):""}`),"");var w=n(4927);Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return w.GraphQLWebSocketClient}});var O=n(6917);Object.defineProperty(t,"resolveRequestDocument",{enumerable:!0,get:function(){return O.resolveRequestDocument}}),t.default=y},7491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawRequestExtendedArgs=t.parseRequestExtendedArgs=t.parseBatchRequestArgs=t.parseRawRequestArgs=t.parseRequestArgs=void 0,t.parseRequestArgs=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},t.parseRawRequestArgs=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0},t.parseBatchRequestArgs=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},t.parseRequestExtendedArgs=(e,t,...n)=>{const[r,i]=n;return e.document?e:{url:e,document:t,variables:r,requestHeaders:i,signal:void 0}},t.parseRawRequestExtendedArgs=(e,t,...n)=>{const[r,i]=n;return e.query?e:{url:e,query:t,variables:r,requestHeaders:i,signal:void 0}}},6917:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveRequestDocument=void 0;const r=n(2874),i=e=>{let t;const n=e.definitions.filter((e=>"OperationDefinition"===e.kind));return 1===n.length&&(t=n[0]?.name?.value),t};t.resolveRequestDocument=e=>{if("string"==typeof e){let t;try{const n=(0,r.parse)(e);t=i(n)}catch(e){}return{query:e,operationName:t}}const t=i(e);return{query:(0,r.print)(e),operationName:t}}},5928:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;class n extends Error{constructor(e,t){super(`${n.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,n.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,n)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${e.status})`}}t.ClientError=n},2874:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BREAK:()=>be,BreakingChangeType:()=>Da,DEFAULT_DEPRECATION_REASON:()=>qn,DangerousChangeType:()=>La,DirectiveLocation:()=>X,ExecutableDefinitionsRule:()=>jr,FieldsOnCorrectTypeRule:()=>$r,FragmentsOnCompositeTypesRule:()=>Cr,GraphQLBoolean:()=>bn,GraphQLDeprecatedDirective:()=>Wn,GraphQLDirective:()=>Bn,GraphQLEnumType:()=>Zt,GraphQLError:()=>S,GraphQLFloat:()=>mn,GraphQLID:()=>En,GraphQLIncludeDirective:()=>Hn,GraphQLInputObjectType:()=>tn,GraphQLInt:()=>vn,GraphQLInterfaceType:()=>Jt,GraphQLList:()=>xt,GraphQLNonNull:()=>jt,GraphQLObjectType:()=>Ht,GraphQLScalarType:()=>Bt,GraphQLSchema:()=>Zn,GraphQLSkipDirective:()=>Gn,GraphQLSpecifiedByDirective:()=>zn,GraphQLString:()=>gn,GraphQLUnionType:()=>Qt,Kind:()=>j,KnownArgumentNamesRule:()=>ei,KnownDirectivesRule:()=>Xr,KnownFragmentNamesRule:()=>Br,KnownTypeNamesRule:()=>Mr,Lexer:()=>ee,Location:()=>M,LoneAnonymousOperationRule:()=>Dr,LoneSchemaDefinitionRule:()=>Ni,NoDeprecatedCustomRule:()=>ko,NoFragmentCyclesRule:()=>qr,NoSchemaIntrospectionCustomRule:()=>Co,NoUndefinedVariablesRule:()=>zr,NoUnusedFragmentsRule:()=>Hr,NoUnusedVariablesRule:()=>Yr,OverlappingFieldsCanBeMergedRule:()=>hi,PossibleFragmentSpreadsRule:()=>Gr,PossibleTypeExtensionsRule:()=>Li,ProvidedRequiredArgumentsRule:()=>ui,ScalarLeafsRule:()=>Fr,SchemaMetaFieldDef:()=>Ln,SingleFieldSubscriptionsRule:()=>Lr,Source:()=>z,Token:()=>k,TokenKind:()=>V,TypeInfo:()=>br,TypeKind:()=>Pn,TypeMetaFieldDef:()=>Mn,TypeNameMetaFieldDef:()=>kn,UniqueArgumentNamesRule:()=>ni,UniqueDirectiveNamesRule:()=>Pi,UniqueDirectivesPerLocationRule:()=>Jr,UniqueEnumValueNamesRule:()=>Ri,UniqueFieldDefinitionNamesRule:()=>xi,UniqueFragmentNamesRule:()=>Ur,UniqueInputFieldNamesRule:()=>Ii,UniqueOperationNamesRule:()=>Pr,UniqueOperationTypesRule:()=>Si,UniqueTypeNamesRule:()=>Ai,UniqueVariableNamesRule:()=>Wr,ValidationContext:()=>Ui,ValuesOfCorrectTypeRule:()=>ri,VariablesAreInputTypesRule:()=>Vr,VariablesInAllowedPositionRule:()=>fi,__Directive:()=>Nn,__DirectiveLocation:()=>Sn,__EnumValue:()=>jn,__Field:()=>Rn,__InputValue:()=>xn,__Schema:()=>In,__Type:()=>An,__TypeKind:()=>Dn,assertAbstractType:()=>Rt,assertCompositeType:()=>St,assertDirective:()=>Un,assertEnumType:()=>dt,assertInputObjectType:()=>vt,assertInputType:()=>_t,assertInterfaceType:()=>ct,assertLeafType:()=>It,assertListType:()=>yt,assertNamedType:()=>Vt,assertNonNullType:()=>bt,assertNullableType:()=>Mt,assertObjectType:()=>st,assertOutputType:()=>Ot,assertScalarType:()=>ot,assertSchema:()=>Kn,assertType:()=>rt,assertUnionType:()=>ft,assertValidName:()=>Se,assertValidSchema:()=>nr,assertWrappingType:()=>Dt,astFromValue:()=>On,buildASTSchema:()=>na,buildClientSchema:()=>Wo,buildSchema:()=>ra,coerceInputValue:()=>Ji,concatAST:()=>Ta,createSourceEventStream:()=>Mo,defaultFieldResolver:()=>Io,defaultTypeResolver:()=>To,doTypesOverlap:()=>sn,execute:()=>no,executeSync:()=>ro,extendSchema:()=>Jo,findBreakingChanges:()=>Ma,findDangerousChanges:()=>ka,findDeprecatedUsages:()=>Xa,formatError:()=>Vo,getDescription:()=>ta,getDirectiveValues:()=>eo,getIntrospectionQuery:()=>Uo,getLocation:()=>f,getNamedType:()=>Ft,getNullableType:()=>kt,getOperationAST:()=>Bo,getOperationRootType:()=>Wi,getVisitFn:()=>we,graphql:()=>So,graphqlSync:()=>Ao,introspectionFromSchema:()=>qo,introspectionTypes:()=>Cn,isAbstractType:()=>At,isCompositeType:()=>Nt,isDefinitionNode:()=>wr,isDirective:()=>$n,isEnumType:()=>pt,isEqualType:()=>on,isExecutableDefinitionNode:()=>Or,isInputObjectType:()=>ht,isInputType:()=>Et,isInterfaceType:()=>ut,isIntrospectionType:()=>Vn,isLeafType:()=>Tt,isListType:()=>mt,isNamedType:()=>Ct,isNonNullType:()=>gt,isNullableType:()=>Lt,isObjectType:()=>at,isOutputType:()=>wt,isRequiredArgument:()=>Xt,isRequiredInputField:()=>rn,isScalarType:()=>it,isSchema:()=>Qn,isSelectionNode:()=>Tr,isSpecifiedDirective:()=>Xn,isSpecifiedScalarType:()=>wn,isType:()=>nt,isTypeDefinitionNode:()=>Ar,isTypeExtensionNode:()=>xr,isTypeNode:()=>Nr,isTypeSubTypeOf:()=>an,isTypeSystemDefinitionNode:()=>Sr,isTypeSystemExtensionNode:()=>Rr,isUnionType:()=>lt,isValidNameError:()=>Ae,isValueNode:()=>Ir,isWrappingType:()=>Pt,lexicographicSortSchema:()=>sa,locatedError:()=>Ie,parse:()=>pe,parseType:()=>he,parseValue:()=>de,print:()=>Ge,printError:()=>R,printIntrospectionSchema:()=>pa,printLocation:()=>p,printSchema:()=>fa,printSourceLocation:()=>d,printType:()=>ma,responsePathAsArray:()=>qi,separateOperations:()=>Ia,specifiedDirectives:()=>Yn,specifiedRules:()=>ki,specifiedScalarTypes:()=>_n,stripIgnoredCharacters:()=>Aa,subscribe:()=>Do,syntaxError:()=>x,typeFromAST:()=>gr,validate:()=>Bi,validateSchema:()=>tr,valueFromAST:()=>Yi,valueFromASTUntyped:()=>Ze,version:()=>r,versionInfo:()=>i,visit:()=>Ee,visitInParallel:()=>_e,visitWithTypeInfo:()=>_r});var r="15.8.0",i=Object.freeze({major:15,minor:8,patch:0,preReleaseTag:null});function o(e){return"function"==typeof(null==e?void 0:e.then)}function a(e){return a="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},a(e)}function s(e){return"object"==a(e)&&null!==e}var u="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",c="function"==typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator",l="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function f(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function p(e){return d(e.source,f(e.source,e.start))}function d(e,t){var n=e.locationOffset.column-1,r=v(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,u=t.column+s,c="".concat(e.name,":").concat(a,":").concat(u,"\n"),l=r.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){for(var p=Math.floor(u/80),d=u%80,m=[],y=0;y<f.length;y+=80)m.push(f.slice(y,y+80));return c+h([["".concat(a),m[0]]].concat(m.slice(1,p+1).map((function(e){return["",e]})),[[" ",v(d-1)+"^"],["",m[p+1]]]))}return c+h([["".concat(a-1),l[i-1]],["".concat(a),f],["",v(u-1)+"^"],["".concat(a+1),l[i+1]]])}function h(e){var t=e.filter((function(e){return e[0],void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return v(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function v(e){return Array(e+1).join(" ")}function m(e){return m="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},m(e)}function y(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 g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){var t="function"==typeof Map?new Map:void 0;return w=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return O(e,arguments,N(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),I(r,e)},w(e)}function O(e,t,n){return O=T()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&I(i,n.prototype),i},O.apply(null,arguments)}function T(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function I(e,t){return I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},I(e,t)}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(a,e);var t,n,r,i,o=(t=a,n=T(),function(){var e,r=N(t);if(n){var i=N(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return E(this,e)});function a(e,t,n,r,i,u,c){var l,p,d,h;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(h=o.call(this,e)).name="GraphQLError",h.originalError=null!=u?u:void 0,h.nodes=A(Array.isArray(t)?t:t?[t]:void 0);for(var v=[],m=0,b=null!==(w=h.nodes)&&void 0!==w?w:[];m<b.length;m++){var w,O=b[m].loc;null!=O&&v.push(O)}v=A(v),h.source=null!=n?n:null===(l=v)||void 0===l?void 0:l[0].source,h.positions=null!=r?r:null===(p=v)||void 0===p?void 0:p.map((function(e){return e.start})),h.locations=r&&n?r.map((function(e){return f(n,e)})):null===(d=v)||void 0===d?void 0:d.map((function(e){return f(e.source,e.start)})),h.path=null!=i?i:void 0;var T=null==u?void 0:u.extensions;return null==c&&s(T)?h.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},T):h.extensions=null!=c?c:{},Object.defineProperties(_(h),{message:{enumerable:!0},locations:{enumerable:null!=h.locations},path:{enumerable:null!=h.path},extensions:{enumerable:null!=h.extensions&&Object.keys(h.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?(Object.defineProperty(_(h),"stack",{value:u.stack,writable:!0,configurable:!0}),E(h)):(Error.captureStackTrace?Error.captureStackTrace(_(h),a):Object.defineProperty(_(h),"stack",{value:Error().stack,writable:!0,configurable:!0}),h)}return r=a,(i=[{key:"toString",value:function(){return R(this)}},{key:l,get:function(){return"Object"}}])&&b(r.prototype,i),a}(w(Error));function A(e){return void 0===e||0===e.length?void 0:e}function R(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+p(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var s=a[o];t+="\n\n"+d(e.source,s)}return t}function x(e,t,n){return new S("Syntax Error: ".concat(n),void 0,e,[t])}var j=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function P(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const D="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function L(e){var t=e.prototype.toJSON;"function"==typeof t||P(0),e.prototype.inspect=t,D&&(e.prototype[D]=t)}var M=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();L(M);var k=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function C(e){return null!=e&&"string"==typeof e.kind}L(k);var V=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function F(e){return F="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},F(e)}var $=10,U=2;function B(e){return H(e,[])}function H(e,t){switch(F(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(D)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:H(i,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>U)return"[Array]";for(var n=Math.min($,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(H(e[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>U?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map((function(n){return n+": "+H(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function G(e,t){if(!Boolean(e))throw new Error(t)}const q=function(e,t){return e instanceof t};function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var z=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||G(0,"Body must be a string. Received: ".concat(B(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||G(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||G(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n;return t=e,(n=[{key:l,get:function(){return"Source"}}])&&W(t.prototype,n),e}();function Y(e){return q(e,z)}var X=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function J(e){var t=e.split(/\r\n|[\n\r]/g),n=K(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&Q(t[i]);)++i;for(var o=t.length;o>i&&Q(t[o-1]);)--o;return t.slice(i,o).join("\n")}function Q(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function K(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}var ee=function(){function e(e){var t=new k(V.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==V.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=re(this,e)}while(e.kind===V.COMMENT);return e},e}();function te(e){return e===V.BANG||e===V.DOLLAR||e===V.AMP||e===V.PAREN_L||e===V.PAREN_R||e===V.SPREAD||e===V.COLON||e===V.EQUALS||e===V.AT||e===V.BRACKET_L||e===V.BRACKET_R||e===V.BRACE_L||e===V.PIPE||e===V.BRACE_R}function ne(e){return isNaN(e)?V.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function re(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var a=r.charCodeAt(o),s=e.line,u=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new k(V.BANG,o,o+1,s,u,t);case 35:return oe(n,o,s,u,t);case 36:return new k(V.DOLLAR,o,o+1,s,u,t);case 38:return new k(V.AMP,o,o+1,s,u,t);case 40:return new k(V.PAREN_L,o,o+1,s,u,t);case 41:return new k(V.PAREN_R,o,o+1,s,u,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new k(V.SPREAD,o,o+3,s,u,t);break;case 58:return new k(V.COLON,o,o+1,s,u,t);case 61:return new k(V.EQUALS,o,o+1,s,u,t);case 64:return new k(V.AT,o,o+1,s,u,t);case 91:return new k(V.BRACKET_L,o,o+1,s,u,t);case 93:return new k(V.BRACKET_R,o,o+1,s,u,t);case 123:return new k(V.BRACE_L,o,o+1,s,u,t);case 124:return new k(V.PIPE,o,o+1,s,u,t);case 125:return new k(V.BRACE_R,o,o+1,s,u,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?ce(n,o,s,u,t,e):ue(n,o,s,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return ae(n,o,a,s,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return fe(n,o,s,u,t)}throw x(n,o,ie(a))}var c=e.line,l=1+o-e.lineStart;return new k(V.EOF,i,i,c,l,t)}function ie(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(ne(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(ne(e),".")}function oe(e,t,n,r,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new k(V.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function ae(e,t,n,r,i,o){var a=e.body,s=n,u=t,c=!1;if(45===s&&(s=a.charCodeAt(++u)),48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw x(e,u,"Invalid number, unexpected digit after 0: ".concat(ne(s),"."))}else u=se(e,u,s),s=a.charCodeAt(u);if(46===s&&(c=!0,s=a.charCodeAt(++u),u=se(e,u,s),s=a.charCodeAt(u)),69!==s&&101!==s||(c=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=se(e,u,s),s=a.charCodeAt(u)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw x(e,u,"Invalid number, expected digit but got: ".concat(ne(s),"."));return new k(c?V.FLOAT:V.INT,t,u,r,i,o,a.slice(t,u))}function se(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw x(e,i,"Invalid number, expected digit but got: ".concat(ne(o),"."))}function ue(e,t,n,r,i){for(var o,a,s,u,c=e.body,l=t+1,f=l,p=0,d="";l<c.length&&!isNaN(p=c.charCodeAt(l))&&10!==p&&13!==p;){if(34===p)return d+=c.slice(f,l),new k(V.STRING,t,l+1,n,r,i,d);if(p<32&&9!==p)throw x(e,l,"Invalid character within String: ".concat(ne(p),"."));if(++l,92===p){switch(d+=c.slice(f,l-1),p=c.charCodeAt(l)){case 34:d+='"';break;case 47:d+="/";break;case 92:d+="\\";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+="\n";break;case 114:d+="\r";break;case 116:d+="\t";break;case 117:var h=(o=c.charCodeAt(l+1),a=c.charCodeAt(l+2),s=c.charCodeAt(l+3),u=c.charCodeAt(l+4),le(o)<<12|le(a)<<8|le(s)<<4|le(u));if(h<0){var v=c.slice(l+1,l+5);throw x(e,l,"Invalid character escape sequence: \\u".concat(v,"."))}d+=String.fromCharCode(h),l+=4;break;default:throw x(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(p),"."))}f=++l}}throw x(e,l,"Unterminated string.")}function ce(e,t,n,r,i,o){for(var a=e.body,s=t+3,u=s,c=0,l="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(34===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return l+=a.slice(u,s),new k(V.BLOCK_STRING,t,s+3,n,r,i,J(l));if(c<32&&9!==c&&10!==c&&13!==c)throw x(e,s,"Invalid character within String: ".concat(ne(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(l+=a.slice(u,s)+'"""',u=s+=4):++s}throw x(e,s,"Unterminated string.")}function le(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function fe(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new k(V.NAME,t,s,n,r,i,o.slice(t,s))}function pe(e,t){return new ve(e,t).parseDocument()}function de(e,t){var n=new ve(e,t);n.expectToken(V.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(V.EOF),r}function he(e,t){var n=new ve(e,t);n.expectToken(V.SOF);var r=n.parseTypeReference();return n.expectToken(V.EOF),r}var ve=function(){function e(e,t){var n=Y(e)?e:new z(e);this._lexer=new ee(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(V.NAME);return{kind:j.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:j.DOCUMENT,definitions:this.many(V.SOF,this.parseDefinition,V.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(V.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(V.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(V.BRACE_L))return{kind:j.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(V.NAME)&&(t=this.parseName()),{kind:j.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(V.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(V.PAREN_L,this.parseVariableDefinition,V.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:j.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(V.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(V.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(V.DOLLAR),{kind:j.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:j.SELECTION_SET,selections:this.many(V.BRACE_L,this.parseSelection,V.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(V.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(V.COLON)?(e=r,t=this.parseName()):t=r,{kind:j.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(V.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(V.PAREN_L,t,V.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(V.COLON),{kind:j.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:j.ARGUMENT,name:this.parseName(),value:(this.expectToken(V.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(V.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(V.NAME)?{kind:j.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:j.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:j.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:j.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case V.BRACKET_L:return this.parseList(e);case V.BRACE_L:return this.parseObject(e);case V.INT:return this._lexer.advance(),{kind:j.INT,value:t.value,loc:this.loc(t)};case V.FLOAT:return this._lexer.advance(),{kind:j.FLOAT,value:t.value,loc:this.loc(t)};case V.STRING:case V.BLOCK_STRING:return this.parseStringLiteral();case V.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:j.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:j.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:j.NULL,loc:this.loc(t)};default:return{kind:j.ENUM,value:t.value,loc:this.loc(t)}}case V.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:j.STRING,value:e.value,block:e.kind===V.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:j.LIST,values:this.any(V.BRACKET_L,(function(){return t.parseValueLiteral(e)}),V.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:j.OBJECT,fields:this.any(V.BRACE_L,(function(){return t.parseObjectField(e)}),V.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(V.COLON),{kind:j.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(V.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(V.AT),{kind:j.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(V.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(V.BRACKET_R),e={kind:j.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(V.BANG)?{kind:j.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:j.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===V.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(V.STRING)||this.peek(V.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(V.BRACE_L,this.parseOperationTypeDefinition,V.BRACE_R);return{kind:j.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(V.COLON);var n=this.parseNamedType();return{kind:j.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:j.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:j.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(V.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(V.AMP)||this.peek(V.NAME));return t}return this.delimitedMany(V.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(V.BRACE_L)&&this._lexer.lookahead().kind===V.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(V.BRACE_L,this.parseFieldDefinition,V.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(V.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:j.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(V.PAREN_L,this.parseInputValueDef,V.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(V.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(V.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:j.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:j.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:j.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(V.EQUALS)?this.delimitedMany(V.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:j.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(V.BRACE_L,this.parseEnumValueDefinition,V.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:j.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:j.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(V.BRACE_L,this.parseInputValueDef,V.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===V.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(V.BRACE_L,this.parseOperationTypeDefinition,V.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:j.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:j.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:j.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:j.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:j.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:j.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:j.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(V.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:j.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(V.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==X[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new M(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw x(this._lexer.source,t.start,"Expected ".concat(ye(e),", found ").concat(me(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==V.NAME||t.value!==e)throw x(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(me(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===V.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return x(this._lexer.source,t.start,"Unexpected ".concat(me(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function me(e){var t=e.value;return ye(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function ye(e){return te(e)?'"'.concat(e,'"'):e}var ge={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},be=Object.freeze({});function Ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ge,r=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],u=void 0,c=void 0,l=void 0,f=[],p=[],d=e;do{var h=++a===o.length,v=h&&0!==s.length;if(h){if(c=0===p.length?void 0:f[f.length-1],u=l,l=p.pop(),v){if(i)u=u.slice();else{for(var m={},y=0,g=Object.keys(u);y<g.length;y++){var b=g[y];m[b]=u[b]}u=m}for(var E=0,_=0;_<s.length;_++){var w=s[_][0],O=s[_][1];i&&(w-=E),i&&null===O?(u.splice(w,1),E++):u[w]=O}}a=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(c=l?i?a:o[a]:void 0,null==(u=l?l[c]:d))continue;l&&f.push(c)}var T,I=void 0;if(!Array.isArray(u)){if(!C(u))throw new Error("Invalid AST Node: ".concat(B(u),"."));var N=we(t,u.kind,h);if(N){if((I=N.call(t,u,c,l,f,p))===be)break;if(!1===I){if(!h){f.pop();continue}}else if(void 0!==I&&(s.push([c,I]),!h)){if(!C(I)){f.pop();continue}u=I}}}void 0===I&&v&&s.push([c,u]),h?f.pop():(r={inArray:i,index:a,keys:o,edits:s,prev:r},o=(i=Array.isArray(u))?u:null!==(T=n[u.kind])&&void 0!==T?T:[],a=-1,s=[],l&&p.push(l),l=u)}while(void 0!==r);return 0!==s.length&&(d=s[s.length-1][1]),d}function _e(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=we(e[r],n.kind,!1);if(i){var o=i.apply(e[r],arguments);if(!1===o)t[r]=n;else if(o===be)t[r]=be;else if(void 0!==o)return o}}},leave:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=we(e[r],n.kind,!0);if(i){var o=i.apply(e[r],arguments);if(o===be)t[r]=be;else if(void 0!==o&&!1!==o)return o}}else t[r]===n&&(t[r]=null)}}}function we(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}const Oe=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}},Te=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))};function Ie(e,t,n){var r,i=e instanceof Error?e:new Error("Unexpected error value: "+B(e));return Array.isArray(i.path)?i:new S(i.message,null!==(r=i.nodes)&&void 0!==r?r:t,i.source,i.positions,n,i)}var Ne=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function Se(e){var t=Ae(e);if(t)throw t;return e}function Ae(e){return"string"==typeof e||G(0,"Expected name to be a string."),e.length>1&&"_"===e[0]&&"_"===e[1]?new S('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.')):Ne.test(e)?void 0:new S('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}const Re=Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))};function xe(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}function je(e,t){for(var n=Object.create(null),r=0,i=Re(e);r<i.length;r++){var o=i[r],a=o[0],s=o[1];n[a]=t(s,a)}return n}function Pe(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,r=Re(e);n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t}function De(e,t,n){return e.reduce((function(e,r){return e[t(r)]=n(r),e}),Object.create(null))}var Le=5;function Me(e,t){var n="string"==typeof e?[e,t]:[void 0,e],r=n[0],i=" Did you mean ";r&&(i+=r+" ");var o=n[1].map((function(e){return'"'.concat(e,'"')}));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}var a=o.slice(0,Le),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function ke(e){return e}function Ce(e,t){for(var n=0,r=0;n<e.length&&r<t.length;){var i=e.charCodeAt(n),o=t.charCodeAt(r);if($e(i)&&$e(o)){var a=0;do{++n,a=10*a+i-Ve,i=e.charCodeAt(n)}while($e(i)&&a>0);var s=0;do{++r,s=10*s+o-Ve,o=t.charCodeAt(r)}while($e(o)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}var Ve=48,Fe=57;function $e(e){return!isNaN(e)&&Ve<=e&&e<=Fe}function Ue(e,t){for(var n=Object.create(null),r=new Be(e),i=Math.floor(.4*e.length)+1,o=0;o<t.length;o++){var a=t[o],s=r.measure(a,i);void 0!==s&&(n[a]=s)}return Object.keys(n).sort((function(e,t){var r=n[e]-n[t];return 0!==r?r:Ce(e,t)}))}var Be=function(){function e(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=He(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}return e.prototype.measure=function(e,t){if(this._input===e)return 0;var n=e.toLowerCase();if(this._inputLowerCase===n)return 1;var r=He(n),i=this._inputArray;if(r.length<i.length){var o=r;r=i,i=o}var a=r.length,s=i.length;if(!(a-s>t)){for(var u=this._rows,c=0;c<=s;c++)u[0][c]=c;for(var l=1;l<=a;l++){for(var f=u[(l-1)%3],p=u[l%3],d=p[0]=l,h=1;h<=s;h++){var v=r[l-1]===i[h-1]?0:1,m=Math.min(f[h]+1,p[h-1]+1,f[h-1]+v);if(l>1&&h>1&&r[l-1]===i[h-2]&&r[l-2]===i[h-1]){var y=u[(l-2)%3][h-2];m=Math.min(m,y+1)}m<d&&(d=m),p[h]=m}if(d>t)return}var g=u[a%3][s];return g<=t?g:void 0}},e}();function He(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function Ge(e){return Ee(e,{leave:qe})}var qe={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return ze(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=Xe("(",ze(e.variableDefinitions,", "),")"),i=ze(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?ze([t,ze([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+Xe(" = ",r)+Xe(" ",ze(i," "))},SelectionSet:function(e){return Ye(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=Xe("",t,": ")+n,s=a+Xe("(",ze(r,", "),")");return s.length>80&&(s=a+Xe("(\n",Je(ze(r,"\n")),"\n)")),ze([s,ze(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+Xe(" ",ze(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return ze(["...",Xe("on ",t),ze(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(Xe("(",ze(r,", "),")")," ")+"on ".concat(n," ").concat(Xe("",ze(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?Z(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+ze(e.values,", ")+"]"},ObjectValue:function(e){return"{"+ze(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+Xe("(",ze(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:We((function(e){var t=e.directives,n=e.operationTypes;return ze(["schema",ze(t," "),Ye(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:We((function(e){return ze(["scalar",e.name,ze(e.directives," ")]," ")})),ObjectTypeDefinition:We((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return ze(["type",t,Xe("implements ",ze(n," & ")),ze(r," "),Ye(i)]," ")})),FieldDefinition:We((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(Ke(n)?Xe("(\n",Je(ze(n,"\n")),"\n)"):Xe("(",ze(n,", "),")"))+": "+r+Xe(" ",ze(i," "))})),InputValueDefinition:We((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return ze([t+": "+n,Xe("= ",r),ze(i," ")]," ")})),InterfaceTypeDefinition:We((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return ze(["interface",t,Xe("implements ",ze(n," & ")),ze(r," "),Ye(i)]," ")})),UnionTypeDefinition:We((function(e){var t=e.name,n=e.directives,r=e.types;return ze(["union",t,ze(n," "),r&&0!==r.length?"= "+ze(r," | "):""]," ")})),EnumTypeDefinition:We((function(e){var t=e.name,n=e.directives,r=e.values;return ze(["enum",t,ze(n," "),Ye(r)]," ")})),EnumValueDefinition:We((function(e){return ze([e.name,ze(e.directives," ")]," ")})),InputObjectTypeDefinition:We((function(e){var t=e.name,n=e.directives,r=e.fields;return ze(["input",t,ze(n," "),Ye(r)]," ")})),DirectiveDefinition:We((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(Ke(n)?Xe("(\n",Je(ze(n,"\n")),"\n)"):Xe("(",ze(n,", "),")"))+(r?" repeatable":"")+" on "+ze(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return ze(["extend schema",ze(t," "),Ye(n)]," ")},ScalarTypeExtension:function(e){return ze(["extend scalar",e.name,ze(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return ze(["extend type",t,Xe("implements ",ze(n," & ")),ze(r," "),Ye(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return ze(["extend interface",t,Xe("implements ",ze(n," & ")),ze(r," "),Ye(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return ze(["extend union",t,ze(n," "),r&&0!==r.length?"= "+ze(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return ze(["extend enum",t,ze(n," "),Ye(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return ze(["extend input",t,ze(n," "),Ye(r)]," ")}};function We(e){return function(t){return ze([t.description,e(t)],"\n")}}function ze(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function Ye(e){return Xe("{\n",Je(ze(e,"\n")),"\n}")}function Xe(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function Je(e){return Xe(" ",e.replace(/\n/g,"\n "))}function Qe(e){return-1!==e.indexOf("\n")}function Ke(e){return null!=e&&e.some(Qe)}function Ze(e,t){switch(e.kind){case j.NULL:return null;case j.INT:return parseInt(e.value,10);case j.FLOAT:return parseFloat(e.value);case j.STRING:case j.ENUM:case j.BOOLEAN:return e.value;case j.LIST:return e.values.map((function(e){return Ze(e,t)}));case j.OBJECT:return De(e.fields,(function(e){return e.name.value}),(function(e){return Ze(e.value,t)}));case j.VARIABLE:return null==t?void 0:t[e.name.value]}P(0,"Unexpected value node: "+B(e))}function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tt(e,t,n){return t&&et(e.prototype,t),n&&et(e,n),e}function nt(e){return it(e)||at(e)||ut(e)||lt(e)||pt(e)||ht(e)||mt(e)||gt(e)}function rt(e){if(!nt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL type."));return e}function it(e){return q(e,Bt)}function ot(e){if(!it(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL Scalar type."));return e}function at(e){return q(e,Ht)}function st(e){if(!at(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL Object type."));return e}function ut(e){return q(e,Jt)}function ct(e){if(!ut(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL Interface type."));return e}function lt(e){return q(e,Qt)}function ft(e){if(!lt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL Union type."));return e}function pt(e){return q(e,Zt)}function dt(e){if(!pt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL Enum type."));return e}function ht(e){return q(e,tn)}function vt(e){if(!ht(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL Input Object type."));return e}function mt(e){return q(e,xt)}function yt(e){if(!mt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL List type."));return e}function gt(e){return q(e,jt)}function bt(e){if(!gt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL Non-Null type."));return e}function Et(e){return it(e)||pt(e)||ht(e)||Pt(e)&&Et(e.ofType)}function _t(e){if(!Et(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL input type."));return e}function wt(e){return it(e)||at(e)||ut(e)||lt(e)||pt(e)||Pt(e)&&wt(e.ofType)}function Ot(e){if(!wt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL output type."));return e}function Tt(e){return it(e)||pt(e)}function It(e){if(!Tt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL leaf type."));return e}function Nt(e){return at(e)||ut(e)||lt(e)}function St(e){if(!Nt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL composite type."));return e}function At(e){return ut(e)||lt(e)}function Rt(e){if(!At(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL abstract type."));return e}function xt(e){if(!(this instanceof xt))return new xt(e);this.ofType=rt(e)}function jt(e){if(!(this instanceof jt))return new jt(e);this.ofType=Mt(e)}function Pt(e){return mt(e)||gt(e)}function Dt(e){if(!Pt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL wrapping type."));return e}function Lt(e){return nt(e)&&!gt(e)}function Mt(e){if(!Lt(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL nullable type."));return e}function kt(e){if(e)return gt(e)?e.ofType:e}function Ct(e){return it(e)||at(e)||ut(e)||lt(e)||pt(e)||ht(e)}function Vt(e){if(!Ct(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL named type."));return e}function Ft(e){if(e){for(var t=e;Pt(t);)t=t.ofType;return t}}function $t(e){return"function"==typeof e?e():e}function Ut(e){return e&&e.length>0?e:void 0}xt.prototype.toString=function(){return"["+String(this.ofType)+"]"},xt.prototype.toJSON=function(){return this.toString()},Object.defineProperty(xt.prototype,l,{get:function(){return"GraphQLList"}}),L(xt),jt.prototype.toString=function(){return String(this.ofType)+"!"},jt.prototype.toJSON=function(){return this.toString()},Object.defineProperty(jt.prototype,l,{get:function(){return"GraphQLNonNull"}}),L(jt);var Bt=function(){function e(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:ke;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:ke,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e,t){return i(Ze(e,t))},this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Ut(e.extensionASTNodes),"string"==typeof e.name||G(0,"Must provide name."),null==e.specifiedByUrl||"string"==typeof e.specifiedByUrl||G(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(B(e.specifiedByUrl),".")),null==e.serialize||"function"==typeof e.serialize||G(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||G(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},tt(e,[{key:l,get:function(){return"GraphQLScalarType"}}]),e}();L(Bt);var Ht=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Ut(e.extensionASTNodes),this._fields=qt.bind(void 0,e),this._interfaces=Gt.bind(void 0,e),"string"==typeof e.name||G(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||G(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(B(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:zt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},tt(e,[{key:l,get:function(){return"GraphQLObjectType"}}]),e}();function Gt(e){var t,n=null!==(t=$t(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||G(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function qt(e){var t=$t(e.fields);return Wt(t)||G(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),je(t,(function(t,n){var r;Wt(t)||G(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||G(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"==typeof t.resolve||G(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(B(t.resolve),"."));var i=null!==(r=t.args)&&void 0!==r?r:{};Wt(i)||G(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var o=Re(i).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&Pe(n.extensions),astNode:n.astNode}}));return{name:n,description:t.description,type:t.type,args:o,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&Pe(t.extensions),astNode:t.astNode}}))}function Wt(e){return s(e)&&!Array.isArray(e)}function zt(e){return je(e,(function(e){return{description:e.description,type:e.type,args:Yt(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function Yt(e){return De(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function Xt(e){return gt(e.type)&&void 0===e.defaultValue}L(Ht);var Jt=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Ut(e.extensionASTNodes),this._fields=qt.bind(void 0,e),this._interfaces=Gt.bind(void 0,e),"string"==typeof e.name||G(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||G(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(B(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:zt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},tt(e,[{key:l,get:function(){return"GraphQLInterfaceType"}}]),e}();L(Jt);var Qt=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Ut(e.extensionASTNodes),this._types=Kt.bind(void 0,e),"string"==typeof e.name||G(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||G(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(B(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},tt(e,[{key:l,get:function(){return"GraphQLUnionType"}}]),e}();function Kt(e){var t=$t(e.types);return Array.isArray(t)||G(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}L(Qt);var Zt=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Ut(e.extensionASTNodes),this._values=(t=this.name,Wt(n=e.values)||G(0,"".concat(t," values must be an object with value names as keys.")),Re(n).map((function(e){var n=e[0],r=e[1];return Wt(r)||G(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(B(r),".")),!("isDeprecated"in r)||G(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&Pe(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=xe(this._values,(function(e){return e.name})),"string"==typeof e.name||G(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new S('Enum "'.concat(this.name,'" cannot represent value: ').concat(B(e)));return t.name},t.parseValue=function(e){if("string"!=typeof e){var t=B(e);throw new S('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+en(this,t))}var n=this.getValue(e);if(null==n)throw new S('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+en(this,e));return n.value},t.parseLiteral=function(e,t){if(e.kind!==j.ENUM){var n=Ge(e);throw new S('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+en(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=Ge(e);throw new S('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+en(this,i),e)}return r.value},t.toConfig=function(){var e,t=De(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},tt(e,[{key:l,get:function(){return"GraphQLEnumType"}}]),e}();function en(e,t){return Me("the enum value",Ue(t,e.getValues().map((function(e){return e.name}))))}L(Zt);var tn=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=Ut(e.extensionASTNodes),this._fields=nn.bind(void 0,e),"string"==typeof e.name||G(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e,t=je(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},tt(e,[{key:l,get:function(){return"GraphQLInputObjectType"}}]),e}();function nn(e){var t=$t(e.fields);return Wt(t)||G(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),je(t,(function(t,n){return!("resolve"in t)||G(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&Pe(t.extensions),astNode:t.astNode}}))}function rn(e){return gt(e.type)&&void 0===e.defaultValue}function on(e,t){return e===t||(gt(e)&>(t)||!(!mt(e)||!mt(t)))&&on(e.ofType,t.ofType)}function an(e,t,n){return t===n||(gt(n)?!!gt(t)&&an(e,t.ofType,n.ofType):gt(t)?an(e,t.ofType,n):mt(n)?!!mt(t)&&an(e,t.ofType,n.ofType):!mt(t)&&At(n)&&(ut(t)||at(t))&&e.isSubType(n,t))}function sn(e,t,n){return t===n||(At(t)?At(n)?e.getPossibleTypes(t).some((function(t){return e.isSubType(n,t)})):e.isSubType(t,n):!!At(n)&&e.isSubType(n,t))}L(tn);const un=Array.from||function(e,t,n){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r=e[u];if("function"==typeof r){for(var i,o=r.call(e),a=[],s=0;!(i=o.next()).done;++s)if(a.push(t.call(n,i.value,s)),s>9999999)throw new TypeError("Near-infinite iteration.");return a}var c=e.length;if("number"==typeof c&&c>=0&&c%1==0){for(var l=[],f=0;f<c;++f)Object.prototype.hasOwnProperty.call(e,f)&&l.push(t.call(n,e[f],f));return l}return[]},cn=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)};function ln(e){return ln="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},ln(e)}function fn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};if(null==e||"object"!==ln(e))return null;if(Array.isArray(e))return e.map(t);var n=e[u];if("function"==typeof n){for(var r,i=n.call(e),o=[],a=0;!(r=i.next()).done;++a)o.push(t(r.value,a));return o}var s=e.length;if("number"==typeof s&&s>=0&&s%1==0){for(var c=[],l=0;l<s;++l){if(!Object.prototype.hasOwnProperty.call(e,l))return null;c.push(t(e[String(l)],l))}return c}return null}const pn=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};var dn=2147483647,hn=-2147483648,vn=new Bt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){var t=yn(e);if("boolean"==typeof t)return t?1:0;var n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),!pn(n))throw new S("Int cannot represent non-integer value: ".concat(B(t)));if(n>dn||n<hn)throw new S("Int cannot represent non 32-bit signed integer value: "+B(t));return n},parseValue:function(e){if(!pn(e))throw new S("Int cannot represent non-integer value: ".concat(B(e)));if(e>dn||e<hn)throw new S("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(e){if(e.kind!==j.INT)throw new S("Int cannot represent non-integer value: ".concat(Ge(e)),e);var t=parseInt(e.value,10);if(t>dn||t<hn)throw new S("Int cannot represent non 32-bit signed integer value: ".concat(e.value),e);return t}}),mn=new Bt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){var t=yn(e);if("boolean"==typeof t)return t?1:0;var n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),!cn(n))throw new S("Float cannot represent non numeric value: ".concat(B(t)));return n},parseValue:function(e){if(!cn(e))throw new S("Float cannot represent non numeric value: ".concat(B(e)));return e},parseLiteral:function(e){if(e.kind!==j.FLOAT&&e.kind!==j.INT)throw new S("Float cannot represent non numeric value: ".concat(Ge(e)),e);return parseFloat(e.value)}});function yn(e){if(s(e)){if("function"==typeof e.valueOf){var t=e.valueOf();if(!s(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}var gn=new Bt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=yn(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if(cn(t))return t.toString();throw new S("String cannot represent value: ".concat(B(e)))},parseValue:function(e){if("string"!=typeof e)throw new S("String cannot represent a non string value: ".concat(B(e)));return e},parseLiteral:function(e){if(e.kind!==j.STRING)throw new S("String cannot represent a non string value: ".concat(Ge(e)),e);return e.value}}),bn=new Bt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var t=yn(e);if("boolean"==typeof t)return t;if(cn(t))return 0!==t;throw new S("Boolean cannot represent a non boolean value: ".concat(B(t)))},parseValue:function(e){if("boolean"!=typeof e)throw new S("Boolean cannot represent a non boolean value: ".concat(B(e)));return e},parseLiteral:function(e){if(e.kind!==j.BOOLEAN)throw new S("Boolean cannot represent a non boolean value: ".concat(Ge(e)),e);return e.value}}),En=new Bt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=yn(e);if("string"==typeof t)return t;if(pn(t))return String(t);throw new S("ID cannot represent value: ".concat(B(e)))},parseValue:function(e){if("string"==typeof e)return e;if(pn(e))return e.toString();throw new S("ID cannot represent value: ".concat(B(e)))},parseLiteral:function(e){if(e.kind!==j.STRING&&e.kind!==j.INT)throw new S("ID cannot represent a non-string and non-integer value: "+Ge(e),e);return e.value}}),_n=Object.freeze([gn,vn,mn,bn,En]);function wn(e){return _n.some((function(t){var n=t.name;return e.name===n}))}function On(e,t){if(gt(t)){var n=On(e,t.ofType);return(null==n?void 0:n.kind)===j.NULL?null:n}if(null===e)return{kind:j.NULL};if(void 0===e)return null;if(mt(t)){var r=t.ofType,i=fn(e);if(null!=i){for(var o=[],a=0;a<i.length;a++){var u=On(i[a],r);null!=u&&o.push(u)}return{kind:j.LIST,values:o}}return On(e,r)}if(ht(t)){if(!s(e))return null;for(var c=[],l=0,f=Te(t.getFields());l<f.length;l++){var p=f[l],d=On(e[p.name],p.type);d&&c.push({kind:j.OBJECT_FIELD,name:{kind:j.NAME,value:p.name},value:d})}return{kind:j.OBJECT,fields:c}}if(Tt(t)){var h=t.serialize(e);if(null==h)return null;if("boolean"==typeof h)return{kind:j.BOOLEAN,value:h};if("number"==typeof h&&cn(h)){var v=String(h);return Tn.test(v)?{kind:j.INT,value:v}:{kind:j.FLOAT,value:v}}if("string"==typeof h)return pt(t)?{kind:j.ENUM,value:h}:t===En&&Tn.test(h)?{kind:j.INT,value:h}:{kind:j.STRING,value:h};throw new TypeError("Cannot convert value to AST: ".concat(B(h),"."))}P(0,"Unexpected input type: "+B(t))}var Tn=/^-?(?:0|[1-9][0-9]*)$/,In=new Ht({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:gn,resolve:function(e){return e.description}},types:{description:"A list of all types supported by this server.",type:new jt(new xt(new jt(An))),resolve:function(e){return Te(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new jt(An),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:An,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:An,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new jt(new xt(new jt(Nn))),resolve:function(e){return e.getDirectives()}}}}}),Nn=new Ht({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:new jt(gn),resolve:function(e){return e.name}},description:{type:gn,resolve:function(e){return e.description}},isRepeatable:{type:new jt(bn),resolve:function(e){return e.isRepeatable}},locations:{type:new jt(new xt(new jt(Sn))),resolve:function(e){return e.locations}},args:{type:new jt(new xt(new jt(xn))),args:{includeDeprecated:{type:bn,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}}}}}),Sn=new Zt({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:X.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:X.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:X.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:X.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:X.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:X.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:X.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:X.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:X.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:X.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:X.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:X.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:X.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:X.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:X.UNION,description:"Location adjacent to a union definition."},ENUM:{value:X.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:X.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:X.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:X.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),An=new Ht({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new jt(Dn),resolve:function(e){return it(e)?Pn.SCALAR:at(e)?Pn.OBJECT:ut(e)?Pn.INTERFACE:lt(e)?Pn.UNION:pt(e)?Pn.ENUM:ht(e)?Pn.INPUT_OBJECT:mt(e)?Pn.LIST:gt(e)?Pn.NON_NULL:void P(0,'Unexpected type: "'.concat(B(e),'".'))}},name:{type:gn,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:gn,resolve:function(e){return void 0!==e.description?e.description:void 0}},specifiedByUrl:{type:gn,resolve:function(e){return void 0!==e.specifiedByUrl?e.specifiedByUrl:void 0}},fields:{type:new xt(new jt(Rn)),args:{includeDeprecated:{type:bn,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(at(e)||ut(e)){var r=Te(e.getFields());return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},interfaces:{type:new xt(new jt(An)),resolve:function(e){if(at(e)||ut(e))return e.getInterfaces()}},possibleTypes:{type:new xt(new jt(An)),resolve:function(e,t,n,r){var i=r.schema;if(At(e))return i.getPossibleTypes(e)}},enumValues:{type:new xt(new jt(jn)),args:{includeDeprecated:{type:bn,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(pt(e)){var r=e.getValues();return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},inputFields:{type:new xt(new jt(xn)),args:{includeDeprecated:{type:bn,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(ht(e)){var r=Te(e.getFields());return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},ofType:{type:An,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),Rn=new Ht({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new jt(gn),resolve:function(e){return e.name}},description:{type:gn,resolve:function(e){return e.description}},args:{type:new jt(new xt(new jt(xn))),args:{includeDeprecated:{type:bn,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}},type:{type:new jt(An),resolve:function(e){return e.type}},isDeprecated:{type:new jt(bn),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:gn,resolve:function(e){return e.deprecationReason}}}}}),xn=new Ht({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new jt(gn),resolve:function(e){return e.name}},description:{type:gn,resolve:function(e){return e.description}},type:{type:new jt(An),resolve:function(e){return e.type}},defaultValue:{type:gn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=e.type,n=On(e.defaultValue,t);return n?Ge(n):null}},isDeprecated:{type:new jt(bn),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:gn,resolve:function(e){return e.deprecationReason}}}}}),jn=new Ht({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new jt(gn),resolve:function(e){return e.name}},description:{type:gn,resolve:function(e){return e.description}},isDeprecated:{type:new jt(bn),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:gn,resolve:function(e){return e.deprecationReason}}}}}),Pn=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),Dn=new Zt({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Pn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Pn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Pn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Pn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Pn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Pn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Pn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Pn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Ln={name:"__schema",type:new jt(In),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Mn={name:"__type",type:An,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new jt(gn),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},kn={name:"__typename",type:new jt(gn),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Cn=Object.freeze([In,Nn,Sn,An,Rn,xn,jn,Dn]);function Vn(e){return Cn.some((function(t){var n=t.name;return e.name===n}))}function Fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $n(e){return q(e,Bn)}function Un(e){if(!$n(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL directive."));return e}var Bn=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,e.name||G(0,"Directive must be named."),Array.isArray(e.locations)||G(0,"@".concat(e.name," locations must be an Array."));var r=null!==(n=e.args)&&void 0!==n?n:{};s(r)&&!Array.isArray(r)||G(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=Re(r).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&Pe(n.extensions),astNode:n.astNode}}))}var t,n,r=e.prototype;return r.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Yt(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},r.toString=function(){return"@"+this.name},r.toJSON=function(){return this.toString()},t=e,(n=[{key:l,get:function(){return"GraphQLDirective"}}])&&Fn(t.prototype,n),e}();L(Bn);var Hn=new Bn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[X.FIELD,X.FRAGMENT_SPREAD,X.INLINE_FRAGMENT],args:{if:{type:new jt(bn),description:"Included when true."}}}),Gn=new Bn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[X.FIELD,X.FRAGMENT_SPREAD,X.INLINE_FRAGMENT],args:{if:{type:new jt(bn),description:"Skipped when true."}}}),qn="No longer supported",Wn=new Bn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[X.FIELD_DEFINITION,X.ARGUMENT_DEFINITION,X.INPUT_FIELD_DEFINITION,X.ENUM_VALUE],args:{reason:{type:gn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:qn}}}),zn=new Bn({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[X.SCALAR],args:{url:{type:new jt(gn),description:"The URL that specifies the behaviour of this scalar."}}}),Yn=Object.freeze([Hn,Gn,Wn,zn]);function Xn(e){return Yn.some((function(t){return t.name===e.name}))}function Jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qn(e){return q(e,Zn)}function Kn(e){if(!Qn(e))throw new Error("Expected ".concat(B(e)," to be a GraphQL schema."));return e}var Zn=function(){function e(e){var t;this.__validationErrors=!0===e.assumeValid?[]:void 0,s(e)||G(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||G(0,'"types" must be Array if provided but got: '.concat(B(e.types),".")),!e.directives||Array.isArray(e.directives)||G(0,'"directives" must be Array if provided but got: '+"".concat(B(e.directives),".")),this.description=e.description,this.extensions=e.extensions&&Pe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(t=e.directives)&&void 0!==t?t:Yn;var n=new Set(e.types);if(null!=e.types)for(var r=0,i=e.types;r<i.length;r++){var o=i[r];n.delete(o),er(o,n)}null!=this._queryType&&er(this._queryType,n),null!=this._mutationType&&er(this._mutationType,n),null!=this._subscriptionType&&er(this._subscriptionType,n);for(var a=0,u=this._directives;a<u.length;a++){var c=u[a];if($n(c))for(var l=0,f=c.args;l<f.length;l++)er(f[l].type,n)}er(In,n),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var p=0,d=un(n);p<d.length;p++){var h=d[p];if(null!=h){var v=h.name;if(v||G(0,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[v])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(v,'".'));if(this._typeMap[v]=h,ut(h))for(var m=0,y=h.getInterfaces();m<y.length;m++){var g=y[m];if(ut(g)){var b=this._implementationsMap[g.name];void 0===b&&(b=this._implementationsMap[g.name]={objects:[],interfaces:[]}),b.interfaces.push(h)}}else if(at(h))for(var E=0,_=h.getInterfaces();E<_.length;E++){var w=_[E];if(ut(w)){var O=this._implementationsMap[w.name];void 0===O&&(O=this._implementationsMap[w.name]={objects:[],interfaces:[]}),O.objects.push(h)}}}}}var t,n,r=e.prototype;return r.getQueryType=function(){return this._queryType},r.getMutationType=function(){return this._mutationType},r.getSubscriptionType=function(){return this._subscriptionType},r.getTypeMap=function(){return this._typeMap},r.getType=function(e){return this.getTypeMap()[e]},r.getPossibleTypes=function(e){return lt(e)?e.getTypes():this.getImplementations(e).objects},r.getImplementations=function(e){var t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}},r.isPossibleType=function(e,t){return this.isSubType(e,t)},r.isSubType=function(e,t){var n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),lt(e))for(var r=0,i=e.getTypes();r<i.length;r++)n[i[r].name]=!0;else{for(var o=this.getImplementations(e),a=0,s=o.objects;a<s.length;a++)n[s[a].name]=!0;for(var u=0,c=o.interfaces;u<c.length;u++)n[c[u].name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]},r.getDirectives=function(){return this._directives},r.getDirective=function(e){return Oe(this.getDirectives(),(function(t){return t.name===e}))},r.toConfig=function(){var e;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Te(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[],assumeValid:void 0!==this.__validationErrors}},t=e,(n=[{key:l,get:function(){return"GraphQLSchema"}}])&&Jn(t.prototype,n),e}();function er(e,t){var n=Ft(e);if(!t.has(n))if(t.add(n),lt(n))for(var r=0,i=n.getTypes();r<i.length;r++)er(i[r],t);else if(at(n)||ut(n)){for(var o=0,a=n.getInterfaces();o<a.length;o++)er(a[o],t);for(var s=0,u=Te(n.getFields());s<u.length;s++){var c=u[s];er(c.type,t);for(var l=0,f=c.args;l<f.length;l++)er(f[l].type,t)}}else if(ht(n))for(var p=0,d=Te(n.getFields());p<d.length;p++)er(d[p].type,t);return t}function tr(e){if(Kn(e),e.__validationErrors)return e.__validationErrors;var t=new rr(e);!function(e){var t=e.schema,n=t.getQueryType();if(n){if(!at(n)){var r;e.reportError("Query root type must be Object type, it cannot be ".concat(B(n),"."),null!==(r=ir(t,"query"))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);var i,o=t.getMutationType();o&&!at(o)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(B(o),"."),null!==(i=ir(t,"mutation"))&&void 0!==i?i:o.astNode);var a,s=t.getSubscriptionType();s&&!at(s)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(B(s),"."),null!==(a=ir(t,"subscription"))&&void 0!==a?a:s.astNode)}(t),function(e){for(var t=0,n=e.schema.getDirectives();t<n.length;t++){var r=n[t];if($n(r)){or(e,r);for(var i=0,o=r.args;i<o.length;i++){var a,s=o[i];or(e,s),Et(s.type)||e.reportError("The type of @".concat(r.name,"(").concat(s.name,":) must be Input Type ")+"but got: ".concat(B(s.type),"."),s.astNode),Xt(s)&&null!=s.deprecationReason&&e.reportError("Required argument @".concat(r.name,"(").concat(s.name,":) cannot be deprecated."),[yr(s.astNode),null===(a=s.astNode)||void 0===a?void 0:a.type])}}else e.reportError("Expected directive but got: ".concat(B(r),"."),null==r?void 0:r.astNode)}}(t),function(e){for(var t=function(e){var t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(!t[o.name]){t[o.name]=!0,r[o.name]=n.length;for(var a=Te(o.getFields()),s=0;s<a.length;s++){var u=a[s];if(gt(u.type)&&ht(u.type.ofType)){var c=u.type.ofType,l=r[c.name];if(n.push(u),void 0===l)i(c);else{var f=n.slice(l),p=f.map((function(e){return e.name})).join(".");e.reportError('Cannot reference Input Object "'.concat(c.name,'" within itself through a series of non-null fields: "').concat(p,'".'),f.map((function(e){return e.astNode})))}n.pop()}}r[o.name]=void 0}}}(e),n=e.schema.getTypeMap(),r=0,i=Te(n);r<i.length;r++){var o=i[r];Ct(o)?(Vn(o)||or(e,o),at(o)||ut(o)?(ar(e,o),sr(e,o)):lt(o)?lr(e,o):pt(o)?fr(e,o):ht(o)&&(pr(e,o),t(o))):e.reportError("Expected GraphQL named type but got: ".concat(B(o),"."),o.astNode)}}(t);var n=t.getErrors();return e.__validationErrors=n,n}function nr(e){var t=tr(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}var rr=function(){function e(e){this._errors=[],this.schema=e}var t=e.prototype;return t.reportError=function(e,t){var n=Array.isArray(t)?t.filter(Boolean):t;this.addError(new S(e,n))},t.addError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},e}();function ir(e,t){for(var n=hr(e,(function(e){return e.operationTypes})),r=0;r<n.length;r++){var i=n[r];if(i.operation===t)return i.type}}function or(e,t){var n=Ae(t.name);n&&e.addError(Ie(n,t.astNode))}function ar(e,t){var n=Te(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),dr(t));for(var r=0;r<n.length;r++){var i,o=n[r];or(e,o),wt(o.type)||e.reportError("The type of ".concat(t.name,".").concat(o.name," must be Output Type ")+"but got: ".concat(B(o.type),"."),null===(i=o.astNode)||void 0===i?void 0:i.type);for(var a=0,s=o.args;a<s.length;a++){var u,c,l=s[a],f=l.name;or(e,l),Et(l.type)||e.reportError("The type of ".concat(t.name,".").concat(o.name,"(").concat(f,":) must be Input ")+"Type but got: ".concat(B(l.type),"."),null===(u=l.astNode)||void 0===u?void 0:u.type),Xt(l)&&null!=l.deprecationReason&&e.reportError("Required argument ".concat(t.name,".").concat(o.name,"(").concat(f,":) cannot be deprecated."),[yr(l.astNode),null===(c=l.astNode)||void 0===c?void 0:c.type])}}}function sr(e,t){for(var n=Object.create(null),r=0,i=t.getInterfaces();r<i.length;r++){var o=i[r];ut(o)?t!==o?n[o.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(o.name," once."),vr(t,o)):(n[o.name]=!0,cr(e,t,o),ur(e,t,o)):e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),vr(t,o)):e.reportError("Type ".concat(B(t)," must only implement Interface types, ")+"it cannot implement ".concat(B(o),"."),vr(t,o))}}function ur(e,t,n){for(var r=t.getFields(),i=0,o=Te(n.getFields());i<o.length;i++){var a=o[i],s=a.name,u=r[s];if(u){var c,l;an(e.schema,u.type,a.type)||e.reportError("Interface field ".concat(n.name,".").concat(s," expects type ")+"".concat(B(a.type)," but ").concat(t.name,".").concat(s," ")+"is type ".concat(B(u.type),"."),[null===(c=a.astNode)||void 0===c?void 0:c.type,null===(l=u.astNode)||void 0===l?void 0:l.type]);for(var f=function(r,i){var o,a,c=i[r],l=c.name,f=Oe(u.args,(function(e){return e.name===l}));if(!f)return e.reportError("Interface field argument ".concat(n.name,".").concat(s,"(").concat(l,":) expected but ").concat(t.name,".").concat(s," does not provide it."),[c.astNode,u.astNode]),"continue";on(c.type,f.type)||e.reportError("Interface field argument ".concat(n.name,".").concat(s,"(").concat(l,":) ")+"expects type ".concat(B(c.type)," but ")+"".concat(t.name,".").concat(s,"(").concat(l,":) is type ")+"".concat(B(f.type),"."),[null===(o=c.astNode)||void 0===o?void 0:o.type,null===(a=f.astNode)||void 0===a?void 0:a.type])},p=0,d=a.args;p<d.length;p++)f(p,d);for(var h=function(r,i){var o=i[r],u=o.name;!Oe(a.args,(function(e){return e.name===u}))&&Xt(o)&&e.reportError("Object field ".concat(t.name,".").concat(s," includes required argument ").concat(u," that is missing from the Interface field ").concat(n.name,".").concat(s,"."),[o.astNode,a.astNode])},v=0,m=u.args;v<m.length;v++)h(v,m)}else e.reportError("Interface field ".concat(n.name,".").concat(s," expected but ").concat(t.name," does not provide it."),[a.astNode].concat(dr(t)))}}function cr(e,t,n){for(var r=t.getInterfaces(),i=0,o=n.getInterfaces();i<o.length;i++){var a=o[i];-1===r.indexOf(a)&&e.reportError(a===t?"Type ".concat(t.name," cannot implement ").concat(n.name," because it would create a circular reference."):"Type ".concat(t.name," must implement ").concat(a.name," because it is implemented by ").concat(n.name,"."),[].concat(vr(n,a),vr(t,n)))}}function lr(e,t){var n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),dr(t));for(var r=Object.create(null),i=0;i<n.length;i++){var o=n[i];r[o.name]?e.reportError("Union type ".concat(t.name," can only include type ").concat(o.name," once."),mr(t,o.name)):(r[o.name]=!0,at(o)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat(B(o),"."),mr(t,String(o))))}}function fr(e,t){var n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),dr(t));for(var r=0;r<n.length;r++){var i=n[r],o=i.name;or(e,i),"true"!==o&&"false"!==o&&"null"!==o||e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(o,"."),i.astNode)}}function pr(e,t){var n=Te(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),dr(t));for(var r=0;r<n.length;r++){var i,o,a=n[r];or(e,a),Et(a.type)||e.reportError("The type of ".concat(t.name,".").concat(a.name," must be Input Type ")+"but got: ".concat(B(a.type),"."),null===(i=a.astNode)||void 0===i?void 0:i.type),rn(a)&&null!=a.deprecationReason&&e.reportError("Required input field ".concat(t.name,".").concat(a.name," cannot be deprecated."),[yr(a.astNode),null===(o=a.astNode)||void 0===o?void 0:o.type])}}function dr(e){var t=e.astNode,n=e.extensionASTNodes;return t?n?[t].concat(n):[t]:null!=n?n:[]}function hr(e,t){for(var n=[],r=0,i=dr(e);r<i.length;r++){var o,a=i[r];n=n.concat(null!==(o=t(a))&&void 0!==o?o:[])}return n}function vr(e,t){return hr(e,(function(e){return e.interfaces})).filter((function(e){return e.name.value===t.name}))}function mr(e,t){return hr(e,(function(e){return e.types})).filter((function(e){return e.name.value===t}))}function yr(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((function(e){return e.name.value===Wn.name}))}function gr(e,t){var n;return t.kind===j.LIST_TYPE?(n=gr(e,t.type))&&new xt(n):t.kind===j.NON_NULL_TYPE?(n=gr(e,t.type))&&new jt(n):t.kind===j.NAMED_TYPE?e.getType(t.name.value):void P(0,"Unexpected type node: "+B(t))}var br=function(){function e(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=t?t:Er,n&&(Et(n)&&this._inputTypeStack.push(n),Nt(n)&&this._parentTypeStack.push(n),wt(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case j.SELECTION_SET:var n=Ft(this.getType());this._parentTypeStack.push(Nt(n)?n:void 0);break;case j.FIELD:var r,i,o=this.getParentType();o&&(r=this._getFieldDef(t,o,e))&&(i=r.type),this._fieldDefStack.push(r),this._typeStack.push(wt(i)?i:void 0);break;case j.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case j.OPERATION_DEFINITION:var a;switch(e.operation){case"query":a=t.getQueryType();break;case"mutation":a=t.getMutationType();break;case"subscription":a=t.getSubscriptionType()}this._typeStack.push(at(a)?a:void 0);break;case j.INLINE_FRAGMENT:case j.FRAGMENT_DEFINITION:var s=e.typeCondition,u=s?gr(t,s):Ft(this.getType());this._typeStack.push(wt(u)?u:void 0);break;case j.VARIABLE_DEFINITION:var c=gr(t,e.type);this._inputTypeStack.push(Et(c)?c:void 0);break;case j.ARGUMENT:var l,f,p,d=null!==(l=this.getDirective())&&void 0!==l?l:this.getFieldDef();d&&(f=Oe(d.args,(function(t){return t.name===e.name.value})))&&(p=f.type),this._argument=f,this._defaultValueStack.push(f?f.defaultValue:void 0),this._inputTypeStack.push(Et(p)?p:void 0);break;case j.LIST:var h=kt(this.getInputType()),v=mt(h)?h.ofType:h;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Et(v)?v:void 0);break;case j.OBJECT_FIELD:var m,y,g=Ft(this.getInputType());ht(g)&&(y=g.getFields()[e.name.value])&&(m=y.type),this._defaultValueStack.push(y?y.defaultValue:void 0),this._inputTypeStack.push(Et(m)?m:void 0);break;case j.ENUM:var b,E=Ft(this.getInputType());pt(E)&&(b=E.getValue(e.value)),this._enumValue=b}},t.leave=function(e){switch(e.kind){case j.SELECTION_SET:this._parentTypeStack.pop();break;case j.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case j.DIRECTIVE:this._directive=null;break;case j.OPERATION_DEFINITION:case j.INLINE_FRAGMENT:case j.FRAGMENT_DEFINITION:this._typeStack.pop();break;case j.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case j.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case j.LIST:case j.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case j.ENUM:this._enumValue=null}},e}();function Er(e,t,n){var r=n.name.value;return r===Ln.name&&e.getQueryType()===t?Ln:r===Mn.name&&e.getQueryType()===t?Mn:r===kn.name&&Nt(t)?kn:at(t)||ut(t)?t.getFields()[r]:void 0}function _r(e,t){return{enter:function(n){e.enter(n);var r=we(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),C(i)&&e.enter(i)),i}},leave:function(n){var r,i=we(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}}function wr(e){return Or(e)||Sr(e)||Rr(e)}function Or(e){return e.kind===j.OPERATION_DEFINITION||e.kind===j.FRAGMENT_DEFINITION}function Tr(e){return e.kind===j.FIELD||e.kind===j.FRAGMENT_SPREAD||e.kind===j.INLINE_FRAGMENT}function Ir(e){return e.kind===j.VARIABLE||e.kind===j.INT||e.kind===j.FLOAT||e.kind===j.STRING||e.kind===j.BOOLEAN||e.kind===j.NULL||e.kind===j.ENUM||e.kind===j.LIST||e.kind===j.OBJECT}function Nr(e){return e.kind===j.NAMED_TYPE||e.kind===j.LIST_TYPE||e.kind===j.NON_NULL_TYPE}function Sr(e){return e.kind===j.SCHEMA_DEFINITION||Ar(e)||e.kind===j.DIRECTIVE_DEFINITION}function Ar(e){return e.kind===j.SCALAR_TYPE_DEFINITION||e.kind===j.OBJECT_TYPE_DEFINITION||e.kind===j.INTERFACE_TYPE_DEFINITION||e.kind===j.UNION_TYPE_DEFINITION||e.kind===j.ENUM_TYPE_DEFINITION||e.kind===j.INPUT_OBJECT_TYPE_DEFINITION}function Rr(e){return e.kind===j.SCHEMA_EXTENSION||xr(e)}function xr(e){return e.kind===j.SCALAR_TYPE_EXTENSION||e.kind===j.OBJECT_TYPE_EXTENSION||e.kind===j.INTERFACE_TYPE_EXTENSION||e.kind===j.UNION_TYPE_EXTENSION||e.kind===j.ENUM_TYPE_EXTENSION||e.kind===j.INPUT_OBJECT_TYPE_EXTENSION}function jr(e){return{Document:function(t){for(var n=0,r=t.definitions;n<r.length;n++){var i=r[n];if(!Or(i)){var o=i.kind===j.SCHEMA_DEFINITION||i.kind===j.SCHEMA_EXTENSION?"schema":'"'+i.name.value+'"';e.reportError(new S("The ".concat(o," definition is not executable."),i))}}return!1}}}function Pr(e){var t=Object.create(null);return{OperationDefinition:function(n){var r=n.name;return r&&(t[r.value]?e.reportError(new S('There can be only one operation named "'.concat(r.value,'".'),[t[r.value],r])):t[r.value]=r),!1},FragmentDefinition:function(){return!1}}}function Dr(e){var t=0;return{Document:function(e){t=e.definitions.filter((function(e){return e.kind===j.OPERATION_DEFINITION})).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new S("This anonymous operation must be the only defined operation.",n))}}}function Lr(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new S(t.name?'Subscription "'.concat(t.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}}function Mr(e){for(var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null),i=0,o=e.getDocument().definitions;i<o.length;i++){var a=o[i];Ar(a)&&(r[a.name.value]=!0)}var s=Object.keys(n).concat(Object.keys(r));return{NamedType:function(t,i,o,a,u){var c=t.name.value;if(!n[c]&&!r[c]){var l,f=null!==(l=u[2])&&void 0!==l?l:o,p=null!=f&&function(e){return!Array.isArray(e)&&(Sr(e)||Rr(e))}(f);if(p&&function(e){return-1!==kr.indexOf(e)}(c))return;var d=Ue(c,p?kr.concat(s):s);e.reportError(new S('Unknown type "'.concat(c,'".')+Me(d),t))}}}}var kr=[].concat(_n,Cn).map((function(e){return e.name}));function Cr(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var r=gr(e.getSchema(),n);if(r&&!Nt(r)){var i=Ge(n);e.reportError(new S('Fragment cannot condition on non composite type "'.concat(i,'".'),n))}}},FragmentDefinition:function(t){var n=gr(e.getSchema(),t.typeCondition);if(n&&!Nt(n)){var r=Ge(t.typeCondition);e.reportError(new S('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(r,'".'),t.typeCondition))}}}}function Vr(e){return{VariableDefinition:function(t){var n=gr(e.getSchema(),t.type);if(n&&!Et(n)){var r=t.variable.name.value,i=Ge(t.type);e.reportError(new S('Variable "$'.concat(r,'" cannot be non-input type "').concat(i,'".'),t.type))}}}}function Fr(e){return{Field:function(t){var n=e.getType(),r=t.selectionSet;if(n)if(Tt(Ft(n))){if(r){var i=t.name.value,o=B(n);e.reportError(new S('Field "'.concat(i,'" must not have a selection since type "').concat(o,'" has no subfields.'),r))}}else if(!r){var a=t.name.value,s=B(n);e.reportError(new S('Field "'.concat(a,'" of type "').concat(s,'" must have a selection of subfields. Did you mean "').concat(a,' { ... }"?'),t))}}}}function $r(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var r=e.getSchema(),i=t.name.value,o=Me("to use an inline fragment on",function(e,t,n){if(!At(t))return[];for(var r=new Set,i=Object.create(null),o=0,a=e.getPossibleTypes(t);o<a.length;o++){var s=a[o];if(s.getFields()[n]){r.add(s),i[s.name]=1;for(var u=0,c=s.getInterfaces();u<c.length;u++){var l,f=c[u];f.getFields()[n]&&(r.add(f),i[f.name]=(null!==(l=i[f.name])&&void 0!==l?l:0)+1)}}}return un(r).sort((function(t,n){var r=i[n.name]-i[t.name];return 0!==r?r:ut(t)&&e.isSubType(t,n)?-1:ut(n)&&e.isSubType(n,t)?1:Ce(t.name,n.name)})).map((function(e){return e.name}))}(r,n,i));""===o&&(o=Me(function(e,t){return at(e)||ut(e)?Ue(t,Object.keys(e.getFields())):[]}(n,i))),e.reportError(new S('Cannot query field "'.concat(i,'" on type "').concat(n.name,'".')+o,t))}}}}function Ur(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var r=n.name.value;return t[r]?e.reportError(new S('There can be only one fragment named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name,!1}}}function Br(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new S('Unknown fragment "'.concat(n,'".'),t.name))}}}function Hr(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var r=Object.create(null),i=0;i<t.length;i++)for(var o=t[i],a=0,s=e.getRecursivelyReferencedFragments(o);a<s.length;a++)r[s[a].name.value]=!0;for(var u=0;u<n.length;u++){var c=n[u],l=c.name.value;!0!==r[l]&&e.reportError(new S('Fragment "'.concat(l,'" is never used.'),c))}}}}}function Gr(e){return{InlineFragment:function(t){var n=e.getType(),r=e.getParentType();if(Nt(n)&&Nt(r)&&!sn(e.getSchema(),n,r)){var i=B(r),o=B(n);e.reportError(new S('Fragment cannot be spread here as objects of type "'.concat(i,'" can never be of type "').concat(o,'".'),t))}},FragmentSpread:function(t){var n=t.name.value,r=function(e,t){var n=e.getFragment(t);if(n){var r=gr(e.getSchema(),n.typeCondition);if(Nt(r))return r}}(e,n),i=e.getParentType();if(r&&i&&!sn(e.getSchema(),r,i)){var o=B(i),a=B(r);e.reportError(new S('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(o,'" can never be of type "').concat(a,'".'),t))}}}}function qr(e){var t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(e){return i(e),!1}};function i(o){if(!t[o.name.value]){var a=o.name.value;t[a]=!0;var s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){r[a]=n.length;for(var u=0;u<s.length;u++){var c=s[u],l=c.name.value,f=r[l];if(n.push(c),void 0===f){var p=e.getFragment(l);p&&i(p)}else{var d=n.slice(f),h=d.slice(0,-1).map((function(e){return'"'+e.name.value+'"'})).join(", ");e.reportError(new S('Cannot spread fragment "'.concat(l,'" within itself')+(""!==h?" via ".concat(h,"."):"."),d))}n.pop()}r[a]=void 0}}}}function Wr(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var r=n.variable.name.value;t[r]?e.reportError(new S('There can be only one variable named "$'.concat(r,'".'),[t[r],n.variable.name])):t[r]=n.variable.name}}}function zr(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var r=e.getRecursiveVariableUsages(n),i=0;i<r.length;i++){var o=r[i].node,a=o.name.value;!0!==t[a]&&e.reportError(new S(n.name?'Variable "$'.concat(a,'" is not defined by operation "').concat(n.name.value,'".'):'Variable "$'.concat(a,'" is not defined.'),[o,n]))}}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}}function Yr(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var r=Object.create(null),i=e.getRecursiveVariableUsages(n),o=0;o<i.length;o++)r[i[o].node.name.value]=!0;for(var a=0,s=t;a<s.length;a++){var u=s[a],c=u.variable.name.value;!0!==r[c]&&e.reportError(new S(n.name?'Variable "$'.concat(c,'" is never used in operation "').concat(n.name.value,'".'):'Variable "$'.concat(c,'" is never used.'),u))}}},VariableDefinition:function(e){t.push(e)}}}function Xr(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Yn,i=0;i<r.length;i++){var o=r[i];t[o.name]=o.locations}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];u.kind===j.DIRECTIVE_DEFINITION&&(t[u.name.value]=u.locations.map((function(e){return e.value})))}return{Directive:function(n,r,i,o,a){var s=n.name.value,u=t[s];if(u){var c=function(e){var t=e[e.length-1];switch(!Array.isArray(t)||P(0),t.kind){case j.OPERATION_DEFINITION:return function(e){switch(e){case"query":return X.QUERY;case"mutation":return X.MUTATION;case"subscription":return X.SUBSCRIPTION}P(0,"Unexpected operation: "+B(e))}(t.operation);case j.FIELD:return X.FIELD;case j.FRAGMENT_SPREAD:return X.FRAGMENT_SPREAD;case j.INLINE_FRAGMENT:return X.INLINE_FRAGMENT;case j.FRAGMENT_DEFINITION:return X.FRAGMENT_DEFINITION;case j.VARIABLE_DEFINITION:return X.VARIABLE_DEFINITION;case j.SCHEMA_DEFINITION:case j.SCHEMA_EXTENSION:return X.SCHEMA;case j.SCALAR_TYPE_DEFINITION:case j.SCALAR_TYPE_EXTENSION:return X.SCALAR;case j.OBJECT_TYPE_DEFINITION:case j.OBJECT_TYPE_EXTENSION:return X.OBJECT;case j.FIELD_DEFINITION:return X.FIELD_DEFINITION;case j.INTERFACE_TYPE_DEFINITION:case j.INTERFACE_TYPE_EXTENSION:return X.INTERFACE;case j.UNION_TYPE_DEFINITION:case j.UNION_TYPE_EXTENSION:return X.UNION;case j.ENUM_TYPE_DEFINITION:case j.ENUM_TYPE_EXTENSION:return X.ENUM;case j.ENUM_VALUE_DEFINITION:return X.ENUM_VALUE;case j.INPUT_OBJECT_TYPE_DEFINITION:case j.INPUT_OBJECT_TYPE_EXTENSION:return X.INPUT_OBJECT;case j.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===j.INPUT_OBJECT_TYPE_DEFINITION?X.INPUT_FIELD_DEFINITION:X.ARGUMENT_DEFINITION}}(a);c&&-1===u.indexOf(c)&&e.reportError(new S('Directive "@'.concat(s,'" may not be used on ').concat(c,"."),n))}else e.reportError(new S('Unknown directive "@'.concat(s,'".'),n))}}}function Jr(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Yn,i=0;i<r.length;i++){var o=r[i];t[o.name]=!o.isRepeatable}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];u.kind===j.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable)}var c=Object.create(null),l=Object.create(null);return{enter:function(n){if(null!=n.directives){var r;if(n.kind===j.SCHEMA_DEFINITION||n.kind===j.SCHEMA_EXTENSION)r=c;else if(Ar(n)||xr(n)){var i=n.name.value;void 0===(r=l[i])&&(l[i]=r=Object.create(null))}else r=Object.create(null);for(var o=0,a=n.directives;o<a.length;o++){var s=a[o],u=s.name.value;t[u]&&(r[u]?e.reportError(new S('The directive "@'.concat(u,'" can only be used once at this location.'),[r[u],s])):r[u]=s)}}}}}function Qr(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 Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(n),!0).forEach((function(t){Zr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ei(e){return Kr(Kr({},ti(e)),{},{Argument:function(t){var n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){var o=t.name.value,a=Ue(o,r.args.map((function(e){return e.name})));e.reportError(new S('Unknown argument "'.concat(o,'" on field "').concat(i.name,".").concat(r.name,'".')+Me(a),t))}}})}function ti(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Yn,i=0;i<r.length;i++){var o=r[i];t[o.name]=o.args.map((function(e){return e.name}))}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];if(u.kind===j.DIRECTIVE_DEFINITION){var c,l=null!==(c=u.arguments)&&void 0!==c?c:[];t[u.name.value]=l.map((function(e){return e.name.value}))}}return{Directive:function(n){var r=n.name.value,i=t[r];if(n.arguments&&i)for(var o=0,a=n.arguments;o<a.length;o++){var s=a[o],u=s.name.value;if(-1===i.indexOf(u)){var c=Ue(u,i);e.reportError(new S('Unknown argument "'.concat(u,'" on directive "@').concat(r,'".')+Me(c),s))}}return!1}}}function ni(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var r=n.name.value;return t[r]?e.reportError(new S('There can be only one argument named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name,!1}}}function ri(e){return{ListValue:function(t){if(!mt(kt(e.getParentInputType())))return ii(e,t),!1},ObjectValue:function(t){var n=Ft(e.getInputType());if(!ht(n))return ii(e,t),!1;for(var r=xe(t.fields,(function(e){return e.name.value})),i=0,o=Te(n.getFields());i<o.length;i++){var a=o[i];if(!r[a.name]&&rn(a)){var s=B(a.type);e.reportError(new S('Field "'.concat(n.name,".").concat(a.name,'" of required type "').concat(s,'" was not provided.'),t))}}},ObjectField:function(t){var n=Ft(e.getParentInputType());if(!e.getInputType()&&ht(n)){var r=Ue(t.name.value,Object.keys(n.getFields()));e.reportError(new S('Field "'.concat(t.name.value,'" is not defined by type "').concat(n.name,'".')+Me(r),t))}},NullValue:function(t){var n=e.getInputType();gt(n)&&e.reportError(new S('Expected value of type "'.concat(B(n),'", found ').concat(Ge(t),"."),t))},EnumValue:function(t){return ii(e,t)},IntValue:function(t){return ii(e,t)},FloatValue:function(t){return ii(e,t)},StringValue:function(t){return ii(e,t)},BooleanValue:function(t){return ii(e,t)}}}function ii(e,t){var n=e.getInputType();if(n){var r=Ft(n);if(Tt(r))try{if(void 0===r.parseLiteral(t,void 0)){var i=B(n);e.reportError(new S('Expected value of type "'.concat(i,'", found ').concat(Ge(t),"."),t))}}catch(r){var o=B(n);r instanceof S?e.reportError(r):e.reportError(new S('Expected value of type "'.concat(o,'", found ').concat(Ge(t),"; ")+r.message,t,void 0,void 0,void 0,r))}else{var a=B(n);e.reportError(new S('Expected value of type "'.concat(a,'", found ').concat(Ge(t),"."),t))}}}function oi(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 ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach((function(t){si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ui(e){return ai(ai({},ci(e)),{},{Field:{leave:function(t){var n,r=e.getFieldDef();if(!r)return!1;for(var i=xe(null!==(n=t.arguments)&&void 0!==n?n:[],(function(e){return e.name.value})),o=0,a=r.args;o<a.length;o++){var s=a[o];if(!i[s.name]&&Xt(s)){var u=B(s.type);e.reportError(new S('Field "'.concat(r.name,'" argument "').concat(s.name,'" of type "').concat(u,'" is required, but it was not provided.'),t))}}}}})}function ci(e){for(var t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Yn,i=0;i<r.length;i++){var o=r[i];t[o.name]=xe(o.args.filter(Xt),(function(e){return e.name}))}for(var a=e.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];if(u.kind===j.DIRECTIVE_DEFINITION){var c,l=null!==(c=u.arguments)&&void 0!==c?c:[];t[u.name.value]=xe(l.filter(li),(function(e){return e.name.value}))}}return{Directive:{leave:function(n){var r=n.name.value,i=t[r];if(i)for(var o,a=xe(null!==(o=n.arguments)&&void 0!==o?o:[],(function(e){return e.name.value})),s=0,u=Object.keys(i);s<u.length;s++){var c=u[s];if(!a[c]){var l=i[c].type,f=nt(l)?B(l):Ge(l);e.reportError(new S('Directive "@'.concat(r,'" argument "').concat(c,'" of type "').concat(f,'" is required, but it was not provided.'),n))}}}}}}function li(e){return e.type.kind===j.NON_NULL_TYPE&&null==e.defaultValue}function fi(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var r=e.getRecursiveVariableUsages(n),i=0;i<r.length;i++){var o=r[i],a=o.node,s=o.type,u=o.defaultValue,c=a.name.value,l=t[c];if(l&&s){var f=e.getSchema(),p=gr(f,l.type);if(p&&!pi(f,p,l.defaultValue,s,u)){var d=B(p),h=B(s);e.reportError(new S('Variable "$'.concat(c,'" of type "').concat(d,'" used in position expecting type "').concat(h,'".'),[l,a]))}}}}},VariableDefinition:function(e){t[e.variable.name.value]=e}}}function pi(e,t,n,r,i){return gt(r)&&!gt(t)?(null!=n&&n.kind!==j.NULL||void 0!==i)&&an(e,t,r.ofType):an(e,t,r)}function di(e){return Array.isArray(e)?e.map((function(e){var t=e[0],n=e[1];return'subfields "'.concat(t,'" conflict because ')+di(n)})).join(" and "):e}function hi(e){var t=new Ti,n=new Map;return{SelectionSet:function(r){for(var i=function(e,t,n,r,i){var o=[],a=Ei(e,t,r,i),s=a[0],u=a[1];if(function(e,t,n,r,i){for(var o=0,a=Re(i);o<a.length;o++){var s=a[o],u=s[0],c=s[1];if(c.length>1)for(var l=0;l<c.length;l++)for(var f=l+1;f<c.length;f++){var p=gi(e,n,r,!1,u,c[l],c[f]);p&&t.push(p)}}}(e,o,t,n,s),0!==u.length)for(var c=0;c<u.length;c++){vi(e,o,t,n,!1,s,u[c]);for(var l=c+1;l<u.length;l++)mi(e,o,t,n,!1,u[c],u[l])}return o}(e,n,t,e.getParentType(),r),o=0;o<i.length;o++){var a=i[o],s=a[0],u=s[0],c=s[1],l=a[1],f=a[2],p=di(c);e.reportError(new S('Fields "'.concat(u,'" conflict because ').concat(p,". Use different aliases on the fields to fetch both if this was intentional."),l.concat(f)))}}}}function vi(e,t,n,r,i,o,a){var s=e.getFragment(a);if(s){var u=_i(e,n,s),c=u[0],l=u[1];if(o!==c){yi(e,t,n,r,i,o,c);for(var f=0;f<l.length;f++)vi(e,t,n,r,i,o,l[f])}}}function mi(e,t,n,r,i,o,a){if(o!==a&&!r.has(o,a,i)){r.add(o,a,i);var s=e.getFragment(o),u=e.getFragment(a);if(s&&u){var c=_i(e,n,s),l=c[0],f=c[1],p=_i(e,n,u),d=p[0],h=p[1];yi(e,t,n,r,i,l,d);for(var v=0;v<h.length;v++)mi(e,t,n,r,i,o,h[v]);for(var m=0;m<f.length;m++)mi(e,t,n,r,i,f[m],a)}}}function yi(e,t,n,r,i,o,a){for(var s=0,u=Object.keys(o);s<u.length;s++){var c=u[s],l=a[c];if(l)for(var f=o[c],p=0;p<f.length;p++)for(var d=0;d<l.length;d++){var h=gi(e,n,r,i,c,f[p],l[d]);h&&t.push(h)}}}function gi(e,t,n,r,i,o,a){var s,u,c=o[0],l=o[1],f=o[2],p=a[0],d=a[1],h=a[2],v=r||c!==p&&at(c)&&at(p);if(!v){var m,y,g=l.name.value,b=d.name.value;if(g!==b)return[[i,'"'.concat(g,'" and "').concat(b,'" are different fields')],[l],[d]];if(s=null!==(m=l.arguments)&&void 0!==m?m:[],u=null!==(y=d.arguments)&&void 0!==y?y:[],s.length!==u.length||!s.every((function(e){var t,n,r=Oe(u,(function(t){return t.name.value===e.name.value}));return!!r&&(t=e.value,n=r.value,Ge(t)===Ge(n))})))return[[i,"they have differing arguments"],[l],[d]]}var E=null==f?void 0:f.type,_=null==h?void 0:h.type;if(E&&_&&bi(E,_))return[[i,'they return conflicting types "'.concat(B(E),'" and "').concat(B(_),'"')],[l],[d]];var w=l.selectionSet,O=d.selectionSet;if(w&&O){var T=function(e,t,n,r,i,o,a,s){var u=[],c=Ei(e,t,i,o),l=c[0],f=c[1],p=Ei(e,t,a,s),d=p[0],h=p[1];if(yi(e,u,t,n,r,l,d),0!==h.length)for(var v=0;v<h.length;v++)vi(e,u,t,n,r,l,h[v]);if(0!==f.length)for(var m=0;m<f.length;m++)vi(e,u,t,n,r,d,f[m]);for(var y=0;y<f.length;y++)for(var g=0;g<h.length;g++)mi(e,u,t,n,r,f[y],h[g]);return u}(e,t,n,v,Ft(E),w,Ft(_),O);return function(e,t,n,r){if(e.length>0)return[[t,e.map((function(e){return e[0]}))],e.reduce((function(e,t){var n=t[1];return e.concat(n)}),[n]),e.reduce((function(e,t){var n=t[2];return e.concat(n)}),[r])]}(T,i,l,d)}}function bi(e,t){return mt(e)?!mt(t)||bi(e.ofType,t.ofType):!!mt(t)||(gt(e)?!gt(t)||bi(e.ofType,t.ofType):!!gt(t)||!(!Tt(e)&&!Tt(t))&&e!==t)}function Ei(e,t,n,r){var i=t.get(r);if(!i){var o=Object.create(null),a=Object.create(null);wi(e,n,r,o,a),i=[o,Object.keys(a)],t.set(r,i)}return i}function _i(e,t,n){var r=t.get(n.selectionSet);if(r)return r;var i=gr(e.getSchema(),n.typeCondition);return Ei(e,t,i,n.selectionSet)}function wi(e,t,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var s=a[o];switch(s.kind){case j.FIELD:var u=s.name.value,c=void 0;(at(t)||ut(t))&&(c=t.getFields()[u]);var l=s.alias?s.alias.value:u;r[l]||(r[l]=[]),r[l].push([t,s,c]);break;case j.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case j.INLINE_FRAGMENT:var f=s.typeCondition,p=f?gr(e.getSchema(),f):t;wi(e,p,s.selectionSet,r,i)}}}var Oi,Ti=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(e,t,n){var r=this._data[e],i=r&&r[t];return void 0!==i&&(!1!==n||!1===i)},t.add=function(e,t,n){this._pairSetAdd(e,t,n),this._pairSetAdd(t,e,n)},t._pairSetAdd=function(e,t,n){var r=this._data[e];r||(r=Object.create(null),this._data[e]=r),r[t]=n},e}();function Ii(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var r=t.name.value;n[r]?e.reportError(new S('There can be only one input field named "'.concat(r,'".'),[n[r],t.name])):n[r]=t.name}}}function Ni(e){var t,n,r,i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition:function(t){o?e.reportError(new S("Cannot define a new schema within a schema extension.",t)):(a>0&&e.reportError(new S("Must provide only one schema definition.",t)),++a)}}}function Si(e){var t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){for(var i,o=null!==(i=t.operationTypes)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a],u=s.operation,c=n[u];r[u]?e.reportError(new S("Type for ".concat(u," already defined in the schema. It cannot be redefined."),s)):c?e.reportError(new S("There can be only one ".concat(u," type in schema."),[c,s])):n[u]=s}return!1}}function Ai(e){var t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){var i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new S('There can be only one type named "'.concat(i,'".'),[t[i],r.name])):t[i]=r.name,!1;e.reportError(new S('Type "'.concat(i,'" already exists in the schema. It cannot also be defined in this type definition.'),r.name))}}function Ri(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i,o=t.name.value;r[o]||(r[o]=Object.create(null));for(var a=null!==(i=t.values)&&void 0!==i?i:[],s=r[o],u=0;u<a.length;u++){var c=a[u],l=c.name.value,f=n[o];pt(f)&&f.getValue(l)?e.reportError(new S('Enum value "'.concat(o,".").concat(l,'" already exists in the schema. It cannot also be defined in this type extension.'),c.name)):s[l]?e.reportError(new S('Enum value "'.concat(o,".").concat(l,'" can only be defined once.'),[s[l],c.name])):s[l]=c.name}return!1}}function xi(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i,o=t.name.value;r[o]||(r[o]=Object.create(null));for(var a=null!==(i=t.fields)&&void 0!==i?i:[],s=r[o],u=0;u<a.length;u++){var c=a[u],l=c.name.value;ji(n[o],l)?e.reportError(new S('Field "'.concat(o,".").concat(l,'" already exists in the schema. It cannot also be defined in this type extension.'),c.name)):s[l]?e.reportError(new S('Field "'.concat(o,".").concat(l,'" can only be defined once.'),[s[l],c.name])):s[l]=c.name}return!1}}function ji(e,t){return!!(at(e)||ut(e)||ht(e))&&null!=e.getFields()[t]}function Pi(e){var t=Object.create(null),n=e.getSchema();return{DirectiveDefinition:function(r){var i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new S('There can be only one directive named "@'.concat(i,'".'),[t[i],r.name])):t[i]=r.name,!1;e.reportError(new S('Directive "@'.concat(i,'" already exists in the schema. It cannot be redefined.'),r.name))}}}function Di(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Li(e){for(var t=e.getSchema(),n=Object.create(null),r=0,i=e.getDocument().definitions;r<i.length;r++){var o=i[r];Ar(o)&&(n[o.name.value]=o)}return{ScalarTypeExtension:a,ObjectTypeExtension:a,InterfaceTypeExtension:a,UnionTypeExtension:a,EnumTypeExtension:a,InputObjectTypeExtension:a};function a(r){var i,o,a=r.name.value,s=n[a],u=null==t?void 0:t.getType(a);if(s?i=Mi[s.kind]:u&&(i=it(o=u)?j.SCALAR_TYPE_EXTENSION:at(o)?j.OBJECT_TYPE_EXTENSION:ut(o)?j.INTERFACE_TYPE_EXTENSION:lt(o)?j.UNION_TYPE_EXTENSION:pt(o)?j.ENUM_TYPE_EXTENSION:ht(o)?j.INPUT_OBJECT_TYPE_EXTENSION:void P(0,"Unexpected type: "+B(o))),i){if(i!==r.kind){var c=function(e){switch(e){case j.SCALAR_TYPE_EXTENSION:return"scalar";case j.OBJECT_TYPE_EXTENSION:return"object";case j.INTERFACE_TYPE_EXTENSION:return"interface";case j.UNION_TYPE_EXTENSION:return"union";case j.ENUM_TYPE_EXTENSION:return"enum";case j.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}P(0,"Unexpected kind: "+B(e))}(r.kind);e.reportError(new S("Cannot extend non-".concat(c,' type "').concat(a,'".'),s?[s,r]:r))}}else{var l=Object.keys(n);t&&(l=l.concat(Object.keys(t.getTypeMap())));var f=Ue(a,l);e.reportError(new S('Cannot extend type "'.concat(a,'" because it is not defined.')+Me(f),r.name))}}}var Mi=(Di(Oi={},j.SCALAR_TYPE_DEFINITION,j.SCALAR_TYPE_EXTENSION),Di(Oi,j.OBJECT_TYPE_DEFINITION,j.OBJECT_TYPE_EXTENSION),Di(Oi,j.INTERFACE_TYPE_DEFINITION,j.INTERFACE_TYPE_EXTENSION),Di(Oi,j.UNION_TYPE_DEFINITION,j.UNION_TYPE_EXTENSION),Di(Oi,j.ENUM_TYPE_DEFINITION,j.ENUM_TYPE_EXTENSION),Di(Oi,j.INPUT_OBJECT_TYPE_DEFINITION,j.INPUT_OBJECT_TYPE_EXTENSION),Oi),ki=Object.freeze([jr,Pr,Dr,Lr,Mr,Cr,Vr,Fr,$r,Ur,Br,Hr,Gr,qr,Wr,zr,Yr,Xr,Jr,ei,ni,ri,ui,fi,hi,Ii]),Ci=Object.freeze([Ni,Si,Ai,Ri,xi,Pi,Mr,Xr,Jr,Li,ti,ni,Ii,ci]);function Vi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Fi=function(){function e(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}var t=e.prototype;return t.reportError=function(e){this._onError(e)},t.getDocument=function(){return this._ast},t.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce((function(e,t){return t.kind===j.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e}),Object.create(null))),t[e]},t.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var r=0,i=n.pop().selections;r<i.length;r++){var o=i[r];o.kind===j.FRAGMENT_SPREAD?t.push(o):o.selectionSet&&n.push(o.selectionSet)}this._fragmentSpreads.set(e,t)}return t},t.getRecursivelyReferencedFragments=function(e){var t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];for(var n=Object.create(null),r=[e.selectionSet];0!==r.length;)for(var i=r.pop(),o=0,a=this.getFragmentSpreads(i);o<a.length;o++){var s=a[o].name.value;if(!0!==n[s]){n[s]=!0;var u=this.getFragment(s);u&&(t.push(u),r.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t},e}(),$i=function(e){function t(t,n,r){var i;return(i=e.call(this,t,r)||this)._schema=n,i}return Vi(t,e),t.prototype.getSchema=function(){return this._schema},t}(Fi),Ui=function(e){function t(t,n,r,i){var o;return(o=e.call(this,n,i)||this)._schema=t,o._typeInfo=r,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}Vi(t,e);var n=t.prototype;return n.getSchema=function(){return this._schema},n.getVariableUsages=function(e){var t=this._variableUsages.get(e);if(!t){var n=[],r=new br(this._schema);Ee(e,_r(r,{VariableDefinition:function(){return!1},Variable:function(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t},n.getRecursiveVariableUsages=function(e){var t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(var n=0,r=this.getRecursivelyReferencedFragments(e);n<r.length;n++){var i=r[n];t=t.concat(this.getVariableUsages(i))}this._recursiveVariableUsages.set(e,t)}return t},n.getType=function(){return this._typeInfo.getType()},n.getParentType=function(){return this._typeInfo.getParentType()},n.getInputType=function(){return this._typeInfo.getInputType()},n.getParentInputType=function(){return this._typeInfo.getParentInputType()},n.getFieldDef=function(){return this._typeInfo.getFieldDef()},n.getDirective=function(){return this._typeInfo.getDirective()},n.getArgument=function(){return this._typeInfo.getArgument()},n.getEnumValue=function(){return this._typeInfo.getEnumValue()},t}(Fi);function Bi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ki,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new br(e),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{maxErrors:void 0};t||G(0,"Must provide document."),nr(e);var o=Object.freeze({}),a=[],s=new Ui(e,t,r,(function(e){if(null!=i.maxErrors&&a.length>=i.maxErrors)throw a.push(new S("Too many validation errors, error limit reached. Validation aborted.")),o;a.push(e)})),u=_e(n.map((function(e){return e(s)})));try{Ee(t,_r(r,u))}catch(e){if(e!==o)throw e}return a}function Hi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ci,r=[],i=new $i(e,t,(function(e){r.push(e)}));return Ee(e,_e(n.map((function(e){return e(i)})))),r}function Gi(e,t,n){return{prev:e,key:t,typename:n}}function qi(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}function Wi(e,t){if("query"===t.operation){var n=e.getQueryType();if(!n)throw new S("Schema does not define the required query root type.",t);return n}if("mutation"===t.operation){var r=e.getMutationType();if(!r)throw new S("Schema is not configured for mutations.",t);return r}if("subscription"===t.operation){var i=e.getSubscriptionType();if(!i)throw new S("Schema is not configured for subscriptions.",t);return i}throw new S("Can only have query, mutation and subscription operations.",t)}function zi(e){return e.map((function(e){return"number"==typeof e?"["+e.toString()+"]":"."+e})).join("")}function Yi(e,t,n){if(e){if(e.kind===j.VARIABLE){var r=e.name.value;if(null==n||void 0===n[r])return;var i=n[r];if(null===i&>(t))return;return i}if(gt(t)){if(e.kind===j.NULL)return;return Yi(e,t.ofType,n)}if(e.kind===j.NULL)return null;if(mt(t)){var o=t.ofType;if(e.kind===j.LIST){for(var a=[],s=0,u=e.values;s<u.length;s++){var c=u[s];if(Xi(c,n)){if(gt(o))return;a.push(null)}else{var l=Yi(c,o,n);if(void 0===l)return;a.push(l)}}return a}var f=Yi(e,o,n);if(void 0===f)return;return[f]}if(ht(t)){if(e.kind!==j.OBJECT)return;for(var p=Object.create(null),d=xe(e.fields,(function(e){return e.name.value})),h=0,v=Te(t.getFields());h<v.length;h++){var m=v[h],y=d[m.name];if(y&&!Xi(y.value,n)){var g=Yi(y.value,m.type,n);if(void 0===g)return;p[m.name]=g}else if(void 0!==m.defaultValue)p[m.name]=m.defaultValue;else if(gt(m.type))return}return p}if(Tt(t)){var b;try{b=t.parseLiteral(e,n)}catch(e){return}if(void 0===b)return;return b}P(0,"Unexpected input type: "+B(t))}}function Xi(e,t){return e.kind===j.VARIABLE&&(null==t||void 0===t[e.name.value])}function Ji(e,t){return Ki(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qi)}function Qi(e,t,n){var r="Invalid value "+B(t);throw e.length>0&&(r+=' at "value'.concat(zi(e),'"')),n.message=r+": "+n.message,n}function Ki(e,t,n,r){if(gt(t))return null!=e?Ki(e,t.ofType,n,r):void n(qi(r),e,new S('Expected non-nullable type "'.concat(B(t),'" not to be null.')));if(null==e)return null;if(mt(t)){var i=t.ofType,o=fn(e,(function(e,t){var o=Gi(r,t,void 0);return Ki(e,i,n,o)}));return null!=o?o:[Ki(e,i,n,r)]}if(ht(t)){if(!s(e))return void n(qi(r),e,new S('Expected type "'.concat(t.name,'" to be an object.')));for(var a={},u=t.getFields(),c=0,l=Te(u);c<l.length;c++){var f=l[c],p=e[f.name];if(void 0!==p)a[f.name]=Ki(p,f.type,n,Gi(r,f.name,t.name));else if(void 0!==f.defaultValue)a[f.name]=f.defaultValue;else if(gt(f.type)){var d=B(f.type);n(qi(r),e,new S('Field "'.concat(f.name,'" of required type "').concat(d,'" was not provided.')))}}for(var h=0,v=Object.keys(e);h<v.length;h++){var m=v[h];if(!u[m]){var y=Ue(m,Object.keys(t.getFields()));n(qi(r),e,new S('Field "'.concat(m,'" is not defined by type "').concat(t.name,'".')+Me(y)))}}return a}if(Tt(t)){var g;try{g=t.parseValue(e)}catch(i){return void n(qi(r),e,i instanceof S?i:new S('Expected type "'.concat(t.name,'". ')+i.message,void 0,void 0,void 0,void 0,i))}return void 0===g&&n(qi(r),e,new S('Expected type "'.concat(t.name,'".'))),g}P(0,"Unexpected input type: "+B(t))}function Zi(e,t,n){for(var r,i={},o=xe(null!==(r=t.arguments)&&void 0!==r?r:[],(function(e){return e.name.value})),a=0,s=e.args;a<s.length;a++){var u=s[a],c=u.name,l=u.type,f=o[c];if(f){var p=f.value,d=p.kind===j.NULL;if(p.kind===j.VARIABLE){var h=p.name.value;if(null==n||!to(n,h)){if(void 0!==u.defaultValue)i[c]=u.defaultValue;else if(gt(l))throw new S('Argument "'.concat(c,'" of required type "').concat(B(l),'" ')+'was provided the variable "$'.concat(h,'" which was not provided a runtime value.'),p);continue}d=null==n[h]}if(d&>(l))throw new S('Argument "'.concat(c,'" of non-null type "').concat(B(l),'" ')+"must not be null.",p);var v=Yi(p,l,n);if(void 0===v)throw new S('Argument "'.concat(c,'" has invalid value ').concat(Ge(p),"."),p);i[c]=v}else if(void 0!==u.defaultValue)i[c]=u.defaultValue;else if(gt(l))throw new S('Argument "'.concat(c,'" of required type "').concat(B(l),'" ')+"was not provided.",t)}return i}function eo(e,t,n){var r=t.directives&&Oe(t.directives,(function(t){return t.name.value===e.name}));if(r)return Zi(e,r,n)}function to(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function no(e,t,n,r,i,o,a,s){return io(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s})}function ro(e){var t=io(e);if(o(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function io(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,a=e.variableValues,s=e.operationName,u=e.fieldResolver,c=e.typeResolver;ao(t,n,a);var l=so(t,n,r,i,a,s,u,c);if(Array.isArray(l))return{errors:l};var f=function(e,t,n){var r=Wi(e.schema,t),i=co(e,r,t.selectionSet,Object.create(null),Object.create(null)),a=void 0;try{var s="mutation"===t.operation?function(e,t,n,r,i){return a=Object.keys(i),s=function(a,s){var u=i[s],c=Gi(r,s,t.name),l=po(e,t,n,u,c);return void 0===l?a:o(l)?l.then((function(e){return a[s]=e,a})):(a[s]=l,a)},u=Object.create(null),a.reduce((function(e,t){return o(e)?e.then((function(e){return s(e,t)})):s(e,t)}),u);var a,s,u}(e,r,n,a,i):uo(e,r,n,a,i);return o(s)?s.then(void 0,(function(t){return e.errors.push(t),Promise.resolve(null)})):s}catch(t){return e.errors.push(t),null}}(l,l.operation,r);return oo(l,f)}function oo(e,t){return o(t)?t.then((function(t){return oo(e,t)})):0===e.errors.length?{data:t}:{errors:e.errors,data:t}}function ao(e,t,n){t||G(0,"Must provide document."),nr(e),null==n||s(n)||G(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function so(e,t,n,r,i,o,a,s){for(var u,c,l,f=Object.create(null),p=0,d=t.definitions;p<d.length;p++){var h=d[p];switch(h.kind){case j.OPERATION_DEFINITION:if(null==o){if(void 0!==l)return[new S("Must provide operation name if query contains multiple operations.")];l=h}else(null===(u=h.name)||void 0===u?void 0:u.value)===o&&(l=h);break;case j.FRAGMENT_DEFINITION:f[h.name.value]=h}}if(!l)return null!=o?[new S('Unknown operation named "'.concat(o,'".'))]:[new S("Must provide an operation.")];var v=function(e,t,n,r){var i=[],o=null==r?void 0:r.maxErrors;try{var a=function(e,t,n,r){for(var i={},o=function(o){var a=t[o],s=a.variable.name.value,u=gr(e,a.type);if(!Et(u)){var c=Ge(a.type);return r(new S('Variable "$'.concat(s,'" expected value of type "').concat(c,'" which cannot be used as an input type.'),a.type)),"continue"}if(!to(n,s)){if(a.defaultValue)i[s]=Yi(a.defaultValue,u);else if(gt(u)){var l=B(u);r(new S('Variable "$'.concat(s,'" of required type "').concat(l,'" was not provided.'),a))}return"continue"}var f=n[s];if(null===f&>(u)){var p=B(u);return r(new S('Variable "$'.concat(s,'" of non-null type "').concat(p,'" must not be null.'),a)),"continue"}i[s]=Ji(f,u,(function(e,t,n){var i='Variable "$'.concat(s,'" got invalid value ')+B(t);e.length>0&&(i+=' at "'.concat(s).concat(zi(e),'"')),r(new S(i+"; "+n.message,a,void 0,void 0,void 0,n.originalError))}))},a=0;a<t.length;a++)o(a);return i}(e,t,n,(function(e){if(null!=o&&i.length>=o)throw new S("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)}));if(0===i.length)return{coerced:a}}catch(e){i.push(e)}return{errors:i}}(e,null!==(c=l.variableDefinitions)&&void 0!==c?c:[],null!=i?i:{},{maxErrors:50});return v.errors?v.errors:{schema:e,fragments:f,rootValue:n,contextValue:r,operation:l,variableValues:v.coerced,fieldResolver:null!=a?a:Io,typeResolver:null!=s?s:To,errors:[]}}function uo(e,t,n,r,i){for(var a,s,u,c=Object.create(null),l=!1,f=0,p=Object.keys(i);f<p.length;f++){var d=p[f],h=po(e,t,n,i[d],Gi(r,d,t.name));void 0!==h&&(c[d]=h,o(h)&&(l=!0))}return l?(a=c,u=(s=Object.keys(a)).map((function(e){return a[e]})),Promise.all(u).then((function(e){return e.reduce((function(e,t,n){return e[s[n]]=t,e}),Object.create(null))}))):c}function co(e,t,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var s=a[o];switch(s.kind){case j.FIELD:if(!lo(e,s))continue;var u=(f=s).alias?f.alias.value:f.name.value;r[u]||(r[u]=[]),r[u].push(s);break;case j.INLINE_FRAGMENT:if(!lo(e,s)||!fo(e,s,t))continue;co(e,t,s.selectionSet,r,i);break;case j.FRAGMENT_SPREAD:var c=s.name.value;if(i[c]||!lo(e,s))continue;i[c]=!0;var l=e.fragments[c];if(!l||!fo(e,l,t))continue;co(e,t,l.selectionSet,r,i)}}var f;return r}function lo(e,t){var n=eo(Gn,t,e.variableValues);if(!0===(null==n?void 0:n.if))return!1;var r=eo(Hn,t,e.variableValues);return!1!==(null==r?void 0:r.if)}function fo(e,t,n){var r=t.typeCondition;if(!r)return!0;var i=gr(e.schema,r);return i===n||!!At(i)&&e.schema.isSubType(i,n)}function po(e,t,n,r,i){var a,s=r[0].name.value,u=No(e.schema,t,s);if(u){var c=u.type,l=null!==(a=u.resolve)&&void 0!==a?a:e.fieldResolver,f=ho(e,u,r,t,i);try{var p,d=l(n,Zi(u,r[0],e.variableValues),e.contextValue,f);return p=o(d)?d.then((function(t){return mo(e,c,r,f,i,t)})):mo(e,c,r,f,i,d),o(p)?p.then(void 0,(function(t){return vo(Ie(t,r,qi(i)),c,e)})):p}catch(t){return vo(Ie(t,r,qi(i)),c,e)}}}function ho(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function vo(e,t,n){if(gt(t))throw e;return n.errors.push(e),null}function mo(e,t,n,r,i,a){if(a instanceof Error)throw a;if(gt(t)){var s=mo(e,t.ofType,n,r,i,a);if(null===s)throw new Error("Cannot return null for non-nullable field ".concat(r.parentType.name,".").concat(r.fieldName,"."));return s}return null==a?null:mt(t)?function(e,t,n,r,i,a){var s=t.ofType,u=!1,c=fn(a,(function(t,a){var c=Gi(i,a,void 0);try{var l;return l=o(t)?t.then((function(t){return mo(e,s,n,r,c,t)})):mo(e,s,n,r,c,t),o(l)?(u=!0,l.then(void 0,(function(t){return vo(Ie(t,n,qi(c)),s,e)}))):l}catch(t){return vo(Ie(t,n,qi(c)),s,e)}}));if(null==c)throw new S('Expected Iterable, but did not find one for field "'.concat(r.parentType.name,".").concat(r.fieldName,'".'));return u?Promise.all(c):c}(e,t,n,r,i,a):Tt(t)?function(e,t){var n=e.serialize(t);if(void 0===n)throw new Error('Expected a value of type "'.concat(B(e),'" but ')+"received: ".concat(B(t)));return n}(t,a):At(t)?function(e,t,n,r,i,a){var s,u=null!==(s=t.resolveType)&&void 0!==s?s:e.typeResolver,c=e.contextValue,l=u(a,c,r,t);return o(l)?l.then((function(o){return go(e,yo(o,e,t,n,r,a),n,r,i,a)})):go(e,yo(l,e,t,n,r,a),n,r,i,a)}(e,t,n,r,i,a):at(t)?go(e,t,n,r,i,a):void P(0,"Cannot complete value of unexpected output type: "+B(t))}function yo(e,t,n,r,i,o){if(null==e)throw new S('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'". Either the "').concat(n.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),r);var a=Ct(e)?e.name:e;if("string"!=typeof a)throw new S('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'" with ')+"value ".concat(B(o),', received "').concat(B(e),'".'));var s=t.schema.getType(a);if(null==s)throw new S('Abstract type "'.concat(n.name,'" was resolve to a type "').concat(a,'" that does not exist inside schema.'),r);if(!at(s))throw new S('Abstract type "'.concat(n.name,'" was resolve to a non-object type "').concat(a,'".'),r);if(!t.schema.isSubType(n,s))throw new S('Runtime Object type "'.concat(s.name,'" is not a possible type for "').concat(n.name,'".'),r);return s}function go(e,t,n,r,i,a){if(t.isTypeOf){var s=t.isTypeOf(a,e.contextValue,r);if(o(s))return s.then((function(r){if(!r)throw bo(t,a,n);return Eo(e,t,n,i,a)}));if(!s)throw bo(t,a,n)}return Eo(e,t,n,i,a)}function bo(e,t,n){return new S('Expected value of type "'.concat(e.name,'" but got: ').concat(B(t),"."),n)}function Eo(e,t,n,r,i){return uo(e,t,i,r,Oo(e,t,n))}var _o,wo,Oo=(_o=function(e,t,n){for(var r=Object.create(null),i=Object.create(null),o=0;o<n.length;o++){var a=n[o];a.selectionSet&&(r=co(e,t,a.selectionSet,r,i))}return r},function(e,t,n){wo||(wo=new WeakMap);var r,i=wo.get(e);if(i){if(r=i.get(t)){var o=r.get(n);if(void 0!==o)return o}}else i=new WeakMap,wo.set(e,i);r||(r=new WeakMap,i.set(t,r));var a=_o(e,t,n);return r.set(n,a),a}),To=function(e,t,n,r){if(s(e)&&"string"==typeof e.__typename)return e.__typename;for(var i=n.schema.getPossibleTypes(r),a=[],u=0;u<i.length;u++){var c=i[u];if(c.isTypeOf){var l=c.isTypeOf(e,t,n);if(o(l))a[u]=l;else if(l)return c.name}}return a.length?Promise.all(a).then((function(e){for(var t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0},Io=function(e,t,n,r){if(s(e)||"function"==typeof e){var i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function No(e,t,n){return n===Ln.name&&e.getQueryType()===t?Ln:n===Mn.name&&e.getQueryType()===t?Mn:n===kn.name?kn:t.getFields()[n]}function So(e,t,n,r,i,o,a,s){var u=arguments;return new Promise((function(c){return c(Ro(1===u.length?e:{schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s}))}))}function Ao(e,t,n,r,i,a,s,u){var c=Ro(1===arguments.length?e:{schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:a,fieldResolver:s,typeResolver:u});if(o(c))throw new Error("GraphQL execution failed to complete synchronously.");return c}function Ro(e){var t,n=e.schema,r=e.source,i=e.rootValue,o=e.contextValue,a=e.variableValues,s=e.operationName,u=e.fieldResolver,c=e.typeResolver,l=tr(n);if(l.length>0)return{errors:l};try{t=pe(r)}catch(e){return{errors:[e]}}var f=Bi(n,t);return f.length>0?{errors:f}:no({schema:n,document:t,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:u,typeResolver:c})}function xo(e){return"function"==typeof(null==e?void 0:e[c])}function jo(e,t){return new Promise((function(n){return n(t(e))}))}function Po(e){return{value:e,done:!1}}function Do(e,t,n,r,i,o,a,s){return function(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,o=e.variableValues,a=e.operationName,s=e.fieldResolver,u=e.subscribeFieldResolver,l=Mo(t,n,r,i,o,a,u),f=function(e){return no({schema:t,document:n,rootValue:e,contextValue:i,variableValues:o,operationName:a,fieldResolver:s})};return l.then((function(e){return xo(e)?function(e,t,n){var r,i,o,a=e[c].call(e);function s(e){return e.done?e:jo(e.value,t).then(Po,i)}if("function"==typeof a.return&&(r=a.return,i=function(e){var t=function(){return Promise.reject(e)};return r.call(a).then(t,t)}),n){var u=n;o=function(e){return jo(e,u).then(Po,i)}}return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({next:function(){return a.next().then(s,o)},return:function(){return r?r.call(a).then(s,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof a.throw?a.throw(e).then(s,o):Promise.reject(e).catch(i)}},c,(function(){return this}))}(e,f,Lo):e}))}(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,subscribeFieldResolver:s})}function Lo(e){if(e instanceof S)return{errors:[e]};throw e}function Mo(e,t,n,r,i,o,a){return ao(e,t,i),new Promise((function(s){var u=so(e,t,n,r,i,o,a);s(Array.isArray(u)?{errors:u}:function(e){var t=e.schema,n=e.operation,r=e.variableValues,i=e.rootValue,o=Wi(t,n),a=co(e,o,n.selectionSet,Object.create(null),Object.create(null)),s=Object.keys(a)[0],u=a[s],c=u[0].name.value,l=No(t,o,c);if(!l)throw new S('The subscription field "'.concat(c,'" is not defined.'),u);var f=Gi(void 0,s,o.name),p=ho(e,l,u,o,f);return new Promise((function(t){var n,o=Zi(l,u[0],r),a=e.contextValue;t((null!==(n=l.subscribe)&&void 0!==n?n:e.fieldResolver)(i,o,a,p))})).then((function(e){if(e instanceof Error)throw Ie(e,u,qi(f));if(!xo(e))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat(B(e),"."));return e}),(function(e){throw Ie(e,u,qi(f))}))}(u))})).catch(Lo)}function ko(e){return{Field:function(t){var n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=e.getParentType();null!=i||P(0),e.reportError(new S("The field ".concat(i.name,".").concat(n.name," is deprecated. ").concat(r),t))}},Argument:function(t){var n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=e.getDirective();if(null!=i)e.reportError(new S('Directive "@'.concat(i.name,'" argument "').concat(n.name,'" is deprecated. ').concat(r),t));else{var o=e.getParentType(),a=e.getFieldDef();null!=o&&null!=a||P(0),e.reportError(new S('Field "'.concat(o.name,".").concat(a.name,'" argument "').concat(n.name,'" is deprecated. ').concat(r),t))}}},ObjectField:function(t){var n=Ft(e.getParentInputType());if(ht(n)){var r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new S("The input field ".concat(n.name,".").concat(r.name," is deprecated. ").concat(i),t))}},EnumValue:function(t){var n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){var i=Ft(e.getInputType());null!=i||P(0),e.reportError(new S('The enum value "'.concat(i.name,".").concat(n.name,'" is deprecated. ').concat(r),t))}}}}function Co(e){return{Field:function(t){var n=Ft(e.getType());n&&Vn(n)&&e.reportError(new S('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(t.name.value,'".'),t))}}}function Vo(e){var t;e||G(0,"Received null or undefined error.");var n=null!==(t=e.message)&&void 0!==t?t:"An unknown error occurred.",r=e.locations,i=e.path,o=e.extensions;return o&&Object.keys(o).length>0?{message:n,locations:r,path:i,extensions:o}:{message:n,locations:r,path:i}}function Fo(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 $o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uo(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fo(Object(n),!0).forEach((function(t){$o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByUrl":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}return"\n query IntrospectionQuery {\n __schema {\n ".concat(o,"\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ").concat(n,"\n ").concat(i,"\n locations\n args").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(n,"\n ").concat(r,"\n fields(includeDeprecated: true) {\n name\n ").concat(n,"\n args").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(n,"\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(n,"\n type { ...TypeRef }\n defaultValue\n ").concat(a("isDeprecated"),"\n ").concat(a("deprecationReason"),"\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}function Bo(e,t){for(var n=null,r=0,i=e.definitions;r<i.length;r++){var o,a=i[r];if(a.kind===j.OPERATION_DEFINITION)if(null==t){if(n)return null;n=a}else if((null===(o=a.name)||void 0===o?void 0:o.value)===t)return a}return n}function Ho(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 Go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qo(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ho(Object(n),!0).forEach((function(t){Go(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),r=ro({schema:e,document:pe(Uo(n))});return!r.errors&&r.data||P(0),r.data}function Wo(e,t){s(e)&&s(e.__schema)||G(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat(B(e),"."));for(var n=e.__schema,r=De(n.types,(function(e){return e.name}),(function(e){return function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case Pn.SCALAR:return new Bt({name:(r=e).name,description:r.description,specifiedByUrl:r.specifiedByUrl});case Pn.OBJECT:return new Ht({name:(n=e).name,description:n.description,interfaces:function(){return m(n)},fields:function(){return y(n)}});case Pn.INTERFACE:return new Jt({name:(t=e).name,description:t.description,interfaces:function(){return m(t)},fields:function(){return y(t)}});case Pn.UNION:return function(e){if(!e.possibleTypes){var t=B(e);throw new Error("Introspection result missing possibleTypes: ".concat(t,"."))}return new Qt({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(h)}})}(e);case Pn.ENUM:return function(e){if(!e.enumValues){var t=B(e);throw new Error("Introspection result missing enumValues: ".concat(t,"."))}return new Zt({name:e.name,description:e.description,values:De(e.enumValues,(function(e){return e.name}),(function(e){return{description:e.description,deprecationReason:e.deprecationReason}}))})}(e);case Pn.INPUT_OBJECT:return function(e){if(!e.inputFields){var t=B(e);throw new Error("Introspection result missing inputFields: ".concat(t,"."))}return new tn({name:e.name,description:e.description,fields:function(){return b(e.inputFields)}})}(e)}var t,n,r,i=B(e);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(i,"."))}(e)})),i=0,o=[].concat(_n,Cn);i<o.length;i++){var a=o[i];r[a.name]&&(r[a.name]=a)}var u=n.queryType?h(n.queryType):null,c=n.mutationType?h(n.mutationType):null,l=n.subscriptionType?h(n.subscriptionType):null,f=n.directives?n.directives.map((function(e){if(!e.args){var t=B(e);throw new Error("Introspection result missing directive args: ".concat(t,"."))}if(!e.locations){var n=B(e);throw new Error("Introspection result missing directive locations: ".concat(n,"."))}return new Bn({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:b(e.args)})})):[];return new Zn({description:n.description,query:u,mutation:c,subscription:l,types:Te(r),directives:f,assumeValid:null==t?void 0:t.assumeValid});function p(e){if(e.kind===Pn.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new xt(p(t))}if(e.kind===Pn.NON_NULL){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");return new jt(Mt(p(n)))}return d(e)}function d(e){var t=e.name;if(!t)throw new Error("Unknown type reference: ".concat(B(e),"."));var n=r[t];if(!n)throw new Error("Invalid or incomplete schema, unknown type: ".concat(t,". Ensure that a full introspection query is used in order to build a client schema."));return n}function h(e){return st(d(e))}function v(e){return ct(d(e))}function m(e){if(null===e.interfaces&&e.kind===Pn.INTERFACE)return[];if(!e.interfaces){var t=B(e);throw new Error("Introspection result missing interfaces: ".concat(t,"."))}return e.interfaces.map(v)}function y(e){if(!e.fields)throw new Error("Introspection result missing fields: ".concat(B(e),"."));return De(e.fields,(function(e){return e.name}),g)}function g(e){var t=p(e.type);if(!wt(t)){var n=B(t);throw new Error("Introspection must provide output type for fields, but received: ".concat(n,"."))}if(!e.args){var r=B(e);throw new Error("Introspection result missing field args: ".concat(r,"."))}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:b(e.args)}}function b(e){return De(e,(function(e){return e.name}),E)}function E(e){var t=p(e.type);if(!Et(t)){var n=B(t);throw new Error("Introspection must provide input type for arguments, but received: ".concat(n,"."))}var r=null!=e.defaultValue?Yi(de(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}}function zo(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 Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach((function(t){Xo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jo(e,t,n){Kn(e),null!=t&&t.kind===j.DOCUMENT||G(0,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e,t){var n=Hi(e,t);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))}(t,e);var r=e.toConfig(),i=Qo(r,t,n);return r===i?e:new Zn(i)}function Qo(e,t,n){for(var r,i,o,a,s,u=[],c=Object.create(null),l=[],f=[],p=0,d=t.definitions;p<d.length;p++){var h=d[p];if(h.kind===j.SCHEMA_DEFINITION)s=h;else if(h.kind===j.SCHEMA_EXTENSION)f.push(h);else if(Ar(h))u.push(h);else if(xr(h)){var v=h.name.value,m=c[v];c[v]=m?m.concat([h]):[h]}else h.kind===j.DIRECTIVE_DEFINITION&&l.push(h)}if(0===Object.keys(c).length&&0===u.length&&0===l.length&&0===f.length&&null==s)return e;for(var y=Object.create(null),g=0,b=e.types;g<b.length;g++){var E=b[g];y[E.name]=Vn(_=E)||wn(_)?_:it(_)?function(e){for(var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[],i=n.specifiedByUrl,o=0;o<r.length;o++){var a;i=null!==(a=ea(r[o]))&&void 0!==a?a:i}return new Bt(Yo(Yo({},n),{},{specifiedByUrl:i,extensionASTNodes:n.extensionASTNodes.concat(r)}))}(_):at(_)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Ht(Yo(Yo({},n),{},{interfaces:function(){return[].concat(e.getInterfaces().map(A),$(r))},fields:function(){return Yo(Yo({},je(n.fields,R)),k(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(_):ut(_)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Jt(Yo(Yo({},n),{},{interfaces:function(){return[].concat(e.getInterfaces().map(A),$(r))},fields:function(){return Yo(Yo({},je(n.fields,R)),k(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(_):lt(_)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Qt(Yo(Yo({},n),{},{types:function(){return[].concat(e.getTypes().map(A),U(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(_):pt(_)?function(e){var t,n=e.toConfig(),r=null!==(t=c[e.name])&&void 0!==t?t:[];return new Zt(Yo(Yo({},n),{},{values:Yo(Yo({},n.values),F(r)),extensionASTNodes:n.extensionASTNodes.concat(r)}))}(_):ht(_)?function(e){var t,n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new tn(Yo(Yo({},n),{},{fields:function(){return Yo(Yo({},je(n.fields,(function(e){return Yo(Yo({},e),{},{type:S(e.type)})}))),V(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(_):void P(0,"Unexpected type: "+B(_))}for(var _,w=0;w<u.length;w++){var O,T=u[w],I=T.name.value;y[I]=null!==(O=Ko[I])&&void 0!==O?O:H(T)}var N=Yo(Yo({query:e.query&&A(e.query),mutation:e.mutation&&A(e.mutation),subscription:e.subscription&&A(e.subscription)},s&&D([s])),D(f));return Yo(Yo({description:null===(r=s)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value},N),{},{types:Te(y),directives:[].concat(e.directives.map((function(e){var t=e.toConfig();return new Bn(Yo(Yo({},t),{},{args:je(t.args,x)}))})),l.map((function(e){var t=e.locations.map((function(e){return e.value}));return new Bn({name:e.name.value,description:ta(e,n),locations:t,isRepeatable:e.repeatable,args:C(e.arguments),astNode:e})}))),extensions:void 0,astNode:null!==(o=s)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!==(a=null==n?void 0:n.assumeValid)&&void 0!==a&&a});function S(e){return mt(e)?new xt(S(e.ofType)):gt(e)?new jt(S(e.ofType)):A(e)}function A(e){return y[e.name]}function R(e){return Yo(Yo({},e),{},{type:S(e.type),args:je(e.args,x)})}function x(e){return Yo(Yo({},e),{},{type:S(e.type)})}function D(e){for(var t={},n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].operationTypes)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t[a.operation]=L(a.type)}return t}function L(e){var t,n=e.name.value,r=null!==(t=Ko[n])&&void 0!==t?t:y[n];if(void 0===r)throw new Error('Unknown type: "'.concat(n,'".'));return r}function M(e){return e.kind===j.LIST_TYPE?new xt(M(e.type)):e.kind===j.NON_NULL_TYPE?new jt(M(e.type)):L(e)}function k(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].fields)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a];t[s.name.value]={type:M(s.type),description:ta(s,n),args:C(s.arguments),deprecationReason:Zo(s),astNode:s}}return t}function C(e){for(var t=null!=e?e:[],r=Object.create(null),i=0;i<t.length;i++){var o=t[i],a=M(o.type);r[o.name.value]={type:a,description:ta(o,n),defaultValue:Yi(o.defaultValue,a),deprecationReason:Zo(o),astNode:o}}return r}function V(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].fields)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a],u=M(s.type);t[s.name.value]={type:u,description:ta(s,n),defaultValue:Yi(s.defaultValue,u),deprecationReason:Zo(s),astNode:s}}return t}function F(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].values)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a];t[s.name.value]={description:ta(s,n),deprecationReason:Zo(s),astNode:s}}return t}function $(e){for(var t=[],n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].interfaces)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t.push(L(a))}return t}function U(e){for(var t=[],n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].types)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t.push(L(a))}return t}function H(e){var t,r=e.name.value,i=ta(e,n),o=null!==(t=c[r])&&void 0!==t?t:[];switch(e.kind){case j.OBJECT_TYPE_DEFINITION:var a=o,s=[e].concat(a);return new Ht({name:r,description:i,interfaces:function(){return $(s)},fields:function(){return k(s)},astNode:e,extensionASTNodes:a});case j.INTERFACE_TYPE_DEFINITION:var u=o,l=[e].concat(u);return new Jt({name:r,description:i,interfaces:function(){return $(l)},fields:function(){return k(l)},astNode:e,extensionASTNodes:u});case j.ENUM_TYPE_DEFINITION:var f=o,p=[e].concat(f);return new Zt({name:r,description:i,values:F(p),astNode:e,extensionASTNodes:f});case j.UNION_TYPE_DEFINITION:var d=o,h=[e].concat(d);return new Qt({name:r,description:i,types:function(){return U(h)},astNode:e,extensionASTNodes:d});case j.SCALAR_TYPE_DEFINITION:var v=o;return new Bt({name:r,description:i,specifiedByUrl:ea(e),astNode:e,extensionASTNodes:v});case j.INPUT_OBJECT_TYPE_DEFINITION:var m=o,y=[e].concat(m);return new tn({name:r,description:i,fields:function(){return V(y)},astNode:e,extensionASTNodes:m})}P(0,"Unexpected type definition node: "+B(e))}}var Ko=xe(_n.concat(Cn),(function(e){return e.name}));function Zo(e){var t=eo(Wn,e);return null==t?void 0:t.reason}function ea(e){var t=eo(zn,e);return null==t?void 0:t.url}function ta(e,t){if(e.description)return e.description.value;if(!0===(null==t?void 0:t.commentDescriptions)){var n=function(e){var t=e.loc;if(t){for(var n=[],r=t.startToken.prev;null!=r&&r.kind===V.COMMENT&&r.next&&r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){var i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join("\n"):void 0}}(e);if(void 0!==n)return J("\n"+n)}}function na(e,t){null!=e&&e.kind===j.DOCUMENT||G(0,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){var t=Hi(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}(e);var n=Qo({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(var r=0,i=n.types;r<i.length;r++){var o=i[r];switch(o.name){case"Query":n.query=o;break;case"Mutation":n.mutation=o;break;case"Subscription":n.subscription=o}}for(var a=n.directives,s=function(e){var t=Yn[e];a.every((function(e){return e.name!==t.name}))&&a.push(t)},u=0;u<Yn.length;u++)s(u);return new Zn(n)}function ra(e,t){return na(pe(e,{noLocation:null==t?void 0:t.noLocation,allowLegacySDLEmptyFields:null==t?void 0:t.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null==t?void 0:t.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null==t?void 0:t.experimentalFragmentVariables}),{commentDescriptions:null==t?void 0:t.commentDescriptions,assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function ia(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 oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(n),!0).forEach((function(t){aa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sa(e){var t=e.toConfig(),n=De(ca(t.types),(function(e){return e.name}),(function(e){if(it(e)||Vn(e))return e;if(at(e)){var t=e.toConfig();return new Ht(oa(oa({},t),{},{interfaces:function(){return u(t.interfaces)},fields:function(){return s(t.fields)}}))}if(ut(e)){var n=e.toConfig();return new Jt(oa(oa({},n),{},{interfaces:function(){return u(n.interfaces)},fields:function(){return s(n.fields)}}))}if(lt(e)){var i=e.toConfig();return new Qt(oa(oa({},i),{},{types:function(){return u(i.types)}}))}if(pt(e)){var o=e.toConfig();return new Zt(oa(oa({},o),{},{values:ua(o.values)}))}if(ht(e)){var a=e.toConfig();return new tn(oa(oa({},a),{},{fields:function(){return ua(a.fields,(function(e){return oa(oa({},e),{},{type:r(e.type)})}))}}))}P(0,"Unexpected type: "+B(e))}));return new Zn(oa(oa({},t),{},{types:Te(n),directives:ca(t.directives).map((function(e){var t=e.toConfig();return new Bn(oa(oa({},t),{},{locations:la(t.locations,(function(e){return e})),args:a(t.args)}))})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function r(e){return mt(e)?new xt(r(e.ofType)):gt(e)?new jt(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function a(e){return ua(e,(function(e){return oa(oa({},e),{},{type:r(e.type)})}))}function s(e){return ua(e,(function(e){return oa(oa({},e),{},{type:r(e.type),args:a(e.args)})}))}function u(e){return ca(e).map(i)}}function ua(e,t){for(var n=Object.create(null),r=la(Object.keys(e),(function(e){return e})),i=0;i<r.length;i++){var o=r[i],a=e[o];n[o]=t?t(a):a}return n}function ca(e){return la(e,(function(e){return e.name}))}function la(e,t){return e.slice().sort((function(e,n){return Ce(t(e),t(n))}))}function fa(e,t){return ha(e,(function(e){return!Xn(e)}),da,t)}function pa(e,t){return ha(e,Xn,Vn,t)}function da(e){return!wn(e)&&!Vn(e)}function ha(e,t,n,r){var i=e.getDirectives().filter(t),o=Te(e.getTypeMap()).filter(n);return[va(e)].concat(i.map((function(e){return function(e,t){return Oa(t,e)+"directive @"+e.name+Ea(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e,r)})),o.map((function(e){return ma(e,r)}))).filter(Boolean).join("\n\n")+"\n"}function va(e){if(null!=e.description||!function(e){var t=e.getQueryType();if(t&&"Query"!==t.name)return!1;var n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;var r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e)){var t=[],n=e.getQueryType();n&&t.push(" query: ".concat(n.name));var r=e.getMutationType();r&&t.push(" mutation: ".concat(r.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),Oa({},e)+"schema {\n".concat(t.join("\n"),"\n}")}}function ma(e,t){return it(e)?function(e,t){return Oa(t,e)+"scalar ".concat(e.name)+function(e){if(null==e.specifiedByUrl)return"";var t=On(e.specifiedByUrl,gn);return t||P(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+Ge(t)+")"}(e)}(e,t):at(e)?function(e,t){return Oa(t,e)+"type ".concat(e.name)+ya(e)+ga(t,e)}(e,t):ut(e)?function(e,t){return Oa(t,e)+"interface ".concat(e.name)+ya(e)+ga(t,e)}(e,t):lt(e)?function(e,t){var n=e.getTypes(),r=n.length?" = "+n.join(" | "):"";return Oa(t,e)+"union "+e.name+r}(e,t):pt(e)?function(e,t){var n=e.getValues().map((function(e,n){return Oa(t,e," ",!n)+" "+e.name+wa(e.deprecationReason)}));return Oa(t,e)+"enum ".concat(e.name)+ba(n)}(e,t):ht(e)?function(e,t){var n=Te(e.getFields()).map((function(e,n){return Oa(t,e," ",!n)+" "+_a(e)}));return Oa(t,e)+"input ".concat(e.name)+ba(n)}(e,t):void P(0,"Unexpected type: "+B(e))}function ya(e){var t=e.getInterfaces();return t.length?" implements "+t.map((function(e){return e.name})).join(" & "):""}function ga(e,t){return ba(Te(t.getFields()).map((function(t,n){return Oa(e,t," ",!n)+" "+t.name+Ea(e,t.args," ")+": "+String(t.type)+wa(t.deprecationReason)})))}function ba(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function Ea(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every((function(e){return!e.description}))?"("+t.map(_a).join(", ")+")":"(\n"+t.map((function(t,r){return Oa(e,t," "+n,!r)+" "+n+_a(t)})).join("\n")+"\n"+n+")"}function _a(e){var t=On(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=" = ".concat(Ge(t))),n+wa(e.deprecationReason)}function wa(e){if(null==e)return"";var t=On(e,gn);return t&&e!==qn?" @deprecated(reason: "+Ge(t)+")":" @deprecated"}function Oa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=t.description;return null==i?"":!0===(null==e?void 0:e.commentDescriptions)?function(e,t,n){return(t&&!n?"\n":"")+e.split("\n").map((function(e){return t+(""!==e?"# "+e:"#")})).join("\n")+"\n"}(i,n,r):(n&&!r?"\n"+n:n)+Z(i,"",i.length>70).replace(/\n/g,"\n"+n)+"\n"}function Ta(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t=t.concat(r.definitions)}return{kind:"Document",definitions:t}}function Ia(e){for(var t=[],n=Object.create(null),r=0,i=e.definitions;r<i.length;r++){var o=i[r];switch(o.kind){case j.OPERATION_DEFINITION:t.push(o);break;case j.FRAGMENT_DEFINITION:n[o.name.value]=Sa(o.selectionSet)}}for(var a=Object.create(null),s=function(r){for(var i=t[r],o=new Set,s=0,u=Sa(i.selectionSet);s<u.length;s++){var c=u[s];Na(o,n,c)}var l=i.name?i.name.value:"";a[l]={kind:j.DOCUMENT,definitions:e.definitions.filter((function(e){return e===i||e.kind===j.FRAGMENT_DEFINITION&&o.has(e.name.value)}))}},u=0;u<t.length;u++)s(u);return a}function Na(e,t,n){if(!e.has(n)){e.add(n);var r=t[n];if(void 0!==r)for(var i=0;i<r.length;i++)Na(e,t,r[i])}}function Sa(e){var t=[];return Ee(e,{FragmentSpread:function(e){t.push(e.name.value)}}),t}function Aa(e){for(var t=Y(e)?e:new z(e),n=t.body,r=new ee(t),i="",o=!1;r.advance().kind!==V.EOF;){var a=r.token,s=a.kind,u=!te(a.kind);o&&(u||a.kind===V.SPREAD)&&(i+=" ");var c=n.slice(a.start,a.end);s===V.BLOCK_STRING?i+=Ra(c):i+=c,o=u}return i}function Ra(e){var t=J(e.slice(3,-3));K(t)>0&&(t="\n"+t);var n=t[t.length-1];return('"'===n&&'\\"""'!==t.slice(-4)||"\\"===n)&&(t+="\n"),'"""'+t+'"""'}function xa(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 ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach((function(t){Pa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Da=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),La=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function Ma(e,t){return Ca(e,t).filter((function(e){return e.type in Da}))}function ka(e,t){return Ca(e,t).filter((function(e){return e.type in La}))}function Ca(e,t){return[].concat(function(e,t){for(var n=[],r=Ya(Te(e.getTypeMap()),Te(t.getTypeMap())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:Da.TYPE_REMOVED,description:wn(a)?"Standard scalar ".concat(a.name," was removed because it is not referenced anymore."):"".concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){var c=u[s],l=c[0],f=c[1];pt(l)&&pt(f)?n.push.apply(n,$a(l,f)):lt(l)&<(f)?n.push.apply(n,Fa(l,f)):ht(l)&&ht(f)?n.push.apply(n,Va(l,f)):at(l)&&at(f)||ut(l)&&ut(f)?n.push.apply(n,Ba(l,f).concat(Ua(l,f))):l.constructor!==f.constructor&&n.push({type:Da.TYPE_CHANGED_KIND,description:"".concat(l.name," changed from ")+"".concat(Wa(l)," to ").concat(Wa(f),".")})}return n}(e,t),function(e,t){for(var n=[],r=Ya(e.getDirectives(),t.getDirectives()),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:Da.DIRECTIVE_REMOVED,description:"".concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){for(var c=u[s],l=c[0],f=c[1],p=Ya(l.args,f.args),d=0,h=p.added;d<h.length;d++){var v=h[d];Xt(v)&&n.push({type:Da.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(v.name," on directive ").concat(l.name," was added.")})}for(var m=0,y=p.removed;m<y.length;m++){var g=y[m];n.push({type:Da.DIRECTIVE_ARG_REMOVED,description:"".concat(g.name," was removed from ").concat(l.name,".")})}l.isRepeatable&&!f.isRepeatable&&n.push({type:Da.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(l.name,".")});for(var b=0,E=l.locations;b<E.length;b++){var _=E[b];-1===f.locations.indexOf(_)&&n.push({type:Da.DIRECTIVE_LOCATION_REMOVED,description:"".concat(_," was removed from ").concat(l.name,".")})}}return n}(e,t))}function Va(e,t){for(var n=[],r=Ya(Te(e.getFields()),Te(t.getFields())),i=0,o=r.added;i<o.length;i++){var a=o[i];rn(a)?n.push({type:Da.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(a.name," on input type ").concat(e.name," was added.")}):n.push({type:La.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(a.name," on input type ").concat(e.name," was added.")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Da.FIELD_REMOVED,description:"".concat(e.name,".").concat(c.name," was removed.")})}for(var l=0,f=r.persisted;l<f.length;l++){var p=f[l],d=p[0],h=p[1];qa(d.type,h.type)||n.push({type:Da.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(d.name," changed type from ")+"".concat(String(d.type)," to ").concat(String(h.type),".")})}return n}function Fa(e,t){for(var n=[],r=Ya(e.getTypes(),t.getTypes()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:La.TYPE_ADDED_TO_UNION,description:"".concat(a.name," was added to union type ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Da.TYPE_REMOVED_FROM_UNION,description:"".concat(c.name," was removed from union type ").concat(e.name,".")})}return n}function $a(e,t){for(var n=[],r=Ya(e.getValues(),t.getValues()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:La.VALUE_ADDED_TO_ENUM,description:"".concat(a.name," was added to enum type ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Da.VALUE_REMOVED_FROM_ENUM,description:"".concat(c.name," was removed from enum type ").concat(e.name,".")})}return n}function Ua(e,t){for(var n=[],r=Ya(e.getInterfaces(),t.getInterfaces()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:La.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(a.name," added to interfaces implemented by ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var c=u[s];n.push({type:Da.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(e.name," no longer implements interface ").concat(c.name,".")})}return n}function Ba(e,t){for(var n=[],r=Ya(Te(e.getFields()),Te(t.getFields())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:Da.FIELD_REMOVED,description:"".concat(e.name,".").concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){var c=u[s],l=c[0],f=c[1];n.push.apply(n,Ha(e,l,f)),Ga(l.type,f.type)||n.push({type:Da.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(l.name," changed type from ")+"".concat(String(l.type)," to ").concat(String(f.type),".")})}return n}function Ha(e,t,n){for(var r=[],i=Ya(t.args,n.args),o=0,a=i.removed;o<a.length;o++){var s=a[o];r.push({type:Da.ARG_REMOVED,description:"".concat(e.name,".").concat(t.name," arg ").concat(s.name," was removed.")})}for(var u=0,c=i.persisted;u<c.length;u++){var l=c[u],f=l[0],p=l[1];if(qa(f.type,p.type)){if(void 0!==f.defaultValue)if(void 0===p.defaultValue)r.push({type:La.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," defaultValue was removed.")});else{var d=za(f.defaultValue,f.type),h=za(p.defaultValue,p.type);d!==h&&r.push({type:La.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," has changed defaultValue from ").concat(d," to ").concat(h,".")})}}else r.push({type:Da.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," has changed type from ")+"".concat(String(f.type)," to ").concat(String(p.type),".")})}for(var v=0,m=i.added;v<m.length;v++){var y=m[v];Xt(y)?r.push({type:Da.REQUIRED_ARG_ADDED,description:"A required arg ".concat(y.name," on ").concat(e.name,".").concat(t.name," was added.")}):r.push({type:La.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(y.name," on ").concat(e.name,".").concat(t.name," was added.")})}return r}function Ga(e,t){return mt(e)?mt(t)&&Ga(e.ofType,t.ofType)||gt(t)&&Ga(e,t.ofType):gt(e)?gt(t)&&Ga(e.ofType,t.ofType):Ct(t)&&e.name===t.name||gt(t)&&Ga(e,t.ofType)}function qa(e,t){return mt(e)?mt(t)&&qa(e.ofType,t.ofType):gt(e)?gt(t)&&qa(e.ofType,t.ofType)||!gt(t)&&qa(e.ofType,t):Ct(t)&&e.name===t.name}function Wa(e){return it(e)?"a Scalar type":at(e)?"an Object type":ut(e)?"an Interface type":lt(e)?"a Union type":pt(e)?"an Enum type":ht(e)?"an Input type":void P(0,"Unexpected type: "+B(e))}function za(e,t){var n=On(e,t);return null!=n||P(0),Ge(Ee(n,{ObjectValue:function(e){var t=[].concat(e.fields);return t.sort((function(e,t){return Ce(e.name.value,t.name.value)})),ja(ja({},e),{},{fields:t})}}))}function Ya(e,t){for(var n=[],r=[],i=[],o=xe(e,(function(e){return e.name})),a=xe(t,(function(e){return e.name})),s=0;s<e.length;s++){var u=e[s],c=a[u.name];void 0===c?r.push(u):i.push([u,c])}for(var l=0;l<t.length;l++){var f=t[l];void 0===o[f.name]&&n.push(f)}return{added:n,persisted:i,removed:r}}function Xa(e,t){return Bi(e,t,[ko])}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};(()=>{"use strict";n.r(r),n.d(r,{run:()=>c});var e=n(2337),t=n(3389),i=n(2021),o=n(3453),a=n(6525),s=n(7075),u=n(7463);n(755),n(5995),n(6195),n(9283),n(3893),n(497);const c=(n,r=[])=>{const c="undefined"!=typeof window,l={...n,...c?window.harmonyAppConfig:void 0};t.default.id="teambit.preview/preview",i.default.id="teambit.docs/docs",o.default.id="teambit.compositions/compositions",a.default.id="teambit.harmony/pubsub",s.default.id="teambit.react/react",u.default.id="teambit.explorer/command-bar",c&&function(...n){e.Harmony.load([...r,t.default,i.default,o.default,a.default,s.default,u.default],"preview",l).then((e=>e.run().then((()=>e.get("teambit.preview/preview"))).then((e=>{const t=!c&&e.setupSsr,n=e.setup,r=(t||n||function(){}).bind(e);return Promise.resolve(r()).then((()=>e))})).then((e=>c?e.render("teambit.workspace/workspace",...n):e.renderSsr("teambit.workspace/workspace",...n))).catch((e=>{throw e}))))}()}})(),exports.run=r.run,Object.defineProperty(exports,"__esModule",{value:!0})})();
|