1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[171],{2:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStylesheetUrl=void 0,t.getDesignLibraryStylesheetLinks=function(e,r,n=i.SITECORE_EDGE_URL_DEFAULT){let o=new Set;return e.sitecore.route?(a(e.sitecore.route,o),[...o].map(e=>({href:(0,t.getStylesheetUrl)(e,r,n),rel:"stylesheet"}))):[]};let n=r(9235),i=r(9822),o=/-library--([^\s]+)/;t.getStylesheetUrl=(e,t,r=i.SITECORE_EDGE_URL_DEFAULT)=>`${r}/v1/files/components/styles/${e}.css?sitecoreContextId=${t}`;let a=(e,t)=>{var r,i,s,l,u,c,d;let p;"params"in e&&e.params&&(p=(null==(i=null==(r=e.params.CSSStyles)?void 0:r.match(o))?void 0:i[1])||(null==(l=null==(s=e.params.Styles)?void 0:s.match(o))?void 0:l[1])||e.params.LibraryId||void 0),!p&&"fields"in e&&e.fields&&(p=(null==(u=(0,n.getFieldValue)(e.fields,"CSSStyles","").match(o))?void 0:u[1])||(null==(c=(0,n.getFieldValue)(e.fields,"Styles","").match(o))?void 0:c[1])||(0,n.getFieldValue)(e.fields,"LibraryId","")||void 0),!p&&"attributes"in e&&"string"==typeof e.attributes.class&&(p=null==(d=e.attributes.class.match(o))?void 0:d[1]),p&&t.add(p);let f=e.placeholders||{};Object.keys(f).forEach(e=>{var r;r=f[e],r.map(e=>a(e,t))})}},41:(e,t,r)=>{"use strict";r.d(t,{s:()=>a,t:()=>o});var n=r(5729);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let r=!1,n=e.map(e=>{let n=i(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():i(e[t],null)}}}}function a(...e){return n.useCallback(o(...e),e)}},104:(e,t,r)=>{"use strict";r.d(t,{B8:()=>A,UC:()=>R,bL:()=>I,l9:()=>_});var n=r(5729),i=r(5269),o=r(9829),a=r(4132),s=r(8749),l=r(7454),u=r(1979),c=r(6697),d=r(7913),p=r(6029),f="Tabs",[h,m]=(0,o.A)(f,[a.RG]),g=(0,a.RG)(),[y,v]=h(f),b=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:s,activationMode:h="automatic",...m}=e,g=(0,u.jH)(s),[v,b]=(0,c.i)({prop:n,onChange:i,defaultProp:o??"",caller:f});return(0,p.jsx)(y,{scope:r,baseId:(0,d.B)(),value:v,onValueChange:b,orientation:a,dir:g,activationMode:h,children:(0,p.jsx)(l.sG.div,{dir:g,"data-orientation":a,...m,ref:t})})});b.displayName=f;var E="TabsList",w=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...i}=e,o=v(E,r),s=g(r);return(0,p.jsx)(a.bL,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:n,children:(0,p.jsx)(l.sG.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});w.displayName=E;var T="TabsTrigger",x=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:o=!1,...s}=e,u=v(T,r),c=g(r),d=C(u.baseId,n),f=S(u.baseId,n),h=n===u.value;return(0,p.jsx)(a.q7,{asChild:!0,...c,focusable:!o,active:h,children:(0,p.jsx)(l.sG.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":f,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...s,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(n)}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(n)}),onFocus:(0,i.mK)(e.onFocus,()=>{let e="manual"!==u.activationMode;h||o||!e||u.onValueChange(n)})})})});x.displayName=T;var O="TabsContent",N=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:i,forceMount:o,children:a,...u}=e,c=v(O,r),d=C(c.baseId,i),f=S(c.baseId,i),h=i===c.value,m=n.useRef(h);return n.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,p.jsx)(s.C,{present:o||h,children:({present:r})=>(0,p.jsx)(l.sG.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:f,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&a})})});function C(e,t){return`${e}-trigger-${t}`}function S(e,t){return`${e}-content-${t}`}N.displayName=O;var I=b,A=w,_=x,R=N},184:(e,t,r)=>{"use strict";r.d(t,{Eq:()=>u});var n=new WeakMap,i=new WeakMap,o={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,r,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=s(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});o[r]||(o[r]=new WeakMap);var c=o[r],d=[],p=new Set,f=new Set(u),h=function(e){!e||p.has(e)||(p.add(e),h(e.parentNode))};u.forEach(h);var m=function(e){!e||f.has(e)||Array.prototype.forEach.call(e.children,function(e){if(p.has(e))m(e);else try{var t=e.getAttribute(l),o=null!==t&&"false"!==t,a=(n.get(e)||0)+1,s=(c.get(e)||0)+1;n.set(e,a),c.set(e,s),d.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(r,"true"),o||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),p.clear(),a++,function(){d.forEach(function(e){var t=n.get(e)-1,o=c.get(e)-1;n.set(e,t),c.set(e,o),t||(i.has(e)||e.removeAttribute(l),i.delete(e)),o||e.removeAttribute(r)}),--a||(n=new WeakMap,n=new WeakMap,i=new WeakMap,o={})}},u=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),l(n,i,r,"aria-hidden")):function(){return null}}},212:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n})},394:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.tryParseEnvValue=void 0,t.tryParseEnvValue=(e,t)=>{if(!e)return t;if(e.startsWith("{")&&e.endsWith("}"))try{return JSON.parse(e)}catch(t){console.warn("Parsing of env variable failed"),console.warn(`Attempted to parse ${e}`)}return t}},529:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),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 r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);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;let a=r(7186),s=r(3808),l=r(7143),u=r(6115),c=r(8224);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return c.ClientError}});let d=o(r(3160)),p=e=>{let t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||d&&d.Headers&&e instanceof d.Headers?t=(0,s.HeadersInstanceToPlainObject)(e):Array.isArray(e)?e.forEach(([e,r])=>{e&&void 0!==r&&(t[e]=r)}):t=e),t},f=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim();class h{constructor(e,t={}){this.url=e,this.requestConfig=t,this.rawRequest=async(...e)=>{let[t,r,n]=e,i=(0,l.parseRawRequestArgs)(t,r,n),{headers:o,fetch:a=d.default,method:s="POST",requestMiddleware:c,responseMiddleware:f,...h}=this.requestConfig,{url:g}=this;void 0!==i.signal&&(h.signal=i.signal);let{operationName:y}=(0,u.resolveRequestDocument)(i.query);return m({url:g,query:i.query,variables:i.variables,headers:{...p(E(o)),...p(i.requestHeaders)},operationName:y,fetch:a,method:s,fetchOptions:h,middleware:c}).then(e=>(f&&f(e),e)).catch(e=>{throw f&&f(e),e})}}async request(e,...t){let[r,n]=t,i=(0,l.parseRequestArgs)(e,r,n),{headers:o,fetch:a=d.default,method:s="POST",requestMiddleware:c,responseMiddleware:f,...h}=this.requestConfig,{url:g}=this;void 0!==i.signal&&(h.signal=i.signal);let{query:y,operationName:v}=(0,u.resolveRequestDocument)(i.document);return m({url:g,query:y,variables:i.variables,headers:{...p(E(o)),...p(i.requestHeaders)},operationName:v,fetch:a,method:s,fetchOptions:h,middleware:c}).then(e=>(f&&f(e),e.data)).catch(e=>{throw f&&f(e),e})}batchRequests(e,t){let r=(0,l.parseBatchRequestArgs)(e,t),{headers:n,...i}=this.requestConfig;void 0!==r.signal&&(i.signal=r.signal);let o=r.documents.map(({document:e})=>(0,u.resolveRequestDocument)(e).query),a=r.documents.map(({variables:e})=>e);return m({url:this.url,query:o,variables:a,headers:{...p(E(n)),...p(r.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??d.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){let{headers:r}=this.requestConfig;return r?r[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}t.GraphQLClient=h;let m=async e=>{let t,{query:r,variables:n,fetchOptions:i}=e,o=(t=(0,s.uppercase)(e.method??"post"),async e=>{let r,{url:n,query:i,variables:o,operationName:s,fetch:l,fetchOptions:u,middleware:c}=e,d={...e.headers},p="";"POST"===t?"string"==typeof(r=v(i,o,s,u.jsonSerializer))&&(d["Content-Type"]="application/json"):p=(e=>{if(!Array.isArray(e.query)){let t=[`query=${encodeURIComponent(f(e.query))}`];return e.variables&&t.push(`variables=${encodeURIComponent(e.jsonSerializer.stringify(e.variables))}`),e.operationName&&t.push(`operationName=${encodeURIComponent(e.operationName)}`),t.join("&")}if(void 0!==e.variables&&!Array.isArray(e.variables))throw Error("Cannot create query with given variable type, array expected");let t=e.query.reduce((t,r,n)=>(t.push({query:f(r),variables:e.variables?e.jsonSerializer.stringify(e.variables[n]):void 0}),t),[]);return`query=${encodeURIComponent(e.jsonSerializer.stringify(t))}`})({query:i,variables:o,operationName:s,jsonSerializer:u.jsonSerializer??a.defaultJsonSerializer});let h={method:t,headers:d,body:r,...u},m=n,g=h;if(c){let{url:e,...t}=await Promise.resolve(c({...h,url:n,operationName:s,variables:o}));m=e,g=t}return p&&(m=`${m}?${p}`),await l(m,g)}),l=Array.isArray(e.query),u=await o(e),d=await b(u,i.jsonSerializer??a.defaultJsonSerializer),p=Array.isArray(d)?!d.some(({data:e})=>!e):!!d.data,h=Array.isArray(d)||!d.errors||Array.isArray(d.errors)&&!d.errors.length||"all"===i.errorPolicy||"ignore"===i.errorPolicy;if(u.ok&&h&&p){let{errors:e,...t}=(Array.isArray(d),d),r="ignore"===i.errorPolicy?t:d;return{...l?{data:r}:r,headers:u.headers,status:u.status}}{let e="string"==typeof d?{error:d}:d;throw new c.ClientError({...e,status:u.status,headers:u.headers},{query:r,variables:n})}};async function g(e,t,...r){let n=(0,l.parseRequestExtendedArgs)(e,t,...r);return new h(n.url).request({...n})}t.rawRequest=async(...e)=>{let[t,r,...n]=e,i=(0,l.parseRawRequestExtendedArgs)(t,r,...n);return new h(i.url).rawRequest({...i})},t.request=g,t.batchRequests=async(...e)=>{let t=y(e);return new h(t.url).batchRequests(t)};let y=e=>1===e.length?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0},v=(e,t,r,n)=>{let i=n??a.defaultJsonSerializer;if(!Array.isArray(e))return i.stringify({query:e,variables:t,operationName:r});if(void 0!==t&&!Array.isArray(t))throw Error("Cannot create request body with given variable type, array expected");let o=e.reduce((e,r,n)=>(e.push({query:r,variables:t?t[n]:void 0}),e),[]);return i.stringify(o)},b=async(e,t)=>{let r;
1return(e.headers.forEach((e,t)=>{"content-type"===t.toLowerCase()&&(r=e)}),r&&(r.toLowerCase().startsWith("application/json")||r.toLowerCase().startsWith("application/graphql+json")||r.toLowerCase().startsWith("application/graphql-response+json")))?t.parse(await e.text()):e.text()},E=e=>"function"==typeof e?e():e;t.gql=(e,...t)=>e.reduce((e,r,n)=>`${e}${r}${n in t?String(t[n]):""}`,"");var w=r(3221);Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return w.GraphQLWebSocketClient}});var T=r(6115);Object.defineProperty(t,"resolveRequestDocument",{enumerable:!0,get:function(){return T.resolveRequestDocument}}),t.default=g},609:(e,t,r)=>{"use strict";let n;r.d(t,{Mz:()=>eQ,i3:()=>eJ,UC:()=>eY,bL:()=>eW,Bk:()=>eD});var i=r(5729);let o=["top","right","bottom","left"],a=Math.min,s=Math.max,l=Math.round,u=Math.floor,c=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"};function p(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function y(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function v(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let b=["left","right"],E=["right","left"],w=["top","bottom"],T=["bottom","top"];function x(e){let t=f(e);return d[t]+e.slice(t.length)}function O(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function N(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function C(e,t,r){let n,{reference:i,floating:o}=e,a=y(t),s=m(y(t)),l=g(s),u=f(t),c="y"===a,d=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2,v=i[l]/2-o[l]/2;switch(u){case"top":n={x:d,y:i.y-o.height};break;case"bottom":n={x:d,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:p};break;case"left":n={x:i.x-o.width,y:p};break;default:n={x:i.x,y:i.y}}switch(h(t)){case"start":n[s]-=v*(r&&c?-1:1);break;case"end":n[s]+=v*(r&&c?-1:1)}return n}async function S(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=p(t,e),m=O(h),g=s[f?"floating"===d?"reference":"floating":d],y=N(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(g)))||r?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),E=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},w=N(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(y.top-w.top+m.top)/E.y,bottom:(w.bottom-y.bottom+m.bottom)/E.y,left:(y.left-w.left+m.left)/E.x,right:(w.right-y.right+m.right)/E.x}}let I=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:S},l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=C(u,n,l),p=n,f=0,h={};for(let r=0;r<o.length;r++){let m=o[r];if(!m)continue;let{name:g,fn:y}=m,{x:v,y:b,data:E,reset:w}=await y({x:c,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=b?b:d,h[g]={...h[g],...E},w&&f<50&&(f++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:d}=C(u,p,l)),r=-1)}return{x:c,y:d,placement:p,strategy:i,middlewareData:h}};function A(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _(e){return o.some(t=>e[t]>=0)}let R=new Set(["left","top"]);async function D(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=f(r),s=h(r),l="y"===y(r),u=R.has(a)?-1:1,c=o&&l?-1:1,d=p(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}
1:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof v&&(g="end"===s?-1*v:v),l?{x:g*c,y:m*u}:{x:m*u,y:g*c}}function k(){return"undefined"!=typeof window}function j(e){return F(e)?(e.nodeName||"").toLowerCase():"#document"}function L(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function P(e){var t;return null==(t=(F(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function F(e){return!!k()&&(e instanceof Node||e instanceof L(e).Node)}function M(e){return!!k()&&(e instanceof Element||e instanceof L(e).Element)}function $(e){return!!k()&&(e instanceof HTMLElement||e instanceof L(e).HTMLElement)}function U(e){return!!k()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof L(e).ShadowRoot)}function V(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==i&&"contents"!==i}function B(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let G=/transform|translate|scale|rotate|perspective|filter/,q=/paint|layout|strict|content/,z=e=>!!e&&"none"!==e;function H(e){let t=M(e)?Q(e):e;return z(t.transform)||z(t.translate)||z(t.scale)||z(t.rotate)||z(t.perspective)||!K()&&(z(t.backdropFilter)||z(t.filter))||G.test(t.willChange||"")||q.test(t.contain||"")}function K(){return null==n&&(n="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n}function W(e){return/^(html|body|#document)$/.test(j(e))}function Q(e){return L(e).getComputedStyle(e)}function Y(e){return M(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function J(e){if("html"===j(e))return e;let t=e.assignedSlot||e.parentNode||U(e)&&e.host||P(e);return U(t)?t.host:t}function X(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=J(t);return W(r)?t.ownerDocument?t.ownerDocument.body:t.body:$(r)&&V(r)?r:e(r)}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=L(i);if(!o)return t.concat(i,X(i,[],r));{let e=Z(a);return t.concat(a,a.visualViewport||[],V(i)?i:[],e&&r?X(e):[])}}function Z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=Q(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=$(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=l(r)!==o||l(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function et(e){return M(e)?e:e.contextElement}function er(e){let t=et(e);if(!$(t))return c(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=ee(t),a=(o?l(r.width):r.width)/n,s=(o?l(r.height):r.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let en=c(0);function ei(e){let t=L(e);return K()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:en}function eo(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),a=et(e),s=c(1);t&&(n?M(n)&&(s=er(n)):s=er(e));let l=(void 0===(i=r)&&(i=!1),n&&(!i||n===L(a))&&i)?ei(a):c(0),u=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,p=o.width/s.x,f=o.height/s.y;if(a){let e=L(a),t=n&&M(n)?L(n):n,r=e,i=Z(r);for(;i&&n&&t!==r;){let e=er(i),t=i.getBoundingClientRect(),n=Q(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,d*=e.y,p*=e.x,f*=e.y,u+=o,d+=a,i=Z(r=L(i))}}return N({width:p,height:f,x:u,y:d})}function ea(e,t){let r=Y(e).scrollLeft;return t?t.left+r:eo(P(e)).left+r}function es(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ea(e,r),y:r.top+t.scrollTop}}function el(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=L(e),n=P(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=K();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}let u=ea(n);if(u<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else u<=25&&(o+=u);return{width:o,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){let t=P(e),r=Y(e),n=e.ownerDocument.body,i=s(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=s(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),a=-r.scrollLeft+ea(e),l=-r.scrollTop;return"rtl"===Q(n).direction&&(a+=s(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:l}}(P(e));else if(M(t))n=function(e,t){let r=eo(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=$(e)?er(e):c(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y;return{width:a,height:s,x:i*o.x,y:n*o.y}}(t,r);else{let r=ei(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return N(n)}function eu(e){return"static"===Q(e).position}function ec(e,t){if(!$(e)||"fixed"===Q(e).position)return null;if(t)return t(e);let r=e.offsetParent;return P(e)===r&&(r=r.ownerDocument.body),r}function ed(e,t){var r;let n=L(e);if(B(e))return n;if(!$(e)){let t=J(e);for(;t&&!W(t);){if(M(t)&&!eu(t))return t;t=J(t)}return n}let i=ec(e,t);for(;i&&(r=i,/^(table|td|th)$/.test(j(r)))&&eu(i);)i=ec(i,t);
1return i&&W(i)&&eu(i)&&!H(i)?n:i||function(e){let t=J(e);for(;$(t)&&!W(t);){if(H(t))return t;if(B(t))break;t=J(t)}return null}(e)||n}let ep=async function(e){let t=this.getOffsetParent||ed,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=$(t),i=P(t),o="fixed"===r,a=eo(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=c(0);if(n||!n&&!o)if(("body"!==j(t)||V(i))&&(s=Y(t)),n){let e=eo(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ea(i));o&&!n&&i&&(l.x=ea(i));let u=!i||n||o?c(0):es(i,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},ef={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,a=P(n),s=!!t&&B(t.floating);if(n===a||s&&o)return r;let l={scrollLeft:0,scrollTop:0},u=c(1),d=c(0),p=$(n);if((p||!p&&!o)&&(("body"!==j(n)||V(a))&&(l=Y(n)),p)){let e=eo(n);u=er(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}let f=!a||p||o?c(0):es(a,l);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:r.y*u.y-l.scrollTop*u.y+d.y+f.y}},getDocumentElement:P,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?B(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=X(e,[],!1).filter(e=>M(e)&&"body"!==j(e)),i=null,o="fixed"===Q(e).position,a=o?J(e):e;for(;M(a)&&!W(a);){let t=Q(a),r=H(a);r||"fixed"!==t.position||(i=null),(o?r||i:!(!r&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||V(a)&&!r&&function e(t,r){let n=J(t);return!(n===r||!M(n)||W(n))&&("fixed"===Q(n).position||e(n,r))}(e,a)))?i=t:n=n.filter(e=>e!==a),a=J(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=el(t,o[0],i),u=l.top,c=l.right,d=l.bottom,p=l.left;for(let e=1;e<o.length;e++){let r=el(t,o[e],i);u=s(r.top,u),c=a(r.right,c),d=a(r.bottom,d),p=s(r.left,p)}return{width:c-p,height:d-u,x:p,y:u}},getOffsetParent:ed,getElementRects:ep,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ee(e);return{width:t,height:r}},getScale:er,isElement:M,isRTL:function(e){return"rtl"===Q(e).direction}};function eh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let em=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:l,elements:u,middlewareData:c}=t,{element:d,padding:f=0}=p(e,t)||{};if(null==d)return{};let v=O(f),b={x:r,y:n},E=m(y(i)),w=g(E),T=await l.getDimensions(d),x="y"===E,N=x?"clientHeight":"clientWidth",C=o.reference[w]+o.reference[E]-b[E]-o.floating[w],S=b[E]-o.reference[E],I=await (null==l.getOffsetParent?void 0:l.getOffsetParent(d)),A=I?I[N]:0;A&&await (null==l.isElement?void 0:l.isElement(I))||(A=u.floating[N]||o.floating[w]);let _=A/2-T[w]/2-1,R=a(v[x?"top":"left"],_),D=a(v[x?"bottom":"right"],_),k=A-T[w]-D,j=A/2-T[w]/2+(C/2-S/2),L=s(R,a(j,k)),P=!c.arrow&&null!=h(i)&&j!==L&&o.reference[w]/2-(j<R?R:D)-T[w]/2<0,F=P?j<R?j-R:j-k:0;return{[E]:b[E]+F,data:{[E]:L,centerOffset:j-L-F,...P&&{alignmentOffset:F}},reset:P}}});var eg=r(6760),ey="undefined"!=typeof document?i.useLayoutEffect:function(){};function ev(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!ev(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!ev(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eb(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eE(e,t){let r=eb(e);return Math.round(t*r)/r}function ew(e){let t=i.useRef(e);return ey(()=>{t.current=e}),t}var eT=r(7454),ex=r(6029),eO=i.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,ex.jsx)(eT.sG.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,ex.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eO.displayName="Arrow";var eN=r(41),eC=r(9829),eS=r(9613),eI=r(5896),eA=r(4347),e_="Popper",[eR,eD]=(0,eC.A)(e_),[ek,ej]=eR(e_),eL=e=>{let{__scopePopper:t,children:r}=e,[n,o]=i.useState(null);return(0,ex.jsx)(ek,{scope:t,anchor:n,onAnchorChange:o,children:r})};eL.displayName=e_;var eP="PopperAnchor",eF=i.forwardRef((e,t)=>
1{let{__scopePopper:r,virtualRef:n,...o}=e,a=ej(eP,r),s=i.useRef(null),l=(0,eN.s)(t,s),u=i.useRef(null);return i.useEffect(()=>{let e=u.current;u.current=n?.current||s.current,e!==u.current&&a.onAnchorChange(u.current)}),n?null:(0,ex.jsx)(eT.sG.div,{...o,ref:l})});eF.displayName=eP;var eM="PopperContent",[e$,eU]=eR(eM),eV=i.forwardRef((e,t)=>{let{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:l="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:O=!0,collisionBoundary:N=[],collisionPadding:C=0,sticky:S="partial",hideWhenDetached:k=!1,updatePositionStrategy:j="optimized",onPlaced:L,...F}=e,M=ej(eM,r),[$,U]=i.useState(null),V=(0,eN.s)(t,e=>U(e)),[B,G]=i.useState(null),q=(0,eA.X)(B),z=q?.width??0,H=q?.height??0,K="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},W=Array.isArray(N)?N:[N],Q=W.length>0,Y={padding:K,boundary:W.filter(ez),altBoundary:Q},{refs:J,floatingStyles:Z,placement:ee,isPositioned:er,middlewareData:en}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,p]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=i.useState(n);ev(f,n)||h(n);let[m,g]=i.useState(null),[y,v]=i.useState(null),b=i.useCallback(e=>{e!==x.current&&(x.current=e,g(e))},[]),E=i.useCallback(e=>{e!==O.current&&(O.current=e,v(e))},[]),w=a||m,T=s||y,x=i.useRef(null),O=i.useRef(null),N=i.useRef(d),C=null!=u,S=ew(u),A=ew(o),_=ew(c),R=i.useCallback(()=>{if(!x.current||!O.current)return;let e={placement:t,strategy:r,middleware:f};A.current&&(e.platform=A.current),((e,t,r)=>{let n=new Map,i={platform:ef,...r},o={...i.platform,_c:n};return I(e,t,{...i,platform:o})})(x.current,O.current,e).then(e=>{let t={...e,isPositioned:!1!==_.current};D.current&&!ev(N.current,t)&&(N.current=t,eg.flushSync(()=>{p(t)}))})},[f,t,r,A,_]);ey(()=>{!1===c&&N.current.isPositioned&&(N.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[c]);let D=i.useRef(!1);ey(()=>(D.current=!0,()=>{D.current=!1}),[]),ey(()=>{if(w&&(x.current=w),T&&(O.current=T),w&&T){if(S.current)return S.current(w,T,R);R()}},[w,T,R,S,C]);let k=i.useMemo(()=>({reference:x,floating:O,setReference:b,setFloating:E}),[b,E]),j=i.useMemo(()=>({reference:w,floating:T}),[w,T]),L=i.useMemo(()=>{let e={position:r,left:0,top:0};if(!j.floating)return e;let t=eE(j.floating,d.x),n=eE(j.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...eb(j.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,j.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:R,refs:k,elements:j,floatingStyles:L}),[d,R,k,j,L])}({strategy:"fixed",placement:n+("center"!==l?"-"+l:""),whileElementsMounted:(...e)=>(function(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:p=!1}=n,f=et(e),h=o||l?[...f?X(f):[],...t?X(t):[]]:[];h.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),l&&e.addEventListener("resize",r)});let m=f&&d?function(e,t){let r,n=null,i=P(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function l(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),o();let p=e.getBoundingClientRect(),{left:f,top:h,width:m,height:g}=p;if(c||t(),!m||!g)return;let y=u(h),v=u(i.clientWidth-(f+m)),b={rootMargin:-y+"px "+-v+"px "+-u(i.clientHeight-(h+g))+"px "+-u(f)+"px",threshold:s(0,a(1,d))||1},E=!0;function w(t){let n=t[0].intersectionRatio;if(n!==d){if(!E)return l();n?l(!1,n):r=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==n||eh(p,e.getBoundingClientRect())||l(),E=!1}try{n=new IntersectionObserver(w,{...b,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(w,b)}n.observe(e)}(!0),o}(f,r):null,g=-1,y=null;c&&(y=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&y&&t&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),r()}),f&&!p&&y.observe(f),t&&y.observe(t));let v=p?eo(e):null;return p&&function t(){let n=eo(e);v&&!eh(v,n)&&r(),v=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;
1h.forEach(e=>{o&&e.removeEventListener("scroll",r),l&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,p&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===j}),elements:{reference:M.anchor},middleware:[((e,t)=>{let r=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:a,middlewareData:s}=t,l=await D(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}}(e);return{name:r.name,fn:r.fn,options:[e,t]}})({mainAxis:o+H,alignmentAxis:c}),O&&((e,t)=>{let r=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:o}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...d}=p(e,t),h={x:r,y:n},g=await o.detectOverflow(t,d),v=y(f(i)),b=m(v),E=h[b],w=h[v];if(l){let e="y"===b?"top":"left",t="y"===b?"bottom":"right",r=E+g[e],n=E-g[t];E=s(r,a(E,n))}if(u){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",r=w+g[e],n=w-g[t];w=s(r,a(w,n))}let T=c.fn({...t,[b]:E,[v]:w});return{...T,data:{x:T.x-r,y:T.y-n,enabled:{[b]:l,[v]:u}}}}}}(e);return{name:r.name,fn:r.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?((e,t)=>({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=p(e,t),c={x:r,y:n},d=y(i),h=m(d),g=c[h],v=c[d],b=p(s,t),E="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+E.mainAxis,r=o.reference[h]+o.reference[e]-E.mainAxis;g<t?g=t:g>r&&(g=r)}if(u){var w,T;let e="y"===h?"width":"height",t=R.has(f(i)),r=o.reference[d]-o.floating[e]+(t&&(null==(w=a.offset)?void 0:w[d])||0)+(t?0:E.crossAxis),n=o.reference[d]+o.reference[e]+(t?0:(null==(T=a.offset)?void 0:T[d])||0)-(t?E.crossAxis:0);v<r?v=r:v>n&&(v=n)}return{[h]:g,[d]:v}}}}(e).fn,options:[e,t]}))():void 0,...Y}),O&&((e,t)=>{let r=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,i,o,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:O}=t,{mainAxis:N=!0,crossAxis:C=!0,fallbackPlacements:S,fallbackStrategy:I="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:_=!0,...R}=p(e,t);if(null!=(r=l.arrow)&&r.alignmentOffset)return{};let D=f(s),k=y(c),j=f(c)===c,L=await (null==d.isRTL?void 0:d.isRTL(O.floating)),P=S||(j||!_?[x(c)]:function(e){let t=x(e);return[v(e),t,v(t)]}(c)),F="none"!==A;!S&&F&&P.push(...function(e,t,r,n){let i=h(e),o=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?E:b;return t?b:E;case"left":case"right":return t?w:T;default:return[]}}(f(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(v)))),o}(c,_,A,L));let M=[c,...P],$=await d.detectOverflow(t,R),U=[],V=(null==(n=l.flip)?void 0:n.overflows)||[];if(N&&U.push($[D]),C){let e=function(e,t,r){void 0===r&&(r=!1);let n=h(e),i=m(y(e)),o=g(i),a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=x(a)),[a,x(a)]}(s,u,L);U.push($[e[0]],$[e[1]])}if(V=[...V,{placement:s,overflows:U}],!U.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=M[e];if(t&&("alignment"!==C||k===y(t)||V.every(e=>y(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:V},reset:{placement:t}};let r=null==(o=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(I){case"bestFit":{let e=null==(a=V.filter(e=>{if(F){let t=y(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=c}if(s!==r)return{reset:{placement:r}}}return{}}}}(e);return{name:r.name,fn:r.fn,options:[e,t]}})({...Y}),((e,t)=>{let r=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;let i,o,{placement:l,rects:u,platform:c,elements:d}=t,{apply:m=()=>{},...g}=p(e,t),v=await c.detectOverflow(t,g),b=f(l),E=h(l),w="y"===y(l),{width:T,height:x}=u.floating;"top"===b||"bottom"===b?(i=b,o=E===(await (null==c.isRTL?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(o=b,i="end"===E?"top":"bottom");let O=x-v.top-v.bottom,N=T-v.left-v.right,C=a(x-v[i],O),S=a(T-v[o],N),I=!t.middlewareData.shift,A=C,_=S;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(_=N),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(A=O),I&&!E){let e=s(v.left,0),t=s(v.right,0),r=s(v.top,0),n=s(v.bottom,0);w?_=T-2*(0!==e||0!==t?e+t:s(v.left,v.right)):A=x-2*(0!==r||0!==n?r+n:s(v.top,v.bottom))}await m({...t,availableWidth:_,availableHeight:A});let R=await c.getDimensions(d.floating);return T!==R.width||x!==R.height?{reset:{rects:!0}}:{}}}}(e);return{name:r.name,fn:r.fn,options:[e,t]}})({...Y,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}}),B&&((e,t)=>{let r=(e=>({name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?em({element:r.current,padding:n}).fn(t):{}:r?em({element:r,padding:n}).fn(t):{}}}))(e);return{name:r.name,fn:r.fn,options:[e,t]}})({element:B,padding:d}),eH({arrowWidth:z,arrowHeight:H}
1),k&&((e,t)=>{let r=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r,platform:n}=t,{strategy:i="referenceHidden",...o}=p(e,t);switch(i){case"referenceHidden":{let e=A(await n.detectOverflow(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_(e)}}}case"escaped":{let e=A(await n.detectOverflow(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:_(e)}}}default:return{}}}}}(e);return{name:r.name,fn:r.fn,options:[e,t]}})({strategy:"referenceHidden",...Y})]}),[ei,ea]=eK(ee),es=(0,eS.c)(L);(0,eI.N)(()=>{er&&es?.()},[er,es]);let el=en.arrow?.x,eu=en.arrow?.y,ec=en.arrow?.centerOffset!==0,[ed,ep]=i.useState();return(0,eI.N)(()=>{$&&ep(window.getComputedStyle($).zIndex)},[$]),(0,ex.jsx)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:er?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ed,"--radix-popper-transform-origin":[en.transformOrigin?.x,en.transformOrigin?.y].join(" "),...en.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ex.jsx)(e$,{scope:r,placedSide:ei,onArrowChange:G,arrowX:el,arrowY:eu,shouldHideArrow:ec,children:(0,ex.jsx)(eT.sG.div,{"data-side":ei,"data-align":ea,...F,ref:V,style:{...F.style,animation:er?void 0:"none"}})})})});eV.displayName=eM;var eB="PopperArrow",eG={top:"bottom",right:"left",bottom:"top",left:"right"},eq=i.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=eU(eB,r),o=eG[i.placedSide];return(0,ex.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ex.jsx)(eO,{...n,ref:t,style:{...n.style,display:"block"}})})});function ez(e){return null!==e}eq.displayName=eB;var eH=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,a=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[l,u]=eK(r),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+a/2,p=(i.arrow?.y??0)+s/2,f="",h="";return"bottom"===l?(f=o?c:`${d}px`,h=`${-s}px`):"top"===l?(f=o?c:`${d}px`,h=`${n.floating.height+s}px`):"right"===l?(f=`${-s}px`,h=o?c:`${p}px`):"left"===l&&(f=`${n.floating.width+s}px`,h=o?c:`${p}px`),{data:{x:f,y:h}}}});function eK(e){let[t,r="center"]=e.split("-");return[t,r]}var eW=eL,eQ=eF,eY=eV,eJ=eq},670:(e,t,r)=>{"use strict";r.d(t,{UC:()=>ea,Y9:()=>ei,q7:()=>en,bL:()=>er,l9:()=>eo});var n=r(5729),i=r(9829),o=r(2139),a=r(41),s=r(5269),l=r(6697),u=r(7454),c=r(5896),d=r(8749),p=r(7913),f=r(6029),h="Collapsible",[m,g]=(0,i.A)(h),[y,v]=m(h),b=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:i,defaultOpen:o,disabled:a,onOpenChange:s,...c}=e,[d,m]=(0,l.i)({prop:i,defaultProp:o??!1,onChange:s,caller:h});return(0,f.jsx)(y,{scope:r,disabled:a,contentId:(0,p.B)(),open:d,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),children:(0,f.jsx)(u.sG.div,{"data-state":N(d),"data-disabled":a?"":void 0,...c,ref:t})})});b.displayName=h;var E="CollapsibleTrigger",w=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,i=v(E,r);return(0,f.jsx)(u.sG.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":N(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:(0,s.mK)(e.onClick,i.onOpenToggle)})});w.displayName=E;var T="CollapsibleContent",x=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=v(T,e.__scopeCollapsible);return(0,f.jsx)(d.C,{present:r||i.open,children:({present:e})=>(0,f.jsx)(O,{...n,ref:t,present:e})})});x.displayName=T;var O=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:i,children:o,...s}=e,l=v(T,r),[d,p]=n.useState(i),h=n.useRef(null),m=(0,a.s)(t,h),g=n.useRef(0),y=g.current,b=n.useRef(0),E=b.current,w=l.open||d,x=n.useRef(w),O=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.N)(()=>{let e=h.current;if(e){O.current=O.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,b.current=t.width,x.current||(e.style.transitionDuration=O.current.transitionDuration,e.style.animationName=O.current.animationName),p(i)}},[l.open,i]),(0,f.jsx)(u.sG.div,{"data-state":N(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!w,...s,ref:m,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style},children:w&&o})});function N(e){return e?"open":"closed"}var C=r(1979),S="Accordion",I=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[A,_,R]=(0,o.N)(S),[D,k]=(0,i.A)(S,[R,g]),j=g(),L=n.forwardRef((e,t)=>
1{let{type:r,...n}=e;return(0,f.jsx)(A.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,f.jsx)(V,{...n,ref:t}):(0,f.jsx)(U,{...n,ref:t})})});L.displayName=S;var[P,F]=D(S),[M,$]=D(S,{collapsible:!1}),U=n.forwardRef((e,t)=>{let{value:r,defaultValue:i,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[u,c]=(0,l.i)({prop:r,defaultProp:i??"",onChange:o,caller:S});return(0,f.jsx)(P,{scope:e.__scopeAccordion,value:n.useMemo(()=>u?[u]:[],[u]),onItemOpen:c,onItemClose:n.useCallback(()=>a&&c(""),[a,c]),children:(0,f.jsx)(M,{scope:e.__scopeAccordion,collapsible:a,children:(0,f.jsx)(q,{...s,ref:t})})})}),V=n.forwardRef((e,t)=>{let{value:r,defaultValue:i,onValueChange:o=()=>{},...a}=e,[s,u]=(0,l.i)({prop:r,defaultProp:i??[],onChange:o,caller:S}),c=n.useCallback(e=>u((t=[])=>[...t,e]),[u]),d=n.useCallback(e=>u((t=[])=>t.filter(t=>t!==e)),[u]);return(0,f.jsx)(P,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:d,children:(0,f.jsx)(M,{scope:e.__scopeAccordion,collapsible:!0,children:(0,f.jsx)(q,{...a,ref:t})})})}),[B,G]=D(S),q=n.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:i,dir:o,orientation:l="vertical",...c}=e,d=n.useRef(null),p=(0,a.s)(d,t),h=_(r),m="ltr"===(0,C.jH)(o),g=(0,s.mK)(e.onKeyDown,e=>{if(!I.includes(e.key))return;let t=e.target,r=h().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),i=r.length;if(-1===n)return;e.preventDefault();let o=n,a=i-1,s=()=>{(o=n+1)>a&&(o=0)},u=()=>{(o=n-1)<0&&(o=a)};switch(e.key){case"Home":o=0;break;case"End":o=a;break;case"ArrowRight":"horizontal"===l&&(m?s():u());break;case"ArrowDown":"vertical"===l&&s();break;case"ArrowLeft":"horizontal"===l&&(m?u():s());break;case"ArrowUp":"vertical"===l&&u()}let c=o%i;r[c].ref.current?.focus()});return(0,f.jsx)(B,{scope:r,disabled:i,direction:o,orientation:l,children:(0,f.jsx)(A.Slot,{scope:r,children:(0,f.jsx)(u.sG.div,{...c,"data-orientation":l,ref:p,onKeyDown:i?void 0:g})})})}),z="AccordionItem",[H,K]=D(z),W=n.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...i}=e,o=G(z,r),a=F(z,r),s=j(r),l=(0,p.B)(),u=n&&a.value.includes(n)||!1,c=o.disabled||e.disabled;return(0,f.jsx)(H,{scope:r,open:u,disabled:c,triggerId:l,children:(0,f.jsx)(b,{"data-orientation":o.orientation,"data-state":et(u),...s,...i,ref:t,disabled:c,open:u,onOpenChange:e=>{e?a.onItemOpen(n):a.onItemClose(n)}})})});W.displayName=z;var Q="AccordionHeader",Y=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=G(S,r),o=K(Q,r);return(0,f.jsx)(u.sG.h3,{"data-orientation":i.orientation,"data-state":et(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})});Y.displayName=Q;var J="AccordionTrigger",X=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=G(S,r),o=K(J,r),a=$(J,r),s=j(r);return(0,f.jsx)(A.ItemSlot,{scope:r,children:(0,f.jsx)(w,{"aria-disabled":o.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...s,...n,ref:t})})});X.displayName=J;var Z="AccordionContent",ee=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=G(S,r),o=K(Z,r),a=j(r);return(0,f.jsx)(x,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Z;var er=L,en=W,ei=Y,eo=X,ea=ee},698:(e,t,r)=>{"use strict";r.d(t,{Ph:()=>o,sL:()=>i});var n=r(5729);let i=(0,n.createContext)({}),o=({children:e,value:t})=>n.createElement(i.Provider,{value:t},e)},748:(e,t,r)=>{"use strict";r.d(t,{Qg:()=>a,bL:()=>l});var n=r(5729),i=r(7454),o=r(6029),a=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s=n.forwardRef((e,t)=>(0,o.jsx)(i.sG.span,{...e,ref:t,style:{...a,...e.style}}));s.displayName="VisuallyHidden";var l=s},765:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(5729),i=r(4997),o=r(1753),a=r(7989),s=r(2732),l=r(6626);let u=(e,t)=>{let r=(0,s.A)(),{rfkId:u,instanceId:c}=(0,a.A)(),d=(0,l.n)(e,t);(0,n.useEffect)(()=>{let e={handleAction(e){let{rfkId:t,instanceId:n=null}=e.payload;if(t===u&&c===n){let t=d.current(((e,t)=>{switch(t.type){case i.A.WIDGET_DATA_REQUEST_SUCCESS:{let{response:r}=t.payload;return{...e,response:r}}case i.A.WIDGET_DATA_REQUEST:{let{request:r}=t.payload;return{...e,request:r}}default:return e}})(r.state,e),e);t!==r.state&&r.updateState(t)}}};return o.Ay.register(e),()=>o.Ay.unregister(e)},[u,c,r,d])}},793:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.getEdgeProxyFormsUrl=t.getEdgeProxyContentUrl=t.SearchQueryService=t.GraphQLRequestClient=t.DefaultRetryStrategy=t.getAppRootId=void 0;var n=r(4072);Object.defineProperty(t,"getAppRootId",{enumerable:!0,get:function(){return n.getAppRootId}});var i=r(3134);Object.defineProperty(t,"DefaultRetryStrategy",{enumerable:!0,get:function(){return i.DefaultRetryStrategy}}),Object.defineProperty(t,"GraphQLRequestClient",{enumerable:!0,get:function(){return i.GraphQLRequestClient}});var o=r(6541);Object.defineProperty(t,"SearchQueryService",{enumerable:!0,get:function(){return o.SearchQueryService}});var a=r(4267);Object.defineProperty(t,"getEdgeProxyContentUrl",{enumerable:!0,get:function(){return a.getEdgeProxyContentUrl}}),Object.defineProperty(t,"getEdgeProxyFormsUrl",{enumerable:!0,get:function(){return a.getEdgeProxyFormsUrl}})},959:(e,t,r)=>{"use strict";r.d(t,{LM:()=>K,Ze:()=>W,bL:()=>H,zi:()=>Q});var n=r(5729),i=r(7454),o=r(8749),a=r(9829),s=r(41),l=r(9613),u=r(1979),c=r(5896),d=r(2535),p=r(5269),f=r(6029),h="ScrollArea",[m,g]=(0,a.A)(h),[y,v]=m(h),b=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:o="hover",dir:a,scrollHideDelay:l=600,...c}=e,[d,p]=n.useState(null),[h,m]=n.useState(null),[g,v]=n.useState(null),[b,E]=n.useState(null),[w,T]=n.useState(null),[x,O]=n.useState(0),[N,C]=n.useState(0),[S,I]=n.useState(!1),[A,_]=n.useState(!1),R=(0,s.s)(t,e=>p(e)),D=(0,u.jH)(a);return(0,f.jsx)(y,{scope:r,type:o,dir:D,scrollHideDelay:l,scrollArea:d,viewport:h,onViewportChange:m,content:g,onContentChange:v,scrollbarX:b,onScrollbarXChange:E,scrollbarXEnabled:S,onScrollbarXEnabledChange:I,scrollbarY:w,onScrollbarYChange:T,scrollbarYEnabled:A,onScrollbarYEnabledChange:_,onCornerWidthChange:O,onCornerHeightChange:C,children:(0,f.jsx)(i.sG.div,{dir:D,...c,ref:R,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});b.displayName=h;var E="ScrollAreaViewport",w=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:o,nonce:a,...l}=e,u=v(E,r),c=n.useRef(null),d=(0,s.s)(t,c,u.onViewportChange);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,f.jsx)(i.sG.div,{"data-radix-scroll-area-viewport":"",...l,ref:d,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,f.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});w.displayName=E;var T="ScrollAreaScrollbar",x=n.forwardRef((e,t)=>{let{forceMount:r,...i}=e,o=v(T,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,l="horizontal"===e.orientation;return n.useEffect(()=>(l?a(!0):s(!0),()=>{l?a(!1):s(!1)}),[l,a,s]),"hover"===o.type?(0,f.jsx)(O,{...i,ref:t,forceMount:r}):"scroll"===o.type?(0,f.jsx)(N,{...i,ref:t,forceMount:r}):"auto"===o.type?(0,f.jsx)(C,{...i,ref:t,forceMount:r}):"always"===o.type?(0,f.jsx)(S,{...i,ref:t}):null});x.displayName=T;var O=n.forwardRef((e,t)=>{let{forceMount:r,...i}=e,a=v(T,e.__scopeScrollArea),[s,l]=n.useState(!1);return n.useEffect(()=>{let e=a.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),l(!0)},n=()=>{t=window.setTimeout(()=>l(!1),a.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[a.scrollArea,a.scrollHideDelay]),(0,f.jsx)(o.C,{present:r||s,children:(0,f.jsx)(C,{"data-state":s?"visible":"hidden",...i,ref:t})})}),N=n.forwardRef((e,t)=>{var r;let{forceMount:i,...a}=e,s=v(T,e.__scopeScrollArea),l="horizontal"===e.orientation,u=q(()=>d("SCROLL_END"),100),[c,d]=(r={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},n.useReducer((e,t)=>
1r[e][t]??e,"hidden"));return n.useEffect(()=>{if("idle"===c){let e=window.setTimeout(()=>d("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,s.scrollHideDelay,d]),n.useEffect(()=>{let e=s.viewport,t=l?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t];r!==n&&(d("SCROLL"),u()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[s.viewport,l,d,u]),(0,f.jsx)(o.C,{present:i||"hidden"!==c,children:(0,f.jsx)(S,{"data-state":"hidden"===c?"hidden":"visible",...a,ref:t,onPointerEnter:(0,p.mK)(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:(0,p.mK)(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),C=n.forwardRef((e,t)=>{let r=v(T,e.__scopeScrollArea),{forceMount:i,...a}=e,[s,l]=n.useState(!1),u="horizontal"===e.orientation,c=q(()=>{if(r.viewport){let e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;l(u?e:t)}},10);return z(r.viewport,c),z(r.content,c),(0,f.jsx)(o.C,{present:i||s,children:(0,f.jsx)(S,{"data-state":s?"visible":"hidden",...a,ref:t})})}),S=n.forwardRef((e,t)=>{let{orientation:r="vertical",...i}=e,o=v(T,e.__scopeScrollArea),a=n.useRef(null),s=n.useRef(0),[l,u]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=$(l.viewport,l.content),d={...i,sizes:l,onSizesChange:u,hasThumb:!!(c>0&&c<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function p(e,t){return function(e,t,r,n="ltr"){let i=U(r),o=t||i/2,a=r.scrollbar.paddingStart+o,s=r.scrollbar.size-r.scrollbar.paddingEnd-(i-o),l=r.content-r.viewport;return B([a,s],"ltr"===n?[0,l]:[-1*l,0])(e)}(e,s.current,l,t)}return"horizontal"===r?(0,f.jsx)(I,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=V(o.viewport.scrollLeft,l,o.dir);a.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=p(e,o.dir))}}):"vertical"===r?(0,f.jsx)(A,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=V(o.viewport.scrollTop,l);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=p(e))}}):null}),I=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:i,...o}=e,a=v(T,e.__scopeScrollArea),[l,u]=n.useState(),c=n.useRef(null),d=(0,s.s)(t,c,a.onScrollbarXChange);return n.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,f.jsx)(D,{"data-orientation":"horizontal",...o,ref:d,sizes:r,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":U(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(a.viewport){let n=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),function(e,t){return e>0&&e<t}(n,r)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&l&&i({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:M(l.paddingLeft),paddingEnd:M(l.paddingRight)}})}})}),A=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:i,...o}=e,a=v(T,e.__scopeScrollArea),[l,u]=n.useState(),c=n.useRef(null),d=(0,s.s)(t,c,a.onScrollbarYChange);return n.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,f.jsx)(D,{"data-orientation":"vertical",...o,ref:d,sizes:r,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":U(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(a.viewport){let n=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),function(e,t){return e>0&&e<t}(n,r)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&l&&i({content:a.viewport.scrollHeight,viewport:
1a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:M(l.paddingTop),paddingEnd:M(l.paddingBottom)}})}})}),[_,R]=m(T),D=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:o,hasThumb:a,onThumbChange:u,onThumbPointerUp:c,onThumbPointerDown:d,onThumbPositionChange:h,onDragScroll:m,onWheelScroll:g,onResize:y,...b}=e,E=v(T,r),[w,x]=n.useState(null),O=(0,s.s)(t,e=>x(e)),N=n.useRef(null),C=n.useRef(""),S=E.viewport,I=o.content-o.viewport,A=(0,l.c)(g),R=(0,l.c)(h),D=q(y,10);function k(e){N.current&&m({x:e.clientX-N.current.left,y:e.clientY-N.current.top})}return n.useEffect(()=>{let e=e=>{let t=e.target;w?.contains(t)&&A(e,I)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[S,w,I,A]),n.useEffect(R,[o,R]),z(w,D),z(E.content,D),(0,f.jsx)(_,{scope:r,scrollbar:w,hasThumb:a,onThumbChange:(0,l.c)(u),onThumbPointerUp:(0,l.c)(c),onThumbPositionChange:R,onThumbPointerDown:(0,l.c)(d),children:(0,f.jsx)(i.sG.div,{...b,ref:O,style:{position:"absolute",...b.style},onPointerDown:(0,p.mK)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),N.current=w.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E.viewport&&(E.viewport.style.scrollBehavior="auto"),k(e))}),onPointerMove:(0,p.mK)(e.onPointerMove,k),onPointerUp:(0,p.mK)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=C.current,E.viewport&&(E.viewport.style.scrollBehavior=""),N.current=null})})})}),k="ScrollAreaThumb",j=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=R(k,e.__scopeScrollArea);return(0,f.jsx)(o.C,{present:r||i.hasThumb,children:(0,f.jsx)(L,{ref:t,...n})})}),L=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:o,...a}=e,l=v(k,r),u=R(k,r),{onThumbPositionChange:c}=u,d=(0,s.s)(t,e=>u.onThumbChange(e)),h=n.useRef(void 0),m=q(()=>{h.current&&(h.current(),h.current=void 0)},100);return n.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{m(),h.current||(h.current=G(e,c),c())};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,m,c]),(0,f.jsx)(i.sG.div,{"data-state":u.hasThumb?"visible":"hidden",...a,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:(0,p.mK)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;u.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,p.mK)(e.onPointerUp,u.onThumbPointerUp)})});j.displayName=k;var P="ScrollAreaCorner";n.forwardRef((e,t)=>{let r=v(P,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&n?(0,f.jsx)(F,{...e,ref:t}):null}).displayName=P;var F=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,...o}=e,a=v(P,r),[s,l]=n.useState(0),[u,c]=n.useState(0),d=!!(s&&u);return z(a.scrollbarX,()=>{let e=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(e),c(e)}),z(a.scrollbarY,()=>{let e=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(e),l(e)}),d?(0,f.jsx)(i.sG.div,{...o,ref:t,style:{width:s,height:u,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null});function M(e){return e?parseInt(e,10):0}function $(e,t){let r=e/t;return isNaN(r)?0:r}function U(e){let t=$(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function V(e,t,r="ltr"){let n=U(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=(0,d.q)(e,"ltr"===r?[0,a]:[-1*a,0]);return B([0,a],[0,o-n])(s)}function B(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var G=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=r.left!==o.left,s=r.top!==o.top;(a||s)&&t(),r=o,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)};function q(e,t){let r=(0,l.c)(e),i=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(i.current),[]),n.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,t)},[r,t])}function z(e,t){let r=(0,l.c)(t);(0,c.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}var H=b,K=w,W=x,Q=j},1067:(e,t,r)=>{"use strict";r.d(t,{G:()=>i,n:()=>o});var n=r(5729);let i=e=>n.createElement(e.tag||"span",e,"[No text in field]"),o=e=>n.createElement("img",Object.assign({},e,{alt:"",src:'data:image/svg+xml,%3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 240 240" style="enable-background:new 0 0 240 240;" xml:space="preserve"%3E%3Cstyle type="text/css"%3E .st0%7Bfill:none;%7D .st1%7Bfill:%23969696;%7D .st2%7Bfill:%23FFFFFF;%7D .st3%7Bfill:%23FFFFFF;stroke:%23FFFFFF;stroke-width:0.75;stroke-miterlimit:10;%7D%0A%3C/style%3E%3Cg%3E%3Crect class="st0" width="240" height="240"/%3E%3Cg%3E%3Cg%3E%3Crect x="20" y="20" class="st1" width="200" height="200"/%3E%3C/g%3E%3Cg%3E%3Ccircle class="st2" cx="174" cy="67" r="14"/%3E%3Cpath class="st2" d="M174,54c7.17,0,13,5.83,13,13s-5.83,13-13,13s-13-5.83-13-13S166.83,54,174,54 M174,52 c-8.28,0-15,6.72-15,15s6.72,15,15,15s15-6.72,15-15S182.28,52,174,52L174,52z"/%3E%3C/g%3E%3Cpolyline class="st3" points="29.5,179.25 81.32,122.25 95.41,137.75 137.23,91.75 209.5,179.75 "/%3E%3C/g%3E%3C/g%3E%3C/svg%3E',style:{minWidth:"48px",minHeight:"48px",maxWidth:"400px",maxHeight:"400px",cursor:"pointer"},className:`scEmptyImage ${e.className||""}`}))},1340:(e,t,r)=>{"use strict";let n;r.d(t,{t:()=>a});var i=r(6237),o=r(9339);try{n=o.Bd&&!!globalThis.localStorage}catch{n=!1}let a=n?(e,t)=>(0,i.y)(localStorage,e,t):(e,t)=>(o.Bd,{value:void 0,set:o.lQ,remove:o.lQ,fetch:o.lQ})},1486:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});
1var n=r(5729),i=r(6760),o=r(7454),a=r(5896),s=r(6029),l=n.forwardRef((e,t)=>{let{container:r,...l}=e,[u,c]=n.useState(!1);(0,a.N)(()=>c(!0),[]);let d=r||u&&globalThis?.document?.body;return d?i.createPortal((0,s.jsx)(o.sG.div,{...l,ref:t}),d):null});l.displayName="Portal"},1488:(e,t,r)=>{var n=r(9143);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e},t.useColors=function(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(6141)(t);let{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},1548:function(e,t,r){"use strict";var n=r(9143),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeURLSearchParams=t.escapeNonSpecialQuestionMarks=t.areURLSearchParamsEqual=t.isRegexOrUrl=t.enforceCors=t.getAllowedOriginsFromEnv=t.isTimeoutError=t.isAbsoluteUrl=void 0,t.resolveUrl=function(e,t={}){if(!e)throw RangeError("url must be a non-empty string");if((0,o.default)()){let r=new URL(e);for(let e in t)({}).hasOwnProperty.call(t,e)&&r.searchParams.append(e,String(t[e]));return r.toString()}let r=Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(String(t[e]))}`).join("&");return -1!==e.indexOf("?")?`${e}&${r}`:`${e}?${r}`};let o=i(r(6737));t.isAbsoluteUrl=e=>{if(!e)return!1;if("string"!=typeof e)throw TypeError("Expected a string");return/^[a-z][a-z0-9+.-]*:/.test(e)},t.isTimeoutError=e=>{var t;return(null==(t=e.response)?void 0:t.status)===408||"AbortError"===e.name},t.getAllowedOriginsFromEnv=()=>n.env.JSS_ALLOWED_ORIGINS?n.env.JSS_ALLOWED_ORIGINS.replace(" ","").split(","):[],t.enforceCors=(e,r,n)=>{if(!e.headers.origin)return!0;n=(0,t.getAllowedOriginsFromEnv)().concat(n||[]);
1let i=r.getHeader("Access-Control-Allow-Origin");i&&n.push(i);let o=e.headers.origin;return!!(o&&n.some(e=>o===e||RegExp("^"+e.replace(/\//g,"\\/").replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(o)))&&(r.setHeader("Access-Control-Allow-Origin",o),r.setHeader("Access-Control-Allow-Methods","GET, POST, OPTIONS, DELETE, PUT, PATCH"),"OPTIONS"===e.method&&r.setHeader("Access-Control-Allow-Headers","Content-Type, Authorization"),!0)},t.isRegexOrUrl=e=>(e=e.slice(0,-1),/^\/[a-zA-Z0-9\-\/]+(\?([a-zA-Z0-9\-_]+=[a-zA-Z0-9\-_]+)(&[a-zA-Z0-9\-_]+=[a-zA-Z0-9\-_]+)*)?$/.test(e))?"url":"regex",t.areURLSearchParamsEqual=(e,t)=>{let r=e=>[...e.entries()].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}=${t}`).join("&");return r(e)===r(t)},t.escapeNonSpecialQuestionMarks=e=>e.startsWith("^")||e.endsWith("$")?e:e.replace(/\?/g,"\\?"),t.mergeURLSearchParams=(e,t)=>{let r=new URLSearchParams;for(let[t,n]of e.entries())r.set(t,n);for(let[e,n]of t.entries())r.set(e,n);return r.toString()}},1679:(e,t,r)=>{"use strict";r.d(t,{n:()=>d});
1var n=r(5729),i=r(41),o=r(7454),a=r(9613),s=r(6029),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:d=!1,onMountAutoFocus:g,onUnmountAutoFocus:y,...v}=e,[b,E]=n.useState(null),w=(0,a.c)(g),T=(0,a.c)(y),x=n.useRef(null),O=(0,i.s)(t,e=>E(e)),N=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(d){let e=function(e){if(N.paused||!b)return;let t=e.target;b.contains(t)?x.current=t:h(x.current,{select:!0})},t=function(e){if(N.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||h(x.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(b)});return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[d,b,N.paused]),n.useEffect(()=>{if(b){m.add(N);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(l,c);b.addEventListener(l,w),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(h(n,{select:t}),document.activeElement!==r)return}(p(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(b))}return()=>{b.removeEventListener(l,w),setTimeout(()=>{let t=new CustomEvent(u,c);b.addEventListener(u,T),b.dispatchEvent(t),t.defaultPrevented||h(e??document.body,{select:!0}),b.removeEventListener(u,T),m.remove(N)},0)}}},[b,w,T,N]);let C=n.useCallback(e=>{if(!r&&!d||N.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,o]=function(e){let t=p(e);return[f(t,e),f(t.reverse(),e)]}(t);i&&o?e.shiftKey||n!==o?e.shiftKey&&n===i&&(e.preventDefault(),r&&h(o,{select:!0})):(e.preventDefault(),r&&h(i,{select:!0})):n===t&&e.preventDefault()}},[r,d,N.paused]);return(0,s.jsx)(o.sG.div,{tabIndex:-1,...v,ref:O,onKeyDown:C})});function p(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function f(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function h(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),(e=g(e,t)).unshift(t)},remove(t){e=g(e,t),e[0]?.resume()}}}();function g(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},1713:(e,t,r)=>{"use strict";r.d(t,{A:()=>H});var n,i,o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}Object.create;Object.create;var s=("function"==typeof SuppressedError&&SuppressedError,r(5729)),l="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,p=new WeakMap;function f(e){return e}var h=function(e){void 0===e&&(e={});var t,r,n,i=(void 0===t&&(t=f),r=[],n=!1,{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;
1r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}});return i.options=o({async:!0,ssr:!1},e),i}(),m=function(){},g=s.forwardRef(function(e,t){var r,n,i,l,u=s.useRef(null),f=s.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),g=f[0],y=f[1],v=e.forwardProps,b=e.children,E=e.className,w=e.removeScrollBar,T=e.enabled,x=e.shards,O=e.sideCar,N=e.noRelative,C=e.noIsolation,S=e.inert,I=e.allowPinchZoom,A=e.as,_=e.gapMode,R=a(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=(r=[u,t],n=function(e){return r.forEach(function(t){return c(t,e)})},(i=(0,s.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,l=i.facade,d(function(){var e=p.get(l);if(e){var t=new Set(e),n=new Set(r),i=l.current;t.forEach(function(e){n.has(e)||c(e,null)}),n.forEach(function(e){t.has(e)||c(e,i)})}p.set(l,r)},[r]),l),k=o(o({},R),g);return s.createElement(s.Fragment,null,T&&s.createElement(O,{sideCar:h,removeScrollBar:w,shards:x,noRelative:N,noIsolation:C,inert:S,setCallbacks:y,allowPinchZoom:!!I,lockRef:u,gapMode:_}),v?s.cloneElement(s.Children.only(b),o(o({},k),{ref:D})):s.createElement(void 0===A?"div":A,o({},k,{className:E,ref:D}),b))});g.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},g.classNames={fullWidth:u,zeroRight:l};var y=function(e){var t=e.sideCar,r=a(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return s.createElement(n,o({},r))};y.isSideCarExport=!0;var v=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b=function(){var e=v();return function(t,r){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},E=function(){var e=b();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},T=function(e){return parseInt(e||"",10)||0},x=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[T(r),T(n),T(i)]},O=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=x(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},N=E(),C="data-scroll-locked",S=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body[").concat(C,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(u," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(n,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(C,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},I=function(){var e=parseInt(document.body.getAttribute(C)||"0",10);return isFinite(e)?e:0},A=function(){s.useEffect(function(){return document.body.setAttribute(C,(I()+1).toString()),function(){var e=I()-1;e<=0?document.body.removeAttribute(C):document.body.setAttribute(C,e.toString())}},[])},_=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n;A();var o=s.useMemo(function(){return O(i)},[i]);return s.createElement(N,{styles:S(o,!t,i,r?"":"!important")})},R=!1;if("undefined"!=typeof window)try{var D=Object.defineProperty({},"passive",{get:function(){return R=!0,!0}});window.addEventListener("test",D,D),window.removeEventListener("test",D,D)}catch(e){R=!1}var k=!!R&&{passive:!1},j=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},L=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),P(e,n)){var i=F(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},P=function(e,t){return"v"===e?j(t,"overflowY"):j(t,"overflowX")},F=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},M=function(e,t,r,n,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*n,l=r.target,u=t.contains(l),c=!1,d=s>0,p=0,f=0;do{if(!l)break;var h=F(e,l),m=h[0],g=h[1]-h[2]-a*m;(m||g)&&P(e,l)&&(p+=g,f+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(p)||!i&&s>p)?c=!0:!d&&(i&&1>Math.abs(f)||!i&&-s>f)&&(c=!0),c},$=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},U=function(e){return[e.deltaX,e.deltaY]},V=function(e){return e&&"current"in e?e.current:e},B=0,G=[];let q=(n=function(e){var t=s.useRef([]),r=s.useRef([0,0]),n=s.useRef(),i=s.useState(B++)[0],o=s.useState(E)[0],a=s.useRef(e);s.useEffect(function(){a.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}
1)([e.lockRef.current],(e.shards||[]).map(V),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=s.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=$(e),s=r.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var p=window.getSelection(),f=p&&p.anchorNode;if(f&&(f===c||f.contains(c)))return!1;var h=L(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=L(d,c)),!h)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var m=n.current||i;return M(m,t,e,"h"===m?l:u,!0)},[]),u=s.useCallback(function(e){if(G.length&&G[G.length-1]===o){var r="deltaY"in e?U(e):$(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(a.current.shards||[]).map(V).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=s.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=s.useCallback(function(e){r.current=$(e),n.current=void 0},[]),p=s.useCallback(function(t){c(t.type,U(t),t.target,l(t,e.lockRef.current))},[]),f=s.useCallback(function(t){c(t.type,$(t),t.target,l(t,e.lockRef.current))},[]);s.useEffect(function(){return G.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",u,k),document.addEventListener("touchmove",u,k),document.addEventListener("touchstart",d,k),function(){G=G.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,k),document.removeEventListener("touchmove",u,k),document.removeEventListener("touchstart",d,k)}},[]);var h=e.removeScrollBar,m=e.inert;return s.createElement(s.Fragment,null,m?s.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,h?s.createElement(_,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},h.useMedium(n),y);var z=s.forwardRef(function(e,t){return s.createElement(g,o({},e,{ref:t,sideCar:q}))});z.classNames=g.classNames;let H=z},1951:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var n=r(3948),i=r(5729),o=r(3478),a=r(2650),s=r(9376),l=r(9777),u=r(1067),c=r(9235),d=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let p=(e,...t)=>i.createElement("span",Object.assign({className:"sc-image-wrapper"},t,{dangerouslySetInnerHTML:{__html:e}})),f=(e,t,r)=>{var{src:i,srcSet:o}=e,a=d(e,["src","srcSet"]);if(!i)return null;(0,l.B$)(a);let s=Object.assign({},a),u=n.mediaApi.updateImageUrl(i,t,r);return o&&(s.srcSet=n.mediaApi.getSrcSet(u,o,t,r)),s.src=u,s},h=(e,t,r,i)=>{let o=n.mediaApi.findEditorImageTag(e.editable);if(!o)return p(e.editable);let a=f(Object.assign(Object.assign({},(0,l.f_)(o.attrs)),i),t,r);if(!a)return p(e.editable);let s=`<img ${(0,l.ns)(a)} />`;return p(e.editable.replace(o.imgTag,s))};(0,o.O)((0,a.N)(e=>{var{editable:t=!0,imageParams:r,field:n,mediaUrlPrefix:o}=e,a=d(e,["editable","imageParams","field","mediaUrlPrefix"]);if(!n||!n.editable&&(0,c.isFieldValueEmpty)(n))return null;if(t&&n.editable)return h(n,r,o,a);let s=n.src?n:n.value;if(!s)return null;s.metadata&&delete s.metadata;let l=f(Object.assign(Object.assign({},s),a),r,o);return l?i.createElement("img",Object.assign({},l)):null},{defaultEmptyFieldEditingComponent:u.n})).displayName="Image";var m=r(8588),g=r.n(m),y=r(9143),v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let b=(0,o.O)((0,a.N)(e=>{var t,r,{editable:o=!0,imageParams:a,field:l,mediaUrlPrefix:u,fill:d,priority:p}=e,f=v(e,["editable","imageParams","field","mediaUrlPrefix","fill","priority"]);let m=i.useContext(s.q3);if(f.src)throw Error("Detected src prop. If you wish to use src, use next/image directly.");if(!l||!l.editable&&(0,c.isFieldValueEmpty)(l))return null;if(o&&l.editable)return h(l,a,u,f);let b=l.src?l:l.value;if(!b)return null;let E=f.unoptimized||(null==(t=m.context)?void 0:t.renderingType)===c.RenderingType.Component||(null==(r=m.context)?void 0:r.pageState)!==c.LayoutServicePageState.Normal,w=Object.assign(Object.assign(Object.assign({},b),f),{fill:d,priority:p,src:n.mediaApi.updateImageUrl(b.src,a,u),unoptimized:E}),T=Object.assign(Object.assign({},w),{src:n.mediaApi.replaceMediaUrlPrefix(w.src,u)});return(T.fill&&(delete T.width,delete T.height),w)?i.createElement(g(),Object.assign({alt:""},T,y.env.TEST?{"data-unoptimized":E}:{})):null},{defaultEmptyFieldEditingComponent:u.n}));b.displayName="NextImage"},1979:(e,t,r)=>{"use strict";r.d(t,{jH:()=>o});var n=r(5729);r(6029);var i=n.createContext(void 0);function o(e){let t=n.useContext(i);return e||t||"ltr"}},2098:(e,t,r)=>{"use strict";r.d(t,{UC:()=>H,ZL:()=>z,bL:()=>G,l9:()=>q});var n=r(5729),i=r(5269),o=r(41),a=r(9829),s=r(7555),l=r(4249),u=r(1679),c=r(7913),d=r(609),p=r(1486),f=r(8749),h=r(7454),m=r(6029),g=Symbol("radix.slottable");function y(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===g}var v=r(6697),b=r(184),E=r(1713),w="Popover",[T,x]=(0,a.A)(w,[d.Bk]),O=(0,d.Bk)(),[N,C]=T(w),S=e=>{let{__scopePopover:t,children:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,l=O(t),u=n.useRef(null),[p,f]=n.useState(!1),[h,g]=(0,v.i)({prop:i,defaultProp:o??!1,onChange:a,caller:w});return(0,m.jsx)(d.bL,{...l,children:(0,m.jsx)(N,{scope:t,contentId:(0,c.B)(),triggerRef:u,open:h,onOpenChange:g,onOpenToggle:n.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:p,onCustomAnchorAdd:n.useCallback(()=>f(!0),[]),onCustomAnchorRemove:n.useCallback(()=>f(!1),[]),modal:s,children:r})})};S.displayName=w;var I="PopoverAnchor";n.forwardRef((e,t)=>
1{let{__scopePopover:r,...i}=e,o=C(I,r),a=O(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return n.useEffect(()=>(s(),()=>l()),[s,l]),(0,m.jsx)(d.Mz,{...a,...i,ref:t})}).displayName=I;var A="PopoverTrigger",_=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=C(A,r),s=O(r),l=(0,o.s)(t,a.triggerRef),u=(0,m.jsx)(h.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":B(a.open),...n,ref:l,onClick:(0,i.mK)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?u:(0,m.jsx)(d.Mz,{asChild:!0,...s,children:u})});_.displayName=A;var R="PopoverPortal",[D,k]=T(R,{forceMount:void 0}),j=e=>{let{__scopePopover:t,forceMount:r,children:n,container:i}=e,o=C(R,t);return(0,m.jsx)(D,{scope:t,forceMount:r,children:(0,m.jsx)(f.C,{present:r||o.open,children:(0,m.jsx)(p.Z,{asChild:!0,container:i,children:n})})})};j.displayName=R;var L="PopoverContent",P=n.forwardRef((e,t)=>{let r=k(L,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,o=C(L,e.__scopePopover);return(0,m.jsx)(f.C,{present:n||o.open,children:o.modal?(0,m.jsx)(M,{...i,ref:t}):(0,m.jsx)($,{...i,ref:t})})});P.displayName=L;var F=function(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var a;let e,s,l=(a=r,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,o.t)(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,a=n.Children.toArray(i),s=a.find(y);if(s){let e=s.props.children,i=a.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,m.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,m.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}("PopoverContent.RemoveScroll"),M=n.forwardRef((e,t)=>{let r=C(L,e.__scopePopover),a=n.useRef(null),s=(0,o.s)(t,a),l=n.useRef(!1);return n.useEffect(()=>{let e=a.current;if(e)return(0,b.Eq)(e)},[]),(0,m.jsx)(E.A,{as:F,allowPinchZoom:!0,children:(0,m.jsx)(U,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),l.current||r.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;l.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),$=n.forwardRef((e,t)=>{let r=C(L,e.__scopePopover),i=n.useRef(!1),o=n.useRef(!1);return(0,m.jsx)(U,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),U=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:h,...g}=e,y=C(L,r),v=O(r);return(0,l.Oh)(),(0,m.jsx)(u.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,m.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:f,onDismiss:()=>y.onOpenChange(!1),children:(0,m.jsx)(d.UC,{"data-state":B(y.open),role:"dialog",id:y.contentId,...v,...g,ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),V="PopoverClose";function B(e){return e?"open":"closed"}n.forwardRef((e,t)=>
1{let{__scopePopover:r,...n}=e,o=C(V,r);return(0,m.jsx)(h.sG.button,{type:"button",...n,ref:t,onClick:(0,i.mK)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=V,n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=O(r);return(0,m.jsx)(d.i3,{...i,...n,ref:t})}).displayName="PopoverArrow";var G=S,q=_,z=j,H=P},2139:(e,t,r)=>{"use strict";r.d(t,{N:()=>c});var n=r(5729),i=r(9829),o=r(41),a=r(6029);function s(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var a;let e,s,l=(a=r,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,o.t)(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,s=n.Children.toArray(i),l=s.find(u);if(l){let e=l.props.children,i=s.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,a.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}var l=Symbol("radix.slottable");function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}function c(e){let t=e+"CollectionProvider",[r,l]=(0,i.A)(t),[u,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,i=n.useRef(null),o=n.useRef(new Map).current;return(0,a.jsx)(u,{scope:t,itemMap:o,collectionRef:i,children:r})};d.displayName=t;let p=e+"CollectionSlot",f=s(p),h=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=c(p,r),s=(0,o.s)(t,i.collectionRef);return(0,a.jsx)(f,{ref:s,children:n})});h.displayName=p;let m=e+"CollectionItemSlot",g="data-radix-collection-item",y=s(m),v=n.forwardRef((e,t)=>{let{scope:r,children:i,...s}=e,l=n.useRef(null),u=(0,o.s)(t,l),d=c(m,r);return n.useEffect(()=>(d.itemMap.set(l,{ref:l,...s}),()=>void d.itemMap.delete(l))),(0,a.jsx)(y,{...{[g]:""},ref:u,children:i})});return v.displayName=m,[{Provider:d,Slot:h,ItemSlot:v},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},l]}var d=new WeakMap;function p(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=f(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}(e,t);return -1===r?void 0:e[r]}function f(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],d.set(this,!0)}set(e,t){return d.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),o=this.#e.length,a=f(e),s=a>=0?a:o+a,l=s<0||s>=o?-1:s;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,r),this;let u=this.size+ +!i;a<0&&s++;let c=[...this.#e],d=!1;for(let e=s;e<u;e++)if(s===e){let o=c[e];c[e]===t&&(o=c[e+1]),i&&this.delete(t),n=this.get(o),this.set(t,r)}else{d||c[e-1]!==t||(d=!0);let r=c[d?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=p(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=p(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return p(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);
1n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}})},2149:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});class n{constructor(e){this.config=e,this.DEFAULT_EXPORT_NAME="Default",this.components=new Map([...e.components])}getModuleFactory(){return e=>{let t=this.components.get(e);return t?t.module?t.module():t:null}}getComponentFactory({isEditing:e}={}){return(t,r)=>{let n=this.components.get(t);return n?n.element?n.element(e):r&&r!==this.DEFAULT_EXPORT_NAME?n[r]:n.Default||n.default||n:null}}}},2192:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDesignLibraryMode=t.getDesignLibraryScriptLink=t.getDesignLibraryStatusEvent=t.DesignLibraryStatus=t.addComponentUpdateHandler=t.DesignLibraryMode=t.MetadataKind=t.LayoutKind=t.mapButtonToCommand=t.DefaultEditFrameButtonIds=t.DefaultEditFrameButtons=t.DefaultEditFrameButton=t.RestComponentLayoutService=t.PAGES_EDITING_MARKER=t.QUERY_PARAM_EDITING_SECRET=t.EDITING_ALLOWED_ORIGINS=t.getJssPagesClientData=t.handleEditorAnchors=t.resetEditorChromes=t.isEditorActive=t.HorizonEditor=t.ExperienceEditor=t.DEFAULT_PLACEHOLDER_UID=t.GraphQLEditingService=void 0;var n=r(4130);Object.defineProperty(t,"GraphQLEditingService",{enumerable:!0,get:function(){return n.GraphQLEditingService}});var i=r(8521);Object.defineProperty(t,"DEFAULT_PLACEHOLDER_UID",{enumerable:!0,get:function(){return i.DEFAULT_PLACEHOLDER_UID}}),Object.defineProperty(t,"ExperienceEditor",{enumerable:!0,get:function(){return i.ExperienceEditor}}),Object.defineProperty(t,"HorizonEditor",{enumerable:!0,get:function(){return i.HorizonEditor}}),Object.defineProperty(t,"isEditorActive",{enumerable:!0,get:function(){return i.isEditorActive}}),Object.defineProperty(t,"resetEditorChromes",{enumerable:!0,get:function(){return i.resetEditorChromes}}),Object.defineProperty(t,"handleEditorAnchors",{enumerable:!0,get:function(){return i.handleEditorAnchors}}),Object.defineProperty(t,"getJssPagesClientData",{enumerable:!0,get:function(){return i.getJssPagesClientData}}),Object.defineProperty(t,"EDITING_ALLOWED_ORIGINS",{enumerable:!0,get:function(){return i.EDITING_ALLOWED_ORIGINS}}),Object.defineProperty(t,"QUERY_PARAM_EDITING_SECRET",{enumerable:!0,get:function(){return i.QUERY_PARAM_EDITING_SECRET}}),Object.defineProperty(t,"PAGES_EDITING_MARKER",{enumerable:!0,get:function(){return i.PAGES_EDITING_MARKER}});var o=r(9839);Object.defineProperty(t,"RestComponentLayoutService",{enumerable:!0,get:function(){return o.RestComponentLayoutService}});var a=r(6940);Object.defineProperty(t,"DefaultEditFrameButton",{enumerable:!0,get:function(){return a.DefaultEditFrameButton}}),Object.defineProperty(t,"DefaultEditFrameButtons",{enumerable:!0,get:function(){return a.DefaultEditFrameButtons}}),Object.defineProperty(t,"DefaultEditFrameButtonIds",{enumerable:!0,get:function(){return a.DefaultEditFrameButtonIds}}),Object.defineProperty(t,"mapButtonToCommand",{enumerable:!0,get:function(){return a.mapButtonToCommand}});var s=r(3934);Object.defineProperty(t,"LayoutKind",{enumerable:!0,get:function(){return s.LayoutKind}}),Object.defineProperty(t,"MetadataKind",{enumerable:!0,get:function(){return s.MetadataKind}}),Object.defineProperty(t,"DesignLibraryMode",{enumerable:!0,get:function(){return s.DesignLibraryMode}});var l=r(7032);Object.defineProperty(t,"addComponentUpdateHandler",{enumerable:!0,get:function(){return l.addComponentUpdateHandler}}),Object.defineProperty(t,"DesignLibraryStatus",{enumerable:!0,get:function(){return l.DesignLibraryStatus}}),Object.defineProperty(t,"getDesignLibraryStatusEvent",{enumerable:!0,get:function(){return l.getDesignLibraryStatusEvent}}),Object.defineProperty(t,"getDesignLibraryScriptLink",{enumerable:!0,get:function(){return l.getDesignLibraryScriptLink}}),Object.defineProperty(t,"isDesignLibraryMode",{enumerable:!0,get:function(){return l.isDesignLibraryMode}})},2203:(e,t,r)=>{e.exports=r(6916)},2231:(e,t,r)=>{"use strict";r.d(t,{UC:()=>ej,YJ:()=>eP,In:()=>eD,q7:()=>eF,VF:()=>e$,p4:()=>eM,ZL:()=>ek,bL:()=>eA,wn:()=>eV,PP:()=>eU,l9:()=>e_,WT:()=>eR,LM:()=>eL});var n=r(5729),i=r(6760),o=r(2535),a=r(5269),s=r(2139),l=r(41),u=r(9829),c=r(1979),d=r(7555),p=r(4249),f=r(1679),h=r(7913),m=r(609),g=r(1486),y=r(7454),v=r(6029),b=Symbol("radix.slottable");function E(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===b}var w=r(9613),T=r(6697),x=r(5896),O=r(8719),N=r(748),C=r(184),S=r(1713),I=[" ","Enter","ArrowUp","ArrowDown"],A=[" ","Enter"],_="Select",[R,D,k]=(0,s.N)(_),[j,L]=(0,u.A)(_,[k,m.Bk]),P=(0,m.Bk)(),[F,M]=j(_),[$,U]=j(_),V=e=>{let{__scopeSelect:t,children:r,open:i,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:u,dir:d,name:p,autoComplete:f,disabled:g,required:y,form:b}=e,E=P(t),[w,x]=n.useState(null),[O,N]=n.useState(null),[C,S]=n.useState(!1),I=(0,c.jH)(d),[A,D]=(0,T.i)({prop:i,defaultProp:o??!1,onChange:a,caller:_}),[k,j]=(0,T.i)({prop:s,defaultProp:l,onChange:u,caller:_}),L=n.useRef(null),M=!w||b||!!w.closest("form"),[U,V]=n.useState(new Set),B=Array.from(U).map(e=>e.props.value).join(";");return(0,v.jsx)(m.bL,{...E,children:(0,v.jsxs)(F,{required:y,scope:t,trigger:w,onTriggerChange:x,valueNode:O,onValueNodeChange:N,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:(0,h.B)(),value:k,onValueChange:j,open:A,onOpenChange:D,dir:I,triggerPointerDownPosRef:L,disabled:g,children:[(0,v.jsx)(R.Provider,{scope:t,children:(0,v.jsx)($,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{V(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{V(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),M?(0,v.jsxs)(eN,{"aria-hidden":!0,required:y,tabIndex:-1,name:p,autoComplete:f,value:k,onChange:e=>j(e.target.value),disabled:g,form:b,children:[void 0===k?(0,v.jsx)("option",{value:""}):null,Array.from(U)]},B):null]})})};V.displayName=_;var B="SelectTrigger",G=n.forwardRef((e,t)=>
1{let{__scopeSelect:r,disabled:i=!1,...o}=e,s=P(r),u=M(B,r),c=u.disabled||i,d=(0,l.s)(t,u.onTriggerChange),p=D(r),f=n.useRef("touch"),[h,g,b]=eS(e=>{let t=p().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=eI(t,e,r);void 0!==n&&u.onValueChange(n.value)}),E=e=>{c||(u.onOpenChange(!0),b()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,v.jsx)(m.Mz,{asChild:!0,...s,children:(0,v.jsx)(y.sG.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":eC(u.value)?"":void 0,...o,ref:d,onClick:(0,a.mK)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&E(e)}),onPointerDown:(0,a.mK)(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(E(e),e.preventDefault())}),onKeyDown:(0,a.mK)(o.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||g(e.key),(!t||" "!==e.key)&&I.includes(e.key)&&(E(),e.preventDefault())})})})});G.displayName=B;var q="SelectValue",z=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:i,children:o,placeholder:a="",...s}=e,u=M(q,r),{onValueNodeHasChildrenChange:c}=u,d=void 0!==o,p=(0,l.s)(t,u.onValueNodeChange);return(0,x.N)(()=>{c(d)},[c,d]),(0,v.jsx)(y.sG.span,{...s,ref:p,style:{pointerEvents:"none"},children:eC(u.value)?(0,v.jsx)(v.Fragment,{children:a}):o})});z.displayName=q;var H=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...i}=e;return(0,v.jsx)(y.sG.span,{"aria-hidden":!0,...i,ref:t,children:n||"â¼"})});H.displayName="SelectIcon";var K=e=>(0,v.jsx)(g.Z,{asChild:!0,...e});K.displayName="SelectPortal";var W="SelectContent",Q=n.forwardRef((e,t)=>{let r=M(W,e.__scopeSelect),[o,a]=n.useState();return((0,x.N)(()=>{a(new DocumentFragment)},[]),r.open)?(0,v.jsx)(Z,{...e,ref:t}):o?i.createPortal((0,v.jsx)(Y,{scope:e.__scopeSelect,children:(0,v.jsx)(R.Slot,{scope:e.__scopeSelect,children:(0,v.jsx)("div",{children:e.children})})}),o):null});Q.displayName=W;var[Y,J]=j(W),X=function(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var o;let e,a,s=(o=r,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,l.t)(t,s):s),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,a=n.Children.toArray(i),s=a.find(E);if(s){let e=s.props.children,i=a.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,v.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,v.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}("SelectContent.RemoveScroll"),Z=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:u,side:c,sideOffset:h,align:m,alignOffset:g,arrowPadding:y,collisionBoundary:b,collisionPadding:E,sticky:w,hideWhenDetached:T,avoidCollisions:x,...O}=e,N=M(W,r),[I,A]=n.useState(null),[_,R]=n.useState(null),k=(0,l.s)(t,e=>A(e)),[j,L]=n.useState(null),[P,F]=n.useState(null),$=D(r),[U,V]=n.useState(!1),B=n.useRef(!1);n.useEffect(()=>{if(I)return(0,C.Eq)(I)},[I]),(0,p.Oh)();let G=n.useCallback(e=>{let[t,...r]=$().map(e=>e.ref.current),[n]=r.slice(-1),i=document.activeElement;for(let r of e)if(r===i||(r?.scrollIntoView({block:"nearest"}),r===t&&_&&(_.scrollTop=0),r===n&&_&&(_.scrollTop=_.scrollHeight),r?.focus(),document.activeElement!==i))return},[$,_]),q=n.useCallback(()=>G([j,I]),[G,j,I]);n.useEffect(()=>{U&&q()},[U,q]);let{onOpenChange:z,triggerPointerDownPosRef:H}=N;n.useEffect(()=>{if(I){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(H.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():I.contains(r.target)||z(!1),document.removeEventListener("pointermove",t),H.current=null};return null!==H.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[I,z,H]),n.useEffect(()=>{let e=()=>z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[z]);let[K,Q]=eS(e=>{let t=$().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eI(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),J=n.useCallback((e,t,r)=>{let n=!B.current&&!r;(void 0!==N.value&&N.value===t||n)&&(L(e),n&&(B.current=!0))},[N.value]),Z=n.useCallback(()=>I?.focus(),[I]),er=n.useCallback((e,t,r)=>{let n=!B.current&&!r;(void 0!==N.value&&N.value===t||n)&&F(e)},[N.value]),en="popper"===i?et:ee,ei=en===et?{side:c,sideOffset:h,align:m,alignOffset:g,arrowPadding:y,collisionBoundary:b,collisionPadding:E,sticky:w,hideWhenDetached:T,avoidCollisions:x}:{};return(0,v.jsx)(Y,{scope:r,content:I,viewport:_,onViewportChange:R,itemRefCallback:J,selectedItem:j,onItemLeave:Z,itemTextRefCallback:er,focusSelectedItem:q,selectedItemText:P,position:i,isPositioned:U,searchRef:K,children:(0,v.jsx)(S.A,{as:X,allowPinchZoom:!0,children:(0,v.jsx)(f.n,{asChild:!0,trapped:N.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.mK)(o,e=>{N.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,v.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:(0,v.jsx)(en,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:e=>e.preventDefault(),...O,...ei,onPlaced:()=>V(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...O.style},onKeyDown:(0,a.mK)(O.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
1if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Q(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=$().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>G(t)),e.preventDefault()}})})})})})})});Z.displayName="SelectContentImpl";var ee=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:i,...a}=e,s=M(W,r),u=J(W,r),[c,d]=n.useState(null),[p,f]=n.useState(null),h=(0,l.s)(t,e=>f(e)),m=D(r),g=n.useRef(!1),b=n.useRef(!0),{viewport:E,selectedItem:w,selectedItemText:T,focusSelectedItem:O}=u,N=n.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&p&&E&&w&&T){let e=s.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),r=s.valueNode.getBoundingClientRect(),n=T.getBoundingClientRect();if("rtl"!==s.dir){let i=n.left-t.left,a=r.left-i,s=e.left-a,l=e.width+s,u=Math.max(l,t.width),d=window.innerWidth-10,p=(0,o.q)(a,[10,Math.max(10,d-u)]);c.style.minWidth=l+"px",c.style.left=p+"px"}else{let i=t.right-n.right,a=window.innerWidth-r.right-i,s=window.innerWidth-e.right-a,l=e.width+s,u=Math.max(l,t.width),d=window.innerWidth-10,p=(0,o.q)(a,[10,Math.max(10,d-u)]);c.style.minWidth=l+"px",c.style.right=p+"px"}let a=m(),l=window.innerHeight-20,u=E.scrollHeight,d=window.getComputedStyle(p),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),v=f+h+u+parseInt(d.paddingBottom,10)+y,b=Math.min(5*w.offsetHeight,v),x=window.getComputedStyle(E),O=parseInt(x.paddingTop,10),N=parseInt(x.paddingBottom,10),C=e.top+e.height/2-10,S=w.offsetHeight/2,I=f+h+(w.offsetTop+S);if(I<=C){let e=a.length>0&&w===a[a.length-1].ref.current;c.style.bottom="0px";let t=Math.max(l-C,S+(e?N:0)+(p.clientHeight-E.offsetTop-E.offsetHeight)+y);c.style.height=I+t+"px"}else{let e=a.length>0&&w===a[0].ref.current;c.style.top="0px";let t=Math.max(C,f+E.offsetTop+(e?O:0)+S);c.style.height=t+(v-I)+"px",E.scrollTop=I-C+E.offsetTop}c.style.margin="10px 0",c.style.minHeight=b+"px",c.style.maxHeight=l+"px",i?.(),requestAnimationFrame(()=>g.current=!0)}},[m,s.trigger,s.valueNode,c,p,E,w,T,s.dir,i]);(0,x.N)(()=>N(),[N]);let[C,S]=n.useState();(0,x.N)(()=>{p&&S(window.getComputedStyle(p).zIndex)},[p]);let I=n.useCallback(e=>{e&&!0===b.current&&(N(),O?.(),b.current=!1)},[N,O]);return(0,v.jsx)(er,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:I,children:(0,v.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,v.jsx)(y.sG.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});ee.displayName="SelectItemAlignedPosition";var et=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:i=10,...o}=e,a=P(r);return(0,v.jsx)(m.UC,{...a,...o,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});et.displayName="SelectPopperPosition";var[er,en]=j(W,{}),ei="SelectViewport",eo=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:i,...o}=e,s=J(ei,r),u=en(ei,r),c=(0,l.s)(t,s.onViewportChange),d=n.useRef(0);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,v.jsx)(R.Slot,{scope:r,children:(0,v.jsx)(y.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,a.mK)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if(n?.current&&r){let e=Math.abs(d.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,i=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(i<n){let o=i+e,a=Math.min(n,o),s=o-a;r.style.height=a+"px","0px"===r.style.bottom&&(t.scrollTop=s>0?s:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});eo.displayName=ei;var ea="SelectGroup",[es,el]=j(ea),eu=n.forwardRef((e,t)=>
1{let{__scopeSelect:r,...n}=e,i=(0,h.B)();return(0,v.jsx)(es,{scope:r,id:i,children:(0,v.jsx)(y.sG.div,{role:"group","aria-labelledby":i,...n,ref:t})})});eu.displayName=ea;var ec="SelectLabel";n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=el(ec,r);return(0,v.jsx)(y.sG.div,{id:i.id,...n,ref:t})}).displayName=ec;var ed="SelectItem",[ep,ef]=j(ed),eh=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:i,disabled:o=!1,textValue:s,...u}=e,c=M(ed,r),d=J(ed,r),p=c.value===i,[f,m]=n.useState(s??""),[g,b]=n.useState(!1),E=(0,l.s)(t,e=>d.itemRefCallback?.(e,i,o)),w=(0,h.B)(),T=n.useRef("touch"),x=()=>{o||(c.onValueChange(i),c.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,v.jsx)(ep,{scope:r,value:i,disabled:o,textId:w,isSelected:p,onItemTextChange:n.useCallback(e=>{m(t=>t||(e?.textContent??"").trim())},[]),children:(0,v.jsx)(R.ItemSlot,{scope:r,value:i,disabled:o,textValue:f,children:(0,v.jsx)(y.sG.div,{role:"option","aria-labelledby":w,"data-highlighted":g?"":void 0,"aria-selected":p&&g,"data-state":p?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:E,onFocus:(0,a.mK)(u.onFocus,()=>b(!0)),onBlur:(0,a.mK)(u.onBlur,()=>b(!1)),onClick:(0,a.mK)(u.onClick,()=>{"mouse"!==T.current&&x()}),onPointerUp:(0,a.mK)(u.onPointerUp,()=>{"mouse"===T.current&&x()}),onPointerDown:(0,a.mK)(u.onPointerDown,e=>{T.current=e.pointerType}),onPointerMove:(0,a.mK)(u.onPointerMove,e=>{T.current=e.pointerType,o?d.onItemLeave?.():"mouse"===T.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.mK)(u.onPointerLeave,e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:(0,a.mK)(u.onKeyDown,e=>{(d.searchRef?.current===""||" "!==e.key)&&(A.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});eh.displayName=ed;var em="SelectItemText",eg=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:a,...s}=e,u=M(em,r),c=J(em,r),d=ef(em,r),p=U(em,r),[f,h]=n.useState(null),m=(0,l.s)(t,e=>h(e),d.onItemTextChange,e=>c.itemTextRefCallback?.(e,d.value,d.disabled)),g=f?.textContent,b=n.useMemo(()=>(0,v.jsx)("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:E,onNativeOptionRemove:w}=p;return(0,x.N)(()=>(E(b),()=>w(b)),[E,w,b]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(y.sG.span,{id:d.textId,...s,ref:m}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?i.createPortal(s.children,u.valueNode):null]})});eg.displayName=em;var ey="SelectItemIndicator",ev=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return ef(ey,r).isSelected?(0,v.jsx)(y.sG.span,{"aria-hidden":!0,...n,ref:t}):null});ev.displayName=ey;var eb="SelectScrollUpButton",eE=n.forwardRef((e,t)=>{let r=J(eb,e.__scopeSelect),i=en(eb,e.__scopeSelect),[o,a]=n.useState(!1),s=(0,l.s)(t,i.onScrollButtonChange);return(0,x.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){a(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,v.jsx)(ex,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eE.displayName=eb;var ew="SelectScrollDownButton",eT=n.forwardRef((e,t)=>{let r=J(ew,e.__scopeSelect),i=en(ew,e.__scopeSelect),[o,a]=n.useState(!1),s=(0,l.s)(t,i.onScrollButtonChange);return(0,x.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,v.jsx)(ex,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eT.displayName=ew;var ex=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:i,...o}=e,s=J("SelectScrollButton",r),l=n.useRef(null),u=D(r),c=n.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return n.useEffect(()=>()=>c(),[c]),(0,x.N)(()=>{let e=u().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[u]),(0,v.jsx)(y.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.mK)(o.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(i,50))}),onPointerMove:(0,a.mK)(o.onPointerMove,()=>{s.onItemLeave?.(),null===l.current&&(l.current=window.setInterval(i,50))}),onPointerLeave:(0,a.mK)(o.onPointerLeave,()=>{c()})})});n.forwardRef((e,t)=>
1{let{__scopeSelect:r,...n}=e;return(0,v.jsx)(y.sG.div,{"aria-hidden":!0,...n,ref:t})}).displayName="SelectSeparator";var eO="SelectArrow";n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=P(r),o=M(eO,r),a=J(eO,r);return o.open&&"popper"===a.position?(0,v.jsx)(m.i3,{...i,...n,ref:t}):null}).displayName=eO;var eN=n.forwardRef(({__scopeSelect:e,value:t,...r},i)=>{let o=n.useRef(null),a=(0,l.s)(i,o),s=(0,O.Z)(t);return n.useEffect(()=>{let e=o.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==t&&r){let n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[s,t]),(0,v.jsx)(y.sG.select,{...r,style:{...N.Qg,...r.style},ref:a,defaultValue:t})});function eC(e){return""===e||void 0===e}function eS(e){let t=(0,w.c)(e),r=n.useRef(""),i=n.useRef(0),o=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),a=n.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,o,a]}function eI(e,t,r){var n,i;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,s=(n=e,i=Math.max(a,0),n.map((e,t)=>n[(i+t)%n.length]));1===o.length&&(s=s.filter(e=>e!==r));let l=s.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}eN.displayName="SelectBubbleInput";var eA=V,e_=G,eR=z,eD=H,ek=K,ej=Q,eL=eo,eP=eu,eF=eh,eM=eg,e$=ev,eU=eE,eV=eT},2262:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});var n=r(212);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=n.$,a=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;let o=i(t)||i(n);return a[e][o]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,l,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},2400:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});let n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],i=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],o=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],a=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],s=(e,t,r)=>{let n=e;return"string"==typeof t||Array.isArray(t)?n=e.toLocaleString(t,r):(!0===t||void 0!==r)&&(n=e.toLocaleString(void 0,r)),n},l=e=>{if("number"==typeof e)return Math.log10(e);let t=e.toString(10);return t.length+Math.log10(`0.${t.slice(0,15)}`)},u=(e,t)=>{if(void 0===t)return e;if("number"!=typeof t||!Number.isSafeInteger(t)||t<0)throw TypeError(`Expected fixedWidth to be a non-negative integer, got ${typeof t}: ${t}`);return 0===t?e:e.length<t?e.padStart(t," "):e};function c(e,t){let r;if("bigint"!=typeof e&&!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);let c=(t={bits:!1,binary:!1,space:!0,nonBreakingSpace:!1,...t}).bits?t.binary?a:o:t.binary?i:n,d=t.space?t.nonBreakingSpace?"\xa0":" ":"",p="number"==typeof e?0===e:0n===e;if(t.signed&&p)return u(` 0${d}${c[0]}`,t.fixedWidth);let f=e<0,h=f?"-":t.signed?"+":"";f&&(e=-e);let m=(e=>{let{minimumFractionDigits:t,maximumFractionDigits:r}=e;if(void 0!==t||void 0!==r)return{...void 0!==t&&{minimumFractionDigits:t},...void 0!==r&&{maximumFractionDigits:r},roundingMode:"trunc"}})(t);if(e<1)r=h+s(e,t.locale,m)+d+c[0];else{var g;let n=Math.min(Math.floor(t.binary?("number"==typeof(g=e)?Math.log(g):l(g)*Math.log(10))/Math.log(1024):l(e)/3),c.length-1);if(e=((e,t)=>{if("number"==typeof e)return e/t;let r=e/BigInt(t),n=e%BigInt(t);return Number(r)+Number(n)/t})(e,(t.binary?1024:1e3)**n),!m){let t=Math.max(3,Math.floor(e).toString().length);e=e.toPrecision(t)}r=h+s(Number(e),t.locale,m)+d+c[n]}return u(r,t.fixedWidth)}},2535:(e,t,r)=>{"use strict";function n(e,[t,r]){return Math.min(r,Math.max(t,e))}r.d(t,{q:()=>n})},2601:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let n=r(4761),i=r(4851),o=r(5815),a=n._(r(2645));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/society/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=o.Image},2631:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o});var n=r(5729),i=r(9208);function o(e,t,r,a=0){let s=(0,n.useRef)(void 0),l=(0,n.useRef)(void 0),u=(0,n.useRef)(e),c=(0,n.useRef)(void 0),d=()=>{s.current&&(clearTimeout(s.current),s.current=void 0),l.current&&(clearTimeout(l.current),l.current=void 0)};return(0,i.l)(d),(0,n.useEffect)(()=>{u.current=e},t),(0,n.useMemo)(()=>{let t=()=>{if(d(),!c.current)return;let e=c.current;c.current=void 0,u.current.apply(e.this,e.args)},n=function(...e){s.current&&clearTimeout(s.current),c.current={args:e,this:this},s.current=setTimeout(t,r),a>0&&!l.current&&(l.current=setTimeout(t,a))};return Object.defineProperties(n,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__debounced__${r}`}}),n},[r,a,...t])}},2645:(e,t)=>{"use strict";function r(e){var t;let{config:r,src:n,width:i,quality:o}=e,a=o||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+a+(n.startsWith("/_next/static/media/")&&1?"&dpl=dpl_7fJxJCezkLMXQLpNbfLLkqoU1hbu":"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},2650:(e,t,r)=>{"use strict";r.d(t,{N:()=>o});var n=r(5729),i=r(9235);function o(e,t){let r=e=>{var r;let{editable:o=!0}=e;if((null==(r=e.field)?void 0:r.metadata)&&o&&(0,i.isFieldValueEmpty)(e.field)){let r=e.emptyFieldEditingComponent||t.defaultEmptyFieldEditingComponent,i=e;return e.emptyFieldEditingComponent||(i=Object.assign(Object.assign({},e),{editable:void 0,field:void 0})),n.createElement(r,Object.assign({},i))}return null};return t.isForwardRef?(0,n.forwardRef)((t,i)=>r(t)||n.createElement(e,Object.assign({},t,{ref:i}))):t=>r(t)||n.createElement(e,Object.assign({},t))}},2681:(e,t,r)=>{"use strict";r.d(t,{U:()=>s});var n=r(5729),i=r(9339);let o=new Map,a=e=>{let t=matchMedia(e),r=new Set,n=()=>{for(let e of r)e(t.matches)};return t.addEventListener("change",n,{passive:!0}),{mql:t,dispatchers:r,listener:n}};function s(e,t={}){let{initializeWithValue:r=!0}=t;i.Bd||(r=!1);let[l,u]=(0,n.useState)(()=>{if(r){let t=o.get(e);return t||(t=a(e),o.set(e,t)),t.mql.matches}});return(0,n.useEffect)(()=>{let t;return(t=o.get(e))||(t=a(e),o.set(e,t)),t.dispatchers.add(u),u(t.mql.matches),()=>{let t=o.get(e);if(t){let{mql:r,dispatchers:n,listener:i}=t;n.delete(u),0===n.size&&(o.delete(e),r.removeEventListener?r.removeEventListener("change",i):r.removeListener(i))}}},[e]),l}},2769:(e,t,r)=>{"use strict";r.d(t,{C1:()=>x,bL:()=>w});var n=r(5729),i=r(41),o=r(9829),a=r(5269),s=r(6697),l=r(8719),u=r(4347),c=r(8749),d=r(7454),p=r(6029),f="Checkbox",[h,m]=(0,o.A)(f),[g,y]=h(f);function v(e){let{__scopeCheckbox:t,checked:r,children:i,defaultChecked:o,disabled:a,form:l,name:u,onCheckedChange:c,required:d,value:h="on",internal_do_not_use_render:m}=e,[y,v]=(0,s.i)({prop:r,defaultProp:o??!1,onChange:c,caller:f}),[b,E]=n.useState(null),[w,T]=n.useState(null),x=n.useRef(!1),O=!b||!!l||!!b.closest("form"),N={checked:y,disabled:a,setChecked:v,control:b,setControl:E,name:u,form:l,value:h,hasConsumerStoppedPropagationRef:x,required:d,defaultChecked:!C(o)&&o,isFormControl:O,bubbleInput:w,setBubbleInput:T};return(0,p.jsx)(g,{scope:t,...N,children:"function"==typeof m?m(N):i})}var b="CheckboxTrigger",E=n.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...o},s)=>{let{control:l,value:u,disabled:c,checked:f,required:h,setControl:m,setChecked:g,hasConsumerStoppedPropagationRef:v,isFormControl:E,bubbleInput:w}=y(b,e),T=(0,i.s)(s,m),x=n.useRef(f);return n.useEffect(()=>{let e=l?.form;if(e){let t=()=>g(x.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[l,g]),(0,p.jsx)(d.sG.button,{type:"button",role:"checkbox","aria-checked":C(f)?"mixed":f,"aria-required":h,"data-state":S(f),"data-disabled":c?"":void 0,disabled:c,value:u,...o,ref:T,onKeyDown:(0,a.mK)(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,a.mK)(r,e=>{g(e=>!!C(e)||!e),w&&E&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})});E.displayName=b;var w=n.forwardRef((e,t)=>
1{let{__scopeCheckbox:r,name:n,checked:i,defaultChecked:o,required:a,disabled:s,value:l,onCheckedChange:u,form:c,...d}=e;return(0,p.jsx)(v,{__scopeCheckbox:r,checked:i,defaultChecked:o,disabled:s,required:a,onCheckedChange:u,name:n,form:c,value:l,internal_do_not_use_render:({isFormControl:e})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(E,{...d,ref:t,__scopeCheckbox:r}),e&&(0,p.jsx)(N,{__scopeCheckbox:r})]})})});w.displayName=f;var T="CheckboxIndicator",x=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...i}=e,o=y(T,r);return(0,p.jsx)(c.C,{present:n||C(o.checked)||!0===o.checked,children:(0,p.jsx)(d.sG.span,{"data-state":S(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});x.displayName=T;var O="CheckboxBubbleInput",N=n.forwardRef(({__scopeCheckbox:e,...t},r)=>{let{control:o,hasConsumerStoppedPropagationRef:a,checked:s,defaultChecked:c,required:f,disabled:h,name:m,value:g,form:v,bubbleInput:b,setBubbleInput:E}=y(O,e),w=(0,i.s)(r,E),T=(0,l.Z)(s),x=(0,u.X)(o);n.useEffect(()=>{if(!b)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!a.current;if(T!==s&&e){let r=new Event("click",{bubbles:t});b.indeterminate=C(s),e.call(b,!C(s)&&s),b.dispatchEvent(r)}},[b,T,s,a]);let N=n.useRef(!C(s)&&s);return(0,p.jsx)(d.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??N.current,required:f,disabled:h,name:m,value:g,form:v,...t,tabIndex:-1,ref:w,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function C(e){return"indeterminate"===e}function S(e){return C(e)?"indeterminate":e?"checked":"unchecked"}N.displayName=O},2847:(e,t,r)=>{"use strict";r.d(t,{UC:()=>eK,q7:()=>eW,ZL:()=>eH,bL:()=>eq,l9:()=>ez});var n=r(5729),i=r(5269),o=r(41),a=r(9829),s=r(6697),l=r(7454),u=r(2139),c=r(1979),d=r(7555),p=r(4249),f=r(1679),h=r(7913),m=r(609),g=r(1486),y=r(8749),v=r(4132),b=r(6029),E=Symbol("radix.slottable");function w(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===E}var T=r(9613),x=r(184),O=r(1713),N=["Enter"," "],C=["ArrowUp","PageDown","End"],S=["ArrowDown","PageUp","Home",...C],I={ltr:[...N,"ArrowRight"],rtl:[...N,"ArrowLeft"]},A={ltr:["ArrowLeft"],rtl:["ArrowRight"]},_="Menu",[R,D,k]=(0,u.N)(_),[j,L]=(0,a.A)(_,[k,m.Bk,v.RG]),P=(0,m.Bk)(),F=(0,v.RG)(),[M,$]=j(_),[U,V]=j(_),B=e=>{let{__scopeMenu:t,open:r=!1,children:i,dir:o,onOpenChange:a,modal:s=!0}=e,l=P(t),[u,d]=n.useState(null),p=n.useRef(!1),f=(0,T.c)(a),h=(0,c.jH)(o);return n.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,b.jsx)(m.bL,{...l,children:(0,b.jsx)(M,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:d,children:(0,b.jsx)(U,{scope:t,onClose:n.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:h,modal:s,children:i})})})};B.displayName=_;var G=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,i=P(r);return(0,b.jsx)(m.Mz,{...i,...n,ref:t})});G.displayName="MenuAnchor";var q="MenuPortal",[z,H]=j(q,{forceMount:void 0}),K=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=$(q,t);return(0,b.jsx)(z,{scope:t,forceMount:r,children:(0,b.jsx)(y.C,{present:r||o.open,children:(0,b.jsx)(g.Z,{asChild:!0,container:i,children:n})})})};K.displayName=q;var W="MenuContent",[Q,Y]=j(W),J=n.forwardRef((e,t)=>{let r=H(W,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=$(W,e.__scopeMenu),a=V(W,e.__scopeMenu);return(0,b.jsx)(R.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(y.C,{present:n||o.open,children:(0,b.jsx)(R.Slot,{scope:e.__scopeMenu,children:a.modal?(0,b.jsx)(X,{...i,ref:t}):(0,b.jsx)(Z,{...i,ref:t})})})})}),X=n.forwardRef((e,t)=>{let r=$(W,e.__scopeMenu),a=n.useRef(null),s=(0,o.s)(t,a);return n.useEffect(()=>{let e=a.current;if(e)return(0,x.Eq)(e)},[]),(0,b.jsx)(et,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Z=n.forwardRef((e,t)=>
1{let r=$(W,e.__scopeMenu);return(0,b.jsx)(et,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),ee=function(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var a;let e,s,l=(a=r,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,o.t)(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,a=n.Children.toArray(i),s=a.find(w);if(s){let e=s.props.children,i=a.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,b.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,b.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}("MenuContent.ScrollLock"),et=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:a=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:h,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:E,onInteractOutside:w,onDismiss:T,disableOutsideScroll:x,...N}=e,I=$(W,r),A=V(W,r),_=P(r),R=F(r),k=D(r),[j,L]=n.useState(null),M=n.useRef(null),U=(0,o.s)(t,M,I.onContentChange),B=n.useRef(0),G=n.useRef(""),q=n.useRef(0),z=n.useRef(null),H=n.useRef("right"),K=n.useRef(0),Y=x?O.A:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(B.current),[]),(0,p.Oh)();let J=n.useCallback(e=>H.current===z.current?.side&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e],s=t[o],l=a.x,u=a.y,c=s.x,d=s.y;u>n!=d>n&&r<(c-l)*(n-u)/(d-u)+l&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)}(e,z.current?.area),[]);return(0,b.jsx)(Q,{scope:r,searchRef:G,onItemEnter:n.useCallback(e=>{J(e)&&e.preventDefault()},[J]),onItemLeave:n.useCallback(e=>{J(e)||(M.current?.focus(),L(null))},[J]),onTriggerLeave:n.useCallback(e=>{J(e)&&e.preventDefault()},[J]),pointerGraceTimerRef:q,onPointerGraceIntentChange:n.useCallback(e=>{z.current=e},[]),children:(0,b.jsx)(Y,{...x?{as:ee,allowPinchZoom:!0}:void 0,children:(0,b.jsx)(f.n,{asChild:!0,trapped:s,onMountAutoFocus:(0,i.mK)(l,e=>{e.preventDefault(),M.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,b.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:E,onInteractOutside:w,onDismiss:T,children:(0,b.jsx)(v.bL,{asChild:!0,...R,dir:A.dir,orientation:"vertical",loop:a,currentTabStopId:j,onCurrentTabStopIdChange:L,onEntryFocus:(0,i.mK)(h,e=>{A.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,b.jsx)(m.UC,{role:"menu","aria-orientation":"vertical","data-state":eS(I.open),"data-radix-menu-content":"",dir:A.dir,..._,...N,ref:U,style:{outline:"none",...N.style},onKeyDown:(0,i.mK)(N.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&(e=>{let t=G.current+e,r=k().filter(e=>!e.disabled),n=document.activeElement,i=r.find(e=>e.ref.current===n)?.textValue,o=function(e,t,r){var n;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1,a=(n=Math.max(o,0),e.map((t,r)=>e[(n+r)%e.length]));1===i.length&&(a=a.filter(e=>e!==r));let s=a.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return s!==r?s:void 0}(r.map(e=>e.textValue),t,i),a=r.find(e=>e.textValue===o)?.ref.current;!function e(t){G.current=t,window.clearTimeout(B.current),""!==t&&(B.current=window.setTimeout(()=>e(""),1e3))}(t),a&&setTimeout(()=>a.focus())})(e.key));let i=M.current;
1if(e.target!==i||!S.includes(e.key))return;e.preventDefault();let o=k().filter(e=>!e.disabled).map(e=>e.ref.current);C.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,i.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(B.current),G.current="")}),onPointerMove:(0,i.mK)(e.onPointerMove,e_(e=>{let t=e.target,r=K.current!==e.clientX;e.currentTarget.contains(t)&&r&&(H.current=e.clientX>K.current?"right":"left",K.current=e.clientX)}))})})})})})})});J.displayName=W;var er=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(l.sG.div,{role:"group",...n,ref:t})});er.displayName="MenuGroup";var en=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(l.sG.div,{...n,ref:t})});en.displayName="MenuLabel";var ei="MenuItem",eo="menu.itemSelect",ea=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:a,...s}=e,u=n.useRef(null),c=V(ei,e.__scopeMenu),d=Y(ei,e.__scopeMenu),p=(0,o.s)(t,u),f=n.useRef(!1);return(0,b.jsx)(es,{...s,ref:p,disabled:r,onClick:(0,i.mK)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(eo,{bubbles:!0,cancelable:!0});e.addEventListener(eo,e=>a?.(e),{once:!0}),(0,l.hO)(e,t),t.defaultPrevented?f.current=!1:c.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:(0,i.mK)(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;r||t&&" "===e.key||N.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ea.displayName=ei;var es=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:a=!1,textValue:s,...u}=e,c=Y(ei,r),d=F(r),p=n.useRef(null),f=(0,o.s)(t,p),[h,m]=n.useState(!1),[g,y]=n.useState("");return n.useEffect(()=>{let e=p.current;e&&y((e.textContent??"").trim())},[u.children]),(0,b.jsx)(R.ItemSlot,{scope:r,disabled:a,textValue:s??g,children:(0,b.jsx)(v.q7,{asChild:!0,...d,focusable:!a,children:(0,b.jsx)(l.sG.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...u,ref:f,onPointerMove:(0,i.mK)(e.onPointerMove,e_(e=>{a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,e_(e=>c.onItemLeave(e))),onFocus:(0,i.mK)(e.onFocus,()=>m(!0)),onBlur:(0,i.mK)(e.onBlur,()=>m(!1))})})})}),el=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,b.jsx)(eg,{scope:e.__scopeMenu,checked:r,children:(0,b.jsx)(ea,{role:"menuitemcheckbox","aria-checked":eI(r)?"mixed":r,...o,ref:t,"data-state":eA(r),onSelect:(0,i.mK)(o.onSelect,()=>n?.(!!eI(r)||!r),{checkForDefaultPrevented:!1})})})});el.displayName="MenuCheckboxItem";var eu="MenuRadioGroup",[ec,ed]=j(eu,{value:void 0,onValueChange:()=>{}}),ep=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...i}=e,o=(0,T.c)(n);return(0,b.jsx)(ec,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,b.jsx)(er,{...i,ref:t})})});ep.displayName=eu;var ef="MenuRadioItem",eh=n.forwardRef((e,t)=>{let{value:r,...n}=e,o=ed(ef,e.__scopeMenu),a=r===o.value;return(0,b.jsx)(eg,{scope:e.__scopeMenu,checked:a,children:(0,b.jsx)(ea,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":eA(a),onSelect:(0,i.mK)(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});eh.displayName=ef;var em="MenuItemIndicator",[eg,ey]=j(em,{checked:!1}),ev=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...i}=e,o=ey(em,r);return(0,b.jsx)(y.C,{present:n||eI(o.checked)||!0===o.checked,children:(0,b.jsx)(l.sG.span,{...i,ref:t,"data-state":eA(o.checked)})})});ev.displayName=em;var eb=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,b.jsx)(l.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eb.displayName="MenuSeparator";var eE=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,i=P(r);return(0,b.jsx)(m.i3,{...i,...n,ref:t})});eE.displayName="MenuArrow";var[ew,eT]=j("MenuSub"),ex="MenuSubTrigger",eO=n.forwardRef((e,t)=>{let r=$(ex,e.__scopeMenu),a=V(ex,e.__scopeMenu),s=eT(ex,e.__scopeMenu),l=Y(ex,e.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=l,p={__scopeMenu:e.__scopeMenu},f=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>f,[f]),n.useEffect(()=>
1{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,b.jsx)(G,{asChild:!0,...p,children:(0,b.jsx)(es,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":eS(r.open),...e,ref:(0,o.t)(t,s.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,i.mK)(e.onPointerMove,e_(t=>{l.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100)))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,e_(e=>{f();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,i="right"===n,o=t[i?"left":"right"],a=t[i?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:o,y:t.top},{x:a,y:t.top},{x:a,y:t.bottom},{x:o,y:t.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.mK)(e.onKeyDown,t=>{let n=""!==l.searchRef.current;e.disabled||n&&" "===t.key||I[a.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})});eO.displayName=ex;var eN="MenuSubContent",eC=n.forwardRef((e,t)=>{let r=H(W,e.__scopeMenu),{forceMount:a=r.forceMount,...s}=e,l=$(W,e.__scopeMenu),u=V(W,e.__scopeMenu),c=eT(eN,e.__scopeMenu),d=n.useRef(null),p=(0,o.s)(t,d);return(0,b.jsx)(R.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(y.C,{present:a||l.open,children:(0,b.jsx)(R.Slot,{scope:e.__scopeMenu,children:(0,b.jsx)(et,{id:c.contentId,"aria-labelledby":c.triggerId,...s,ref:p,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,i.mK)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=A[u.dir].includes(e.key);t&&r&&(l.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});function eS(e){return e?"open":"closed"}function eI(e){return"indeterminate"===e}function eA(e){return eI(e)?"indeterminate":e?"checked":"unchecked"}function e_(e){return t=>"mouse"===t.pointerType?e(t):void 0}eC.displayName=eN;var eR="DropdownMenu",[eD,ek]=(0,a.A)(eR,[L]),ej=L(),[eL,eP]=eD(eR),eF=e=>{let{__scopeDropdownMenu:t,children:r,dir:i,open:o,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,c=ej(t),d=n.useRef(null),[p,f]=(0,s.i)({prop:o,defaultProp:a??!1,onChange:l,caller:eR});return(0,b.jsx)(eL,{scope:t,triggerId:(0,h.B)(),triggerRef:d,contentId:(0,h.B)(),open:p,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),modal:u,children:(0,b.jsx)(B,{...c,open:p,onOpenChange:f,dir:i,modal:u,children:r})})};eF.displayName=eR;var eM="DropdownMenuTrigger",e$=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,s=eP(eM,r),u=ej(r);return(0,b.jsx)(G,{asChild:!0,...u,children:(0,b.jsx)(l.sG.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:(0,o.t)(t,s.triggerRef),onPointerDown:(0,i.mK)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});e$.displayName=eM;var eU=e=>{let{__scopeDropdownMenu:t,...r}=e,n=ej(t);return(0,b.jsx)(K,{...n,...r})};eU.displayName="DropdownMenuPortal";var eV="DropdownMenuContent",eB=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,a=eP(eV,r),s=ej(r),l=n.useRef(!1);return(0,b.jsx)(J,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...o,ref:t,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{l.current||a.triggerRef.current?.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,i.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!a.modal||n)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eB.displayName=eV,n.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:r,...n}=e,i=ej(r);return(0,b.jsx)(er,{...i,...n,ref:t})}).displayName="DropdownMenuGroup",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=ej(r);return(0,b.jsx)(en,{...i,...n,ref:t})}).displayName="DropdownMenuLabel";var eG=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=ej(r);return(0,b.jsx)(ea,{...i,...n,ref:t})});eG.displayName="DropdownMenuItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=ej(r);return(0,b.jsx)(el,{...i,...n,ref:t})}).displayName="DropdownMenuCheckboxItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=ej(r);return(0,b.jsx)(ep,{...i,...n,ref:t})}).displayName="DropdownMenuRadioGroup",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=ej(r);return(0,b.jsx)(eh,{...i,...n,ref:t})}).displayName="DropdownMenuRadioItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=ej(r);return(0,b.jsx)(ev,{...i,...n,ref:t})}).displayName="DropdownMenuItemIndicator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=ej(r);return(0,b.jsx)(eb,{...i,...n,ref:t})}).displayName="DropdownMenuSeparator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=ej(r);return(0,b.jsx)(eE,{...i,...n,ref:t})}).displayName="DropdownMenuArrow",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=ej(r);return(0,b.jsx)(eO,{...i,...n,ref:t})}).displayName="DropdownMenuSubTrigger",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=ej(r);return(0,b.jsx)(eC,{...i,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var eq=eF,ez=e$,eH=eU,eK=eB,eW=eG},2853:(e,t,r)=>{"use strict";var n=r(5210),i=r(4373),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(o,"")}var p=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function h(e){var t,n=("undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{}).location||{},i={},o=typeof(e=e||n);if("blob:"===e.protocol)i=new y(unescape(e.pathname),{});else if("string"===o)for(t in i=new y(e,{}),f)delete i[t];else if("object"===o){for(t in e)t in f||(i[t]=e[t]);void 0===i.slashes&&(i.slashes=s.test(e.href))}return i}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=d(e)).replace(a,""),t=t||{};var r,n=u.exec(e),i=n[1]?n[1].toLowerCase():"",o=!!n[2],s=!!n[3],l=0;return o?s?(r=n[2]+n[3]+n[4],l=n[2].length+n[3].length):(r=n[2]+n[4],l=n[2].length):s?(r=n[3]+n[4],l=n[3].length):r=n[4],"file:"===i?l>=2&&(r=r.slice(2)):m(i)?r=n[4]:i?o&&(r=r.slice(2)):l>=2&&m(t.protocol)&&(r=n[4]),{protocol:i,slashes:o||m(i),slashesCount:l,rest:r}}function y(e,t,r){if(e=(e=d(e)).replace(a,""),!(this instanceof y))return new y(e,t,r);var o,s,l,u,f,v,b=p.slice(),E=typeof t,w=0;for("object"!==E&&"string"!==E&&(r=t,t=null),r&&"function"!=typeof r&&(r=i.parse),o=!(s=g(e||"",t=h(t))).protocol&&!s.slashes,this.slashes=s.slashes||o&&t.slashes,this.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||c.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!m(this.protocol)))&&(b[3]=[/(.*)/,"pathname"]);w<b.length;w++){if("function"==typeof(u=b[w])){e=u(e,this);continue}l=u[0],v=u[1],l!=l?this[v]=e:"string"==typeof l?~(f="@"===l?e.lastIndexOf(l):e.indexOf(l))&&("number"==typeof u[2]?(this[v]=e.slice(0,f),e=e.slice(f+u[2])):(this[v]=e.slice(f),e=e.slice(0,f))):(f=l.exec(e))&&(this[v]=f[1],e=e.slice(0,f.index)),this[v]=this[v]||o&&u[3]&&t[v]||"",u[4]&&(this[v]=this[v].toLowerCase())}r&&(this.query=r(this.query)),o&&t.slashes&&"/"!==this.pathname.charAt(0)&&(""!==this.pathname||""!==t.pathname)&&(this.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,i=r[n-1],o=!1,a=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),a++):a&&(0===n&&(o=!0),r.splice(n,1),a--);return o&&r.unshift(""),("."===i||".."===i)&&r.push(""),r.join("/")}(this.pathname,t.pathname)),"/"!==this.pathname.charAt(0)&&m(this.protocol)&&(this.pathname="/"+this.pathname),n(this.port,this.protocol)||(this.host=this.hostname,this.port=""),this.username=this.password="",this.auth&&(~(f=this.auth.indexOf(":"))?(this.username=this.auth.slice(0,f),this.username=encodeURIComponent(decodeURIComponent(this.username)),this.password=this.auth.slice(f+1),this.password=encodeURIComponent(decodeURIComponent(this.password))):this.username=encodeURIComponent(decodeURIComponent(this.auth)),this.auth=this.password?this.username+":"+this.password:this.username),this.origin="file:"!==this.protocol&&m(this.protocol)&&this.host?this.protocol+"//"+this.host:"null",this.href=this.toString()}y.prototype={set:function(e,t,r){switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||i.parse)(t)),this[e]=t;break;case"port":this[e]=t,n(t,this.protocol)?t&&(this.host=this.hostname+":"+t):(this.host=this.hostname,this[e]="");break;case"hostname":this[e]=t,this.port&&(t+=":"+this.port),this.host=t;break;case"host":this[e]=t,l.test(t)?(t=t.split(":"),this.port=t.pop(),this.hostname=t.join(":")):(this.hostname=t,this.port="");break;case"protocol":this.protocol=t.toLowerCase(),this.slashes=!r;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";this[e]=t.charAt(0)!==o?o+t:t}else this[e]=t;break;case"username":case"password":this[e]=encodeURIComponent(t);break;case"auth":var a=t.indexOf(":");~a?(this.username=t.slice(0,a),this.username=encodeURIComponent(decodeURIComponent(this.username)),this.password=t.slice(a+1),this.password=encodeURIComponent(decodeURIComponent(this.password))):this.username=encodeURIComponent(decodeURIComponent(t))}for(var s=0;s<p.length;s++){var u=p[s];u[4]&&(this[u[1]]=this[u[1]].toLowerCase())}return this.auth=this.password?this.username+":"+this.password:this.username,this.origin="file:"!==this.protocol&&m(this.protocol)&&this.host?this.protocol+"//"+this.host:"null",this.href=this.toString(),this},toString:function(e){e&&"function"==typeof e||(e=i.stringify);var t,r=this.host,n=this.protocol;n&&":"!==n.charAt(n.length-1)&&(n+=":");var o=n+(this.protocol&&this.slashes||m(this.protocol)?"//":"");return this.username?(o+=this.username,this.password&&(o+=":"+this.password),o+="@"):this.password?(o+=":"+this.password,o+="@"):"file:"!==this.protocol&&m(this.protocol)&&!r&&"/"!==this.pathname&&(o+="@"),(":"===r[r.length-1]||l.test(this.hostname)&&!this.port)&&(r+=":"),o+=r+this.pathname,(t="object"==typeof this.query?e(this.query):this.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),this.hash&&(o+=this.hash),o}},y.extractProtocol=g,y.location=h,y.trimLeft=d,y.qs=i,e.exports=y},2919:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var n=r(5729);r(6760);var i=r(7628),o=r(6029),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let r=(0,i.TL)(`Primitive.${t}`),a=n.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?r:t,{...a,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),s=n.forwardRef((e,t)=>(0,o.jsx)(a.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));s.displayName="Label";var l=s},2955:(e,t,r)=>{"use strict";r.d(t,{O:()=>t2});var n=r(5729);let i=e=>{let t=e.rendering&&e.rendering.componentName?e.rendering.componentName:"Unnamed Component";e.errorOverride||console.log(`Component props for unimplemented '${t}' component`,e);let r=e.errorOverride||"JSS component is missing React implementation. See the developer console for more information.";return n.createElement("div",{style:{background:"darkorange",outline:"5px solid orange",padding:"10px",color:"white",maxWidth:"500px"}},n.createElement("h2",null,t),n.createElement("p",null,r))};i.displayName="MissingComponent";var o=r(9235),a=r(9051),s=r(9777);let l={backgroundImage:"linear-gradient(45deg, #ffffff 25%, #dcdcdc 25%, #dcdcdc 50%, #ffffff 50%, #ffffff 75%, #dcdcdc 75%, #dcdcdc 100%)",backgroundSize:"3px 3px",display:"flex",justifyContent:"center",alignItems:"center",padding:"30px",color:"#aaa"},u=()=>n.createElement("div",{style:l},"The component is hidden");function c(e){return d(e).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,function(e){return"-"+e.toLowerCase()})}function d(e){return(e=(e=e.replace(/[-_ ]+/g," ")).charAt(0).toLowerCase()+e.slice(1)).split(/\s+/).map((e,t)=>0===t?e:e.charAt(0).toUpperCase()+e.slice(1)).join("")}var p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},f={},h=e=>{var{properties:t}=e;return Object.assign(Object.assign({},p(e,["properties"])),{type:"object",properties:{name:{type:"string"},displayName:{type:"string"},id:{type:"string"},url:{type:"string"},fields:m(t)}})};function m(e={}){return{type:"object",properties:Object.keys(e).reduce((t,r)=>{let n=e[r],{title:i}=n;return p(n,["title"]),Object.assign(Object.assign({},t),{[r]:{type:"object",properties:{value:Object.assign({title:i||r},e[r])}}})},{})}}var g={Link:()=>({type:"object",properties:{href:{required:!0,type:"string",title:"URL",description:"The URL of the link, except for media items, for which the Url property contains the path to the media item relative to /Sitecore/Media Library."},text:{type:"string",title:"Text",description:"The text content of the HTML <a> element."},linktype:{type:"string",enum:["internal","external","media","anchor","mailto","javascript"],default:"internal",title:"Target",description:"The target attribute of the HTML <a> element."},title:{type:"string",title:"Title",description:"The title attribute of the HTML <a> element."},class:{type:"string",title:"Class Name",description:"The class attribute of the HTML <a> element."},target:{type:"string",title:"Target",description:"The target attribute of the HTML <a> element.",enum:["","_blank","_self","_parent","_top"]},anchor:{type:"string",title:"Anchor",description:"The name attribute of the HTML <a> element, without the leading hash character (â#â)."},querystring:{type:"string",title:"Query String",description:"Query string parameters to add to the URL."}}}),DropLink:h,DropTree:h,File:()=>({type:"object",properties:{src:{type:"string",title:"Source",description:"The URL of the file."},title:{type:"string",title:"Title",description:"Title of a file"},displayName:{type:"string",title:"Display name",description:"Display name of a file"}}}),Date:()=>({type:"string",format:"date"}),Datetime:()=>({type:"string",format:"date-time"}),RichText:()=>({type:"string"}),Image:e=>({type:"object",properties:Object.assign({src:{type:"string"}},e.properties)}),SingleLineText:()=>{},MultiLineText:()=>({type:"string"}),Checkbox:()=>({type:"boolean"}),String:()=>({type:"string"}),Number:()=>({type:"number"}),Boolean:()=>({type:"boolean"}),Item:h,List:e=>{var{properties:t}=e;return Object.assign(Object.assign({},p(e,["properties"])),{type:"array",items:{type:"object",properties:{name:{type:"string"},displayName:{type:"string"},id:{type:"string"},url:{type:"string"},fields:m(t)}}})}};function y(e,t={}){return function e(t,r){var n={};for(var i in t){let o=t[i];o&&"object"==typeof o?Array.isArray(o)?n[i]=o.map(t=>"object"==typeof t&&t?e(t,r):t):n[i]=e(r(o),r):n[i]=t[i]}return n}(e=v(Object.assign({type:"object",properties:{},required:[]},e)),e=>e.properties?v(e,t):e)}function v(e,t={}){var r;let n=Object.assign({},e);return n.properties&&(n.required=(null==(r=e.required)?void 0:r.slice())||[],n.properties=Object.keys(n.properties).reduce((e,r)=>{var i;let o=n.properties[r],a=null==(i=f[null==o?void 0:o.type])?void 0:i.call(f,o),s=Object.assign(Object.assign(Object.assign({},a),o),{type:(null==a?void 0:a.type)||o.type,default:t.hasOwnProperty(r)?t[r]:o.default,title:o.title||c(r).split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")});return(null!=o&&o.properties||null!=a&&a.properties)&&(s.properties=Object.assign({},(null==a?void 0:a.properties)||(null==o?void 0:o.properties)),Object.keys((null==a?void 0:a.properties)||{}
1).forEach(e=>{var t,r;s.properties[e]=Object.assign(Object.assign({},null==(t=null==a?void 0:a.properties)?void 0:t[e]),null==(r=null==o?void 0:o.properties)?void 0:r[e])})),(null!=o&&o.items||null!=a&&a.items)&&(s.items=(null==a?void 0:a.items)||(null==o?void 0:o.items)),void 0===s.default&&delete s.default,"required"in s&&"boolean"==typeof s.required&&(-1==n.required.indexOf(r)&&n.required.push(r),delete s.required),Object.assign(e,{[r]:s})},{})),Object.assign({type:"object"},n)}Object.keys(g).forEach(e=>{!function(e,{name:t}){if(t.charAt(0)!=t.charAt(0).toUpperCase())throw Error("Custom types must start with a capital letter");f[t]=e}(g[e],{name:e})});var b=(e,t)=>{var r,n,i,o;let a=Object.assign({},e);for(var s in t)"object"==typeof t[s]&&t[s]&&(((null==(r=t[s])?void 0:r.type)=="integer"||(null==(n=t[s])?void 0:n.type)=="number")&&(a[s]=Object.assign(Object.assign({},a[s]),{"ui:options":{widget:"updown"}})),null!=(i=t[s])&&i.ui&&(a[s]=Object.assign(Object.assign({},a[s]),{"ui:options":Object.assign(Object.assign({},null==(o=a[s])?void 0:o["ui:options"]),t[s].ui)})),a=Object.assign(Object.assign({},a),{[s]:t[s].items?{items:b(a[s],t[s].items.properties)}:b(a[s],t[s].properties||{})}));return a};function E(e,t){switch(t){case"string":default:return e;case"object":try{return"object"==typeof e&&null!=e?e:JSON.parse(e)}catch(e){return null}case"array":try{return Array.isArray(e)?e:JSON.parse(e)}catch(e){return null}case"number":return parseFloat(e);case"integer":return parseInt(e);case"boolean":return"true"==e||"1"==e}}var w="undefined"!=typeof window?window.BYOCDatasources||(window.BYOCDatasources={}):{};function T(e,t){if("function"!=typeof e)throw Error("The first argument of registerDatasource must be a function returning DataSettings or Promise of data");if(!t.id)throw Error("Missing 'id' property in input");if(!/^[a-zA-Z0-9-_]+$/.test(t.id))throw Error("Invalid 'id' property in input. 'id' should only contain alphanumeric characters, hyphens, and underscores.");w[t.id]=Object.assign(Object.assign({},function(e){let{id:t,name:r,title:n,properties:i,sample:o,schema:a,description:s=null,type:l="object"}=e;return{id:t,description:s,sample:o,name:r||n||t,handler:e=>e,schema:a||i?y(Object.assign(Object.assign({},a||{properties:i,type:l}),{title:(null==a?void 0:a.title)||n||r})):void 0}}(t)),{handler:e}),x()}function x(){clearTimeout(N),"undefined"!=typeof window&&window.parent!==window&&(N=setTimeout(()=>{var e;null==(e=window.parent)||e.postMessage(JSON.stringify({action:"register-datasources",data:Object.values(w)}),"*")},30))}function O(e,t){let r=w[e];return null!=r&&r.handler?r.handler(t):t}x();var N,C,S=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},I="undefined"!=typeof HTMLElement?HTMLElement:"undefined"!=typeof windowJSDOM?windowJSDOM.HTMLElement:class{setAttribute(){}},A="undefined"!=typeof window?window.BYOCComponents||(window.BYOCComponents={}):{};function _(e,t,r={}){if(!(null!=t&&t.name))throw Error("Could not register external component. Please make sure you provide a name in the options"+JSON.stringify(t));let n=function(e,t,r){let{thumbnail:n="https://feaasstatic.blob.core.windows.net/assets/thumbnails/byoc.svg",name:i,id:o=e.name,group:a=null,ui:s,isHidden:l=!1,datasourceIds:u=[],links:c={},meta:d={},uiSchema:p,schema:f}=e,h=S(e,["thumbnail","name","id","group","ui","isHidden","datasourceIds","links","meta","uiSchema","schema"]),m=y(Object.assign(Object.assign({description:"External component"},f||h||{}),{type:"object"}),r),g=b(p||s||{},m.properties||{});return{component:t||(()=>null),name:i,schema:m,uiSchema:g,thumbnail:n,group:a||"Default collection",isHidden:l,id:o,datasourceIds:u,links:c,meta:d,title:(null==m?void 0:m.title)||(null==h?void 0:h.title)||i}}(t,e,r);A[n.id]=n,R(e)&&L.register("byoc-"+c(t.name),void 0,e),j()}function R(e){return e&&"prototype"in e&&"setAttribute"in e.prototype}function D(e){if("string"!=typeof e){if(e&&"schema"in e)return e;throw Error(`Component name should be a string, got ${typeof e}`)}let[t,r]=e.split("?");var n=A[t];if(r){let t=A[e];if(!t&&!n)return null;t&&(n=Object.assign(Object.assign(Object.assign({},n),t),{component:t.component||(null==n?void 0:n.component)}
1)),r.split(/\&/g).forEach(e=>{var t,r,i;let[o,a]=e.split("="),s=(null==(t=n.schema.properties)?void 0:t[o])||{type:"string"};n=Object.assign(Object.assign({},n),{schema:Object.assign(Object.assign({},n.schema),{properties:Object.assign(Object.assign({},n.schema.properties),{[o]:Object.assign(Object.assign({},s),{default:E(decodeURIComponent(a),s.type)})})}),uiSchema:Object.assign(Object.assign({},n.uiSchema),{[o]:Object.assign(Object.assign({},n.uiSchema[o]),{"ui:widget":null!=(i=null==(r=n.uiSchema[o])?void 0:r["ui:widget"])?i:"hidden"})})})})}return n}function k(e){let{componentName:t,className:r,fallbackWrapper:n,fallback:i,suppressHydrationWarning:o,_dynamic:a,datasources:s}=e,l=S(e,["componentName","className","fallbackWrapper","fallback","suppressHydrationWarning","_dynamic","datasources"]);try{var u="string"==typeof s?JSON.parse(s):s}catch(e){}let p=Object.values(u||{}).find(e=>e&&!Array.isArray(e)&&Object.keys(e).length>0),f=Object.assign(Object.assign(Object.assign({},p),function(e,t={}){var r,n;let i=null==(r=D(e))?void 0:r.schema;return i?Object.assign(Object.assign({},Object.keys((n=i).properties).reduce((e,t)=>{var r,i;return(null==(r=n.properties[t])?void 0:r.default)!=null?Object.assign(Object.assign({},e),{[t]:null==(i=n.properties[t])?void 0:i.default}):e},{})),Object.keys(t).reduce((e,r)=>{let n=t[r],o=d(r),a=null==i?void 0:i.properties[o],s=E(n,null==a?void 0:a.type);return null==s||r.startsWith("data-attribute")||["class","id","contenteditable"].includes(r)?e:Object.assign(Object.assign({},e),{[o]:s})},{})):t}(t,Object.assign(Object.assign({},p),l))),u?{datasources:u}:{}),h=Object.assign(Object.assign({"data-external-id":t},((e={})=>Object.keys(e).reduce((t,r)=>Object.assign(t,{[c(r)]:e[r]}),{}))(f)),{suppressHydrationWarning:!0,class:r});return F.forEach(e=>{Object.assign(h,{[c(e)]:P[e]})}),Object.keys(h).forEach(e=>{let t=h[e];if(t&&"object"==typeof t&&"class"!=e&&"children"!=e)try{Object.assign(h,{[e]:JSON.stringify(t)})}catch(t){delete h[e]}("function"==typeof t||null==t)&&delete h[e]}),{attributes:h,properties:f,merged:Object.assign(Object.assign({},P),f)}}function j(){clearTimeout(C),"undefined"!=typeof window&&window.parent!==window&&(C=setTimeout(()=>{var e;null==(e=window.parent)||e.postMessage(JSON.stringify({action:"register-components",data:Object.values(A)}),"*")},30))}j();var L=class extends I{connectedCallback(){try{JSON.parse(String(this.getAttribute("components"))).forEach(e=>{D(e.id)||_(null,e)}),JSON.parse(String(this.getAttribute("datasources"))).forEach(e=>{w[e.id]||T(e=>e,e)})}catch(e){}}static register(e,t,r=this){null==t&&(t="undefined"!=typeof window?window:void 0),t&&!t.customElements.get(e)&&t.customElements.define(e,class extends r{})}},P={},F=["sitecoreEdgeUrl","sitecoreEdgeContextId"];L.register("byoc-registration");function M(e){return 0==Object.keys(e).length?n.createElement(n.Fragment,null):function(e){let{componentName:t,fallback:r,fallbackWrapper:i}=e,o=D(t),a=null==o?void 0:o.component,{attributes:s,properties:l,merged:u}=k(e);if(!a&&r||!t)return!1===i?n.createElement(n.Fragment,null,r):n.createElement("feaas-external",Object.assign({},s,{hydrate:"false"}),r);if(o&&a&&R(a)){let e="byoc-"+c(o.id);return n.createElement(e,Object.assign(Object.assign({},s),{ref:t=>{var r;t&&"undefined"!=typeof window&&(null==(r=window.customElements)||r.whenDefined(e).then(()=>{var e;null==(e=t.sitecoreContextCallback)||e.call(t,Object.assign({},u))}))}}))}return n.createElement(n.Fragment,null,n.createElement("feaas-external",Object.assign({},s,{hydrate:"false"}),null==a?null:n.createElement(a,Object.assign({},u))))}(e)}var $=r(6760),U=Object.defineProperty,V=(e,t)=>{for(var r in t)U(e,r,{get:t[r],enumerable:!0})},B={};V(B,{renderDOMContent:()=>eR,renderDOMElement:()=>eA,renderHTMLContent:()=>eD,setDOMAttribute:()=>eS});var G={};function q(e){return(q="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})(e)}function z(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function H(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function K(e,t,r){return t&&H(e.prototype,t),r&&H(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
1function Q(e,t){return(Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function J(e,t,r){return(J=Y()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&Q(i,r.prototype),i}).apply(null,arguments)}function X(e){var t="function"==typeof Map?new Map:void 0;return(X=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if("u">typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return J(e,arguments,W(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Q(r,e)})(e)}function Z(e,t){if(e){if("string"==typeof e)return ee(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ee(e,t)}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}V(G,{JSONPath:()=>eo,queryObject:()=>eu,queryObjectRaw:()=>el,queryScopes:()=>ec,serializeCH1RichText:()=>ep});var et=Object.prototype.hasOwnProperty;function er(e,t){return(e=e.slice()).push(t),e}function en(e,t){return(t=t.slice()).unshift(e),t}var ei=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Q(n,e);var t,r=(t=Y(),function(){var e,r=W(n);e=t?Reflect.construct(r,arguments,W(this).constructor):r.apply(this,arguments);if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function n(e){var t;return z(this,n),(t=r.call(this,'JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)')).avoidNew=!0,t.value=e,t.name="NewError",t}return K(n)}(X(Error));function eo(e,t,r,n,i){if(!(this instanceof eo))try{return new eo(e,t,r,n,i)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(i=n,n=r,r=t,t=e,e=null);var o=e&&"object"===q(e);if(e=e||{},this.json=e.json||r,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!et.call(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.preventEval=e.preventEval||!1,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||n||null,this.otherTypeCallback=e.otherTypeCallback||i||function(){throw TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){var a={path:o?e.path:t};o?"json"in e&&(a.json=e.json):a.json=r;var s=this.evaluate(a);if(!s||"object"!==q(s))throw new ei(s);return s}}eo.prototype.evaluate=function(e,t,r,n){var i=this,o=this.parent,a=this.parentProperty,s=this.flatten,l=this.wrap;if(this.currResultType=this.resultType,this.currPreventEval=this.preventEval,this.currSandbox=this.sandbox,r=r||this.callback,this.currOtherTypeCallback=n||this.otherTypeCallback,t=t||this.json,(e=e||this.path)&&"object"===q(e)&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!et.call(e,"json"))throw TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');t=e.json,s=et.call(e,"flatten")?e.flatten:s,this.currResultType=et.call(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=et.call(e,"sandbox")?e.sandbox:this.currSandbox,l=et.call(e,"wrap")?e.wrap:l,this.currPreventEval=et.call(e,"preventEval")?e.preventEval:this.currPreventEval,r=et.call(e,"callback")?e.callback:r,this.currOtherTypeCallback=et.call(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,o=et.call(e,"parent")?e.parent:o,a=et.call(e,"parentProperty")?e.parentProperty:a,e=e.path}if(o=o||null,a=a||null,Array.isArray(e)&&(e=eo.toPathString(e)),!(!e&&""!==e||!t)){var u=eo.toPathArray(e);"$"===u[0]&&u.length>1&&u.shift(),this._hasParentSelector=null;var c=this._trace(u,t,["$"],o,a,r).filter(function(e){return e&&!e.isParentSelector});return c.length?l||1!==c.length||c[0].hasArrExpr?c.reduce(function(e,t){var r=i._getPreferredOutput(t);return s&&Array.isArray(r)?e=e.concat(r):e.push(r),e},[]):this._getPreferredOutput(c[0]):l?[]:void 0}},eo.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":var r=Array.isArray(e.path)?e.path:eo.toPathArray(e.path);
1return e.pointer=eo.toPointer(r),e.path="string"==typeof e.path?e.path:eo.toPathString(e.path),e;case"value":case"parent":case"parentProperty":return e[t];case"path":return eo.toPathString(e[t]);case"pointer":return eo.toPointer(e.path);default:throw TypeError("Unknown result type")}},eo.prototype._handleCallback=function(e,t,r){if(t){var n=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:eo.toPathString(e.path),t(n,r,e)}},eo.prototype._trace=function(e,t,r,n,i,o,a,s){var l,u=this;if(!e.length)return l={path:r,value:t,parent:n,parentProperty:i,hasArrExpr:a},this._handleCallback(l,o,"value"),l;var c=e[0],d=e.slice(1),p=[];function f(e){Array.isArray(e)?e.forEach(function(e){p.push(e)}):p.push(e)}if(("string"!=typeof c||s)&&t&&et.call(t,c))f(this._trace(d,t[c],er(r,c),t,c,o,a));else if("*"===c)this._walk(t,function(e){f(u._trace(d,t[e],er(r,e),t,e,o,!0,!0))});else if(".."===c)f(this._trace(d,t,r,n,i,o,a)),this._walk(t,function(n){"object"===q(t[n])&&f(u._trace(e.slice(),t[n],er(r,n),t,n,o,!0))});else{if("^"===c)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:d,isParentSelector:!0};if("~"===c)return l={path:er(r,c),value:i,parent:n,parentProperty:null},this._handleCallback(l,o,"property"),l;if("$"===c)f(this._trace(d,t,r,null,null,o,a));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(c))f(this._slice(c,d,t,r,n,i,o));else if(0===c.indexOf("?(")){if(this.currPreventEval)throw Error("Eval [?(expr)] prevented in JSONPath expression.");var h=c.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1");this._walk(t,function(e){u._eval(h,t[e],e,r,n,i)&&f(u._trace(d,t[e],er(r,e),t,e,o,!0))})}else if("("===c[0]){if(this.currPreventEval)throw Error("Eval [(expr)] prevented in JSONPath expression.");f(this._trace(en(this._eval(c,t,r[r.length-1],r.slice(0,-1),n,i),d),t,r,n,i,o,a))}else if("@"===c[0]){var m=!1,g=c.slice(1,-2);switch(g){case"scalar":t&&["object","function"].includes(q(t))||(m=!0);break;case"boolean":case"string":case"undefined":case"function":q(t)===g&&(m=!0);break;case"integer":Number.isFinite(t)&&!(t%1)&&(m=!0);break;case"number":Number.isFinite(t)&&(m=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(m=!0);break;case"object":t&&q(t)===g&&(m=!0);break;case"array":Array.isArray(t)&&(m=!0);break;case"other":m=this.currOtherTypeCallback(t,r,n,i);break;case"null":null===t&&(m=!0);break;default:throw TypeError("Unknown value type "+g)}if(m)return l={path:r,value:t,parent:n,parentProperty:i},this._handleCallback(l,o,"value"),l}else if("`"===c[0]&&t&&et.call(t,c.slice(1))){var y=c.slice(1);f(this._trace(d,t[y],er(r,y),t,y,o,a,!0))}else if(c.includes(",")){var v,b=function(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Z(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(c.split(","));try{for(b.s();!(v=b.n()).done;){var E=v.value;f(this._trace(en(E,d),t,r,n,i,o,!0))}}catch(e){b.e(e)}finally{b.f()}}else!s&&t&&et.call(t,c)&&f(this._trace(d,t[c],er(r,c),t,c,o,a,!0))}if(this._hasParentSelector)for(var w=0;w<p.length;w++){var T=p[w];if(T&&T.isParentSelector){var x=this._trace(T.expr,t,T.path,n,i,o,a);if(Array.isArray(x)){p[w]=x[0];for(var O=x.length,N=1;N<O;N++)w++,p.splice(w,0,x[N])}else p[w]=x}}return p},eo.prototype._walk=function(e,t){if(Array.isArray(e))for(var r=e.length,n=0;n<r;n++)t(n);else e&&"object"===q(e)&&Object.keys(e).forEach(function(e){t(e)})},eo.prototype._slice=function(e,t,r,n,i,o,a){if(Array.isArray(r)){var s=r.length,l=e.split(":"),u=l[2]&&Number.parseInt(l[2])||1,c=l[0]&&Number.parseInt(l[0])||0,d=l[1]&&Number.parseInt(l[1])||s;c=c<0?Math.max(0,c+s):Math.min(s,c),d=d<0?Math.max(0,d+s):Math.min(s,d);for(var p=[],f=c;f<d;
2f+=u)this._trace(en(f,t),r,n,i,o,a,!0).forEach(function(e){p.push(e)});return p}},eo.prototype._eval=function(e,t,r,n,i,o){this.currSandbox._$_parentProperty=o,this.currSandbox._$_parent=i,this.currSandbox._$_property=r,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;var a=e.includes("@path");a&&(this.currSandbox._$_path=eo.toPathString(n.concat([r])));var s="script:"+e;if(!eo.cache[s]){var l=e.replace(/@parentProperty/g,"_$_parentProperty").replace(/@parent/g,"_$_parent").replace(/@property/g,"_$_property").replace(/@root/g,"_$_root").replace(/@([\t-\r \)\.\[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])/g,"_$_v$1");a&&(l=l.replace(/@path/g,"_$_path")),eo.cache[s]=new this.vm.Script(l)}try{return eo.cache[s].runInNewContext(this.currSandbox)}catch(t){throw Error("jsonPath: "+t.message+": "+e)}},eo.cache={},eo.toPathString=function(e){for(var t=e.length,r="$",n=1;n<t;n++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(e[n])||(r+=/^[\*0-9]+$/.test(e[n])?"["+e[n]+"]":"['"+e[n]+"']");return r},eo.toPointer=function(e){for(var t=e.length,r="",n=1;n<t;n++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(e[n])||(r+="/"+e[n].toString().replace(/~/g,"~0").replace(/\//g,"~1"));return r},eo.toPathArray=function(e){var t=eo.cache;if(t[e])return t[e].concat();var r=[],n=e.replace(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/g,";$&;").replace(/['\[](\??\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\))['\]]/g,function(e,t){return"[#"+(r.push(t)-1)+"]"}).replace(/\[["']((?:(?!['\]])[\s\S])*)["']\]/g,function(e,t){return"['"+t.replace(/\./g,"%@%").replace(/~/g,"%%@@%%")+"']"}).replace(/~/g,";~;").replace(/["']?\.["']?(?!(?:(?!\[)[\s\S])*\])|\[["']?/g,";").replace(/%@%/g,".").replace(/%%@@%%/g,"~").replace(/(?:;)?(\^+)(?:;)?/g,function(e,t){return";"+t.split("").join(";")+";"}).replace(/;;;|;;/g,";..;").replace(/;$|'?\]|'$/g,"").split(";").map(function(e){var t=e.match(/#([0-9]+)/);return t&&t[1]?r[t[1]]:e});return t[e]=n,t[e].concat()};var ea=function(e,t,r){for(var n=e.length,i=0;i<n;i++)r(e[i])&&t.push(e.splice(i--,1)[0])},es=function(){function e(t){z(this,e),this.code=t}return K(e,[{key:"runInNewContext",value:function(e){var t=this.code,r=Object.keys(e),n=[];ea(r,n,function(t){return"function"==typeof e[t]});var i=r.map(function(t,r){return e[t]});t=n.reduce(function(t,r){var n=e[r].toString();return/function/.test(n)||(n="function "+n),"var "+r+"="+n+";"+t},"")+t,/(["'])use strict\1/.test(t)||r.includes("arguments")||(t="var arguments = undefined;"+t);var o=(t=t.replace(/;[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*$/,"")).lastIndexOf(";"),a=o>-1?t.slice(0,o+1)+" return "+t.slice(o+1):" return "+t;return J(Function,r.concat([a])).apply(void 0,function(e){if(Array.isArray(e))return ee(e)}(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||Z(i)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance. 3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())}}]),e}();function el(e,t){try{return eo({path:t,json:e})}catch(e){return[]}}function eu(e,t,r=!0){let n=el(e,t)||[];return r?n.flat(1/0):n}function ec(e,t,r=!1,n=e,i=!0){var o=t;for(let i of Object.keys(e).sort((e,t)=>t.length-e.length))if(t.startsWith(i)){if(i==t){if(r)return e[i];continue}o=t.substring(i.length+1),n=e[i];break}var a=eu(n,o,i);return 0==a.length&&(a=[o.replace(/^.*?\./,"_."),o.replace(/^.*?\./,""),o.replace(/^([^.]+).*?\.\$([\.\[])/,"$1$2"),o.replace(/^.*?\.\$([\.\[])/,"_$1"),o.replace(/^.*?\.\$([\.\[])/,"$$$1"),o.replace(/^[^.]+$/,"_")].filter((e,t,r)=>r.indexOf(e)===t).reduce((e,t)=>
3e.length>0?e:eu(n,t,i),[])),r?a[0]:a}function ed(e,t={},r){return r?`<${r}${Object.entries(t).map(([e,t])=>null!=t&&` ${e}="${t}"`).filter(Boolean).join("")}>${ep(e)}</${r}>`.replace(/^<([a-z0-9][^>]*)><\/[^>]+>$/,"<$1 />"):ep(e)}function ep(e){var t;if(Array.isArray(e))return e.map(ep).join(` 4`).trim();if("string"==typeof e)return e;if(null==e)return"";switch(e.type){case"heading":let{level:r,...n}=e.attrs;return ed(e.content,n,"h"+r);case"text":return(e.marks||[]).reduce((e,t)=>ed(e,t.attrs,{link:"a",bold:"strong",italic:"em",strike:"s",underline:"u"}[t.type]),null==(t=e.text)?void 0:t.replace(/\s+/," "));default:return ed(e.content||e.text,e.attrs,{bulletList:"ul",orderedList:"ol",listItem:"li",horizontalRule:"hr",paragraph:"p",codeBlock:"code",blockquote:"blockquote"}[e.type])}}function ef(e){let t=new e.ownerDocument.defaultView.MutationObserver(e=>{e.forEach(e=>{let t=e.target,r=t.getAttribute("data-embed-src");r&&em(t,r),e.addedNodes&&e.addedNodes.forEach(e=>{1==e.nodeType&&eh(e,!1)})})});return t.observe(e,{attributes:!0,subtree:!0,childList:!0}),t}function eh(e,t=!0){let r=e.querySelectorAll("[data-embed-src]");for(var n=0;n<r.length;n++){let e=r[n];em(e,e.getAttribute("data-embed-src"))}if(t)return ef(e)}function em(e,t){for(var r=e;r;r=r.parentElement)if(!r.parentElement){let e=r.querySelectorAll("script");for(var n=0;n<e.length;n++)if(e[n].getAttribute("src")==t)return!0;"HTML"==r.tagName&&(r=r.querySelector("head")||r);let i=r.ownerDocument.createElement("script");i.setAttribute("type","module"),i.setAttribute("src",t),r.appendChild(i);break}}eo.prototype.vm={Script:es};var eg={};V(eg,{adjustNumbers:()=>eT,cleanCollectionBit:()=>eE,getHumanizedLabel:()=>ex,getLastPathBit:()=>eO,getQualifier:()=>eb,normalizeCollectionScope:()=>ew,parseLimit:()=>ey,parseRange:()=>ev});var ey=e=>{var t;let r=parseInt(null==(t=null==e?void 0:e.match(/\[0:(\d+)\]/))?void 0:t[1],10);return!isNaN(r)&&r>0?String(r):null},ev=e=>{var t;let r=null==(t=null==e?void 0:e.match(/\[([^\]]+)\]/))?void 0:t[1].split(/\s*,\s*/g).filter(Boolean).map(e=>{if(e.match(/^-?\d+$/))return e;let t=e.match(/^(\d+):(\d+)$/);return t&&parseInt(t[1],10)<parseInt(t[2],10)?t[1]+"-"+t[2]:null});return null!=r&&r.every(Boolean)?r.join(","):null},eb=e=>{var t;return null==(t=null==e?void 0:e.match(/(\.\*|\[[^\]]*\])$/))?void 0:t[0]};function eE(e){return e.replace(/(\.?\[[^\]\[]*\]|\.\*)$/g,"")}function ew(e){return eE(e)+".*"}function eT(e,t){return null==e?void 0:e.replace(/(.|^)(\d+)/g,(e,r,n)=>r+(":"==r?n:String(parseInt(n)+t)))}function ex(e,t=2){var r=eE(e).split(/]\.|\.\*\./g).pop().split(/\./g).slice(-3);return(r=r.filter(e=>isNaN(parseInt(e)))).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).slice(-t).join(" ")}function eO(e){return eE(e).split(".").pop()}var eN=["January","February","March","April","May","June","July","August","September","October","November","December"];function eC(e){let t=e.getAttribute("data-path-scope");for(var r=0,n=e;n=n.previousElementSibling;)n.getAttribute("data-path-scope")==t&&r++;return r}function eS(e,t,r,n,i=!0){if(e){var o,a,s,l=e;(null==r?void 0:r.type)=="doc"&&Array.isArray(r.content)&&(r=ep(r)),null!=n&&n.processValue&&(r=null==n?void 0:n.processValue(e,t,r));var u=t.replace("data-path-","");if("data-path-src"==t||"data-path-alt"==t){let t=Array.from(e.children).find(e=>"picture"==e.localName)||e;l="img"==e.localName?e:t.querySelector("img, video")}else if("data-path-href"==t)l=e.querySelector("a")||e.closest("a");else if("data-path-hidden"==t)r=!r||null;else if("data-path"==t||"data-embed-html"==t||"html"==t)u="innerHTML";else if("data-embed-src"==t&&i)em(e,r);else if("data-path-attributes"==t){if(!Array.isArray(r)){let t=(null==(o=e.getAttribute("data-attributes-keys"))?void 0:o.split(",").filter(Boolean))||[];if(!Array.isArray(r))for(var c in r){var d=r[c];eS(e,c,"object"==typeof d&&d?JSON.stringify(d):d,n,i)}for(var p=0;p<t.length;p++)null!=r&&t[p]in r||eS(e,t[p],null,n,i);eS(e,"data-attributes-keys",Object.keys(r||{}).join(","),{},i)}if("FEAAS-EXTERNAL"==e.tagName){let t=String(e.getAttribute("data-path-attributes")||"").slice(0,-1).split(".")[0]||"_";eS(e,"datasources",JSON.stringify({[t]:r}),{},i)}return}
4if("boolean"==typeof r&&"hidden"!==u&&(r=r?"":null),l)if(("innerHTML"==u||"src"==u)&&(null==r||""===r)){var f=String(null!=(s=null!=(a=e.getAttribute("data-path-placeholder")||l[u])?a:l.getAttribute(u))?s:"");"innerHTML"==u?l.innerHTML=f:f?l.setAttribute(u,f):l.removeAttribute(u)}else if(null!=r)if("innerHTML"==u){for(var h,m=String(r),g=l;g.parentElement&&g.localName.match(/^(a|var|strong|em|i|b)$/);)g=g.parentElement;g.localName.match(/p|h\d|button|time|li/)&&(m=m.replace(/<(p|h\d|li|ul)[^>]*?>|<\/(p|h\d|li|ul)[^>]*?>/g," ").trim().replace(/\s+/g," ")),String(g.getAttribute("class")).includes("-inline--time")&&"Invalid Date"!==String(new Date(h=m))&&!isNaN(Number(new Date(h)))&&(m=(e=>{if(!e||"function"!=typeof e.getDay)return;let t=e.getFullYear(),r=eN[e.getMonth()],n=e.getDate();return`${r} ${n}, ${t}`})(new Date(m))),l.innerHTML!=m&&(l.innerHTML=m)}else l.getAttribute(u)!=r&&l.setAttribute(u,r);else l.removeAttribute(u)}}var eI=["data-attributes-keys","data-path-attributes","data-path-scope"];function eA(e,t,r,n,i=!0){if(n||(t=(null==(a=null==r?void 0:r.processData)?void 0:a.call(r,e,t))||t),1==e.nodeType){let n=e.getAttribute("data-path-scope");if(n){let i=eC(e),o=ec(t,n,!1);0==i&&function(e,t,r){let n=e.getAttribute("data-path-scope");if(null==n)return;var i=eC(e);if(0!=i)return;let o=e.parentNode;if(null!=o){0==t?e.setAttribute("hidden","hidden"):null!=e.getAttribute("hidden")&&e.removeAttribute("hidden");for(var a=i+1,s=e,l=e;l=l.nextElementSibling;)l.getAttribute("data-path-scope")==n&&(a++,s=l);for(var u=a;u<t;u++)o.insertBefore(s.cloneNode(!0),s.nextElementSibling);for(var u=Math.max(1,t);u<a;u++)s=s.previousElementSibling,o.removeChild(s.nextElementSibling)}}(e,(null==(s=null==r?void 0:r.shouldRepeat)?void 0:s.call(r,e,o))===!1?1:o.length,0),t={...t,[ew(n)]:o[i]}}let a=Array.prototype.slice.call(e.attributes).sort((e,t)=>eI.indexOf(e.name)-eI.indexOf(t.name));for(var o=0;o<a.length;o++){let{name:n,value:s}=a[o];n.startsWith("data-path")&&"data-path-scope"!=n&&eS(e,n,ec(t,s,!0,void 0,"FEAAS-EXTERNAL"!=e.tagName),r,i),"data-embed-src"==n&&eS(e,n,e.getAttribute(n),r,i)}}for(var a,s,l,u,o=0;u=e.childNodes[o++];)e_(u)&&eA(u,t,r,!0,i);return n||null==(l=null==r?void 0:r.onRender)||l.call(r,e,t),e}function e_(e){return 1==e.nodeType}function eR(e,t,r,n,i=!0){let o=(null==(a=null==n?void 0:n.processTemplate)?void 0:a.call(n,e,t,r))||t;if(e.innerHTML=o,e.classList.add("-feaas"),(e.closest(".component.feaas")||e).className.includes("-theme--"))for(var a,s,l=0;s=e.childNodes[l++];)e_(s)&&(s.className=s.className.replace(/(\s|^)-theme--[^\s]+\s*/g,"$1"));return eA(e,r,n,null,i)}function eD(e,t,r,n=!1,i=!0){var o;let a=(null==(o=null==r?void 0:r.processTemplate)?void 0:o.call(r,null,e,t))||e;if("undefined"==typeof document||n)return eA(eL(a)[0],t,r,null,i).outerHTML;{let e=document.createElement("div");return e.innerHTML=a,eA(e,t,r,null,i),e.innerHTML}}var ek=class{constructor(e,t=1,r){this.ownerDocument={createElement:e=>new ek(e),createDocumentFragment:()=>new ek(null,11)},this.nodeName=e,this.nodeType=t,this.textContent=r,this.attributes=[],this.childNodes=[]}setAttribute(e,t){let r=this.attributes.find(t=>t.name===e);r?r.value=t:this.attributes.push({name:e,value:t})}getAttribute(e){let t=this.attributes.find(t=>t.name===e);return t?t.value:void 0}insertBefore(e,t){if(e.parentNode=this,null===t)this.childNodes.push(e);else{let r=this.childNodes.indexOf(t);-1!==r&&this.childNodes.splice(r,0,e)}}removeAttribute(e){let t=this.attributes.findIndex(t=>t.name===e);-1!==t&&this.attributes.splice(t,1)}appendChild(e){e.parentNode=this,this.childNodes.push(e)}get tagName(){var e;return null==(e=this.nodeName)?void 0:e.toUpperCase()}get localName(){var e;return null==(e=this.nodeName)?void 0:e.toLowerCase()}get innerHTML(){return eP(this.childNodes)}set innerHTML(e){this.childNodes=eL(String(null!=e?e:""))}get outerHTML(){return eP([this])}get children(){return this.childNodes.filter(e=>1==e.nodeType)}closest(e){let t=this;for(;t;){if(ej(e,t))return t;t=t.parentNode}return null}querySelectorAll(e){let t=e.split(/\s*,\s*/),r=[],n=e=>{for(let n of t)if(ej(n,e)){r.push(e);break}for(let t of e.childNodes)n(t)};for(let e of this.childNodes)n(e);return r}querySelector(e){return this.querySelectorAll(e)[0]}findSibling(e,t){if(!this.parentNode)return null;let r=this.parentNode.childNodes,n=r.indexOf(this);if(-1===n)return null;for(let i=n+e;i>=0&&i<r.length;i+=e){let e=r[i];if(!t||1===e.nodeType)return e}return null}removeChild(e){let t=this.childNodes.indexOf(e);if(-1!==t)return this.childNodes.splice(t,1),e.parentNode=void 0,e}get previousSibling(){return this.findSibling(-1)}get nextSibling(){return this.findSibling(1)}get previousElementSibling(){return this.findSibling(-1,!0)}get nextElementSibling(){return this.findSibling(1,!0)}cloneNode(e=!1){let t=new ek(this.nodeName,this.nodeType);if(t.attributes=JSON.parse(JSON.stringify(this.attributes)),this.textContent&&(t.textContent=this.textContent),e)for(let e of this.childNodes){let r=e.cloneNode(!0);t.appendChild(r)}return t}get parentElement(){var e;return(null==(e=this.parentNode)?void 0:e.nodeType)==1?this.parentNode:null}};function ej(e,t){let r=e.match(/([.#]?[\w-]+|\[([\w-]+)(="([^"]*)")?\])/g);if(!r)return!1;for(let e of r)if(e.startsWith("#")){if(t.getAttribute("id")!==e.slice(1))return!1}else if(e.startsWith(".")){if(!(t.getAttribute("class")||"").split(" ").includes(e.slice(1)))return!1}else if(e.startsWith("[")){let r=e.match(/^\[([\w-]+)(="([^"]*)")?\]$/);if(!r)return!1;{let e=r[1],n=r[3],i=t.getAttribute(e);
4if(void 0===n){if(void 0===i)return!1}else if(i!==n)return!1}}else if(t.nodeName!==e)return!1;return!0}function eL(e){var t;let r=[],n=[];for(;e;){let i=e.match(/^<([\w-]+)(\s[^>]*)?>/),o=e.match(/^<\/([\w-]+)>/);if(i){let o=i[1].toLowerCase(),a=(null==(t=(i[2]||"").match(/([\w-]+)(="([^"]*)")?/g))?void 0:t.map(e=>{let[t,r,,n]=e.match(/([\w-]+)(="([^"]*)")?/);return{name:r,value:(n||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}}))||[],s=new ek(o,1);if(s.attributes=a,n.length>0){let e=n[n.length-1];e.childNodes.push(s),s.parentNode=e}else r.push(s);["img","input","br"].includes(o)||n.push(s),e=e.slice(i[0].length)}else if(o)n.pop(),e=e.slice(o[0].length);else{let t=e.indexOf("<"),i=e.slice(0,-1!==t?t:void 0),o=new ek("#text",3);if(o.textContent=i,n.length>0){let e=n[n.length-1];e.childNodes.push(o),o.parentNode=e}else r.push(o);e=e.slice(i.length)}}return r}function eP(e){return e.map(e=>{if(3===e.nodeType)return e.textContent||"";let{nodeName:t,attributes:r}=e,n=r.map(({name:e,value:t})=>` ${e}="${String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}"`).join(""),i=eP(e.childNodes);return["img","input","br"].includes(t)?`<${t}${n} />`:`<${t}${n}>${i}</${t}>`}).join("")}var eF=e=>{if(!e||"string"!=typeof e.url)return!1;for(var t in e)if("body"!=t&&"params"!=t&&"headers"!=t&&"url"!=t&&"method"!==t&&("jsonpath"!=t||"string"!=typeof e[t]))return!1;return!0};function eM(e){let{url:t,headers:r,params:n,method:i,body:o}=e$(e),a,s=r["Content-Type"];"GET"!=i&&"HEAD"!=i&&("application/json"===s&&(a=JSON.stringify(o)),"multipart/form-data"===s&&(a=Object.keys(o).reduce((e,t)=>(e.append(t,o[t]),e),new FormData)),"application/x-www-form-urlencoded"===s&&(a=new URLSearchParams(o)));let l=Object.keys(n).length?`?${new URLSearchParams(n)}`:"";return[`${t}${l}`,{headers:r,body:a,method:i}]}function e$(e){let t={};for(let r in(null==e?void 0:e.headers)||{})e.headers.hasOwnProperty(r)&&(t[r.replace(/^[a-z]|\-[a-z]/g,e=>e.toUpperCase())]=e.headers[r]);return t.Accept||(t.Accept="application/json"),{params:(null==e?void 0:e.params)||{},headers:t,jsonpath:String((null==e?void 0:e.jsonpath)||"$"),method:((null==e?void 0:e.method)||"GET").toUpperCase(),body:(null==e?void 0:e.body)||{},url:String((null==e?void 0:e.url)||"")}}var eU=async(e,t)=>{let r=O(t,e);if(r instanceof Promise)return r;let n=e;r&&(n=e$(r));try{let[e,t]=eM(n),r=await (await e$.fetchImplementation(e,{...t,method:t.method.toLowerCase()})).json();return n.jsonpath&&"$"!=n.jsonpath?eu(r,n.jsonpath):r}catch(e){return{}}};async function eV(e){if(!e)return e;if(eF(e))return eU(e);let t=Object.keys(e),r=await Promise.all(t.map(t=>eF(e[t])?eU(e[t],t):null).filter(Boolean));return t.reduce((t,n)=>({...t,[n]:eF(e[n])?r.shift():e[n]}),{})}e$.clean=function(e){let{params:t,method:r,headers:n,body:i,url:o}=e$(e);var a={url:o},s={...n};return"application/json"===n["Content-Type"]&&delete s["Content-Type"],"application/json"===n.Accept&&delete s.Accept,Object.keys(s).length>0&&(a.headers=s),"GET"!==r&&(a.method=r),"GET"===r||"HEAD"===r||0===Object.keys(i).length||(a.body=i),Object.keys(t).length>0&&(a={...a,params:t}),a},e$.toFetchArguments=eM,e$.fetchOne=eU,e$.fetch=eV,e$.isDataSettings=eF,e$.hasDataSettings=function(e){return!!e&&(eF(e)||Object.values(e).some(eF))},e$.fetchImplementation=(...e)=>fetch(...e);var eB={};function eG(e,t=e=>{}){var r;let n=()=>{var i,o,a=Object.assign(new Promise((t,r)=>{i=r=>{null==e||e(r),t(r)},o=r}),{resolve:i,reject:o,restart:n,first:r});return r=a,a.catch(t),a};return n()}V(eB,{Component:()=>th,ComponentProps:()=>tf,Context:()=>tk,ControlledPromise:()=>eG,DEFAULT_CDN_URL:()=>e9,DOM:()=>B,DataPath:()=>eg,DataScope:()=>G,DataSettings:()=>e$,Element:()=>ez,FEAASComponent:()=>th,FEAASComponentsProps:()=>tf,FEAASContext:()=>tk,FEAASContextProps:()=>tD,FEAASEditor:()=>tA,FEAASEditorProps:()=>tI,FEAASElement:()=>ez,FEAASLoader:()=>tg,FEAASLoaderProps:()=>tm,FEAASPicker:()=>tR,FEAASPickerProps:()=>t_,FEAASStylesheet:()=>tv,FEAASStylesheetProps:()=>ty,InvalidResponse:()=>e0,JSONPath:()=>eo,Loader:()=>tg,MyComponent:()=>eK,Picker:()=>tR,Stylesheet:()=>tv,Thumbnail:()=>tb,WebComponent:()=>eq,adjustNumbers:()=>eT,autoloadScripts:()=>eh,cleanCollectionBit:()=>eE,clearFetchCache:()=>eY,createStylesheet:()=>tu,customizeDataSettings:()=>O,fetchAndRevalidate:()=>eJ,fetchAndRevalidateComponent:()=>te,fetchAndRevalidateStylesheet:()=>tr,fetchBypassingCache:()=>e2,fetchCache:()=>eQ,fetchComponent:()=>tt,fetchData:()=>eV,fetchToValidateCache:()=>e1,fetchWithCacheAwareness:()=>eX,findStylesheet:()=>tl,getComponent:()=>D,getComponentSource:()=>e5,getComponentURL:()=>e7,getFetchCache:()=>eZ,getFramePosition:()=>tS,getHumanizedLabel:()=>ex,getLastPathBit:()=>eO,getQualifier:()=>eb,getStylesheetSource:()=>e6,getStylesheetURL:()=>e8,loadScript:()=>em,loadStylesheet:()=>ta,loadStylesheetAllowStale:()=>ts,normalizeCollectionScope:()=>ew,observeDOMElement:()=>ef,parseComponentSource:()=>e3,parseLimit:()=>ey,parseRange:()=>ev,parseStylesheetSource:()=>e4,queryObject:()=>eu,queryObjectRaw:()=>el,queryScopes:()=>ec,registerComponent:()=>_,registerDatasource:()=>T,renderComponent:()=>td,renderComponentElement:()=>tc,renderComponentPromise:()=>tp,renderDOMContent:()=>eR,renderDOMElement:()=>eA,renderHTMLContent:()=>eD,renderStylesheet:()=>tn,renderStylesheetPromise:()=>ti,serializeCH1RichText:()=>ep,setDOMAttribute:()=>eS});var eq="undefined"==typeof HTMLElement?"undefined"!=typeof windowJSDOM?windowJSDOM.HTMLElement:class{}:HTMLElement,ez=class extends eq{getProps(e){return{}}constructor(){super(),this.defaultProps={},this.connected=!1,this.refs={},this.descendants=[],this.whenLoaded=eG(e=>{this.payload=e}),this.whenRendered=eG(()=>this.initialized=!0,()=>this.cancelRender()),this.addEventListener("feaasMount",this),this.addEventListener("feaasUnmount",this)}getRoot(){return this}attributeChangedCallback(e,t,r){this.set()}connectedCallback(){this.mount()}disconnectedCallback(){this.unmount()}mount(){try{let e=this.getParent();if(e&&!e.connected||this.connected)return;this.connected=!0,this.log("FEAAS: Mount",this.tagName,this),this.dispatchEventIndirectly(new Event("feaasMount",{bubbles:!0,composed:!0})),this.getElements().map(e=>{var t;return null==(t=e.mount)?void 0:t.call(e)}),this.set()}catch(e){this.onError(e)}}dispatchEventIndirectly(e){this.dispatchEvent(e);let t=this.getParent();t&&!t.contains(this)&&(Object.defineProperty(e,"target",{value:this,writable:!1}),Object.defineProperty(e,"composedPath",{value:()=>[this],writable:!1}),t.handleEvent(e))}isJSONAttribute(e){return!1}log(...e){let t=e[0];("undefined"!=typeof location&&null!=location&&location.hostname.startsWith("components-")||localStorage["Sitecore.Components.Debug"])&&console.log(t+" "+e.slice(1).map(e=>e&&"object"==typeof e?"%O":"%s").join(" "),...e.slice(1))}unmount(){this.connected&&(this.log("FEAAS: Unmount",this),this.dispatchEventIndirectly(new Event("feaasUnmount",{bubbles:!0,composed:!0})),this.connected&&this.initialized&&this.render&&this.update(),this.cancelRender(),this.connected=!1,this.initialized&&this.render&&this.update())}getParent(e=!0){for(var t=this;t=t.parentElement||(t.parentNode instanceof ShadowRoot?t.parentNode.host:null);)if(!e||t.tagName.startsWith("FEAAS-"))return t;if("FEAAS-CONTEXT"!=this.tagName)return document.querySelector("feaas-context")}getElements(e=this.getRoot(),t=!0){return Array.from(e.querySelectorAll("*")).map(e=>[!t||e.tagName.startsWith("FEAAS-")?e:null,e.shadowRoot?this.getElements(e.shadowRoot,t):null]).flat().filter(
4Boolean)}handleEvent(e){let t=e.composedPath()[0];switch(e.type){case"feaasMount":t!=this&&this.nestedCallback(t);break;case"feaasUnmount":t!=this&&this.unnestedCallback(t)}}unnestedCallback(e){let t=this.descendants.indexOf(e);-1!=t&&(this.log("FEAAS: Unnest",this,e),this.descendants.splice(t,1),this.refs[e.getComponentName()]=null,e.refs.parent==this&&(e.refs.parent=null),e.refs.top==this&&(e.refs.top=e.refs.parent))}nestedCallback(e){var t,r;if(-1==this.descendants.indexOf(e)&&(this.descendants.push(e),this.log("FEAAS: Nest",this,e),this.refs[e.getComponentName()]=e,e.refs.top=this,(t=e.refs).parent||(t.parent=this),e.render))for(var n=e.refs.parent;n;n=n.refs.parent)n.render&&((r=e.refs).parentReact||(r.parentReact=n),e.refs.topReact=n)}getComponentName(){return this.tagName.replace("FEAAS-","").toLowerCase()}isReadyToLoad(){return void 0===this.payload&&null==this.getAttribute("hidden")}onError(e,t="uncaught",r=!1){let n=new CustomEvent("feaasError",{bubbles:!0,composed:!0,detail:e});if(this.dispatchEventIndirectly(n),this.whenLoaded.reject(e),!n.defaultPrevented&&!r){this.whenRendered.reject(e);try{this.unmount()}catch(e){}return!0}return!1}shouldUpdateOnLoad(){return!0}async advance(){try{if(void 0===this.payload){if(!this.isReadyToLoad())return;this.payload=null,this.dispatchEventIndirectly(new Event("feaasLoad",{bubbles:!0,composed:!0}));let e=await this.load().catch(e=>{throw this.payload=void 0,e});if(this.whenLoaded.resolve(e),this.onLoad)return}else if(null==this.payload)return;this.flush(),this.whenRendered.resolve(this)}catch(e){this.onError(e)}}flush(){var e,t;if(!this.connected)return;let r=null==(t=null==(e=this.payload)?void 0:e.ReactDOM)?void 0:t.flushSync;r?r(()=>this.update()):this.update()}load(){return Promise.resolve(null)}update(){var e,t,r;if(null==this.payload||!this.render)return;let{React:n,ReactDOM:i,ReactDOMClient:o}=this.payload||{};if(!n)throw Error(`${this.tagName}: React is not present in payload`);if(!i)throw Error(`${this.tagName}: ReactDOM is not present in payload`);"false"==this.getAttribute("hydrate")&&this.firstElementChild||(this.refs.topReact||this.forceUpdateReact?this.forceUpdateReact&&this.connected?null==(e=this.forceUpdateReact)||e.call(this):null==(r=null==(t=this.refs.topReact)?void 0:t.forceUpdateReact)||r.call(t):(this.reactRoot||(this.reactRoot=o.createRoot(this.getReactRootElement())),this.reactRoot.render(this.getReactElement())))}invokeReactRendering(){let{React:e,ReactDOM:t}=this.payload||{};if(!this.connected)return null;let r=this.descendants.filter(e=>e.refs.parentReact==this&&e.payload&&e.connected).map((e,t)=>this.getReactElement(e));return this.render({...this.props,children:r},this.payload)}getReactErrorBoundary(e=this,t=e.tagName){if(this.reactErrorBoundary)return this.reactErrorBoundary;let{React:r,ReactDOM:n}=e.payload||{};return this.reactErrorBoundary||(this.reactErrorBoundary=class extends r.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(t,r){console.error(`FEAAS: ${e.tagName} Error:`,t,r),e.onError(t,"react")}render(){if(!this.state.error)return this.props.children}})}getReactElement(e=this,t){let{React:r,ReactDOM:n}=e.payload||{},i=this.getReactErrorBoundary(),o=this.getReactWrapper(e);return r.createElement(i,{key:e.tagName+"-"+e.getUID(),slot:e.getAttribute("slot")},r.createElement(o,null))}getReactWrapper(e=this,t=e.tagName){if(e.reactWrapper)return e.reactWrapper;let{React:r,ReactDOM:n}=e.payload||{};return e.reactWrapper=t=>{if(!e.render)return e.update();{let[t,i]=r.useReducer(e=>e+1,0);return e.forceUpdateReact=i,n.createPortal(r.createElement(r.Fragment,null,e.invokeReactRendering()),e.getReactRootElement())}},Object.assign(e.reactWrapper,{key:e.tagName+"-"+e.getUID(),displayName:t}),e.reactWrapper}getUID(){return this.uid||(this.uid=String(Math.random()))}getShadowRoot(){return this.shadowRoot||this.attachShadow({mode:"open"}),this.shadowRoot}getReactRootElement(){return this.useShadowRoot?this.getShadowRoot():this.getRoot()}set(e){try{for(var t in this.scheduleRender(),this.overrides={...this.overrides,...e},this.props={...this.getProps(),...this.overrides},this.props){let e=this.isJSONAttribute(t),n=this.props[t],i=e?JSON.stringify(n):String(n),o=this.defaultProps[t],a=e?JSON.stringify(o):String(o),s=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),l=this.getAttribute(s);try{var r=e?JSON.stringify(JSON.parse(l)):l}catch(e){var r=null}null==n||i===a?this.removeAttribute(s):("string"==typeof n||"number"==typeof n||"boolean"==typeof n||e)&&r!=i&&this.setAttribute(s,i)}}catch(e){this.whenRendered.reject(e),this.onError(e,"set")}return this}import(e){return import(e)}scheduleRender(){null==this.nextRender&&(this.whenRendered=this.whenRendered.restart()),this.cancelRender(),this.nextRender=requestAnimationFrame(()=>{this.nextRender=null,this.advance().catch(e=>{})})}cancelRender(){cancelAnimationFrame(this.nextRender)}formatURL(e,t){return"string"==typeof e&&e.match(/^\/[^\/]/)?t+e:e}getContextAttribute(e,t=this){for(var r=this;r=r.parentElement||(r.parentNode instanceof ShadowRoot?r.parentNode.host:null);)if(null!=r.getAttribute(e))return r.getAttribute(e);return this.getAttribute(e)}static register(e,t){null==t&&(t="undefined"!=typeof window?window:null),t&&!t.customElements.get(e)&&t.customElements.define(e,this)}},eH=class extends ez{load(){return Promise.all([import("https://cdn.skypack.dev/react"),import("https://cdn.skypack.dev/react-dom"),import("https://cdn.skypack.dev/react-dom/client")]).then(([e,t,r])=>({React:e,ReactDOM:t,ReactDOMClient:r}))}render({},{React:e}){return e.createElement(e.Fragment,null)}},eK=class extends eH{constructor(){super(...arguments),this.useShadowRoot=!0}getProps(){return{counter:parseFloat(this.getAttribute("counter"))}}render({counter:e},{React:t}){let[r,n]=t.useState(0);return t.useEffect(()=>{n(e=>e+1)},[e]),t.createElement(t.Fragment,null,t.createElement("p",null,"Rendering attribute: ",e),t.createElement("p",null,"Triggered updates: ",r))}};eK.observedAttributes=["counter"];var eW=["initial","check","updated"],eQ={};function eY(){eQ={}}async function eJ(e,t,r,n,i=eQ){return eX({url:e,options:t,validator:r,callback:n,cache:i}
4).then(e1).then(e=>e.response)}async function eX({url:e,options:t,validator:r,callback:n,cache:i},o="initial"){let a=new Date;if(null!=i){var s=eZ(e);if(eW.indexOf(s.phase)>=eW.indexOf(o))var l=s[o];else s.phase=o}let u=await (l||fetch(e,t));if(!l&&s&&(u.ok?s[o].resolve(u):s[o].reject(Error("Fetch failed"))),!u.ok)throw Error("Fetch failed");let c=new Date(u.headers.get("date"))<a||l&&"initial"==o&&("updated"==s.phase||"check"==s.phase);if((null==r?void 0:r(u,c))===!1)throw new e0("Response is not valid");return await (null==n?void 0:n(u,o,c)),{url:e,options:t,isCached:c,response:u,validator:r,callback:n,cache:i}}function eZ(e,t=!1){let r=String(e).replace("?head","");var n=eQ[r];return n||t||(n=eQ[r]={phase:null,initial:eG(),check:eG(),updated:eG(),final:eG()}),n}var e0=class extends Error{};async function e1(e){let{url:t,isCached:r,options:n,validator:i,response:o,cache:a}=e;if(r){let{response:r}=await eX({url:t+(t.toString().includes("?")?"&":"?")+"head",options:{...n,method:"HEAD",cache:"no-cache"},validator:i,cache:a},"check");if(r.headers.get("last-modified")!=o.headers.get("last-modified"))return e2(e)}return e}async function e2(e){return eX({...e,options:{...e.options,cache:"reload"}},"updated")}var e9="https://feaas.blob.core.windows.net";function e3(e){let t=null==e?void 0:e.match(/^(?:(.*?)\/components)?\/?([^\/]+)\/([^\/]+)(?:\/([^\/]+)(?:\/(published|staged|saved|\d+)(?:\.html?)?)?)?$/);if(t){var[,r,n,i,o,a]=t;return{cdn:r,library:n,component:i,version:o,revision:a}}}function e5(e){if(!e||!e.library||!e.component)throw Error("Component requires `library` and `component` properties");return`${e.cdn&&e.cdn!=e9?`${e.cdn}/components`:""}/${e.library}/${e.component}/${!e.version||"responsive"==e.version&&(!e.revision||"published"==e.revision)?"":e.version}/${!e.revision||"published"==e.revision?"":e.revision}`.replace(/(^\/|\/$|\/\/)(?!.+\/components\/)/g,"")}function e6(e){return`${e.cdn&&e.cdn!=e9?`${e.cdn}/styles/`:""}${e.library}/${!e.revision||"published"==e.revision?"":e.revision}`.replace(/\/$|\/\/(?!.+\/styles\/)/g,"")}function e4(e){let t=null==e?void 0:e.match(/^(?:(.*?)\/styles\/)?([^\/]+)(?:\/(published|staged|saved|\d+)(?:.css)?)?$/);if(t){var[,r,n,i]=t;return{cdn:r,library:n,revision:i}}{let t=e3(e);if(t){var{cdn:r,library:n,revision:i}=t;return null!=i&&i.match(/\d/)&&(i=void 0),{cdn:r,library:n,revision:i}}}}function e7(e){return"string"==typeof e&&(e={src:e}),e="src"in e&&e.src?{...e3(e.src)}:{...e},`${e.cdn||e.hostname||e9}/components/${e.library}/${e.component}/${e.version||"responsive"}/${e.revision||"published"}.html`}function e8(e){if("string"==typeof e&&(e={src:e}),"src"in e){if(String(e.src).includes("v1/files/components/styles"))return e.src;e={...e4(e.src)}}else e={...e};return`${e.cdn||e.hostname||e9}/styles/${e.library}/${"staged"==e.revision?"staged":"saved"==e.revision?"saved":"published"}.css`}async function te(e,t,r=!1){let n=e=>null==e.headers.get("x-ms-meta-versionDeletedAt"),i=e=>e.clone().text().then(t),o=await Promise.all([e.instance&&eX({options:{headers:{Accept:"text/html"},credentials:"omit"},url:e7({...e,version:e.instance}),validator:n}).catch(e=>e),eX({url:e7(e),validator:n}).catch(e=>e)]),a=o.find(e=>e&&"isCached"in e&&e);if(!a||a instanceof Error)throw o.find(e=>e&&e instanceof Error)||Error("Can not fetch component");return o[0]==a&&console.log("Using fork!",o),await i(a.response),r?a:e1({...a,callback:i}).catch(e=>{if(o[0]==a&&(e2({...a,callback:null,validator:null}),console.log("Fork was deleted"),!(o[1]instanceof Error)))return i(o[1].response),e1({...o[1],callback:i});throw e})}async function tt(e){var t;"string"==typeof e&&(e={src:e});let{response:r}=await te(e,e=>{t=e},!0);return{...e,template:t,lastModified:r.headers.get("last-modified")}}async function tr(e,t){return eJ(e8(e),{headers:{Accept:"text/css"},credentials:"omit"},e=>null==e.headers.get("x-ms-meta-deletedAt"),(e,r)=>e.clone().text().then(e=>t(e,r)))}function tn(e,t){return ti(e,t||(t=document.createElement("style"))),t}function ti(e,t){return t||(t=document.createElement("style")),tr(e,(e,r)=>{t.textContent=e}).then(()=>t)}var to=new WeakSet;function ta(e,t){var r,n=tl(e);if(n){if(to.has(n))return Promise.resolve(n);e=n.getAttribute("data-href")||n.getAttribute("href")}return tr(e,(i,o)=>{"initial"==o&&n||(r||(r=n&&"LINK"!=n.tagName?n:tu(e)),r.textContent=i),null==t||t(i,o)}).then(()=>r||n)}function ts(e){return new Promise((t,r)=>{ta(e,t).catch(r)})}function tl(e){let t=e8(e),{library:r}=e4(t),n=`/files/components/styles/${r}.css`;return document.querySelector(`style[data-href="${t}"], 5 link[rel="stylesheet"][href="${t}"], 6 style[data-href*="${n}"], 7 link[rel="stylesheet"][href*="${n}"]`)}function tu(e){let t=e8(e),r=document.createElement("style");return r.setAttribute("data-href",t),document.head.appendChild(r),r}function tc(e,t){let r=document.createElement("div");r.innerHTML=e;let n=document.createDocumentFragment();for(;r.firstChild;)n.appendChild(r.firstChild);return eA(n,t),r}function td(e,t,r=!0){return tp(e,t||(t=document.createElement("div")),r),t}async function tp(e,t,r=!0){return t||(t=document.createElement("div")),t.childNodes.length?eA(t,e.data,e,
7null,r):"template"in e?eR(t,e.template,e.data,e,r):te(e,n=>eR(t,n,e.data,e,r)).then(()=>t)}function tf(e){var t,r,n,i,o,a,s,l;let u,c=e.getAttribute("src");if(c){let e=e3(c);if(!e)throw Error(`Could not parse FEAAS Component source: ${c}`);var{cdn:d,library:p,component:f,version:h,revision:m}=e}let g=e.getAttribute("data");if(null!=g&&""!=g)try{u="string"==typeof g?JSON.parse(g):{}}catch(e){console.error(e)}let y=e.getAttribute("fetch");return{data:u||{},cdn:null!=(r=null!=(t=e.getContextAttribute("cdn"))?t:d)?r:e9,library:null!=(n=e.getAttribute("library"))?n:p,component:null!=(i=e.getAttribute("component"))?i:f,version:null!=(a=null!=(o=e.getAttribute("version"))?o:h)?a:"responsive",revision:null!=(l=null!=(s=e.getAttribute("revision"))?s:m)?l:"published",hostname:e.getAttribute("hostname"),template:e.getAttribute("template"),instance:e.getAttribute("instance"),editable:null!=e.getAttribute("editable"),suspended:null!=e.getAttribute("suspended"),lastModified:e.getAttribute("last-modified"),fetch:"false"==y||null==y&&e.hasAttribute("fetch")?[]:null==y||"true"==y?["data","template","stylesheet"]:y.split(/(\s+|\-)+/g).filter(Boolean)}}var th=class extends ez{setData(e){this.set({data:e})}getProps(){return tf(this)}isJSONAttribute(e){return"data"==e}attributeChangedCallback(e,t,r){t!==r&&(("library"==e||"component"==e||"revision"==e||"version"==e)&&(this.payload=void 0,this.alreadyRendered&&this.connected&&(this.needsRefresh=!0,this.needsToFetchTemplate=!0)),super.attributeChangedCallback(e,t,r),"data"==e&&(this.needsRefresh=!0,(this.props.fetch.includes("data")||this.alreadyRendered||!e$.hasDataSettings(this.props.data))&&this.fetchData()))}async fetchData(){this.readyData=void 0,this.whenDataReady=this.whenDataReady.restart();let e=await e$.fetch(this.props.data),t=this.alreadyRendered;await this.whenDataReady.resolve(e),t&&this.advance()}getEditor(){var e;return null==(e=document.querySelector("feaas-context"))?void 0:e.refs.editor}constructor(){super(),this.readyData={},this.whenDataReady=eG(e=>this.readyData=e,e=>this.onError(e)),this.defaultProps={cdn:e9,revision:"published",version:"responsive",editable:!1,suspended:!1,data:{}},this.onLoad=e=>{this.payload=e,this.advance()},this.getAttribute("data"),this.getAttribute("data")||this.whenDataReady.resolve({}),this.addEventListener("click",()=>{this.props.editable&&this.edit()})}edit(){let e=this.getEditor();if(null!=e&&e.setTarget(this))return e.open(),!0}getOriginal(){let e=this.getAttribute("data-path-scope");if(e){for(var t=this;(t=t.previousElementSibling)&&t.getAttribute("data-path-scope")==e;)var r=t;return r}}isReadyToLoad(){return super.isReadyToLoad()&&null!=this.props.library&&null!=this.props.component&&null!=this.props.version}async load(){var e;if(this.getOriginal())return;let t=()=>{null!=this.payload&&(r||this.readyData&&this.onLoad(this.payload))};if(this.props.fetch.includes("stylesheet"))var r=ts({...this.props}).then(()=>{r=null,t()});if(this.props.fetch.includes("template")||this.needsToFetchTemplate){this.needsToFetchTemplate=!1;var n=te(this.props,e=>{this.payload=e,this.needsRefresh=!0,t()})}else this.payload=null!=(e=this.props.template)?e:this.innerHTML;return Promise.all([r,this.whenDataReady.then(()=>t()),n]).then(()=>this.payload)}flush(){this.readyData&&super.flush()}update(){if(this.alreadyRendered=!0,!(!this.props.fetch.includes("data")&&!this.props.fetch.includes("template")&&this.firstElementChild&&!this.needsRefresh))if(Array.from(this.children).filter(e=>"BR"!=e.tagName).length>0&&!this.needsRefresh)eA(this,this.readyData);else{if(this.needsRefresh=!1,this.getOriginal())return;eR(this,this.payload,this.readyData)}}};function tm(e){return{opacity:null!=e&&e.getAttribute("opacity")?parseFloat(null==e?void 0:e.getAttribute("opacity")):1,hidden:(null==e?void 0:e.getAttribute("hidden"))!=null}}th.observedAttributes=["library","component","version","revision","hostname","cdn","template","data","instance","editable","with-stylesheet","fetch"],th.register("feaas-component");var tg=class extends ez{constructor(){super(...arguments),this.defaultProps={hidden:!1}}getProps(){return tm(this)}attributeChangedCallback(e,t,r){if(t!==r)return"hidden"==e&&(this.style.setProperty("display","block","important"),this.style.setProperty("transition","opacity 0.3s","important"),r?(this.style.setProperty("opacity","0","important"),this.style.pointerEvents="none"):(this.style.setProperty("opacity","1","important"),this.style.pointerEvents="all")),super.attributeChangedCallback(e,t,r)}
7connectedCallback(){this.payload=null,super.connectedCallback(),this.attributeChangedCallback("hidden",this.getAttribute("hidden"),this.getAttribute("hidden")),this.stylesheet=document.createElement("style"),this.stylesheet.textContent=` 8 #loader { 9 position: absolute; 10 top: 0; 11 left: 0; 12 right: 0; 13 bottom: 0; 14 display: flex; 15 align-items: center; 16 justify-content: center; 17 background: #f6f6ff; 18 z-index: 1000; 19 } 20 @keyframes loader-circular-track { 21 0% { 22 stroke-dasharray: 1, 400; 23 stroke-dashoffset: 0; 24 } 25 50% { 26 stroke-dasharray: 400, 400; 27 stroke-dashoffset: -100; 28 } 29 100% { 30 stroke-dasharray: 400, 400; 31 stroke-dashoffset: -260; 32 } 33 } 34 35 @keyframes loader-circular-spinner { 36 0% { 37 transform: rotate(0deg); 38 } 39 40 100% { 41 transform: rotate(360deg); 42 } 43 } 44 #loader .spinner { 45 width: 48px; 46 height: 48px; 47 } 48 `,this.loader=document.createElement("div"),this.loader.id="loader",this.loader.innerHTML=` 49 <div class="spinner"> 50 <svg 51 viewBox="0 0 100 100" 52 style=" 53 animation: 2s linear 0s infinite normal none running loader-circular-spinner; 54 display: block; 55 width: 48px; 56 height: 48px; 57 " 58 > 59 <circle fill="transparent" cx="50" cy="50" r="42" stroke="rgba(0,0,0,0.1)" stroke-width="10px"></circle> 60 <circle 61 fill="transparent" 62 stroke="#5548D9" 63 cx="50" 64 cy="50" 65 r="42" 66 stroke-width="10px" 67 stroke-linecap="round" 68 style="animation: 1.5s linear 0s infinite normal none running loader-circular-track" 69 ></circle> 70 </svg> 71 </div>`,this.getRoot().appendChild(this.stylesheet),this.getRoot().appendChild(this.loader)}update(){this.loader.style.opacity=String(this.props.opacity)}};function ty(e){var t,r,n,i;let o=e.getAttribute("src");if(o)var{cdn:a,library:s,revision:l}=e4(o);return{library:null==e?void 0:e.getContextAttribute("library"),revision:null!=(r=null!=(t=null==e?void 0:e.getAttribute("revision"))?t:l)?r:"published",cdn:null!=(i=null!=(n=null==e?void 0:e.getContextAttribute("cdn"))?n:null==e?void 0:e.getContextAttribute("hostname"))?i:e9}}tg.observedAttributes=["hidden","opacity"],tg.register("feaas-loader");var tv=class extends ez{constructor(){super(...arguments),this.onLoad=e=>{this.payload=e,this.advance()}}getProps(){return ty(this)}isReadyToLoad(){return null!=this.props.library&&null!=this.props.revision&&null!=this.props.cdn}load(){return ta(this.props,this.onLoad)}};tv.register("feaas-stylesheet");var tb={};V(tb,{convertBase64toBlob:()=>tE,generate:()=>tN,get:()=>tx,getVersionForThumbnail:()=>tT,load:()=>tO,responseToImage:()=>tw,upload:()=>tC});var tE=e=>fetch(e).then(e=>e.blob()),tw=e=>e.blob().then(e=>new Promise((t,r)=>{let n=new Image;n.onerror=r,n.onload=()=>{t(n)},n.src=URL.createObjectURL(e)}));async function tT(e){return e.versions.length||await e.versions.fetch(),e.getVersionForWidth(800)}async function tx(e,t,r){try{if(!e.isNew)return await tO(e,t,r)}catch(r){e.sdk.log(`FEAAS: Thumbnail ${e.id}, version: ${(null==t?void 0:t.id)||"responsive"}, status: generating ${status}, reason: ${r}`)}let n=await tN(e,t);return null==r||r(n,!1),n&&!e.isNew&&tE(n.src).then(r=>tC(e,t,r)),n}async function tO(e,t,r){var n;let i=t?t.getThumbnailURL():e.getThumbnailURL(),o=e.library.stylesheet,a=new Date(Math.max(Number(e.modifiedAt),Number(o.modifiedAt)));return e.sdk.log(`FEAAS: Thumbnail ${e.id}/${(null==t?void 0:t.id)||"responsive"}, loading`),await eJ(i,{},(e,t)=>{let i=2e3>Math.abs(Number(new Date(e.headers.get("x-ms-meta-componentRenderedAt")))-Number(a));return t&&!i&&tw(e).then(e=>{n=e,r(e,t)}),i},(i,o,a)=>{e.sdk.log(`FEAAS: Thumbnail ${e.id}/${(null==t?void 0:t.id)||"responsive"}, status: ${o}`),tw(i).then(e=>{n=e,r(e,a)})},null),n}async function tN(e,t,r){var n,i,o,a,s,l;let u,c=t||(e.isNew?null:await tT(e));if(!c||c.isViewEmpty())return null;let d=r||e.library.stylesheets.first,{datasources:p}=e.sdk;return await (n=c.classList,i=d.getBreakpointForWidth(800,c.getBreakpoints()),o=c.view,a=p.reduce((e,t)=>
71Object.assign(e,{[t.id]:t.sample}),{}),s=d.css,l=e.sdk,(u=document.createElement("iframe")).style.position="absolute",u.style.top="-2000px",u.style.left="-2000px",u.style.width=i.props.minWidth+"px",u.style.height="720px",u.style.zIndex="100011",document.body.appendChild(u),new Promise((e,t)=>{let r=document.createElement("script");r.onerror=t,r.src=l.frontend+"/assets/html2canvas.js",r.onload=()=>{var r;((null==(r=u.contentWindow.document.fonts)?void 0:r.ready)||Promise.resolve()).then(function(){return u.contentWindow.html2canvas(p,{scale:Math.max(1.1,1e3/Math.min(1401,Math.max(320,i.props.minWidth))),width:Math.min(1401,Math.max(320,i.props.minWidth)),height:Math.max(1,Math.min(2e3,p.offsetHeight)),windowWidth:i.props.minWidth||i.props.maxWidth+"px",windowHeight:1e3,proxy:l.backend+"/proxy/media",backgroundColor:"#ffffff"}).then(r=>{let n=r.toDataURL("image/jpeg",.6);u.parentElement.removeChild(u);let i=new Image;i.onload=()=>{e(i)},i.onerror=t,i.src=n})})},u.contentWindow.document.head.appendChild(r);let c=u.contentWindow.document.createElement("style");c.textContent=` 72 ${s} 73 body, html { padding: 0; margin: 0; overflow: hidden } 74 `;let d=u.contentWindow.document.createElement("style");d.textContent=` 75 body, html { padding: 0; margin: 0; overflow: hidden } 76 `,u.contentWindow.document.head.appendChild(c),u.contentWindow.document.head.appendChild(d);let p=td({template:o,data:a},null,!1);p.classList.add(...n,"-feaas--preview","-emulate--"+i.details.slug),u.contentWindow.document.body.appendChild(p)}))}async function tC(e,t,r){let n=t?t.getThumbnailURL():e.getThumbnailURL(),i=new Date(Math.max(Number(e.modifiedAt),Number(e.library.stylesheet.modifiedAt)));try{await e.sdk.uploadBlob("thumbnails",n.split(/\/thumbnails\//)[1],r,{headers:{"x-ms-blob-content-type":"image/jpg","x-ms-blob-cache-control":"public,max-age=31536000,immutable","x-ms-meta-versionId":t?t.id:null,"x-ms-meta-versionRevision":t?t.revision.toString():null,"x-ms-meta-componentId":e.id,"x-ms-meta-componentRenderedAt":i.toUTCString(),"x-ms-meta-componentModifiedAt":e.modifiedAt.toUTCString(),"x-ms-meta-componentCreatedAt":e.createdAt.toUTCString(),"x-ms-meta-modifiedAt":e.modifiedAt.toUTCString()}}),fetch(n,{cache:"no-cache"}).then(()=>{e.sdk.log("FEAAS: Thumbnail uploaded",n)})}catch(t){e.sdk.log("FEAAS: Thumbnail failed to upload",n,t)}return n}function tS(e){let t=[];if(e){let r=e.ownerDocument.defaultView,n,i;for(;r!==window.top;){n=r.parent;for(let e=0;e<n.frames.length;e++)if(n.frames[e]===r){for(let e of n.document.getElementsByTagName("iframe"))if(e.contentWindow===r){i=e.getBoundingClientRect();let r=e.contentWindow.getComputedStyle(e);t.push({left:i.left+parseInt(r.borderLeftWidth),top:i.top+parseInt(r.borderTopWidth)})}r=n;break}}}return t.reduce((e,t)=>({left:e.left+t.left,top:e.top+t.top}),{left:0,top:0})}function tI(e){var t;return{context:HTMLElement,frontend:null==e?void 0:e.getContextAttribute("frontend"),src:null!=(t=null==e?void 0:e.getAttribute("src"))?t:"/editor.js",library:null==e?void 0:e.getAttribute("library"),component:null==e?void 0:e.getAttribute("component"),version:null==e?void 0:e.getAttribute("version"),instance:null==e?void 0:e.getAttribute("instance"),forked:null==e?void 0:e.getAttribute("forked"),revision:(null==e?void 0:e.getAttribute("revision"))||"saved",hidden:(null==e?void 0:e.getAttribute("hidden"))!=null,for:null==e?void 0:e.getAttribute("for"),state:(null==e?void 0:e.getAttribute("state"))||"idle",changed:(null==e?void 0:e.getAttribute("changed"))!=null}}"undefined"!=typeof window&&(window.FEAASReactElement=eH,null!=window.FEAASLoading||(window.FEAASLoading=Promise.resolve()));var tA=class extends ez{constructor(){super(...arguments),this.framePoint={top:0,left:0},this.wrapperRect={top:0,left:0,width:0,height:0},this.bodyRect={top:0,left:0,width:0,height:0},this.defaultProps={hidden:!1},this.setTarget=(e,t={component:e.getAttribute("component"),version:e.getAttribute("version"),revision:e.getAttribute("revision"),instance:e.getAttribute("instance")})=>{if(!this.closing&&(!this.target||null==e))return this.set(t),this.target=e,!0},this.onChromeMeasureElement=(e,t=e.getBoundingClientRect())=>e.ownerDocument==document?{left:t.left-this.bodyRect.left,top:t.top-this.bodyRect.top,width:t.width,height:t.height}:{left:t.left+this.framePoint.left-this.bodyRect.left,top:t.top+this.framePoint.top-this.bodyRect.top,width:t.width,height:t.height},this.onBeforeMeasure=e=>{e.memoized.focusable&&(this.framePoint=tS(e.memoized.focusable)),this.chrome&&(this.wrapperRect=this.chrome.positionable.getBoundingClientRect(),this.bodyRect=this.chrome.positionable.ownerDocument.body.parentElement.getBoundingClientRect())},this.onMeasure=()=>{}
76,this.onPosition=({focusable:e,root:t})=>{!this.chrome||this.props.hidden||(e?(this.chrome.wrapper.style.width=e.width+32+"px",this.chrome.wrapper.style.height=e.height+16+64+"px",this.chrome.wrapper.style.left=e.left-16+"px",this.chrome.wrapper.style.top=e.top-64+"px",this.chrome.wrapper.style.opacity="1",this.chrome.absolute=this.querySelector(".ui.overlays"),this.chrome.absolute&&(this.chrome.absolute.style.left=t.left+"px",this.chrome.absolute.style.top=t.top+"px")):(this.chrome.wrapper.style.opacity="0",this.chrome.wrapper.style.left="-1000px",this.chrome.wrapper.style.top="-1000px"))},this.onWindowMessage=e=>{var t;switch(null==(t=e.data)?void 0:t.type){case"feaasEdit":let r=this.getPlaceholder();this.setTarget(r.editable,e.data)&&(this.loader=r.loader,document.body.appendChild(r.clipper),this.editedUID=e.data.id,this.setPlaceholder(),this.open());break;case"feaasMeasurements":this.measurements=e.data.measurements,this.props.hidden||this.setPlaceholder()}},this.onContentChange=()=>{this.setAttribute("changed","changed"),requestAnimationFrame(()=>{this.setIframeComponentContent()})},this.onClose=()=>{var e;this.setAttribute("hidden","hidden"),this.placeholder&&(this.placeholder.positionable.style.opacity="0",this.placeholder.positionable.style.pointerEvents="none"),this.chrome&&(this.chrome.wrapper.style.opacity="0"),null!=(e=this.target)&&e.parentNode&&(this.target.outerHTML=this.target.outerHTML),this.setTarget(null,{component:null,version:null,instance:null,revision:null}),this.setEditorContext({isFocused:!1})},this.onVersionStateChange=(e,t)=>
76{this.versionContext=e,this.setVersionContext=t},this.onEditorStateChange=(e,t)=>{this.editorContext=e,this.setEditorContext=t,e.editor&&"loading"==this.props.state&&!this.props.hidden&&(this.setAttribute("state","ready"),this.ownerDocument.fonts.ready.then(()=>setTimeout(()=>{this.setReadyState(),this.setIframeComponentContent()},100)))}}getProps(){return tI(this)}getReactRootElement(){return this.reactRootElement||(this.reactRootElement=document.createElement("div"),this.getRoot().appendChild(this.reactRootElement)),this.reactRootElement}showLoader(){this.loader||(this.loader=document.createElement("feaas-loader"),this.loader.setAttribute("opacity","0.6"),this.loader.style.zIndex="1000",this.target.appendChild(this.loader),"FEAAS-COMPONENT"==this.target.tagName&&(this.target.style.position="relative"))}hideLoader(){this.loader&&(this.loader.setAttribute("hidden","hidden"),"FEAAS-COMPONENT"==this.target.tagName&&(this.target.style.position="relative",this.target.style.position=""))}load(){return import(this.formatURL(this.props.src,this.props.frontend))}connectedCallback(){super.connectedCallback(),window.addEventListener("message",this.onWindowMessage)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.onWindowMessage)}setIframe(e){this.iframe=e}setIframeComponentContent(){this.placeholder&&this.iframe&&this.placeholder.editable.innerHTML&&this.iframe.contentWindow.postMessage({type:"feaasUpdate",id:this.editedUID,content:this.placeholder.editable.innerHTML})}setPlaceholder(){if(!this.iframe)return;let e=this.iframe.clientWidth,t=this.iframe.clientHeight,r=this.iframe.getBoundingClientRect(),n=this.getPlaceholder(),i=document.body.getBoundingClientRect(),o=this.measurements[this.editedUID];o&&(Object.assign(n.clipper.style,{position:"absolute",top:r.top+this.iframe.clientTop-i.top+"px",left:r.left+this.iframe.clientLeft-i.left+"px",width:e+"px",height:t+"px",pointerEvents:"none",zIndex:1,overflow:"hidden"}),Object.assign(n.positionable.style,{position:"absolute",top:o.top+"px",left:o.left+"px",width:o.width+"px",zIndex:2,transition:"opacity 0.4s",pointerEvents:this.props.hidden?"none":"all"}),Object.assign(n.loader.style,{position:"absolute",top:o.top+"px",left:o.left+"px",width:o.width+"px",height:o.height+"px",filter:"opacity(0.6)",zIndex:3,pointerEvents:"none"}),document.dispatchEvent(new Event("feaasRefresh",{bubbles:!0})))}getPlaceholder(){return this.placeholder||(this.placeholder={clipper:document.createElement("div"),positionable:document.createElement("div"),editable:Object.assign(document.createElement("div"),{className:"-feaas"}),loader:document.createElement("feaas-loader")},this.placeholder.clipper.appendChild(this.placeholder.positionable),this.placeholder.positionable.appendChild(this.placeholder.editable),this.placeholder.clipper.appendChild(this.placeholder.loader)),this.placeholder}attributeChangedCallback(e,t,r){t!==r&&("hidden"==e&&(this.style.setProperty("display","block","important"),this.style.setProperty("transition","opacity 0.3s","important"),r?(this.style.setProperty("opacity","0","important"),this.style.pointerEvents="none"):(this.style.setProperty("opacity","1","important"),this.style.pointerEvents="all")),super.attributeChangedCallback(e,t,r))}open(){clearTimeout(this.closing),this.removeAttribute("hidden"),this.removeAttribute("changed"),this.setLoadingState()}shouldFork(e){return null==e.forkOriginId&&null!=this.props.instance}cleanup(){var e;this.placeholder&&(null==(e=this.placeholder.clipper)||e.remove(),this.placeholder=null)}close(){console.log("Editor is not ready")}unfork(){console.log("Editor is not ready")}discard(){console.log("Editor is not ready")}save(){console.log("Editor is not ready")}setVersionContext(e){console.log("Editor is not ready")}setEditorContext(e){console.log("Editor is not ready")}setLoadingState(){this.showLoader(),this.setAttribute("state","loading")}setReadyState(){this.hideLoader(),this.setEditorContext({activeVersionId:this.component.versions[0].id}),this.setAttribute("state","ready")}
76render({children:e,component:t,version:r,instance:n},{Editor:i,VersionStatusList:o,VersionStatusButton:a,Version:s,VersionMenu:l,EditorUIUndo:u,EditorUIMode:c,React:{useEffect:d,useMemo:p,useState:f,useContext:h},Chakra:{HStack:m,Box:g,Button:y,MenuItem:v},Chrome:b,ReactDOM:E,useSDK:w,useLibrary:T,useSlots:x,useModelObserver:O,ConfirmationContext:N,VersionContext:C}){if(!this.payload)return;let{React:S}=this.payload,I=w(),A=T(),[_,R]=f(),{setConfirm:D}=h(N),k=n||r;_&&(this.component=_),d(()=>{if(this.props.hidden)return;let e=A.components.getItem(t).clone();return e.versions.search({ids:[r,n].filter(Boolean),componentIds:[t]}).then(t=>{e.versions.setItems(t);let i=e.findVersion(n,["staged","published"]),o=e.findVersion(r,["staged","published"]);if(i)i.deletedAt?(i.getDraft().changeAndNotify(o.toProperties()).restore(),console.error("FEAAS Editor: Restoring fork")):(console.error("FEAAS Editor: Pre-forked"),this.setAttribute("forked",i.id));else if(this.removeAttribute("forked"),this.shouldFork(o)){console.error("FEAAS Editor: Forking");let e=o.fork(n).id;this.setAttribute("instance",e)}else console.error("FEAAS Editor: Regular");R(e)}),()=>{this.closing=setTimeout(()=>{this.closing=null,this.cleanup(),R(null)},400)}},[r,this.props.hidden]);let j=O(null==_?void 0:_.versions,[]).filter(e=>e.id==k),L=j[0];L&&!this.props.hidden&&(this.version=L),d(()=>(this.unfork=()=>{D({title:"Reverting component customizations",button:"Discard",body:"Are you sure to reset component to its original state? All changes will be lost.",action:()=>{let e=_.findVersion(r,["staged","published"]);_.findVersion(n).unstage().unpublish().changeAndNotify(e.toProperties()),_.saveVersions(!1),this.setVersionContext({needsWrite:!0}),this.removeAttribute("forked"),requestAnimationFrame(this.onClose)}})},this.discard=()=>{this.props.changed&&(_.findVersion(k).revert(),_.saveVersions(!1),this.setVersionContext({needsWrite:!0}))},this.close=()=>{D({title:"Component has unsaved changes",button:"Discard",body:"Are you sure to close editor and discard changes?",bypass:!this.props.changed,action:()=>{this.discard(),requestAnimationFrame(this.onClose)}})},this.save=()=>{D({bypass:!!this.props.forked,title:"Customizing component",button:"Save",body:"Changes to the component will only be visible on that page. Changes to component done in Component Builder will not be reflected here. It will be possible to revert the customization.",action:()=>{var e,t;null==(t=null==(e=_.findVersion(k).commitData({view:this.editorContext.editor.getData({rootName:k}),model:""}))?void 0:e.stage())||t.publish(),this.removeAttribute("changed"),this.setAttribute("forked",k),_.saveVersions(!1)}})},()=>{delete this.unfork,delete this.discard,delete this.save,delete this.editorContext,delete this.versionContext,delete this.setEditorContext,delete this.setVersionContext}),[_]);let P=p(()=>this.target,[_]);return p(()=>_&&x(e,({picker:e,children:t})=>S.createElement(g,{ref:e=>{this.chrome=e?{positionable:e,wrapper:e.querySelector(".editor-chrome"),absolute:this.querySelector(".ui.overlays")}:null}},S.createElement(g,{className:"editor-wrapper",position:"absolute",left:0,top:0},S.createElement(i,{datasources:I.datasources,sdk:I,library:A,component:_,versions:j,context:{isAutosaveEnabled:!1,onChromeMeasure:this.onMeasure,onChromeBeforeMeasure:this.onBeforeMeasure,onChromeMeasureElement:this.onChromeMeasureElement,onChromePosition:this.onPosition,onContentChange:this.onContentChange}},{exports:this.onEditorStateChange,after:t,chrome:({editor:e})=>e&&S.createElement(b,null),children:({isArchivedDisplayed:e,editor:t,status:r})=>S.createElement(g,{position:"absolute",left:0,top:0,className:"editor-chrome",p:4,boxShadow:"2xl",pointerEvents:"none",opacity:0,transition:"opacity 0.3s"},S.createElement(g,{left:0,width:"4",top:0,bottom:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),S.createElement(g,{right:0,width:"4",top:0,bottom:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),S.createElement(g,{top:0,height:"16",left:0,right:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),S.createElement(g,{bottom:0,height:"4",left:0,right:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),L&&S.createElement(s,{version:L,node:P,ignoreBreakpoints:!0,deps:[this.props.forked,this.props.changed]},{exports:this.onVersionStateChange,left:S.createElement(m,{justifyContent:"space-between"},S.createElement(u,{size:"sm",editor:"ready"==r?t:null}),S.createElement(c,{size:"sm"})),middle:(e,t)=>
76[!1],right:S.createElement(S.Fragment,null,S.createElement(y,{variant:"secondary",size:"sm",onClick:this.close},"Close"),S.createElement(y,{variant:"primary",size:"sm",onClick:this.save,isDisabled:!this.props.changed},this.props.changed?this.props.forked?"Save":"Save customization":"Up to date"),S.createElement(l,{isDisabled:!this.props.forked&&!this.props.changed},S.createElement(v,{onClick:this.unfork,isDisabled:!this.props.forked},"Unfork"),S.createElement(v,{onClick:this.discard,isDisabled:!this.props.changed},"Discard")))}))})))),[L,this.props.forked,this.props.changed])}isReadyToLoad(){return null!=this.props.component&&null!=this.props.version&&!this.props.hidden}};function t_(e){var t,r;return{part:(null==e?void 0:e.getAttribute("part"))||"picker",slot:(null==e?void 0:e.getAttribute("part"))||"picker",mode:null==e?void 0:e.getAttribute("mode"),dialog:null==e?void 0:e.getAttribute("dialog"),placeholder:(null==e?void 0:e.getAttribute("placeholder"))||"No theme",frontend:null!=(t=null==e?void 0:e.getContextAttribute("frontend"))?t:"https://components.sitecorecloud.io",src:null!=(r=null==e?void 0:e.getAttribute("src"))?r:"/picker.js",hidden:(null==e?void 0:e.getAttribute("hidden"))!=null,variant:null==e?void 0:e.getAttribute("variant"),context:void 0,onClose:void 0,setAttribute:void 0,getAttribute:void 0}}tA.observedAttributes=["library","component","version","revision","hidden","state","changed","forked"],tA.register("feaas-editor");var tR=class extends ez{constructor(){super(...arguments),this.defaultProps={hidden:!1}}getProps(){return t_(this)}load(){return this.import(this.formatURL(this.props.src,this.props.frontend))}connectedCallback(){this.setAttribute("feaas-role","ui"),super.connectedCallback()}render({placeholder:e,context:t,mode:r,dialog:n,children:i,variant:o},{Picker:a,React:s,useContext:l,EnvironmentContext:u,useLibrary:c,useSDK:d,BYOC:p}){let[f,h]=s.useReducer(e=>e+1,0),m=d(),g=l(u),y=c("collections"),v=c("components"),b=d("datasources"),E=c(),w=(null==(O=null==(x=null==E?void 0:E.stylesheets)?void 0:x.first)?void 0:O.rules)||(null==(N=null==E?void 0:E.stylesheet)?void 0:N.styles),T=d("renderingHost.expandedComponents");var x,O,N,C=null==t?void 0:t.getAttribute("data");if(C)try{C=JSON.parse(C)}catch(e){}if(t)var S=m.ExternalComponent.getDefinition(t),I=S&&!S.getConfiguration(t),A=(null==S?void 0:S.type)=="feaas"?v.find(e=>e.id==t.getAttribute("component")):null==p?void 0:p.getComponent(String(t.getAttribute("data-external-id")));return s.createElement(a,{cdn:g.cdn,rules:w,collections:y,themeContext:t,placeholder:e,embed:A,externalComponents:T,datasources:b,data:C,versionId:null==t?void 0:t.getAttribute("version"),mode:r||(I?"library":A?"context":null),setAttribute:(e,t,r)=>{"data"==t&&r&&(r=JSON.stringify(r)),this.props.setAttribute(e,t,r),h()},getAttribute:(e,r)=>null==t?void 0:t.getAttribute(r),dialog:n,context:t,variant:o,onModeChange:(e,t)=>
76{this.set({mode:e,dialog:t})}},i)}};function tD(e){var t,r,n,i,o;return{library:null==e?void 0:e.getAttribute("library"),src:null!=(t=null==e?void 0:e.getAttribute("src"))?t:"/context.js",environment:null!=(r=null==e?void 0:e.getAttribute("environment"))?r:void 0,frontend:null!=(n=null==e?void 0:e.getAttribute("frontend"))?n:"https://components.sitecorecloud.io",backend:null!=(i=null==e?void 0:e.getAttribute("backend"))?i:"https://components.sitecorecloud.io/api",cdn:null!=(o=null==e?void 0:e.getAttribute("cdn"))?o:"https://feaas.blob.core.windows.net",auth:null,isolate:(null==e?void 0:e.getAttribute("isolate"))==null||(null==e?void 0:e.getAttribute("isolate"))=="true"}}tR.observedAttributes=["library","mode","frontend","src","hidden","variant","dialog"],tR.register("feaas-picker");var tk=class extends ez{constructor(){super(...arguments),this.defaultProps={isolate:!0},this.onStatusChange=(e,t)=>{"ready"==e&&(this.whenSDKReady.resolve(t),this.dispatchEvent(new CustomEvent("feaasReady",{bubbles:!0,composed:!0,detail:t})))},this.whenSDKReady=eG(e=>{this.sdk=e})}getProps(){return tD(this)}load(){return this.import(this.formatURL(this.props.src,this.props.frontend))}isReadyToLoad(){return super.isReadyToLoad()&&null!=this.props.library}getTheme(e){return e}getRoot(){return"false"===this.getAttribute("isolate")?this:this.shadowRoot||this.attachShadow({mode:"open"})}getReactRootElement(){return this.reactRootElement||(this.reactRootElement=document.createElement("div"),this.getRoot().appendChild(this.reactRootElement)),this.reactRootElement}connectedCallback(){this.setAttribute("feaas-role","ui"),Array.from(this.children).forEach(e=>{this.getRoot().appendChild(e)}),document.addEventListener("feaasMount",this),document.addEventListener("feaasUnmount",this),super.connectedCallback()}disconnectedCallback(){document.removeEventListener("feaasMount",this),document.removeEventListener("feaasUnmount",this),super.disconnectedCallback()}getPortalRoot(){return this.getRoot()}render({children:e,library:t},{AppContext:r,Chakra:{Button:n,Tooltip:i},React:o}){let a={containerRef:{current:this.getPortalRoot()}};return i.defaultProps={hasArrow:!0,placement:"top",portalProps:a},o.createElement(r,{environment:this.props.environment,backend:this.props.backend,libraryId:this.props.library,container:this.getRoot(),auth:this.props.auth,getTheme:this.getTheme,onStatusChange:this.onStatusChange,modalProps:{portalProps:a},chakraProps:{resetScope:':where([feaas-role="ui"])',cssVarsRoot:":host",resetCSS:!0,toastOptions:{portalProps:a}}},e)}};tk.observedAttributes=["library","component","version","revision","hostname","template"],tk.register("feaas-context"),tk.prototype.clientside=eB;var tj=class extends ez{load(){return Promise.all([import("https://cdn.skypack.dev/react-dom/client")]).then(([e])=>({React:n,ReactDOM:$,ReactDOMClient:e}))}connectedCallback(){this._setAttribute||(this._setAttribute=this.setAttribute,this.setAttribute=function(e,t){let r=this.getAttribute(t);this._setAttribute(e,t),this.attributeChangedCallback(e,r,t)}),super.connectedCallback()}update(){var e;if(!(!(null!=(e=D(this.getComponentName()))&&e.component)&&"false"==this.getAttribute("hydrate")))return super.update()}render(e,{React:t}){var r;let n=null==(r=D(this.getComponentName()))?void 0:r.component;return n||console.warn(`FEAASExternal: \`${this.getComponentName()}\` is not registered`),t.createElement(t.Fragment,null,n&&t.createElement(n,{componentName:this.getComponentName(),...e}))}getComponentName(){return this.getAttribute("data-external-id")}getProps(){return k(((e={})=>Object.keys(e).reduce((t,r)=>Object.assign(t,{[d(r)]:e[r]}),{}))(Array.from(this.attributes).reduce((e,{name:t,value:r})=>("data-external-id"==t&&(t="component-name"),Object.assign(e,{[t]:r})),{}))).merged}static Preview(e){var t;let r=(null==e?void 0:e.src)||("undefined"!=typeof window?null==(t=window.location.search.match(/feaasSrc=([^&]+)/))?void 0:t[1]:null);return r?n.createElement(tF,{src:r,...e}):null}static linkComponents(e){return()=>e.map(e=>null)}};tj.registered=A,tj.registerComponent=_,tj.setRegistrationCallback=j,tj.getComponent=
76D,tj.register("feaas-external");var{linkComponents:tL}=tj,tP={},tF=function({data:e,lastModified:t,fetchedData:r,renderNode:i,...o}){var a,s,l,u;let c;"template"in o&&o.template&&(c=(a=o.template,s=r||e||{},eL(a).map(e=>eA(e,s,l))).map((e,t)=>(function e(t,r,i){var o;if(3===t.nodeType)return t.textContent;let a=Array.from(t.childNodes).map((t,n)=>e(t,r,n)),s={};for(let e=0;e<t.attributes.length;e++){let{name:r,value:n}=t.attributes[e];"style"==r?s[r]=String(n||"").trim().split(/\s*;\s*/).reduce((e,t)=>{let[r,n]=t.split(":");return{...e,[d(r)]:n}},{}):"class"==r?s.className=n:s[r]=n}let l=null==r?void 0:r(t,s),u=(null==l?void 0:l[0])||t.nodeName.toLowerCase();"style"==u&&(s.dangerouslySetInnerHTML={__html:a.join(` 77`)});let c=Object.assign({key:i,suppressHydrationWarning:!0},(null==l?void 0:l[1])||s),p=(null==(o=null==l?void 0:l[1])?void 0:o.children)||a;return n.createElement(u,c,["img","br","input","style"].includes(u)?null:p)})(e,(e,t)=>{if(i){let r=null==i?void 0:i(e,t);if(null!=r&&"type"in r)return[r.type,r.props];t={...t,...r}}if(tP[e.localName])return[tP[e.localName],t];if("feaas-external"==e.localName){let e={};for(var r in t)e["data-external-id"==r?"componentName":d(r)]=t[r];return[M,e]}},t))),"src"in o&&(o={...e3(o.src),...o});let p=null==(u=o.fetch)||!0===u?["template","stylesheet","data"]:[].concat(u||[]),f=p.includes("data")?e:p.includes("template")?r||e:null;return n.createElement(n.Fragment,null,"preload"in o&&!1,n.createElement("feaas-component",{class:"-feaas",...o,"last-modified":t?String(t):null,fetch:null==o.fetch?o.fetch:[].concat(o.fetch).join(" "),suppressHydrationWarning:!0,template:null,data:"string"==typeof f?f:f?JSON.stringify(f):null},c))};let tM=e=>{var t,r,i,o,a,l,u;let c=(null==(t=e.params)?void 0:t.ComponentRevision)||e.revisionFallback;if(!e.template&&(!e.params||!e.params.LibraryId||!e.params.ComponentId||!e.params.ComponentVersion||!e.params.ComponentHostName||!c))return null;let d=Object.assign(Object.assign({},e.fetchedData),{_:(0,s.q1)(null!=(r=e.fields)?r:{})});return n.createElement(tF,{data:d,template:e.template,cdn:null==(i=e.params)?void 0:i.ComponentHostName,library:null==(o=e.params)?void 0:o.LibraryId,version:null==(a=e.params)?void 0:a.ComponentVersion,component:null==(l=e.params)?void 0:l.ComponentId,instance:null==(u=e.params)?void 0:u.ComponentInstanceId,revision:c,fetch:[]})},t$=e=>{var t,r;let i=`component feaas ${null==(t=e.params)?void 0:t.styles}`.trimEnd(),o=null==(r=e.params)?void 0:r.RenderingIdentifier;return n.createElement("div",{className:i,id:o||void 0},n.createElement("div",{className:"component-content"},n.createElement(tM,Object.assign({},e))))},tU=e=>{var t;return n.createElement("div",null,"A rendering error occurred: ",null==(t=e.error)?void 0:t.message,".")};class tV extends n.Component{constructor(e){super(e),this.state={}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){this.setState({error:e})}render(){var e,t,r;let o=this.props;if(this.state.error)return this.props.errorComponent?n.createElement(this.props.errorComponent,{error:this.state.error}):n.createElement(tU,{error:this.state.error});let{ComponentName:a}=o.params||{};if(!a){let e={errorOverride:"BYOC: The ComponentName for this rendering is missing"};return o.missingComponentComponent?n.createElement(this.props.missingComponentComponent,Object.assign({},e)):n.createElement(i,Object.assign({},e))}let l={rendering:{componentName:a},errorOverride:"BYOC: This component was not registered."},u=this.props.missingComponentComponent?n.createElement(this.props.missingComponentComponent,Object.assign({},l)):n.createElement(i,Object.assign({},l)),c=this.props.errorComponent,d={};if(null==(e=o.params)?void 0:e.ComponentProps)try{d=null!=(t=JSON.parse(o.params.ComponentProps))?t:{}}catch(e){return console.error(`Parsing props for ${a} component from rendering params failed. Error: ${e}`),c?n.createElement(c,{error:e}):n.createElement(tU,{error:e})}let p=Object.assign(Object.assign({},o.fetchedData),{_:(0,s.q1)(null!=(r=o.fields)?r:{})});return n.createElement(M,Object.assign({},o.rendering,{componentName:a,clientFallback:u,datasources:p},d))}}let tB="BYOCWrapper",tG=e=>{var t,r,i;let o=null==(r=null==(t=e.params)?void 0:t.styles)?void 0:r.trimEnd(),a=null==(i=e.params)?void 0:i.RenderingIdentifier;return n.createElement("div",{className:o||void 0,id:a||void 0},n.createElement("div",{className:"component-content"},n.createElement(tV,Object.assign({},e))))};var tq=r(2192);let tz=({rendering:e,placeholderName:t,children:r})=>{let i=(t,r,n)=>{let i=n?"placeholder":"rendering",a={type:"text/sitecore",chrometype:i,className:"scpm",kind:t};
77if(t===tq.MetadataKind.Open)if("placeholder"===i&&n){let t="";for(let i of Object.keys(e.placeholders)){if(n===i){t=r?`${n}_${r}`:`${n}_${tq.DEFAULT_PLACEHOLDER_UID}`;break}if((0,o.isDynamicPlaceholder)(i)&&(0,o.getDynamicPlaceholderPattern)(i).test(n)){t=r?`${i}_${r}`:`${i}_${tq.DEFAULT_PLACEHOLDER_UID}`;break}}a.id=t}else a.id=r;return a};return n.createElement(n.Fragment,null,((e,t)=>n.createElement(n.Fragment,null,n.createElement("code",Object.assign({},i(tq.MetadataKind.Open,e,t))),r,n.createElement("code",Object.assign({},i(tq.MetadataKind.Close,e,t)))))(e.uid,t))};var tH=r(8201);class tK extends n.Component{constructor(e){super(e),this.defaultErrorMessage="There was a problem loading this section.",this.defaultLoadingMessage="Loading component...",this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){var r,n;this.showErrorDetails()&&console.error(`An error occurred in component ${null==(r=this.props.rendering)?void 0:r.componentName} (${null==(n=this.props.rendering)?void 0:n.uid}): `),console.error({error:e,errorInfo:t})}isInDevMode(){return!1}showErrorDetails(){var e,t;return this.isInDevMode()||(null==(e=this.props.sitecoreContext)?void 0:e.pageState)===o.LayoutServicePageState.Edit||(null==(t=this.props.sitecoreContext)?void 0:t.pageState)===o.LayoutServicePageState.Preview}render(){var e;if(this.state.error)if(this.props.errorComponent)return n.createElement(this.props.errorComponent,{error:this.state.error});else if(this.showErrorDetails())return n.createElement("div",null,n.createElement("div",{className:"sc-jss-placeholder-error"},"A rendering error occurred in component"," ",n.createElement("em",null,null==(e=this.props.rendering)?void 0:e.componentName),n.createElement("br",null),"Error: ",n.createElement("em",null,this.state.error.message||JSON.stringify(this.state.error))));else return n.createElement("div",null,n.createElement("div",{className:"sc-jss-placeholder-error"},this.defaultErrorMessage));return this.props.disableSuspense||this.props.isDynamic?this.props.children:n.createElement(n.Suspense,{fallback:n.createElement("h4",null,this.props.componentLoadingMessage||this.defaultLoadingMessage)},this.props.children)}}let tW=(0,tH.S)()(tK);var tQ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};class tY extends n.Component{constructor(e){super(e),this.nodeRefs=[],this.state={},this.addRef=this.addRef.bind(this),this.updateKeyAttributes=this.updateKeyAttributes.bind(this),this.createRawElement=this.createRawElement.bind(this)}static getPlaceholderDataFromRenderingData(e,t,r){let n,i=t.slice();return((null==e?void 0:e.placeholders)&&Object.keys(e.placeholders).forEach(t=>{let n=(0,o.isDynamicPlaceholder)(t)?(0,o.getDynamicPlaceholderPattern)(t):null;n&&n.test(i)&&(r===o.EditMode.Metadata?i=t:(e.placeholders[i]=e.placeholders[t],delete e.placeholders[t]))}),n=e&&e.placeholders&&Object.keys(e.placeholders).length>0?e.placeholders[i]:null)?n:(console.warn(`Placeholder '${i}' was not found in the current rendering data`,JSON.stringify(e,null,2)),[])}componentDidMount(){this.updateKeyAttributes()}componentDidUpdate(){this.updateKeyAttributes()}componentDidCatch(e){this.setState({error:e})}getSXAParams(e){return e.params?e.params.FieldNames&&{styles:`${e.params.GridParameters||""} ${e.params.Styles||""}`}:{}}getComponentsForRenderingData(e){var t;let r=this.props,{name:s,fields:l,params:c,missingComponentComponent:d,hiddenRenderingComponent:p}=r,f=tQ(r,["name","fields","params","missingComponentComponent","hiddenRenderingComponent"]),h=e.map((e,t)=>{var r,h,m;let g,y=e.uid?e.uid:`component-${t}`,v={key:y},b=!1;if(!e.componentName&&e.name)return this.createRawElement(e,v);e.componentName===a.YR?(g=null!=p?p:u,b=!0):e.componentName?g=this.getComponentForRendering(e):(g=()=>n.createElement(n.Fragment,null),b=!0),g||("FEaaSComponent"===e.componentName?g=tM:"FEaaSWrapper"===e.componentName?g=t$:"BYOCComponent"===e.componentName?g=tV:e.componentName===tB&&(g=tG)),g||(console.error(`Placeholder ${s} contains unknown component ${e.componentName}. Ensure that a React component exists for it, and that it is registered in your componentFactory.js.`),g=null!=d?d:i,b=!0);let E=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v),f),(l||e.fields)&&{fields:Object.assign(Object.assign({},l),e.fields)}),(c||e.params)&&{params:Object.assign(Object.assign(Object.assign({}
77,c),e.params),this.getSXAParams(e))}),{rendering:e}),w=n.createElement(g,this.props.modifyComponentProps?this.props.modifyComponentProps(E):E);if(!b){let i="text/sitecore"===w.props.type?w.props.type:"",a=e.componentName===tB,s=!!(null==(r=g.render)?void 0:r.preload),l=this.props.disableSuspense||(null==(h=this.props.sitecoreContext)?void 0:h.pageState)===o.LayoutServicePageState.Edit;w=n.createElement(tW,Object.assign({key:w.type+"-"+t,errorComponent:this.props.errorComponent,componentLoadingMessage:this.props.componentLoadingMessage,type:i,isDynamic:s||a,disableSuspense:l},w.props),w)}return(null==(m=this.props.sitecoreContext)?void 0:m.editMode)===o.EditMode.Metadata?n.createElement(tz,{key:y,rendering:e},w):w}).filter(e=>e);return(null==(t=this.props.sitecoreContext)?void 0:t.editMode)===o.EditMode.Metadata?[n.createElement(tz,{key:this.props.rendering.uid,placeholderName:s,rendering:this.props.rendering},h)]:h}getComponentForRendering(e){var t;let r=this.props.componentFactory;return r&&"function"==typeof r?(null==(t=e.params)?void 0:t.FieldNames)?r(e.componentName,e.params.FieldNames):r(e.componentName):(console.warn(`No componentFactory was available to service request for component ${e}`),null)}addRef(e){this.nodeRefs.push(e)}createRawElement(e,t){if(!e.name)return console.error('"elem.name" is undefined in "createRawElement". Something is likely wrong with your component data. Ensure that your components have a name.'),null;let r=(0,s.f_)(e.attributes),i=Object.assign(Object.assign(Object.assign({},t),r),{dangerouslySetInnerHTML:e.contents?{__html:e.contents}:void 0});return!Array.isArray(r)&&r&&"placeholder"===r.chrometype&&(i.phkey=e.attributes.key,i.ref=this.addRef),n.createElement(e.name,i)}updateKeyAttributes(){this.nodeRefs&&this.nodeRefs.forEach(e=>{if(e&&e.getAttribute){let t=e.getAttribute("phkey");t&&e.setAttribute("key",t)}})}}var tJ=r(9376);class tX extends tY{constructor(e){super(e),this.isEmpty=!1}componentDidMount(){super.componentDidMount(),this.isEmpty&&tq.HorizonEditor.isActive()&&tq.HorizonEditor.resetChromes()}renderEmptyPlaceholder(e){return n.createElement("div",{className:"sc-jss-empty-placeholder"},e)}render(){var e;let t=Object.assign({},this.props);if(delete t.componentFactory,this.state.error)return t.errorComponent?n.createElement(t.errorComponent,{error:this.state.error}):n.createElement("div",{className:"sc-jss-placeholder-error"},"A rendering error occurred: ",this.state.error.message,".");let r=t.rendering,i=tY.getPlaceholderDataFromRenderingData(r,this.props.name,null==(e=this.props.sitecoreContext)?void 0:e.editMode);this.isEmpty=i.every(e=>!e.componentName&&void 0!==e.name);let o=this.getComponentsForRenderingData(i);if(this.props.renderEmpty&&this.isEmpty){let e=this.props.renderEmpty(o);return o.length?this.renderEmptyPlaceholder(e):e}if(o.length&&this.isEmpty)return this.renderEmptyPlaceholder(o);if(this.props.render)return this.props.render(o,i,t);{if(!this.props.renderEach)return o;let e=this.props.renderEach;return o.map((t,r)=>t&&t.props&&"text/sitecore"===t.props.type?t:e(t,r))}}}tX.propTypes=tY.propTypes;let tZ=function(e){function t(t){let r=(0,n.useContext)(tJ.Gu);return n.createElement(e,Object.assign({},t,{componentFactory:t.componentFactory||r}))}return t.displayName=`withComponentFactory(${e.displayName||e.name||"Anonymous"})`,t}(tX),t0=(0,tH.S)()(tZ);var t1=r(698);let t2=e=>{let t=(0,n.useContext)(t1.sL);return n.createElement(t0,Object.assign({},e,{modifyComponentProps:e=>{if(!e.rendering.uid)return e;let r=t[e.rendering.uid];return Object.assign(Object.assign({},e),r)}}))}},3134:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLRequestClient=t.DefaultRetryStrategy=void 0;
77let o=r(529),a=i(r(2853)),s=i(r(8572)),l=i(r(7506));class u{constructor(e={}){this.statusCodes=e.statusCodes||[429],this.errorCodes=e.errorCodes||["ECONNRESET","ETIMEDOUT","EPROTO"],this.factor=e.factor||2}shouldRetry(e,t,r){var n;let i=(null==(n=e.response)?void 0:n.status)!==void 0&&this.statusCodes.includes(e.response.status),o=void 0!==e.code&&this.errorCodes.includes(e.code);return r>0&&t<=r&&(i||o)}getDelay(e,t){var r;let n=null==(r=e.response)?void 0:r.headers,i=null==n?void 0:n.get("Retry-After");return null!=i&&""!==i.trim()?1e3*Number.parseFloat(i):1e3*Math.pow(this.factor,t-1)}}t.DefaultRetryStrategy=u;class c{constructor(e,t={}){var r;if(this.endpoint=e,this.headers={},t.apiKey&&(this.headers.sc_apikey=t.apiKey),t.headers&&(this.headers=Object.assign(Object.assign({},this.headers),t.headers)),!e||!(0,a.default)(e).hostname)throw Error(`Invalid GraphQL endpoint '${e}'. Verify that 'layoutServiceHost' property in 'scjssconfig.json' file or appropriate environment variable is set`);this.timeout=t.timeout,this.retries=null!=(r=t.retries)?r:3,this.retryStrategy=t.retryStrategy||new u({statusCodes:[429,502,503,504,520,521,522,523,524]}),this.client=new o.GraphQLClient(e,{headers:this.headers,fetch:t.fetch}),this.debug=t.debugger||s.default.http}static createClientFactory({endpoint:e,apiKey:t}){return (r={})=>new c(e,Object.assign(Object.assign({},r),{apiKey:t}))}request(e,t,r){return n(this,void 0,void 0,function*(){let i=1,o=()=>n(this,void 0,void 0,function*(){this.debug("request: %o",{url:this.endpoint,headers:Object.assign(Object.assign({},this.headers),null==r?void 0:r.headers),query:e,variables:t});let a=Date.now(),s=[this.client.request(e,t,null==r?void 0:r.headers)];return this.timeout&&(this.abortTimeout=new l.default(this.timeout),s.push(this.abortTimeout.start)),Promise.race(s).then(e=>{var t;return null==(t=this.abortTimeout)||t.clear(),this.debug("response in %dms: %o",Date.now()-a,e),Promise.resolve(e)},e=>n(this,void 0,void 0,function*(){var t,r;null==(t=this.abortTimeout)||t.clear(),this.debug("response error: %o",e.response||e.message||e);let n=(null==(r=e.response)?void 0:r.status)||e.code;if(!this.retryStrategy.shouldRetry(e,i,this.retries))return Promise.reject(e);{let t=this.retryStrategy.getDelay(e,i);return this.debug("Error: %s. Retrying in %dms (attempt %d).",n,t,i),i++,new Promise(e=>setTimeout(e,t)).then(o)}}))});return o()})}}t.GraphQLRequestClient=c},3160:(e,t,r)=>{var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},i={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);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._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function p(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function f(e){var t=new FileReader,r=p(t);return t.readAsArrayBuffer(e),r}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(i.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;i.arrayBuffer&&i.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._noBody=!0,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):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(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)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=d(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i.blob)return this.blob().then(f);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,i,o=d(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,r=p(t=new FileReader),i=(n=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?n[1]:"utf-8",t.readAsText(e,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},i.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=s(e),t=l(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},c.prototype.delete=function(e){delete this.map[s(e)]},c.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},c.prototype.set=function(e,t){this.map[s(e)]=l(t)},c.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),u(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),u(e)},i.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var g=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function y(e,t){if(!(this instanceof y))throw TypeError('Please use the "new" operator, this DOM object c
77onstructor cannot be called as a function.');var r,i,o=(t=t||{}).body;if(e instanceof y){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=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 c(t.headers)),this.method=(i=(r=t.method||this.method||"GET").toUpperCase(),g.indexOf(i)>-1?i:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in n)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function v(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function b(e,t){if(!(this instanceof b))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},m.call(y.prototype),m.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var E=[301,302,303,307,308];b.redirect=function(e,t){if(-1===E.indexOf(t))throw RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function w(e,r){return new Promise(function(o,a){var u=new y(e,r);if(u.signal&&u.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var d=new XMLHttpRequest;function p(){d.abort()}if(d.onload=function(){var e,t,r={statusText:d.statusText,headers:(e=d.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{t.append(n,i)}catch(e){console.warn("Response "+e.message)}}}),t)};0===u.url.indexOf("file://")&&(d.status<200||d.status>599)?r.status=200:r.status=d.status,r.url="responseURL"in d?d.responseURL:r.headers.get("X-Request-URL");var n="response"in d?d.response:d.responseText;setTimeout(function(){o(new b(n,r))},0)},d.onerror=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},d.ontimeout=function(){setTimeout(function(){a(TypeError("Network request timed out"))},0)},d.onabort=function(){setTimeout(function(){a(new t.DOMException("Aborted","AbortError"))},0)},d.open(u.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?d.withCredentials=!0:"omit"===u.credentials&&(d.withCredentials=!1),"responseType"in d&&(i.blob?d.responseType="blob":i.arrayBuffer&&(d.responseType="arraybuffer")),r&&"object"==typeof r.headers&&!(r.headers instanceof c||n.Headers&&r.headers instanceof n.Headers)){var f=[];
77Object.getOwnPropertyNames(r.headers).forEach(function(e){f.push(s(e)),d.setRequestHeader(e,l(r.headers[e]))}),u.headers.forEach(function(e,t){-1===f.indexOf(t)&&d.setRequestHeader(t,e)})}else u.headers.forEach(function(e,t){d.setRequestHeader(t,e)});u.signal&&(u.signal.addEventListener("abort",p),d.onreadystatechange=function(){4===d.readyState&&u.signal.removeEventListener("abort",p)}),d.send(void 0===u._bodyInit?null:u._bodyInit)})}w.polyfill=!0,n.fetch||(n.fetch=w,n.Headers=c,n.Request=y,n.Response=b),t.Headers=c,t.Request=y,t.Response=b,t.fetch=w,Object.defineProperty(t,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},3221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=void 0;let n=r(6115),i=r(8224),o="ping",a="pong",s="complete";class l{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(e,t,r){this._type=e,this._payload=t,this._id=r}get text(){let e={type:this.type};return null!=this.id&&void 0!=this.id&&(e.id=this.id),null!=this.payload&&void 0!=this.payload&&(e.payload=this.payload),JSON.stringify(e)}static parse(e,t){let{type:r,payload:n,id:i}=JSON.parse(e);return new l(r,t(n),i)}}class u{constructor(e,{onInit:t,onAcknowledged:r,onPing:n,onPong:u}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.addEventListener("open",async r=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},e.send(new l("connection_init",t?await t():null).text)}),e.addEventListener("close",e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),e.addEventListener("error",e=>{console.error(e)}),e.addEventListener("message",t=>{try{let d=function(e,t=e=>e){return l.parse(e,t)}(t.data);switch(d.type){case"connection_ack":this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,r&&r(d.payload));return;case o:n?n(d.payload).then(t=>e.send(c(t).text)):e.send(c(null).text);return;case a:u&&u(d.payload);return}if(!this.socketState.acknowledged||void 0===d.id||null===d.id||!this.socketState.subscriptions[d.id])return;let{query:p,variables:f,subscriber:h}=this.socketState.subscriptions[d.id];switch(d.type){case"next":!d.payload.errors&&d.payload.data&&h.next&&h.next(d.payload.data),d.payload.errors&&h.error&&h.error(new i.ClientError({...d.payload,status:200},{query:p,variables:f}));return;case"error":h.error&&h.error(new i.ClientError({errors:d.payload,status:200},{query:p,variables:f}));return;case s:h.complete&&h.complete(),delete this.socketState.subscriptions[d.id];return}}catch(t){console.error(t),e.close(1006)}e.close(4400,"Unknown graphql-ws message.")})}makeSubscribe(e,t,r,n){let i=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[i]={query:e,variables:n,subscriber:r},this.socket.send(new l("subscribe",{query:e,operationName:t,variables:n},i).text),()=>{this.socket.send(new l(s,void 0,i).text),delete this.socketState.subscriptions[i]}}rawRequest(e,t){return new Promise((r,n)=>{let i;this.rawSubscribe(e,{next:(e,t)=>i={data:e,extensions:t},error:n,complete:()=>r(i)},t)})}request(e,t){return new Promise((r,n)=>{let i;this.subscribe(e,{next:e=>i=e,error:n,complete:()=>r(i)},t)})}subscribe(e,t,r){let{query:i,operationName:o}=(0,n.resolveRequestDocument)(e);return this.makeSubscribe(i,o,t,r)}rawSubscribe(e,t,r){return this.makeSubscribe(e,void 0,t,r)}ping(e){this.socket.send(new l(o,e,void 0).text)}close(){this.socket.close(1e3)}}function c(e){return new l(a,e,void 0)}u.PROTOCOL="graphql-transport-ws",t.GraphQLWebSocketClient=u},3410:(e,t,r)=>{"use strict";r.d(t,{UC:()=>W,pd:()=>K,bL:()=>H,ZL:()=>J,CJ:()=>Q,T3:()=>Y});var n=r(6029),i=r(5729),o=r(5269),a=r(2139),s=r(41),l=r(9829),u=r(2098),c=r(7454),d=r(7489),p=r(1753),f=r(1616),h=r(7989),m=r(9478),g=r(2732),y=r(6626);let v=e=>e.preventDefault(),b="PreviewSearch",[E,w,T]=(0,a.N)(b),[x,O]=(0,l.A)(b,[T]),[N,C]=x(b),[S,I]=x(b),A=e=>{let{__scopePreviewSearch:t,children:r,dir:o="ltr",activeItem:a,defaultActiveItem:s,onActiveItem
77Change:l,...c}=e,[d,p]=i.useState(!1);return(0,n.jsx)(S,{scope:t,open:d,setOpen:e=>p(e),dir:o,children:(0,n.jsx)(_,{scope:t,activeItem:a,defaultActiveItem:s,onActiveItemChange:l,children:(0,n.jsx)(u.bL,{...c,open:d,onOpenChange:e=>{p(e)},children:r})})})};A.displayName=b;let _=e=>{let{scope:t,children:r}=e,[o,a]=i.useState(null),s=i.useRef(0);i.useEffect(()=>()=>{window.clearTimeout(s.current)},[]);let l=i.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>{a(null)},200)},[]);return(0,n.jsx)(N,{scope:t,activeItem:o,onTriggerEnter:i.useCallback(e=>{window.clearTimeout(s.current),a(e)},[]),onTriggerLeave:l,onItemsEnter:i.useCallback(()=>{window.clearTimeout(s.current)},[]),onItemsLeave:l,children:r})},R="PreviewSearchInput",D=i.forwardRef((e,t)=>{let{__scopePreviewSearch:r,...i}=e,a=I(R,r);return(0,n.jsx)(u.l9,{asChild:!0,children:(0,n.jsx)(c.sG.input,{type:"text",role:"searchbox","aria-expanded":void 0,...a.open?{tabIndex:0}:{},...i,onClick:(0,o.mK)(e.onClick,e=>{e.preventDefault()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{"Enter"===e.key&&(a.open?a.setOpen(!1):a.setOpen(!0))}),ref:t,onChange:(0,o.mK)(e.onChange,()=>{a.open||a.setOpen(!0)}),onFocus:(0,o.mK)(e.onFocus,()=>{a.setOpen(!0)})})})});D.displayName=R;let k=i.forwardRef((e,t)=>{let{__scopePreviewSearch:r,children:i,sideOffset:o=1,...a}=e;return(0,n.jsx)(E.Provider,{scope:r,children:(0,n.jsx)(E.Slot,{scope:r,children:(0,n.jsx)(u.UC,{sideOffset:o,side:"bottom",align:"start",avoidCollisions:!1,...a,ref:t,onOpenAutoFocus:v,children:i})})})});k.displayName="PreviewSearchContent";let j="PreviewSearchResults";i.forwardRef((e,t)=>{let{__scopePreviewSearch:r,...i}=e,a=C(j,r);return(0,n.jsx)(c.sG.div,{role:"list",...i,ref:t,onPointerEnter:(0,o.mK)(e.onPointerEnter,z(()=>{a.onItemsEnter()})),onPointerLeave:(0,o.mK)(e.onPointerLeave,z(()=>{a.onItemsLeave()}))})}).displayName="PreviewSearchItems",i.forwardRef((e,t)=>{let{__scopePreviewSearch:r,...i}=e;return(0,n.jsx)(q,{asChild:!0,children:(0,n.jsx)(c.sG.div,{role:"listitem",...i,ref:t})})}).displayName="PreviewSearchItem";let L="PreviewSearchItemLink";i.forwardRef((e,t)=>{let r=i.useRef(null),a=(0,s.s)(t,r),{__scopePreviewSearch:l,...u}=e,{setOpen:d}=I(L,l);return(0,n.jsx)(c.sG.a,{...u,ref:a,onClick:(0,o.mK)(e.onClick,e=>{e.preventDefault(),d(!1)})})}).displayName=L;let P=i.forwardRef((e,t)=>{let{__scopePreviewSearch:r,...i}=e;return(0,n.jsx)(c.sG.div,{role:"list",...i,ref:t})});P.displayName="PreviewSearchSuggestions";let[F,M]=x(b),$=i.forwardRef((e,t)=>{let{__scopePreviewSearch:r,id:o,filterAttribute:a,...s}=e,l=i.useRef(void 0);return(0,n.jsx)(F,{scope:r,groupId:o,displayText:l,filterAttribute:a,children:(0,n.jsx)(c.sG.div,{role:"group",...s,ref:t})})});$.displayName="PreviewSearchSuggestionsGroup";let U=i.forwardRef((e,t)=>{let{__scopePreviewSearch:r,id:i,disabled:o,...a}=e;return(0,n.jsx)(q,{asChild:!0,children:(0,n.jsx)(c.sG.button,{disabled:o,"data-disabled":o?"":void 0,...a,ref:t})})});U.displayName="PreviewSearchSuggestionItem";let V="PreviewSearchSuggestionTrigger",B=i.forwardRef((e,t)=>{let{__scopePreviewSearch:r,id:i,disabled:a}=e,{setOpen:s}=I(V,r),{groupId:l,filterAttribute:u}=M(V,r),c=`suggestion-${l}-${i}`,{activeItem:d,onTriggerEnter:p,onTriggerLeave:f}=C(V,r),{id:h}=d||{},m=c===h;return(0,n.jsx)(U,{"data-state":m?"active":void 0,...e,ref:t,onPointerEnter:(0,o.mK)(e.onPointerEnter,z(()=>{a||p({id:c,value:i,filterAttribute:u})})),onPointerLeave:(0,o.mK)(e.onPointerLeave,z(()=>{a||f()})),onClick:(0,o.mK)(e.onClick,()=>{s(!1)})})});B.displayName=V;let G=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],q=i.forwardRef((e,t)=>{let{__scopePreviewSearch:r,...i}=e,a=w(r),s=I("FocusGroupItem",r);return(0,n.jsx)(E.ItemSlot,{scope:r,children:(0,n.jsx)(c.sG.button,{role:"listitem",...i,tabIndex:0,ref:t,onKeyDown:(0,o.mK)(e.onKeyDown,e=>{if(["Home","End",...G].includes(e.key)){let t=a().map(e=>e.ref.current).filter(e=>null!==e);if(["rtl"===s.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),G.includes(e.key)){let r=t.indexOf(e.currentTarget);r<t.length-1&&(t=t.slice(r+1))}setTimeout(()=>(function(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))})(t)),e.preventDefault()}})})})});function z(e){return t=>
77"mouse"===t.pointerType?e(t):void 0}let H=A,K=D,W=k,Q=P,Y=$,J=B},3478:(e,t,r)=>{"use strict";r.d(t,{O:()=>a});var n=r(5729),i=r(2192);let o=e=>{let t=JSON.stringify(e.metadata),r={type:"text/sitecore",chrometype:"field",className:"scpm"},o=Object.assign(Object.assign({},r),{kind:i.MetadataKind.Open}),a=Object.assign(Object.assign({},r),{kind:i.MetadataKind.Close});return n.createElement(n.Fragment,null,n.createElement("code",Object.assign({},o),t),e.children,n.createElement("code",Object.assign({},a)))};function a(e,t=!1){return t?(0,n.forwardRef)((t,r)=>{var i;let{editable:a=!0}=t,s=null==(i=t.field)?void 0:i.metadata;return s&&a?n.createElement(o,{metadata:s},n.createElement(e,Object.assign({},t,{ref:r}))):n.createElement(e,Object.assign({},t,{ref:r}))}):t=>{var r;let{editable:i=!0}=t,a=null==(r=t.field)?void 0:r.metadata;return a&&i?n.createElement(o,{metadata:a},n.createElement(e,Object.assign({},t))):n.createElement(e,Object.assign({},t))}}o.displayName="FieldMetadata"},3492:(e,t,r)=>{"use strict";r.d(t,{aK:()=>o,uA:()=>i});var n=r(8988);n.bW;class i extends n.bW{constructor(e=[]){super("and",e)}}class o extends n.oW{constructor(e){super(),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"filter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.type="not",this.filter=e}get(){return this.filter}getType(){return this.type}toJson(){return{type:this.type,filter:this.filter}}}},3494:(e,t,r)=>{"use strict";r.d(t,{E:()=>u});var n=r(5729),i=r(3478),o=r(2650),a=r(1067),s=r(9235),l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let u=(0,i.O)((0,o.N)(e=>{var{field:t,tag:r,editable:i=!0,encode:o=!0}=e,a=l(e,["field","tag","editable","encode"]);if(!t||!t.editable&&(0,s.isFieldValueEmpty)(t))return null;o||(i=!1);let u=t.editable&&i,c=u?t.editable||"":void 0===t.value?"":t.value;if(!t.editable&&"string"==typeof c){let e=String(c).split("\n");if(e.length){let t=[];e.forEach((r,i)=>{let o=i===e.length-1;t.push(r),o||t.push(n.createElement("br",{key:i}))}),c=t}}let d=u||!o,p=null,f=Object.assign({},a);return(d?f.dangerouslySetInnerHTML={__html:c}:p=c,r||d)?n.createElement(r||"span",f,p):n.createElement(n.Fragment,null,p)},{defaultEmptyFieldEditingComponent:a.G}));u.displayName="Text"},3510:(e,t,r)=>{"use strict";r.d(t,{d:()=>o});var n=r(5729),i=r(9208);function o(e,t,r,a=!1){let s=(0,n.useRef)(void 0),l=(0,n.useRef)(void 0);return(0,i.l)(()=>{s.current&&(clearTimeout(s.current),s.current=void 0)}),(0,n.useMemo)(()=>{let t=(n,i)=>{l.current=void 0,e.apply(n,i),s.current=setTimeout(()=>{s.current=void 0,!a&&l.current&&(t(l.current.this,l.current.args),l.current=void 0)},r)},n=function(...e){if(s.current){l.current={args:e,this:this};return}t(this,e)};return Object.defineProperties(n,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__throttled__${r}`}}),n},[r,a,...t])}},3610:(e,t,r)=>{e.exports=r(793)},3808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadersInstanceToPlainObject=t.uppercase=void 0,t.uppercase=e=>e.toUpperCase(),t.HeadersInstanceToPlainObject=e=>{let t={};return e.forEach((e,r)=>{t[r]=e}),t}},3934:(e,t)=>{"use strict";var r,n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataKind=t.LayoutKind=t.DesignLibraryMode=void 0,function(e){e.Normal="library",e.Metadata="library-metadata"}(r||(t.DesignLibraryMode=r={})),function(e){e.Final="final",e.Shared="shared"}(n||(t.LayoutKind=n={})),function(e){e.Open="open",e.Close="close"}(i||(t.MetadataKind=i={}))},3948:function(e,t,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)}
77,function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),a=0;a<r.length;a++)"default"!==r[a]&&i(t,e,r[a]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.mediaApi=void 0,t.mediaApi=a(r(8709))},4072:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.languageError=t.siteNameError=void 0,t.getAppRootId=function(e,r,a,s){return n(this,void 0,void 0,function*(){var n,l,u,c,d,p;if(!r)throw RangeError(t.siteNameError);if(!a)throw RangeError(t.languageError);let f=yield e.request(o,{jssAppTemplateId:s||i.SitecoreTemplateId.JssApp,siteName:r,language:a});return((null==(u=null==(l=null==(n=null==f?void 0:f.layout)?void 0:n.homePage)?void 0:l.rootItem)?void 0:u.length)||"en"===a||(f=yield e.request(o,{jssAppTemplateId:s||i.SitecoreTemplateId.JssApp,siteName:r,language:"en"})),null==(p=null==(d=null==(c=null==f?void 0:f.layout)?void 0:c.homePage)?void 0:d.rootItem)?void 0:p.length)?f.layout.homePage.rootItem[0].id:null})};let i=r(9822);t.siteNameError="The site name must be a non-empty string",t.languageError="The language must be a non-empty string";let o=` 78 query AppRootQuery($jssAppTemplateId: String!, $siteName: String!, $language: String!) { 79 layout(site: $siteName, routePath: "/", language: $language) { 80 homePage: item { 81 rootItem: ancestors(includeTemplateIDs: [$jssAppTemplateId]) { 82 id 83 } 84 } 85 } 86 } 87`},4130:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLEditingService=t.dictionaryQuery=t.query=void 0;let o=i(r(8572)),a=r(9235),s=r(3934);t.query=` 88 query EditingQuery( 89 $siteName: String! 90 $itemId: String! 91 $language: String! 92 $version: String 93 $after: String 94 $pageSize: Int = 1000 95) { 96 item(path: $itemId, language: $language, version: $version) { 97 rendered 98 } 99 site { 100 siteInfo(site: $siteName) { 101 dictionary(language: $language, first: $pageSize, after: $after) { 102 results { 103 key 104 value 105 } 106 pageInfo { 107 endCursor 108 hasNext 109 } 110 } 111 } 112 } 113 } 114`,t.dictionaryQuery=` 115 query EditingDictionaryQuery( 116 $siteName: String! 117 $language: String! 118 $after: String 119 $pageSize: Int = 1000 120 ) { 121 site { 122 siteInfo(site: $siteName) { 123 dictionary(language: $language, first: $pageSize, after: $after) { 124 results { 125 key 126 value 127 } 128 pageInfo { 129 endCursor 130 hasNext 131 } 132 } 133 } 134 } 135 } 136`;class l{constructor(e){this.serviceConfig=e,this.graphQLClient=this.getGraphQLClient()}fetchEditingData(e){return n(this,arguments,void 0,function*({siteName:e,itemId:r,language:n,version:i,layoutKind:l=s.LayoutKind.Final}){var u,c,d;if(o.default.editing("fetching editing data for %s %s %s %s",e,r,n,i,l),!e)throw RangeError("The site name must be a non-empty string");if(!n)throw RangeError("The language must be a non-empty string");let p=[],f=!0,h="",m=yield this.graphQLClient.request(t.query,{siteName:e,itemId:r,version:i,language:n},{headers:{sc_layoutKind:l}});(null==(c=null==(u=null==m?void 0:m.site)?void 0:u.siteInfo)?void 0:c.dictionary)?(p=m.site.siteInfo.dictionary.results,f=m.site.siteInfo.dictionary.pageInfo.hasNext,h=m.site.siteInfo.dictionary.pageInfo.endCursor):f=!1;let g=yield this.fetchDictionaryData({siteName:e,language:n},p,f,h);return{layoutData:(null==(d=null==m?void 0:m.item)?void 0:d.rendered)||{sitecore:{context:{pageEditing:!0,language:n,editMode:a.EditMode.Metadata},route:null}},dictionary:g}})}fetchDictionaryData(e){return n(this,arguments,void 0,function*({siteName:e,language:r},n=[],i=!0,o){var a,s;let l=n,u={};for(;i;){let n=yield this.graphQLClient.request(t.dictionaryQuery,{siteName:e,language:r,after:o});(null==(s=null==(a=null==n?void 0:n.site)?void 0:a.siteInfo)?void 0:s.dictionary)?(l=l.concat(n.site.siteInfo.dictionary.results),i=n.site.siteInfo.dictionary.pageInfo.hasNext,o=n.site.siteInfo.dictionary.pageInfo.endCursor):i=!1}
136return l.forEach(e=>u[e.key]=e.value),u})}getGraphQLClient(){if(!this.serviceConfig.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.serviceConfig.clientFactory({debugger:o.default.editing,headers:{sc_editMode:"true"}})}}t.GraphQLEditingService=l},4132:(e,t,r)=>{"use strict";r.d(t,{RG:()=>w,bL:()=>_,q7:()=>R});var n=r(5729),i=r(5269),o=r(2139),a=r(41),s=r(9829),l=r(7913),u=r(7454),c=r(9613),d=r(6697),p=r(1979),f=r(6029),h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[y,v,b]=(0,o.N)(g),[E,w]=(0,s.A)(g,[b]),[T,x]=E(g),O=n.forwardRef((e,t)=>(0,f.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(N,{...e,ref:t})})}));O.displayName=g;var N=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:s=!1,dir:l,currentTabStopId:y,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:E,onEntryFocus:w,preventScrollOnEntryFocus:x=!1,...O}=e,N=n.useRef(null),C=(0,a.s)(t,N),S=(0,p.jH)(l),[I,_]=(0,d.i)({prop:y,defaultProp:b??null,onChange:E,caller:g}),[R,D]=n.useState(!1),k=(0,c.c)(w),j=v(r),L=n.useRef(!1),[P,F]=n.useState(0);return n.useEffect(()=>{let e=N.current;if(e)return e.addEventListener(h,k),()=>e.removeEventListener(h,k)},[k]),(0,f.jsx)(T,{scope:r,orientation:o,dir:S,loop:s,currentTabStopId:I,onItemFocus:n.useCallback(e=>_(e),[_]),onItemShiftTab:n.useCallback(()=>D(!0),[]),onFocusableItemAdd:n.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>F(e=>e-1),[]),children:(0,f.jsx)(u.sG.div,{tabIndex:R||0===P?-1:0,"data-orientation":o,...O,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!R){let t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=j().filter(e=>e.focusable);A([e.find(e=>e.active),e.find(e=>e.id===I),...e].filter(Boolean).map(e=>e.ref.current),x)}}L.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>D(!1))})})}),C="RovingFocusGroupItem",S=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:a=!1,tabStopId:s,children:c,...d}=e,p=(0,l.B)(),h=s||p,m=x(C,r),g=m.currentTabStopId===h,b=v(r),{onFocusableItemAdd:E,onFocusableItemRemove:w,currentTabStopId:T}=m;return n.useEffect(()=>{if(o)return E(),()=>w()},[o,E,w]),(0,f.jsx)(y.ItemSlot,{scope:r,id:h,focusable:o,active:a,children:(0,f.jsx)(u.sG.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o?m.onItemFocus(h):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return I[i]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=m.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>A(r))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=T}):c})})});S.displayName=C;var I={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function A(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var _=O,R=S},4179:(e,t,r)=>{"use strict";r.d(t,{bm:()=>ea,UC:()=>en,VY:()=>eo,hJ:()=>er,ZL:()=>et,bL:()=>Z,hE:()=>ei,l9:()=>ee});var n=r(5729),i=r(5269),o=r(41),a=r(9829),s=r(7913),l=r(6697),u=r(7555),c=r(1679),d=r(1486),p=r(8749),f=r(7454),h=r(4249),m=r(1713),g=r(184),y=r(6029),v=Symbol("radix.slottable");function b(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===v}var E="Dialog",[w,T]=(0,a.A)(E),[x,O]=w(E),N=e=>{let{__scopeDialog:t,children:r,open:i,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,c=n.useRef(null),d=n.useRef(null),[p,f]=(0,l.i)({prop:i,defaultProp:o??!1,onChange:a,caller:E});return(0,y.jsx)(x,{scope:t,triggerRef:c,contentRef:d,contentId:(0,s.B)(),titleId:(0,s.B)(),descriptionId:(0,s.B)(),open:p,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),modal:u,children:r})};N.displayName=E;var C="DialogTrigger",S=n.forwardRef((e,t)=>
136{let{__scopeDialog:r,...n}=e,a=O(C,r),s=(0,o.s)(t,a.triggerRef);return(0,y.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":K(a.open),...n,ref:s,onClick:(0,i.mK)(e.onClick,a.onOpenToggle)})});S.displayName=C;var I="DialogPortal",[A,_]=w(I,{forceMount:void 0}),R=e=>{let{__scopeDialog:t,forceMount:r,children:i,container:o}=e,a=O(I,t);return(0,y.jsx)(A,{scope:t,forceMount:r,children:n.Children.map(i,e=>(0,y.jsx)(p.C,{present:r||a.open,children:(0,y.jsx)(d.Z,{asChild:!0,container:o,children:e})}))})};R.displayName=I;var D="DialogOverlay",k=n.forwardRef((e,t)=>{let r=_(D,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=O(D,e.__scopeDialog);return o.modal?(0,y.jsx)(p.C,{present:n||o.open,children:(0,y.jsx)(L,{...i,ref:t})}):null});k.displayName=D;var j=function(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var a;let e,s,l=(a=r,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,o.t)(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,a=n.Children.toArray(i),s=a.find(b);if(s){let e=s.props.children,i=a.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,y.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,y.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}("DialogOverlay.RemoveScroll"),L=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=O(D,r);return(0,y.jsx)(m.A,{as:j,allowPinchZoom:!0,shards:[i.contentRef],children:(0,y.jsx)(f.sG.div,{"data-state":K(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),P="DialogContent",F=n.forwardRef((e,t)=>{let r=_(P,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=O(P,e.__scopeDialog);return(0,y.jsx)(p.C,{present:n||o.open,children:o.modal?(0,y.jsx)(M,{...i,ref:t}):(0,y.jsx)($,{...i,ref:t})})});F.displayName=P;var M=n.forwardRef((e,t)=>{let r=O(P,e.__scopeDialog),a=n.useRef(null),s=(0,o.s)(t,r.contentRef,a);return n.useEffect(()=>{let e=a.current;if(e)return(0,g.Eq)(e)},[]),(0,y.jsx)(U,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault())})}),$=n.forwardRef((e,t)=>{let r=O(P,e.__scopeDialog),i=n.useRef(!1),o=n.useRef(!1);return(0,y.jsx)(U,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),U=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,d=O(P,r),p=n.useRef(null),f=(0,o.s)(t,p);return(0,h.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,y.jsx)(u.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":K(d.open),...l,ref:f,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(J,{titleId:d.titleId}),(0,y.jsx)(X,{contentRef:p,descriptionId:d.descriptionId})]})]})}),V="DialogTitle",B=n.forwardRef((e,t)=>
136{let{__scopeDialog:r,...n}=e,i=O(V,r);return(0,y.jsx)(f.sG.h2,{id:i.titleId,...n,ref:t})});B.displayName=V;var G="DialogDescription",q=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=O(G,r);return(0,y.jsx)(f.sG.p,{id:i.descriptionId,...n,ref:t})});q.displayName=G;var z="DialogClose",H=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=O(z,r);return(0,y.jsx)(f.sG.button,{type:"button",...n,ref:t,onClick:(0,i.mK)(e.onClick,()=>o.onOpenChange(!1))})});function K(e){return e?"open":"closed"}H.displayName=z;var W="DialogTitleWarning",[Q,Y]=(0,a.q)(W,{contentName:P,titleName:V,docsSlug:"dialog"}),J=({titleId:e})=>{let t=Y(W),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 137 138If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 139 140For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return n.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},X=({contentRef:e,descriptionId:t})=>{let r=Y("DialogDescriptionWarning"),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return n.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},Z=N,ee=S,et=R,er=k,en=F,ei=B,eo=q,ea=H},4191:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var n=r(8988);n.xt;class i extends n.xt{constructor(e,t=[]){super("anyOf",e,t)}}},4249:(e,t,r)=>{"use strict";r.d(t,{Oh:()=>o});var n=r(5729),i=0;function o(){n.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??a()),document.body.insertAdjacentElement("beforeend",e[1]??a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},4267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEdgeProxyFormsUrl=t.getEdgeProxyContentUrl=void 0;let n=r(9822),i=e=>e.endsWith("/")?e.slice(0,-1):e;t.getEdgeProxyContentUrl=(e,t=n.SITECORE_EDGE_URL_DEFAULT)=>`${i(t)}/v1/content/api/graphql/v1?sitecoreContextId=${e}`,t.getEdgeProxyFormsUrl=(e,t,r=n.SITECORE_EDGE_URL_DEFAULT)=>`${i(r)}/v1/forms/publisher/${t}?sitecoreContextId=${e}`},4347:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var n=r(5729),i=r(5896);function o(e){let[t,r]=n.useState(void 0);return(0,i.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},4368:(e,t,r)=>{"use strict";var n,i,o,a,s,l,u;r.r(t),r.d(t,{BREAK:()=>eT,BreakingChangeType:()=>l,DEFAULT_DEPRECATION_REASON:()=>tQ,DangerousChangeType:()=>u,DirectiveLocation:()=>i,ExecutableDefinitionsRule:()=>rk,FieldsOnCorrectTypeRule:()=>rj,FragmentsOnCompositeTypesRule:()=>rL,GRAPHQL_MAX_INT:()=>tj,GRAPHQL_MIN_INT:()=>tL,GraphQLBoolean:()=>t$,GraphQLDeprecatedDirective:()=>tY,GraphQLDirective:()=>tH,GraphQLEnumType:()=>tN,GraphQLError:()=>w,GraphQLFloat:()=>tF,GraphQLID:()=>tU,GraphQLIncludeDirective:()=>tK,GraphQLInputObjectType:()=>tI,GraphQLInt:()=>tP,GraphQLInterfaceType:()=>tT,GraphQLList:()=>tt,GraphQLNonNull:()=>tr,GraphQLObjectType:()=>th,GraphQLOneOfDirective:()=>tX,GraphQLScalarType:()=>tf,GraphQLSchema:()=>ru,GraphQLSkipDirective:()=>tW,GraphQLSpecifiedByDirective:()=>tJ,GraphQLString:()=>tM,GraphQLUnionType:()=>tx,Kind:()=>o,KnownArgumentNamesRule:()=>rP,KnownDirectivesRule:()=>rM,KnownFragmentNamesRule:()=>r$,KnownTypeNamesRule:()=>rU,Lexer:()=>F,Location:()=>C,LoneAnonymousOperationRule:()=>rB,LoneSchemaDefinitionRule:()=>rG,MaxIntrospectionDepthRule:()=>
140rq,NoDeprecatedCustomRule:()=>is,NoFragmentCyclesRule:()=>rz,NoSchemaIntrospectionCustomRule:()=>il,NoUndefinedVariablesRule:()=>rH,NoUnusedFragmentsRule:()=>rK,NoUnusedVariablesRule:()=>rW,OperationTypeNode:()=>n,OverlappingFieldsCanBeMergedRule:()=>rY,PossibleFragmentSpreadsRule:()=>r5,PossibleTypeExtensionsRule:()=>r6,ProvidedRequiredArgumentsRule:()=>r7,ScalarLeafsRule:()=>nt,SchemaMetaFieldDef:()=>rr,SingleFieldSubscriptionsRule:()=>ny,Source:()=>X,Token:()=>S,TokenKind:()=>a,TypeInfo:()=>rE,TypeKind:()=>s,TypeMetaFieldDef:()=>rn,TypeNameMetaFieldDef:()=>ri,UniqueArgumentDefinitionNamesRule:()=>nb,UniqueArgumentNamesRule:()=>nE,UniqueDirectiveNamesRule:()=>nw,UniqueDirectivesPerLocationRule:()=>nT,UniqueEnumValueNamesRule:()=>nx,UniqueFieldDefinitionNamesRule:()=>nO,UniqueFragmentNamesRule:()=>nN,UniqueInputFieldNamesRule:()=>nC,UniqueOperationNamesRule:()=>nS,UniqueOperationTypesRule:()=>nI,UniqueTypeNamesRule:()=>nA,UniqueVariableNamesRule:()=>n_,ValidationContext:()=>nU,ValuesOfCorrectTypeRule:()=>nR,VariablesAreInputTypesRule:()=>nk,VariablesInAllowedPositionRule:()=>nj,__Directive:()=>t5,__DirectiveLocation:()=>t6,__EnumValue:()=>re,__Field:()=>t7,__InputValue:()=>t8,__Schema:()=>t3,__Type:()=>t4,__TypeKind:()=>rt,assertAbstractType:()=>te,assertCompositeType:()=>e7,assertDirective:()=>tz,assertEnumType:()=>eW,assertEnumValueName:()=>eP,assertInputObjectType:()=>eY,assertInputType:()=>e2,assertInterfaceType:()=>eq,assertLeafType:()=>e6,assertListType:()=>eX,assertName:()=>eL,assertNamedType:()=>tu,assertNonNullType:()=>e0,assertNullableType:()=>ta,assertObjectType:()=>eB,assertOutputType:()=>e3,assertScalarType:()=>eU,assertSchema:()=>rl,assertType:()=>eM,assertUnionType:()=>eH,assertValidName:()=>iB,assertValidSchema:()=>rp,assertWrappingType:()=>ti,astFromValue:()=>t2,buildASTSchema:()=>iE,buildClientSchema:()=>ih,buildSchema:()=>iw,coerceInputValue:()=>no,concatAST:()=>iM,createSourceEventStream:()=>io,defaultFieldResolver:()=>n4,defaultTypeResolver:()=>n6,doTypesOverlap:()=>tk,execute:()=>nK,executeSync:()=>nW,extendSchema:()=>im,findBreakingChanges:()=>iq,findDangerousChanges:()=>iz,formatError:()=>O,getArgumentValues:()=>nc,getDirectiveValues:()=>nd,getEnterLeaveForKind:()=>eN,getIntrospectionQuery:()=>iu,getLocation:()=>y,getNamedType:()=>tc,getNullableType:()=>ts,getOperationAST:()=>ic,getOperationRootType:()=>id,getVariableValues:()=>nu,getVisitFn:()=>eC,graphql:()=>n8,graphqlSync:()=>ie,introspectionFromSchema:()=>ip,introspectionTypes:()=>ro,isAbstractType:()=>e8,isCompositeType:()=>e4,isConstValueNode:()=>function e(t){return rC(t)&&(t.kind===o.LIST?t.values.some(e):t.kind===o.OBJECT?t.fields.some(t=>e(t.value)):t.kind!==o.VARIABLE)},isDefinitionNode:()=>rx,isDirective:()=>tq,isEnumType:()=>eK,isEqualType:()=>tR,isExecutableDefinitionNode:()=>rO,isInputObjectType:()=>eQ,isInputType:()=>e1,isInterfaceType:()=>eG,isIntrospectionType:()=>ra,isLeafType:()=>e5,isListType:()=>eJ,isNamedType:()=>tl,isNonNullType:()=>eZ,isNullableType:()=>to,isObjectType:()=>eV,isOutputType:()=>e9,isRequiredArgument:()=>tw,isRequiredInputField:()=>t_,isScalarType:()=>e$,isSchema:()=>rs,isSchemaCoordinateNode:()=>rD,isSelectionNode:()=>rN,isSpecifiedDirective:()=>t0,isSpecifiedScalarType:()=>tB,isType:()=>eF,isTypeDefinitionNode:()=>rA,isTypeExtensionNode:()=>rR,isTypeNode:()=>rS,isTypeSubTypeOf:()=>tD,isTypeSystemDefinitionNode:()=>rI,isTypeSystemExtensionNode:()=>r_,isUnionType:()=>ez,isValidNameError:()=>iG,isValueNode:()=>rC,isWrappingType:()=>tn,lexicographicSortSchema:()=>iT,locatedError:()=>nz,parse:()=>Z,parseConstValue:()=>et,parseSchemaCoordinate:()=>en,parseType:()=>er,parseValue:()=>ee,print:()=>eS,printError:()=>x,printIntrospectionSchema:()=>iS,printLocation:()=>v,printSchema:()=>iC,printSourceLocation:()=>b,printType:()=>i_,recommendedRules:()=>nL,resolveASTSchemaCoordinate:()=>iX,resolveObjMapThunk:()=>tp,resolveReadonlyArrayThunk:()=>td,resolveSchemaCoordinate:()=>iJ,responsePathAsArray:()=>ni,separateOperations:()=>i$,specifiedDirectives:()=>tZ,specifiedRules:()=>nP,specifiedScalarTypes:()=>tV,stripIgnoredCharacters:()=>iV,subscribe:()=>ii,syntaxError:()=>N,typeFromAST:()=>rb,validate:()=>nV,validateSchema:()=>rd,valueFromAST:()=>ns,valueFromASTUntyped:()=>ej,version:()=>c,versionInfo:()=>d,visit:()=>ex,visitInParallel:()=>eO,visitWithTypeInfo:()=>rT});let c="16.12.0",d=Object.freeze({major:16,minor:12,patch:0,preReleaseTag:null});function p(e,t){if(!e)throw Error(t)}function f(e){return"function"==typeof(null==e?void 0:e.then)}function h(e){return"object"==typeof e&&null!==e}function m(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}let g=/\r\n|[\n\r]/g;function y(e,t){let r=0,n=1;for(let i of e.body.matchAll(g)){if("number"==typeof i.index||m(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}
140function v(e){return b(e.source,y(e.source,e.start))}function b(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?r:0,l=t.column+s,u=`${e.name}:${a}:${l} 141`,c=n.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<d.length;e+=80)t.push(d.slice(e,e+80));return u+E([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+E([[`${a-1} |`,c[i-1]],[`${a} |`,d],["|","^".padStart(l)],[`${a+1} |`,c[i+1]]])}function E(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}class w extends Error{constructor(e,...t){var r,n,i;let{nodes:o,source:a,positions:s,path:l,originalError:u,extensions:c}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=T(Array.isArray(o)?o:o?[o]:void 0);let d=T(null==(r=this.nodes)?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==d||null==(n=d[0])?void 0:n.source,this.positions=null!=s?s:null==d?void 0:d.map(e=>e.start),this.locations=s&&a?s.map(e=>y(a,e)):null==d?void 0:d.map(e=>y(e.source,e.start));let p=h(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!=(i=null!=c?c:p)?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,w):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+="\n\n"+v(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+b(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function T(e){return void 0===e||0===e.length?void 0:e}function x(e){return e.toString()}function O(e){return e.toJSON()}function N(e,t,r){return new w(`Syntax Error: ${r}`,{source:e,positions:[t]})}class C{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class S{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let I={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},A=new Set(Object.keys(I));function _(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&A.has(t)}function R(e){return 9===e||32===e}function D(e){return e>=48&&e<=57}function k(e){return e>=97&&e<=122||e>=65&&e<=90}function j(e){return k(e)||95===e}function L(e){return k(e)||D(e)||95===e}function P(e,t){let r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),i=1===n.length,o=n.length>1&&n.slice(1).every(e=>0===e.length||R(e.charCodeAt(0))),a=r.endsWith('\\"""'),s=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=s||l,c=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||a),d="",p=i&&R(e.charCodeAt(0));return(c&&!p||o)&&(d+="\n"),d+=r,(c||u)&&(d+="\n"),'"""'+d+'"""'}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(n||(n={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(i||(i={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="Str
141ingValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(o||(o={})),!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(a||(a={}));class F{constructor(e){let t=new S(a.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,n=r.length,i=t;for(;i<n;){let t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if(10===e||13===e)break;if($(e))++i;else if(U(r,i))i+=2;else break}return q(e,a.COMMENT,t,i,r.slice(t+1,i))}(e,i);case 33:return q(e,a.BANG,i,i+1);case 36:return q(e,a.DOLLAR,i,i+1);case 38:return q(e,a.AMP,i,i+1);case 40:return q(e,a.PAREN_L,i,i+1);case 41:return q(e,a.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return q(e,a.SPREAD,i,i+3);break;case 58:return q(e,a.COLON,i,i+1);case 61:return q(e,a.EQUALS,i,i+1);case 64:return q(e,a.AT,i,i+1);case 91:return q(e,a.BRACKET_L,i,i+1);case 93:return q(e,a.BRACKET_R,i,i+1);case 123:return q(e,a.BRACE_L,i,i+1);case 124:return q(e,a.PIPE,i,i+1);case 125:return q(e,a.BRACE_R,i,i+1);case 34:if(34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2))return function(e,t){let r=e.source.body,n=r.length,i=e.lineStart,o=t+3,s=o,l="",u=[];for(;o<n;){let n=r.charCodeAt(o);if(34===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)){l+=r.slice(s,o),u.push(l);let n=q(e,a.BLOCK_STRING,t,o+3,(function(e){var t,r;let n=Number.MAX_SAFE_INTEGER,i=null,o=-1;for(let t=0;t<e.length;++t){let a=e[t],s=function(e){let t=0;for(;t<e.length&&R(e.charCodeAt(t));)++t;return t}(a);s!==a.length&&(i=null!=(r=i)?r:t,o=t,0!==t&&s<n&&(n=s))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!=(t=i)?t:0,o+1)})(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,n}if(92===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)&&34===r.charCodeAt(o+3)){l+=r.slice(s,o),s=o+1,o+=4;continue}if(10===n||13===n){l+=r.slice(s,o),u.push(l),13===n&&10===r.charCodeAt(o+1)?o+=2:++o,l="",s=o,i=o;continue}if($(n))++o;else if(U(r,o))o+=2;else throw N(e.source,o,`Invalid character within String: ${G(e,o)}.`)}throw N(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let r=e.source.body,n=r.length,i=t+1,o=i,s="";for(;i<n;){let n=r.charCodeAt(i);if(34===n)return s+=r.slice(o,i),q(e,a.STRING,t,i+1,s);if(92===n){s+=r.slice(o,i);let t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?function(e,t){let r=e.source.body,n=0,i=3;for(;i<12;){let e=r.charCodeAt(t+i++);if(125===e){if(i<5||!$(n))break;return{value:String.fromCodePoint(n),size:i}}if((n=n<<4|K(e))<0)break}throw N(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}(e,i):function(e,t){let r=e.source.body,n=H(r,t+2);if($(n))return{value:String.fromCodePoint(n),size:6};if(V(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=H(r,t+8);
141if(B(e))return{value:String.fromCodePoint(n,e),size:12}}throw N(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,i):function(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw N(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,i);s+=t.value,i+=t.size,o=i;continue}if(10===n||13===n)break;if($(n))++i;else if(U(r,i))i+=2;else throw N(e.source,i,`Invalid character within String: ${G(e,i)}.`)}throw N(e.source,i,"Unterminated string.")}(e,i)}if(D(t)||45===t)return function(e,t,r){let n=e.source.body,i=t,o=r,s=!1;if(45===o&&(o=n.charCodeAt(++i)),48===o){if(D(o=n.charCodeAt(++i)))throw N(e.source,i,`Invalid number, unexpected digit after 0: ${G(e,i)}.`)}else i=z(e,i,o),o=n.charCodeAt(i);if(46===o&&(s=!0,o=n.charCodeAt(++i),i=z(e,i,o),o=n.charCodeAt(i)),(69===o||101===o)&&(s=!0,(43===(o=n.charCodeAt(++i))||45===o)&&(o=n.charCodeAt(++i)),i=z(e,i,o),o=n.charCodeAt(i)),46===o||j(o))throw N(e.source,i,`Invalid number, expected digit but got: ${G(e,i)}.`);return q(e,s?a.FLOAT:a.INT,t,i,n.slice(t,i))}(e,i,t);if(j(t))return W(e,i);throw N(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":$(t)||U(r,i)?`Unexpected character: ${G(e,i)}.`:`Invalid character: ${G(e,i)}.`)}return q(e,a.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===a.COMMENT);return e}}function M(e){return e===a.BANG||e===a.DOLLAR||e===a.AMP||e===a.PAREN_L||e===a.PAREN_R||e===a.DOT||e===a.SPREAD||e===a.COLON||e===a.EQUALS||e===a.AT||e===a.BRACKET_L||e===a.BRACKET_R||e===a.BRACE_L||e===a.PIPE||e===a.BRACE_R}function $(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function U(e,t){return V(e.charCodeAt(t))&&B(e.charCodeAt(t+1))}function V(e){return e>=55296&&e<=56319}function B(e){return e>=56320&&e<=57343}function G(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return a.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function q(e,t,r,n,i){let o=e.line,a=1+r-e.lineStart;return new S(t,r,n,o,a,i)}function z(e,t,r){if(!D(r))throw N(e.source,t,`Invalid number, expected digit but got: ${G(e,t)}.`);let n=e.source.body,i=t+1;for(;D(n.charCodeAt(i));)++i;return i}function H(e,t){return K(e.charCodeAt(t))<<12|K(e.charCodeAt(t+1))<<8|K(e.charCodeAt(t+2))<<4|K(e.charCodeAt(t+3))}function K(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function W(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;)if(L(r.charCodeAt(i)))++i;else break;return q(e,a.NAME,t,i,r.slice(t,i))}class Q{line=1;lineStart=0;constructor(e){let t=new S(a.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.EOF){let t=function(e,t){let r=e.source.body,n=r.length;if(t<n){let n=r.charCodeAt(t);switch(n){case 46:return q(e,a.DOT,t,t+1);case 40:return q(e,a.PAREN_L,t,t+1);case 41:return q(e,a.PAREN_R,t,t+1);case 58:return q(e,a.COLON,t,t+1);case 64:return q(e,a.AT,t,t+1)}if(j(n))return W(e,t);throw N(e.source,t,`Invalid character: ${G(e,t)}.`)}return q(e,a.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}return e}}function Y(e){return function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t)){var i=t,o=n;if(0===i.length)return"[]";if(o.length>2)return"[Array]";let r=Math.min(10,i.length),a=i.length-r,s=[];for(let t=0;t<r;++t)s.push(e(i[t],o));return 1===a?s.push("... 1 more item"):a>1&&s.push(`... ${a} more items`),"["+s.join(", ")+"]"}var a=t,s=n;let l=Object.entries(a);return 0===l.length?"{}":s.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(a)+"]":"{ "+l.map(([t,r])=>t+": "+e(r,s)).join(", ")+" }"}(t,r);default:return String(t)}}(e,[])}let J=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;
141if("object"==typeof e&&null!==e){var r;let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=Y(e);throw Error(`Cannot use ${n} "${t}" from another module or realm. 142 143Ensure that there is only one instance of "graphql" in the node_modules 144directory. If different versions of "graphql" are the dependencies of other 145relied on modules, use "resolutions" to ensure only one version is installed. 146 147https://yarnpkg.com/en/docs/selective-version-resolutions 148 149Duplicate "graphql" modules cannot be used at the same time since different 150versions may have different capabilities and behavior. The data from one 151version used in the function from another could produce confusing and 152spurious results.`)}}return!1};class X{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||p(!1,`Body must be a string. Received: ${Y(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||p(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||p(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function Z(e,t){let r=new ei(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}function ee(e,t){let r=new ei(e,t);r.expectToken(a.SOF);let n=r.parseValueLiteral(!1);return r.expectToken(a.EOF),n}function et(e,t){let r=new ei(e,t);r.expectToken(a.SOF);let n=r.parseConstValueLiteral();return r.expectToken(a.EOF),n}function er(e,t){let r=new ei(e,t);r.expectToken(a.SOF);let n=r.parseTypeReference();return r.expectToken(a.EOF),n}function en(e){let t=new Q(J(e,X)?e:new X(e)),r=new ei(e,{lexer:t});r.expectToken(a.SOF);let n=r.parseSchemaCoordinate();return r.expectToken(a.EOF),n}class ei{constructor(e,t={}){let{lexer:r,...n}=t;if(r)this._lexer=r;else{let t=J(e,X)?e:new X(e);this._lexer=new F(t)}this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(a.NAME);return this.node(e,{kind:o.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:o.DOCUMENT,definitions:this.many(a.SOF,this.parseDefinition,a.EOF)})}parseDefinition(){if(this.peek(a.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===a.BRACE_L)throw N(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===a.NAME){switch(t.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()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw N(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(a.BRACE_L))return this.node(t,{kind:o.OPERATION_DEFINITION,operation:n.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseDescription(),i=this.parseOperationType();return this.peek(a.NAME)&&(e=this.parseName()),this.node(t,{kind:o.OPERATION_DEFINITION,operation:i,description:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(a.NAME);switch(e.value){case"query":return n.QUERY;case"mutation":return n.MUTATION;case"subscription":return n.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(a.PAREN_L,this.parseVariableDefinition,a.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:o.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(a.DOLLAR),this.node(e,{kind:o.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:o.SELECTION_SET,selections:this.many(a.BRACE_L,this.parseSelection,a.BRACE_R)})}parseSelection(){return this.peek(a.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(a.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:o.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.PAREN_L,t,a.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:o.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(a.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(a.NAME)?this.node(e,{kind:o.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:o.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:o.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:o.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case a.BRACKET_L:return this.parseList(e);case a.BRACE_L:return this.parseObject(e);case a.INT:return this.advanceLexer(),this.node(t,{kind:o.INT,value:t.value});case a.FLOAT:return this.advanceLexer(),this.node(t,{kind:o.FLOAT,value:t.value});case a.STRING:case a.BLOCK_STRING:return this.parseStringLiteral();case a.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:o.BOOLEAN,value:!0});case"false":return this.node(t,{kind:o.BOOLEAN,value:!1});case"null":return this.node(t,{kind:o.NULL});default:return this.node(t,{kind:o.ENUM,value:t.value})}case a.DOLLAR:if(e){if(this.expectToken(a.DOLLAR),this._lexer.token.kind===a.NAME){let e=this._lexer.token.value;throw N(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:o.STRING,value:e.value,block:e.kind===a.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:o.LIST,values:this.any(a.BRACKET_L,t,a.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:o.OBJECT,fields:this.any(a.BRACE_L,t,a.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:o.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(a.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(a.AT),this.node(t,{kind:o.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(a.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(a.BRACKET_R),e=this.node(t,{kind:o.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(a.BANG)?this.node(t,{kind:o.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:o.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(a.STRING)||this.peek(a.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);return this.node(e,{kind:o.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.COLON);let r=this.parseNamedType();return this.node(e,{kind:o.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:o.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:o.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(a.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseFieldDefinition,a.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(a.COLON);let i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:o.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(a.PAREN_L,this.parseInputValueDef,a.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(a.COLON);let i=this.parseTypeReference();this.expectOptionalToken(a.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:o.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:o.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:o.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(a.EQUALS)?this.delimitedMany(a.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:o.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(a.BRACE_L,this.parseEnumValueDefinition,a.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:o.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw N(this._lexer.source,this._lexer.token.start,`${eo(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:o.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseInputValueDef,a.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===a.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)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:o.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:o.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:o.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:o.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:o.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:o.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:o.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.AT);let r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let
152 s=this.parseDirectiveLocations();return this.node(e,{kind:o.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:s})}parseDirectiveLocations(){return this.delimitedMany(a.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(i,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,r=this._lexer.token,n=this.expectOptionalToken(a.AT),i=this.parseName();return(!n&&this.expectOptionalToken(a.DOT)&&(e=this.parseName()),(n||e)&&this.expectOptionalToken(a.PAREN_L)&&(t=this.parseName(),this.expectToken(a.COLON),this.expectToken(a.PAREN_R)),n)?t?this.node(r,{kind:o.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:t}):this.node(r,{kind:o.DIRECTIVE_COORDINATE,name:i}):e?t?this.node(r,{kind:o.ARGUMENT_COORDINATE,name:i,fieldName:e,argumentName:t}):this.node(r,{kind:o.MEMBER_COORDINATE,name:i,memberName:e}):this.node(r,{kind:o.TYPE_COORDINATE,name:i})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new C(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw N(this._lexer.source,t.start,`Expected ${ea(e)}, found ${eo(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===a.NAME&&t.value===e)this.advanceLexer();else throw N(this._lexer.source,t.start,`Expected "${e}", found ${eo(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===a.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return N(this._lexer.source,t.start,`Unexpected ${eo(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==a.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw N(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function eo(e){let t=e.value;return ea(e.kind)+(null!=t?` "${t}"`:"")}function ea(e){return M(e)?`"${e}"`:e}function es(e,t){let[r,n]=t?[e,t]:[void 0,e],i=" Did you mean ";r&&(i+=r+" ");let o=n.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function el(e){return e}function eu(e,t){let r=Object.create(null);for(let n of e)r[t(n)]=n;return r}function ec(e,t,r){let n=Object.create(null);for(let i of e)n[t(i)]=r(i);return n}function ed(e,t){let r=Object.create(null);for(let n of Object.keys(e))r[n]=t(e[n],n);return r}function ep(e,t){let r=0,n=0;for(;r<e.length&&n<t.length;){let i=e.charCodeAt(r),o=t.charCodeAt(n);if(eh(i)&&eh(o)){let a=0;do++r,a=10*a+i-ef,i=e.charCodeAt(r);while(eh(i)&&a>0);let s=0;do++n,s=10*s+o-ef,o=t.charCodeAt(n);while(eh(o)&&s>0);if(a<s)return -1;if(a>s)return 1}else{if(i<o)return -1;if(i>o)return 1;++r,++n}}return e.length-t.length}let ef=48;function eh(e){return!isNaN(e)&&ef<=e&&e<=57}function em(e,t){let r=Object.create(null),n=new eg(e),i=Math.floor(.4*e.length)+1;for(let e of t){let t=n.measure(e,i);void 0!==t&&(r[e]=t)}return Object.keys(r).sort((e,t)=>{let n=r[e]-r[t];return 0!==n?n:ep(e,t)})}class eg{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=ey(this._inputLowerCase),this._rows=[Array(e.length+1).fill(0),Array(e.length+1).fill(0),Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;let r=e.toLowerCase();if(this._inputLowerCase===r)return 1;let n=ey(r),i=this._inputArray;if(n.length<i.length){let e=n;n=i,i=e}let o=n.length,a=i.length;if(o-a>t)return;let s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=o;e++){let r=s[(e-1)%3],o=s[e%3],l=o[0]=e;for(let t=1;t<=a;t++){let a=+(n[e-1]!==i[t-1]),u=Math.min(r[t]+1,o[t-1]+1,r[t-1]+a);e>1&&t>
1521&&n[e-1]===i[t-2]&&n[e-2]===i[t-1]&&(u=Math.min(u,s[(e-2)%3][t-2]+1)),u<l&&(l=u),o[t]=u}if(l>t)return}let l=s[o%3][a];return l<=t?l:void 0}}function ey(e){let t=e.length,r=Array(t);for(let n=0;n<t;++n)r[n]=e.charCodeAt(n);return r}function ev(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;let t=Object.create(null);for(let[r,n]of Object.entries(e))t[r]=n;return t}let eb=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function eE(e){return ew[e.charCodeAt(0)]}let ew=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],eT=Object.freeze({});function ex(e,t,r=I){let n,i,a,s=new Map;for(let e of Object.values(o))s.set(e,eN(t,e));let l=Array.isArray(e),u=[e],c=-1,d=[],f=e,h=[],m=[];do{var g,y,v;let e,o=++c===u.length,b=o&&0!==d.length;if(o){if(i=0===m.length?void 0:h[h.length-1],f=a,a=m.pop(),b)if(l){f=f.slice();let e=0;for(let[t,r]of d){let n=t-e;null===r?(f.splice(n,1),e++):f[n]=r}}else for(let[e,t]of(f={...f},d))f[e]=t;c=n.index,u=n.keys,d=n.edits,l=n.inArray,n=n.prev}else if(a){if(null==(f=a[i=l?c:u[c]]))continue;h.push(i)}if(!Array.isArray(f)){_(f)||p(!1,`Invalid AST Node: ${Y(f)}.`);let r=o?null==(g=s.get(f.kind))?void 0:g.leave:null==(y=s.get(f.kind))?void 0:y.enter;if((e=null==r?void 0:r.call(t,f,i,a,h,m))===eT)break;if(!1===e){if(!o){h.pop();continue}}else if(void 0!==e&&(d.push([i,e]),!o))if(_(e))f=e;else{h.pop();continue}}void 0===e&&b&&d.push([i,f]),o?h.pop():(n={inArray:l,index:c,keys:u,edits:d,prev:n},u=(l=Array.isArray(f))?f:null!=(v=r[f.kind])?v:[],c=-1,d=[],a&&m.push(a),a=f)}while(void 0!==n);return 0!==d.length?d[d.length-1][1]:e}function eO(e){let t=Array(e.length).fill(null),r=Object.create(null);for(let n of Object.values(o)){let i=!1,o=Array(e.length).fill(void 0),a=Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){let{enter:r,leave:s}=eN(e[t],n);i||(i=null!=r||null!=s),o[t]=r,a[t]=s}if(!i)continue;let s={enter(...r){let n=r[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;let s=null==(i=o[a])?void 0:i.apply(e[a],r);if(!1===s)t[a]=n;else if(s===eT)t[a]=eT;else if(void 0!==s)return s}},leave(...r){let n=r[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;let n=null==(i=a[o])?void 0:i.apply(e[o],r);if(n===eT)t[o]=eT;else if(void 0!==n&&!1!==n)return n}else t[o]===n&&(t[o]=null)}};r[n]=s}return r}function eN(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function eC(e,t,r){let{enter:n,leave:i}=eN(e,t);return r?i:n}function eS(e){return ex(e,eI)}let eI={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eA(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=ek(e.variableDefinitions)?eR("(\n",eA(e.variableDefinitions,"\n"),"\n)"):eR("(",eA(e.variableDefinitions,", "),")"),r=eR("",e.description,"\n")+eA([e.operation,eA([e.name,t]),eA(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>eR("",i,"\n")+e+": "+t+eR(" = ",r)+eR(" ",eA(n," "))},SelectionSet:{leave:({selections:e})=>e_(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=eR("",e,": ")+t,a=o+eR("(",eA(r,", "),")");return a.length>80&&(a=o+eR("(\n",eD(eA(r,"\n")),"\n)")),eA([a,eA(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+eR(" ",eA(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>eA(["...",eR("on ",e),eA(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>eR("",o,"\n")+`fragment ${e}${eR("(",eA(r,", "),")")} `+`on ${t} ${eR("",eA(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
152,StringValue:{leave:({value:e,block:t})=>t?P(e):`"${e.replace(eb,eE)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eA(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eA(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+eR("(",eA(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>eR("",e,"\n")+eA(["schema",eA(t," "),e_(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>eR("",e,"\n")+eA(["scalar",t,eA(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>eR("",e,"\n")+eA(["type",t,eR("implements ",eA(r," & ")),eA(n," "),e_(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>eR("",e,"\n")+t+(ek(r)?eR("(\n",eD(eA(r,"\n")),"\n)"):eR("(",eA(r,", "),")"))+": "+n+eR(" ",eA(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>eR("",e,"\n")+eA([t+": "+r,eR("= ",n),eA(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>eR("",e,"\n")+eA(["interface",t,eR("implements ",eA(r," & ")),eA(n," "),e_(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>eR("",e,"\n")+eA(["union",t,eA(r," "),eR("= ",eA(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>eR("",e,"\n")+eA(["enum",t,eA(r," "),e_(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>eR("",e,"\n")+eA([t,eA(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>eR("",e,"\n")+eA(["input",t,eA(r," "),e_(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>eR("",e,"\n")+"directive @"+t+(ek(r)?eR("(\n",eD(eA(r,"\n")),"\n)"):eR("(",eA(r,", "),")"))+(n?" repeatable":"")+" on "+eA(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eA(["extend schema",eA(e," "),e_(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eA(["extend scalar",e,eA(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>eA(["extend type",e,eR("implements ",eA(t," & ")),eA(r," "),e_(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>eA(["extend interface",e,eR("implements ",eA(t," & ")),eA(r," "),e_(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>eA(["extend union",e,eA(t," "),eR("= ",eA(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>eA(["extend enum",e,eA(t," "),e_(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>eA(["extend input",e,eA(t," "),e_(r)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>eA([e,eR(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>eA([e,eR(".",t),eR("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>eA(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>eA(["@",e,eR("(",t,":)")])}};function eA(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function e_(e){return eR("{\n",eD(eA(e,"\n")),"\n}")}function eR(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function eD(e){return eR(" ",e.replace(/\n/g,"\n "))}function ek(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}function ej(e,t){switch(e.kind){case o.NULL:return null;case o.INT:return parseInt(e.value,10);case o.FLOAT:return parseFloat(e.value);case o.STRING:case o.ENUM:case o.BOOLEAN:return e.value;case o.LIST:return e.values.map(e=>ej(e,t));case o.OBJECT:return ec(e.fields,e=>e.name.value,e=>ej(e.value,t));case o.VARIABLE:return null==t?void 0:t[e.name.value]}}function eL(e){if(null!=e||p(!1,"Must provide name."),"string"==typeof e||p(!1,"Expected name to be a string."),0===e.length)throw new w("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!L(e.charCodeAt(t)))throw new w(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!j(e.charCodeAt(0)))throw new w(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function eP(e){if("true"===e||"false"===e||"null"===e)throw new w(`Enum values cannot be named: ${e}`);return eL(e)}function eF(e){return e$(e)||eV(e)||eG(e)||ez(e)||eK(e)||eQ(e)||eJ(e)||eZ(e)}function eM(e){if(!eF(e))throw Error(`Expected ${Y(e)} to be a GraphQL type.`);return e}function e$(e){return J(e,tf)}function eU(e){if(!e$(e))throw Error(`Expected ${Y(e)} to be a GraphQL Scalar type.`);return e}function eV(e){return J(e,th)}function eB(e){if(!eV(e))throw Error(`Expected ${Y(e)} to be a GraphQL Object type.`);return e}function eG(e){return J(e,tT)}function eq(e){if(!eG(e))throw Error(`Expected ${Y(e)} to be a GraphQL Interface type.`);return e}function ez(e){return J(e,tx)}function eH(e){if(!ez(e))throw Error(`Expected ${Y(e)} to be a GraphQL Union type.`);return e}function eK(e){return J(e,tN)}function eW(e){if(!eK(e))throw Error(`Expected ${Y(e)} to be a GraphQL Enum type.`);return e}function eQ(e){return J(e,tI)}function eY(e){if(!eQ(e))throw Error(`Expected ${Y(e)} to be a GraphQL Input Object type.`);return e}function eJ(e){return J(e,tt)}function eX(e){if(!eJ(e))throw Error(`Expected ${Y(e)} to be a GraphQL List type.`);return e}function eZ(e){return J(e,tr)}function e0(e){if(!eZ(e))throw Error(`Expected ${Y(e)} to be a GraphQL Non-Null type.`);return e}function e1(e){return e$(e)||eK(e)||eQ(e)||tn(e)&&e1(e.ofType)}function e2(e){if(!e1(e))throw Error(`Expected ${Y(e)} to be a GraphQL input type.`);return e}function e9(e){return e$(e)||eV(e)||eG(e)||ez(e)||eK(e)||tn(e)&&e9(e.ofType)}function e3(e){if(!e9(e))throw Error(`Expected ${Y(e)} to be a GraphQL output type.`);return e}function e5(e){return e$(e)||eK(e)}function e6(e){if(!e5(e))throw Error(`Expected ${Y(e)} to be a GraphQL leaf type.`);return e}function e4(e){return eV(e)||eG(e)||ez(e)}function e7(e){if(!e4(e))throw Error(`Expected ${Y(e)} to be a GraphQL composite type.`);return e}function e8(e){return eG(e)||ez(e)}function te(e){if(!e8(e))throw Error(`Expected ${Y(e)} to be a GraphQL abstract type.`);return e}class tt{constructor(e){eF(e)||p(!1,`Expected ${Y(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class tr{constructor(e){to(e)||p(!1,`Expected ${Y(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function tn(e){return eJ(e)||eZ(e)}function ti(e){if(!tn(e))throw Error(`Expected ${Y(e)} to be a GraphQL wrapping type.`);return e}function to(e){return eF(e)&&!eZ(e)}function ta(e){if(!to(e))throw Error(`Expected ${Y(e)} to be a GraphQL nullable type.`);return e}function ts(e){if(e)return eZ(e)?e.ofType:e}function tl(e){return e$(e)||eV(e)||eG(e)||ez(e)||eK(e)||eQ(e)}function tu(e){if(!tl(e))throw Error(`Expected ${Y(e)} to be a GraphQL named type.`);return e}function tc(e){if(e){let t=e;for(;tn(t);)t=t.ofType;return t}}function td(e){return"function"==typeof e?e():e}function tp(e){return"function"==typeof e?e():e}class tf{constructor(e){var t,r,n,i;let o=null!=(t=e.parseValue)?t:el;this.name=eL(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!=(r=e.serialize)?r:el,this.parseValue=o,this.parseLiteral=null!=(n=e.parseLiteral)?n:(e,t)=>o(ej(e,t)),this.extensions=ev(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(i=e.extensionASTNodes)?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||p(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${Y(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||p(!1,`${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||p(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){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:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class th{constructor(e){var t;this.name=eL(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=ev(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=()=>tg(e),this._interfaces=()=>tm(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||p(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${Y(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}
152getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:tb(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function tm(e){var t;let r=td(null!=(t=e.interfaces)?t:[]);return Array.isArray(r)||p(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function tg(e){let t=tp(e.fields);return tv(t)||p(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),ed(t,(t,r)=>{var n;tv(t)||p(!1,`${e.name}.${r} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||p(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${Y(t.resolve)}.`);let i=null!=(n=t.args)?n:{};return tv(i)||p(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:eL(r),description:t.description,type:t.type,args:ty(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:ev(t.extensions),astNode:t.astNode}})}function ty(e){return Object.entries(e).map(([e,t])=>({name:eL(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:ev(t.extensions),astNode:t.astNode}))}function tv(e){return h(e)&&!Array.isArray(e)}function tb(e){return ed(e,e=>({description:e.description,type:e.type,args:tE(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function tE(e){return ec(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function tw(e){return eZ(e.type)&&void 0===e.defaultValue}class tT{constructor(e){var t;this.name=eL(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=ev(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=tg.bind(void 0,e),this._interfaces=tm.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||p(!1,`${this.name} must provide "resolveType" as a function, but got: ${Y(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:tb(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class tx{constructor(e){var t;this.name=eL(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=ev(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._types=tO.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||p(!1,`${this.name} must provide "resolveType" as a function, but got: ${Y(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function tO(e){let t=td(e.types);return Array.isArray(t)||p(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class tN{constructor(e){var t;this.name=eL(e.name),this.description=e.description,this.extensions=ev(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._values="function"==typeof e.values?e.values:tS(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=tS(this.name,this._values())
152),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=eu(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));let t=this._valueLookup.get(e);if(void 0===t)throw new w(`Enum "${this.name}" cannot represent value: ${Y(e)}`);return t.name}parseValue(e){if("string"!=typeof e){let t=Y(e);throw new w(`Enum "${this.name}" cannot represent non-string value: ${t}.`+tC(this,t))}let t=this.getValue(e);if(null==t)throw new w(`Value "${e}" does not exist in "${this.name}" enum.`+tC(this,e));return t.value}parseLiteral(e,t){if(e.kind!==o.ENUM){let t=eS(e);throw new w(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+tC(this,t),{nodes:e})}let r=this.getValue(e.value);if(null==r){let t=eS(e);throw new w(`Value "${t}" does not exist in "${this.name}" enum.`+tC(this,t),{nodes:e})}return r.value}toConfig(){let e=ec(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function tC(e,t){return es("the enum value",em(t,e.getValues().map(e=>e.name)))}function tS(e,t){return tv(t)||p(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,r])=>(tv(r)||p(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${Y(r)}.`),{name:eP(t),description:r.description,value:void 0!==r.value?r.value:t,deprecationReason:r.deprecationReason,extensions:ev(r.extensions),astNode:r.astNode}))}class tI{constructor(e){var t,r;this.name=eL(e.name),this.description=e.description,this.extensions=ev(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this.isOneOf=null!=(r=e.isOneOf)&&r,this._fields=tA.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){let e=ed(this.getFields(),e=>({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:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function tA(e){let t=tp(e.fields);return tv(t)||p(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),ed(t,(t,r)=>("resolve"in t&&p(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:eL(r),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:ev(t.extensions),astNode:t.astNode}))}function t_(e){return eZ(e.type)&&void 0===e.defaultValue}function tR(e,t){return e===t||!!(eZ(e)&&eZ(t)||eJ(e)&&eJ(t))&&tR(e.ofType,t.ofType)}function tD(e,t,r){return t===r||(eZ(r)?!!eZ(t)&&tD(e,t.ofType,r.ofType):eZ(t)?tD(e,t.ofType,r):eJ(r)?!!eJ(t)&&tD(e,t.ofType,r.ofType):!eJ(t)&&e8(r)&&(eG(t)||eV(t))&&e.isSubType(r,t))}function tk(e,t,r){return t===r||(e8(t)?e8(r)?e.getPossibleTypes(t).some(t=>e.isSubType(r,t)):e.isSubType(t,r):!!e8(r)&&e.isSubType(r,t))}let tj=0x7fffffff,tL=-0x80000000,tP=new tf({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(e){let t=tG(e);if("boolean"==typeof t)return+!!t;let r=t;if("string"==typeof t&&""!==t&&(r=Number(t)),"number"!=typeof r||!Number.isInteger(r))throw new w(`Int cannot represent non-integer value: ${Y(t)}`);if(r>tj||r<tL)throw new w("Int cannot represent non 32-bit signed integer value: "+Y(t));return r},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new w(`Int cannot represent non-integer value: ${Y(e)}`);
152if(e>tj||e<tL)throw new w(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==o.INT)throw new w(`Int cannot represent non-integer value: ${eS(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>tj||t<tL)throw new w(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),tF=new tf({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(e){let t=tG(e);if("boolean"==typeof t)return+!!t;let r=t;if("string"==typeof t&&""!==t&&(r=Number(t)),"number"!=typeof r||!Number.isFinite(r))throw new w(`Float cannot represent non numeric value: ${Y(t)}`);return r},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new w(`Float cannot represent non numeric value: ${Y(e)}`);return e},parseLiteral(e){if(e.kind!==o.FLOAT&&e.kind!==o.INT)throw new w(`Float cannot represent non numeric value: ${eS(e)}`,e);return parseFloat(e.value)}}),tM=new tf({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(e){let t=tG(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new w(`String cannot represent value: ${Y(e)}`)},parseValue(e){if("string"!=typeof e)throw new w(`String cannot represent a non string value: ${Y(e)}`);return e},parseLiteral(e){if(e.kind!==o.STRING)throw new w(`String cannot represent a non string value: ${eS(e)}`,{nodes:e});return e.value}}),t$=new tf({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=tG(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new w(`Boolean cannot represent a non boolean value: ${Y(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new w(`Boolean cannot represent a non boolean value: ${Y(e)}`);return e},parseLiteral(e){if(e.kind!==o.BOOLEAN)throw new w(`Boolean cannot represent a non boolean value: ${eS(e)}`,{nodes:e});return e.value}}),tU=new tf({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(e){let t=tG(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new w(`ID cannot represent value: ${Y(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new w(`ID cannot represent value: ${Y(e)}`)},parseLiteral(e){if(e.kind!==o.STRING&&e.kind!==o.INT)throw new w("ID cannot represent a non-string and non-integer value: "+eS(e),{nodes:e});return e.value}}),tV=Object.freeze([tM,tP,tF,t$,tU]);function tB(e){return tV.some(({name:t})=>e.name===t)}function tG(e){if(h(e)){if("function"==typeof e.valueOf){let t=e.valueOf();if(!h(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function tq(e){return J(e,tH)}function tz(e){if(!tq(e))throw Error(`Expected ${Y(e)} to be a GraphQL directive.`);return e}class tH{constructor(e){var t,r;this.name=eL(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=(t=e.isRepeatable)&&t,this.extensions=ev(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||p(!1,`@${e.name} locations must be an Array.`);let n=null!=(r=e.args)?r:{};h(n)&&!Array.isArray(n)||p(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=ty(n)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:tE(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}let tK=new tH({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[i.FIELD,i.FRAGMENT_SPREAD,i.INLINE_FRAGMENT],args:{if:{type:new tr(t$),description:"Included when true."}}}),tW=new tH({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[i.FIELD,i.FRAGMENT_SPREAD,i.INLINE_FRAGMENT],args:{if:{type:new tr(t$),description:"Skipped when true."}}}),tQ="No longer supported",tY=new tH({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[i.FIELD_DEFINITION,i.ARGUMENT_DEFINITION,i.INPUT_FIELD_DEFINITION,i.ENUM_VALUE],args:{reason:{type:tM,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:tQ}}}),tJ=new tH({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[i.SCALAR],args:{url:{type:new tr(tM),description:"The URL that specifies the behavior of this scalar."}}}),tX=new tH({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[i.INPUT_OBJECT],args:{}}),tZ=Object.freeze([tK,tW,tY,tJ,tX]);function t0(e){return tZ.some(({name:t})=>t===e.name)}function t1(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function t2(e,t){if(eZ(t)){let r=t2(e,t.ofType);return(null==r?void 0:r.kind)===o.NULL?null:r}if(null===e)return{kind:o.NULL};if(void 0===e)return null;if(eJ(t)){let r=t.ofType;if(t1(e)){let t=[];for(let n of e){let e=t2(n,r);null!=e&&t.push(e)}return{kind:o.LIST,values:t}}return t2(e,r)}if(eQ(t)){if(!h(e))return null;let r=[];for(let n of Object.values(t.getFields())){let t=t2(e[n.name],n.type);t&&r.push({kind:o.OBJECT_FIELD,name:{kind:o.NAME,value:n.name},value:t})}return{kind:o.OBJECT,fields:r}}if(e5(t)){let r=t.serialize(e);if(null==r)return null;if("boolean"==typeof r)return{kind:o.BOOLEAN,value:r};if("number"==typeof r&&Number.isFinite(r)){let e=String(r);return t9.test(e)?{kind:o.INT,value:e}:{kind:o.FLOAT,value:e}}if("string"==typeof r)return eK(t)?{kind:o.ENUM,value:r}:t===tU&&t9.test(r)?{kind:o.INT,value:r}:{kind:o.STRING,value:r};throw TypeError(`Cannot convert value to AST: ${Y(r)}.`)}m(!1,"Unexpected input type: "+Y(t))}let t9=/^-?(?:0|[1-9][0-9]*)$/,t3=new th({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:()=>({description:{type:tM,resolve:e=>e.description}
152,types:{description:"A list of all types supported by this server.",type:new tr(new tt(new tr(t4))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new tr(t4),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:t4,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:t4,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new tr(new tt(new tr(t5))),resolve:e=>e.getDirectives()}})}),t5=new th({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:()=>({name:{type:new tr(tM),resolve:e=>e.name},description:{type:tM,resolve:e=>e.description},isRepeatable:{type:new tr(t$),resolve:e=>e.isRepeatable},locations:{type:new tr(new tt(new tr(t6))),resolve:e=>e.locations},args:{type:new tr(new tt(new tr(t8))),args:{includeDeprecated:{type:t$,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),t6=new tN({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:i.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:i.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:i.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:i.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:i.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:i.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:i.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:i.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:i.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:i.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:i.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:i.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:i.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:i.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:i.UNION,description:"Location adjacent to a union definition."},ENUM:{value:i.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:i.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:i.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:i.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),t4=new th({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:()=>({kind:{type:new tr(rt),resolve:e=>e$(e)?s.SCALAR:eV(e)?s.OBJECT:eG(e)?s.INTERFACE:ez(e)?s.UNION:eK(e)?s.ENUM:eQ(e)?s.INPUT_OBJECT:eJ(e)?s.LIST:eZ(e)?s.NON_NULL:void m(!1,`Unexpected type: "${Y(e)}".`)},name:{type:tM,resolve:e=>"name"in e?e.name:void 0},description:{type:tM,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:tM,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new tt(new tr(t7)),args:{includeDeprecated:{type:t$,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(eV(e)||eG(e)){let r=Object.values(e.getFields());return t?r:r.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new tt(new tr(t4)),resolve(e){if(eV(e)||eG(e))return e.getInterfaces()}},possibleTypes:{type:new tt(new tr(t4)),resolve(e,t,r,{schema:n}){if(e8(e))return n.getPossibleTypes(e)}},enumValues:{type:new tt(new tr(re)),args:{includeDeprecated:{type:t$,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(eK(e)){let r=e.getValues();return t?r:r.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new tt(new tr(t8)),args:{includeDeprecated:{type:t$,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(eQ(e)){let r=Object.values(e.getFields());return t?r:r.filter(e=>null==e.deprecationReason)}}},ofType:{type:t4,resolve:e=>
152"ofType"in e?e.ofType:void 0},isOneOf:{type:t$,resolve:e=>{if(eQ(e))return e.isOneOf}}})}),t7=new th({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:()=>({name:{type:new tr(tM),resolve:e=>e.name},description:{type:tM,resolve:e=>e.description},args:{type:new tr(new tt(new tr(t8))),args:{includeDeprecated:{type:t$,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new tr(t4),resolve:e=>e.type},isDeprecated:{type:new tr(t$),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tM,resolve:e=>e.deprecationReason}})}),t8=new th({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:()=>({name:{type:new tr(tM),resolve:e=>e.name},description:{type:tM,resolve:e=>e.description},type:{type:new tr(t4),resolve:e=>e.type},defaultValue:{type:tM,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:r}=e,n=t2(r,t);return n?eS(n):null}},isDeprecated:{type:new tr(t$),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tM,resolve:e=>e.deprecationReason}})}),re=new th({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:()=>({name:{type:new tr(tM),resolve:e=>e.name},description:{type:tM,resolve:e=>e.description},isDeprecated:{type:new tr(t$),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tM,resolve:e=>e.deprecationReason}})});!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(s||(s={}));let rt=new tN({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:s.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:s.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:s.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:s.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:s.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:s.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:s.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:s.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),rr={name:"__schema",type:new tr(t3),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},rn={name:"__type",type:t4,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new tr(tM),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ri={name:"__typename",type:new tr(tM),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ro=Object.freeze([t3,t5,t6,t4,t7,t8,re,rt]);function ra(e){return ro.some(({name:t})=>e.name===t)}function rs(e){return J(e,ru)}function rl(e){if(!rs(e))throw Error(`Expected ${Y(e)} to be a GraphQL schema.`);return e}class ru{constructor(e){var t,r;this.__validationErrors=!0===e.assumeValid?[]:void 0,h(e)||p(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||p(!1,`"types" must be Array if provided but got: ${Y(e.types)}.`),!e.directives||Array.isArray(e.directives)||p(!1,`"directives" must be Array if provided but got: ${Y(e.directives)}.`),this.description=e.description,this.extensions=ev(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!=(r=e.directives)?r:tZ;let n=new Set(e.types);if(null!=e.types)for(let t of e.types)n.delete(t),rc(t,n);for(let e of(null!=this._queryType&&rc(this._queryType,n),null!=this._mutationType&&rc(this._mutationType,n),null!=this._subscriptionType&&rc(this._subscriptionType,n),this._directives))if(tq(e))for(let t of e.args)rc(t.type,n);for(let e of(rc(t3,n),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null),n)){if(null==e)continue;let t=e.name;if(t||p(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,eG(e)){for(let t of e.getInterfaces())if(eG(t)){let r=this._implementationsMap[t.name];void 0===r&&(r=this._implementationsMap[t.name]={objects:[],interfaces:[]}),r.interfaces.push(e)}}else if(eV(e)){for(let t of e.getInterfaces())if(eG(t)){let r=this._implementationsMap[t.name];void 0===r&&(r=this._implementationsMap[t.name]={objects:[],interfaces:[]}),r.objects.push(e)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case n.QUERY:return this.getQueryType();case n.MUTATION:return this.getMutationType();
152case n.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return ez(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){let t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let r=this._subTypeMap[e.name];if(void 0===r){if(r=Object.create(null),ez(e))for(let t of e.getTypes())r[t.name]=!0;else{let t=this.getImplementations(e);for(let e of t.objects)r[e.name]=!0;for(let e of t.interfaces)r[e.name]=!0}this._subTypeMap[e.name]=r}return void 0!==r[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function rc(e,t){let r=tc(e);if(!t.has(r)){if(t.add(r),ez(r))for(let e of r.getTypes())rc(e,t);else if(eV(r)||eG(r)){for(let e of r.getInterfaces())rc(e,t);for(let e of Object.values(r.getFields()))for(let r of(rc(e.type,t),e.args))rc(r.type,t)}else if(eQ(r))for(let e of Object.values(r.getFields()))rc(e.type,t)}return t}function rd(e){if(rl(e),e.__validationErrors)return e.__validationErrors;let t=new rf(e);(function(e){var t,r,i;let o=e.schema,a=o.getQueryType();a?eV(a)||e.reportError(`Query root type must be Object type, it cannot be ${Y(a)}.`,null!=(t=rh(o,n.QUERY))?t:a.astNode):e.reportError("Query root type must be provided.",o.astNode);let s=o.getMutationType();s&&!eV(s)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${Y(s)}.`,null!=(r=rh(o,n.MUTATION))?r:s.astNode);let l=o.getSubscriptionType();l&&!eV(l)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${Y(l)}.`,null!=(i=rh(o,n.SUBSCRIPTION))?i:l.astNode)})(t),function(e){for(let r of e.schema.getDirectives()){if(!tq(r)){e.reportError(`Expected directive but got: ${Y(r)}.`,null==r?void 0:r.astNode);continue}for(let n of(rm(e,r),0===r.locations.length&&e.reportError(`Directive @${r.name} must include 1 or more locations.`,r.astNode),r.args))if(rm(e,n),e1(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${Y(n.type)}.`,n.astNode),tw(n)&&null!=n.deprecationReason){var t;e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[rv(n.astNode),null==(t=n.astNode)?void 0:t.type])}}}(t),function(e){let t=function(e){let t=Object.create(null),r=[],n=Object.create(null);return function i(o){if(!t[o.name]){for(let a of(t[o.name]=!0,n[o.name]=r.length,Object.values(o.getFields())))if(eZ(a.type)&&eQ(a.type.ofType)){let t=a.type.ofType,o=n[t.name];if(r.push(a),void 0===o)i(t);else{let n=r.slice(o),i=n.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${t.name}" within itself through a series of non-null fields: "${i}".`,n.map(e=>e.astNode))}r.pop()}n[o.name]=void 0}}}(e);for(let r of Object.values(e.schema.getTypeMap())){if(!tl(r)){e.reportError(`Expected GraphQL named type but got: ${Y(r)}.`,r.astNode);continue}ra(r)||rm(e,r),eV(r)||eG(r)?(function(e,t){let r=Object.values(t.getFields());for(let a of(0===r.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),r)){var n,i,o;for(let r of(rm(e,a),e9(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${Y(a.type)}.`,null==(n=a.astNode)?void 0:n.type),a.args)){let n=r.name;rm(e,r),e1(r.type)||e.reportError(`The type of ${t.name}.${a.name}(${n}:) must be Input Type but got: ${Y(r.type)}.`,null==(i=r.astNode)?void 0:i.type),tw(r)&&null!=r.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${n}:) cannot be deprecated.`,[rv(r.astNode),null==(o=r.astNode)?void 0:o.type])}}}(e,r),function(e,t){let r=Object.create(null);for(let n of t.getInterfaces()){if(!eG(n)){e.reportError(`Type ${Y(t)} must only implement Interface types, it cannot implement ${Y(n)}.`,rg(t,n));continue}if(t===n){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,rg(t,n));continue}if(r[n.name]){e.reportError(`Type ${t.name} can only implement ${n.name} once.`,rg(t,n));continue}r[n.name]=!0,function(e,t,r){let n=t.getInterfaces();for(let i of r.getInterfaces())n.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${r.name}.`,[...rg(r,i),...rg(t,r)])}
152(e,t,n),function(e,t,r){let n=t.getFields();for(let l of Object.values(r.getFields())){var i,o,a,s;let u=l.name,c=n[u];if(!c){e.reportError(`Interface field ${r.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}for(let n of(tD(e.schema,c.type,l.type)||e.reportError(`Interface field ${r.name}.${u} expects type ${Y(l.type)} but ${t.name}.${u} is type ${Y(c.type)}.`,[null==(i=l.astNode)?void 0:i.type,null==(o=c.astNode)?void 0:o.type]),l.args)){let i=n.name,o=c.args.find(e=>e.name===i);if(!o){e.reportError(`Interface field argument ${r.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[n.astNode,c.astNode]);continue}tR(n.type,o.type)||e.reportError(`Interface field argument ${r.name}.${u}(${i}:) expects type ${Y(n.type)} but ${t.name}.${u}(${i}:) is type ${Y(o.type)}.`,[null==(a=n.astNode)?void 0:a.type,null==(s=o.astNode)?void 0:s.type])}for(let n of c.args){let i=n.name;!l.args.find(e=>e.name===i)&&tw(n)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${r.name}.${u}.`,[n.astNode,l.astNode])}}}(e,t,n)}}(e,r)):ez(r)?function(e,t){let r=t.getTypes();0===r.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let n=Object.create(null);for(let i of r){if(n[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,ry(t,i.name));continue}n[i.name]=!0,eV(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${Y(i)}.`,ry(t,String(i)))}}(e,r):eK(r)?function(e,t){let r=t.getValues();for(let n of(0===r.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]),r))rm(e,n)}(e,r):eQ(r)&&(function(e,t){let r=Object.values(t.getFields());for(let o of(0===r.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),r)){var n,i;rm(e,o),e1(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${Y(o.type)}.`,null==(n=o.astNode)?void 0:n.type),t_(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[rv(o.astNode),null==(i=o.astNode)?void 0:i.type]),t.isOneOf&&function(e,t,r){if(eZ(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null==(n=t.astNode)?void 0:n.type)}void 0!==t.defaultValue&&r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}(t,o,e)}}(e,r),t(r))}}(t);let r=t.getErrors();return e.__validationErrors=r,r}function rp(e){let t=rd(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}class rf{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let r=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new w(e,{nodes:r}))}getErrors(){return this._errors}}function rh(e,t){var r;return null==(r=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!=(t=null==e?void 0:e.operationTypes)?t:[]}).find(e=>e.operation===t))?void 0:r.type}function rm(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function rg(e,t){let{astNode:r,extensionASTNodes:n}=e;return(null!=r?[r,...n]:n).flatMap(e=>{var t;return null!=(t=e.interfaces)?t:[]}).filter(e=>e.name.value===t.name)}function ry(e,t){let{astNode:r,extensionASTNodes:n}=e;return(null!=r?[r,...n]:n).flatMap(e=>{var t;return null!=(t=e.types)?t:[]}).filter(e=>e.name.value===t)}function rv(e){var t;return null==e||null==(t=e.directives)?void 0:t.find(e=>e.name.value===tY.name)}function rb(e,t){switch(t.kind){case o.LIST_TYPE:{let r=rb(e,t.type);return r&&new tt(r)}case o.NON_NULL_TYPE:{let r=rb(e,t.type);return r&&new tr(r)}case o.NAMED_TYPE:return e.getType(t.name.value)}}class rE{constructor(e,t,r){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!=r?r:rw,t&&(e1(t)&&this._inputTypeStack.push(t),e4(t)&&this._parentTypeStack.push(t),e9(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}
152getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){let t=this._schema;switch(e.kind){case o.SELECTION_SET:{let e=tc(this.getType());this._parentTypeStack.push(e4(e)?e:void 0);break}case o.FIELD:{let r,n,i=this.getParentType();i&&(r=this._getFieldDef(t,i,e))&&(n=r.type),this._fieldDefStack.push(r),this._typeStack.push(e9(n)?n:void 0);break}case o.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case o.OPERATION_DEFINITION:{let r=t.getRootType(e.operation);this._typeStack.push(eV(r)?r:void 0);break}case o.INLINE_FRAGMENT:case o.FRAGMENT_DEFINITION:{let r=e.typeCondition,n=r?rb(t,r):tc(this.getType());this._typeStack.push(e9(n)?n:void 0);break}case o.VARIABLE_DEFINITION:{let r=rb(t,e.type);this._inputTypeStack.push(e1(r)?r:void 0);break}case o.ARGUMENT:{var r;let t,n,i=null!=(r=this.getDirective())?r:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value))&&(n=t.type),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(e1(n)?n:void 0);break}case o.LIST:{let e=ts(this.getInputType()),t=eJ(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(e1(t)?t:void 0);break}case o.OBJECT_FIELD:{let t,r,n=tc(this.getInputType());eQ(n)&&(r=n.getFields()[e.name.value])&&(t=r.type),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(e1(t)?t:void 0);break}case o.ENUM:{let t,r=tc(this.getInputType());eK(r)&&(t=r.getValue(e.value)),this._enumValue=t}}}leave(e){switch(e.kind){case o.SELECTION_SET:this._parentTypeStack.pop();break;case o.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case o.DIRECTIVE:this._directive=null;break;case o.OPERATION_DEFINITION:case o.INLINE_FRAGMENT:case o.FRAGMENT_DEFINITION:this._typeStack.pop();break;case o.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case o.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case o.LIST:case o.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case o.ENUM:this._enumValue=null}}}function rw(e,t,r){let n=r.name.value;return n===rr.name&&e.getQueryType()===t?rr:n===rn.name&&e.getQueryType()===t?rn:n===ri.name&&e4(t)?ri:eV(t)||eG(t)?t.getFields()[n]:void 0}function rT(e,t){return{enter(...r){let n=r[0];e.enter(n);let i=eN(t,n.kind).enter;if(i){let o=i.apply(t,r);return void 0!==o&&(e.leave(n),_(o)&&e.enter(o)),o}},leave(...r){let n,i=r[0],o=eN(t,i.kind).leave;return o&&(n=o.apply(t,r)),e.leave(i),n}}}function rx(e){return rO(e)||rI(e)||r_(e)}function rO(e){return e.kind===o.OPERATION_DEFINITION||e.kind===o.FRAGMENT_DEFINITION}function rN(e){return e.kind===o.FIELD||e.kind===o.FRAGMENT_SPREAD||e.kind===o.INLINE_FRAGMENT}function rC(e){return e.kind===o.VARIABLE||e.kind===o.INT||e.kind===o.FLOAT||e.kind===o.STRING||e.kind===o.BOOLEAN||e.kind===o.NULL||e.kind===o.ENUM||e.kind===o.LIST||e.kind===o.OBJECT}function rS(e){return e.kind===o.NAMED_TYPE||e.kind===o.LIST_TYPE||e.kind===o.NON_NULL_TYPE}function rI(e){return e.kind===o.SCHEMA_DEFINITION||rA(e)||e.kind===o.DIRECTIVE_DEFINITION}function rA(e){return e.kind===o.SCALAR_TYPE_DEFINITION||e.kind===o.OBJECT_TYPE_DEFINITION||e.kind===o.INTERFACE_TYPE_DEFINITION||e.kind===o.UNION_TYPE_DEFINITION||e.kind===o.ENUM_TYPE_DEFINITION||e.kind===o.INPUT_OBJECT_TYPE_DEFINITION}function r_(e){return e.kind===o.SCHEMA_EXTENSION||rR(e)}function rR(e){return e.kind===o.SCALAR_TYPE_EXTENSION||e.kind===o.OBJECT_TYPE_EXTENSION||e.kind===o.INTERFACE_TYPE_EXTENSION||e.kind===o.UNION_TYPE_EXTENSION||e.kind===o.ENUM_TYPE_EXTENSION||e.kind===o.INPUT_OBJECT_TYPE_EXTENSION}function rD(e){return e.kind===o.TYPE_COORDINATE||e.kind===o.MEMBER_COORDINATE||e.kind===o.ARGUMENT_COORDINATE||e.kind===o.DIRECTIVE_COORDINATE||e.kind===o.DIRECTIVE_ARGUMENT_COORDINATE}function rk(e){return{Document(t){for(let r of t.definitions)if(!rO(r)){let t=r.kind===o.SCHEMA_DEFINITION||r.kind===o.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new w(`The ${t} definition is not executable.`,{nodes:r}))}return!1}}}function rj(e){return{Field(t){let r=e.getParentType();if(r&&!e.getFieldDef()){var n,i;let o=e.getSchema(),a=t.name.value,s=es("to use an inline fragment on",function(e,t,r){if(!e8(t))return[];let n=new Set,i=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[r])for(let e of(n.add(a),i[a.name]=1,a.getInterfaces())){var o;e.getFields()[r]&&(n.add(e),i[e.name]=(null!=(o=i[e.name])?o:0)+1)}return[...n].sort((t,r)=>{let n=i[r.name]-i[t.name];return 0!==n?n:eG(t)&&e.isSubType(t,r)?-1:eG(r)&&e.isSubType(r,t)?1:ep(t.name,r.name)}
152).map(e=>e.name)}(o,r,a));""===s&&(s=es((n=r,i=a,eV(n)||eG(n)?em(i,Object.keys(n.getFields())):[]))),e.reportError(new w(`Cannot query field "${a}" on type "${r.name}".`+s,{nodes:t}))}}}}function rL(e){return{InlineFragment(t){let r=t.typeCondition;if(r){let t=rb(e.getSchema(),r);if(t&&!e4(t)){let t=eS(r);e.reportError(new w(`Fragment cannot condition on non composite type "${t}".`,{nodes:r}))}}},FragmentDefinition(t){let r=rb(e.getSchema(),t.typeCondition);if(r&&!e4(r)){let r=eS(t.typeCondition);e.reportError(new w(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}function rP(e){return{...rF(e),Argument(t){let r=e.getArgument(),n=e.getFieldDef(),i=e.getParentType();if(!r&&n&&i){let r=t.name.value,o=em(r,n.args.map(e=>e.name));e.reportError(new w(`Unknown argument "${r}" on field "${i.name}.${n.name}".`+es(o),{nodes:t}))}}}}function rF(e){let t=Object.create(null),r=e.getSchema();for(let e of r?r.getDirectives():tZ)t[e.name]=e.args.map(e=>e.name);for(let r of e.getDocument().definitions)if(r.kind===o.DIRECTIVE_DEFINITION){var n;let e=null!=(n=r.arguments)?n:[];t[r.name.value]=e.map(e=>e.name.value)}return{Directive(r){let n=r.name.value,i=t[n];if(r.arguments&&i)for(let t of r.arguments){let r=t.name.value;if(!i.includes(r)){let o=em(r,i);e.reportError(new w(`Unknown argument "${r}" on directive "@${n}".`+es(o),{nodes:t}))}}return!1}}}function rM(e){let t=Object.create(null),r=e.getSchema();for(let e of r?r.getDirectives():tZ)t[e.name]=e.locations;for(let r of e.getDocument().definitions)r.kind===o.DIRECTIVE_DEFINITION&&(t[r.name.value]=r.locations.map(e=>e.value));return{Directive(r,a,s,l,u){let c=r.name.value,d=t[c];if(!d)return void e.reportError(new w(`Unknown directive "@${c}".`,{nodes:r}));let p=function(e){let t=e[e.length-1];switch("kind"in t||m(!1),t.kind){case o.OPERATION_DEFINITION:var r=t.operation;switch(r){case n.QUERY:return i.QUERY;case n.MUTATION:return i.MUTATION;case n.SUBSCRIPTION:return i.SUBSCRIPTION}return;case o.FIELD:return i.FIELD;case o.FRAGMENT_SPREAD:return i.FRAGMENT_SPREAD;case o.INLINE_FRAGMENT:return i.INLINE_FRAGMENT;case o.FRAGMENT_DEFINITION:return i.FRAGMENT_DEFINITION;case o.VARIABLE_DEFINITION:return i.VARIABLE_DEFINITION;case o.SCHEMA_DEFINITION:case o.SCHEMA_EXTENSION:return i.SCHEMA;case o.SCALAR_TYPE_DEFINITION:case o.SCALAR_TYPE_EXTENSION:return i.SCALAR;case o.OBJECT_TYPE_DEFINITION:case o.OBJECT_TYPE_EXTENSION:return i.OBJECT;case o.FIELD_DEFINITION:return i.FIELD_DEFINITION;case o.INTERFACE_TYPE_DEFINITION:case o.INTERFACE_TYPE_EXTENSION:return i.INTERFACE;case o.UNION_TYPE_DEFINITION:case o.UNION_TYPE_EXTENSION:return i.UNION;case o.ENUM_TYPE_DEFINITION:case o.ENUM_TYPE_EXTENSION:return i.ENUM;case o.ENUM_VALUE_DEFINITION:return i.ENUM_VALUE;case o.INPUT_OBJECT_TYPE_DEFINITION:case o.INPUT_OBJECT_TYPE_EXTENSION:return i.INPUT_OBJECT;case o.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return"kind"in t||m(!1),t.kind===o.INPUT_OBJECT_TYPE_DEFINITION?i.INPUT_FIELD_DEFINITION:i.ARGUMENT_DEFINITION}default:m(!1,"Unexpected kind: "+Y(t.kind))}}(u);p&&!d.includes(p)&&e.reportError(new w(`Directive "@${c}" may not be used on ${p}.`,{nodes:r}))}}}function r$(e){return{FragmentSpread(t){let r=t.name.value;e.getFragment(r)||e.reportError(new w(`Unknown fragment "${r}".`,{nodes:t.name}))}}}function rU(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(let t of e.getDocument().definitions)rA(t)&&(n[t.name.value]=!0);let i=[...Object.keys(r),...Object.keys(n)];return{NamedType(t,o,a,s,l){let u=t.name.value;if(!r[u]&&!n[u]){var c,d;let r=null!=(c=l[2])?c:a,n=null!=r&&"kind"in(d=r)&&(rI(d)||r_(d));if(n&&rV.includes(u))return;let o=em(u,n?rV.concat(i):i);e.reportError(new w(`Unknown type "${u}".`+es(o),{nodes:t}))}}}}let rV=[...tV,...ro].map(e=>e.name);function rB(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===o.OPERATION_DEFINITION).length},OperationDefinition(r){!r.name&&t>1&&e.reportError(new w("This anonymous operation must be the only defined operation.",{nodes:r}))}}}function rG(e){var t,r,n;let i=e.getSchema(),o=null!=(t=null!=(r=null!=(n=null==i?void 0:i.astNode)?n:null==i?void 0:i.getQueryType())?r:null==i?void 0:i.getMutationType())?t:null==i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition(t){if(o)return void e.reportError(new w("Cannot define a new schema within a schema extension.",{nodes:t}));a>0&&e.reportError(new w("Must provide only one schema definition.",{nodes:t})),++a}}}function rq(e){return{Field(t){if(("__schema"===t.name.value||"__type"===t.name.value)&&function t(r,n=Object.create(null),i=0){if(r.kind===o.FRAGMENT_SPREAD){let o=r.name.value;if(!0===n[o])return!1;let a=e.getFragment(o);if(!a)return!1;try{return n[o]=!0,t(a,n,i)}finally{n[o]=void 0}}if(r.kind===o.FIELD&&("fields"===r.name.value||"interfaces"===r.name.value||"possibleTypes"===r.name.value||"inputFields"===r.name.value)&&++i>=3)return!0;
152if("selectionSet"in r&&r.selectionSet){for(let e of r.selectionSet.selections)if(t(e,n,i))return!0}return!1}(t))return e.reportError(new w("Maximum introspection depth exceeded",{nodes:[t]})),!1}}}function rz(e){let t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>((function i(o){if(t[o.name.value])return;let a=o.name.value;t[a]=!0;let s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){for(let t of(n[a]=r.length,s)){let o=t.name.value,a=n[o];if(r.push(t),void 0===a){let t=e.getFragment(o);t&&i(t)}else{let t=r.slice(a),n=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new w(`Cannot spread fragment "${o}" within itself`+(""!==n?` via ${n}.`:"."),{nodes:t}))}r.pop()}n[a]=void 0}})(i),!1)}}function rH(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){for(let{node:n}of e.getRecursiveVariableUsages(r)){let i=n.name.value;!0!==t[i]&&e.reportError(new w(r.name?`Variable "$${i}" is not defined by operation "${r.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[n,r]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function rK(e){let t=[],r=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(r.push(e),!1),Document:{leave(){let n=Object.create(null);for(let r of t)for(let t of e.getRecursivelyReferencedFragments(r))n[t.name.value]=!0;for(let t of r){let r=t.name.value;!0!==n[r]&&e.reportError(new w(`Fragment "${r}" is never used.`,{nodes:t}))}}}}}function rW(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){let n=Object.create(null);for(let{node:t}of e.getRecursiveVariableUsages(r))n[t.name.value]=!0;for(let i of t){let t=i.variable.name.value;!0!==n[t]&&e.reportError(new w(r.name?`Variable "$${t}" is never used in operation "${r.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function rQ(e){switch(e.kind){case o.OBJECT:return{...e,fields:e.fields.map(e=>({...e,value:rQ(e.value)})).sort((e,t)=>ep(e.name.value,t.name.value))};case o.LIST:return{...e,values:e.values.map(rQ)};case o.INT:case o.FLOAT:case o.STRING:case o.BOOLEAN:case o.NULL:case o.ENUM:case o.VARIABLE:return e}}function rY(e){let t=new r9,r=new r3,n=new Map;return{SelectionSet(i){for(let[[o,a],s,l]of function(e,t,r,n,i,o){let a=[],[s,l]=r1(e,t,i,o);if(function(e,t,r,n,i,o){for(let[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o<s.length;o++)for(let l=o+1;l<s.length;l++){let u=r0(e,r,n,i,!1,a,s[o],s[l]);u&&t.push(u)}}(e,a,t,r,n,s),0!==l.length)for(let i=0;i<l.length;i++){rJ(e,a,t,r,n,!1,s,l[i]);for(let o=i+1;o<l.length;o++)rX(e,a,t,r,n,!1,l[i],l[o])}return a}(e,n,t,r,e.getParentType(),i)){let t=function e(t){return Array.isArray(t)?t.map(([t,r])=>`subfields "${t}" conflict because `+e(r)).join(" and "):t}(a);e.reportError(new w(`Fields "${o}" conflict because ${t}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:s.concat(l)}))}}}}function rJ(e,t,r,n,i,o,a,s){if(n.has(a,s,o))return;n.add(a,s,o);let l=e.getFragment(s);if(!l)return;let[u,c]=r2(e,r,l);if(a!==u)for(let s of(rZ(e,t,r,n,i,o,a,u),c))rJ(e,t,r,n,i,o,a,s)}function rX(e,t,r,n,i,o,a,s){if(a===s||i.has(a,s,o))return;i.add(a,s,o);let l=e.getFragment(a),u=e.getFragment(s);if(!l||!u)return;let[c,d]=r2(e,r,l),[p,f]=r2(e,r,u);for(let s of(rZ(e,t,r,n,i,o,c,p),f))rX(e,t,r,n,i,o,a,s);for(let a of d)rX(e,t,r,n,i,o,a,s)}function rZ(e,t,r,n,i,o,a,s){for(let[l,u]of Object.entries(a)){let a=s[l];if(a)for(let s of u)for(let u of a){let a=r0(e,r,n,i,o,l,s,u);a&&t.push(a)}}}function r0(e,t,r,n,i,o,a,s){let[l,u,c]=a,[d,p,f]=s,h=i||l!==d&&eV(l)&&eV(d);if(!h){let e=u.name.value,t=p.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[u],[p]];if(!function(e,t){let r=e.arguments,n=t.arguments;if(void 0===r||0===r.length)return void 0===n||0===n.length;if(void 0===n||0===n.length||r.length!==n.length)return!1;let i=new Map(n.map(({name:e,value:t})=>[e.value,t]));return r.every(e=>{let t=e.value,r=i.get(e.name.value);return void 0!==r&&function(e){return eS(rQ(e))}(t)===function(e){return eS(rQ(e))}(r)})}(u,p))return[[o,"they have differing arguments"],[u],[p]]}let m=null==c?void 0:c.type,g=null==f?void 0:f.type;if(m&&g&&function e(t,r){return eJ(t)?!eJ(r)||e(t.ofType,r.ofType):!!eJ(r)||(eZ(t)?!eZ(r)||e(t.ofType,r.ofType):!!eZ(r)||!!(e5(t)||e5(r))&&t!==r)}(m,g))return[[o,`they return conflicting types "${Y(m)}" and "${Y(g)}"`],[u],[p]];let y=u.selectionSet,v=p.selectionSet;if(y&&v){var b=function(e,t,r,n,i,o,a,s,l){let u=[],[c,d]=r1(e,t,o,a),[p,f]=r1(e,t,s,l);for(let o of(rZ(e,u,t,r,n,i,c,p),f))rJ(e,u,t,r,n,i,c,o);for(let o of d)rJ(e,u,t,r,n,i,p,o);for(let o of d)for(let a of f)rX(e,u,t,r,n,i,o,a);return u}(e,t,r,n,h,tc(m),y,tc(g),v),E=o,w=u,T=p;return b.length>0?[[E,b.map(([e])=>e)],[w,...b.map(([,e])=>e).flat()],[T,...b.map(([,,e])=>e).flat()]]:void 0}}function r1(e,t,r,n){let i=t.get(n);if(i)return i;let a=Object.create(null),s=Object.create(null);!function e(t,r,n,i,a){for(let s of n.selections)switch(s.kind){case o.FIELD:{let e,t=s.name.value;(eV(r)||eG(r))&&(e=r.getFields()[t]);let n=s.alias?s.alias.value:t;i[n]||(i[n]=[]),i[n].push([r,s,e]);break}case o.FRAGMENT_SPREAD:a[s.name.value]=!0;break;case o.INLINE_FRAGMENT:{let n=s.typeCondition,o=n?rb(t.getSchema(),n):r;e(t,o,s.selectionSet,i,a)}}}(e,r,n,a,s);let l=[a,Object.keys(s)];return t.set(n,l),l}function r2(e,t,r){let n=t.get(r.selectionSet);if(n)return n;let i=rb(e.getSchema(),r.typeCondition);return r1(e,t,i,r.selectionSet)}class r9{constructor(){this._data=new Map}has(e,t,r){var n;let i=null==(n=this._data.get(e))?void 0:n.get(t);return void 0!==i&&(!!r||r===i)}add(e,t,r){let n=this._data.get(e);void 0===n?this._data.set(e,new Map([[t,r]])):n.set(t,r)}}class r3{constructor(){this._orderedPairSet=new r9}has(e,t,r){return e<t?this._orderedPairSet.has(e,t,r):this._orderedPairSet.has(t,e,r)}add(e,t,r){e<t?this._orderedPairSet.add(e,t,r):this._orderedPairSet.add(t,e,r)}}function r5(e){return{InlineFragment(t){let r=e.getType(),n=e.getParentType();if(e4(r)&&e4(n)&&!tk(e.getSchema(),r,n)){let i=Y(n),o=Y(r);e.reportError(new w(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){let r=t.name.value,n=function(e,t){let r=e.getFragment(t);if(r){let t=rb(e.getSchema(),r.typeCondition);if(e4(t))return t}}(e,r),i=e.getParentType();if(n&&i&&!tk(e.getSchema(),n,i)){let o=Y(i),a=Y(n);e.reportError(new w(`Fragment "${r}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}}function r6(e){let t=e.getSchema(),r=Object.create(null);for(let t of e.getDocument().definitions)rA(t)&&(r[t.name.value]=t);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(n){var i;let a,s=n.name.value,l=r[s],u=null==t?void 0:t.getType(s);if(l?a=r4[l.kind]:u&&(a=e$(i=u)?o.SCALAR_TYPE_EXTENSION:eV(i)?o.OBJECT_TYPE_EXTENSION:eG(i)?o.INTERFACE_TYPE_EXTENSION:ez(i)?o.UNION_TYPE_EXTENSION:eK(i)?o.ENUM_TYPE_EXTENSION:eQ(i)?o.INPUT_OBJECT_TYPE_EXTENSION:void m(!1,"Unexpected type: "+Y(i))),a){if(a!==n.kind){let t=function(e){switch(e){case o.SCALAR_TYPE_EXTENSION:return"scalar";case o.OBJECT_TYPE_EXTENSION:return"object";
152case o.INTERFACE_TYPE_EXTENSION:return"interface";case o.UNION_TYPE_EXTENSION:return"union";case o.ENUM_TYPE_EXTENSION:return"enum";case o.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:m(!1,"Unexpected kind: "+Y(e))}}(n.kind);e.reportError(new w(`Cannot extend non-${t} type "${s}".`,{nodes:l?[l,n]:n}))}}else{let i=em(s,Object.keys({...r,...null==t?void 0:t.getTypeMap()}));e.reportError(new w(`Cannot extend type "${s}" because it is not defined.`+es(i),{nodes:n.name}))}}}let r4={[o.SCALAR_TYPE_DEFINITION]:o.SCALAR_TYPE_EXTENSION,[o.OBJECT_TYPE_DEFINITION]:o.OBJECT_TYPE_EXTENSION,[o.INTERFACE_TYPE_DEFINITION]:o.INTERFACE_TYPE_EXTENSION,[o.UNION_TYPE_DEFINITION]:o.UNION_TYPE_EXTENSION,[o.ENUM_TYPE_DEFINITION]:o.ENUM_TYPE_EXTENSION,[o.INPUT_OBJECT_TYPE_DEFINITION]:o.INPUT_OBJECT_TYPE_EXTENSION};function r7(e){return{...r8(e),Field:{leave(t){var r;let n=e.getFieldDef();if(!n)return!1;let i=new Set(null==(r=t.arguments)?void 0:r.map(e=>e.name.value));for(let r of n.args)if(!i.has(r.name)&&tw(r)){let i=Y(r.type);e.reportError(new w(`Field "${n.name}" argument "${r.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function r8(e){var t,r;let n=Object.create(null),i=e.getSchema();for(let e of null!=(t=null==i?void 0:i.getDirectives())?t:tZ)n[e.name]=eu(e.args.filter(tw),e=>e.name);for(let t of e.getDocument().definitions)if(t.kind===o.DIRECTIVE_DEFINITION){let e=null!=(r=t.arguments)?r:[];n[t.name.value]=eu(e.filter(ne),e=>e.name.value)}return{Directive:{leave(t){let r=t.name.value,i=n[r];if(i){var o;let n=new Set((null!=(o=t.arguments)?o:[]).map(e=>e.name.value));for(let[o,a]of Object.entries(i))if(!n.has(o)){let n=eF(a.type)?Y(a.type):eS(a.type);e.reportError(new w(`Directive "@${r}" argument "${o}" of type "${n}" is required, but it was not provided.`,{nodes:t}))}}}}}}function ne(e){return e.type.kind===o.NON_NULL_TYPE&&null==e.defaultValue}function nt(e){return{Field(t){let r=e.getType(),n=t.selectionSet;if(r)if(e5(tc(r))){if(n){let i=t.name.value,o=Y(r);e.reportError(new w(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:n}))}}else if(n){if(0===n.selections.length){let n=t.name.value,i=Y(r);e.reportError(new w(`Field "${n}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{let n=t.name.value,i=Y(r);e.reportError(new w(`Field "${n}" of type "${i}" must have a selection of subfields. Did you mean "${n} { ... }"?`,{nodes:t}))}}}}function nr(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function nn(e,t,r){return{prev:e,key:t,typename:r}}function ni(e){let t=[],r=e;for(;r;)t.push(r.key),r=r.prev;return t.reverse()}function no(e,t,r=na){return function e(t,r,n,i){if(eZ(r))return null!=t?e(t,r.ofType,n,i):void n(ni(i),t,new w(`Expected non-nullable type "${Y(r)}" not to be null.`));if(null==t)return null;if(eJ(r)){let o=r.ofType;return t1(t)?Array.from(t,(t,r)=>e(t,o,n,nn(i,r,void 0))):[e(t,o,n,i)]}if(eQ(r)){if(!h(t)||Array.isArray(t))return void n(ni(i),t,new w(`Expected type "${r.name}" to be an object.`));let o={},a=r.getFields();for(let s of Object.values(a)){let a=t[s.name];if(void 0===a){if(void 0!==s.defaultValue)o[s.name]=s.defaultValue;else if(eZ(s.type)){let e=Y(s.type);n(ni(i),t,new w(`Field "${s.name}" of required type "${e}" was not provided.`))}continue}o[s.name]=e(a,s.type,n,nn(i,s.name,r.name))}for(let e of Object.keys(t))if(!a[e]){let o=em(e,Object.keys(r.getFields()));n(ni(i),t,new w(`Field "${e}" is not defined by type "${r.name}".`+es(o)))}if(r.isOneOf){let e=Object.keys(o);1!==e.length&&n(ni(i),t,new w(`Exactly one key must be specified for OneOf type "${r.name}".`));let a=e[0],s=o[a];null===s&&n(ni(i).concat(a),s,new w(`Field "${a}" must be non-null.`))}return o}if(e5(r)){let e;try{e=r.parseValue(t)}catch(e){e instanceof w?n(ni(i),t,e):n(ni(i),t,new w(`Expected type "${r.name}". `+e.message,{originalError:e}));return}return void 0===e&&n(ni(i),t,new w(`Expected type "${r.name}".`)),e}m(!1,"Unexpected input type: "+Y(r))}(e,t,r,void 0)}function na(e,t,r){let n="Invalid value "+Y(t);throw e.length>0&&(n+=` at "value${nr(e)}"`),r.message=n+": "+r.message,r}function ns(e,t,r){if(e){if(e.kind===o.VARIABLE){let n=e.name.value;if(null==r||void 0===r[n])return;let i=r[n];if(null===i&&eZ(t))return;return i}if(eZ(t)){if(e.kind===o.NULL)return;return ns(e,t.ofType,r)}if(e.kind===o.NULL)return null;if(eJ(t)){let n=t.ofType;if(e.kind===o.LIST){let t=[];for(let i of e.values)if(nl(i,r)){if(eZ(n))return;t.push(null)}else{let e=ns(i,n,r);if(void 0===e)return;t.push(e)}return t}let i=ns(e,n,r);if(void 0===i)return;return[i]}if(eQ(t)){if(e.kind!==o.OBJECT)return;let n=Object.create(null),i=eu(e.fields,e=>e.name.value);for(let e of Object.values(t.getFields())){let t=i[e.name];if(!t||nl(t.value,r)){if(void 0!==e.defaultValue)n[e.name]=e.defaultValue;else if(eZ(e.type))return;continue}let o=ns(t.value,e.type,r);if(void 0===o)return;n[e.name]=o}if(t.isOneOf){let e=Object.keys(n);if(1!==e.length||null===n[e[0]])return}return n}if(e5(t)){let n;try{n=t.parseLiteral(e,r)}catch(e){return}if(void 0===n)return;return n}m(!1,"Unexpected input type: "+Y(t))}}function nl(e,t){return e.kind===o.VARIABLE&&(null==t||void 0===t[e.name.value])}function nu(e,t,r,n){let i=[],o=null==n?void 0:n.maxErrors;try{let n=function(e,t,r,n){let i={};for(let o of t){let t=o.variable.name.value,a=rb(e,o.type);if(!e1(a)){let e=eS(o.type);n(new w(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!np(r,t)){if(o.defaultValue)i[t]=ns(o.defaultValue,a);else if(eZ(a)){let e=Y(a);n(new w(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}let s=r[t];if(null===s&&eZ(a)){let e=Y(a);n(new w(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}));continue}i[t]=no(s,a,(e,r,i)=>{let a=`Variable "$${t}" got invalid value `+Y(r);e.length>0&&(a+=` at "${t}${nr(e)}"`),n(new w(a+"; "+i.message,{nodes:o,originalError:i}))})}return i}(e,t,r,e=>
152{if(null!=o&&i.length>=o)throw new w("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:n}}catch(e){i.push(e)}return{errors:i}}function nc(e,t,r){var n;let i={},a=eu(null!=(n=t.arguments)?n:[],e=>e.name.value);for(let n of e.args){let e=n.name,s=n.type,l=a[e];if(!l){if(void 0!==n.defaultValue)i[e]=n.defaultValue;else if(eZ(s))throw new w(`Argument "${e}" of required type "${Y(s)}" was not provided.`,{nodes:t});continue}let u=l.value,c=u.kind===o.NULL;if(u.kind===o.VARIABLE){let t=u.name.value;if(null==r||!np(r,t)){if(void 0!==n.defaultValue)i[e]=n.defaultValue;else if(eZ(s))throw new w(`Argument "${e}" of required type "${Y(s)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:u});continue}c=null==r[t]}if(c&&eZ(s))throw new w(`Argument "${e}" of non-null type "${Y(s)}" must not be null.`,{nodes:u});let d=ns(u,s,r);if(void 0===d)throw new w(`Argument "${e}" has invalid value ${eS(u)}.`,{nodes:u});i[e]=d}return i}function nd(e,t,r){var n;let i=null==(n=t.directives)?void 0:n.find(t=>t.name.value===e.name);if(i)return nc(e,i,r)}function np(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nf(e,t,r,n,i){let o=new Map;return nh(e,t,r,n,i,o,new Set),o}function nh(e,t,r,n,i,a,s){for(let u of i.selections)switch(u.kind){case o.FIELD:{var l;if(!nm(r,u))continue;let e=(l=u).alias?l.alias.value:l.name.value,t=a.get(e);void 0!==t?t.push(u):a.set(e,[u]);break}case o.INLINE_FRAGMENT:if(!nm(r,u)||!ng(e,u,n))continue;nh(e,t,r,n,u.selectionSet,a,s);break;case o.FRAGMENT_SPREAD:{let i=u.name.value;if(s.has(i)||!nm(r,u))continue;s.add(i);let o=t[i];if(!o||!ng(e,o,n))continue;nh(e,t,r,n,o.selectionSet,a,s)}}}function nm(e,t){let r=nd(tW,t,e);if((null==r?void 0:r.if)===!0)return!1;let n=nd(tK,t,e);return(null==n?void 0:n.if)!==!1}function ng(e,t,r){let n=t.typeCondition;if(!n)return!0;let i=rb(e,n);return i===r||!!e8(i)&&e.isSubType(i,r)}function ny(e){return{OperationDefinition(t){if("subscription"===t.operation){let r=e.getSchema(),n=r.getSubscriptionType();if(n){let i=t.name?t.name.value:null,a=Object.create(null),s=e.getDocument(),l=Object.create(null);for(let e of s.definitions)e.kind===o.FRAGMENT_DEFINITION&&(l[e.name.value]=e);let u=nf(r,l,a,n,t.selectionSet);if(u.size>1){let t=[...u.values()].slice(1).flat();e.reportError(new w(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(let t of u.values())t[0].name.value.startsWith("__")&&e.reportError(new w(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function nv(e,t){let r=new Map;for(let n of e){let e=t(n),i=r.get(e);void 0===i?r.set(e,[n]):i.push(n)}return r}function nb(e){return{DirectiveDefinition(e){var t;let n=null!=(t=e.arguments)?t:[];return r(`@${e.name.value}`,n)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,n;let i=e.name.value;for(let o of null!=(t=e.fields)?t:[]){let e=o.name.value;r(`${i}.${e}`,null!=(n=o.arguments)?n:[])}return!1}function r(t,r){for(let[n,i]of nv(r,e=>e.name.value))i.length>1&&e.reportError(new w(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}}function nE(e){return{Field:t,Directive:t};function t(t){var r;for(let[n,i]of nv(null!=(r=t.arguments)?r:[],e=>e.name.value))i.length>1&&e.reportError(new w(`There can be only one argument named "${n}".`,{nodes:i.map(e=>e.name)}))}}function nw(e){let t=Object.create(null),r=e.getSchema();return{DirectiveDefinition(n){let i=n.name.value;return null!=r&&r.getDirective(i)?void e.reportError(new w(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:n.name})):(t[i]?e.reportError(new w(`There can be only one directive named "@${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1)}}}function nT(e){let t=Object.create(null),r=e.getSchema();for(let e of r?r.getDirectives():tZ)t[e.name]=!e.isRepeatable;for(let r of e.getDocument().definitions)r.kind===o.DIRECTIVE_DEFINITION&&(t[r.name.value]=!r.repeatable);let n=Object.create(null),i=Object.create(null);return{enter(r){let a;
152if("directives"in r&&r.directives){if(r.kind===o.SCHEMA_DEFINITION||r.kind===o.SCHEMA_EXTENSION)a=n;else if(rA(r)||rR(r)){let e=r.name.value;void 0===(a=i[e])&&(i[e]=a=Object.create(null))}else a=Object.create(null);for(let n of r.directives){let r=n.name.value;t[r]&&(a[r]?e.reportError(new w(`The directive "@${r}" can only be used once at this location.`,{nodes:[a[r],n]})):a[r]=n)}}}}}function nx(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;let o=t.name.value;n[o]||(n[o]=Object.create(null));let a=null!=(i=t.values)?i:[],s=n[o];for(let t of a){let n=t.name.value,i=r[o];eK(i)&&i.getValue(n)?e.reportError(new w(`Enum value "${o}.${n}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[n]?e.reportError(new w(`Enum value "${o}.${n}" can only be defined once.`,{nodes:[s[n],t.name]})):s[n]=t.name}return!1}}function nO(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i,o,a;let s=t.name.value;n[s]||(n[s]=Object.create(null));let l=null!=(i=t.fields)?i:[],u=n[s];for(let t of l){let n=t.name.value;(o=r[s],a=n,(eV(o)||eG(o)||eQ(o))&&null!=o.getFields()[a])?e.reportError(new w(`Field "${s}.${n}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[n]?e.reportError(new w(`Field "${s}.${n}" can only be defined once.`,{nodes:[u[n],t.name]})):u[n]=t.name}return!1}}function nN(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(r){let n=r.name.value;return t[n]?e.reportError(new w(`There can be only one fragment named "${n}".`,{nodes:[t[n],r.name]})):t[n]=r.name,!1}}}function nC(e){let t=[],r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){let e=t.pop();e||m(!1),r=e}},ObjectField(t){let n=t.name.value;r[n]?e.reportError(new w(`There can be only one input field named "${n}".`,{nodes:[r[n],t.name]})):r[n]=t.name}}}function nS(e){let t=Object.create(null);return{OperationDefinition(r){let n=r.name;return n&&(t[n.value]?e.reportError(new w(`There can be only one operation named "${n.value}".`,{nodes:[t[n.value],n]})):t[n.value]=n),!1},FragmentDefinition:()=>!1}}function nI(e){let t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;for(let o of null!=(i=t.operationTypes)?i:[]){let t=o.operation,i=r[t];n[t]?e.reportError(new w(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:o})):i?e.reportError(new w(`There can be only one ${t} type in schema.`,{nodes:[i,o]})):r[t]=o}return!1}}function nA(e){let t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(n){let i=n.name.value;return null!=r&&r.getType(i)?void e.reportError(new w(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:n.name})):(t[i]?e.reportError(new w(`There can be only one type named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1)}}function n_(e){return{OperationDefinition(t){var r;for(let[n,i]of nv(null!=(r=t.variableDefinitions)?r:[],e=>e.variable.name.value))i.length>1&&e.reportError(new w(`There can be only one variable named "$${n}".`,{nodes:i.map(e=>e.variable.name)}))}}}function nR(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){if(!eJ(ts(e.getParentInputType())))return nD(e,t),!1},ObjectValue(t){let r=tc(e.getInputType());if(!eQ(r))return nD(e,t),!1;let n=eu(t.fields,e=>e.name.value);for(let i of Object.values(r.getFields()))if(!n[i.name]&&t_(i)){let n=Y(i.type);e.reportError(new w(`Field "${r.name}.${i.name}" of required type "${n}" was not provided.`,{nodes:t}))}r.isOneOf&&function(e,t,r,n){var i;let a=Object.keys(n);if(1!==a.length)return e.reportError(new w(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));let s=null==(i=n[a[0]])?void 0:i.value;s&&s.kind!==o.NULL||e.reportError(new w(`Field "${r.name}.${a[0]}" must be non-null.`,{nodes:[t]}))}(e,t,r,n)},ObjectField(t){let r=tc(e.getParentInputType());if(!e.getInputType()&&eQ(r)){let n=em(t.name.value,Object.keys(r.getFields()));e.reportError(new w(`Field "${t.name.value}" is not defined by type "${r.name}".`+es(n),{nodes:t}))}}
152,NullValue(t){let r=e.getInputType();eZ(r)&&e.reportError(new w(`Expected value of type "${Y(r)}", found ${eS(t)}.`,{nodes:t}))},EnumValue:t=>nD(e,t),IntValue:t=>nD(e,t),FloatValue:t=>nD(e,t),StringValue:t=>nD(e,t),BooleanValue:t=>nD(e,t)}}function nD(e,t){let r=e.getInputType();if(!r)return;let n=tc(r);if(!e5(n)){let n=Y(r);e.reportError(new w(`Expected value of type "${n}", found ${eS(t)}.`,{nodes:t}));return}try{let i=n.parseLiteral(t,void 0);if(void 0===i){let n=Y(r);e.reportError(new w(`Expected value of type "${n}", found ${eS(t)}.`,{nodes:t}))}}catch(i){let n=Y(r);i instanceof w?e.reportError(i):e.reportError(new w(`Expected value of type "${n}", found ${eS(t)}; `+i.message,{nodes:t,originalError:i}))}}function nk(e){return{VariableDefinition(t){let r=rb(e.getSchema(),t.type);if(void 0!==r&&!e1(r)){let r=t.variable.name.value,n=eS(t.type);e.reportError(new w(`Variable "$${r}" cannot be non-input type "${n}".`,{nodes:t.type}))}}}}function nj(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){for(let{node:u,type:c,defaultValue:d,parentType:p}of e.getRecursiveVariableUsages(r)){let r=u.name.value,f=t[r];if(f&&c){var n,i,a,s,l;let t=e.getSchema(),h=rb(t,f.type);if(h&&(n=t,i=h,a=f.defaultValue,s=c,l=d,eZ(s)&&!eZ(i)?!((null!=a&&a.kind!==o.NULL||void 0!==l)&&tD(n,i,s.ofType)):!tD(n,i,s))){let t=Y(h),n=Y(c);e.reportError(new w(`Variable "$${r}" of type "${t}" used in position expecting type "${n}".`,{nodes:[f,u]}))}eQ(p)&&p.isOneOf&&to(h)&&e.reportError(new w(`Variable "$${r}" is of type "${h}" but must be non-nullable to be used for OneOf Input Object "${p}".`,{nodes:[f,u]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}let nL=Object.freeze([rq]),nP=Object.freeze([rk,nS,rB,ny,rU,rL,nk,nt,rj,nN,r$,rK,r5,rz,n_,rH,rW,rM,nT,rP,nE,nR,r7,nj,rY,nC,...nL]),nF=Object.freeze([rG,nI,nA,nx,nO,nb,nw,rU,rM,nT,r6,rF,nE,nC,r8]);class nM{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{for(let e of(t=Object.create(null),this.getDocument().definitions))e.kind===o.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){let r;t=[];let n=[e];for(;r=n.pop();)for(let e of r.selections)e.kind===o.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){let r;t=[];let n=Object.create(null),i=[e.selectionSet];for(;r=i.pop();)for(let e of this.getFragmentSpreads(r)){let r=e.name.value;if(!0!==n[r]){n[r]=!0;let e=this.getFragment(r);e&&(t.push(e),i.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class n$ extends nM{constructor(e,t,r){super(e,r),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class nU extends nM{constructor(e,t,r,n){super(t,n),this._schema=e,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){let r=[],n=new rE(this._schema);ex(e,rT(n,{VariableDefinition:()=>!1,Variable(e){r.push({node:e,type:n.getInputType(),defaultValue:n.getDefaultValue(),parentType:n.getParentInputType()})}})),t=r,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){for(let r of(t=this.getVariableUsages(e),this.getRecursivelyReferencedFragments(e)))t=t.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function nV(e,t,r=nP,n,i=new rE(e)){var o;let a=null!=(o=null==n?void 0:n.maxErrors)?o:100;t||p(!1,"Must provide document."),rp(e);let s=Object.freeze({}),l=[],u=new nU(e,t,i,e=>{if(l.length>=a)throw l.push(new w("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)}),c=eO(r.map(e=>e(u)));try{ex(t,rT(i,c))}catch(e){if(e!==s)throw e}return l}function nB(e,t,r=nF){let n=[],i=new n$(e,t,e=>{n.push(e)});return ex(e,eO(r.map(e=>e(i)))),n}function nG(e){return Promise.all(Object.values(e)).then(t=>{let r=Object.create(null);for(let[n,i]of Object.keys(e).entries())r[i]=t[n];return r})}
152class nq extends Error{constructor(e){super("Unexpected error value: "+Y(e)),this.name="NonErrorThrown",this.thrownValue=e}}function nz(e,t,r){var n;let i=e instanceof Error?e:new nq(e);return Array.isArray(i.path)?i:new w(i.message,{nodes:null!=(n=i.nodes)?n:t,source:i.source,positions:i.positions,path:r,originalError:i})}let nH=function(e){let t;return function(r,n,i){void 0===t&&(t=new WeakMap);let o=t.get(r);void 0===o&&(o=new WeakMap,t.set(r,o));let a=o.get(n);void 0===a&&(a=new WeakMap,o.set(n,a));let s=a.get(i);return void 0===s&&(s=e(r,n,i),a.set(i,s)),s}}((e,t,r)=>(function(e,t,r,n,i){let o=new Map,a=new Set;for(let s of i)s.selectionSet&&nh(e,t,r,n,s.selectionSet,o,a);return o})(e.schema,e.fragments,e.variableValues,t,r));function nK(e){arguments.length<2||p(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:r,variableValues:i,rootValue:o}=e;nY(t,r,i);let a=nJ(e);if(!("schema"in a))return{errors:a};try{let{operation:e}=a,t=function(e,t,r){let i=e.sc
152hema.getRootType(t.operation);if(null==i)throw new w(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let o=nf(e.schema,e.fragments,e.variableValues,i,t.selectionSet),a=void 0;switch(t.operation){case n.QUERY:return nX(e,i,r,a,o);case n.MUTATION:var s,l,u,c,d;return s=e,l=i,u=r,c=a,d=o,function(e,t,r){let n=r;for(let r of e)n=f(n)?n.then(e=>t(e,r)):t(n,r);return n}(d.entries(),(e,[t,r])=>{let n=nn(c,t,l.name),i=nZ(s,l,u,r,n);return void 0===i?e:f(i)?i.then(r=>(e[t]=r,e)):(e[t]=i,e)},Object.create(null));case n.SUBSCRIPTION:return nX(e,i,r,a,o)}}(a,e,o);if(f(t))return t.then(e=>nQ(e,a.errors),e=>(a.errors.push(e),nQ(null,a.errors)));return nQ(t,a.errors)}catch(e){return a.errors.push(e),nQ(null,a.errors)}}function nW(e){let t=nK(e);if(f(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function nQ(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function nY(e,t,r){t||p(!1,"Must provide document."),rp(e),null==r||h(r)||p(!1,"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 nJ(e){var t,r,n;let i,{schema:a,document:s,rootValue:l,contextValue:u,variableValues:c,operationName:d,fieldResolver:p,typeResolver:f,subscribeFieldResolver:h,options:m}=e,g=Object.create(null);for(let e of s.definitions)switch(e.kind){case o.OPERATION_DEFINITION:if(null==d){if(void 0!==i)return[new w("Must provide operation name if query contains multiple operations.")];i=e}else(null==(t=e.name)?void 0:t.value)===d&&(i=e);break;case o.FRAGMENT_DEFINITION:g[e.name.value]=e}if(!i)return null!=d?[new w(`Unknown operation named "${d}".`)]:[new w("Must provide an operation.")];let y=nu(a,null!=(r=i.variableDefinitions)?r:[],null!=c?c:{},{maxErrors:null!=(n=null==m?void 0:m.maxCoercionErrors)?n:50});return y.errors?y.errors:{schema:a,fragments:g,rootValue:l,contextValue:u,operation:i,variableValues:y.coerced,fieldResolver:null!=p?p:n4,typeResolver:null!=f?f:n6,subscribeFieldResolver:null!=h?h:n4,errors:[]}}function nX(e,t,r,n,i){let o=Object.create(null),a=!1;try{for(let[s,l]of i.entries()){let i=nn(n,s,t.name),u=nZ(e,t,r,l,i);void 0!==u&&(o[s]=u,f(u)&&(a=!0))}}catch(e){if(a)return nG(o).finally(()=>{throw e});throw e}return a?nG(o):o}function nZ(e,t,r,n,i){var o;let a=n7(e.schema,t,n[0]);if(!a)return;let s=a.type,l=null!=(o=a.resolve)?o:e.fieldResolver,u=n0(e,a,n,t,i);try{let t,o=nc(a,n[0],e.variableValues),c=e.contextValue,d=l(r,o,c,u);if(t=f(d)?d.then(t=>n2(e,s,n,u,i,t)):n2(e,s,n,u,i,d),f(t))return t.then(void 0,t=>{let r=nz(t,n,ni(i));return n1(r,s,e)});return t}catch(t){return n1(nz(t,n,ni(i)),s,e)}}function n0(e,t,r,n,i){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function n1(e,t,r){if(eZ(t))throw e;return r.errors.push(e),null}function n2(e,t,r,n,i,o){if(o instanceof Error)throw o;if(eZ(t)){let a=n2(e,t.ofType,r,n,i,o);if(null===a)throw Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`);return a}return null==o?null:eJ(t)?function(e,t,r,n,i,o){if(!t1(o))throw new w(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`);let a=t.ofType,s=!1,l=Array.from(o,(t,o)=>{let l=nn(i,o,void 0);try{let i;if(i=f(t)?t.then(t=>n2(e,a,r,n,l,t)):n2(e,a,r,n,l,t),f(i))return s=!0,i.then(void 0,t=>{let n=nz(t,r,ni(l));return n1(n,a,e)});return i}catch(t){return n1(nz(t,r,ni(l)),a,e)}});return s?Promise.all(l):l}(e,t,r,n,i,o):e5(t)?function(e,t){let r=e.serialize(t);if(null==r)throw Error(`Expected \`${Y(e)}.serialize(${Y(t)})\` to return non-nullable value, returned: ${Y(r)}`);return r}(t,o):e8(t)?function(e,t,r,n,i,o){var a;let s=(null!=(a=t.resolveType)?a:e.typeResolver)(o,e.contextValue,n,t);return f(s)?s.then(a=>n3(e,n9(a,e,t,r,n,o),r,n,i,o)):n3(e,n9(s,e,t,r,n,o),r,n,i,o)}(e,t,r,n,i,o):eV(t)?n3(e,t,r,n,i,o):void m(!1,"Cannot complete value of unexpected output type: "+Y(t))}function n9(e,t,r,n,i,o){if(null==e)throw new w(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n);if(eV(e))throw new w("Support for returning GraphQLObjectType from resolveType was removed in [email protected] please return type name instead.");if("string"!=typeof e)throw new w(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${Y(o)}, received "${Y(e)}".`);let a=t.schema.getType(e);if(null==a)throw new w(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n});if(!eV(a))throw new w(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n});if(!t.schema.isSubType(r,a))throw new w(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:n});return a}function n3(e,t,r,n,i,o){let a=nH(e,t,r);if(t.isTypeOf){let s=t.isTypeOf(o,e.contextValue,n);if(f(s))return s.then(n=>{if(!n)throw n5(t,o,r);return nX(e,t,o,i,a)});if(!s)throw n5(t,o,r)}return nX(e,t,o,i,a)}function n5(e,t,r){return new w(`Expected value of type "${e.name}" but got: ${Y(t)}.`,{nodes:r})}let n6=function(e,t,r,n){if(h(e)&&"string"==typeof e.__typename)return e.__typename;let i=r.schema.getPossibleTypes(n),o=[];for(let n=0;n<i.length;n++){let a=i[n];if(a.isTypeOf){let i=a.isTypeOf(e,t,r);if(f(i))o[n]=i;else if(i)return o.length&&Promise.allSettled(o).catch(()=>{}),a.name}}if(o.length)return Promise.all(o).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})},n4=function(e,t,r,n){if(h(e)||"function"==typeof e){let i=e[n.fieldName];return"function"==typeof i?e[n.fieldName](t,r,n):i}};function n7(e,t,r){let n=r.name.value;return n===rr.name&&e.getQueryType()===t?rr:n===rn.name&&e.getQueryType()===t?rn:n===ri.name?ri:t.getFields()[n]}function n8(e){return new Promise(t=>t(it(e)))}function ie(e){let t=it(e);if(f(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function it(e){let t;arguments.length<2||p(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");
152let{schema:r,source:n,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u}=e,c=rd(r);if(c.length>0)return{errors:c};try{t=Z(n)}catch(e){return{errors:[e]}}let d=nV(r,t);return d.length>0?{errors:d}:nK({schema:r,document:t,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u})}function ir(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function ii(e){arguments.length<2||p(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await io(e);if(!ir(t))return t;let r=t[Symbol.asyncIterator]();async function n(t){if(t.done)return t;try{let r;return{value:await (r=t.value,nK({...e,rootValue:r})),done:!1}}catch(e){if("function"==typeof r.return)try{await r.return()}catch(e){}throw e}}return{next:async()=>n(await r.next()),return:async()=>"function"==typeof r.return?n(await r.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof r.throw)return n(await r.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function io(...e){let t=function(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:r,document:n,variableValues:i}=t;nY(r,n,i);let o=nJ(t);if(!("schema"in o))return{errors:o};try{let e=await ia(o);if(!ir(e))throw Error(`Subscription field must return Async Iterable. Received: ${Y(e)}.`);return e}catch(e){if(e instanceof w)return{errors:[e]};throw e}}async function ia(e){let{schema:t,fragments:r,operation:n,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new w("Schema is not configured to execute subscription operation.",{nodes:n});let[s,l]=[...nf(t,r,i,a,n.selectionSet).entries()][0],u=n7(t,a,l[0]);if(!u){let e=l[0].name.value;throw new w(`The subscription field "${e}" is not defined.`,{nodes:l})}let c=nn(void 0,s,a.name),d=n0(e,u,l,a,c);try{var p;let t=nc(u,l[0],i),r=e.contextValue,n=null!=(p=u.subscribe)?p:e.subscribeFieldResolver,a=await n(o,t,r,d);if(a instanceof Error)throw a;return a}catch(e){throw nz(e,l,ni(c))}}function is(e){return{Field(t){let r=e.getFieldDef(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){let i=e.getParentType();null!=i||m(!1),e.reportError(new w(`The field ${i.name}.${r.name} is deprecated. ${n}`,{nodes:t}))}},Argument(t){let r=e.getArgument(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){let i=e.getDirective();if(null!=i)e.reportError(new w(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}));else{let i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||m(!1),e.reportError(new w(`Field "${i.name}.${o.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}))}}},ObjectField(t){let r=tc(e.getParentInputType());if(eQ(r)){let n=r.getFields()[t.name.value],i=null==n?void 0:n.deprecationReason;null!=i&&e.reportError(new w(`The input field ${r.name}.${n.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let r=e.getEnumValue(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){let i=tc(e.getInputType());null!=i||m(!1),e.reportError(new w(`The enum value "${i.name}.${r.name}" is deprecated. ${n}`,{nodes:t}))}}}}function il(e){return{Field(t){let r=tc(e.getType());r&&ra(r)&&e.reportError(new w(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function iu(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},r=t.descriptions?"description":"",n=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?r:"";function a(e){return t.inputValueDeprecation?e:""}let s=t.oneOf?"isOneOf":"";return` 153 query IntrospectionQuery { 154 __schema { 155 ${o} 156 queryType { name kind } 157 mutationType { name kind } 158 subscriptionType { name kind } 159 types { 160 ...FullType 161 } 162 directives { 163 name 164 ${r} 165 ${i} 166 locations 167 args${a("(includeDeprecated: true)")} { 168 ...InputValue 169 } 170 } 171 } 172 } 173 174 fragment FullType on __Type { 175 kind 176 name 177 ${r} 178 ${n} 179 ${s} 180 fields(includeDeprecated: true) { 181 name 182 ${r} 183 args${a("(includeDeprecated: true)")} { 184 ...InputValue 185 } 186 type { 187 ...TypeRef 188 } 189 isDeprecated 190 deprecationReason 191 } 192 inputFields${a("(includeDeprecated: true)")} { 193 ...InputValue 194 } 195 interfaces { 196 ...TypeRef 197 } 198 enumValues(includeDeprecated: true) { 199 name 200 ${r} 201 isDeprecated 202 deprecationReason 203 } 204 possibleTypes { 205 ...TypeRef 206 } 207 } 208 209 fragment InputValue on __InputValue { 210 name 211 ${r} 212 type { ...TypeRef } 213 defaultValue 214 ${a("isDeprecated")} 215 ${a("deprecationReason")} 216 } 217 218 fragment TypeRef on __Type { 219 kind 220 name 221 ofType { 222 kind 223 name 224 ofType { 225 kind 226 name 227 ofType { 228 kind 229 name 230 ofType { 231 kind 232 name 233 ofType { 234 kind 235 name 236 ofType { 237 kind 238 name 239 ofType { 240 kind 241 name 242 ofType { 243 kind 244 name 245 ofType { 246 kind 247 name 248 } 249 } 250 } 251 } 252 } 253 } 254 } 255 } 256 } 257 } 258 `}function ic(e,t){let r=null;for(let i of e.definitions)if(i.kind===o.OPERATION_DEFINITION){var n;if(null==t){if(r)return null;r=i}else if((null==(n=i.name)?void 0:n.value)===t)return i}return r}function id(e,t){if("query"===t.operation){let r=e.getQueryType();if(!r)throw new w("Schema does not define the required query root type.",{nodes:t});return r}if("mutation"===t.operation){let r=e.getMutationType();if(!r)throw new w("Schema is not configured for mutations.",{nodes:t});return r}if("subscription"===t.operation){let r=e.getSubscriptionType();if(!r)throw new w("Schema is not configured for subscriptions.",{nodes:t});return r}throw new w("Can only have query, mutation and subscription operations.",{nodes:t})}function ip(e,t){let r=nW({schema:e,document:Z(iu({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t}))});return!r.errors&&r.data||m(!1),r.data}function ih(e,t){h(e)&&h(e.__schema)||p(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${Y(e)}.`);let r=e.__schema,n=ec(r.types,e=>e.name,e=>(function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case s.SCALAR:return new tf({name:(t=e).name,description:t.description,specifiedByURL:t.specifiedByURL});case s.OBJECT:return new th({name:(r=e).name,description:r.description,interfaces:()=>m(r),fields:()=>g(r)});case s.INTERFACE:return new tT({name:(n=e).name,description:n.description,interfaces:()=>m(n),fields:()=>g(n)});case s.UNION:var t,r,n,i=e;if(!i.possibleTypes){let e=Y(i);throw Error(`Introspection result missing possibleTypes: ${e}.`)}
258return new tx({name:i.name,description:i.description,types:()=>i.possibleTypes.map(d)});case s.ENUM:var o=e;if(!o.enumValues){let e=Y(o);throw Error(`Introspection result missing enumValues: ${e}.`)}return new tN({name:o.name,description:o.description,values:ec(o.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))});case s.INPUT_OBJECT:var a=e;if(!a.inputFields){let e=Y(a);throw Error(`Introspection result missing inputFields: ${e}.`)}return new tI({name:a.name,description:a.description,fields:()=>v(a.inputFields),isOneOf:a.isOneOf})}let l=Y(e);throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${l}.`)})(e));for(let e of[...tV,...ro])n[e.name]&&(n[e.name]=e);let i=r.queryType?d(r.queryType):null,o=r.mutationType?d(r.mutationType):null,a=r.subscriptionType?d(r.subscriptionType):null,l=r.directives?r.directives.map(function(e){if(!e.args){let t=Y(e);throw Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){let t=Y(e);throw Error(`Introspection result missing directive locations: ${t}.`)}return new tH({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:v(e.args)})}):[];return new ru({description:r.description,query:i,mutation:o,subscription:a,types:Object.values(n),directives:l,assumeValid:null==t?void 0:t.assumeValid});function u(e){if(e.kind===s.LIST){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new tt(u(t))}if(e.kind===s.NON_NULL){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new tr(ta(u(t)))}return c(e)}function c(e){let t=e.name;if(!t)throw Error(`Unknown type reference: ${Y(e)}.`);let r=n[t];if(!r)throw Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return r}function d(e){return eB(c(e))}function f(e){return eq(c(e))}function m(e){if(null===e.interfaces&&e.kind===s.INTERFACE)return[];if(!e.interfaces){let t=Y(e);throw Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(f)}function g(e){if(!e.fields)throw Error(`Introspection result missing fields: ${Y(e)}.`);return ec(e.fields,e=>e.name,y)}function y(e){let t=u(e.type);if(!e9(t)){let e=Y(t);throw Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){let t=Y(e);throw Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:v(e.args)}}function v(e){return ec(e,e=>e.name,b)}function b(e){let t=u(e.type);if(!e1(t)){let e=Y(t);throw Error(`Introspection must provide input type for arguments, but received: ${e}.`)}let r=null!=e.defaultValue?ns(ee(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}}function im(e,t,r){rl(e),null!=t&&t.kind===o.DOCUMENT||p(!1,"Must provide valid Document AST."),(null==r?void 0:r.assumeValid)!==!0&&(null==r?void 0:r.assumeValidSDL)!==!0&&function(e,t){let r=nB(e,t);if(0!==r.length)throw Error(r.map(e=>e.message).join("\n\n"))}(t,e);let n=e.toConfig(),i=ig(n,t,r);return n===i?e:new ru(i)}function ig(e,t,r){var n,i,a,s,l,u;let c,d=[],p=Object.create(null),f=[],h=[];for(let e of t.definitions)if(e.kind===o.SCHEMA_DEFINITION)c=e;else if(e.kind===o.SCHEMA_EXTENSION)h.push(e);else if(rA(e))d.push(e);else if(rR(e)){let t=e.name.value,r=p[t];p[t]=r?r.concat([e]):[e]}else e.kind===o.DIRECTIVE_DEFINITION&&f.push(e);if(0===Object.keys(p).length&&0===d.length&&0===f.length&&0===h.length&&null==c)return e;let g=Object.create(null);for(let t of e.types){g[t.name]=ra(u=t)||tB(u)?u:e$(u)?function(e){var t,r;let n=e.toConfig(),i=null!=(t=p[n.name])?t:[],o=n.specifiedByURL;for(let e of i)o=null!=(r=ib(e))?r:o;return new tf({...n,specifiedByURL:o,extensionASTNodes:n.extensionASTNodes.concat(i)})}(u):eV(u)?function(e){var t;let r=e.toConfig(),n=null!=(t=p[r.name])?t:[];return new th({...r,interfaces:()=>[...e.getInterfaces().map(b),...A(n)],fields:()=>({...ed(r.fields,E),...N(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}(u):eG(u)?function(e){var t;let r=e.toConfig(),n=null!=(t=p[r.name])?t:[];return new tT({...r,interfaces:()=>[...e.getInterfaces().map(b),...A(n)],fields:()=>({...ed(r.fields,E),...N(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}(u):ez(u)?function(e){var t;let r=e.toConfig(),n=null!=(t=p[r.name])?t:[];return new tx({...r,types:()=>[...e.getTypes().map(b),..._(n)],extensionASTNodes:r.extensionASTNodes.concat(n)})}(u):eK(u)?function(e){var t;let r=e.toConfig(),n=null!=(t=p[e.name])?t:[];return new tN({...r,values:{...r.values,...I(n)},extensionASTNodes:r.extensionASTNodes.concat(n)})}(u):eQ(u)?function(e){var t;let r=e.toConfig(),n=null!=(t=p[r.name])?t:[];return new tI({...r,fields:()=>({...ed(r.fields,e=>({...e,type:v(e.type)})),...S(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}(u):void m(!1,"Unexpected type: "+Y(u))}for(let e of d){let t=e.name.value;g[t]=null!=(l=iy[t])?l:function(e){var t,r,n,i,a,s,l;let u=e.name.value,c=null!=(t=p[u])?t:[];switch(e.kind){case o.OBJECT_TYPE_DEFINITION:{let t=[e,...c];return new th({name:u,description:null==(r=e.description)?void 0:r.value,interfaces:()=>A(t),fields:()=>N(t),astNode:e,extensionASTNodes:c})}
258case o.INTERFACE_TYPE_DEFINITION:{let t=[e,...c];return new tT({name:u,description:null==(n=e.description)?void 0:n.value,interfaces:()=>A(t),fields:()=>N(t),astNode:e,extensionASTNodes:c})}case o.ENUM_TYPE_DEFINITION:{let t=[e,...c];return new tN({name:u,description:null==(i=e.description)?void 0:i.value,values:I(t),astNode:e,extensionASTNodes:c})}case o.UNION_TYPE_DEFINITION:{let t=[e,...c];return new tx({name:u,description:null==(a=e.description)?void 0:a.value,types:()=>_(t),astNode:e,extensionASTNodes:c})}case o.SCALAR_TYPE_DEFINITION:return new tf({name:u,description:null==(s=e.description)?void 0:s.value,specifiedByURL:ib(e),astNode:e,extensionASTNodes:c});case o.INPUT_OBJECT_TYPE_DEFINITION:{let t=[e,...c];return new tI({name:u,description:null==(l=e.description)?void 0:l.value,fields:()=>S(t),astNode:e,extensionASTNodes:c,isOneOf:!!nd(tX,e)})}}}(e)}let y={query:e.query&&b(e.query),mutation:e.mutation&&b(e.mutation),subscription:e.subscription&&b(e.subscription),...c&&T([c]),...T(h)};return{description:null==(n=c)||null==(i=n.description)?void 0:i.value,...y,types:Object.values(g),directives:[...e.directives.map(function(e){let t=e.toConfig();return new tH({...t,args:ed(t.args,w)})}),...f.map(function(e){var t;return new tH({name:e.name.value,description:null==(t=e.description)?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:C(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!=(a=c)?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(h),assumeValid:null!=(s=null==r?void 0:r.assumeValid)&&s};function v(e){return eJ(e)?new tt(v(e.ofType)):eZ(e)?new tr(v(e.ofType)):b(e)}function b(e){return g[e.name]}function E(e){return{...e,type:v(e.type),args:e.args&&ed(e.args,w)}}function w(e){return{...e,type:v(e.type)}}function T(e){let t={};for(let n of e){var r;for(let e of null!=(r=n.operationTypes)?r:[])t[e.operation]=x(e.type)}return t}function x(e){var t;let r=e.name.value,n=null!=(t=iy[r])?t:g[r];if(void 0===n)throw Error(`Unknown type: "${r}".`);return n}function O(e){return e.kind===o.LIST_TYPE?new tt(O(e.type)):e.kind===o.NON_NULL_TYPE?new tr(O(e.type)):x(e)}function N(e){let t=Object.create(null);for(let i of e){var r,n;for(let e of null!=(r=i.fields)?r:[])t[e.name.value]={type:O(e.type),description:null==(n=e.description)?void 0:n.value,args:C(e.arguments),deprecationReason:iv(e),astNode:e}}return t}function C(e){let t=Object.create(null);for(let n of null!=e?e:[]){var r;let e=O(n.type);t[n.name.value]={type:e,description:null==(r=n.description)?void 0:r.value,defaultValue:ns(n.defaultValue,e),deprecationReason:iv(n),astNode:n}}return t}function S(e){let t=Object.create(null);for(let i of e){var r,n;for(let e of null!=(r=i.fields)?r:[]){let r=O(e.type);t[e.name.value]={type:r,description:null==(n=e.description)?void 0:n.value,defaultValue:ns(e.defaultValue,r),deprecationReason:iv(e),astNode:e}}}return t}function I(e){let t=Object.create(null);for(let i of e){var r,n;for(let e of null!=(r=i.values)?r:[])t[e.name.value]={description:null==(n=e.description)?void 0:n.value,deprecationReason:iv(e),astNode:e}}return t}function A(e){return e.flatMap(e=>{var t,r;return null!=(t=null==(r=e.interfaces)?void 0:r.map(x))?t:[]})}function _(e){return e.flatMap(e=>{var t,r;return null!=(t=null==(r=e.types)?void 0:r.map(x))?t:[]})}}let iy=eu([...tV,...ro],e=>e.name);function iv(e){let t=nd(tY,e);return null==t?void 0:t.reason}function ib(e){let t=nd(tJ,e);return null==t?void 0:t.url}function iE(e,t){null!=e&&e.kind===o.DOCUMENT||p(!1,"Must provide valid Document AST."),(null==t?void 0:t.assumeValid)!==!0&&(null==t?void 0:t.assumeValidSDL)!==!0&&function(e){let t=nB(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}(e);let r=ig({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==r.astNode)for(let e of r.types)switch(e.name){case"Query":r.query=e;break;case"Mutation":r.mutation=e;break;case"Subscription":r.subscription=e}let n=[...r.directives,...tZ.filter(e=>r.directives.every(t=>t.name!==e.name))];return new ru({...r,directives:n})}function iw(e,t){return iE(Z(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function iT(e){var t,r,n;
258let i=e.toConfig(),o=ec(iO(i.types),e=>e.name,function(e){if(e$(e)||ra(e))return e;if(eV(e)){let t=e.toConfig();return new th({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(eG(e)){let t=e.toConfig();return new tT({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(ez(e)){let t=e.toConfig();return new tx({...t,types:()=>c(t.types)})}if(eK(e)){let t=e.toConfig();return new tN({...t,values:ix(t.values,e=>e)})}if(eQ(e)){let t=e.toConfig();return new tI({...t,fields:()=>ix(t.fields,e=>({...e,type:a(e.type)}))})}m(!1,"Unexpected type: "+Y(e))});return new ru({...i,types:Object.values(o),directives:iO(i.directives).map(function(e){let t=e.toConfig();return new tH({...t,locations:iN(t.locations,e=>e),args:l(t.args)})}),query:(t=i.query)&&s(t),mutation:(r=i.mutation)&&s(r),subscription:(n=i.subscription)&&s(n)});function a(e){return eJ(e)?new tt(a(e.ofType)):eZ(e)?new tr(a(e.ofType)):s(e)}function s(e){return o[e.name]}function l(e){return ix(e,e=>({...e,type:a(e.type)}))}function u(e){return ix(e,e=>({...e,type:a(e.type),args:e.args&&l(e.args)}))}function c(e){return iO(e).map(s)}}function ix(e,t){let r=Object.create(null);for(let n of Object.keys(e).sort(ep))r[n]=t(e[n]);return r}function iO(e){return iN(e,e=>e.name)}function iN(e,t){return e.slice().sort((e,r)=>ep(t(e),t(r)))}function iC(e){return iA(e,e=>!t0(e),iI)}function iS(e){return iA(e,t0,ra)}function iI(e){return!tB(e)&&!ra(e)}function iA(e,t,r){let n=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(r);return[function(e){if(null==e.description&&function(e){let t=e.getQueryType();if(t&&"Query"!==t.name)return!1;let r=e.getMutationType();if(r&&"Mutation"!==r.name)return!1;let n=e.getSubscriptionType();return!n||"Subscription"===n.name}(e))return;let t=[],r=e.getQueryType();r&&t.push(` query: ${r.name}`);let n=e.getMutationType();n&&t.push(` mutation: ${n.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),iF(e)+`schema { 259${t.join("\n")} 260}`}(e),...n.map(e=>{var t;return iF(t=e)+"directive @"+t.name+ij(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}),...i.map(e=>i_(e))].filter(Boolean).join("\n\n")}function i_(e){var t,r,n;return e$(e)?iF(t=e)+`scalar ${t.name}`+function(e){if(null==e.specifiedByURL)return"";let t=eS({kind:o.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}(t):eV(e)?iF(r=e)+`type ${r.name}`+iR(r)+iD(r):eG(e)?iF(n=e)+`interface ${n.name}`+iR(n)+iD(n):ez(e)?function(e){let t=e.getTypes(),r=t.length?" = "+t.join(" | "):"";return iF(e)+"union "+e.name+r}(e):eK(e)?function(e){let t=e.getValues().map((e,t)=>iF(e," ",!t)+" "+e.name+iP(e.deprecationReason));return iF(e)+`enum ${e.name}`+ik(t)}(e):eQ(e)?function(e){let t=Object.values(e.getFields()).map((e,t)=>iF(e," ",!t)+" "+iL(e));return iF(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+ik(t)}(e):void m(!1,"Unexpected type: "+Y(e))}function iR(e){let t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function iD(e){return ik(Object.values(e.getFields()).map((e,t)=>iF(e," ",!t)+" "+e.name+ij(e.args," ")+": "+String(e.type)+iP(e.deprecationReason)))}function ik(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function ij(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(iL).join(", ")+")":"(\n"+e.map((e,r)=>iF(e," "+t,!r)+" "+t+iL(e)).join("\n")+"\n"+t+")"}function iL(e){let t=t2(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=` = ${eS(t)}`),r+iP(e.deprecationReason)}function iP(e){if(null==e)return"";if(e!==tQ){let t=eS({kind:o.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function iF(e,t="",r=!0){let{description:n}=e;return null==n?"":(t&&!r?"\n"+t:t)+eS({kind:o.STRING,value:n,block:function(e){if(""===e)return!0;let t=!0,r=!1,n=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,r=!1;break;case 9:case 32:r||(r=t);break;default:n&&(n=r),t=!1}return!t&&(!n||!i)}(n)}).replace(/\n/g,"\n"+t)+"\n"}function iM(e){let t=[];for(let r of e)t.push(...r.definitions);return{kind:o.DOCUMENT,definitions:t}}function i$(e){let t=[],r=Object.create(null);for(let n of e.definitions)switch(n.kind){case o.OPERATION_DEFINITION:t.push(n);break;case o.FRAGMENT_DEFINITION:r[n.name.value]=iU(n.selectionSet)}let n=Object.create(null);for(let i of t){let t=new Set;for(let e of iU(i.selectionSet))!function e(t,r,n){if(!t.has(n)){t.add(n);let i=r[n];if(void 0!==i)for(let n of i)e(t,r,n)}}(t,r,e);n[i.name?i.name.value:""]={kind:o.DOCUMENT,definitions:e.definitions.filter(e=>e===i||e.kind===o.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return n}function iU(e){let t=[];return ex(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function iV(e){let t=J(e,X)?e:new X(e),r=t.body,n=new F(t),i="",o=!1;for(;n.advance().kind!==a.EOF;){let e=n.token,t=e.kind,s=!M(e.kind);o&&(s||e.kind===a.SPREAD)&&(i+=" ");let l=r.slice(e.start,e.end);t===a.BLOCK_STRING?i+=P(e.value,{minimize:!0}):i+=l,o=s}return i}function iB(e){let t=iG(e);if(t)throw t;return e}function iG(e){if("string"==typeof e||p(!1,"Expected name to be a string."),e.startsWith("__"))return new w(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{eL(e)}catch(e){return e}}function iq(e,t){return iH(e,t).filter(e=>e.type in l)}function iz(e,t){return iH(e,t).filter(e=>e.type in u)}function iH(e,t){return[...function(e,t){let r=[],n=iY(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let e of n.removed)r.push({type:l.TYPE_REMOVED,description:tB(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(let[e,t]of n.persisted)eK(e)&&eK(t)?r.push(...function(e,t){let r=[],n=iY(e.getValues(),t.getValues());for(let t of n.added)r.push({type:u.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(let t of n.removed)r.push({type:l.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return r}(e,t)):ez(e)&&ez(t)?r.push(...function(e,t){let r=[],n=iY(e.getTypes(),t.getTypes());for(let t of n.added)r.push({type:u.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(let t of n.removed)r.push({type:l.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return r}(e,t)):eQ(e)&&eQ(t)?r.push(...function(e,t){let r=[],n=iY(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of n.added)t_(t)?r.push({type:l.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):r.push({type:u.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(let t of n.removed)r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of n.persisted)iK(t.type,i.type)||r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return r}(e,t)):eV(e)&&eV(t)||eG(e)&&eG(t)?r.push(...function(e,t){let r=[],n=iY(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of n.removed)r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of n.persisted)r.push(...function(e,t,r){let n=[],i=iY(t.args,r.args);for(let r of i.removed)n.push({type:l.ARG_REMOVED,description:`${e.name}.${t.name} arg ${r.name} was removed.`});for(let[r,o]of i.persisted)if(iK(r.type,o.type)){if(void 0!==r.defaultValue)if(void 0===o.defaultValue)n.push({type:u.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} defaultValue was removed.`});else{let i=iQ(r.defaultValue,r.type),a=iQ(o.defaultValue,o.type);i!==a&&n.push({type:u.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} has changed defaultValue from ${i} to ${a}.`})}}else n.push({type:l.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${r.name} has changed type from ${String(r.type)} to ${String(o.type)}.`});for(let r of i.added)tw(r)?n.push({type:l.REQUIRED_ARG_ADDED,description:`A required arg ${r.name} on ${e.name}.${t.name} was added.`}):n.push({type:u.OPTIONAL_ARG_ADDED,description:`An optional arg ${r.name} on ${e.name}.${t.name} was added.`});return n}(e,t,i)),!function e(t,r){return eJ(t)?eJ(r)&&e(t.ofType,r.ofType)||eZ(r)&&e(t,r.ofType):eZ(t)?eZ(r)&&e(t.ofType,r.ofType):tl(r)&&t.name===r.name||eZ(r)&&e(t,r.ofType)}(t.type,i.type)&&r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return r}(e,t),...function(e,t){let r=[],n=iY(e.getInterfaces(),t.getInterfaces());
260for(let t of n.added)r.push({type:u.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(let t of n.removed)r.push({type:l.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return r}(e,t)):e.constructor!==t.constructor&&r.push({type:l.TYPE_CHANGED_KIND,description:`${e.name} changed from ${iW(e)} to ${iW(t)}.`});return r}(e,t),...function(e,t){let r=[],n=iY(e.getDirectives(),t.getDirectives());for(let e of n.removed)r.push({type:l.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(let[e,t]of n.persisted){let n=iY(e.args,t.args);for(let t of n.added)tw(t)&&r.push({type:l.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(let t of n.removed)r.push({type:l.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});for(let n of(e.isRepeatable&&!t.isRepeatable&&r.push({type:l.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`}),e.locations))t.locations.includes(n)||r.push({type:l.DIRECTIVE_LOCATION_REMOVED,description:`${n} was removed from ${e.name}.`})}return r}(e,t)]}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(l||(l={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(u||(u={}));function iK(e,t){return eJ(e)?eJ(t)&&iK(e.ofType,t.ofType):eZ(e)?eZ(t)&&iK(e.ofType,t.ofType)||!eZ(t)&&iK(e.ofType,t):tl(t)&&e.name===t.name}function iW(e){return e$(e)?"a Scalar type":eV(e)?"an Object type":eG(e)?"an Interface type":ez(e)?"a Union type":eK(e)?"an Enum type":eQ(e)?"an Input type":void m(!1,"Unexpected type: "+Y(e))}function iQ(e,t){let r=t2(e,t);return null!=r||m(!1),eS(rQ(r))}function iY(e,t){let r=[],n=[],i=[],o=eu(e,({name:e})=>e),a=eu(t,({name:e})=>e);for(let t of e){let e=a[t.name];void 0===e?n.push(t):i.push([t,e])}for(let e of t)void 0===o[e.name]&&r.push(e);return{added:r,persisted:i,removed:n}}function iJ(e,t){return iX(e,en(t))}function iX(e,t){switch(t.kind){case o.TYPE_COORDINATE:let r=t.name.value,n=e.getType(r);if(null!=n)return{kind:"NamedType",type:n};return;case o.MEMBER_COORDINATE:return function(e,t){let r=t.name.value,n=e.getType(r);if(!n)throw Error(`Expected ${Y(r)} to be defined as a type in the schema.`);if(!eK(n)&&!eQ(n)&&!eV(n)&&!eG(n))throw Error(`Expected ${Y(r)} to be an Enum, Input Object, Object or Interface type.`);if(eK(n)){let e=t.memberName.value,r=n.getValue(e);if(null==r)return;return{kind:"EnumValue",type:n,enumValue:r}}if(eQ(n)){let e=t.memberName.value,r=n.getFields()[e];if(null==r)return;return{kind:"InputField",type:n,inputField:r}}let i=t.memberName.value,o=n.getFields()[i];if(null!=o)return{kind:"Field",type:n,field:o}}(e,t);case o.ARGUMENT_COORDINATE:return function(e,t){let r=t.name.value,n=e.getType(r);if(null==n)throw Error(`Expected ${Y(r)} to be defined as a type in the schema.`);if(!eV(n)&&!eG(n))throw Error(`Expected ${Y(r)} to be an object type or interface type.`);let i=t.fieldName.value,o=n.getFields()[i];if(null==o)throw Error(`Expected ${Y(i)} to exist as a field of type ${Y(r)} in the schema.`);let a=t.argumentName.value,s=o.args.find(e=>e.name===a);if(null!=s)return{kind:"FieldArgument",type:n,field:o,fieldArgument:s}}(e,t);case o.DIRECTIVE_COORDINATE:let i=t.name.value,a=e.getDirective(i);if(a)return{kind:"Directive",directive:a};return;case o.DIRECTIVE_ARGUMENT_COORDINATE:let s=t.name.value,l=e.getDirective(s);if(!l)throw Error(`Expected ${Y(s)} to be defined as a directive in the schema.`);let{argumentName:{value:u}}=t,c=l.args.find(e=>e.name===u);if(c)return{kind:"DirectiveArgument",directive:l,directiveArgument:c};return}}},4373:(e,t)=>{"use strict";var r,n=Object.prototype.hasOwnProperty;function i(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){var i,a,s=[];for(a in"string"!=typeof(t=t||"")&&(t="?"),e)if(n.call(e,a)){if(!(i=e[a])&&(null===i||i===r||isNaN(i))&&(i=""),a=o(a),i=o(i),null===a||null===i)continue;s.push(a+"="+i)}return s.length?t+s.join("&"):""},t.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=i(t[1]),a=i(t[2]);null===o||null===a||o in n||(n[o]=a)}return n}},4782:(e,t)=>{"use strict";var r,n,i;
260Object.defineProperty(t,"__esModule",{value:!0}),t.EDITING_COMPONENT_ID=t.EDITING_COMPONENT_PLACEHOLDER=t.RenderingType=t.EditMode=t.LayoutServicePageState=void 0,function(e){e.Preview="preview",e.Edit="edit",e.Normal="normal"}(r||(t.LayoutServicePageState=r={})),function(e){e.Chromes="chromes",e.Metadata="metadata"}(n||(t.EditMode=n={})),(i||(t.RenderingType=i={})).Component="component",t.EDITING_COMPONENT_PLACEHOLDER="editing-componentmode-placeholder",t.EDITING_COMPONENT_ID="editing-component"},4851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),r(2434);let n=r(7876),i=r(5720),o=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var r,l;let u,c,d,{src:p,sizes:f,unoptimized:h=!1,priority:m=!1,loading:g,className:y,quality:v,width:b,height:E,fill:w=!1,style:T,overrideSrc:x,onLoad:O,onLoadingComplete:N,placeholder:C="empty",blurDataURL:S,fetchPriority:I,decoding:A="async",layout:_,objectFit:R,objectPosition:D,lazyBoundary:k,lazyRoot:j,...L}=e,{imgConf:P,showAltText:F,blurComplete:M,defaultLoader:$}=t,U=P||i.imageConfigDefault;if("allSizes"in U)u=U;else{let e=[...U.deviceSizes,...U.imageSizes].sort((e,t)=>e-t),t=U.deviceSizes.sort((e,t)=>e-t),n=null==(r=U.qualities)?void 0:r.sort((e,t)=>e-t);u={...U,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===$)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let V=L.loader||$;delete L.loader,delete L.srcSet;let B="__next_img_default"in V;if(B){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+p+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=V;V=t=>{let{config:r,...n}=t;return e(n)}}if(_){"fill"===_&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(T={...T,...e});let t={responsive:"100vw",fill:"100vw"}[_];t&&!f&&(f=t)}let G="",q=s(b),z=s(E);if((l=p)&&"object"==typeof l&&(a(l)||void 0!==l.src)){let e=a(p)?p.default:p;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(c=e.blurWidth,d=e.blurHeight,S=S||e.blurDataURL,G=e.src,!w)if(q||z){if(q&&!z){let t=q/e.width;z=Math.round(e.height*t)}else if(!q&&z){let t=z/e.height;q=Math.round(e.width*t)}}else q=e.width,z=e.height}let H=!m&&("lazy"===g||void 0===g);(!(p="string"==typeof p?p:G)||p.startsWith("data:")||p.startsWith("blob:"))&&(h=!0,H=!1),u.unoptimized&&(h=!0),B&&!u.dangerouslyAllowSVG&&p.split("?",1)[0].endsWith(".svg")&&(h=!0);let K=s(v),W=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:D}:{},F?{}:{color:"transparent"},T),Q=M||"empty"===C?null:"blur"===C?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:q,heightInt:z,blurWidth:c,blurHeight:d,blurDataURL:S||"",objectFit:W.objectFit})+'")':'url("'+C+'")',Y=o.includes(W.objectFit)?"fill"===W.objectFit?"100% 100%":"cover":W.objectFit,J=Q?{backgroundSize:Y,backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Q}:{},X=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,n)=>s({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:s({config:t,src:r,quality:o,width:l[c]})}}({config:u,src:p,unoptimized:h,width:q,quality:K,sizes:f,loader:V});return{props:{...L,loading:H?"lazy":g,fetchPriority:I,width:q,height:z,decoding:A,className:y,style:{...W,...J},sizes:X.sizes,srcSet:X.srcSet,src:x||X.src},meta:{unoptimized:h,priority:m,placeholder:C,fill:w}}}},4976:(e,t)=>{"use strict";
260Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutServiceBase=void 0;class r{}t.LayoutServiceBase=r},5037:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RestLayoutService=void 0;let o=r(4976),a=r(5228),s=r(9907),l=i(r(8572));class u extends o.LayoutServiceBase{constructor(e){super(),this.serviceConfig=e,this.getFetchParams=e=>{var t;return{sc_apikey:this.serviceConfig.apiKey,sc_site:this.serviceConfig.siteName,sc_lang:e||"",tracking:null==(t=this.serviceConfig.tracking)||t}},this.getFetcher=(e,t)=>this.serviceConfig.dataFetcherResolver?this.serviceConfig.dataFetcherResolver(e,t):this.getDefaultFetcher(e,t),this.getDefaultFetcher=(e,t)=>{let r,i={debugger:l.default.layout};e&&(r=this.setupReqHeaders(e));let o=new a.NativeDataFetcher(i);return(e,i)=>n(this,void 0,void 0,function*(){let n=yield o.fetch(e,Object.assign(Object.assign({},i),{headers:r}));return t&&this.setupResHeaders(t,n),n})}}fetchLayoutData(e,t,r,i){return n(this,void 0,void 0,function*(){var n;let o=this.getFetchParams(t);l.default.layout("fetching layout data for %s %s %s",e,t,this.serviceConfig.siteName);let a=this.getFetcher(r,i),u=this.resolveLayoutServiceUrl("render");try{return yield(0,s.fetchData)(u,a,Object.assign({item:e},o))}catch(e){if((null==(n=e.response)?void 0:n.status)===404)return e.response.data;throw e}})}fetchPlaceholderData(e,t,r,n,i){let o=this.getFetchParams(r);l.default.layout("fetching placeholder data for %s %s %s %s",e,t,r,this.serviceConfig.siteName);let a=this.serviceConfig.dataFetcherResolver?this.serviceConfig.dataFetcherResolver(n,i):this.getDefaultFetcher(n,i),u=this.resolveLayoutServiceUrl("placeholder");return(0,s.fetchData)(u,a,Object.assign({placeholderName:e,item:t},o))}resolveLayoutServiceUrl(e){let{apiHost:t="",configurationName:r="jss"}=this.serviceConfig;return`${t}/sitecore/api/layout/${e}/${r}`}setupReqHeaders(e){let t=new Headers;return(null==e?void 0:e.headers)&&(Object.entries(e.headers).forEach(([e,r])=>{r&&t.set(e,Array.isArray(r)?r.join(", "):r)}),e.headers.cookie&&t.set("cookie",e.headers.cookie),e.headers.referer&&t.set("referer",e.headers.referer),e.headers["user-agent"]&&t.set("user-agent",e.headers["user-agent"]),e.socket.remoteAddress&&t.set("X-Forwarded-For",e.socket.remoteAddress)),t}setupResHeaders(e,t){l.default.layout("performing response header passing");let r=t.headers;if(r instanceof Headers&&r.has("set-cookie")){let t=r.get("set-cookie");if(t){let r=t.includes(", ")&&t.includes(";")?t.split(/,(?=\s*\w+=)/):[t];e.setHeader("Set-Cookie",r)}}return t}}t.RestLayoutService=u},5133:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var n=r(5729);r(6760);var i=r(7628),o=r(6029),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,i.TL)(`Primitive.${t}`),a=n.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?r:t,{...a,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),s=n.forwardRef((e,t)=>{let{ratio:r=1,style:n,...i}=e;return(0,o.jsx)("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/r}%`},"data-radix-aspect-ratio-wrapper":"",children:(0,o.jsx)(a.div,{...i,ref:t,style:{...n,position:"absolute",top:0,right:0,bottom:0,left:0}})})});s.displayName="AspectRatio";var l=s},5210:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e*=1))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},5228:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}
260,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NativeDataFetcher=void 0;let a=o(r(8572)),s=o(r(7506));class l{constructor(e={}){this.config=e}fetch(e){return n(this,arguments,void 0,function*(e,t={}){var r;let n=this.config,{debugger:o,fetch:l}=n,u=i(n,["debugger","fetch"]),c=Date.now(),d=l||fetch,p=o||a.default.http,f=this.getRequestInit(Object.assign(Object.assign({},u),t)),h=[d(e,f)];u.timeout&&(this.abortTimeout=new s.default(u.timeout),h.push(this.abortTimeout.start)),p("Request initiated: %o",Object.assign({url:e,headers:this.extractDebugHeaders(f.headers)},f));try{let e=yield Promise.race(h).then(e=>{var t;return null==(t=this.abortTimeout)||t.clear(),e}),t=yield this.parseResponse(e,p);if(!e.ok){let r=this.createError(e,t);throw p("Response error: %o",r.response),r}return p("Response in %dms: %o",Date.now()-c,{status:e.status,statusText:e.statusText,headers:this.extractDebugHeaders(e.headers),url:e.url,data:t}),{data:t,status:e.status,statusText:e.statusText,headers:e.headers}}catch(e){throw null==(r=this.abortTimeout)||r.clear(),p("Request failed: %o",e),e}})}get(e){return n(this,arguments,void 0,function*(e,t={}){return this.fetch(e,Object.assign({method:"GET"},t))})}post(e,t){return n(this,arguments,void 0,function*(e,t,r={}){return this.fetch(e,Object.assign({method:"POST",body:JSON.stringify(t)},r))})}delete(e){return n(this,arguments,void 0,function*(e,t={}){return this.fetch(e,Object.assign({method:"DELETE"},t))})}put(e,t){return n(this,arguments,void 0,function*(e,t,r={}){return this.fetch(e,Object.assign({method:"PUT",body:JSON.stringify(t)},r))})}head(e,t={}){return this.fetch(e,Object.assign({method:"HEAD"},t))}getRequestInit(e={}){let t=new Headers(e.headers);return e.method||(e.method=e.body?"POST":"GET"),e.headers=t,e}extractDebugHeaders(e={}){let t={};return"string"!=typeof(null==e?void 0:e.forEach)&&e.forEach&&(null==e||e.forEach((e,r)=>{t[r]=e})),t}parseResponse(e,t){return n(this,void 0,void 0,function*(){let r=e.headers.get("Content-Type")||"";try{if(r.includes("application/json"))return yield e.json();return yield e.text()}catch(e){t("Response parsing error: %o",e);return}})}createError(e,t){return Object.assign(Object.assign({},Error(`HTTP ${e.status} ${e.statusText}`)),{response:{status:e.status,statusText:e.statusText,headers:this.extractDebugHeaders(e.headers),data:t}})}}t.NativeDataFetcher=l},5269:(e,t,r)=>{"use strict";function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{mK:()=>n}),"undefined"!=typeof window&&window.document&&window.document.createElement},5360:(e,t,r)=>{"use strict";r.d(t,{A:()=>Y});var n=r(3650),i=r(4997),o=r(9988),a=r(1696);let s=async(e,t,{index:r,items:i,...s})=>e?await (0,a.rd)(e,t,{actionCause:"entity",index:r,request:(0,o.d9)(s),items:i}):void n.Vy.warn("trackEvent :::","Widget's rfkId mandatory field is empty"),l=async(e,t,{index:r,filters:i,...s})=>e?i&&!(0,o.KJ)(i)?void n.Vy.warn("trackEvent :::","Filter's name is not defined"):await (0,a.Pr)(e,t,{index:r,request:(0,o.d9)(s),filters:(0,o.VD)(i)}):void n.Vy.warn("trackEvent :::","Widget's rfkId mandatory field is empty");var u=r(2144),c=r(7989),d=r(9478),p=r(2732),f=r(7921),h=r(765),m=r(1599),g=r(4625),y=r(2419);class v{static buildItem(e,t){let{facetId:r,facetValueId:n,type:i,facetValueText:o}=t;if("text"===i){if(o)return{type:"eq",value:o};let{facet:t=[]}=e.getLastResponse()||{},{value:i=[]}=t.find(({name:e})=>e===r)||{};return{type:"eq",value:i.find(({id:e})=>e===n)?.text||""}}return n}}class b{getCurrentFacetInfo(e,t){let{facetId:r}=t,{facet:n=[]}=e.getLastResponse()||{},{value:i=[],label:o=""}=n.find(({name:e})=>e===r)||{};return{facetValues:i,facetTitle:o}}}class E extends b{process(e,t,r){let{facetId:n,facetValueId:i,facetIndex:o,facetValueIndex:a,silentTracking:s,checked:u}=r,{facetValues:c,facetTitle:d}=this.getCurrentFacetInfo(t,r),p=c.find(({id:e})=>e===i)?.text||"";s||l(e,t.getRequest().getEntity(),{filters:[{facetId:n,facetValueId:i,facetValue:p,valueIndex:a,facetIndex:o,facetTitle:d}],...(0,y.l)(t)}
260),t.getRequest().setSearchOffset(0),u?t.getRequest().addSearchFacetTypeFilter(n,v.buildItem(t,r)):t.getRequest().removeSearchFacetTypeFilter(n,v.buildItem(t,r))}}class w extends b{process(e,t,r){let{facetId:n,min:i,max:o,facetIndex:a,silentTracking:s}=r;if(t.getRequest().resetSearchFacetTypeFilter(n),void 0!==i||void 0!==o){t.getRequest().addSearchFacetTypeFilter(n,{value:i,type:"gte"},"and"),t.getRequest().addSearchFacetTypeFilter(n,{value:o,type:"lte"},"and");let{facetTitle:u}=this.getCurrentFacetInfo(t,r);s||l(e,t.getRequest().getEntity(),{filters:[{facetId:n,...void 0!==i?{startValue:i.toString()}:{},...void 0!==o?{endValue:o.toString()}:{},facetValue:`${i} - ${o}`,valueIndex:0,facetIndex:a,facetTitle:u}]})}}}let T=new E,x={range:new w,valueId:T,text:T},O=function(e,t){let{type:r,rfkId:i}=t,o=x[r];o?o.process(i,e,t):n.Vy.warn(`${r} has not a valid action handler`)};class N{}let C=N;class S extends C{process(e,t){let{facetId:r}=t;e.getRequest().removeSearchFacetTypeFilter(r,v.buildItem(e,t))}}class I extends C{process(e,t){let{facetId:r}=t;e.getRequest().resetSearchFacetTypeFilter(r)}}let A=new S,_={range:new I,valueId:A,text:A},R=function(e,t){let{type:r}=t,i=_[r];i?i.process(e,t):n.Vy.warn(`${r} has not a valid action handler`)};function D(e,t){return e?.facet?.find(({name:e})=>e===t)}function k(e,t,r){let n=D(e,t);if(n)return n.value.find(({id:e})=>r===e)}let j=(e,t)=>"facetValueId"in t&&e.id===t.facetValueId||"facetValueText"in t&&e.text===t.facetValueText;function L(e,t,r){return e.findIndex(e=>r&&e.facetId===t&&e.facetValueId===r)}class P{run(e,t){if("min"in t||"max"in t){let{min:r,max:n,facetId:i}=t;return e.getRequest().addSearchFacetTypeFilter(i,{value:r,type:"gte"},"and").addSearchFacetTypeFilter(i,{value:n,type:"lte"},"and"),!0}return n.Vy.error("Type range expected properties min or max to be present on the initial state for selected facets. Since none of them has been provided, initializer will not run."),!1}}class F{run(e,t){if("facetValueId"in t){let{facetId:r,facetValueId:n}=t;return e.getRequest().addSearchFacetTypeFilter(r,n),!0}return n.Vy.error("Type valueId expected property facetValueId to be present on the initial state for selected facets. Since it has not been provided, initializer will not run."),!1}}class M{run(e,t){if("facetValueText"in t){let{facetId:r,facetValueText:n}=t;return e.getRequest().addSearchFacetTypeFilter(r,{value:n,type:"eq"}),!0}return n.Vy.error("Type text expected property facetValueText to be present on the initial state for selected facets. Since it has not been provided, initializer will not run."),!1}}let $={range:new P,valueId:new F,text:new M};class U{process(e,t,r){let{facetId:n,min:i,max:o}=r,a=e.findIndex(e=>e.facetId===n),s=[...e],l=D(t,n);return a>-1?s[a]={...s[a],min:i,max:o,facetLabel:l?l.label:s[a].facetLabel}:s.push({min:i,max:o,facetId:n,facetLabel:l?l.label:""}),s}}class V{process(e,t,r){let{facetId:n,facetValueId:i,checked:o}=r,a=this.findPreviousValueIndex(e,n,i,t);if(!o&&a>-1)return e.filter((e,t)=>t!==a);let s=[...e],l=D(t,n),u=k(t,n,i);return o&&-1===a&&s.push(this.buildNewItem(l,u,n,i)),s}}class B extends V{findPreviousValueIndex(e,t,r,n){if(void 0!==r){let i=k(n,t,r);if(i)return e.findIndex(e=>e.facetId===t&&e.facetValueText===i.text)}return -1}buildNewItem(e,t,r,n){return{facetId:r,facetValueId:n,facetValueText:t?.text,facetLabel:e?e.label:"",valueLabel:t?t.text:""}}}class G extends V{buildNewItem(e,t,r,n){return{facetId:r,facetValueId:n,facetLabel:e?e.label:"",valueLabel:t?t.text:""}}findPreviousValueIndex(e,t,r){return L(e,t,r)}}let q={range:new U,valueId:new G,text:new B};class z{process(e,t){return e.filter(e=>e.facetId!==t.facetId)}}class H{process(e,t){let r=L(e,t.facetId,t.facetValueId);return e.filter((e,t)=>t!==r)}}class K{process(e,t,r){let{facetId:n,facetValueText:i}=t,o=e.findIndex(e=>e.facetId===n&&e.facetValueText===i);return e.filter((e,t)=>t!==o)}}let W={valueId:new H,range:new z,text:new K},Q=(e,t)=>{switch(t.type){case i.A.WIDGET_DATA_REQUEST_SUCCESS:return(e=>{let{selectedFacets:t=[],response:r}=e;return t.some(e=>{if(!e.facetLabel)return!0;let t=D(r,e.facetId),n=t?.value?.find(t=>j(t,e));return!!(n&&n.text&&!e.valueLabel)})?{...e,selectedFacets:t.map(e=>{let t=D(r,e.facetId);return t?((e,t)=>{let r=t.value.find(t=>j(t,e));return{...e,facetValueId:r?r.id:e.facetValueId,facetLabel:t.label||e.facetLabel,valueLabel:r?r.text:e.valueLabel}}
260)(e,t):e})}:e})(e);case u.E.FILTER_CLICKED:case u.E.REMOVE_FILTER:return((e,t)=>{let{selectedFacets:r=[],response:i}=e,{type:o}=t,a=W[o];return a?{...e,page:1,selectedFacets:a.process(r,t,i)}:(n.Vy.warn(`${o} has not a valid reducer for REMOVE_FILTER action. No reduce transformation applied.`),{...e,page:1})})(e,t.payload);case u.E.FACET_CLICKED:return((e,t)=>{let{selectedFacets:r=[],response:i}=e,{type:o}=t,a=q[o];return a?{...e,page:1,selectedFacets:a.process(r,i,t)}:(n.Vy.warn(`${o} has not a valid action reducer. No reduce transformation applied.`),{...e,selectedFacets:r})})(e,t.payload);case u.E.SORT_CHANGED:return{...e,page:1,sortType:t.payload.name};case u.E.PAGE_NUMBER_CHANGED:return{...e,page:t.payload.page};case u.E.RESULTS_PER_PAGE_CHANGED:return{...e,page:1,itemsPerPage:t.payload.numItems};case u.E.KEYPHRASE_CHANGED:return{...e,page:1,keyphrase:t.payload.keyphrase,selectedFacets:[]};case u.E.CLEAR_FILTERS:return{...e,page:1,selectedFacets:[]};default:return e}},Y=function(e){let{rfkId:t,dispatch:r}=(0,c.A)(),i=(0,p.A)();if(!i.isInitialized()){i.initialize(e||{});let{query:t,state:{selectedFacets:r=[]},config:o={}}=i;r.forEach(e=>{let r=function(e,t){let{facets:r={}}=e,{type:n}=r[t]||{};return n||e.defaultFacetType||"valueId"}(o,e.facetId),i=$[r];if(!i)return n.Vy.warn(`Facet type ${r} is not supported.`);i.run(t,e)})}let{query:o,options:a,actions:l}=i,v=(0,g.A)(),b=(0,d.A)(o),E=(0,m.A)();return(0,h.A)(Q,[]),(0,f.A)(e=>{switch(e.type){case u.E.FACET_CLICKED:O(o,e.payload);break;case u.E.FILTER_CLICKED:case u.E.REMOVE_FILTER:R(o,e.payload);break;case u.E.ITEM_CLICKED:{let{index:r,id:n,entity:i,sourceId:a}=e.payload;s(t,i,{index:r,items:[{id:n,sourceId:a}],...(0,y.l)(o)});break}case u.E.SORT_CHANGED:o.getRequest().resetSearchSortCriteria().setSearchSortCriteriaName(e.payload.name).setSearchOffset(0);break;case u.E.PAGE_NUMBER_CHANGED:{let r=o.getRequest().getSearchLimit()??o.getLastResponse()?.limit;void 0===r?n.Vy.warn(`Widget "${t}" has triggered a onPageNumberChanged action and there is no itemsPerPage state or query search limit defined`):o.getRequest().setSearchOffset(r*(e.payload.page-1));break}case u.E.RESULTS_PER_PAGE_CHANGED:o.getRequest().setSearchLimit(e.payload.numItems).setSearchOffset(0);break;case u.E.KEYPHRASE_CHANGED:o.getRequest().resetSearchFacetTypeFilters().setSearchOffset(0),e.payload.keyphrase?o.getRequest().setSearchQueryKeyphrase(e.payload.keyphrase):o.getRequest().resetSearchQueryKeyphrase();break;case u.E.CLEAR_FILTERS:o.getRequest().resetSearchFacetTypeFilters().setSearchOffset(0)}},[t,o]),{widgetRef:E,rfkId:t,state:v,queryResult:b,actions:l,options:a,dispatch:r,query:o}}},5401:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});var n=r(5729);function i(){let e=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{e.current=!1},[]),e.current}},5419:(e,t,r)=>{"use strict";r.d(t,{$:()=>i});let n=(e,t)=>Array.from({length:t-e+1},(t,r)=>e+r);function i(e,t){let{currentPage:r,totalPages:i}=e,{boundaryCount:o=1,siblingCount:a=1}=t,s=n(1,Math.min(o,i)),l=n(Math.max(i-o+1,o+1),i),u=Math.max(Math.min(r-a,i-o-2*a-1),o+2),c=Math.min(Math.max(r+a,o+2*a+2),l.length>0?l[0]-2:i-1);return[...s,...u>o+2?["start-ellipsis"]:o+1<i-o?[o+1]:[],...n(u,c),...c<i-o-1?["end-ellipsis"]:i-o>o?[i-o]:[],...l].map(e=>"number"==typeof e?{type:"page",page:e}:{type:e})}},5575:(e,t,r)=>{var n=1/0,i=/&(?:amp|lt|gt|quot|#39|#96);/g,o=RegExp(i.source),a="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,s="object"==typeof self&&self&&self.Object===Object&&self,l=a||s||Function("return this")(),u=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"}),c=Object.prototype.toString,d=l.Symbol,p=d?d.prototype:void 0,f=p?p.toString:void 0;e.exports=function(e){var t;return(e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||!!e&&"object"==typeof e&&"[object Symbol]"==c.call(e)}(e))return f?f.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}(t))&&o.test(e)?e.replace(i,u):e}},5669:(e,t,r)=>{e.exports=r(3276)},5704:(e,t,r)=>{"use strict";
260r.d(t,{B8:()=>ep,LM:()=>eg,UC:()=>em,bL:()=>ed,l9:()=>eh,q7:()=>ef});var n=r(5729),i=r(6760),o=r(9829),a=r(5269),s=r(7454),l=r(6697),u=r(41),c=r(1979),d=r(8749),p=r(7913),f=r(2139),h=r(7555),m=r(8719),g=r(5896),y=r(9613),v=r(748),b=r(6029),E="NavigationMenu",[w,T,x]=(0,f.N)(E),[O,N,C]=(0,f.N)(E),[S,I]=(0,o.A)(E,[x,C]),[A,_]=S(E),[R,D]=S(E),k=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,onValueChange:o,defaultValue:a,delayDuration:d=200,skipDelayDuration:p=300,orientation:f="horizontal",dir:h,...m}=e,[g,y]=n.useState(null),v=(0,u.s)(t,e=>y(e)),w=(0,c.jH)(h),T=n.useRef(0),x=n.useRef(0),O=n.useRef(0),[N,C]=n.useState(!0),[S,I]=(0,l.i)({prop:i,onChange:e=>{let t=p>0;""!==e?(window.clearTimeout(O.current),t&&C(!1)):(window.clearTimeout(O.current),O.current=window.setTimeout(()=>C(!0),p)),o?.(e)},defaultProp:a??"",caller:E}),A=n.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>I(""),150)},[I]),_=n.useCallback(e=>{window.clearTimeout(x.current),I(e)},[I]),R=n.useCallback(e=>{S===e?window.clearTimeout(x.current):T.current=window.setTimeout(()=>{window.clearTimeout(x.current),I(e)},d)},[S,I,d]);return n.useEffect(()=>()=>{window.clearTimeout(T.current),window.clearTimeout(x.current),window.clearTimeout(O.current)},[]),(0,b.jsx)(L,{scope:r,isRootMenu:!0,value:S,dir:w,orientation:f,rootNavigationMenu:g,onTriggerEnter:e=>{window.clearTimeout(T.current),N?R(e):_(e)},onTriggerLeave:()=>{window.clearTimeout(T.current),A()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:A,onItemSelect:e=>{I(t=>t===e?"":e)},onItemDismiss:()=>I(""),children:(0,b.jsx)(s.sG.nav,{"aria-label":"Main","data-orientation":f,dir:w,...m,ref:v})})});k.displayName=E;var j="NavigationMenuSub";n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:n,onValueChange:i,defaultValue:o,orientation:a="horizontal",...u}=e,c=_(j,r),[d,p]=(0,l.i)({prop:n,onChange:i,defaultProp:o??"",caller:j});return(0,b.jsx)(L,{scope:r,isRootMenu:!1,value:d,dir:c.dir,orientation:a,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>p(e),onItemSelect:e=>p(e),onItemDismiss:()=>p(""),children:(0,b.jsx)(s.sG.div,{"data-orientation":a,...u,ref:t})})}).displayName=j;var L=e=>{let{scope:t,isRootMenu:r,rootNavigationMenu:i,dir:o,orientation:a,children:s,value:l,onItemSelect:u,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:f,onContentEnter:h,onContentLeave:g}=e,[v,E]=n.useState(null),[T,x]=n.useState(new Map),[O,N]=n.useState(null);return(0,b.jsx)(A,{scope:t,isRootMenu:r,rootNavigationMenu:i,value:l,previousValue:(0,m.Z)(l),baseId:(0,p.B)(),dir:o,orientation:a,viewport:v,onViewportChange:E,indicatorTrack:O,onIndicatorTrackChange:N,onTriggerEnter:(0,y.c)(d),onTriggerLeave:(0,y.c)(f),onContentEnter:(0,y.c)(h),onContentLeave:(0,y.c)(g),onItemSelect:(0,y.c)(u),onItemDismiss:(0,y.c)(c),onViewportContentChange:n.useCallback((e,t)=>{x(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:n.useCallback(e=>{x(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,b.jsx)(w.Provider,{scope:t,children:(0,b.jsx)(R,{scope:t,items:T,children:s})})})},P="NavigationMenuList",F=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=_(P,r),o=(0,b.jsx)(s.sG.ul,{"data-orientation":i.orientation,...n,ref:t});return(0,b.jsx)(s.sG.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:(0,b.jsx)(w.Slot,{scope:r,children:i.isRootMenu?(0,b.jsx)(et,{asChild:!0,children:o}):o})})});F.displayName=P;var M="NavigationMenuItem",[$,U]=S(M),V=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,...o}=e,a=(0,p.B)(),l=n.useRef(null),u=n.useRef(null),c=n.useRef(null),d=n.useRef(()=>{}),f=n.useRef(!1),h=n.useCallback((e="start")=>{if(l.current){d.current();let t=ei(l.current);t.length&&eo("start"===e?t:t.reverse())}},[]),m=n.useCallback(()=>{if(l.current){let e=ei(l.current);e.length&&(d.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return(0,b.jsx)($,{scope:r,value:i||a||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:l,focusProxyRef:c,wasEscapeCloseRef:f,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:m,onContentFocusOutside:m,children:(0,b.jsx)(s.sG.li,{...o,ref:t})})});V.displayName=M;var B="NavigationMenuTrigger",G=n.forwardRef((e,t)=>
260{let{__scopeNavigationMenu:r,disabled:i,...o}=e,l=_(B,e.__scopeNavigationMenu),c=U(B,e.__scopeNavigationMenu),d=n.useRef(null),p=(0,u.s)(d,c.triggerRef,t),f=el(l.baseId,c.value),h=eu(l.baseId,c.value),m=n.useRef(!1),g=n.useRef(!1),y=c.value===l.value;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(w.ItemSlot,{scope:r,value:c.value,children:(0,b.jsx)(en,{asChild:!0,children:(0,b.jsx)(s.sG.button,{id:f,disabled:i,"data-disabled":i?"":void 0,"data-state":es(y),"aria-expanded":y,"aria-controls":h,...o,ref:p,onPointerEnter:(0,a.mK)(e.onPointerEnter,()=>{g.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:(0,a.mK)(e.onPointerMove,ec(()=>{i||g.current||c.wasEscapeCloseRef.current||m.current||(l.onTriggerEnter(c.value),m.current=!0)})),onPointerLeave:(0,a.mK)(e.onPointerLeave,ec(()=>{i||(l.onTriggerLeave(),m.current=!1)})),onClick:(0,a.mK)(e.onClick,()=>{l.onItemSelect(c.value),g.current=y}),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===l.dir?"ArrowLeft":"ArrowRight"}[l.orientation];y&&e.key===t&&(c.onEntryKeyDown(),e.preventDefault())})})})}),y&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(v.bL,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:e=>{let t=c.contentRef.current,r=e.relatedTarget,n=r===d.current,i=t?.contains(r);(n||!i)&&c.onFocusProxyEnter(n?"start":"end")}}),l.viewport&&(0,b.jsx)("span",{"aria-owns":h})]})]})});G.displayName=B;var q="navigationMenu.linkSelect";n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,active:n,onSelect:i,...o}=e;return(0,b.jsx)(en,{asChild:!0,children:(0,b.jsx)(s.sG.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...o,ref:t,onClick:(0,a.mK)(e.onClick,e=>{let t=e.target,r=new CustomEvent(q,{bubbles:!0,cancelable:!0});if(t.addEventListener(q,e=>i?.(e),{once:!0}),(0,s.hO)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(Y,{bubbles:!0,cancelable:!0});(0,s.hO)(t,e)}},{checkForDefaultPrevented:!1})})})}).displayName="NavigationMenuLink";var z="NavigationMenuIndicator";n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=_(z,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?i.createPortal((0,b.jsx)(d.C,{present:r||a,children:(0,b.jsx)(H,{...n,ref:t})}),o.indicatorTrack):null}).displayName=z;var H=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...i}=e,o=_(z,r),a=T(r),[l,u]=n.useState(null),[c,d]=n.useState(null),p="horizontal"===o.orientation,f=!!o.value;n.useEffect(()=>{let e=a(),t=e.find(e=>e.value===o.value)?.ref.current;t&&u(t)},[a,o.value]);let h=()=>{l&&d({size:p?l.offsetWidth:l.offsetHeight,offset:p?l.offsetLeft:l.offsetTop})};return ea(l,h),ea(o.indicatorTrack,h),c?(0,b.jsx)(s.sG.div,{"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":o.orientation,...i,ref:t,style:{position:"absolute",...p?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...i.style}}):null}),K="NavigationMenuContent",W=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=_(K,e.__scopeNavigationMenu),o=U(K,e.__scopeNavigationMenu),s=(0,u.s)(o.contentRef,t),l=o.value===i.value,c={value:o.value,triggerRef:o.triggerRef,focusProxyRef:o.focusProxyRef,wasEscapeCloseRef:o.wasEscapeCloseRef,onContentFocusOutside:o.onContentFocusOutside,onRootContentClose:o.onRootContentClose,...n};return i.viewport?(0,b.jsx)(Q,{forceMount:r,...c,ref:s}):(0,b.jsx)(d.C,{present:r||l,children:(0,b.jsx)(J,{"data-state":es(l),...c,ref:s,onPointerEnter:(0,a.mK)(e.onPointerEnter,i.onContentEnter),onPointerLeave:(0,a.mK)(e.onPointerLeave,ec(i.onContentLeave)),style:{pointerEvents:!l&&i.isRootMenu?"none":void 0,...c.style}})})});W.displayName=K;var Q=n.forwardRef((e,t)=>{let{onViewportContentChange:r,onViewportContentRemove:n}=_(K,e.__scopeNavigationMenu);return(0,g.N)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,g.N)(()=>()=>n(e.value),[e.value,n]),null}),Y="navigationMenu.rootContentDismiss",J=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:i,triggerRef:o,focusProxyRef:s,wasEscapeCloseRef:l,onRootContentClose:c,onContentFocusOutside:d,...p}=e,f=_(K,r),m=n.useRef(null),g=(0,u.s)(m,t),y=el(f.baseId,i),v=eu(f.baseId,i),E=T(r),w=n.useRef(null),{onItemDismiss:x}=f;n.useEffect(()=>{let e=m.current;if(f.isRootMenu&&e){let t=()=>{x(),c(),e.contains(document.activeElement)&&o.current?.focus()};return e.addEventListener(Y,t),()=>e.removeEventListener(Y,t)}},[f.isRootMenu,e.value,o,x,c]);let O=n.useMemo(()=>{let e=E().map(e=>e.value);"rtl"===f.dir&&e.reverse();let t=e.indexOf(f.value),r=e.indexOf(f.previousValue),n=i===f.value,o=r===e.indexOf(i);if(!n&&!o)return w.current;let a=(()=>
260{if(t!==r){if(n&&-1!==r)return t>r?"from-end":"from-start";if(o&&-1!==t)return t>r?"to-start":"to-end"}return null})();return w.current=a,a},[f.previousValue,f.value,f.dir,E,i]);return(0,b.jsx)(et,{asChild:!0,children:(0,b.jsx)(h.qW,{id:v,"aria-labelledby":y,"data-motion":O,"data-orientation":f.orientation,...p,ref:g,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(Y,{bubbles:!0,cancelable:!0});m.current?.dispatchEvent(e)},onFocusOutside:(0,a.mK)(e.onFocusOutside,e=>{d();let t=e.target;f.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,a.mK)(e.onPointerDownOutside,e=>{let t=e.target,r=E().some(e=>e.ref.current?.contains(t)),n=f.isRootMenu&&f.viewport?.contains(t);(r||n||!f.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ei(e.currentTarget),r=document.activeElement,n=t.findIndex(e=>e===r);eo(e.shiftKey?t.slice(0,n).reverse():t.slice(n+1,t.length))?e.preventDefault():s.current?.focus()}}),onEscapeKeyDown:(0,a.mK)(e.onEscapeKeyDown,e=>{l.current=!0})})})}),X="NavigationMenuViewport",Z=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=!!_(X,e.__scopeNavigationMenu).value;return(0,b.jsx)(d.C,{present:r||i,children:(0,b.jsx)(ee,{...n,ref:t})})});Z.displayName=X;var ee=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,children:i,...o}=e,l=_(X,r),c=(0,u.s)(t,l.onViewportChange),p=D(K,e.__scopeNavigationMenu),[f,h]=n.useState(null),[m,g]=n.useState(null),y=f?f?.width+"px":void 0,v=f?f?.height+"px":void 0,E=!!l.value,w=E?l.value:l.previousValue;return ea(m,()=>{m&&h({width:m.offsetWidth,height:m.offsetHeight})}),(0,b.jsx)(s.sG.div,{"data-state":es(E),"data-orientation":l.orientation,...o,ref:c,style:{pointerEvents:!E&&l.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":y,"--radix-navigation-menu-viewport-height":v,...o.style},onPointerEnter:(0,a.mK)(e.onPointerEnter,l.onContentEnter),onPointerLeave:(0,a.mK)(e.onPointerLeave,ec(l.onContentLeave)),children:Array.from(p.items).map(([e,{ref:t,forceMount:r,...n}])=>{let i=w===e;return(0,b.jsx)(d.C,{present:r||i,children:(0,b.jsx)(J,{...n,ref:(0,u.t)(t,e=>{i&&e&&g(e)})})},e)})})}),et=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=_("FocusGroup",r);return(0,b.jsx)(O.Provider,{scope:r,children:(0,b.jsx)(O.Slot,{scope:r,children:(0,b.jsx)(s.sG.div,{dir:i.dir,...n,ref:t})})})}),er=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],en=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=N(r),o=_("FocusGroupItem",r);return(0,b.jsx)(O.ItemSlot,{scope:r,children:(0,b.jsx)(s.sG.button,{...n,ref:t,onKeyDown:(0,a.mK)(e.onKeyDown,e=>{if(["Home","End",...er].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===o.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),er.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>eo(t)),e.preventDefault()}})})})});function ei(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function eo(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ea(e,t){let r=(0,y.c)(t);(0,g.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}function es(e){return e?"open":"closed"}function el(e,t){return`${e}-trigger-${t}`}function eu(e,t){return`${e}-content-${t}`}function ec(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ed=k,ep=F,ef=V,eh=G,em=W,eg=Z},5785:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mapButtonToCommand=t.DefaultEditFrameButtonIds=t.DefaultEditFrameButtons=t.DefaultEditFrameButton=t.handleEditorAnchors=t.resetEditorChromes=t.isEditorActive=t.HorizonEditor=t.ExperienceEditor=t.tryParseEnvValue=t.mergeURLSearchParams=t.escapeNonSpecialQuestionMarks=t.areURLSearchParamsEqual=t.isRegexOrUrl=t.getAllowedOriginsFromEnv=t.enforceCors=t.isTimeoutError=t.isAb
260soluteUrl=t.resolveUrl=t.isServer=void 0;var i=r(6737);Object.defineProperty(t,"isServer",{enumerable:!0,get:function(){return n(i).default}});var o=r(1548);Object.defineProperty(t,"resolveUrl",{enumerable:!0,get:function(){return o.resolveUrl}}),Object.defineProperty(t,"isAbsoluteUrl",{enumerable:!0,get:function(){return o.isAbsoluteUrl}}),Object.defineProperty(t,"isTimeoutError",{enumerable:!0,get:function(){return o.isTimeoutError}}),Object.defineProperty(t,"enforceCors",{enumerable:!0,get:function(){return o.enforceCors}}),Object.defineProperty(t,"getAllowedOriginsFromEnv",{enumerable:!0,get:function(){return o.getAllowedOriginsFromEnv}}),Object.defineProperty(t,"isRegexOrUrl",{enumerable:!0,get:function(){return o.isRegexOrUrl}}),Object.defineProperty(t,"areURLSearchParamsEqual",{enumerable:!0,get:function(){return o.areURLSearchParamsEqual}}),Object.defineProperty(t,"escapeNonSpecialQuestionMarks",{enumerable:!0,get:function(){return o.escapeNonSpecialQuestionMarks}}),Object.defineProperty(t,"mergeURLSearchParams",{enumerable:!0,get:function(){return o.mergeURLSearchParams}});var a=r(394);Object.defineProperty(t,"tryParseEnvValue",{enumerable:!0,get:function(){return a.tryParseEnvValue}});var s=r(8521);Object.defineProperty(t,"ExperienceEditor",{enumerable:!0,get:function(){return s.ExperienceEditor}}),Object.defineProperty(t,"HorizonEditor",{enumerable:!0,get:function(){return s.HorizonEditor}}),Object.defineProperty(t,"isEditorActive",{enumerable:!0,get:function(){return s.isEditorActive}}),Object.defineProperty(t,"resetEditorChromes",{enumerable:!0,get:function(){return s.resetEditorChromes}}),Object.defineProperty(t,"handleEditorAnchors",{enumerable:!0,get:function(){return s.handleEditorAnchors}});var l=r(6940);Object.defineProperty(t,"DefaultEditFrameButton",{enumerable:!0,get:function(){return l.DefaultEditFrameButton}}),Object.defineProperty(t,"DefaultEditFrameButtons",{enumerable:!0,get:function(){return l.DefaultEditFrameButtons}}),Object.defineProperty(t,"DefaultEditFrameButtonIds",{enumerable:!0,get:function(){return l.DefaultEditFrameButtonIds}}),Object.defineProperty(t,"mapButtonToCommand",{enumerable:!0,get:function(){return l.mapButtonToCommand}})},5815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return E}});let n=r(4761),i=r(3514),o=r(6029),a=i._(r(5729)),s=n._(r(6760)),l=n._(r(3276)),u=r(4851),c=r(5720),d=r(9528);r(2434);let p=r(265),f=n._(r(2645)),h=r(9058),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/society/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,i,o,a){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function y(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:p,placeholder:f,loading:m,unoptimized:v,fill:b,onLoadRef:E,onLoadingCompleteRef:w,setBlurComplete:T,setShowAltText:x,sizesInput:O,onLoad:N,onError:C,...S}=e,I=(0,a.useCallback)(e=>{e&&(C&&(e.src=e.src),e.complete&&g(e,f,E,w,T,v,O))},[r,f,E,w,T,C,v,O]),A=(0,h.useMergedRef)(t,I);return(0,o.jsx)("img",{...S,...y(p),loading:m,width:l,height:s,decoding:u,"data-nimg":b?"fill":"1",className:c,style:d,sizes:i,srcSet:n,src:r,ref:A,onLoad:e=>{g(e.currentTarget,f,E,w,T,v,O)},onError:e=>{x(!0),"empty"!==f&&T(!0),C&&C(e)}})});function b(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...y(r.fetchPriority)};return t&&s.default.preload?(s.default.preload(r.src,n),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let E=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(p.RouterContext),n=(0,a.useContext)(d.ImageConfigContext),i=(0,a.useMemo)(()=>{var e;let t=m||n||c.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>
260e-t),i=t.deviceSizes.sort((e,t)=>e-t),o=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:o}},[n]),{onLoad:s,onLoadingComplete:l}=e,h=(0,a.useRef)(s);(0,a.useEffect)(()=>{h.current=s},[s]);let g=(0,a.useRef)(l);(0,a.useEffect)(()=>{g.current=l},[l]);let[y,E]=(0,a.useState)(!1),[w,T]=(0,a.useState)(!1),{props:x,meta:O}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...x,unoptimized:O.unoptimized,placeholder:O.placeholder,fill:O.fill,onLoadRef:h,onLoadingCompleteRef:g,setBlurComplete:E,setShowAltText:T,sizesInput:e.sizes,ref:t}),O.priority?(0,o.jsx)(b,{isAppRouter:!r,imgAttributes:x}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5896:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(5729),i=globalThis?.document?n.useLayoutEffect:()=>{}},6020:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLLayoutService=t.GRAPHQL_LAYOUT_QUERY_NAME=void 0;let o=r(4976),a=i(r(8572));t.GRAPHQL_LAYOUT_QUERY_NAME="JssLayoutQuery";class s extends o.LayoutServiceBase{constructor(e){super(),this.serviceConfig=e,this.graphQLClient=this.getGraphQLClient()}fetchLayoutData(e,t){return n(this,void 0,void 0,function*(){var r,n;let i=this.getLayoutQuery(e,t);a.default.layout("fetching layout data for %s %s %s",e,t,this.serviceConfig.siteName);let o=yield this.graphQLClient.request(i);return(null==(n=null==(r=null==o?void 0:o.layout)?void 0:r.item)?void 0:n.rendered)||{sitecore:{context:{pageEditing:!1,language:t},route:null}}})}getGraphQLClient(){if(!this.serviceConfig.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.serviceConfig.clientFactory({debugger:a.default.layout,retries:this.serviceConfig.retries,retryStrategy:this.serviceConfig.retryStrategy})}getLayoutQuery(e,r){let n=r?`, language:"${r}"`:"",i=this.serviceConfig.formatLayoutQuery?this.serviceConfig.formatLayoutQuery(this.serviceConfig.siteName,e,r):`layout(site:"${this.serviceConfig.siteName}", routePath:"${e}"${n})`;return`query ${t.GRAPHQL_LAYOUT_QUERY_NAME} { 261 ${i}{ 262 item { 263 rendered 264 } 265 } 266 }`}}t.GraphQLLayoutService=s},6115:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveRequestDocument=void 0;let n=r(4368),i=e=>{let t,r=e.definitions.filter(e=>"OperationDefinition"===e.kind);return 1===r.length&&(t=r[0]?.name?.value),t};t.resolveRequestDocument=e=>{if("string"==typeof e){let t;try{let r=(0,n.parse)(e);t=i(r)}catch(e){}return{query:e,operationName:t}}let t=i(e);return{query:(0,n.print)(e),operationName:t}}},6141:(e,t,r)=>{e.exports=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;let n=Number(new Date);s.diff=n-(r||n),s.prev=r,s.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let o=t.formatters[n];if("function"==typeof o){let t=e[i];r=o.call(s,t),e.splice(i,1),i--}return r}),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function i(e,t){let r=0,n=0,i=-1,o=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,o=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++o}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(
266Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(i(e,r))return!1;for(let r of t.names)if(i(e,r))return!0;return!1},t.humanize=r(7264),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},6236:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},6237:(e,t,r)=>{"use strict";r.d(t,{y:()=>p});var n=r(5729),i=r(5401),o=r(9339);let a=o.Bd?n.useLayoutEffect:n.useEffect;var s=r(7086);let l=new Map,u=(e,t,r,n)=>{let i=l.get(e)?.get(t);if(void 0!==i&&0!==i.size)for(let e of i)e!==n&&e(r)},c=e=>{e.storageArea&&e.key&&e.newValue&&u(e.storageArea,e.key,e.newValue)},d={defaultValue:null,initializeWithValue:!0};function p(e,t,r){let p=(0,s.J)({...d,...r}),m=(e,t)=>(p.current.parse??h)(e,t),g=(0,s.J)({fetchRaw:()=>e.getItem(t),fetch:()=>m(g.current.fetchRaw(),p.current.defaultValue),remove(){e.removeItem(t)},store(r){let n=(p.current.stringify??f)(r);return null!==n&&e.setItem(t,n),n}}),y=(0,i.S)(),[v,b]=(0,n.useState)(p.current?.initializeWithValue&&y?g.current.fetch():void 0),E=(0,s.J)(v),w=(0,s.J)({fetch(){b(g.current.fetch())},setRawVal(e){b(m(e,p.current.defaultValue))}});!function(e,t){let r=(0,i.S)();(0,n.useEffect)(r?o.lQ:e,t)}(()=>{w.current.fetch()},[t]),(0,n.useEffect)(()=>{p.current.initializeWithValue||w.current.fetch()},[]),a(()=>{let r,n,i=w.current.setRawVal;return o.Bd&&0===l.size&&function(e,...t){e?.addEventListener?.(...t)}(globalThis,"storage",c,{passive:!0}),(r=l.get(e))||(r=new Map,l.set(e,r)),(n=r.get(t))||(n=new Set,r.set(t,n)),n.add(i),()=>{((e,t,r)=>{let n=l.get(e);if(!n)return;let i=n.get(t);i&&(i.delete(r),0===i.size&&n.delete(t),0===n.size&&l.delete(e),o.Bd&&0===l.size&&function(e,...t){e?.removeEventListener?.(...t)}(globalThis,"storage",c))})(e,t,i)}},[e,t]);let T=(0,s.J)({set(r){if(!o.Bd)return;let n=function(...e){var t,r,n;return 1===e.length?("function"==typeof(t=e[0])&&(t=t()),t):(r=e[0],n=e[1],"function"==typeof r?r(n):r)}(r,E.current),i=g.current.store(n);null!==i&&u(e,t,i)},delete(){o.Bd&&(g.current.remove(),u(e,t,null))},fetch(){o.Bd&&u(e,t,g.current.fetchRaw())}}),x=(0,n.useMemo)(()=>({set:e=>{T.current.set(e)},remove(){T.current.delete()},fetch(){T.current.fetch()}}),[]);return(0,n.useMemo)(()=>({value:v,...x}),[v])}let f=e=>{if(null===e)return null;try{return JSON.stringify(e)}catch(e){return console.warn(e),null}},h=(e,t)=>{if(null===e)return t;try{return JSON.parse(e)}catch(e){return console.warn(e),t}}},6264:(e,t,r)=>{"use strict";r.d(t,{zu:()=>eh});let n=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),i=[],o=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],i=r.nextPart.get(n);if(i){let r=o(e,t+1,i);if(r)return r}let a=r.validators;if(null===a)return;let s=0===t?e.join("-"):e.slice(t).join("-"),l=a.length;for(let e=0;e<l;e++){let t=a[e];if(t.validator(s))return t.classGroupId}},a=(e,t)=>{let r=n();for(let n in e)s(e[n],r,n,t);return r},s=(e,t,r,n)=>{let i=e.length;for(let o=0;o<i;o++)l(e[o],t,r,n)},l=(e,t,r,n)=>"string"==typeof e?void u(e,t,r):"function"==typeof e?void c(e,t,r,n):void d(e,t,r,n),u=(e,t,r)=>{(""===e?t:p(t,e)).classGroupId=r},c=(e,t,r,n)=>{if(f(e))return void s(e(n),t,r,n);null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e})},d=(e,t,r,n)=>{let i=Object.entries(e),o=i.length;for(let e=0;e<o;e++){let[o,a]=i[e];s(a,p(t,o),r,n)}},p=(e,t)=>{let r=e,i=t.split("-"),o=i.length;for(let e=0;e<o;e++){let t=i[e],o=r.nextPart.get(t);o||(o=n(),r.nextPart.set(t,o)),r=o}return r},f=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,h=[],m=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),g=/\s+/,y=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=y(e[n]))&&(r&&(r+=" "),r+=t);return r},v=(e,...t)=>{let r,n,s,l,u=e=>{let t=n(e);if(t)return t;let i=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],s=e.trim().split(g),l="";for(let e=s.length-1;e>=0;e-=1){let t=s[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=r(t);if(u){l=t+(l.length>0?" "+l:l);continue}let h=!!f,m=n(h?p.substring(0,f):p);if(!m){if(!h||!(m=n(p))){l=t+(l.length>0?" "+l:l);continue}h=!1}let g=0===c.length?"":1===c.length?c[0]:o(c).join(":"),y=d?g+"!":g,v=y+m;if(a.indexOf(v)>-1)continue;a.push(v);let b=i(m,h);for(let e=0;e<b.length;++e){let t=b[e];a.push(y+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return s(e,i),i};return l=c=>(n=(r=(e=>({cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),i=(i,o)=>{r[i]=o,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(i(e,t),t):void 0},set(e,t){e in r?r[e]=t:i(e,t)}}})(e.cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,i=0,o=0,a=e.length;for(let s=0;s<a;s++){let a=e[s];if(0===n&&0===i){if(":"===a){r.push(e.slice(o,s)),o=s+1;continue}if("/"===a){t=s;continue}}"["===a?n++:"]"===a?n--:"("===a?i++:")"===a&&i--}let s=0===r.length?e:e.slice(o),l=s,u=!1;return s.endsWith("!")?(l=s.slice(0,-1),u=!0):s.startsWith("!")&&(l=s.slice(1),u=!0),m(r,u,l,t&&t>o?t-o:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):m(h,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(e),sortModifiers:(e=>{let t=new Map;
266return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{let r=[],n=[];for(let i=0;i<e.length;i++){let o=e[i],a="["===o[0],s=t.has(o);a||s?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(o)):n.push(o)}return n.length>0&&(n.sort(),r.push(...n)),r}})(e),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return a(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return(e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})())(e);let r=e.split("-"),n=+(""===r[0]&&r.length>1);return o(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=n[e],o=r[e];return t?o?((e,t)=>{let r=Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||i}return r[e]||i}}})(e)}))(t.reduce((e,t)=>t(e),e()))).cache.get,s=r.cache.set,l=u,u(c)),(...e)=>l(((...e)=>{let t,r,n=0,i="";for(;n<e.length;)(t=e[n++])&&(r=y(t))&&(i&&(i+=" "),i+=r);return i})(...e))},b=[],E=e=>{let t=t=>t[e]||b;return t.isThemeGetter=!0,t},w=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,T=/^\((?:(\w[\w-]*):)?(.+)\)$/i,x=/^\d+\/\d+$/,O=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,N=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,C=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,S=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,I=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>x.test(e),_=e=>!!e&&!Number.isNaN(Number(e)),R=e=>!!e&&Number.isInteger(Number(e)),D=e=>e.endsWith("%")&&_(e.slice(0,-1)),k=e=>O.test(e),j=()=>!0,L=e=>N.test(e)&&!C.test(e),P=()=>!1,F=e=>S.test(e),M=e=>I.test(e),$=e=>!V(e)&&!K(e),U=e=>ee(e,ei,P),V=e=>w.test(e),B=e=>ee(e,eo,L),G=e=>ee(e,ea,_),q=e=>ee(e,er,P),z=e=>ee(e,en,M),H=e=>ee(e,el,F),K=e=>T.test(e),W=e=>et(e,eo),Q=e=>et(e,es),Y=e=>et(e,er),J=e=>et(e,ei),X=e=>et(e,en),Z=e=>et(e,el,!0),ee=(e,t,r)=>{let n=w.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},et=(e,t,r=!1)=>{let n=T.exec(e);return!!n&&(n[1]?t(n[1]):r)},er=e=>"position"===e||"percentage"===e,en=e=>"image"===e||"url"===e,ei=e=>"length"===e||"size"===e||"bg-size"===e,eo=e=>"length"===e,ea=e=>"number"===e,es=e=>"family-name"===e,el=e=>"shadow"===e;Symbol.toStringTag;let eu=()=>{let e=E("color"),t=E("font"),r=E("text"),n=E("font-weight"),i=E("tracking"),o=E("leading"),a=E("breakpoint"),s=E("container"),l=E("spacing"),u=E("radius"),c=E("shadow"),d=E("inset-shadow"),p=E("text-shadow"),f=E("drop-shadow"),h=E("blur"),m=E("perspective"),g=E("aspect"),y=E("ease"),v=E("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...w(),K,V],x=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],N=()=>[K,V,l],C=()=>[A,"full","auto",...N()],S=()=>[R,"none","subgrid",K,V],I=()=>["auto",{span:["full",R,K,V]},R,K,V],L=()=>[R,"auto",K,V],P=()=>["auto","min","max","fr",K,V],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...N()],et=()=>[A,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],er=()=>[e,K,V],en=()=>[...w(),Y,q,{position:[K,V]}],ei=()=>["no-repeat",{repeat:["","x","y","space","round"]}],eo=()=>["auto","cover","contain",J,U,{size:[K,V]}],ea=()=>[D,W,B],es=()=>["","none","full",u,K,V],el=()=>["",_,W,B],eu=()=>["solid","dashed","dotted","double"],ec=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ed=()=>[_,D,Y,q],ep=()=>["","none",h,K,V],ef=()=>["none",_,K,V],eh=()=>["none",_,K,V],em=()=>[_,K,V],eg=()=>[A,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[k],breakpoint:[k],color:[j],container:[k],"drop-shadow":[k],ease:["in","out","in-out"],font:[$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[k],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[k],shadow:[k],spacing:["px",_],text:[k],"text-shadow":[k],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",A,V,K,g]}
vendor: 12,796 bytes, line 266
266],container:["container"],columns:[{columns:[_,V,K,s]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[R,"auto",K,V]}],basis:[{basis:[A,"full","auto",s,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_,A,"auto","initial","none",V]}],grow:[{grow:["",_,K,V]}],shrink:[{shrink:["",_,K,V]}],order:[{order:[R,"first","last","none",K,V]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:et()}],w:[{w:[s,"screen",...et()]}],"min-w":[{"min-w":[s,"screen","none",...et()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...et()]}],h:[{h:["screen","lh",...et()]}],"min-h":[{"min-h":["screen","lh","none",...et()]}],"max-h":[{"max-h":["screen","lh",...et()]}],"font-size":[{text:["base",r,W,B]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,K,G]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",D,V]}],"font-family":[{font:[Q,V,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,K,V]}],"line-clamp":[{"line-clamp":[_,"none",K,G]}],leading:[{leading:[o,...N()]}],"list-image":[{"list-image":["none",K,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",K,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:er()}],"text-color":[{text:er()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...eu(),"wavy"]}],"text-decoration-thickness":[{decoration:[_,"from-font","auto",K,B]}],"text-decoration-color":[{decoration:er()}],"underline-offset":[{"underline-offset":[_,"auto",K,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K,V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:en()}],"bg-repeat":[{bg:ei()}],"bg-size":[{bg:eo()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},R,K,V],radial:["",K,V],conic:[R,K,V]},X,z]}],"bg-color":[{bg:er()}],"gradient-from-pos":[{from:ea()}],"gradient-via-pos":[{via:ea()}],"gradient-to-pos":[{to:ea()}],"gradient-from":[{from:er()}],"gradient-via":[{via:er()}],"gradient-to":[{to:er()}],rounded:[{rounded:es()}],"rounded-s":[{"rounded-s":es()}],"rounded-e":[{"rounded-e":es()}],"rounded-t":[{"rounded-t":es()}],"rounded-r":[{"rounded-r":es()}],"rounded-b":[{"rounded-b":es()}],"rounded-l":[{"rounded-l":es()}],"rounded-ss":[{"rounded-ss":es()}],"rounded-se":[{"rounded-se":es()}],"rounded-ee":[{"rounded-ee":es()}],"rounded-es":[{"rounded-es":es()}],"rounded-tl":[{"rounded-tl":es()}],"rounded-tr":[{"rounded-tr":es()}],"rounded-br":[{"rounded-br":es()}],"rounded-bl":[{"rounded-bl":es()}],"border-w":[{border:el()}],"border-w-x":[{"border-x":el()}],"border-w-y":[{"border-y":el()}],"border-w-s":[{"border-s":el()}],"border-w-e":[{"border-e":el()}],"border-w-t":[{"border-t":el()}],"border-w-r":[{"border-r":el()}],"border-w-b":[{"border-b":el()}],"border-w-l":[{"border-l":el()}],"divide-x":[{"divide-x":el()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":el()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...eu(),"hidden","none"]}],"divide-style":[{divide:[...eu(),"hidden","none"]}],"border-color":[{border:er()}],"border-color-x":[{"border-x":er()}],"border-color-y":[{"border-y":er()}],"border-color-s":[{"border-s":er()}],"border-color-e":[{"border-e":er()}],"border-color-t":[{"border-t":er()}],"border-color-r":[{"border-r":er()}],"border-color-b":[{"border-b":er()}],"border-color-l":[{"border-l":er()}],"divide-color":[{divide:er()}],"outline-style":[{outline:[...eu(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_,K,V]}],"outline-w":[{outline:["",_,W,B]}],"outline-color":[{outline:er()}],shadow:[{shadow:["","none",c,Z,H]}],"shadow-color":[{shadow:er()}],"inset-shadow":[{"inset-shadow":["none",d,Z,H]}],"inset-shadow-color":[{"inset-shadow":er()}],"ring-w":[{ring:el()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:er()}],"ring-offset-w":[{"ring-offset":[_,B]}],"ring-offset-color":[{"ring-offset":er()}],"inset-ring-w":[{"inset-ring":el()}],"inset-ring-color":[{"inset-ring":er()}],"text-shadow":[{"text-shadow":["none",p,Z,H]}],"text-shadow-color":[{"text-shadow":er()}],opacity:[{opacity:[_,K,V]}],"mix-blend":[{"mix-blend":[...ec(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ec()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_]}],"mask-image-linear-from-pos":[{"mask-linear-from":ed()}],"mask-image-linear-to-pos":[{"mask-linear-to":ed()}],"mask-image-linear-from-color":[{"mask-linear-from":er()}],"mask-image-linear-to-color":[{"mask-linear-to":er()}],"mask-image-t-from-pos":[{"mask-t-from":ed()}],"mask-image-t-to-pos":[{"mask-t-to":ed()}],"mask-image-t-from-color":[{"mask-t-from":er()}],"mask-image-t-to-color":[{"mask-t-to":er()}],"mask-image-r-from-pos":[{"mask-r-from":ed()}],"mask-image-r-to-pos":[{"mask-r-to":ed()}],"mask-image-r-from-color":[{"mask-r-from":er()}],"mask-image-r-to-color":[{"mask-r-to":er()}],"mask-image-b-from-pos":[{"mask-b-from":ed()}],"mask-image-b-to-pos":[{"mask-b-to":ed()}],"mask-image-b-from-color":[{"mask-b-from":er()}],"mask-image-b-to-color":[{"mask-b-to":er()}],"mask-image-l-from-pos":[{"mask-l-from":ed()}],"mask-image-l-to-pos":[{"mask-l-to":ed()}],"mask-image-l-from-color":[{"mask-l-from":er()}],"mask-image-l-to-color":[{"mask-l-to":er()}],"mask-image-x-from-pos":[{"mask-x-from":ed()}],"mask-image-x-to-pos":[{"mask-x-to":ed()}],"mask-image-x-from-color":[{"mask-x-from":er()}],"mask-image-x-to-color":[{"mask-x-to":er()}],"mask-image-y-from-pos":[{"mask-y-from":ed()}],"mask-image-y-to-pos":[{"mask-y-to":ed()}],"mask-image-y-from-color":[{"mask-y-from":er()}],"mask-image-y-to-color":[{"mask-y-to":er()}],"mask-image-radial":[{"mask-radial":[K,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":ed()}],"mask-image-radial-to-pos":[{"mask-radial-to":ed()}],"mask-image-radial-from-color":[{"mask-radial-from":er()}],"mask-image-radial-to-color":[{"mask-radial-to":er()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[_]}],"mask-image-conic-from-pos":[{"mask-conic-from":ed()}],"mask-image-conic-to-pos":[{"mask-conic-to":ed()}],"mask-image-conic-from-color":[{"mask-conic-from":er()}],"mask-image-conic-to-color":[{"mask-conic-to":er()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:en()}],"mask-repeat":[{mask:ei()}],"mask-size":[{mask:eo()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",K,V]}],filter:[{filter:["","none",K,V]}],blur:[{blur:ep()}],brightness:[{brightness:[_,K,V]}],contrast:[{contrast:[_,K,V]}],"drop-shadow":[{"drop-shadow":["","none",f,Z,H]}],"drop-shadow-color":[{"drop-shadow":er()}],grayscale:[{grayscale:["",_,K,V]}],"hue-rotate":[{"hue-rotate":[_,K,V]}],invert:[{invert:["",_,K,V]}],saturate:[{saturate:[_,K,V]}],sepia:[{sepia:["",_,K,V]}],"backdrop-filter":[{"backdrop-filter":["","none",K,V]}],"backdrop-blur":[{"backdrop-blur":ep()}],"backdrop-brightness":[{"backdrop-brightness":[_,K,V]}],"backdrop-contrast":[{"backdrop-contrast":[_,K,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_,K,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_,K,V]}],"backdrop-invert":[{"backdrop-invert":["",_,K,V]}],"backdrop-opacity":[{"backdrop-opacity":[_,K,V]}],"backdrop-saturate":[{"backdrop-saturate":[_,K,V]}],"backdrop-sepia":[{"backdrop-sepia":["",_,K,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",K,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_,"initial",K,V]}],ease:[{ease:["linear","initial",y,K,V]}],delay:[{delay:[_,K,V]}],animate:[{animate:["none",v,K,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,K,V]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:ef()}],"rotate-x":[{"rotate-x":ef()}],"rotate-y":[{"rotate-y":ef()}],"rotate-z":[{"rotate-z":ef()}],scale:[{scale:eh()}],"scale-x":[{"scale-x":eh()}],"scale-y":[{"scale-y":eh()}],"scale-z":[{"scale-z":eh()}],"scale-3d":["scale-3d"],skew:[{skew:em()}],"skew-x":[{"skew-x":em()}],"skew-y":[{"skew-y":em()}],transform:[{transform:[K,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eg()}],"translate-x":[{"translate-x":eg()}],"translate-y":[{"translate-y":eg()}],"translate-z":[{"translate-z":eg()}],"translate-none":["translate-none"],accent:[{accent:er()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:er()}
266],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K,V]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K,V]}],fill:[{fill:["none",...er()]}],"stroke-w":[{stroke:[_,W,B,G]}],stroke:[{stroke:["none",...er()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ec=(e,t,r)=>{void 0!==r&&(e[t]=r)},ed=(e,t)=>{if(t)for(let r in t)ec(e,r,t[r])},ep=(e,t)=>{if(t)for(let r in t)ef(e,t,r)},ef=(e,t,r)=>{let n=t[r];void 0!==n&&(e[r]=e[r]?e[r].concat(n):n)},eh=(e,...t)=>"function"==typeof e?v(eu,e,...t):v(()=>((e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:i={},override:o={}})=>(ec(e,"cacheSize",t),ec(e,"prefix",r),ec(e,"experimentalParseClassName",n),ed(e.theme,o.theme),ed(e.classGroups,o.classGroups),ed(e.conflictingClassGroups,o.conflictingClassGroups),ed(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ec(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),ep(e.theme,i.theme),ep(e.classGroups,i.classGroups),ep(e.conflictingClassGroups,i.conflictingClassGroups),ep(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),ef(e,i,"orderSensitiveModifiers"),e))(eu(),e),...t)},6294:(e,t,r)=>{"use strict";r.d(t,{s:()=>f});var n=r(5729),i=r(1278),o=r(3478),a=r(2650),s=r(1067),l=r(9235),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let c=(0,o.O)((0,a.N)((0,n.forwardRef)((e,t)=>{var{field:r,tag:i="div",editable:o=!0}=e,a=u(e,["field","tag","editable"]);if(!r||!r.editable&&(0,l.isFieldValueEmpty)(r))return null;let s=Object.assign({dangerouslySetInnerHTML:{__html:r.editable&&o?r.editable:r.value},ref:t},a);
266return n.createElement(i||"div",s)}),{defaultEmptyFieldEditingComponent:s.G,isForwardRef:!0}),!0);c.displayName="RichText";var d=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let p={},f=e=>{let{internalLinksSelector:t='a[href^="/"]',prefetchLinks:r=!0,editable:o=!0}=e,a=d(e,["internalLinksSelector","prefetchLinks","editable"]),s=e.field&&e.field.value,l=o&&e.field&&(e.field.editable||e.field.metadata),u=(0,i.useRouter)(),f=(0,n.useRef)(null);(0,n.useEffect)(()=>{s&&!l&&m()},[s]);let h=e=>{if(!e.currentTarget)return;e.preventDefault();let t=e.currentTarget.href;u.push(t,t,{locale:!1})},m=()=>{let e=f.current,n=e&&e.querySelectorAll(t);n&&n.length&&n.forEach(e=>{if("_blank"===e.target)return;let t=()=>{u.prefetch(e.pathname,void 0,{locale:!1}),p[e.pathname]=!0};if(!p[e.pathname]&&!1!==r&&(!0===r&&t(),"hover"===r)){let r=()=>{t(),e.removeEventListener("mouseover",r)};e.addEventListener("mouseover",r,!1)}e.addEventListener("click",h,!1)})};return n.createElement(c,Object.assign({ref:f,editable:o},a))};f.displayName="NextRichText"},6459:(e,t,r)=>{"use strict";let n;r.d(t,{S:()=>a});var i=r(6237),o=r(9339);try{n=o.Bd&&!!globalThis.sessionStorage}catch{n=!1}let a=n?(e,t)=>(0,i.y)(sessionStorage,e,t):(e,t)=>(o.Bd,{value:void 0,set:o.lQ,remove:o.lQ,fetch:o.lQ})},6541:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.SearchQueryService=void 0;class n{constructor(e){this.client=e}fetch(e,t){return r(this,void 0,void 0,function*(){var r;if(!t.rootItemId||!t.language)throw RangeError('"rootItemId" and "language" must be non-empty strings');let n=[],i=!0,o="";for(;i;){let a=yield this.client.request(e,Object.assign(Object.assign({},t),{after:o}));n=n.concat(null==(r=null==a?void 0:a.search)?void 0:r.results),i=a.search.pageInfo.hasNext,o=a.search.pageInfo.endCursor}return n})}}t.SearchQueryService=n},6626:(e,t,r)=>{"use strict";r.d(t,{n:()=>i});var n=r(5729);let i=(e,t)=>{let r=(0,n.useRef)(t),i=(0,n.useRef)(e);return r.current!==t&&(r.current.length!==t.length||r.current.some((e,r)=>e!==t[r]))&&(r.current=t,i.current=e),i}},6656:(e,t,r)=>{"use strict";r.d(t,{b:()=>c});var n=r(5729);r(6760);var i=r(7628),o=r(6029),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,i.TL)(`Primitive.${t}`),a=n.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?r:t,{...a,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),s="horizontal",l=["horizontal","vertical"],u=n.forwardRef((e,t)=>{var r;let{decorative:n,orientation:i=s,...u}=e,c=(r=i,l.includes(r))?i:s;return(0,o.jsx)(a.div,{"data-orientation":c,...n?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...u,ref:t})});u.displayName="Separator";var c=u},6697:(e,t,r)=>{"use strict";r.d(t,{i:()=>s});var n,i=r(5729),o=r(5896),a=(n||(n=r.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function s({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[o,s,l]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),o=i.useRef(r),s=i.useRef(t);return a(()=>{s.current=t},[t]),i.useEffect(()=>{o.current!==r&&(s.current?.(r),o.current=r)},[r,o]),[r,n,s]}({defaultProp:t,onChange:r}),u=void 0!==e,c=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,n])}return[c,i.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else s(t)},[u,e,s,l])]}Symbol("RADIX:SYNC_STATE")},6737:(e,t)=>{"use strict";
266Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"!=typeof window&&window.document)}},6828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let n=(e,t)=>r(3997).normalizeLocalePath(e,t);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6835:(e,t,r)=>{"use strict";r.d(t,{N:()=>m});var n=r(5729),i=r(2203),o=r.n(i),a=r(3478),s=r(2650),l=r(1067),u=r(9235),c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let d=(0,a.O)((0,s.N)((0,n.forwardRef)((e,t)=>{var{field:r,editable:i=!0,showLinkTextWithChildrenPresent:o}=e,a=c(e,["field","editable","showLinkTextWithChildrenPresent"]);let s=a.children;if(!r||!r.editableFirstPart&&(0,u.isFieldValueEmpty)(r))return null;let l=[];if(i&&r.editableFirstPart){let e=Object.assign(Object.assign({className:"sc-link-wrapper",dangerouslySetInnerHTML:{__html:r.editableFirstPart+r.editableLastPart}},a),{key:"editable"});if(delete e.children,l.push(n.createElement("span",Object.assign({},e))),!s)return l[0]}let d=r.href?r:r.value;if(!d)return null;
266let p="anchor"!==d.linktype&&d.anchor?`#${d.anchor}`:"",f=d.querystring?`?${d.querystring}`:"",h={href:`${d.href}${f}${p}`,className:d.class,title:d.title,target:d.target};"_blank"!==h.target||h.rel||(h.rel="noopener noreferrer");let m=o||!s?d.text||d.href:null;return l.push(n.createElement("a",Object.assign(Object.assign(Object.assign({},h),a),{key:"link",ref:t}),m,s)),n.createElement(n.Fragment,null,l)}),{defaultEmptyFieldEditingComponent:l.G,isForwardRef:!0}),!0);d.displayName="Link";var p=r(9143),f=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let h=/^\/.*\.\w+$/,m=(0,n.forwardRef)((e,t)=>{let{field:r,editable:i=!0,children:a,internalLinkMatcher:s=/^\//g,showLinkTextWithChildrenPresent:l}=e,u=f(e,["field","editable","children","internalLinkMatcher","showLinkTextWithChildrenPresent"]);if(!r||!r.editable&&!r.value&&!r.href&&!r.metadata)return null;let c=r.href?r:r.value,{href:m,querystring:g,anchor:y}=c||{},v=i&&(r.editable||r.metadata);if(m&&!v){let r=l||!a?c.text||c.href:null,i=s.test(m),d=h.test(m);if(i&&!d)return delete u.emptyFieldEditingComponent,n.createElement(o(),Object.assign({href:{pathname:m,query:g,hash:y},key:"link",locale:!1,title:c.title,target:c.target,className:c.class,prefetch:e.prefetch},u,{ref:t},p.env.TEST?{"data-nextjs-link":!0,"data-nextjs-link-prefetch":e.prefetch}:{}),r,a)}let b=Object.assign({},e);return delete b.internalLinkMatcher,delete b.prefetch,n.createElement(d,Object.assign({},b,{ref:t},p.env.TEST?{"data-react-link":!0}:{}))});m.displayName="NextLink"},6916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return T},useLinkStatus:function(){return w}});let n=r(3514),i=r(6029),o=n._(r(5729)),a=r(8338),s=r(2472),l=r(9537),u=r(1031),c=r(1400),d=r(265),p=r(7511),f=r(8876),h=r(4381),m=r(9058);r(6236);let g=new Set;function y(e,t,r,n){if((0,s.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let r,n,{href:l,as:g,children:b,prefetch:E=null,passHref:w,replace:T,shallow:x,scroll:O,locale:N,onClick:C,onNavigate:S,onMouseEnter:I,onTouchStart:A,legacyBehavior:_=!1,...R}=e;r=b,_&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let D=o.default.useContext(d.RouterContext),k=!1!==E,{href:j,as:L}=o.default.useMemo(()=>{if(!D){let e=v(l);return{href:e,as:g?v(g):e}}let[e,t]=(0,a.resolveHref)(D,l,!0);return{href:e,as:g?(0,a.resolveHref)(D,g):t||e}},[D,l,g]),P=o.default.useRef(j),F=o.default.useRef(L);_&&(n=o.default.Children.only(r));let M=_?n&&"object"==typeof n&&n.ref:t,[$,U,V]=(0,p.useIntersection)({rootMargin:"200px"}),B=o.default.useCallback(e=>{(F.current!==L||P.current!==j)&&(V(),F.current=L,P.current=j),$(e)},[L,j,V,$]),G=(0,m.useMergedRef)(B,M);o.default.useEffect(()=>{D&&U&&k&&y(D,j,L,{locale:N})},[L,j,U,N,k,null==D?void 0:D.locale,D]);let q={ref:G,onClick(e){_||"function"!=typeof C||C(e),_&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),D&&(e.defaultPrevented||function(e,t,r,n,i,o,a,l,u){let{nodeName:c}=e.currentTarget;if(!("A"===c.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,s.isLocalURL)(r)){i&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let e=null==a||a;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:o,locale:l,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})()}}(e,D,j,L,T,x,O,N,S))},onMouseEnter(e){_||"function"!=typeof I||I(e),_&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),D&&y(D,j,L,{locale:N,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){_||"function"!=typeof A||A(e),_&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),D&&y(D,j,L,{locale:N,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(L))q.href=L;else if(!_||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==N?N:null==D?void 0:D.locale;q.href=(null==D?void 0:D.isLocaleDomain)&&(0,f.getDomainLocale)(L,e,null==D?void 0:D.locales,null==D?void 0:D.domainLocales)||
266(0,h.addBasePath)((0,c.addLocale)(L,e,null==D?void 0:D.defaultLocale))}return _?o.default.cloneElement(n,q):(0,i.jsx)("a",{...R,...q,children:r})}),E=(0,o.createContext)({pending:!1}),w=()=>(0,o.useContext)(E),T=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6940:(e,t)=>{"use strict";function r(e,t,r){if(!e.click)return Object.assign({isDivider:!1,type:e.type||null,header:e.header||"",icon:e.icon||"",tooltip:e.tooltip||""},e);{if(e.click.startsWith("javascript:")||e.click.startsWith("chrome:")||!t)return Object.assign({isDivider:!1,type:e.type||null,header:e.header||"",icon:e.icon||"",tooltip:e.tooltip||""},e);let n=e.click,i={},o=e.click.indexOf("(");if(o>=0){let t=e.click.indexOf(")");if(t<0)throw Error('Message with arguments must end with ")".');i=e.click.substring(o+1,t).split(",").map(e=>e.trim()).reduce((e,t)=>{let r=t.split("=");return r.length<2?e[r[0]]="":e[r[0]]=r[1],e},{}),n=e.click.substring(0,o)}i.id=t,e.parameters&&Object.keys(e.parameters).forEach(t=>{var r;i[t]=(null==(r=e.parameters[t])?void 0:r.toString())||""}),r&&Object.keys(r).forEach(e=>{var t;i[e]=(null==(t=r[e])?void 0:t.toString())||""});let a=Object.keys(i).map(e=>`${e}=${i[e]}`).join(", "),s=`${n}(${a})`;return{isDivider:!1,click:`javascript:Sitecore.PageModes.PageEditor.postRequest('${s}
266',null,false)`,header:e.header||"",icon:e.icon||"",tooltip:e.tooltip||"",type:e.type||null}}}Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultEditFrameButtons=t.DefaultEditFrameButton=t.DefaultEditFrameButtonIds=void 0,t.mapButtonToCommand=function(e,n,i){if("|"===e||e.isDivider)return{click:"chrome:dummy",header:"Separator",icon:"",isDivider:!0,tooltip:null,type:"separator"};{if(void 0!==e.click)return r(e,n,i);let o=e.fields.join("|");return r(Object.assign({click:`webedit:fieldeditor(command=${t.DefaultEditFrameButtonIds.edit},fields=${o})`},e),n,i)}},t.commandBuilder=r,t.DefaultEditFrameButtonIds={edit:"{70C4EED5-D4CD-4D7D-9763-80C42504F5E7}"},t.DefaultEditFrameButton={insert:{header:"Insert New",icon:"/~/icon/Office/16x16/insert_from_template.png",click:"webedit:new",tooltip:"Insert a new item"},editRelatedItem:{header:"Edit the related item",icon:"/~/icon/Office/16x16/cubes.png",click:"webedit:open",tooltip:"Edit the related item in the Content Editor."},edit:{header:"Edit Item",icon:"/~/icon/people/16x16/cubes_blue.png",fields:["Title","Text"],tooltip:"Edit the item fields."}},t.DefaultEditFrameButtons=[t.DefaultEditFrameButton.editRelatedItem,t.DefaultEditFrameButton.insert,t.DefaultEditFrameButton.edit]},6995:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(3650),i=r(9988),o=r(1696);let a=async(e,t,{index:r,items:a,...s})=>e?await (0,o.rd)(e,t,{actionCause:"entity",index:r,items:a,request:(0,i.d9)(s)}):void n.Vy.warn("trackEvent :::","Widget's rfkId mandatory field is empty"),s=async(e,t,{filters:r,...a})=>e?await (0,o.sF)(e,t,{...r?{filters:(0,i.iR)(r)}:{},request:(0,i.d9)(a)}):void n.Vy.warn("trackEvent :::","Widget's rfkId mandatory field is empty");var l=r(946),u=r(7989),c=r(9478),d=r(2732),p=r(7921),f=r(765),h=r(1599),m=r(4625),g=r(2419);let y=(e,t)=>{switch(t.type){case l.E.KEYPHRASE_CHANGED:{let{keyphrase:r}=t.payload;return{...e,keyphrase:r}}case l.E.SUGGESTION_ADDED:{let{suggestion:r,max:n=3}=t.payload;return{...e,suggestionsList:[...e.suggestionsList||[],{suggestion:r,max:n}]}}case l.E.SUGGESTION_REMOVED:{let{suggestion:r}=t.payload;return{...e,suggestionsList:(e.suggestionsList||[]).filter(({suggestion:e})=>e!==r)}}default:return e}},v=function(e){let{rfkId:t,entity:r,dispatch:n}=(0,u.A)(),i=(0,d.A)();i.isInitialized()||i.initialize(e||{});let{query:o,options:v,actions:b}=i,E=(0,m.A)(),w=(0,c.A)(o),T=(0,h.A)();return(0,f.A)(y,[]),(0,p.A)(e=>{switch(e.type){case l.E.ITEM_CLICKED:{let{id:r,index:n,entity:i,sourceId:s}=e.payload;a(t,i,{index:n,items:[{id:r,sourceId:s}],...(0,g.l)(o)});break}case l.E.KEYPHRASE_CHANGED:{let{keyphrase:t}=e.payload,r=o.getRequest();""!==t?r.setSearchQueryKeyphrase(t):r.resetSearchQueryKeyphrase();break}case l.E.SUGGESTION_CLICKED:{let{name:n,title:i,value:a,displayName:l,uri:u,modifiedKeyword:c}=e.payload;s(t,r,{filters:[{name:n,title:i,value:a,displayName:l,uri:u}],...(0,g.l)(o),modifiedKeyword:c});break}case l.E.SUGGESTION_ADDED:{let{suggestion:t,max:r=3}=e.payload;o.getRequest().resetSearchFilter().removeSearchSuggestion({name:t},({name:e})=>e===t).addSearchSuggestion({name:t,max:r});break}case l.E.SUGGESTION_REMOVED:{let{suggestion:t}=e.payload;o.getRequest().resetSearchFilter().removeSearchSuggestion({name:t},({name:e})=>e===t)}}},[t,o]),{widgetRef:T,rfkId:t,state:E,queryResult:w,actions:b,options:v,dispatch:n,query:o}}},7032:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.updateComponentHandler=t.addComponentUpdateHandler=t.DesignLibraryStatus=t.DESIGN_LIBRARY_STATUS_EVENT_NAME=void 0,t.getDesignLibraryStatusEvent=function(e,r){return{name:t.DESIGN_LIBRARY_STATUS_EVENT_NAME,message:{status:e,uid:r}}},t.getDesignLibraryScriptLink=function(e=i.SITECORE_EDGE_URL_DEFAULT){return`${e}/v1/files/designlibrary/lib/rh-lib-script.js`},t.isDesignLibraryMode=function(e){return e===o.DesignLibraryMode.Normal||e===o.DesignLibraryMode.Metadata};let i=r(9822),o=r(3934);t.DESIGN_LIBRARY_STATUS_EVENT_NAME="component:status",function(e){e.READY="ready",e.RENDERED="rendered"}(n||(t.DesignLibraryStatus=n={})),t.addComponentUpdateHandler=(e,r)=>{if(!window)return;let n=n=>(0,t.updateComponentHandler)(n,e,r);
266return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},t.updateComponentHandler=(e,t,r)=>{var n;let i=e.data;if(!e.origin||!i||"component:update"!==i.name){(e=>["*"].some(t=>t===e.origin||RegExp("^"+t.replace(".","\\.").replace(/\*/g,".*")+"$").test(e.origin)))(e)||console.debug("Design Library: event skipped: message %s from origin %s",i.name,e.origin);return}if(!(null==(n=i.details)?void 0:n.uid))return void console.debug("Received component:update event without uid, aborting event handler...");let o=e=>{var t,r;if((null==(t=e.uid)?void 0:t.toLowerCase())===(null==(r=i.details)?void 0:r.uid.toLowerCase()))return e;if(e.placeholders)for(let t of Object.keys(e.placeholders))for(let r of e.placeholders[t]){let e=o(r);if(e)return e}return null},a=o(t);return a?(console.debug("Found component with uid %s to update. Update fields: %o. Update params: %o.",i.details.uid,i.details.fields,i.details.params),i.details.fields&&(a.fields=Object.assign(Object.assign({},a.fields),i.details.fields)),i.details.params&&(a.params=Object.assign(Object.assign({},a.params),i.details.params)),r&&r(t)):console.debug("Rendering with uid %s not found",i.details.uid),t}},7086:(e,t,r)=>{"use strict";r.d(t,{J:()=>i});var n=r(5729);function i(e){let t=(0,n.useRef)(e);return t.current=e,(0,n.useMemo)(()=>Object.freeze({get current(){return t.current}}),[])}},7143:(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,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},t.parseRawRequestArgs=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0},t.parseBatchRequestArgs=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},t.parseRequestExtendedArgs=(e,t,...r)=>
266{let[n,i]=r;return e.document?e:{url:e,document:t,variables:n,requestHeaders:i,signal:void 0}},t.parseRawRequestExtendedArgs=(e,t,...r)=>{let[n,i]=r;return e.query?e:{url:e,query:t,variables:n,requestHeaders:i,signal:void 0}}},7186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer=JSON},7222:(e,t,r)=>{"use strict";t.qK=void 0;var n=r(3610);Object.defineProperty(t,"qK",{enumerable:!0,get:function(){return n.GraphQLRequestClient}})},7264:e=>{function t(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}e.exports=function(e,r){r=r||{};var n,i,o,a,s=typeof e;if("string"===s&&e.length>0){var l=e;if(!((l=String(l)).length>100)){var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(u){var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"weeks":case"week":case"w":return 6048e5*c;case"days":case"day":case"d":return 864e5*c;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*c;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*c;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:break}}}return}if("number"===s&&isFinite(e)){return r.long?(i=Math.abs(n=e))>=864e5?t(n,i,864e5,"day"):i>=36e5?t(n,i,36e5,"hour"):i>=6e4?t(n,i,6e4,"minute"):i>=1e3?t(n,i,1e3,"second"):n+" ms":(a=Math.abs(o=e))>=864e5?Math.round(o/864e5)+"d":a>=36e5?Math.round(o/36e5)+"h":a>=6e4?Math.round(o/6e4)+"m":a>=1e3?Math.round(o/1e3)+"s":o+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7454:(e,t,r)=>{"use strict";r.d(t,{sG:()=>u,hO:()=>c});var n=r(5729),i=r(6760),o=r(41),a=r(6029),s=Symbol("radix.slottable");function l(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}var u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=function(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var a;let e,s,l=(a=r,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,o.t)(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,s=n.Children.toArray(i),u=s.find(l);if(u){let e=u.props.children,i=s.map(t=>t!==u?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,a.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}(`Primitive.${t}`),i=n.forwardRef((e,n)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?r:t,{...o,ref:n})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function c(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},7489:(e,t,r)=>{"use strict";r.d(t,{xW:()=>i});var n=r(8988);n.oW,n.Yy,n.Yy;class i extends n.Yy{constructor(e,t){super("eq",e,t)}}n.Yy,n.Yy},7506:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){this.timeout=e,this.timeoutId=void 0}get start(){return new Promise((e,t)=>{this.timeoutId=setTimeout(()=>{let e=Error(`Request timed out, timeout of ${this.timeout}ms is exceeded`);e.name="AbortError",t(e)},this.timeout)})}clear(){this.timeoutId&&clearTimeout(this.timeoutId)}}t.default=r},7511:(e,t,r)=>{"use strict";
266Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(5729),i=r(5954),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!o,[c,d]=(0,n.useState)(!1),p=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{p.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(u||c)return;let e=p.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,p.current]),[f,c,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7555:(e,t,r)=>{"use strict";r.d(t,{qW:()=>p});var n,i=r(5729),o=r(5269),a=r(7454),s=r(41),l=r(9613),u=r(6029),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:y,onDismiss:v,...b}=e,E=i.useContext(d),[w,T]=i.useState(null),x=w?.ownerDocument??globalThis?.document,[,O]=i.useState({}),N=(0,s.s)(t,e=>T(e)),C=Array.from(E.layers),[S]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),I=C.indexOf(S),A=w?C.indexOf(w):-1,_=E.layersWithOutsidePointerEventsDisabled.size>0,R=A>=I,D=function(e,t=globalThis?.document){let r=(0,l.c)(e),n=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){h("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...E.branches].some(e=>e.contains(t));R&&!r&&(m?.(e),y?.(e),e.defaultPrevented||v?.())},x),k=function(e,t=globalThis?.document){let r=(0,l.c)(e),n=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!n.current&&h("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(g?.(e),y?.(e),e.defaultPrevented||v?.())},x);return!function(e,t=globalThis?.document){let r=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{A===E.layers.size-1&&(p?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},x),i.useEffect(()=>{if(w)return r&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(n=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(w)),E.layers.add(w),f(),()=>{r&&1===E.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=n)}},[w,x,r,E]),i.useEffect(()=>()=>{w&&(E.layers.delete(w),E.layersWithOutsidePointerEventsDisabled.delete(w),f())},[w,E]),i.useEffect(()=>{let e=()=>O({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(a.sG.div,{...b,ref:N,style:{pointerEvents:_?R?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.mK)(e.onFocusCapture,k.onFocusCapture),onBlurCapture:(0,o.mK)(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:(0,o.mK)(e.onPointerDownCapture,D.onPointerDownCapture)})});function f(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,a.hO)(i,o):i.dispatchEvent(o)}p.displayName="DismissableLayer",i.forwardRef((e,t)=>
266{let r=i.useContext(d),n=i.useRef(null),o=(0,s.s)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(a.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},7628:(e,t,r)=>{"use strict";r.d(t,{DX:()=>d,TL:()=>c,xV:()=>f});var n,i=r(5729),o=r(41),a=r(6029),s=Symbol.for("react.lazy"),l=(n||(n=r.t(i,2)))[" use ".trim().toString()];function u(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function c(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(u(r)&&"function"==typeof l&&(r=l(r._payload)),i.isValidElement(r)){var a;let e,s,l=(a=r,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(u.ref=t?(0,o.t)(t,l):l),i.cloneElement(r,u)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=i.forwardRef((e,r)=>{let{children:n,...o}=e;u(n)&&"function"==typeof l&&(n=l(n._payload));let s=i.Children.toArray(n),c=s.find(h);if(c){let e=c.props.children,n=s.map(t=>t!==c?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,a.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var d=c("Slot"),p=Symbol("radix.slottable"),f=function(e){let t=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=p,t}("Slottable");function h(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}},7876:(e,t)=>{"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=n?40*n:t,l=i?40*i:r,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},7913:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n,i=r(5729),o=r(5896),a=(n||(n=r.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,r]=i.useState(a());return(0,o.N)(()=>{e||r(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},7921:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(5729),i=r(1753),o=r(7989),a=r(6626);let s=(e,t)=>{let{rfkId:r,instanceId:s}=(0,o.A)(),l=(0,a.n)(e,t);(0,n.useEffect)(()=>{let e={handleAction(e){let{rfkId:t,instanceId:n}=e.payload;t&&(t!==r||n!==s)||l.current(e)}};return i.Ay.register(e),()=>i.Ay.unregister(e)},[r,s,l])}},8001:(e,t,r)=>{"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}r.d(t,{$:()=>d});var i=function e(t,r){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=n({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+=";
266 "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+a}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(n[s]=t.read(a,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){i(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),o=r(5729),a=r(5401),s=r(7086),l=r(9339);let u=new Map,c=(e,t,r)=>{let n=u.get(e);if(n)for(let e of n)e!==r&&e(t)};function d(e,t={}){var r;let{initializeWithValue:n=!0,...p}=t;l.Bd||(n=!1);let f=(0,s.J)({set(t){g(t),i.set(e,t,p),c(e,t,g)},remove(){g(null),i.remove(e,p),c(e,null,g)},fetchVal:()=>i.get(e)??null,fetch(){let t=f.current.fetchVal();g(t),c(e,t,g)}}),h=(0,a.S)(),[m,g]=(0,o.useState)(h&&n?f.current.fetchVal():void 0);return r=()=>{n||f.current.fetch()},(0,o.useEffect)(()=>{r()},[]),(0,o.useEffect)(()=>{let t;return(t=u.get(e))||(t=new Set,u.set(e,t)),t.add(g),()=>{let t=u.get(e);t&&(t.delete(g),0===t.size&&u.delete(e))}},[e]),[m,(0,o.useCallback)(e=>{f.current.set(e)},[]),(0,o.useCallback)(()=>{f.current.remove()},[]),(0,o.useCallback)(()=>{f.current.fetch()},[])]}},8201:(e,t,r)=>{"use strict";r.d(t,{S:()=>o,n:()=>a});var n=r(5729),i=r(9376);function o(e){return function(t){return function(r){return n.createElement(i.q3.Consumer,null,i=>n.createElement(t,Object.assign({},r,{sitecoreContext:i.context,api:i.api,updateSitecoreContext:e&&e.updatable&&i.setContext})))}}}function a(e){let t=n.useContext(i.q3),r=null==e?void 0:e.updatable;return{api:t.api,sitecoreContext:t.context,updateSitecoreContext:r?t.setContext:void 0}}},8224:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;class r extends Error{constructor(e,t){super(`${r.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,r.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,r)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${e.status})`}}t.ClientError=r},8463:e=>{e.exports.qg=function(e,t){var r=(t=t||{}).preserveNumbers,n={};return(function(e){for(var t,r=[],n=0,i=/url\([^\)]+$/,o="";n<e.length;){if(-1===(t=e.indexOf(";",n))&&(t=e.length),o+=e.substring(n,t),i.test(o)){o+=";",n=t+1;continue}r.push(o),o="",n=t+1}return r})(e).map(function(e){return e.trim()}).filter(Boolean).forEach(function(e){var t,i=e.indexOf(":"),o=e.substr(0,i).trim(),a=e.substr(i+1).trim();r&&!isNaN(parseFloat(t=a))&&isFinite(t)&&(a=Number(a)),n[o]=a}),n}},8465:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let n={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function i(e={}){let t,r,o,a,s=null,l=0,u=!1,c=!1,d=!1,p=!1;function f(){if(!o){if(g()){d=!0;return}u||r.emit("autoplay:play");let{ownerWindow:e}=r.internalEngine();e.clearTimeout(l),l=e.setTimeout(w,a[r.selectedScrollSnap()]),s=new Date().getTime(),r.emit("autoplay:timerset"),u=!0}}function h(){if(!o){u&&r.emit("autoplay:stop");let{ownerWindow:e}=r.internalEngine();e.clearTimeout(l),l=0,s=null,r.emit("autoplay:timerstopped"),u=!1}}function m(){if(g())return d=u,h();d&&f()}function g(){let{ownerDocument:e}=r.internalEngine();return"hidden"===e.visibilityState}function y(){c||h()}function v(){c||f()}function b(){c=!0,h()}function E(){c=!1,f()}function w(){let{index:e}=r.internalEngine(),n=e.clone().add(1).get(),i=r.scrollSnapList().length-1,o=t.stopOnLastSnap&&n===i;if(r.canScrollNext()?r.scrollNext(p):r.scrollTo(0,p),r.emit("autoplay:select"),o)return h();f()}return{name:"autoplay",options:e,init:function(s,l){r=s;let{mergeOptions:u,optionsAtMedia:c}=l,d=u(n,i.globalOptions);if(t=c(u(d,e)),r.scrollSnapList().length<=1)return;p=t.jump,o=!1,a=function(e,t){let r=e.scrollSnapList();return"number"==typeof t?r.map(()=>t):t(r,e)}(r,t.delay);let{eventStore:g,ownerDocument:w}=r.internalEngine(),T=!!r.internalEngine().options.watchDrag,x=function(e,t){let r=e.rootNode();return t&&t(r)||r}(r,t.rootNode);g.add(w,"visibilitychange",m),T&&r.on("pointerDown",y),T&&!t.stopOn
266Interaction&&r.on("pointerUp",v),t.stopOnMouseEnter&&g.add(x,"mouseenter",b),t.stopOnMouseEnter&&!t.stopOnInteraction&&g.add(x,"mouseleave",E),t.stopOnFocusIn&&r.on("slideFocusStart",h),t.stopOnFocusIn&&!t.stopOnInteraction&&g.add(r.containerNode(),"focusout",f),t.playOnInit&&f()},destroy:function(){r.off("pointerDown",y).off("pointerUp",v).off("slideFocusStart",h),h(),o=!0,u=!1},play:function(e){void 0!==e&&(p=e),f()},stop:function(){u&&h()},reset:function(){u&&f()},isPlaying:function(){return u},timeUntilNext:function(){return s?a[r.selectedScrollSnap()]-(new Date().getTime()-s):null}}}i.globalOptions=void 0},8471:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var n=r(5729);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(r=>{let n=e[r],a=t[r];return"function"==typeof n?`${n}`==`${a}`:i(n)&&i(a)?o(n,a):n===a})}function a(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function s(e){return"number"==typeof e}function l(e){return"string"==typeof e}function u(e){return"boolean"==typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){return Math.abs(e)}function p(e){return Math.sign(e)}function f(e){return y(e).map(Number)}function h(e){return e[m(e)]}function m(e){return Math.max(0,e.length-1)}function g(e,t=0){return Array.from(Array(e),(e,r)=>t+r)}function y(e){return Object.keys(e)}function v(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function b(){let e=[],t={add:function(r,n,i,o={passive:!0}){let a;return"addEventListener"in r?(r.addEventListener(n,i,o),a=()=>r.removeEventListener(n,i,o)):(r.addListener(i),a=()=>r.removeListener(i)),e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function E(e=0,t=0){let r=d(e-t);function n(r){return r<e||r>t}return{length:r,max:t,min:e,constrain:function(r){return n(r)?r<e?e:t:r},reachedAny:n,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return r?e-r*Math.ceil((e-t)/r):e}}}function w(e){let t=e;function r(e){return s(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function T(e,t){let r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},n=t.style,i=null,o=!1;return{clear:function(){!o&&(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(o)return;let a=Math.round(100*e.direction(t))/100;a!==i&&(n.transform=r(a),i=a)},toggleActive:function(e){o=!e}}}let x={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function O(e,t,r){let n,i,o,a,N,C=e.ownerDocument,S=C.defaultView,I=function(e){function t(e,t){return function e(t,r){return[t,r].reduce((t,r)=>(y(r).forEach(n=>{let i=t[n],o=r[n],a=c(i)&&c(o);t[n]=a?e(i,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(r){let n=r.breakpoints||{},i=y(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,r)=>t(e,r),{});return t(r,i)},optionsMediaQueries:function(t){return t.map(e=>y(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(S),A=(N=[],{init:function(e,t){return(N=t.filter(({options:e})=>!1!==I.optionsAtMedia(e).active)).forEach(t=>t.init(e,I)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){N=N.filter(e=>e.destroy())}}),_=b(),R=function(){let e,t={},r={init:function(t){e=t},emit:function(n){return(t[n]||[]).forEach(t=>t(e,n)),r},off:function(e,n){return t[e]=(t[e]||[]).filter(e=>e!==n),r},on:function(e,n){return t[e]=(t[e]||[]).concat([n]),r},clear:function(){t={}}};return r}(),{mergeOptions:D,optionsAtMedia:k,optionsMediaQueries:j}=I,{on:L,off:P,emit:F}=R,M=!1,$=D(x,O.globalOptions),U=D($),V=[];function B(t,r){if(M)return;U=k($=D($,t)),V=r||V;let{container:c,slides:x}=U;o=(l(c)?e.querySelector(c):c)||e.children[0];let O=l(x)?o.querySelectorAll(x):x;a=[].slice.call(O||o.children),n=function t(r){let n=function(e,t,r,n,i,o,a){let c,x,{align:O,axis:N,direction:C,startIndex:S,loop:I,duration:A,dragFree:_,dragThreshold:R,inViewThreshold:D,slidesToScroll:k,skipSnaps:j,containScroll:L,watchResize:P,
266watchSlides:F,watchDrag:M,watchFocus:$}=o,U={measure:function(e){let{offsetTop:t,offsetLeft:r,offsetWidth:n,offsetHeight:i}=e;return{top:t,right:r+n,bottom:t+i,left:r,width:n,height:i}}},V=U.measure(t),B=r.map(U.measure),G=function(e,t){let r="rtl"===t,n="y"===e,i=!n&&r?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":r?"right":"left",endEdge:n?"bottom":r?"left":"right",measureSize:function(e){let{height:t,width:r}=e;return n?t:r},direction:function(e){return e*i}}}(N,C),q=G.measureSize(V),z={measure:function(e){return e/100*q}},H=function(e,t){let r={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(n,i){return l(e)?r[e](n):e(t,n,i)}}}(O,q),K=!I&&!!L,{slideSizes:W,slideSizesWithGaps:Q,startGap:Y,endGap:J}=function(e,t,r,n,i,o){let{measureSize:a,startEdge:s,endEdge:l}=e,u=r[0]&&i,c=function(){if(!u)return 0;let e=r[0];return d(t[s]-e[s])}(),p=u?parseFloat(o.getComputedStyle(h(n)).getPropertyValue(`margin-${l}`)):0,f=r.map(a),g=r.map((e,t,r)=>{let n=t===m(r);return t?n?f[t]+p:r[t+1][s]-e[s]:f[t]+c}).map(d);return{slideSizes:f,slideSizesWithGaps:g,startGap:c,endGap:p}}(G,V,B,r,I||!!L,i),X=function(e,t,r,n,i,o,a,l,u){let{startEdge:c,endEdge:p,direction:g}=e,y=s(r);return{groupSlides:function(e){return y?f(e).filter(e=>e%r==0).map(t=>e.slice(t,t+r)):e.length?f(e).reduce((r,s,u)=>{let f=h(r)||0,y=s===m(e),v=i[c]-o[f][c],b=i[c]-o[s][p],E=n||0!==f?0:g(a),w=d(b-(!n&&y?g(l):0)-(v+E));return u&&w>t+2&&r.push(s),y&&r.push(e.length),r},[]).map((t,r,n)=>{let i=Math.max(n[r-1]||0);return e.slice(i,t)}):[]}}}(G,q,k,I,V,B,Y,J,0),{snaps:Z,snapsAligned:ee}=function(e,t,r,n,i){let{startEdge:o,endEdge:a}=e,{groupSlides:s}=i,l=s(n).map(e=>h(e)[a]-e[0][o]).map(d).map(t.measure),u=n.map(e=>r[o]-e[o]).map(e=>-d(e)),c=s(u).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:u,snapsAligned:c}}(G,H,V,B,X),et=-h(Z)+h(Q),{snapsContained:er,scrollContainLimit:en}=function(e,t,r,n,i){let o=E(-t+e,0),a=r.map((e,t)=>{let{min:n,max:i}=o,a=o.constrain(e),s=t===m(r);return t?s||function(e,t){return 1>=d(e-t)}(n,a)?n:function(e,t){return 1>=d(e-t)}(i,a)?i:a:i}).map(e=>parseFloat(e.toFixed(3))),s=function(){let e=a[0],t=h(a);return E(a.lastIndexOf(e),a.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===n)return a;let{min:r,max:i}=s;return a.slice(r,i)}(),scrollContainLimit:s}}(q,et,ee,L,0),ei=K?er:ee,{limit:eo}=function(e,t,r){let n=t[0];return{limit:E(r?n-e:h(t),n)}}(et,ei,I),ea=function e(t,r,n){let{constrain:i}=E(0,t),o=t+1,a=s(r);function s(e){return n?d((o+e)%o):i(e)}function l(){return e(t,a,n)}let u={get:function(){return a}
266,set:function(e){return a=s(e),u},add:function(e){return l().set(a+e)},clone:l};return u}(m(ei),S,I),es=ea.clone(),el=f(r),eu=function(e,t,r,n){let i=b(),o=1e3/60,a=null,s=0,l=0;function u(e){if(!l)return;a||(a=e,r(),r());let i=e-a;for(a=e,s+=i;s>=o;)r(),s-=o;n(s/o),l&&(l=t.requestAnimationFrame(u))}function c(){t.cancelAnimationFrame(l),a=null,s=0,l=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(a=null,s=0)})},destroy:function(){c(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:r,render:n}}(n,i,()=>(({dragHandler:e,scrollBody:t,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(e.pointerDown()),t.seek()})(ex),e=>(({scrollBody:e,translate:t,location:r,offsetLocation:n,previousLocation:i,scrollLooper:o,slideLooper:a,dragHandler:s,animation:l,eventHandler:u,scrollBounds:c,options:{loop:d}},p)=>{let f=e.settled(),h=!c.shouldConstrain(),m=d?f:f&&h,g=m&&!s.pointerDown();g&&l.stop();let y=r.get()*p+i.get()*(1-p);n.set(y),d&&(o.loop(e.direction()),a.loop()),t.to(n.get()),g&&u.emit("settle"),m||u.emit("scroll")})(ex,e)),ec=ei[ea.get()],ed=w(ec),ep=w(ec),ef=w(ec),eh=w(ec),em=function(e,t,r,n,i,o){let a=0,s=0,l=i,u=.68,c=e.get(),f=0;function h(e){return l=e,g}function m(e){return u=e,g}let g={direction:function(){return s},duration:function(){return l},velocity:function(){return a},seek:function(){let t=n.get()-e.get(),i=0;return l?(r.set(e),a+=t/l,a*=u,c+=a,e.add(a),i=c-f):(a=0,r.set(n),e.set(n),i=t),s=p(i),f=c,g},settled:function(){return .001>d(n.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return h(i)},useFriction:m,useDuration:h};return g}(ed,ef,ep,eh,A,.68),eg=function(e,t,r,n,i){let{reachedAny:o,removeOffset:a,constrain:s}=n;function l(e){return e.concat().sort((e,t)=>d(e)-d(t))[0]}function u(t,n){let i=[t,t+r,t-r];if(!e)return t;if(!n)return l(i);let o=i.filter(e=>p(e)===n);return o.length?l(o):h(i)-r}return{byDistance:function(r,n){let l=i.get()+r,{index:c,distance:p}=function(r){let n=e?a(r):s(r),{index:i}=t.map((e,t)=>({diff:u(e-n,0),index:t})).sort((e,t)=>d(e.diff)-d(t.diff))[0];return{index:i,distance:n}}(l),f=!e&&o(l);if(!n||f)return{index:c,distance:r};let h=r+u(t[c]-p,0);return{index:c,distance:h}},byIndex:function(e,r){let n=u(t[e]-i.get(),r);return{index:e,distance:n}},shortcut:u}}(I,ei,et,eo,eh),ey=function(e,t,r,n,i,o,a){function s(i){let s=i.distance,l=i.index!==t.get();
266o.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(i.index),a.emit("select"))}return{distance:function(e,t){s(i.byDistance(e,t))},index:function(e,r){let n=t.clone().set(e);s(i.byIndex(n.get(),r))}}}(eu,ea,es,em,eg,eh,a),ev=function(e){let{max:t,length:r}=e;return{get:function(e){return r?-((e-t)/r):0}}}(eo),eb=b(),eE=function(e,t,r,n){let i,o={},a=null,s=null,l=!1;return{init:function(){i=new IntersectionObserver(e=>{l||(e.forEach(e=>{o[t.indexOf(e.target)]=e}),a=null,s=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),l=!0},get:function(e=!0){if(e&&a)return a;if(!e&&s)return s;let t=y(o).reduce((t,r)=>{let n=parseInt(r),{isIntersecting:i}=o[n];return(e&&i||!e&&!i)&&t.push(n),t},[]);return e&&(a=t),e||(s=t),t}}}(t,r,a,D),{slideRegistry:ew}=function(e,t,r,n,i,o){let{groupSlides:a}=i,{min:s,max:l}=n;return{slideRegistry:function(){let n=a(o);return 1===r.length?[o]:e&&"keepSnaps"!==t?n.slice(s,l).map((e,t,r)=>{let n=t===m(r);return t?n?g(m(o)-h(r)[0]+1,h(r)[0]):e:g(h(r[0])+1)}):n}()}}(K,L,ei,en,X,el),eT=function(e,t,r,n,i,o,a,l){let c={passive:!0,capture:!0},d=0;function p(e){"Tab"===e.code&&(d=new Date().getTime())}return{init:function(f){l&&(o.add(document,"keydown",p,!1),t.forEach((t,p)=>{o.add(t,"focus",t=>{(u(l)||l(f,t))&&function(t){if(new Date().getTime()-d>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;let o=r.findIndex(e=>e.includes(t));s(o)&&(i.useDuration(0),n.index(o,0),a.emit("slideFocus"))}(p)},c)}))}}}(e,r,ew,ey,em,eb,a,$),ex={ownerDocument:n,ownerWindow:i,eventHandler:a,containerRect:V,slideRects:B,animation:eu,axis:G,dragHandler:function(e,t,r,n,i,o,a,s,l,c,f,h,m,g,y,w,T,x,O){let{cross:N,direction:C}=e,S=["INPUT","SELECT","TEXTAREA"],I={passive:!1},A=b(),_=b(),R=E(50,225).constrain(g.measure(20)),D={mouse:300,touch:400},k={mouse:500,touch:600},j=y?43:25,L=!1,P=0,F=0,M=!1,$=!1,U=!1,V=!1;function B(e){if(!v(e,n)&&e.touches.length>=2)return G(e);let t=o.readPoint(e),r=o.readPoint(e,N),a=d(t-P),l=d(r-F);if(!$&&!V&&(!e.cancelable||!($=a>l)))return G(e);let u=o.pointerMove(e);a>w&&(U=!0),c.useFriction(.3).useDuration(.75),s.start(),i.add(C(u)),e.preventDefault()}function G(e){let t=f.byDistance(0,!1).index!==h.get(),r=o.pointerUp(e)*(y?k:D)[V?"mouse":"touch"],n=function(e,t){let r=h.add(-1*p(e)),n=f.byDistance(e,!y).distance;return y||d(e)<R?n:T&&t?.5*n:f.byIndex(r.get(),0).distance}(C(r),t),i=function(e,t){var r,n;if(0===e||0===t||d(e)<=d(t))return 0;let i=(r=d(e),n=d(t),d(r-n));return d(i/e)}(r,n);$=!1,M=!1,_.clear(),c.useDuration(j-10*i).useFriction(.68+i/50),l.distance(n,!y),V=!1,m.emit("pointerUp")}function q(e){U&&(e.stopPropagation(),e.preventDefault(),U=!1)}return{init:function(e){O&&A.add(t,"dragstart",e=>e.preventDefault(),I).add(t,"touchmove",()=>void 0,I).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",G).add(t,"contextmenu",G).add(t,"click",q,!0);function s(s){(u(O)||O(e,s))&&function(e){let s=v(e,n);if((V=s,U=y&&s&&!e.buttons&&L,L=d(i.get()-a.get())>=2,!s||0===e.button)&&!function(e){let t=e.nodeName||"";return S.includes(t)}(e.target)){M=!0,o.pointerDown(e),c.useFriction(0).useDuration(0),i.set(a);let n=V?r:t;_.add(n,"touchmove",B,I).add(n,"touchend",G).add(n,"mousemove",B,I).add(n,"mouseup",G),P=o.readPoint(e),F=o.readPoint(e,N),m.emit("pointerDown")}}(s)}},destroy:function(){A.clear(),_.clear()},pointerDown:function(){return M}}}(G,e,n,i,eh,function(e,t){let r,n;function i(e){return e.timeStamp}function o(r,n){let i=n||e.scroll,o=`client${"x"===i?"X":"Y"}`;return(v(r,t)?r:r.touches[0])[o]}return{pointerDown:function(e){return r=e,n=e,o(e)},pointerMove:function(e){let t=o(e)-o(n),a=i(e)-i(r)>170;return n=e,a&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;let t=o(n)-o(r),a=i(e)-i(r),s=i(e)-i(n)>170,l=t/a;return a&&!s&&d(l)>.1?l:0},readPoint:o}}(G,i),ed,eu,ey,em,eg,ea,a,z,_,R,j,0,M),eventStore:eb,percentOfView:z,index:ea,indexPrevious:es,limit:eo,location:ed,offsetLocation:ef,previousLocation:ep,options:o,resizeHandler:function(e,t,r,n,i,o,a){let s,l,c=[e].concat(n),p=[],f=!1;function h(e){return i.measureSize(a.measure(e))}return{init:function(i){o&&(l=h(e),p=n.map(h),s=new ResizeObserver(r=>{(u(o)||o(i,r))&&function(r){for(let o of r){if(f)return;let r=o.target===e,a=n.indexOf(o.target),s=r?l:p[a];if(d(h(r?e:n[a])-s)>=.5){i.reInit(),t.emit("resize");break}}}(r)}),r.requestAnimationFrame(()=>
266{c.forEach(e=>s.observe(e))}))},destroy:function(){f=!0,s&&s.disconnect()}}}(t,a,i,r,G,P,U),scrollBody:em,scrollBounds:function(e,t,r,n,i){let o=i.measure(10),a=i.measure(50),s=E(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(r.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(i){if(!u())return;let l=e.reachedMin(t.get())?"min":"max",c=d(e[l]-t.get()),p=r.get()-t.get(),f=s.constrain(c/a);r.subtract(p*f),!i&&d(p)<o&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(eo,ef,eh,em,z),scrollLooper:function(e,t,r,n){let{reachedMin:i,reachedMax:o}=E(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?o(r.get()):-1===t&&i(r.get())))return;let a=-1*t*e;n.forEach(e=>e.add(a))}}}(et,eo,ef,[ed,ef,ep,eh]),scrollProgress:ev,scrollSnapList:ei.map(ev.get),scrollSnaps:ei,scrollTarget:eg,scrollTo:ey,slideLooper:function(e,t,r,n,i,o,a,s,l){let u=f(i),c=f(i).reverse(),d=m(h(c,a[0]),r,!1).concat(m(h(u,t-a[0]-1),-r,!0));function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function h(e,t){return e.reduce((e,r)=>p(e,t)>0?e.concat([r]):e,[])}function m(i,a,u){let c=o.map((e,r)=>({start:e-n[r]+.5+a,end:e+t-.5+a}));return i.map(t=>{let n=u?0:-r,i=u?r:0,o=c[t][u?"end":"start"];return{index:t,loopPoint:o,slideLocation:w(-1),translate:T(e,l[t]),target:()=>s.get()>o?n:i}})}return{canLoop:function(){return d.every(({index:e})=>.1>=p(u.filter(t=>t!==e),t))},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{let{target:t,translate:r,slideLocation:n}=e,i=t();i!==n.get()&&(r.to(i),n.set(i))})},loopPoints:d}}(G,q,et,W,Q,Z,ei,ef,r),slideFocus:eT,slidesHandler:(x=!1,{init:function(e){F&&(c=new MutationObserver(t=>{!x&&(u(F)||F(e,t))&&function(t){for(let r of t)if("childList"===r.type){e.reInit(),a.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){c&&c.disconnect(),x=!0}}),slidesInView:eE,slideIndexes:el,slideRegistry:ew,slidesToScroll:X,target:eh,translate:T(G,t)};return ex}(e,o,a,C,S,r,R);return r.loop&&!n.slideLooper.canLoop()?t(Object.assign({},r,{loop:!1})):n}(U),j([$,...V.map(({options:e})=>e)]).forEach(e=>_.add(e,"change",G)),U.active&&(n.translate.to(n.location.get()),n.animation.init(),n.slidesInView.init(),n.slideFocus.init(K),n.eventHandler.init(K),n.resizeHandler.init(K),n.slidesHandler.init(K),n.options.loop&&n.slideLooper.loop(),o.offsetParent&&a.length&&n.dragHandler.init(K),i=A.init(K,V))}function G(e,t){let r=H();q(),B(D({startIndex:r},e),t),R.emit("reInit")}function q(){n.dragHandler.destroy(),n.eventStore.clear(),n.translate.clear(),n.slideLooper.clear(),n.resizeHandler.destroy(),n.slidesHandler.destroy(),n.slidesInView.destroy(),n.animation.destroy(),A.destroy(),_.clear()}function z(e,t,r){U.active&&!M&&(n.scrollBody.useBaseFriction().useDuration(!0===t?0:U.duration),n.scrollTo.index(e,r||0))}function H(){return n.index.get()}let K={canScrollNext:function(){return n.index.add(1).get()!==H()},canScrollPrev:function(){return n.index.add(-1).get()!==H()},containerNode:function(){return o},internalEngine:function(){return n},destroy:function(){M||(M=!0,_.clear(),q(),R.emit("destroy"),R.clear())},off:P,on:L,emit:F,plugins:function(){return i},previousScrollSnap:function(){return n.indexPrevious.get()},reInit:G,rootNode:function(){return e},scrollNext:function(e){z(n.index.add(1).get(),e,-1)},scrollPrev:function(e){z(n.index.add(-1).get(),e,1)},scrollProgress:function(){return n.scrollProgress.get(n.offsetLocation.get())},scrollSnapList:function(){return n.scrollSnapList},scrollTo:z,selectedScrollSnap:H,slideNodes:function(){return a},slidesInView:function(){return n.slidesInView.get()},slidesNotInView:function(){return n.slidesInView.get(!1)}};return B(t,r),setTimeout(()=>R.emit("init"),0),K}function N(e={}
266,t=[]){let r=(0,n.useRef)(e),i=(0,n.useRef)(t),[s,l]=(0,n.useState)(),[u,c]=(0,n.useState)(),d=(0,n.useCallback)(()=>{s&&s.reInit(r.current,i.current)},[s]);return(0,n.useEffect)(()=>{o(r.current,e)||(r.current=e,d())},[e,d]),(0,n.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let r=a(e),n=a(t);return r.every((e,t)=>o(e,n[t]))}(i.current,t)&&(i.current=t,d())},[t,d]),(0,n.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){O.globalOptions=N.globalOptions;let e=O(u,r.current,i.current);return l(e),()=>e.destroy()}l(void 0)},[u,l]),[c,s]}O.globalOptions=void 0,N.globalOptions=void 0},8521:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getJssPagesClientData=t.handleEditorAnchors=t.resetEditorChromes=t.isEditorActive=t.HorizonEditor=t.ChromeRediscoveryGlobalFunctionName=t.ExperienceEditor=t.EDITING_ALLOWED_ORIGINS=t.PAGES_EDITING_MARKER=t.QUERY_PARAM_EDITING_SECRET=t.DEFAULT_PLACEHOLDER_UID=void 0;let i=n(r(6737));t.DEFAULT_PLACEHOLDER_UID="00000000-0000-0000-0000-000000000000",t.QUERY_PARAM_EDITING_SECRET="secret",t.PAGES_EDITING_MARKER="jss-hrz-editing",t.EDITING_ALLOWED_ORIGINS=["https://pages.sitecorecloud.io"];class o{static isActive(){if((0,i.default)())return!1;let e=window.Sitecore;return!!(e&&e.PageModes&&e.PageModes.ChromeManager)}static resetChromes(){(0,i.default)()||window.Sitecore.PageModes.ChromeManager.resetChromes()}}t.ExperienceEditor=o,t.ChromeRediscoveryGlobalFunctionName={name:"Sitecore.Horizon.ResetChromes"};class a{static isActive(){return!(0,i.default)()&&(window.location.search.indexOf("sc_headless_mode=edit")>-1||!!window.document.getElementById(t.PAGES_EDITING_MARKER))}static resetChromes(){!(0,i.default)()&&window[t.ChromeRediscoveryGlobalFunctionName.name]&&window[t.ChromeRediscoveryGlobalFunctionName.name]()}}t.HorizonEditor=a,t.isEditorActive=()=>o.isActive()||a.isActive(),t.resetEditorChromes=()=>{o.isActive()?o.resetChromes():a.isActive()&&a.resetChromes()},t.handleEditorAnchors=()=>{if(!window||!o.isActive())return;let e=document.querySelector("body"),t=new MutationObserver(e=>{e.forEach(e=>{let t=document.querySelectorAll('.scChromeDropDown > a[href="#"], .scChromeDropDown > a[href="#!"], a[onclick]');"childList"===e.type&&t.forEach(e=>{e.href="javascript:void(0);"})})});e&&t.observe(e,{childList:!0,subtree:!0})},t.getJssPagesClientData=()=>{let e={};return e[t.PAGES_EDITING_MARKER]={},e}},8572:function(e,t,r){"use strict";var n,i=r(9143),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.enableDebug=void 0;let a=o(r(1488)),s=o(r(6737)),l="sitecore-jss";(0,s.default)()&&(null==(n=null==i?void 0:i.env)?void 0:n.DEBUG_MULTILINE)==="true"&&a.default.formatters.o&&a.default.formatters.O&&(a.default.formatters.o=a.default.formatters.O),t.enableDebug=e=>a.default.enable(e),t.default={form:(0,a.default)(`${l}:form`),common:(0,a.default)(`${l}:common`),http:(0,a.default)(`${l}:http`),layout:(0,a.default)(`${l}:layout`),dictionary:(0,a.default)(`${l}:dictionary`),editing:(0,a.default)(`${l}:editing`),sitemap:(0,a.default)(`${l}:sitemap`),multisite:(0,a.default)(`${l}:multisite`),robots:(0,a.default)(`${l}:robots`),redirects:(0,a.default)(`${l}:redirects`),personalize:(0,a.default)(`${l}:personalize`),errorpages:(0,a.default)(`${l}:errorpages`),proxy:(0,a.default)(`${l}:proxy`)}},8588:(e,t,r)=>{e.exports=r(2601)},8617:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DATE_FIELD_VALUE=t.isDynamicPlaceholder=t.getDynamicPlaceholderPattern=void 0,t.getFieldValue=function(e,t,r){if(!e||!t)return r;let n=e[t];return n&&void 0!==n.value?n.value:e.fields&&e.fields[t]&&void 0!==e.fields[t].value?e.fields[t].value:r},t.getChildPlaceholder=function(e,t){return e&&t&&e.placeholders&&e.placeholders[t]?e.placeholders[t]:[]},t.isFieldValueEmpty=function(e){let r=e=>"string"==typeof e?e===t.EMPTY_DATE_FIELD_VALUE:!("function"==typeof(null==e?void 0:e.getMonth)&&!isNaN(null==e?void 0:e.getMonth())),n=e=>null==e||("object"==typeof e?!e.src&&!e.src&&!e.href&&r(e):"number"!=typeof e&&"boolean"!=typeof e&&(!e||r(e)));return!e||n(void 0!==e.value?e.value:e)},t.getDynamicPlaceholderPattern=e=>RegExp(`^${e.replace(/\{\*\}+/i,"\\d+")}$`),t.isDynamicPlaceholder=e=>-1!==e.indexOf("{*}"),t.EMPTY_DATE_FIELD_VALUE="0001-01-01T00:00:00Z"},8709:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esMo
266dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSrcSet=t.updateImageUrl=t.replaceMediaUrlPrefix=t.getRequiredParams=t.findEditorImageTag=void 0;let i=n(r(5575)),o=n(r(2853)),a=/<img([^>]+)\/>/i,s=/([^=\s]+)(="([^"]*)")?/gi,l=/\/([-~]{1})\/media\//i;t.findEditorImageTag=e=>{let t=e.match(a);if(!t||t.length<2)return null;let r={},n=s.exec(t[1]);for(;null!==n;)r[n[1]]=(0,i.default)(n[3]),n=s.exec(t[1]);return{imgTag:t[0],attrs:r}},t.getRequiredParams=e=>{let{rev:t,db:r,la:n,vs:i,ts:o}=e;return{rev:t,db:r,la:n,vs:i,ts:o}},t.replaceMediaUrlPrefix=(e,t=l)=>{let r=(0,o.default)(e,{},!0),n=t.exec(r.pathname);return n&&n.length>1&&r.set("pathname",r.pathname.replace(t,`/${n[1]}/jssmedia/`)),r.toString()},t.updateImageUrl=(e,r,n=l)=>{if(!r||0===Object.keys(r).length)return e;"undefined"==typeof window||window.global||(window.global={});let i=(0,o.default)((0,t.replaceMediaUrlPrefix)(e,n),{},!0),a=(0,t.getRequiredParams)(i.query),s=Object.assign({},r);return Object.entries(a).forEach(([e,t])=>{t&&(s[e]=t)}),i.set("query",s),i.toString()},t.getSrcSet=(e,r,n,i)=>r.map(r=>{let o=Object.assign(Object.assign({},n),r),a=o.w||o.mw;return a?`${(0,t.updateImageUrl)(e,o,i)} ${a}w`:null}).filter(e=>e).join(", ")},8719:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(5729);function i(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},8749:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var n=r(5729),i=r(41),o=r(5896),a=e=>{let{present:t,children:r}=e,a=function(e){var t,r;let[i,a]=n.useState(),l=n.useRef(null),u=n.useRef(e),c=n.useRef("none"),[d,p]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>r[e][t]??e,t));return n.useEffect(()=>{let e=s(l.current);c.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=l.current,r=u.current;if(r!==e){let n=c.current,i=s(t);e?p("MOUNT"):"none"===i||t?.display==="none"?p("UNMOUNT"):r&&n!==i?p("ANIMATION_OUT"):p("UNMOUNT"),u.current=e}},[e,p]),(0,o.N)(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,r=r=>{let n=s(l.current).includes(CSS.escape(r.animationName));if(r.target===i&&n&&(p("ANIMATION_END"),!u.current)){let r=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=r)})}},n=e=>{e.target===i&&(c.current=s(l.current))};return i.addEventListener("animationstart",n),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",n),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}p("ANIMATION_END")},[i,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(t),l="function"==typeof r?r({present:a.isPresent}):n.Children.only(r),u=(0,i.s)(a.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof r||a.isPresent?n.cloneElement(l,{ref:u}):null};function s(e){return e?.animationName||"none"}a.displayName="Presence"},8876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return i}});let n=r(2034);function i(e,t,i,o){{let a=r(6828).normalizeLocalePath,s=r(7199).detectDomainLocale,l=t||a(e,i).detectedLocale,u=s(o,void 0,l);if(u){let t="http"+(u.http?"":"s")+"://",r=l===u.defaultLocale?"":"/"+l;return""+t+u.domain+(0,n.normalizePathTrailingSlash)("/society"+r+e)}return!1}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8933:(e,t,r)=>{"use strict";r.d(t,{V$:()=>A,YW:()=>_,bQ:()=>R,nw:()=>I,bL:()=>S});var n=r(6029),i=r(5729),o=r(9829),a=r(7454),s=r(6697);let l=(e,t)=>
266{let r=[];for(let n=1;n<=e;n++)r.push({page:n,isCurrent:n===t});return r},u=(e,t)=>({"data-current":e===t}),c="Pagination",[d,p]=(0,o.A)(c),[f,h]=d(c),m=e=>`#${e}`,g=i.forwardRef((e,t)=>{let{__scopePagination:r,totalPages:o,currentPage:u,defaultCurrentPage:c,onPageChange:d,href:p=m,...h}=e,g=(({onPageChange:e,totalPages:t=0,defaultCurrentPage:r,currentPage:n})=>{let[o=n||r||1,a]=(0,s.i)({prop:n,defaultProp:r??1,onChange:e}),[u,c]=(0,i.useState)(()=>l(t,o));(0,i.useEffect)(()=>{o>t&&a(t)},[o]),(0,i.useEffect)(()=>{c(l(t,o))},[t,o]);let d=o<t,p=o>1,f=p?o-1:o,h=d?o+1:o;return{currentPage:o,totalPages:t,pages:u,hasPrev:p,hasNext:d,setPage:a,prevPage:f,nextPage:h}})({totalPages:o,currentPage:u,defaultCurrentPage:c,onPageChange:d});return(0,n.jsx)(f,{scope:r,...g,hrefFunc:p,children:(0,n.jsx)(a.sG.nav,{"aria-label":"pagination",...h,ref:t})})});g.displayName=c;let y="PaginationFirstPage";i.forwardRef((e,t)=>{let{__scopePagination:r,children:o,...s}=e,{hrefFunc:l,currentPage:c,setPage:d}=h(y,r),p=(0,i.useCallback)(e=>{s.onClick?.(e),d(1)},[d,s.onClick]);return(0,n.jsx)(a.sG.a,{ref:t,"aria-disabled":1===c,...u(1,c),"data-page":1,href:l(1),...s,onClick:p,children:"function"==typeof o?o(1):o})}).displayName=y;let v="PaginationLastPage";i.forwardRef((e,t)=>{let{__scopePagination:r,children:o,...s}=e,{hrefFunc:l,totalPages:c,currentPage:d,setPage:p}=h(v,r),f=(0,i.useCallback)(e=>{s.onClick?.(e),p(c)},[p,c,s.onClick]);return(0,n.jsx)(a.sG.a,{ref:t,"aria-disabled":c===d,...u(c,d),"data-page":c,href:l(c),...s,onClick:f,children:"function"==typeof o?o(c):o})}).displayName=v;let b="PaginationPrevPage",E=i.forwardRef((e,t)=>{let{__scopePagination:r,children:o,...s}=e,{currentPage:l,prevPage:c,hrefFunc:d,setPage:p}=h(b,r),f=(0,i.useCallback)(e=>{s.onClick?.(e),p(c)},[s.onClick,p,c]);return(0,n.jsx)(a.sG.a,{ref:t,"aria-disabled":c===l,...u(c,l),"data-page":c,href:d(c),...s,onClick:f,children:"function"==typeof o?o(c):o})});E.displayName=b;let w="PaginationNextPage",T=i.forwardRef((e,t)=>{let{__scopePagination:r,children:o,...s}=e,{currentPage:l,nextPage:c,hrefFunc:d,setPage:p}=h(w,r),f=(0,i.useCallback)(e=>{s.onClick?.(e),p(c)},[s.onClick,p,c]);return(0,n.jsx)(a.sG.a,{ref:t,"aria-disabled":c===l,...u(c,l),"data-page":c,href:d(c),...s,onClick:f,children:"function"==typeof o?o(c):o})});T.displayName=w;let x="PaginationPages",O=i.forwardRef((e,t)=>{let{__scopePagination:r,children:i,...o}=e,s=h(x,r);return(0,n.jsx)(a.sG.div,{ref:t,...o,children:"function"==typeof i?i(s):i})});O.displayName=x;let N="PaginationPage",C=i.forwardRef((e,t)=>{let{__scopePagination:r,page:o,...s}=e,{currentPage:l,setPage:c,hrefFunc:d}=h(N,r),p=(0,i.useCallback)(e=>{s.onClick?.(e),c(o)},[s.onClick,c,o]);return(0,n.jsx)(a.sG.a,{ref:t,...o===l?{"aria-current":"page"}:{},...u(o,l),"data-page":o,href:d(o),...s,onClick:p})});C.displayName=N,i.forwardRef((e,t)=>{let{__scopePagination:r,...i}=e;return(0,n.jsx)(a.sG.span,{ref:t,...i})}).displayName="PaginationTruncate";let S=g,I=E,A=T,_=C,R=O},8988:(e,t,r)=>{"use strict";r.d(t,{Yy:()=>o,bW:()=>a,oW:()=>n,xt:()=>i});class n{}class i extends n{constructor(e,t,r=[]){super(),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"values",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.type=e,this.name=t,this.values=r}add(e){this.values.push(e)}getName(){return this.name}getType(){return this.type}getValues(){return this.values}toJson(){return{type:this.type,name:this.name,values:this.values}}}class o extends n{constructor(e,t,r){super(),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.type=e,this.name=t,this.value=r}getType(){return this.type}getName(){return this.name}getValue(){return this.value}toJson(){return{type:this.type,name:this.name,value:this.value}}}class a extends n{constructor(e,t){super(),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"filters",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.type=e,this.filters=t}add(e){this.filters.push(e)}get(){return this.filters}getType(){return this.type}
266toJson(){return{type:this.type,filters:this.filters.map(e=>e.toJson())}}}},9051:(e,t,r)=>{"use strict";var n;r.d(t,{Xq:()=>i,YR:()=>o}),function(e){e.JssApp="061cba1554744b918a0617903b102b82",e.DictionaryEntry="6d1cd89719364a3aa511289a94c2a7b1"}(n||(n={}));let i="https://edge-platform.sitecorecloud.io",o="Hidden Rendering"},9058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(5729);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9198:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2732);let i=()=>(0,n.A)().actions},9208:(e,t,r)=>{"use strict";r.d(t,{l:()=>o});var n=r(5729),i=r(7086);function o(e){let t=(0,i.J)(e);(0,n.useEffect)(()=>()=>{t.current()},[])}},9235:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDesignLibraryStylesheetLinks=t.GRAPHQL_LAYOUT_QUERY_NAME=t.GraphQLLayoutService=t.RestLayoutService=t.getContentStylesheetLink=t.EMPTY_DATE_FIELD_VALUE=t.getDynamicPlaceholderPattern=t.isDynamicPlaceholder=t.isFieldValueEmpty=t.getChildPlaceholder=t.getFieldValue=t.EDITING_COMPONENT_ID=t.EDITING_COMPONENT_PLACEHOLDER=t.RenderingType=t.EditMode=t.LayoutServicePageState=void 0;var n=r(4782);Object.defineProperty(t,"LayoutServicePageState",{enumerable:!0,get:function(){return n.LayoutServicePageState}}),Object.defineProperty(t,"EditMode",{enumerable:!0,get:function(){return n.EditMode}}),Object.defineProperty(t,"RenderingType",{enumerable:!0,get:function(){return n.RenderingType}}),Object.defineProperty(t,"EDITING_COMPONENT_PLACEHOLDER",{enumerable:!0,get:function(){return n.EDITING_COMPONENT_PLACEHOLDER}}),Object.defineProperty(t,"EDITING_COMPONENT_ID",{enumerable:!0,get:function(){return n.EDITING_COMPONENT_ID}});var i=r(8617);Object.defineProperty(t,"getFieldValue",{enumerable:!0,get:function(){return i.getFieldValue}}),Object.defineProperty(t,"getChildPlaceholder",{enumerable:!0,get:function(){return i.getChildPlaceholder}}),Object.defineProperty(t,"isFieldValueEmpty",{enumerable:!0,get:function(){return i.isFieldValueEmpty}}),Object.defineProperty(t,"isDynamicPlaceholder",{enumerable:!0,get:function(){return i.isDynamicPlaceholder}}),Object.defineProperty(t,"getDynamicPlaceholderPattern",{enumerable:!0,get:function(){return i.getDynamicPlaceholderPattern}}),Object.defineProperty(t,"EMPTY_DATE_FIELD_VALUE",{enumerable:!0,get:function(){return i.EMPTY_DATE_FIELD_VALUE}});var o=r(9934);Object.defineProperty(t,"getContentStylesheetLink",{enumerable:!0,get:function(){return o.getContentStylesheetLink}});var a=r(5037);Object.defineProperty(t,"RestLayoutService",{enumerable:!0,get:function(){return a.RestLayoutService}});var s=r(6020);Object.defineProperty(t,"GraphQLLayoutService",{enumerable:!0,get:function(){return s.GraphQLLayoutService}}),Object.defineProperty(t,"GRAPHQL_LAYOUT_QUERY_NAME",{enumerable:!0,get:function(){return s.GRAPHQL_LAYOUT_QUERY_NAME}});var l=r(2);Object.defineProperty(t,"getDesignLibraryStylesheetLinks",{enumerable:!0,get:function(){return l.getDesignLibraryStylesheetLinks}})},9339:(e,t,r)=>{"use strict";r.d(t,{Bd:()=>i,lQ:()=>n});let n=()=>{},i="undefined"!=typeof globalThis&&"undefined"!=typeof navigator&&"undefined"!=typeof document},9376:(e,t,r)=>{"use strict";r.d(t,{Ge:()=>u,Gu:()=>l,q3:()=>s});var n=r(5729),i=r(6258),o=r.n(i),a=r(9051);let s=n.createContext({}),l=n.createContext({});class u extends n.Component{constructor(e){var t,r,n,i;super(e),this.setContext=e=>{this.setState({context:e.sitecore?this.constructContext(e):Object.assign({},e)})};let o=this.constructContext(e.layoutData),s=e.api;(null==(r=null==(t=e.api)?void 0:t.edge)?void 0:r.contextId)&&!(null==(i=null==(n=e.api)?void 0:n.edge)?void 0:i.edgeUrl)&&(s=Object.assign(Object.assign({},e.api),{edge:Object.assign(Object.assign({},e.api.edge),{edgeUrl:a.Xq})})),this.state={context:o,setContext:this.setContext,api:s}}constructContext(e){var t;return e?Object.assign({route:e.sitecore.route,itemId:null==(t=e.sitecore.route)?void 0:t.itemId},e.sitecore.context):{pageEditing:!1}}componentDidUpdate(e){if(!o()(e.layoutData,this.props.layoutData))return void this.setContext(this.props.layoutData)}render(){return n.createElement(l.Provider,{value:this.props.componentFactory},n.createElement(s.Provider,{value:this.state},this.props.children))}}
266u.displayName="SitecoreContext"},9613:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(5729);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},9733:(e,t,r)=>{"use strict";r.d(t,{w:()=>s});var n=r(5729),i=r(9235),o=r(8201);let a=()=>n.createElement("div",{className:"sc-jss-editing-error",role:"alert"},"Datasource is required. Please choose a content item for this component.");function s(e){return function(t){return function(r){var s,l;let{sitecoreContext:u}=(0,o.n)(),c=null!=(s=null==e?void 0:e.editingErrorComponent)?s:a;return(null==u?void 0:u.renderingType)===i.RenderingType.Component||(null==(l=r.rendering)?void 0:l.dataSource)?n.createElement(t,Object.assign({},r)):u.pageEditing?n.createElement(c,null):null}}}},9777:(e,t,r)=>{"use strict";r.d(t,{B$:()=>s,f_:()=>a,ns:()=>l,q1:()=>u});var n=r(9235),i=r(8463),o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let a=e=>e?Object.keys(e).reduce((t,r)=>{switch(r){case"class":t.className=e.class;break;case"style":t.style=((e="")=>{let t=(0,i.qg)(e,{preserveNumbers:!0});return Object.keys(t).reduce((e,r)=>(e[r.replace(/^.|-./g,(e,t)=>0===t?e.toLowerCase():e.substr(1).toUpperCase())]=t[r],e),{})})(e.style);break;default:t[r]=e[r]}return t},{}):[],s=e=>{if(e.class){if(e.className){let t=e.className;t+=` ${e.class}`,e.className=t}else e.className=e.class;delete e.class}},l=e=>{let{className:t}=e,r=Object.entries(o(e,["className"])).map(([e,t])=>{if("object"==typeof t){let r=JSON.stringify(t).replace(/"|{|}/g,"").replace(/,/g,";");return`${e}="${r}"`}return`${e}="${t}"`});return t&&r.push(`class="${t}"`),r.join(" ")},u=e=>{let t={};return Object.entries(e).reduce((t,[r])=>(t[r]=(0,n.getFieldValue)(e,r),t),t)}},9822:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.HIDDEN_RENDERING_NAME=t.SITECORE_EDGE_URL_DEFAULT=t.siteNameError=t.JSS_MODE=t.FETCH_WITH=t.SitecoreTemplateId=void 0,function(e){e.JssApp="061cba1554744b918a0617903b102b82",e.DictionaryEntry="6d1cd89719364a3aa511289a94c2a7b1"}(r||(t.SitecoreTemplateId=r={})),t.FETCH_WITH={GRAPHQL:"GraphQL",REST:"REST"},t.JSS_MODE={CONNECTED:"connected",DISCONNECTED:"disconnected"},t.siteNameError="The siteName cannot be empty",t.SITECORE_EDGE_URL_DEFAULT="https://edge-platform.sitecorecloud.io",t.HIDDEN_RENDERING_NAME="Hidden Rendering"},9829:(e,t,r)=>{"use strict";r.d(t,{A:()=>a,q:()=>o});var n=r(5729),i=r(6029);function o(e,t){let r=n.createContext(t),o=e=>{let{children:t,...o}=e,a=n.useMemo(()=>o,Object.values(o));return(0,i.jsx)(r.Provider,{value:a,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=n.useContext(r);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return o.scopeName=e,[function(t,o){let a=n.createContext(o),s=r.length;r=[...r,o];let l=t=>{let{scope:r,children:o,...l}=t,u=r?.[e]?.[s]||a,c=n.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})};return l.displayName=t+"Provider",[l,function(r,i){let l=i?.[e]?.[s]||a,u=n.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(o,...t)]}},9839:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RestComponentLayoutService=void 0;let i=r(5228),o=n(r(8572)),a=r(9822),s=r(5785),l=r(3934);class u{constructor(e){this.config=e}fetchComponentData(e){let t={debugger:o.default.layout},r=new i.NativeDataFetcher(t);o.default.layout("fetching component with uid %s for %s %s %s %s",e.componentUid,e.itemId,e.language,e.siteName,e.dataSourceId);let n=this.getFetchUrl(e);return r.get(n,{headers:{sc_editMode:`${e.mode===l.DesignLibraryMode.Metadata}`}}
266).then(e=>e.data).catch(e=>{var t;if((null==(t=e.response)?void 0:t.status)===404)return e.response.data;throw e})}getComponentFetchParams(e){return JSON.parse(JSON.stringify({sitecoreContextId:this.config.sitecoreEdgeContextId,item:e.itemId,uid:e.componentUid,dataSourceId:e.dataSourceId,renderingItemId:e.renderingId,version:e.version,sc_site:e.siteName,sc_lang:e.language||"en"}))}getFetchUrl(e){return(0,s.resolveUrl)(`${this.config.sitecoreEdgeUrl||a.SITECORE_EDGE_URL_DEFAULT}/layout/component`,this.getComponentFetchParams(e))}}t.RestComponentLayoutService=u},9907:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseError=void 0,t.fetchData=function(e,t){return n(this,arguments,void 0,function*(e,t,r={}){return(yield t((0,i.resolveUrl)(e,r))).data})};let i=r(1548);class o extends Error{constructor(e,t){super(e),Object.setPrototypeOf(this,o.prototype),this.response=t}}t.ResponseError=o},9934:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseComponent=t.traverseField=t.traversePlaceholder=t.getContentStylesheetUrl=t.getContentStylesheetLink=void 0;let n=r(9822),i=/class=".*(\bck-content\b).*"/g;t.getContentStylesheetLink=(e,r,i=n.SITECORE_EDGE_URL_DEFAULT)=>{if(!e.sitecore.route)return null;let o={loadStyles:!1};return((0,t.traverseComponent)(e.sitecore.route,o),o.loadStyles)?{href:(0,t.getContentStylesheetUrl)(r,i),rel:"stylesheet"}:null},t.getContentStylesheetUrl=(e,t=n.SITECORE_EDGE_URL_DEFAULT)=>`${t}/v1/files/pages/styles/content-styles.css?sitecoreContextId=${e}`,t.traversePlaceholder=(e,r)=>{r.loadStyles||e.forEach(e=>{(0,t.traverseComponent)(e,r)})},t.traverseField=(e,r)=>{e&&"object"==typeof e&&!r.loadStyles&&("editable"in e&&e.editable?r.loadStyles=i.test(e.editable):"value"in e&&"string"==typeof e.value?r.loadStyles=i.test(e.value):"fields"in e?Object.values(e.fields).forEach(e=>{(0,t.traverseField)(e,r)}):Array.isArray(e)&&e.forEach(e=>{(0,t.traverseField)(e,r)}))},t.traverseComponent=(e,r)=>{if(r.loadStyles)return;"fields"in e&&e.fields&&Object.values(e.fields).forEach(e=>{(0,t.traverseField)(e,r)});let n=e.placeholders||{};Object.keys(n).forEach(e=>{(0,t.traversePlaceholder)(n[e],r)})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.