PageSourceSearch

https://www.brembogroup.com/_next/static/chunks/pages/_app-4ad89feb7b79d9a3.js

js brembogroup.com collected 2026-10-02 17:31:48 UTC 588,982 bytes, 139 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{4062:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Context=void 0;let n=r(6953);class i{constructor(e){this.props=e,this.isInitialized=!1,this.sdks={},this.sdkPromises={},this.sdkErrors={},this.getSDK=e=>this.sdkPromises[e]?this.sdkPromises[e].then(t=>this.sdkErrors[e]&&Promise.reject(this.sdkErrors[e])||Promise.resolve(t)):Promise.reject(`Unknown SDK '${String(e)}'`),this.sitecoreEdgeUrl=e.sitecoreEdgeUrl,this.sitecoreEdgeContextId=e.sitecoreEdgeContextId,this.siteName=e.siteName,this.pageState=n.LayoutServicePageState.Normal}init(e={}){if(!this.isInitialized)for(let t of(this.isInitialized=!0,e.siteName&&(this.siteName=e.siteName),e.pageState&&(this.pageState=e.pageState),Object.keys(this.props.sdks)))this.initSDK(t)}initSDK(e){this.sdkPromises[e]=new Promise(t=>{this.props.sdks[e].init(this).then(()=>{this.sdks[e]=this.props.sdks[e].sdk,t(this.sdks[e])}).catch(r=>{this.sdkErrors[e]=r,t(void 0)})})}}t.Context=i},18790:function(e,t,r){"use strict";t._=void 0;var n=r(4062);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n.Context}})},64153:function(e,t,r){"use strict";r.d(t,{YM:function(){return c},bu:function(){return a},uW:function(){return l}});var n=r(67294),i=r(2835),o=r(49081),s=r(64351);let a="BYOCComponent",u=e=>{var t;return n.createElement("div",null,"A rendering error occurred: ",null===(t=e.error)||void 0===t?void 0:t.message,".")};class c 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 a=this.props;if(this.state.error)return this.props.errorComponent?n.createElement(this.props.errorComponent,{error:this.state.error}):n.createElement(u,{error:this.state.error});let{ComponentName:c}=a.params||{};if(!c){let e={errorOverride:"BYOC: The ComponentName for this rendering is missing"};return a.missingComponentComponent?n.createElement(this.props.missingComponentComponent,Object.assign({},e)):n.createElement(o.V,Object.assign({},e))}let l={rendering:{componentName:c},errorOverride:"BYOC: This component was not registered."},d=this.props.missingComponentComponent?n.createElement(this.props.missingComponentComponent,Object.assign({},l)):n.createElement(o.V,Object.assign({},l)),h=this.props.errorComponent,f={};if(null===(e=a.params)||void 0===e?void 0:e.ComponentProps)try{f=null!==(t=JSON.parse(a.params.ComponentProps))&&void 0!==t?t:{}}catch(e){return console.error(`Parsing props for ${c} component from rendering params failed. Error: ${e}`),h?n.createElement(h,{error:e}):n.createElement(u,{error:e})}let p=Object.assign(Object.assign({},a.fetchedData),{_:(0,i.jw)(null!==(r=a.fields)&&void 0!==r?r:{})});return n.createElement(s.Jp,Object.assign({componentName:c,clientFallback:d,datasources:p},f))}}function l(e){var t,r,n,i;return t=this,r=void 0,n=void 0,i=function*(){let t=e.ComponentDataOverride?JSON.parse(e.ComponentDataOverride):{};return{fetchedData:yield s.sY.fetch(t||{})}},new(n||(n=Promise))(function(e,o){function s(e){try{u(i.next(e))}catch(e){o(e)}}function a(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(s,a)}u((i=i.apply(t,r||[])).next())})}},91946:function(e,t,r){"use strict";r.d(t,{P:function(){return s},w:function(){return o}});var n=r(64153),i=r(67294);let o="BYOCWrapper",s=e=>{var t,r,o;let s=null===(r=null===(t=e.params)||void 0===t?void 0:t.styles)||void 0===r?void 0:r.trimEnd(),a=null===(o=e.params)||void 0===o?void 0:o.RenderingIdentifier;return i.createElement("div",{className:s||void 0,id:a||void 0},i.createElement("div",{className:"component-content"},i.createElement(n.YM,Object.assign({},e))))}},53723:function(e,t,r){"use strict";r.d(t,{N:function(){return a}});var n=r(67294),i=r(45697),o=r.n(i),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};let a=e=>{let t;var{field:r,tag:i,editable:o,render:a}=e,u=s(e,["field","tag","editable","render"]);if(!r||!r.editable&&!r.value)return null;
1let c=Object.assign({},u);return(r.editable&&o?c.dangerouslySetInnerHTML={__html:r.editable}:t=a?a(r.value?new Date(r.value):null):r.value,i||r.editable&&o)?n.createElement(i||"span",c,t):n.createElement(n.Fragment,null,t)};a.propTypes={field:o().shape({value:o().string,editable:o().string}).isRequired,tag:o().string,editable:o().bool,render:o().func},a.defaultProps={editable:!0},a.displayName="Date"},846:function(e,t,r){"use strict";r.d(t,{X:function(){return s}});var n=r(67294),i=r(32862),o=r(18996);let s=({children:e,dataSource:t,buttons:r,title:s,tooltip:a,cssClass:u,parameters:c})=>{var l;let{sitecoreContext:d}=(0,i.z)();if(!d.pageEditing)return n.createElement(n.Fragment,null,e);let h={displayName:s,expandedDisplayName:a},f={};if(f.className="scLooseFrameZone",u&&(f.className=`${f.className} ${u}`),t){let e=t.databaseName||(null===(l=d.route)||void 0===l?void 0:l.databaseName),r=t.language||d.language;f.sc_item=`sitecore://${e}/${t.itemId}?lang=${r}`,h.contextItemUri=f.sc_item}return h.commands=null==r?void 0:r.map(e=>(0,o.mapButtonToCommand)(e,null==t?void 0:t.itemId,c)),n.createElement("div",Object.assign({className:"scLooseFrameZone"},f),n.createElement("span",{className:"scChromeData"},JSON.stringify(h)),e)}},80263:function(e,t,r){"use strict";r.d(t,{Py:function(){return c},a8:function(){return u},f4:function(){return l}});var n=r(67294),i=r(64351),o=r(82796),s=r(2835),a=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})};let u="FEaaSComponent",c=e=>{var t,r,o,a,u,c,l;let d=(null===(t=e.params)||void 0===t?void 0:t.ComponentRevision)||e.revisionFallback;if(!e.template&&(!e.params||!e.params.LibraryId||!e.params.ComponentId||!e.params.ComponentVersion||!e.params.ComponentHostName||!d))return null;let h=Object.assign(Object.assign({},e.fetchedData),{_:(0,s.jw)(null!==(r=e.fields)&&void 0!==r?r:{})});return n.createElement(i.wA,{data:h,template:e.template,cdn:null===(o=e.params)||void 0===o?void 0:o.ComponentHostName,library:null===(a=e.params)||void 0===a?void 0:a.LibraryId,version:null===(u=e.params)||void 0===u?void 0:u.ComponentVersion,component:null===(c=e.params)||void 0===c?void 0:c.ComponentId,instance:null===(l=e.params)||void 0===l?void 0:l.ComponentInstanceId,revision:d,fetch:[]})};function l(e,t,r){return a(this,void 0,void 0,function*(){let n=t&&t!==o.LayoutServicePageState.Normal?"staged":"published",s=r||d(e,n),u="",c={},l=e.ComponentDataOverride?JSON.parse(e.ComponentDataOverride):{};try{u=yield function(e,t,r){return a(this,void 0,void 0,function*(){try{let{template:t}=yield i.hj(e);return t}catch(n){throw console.error(`Fetch FEAAS component from ${e} failed. Ensure the component revision "${t.ComponentRevision||r}" is present`),n}})}(s,e,n),c=yield function(e){return a(this,void 0,void 0,function*(){try{return yield i.sY.fetch(e||{})}catch(e){throw console.error("Fetch FEAAS component data settings failed"),e}})}(l)}catch(e){console.error(e)}return{fetchedData:c,revisionFallback:n,template:u}})}let d=(e,t)=>{let r=e.ComponentRevision||t,n=e.ComponentHostName.startsWith("https://")?e.ComponentHostName:`https://${e.ComponentHostName}`;return`${n}/components/${e.LibraryId}/${e.ComponentId}/${e.ComponentVersion}/${r}`}},37194:function(e,t,r){"use strict";r.d(t,{N:function(){return s},u:function(){return o}});var n=r(80263),i=r(67294);let o="FEaaSWrapper",s=e=>{var t,r;let o=`component feaas ${null===(t=e.params)||void 0===t?void 0:t.styles}`.trimEnd(),s=null===(r=e.params)||void 0===r?void 0:r.RenderingIdentifier;return i.createElement("div",{className:o,id:s||void 0},i.createElement("div",{className:"component-content"},i.createElement(n.Py,Object.assign({},e))))}},55027:function(e,t,r){"use strict";r.d(t,{$:function(){return a}});var n=r(45697),i=r.n(n),o=r(67294),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};let a=e=>{var{field:t,children:r}=e,n=s(e,["field","children"]);if(!t||!t.value&&!t.src)return null;let i=t.src?t:t.value;if(!i)return null;let a=r?null:i.title||i.displayName,u={href:i.src};return o.createElement("a",Object.assign(Object.assign({},u),n),a,r)};a.propTypes={field:i().oneOfType([i().shape({src:i().string}),i().shape({value:i().object})]).isRequired},a.displayName="File"},87383:function(e,t,r){"use strict";r.d(t,{E:function(){return h},Y:function(){return d}});var n=r(39585),i=r(45697),o=r.n(i),s=r(67294),a=r(2835),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=(e,...t)=>s.createElement("span",Object.assign({className:"sc-image-wrapper"},t,{dangerouslySetInnerHTML:{__html:e}})),l=(e,t,r)=>{var{src:i,srcSet:o}=e,s=u(e,["src","srcSet"]);if(!i)return null;(0,a.yn)(s);let c=Object.assign({},s),l=n.mediaApi.updateImageUrl(i,t,r);return o&&(c.srcSet=n.mediaApi.getSrcSet(l,o,t,r)),c.src=l,c},d=(e,t,r,i)=>{let o=n.mediaApi.findEditorImageTag(e.editable);if(!o)return c(e.editable);let s=l(Object.assign(Object.assign({},(0,a.WF)(o.attrs)),i),t,r);if(!s)return c(e.editable);let u=`<img ${(0,a.No)(s)} />`;return c(e.editable.replace(o.imgTag,u))}
1,h=e=>{var{media:t,editable:r,imageParams:n,field:i,mediaUrlPrefix:o}=e,a=u(e,["media","editable","imageParams","field","mediaUrlPrefix"]);i&&!t&&(t=i);let c=t;if(!t||!c.editable&&!c.value&&!c.src)return null;if(r&&c.editable)return d(c,n,o,a);let h=c.src?t:c.value;if(!h)return null;let f=l(Object.assign(Object.assign({},h),a),n,o);return f?s.createElement("img",Object.assign({},f)):null};h.propTypes={media:o().oneOfType([o().shape({src:o().string}),o().shape({value:o().object,editable:o().string})]),field:o().oneOfType([o().shape({src:o().string}),o().shape({value:o().object,editable:o().string})]),editable:o().bool,mediaUrlPrefix:o().instanceOf(RegExp),imageParams:o().objectOf(o().oneOfType([o().number.isRequired,o().string.isRequired]).isRequired)},h.defaultProps={editable:!0},h.displayName="Image"},6669:function(e,t,r){"use strict";r.d(t,{C:function(){return u},r:function(){return a}});var n=r(67294),i=r(45697),o=r.n(i),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};let a=(0,n.forwardRef)((e,t)=>{var{field:r,editable:i,showLinkTextWithChildrenPresent:o}=e,a=s(e,["field","editable","showLinkTextWithChildrenPresent"]);let u=a.children;if(!r||!r.editableFirstPart&&!r.value&&!r.href)return null;let c=[];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,c.push(n.createElement("span",Object.assign({},e))),!u)return c[0]}let l=r.href?r:r.value;if(!l)return null;let d="anchor"!==l.linktype&&l.anchor?`#${l.anchor}`:"",h=l.querystring?`?${l.querystring}`:"",f={href:`${l.href}${h}${d}`,className:l.class,title:l.title,target:l.target};"_blank"!==f.target||f.rel||(f.rel="noopener noreferrer");let p=o||!u?l.text||l.href:null;return c.push(n.createElement("a",Object.assign(Object.assign(Object.assign({},f),a),{key:"link",ref:t}),p,u)),n.createElement(n.Fragment,null,c)}),u={field:o().oneOfType([o().shape({href:o().oneOfType([o().string.isRequired,o().oneOf([null]).isRequired])}),o().shape({value:o().object,editableFirstPart:o().string,editableLastPart:o().string})]).isRequired,editable:o().bool,showLinkTextWithChildrenPresent:o().bool};a.propTypes=u,a.defaultProps={editable:!0},a.displayName="Link"},49081:function(e,t,r){"use strict";r.d(t,{V:function(){return s}});var n=r(45697),i=r.n(n),o=r(67294);let s=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 o.createElement("div",{style:{background:"darkorange",outline:"5px solid orange",padding:"10px",color:"white",maxWidth:"500px"}},o.createElement("h2",null,t),o.createElement("p",null,r))};s.propTypes={rendering:i().shape({componentName:i().string})},s.displayName="MissingComponent"},88010:function(e,t,r){"use strict";r.d(t,{V:function(){return u}});var n=r(67294),i=r(3429),o=r(70038),s=r(18996);class a extends i.r{constructor(e){super(e),this.isEmpty=!1}componentDidMount(){super.componentDidMount(),this.isEmpty&&s.HorizonEditor.isActive()&&s.HorizonEditor.resetChromes()}renderEmptyPlaceholder(e){return n.createElement("div",{className:"sc-jss-empty-placeholder"},e)}render(){let e=Object.assign({},this.props);if(delete e.componentFactory,this.state.error)return e.errorComponent?n.createElement(e.errorComponent,{error:this.state.error}):n.createElement("div",{className:"sc-jss-placeholder-error"},"A rendering error occurred: ",this.state.error.message,".");let t=e.rendering,r=i.r.getPlaceholderDataFromRenderingData(t,this.props.name),o=this.getComponentsForRenderingData(r);if(this.isEmpty=r.every(e=>!e.componentName&&void 0!==e.name),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,r,e);{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))}}}a.propTypes=i.r.propTypes;let u=(0,o.g)(a)},3429:function(e,t,r){"use strict";r.d(t,{r:function(){return y}});var n=r(67294),i=r(45697),o=r.n(i),s=r(49081),a=r(2835);let u={height:"100px",backgroundImage:"linear-gradient(45deg, #ffffff 25%, #dcdcdc 25%, #dcdcdc 50%, #ffffff 50%, #ffffff 75%, #dcdcdc 75%, #dcdcdc 100%)",backgroundSize:"3px 3px"},c=()=>n.createElement("div",{style:u});
1var l=r(80263),d=r(37194),h=r(64153),f=r(91946),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};class y 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){let r;return((null==e?void 0:e.placeholders)&&Object.keys(e.placeholders).forEach(r=>{let n=-1!==r.indexOf("{*}")?RegExp(`^${r.replace(/\{\*\}+/i,"\\d+")}$`):null;n&&n.test(t)&&(e.placeholders[t]=e.placeholders[r],delete e.placeholders[r])}),r=e&&e.placeholders&&Object.keys(e.placeholders).length>0?e.placeholders[t]:null)?r:(console.warn(`Placeholder '${t}' 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){let t=this.props,{name:r,fields:i,params:o,missingComponentComponent:a,hiddenRenderingComponent:u}=t,y=p(t,["name","fields","params","missingComponentComponent","hiddenRenderingComponent"]);return e.map((e,t)=>{let p;let m={key:e.uid?e.uid:`component-${t}`};if(!e.componentName&&e.name)return this.createRawElement(e,m);(p="Hidden Rendering"===e.componentName?null!=u?u:c:e.componentName?this.getComponentForRendering(e):()=>n.createElement(n.Fragment,null))||(e.componentName===l.a8?p=l.Py:e.componentName===d.u?p=d.N:e.componentName===h.bu?p=h.YM:e.componentName!==f.w||(p=f.P)),p||(console.error(`Placeholder ${r} contains unknown component ${e.componentName}. Ensure that a React component exists for it, and that it is registered in your componentFactory.js.`),p=null!=a?a:s.V);let v=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m),y),(i||e.fields)&&{fields:Object.assign(Object.assign({},i),e.fields)}),(o||e.params)&&{params:Object.assign(Object.assign(Object.assign({},o),e.params),this.getSXAParams(e))}),{rendering:e});return n.createElement(p,this.props.modifyComponentProps?this.props.modifyComponentProps(v):v)}).filter(e=>e)}getComponentForRendering(e){var t;let r=this.props.componentFactory;return r&&"function"==typeof r?(null===(t=e.params)||void 0===t?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,a.WF)(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)}})}}y.propTypes={rendering:o().oneOfType([o().object,o().object]).isRequired,fields:o().objectOf(o().oneOfType([o().object,o().object]).isRequired),params:o().objectOf(o().string.isRequired),missingComponentComponent:o().oneOfType([o().object,o().func]),hiddenRenderingComponent:o().oneOfType([o().object,o().func]),errorComponent:o().oneOfType([o().object,o().func]),modifyComponentProps:o().func}},5245:function(e,t,r){"use strict";r.d(t,{H:function(){return a},e:function(){return u}});var n=r(67294),i=r(45697),o=r.n(i),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};let a=(0,n.forwardRef)((e,t)=>{var{field:r,tag:i,editable:o}=e,a=s(e,["field","tag","editable"]);if(!r||!r.editable&&!r.value)return null;let u=Object.assign({dangerouslySetInnerHTML:{__html:r.editable&&o?r.editable:r.value},ref:t},a);return n.createElement(i||"div",u)}),u={field:o().shape({value:o().string,editable:o().string}),tag:o().string,editable:o().bool};a.propTypes=u,a.defaultProps={tag:"div",editable:!0},a.displayName="RichText"},21201:function(e,t,r){"use strict";r.d(t,{Qb:function(){return l},R7:function(){return c},sy:function(){return u}});var n=r(67294),i=r(45697),o=r.n(i),s=r(21879),a=r.n(s);let u=n.createContext({}),c=n.createContext({});class l extends n.Component{constructor(e){super(e),this.setContext=e=>{this.setState({context:e.sitecore?this.constructContext(e):Object.assign({},e)})};let t=this.constructContext(e.layoutData);this.state={context:t,setContext:this.setContext}}constructContext(e){var t;return e?Object.assign({route:e.sitecore.route,itemId:null===(t=e.sitecore.route)||void 0===t?void 0:t.itemId},e.sitecore.context):{pageEditing:!1}}componentDidUpdate(e){if(!a()(e.layoutData,this.props.layoutData)){this.setContext(this.props.layoutData);return}}render(){return n.createElement(c.Provider,{value:this.props.componentFactory},n.createElement(u.Provider,{value:this.state},this.props.children))}}
1l.propTypes={children:o().any.isRequired,componentFactory:o().func,layoutData:o().shape({sitecore:o().shape({context:o().any,route:o().any})})},l.displayName="SitecoreContext"},72433:function(e,t,r){"use strict";r.d(t,{x:function(){return a}});var n=r(67294),i=r(45697),o=r.n(i),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};let a=e=>{var{field:t,tag:r,editable:i,encode:o}=e,a=s(e,["field","tag","editable","encode"]);if(!t||!t.editable&&(void 0===t.value||""===t.value))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 l=u||!o,d=null,h=Object.assign({},a);return(l?h.dangerouslySetInnerHTML={__html:c}:d=c,r||l)?n.createElement(r||"span",h,d):n.createElement(n.Fragment,null,d)};a.propTypes={field:o().shape({value:o().oneOfType([o().string,o().number]),editable:o().string}),tag:o().string,editable:o().bool,encode:o().bool},a.defaultProps={editable:!0,encode:!0},a.displayName="Text"},46240:function(e,t,r){"use strict";r.d(t,{q:function(){return s}});var n=r(32862);let i=!1,o=e=>{let{sitecoreContext:t}=(0,n.z)();if(i||"undefined"==typeof document||!t.visitorIdentificationTimestamp)return null;i=!0;let r=document.createElement("script");r.src="/layouts/system/VisitorIdentification.js",r.type="text/javascript",r.defer=e.defer;let o=document.createElement("meta");o.name="VIcurrentDateTime",o.content=t.visitorIdentificationTimestamp.toString();let s=document.querySelector("head");return s&&s.appendChild(r),s&&s.appendChild(o),null};o.displayName="VisitorIdentification";let s=o},70038:function(e,t,r){"use strict";r.d(t,{g:function(){return o}});var n=r(67294),i=r(21201);function o(e){function t(t){let r=(0,n.useContext)(i.R7);return n.createElement(e,Object.assign({},t,{componentFactory:t.componentFactory||r}))}return t.displayName=`withComponentFactory(${e.displayName||e.name||"Anonymous"})`,t}},62099:function(e,t,r){"use strict";r.d(t,{C:function(){return s}});var n=r(67294),i=r(32862);let o=()=>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,a;let{sitecoreContext:u}=(0,i.z)(),c=null!==(s=null==e?void 0:e.editingErrorComponent)&&void 0!==s?s:o;return(null===(a=r.rendering)||void 0===a?void 0:a.dataSource)?n.createElement(t,Object.assign({},r)):u.pageEditing?n.createElement(c,null):null}}}},20019:function(e,t,r){"use strict";r.d(t,{C:function(){return o}});var n=r(67294),i=r(18996);let o=e=>{class t extends n.Component{constructor(){super(...arguments),this.displayName=e.displayName||e.name||"Component"}componentDidUpdate(){(0,i.resetEditorChromes)()}render(){return n.createElement(e,Object.assign({},this.props))}}return t}},92726:function(e,t,r){"use strict";r.d(t,{M:function(){return s}});var n=r(67294),i=r(3429),o=r(70038);function s(e,t){return r=>{class s extends i.r{constructor(e){super(e)}render(){let o=Object.assign({},this.props);if(delete o.componentFactory,t&&t.propsTransformer&&(o=t.propsTransformer(o)),this.state.error)return o.errorComponent?n.createElement(o.errorComponent,{error:this.state.error}):n.createElement("div",{className:"sc-jss-placeholder-error"},"A rendering error occurred: ",this.state.error.message,".");let s=t&&t.resolvePlaceholderDataFromProps?t.resolvePlaceholderDataFromProps(o):o.rendering;return(Array.isArray(e)?e:[e]).forEach(e=>{let t;"string"!=typeof e&&e.placeholder&&e.prop?(t=i.r.getPlaceholderDataFromRenderingData(s,e.placeholder))&&(o[e.prop]=this.getComponentsForRenderingData(t)):(t=i.r.getPlaceholderDataFromRenderingData(s,e))&&(o[e]=this.getComponentsForRenderingData(t))}),n.createElement(r,Object.assign({},o))}}return s.propTypes=i.r.propTypes,(0,o.g)(s)}}},32862:function(e,t,r){"use strict";r.d(t,{p:function(){return o},z:function(){return s}});var n=r(67294),i=r(21201);function o(e){return function(t){return function(r){return n.createElement(i.sy.Consumer,null,i=>n.createElement(t,Object.assign({},r,{sitecoreContext:i.context,updateSitecoreContext:e&&e.updatable&&i.setContext}
1)))}}}function s(e){let t=n.useContext(i.sy),r=null==e?void 0:e.updatable;return{sitecoreContext:t.context,updateSitecoreContext:r?t.setContext:void 0}}},6953:function(e,t,r){"use strict";r.r(t),r.d(t,{BYOCComponent:function(){return E.YM},BYOCWrapper:function(){return O.P},ClientError:function(){return o.ClientError},ComponentBuilder:function(){return R},DateField:function(){return v.N},DefaultEditFrameButton:function(){return s.DefaultEditFrameButton},DefaultEditFrameButtons:function(){return s.DefaultEditFrameButtons},DefaultRetryStrategy:function(){return l.DefaultRetryStrategy},EditFrame:function(){return D.X},FEaaSComponent:function(){return g.Py},FEaaSWrapper:function(){return b.N},File:function(){return w.$},GraphQLDictionaryService:function(){return c.pW},GraphQLLayoutService:function(){return a.GraphQLLayoutService},Image:function(){return p.E},LayoutServicePageState:function(){return a.LayoutServicePageState},Link:function(){return _.r},LinkPropTypes:function(){return _.C},Placeholder:function(){return f.V},RestDictionaryService:function(){return c.Dd},RestLayoutService:function(){return a.RestLayoutService},RichText:function(){return y.H},RichTextPropTypes:function(){return y.e},SitecoreContext:function(){return T.Qb},SitecoreContextReactContext:function(){return T.sy},Text:function(){return m.x},VisitorIdentification:function(){return S.q},constants:function(){return n},enableDebug:function(){return i.C},fetchBYOCComponentServerProps:function(){return E.uW},fetchFEaaSComponentServerProps:function(){return g.f4},getChildPlaceholder:function(){return a.getChildPlaceholder},getComponentLibraryStylesheetLinks:function(){return a.getComponentLibraryStylesheetLinks},getContentStylesheetLink:function(){return a.getContentStylesheetLink},getEEMarkup:function(){return p.Y},getFEAASLibraryStylesheetLinks:function(){return h.R},getFieldValue:function(){return a.getFieldValue},isEditorActive:function(){return s.isEditorActive},mediaApi:function(){return d.mediaApi},resetEditorChromes:function(){return s.resetEditorChromes},trackingApi:function(){return u.trackingApi},useSitecoreContext:function(){return C.z},withDatasourceCheck:function(){return A.C},withEditorChromes:function(){return k.C},withPlaceholder:function(){return x.M},withSitecoreContext:function(){return C.p}});var n=r(61539),i=r(47978),o=r(20852),s=r(18996),a=r(82796),u=r(9369),c=r(41066),l=r(56489),d=r(39585),h=r(96778),f=r(88010),p=r(87383),y=r(5245),m=r(72433),v=r(53723),g=r(80263),b=r(37194),E=r(64153),O=r(91946),_=r(6669),w=r(55027),S=r(46240),T=r(21201),C=r(32862),k=r(20019),x=r(92726),A=r(62099),D=r(846);class R{constructor(e){this.config=e,this.components=new Map([...e.components])}getComponentFactory(){return e=>this.components.get(e)||null}}},2835:function(e,t,r){"use strict";r.d(t,{No:function(){return l},WF:function(){return u},jw:function(){return d},yn:function(){return c}});var n=r(82796),i=r(73469),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 s=e=>e.replace(/^.|-./g,(e,t)=>0===t?e.toLowerCase():e.substr(1).toUpperCase()),a=(e="")=>{let t=(0,i.Qc)(e,{preserveNumbers:!0});return Object.keys(t).reduce((e,r)=>(e[s(r)]=t[r],e),{})},u=e=>e?Object.keys(e).reduce((t,r)=>{switch(r){case"class":t.className=e.class;break;case"style":t.style=a(e.style);break;default:t[r]=e[r]}return t},{}):[],c=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(" ")},d=e=>Object.entries(e).reduce((t,[r])=>(t[r]=(0,n.getFieldValue)(e,r),t),{})},49011:function(e,t,r){"use strict";var n=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}
1,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AxiosDataFetcher=void 0;let o=i(r(44671)),s=i(r(56907)),a=e=>void 0!==e.isAxiosError;class u{constructor(e={}){let{onReq:t,onRes:r,onReqError:i,onResError:u,debugger:c}=e,l=n(e,["onReq","onRes","onReqError","onResError","debugger"]);void 0===l.withCredentials&&(l.withCredentials=!0),this.instance=o.default.create(l);let d=c||s.default.http;d.enabled&&this.instance.interceptors.request.use(e=>(d("request: %o",e),e.headers.timestamp=Date.now(),e),e=>(d("request error: %o",a(e)?e.toJSON():e),Promise.reject(e))),t&&this.instance.interceptors.request.use(t,i),r&&this.instance.interceptors.response.use(r,u),d.enabled&&this.instance.interceptors.response.use(e=>{let{request:t,config:r}=e,i=n(e,["request","config"]),o=Date.now()-r.headers.timestamp;return delete e.config.headers.timestamp,d("response in %dms: %o",o,i),e},e=>(d("response error: %o",a(e)?e.toJSON():e),Promise.reject(e)))}fetch(e,t){return this.instance.request({url:e,method:t?"POST":"GET",data:t})}get(e,t){return this.instance.get(e,t)}head(e,t){return this.instance.head(e,t)}post(e,t,r){return this.instance.post(e,t,r)}put(e,t,r){return this.instance.put(e,t,r)}delete(e,t){return this.instance.delete(e,t)}}t.AxiosDataFetcher=u},24559:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MemoryCacheClient=void 0;let n=r(7113),i=Object.freeze({cacheTimeout:60,cacheEnabled:!0});class o{constructor(e){var t;this.options=e,this.cache=new n.Cache,this.options.cacheTimeout=(null!==(t=this.options.cacheTimeout)&&void 0!==t?t:i.cacheTimeout)*1e3,void 0===this.options.cacheEnabled&&(this.options.cacheEnabled=i.cacheEnabled)}getCacheValue(e){return this.options.cacheEnabled?this.cache.get(e):null}setCacheValue(e,t){return this.options.cacheEnabled?this.cache.put(e,t,this.options.cacheTimeout):t}}t.MemoryCacheClient=o},63204:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SITECORE_EDGE_URL_DEFAULT=t.siteNameError=t.JSS_MODE=t.FETCH_WITH=t.SitecoreTemplateId=void 0,(r=t.SitecoreTemplateId||(t.SitecoreTemplateId={})).JssApp="061cba1554744b918a0617903b102b82",r.DictionaryEntry="6d1cd89719364a3aa511289a94c2a7b1",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"},73884:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchData=t.checkStatus=t.ResponseError=void 0;let n=r(13449);class i extends Error{constructor(e,t){super(e),Object.setPrototypeOf(this,i.prototype),this.response=t}}function o(e){if(e.status>=200&&e.status<300)return e;throw new i(e.statusText,e)}t.ResponseError=i,t.checkStatus=o,t.fetchData=function(e,t,r={}){return t((0,n.resolveUrl)(e,r)).then(o).then(e=>e.data)}},56907:function(e,t,r){"use strict";var n,i=r(83454),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.enableDebug=void 0;let s=o(r(11227)),a=o(r(53641)),u="sitecore-jss";(0,a.default)()&&(null===(n=null==i?void 0:i.env)||void 0===n?void 0:n.DEBUG_MULTILINE)==="true"&&s.default.formatters.o&&s.default.formatters.O&&(s.default.formatters.o=s.default.formatters.O),t.enableDebug=e=>s.default.enable(e),t.default={common:(0,s.default)(`${u}:common`),http:(0,s.default)(`${u}:http`),layout:(0,s.default)(`${u}:layout`),dictionary:(0,s.default)(`${u}:dictionary`),editing:(0,s.default)(`${u}:editing`),sitemap:(0,s.default)(`${u}:sitemap`),multisite:(0,s.default)(`${u}:multisite`),robots:(0,s.default)(`${u}:robots`),redirects:(0,s.default)(`${u}:redirects`),personalize:(0,s.default)(`${u}:personalize`),errorpages:(0,s.default)(`${u}:errorpages`)}},96778:function(e,t,r){"use strict";t.R=void 0;var n=r(28233);Object.defineProperty(t,"R",{enumerable:!0,get:function(){return n.getFEAASLibraryStylesheetLinks}})},28233:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.getStylesheetUrl=t.getFEAASLibraryStylesheetLinks=void 0;let n=r(82796),i=r(63204),o=/-library--([^\s]+)/;t.getFEAASLibraryStylesheetLinks=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"}))):[]},t.getStylesheetUrl=(e,t,r=i.SITECORE_EDGE_URL_DEFAULT)=>`${r}/v1/files/components/styles/${e}.css?sitecoreContextId=${t}`;let s=(e,t)=>{e.map(e=>a(e,t))},a=(e,t)=>{var r,i,a,u;let c;"params"in e&&e.params&&(c=(null===(i=null===(r=e.params.CSSStyles)||void 0===r?void 0:r.match(o))||void 0===i?void 0:i[1])||e.params.LibraryId||void 0),!c&&"fields"in e&&e.fields&&(c=(null===(a=(0,n.getFieldValue)(e.fields,"CSSStyles","").match(o))||void 0===a?void 0:a[1])||(0,n.getFieldValue)(e.fields,"LibraryId","")||void 0),!c&&"attributes"in e&&"string"==typeof e.attributes.class&&(c=null===(u=e.attributes.class.match(o))||void 0===u?void 0:u[1]),c&&t.add(c);let l=e.placeholders||{};Object.keys(l).forEach(e=>{s(l[e],t)})}},95349: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 s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((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;let o=r(20852),s=i(r(84564)),a=i(r(56907)),u=i(r(3627));class c{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?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?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=c;class l{constructor(e,t={}){var r;if(this.endpoint=e,this.headers={},t.apiKey&&(this.headers.sc_apikey=t.apiKey),!e||!(0,s.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)&&void 0!==r?r:3,this.retryStrategy=t.retryStrategy||new c({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||a.default.http}static createClientFactory({endpoint:e,apiKey:t}){return (r={})=>new l(e,Object.assign(Object.assign({},r),{apiKey:t}))}request(e,t){return n(this,void 0,void 0,function*(){let r=1,i=()=>n(this,void 0,void 0,function*(){this.debug("request: %o",{url:this.endpoint,headers:this.headers,query:e,variables:t});let o=Date.now(),s=[this.client.request(e,t)];return this.timeout&&(this.abortTimeout=new u.default(this.timeout),s.push(this.abortTimeout.start)),Promise.race(s).then(e=>{var t;return null===(t=this.abortTimeout)||void 0===t||t.clear(),this.debug("response in %dms: %o",Date.now()-o,e),Promise.resolve(e)},e=>n(this,void 0,void 0,function*(){var t,n;null===(t=this.abortTimeout)||void 0===t||t.clear(),this.debug("response error: %o",e.response||e.message||e);let o=(null===(n=e.response)||void 0===n?void 0:n.status)||e.code;if(!this.retryStrategy.shouldRetry(e,r,this.retries))return Promise.reject(e);{let t=this.retryStrategy.getDelay(e,r);return this.debug("Error: %s. Retrying in %dms (attempt %d).",o,t,r),r++,new Promise(e=>setTimeout(e,t)).then(i)}}))});return i()})}}t.GraphQLRequestClient=l},7690: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 s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})};
1Object.defineProperty(t,"__esModule",{value:!0}),t.getAppRootId=t.languageError=t.siteNameError=void 0;let i=r(63204);t.siteNameError="The site name must be a non-empty string",t.languageError="The language must be a non-empty string";let o=`
2  query AppRootQuery($jssAppTemplateId: String!, $siteName: String!, $language: String!) {
3    layout(site: $siteName, routePath: "/", language: $language) {
4      homePage: item {
5        rootItem: ancestors(includeTemplateIDs: [$jssAppTemplateId]) {
6          id
7        }
8      }
9    }
10  }
11`;t.getAppRootId=function(e,r,s,a){var u,c,l,d,h,f;return n(this,void 0,void 0,function*(){if(!r)throw RangeError(t.siteNameError);if(!s)throw RangeError(t.languageError);let n=yield e.request(o,{jssAppTemplateId:a||i.SitecoreTemplateId.JssApp,siteName:r,language:s});return((null===(l=null===(c=null===(u=null==n?void 0:n.layout)||void 0===u?void 0:u.homePage)||void 0===c?void 0:c.rootItem)||void 0===l?void 0:l.length)||"en"===s||(n=yield e.request(o,{jssAppTemplateId:a||i.SitecoreTemplateId.JssApp,siteName:r,language:"en"})),null===(f=null===(h=null===(d=null==n?void 0:n.layout)||void 0===d?void 0:d.homePage)||void 0===h?void 0:h.rootItem)||void 0===f?void 0:f.length)?n.layout.homePage.rootItem[0].id:null})}},14007:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEdgeProxyContentUrl=void 0;let n=r(63204);t.getEdgeProxyContentUrl=(e,t=n.SITECORE_EDGE_URL_DEFAULT)=>`${t}/v1/content/api/graphql/v1?sitecoreContextId=${e}`},56489:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEdgeProxyContentUrl=t.SearchQueryService=t.GraphQLRequestClient=t.DefaultRetryStrategy=t.getAppRootId=void 0;var n=r(7690);Object.defineProperty(t,"getAppRootId",{enumerable:!0,get:function(){return n.getAppRootId}});var i=r(95349);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(64578);Object.defineProperty(t,"SearchQueryService",{enumerable:!0,get:function(){return o.SearchQueryService}});var s=r(14007);Object.defineProperty(t,"getEdgeProxyContentUrl",{enumerable:!0,get:function(){return s.getEdgeProxyContentUrl}})},64578:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((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){var n;return r(this,void 0,void 0,function*(){if(!t.rootItemId||!t.language)throw RangeError('"rootItemId" and "language" must be non-empty strings');let r=[],i=!0,o="";for(;i;){let s=yield this.client.request(e,Object.assign(Object.assign({},t),{after:o}));r=r.concat(null===(n=null==s?void 0:s.search)||void 0===n?void 0:n.results),i=s.search.pageInfo.hasNext,o=s.search.pageInfo.endCursor}return r})}}t.SearchQueryService=n},35465:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DictionaryServiceBase=void 0;let n=r(24559);class i{constructor(e){this.options=e,this.cache=this.getCacheClient()}setCacheValue(e,t){return this.cache.setCacheValue(e,t)}getCacheValue(e){return this.cache.getCacheValue(e)}getCacheClient(){return new n.MemoryCacheClient(this.options)}}t.DictionaryServiceBase=i},86372: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 s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((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.GraphQLDictionaryService=t.queryError=void 0;
11let o=r(95349),s=r(63204),a=r(35465),u=r(56489),c=i(r(56907));t.queryError="Valid value for rootItemId not provided and failed to auto-resolve app root item.";let l=`
12  query DictionarySearch(
13    $rootItemId: String!
14    $language: String!
15    $templates: String!
16    $pageSize: Int = 10
17    $after: String
18  ) {
19    search(
20      where: {
21        AND: [
22          { name: "_path", value: $rootItemId, operator: CONTAINS }
23          { name: "_language", value: $language }
24          { name: "_templates", value: $templates, operator: CONTAINS }
25        ]
26      }
27      first: $pageSize
28      after: $after
29    ) {
30      total
31      pageInfo {
32        endCursor
33        hasNext
34      }
35      results {
36        key: field(name: "Key") {
37          value
38        }
39        phrase: field(name: "Phrase") {
40          value
41        }
42      }
43    }
44  }
45`;class d extends a.DictionaryServiceBase{constructor(e){super(e),this.options=e,this.graphQLClient=this.getGraphQLClient(),this.searchService=new u.SearchQueryService(this.graphQLClient)}fetchDictionaryData(e){return n(this,void 0,void 0,function*(){let r=this.options.siteName+e,n=this.getCacheValue(r);if(n)return c.default.dictionary("using cached dictionary data for %s %s",e,this.options.siteName),n;c.default.dictionary("fetching site root for %s %s",e,this.options.siteName);let i=this.options.rootItemId||(yield(0,u.getAppRootId)(this.graphQLClient,this.options.siteName,e,this.options.jssAppTemplateId));if(!i)throw Error(t.queryError);c.default.dictionary("fetching dictionary data for %s %s",e,this.options.siteName);let o={};return yield this.searchService.fetch(l,{rootItemId:i,language:e,templates:this.options.dictionaryEntryTemplateId||s.SitecoreTemplateId.DictionaryEntry,pageSize:this.options.pageSize}).then(e=>{e.forEach(e=>o[e.key.value]=e.phrase.value)}),this.setCacheValue(r,o),o})}getGraphQLClient(){if(!this.options.endpoint){if(!this.options.clientFactory)throw Error("You should provide either an endpoint and apiKey, or a clientFactory.");return this.options.clientFactory({debugger:c.default.dictionary,retries:this.options.retries,retryStrategy:this.options.retryStrategy})}return new o.GraphQLRequestClient(this.options.endpoint,{apiKey:this.options.apiKey,debugger:c.default.dictionary,retries:this.options.retries,retryStrategy:this.options.retryStrategy})}}t.GraphQLDictionaryService=d},41066:function(e,t,r){"use strict";t.Dd=t.pW=void 0,r(35465);var n=r(86372);Object.defineProperty(t,"pW",{enumerable:!0,get:function(){return n.GraphQLDictionaryService}});var i=r(9107);Object.defineProperty(t,"Dd",{enumerable:!0,get:function(){return i.RestDictionaryService}})},9107: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 s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((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.RestDictionaryService=void 0;let o=r(49011),s=r(73884),a=r(35465),u=i(r(56907));class c extends a.DictionaryServiceBase{constructor(e){super(e),this.options=e}get defaultFetcher(){let e=new o.AxiosDataFetcher({debugger:u.default.dictionary,withCredentials:!1});return t=>e.fetch(t)}fetchDictionaryData(e){return n(this,void 0,void 0,function*(){let t=this.getUrl(e),r=this.getCacheValue(t);if(r)return u.default.dictionary("using cached dictionary data for %s %s",e,this.options.siteName),r;u.default.dictionary("fetching dictionary data for %s %s",e,this.options.siteName);let n=this.options.dataFetcher||this.defaultFetcher,i=yield(0,s.fetchData)(t,n,{sc_apikey:this.options.apiKey});return this.setCacheValue(t,i.phrases)})}getUrl(e){return`${this.options.apiHost}/sitecore/api/jss/dictionary/${this.options.siteName}/${e}`}}t.RestDictionaryService=c},5094:function(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(63204),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)=>
45{r.loadStyles||e.forEach(e=>{(0,t.traverseComponent)(e,r)})},t.traverseField=(e,r)=>{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)})}},19886: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 s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((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=void 0;let o=r(37812),s=r(95349),a=i(r(56907));class u extends o.LayoutServiceBase{constructor(e){super(),this.serviceConfig=e,this.graphQLClient=this.getGraphQLClient()}fetchLayoutData(e,t){var r,i;return n(this,void 0,void 0,function*(){let n=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(n);return(null===(i=null===(r=null==o?void 0:o.layout)||void 0===r?void 0:r.item)||void 0===i?void 0:i.rendered)||{sitecore:{context:{pageEditing:!1,language:t},route:null}}})}getGraphQLClient(){if(!this.serviceConfig.endpoint){if(!this.serviceConfig.clientFactory)throw Error("You should provide either an endpoint and apiKey, or a clientFactory.");return this.serviceConfig.clientFactory({debugger:a.default.layout,retries:this.serviceConfig.retries,retryStrategy:this.serviceConfig.retryStrategy})}return new s.GraphQLRequestClient(this.serviceConfig.endpoint,{apiKey:this.serviceConfig.apiKey,debugger:a.default.layout,retries:this.serviceConfig.retries,retryStrategy:this.serviceConfig.retryStrategy})}getLayoutQuery(e,t){let r=t?`, language:"${t}"`:"",n=this.serviceConfig.formatLayoutQuery?this.serviceConfig.formatLayoutQuery(this.serviceConfig.siteName,e,t):`layout(site:"${this.serviceConfig.siteName}", routePath:"${e}"${r})`;return`query {
46      ${n}{
47        item {
48          rendered
49        }
50      }
51    }`}}t.GraphQLLayoutService=u},82796:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getComponentLibraryStylesheetLinks=t.GraphQLLayoutService=t.RestLayoutService=t.getContentStylesheetLink=t.getChildPlaceholder=t.getFieldValue=t.EDITING_COMPONENT_ID=t.EDITING_COMPONENT_PLACEHOLDER=t.RenderingType=t.LayoutServicePageState=void 0;var n=r(6722);Object.defineProperty(t,"LayoutServicePageState",{enumerable:!0,get:function(){return n.LayoutServicePageState}}),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(50682);Object.defineProperty(t,"getFieldValue",{enumerable:!0,get:function(){return i.getFieldValue}}),Object.defineProperty(t,"getChildPlaceholder",{enumerable:!0,get:function(){return i.getChildPlaceholder}});var o=r(5094);Object.defineProperty(t,"getContentStylesheetLink",{enumerable:!0,get:function(){return o.getContentStylesheetLink}});var s=r(14045);Object.defineProperty(t,"RestLayoutService",{enumerable:!0,get:function(){return s.RestLayoutService}});var a=r(19886);Object.defineProperty(t,"GraphQLLayoutService",{enumerable:!0,get:function(){return a.GraphQLLayoutService}});var u=r(94158);Object.defineProperty(t,"getComponentLibraryStylesheetLinks",{enumerable:!0,get:function(){return u.getComponentLibraryStylesheetLinks}})},37812:function(e,t){"use strict";
51Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutServiceBase=void 0;class r{}t.LayoutServiceBase=r},6722:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.RenderingType=t.LayoutServicePageState=t.EDITING_COMPONENT_ID=t.EDITING_COMPONENT_PLACEHOLDER=void 0,t.EDITING_COMPONENT_PLACEHOLDER="editing-componentmode-placeholder",t.EDITING_COMPONENT_ID="editing-component",(r=t.LayoutServicePageState||(t.LayoutServicePageState={})).Preview="preview",r.Edit="edit",r.Normal="normal",(t.RenderingType||(t.RenderingType={})).Component="component"},14045: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.RestLayoutService=void 0;let i=r(37812),o=r(49011),s=r(73884),a=n(r(56907));class u extends i.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)||void 0===t||t}},this.getDefaultFetcher=(e,t)=>{let r={debugger:a.default.layout};e&&t&&(r.onReq=this.setupReqHeaders(e),r.onRes=this.setupResHeaders(t));let n=new o.AxiosDataFetcher(r);return(e,t)=>n.fetch(e,t)}}fetchLayoutData(e,t,r,n){let i=this.getFetchParams(t);a.default.layout("fetching layout data for %s %s %s",e,t,this.serviceConfig.siteName);let o=this.serviceConfig.dataFetcherResolver?this.serviceConfig.dataFetcherResolver(r,n):this.getDefaultFetcher(r,n),u=this.resolveLayoutServiceUrl("render");return(0,s.fetchData)(u,o,Object.assign({item:e},i)).catch(e=>{var t;if((null===(t=e.response)||void 0===t?void 0:t.status)===404)return e.response.data;throw e})}fetchPlaceholderData(e,t,r,n,i){let o=this.getFetchParams(r);a.default.layout("fetching placeholder data for %s %s %s %s",e,t,r,this.serviceConfig.siteName);let u=this.serviceConfig.dataFetcherResolver?this.serviceConfig.dataFetcherResolver(n,i):this.getDefaultFetcher(n,i),c=this.resolveLayoutServiceUrl("placeholder");return(0,s.fetchData)(c,u,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){return t=>(a.default.layout("performing request header passing"),t.headers.common=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.headers.common),e.headers.cookie&&{cookie:e.headers.cookie}),e.headers.referer&&{referer:e.headers.referer}),e.headers["user-agent"]&&{"user-agent":e.headers["user-agent"]}),e.connection.remoteAddress&&{"X-Forwarded-For":e.connection.remoteAddress}),t)}setupResHeaders(e){return t=>(a.default.layout("performing response header passing"),t.headers["set-cookie"]&&e.setHeader("set-cookie",t.headers["set-cookie"]),t)}}t.RestLayoutService=u},94158:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStylesheetUrl=t.getComponentLibraryStylesheetLinks=void 0;let n=r(82796),i=r(63204),o=/-library--([^\s]+)/;t.getComponentLibraryStylesheetLinks=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"}))):[]},t.getStylesheetUrl=(e,t,r=i.SITECORE_EDGE_URL_DEFAULT)=>`${r}/v1/files/components/styles/${e}.css?sitecoreContextId=${t}`;let s=(e,t)=>{e.map(e=>a(e,t))},a=(e,t)=>{var r,i,a,u,c,l,d;let h;"params"in e&&e.params&&(h=(null===(i=null===(r=e.params.CSSStyles)||void 0===r?void 0:r.match(o))||void 0===i?void 0:i[1])||(null===(u=null===(a=e.params.Styles)||void 0===a?void 0:a.match(o))||void 0===u?void 0:u[1])||e.params.LibraryId||void 0),!h&&"fields"in e&&e.fields&&(h=(null===(c=(0,n.getFieldValue)(e.fields,"CSSStyles","").match(o))||void 0===c?void 0:c[1])||(null===(l=(0,n.getFieldValue)(e.fields,"Styles","").match(o))||void 0===l?void 0:l[1])||(0,n.getFieldValue)(e.fields,"LibraryId","")||void 0),!h&&"attributes"in e&&"string"==typeof e.attributes.class&&(h=null===(d=e.attributes.class.match(o)
51)||void 0===d?void 0:d[1]),h&&t.add(h);let f=e.placeholders||{};Object.keys(f).forEach(e=>{s(f[e],t)})}},50682:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChildPlaceholder=t.getFieldValue=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]:[]}},39585: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.mediaApi=void 0;let s=o(r(79409));t.mediaApi=s},79409: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.getSrcSet=t.updateImageUrl=t.replaceMediaUrlPrefix=t.getRequiredParams=t.findEditorImageTag=void 0;let i=n(r(21540)),o=n(r(84564)),s=/<img([^>]+)\/>/i,a=/([^=\s]+)(="([^"]*)")?/gi,u=/\/([-~]{1})\/media\//i;t.findEditorImageTag=e=>{let t=e.match(s);if(!t||t.length<2)return null;let r={},n=a.exec(t[1]);for(;null!==n;)r[n[1]]=(0,i.default)(n[3]),n=a.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=u)=>{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=u)=>{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),s=(0,t.getRequiredParams)(i.query),a=Object.assign({},r);return Object.entries(s).forEach(([e,t])=>{t&&(a[e]=t)}),i.set("query",a),i.toString()},t.getSrcSet=(e,r,n,i)=>r.map(r=>{let o=Object.assign(Object.assign({},n),r),s=o.w||o.mw;return s?`${(0,t.updateImageUrl)(e,o,i)} ${s}w`:null}).filter(e=>e).join(", ")},9369: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.trackingApi=void 0;let s=o(r(95721));t.trackingApi=s},95721:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trackEvent=t.checkStatus=void 0;let n=r(18996);class i extends Error{constructor(e,t){super(e),Object.setPrototypeOf(this,i.prototype),this.response=t}}function o(e){if(e.status>=200&&e.status<300)return e;throw new i(e.statusText,e)}t.checkStatus=o,t.trackEvent=function(e,t){let{querystringParams:r}=t;return!t.test&&(0,n.isServer)()?Promise.resolve():(Array.isArray(e)||(e=[e]),function(e,t,r,i={}){return r((0,n.resolveUrl)(e,i),t).then(o).then(e=>e.data)}(function(e){let{host:t="",serviceUrl:r="/sitecore/api/jss/track",action:n="event"}=e;return`${t}${r}/${n}`}(t),e,t.fetcher,r))}},30309:function(e,t){"use strict";function r(e,t,r){if(!e.click||e.click.startsWith("javascript:")||e.click.startsWith("chrome:")||!t)return Object.assign({isDiv
51ider:!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?void 0:r.toString())||""}),r&&Object.keys(r).forEach(e=>{var t;i[e]=(null===(t=r[e])||void 0===t?void 0:t.toString())||""});let s=Object.keys(i).map(e=>`${e}=${i[e]}`).join(", "),a=`${n}(${s})`;return{isDivider:!1,click:`javascript:Sitecore.PageModes.PageEditor.postRequest('${a}',null,false)`,header:e.header||"",icon:e.icon||"",tooltip:e.tooltip||"",type:e.type||null}}}Object.defineProperty(t,"__esModule",{value:!0}),t.commandBuilder=t.mapButtonToCommand=t.DefaultEditFrameButtons=t.DefaultEditFrameButton=t.DefaultEditFrameButtonIds=void 0,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],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},92682: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.handleEditorAnchors=t.resetEditorChromes=t.isEditorActive=t.HorizonEditor=t.ChromeRediscoveryGlobalFunctionName=t.ExperienceEditor=void 0;let i=n(r(53641));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 s{static isActive(){return!(0,i.default)()&&window.location.search.indexOf("sc_horizon=editor")>-1}static resetChromes(){!(0,i.default)()&&window[t.ChromeRediscoveryGlobalFunctionName.name]&&window[t.ChromeRediscoveryGlobalFunctionName.name]()}}t.HorizonEditor=s,t.isEditorActive=()=>o.isActive()||s.isActive(),t.resetEditorChromes=()=>{o.isActive()?o.resetChromes():s.isActive()&&s.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})}},75145:function(e,t){"use strict";Object.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}},18996: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.isTimeoutError=t.isAb
51soluteUrl=t.resolveUrl=t.isServer=void 0;var i=r(53641);Object.defineProperty(t,"isServer",{enumerable:!0,get:function(){return n(i).default}});var o=r(13449);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}});var s=r(75145);Object.defineProperty(t,"tryParseEnvValue",{enumerable:!0,get:function(){return s.tryParseEnvValue}});var a=r(92682);Object.defineProperty(t,"ExperienceEditor",{enumerable:!0,get:function(){return a.ExperienceEditor}}),Object.defineProperty(t,"HorizonEditor",{enumerable:!0,get:function(){return a.HorizonEditor}}),Object.defineProperty(t,"isEditorActive",{enumerable:!0,get:function(){return a.isEditorActive}}),Object.defineProperty(t,"resetEditorChromes",{enumerable:!0,get:function(){return a.resetEditorChromes}}),Object.defineProperty(t,"handleEditorAnchors",{enumerable:!0,get:function(){return a.handleEditorAnchors}});var u=r(30309);Object.defineProperty(t,"DefaultEditFrameButton",{enumerable:!0,get:function(){return u.DefaultEditFrameButton}}),Object.defineProperty(t,"DefaultEditFrameButtons",{enumerable:!0,get:function(){return u.DefaultEditFrameButtons}}),Object.defineProperty(t,"DefaultEditFrameButtonIds",{enumerable:!0,get:function(){return u.DefaultEditFrameButtonIds}}),Object.defineProperty(t,"mapButtonToCommand",{enumerable:!0,get:function(){return u.mapButtonToCommand}})},53641:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"!=typeof window&&window.document)}},3627:function(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},13449: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.isTimeoutError=t.isAbsoluteUrl=t.resolveUrl=void 0;let i=n(r(53641));t.resolveUrl=function(e,t={}){if(!e)throw RangeError("url must be a non-empty string");if((0,i.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}`},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"408"===e.code||"ECONNABORTED"===e.code||"ETIMEDOUT"===e.code||(null===(t=e.response)||void 0===t?void 0:t.status)===408||"AbortError"===e.name}},61539:function(e,t,r){"use strict";var n,i;r.r(t),r.d(t,{FETCH_WITH:function(){return o},JSS_MODE:function(){return s},SITECORE_EDGE_URL_DEFAULT:function(){return u},SitecoreTemplateId:function(){return n},siteNameError:function(){return a}}),(i=n||(n={})).JssApp="061cba1554744b918a0617903b102b82",i.DictionaryEntry="6d1cd89719364a3aa511289a94c2a7b1";let o={GRAPHQL:"GraphQL",REST:"Rest"},s={CONNECTED:"connected",DISCONNECTED:"disconnected"},a="The siteName cannot be empty",u="https://edge-platform.sitecorecloud.io"},47978:function(e,t,r){"use strict";r.d(t,{Z:function(){return c},C:function(){return u}});var n,i=r(11227),o=r.n(i),s=r(83454);let a="sitecore-jss";!("undefined"!=typeof window&&window.document)&&(null===(n=null==s?void 0:s.env)||void 0===n?void 0:n.DEBUG_MULTILINE)==="true"&&o().formatters.o&&o().formatters.O&&(o().formatters.o=o().formatters.O);let u=e=>o().enable(e);var c={common:o()(`${a}:common`),http:o()(`${a}:http`),layout:o()(`${a}:layout`),dictionary:o()(`${a}:dictionary`),editing:o()(`${a}:editing`),sitemap:o()(`${a}:sitemap`),multisite:o()(`${a}:multisite`),robots:o()(`${a}:robots`),redirects:o()(`${a}:redirects`),personalize:o()(`${a}:personalize`),errorpages:o()(`${a}:errorpages`)}},44671:function(e,t,r){e.exports=r(30089)},17332:function(e,t,r){"use strict";var n=r(76951),i=r(69607),o=r(61882),s=r(87440),a=r(13687),u=r(52931),c=r(96101),l=r(65947);e.exports=function(e){return new Promise(function(t,r){var d=e.data,h=e.headers,f=e.responseType;n.isFormData(d)&&delete h["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(y+":"+m)}var v=a(e.baseURL,e.url);function g(){if(p){var n="getAllResponseHeaders"in p?u(p.getAllResponseHeaders()):null;i(t,r,{data:f&&"text"!==f&&"json"!==f?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p}),p=null}}if(p.open(e.method.toUpperCase(),s(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(g)},p.onabort=function(){p&&(r(l("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){r(l("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var b=(e.withCredentials||c(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(h[e.xsrfHeaderName]=b)}
51"setRequestHeader"in p&&n.forEach(h,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete h[t]:p.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),f&&"json"!==f&&(p.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),r(e),p=null)}),d||(d=null),p.send(d)})}},30089:function(e,t,r){"use strict";var n=r(76951),i=r(70870),o=r(70741),s=r(99955);function a(e){var t=new o(e),r=i(o.prototype.request,t);return n.extend(r,o.prototype,t),n.extend(r,t),r}var u=a(r(9632));u.Axios=o,u.create=function(e){return a(s(u.defaults,e))},u.Cancel=r(98834),u.CancelToken=r(2809),u.isCancel=r(39003),u.all=function(e){return Promise.all(e)},u.spread=r(71494),u.isAxiosError=r(11632),e.exports=u,e.exports.default=u},98834:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},2809:function(e,t,r){"use strict";var n=r(98834);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},39003:function(e){"use strict";e.exports=function(e){return!!(e&&e.__CANCEL__)}},70741:function(e,t,r){"use strict";var n=r(76951),i=r(87440),o=r(77948),s=r(78241),a=r(99955),u=r(71917),c=u.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t,r=e.transitional;void 0!==r&&u.assertOptions(r,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(t){("function"!=typeof t.runWhen||!1!==t.runWhen(e))&&(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))});var o=[];if(this.interceptors.response.forEach(function(e){o.push(e.fulfilled,e.rejected)}),!i){var l=[s,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(o),t=Promise.resolve(e);l.length;)t=t.then(l.shift(),l.shift());return t}for(var d=e;n.length;){var h=n.shift(),f=n.shift();try{d=h(d)}catch(e){f(e);break}}try{t=s(d)}catch(e){return Promise.reject(e)}for(;o.length;)t=t.then(o.shift(),o.shift());return t},l.prototype.getUri=function(e){return i((e=a(this.defaults,e)).url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(e){l.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}}),n.forEach(["post","put","patch"],function(e){l.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}}),e.exports=l},77948:function(e,t,r){"use strict";var n=r(76951);function i(){this.handlers=[]}i.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},13687:function(e,t,r){"use strict";var n=r(69621),i=r(3390);e.exports=function(e,t){return e&&!n(t)?i(e,t):t}},65947:function(e,t,r){"use strict";var n=r(80145);e.exports=function(e,t,r,i,o){return n(Error(e),t,r,i,o)}},78241:function(e,t,r){"use strict";var n=r(76951),i=r(62614),o=r(39003),s=r(9632);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge
51(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return a(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t},function(t){return!o(t)&&(a(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},80145:function(e){"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},99955:function(e,t,r){"use strict";var n=r(76951);e.exports=function(e,t){t=t||{};var r={},i=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function c(i){n.isUndefined(t[i])?n.isUndefined(e[i])||(r[i]=u(void 0,e[i])):r[i]=u(e[i],t[i])}n.forEach(i,function(e){n.isUndefined(t[e])||(r[e]=u(void 0,t[e]))}),n.forEach(o,c),n.forEach(s,function(i){n.isUndefined(t[i])?n.isUndefined(e[i])||(r[i]=u(void 0,e[i])):r[i]=u(void 0,t[i])}),n.forEach(a,function(n){n in t?r[n]=u(e[n],t[n]):n in e&&(r[n]=u(void 0,e[n]))});var l=i.concat(o).concat(s).concat(a),d=Object.keys(e).concat(Object.keys(t)).filter(function(e){return -1===l.indexOf(e)});return n.forEach(d,c),r}},69607:function(e,t,r){"use strict";var n=r(65947);e.exports=function(e,t,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},62614:function(e,t,r){"use strict";var n=r(76951),i=r(9632);e.exports=function(e,t,r){var o=this||i;return n.forEach(r,function(r){e=r.call(o,e,t)}),e}},9632:function(e,t,r){"use strict";var n,i=r(83454),o=r(76951),s=r(6560),a=r(80145),u={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?n=r(17332):void 0!==i&&"[object process]"===Object.prototype.toString.call(i)&&(n=r(17332)),n),transformRequest:[function(e,t){return(s(t,"Accept"),s(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),function(e,t,r){if(o.isString(e))try{return(0,JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(e){l.headers[e]={}}),o.forEach(["post","put","patch"],function(e){l.headers[e]=o.merge(u)}),e.exports=l},70870:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},87440:function(e,t,r){"use strict";var n=r(76951);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;if(r)o=r(t);else if(n.isURLSearchParams(t))o=t.toString();else{var o,s=[];
51n.forEach(t,function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))}))}),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},3390:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},61882:function(e,t,r){"use strict";var n=r(76951);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(i)&&a.push("path="+i),n.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},69621:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},11632:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},96101:function(e,t,r){"use strict";var n=r(76951);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},6560:function(e,t,r){"use strict";var n=r(76951);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},52931:function(e,t,r){"use strict";var n=r(76951),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,s={};return e&&n.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t&&!(s[t]&&i.indexOf(t)>=0)&&("set-cookie"===t?s[t]=(s[t]?s[t]:[]).concat([r]):s[t]=s[t]?s[t]+", "+r:r)}),s}},71494:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},71917:function(e,t,r){"use strict";var n=r(76940),i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var o={},s=n.version.split(".");function a(e,t){for(var r=t?t.split("."):s,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])break}return!1}i.transitional=function(e,t,r){var i=t&&a(t);function s(e,t){return"[Axios v"+n.version+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,a){if(!1===e)throw Error(s(n," has been removed in "+t));return i&&!o[n]&&(o[n]=!0,console.warn(s(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}},e.exports={isOlderVersion:a,assertOptions:function(e,t,r){if("object"!=typeof e)throw TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],s=t[o];if(s){var a=e[o],u=void 0===a||s(a,o,e);if(!0!==u)throw TypeError("option "+o+" must be "+u);continue}if(!0!==r)throw Error("Unknown option "+o)}},validators:i}},76951:function(e,t,r){"use strict";var n=r(70870),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}}
51e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:u,isUndefined:s,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return a(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function r(r,n){u(t[n])&&u(r)?t[n]=e(t[n],r):u(r)?t[n]=e({},r):o(r)?t[n]=r.slice():t[n]=r}for(var n=0,i=arguments.length;n<i;n++)l(arguments[n],r);return t},extend:function(e,t,r){return l(t,function(t,i){r&&"function"==typeof t?e[i]=n(t,r):e[i]=t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},3112:function(e){"use strict";e.exports="object"==typeof self?self.FormData:window.FormData},98683: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});var i=r(34823),o=n(r(3112)),s=r(24277),a=function(e){return i.isExtractableFile(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.default=function(e,t,r,n){void 0===n&&(n=s.defaultJsonSerializer);var u=i.extractFiles({query:e,variables:t,operationName:r},"",a),c=u.clone,l=u.files;if(0===l.size){if(!Array.isArray(e))return n.stringify(c);if(void 0!==t&&!Array.isArray(t))throw Error("Cannot create request body with given variable type, array expected");var d=e.reduce(function(e,r,n){return e.push({query:r,variables:t?t[n]:void 0}),e},[]);return n.stringify(d)}var h=new("undefined"==typeof FormData?o.default:FormData);h.append("operations",n.stringify(c));var f={},p=0;return l.forEach(function(e){f[++p]=e}),h.append("map",n.stringify(f)),p=0,l.forEach(function(e,t){h.append(""+ ++p,t)}),h}},24277:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify}},99031:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=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)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};
51Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=void 0;var s=r(55045),a=r(20852),u="ping",c="pong",l="complete",d=function(){function e(e,t,r){this._type=e,this._payload=t,this._id=r}return Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){var 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)},enumerable:!1,configurable:!0}),e.parse=function(t,r){var n=JSON.parse(t),i=n.type,o=n.payload,s=n.id;return new e(i,r(o),s)},e}(),h=function(){function e(e,t){var r=this,a=t.onInit,h=t.onAcknowledged,y=t.onPing,m=t.onPong;this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.onopen=function(t){return i(r,void 0,void 0,function(){var t,r,n,i;return o(this,function(o){switch(o.label){case 0:if(this.socketState.acknowledged=!1,this.socketState.subscriptions={},r=(t=e).send,n=f,!a)return[3,2];return[4,a()];case 1:return i=o.sent(),[3,3];case 2:i=null,o.label=3;case 3:return r.apply(t,[n.apply(void 0,[i]).text]),[2]}})})},e.onclose=function(e){r.socketState.acknowledged=!1,r.socketState.subscriptions={}},e.onerror=function(e){console.error(e)},e.onmessage=function(t){try{var i,o,a=(i=t.data,void 0===o&&(o=function(e){return e}),d.parse(i,o));switch(a.type){case"connection_ack":r.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(r.socketState.acknowledged=!0,h&&h(a.payload));return;case u:y?y(a.payload).then(function(t){return e.send(p(t).text)}):e.send(p(null).text);return;case c:m&&m(a.payload);return}if(!r.socketState.acknowledged||void 0===a.id||null===a.id||!r.socketState.subscriptions[a.id])return;var f=r.socketState.subscriptions[a.id],v=f.query,g=f.variables,b=f.subscriber;switch(a.type){case"next":!a.payload.errors&&a.payload.data&&b.next&&b.next(a.payload.data),a.payload.errors&&b.error&&b.error(new s.ClientError(n(n({},a.payload),{status:200}),{query:v,variables:g}));return;case"error":b.error&&b.error(new s.ClientError({errors:a.payload,status:200},{query:v,variables:g}));return;case l:b.complete&&b.complete(),delete r.socketState.subscriptions[a.id];return}}catch(t){console.error(t),e.close(1006)}e.close(4400,"Unknown graphql-ws message.")}}return e.prototype.makeSubscribe=function(e,t,r,n){var i=this,o=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[o]={query:e,variables:r,subscriber:n},this.socket.send(new d("subscribe",{query:e,operationName:t,variables:r},o).text),function(){i.socket.send(new d(l,void 0,o).text),delete i.socketState.subscriptions[o]}},e.prototype.rawRequest=function(e,t){var r=this;return new Promise(function(n,i){var o;r.rawSubscribe(e,{next:function(e,t){return o={data:e,extensions:t}},error:i,complete:function(){return n(o)}},t)})},e.prototype.request=function(e,t){var r=this;return new Promise(function(n,i){var o;r.subscribe(e,{next:function(e){return o=e},error:i,complete:function(){return n(o)}},t)})},e.prototype.subscribe=function(e,t,r){var n=a.resolveRequestDocument(e),i=n.query,o=n.operationName;return this.makeSubscribe(i,o,r,t)},e.prototype.rawSubscribe=function(e,t,r){return this.makeSubscribe(e,void 0,r,t)},e.prototype.ping=function(e){this.socket.send(new d(u,e,void 0).text)},e.prototype.close=function(){this.socket.close(1e3)},e.PROTOCOL="graphql-transport-ws",e}();function f(e){return new d("connection_init",e)}function p(e){return new d(c,e,void 0)}t.GraphQLWebSocketClient=h},20852:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=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)},i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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}
51),s=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)&&i(t,e,r);return o(t,e),t},a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})},u=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},c=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},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=t.gql=t.resolveRequestDocument=t.batchRequests=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;
51var d=s(r(54098)),h=r(33140),f=r(25826),p=l(r(98683)),y=r(24277),m=r(53737),v=r(55045);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return v.ClientError}});var g=function(e){var t,r={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||e instanceof d.Headers?(t={},e.forEach(function(e,r){t[r]=e}),r=t):Array.isArray(e)?e.forEach(function(e){var t=e[0],n=e[1];r[t]=n}):r=e),r},b=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},E=function(e){var t=e.query,r=e.variables,n=e.operationName,i=e.jsonSerializer;if(!Array.isArray(t)){var o=["query="+encodeURIComponent(b(t))];return r&&o.push("variables="+encodeURIComponent(i.stringify(r))),n&&o.push("operationName="+encodeURIComponent(n)),o.join("&")}if(void 0!==r&&!Array.isArray(r))throw Error("Cannot create query with given variable type, array expected");var s=t.reduce(function(e,t,n){return e.push({query:b(t),variables:r?i.stringify(r[n]):void 0}),e},[]);return"query="+encodeURIComponent(i.stringify(s))},O=function(e){var t=e.url,r=e.query,i=e.variables,o=e.operationName,s=e.headers,c=e.fetch,l=e.fetchOptions;return a(void 0,void 0,void 0,function(){var e;return u(this,function(a){switch(a.label){case 0:return e=p.default(r,i,o,l.jsonSerializer),[4,c(t,n({method:"POST",headers:n(n({},"string"==typeof e?{"Content-Type":"application/json"}:{}),s),body:e},l))];case 1:return[2,a.sent()]}})})},_=function(e){var t=e.url,r=e.query,i=e.variables,o=e.operationName,s=e.headers,c=e.fetch,l=e.fetchOptions;return a(void 0,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,c(t+"?"+E({query:r,variables:i,operationName:o,jsonSerializer:l.jsonSerializer}),n({method:"GET",headers:s},l))];case 1:return[2,e.sent()]}})})},w=function(){function e(e,t){this.url=e,this.options=t||{}}return e.prototype.rawRequest=function(e,t,r){return a(this,void 0,void 0,function(){var i,o,s,a,l,h,f,p,y,v;return u(this,function(u){return i=m.parseRawRequestArgs(e,t,r),s=(o=this.options).headers,l=void 0===(a=o.fetch)?d.default:a,f=void 0===(h=o.method)?"POST":h,p=c(o,["headers","fetch","method"]),y=this.url,void 0!==i.signal&&(p.signal=i.signal),v=k(i.query).operationName,[2,S({url:y,query:i.query,variables:i.variables,headers:n(n({},g(x(s))),g(i.requestHeaders)),operationName:v,fetch:l,method:f,fetchOptions:p})]})})},e.prototype.request=function(e,t,r){return a(this,void 0,void 0,function(){var i,o,s,a,l,h,f,p,y,v,b,E;return u(this,function(u){switch(u.label){case 0:return i=m.parseRequestArgs(e,t,r),s=(o=this.options).headers,l=void 0===(a=o.fetch)?d.default:a,f=void 0===(h=o.method)?"POST":h,p=c(o,["headers","fetch","method"]),y=this.url,void 0!==i.signal&&(p.signal=i.signal),b=(v=k(i.document)).query,E=v.operationName,[4,S({url:y,query:b,variables:i.variables,headers:n(n({},g(x(s))),g(i.requestHeaders)),operationName:E,fetch:l,method:f,fetchOptions:p})];case 1:return[2,u.sent().data]}})})},e.prototype.batchRequests=function(e,t){return a(this,void 0,void 0,function(){var r,i,o,s,a,l,h,f,p;return u(this,function(u){switch(u.label){case 0:return r=m.parseBatchRequestArgs(e,t),o=(i=this.options).headers,a=void 0===(s=i.fetch)?d.default:s,h=void 0===(l=i.method)?"POST":l,f=c(i,["headers","fetch","method"]),p=this.url,void 0!==r.signal&&(f.signal=r.signal),[4,S({url:p,query:r.documents.map(function(e){return k(e.document).query}),variables:r.documents.map(function(e){return e.variables}),headers:n(n({},g(x(o))),g(r.requestHeaders)),operationName:void 0,fetch:a,method:h,fetchOptions:f})];case 1:return[2,u.sent().data]}})})},e.prototype.setHeaders=function(e){return this.options.headers=e,this},e.prototype.setHeader=function(e,t){var r,n=this.options.headers;return n?n[e]=t:this.options.headers=((r={})[e]=t,r),this},e.prototype.setEndpoint=function(e){return this.url=e,this},e}();function S(e){var t=e.url,r=e.query,i=e.variables,o=e.headers,s=e.operationName,l=e.fetch,d=e.method,h=void 0===d?"POST":d,f=e.fetchOptions;return a(this,void 0,void 0,function(){var e,d,p,m,g,b,E,w,S,T,C;return u(this,function(k){switch(k.label){case 0:return e="POST"===h.toUpperCase()?O:_,d=Array.isArray(r),[4,e({url:t,query:r,variables:i,operationName:s,headers:o,fetch:l,fetchOptions:f})];case 1:return[4,function(e,t){return void 0===t&&(t=y.defaultJsonSerializer),a(this,void 0,void 0,function(){var r,n,i;return u(this,function(o){switch(o.label){case 0:if(e.headers.forEac
51h(function(e,t){"content-type"===t.toLowerCase()&&(r=e)}),!(r&&r.toLowerCase().startsWith("application/json")))return[3,2];return i=(n=t).parse,[4,e.text()];case 1:return[2,i.apply(n,[o.sent()])];case 2:return[2,e.text()]}})})}(p=k.sent(),f.jsonSerializer)];case 2:if(m=k.sent(),g=d&&Array.isArray(m)?!m.some(function(e){return!e.data}):!!m.data,b=!m.errors||"all"===f.errorPolicy||"ignore"===f.errorPolicy,p.ok&&b&&g)return E=p.headers,w=p.status,m.errors,S=c(m,["errors"]),T="ignore"===f.errorPolicy?S:m,[2,n(n({},d?{data:T}:T),{headers:E,status:w})];throw C="string"==typeof m?{error:m}:m,new v.ClientError(n(n({},C),{status:p.status,headers:p.headers}),{query:r,variables:i})}})})}function T(e,t,r,i){return a(this,void 0,void 0,function(){var o;return u(this,function(s){return[2,new w((o=m.parseRequestExtendedArgs(e,t,r,i)).url).request(n({},o))]})})}function C(e){var t,r=void 0,n=e.definitions.filter(function(e){return"OperationDefinition"===e.kind});return 1===n.length&&(r=null===(t=n[0].name)||void 0===t?void 0:t.value),r}function k(e){if("string"==typeof e){var t=void 0;try{var r=h.parse(e);t=C(r)}catch(e){}return{query:e,operationName:t}}var n=C(e);return{query:f.print(e),operationName:n}}function x(e){return"function"==typeof e?e():e}t.GraphQLClient=w,t.rawRequest=function(e,t,r,i){return a(this,void 0,void 0,function(){var o;return u(this,function(s){return[2,new w((o=m.parseRawRequestExtendedArgs(e,t,r,i)).url).rawRequest(n({},o))]})})},t.request=T,t.batchRequests=function(e,t,r){return a(this,void 0,void 0,function(){var i;return u(this,function(o){return[2,new w((i=m.parseBatchRequestsExtendedArgs(e,t,r)).url).batchRequests(n({},i))]})})},t.default=T,t.resolveRequestDocument=k,t.gql=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return e.reduce(function(e,r,n){return""+e+r+(n in t?t[n]:"")},"")};var A=r(99031);Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return A.GraphQLWebSocketClient}})},53737:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseBatchRequestsExtendedArgs=t.parseRawRequestExtendedArgs=t.parseRequestExtendedArgs=t.parseBatchRequestArgs=t.parseRawRequestArgs=t.parseRequestArgs=void 0,t.parseRequestArgs=function(e,t,r){return e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0}},t.parseRawRequestArgs=function(e,t,r){return e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0}},t.parseBatchRequestArgs=function(e,t){return e.documents?e:{documents:e,requestHeaders:t,signal:void 0}},t.parseRequestExtendedArgs=function(e,t,r,n){return e.document?e:{url:e,document:t,variables:r,requestHeaders:n,signal:void 0}},t.parseRawRequestExtendedArgs=function(e,t,r,n){return e.query?e:{url:e,query:t,variables:r,requestHeaders:n,signal:void 0}},t.parseBatchRequestsExtendedArgs=function(e,t,r){return e.documents?e:{url:e,documents:t,requestHeaders:r,signal:void 0}}},55045:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;var i=function(e){function t(r,n){var i=this,o=t.extractMessage(r)+": "+JSON.stringify({response:r,request:n});return Object.setPrototypeOf(i=e.call(this,o)||this,t.prototype),i.response=r,i.request=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return n(t,e),t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}},t}(Error);t.ClientError=i},67140:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=void 0,t.formatError=function(e){return e.toJSON()},t.printError=function(e){return e.toString()};var n=r(60069),i=r(6671),o=r(77351);
51class s extends Error{constructor(e,...t){var r,o,u;let{nodes:c,source:l,positions:d,path:h,originalError:f,extensions:p}=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!=h?h:void 0,this.originalError=null!=f?f:void 0,this.nodes=a(Array.isArray(c)?c:c?[c]:void 0);let y=a(null===(r=this.nodes)||void 0===r?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=l?l:null==y?void 0:null===(o=y[0])||void 0===o?void 0:o.source,this.positions=null!=d?d:null==y?void 0:y.map(e=>e.start),this.locations=d&&l?d.map(e=>(0,i.getLocation)(l,e)):null==y?void 0:y.map(e=>(0,i.getLocation)(e.source,e.start));let m=(0,n.isObjectLike)(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(u=null!=p?p:m)&&void 0!==u?u: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!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,s):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"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(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 a(e){return void 0===e||0===e.length?void 0:e}t.GraphQLError=s},5163:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,r){return new n.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})};var n=r(67140)},19566:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.devAssert=function(e,t){if(!e)throw Error(t)}},96647:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=function(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))return function(t,r){if(0===t.length)return"[]";if(r.length>2)return"[Array]";let n=Math.min(10,t.length),i=t.length-n,o=[];for(let i=0;i<n;++i)o.push(e(t[i],r));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,n);return function(t,r){let n=Object.entries(t);return 0===n.length?"{}":r.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}(t)+"]":"{ "+n.map(([t,n])=>t+": "+e(n,r)).join(", ")+" }"}(t,n)}(t,r);default:return String(t)}}(e,[])}},56957:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instanceOf=void 0;var n=r(96647);let i=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(r=e.constructor)||void 0===r?void 0:r.name)){let t=(0,n.inspect)(e);throw Error(`Cannot use ${i} "${t}" from another module or realm.
52
53Ensure that there is only one instance of "graphql" in the node_modules
54directory. If different versions of "graphql" are the dependencies of other
55relied on modules, use "resolutions" to ensure only one version is installed.
56
57https://yarnpkg.com/en/docs/selective-version-resolutions
58
59Duplicate "graphql" modules cannot be used at the same time since different
60versions may have different capabilities and behavior. The data from one
61version used in the function from another could produce confusing and
62spurious results.`)}}return!1};t.instanceOf=i},93834:function(e,t){"use strict";
62Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=function(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}},60069:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},17629:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0,t.isNode=function(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&a.has(t)};class i{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}}}t.Location=i;class o{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}}}t.Token=o;let s={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","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],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"]};t.QueryDocumentKeys=s;let a=new Set(Object.keys(s));t.OperationTypeNode=r,(n=r||(t.OperationTypeNode=r={})).QUERY="query",n.MUTATION="mutation",n.SUBSCRIPTION="subscription"},18627:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringLines=function(e){var t,r;let i=Number.MAX_SAFE_INTEGER,o=null,s=-1;for(let t=0;t<e.length;++t){let a=e[t],u=function(e){let t=0;for(;t<e.length&&(0,n.isWhiteSpace)(e.charCodeAt(t));)++t;return t}(a);u!==a.length&&(o=null!==(r=o)&&void 0!==r?r:t,s=t,0!==t&&u<i&&(i=u))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!==(t=o)&&void 0!==t?t:0,s+1)},t.isPrintableAsBlockString=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)},t.printBlockString=function(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),o=1===i.length,s=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.isWhiteSpace)(e.charCodeAt(0))),a=r.endsWith('\\"""'),u=e.endsWith('"')&&!a,c=e.endsWith("\\"),l=u||c,d=!(null!=t&&t.minimize)&&(!o||e.length>70||l||s||a),h="",f=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));return(d&&!f||s)&&(h+="\n"),h+=r,(d||l)&&(h+="\n"),'"""'+h+'"""'};var n=r(37551)},37551:function(e,t){"use strict";function r(e){return e>=48&&e<=57}function n(e){return e>=97&&e<=122||e>=65&&e<=90}
62Object.defineProperty(t,"__esModule",{value:!0}),t.isDigit=r,t.isLetter=n,t.isNameContinue=function(e){return n(e)||r(e)||95===e},t.isNameStart=function(e){return n(e)||95===e},t.isWhiteSpace=function(e){return 9===e||32===e}},74675:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=r,(n=r||(t.DirectiveLocation=r={})).QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",n.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"},6062:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=r,(n=r||(t.Kind=r={})).NAME="Name",n.DOCUMENT="Document",n.OPERATION_DEFINITION="OperationDefinition",n.VARIABLE_DEFINITION="VariableDefinition",n.SELECTION_SET="SelectionSet",n.FIELD="Field",n.ARGUMENT="Argument",n.FRAGMENT_SPREAD="FragmentSpread",n.INLINE_FRAGMENT="InlineFragment",n.FRAGMENT_DEFINITION="FragmentDefinition",n.VARIABLE="Variable",n.INT="IntValue",n.FLOAT="FloatValue",n.STRING="StringValue",n.BOOLEAN="BooleanValue",n.NULL="NullValue",n.ENUM="EnumValue",n.LIST="ListValue",n.OBJECT="ObjectValue",n.OBJECT_FIELD="ObjectField",n.DIRECTIVE="Directive",n.NAMED_TYPE="NamedType",n.LIST_TYPE="ListType",n.NON_NULL_TYPE="NonNullType",n.SCHEMA_DEFINITION="SchemaDefinition",n.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",n.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",n.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",n.FIELD_DEFINITION="FieldDefinition",n.INPUT_VALUE_DEFINITION="InputValueDefinition",n.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",n.UNION_TYPE_DEFINITION="UnionTypeDefinition",n.ENUM_TYPE_DEFINITION="EnumTypeDefinition",n.ENUM_VALUE_DEFINITION="EnumValueDefinition",n.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",n.DIRECTIVE_DEFINITION="DirectiveDefinition",n.SCHEMA_EXTENSION="SchemaExtension",n.DIRECTIVE_EXTENSION="DirectiveExtension",n.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",n.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",n.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",n.UNION_TYPE_EXTENSION="UnionTypeExtension",n.ENUM_TYPE_EXTENSION="EnumTypeExtension",n.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",n.TYPE_COORDINATE="TypeCoordinate",n.MEMBER_COORDINATE="MemberCoordinate",n.ARGUMENT_COORDINATE="ArgumentCoordinate",n.DIRECTIVE_COORDINATE="DirectiveCoordinate",n.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"},70100:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0,t.createToken=p,t.isPunctuatorTokenKind=function(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.DOT||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R},t.printCodePointAt=f,t.readName=g;var n=r(5163),i=r(17629),o=r(18627),s=r(37551),a=r(87123);class u{constructor(e){let t=new i.Token(a.TokenKind.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.TokenKind.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,i=r.length,u=t;for(;u<i;){let t=r.charCodeAt(u);switch(t){case 65279:case 9:case 32:case 44:++u;continue;case 10:++u,++e.line,e.lineStart=u;continue;case 13:10===r.charCodeAt(u+1)?u+=2:++u,++e.line,e.lineStart=u;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(c(e))++i;else if(l(r,i))i+=2;else break}return p(e,a.TokenKind.COMMENT,t,i,r.slice(t+1,i))}(e,u);case 33:return p(e,a.TokenKind.BANG,u,u+1);case 36:return p(e,a.TokenKind.DOLLAR,u,u+1);case 38:return p(e,a.TokenKind.AMP,u,u+1);case 40:return p(e,a.TokenKind.PAREN_L,u,u+1);case 41:return p(e,a.TokenKind.PAREN_R,u,u+1);case 46:if(46===r.charCodeAt(u+1)&&46===r.charCodeAt(u+2))return p(e,a.TokenKind.SPREAD,u,u+3);break;case 58:return p(e,a.TokenKind.COLON,u,u+1);case 61:return p(e,a.TokenKind.EQUALS,u,u+1);case 64:return p(e,a.TokenKind.AT,u,u+1);case 91:return p(e,a.TokenKind.BRACKET_L,u,u+1);case 93:return p(e,a.TokenKind.BRACKET_R,u,u+1);case 123:return p(e,a.TokenKind.BRACE_L,u,u+1);case 124:return p(e,a.TokenKind.PIPE,u,u+1);case 125:return p(e,a.TokenKind.BRACE_R,u,u+1);case 34:if(34===r.charCodeAt(u+1)&&34===r.charCodeAt(u+2))return function(e,t){let r=e.source.body,i=r.length,s=e.lineStart,u=t+3,d=u,h="",y=[];for(;u<i;){let i=r.charCodeAt(u);if(34===i&&34===r.charCodeAt(u+1)&&34===r.charCodeAt(u+2)){h+=r.slice(d,u),y.push(h);let n=p(e,a.TokenKind.BLOCK_STRING,t,u+3,(0,o.dedentBlockStringLines)(y).join("\n"));return e.line+=y.length-1,e.lineStart=s,n}if(92===i&&34===r.charCodeAt(u+1)&&34===r.charCodeAt(u+2)&&34===r.charCodeAt(u+3)){h+=r.slice(d,u),d=u+1,u+=4;continue}if(10===i||13===i){h+=r.slice(d,u),y.push(h),13===i&&10===r.charCodeAt(u+1)?u+=2:++u,h="",d=u,s=u;continue}if(c(i))++u;else if(l(r,u))u+=2;else throw(0,n.syntaxError)(e.source,u,`Invalid character within String: ${f(e,u)}.`)}throw(0,n.syntaxError)(e.source,u,"Unterminated string.")}(e,u);return function(e,t){let r=e.source.body,i=r.length,o=t+1,s=o,u="";for(;o<i;){let i=r.charCodeAt(o);if(34===i)return u+=r.slice(s,o),p(e,a.TokenKind.STRING,t,o+1,u);if(92===i){u+=r.slice(s,o);let t=117===r.charCodeAt(o+1)?123===r.charCodeAt(o+2)?function(e,t){let r=e.source.body,i=0,o=3;for(;o<12;){let e=r.charCodeAt(t+o++);if(125===e){if(o<5||!c(i))break;return{value:String.fromCodePoint(i),size:o}}if((i=i<<4|v(e))<0)break}throw(0,n.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+o)}".`)}(e,o):function(e,t){let r=e.source.body,i=m(r,t+2);if(c(i))return{value:String.fromCodePoint(i),size:6};if(d(i)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=m(r,t+8);
62if(h(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,n.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,o):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(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,o);u+=t.value,o+=t.size,s=o;continue}if(10===i||13===i)break;if(c(i))++o;else if(l(r,o))o+=2;else throw(0,n.syntaxError)(e.source,o,`Invalid character within String: ${f(e,o)}.`)}throw(0,n.syntaxError)(e.source,o,"Unterminated string.")}(e,u)}if((0,s.isDigit)(t)||45===t)return function(e,t,r){let i=e.source.body,o=t,u=r,c=!1;if(45===u&&(u=i.charCodeAt(++o)),48===u){if(u=i.charCodeAt(++o),(0,s.isDigit)(u))throw(0,n.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${f(e,o)}.`)}else o=y(e,o,u),u=i.charCodeAt(o);if(46===u&&(c=!0,u=i.charCodeAt(++o),o=y(e,o,u),u=i.charCodeAt(o)),(69===u||101===u)&&(c=!0,(43===(u=i.charCodeAt(++o))||45===u)&&(u=i.charCodeAt(++o)),o=y(e,o,u),u=i.charCodeAt(o)),46===u||(0,s.isNameStart)(u))throw(0,n.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${f(e,o)}.`);return p(e,c?a.TokenKind.FLOAT:a.TokenKind.INT,t,o,i.slice(t,o))}(e,u,t);if((0,s.isNameStart)(t))return g(e,u);throw(0,n.syntaxError)(e.source,u,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":c(t)||l(r,u)?`Unexpected character: ${f(e,u)}.`:`Invalid character: ${f(e,u)}.`)}return p(e,a.TokenKind.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===a.TokenKind.COMMENT);return e}}function c(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function l(e,t){return d(e.charCodeAt(t))&&h(e.charCodeAt(t+1))}function d(e){return e>=55296&&e<=56319}function h(e){return e>=56320&&e<=57343}function f(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return a.TokenKind.EOF;
62if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function p(e,t,r,n,o){let s=e.line,a=1+r-e.lineStart;return new i.Token(t,r,n,s,a,o)}function y(e,t,r){if(!(0,s.isDigit)(r))throw(0,n.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${f(e,t)}.`);let i=e.source.body,o=t+1;for(;(0,s.isDigit)(i.charCodeAt(o));)++o;return o}function m(e,t){return v(e.charCodeAt(t))<<12|v(e.charCodeAt(t+1))<<8|v(e.charCodeAt(t+2))<<4|v(e.charCodeAt(t+3))}function v(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function g(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if((0,s.isNameContinue)(e))++i;else break}return p(e,a.TokenKind.NAME,t,i,r.slice(t,i))}t.Lexer=u},6671:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){let r=0,o=1;for(let s of e.body.matchAll(i)){if("number"==typeof s.index||(0,n.invariant)(!1),s.index>=t)break;r=s.index+s[0].length,o+=1}return{line:o,column:t+1-r}};var n=r(93834);let i=/\r\n|[\n\r]/g},33140:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0,t.parse=function(e,t){let r=new d(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n},t.parseConstValue=function(e,t){let r=new d(e,t);r.expectToken(l.TokenKind.SOF);let n=r.parseConstValueLiteral();return r.expectToken(l.TokenKind.EOF),n},t.parseSchemaCoordinate=function(e){let t=(0,c.isSource)(e)?e:new c.Source(e),r=new d(e,{lexer:new u.SchemaCoordinateLexer(t)});r.expectToken(l.TokenKind.SOF);let n=r.parseSchemaCoordinate();return r.expectToken(l.TokenKind.EOF),n},t.parseType=function(e,t){let r=new d(e,t);r.expectToken(l.TokenKind.SOF);let n=r.parseTypeReference();return r.expectToken(l.TokenKind.EOF),n},t.parseValue=function(e,t){let r=new d(e,t);r.expectToken(l.TokenKind.SOF);let n=r.parseValueLiteral(!1);return r.expectToken(l.TokenKind.EOF),n};var n=r(5163),i=r(17629),o=r(74675),s=r(6062),a=r(70100),u=r(48030),c=r(1916),l=r(87123);class d{constructor(e,t={}){let{lexer:r,...n}=t;if(r)this._lexer=r;else{let t=(0,c.isSource)(e)?e:new c.Source(e);this._lexer=new a.Lexer(t)}this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(l.TokenKind.NAME);return this.node(e,{kind:s.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:s.Kind.DOCUMENT,definitions:this.many(l.TokenKind.SOF,this.parseDefinition,l.TokenKind.EOF)})}parseDefinition(){if(this.peek(l.TokenKind.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===l.TokenKind.BRACE_L)throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===l.TokenKind.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(0,n.syntaxError)(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;let t=this._lexer.token;if(this.peek(l.TokenKind.BRACE_L))return this.node(t,{kind:s.Kind.OPERATION_DEFINITION,operation:i.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseDescription(),n=this.parseOperationType();return this.peek(l.TokenKind.NAME)&&(e=this.parseName()),this.node(t,{kind:s.Kind.OPERATION_DEFINITION,operation:n,description:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(l.TokenKind.NAME);switch(e.value){case"query":return i.OperationTypeNode.QUERY;case"mutation":return i.OperationTypeNode.MUTATION;case"subscription":return i.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(l.TokenKind.PAREN_L,this.parseVariableDefinition,l.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:s.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(l.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(l.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(l.TokenKind.DOLLAR),this.node(e,{kind:s.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:s.Kind.SELECTION_SET,selections:this.many(l.TokenKind.BRACE_L,this.parseSelection,l.TokenKind.BRACE_R)})}parseSelection(){return this.peek(l.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(l.TokenKind.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:s.Kind.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(l.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(l.TokenKind.PAREN_L,t,l.TokenKind.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(l.TokenKind.COLON),this.node(t,{kind:s.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(l.TokenKind.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(l.TokenKind.NAME)?this.node(e,{kind:s.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:s.Kind.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:s.Kind.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:s.Kind.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 l.TokenKind.BRACKET_L:return this.parseList(e);case l.TokenKind.BRACE_L:return this.parseObject(e);case l.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:s.Kind.INT,value:t.value});case l.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:s.Kind.FLOAT,value:t.value});case l.TokenKind.STRING:case l.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case l.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:s.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:s.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:s.Kind.NULL});default:return this.node(t,{kind:s.Kind.ENUM,value:t.value})}case l.TokenKind.DOLLAR:if(e){if(this.expectToken(l.TokenKind.DOLLAR),this._lexer.token.kind===l.TokenKind.NAME){let e=this._lexer.token.value;throw(0,n.syntaxError)(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:s.Kind.STRING,value:e.value,block:e.kind===l.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:s.Kind.LIST,values:this.any(l.TokenKind.BRACKET_L,()=>this.parseValueLiteral(e),l.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:s.Kind.OBJECT,fields:this.any(l.TokenKind.BRACE_L,()=>this.parseObjectField(e),l.TokenKind.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(l.TokenKind.COLON),this.node(t,{kind:s.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(l.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(l.TokenKind.AT),this.node(t,{kind:s.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(l.TokenKind.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(l.TokenKind.BRACKET_R),e=this.node(t,{kind:s.Kind.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(l.TokenKind.BANG)?this.node(t,{kind:s.Kind.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:s.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(l.TokenKind.STRING)||this.peek(l.TokenKind.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(l.TokenKind.BRACE_L,this.parseOperationTypeDefinition,l.TokenKind.BRACE_R);return this.node(e,{kind:s.Kind.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(l.TokenKind.COLON);let r=this.parseNamedType();return this.node(e,{kind:s.Kind.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:s.Kind.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(),o=this.parseFieldsDefinition();return this.node(e,{kind:s.Kind.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(l.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseFieldDefinition,l.TokenKind.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(l.TokenKind.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:s.Kind.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(l.TokenKind.PAREN_L,this.parseInputValueDef,l.TokenKind.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(l.TokenKind.COLON);let i=this.parseTypeReference();this.expectOptionalToken(l.TokenKind.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:s.Kind.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:s.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}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:s.Kind.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(l.TokenKind.EQUALS)?this.delimitedMany(l.TokenKind.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:s.Kind.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseEnumValueDefinition,l.TokenKind.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:s.Kind.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(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,`${h(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:s.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseInputValueDef,l.TokenKind.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===l.TokenKind.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();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(l.TokenKind.BRACE_L,this.parseOperationTypeDefinition,l.TokenKind.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:s.Kind.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:s.Kind.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:s.Kind.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.parseConstDirectiv
62es(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:s.Kind.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:s.Kind.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:s.Kind.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:s.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinitionExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(l.TokenKind.AT);let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:s.Kind.DIRECTIVE_EXTENSION,name:t,directives:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(l.TokenKind.AT);let r=this.parseName(),n=this.parseArgumentDefs(),i=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(e,{kind:s.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,directives:i,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(l.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t;let r=this._lexer.token,n=this.expectOptionalToken(l.TokenKind.AT),i=this.parseName();return(!n&&this.expectOptionalToken(l.TokenKind.DOT)&&(e=this.parseName()),(n||e)&&this.expectOptionalToken(l.TokenKind.PAREN_L)&&(t=this.parseName(),this.expectToken(l.TokenKind.COLON),this.expectToken(l.TokenKind.PAREN_R)),n)?t?this.node(r,{kind:s.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:t}):this.node(r,{kind:s.Kind.DIRECTIVE_COORDINATE,name:i}):e?t?this.node(r,{kind:s.Kind.ARGUMENT_COORDINATE,name:i,fieldName:e,argumentName:t}):this.node(r,{kind:s.Kind.MEMBER_COORDINATE,name:i,memberName:e}):this.node(r,{kind:s.Kind.TYPE_COORDINATE,name:i})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new i.Location(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(0,n.syntaxError)(this._lexer.source,t.start,`Expected ${f(e)}, found ${h(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===l.TokenKind.NAME&&t.value===e)this.advanceLexer();else throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${h(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===l.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected ${h(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!==l.TokenKind.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw(0,n.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function h(e){let t=e.value;return f(e.kind)+(null!=t?` "${t}"`:"")}function f(e){return(0,a.isPunctuatorTokenKind)(e)?`"${e}"`:e}t.Parser=d},77351:function(e,t,r){"use strict";
62Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,n.getLocation)(e.source,e.start))},t.printSourceLocation=i;var n=r(6671);function i(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=1===t.line?r:0,c=t.column+u,l=`${e.name}:${a}:${c}
63`,d=n.split(/\r\n|[\n\r]/g),h=d[i];if(h.length>120){let e=Math.floor(c/80),t=[];for(let e=0;e<h.length;e+=80)t.push(h.slice(e,e+80));return l+o([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(c%80)],["|",t[e+1]]])}return l+o([[`${a-1} |`,d[i-1]],[`${a} |`,h],["|","^".padStart(c)],[`${a+1} |`,d[i+1]]])}function o(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")}},71891:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printString=function(e){return`"${e.replace(r,n)}"`};let r=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function n(e){return i[e.charCodeAt(0)]}let i=["\\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"]},25826:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,o.visit)(e,s)};var n=r(18627),i=r(71891),o=r(85108);let s={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>a(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=d(e.variableDefinitions)?c("(\n",a(e.variableDefinitions,"\n"),"\n)"):c("(",a(e.variableDefinitions,", "),")"),r=c("",e.description,"\n")+a([e.operation,a([e.name,t]),a(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>c("",i,"\n")+e+": "+t+c(" = ",r)+c(" ",a(n," "))},SelectionSet:{leave:({selections:e})=>u(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=c("",e,": ")+t,s=o+c("(",a(r,", "),")");return s.length>80&&(s=o+c("(\n",l(a(r,"\n")),"\n)")),a([s,a(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+c(" ",a(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>a(["...",c("on ",e),a(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>c("",o,"\n")+`fragment ${e}${c("(",a(r,", "),")")} `+`on ${t} ${c("",a(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.printBlockString)(e):(0,i.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+a(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+a(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+c("(",a(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>c("",e,"\n")+a(["schema",a(t," "),u(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>c("",e,"\n")+a(["scalar",t,a(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>c("",e,"\n")+a(["type",t,c("implements ",a(r," & ")),a(n," "),u(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>
63c("",e,"\n")+t+(d(r)?c("(\n",l(a(r,"\n")),"\n)"):c("(",a(r,", "),")"))+": "+n+c(" ",a(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>c("",e,"\n")+a([t+": "+r,c("= ",n),a(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>c("",e,"\n")+a(["interface",t,c("implements ",a(r," & ")),a(n," "),u(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>c("",e,"\n")+a(["union",t,a(r," "),c("= ",a(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>c("",e,"\n")+a(["enum",t,a(r," "),u(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>c("",e,"\n")+a([t,a(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>c("",e,"\n")+a(["input",t,a(r," "),u(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:n,repeatable:i,locations:o})=>c("",e,"\n")+"directive @"+t+(d(r)?c("(\n",l(a(r,"\n")),"\n)"):c("(",a(r,", "),")"))+c(" ",a(n," "))+(i?" repeatable":"")+" on "+a(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>a(["extend schema",a(e," "),u(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>a(["extend scalar",e,a(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>a(["extend type",e,c("implements ",a(t," & ")),a(r," "),u(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>a(["extend interface",e,c("implements ",a(t," & ")),a(r," "),u(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>a(["extend union",e,a(t," "),c("= ",a(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>a(["extend enum",e,a(t," "),u(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>a(["extend input",e,a(t," "),u(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>a(["extend directive @"+e,a(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>a([e,c(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>a([e,c(".",t),c("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>a(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>a(["@",e,c("(",t,":)")])}};function a(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function u(e){return c("{\n",l(a(e,"\n")),"\n}")}function c(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function l(e){return c("  ",e.replace(/\n/g,"\n  "))}function d(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}},48030:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaCoordinateLexer=void 0;var n=r(5163),i=r(17629),o=r(37551),s=r(70100),a=r(87123);class u{line=1;lineStart=0;constructor(e){let t=new i.Token(a.TokenKind.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.TokenKind.EOF){let t=function(e,t){let r=e.source.body,i=r.length;if(t<i){let i=r.charCodeAt(t);switch(i){case 46:return(0,s.createToken)(e,a.TokenKind.DOT,t,t+1);case 40:return(0,s.createToken)(e,a.TokenKind.PAREN_L,t,t+1);case 41:return(0,s.createToken)(e,a.TokenKind.PAREN_R,t,t+1);case 58:return(0,s.createToken)(e,a.TokenKind.COLON,t,t+1);case 64:return(0,s.createToken)(e,a.TokenKind.AT,t,t+1)}if((0,o.isNameStart)(i))return(0,s.readName)(e,t);throw(0,n.syntaxError)(e.source,t,`Invalid character: ${(0,s.printCodePointAt)(e,t)}.`)}return(0,s.createToken)(e,a.TokenKind.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}return e}}t.SchemaCoordinateLexer=u},1916:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,t.isSource=function(e){return(0,o.instanceOf)(e,s)};var n=r(19566),i=r(96647),o=r(56957);class s{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,n.devAssert)(!1,`Body must be a string. Received: ${(0,i.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,n.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,n.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=s},87123:function(e,t){"use strict";var r,n;
63Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=r,(n=r||(t.TokenKind=r={})).SOF="<SOF>",n.EOF="<EOF>",n.BANG="!",n.DOLLAR="$",n.AMP="&",n.PAREN_L="(",n.PAREN_R=")",n.DOT=".",n.SPREAD="...",n.COLON=":",n.EQUALS="=",n.AT="@",n.BRACKET_L="[",n.BRACKET_R="]",n.BRACE_L="{",n.PIPE="|",n.BRACE_R="}",n.NAME="Name",n.INT="Int",n.FLOAT="Float",n.STRING="String",n.BLOCK_STRING="BlockString",n.COMMENT="Comment"},85108:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=void 0,t.getEnterLeaveForKind=u,t.getVisitFn=function(e,t,r){let{enter:n,leave:i}=u(e,t);return r?i:n},t.visit=function(e,t,r=o.QueryDocumentKeys){let c,l,d;let h=new Map;for(let e of Object.values(s.Kind))h.set(e,u(t,e));let f=Array.isArray(e),p=[e],y=-1,m=[],v=e,g=[],b=[];do{var E,O,_;let e;let s=++y===p.length,u=s&&0!==m.length;if(s){if(l=0===b.length?void 0:g[g.length-1],v=d,d=b.pop(),u){if(f){v=v.slice();let e=0;for(let[t,r]of m){let n=t-e;null===r?(v.splice(n,1),e++):v[n]=r}}else for(let[e,t]of(v={...v},m))v[e]=t}y=c.index,p=c.keys,m=c.edits,f=c.inArray,c=c.prev}else if(d){if(null==(v=d[l=f?y:p[y]]))continue;g.push(l)}if(!Array.isArray(v)){(0,o.isNode)(v)||(0,n.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(v)}.`);let r=s?null===(E=h.get(v.kind))||void 0===E?void 0:E.leave:null===(O=h.get(v.kind))||void 0===O?void 0:O.enter;if((e=null==r?void 0:r.call(t,v,l,d,g,b))===a)break;if(!1===e){if(!s){g.pop();continue}}else if(void 0!==e&&(m.push([l,e]),!s)){if((0,o.isNode)(e))v=e;else{g.pop();continue}}}void 0===e&&u&&m.push([l,v]),s?g.pop():(c={inArray:f,index:y,keys:p,edits:m,prev:c},p=(f=Array.isArray(v))?v:null!==(_=r[v.kind])&&void 0!==_?_:[],y=-1,m=[],d&&b.push(d),d=v)}while(void 0!==c);return 0!==m.length?m[m.length-1][1]:e},t.visitInParallel=function(e){let t=Array(e.length).fill(null),r=Object.create(null);for(let n of Object.values(s.Kind)){let i=!1,o=Array(e.length).fill(void 0),s=Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){let{enter:r,leave:a}=u(e[t],n);i||(i=null!=r||null!=a),o[t]=r,s[t]=a}if(!i)continue;let c={enter(...r){let n=r[0];for(let s=0;s<e.length;s++)if(null===t[s]){var i;let u=null===(i=o[s])||void 0===i?void 0:i.apply(e[s],r);if(!1===u)t[s]=n;else if(u===a)t[s]=a;else if(void 0!==u)return u}},leave(...r){let n=r[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;let n=null===(i=s[o])||void 0===i?void 0:i.apply(e[o],r);if(n===a)t[o]=a;else if(void 0!==n&&!1!==n)return n}else t[o]===n&&(t[o]=null)}};r[n]=c}return r};var n=r(19566),i=r(96647),o=r(17629),s=r(6062);let a=Object.freeze({});function u(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}}t.BREAK=a},54098:function(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){var t=void 0!==i&&i||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},n={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(n.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function a(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 u(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?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 h(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=h(t);return t.readAsArrayBuffer(e),r}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(n.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(n.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=p(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):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.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)return d(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(n.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=h(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")},n.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=a(e),t=u(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[a(e)]},l.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},l.prototype.set=function(e,t){this.map[a(e)]=u(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),c(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),c(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),c(e)},n.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var m=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(e,r){if(!(this instanceof v))throw TypeError('Please use the "new" operator, this DOM object c
63onstructor cannot be called as a function.');var n,i,o=(r=r||{}).body;if(e instanceof v){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,r.headers||(this.headers=new l(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=r.credentials||this.credentials||"same-origin",(r.headers||!this.headers)&&(this.headers=new l(r.headers)),this.method=(i=(n=r.method||this.method||"GET").toUpperCase(),m.indexOf(i)>-1?i:n),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal||function(){if("AbortController"in t)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"===r.cache||"no-cache"===r.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function g(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 l(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},y.call(v.prototype),y.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(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}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function O(r,i){return new Promise(function(o,s){var c=new v(r,i);if(c.signal&&c.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var d=new XMLHttpRequest;function h(){d.abort()}if(d.onload=function(){var e,t,r={statusText:d.statusText,headers:(e=d.getAllResponseHeaders()||"",t=new l,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===c.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(){s(TypeError("Network request failed"))},0)},d.ontimeout=function(){setTimeout(function(){s(TypeError("Network request timed out"))},0)},d.onabort=function(){setTimeout(function(){s(new e.DOMException("Aborted","AbortError"))},0)},d.open(c.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?d.withCredentials=!0:"omit"===c.credentials&&(d.withCredentials=!1),"responseType"in d&&(n.blob?d.responseType="blob":n.arrayBuffer&&(d.responseType="arraybuffer")),i&&"object"==typeof i.headers&&!(i.headers instanceof l||t.Headers&&i.headers instanceof t.Headers)){var f=[];
63Object.getOwnPropertyNames(i.headers).forEach(function(e){f.push(a(e)),d.setRequestHeader(e,u(i.headers[e]))}),c.headers.forEach(function(e,t){-1===f.indexOf(t)&&d.setRequestHeader(t,e)})}else c.headers.forEach(function(e,t){d.setRequestHeader(t,e)});c.signal&&(c.signal.addEventListener("abort",h),d.onreadystatechange=function(){4===d.readyState&&c.signal.removeEventListener("abort",h)}),d.send(void 0===c._bodyInit?null:c._bodyInit)})}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=l,t.Request=v,t.Response=b),e.Headers=l,e.Request=v,e.Response=b,e.fetch=O,Object.defineProperty(e,"__esModule",{value:!0})})({}),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},69496:function(e){"use strict";e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=void 0,i=void 0,o=void 0,s=[];return function(){var u,c="function"==typeof t?t():t,l=new Date().getTime(),d=!n||l-n>c;n=l;for(var h=arguments.length,f=Array(h),p=0;p<h;p++)f[p]=arguments[p];if(d&&r.leading)return r.accumulate?Promise.resolve(e.call(this,[f])).then(function(e){return e[0]}):Promise.resolve(e.call.apply(e,[this].concat(f)));if(i?clearTimeout(o):((u={}).promise=new Promise(function(e,t){u.resolve=e,u.reject=t}),i=u),s.push(f),o=setTimeout(a.bind(this),c),r.accumulate){var y=s.length-1;return i.promise.then(function(e){return e[y]})}return i.promise};function a(){var t=i;clearTimeout(o),Promise.resolve(r.accumulate?e.call(this,s):e.apply(this,s[s.length-1])).then(t.resolve,t.reject),s=[],i=null}}},11227:function(e,t,r){let n;var i=r(83454);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!==i&&"env"in i&&(e=i.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=(n=!1,()=>{n||(n=!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(82447)(t);let{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},82447:function(e,t,r){e.exports=function(e){function t(e){let r,i,o;let s=null;function a(...e){if(!a.enabled)return;let n=Number(new Date),i=n-(r||n);a.diff=i,a.prev=r,a.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";o++;let i=t.formatters[n];if("function"==typeof i){let t=e[o];r=i.call(a,t),e.splice(o,1),o--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}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(
63Boolean)))"-"===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(57824),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}},26905:function(e){e.exports=function(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:i;return e===i?r:e}},72445:function(e){"use strict";e.exports=function(e){var t=e.uri,r=e.name,n=e.type;this.uri=t,this.name=r,this.type=n}},40804:function(e,t,r){"use strict";var n=r(51268);e.exports=function e(t,r,i){void 0===r&&(r=""),void 0===i&&(i=n);var o,s=new Map;function a(e,t){var r=s.get(t);r?r.push.apply(r,e):s.set(t,e)}if(i(t))o=null,a([r],t);else{var u=r?r+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)o=Array.prototype.map.call(t,function(e,t){return a([""+u+t],e),null});else if(Array.isArray(t))o=t.map(function(t,r){var n=e(t,""+u+r,i);return n.files.forEach(a),n.clone});else if(t&&t.constructor===Object)for(var c in o={},t){var l=e(t[c],""+u+c,i);l.files.forEach(a),o[c]=l.clone}else o=t}return{clone:o,files:s}}},34823:function(e,t,r){"use strict";t.ReactNativeFile=r(72445),t.extractFiles=r(40804),t.isExtractableFile=r(51268)},51268:function(e,t,r){"use strict";var n=r(72445);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof n}},21879:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],r.get(i[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(t[i]!==r[i])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var n,i,o,s=o[i];if(("_owner"!==s||!t.$$typeof)&&!e(t[s],r[s]))return!1}return!0}return t!=t&&r!=r}},47798:function(e){"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},21540:function(e,t,r){var n,i=1/0,o=/&(?:amp|lt|gt|quot|#39|#96);/g,s=RegExp(o.source),a="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,u="object"==typeof self&&self&&self.Object===Object&&self,c=a||u||Function("return this")(),l=(n={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},function(e){return null==n?void 0:n[e]}),d=Object.prototype.toString,h=c.Symbol,f=h?h.prototype:void 0,p=f?f.toString:void 0;e.exports=function(e){var t;return(e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==d.call(t))return p?p.call(e):"";var t,r=e+"";return"0"==r&&1/e==-i?"-0":r}(t))&&s.test(e)?e.replace(o,l):e}},7113:function(e){"use strict";function t(){var e=Object.create(null),t=0,r=0,n=0,i=!1;function o(t){n--,delete e[t]}this.put=function(t,r,s,a){if(i&&console.log("caching: %s = %j (@%s)",t,r,s),void 0!==s&&("number"!=typeof s||isNaN(s)||s<=0))throw Error("Cache timeout must be a positive number");if(void 0!==a&&"function"!=typeof a)throw Error("Cache timeout callback must be a function");var u=e[t];u?clearTimeout(u.timeout):n++;var c={value:r,expire:s+Date.now()};return isNaN(c.expire)||(c.timeout=setTimeout((function(){o(t),a&&a(t,r)}).bind(this),s)),e[t]=c,r},this.del=function(t){var r=!0,n=e[t];return n?(clearTimeout(n.timeout),!isNaN(n.expire)&&n.expire<Date.now()&&(r=!1)):r=!1,r&&o(t),r},this.clear=function(){for(var o in e)clearTimeout(e[o].timeout);n=0,e=Object.create(null),i&&(t=0,r=0)},this.get=function(o){var s=e[o];if(void 0!==s){if(isNaN(s.expire)||s.expire>=Date.now())return i&&t++,s.value;i&&r++,n--,delete e[o]}else i&&r++;return null},this.size=function(){return n},this.memsize=function(){var t,r=0;for(t in e)r++;return r},this.debug=function(e){i=e},this.hits=function(){return t},this.misses=function(){return r},this.keys=function(){return Object.keys(e)},this.exportJson=function(){var t={};for(var r in e){var n=e[r];t[r]={value:n.value,expire:n.expire||"NaN"}}return JSON.stringify(t)},this.importJson=function(t,r){var n=JSON.parse(t),o=Date.now(),s=r&&r.skipDuplicates;for(var a in n)if(n.hasOwnProperty(a)){if(s&&e[a]){i&&console.log("Skipping duplicate imported key '%s'",a);continue}var u=n[a],c=u.expire-o;if(c<=0){this.del(a);continue}c=c>0?c:void 0,this.put(a,u.value,c)}return this.size()}}e.exports=new t,e.exports.Cache=t},57824:function(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=typeof e;if("string"===o&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===o&&isFinite(e))return r.long?(n=Math.abs(e))>=864e5?t(e,n,864e5,"day"):n>=36e5?t(e,n,36e5,"hour"):n>=6e4?t(e,n,6e4,"minute"):n>
63=1e3?t(e,n,1e3,"second"):e+" ms":(i=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":i>=36e5?Math.round(e/36e5)+"h":i>=6e4?Math.round(e/6e4)+"m":i>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},22556:function(e,t,r){"use strict";r.d(t,{bd:function(){return c},QT:function(){return l}});var n=r(67294),i=r(26905);let o=/{{(.*?)}}/g;function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var a=(0,n.createContext)(),u=function(e){var t,r,n=(t="",r=e||{},{set(e,t){r[e]=Object.assign(r[e]||{},t)},locale:e=>t=e||t,table:e=>r[e],t(e,n,s){var a=i(r[s||t],e,"");return"function"==typeof a?a(n):"string"==typeof a?a.replace(o,(e,t,r)=>{for(e=0,r=n,t=t.trim().split(".");r&&e<t.length;)r=r[t[e++]];return null!=r?r:""}):a}});return{_onUpdate:function(){},t:n.t,table:n.table,set:n.set,locale:function(e){if(void 0===e)return n.locale();var t=n.locale(e);return this._onUpdate(),t},withPlural:function(e){var t=this;void 0===e&&(e={type:"ordinal"});var r=new Intl.PluralRules(n.locale(),e);return function(e,n){return Object.keys(n).map(function(e){if("number"==typeof n[e]){var i=r.select(n[e]);n[e]=t.t(e+"."+i)}}),t.t.apply(t,[e,n].concat([].slice.call(arguments,2)))}}}};function c(e){var t=e.children,r=e.locale,i=void 0===r?"en":r,o=e.lngDict,c=e.i18nInstance,l=(0,n.useState)(0)[1],d=(0,n.useMemo)(function(){var e=null!=c?c:u();return e._onUpdate=function(){return l(function(e){return e+1})},e.set(i,o),e.locale(i),e},[c]);return(0,n.useEffect)(function(){d.set(i,o),d.locale(i)},[i,o]),n.createElement(a.Provider,{value:s({},d)},t)}function l(){return(0,n.useContext)(a)}},83454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(77663)},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(5809)}])},18025:function(e,t,r){"use strict";r.d(t,{D:function(){return W}});var n,i,o={};r.r(o),r.d(o,{EVENTS_NAMESPACE:function(){return k},LIBRARY_VERSION:function(){return C},addToEventQueue:function(){return U},clearEventQueue:function(){return B},event:function(){return Q},form:function(){return K},getBrowserId:function(){return O},getGuestId:function(){return G},identity:function(){return $},init:function(){return A},pageView:function(){return z},processEventQueue:function(){return V}});var s=r(18790),a=r(51141),u=r.n(a);let c="0.2.4",l="v1.2";async function d(e,t,r){if(!Number.isInteger(t)||t<0)throw Error("[IV-0006] Incorrect value for the timeout parameter. Set the value to an integer greater than or equal to 0.");let n=new AbortController,i=n.signal,o=setTimeout(()=>{n.abort()},t);return fetch(e,{...r,signal:i}).then(e=>(clearTimeout(o),e)).catch(e=>{if("AbortError"===e.name)throw Error("[IE-0002] Timeout exceeded. The server did not respond within the allotted time.");return null})}async function h(e,t,r){let n;let i={headers:{"X-Library-Version":c}},o=`${e}/v1/events/${l}/browser/create.json?sitecoreContextId=${t}&client_key=`;if(n=void 0!==r?await d(o,r,i).then(e=>e&&e.json()||null).catch(e=>{if(e.message.includes("IV-0006")||e.message.includes("IE-0002"))throw Error(e.message);return null}):await fetch(o,i).then(e=>e.json()).catch(()=>void 0),!n?.ref)throw Error("[IE-0003] Unable to set the cookie because the browser ID could not be retrieved from the server. Try again later, or use try-catch blocks to handle this error.");let{ref:s}=n;return{browserId:s}}async function f(e){var t,r,n;let i;if(t=window.document.cookie,r=e.cookieSettings.cookieName,t.split("; ").some(e=>e.split("=")[0]===r))return;let{browserId:o}=await h(e.sitecoreEdgeUrl,e.sitecoreEdgeContextId),s=function(e=730,t){return{domain:t,maxAge:86400*e,path:"/",sameSite:"None",secure:!0}}(e.cookieSettings.cookieExpiryDays,e.cookieSettings.cookieDomain);document.cookie=(n=e.cookieSettings.cookieName,i=(i=`${n}=${o};`+(` Max-Age=${s.maxAge}; SameSite=${s.sameSite};`+(s.secure?" Secure;":""))+(s.path?` Path=${s.path};`:"")+(s.domain?` Domain=${s.domain};`:"")).substring(0,i.length-1))}
63var p=r(11227),y=r.n(p),m=r(83454);m.env&&"true"===m.env.DEBUG_MULTILINE&&y().formatters&&y().formatters.o&&y().formatters.O&&(y().formatters.o=y().formatters.O);let v=null;function g(){if(!v)throw Error('[IE-0008] You must first initialize the "core" package. Run the "init" function.');return v}let b=null;async function E(e){y()("sitecore-cloudsdk:core")("coreClient library initialized"),null===v&&(v=function(e){!function(e){let{sitecoreEdgeContextId:t,siteName:r,sitecoreEdgeUrl:n}=e;if(!t||0===t.trim().length)throw Error('[MV-0001] "sitecoreEdgeContextId" is required.');if(!r||0===r.trim().length)throw Error('[MV-0002] "siteName" is required.');if(void 0!==n)try{new URL(n)}catch(e){throw Error('[IV-0001] Incorrect value for "sitecoreEdgeUrl" parameter. Set the value to a valid URL string.')}}(e);let{siteName:t,sitecoreEdgeContextId:r,cookieDomain:n,cookiePath:i,cookieExpiryDays:o,sitecoreEdgeUrl:s}=e;return{cookieSettings:{cookieDomain:n,cookieExpiryDays:o||730,cookieName:`sc_${r}`,cookiePath:i||"/"},siteName:t,sitecoreEdgeContextId:r,sitecoreEdgeUrl:s??"https://edge-platform.sitecorecloud.io"}}(e)),e.enableBrowserCookie&&null===b&&(b=f(v)),await b}function O(){return function(e){let t=function(e,t){if(!e)return;let r=e.split("; ").find(e=>e.indexOf("=")>0&&e.split("=")[0]===t);return void 0!==r?{name:r.split("=")[0],value:r.split("=")[1]}:void 0}(document.cookie,e);return t?.value??""}(g().cookieSettings.cookieName)}async function _(e,t,r){let n=`${r}/v1/events/${l}/browser/${e}/show.json?sitecoreContextId=${t}&client_key=&api_token=`,i=await fetch(n,{headers:{"X-Library-Version":c}}),o=await i.json();if(!i.ok){let{error_msg:e,moreInfo:t}=o;throw Error(`${e}, for more info: ${t}`)}return o.customer.ref}function w(){return"undefined"==typeof window||window.document.documentElement.lang.length<=1?void 0:new Intl.Locale(window.document.documentElement.lang).language.toLocaleUpperCase()}function S(){return"undefined"==typeof window?"":"/"===window.location.pathname?"Home Page":window.location.pathname.split("/").pop()}function T(e,t){try{return e()}catch{throw Error(t)}}let C="0.2.4";(n=i||(i={})).IE_0001='[IE-0001] The "window" object is not available on the server side. Use the "window" object only on the client side, and in the correct execution context.',n.IE_0004='[IE-0004] You must first initialize the "events/browser" module. Run the "init" function.',n.IE_0005='[IE-0005] You must first initialize the "events/server" module. Run the "init" function.',n.IV_0002='[IV-0002] Incorrect value for "dob". Format the value according to ISO 8601.',n.IV_0003='[IV-0003] Incorrect value for "email". Set the value to a valid email address.',n.IV_0004='[IV-0004] Incorrect value for "expiryDate". Format the value according to ISO 8601.',n.IV_0005="[IV-0005] This event supports maximum 50 attributes. Reduce the number of attributes.",n.MV_0003='[MV-0003] "identifiers" is required.';let k="sitecore-cloudsdk:events",x=null;async function A(e){if("undefined"==typeof window)throw Error(i.IE_0001);try{x=E(e),await x,y()(k)("eventsClient library initialized")}catch(e){throw y()(k)("Error on initializing eventsClient library: %o",e),x=null,Error(e)}window.Engage={...window.Engage,getBrowserId:()=>O(),versions:{...window.Engage?.versions,events:C}}}async function D(){if(null===x)throw Error(i.IE_0004);await x}class R{constructor(e,t){this.baseEventData=e,this.browserId=t,this.language=this.baseEventData.language??w(),this.page=this.baseEventData.page??S()}mapBaseEventPayload(){return{browser_id:this.browserId,channel:this.baseEventData.channel,client_key:"",currency:this.baseEventData.currency,language:this.language,page:this.page,pos:""}}}function N(e){let{currentKey:t,object:r}=e,n=e.newObject??{};for(let e in r){let i=r[e];void 0!==i&&("object"!=typeof i||Array.isArray(i)?n[t?`${t}_${e}`:e]=i:N({currentKey:`${t?`${t}_${e}`:e}`,newObject:n,object:i}))}return n}class I extends R{constructor(e){let{channel:t,currency:r,language:n,page:o}=e.eventData;if(super({channel:t,currency:r,language:n,page:o},e.id),this.extensionData={},this.eventData=e.eventData,this.sendEvent=e.sendEvent,this.settings=e.settings,this.urlSearchParams=new URLSearchParams(decodeURI(e.searchParams)),e.extensionData&&(this.extensionData=N({object:e.extensionData})),Object.entries(this.extensionData).length>50)throw Error(i.IV_0005);this.includeUTMParameters=void 0===e.eventData.includeUTMParameters||e.eventData.includeUTMParameters}getPageVariantId(e,t){return e?e:this.urlSearchParams.get("variantid")||t||null}getReferrer(){if(this.eventData.referrer)return this.eventData.referrer;if("undefined"==typeof window||!I.isFirstPageView||!document.referrer)return null;let{hostname:e,href:t}=new URL(document.referrer);return window.location.hostname!==e?t:null}mapAttributes(){let e={type:"VIEW"},t=this.getPageVariantId(this.eventData.pageVariantId,this.extensionData.pageVariantId);if(null!==t&&(e.ext={...e.ext,pageVariantId:t}),Object.keys(this.extensionData).length>0&&(delete this.extensionData.pageVariantId,e.ext={...e.ext,...this.extensionData}),this.includeUTMParameters){let t=this.getUTMParameters();e={...e,...t}}let r=this.getReferrer();return null!==r&&(e={...e,referrer:r}),e}async send(){let e=this.mapBaseEventPayload(),t=Object.assign({},this.mapAttributes(),e);return I.isFirstPageView=!1,await this.sendEvent(t,this.settings)}getUTMParameters(){let e={};
63return this.urlSearchParams.forEach((t,r)=>{let n=r.toLowerCase();0===n.indexOf("utm_")&&(e[n]=t)}),e}}I.isFirstPageView=!0;class P extends R{constructor(e){let{channel:t,currency:r,language:n,page:o,...s}=e.eventData;super({channel:t,currency:r,language:n,page:o},e.id),this.extensionData={},this.sendEvent=e.sendEvent,this.settings=e.settings,this.customEventPayload={type:e.type,...s},e.extensionData&&(this.extensionData=N({object:e.extensionData}));let a=Object.entries(this.extensionData).length;if(a>50)throw Error(i.IV_0005);a>0&&(this.customEventPayload.ext=this.extensionData)}async send(){let e=this.mapBaseEventPayload(),t=Object.assign({},this.customEventPayload,e);return await this.sendEvent(t,this.settings)}}function j(e){try{return new Date(e+"Z").toISOString().substring(0,16)===e}catch(e){return!1}}class F extends R{constructor(e){let{channel:t,currency:r,language:n,page:o}=e.eventData;if(super({channel:t,currency:r,language:n,page:o},e.id),this.extensionData={},this.numberOfExtensionDataProperties=0,this.validateAttributes(e.eventData),this.eventData=e.eventData,this.sendEvent=e.sendEvent,this.settings=e.settings,e.extensionData&&(this.extensionData=N({object:e.extensionData})),this.numberOfExtensionDataProperties=Object.entries(this.extensionData).length,this.numberOfExtensionDataProperties>50)throw Error(i.IV_0005)}validateAttributes(e){var t;if(0===e.identifiers.length)throw Error(i.MV_0003);if(void 0!==e.dob&&!j(e.dob))throw Error(i.IV_0002);if(e.identifiers.forEach(e=>{if(e.expiryDate&&!j(e.expiryDate))throw Error(i.IV_0004)}),e.email&&(t=e.email,!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)))throw Error(i.IV_0003)}mapAttributes(){let e={city:this.eventData.city,country:this.eventData.country,dob:this.eventData.dob,email:this.eventData.email,firstname:this.eventData.firstName,gender:this.eventData.gender,identifiers:this.eventData.identifiers.map(e=>({expiry_date:e.expiryDate,id:e.id,provider:e.provider})),lastname:this.eventData.lastName,mobile:this.eventData.mobile,phone:this.eventData.phone,postal_code:this.eventData.postalCode,state:this.eventData.state,street:this.eventData.street,title:this.eventData.title,type:"IDENTITY"};return this.numberOfExtensionDataProperties>0&&(e.ext=this.extensionData),e}async send(){let e=this.mapBaseEventPayload(),t=Object.assign({},this.mapAttributes(),e);return await this.sendEvent(t,this.settings)}}async function L(e,t){let r=`${t.sitecoreEdgeUrl}/v1/events/${l}/events?sitecoreContextId=${t.sitecoreEdgeContextId}&siteId=${t.siteName}`,n={body:JSON.stringify(e),headers:{"Content-Type":"application/json","X-Library-Version":C},method:"POST"};return y()(k)("Events request: %s with options: %O",r,n),await fetch(r,n).then(e=>(y()(k)("Events response: %O",e),e.json())).then(e=>(y()(k)("Events payload: %O",e),e)).catch(e=>(y()(k)("Error: events response: %O",e),null))}class M{constructor(){this.key="EventQueue"}getEventQueue(){let e=this.getSessionStorage().getItem(this.key)??'""';try{let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}enqueueEvent(e){let t=this.getSessionStorage();e.eventData.page=e.eventData.page??S(),e.eventData.language=e.eventData.language??w(),new P({sendEvent:L,...e});let r=this.getEventQueue();r.push(e),t.setItem(this.key,JSON.stringify(r))}async sendAllEvents(){for(let e of this.getEventQueue())await new P({eventData:e.eventData,extensionData:e.extensionData,id:e.id,sendEvent:L,settings:e.settings,type:e.type}).send();this.clearQueue()}clearQueue(){this.getSessionStorage().removeItem(this.key)}getSessionStorage(){return sessionStorage}}let q=new M;async function U(e,t,r){await D();let n=T(g,i.IE_0004),o=O();q.enqueueEvent({eventData:t,extensionData:r,id:o,settings:n,type:e})}async function V(){await D(),q.sendAllEvents()}async function B(){await D(),q.clearQueue()}async function K(e,t){await D();let r=T(g,i.IE_0004),n=O(),o=new P({eventData:{},extensionData:{formId:e,interactionType:t.toUpperCase()},id:n,sendEvent:L,settings:r,type:"FORM"});return o.page=void 0,o.send()}async function Q(e,t,r){await D();let n=T(g,i.IE_0004);return new P({eventData:t,extensionData:r,id:O(),sendEvent:L,settings:n,type:e}).send()}async function $(e,t){await D();let r=T(g,i.IE_0004);return new F({eventData:e,extensionData:t,id:O(),sendEvent:L,settings:r}).send()}async function z(e,t){await D();let r=T(g,i.IE_0004);return new I({eventData:e,extensionData:t,id:O(),searchParams:window.location.search,sendEvent:L,settings:r}).send()}async function G(){await D();let e=T(g,i.IE_0004);return _(O(),e.sitecoreEdgeContextId,e.sitecoreEdgeUrl)}let W=new s._({sitecoreEdgeUrl:u().sitecoreEdgeUrl,sitecoreEdgeContextId:u().sitecoreEdgeContextId,siteName:u().sitecoreSiteName,sdks:{Events:{sdk:o,init:async e=>{await A({siteName:e.siteName,sitecoreEdgeUrl:e.sitecoreEdgeUrl,sitecoreEdgeContextId:e.sitecoreEdgeContextId,cookieDomain:window.location.hostname.replace(/^www\./,""),enableBrowserCookie:!0})}}}})},5809:function(e,t,r){"use strict";let n,i,o;r.r(t),r.d(t,{default:function(){return ox}});var s,a,u,c,l,d,h,f,p,y,m,v,g,b,E,O,_=r(85893),w=r(22556),S=function(e,t){return(S=Object.
63setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function T(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}S(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var C=function(){return(C=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 k(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}function x(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})}function A(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function D(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))}"function"==typeof SuppressedError&&SuppressedError;var R="Invariant Violation",N=Object.setPrototypeOf,I=void 0===N?function(e,t){return e.__proto__=t,e}:N,P=function(e){function t(r){void 0===r&&(r=R);var n=e.call(this,"number"==typeof r?R+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=R,I(n,t.prototype),n}return T(t,e),t}(Error);function j(e,t){if(!e)throw new P(t)}var F=["debug","log","warn","error","silent"],L=F.indexOf("log");function M(e){return function(){if(F.indexOf(e)>=L)return(console[e]||console.log).apply(console,arguments)}}(s=j||(j={})).debug=M("debug"),s.log=M("log"),s.warn=M("warn"),s.error=M("error");var q="3.14.1";function U(e){try{return e()}catch(e){}}var V=U(function(){return globalThis})||U(function(){return window})||U(function(){return self})||U(function(){return global})||U(function(){return U.constructor("return this")()}),B=new Map;function K(e){var t=B.get(e)||1;return B.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function Q(e,t){void 0===t&&(t=0);var r=K("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?r:t},t).split(JSON.stringify(r)).join("<undefined>")}function $(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var i=t;(t=J(i))||(t=Z(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var z=Object.assign(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e||j(e,J(t,r)||Z(t,r))},{debug:$(j.debug),log:$(j.log),warn:$(j.warn),error:$(j.error)});function G(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new P(J(e,t)||Z(e,t))}var W=Symbol.for("ApolloErrorMessageHandler_"+q);function H(e){if("string"==typeof e)return e;try{return Q(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function J(e,t){if(void 0===t&&(t=[]),e)return V[W]&&V[W](e,t.map(H))}function Z(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:q,message:e,args:t.map(H)})))}var Y=r(73914),X=r.t(Y,2),ee="ReactNative"==U(function(){return navigator.product}),et="function"==typeof WeakMap&&!(ee&&!global.HermesInternal),er="function"==typeof WeakSet,en="function"==typeof Symbol&&"function"==typeof Symbol.for,ei=en&&Symbol.asyncIterator;U(function(){return window.document.createElement}),U(function(){return navigator.userAgent.indexOf("jsdom")>=0});var eo=en?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__",es=function(e){var t,r=e.client,n=e.children,i=(z("createContext"in X,69),(t=Y.createContext[eo])||(Object.defineProperty(Y.createContext,eo,{value:t=Y.createContext({}
63),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t),o=Y.useContext(i),s=Y.useMemo(function(){return C(C({},o),{client:r||o.client})},[o,r]);return z(s.client,71),Y.createElement(i.Provider,{value:s},n)};function ea(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}function eu(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 ec(e,t,r){return t&&eu(e.prototype,t),r&&eu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var el=function(){return"function"==typeof Symbol},ed=function(e){return el()&&!!Symbol[e]},eh=function(e){return ed(e)?Symbol[e]:"@@"+e};el()&&!ed("observable")&&(Symbol.observable=Symbol("observable"));var ef=eh("iterator"),ep=eh("observable"),ey=eh("species");function em(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function ev(e){var t=e.constructor;return void 0!==t&&null===(t=t[ey])&&(t=void 0),void 0!==t?t:eC}function eg(e){eg.log?eg.log(e):setTimeout(function(){throw e})}function eb(e){Promise.resolve().then(function(){try{e()}catch(e){eg(e)}})}function eE(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var r=em(t,"unsubscribe");r&&r.call(t)}}catch(e){eg(e)}}}function eO(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function e_(e,t,r){e._state="running";var n=e._observer;try{var i=em(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(eO(e),i)i.call(n,r);else throw r;break;case"complete":eO(e),i&&i.call(n)}}catch(e){eg(e)}"closed"===e._state?eE(e):"running"===e._state&&(e._state="ready")}function ew(e,t,r){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:r});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],eb(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(e_(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)});return}e_(e,t,r)}}var eS=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new eT(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(eO(this),eE(this))},ec(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),eT=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){ew(this._subscription,"next",e)},t.error=function(e){ew(this._subscription,"error",e)},t.complete=function(){ew(this._subscription,"complete")},ec(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),eC=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new eS(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e){n(TypeError(e+" is not a function"));return}function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(ev(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(ev(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=ev(this),n=arguments.length>1,i=!1,o=arguments[1],s=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{s=e(s,t)}catch(e){return r.error(e)}else s=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(s),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=ev(this);return new i(function(t){var n,o=0;return function e(s){n=s.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]
63))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=ev(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),s()}});i.push(o)},error:function(e){n.error(e)},complete:function(){s()}});function s(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[ep]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var n=em(t,ep);if(n){var i=n.call(t);if(Object(i)!==i)throw TypeError(i+" is not an object");return i instanceof eC&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(ed("iterator")&&(n=em(t,ef)))return new r(function(e){eb(function(){if(!e.closed){for(var r,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return ea(e,void 0);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 ea(e,void 0)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.call(t));!(r=i()).done;){var o=r.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){eb(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){eb(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},ec(e,null,[{key:ey,get:function(){return this}}]),e}();function ek(e){return null!==e&&"object"==typeof e}el()&&Object.defineProperty(eC,Symbol("extensions"),{value:{symbol:ep,hostReportError:eg},configurable:!0});var ex="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function eA(e){return(eA="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 eD(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){throw Error("Unexpected invariant triggered.")}(0),e.prototype.inspect=t,ex&&(e.prototype[ex]=t)}function eR(e){return null!=e&&"string"==typeof e.kind}eD(function(){function e(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}()),eD(function(){function e(e,t,r,n,i,o,s){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=s,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}());var eN={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},eI=Object.freeze({});function eP(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eN,n=void 0,i=Array.isArray(e),o=[e],s=-1,a=[],u=void 0,c=void 0,l=void 0,d=[],h=[],f=e;do{var p,y=++s===o.length,m=y&&0!==a.length;if(y){if(c=0===h.length?void 0:d[d.length-1],u=l,l=h.pop(),m){if(i)u=u.slice();else{for(var v={},g=0,b=Object.keys(u);g<b.length;g++){var E=b[g];v[E]=u[E]}u=v}for(var O=0,_=0;_<a.length;_++){var w=a[_][0],S=a[_][1];i&&(w-=O),i&&null===S?(u.splice(w,1),O++):u[w]=S}}s=n.index,o=n.keys,a=n.edits,i=n.inArray,n=n.prev}else{if(c=l?i?s:o[s]:void 0,null==(u=l?l[c]:f))continue;l&&d.push(c)}var T=void 0;if(!Array.isArray(u)){if(!eR(u))throw Error("Invalid AST Node: ".concat(function e(t,r){switch(eA(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":if(null===t)return"null";return function(t,r){if(-1!==r.indexOf(t))return"[Circular]";var n,i,o=[].concat(r,[t]),s="function"==typeof(n=t[String(ex)])?n:"function"==typeof t.inspect?t.inspect:void 0;if(void 0!==s){var a=s.call(t);if(a!==t)return"string"==typeof a?a:e(a,o)}else if(Array.isArray(t))return function(t,r){if(0===t.length)return"[]";if(r.length>2)return"[Array]";for(var n=Math.min(10,t.length),i=t.length-n,o=[],s=0;s<n;++s)o.push(e(t[s],r));return 1===i?o.push("... 1 more item"):i>1&&o.push("... ".concat(i," more items")),"["+o.join(", ")+"]"}(t,o);return 0===(i=Object.keys(t)).length?"{}":o.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var r=e.constructor.name;if("string"==typeof r&&""!==r)return r}return t}(t)+"]":"{ "+i.map(function(r){var n=e(t[r],o);return r+": "+n}).join(", ")+" }"}(t,r);default:return String(t)}}(u,[]),"."));
63var C=function(e,t,r){var n=e[t];if(n){if(!r&&"function"==typeof n)return n;var i=r?n.leave:n.enter;if("function"==typeof i)return i}else{var o=r?e.leave:e.enter;if(o){if("function"==typeof o)return o;var s=o[t];if("function"==typeof s)return s}}}(t,u.kind,y);if(C){if((T=C.call(t,u,c,l,d,h))===eI)break;if(!1===T){if(!y){d.pop();continue}}else if(void 0!==T&&(a.push([c,T]),!y)){if(eR(T))u=T;else{d.pop();continue}}}}void 0===T&&m&&a.push([c,u]),y?d.pop():(n={inArray:i,index:s,keys:o,edits:a,prev:n},o=(i=Array.isArray(u))?u:null!==(p=r[u.kind])&&void 0!==p?p:[],s=-1,a=[],l&&h.push(l),l=u)}while(void 0!==n);return 0!==a.length&&(f=a[a.length-1][1]),f}function ej(e,t){var r=t,n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw G(112,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&(z(1===n.length,113,n.length),r=n[0].name.value),C(C({},e),{definitions:D([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function eF(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function eL(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return z(n,114,r),n||null;default:return null}}function eM(){}let eq="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},eU="undefined"!=typeof WeakMap?WeakMap:Map,eV="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:eM,unregister:eM}};class eB{constructor(e=1/0,t=eM){this.max=e,this.dispose=t,this.map=new eU,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new eq(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new eV(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}function eK(){}class eQ{constructor(e=1/0,t=eK){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}var e$=new WeakSet;function ez(e){!(e.size<=(e.max||-1))&&(e$.has(e)||(e$.add(e),setTimeout(function(){e.clean(),e$.delete(e)},100)))}var eG=function(e,t){var r=new eB(e,t);return r.set=function(e,t){var r=eB.prototype.set.call(this,e,t);return ez(this),r},r},eW=function(e,t){var r=new eQ(e,t);return r.set=function(e,t){var r=eQ.prototype.set.call(this,e,t);return ez(this),r},r},eH=Symbol.for("apollo.cacheSize"),eJ=C({},V[eH]),eZ={},eY=!1!==globalThis.__DEV__?function(){var e,t,r,n,i;if(!(!1!==globalThis.__DEV__))throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],r=e[1];return[t,eJ[t]||r]}
63)),sizes:C({print:null===(e=eZ.print)||void 0===e?void 0:e.call(eZ),parser:null===(t=eZ.parser)||void 0===t?void 0:t.call(eZ),canonicalStringify:null===(r=eZ.canonicalStringify)||void 0===r?void 0:r.call(eZ),links:function e(t){var r;return t?D(D([null===(r=null==t?void 0:t.getMemoryInternals)||void 0===r?void 0:r.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(e3):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:e4(this.queryManager.documentTransform)}},null===(i=(n=this.cache).getMemoryInternals)||void 0===i?void 0:i.call(n))}}:void 0,eX=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return C(C({},e1.apply(this)),{addTypenameDocumentTransform:e4(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:e2(this.storeReader.executeSelectionSet),executeSubSelectedArray:e2(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:e2(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:e2(null==e?void 0:e.findFragmentSpreads),lookup:e2(null==e?void 0:e.lookup),transform:e2(null==e?void 0:e.transform)}})}:void 0,e0=!1!==globalThis.__DEV__?e1:void 0;function e1(){return{cache:{fragmentQueryDocuments:e2(this.getFragmentDoc)}}}function e2(e){return e&&"dirtyKey"in e?e.size:void 0}function e3(e){return null!=e}function e4(e){return(function e(t){return t?D(D([e2(null==t?void 0:t.performWork)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(e3):[]})(e).map(function(e){return{cache:e}})}var e6=Object.assign(function(e){return JSON.stringify(e,e9)},{reset:function(){y=new eW(eJ.canonicalStringify||1e3)}});function e9(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var n=Object.keys(t);if(n.every(e5))return t;var i=JSON.stringify(n),o=y.get(i);if(!o){n.sort();var s=JSON.stringify(n);o=y.get(s)||n,y.set(i,o),y.set(s,o)}var a=Object.create(r);return o.forEach(function(e){a[e]=t[e]}),a}}return t}function e5(e,t,r){return 0===t||r[t-1]<=e}function e7(e){return{__ref:String(e)}}function e8(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function te(e,t,r,n){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var i={};r.fields.map(function(e){return te(i,e.name,e.value,n)}),e[t.value]=i}else if("Variable"===r.kind){var o=(n||{})[r.name.value];e[t.value]=o}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return te(r,t,e,n),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw G(123,t.value,r.kind)}!1!==globalThis.__DEV__&&(a=function(){return y.size},eZ.canonicalStringify=a),e6.reset();var tt=["connection","include","skip","client","rest","export","nonreactive"],tr=e6,tn=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(tr(i),")")}var o=e;if(t){var s=tr(t);o+="(".concat(s,")")}return r&&Object.keys(r).forEach(function(e){-1===tt.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(tr(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=tr;return tr=e,t}});function ti(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return te(r,e.name,e.value,t)}),r}return null}function to(e){return e.alias?e.alias.value:e.name.value}function ts(e,t,r){for(var n,i=0,o=t.selections;i<o.length;i++){var s=o[i];if(ta(s)){if("__typename"===s.name.value)return e[to(s)]}else n?n.push(s):n=[s]}if("string"==typeof e.__typename)return e.__typename;if(n)for(var a=0,u=n;a<u.length;a++){var s=u[a],c=ts(e,eL(s,r).selectionSet,r);if("string"==typeof c)return c}}function ta(e){return"Field"===e.kind}function tu(e){z(e&&"Document"===e.kind,115);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw G(116,e.kind);return e});return z(t.length<=1,117,t.length),e}function tc(e){return tu(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function tl(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function td(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function th(e){var t=tc(e);return z(t&&"query"===t.operation,118),t}function tf(e){z("Document"===e.kind,119),z(e.definitions.length<=1,120);var t=e.definitions[0];return z("FragmentDefinition"===t.kind,121),t}function tp(e){tu(e);for(var t,r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw G(122)}function ty(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&te(t,e.variable.name,e.defaultValue)}),t}let tm=()=>Object.create(null),{forEach:tv,slice:tg}=Array.prototype,{hasOwnProperty:tb}=Object.prototype;class tE{constructor(e=!0,t=tm){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return tv.call(e,e=>t=t.getChildTrie(e)),tb.call(t,"data")?t.data:t.data=this.makeData(tg.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);!i||(t=i.removeArray(tg.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new tE(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}let tO=null,t_={},tw=1;function tS(e){try{return e()}catch(e){}}let tT="@wry/context:Slot",tC=tS(()=>globalThis)||tS(()=>global)||Object.create(null),tk=tC[tT]||Array[tT]||function(e){try{Object.defineProperty(tC,tT,{value:e,enumerable:!1,writable:!1,
63configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",tw++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=tO;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===t_)break;return e!==tO&&(tO.slots[this.id]=t),!0}return tO&&(tO.slots[this.id]=t_),!1}getValue(){if(this.hasValue())return tO.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},o=tO;tO={parent:o,slots:i};try{return t.apply(n,r)}finally{tO=o}}static bind(e){let t=tO;return function(){let r=tO;try{return tO=t,e.apply(this,arguments)}finally{tO=r}}}static noContext(e,t,r){if(!tO)return e.apply(r,t);{let n=tO;try{return tO=null,e.apply(r,t)}finally{tO=n}}}}),{bind:tx,noContext:tA}=tk,tD=new tk,{hasOwnProperty:tR}=Object.prototype,tN=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function tI(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let tP=[];function tj(e,t){if(!e)throw Error(t||"assertion failure")}function tF(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function tL(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class tM{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++tM.count}peek(){if(1===this.value.length&&!tV(this))return tq(this),this.value[0]}recompute(e){var t;return tj(!this.recomputing,"already recomputing"),tq(this),tV(this)&&(tz(this),tD.withValue(this,tU,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{tI(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,tV(this)||(t=this,tB(t,tQ)))),tL(this.value)}setDirty(){this.dirty||(this.dirty=!0,tB(this,tK),tI(this))}dispose(){this.setDirty(),tz(this),tB(this,(e,t)=>{e.setDirty(),tG(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=tP.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(tN(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),tP.push(this.deps),this.deps=null)}}function tq(e){let t=tD.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),tV(e)?tK(t,e):tQ(t,e),t}function tU(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!tF(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function tV(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function tB(e,t){let r=e.parents.size;if(r){let n=tN(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function tK(e,t){tj(e.childValues.has(t)),tj(tV(t));let r=!tV(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=tP.pop()||new Set;e.dirtyChildren.add(t),r&&tB(e,tK)}function tQ(e,t){tj(e.childValues.has(t)),tj(!tV(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):tF(r,t.value)||e.setDirty(),t$(e,t),tV(e)||tB(e,tQ)}function t$(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(tP.length<100&&tP.push(r),e.dirtyChildren=null))}function tz(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{tG(e,r)}),e.forgetDeps(),tj(null===e.dirtyChildren)}function tG(e,t){t.parents.delete(e),e.childValues.delete(t),t$(e,t)}tM.count=0;let tW={setDirty:!0,dispose:!0,forget:!0};function tH(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=tD.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(tI(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&tR.call(tW,r)?r:"setDirty";tN(n).forEach(e=>e[i]()),t.delete(e),tI(n)}},n}function tJ(...e){return(n||(n=new tE("function"==typeof WeakMap))).lookupArray(e)}let tZ=new Set;function tY(e,{max:t=65536,keyArgs:r,makeCacheKey:n=tJ,normalizeResult:i,subscribe:o,cache:s=eQ}=Object.create(null)){let a="function"==typeof s?new s(t,e=>e.dispose()):s,u=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let s=a.get(t);s||(a.set(t,s=new tM(e)),s.normalizeResult=i,s.subscribe=o,s.forget=()=>a.delete(t));let u=s.recompute(Array.prototype.slice.call(arguments));
63return a.set(t,s),tZ.add(a),tD.hasValue()||(tZ.forEach(e=>e.clean()),tZ.clear()),u};function c(e){let t=e&&a.get(e);t&&t.setDirty()}function l(e){let t=e&&a.get(e);if(t)return t.peek()}function d(e){return!!e&&a.delete(e)}return Object.defineProperty(u,"size",{get:()=>a.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:a}),u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))},u.peekKey=l,u.peek=function(){return l(n.apply(null,arguments))},u.forgetKey=d,u.forget=function(){return d(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}var tX=Symbol.for("apollo.deprecations"),t0=Symbol.for("apollo.deprecations.slot"),t1=null!==(m=V[t0])&&void 0!==m?m:V[t0]=new tk;function t2(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t1.withValue.apply(t1,D([Array.isArray(e)?e:[e]],t,!1))}function t3(e,t,r,n){void 0===n&&(n="Please remove this option."),t4(t,function(){t in e&&!1!==globalThis.__DEV__&&z.warn(103,r,t,n)})}function t4(e,t){V[tX]||(t1.getValue()||[]).includes(e)||t()}function t6(e,t){return t?t(e):eC.of()}function t9(e){return"function"==typeof e?new t7(e):e}function t5(e){return e.request.length<=1}var t7=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return eC.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(t9).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=t9(r),o=t9(n||new e(t6));return Object.assign(new e(t5(i)&&t5(o)?function(e){return t(e)?i.request(e)||eC.of():o.request(e)||eC.of()}:function(e,r){return t(e)?i.request(e,r)||eC.of():o.request(e,r)||eC.of()}),{left:i,right:o})},e.execute=function(e,t){var r,n,i,o;return e.request((i=t.context,(n={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(0>t.indexOf(i))throw G(58,i)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?tl(n.query)||void 0:""),o=C({},i),Object.defineProperty(n,"setContext",{enumerable:!1,value:function(e){o="function"==typeof e?C(C({},o),e(o)):C(C({},o),e)}}),Object.defineProperty(n,"getContext",{enumerable:!1,value:function(){return C({},o)}}),n))||eC.of()},e.concat=function(t,r){var n=t9(t);if(t5(n))return!1!==globalThis.__DEV__&&z.warn(47,n),n;var i=t9(r);return Object.assign(new e(t5(i)?function(e){return n.request(e,function(e){return i.request(e)||eC.of()})||eC.of()}:function(e,t){return n.request(e,function(e){return i.request(e,t)||eC.of()})||eC.of()}),{left:n,right:i})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(t6)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw G(48)},e.prototype.onError=function(e,t){if(!1!==globalThis.__DEV__&&t4("onError",function(){!1!==globalThis.__DEV__&&z.warn(49)}),t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&z.warn(50),this.onError=e,this},e}(),t8=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function re(e,t){var r,n=e.directives;
63return!n||!n.length||(r=[],n&&n.length&&n.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var n=e.arguments,i=e.name.value;z(n&&1===n.length,106,i);var o=n[0];z(o.name&&"if"===o.name.value,107,i);var s=o.value;z(s&&("Variable"===s.kind||"BooleanValue"===s.kind),108,i),r.push({directive:e,ifArgument:o})}}),r).every(function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?z(void 0!==(i=t&&t[n.value.name.value]),105,r.name.value):i=n.value.value,"skip"===r.name.value?!i:i})}function rt(e,t,r){var n=new Set(e),i=n.size;return eP(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return eI}}),r?!n.size:n.size<i}var rr=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=G(54,t,e.message);throw n.parseError=e,n}return r};function rn(e){var t={next:function(){return e.read()}};return ei&&(t[Symbol.asyncIterator]=function(){return this}),t}var ri=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},ro=Symbol();function rs(e){return e.hasOwnProperty("graphQLErrors")}var ra=function(e){var t=D(D(D([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return ek(e)&&e.message||"Error message not found."}).join("\n")},ru=function(e){function t(r){var n=r.graphQLErrors,i=r.protocolErrors,o=r.clientErrors,s=r.networkError,a=r.errorMessage,u=r.extraInfo,c=e.call(this,a)||this;return c.name="ApolloError",c.graphQLErrors=n||[],c.protocolErrors=i||[],c.clientErrors=o||[],c.networkError=s||null,c.message=a||ra(c),c.extraInfo=u,c.cause=D(D(D([s],n||[],!0),i||[],!0),o||[],!0).find(function(e){return!!e})||null,c.__proto__=t.prototype,c}return T(t,e),t}(Error),rc=Array.isArray;function rl(e){return Array.isArray(e)&&e.length>0}var rd=Object.prototype.hasOwnProperty;function rh(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rf(e)}function rf(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new ry,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var rp=function(e,t,r){return this.merge(e[r],t[r])},ry=function(){function e(e){void 0===e&&(e=rp),this.reconciler=e,this.isObject=ek,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return ek(t)&&ek(e)?(Object.keys(t).forEach(function(i){if(rd.call(e,i)){var o=e[i];if(t[i]!==o){var s=r.reconciler.apply(r,D([e,t,i],n,!1));s!==o&&((e=r.shallowCopyForMerge(e))[i]=s)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return ek(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):C({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function rm(e){return"incremental"in e}function rv(e,t){var r=e,n=new ry;return rm(t)&&rl(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var s=i[o],a=isNaN(+s)?{}:[];a[s]=t,t=a}r=n.merge(r,t)}),r}var rg=Object.prototype.hasOwnProperty;function rb(e,t){e.status>=300&&ri(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var rE=function(e){if(!e&&"undefined"==typeof fetch)throw G(51)},rO={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return rw(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=rT("(",rw(e.variableDefinitions,", "),")"),i=rw(e.directives," "),o=e.selectionSet;return r||i||n||"query"!==t?rw([t,rw([r,n]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,r=e.type,n=e.defaultValue,i=e.directives;return t+": "+r+rT(" = ",n)+rT(" ",rw(i," "))},SelectionSet:function(e){return rS(e.selections)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,o=e.selectionSet,s=rT("",t,": ")+r,a=s+rT("(",rw(n,", "),")");return a.length>80&&(a=s+rT("(\n",rC(rw(n,"\n")),"\n)")),rw([a,rw(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value}
63,FragmentSpread:function(e){return"..."+e.name+rT(" ",rw(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return rw(["...",rT("on ",t),rw(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(rT("(",rw(n,", "),")")," ")+"on ".concat(r," ").concat(rT("",rw(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var r=e.value;return e.block?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),i=" "===e[0]||"	"===e[0],o='"'===e[e.length-1],s="\\"===e[e.length-1],a=!n||o||s||r,u="";return a&&!(n&&i)&&(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,a&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}(r,"description"===t?"":"  "):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+rw(e.values,", ")+"]"},ObjectValue:function(e){return"{"+rw(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+rT("(",rw(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:r_(function(e){var t=e.directives,r=e.operationTypes;return rw(["schema",rw(t," "),rS(r)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:r_(function(e){return rw(["scalar",e.name,rw(e.directives," ")]," ")}),ObjectTypeDefinition:r_(function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return rw(["type",t,rT("implements ",rw(r," & ")),rw(n," "),rS(i)]," ")}
63),FieldDefinition:r_(function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(rx(r)?rT("(\n",rC(rw(r,"\n")),"\n)"):rT("(",rw(r,", "),")"))+": "+n+rT(" ",rw(i," "))}),InputValueDefinition:r_(function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return rw([t+": "+r,rT("= ",n),rw(i," ")]," ")}),InterfaceTypeDefinition:r_(function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return rw(["interface",t,rT("implements ",rw(r," & ")),rw(n," "),rS(i)]," ")}),UnionTypeDefinition:r_(function(e){var t=e.name,r=e.directives,n=e.types;return rw(["union",t,rw(r," "),n&&0!==n.length?"= "+rw(n," | "):""]," ")}),EnumTypeDefinition:r_(function(e){var t=e.name,r=e.directives,n=e.values;return rw(["enum",t,rw(r," "),rS(n)]," ")}),EnumValueDefinition:r_(function(e){return rw([e.name,rw(e.directives," ")]," ")}),InputObjectTypeDefinition:r_(function(e){var t=e.name,r=e.directives,n=e.fields;return rw(["input",t,rw(r," "),rS(n)]," ")}),DirectiveDefinition:r_(function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(rx(r)?rT("(\n",rC(rw(r,"\n")),"\n)"):rT("(",rw(r,", "),")"))+(n?" repeatable":"")+" on "+rw(i," | ")}),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return rw(["extend schema",rw(t," "),rS(r)]," ")},ScalarTypeExtension:function(e){return rw(["extend scalar",e.name,rw(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return rw(["extend type",t,rT("implements ",rw(r," & ")),rw(n," "),rS(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return rw(["extend interface",t,rT("implements ",rw(r," & ")),rw(n," "),rS(i)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return rw(["extend union",t,rw(r," "),n&&0!==n.length?"= "+rw(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return rw(["extend enum",t,rw(r," "),rS(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return rw(["extend input",t,rw(r," "),rS(n)]," ")}};function r_(e){return function(t){return rw([t.description,e(t)],"\n")}}function rw(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter(function(e){return e}).join(r))&&void 0!==t?t:""}function rS(e){return rT("{\n",rC(rw(e,"\n")),"\n}")}function rT(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+r:""}function rC(e){return rT("  ",e.replace(/\n/g,"\n  "))}function rk(e){return -1!==e.indexOf("\n")}function rx(e){return null!=e&&e.some(rk)}var rA=Object.assign(function(e){var t=v.get(e);return t||(t=eP(e,{leave:rO}),v.set(e,t)),t},{reset:function(){v=new eG(eJ.print||2e3)}});rA.reset(),!1!==globalThis.__DEV__&&(u=function(){return v?v.size:0},eZ.print=u);var rD={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},rR=function(e,t){return t(e)};function rN(e){return new eC(function(t){t.error(e)})}var rI={kind:t8.FIELD,name:{kind:t8.NAME,value:"__typename"}};function rP(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function rj(e,t){tu(t);for(var r,n,i,o=rP(""),s=rP(""),a=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!rc(r)){if(r.kind===t8.OPERATION_DEFINITION)return o(r.name&&r.name.value);if(r.kind===t8.FRAGMENT_DEFINITION)return s(r.name.value)}return!1!==globalThis.__DEV__&&z.error(124),null},u=0,c=t.definitions.length-1;c>=0;--c)t.definitions[c].kind===t8.OPERATION_DEFINITION&&++u;var l=(r=new Map,n=new Map,e.forEach(function(e){e&&(e.name?r.set(e.name,e):e.test&&n.set(e.test,e))}),function(e){var t=r.get(e.name.value);return!t&&n.size&&n.forEach(function(r,n){n(e)&&(t=r)}),t}),d=function(e){return rl(e)&&e.map(l).some(function(e){return e&&e.remove})},h=new Map,f=!1,p={enter:function(e){if(d(e.directives))return f=!0,null}},y=eP(t,{Field:p,InlineFragment:p,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=a(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(d(e.directives))return f=!0,null;var o=a(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){h.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===h.get(JSON.stringify(n))?e:u>0&&e.selectionSet.selections.every(function(e){return e.kind===t8.FIELD&&"__typename"===e.name.value})?(s(e.name.value).removed=!0,f=!0,null):void 0}},Directive:{leave:function(e){if(l(e))return f=!0,null}}});if(!f)return t;var m=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){m(s(t)).transitiveVars.forEac
63h(function(t){e.transitiveVars.add(t)})})),e},v=new Set;y.definitions.forEach(function(e){e.kind===t8.OPERATION_DEFINITION?m(o(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){v.add(e)}):e.kind!==t8.FRAGMENT_DEFINITION||0!==u||s(e.name.value).removed||v.add(e.name.value)}),v.forEach(function(e){m(s(e)).fragmentSpreads.forEach(function(e){v.add(e)})});var g={enter:function(e){var t;if(t=e.name.value,!v.has(t)||s(t).removed)return null}};return!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===t8.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}(tc(i=eP(y,{FragmentSpread:g,FragmentDefinition:g,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=m(o(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return C(C({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))||tf(i),eF(td(i)))?i:null}var rF=Object.assign(function(e){return eP(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==t8.OPERATION_DEFINITION){var n=e.selections;if(!(!n||n.some(function(e){return ta(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!(ta(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return C(C({},e),{selections:D(D([],n,!0),[rI],!1)})}}}})},{added:function(e){return e===rI}});function rL(e){return tu(e),rj([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var rM=U(function(){return fetch}),rq=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,o=void 0===i?rR:i,s=e.includeExtensions,a=e.preserveHeaderCase,u=e.useGETForQueries,c=e.includeUnusedVariables,l=void 0!==c&&c,d=k(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&rE(n||rM);var h={http:{includeExtensions:s,preserveHeaderCase:a},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new t7(function(e){var t,i,s,a,c,d,f,p,y=(t=e,i=r,t.getContext().uri||("function"==typeof i?i(t):i||"/graphql")),m=e.getContext(),v={};if(m.clientAwareness){var g=m.clientAwareness,b=g.name,E=g.version;b&&(v["apollographql-client-name"]=b),E&&(v["apollographql-client-version"]=E)}var O=C(C({},v),m.headers),_={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:O};if(rt(["client"],e.query)){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&z.warn(52);var w=rL(e.query);if(!w)return rN(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=w}var S=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},o={};r.forEach(function(e){i=C(C(C({},i),e.options),{headers:C(C({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=C(C({},o),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var r={};
63return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(i.headers,o.preserveHeaderCase));var s=e.operationName,a=e.extensions,u=e.variables,c=e.query,l={operationName:s,variables:u};return o.includeExtensions&&(l.extensions=a),o.includeQuery&&(l.query=t(c,rA)),{options:i,body:l}}(e,o,rD,h,_),T=S.options,k=S.body;k.variables&&!l&&(k.variables=(s=k.variables,a=e.query,c=C({},s),d=new Set(Object.keys(s)),eP(a,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&d.delete(e.name.value)}}),d.forEach(function(e){delete c[e]}),c)),T.signal||"undefined"==typeof AbortController||(p=new AbortController,T.signal=p.signal);var D="OperationDefinition"===(f=tp(e.query)).kind&&"subscription"===f.operation,R=rt(["defer"],e.query);if(u&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(T.method="GET"),R||D){T.headers=T.headers||{};var N="multipart/mixed;";D&&R&&!1!==globalThis.__DEV__&&z.warn(53),D?N+="boundary=graphql;subscriptionSpec=1.0,application/json":R&&(N+="deferSpec=20220824,application/json"),T.headers.accept=N}if("GET"===T.method){var I=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=rr(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=rr(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var s="",a=e,u=e.indexOf("#");-1!==u&&(s=e.substr(u),a=e.substr(0,u));var c=-1===a.indexOf("?")?"?":"&";return{newURI:a+c+r.join("&")+s}}(y,k),P=I.newURI,j=I.parseError;if(j)return rN(j);y=P}else try{T.body=rr(k,"Payload")}catch(e){return rN(e)}return new eC(function(t){var r=n||U(function(){return fetch})||rM,i=t.next.bind(t);return r(y,T).then(function(t){e.setContext({response:t});var r,n=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?function(e,t){return x(this,void 0,void 0,function(){var r,n,i,o,s,a,u,c,l,d,h,f,p,y,m,v,g,b,E,O,_,w,S;return A(this,function(T){switch(T.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null===(S=e.headers)||void 0===S?void 0:S.get("content-type"),i="boundary=",o=(null==n?void 0:n.includes(i))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s="\r\n--".concat(o),a="",u=function(e){var t,r,n,i,o,s,a=e;if(e.body&&(a=e.body),t=a,ei&&t[Symbol.asyncIterator])return n=a[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(a.getReader)return rn(a.getReader());if(a.stream)return rn(a.stream().getReader());if(a.arrayBuffer)return i=a.arrayBuffer(),o=!1,s={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},ei&&(s[Symbol.asyncIterator]=function(){return this}),s;if(a.pipe)return function(e){var t=null,r=null,n=!1,i=[],o=[];function s(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function a(e){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){n=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",a),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",s),e.on("error",a),e.on("end",u),e.on("finish",u),e.on("close",u);var c={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return ei&&(c[Symbol.asyncIterator]=function(){return this}),c}(a);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),c=!0,T.label=1;case 1:if(!c)return[3,3];return[4,u.next()];case 2:for(d=(l=T.sent()).value,h=l.done,f="string"==typeof d?d:r.decode(d),p=a.length-s.length+1,c=!h,a+=f,y=a.indexOf(s,p);y>-1;){if(m=void 0,m=(_=[a.slice(0,y),a.slice(y+s.length)])[0],a=_[1],v=m.indexOf("\r\n\r\n"),(g=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(m.slice(0,v))["content-type"])&&-1===g.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");
63if(b=m.slice(v)){if(Object.keys(E=rb(e,b)).length>1||"data"in E||"incremental"in E||"errors"in E||"payload"in E){if(ek(E)&&"payload"in E){if(O={},"payload"in E){if(1===Object.keys(E).length&&null===E.payload)return[2];O=C({},E.payload)}"errors"in E&&(O=C(C({},O),{extensions:C(C({},"extensions"in O?O.extensions:null),((w={})[ro]=E.errors,w))})),t(O)}else t(E)}else if(1===Object.keys(E).length&&"hasNext"in E&&!E.hasNext)return[2]}y=a.indexOf(s)}return[3,1];case 3:return[2]}})})}(t,i):t.text().then(function(e){return rb(t,e)}).then(function(r){return Array.isArray(r)||rg.call(r,"data")||rg.call(r,"errors")||ri(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r}).then(i)}).then(function(){p=void 0,t.complete()}).catch(function(e){p=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){p&&p.abort()}})})},rU=t7.execute,rV=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,rq(t).request)||this;return r.options=t,r}return T(t,e),t}(t7);let{toString:rB,hasOwnProperty:rK}=Object.prototype,rQ=Function.prototype.toString,r$=new Map;function rz(e,t){try{return function e(t,r){if(t===r)return!0;let n=rB.call(t);if(n!==rB.call(r))return!1;switch(n){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(rJ(t,r))return!0;let n=rG(t),i=rG(r),o=n.length;if(o!==i.length)return!1;for(let e=0;e<o;++e)if(!rK.call(r,n[e]))return!1;for(let i=0;i<o;++i){let o=n[i];if(!e(t[o],r[o]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(rJ(t,r))return!0;let i=t.entries(),o="[object Map]"===n;for(;;){let t=i.next();if(t.done)break;let[n,s]=t.value;if(!r.has(n)||o&&!e(s,r.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=rQ.call(t);if(e!==rQ.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,rH)}}return!1}(e,t)}finally{r$.clear()}}function rG(e){return Object.keys(e).filter(rW,e)}function rW(e){return void 0!==this[e]}let rH="{ [native code] }";function rJ(e,t){let r=r$.get(e);if(r){if(r.has(t))return!0}else r$.set(e,r=new Set);return r.add(t),!1}function rZ(e){return e}var rY=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=er?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(rZ,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new tE(et);this.performWork=tY(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return z(Array.isArray(n),104),r.lookupArray(n)},max:eJ["documentTransform.cache"],cache:eB})}},e.prototype.performWork=function(e){return tu(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}();function rX(e,t,r){return new eC(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var s={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then(function(){return n.complete()})}},a=e.subscribe(s);return function(){return a.unsubscribe()}})}function r0(e){var t=rl(e.errors)?e.errors.slice(0):[];return rm(e)&&rl(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}function r1(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}
63),n.forEach(function(e){return e[t](r)})}function r2(e){function t(t){Object.defineProperty(e,t,{value:eC})}return en&&Symbol.species&&t(Symbol.species),t("@@species"),e}function r3(e){return e&&"function"==typeof e.then}var r4=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),r1(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),r1(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?r3(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),r1(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new eC(t)]),r3(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return T(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(eC);function r6(e){return!!e&&e<7}function r9(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}r2(r4),(c=g||(g={}))[c.loading=1]="loading",c[c.setVariables=2]="setVariables",c[c.fetchMore=3]="fetchMore",c[c.refetch=4]="refetch",c[c.poll=6]="poll",c[c.ready=7]="ready",c[c.error=8]="error";var r5=Object.prototype.toString;function r7(e,t){switch(r5.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=r7(e,t)}),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(r){n[r]=r7(e[r],t)}),n;default:return e}}function r8(e,t,r,n){var i=t.data,o=k(t,["data"]),s=r.data;return rz(o,k(r,["data"]))&&function e(t,r,n,i){if(r===n)return!0;var o=new Set;return t.selections.every(function(t){if(o.has(t)||(o.add(t),!re(t,i.variables)||ne(t)))return!0;if(ta(t)){var s=to(t),a=r&&r[s],u=n&&n[s],c=t.selectionSet;if(!c)return rz(a,u);var l=Array.isArray(a),d=Array.isArray(u);if(l!==d)return!1;if(l&&d){var h=a.length;if(u.length!==h)return!1;for(var f=0;f<h;++f)if(!e(c,a[f],u[f],i))return!1;return!0}return e(c,a,u,i)}var p=eL(t,i.fragmentMap);if(p)return!!ne(p)||e(p.selectionSet,r,n,i)})}(tp(e).selectionSet,i,s,{fragmentMap:eF(td(e)),variables:n})}function ne(e){return!!e.directives&&e.directives.some(nt)}function nt(e){return"nonreactive"===e.name.value}var nr=Object.assign,nn=Object.hasOwnProperty,ni=function(e){function t(r){var n=r.queryManager,i=r.queryInfo,o=r.options,s=this,a=t.inactiveOnCreation.getValue();(s=e.call(this,function(e){s._getOrCreateQuery();try{var t=e._subscription._observer;t&&!t.error&&(t.error=no)}catch(e){}var r=!s.observers.size;s.observers.add(e);var n=s.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(s.maskResult(n.result)),r&&s.reobserve().catch(function(){}),function(){s.observers.delete(e)&&!s.observers.size&&s.tearDownQuery()}})||this).observers=new Set,s.subscriptions=new Set,s.dirty=!1,s._getOrCreateQuery=function(){return a&&(n.queries.set(s.queryId,i),a=!1),s.queryManager.getOrCreateQuery(s.queryId)},s.queryInfo=i,s.queryManager=n,s.waitForOwnResult=na(o.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var u=n.defaultOptions.watchQuery,c=(void 0===u?{}:u).fetchPolicy,l=void 0===c?"cache-first":c,d=o.fetchPolicy,h=void 0===d?l:d,f=o.initialFetchPolicy,p=void 0===f?"standby"===h?l:h:f;s.options=C(C({},o),{initialFetchPolicy:p,fetchPolicy:h}),s.queryId=i.queryId||n.generateQueryId();var y=tc(s.query);return s.queryName=y&&y.name&&y.name.value,s}return T(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query}
63,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return!1!==globalThis.__DEV__&&t4("observableQuery.result",function(){!1!==globalThis.__DEV__&&z.warn(23)}),new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){var t=this;void 0===e&&(e=!0);var r=t2("getLastResult",function(){return t.getLastResult(!0)}),n=this.queryInfo.networkStatus||r&&r.networkStatus||g.ready,i=C(C({},r),{loading:r6(n),networkStatus:n}),o=this.options.fetchPolicy,s=void 0===o?"cache-first":o;if(na(s)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(i.data=a.result),rz(i.data,{})&&(i.data=void 0),a.complete?(delete i.partial,a.complete&&i.networkStatus===g.loading&&("cache-first"===s||"cache-only"===s)&&(i.networkStatus=g.ready,i.loading=!1)):i.partial=!0,i.networkStatus===g.ready&&(i.error||i.errors)&&(i.networkStatus=g.error),!1===globalThis.__DEV__||a.complete||this.options.partialRefetch||i.loading||i.data||i.error||ns(a.missing)}return e&&this.updateLastResult(i),i},t.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var r=this.queryManager.getDocumentInfo(this.query),n=this.queryManager.dataMasking,i=n?r.nonReactiveQuery:this.query;return(n||r.hasNonreactiveDirective?!r8(i,this.last.result,e,this.variables):!rz(this.last.result,e))||t&&!rz(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||rz(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return!1!==globalThis.__DEV__&&t4("getLastResult",function(){!1!==globalThis.__DEV__&&z.warn(24)}),this.getLast("result",e)},t.prototype.getLastError=function(e){return!1!==globalThis.__DEV__&&t4("getLastError",function(){!1!==globalThis.__DEV__&&z.warn(25)}),this.getLast("error",e)},t.prototype.resetLastResults=function(){!1!==globalThis.__DEV__&&t4("resetLastResults",function(){!1!==globalThis.__DEV__&&z.warn(26)}),delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&z.warn(27),this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0};if("no-cache"===this.options.fetchPolicy?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&nn.call(e,"variables")){var n=th(this.query),i=n.variableDefinitions;i&&i.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||z.warn(28,e,(null===(t=n.name)||void 0===t?void 0:t.value)||n)}return e&&!rz(this.options.variables,e)&&(r.variables=this.options.variables=C(C({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,g.refetch)},t.prototype.fetchMore=function(e){var t=this,r=C(C({},e.query?e:C(C(C(C({},this.options),{query:this.options.query}),e),{variables:C(C({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var n=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var i=this.queryInfo,o=i.networkStatus;i.networkStatus=g.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var s=new Set,a=null==e?void 0:e.updateQuery,u="no-cache"!==this.options.fetchPolicy;return u||z(a,29),this.queryManager.fetchQuery(n,r,g.fetchMore).then(function(c){if(t.queryManager.removeQuery(n),i.networkStatus===g.fetchMore&&(i.networkStatus=o),u)t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:c.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:c.data})},onWatchUpdated:function(e){s.add(e.query)}});else{var l=t.getLast("result"),d=a(l.data,{fetchMoreResult:c.data,variables:r.variables});t.reportResult(C(C({},l),{networkStatus:o,loading:r6(o),data:d}),t.variables)}return t.maskResult(c)}).finally(function(){u&&!s.has(t.query)&&t.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,C({subscriptionData:r},t))})},error:function(t){if(e.onError){e.onError(t);return}!1!==globalThis.__DEV__&&z.error(30,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return!1!==globalThis.__DEV__&&(t3(e,"canonizeResults","setOptions"),t4("setOptions",function(){!1!==globalThis.__DEV__&&z.warn(31)})),this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=r9(this.options,e||{});nr(this.options,t)},t.prototype.setVariables=function(e){var t=this;return rz(this.variables,e)?this.observers.size?t2("observableQuery.result",function(){return t.result()}):Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},g.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),n=r.result,i=r.complete,o=e(n,{variables:this.variables,complete:!!i,previousData:n});o&&(t.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){var n=this._getOrCreateQuery();return n.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(n,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){z(r,32),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&(r6(e.queryInfo.networkStatus)||(null===(r=(t=e.options).skipPollAttempt)||void 0===r?void 0:r.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},g.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}},t.prototype.updateLastResult=function(e,t){var r=this;void 0===t&&(t=this.variables);var n=t2("getLastError",function(){return r.getLastError()});return n&&this.last&&!rz(t,this.last.variables)&&(n=void 0),this.last=C({result:this.queryManager.assumeImmutableResults?e:r7(e),variables:t},n?{error:n}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===g.refetch||t===g.fetchMore||t===g.poll,i=this.options.variables,o=this.options.fetchPolicy,s=r9(this.options,e||{}
63),a=n?s:nr(this.options,s),u=this.transformDocument(a.query);this.lastQuery=u,!n&&(this.updatePolling(),e&&e.variables&&!rz(e.variables,i)&&"standby"!==a.fetchPolicy&&(a.fetchPolicy===o||"function"==typeof a.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",a),void 0===t&&(t=g.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=na(a.fetchPolicy));var c=function(){r.concast===h&&(r.waitForOwnResult=!1)},l=a.variables&&C({},a.variables),d=this.fetch(a,t,u),h=d.concast,f=d.fromLink,p={next:function(e){rz(r.variables,l)&&(c(),r.reportResult(e,l))},error:function(e){rz(r.variables,l)&&(rs(e)||(e=new ru({networkError:e})),c(),r.reportError(e,l))}};return n||!f&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=h,this.observer=p),h.addObserver(p),h},t.prototype.reobserve=function(e,t){var r;return(r=this.reobserveAsConcast(e,t).promise.then(this.maskResult)).catch(function(){}),r},t.prototype.resubscribeAfterError=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this.last;t2("resetLastResults",function(){return e.resetLastResults()});var i=this.subscribe.apply(this,t);return this.last=n,i},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this,n=t2("getLastError",function(){return r.getLastError()}),i=this.isDifferentFromLastResult(e,t);(n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(n||i)&&r1(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var r=this,n=C(C({},t2("getLastResult",function(){return r.getLastResult()})),{error:e,errors:e.graphQLErrors,networkStatus:g.error,loading:!1});this.updateLastResult(n,t),r1(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?C(C({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var e=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!r6(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,r=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,n){return(this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,n):t}}):this.reobserve()},t.inactiveOnCreation=new tk,t}(eC);function no(e){!1!==globalThis.__DEV__&&z.error(33,e.message,e.stack)}function ns(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&z.debug(34,e)}function na(e){return"network-only"===e||"no-cache"===e||"standby"===e}r2(ni);var nu=new(et?WeakMap:Map);function nc(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return nu.set(e,(nu.get(e)+1)%1e15),r.apply(this,arguments)})}var nl=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=e.cache;nu.has(r)||(nu.set(r,0),nc(r,"evict"),nc(r,"modify"),nc(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||g.loading;return this.variables&&this.networkStatus!==g.loading&&!rz(this.variables,e.variables)&&(t=g.setVariables),rz(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&rz(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=t2("canonizeResults",function(){return e.cache.diff(t)});return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&t2("getLastError",function(){var e;return null===(e=r.observableQuery)||void 0===e?void 0:e.getLastError()}))&&(this.updateLastDiff(e),rz(n&&n.result,e&&e.result)||null===(t=this.observableQuery)||void 0===t||t.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null===(e=this.observableQuery)||void 0===e||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null===(e=this.cancelWatch)||void 0===e||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=C(C({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});
63this.lastWatch&&rz(n,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===nu.get(this.cache)&&rz(t,r.variables)&&rz(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i,o=this,s=new ry,a=rl(e.errors)?e.errors.slice(0):[];if(null===(i=this.observableQuery)||void 0===i||i.resetNotifications(),"incremental"in e&&rl(e.incremental)){var u=rv(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=s.merge(c.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(nd(e,r.errorPolicy)?this.cache.performTransaction(function(i){if(o.shouldWrite(e,r.variables))i.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),o.lastWrite={result:e,variables:r.variables,dmCount:nu.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){e.data=o.lastDiff.diff.result;return}var s=o.getDiffOptions(r.variables),a=t2("canonizeResults",function(){return i.diff(s)});!o.stopped&&rz(o.variables,r.variables)&&o.updateWatch(r.variables),o.updateLastDiff(a,s),a.complete&&(e.data=a.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=g.ready},e.prototype.markError=function(e){var t;return this.networkStatus=g.error,this.lastWrite=void 0,null===(t=this.observableQuery)||void 0===t||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function nd(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!rl(r0(e));return!n&&r&&e.data&&(n=!0),n}function nh(e){if(!1!==globalThis.__DEV__){var t;(t=new Set([e])).forEach(function(e){ek(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){ek(e[r])&&t.add(e[r])})})}return e}var nf=et?WeakMap:Map,np=er?WeakSet:Set,ny=new tk,nm=!1;function nv(){nm||(nm=!0,!1!==globalThis.__DEV__&&z.warn(64))}function ng(e,t,r){return ny.withValue(!0,function(){var n=function e(t,r,n,i,o){var s,a=n.knownChanged,u=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(var c=0,l=Array.from(t.entries());c<l.length;c++){var d=l[c],h=d[0],f=d[1];if(null===f){u[h]=null;continue}var p=e(f,r,n,i,!1!==globalThis.__DEV__?"".concat(o||"","[").concat(h,"]"):void 0);a.has(p)&&a.add(u),u[h]=p}return a.has(u)?u:t}for(var y=0,m=r.selections;y<m.length;y++){var v=m[y],g=void 0;if(i&&a.add(u),v.kind===t8.FIELD){var b=to(v),E=v.selectionSet;if(void 0===(g=u[b]||t[b]))continue;if(E&&null!==g){var p=e(t[b],E,n,i,!1!==globalThis.__DEV__?"".concat(o||"",".").concat(b):void 0);a.has(p)&&(g=p)}!1!==globalThis.__DEV__||(u[b]=g),!1!==globalThis.__DEV__&&(!i||"__typename"===b||(null===(s=Object.getOwnPropertyDescriptor(u,b))||void 0===s?void 0:s.value)?(delete u[b],u[b]=g):Object.defineProperty(u,b,function(e,t,r,n,i){var o=function(){return ny.getValue()||(!1!==globalThis.__DEV__&&z.warn(60,n?"".concat(i," '").concat(n,"'"):"anonymous ".concat(i),"".concat(r,".").concat(e).replace(/^\./,"")),o=function(){return t}),t};return{get:function(){return o()},set:function(e){o=function(){return e}},enumerable:!0,configurable:!0}}(b,g,o||"",n.operationName,n.operationType)))}if(v.kind===t8.INLINE_FRAGMENT&&(!v.typeCondition||n.cache.fragmentMatches(v,t.__typename))&&(g=e(t,v.selectionSet,n,i,o)),v.kind===t8.FRAGMENT_SPREAD){var O=v.name.value,_=n.fragmentMap[O]||(n.fragmentMap[O]=n.cache.lookupFragment(O));z(_,59,O);var w=function(e){var t,r,n=null===(t=e.directives)||void 0===t?void 0:t.find(function(e){return"unmask"===e.name.value});if(!n)return"mask";var i=null===(r=n.arguments)||void 0===r?void 0:r.find(function(e){return"mode"===e.name.value});return(!1!==globalThis.__DEV__&&i&&(i.value.kind===t8.VARIABLE?!1!==globalThis.__DEV__&&z.warn(109):i.value.kind!==t8.STRING?!1!==globalThis.__DEV__&&z.warn(110):"migrate"!==i.value.value&&!1!==globalThis.__DEV__&&z.warn(111,i.value.value)),i&&"value"in i.value&&"migrate"===i.value.value)?"migrate":"unmask"}(v);"mask"!==w&&(g=e(t,_.selectionSet,n,"migrate"===w,o))}a.has(g)&&a.add(u)}return"__typename"in t&&!("__typename"in u)&&(u.__typename=t.__typename),Object.keys(u).length!==Object.keys(t).length&&a.add(u),a.has(u)?u:t}(e,t,r,!1);return Object.isFrozen(e)&&nh(n),n})}function nb(e,t,r,n){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&nv(),e;var i=t.definitions.filter(function(e){return e.kind===t8.FRAGMENT_DEFINITION});void 0===n&&(z(1===i.length,61,i.length),n=i[0].name.value);var o=i.find(function(e){return e.name.value===n});return(z(!!o,62,n),null==e||rz(e,{}))?e:ng(e,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:eF(td(t)),cache:r,mutableTargets:new nf,knownChanged:new np})}var nE=Object.prototype.hasOwnProperty,nO=Object.create(null),n_=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new eG(eJ["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new tE(!1),this.noCacheWarningsByQueryId=new Set;var r=new rY(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;
63this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(G(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return x(this,arguments,void 0,function(e){var t,r,n,i,o,s,a,u=e.mutation,c=e.variables,l=e.optimisticResponse,d=e.updateQueries,h=e.refetchQueries,f=void 0===h?[]:h,p=e.awaitRefetchQueries,y=void 0!==p&&p,m=e.update,v=e.onQueryUpdated,g=e.fetchPolicy,b=void 0===g?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.fetchPolicy)||"network-only":g,E=e.errorPolicy,O=void 0===E?(null===(a=this.defaultOptions.mutate)||void 0===a?void 0:a.errorPolicy)||"none":E,_=e.keepRootFields,w=e.context;return A(this,function(e){switch(e.label){case 0:if(z(u,36),z("network-only"===b||"no-cache"===b,37),t=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),r=this.getDocumentInfo(u).hasClientExports,c=this.getVariables(u,c),!r)return[3,2];return[4,this.localState.addExportedVariables(u,c,w)];case 1:c=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:u,variables:c,loading:!0,error:null}),i=l&&this.markMutationOptimistic(l,{mutationId:t,document:u,variables:c,fetchPolicy:b,errorPolicy:O,context:w,updateQueries:d,update:m,keepRootFields:_}),this.broadcastQueries(),o=this,[2,new Promise(function(e,r){return rX(o.getObservableFromLink(u,C(C({},w),{optimisticResponse:i?l:void 0}),c,{},!1),function(e){if(rl(r0(e))&&"none"===O)throw new ru({graphQLErrors:r0(e)});n&&(n.loading=!1,n.error=null);var r=C({},e);return"function"==typeof f&&(f=f(r)),"ignore"===O&&rl(r0(r))&&delete r.errors,o.markMutationResult({mutationId:t,result:r,document:u,variables:c,fetchPolicy:b,errorPolicy:O,context:w,update:m,updateQueries:d,awaitRefetchQueries:y,refetchQueries:f,removeOptimistic:i?t:void 0,onQueryUpdated:v,keepRootFields:_})}).subscribe({next:function(r){o.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e(C(C({},r),{data:o.maskOperation({document:u,data:r.data,fetchPolicy:b,id:t})}))},error:function(e){n&&(n.loading=!1,n.error=e),i&&o.cache.removeOptimistic(t),o.broadcastQueries(),r(e instanceof ru?e:new ru({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&nd(n,e.errorPolicy)){if(rm(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),rm(n)&&rl(n.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),a=void 0;s.result&&(a=rv(s.result,n)),void 0!==a&&(n.data=a,i.push({result:a,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(e,o){var s=e.observableQuery,a=s&&s.queryName;if(a&&nE.call(u,a)){var c=u[a],l=r.queries.get(o),d=l.document,h=l.variables,f=t.diff({query:d,variables:h,returnPartialData:!0,optimistic:!1}),p=f.result;if(f.complete&&p){var y=c(p,{mutationResult:n,queryName:d&&tl(d)||void 0,queryVariables:h});y&&i.push({result:y,dataId:"ROOT_QUERY",query:d,variables:h})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach(function(e){return t.write(e)});var s,a=e.update,u=!(rm(s=n)||"hasNext"in s&&"data"in s)||rm(n)&&!n.hasNext;if(a){if(!o){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(n=C(C({},n),{data:c.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}u&&a(t,n,{context:e.context,variables:e.variables})}o||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return c.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:nO}):e;return n!==nO&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult(C(C({},t),{result:{data:n}}),e)}catch(e){!1!==globalThis.__DEV__&&z.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);
63return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:e&&rt(["client","export"],e,!0),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:rt(["nonreactive"],e),nonReactiveQuery:(tu(e),eP(e,{FragmentSpread:function(e){var t;if(null===(t=e.directives)||void 0===t||!t.some(function(e){return"unmask"===e.name.value}))return C(C({},e),{directives:D(D([],e.directives||[],!0),[{kind:t8.DIRECTIVE,name:{kind:t8.NAME,value:"nonreactive"}}],!1)})}})),clientQuery:this.localState.clientQuery(e),serverQuery:rj([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:ty(tc(e)),asQuery:C(C({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?C(C({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return C(C({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=C(C({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new nl(this),n=new ni({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,ni.inactiveOnCreation.getValue()||this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),z(e.query,38),z("Document"===e.query.kind,39),z(!e.returnPartialData,40),z(!e.pollInterval,41);var n=this.transform(e.query);return this.fetchQuery(t,C(C({},e),{query:n})).then(function(i){return i&&C(C({},i),{data:r.maskOperation({document:n,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(G(42)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=g.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Map,o=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)n.set(e,e),i.set(e,!1);else if(ek(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){var r=rA(t.transform(e));n.set(r,tl(e)),i.set(r,!1)}else ek(e)&&e.query&&o.add(e)}),this.queries.forEach(function(t,n){var o=t.observableQuery,s=t.document;if(o){if("all"===e){r.set(n,o);return}var a=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||a&&i.has(a)||s&&i.has(rA(s)))&&(r.set(n,o),a&&i.set(a,!0),s&&i.set(rA(s),!0))}}),o.size&&o.forEach(function(e){var n=K("legacyOneTimeQuery"),i=t.getOrCreateQuery(n).init({document:e.query,variables:e.variables}),o=new ni({queryManager:t,queryInfo:i,options:C(C({},e),{fetchPolicy:"network-only"})});z(o.queryId===n),i.setObservableQuery(o),r.set(n,o)}),!1!==globalThis.__DEV__&&i.size&&i.forEach(function(e,t){if(!e){var r=n.get(t);r?!1!==globalThis.__DEV__&&z.warn(43,r):!1!==globalThis.__DEV__&&z.warn(44)}}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;t2("resetLastResults",function(){return n.resetLastResults()}
63),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),(t.queries.get(i)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,i=e.fetchPolicy,o=e.errorPolicy,s=void 0===o?"none":o,a=e.context,u=void 0===a?{}:a,c=e.extensions,l=void 0===c?{}:c;r=this.transform(r),n=this.getVariables(r,n);var d=function(e){return t.getObservableFromLink(r,u,e,l).map(function(n){"no-cache"!==i&&(nd(n,s)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=rl(r0(n)),a=!!n.extensions&&Array.isArray(n.extensions[ro]);if(o||a){var u={};if(o&&(u.graphQLErrors=n.errors),a&&(u.protocolErrors=n.extensions[ro]),"none"===s||a)throw new ru(u)}return"ignore"===s&&delete n.errors,n})};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,n,u).then(d);return new eC(function(e){var t=null;return h.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null===(t=this.queries.get(e))||void 0===t||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null===(t=e.observableQuery)||void 0===t?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n,i){var o,s,a=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var u=this.getDocumentInfo(e),c=u.serverQuery,l=u.clientQuery;if(c){var d=this.inFlightLinkObservables,h=this.link,f={query:c,variables:r,operationName:tl(c)||void 0,context:this.prepareContext(C(C({},t),{forceFetch:!i})),extensions:n};if(t=f.context,i){var p=rA(c),y=e6(r),m=d.lookup(p,y);if(!(s=m.observable)){var v=new r4([rU(h,f)]);s=m.observable=v,v.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?v.beforeNext(e):d.remove(p,y)})}}else s=new r4([rU(h,f)])}else s=new r4([eC.of({data:{}})]),t=this.prepareContext(t);return l&&(s=rX(s,function(e){return a.localState.runResolvers({document:l,remoteResult:e,context:t,variables:r})})),s},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return rX(this.getObservableFromLink(i,r.context,r.variables),function(o){var s=r0(o),a=s.length>0,u=r.errorPolicy;if(n>=e.lastRequestId){if(a&&"none"===u)throw e.markError(new ru({graphQLErrors:s}));e.markResult(o,i,r,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:g.ready};return a&&"none"===u&&(c.data=void 0),a&&"ignore"!==u&&(c.errors=s,c.networkStatus=g.error),c},function(t){var r=rs(t)?t:new ru({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,o,s=this;void 0===r&&(r=g.loading),void 0===n&&(n=t.query);var a=this.getVariables(n,t.variables),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,l=void 0===c?u&&u.fetchPolicy||"cache-first":c,d=t.errorPolicy,h=void 0===d?u&&u.errorPolicy||"none":d,f=t.returnPartialData,p=t.notifyOnNetworkStatusChange,y=t.context,m=Object.assign({},t,{query:n,variables:a,fetchPolicy:l,errorPolicy:h,returnPartialData:void 0!==f&&f,notifyOnNetworkStatusChange:void 0!==p&&p,context:void 0===y?{}:y}),v=function(n){m.variables=n;var i=s.fetchQueryByPolicy(e,m,r);return"standby"!==m.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),i},b=function(){return s.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){b(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(m.query).hasClientExports)i=new r4(this.localState.addExportedVariables(m.query,m.variables,m.context).then(v).then(function(e){return e.sources})),o=!0;else{var E=v(m.variables);o=E.fromLink,i=new r4(E.sources)}return i.promise.then(b,b),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,s=e.removeOptimistic,a=void 0===s?o?K("refetchQueries"):void 0:s,u=e.onQueryUpdated,c=new Map;
63n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:(t.queries.get(r)||e.queryInfo).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&a||!1,removeOptimistic:a,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof nl&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,s=e.diff;u&&(s||(s=t2("canonizeResults",function(){return t.cache.diff(i.queryInfo.getDiffOptions())})),n=u(i,s,o)),u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),a&&this.cache.removeOptimistic(a),l},e.prototype.maskOperation=function(e){var t,r,n,i=e.document,o=e.data;if(!1!==globalThis.__DEV__){var s,a=e.fetchPolicy,u=e.id,c=null===(t=tc(i))||void 0===t?void 0:t.operation,l=(null!==(r=null==c?void 0:c[0])&&void 0!==r?r:"o")+u;!this.dataMasking||"no-cache"!==a||(s=!0,eP(i,{FragmentSpread:function(e){if(!(s=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return eI}}),s)||this.noCacheWarningsByQueryId.has(l)||(this.noCacheWarningsByQueryId.add(l),!1!==globalThis.__DEV__&&z.warn(45,null!==(n=tl(i))&&void 0!==n?n:"Unnamed ".concat(null!=c?c:"operation")))}return this.dataMasking?function(e,t,r){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&nv(),e;var n,i=tc(t);return(z(i,63),null==e)?e:ng(e,i.selectionSet,{operationType:i.operation,operationName:null===(n=i.name)||void 0===n?void 0:n.value,fragmentMap:eF(td(t)),cache:r,mutableTargets:new nf,knownChanged:new np})}(o,i,this.cache):o},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?nb(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,o=t.variables,s=t.fetchPolicy,a=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,l=t.context,d=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:i,variables:o,networkStatus:r});var f=function(){return e.getDiff()},p=function(t,r){void 0===r&&(r=e.networkStatus||g.loading);var s=t.result;!1===globalThis.__DEV__||c||rz(s,{})||ns(t.missing);var a=function(e){return eC.of(C({data:e,loading:r6(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:s},context:l,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return a(e.data||void 0)}):"none"===u&&r===g.refetch&&Array.isArray(t.missing)?a(void 0):a(s)},y="no-cache"===s?0:r===g.refetch&&"merge"!==a?1:2,m=function(){return n.getResultsFromLink(e,y,{query:i,variables:o,context:l,fetchPolicy:s,errorPolicy:u})},v=d&&"number"==typeof h&&h!==r&&r6(r);switch(s){default:case"cache-first":var b=f();if(b.complete)return{fromLink:!1,sources:[p(b,e.markReady())]};if(c||v)return{fromLink:!0,sources:[p(b),m()]};return{fromLink:!0,sources:[m()]};case"cache-and-network":var b=f();if(b.complete||c||v)return{fromLink:!0,sources:[p(b),m()]};return{fromLink:!0,sources:[m()]};case"cache-only":return{fromLink:!1,sources:[p(f(),e.markReady())]};case"network-only":if(v)return{fromLink:!0,sources:[p(f()),m()]};return{fromLink:!0,sources:[m()]};case"no-cache":if(v)return{fromLink:!0,sources:[p(e.getDiff()),m()]};return{fromLink:!0,sources:[m()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new nl(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return C(C(C({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}();function nw(e){return e.kind===t8.FIELD||e.kind===t8.FRAGMENT_SPREAD||e.kind===t8.INLINE_FRAGMENT}var nS=new tk,nT=new WeakMap;function nC(e){var t=nT.get(e);return t||nT.set(e,t={vars:new Set,dep:tH()}),t}function nk(e){nC(e).vars.forEach(function(t){return t.forgetCache(e)})}
63function nx(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){nC(e).dep.dirty(n),e.broadcastWatches&&e.broadcastWatches()});var s=Array.from(r);r.clear(),s.forEach(function(t){return t(e)})}}else{var a=nS.getValue();a&&(i(a),nC(a).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),nC(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var nA=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=rh(t.resolvers,e)}):this.resolvers=rh(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return x(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,s=void 0!==o&&o;return A(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,s).then(function(e){return C(C({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return rt(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return rL(e)},e.prototype.prepareContext=function(e){var t=this.cache;return C(C({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return x(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),A(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return C(C({},t),e.exportedVariables)})]:[2,C({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return eP(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return eI}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===tp(e).operation?e:eP(e,{OperationDefinition:{enter:function(e){return C(C({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return x(this,arguments,void 0,function(e,t,r,n,i,o){var s,a,u,c,l,d,h,f,p;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),A(this,function(y){return s=tp(e),a=eF(td(e)),u=this.collectSelectionsToResolve(s,a),l=(c=s.operation)?c.charAt(0).toUpperCase()+c.slice(1):"Query",d=this,h=d.cache,f=d.client,p={fragmentMap:a,context:C(C({},r),{cache:h,client:f}),variables:n,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(s.selectionSet,!1,t,p).then(function(e){return{result:e,exportedVariables:p.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return x(this,void 0,void 0,function(){var i,o,s,a,u,c=this;return A(this,function(l){return i=n.fragmentMap,o=n.context,s=n.variables,a=[r],u=function(e){return x(c,void 0,void 0,function(){var u,c;return A(this,function(l){return(t||n.selectionsToResolve.has(e))&&re(e,s)?ta(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&a.push(((r={})[to(e)]=t,r))})]:("InlineFragment"===e.kind?u=e:z(u=i[e.name.value],21,e.name.value),u&&u.typeCondition&&(c=u.typeCondition.name.value,n.fragmentMatcher(r,c,o))?[2,this.resolveSelectionSet(u.selectionSet,t,r,n).then(function(e){a.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return rf(a)})]})})},e.prototype.resolveField=function(e,t,r,n){return x(this,void 0,void 0,function(){var i,o,s,a,u,c,l,d,h,f=this;return A(this,function(p){return r?(i=n.variables,a=(o=e.name.value)!==(s=to(e)),c=Promise.resolve(u=r[s]||r[o]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(l=r.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[l])&&(h=d[a?o:s])&&(c=Promise.resolve(nS.withValue(this.cache,h,[r,ti(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.then(function(r){if(void 0===r&&(r=u),e.directives&&e.directives.forEac
63h(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var i,o,s=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(r)?f.resolveSubSelectedArray(e,t||s,r,n):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t||s,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var o=new Set;n.set(i,o),eP(i,{Directive:function(e,t,n,i,s){"client"===e.name.value&&s.forEach(function(e){r(e)&&nw(e)&&o.add(e)})},FragmentSpread:function(n,i,s,a,u){var c=t[n.name.value];z(c,22,n.name.value);var l=e(c);l.size>0&&(u.forEach(function(e){r(e)&&nw(e)&&o.add(e)}),o.add(n),l.forEach(function(e){o.add(e)}))}})}return n.get(i)}(e)},e}();function nD(e,t){return r9(e,t,t.variables&&{variables:r9(C(C({},e&&e.variables),t.variables))})}var nR=!1,nN=function(){function e(e){var t,r,n,i=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw G(16);var o=e.uri,s=e.credentials,a=e.headers,u=e.cache,c=e.documentTransform,l=e.ssrMode,d=void 0!==l&&l,h=e.ssrForceFetchDelay,f=void 0===h?0:h,p=e.connectToDevTools,y=e.queryDeduplication,m=void 0===y||y,v=e.defaultOptions,g=e.defaultContext,b=e.assumeImmutableResults,E=void 0===b?u.assumeImmutableResults:b,O=e.resolvers,_=e.typeDefs,w=e.fragmentMatcher,S=e.clientAwareness,T=e.name,k=e.version,x=e.devtools,A=e.dataMasking;!1===globalThis.__DEV__||(t3(e,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),t3(e,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),t3(e,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),t3(e,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),t3(e,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),t3(e,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),t3(e,"typeDefs","ApolloClient"),e.link||!1===globalThis.__DEV__||z.warn(17));var D=e.link;D||(D=o?new rV({uri:o,credentials:s,headers:a}):t7.empty()),this.link=D,this.cache=u,this.disableNetworkFetches=d||f>0,this.queryDeduplication=m,this.defaultOptions=v||Object.create(null),this.typeDefs=_,this.devtoolsConfig=C(C({},x),{enabled:null!==(t=null==x?void 0:x.enabled)&&void 0!==t?t:p}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),f&&setTimeout(function(){return i.disableNetworkFetches=!1},f),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=q,this.localState=new nA({cache:u,client:this,resolvers:O,fragmentMatcher:w}),this.queryManager=new n_({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:g,documentTransform:c,queryDeduplication:m,ssrMode:d,dataMasking:!!A,clientAwareness:{name:null!==(r=null==S?void 0:S.name)&&void 0!==r?r:T,version:null!==(n=null==S?void 0:S.version)&&void 0!==n?n:k},localState:this.localState,assumeImmutableResults:E,onBroadcast:this.devtoolsConfig.enabled?function(){i.devToolsHookCb&&i.devToolsHookCb({action:{},state:{queries:i.queryManager.getQueryStore(),mutations:i.queryManager.mutationStore||{}},dataWithOptimisticResults:i.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e}
63,enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!nR&&!1!==globalThis.__DEV__&&(nR=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&z.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=nD(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=C(C({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&(t3(e,"canonizeResults","client.watchQuery"),t3(e,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=nD(this.defaultOptions.query,e)),z("cache-and-network"!==e.fetchPolicy,18),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=C(C({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&(t3(e,"canonizeResults","client.query"),t3(e,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),"standby"===e.fetchPolicy&&!1!==globalThis.__DEV__&&z.warn(19)),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=nD(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(n){return C(C({},n),{data:t.queryManager.maskOperation({document:e.query,data:n.data,fetchPolicy:e.fetchPolicy,id:r})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment(C(C({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return rU(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){!1!==globalThis.__DEV__&&z.debug(20,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
63,enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(nN.prototype.getMemoryInternals=eY);var nI=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=tY(ej,{max:eJ["cache.fragmentQueryDocuments"]||1e3,cache:eB})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&t3(e,"canonizeResults","cache.readQuery"),t2("canonizeResults",function(){return r.read(C(C({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))})},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,o=e.from,s=e.optimistic,a=k(e,["fragment","fragmentName","from","optimistic"]),u=this.getFragmentDoc(n,i),c=void 0===o||"string"==typeof o?o:this.identify(o),l=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var d=i||tf(n).name.value;c||!1===globalThis.__DEV__||z.warn(1,d)}var h=C(C({},a),{returnPartialData:!0,id:c,query:u,optimistic:void 0===s||s});return new eC(function(o){return r.watch(C(C({},h),{immediate:!0,callback:function(s){var a=l?nb(s.result,n,r,i):s.result;if(!(t&&r8(u,{data:t.result},{data:a},e.variables))){var c={data:a,complete:!!s.complete};s.missing&&(c.missing=rf(s.missing.map(function(e){return e.missing}))),t=C(C({},s),{result:a}),o.next(c)}}}))})},e.prototype.readFragment=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&t3(e,"canonizeResults","cache.readFragment"),t2("canonizeResults",function(){return r.read(C(C({},e),{query:r.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=k(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,o=k(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return!1!==globalThis.__DEV__&&t3(e,"canonizeResults","cache.updateQuery"),this.batch({update:function(r){var n=t2("canonizeResults",function(){return r.readQuery(e)}),i=t(n);return null==i?n:(r.writeQuery(C(C({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return!1!==globalThis.__DEV__&&t3(e,"canonizeResults","cache.updateFragment"),this.batch({update:function(r){var n=t2("canonizeResults",function(){return r.readFragment(e)}),i=t(n);return null==i?n:(r.writeFragment(C(C({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(nI.prototype.getMemoryInternals=e0);var nP=function(e){function t(r,n,i,o){var s,a=e.call(this,r)||this;if(a.message=r,a.path=n,a.query=i,a.variables=o,Array.isArray(a.path)){a.missing=a.message;for(var u=a.path.length-1;u>=0;--u)a.missing=((s={})[a.path[u]]=a.missing,s)}else a.missing=a.path;return a.__proto__=t.prototype,a}return T(t,e),t}(Error),nj=Object.prototype.hasOwnProperty;function nF(e){return null==e}function nL(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=nF(n)?nF(i)?void 0:{_id:i}:{id:n}),nF(n)&&!nF(i)&&(n=i),!nF(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var nM={dataIdFromObject:nL,addTypename:!0,resultCaching:!0,canonizeResults:!1};function nq(e){var t=e.canonizeResults;return void 0===t?nM.canonizeResults:t}var nU=/^[_a-z][_0-9a-z]*/i;function nV(e){var t=e.match(nU);return t?t[0]:e}function nB(e){return ek(e)&&!e8(e)&&!rc(e)}function nK(e,t){var r=eF(td(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var nQ=Object.create(null),n$=function(){return nQ},nz=Object.create(null),nG=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return nh(e8(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return e8(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return e7(e);if(e8(e))return e;var n=r.policies.identify(e)[0];if(n){var i=e7(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return C({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),nj.call(this.data,e)){var r=this.data[e];if(r&&nj.call(r,t))return r[t]}return"__typename"===t&&nj.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof nJ?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),nj.call(this.data,e))?this.data[e]:this instanceof nJ?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;e8(e)&&(e=e.__ref),e8(t)&&(t=t.__ref);
63var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){z("string"==typeof r,2);var s=new ry(nY).merge(i,o);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){var a=Object.create(null);i||(a.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==s[e]){a[e]=1;var t=nV(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(a[t]=1),void 0!==s[e]||n instanceof nJ||delete s[e]}}),a.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete a.__typename,Object.keys(a).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),o=!1,s=!0,a={DELETE:nQ,INVALIDATE:nz,isReference:e8,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||e7(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(u){var c=nV(u),l=n[u];if(void 0!==l){var d="function"==typeof t?t:t[u]||t[c];if(d){var h=d===n$?nQ:d(nh(l),C(C({},a),{fieldName:c,storeFieldName:u,storage:r.getStorage(e,u)}));if(h===nz)r.group.dirty(e,u);else if(h===nQ&&(h=void 0),h!==l&&(i[u]=h,o=!0,l=h,!1!==globalThis.__DEV__)){var f=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&z.warn(3,e),!0};if(e8(h))f(h);else if(Array.isArray(h))for(var p=!1,y=void 0,m=0,v=h;m<v.length;m++){var g=v[m];if(e8(g)){if(p=!0,f(g))break}else"object"==typeof g&&g&&r.policies.identify(g)[0]&&(y=g);if(p&&void 0!==y){!1!==globalThis.__DEV__&&z.warn(4,y);break}}}}void 0!==l&&(s=!1)}}),o)return this.merge(e,i),s&&(this instanceof nJ?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),s=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,s?((n={})[s]=n$,n):n$)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(nj.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof nJ&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){nj.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&nj.call(e,r)||t.delete(r)}),e){var r=e.__META,n=k(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof nJ?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){nj.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof nJ;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!nj.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){e8(e)&&(t[e.__ref]=!0),ek(e)&&Object.keys(e).forEach(function(t){var r=e[t];ek(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),nW=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?tH():null,this.keyMaker=new tE(et)}
63,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=nV(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function nH(e,t){nX(e)&&e.group.depend(t,"__exists")}d=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new nW(void 0===n||n))||this;return o.stump=new nZ(o),o.storageTrie=new tE(et),i&&o.replace(i),o}return T(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(l=nG||(nG={})),l.Root=d;var nJ=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return T(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){rz(n[r],i[r])||t.group.dirty(e,r)}
63):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return C(C({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return nj.call(this.data,t)?C(C({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(nG),nZ=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new nW(t.group.caching,t.group))||this}return T(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(nJ);function nY(e,t,r){var n=e[r],i=t[r];return rz(n,i)?n:i}function nX(e){return!!(e instanceof nG&&e.group.caching)}var n0=function(){function e(){this.known=new(er?WeakSet:Set),this.pool=new tE(et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return ek(e)&&this.known.has(e)},e.prototype.pass=function(e){if(ek(e)){var t=ek(e)?rc(e)?e.slice(0):C({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(ek(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),s=[o],a=this.sortedKeys(e);s.push(a.json);var u=s.length;a.sorted.forEach(function(r){s.push(t.admit(e[r]))});var i=this.pool.lookupArray(s);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),a.sorted.forEach(function(e,t){c[e]=s[u+t]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function n1(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var n2=function(){function e(e){var t=this;this.knownResults=new(et?WeakMap:Map),this.config=r9(e,{addTypename:!1!==e.addTypename,canonizeResults:nq(e)}),this.canon=e.canon||new n0,this.executeSelectionSet=tY(function(e){var r,n=e.context.canonizeResults,i=n1(e);i[3]=!n;var o=(r=t.executeSelectionSet).peek.apply(r,i);return o?n?C(C({},o),{result:t.canon.admit(o.result)}):o:(nH(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||eJ["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:n1,makeCacheKey:function(e,t,r,n){if(nX(r.store))return r.store.makeCacheKey(e,e8(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=tY(function(e){return nH(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||eJ["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(nX(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new n0},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,o=e.variables,s=e.returnPartialData,a=e.canonizeResults,u=void 0===a?this.config.canonizeResults:a,c=this.config.cache.policies;o=C(C({},ty(th(n))),o);var l=e7(void 0===i?"ROOT_QUERY":i),d=this.executeSelectionSet({selectionSet:tp(n).selectionSet,objectOrReference:l,enclosingRef:l,context:C({store:r,query:n,policies:c,variables:o,varString:e6(o),canonizeResults:u},nK(n,this.config.fragments))});if(d.missing&&(t=[new nP(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(d.missing),d.missing,n,o)],!(void 0===s||s)))throw t[0];return{result:d.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(nX(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,s=e.context;if(e8(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var a=s.variables,u=s.policies,c=s.store.getFieldValue(i,"__typename"),l=[],d=new ry;function h(e,r){var n;return e.missing&&(t=d.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof c&&!u.rootIdsByTypename[c]&&l.push({__typename:c}
63);var f=new Set(n.selections);f.forEach(function(e){var n,p;if(re(e,a)){if(ta(e)){var y=u.readField({fieldName:e.name.value,field:e,variables:s.variables,from:i},s),m=to(e);void 0===y?rF.added(e)||(t=d.merge(t,((n={})[m]="Can't find field '".concat(e.name.value,"' on ").concat(e8(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):rc(y)?y.length>0&&(y=h(r.executeSubSelectedArray({field:e,array:y,enclosingRef:o,context:s}),m)):e.selectionSet?null!=y&&(y=h(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:y,enclosingRef:e8(y)?y:o,context:s}),m)):s.canonizeResults&&(y=r.canon.pass(y)),void 0!==y&&l.push(((p={})[m]=y,p))}else{var v=eL(e,s.lookupFragment);if(!v&&e.kind===t8.FRAGMENT_SPREAD)throw G(10,e.name.value);v&&u.fragmentMatches(v,c)&&v.selectionSet.selections.forEach(f.add,f)}}});var p={result:rf(l),missing:t},y=s.canonizeResults?this.canon.admit(p):nh(p);return y.result&&this.knownResults.set(y.result,n),y},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,s=e.context,a=new ry;function u(e,r){var n;return e.missing&&(t=a.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:rc(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:s}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:e8(e)?e:o,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){ek(r)&&(z(!e8(r),11,e8(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),n3=Object.create(null);function n4(e){var t=JSON.stringify(e);return n3[t]||(n3[t]=Object.create(null))}function n6(e){var t=n4(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=n5(e,function(e){var i=n8(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&nj.call(t,e[0])&&(i=n8(t,e,n7)),z(void 0!==i,5,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function n9(e){var t=n4(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,s=JSON.stringify(n5(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&rl(n.directives)){var s=r.slice(1),a=n.directives.find(function(e){return e.name.value===s}),u=a&&ti(a,i);return u&&n8(u,e.slice(1))}return}if("$"===o){var c=r.slice(1);if(i&&nj.call(i,c)){var l=e.slice(0);return l[0]=c,n8(i,l)}return}if(t)return n8(t,e)}));return(t||"{}"!==s)&&(o+=":"+s),o})}function n5(e,t){var r=new ry;return(function e(t){var r=n4(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){rc(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),rc(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var s=n.length-1;s>=0;--s)(i={})[n[s]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function n7(e,t){return e[t]}function n8(e,t,r){return r=r||n7,function e(t){return ek(t)?rc(t)?t.map(e):n5(Object.keys(t).sort(),function(e){return n8(t,e)}):t}(t.reduce(function e(t,n){return rc(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function ie(e){return void 0!==e.args?e.args:e.field?ti(e.field,e.variables):null}var it=function(){},ir=function(e,t){return t.fieldName},ii=function(e,t,r){return(0,r.mergeObjects)(e,t)},io=function(e,t){return t},is=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=C({dataIdFromObject:nL},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,i=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var s=t&&t.storeObject||e,a=C(C({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=iu(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),c=u&&u.keyFn||this.config.dataIdFromObject;return ny.withValue(!0,function(){for(;c;){var t=c(C(C({},e),s),a);if(rc(t))c=n6(t);else{n=t;break}}}),n=n?String(n):void 0,a.keyObject?[n,a.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,o=n.mutationType,s=n.subscriptionType,a=k(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),nj.call(t.toBeAdded,r)?t.toBeAdded[r].push(a):t.toBeAdded[r]=[a]})},e.prototype.updateTypePolicy=function(e,t,r){var n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function s(e,t){e.merge="function"==typeof t?t:!0===t?ii:!1===t?io:e.merge}s(n,t.merge),n.keyFn=!1===i?it:rc(i)?n6(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEac
63h(function(t){var n=r[t];n&&(null==n?void 0:n.typename)===e||(n=r[t]={typename:e});var i=o[t];if("function"==typeof i)n.read=i;else{var a=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===a?ir:rc(a)?n9(a):"function"==typeof a?a:n.keyFn,"function"==typeof u&&(n.read=u),s(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||ir)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(z(!n||n===e,6,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(nU);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!nj.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,i){if(r.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,k(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),a=[s],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>a.indexOf(t)&&a.push(t)},c=!!(r&&this.fuzzySubtypes.size),l=!1,d=0;d<a.length;++d){var h=a[d];if(h.has(o))return s.has(o)||(l&&!1!==globalThis.__DEV__&&z.warn(7,t,o),s.add(o)),!0;h.forEach(u),c&&d===a.length-1&&function e(t,r,n){return!!ek(r)&&(rc(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if(ta(t)&&re(t,n)){var i=to(t);return nj.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(c=!1,l=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r,n,i,o,s=e.typename,a=e.fieldName,u=this.getFieldPolicy(s,a),c=u&&u.keyFn;if(c&&s)for(var l={typename:s,fieldName:a,field:e.field||null,variables:e.variables},d=ie(e);c;){var h=c(d,l);if(rc(h))c=n9(h);else{o=h||a;break}}return void 0===o&&(o=e.field?(t=e.field,r=e.variables,n=null,t.directives&&(n={},t.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(t){var i=t.name,o=t.value;return te(n[e.name.value],i,o,r)})})),i=null,t.arguments&&t.arguments.length&&(i={},t.arguments.forEach(function(e){var t=e.name,n=e.value;return te(i,t,n,r)})),tn(t.name.value,i,n)):tn(a,ie(e))),!1===o?a:a===nV(o)?o:a+":"+o},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=nV(i),s=t.store.getFieldValue(r,i),a=this.getFieldPolicy(e.typename,o),u=a&&a.read;if(u){var c=ia(this,r,e,t,t.store.getStorage(e8(r)?r.__ref:r,i));return nS.withValue(this.cache,u,[s,c])}return s}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,s=r.typename,a=r.merge;return a===ii?ic(n.store)(e,t):a===io?t:(n.overwrite&&(e=void 0),a(e,t,ia(this,void 0,{typename:s,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function ia(e,t,r,n,i){var o=e.getStoreFieldName(r),s=nV(o),a=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:ie(r),field:r.field||null,fieldName:s,storeFieldName:o,variables:a,isReference:e8,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(iu(arguments,t,a),n)},mergeObjects:ic(n.store)}}function iu(e,t,r){var n,i=e[0],o=e[1],s=e.length;return"string"==typeof i?n={fieldName:i,from:s>1?o:t}:(n=C({},i),nj.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&z.warn(8,Q(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function ic(e){return function(t,r){if(rc(t)||rc(r))throw G(9);if(ek(t)&&ek(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(e8(t)&&nB(r))return e.merge(t.__ref,r),t;if(nB(t)&&e8(r))return e.merge(t,r.__ref),r;if(nB(t)&&nB(r))return C(C({},t),r)}return r}}function il(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:C(C({},e),{clientOnly:t,deferred:r})),i}var id=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,o=t.dataId,s=t.variables,a=t.overwrite,u=tc(n),c=new ry;s=C(C({},ty(u)),s);var l=C(C({store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:s,varString:e6(s)},nK(n,this.fragments)),{overwrite:!!a,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:l});if(!e8(d))throw G(12,i);
63return l.incomingById.forEach(function(t,n){var i=t.storeObject,o=t.mergeTree,s=t.fieldNodeSet,a=e7(n);if(o&&o.map.size){var u=r.applyMerges(o,a,i,l);if(e8(u))return;i=u}if(!1!==globalThis.__DEV__&&!l.overwrite){var c=Object.create(null);s.forEach(function(e){e.selectionSet&&(c[e.name.value]=!0)});var d=function(e){var t=o&&o.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==c[nV(e)]||d(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},o=i(e);if(o){var s=i(t);if(!(!s||e8(o)||rz(o,s)||Object.keys(o).every(function(e){return void 0!==n.getFieldValue(s,e)}))){var a=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),u=nV(r),c="".concat(a,".").concat(u);if(!iv.has(c)){iv.add(c);var l=[];rc(o)||rc(s)||[o,s].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)}),!1!==globalThis.__DEV__&&z.warn(15,u,a,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",c,C({},o),C({},s))}}}}(a,i,e,l.store)})}e.merge(n,i)}),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,s=e.mergeTree,a=this.cache.policies,u=Object.create(null),c=r&&a.rootTypenamesById[r]||ts(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof c&&(u.__typename=c);var l=function(){var e=iu(arguments,u,o.variables);if(e8(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var r=a.readField(C(C({},e),{from:t.storeObject}),o);if(void 0!==r)return r}}return a.readField(e,o)},d=new Set;this.flattenFields(i,n,o,c).forEach(function(e,r){var i,o=n[to(r)];if(d.add(r),void 0!==o){var h=a.getStoreFieldName({typename:c,fieldName:r.name.value,field:r,variables:e.variables}),f=ip(s,h),p=t.processFieldValue(o,r,r.selectionSet?il(e,!1,!1):e,f),y=void 0;r.selectionSet&&(e8(p)||nB(p))&&(y=l("__typename",p));var m=a.getMergeFunction(c,r.name.value,y);m?f.info={field:r,typename:c,merge:m}:im(s,h),u=e.merge(u,((i={})[h]=p,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||rF.added(r)||a.getReadFunction(c,r.name.value)||!1===globalThis.__DEV__||z.error(13,to(r),n)});try{var h=a.identify(n,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:u,readField:l}),f=h[0],p=h[1];r=r||f,p&&(u=o.merge(u,p))}catch(e){if(!r)throw e}if("string"==typeof r){var y=e7(r),m=o.written[r]||(o.written[r]=[]);if(m.indexOf(i)>=0||(m.push(i),this.reader&&this.reader.isFresh(n,y,i,o)))return y;var v=o.incomingById.get(r);return v?(v.storeObject=o.merge(v.storeObject,u),v.mergeTree=function e(t,r){if(t===r||!r||iy(r))return t;if(!t||iy(t))return r;var n=t.info&&r.info?C(C({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,o={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var s=new Set(r.map.keys());t.map.forEach(function(t,n){o.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){o.map.set(n,e(r.map.get(n),t.map.get(n)))})}return o}(v.mergeTree,s),d.forEach(function(e){return v.fieldNodeSet.add(e)})):o.incomingById.set(r,{storeObject:u,mergeTree:iy(s)?void 0:s,fieldNodeSet:d}),y}return u},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?rc(e)?e.map(function(e,o){var s=i.processFieldValue(e,t,r,ip(n,o));return im(n,o),s}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?r7(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=ts(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,s=new tE(!1);return function e(a,u){var c=s.lookup(a,u.clientOnly,u.deferred);c.visited||(c.visited=!0,a.selections.forEach(function(s){if(re(s,r.variables)){var a=u.clientOnly,c=u.deferred;if(!(a&&c)&&rl(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(a=!0),"defer"===t){var n=ti(e,r.variables);n&&!1===n.if||(c=!0)}}),ta(s)){var l=i.get(s);l&&(a=a&&l.clientOnly,c=c&&l.deferred),i.set(s,il(r,a,c))}else{var d=eL(s,r.lookupFragment);if(!d&&s.kind===t8.FRAGMENT_SPREAD)throw G(14,s.name.value);d&&o.fragmentMatches(d,n,t,r.variables)&&e(d.selectionSet,il(r,a,c))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var o=this;
63if(e.map.size&&!e8(r)){var s,a,u=!rc(r)&&(e8(t)||nB(t))?t:void 0,c=r;u&&!i&&(i=[e8(u)?u.__ref:u]);var l=function(e,t){return rc(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=l(u,t),s=l(c,t);if(void 0!==s){i&&i.push(t);var d=o.applyMerges(e,r,s,n,i);d!==s&&(a=a||new Map).set(t,d),i&&z(i.pop()===t)}}),a&&(r=rc(c)?c.slice(0):C({},c),a.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(s=n.store).getStorage.apply(s,i)):r},e}(),ih=[];function ip(e,t){var r=e.map;return r.has(t)||r.set(t,ih.pop()||{map:new Map}),r.get(t)}function iy(e){return!e||!(e.info||e.map.size)}function im(e,t){var r=e.map,n=r.get(t);n&&iy(n)&&(ih.push(n),r.delete(t))}var iv=new Set,ig=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new rY(rF),r.assumeImmutableResults=!0,r.makeVar=nx,r.txCount=0,!1!==globalThis.__DEV__&&(t3(t,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),t3(t,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),r.config=r9(nM,t),r.addTypename=!!r.config.addTypename,r.policies=new is({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return T(t,e),t.prototype.init=function(){var e=this.data=new nG.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.addTypenameTransform.resetCache(),null==n||n.resetCaches(),this.storeWriter=new id(this,this.storeReader=new n2({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:nq(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=tY(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||eJ["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(nX(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,e6({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){!1!==globalThis.__DEV__&&t3(e,"canonizeResults","cache.read");var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore(C(C({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof nP)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(nj.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return!1!==globalThis.__DEV__&&t3(e,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore(C(C({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){nC(e).vars.forEach(function(t){return t.attachCache(e)})}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&nk(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){!1!==globalThis.__DEV__&&t3(e||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),e6.reset(),rA.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(e8(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&z.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(nj.call(e,"id"))return!1;e=C(C({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),e6.reset(),e&&e.discardWatches?(this.watches.forEac
63h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),nk(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,o=void 0===i||i,s=e.removeOptimistic,a=e.onWatchUpdated,u=function(e){var i=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},c=new Set;return a&&!this.txCount&&this.broadcastWatches(C(C({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,u):!1===o?u(this.data):u(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),a&&c.size?(this.broadcastWatches(C(C({},e),{onWatchUpdated:function(e,t){var r=a.call(this,e,t);return!1!==r&&c.delete(e),r}})),c.size&&c.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null===(t=this.config.fragments)||void 0===t?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=this,n=e.lastDiff,i=t2("canonizeResults",function(){return r.diff(e)});(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,n)))&&(n&&rz(n.result,i.result)||e.callback(e.lastDiff=i,n))},t}(nI);!1!==globalThis.__DEV__&&(ig.prototype.getMemoryInternals=eX);var ib=r(83454);
63let iE=rq({uri:ib.env.GRAPH_QL_ENDPOINT}),iO=new nN({link:(h=(e,t)=>{let{headers:r}=t;return{headers:{...r,sc_apikey:ib.env.SITECORE_API_KEY}}},new t7(function(e,t){var r=k(e,[]);return new eC(function(n){var i,o=!1;return Promise.resolve(r).then(function(t){return h(t,e.getContext())}).then(e.setContext).then(function(){o||(i=t(e).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}))}).catch(n.error.bind(n)),function(){o=!0,i&&i.unsubscribe()}})})).concat(iE),cache:new ig});var i_=r(18025),iw=r(51141),iS=r.n(iw),iT=e=>{var t,r,n,i;return i_.D.init({siteName:(null===(t=e.site)||void 0===t?void 0:t.name)||iS().sitecoreSiteName,pageState:null===(i=e.layoutData)||void 0===i?void 0:null===(n=i.sitecore)||void 0===n?void 0:null===(r=n.context)||void 0===r?void 0:r.pageState}),null},iC=r(15385),ik=r(45007),ix=r(12237),iA=r(67294),iD=r(74730),iR=r(26448),iN=r(37423);let iI=e=>(e.errors||[]).length>0;class iP{validateResponse(e,t){return e&&iI(e)?e:null}processResponse(e,t){return e}}var ij=r(64661),iF=r(61214);let iL=(e,{processor:t=new iP}={})=>{(0,ij.v6)(e);let{useStorage:r=!1}=e;iF.Z.init(r),t&&iN.Z.setProcessor(t)};var iM=r(22694),iq=r(5693);class iU extends iP{processResponse(e){return e.widgets?.forEach(({rfk_id:e,type:t,variation_id:r,used_in:n})=>{iq.Z.setMetadata(e,{rfkId:e,type:t,variationId:r,usedIn:n})}),e}}let iV=e=>{iL(e,{processor:new iU})},iB=()=>{let{trackConsent:e}=(0,ij.dS)();ix.ZP.toggleTrackConsent(e),ix.ZP.getContext().setBrowserUserAgent((0,iD.J)({navigator:{userAgent:""}}).navigator.userAgent)},iK=!1,iQ=()=>{iK||(iB(),iK=!0,ix.ZP.getDispatcher().dispatch({type:iM.Z.INITIALIZE,payload:{options:{}}}))},i$=(e,t)=>{iR.Yd.debug("setWidgetType",`Type: ${e}`,`Mapping: ${JSON.stringify(t)}`),iq.Z.setWidgetType(e,t)};var iz=r(32161);let iG=console;var iW=r(30081),iH=r(72379);class iJ{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,iz.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:iz.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class iZ extends iJ{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||iG,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){let r=(0,iz.oE)(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(iz.ZT).catch(iz.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,iz.Kp)(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>
63t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,n,i,o;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let s=(0,iz.G9)(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};u(a);let c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};u(c),null==(r=this.options.behavior)||r.onFetch(c),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(n=c.fetchOptions)?void 0:n.meta))&&this.dispatch({type:"fetch",meta:null==(o=c.fetchOptions)?void 0:o.meta});let l=e=>{if((0,iH.DV)(e)&&e.silent||this.dispatch({type:"error",error:e}),!(0,iH.DV)(e)){var t,r,n,i;null==(t=(r=this.cache.config).onError)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,iH.Mz)({fn:c.fetchFn,abort:null==s?void 0:s.abort.bind(s),onSuccess:e=>{var t,r,n,i;if(void 0===e){l(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(t=(r=this.cache.config).onSuccess)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var r,n;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:(0,iH.Kw)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(n=e.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=e.error;if((0,iH.DV)(i)&&i.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),iW.V.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}var iY=r(33989);class iX extends iY.l{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var n;let i=t.queryKey,o=null!=(n=t.queryHash)?n:(0,iz.Rm)(i,t),s=this.get(o);return s||(s=new iZ({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){iW.V.batch(()=>
63{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[r]=(0,iz.I6)(e,t);return void 0===r.exact&&(r.exact=!0),this.queries.find(e=>(0,iz._x)(r,e))}findAll(e,t){let[r]=(0,iz.I6)(e,t);return Object.keys(r).length>0?this.queries.filter(e=>(0,iz._x)(r,e)):this.queries}notify(e){iW.V.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){iW.V.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){iW.V.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class i0 extends iJ{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||iG,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,r,n,i,o,s,a,u,c,l,d,h,f,p,y,m,v,g,b;let E="loading"===this.state.status;try{if(!E){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(u=(c=this.mutationCache.config).onMutate)?void 0:u.call(c,this.state.variables,this));let e=await (null==(l=(d=this.options).onMutate)?void 0:l.call(d,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let h=await (()=>{var e;return this.retryer=(0,iH.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,h,this.state.variables,this.state.context,this)),await (null==(r=(n=this.options).onSuccess)?void 0:r.call(n,h,this.state.variables,this.state.context)),await (null==(i=(o=this.mutationCache.config).onSettled)?void 0:i.call(o,h,null,this.state.variables,this.state.context,this)),await (null==(s=(a=this.options).onSettled)?void 0:s.call(a,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{throw await (null==(h=(f=this.mutationCache.config).onError)?void 0:h.call(f,e,this.state.variables,this.state.context,this)),await (null==(p=(y=this.options).onError)?void 0:p.call(y,e,this.state.variables,this.state.context)),await (null==(m=(v=this.mutationCache.config).onSettled)?void 0:m.call(v,void 0,e,this.state.variables,this.state.context,this)),await (null==(g=(b=this.options).onSettled)?void 0:g.call(b,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,iH.Kw)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPau
63sed:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),iW.V.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}class i1 extends iY.l{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){let n=new i0({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){iW.V.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>(0,iz.X7)(e,t))}findAll(e){return this.mutations.filter(t=>(0,iz.X7)(e,t))}notify(e){iW.V.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>
63e.state.isPaused);return iW.V.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(iz.ZT)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}var i2=r(15761),i3=r(96474);function i4(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class i6{constructor(e={}){this.queryCache=e.queryCache||new iX,this.mutationCache=e.mutationCache||new i1,this.logger=e.logger||iG,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=i2.j.subscribe(()=>{i2.j.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=i3.N.subscribe(()=>{i3.N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[r]=(0,iz.I6)(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data}ensureQueryData(e,t,r){let n=(0,iz._v)(e,t,r),i=this.getQueryData(n.queryKey);return i?Promise.resolve(i):this.fetchQuery(n)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let n=this.queryCache.find(e),i=null==n?void 0:n.state.data,o=(0,iz.SE)(t,i);if(void 0===o)return;let s=(0,iz._v)(e),a=this.defaultQueryOptions(s);return this.queryCache.build(this,a).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return iW.V.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state}removeQueries(e,t){let[r]=(0,iz.I6)(e,t),n=this.queryCache;iW.V.batch(()=>{n.findAll(r).forEach(e=>{n.remove(e)})})}resetQueries(e,t,r){let[n,i]=(0,iz.I6)(e,t,r),o=this.queryCache,s={type:"active",...n};return iW.V.batch(()=>(o.findAll(n).forEach(e=>{e.reset()}),this.refetchQueries(s,i)))}cancelQueries(e,t,r){let[n,i={}]=(0,iz.I6)(e,t,r);return void 0===i.revert&&(i.revert=!0),Promise.all(iW.V.batch(()=>this.queryCache.findAll(n).map(e=>e.cancel(i)))).then(iz.ZT).catch(iz.ZT)}invalidateQueries(e,t,r){let[n,i]=(0,iz.I6)(e,t,r);return iW.V.batch(()=>{var e,t;if(this.queryCache.findAll(n).forEach(e=>{e.invalidate()}),"none"===n.refetchType)return Promise.resolve();let r={...n,type:null!=(e=null!=(t=n.refetchType)?t:n.type)?e:"active"};return this.refetchQueries(r,i)})}refetchQueries(e,t,r){let[n,i]=(0,iz.I6)(e,t,r),o=Promise.all(iW.V.batch(()=>this.queryCache.findAll(n).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:n.refetchPage}})}))).then(iz.ZT);return null!=i&&i.throwOnError||(o=o.catch(iz.ZT)),o}fetchQuery(e,t,r){let n=(0,iz._v)(e,t,r),i=this.defaultQueryOptions(n);void 0===i.retry&&(i.retry=!1);let o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(iz.ZT).catch(iz.ZT)}fetchInfiniteQuery(e,t,r){let n=(0,iz._v)(e,t,r);return n.behavior={onFetch:e=>{e.fetchFn=()=>{var t,r,n,i,o,s,a;let u;let c=null==(t=e.fetchOptions)?void 0:null==(r=t.meta)?void 0:r.refetchPage,l=null==(n=e.fetchOptions)?void 0:null==(i=n.meta)?void 0:i.fetchMore,d=null==l?void 0:l.pageParam,h=(null==l?void 0:l.direction)==="forward",f=(null==l?void 0:l.direction)==="backward",p=(null==(o=e.state.data)?void 0:o.pages)||[],y=(null==(s=e.state.data)?void 0:s.pageParams)||[],m=y,v=!1,g=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,r;return null!=(t=e.signal)&&t.aborted?v=!0:null==(r=e.signal)||r.addEventListener("abort",()=>{v=!0}),e.signal}})},b=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),E=(e,t,r,n)=>(m=n?[t,...m]:[...m,t],n?[r,...e]:[...e,r]),O=(t,r,n,i)=>{if(v)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);let o={queryKey:e.queryKey,pageParam:n,meta:e.options.meta};return g(o),Promise.resolve(b(o)).then(e=>E(t,n,e,i))};if(p.length){if(h){let t=void 0!==d,r=t?d:i4(e.options,p);u=O(p,t,r)}else if(f){let t=void 0!==d,r=t?d:null==(a=e.options).getPreviousPageParam?void 0:a.getPreviousPageParam(p[0],p);u=O(p,t,r,!0)}else{m=[];let t=void 0===e.options.getNextPageParam;u=!c||!p[0]||c(p[0],0,p)?O([],t,y[0]):Promise.resolve(E([],y[0],p[0]));for(let r=1;r<p.length;r++)u=u.then(n=>{if(!c||!p[r]||c(p[r],r,p)){let i=t?y[r]:i4(e.options,n);
63return O(n,t,i)}return Promise.resolve(E(n,y[r],p[r]))})}}else u=O([]);return u.then(e=>({pages:e,pageParams:m}))}}},this.fetchQuery(n)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(iz.ZT).catch(iz.ZT)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let r=this.queryDefaults.find(t=>(0,iz.yF)(e)===(0,iz.yF)(t.queryKey));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>(0,iz.to)(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let r=this.mutationDefaults.find(t=>(0,iz.yF)(e)===(0,iz.yF)(t.mutationKey));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>(0,iz.to)(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=(0,iz.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}var i9=r(25769);class i5{constructor(){Object.defineProperty(this,"containerHandled",{enumerable:!0,configurable:!0,writable:!0,value:!1}),ix.ZP.register(this)}handleAction(e){switch(e.type){case iM.Z.PAGE_CONTAINER_READY:this.containerHandled||(this.containerHandled=this.handlePageContainerReadyAction(e.payload));break;case iM.Z.FOUND_WIDGETS:{let{widgets:t=[]}=e.payload;t.forEach(({rfkId:e,entity:t,node:r})=>{this.handleAddWidget(e,t,r)})}}}handlePageContainerReadyAction(e){return!0}handleAddWidget(e,t,r){}}var i7=r(80187);let i8='[data-rfkid="rfkid_container"]',oe=()=>document.querySelector(i8);var ot={start:()=>{if(i)return;let e=oe();(i=new MutationObserver(t=>{let r=[];t.forEach(t=>{t.addedNodes.forEach(t=>{let n=t.dataset.rfkid,i=t.dataset.entity;t.nodeType===Node.ELEMENT_NODE&&(!e||!e.contains(t))&&n&&i&&r.push({rfkId:n,entity:i,node:t})})}),Object.keys(r).length>0&&ix.ZP.getDispatcher().dispatch({type:iM.Z.FOUND_WIDGETS,payload:{widgets:r}})})).observe(document.body,{subtree:!0,childList:!0,characterData:!0})}};let or=e=>{let{autoIncludeNewWidgets:t=!1,autoIncludeWidgets:r=!0,uri:n}=e||{};if((0,i7.y)()){n&&ix.ZP.getContext().setPageUri(n),iQ();return}if(ix.ZP.getContext().setPageUri(n||window.location.pathname),t&&ot.start(),r){let e=Array.from(document.querySelectorAll(`:not(${i8}) > [data-rfkid]:not(${i8})`)).filter((e,t,r)=>r.indexOf(e)===t).map(e=>({rfkId:e.dataset.rfkid,entity:e.dataset.entity,node:e}));e.length&&setTimeout(()=>{ix.ZP.getDispatcher().dispatch({type:iM.Z.FOUND_WIDGETS,payload:{widgets:e}})},0)}iQ()},on=(e,t)=>{};var oi=r(8490),oo={keyphrase:(e,t)=>t.keyphrase&&e.setSearchQueryKeyphrase(t.keyphrase),suggestionsList:(e,t)=>t.suggestionsList&&e.setSearchSuggestion(t.suggestionsList.map(({suggestion:e,max:t=3})=>({name:e,max:t}))),itemsPerPage:(e,t)=>e.setSearchLimit(t.itemsPerPage)};(f=b||(b={})).ITEM_CLICKED="search/ITEM_CLICKED",f.SUGGESTION_CLICKED="search/SUGGESTION_CLICKED",f.SUGGESTION_ADDED="search/SUGGESTION_ADDED",f.SUGGESTION_REMOVED="search/SUGGESTION_REMOVED",f.KEYPHRASE_CHANGED="search/KEYPHRASE_CHANGED";let os={onItemClick:b.ITEM_CLICKED,onSuggestionClick:b.SUGGESTION_CLICKED,onSuggestionAdded:b.SUGGESTION_ADDED,onSuggestionRemoved:b.SUGGESTION_REMOVED,onKeyphraseChange:b.KEYPHRASE_CHANGED};var oa={itemsPerPage:(e,t)=>e.setRecommendationsLimit(t.itemsPerPage)};(p=E||(E={})).ITEM_CLICKED="recommendation/ITEM_CLICKED",p.NAVIGATION_NEXT="recommendation/NAVIGATION_NEXT",p.NAVIGATION_PREV="recommendation/NAVIGATION_PREV";let ou={onNavigationNext:E.NAVIGATION_NEXT,onNavigationPrev:E.NAVIGATION_PREV,onItemClick:E.ITEM_CLICKED};var oc={keyphrase:(e,t)=>t.keyphrase&&e.setQuestionsKeyphrase(t.keyphrase),relatedQuestions:(e,t)=>t.relatedQuestions&&e.setQuestionsRelatedQuestionsLimit(t.relatedQuestions)};(O||(O={})).KEYPHRASE_CHANGED="questions/KEYPHRASE_CHANGED";let ol={onKeyphraseChanged:O.KEYPHRASE_CHANGED};var od={keyphrase:(e,t)=>t.keyphrase&&e.setSearchQueryKeyphrase(t.keyphrase),page:(e,t)=>
63e.setSearchOffset((t.itemsPerPage??e.getSearchLimit())*((t.page??1)-1)||0),itemsPerPage:(e,t)=>e.setSearchLimit(t.itemsPerPage),sortType:(e,t)=>e.setSearchSortCriteriaName(t.sortType)},oh=r(85007);let of={onKeyphraseChange:oh.e.KEYPHRASE_CHANGED,onClearFilters:oh.e.CLEAR_FILTERS,onResultsPerPageChange:oh.e.RESULTS_PER_PAGE_CHANGED,onPageNumberChange:oh.e.PAGE_NUMBER_CHANGED,onItemClick:oh.e.ITEM_CLICKED,onSortChange:oh.e.SORT_CHANGED,onFacetClick:oh.e.FACET_CLICKED,onFilterClick:oh.e.FILTER_CLICKED,onRemoveFilter:oh.e.REMOVE_FILTER};var op=r(4687),oy=r(45299);let om={component:op.Z,options:{state:{}}},ov=(e,t)=>i$(e,t);var og=()=>{ov(oi.L.CONTENT_BLOCK,om),ov(oi.L.HTML_BLOCK,om),ov(oi.L.BANNER,om),ov(oi.L.SEO,{...om,component:oy.Z}),ov(oi.L.PREVIEW_SEARCH,{options:{propStateMapping:oo,actionProps:os,state:{}}}),ov(oi.L.RECOMMENDATION,{options:{propStateMapping:oa,actionProps:ou,state:{}}}),ov(oi.L.QUESTIONS,{options:{propStateMapping:oc,actionProps:ol,state:{}}}),ov(oi.L.SEARCH_RESULTS,{options:{propStateMapping:od,actionProps:of,state:{selectedFacets:{},page:1}}})};class ob{constructor(){Object.defineProperty(this,"widgets",{enumerable:!0,configurable:!0,writable:!0,value:{}})}getWidgetComponentConfig(e,t){let r=iq.Z.get(e,t);if(r&&r.type&&r.component)return r}getWidget(e,t){if(!this.widgets[e]){let r=this.getWidgetComponentConfig(e,t);r&&(this.widgets[e]=this.doSetup({...r,entity:t},e))}return this.widgets[e]}setup(e,t){return this.getWidget(e,t)}}var oE=ob,oO=r(40137);class o_ extends oE{doSetup({type:e,entity:t,component:r}){return(0,oO.Zg)(r,e,t)}}let ow=(...e)=>{og(),on(new i5,new o_),or(...e)},oS=e=>(!o&&e?o=e:o||(o=new i6({defaultOptions:{queries:{retry:!1,keepPreviousData:!0,refetchOnWindowFocus:!1}}})),o);var oT=({apiKey:e,children:t,clientId:r,customerKey:n,debug:i,discoverDomainId:o,env:s="prod",orderCloudRegion:a,publicSuffix:u=!1,requestMiddleware:c,serviceHost:l,trackConsent:d=!0,uri:h,useAccessToken:f,useStorage:p,useToken:y,userId:m,...v})=>((0,iA.useMemo)(()=>{iV({apiKey:e,clientId:r,customerKey:n,debug:i,discoverDomainId:o,env:s,orderCloudRegion:a,publicSuffix:u,requestMiddleware:c,serviceHost:l,trackConsent:d,useAccessToken:f,useStorage:p,useToken:y,userId:m}),ow({uri:h,autoIncludeWidgets:!1,autoIncludeNewWidgets:!1})},[]),(0,iA.useEffect)(()=>{ix.ZP.toggleTrackConsent(d)},[d]),(0,iA.createElement)(i9.aH,{...v,client:oS(v.client)},t)),oC=r(72220);r(11135);var ok=r(83454),ox=function(e){var t,r,n;let{Component:i,pageProps:o}=e,{dictionary:s,...a}=o;return(0,oC.p5)(iC.h),ix.ZP.getContext().setLocaleLanguage(o.locale),ix.ZP.getContext().setLocaleCountry("us"),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(iT,{...o}),(0,_.jsx)(ik.zt,{store:iC.h,children:(0,_.jsx)(es,{client:iO,children:(0,_.jsx)(w.bd,{lngDict:s,locale:o.locale,children:(0,_.jsx)(oT,{env:null==ok?void 0:null===(t=ok.env)||void 0===t?void 0:"prodEu",customerKey:null==ok?void 0:null===(r=ok.env)||void 0===r?void 0:"142663527-162358074",apiKey:null==ok?void 0:null===(n=ok.env)||void 0===n?void 0:"01-643fa63f-ce0a132342e113a3eba243ba1643950fb95d8259",children:(0,_.jsx)(i,{...a})})})})})]})}},94580:function(e,t,r){"use strict";r.d(t,{Cw:function(){return i},GH:function(){return o}});let n=(0,r(85839).oM)({name:"searchWidget",initialState:{searchWidgetState:{vehicleType:null,typeCode:null,vehicleTypeCode:null,title:null,subTitle:null,brandName:null,modelName:null,typeName:null}},reducers:{setsearchWidgetState:(e,t)=>{e.searchWidgetState=t.payload.searchWidgetState}}}),{setsearchWidgetState:i}=n.actions,o=n.reducer},15385:function(e,t,r){"use strict";r.d(t,{CG:function(){return h},TL:function(){return d},h:function(){return l}});var n=r(85839),i=r(65849),o=r(45007),s=r(94580),a=r(72220);let u={key:"searchWidget",storage:r(76734).Z,whitelist:["searchWidgetState"]},c=(0,i.UY)({searchWidget:(0,a.OJ)(u,s.GH)}),l=(0,n.xC)({reducer:c,middleware:e=>e({serializableCheck:!1})}),d=()=>(0,o.I0)(),h=o.v9},51141:function(e,t,r){"use strict";var n=r(83454);let i={};i.sitecoreApiKey=n.env.SITECORE_API_KEY||"UktCbGJrSE5OKzZIaGQxNlcxazRSQ1VlL3h5b2E5RlhFZi8zbzRUemhSQT18YnJlbWJvc3BhMWMyOTYtYnJlbWJvNzc2YS1wcm9kMzBjNC02NTdl",i.sitecoreApiHost=n.env.SITECORE_API_HOST||"https://api-engage-eu.sitecorecloud.io",i.sitecoreSiteName=n.env.SITECORE_SITE_NAME||"BremboGroup",i.graphQLEndpointPath=n.env.GRAPH_QL_ENDPOINT_PATH||"/sitecore/api/gra
63ph/edge",i.defaultLanguage=n.env.DEFAULT_LANGUAGE||"en",i.graphQLEndpoint=n.env.GRAPH_QL_ENDPOINT||"https://edge.sitecorecloud.io/api/graphql/v1",i.layoutServiceConfigurationName=n.env.LAYOUT_SERVICE_CONFIGURATION_NAME||"sxa-jss",i.publicUrl="https://www.brembogroup.com/",i.sitecoreEdgeUrl=n.env.SITECORE_EDGE_URL||"https://edge-platform.sitecorecloud.io",i.sitecoreEdgeContextId=n.env.SITECORE_EDGE_CONTEXT_ID||"6zlRuMXOeVjggUUcXpWvLn",i.sites=n.env.SITES||'[{"name":"Brembo","hostName":"www.brembo.com|brembo-prod.vercel.app","language":"en"},{"name":"BremboDXP","hostName":"brembodxp-prod.vercel.app","language":"en"},{"name":"BremboGroup","hostName":"www.brembogroup.com|brembogroup-prod.vercel.app","language":"en"},{"name":"Bsccb","hostName":"www.carbonceramicbrakes.com|bsccb.vercel.app","language":"en"}]',e.exports=i},11135:function(){},77663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u=[],c=!1,l=-1;function d(){c&&n&&(c=!1,n.length?u=n.concat(u):l=-1,u.length&&h())}function h(){if(!c){var e=a(d);c=!0;for(var t=u.length;t;){for(n=u,u=[];++l<t;)n&&n[l].run();l=-1,t=u.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new f(e,t)),1!==u.length||c||a(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},s=!0;try{t[e](o,o.exports,n),s=!1}finally{s&&delete r[e]}return o.exports}n.ab="//";var i=n(229);e.exports=i}()},13017:function(e,t,r){"use strict";var n=r(47798);e.exports=function(e,t){if(!n(e)&&"function"!=typeof e)return{};var r={};if("string"==typeof t)return t in e&&(r[t]=e[t]),r;for(var i=t.length,o=-1;++o<i;){var s=t[o];s in e&&(r[s]=e[s])}return r}},92703:function(e,t,r){"use strict";var n=r(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
63;return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},57129:function(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,s,a=[];for(s in"string"!=typeof(t=t||"")&&(t="?"),e)if(n.call(e,s)){if(!(i=e[s])&&(null===i||i===r||isNaN(i))&&(i=""),s=o(s),i=o(i),null===s||null===i)continue;a.push(s+"="+i)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=i(t[1]),s=i(t[2]);null===o||null===s||o in n||(n[o]=s)}return n}},72220:function(e,t,r){"use strict";r.d(t,{OJ:function(){return b},p5:function(){return C}});var n="persist:",i="persist/FLUSH",o="persist/REHYDRATE",s="persist/PAUSE",a="persist/PERSIST",u="persist/PURGE",c="persist/REGISTER";function l(e){return(l="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 d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e,t,r,n){n.debug;var i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(r,!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},r);return e&&"object"===l(e)&&Object.keys(e).forEach(function(n){"_persist"!==n&&t[n]===r[n]&&(i[n]=e[n])}),i}function f(e){return JSON.stringify(e)}function p(e){var t,r=e.transforms||[],i="".concat(void 0!==e.ke
63yPrefix?e.keyPrefix:n).concat(e.key),o=e.storage;return e.debug,t=!1===e.deserialize?function(e){return e}:"function"==typeof e.deserialize?e.deserialize:y,o.getItem(i).then(function(e){if(e)try{var n={},i=t(e);return Object.keys(i).forEach(function(e){n[e]=r.reduceRight(function(t,r){return r.out(t,e,i)},t(i[e]))}),n}catch(e){throw e}})}function y(e){return JSON.parse(e)}function m(e){}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(r,!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(e,t){var r=void 0!==e.version?e.version:-1;e.debug;var c=void 0===e.stateReconciler?h:e.stateReconciler,l=e.getStoredState||p,d=void 0!==e.timeout?e.timeout:5e3,y=null,v=!1,b=!0,E=function(e){return e._persist.rehydrated&&y&&!b&&y.update(e),e};return function(h,p){var O,_,w=h||{},S=w._persist,T=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(w,["_persist"]);if(p.type===a){var C=!1,k=function(t,r){C||(p.rehydrate(e.key,t,r),C=!0)};if(d&&setTimeout(function(){C||k(void 0,Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},d),b=!1,y||(y=function(e){var t,r=e.blacklist||null,i=e.whitelist||null,o=e.transforms||[],s=e.throttle||0,a="".concat(void 0!==e.ke
63yPrefix?e.keyPrefix:n).concat(e.key),u=e.storage;t=!1===e.serialize?function(e){return e}:"function"==typeof e.serialize?e.serialize:f;var c=e.writeFailHandler||null,l={},d={},h=[],p=null,y=null;function m(){if(0===h.length){p&&clearInterval(p),p=null;return}var e=h.shift(),r=o.reduce(function(t,r){return r.in(t,e,l)},l[e]);if(void 0!==r)try{d[e]=t(r)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete d[e];0===h.length&&(Object.keys(d).forEach(function(e){void 0===l[e]&&delete d[e]}),y=u.setItem(a,t(d)).catch(g))}function v(e){return(!i||-1!==i.indexOf(e)||"_persist"===e)&&(!r||-1===r.indexOf(e))}function g(e){c&&c(e)}return{update:function(e){Object.keys(e).forEach(function(t){v(t)&&l[t]!==e[t]&&-1===h.indexOf(t)&&h.push(t)}),Object.keys(l).forEach(function(t){void 0===e[t]&&v(t)&&-1===h.indexOf(t)&&void 0!==l[t]&&h.push(t)}),null===p&&(p=setInterval(m,s)),l=e},flush:function(){for(;0!==h.length;)m();return y||Promise.resolve()}}}(e)),S)return g({},t(T,p),{_persist:S});if("function"!=typeof p.rehydrate||"function"!=typeof p.register)throw Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return p.register(e.key),l(e).then(function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,r).then(function(e){k(e)},function(e){k(void 0,e)})},function(e){k(void 0,e)}),g({},t(T,p),{_persist:{version:r,rehydrated:!1}})}if(p.type===u)return v=!0,p.result((O=e.storage,_="".concat(void 0!==e.ke
63yPrefix?e.keyPrefix:n).concat(e.key),O.removeItem(_,m))),g({},t(T,p),{_persist:S});if(p.type===i)return p.result(y&&y.flush()),g({},t(T,p),{_persist:S});if(p.type===s)b=!0;else if(p.type===o){if(v)return g({},T,{_persist:g({},S,{rehydrated:!0})});if(p.key===e.key){var x=t(T,p),A=p.payload;return E(g({},!1!==c&&void 0!==A?c(A,h,x,e):x,{_persist:g({},S,{rehydrated:!0})}))}}if(!S)return t(h,p);var D=t(T,p);return D===T?h:E(g({},D,{_persist:S}))}}var E=r(65849);function O(e){return function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(r,!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var S={registry:[],bootstrapped:!1},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case c:return w({},e,{registry:[].concat(O(e.registry),[t.key])});case o:var r=e.registry.indexOf(t.key),n=O(e.registry);return n.splice(r,1),w({},e,{registry:n,bootstrapped:0===n.length});default:return e}};function C(e,t,r){var n=r||!1,l=(0,E.MT)(T,S,t&&t.enhancer?t.enhancer:void 0),d=function(e){l.dispatch({type:c,key:e})},h=function(t,r,i){var s={type:o,payload:r,err:i,key:t};e.dispatch(s),l.dispatch(s),n&&f.getState().bootstrapped&&(n(),n=!1)},f=w({},l,{purge:function(){var t=[];return e.dispatch({type:u,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:i,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:s})},persist:function(){e.dispatch({type:a,register:d,rehydrate:h})}});return t&&t.manualPersist||f.persist(),f}},23488:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e);return{getItem:function(e){return new Promise(function(r,n){r(t.getItem(e))})},setItem:function(e,r){return new Promise(function(n,i){n(t.setItem(e,r))})},removeItem:function(e){return new Promise(function(r,n){r(t.removeItem(e))})}}};var n,i=(n=r(77290))&&n.__esModule?n:{default:n}},77290:function(e,t){"use strict";function r(e){return(r="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 n(){}t.__esModule=!0,t.default=function(e){var t="".concat(e,"Storage");return!function(e){if(("undefined"==typeof self?"undefined":r(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch(e){return!1}return!0}(t)?i:self[t]};var i={getItem:n,setItem:n,removeItem:n}},76734:function(e,t,r){"use strict";t.Z=void 0;var n,i=(0,((n=r(23488))&&n.__esModule?n:{default:n}).default)("local");t.Z=i},73914:function(e,t,r){"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,r(67294))},47418:function(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))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}},73469:function(e){e.exports.Qc=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()}
63).filter(Boolean).forEach(function(e){var t,i=e.indexOf(":"),o=e.substr(0,i).trim(),s=e.substr(i+1).trim();r&&!isNaN(parseFloat(t=s))&&isFinite(t)&&(s=Number(s)),n[o]=s}),n}},84564:function(e,t,r){"use strict";var n=r(47418),i=r(57129),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(o,"")}var h=[["#","hash"],["?","query"],function(e,t){return y(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 p(e){"undefined"!=typeof window?t=window:void 0!==r.g?t=r.g:"undefined"!=typeof self?t=self:t={};var t,n,i=t.location||{},o={},s=typeof(e=e||i);if("blob:"===e.protocol)o=new v(unescape(e.pathname),{});else if("string"===s)for(n in o=new v(e,{}),f)delete o[n];else if("object"===s){for(n in e)n in f||(o[n]=e[n]);void 0===o.slashes&&(o.slashes=a.test(e.href))}return o}function y(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function m(e,t){e=(e=d(e)).replace(s,""),t=t||{};var r,n=c.exec(e),i=n[1]?n[1].toLowerCase():"",o=!!n[2],a=!!n[3],u=0;return o?a?(r=n[2]+n[3]+n[4],u=n[2].length+n[3].length):(r=n[2]+n[4],u=n[2].length):a?(r=n[3]+n[4],u=n[3].length):r=n[4],"file:"===i?u>=2&&(r=r.slice(2)):y(i)?r=n[4]:i?o&&(r=r.slice(2)):u>=2&&y(t.protocol)&&(r=n[4]),{protocol:i,slashes:o||y(i),slashesCount:u,rest:r}}function v(e,t,r){if(e=(e=d(e)).replace(s,""),!(this instanceof v))return new v(e,t,r);var o,a,u,c,f,g,b=h.slice(),E=typeof t,O=0;for("object"!==E&&"string"!==E&&(r=t,t=null),r&&"function"!=typeof r&&(r=i.parse),o=!(a=m(e||"",t=p(t))).protocol&&!a.slashes,this.slashes=a.slashes||o&&t.slashes,this.protocol=a.protocol||t.protocol||"",e=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||l.test(e))||!a.slashes&&(a.protocol||a.slashesCount<2||!y(this.protocol)))&&(b[3]=[/(.*)/,"pathname"]);O<b.length;O++){if("function"==typeof(c=b[O])){e=c(e,this);continue}u=c[0],g=c[1],u!=u?this[g]=e:"string"==typeof u?~(f="@"===u?e.lastIndexOf(u):e.indexOf(u))&&("number"==typeof c[2]?(this[g]=e.slice(0,f),e=e.slice(f+c[2])):(this[g]=e.slice(f),e=e.slice(0,f))):(f=u.exec(e))&&(this[g]=f[1],e=e.slice(0,f.index)),this[g]=this[g]||o&&c[3]&&t[g]||"",c[4]&&(this[g]=this[g].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,s=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),s++):s&&(0===n&&(o=!0),r.splice(n,1),s--);return o&&r.unshift(""),("."===i||".."===i)&&r.push(""),r.join("/")}(this.pathname,t.pathname)),"/"!==this.pathname.charAt(0)&&y(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&&y(this.protocol)&&this.host?this.protocol+"//"+this.host:"null",this.href=this.toString()}v.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,u.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 s=t.indexOf(":");~s?(this.username=t.slice(0,s),this.username=encodeURIComponent(decodeURIComponent(this.username)),this.password=t.slice(s+1),this.password=encodeURIComponent(decodeURIComponent(this.password))):this.username=encodeURIComponent(decodeURIComponent(t))}for(var a=0;a<h.length;a++){var c=h[a];c[4]&&(this[c[1]]=this[c[1]].toLowerCase())}return this.auth=this.password?this.username+":"+this.password:this.username,this.origin="file:"!==this.protocol&&y(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||y(this.protocol)?"//":"");return this.username?(o+=this.username,this.password&&(o+=":"+this.password),o+="@"):this.password?o+=":"+this.password+"@":"file:"!==this.protocol&&y(this.protocol)&&!r&&"/"!==this.pathname&&(o+="@"),(":"===r[r.length-1]||u.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}},v.extractProtocol=m,v.location=p,v.trimLeft=d,v.qs=i,e.exports=v},83:function(e,t,r){"use strict";var n=r(67294),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,a=n.useLayoutEffect,u=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return a(function(){i.value=r,i.getSnapshot=t,c(i)&&l({inst:i})},[e,r,t]),s(function(){return c(i)&&l({inst:i}),e(function(){c(i)&&l({inst:i})})},[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},37666:function(e,t,r){"use strict";var n=r(67294),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,s=n.useRef,a=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,l){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var f=o(e,(d=u(function(){function e(e){if(!a){if(a=!0,o=e,e=n(e),void 0!==l&&h.hasValue){var t=h.value;if(l(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var r=n(e);return void 0!==l&&l(t,r)?(o=e,t):(o=e,s=r)}var o,s,a=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,l]))[0],d[1]);return a(function(){h.hasValue=!0,h.value=f},[f]),c(f),f}},61688:function(e,t,r){"use strict";e.exports=r(83)}
63,31103:function(e,t,r){"use strict";e.exports=r(37666)},85839:function(e,t,r){"use strict";r.d(t,{xC:function(){return ek},oM:function(){return eN}});var n,i,o=Symbol.for("immer-nothing"),s=Symbol.for("immer-draftable"),a=Symbol.for("immer-state");function u(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var c=Object,l=c.getPrototypeOf,d="constructor",h="prototype",f="configurable",p="enumerable",y="writable",m="value",v=e=>!!e&&!!e[a];function g(e){return!!e&&(O(e)||k(e)||!!e[s]||!!e[d]?.[s]||x(e)||A(e))}var b=c[h][d].toString(),E=new WeakMap;function O(e){if(!e||!D(e))return!1;let t=l(e);if(null===t||t===c[h])return!0;let r=c.hasOwnProperty.call(t,d)&&t[d];if(r===Object)return!0;if(!R(r))return!1;let n=E.get(r);return void 0===n&&(n=Function.toString.call(r),E.set(r,n)),n===b}function _(e,t,r=!0){0===w(e)?(r?Reflect.ownKeys(e):c.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function w(e){let t=e[a];return t?t.type_:k(e)?1:x(e)?2:A(e)?3:0}var S=(e,t,r=w(e))=>2===r?e.has(t):c[h].hasOwnProperty.call(e,t),T=(e,t,r=w(e))=>2===r?e.get(t):e[t],C=(e,t,r,n=w(e))=>{2===n?e.set(t,r):3===n?e.add(r):e[t]=r},k=Array.isArray,x=e=>e instanceof Map,A=e=>e instanceof Set,D=e=>"object"==typeof e,R=e=>"function"==typeof e,N=e=>"boolean"==typeof e,I=e=>e.copy_||e.base_,P=e=>e.modified_?e.copy_:e.base_;function j(e,t){if(x(e))return new Map(e);if(A(e))return new Set(e);if(k(e))return Array[h].slice.call(e);let r=O(e);if(!0!==t&&("class_only"!==t||r)){let t=l(e);if(null!==t&&r)return{...e};let n=c.create(t);return c.assign(n,e)}{let t=c.getOwnPropertyDescriptors(e);delete t[a];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i];!1===o[y]&&(o[y]=!0,o[f]=!0),(o.get||o.set)&&(t[i]={[f]:!0,[y]:!0,[p]:o[p],[m]:e[i]})}return c.create(l(e),t)}}function F(e,t=!1){return M(e)||v(e)||!g(e)||(w(e)>1&&c.defineProperties(e,{set:L,add:L,clear:L,delete:L}),c.freeze(e),t&&_(e,(e,t)=>{F(t,!0)},!1)),e}var L={[m]:function(){u(2)}};function M(e){return!(null!==e&&D(e))||c.isFrozen(e)}var q="MapSet",U="Patches",V="ArrayMethods",B={};function K(e){let t=B[e];return t||u(0,e),t}var Q=e=>!!B[e],$=()=>i,z=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Q(q)?K(q):void 0,arrayMethodsPlugin_:Q(V)?K(V):void 0});function G(e,t){t&&(e.patchPlugin_=K(U),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function W(e){H(e),e.drafts_.forEach(Z),e.drafts_=null}function H(e){e===i&&(i=e.parent_)}var J=e=>i=z(i,e);function Z(e){let t=e[a];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Y(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(void 0!==e&&e!==r){r[a].modified_&&(W(t),u(4)),g(e)&&(e=X(t,e));let{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[a].base_,e,t)}else e=X(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&F(t,r)}(t,e,!0),W(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==o?e:void 0}function X(e,t){if(M(t))return t;let r=t[a];if(!r)return eo(t,e.handledSet_,e);if(!et(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:t}=r;if(t)for(;t.length>0;)t.pop()(e);ei(r,e)}return r.copy_}function ee(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var et=(e,t)=>e.scope_===t,er=[];function en(e,t,r,n){let i=I(e),o=e.type_;if(void 0!==n&&T(i,n,o)===t){C(i,n,r,o);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;_(i,(e,r)=>{if(v(r)){let n=t.get(r)||[];n.push(e),t.set(r,n)}})}for(let n of e.draftLocations_.get(t)??er)C(i,n,r,o)}function ei(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:r}=t;if(r){let n=r.getPath(e);n&&r.generatePatches_(e,n,t)}ee(e)}}function eo(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||v(e)||t.has(e)||!g(e)||M(e)||(t.add(e),_(e,(n,i)=>{if(v(i)){let t=i[a];et(t,r)&&(C(e,n,P(t),e.type_),ee(t))}else g(i)&&eo(i,t,r)})),e}var es={get(e,t){if(t===a)return e;if("constructor"===t||"__proto__"===t)return new Proxy(I(e)[t]||{},{get:(e,t)=>"__proto__"===t||"prototype"===t?Object.freeze(Object.create(null)):Reflect.get(e,t),set:()=>!0,apply:(e,t,r)=>Reflect.apply(e,t,r)});let r=e.scope_.arrayMethodsPlugin_,n=1===e.type_&&"string"==typeof t;if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let i=I(e);if(!S(i,t,e.type_))return function(e,t,r){let n=ec(t,r);return n?m in n?n[m]:n.get?.call(e.draft_):void 0}(e,i,t);let o=i[t];if(e.finalized_||!g(o)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&function(e){let t=+e;return Number.isInteger(t)&&String(t)===e}(t))return o;if(o===eu(e.base_,t)){ed(e);let r=1===e.type_?+t:t,n=eh(e.scope_,o,e,r);return e.copy_[r]=n}return o},has:(e,t)=>"constructor"!==t&&"__proto__"!==t&&"prototype"!==t&&t in I(e),ownKeys:e=>Reflect.ownKeys(I(e)),set(e,t,r){if("constructor"===t||"__proto__"===t||"prototype"===t)return!0;let n=ec(I(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=eu(I(e),t),i=n?.[a];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||S(e.base_,t,e.type_)))return!0;ed(e),el(e)}return!!(e.copy_[t]===r&&(void 0!==r||S(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||
63(e.copy_[t]=r,e.assigned_.set(t,!0),!function(e,t,r){let{scope_:n}=e;if(v(r)){let i=r[a];et(i,n)&&i.callbacks_.push(function(){ed(e),en(e,r,P(i),t)})}else g(r)&&e.callbacks_.push(function(){let i=I(e);3===e.type_?i.has(r)&&eo(r,n.handledSet_,n):T(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&eo(T(e.copy_,t,e.type_),n.handledSet_,n)})}(e,t,r),!0)},deleteProperty:(e,t)=>(ed(e),void 0!==eu(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),el(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=I(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{[y]:!0,[f]:1!==e.type_||"length"!==t,[p]:n[p],[m]:r[t]}:n},defineProperty(){u(11)},getPrototypeOf:e=>l(e.base_),setPrototypeOf(){u(12)}},ea={};for(let e in es){let t=es[e];ea[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function eu(e,t){let r=e[a];return(r?I(r):e)[t]}function ec(e,t){if(!(t in e))return;let r=l(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=l(r)}}function el(e){!e.modified_&&(e.modified_=!0,e.parent_&&el(e.parent_))}function ed(e){e.copy_||(e.assigned_=new Map,e.copy_=j(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function eh(e,t,r,n){let[i,o]=x(t)?K(q).proxyMap_(t,r):A(t)?K(q).proxySet_(t,r):function(e,t){let r=k(e),n={type_:r?1:0,scope_:t?t.scope_:$(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,o=es;r&&(i=[n],o=ea);let{revoke:s,proxy:a}=Proxy.revocable(i,o);return n.draft_=a,n.revoke_=s,[a,n]}(t,r);return(r?.scope_??$()).drafts_.push(i),o.callbacks_=r?.callbacks_??[],o.key_=n,r&&void 0!==n?function(e,t,r){e.callbacks_.push(function(n){if(!t||!et(t,n))return;n.mapSetPlugin_?.fixSetContents(t);let i=P(t);en(e,t.draft_??t,i,r),ei(t,n)})}(r,o,n):o.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:t}=e;o.modified_&&t&&t.generatePatches_(o,[],e)}),i}ea.deleteProperty=function(e,t){return ea.set.call(this,e,t,void 0)},ea.set=function(e,t,r){return es.set.call(this,e[0],t,r,e[0])};var ef=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{let n;if(R(e)&&!R(t)){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if(R(t)||u(6),void 0===r||R(r)||u(7),g(e)){let i=J(this),o=eh(i,e,void 0),s=!0;try{n=t(o),s=!1}finally{s?W(i):H(i)}return G(i,r),Y(n,i)}if(e&&D(e))u(1,e);else{if(void 0===(n=t(e))&&(n=e),n===o&&(n=void 0),this.autoFreeze_&&F(n,!0),r){let t=[],i=[];K(U).generateReplacementPatches_(e,n,{patches_:t,inversePatches_:i}),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return R(e)?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},N(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),N(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),N(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;g(e)||u(8),v(e)&&(v(t=e)||u(10,t),e=function e(t){let r;if(!g(t)||M(t))return t;let n=t[a],i=!0;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=j(t,n.scope_.immer_.useStrictShallowCopy_),i=n.scope_.immer_.shouldUseStrictIteration()}else r=j(t,!0);return _(r,(t,n)=>{C(r,t,e(n))},i),n&&(n.finalized_=!1),r}(t));let r=J(this),n=eh(r,e,void 0);return n[a].isManual_=!0,H(r),n}finishDraft(e,t){let r=e&&e[a];r&&r.isManual_||u(9);let{scope_:n}=r;return G(n,t),Y(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=K(U).applyPatches_;return v(e)?n(e,t):this.produce(e,e=>n(e,t))}}().produce,ep=r(65849);function ey(e){return({dispatch:t,getState:r})=>n=>i=>"function"==typeof i?i(t,r,e):n(i)}var em=ey();r(83454);var ev="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?ep.qC:ep.qC.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function eg(e,t){function r(...n){if(t){let r=t(...n);if(!r)throw Error(eV(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>(0,ep.LG)(t)&&t.type===e,r}var eb=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function eE(e){return g(e)?ef(e,()=>{}):e}function eO(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var e_=()=>function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=e??{},o=new eb;return t&&("boolean"==typeof t?o.push(em):o.push(ey(t.extraArgument))),o},ew=e=>t=>{setTimeout(t,e)},eS=(e,t)=>r=>{let n=!1,i=()=>
63{n||(n=!0,cancelAnimationFrame(o),clearTimeout(s),r())},o=e(i),s=setTimeout(i,t)},eT=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,o=!1,s=!1,a=new Set,u="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?eS(window.requestAnimationFrame,100):ew(10):"callback"===e.type?e.queueNotification:ew(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){let t=n.subscribe(()=>i&&e());return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){try{return(o=!(i=!e?.meta?.RTK_autoBatch))&&!s&&(s=!0,u(c)),n.dispatch(e)}finally{i=!0}}})},eC=e=>function(t){let{autoBatch:r=!0}=t??{},n=new eb(e);return r&&n.push(eT("object"==typeof r?r:void 0)),n};function ek(e){let t,r;let n=e_(),{reducer:i,middleware:o,devTools:s=!0,duplicateMiddlewareCheck:a=!0,preloadedState:u,enhancers:c}=e||{};if("function"==typeof i)t=i;else if((0,ep.PO)(i))t=(0,ep.UY)(i);else throw Error(eV(1));r="function"==typeof o?o(n):n();let l=ep.qC;s&&(l=ev({trace:!1,..."object"==typeof s&&s}));let d=eC((0,ep.md)(...r)),h=l(..."function"==typeof c?c(d):d());return(0,ep.MT)(t,u,h)}function ex(e){let t;let r={},n=[],i={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(eV(28));if(n in r)throw Error(eV(29));return r[n]=t,i},addAsyncThunk:(e,t)=>(t.pending&&(r[e.pending.type]=t.pending),t.rejected&&(r[e.rejected.type]=t.rejected),t.fulfilled&&(r[e.fulfilled.type]=t.fulfilled),t.settled&&n.push({matcher:e.settled,reducer:t.settled}),i),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(t=e,i)};return e(i),[r,n,t]}var eA=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},eD=Symbol.for("rtk-slice-createasyncthunk"),eR=((n=eR||{}).reducer="reducer",n.reducerWithPrepare="reducerWithPrepare",n.asyncThunk="asyncThunk",n),eN=function({creators:e}={}){let t=e?.asyncThunk?.[eD];return function(e){let r;let{name:n,reducerPath:i=n}=e;if(!n)throw Error(eV(11));let o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},s=Object.keys(o),a={},u={},c={},l=[],d={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(eV(12));if(r in u)throw Error(eV(13));return u[r]=t,d},addMatcher:(e,t)=>(l.push({matcher:e,reducer:t}),d),exposeAction:(e,t)=>(c[e]=t,d),exposeCaseReducer:(e,t)=>(a[e]=t,d)};function h(){let[t={},r=[],n]="function"==typeof e.extraReducers?ex(e.extraReducers):[e.extraReducers],i={...t,...u};return function(e,t){let r;let[n,i,o]=ex(t);if("function"==typeof e)r=()=>eE(e());else{let t=eE(e);r=()=>t}function s(e=r(),t){let s=[n[t.type],...i.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===s.filter(e=>!!e).length&&(s=[o]),s.reduce((e,r)=>{if(r){if(v(e)){let n=r(e,t);return void 0===n?e:n}if(g(e))return ef(e,e=>r(e,t));{let n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}}return e},e)}return s.getInitialState=r,s}(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of l)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}s.forEach(r=>{let i=o[r],s={reducerName:r,type:`${n}/${r}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===i._reducerDefinitionType?function({type:e,reducerName:t},r,n,i){if(!i)throw Error(eV(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:u,settled:c,options:l}=r,d=i(e,o,l);n.exposeAction(t,d),s&&n.addCase(d.fulfilled,s),a&&n.addCase(d.pending,a),u&&n.addCase(d.rejected,u),c&&n.addMatcher(d.settled,c),n.exposeCaseReducer(t,{fulfilled:s||eI,pending:a||eI,rejected:u||eI,settled:c||eI})}(s,i,d,t):function({type:e,reducerName:t,createNotation:r},n,i){let o,s;if("reducer"in n){if(r&&"reducerWithPrepare"!==n._reducerDefinitionType)throw Error(eV(17));o=n.reducer,s=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?eg(e,s):eg(e))}(s,i,d)});let f=e=>e,p=new Map,y=new WeakMap;function m(e,t){return r||(r=h()),r(e,t)}function b(){return r||(r=h()),r.getInitialState()}function E(t,r=!1){function n(e){let i=e[t];return void 0===i&&r&&(i=eO(y,n,b)),i}function i(t=f){let n=eO(p,r,()=>new WeakMap);return eO(n,t,()=>{let n={};for(let[i,o]of Object.entries(e.selectors??{}))n[i]=function(e,t,r,n){function i(o,...s){let a=t(o);
63return void 0===a&&n&&(a=r()),e(a,...s)}return i.unwrapped=e,i}(o,t,()=>eO(y,t,b),r);return n})}return{reducerPath:t,getSelectors:i,get selectors(){return i(n)},selectSlice:n}}let O={name:n,reducer:m,actions:c,caseReducers:a,getInitialState:b,...E(i),injectInto(e,{reducerPath:t,...r}={}){let n=t??i;return e.inject({reducerPath:n,reducer:m},r),{...O,...E(n,!0)}}};return O}}();function eI(){}var eP=(e,t)=>{if("function"!=typeof e)throw TypeError(eV(32))},{assign:ej}=Object,eF="listenerMiddleware",eL=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:o}=e;if(t)i=eg(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(i);else throw Error(eV(21));return eP(o,"options.listener"),{predicate:i,type:t,effect:o}},eM=ej(e=>{let{type:t,predicate:r,effect:n}=eL(e);return{id:eA(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(eV(22))}}},{withTypes:()=>eM}),eq=ej(eg(`${eF}/add`),{withTypes:()=>eq}),eU=ej(eg(`${eF}/remove`),{withTypes:()=>eU});function eV(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},64351:function(e,t,r){"use strict";r.d(t,{wA:function(){return tm},sY:function(){return eh},Jp:function(){return ty},cd:function(){return tp},v4:function(){return th},hj:function(){return eM},Xq:function(){return tf},he:function(){return td}});var n,i=r(53143),o=r(67294),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},a=null,u=null;function c(e){return 0==Object.keys(e).length?o.createElement(o.Fragment,null):u&&!e._dynamic?function(e){let{componentName:t,clientFallback:r}=e,n=s(e,["componentName","clientFallback"]),c=null===(f=(0,i.Xr)(t))||void 0===f?void 0:f.component,d=o.useMemo(()=>o.createElement(l,Object.assign({},n,{componentName:t})),[]),h=o.useMemo(()=>u(()=>Promise.resolve(a),{ssr:!1,loading:()=>d}),[]);var f,p="undefined"==typeof window?JSON.parse(JSON.stringify(n)):n;return o.createElement(h,Object.assign({},p,{componentName:t,fallbackWrapper:!c,fallback:c?d:r?o.createElement(u(()=>Promise.resolve(()=>r),{ssr:!1})):e.fallback}))}(Object.assign({_dynamic:!0},e)):l(e)}function l(e){let{componentName:t,fallback:r,fallbackWrapper:n}=e,s=(0,i.Xr)(t),a=null==s?void 0:s.component,{attributes:u,properties:c,merged:l}=(0,i.zB)(e);if(!a&&r||!t)return!1===n?o.createElement(o.Fragment,null,r):o.createElement("feaas-external",Object.assign({},u,{hydrate:"false"}),r);if(s&&a&&(0,i.Rj)(a)){let e="byoc-"+(0,i.mA)(s.id);return o.createElement(e,Object.assign(Object.assign({},u),{ref:t=>{var r;t&&"undefined"!=typeof window&&(null===(r=window.customElements)||void 0===r||r.whenDefined(e).then(()=>{var e;null===(e=t.sitecoreContextCallback)||void 0===e||e.call(t,Object.assign({},l))}))}}))}return o.createElement(o.Fragment,null,o.createElement("feaas-external",Object.assign({},u,{hydrate:"false"}),null==a?null:o.createElement(a,Object.assign({},l))))}var d=r(73935),h=Object.defineProperty,f=(e,t)=>{for(var r in t)h(e,r,{get:t[r],enumerable:!0})},p={};f(p,{renderDOMContent:()=>ei,renderDOMElement:()=>er,renderHTMLContent:()=>eo,setDOMAttribute:()=>ee});var y={};function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function g(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 b(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _(){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 w(e,t,r){return(w=_()?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&&O(i,r.prototype),i}).apply(null,arguments)}function S(e){var t="function"==typeof Map?new Map:void 0;return(S=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 w(e,arguments,E(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),O(r,e)})(e)}function T(e,t){if(e){if("string"==typeof e)return C(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 C(e,t)}}function C(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}f(y,{JSONPath:()=>R,queryObject:()=>j,queryObjectRaw:()=>P,queryScopes:()=>F,serializeCH1RichText:()=>M});var k=Object.prototype.hasOwnProperty;function x(e,t){return(e=e.slice()).push(t),e}function A(e,t){return(t=t.slice()).unshift(e),t}var D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(n,e);var t,r=(t=_(),function(){var e,r=E(n);return e=t?Reflect.construct(r,arguments,E(this).constructor):r.apply(this,arguments),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function n(e){var t;return v(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 b(n)}(S(Error));function R(e,t,r,n,i){if(!(this instanceof R))try{return new R(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"===m(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=!k.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 s={path:o?e.path:t};o?"json"in e&&(s.json=e.json):s.json=r;var a=this.evaluate(s);if(!a||"object"!==m(a))throw new D(a);return a}}R.prototype.evaluate=function(e,t,r,n){var i=this,o=this.parent,s=this.parentProperty,a=this.flatten,u=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"===m(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(!k.call(e,"json"))throw TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');t=e.json,a=k.call(e,"flatten")?e.flatten:a,this.currResultType=k.call(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=k.call(e,"sandbox")?e.sandbox:this.currSandbox,u=k.call(e,"wrap")?e.wrap:u,this.currPreventEval=k.call(e,"preventEval")?e.preventEval:this.currPreventEval,r=k.call(e,"callback")?e.callback:r,this.currOtherTypeCallback=k.call(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,o=k.call(e,"parent")?e.parent:o,s=k.call(e,"parentProperty")?e.parentProperty:s,e=e.path}if(o=o||null,s=s||null,Array.isArray(e)&&(e=R.toPathString(e)),!(!e&&""!==e||!t)){var c=R.toPathArray(e);"$"===c[0]&&c.length>1&&c.shift(),this._hasParentSelector=null;var l=this._trace(c,t,["$"],o,s,r).filter(function(e){return e&&!e.isParentSelector});return l.length?u||1!==l.length||l[0].hasArrExpr?l.reduce(function(e,t){var r=i._getPreferredOutput(t);return a&&Array.isArray(r)?e=e.concat(r):e.push(r),e},[]):this._getPreferredOutput(l[0]):u?[]:void 0}},R.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":var r=Array.isArray(e.path)?e.path:R.toPathArray(e.path);
63return e.pointer=R.toPointer(r),e.path="string"==typeof e.path?e.path:R.toPathString(e.path),e;case"value":case"parent":case"parentProperty":return e[t];case"path":return R.toPathString(e[t]);case"pointer":return R.toPointer(e.path);default:throw TypeError("Unknown result type")}},R.prototype._handleCallback=function(e,t,r){if(t){var n=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:R.toPathString(e.path),t(n,r,e)}},R.prototype._trace=function(e,t,r,n,i,o,s,a){var u,c=this;if(!e.length)return u={path:r,value:t,parent:n,parentProperty:i,hasArrExpr:s},this._handleCallback(u,o,"value"),u;var l=e[0],d=e.slice(1),h=[];function f(e){Array.isArray(e)?e.forEach(function(e){h.push(e)}):h.push(e)}if(("string"!=typeof l||a)&&t&&k.call(t,l))f(this._trace(d,t[l],x(r,l),t,l,o,s));else if("*"===l)this._walk(t,function(e){f(c._trace(d,t[e],x(r,e),t,e,o,!0,!0))});else if(".."===l)f(this._trace(d,t,r,n,i,o,s)),this._walk(t,function(n){"object"===m(t[n])&&f(c._trace(e.slice(),t[n],x(r,n),t,n,o,!0))});else{if("^"===l)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:d,isParentSelector:!0};if("~"===l)return u={path:x(r,l),value:i,parent:n,parentProperty:null},this._handleCallback(u,o,"property"),u;if("$"===l)f(this._trace(d,t,r,null,null,o,s));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(l))f(this._slice(l,d,t,r,n,i,o));else if(0===l.indexOf("?(")){if(this.currPreventEval)throw Error("Eval [?(expr)] prevented in JSONPath expression.");var p=l.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){c._eval(p,t[e],e,r,n,i)&&f(c._trace(d,t[e],x(r,e),t,e,o,!0))})}else if("("===l[0]){if(this.currPreventEval)throw Error("Eval [(expr)] prevented in JSONPath expression.");f(this._trace(A(this._eval(l,t,r[r.length-1],r.slice(0,-1),n,i),d),t,r,n,i,o,s))}else if("@"===l[0]){var y=!1,v=l.slice(1,-2);switch(v){case"scalar":t&&["object","function"].includes(m(t))||(y=!0);break;case"boolean":case"string":case"undefined":case"function":m(t)===v&&(y=!0);break;case"integer":Number.isFinite(t)&&!(t%1)&&(y=!0);break;case"number":Number.isFinite(t)&&(y=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(y=!0);break;case"object":t&&m(t)===v&&(y=!0);break;case"array":Array.isArray(t)&&(y=!0);break;case"other":y=this.currOtherTypeCallback(t,r,n,i);break;case"null":null===t&&(y=!0);break;default:throw TypeError("Unknown value type "+v)}if(y)return u={path:r,value:t,parent:n,parentProperty:i},this._handleCallback(u,o,"value"),u}else if("`"===l[0]&&t&&k.call(t,l.slice(1))){var g=l.slice(1);f(this._trace(d,t[g],x(r,g),t,g,o,s,!0))}else if(l.includes(",")){var b,E=function(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=T(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.
64In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}(l.split(","));try{for(E.s();!(b=E.n()).done;){var O=b.value;f(this._trace(A(O,d),t,r,n,i,o,!0))}}catch(e){E.e(e)}finally{E.f()}}else!a&&t&&k.call(t,l)&&f(this._trace(d,t[l],x(r,l),t,l,o,s,!0))}if(this._hasParentSelector)for(var _=0;_<h.length;_++){var w=h[_];if(w&&w.isParentSelector){var S=this._trace(w.expr,t,w.path,n,i,o,s);if(Array.isArray(S)){h[_]=S[0];for(var C=S.length,D=1;D<C;D++)_++,h.splice(_,0,S[D])}else h[_]=S}}return h},R.prototype._walk=function(e,t){if(Array.isArray(e))for(var r=e.length,n=0;n<r;n++)t(n);else e&&"object"===m(e)&&Object.keys(e).forEach(function(e){t(e)})},R.prototype._slice=function(e,t,r,n,i,o,s){if(Array.isArray(r)){var a=r.length,u=e.split(":"),c=u[2]&&Number.parseInt(u[2])||1,l=u[0]&&Number.parseInt(u[0])||0,d=u[1]&&Number.parseInt(u[1])||a;l=l<0?Math.max(0,l+a):Math.min(a,l),d=d<0?Math.max(0,d+a):Math.min(a,d);for(var h=[],f=l;f<d;
64f+=c)this._trace(A(f,t),r,n,i,o,s,!0).forEach(function(e){h.push(e)});return h}},R.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 s=e.includes("@path");s&&(this.currSandbox._$_path=R.toPathString(n.concat([r])));var a="script:"+e;if(!R.cache[a]){var u=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");s&&(u=u.replace(/@path/g,"_$_path")),R.cache[a]=new this.vm.Script(u)}try{return R.cache[a].runInNewContext(this.currSandbox)}catch(t){throw Error("jsonPath: "+t.message+": "+e)}},R.cache={},R.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},R.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},R.toPathArray=function(e){var t=R.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 N=function(e,t,r){for(var n=e.length,i=0;i<n;i++)r(e[i])&&t.push(e.splice(i--,1)[0])},I=function(){function e(t){v(this,e),this.code=t}return b(e,[{key:"runInNewContext",value:function(e){var t=this.code,r=Object.keys(e),n=[];N(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(";"),s=o>-1?t.slice(0,o+1)+" return "+t.slice(o+1):" return "+t;return w(Function,r.concat([s])).apply(void 0,function(e){if(Array.isArray(e))return C(e)}(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||T(i)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance.
65In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())}}]),e}();function P(e,t){try{return R({path:t,json:e})}catch(e){return[]}}function j(e,t,r=!0){let n=P(e,t)||[];return r?n.flat(1/0):n}function F(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 s=j(n,o,i);return 0==s.length&&(s=[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)=>e.length>0?e:j(n,t,i),[])),r?s[0]:s}function L(e,t={},r){return r?`<${r}${Object.entries(t).map(([e,t])=>null!=t&&` ${e}="${t}
65"`).filter(Boolean).join("")}>${M(e)}</${r}>`.replace(/^<([a-z0-9][^>]*)><\/[^>]+>$/,"<$1 />"):M(e)}function M(e){var t;if(Array.isArray(e))return e.map(M).join(`
66`).trim();if("string"==typeof e)return e;if(null==e)return"";switch(e.type){case"heading":let{level:r,...n}=e.attrs;return L(e.content,n,"h"+r);case"text":return(e.marks||[]).reduce((e,t)=>L(e,t.attrs,{link:"a",bold:"strong",italic:"em",strike:"s",underline:"u"}[t.type]),null===(t=e.text)||void 0===t?void 0:t.replace(/\s+/," "));default:return L(e.content||e.text,e.attrs,{bulletList:"ul",orderedList:"ol",listItem:"li",horizontalRule:"hr",paragraph:"p",codeBlock:"code",blockquote:"blockquote"}[e.type])}}function q(e){let t=new e.ownerDocument.defaultView.MutationObserver(e=>{e.forEach(e=>{let t=e.target,r=t.getAttribute("data-embed-src");r&&V(t,r),e.addedNodes&&e.addedNodes.forEach(e=>{1==e.nodeType&&U(e,!1)})})});return t.observe(e,{attributes:!0,subtree:!0,childList:!0}),t}function U(e,t=!0){let r=e.querySelectorAll("[data-embed-src]");for(var n=0;n<r.length;n++){let e=r[n];V(e,e.getAttribute("data-embed-src"))}if(t)return q(e)}function V(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}}R.prototype.vm={Script:I};var B={};f(B,{adjustNumbers:()=>W,cleanCollectionBit:()=>z,getHumanizedLabel:()=>H,getLastPathBit:()=>J,getQualifier:()=>$,normalizeCollectionScope:()=>G,parseLimit:()=>K,parseRange:()=>Q});var K=e=>{var t;let r=parseInt(null===(t=null==e?void 0:e.match(/\[0:(\d+)\]/))||void 0===t?void 0:t[1],10);return!isNaN(r)&&r>0?String(r):null},Q=e=>{var t;let r=null===(t=null==e?void 0:e.match(/\[([^\]]+)\]/))||void 0===t?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},$=e=>{var t;return null===(t=null==e?void 0:e.match(/(\.\*|\[[^\]]*\])$/))||void 0===t?void 0:t[0]};function z(e){return e.replace(/(\.?\[[^\]\[]*\]|\.\*)$/g,"")}function G(e){return z(e)+".*"}function W(e,t){return null==e?void 0:e.replace(/(.|^)(\d+)/g,(e,r,n)=>r+(":"==r?n:String(parseInt(n)+t)))}function H(e,t=2){var r=z(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 J(e){return z(e).split(".").pop()}var Z=["January","February","March","April","May","June","July","August","September","October","November","December"],Y=e=>{if(!e||"function"!=typeof e.getDay)return;let t=e.getFullYear(),r=Z[e.getMonth()],n=e.getDate();return`${r} ${n}, ${t}`};function X(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 ee(e,t,r,n){if(e){var i,o,s,a=e;(null==r?void 0:r.type)=="doc"&&Array.isArray(r.content)&&(r=M(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;a="img"==e.localName?e:t.querySelector("img, video")}else if("data-path-href"==t)a=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)V(e,r);else if("data-path-attributes"==t){if(!Array.isArray(r)){let t=(null===(i=e.getAttribute("data-attributes-keys"))||void 0===i?void 0:i.split(",").filter(Boolean))||[];if(!Array.isArray(r))for(var c in r){var l=r[c];ee(e,c,"object"==typeof l&&l?JSON.stringify(l):l,n)}for(var d=0;d<t.length;d++)null!=r&&t[d]in r||ee(e,t[d],null,n);ee(e,"data-attributes-keys",Object.keys(r||{}).join(","))}if("FEAAS-EXTERNAL"==e.tagName){let t=String(e.getAttribute("data-path-attributes")||"").slice(0,-1).split(".")[0]||"_";ee(e,"datasources",JSON.stringify({[t]:r}))}return}if("boolean"==typeof r&&(r=r?"":null),a){if(("innerHTML"==u||"src"==u)&&(null==r||""===r)){var h=String(null!==(s=null!==(o=e.getAttribute("data-path-placeholder")||a[u])&&void 0!==o?o:a.getAttribute(u))&&void 0!==s?s:"");"innerHTML"==u?a.innerHTML=h:h?a.setAttribute(u,h):a.removeAttribute(u)}else if(null!=r){if("innerHTML"==u){for(var f,p=String(r),y=a;y.parentElement&&y.localName.match(/^(a|var|strong|em|i|b)$/);)y=y.parentElement;y.localName.match(/p|h\d|button|time|li/)&&(p=p.replace(/<(p|h\d|li|ul)[^>]*?>|<\/(p|h\d|li|ul)[^>]*?>/g," ").trim().replace(/\s+/g," ")),String(y.getAttribute("class")).includes("-inline--time")&&"Invalid Date"!==String(new Date(f=p))&&!isNaN(Number(new Date(f)))&&(p=Y(new Date(p))),a.innerHTML!=p&&(a.innerHTML=p)}else a.getAttribute(u)!=r&&a.setAttribute(u,r)}else a.removeAttribute(u)}}}
66var et=["data-attributes-keys","data-path-attributes","data-path-scope"];function er(e,t,r,n){if(n||(t=(null===(o=null==r?void 0:r.processData)||void 0===o?void 0:o.call(r,e,t))||t),1==e.nodeType){let n=e.getAttribute("data-path-scope");if(n){let i=X(e),o=F(t,n,!1);0==i&&function(e,t,r){let n=e.getAttribute("data-path-scope");if(null==n)return;var i=X(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 s=i+1,a=e,u=e;u=u.nextElementSibling;)u.getAttribute("data-path-scope")==n&&(s++,a=u);for(var c=s;c<t;c++)o.insertBefore(a.cloneNode(!0),a.nextElementSibling);for(var c=Math.max(1,t);c<s;c++)a=a.previousElementSibling,o.removeChild(a.nextElementSibling)}}(e,(null===(s=null==r?void 0:r.shouldRepeat)||void 0===s?void 0:s.call(r,e,o))===!1?1:o.length,0),t={...t,[G(n)]:o[i]}}let o=Array.prototype.slice.call(e.attributes).sort((e,t)=>et.indexOf(e.name)-et.indexOf(t.name));for(var i=0;i<o.length;i++){let{name:n,value:s}=o[i];n.startsWith("data-path")&&"data-path-scope"!=n&&ee(e,n,F(t,s,!0,void 0,"FEAAS-EXTERNAL"!=e.tagName),r),"data-embed-src"==n&&ee(e,n,e.getAttribute(n),r)}}for(var o,s,a,u,i=0;u=e.childNodes[i++];)en(u)&&er(u,t,r,!0);return n||null===(a=null==r?void 0:r.onRender)||void 0===a||a.call(r,e,t),e}function en(e){return 1==e.nodeType}function ei(e,t,r,n){let i=(null===(o=null==n?void 0:n.processTemplate)||void 0===o?void 0:o.call(n,e,t,r))||t;if(e.innerHTML=i,e.classList.add("-feaas"),(e.closest(".component.feaas")||e).className.includes("-theme--"))for(var o,s,a=0;s=e.childNodes[a++];)en(s)&&(s.className=s.className.replace(/(\s|^)-theme--[^\s]+\s*/g,"$1"));return er(e,r,n)}function eo(e,t,r,n=!1){var i;let o=(null===(i=null==r?void 0:r.processTemplate)||void 0===i?void 0:i.call(r,null,e,t))||e;if("undefined"==typeof document||n)return er(eu(o)[0],t,r).outerHTML;{let e=document.createElement("div");return e.innerHTML=o,er(e,t,r),e.innerHTML}}var es=class{constructor(e,t=1,r){this.ownerDocument={createElement:e=>new es(e),createDocumentFragment:()=>new es(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?void 0:e.toUpperCase()}get localName(){var e;return null===(e=this.nodeName)||void 0===e?void 0:e.toLowerCase()}get innerHTML(){return ec(this.childNodes)}set innerHTML(e){this.childNodes=eu(String(null!=e?e:""))}get outerHTML(){return ec([this])}get children(){return this.childNodes.filter(e=>1==e.nodeType)}closest(e){let t=this;for(;t;){if(ea(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(ea(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 es(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?void 0:e.nodeType)==1?this.parentNode:null}};function ea(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);
66if(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 eu(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(),s=(null===(t=(i[2]||"").match(/([\w-]+)(="([^"]*)")?/g))||void 0===t?void 0:t.map(e=>{let[t,r,,n]=e.match(/([\w-]+)(="([^"]*)")?/);return{name:r,value:(n||"").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#x27;/g,"'")}}))||[],a=new es(o,1);if(a.attributes=s,n.length>0){let e=n[n.length-1];e.childNodes.push(a),a.parentNode=e}else r.push(a);["img","input","br"].includes(o)||n.push(a),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 es("#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 ec(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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}"`).join(""),i=ec(e.childNodes);return["img","input","br"].includes(t)?`<${t}${n} />`:`<${t}${n}>${i}</${t}>`}).join("")}var el=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 ed(e){let{url:t,headers:r,params:n,method:i,body:o}=eh(e),s,a=r["Content-Type"];"GET"!=i&&"HEAD"!=i&&("application/json"===a&&(s=JSON.stringify(o)),"multipart/form-data"===a&&(s=Object.keys(o).reduce((e,t)=>(e.append(t,o[t]),e),new FormData)),"application/x-www-form-urlencoded"===a&&(s=new URLSearchParams(o)));let u=Object.keys(n).length?`?${new URLSearchParams(n)}`:"";return[`${t}${u}`,{headers:r,body:s,method:i}]}function eh(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 ef=async(e,t)=>{let r=(0,i.t$)(t,e);if(r instanceof Promise)return r;let n=e;r&&(n=eh(r));try{let[e,t]=ed(n),r=await (await eh.fetchImplementation(e,{...t,method:t.method.toLowerCase()})).json();return n.jsonpath&&"$"!=n.jsonpath?j(r,n.jsonpath):r}catch(e){return{}}};async function ep(e){if(!e)return e;if(el(e))return ef(e);let t=Object.keys(e),r=await Promise.all(t.map(t=>el(e[t])?ef(e[t],t):null).filter(Boolean));return t.reduce((t,n)=>({...t,[n]:el(e[n])?r.shift():e[n]}),{})}eh.clean=function(e){let{params:t,method:r,headers:n,body:i,url:o}=eh(e);var s={url:o},a={...n};return"application/json"===n["Content-Type"]&&delete a["Content-Type"],"application/json"===n.Accept&&delete a.Accept,Object.keys(a).length>0&&(s.headers=a),"GET"!==r&&(s.method=r),"GET"===r||"HEAD"===r||0===Object.keys(i).length||(s.body=i),Object.keys(t).length>0&&(s={...s,params:t}),s},eh.toFetchArguments=ed,eh.fetchOne=ef,eh.fetch=ep,eh.isDataSettings=el,eh.hasDataSettings=function(e){return!!e&&(el(e)||Object.values(e).some(el))},eh.fetchImplementation=(...e)=>fetch(...e);var ey={};function em(e,t=e=>{}){var r;let n=()=>{var i,o,s=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=s,s.catch(t),s};return n()}f(ey,{Component:()=>eZ,ComponentProps:()=>eJ,Context:()=>ts,ControlledPromise:()=>em,DEFAULT_CDN_URL:()=>eD,DOM:()=>p,DataPath:()=>B,DataScope:()=>y,DataSettings:()=>eh,Element:()=>eg,FEAASComponent:()=>eZ,FEAASComponentsProps:()=>eJ,FEAASContext:()=>ts,FEAASContextProps:()=>to,FEAASEditor:()=>tr,FEAASEditorProps:()=>tt,FEAASElement:()=>eg,FEAASLoader:()=>eX,FEAASLoaderProps:()=>eY,FEAASPicker:()=>ti,FEAASPickerProps:()=>tn,FEAASStylesheet:()=>e1,FEAASStylesheetProps:()=>e0,InvalidResponse:()=>ek,JSONPath:()=>R,Loader:()=>eX,MyComponent:()=>eE,Picker:()=>ti,Stylesheet:()=>e1,Thumbnail:()=>e2,WebComponent:()=>ev,adjustNumbers:()=>W,autoloadScripts:()=>U,cleanCollectionBit:()=>z,clearFetchCache:()=>ew,createStylesheet:()=>ez,customizeDataSettings:()=>i.t$,fetchAndRevalidate:()=>eS,fetchAndRevalidateComponent:()=>eL,fetchAndRevalidateStylesheet:()=>eq,fetchBypassingCache:()=>eA,fetchCache:()=>e_,fetchComponent:()=>eM,fetchData:()=>ep,fetchToValidateCache:()=>ex,fetchWithCacheAwareness:()=>eT,findStylesheet:()=>e$,getComponent:()=>i.Xr,getComponentSource:()=>eN,getComponentURL:()=>ej,getFetchCache:()=>eC,getFramePosition:()=>te,getHumanizedLabel:()=>H,getLastPathBit:()=>J,getQualifier:()=>$,getStylesheetSource:()=>eI,getStylesheetURL:()=>eF,loadScript:()=>V,loadStylesheet:()=>
66eK,loadStylesheetAllowStale:()=>eQ,normalizeCollectionScope:()=>G,observeDOMElement:()=>q,parseComponentSource:()=>eR,parseLimit:()=>K,parseRange:()=>Q,parseStylesheetSource:()=>eP,queryObject:()=>j,queryObjectRaw:()=>P,queryScopes:()=>F,registerComponent:()=>i.RM,registerDatasource:()=>i.VQ,renderComponent:()=>eW,renderComponentElement:()=>eG,renderComponentPromise:()=>eH,renderDOMContent:()=>ei,renderDOMElement:()=>er,renderHTMLContent:()=>eo,renderStylesheet:()=>eU,renderStylesheetPromise:()=>eV,serializeCH1RichText:()=>M,setDOMAttribute:()=>ee});var ev="undefined"==typeof HTMLElement?"undefined"!=typeof windowJSDOM?windowJSDOM.HTMLElement:class{}:HTMLElement,eg=class extends ev{getProps(e){return{}}constructor(){super(),this.defaultProps={},this.connected=!1,this.refs={},this.descendants=[],this.whenLoaded=em(e=>{this.payload=e}),this.whenRendered=em(()=>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?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(Boolean)}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?void 0:e.ReactDOM)||void 0===t?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`);
66if(!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)||void 0===e||e.call(this):null===(r=null===(t=this.refs.topReact)||void 0===t?void 0:t.forceUpdateReact)||void 0===r||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],s=e?JSON.stringify(o):String(o),a=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),u=this.getAttribute(a);try{var r=e?JSON.stringify(JSON.parse(u)):u}catch(e){var r=null}null==n||i===s?this.removeAttribute(a):("string"==typeof n||"number"==typeof n||"boolean"==typeof n||e)&&r!=i&&this.setAttribute(a,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)}},eb=class extends eg{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)}},eE=class extends eb{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))}};eE.observedAttributes=["counter"];var eO=["initial","check","updated"],e_={};function ew(){e_={}}async function eS(e,t,r,n,i=e_){return eT({url:e,options:t,validator:r,callback:n,cache:i}
66).then(ex).then(e=>e.response)}async function eT({url:e,options:t,validator:r,callback:n,cache:i},o="initial"){let s=new Date;if(null!=i){var a=eC(e);if(eO.indexOf(a.phase)>=eO.indexOf(o))var u=a[o];else a.phase=o}let c=await (u||fetch(e,t));if(!u&&a&&(c.ok?a[o].resolve(c):a[o].reject(Error("Fetch failed"))),!c.ok)throw Error("Fetch failed");let l=new Date(c.headers.get("date"))<s||u&&"initial"==o&&("updated"==a.phase||"check"==a.phase);if((null==r?void 0:r(c,l))===!1)throw new ek("Response is not valid");return await (null==n?void 0:n(c,o,l)),{url:e,options:t,isCached:l,response:c,validator:r,callback:n,cache:i}}function eC(e,t=!1){let r=String(e).replace("?head","");var n=e_[r];return n||t||(n=e_[r]={phase:null,initial:em(),check:em(),updated:em(),final:em()}),n}var ek=class extends Error{};async function ex(e){let{url:t,isCached:r,options:n,validator:i,response:o,cache:s}=e;if(r){let{response:r}=await eT({url:t+(t.toString().includes("?")?"&":"?")+"head",options:{...n,method:"HEAD",cache:"no-cache"},validator:i,cache:s},"check");if(r.headers.get("last-modified")!=o.headers.get("last-modified"))return eA(e)}return e}async function eA(e){return eT({...e,options:{...e.options,cache:"reload"}},"updated")}var eD="https://feaas.blob.core.windows.net";function eR(e){let t=null==e?void 0:e.match(/^(?:(.*?)\/components)?\/?([^\/]+)\/([^\/]+)(?:\/([^\/]+)(?:\/(published|staged|saved|\d+)(?:\.html?)?)?)?$/);if(t){var[,r,n,i,o,s]=t;return{cdn:r,library:n,component:i,version:o,revision:s}}}function eN(e){if(!e||!e.library||!e.component)throw Error("Component requires `library` and `component` properties");return`${e.cdn&&e.cdn!=eD?`${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 eI(e){return`${e.cdn&&e.cdn!=eD?`${e.cdn}/styles/`:""}${e.library}/${e.revision&&"published"!=e.revision?e.revision:""}`.replace(/\/$|\/\/(?!.+\/styles\/)/g,"")}function eP(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=eR(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 ej(e){return"string"==typeof e&&(e={src:e}),e="src"in e&&e.src?{...eR(e.src)}:{...e},`${e.cdn||e.hostname||eD}/components/${e.library}/${e.component}/${e.version||"responsive"}/${e.revision||"published"}.html`}function eF(e){if("string"==typeof e&&(e={src:e}),"src"in e){if(String(e.src).includes("v1/files/components/styles"))return e.src;e={...eP(e.src)}}else e={...e};return`${e.cdn||e.hostname||eD}/styles/${e.library}/${"staged"==e.revision?"staged":"saved"==e.revision?"saved":"published"}.css`}async function eL(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&&eT({options:{headers:{Accept:"text/html"},credentials:"omit"},url:ej({...e,version:e.instance}),validator:n}).catch(e=>e),eT({url:ej(e),validator:n}).catch(e=>e)]),s=o.find(e=>e&&"isCached"in e&&e);if(!s||s instanceof Error)throw o.find(e=>e&&e instanceof Error)||Error("Can not fetch component");return o[0]==s&&console.log("Using fork!",o),await i(s.response),r?s:ex({...s,callback:i}).catch(e=>{if(o[0]==s&&(eA({...s,callback:null,validator:null}),console.log("Fork was deleted"),!(o[1]instanceof Error)))return i(o[1].response),ex({...o[1],callback:i});throw e})}async function eM(e){var t;"string"==typeof e&&(e={src:e});let{response:r}=await eL(e,e=>{t=e},!0);return{...e,template:t,lastModified:r.headers.get("last-modified")}}async function eq(e,t){return eS(eF(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 eU(e,t){return eV(e,t||(t=document.createElement("style"))),t}function eV(e,t){return t||(t=document.createElement("style")),eq(e,(e,r)=>{t.textContent=e}).then(()=>t)}var eB=new WeakSet;function eK(e,t){var r,n=e$(e);if(n){if(eB.has(n))return Promise.resolve(n);e=n.getAttribute("data-href")||n.getAttribute("href")}return eq(e,(i,o)=>{"initial"==o&&n||(r||(r=n&&"LINK"!=n.tagName?n:ez(e)),r.textContent=i),null==t||t(i,o)}).then(()=>r||n)}function eQ(e){return new Promise((t,r)=>{eK(e,t).catch(r)})}function e$(e){let t=eF(e),{library:r}=eP(t),n=`/files/components/styles/${r}.css`;return document.querySelector(`style[data-href="${t}"], 
67    link[rel="stylesheet"][href="${t}"], 
68    style[data-href*="${n}"], 
69    link[rel="stylesheet"][href*="${n}"]`)}function ez(e){let t=eF(e),r=document.createElement("style");return r.setAttribute("data-href",t),document.head.appendChild(r),r}function eG(e,t){let r=document.createElement("div");r.innerHTML=e;let n=document.createDocumentFragment();for(;r.firstChild;)n.appendChild(r.firstChild);return er(n,t),r}function eW(e,t){return eH(e,t||(t=document.createElement("div"))),t}async function eH(e,t){return t||(t=document.createElement("div")),t.childNodes.length?er(t,e.data,e):"template"in e?ei(t,e.template,e.data,e):eL(e,r=>ei(t,r,e.data,e)).then(()=>t)}function eJ(e){var t,r,n,i,o,s,a,u;let c,l=e.getAttribute("src");if(l){let e=eR(l);if(!e)throw Error(`Could not parse FEAAS Component source: ${l}`);var{cdn:d,library:h,component:f,version:p,revision:y}=e}let m=e.getAttribute("data");if(null!=m&&""!=m)try{c="string"==typeof m?JSON.parse(m):{}}catch(e){console.error(e)}let v=e.getAttribute("fetch");return{data:c||{},cdn:null!==(r=null!==(t=e.getContextAttribute("cdn"))&&void 0!==t?t:d)&&void 0!==r?r:eD,library:null!==(n=e.getAttribute("library"))&&void 0!==n?n:h,component:null!==(i=e.getAttribute("component"))&&void 0!==i?i:f,version:null!==(s=null!==(o=e.getAttribute("version"))&&void 0!==o?o:p)&&void 0!==s?s:"responsive",revision:null!==(u=null!==(a=e.getAttribute("revision"))&&void 0!==a?a:y)&&void 0!==u?u:"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"==v||null==v&&e.hasAttribute("fetch")?[]:null==v||"true"==v?["data","template","stylesheet"]:v.split(/(\s+|\-)+/g).filter(
69Boolean)}}var eZ=class extends eg{setData(e){this.set({data:e})}getProps(){return eJ(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||!eh.hasDataSettings(this.props.data))&&this.fetchData()))}async fetchData(){this.readyData=void 0,this.whenDataReady=this.whenDataReady.restart();let e=await eh.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?void 0:e.refs.editor}constructor(){super(),this.readyData={},this.whenDataReady=em(e=>this.readyData=e,e=>this.onError(e)),this.defaultProps={cdn:eD,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=eQ({...this.props}).then(()=>{r=null,t()});if(this.props.fetch.includes("template")||this.needsToFetchTemplate){this.needsToFetchTemplate=!1;var n=eL(this.props,e=>{this.payload=e,this.needsRefresh=!0,t()})}else this.payload=null!==(e=this.props.template)&&void 0!==e?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)er(this,this.readyData);else{if(this.needsRefresh=!1,this.getOriginal())return;ei(this,this.payload,this.readyData)}}}};function eY(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}}eZ.observedAttributes=["library","component","version","revision","hostname","cdn","template","data","instance","editable","with-stylesheet","fetch"],eZ.register("feaas-component");var eX=class extends eg{constructor(){super(...arguments),this.defaultProps={hidden:!1}}getProps(){return eY(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)}connectedCallback(){this.payload=null,super.connectedCallback(),this.attributeChangedCallback("hidden",this.getAttribute("hidden"),this.getAttribute("hidden")),this.stylesheet=document.createElement("style"),this.stylesheet.textContent=`
70  #loader {
71    position: absolute;
72    top: 0;
73    left: 0;
74    right: 0;
75    bottom: 0;
76    display: flex;
77    align-items: center;
78    justify-content: center;
79    background: #f6f6ff;
80    z-index: 1000;
81  }
82  @keyframes loader-circular-track {
83    0% {
84      stroke-dasharray: 1, 400;
85      stroke-dashoffset: 0;
86    }
87    50% {
88      stroke-dasharray: 400, 400;
89      stroke-dashoffset: -100;
90    }
91    100% {
92      stroke-dasharray: 400, 400;
93      stroke-dashoffset: -260;
94    }
95  }
96  
97  @keyframes loader-circular-spinner {
98    0% {
99      transform: rotate(0deg);
100    }
101  
102    100% {
103      transform: rotate(360deg);
104    }
105  }
106  #loader .spinner {
107    width: 48px;
108    height: 48px;
109  }
110  `,this.loader=document.createElement("div"),this.loader.id="loader",this.loader.innerHTML=`
111  <div class="spinner">
112    <svg
113      viewBox="0 0 100 100"
114      style="
115        animation: 2s linear 0s infinite normal none running loader-circular-spinner;
116        display: block;
117        width: 48px;
118        height: 48px;
119      "
120    >
121      <circle fill="transparent" cx="50" cy="50" r="42" stroke="rgba(0,0,0,0.1)" stroke-width="10px"></circle>
122      <circle
123        fill="transparent"
124        stroke="#5548D9"
125        cx="50"
126        cy="50"
127        r="42"
128        stroke-width="10px"
129        stroke-linecap="round"
130        style="animation: 1.5s linear 0s infinite normal none running loader-circular-track"
131      ></circle>
132    </svg>
133  </div>`,this.getRoot().appendChild(this.stylesheet),this.getRoot().appendChild(this.loader)}update(){this.loader.style.opacity=String(this.props.opacity)}};function e0(e){var t,r,n,i;let o=e.getAttribute("src");if(o)var{cdn:s,library:a,revision:u}=eP(o);return{library:null==e?void 0:e.getContextAttribute("library"),revision:null!==(r=null!==(t=null==e?void 0:e.getAttribute("revision"))&&void 0!==t?t:u)&&void 0!==r?r:"published",cdn:null!==(i=null!==(n=null==e?void 0:e.getContextAttribute("cdn"))&&void 0!==n?n:null==e?void 0:e.getContextAttribute("hostname"))&&void 0!==i?i:eD}}eX.observedAttributes=["hidden","opacity"],eX.register("feaas-loader");var e1=class extends eg{constructor(){super(...arguments),this.onLoad=e=>{this.payload=e,this.advance()}}getProps(){return e0(this)}isReadyToLoad(){return null!=this.props.library&&null!=this.props.revision&&null!=this.props.cdn}load(){return eK(this.props,this.onLoad)}};e1.register("feaas-stylesheet");var e2={};f(e2,{convertBase64toBlob:()=>e3,generate:()=>e7,get:()=>e9,getVersionForThumbnail:()=>e6,load:()=>e5,responseToImage:()=>e4,upload:()=>e8});var e3=e=>fetch(e).then(e=>e.blob()),e4=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 e6(e){return e.versions.length||await e.versions.fetch(),e.getVersionForWidth(800)}async function e9(e,t,r){try{if(!e.isNew)return await e5(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 e7(e,t);return null==r||r(n,!1),n&&!e.isNew&&e3(n.src).then(r=>e8(e,t,r)),n}async function e5(e,t,r){var n;let i=t?t.getThumbnailURL():e.getThumbnailURL(),o=e.library.stylesheet,s=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 eS(i,{},(e,t)=>{let i=2e3>Math.abs(Number(new Date(e.headers.get("x-ms-meta-componentRenderedAt")))-Number(s));return t&&!i&&e4(e).then(e=>{n=e,r(e,t)}),i},(i,o,s)=>{e.sdk.log(`FEAAS: Thumbnail ${e.id}/${(null==t?void 0:t.id)||"responsive"}, status: ${o}`),e4(i).then(e=>{n=e,r(e,s)})},null),n}async function e7(e,t,r){var n,i,o,s,a,u;let c,l=t||(e.isNew?null:await e6(e));if(!l||l.isViewEmpty())return null;let d=r||e.library.stylesheets.first,{datasources:h}=e.sdk;return await (n=l.classList,i=d.getBreakpointForWidth(800,l.getBreakpoints()),o=l.view,s=h.reduce((e,t)=>Object.assign(e,{[t.id]:t.sample}),{}),a=d.css,u=e.sdk,(c=document.createElement("iframe")).style.position="absolute",c.style.top="-2000px",c.style.left="-2000px",c.style.width=i.props.minWidth+"px",c.style.height="720px",c.style.zIndex="100011",document.body.appendChild(c),new Promise((e,t)=>{let r=document.createElement("script");r.onerror=t,r.src=u.frontend+"/assets/html2canvas.js",r.onload=()=>{var r;((null===(r=c.contentWindow.document.fonts)||void 0===r?void 0:r.ready)||Promise.resolve()).then(function(){return c.contentWindow.html2canvas(h,{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,h.offsetHeight)),windowWidth:i.props.minWidth||i.props.maxWidth+"px",windowHeight:1e3,proxy:u.backend+"/proxy/media",backgroundColor:"#ffffff"}).then(r=>{let n=r.toDataURL("image/jpeg",.6);c.parentElement.removeChild(c);let i=new Image;i.onload=()=>{e(i)},i.onerror=t,i.src=n})})},c.contentWindow.document.head.appendChild(r);let l=c.contentWindow.document.createElement("style");l.textContent=`
134      ${a}
135      body, html { padding: 0; margin: 0; overflow: hidden }
136    `;let d=c.contentWindow.document.createElement("style");d.textContent=`
137      body, html { padding: 0; margin: 0; overflow: hidden }
138    `,c.contentWindow.document.head.appendChild(l),c.contentWindow.document.head.appendChild(d);let h=eW({template:o,data:s});h.classList.add(...n,"-feaas--preview","-emulate--"+i.details.slug),c.contentWindow.document.body.appendChild(h)}))}async function e8(e,t,r){let n=t?t.getThumbnailURL():e.getThumbnailURL(),i=new Date(Math.max(Number(e.modifiedAt),Number(e.library.stylesheet.modifiedAt)));
138try{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 te(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 tt(e){var t;return{context:HTMLElement,frontend:null==e?void 0:e.getContextAttribute("frontend"),src:null!==(t=null==e?void 0:e.getAttribute("src"))&&void 0!==t?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=eb,null!==(n=window.FEAASLoading)&&void 0!==n||(window.FEAASLoading=Promise.resolve()));var tr=class extends eg{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=te(e.memoized.focusable)),this.chrome&&(this.wrapperRect=this.chrome.positionable.getBoundingClientRect(),this.bodyRect=this.chrome.positionable.ownerDocument.body.parentElement.getBoundingClientRect())},this.onMeasure=()=>{},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?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)||void 0===e)&&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)=>
138{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 tt(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)||void 0===e||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")}
vendor: 4,648 bytes, line 138
138render({children:e,component:t,version:r,instance:n},{Editor:i,VersionStatusList:o,VersionStatusButton:s,Version:a,VersionMenu:u,EditorUIUndo:c,EditorUIMode:l,React:{useEffect:d,useMemo:h,useState:f,useContext:p},Chakra:{HStack:y,Box:m,Button:v,MenuItem:g},Chrome:b,ReactDOM:E,useSDK:O,useLibrary:_,useSlots:w,useModelObserver:S,ConfirmationContext:T,VersionContext:C}){if(!this.payload)return;let{React:k}=this.payload,x=O(),A=_(),[D,R]=f(),{setConfirm:N}=p(T),I=n||r;D&&(this.component=D),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 P=S(null==D?void 0:D.versions,[]).filter(e=>e.id==I),j=P[0];j&&!this.props.hidden&&(this.version=j),d(()=>(this.unfork=()=>{N({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=D.findVersion(r,["staged","published"]);D.findVersion(n).unstage().unpublish().changeAndNotify(e.toProperties()),D.saveVersions(!1),this.setVersionContext({needsWrite:!0}),this.removeAttribute("forked"),requestAnimationFrame(this.onClose)}})},this.discard=()=>{this.props.changed&&(D.findVersion(I).revert(),D.saveVersions(!1),this.setVersionContext({needsWrite:!0}))},this.close=()=>{N({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=()=>{N({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=D.findVersion(I).commitData({view:this.editorContext.editor.getData({rootName:I}),model:""}))||void 0===e?void 0:e.stage())||void 0===t||t.publish(),this.removeAttribute("changed"),this.setAttribute("forked",I),D.saveVersions(!1)}})},()=>{delete this.unfork,delete this.discard,delete this.save,delete this.editorContext,delete this.versionContext,delete this.setEditorContext,delete this.setVersionContext}),[D]);let F=h(()=>this.target,[D]);return h(()=>D&&w(e,({picker:e,children:t})=>k.createElement(m,{ref:e=>{this.chrome=e?{positionable:e,wrapper:e.querySelector(".editor-chrome"),absolute:this.querySelector(".ui.overlays")}:null}},k.createElement(m,{className:"editor-wrapper",position:"absolute",left:0,top:0},k.createElement(i,{datasources:x.datasources,sdk:x,library:A,component:D,versions:P,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&&k.createElement(b,null),children:({isArchivedDisplayed:e,editor:t,status:r})=>k.createElement(m,{position:"absolute",left:0,top:0,className:"editor-chrome",p:4,boxShadow:"2xl",pointerEvents:"none",opacity:0,transition:"opacity 0.3s"},k.createElement(m,{left:0,width:"4",top:0,bottom:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),k.createElement(m,{right:0,width:"4",top:0,bottom:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),k.createElement(m,{top:0,height:"16",left:0,right:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),k.createElement(m,{bottom:0,height:"4",left:0,right:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),j&&k.createElement(a,{version:j,node:F,ignoreBreakpoints:!0,deps:[this.props.forked,this.props.changed]},{exports:this.onVersionStateChange,left:k.createElement(y,{justifyContent:"space-between"},k.createElement(c,{size:"sm",editor:"ready"==r?t:null}),k.createElement(l,{size:"sm"})),middle:(e,t)=>
138[!1],right:k.createElement(k.Fragment,null,k.createElement(v,{variant:"secondary",size:"sm",onClick:this.close},"Close"),k.createElement(v,{variant:"primary",size:"sm",onClick:this.save,isDisabled:!this.props.changed},this.props.changed?this.props.forked?"Save":"Save customization":"Up to date"),k.createElement(u,{isDisabled:!this.props.forked&&!this.props.changed},k.createElement(g,{onClick:this.unfork,isDisabled:!this.props.forked},"Unfork"),k.createElement(g,{onClick:this.discard,isDisabled:!this.props.changed},"Discard")))}))})))),[j,this.props.forked,this.props.changed])}isReadyToLoad(){return null!=this.props.component&&null!=this.props.version&&!this.props.hidden}};function tn(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"))&&void 0!==t?t:"https://components.sitecorecloud.io",src:null!==(r=null==e?void 0:e.getAttribute("src"))&&void 0!==r?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}}tr.observedAttributes=["library","component","version","revision","hidden","state","changed","forked"],tr.register("feaas-editor");var ti=class extends eg{constructor(){super(...arguments),this.defaultProps={hidden:!1}}getProps(){return tn(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:s,React:a,useContext:u,EnvironmentContext:c,useLibrary:l,useSDK:d,BYOC:h}){let[f,p]=a.useReducer(e=>e+1,0),y=d(),m=u(c),v=l("collections"),g=l("components"),b=d("datasources"),E=l(),O=(null===(S=null===(w=null==E?void 0:E.stylesheets)||void 0===w?void 0:w.first)||void 0===S?void 0:S.rules)||(null===(T=null==E?void 0:E.stylesheet)||void 0===T?void 0:T.styles),_=d("renderingHost.expandedComponents");var w,S,T,C=null==t?void 0:t.getAttribute("data");if(C)try{C=JSON.parse(C)}catch(e){}if(t)var k=y.ExternalComponent.getDefinition(t),x=k&&!k.getConfiguration(t),A=(null==k?void 0:k.type)=="feaas"?g.find(e=>e.id==t.getAttribute("component")):null==h?void 0:h.getComponent(String(t.getAttribute("data-external-id")));return a.createElement(s,{cdn:m.cdn,rules:O,collections:v,themeContext:t,placeholder:e,embed:A,externalComponents:_,datasources:b,data:C,versionId:null==t?void 0:t.getAttribute("version"),mode:r||(x?"library":A?"context":null),setAttribute:(e,t,r)=>{"data"==t&&r&&(r=JSON.stringify(r)),this.props.setAttribute(e,t,r),p()},getAttribute:(e,r)=>null==t?void 0:t.getAttribute(r),dialog:n,context:t,variant:o,onModeChange:(e,t)=>
138{this.set({mode:e,dialog:t})}},i)}};function to(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"))&&void 0!==t?t:"/context.js",environment:null!==(r=null==e?void 0:e.getAttribute("environment"))&&void 0!==r?r:void 0,frontend:null!==(n=null==e?void 0:e.getAttribute("frontend"))&&void 0!==n?n:"https://components.sitecorecloud.io",backend:null!==(i=null==e?void 0:e.getAttribute("backend"))&&void 0!==i?i:"https://components.sitecorecloud.io/api",cdn:null!==(o=null==e?void 0:e.getAttribute("cdn"))&&void 0!==o?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"}}ti.observedAttributes=["library","mode","frontend","src","hidden","variant","dialog"],ti.register("feaas-picker");var ts=class extends eg{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=em(e=>{this.sdk=e})}getProps(){return to(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 s={containerRef:{current:this.getPortalRoot()}};return i.defaultProps={hasArrow:!0,placement:"top",portalProps:s},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:s},chakraProps:{resetScope:':where([feaas-role="ui"])',cssVarsRoot:":host",resetCSS:!0,toastOptions:{portalProps:s}}},e)}};ts.observedAttributes=["library","component","version","revision","hostname","template"],ts.register("feaas-context"),ts.prototype.clientside=ey;var ta=i.zB,tu=class extends eg{load(){return Promise.all([import("https://cdn.skypack.dev/react-dom/client")]).then(([e])=>({React:o,ReactDOM:d,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=i.Xr(this.getComponentName()))||void 0===e)&&e.component)&&"false"==this.getAttribute("hydrate")))return super.update()}render(e,{React:t}){var r;let n=null===(r=i.Xr(this.getComponentName()))||void 0===r?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 ta(i.hN(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?void 0:t[1]:null);return r?o.createElement(tm,{src:r,...e}):null}static linkComponents(e){return()=>e.map(e=>null)}};tu.registered=i.Gw,tu.registerComponent=i.RM,tu.setRegistrationCallback=i.FS,tu.getComponent=i.Xr,tu.register("feaas-external");var{linkComponents:tc}=tu,tl={};function td(e,t){tl[e]=t}var th=function(e,t){return u=e,a=t,t},tf=i.Xq,tp=function(){return o.createElement(o.Fragment,null,o.createElement("byoc-registration",{components:JSON.stringify(Object.values(i.Gw)),datasources:JSON.stringify(Object.values(i.Qe)),suppressHydrationWarning:!0}),o.createElement(a,null))},ty=c,tm=function({data:e,lastModified:t,fetchedData:r,renderNode:n,...s}){var a,u,l,d;let h;"template"in s&&s.template&&(h=(a=s.template,u=r||e||{},eu(a).map(e=>er(e,u,l))).map((e,t)=>(function e(t,r,n){var s;if(3===t.nodeType)return t.textContent;let a=Array.from(t.childNodes).map((t,n)=>e(t,r,n)),u={};for(let e=0;e<t.attributes.length;e++){let{name:r,value:n}=t.attributes[e];"style"==r?u[r]=String(n||"").trim().split(/\s*;\s*/).reduce((e,t)=>
138{let[r,n]=t.split(":");return{...e,[i.zW(r)]:n}},{}):"class"==r?u.className=n:u[r]=n}let c=null==r?void 0:r(t,u),l=(null==c?void 0:c[0])||t.nodeName.toLowerCase();"style"==l&&(u.dangerouslySetInnerHTML={__html:a.join(`
139`)});let d=Object.assign({key:n,suppressHydrationWarning:!0},(null==c?void 0:c[1])||u),h=(null===(s=null==c?void 0:c[1])||void 0===s?void 0:s.children)||a;return o.createElement(l,d,["img","br","input","style"].includes(l)?null:h)})(e,(e,t)=>{if(n){let r=null==n?void 0:n(e,t);if(null!=r&&"type"in r)return[r.type,r.props];t={...t,...r}}if(tl[e.localName])return[tl[e.localName],t];if("feaas-external"==e.localName){let e={};for(var r in t)e["data-external-id"==r?"componentName":i.zW(r)]=t[r];return[c,e]}},t))),"src"in s&&(s={...eR(s.src),...s});let f=null==(d=s.fetch)||!0===d?["template","stylesheet","data"]:[].concat(d||[]),p=f.includes("data")?e:f.includes("template")?r||e:null;return o.createElement(o.Fragment,null,"preload"in s&&!1,o.createElement("feaas-component",{class:"-feaas",...s,"last-modified":t?String(t):null,fetch:null==s.fetch?s.fetch:[].concat(s.fetch).join(" "),suppressHydrationWarning:!0,template:null,data:"string"==typeof p?p:p?JSON.stringify(p):null},h))}},74730:function(e,t,r){"use strict";r.d(t,{J:function(){return n},M:function(){return i}});let n=(e={})=>"undefined"!=typeof window?window:e,i=(e={})=>"undefined"!=typeof document?document:e},80187:function(e,t,r){"use strict";r.d(t,{K:function(){return n},y:function(){return i}});let n=e=>e&&"object"==typeof e&&!Array.isArray(e),i=()=>"undefined"==typeof document||!document.createElement},26448:function(e,t,r){"use strict";var n,i;r.d(t,{Yd:function(){return u}}),(i=n||(n={}))[i.NONE=0]="NONE",i[i.ERROR=1]="ERROR",i[i.WARN=2]="WARN",i[i.INFO=3]="INFO",i[i.DEBUG=4]="DEBUG",i[i.TRACE=5]="TRACE";let o={none:n.NONE,error:n.ERROR,warn:n.WARN,info:n.INFO,debug:n.DEBUG,trace:n.TRACE},s="Sitecore Search SDK";class a{constructor(e,t=n.NONE,r=s){Object.defineProperty(this,"NONE",{enumerable:!0,configurable:!0,writable:!0,value:n.NONE}),Object.defineProperty(this,"ERROR",{enumerable:!0,configurable:!0,writable:!0,value:n.ERROR}),Object.defineProperty(this,"WARN",{enumerable:!0,configurable:!0,writable:!0,value:n.WARN}),Object.defineProperty(this,"INFO",{enumerable:!0,configurable:!0,writable:!0,value:n.INFO}),Object.defineProperty(this,"DEBUG",{enumerable:!0,configurable:!0,writable:!0,value:n.DEBUG}),Object.defineProperty(this,"TRACE",{enumerable:!0,configurable:!0,writable:!0,value:n.TRACE}),Object.defineProperty(this,"transports",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"logLevel",{enumerable:!0,configurable:!0,writable:!0,value:n.NONE}),Object.defineProperty(this,"namespace",{enumerable:!0,configurable:!0,writable:!0,value:s}),this.transports=e,this.namespace=r,this.setLogLevel(t)}setLogLevel(e){if("string"!=typeof e)this.logLevel=e;else if(o[e])this.logLevel=o[e];else throw Error(`Logger :: Invalid logLevel (${e})`)}send(e,t,...r){try{this.logLevel>=e&&this.transports.forEach(e=>{e[t](this.namespace," ::: ",...r)})}catch(e){console.error(e)}}error(...e){return this.send(n.ERROR,"error",...e)}warn(...e){return this.send(n.WARN,"warn",...e)}info(...e){return this.send(n.INFO,"info",...e)}debug(...e){return this.send(n.DEBUG,"debug",...e)}trace(...e){return this.send(n.TRACE,"log",...e)}}let u=new a([console])},49853:function(e,t,r){"use strict";r.d(t,{E:function(){return function e(t,r,{mutate:i=!1}={}){let o=i?t:Object.assign({},t);return(0,n.K)(t)&&(0,n.K)(r)&&Object.keys(r).forEach(i=>{(0,n.K)(r[i])&&i in t?o[i]=e(t[i],r[i]):Object.assign(o,{[i]:r[i]})}),o}}});var n=r(80187)},67241:function(e,t,r){"use strict";r.d(t,{$c:function(){return s},FD:function(){return i},lN:function(){return n},o3:function(){return a},xs:function(){return o}}),r(16833),r(13017);let n=e=>e.length?e[e.length-1]:void 0,i=e=>0===Object.keys(e||{}).length,o=e=>void 0===e,s=e=>String.fromCharCode(e<10?e+48:e<36?e+87:e+29),a=e=>{try{if(e)return JSON.parse(e);return""}catch(t){return e}}},22694:function(e,t){"use strict";var r,n;(n=r||(r={})).LOAD="core/LOAD",n.UNLOAD="core/UNLOAD",n.REQUEST="core/REQUEST",n.REQUEST_SUCCESS="core/REQUEST_SUCCESS",n.REQUEST_FAIL="core/REQUEST_FAIL",n.REQUEST_CANCELED="core/REQUEST_CANCELED",n.WIDGET_DATA_REQUEST="core/WIDGET_DATA_REQUEST",n.WIDGET_DATA_REQUEST_SUCCESS="core/WIDGET_DATA_REQUEST_SUCCESS",n.WIDGET_DATA_REQUEST_FAIL="core/WIDGET_DATA_REQUEST_FAIL",n.WIDGET_DATA_REQUEST_CANCELED="core/WIDGET_DATA_REQUEST_CANCELED",n.WIDGET_STATE_CHANGED="core/WIDGET_STATE_CHANGED",n.WIDGET_APPEAR="core/WIDGET_APPEAR",n.PAGE_CONTAINER_READY="core/PAGE_CONTAINER_READY",n.WIDGET_READY="core/WIDGET_READY",n.INITIALIZE="core/INITIALIZE",n.INITIALIZED="core/INITIALIZED",n.RESET_WIDGET="core/RESET_WIDGET",n.PAGE_CONTEXT_CHANGED="core/PAGE_CONTEXT_CHANGED",n.OC_CONTEXT_CHANGED="core/OC_CONTEXT_CHANGED",n.FOUND_WIDGETS="core/FOUND_WIDGETS",n.ADD_TO_CART="core/interaction/ADD_TO_CART",n.ORDER_CONFIRM="core/interaction/ORDER_CONFIRM",n.USER_LOGIN="core/interaction/USER_LOGIN",n.ADD_TO_WISHLIST="core/interaction/ADD_TO_WISHLIST",n.CART_STATUS="core/interaction/CART_STATUS",n.ITEM_CLICKED="core/interaction/ITEM_CLICKED",n.PAGE_WIDGETS_DATA_REQUEST="core/PAGE_WIDGETS_DATA_REQUEST",n.PAGE_WIDGETS_DATA_REQUEST_SUCCESS="core/PAGE_WIDGETS_DATA_REQUEST_SUCCESS",n.PAGE_WIDGETS_DATA_REQUEST_FAIL="core/PAGE_WIDGETS_DATA_REQUEST_FAIL",n.PAGE_WIDGETS_DATA_REQUEST_CANCELED="core/PAGE_WIDGETS_DATA_REQUEST_CANCELED",t.Z=r},43419:function(e,t,r){"use strict";r.d(t,{x:function(){return o}});var n=r(22694),i=r(51462);class o{constructor(){Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1})}register(e){i.Z.subscribe(e)}unregister(e){i.Z.unsubscribe(e)}getDispatcher(){return i.Z}initialize(){this.initialized=!0,i.Z.dispatch({type:n.Z.INITIALIZED,payload:{}})}}},12237:function(e,t,r){"use strict";r.d(t,{ZP:function(){return N},QS:function(){return D}});var n=r(8490),i=r(4601),o=r(17867);let s=(0,i.N)(o.Z);class a extends s{constructor(e){super(),this.setRfkId(e)}setSearchFilter(e){return this.setValue("search.filter",e.toJson()),this}}var u=e=>{let t=new a(e);return t.setAppearance({}),t.setAppearanceTemplates({}),t.setAppearanceVariables({}),t};class c extends a{constructor(){super(...arguments),Object.defineProperty(this,"facetTypeFiltersType",{enumerable:!0,configurable:!0,writable:!0,value:"or"})}buildFacetTypeFilters(e,t="or"){if(0!==e.length)return{type:t,values:e}}setSearchFacetTypeFilterType(e){return this.facetTypeFiltersType=e,this}getSearchFacetTypeFilterType(){return this.facetTypeFiltersType}setSearchFacetType(e,t){let r=this.getSearchFacetTypes()||[];return r.find(({name:t})=>t===e)?this.setSearchFacetTypes(r.map(r=>r.name===e?{...t,name:e}:r)):this.setSearchFacetTypes([...r,{...t,name:e}]),this}updateSearchFacetType(e,t){let r=this.getSearchFacetTypes()||[];return this.setSearchFacetType(e,{...r.find(({name:t})=>t===e),...t}),this}addSearchFacetTypeFilter(e,t,r="or"){let n=this.getSearchFacetTypes()||[],i=n.find(({name:t})=>t===e)?.filter?.values||[];return this.updateSearchFacetType(e,{filter:this.buildFacetTypeFilters([...i,t],r)}),this}resetSearchFacetTypeFilter(e){return this.updateSearchFacetType(e,{filter:void 0}),this}removeSearchFacetTypeFilter(e,t){let r=this.getSearchFacetTypes()||[],n=r.find(({name:t})=>t===e)?.filter?.values||[];return this.updateSearchFacetType(e,{filter:this.buildFacetTypeFilters(n.filter(e=>!function e(t,r){if(typeof t!=typeof r)return!1;if("object"==typeof t){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(!e(t[n],r[n]))return!1;return!0}{let n=Object.keys(t),i=Object.keys(r);if(n.length!==i.length)return!1;for(let i of n)if(!e(t[i],r[i]))return!1;return!0}}return t===r}(e,t)))}),this}resetSearchFacetTypeFilters(){return(this.getSearchFacetTypes()||[]).forEac
139h(({name:e})=>{this.updateSearchFacetType(e,{filter:void 0})}),this}}let l={[n.L.RECOMMENDATION]:e=>{let t=new a(e);return t.setRecommendationsContent({}),t},[n.L.SEARCH_RESULTS]:e=>{let t=new c(e);return t.setSearchContent({}),t.setSearchFacetAll(!0),t.setSearchOffset(0),t.setSearchSortChoices(!0),t},[n.L.PREVIEW_SEARCH]:e=>{let t=new a(e);return t.setSearchContent({}),t},[n.L.QUESTIONS]:e=>{let t=new c(e);return t.setQuestionsRelatedQuestionsLimit(5),t.setQuestionsExactAnswer({}),t},[n.L.CONTENT_BLOCK]:u,[n.L.HTML_BLOCK]:u,[n.L.SEO]:u,[n.L.BANNER]:u},d=(e,t)=>{if(l[e])return l[e](t);throw Error(`Invalid widget type: "${e}"`)};var h=r(92416),f=r(55365),p=r(64661),y=r(26448),m=r(67241),v=r(49853),g=r(30302);let b=async(e,{items:t,actionSubtype:r="conversion"})=>_(e,"cart",{actionSubtype:r,items:t}),E=async(e,t)=>_(e,"wishlist",t),O=async(e,t)=>{let{orderId:r,orderTotal:n,orderSubtotal:i,coupon:o,items:s,actionSubtype:a="conversion",store:u}=t;if(!(0,g.BY)(r)){y.Yd.warn("trackEvent :::","Transaction orderId is not defined");return}return _(e,"order_confirm",{items:s,transaction:(0,g.Y1)(r,n,i,o,u),actionSubtype:a})},_=async(e,t,{review:r,transaction:n,items:i,customAttributes:o,actionSubtype:s})=>{if(!t){y.Yd.warn("trackEvent :::","Event name is not defined");return}let a=[];e&&i&&(a=(0,g.rn)(e,i));let u={name:t,action:"add",action_sub_type:s,value:{entities:a,transaction:n,review:r,custom_attributes:o,context:h.Z.toJson()}};return(0,g.j)(u)},w=async(e,{items:t,actionSubtype:r})=>{let n=[];if(e&&t&&(n=(0,g.rn)(e,t))&&!(0,g.ON)(n)){y.Yd.warn("trackEvent :::","A field is missing on one or more of the items provided");return}let i={action:"view",name:"cart",action_sub_type:r,value:{entities:n,context:h.Z.toJson()}};return(0,g.j)(i)},S=async(e,t)=>{if(!e||(0,m.FD)(e)){y.Yd.warn("trackEvent :::","User information is empty or not complete");return}let r=(0,v.E)(h.Z.toJson(),{user:{...e.id?{cuid:e.id}:{},...e.eid?{eid:e.eid}:{},...e.email?{email:e.email}:{},...e.fbid?{fbid:e.fbid}:{},...e.address?{address:e.address}:{}}});return(0,g.j)({action:"identify",name:"login",action_sub_type:t,value:{context:r}})};var T=r(70196),C=r(22694),k=r(51462),x=r(5693),A=r(43419);let D=e=>{let{type:t,options:{setupRequest:r=()=>{}}={}}=x.Z.get(e)||{},n=t?d(t,e):new a(e);return n.setRfkId(e),r(n),n};class R extends A.x{constructor(){super(),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.setContext(h.Z.get()),k.Z.subscribe(this)}getContext(){return this.context}setContext(e){this.context=e,this.context.addListener(this)}toggleTrackConsent(e){let t=(0,f.n5)();e?t.user_id?this.context.setUserId(t?.user_id):this.context.setUserUuid((0,f.n5)().uuid):((0,f._V)(),(0,p.Tp)(!1),t?.user_id&&this.context.setUserId(t?.user_id))}handleAction(e){switch(e.type){case C.Z.INITIALIZE:this.initialize();break;case C.Z.ADD_TO_CART:{let{entity:t,items:r}=e.payload;b(t,{items:r});break}case C.Z.ADD_TO_WISHLIST:{let{entity:t,items:r}=e.payload;E(t,{items:r});break}case C.Z.USER_LOGIN:{let{id:t,email:r}=e.payload;S({id:t,email:r});break}case C.Z.CART_STATUS:{let{entity:t,items:r}=e.payload;w(t,{items:r});break}case C.Z.ORDER_CONFIRM:{let{entity:t,items:r,orderId:n,orderTotal:i,orderSubtotal:o,coupon:s}=e.payload;O(t,{orderId:n,orderTotal:i,orderSubtotal:o,coupon:s,items:r});break}case C.Z.WIDGET_APPEAR:{let{rfkId:t,entity:r,items:n,request:i}=e.payload;(0,T.SB)(t,r,{...n.length>0?{items:n}:void 0,request:i})}}}onChange(e,t,r){this.initialized&&k.Z.dispatch({type:C.Z.PAGE_CONTEXT_CHANGED,payload:{context:this.context}})}}var N=new R},98357:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});class n extends Error{constructor({_requestId:e,_canceled:t,...r}){super("Request canceled"),Object.defineProperty(this,"response",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="AbortError",this.response=r}getResponse(){return this.response}}},51462:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(26448);let i=[],o=[];class s{static addActionHandler(e){i.push(e)}static removeActionHandler(e){let t=o.indexOf(e);-1!==t&&o.splice(t,1)}static subscribe(e){i.push(e)}static unsubscribe(e){let t=i.indexOf(e);-1!==t&&i.splice(t,1)}static dispatch(e){n.Yd.debug("dispatcher ::: dispatch",`[${e.type}
139]`,e.payload),i.forEach(t=>{t.handleAction(e)}),o.forEach(t=>{t.handleAction(e)})}}},5693:function(e,t,r){"use strict";var n=r(49853);let i=(e,t)=>`${e}${t?`@${t}`:""}`;t.Z={widgetTypesConfigMapping:{},widgetsConfigMapping:{},setWidgetType(e,t){(0,n.E)(this.widgetTypesConfigMapping,{[e]:t},{mutate:!0})},getType(e){let{type:t}=this.widgetsConfigMapping[i(e)]||{};return t},set(e,t,r){"string"==typeof t?this.widgetsConfigMapping[i(e,t)]=r:this.widgetsConfigMapping[i(e)]=t},update(e,t,r){"string"==typeof t?(0,n.E)(this.getOrCreate(e,t),r,{mutate:!0}):(0,n.E)(this.getOrCreate(e),r,{mutate:!0})},get(e,t){let r=this.widgetsConfigMapping[i(e,t)],o=this.widgetsConfigMapping[i(e)];if(!o&&!r)return;let s=(0,n.E)(o||{},r||{}),{component:a,options:u}=this.getForType(e)||{},{component:c=a,options:l}=s;return{...s,component:c,options:l?(0,n.E)(u||{},l):u}},getWidgetIds(){return Object.keys(this.widgetsConfigMapping)},getByType(e){return this.widgetTypesConfigMapping[e]||void 0},getForType(e){let t=this.getType(e);return t?this.getByType(t):void 0},getOrCreate(e,t){return this.widgetsConfigMapping[i(e,t)]||(this.widgetsConfigMapping[i(e,t)]={}),this.widgetsConfigMapping[i(e,t)]},getMetadata(e){let{metadata:t}=this.widgetsConfigMapping[i(e)]||{};return t},setMetadata(e,t){Object.assign(this.getOrCreate(e),{metadata:t}),this.setType(e,t.type)},updateMetadata(e,t){(0,n.E)(this.getOrCreate(e),{metadata:t},{mutate:!0}),this.setType(e,t.type)},setType(e,t){this.getType(e)||Object.assign(this.getOrCreate(e),{type:t})}}},79989:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(26448),i=r(64661),o=r(30302);let s=(0,r(74730).J)();class a{constructor(e){Object.defineProperty(this,"cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e,this.cache={},s.RFK_CACHE||(s.RFK_CACHE={}),s.RFK_CACHE[e]=this.cache}hashKey(e){let t,r,n=0;for(t=0,r=e.length;t<r;t++)n=(n<<5)-n+e.charCodeAt(t)|0;return n}sortObjectKeys(e){return null==e?"":"object"!=typeof e?e:Object.keys(e).sort().reduce((t,r)=>(Array.isArray(e[r])?t[r]=e[r].map(e=>this.sortObjectKeys(e)):"object"==typeof e[r]?t[r]=this.sortObjectKeys(e[r]):t[r]=e[r],t),{})}createKey(e){let t=JSON.stringify(this.sortObjectKeys(e));return(0,i.wL)("debug")?(n.Yd.debug("cache ::: createKey",e),t):String(this.hashKey(t))}has(e){return e in this.cache}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}delete(e){delete this.cache[e]}all(){return this.cache}clear(){this.cache={},window.RFK_CACHE[this.name]=this.cache}getName(){return this.name}}let u={sitecore:{async getAuthHeader(){let{apiKey:e}=(0,i.dS)();return Promise.resolve(e)}},oc:{getAuthHeader:async()=>Promise.all([r.e(708),r.e(729)]).then(r.bind(r,29818)).then(e=>e.Tokens).then(e=>{let t=e?.GetIdentityToken();if(!t)throw n.Yd.error("Could not found an Order Cloud Cloud logged user."),Error("Could not found an Order Cloud Cloud logged user.");return n.Yd.info("Using existing Order Cloud Token."),`Bearer ${t}`}).catch(e=>{throw n.Yd.error("Could not import Ordercloud SDK.",e),Error("Could not import Ordercloud SDK.")})}},c=async()=>{let{connector:e="oc"}=(0,i.dS)();return{"Content-Type":"application/json",Authorization:await u[e].getAuthHeader()||""}},l=new a("api-adapter"),d={cache:!0};class h{static async trackEvent(e){let t=(0,o.QE)(e),{eventUrl:r,apiKey:s}=(0,i.dS)();try{return(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Authorization:s},body:JSON.stringify(t)})).json()}catch(e){return n.Yd.error(e),n.Yd.error("There was a problem on the service call"),e.message||null}}static async callApiWithoutCache(e,t){try{let r=await fetch(e,t),n=await r.json();return Promise.resolve(n)}catch(e){return n.Yd.error(e),n.Yd.error("There was a problem on the service call"),e.message||null}}static async callApiWithCache(e,t){let r=l.createKey(t);if(l.has(r))return l.get(r);let n=await h.callApiWithoutCache(e,t);return l.set(r,n),n}static async callApi(e,t=d){let{searchUrl:r}=(0,i.dS)(),n={method:"POST",headers:await c(),body:JSON.stringify(e),signal:t.signal};
139return t.cache?h.callApiWithCache(r,n):h.callApiWithoutCache(r,n)}static clearCache(){l.clear()}}},37423:function(e,t,r){"use strict";var n=r(79989);let i=null,o=async(e,t)=>s(e.toJson(),t),s=async(e,t)=>{if(!i)return Promise.reject(Error("No data processor configured"));try{let r=await n.Z.callApi(e,{cache:!1,...t}),o=i.validateResponse(r,e);if(o)return Promise.reject(o);return Promise.resolve(i.processResponse(r,e))}catch(e){return Promise.reject(e)}};t.Z={get:s,run:o,setProcessor:e=>{i=e},getProcessor:()=>i}},55365:function(e,t,r){"use strict";r.d(t,{n5:function(){return p},_V:function(){return y}});var n=r(67241),i=r(64661);let o=Date.now();var s=r(21175),a=r(61214);let u={},c=()=>{let{domainId:e,customerKey:t}=(0,i.dS)();return t?(0,s._Y)(t):e},l=()=>{let e=a.Z.get("__ruid");if(e)return e;e=("xx-xx-4x-1"+"pc"[0]+"-").replace(/[x]/g,()=>(0,n.$c)(36*Math.random()|0));for(let t=0;t<5;t++)e+=("0000"+(1679615*Math.random()|0).toString(36)).slice(-4);let t=c()+"-"+e+"-"+o;return a.Z.set("__ruid",t),t},d=(e,t)=>{let r=e.split(".");return r.length>3&&(t&&(r[1]=r[2],r[2]=o,r[3]=1*r[3]+1),4===r.length&&(r[4]=1),5===r.length&&(r[5]=1),r[4]=1*r[4]+1,r[5]=1+(t?0:1*r[5]),e=r.join(".")),e},h=()=>{let e=0,t=a.Z.get("__rutma");return a.Z.get("__rutmb")||(a.Z.set("__rutmb",c(),18e5),e=1),t=t?d(t,e):`${l()}.${o}.${o}.1.1.1`,a.Z.set("__rutma",t,18e5),t},f=()=>{let{domainHash:e}=(0,i.dS)();u.domainHashCkey=e,u.domainHash=u.domainHashCkey,u.domainRoot=(0,i.K7)();let t=h(),r=t.split(".");return u.uid=r[0],u.usetLastDigit=(0,n.lN)(r[0]),u.previousSessionStartTime=parseInt(r[1]),u.currentSessionStartTime=parseInt(r[2]),u.visitCount=parseInt(r[3]),u.pageViewCount=parseInt(r[4]),u.visitPageCount=parseInt(r[5]),u.utma=t,u},p=()=>{let e=(0,i.wL)("userId");if(e)return{user_id:e};let{uid:t}=f();return{uuid:t}},y=()=>{a.Z.remove("__ruid"),a.Z.remove("__rutma"),a.Z.remove("__rutmb"),a.Z.remove("__ec")}},64661:function(e,t,r){"use strict";r.d(t,{wL:function(){return v},K7:function(){return E},dS:function(){return g},qG:function(){return p},v6:function(){return m},Tp:function(){return b}});var n=r(74730),i=r(26448);let o={staging:"https://discover-staging.sitecore-staging.cloud",prod:"https://discover.sitecorecloud.io",prodEu:"https://discover-euc1.sitecorecloud.io",apse2:"https://discover-apse2.sitecorecloud.io"},s={australiaEast:"https://australiaeast-integrations.ordercloud.io",europeWest:"https://westeurope-integrations.ordercloud.io",japanEast:"https://japaneast-integrations.ordercloud.io",usEast:"https://useast-integrations.ordercloud.io",usWest:"https://uswest-integrations.ordercloud.io",usWestQa:"https://uswest-integrations.ordercloud-qa.com"},a="/event/{{key}}/v4/publish",u=(e,t,r)=>({useAccessToken:!0,apiDomain:s[e],searchUrl:`${s[e]}${"/api/v1/search/{{domain}}".replace("{{domain}}",r)}`,eventUrl:`${o[t]}${a.replace("{{key}}",r)}`});var c={build:(e,t)=>{let r=Object.assign({},e,t),{orderCloudRegion:n="usWest",env:i="prod",discoverDomainId:o}=t;if(!o)throw Error("{discoverDomainId} has not been provided.");return r.domainId=o,r.connector="oc",Object.assign(r,u(n,i,o))}},l=r(21175);let d=(e,t,r,n)=>t?{apiDomain:n,searchUrl:`${n}${"/discover/v2/{{key}}".replace("{{key}}",(0,l._Y)(e))}`,eventUrl:`${n}${a.replace("{{key}}",e)}`}:{apiDomain:r,searchUrl:`${r}/api/discover/v2`,eventUrl:`${r}/api/event/v4/publish`};var h=(e,t)=>{let r=Object.assign({},e,t),{env:n="prod",customerKey:i=""}=r,{serviceHost:s,apiKey:a}=t,u=p(i);if(!u)throw Error(`Invalid customerKey: "${i}". It should match the following pattern: (\\d+)-(\\d+). Example: 11111-2222222`);let[c,l]=u;if(Object.assign(r,{domainId:c,domainHash:l}),r.connector="sitecore",!a&&!s)throw Error('Invalid configuration: "apiKey" has not been set but not serviceHost provided. Please, review your domain configuration');return Object.assign(r,d(i,a,s,o[n]))},f=(e,t)=>("useToken"in t&&void 0!==t.useToken&&i.Yd.warn('Parameter "useToken" has been deprecated'),t.customerKey)?h(e,t):c.build(e,t);let p=e=>{if(e){let t=e.match(/^(\d+)-(\d+)$/);if(t)return[t[1],t[2]]}return null},y={apiDomain:"",apiKey:"",clientId:"",connector:"sitecore",customerKey:"",debug:!1,domainHash:"",domainId:"",env:"prod",eventUrl:"",orderCloudRegion:"usWest",publicSuffix:!1,searchUrl:"",tokenDomain:"",tokenUrl:"",trackConsent:!0,useAccessToken:!1,userId:null},m=e=>{y=f(y,e)},v=e=>y[e],g=()=>y,b=e=>{y.trackConsent=e},E=()=>{let e=(0,n.J)({location:{hostname:""}}),{publicSuffix:t}=g();return t?e.location.hostname:e.location.hostname.split(".").reverse().splice(0,2).reverse().join(".")}},70458:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(4601),i=r(95635);let o=(0,n.N)(i.Z);class s extends o{}},95635:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n={name:"Context",file:"context",buildInterface:!0,properties:{browser:{type:"model",model:{name:"ContextBrowser",file:"browser",properties:{user_agent:{},device:{},app_type:{}}}},campaign:{type:"model",model:{name:"ContextCampaign",properties:{utm_source:{},utm_medium:{},utm_campaign:{},utm_term:{},utm_content:{}}}},geo:{type:"model",model:{name:"ContextGeo",properties:{ip:{},location:{type:"model",model:{name:"ContextGeoLocation",properties:{lat:{required:!0},lon:{required:!0}}}}}}},ids:{type:"map",model:{name:"ContextEntityIds",properties:{__constructor__:{type:"array",name:"entity
139Ids"}}},mapKey:"entity",mapKeyType:"Entity"},locale:{type:"model",model:{name:"ContextLocale",properties:{country:{required:!0},language:{required:!0}}}},page:{type:"model",model:{name:"ContextPage",properties:{uri:{required:!0},custom:{}}}},store:{type:"model",model:{name:"ContextStore",properties:{group_id:{},id:{required:!0}}}},time:{type:"model",model:{name:"ContextTime",properties:{epoch:{}}}},user:{type:"model",model:{name:"ContextUser",properties:{user_id:{name:"id"},uuid:{required:!0},groups:{type:"array",name:"groups"},custom:{}}}}}}},92416:function(e,t,r){"use strict";var n=r(70458);class i{static get(){return this.context}static toJson(){if(this.context){let e=this.context.toJson();return{...e.browser?{browser:e.browser}:{},...e.geo?{geo:e.geo}:{},...e.store?{store:e.store}:{},...e.page?{page:{...e.page,...e.locale?{...e.locale.country?{locale_country:e.locale.country}:{},...e.locale.language?{locale_language:e.locale.language}:{}}:{}}}:{},...e.user?{user:e.user}:{}}}return{}}}Object.defineProperty(i,"context",{enumerable:!0,configurable:!0,writable:!0,value:new n.Z}),t.Z=i},30302:function(e,t,r){"use strict";r.d(t,{BY:function(){return d},ON:function(){return c},QE:function(){return m},UW:function(){return y},Y1:function(){return f},Ye:function(){return l},fk:function(){return p},j:function(){return u},rn:function(){return h}});var n=r(26448),i=r(67241),o=r(79989),s=r(55365),a=r(64661);let u=async e=>{let{trackConsent:t}=(0,a.dS)();if(n.Yd.debug("trackEvent ",`Consent: ${t} `,m(e)),!t)return;let r={...e,...(0,s.n5)(),client_time_ms:Date.now()};return n.Yd.debug("trackEvent","Sending: ",JSON.stringify(r,null,4)),await o.Z.trackEvent(r)},c=e=>!e.find(({id:e,entity_type:t})=>(0,i.xs)(e)||(0,i.xs)(t)),l=e=>!e.find(({facetId:e})=>(0,i.xs)(e)),d=e=>!(0,i.xs)(e),h=(e,t)=>t.map(({id:t,entitySubtype:r,attributes:n,variant:o,uri:s,sourceId:a,price:u,finalPrice:c,quantity:l})=>({id:t,entity_type:e,...r?{entity_subtype:r}:{},...n&&!(0,i.FD)(n)?{attributes:n}:{},...u?{price:u}:{},...l?{quantity:l}:{},...c?{final_price:c}:{},...o?{variant:o}:{},...s?{uri:s}:{},...a?{source_id:a}:{}})),f=(e,t,r,n,i)=>({order_id:e,...t?{order_total:t}:{},...r?{order_subtotal:r}:{},...n?{coupon:n}:{},...i?{store:i}:{}}),p=({keyword:e,advancedQueryText:t,modifiedKeyword:r,numResults:n,totalResults:i,numRequested:o,pageSize:s,pageNumber:a,redirectUrl:u})=>({...e?{keyword:e}:{keyword:""},...t?{advanced_query_text:t}:{},...r?{modified_keyword:r}:{},...n?{num_results:n}:{},...i?{total_results:i}:{},...o?{num_requested:o}:{},...s?{page_size:s}:{},...a?{page_number:a}:{},...u?{redirect_url:u}:{}}),y=e=>e.map(({facetId:e,facetValue:t,startValue:r,endValue:n,facetValueId:i,valueIndex:o,facetIndex:s,facetTitle:a,displayName:u})=>({name:e,title:a,...u?{display_name:u}:{},...e?{field:e}:{},...i?{value:[i]}:t?{value:[t]}:{},...r?{start_value:r}:{},...n?{end_value:n}:{},...t?{display_name:[t]}:{},...o||0===o?{value_position:[o]}:{},...s||0===s?{facet_position:s}:{}}));function m(e){let t={};for(let r in e){let n=e[r];if(null!=n&&!("object"==typeof n&&0===Object.keys(n).length&&!Array.isArray(n))&&void 0!==n){if(Array.isArray(n)){let e=[];for(let t=0;t<n.length;t++){let r=n[t];if(null!=r&&!("object"==typeof r&&0===Object.keys(r).length&&!Array.isArray(r))){if("object"==typeof r){let t=m(r);(Object.keys(t).length>0||Array.isArray(t))&&e.push(t)}else e.push(r)}}e.length>0&&(t[r]=e)}else if("object"==typeof n&&Object.keys(n).length>0){let e=m(n);(Object.keys(e).length>0||Array.isArray(e))&&(t[r]=e)}else t[r]=n}}return t}},70196:function(e,t,r){"use strict";r.d(t,{SB:function(){return c},dr:function(){return u},up:function(){return a}});var n=r(26448),i=r(67241),o=r(92416),s=r(30302);let a=async(e,t,{actionCause:r,index:a,request:u,items:c})=>{let l=[];if(t&&c&&(l=(0,s.rn)(t,c))&&!(0,s.ON)(l)){n.Yd.warn("trackEvent :::","A field is missing on one or more of the items provided");return}if(r&&"entity"===r&&(0,i.xs)(a)){n.Yd.warn("trackEvent :::","Field index is mandatory for widget click entity events and is having invalid/missing value");return}let d={name:"widget",action:"click",action_cause:r,value:{entity:t,rfk_id:e,index:a,entities:l,request:u,context:o.Z.toJson()}};return(0,s.j)(d)},u=async(e,t,{index:r,request:n,filters:i})=>{let a={name:"widget",action:"click",action_cause:"filter",value:{rfk_id:e,entity:t,index:r,request:n,filters:i,context:o.Z.toJson()}};return(0,s.j)(a)},c=async(e,t,{request:r,items:i}={})=>{let a=[];if(t&&i&&(a=(0,s.rn)(t,i))&&!(0,s.ON)(a)){n.Yd.warn("trackEvent :::","A field is missing on one or more of the items provided");return}let u={action:"view",name:"widget",value:{entity:t,rfk_id:e,request:r,entities:a,context:o.Z.toJson()}};return(0,s.j)(u)}},21175:function(e,t,r){"use strict";r.d(t,{_Y:function(){return n}});let n=e=>{let t=e.split("-");return 2===t.length&&t[1]||""}},4601:function(e,t,r){"use strict";r.d(t,{N:function(){return O}});let n=e=>{let t=e.split("_");return`${t[0]}${t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("")}`},i=(e,t,r="")=>{let i=n(t);return`${e}${i[0].toUpperCase()+i.slice(1)}${r}`};var o=r(16833);function s(e,t){let r={};if(Array.isArray(t))for(let n of t){let t=Object.getOwnPropertyDescriptor(e,n);t?.enumerable&&Object.defineProperty(r,n,t)}else for(let n of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,n);if(i.enumerable){let o=e[n];t(n,o,e)&&Object.defineProperty(r,n,i)}}return r}var a=r(49853);let u=e=>{if("object"!=typeof e||null===e)return e;let t=Array.isArray(e)?[]:{};for(let r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=u(e[r]));return t};var c=r(13017);class l{constructor(){Object.defineProperty(this,"listeners",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"props",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"dataSnapshot",{enumerable:!0,configurable:!0,writable:!0,value:{}})}takeSnapshot(){return this.dataSnapshot=JSON.parse(JSON.stringify(this.data)),this}restoreSnapshot(){return this.data=JSON.parse(JSON.stringify(this.dataSnapshot)),this.onChange("@restore-snapsh
139ot",null),this}set(e,t,r){if(e in this.props){let n=this.getPropExportKey(e,r);if(this.get(e,void 0)!==t){let r=this.props[e];void 0===t?this.removeKey(r.parent?.key,r.keyPath[0]):(0,o.Hn)(this.data,n,t),this.onChange(e,t)}}return this}get(e,t,r){return e in this.props?(0,o.$s)(this.data,this.getPropExportKey(e,r),t):t}resetValue(e,t){if(e in this.props){let r=this.props[e],n=r.initialValue?r.initialValue():void 0;return void 0===n&&t&&r.parent&&"map"===r.parent.type?this.removeKey(r.parent.key,t):this.set(e,n,t)}return this}getMapExportKey(e,t){return e.map(e=>"#KEY#"===e?t:e)}getPropExportKey(e,t){if(e in this.props){let r=this.props[e].exportKey;return t?this.getMapExportKey(r,t).join("."):r.join(".")}return""}getValue(e,t,r){return e in this.props?this.get(e,t,r):t}setValue(e,t,r){return e in this.props?"array"===this.props[e].type&&0===t.length?this.resetValue(e,r):this.set(e,t,r):this}removeKey(e,t){if(!e)return this.data=function(e,t){if(Array.isArray(t)){let r=new Set(t);return s(e,e=>!r.has(e))}return s(e,(e,r,n)=>!t(e,r,n))}(this.data,[t]),this;let r=this.getValue(e,{});return(0,o.E2)(r,"string"==typeof t?t:`[${t}]`),0===Object.keys(r).length&&(r=void 0),this.setValue(e,r)}updateValue(e,t,r){return this.setValue(e,(0,a.E)(this.getValue(e,{},r),t),r)}addValue(e,t,r){return e in this.props&&"array"===this.props[e].type?this.setValue(e,this.getValue(e,[],r).concat(t),r):this}removeValue(e,t,r=e=>e!==t,n){return e in this.props&&"array"===this.props[e].type&&this.setValue(e,this.getValue(e,[],n).filter(e=>r(e,t)),n),this}load(e,t=!1){return this.data=e.toJson(),t&&this.onChange("load","load"),this}transformJson(e){return e}toJson(...e){return 0===Object.keys(this.data).length?this.transformJson(void 0):0===e.length?this.transformJson(u(this.data)):this.transformJson(c(u(this.data),e))}onChange(e,t){this.listeners.forEach(r=>{r.onChange(this,e,t)})}addListeners(e){e.forEach(e=>this.addListener(e))}addListener(e){this.listeners.find(t=>t===e)||this.listeners.push(e)}removeListener(e){this.listeners=this.listeners.filter(t=>t!==e)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let y=e=>e.replace(/s$/,"").replace(/ie$/,"y"),m=(e,t,r)=>{let{name:n=e}=t;return r?`${r.key}.${n}`:n},v=(e,t,r,n)=>("__constructor__"===t&&(e=m(t,n,r?.parent||null)),e.replace(/\./g,"_")),g=(e,t,r)=>{let{exportKey:n=[e],getter:o,setter:s}=r,a=t?.type==="map",u=m(e,r,t),c=t?`${t.accessProp}.${e}`:e,l=[...a?["#KEY#"]:[],..."__constructor__"===e?[]:n],d=t?.exportKey?.concat(...l)||l,h=v(u,e,t,r),f=o||i("get",h),p=s||i("set",h);return{config:{...r,key:u,accessProp:c,exportKey:d,keyPath:l,getter:f,setter:p,parent:t},key:u,methodKey:h}},b=(e,{parent:t},r,n=0)=>
139{if(t?.type==="map"){if(e.length<r-n+1)throw Error("Invalid number of arguments");if("string"!=typeof e[0])throw Error(`Invalid map key argument: ${e[0]}`);let t=e.slice(1);return[...Array(r).fill(void 0).map((e,r)=>t[r]),e[0]]}return e},E=(e,t,r,n,s)=>{let a={};return Object.keys(t).forEach(u=>{let{key:c,methodKey:l,config:d,config:{accessProp:h,exportKey:f,setter:p,getter:m,type:v,model:O,initialValue:_}}=g(u,e,t[u]),w={type:v,...s};a[c]=d;let S=_?_():void 0;if(void 0===S||c.includes("#KEY#")||(0,o.Hn)(r,f.join("."),S),n.push({typeOptions:w,prop:h,key:m,value:function(...e){return this.getValue(c,...b(e,w,1,1))}}),n.push({typeOptions:w,prop:h,key:p,value:function(...e){return this.setValue(c,...b(e,w,1))}}),n.push({typeOptions:w,prop:h,key:i("reset",l),value:function(...e){return this.resetValue(c,...b(e,w,0))}}),"array"===v){let e=y(l);n.push({typeOptions:w,prop:h,key:i("add",e),value:function(...e){return this.addValue(c,...b(e,w,1))}}),n.push({typeOptions:w,prop:h,key:i("remove",e),value:function(...e){return this.removeValue(c,...b(e,w,2,1))}})}else"model"===v&&O?(Object.assign(a,E(d,O.properties,r,n,s)),n.push({typeOptions:w,prop:h,key:i("update",l),value:function(...e){return this.updateValue(c,...b(e,w,1))}})):"map"===v&&O&&Object.assign(a,E(d,O.properties,r,n,{parent:d,...s}))}),a},O=e=>{let{name:t,properties:r={}}=e,n={},i=[],o=E(null,r,n,i);!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(a,l);let s=function(e){let t=function(){if("undefined"==typeof Reflect||!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(e){return!1}}();return function(){let r;let n=h(e);return r=t?Reflect.construct(n,arguments,h(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}(a);function a(...e){let t=s.call.apply(s,[this].concat(e));return p(t,"listeners",[]),p(t,"props",o),p(t,"data",JSON.parse(JSON.stringify(n))),t}return i&&function(e,t){for(let r=0;r<t.length;r++){let n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(a.prototype,i),Object.defineProperty(a,"name",{value:t}),a}},23668:function(e,t,r){"use strict";var n,i,o,s,a,u;r.d(t,{qi:function(){return n}}),(s=n||(n={})).DESKTOP="pc",s.MOBILE="mobile",s.TABLET="tablet",(a=i||(i={})).JS="js",a.HTML="html",a.CSS="css",(u=o||(o={})).PAGE="page",u.COMMON_ACROSS_PAGES="common_across_pages",u.DIALOG="dialog"},8490:function(e,t,r){"use strict";var n,i;r.d(t,{L:function(){return n}}),(i=n||(n={})).RECOMMENDATION="recommendation",i.PREVIEW_SEARCH="preview_search",i.SEARCH_RESULTS="content_grid",i.CONTENT_BLOCK="content_block",i.QUESTIONS="questions_answers",i.HTML_BLOCK="html_block",i.BANNER="banner",i.SEO="seo"},61214:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return d}});var i=r(74730),o=r(67241),s=r(64661);let a=(0,i.M)({cookie:""});a.cookie||(a.cookie="");class u{getCookieValue(e,t){let r=e.slice(t.length+1,e.length);return r?decodeURIComponent(r):""}getCookieFromBrowser(e){let t=a.cookie.split("; ");for(let r=0;r<t.length;r++)if(t[r].slice(0,e.length)===e)return this.getCookieValue(t[r],e);return""}setCookieInBrowser(e,t,r){let n=new Date,i=encodeURIComponent(t);n.setMilliseconds(n.getMilliseconds()+r),i+=`;domain=${(0,s.K7)()};path=/;`+(r?`;expires=${n.toUTCString()}`:"")+";secure;SameSite=None;",a.cookie=`${e}=${i}`}removeCookieFromBrowser(e){a.cookie=`${e}=;domain=${(0,s.K7)()};path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;secure;SameSite=None`}removeCachedCookie(e){this.removeCookieFromBrowser(e)}set(e,t,r){if(t){let n="object"==typeof t?JSON.stringify(t):t;this.setCookieInBrowser(e,n,r)}else this.removeCachedCookie(e)}get(e){return this.getCookieFromBrowser(e)}remove(e){this.removeCachedCookie(e)}}class c{set(e,t,r){let n={value:t,lastModifiedAt:new Date().getTime()||0,expiryTime:r};void 0!==t?localStorage.setItem(e,JSON.stringify(n)):localStorage.removeItem(e)}get(e){let t=new Date().getTime()||0,r=(0,o.o3)(localStorage.getItem(e));return r&&r.lastModifiedAt&&t-+r.lastModifiedAt>+r.expiryTime&&(this.remove(e),r=void 0),r&&r.value}remove(e){localStorage.removeItem(e)}}class l{static init(e){n=e&&(0,i.J)().localStorage?new c:new u}static set(e,t,r){n.set(e,t,r||3e5)}static get(e){let t=n.get(e),r=t?(0,o.o3)(t):{};return"undefined"===t&&(t=void 0),t&&r?r:t}static remove(e){n.remove(e)}}var d=l},17867:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n,i,o={name:"Content",properties:{fields:{type:"array"}}},s={name:"SearchFilter",properties:{type:{},name:{required:!0},values:{type:"array",required:!0}}},a={name:"Rule",properties:{behaviors:{}
139,blacklist:{type:"model",model:{name:"Blacklist",properties:{filter:{type:"model",model:s,required:!0}}}},boost:{type:"array",model:{name:"Boost",properties:{filter:{type:"model",model:s,required:!0},slots:{type:"array",required:!0}}}},bury:{type:"model",model:{name:"Bury",properties:{filter:{type:"model",model:s,required:!0}}}},include:{type:"array",model:{name:"Include",properties:{filter:{type:"model",model:s,required:!0},slots:{type:"array",required:!0}}}},pin:{type:"array",model:{name:"Pin",properties:{id:{required:!0},slot:{type:"array",required:!0}}}}}},u={name:"FacetSort",properties:{name:{required:!0},order:{required:!0}}};(i=n||(n={})).HARD_FILTERS="hard_filters",i.OTHER_FACET_VALUES="other_facet_values",i.OWN_VALUES="own_values";var c={name:"WidgetItem",buildInterface:!0,properties:{entity:{required:!0},rfk_id:{required:!0,name:"rfkId"},recommendations:{type:"model",model:{name:"Recommendations",properties:{content:{type:"model",model:o},filter:{type:"model",model:s},recipe:{type:"model",model:{name:"RecommendationsRecipe",properties:{id:{},version:{}}}},limit:{},rule:{type:"model",model:a}}}},questions:{type:"model",model:{name:"Questions",properties:{keyphrase:{},exact_answer:{type:"model",model:{name:"ExactAnswer",properties:{query_types:{type:"array"}}}},related_questions:{type:"model",model:{name:"RelatedQuestions",properties:{limit:{},offset:{}}}}}}},rfk_flags:{type:"array",name:"rfkFlags"},search:{type:"model",model:{name:"Search",properties:{sort:{type:"model",model:{name:"Sort",properties:{choices:{},value:{type:"model",model:{name:"SortItem",properties:{name:{required:!0},order:{}}},exportKey:["value[0]"],name:"criteria"}}}},content:{type:"model",model:o},facet:{type:"model",model:{name:"Facet",properties:{all:{},max:{},sort:{type:"model",model:u},types:{type:"array",model:{name:"FacetType",properties:{after:{},exclude:{type:"array"},filter:{},filtering_options:{type:"array"},keyphrase:{},max:{},min_count:{},name:{required:!0},sort:{type:"array",model:u}}}}}}},filter:{},group_by:{},limit:{},offset:{},personalization:{type:"model",model:{name:"Personalization",properties:{algorithm:{},fields:{type:"array"},ids:{type:"array"}}}},query:{type:"model",model:{name:"Query",properties:{highlight:{type:"model",model:{name:"Highlight",properties:{fields:{type:"array",required:!0},fragment_size:{},post_tag:{type:"string"},pre_tag:{type:"string"}}}},keyphrase:{required:!0},operator:{},relevance:{type:"array",model:{name:"Relevance",properties:{analyzer:{required:!0},name:{required:!0},weight:{}}}}}}},ranking:{type:"array",model:{name:"Ranking",properties:{name:{required:!0},weight:{}}}},response_context:{type:"model",model:{name:"ResponseContext",properties:{}},merge:!0},rule:{type:"model",model:a},suggestion:{type:"array",model:{name:"Suggestion",properties:{exclude:{},keyphrase_fallback:{},max:{},name:{required:!0}}}},swatch:{type:"model",model:{name:"Swatch",properties:{fields:{type:"array"},group_by:{},max:{}}}}}}},sources:{type:"array"},appearance:{type:"model",model:{name:"Appearance",properties:{templates:{type:"model",model:{name:"Templates",properties:{sections:{type:"array"},devices:{type:"array"},keep_variables:{},keep_original_css:{}}}},variables:{type:"model",model:{name:"Variables",properties:{sections:{type:"array"}}}}}}}}}},65077:function(e,t,r){"use strict";r.d(t,{T:function(){return i}});var n=r(67294);let i=(0,n.createContext)({}),o=(0,n.createContext)({});t.Z=o},40137:function(e,t,r){"use strict";r.d(t,{Zg:function(){return ef}});var n=r(26448),i=r(8490),o=r(67294),s=r(51462),a=r(65077),u=r(16758);let c=()=>Math.random().toString(36).substring(2,9),l=({rfkId:e,entity:t,children:r})=>{let n=(0,o.useMemo)(()=>c(),[]),i=(0,o.useCallback)(r=>s.Z.dispatch({...r,payload:{rfkId:e,instanceId:n,entity:t,...r.payload}}),[e,t,n]),u=(0,o.useMemo)(()=>({rfkId:e,instanceId:n,dispatch:i,entity:t}),[e,i,t,n]);return(0,o.createElement)(a.T.Provider,{value:u},r)};var d=e=>{let{children:t}=e,r=(0,u.Z)();return r?.rfkId===e.rfkId?(0,o.createElement)(o.Fragment,{},t||null):(0,o.createElement)(l,e,t)},h=r(49853),f=r(12237),p=r(5693),y=r(22694);let m=(e,t,r)=>{Object.keys(r).forEach(n=>{"function"==typeof e[n]&&e[n](t,r)})},v=(e,t,r={})=>{let{options:{propStateMapping:n=null,props:{initial:i={}}={}}={}}=p.Z.get(e)||{};
139n&&m(n,t,(0,h.E)(i,r))};var g={visibility:{threshold:.2,triggerOnce:!0}},b=r(4601),E={name:"Ordercloud",buildInterface:!0,file:"ocContext",properties:{sellerId:{type:"string"},requiredInventoryLocations:{type:"array",name:"requiredInventoryLocations"}}};let O=(0,b.N)(E);class _ extends O{}var w=r(43419);class S extends w.x{constructor(){super(),Object.defineProperty(this,"ocContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.setContext(new _),s.Z.subscribe(this)}setContext(e){this.ocContext=e,this.ocContext.addListener(this)}getContext(){return this.ocContext}handleAction(e){switch(e.type){case y.Z.OC_CONTEXT_CHANGED:n.Yd.info("OC Context changed");break;case y.Z.INITIALIZE:this.initialize()}}onChange(e,t,r){this.initialized&&s.Z.dispatch({type:y.Z.OC_CONTEXT_CHANGED,payload:{context:this.ocContext}})}}var T=new S,C=r(69496),k=r(64661),x=r(98357);let A=(e,t)=>(e.cancel=()=>{t.abort()},e);var D=r(37423);let R=()=>String(Date.now().toString(32)+Math.random().toString(16)).replace(/\./g,"");var N={async getData(e,t){let r=new AbortController,n={...t,signal:r.signal,abortController:r};return A(this.fetch(e.toJson(),n),r)},async fetch(e,t){let r=R(),n=f.ZP.getContext(),i=(0,h.E)({context:n.toJson()},e);s.Z.dispatch({type:y.Z.REQUEST,payload:{requestId:r,request:e,pageContext:n,payload:i}});try{let o=await D.Z.get(i,{signal:t?.signal});return s.Z.dispatch({type:y.Z.REQUEST_SUCCESS,payload:{requestId:r,request:e,pageContext:n,payload:i,response:o}}),{_requestId:r,...o}}catch(t){return s.Z.dispatch({type:y.Z.REQUEST_FAIL,payload:{error:t,requestId:r,request:e,pageContext:n,payload:i}}),Promise.reject(t)}}},I=r(95635);let P={name:"Widget",properties:{items:{type:"array",model:r(17867).Z}}};var j={context:{type:"model",model:I.Z},rfk_flags:{type:"array",name:"rfkFlags"},widget:{type:"model",model:P}};let F={name:"OCSearchRequest",file:"OCSearchRequest",buildInterface:!0,properties:{...j,ordercloud:{type:"model",model:E,setter:"setOrderCloudContext",getter:"getOrderCloudContext"}}},L=(0,b.N)(F);class M extends L{getWidgetInfo(e){return this.getWidgetItems()?.find(t=>t.rfk_id&&t.rfk_id===e)}addWidgets(e){return e.forEach(e=>this.addWidgetItem(e)),this}}let q={name:"SearchRequest",file:"SearchRequest",buildInterface:!0,properties:{...j}},U=(0,b.N)(q);class V extends U{getWidgetInfo(e){return this.getWidgetItems()?.find(t=>t.rfk_id&&t.rfk_id===e)}addWidgets(e){return e.forEach(e=>this.addWidgetItem(e)),this}}var B=()=>{let{connector:e}=(0,k.dS)();if("oc"===e){n.Yd.info("Using OC Request");let e=new M;return e.setOrderCloudContext(T.getContext().toJson()),e}return n.Yd.info("Using default Request"),new V};let K=({rfkId:e,entity:t})=>`${e}@${t}`,Q=(e,t,r,n)=>{e.has(t)||e.set(t,new Map([[r,{}]])),e.get(t).set(r,n)},$=e=>{let t=new Map;return e.slice().reverse().forEach(([e,r])=>{let{rfkId:n,instanceId:i,payload:o}=e,s=K(e);t.get(s)?.get(i||"")?r.abortController.abort():Q(t,s,i||"",{...o,rfk_id:n})}),t},z=(e,t)=>{let{payload:r}=e,n=B();return n.addWidgetItem(r),e.context&&n.setContext(e.context.toJson()),N.fetch(n.toJson(),t)},G=async e=>{let t=B(),r=Array.from($(e.filter(([e,t])=>!t.signal.aborted)).values()).map(e=>Array.from(e.values())).flat();t.addWidgets(r),e[0][0].context&&t.setContext(e[0][0].context.toJson());let{requestMiddleware:n}=(0,k.dS)();n&&await n();let i=await N.fetch(t.toJson());return e.map(([,{abortController:e}])=>e.signal.aborted?Object.assign({},i,{_canceled:!0}):i)},W={},H=e=>(W[e]||(W[e]=C(G,250,{accumulate:!0})),W[e]),J=(e,t)=>H(t.groupBy)(e,t),Z=(e,t)=>{if(t?.debounceBy)return`debounceBy@${t.debounceBy}`;let r=e.context?.toJson();return r?JSON.stringify(r):"default"};var Y={async getWidgetData(e,t){let{rfkId:r,entity:n,request:i}=e,o=f.ZP.getContext(),a=i.toJson();s.Z.dispatch({type:y.Z.WIDGET_DATA_REQUEST,payload:{...e,pageContext:o,payload:a}});try{let i=await this.fetchWidgetData({...e,payload:a},t);if(i._canceled)return s.Z.dispatch({type:y.Z.WIDGET_DATA_REQUEST_CANCELED,payload:{...e,pageContext:o,payload:a}}),Promise.reject(new x.Z(i));let{_requestId:u,...c}=i,{widgets:l=[]}=c,d=l.find(({rfk_id:e,entity:t})=>e===r&&t===n);if(!d)throw Error(`Response processing error: could not find ${r} in response`);return s.Z.dispatch({type:y.Z.WIDGET_DATA_REQUEST_SUCCESS,payload:{...e,pageContext:o,response:d,payload:a,requestId:u}}),d}catch(t){return s.Z.dispatch({type:y.Z.WIDGET_DATA_REQUEST_FAIL,payload:{error:t,...e,pageContext:o,payload:a}}),Promise.reject(t)}},fetchWidgetData(e,t){let r=new AbortController,n={...t,signal:r.signal,abortController:r,groupBy:Z(e,t)};return t?.signal?.addEventListener("abort",()=>{r.abort()}),A(t?.debounce?J(e,n):z(e,n),r)}},X=r(70458);let ee=(e,t,...r)=>[t.getRfkId(),e,f.ZP.getContext().toJson(),t.toJson(),T.getContext().toJson(),...r];class et{constructor(e,t){Object.defineProperty(this,"instanceId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:new X.Z}),Object.defineProperty(this,"ocContext",{enumerable:!0,configurable:!0,writable:!0,value:new _}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"debounced",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"debounceBy",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"widgetRequest",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lastResponse",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"enabled",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"enabledChangeListeners",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"destroyListeners",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.widgetRequest=t,this.instanceId=e}onUpdate(e){var t,r;let n;let i=(t=()=>{e()},function(...e){let i=this;clearTimeout(n),n=setTimeout(function(){n=null,r||t.apply(i,e)},50)}),o={handleAction(e){switch(e.type){case y.Z.OC_CONTEXT_CHANGED:case y.Z.PAGE_CONTEXT_CHANGED:i()}}};f.ZP.register(o);let s={onChange(e,t,r){i()}};
139this.getRequest().addListener(s),this.getContext().addListener(s),this.getOCContext().addListener(s);let a=e=>{e&&i()};this.enabledChangeListeners.push(a),this.destroyListeners.push(()=>{f.ZP.unregister(o),this.getRequest().removeListener(s),this.getContext().removeListener(s),this.getOCContext().removeListener(s),this.enabledChangeListeners=this.enabledChangeListeners.filter(e=>e!==a)})}destroy(){this.destroyListeners.forEach(e=>{e()}),this.destroyListeners=[]}getContext(){return this.context}getOCContext(){return this.ocContext}getRequest(){return this.widgetRequest}getKey(){return ee(this.instanceId,this.widgetRequest,this.context.toJson())}getLastResponse(){return this.lastResponse}getRequestContext(){return(0,h.E)(f.ZP.getContext().toJson(),this.context.toJson())}getRequestOCContext(){return(0,h.E)(T.getContext().toJson(),this.ocContext.toJson())}setDebounced(e){this.debounced=e}isDebounced(){return this.debounced}setDebounceBy(...e){this.debounceBy=e.join("#")}getDebounceBy(){return this.debounceBy}fetch(e={}){return this.run(e)}run(e={}){let t={rfkId:this.getRequest().getRfkId(),entity:this.getRequest().getEntity(),instanceId:this.instanceId,request:this.getRequest(),context:this.getContext(),ocContext:this.getOCContext()};return Y.getWidgetData(t,{debounceBy:this.getDebounceBy(),debounce:this.isDebounced(),...e}).then(e=>(this.lastResponse=e,e))}setEnabled(e){e!==this.enabled&&(this.enabled=e,this.enabledChangeListeners.forEach(t=>{t(e)}))}toggleEnabled(){this.setEnabled(!this.enabled)}isEnabled(){return this.enabled}getInstanceId(){return this.instanceId}}let er=(e,t,r)=>{e({type:t,payload:r})},en=(e,t)=>{let{actionProps:r={}}=t;return Object.keys(r).reduce((t,n)=>({...t,[n]:er.bind(null,e,r[n])}),{})},ei=({dispatch:e,entity:t,instanceId:r,rfkId:n})=>{let i={},o={},s=!1,a=(0,f.QS)(n);a.setEntity(t);let u=new et(r,a),c=(0,h.E)(g,p.Z.get(n,t)?.options),l=en(e,c),d=(e,t)=>Object.fromEntries(Object.entries(t).filter(([t,r])=>e[t]!==r)),m=e=>{Object.assign(i,"function"==typeof e?e():e)},b=e=>{v(u.getRequest().getRfkId(),u.getRequest(),i),e&&e(u),u.getRequest().takeSnapshot()},E=e=>{Object.assign(o,e)};return{actions:l,options:c,query:u,state:i,config:o,updateState:o=>{let s=d(i,o);Object.assign(i,o),e({type:y.Z.WIDGET_STATE_CHANGED,payload:{rfkId:n,entity:t,instanceId:r,state:s}})},initialize:e=>{s||(m(e.state),b(e.query),E(e.config),s=!0)},isInitialized:()=>s}};var eo=({children:e})=>{let{rfkId:t,entity:r,dispatch:n,instanceId:i}=(0,u.Z)(),s=(0,o.useRef)();return s.current||(s.current=ei({dispatch:n,entity:r,instanceId:i,rfkId:t})),(0,o.useEffect)(()=>(n({type:y.Z.LOAD,payload:{rfkId:t,entity:r,instanceId:i}}),()=>{n({type:y.Z.UNLOAD,payload:{rfkId:t,entity:r,instanceId:i}})}),[n,t,r,i]),(0,o.createElement)(a.Z.Provider,{value:s.current},e)};let es=(...e)=>(t,r)=>e.reduceRight((e,t)=>(0,o.createElement)(t,r,e),t),ea=(e,t)=>(0,o.createElement)(e,t);var eu=r(4687),ec=r(45299);let el=(e,t,r)=>{if(!0===e.__wrapped)throw Error(`Seems you are trying to wrap an already wrapped Widget component (entity: ${t})`);return r.__wrapped=!0,r},ed=(e,t,r,n)=>el(t,r,i=>{let{rfkId:s}=i;return(0,o.useMemo)(()=>{p.Z.setType(s,e)},[s]),n(i,{rfkId:s,entity:r},t)}),eh=(e,t,r)=>es(d,eo)(ea(r,e),t),ef=(e,t,r)=>(n.Yd.debug("widget",e&&e.name,t),ed(t,e,r,eh));ef(eu.Z,i.L.BANNER,"content"),ef(eu.Z,i.L.HTML_BLOCK,"content"),ef(ec.Z,i.L.SEO,"content")},16758:function(e,t,r){"use strict";var n=r(67294),i=r(65077);t.Z=()=>(0,n.useContext)(i.T)},26666:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return A}});var i=r(67294),o=r(98357),s=r(25769),a=r(32161),u=r(30081),c=r(15761),l=r(33989),d=r(72379);class h extends l.l{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),f(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return p(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return p(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),(0,a.VS)(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();let i=this.hasListeners();i&&y(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==n||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();let o=this.computeRefetchInterval();i&&(this.currentQuery!==n||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(e){let t=this.client.getQueryCache().build(this.client,e),r=this.createResult(t,e);return e.keepPreviousData||(void 0!==e.placeholderData?!r.isPlaceholderData:(0,a.VS)(this.getCurrentResult(),r))||(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(r=>{Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),e[r])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),r=this.client.getQueryCache().build(this.client,t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(a.ZT)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),a.sk||this.currentResult.isStale||!(0,a.PN)(this.options.staleTime))return;let e=(0,a.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!a.sk&&!1!==this.options.enabled&&(0,a.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>
139{(this.options.refetchIntervalInBackground||c.j.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let r;let n=this.currentQuery,i=this.options,o=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,c=e!==n,l=c?e.state:this.currentQueryInitialState,h=c?this.currentResult:this.previousQueryResult,{state:p}=e,{dataUpdatedAt:v,error:g,errorUpdatedAt:b,fetchStatus:E,status:O}=p,_=!1,w=!1;if(t._optimisticResults){let r=this.hasListeners(),o=!r&&f(e,t),s=r&&y(e,n,t,i);(o||s)&&(E=(0,d.Kw)(e.options.networkMode)?"fetching":"paused",v||(O="loading")),"isRestoring"===t._optimisticResults&&(E="idle")}if(t.keepPreviousData&&!p.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==O)r=h.data,v=h.dataUpdatedAt,O=h.status,_=!0;else if(t.select&&void 0!==p.data){if(o&&p.data===(null==s?void 0:s.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(p.data),r=(0,a.oE)(null==o?void 0:o.data,r,t),this.selectResult=r,this.selectError=null}catch(e){this.selectError=e}}else r=p.data;if(void 0!==t.placeholderData&&void 0===r&&"loading"===O){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==u?void 0:u.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(O="success",r=(0,a.oE)(null==o?void 0:o.data,e,t),w=!0)}this.selectError&&(g=this.selectError,r=this.selectResult,b=Date.now(),O="error");let S="fetching"===E,T="loading"===O,C="error"===O;return{status:O,fetchStatus:E,isLoading:T,isSuccess:"success"===O,isError:C,isInitialLoading:T&&S,data:r,dataUpdatedAt:v,error:g,errorUpdatedAt:b,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:S,isRefetching:S&&!T,isLoadingError:C&&0===p.dataUpdatedAt,isPaused:"paused"===E,isPlaceholderData:w,isPreviousData:_,isRefetchError:C&&0!==p.dataUpdatedAt,isStale:m(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){let t=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,a.VS)(r,t))return;this.currentResult=r;let n={cache:!0};(null==e?void 0:e.listeners)!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.trackedProps.size)return!0;let n=new Set(null!=r?r:this.trackedProps);return this.options.useErrorBoundary&&n.add("error"),Object.keys(this.currentResult).some(e=>this.currentResult[e]!==t[e]&&n.has(e))})()&&(n.listeners=!0),this.notify({...n,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||(0,d.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){u.V.batch(()=>{var t,r,n,i,o,s,a,u;e.onSuccess?(null==(t=(r=this.options).onSuccess)||t.call(r,this.currentResult.data),null==(n=(i=this.options).onSettled)||n.call(i,this.currentResult.data,null)):e.onError&&(null==(o=(s=this.options).onError)||o.call(s,this.currentResult.error),null==(a=(u=this.options).onSettled)||a.call(u,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function f(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOn
139Mount)||e.state.dataUpdatedAt>0&&p(e,t,t.refetchOnMount)}function p(e,t,r){if(!1!==t.enabled){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&m(e,t)}return!1}function y(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&m(e,r)}function m(e,t){return e.isStaleByTime(t.staleTime)}let v=r(61688).useSyncExternalStore,g=i.createContext((n=!1,{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n})),b=()=>i.useContext(g),E=i.createContext(!1),O=()=>i.useContext(E);E.Provider;let _=(e,t)=>{(e.suspense||e.useErrorBoundary)&&!t.isReset()&&(e.retryOnMount=!1)},w=e=>{i.useEffect(()=>{e.clearReset()},[e])},S=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>{var i;return e.isError&&!t.isReset()&&!e.isFetching&&(i=[e.error,n],"function"==typeof r?r(...i):!!r)},T=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.cacheTime&&(e.cacheTime=Math.max(e.cacheTime,1e3)))},C=(e,t)=>e.isLoading&&e.isFetching&&!t,k=(e,t,r)=>(null==e?void 0:e.suspense)&&C(t,r),x=(e,t,r)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{r.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)});var A=e=>{var t;let[r,n]=(0,i.useState)(()=>e.getKey()),c=(0,s.NL)();return(0,i.useEffect)(()=>(e.onUpdate(()=>{n(e.getKey())}),()=>{c.cancelQueries({queryKey:e.getKey(),exact:!0}),e.destroy()}),[e,c]),t={queryKey:r,queryFn:t=>e.run({signal:t.signal}).catch(e=>e instanceof o.Z?c.cancelQueries({queryKey:t.queryKey,exact:!0}).then(()=>null):Promise.reject(e)),refetchOnMount:!1,enabled:e.isEnabled()},function(e,t){let r=(0,s.NL)({context:e.context}),n=O(),o=b(),a=r.defaultQueryOptions(e);a._optimisticResults=n?"isRestoring":"optimistic",a.onError&&(a.onError=u.V.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=u.V.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=u.V.batchCalls(a.onSettled)),T(a),_(a,o),w(o);let[c]=i.useState(()=>new t(r,a)),l=c.getOptimisticResult(a);if(v(i.useCallback(e=>{let t=n?()=>void 0:c.subscribe(u.V.batchCalls(e));return c.updateResult(),t},[c,n]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),i.useEffect(()=>{c.setOptions(a,{listeners:!1})},[a,c]),k(a,l,n))throw x(a,c,o);if(S({result:l,errorResetBoundary:o,useErrorBoundary:a.useErrorBoundary,query:c.getCurrentQuery()}))throw l.error;return a.notifyOnChangeProps?l:c.trackResult(l)}((0,a._v)(t,void 0,void 0),h)}},42576:function(e,t,r){"use strict";var n=r(67294),i=r(65077);t.Z=()=>(0,n.useContext)(i.Z)},23423:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(67294),i=r(42576);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var a=new Map,u=new WeakMap,c=0,l=void 0;function d(e,t,r,n){if(void 0===r&&(r={}),void 0===n&&(n=l),void 0===window.IntersectionObserver&&void 0!==n){var i=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),function(){}}var o=function(e){var t=Object.keys(e).sort().filter(function(t){return void 0!==e[t]}).map(function(t){var r;return t+"_"+("root"===t?(r=e.root)?(u.has(r)||(c+=1,u.set(r,c.toString())),u.get(r)):"0":e[t])}).toString(),r=a.get(t);if(!r){var n,i=new Map,o=new IntersectionObserver(function(t){t.forEach(function(t){var r,o=t.isIntersecting&&n.some(function(e){return t.intersectionRatio>=e});e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=i.get(t.target))||r.forEach(function(e){e(o,t)})})},e);n=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:o,elements:i},a.set(t,r)}return r}(r),s=o.id,d=o.observer,h=o.elements,f=h.get(e)||[];return h.has(e)||h.set(e,f),f.push(t),d.observe(e),function(){f.splice(f.indexOf(t),1),0===f.length&&(h.delete(e),d.unobserve(e)),0===h.size&&(d.disconnect(),a.delete(s))}}var h=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function f(e){return"function"!=typeof e.children}var p=function(e){function t(t){var r;return(r=e.call(this,t)||this).node=null,r._unobserveCb=null,r.handleNode=function(e){!r.node||(r.unobserve(),e||r.props.triggerOnce||r.props.skip||r.setState({inView:!!r.props.initialInView,entry:void 0})),r.node=e||null,r.observeNode()},r.handleChange=function(e,t){e&&r.props.triggerOnce&&r.unobserve(),f(r.props)||r.setState({inView:e,entry:t}),r.props.onChange&&r.props.onChange(e,t)},r.state={inView:!!t.initialInView,entry:void 0},r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,s(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())},r.componentWillUnmount=function(){this.unobserve(),this.node=null},r.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,r=e.root,n=e.rootMargin,i=e.trackVisibility,o=e.delay,s=e.fallbackInView;this._unobserveCb=d(this.node,this.handleChange,{threshold:t,root:r,rootMargin:n,trackVisibility:i,delay:o},s)}},r.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},r.render=function(){if(!f(this.props)){var e=this.state,t=e.inView,r=e.entry;return this.props.children({inView:t,entry:r,ref:this.handleNode})}var i=this.props,s=i.children,a=i.as,u=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(i,h);return n.createElement(a||"div",o({ref:this.handleNode},u),s)},t}(n.Component);p.displayName="InView",p.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};var y=r(22694),m=r(69372),v=r(16758),g=()=>(0,i.Z)().query;let b=(e,t)=>{if(!t)return;let r=t.getLastResponse(),n=r?.content||[];e({type:y.Z.WIDGET_APPEAR,payload:{items:n.map(({id:e,source_id:t})=>({id:e,sourceId:t})),request:(0,m.d)(t)}})};var E=()=>{var e,t,r,o,s,a,u,c,l,h,f,p,y,m,E,O,_;let{dispatch:w}=(0,v.Z)(),{options:{visibility:S={}}={}}=(0,i.Z)(),T=g(),C=T.getLastResponse(),{triggerOnce:k=!0}=S,x=(0,n.useRef)(!0),{ref:A,inView:D,entry:R}=(r=(t={...S,triggerOnce:k}).threshold,o=t.delay,s=t.trackVisibility,a=t.rootMargin,u=t.root,c=t.triggerOnce,l=t.skip,h=t.initialInView,f=t.fallbackInView,p=n.useRef(),m=(y=n.useState({inView:!!h}))[0],E=y[1],O=n.useCallback(function(e){void 0!==p.current&&(p.current(),p.current=void 0),!l&&e&&(p.current=d(e,function(e,t){E({inView:e,entry:t}),t.isIntersecting&&c&&p.current&&(p.current(),p.current=void 0)},{root:u,rootMargin:a,threshold:r,trackVisibility:s,delay:o},f))},[Array.isArray(r)?r.toString():r,u,a,c,l,s,f,o]),(0,n.useEffect)(function(){p.current||!m.entry||c||l||E({inView:!!h})}),(_=[O,m.inView,m.entry]).ref=_[0],_.inView=_[1],_.entry=_[2],_),N=(0,n.useCallback)(()=>{b(w,T)},[w]);return(0,n.useEffect)(()=>{x.current&&D&&C&&(x.current=!k,b(w,T))},[w,D,R,k,C]),{ref:A,inView:D,entry:R,trigger:N}},O=()=>{let{options:e}=(0,i.Z)(),{visibility:{onInView:t,onUpdate:r}={}}=e,{ref:o,inView:s,entry:a}=E();return(0,n.useEffect)(()=>{s&&t&&t(a),r&&r(s,a)},[s,a,r,t]),o}},35064:function(e,t,r){"use strict";var n=r(67294),i=r(22694),o=r(12237),s=r(16758),a=r(42576);let u=(e,t)=>
139{let r={};for(let n in e)"request"!==n&&"response"!==n&&Object.defineProperty(r,n,{get:()=>(t[n]=!0,e[n])});return r},c=(e,t)=>{let r=Object.fromEntries(Object.entries(e).filter(([e])=>t[e]));return 0===Object.keys(r).length?null:r};t.Z=()=>{let e=(0,a.Z)(),{rfkId:t,instanceId:r}=(0,s.Z)(),[l,d]=(0,n.useState)(e.state),h=(0,n.useRef)({});return(0,n.useEffect)(()=>{let e={handleAction(e){if(e.type===i.Z.WIDGET_STATE_CHANGED){let{rfkId:n,instanceId:i=null,state:o}=e.payload;if(n===t&&r===i){let e=c(o,h.current);e&&d(t=>({...t,...e}))}}}};return o.ZP.register(e),()=>o.ZP.unregister(e)},[t,r]),u(l,h.current)}},69372:function(e,t,r){"use strict";r.d(t,{d:function(){return n}});let n=e=>{let t=e.getRequest().getSearchLimit()?e.getRequest().getSearchLimit():e.getLastResponse()?.limit,r=t?Math.floor((e.getRequest().getSearchOffset()||0)/t+1):0;return{keyword:e.getRequest().getSearchQueryKeyphrase()||"",pageNumber:isNaN(r)?void 0:r,pageSize:t,numRequested:t,numResults:e.getLastResponse()?.content?.length,totalResults:e.getLastResponse()?.total_item}}},99131:function(e,t,r){"use strict";var n=r(16758),i=r(26666),o=r(42576),s=r(23423),a=r(35064);t.Z=function(e){let{rfkId:t,dispatch:r}=(0,n.Z)(),u=(0,o.Z)();u.isInitialized()||u.initialize(e||{});let{query:c,options:l,actions:d}=u,h=(0,a.Z)(),f=(0,i.Z)(c);return{widgetRef:(0,s.Z)(),rfkId:t,state:h,queryResult:f,actions:d,options:l,dispatch:r,query:c}}},4687:function(e,t,r){"use strict";var n=r(67294),i=r(23668),o=r(99131);t.Z=({initializer:e})=>{let{rfkId:t,widgetRef:r,queryResult:{data:{appearance:{css_names:s=[],templates:{html:{devices:{[i.qi.DESKTOP]:{content:a=null}={}}={}}={},css:{devices:{[i.qi.DESKTOP]:{content:u=null}={}}={}}={}}={}}={}}={}}}=(0,o.Z)({query:e||(()=>{})}),c=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{if(c.current&&u){var e;let r;e=c.current,(r=document.querySelector(`[data-rfk-id-style=${t}]`))||((r=document.createElement("style")).setAttribute("type","text/css"),r.dataset.rfkIdStyle=t,e.parentNode?.appendChild(r)),r.innerHTML=u}return()=>{!function(e){let t=document.querySelector(`[data-rfk-id-style=${e}]`);t&&t.remove()}(t)}},[t,u]),(0,n.useLayoutEffect)(()=>{c.current&&a&&(c.current.innerHTML=a)},[a]),(0,n.createElement)("div",{ref:r,"data-rfkid":t,className:s.join(" ")},(0,n.createElement)("div",{ref:c}))}},45299:function(e,t,r){"use strict";var n=r(67294),i=r(23668),o=r(99131);t.Z=()=>{let{queryResult:{data:{appearance:{templates:{html:{devices:{[i.qi.DESKTOP]:{content:e=null}={}}={}}={}}={}}={}}={}}}=(0,o.Z)();return(0,n.useLayoutEffect)(()=>{e&&document.head.insertAdjacentHTML("afterbegin",e)},[e]),null}},25769:function(e,t,r){"use strict";r.d(t,{NL:function(){return a},aH:function(){return u}});var n=r(67294);let i=n.createContext(void 0),o=n.createContext(!1);function s(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=i),window.ReactQueryClientContext):i)}let a=({context:e}={})=>{let t=n.useContext(s(e,n.useContext(o)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},u=({client:e,children:t,context:r,contextSharing:i=!1})=>{n.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let a=s(r,i);return n.createElement(o.Provider,{value:!r&&i},n.createElement(a.Provider,{value:e},t))}},85007:function(e,t,r){"use strict";var n,i;r.d(t,{e:function(){return n}}),(i=n||(n={})).FACET_CLICKED="searchResults/FACET_CLICKED",i.FILTER_CLICKED="searchResults/FILTER_CLICKED",i.REMOVE_FILTER="searchResults/REMOVE_FILTER",i.SORT_CHANGED="searchResults/SORT_CHANGED",i.PAGE_NUMBER_CHANGED="searchResults/PAGE_NUMBER_CHANGED",i.ITEM_CLICKED="searchResults/ITEM_CLICKED",i.RESULTS_PER_PAGE_CHANGED="searchResults/RESULTS_PER_PAGE_CHANGED",i.KEYPHRASE_CHANGED="searchResults/KEYPHRASE_CHANGED",i.CLEAR_FILTERS="searchResults/CLEAR_FILTERS"},53143:function(e,t,r){"use strict";r.d(t,{FS:function(){return A},Gw:function(){return S},Qe:function(){return m},RM:function(){return T},Rj:function(){return C},VQ:function(){return v},Xq:function(){return N},Xr:function(){return k},hN:function(){return i},mA:function(){return o},t$:function(){return b},zB:function(){return x},zW:function(){return s}});var n=(e={})=>Object.keys(e).reduce((t,r)=>Object.assign(t,{[o(r)]:e[r]}),{}),i=(e={})=>Object.keys(e).reduce((t,r)=>Object.assign(t,{[s(r)]:e[r]}),{});function o(e){return s(e).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,function(e){return"-"+e.toLowerCase()})}
139function s(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 a=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},u={},c=e=>{var{properties:t}=e;return Object.assign(Object.assign({},a(e,["properties"])),{type:"object",properties:{name:{type:"string"},displayName:{type:"string"},id:{type:"string"},url:{type:"string"},fields:l(t)}})};function l(e={}){return{type:"object",properties:Object.keys(e).reduce((t,r)=>{let n=e[r],{title:i}=n;return a(n,["title"]),Object.assign(Object.assign({},t),{[r]:{type:"object",properties:{value:Object.assign({title:i||r},e[r])}}})},{})}}var d={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:c,DropTree:c,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:c,List:e=>{var{properties:t}=e;return Object.assign(Object.assign({},a(e,["properties"])),{type:"array",items:{type:"object",properties:{name:{type:"string"},displayName:{type:"string"},id:{type:"string"},url:{type:"string"},fields:l(t)}}})}};function h(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=f(Object.assign({type:"object",properties:{},required:[]},e)),e=>e.properties?f(e,t):e)}function f(e,t={}){var r;let n=Object.assign({},e);return n.properties&&(n.required=(null===(r=e.required)||void 0===r?void 0:r.slice())||[],n.properties=Object.keys(n.properties).reduce((e,r)=>{var i;let s=n.properties[r],a=null===(i=u[null==s?void 0:s.type])||void 0===i?void 0:i.call(u,s),c=Object.assign(Object.assign(Object.assign({},a),s),{type:(null==a?void 0:a.type)||s.type,default:t.hasOwnProperty(r)?t[r]:s.default,title:s.title||o(r).split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")});return(null!=s&&s.properties||null!=a&&a.properties)&&(c.properties=Object.assign({},(null==a?void 0:a.properties)||(null==s?void 0:s.properties)),Object.keys((null==a?void 0:a.properties)||{}).forEach(e=>{var t,r;c.properties[e]=Object.assign(Object.assign({},null===(t=null==a?void 0:a.properties)||void 0===t?void 0:t[e]),null===(r=null==s?void 0:s.properties)||void 0===r?void 0:r[e])})),(null!=s&&s.items||null!=a&&a.items)&&(c.items=(null==a?void 0:a.items)||(null==s?void 0:s.items)),void 0===c.default&&delete c.default,"required"in c&&"boolean"==typeof c.required&&(-1==n.required.indexOf(r)&&n.required.push(r),delete c.required),Object.assign(e,{[r]:c})},{})),Object.assign({type:"object"},n)}
139Object.keys(d).forEach(e=>{!function(e,{name:t}){if(t.charAt(0)!=t.charAt(0).toUpperCase())throw Error("Custom types must start with a capital letter");u[t]=e}(d[e],{name:e})});var p=(e,t)=>{var r,n,i,o;let s=Object.assign({},e);for(var a in t)"object"==typeof t[a]&&t[a]&&(((null===(r=t[a])||void 0===r?void 0:r.type)=="integer"||(null===(n=t[a])||void 0===n?void 0:n.type)=="number")&&(s[a]=Object.assign(Object.assign({},s[a]),{"ui:options":{widget:"updown"}})),!(null===(i=t[a])||void 0===i)&&i.ui&&(s[a]=Object.assign(Object.assign({},s[a]),{"ui:options":Object.assign(Object.assign({},null===(o=s[a])||void 0===o?void 0:o["ui:options"]),t[a].ui)})),s=Object.assign(Object.assign({},s),{[a]:t[a].items?{items:p(s[a],t[a].items.properties)}:p(s[a],t[a].properties||{})}));return s};function y(e,t){switch(t){case"string":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;default:return e}}var m="undefined"!=typeof window?window.BYOCDatasources||(window.BYOCDatasources={}):{};function v(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.");m[t.id]=Object.assign(Object.assign({},function(e){let{id:t,name:r,title:n,properties:i,sample:o,schema:s,description:a=null,type:u="object"}=e;return{id:t,description:a,sample:o,name:r||n||t,handler:e=>e,schema:s||i?h(Object.assign(Object.assign({},s||{properties:i,type:u}),{title:(null==s?void 0:s.title)||n||r})):void 0}}(t)),{handler:e}),g()}function g(){clearTimeout(E),"undefined"!=typeof window&&window.parent!==window&&(E=setTimeout(()=>{var e;null===(e=window.parent)||void 0===e||e.postMessage(JSON.stringify({action:"register-datasources",data:Object.values(m)}),"*")},30))}function b(e,t){let r=m[e];return null!=r&&r.handler?r.handler(t):t}g();var E,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},w="undefined"!=typeof HTMLElement?HTMLElement:"undefined"!=typeof windowJSDOM?windowJSDOM.HTMLElement:class{setAttribute(){}},S="undefined"!=typeof window?window.BYOCComponents||(window.BYOCComponents={}):{};function T(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:s=null,ui:a,isHidden:u=!1,datasourceIds:c=[],links:l={},meta:d={},uiSchema:f,schema:y}=e,m=_(e,["thumbnail","name","id","group","ui","isHidden","datasourceIds","links","meta","uiSchema","schema"]),v=h(Object.assign(Object.assign({description:"External component"},y||m||{}),{type:"object"}),r),g=p(f||a||{},v.properties||{});return{component:t||(()=>null),name:i,schema:v,uiSchema:g,thumbnail:n,group:s||"Default collection",isHidden:u,id:o,datasourceIds:c,links:l,meta:d,title:(null==v?void 0:v.title)||(null==m?void 0:m.title)||i}}(t,e,r);S[n.id]=n,C(e)&&D.register("byoc-"+o(t.name),void 0,e),A()}function C(e){return e&&"prototype"in e&&"setAttribute"in e.prototype}function k(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=S[t];if(r){let t=S[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)})),r.split(/\&/g).forEach(e=>{var t,r,i;let[o,s]=e.split("="),a=(null===(t=n.schema.properties)||void 0===t?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({},a),{default:y(decodeURIComponent(s),a.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?void 0:r["ui:widget"])&&void 0!==i?i:"hidden"})})})})}return n}
139function x(e){let{componentName:t,className:r,fallbackWrapper:i,fallback:a,suppressHydrationWarning:u,_dynamic:c,datasources:l}=e,d=_(e,["componentName","className","fallbackWrapper","fallback","suppressHydrationWarning","_dynamic","datasources"]);try{var h="string"==typeof l?JSON.parse(l):l}catch(e){}let f=Object.values(h||{}).find(e=>e&&!Array.isArray(e)&&Object.keys(e).length>0),p=Object.assign(Object.assign(Object.assign({},f),function(e,t={}){var r;let n=null===(r=k(e))||void 0===r?void 0:r.schema;return n?Object.assign(Object.assign({},Object.keys(n.properties).reduce((e,t)=>{var r,i;return(null===(r=n.properties[t])||void 0===r?void 0:r.default)!=null?Object.assign(Object.assign({},e),{[t]:null===(i=n.properties[t])||void 0===i?void 0:i.default}):e},{})),Object.keys(t).reduce((e,r)=>{let i=t[r],o=s(r),a=null==n?void 0:n.properties[o],u=y(i,null==a?void 0:a.type);return null==u||r.startsWith("data-attribute")||["class","id","contenteditable"].includes(r)?e:Object.assign(Object.assign({},e),{[o]:u})},{})):t}(t,Object.assign(Object.assign({},f),d))),h?{datasources:h}:{}),m=Object.assign(Object.assign({"data-external-id":t},n(p)),{suppressHydrationWarning:!0,class:r});return I.forEach(e=>{Object.assign(m,{[o(e)]:R[e]})}),Object.keys(m).forEach(e=>{let t=m[e];if(t&&"object"==typeof t&&"class"!=e&&"children"!=e)try{Object.assign(m,{[e]:JSON.stringify(t)})}catch(t){delete m[e]}("function"==typeof t||null==t)&&delete m[e]}),{attributes:m,properties:p,merged:Object.assign(Object.assign({},R),p)}}function A(){clearTimeout(O),"undefined"!=typeof window&&window.parent!==window&&(O=setTimeout(()=>{var e;null===(e=window.parent)||void 0===e||e.postMessage(JSON.stringify({action:"register-components",data:Object.values(S)}),"*")},30))}A();var D=class extends w{connectedCallback(){try{JSON.parse(String(this.getAttribute("components"))).forEach(e=>{k(e.id)||T(null,e)}),JSON.parse(String(this.getAttribute("datasources"))).forEach(e=>{m[e.id]||v(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{})}},R={};function N(e){R=e}var I=["sitecoreEdgeUrl","sitecoreEdgeContextId"];D.register("byoc-registration")},15761:function(e,t,r){"use strict";r.d(t,{j:function(){return s}});var n=r(33989),i=r(32161);class o extends n.l{constructor(){super(),this.setup=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let s=new o},30081:function(e,t,r){"use strict";r.d(t,{V:function(){return i}});var n=r(32161);let i=function(){let e=[],t=0,r=e=>{e()},i=e=>{e()},o=i=>{t?e.push(i):(0,n.A4)(()=>{r(i)})},s=()=>{let t=e;e=[],t.length&&(0,n.A4)(()=>{i(()=>{t.forEach(e=>{r(e)})})})};return{batch:e=>{let r;t++;try{r=e()}finally{--t||s()}return r},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{i=e}}}()},96474:function(e,t,r){"use strict";r.d(t,{N:function(){return a}});var n=r(33989),i=r(32161);let o=["online","offline"];class s extends n.l{constructor(){super(),this.setup=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return o.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{o.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}
139onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let a=new s},72379:function(e,t,r){"use strict";r.d(t,{DV:function(){return c},Kw:function(){return a},Mz:function(){return l}});var n=r(15761),i=r(96474),o=r(32161);function s(e){return Math.min(1e3*2**e,3e4)}function a(e){return(null!=e?e:"online")!=="online"||i.N.isOnline()}class u{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function c(e){return e instanceof u}function l(e){let t,r,c,l=!1,d=0,h=!1,f=new Promise((e,t)=>{r=e,c=t}),p=()=>!n.j.isFocused()||"always"!==e.networkMode&&!i.N.isOnline(),y=n=>{h||(h=!0,null==e.onSuccess||e.onSuccess(n),null==t||t(),r(n))},m=r=>{h||(h=!0,null==e.onError||e.onError(r),null==t||t(),c(r))},v=()=>new Promise(r=>{t=e=>{let t=h||!p();return t&&r(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,h||null==e.onContinue||e.onContinue()}),g=()=>{let t;if(!h){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(y).catch(t=>{var r,n;if(h)return;let i=null!=(r=e.retry)?r:3,a=null!=(n=e.retryDelay)?n:s,u="function"==typeof a?a(d,t):a,c=!0===i||"number"==typeof i&&d<i||"function"==typeof i&&i(d,t);if(l||!c){m(t);return}d++,null==e.onFail||e.onFail(d,t),(0,o.Gh)(u).then(()=>{if(p())return v()}).then(()=>{l?m(t):g()})})}};return a(e.networkMode)?g():v().then(g),{promise:f,cancel:t=>{h||(m(new u(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?f:Promise.resolve(),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1}}}},33989:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});class n{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},32161:function(e,t,r){"use strict";r.d(t,{A4:function(){return _},G9:function(){return w},Gh:function(){return O},I6:function(){return c},Kp:function(){return a},PN:function(){return s},Rm:function(){return h},SE:function(){return o},VS:function(){return m},X7:function(){return d},ZT:function(){return i},_v:function(){return u},_x:function(){return l},oE:function(){return S},sk:function(){return n},to:function(){return p},yF:function(){return f}});let n="undefined"==typeof window||"Deno"in window;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t,r){return E(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function c(e,t,r){return E(e)?[{...t,queryKey:e},r]:[e||{},t]}function l(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(E(s)){if(n){if(t.queryHash!==h(s,t.options))return!1}else{if(!y(t.queryKey,s))return!1}}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(void 0===i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:r,fetching:n,predicate:i,mutationKey:o}=e;if(E(o)){if(!t.options.mutationKey)return!1;if(r){if(f(t.options.mutationKey)!==f(o))return!1}else{if(!y(t.options.mutationKey,o))return!1}}return("boolean"!=typeof n||"loading"===t.state.status===n)&&(!i||!!i(t))}function h(e,t){return((null==t?void 0:t.queryKeyHashFn)||f)(e)}function f(e){return JSON.stringify(e,(e,t)=>g(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function p(e,t){return y(e,t)}function y(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!y(e[r],t[r]))}function m(e,t){if(e&&!t||t&&!e)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function g(e){if(!b(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(b(r)&&r.hasOwnProperty("isPrototypeOf"))}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function E(e){return Array.isArray(e)}function O(e){return new Promise(t=>{setTimeout(t,e)})}function _(e){O(0).then(e)}function w(){if("function"==typeof AbortController)return new AbortController}function S(e,t,r){return null!=r.isDataEqual&&r.isDataEqual(e,t)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r,n=0){if(t===r)return t;if(n>500)return r;let i=v(t)&&v(r);if(i||g(t)&&g(r)){let o=i?t.length:Object.keys(t).length,s=i?r:Object.keys(r),a=s.length,u=i?[]:{},c=0;for(let o=0;o<a;o++){let a=i?o:s[o];
139u[a]=e(t[a],r[a],n+1),u[a]===t[a]&&c++}return o===a&&c===o?t:u}return r}(e,t):t}},16833:function(e,t,r){"use strict";r.d(t,{$s:function(){return c},E2:function(){return d},Hn:function(){return l}});let n=e=>{let t=typeof e;return null!==e&&("object"===t||"function"===t)},i=new Set(["__proto__","prototype","constructor"]),o=new Set("0123456789");function s(e){let t=[],r="",n="start",s=!1;for(let a of e)switch(a){case"\\":if("index"===n)throw Error("Invalid character in an index");if("indexEnd"===n)throw Error("Invalid character after an index");s&&(r+=a),n="property",s=!s;break;case".":if("index"===n)throw Error("Invalid character in an index");if("indexEnd"===n){n="property";break}if(s){s=!1,r+=a;break}if(i.has(r))return[];t.push(r),r="",n="property";break;case"[":if("index"===n)throw Error("Invalid character in an index");if("indexEnd"===n){n="index";break}if(s){s=!1,r+=a;break}if("property"===n){if(i.has(r))return[];t.push(r),r=""}n="index";break;case"]":if("index"===n){t.push(Number.parseInt(r,10)),r="",n="indexEnd";break}if("indexEnd"===n)throw Error("Invalid character after an index");default:if("index"===n&&!o.has(a))throw Error("Invalid character in an index");if("indexEnd"===n)throw Error("Invalid character after an index");"start"===n&&(n="property"),s&&(s=!1,r+="\\"),r+=a}switch(s&&(r+="\\"),n){case"property":if(i.has(r))return[];t.push(r);break;case"index":throw Error("Index was not closed");case"start":t.push("")}return t}function a(e,t){if("number"!=typeof t&&Array.isArray(e)){let r=Number.parseInt(t,10);return Number.isInteger(r)&&e[r]===e[t]}return!1}function u(e,t){if(a(e,t))throw Error("Cannot use string index")}function c(e,t,r){if(!n(e)||"string"!=typeof t)return void 0===r?e:r;let i=s(t);if(0===i.length)return r;for(let t=0;t<i.length;t++){let n=i[t];if(null==(e=a(e,n)?t===i.length-1?void 0:null:e[n])){if(t!==i.length-1)return r;break}}return void 0===e?r:e}function l(e,t,r){if(!n(e)||"string"!=typeof t)return e;let i=e,o=s(t);for(let t=0;t<o.length;t++){let i=o[t];u(e,i),t===o.length-1?e[i]=r:n(e[i])||(e[i]="number"==typeof o[t+1]?[]:{}),e=e[i]}return i}function d(e,t){if(!n(e)||"string"!=typeof t)return!1;let r=s(t);for(let t=0;t<r.length;t++){let i=r[t];if(u(e,i),t===r.length-1)return delete e[i],!0;if(!n(e=e[i]))return!1}}},45007:function(e,t,r){"use strict";r.d(t,{I0:function(){return v},v9:function(){return b},zt:function(){return h}});var n=r(67294),i=r(31103),o={notify(){},get:()=>[]},s=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),a="undefined"!=typeof navigator&&"ReactNative"===navigator.product,u=s||a?n.useLayoutEffect:n.useEffect,c=Symbol.for("react-redux-context"),l="undefined"!=typeof globalThis?globalThis:{},d=function(){if(!n.createContext)return{};let e=l[c]??=new Map,t=e.get(n.createContext);return t||(t=n.createContext(null),e.set(n.createContext,t)),t}(),h=function(e){let{children:t,context:r,serverState:i,store:s}=e,a=n.useMemo(()=>{let e=function(e,t){let r;let n=o,i=0,s=!1;function a(){l.onStateChange&&l.onStateChange()}function u(){if(i++,!r){let t,i;r=e.subscribe(a),t=null,i=null,n={clear(){t=null,i=null},notify(){(()=>{let e=t;for(;e;)e.callback(),e=e.next})()},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let r=!0,n=i={callback:e,next:null,prev:i};return n.prev?n.prev.next=n:t=n,function(){r&&null!==t&&(r=!1,n.next?n.next.prev=n.prev:i=n.prev,n.prev?n.prev.next=n.next:t=n.next)}}}}}function c(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=o)}let l={addNestedSub:function(e){u();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),c())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return s},trySubscribe:function(){s||(s=!0,u())},tryUnsubscribe:function(){s&&(s=!1,c())},getListeners:()=>n};return l}(s);return{store:s,subscription:e,getServerState:i?()=>i:void 0}},[s,i]),c=n.useMemo(()=>s.getState(),[s]);return u(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==s.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,c]),n.createElement((r||d).Provider,{value:a},t)};function f(e=d){return function(){return n.useContext(e)}}var p=f();function y(e=d){let t=e===d?p:f(e),r=()=>{let{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var m=y(),v=function(e=d){let t=e===d?m:y(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}(),g=(e,t)=>e===t,b=function(e=d){let t=e===d?p:f(e),r=(e,r={})=>{let{equalityFn:o=g}="function"==typeof r?{equalityFn:r}:r,{store:s,subscription:a,getServerState:u}=t();n.useRef(!0);let c=n.useCallback({[e.name]:t=>e(t)}[e.name],[e]),l=(0,i.useSyncExternalStoreWithSelector)(a.addNestedSub,s.getState,u||s.getState,c,o);return n.useDebugValue(l),l};return Object.assign(r,{withTypes:()=>r}),r}()},65849:function(e,t,r){"use strict";function n(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}r.d(t,{LG:function(){return h},MT:function(){return u},PO:function(){return a}
139,UY:function(){return c},md:function(){return d},qC:function(){return l}});var i="function"==typeof Symbol&&Symbol.observable||"@@observable",o=()=>Math.random().toString(36).substring(7).split("").join("."),s={INIT:`@@redux/INIT${o()}`,REPLACE:`@@redux/REPLACE${o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${o()}`};function a(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function u(e,t,r){if("function"!=typeof e)throw Error(n(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(n(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw Error(n(1));return r(u)(e,t)}let o=e,c=t,l=new Map,d=l,h=0,f=!1;function p(){d===l&&(d=new Map,l.forEach((e,t)=>{d.set(t,e)}))}function y(){if(f)throw Error(n(3));return c}function m(e){if("function"!=typeof e)throw Error(n(4));if(f)throw Error(n(5));let t=!0;p();let r=h++;return d.set(r,e),function(){if(t){if(f)throw Error(n(6));t=!1,p(),d.delete(r),l=null}}}function v(e){if(!a(e))throw Error(n(7));if(void 0===e.type)throw Error(n(8));if("string"!=typeof e.type)throw Error(n(17));if(f)throw Error(n(9));try{f=!0,c=o(c,e)}finally{f=!1}return(l=d).forEach(e=>{e()}),e}return v({type:s.INIT}),{dispatch:v,subscribe:m,getState:y,replaceReducer:function(e){if("function"!=typeof e)throw Error(n(10));o=e,v({type:s.REPLACE})},[i]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(n(11));function t(){e.next&&e.next(y())}return t(),{unsubscribe:m(t)}},[i](){return this}}}}}function c(e){let t;let r=Object.keys(e),i={};for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof e[n]&&(i[n]=e[n])}let o=Object.keys(i);try{!function(e){Object.keys(e).forEach(t=>{let r=e[t];if(void 0===r(void 0,{type:s.INIT}))throw Error(n(12));if(void 0===r(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw Error(n(13))})}(i)}catch(e){t=e}return function(e={},r){if(t)throw t;let s=!1,a={};for(let t=0;t<o.length;t++){let u=o[t],c=i[u],l=e[u],d=c(l,r);if(void 0===d)throw r&&r.type,Error(n(14));a[u]=d,s=s||d!==l}return(s=s||o.length!==Object.keys(e).length)?a:e}}function l(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function d(...e){return t=>(r,i)=>{let o=t(r,i),s=()=>{throw Error(n(15))},a={getState:o.getState,dispatch:(e,...t)=>s(e,...t)};return s=l(...e.map(e=>e(a)))(o.dispatch),{...o,dispatch:s}}}function h(e){return a(e)&&"type"in e&&"string"==typeof e.type}},76940:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.
1390","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(6840),t(13510)}),_N_E=e.O()}]);

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.