1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[373],{813:function(e,t,r){"use strict";r.d(t,{Q:function(){return n}});class n{constructor(e){this.config=e,this.DEFAULT_EXPORT_NAME="Default",this.components=new Map([...e.components])}getModuleFactory(){return e=>{let t=this.components.get(e);return t?t.module?t.module():t:null}}getComponentFactory({isEditing:e}={}){return(t,r)=>{let n=this.components.get(t);return n?n.element?n.element(e):r&&r!==this.DEFAULT_EXPORT_NAME?n[r]:n.Default||n.default||n:null}}}},6703:function(e,t,r){"use strict";r.d(t,{T5:function(){return i},ho:function(){return o}});var n=r(2784);let o=(0,n.createContext)({}),i=({children:e,value:t})=>n.createElement(o.Provider,{value:t},e)},1429:function(e,t,r){"use strict";r.d(t,{r:function(){return g}});var n=r(2784),o=r(5440),i=r.n(o),a=r(9097),l=r.n(a),s=r(9885),u=r(893),c=r(8043),d=r(4417),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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let f=(0,s.K)((0,u.c)((0,n.forwardRef)((e,t)=>{var{field:r,editable:o=!0,showLinkTextWithChildrenPresent:i}=e,a=p(e,["field","editable","showLinkTextWithChildrenPresent"]);let l=a.children;if(!r||!r.editableFirstPart&&(0,d.isFieldValueEmpty)(r))return null;let s=[];if(o&&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,s.push(n.createElement("span",Object.assign({},e))),!l)return s[0]}let u=r.href?r:r.value;if(!u)return null;let c="anchor"!==u.linktype&&u.anchor?`#${u.anchor}`:"",f=u.querystring?`?${u.querystring}`:"",h={href:`${u.href}${f}${c}`,className:u.class,title:u.title,target:u.target};"_blank"!==h.target||h.rel||(h.rel="noopener noreferrer");let m=i||!l?u.text||u.href:null;return s.push(n.createElement("a",Object.assign(Object.assign(Object.assign({},h),a),{key:"link",ref:t}),m,l)),n.createElement(n.Fragment,null,s)}),{defaultEmptyFieldEditingComponent:c.M,isForwardRef:!0}),!0),h={field:i().oneOfType([i().shape({href:i().oneOfType([i().string.isRequired,i().oneOf([null]).isRequired])}),i().shape({value:i().object,editableFirstPart:i().string,editableLastPart:i().string})]).isRequired,editable:i().bool,showLinkTextWithChildrenPresent:i().bool,emptyFieldEditingComponent:i().oneOfType([i().object,i().func])};f.propTypes=h,f.displayName="Link";var m=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let y=/^\/.*\.\w+$/,g=(0,n.forwardRef)((e,t)=>{let{field:r,editable:o=!0,children:i,internalLinkMatcher:a=/^\//g,showLinkTextWithChildrenPresent:s}=e,u=m(e,["field","editable","children","internalLinkMatcher","showLinkTextWithChildrenPresent"]);if(!r||!r.editable&&!r.value&&!r.href&&!r.metadata)return null;let c=r.href?r:r.value,{href:d,querystring:p,anchor:h}=c||{},g=o&&(r.editable||r.metadata);if(d&&!g){let r=s||!i?c.text||c.href:null,o=a.test(d),f=y.test(d);if(o&&!f)return delete u.emptyFieldEditingComponent,n.createElement(l(),Object.assign({href:{pathname:d,query:p,hash:h},key:"link",locale:!1,title:c.title,target:c.target,className:c.class,prefetch:e.prefetch},u,{ref:t}),r,i)}let v=Object.assign({},e);return delete v.internalLinkMatcher,delete v.prefetch,n.createElement(f,Object.assign({},v,{ref:t}))});g.displayName="NextLink",g.propTypes=Object.assign({internalLinkMatcher:i().instanceOf(RegExp)},h)},9865:function(e,t,r){"use strict";r.d(t,{o:function(){return y}});var n=r(1504),o=r(5440),i=r.n(o),a=r(2784),l=r(9885),s=r(8626),u=r(5077),c=r(6577),d=r.n(c),p=r(893),f=r(8043),h=r(4417),m=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let y=(0,l.K)((0,p.c)(e=>{var t,{editable:r=!0,imageParams:o,field:i,mediaUrlPrefix:l,fill:c,priority:p}=e,f=m(e,["editable","imageParams","field","mediaUrlPrefix","fill","priority"]);let y=a.useContext(s.sy);if(f.src)throw Error("Detected src prop. If you wish to use src, use next/image directly.");if(!i||!i.editable&&(0,h.isFieldValueEmpty)(i))return null;if(r&&i.editable)return(0,u.Y)(i,o,l,f);let g=i.src?i:i.value;if(!g)return null;let v=f.unoptimized||(null===(t=y.context)||void 0===t?void 0:t.pageState)!==h.LayoutServicePageState.Normal,b=Object.assign(Object.assign(Object.assign({},g),f),{fill:c,priority:p,src:n.mediaApi.updateImageUrl(g.src,o,l),unoptimized:v}),E=Object.assign(Object.assign({},b),{src:n.mediaApi.replaceMediaUrlPrefix(b.src,l)});return(E.fill&&(delete E.width,delete E.height),b)?a.createElement(d(),Ob
1ject.assign({alt:""},E)):null},{defaultEmptyFieldEditingComponent:f.w}));y.propTypes={field:i().oneOfType([i().shape({src:i().string.isRequired}),i().shape({value:i().object,editable:i().string})]),editable:i().bool,mediaUrlPrefix:i().instanceOf(RegExp),imageParams:i().objectOf(i().oneOfType([i().number.isRequired,i().string.isRequired]).isRequired),emptyFieldEditingComponent:i().oneOfType([i().object,i().func])},y.displayName="NextImage"},7309:function(e,t,r){"use strict";r.d(t,{V:function(){return t7}});var n,o=r(2784),i=r(5440),a=r.n(i);let l=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))};l.propTypes={rendering:a().shape({componentName:a().string})},l.displayName="MissingComponent";var s=r(4417);(j=T||(T={})).JssApp="061cba1554744b918a0617903b102b82",j.DictionaryEntry="6d1cd89719364a3aa511289a94c2a7b1";var u=r(9405);let c={backgroundImage:"linear-gradient(45deg, #ffffff 25%, #dcdcdc 25%, #dcdcdc 50%, #ffffff 50%, #ffffff 75%, #dcdcdc 75%, #dcdcdc 100%)",backgroundSize:"3px 3px",display:"flex",justifyContent:"center",alignItems:"center",padding:"30px",color:"#aaa"},d=()=>o.createElement("div",{style:c},"The component is hidden");var p=(e={})=>Object.keys(e).reduce((t,r)=>Object.assign(t,{[h(r)]:e[r]}),{}),f=(e={})=>Object.keys(e).reduce((t,r)=>Object.assign(t,{[m(r)]:e[r]}),{});function h(e){return m(e).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,function(e){return"-"+e.toLowerCase()})}function m(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 y=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},g={},v=e=>{var{properties:t}=e;return Object.assign(Object.assign({},y(e,["properties"])),{type:"object",properties:{name:{type:"string"},displayName:{type:"string"},id:{type:"string"},url:{type:"string"},fields:b(t)}})};function b(e={}){return{type:"object",properties:Object.keys(e).reduce((t,r)=>{let n=e[r],{title:o}=n;return y(n,["title"]),Object.assign(Object.assign({},t),{[r]:{type:"object",properties:{value:Object.assign({title:o||r},e[r])}}})},{})}}var E={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:v,DropTree:v,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:v,List:e=>{var{properties:t}=e;return Object.assign(Object.assign({},y(e,["properties"])),{type:"array",items:{type:"object",properties:{name:{type:"string"},displayName:{type:"string"},id:{type:"string"},url:{type:"string"},fields:b(t)}}})}};function w(e,t={}){return function e(t,r){var n={};for(var o in t){let i=t[o];i&&"object"==typeof i?Array.isArray(i)?n[o]=i.map(t=>
1"object"==typeof t&&t?e(t,r):t):n[o]=e(r(i),r):n[o]=t[o]}return n}(e=O(Object.assign({type:"object",properties:{},required:[]},e)),e=>e.properties?O(e,t):e)}function O(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 o;let i=n.properties[r],a=null===(o=g[null==i?void 0:i.type])||void 0===o?void 0:o.call(g,i),l=Object.assign(Object.assign(Object.assign({},a),i),{type:(null==a?void 0:a.type)||i.type,default:t.hasOwnProperty(r)?t[r]:i.default,title:i.title||h(r).split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")});return(null!=i&&i.properties||null!=a&&a.properties)&&(l.properties=Object.assign({},(null==a?void 0:a.properties)||(null==i?void 0:i.properties)),Object.keys((null==a?void 0:a.properties)||{}).forEach(e=>{var t,r;l.properties[e]=Object.assign(Object.assign({},null===(t=null==a?void 0:a.properties)||void 0===t?void 0:t[e]),null===(r=null==i?void 0:i.properties)||void 0===r?void 0:r[e])})),(null!=i&&i.items||null!=a&&a.items)&&(l.items=(null==a?void 0:a.items)||(null==i?void 0:i.items)),void 0===l.default&&delete l.default,"required"in l&&"boolean"==typeof l.required&&(-1==n.required.indexOf(r)&&n.required.push(r),delete l.required),Object.assign(e,{[r]:l})},{})),Object.assign({type:"object"},n)}
1Object.keys(E).forEach(e=>{!function(e,{name:t}){if(t.charAt(0)!=t.charAt(0).toUpperCase())throw Error("Custom types must start with a capital letter");g[t]=e}(E[e],{name:e})});var S=(e,t)=>{var r,n,o,i;let a=Object.assign({},e);for(var l in t)"object"==typeof t[l]&&t[l]&&(((null===(r=t[l])||void 0===r?void 0:r.type)=="integer"||(null===(n=t[l])||void 0===n?void 0:n.type)=="number")&&(a[l]=Object.assign(Object.assign({},a[l]),{"ui:options":{widget:"updown"}})),!(null===(o=t[l])||void 0===o)&&o.ui&&(a[l]=Object.assign(Object.assign({},a[l]),{"ui:options":Object.assign(Object.assign({},null===(i=a[l])||void 0===i?void 0:i["ui:options"]),t[l].ui)})),a=Object.assign(Object.assign({},a),{[l]:t[l].items?{items:S(a[l],t[l].items.properties)}:S(a[l],t[l].properties||{})}));return a};function A(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 C="undefined"!=typeof window?window.BYOCDatasources||(window.BYOCDatasources={}):{};function x(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.");C[t.id]=Object.assign(Object.assign({},function(e){let{id:t,name:r,title:n,properties:o,sample:i,schema:a,description:l=null,type:s="object"}=e;return{id:t,description:l,sample:i,name:r||n||t,handler:e=>e,schema:a||o?w(Object.assign(Object.assign({},a||{properties:o,type:s}),{title:(null==a?void 0:a.title)||n||r})):void 0}}(t)),{handler:e}),_()}function _(){clearTimeout(k),"undefined"!=typeof window&&window.parent!==window&&(k=setTimeout(()=>{var e;null===(e=window.parent)||void 0===e||e.postMessage(JSON.stringify({action:"register-datasources",data:Object.values(C)}),"*")},30))}function R(e,t){let r=C[e];return null!=r&&r.handler?r.handler(t):t}_();var j,T,k,P,F=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},D="undefined"!=typeof HTMLElement?HTMLElement:"undefined"!=typeof windowJSDOM?windowJSDOM.HTMLElement:class{setAttribute(){}},N="undefined"!=typeof window?window.BYOCComponents||(window.BYOCComponents={}):{};function L(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:o,id:i=e.name,group:a=null,ui:l,isHidden:s=!1,datasourceIds:u=[],links:c={},meta:d={},uiSchema:p,schema:f}=e,h=F(e,["thumbnail","name","id","group","ui","isHidden","datasourceIds","links","meta","uiSchema","schema"]),m=w(Object.assign(Object.assign({description:"External component"},f||h||{}),{type:"object"}),r),y=S(p||l||{},m.properties||{});return{component:t||(()=>null),name:o,schema:m,uiSchema:y,thumbnail:n,group:a||"Default collection",isHidden:s,id:i,datasourceIds:u,links:c,meta:d,title:(null==m?void 0:m.title)||(null==h?void 0:h.title)||o}}(t,e,r);N[n.id]=n,M(e)&&H.register("byoc-"+h(t.name),void 0,e),U()}function M(e){return e&&"prototype"in e&&"setAttribute"in e.prototype}function I(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=N[t];if(r){let t=N[e];if(!t&&!n)return null;t&&(n=Object.assign(Object.assign(Object.assign({},n),t),{component:t.component||(null==n?void 0:n.component)}
1)),r.split(/\&/g).forEach(e=>{var t,r,o;let[i,a]=e.split("="),l=(null===(t=n.schema.properties)||void 0===t?void 0:t[i])||{type:"string"};n=Object.assign(Object.assign({},n),{schema:Object.assign(Object.assign({},n.schema),{properties:Object.assign(Object.assign({},n.schema.properties),{[i]:Object.assign(Object.assign({},l),{default:A(decodeURIComponent(a),l.type)})})}),uiSchema:Object.assign(Object.assign({},n.uiSchema),{[i]:Object.assign(Object.assign({},n.uiSchema[i]),{"ui:widget":null!==(o=null===(r=n.uiSchema[i])||void 0===r?void 0:r["ui:widget"])&&void 0!==o?o:"hidden"})})})})}return n}function $(e){let{componentName:t,className:r,fallbackWrapper:n,fallback:o,suppressHydrationWarning:i,_dynamic:a,datasources:l}=e,s=F(e,["componentName","className","fallbackWrapper","fallback","suppressHydrationWarning","_dynamic","datasources"]);try{var u="string"==typeof l?JSON.parse(l):l}catch(e){}let c=Object.values(u||{}).find(e=>e&&!Array.isArray(e)&&Object.keys(e).length>0),d=Object.assign(Object.assign(Object.assign({},c),function(e,t={}){var r;let n=null===(r=I(e))||void 0===r?void 0:r.schema;return n?Object.assign(Object.assign({},Object.keys(n.properties).reduce((e,t)=>{var r,o;return(null===(r=n.properties[t])||void 0===r?void 0:r.default)!=null?Object.assign(Object.assign({},e),{[t]:null===(o=n.properties[t])||void 0===o?void 0:o.default}):e},{})),Object.keys(t).reduce((e,r)=>{let o=t[r],i=m(r),a=null==n?void 0:n.properties[i],l=A(o,null==a?void 0:a.type);return null==l||r.startsWith("data-attribute")||["class","id","contenteditable"].includes(r)?e:Object.assign(Object.assign({},e),{[i]:l})},{})):t}(t,Object.assign(Object.assign({},c),s))),u?{datasources:u}:{}),f=Object.assign(Object.assign({"data-external-id":t},p(d)),{suppressHydrationWarning:!0,class:r});return W.forEach(e=>{Object.assign(f,{[h(e)]:B[e]})}),Object.keys(f).forEach(e=>{let t=f[e];if(t&&"object"==typeof t&&"class"!=e&&"children"!=e)try{Object.assign(f,{[e]:JSON.stringify(t)})}catch(t){delete f[e]}("function"==typeof t||null==t)&&delete f[e]}),{attributes:f,properties:d,merged:Object.assign(Object.assign({},B),d)}}function U(){clearTimeout(P),"undefined"!=typeof window&&window.parent!==window&&(P=setTimeout(()=>{var e;null===(e=window.parent)||void 0===e||e.postMessage(JSON.stringify({action:"register-components",data:Object.values(N)}),"*")},30))}U();var H=class extends D{connectedCallback(){try{JSON.parse(String(this.getAttribute("components"))).forEach(e=>{I(e.id)||L(null,e)}),JSON.parse(String(this.getAttribute("datasources"))).forEach(e=>{C[e.id]||x(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{})}},B={},W=["sitecoreEdgeUrl","sitecoreEdgeContextId"];function V(e){return 0==Object.keys(e).length?o.createElement(o.Fragment,null):function(e){let{componentName:t,fallback:r,fallbackWrapper:n}=e,i=I(t),a=null==i?void 0:i.component,{attributes:l,properties:s,merged:u}=$(e);if(!a&&r||!t)return!1===n?o.createElement(o.Fragment,null,r):o.createElement("feaas-external",Object.assign({},l,{hydrate:"false"}),r);if(i&&a&&M(a)){let e="byoc-"+h(i.id);return o.createElement(e,Object.assign(Object.assign({},l),{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({},u))}))}}))}return o.createElement(o.Fragment,null,o.createElement("feaas-external",Object.assign({},l,{hydrate:"false"}),null==a?null:o.createElement(a,Object.assign({},u))))}(e)}H.register("byoc-registration");var z=r(8316),q=Object.defineProperty,G=(e,t)=>{for(var r in t)q(e,r,{get:t[r],enumerable:!0})},K={};G(K,{renderDOMContent:()=>eI,renderDOMElement:()=>eL,renderHTMLContent:()=>e$,setDOMAttribute:()=>eD});var Z={};function J(e){return(J="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 Q(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function Y(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 X(e,t,r){return t&&Y(e.prototype,t),r&&Y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function et(e,t){return(et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function er(){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 en(e,t,r){return(en=er()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&et(o,r.prototype),o}).apply(null,arguments)}function eo(e){var t="function"==typeof Map?new Map:void 0;return(eo=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 en(e,arguments,ee(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),et(r,e)})(e)}function ei(e,t){if(e){if("string"==typeof e)return ea(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 ea(e,t)}}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}G(Z,{JSONPath:()=>ed,queryObject:()=>em,queryObjectRaw:()=>eh,queryScopes:()=>ey,serializeCH1RichText:()=>ev});var el=Object.prototype.hasOwnProperty;function es(e,t){return(e=e.slice()).push(t),e}function eu(e,t){return(t=t.slice()).unshift(e),t}var ec=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&&et(e,t)}(n,e);var t,r=(t=er(),function(){var e,r=ee(n);return e=t?Reflect.construct(r,arguments,ee(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 Q(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 X(n)}(eo(Error));function ed(e,t,r,n,o){if(!(this instanceof ed))try{return new ed(e,t,r,n,o)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(o=n,n=r,r=t,t=e,e=null);var i=e&&"object"===J(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=!el.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||o||function(){throw TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){var a={path:i?e.path:t};i?"json"in e&&(a.json=e.json):a.json=r;var l=this.evaluate(a);
1if(!l||"object"!==J(l))throw new ec(l);return l}}ed.prototype.evaluate=function(e,t,r,n){var o=this,i=this.parent,a=this.parentProperty,l=this.flatten,s=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"===J(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(!el.call(e,"json"))throw TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');t=e.json,l=el.call(e,"flatten")?e.flatten:l,this.currResultType=el.call(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=el.call(e,"sandbox")?e.sandbox:this.currSandbox,s=el.call(e,"wrap")?e.wrap:s,this.currPreventEval=el.call(e,"preventEval")?e.preventEval:this.currPreventEval,r=el.call(e,"callback")?e.callback:r,this.currOtherTypeCallback=el.call(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,i=el.call(e,"parent")?e.parent:i,a=el.call(e,"parentProperty")?e.parentProperty:a,e=e.path}if(i=i||null,a=a||null,Array.isArray(e)&&(e=ed.toPathString(e)),!(!e&&""!==e||!t)){var u=ed.toPathArray(e);"$"===u[0]&&u.length>1&&u.shift(),this._hasParentSelector=null;var c=this._trace(u,t,["$"],i,a,r).filter(function(e){return e&&!e.isParentSelector});return c.length?s||1!==c.length||c[0].hasArrExpr?c.reduce(function(e,t){var r=o._getPreferredOutput(t);return l&&Array.isArray(r)?e=e.concat(r):e.push(r),e},[]):this._getPreferredOutput(c[0]):s?[]:void 0}},ed.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":var r=Array.isArray(e.path)?e.path:ed.toPathArray(e.path);
1return e.pointer=ed.toPointer(r),e.path="string"==typeof e.path?e.path:ed.toPathString(e.path),e;case"value":case"parent":case"parentProperty":return e[t];case"path":return ed.toPathString(e[t]);case"pointer":return ed.toPointer(e.path);default:throw TypeError("Unknown result type")}},ed.prototype._handleCallback=function(e,t,r){if(t){var n=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:ed.toPathString(e.path),t(n,r,e)}},ed.prototype._trace=function(e,t,r,n,o,i,a,l){var s,u=this;if(!e.length)return s={path:r,value:t,parent:n,parentProperty:o,hasArrExpr:a},this._handleCallback(s,i,"value"),s;var c=e[0],d=e.slice(1),p=[];function f(e){Array.isArray(e)?e.forEach(function(e){p.push(e)}):p.push(e)}if(("string"!=typeof c||l)&&t&&el.call(t,c))f(this._trace(d,t[c],es(r,c),t,c,i,a));else if("*"===c)this._walk(t,function(e){f(u._trace(d,t[e],es(r,e),t,e,i,!0,!0))});else if(".."===c)f(this._trace(d,t,r,n,o,i,a)),this._walk(t,function(n){"object"===J(t[n])&&f(u._trace(e.slice(),t[n],es(r,n),t,n,i,!0))});else{if("^"===c)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:d,isParentSelector:!0};if("~"===c)return s={path:es(r,c),value:o,parent:n,parentProperty:null},this._handleCallback(s,i,"property"),s;if("$"===c)f(this._trace(d,t,r,null,null,i,a));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(c))f(this._slice(c,d,t,r,n,o,i));else if(0===c.indexOf("?(")){if(this.currPreventEval)throw Error("Eval [?(expr)] prevented in JSONPath expression.");var h=c.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1");this._walk(t,function(e){u._eval(h,t[e],e,r,n,o)&&f(u._trace(d,t[e],es(r,e),t,e,i,!0))})}else if("("===c[0]){if(this.currPreventEval)throw Error("Eval [(expr)] prevented in JSONPath expression.");f(this._trace(eu(this._eval(c,t,r[r.length-1],r.slice(0,-1),n,o),d),t,r,n,o,i,a))}else if("@"===c[0]){var m=!1,y=c.slice(1,-2);switch(y){case"scalar":t&&["object","function"].includes(J(t))||(m=!0);break;case"boolean":case"string":case"undefined":case"function":J(t)===y&&(m=!0);break;case"integer":Number.isFinite(t)&&!(t%1)&&(m=!0);break;case"number":Number.isFinite(t)&&(m=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(m=!0);break;case"object":t&&J(t)===y&&(m=!0);break;case"array":Array.isArray(t)&&(m=!0);break;case"other":m=this.currOtherTypeCallback(t,r,n,o);break;case"null":null===t&&(m=!0);break;default:throw TypeError("Unknown value type "+y)}if(m)return s={path:r,value:t,parent:n,parentProperty:o},this._handleCallback(s,i,"value"),s}else if("`"===c[0]&&t&&el.call(t,c.slice(1))){var g=c.slice(1);f(this._trace(d,t[g],es(r,g),t,g,i,a,!0))}else if(c.includes(",")){var v,b=function(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ei(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}(c.split(","));try{for(b.s();!(v=b.n()).done;){var E=v.value;f(this._trace(eu(E,d),t,r,n,o,i,!0))}}catch(e){b.e(e)}finally{b.f()}}else!l&&t&&el.call(t,c)&&f(this._trace(d,t[c],es(r,c),t,c,i,a,!0))}if(this._hasParentSelector)for(var w=0;w<p.length;w++){var O=p[w];if(O&&O.isParentSelector){var S=this._trace(O.expr,t,O.path,n,o,i,a);if(Array.isArray(S)){p[w]=S[0];for(var A=S.length,C=1;C<A;C++)w++,p.splice(w,0,S[C])}else p[w]=S}}return p},ed.prototype._walk=function(e,t){if(Array.isArray(e))for(var r=e.length,n=0;n<r;n++)t(n);else e&&"object"===J(e)&&Object.keys(e).forEach(function(e){t(e)})},ed.prototype._slice=function(e,t,r,n,o,i,a){if(Array.isArray(r)){var l=r.length,s=e.split(":"),u=s[2]&&Number.parseInt(s[2])||1,c=s[0]&&Number.parseInt(s[0])||0,d=s[1]&&Number.parseInt(s[1])||l;c=c<0?Math.max(0,c+l):Math.min(l,c),d=d<0?Math.max(0,d+l):Math.min(l,d);for(var p=[],f=c;f<d;
2f+=u)this._trace(eu(f,t),r,n,o,i,a,!0).forEach(function(e){p.push(e)});return p}},ed.prototype._eval=function(e,t,r,n,o,i){this.currSandbox._$_parentProperty=i,this.currSandbox._$_parent=o,this.currSandbox._$_property=r,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;var a=e.includes("@path");a&&(this.currSandbox._$_path=ed.toPathString(n.concat([r])));var l="script:"+e;if(!ed.cache[l]){var s=e.replace(/@parentProperty/g,"_$_parentProperty").replace(/@parent/g,"_$_parent").replace(/@property/g,"_$_property").replace(/@root/g,"_$_root").replace(/@([\t-\r \)\.\[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])/g,"_$_v$1");a&&(s=s.replace(/@path/g,"_$_path")),ed.cache[l]=new this.vm.Script(s)}try{return ed.cache[l].runInNewContext(this.currSandbox)}catch(t){throw Error("jsonPath: "+t.message+": "+e)}},ed.cache={},ed.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},ed.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},ed.toPathArray=function(e){var t=ed.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 ep=function(e,t,r){for(var n=e.length,o=0;o<n;o++)r(e[o])&&t.push(e.splice(o--,1)[0])},ef=function(){function e(t){Q(this,e),this.code=t}return X(e,[{key:"runInNewContext",value:function(e){var t=this.code,r=Object.keys(e),n=[];ep(r,n,function(t){return"function"==typeof e[t]});var o=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 i=(t=t.replace(/;[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*$/,"")).lastIndexOf(";"),a=i>-1?t.slice(0,i+1)+" return "+t.slice(i+1):" return "+t;return en(Function,r.concat([a])).apply(void 0,function(e){if(Array.isArray(e))return ea(e)}(o)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||ei(o)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance. 3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())}}]),e}();function eh(e,t){try{return ed({path:t,json:e})}catch(e){return[]}}function em(e,t,r=!0){let n=eh(e,t)||[];return r?n.flat(1/0):n}function ey(e,t,r=!1,n=e,o=!0){var i=t;for(let o of Object.keys(e).sort((e,t)=>t.length-e.length))if(t.startsWith(o)){if(o==t){if(r)return e[o];continue}i=t.substring(o.length+1),n=e[o];break}var a=em(n,i,o);return 0==a.length&&(a=[i.replace(/^.*?\./,"_."),i.replace(/^.*?\./,""),i.replace(/^([^.]+).*?\.\$([\.\[])/,"$1$2"),i.replace(/^.*?\.\$([\.\[])/,"_$1"),i.replace(/^.*?\.\$([\.\[])/,"$$$1"),i.replace(/^[^.]+$/,"_")].filter((e,t,r)=>r.indexOf(e)===t).reduce((e,t)=>
3e.length>0?e:em(n,t,o),[])),r?a[0]:a}function eg(e,t={},r){return r?`<${r}${Object.entries(t).map(([e,t])=>null!=t&&` ${e}="${t}"`).filter(Boolean).join("")}>${ev(e)}</${r}>`.replace(/^<([a-z0-9][^>]*)><\/[^>]+>$/,"<$1 />"):ev(e)}function ev(e){var t;if(Array.isArray(e))return e.map(ev).join(` 4`).trim();if("string"==typeof e)return e;if(null==e)return"";switch(e.type){case"heading":let{level:r,...n}=e.attrs;return eg(e.content,n,"h"+r);case"text":return(e.marks||[]).reduce((e,t)=>eg(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 eg(e.content||e.text,e.attrs,{bulletList:"ul",orderedList:"ol",listItem:"li",horizontalRule:"hr",paragraph:"p",codeBlock:"code",blockquote:"blockquote"}[e.type])}}function eb(e){let t=new e.ownerDocument.defaultView.MutationObserver(e=>{e.forEach(e=>{let t=e.target,r=t.getAttribute("data-embed-src");r&&ew(t,r),e.addedNodes&&e.addedNodes.forEach(e=>{1==e.nodeType&&eE(e,!1)})})});return t.observe(e,{attributes:!0,subtree:!0,childList:!0}),t}function eE(e,t=!0){let r=e.querySelectorAll("[data-embed-src]");for(var n=0;n<r.length;n++){let e=r[n];ew(e,e.getAttribute("data-embed-src"))}if(t)return eb(e)}function ew(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 o=r.ownerDocument.createElement("script");o.setAttribute("type","module"),o.setAttribute("src",t),r.appendChild(o);break}}ed.prototype.vm={Script:ef};var eO={};G(eO,{adjustNumbers:()=>eR,cleanCollectionBit:()=>ex,getHumanizedLabel:()=>ej,getLastPathBit:()=>eT,getQualifier:()=>eC,normalizeCollectionScope:()=>e_,parseLimit:()=>eS,parseRange:()=>eA});var eS=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},eA=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},eC=e=>{var t;return null===(t=null==e?void 0:e.match(/(\.\*|\[[^\]]*\])$/))||void 0===t?void 0:t[0]};function ex(e){return e.replace(/(\.?\[[^\]\[]*\]|\.\*)$/g,"")}function e_(e){return ex(e)+".*"}function eR(e,t){return null==e?void 0:e.replace(/(.|^)(\d+)/g,(e,r,n)=>r+(":"==r?n:String(parseInt(n)+t)))}function ej(e,t=2){var r=ex(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 eT(e){return ex(e).split(".").pop()}var ek=["January","February","March","April","May","June","July","August","September","October","November","December"],eP=e=>{if(!e||"function"!=typeof e.getDay)return;let t=e.getFullYear(),r=ek[e.getMonth()],n=e.getDate();return`${r} ${n}, ${t}`};function eF(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 eD(e,t,r,n){if(e){var o,i,a,l=e;(null==r?void 0:r.type)=="doc"&&Array.isArray(r.content)&&(r=ev(r)),null!=n&&n.processValue&&(r=null==n?void 0:n.processValue(e,t,r));var s=t.replace("data-path-","");if("data-path-src"==t||"data-path-alt"==t){let t=Array.from(e.children).find(e=>"picture"==e.localName)||e;l="img"==e.localName?e:t.querySelector("img, video")}else if("data-path-href"==t)l=e.querySelector("a")||e.closest("a");else if("data-path-hidden"==t)r=!r||null;else if("data-path"==t||"data-embed-html"==t||"html"==t)s="innerHTML";else if("data-embed-src"==t)ew(e,r);else if("data-path-attributes"==t){if(!Array.isArray(r)){let t=(null===(o=e.getAttribute("data-attributes-keys"))||void 0===o?void 0:o.split(",").filter(Boolean))||[];if(!Array.isArray(r))for(var u in r){var c=r[u];eD(e,u,"object"==typeof c&&c?JSON.stringify(c):c,n)}for(var d=0;d<t.length;d++)null!=r&&t[d]in r||eD(e,t[d],null,n);eD(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]||"_";eD(e,"datasources",JSON.stringify({[t]:r}))}return}if("boolean"==typeof r&&(r=r?"":null),l){if(("innerHTML"==s||"src"==s)&&(null==r||""===r)){var p=String(null!==(a=null!==(i=e.getAttribute("data-path-placeholder")||l[s])&&void 0!==i?i:l.getAttribute(s))&&void 0!==a?a:"");"innerHTML"==s?l.innerHTML=p:p?l.setAttribute(s,p):l.removeAttribute(s)}else if(null!=r){if("innerHTML"==s){for(var f,h=String(r),m=l;m.parentElement&&m.localName.match(/^(a|var|strong|em|i|b)$/);)m=m.parentElement;m.localName.match(/p|h\d|button|time|li/)&&(h=h.replace(/<(p|h\d|li|ul)[^>]*?>|<\/(p|h\d|li|ul)[^>]*?>/g," ").trim().replace(/\s+/g," ")),String(m.getAttribute("class")).includes("-inline--time")&&"Invalid Date"!==String(new Date(f=h))&&!isNaN(Number(new Date(f)))&&(h=eP(new Date(h))),l.innerHTML!=h&&
4(l.innerHTML=h)}else l.getAttribute(s)!=r&&l.setAttribute(s,r)}else l.removeAttribute(s)}}}var eN=["data-attributes-keys","data-path-attributes","data-path-scope"];function eL(e,t,r,n){if(n||(t=(null===(i=null==r?void 0:r.processData)||void 0===i?void 0:i.call(r,e,t))||t),1==e.nodeType){let n=e.getAttribute("data-path-scope");if(n){let o=eF(e),i=ey(t,n,!1);0==o&&function(e,t,r){let n=e.getAttribute("data-path-scope");if(null==n)return;var o=eF(e);if(0!=o)return;let i=e.parentNode;if(null!=i){0==t?e.setAttribute("hidden","hidden"):null!=e.getAttribute("hidden")&&e.removeAttribute("hidden");for(var a=o+1,l=e,s=e;s=s.nextElementSibling;)s.getAttribute("data-path-scope")==n&&(a++,l=s);for(var u=a;u<t;u++)i.insertBefore(l.cloneNode(!0),l.nextElementSibling);for(var u=Math.max(1,t);u<a;u++)l=l.previousElementSibling,i.removeChild(l.nextElementSibling)}}(e,(null===(a=null==r?void 0:r.shouldRepeat)||void 0===a?void 0:a.call(r,e,i))===!1?1:i.length,0),t={...t,[e_(n)]:i[o]}}let i=Array.prototype.slice.call(e.attributes).sort((e,t)=>eN.indexOf(e.name)-eN.indexOf(t.name));for(var o=0;o<i.length;o++){let{name:n,value:a}=i[o];n.startsWith("data-path")&&"data-path-scope"!=n&&eD(e,n,ey(t,a,!0,void 0,"FEAAS-EXTERNAL"!=e.tagName),r),"data-embed-src"==n&&eD(e,n,e.getAttribute(n),r)}}for(var i,a,l,s,o=0;s=e.childNodes[o++];)eM(s)&&eL(s,t,r,!0);return n||null===(l=null==r?void 0:r.onRender)||void 0===l||l.call(r,e,t),e}function eM(e){return 1==e.nodeType}function eI(e,t,r,n){let o=(null===(i=null==n?void 0:n.processTemplate)||void 0===i?void 0:i.call(n,e,t,r))||t;if(e.innerHTML=o,e.classList.add("-feaas"),(e.closest(".component.feaas")||e).className.includes("-theme--"))for(var i,a,l=0;a=e.childNodes[l++];)eM(a)&&(a.className=a.className.replace(/(\s|^)-theme--[^\s]+\s*/g,"$1"));return eL(e,r,n)}function e$(e,t,r,n=!1){var o;let i=(null===(o=null==r?void 0:r.processTemplate)||void 0===o?void 0:o.call(r,null,e,t))||e;if("undefined"==typeof document||n)return eL(eB(i)[0],t,r).outerHTML;{let e=document.createElement("div");return e.innerHTML=i,eL(e,t,r),e.innerHTML}}var eU=class{constructor(e,t=1,r){this.ownerDocument={createElement:e=>new eU(e),createDocumentFragment:()=>new eU(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 eW(this.childNodes)}set innerHTML(e){this.childNodes=eB(String(null!=e?e:""))}get outerHTML(){return eW([this])}get children(){return this.childNodes.filter(e=>1==e.nodeType)}closest(e){let t=this;for(;t;){if(eH(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(eH(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 o=n+e;o>=0&&o<r.length;o+=e){let e=r[o];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 eU(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 eH(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],o=t.getAttribute(e);
4if(void 0===n){if(void 0===o)return!1}else if(o!==n)return!1}}else if(t.nodeName!==e)return!1;return!0}function eB(e){var t;let r=[],n=[];for(;e;){let o=e.match(/^<([\w-]+)(\s[^>]*)?>/),i=e.match(/^<\/([\w-]+)>/);if(o){let i=o[1].toLowerCase(),a=(null===(t=(o[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(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}}))||[],l=new eU(i,1);if(l.attributes=a,n.length>0){let e=n[n.length-1];e.childNodes.push(l),l.parentNode=e}else r.push(l);["img","input","br"].includes(i)||n.push(l),e=e.slice(o[0].length)}else if(i)n.pop(),e=e.slice(i[0].length);else{let t=e.indexOf("<"),o=e.slice(0,-1!==t?t:void 0),i=new eU("#text",3);if(i.textContent=o,n.length>0){let e=n[n.length-1];e.childNodes.push(i),i.parentNode=e}else r.push(i);e=e.slice(o.length)}}return r}function eW(e){return e.map(e=>{if(3===e.nodeType)return e.textContent||"";let{nodeName:t,attributes:r}=e,n=r.map(({name:e,value:t})=>` ${e}="${String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}"`).join(""),o=eW(e.childNodes);return["img","input","br"].includes(t)?`<${t}${n} />`:`<${t}${n}>${o}</${t}>`}).join("")}var eV=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 ez(e){let{url:t,headers:r,params:n,method:o,body:i}=eq(e),a,l=r["Content-Type"];"GET"!=o&&"HEAD"!=o&&("application/json"===l&&(a=JSON.stringify(i)),"multipart/form-data"===l&&(a=Object.keys(i).reduce((e,t)=>(e.append(t,i[t]),e),new FormData)),"application/x-www-form-urlencoded"===l&&(a=new URLSearchParams(i)));let s=Object.keys(n).length?`?${new URLSearchParams(n)}`:"";return[`${t}${s}`,{headers:r,body:a,method:o}]}function eq(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 eG=async(e,t)=>{let r=R(t,e);if(r instanceof Promise)return r;let n=e;r&&(n=eq(r));try{let[e,t]=ez(n),r=await (await eq.fetchImplementation(e,{...t,method:t.method.toLowerCase()})).json();return n.jsonpath&&"$"!=n.jsonpath?em(r,n.jsonpath):r}catch(e){return{}}};async function eK(e){if(!e)return e;if(eV(e))return eG(e);let t=Object.keys(e),r=await Promise.all(t.map(t=>eV(e[t])?eG(e[t],t):null).filter(Boolean));return t.reduce((t,n)=>({...t,[n]:eV(e[n])?r.shift():e[n]}),{})}eq.clean=function(e){let{params:t,method:r,headers:n,body:o,url:i}=eq(e);var a={url:i},l={...n};return"application/json"===n["Content-Type"]&&delete l["Content-Type"],"application/json"===n.Accept&&delete l.Accept,Object.keys(l).length>0&&(a.headers=l),"GET"!==r&&(a.method=r),"GET"===r||"HEAD"===r||0===Object.keys(o).length||(a.body=o),Object.keys(t).length>0&&(a={...a,params:t}),a},eq.toFetchArguments=ez,eq.fetchOne=eG,eq.fetch=eK,eq.isDataSettings=eV,eq.hasDataSettings=function(e){return!!e&&(eV(e)||Object.values(e).some(eV))},eq.fetchImplementation=(...e)=>fetch(...e);var eZ={};function eJ(e,t=e=>{}){var r;let n=()=>{var o,i,a=Object.assign(new Promise((t,r)=>{o=r=>{null==e||e(r),t(r)},i=r}),{resolve:o,reject:i,restart:n,first:r});return r=a,a.catch(t),a};return n()}G(eZ,{Component:()=>tw,ComponentProps:()=>tE,Context:()=>tU,ControlledPromise:()=>eJ,DEFAULT_CDN_URL:()=>te,DOM:()=>K,DataPath:()=>eO,DataScope:()=>Z,DataSettings:()=>eq,Element:()=>eY,FEAASComponent:()=>tw,FEAASComponentsProps:()=>tE,FEAASContext:()=>tU,FEAASContextProps:()=>t$,FEAASEditor:()=>tL,FEAASEditorProps:()=>tN,FEAASElement:()=>eY,FEAASLoader:()=>tS,FEAASLoaderProps:()=>tO,FEAASPicker:()=>tI,FEAASPickerProps:()=>tM,FEAASStylesheet:()=>tC,FEAASStylesheetProps:()=>tA,InvalidResponse:()=>e5,JSONPath:()=>ed,Loader:()=>tS,MyComponent:()=>e0,Picker:()=>tI,Stylesheet:()=>tC,Thumbnail:()=>tx,WebComponent:()=>eQ,adjustNumbers:()=>eR,autoloadScripts:()=>eE,cleanCollectionBit:()=>ex,clearFetchCache:()=>e3,createStylesheet:()=>ty,customizeDataSettings:()=>R,fetchAndRevalidate:()=>e4,fetchAndRevalidateComponent:()=>tl,fetchAndRevalidateStylesheet:()=>tu,fetchBypassingCache:()=>e7,fetchCache:()=>e2,fetchComponent:()=>ts,fetchData:()=>eK,fetchToValidateCache:()=>e9,fetchWithCacheAwareness:()=>e6,findStylesheet:()=>tm,getComponent:()=>I,getComponentSource:()=>tr,getComponentURL:()=>ti,getFetchCache:()=>e8,getFramePosition:()=>tD,getHumanizedLabel:()=>ej,getLastPathBit:()=>eT,getQualifier:()=>eC,getStylesheetSource:()=>tn,getStylesheetURL:()=>ta,loadScript:()=>ew,loadStylesheet:()=>tf,loadStylesheetAllowStale:()=>th,normalizeCollectionScope:()=>e_,observeDOMElement:()=>eb,parseComponentSource:()=>tt,parseLimit:()=>eS,parseRange:()=>eA,parseStylesheetSource:()=>to,queryObject:()=>em,queryObjectRaw:()=>eh,queryScopes:()=>ey,registerComponent:()=>L,registerDatasource:()=>x,renderComponent:()=>tv,renderComponentElement:()=>tg,renderComponentPromise:()=>tb,renderDOMContent:()=>eI,renderDOMElement:()=>eL,renderHTMLContent:()=>e$,renderStylesheet:()=>tc,renderStylesheetPromise:()=>td,serializeCH1RichText:()=>ev,setDOMAttribute:()=>eD});var eQ="undefined"==typeof HTMLElement?"undefined"!=typeof windowJSDOM?windowJSDOM.HTMLElement:class{}:HTMLElement,eY=class extends eQ{getProps(e){return{}}constructor(){super(),this.defaultProps={},this.connected=!1,this.refs={},this.descendants=[],this.whenLoaded=eJ(e=>{this.payload=e}),this.whenRendered=eJ(()=>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(
4Boolean)}handleEvent(e){let t=e.composedPath()[0];switch(e.type){case"feaasMount":t!=this&&this.nestedCallback(t);break;case"feaasUnmount":t!=this&&this.unnestedCallback(t)}}unnestedCallback(e){let t=this.descendants.indexOf(e);-1!=t&&(this.log("FEAAS: Unnest",this,e),this.descendants.splice(t,1),this.refs[e.getComponentName()]=null,e.refs.parent==this&&(e.refs.parent=null),e.refs.top==this&&(e.refs.top=e.refs.parent))}nestedCallback(e){var t,r;if(-1==this.descendants.indexOf(e)&&(this.descendants.push(e),this.log("FEAAS: Nest",this,e),this.refs[e.getComponentName()]=e,e.refs.top=this,(t=e.refs).parent||(t.parent=this),e.render))for(var n=e.refs.parent;n;n=n.refs.parent)n.render&&((r=e.refs).parentReact||(r.parentReact=n),e.refs.topReact=n)}getComponentName(){return this.tagName.replace("FEAAS-","").toLowerCase()}isReadyToLoad(){return void 0===this.payload&&null==this.getAttribute("hidden")}onError(e,t="uncaught",r=!1){let n=new CustomEvent("feaasError",{bubbles:!0,composed:!0,detail:e});if(this.dispatchEventIndirectly(n),this.whenLoaded.reject(e),!n.defaultPrevented&&!r){this.whenRendered.reject(e);try{this.unmount()}catch(e){}return!0}return!1}shouldUpdateOnLoad(){return!0}async advance(){try{if(void 0===this.payload){if(!this.isReadyToLoad())return;this.payload=null,this.dispatchEventIndirectly(new Event("feaasLoad",{bubbles:!0,composed:!0}));let e=await this.load().catch(e=>{throw this.payload=void 0,e});if(this.whenLoaded.resolve(e),this.onLoad)return}else if(null==this.payload)return;this.flush(),this.whenRendered.resolve(this)}catch(e){this.onError(e)}}flush(){var e,t;if(!this.connected)return;let r=null===(t=null===(e=this.payload)||void 0===e?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:o,ReactDOMClient:i}=this.payload||{};if(!n)throw Error(`${this.tagName}: React is not present in payload`);if(!o)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):i?(this.reactRoot||(this.reactRoot=i.createRoot(this.getReactRootElement())),this.reactRoot.render(this.getReactElement())):o.render(this.getReactElement(),this.getReactRootElement()))}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||{},o=this.getReactErrorBoundary(),i=this.getReactWrapper(e);return r.createElement(o,{key:e.tagName+"-"+e.getUID(),slot:e.getAttribute("slot")},r.createElement(i,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,o]=r.useReducer(e=>e+1,0);return e.forceUpdateReact=o,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}
4getReactRootElement(){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],o=e?JSON.stringify(n):String(n),i=this.defaultProps[t],a=e?JSON.stringify(i):String(i),l=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=this.getAttribute(l);try{var r=e?JSON.stringify(JSON.parse(s)):s}catch(e){var r=null}null==n||o===a?this.removeAttribute(l):("string"==typeof n||"number"==typeof n||"boolean"==typeof n||e)&&r!=o&&this.setAttribute(l,o)}}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)}},eX=class extends eY{load(){return Promise.all([import("https://cdn.skypack.dev/react"),import("https://cdn.skypack.dev/react-dom")]).then(([e,t])=>({React:e,ReactDOM:t}))}render({},{React:e}){return e.createElement(e.Fragment,null)}},e0=class extends eX{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))}};e0.observedAttributes=["counter"];var e1=["initial","check","updated"],e2={};function e3(){e2={}}async function e4(e,t,r,n,o=e2){return e6({url:e,options:t,validator:r,callback:n,cache:o}).then(e9).then(e=>e.response)}async function e6({url:e,options:t,validator:r,callback:n,cache:o},i="initial"){let a=new Date;if(null!=o){var l=e8(e);if(e1.indexOf(l.phase)>=e1.indexOf(i))var s=l[i];else l.phase=i}let u=await (s||fetch(e,t));if(!s&&l&&(u.ok?l[i].resolve(u):l[i].reject(Error("Fetch failed"))),!u.ok)throw Error("Fetch failed");let c=new Date(u.headers.get("date"))<a||s&&"initial"==i&&("updated"==l.phase||"check"==l.phase);if((null==r?void 0:r(u,c))===!1)throw new e5("Response is not valid");return await (null==n?void 0:n(u,i,c)),{url:e,options:t,isCached:c,response:u,validator:r,callback:n,cache:o}}function e8(e,t=!1){let r=String(e).replace("?head","");var n=e2[r];return n||t||(n=e2[r]={phase:null,initial:eJ(),check:eJ(),updated:eJ(),final:eJ()}),n}var e5=class extends Error{};async function e9(e){let{url:t,isCached:r,options:n,validator:o,response:i,cache:a}=e;if(r){let{response:r}=await e6({url:t+(t.toString().includes("?")?"&":"?")+"head",options:{...n,method:"HEAD",cache:"no-cache"},validator:o,cache:a},"check");if(r.headers.get("last-modified")!=i.headers.get("last-modified"))return e7(e)}return e}async function e7(e){return e6({...e,options:{...e.options,cache:"reload"}},"updated")}var te="https://feaas.blob.core.windows.net";function tt(e){let t=e.match(/^(?:(.*?)\/components)?\/?([^\/]+)\/([^\/]+)(?:\/([^\/]+)(?:\/(published|staged|saved|\d+)(?:\.html?)?)?)?$/);if(t){var[,r,n,o,i,a]=t;return{cdn:r,library:n,component:o,version:i,revision:a}}}function tr(e){if(!e||!e.library||!e.component)throw Error("Component requires `library` and `component` properties");return`${e.cdn&&e.cdn!=te?`${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 tn(e){return`${e.cdn&&e.cdn!=te?`${e.cdn}/styles/`:""}${e.library}/${e.revision&&"published"!=e.revision?e.revision:""}`.replace(/\/$|\/\/(?!.+\/styles\/)/g,"")}function to(e){let t=e.match(/^(?:(.*?)\/styles\/)?([^\/]+)(?:\/(published|staged|saved|\d+)(?:.css)?)?$/);if(t){var[,r,n,o]=t;return{cdn:r,library:n,revision:o}}{let t=tt(e);if(t){var{cdn:r,library:n,revision:o}=t;return null!=o&&o.match(/\d/)&&(o=void 0),{cdn:r,library:n,revision:o}}}}function ti(e){return"string"==typeof e&&(e={src:e}),"src"in e&&(e={...tt(e.src)}),`${e.cdn||e.hostname||te}/components/${e.library}/${e.component}/${e.version||"responsive"}/${e.revision||"published"}.html`}function ta(e){if("string"==typeof e&&(e={src:e}),"src"in e){if(String(e.src).includes("v1/files/components/styles"))return e.src;e={...to(e.src)}}return`${e.cdn||e.hostname||te}/styles/${e.library}/${"staged"==e.revision?"staged":"saved"==e.revision?"saved":"published"}.css`}async function tl(e,t,r=!1){let n=e=>null==e.headers.get("x-ms-meta-versionDeletedAt"),o=e=>e.clone().text().then(t),i=await Promise.all([e.instance&&e6({options:{headers:{Accept:"text/html"},credentials:"omit"},url:ti({...e,version:e.instance}),validator:n}).catch(e=>e),e6({url:ti(e),validator:n}).catch(e=>e)]),a=i.find(e=>e&&"isCached"in e&&e);if(!a||a instanceof Error)throw i.find(e=>e&&e instanceof Error)||Error("Can not fetch component");return i[0]==a&&console.log("Using fork!",i),await o(a.response),r?a:e9({...a,callback:o}).catch(e=>{if(i[0]==a&&(e7({...a,callback:null,validator:null}),console.log("Fork was deleted"),!(i[1]instanceof Error)))return o(i[1].response),e9({...i[1],callback:o});throw e})}async function ts(e){var t;"string"==typeof e&&(e={src:e});let{response:r}=await tl(e,e=>{t=e},!0);return{...e,template:t,lastModified:r.headers.get("last-modified")}}async function tu(e,t){return e4(ta(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 tc(e,t){return td(e,t||(t=document.createElement("style"))),t}function td(e,t){return t||(t=document.createElement("style")),tu(e,(e,r)=>{t.textContent=e}).then(()=>t)}var tp=new WeakSet;function tf(e,t){var r,n=tm(e);if(n){if(tp.has(n))return Promise.resolve(n);e=n.getAttribute("data-href")||n.getAttribute("href")}return tu(e,(o,i)=>{"initial"==i&&n||(r||(r=n&&"LINK"!=n.tagName?n:ty(e)),r.textContent=o),null==t||t(o,i)}).then(()=>r||n)}function th(e){return new Promise((t,r)=>{tf(e,t).catch(r)})}function tm(e){let t=ta(e),{library:r}=to(t),n=`/files/components/styles/${r}.css`;return document.querySelector(`style[data-href="${t}"], 5 link[rel="stylesheet"][href="${t}"], 6 style[data-href*="${n}"], 7 link[rel="stylesheet"][href*="${n}"]`)}function ty(e){let t=ta(e),r=document.createElement("style");return r.setAttribute("data-href",t),document.head.appendChild(r),r}function tg(e,t){let r=document.createElement("div");r.innerHTML=e;let n=document.createDocumentFragment();for(;r.firstChild;)n.appendChild(r.firstChild);return eL(n,t),r}function tv(e,t){return tb(e,t||(t=document.createElement("div"))),t}async function tb(e,t){return t||(t=document.createElement("div")),t.childNodes.length?eL(t,e.data,e):"template"in e?eI(t,e.template,e.data,e):tl(e,r=>eI(t,r,e.data,e)).then(()=>t)}function tE(e){var t,r,n,o,i,a,l,s;let u,c=e.getAttribute("src");if(c){let e=tt(c);if(!e)throw Error(`Could not parse FEAAS Component source: ${c}`);var{cdn:d,library:p,component:f,version:h,revision:m}=e}let y=e.getAttribute("data");if(null!=y&&""!=y)try{u="string"==typeof y?JSON.parse(y):{}}catch(e){console.error(e)}let g=e.getAttribute("fetch");return{data:u||{},cdn:null!==(r=null!==(t=e.getContextAttribute("cdn"))&&void 0!==t?t:d)&&void 0!==r?r:te,library:null!==(n=e.getAttribute("library"))&&void 0!==n?n:p,component:null!==(o=e.getAttribute("component"))&&void 0!==o?o:f,version:null!==(a=null!==(i=e.getAttribute("version"))&&void 0!==i?i:h)&&void 0!==a?a:"responsive",revision:null!==(s=null!==(l=e.getAttribute("revision"))&&void 0!==l?l:m)&&void 0!==s?s:"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"==g||null==g&&e.hasAttribute("fetch")?[]:null==g||"true"==g?["data","template","stylesheet"]:g.split(/(\s+|\-)+/g).filter(
7Boolean)}}var tw=class extends eY{setData(e){this.set({data:e})}getProps(){return tE(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||!eq.hasDataSettings(this.props.data))&&this.fetchData()))}async fetchData(){this.readyData=void 0,this.whenDataReady=this.whenDataReady.restart();let e=await eq.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=eJ(e=>this.readyData=e,e=>this.onError(e)),this.defaultProps={cdn:te,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=th({...this.props}).then(()=>{r=null,t()});if(this.props.fetch.includes("template")||this.needsToFetchTemplate){this.needsToFetchTemplate=!1;var n=tl(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)eL(this,this.readyData);else{if(this.needsRefresh=!1,this.getOriginal())return;eI(this,this.payload,this.readyData)}}}};function tO(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}}tw.observedAttributes=["library","component","version","revision","hostname","cdn","template","data","instance","editable","with-stylesheet","fetch"],tw.register("feaas-component");var tS=class extends eY{constructor(){super(...arguments),this.defaultProps={hidden:!1}}getProps(){return tO(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=` 8 #loader { 9 position: absolute; 10 top: 0; 11 left: 0; 12 right: 0; 13 bottom: 0; 14 display: flex; 15 align-items: center; 16 justify-content: center; 17 background: #f6f6ff; 18 z-index: 1000; 19 } 20 @keyframes loader-circular-track { 21 0% { 22 stroke-dasharray: 1, 400; 23 stroke-dashoffset: 0; 24 } 25 50% { 26 stroke-dasharray: 400, 400; 27 stroke-dashoffset: -100; 28 } 29 100% { 30 stroke-dasharray: 400, 400; 31 stroke-dashoffset: -260; 32 } 33 } 34 35 @keyframes loader-circular-spinner { 36 0% { 37 transform: rotate(0deg); 38 } 39 40 100% { 41 transform: rotate(360deg); 42 } 43 } 44 #loader .spinner { 45 width: 48px; 46 height: 48px; 47 } 48 `,this.loader=document.createElement("div"),this.loader.id="loader",this.loader.innerHTML=` 49 <div class="spinner"> 50 <svg
51 viewBox="0 0 100 100" 52 style=" 53 animation: 2s linear 0s infinite normal none running loader-circular-spinner; 54 display: block; 55 width: 48px; 56 height: 48px; 57 " 58 > 59 <circle fill="transparent" cx="50" cy="50" r="42" stroke="rgba(0,0,0,0.1)" stroke-width="10px"></circle> 60 <circle 61 fill="transparent" 62 stroke="#5548D9" 63 cx="50" 64 cy="50" 65 r="42" 66 stroke-width="10px" 67 stroke-linecap="round" 68 style="animation: 1.5s linear 0s infinite normal none running loader-circular-track" 69 ></circle> 70 </svg> 71 </div>`,this.getRoot().appendChild(this.stylesheet),this.getRoot().appendChild(this.loader)}update(){this.loader.style.opacity=String(this.props.opacity)}};function tA(e){var t,r,n,o;let i=e.getAttribute("src");if(i)var{cdn:a,library:l,revision:s}=to(i);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:s)&&void 0!==r?r:"published",cdn:null!==(o=null!==(n=null==e?void 0:e.getContextAttribute("cdn"))&&void 0!==n?n:null==e?void 0:e.getContextAttribute("hostname"))&&void 0!==o?o:te}}tS.observedAttributes=["hidden","opacity"],tS.register("feaas-loader");var tC=class extends eY{constructor(){super(...arguments),this.onLoad=e=>{this.payload=e,this.advance()}}getProps(){return tA(this)}isReadyToLoad(){return null!=this.props.library&&null!=this.props.revision&&null!=this.props.cdn}load(){return tf(this.props,this.onLoad)}};tC.register("feaas-stylesheet");var tx={};G(tx,{convertBase64toBlob:()=>t_,generate:()=>tP,get:()=>tT,getVersionForThumbnail:()=>tj,load:()=>tk,responseToImage:()=>tR,upload:()=>tF});var t_=e=>fetch(e).then(e=>e.blob()),tR=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 tj(e){return e.versions.length||await e.versions.fetch(),e.getVersionForWidth(800)}async function tT(e,t,r){try{if(!e.isNew)return await tk(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 tP(e,t);return null==r||r(n,!1),n&&!e.isNew&&t_(n.src).then(r=>tF(e,t,r)),n}async function tk(e,t,r){var n;let o=t?t.getThumbnailURL():e.getThumbnailURL(),i=e.library.stylesheet,a=new Date(Math.max(Number(e.modifiedAt),Number(i.modifiedAt)));return e.sdk.log(`FEAAS: Thumbnail ${e.id}/${(null==t?void 0:t.id)||"responsive"}, loading`),await e4(o,{},(e,t)=>{let o=2e3>Math.abs(Number(new Date(e.headers.get("x-ms-meta-componentRenderedAt")))-Number(a));return t&&!o&&tR(e).then(e=>{n=e,r(e,t)}),o},(o,i,a)=>{e.sdk.log(`FEAAS: Thumbnail ${e.id}/${(null==t?void 0:t.id)||"responsive"}, status: ${i}`),tR(o).then(e=>{n=e,r(e,a)})},null),n}async function tP(e,t,r){var n,o,i,a,l,s;let u,c=t||(e.isNew?null:await tj(e));if(!c||c.isViewEmpty())return null;let d=r||e.library.stylesheets.first,{datasources:p}=e.sdk;return await (n=c.classList,o=d.getBreakpointForWidth(800,c.getBreakpoints()),i=c.view,a=p.reduce((e,t)=>Object.assign(e,{[t.id]:t.sample}),{}),l=d.css,s=e.sdk,(u=document.createElement("iframe")).style.position="absolute",u.style.top="-2000px",u.style.left="-2000px",u.style.width=o.props.minWidth+"px",u.style.height="720px",u.style.zIndex="100011",document.body.appendChild(u),new Promise((e,t)=>{let r=document.createElement("script");r.onerror=t,r.src=s.frontend+"/assets/html2canvas.js",r.onload=()=>{var r;((null===(r=u.contentWindow.document.fonts)||void 0===r?void 0:r.ready)||Promise.resolve()).then(function(){return u.contentWindow.html2canvas(p,{scale:Math.max(1.1,1e3/Math.min(1401,Math.max(320,o.props.minWidth))),width:Math.min(1401,Math.max(320,o.props.minWidth)),height:Math.max(1,Math.min(2e3,p.offsetHeight)),windowWidth:o.props.minWidth||o.props.maxWidth+"px",windowHeight:1e3,proxy:s.backend+"/proxy/media",backgroundColor:"#ffffff"}).then(r=>{let n=r.toDataURL("image/jpeg",.6);u.parentElement.removeChild(u);let o=new Image;o.onload=()=>{e(o)},o.onerror=t,o.src=n})})},u.contentWindow.document.head.appendChild(r);let c=u.contentWindow.document.createElement("style");c.textContent=` 72 ${l} 73 body, html { padding: 0; margin: 0; overflow: hidden } 74 `;let d=u.contentWindow.document.createElement("style");d.textContent=` 75 body, html { padding: 0; margin: 0; overflow: hidden } 76 `,u.contentWindow.document.head.appendChild(c),u.contentWindow.document.head.appendChild(d);let p=tv({template:i,data:a});p.classList.add(...n,"-feaas--preview","-emulate--"+o.details.slug),u.contentWindow.document.body.appendChild(p)}))}async function tF(e,t,r){let n=t?t.getThumbnailURL():e.getThumbnailURL(),o=new Date(Math.max(Number(e.modifiedAt),Number(e.library.stylesheet.modifiedAt)));
76try{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":o.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 tD(e){let t=[];if(e){let r=e.ownerDocument.defaultView,n,o;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){o=e.getBoundingClientRect();let r=e.contentWindow.getComputedStyle(e);t.push({left:o.left+parseInt(r.borderLeftWidth),top:o.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 tN(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=eX,null!==(n=window.FEAASLoading)&&void 0!==n||(window.FEAASLoading=Promise.resolve()));var tL=class extends eY{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=tD(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)=>
76{this.versionContext=e,this.setVersionContext=t},this.onEditorStateChange=(e,t)=>{this.editorContext=e,this.setEditorContext=t,e.editor&&"loading"==this.props.state&&!this.props.hidden&&(this.setAttribute("state","ready"),this.ownerDocument.fonts.ready.then(()=>setTimeout(()=>{this.setReadyState(),this.setIframeComponentContent()},100)))}}getProps(){return tN(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(),o=document.body.getBoundingClientRect(),i=this.measurements[this.editedUID];i&&(Object.assign(n.clipper.style,{position:"absolute",top:r.top+this.iframe.clientTop-o.top+"px",left:r.left+this.iframe.clientLeft-o.left+"px",width:e+"px",height:t+"px",pointerEvents:"none",zIndex:1,overflow:"hidden"}),Object.assign(n.positionable.style,{position:"absolute",top:i.top+"px",left:i.left+"px",width:i.width+"px",zIndex:2,transition:"opacity 0.4s",pointerEvents:this.props.hidden?"none":"all"}),Object.assign(n.loader.style,{position:"absolute",top:i.top+"px",left:i.left+"px",width:i.width+"px",height:i.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 76
76render({children:e,component:t,version:r,instance:n},{Editor:o,VersionStatusList:i,VersionStatusButton:a,Version:l,VersionMenu:s,EditorUIUndo:u,EditorUIMode:c,React:{useEffect:d,useMemo:p,useState:f,useContext:h},Chakra:{HStack:m,Box:y,Button:g,MenuItem:v},Chrome:b,ReactDOM:E,useSDK:w,useLibrary:O,useSlots:S,useModelObserver:A,ConfirmationContext:C,VersionContext:x}){if(!this.payload)return;let{React:_}=this.payload,R=w(),j=O(),[T,k]=f(),{setConfirm:P}=h(C),F=n||r;T&&(this.component=T),d(()=>{if(this.props.hidden)return;let e=j.components.getItem(t).clone();return e.versions.search({ids:[r,n].filter(Boolean),componentIds:[t]}).then(t=>{e.versions.setItems(t);let o=e.findVersion(n,["staged","published"]),i=e.findVersion(r,["staged","published"]);if(o)o.deletedAt?(o.getDraft().changeAndNotify(i.toProperties()).restore(),console.error("FEAAS Editor: Restoring fork")):(console.error("FEAAS Editor: Pre-forked"),this.setAttribute("forked",o.id));else if(this.removeAttribute("forked"),this.shouldFork(i)){console.error("FEAAS Editor: Forking");let e=i.fork(n).id;this.setAttribute("instance",e)}else console.error("FEAAS Editor: Regular");k(e)}),()=>{this.closing=setTimeout(()=>{this.closing=null,this.cleanup(),k(null)},400)}},[r,this.props.hidden]);let D=A(null==T?void 0:T.versions,[]).filter(e=>e.id==F),N=D[0];N&&!this.props.hidden&&(this.version=N),d(()=>(this.unfork=()=>{P({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=T.findVersion(r,["staged","published"]);T.findVersion(n).unstage().unpublish().changeAndNotify(e.toProperties()),T.saveVersions(!1),this.setVersionContext({needsWrite:!0}),this.removeAttribute("forked"),requestAnimationFrame(this.onClose)}})},this.discard=()=>{this.props.changed&&(T.findVersion(F).revert(),T.saveVersions(!1),this.setVersionContext({needsWrite:!0}))},this.close=()=>{P({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=()=>{P({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=T.findVersion(F).commitData({view:this.editorContext.editor.getData({rootName:F}),model:""}))||void 0===e?void 0:e.stage())||void 0===t||t.publish(),this.removeAttribute("changed"),this.setAttribute("forked",F),T.saveVersions(!1)}})},()=>{delete this.unfork,delete this.discard,delete this.save,delete this.editorContext,delete this.versionContext,delete this.setEditorContext,delete this.setVersionContext}),[T]);let L=p(()=>this.target,[T]);return p(()=>T&&S(e,({picker:e,children:t})=>_.createElement(y,{ref:e=>{this.chrome=e?{positionable:e,wrapper:e.querySelector(".editor-chrome"),absolute:this.querySelector(".ui.overlays")}:null}},_.createElement(y,{className:"editor-wrapper",position:"absolute",left:0,top:0},_.createElement(o,{datasources:R.datasources,sdk:R,library:j,component:T,versions:D,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&&_.createElement(b,null),children:({isArchivedDisplayed:e,editor:t,status:r})=>_.createElement(y,{position:"absolute",left:0,top:0,className:"editor-chrome",p:4,boxShadow:"2xl",pointerEvents:"none",opacity:0,transition:"opacity 0.3s"},_.createElement(y,{left:0,width:"4",top:0,bottom:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),_.createElement(y,{right:0,width:"4",top:0,bottom:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),_.createElement(y,{top:0,height:"16",left:0,right:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),_.createElement(y,{bottom:0,height:"4",left:0,right:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),N&&_.createElement(l,{version:N,node:L,ignoreBreakpoints:!0,deps:[this.props.forked,this.props.changed]},{exports:this.onVersionStateChange,left:_.createElement(m,{justifyContent:"space-between"},_.createElement(u,{size:"sm",editor:"ready"==r?t:null}),_.createElement(c,{size:"sm"})),middle:(e,t)=>
76[!1],right:_.createElement(_.Fragment,null,_.createElement(g,{variant:"secondary",size:"sm",onClick:this.close},"Close"),_.createElement(g,{variant:"primary",size:"sm",onClick:this.save,isDisabled:!this.props.changed},this.props.changed?this.props.forked?"Save":"Save customization":"Up to date"),_.createElement(s,{isDisabled:!this.props.forked&&!this.props.changed},_.createElement(v,{onClick:this.unfork,isDisabled:!this.props.forked},"Unfork"),_.createElement(v,{onClick:this.discard,isDisabled:!this.props.changed},"Discard")))}))})))),[N,this.props.forked,this.props.changed])}isReadyToLoad(){return null!=this.props.component&&null!=this.props.version&&!this.props.hidden}};function tM(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}}tL.observedAttributes=["library","component","version","revision","hidden","state","changed","forked"],tL.register("feaas-editor");var tI=class extends eY{constructor(){super(...arguments),this.defaultProps={hidden:!1}}getProps(){return tM(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:o,variant:i},{Picker:a,React:l,useContext:s,EnvironmentContext:u,useLibrary:c,useSDK:d,BYOC:p}){let[f,h]=l.useReducer(e=>e+1,0),m=d(),y=s(u),g=c("collections"),v=c("components"),b=d("datasources"),E=c(),w=(null===(A=null===(S=E.stylesheets)||void 0===S?void 0:S.first)||void 0===A?void 0:A.rules)||(null===(C=null==E?void 0:E.stylesheet)||void 0===C?void 0:C.styles),O=d("renderingHost.expandedComponents");var S,A,C,x=null==t?void 0:t.getAttribute("data");if(x)try{x=JSON.parse(x)}catch(e){}if(t)var _=m.ExternalComponent.getDefinition(t),R=_&&!_.getConfiguration(t),j=(null==_?void 0:_.type)=="feaas"?v.find(e=>e.id==t.getAttribute("component")):null==p?void 0:p.getComponent(String(t.getAttribute("data-external-id")));return l.createElement(a,{cdn:y.cdn,rules:w,collections:g,themeContext:t,placeholder:e,embed:j,externalComponents:O,datasources:b,data:x,versionId:null==t?void 0:t.getAttribute("version"),mode:r||(R?"library":j?"context":null),setAttribute:(e,t,r)=>{"data"==t&&r&&(r=JSON.stringify(r)),this.props.setAttribute(e,t,r),h()},getAttribute:(e,r)=>null==t?void 0:t.getAttribute(r),dialog:n,context:t,variant:i,onModeChange:(e,t)=>
76{this.set({mode:e,dialog:t})}},o)}};function t$(e){var t,r,n,o,i;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!==(o=null==e?void 0:e.getAttribute("backend"))&&void 0!==o?o:"https://components.sitecorecloud.io/api",cdn:null!==(i=null==e?void 0:e.getAttribute("cdn"))&&void 0!==i?i:"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 tU=class extends eY{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=eJ(e=>{this.sdk=e})}getProps(){return t$(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:o},React:i}){let a={containerRef:{current:this.getPortalRoot()}};return o.defaultProps={hasArrow:!0,placement:"top",portalProps:a},i.createElement(r,{environment:this.props.environment,backend:this.props.backend,libraryId:this.props.library,container:this.getRoot(),auth:this.props.auth,getTheme:this.getTheme,onStatusChange:this.onStatusChange,modalProps:{portalProps:a},chakraProps:{resetScope:':where([feaas-role="ui"])',cssVarsRoot:":host",resetCSS:!0,toastOptions:{portalProps:a}}},e)}};tU.observedAttributes=["library","component","version","revision","hostname","template"],tU.register("feaas-context"),tU.prototype.clientside=eZ;var tH=class extends eY{load(){return Promise.resolve({React:o,ReactDOM:z})}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(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(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 $(f(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(tV,{src:r,...e}):null}static linkComponents(e){return()=>e.map(e=>null)}};tH.registered=N,tH.registerComponent=L,tH.setRegistrationCallback=U,tH.getComponent=I,tH.register("feaas-external");var{linkComponents:tB}=tH,tW={},tV=function({data:e,lastModified:t,fetchedData:r,renderNode:n,...i}){var a,l,s,u;
76let c;"template"in i&&i.template&&(c=(a=i.template,l=r||e||{},eB(a).map(e=>eL(e,l,s))).map((e,t)=>(function e(t,r,n){var i;if(3===t.nodeType)return t.textContent;let a=Array.from(t.childNodes).map((t,n)=>e(t,r,n)),l={};for(let e=0;e<t.attributes.length;e++){let{name:r,value:n}=t.attributes[e];"style"==r?l[r]=String(n||"").trim().split(/\s*;\s*/).reduce((e,t)=>{let[r,n]=t.split(":");return{...e,[m(r)]:n}},{}):"class"==r?l.className=n:l[r]=n}let s=null==r?void 0:r(t,l),u=(null==s?void 0:s[0])||t.nodeName.toLowerCase();"style"==u&&(l.dangerouslySetInnerHTML={__html:a.join(` 77`)});let c=Object.assign({key:n,suppressHydrationWarning:!0},(null==s?void 0:s[1])||l),d=(null===(i=null==s?void 0:s[1])||void 0===i?void 0:i.children)||a;return o.createElement(u,c,["img","br","input","style"].includes(u)?null:d)})(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(tW[e.localName])return[tW[e.localName],t];if("feaas-external"==e.localName){let e={};for(var r in t)e["data-external-id"==r?"componentName":m(r)]=t[r];return[V,e]}},t))),"src"in i&&(i={...tt(i.src),...i});let d=null==(u=i.fetch)||!0===u?["template","stylesheet","data"]:[].concat(u||[]),p=d.includes("data")?e:d.includes("template")?r||e:null;return o.createElement(o.Fragment,null,"preload"in i&&!1,o.createElement("feaas-component",{class:"-feaas",...i,"last-modified":t?String(t):null,fetch:null==i.fetch?i.fetch:[].concat(i.fetch).join(" "),suppressHydrationWarning:!0,template:null,data:"string"==typeof p?p:p?JSON.stringify(p):null},c))};let tz=e=>{var t,r,n,i,a,l,s;let c=(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||!c))return null;let d=Object.assign(Object.assign({},e.fetchedData),{_:(0,u.jw)(null!==(r=e.fields)&&void 0!==r?r:{})});return o.createElement(tV,{data:d,template:e.template,cdn:null===(n=e.params)||void 0===n?void 0:n.ComponentHostName,library:null===(i=e.params)||void 0===i?void 0:i.LibraryId,version:null===(a=e.params)||void 0===a?void 0:a.ComponentVersion,component:null===(l=e.params)||void 0===l?void 0:l.ComponentId,instance:null===(s=e.params)||void 0===s?void 0:s.ComponentInstanceId,revision:c,fetch:[]})},tq=e=>{var t,r;let n=`component feaas ${null===(t=e.params)||void 0===t?void 0:t.styles}`.trimEnd(),i=null===(r=e.params)||void 0===r?void 0:r.RenderingIdentifier;return o.createElement("div",{className:n,id:i||void 0},o.createElement("div",{className:"component-content"},o.createElement(tz,Object.assign({},e))))},tG=e=>{var t;return o.createElement("div",null,"A rendering error occurred: ",null===(t=e.error)||void 0===t?void 0:t.message,".")};class tK extends o.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 n=this.props;if(this.state.error)return this.props.errorComponent?o.createElement(this.props.errorComponent,{error:this.state.error}):o.createElement(tG,{error:this.state.error});let{ComponentName:i}=n.params||{};if(!i){let e={errorOverride:"BYOC: The ComponentName for this rendering is missing"};return n.missingComponentComponent?o.createElement(this.props.missingComponentComponent,Object.assign({},e)):o.createElement(l,Object.assign({},e))}let a={rendering:{componentName:i},errorOverride:"BYOC: This component was not registered."},s=this.props.missingComponentComponent?o.createElement(this.props.missingComponentComponent,Object.assign({},a)):o.createElement(l,Object.assign({},a)),c=this.props.errorComponent,d={};if(null===(e=n.params)||void 0===e?void 0:e.ComponentProps)try{d=null!==(t=JSON.parse(n.params.ComponentProps))&&void 0!==t?t:{}}catch(e){return console.error(`Parsing props for ${i} component from rendering params failed. Error: ${e}`),c?o.createElement(c,{error:e}):o.createElement(tG,{error:e})}let p=Object.assign(Object.assign({},n.fetchedData),{_:(0,u.jw)(null!==(r=n.fields)&&void 0!==r?r:{})});return o.createElement(V,Object.assign({},n.rendering,{componentName:i,clientFallback:s,datasources:p},d))}}let tZ="BYOCWrapper",tJ=e=>{var t,r,n;let i=null===(r=null===(t=e.params)||void 0===t?void 0:t.styles)||void 0===r?void 0:r.trimEnd(),a=null===(n=e.params)||void 0===n?void 0:n.RenderingIdentifier;return o.createElement("div",{className:i||void 0,id:a||void 0},o.createElement("div",{className:"component-content"}
77,o.createElement(tK,Object.assign({},e))))};var tQ=r(180);let tY=({rendering:e,placeholderName:t,children:r})=>{let n;let i=(t,r,n)=>{let o=n?"placeholder":"rendering",i={type:"text/sitecore",chrometype:o,className:"scpm",kind:t};if(t===tQ.MetadataKind.Open){if("placeholder"===o&&n){let t="";for(let o of Object.keys(e.placeholders)){if(n===o){t=r?`${n}_${r}`:`${n}_${tQ.DEFAULT_PLACEHOLDER_UID}`;break}if((0,s.isDynamicPlaceholder)(o)&&(0,s.getDynamicPlaceholderPattern)(o).test(n)){t=r?`${o}_${r}`:`${o}_${tQ.DEFAULT_PLACEHOLDER_UID}`;break}}i.id=t}else i.id=r}return i};return o.createElement(o.Fragment,null,(n=e.uid,o.createElement(o.Fragment,null,o.createElement("code",Object.assign({},i(tQ.MetadataKind.Open,n,t))),r,o.createElement("code",Object.assign({},i(tQ.MetadataKind.Close,n,t))))))};var tX=r(7005);class t0 extends o.Component{constructor(e){super(e),this.defaultErrorMessage="There was a problem loading this section.",this.defaultLoadingMessage="Loading component...",this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){var r,n;this.showErrorDetails()&&console.error(`An error occurred in component ${null===(r=this.props.rendering)||void 0===r?void 0:r.componentName} (${null===(n=this.props.rendering)||void 0===n?void 0:n.uid}): `),console.error({error:e,errorInfo:t})}isInDevMode(){return!1}showErrorDetails(){var e,t;return this.isInDevMode()||(null===(e=this.props.sitecoreContext)||void 0===e?void 0:e.pageState)===s.LayoutServicePageState.Edit||(null===(t=this.props.sitecoreContext)||void 0===t?void 0:t.pageState)===s.LayoutServicePageState.Preview}render(){var e;return this.state.error?this.props.errorComponent?o.createElement(this.props.errorComponent,{error:this.state.error}):this.showErrorDetails()?o.createElement("div",null,o.createElement("div",{className:"sc-jss-placeholder-error"},"A rendering error occurred in component"," ",o.createElement("em",null,null===(e=this.props.rendering)||void 0===e?void 0:e.componentName),o.createElement("br",null),"Error: ",o.createElement("em",null,this.state.error.message||JSON.stringify(this.state.error)))):o.createElement("div",null,o.createElement("div",{className:"sc-jss-placeholder-error"},this.defaultErrorMessage)):this.props.isDynamic?this.props.children:o.createElement(o.Suspense,{fallback:o.createElement("h4",null,this.props.componentLoadingMessage||this.defaultLoadingMessage)},this.props.children)}}var t1=(0,tX.p)()(t0),t2=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};class t3 extends o.Component{constructor(e){super(e),this.nodeRefs=[],this.state={},this.addRef=this.addRef.bind(this),this.updateKeyAttributes=this.updateKeyAttributes.bind(this),this.createRawElement=this.createRawElement.bind(this)}static getPlaceholderDataFromRenderingData(e,t,r){let n;let o=t.slice();return((null==e?void 0:e.placeholders)&&Object.keys(e.placeholders).forEach(t=>{let n=(0,s.isDynamicPlaceholder)(t)?(0,s.getDynamicPlaceholderPattern)(t):null;n&&n.test(o)&&(r===s.EditMode.Metadata?o=t:(e.placeholders[o]=e.placeholders[t],delete e.placeholders[t]))}),n=e&&e.placeholders&&Object.keys(e.placeholders).length>0?e.placeholders[o]:null)?n:(console.warn(`Placeholder '${o}' was not found in the current rendering data`,JSON.stringify(e,null,2)),[])}componentDidMount(){this.updateKeyAttributes()}componentDidUpdate(){this.updateKeyAttributes()}componentDidCatch(e){this.setState({error:e})}getSXAParams(e){return e.params?e.params.FieldNames&&{styles:`${e.params.GridParameters||""} ${e.params.Styles||""}`}:{}}getComponentsForRenderingData(e){var t;let r=this.props,{name:n,fields:i,params:a,missingComponentComponent:u,hiddenRenderingComponent:c}=r,p=t2(r,["name","fields","params","missingComponentComponent","hiddenRenderingComponent"]),f=e.map((e,t)=>{var r,f;let h;let m=e.uid?e.uid:`component-${t}`,y={key:m},g=!1;if(!e.componentName&&e.name)return this.createRawElement(e,y);"Hidden Rendering"===e.componentName?(h=null!=c?c:d,g=!0):e.componentName?h=this.getComponentForRendering(e):(h=()=>o.createElement(o.Fragment,null),g=!0),h||("FEaaSComponent"===e.componentName?h=tz:"FEaaSWrapper"===e.componentName?h=tq:"BYOCComponent"===e.componentName?h=tK:e.componentName!==tZ||(h=tJ)),h||(console.error(`Placeholder ${n} contains unknown component ${e.componentName}. Ensure that a React component exists for it, and that it is registered in your componentFactory.js.`),h=null!=u?u:l,g=!0);let v=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},y),p),(i||e.fields)&&{fields:Object.assign(Object.assign({},i),e.fields)}),(a||e.params)&&{params:Object.assign(Object.assign(Object.assign({}
77,a),e.params),this.getSXAParams(e))}),{rendering:e}),b=o.createElement(h,this.props.modifyComponentProps?this.props.modifyComponentProps(v):v);if(!g){let n="text/sitecore"===b.props.type?b.props.type:"",i=e.componentName===tZ,a=!!(null===(r=h.render)||void 0===r?void 0:r.preload);b=o.createElement(t1,Object.assign({key:b.type+"-"+t,errorComponent:this.props.errorComponent,componentLoadingMessage:this.props.componentLoadingMessage,type:n,isDynamic:a||i},b.props),b)}return(null===(f=this.props.sitecoreContext)||void 0===f?void 0:f.editMode)===s.EditMode.Metadata?o.createElement(tY,{key:m,rendering:e},b):b}).filter(e=>e);return(null===(t=this.props.sitecoreContext)||void 0===t?void 0:t.editMode)===s.EditMode.Metadata?[o.createElement(tY,{key:this.props.rendering.uid,placeholderName:n,rendering:this.props.rendering},f)]:f}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,u.WF)(e.attributes),n=Object.assign(Object.assign(Object.assign({},t),r),{dangerouslySetInnerHTML:e.contents?{__html:e.contents}:void 0});return!Array.isArray(r)&&r&&"placeholder"===r.chrometype&&(n.phkey=e.attributes.key,n.ref=this.addRef),o.createElement(e.name,n)}updateKeyAttributes(){this.nodeRefs&&this.nodeRefs.forEach(e=>{if(e&&e.getAttribute){let t=e.getAttribute("phkey");t&&e.setAttribute("key",t)}})}}t3.propTypes={rendering:a().oneOfType([a().object,a().object]).isRequired,fields:a().objectOf(a().oneOfType([a().object,a().object]).isRequired),params:a().objectOf(a().string.isRequired),missingComponentComponent:a().oneOfType([a().object,a().func]),hiddenRenderingComponent:a().oneOfType([a().object,a().func]),errorComponent:a().oneOfType([a().object,a().func]),modifyComponentProps:a().func,sitecoreContext:a().object};var t4=r(8626);class t6 extends t3{constructor(e){super(e),this.isEmpty=!1}componentDidMount(){super.componentDidMount(),this.isEmpty&&tQ.HorizonEditor.isActive()&&tQ.HorizonEditor.resetChromes()}renderEmptyPlaceholder(e){return o.createElement("div",{className:"sc-jss-empty-placeholder"},e)}render(){var e;let t=Object.assign({},this.props);if(delete t.componentFactory,this.state.error)return t.errorComponent?o.createElement(t.errorComponent,{error:this.state.error}):o.createElement("div",{className:"sc-jss-placeholder-error"},"A rendering error occurred: ",this.state.error.message,".");let r=t.rendering,n=t3.getPlaceholderDataFromRenderingData(r,this.props.name,null===(e=this.props.sitecoreContext)||void 0===e?void 0:e.editMode);this.isEmpty=n.every(e=>!e.componentName&&void 0!==e.name);let i=this.getComponentsForRenderingData(n);if(this.props.renderEmpty&&this.isEmpty){let e=this.props.renderEmpty(i);return i.length?this.renderEmptyPlaceholder(e):e}if(i.length&&this.isEmpty)return this.renderEmptyPlaceholder(i);if(this.props.render)return this.props.render(i,n,t);{if(!this.props.renderEach)return i;let e=this.props.renderEach;return i.map((t,r)=>t&&t.props&&"text/sitecore"===t.props.type?t:e(t,r))}}}t6.propTypes=t3.propTypes;let t8=function(e){function t(t){let r=(0,o.useContext)(t4.R7);return o.createElement(e,Object.assign({},t,{componentFactory:t.componentFactory||r}))}return t.displayName=`withComponentFactory(${e.displayName||e.name||"Anonymous"})`,t}(t6),t5=(0,tX.p)()(t8);var t9=r(6703);let t7=e=>{let t=(0,o.useContext)(t9.ho);return o.createElement(t5,Object.assign({},e,{modifyComponentProps:e=>{if(!e.rendering.uid)return e;let r=t[e.rendering.uid];return Object.assign(Object.assign({},e),r)}}))}},557:function(e,t,r){"use strict";r.d(t,{H:function(){return c}});var n=r(2784),o=r(5440),i=r.n(o),a=r(5632),l=r(3692),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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let u={},c=e=>{let{internalLinksSelector:t='a[href^="/"]',prefetchLinks:r=!0,editable:o=!0}=e,i=s(e,["internalLinksSelector","prefetchLinks","editable"]),c=e.f
77ield&&e.field.value,d=o&&e.field&&(e.field.editable||e.field.metadata),p=(0,a.useRouter)(),f=(0,n.useRef)(null);(0,n.useEffect)(()=>{c&&!d&&m()},[c]);let h=e=>{if(!e.currentTarget)return;e.preventDefault();let t=e.currentTarget.href;p.push(t,t,{locale:!1})},m=()=>{let e=f.current,n=e&&e.querySelectorAll(t);n&&n.length&&n.forEach(e=>{if("_blank"===e.target)return;let t=()=>{p.prefetch(e.pathname,void 0,{locale:!1}),u[e.pathname]=!0};if(!u[e.pathname]&&!1!==r&&(!0===r&&t(),"hover"===r)){let r=()=>{t(),e.removeEventListener("mouseover",r)};e.addEventListener("mouseover",r,!1)}e.addEventListener("click",h,!1)})};return n.createElement(l.H,Object.assign({ref:f,editable:o},i))};c.propTypes=Object.assign({internalLinksSelector:i().string},l.e),c.displayName="NextRichText"},8043:function(e,t,r){"use strict";r.d(t,{M:function(){return o},w:function(){return i}});var n=r(2784);let o=()=>n.createElement("span",null,"[No text in field]"),i=()=>n.createElement("img",{alt:"",src:'data:image/svg+xml,%3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 240 240" style="enable-background:new 0 0 240 240;" xml:space="preserve"%3E%3Cstyle type="text/css"%3E .st0%7Bfill:none;%7D .st1%7Bfill:%23969696;%7D .st2%7Bfill:%23FFFFFF;%7D .st3%7Bfill:%23FFFFFF;stroke:%23FFFFFF;stroke-width:0.75;stroke-miterlimit:10;%7D%0A%3C/style%3E%3Cg%3E%3Crect class="st0" width="240" height="240"/%3E%3Cg%3E%3Cg%3E%3Crect x="20" y="20" class="st1" width="200" height="200"/%3E%3C/g%3E%3Cg%3E%3Ccircle class="st2" cx="174" cy="67" r="14"/%3E%3Cpath class="st2" d="M174,54c7.17,0,13,5.83,13,13s-5.83,13-13,13s-13-5.83-13-13S166.83,54,174,54 M174,52 c-8.28,0-15,6.72-15,15s6.72,15,15,15s15-6.72,15-15S182.28,52,174,52L174,52z"/%3E%3C/g%3E%3Cpolyline class="st3" points="29.5,179.25 81.32,122.25 95.41,137.75 137.23,91.75 209.5,179.75 "/%3E%3C/g%3E%3C/g%3E%3C/svg%3E',className:"scEmptyImage",style:{minWidth:"48px",minHeight:"48px",maxWidth:"400px",maxHeight:"400px",cursor:"pointer"}})},8980:function(e,t,r){"use strict";r.d(t,{X:function(){return a}});var n=r(2784),o=r(7005),i=r(180);let a=({children:e,dataSource:t,buttons:r,title:a,tooltip:l,cssClass:s,parameters:u})=>{var c;let{sitecoreContext:d}=(0,o.z)();if(!d.pageEditing)return n.createElement(n.Fragment,null,e);let p={displayName:a,expandedDisplayName:l},f={};if(f.className="scLooseFrameZone",s&&(f.className=`${f.className} ${s}`),t){let e=t.databaseName||(null===(c=d.route)||void 0===c?void 0:c.databaseName),r=t.language||d.language;f.sc_item=`sitecore://${e}/${t.itemId}?lang=${r}`,p.contextItemUri=f.sc_item}return p.commands=null==r?void 0:r.map(e=>(0,i.mapButtonToCommand)(e,null==t?void 0:t.itemId,u)),n.createElement("div",Object.assign({className:"scLooseFrameZone"},f),n.createElement("span",{className:"scChromeData"},JSON.stringify(p)),e)}},5077:function(e,t,r){"use strict";r.d(t,{E:function(){return y},Y:function(){return m}});var n=r(1504),o=r(5440),i=r.n(o),a=r(2784),l=r(9405),s=r(9885),u=r(893),c=r(8043),d=r(4417),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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let f=(e,...t)=>a.createElement("span",Object.assign({className:"sc-image-wrapper"},t,{dangerouslySetInnerHTML:{__html:e}})),h=(e,t,r)=>{var{src:o,srcSet:i}=e,a=p(e,["src","srcSet"]);if(!o)return null;(0,l.yn)(a);let s=Object.assign({},a),u=n.mediaApi.updateImageUrl(o,t,r);return i&&(s.srcSet=n.mediaApi.getSrcSet(u,i,t,r)),s.src=u,s},m=(e,t,r,o)=>{let i=n.mediaApi.findEditorImageTag(e.editable);if(!i)return f(e.editable);let a=h(Object.assign(Object.assign({},(0,l.WF)(i.attrs)),o),t,r);if(!a)return f(e.editable);let s=`<img ${(0,l.No)(a)} />`;return f(e.editable.replace(i.imgTag,s))},y=(0,s.K)((0,u.c)(e=>{var{editable:t=!0,imageParams:r,field:n,mediaUrlPrefix:o}=e,i=p(e,["editable","imageParams","field","mediaUrlPrefix"]);if(!n||!n.editable&&(0,d.isFieldValueEmpty)(n))return null;if(t&&n.editable)return m(n,r,o,i);let l=n.src?n:n.value;if(!l)return null;l.metadata&&delete l.metadata;let s=h(Object.assign(Object.assign({},l),i),r,o);return s?a.createElement("img",Object.assign({},s)):null},{defaultEmptyFieldEditingComponent:c.w}));y.propTypes={field:i().oneOfType([i().shape({src:i().string}),i().shape({value:i().object,editable:i().string})]),editable:i().bool,mediaUrlPrefix:i().instanceOf(RegExp),imageParams:i().objectOf(i().oneOfType([i().number.isRequired,i().string.isRequired]).isRequired),emptyFieldEditingComponent:i().oneOfType([i().object,i().func])},y.displayName="Image"},3692:function(e,t,r){"use strict";r.d(t,{H:function(){return d},e:function(){return p}});var n=r(2784),o=r(5440),i=r.n(o),a=r(9885),l=r(893),s=r(8043),u=r(4417),c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let d=(0,a.K)((0,l.c)((0,n.forwardRef)((e,t)=>{var{field:r,tag:o="div",editable:i=!0}=e,a=c(e,["field","tag","editable"]);
77if(!r||!r.editable&&(0,u.isFieldValueEmpty)(r))return null;let l=Object.assign({dangerouslySetInnerHTML:{__html:r.editable&&i?r.editable:r.value},ref:t},a);return n.createElement(o||"div",l)}),{defaultEmptyFieldEditingComponent:s.M,isForwardRef:!0}),!0),p={field:i().shape({value:i().string,editable:i().string,metadata:i().objectOf(i().any)}),tag:i().string,editable:i().bool,emptyFieldEditingComponent:i().oneOfType([i().object,i().func])};d.propTypes=p,d.displayName="RichText"},8626:function(e,t,r){"use strict";r.d(t,{Qb:function(){return c},R7:function(){return u},sy:function(){return s}});var n=r(2784),o=r(5440),i=r.n(o),a=r(4124),l=r.n(a);let s=n.createContext({}),u=n.createContext({});class c 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(!l()(e.layoutData,this.props.layoutData)){this.setContext(this.props.layoutData);return}}render(){return n.createElement(u.Provider,{value:this.props.componentFactory},n.createElement(s.Provider,{value:this.state},this.props.children))}}c.propTypes={children:i().any.isRequired,componentFactory:i().func,layoutData:i().shape({sitecore:i().shape({context:i().any,route:i().any})})},c.displayName="SitecoreContext"},3124:function(e,t,r){"use strict";r.d(t,{x:function(){return d}});var n=r(2784),o=r(9885),i=r(893),a=r(8043),l=r(5440),s=r.n(l),u=r(4417),c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let d=(0,o.K)((0,i.c)(e=>{var{field:t,tag:r,editable:o=!0,encode:i=!0}=e,a=c(e,["field","tag","editable","encode"]);if(!t||!t.editable&&(0,u.isFieldValueEmpty)(t))return null;i||(o=!1);let l=t.editable&&o,s=l?t.editable||"":void 0===t.value?"":t.value;if(!t.editable&&"string"==typeof s){let e=String(s).split("\n");if(e.length){let t=[];e.forEach((r,o)=>{let i=o===e.length-1;t.push(r),i||t.push(n.createElement("br",{key:o}))}),s=t}}let d=l||!i,p=null,f=Object.assign({},a);return(d?f.dangerouslySetInnerHTML={__html:s}:p=s,r||d)?n.createElement(r||"span",f,p):n.createElement(n.Fragment,null,p)},{defaultEmptyFieldEditingComponent:a.M}));d.propTypes={field:s().shape({value:s().oneOfType([s().string,s().number]),editable:s().string,metadata:s().objectOf(s().any)}),tag:s().string,editable:s().bool,encode:s().bool,emptyFieldEditingComponent:s().oneOfType([s().object,s().func])},d.displayName="Text"},9554:function(e,t,r){"use strict";r.d(t,{C:function(){return a}});var n=r(2784),o=r(7005);let i=()=>n.createElement("div",{className:"sc-jss-editing-error",role:"alert"},"Datasource is required. Please choose a content item for this component.");function a(e){return function(t){return function(r){var a,l;let{sitecoreContext:s}=(0,o.z)(),u=null!==(a=null==e?void 0:e.editingErrorComponent)&&void 0!==a?a:i;return(null===(l=r.rendering)||void 0===l?void 0:l.dataSource)?n.createElement(t,Object.assign({},r)):s.pageEditing?n.createElement(u,null):null}}}},893:function(e,t,r){"use strict";r.d(t,{c:function(){return i}});var n=r(2784),o=r(4417);function i(e,t){let r=e=>{var r;let{editable:n=!0}=e;return(null===(r=e.field)||void 0===r?void 0:r.metadata)&&n&&(0,o.isFieldValueEmpty)(e.field)?e.emptyFieldEditingComponent||t.defaultEmptyFieldEditingComponent:null};return t.isForwardRef?(0,n.forwardRef)((t,o)=>{let i=r(t);return n.createElement(n.Fragment,null,i&&n.createElement(i,null)||n.createElement(e,Object.assign({},t,{ref:o})))}):t=>{let o=r(t);return n.createElement(n.Fragment,null,o&&n.createElement(o,null)||n.createElement(e,Object.assign({},t)))}}},9885:function(e,t,r){"use strict";r.d(t,{K:function(){return s}});var n=r(2784),o=r(5440),i=r.n(o),a=r(180);let l=e=>{let t=JSON.stringify(e.metadata),r={type:"text/sitecore",chrometype:"field",className:"scpm"},o=Object.assign(Object.assign({},r),{kind:a.MetadataKind.Open}),i=Object.assign(Object.assign({},r),{kind:a.MetadataKind.Close});return n.createElement(n.Fragment,null,n.createElement("code",Object.assign({},o),t),e.children,n.createElement("code",Object.assign({},i)))};function s(e,t=!1){return t?(0,n.forwardRef)((t,r)=>{var o;let{editable:i=!0}=t,a=null===(o=t.field)||void 0===o?void 0:o.metadata;return a&&i?n.createElement(l,{metadata:a},n.createElement(e,Object.assign({},t,{ref:r}))):n.createElement(e,Object.assign({},t,{ref:r}))}):t=>{var r;let{editable:o=!0}=t,i=null===(r=t.field)||void 0===r?void 0:r.metadata;return i&&o?n.createElement(l,{metadata:i},n.createElement(e,Object.assign({},t))):n.createElement(e,Object.assign({},t))}}l.displayName="FieldMetadata",l.propTypes={metadata:i().object.isRequired,children:i().node.isRequired}},7005:function(e,t,r){"use strict";r.d(t,{p:function(){return i},z:function(){return a}});var n=r(2784),o=r(8626);function i(e){return function(t){return function(r){return n.createElement(o.sy.Consumer,null,o=>n.createElement(t,Object.assign({},r,{sitecoreContext:o.context,updateSitecoreContext:e&&e.updatable&&o.setContext}
77)))}}}function a(e){let t=n.useContext(o.sy),r=null==e?void 0:e.updatable;return{sitecoreContext:t.context,updateSitecoreContext:r?t.setContext:void 0}}},9405:function(e,t,r){"use strict";r.d(t,{No:function(){return c},WF:function(){return s},jw:function(){return d},yn:function(){return u}});var n=r(4417),o=r(6664),i=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let a=e=>e.replace(/^.|-./g,(e,t)=>0===t?e.toLowerCase():e.substr(1).toUpperCase()),l=(e="")=>{let t=(0,o.Qc)(e,{preserveNumbers:!0});return Object.keys(t).reduce((e,r)=>(e[a(r)]=t[r],e),{})},s=e=>e?Object.keys(e).reduce((t,r)=>{switch(r){case"class":t.className=e.class;break;case"style":t.style=l(e.style);break;default:t[r]=e[r]}return t},{}):[],u=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}},c=e=>{let{className:t}=e,r=Object.entries(i(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),{})},6686:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.HIDDEN_RENDERING_NAME=t.SITECORE_EDGE_URL_DEFAULT=t.siteNameError=t.JSS_MODE=t.FETCH_WITH=t.SitecoreTemplateId=void 0,(n=r||(t.SitecoreTemplateId=r={})).JssApp="061cba1554744b918a0617903b102b82",n.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",t.HIDDEN_RENDERING_NAME="Hidden Rendering"},8977:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function l(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,l)}s((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseError=void 0,t.fetchData=function(e,t){return n(this,arguments,void 0,function*(e,t,r={}){return(yield t((0,o.resolveUrl)(e,r))).data})};let o=r(8425);class i extends Error{constructor(e,t){super(e),Object.setPrototypeOf(this,i.prototype),this.response=t}}t.ResponseError=i},2e3:function(e,t,r){"use strict";var n,o=r(4406),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.enableDebug=void 0;let a=i(r(5130)),l=i(r(6448)),s="sitecore-jss";(0,l.default)()&&(null===(n=null==o?void 0:o.env)||void 0===n?void 0:n.DEBUG_MULTILINE)==="true"&&a.default.formatters.o&&a.default.formatters.O&&(a.default.formatters.o=a.default.formatters.O),t.enableDebug=e=>a.default.enable(e),t.default={common:(0,a.default)(`${s}:common`),http:(0,a.default)(`${s}:http`),layout:(0,a.default)(`${s}:layout`),dictionary:(0,a.default)(`${s}:dictionary`),editing:(0,a.default)(`${s}:editing`),sitemap:(0,a.default)(`${s}:sitemap`),multisite:(0,a.default)(`${s}:multisite`),robots:(0,a.default)(`${s}:robots`),redirects:(0,a.default)(`${s}:redirects`),personalize:(0,a.default)(`${s}:personalize`),errorpages:(0,a.default)(`${s}:errorpages`),proxy:(0,a.default)(`${s}:proxy`)}},6364: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({isDivider:!1,type:e.type||null,header:e.header||"",icon:e.icon||"",tooltip:e.tooltip||""},e);{let n=e.click,o={},i=e.click.indexOf("(");if(i>=0){let t=e.click.indexOf(")");if(t<0)throw Error('Message with arguments must end with ")".');o=e.click.substring(i+1,t).split(",").map(e=>e.trim()).reduce((e,t)=>
77{let r=t.split("=");return r.length<2?e[r[0]]="":e[r[0]]=r[1],e},{}),n=e.click.substring(0,i)}o.id=t,e.parameters&&Object.keys(e.parameters).forEach(t=>{var r;o[t]=(null===(r=e.parameters[t])||void 0===r?void 0:r.toString())||""}),r&&Object.keys(r).forEach(e=>{var t;o[e]=(null===(t=r[e])||void 0===t?void 0:t.toString())||""});let a=Object.keys(o).map(e=>`${e}=${o[e]}`).join(", "),l=`${n}(${a})`;return{isDivider:!1,click:`javascript:Sitecore.PageModes.PageEditor.postRequest('${l}',null,false)`,header:e.header||"",icon:e.icon||"",tooltip:e.tooltip||"",type:e.type||null}}}Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultEditFrameButtons=t.DefaultEditFrameButton=t.DefaultEditFrameButtonIds=void 0,t.mapButtonToCommand=function(e,n,o){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,o);{let i=e.fields.join("|");return r(Object.assign({click:`webedit:fieldeditor(command=${t.DefaultEditFrameButtonIds.edit},fields=${i})`},e),n,o)}},t.commandBuilder=r,t.DefaultEditFrameButtonIds={edit:"{70C4EED5-D4CD-4D7D-9763-80C42504F5E7}"},t.DefaultEditFrameButton={insert:{header:"Insert New",icon:"/~/icon/Office/16x16/insert_from_template.png",click:"webedit:new",tooltip:"Insert a new item"},editRelatedItem:{header:"Edit the related item",icon:"/~/icon/Office/16x16/cubes.png",click:"webedit:open",tooltip:"Edit the related item in the Content Editor."},edit:{header:"Edit Item",icon:"/~/icon/people/16x16/cubes_blue.png",fields:["Title","Text"],tooltip:"Edit the item fields."}},t.DefaultEditFrameButtons=[t.DefaultEditFrameButton.editRelatedItem,t.DefaultEditFrameButton.insert,t.DefaultEditFrameButton.edit]},8615:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function l(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,l)}s((n=n.apply(e,t||[])).next())})},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLEditingService=t.dictionaryQuery=t.query=void 0;let i=o(r(2e3)),a=r(4417),l=r(3858);t.query=` 78 query EditingQuery( 79 $siteName: String! 80 $itemId: String! 81 $language: String! 82 $version: String 83 $after: String 84 $pageSize: Int = 1000 85) { 86 item(path: $itemId, language: $language, version: $version) { 87 rendered 88 } 89 site { 90 siteInfo(site: $siteName) { 91 dictionary(language: $language, first: $pageSize, after: $after) { 92 results { 93 key 94 value 95 } 96 pageInfo { 97 endCursor 98 hasNext 99 } 100 } 101 } 102 } 103 } 104`,t.dictionaryQuery=` 105 query EditingDictionaryQuery( 106 $siteName: String! 107 $language: String! 108 $after: String 109 $pageSize: Int = 1000 110 ) { 111 site { 112 siteInfo(site: $siteName) { 113 dictionary(language: $language, first: $pageSize, after: $after) { 114 results { 115 key 116 value 117 } 118 pageInfo { 119 endCursor 120 hasNext 121 } 122 } 123 } 124 } 125 } 126`;class s{constructor(e){this.serviceConfig=e,this.graphQLClient=this.getGraphQLClient()}fetchEditingData(e){return n(this,arguments,void 0,function*({siteName:e,itemId:r,language:n,version:o,layoutKind:s=l.LayoutKind.Final}){var u,c,d,p,f;if(i.default.editing("fetching editing data for %s %s %s %s",e,r,n,o,s),!e)throw RangeError("The site name must be a non-empty string");if(!n)throw RangeError("The language must be a non-empty string");let h={},m=[],y=!0,g="",v=yield this.graphQLClient.request(t.query,{siteName:e,itemId:r,version:o,language:n},{headers:{sc_layoutKind:s}});for((null===(c=null===(u=null==v?void 0:v.site)||void 0===u?void 0:u.siteInfo)||void 0===c?void 0:c.dictionary)?(m=v.site.siteInfo.dictionary.results,y=v.site.siteInfo.dictionary.pageInfo.hasNext,g=v.site.siteInfo.dictionary.pageInfo.endCursor):y=!1;y;){let r=yield this.graphQLClient.request(t.dictionaryQuery,{siteName:e,language:n,after:g});(null===(p=null===(d=null==r?void 0:r.site)||void 0===d?void 0:d.siteInfo)||void 0===p?void 0:p.dictionary)?(m=m.concat(r.site.siteInfo.dictionary.results),y=r.site.siteInfo.dictionary.pageInfo.hasNext,g=r.site.siteInfo.dictionary.pageInfo.endCursor):y=!1}
126return m.forEach(e=>h[e.key]=e.value),{layoutData:(null===(f=null==v?void 0:v.item)||void 0===f?void 0:f.rendered)||{sitecore:{context:{pageEditing:!0,language:n,editMode:a.EditMode.Metadata},route:null}},dictionary:h}})}getGraphQLClient(){if(!this.serviceConfig.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.serviceConfig.clientFactory({debugger:i.default.editing,headers:{sc_editMode:"true"}})}}t.GraphQLEditingService=s},180:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataKind=t.LayoutKind=t.mapButtonToCommand=t.DefaultEditFrameButtonIds=t.DefaultEditFrameButtons=t.DefaultEditFrameButton=t.PAGES_EDITING_MARKER=t.QUERY_PARAM_EDITING_SECRET=t.EDITING_ALLOWED_ORIGINS=t.getJssPagesClientData=t.handleEditorAnchors=t.resetEditorChromes=t.isEditorActive=t.HorizonEditor=t.ExperienceEditor=t.DEFAULT_PLACEHOLDER_UID=t.GraphQLEditingService=void 0;var n=r(8615);Object.defineProperty(t,"GraphQLEditingService",{enumerable:!0,get:function(){return n.GraphQLEditingService}});var o=r(3447);Object.defineProperty(t,"DEFAULT_PLACEHOLDER_UID",{enumerable:!0,get:function(){return o.DEFAULT_PLACEHOLDER_UID}}),Object.defineProperty(t,"ExperienceEditor",{enumerable:!0,get:function(){return o.ExperienceEditor}}),Object.defineProperty(t,"HorizonEditor",{enumerable:!0,get:function(){return o.HorizonEditor}}),Object.defineProperty(t,"isEditorActive",{enumerable:!0,get:function(){return o.isEditorActive}}),Object.defineProperty(t,"resetEditorChromes",{enumerable:!0,get:function(){return o.resetEditorChromes}}),Object.defineProperty(t,"handleEditorAnchors",{enumerable:!0,get:function(){return o.handleEditorAnchors}}),Object.defineProperty(t,"getJssPagesClientData",{enumerable:!0,get:function(){return o.getJssPagesClientData}}),Object.defineProperty(t,"EDITING_ALLOWED_ORIGINS",{enumerable:!0,get:function(){return o.EDITING_ALLOWED_ORIGINS}}),Object.defineProperty(t,"QUERY_PARAM_EDITING_SECRET",{enumerable:!0,get:function(){return o.QUERY_PARAM_EDITING_SECRET}}),Object.defineProperty(t,"PAGES_EDITING_MARKER",{enumerable:!0,get:function(){return o.PAGES_EDITING_MARKER}});var i=r(6364);Object.defineProperty(t,"DefaultEditFrameButton",{enumerable:!0,get:function(){return i.DefaultEditFrameButton}}),Object.defineProperty(t,"DefaultEditFrameButtons",{enumerable:!0,get:function(){return i.DefaultEditFrameButtons}}),Object.defineProperty(t,"DefaultEditFrameButtonIds",{enumerable:!0,get:function(){return i.DefaultEditFrameButtonIds}}),Object.defineProperty(t,"mapButtonToCommand",{enumerable:!0,get:function(){return i.mapButtonToCommand}});var a=r(3858);Object.defineProperty(t,"LayoutKind",{enumerable:!0,get:function(){return a.LayoutKind}}),Object.defineProperty(t,"MetadataKind",{enumerable:!0,get:function(){return a.MetadataKind}})},3858:function(e,t){"use strict";var r,n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataKind=t.LayoutKind=void 0,(o=r||(t.LayoutKind=r={})).Final="final",o.Shared="shared",(i=n||(t.MetadataKind=n={})).Open="open",i.Close="close"},3447:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getJssPagesClientData=t.handleEditorAnchors=t.resetEditorChromes=t.isEditorActive=t.HorizonEditor=t.ChromeRediscoveryGlobalFunctionName=t.ExperienceEditor=t.EDITING_ALLOWED_ORIGINS=t.PAGES_EDITING_MARKER=t.QUERY_PARAM_EDITING_SECRET=t.DEFAULT_PLACEHOLDER_UID=void 0;let o=n(r(6448));t.DEFAULT_PLACEHOLDER_UID="00000000-0000-0000-0000-000000000000",t.QUERY_PARAM_EDITING_SECRET="secret",t.PAGES_EDITING_MARKER="jss-hrz-editing",t.EDITING_ALLOWED_ORIGINS=["https://pages.sitecorecloud.io"];class i{static isActive(){if((0,o.default)())return!1;let e=window.Sitecore;return!!(e&&e.PageModes&&e.PageModes.ChromeManager)}static resetChromes(){(0,o.default)()||window.Sitecore.PageModes.ChromeManager.resetChromes()}}t.ExperienceEditor=i,t.ChromeRediscoveryGlobalFunctionName={name:"Sitecore.Horizon.ResetChromes"};class a{static isActive(){return!(0,o.default)()&&(window.location.search.indexOf("sc_headless_mode=edit")>-1||!!window.document.getElementById(t.PAGES_EDITING_MARKER))}static resetChromes(){!(0,o.default)()&&window[t.ChromeRediscoveryGlobalFunctionName.name]&&window[t.ChromeRediscoveryGlobalFunctionName.name]()}}t.HorizonEditor=a,t.isEditorActive=()=>i.isActive()||a.isActive(),t.resetEditorChromes=()=>{i.isActive()?i.resetChromes():a.isActive()&&a.resetChromes()},t.handleEditorAnchors=()=>
126{if(!window||!i.isActive())return;let e=document.querySelector("body"),t=new MutationObserver(e=>{e.forEach(e=>{let t=document.querySelectorAll('.scChromeDropDown > a[href="#"], .scChromeDropDown > a[href="#!"], a[onclick]');"childList"===e.type&&t.forEach(e=>{e.href="javascript:void(0);"})})});e&&t.observe(e,{childList:!0,subtree:!0})},t.getJssPagesClientData=()=>{let e={};return e[t.PAGES_EDITING_MARKER]={},e}},9991: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(6686),o=/class=".*(\bck-content\b).*"/g;t.getContentStylesheetLink=(e,r,o=n.SITECORE_EDGE_URL_DEFAULT)=>{if(!e.sitecore.route)return null;let i={loadStyles:!1};return((0,t.traverseComponent)(e.sitecore.route,i),i.loadStyles)?{href:(0,t.getContentStylesheetUrl)(r,o),rel:"stylesheet"}:null},t.getContentStylesheetUrl=(e,t=n.SITECORE_EDGE_URL_DEFAULT)=>`${t}/v1/files/pages/styles/content-styles.css?sitecoreContextId=${e}`,t.traversePlaceholder=(e,r)=>{r.loadStyles||e.forEach(e=>{(0,t.traverseComponent)(e,r)})},t.traverseField=(e,r)=>{e&&"object"==typeof e&&!r.loadStyles&&("editable"in e&&e.editable?r.loadStyles=o.test(e.editable):"value"in e&&"string"==typeof e.value?r.loadStyles=o.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)})}},675:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function l(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,l)}s((n=n.apply(e,t||[])).next())})},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLLayoutService=t.GRAPHQL_LAYOUT_QUERY_NAME=void 0;let i=r(2267),a=o(r(2e3));t.GRAPHQL_LAYOUT_QUERY_NAME="JssLayoutQuery";class l extends i.LayoutServiceBase{constructor(e){super(),this.serviceConfig=e,this.graphQLClient=this.getGraphQLClient()}fetchLayoutData(e,t){return n(this,void 0,void 0,function*(){var r,n;let o=this.getLayoutQuery(e,t);a.default.layout("fetching layout data for %s %s %s",e,t,this.serviceConfig.siteName);let i=yield this.graphQLClient.request(o);return(null===(n=null===(r=null==i?void 0:i.layout)||void 0===r?void 0:r.item)||void 0===n?void 0:n.rendered)||{sitecore:{context:{pageEditing:!1,language:t},route:null}}})}getGraphQLClient(){if(!this.serviceConfig.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.serviceConfig.clientFactory({debugger:a.default.layout,retries:this.serviceConfig.retries,retryStrategy:this.serviceConfig.retryStrategy})}getLayoutQuery(e,r){let n=r?`, language:"${r}"`:"",o=this.serviceConfig.formatLayoutQuery?this.serviceConfig.formatLayoutQuery(this.serviceConfig.siteName,e,r):`layout(site:"${this.serviceConfig.siteName}", routePath:"${e}"${n})`;return`query ${t.GRAPHQL_LAYOUT_QUERY_NAME} { 127 ${o}{ 128 item { 129 rendered 130 } 131 } 132 }`}}t.GraphQLLayoutService=l},4417:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getComponentLibraryStylesheetLinks=t.GRAPHQL_LAYOUT_QUERY_NAME=t.GraphQLLayoutService=t.RestLayoutService=t.getContentStylesheetLink=t.EMPTY_DATE_FIELD_VALUE=t.getDynamicPlaceholderPattern=t.isDynamicPlaceholder=t.isFieldValueEmpty=t.getChildPlaceholder=t.getFieldValue=t.EditMode=t.LayoutServicePageState=void 0;var n=r(5234);Object.defineProperty(t,"LayoutServicePageState",{enumerable:!0,get:function(){return n.LayoutServicePageState}}),Object.defineProperty(t,"EditMode",{enumerable:!0,get:function(){return n.EditMode}});var o=r(9684);Object.defineProperty(t,"getFieldValue",{enumerable:!0,get:function(){return o.getFieldValue}}),Object.defineProperty(t,"getChildPlaceholder",{enumerable:!0,get:function(){return o.getChildPlaceholder}}),Object.defineProperty(t,"isFieldValueEmpty",{enumerable:!0,get:function(){return o.isFieldValueEmpty}}),Object.defineProperty(t,"isDynamicPlaceholder",{enumerable:!0,get:function(){return o.isDynamicPlaceholder}}),Object.defineProperty(t,"getDynamicPlaceholderPattern",{enumerable:!0,get:function(){return o.getDynamicPlaceholderPattern}}),Object.defineProperty(t,"EMPTY_DATE_FIELD_VALUE",{enumerable:!0,get:function(){return o.EMPTY_DATE_FIELD_VALUE}});var i=r(9991);Object.defineProperty(t,"getContentStylesheetLink",{enumerable:!0,get:function(){return i.getContentStylesheetLink}});var a=r(4758);Object.defineProperty(t,"RestLayoutService",{enumerable:!0,get:function(){return a.RestLayoutService}});var l=r(675);Object.defineProperty(t,"GraphQLLayoutService",{enumerable:!0,get:function(){return l.GraphQLLayoutService}}),Object.defineProperty(t,"GRAPHQL_LAYOUT_QUERY_NAME",{enumerable:!0,get:function(){return l.GRAPHQL_LAYOUT_QUERY_NAME}});var s=r(4447);Object.defineProperty(t,"getComponentLibraryStylesheetLinks",{enumerable:!0,get:function(){return s.getComponentLibraryStylesheetLinks}})},2267:function(e,t){"use strict";
132Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutServiceBase=void 0;class r{}t.LayoutServiceBase=r},5234:function(e,t){"use strict";var r,n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.EditMode=t.LayoutServicePageState=void 0,(o=r||(t.LayoutServicePageState=r={})).Preview="preview",o.Edit="edit",o.Normal="normal",(i=n||(t.EditMode=n={})).Chromes="chromes",i.Metadata="metadata"},4758:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function l(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,l)}s((n=n.apply(e,t||[])).next())})},o=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(2267),a=r(1300),l=r(8977),s=o(r(2e3));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;let o={debugger:s.default.layout};e&&(r=this.setupReqHeaders(e));let i=new a.NativeDataFetcher(o);return(e,o)=>n(this,void 0,void 0,function*(){let n=yield i.fetch(e,Object.assign(Object.assign({},o),{headers:r}));return t&&this.setupResHeaders(t,n),n})}}fetchLayoutData(e,t,r,o){return n(this,void 0,void 0,function*(){var n;let i=this.getFetchParams(t);s.default.layout("fetching layout data for %s %s %s",e,t,this.serviceConfig.siteName);let a=this.serviceConfig.dataFetcherResolver?this.serviceConfig.dataFetcherResolver(r,o):this.getDefaultFetcher(r,o),u=this.resolveLayoutServiceUrl("render");try{return yield(0,l.fetchData)(u,a,Object.assign({item:e},i))}catch(e){if((null===(n=e.response)||void 0===n?void 0:n.status)===404)return e.response.data;throw e}})}fetchPlaceholderData(e,t,r,n,o){let i=this.getFetchParams(r);s.default.layout("fetching placeholder data for %s %s %s %s",e,t,r,this.serviceConfig.siteName);let a=this.serviceConfig.dataFetcherResolver?this.serviceConfig.dataFetcherResolver(n,o):this.getDefaultFetcher(n,o),u=this.resolveLayoutServiceUrl("placeholder");return(0,l.fetchData)(u,a,Object.assign({placeholderName:e,item:t},i))}resolveLayoutServiceUrl(e){let{apiHost:t="",configurationName:r="jss"}=this.serviceConfig;return`${t}/sitecore/api/layout/${e}/${r}`}setupReqHeaders(e){let t=new Headers;return(null==e?void 0:e.headers)&&(Object.entries(e.headers).forEach(([e,r])=>{r&&t.set(e,Array.isArray(r)?r.join(", "):r)}),e.headers.cookie&&t.set("cookie",e.headers.cookie),e.headers.referer&&t.set("referer",e.headers.referer),e.headers["user-agent"]&&t.set("user-agent",e.headers["user-agent"]),e.socket.remoteAddress&&t.set("X-Forwarded-For",e.socket.remoteAddress)),t}setupResHeaders(e,t){s.default.layout("performing response header passing");let r=t.headers;if(r instanceof Headers){let t=r.get("set-cookie");t&&e.setHeader("set-cookie",t)}return t}}t.RestLayoutService=u},4447:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStylesheetUrl=void 0,t.getComponentLibraryStylesheetLinks=function(e,r,n=o.SITECORE_EDGE_URL_DEFAULT){let i=new Set;return e.sitecore.route?(l(e.sitecore.route,i),[...i].map(e=>({href:(0,t.getStylesheetUrl)(e,r,n),rel:"stylesheet"}))):[]};let n=r(4417),o=r(6686),i=/-library--([^\s]+)/;t.getStylesheetUrl=(e,t,r=o.SITECORE_EDGE_URL_DEFAULT)=>`${r}/v1/files/components/styles/${e}.css?sitecoreContextId=${t}`;let a=(e,t)=>{e.map(e=>l(e,t))},l=(e,t)=>{var r,o,l,s,u,c,d;let p;"params"in e&&e.params&&(p=(null===(o=null===(r=e.params.CSSStyles)||void 0===r?void 0:r.match(i))||void 0===o?void 0:o[1])||(null===(s=null===(l=e.params.Styles)||void 0===l?void 0:l.match(i))||void 0===s?void 0:s[1])||e.params.LibraryId||void 0),!p&&"fields"in e&&e.fields&&(p=(null===(u=(0,n.getFieldValue)(e.fields,"CSSStyles","").match(i))||void 0===u?void 0:u[1])||(null===(c=(0,n.getFieldValue)(e.fields,"Styles","").match(i))||void 0===c?void 0:c[1])||(0,n.getFieldValue)(e.fields,"LibraryId","")||void 0),!p&&"attributes"in e&&"string"==typeof e.attributes.class&&(p=null===(d=e.attributes.class.match(i))||void 0===d?void 0:d[1]),p&&t.add(p);let f=e.placeholders||{};
132Object.keys(f).forEach(e=>{a(f[e],t)})}},9684:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DATE_FIELD_VALUE=t.isDynamicPlaceholder=t.getDynamicPlaceholderPattern=void 0,t.getFieldValue=function(e,t,r){if(!e||!t)return r;let n=e[t];return n&&void 0!==n.value?n.value:e.fields&&e.fields[t]&&void 0!==e.fields[t].value?e.fields[t].value:r},t.getChildPlaceholder=function(e,t){return e&&t&&e.placeholders&&e.placeholders[t]?e.placeholders[t]:[]},t.isFieldValueEmpty=function(e){let r,n=e=>!e.src,o=e=>!e.src,i=e=>!e.href,a=e=>"string"==typeof e?e===t.EMPTY_DATE_FIELD_VALUE:!("function"==typeof(null==e?void 0:e.getMonth)&&!isNaN(null==e?void 0:e.getMonth()));return!e||null==(r=void 0!==e.value?e.value:e)||("object"==typeof r?n(r)&&o(r)&&i(r)&&a(r):"number"!=typeof r&&"boolean"!=typeof r&&(!r||a(r)))},t.getDynamicPlaceholderPattern=e=>RegExp(`^${e.replace(/\{\*\}+/i,"\\d+")}$`),t.isDynamicPlaceholder=e=>-1!==e.indexOf("{*}"),t.EMPTY_DATE_FIELD_VALUE="0001-01-01T00:00:00Z"},1504:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}: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}),i=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 o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.mediaApi=void 0;let a=i(r(7548));t.mediaApi=a},7548: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 o=n(r(5681)),i=n(r(4846)),a=/<img([^>]+)\/>/i,l=/([^=\s]+)(="([^"]*)")?/gi,s=/\/([-~]{1})\/media\//i;t.findEditorImageTag=e=>{let t=e.match(a);if(!t||t.length<2)return null;let r={},n=l.exec(t[1]);for(;null!==n;)r[n[1]]=(0,o.default)(n[3]),n=l.exec(t[1]);return{imgTag:t[0],attrs:r}},t.getRequiredParams=e=>{let{rev:t,db:r,la:n,vs:o,ts:i}=e;return{rev:t,db:r,la:n,vs:o,ts:i}},t.replaceMediaUrlPrefix=(e,t=s)=>{let r=(0,i.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=s)=>{if(!r||0===Object.keys(r).length)return e;"undefined"==typeof window||window.global||(window.global={});let o=(0,i.default)((0,t.replaceMediaUrlPrefix)(e,n),{},!0),a=(0,t.getRequiredParams)(o.query),l=Object.assign({},r);return Object.entries(a).forEach(([e,t])=>{t&&(l[e]=t)}),o.set("query",l),o.toString()},t.getSrcSet=(e,r,n,o)=>r.map(r=>{let i=Object.assign(Object.assign({},n),r),a=i.w||i.mw;return a?`${(0,t.updateImageUrl)(e,i,o)} ${a}w`:null}).filter(e=>e).join(", ")},1300:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{s(n.next(e))}catch(e){i(e)}}function l(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,l)}s((n=n.apply(e,t||[])).next())})},o=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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NativeDataFetcher=void 0;let a=i(r(2e3)),l=i(r(37));class s{constructor(e={}){this.config=e}fetch(e){return n(this,arguments,void 0,function*(e,t={}){var r;let n=this.config,{debugger:i,fetch:s}=n,u=o(n,["debugger","fetch"]),c=Date.now(),d=s||fetch,p=i||a.default.http,f=this.getRequestInit(Object.assign(Object.assign({},u),t)),h=[d(e,f)];u.timeout&&(this.abortTimeout=new l.default(u.timeout),h.push(this.abortTimeout.start)),p("Request initiated: %o",Object.assign({url:e,headers:this.extractDebugHeaders(f.headers)},f));try{let e=yield Promise.race(h).then(e=>{var t;return null===(t=this.abortTimeout)||void 0===t||t.clear(),e}),t=yield this.parseResponse(e,p);if(!e.ok){let r=this.createError(e,t);throw p("Response error: %o",r.response),r}return p("Response in %dms: %o",Date.now()-c,{status:e.status,statusText:e.statusText,headers:this.extractDebugHeaders(e.headers),url:e.url,data:t}),Object.assign(Object.assign({},e),{data:t})}catch(e){throw null===(r=this.abortTimeout)||void 0===r||r.clear(),p("Request failed: %o",e),e}})}get(e){return n(this,arguments,void 0,function*(e,t={}){return this.fetch(e,Object.assign({method:"GET"},t))})}post(e,t){return n(this,arguments,void 0,function*(e,t,r={}){return this.fetch(e,Object.assign({method:"POST",body:JSON.stringify(t)},r))})}delete(e){return n(this,arguments,void 0,function*(e,t={}){return this.fetch(e,Object.assign({method:"DELETE"},t))})}put(e,t){return n(this,arguments,void 0,function*(e,t,r={}){return this.fetch(e,Object.assign({method:"PUT",body:JSON.stringify(t)},r))})}head(e,t={}){return this.fetch(e,Object.assign({method:"HEAD"},t))}getRequestInit(e={}){let t=new Headers(e.headers);return e.method||(e.method=e.body?"POST":"GET"),e.headers=t,e}extractDebugHeaders(e={}){let t={};return"string"!=typeof(null==e?void 0:e.forEach)&&e.forEach&&(null==e||e.forEach((e,r)=>{t[r]=e})),t}parseResponse(e,t){return n(this,void 0,void 0,function*(){let r=e.headers.get("Content-Type")||"";try{if(r.includes("application/json"))return yield e.json();return yield e.text()}catch(e){t("Response parsing error: %o",e);return}})}createError(e,t){return Object.assign(Object.assign({},Error(`HTTP ${e.status} ${e.statusText}`)),{response:{status:e.status,statusText:e.statusText,headers:this.extractDebugHeaders(e.headers),data:t}})}}t.NativeDataFetcher=s},6448:function(e,t){"use strict";
132Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"!=typeof window&&window.document)}},37: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},8425:function(e,t,r){"use strict";var n=r(4406),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeURLSearchParams=t.escapeNonSpecialQuestionMarks=t.areURLSearchParamsEqual=t.isRegexOrUrl=t.enforceCors=t.getAllowedOriginsFromEnv=t.isTimeoutError=t.isAbsoluteUrl=void 0,t.resolveUrl=function(e,t={}){if(!e)throw RangeError("url must be a non-empty string");if((0,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}`};let i=o(r(6448));t.isAbsoluteUrl=e=>{if(!e)return!1;if("string"!=typeof e)throw TypeError("Expected a string");return/^[a-z][a-z0-9+.-]*:/.test(e)},t.isTimeoutError=e=>{var t;return(null===(t=e.response)||void 0===t?void 0:t.status)===408||"AbortError"===e.name};let a=e=>"^"+e.replace(/\//g,"\\/").replace(/\./g,"\\.").replace(/\*/g,".*")+"$";t.getAllowedOriginsFromEnv=()=>n.env.JSS_ALLOWED_ORIGINS?n.env.JSS_ALLOWED_ORIGINS.replace(" ","").split(","):[],t.enforceCors=(e,r,n)=>{if(!e.headers.origin)return!0;n=(0,t.getAllowedOriginsFromEnv)().concat(n||[]);let o=r.getHeader("Access-Control-Allow-Origin");o&&n.push(o);let i=e.headers.origin;return!!(i&&n.some(e=>i===e||new RegExp(a(e)).test(i)))&&(r.setHeader("Access-Control-Allow-Origin",i),r.setHeader("Access-Control-Allow-Methods","GET, POST, OPTIONS, DELETE, PUT, PATCH"),"OPTIONS"===e.method&&r.setHeader("Access-Control-Allow-Headers","Content-Type, Authorization"),!0)},t.isRegexOrUrl=e=>(e=e.slice(0,-1),/^\/[a-zA-Z0-9\-\/]+(\?([a-zA-Z0-9\-_]+=[a-zA-Z0-9\-_]+)(&[a-zA-Z0-9\-_]+=[a-zA-Z0-9\-_]+)*)?$/.test(e))?"url":"regex",t.areURLSearchParamsEqual=(e,t)=>{let r=e=>[...e.entries()].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}=${t}`).join("&");return r(e)===r(t)},t.escapeNonSpecialQuestionMarks=e=>{let t;let r=/(\\)?\?/g,n=/\(\?!$/,o=/[.*+)\[\]|\(]$/,i="",a=0;for(;null!==(t=r.exec(e));){let r=t.index,l=e.slice(a,r),s=void 0!==t[1],u=n.test(l.slice(-3)),c=o.test(l.slice(-1));s||u||c?i+=e.slice(a,r+1):i+=e.slice(a,r)+"\\?",a=r+1}return i+e.slice(a)},t.mergeURLSearchParams=(e,t)=>{let r=new URLSearchParams;for(let[t,n]of e.entries())r.set(t,n);for(let[e,n]of t.entries())r.set(e,n);return r.toString()}},9919:function(e,t,r){"use strict";var n=r(4090),o=r(9638),i=r(8418),a=r(6476);e.exports=a||n.call(i,o)},9638:function(e){"use strict";e.exports=Function.prototype.apply},8418:function(e){"use strict";e.exports=Function.prototype.call},8381:function(e,t,r){"use strict";var n=r(4090),o=r(5408),i=r(8418),a=r(9919);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(n,i,e)}},6476:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},8435:function(e,t,r){"use strict";var n=r(7286),o=r(8381),i=o([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o([r]):r}},6316:function(e,t,r){"use strict";r.d(t,{dU:function(){return n}});class n{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){let t=this._partials,r=0;for(let n=0;n<this._n&&n<32;n++){let o=t[n],i=e+o,a=Math.abs(e)<Math.abs(o)?e-(i-o):o-(i-e);a&&(t[r++]=a),e=i}return t[r]=e,this._n=r+1,this}valueOf(){let e=this._partials,t=this._n,r,n,o,i=0;if(t>0){for(i=e[--t];t>0&&(i=(r=i)+(n=e[--t]),!(o=n-(i-r))););t>0&&(o<0&&e[t-1]<0||o>0&&e[t-1]>0)&&(r=i+(n=2*o),n==r-i&&(i=r))}return i}}},5130:function(e,t,r){let n;var o=r(4406);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,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))}),t.splice(o,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!==o&&"env"in o&&(e=o.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+)/))&&
132("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(7123)(t);let{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7123:function(e,t,r){e.exports=function(e){function t(e){let r,o,i;let a=null;function l(...e){if(!l.enabled)return;let n=Number(new Date),o=n-(r||n);l.diff=o,l.prev=r,l.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let o=t.formatters[n];if("function"==typeof o){let t=e[i];r=o.call(l,t),e.splice(i,1),i--}return r}),t.formatArgs.call(l,e),(l.log||t.log).apply(l,e)}return l.namespace=e,l.useColors=t.useColors(),l.color=t.selectColor(e),l.extend=n,l.destroy=t.destroy,Object.defineProperty(l,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(l),l}function n(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e,t){let r=0,n=0,o=-1,i=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(o=n,i=r):r++,n++;else{if(-1===o)return!1;n=o+1,r=++i}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(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(o(e,r))return!1;for(let r of t.names)if(o(e,r))return!0;return!1},t.humanize=r(1378),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}},5141:function(e,t,r){"use strict";var n,o=r(8381),i=r(326);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&i&&i(Object.prototype,"__proto__"),l=Object,s=l.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof s&&function(e){return s(null==e?e:l(e))}},999:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},9654:function(e){"use strict";e.exports=EvalError},2321:function(e){"use strict";e.exports=Error},8205:function(e){"use strict";e.exports=RangeError},2976:function(e){"use strict";e.exports=ReferenceError},8342:function(e){"use strict";e.exports=SyntaxError},5408:function(e){"use strict";e.exports=TypeError},2885:function(e){"use strict";e.exports=URIError},4546:function(e){"use strict";e.exports=Object},4124:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;
132if(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(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(o of t.entries())if(!r.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],r.get(o[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(o of t.entries())if(!r.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(t[o]!==r[o])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=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var n,o,i,a=i[o];if(("_owner"!==a||!t.$$typeof)&&!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},7795:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},o=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r},i=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var a,l=this;if("function"!=typeof l||"[object Function]"!==t.apply(l))throw TypeError("Function.prototype.bind called on incompatible "+l);for(var s=o(arguments,1),u=r(0,l.length-s.length),c=[],d=0;d<u;d++)c[d]="$"+d;if(a=Function("binder","return function ("+i(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=l.apply(this,n(s,arguments));return Object(t)===t?t:this}return l.apply(e,n(s,arguments))}),l.prototype){var p=function(){};p.prototype=l.prototype,a.prototype=new p,p.prototype=null}return a}},4090:function(e,t,r){"use strict";var n=r(7795);e.exports=Function.prototype.bind||n},7286:function(e,t,r){"use strict";var n,o=r(4546),i=r(2321),a=r(9654),l=r(8205),s=r(2976),u=r(8342),c=r(5408),d=r(2885),p=r(4383),f=r(5736),h=r(7130),m=r(2400),y=r(3654),g=r(6890),v=r(2026),b=Function,E=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=r(326),O=r(999),S=function(){throw new c},A=w?function(){try{return arguments.callee,S}catch(e){try{return w(arguments,"callee").get}catch(e){return S}}}():S,C=r(2636)(),x=r(1750),_=r(2938),R=r(8354),j=r(9638),T=r(8418),k={},P="undefined"!=typeof Uint8Array&&x?x(Uint8Array):n,F={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":C&&x?x([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":k,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
132IteratorPrototype%":C&&x?x(x([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&C&&x?x(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":l,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&C&&x?x(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&x?x(""[Symbol.iterator]()):n,"%Symbol%":C?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":A,"%TypedArray%":P,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":T,"%Function.prototype.apply%":j,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":_,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":g,"%Math.sign%":v,"%Reflect.getPrototypeOf%":R};if(x)try{null.error}catch(e){var D=x(x(e));F["%Error.prototype%"]=D}var N=function e(t){var r;if("%AsyncFunction%"===t)r=E("async function () {}");else if("%GeneratorFunction%"===t)r=E("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=E("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&x&&(r=x(o.prototype))}return F[t]=r,r},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=r(4090),I=r(2196),$=M.call(T,Array.prototype.concat),U=M.call(j,Array.prototype.splice),H=M.call(T,String.prototype.replace),B=M.call(T,String.prototype.slice),W=M.call(T,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,q=function(e){var t=B(e,0,1),r=B(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return H(e,V,function(e,t,r,o){n[n.length]=r?H(o,z,"$1"):t||e}),n},G=function(e,t){var r,n=e;if(I(L,n)&&(n="%"+(r=L[n])[0]+"%"),I(F,n)){var o=F[n];if(o===k&&(o=N(n)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=q(e),n=r.length>0?r[0]:"",o=G("%"+n+"%",t),i=o.name,a=o.value,l=!1,s=o.alias;s&&(n=s[0],U(r,$([0,1],s)));for(var d=1,p=!0;d<r.length;d+=1){var f=r[d],h=B(f,0,1),m=B(f,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new u("property names with quotes must have matching quotes");if("constructor"!==f&&p||(l=!0),n+="."+f,I(F,i="%"+n+"%"))a=F[i];
132else if(null!=a){if(!(f in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&d+1>=r.length){var y=w(a,f);a=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[f]}else p=I(a,f),a=a[f];p&&!l&&(F[i]=a)}}return a}},2938:function(e,t,r){"use strict";var n=r(4546);e.exports=n.getPrototypeOf||null},8354:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},1750:function(e,t,r){"use strict";var n=r(8354),o=r(2938),i=r(5141);e.exports=n?function(e){return n(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},3165:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},326:function(e,t,r){"use strict";var n=r(3165);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},2636:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(6679);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},6679:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},2196:function(e,t,r){"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(4090);e.exports=i.call(n,o)},5681:function(e,t,r){var n,o=1/0,i=/&(?:amp|lt|gt|quot|#39|#96);/g,a=RegExp(i.source),l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,s="object"==typeof self&&self&&self.Object===Object&&self,u=l||s||Function("return this")(),c=(n={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},function(e){return null==n?void 0:n[e]}),d=Object.prototype.toString,p=u.Symbol,f=p?p.prototype:void 0,h=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 h?h.call(e):"";var t,r=e+"";return"0"==r&&1/e==-o?"-0":r}(t))&&a.test(e)?e.replace(i,c):e}},4383:function(e){"use strict";e.exports=Math.abs},5736:function(e){"use strict";e.exports=Math.floor},8806:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},7130:function(e){"use strict";e.exports=Math.max},2400:function(e){"use strict";e.exports=Math.min},3654:function(e){"use strict";e.exports=Math.pow},6890:function(e){"use strict";e.exports=Math.round},2026:function(e,t,r){"use strict";var n=r(8806);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},1378: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,o,i=typeof e;if("string"===i&&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"===i&&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>
132=1e3?t(e,n,1e3,"second"):e+" ms":(o=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":o>=36e5?Math.round(e/36e5)+"h":o>=6e4?Math.round(e/6e4)+"m":o>=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))}},4297:function(e,t){"use strict";var r,n,o,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return l},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return a},ACTION_RESTORE:function(){return s},ACTION_SERVER_ACTION:function(){return p},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return r},isThenable:function(){return f}});let a="refresh",l="navigate",s="restore",u="server-patch",c="prefetch",d="fast-refresh",p="server-action";function f(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=r||(r={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(i=n||(n={})).fresh="fresh",i.reusable="reusable",i.expired="expired",i.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1480:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});let n=r(6810);function o(e,t,o,i){{let a=r(1334).normalizeLocalePath,l=r(1242).detectDomainLocale,s=t||a(e,o).detectedLocale,u=l(i,void 0,s);if(u){let t="http"+(u.http?"":"s")+"://",r=s===u.defaultLocale?"":"/"+s;return""+t+u.domain+(0,n.normalizePathTrailingSlash)(""+r+e)}return!1}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let n=r(3219),o=r(6794),i=r(2322),a=o._(r(2784)),l=n._(r(8316)),s=n._(r(8736)),u=r(814),c=r(827),d=r(8499);r(6292);let p=r(9862),f=n._(r(6667)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,r,n,o,i,a){let l=null==e?void 0:e.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function y(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let g=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:o,height:l,width:s,decoding:u,className:c,style:d,fetchPriority:p,placeholder:f,loading:h,unoptimized:g,fill:v,onLoadRef:b,onLoadingCompleteRef:E,setBlurComplete:w,setShowAltText:O,sizesInput:S,onLoad:A,onError:C,...x}=e;return(0,i.jsx)("img",{...x,...y(p),loading:h,width:s,height:l,decoding:u,"data-nimg":v?"fill":"1",className:c,style:d,sizes:o,srcSet:n,src:r,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(C&&(e.src=e.src),e.complete&&m(e,f,b,E,w,g,S))},[r,f,b,E,w,C,g,S,t]),onLoad:e=>{m(e.currentTarget,f,b,E,w,g,S)},onError:e=>{O(!0),"empty"!==f&&w(!0),C&&C(e)}})});function v(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...y(r.fetchPriority)};return t&&l.default.preload?(l.default.preload(r.src,n),null):(0,i.jsx)(s.default,{children:(0,i.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let b=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(p.RouterContext),n=(0,a.useContext)(d.ImageConfigContext),o=(0,a.useMemo)(()=>{var e;let t=h||n||c.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>
132e-t),o=t.deviceSizes.sort((e,t)=>e-t),i=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:o,qualities:i}},[n]),{onLoad:l,onLoadingComplete:s}=e,m=(0,a.useRef)(l);(0,a.useEffect)(()=>{m.current=l},[l]);let y=(0,a.useRef)(s);(0,a.useEffect)(()=>{y.current=s},[s]);let[b,E]=(0,a.useState)(!1),[w,O]=(0,a.useState)(!1),{props:S,meta:A}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:o,blurComplete:b,showAltText:w});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g,{...S,unoptimized:A.unoptimized,placeholder:A.placeholder,fill:A.fill,onLoadRef:m,onLoadingCompleteRef:y,setBlurComplete:E,setShowAltText:O,sizesInput:e.sizes,ref:t}),A.priority?(0,i.jsx)(v,{isAppRouter:!r,imgAttributes:S}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6302:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});let n=r(3219),o=r(2322),i=n._(r(2784)),a=r(3073),l=r(6271),s=r(7915),u=r(166),c=r(5249),d=r(9862),p=r(9512),f=r(7791),h=r(1480),m=r(4169),y=r(4297),g=new Set;function v(e,t,r,n,o,i){if(i||(0,l.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let o=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(g.has(o))return;g.add(o)}(async()=>i?e.prefetch(t,o):e.prefetch(t,r,n))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let E=i.default.forwardRef(function(e,t){let r,n;let{href:s,as:g,children:E,prefetch:w=null,passHref:O,replace:S,shallow:A,scroll:C,locale:x,onClick:_,onMouseEnter:R,onTouchStart:j,legacyBehavior:T=!1,...k}=e;r=E,T&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let P=i.default.useContext(d.RouterContext),F=i.default.useContext(p.AppRouterContext),D=null!=P?P:F,N=!P,L=!1!==w,M=null===w?y.PrefetchKind.AUTO:y.PrefetchKind.FULL,{href:I,as:$}=i.default.useMemo(()=>{if(!P){let e=b(s);return{href:e,as:g?b(g):e}}let[e,t]=(0,a.resolveHref)(P,s,!0);return{href:e,as:g?(0,a.resolveHref)(P,g):t||e}},[P,s,g]),U=i.default.useRef(I),H=i.default.useRef($);T&&(n=i.default.Children.only(r));let B=T?n&&"object"==typeof n&&n.ref:t,[W,V,z]=(0,f.useIntersection)({rootMargin:"200px"}),q=i.default.useCallback(e=>{(H.current!==$||U.current!==I)&&(z(),H.current=$,U.current=I),W(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[$,B,I,z,W]);i.default.useEffect(()=>{D&&V&&L&&v(D,I,$,{locale:x},{kind:M},N)},[$,I,V,x,L,null==P?void 0:P.locale,D,N,M]);let G={ref:q,onClick(e){T||"function"!=typeof _||_(e),T&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),D&&!e.defaultPrevented&&function(e,t,r,n,o,a,s,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,l.isLocalURL)(r)))return;e.preventDefault();let p=()=>{let e=null==s||s;"beforePopState"in t?t[o?"replace":"push"](r,n,{shallow:a,locale:u,scroll:e}):t[o?"replace":"push"](n||r,{scroll:e})};c?i.default.startTransition(p):p()}(e,D,I,$,S,A,C,x,N)},onMouseEnter(e){T||"function"!=typeof R||R(e),T&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),D&&(L||!N)&&v(D,I,$,{locale:x,priority:!0,bypassPrefetchedCheck:!0},{kind:M},N)},onTouchStart:function(e){T||"function"!=typeof j||j(e),T&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),D&&(L||!N)&&v(D,I,$,{locale:x,priority:!0,bypassPrefetchedCheck:!0},{kind:M},N)}};if((0,u.isAbsoluteUrl)($))G.href=$;else if(!T||O||"a"===n.type&&!("href"in n.props)){let e=void 0!==x?x:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&(0,h.getDomainLocale)($,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);G.href=t||(0,m.addBasePath)((0,c.addLocale)($,e,null==P?void 0:P.defaultLocale))}return T?i.default.cloneElement(n,G):(0,o.jsx)("a",{...k,...G,children:r})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
132dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1334:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let n=(e,t)=>r(8491).normalizeLocalePath(e,t);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7791:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let n=r(2784),o=r(3053),i="function"==typeof IntersectionObserver,a=new Map,l=[];function s(e){let{rootRef:t,rootMargin:r,disabled:s}=e,u=s||!i,[c,d]=(0,n.useState)(!1),p=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{p.current=e},[]);return(0,n.useEffect)(()=>{if(i){if(u||c)return;let e=p.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:o,elements:i}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=l.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let o=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:o},l.push(r),a.set(r,t),t}(r);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(n);let e=l.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,r,t,c,p.current]),[f,c,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},814:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),r(6292);let n=r(3070),o=r(827);function i(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var r,l;let s,u,c,{src:d,sizes:p,unoptimized:f=!1,priority:h=!1,loading:m,className:y,quality:g,width:v,height:b,fill:E=!1,style:w,overrideSrc:O,onLoad:S,onLoadingComplete:A,placeholder:C="empty",blurDataURL:x,fetchPriority:_,decoding:R="async",layout:j,objectFit:T,objectPosition:k,lazyBoundary:P,lazyRoot:F,...D}=e,{imgConf:N,showAltText:L,blurComplete:M,defaultLoader:I}=t,$=N||o.imageConfigDefault;if("allSizes"in $)s=$;else{let e=[...$.deviceSizes,...$.imageSizes].sort((e,t)=>e-t),t=$.deviceSizes.sort((e,t)=>e-t),n=null==(r=$.qualities)?void 0:r.sort((e,t)=>e-t);s={...$,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===I)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let U=D.loader||I;delete D.loader,delete D.srcSet;let H="__next_img_default"in U;if(H){if("custom"===s.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=U;U=t=>{let{config:r,...n}=t;return e(n)}}if(j){"fill"===j&&(E=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[j];e&&(w={...w,...e});let t={responsive:"100vw",fill:"100vw"}[j];t&&!p&&(p=t)}let B="",W=a(v),V=a(b);if("object"==typeof(l=d)&&(i(l)||void 0!==l.src)){let e=i(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(u=e.blurWidth,c=e.blurHeight,x=x||e.blurDataURL,B=e.src,!E){if(W||V){if(W&&!V){let t=W/e.width;V=Math.round(e.height*t)}else if(!W&&V){let t=V/e.height;W=Math.round(e.width*t)}}else W=e.width,V=e.height}}let z=!h&&("lazy"===m||void 0===m);(!(d="string"==typeof d?d:B)||d.startsWith("data:")||d.startsWith("blob:"))&&(f=!0,z=!1),s.unoptimized&&(f=!0),H&&d.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(_="high");let q=a(g),G=Object.assign(E?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:T,objectPosition:k}:{},L?{}:{color:"transparent"},w),K=M||"empty"===C?null:"blur"===C?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:W,heightInt:V,blurWidth:u,blurHeight:c,blurDataURL:x||"",objectFit:G.objectFit})+'")':'url("'+C+'")',Z=K?{backgroundSize:G.objectFit||"cover",backgroundPosition:G.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{}
132,J=function(e){let{config:t,src:r,unoptimized:n,width:o,quality:i,sizes:a,loader:l}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:s,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:o}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}(t,o,a),c=s.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:s.map((e,n)=>l({config:t,src:r,quality:i,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:l({config:t,src:r,quality:i,width:s[c]})}}({config:s,src:d,unoptimized:f,width:W,quality:q,sizes:p,loader:U});return{props:{...D,loading:z?"lazy":m,fetchPriority:_,width:W,height:V,decoding:R,className:y,style:{...G,...Z},sizes:J.sizes,srcSet:J.srcSet,src:O||J.src},meta:{unoptimized:f,priority:h,placeholder:C,fill:E}}}},3070:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:o,blurDataURL:i,objectFit:a}=e,l=n?40*n:t,s=o?40*o:r,u=l&&s?"viewBox='0 0 "+l+" "+s+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},108:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return s},getImageProps:function(){return l}});let n=r(3219),o=r(814),i=r(90),a=n._(r(6667));function l(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let s=i.Image},6667:function(e,t){"use strict";function r(e){var t;let{config:r,src:n,width:o,quality:i}=e,a=i||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+o+"&q="+a+"&dpl=dpl_6f19EsQjFAmsmrtwMprMkF8pg3NU"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},7729:function(e,t,r){e.exports=r(8736)},6577:function(e,t,r){e.exports=r(108)},9097:function(e,t,r){e.exports=r(6302)},5847:function(e,t,r){e.exports=r(4092)},9500:function(e,t,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=l&&s&&"function"==typeof s.get?s.get:null,c=l&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,E=String.prototype.toUpperCase,w=String.prototype.toLowerCase,O=RegExp.prototype.test,S=Array.prototype.concat,A=Array.prototype.join,C=Array.prototype.slice,x=Math.floor,_="function"==typeof BigInt?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,k="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T?"object":"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,F=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||O.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-x(-e):x(e);if(n!==e){var o=String(n),i=v.call(t,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var N=r(3260),L=N.custom,M=V(L)?L:null,I={__proto__:null,double:'"',single:"'"},$={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function U(e,t,r){var n=I[r.quoteStyle||t];return n+e+n}function H(e){return!k||!("object"==typeof e&&(k in e||void 0!==e[k]))}function B(e){return"[object Array]"===G(e)&&H(e)}function W(e){return"[object RegExp]"===G(e)&&H(e)}function V(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;
132if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,l){var s=n||{};if(q(s,"quoteStyle")&&!q(I,s.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(q(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!q(s,"customInspect")||s.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(s,"indent")&&null!==s.indent&&" "!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var E=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(v.call(t,0,r.maxStringLength),r)+"... "+n+" more character"+(n>1?"s":"")}var o=$[r.quoteStyle||"single"];return o.lastIndex=0,U(b.call(b.call(t,o,"\\$1"),/[\x00-\x1f]/g,Z),"single",r)}(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var O=String(t);return E?D(t,O):O}if("bigint"==typeof t){var x=String(t)+"n";return E?D(t,x):x}var R=void 0===s.depth?5:s.depth;if(void 0===o&&(o=0),o>=R&&R>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var L=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=A.call(Array(e.indent+1)," ")}return{base:r,prev:A.call(Array(t+1),r)}}(s,o);if(void 0===l)l=[];else if(K(l,t)>=0)return"[Circular]";function z(t,r,n){if(r&&(l=C.call(l)).push(r),n){var i={depth:s.depth};return q(s,"quoteStyle")&&(i.quoteStyle=s.quoteStyle),e(t,i,o+1,l)}return e(t,s,o+1,l)}if("function"==typeof t&&!W(t)){var et=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),er=ee(t,z);return"[Function"+(et?": "+et:" (anonymous)")+"]"+(er.length>0?" { "+A.call(er,", ")+" }":"")}if(V(t)){var en=T?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(t);return"object"!=typeof t||T?en:J(en)}if(t&&"object"==typeof t&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)){for(var eo,ei="<"+w.call(String(t.nodeName)),ea=t.attributes||[],el=0;el<ea.length;el++)ei+=" "+ea[el].name+"="+U((eo=ea[el].value,b.call(String(eo),/"/g,""")),"double",s);return ei+=">",t.childNodes&&t.childNodes.length&&(ei+="..."),ei+="</"+w.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var es=ee(t,z);return L&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(es)?"["+X(es,L)+"]":"[ "+A.call(es,", ")+" ]"}if("[object Error]"===G(t)&&H(t)){var eu=ee(t,z);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===eu.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(eu,", ")+" }":"{ ["+String(t)+"] "+A.call(S.call("[cause]: "+z(t.cause),eu),", ")+" }"}if("object"==typeof t&&m){if(M&&"function"==typeof t[M]&&N)return N(t,{depth:R-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ec=[];return a&&a.call(t,function(e,r){ec.push(z(r,t,!0)+" => "+z(e,t))}),Y("Map",i.call(t),ec,L)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ed=[];return c&&c.call(t,function(e){ed.push(z(e,t))}),Y("Set",u.call(t),ed,L)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if("[object Number]"===G(t)&&H(t))return J(z(Number(t)));if(function(e){if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}(t))return J(z(_.call(t)));if("[object Boolean]"===G(t)&&H(t))return J(h.call(t));if("[object String]"===G(t)&&H(t))return J(z(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===G(t)&&H(t))&&!W(t)){var ep=ee(t,z),ef=F?F(t)===Object.prototype:t instanceof Object||t.constructor===Object,eh=t instanceof Object?"":"null prototype",em=!ef&&k&&Object(t)===t&&k in t?v.call(G(t),8,-1):eh?"Object":"",ey=(ef||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(em||eh?"["+A.call(S.call([],em||[],eh||[]),": ")+"] ":"");return 0===ep.length?ey+"{}":L?ey+"{"+X(ep,L)+"}":ey+"{ "+A.call(ep,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return z.call(e,t)}function G(e){return m.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function Z(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+E.call(t.toString(16))}function J(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function Y(e,t,r,n){return e+" ("+t+") {"+(n?X(r,n):A.call(r,", "))+"}"}function X(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+A.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,n=B(e),o=[];if(n){o.length=e.length;for(var i=0;i<e.length;i++)o[i]=q(e,i)?t(e[i],e):""}var a="function"==typeof R?R(e):[];if(T){r={};for(var l=0;l<a.length;l++)r["$"+a[l]]=a[l]}for(var s in e)q(e,s)&&(!n||String(Number(s))!==s||!(s<e.length))&&(T&&r["$"+s]instanceof Symbol||(O.call(/[^\w$]/,s)?o.push(t(s,e)+": "+t(e[s],e)):o.push(s+": "+t(e[s],e))));if("function"==typeof R)for(var u=0;u<a.length;u++)P.call(e,a[u])&&o.push("["+t(a[u])+"]: "+t(e[a[u]],e));return o}},8262:function(e,t,r){"use strict";var n=r(3586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
132:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},5440:function(e,t,r){e.exports=r(8262)()},3586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5527:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},9126:function(e,t,r){"use strict";var n=r(6845),o=r(9166),i=r(5527);e.exports={formats:i,parse:o,stringify:n}},9166:function(e,t,r){"use strict";var n=r(2493),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},l=function(e,t,r,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(n&&t.throwOnLimitExceeded)for(var o=0,i=e.indexOf(",");i>-1;){if((o+=1)>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");i=e.indexOf(",",i+1)}return e.split(",")}if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},s=function(e,t){var r={__proto__:null},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;s=s.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,c=s.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==u?u+1:u);if(t.throwOnLimitExceeded&&void 0!==u&&c.length>u)throw RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var d=-1,p=t.charset;if(t.charsetSentinel)for(f=0;f<c.length;++f)0===c[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===c[f]?p="utf-8":"utf8=%26%2310003%3B"===c[f]&&(p="iso-8859-1"),d=f,f=c.length);for(f=0;f<c.length;++f)if(f!==d){var f,h,m,y=c[f],g=y.indexOf("]="),v=-1===g?y.indexOf("="):g+1;if(-1===v?(h=t.decoder(y,a.decoder,p,"key"),m=t.strictNullHandling?null:""):null!==(h=t.decoder(y.slice(0,v),a.decoder,p,"key"))&&(m=n.maybeMap(l(y.slice(v+1),t,i(r[h])?r[h].length:0,-1===y.indexOf("[]=")),function(e){return t.decoder(e,a.decoder,p,"value")})),m&&t.interpretNumericEntities&&"iso-8859-1"===p&&(m=String(m).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),y.indexOf("[]=")>-1&&(m=i(m)?[m]:m),t.comma&&i(m)&&m.length>t.arrayLimit&&(m=n.combine([],m,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==h){var b=o.call(r,h);b&&("combine"===t.duplicates||y.indexOf("[]=")>-1)?r[h]=n.combine(r[h],m,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):b&&"last"!==t.duplicates||(r[h]=m)}}return r},u=function(e,t,r,o){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=o?t:l(t,r,i),u=e.length-1;u>=0;--u){var c,d=e[u];if("[]"===d&&r.parseArrays)c=n.isOverflow(s)?s:r.allowEmptyArrays&&(""===s||r.strictNullHandling&&null===s)?[]:n.combine([],s,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{c=r.plainObjects?{__proto__:null}:{};var p="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,f=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,h=parseInt(f,10),m=!isNaN(h)&&d!==f&&String(h)===f&&h>=0&&r.parseArrays;if(r.parseArrays||""!==f){if(m&&h<r.arrayLimit)(c=[])[h]=s;else if(m&&r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");else m?(c[h]=s,n.markOverflow(c,h)):"__proto__"!==f&&(c[f]=s)}else c={0:s}}s=c}return s},c=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&o.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=[],i=r.indexOf("["),a=i>=0?r.slice(0,i):r;if(a){if(!t.plainObjects&&o.call(Object.prototype,a)&&!t.allowPrototypes)return;n[n.length]=a}for(var l=r.length,s=i,u=0;s>=0&&u<t.depth;){for(var c=1,d=s+1,p=-1;d<l&&p<0;){var f=r.charCodeAt(d);91===f?c+=1:93===f&&0==(c-=1)&&(p=d),d+=1}if(p<0)return n[n.length]="["+r.slice(s)+"]",n;var h=r.slice(s,p+1),m=h.slice(1,-1);if(!t.plainObjects&&o.call(Object.prototype,m)&&!t.allowPrototypes)return;n[n.length]=h,u+=1,s=r.indexOf("[",p+1)}if(s>=0){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");n[n.length]="["+r.slice(s)+"]"}return n},d=function(e,t,r,n){if(e){var o=c(e,r);if(o)return u(o,t,r,n)}},p=function(e){if(!e)return a;
132if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:a.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=p(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var o="string"==typeof e?s(e,r):e,i=r.plainObjects?{__proto__:null}:{},a=Object.keys(o),l=0;l<a.length;++l){var u=a[l],c=d(u,o[u],r,"string"==typeof e);i=n.merge(i,c,r)}return!0===r.allowSparse?i:n.compact(i)}},6845:function(e,t,r){"use strict";var n=r(4294),o=r(2493),i=r(5527),a=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,s(t)?t:[t])},d=Date.prototype.toISOString,p=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,r,i,a,l,u,d,p,m,y,g,v,b,E,w,O,S,A){for(var C,x,_=t,R=A,j=0,T=!1;void 0!==(R=R.get(h))&&!T;){var k=R.get(t);if(j+=1,void 0!==k){if(k===j)throw RangeError("Cyclic object value");T=!0}void 0===R.get(h)&&(j=0)}if("function"==typeof y?_=y(r,_):_ instanceof Date?_=b(_):"comma"===i&&s(_)&&(_=o.maybeMap(_,function(e){return e instanceof Date?b(e):e})),null===_){if(u)return w(m&&!O?m(r,f.encoder,S,"key",E):r);_=""}if("string"==typeof(C=_)||"number"==typeof C||"boolean"==typeof C||"symbol"==typeof C||"bigint"==typeof C||o.isBuffer(_))return m?[w(O?r:m(r,f.encoder,S,"key",E))+"="+w(m(_,f.encoder,S,"value",E))]:[w(r)+"="+w(String(_))];var P=[];if(void 0===_)return P;if("comma"===i&&s(_))O&&m&&(_=o.maybeMap(_,function(e){return null==e?e:m(e)})),x=[{value:_.length>0?_.join(",")||null:void 0}];else if(s(y))x=y;else{var F=Object.keys(_);x=g?F.sort(g):F}var D=p?String(r).replace(/\./g,"%2E"):String(r),N=a&&s(_)&&1===_.length?D+"[]":D;if(l&&s(_)&&0===_.length)return N+"[]";for(var L=0;L<x.length;++L){var M=x[L],I="object"==typeof M&&M&&void 0!==M.value?M.value:_[M];if(!d||null!==I){var $=v&&p?String(M).replace(/\./g,"%2E"):String(M),U=s(_)?"function"==typeof i?i(N,$):N:N+(v?"."+$:"["+$+"]");A.set(t,j);var H=n();
132H.set(h,A),c(P,e(I,U,i,a,l,u,d,p,"comma"===i&&O&&s(_)?null:m,y,g,v,b,E,w,O,S,H))}}return P},y=function(e){if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var o=i.formatters[n],u=f.filter;if(("function"==typeof e.filter||s(e.filter))&&(u=e.filter),t=e.arrayFormat in l?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var c=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:u,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var r,o=e,i=y(t);"function"==typeof i.filter?o=(0,i.filter)("",o):s(i.filter)&&(r=i.filter);var a=[];if("object"!=typeof o||null===o)return"";var u=l[i.arrayFormat],d="comma"===u&&i.commaRoundTrip;r||(r=Object.keys(o)),i.sort&&r.sort(i.sort);for(var p=n(),f=0;f<r.length;++f){var h=r[f];if(null!=h){var g=o[h];i.skipNulls&&null===g||c(a,m(g,h,u,d,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}}var v=a.join(i.delimiter),b=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?b+="utf8=%26%2310003%3B"+i.delimiter:b+="utf8=%E2%9C%93"+i.delimiter),v.length>0?b+v:""}},2493:function(e,t,r){"use strict";var n=r(5527),o=r(4294),i=r(999),a=Object.prototype.hasOwnProperty,l=Array.isArray,s=o(),u=function(e,t){return s.set(e,t),e},c=function(e){return s.has(e)},d=function(e){return s.get(e)},p=function(e,t){s.set(e,t)},f=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),h=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(l(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&(n[n.length]=r[o]);t.obj[t.prop]=n}}},m=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},y=function(e,t,r){"__proto__"===t&&i?i(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};e.exports={arrayToObject:m,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return y(e,r,t[r]),e},e)},combine:function(e,t,r,n,o){if(c(e)){if(o)throw RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");var i=d(e)+1;return e[i]=t,p(e,i),e}var a=[].concat(e,t);if(a.length>r){if(o)throw RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");return u(m(a,{plainObjects:n}),a.length-1)}return a},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=o(),n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var u=l[s],c=a[u];"object"!=typeof c||null===c||r.has(c)||(t[t.length]={obj:a,prop:u},r.set(c,!0))}return h(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");
132if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;s+=1024){var u=a.length>=1024?a.slice(s,s+1024):a;if(s+1024<a.length){var c=u.charCodeAt(u.length-1);c>=55296&&c<=56319&&(u=u.slice(0,-1),s-=1)}for(var d=[],p=0;p<u.length;++p){var h=u.charCodeAt(p);if(45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===n.RFC1738&&(40===h||41===h)){d[d.length]=u.charAt(p);continue}if(h<128){d[d.length]=f[h];continue}if(h<2048){d[d.length]=f[192|h>>6]+f[128|63&h];continue}if(h<55296||h>=57344){d[d.length]=f[224|h>>12]+f[128|h>>6&63]+f[128|63&h];continue}p+=1,h=65536+((1023&h)<<10|1023&u.charCodeAt(p)),d[d.length]=f[240|h>>18]+f[128|h>>12&63]+f[128|h>>6&63]+f[128|63&h]}l+=d.join("")}return l},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:c,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:u,maybeMap:function(e,t){if(l(e)){for(var r=[],n=0;n<e.length;n+=1)r[r.length]=t(e[n]);return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(l(t)){var o=t.length;if(n&&"number"==typeof n.arrayLimit&&o>=n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return u(m(t.concat(r),n),o)}t[o]=r}else if(!t||"object"!=typeof t)return[t,r];else if(c(t)){var i=d(t)+1;t[i]=r,p(t,i)}else{if(n&&n.strictMerge)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t){if(c(r)){for(var s=Object.keys(r),f=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},h=0;h<s.length;h++)f[parseInt(s[h],10)+1]=r[s[h]];return u(f,d(r)+1)}var g=[t].concat(r);if(n&&"number"==typeof n.arrayLimit&&g.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return u(m(g,n),g.length-1)}return g}var v=t;if(l(t)&&!l(r)&&(v=m(t,n)),l(t)&&l(r)){if(r.forEach(function(r,o){if(a.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t[t.length]=r}else t[o]=r}),n&&"number"==typeof n.arrayLimit&&t.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return u(m(t,n),t.length-1)}return t}return Object.keys(r).reduce(function(t,o){var i=r[o];if(a.call(t,o)?y(t,o,e(t[o],i,n)):y(t,o,i),c(r)&&!c(t)&&u(t,d(r)),c(t)){var l=parseInt(o,10);String(l)===o&&l>=0&&l>d(t)&&p(t,l)}return t},v)}}},7375:function(e,t){"use strict";var r,n=Object.prototype.hasOwnProperty;function o(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function i(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){var o,a,l=[];for(a in"string"!=typeof(t=t||"")&&(t="?"),e)if(n.call(e,a)){if(!(o=e[a])&&(null===o||o===r||isNaN(o))&&(o=""),a=i(a),o=i(o),null===a||null===o)continue;l.push(a+"="+o)}return l.length?t+l.join("&"):""},t.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var i=o(t[1]),a=o(t[2]);null===i||null===a||i in n||(n[i]=a)}return n}},7245: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}},2642:function(e,t,r){"use strict";var n=r(9500),o=r(5408),i=function(e,t,r){for(var n,o=e;null!=(n=o.next);o=n)if(n.key===t)return o.next=n.next,r||(n.next=e.next,e.next=n),n},a=function(e,t){if(e){var r=i(e,t);return r&&r.value}},l=function(e,t,r){var n=i(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},s=function(e,t){if(e)return i(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){var r=s(e,t);return r&&e&&!e.next&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){var r;return!!(r=e)&&!!i(r,t)},set:function(t,r){e||(e={next:void 0}),l(e,t,r)}};return t}},6623:function(e,t,r){"use strict";var n=r(7286),o=r(8435),i=r(9500),a=r(5408),l=n("%Map%",!0),s=o("Map.prototype.get",!0),u=o("Map.prototype.set",!0),c=o("Map.prototype.has",!0),d=o("Map.prototype.delete",!0),p=o("Map.prototype.size",!0);e.exports=!!l&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=d(e,t);return 0===p(e)&&(e=void 0),r}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return!!e&&c(e,t)},set:function(t,r){e||(e=new l),u(e,t,r)}};return t}},2207:function(e,t,r){"use strict";var n=r(7286),o=r(8435),i=r(9500),a=r(6623),l=r(5408),s=n("%WeakMap%",!0),u=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("WeakMap.prototype.delete",!0);e.exports=s?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new l("Side channel does not contain "+i(e))},delete:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return s&&r&&("object"==typeof r||"function"==typeof r)&&e?u(e,r):t&&t.get(r)},has:function(r){return s&&r&&("object"==typeof r||"function"==typeof r)&&e?d(e,r):!!t&&t.has(r)}
132,set:function(r,n){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),c(e,r,n)):a&&(t||(t=a()),t.set(r,n))}};return r}:a},4294:function(e,t,r){"use strict";var n=r(5408),o=r(9500),i=r(2642),a=r(6623),l=r(2207)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+(e&&Object(e)===e?"the given object key":o(e)))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=l()),e.set(t,r)}};return t}},6664:function(e){e.exports.Qc=function(e,t){var r=(t=t||{}).preserveNumbers,n={};return(function(e){for(var t,r=[],n=0,o=/url\([^\)]+$/,i="";n<e.length;){if(-1===(t=e.indexOf(";",n))&&(t=e.length),i+=e.substring(n,t),o.test(i)){i+=";",n=t+1;continue}r.push(i),i="",n=t+1}return r})(e).map(function(e){return e.trim()}).filter(Boolean).forEach(function(e){var t,o=e.indexOf(":"),i=e.substr(0,o).trim(),a=e.substr(o+1).trim();r&&!isNaN(parseFloat(t=a))&&isFinite(t)&&(a=Number(a)),n[i]=a}),n}},4846:function(e,t,r){"use strict";var n=r(7245),o=r(7375),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,l=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(i,"")}var p=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function h(e){"undefined"!=typeof window?t=window:void 0!==r.g?t=r.g:"undefined"!=typeof self?t=self:t={};var t,n,o=t.location||{},i={},a=typeof(e=e||o);if("blob:"===e.protocol)i=new g(unescape(e.pathname),{});else if("string"===a)for(n in i=new g(e,{}),f)delete i[n];else if("object"===a){for(n in e)n in f||(i[n]=e[n]);void 0===i.slashes&&(i.slashes=l.test(e.href))}return i}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function y(e,t){e=(e=d(e)).replace(a,""),t=t||{};var r,n=u.exec(e),o=n[1]?n[1].toLowerCase():"",i=!!n[2],l=!!n[3],s=0;return i?l?(r=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(r=n[2]+n[4],s=n[2].length):l?(r=n[3]+n[4],s=n[3].length):r=n[4],"file:"===o?s>=2&&(r=r.slice(2)):m(o)?r=n[4]:o?i&&(r=r.slice(2)):s>=2&&m(t.protocol)&&(r=n[4]),{protocol:o,slashes:i||m(o),slashesCount:s,rest:r}}function g(e,t,r){if(e=(e=d(e)).replace(a,""),!(this instanceof g))return new g(e,t,r);var i,l,s,u,f,v,b=p.slice(),E=typeof t,w=0;for("object"!==E&&"string"!==E&&(r=t,t=null),r&&"function"!=typeof r&&(r=o.parse),i=!(l=y(e||"",t=h(t))).protocol&&!l.slashes,this.slashes=l.slashes||i&&t.slashes,this.protocol=l.protocol||t.protocol||"",e=l.rest,("file:"===l.protocol&&(2!==l.slashesCount||c.test(e))||!l.slashes&&(l.protocol||l.slashesCount<2||!m(this.protocol)))&&(b[3]=[/(.*)/,"pathname"]);w<b.length;w++){if("function"==typeof(u=b[w])){e=u(e,this);continue}s=u[0],v=u[1],s!=s?this[v]=e:"string"==typeof s?~(f="@"===s?e.lastIndexOf(s):e.indexOf(s))&&("number"==typeof u[2]?(this[v]=e.slice(0,f),e=e.slice(f+u[2])):(this[v]=e.slice(f),e=e.slice(0,f))):(f=s.exec(e))&&(this[v]=f[1],e=e.slice(0,f.index)),this[v]=this[v]||i&&u[3]&&t[v]||"",u[4]&&(this[v]=this[v].toLowerCase())}r&&(this.query=r(this.query)),i&&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,o=r[n-1],i=!1,a=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),a++):a&&(0===n&&(i=!0),r.splice(n,1),a--);return i&&r.unshift(""),("."===o||".."===o)&&r.push(""),r.join("/")}(this.pathname,t.pathname)),"/"!==this.pathname.charAt(0)&&m(this.protocol)&&(this.pathname="/"+this.pathname),n(this.port,this.protocol)||(this.host=this.hostname,this.port=""),this.username=this.password="",this.auth&&(~(f=this.auth.indexOf(":"))?(this.username=this.auth.slice(0,f),this.username=encodeURIComponent(decodeURIComponent(this.username)),this.password=this.auth.slice(f+1),this.password=encodeURIComponent(decodeURIComponent(this.password))):this.username=encodeURIComponent(decodeURIComponent(this.auth)),this.auth=this.password?this.username+":"+this.password:this.username),this.origin="file:"!==this.protocol&&m(this.protocol)&&this.host?this.protocol+"//"+this.host:"null",this.href=this.toString()}g.prototype={set:function(e,t,r){switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||o.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,s.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 i="pathname"===e?"/":"#";this[e]=t.charAt(0)!==i?i+t:t}else this[e]=t;break;case"username":case"password":this[e]=encodeURIComponent(t);break;case"auth":var a=t.indexOf(":");~a?(this.username=t.slice(0,a),this.username=encodeURIComponent(decodeURIComponent(this.username)),this.password=t.slice(a+1),this.password=encodeURIComponent(decodeURIComponent(this.password))):this.username=encodeURIComponent(decodeURIComponent(t))}for(var l=0;l<p.length;l++){var u=p[l];u[4]&&(this[u[1]]=this[u[1]].toLowerCase())}return this.auth=this.password?this.username+":"+this.password:this.username,this.origin="file:"!==this.protocol&&m(this.protocol)&&this.host?this.protocol+"//"+this.host:"null",this.href=this.toString(),this}
132,toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,r=this.host,n=this.protocol;n&&":"!==n.charAt(n.length-1)&&(n+=":");var i=n+(this.protocol&&this.slashes||m(this.protocol)?"//":"");return this.username?(i+=this.username,this.password&&(i+=":"+this.password),i+="@"):this.password?i+=":"+this.password+"@":"file:"!==this.protocol&&m(this.protocol)&&!r&&"/"!==this.pathname&&(i+="@"),(":"===r[r.length-1]||s.test(this.hostname)&&!this.port)&&(r+=":"),i+=r+this.pathname,(t="object"==typeof this.query?e(this.query):this.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),this.hash&&(i+=this.hash),i}},g.extractProtocol=y,g.location=h,g.trimLeft=d,g.qs=o,e.exports=g},2524:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}(r)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0!==(r=(function(){return o}).apply(t,[]))&&(e.exports=r)}()},8026:function(e,t){"use strict";t.Z=e=>e},5432:function(e,t,r){"use strict";r.d(t,{BZ:function(){return s},Ho:function(){return n},Kh:function(){return v},O$:function(){return m},RW:function(){return u},Wn:function(){return d},Xx:function(){return y},ZR:function(){return b},_b:function(){return g},aW:function(){return o},fv:function(){return f},mC:function(){return h},ou:function(){return a},pi:function(){return i},pu:function(){return l},uR:function(){return c},z4:function(){return p}});var n=1e-6,o=1e-12,i=Math.PI,a=i/2,l=i/4,s=2*i,u=180/i,c=i/180,d=Math.abs,p=Math.atan,f=Math.atan2,h=Math.cos,m=Math.sin,y=Math.sign||function(e){return e>0?1:e<0?-1:0},g=Math.sqrt;function v(e){return e>1?0:e<-1?i:Math.acos(e)}function b(e){return e>1?a:e<-1?-a:Math.asin(e)}},6957:function(e,t,r){"use strict";function n(){}r.d(t,{Z:function(){return n}})},6133:function(e,t,r){"use strict";var n=r(6957),o=1/0,i=1/0,a=-1/0,l=a,s={point:function(e,t){e<o&&(o=e),e>a&&(a=e),t<i&&(i=t),t>l&&(l=t)},lineStart:n.Z,lineEnd:n.Z,polygonStart:n.Z,polygonEnd:n.Z,result:function(){var e=[[o,i],[a,l]];return a=l=-(i=o=1/0),e}};t.Z=s},8828:function(e,t,r){"use strict";let n,o,i,a;r.d(t,{Z:function(){return ei}});var l,s,u,c,d=r(8026),p=r(9378),f=r(6316),h=r(5432),m=r(6957),y=new f.dU,g=new f.dU,v={point:m.Z,lineStart:m.Z,lineEnd:m.Z,polygonStart:function(){v.lineStart=b,v.lineEnd=O},polygonEnd:function(){v.lineStart=v.lineEnd=v.point=m.Z,y.add((0,h.Wn)(g)),g=new f.dU},result:function(){var e=y/2;return y=new f.dU,e}};function b(){v.point=E}function E(e,t){v.point=w,l=u=e,s=c=t}function w(e,t){g.add(c*e-u*t),u=e,c=t}function O(){w(l,s)}var S,A,C,x,_=r(6133),R=0,j=0,T=0,k=0,P=0,F=0,D=0,N=0,L=0,M={point:I,lineStart:$,lineEnd:B,polygonStart:function(){M.lineStart=W,M.lineEnd=V},polygonEnd:function(){M.point=I,M.lineStart=$,M.lineEnd=B},result:function(){var e=L?[D/L,N/L]:F?[k/F,P/F]:T?[R/T,j/T]:[NaN,NaN];return R=j=T=k=P=F=D=N=L=0,e}};function I(e,t){R+=e,j+=t,++T}function $(){M.point=U}function U(e,t){M.point=H,I(C=e,x=t)}function H(e,t){var r=e-C,n=t-x,o=(0,h._b)(r*r+n*n);k+=o*(C+e)/2,P+=o*(x+t)/2,F+=o,I(C=e,x=t)}function B(){M.point=I}function W(){M.point=z}function V(){q(S,A)}function z(e,t){M.point=q,I(S=C=e,A=x=t)}function q(e,t){var r=e-C,n=t-x,o=(0,h._b)(r*r+n*n);k+=o*(C+e)/2,P+=o*(x+t)/2,F+=o,D+=(o=x*e-C*t)*(C+e),N+=o*(x+t),L+=3*o,I(C=e,x=t)}function G(e){this._context=e}G.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,h.BZ)}},result:m.Z};var K,Z,J,Q,Y,X=new f.dU,ee={point:m.Z,lineStart:function(){ee.point=et},lineEnd:function(){K&&er(Z,J),ee.point=m.Z},polygonStart:function(){K=!0},polygonEnd:function(){K=null},result:function(){var e=+X;return X=new f.dU,e}};function et(e,t){ee.point=er,Z=Q=e,J=Y=t}function er(e,t){Q-=e,Y-=t,X.add((0,h._b)(Q*Q+Y*Y)),Q=e,Y=t}class en{constructor(e){this._append=null==e?eo:function(e){let t=Math.floor(e);if(!(t>=0))throw RangeError(`invalid digits: ${e}`);if(t>15)return eo;if(t!==n){let e=10**t;n=t,o=function(t){let r=1;this._+=t[0];for(let n=t.length;r<n;++r)this._+=Math.round(arguments[r]*e)/e+t[r]}}return o}(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(e,t){switch(this._point){case 0:this._append`M${e},${t}`,this._point=1;break;case 1:this._append`L${e},${t}`;break;default:if(this._append`M${e},${t}`,this._radius!==i||this._append!==o){let e=this._radius,t=this._;this._="",this._append`m0,${e}a${e},${e} 0 1,1 0,${-2*e}a${e},${e} 0 1,1 0,${2*e}z`,i=e,o=this._append,a=this._,this._=t}this._+=a}}result(){let e=this._;return this._="",e.length?e:null}}function eo(e){let t=1;this._+=e[0];for(let r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function ei(e,t){let r=3,n=4.5,o,i;function a(e){return e&&("function"==typeof n&&i.pointRadius(+n.apply(this,arguments)),(0,p.Z)(e,o(i))),i.result()}return a.area=function(e){return(0,p.Z)(e,o(v)),v.result()},a.measure=function(e){return(0,p.Z)(e,o(ee)),ee.result()},a.bounds=function(e){return(0,p.Z)(e,o(_.Z)),_.Z.result()},a.centroid=function(e){return(0,p.Z)(e,o(M)),M.result()},a.projection=function(t){return arguments.length?(o=null==t?(e=null,d.Z):(e=t).stream,a):e},a.context=function(e){return arguments.length?(i=null==e?(t=null,new en(r)):new G(t=e),"function"!=typeof n&&i.pointRadius(n),a):t},a.pointRadius=function(e){return arguments.length?(n="function"==typeof e?e:(i.pointRadius(+e),+e),a):n},a.digits=function(e){if(!arguments.length)return r;if(null==e)r=null;else{let t=Math.floor(e);if(!(t>=0))throw RangeError(`invalid digits: ${e}`);r=t}return null===t&&(i=new en(r)),a},a.projection(e).digits(r).context(t)}
132},562:function(e,t,r){"use strict";r.d(t,{Z:function(){return q}});var n=r(5432),o=r(6957);function i(){var e,t=[];return{point:function(t,r,n){e.push([t,r,n])},lineStart:function(){t.push(e=[])},lineEnd:o.Z,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var r=t;return t=[],e=null,r}}}function a(e,t){return(0,n.Wn)(e[0]-t[0])<n.Ho&&(0,n.Wn)(e[1]-t[1])<n.Ho}function l(e,t,r,n){this.x=e,this.z=t,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function s(e,t,r,o,i){var s,c,d=[],p=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,r,o=e[0],u=e[t];if(a(o,u)){if(!o[2]&&!u[2]){for(i.lineStart(),s=0;s<t;++s)i.point((o=e[s])[0],o[1]);i.lineEnd();return}u[0]+=2*n.Ho}d.push(r=new l(o,e,null,!0)),p.push(r.o=new l(o,null,r,!1)),d.push(r=new l(u,e,null,!1)),p.push(r.o=new l(u,null,r,!0))}}),d.length){for(p.sort(t),u(d),u(p),s=0,c=p.length;s<c;++s)p[s].e=r=!r;for(var f,h,m=d[0];;){for(var y=m,g=!0;y.v;)if((y=y.n)===m)return;f=y.z,i.lineStart();do{if(y.v=y.o.v=!0,y.e){if(g)for(s=0,c=f.length;s<c;++s)i.point((h=f[s])[0],h[1]);else o(y.x,y.n.x,1,i);y=y.n}else{if(g)for(s=(f=y.p.z).length-1;s>=0;--s)i.point((h=f[s])[0],h[1]);else o(y.x,y.p.x,-1,i);y=y.p}f=(y=y.o).z,g=!g}while(!y.v);i.lineEnd()}}}function u(e){if(t=e.length){for(var t,r,n=0,o=e[0];++n<t;)o.n=r=e[n],r.p=o,o=r;o.n=r=e[0],r.p=o}}var c=r(6316);function d(e){return[(0,n.fv)(e[1],e[0]),(0,n.ZR)(e[2])]}function p(e){var t=e[0],r=e[1],o=(0,n.mC)(r);return[o*(0,n.mC)(t),o*(0,n.O$)(t),(0,n.O$)(r)]}function f(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function h(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function m(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function y(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function g(e){var t=(0,n._b)(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function v(e){return(0,n.Wn)(e[0])<=n.pi?e[0]:(0,n.Xx)(e[0])*(((0,n.Wn)(e[0])+n.pi)%n.BZ-n.pi)}function b(e){return Array.from(function*(e){for(let t of e)yield*t}(e))}function E(e,t,r,o){return function(a){var l,u,d,f=t(a),m=i(),y=t(m),E=!1,S={point:A,lineStart:x,lineEnd:_,polygonStart:function(){S.point=R,S.lineStart=j,S.lineEnd=T,u=[],l=[]},polygonEnd:function(){S.point=A,S.lineStart=x,S.lineEnd=_,u=b(u);var e=function(e,t){var r=v(t),o=t[1],i=(0,n.O$)(o),a=[(0,n.O$)(r),-(0,n.mC)(r),0],l=0,s=0,u=new c.dU;1===i?o=n.ou+n.Ho:-1===i&&(o=-n.ou-n.Ho);for(var d=0,f=e.length;d<f;++d)if(y=(m=e[d]).length)for(var m,y,b=m[y-1],E=v(b),w=b[1]/2+n.pu,O=(0,n.O$)(w),S=(0,n.mC)(w),A=0;A<y;++A,E=x,O=R,S=j,b=C){var C=m[A],x=v(C),_=C[1]/2+n.pu,R=(0,n.O$)(_),j=(0,n.mC)(_),T=x-E,k=T>=0?1:-1,P=k*T,F=P>n.pi,D=O*R;if(u.add((0,n.fv)(D*k*(0,n.O$)(P),S*j+D*(0,n.mC)(P))),l+=F?T+k*n.BZ:T,F^E>=r^x>=r){var N=h(p(b),p(C));g(N);var L=h(a,N);g(L);var M=(F^T>=0?-1:1)*(0,n.ZR)(L[2]);(o>M||o===M&&(N[0]||N[1]))&&(s+=F^T>=0?1:-1)}}return(l<-n.Ho||l<n.Ho&&u<-n.aW)^1&s}(l,o);u.length?(E||(a.polygonStart(),E=!0),s(u,O,e,r,a)):e&&(E||(a.polygonStart(),E=!0),a.lineStart(),r(null,null,1,a),a.lineEnd()),E&&(a.polygonEnd(),E=!1),u=l=null},sphere:function(){a.polygonStart(),a.lineStart(),r(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function A(t,r){e(t,r)&&a.point(t,r)}function C(e,t){f.point(e,t)}function x(){S.point=C,f.lineStart()}function _(){S.point=A,f.lineEnd()}function R(e,t){d.push([e,t]),y.point(e,t)}function j(){y.lineStart(),d=[]}function T(){R(d[0][0],d[0][1]),y.lineEnd();var e,t,r,n,o=y.clean(),i=m.result(),s=i.length;if(d.pop(),l.push(d),d=null,s){if(1&o){if((t=(r=i[0]).length-1)>0){for(E||(a.polygonStart(),E=!0),a.lineStart(),e=0;e<t;++e)a.point((n=r[e])[0],n[1]);a.lineEnd()}return}s>1&&2&o&&i.push(i.pop().concat(i.shift())),u.push(i.filter(w))}}return S}}function w(e){return e.length>1}function O(e,t){return((e=e.x)[0]<0?e[1]-n.ou-n.Ho:n.ou-e[1])-((t=t.x)[0]<0?t[1]-n.ou-n.Ho:n.ou-t[1])}var S=E(function(){return!0},function(e){var t,r=NaN,o=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(a,l){var s,u,c,d,p,f,h=a>0?n.pi:-n.pi,m=(0,n.Wn)(a-r);(0,n.Wn)(m-n.pi)<n.Ho?(e.point(r,o=(o+l)/2>0?n.ou:-n.ou),e.point(i,o),e.lineEnd(),e.lineStart(),e.point(h,o),e.point(a,o),t=0):i!==h&&m>=n.pi&&((0,n.Wn)(r-i)<n.Ho&&(r-=i*n.Ho),(0,n.Wn)(a-h)<n.Ho&&(a-=h*n.Ho),s=r,u=o,c=a,f=(0,n.O$)(s-c),o=(0,n.Wn)(f)>n.Ho?(0,n.z4)(((0,n.O$)(u)*(p=(0,n.mC)(l))*(0,n.O$)(c)-(0,n.O$)(l)*(d=(0,n.mC)(u))*(0,n.O$)(s))/(d*p*f)):(u+l)/2,e.point(i,o),e.lineEnd(),e.lineStart(),e.point(h,o),t=0),e.point(r=a,o=l),i=h},lineEnd:function(){e.lineEnd(),r=o=NaN},clean:function(){return 2-t}}},function(e,t,r,o){var i;if(null==e)i=r*n.ou,o.point(-n.pi,i),o.point(0,i),o.point(n.pi,i),o.point(n.pi,0),o.point(n.pi,-i),o.point(0,-i),o.point(-n.pi,-i),o.point(-n.pi,0),o.point(-n.pi,i);else if((0,n.Wn)(e[0]-t[0])>n.Ho){var a=e[0]<t[0]?n.pi:-n.pi;i=r*a/2,o.point(-a,i),o.point(0,i),o.point(a,i)}else o.point(t[0],t[1])},[-n.pi,-n.ou]);function A(e,t){t=p(t),t[0]-=e,g(t);var r=(0,n.Kh)(-t[1]);return((0>-t[2]?-r:r)+n.BZ-n.Ho)%n.BZ}function C(e,t){function r(r,n){return t((r=e(r,n))[0],r[1])}return e.invert&&t.invert&&(r.invert=function(r,n){return(r=t.invert(r,n))&&e.invert(r[0],r[1])}),r}var x=r(8026);function _(e,t){return(0,n.Wn)(e)>n.pi&&(e-=Math.round(e/n.BZ)*n.BZ),[e,t]}function R(e){return function(t,r){return t+=e,(0,n.Wn)(t)>n.pi&&(t-=Math.round(t/n.BZ)*n.BZ),[t,r]}}function j(e){var t=R(e);return t.invert=R(-e),t}function T(e,t){var r=(0,n.mC)(e),o=(0,n.O$)(e),i=(0,n.mC)(t),a=(0,n.O$)(t);function l(e,t){var l=(0,n.mC)(t),s=(0,n.mC)(e)*l,u=(0,n.O$)(e)*l,c=(0,n.O$)(t),d=c*r+s*o;return[(0,n.fv)(u*i-d*a,s*r-c*o),(0,n.ZR)(d*i+u*a)]}return l.invert=function(e,t){var l=(0,n.mC)(t),s=(0,n.mC)(e)*l,u=(0,n.O$)(e)*l,c=(0,n.O$)(t),d=c*i-u*a;
132return[(0,n.fv)(u*i+c*a,s*r+d*o),(0,n.ZR)(d*r-s*o)]},l}function k(e){return function(t){var r=new P;for(var n in e)r[n]=e[n];return r.stream=t,r}}function P(){}_.invert=_,P.prototype={constructor:P,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var F=r(9378),D=r(6133);function N(e,t,r){var n=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=n&&e.clipExtent(null),(0,F.Z)(r,e.stream(D.Z)),t(D.Z.result()),null!=n&&e.clipExtent(n),e}function L(e,t,r){return N(e,function(r){var n=t[1][0]-t[0][0],o=t[1][1]-t[0][1],i=Math.min(n/(r[1][0]-r[0][0]),o/(r[1][1]-r[0][1])),a=+t[0][0]+(n-i*(r[1][0]+r[0][0]))/2,l=+t[0][1]+(o-i*(r[1][1]+r[0][1]))/2;e.scale(150*i).translate([a,l])},r)}function M(e,t,r){return L(e,[[0,0],t],r)}function I(e,t,r){return N(e,function(r){var n=+t,o=n/(r[1][0]-r[0][0]),i=(n-o*(r[1][0]+r[0][0]))/2,a=-o*r[0][1];e.scale(150*o).translate([i,a])},r)}function $(e,t,r){return N(e,function(r){var n=+t,o=n/(r[1][1]-r[0][1]),i=-o*r[0][0],a=(n-o*(r[1][1]+r[0][1]))/2;e.scale(150*o).translate([i,a])},r)}var U=(0,n.mC)(30*n.uR);function H(e,t){return+t?function(e,t){function r(o,i,a,l,s,u,c,d,p,f,h,m,y,g){var v=c-o,b=d-i,E=v*v+b*b;if(E>4*t&&y--){var w=l+f,O=s+h,S=u+m,A=(0,n._b)(w*w+O*O+S*S),C=(0,n.ZR)(S/=A),x=(0,n.Wn)((0,n.Wn)(S)-1)<n.Ho||(0,n.Wn)(a-p)<n.Ho?(a+p)/2:(0,n.fv)(O,w),_=e(x,C),R=_[0],j=_[1],T=R-o,k=j-i,P=b*T-v*k;(P*P/E>t||(0,n.Wn)((v*T+b*k)/E-.5)>.3||l*f+s*h+u*m<U)&&(r(o,i,a,l,s,u,R,j,x,w/=A,O/=A,S,y,g),g.point(R,j),r(R,j,x,w,O,S,c,d,p,f,h,m,y,g))}}return function(t){var n,o,i,a,l,s,u,c,d,f,h,m,y={point:g,lineStart:v,lineEnd:E,polygonStart:function(){t.polygonStart(),y.lineStart=w},polygonEnd:function(){t.polygonEnd(),y.lineStart=v}};function g(r,n){r=e(r,n),t.point(r[0],r[1])}function v(){c=NaN,y.point=b,t.lineStart()}function b(n,o){var i=p([n,o]),a=e(n,o);r(c,d,u,f,h,m,c=a[0],d=a[1],u=n,f=i[0],h=i[1],m=i[2],16,t),t.point(c,d)}function E(){y.point=g,t.lineEnd()}function w(){v(),y.point=O,y.lineEnd=S}function O(e,t){b(n=e,t),o=c,i=d,a=f,l=h,s=m,y.point=b}function S(){r(c,d,u,f,h,m,o,i,n,a,l,s,16,t),y.lineEnd=E,E()}return y}}(e,t):k({point:function(t,r){t=e(t,r),this.stream.point(t[0],t[1])}})}var B=k({point:function(e,t){this.stream.point(e*n.uR,t*n.uR)}});function W(e,t,r,o,i,a){if(!a)return function(e,t,r,n,o){function i(i,a){return[t+e*(i*=n),r-e*(a*=o)]}return i.invert=function(i,a){return[(i-t)/e*n,(r-a)/e*o]},i}(e,t,r,o,i);var l=(0,n.mC)(a),s=(0,n.O$)(a),u=l*e,c=s*e,d=l/e,p=s/e,f=(s*r-l*t)/e,h=(s*t+l*r)/e;function m(e,n){return[u*(e*=o)-c*(n*=i)+t,r-c*e-u*n]}return m.invert=function(e,t){return[o*(d*e-p*t+f),i*(h-p*e-d*t)]},m}function V(e,t){var r=(0,n.O$)(e),o=(r+(0,n.O$)(t))/2;if((0,n.Wn)(o)<n.Ho)return function(e){var t=(0,n.mC)(e);function r(e,r){return[e*t,(0,n.O$)(r)/t]}return r.invert=function(e,r){return[e/t,(0,n.ZR)(r*t)]},r}(e);var i=1+r*(2*o-r),a=(0,n._b)(i)/o;function l(e,t){var r=(0,n._b)(i-2*o*(0,n.O$)(t))/o;return[r*(0,n.O$)(e*=o),a-r*(0,n.mC)(e)]}return l.invert=function(e,t){var r=a-t,l=(0,n.fv)(e,(0,n.Wn)(r))*(0,n.Xx)(r);return r*o<0&&(l-=n.pi*(0,n.Xx)(e)*(0,n.Xx)(r)),[l/o,(0,n.ZR)((i-(e*e+r*r)*o*o)/(2*o))]},l}function z(){var e,t,r,o;return(e=0,t=n.pi/3,(o=(r=function(e){var t,r,o,l,u,c,g,v,w,O,R=150,P=480,F=250,D=0,N=0,U=0,V=0,z=0,q=0,G=1,K=1,Z=null,J=S,Q=null,Y=x.Z,X=.5;function ee(e){return v(e[0]*n.uR,e[1]*n.uR)}function et(e){return(e=v.invert(e[0],e[1]))&&[e[0]*n.RW,e[1]*n.RW]}function er(){var e,o,i,a=W(R,0,0,G,K,q).apply(null,t(D,N)),l=W(R,P-a[0],F-a[1],G,K,q);return e=U,o=V,i=z,r=(e%=n.BZ)?o||i?C(j(e),T(o,i)):j(e):o||i?T(o,i):_,g=C(t,l),v=C(r,g),c=H(g,X),en()}function en(){return w=O=null,ee}return ee.stream=function(e){var t;return w&&O===e?w:w=B((t=r,k({point:function(e,r){var n=t(e,r);return this.stream.point(n[0],n[1])}}))(J(c(Y(O=e)))))},ee.preclip=function(e){return arguments.length?(J=e,Z=void 0,en()):J},ee.postclip=function(e){return arguments.length?(Y=e,Q=o=l=u=null,en()):Y},ee.clipAngle=function(e){return arguments.length?(J=+e?function(e){var t=(0,n.mC)(e),r=2*n.uR,o=t>0,i=(0,n.Wn)(t)>n.Ho;function l(e,r){return(0,n.mC)(e)*(0,n.mC)(r)>t}function s(e,r,o){var i=p(e),a=p(r),l=[1,0,0],s=h(i,a),u=f(s,s),c=s[0],g=u-c*c;if(!g)return!o&&e;var v=h(l,s),b=y(l,t*u/g);m(b,y(s,-t*c/g));var E=f(b,v),w=f(v,v),O=E*E-w*(f(b,b)-1);if(!(O<0)){var S=(0,n._b)(O),A=y(v,(-E-S)/w);if(m(A,b),A=d(A),!o)return A;var C,x=e[0],_=r[0],R=e[1],j=r[1];_<x&&(C=x,x=_,_=C);var T=_-x,k=(0,n.Wn)(T-n.pi)<n.Ho,P=k||T<n.Ho;if(!k&&j<R&&(C=R,R=j,j=C),P?k?R+j>0^A[1]<((0,n.Wn)(A[0]-x)<n.Ho?R:j):R<=A[1]&&A[1]<=j:T>n.pi^(x<=A[0]&&A[0]<=_)){var F=y(v,(-E+S)/w);return m(F,b),[A,d(F)]}}}function u(t,r){var i=o?e:n.pi-e,a=0;return t<-i?a|=1:t>i&&(a|=2),r<-i?a|=4:r>i&&(a|=8),a}return E(l,function(e){var t,r,c,d,p;return{lineStart:function(){d=c=!1,p=1},point:function(f,h){var m,y,g=[f,h],v=l(f,h),b=o?v?0:u(f,h):v?u(f+(f<0?n.pi:-n.pi),h):0;!t&&(d=c=v)&&e.lineStart(),v!==c&&(!(y=s(t,g))||a(t,y)||a(g,y))&&
132(g[2]=1),v!==c?(p=0,v?(e.lineStart(),y=s(g,t),e.point(y[0],y[1])):(y=s(t,g),e.point(y[0],y[1],2),e.lineEnd()),t=y):i&&t&&o^v&&!(b&r)&&(m=s(g,t,!0))&&(p=0,o?(e.lineStart(),e.point(m[0][0],m[0][1]),e.point(m[1][0],m[1][1]),e.lineEnd()):(e.point(m[1][0],m[1][1]),e.lineEnd(),e.lineStart(),e.point(m[0][0],m[0][1],3))),!v||t&&a(t,g)||e.point(g[0],g[1]),t=g,c=v,r=b},lineEnd:function(){c&&e.lineEnd(),t=null},clean:function(){return p|(d&&c)<<1}}},function(t,o,i,a){!function(e,t,r,o,i,a){if(r){var l=(0,n.mC)(t),s=(0,n.O$)(t),u=o*r;null==i?(i=t+o*n.BZ,a=t-u/2):(i=A(l,i),a=A(l,a),(o>0?i<a:i>a)&&(i+=o*n.BZ));for(var c,p=i;o>0?p>a:p<a;p-=u)c=d([l,-s*(0,n.mC)(p),-s*(0,n.O$)(p)]),e.point(c[0],c[1])}}(a,e,r,i,t,o)},o?[0,-e]:[-n.pi,e-n.pi])}(Z=e*n.uR):(Z=null,S),en()):Z*n.RW},ee.clipExtent=function(e){return arguments.length?(Y=null==e?(Q=o=l=u=null,x.Z):function(e,t,r,o){function a(n,i){return e<=n&&n<=r&&t<=i&&i<=o}function l(n,i,a,l){var s=0,c=0;if(null==n||(s=u(n,a))!==(c=u(i,a))||0>d(n,i)^a>0)do l.point(0===s||3===s?e:r,s>1?o:t);while((s=(s+a+4)%4)!==c);else l.point(i[0],i[1])}function u(o,i){return(0,n.Wn)(o[0]-e)<n.Ho?i>0?0:3:(0,n.Wn)(o[0]-r)<n.Ho?i>0?2:1:(0,n.Wn)(o[1]-t)<n.Ho?i>0?1:0:i>0?3:2}function c(e,t){return d(e.x,t.x)}function d(e,t){var r=u(e,1),n=u(t,1);return r!==n?r-n:0===r?t[1]-e[1]:1===r?e[0]-t[0]:2===r?e[1]-t[1]:t[0]-e[0]}return function(n){var u,d,p,f,h,m,y,g,v,E,w,O=n,S=i(),A={point:C,lineStart:function(){A.point=x,d&&d.push(p=[]),E=!0,v=!1,y=g=NaN},lineEnd:function(){u&&(x(f,h),m&&v&&S.rejoin(),u.push(S.result())),A.point=C,v&&O.lineEnd()},polygonStart:function(){O=S,u=[],d=[],w=!0},polygonEnd:function(){var t=function(){for(var t=0,r=0,n=d.length;r<n;++r)for(var i,a,l=d[r],s=1,u=l.length,c=l[0],p=c[0],f=c[1];s<u;++s)i=p,a=f,p=(c=l[s])[0],f=c[1],a<=o?f>o&&(p-i)*(o-a)>(f-a)*(e-i)&&++t:f<=o&&(p-i)*(o-a)<(f-a)*(e-i)&&--t;return t}(),r=w&&t,i=(u=b(u)).length;(r||i)&&(n.polygonStart(),r&&(n.lineStart(),l(null,null,1,n),n.lineEnd()),i&&s(u,c,t,l,n),n.polygonEnd()),O=n,u=d=p=null}};function C(e,t){a(e,t)&&O.point(e,t)}function x(n,i){var l=a(n,i);if(d&&p.push([n,i]),E)f=n,h=i,m=l,E=!1,l&&(O.lineStart(),O.point(n,i));else if(l&&v)O.point(n,i);else{var s=[y=Math.max(-1e9,Math.min(1e9,y)),g=Math.max(-1e9,Math.min(1e9,g))],u=[n=Math.max(-1e9,Math.min(1e9,n)),i=Math.max(-1e9,Math.min(1e9,i))];(function(e,t,r,n,o,i){var a,l=e[0],s=e[1],u=t[0],c=t[1],d=0,p=1,f=u-l,h=c-s;if(a=r-l,f||!(a>0)){if(a/=f,f<0){if(a<d)return;a<p&&(p=a)}else if(f>0){if(a>p)return;a>d&&(d=a)}if(a=o-l,f||!(a<0)){if(a/=f,f<0){if(a>p)return;a>d&&(d=a)}else if(f>0){if(a<d)return;a<p&&(p=a)}if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a<d)return;a<p&&(p=a)}else if(h>0){if(a>p)return;a>d&&(d=a)}if(a=i-s,h||!(a<0)){if(a/=h,h<0){if(a>p)return;a>d&&(d=a)}else if(h>0){if(a<d)return;a<p&&(p=a)}return d>0&&(e[0]=l+d*f,e[1]=s+d*h),p<1&&(t[0]=l+p*f,t[1]=s+p*h),!0}}}}})(s,u,e,t,r,o)?(v||(O.lineStart(),O.point(s[0],s[1])),O.point(u[0],u[1]),l||O.lineEnd(),w=!1):l&&(O.lineStart(),O.point(n,i),w=!1)}y=n,g=i,v=l}return A}}(Q=+e[0][0],o=+e[0][1],l=+e[1][0],u=+e[1][1]),en()):null==Q?null:[[Q,o],[l,u]]},ee.scale=function(e){return arguments.length?(R=+e,er()):R},ee.translate=function(e){return arguments.length?(P=+e[0],F=+e[1],er()):[P,F]},ee.center=function(e){return arguments.length?(D=e[0]%360*n.uR,N=e[1]%360*n.uR,er()):[D*n.RW,N*n.RW]},ee.rotate=function(e){return arguments.length?(U=e[0]%360*n.uR,V=e[1]%360*n.uR,z=e.length>2?e[2]%360*n.uR:0,er()):[U*n.RW,V*n.RW,z*n.RW]},ee.angle=function(e){return arguments.length?(q=e%360*n.uR,er()):q*n.RW},ee.reflectX=function(e){return arguments.length?(G=e?-1:1,er()):G<0},ee.reflectY=function(e){return arguments.length?(K=e?-1:1,er()):K<0},ee.precision=function(e){return arguments.length?(c=H(g,X=e*e),en()):(0,n._b)(X)},ee.fitExtent=function(e,t){return L(ee,e,t)},ee.fitSize=function(e,t){return M(ee,e,t)},ee.fitWidth=function(e,t){return I(ee,e,t)},ee.fitHeight=function(e,t){return $(ee,e,t)},function(){return t=e.apply(this,arguments),ee.invert=t.invert&&et,er()}}(V))(e,t)).parallels=function(o){return arguments.length?r(e=o[0]*n.uR,t=o[1]*n.uR):[e*n.RW,t*n.RW]},o).scale(155.424).center([0,33.6442])}function q(){var e,t,r,o,i,a,l=z().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7]),s=z().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=z().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(e,t){a=[e,t]}};function d(e){var t=e[0],n=e[1];return a=null,r.point(t,n),a||(o.point(t,n),a)||(i.point(t,n),a)}function p(){return e=t=null,d}return d.invert=function(e){var t=l.scale(),r=l.translate(),n=(e[0]-r[0])/t,o=(e[1]-r[1])/t;return(o>=.12&&o<.234&&n>=-.425&&n<-.214?s:o>=.166&&o<.234&&n>=-.214&&n<-.115?u:l).invert(e)},d.stream=function(r){var n,o;return e&&t===r?e:(o=(n=[l.stream(t=r),s.stream(r),u.stream(r)]).length,e={point:function(e,t){for(var r=-1;++r<o;)n[r].point(e,t)},sphere:function(){for(var e=-1;++e<o;)n[e].sphere()},lineStart:function(){for(var e=-1;++e<o;)n[e].lineStart()},lineEnd:function(){for(var e=-1;++e<o;)n[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<o;)n[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<o;)n[e].polygonEnd()}})},d.precision=function(e){return arguments.length?(l.precision(e),s.precision(e),u.precision(e),p()):l.precision()},d.scale=function(e){return arguments.length?(l.scale(e),s.scale(.35*e),u.scale(e),d.translate(l.translate())):l.scale()},d.translate=function(e){if(!arguments.length)return l.translate();var t=l.scale(),a=+e[0],d=+e[1];return r=l.translate(e).clipExtent([[a-.455*t,d-.238*t],[a+.455*t,d+.238*t]]).stream(c),o=s.translate([a-.307
132*t,d+.201*t]).clipExtent([[a-.425*t+n.Ho,d+.12*t+n.Ho],[a-.214*t-n.Ho,d+.234*t-n.Ho]]).stream(c),i=u.translate([a-.205*t,d+.212*t]).clipExtent([[a-.214*t+n.Ho,d+.166*t+n.Ho],[a-.115*t-n.Ho,d+.234*t-n.Ho]]).stream(c),p()},d.fitExtent=function(e,t){return L(d,e,t)},d.fitSize=function(e,t){return M(d,e,t)},d.fitWidth=function(e,t){return I(d,e,t)},d.fitHeight=function(e,t){return $(d,e,t)},d.scale(1070)}},9378:function(e,t,r){"use strict";function n(e,t){e&&i.hasOwnProperty(e.type)&&i[e.type](e,t)}r.d(t,{Z:function(){return s}});var o={Feature:function(e,t){n(e.geometry,t)},FeatureCollection:function(e,t){for(var r=e.features,o=-1,i=r.length;++o<i;)n(r[o].geometry,t)}},i={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var r=e.coordinates,n=-1,o=r.length;++n<o;)e=r[n],t.point(e[0],e[1],e[2])},LineString:function(e,t){a(e.coordinates,t,0)},MultiLineString:function(e,t){for(var r=e.coordinates,n=-1,o=r.length;++n<o;)a(r[n],t,0)},Polygon:function(e,t){l(e.coordinates,t)},MultiPolygon:function(e,t){for(var r=e.coordinates,n=-1,o=r.length;++n<o;)l(r[n],t)},GeometryCollection:function(e,t){for(var r=e.geometries,o=-1,i=r.length;++o<i;)n(r[o],t)}};function a(e,t,r){var n,o=-1,i=e.length-r;for(t.lineStart();++o<i;)n=e[o],t.point(n[0],n[1],n[2]);t.lineEnd()}function l(e,t){var r=-1,n=e.length;for(t.polygonStart();++r<n;)a(e[r],t,1);t.polygonEnd()}function s(e,t){e&&o.hasOwnProperty(e.type)?o[e.type](e,t):n(e,t)}},489:function(e,t,r){"use strict";function n(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n)}return o}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{W:function(){return n}}),t.Z=n},2813:function(e,t,r){"use strict";function n(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}r.d(t,{Z:function(){return em}});let o=Object.entries,i=Object.setPrototypeOf,a=Object.isFrozen,l=Object.getPrototypeOf,s=Object.getOwnPropertyDescriptor,u=Object.freeze,c=Object.seal,d=Object.create,p="undefined"!=typeof Reflect&&Reflect,f=p.apply,h=p.construct;u||(u=function(e){return e}),c||(c=function(e){return e}),f||(f=function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return e.apply(t,n)}),h||(h=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});let m=N(Array.prototype.forEach),y=N(Array.prototype.lastIndexOf),g=N(Array.prototype.pop),v=N(Array.prototype.push),b=N(Array.prototype.splice),E=Array.isArray,w=N(String.prototype.toLowerCase),O=N(String.prototype.toString),S=N(String.prototype.match),A=N(String.prototype.replace),C=N(String.prototype.indexOf),x=N(String.prototype.trim),_=N(Number.prototype.toString),R=N(Boolean.prototype.toString),j="undefined"==typeof BigInt?null:N(BigInt.prototype.toString),T="undefined"==typeof Symbol?null:N(Symbol.prototype.toString),k=N(Object.prototype.hasOwnProperty),P=N(Object.prototype.toString),F=N(RegExp.prototype.test),D=(eh=TypeError,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return h(eh,t)});function N(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return f(e,t,n)}}function L(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;if(i&&i(e,null),!E(t))return e;let n=t.length;for(;n--;){let o=t[n];if("string"==typeof o){let e=r(o);e!==o&&(a(t)||(t[n]=e),o=e)}e[o]=!0}return e}function M(e){let t=d(null);for(let i of o(e)){var r=function(e){if(Array.isArray(e))return e}(i)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{for(i=(r=r.call(e)).next;!(s=(n=i.call(r)).done)&&(l.push(n.value),2!==l.length);s=!0);}catch(e){u=!0,o=e}
132finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(i,2)||function(e,t){if(e){if("string"==typeof e)return n(e,2);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,2):void 0}}(i,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let o=r[0],a=r[1];k(e,o)&&(E(a)?t[o]=function(e){for(let t=0;t<e.length;t++)k(e,t)||(e[t]=null);return e}(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=M(a):t[o]=a)}return t}function I(e,t){for(;null!==e;){let r=s(e,t);if(r){if(r.get)return N(r.get);if("function"==typeof r.value)return N(r.value)}e=l(e)}return function(){return null}}let $=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),H=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),W=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),V=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=u(["#text"]),q=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
132spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),G=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),K=u(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),J=c(/{{[\w\W]*|^[\w\W]*}}/g),Q=c(/<%[\w\W]*|^[\w\W]*%>/g),Y=c(/\${[\w\W]*/g),X=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),ee=c(/^aria-[\-\w]+$/),et=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),er=c(/^(?:\w+script|data):/i),en=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eo=c(/^html$/i),ei=c(/^[a-z][.\w]*(-[.\w]+)+$/i),ea=c(/<[/\w!]/g),el=c(/<[/\w]/g),es=c(/<\/no(script|embed|frames)/i),eu=c(/\/>/i),ec={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},ed=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},ep=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ef=function(e,t,r,n){return k(e,t)&&E(e[t])?L(n.base?M(n.base):{},e[t],n.transform):r};var eh,em=function e(){let t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=t=>e(t);if(i.version="3.4.11",i.removed=[],!n||!n.document||n.document.nodeType!==ec.document||!n.Element)return i.isSupported=!1,i;let a=n.document,l=a,s=l.currentScript;n.DocumentFragment;let p=n.HTMLTemplateElement,f=n.Node,h=n.Element,N=n.NodeFilter;void 0===n.NamedNodeMap&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let eh=n.DOMParser,em=n.trustedTypes,ey=h.prototype,eg=I(ey,"cloneNode"),ev=I(ey,"remove"),eb=I(ey,"nextSibling"),eE=I(ey,"childNodes"),ew=I(ey,"parentNode"),eO=I(ey,"shadowRoot"),eS=I(ey,"attributes"),eA=f&&f.prototype?I(f.prototype,"nodeType"):null,eC=f&&f.prototype?I(f.prototype,"nodeName"):null;if("function"==typeof p){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let ex="",e_=!1,eR=0,ej=function(){if(eR>0)throw D('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},eT=function(e){ej(),eR++;try{return t.createHTML(e)}finally{eR--}},ek=function(e){ej(),eR++;try{return t.createScriptURL(e)}finally{eR--}},eP=a,eF=eP.implementation,eD=eP.createNodeIterator,eN=eP.createDocumentFragment,eL=eP.getElementsByTagName,eM=l.importNode,eI=ep();i.isSupported="function"==typeof o&&"function"==typeof ew&&eF&&void 0!==eF.createHTMLDocument;let e$=et,eU=null,eH=L({},[...$,...U,...H,...W,...z]),eB=null,eW=L({}
132,[...q,...G,...K,...Z]),eV=Object.seal(d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ez=null,eq=null,eG=Object.seal(d(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eK=!0,eZ=!0,eJ=!1,eQ=!0,eY=!1,eX=!0,e0=!1,e1=!1,e2=null,e3=null,e4=!1,e6=!1,e8=!1,e5=!1,e9=!0,e7=!1,te="user-content-",tt=!0,tr=!1,tn={},to=null,ti=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),ta=null,tl=L({},["audio","video","img","source","image","track"]),ts=null,tu=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tc="http://www.w3.org/1998/Math/MathML",td="http://www.w3.org/2000/svg",tp="http://www.w3.org/1999/xhtml",tf=tp,th=!1,tm=null,ty=L({},[tc,td,tp],O),tg=u(["mi","mo","mn","ms","mtext"]),tv=L({},tg),tb=u(["annotation-xml"]),tE=L({},tb),tw=L({},["title","style","font","a","script"]),tO=null,tS=["application/xhtml+xml","text/html"],tA=null,tC=null,tx=a.createElement("form"),t_=function(e){return e instanceof RegExp||e instanceof Function},tR=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tC&&tC===e)return;e&&"object"==typeof e||(e={}),e=M(e),tA="application/xhtml+xml"===(tO=-1===tS.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?O:w,eU=ef(e,"ALLOWED_TAGS",eH,{transform:tA}),eB=ef(e,"ALLOWED_ATTR",eW,{transform:tA}),tm=ef(e,"ALLOWED_NAMESPACES",ty,{transform:O}),ts=ef(e,"ADD_URI_SAFE_ATTR",tu,{transform:tA,base:tu}),ta=ef(e,"ADD_DATA_URI_TAGS",tl,{transform:tA,base:tl}),to=ef(e,"FORBID_CONTENTS",ti,{transform:tA}),ez=ef(e,"FORBID_TAGS",M({}),{transform:tA}),eq=ef(e,"FORBID_ATTR",M({}),{transform:tA}),tn=!!k(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?M(e.USE_PROFILES):e.USE_PROFILES),eK=!1!==e.ALLOW_ARIA_ATTR,eZ=!1!==e.ALLOW_DATA_ATTR,eJ=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eQ=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eY=e.SAFE_FOR_TEMPLATES||!1,eX=!1!==e.SAFE_FOR_XML,e0=e.WHOLE_DOCUMENT||!1,e6=e.RETURN_DOM||!1,e8=e.RETURN_DOM_FRAGMENT||!1,e5=e.RETURN_TRUSTED_TYPE||!1,e4=e.FORCE_BODY||!1,e9=!1!==e.SANITIZE_DOM,e7=e.SANITIZE_NAMED_PROPS||!1,tt=!1!==e.KEEP_CONTENT,tr=e.IN_PLACE||!1,e$=!function(e){try{return F(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?et:e.ALLOWED_URI_REGEXP,tf="string"==typeof e.NAMESPACE?e.NAMESPACE:tp,tv=k(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?M(e.MATHML_TEXT_INTEGRATION_POINTS):L({},tg),tE=k(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?M(e.HTML_INTEGRATION_POINTS):L({},tb);let n=k(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?M(e.CUSTOM_ELEMENT_HANDLING):d(null);if(eV=d(null),k(n,"tagNameCheck")&&t_(n.tagNameCheck)&&(eV.tagNameCheck=n.tagNameCheck),k(n,"attributeNameCheck")&&t_(n.attributeNameCheck)&&(eV.attributeNameCheck=n.attributeNameCheck),k(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(eV.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),c(eV),eY&&(eZ=!1),e8&&(e6=!0),tn&&(eU=L({},z),eB=d(null),!0===tn.html&&(L(eU,$),L(eB,q)),!0===tn.svg&&(L(eU,U),L(eB,G),L(eB,Z)),!0===tn.svgFilters&&(L(eU,H),L(eB,G),L(eB,Z)),!0===tn.mathMl&&(L(eU,W),L(eB,K),L(eB,Z))),eG.tagCheck=null,eG.attributeCheck=null,k(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?eG.tagCheck=e.ADD_TAGS:E(e.ADD_TAGS)&&(eU===eH&&(eU=M(eU)),L(eU,e.ADD_TAGS,tA))),k(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?eG.attributeCheck=e.ADD_ATTR:E(e.ADD_ATTR)&&(eB===eW&&(eB=M(eB)),L(eB,e.ADD_ATTR,tA))),k(e,"ADD_URI_SAFE_ATTR")&&E(e.ADD_URI_SAFE_ATTR)&&L(ts,e.ADD_URI_SAFE_ATTR,tA),k(e,"FORBID_CONTENTS")&&E(e.FORBID_CONTENTS)&&(to===ti&&(to=M(to)),L(to,e.FORBID_CONTENTS,tA)),k(e,"ADD_FORBID_CONTENTS")&&E(e.ADD_FORBID_CONTENTS)&&(to===ti&&(to=M(to)),L(to,e.ADD_FORBID_CONTENTS,tA)),tt&&(eU["#text"]=!0),e0&&L(eU,["html","head","body"]),eU.table&&(L(eU,["tbody"]),delete ez.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=t;t=e.TRUSTED_TYPES_POLICY;try{ex=eT("")}catch(e){throw t=r,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,ex=""):(void 0===t&&(e_||(r=ed(em,s),e_=!0),t=r),t&&"string"==typeof ex&&(ex=eT("")));u&&u(e),tC=e},tj=L({},[...U,...H,...B]),tT=L({},[...W,...V]),tk=function(e){var t,r,n;let o=ew(e);o&&o.tagName||(o={namespaceURI:tf,tagName:"template"});let i=w(e.tagName),a=w(o.tagName);return!!tm[e.namespaceURI]&&(e.namespaceURI===td?(t=o).namespaceURI===tp?"svg"===i:t.namespaceURI===tc?"svg"===i&&("annotation-xml"===a||tv[a]):!!tj[i]:e.namespaceURI===tc?(r=o).namespaceURI===tp?"math"===i:r.namespaceURI===td?"math"===i&&tE[a]:!!tT[i]:e.namespaceURI===tp?((n=o).namespaceURI!==td||!!tE[a])&&(n.namespaceURI!==tc||!!tv[a])&&!tT[i]&&(tw[i]||!tj[i]):"application/xhtml+xml"===tO&&!!tm[e.namespaceURI])},tP=function(e){v(i.removed,{element:e});try{ew(e).removeChild(e)}catch(t){if(ev(e),!ew(e))throw D("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tF=function(e){let t=eE(e);if(t){let e=[];m(t,t=>{v(e,t)}),m(e,e=>{try{ev(e)}catch(e){}})}let r=eS(e);if(r)for(let t=r.length-1;t>=0;--t){let n=r[t],o=n&&n.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(e){}}},tD=function(e,t){try{v(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e){if(e6||e8)try{tP(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},tN=function(e){let t=eS(e);if(t)for(let r=t.length-1;r>=0;--r){let n=t[r],o=n&&n.name;if("string"==typeof o&&!eB[tA(o)])try{e.removeAttribute(o)}catch(e){}}},tL=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(eA?eA(e):e.nodeType)===ec.element&&tN(e);let r=eE(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},tM=function(e){let r=null,n=null;if(e4)e="<remove></remove>"+e;else{let t=S(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===tO&&tf===tp&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let o=t?eT(e):e;if(tf===tp)try{r=new eh().parseFromString(o,tO)}catch(e){}if(!r||!r.documentElement){r=eF.createDocument(tf,"template",null);try{r.documentElement.innerHTML=th?ex:o}catch(e){}}let i=r.body||r.documentElement;return(e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),tf===tp)?eL.call(r,e0?"html":"body")[0]:e0?r.documentElement:i},tI=function(e){return eD.call(e.ownerDocument||e,e,N.SHOW_ELEMENT|N.SHOW_COMMENT|N.SHOW_TEXT|N.SHOW_PROCESSING_INSTRUCTION|N.SHOW_CDATA_SECTION,null)},t$=function(e){return e=A(e,J," "),e=A(e,Q," "),e=A(e,Y," ")},tU=function(e){var t;e.normalize();let r=eD.call(e.ownerDocument||e,e,N.SHOW_TEXT|N.SHOW_COMMENT|N.SHOW_CDATA_SECTION|N.SHOW_PROCESSING_INSTRUCTION,null),n=r.nextNode();for(;n;)n.data=t$(n.data),n=r.nextNode();let o=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");o&&m(o,e=>{tB(e.content)&&tU(e.content)})},tH=function(e){let t=eC?eC(e):null;return"string"==typeof t&&"form"===tA(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==eS(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eA(e)||e.childNodes!==eE(e))},tB=function(e){if(!eA||"object"!=typeof e||null===e)return!1;try{return eA(e)===ec.documentFragment}catch(e){return!1}},tW=function(e){if(!eA||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eA(e)}catch(e){return!1}};function tV(e,t,r){0!==e.length&&m(e,e=>{e.call(i,t,r,tC)})}let tz=function(e,t){if(!ez[t]&&tZ(t)&&(eV.tagNameCheck instanceof RegExp&&F(eV.tagNameCheck,t)||eV.tagNameCheck instanceof Function&&eV.tagNameCheck(t)))return!1;if(tt&&!to[t]){let t=ew(e),r=eE(e);if(r&&t){let n=r.length;for(let o=n-1;o>=0;--o){let n=tr?r[o]:eg(r[o],!0);t.insertBefore(n,eb(e))}}}return tP(e),!0},tq=function(e){if(tV(eI.beforeSanitizeElements,e,null),tH(e))return tP(e),!0;let t=tA(eC?eC(e):e.nodeName);if(tV(eI.uponSanitizeElement,e,{tagName:t,allowedTags:eU}),eX&&e.hasChildNodes()&&!tW(e.firstElementChild)&&F(ea,e.textContent)&&F(ea,e.innerHTML)||eX&&e.namespaceURI===tp&&"style"===t&&tW(e.firstElementChild)||e.nodeType===ec.processingInstruction||eX&&e.nodeType===ec.comment&&F(el,e.data))return tP(e),!0;if(ez[t]||!(eG.tagCheck instanceof Function&&eG.tagCheck(t))&&!eU[t])return tz(e,t);if((eA?eA(e):e.nodeType)===ec.element&&!tk(e)||("noscript"===t||"noembed"===t||"noframes"===t)&&F(es,e.innerHTML))return tP(e),!0;if(eY&&e.nodeType===ec.text){let t=t$(e.textContent);e.textContent!==t&&(v(i.removed,{element:e.cloneNode()}),e.textContent=t)}return tV(eI.afterSanitizeElements,e,null),!1},tG=function(e,t,r){if(eq[t]||e9&&("id"===t||"name"===t)&&(r in a||r in tx))return!1;let n=eB[t]||eG.attributeCheck instanceof Function&&eG.attributeCheck(t,e);if(eZ&&F(X,t));else if(eK&&F(ee,t));else if(n){if(ts[t]);else if(F(e$,A(r,en,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===C(r,"data:")&&ta[e]);else if(eJ&&!F(er,A(r,en,"")));else if(r)return!1}else if(!(tZ(e)&&(eV.tagNameCheck instanceof RegExp&&F(eV.tagNameCheck,e)||eV.tagNameCheck instanceof Function&&eV.tagNameCheck(e))&&(eV.attributeNameCheck instanceof RegExp&&F(eV.attributeNameCheck,t)||eV.attributeNameCheck instanceof Function&&eV.attributeNameCheck(t,e))||"is"===t&&eV.allowCustomizedBuiltInElements&&(eV.tagNameCheck instanceof RegExp&&F(eV.tagNameCheck,r)||eV.tagNameCheck instanceof Function&&eV.tagNameCheck(r))))return!1;return!0},tK=L({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tZ=function(e){return!tK[w(e)]&&F(ei,e)},tJ=function(e,r,n,o){if(t&&"object"==typeof em&&"function"==typeof em.getAttributeType&&!n)switch(em.getAttributeType(e,r)){case"TrustedHTML":return eT(o);case"TrustedScriptURL":return ek(o)}return o},tQ=function(e,t,r,n){try{r?e.setAttributeNS(r,t,n):e.setAttribute(t,n),tH(e)?tP(e):g(i.removed)}catch(r){tD(t,e)}},tY=function(e){tV(eI.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||tH(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eB,forceKeepAttr:void 0},n=t.length,o=tA(e.nodeName);for(;n--;){let i=t[n],a=i.name,l=i.namespaceURI,s=i.value,u=tA(a),c="value"===a?s:x(s);if(r.attrName=u,r.attrValue=c,r.keepAttr=!0,r.forceKeepAttr=void 0,tV(eI.uponSanitizeAttribute,e,r),c=r.attrValue,e7&&("id"===u||"name"===u)&&0!==C(c,te)&&(tD(a,e),c=te+c),eX&&F(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,c)||"attributename"===u&&S(c,"href")){tD(a,e);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!eQ&&F(eu,c)||(eY&&(c=t$(c)),!tG(o,u,c))){tD(a,e);continue}(c=tJ(o,u,l,c))!==s&&tQ(e,a,l,c)}}tV(eI.afterSanitizeAttributes,e,null)},tX=function(e){let t=null,r=tI(e);for(tV(eI.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)if(tV(eI.uponSanitizeShadowNode,t,null),tq(t),tY(t),tB(t.content)&&tX(t.content),(eA?eA(t):t.nodeType)===ec.element){let e=eO(t);tB(e)&&(t0(e),tX(e))}tV(eI.afterSanitizeShadowDOM,e,null)},t0=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){tX(e.shadow);continue}let r=e.node,n=(eA?eA(r):r.nodeType)===ec.element,o=eE(r);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(n){let e=eC?eC(r):null;if("string"==typeof e&&"template"===tA(e)){let e=r.content;tB(e)&&t.push({node:e,shadow:null})}}if(n){let e=eO(r);tB(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,a=null,s=null;if((th=!e)&&(e="<!-->"),"string"!=typeof e&&!tW(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return _(e);case"boolean":return R(e);case"bigint":return j?j(e):"0";case"symbol":return T?T(e):"Symbol()";case"undefined":default:return P(e);case"function":case"object":{if(null===e)return P(e);let t=I(e,"toString");if("function"==typeof t){let r=t(e);return"string"==typeof r?r:P(r)}return P(e)}}}(e)))throw D("dirty is not a string, aborting");if(!i.isSupported)return e;e1?(eU=e2,eB=e3):tR(r),(eI.uponSanitizeElement.length>0||eI.uponSanitizeAttribute.length>0)&&(eU=M(eU)),eI.uponSanitizeAttribute.length>0&&(eB=M(eB)),i.removed=[];let u=tr&&"string"!=typeof e&&tW(e);if(u){let t=eC?eC(e):e.nodeName;if("string"==typeof t){let e=tA(t);if(!eU[e]||ez[e])throw D("root node is forbidden and cannot be sanitized in-place")}if(tH(e))throw D("root node is clobbered and cannot be sanitized in-place");try{t0(e)}catch(t){throw tF(e),t}}else if(tW(e))(o=(n=tM("<!---->")).ownerDocument.importNode(e,!0)).nodeType===ec.element&&"BODY"===o.nodeName?n=o:"HTML"===o.nodeName?n=o:n.appendChild(o),t0(o);else{if(!e6&&!eY&&!e0&&-1===e.indexOf("<"))return t&&e5?eT(e):e;if(!(n=tM(e)))return e6?null:e5?ex:""}n&&e4&&tP(n.firstChild);let c=tI(u?e:n);try{for(;a=c.nextNode();)tq(a),tY(a),tB(a.content)&&tX(a.content)}catch(t){throw u&&tF(e),t}if(u)return m(i.removed,e=>{e.element&&tL(e.element)}),eY&&tU(e),e;if(e6){if(eY&&tU(n),e8)for(s=eN.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(eB.shadowroot||eB.shadowrootmode)&&(s=eM.call(l,s,!0)),s}let d=e0?n.outerHTML:n.innerHTML;return e0&&eU["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&F(eo,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">
132\n"+d),eY&&(d=t$(d)),t&&e5?eT(d):d},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tR(e),e1=!0,e2=eU,e3=eB},i.clearConfig=function(){tC=null,e1=!1,e2=null,e3=null,t=r,ex=""},i.isValidAttribute=function(e,t,r){return tC||tR({}),tG(tA(e),tA(t),r)},i.addHook=function(e,t){"function"==typeof t&&k(eI,e)&&v(eI[e],t)},i.removeHook=function(e,t){if(k(eI,e)){if(void 0!==t){let r=y(eI[e],t);return -1===r?void 0:b(eI[e],r,1)[0]}return g(eI[e])}},i.removeHooks=function(e){k(eI,e)&&(eI[e]=[])},i.removeAllHooks=function(){eI=ep()},i}()},3955:function(e,t,r){"use strict";r.d(t,{Gc:function(){return x},Qr:function(){return P},RV:function(){return _},cI:function(){return eS}});var n=r(2784),o=e=>"checkbox"===e.type,i=e=>e instanceof Date,a=e=>null==e;let l=e=>"object"==typeof e;var s=e=>!a(e)&&!Array.isArray(e)&&l(e)&&!i(e),u=e=>s(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),p=e=>{let t=e.constructor&&e.constructor.prototype;return s(t)&&t.hasOwnProperty("isPrototypeOf")},f="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(e){let t;let r=Array.isArray(e),n="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(f&&(e instanceof Blob||n))&&(r||s(e))))return e;else if(t=r?[]:{},r||p(e))for(let r in e)e.hasOwnProperty(r)&&(t[r]=h(e[r]));else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],y=e=>void 0===e,g=(e,t,r)=>{if(!t||!s(e))return r;let n=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return y(n)||n===e?y(e[t])?r:e[t]:n},v=e=>"boolean"==typeof e,b=e=>/^\w*$/.test(e),E=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),w=(e,t,r)=>{let n=-1,o=b(t)?[t]:E(t),i=o.length,a=i-1;for(;++n<i;){let t=o[n],i=r;if(n!==a){let r=e[t];i=s(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=i,e=e[t]}};let O={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},S={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},A={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},C=n.createContext(null),x=()=>n.useContext(C),_=e=>{let{children:t,...r}=e;return n.createElement(C.Provider,{value:r},t)};var R=(e,t,r,n=!0)=>{let o={defaultValues:t._defaultValues};for(let i in e)Object.defineProperty(o,i,{get:()=>(t._proxyFormState[i]!==S.all&&(t._proxyFormState[i]=!n||S.all),r&&(r[i]=!0),e[i])});return o};let j="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;var T=e=>"string"==typeof e,k=(e,t,r,n,o)=>T(e)?(n&&t.watch.add(e),g(r,e,o)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),g(r,e))):(n&&(t.watchAll=!0),r);let P=e=>e.render(function(e){let t=x(),{name:r,disabled:o,control:i=t.control,shouldUnregister:a}=e,l=d(i._names.array,r),s=function(e){let t=x(),{control:r=t.control,name:o,defaultValue:i,disabled:a,exact:l}=e||{},s=n.useRef(i),[u,c]=n.useState(r._getWatch(o,s.current));return j(()=>r._subscribe({name:o,formState:{values:!0},exact:l,callback:e=>!a&&c(k(o,r._names,e.values||r._formValues,!1,s.current))}),[o,r,a,l]),n.useEffect(()=>r._removeUnmounted()),u}({control:i,name:r,defaultValue:g(i._formValues,r,g(i._defaultValues,r,e.defaultValue)),exact:!0}),c=function(e){let t=x(),{control:r=t.control,disabled:o,name:i,exact:a}=e||{},[l,s]=n.useState(r._formState),u=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return j(()=>r._subscribe({name:i,formState:u.current,exact:a,callback:e=>{o||s({...r._formState,...e})}}),[i,o,a]),n.useEffect(()=>{u.current.isValid&&r._setValid(!0)},[r]),n.useMemo(()=>R(l,r,u.current,!1),[l,r])}({control:i,name:r,exact:!0}),p=n.useRef(e),f=n.useRef(i.register(r,{...e.rules,value:s,...v(e.disabled)?{disabled:e.disabled}:{}})),m=n.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!g(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!g(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!g(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!g(c.validatingFields,r)},error:{enumerable:!0,get:()=>g(c.errors,r)}}),[c,r]),b=n.useCallback(e=>f.current.onChange({target:{value:u(e),name:r},type:O.CHANGE}),[r]),E=n.useCallback(()=>f.current.onBlur({target:{value:g(i._formValues,r),name:r},type:O.BLUR}),[r,i._formValues]),S=n.useCallback(e=>{let t=g(i._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})},[i._fields,r]),A=n.useMemo(()=>({name:r,value:s,...v(o)||c.disabled?{disabled:c.disabled||o}:{},onChange:b,onBlur:E,ref:S}),[r,o,c.disabled,b,E,S,s]);return n.useEffect(()=>{let e=i._options.shouldUnregister||a;i.register(r,{...p.current.rules,...v(p.current.disabled)?{disabled:p.current.disabled}:{}});let t=(e,t)=>{let r=g(i._fields,e);r&&r._f&&(r._f.mount=t)};if(t(r,!0),e){let e=h(g(i._options.defaultValues,r));w(i._defaultValues,r,e),y(g(i._formValues,r))&&w(i._formValues,r,e)}return l||i.register(r),()=>{(l?e&&!i._state.action:e)?i.unregister(r):t(r,!1)}},[r,i,l,a]),n.useEffect(()=>{i._setDisabledField({disabled:o,name:r})},[o,r,i]),n.useMemo(()=>({field:A,formState:c,fieldState:m}),[A,c,m])}(e));var F=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},D=e=>Array.isArray(e)?e:[e],N=()=>{let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},L=e=>a(e)||!l(e);function M(e,t){if(L(e)||L(t))return e===t;if(i(e)&&i(t))return e.getTime()===t.getTime();let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o of r){let r=e[o];if(!n.includes(o))return!1;if("ref"!==o){let e=t[o];if(i(r)&&i(e)||s(r)&&s(e)||Array.isArray(r)&&Array.isArray(e)?!M(r,e):r!==e)return!1}}return!0}var I=e=>s(e)&&!Object.keys(e).length,$=e=>"file"===e.type,U=e=>"function"==typeof e,H=e=>{if(!f)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},B=e=>"select-multiple"===e.type,W=e=>"radio"===e.type,V=e=>W(e)||o(e),z=e=>H(e)&&e.isConnected;function q(e,t){let r=Array.isArray(t)?t:b(t)?[t]:E(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n<r;)e=y(e)?n++:e[t[n++]];return e}(e,r),o=r.length-1,i=r[o];return n&&delete n[i],0!==o&&(s(n)&&I(n)||Array.isArray(n)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!y(e[t]))return!1;return!0}
132(n))&&q(e,r.slice(0,-1)),e}var G=e=>{for(let t in e)if(U(e[t]))return!0;return!1};function K(e,t={}){let r=Array.isArray(e);if(s(e)||r)for(let r in e)Array.isArray(e[r])||s(e[r])&&!G(e[r])?(t[r]=Array.isArray(e[r])?[]:{},K(e[r],t[r])):a(e[r])||(t[r]=!0);return t}var Z=(e,t)=>(function e(t,r,n){let o=Array.isArray(t);if(s(t)||o)for(let o in t)Array.isArray(t[o])||s(t[o])&&!G(t[o])?y(r)||L(n[o])?n[o]=Array.isArray(t[o])?K(t[o],[]):{...K(t[o])}:e(t[o],a(r)?{}:r[o],n[o]):n[o]=!M(t[o],r[o]);return n})(e,t,K(t));let J={value:!1,isValid:!1},Q={value:!0,isValid:!0};var Y=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!y(e[0].attributes.value)?y(e[0].value)||""===e[0].value?Q:{value:e[0].value,isValid:!0}:Q:J}return J},X=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>y(e)?e:t?""===e?NaN:e?+e:e:r&&T(e)?new Date(e):n?n(e):e;let ee={isValid:!1,value:null};var et=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,ee):ee;function er(e){let t=e.ref;return $(t)?t.files:W(t)?et(e.refs).value:B(t)?[...t.selectedOptions].map(({value:e})=>e):o(t)?Y(e.refs).value:X(y(t.value)?e.ref.value:t.value,e)}var en=(e,t,r,n)=>{let o={};for(let r of e){let e=g(t,r);e&&w(o,r,e._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},eo=e=>e instanceof RegExp,ei=e=>y(e)?e:eo(e)?e.source:s(e)?eo(e.value)?e.value.source:e.value:e,ea=e=>({isOnSubmit:!e||e===S.onSubmit,isOnBlur:e===S.onBlur,isOnChange:e===S.onChange,isOnAll:e===S.all,isOnTouch:e===S.onTouched});let el="AsyncFunction";var es=e=>!!e&&!!e.validate&&!!(U(e.validate)&&e.validate.constructor.name===el||s(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===el)),eu=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),ec=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let ed=(e,t,r,n)=>{for(let o of r||Object.keys(e)){let r=g(e,o);if(r){let{_f:e,...i}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!n||e.ref&&t(e.ref,e.name)&&!n)return!0;if(ed(i,t))break}else if(s(i)&&ed(i,t))break}}};function ep(e,t,r){let n=g(e,r);if(n||b(r))return{error:n,name:r};let o=r.split(".");for(;o.length;){let n=o.join("."),i=g(t,n),a=g(e,n);if(i&&!Array.isArray(i)&&r!==n)break;if(a&&a.type)return{name:n,error:a};o.pop()}return{name:r}}var ef=(e,t,r,n)=>{r(e);let{name:o,...i}=e;return I(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(e=>t[e]===(!n||S.all))},eh=(e,t,r)=>!e||!t||e===t||D(e).some(e=>e&&(r?e===t:e.startsWith(t)||t.startsWith(e))),em=(e,t,r,n,o)=>!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?!n.isOnChange:!o.isOnChange)||e),ey=(e,t)=>!m(g(e,t)).length&&q(e,t),eg=(e,t,r)=>{let n=D(g(e,r));return w(n,"root",t[r]),w(e,r,n),e},ev=e=>T(e);function eb(e,t,r="validate"){if(ev(e)||Array.isArray(e)&&e.every(ev)||v(e)&&!e)return{type:r,message:ev(e)?e:"",ref:t}}var eE=e=>s(e)&&!eo(e)?e:{value:e,message:""},ew=async(e,t,r,n,i,l)=>{let{ref:u,refs:c,required:d,maxLength:p,minLength:f,min:h,max:m,pattern:b,validate:E,name:w,valueAsNumber:O,mount:S}=e._f,C=g(r,w);if(!S||t.has(w))return{};let x=c?c[0]:u,_=e=>{i&&x.reportValidity&&(x.setCustomValidity(v(e)?"":e||""),x.reportValidity())},R={},j=W(u),k=o(u),P=(O||$(u))&&y(u.value)&&y(C)||H(u)&&""===u.value||""===C||Array.isArray(C)&&!C.length,D=F.bind(null,w,n,R),N=(e,t,r,n=A.maxLength,o=A.minLength)=>{let i=e?t:r;R[w]={type:e?n:o,message:i,ref:u,...D(e?n:o,i)}};if(l?!Array.isArray(C)||!C.length:d&&(!(j||k)&&(P||a(C))||v(C)&&!C||k&&!Y(c).isValid||j&&!et(c).isValid)){let{value:e,message:t}=ev(d)?{value:!!d,message:d}:eE(d);if(e&&(R[w]={type:A.required,message:t,ref:x,...D(A.required,t)},!n))return _(t),R}if(!P&&(!a(h)||!a(m))){let e,t;let r=eE(m),o=eE(h);if(a(C)||isNaN(C)){let n=u.valueAsDate||new Date(C),i=e=>new Date(new Date().toDateString()+" "+e),a="time"==u.type,l="week"==u.type;T(r.value)&&C&&(e=a?i(C)>i(r.value):l?C>r.value:n>new Date(r.value)),T(o.value)&&C&&(t=a?i(C)<i(o.value):l?C<o.value:n<new Date(o.value))}else{let n=u.valueAsNumber||(C?+C:C);a(r.value)||(e=n>r.value),a(o.value)||(t=n<o.value)}if((e||t)&&(N(!!e,r.message,o.message,A.max,A.min),!n))return _(
132R[w].message),R}if((p||f)&&!P&&(T(C)||l&&Array.isArray(C))){let e=eE(p),t=eE(f),r=!a(e.value)&&C.length>+e.value,o=!a(t.value)&&C.length<+t.value;if((r||o)&&(N(r,e.message,t.message),!n))return _(R[w].message),R}if(b&&!P&&T(C)){let{value:e,message:t}=eE(b);if(eo(e)&&!C.match(e)&&(R[w]={type:A.pattern,message:t,ref:u,...D(A.pattern,t)},!n))return _(t),R}if(E){if(U(E)){let e=eb(await E(C,r),x);if(e&&(R[w]={...e,...D(A.validate,e.message)},!n))return _(e.message),R}else if(s(E)){let e={};for(let t in E){if(!I(e)&&!n)break;let o=eb(await E[t](C,r),x,t);o&&(e={...o,...D(t,o.message)},_(o.message),n&&(R[w]=e))}if(!I(e)&&(R[w]={ref:x,...e},!n))return R}}return _(!0),R};let eO={mode:S.onSubmit,reValidateMode:S.onChange,shouldFocusError:!0};function eS(e={}){let t=n.useRef(void 0),r=n.useRef(void 0),[l,c]=n.useState({isDirty:!1,isValidating:!1,isLoading:U(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:U(e.defaultValues)?void 0:e.defaultValues});!t.current&&(t.current={...e.formControl?e.formControl:function(e={}){let t,r={...eO,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:U(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},l={},c=(s(r.defaultValues)||s(r.values))&&h(r.defaultValues||r.values)||{},p=r.shouldUnregister?{}:h(c),b={action:!1,mount:!1,watch:!1},E={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},A=0,C={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={...C},_={array:N(),state:N()},R=r.criteriaMode===S.all,j=e=>t=>{clearTimeout(A),A=setTimeout(e,t)},P=async e=>{if(!r.disabled&&(C.isValid||x.isValid||e)){let e=r.resolver?I((await J()).errors):await Y(l,!0);e!==n.isValid&&_.state.next({isValid:e})}},F=(e,t)=>{!r.disabled&&(C.isValidating||C.validatingFields||x.isValidating||x.validatingFields)&&((e||Array.from(E.mount)).forEach(e=>{e&&(t?w(n.validatingFields,e,t):q(n.validatingFields,e))}),_.state.next({validatingFields:n.validatingFields,isValidating:!I(n.validatingFields)}))},L=(e,t)=>{w(n.errors,e,t),_.state.next({errors:n.errors})},W=(e,t,r,n)=>{let o=g(l,e);if(o){let i=g(p,e,y(r)?g(c,e):r);y(i)||n&&n.defaultChecked||t?w(p,e,t?i:er(o._f)):eo(e,i),b.mount&&P()}},G=(e,t,o,i,a)=>{let l=!1,s=!1,u={name:e};if(!r.disabled){if(!o||i){(C.isDirty||x.isDirty)&&(s=n.isDirty,n.isDirty=u.isDirty=ee(),l=s!==u.isDirty);let r=M(g(c,e),t);s=!!g(n.dirtyFields,e),r?q(n.dirtyFields,e):w(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,l=l||(C.dirtyFields||x.dirtyFields)&&!r!==s}if(o){let t=g(n.touchedFields,e);t||(w(n.touchedFields,e,o),u.touchedFields=n.touchedFields,l=l||(C.touchedFields||x.touchedFields)&&t!==o)}l&&a&&_.state.next(u)}return l?u:{}},K=(e,o,i,a)=>{let l=g(n.errors,e),s=(C.isValid||x.isValid)&&v(o)&&n.isValid!==o;if(r.delayError&&i?(t=j(()=>L(e,i)))(r.delayError):(clearTimeout(A),t=null,i?w(n.errors,e,i):q(n.errors,e)),(i?!M(l,i):l)||!I(a)||s){let t={...a,...s&&v(o)?{isValid:o}:{},errors:n.errors,name:e};n={...n,...t},_.state.next(t)}},J=async e=>{F(e,!0);let t=await r.resolver(p,r.context,en(e||E.mount,l,r.criteriaMode,r.shouldUseNativeValidation));return F(e),t},Q=async e=>{let{errors:t}=await J(e);if(e)for(let r of e){let e=g(t,r);e?w(n.errors,r,e):q(n.errors,r)}else n.errors=t;return t},Y=async(e,t,o={valid:!0})=>{for(let i in e){let a=e[i];if(a){let{_f:e,...l}=a;if(e){let l=E.array.has(e.name),s=a._f&&es(a._f);s&&C.validatingFields&&F([i],!0);let u=await ew(a,E.disabled,p,R,r.shouldUseNativeValidation&&!t,l);if(s&&C.validatingFields&&F([i]),u[e.name]&&(o.valid=!1,t))break;t||(g(u,e.name)?l?eg(n.errors,u,e.name):w(n.errors,e.name,u[e.name]):q(n.errors,e.name))}I(l)||await Y(l,t,o)}}return o.valid},ee=(e,t)=>!r.disabled&&(e&&t&&w(p,e,t),!M(eA(),c)),et=(e,t,r)=>k(e,E,{...b.mount?p:y(t)?c:T(e)?{[e]:t}:t},r,t),eo=(e,t,r={})=>{let n=g(l,e),i=t;if(n){let r=n._f;r&&(r.disabled||w(p,e,X(t,r)),i=H(r.ref)&&a(t)?"":t,B(r.ref)?[...r.ref.options].forEac
132h(e=>e.selected=i.includes(e.value)):r.refs?o(r.ref)?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(i)?e.checked=!!i.find(t=>t===e.value):e.checked=i===e.value||!!i)}):r.refs.forEach(e=>e.checked=e.value===i):$(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||_.state.next({name:e,values:h(p)})))}(r.shouldDirty||r.shouldTouch)&&G(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&eS(e)},el=(e,t,r)=>{for(let n in t){if(!t.hasOwnProperty(n))return;let o=t[n],a=`${e}.${n}`,u=g(l,a);(E.array.has(e)||s(o)||u&&!u._f)&&!i(o)?el(a,o,r):eo(a,o,r)}},ev=(e,t,r={})=>{let o=g(l,e),i=E.array.has(e),s=h(t);w(p,e,s),i?(_.array.next({name:e,values:h(p)}),(C.isDirty||C.dirtyFields||x.isDirty||x.dirtyFields)&&r.shouldDirty&&_.state.next({name:e,dirtyFields:Z(c,p),isDirty:ee(e,s)})):!o||o._f||a(s)?eo(e,s,r):el(e,s,r),ec(e,E)&&_.state.next({...n}),_.state.next({name:b.mount?e:void 0,values:h(p)})},eb=async e=>{b.mount=!0;let o=e.target,a=o.name,s=!0,c=g(l,a),d=e=>{s=Number.isNaN(e)||i(e)&&isNaN(e.getTime())||M(e,g(p,a,e))},f=ea(r.mode),m=ea(r.reValidateMode);if(c){let i,y;let v=o.type?er(c._f):u(e),b=e.type===O.BLUR||e.type===O.FOCUS_OUT,S=!eu(c._f)&&!r.resolver&&!g(n.errors,a)&&!c._f.deps||em(b,g(n.touchedFields,a),n.isSubmitted,m,f),A=ec(a,E,b);w(p,a,v),b?(c._f.onBlur&&c._f.onBlur(e),t&&t(0)):c._f.onChange&&c._f.onChange(e);let j=G(a,v,b),T=!I(j)||A;if(b||_.state.next({name:a,type:e.type,values:h(p)}),S)return(C.isValid||x.isValid)&&("onBlur"===r.mode?b&&P():b||P()),T&&_.state.next({name:a,...A?{}:j});if(!b&&A&&_.state.next({...n}),r.resolver){let{errors:e}=await J([a]);if(d(v),s){let t=ep(n.errors,l,a),r=ep(e,l,t.name||a);i=r.error,a=r.name,y=I(e)}}else F([a],!0),i=(await ew(c,E.disabled,p,R,r.shouldUseNativeValidation))[a],F([a]),d(v),s&&(i?y=!1:(C.isValid||x.isValid)&&(y=await Y(l,!0)));s&&(c._f.deps&&eS(c._f.deps),K(a,y,i,j))}},eE=(e,t)=>{if(g(n.errors,t)&&e.focus)return e.focus(),1},eS=async(e,t={})=>{let o,i;let a=D(e);if(r.resolver){let t=await Q(y(e)?e:a);o=I(t),i=e?!a.some(e=>g(t,e)):o}else e?((i=(await Promise.all(a.map(async e=>{let t=g(l,e);return await Y(t&&t._f?{[e]:t}:t)}))).every(Boolean))||n.isValid)&&P():i=o=await Y(l);return _.state.next({...!T(e)||(C.isValid||x.isValid)&&o!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:o}:{},errors:n.errors}),t.shouldFocus&&!i&&ed(l,eE,e?a:E.mount),i},eA=e=>{let t={...b.mount?p:c};return y(e)?t:T(e)?g(t,e):e.map(e=>g(t,e))},eC=(e,t)=>({invalid:!!g((t||n).errors,e),isDirty:!!g((t||n).dirtyFields,e),error:g((t||n).errors,e),isValidating:!!g(n.validatingFields,e),isTouched:!!g((t||n).touchedFields,e)}),ex=(e,t,r)=>{let o=(g(l,e,{_f:{}})._f||{}).ref,{ref:i,message:a,type:s,...u}=g(n.errors,e)||{};w(n.errors,e,{...u,...t,ref:o}),_.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&o&&o.focus&&o.focus()},e_=e=>_.state.subscribe({next:t=>{eh(e.name,t.name,e.exact)&&ef(t,e.formState||C,eN,e.reRenderRoot)&&e.callback({values:{...p},...n,...t})}}).unsubscribe,eR=(e,t={})=>{for(let o of e?D(e):E.mount)E.mount.delete(o),E.array.delete(o),t.keepValue||(q(l,o),q(p,o)),t.keepError||q(n.errors,o),t.keepDirty||q(n.dirtyFields,o),t.keepTouched||q(n.touchedFields,o),t.keepIsValidating||q(n.validatingFields,o),r.shouldUnregister||t.keepDefaultValue||q(c,o);_.state.next({values:h(p)}),_.state.next({...n,...t.keepDirty?{isDirty:ee()}:{}}),t.keepIsValid||P()},ej=({disabled:e,name:t})=>{(v(e)&&b.mount||e||E.disabled.has(t))&&(e?E.disabled.add(t):E.disabled.delete(t))},eT=(e,t={})=>{let n=g(l,e),o=v(t.disabled)||v(r.disabled);return w(l,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),E.mount.add(e),n?ej({disabled:v(t.disabled)?t.disabled:r.disabled,name:e}):W(e,!0,t.value),{...o?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:ei(t.min),max:ei(t.max),minLength:ei(t.minLength),maxLength:ei(t.maxLength),pattern:ei(t.pattern)}:{},name:e,onChange:eb,onBlur:eb,ref:o=>{if(o){eT(e,t),n=g(l,e);let r=y(o.value)&&o.querySelectorAll&&o.querySelectorAll("input,select,textarea")[0]||o,i=V(r),a=n._f.refs||[];(i?a.find(e=>e===r):r===n._f.ref)||(w(l,e,{_f:{...n._f,...i?{refs:[...a.filter(z),r,...Array.isArray(g(c,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),W(e,!1,void 0,r))}else(n=g(l,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(E.array,e)&&b.action)&&E.unMount.add(e)}}},ek=()=>r.shouldFocusError&&ed(l,eE,E.mount),eP=(e,t)=>async o=>{let i;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let a=h(p);if(_.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await J();n.errors=e,a=t}else await Y(l);
132if(E.disabled.size)for(let e of E.disabled)w(a,e,void 0);if(q(n.errors,"root"),I(n.errors)){_.state.next({errors:{}});try{await e(a,o)}catch(e){i=e}}else t&&await t({...n.errors},o),ek(),setTimeout(ek);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:I(n.errors)&&!i,submitCount:n.submitCount+1,errors:n.errors}),i)throw i},eF=(e,t={})=>{let o=e?h(e):c,i=h(o),a=I(e),s=a?c:i;if(t.keepDefaultValues||(c=o),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...E.mount,...Object.keys(Z(c,p))])))g(n.dirtyFields,e)?w(s,e,g(p,e)):ev(e,g(s,e));else{if(f&&y(e))for(let e of E.mount){let t=g(l,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(H(e)){let t=e.closest("form");if(t){t.reset();break}}}}for(let e of E.mount)ev(e,g(s,e))}p=h(s),_.array.next({values:{...s}}),_.state.next({values:{...s}})}E={mount:t.keepDirtyValues?E.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!C.isValid||!!t.keepIsValid||!!t.keepDirtyValues,b.watch=!!r.shouldUnregister,_.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!a&&(t.keepDirty?n.isDirty:!!(t.keepDefaultValues&&!M(e,c))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:a?{}:t.keepDirtyValues?t.keepDefaultValues&&p?Z(c,p):n.dirtyFields:t.keepDefaultValues&&e?Z(c,e):t.keepDirty?n.dirtyFields:{},touchedFields:t.keepTouched?n.touchedFields:{},errors:t.keepErrors?n.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},eD=(e,t)=>eF(U(e)?e(p):e,t),eN=e=>{n={...n,...e}},eL={control:{register:eT,unregister:eR,getFieldState:eC,handleSubmit:eP,setError:ex,_subscribe:e_,_runSchema:J,_getWatch:et,_getDirty:ee,_setValid:P,_setFieldArray:(e,t=[],o,i,a=!0,s=!0)=>{if(i&&o&&!r.disabled){if(b.action=!0,s&&Array.isArray(g(l,e))){let t=
132o(g(l,e),i.argA,i.argB);a&&w(l,e,t)}if(s&&Array.isArray(g(n.errors,e))){let t=o(g(n.errors,e),i.argA,i.argB);a&&w(n.errors,e,t),ey(n.errors,e)}if((C.touchedFields||x.touchedFields)&&s&&Array.isArray(g(n.touchedFields,e))){let t=o(g(n.touchedFields,e),i.argA,i.argB);a&&w(n.touchedFields,e,t)}(C.dirtyFields||x.dirtyFields)&&(n.dirtyFields=Z(c,p)),_.state.next({name:e,isDirty:ee(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else w(p,e,t)},_setDisabledField:ej,_setErrors:e=>{n.errors=e,_.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>m(g(b.mount?p:c,e,r.shouldUnregister?g(c,e,[]):[])),_reset:eF,_resetDefaultValues:()=>U(r.defaultValues)&&r.defaultValues().then(e=>{eD(e,r.resetOptions),_.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of E.unMount){let t=g(l,e);t&&(t._f.refs?t._f.refs.every(e=>!z(e)):!z(t._f.ref))&&eR(e)}E.unMount=new Set},_disableForm:e=>{v(e)&&(_.state.next({disabled:e}),ed(l,(t,r)=>{let n=g(l,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach(t=>{t.disabled=n._f.disabled||e}))},0,!1))},_subjects:_,_proxyFormState:C,get _fields(){return l},get _formValues(){return p},get _state(){return b},set _state(value){b=value},get _defaultValues(){return c},get _names(){return E},set _names(value){E=value},get _formState(){return n},get _options(){return r},set _options(value){r={...r,...value}}},subscribe:e=>(b.mount=!0,x={...x,...e.formState},e_({...e,formState:x})),trigger:eS,register:eT,handleSubmit:eP,watch:(e,t)=>U(e)?_.state.subscribe({next:r=>e(et(void 0,t),r)}):et(e,t,!0),setValue:ev,getValues:eA,reset:eD,resetField:(e,t={})=>{g(l,e)&&(y(t.defaultValue)?ev(e,h(g(c,e))):(ev(e,t.defaultValue),w(c,e,h(t.defaultValue))),t.keepTouched||q(n.touchedFields,e),t.keepDirty||(q(n.dirtyFields,e),n.isDirty=t.defaultValue?ee(e,h(g(c,e))):ee()),!t.keepError&&(q(n.errors,e),C.isValid&&P()),_.state.next({...n}))},clearErrors:e=>{e&&D(e).forEach(e=>q(n.errors,e)),_.state.next({errors:e?n.errors:{}})},unregister:eR,setError:ex,setFocus:(e,t={})=>{let r=g(l,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&U(e.select)&&e.select())}},getFieldState:eC};return{...eL,formControl:eL}}(e),formState:l},e.formControl&&e.defaultValues&&!U(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));let p=t.current.control;return p._options=e,j(()=>{let e=p._subscribe({formState:p._proxyFormState,callback:()=>c({...p._formState}),reRenderRoot:!0});return c(e=>({...e,isReady:!0})),p._formState.isReady=!0,e},[p]),n.useEffect(()=>p._disableForm(e.disabled),[p,e.disabled]),n.useEffect(()=>{e.mode&&(p._options.mode=e.mode),e.reValidateMode&&(p._options.reValidateMode=e.reValidateMode),e.errors&&!I(e.errors)&&p._setErrors(e.errors)},[p,e.errors,e.mode,e.reValidateMode]),n.useEffect(()=>{e.shouldUnregister&&p._subjects.state.next({values:p._getWatch()})},[p,e.shouldUnregister]),n.useEffect(()=>{if(p._proxyFormState.isDirty){let e=p._getDirty();e!==l.isDirty&&p._subjects.state.next({isDirty:e})}},[p,l.isDirty]),n.useEffect(()=>{e.values&&!M(e.values,r.current)?(p._reset(e.values,p._options.resetOptions),r.current=e.values,c(e=>({...e}))):p._resetDefaultValues()},[p,e.values]),n.useEffect(()=>{p._state.mount||(p._setValid(),p._state.mount=!0),p._state.watch&&(p._state.watch=!1,p._subjects.state.next({...p._formState})),p._removeUnmounted()}),t.current.formState=R(l,p),t.current}},8028:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(2784);let o=n.createContext({});function i({count:e=1,wrapper:t,className:r,containerClassName:i,containerTestId:a,circle:l=!1,style:s,...u}){var c,d,p;let f=n.useContext(o),h={...u};for(let[e,t]of Object.entries(u))void 0===t&&delete h[e];let m={...f,...h,circle:l},y={...s,...function({baseColor:e,highlightColor:t,width:r,height:n,borderRadius:o,circle:i,direction:a,duration:l,enableAnimation:s=!0,customHighlightBackgroun
132d:u}){let c={};return"rtl"===a&&(c["--animation-direction"]="reverse"),"number"==typeof l&&(c["--animation-duration"]=`${l}s`),s||(c["--pseudo-element-display"]="none"),("string"==typeof r||"number"==typeof r)&&(c.width=r),("string"==typeof n||"number"==typeof n)&&(c.height=n),("string"==typeof o||"number"==typeof o)&&(c.borderRadius=o),i&&(c.borderRadius="50%"),void 0!==e&&(c["--base-color"]=e),void 0!==t&&(c["--highlight-color"]=t),"string"==typeof u&&(c["--custom-highlight-background"]=u),c}(m)},g="react-loading-skeleton";r&&(g+=` ${r}`);let v=null!==(c=m.inline)&&void 0!==c&&c,b=[],E=Math.ceil(e);for(let t=0;t<E;t++){let r=y;if(E>e&&t===E-1){let t=null!==(d=r.width)&&void 0!==d?d:"100%",n=e%1,o="number"==typeof t?t*n:`calc(${t} * ${n})`;r={...r,width:o}}let o=n.createElement("span",{className:g,style:r,key:t},"â");v?b.push(o):b.push(n.createElement(n.Fragment,{key:t},o,n.createElement("br",null)))}return n.createElement("span",{className:i,"data-testid":a,"aria-live":"polite","aria-busy":null===(p=m.enableAnimation)||void 0===p||p},t?b.map((e,r)=>n.createElement(t,{key:r},e)):b)}},5384:function(e,t,r){"use strict";r.d(t,{u:function(){return ej}});var n=r(2784);let o=Math.min,i=Math.max,a=Math.round,l=Math.floor,s=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function y(e){return["top","bottom"].includes(p(e))?"y":"x"}function g(e){return e.replace(/start|end/g,e=>c[e])}function v(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function b(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function E(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function w(e,t,r){let n,{reference:o,floating:i}=e,a=y(t),l=h(y(t)),s=m(l),u=p(t),c="y"===a,d=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,v=o[s]/2-i[s]/2;switch(u){case"top":n={x:d,y:o.y-i.height};break;case"bottom":n={x:d,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:g};break;case"left":n={x:o.x-i.width,y:g};break;default:n={x:o.x,y:o.y}}switch(f(t)){case"start":n[l]-=v*(r&&c?-1:1);break;case"end":n[l]+=v*(r&&c?-1:1)}return n}let O=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,l=i.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=w(u,n,s),p=n,f={},h=0;for(let r=0;r<l.length;r++){let{name:i,fn:m}=l[r],{x:y,y:g,data:v,reset:b}=await m({x:c,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:f,re
132cts:u,platform:a,elements:{reference:e,floating:t}});c=null!=y?y:c,d=null!=g?g:d,f={...f,[i]:{...f[i],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:d}=w(u,p,s)),r=-1)}return{x:c,y:d,placement:p,strategy:o,middlewareData:f}};async function S(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=d(t,e),m=b(h),y=l[f?"floating"===p?"reference":"floating":p],g=E(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(y)))||r?y:y.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===p?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),O=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},S=E(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:w,strategy:s}):v);return{top:(g.top-S.top+m.top)/O.y,bottom:(S.bottom-g.bottom+m.bottom)/O.y,left:(g.left-S.left+m.left)/O.x,right:(S.right-g.right+m.right)/O.x}}async function A(e,t){let{placement:r,platform:n,elements:o}=e,i=await (null==n.isRTL?void 0:n.isRTL(o.floating)),a=p(r),l=f(r),s="y"===y(r),u=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,h=d(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&"number"==typeof v&&(g="end"===l?-1*v:v),s?{x:g*c,y:m*u}:{x:m*u,y:g*c}}function C(){return"undefined"!=typeof window}function x(e){return j(e)?(e.nodeName||"").toLowerCase():"#document"}function _(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function R(e){var t;return null==(t=(j(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function j(e){return!!C()&&(e instanceof Node||e instanceof _(e).Node)}function T(e){return!!C()&&(e instanceof Element||e instanceof _(e).Element)}function k(e){return!!C()&&(e instanceof HTMLElement||e instanceof _(e).HTMLElement)}function P(e){return!!C()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof _(e).ShadowRoot)}function F(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=I(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function D(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function N(e){let t=L(),r=T(e)?I(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(r.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(r.contain||"").includes(e))}function L(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function M(e){return["html","body","#document"].includes(x(e))}function I(e){return _(e).getComputedStyle(e)}function $(e){return T(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U(e){if("html"===x(e))return e;let t=e.assignedSlot||e.parentNode||P(e)&&e.host||R(e);return P(t)?t.host:t}function H(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=U(t);return M(r)?t.ownerDocument?t.ownerDocument.body:t.body:k(r)&&F(r)?r:e(r)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=_(o);if(i){let e=B(a);return t.concat(a,a.visualViewport||[],F(o)?o:[],e&&r?H(e):[])}return t.concat(o,H(o,[],r))}function B(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function W(e){let t=I(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=k(e),i=o?e.offsetWidth:r,l=o?e.offsetHeight:n,s=a(r)!==i||a(n)!==l;return s&&(r=i,n=l),{width:r,height:n,$:s}}function V(e){return T(e)?e:e.contextElement}function z(e){let t=V(e);if(!k(t))return s(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=W(t),l=(i?a(r.width):r.width)/n,u=(i?a(r.height):r.height)/o;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}let q=s(0);function G(e){let t=_(e);
132return L()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:q}function K(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),a=V(e),l=s(1);t&&(n?T(n)&&(l=z(n)):l=z(e));let u=(void 0===(o=r)&&(o=!1),n&&(!o||n===_(a))&&o)?G(a):s(0),c=(i.left+u.x)/l.x,d=(i.top+u.y)/l.y,p=i.width/l.x,f=i.height/l.y;if(a){let e=_(a),t=n&&T(n)?_(n):n,r=e,o=B(r);for(;o&&n&&t!==r;){let e=z(o),t=o.getBoundingClientRect(),n=I(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,d*=e.y,p*=e.x,f*=e.y,c+=i,d+=a,o=B(r=_(o))}}return E({width:p,height:f,x:c,y:d})}function Z(e,t){let r=$(e).scrollLeft;return t?t.left+r:K(R(e)).left+r}function J(e,t,r){void 0===r&&(r=!1);let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:Z(e,n)),y:n.top+t.scrollTop}}function Q(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=_(e),n=R(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;let e=L();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,r);else if("document"===t)n=function(e){let t=R(e),r=$(e),n=e.ownerDocument.body,o=i(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=i(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),l=-r.scrollLeft+Z(e),s=-r.scrollTop;return"rtl"===I(n).direction&&(l+=i(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:l,y:s}}(R(e));else if(T(t))n=function(e,t){let r=K(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=k(e)?z(e):s(1),a=e.clientWidth*i.x;return{width:a,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{let r=G(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return E(n)}function Y(e){return"static"===I(e).position}function X(e,t){if(!k(e)||"fixed"===I(e).position)return null;if(t)return t(e);let r=e.offsetParent;return R(e)===r&&(r=r.ownerDocument.body),r}function ee(e,t){let r=_(e);if(D(e))return r;if(!k(e)){let t=U(e);for(;t&&!M(t);){if(T(t)&&!Y(t))return t;t=U(t)}return r}let n=X(e,t);for(;n&&["table","td","th"].includes(x(n))&&Y(n);)n=X(n,t);return n&&M(n)&&Y(n)&&!N(n)?r:n||function(e){let t=U(e);for(;k(t)&&!M(t);){if(N(t))return t;if(D(t))break;t=U(t)}return null}(e)||r}let et=async function(e){let t=this.getOffsetParent||ee,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=k(t),o=R(t),i="fixed"===r,a=K(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=s(0);if(n||!n&&!i){if(("body"!==x(t)||F(o))&&(l=$(t)),n){let e=K(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=Z(o))}i&&!n&&o&&(u.x=Z(o));let c=!o||n||i?s(0):J(o,l);return{x:a.left+l.scrollLeft-u.x-c.x,y:a.top+l.scrollTop-u.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},er={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,i="fixed"===o,a=R(n),l=!!t&&D(t.floating);if(n===a||l&&i)return r;let u={scrollLeft:0,scrollTop:0},c=s(1),d=s(0),p=k(n);if((p||!p&&!i)&&(("body"!==x(n)||F(a))&&(u=$(n)),k(n))){let e=K(n);c=z(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}let f=!a||p||i?s(0):J(a,u,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+d.x+f.x,y:r.y*c.y-u.scrollTop*c.y+d.y+f.y}},getDocumentElement:R,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,l=[..."clippingAncestors"===r?D(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=H(e,[],!1).filter(e=>T(e)&&"body"!==x(e)),o=null,i="fixed"===I(e).position,a=i?U(e):e;for(;T(a)&&!M(a);){let t=I(a),r=N(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||F(a)&&!r&&function e(t,r){let n=U(t);return!(n===r||!T(n)||M(n))&&("fixed"===I(n).position||e(n,r))}(e,a))?n=n.filter(e=>e!==a):o=t,a=U(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],s=l[0],u=l.reduce((e,r)=>{let n=Q(t,r,a);return e.top=i(n.top,e.top),e.right=o(n.right,e.right),e.bottom=o(n.bottom,e.bottom),e.left=i(n.left,e.left),e},Q(t,s,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:ee,getElementRects:et,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=W(e);return{width:t,height:r}},getScale:z,isElement:T,isRTL:function(e){return"rtl"===I(e).direction}};function en(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:o,y:i,placement:a,middlewareData:l}=t,s=await A(t,e);return a===(null==(r=l.offset)?void 0:r.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},ei=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:a}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=d(e,t),f={x:r,y:n},m=await S(t,c),g=y(p(a)),v=h(g),b=f[v],E=f[g];if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",r=b+m[e],n=b-m[t];b=i(r,o(b,n))}if(s){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",r=E+m[e],n=E-m[t];E=i(r,o(E,n))}let w=u.fn({...t,[v]:b,[g]:E});return{...w,data:{x:w.x-r,y:w.y-n,enabled:{[v]:l,[g]:s}}}}}},ea=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,o,i,a;let{placement:l,middlewareData:s,rects:u,initialPlacement:c,platform:b,elements:E}=t,{mainAxis:w=!0,crossAxis:O=!0,fallbackPlacements:A,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:_=!0,...R}=d(e,t);if(null!=(r=s.arrow)&&r.alignmentOffset)return{};let j=p(l),T=y(c),k=p(c)===c,P=await (null==b.isRTL?void 0:b.isRTL(E.floating)),F=A||(k||!_?[v(c)]:function(e){let t=v(e);return[g(e),t,g(t)]}(c)),D="none"!==x;!A&&D&&F.push(...function(e,t,r,n){let o=f(e),i=function(e,t,r){let n=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(r)return t?o:n;return t?n:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(g)))),i}(c,_,x,P));let N=[c,...F],L=await S(t,R),M=[],I=(null==(n=s.flip)?void 0:n.overflows)||[];if(w&&M.push(L[j]),O){let e=function(e,t,r){void 0===r&&(r=!1);let n=f(e),o=h(y(e)),i=m(o),a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=v(a)),[a,v(a)]}(l,u,P);M.push(L[e[0]],L[e[1]])}if(I=[...I,{placement:l,overflows:M}],!M.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=N[e];if(t&&(!("alignment"===O&&T!==y(t))||I.every(e=>e.overflows[0]>0&&y(e.placement)===T)))return{data:{index:e,overflows:I},reset:{placement:t}};let r=null==(i=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>
132e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(C){case"bestFit":{let e=null==(a=I.filter(e=>{if(D){let t=y(e.placement);return t===T||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(r=e);break}case"initialPlacement":r=c}if(l!==r)return{reset:{placement:r}}}return{}}}},el=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:a,rects:l,platform:s,elements:u,middlewareData:c}=t,{element:p,padding:g=0}=d(e,t)||{};if(null==p)return{};let v=b(g),E={x:r,y:n},w=h(y(a)),O=m(w),S=await s.getDimensions(p),A="y"===w,C=A?"clientHeight":"clientWidth",x=l.reference[O]+l.reference[w]-E[w]-l.floating[O],_=E[w]-l.reference[w],R=await (null==s.getOffsetParent?void 0:s.getOffsetParent(p)),j=R?R[C]:0;j&&await (null==s.isElement?void 0:s.isElement(R))||(j=u.floating[C]||l.floating[O]);let T=j/2-S[O]/2-1,k=o(v[A?"top":"left"],T),P=o(v[A?"bottom":"right"],T),F=j-S[O]-P,D=j/2-S[O]/2+(x/2-_/2),N=i(k,o(D,F)),L=!c.arrow&&null!=f(a)&&D!==N&&l.reference[O]/2-(D<k?k:P)-S[O]/2<0,M=L?D<k?D-k:D-F:0;return{[w]:E[w]+M,data:{[w]:N,centerOffset:D-N-M,...L&&{alignmentOffset:M}},reset:L}}}),es=(e,t,r)=>{let n=new Map,o={platform:er,...r},i={...o.platform,_c:n};return O(e,t,{...o,platform:i})};var eu=r(2524),ec=r(4406);let ed={core:!1,base:!1};function ep({css:e,id:t="react-tooltip-base-styles",type:r="base",ref:n}){var o,i;if(!e||"undefined"==typeof document||ed[r]||"core"===r&&void 0!==ec&&(null===(o=null==ec?void 0:ec.env)||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_CORE_STYLES)||"base"!==r&&void 0!==ec&&(null===(i=null==ec?void 0:ec.env)||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===r&&(t="react-tooltip-core-styles"),n||(n={});let{insertAt:a}=n;if(document.getElementById(t))return;let l=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.id=t,s.type="text/css","top"===a&&l.firstChild?l.insertBefore(s,l.firstChild):l.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e)),ed[r]=!0}let ef=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:n="top",offset:o=10,strategy:i="absolute",middlewares:a=[eo(Number(o)),ea({fallbackAxisSideDirection:"start"}),ei({padding:5})],border:l})=>e&&null!==t?r?(a.push(el({element:r,padding:5})),es(e,t,{placement:n,strategy:i,middleware:a}).then(({x:e,y:t,placement:r,middlewareData:n})=>{var o,i;let a={left:`${e}px`,top:`${t}px`,border:l},{x:s,y:u}=null!==(o=n.arrow)&&void 0!==o?o:{x:0,y:0},c=null!==(i=({top:"bottom",right:"left",bottom:"top",left:"right"})[r.split("-")[0]])&&void 0!==i?i:"bottom",d=0;if(l){let e=`${l}`.match(/(\d+)px/);d=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:a,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=u?`${u}px`:"",right:"",bottom:"",...l&&{borderBottom:l,borderRight:l},[c]:`-${4+d}px`},place:r}})):es(e,t,{placement:"bottom",strategy:i,middleware:a}).then(({x:e,y:t,placement:r})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:r})):{tooltipStyles:{},tooltipArrowStyles:{},place:n},eh=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),em=(e,t,r)=>{let n=null,o=function(...o){let i=()=>{n=null,r||e.apply(this,o)};r&&!n&&(e.apply(this,o),n=setTimeout(i,t)),r||(n&&clearTimeout(n),n=setTimeout(i,t))};return o.cancel=()=>{n&&(clearTimeout(n),n=null)},o},ey=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,eg=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,r)=>eg(e,t[r]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!ey(e)||!ey(t))return e===t;let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(r=>eg(e[r],t[r]))},ev=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(e=>{let r=t.getPropertyValue(e);return"auto"===r||"scroll"===r})},eb=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(ev(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},eE="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,ew=e=>{e.current&&(clearTimeout(e.current),e.current=null)},eO={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},eS=(0,n.createContext)({getTooltipData:()=>eO});function eA(e="DEFAULT_TOOLTIP_ID"){return(0,n.useContext)(eS).getTooltipData(e)}var eC={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},ex={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};let e_=({forwardRef:e,id:t,className:r,classNameArrow:a,variant:s="dark",anchorId:u,anchorSelect:c,place:d="top",offset:p=10,events:f=["hover"],openOnClick:h=!1,positionStrategy:m="absolute",middlewares:y,wrapper:g,delayShow:v=0,delayHide:b=0,float:E=!1,hidden:w=!1,noArrow:O=!1,clickable:S=!1,closeOnEsc:A=!1,closeOnScroll:C=!1,closeOnResize:x=!1,openEvents:_,closeEvents:j,globalCloseEvents:T,imperativeModeOnly:k,style:P,position:F,afterShow:D,afterHide:N,disableTooltip:L,content:M,contentWrapperRef:I,isOpen:$,defaultIsOpen:U=!1,setIsOpen:B,activeAnchor:W,setActiveAnchor:z,border:q,opacity:G,arrowColor:Z,role:J="tooltip"})=>{var Q;let Y=(0,n.useRef)(null),X=(0,n.useRef)(null),ee=(0,n.useRef)(null),et=(0,n.useRef)(null),er=(0,n.useRef)(null),[eo,ei]=(0,n.use
132State)({tooltipStyles:{},tooltipArrowStyles:{},place:d}),[ea,el]=(0,n.useState)(!1),[es,ec]=(0,n.useState)(!1),[ed,ep]=(0,n.useState)(null),eh=(0,n.useRef)(!1),ey=(0,n.useRef)(null),{anchorRefs:ev,setActiveAnchor:eO}=eA(t),eS=(0,n.useRef)(!1),[e_,eR]=(0,n.useState)([]),ej=(0,n.useRef)(!1),eT=h||f.includes("click"),ek=eT||(null==_?void 0:_.click)||(null==_?void 0:_.dblclick)||(null==_?void 0:_.mousedown),eP=_?{..._}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!_&&eT&&Object.assign(eP,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});let eF=j?{...j}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!j&&eT&&Object.assign(eF,{mouseleave:!1,blur:!1,mouseout:!1});let eD=T?{...T}:{escape:A||!1,scroll:C||!1,resize:x||!1,clickOutsideAnchor:ek||!1};k&&(Object.assign(eP,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(eF,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(eD,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),eE(()=>(ej.current=!0,()=>{ej.current=!1}),[]);let eN=e=>{ej.current&&(e&&ec(!0),setTimeout(()=>{ej.current&&(null==B||B(e),void 0===$&&el(e))},10))};(0,n.useEffect)(()=>{if(void 0===$)return()=>null;$&&ec(!0);let e=setTimeout(()=>{el($)},10);return()=>{clearTimeout(e)}},[$]),(0,n.useEffect)(()=>{if(ea!==eh.current){if(ew(er),eh.current=ea,ea)null==D||D();else{let e=(e=>{let t=e.match(/^([\d.]+)(ms|s)$/);if(!t)return 0;let[,r,n]=t;return Number(r)*("ms"===n?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));er.current=setTimeout(()=>{ec(!1),ep(null),null==N||N()},e+25)}}},[ea]);let eL=e=>{ei(t=>eg(t,e)?t:e)},eM=(e=v)=>{ew(ee),es?eN(!0):ee.current=setTimeout(()=>{eN(!0)},e)},eI=(e=b)=>{ew(et),et.current=setTimeout(()=>{eS.current||eN(!1)},e)},e$=e=>{var t;if(!e)return;let r=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==r?void 0:r.isConnected))return z(null),void eO({current:null});v?eM():eN(!0),z(r),eO({current:r}),ew(et)},eU=()=>{S?eI(b||100):b?eI():eN(!1),ew(ee)},eH=({x:e,y:t})=>{var r;ef({place:null!==(r=null==ed?void 0:ed.place)&&void 0!==r?r:d,offset:p,elementReference:{getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})},tooltipReference:Y.current,tooltipArrowReference:X.current,strategy:m,middlewares:y,border:q}).then(e=>{eL(e)})},eB=e=>{if(!e)return;let t={x:e.clientX,y:e.clientY};eH(t),ey.current=t},eW=e=>{var t;if(!ea)return;let r=e.target;r.isConnected&&(null===(t=Y.current)||void 0===t||!t.contains(r))&&([document.querySelector(`[id='${u}']`),...e_].some(e=>null==e?void 0:e.contains(r))||(eN(!1),ew(ee)))},eV=em(e$,50,!0),ez=em(eU,50,!0),eq=e=>{ez.cancel(),eV(e)},eG=()=>{eV.cancel(),ez()},eK=(0,n.useCallback)(()=>{var e,t;let r=null!==(e=null==ed?void 0:ed.position)&&void 0!==e?e:F;r?eH(r):E?ey.current&&eH(ey.current):(null==W?void 0:W.isConnected)&&ef({place:null!==(t=null==ed?void 0:ed.place)&&void 0!==t?t:d,offset:p,elementReference:W,tooltipReference:Y.current,tooltipArrowReference:X.current,strategy:m,middlewares:y,border:q}).then(e=>{ej.current&&eL(e)})},[ea,W,M,P,d,null==ed?void 0:ed.place,p,m,F,null==ed?void 0:ed.position,E]);(0,n.useEffect)(()=>{var e,t;let r=new Set(ev);e_.forEach(e=>{(null==L?void 0:L(e))||r.add({current:e})});let n=document.querySelector(`[id='${u}']`);!n||(null==L?void 0:L(n))||r.add({current:n});let a=()=>{eN(!1)},s=eb(W),c=eb(Y.current);eD.scroll&&(window.addEventListener("scroll",a),null==s||s.addEventListener("scroll",a),null==c||c.addEventListener("scroll",a));let d=null;eD.resize?window.addEventListener("resize",a):W&&Y.current&&(d=function(e,t,r,n){let a;void 0===n&&(n={});let{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:p=!1}=n,f=V(e),h=s||u?[...f?H(f):[],...H(t)]:[];h.forEach(e=>{s&&e.addEventListener("scroll",r,{passive:!0}),u&&e.addEventListener("resize",r)});let m=f&&d?function(e,t){let r,n=null,a=R(e);function s(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),s();let p=e.getBoundingClientRect(),{left:f,top:h,width:m,height:y}=p;if(c||t(),!m||!y)return;let g=l(h),v=l(a.clientWidth-(f+m)),b={rootMargin:-g+"px "+-v+"px "+-l(a.clientHeight-(h+y))+"px "+-l(f)+"px",threshold:i(0,o(1,d))||1},E=!0;function w(t){let n=t[0].intersectionRatio;if(n!==d){if(!E)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==n||en(p,e.getBoundingClientRect())||u(),E=!1}try{n=new IntersectionObserver(w,{...b,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(w,b)}n.observe(e)}(!0),s}(f,r):null,y=-1,g=null;c&&(g=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&g&&(g.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),r()}),f&&!p&&g.observe(f),g.observe(t));let v=p?K(e):null;return p&&function t(){let n=K(e);v&&!en(v,n)&&r(),v=n,a=requestAnimationFrame(t)}(),r(),()=>{var e;
132h.forEach(e=>{s&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,p&&cancelAnimationFrame(a)}}(W,Y.current,eK,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));let p=e=>{"Escape"===e.key&&eN(!1)};eD.escape&&window.addEventListener("keydown",p),eD.clickOutsideAnchor&&window.addEventListener("click",eW);let f=[],h=e=>!!((null==e?void 0:e.target)&&(null==W?void 0:W.contains(e.target))),m=e=>{ea&&h(e)||e$(e)},y=e=>{ea&&h(e)&&eU()},g=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],v=["click","dblclick","mousedown","mouseup"];Object.entries(eP).forEach(([e,t])=>{t&&(g.includes(e)?f.push({event:e,listener:eq}):v.includes(e)&&f.push({event:e,listener:m}))}),Object.entries(eF).forEach(([e,t])=>{t&&(g.includes(e)?f.push({event:e,listener:eG}):v.includes(e)&&f.push({event:e,listener:y}))}),E&&f.push({event:"pointermove",listener:eB});let b=()=>{eS.current=!0},w=()=>{eS.current=!1,eU()},O=S&&(eF.mouseout||eF.mouseleave);return O&&(null===(e=Y.current)||void 0===e||e.addEventListener("mouseover",b),null===(t=Y.current)||void 0===t||t.addEventListener("mouseout",w)),f.forEach(({event:e,listener:t})=>{r.forEach(r=>{var n;null===(n=r.current)||void 0===n||n.addEventListener(e,t)})}),()=>{var e,t;eD.scroll&&(window.removeEventListener("scroll",a),null==s||s.removeEventListener("scroll",a),null==c||c.removeEventListener("scroll",a)),eD.resize?window.removeEventListener("resize",a):null==d||d(),eD.clickOutsideAnchor&&window.removeEventListener("click",eW),eD.escape&&window.removeEventListener("keydown",p),O&&(null===(e=Y.current)||void 0===e||e.removeEventListener("mouseover",b),null===(t=Y.current)||void 0===t||t.removeEventListener("mouseout",w)),f.forEach(({event:e,listener:t})=>{r.forEach(r=>{var n;null===(n=r.current)||void 0===n||n.removeEventListener(e,t)})})}},[W,eK,es,ev,e_,_,j,T,eT,v,b]),(0,n.useEffect)(()=>{var e,r;let n=null!==(r=null!==(e=null==ed?void 0:ed.anchorSelect)&&void 0!==e?e:c)&&void 0!==r?r:"";!n&&t&&(n=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);let o=new MutationObserver(e=>{let r=[],o=[];e.forEach(e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?r.push(e.target):e.oldValue===t&&o.push(e.target)),"childList"===e.type){if(W){let t=[...e.removedNodes].filter(e=>1===e.nodeType);if(n)try{o.push(...t.filter(e=>e.matches(n))),o.push(...t.flatMap(e=>[...e.querySelectorAll(n)]))}catch(e){}t.some(e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,W))&&(ec(!1),eN(!1),z(null),ew(ee),ew(et),!0)})}if(n)try{let t=[...e.addedNodes].filter(e=>1===e.nodeType);r.push(...t.filter(e=>e.matches(n))),r.push(...t.flatMap(e=>[...e.querySelectorAll(n)]))}catch(e){}}}),(r.length||o.length)&&eR(e=>[...e.filter(e=>!o.includes(e)),...r])});return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{o.disconnect()}},[t,c,null==ed?void 0:ed.anchorSelect,W]),(0,n.useEffect)(()=>{eK()},[eK]),(0,n.useEffect)(()=>{if(!(null==I?void 0:I.current))return()=>null;let e=new ResizeObserver(()=>{setTimeout(()=>eK())});return e.observe(I.current),()=>{e.disconnect()}},[M,null==I?void 0:I.current]),(0,n.useEffect)(()=>{var e;let t=document.querySelector(`[id='${u}']`),r=[...e_,t];W&&r.includes(W)||z(null!==(e=e_[0])&&void 0!==e?e:t)},[u,e_,W]),(0,n.useEffect)(()=>(U&&eN(!0),()=>{ew(ee),ew(et)}),[]),(0,n.useEffect)(()=>{var e;let r=null!==(e=null==ed?void 0:ed.anchorSelect)&&void 0!==e?e:c;if(!r&&t&&(r=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),r)try{let e=Array.from(document.querySelectorAll(r));eR(e)}catch(e){eR([])}},[t,c,null==ed?void 0:ed.anchorSelect]),(0,n.useEffect)(()=>{ee.current&&(ew(ee),eM(v))},[v]);let eZ=null!==(Q=null==ed?void 0:ed.content)&&void 0!==Q?Q:M,eJ=ea&&Object.keys(eo.tooltipStyles).length>0;return(0,n.useImperativeHandle)(e,()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ep(null!=e?e:null),(null==e?void 0:e.delay)?eM(e.delay):eN(!0)},close:e=>{(null==e?void 0:e.delay)?eI(e.delay):eN(!1)},activeAnchor:W,place:eo.place,isOpen:!!(es&&!w&&eZ&&eJ)})),es&&!w&&eZ?n.createElement(g,{id:t,role:J,className:eu("react-tooltip",eC.tooltip,ex.tooltip,ex[s],r,`react-tooltip__place-${eo.place}`,eC[eJ?"show":"closing"],eJ?"react-tooltip__show":"react-tooltip__closing","fixed"===m&&eC.fixed,S&&eC.clickable),onTransitionEnd:e=>{ew(er),ea||"opacity"!==e.propertyName||(ec(!1),ep(null),null==N||N())},style:{...P,...eo.tooltipStyles,opacity:void 0!==G&&eJ?G:void 0},ref:Y},eZ,n.createElement(g,{className:eu("react-tooltip-arrow",eC.arrow,ex.arrow,a,O&&eC.noArrow),style:{...eo.tooltipArrowStyles,background:Z?`linear-gradient(to right bottom, transparent 50%, ${Z} 50%)`:void 0},ref:X})):null},eR=({content:e})=>n.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),ej=n.forwardRef(({id:e,anchorId:t,anchorSelect:r,content:o,html:i,render:a,className:l,classNameArrow:s,variant:u="dark",place:c="top",offset:d=10,wrapper:p="div",children:f=null,events:h=["hover"],openOnClick:m=!1,positionStrategy:y="absolute",middlewares:g,delayShow:v=0,delayHide:b=0,float:E=!1,hidden:w=!1,noArrow:O=!1,clickable:S=!1,closeOnEsc:A=!1,closeOnScroll:C=!1,closeOnResize:x=!1,openEvents:_,closeEvents:R,globalCloseEvents:j,imperativeModeOnly:T=!1,style:k,position:P,isOpen:F,defaultIsOpen:D=!1,disableStyleInjection:N=!1,border:L,opacity:M,arrowColor:I,setIsOpen:$,afterShow:U,afterHide:H,disableTooltip:B,role:W="tooltip"},V)=>
132{let[z,q]=(0,n.useState)(o),[G,K]=(0,n.useState)(i),[Z,J]=(0,n.useState)(c),[Q,Y]=(0,n.useState)(u),[X,ee]=(0,n.useState)(d),[et,er]=(0,n.useState)(v),[en,eo]=(0,n.useState)(b),[ei,ea]=(0,n.useState)(E),[el,es]=(0,n.useState)(w),[ec,ed]=(0,n.useState)(p),[ep,ef]=(0,n.useState)(h),[em,ey]=(0,n.useState)(y),[eg,ev]=(0,n.useState)(null),[eb,eE]=(0,n.useState)(null),ew=(0,n.useRef)(N),{anchorRefs:eO,activeAnchor:eS}=eA(e),eC=e=>null==e?void 0:e.getAttributeNames().reduce((t,r)=>{var n;return r.startsWith("data-tooltip-")&&(t[r.replace(/^data-tooltip-/,"")]=null!==(n=null==e?void 0:e.getAttribute(r))&&void 0!==n?n:null),t},{}),ex=e=>{let t={place:e=>{J(null!=e?e:c)},content:e=>{q(null!=e?e:o)},html:e=>{K(null!=e?e:i)},variant:e=>{Y(null!=e?e:u)},offset:e=>{ee(null===e?d:Number(e))},wrapper:e=>{ed(null!=e?e:p)},events:e=>{let t=null==e?void 0:e.split(" ");ef(null!=t?t:h)},"position-strategy":e=>{ey(null!=e?e:y)},"delay-show":e=>{er(null===e?v:Number(e))},"delay-hide":e=>{eo(null===e?b:Number(e))},float:e=>{ea(null===e?E:"true"===e)},hidden:e=>{es(null===e?w:"true"===e)},"class-name":e=>{ev(e)}};Object.values(t).forEach(e=>e(null)),Object.entries(e).forEach(([e,r])=>{var n;null===(n=t[e])||void 0===n||n.call(t,r)})};(0,n.useEffect)(()=>{q(o)},[o]),(0,n.useEffect)(()=>{K(i)},[i]),(0,n.useEffect)(()=>{J(c)},[c]),(0,n.useEffect)(()=>{Y(u)},[u]),(0,n.useEffect)(()=>{ee(d)},[d]),(0,n.useEffect)(()=>{er(v)},[v]),(0,n.useEffect)(()=>{eo(b)},[b]),(0,n.useEffect)(()=>{ea(E)},[E]),(0,n.useEffect)(()=>{es(w)},[w]),(0,n.useEffect)(()=>{ey(y)},[y]),(0,n.useEffect)(()=>{ew.current!==N&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[N]),(0,n.useEffect)(()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===N,disableBase:N}}))},[]),(0,n.useEffect)(()=>{var n;let o=new Set(eO),i=r;if(!i&&e&&(i=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),i)try{document.querySelectorAll(i).forEach(e=>{o.add({current:e})})}catch(e){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}let a=document.querySelector(`[id='${t}']`);if(a&&o.add({current:a}),!o.size)return()=>null;let l=null!==(n=null!=eb?eb:a)&&void 0!==n?n:eS.current,s=new MutationObserver(e=>{e.forEach(e=>{var t;l&&"attributes"===e.type&&(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-"))&&ex(eC(l))})});return l&&(ex(eC(l)),s.observe(l,{attributes:!0,childList:!1,subtree:!1})),()=>{s.disconnect()}},[eO,eS,eb,t,r]),(0,n.useEffect)(()=>{(null==k?void 0:k.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),L&&!eh("border",`${L}`)&&console.warn(`[react-tooltip] "${L}" is not a valid \`border\`.`),(null==k?void 0:k.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),M&&!eh("opacity",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`opacity\`.`)},[]);let ej=f,eT=(0,n.useRef)(null);if(a){let e=a({content:(null==eb?void 0:eb.getAttribute("data-tooltip-content"))||z||null,activeAnchor:eb});ej=e?n.createElement("div",{ref:eT,className:"react-tooltip-content-wrapper"},e):null}else z&&(ej=z);G&&(ej=n.createElement(eR,{content:G}));let ek={forwardRef:V,id:e,anchorId:t,anchorSelect:r,className:eu(l,eg),classNameArrow:s,content:ej,contentWrapperRef:eT,place:Z,variant:Q,offset:X,wrapper:ec,events:ep,openOnClick:m,positionStrategy:em,middlewares:g,delayShow:et,delayHide:en,float:ei,hidden:el,noArrow:O,clickable:S,closeOnEsc:A,closeOnScroll:C,closeOnResize:x,openEvents:_,closeEvents:R,globalCloseEvents:j,imperativeModeOnly:T,style:k,position:P,isOpen:F,defaultIsOpen:D,border:L,opacity:M,arrowColor:I,setIsOpen:$,afterShow:U,afterHide:H,disableTooltip:B,activeAnchor:eb,setActiveAnchor:e=>eE(e),role:W};return n.createElement(e_,{...ek})});"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||ep({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}
132.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||ep({css:` 133.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})})},1115:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(2784),o=r(1709),i=r(446),a=r(1788);let l=a.I?e=>{e()}:n.startTransition,s=e=>{let[,t]=(0,n.useState)({}),r=(0,n.useRef)(!1),o=(0,n.useRef)(e),i=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),l=(0,n.useCallback)(e=>{let n=!1,a=o.current;for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&a[t]!==e[t]&&(a[t]=e[t],i.current[t]&&(n=!0));n&&!r.current&&t({})},[]);return(0,a.u)(()=>(r.current=!1,()=>{r.current=!0})),[o,i.current,l]},u=(0,o.xD)(i.ZP,()=>(e,t,r={})=>{let{mutate:i}=(0,o.kY)(),u=(0,n.useRef)(e),c=(0,n.useRef)(t),d=(0,n.useRef)(r),p=(0,n.useRef)(0),[f,h,m]=s({data:a.U,error:a.U,isMutating:!1}),y=f.current,g=(0,n.useCallback)(async(e,t)=>{let[r,n]=(0,a.s)(u.current);if(!c.current)throw Error("Canât trigger the mutation: missing fetcher.");if(!r)throw Error("Canât trigger the mutation: missing key.");let o=(0,a.m)((0,a.m)({populateCache:!1,throwOnError:!0},d.current),t),s=(0,a.o)();p.current=s,m({isMutating:!0});try{let t=await i(r,c.current(n,{arg:e}),(0,a.m)(o,{throwOnError:!0}));return p.current<=s&&(l(()=>m({data:t,isMutating:!1,error:void 0})),null==o.onSuccess||o.onSuccess.call(o,t,r,o)),t}catch(e){if(p.current<=s&&(l(()=>m({error:e,isMutating:!1})),null==o.onError||o.onError.call(o,e,r,o),o.throwOnError))throw e}},[]),v=(0,n.useCallback)(()=>{p.current=(0,a.o)(),m({data:a.U,error:a.U,isMutating:!1})},[]);return(0,a.u)(()=>{u.current=e,c.current=t,d.current=r}),{trigger:g,reset:v,get data(){return h.data=!0,y.data},get error(){return h.error=!0,y.error},get isMutating(){return h.isMutating=!0,y.isMutating}}})}}]);
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.