import{P as N,_ as yr,a as Ki}from"./redux.DpTE7rZg.chunk.js";import{g as Rn,r as x,R as U,o as ea,b as ot,a as ta}from"./react.DDpVMPfx.chunk.js";function ra(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Mn=x,na=ra(Mn);function Dr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ia(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var aa=!!(typeof window<"u"&&window.document&&window.document.createElement);function sa(e,t,r){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(i){return i.displayName||i.name||"Component"}return function(a){if(typeof a!="function")throw new Error("Expected WrappedComponent to be a React component.");var o=[],s;function u(){s=e(o.map(function(f){return f.props})),l.canUseDOM?t(s):r&&(s=r(s))}var l=function(f){ia(c,f);function c(){return f.apply(this,arguments)||this}c.peek=function(){return s},c.rewind=function(){if(c.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var g=s;return s=void 0,o=[],g};var h=c.prototype;return h.UNSAFE_componentWillMount=function(){o.push(this),u()},h.componentDidUpdate=function(){u()},h.componentWillUnmount=function(){var g=o.indexOf(this);o.splice(g,1),u()},h.render=function(){return na.createElement(a,this.props)},c}(Mn.PureComponent);return Dr(l,"displayName","SideEffect("+n(a)+")"),Dr(l,"canUseDOM",aa),l}}var oa=sa;const ua=Rn(oa);var la=typeof Element<"u",fa=typeof Map=="function",ca=typeof Set=="function",ha=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function mt(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!mt(e[n],t[n]))return!1;return!0}var a;if(fa&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!mt(n.value[1],t.get(n.value[0])))return!1;return!0}if(ca&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(ha&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;if(la&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((i[n]==="_owner"||i[n]==="__v"||i[n]==="__o")&&e.$$typeof)&&!mt(e[i[n]],t[i[n]]))return!1;return!0}return e!==e&&t!==t}var da=function(t,r){try{return mt(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const ma=Rn(da);var pe={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},S={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(S).map(function(e){return S[e]});var R={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},yt={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},$e={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},pa=Object.keys(yt).reduce(function(e,t){return e[yt[t]]=t,e},{}),va=[S.NOSCRIPT,S.SCRIPT,S.STYLE],W="data-react-helmet",ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ya=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ea=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ba=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Ur=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Ta=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Xt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},xa=function(t){var r=Ae(t,S.TITLE),n=Ae(t,$e.TITLE_TEMPLATE);if(n&&r)return n.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var i=Ae(t,$e.DEFAULT_TITLE);return r||i||void 0},Sa=function(t){return Ae(t,$e.ON_CHANGE_CLIENT_STATE)||function(){}},Mt=function(t,r){return r.filter(function(n){return typeof n[t]<"u"}).map(function(n){return n[t]}).reduce(function(n,i){return B({},n,i)},{})},_a=function(t,r){return r.filter(function(n){return typeof n[S.BASE]<"u"}).map(function(n){return n[S.BASE]}).reverse().reduce(function(n,i){if(!n.length)for(var a=Object.keys(i),o=0;o<a.length;o++){var s=a[o],u=s.toLowerCase();if(t.indexOf(u)!==-1&&i[u])return n.concat(i)}return n},[])},Me=function(t,r,n){var i={};return n.filter(function(a){return Array.isArray(a[t])?!0:(typeof a[t]<"u"&&Ca("Helmet: "+t+' should be of type "Array". Instead found type "'+ga(a[t])+'"'),!1)}).map(function(a){return a[t]}).reverse().reduce(function(a,o){var s={};o.filter(function(h){for(var d=void 0,g=Object.keys(h),p=0;p<g.length;p++){var y=g[p],v=y.toLowerCase();r.indexOf(v)!==-1&&!(d===R.REL&&h[d].toLowerCase()==="canonical")&&!(v===R.REL&&h[v].toLowerCase()==="stylesheet")&&(d=v),r.indexOf(y)!==-1&&(y===R.INNER_HTML||y===R.CSS_TEXT||y===R.ITEM_PROP)&&(d=y)}if(!d||!h[d])return!1;var T=h[d].toLowerCase();return i[d]||(i[d]={}),s[d]||(s[d]={}),i[d][T]?!1:(s[d][T]=!0,!0)}).reverse().forEach(function(h){return a.push(h)});for(var u=Object.keys(s),l=0;l<u.length;l++){var f=u[l],c=ea({},i[f],s[f]);i[f]=c}return a},[]).reverse()},Ae=function(t,r){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.hasOwnProperty(r))return i[r]}return null},Aa=function(t){return{baseTag:_a([R.HREF,R.TARGET],t),bodyAttributes:Mt(pe.BODY,t),defer:Ae(t,$e.DEFER),encode:Ae(t,$e.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Mt(pe.HTML,t),linkTags:Me(S.LINK,[R.REL,R.HREF],t),metaTags:Me(S.META,[R.NAME,R.CHARSET,R.HTTPEQUIV,R.PROPERTY,R.ITEM_PROP],t),noscriptTags:Me(S.NOSCRIPT,[R.INNER_HTML],t),onChangeClientState:Sa(t),scriptTags:Me(S.SCRIPT,[R.SRC,R.INNER_HTML],t),styleTags:Me(S.STYLE,[R.CSS_TEXT],t),title:xa(t),titleAttributes:Mt(pe.TITLE,t)}},zt=function(){var e=Date.now();return function(t){var r=Date.now();r-e>16?(e=r,t(r)):setTimeout(function(){zt(t)},0)}}(),Gr=function(t){return clearTimeout(t)},Pa=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||zt:window.requestAnimationFrame||zt,Ia=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Gr:window.cancelAnimationFrame||Gr,Ca=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},He=null,wa=function(t){He&&Ia(He),t.defer?He=Pa(function(){kr(t,function(){He=null})}):(kr(t),He=null)},kr=function(t,r){var n=t.baseTag,i=t.bodyAttributes,a=t.htmlAttributes,o=t.linkTags,s=t.metaTags,u=t.noscriptTags,l=t.onChangeClientState,f=t.scriptTags,c=t.styleTags,h=t.title,d=t.titleAttributes;Wt(S.BODY,i),Wt(S.HTML,a),Oa(h,d);var g={baseTag:Te(S.BASE,n),linkTags:Te(S.LINK,o),metaTags:Te(S.META,s),noscriptTags:Te(S.NOSCRIPT,u),scriptTags:Te(S.SCRIPT,f),styleTags:Te(S.STYLE,c)},p={},y={};Object.keys(g).forEach(function(v){var T=g[v],E=T.newTags,A=T.oldTags;E.length&&(p[v]=E),A.length&&(y[v]=g[v].oldTags)}),r&&r(),l(t,p,y)},Hn=function(t){return Array.isArray(t)?t.join(""):t},Oa=function(t,r){typeof t<"u"&&document.title!==t&&(document.title=Hn(t)),Wt(S.TITLE,r)},Wt=function(t,r){var n=document.getElementsByTagName(t)[0];if(n){for(var i=n.getAttribute(W),a=i?i.split(","):[],o=[].concat(a),s=Object.keys(r),u=0;u<s.length;u++){var l=s[u],f=r[l]||"";n.getAttribute(l)!==f&&n.setAttribute(l,f),a.indexOf(l)===-1&&a.push(l);var c=o.indexOf(l);c!==-1&&o.splice(c,1)}for(var h=o.length-1;h>=0;h--)n.removeAttribute(o[h]);a.length===o.length?n.removeAttribute(W):n.getAttribute(W)!==s.join(",")&&n.setAttribute(W,s.join(","))}},Te=function(t,r){var n=document.head||document.querySelector(S.HEAD),i=n.querySelectorAll(t+"["+W+"]"),a=Array.prototype.slice.call(i),o=[],s=void 0;return r&&r.length&&r.forEach(function(u){var l=document.createElement(t);for(var f in u)if(u.hasOwnProperty(f))if(f===R.INNER_HTML)l.innerHTML=u.innerHTML;else if(f===R.CSS_TEXT)l.styleSheet?l.styleSheet.cssText=u.cssText:l.appendChild(document.createTextNode(u.cssText));else{var c=typeof u[f]>"u"?"":u[f];l.setAttribute(f,c)}l.setAttribute(W,"true"),a.some(function(h,d){return s=d,l.isEqualNode(h)})?a.splice(s,1):o.push(l)}),a.forEach(function(u){return u.parentNode.removeChild(u)}),o.forEach(function(u){return n.appendChild(u)}),{oldTags:a,newTags:o}},Ln=function(t){return Object.keys(t).reduce(function(r,n){var i=typeof t[n]<"u"?n+'="'+t[n]+'"':""+n;return r?r+" "+i:i},"")},Na=function(t,r,n,i){var a=Ln(n),o=Hn(r);return a?"<"+t+" "+W+'="true" '+a+">"+Xt(o,i)+"</"+t+">":"<"+t+" "+W+'="true">'+Xt(o,i)+"</"+t+">"},Ra=function(t,r,n){return r.reduce(function(i,a){var o=Object.keys(a).filter(function(l){return!(l===R.INNER_HTML||l===R.CSS_TEXT)}).reduce(function(l,f){var c=typeof a[f]>"u"?f:f+'="'+Xt(a[f],n)+'"';return l?l+" "+c:c},""),s=a.innerHTML||a.cssText||"",u=va.indexOf(t)===-1;return i+"<"+t+" "+W+'="true" '+o+(u?"/>":">"+s+"</"+t+">")},"")},Bn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,i){return n[yt[i]||i]=t[i],n},r)},Ma=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,i){return n[pa[i]||i]=t[i],n},r)},Ha=function(t,r,n){var i,a=(i={key:r},i[W]=!0,i),o=Bn(n,a);return[U.createElement(S.TITLE,o,r)]},La=function(t,r){return r.map(function(n,i){var a,o=(a={key:i},a[W]=!0,a);return Object.keys(n).forEach(function(s){var u=yt[s]||s;if(u===R.INNER_HTML||u===R.CSS_TEXT){var l=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:l}}else o[u]=n[s]}),U.createElement(t,o)})},ne=function(t,r,n){switch(t){case S.TITLE:return{toComponent:function(){return Ha(t,r.title,r.titleAttributes)},toString:function(){return Na(t,r.title,r.titleAttributes,n)}};case pe.BODY:case pe.HTML:return{toComponent:function(){return Bn(r)},toString:function(){return Ln(r)}};default:return{toComponent:function(){return La(t,r)},toString:function(){return Ra(t,r,n)}}}},Fn=function(t){var r=t.baseTag,n=t.bodyAttributes,i=t.encode,a=t.htmlAttributes,o=t.linkTags,s=t.metaTags,u=t.noscriptTags,l=t.scriptTags,f=t.styleTags,c=t.title,h=c===void 0?"":c,d=t.titleAttributes;return{base:ne(S.BASE,r,i),bodyAttributes:ne(pe.BODY,n,i),htmlAttributes:ne(pe.HTML,a,i),link:ne(S.LINK,o,i),meta:ne(S.META,s,i),noscript:ne(S.NOSCRIPT,u,i),script:ne(S.SCRIPT,l,i),style:ne(S.STYLE,f,i),title:ne(S.TITLE,{title:h,titleAttributes:d},i)}},Ba=function(t){var r,n;return n=r=function(i){ba(a,i);function a(){return ya(this,a),Ta(this,i.apply(this,arguments))}return a.prototype.shouldComponentUpdate=function(s){return!ma(this.props,s)},a.prototype.mapNestedChildrenToProps=function(s,u){if(!u)return null;switch(s.type){case S.SCRIPT:case S.NOSCRIPT:return{innerHTML:u};case S.STYLE:return{cssText:u}}throw new Error("<"+s.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},a.prototype.flattenArrayTypeChildren=function(s){var u,l=s.child,f=s.arrayTypeChildren,c=s.newChildProps,h=s.nestedChildren;return B({},f,(u={},u[l.type]=[].concat(f[l.type]||[],[B({},c,this.mapNestedChildrenToProps(l,h))]),u))},a.prototype.mapObjectTypeChildren=function(s){var u,l,f=s.child,c=s.newProps,h=s.newChildProps,d=s.nestedChildren;switch(f.type){case S.TITLE:return B({},c,(u={},u[f.type]=d,u.titleAttributes=B({},h),u));case S.BODY:return B({},c,{bodyAttributes:B({},h)});case S.HTML:return B({},c,{htmlAttributes:B({},h)})}return B({},c,(l={},l[f.type]=B({},h),l))},a.prototype.mapArrayTypeChildrenToProps=function(s,u){var l=B({},u);return Object.keys(s).forEach(function(f){var c;l=B({},l,(c={},c[f]=s[f],c))}),l},a.prototype.warnOnInvalidChildren=function(s,u){return!0},a.prototype.mapChildrenToProps=function(s,u){var l=this,f={};return U.Children.forEach(s,function(c){if(!(!c||!c.props)){var h=c.props,d=h.children,g=Ur(h,["children"]),p=Ma(g);switch(l.warnOnInvalidChildren(c,d),c.type){case S.LINK:case S.META:case S.NOSCRIPT:case S.SCRIPT:case S.STYLE:f=l.flattenArrayTypeChildren({child:c,arrayTypeChildren:f,newChildProps:p,nestedChildren:d});break;default:u=l.mapObjectTypeChildren({child:c,newProps:u,newChildProps:p,nestedChildren:d});break}}}),u=this.mapArrayTypeChildrenToProps(f,u),u},a.prototype.render=function(){var s=this.props,u=s.children,l=Ur(s,["children"]),f=B({},l);return u&&(f=this.mapChildrenToProps(u,f)),U.createElement(t,f)},Ea(a,null,[{key:"canUseDOM",set:function(s){t.canUseDOM=s}}]),a}(U.Component),r.propTypes={base:N.object,bodyAttributes:N.object,children:N.oneOfType([N.arrayOf(N.node),N.node]),defaultTitle:N.string,defer:N.bool,encodeSpecialCharacters:N.bool,htmlAttributes:N.object,link:N.arrayOf(N.object),meta:N.arrayOf(N.object),noscript:N.arrayOf(N.object),onChangeClientState:N.func,script:N.arrayOf(N.object),style:N.arrayOf(N.object),title:N.string,titleAttributes:N.object,titleTemplate:N.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=t.peek,r.rewind=function(){var i=t.rewind();return i||(i=Fn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),i},n},Fa=function(){return null},Da=ua(Aa,wa,Fn)(Fa),jr=Ba(Da);jr.renderStatic=jr.rewind;function Dn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Dn(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Vu(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Dn(e))&&(n&&(n+=" "),n+=t);return n}var Qt=function(e,t){return Qt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Qt(e,t)};function $(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Qt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var b=function(){return b=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},b.apply(this,arguments)};function Ce(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function ee(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}function Zt(e,t){return Zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zt(e,t)}function Un(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zt(e,t)}function Gn(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}var P;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(P||(P={}));var O;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(O||(O={}));var we;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(we||(we={}));function Vr(e){return e.type===O.literal}function Ua(e){return e.type===O.argument}function kn(e){return e.type===O.number}function jn(e){return e.type===O.date}function Vn(e){return e.type===O.time}function $n(e){return e.type===O.select}function qn(e){return e.type===O.plural}function Ga(e){return e.type===O.pound}function Xn(e){return e.type===O.tag}function zn(e){return!!(e&&typeof e=="object"&&e.type===we.number)}function Yt(e){return!!(e&&typeof e=="object"&&e.type===we.dateTime)}var Wn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ka=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function ja(e){var t={};return e.replace(ka,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Va=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function $a(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Va).filter(function(h){return h.length>0}),r=[],n=0,i=t;n<i.length;n++){var a=i[n],o=a.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var s=o[0],u=o.slice(1),l=0,f=u;l<f.length;l++){var c=f[l];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:u})}return r}function qa(e){return e.replace(/^(.*?)-/,"")}var $r=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Qn=/^(@+)?(\+|#+)?[rs]?$/g,Xa=/(\*)(0+)|(#+)(0+)|(0+)/g,Zn=/^(0+)$/;function qr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Qn,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function Yn(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function za(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Zn.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Xr(e){var t={},r=Yn(e);return r||t}function Wa(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=qa(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=b(b(b({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return b(b({},u),Xr(l))},{}));continue;case"engineering":t=b(b(b({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return b(b({},u),Xr(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Xa,function(u,l,f,c,h,d){if(l)t.minimumIntegerDigits=f.length;else{if(c&&h)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Zn.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if($r.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace($r,function(u,l,f,c,h,d){return f==="*"?t.minimumFractionDigits=l.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:h&&d?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+d.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var a=i.options[0];a==="w"?t=b(b({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=b(b({},t),qr(a)));continue}if(Qn.test(i.stem)){t=b(b({},t),qr(i.stem));continue}var o=Yn(i.stem);o&&(t=b(b({},t),o));var s=za(i.stem);s&&(t=b(b({},t),s))}return t}var ut={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Qa(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var a=0;n+1<e.length&&e.charAt(n+1)===i;)a++,n++;var o=1+(a&1),s=a<2?1:3+(a>>1),u="a",l=Za(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=u;for(;o-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function Za(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=ut[n||""]||ut[r||""]||ut["".concat(r,"-001")]||ut["001"];return i[0]}var Ht,Ya=new RegExp("^".concat(Wn.source,"*")),Ja=new RegExp("".concat(Wn.source,"*$"));function C(e,t){return{start:e,end:t}}var Ka=!!String.prototype.startsWith&&"_a".startsWith("a",1),es=!!String.fromCodePoint,ts=!!Object.fromEntries,rs=!!String.prototype.codePointAt,ns=!!String.prototype.trimStart,is=!!String.prototype.trimEnd,as=!!Number.isSafeInteger,ss=as?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Jt=!0;try{var os=Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Jt=((Ht=os.exec("a"))===null||Ht===void 0?void 0:Ht[0])==="a"}catch(e){Jt=!1}var zr=Ka?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Kt=es?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,a=0,o;i>a;){if(o=t[a++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},Wr=ts?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var a=i[n],o=a[0],s=a[1];r[o]=s}return r},Jn=rs?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),a;return i<55296||i>56319||r+1===n||(a=t.charCodeAt(r+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},us=ns?function(t){return t.trimStart()}:function(t){return t.replace(Ya,"")},ls=is?function(t){return t.trimEnd()}:function(t){return t.replace(Ja,"")};function Kn(e,t){return new RegExp(e,t)}var er;if(Jt){var Qr=Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");er=function(t,r){var n;Qr.lastIndex=r;var i=Qr.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else er=function(t,r){for(var n=[];;){var i=Jn(t,r);if(i===void 0||ei(i)||ds(i))break;n.push(i),r+=i>=65536?2:1}return Kt.apply(void 0,n)};var fs=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var o=this.parseArgument(t,n);if(o.err)return o;i.push(o.val)}else{if(a===125&&t>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:O.pound,location:C(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(P.UNMATCHED_CLOSING_TAG,C(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&tr(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:O.literal,value:"<".concat(i,"/>"),location:C(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,r,!0);if(a.err)return a;var o=a.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!tr(this.char()))return this.error(P.INVALID_TAG,C(s,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(P.UNMATCHED_CLOSING_TAG,C(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:O.tag,value:i,children:o,location:C(n,this.clonePosition())},err:null}:this.error(P.INVALID_TAG,C(s,this.clonePosition())))}else return this.error(P.UNCLOSED_TAG,C(n,this.clonePosition()))}else return this.error(P.INVALID_TAG,C(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&hs(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var a=this.tryParseQuote(r);if(a){i+=a;continue}var o=this.tryParseUnquoted(t,r);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var u=C(n,this.clonePosition());return{val:{type:O.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!cs(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Kt.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Kt(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(P.EMPTY_ARGUMENT,C(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(P.MALFORMED_ARGUMENT,C(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:O.argument,value:i,location:C(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,C(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(P.MALFORMED_ARGUMENT,C(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=er(this.message,r),i=r+n.length;this.bumpTo(i);var a=this.clonePosition(),o=C(t,a);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,i){var a,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(P.EXPECT_ARGUMENT_TYPE,C(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=ls(c.val);if(h.length===0)return this.error(P.EXPECT_ARGUMENT_STYLE,C(this.clonePosition(),this.clonePosition()));var d=C(f,this.clonePosition());l={style:h,styleLocation:d}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var p=C(i,this.clonePosition());if(l&&zr(l==null?void 0:l.style,"::",0)){var y=us(l.style.slice(2));if(s==="number"){var c=this.parseNumberSkeletonFromString(y,l.styleLocation);return c.err?c:{val:{type:O.number,value:n,location:p,style:c.val},err:null}}else{if(y.length===0)return this.error(P.EXPECT_DATE_TIME_SKELETON,p);var v=y;this.locale&&(v=Qa(y,this.locale));var h={type:we.dateTime,pattern:v,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ja(v):{}},T=s==="date"?O.date:O.time;return{val:{type:T,value:n,location:p,style:h},err:null}}}return{val:{type:s==="number"?O.number:s==="date"?O.date:O.time,value:n,location:p,style:(a=l==null?void 0:l.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(P.EXPECT_SELECT_ARGUMENT_OPTIONS,C(E,b({},E)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),w=0;if(s!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,P.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),A=this.parseIdentifierIfPossible(),w=c.val}var L=this.tryParsePluralOrSelectOptions(t,s,r,A);if(L.err)return L;var g=this.tryParseArgumentClose(i);if(g.err)return g;var M=C(i,this.clonePosition());return s==="select"?{val:{type:O.select,value:n,options:Wr(L.val),location:M},err:null}:{val:{type:O.plural,value:n,options:Wr(L.val),offset:w,pluralType:s==="plural"?"cardinal":"ordinal",location:M},err:null}}default:return this.error(P.INVALID_ARGUMENT_TYPE,C(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,C(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(P.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,C(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=$a(t)}catch(i){return this.error(P.INVALID_NUMBER_SKELETON,r)}return{val:{type:we.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Wa(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var a,o=!1,s=[],u=new Set,l=i.value,f=i.location;;){if(l.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_SELECTOR,P.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=C(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?P.DUPLICATE_SELECT_ARGUMENT_SELECTOR:P.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?P.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:P.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,C(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,r,n);if(g.err)return g;var p=this.tryParseArgumentClose(d);if(p.err)return p;s.push([l,{value:g.val,location:C(d,this.clonePosition())}]),u.add(l),this.bumpSpace(),a=this.parseIdentifierIfPossible(),l=a.value,f=a.location}return s.length===0?this.error(r==="select"?P.EXPECT_SELECT_ARGUMENT_SELECTOR:P.EXPECT_PLURAL_ARGUMENT_SELECTOR,C(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(P.MISSING_OTHER_CLAUSE,C(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=o*10+(s-48),this.bump();else break}var u=C(i,this.clonePosition());return a?(o*=n,ss(o)?{val:o,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Jn(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(zr(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ei(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function tr(e){return e>=97&&e<=122||e>=65&&e<=90}function cs(e){return tr(e)||e===47}function hs(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ei(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ds(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function rr(e){e.forEach(function(t){if(delete t.location,$n(t)||qn(t))for(var r in t.options)delete t.options[r].location,rr(t.options[r].value);else kn(t)&&zn(t.style)||(jn(t)||Vn(t))&&Yt(t.style)?delete t.style.location:Xn(t)&&rr(t.children)})}function ms(e,t){t===void 0&&(t={}),t=b({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new fs(e,t).parse();if(r.err){var n=SyntaxError(P[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||rr(r.val),r.val}function Y(e,t){var r=t&&t.cache?t.cache:bs,n=t&&t.serializer?t.serializer:Es,i=t&&t.strategy?t.strategy:vs;return i(e,{cache:r,serializer:n})}function ps(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ti(e,t,r,n){var i=ps(n)?n:r(n),a=t.get(i);return typeof a>"u"&&(a=e.call(this,n),t.set(i,a)),a}function ri(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,n),t.set(i,a)),a}function Er(e,t,r,n,i){return r.bind(t,e,n,i)}function vs(e,t){var r=e.length===1?ti:ri;return Er(e,this,r,t.cache.create(),t.serializer)}function gs(e,t){return Er(e,this,ri,t.cache.create(),t.serializer)}function ys(e,t){return Er(e,this,ti,t.cache.create(),t.serializer)}var Es=function(){return JSON.stringify(arguments)};function br(){this.cache=Object.create(null)}br.prototype.get=function(e){return this.cache[e]};br.prototype.set=function(e,t){this.cache[e]=t};var bs={create:function(){return new br}},J={variadic:gs,monadic:ys},te;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(te||(te={}));var fe=function(e){$(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.code=n,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Zr=function(e){$(t,e);function t(r,n,i,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),te.INVALID_VALUE,a)||this}return t}(fe),Ts=function(e){$(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),te.INVALID_VALUE,i)||this}return t}(fe),xs=function(e){$(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),te.MISSING_VALUE,n)||this}return t}(fe),H;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(H||(H={}));function Ss(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==H.literal||r.type!==H.literal?t.push(r):n.value+=r.value,t},[])}function ni(e){return typeof e=="function"}function pt(e,t,r,n,i,a,o){if(e.length===1&&Vr(e[0]))return[{type:H.literal,value:e[0].value}];for(var s=[],u=0,l=e;u<l.length;u++){var f=l[u];if(Vr(f)){s.push({type:H.literal,value:f.value});continue}if(Ga(f)){typeof a=="number"&&s.push({type:H.literal,value:r.getNumberFormat(t).format(a)});continue}var c=f.value;if(!(i&&c in i))throw new xs(c,o);var h=i[c];if(Ua(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),s.push({type:typeof h=="string"?H.literal:H.object,value:h});continue}if(jn(f)){var d=typeof f.style=="string"?n.date[f.style]:Yt(f.style)?f.style.parsedOptions:void 0;s.push({type:H.literal,value:r.getDateTimeFormat(t,d).format(h)});continue}if(Vn(f)){var d=typeof f.style=="string"?n.time[f.style]:Yt(f.style)?f.style.parsedOptions:n.time.medium;s.push({type:H.literal,value:r.getDateTimeFormat(t,d).format(h)});continue}if(kn(f)){var d=typeof f.style=="string"?n.number[f.style]:zn(f.style)?f.style.parsedOptions:void 0;d&&d.scale&&(h=h*(d.scale||1)),s.push({type:H.literal,value:r.getNumberFormat(t,d).format(h)});continue}if(Xn(f)){var g=f.children,p=f.value,y=i[p];if(!ni(y))throw new Ts(p,"function",o);var v=pt(g,t,r,n,i,a),T=y(v.map(function(w){return w.value}));Array.isArray(T)||(T=[T]),s.push.apply(s,T.map(function(w){return{type:typeof w=="string"?H.literal:H.object,value:w}}))}if($n(f)){var E=f.options[h]||f.options.other;if(!E)throw new Zr(f.value,h,Object.keys(f.options),o);s.push.apply(s,pt(E.value,t,r,n,i));continue}if(qn(f)){var E=f.options["=".concat(h)];if(!E){if(!Intl.PluralRules)throw new fe('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',te.MISSING_INTL_API,o);var A=r.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));E=f.options[A]||f.options.other}if(!E)throw new Zr(f.value,h,Object.keys(f.options),o);s.push.apply(s,pt(E.value,t,r,n,i,h-(f.offset||0)));continue}}return Ss(s)}function _s(e,t){return t?b(b(b({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=b(b({},e[n]),t[n]||{}),r},{})):e}function As(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=_s(e[n],t[n]),r},b({},e)):e}function Lt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Ps(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Y(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,ee([void 0],r,!1)))},{cache:Lt(e.number),strategy:J.variadic}),getDateTimeFormat:Y(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,ee([void 0],r,!1)))},{cache:Lt(e.dateTime),strategy:J.variadic}),getPluralRules:Y(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,ee([void 0],r,!1)))},{cache:Lt(e.pluralRules),strategy:J.variadic})}}var ii=function(){function e(t,r,n,i){var a=this;if(r===void 0&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=a.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(c,h){return!c.length||h.type!==H.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return pt(a.ast,a.locales,a.formatters,a.formats,u,void 0,a.message)},this.resolvedOptions=function(){var u;return{locale:((u=a.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var s=Ce(o,["formatters"]);this.ast=e.__parse(t,b(b({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=As(e.formats,n),this.formatters=i&&i.formatters||Ps(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=ms,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),ve;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(ve||(ve={}));var tt=function(e){$(t,e);function t(r,n,i){var a=this,o=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(o?"\n".concat(o.message,"\n").concat(o.stack):""))||this,a.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),Is=function(e){$(t,e);function t(r,n){return e.call(this,ve.UNSUPPORTED_FORMATTER,r,n)||this}return t}(tt),Cs=function(e){$(t,e);function t(r,n){return e.call(this,ve.INVALID_CONFIG,r,n)||this}return t}(tt),Yr=function(e){$(t,e);function t(r,n){return e.call(this,ve.MISSING_DATA,r,n)||this}return t}(tt),q=function(e){$(t,e);function t(r,n,i){var a=e.call(this,ve.FORMAT_ERROR,"".concat(r,"\nLocale: ").concat(n,"\n"),i)||this;return a.locale=n,a}return t}(tt),Bt=function(e){$(t,e);function t(r,n,i,a){var o=e.call(this,"".concat(r,"\nMessageID: ").concat(i==null?void 0:i.id,"\nDefault Message: ").concat(i==null?void 0:i.defaultMessage,"\nDescription: ").concat(i==null?void 0:i.description,"\n"),n,a)||this;return o.descriptor=i,o.locale=n,o}return t}(q),ws=function(e){$(t,e);function t(r,n){var i=e.call(this,ve.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(a){var o;return(o=a.value)!==null&&o!==void 0?o:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=r,i}return t}(tt);function ye(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,i){return i in e?n[i]=e[i]:i in r&&(n[i]=r[i]),n},{})}var Os=function(e){},Ns=function(e){},ai={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Os,onWarn:Ns};function si(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function ce(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Rs(e){e===void 0&&(e=si());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=Y(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.DateTimeFormat).bind.apply(s,ee([void 0],u,!1)))},{cache:ce(e.dateTime),strategy:J.variadic}),a=Y(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.NumberFormat).bind.apply(s,ee([void 0],u,!1)))},{cache:ce(e.number),strategy:J.variadic}),o=Y(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.PluralRules).bind.apply(s,ee([void 0],u,!1)))},{cache:ce(e.pluralRules),strategy:J.variadic});return{getDateTimeFormat:i,getNumberFormat:a,getMessageFormat:Y(function(s,u,l,f){return new ii(s,u,l,b({formatters:{getNumberFormat:a,getDateTimeFormat:i,getPluralRules:o}},f||{}))},{cache:ce(e.message),strategy:J.variadic}),getRelativeTimeFormat:Y(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(t.bind.apply(t,ee([void 0],s,!1)))},{cache:ce(e.relativeTime),strategy:J.variadic}),getPluralRules:o,getListFormat:Y(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(r.bind.apply(r,ee([void 0],s,!1)))},{cache:ce(e.list),strategy:J.variadic}),getDisplayNames:Y(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(n.bind.apply(n,ee([void 0],s,!1)))},{cache:ce(e.displayNames),strategy:J.variadic})}}function Tr(e,t,r,n){var i=e&&e[t],a;if(i&&(a=i[r]),a)return a;n(new Is("No ".concat(t," format named: ").concat(r)))}function lt(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=b({timeZone:t},e[n]),r},{})}function Jr(e,t){var r=Object.keys(b(b({},e),t));return r.reduce(function(n,i){return n[i]=b(b({},e[i]||{}),t[i]||{}),n},{})}function Kr(e,t){if(!t)return e;var r=ii.formats;return b(b(b({},r),e),{date:Jr(lt(r.date,t),lt(e.date||{},t)),time:Jr(lt(r.time,t),lt(e.time||{},t))})}var nr=function(e,t,r,n,i){var a=e.locale,o=e.formats,s=e.messages,u=e.defaultLocale,l=e.defaultFormats,f=e.fallbackOnEmptyString,c=e.onError,h=e.timeZone,d=e.defaultRichTextElements;r===void 0&&(r={id:""});var g=r.id,p=r.defaultMessage;Gn(!!g,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var y=String(g),v=s&&Object.prototype.hasOwnProperty.call(s,y)&&s[y];if(Array.isArray(v)&&v.length===1&&v[0].type===O.literal)return v[0].value;if(!n&&v&&typeof v=="string"&&!d)return v.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=b(b({},d),n||{}),o=Kr(o,h),l=Kr(l,h),!v){if(f===!1&&v==="")return v;if((!p||a&&a.toLowerCase()!==u.toLowerCase())&&c(new ws(r,a)),p)try{var T=t.getMessageFormat(p,u,l,i);return T.format(n)}catch(E){return c(new Bt('Error formatting default message for: "'.concat(y,'", rendering default message verbatim'),a,r,E)),typeof p=="string"?p:y}return y}try{var T=t.getMessageFormat(v,a,o,b({formatters:t},i||{}));return T.format(n)}catch(E){c(new Bt('Error formatting message: "'.concat(y,'", using ').concat(p?"default message":"id"," as fallback."),a,r,E))}if(p)try{var T=t.getMessageFormat(p,u,l,i);return T.format(n)}catch(E){c(new Bt('Error formatting the default message for: "'.concat(y,'", rendering message verbatim'),a,r,E))}return typeof v=="string"?v:typeof p=="string"?p:y},oi=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function _t(e,t,r,n){var i=e.locale,a=e.formats,o=e.onError,s=e.timeZone;n===void 0&&(n={});var u=n.format,l=b(b({},s&&{timeZone:s}),u&&Tr(a,t,u,o)),f=ye(n,oi,l);return t==="time"&&!f.hour&&!f.minute&&!f.second&&!f.timeStyle&&!f.dateStyle&&(f=b(b({},f),{hour:"numeric",minute:"numeric"})),r(i,f)}function Ms(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],o=a===void 0?{}:a,s=typeof i=="string"?new Date(i||0):i;try{return _t(e,"date",t,o).format(s)}catch(u){e.onError(new q("Error formatting date.",e.locale,u))}return String(s)}function Hs(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],o=a===void 0?{}:a,s=typeof i=="string"?new Date(i||0):i;try{return _t(e,"time",t,o).format(s)}catch(u){e.onError(new q("Error formatting time.",e.locale,u))}return String(s)}function Ls(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],o=r[2],s=o===void 0?{}:o,u=e.timeZone,l=e.locale,f=e.onError,c=ye(s,oi,u?{timeZone:u}:{});try{return t(l,c).formatRange(i,a)}catch(h){f(new q("Error formatting date time range.",e.locale,h))}return String(i)}function Bs(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],o=a===void 0?{}:a,s=typeof i=="string"?new Date(i||0):i;try{return _t(e,"date",t,o).formatToParts(s)}catch(u){e.onError(new q("Error formatting date.",e.locale,u))}return[]}function Fs(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],o=a===void 0?{}:a,s=typeof i=="string"?new Date(i||0):i;try{return _t(e,"time",t,o).formatToParts(s)}catch(u){e.onError(new q("Error formatting time.",e.locale,u))}return[]}var Ds=["style","type","fallback","languageDisplay"];function Us(e,t,r,n){var i=e.locale,a=e.onError,o=Intl.DisplayNames;o||a(new fe('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',te.MISSING_INTL_API));var s=ye(n,Ds);try{return t(i,s).of(r)}catch(u){a(new q("Error formatting display name.",i,u))}}var Gs=["type","style"],en=Date.now();function ks(e){return"".concat(en,"_").concat(e,"_").concat(en)}function js(e,t,r,n){n===void 0&&(n={});var i=ui(e,t,r,n).reduce(function(a,o){var s=o.value;return typeof s!="string"?a.push(s):typeof a[a.length-1]=="string"?a[a.length-1]+=s:a.push(s),a},[]);return i.length===1?i[0]:i.length===0?"":i}function ui(e,t,r,n){var i=e.locale,a=e.onError;n===void 0&&(n={});var o=Intl.ListFormat;o||a(new fe('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',te.MISSING_INTL_API));var s=ye(n,Gs);try{var u={},l=r.map(function(f,c){if(typeof f=="object"){var h=ks(c);return u[h]=f,h}return String(f)});return t(i,s).formatToParts(l).map(function(f){return f.type==="literal"?f:b(b({},f),{value:u[f.value]||f.value})})}catch(f){a(new q("Error formatting list.",i,f))}return r}var Vs=["type"];function $s(e,t,r,n){var i=e.locale,a=e.onError;n===void 0&&(n={}),Intl.PluralRules||a(new fe('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',te.MISSING_INTL_API));var o=ye(n,Vs);try{return t(i,o).select(r)}catch(s){a(new q("Error formatting plural.",i,s))}return"other"}var qs=["numeric","style"];function Xs(e,t,r){var n=e.locale,i=e.formats,a=e.onError;r===void 0&&(r={});var o=r.format,s=!!o&&Tr(i,"relative",o,a)||{},u=ye(r,qs,s);return t(n,u)}function zs(e,t,r,n,i){i===void 0&&(i={}),n||(n="second");var a=Intl.RelativeTimeFormat;a||e.onError(new fe('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',te.MISSING_INTL_API));try{return Xs(e,t,i).format(r,n)}catch(o){e.onError(new q("Error formatting relative time.",e.locale,o))}return String(r)}var Ws=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function li(e,t,r){var n=e.locale,i=e.formats,a=e.onError;r===void 0&&(r={});var o=r.format,s=o&&Tr(i,"number",o,a)||{},u=ye(r,Ws,s);return t(n,u)}function Qs(e,t,r,n){n===void 0&&(n={});try{return li(e,t,n).format(r)}catch(i){e.onError(new q("Error formatting number.",e.locale,i))}return String(r)}function Zs(e,t,r,n){n===void 0&&(n={});try{return li(e,t,n).formatToParts(r)}catch(i){e.onError(new q("Error formatting number.",e.locale,i))}return[]}function Ys(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function Js(e){e.onWarn&&e.defaultRichTextElements&&Ys(e.messages||{})&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}function Ks(e,t){var r=Rs(t),n=b(b({},ai),e),i=n.locale,a=n.defaultLocale,o=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&o?o(new Yr('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&o&&o(new Yr('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(o&&o(new Cs('"locale" was not configured, using "'.concat(a,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),Js(n),b(b({},n),{formatters:r,formatNumber:Qs.bind(null,n,r.getNumberFormat),formatNumberToParts:Zs.bind(null,n,r.getNumberFormat),formatRelativeTime:zs.bind(null,n,r.getRelativeTimeFormat),formatDate:Ms.bind(null,n,r.getDateTimeFormat),formatDateToParts:Bs.bind(null,n,r.getDateTimeFormat),formatTime:Hs.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:Ls.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Fs.bind(null,n,r.getDateTimeFormat),formatPlural:$s.bind(null,n,r.getPluralRules),formatMessage:nr.bind(null,n,r),$t:nr.bind(null,n,r),formatList:js.bind(null,n,r.getListFormat),formatListToParts:ui.bind(null,n,r.getListFormat),formatDisplayName:Us.bind(null,n,r.getDisplayNames)})}function fi(e){Gn(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var ci=b(b({},ai),{textComponent:x.Fragment});function eo(e){return function(t){return e(x.Children.toArray(t))}}function ir(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var a=0;a<i;a++){var o=r[a];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}var xr=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=x.createContext(null)):x.createContext(null);xr.Consumer;var to=xr.Provider,ro=to,no=xr;function Sr(){var e=x.useContext(no);return fi(e),e}var ar;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(ar||(ar={}));var sr;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(sr||(sr={}));function hi(e){var t=function(r){var n=Sr(),i=r.value,a=r.children,o=Ce(r,["value","children"]),s=typeof i=="string"?new Date(i||0):i,u=e==="formatDate"?n.formatDateToParts(s,o):n.formatTimeToParts(s,o);return a(u)};return t.displayName=sr[e],t}function rt(e){var t=function(r){var n=Sr(),i=r.value,a=r.children,o=Ce(r,["value","children"]),s=n[e](i,o);if(typeof a=="function")return a(s);var u=n.textComponent||x.Fragment;return x.createElement(u,null,s)};return t.displayName=ar[e],t}function di(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=ni(n)?eo(n):n,t},{})}var tn=function(e,t,r,n){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];var o=di(n),s=nr.apply(void 0,ee([e,t,r,o],i,!1));return Array.isArray(s)?x.Children.toArray(s):s},rn=function(e,t){var r=e.defaultRichTextElements,n=Ce(e,["defaultRichTextElements"]),i=di(r),a=Ks(b(b(b({},ci),n),{defaultRichTextElements:i}),t),o={locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:i};return b(b({},a),{formatMessage:tn.bind(null,o,a.formatters),$t:tn.bind(null,o,a.formatters)})};function Ft(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var $u=function(e){$(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=si(),r.state={cache:r.cache,intl:rn(Ft(r.props),r.cache),prevConfig:Ft(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var i=n.prevConfig,a=n.cache,o=Ft(r);return ir(i,o)?null:{intl:rn(o,a),prevConfig:o}},t.prototype.render=function(){return fi(this.state.intl),x.createElement(ro,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=ci,t}(x.PureComponent);function io(e,t){var r=e.values,n=Ce(e,["values"]),i=t.values,a=Ce(t,["values"]);return ir(i,r)&&ir(n,a)}function mi(e){var t=Sr(),r=t.formatMessage,n=t.textComponent,i=n===void 0?x.Fragment:n,a=e.id,o=e.description,s=e.defaultMessage,u=e.values,l=e.children,f=e.tagName,c=f===void 0?i:f,h=e.ignoreTag,d={id:a,description:o,defaultMessage:s},g=r(d,u,{ignoreTag:h});return typeof l=="function"?l(Array.isArray(g)?g:[g]):c?x.createElement(c,null,x.Children.toArray(g)):x.createElement(x.Fragment,null,g)}mi.displayName="FormattedMessage";var ao=x.memo(mi,io);ao.displayName="MemoizedFormattedMessage";function qu(e){return e}rt("formatDate");rt("formatTime");rt("formatNumber");rt("formatList");rt("formatDisplayName");hi("formatDate");hi("formatTime");function so(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function oo(e,t){e.classList?e.classList.add(t):so(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function nn(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function uo(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=nn(e.className,t):e.setAttribute("class",nn(e.className&&e.className.baseVal||"",t))}const an={disabled:!1},pi=U.createContext(null);var vi=function(t){return t.scrollTop},De="unmounted",he="exited",de="entering",_e="entered",or="exiting",ae=function(e){Un(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,s=o&&!o.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?s?(u=he,a.appearStatus=de):u=_e:n.unmountOnExit||n.mountOnEnter?u=De:u=he,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===De?{status:he}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==de&&o!==_e&&(a=de):(o===de||o===_e)&&(a=or)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===de){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:ot.findDOMNode(this);o&&vi(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===he&&this.setState({status:De})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,u=this.props.nodeRef?[s]:[ot.findDOMNode(this),s],l=u[0],f=u[1],c=this.getTimeouts(),h=s?c.appear:c.enter;if(!i&&!o||an.disabled){this.safeSetState({status:_e},function(){a.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:de},function(){a.props.onEntering(l,f),a.onTransitionEnd(h,function(){a.safeSetState({status:_e},function(){a.props.onEntered(l,f)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:ot.findDOMNode(this);if(!a||an.disabled){this.safeSetState({status:he},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:or},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:he},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:ot.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],l=u[0],f=u[1];this.props.addEndListener(l,f)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===De)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=yr(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return U.createElement(pi.Provider,{value:null},typeof o=="function"?o(i,s):U.cloneElement(U.Children.only(o),s))},t}(U.Component);ae.contextType=pi;ae.propTypes={};function xe(){}ae.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xe,onEntering:xe,onEntered:xe,onExit:xe,onExiting:xe,onExited:xe};ae.UNMOUNTED=De;ae.EXITED=he;ae.ENTERING=de;ae.ENTERED=_e;ae.EXITING=or;var lo=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return oo(t,n)})},Dt=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return uo(t,n)})},gi=function(e){Un(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(s,u){var l=n.resolveArguments(s,u),f=l[0],c=l[1];n.removeClasses(f,"exit"),n.addClass(f,c?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,u)},n.onEntering=function(s,u){var l=n.resolveArguments(s,u),f=l[0],c=l[1],h=c?"appear":"enter";n.addClass(f,h,"active"),n.props.onEntering&&n.props.onEntering(s,u)},n.onEntered=function(s,u){var l=n.resolveArguments(s,u),f=l[0],c=l[1],h=c?"appear":"enter";n.removeClasses(f,h),n.addClass(f,h,"done"),n.props.onEntered&&n.props.onEntered(s,u)},n.onExit=function(s){var u=n.resolveArguments(s),l=u[0];n.removeClasses(l,"appear"),n.removeClasses(l,"enter"),n.addClass(l,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var u=n.resolveArguments(s),l=u[0];n.addClass(l,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var u=n.resolveArguments(s),l=u[0];n.removeClasses(l,"exit"),n.addClass(l,"exit","done"),n.props.onExited&&n.props.onExited(s)},n.resolveArguments=function(s,u){return n.props.nodeRef?[n.props.nodeRef.current,s]:[s,u]},n.getClassNames=function(s){var u=n.props.classNames,l=typeof u=="string",f=l&&u?u+"-":"",c=l?""+f+s:u[s],h=l?c+"-active":u[s+"Active"],d=l?c+"-done":u[s+"Done"];return{baseClassName:c,activeClassName:h,doneClassName:d}},n}var r=t.prototype;return r.addClass=function(i,a,o){var s=this.getClassNames(a)[o+"ClassName"],u=this.getClassNames("enter"),l=u.doneClassName;a==="appear"&&o==="done"&&l&&(s+=" "+l),o==="active"&&i&&vi(i),s&&(this.appliedClasses[a][o]=s,lo(i,s))},r.removeClasses=function(i,a){var o=this.appliedClasses[a],s=o.base,u=o.active,l=o.done;this.appliedClasses[a]={},s&&Dt(i,s),u&&Dt(i,u),l&&Dt(i,l)},r.render=function(){var i=this.props;i.classNames;var a=yr(i,["classNames"]);return U.createElement(ae,Ki({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(U.Component);gi.defaultProps={classNames:""};gi.propTypes={};var fo=Object.defineProperty,co=(e,t)=>{for(var r in t)fo(e,r,{get:t[r],enumerable:!0})},Z={};co(Z,{assign:()=>po,colors:()=>le,createStringInterpolator:()=>Or,skipAnimation:()=>_i,to:()=>Si,willAdvance:()=>Nr});var _r=it(),_=e=>nt(e,_r),Ar=it();_.write=e=>nt(e,Ar);var At=it();_.onStart=e=>nt(e,At);var Pr=it();_.onFrame=e=>nt(e,Pr);var Ir=it();_.onFinish=e=>nt(e,Ir);var Pe=[];_.setTimeout=(e,t)=>{const r=_.now()+t,n=()=>{const a=Pe.findIndex(o=>o.cancel==n);~a&&Pe.splice(a,1),ue-=~a?1:0},i={time:r,handler:e,cancel:n};return Pe.splice(yi(r),0,i),ue+=1,Ei(),i};var yi=e=>~(~Pe.findIndex(t=>t.time>e)||~Pe.length);_.cancel=e=>{At.delete(e),Pr.delete(e),Ir.delete(e),_r.delete(e),Ar.delete(e)};_.sync=e=>{ur=!0,_.batchedUpdates(e),ur=!1};_.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...i){t=i,_.onStart(r)}return n.handler=e,n.cancel=()=>{At.delete(r),t=null},n};var Cr=typeof window<"u"?window.requestAnimationFrame:()=>{};_.use=e=>Cr=e;_.now=typeof performance<"u"?()=>performance.now():Date.now;_.batchedUpdates=e=>e();_.catch=console.error;_.frameLoop="always";_.advance=()=>{_.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ti()};var oe=-1,ue=0,ur=!1;function nt(e,t){ur?(t.delete(e),e(0)):(t.add(e),Ei())}function Ei(){oe<0&&(oe=0,_.frameLoop!=="demand"&&Cr(bi))}function ho(){oe=-1}function bi(){~oe&&(Cr(bi),_.batchedUpdates(Ti))}function Ti(){const e=oe;oe=_.now();const t=yi(oe);if(t&&(xi(Pe.splice(0,t),r=>r.handler()),ue-=t),!ue){ho();return}At.flush(),_r.flush(e?Math.min(64,oe-e):16.667),Pr.flush(),Ar.flush(),Ir.flush()}function it(){let e=new Set,t=e;return{add(r){ue+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return ue-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,ue-=t.size,xi(t,n=>n(r)&&e.add(n)),ue+=e.size,t=e)}}}function xi(e,t){e.forEach(r=>{try{t(r)}catch(n){_.catch(n)}})}function lr(){}var mo=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),m={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function ie(e,t){if(m.arr(e)){if(!m.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}var I=(e,t)=>e.forEach(t);function re(e,t,r){if(m.arr(e)){for(let n=0;n<e.length;n++)t.call(r,e[n],"".concat(n));return}for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}var G=e=>m.und(e)?[]:m.arr(e)?e:[e];function Ge(e,t){if(e.size){const r=Array.from(e);e.clear(),I(r,t)}}var Ue=(e,...t)=>Ge(e,r=>r(...t)),wr=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Or,Si,le=null,_i=!1,Nr=lr,po=e=>{e.to&&(Si=e.to),e.now&&(_.now=e.now),e.colors!==void 0&&(le=e.colors),e.skipAnimation!=null&&(_i=e.skipAnimation),e.createStringInterpolator&&(Or=e.createStringInterpolator),e.requestAnimationFrame&&_.use(e.requestAnimationFrame),e.batchedUpdates&&(_.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Nr=e.willAdvance),e.frameLoop&&(_.frameLoop=e.frameLoop)},ke=new Set,V=[],Ut=[],Et=0,Pt={get idle(){return!ke.size&&!V.length},start(e){Et>e.priority?(ke.add(e),_.onStart(vo)):(Ai(e),_(fr))},advance:fr,sort(e){if(Et)_.onFrame(()=>Pt.sort(e));else{const t=V.indexOf(e);~t&&(V.splice(t,1),Pi(e))}},clear(){V=[],ke.clear()}};function vo(){ke.forEach(Ai),ke.clear(),_(fr)}function Ai(e){V.includes(e)||Pi(e)}function Pi(e){V.splice(go(V,t=>t.priority>e.priority),0,e)}function fr(e){const t=Ut;for(let r=0;r<V.length;r++){const n=V[r];Et=n.priority,n.idle||(Nr(n),n.advance(e),n.idle||t.push(n))}return Et=0,Ut=V,Ut.length=0,V=t,V.length>0}function go(e,t){const r=e.findIndex(t);return r<0?e.length:r}var yo=(e,t,r)=>Math.min(Math.max(r,e),t),Eo={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Q="[-+]?\\d*\\.?\\d+",bt=Q+"%";function It(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var bo=new RegExp("rgb"+It(Q,Q,Q)),To=new RegExp("rgba"+It(Q,Q,Q,Q)),xo=new RegExp("hsl"+It(Q,bt,bt)),So=new RegExp("hsla"+It(Q,bt,bt,Q)),_o=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ao=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Po=/^#([0-9a-fA-F]{6})$/,Io=/^#([0-9a-fA-F]{8})$/;function Co(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Po.exec(e))?parseInt(t[1]+"ff",16)>>>0:le&&le[e]!==void 0?le[e]:(t=bo.exec(e))?(Se(t[1])<<24|Se(t[2])<<16|Se(t[3])<<8|255)>>>0:(t=To.exec(e))?(Se(t[1])<<24|Se(t[2])<<16|Se(t[3])<<8|un(t[4]))>>>0:(t=_o.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Io.exec(e))?parseInt(t[1],16)>>>0:(t=Ao.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=xo.exec(e))?(sn(on(t[1]),ft(t[2]),ft(t[3]))|255)>>>0:(t=So.exec(e))?(sn(on(t[1]),ft(t[2]),ft(t[3]))|un(t[4]))>>>0:null}function Gt(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function sn(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,a=Gt(i,n,e+1/3),o=Gt(i,n,e),s=Gt(i,n,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Se(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function on(e){return(parseFloat(e)%360+360)%360/360}function un(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ft(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function ln(e){let t=Co(e);if(t===null)return e;t=t||0;const r=(t&4278190080)>>>24,n=(t&16711680)>>>16,i=(t&65280)>>>8,a=(t&255)/255;return"rgba(".concat(r,", ").concat(n,", ").concat(i,", ").concat(a,")")}var qe=(e,t,r)=>{if(m.fun(e))return e;if(m.arr(e))return qe({range:e,output:t,extrapolate:r});if(m.str(e.output[0]))return Or(e);const n=e,i=n.output,a=n.range||[0,1],o=n.extrapolateLeft||n.extrapolate||"extend",s=n.extrapolateRight||n.extrapolate||"extend",u=n.easing||(l=>l);return l=>{const f=Oo(l,a);return wo(l,a[f],a[f+1],i[f],i[f+1],u,o,s,n.map)}};function wo(e,t,r,n,i,a,o,s,u){let l=u?u(e):e;if(l<t){if(o==="identity")return l;o==="clamp"&&(l=t)}if(l>r){if(s==="identity")return l;s==="clamp"&&(l=r)}return n===i?n:t===r?e<=t?n:i:(t===-1/0?l=-l:r===1/0?l=l-t:l=(l-t)/(r-t),l=a(l),n===-1/0?l=-l:i===1/0?l=l+n:l=l*(i-n)+n,l)}function Oo(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}var No=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,i=t==="end"?Math.floor(n):Math.ceil(n);return yo(0,1,i/e)},Tt=1.70158,ct=Tt*1.525,fn=Tt+1,cn=2*Math.PI/3,hn=2*Math.PI/4.5,ht=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Ro={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>fn*e*e*e-Tt*e*e,easeOutBack:e=>1+fn*Math.pow(e-1,3)+Tt*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((ct+1)*2*e-ct)/2:(Math.pow(2*e-2,2)*((ct+1)*(e*2-2)+ct)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*cn),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*cn)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*hn))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*hn)/2+1,easeInBounce:e=>1-ht(1-e),easeOutBounce:ht,easeInOutBounce:e=>e<.5?(1-ht(1-2*e))/2:(1+ht(2*e-1))/2,steps:No},Xe=Symbol.for("FluidValue.get"),Oe=Symbol.for("FluidValue.observers"),j=e=>!!(e&&e[Xe]),F=e=>e&&e[Xe]?e[Xe]():e,dn=e=>e[Oe]||null;function Mo(e,t){e.eventObserved?e.eventObserved(t):e(t)}function ze(e,t){const r=e[Oe];r&&r.forEach(n=>{Mo(n,t)})}var Ii=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ho(this,e)}},Ho=(e,t)=>Ci(e,Xe,t);function Ne(e,t){if(e[Xe]){let r=e[Oe];r||Ci(e,Oe,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function We(e,t){const r=e[Oe];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[Oe]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var Ci=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),vt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Lo=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,mn=new RegExp("(".concat(vt.source,")(%|[a-z]+)"),"i"),Bo=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ct=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,wi=e=>{const[t,r]=Fo(e);if(!t||wr())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(r);return i||e}else{if(r&&Ct.test(r))return wi(r);if(r)return r}return e},Fo=e=>{const t=Ct.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]},kt,Do=(e,t,r,n,i)=>"rgba(".concat(Math.round(t),", ").concat(Math.round(r),", ").concat(Math.round(n),", ").concat(i,")"),Oi=e=>{kt||(kt=le?new RegExp("(".concat(Object.keys(le).join("|"),")(?!\\w)"),"g"):/^\b$/);const t=e.output.map(a=>F(a).replace(Ct,wi).replace(Lo,ln).replace(kt,ln)),r=t.map(a=>a.match(vt).map(Number)),i=r[0].map((a,o)=>r.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(a=>qe({...e,output:a}));return a=>{var u;const o=!mn.test(t[0])&&((u=t.find(l=>mn.test(l)))==null?void 0:u.replace(vt,""));let s=0;return t[0].replace(vt,()=>"".concat(i[s++](a)).concat(o||"")).replace(Bo,Do)}},Rr="react-spring: ",Ni=e=>{const t=e;let r=!1;if(typeof t!="function")throw new TypeError("".concat(Rr,"once requires a function parameter"));return(...n)=>{r||(t(...n),r=!0)}},Uo=Ni(console.warn);function Go(){Uo("".concat(Rr,'The "interpolate" function is deprecated in v9 (use "to" instead)'))}var ko=Ni(console.warn);function jo(){ko("".concat(Rr,'Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions'))}function wt(e){return m.str(e)&&(e[0]=="#"||/\d/.test(e)||!wr()&&Ct.test(e)||e in(le||{}))}var Mr=wr()?x.useEffect:x.useLayoutEffect,Vo=()=>{const e=x.useRef(!1);return Mr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Ri(){const e=x.useState()[1],t=Vo();return()=>{t.current&&e(Math.random())}}function $o(e,t){const[r]=x.useState(()=>({inputs:t,result:e()})),n=x.useRef(),i=n.current;let a=i;return a?t&&a.inputs&&qo(t,a.inputs)||(a={inputs:t,result:e()}):a=r,x.useEffect(()=>{n.current=a,i==r&&(r.inputs=r.result=void 0)},[a]),a.result}function qo(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Mi=e=>x.useEffect(e,Xo),Xo=[];function pn(e){const t=x.useRef();return x.useEffect(()=>{t.current=e}),t.current}var Qe=Symbol.for("Animated:node"),zo=e=>!!e&&e[Qe]===e,K=e=>e&&e[Qe],Hr=(e,t)=>mo(e,Qe,t),Ot=e=>e&&e[Qe]&&e[Qe].getPayload(),Hi=class{constructor(){Hr(this,this)}getPayload(){return this.payload||[]}},at=class extends Hi{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,m.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new at(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return m.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,m.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ze=class extends at{constructor(e){super(0),this._string=null,this._toString=qe({output:[e,e]})}static create(e){return new Ze(e)}getValue(){const e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(m.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=qe({output:[this.getValue(),e]})),this._value=0,super.reset()}},xt={dependencies:null},Nt=class extends Hi{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return re(this.source,(r,n)=>{zo(r)?t[n]=r.getValue(e):j(r)?t[n]=F(r):e||(t[n]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&I(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return re(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){xt.dependencies&&j(e)&&xt.dependencies.add(e);const t=Ot(e);t&&I(t,r=>this.add(r))}},Li=class extends Nt{constructor(e){super(e)}static create(e){return new Li(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((r,n)=>r.setValue(e[n])).some(Boolean):(super.setValue(e.map(Wo)),!0)}};function Wo(e){return(wt(e)?Ze:at).create(e)}function cr(e){const t=K(e);return t?t.constructor:m.arr(e)?Li:wt(e)?Ze:at}var vn=(e,t)=>{const r=!m.fun(e)||e.prototype&&e.prototype.isReactComponent;return x.forwardRef((n,i)=>{const a=x.useRef(null),o=r&&x.useCallback(g=>{a.current=Yo(i,g)},[i]),[s,u]=Zo(n,t),l=Ri(),f=()=>{const g=a.current;if(r&&!g)return;(g?t.applyAnimatedValues(g,s.getValue(!0)):!1)===!1&&l()},c=new Qo(f,u),h=x.useRef();Mr(()=>(h.current=c,I(u,g=>Ne(g,c)),()=>{h.current&&(I(h.current.deps,g=>We(g,h.current)),_.cancel(h.current.update))})),x.useEffect(f,[]),Mi(()=>()=>{const g=h.current;I(g.deps,p=>We(p,g))});const d=t.getComponentProps(s.getValue());return x.createElement(e,{...d,ref:o})})},Qo=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&_.write(this.update)}};function Zo(e,t){const r=new Set;return xt.dependencies=r,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Nt(e),xt.dependencies=null,[e,r]}function Yo(e,t){return e&&(m.fun(e)?e(t):e.current=t),t}var gn=Symbol.for("AnimatedComponent"),Jo=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=i=>new Nt(i),getComponentProps:n=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},a=o=>{const s=yn(o)||"Anonymous";return m.str(o)?o=a[o]||(a[o]=vn(o,i)):o=o[gn]||(o[gn]=vn(o,i)),o.displayName="Animated(".concat(s,")"),o};return re(e,(o,s)=>{m.arr(e)&&(s=yn(o)),a[s]=a(o)}),{animated:a}},yn=e=>m.str(e)?e:e&&m.str(e.displayName)?e.displayName:m.fun(e)&&e.name||null;function me(e,...t){return m.fun(e)?e(...t):e}var je=(e,t)=>e===!0||!!(t&&e&&(m.fun(e)?e(t):G(e).includes(t))),Bi=(e,t)=>m.obj(e)?t&&e[t]:e,Fi=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Ko=e=>e,Lr=(e,t=Ko)=>{let r=eu;e.default&&e.default!==!0&&(e=e.default,r=Object.keys(e));const n={};for(const i of r){const a=t(e[i],i);m.und(a)||(n[i]=a)}return n},eu=["config","onProps","onStart","onChange","onPause","onResume","onRest"],tu={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function ru(e){const t={};let r=0;if(re(e,(n,i)=>{tu[i]||(t[i]=n,r++)}),r)return t}function Di(e){const t=ru(e);if(t){const r={to:t};return re(e,(n,i)=>i in t||(r[i]=n)),r}return{...e}}function Ye(e){return e=F(e),m.arr(e)?e.map(Ye):wt(e)?Z.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function nu(e){for(const t in e)return!0;return!1}function hr(e){return m.fun(e)||m.arr(e)&&m.obj(e[0])}function iu(e,t){var r;(r=e.ref)==null||r.delete(e),t==null||t.delete(e)}function au(e,t){var r;t&&e.ref!==t&&((r=e.ref)==null||r.delete(e),t.add(e),e.ref=t)}var su={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},dr={...su.default,mass:1,damping:1,easing:Ro.linear,clamp:!1},ou=class{constructor(){this.velocity=0,Object.assign(this,dr)}};function uu(e,t,r){r&&(r={...r},En(r,t),t={...r,...t}),En(e,t),Object.assign(e,t);for(const o in dr)e[o]==null&&(e[o]=dr[o]);let{frequency:n,damping:i}=e;const{mass:a}=e;return m.und(n)||(n<.01&&(n=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/n,2)*a,e.friction=4*Math.PI*i*a/n),e}function En(e,t){if(!m.und(t.decay))e.duration=void 0;else{const r=!m.und(t.tension)||!m.und(t.friction);(r||!m.und(t.frequency)||!m.und(t.damping)||!m.und(t.mass))&&(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}}var bn=[],lu=class{constructor(){this.changed=!1,this.values=bn,this.toValues=null,this.fromValues=bn,this.config=new ou,this.immediate=!1}};function Ui(e,{key:t,props:r,defaultProps:n,state:i,actions:a}){return new Promise((o,s)=>{var g;let u,l,f=je((g=r.cancel)!=null?g:n==null?void 0:n.cancel,t);if(f)d();else{m.und(r.pause)||(i.paused=je(r.pause,t));let p=n==null?void 0:n.pause;p!==!0&&(p=i.paused||je(p,t)),u=me(r.delay||0,t),p?(i.resumeQueue.add(h),a.pause()):(a.resume(),h())}function c(){i.resumeQueue.add(h),i.timeouts.delete(l),l.cancel(),u=l.time-_.now()}function h(){u>0&&!Z.skipAnimation?(i.delayed=!0,l=_.setTimeout(d,u),i.pauseQueue.add(c),i.timeouts.add(l)):d()}function d(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(c),i.timeouts.delete(l),e<=(i.cancelId||0)&&(f=!0);try{a.start({...r,callId:e,cancel:f},o)}catch(p){s(p)}}})}var Br=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?Ie(e.get()):t.every(r=>r.noop)?Gi(e.get()):z(e.get(),t.every(r=>r.finished)),Gi=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),z=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),Ie=e=>({value:e,cancelled:!0,finished:!1});function ki(e,t,r,n){const{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:u}=r;return!a&&e===s&&!t.reset?u:r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const l=Lr(t,(y,v)=>v==="onRest"?void 0:y);let f,c;const h=new Promise((y,v)=>(f=y,c=v)),d=y=>{const v=i<=(r.cancelId||0)&&Ie(n)||i!==r.asyncId&&z(n,!1);if(v)throw y.result=v,c(y),y},g=(y,v)=>{const T=new Tn,E=new xn;return(async()=>{if(Z.skipAnimation)throw Je(r),E.result=z(n,!1),c(E),E;d(T);const A=m.obj(y)?{...y}:{...v,to:y};A.parentId=i,re(l,(L,M)=>{m.und(A[M])&&(A[M]=L)});const w=await n.start(A);return d(T),r.paused&&await new Promise(L=>{r.resumeQueue.add(L)}),w})()};let p;if(Z.skipAnimation)return Je(r),z(n,!1);try{let y;m.arr(e)?y=(async v=>{for(const T of v)await g(T)})(e):y=Promise.resolve(e(g,n.stop.bind(n))),await Promise.all([y.then(f),h]),p=z(n.get(),!0,!1)}catch(y){if(y instanceof Tn)p=y.result;else if(y instanceof xn)p=y.result;else throw y}finally{i==r.asyncId&&(r.asyncId=a,r.asyncTo=a?s:void 0,r.promise=a?u:void 0)}return m.fun(o)&&_.batchedUpdates(()=>{o(p,n,n.item)}),p})()}function Je(e,t){Ge(e.timeouts,r=>r.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Tn=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},xn=class extends Error{constructor(){super("SkipAnimationSignal")}},mr=e=>e instanceof Fr,fu=1,Fr=class extends Ii{constructor(){super(...arguments),this.id=fu++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=K(this);return e&&e.getValue()}to(...e){return Z.to(this,e)}interpolate(...e){return Go(),Z.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){ze(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Pt.sort(this),ze(this,{type:"priority",parent:this,priority:e})}},ge=Symbol.for("SpringPhase"),ji=1,pr=2,vr=4,jt=e=>(e[ge]&ji)>0,se=e=>(e[ge]&pr)>0,Le=e=>(e[ge]&vr)>0,Sn=(e,t)=>t?e[ge]|=pr|ji:e[ge]&=~pr,_n=(e,t)=>t?e[ge]|=vr:e[ge]&=~vr,cu=class extends Fr{constructor(e,t){if(super(),this.animation=new lu,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!m.und(e)||!m.und(t)){const r=m.obj(e)?{...e}:{...t,from:e};m.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(se(this)||this._state.asyncTo)||Le(this)}get goal(){return F(this.animation.to)}get velocity(){const e=K(this);return e instanceof at?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return jt(this)}get isAnimating(){return se(this)}get isPaused(){return Le(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{toValues:i}=n;const{config:a}=n,o=Ot(n.to);!o&&j(n.to)&&(i=G(F(n.to))),n.values.forEach((l,f)=>{if(l.done)return;const c=l.constructor==Ze?1:o?o[f].lastPosition:i[f];let h=n.immediate,d=c;if(!h){if(d=l.lastPosition,a.tension<=0){l.done=!0;return}let g=l.elapsedTime+=e;const p=n.fromValues[f],y=l.v0!=null?l.v0:l.v0=m.arr(a.velocity)?a.velocity[f]:a.velocity;let v;const T=a.precision||(p==c?.005:Math.min(1,Math.abs(c-p)*.001));if(m.und(a.duration))if(a.decay){const E=a.decay===!0?.998:a.decay,A=Math.exp(-(1-E)*g);d=p+y/(1-E)*(1-A),h=Math.abs(l.lastPosition-d)<=T,v=y*A}else{v=l.lastVelocity==null?y:l.lastVelocity;const E=a.restVelocity||T/10,A=a.clamp?0:a.bounce,w=!m.und(A),L=p==c?l.v0>0:p<c;let M,st=!1;const k=1,Re=Math.ceil(e/k);for(let X=0;X<Re&&(M=Math.abs(v)>E,!(!M&&(h=Math.abs(c-d)<=T,h)));++X){w&&(st=d==c||d>c==L,st&&(v=-v*A,d=c));const Ee=-a.tension*1e-6*(d-c),be=-a.friction*.001*v,Ji=(Ee+be)/a.mass;v=v+Ji*k,d=d+v*k}}else{let E=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,g=l.elapsedTime+=e)),E=(a.progress||0)+g/this._memoizedDuration,E=E>1?1:E<0?0:E,l.durationProgress=E),d=p+a.easing(E)*(c-p),v=(d-l.lastPosition)/e,h=E==1}l.lastVelocity=v,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),h=!0)}o&&!o[f].done&&(h=!1),h?l.done=!0:t=!1,l.setValue(d,a.round)&&(r=!0)});const s=K(this),u=s.getValue();if(t){const l=F(n.to);(u!==l||r)&&!a.decay?(s.setValue(l),this._onChange(l)):r&&a.decay&&this._onChange(u),this._stop()}else r&&this._onChange(u)}set(e){return _.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(se(this)){const{to:e,config:t}=this.animation;_.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return m.und(e)?(r=this.queue||[],this.queue=[]):r=[m.obj(e)?e:{...t,to:e}],Promise.all(r.map(n=>this._update(n))).then(n=>Br(this,n))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Je(this._state,e&&this._lastCallId),_.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:n}=e;r=m.obj(r)?r[t]:r,(r==null||hr(r))&&(r=void 0),n=m.obj(n)?n[t]:n,n==null&&(n=void 0);const i={to:r,from:n};return jt(this)||(e.reverse&&([r,n]=[n,r]),n=F(n),m.und(n)?K(this)||this._set(r):this._set(n)),i}_update({...e},t){const{key:r,defaultProps:n}=this;e.default&&Object.assign(n,Lr(e,(o,s)=>/^on/.test(s)?Bi(o,r):o)),Pn(this,e,"onProps"),Fe(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Ui(++this._lastCallId,{key:r,props:e,defaultProps:n,state:a,actions:{pause:()=>{Le(this)||(_n(this,!0),Ue(a.pauseQueue),Fe(this,"onPause",z(this,Be(this,this.animation.to)),this))},resume:()=>{Le(this)&&(_n(this,!1),se(this)&&this._resume(),Ue(a.resumeQueue),Fe(this,"onResume",z(this,Be(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=Vi(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(Ie(this));const n=!m.und(e.to),i=!m.und(e.from);if(n||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return r(Ie(this));const{key:a,defaultProps:o,animation:s}=this,{to:u,from:l}=s;let{to:f=u,from:c=l}=e;i&&!n&&(!t.default||m.und(f))&&(f=c),t.reverse&&([f,c]=[c,f]);const h=!ie(c,l);h&&(s.from=c),c=F(c);const d=!ie(f,u);d&&this._focus(f);const g=hr(t.to),{config:p}=s,{decay:y,velocity:v}=p;(n||i)&&(p.velocity=0),t.config&&!g&&uu(p,me(t.config,a),t.config!==o.config?me(o.config,a):void 0);let T=K(this);if(!T||m.und(f))return r(z(this,!0));const E=m.und(t.reset)?i&&!t.default:!m.und(c)&&je(t.reset,a),A=E?c:this.get(),w=Ye(f),L=m.num(w)||m.arr(w)||wt(w),M=!g&&(!L||je(o.immediate||t.immediate,a));if(d){const X=cr(f);if(X!==T.constructor)if(M)T=this._set(w);else throw Error("Cannot animate between ".concat(T.constructor.name," and ").concat(X.name,', as the "to" prop suggests'))}const st=T.constructor;let k=j(f),Re=!1;if(!k){const X=E||!jt(this)&&h;(d||X)&&(Re=ie(Ye(A),w),k=!Re),(!ie(s.immediate,M)&&!M||!ie(p.decay,y)||!ie(p.velocity,v))&&(k=!0)}if(Re&&se(this)&&(s.changed&&!E?k=!0:k||this._stop(u)),!g&&((k||j(u))&&(s.values=T.getPayload(),s.toValues=j(f)?null:st==Ze?[1]:G(w)),s.immediate!=M&&(s.immediate=M,!M&&!E&&this._set(u)),k)){const{onRest:X}=s;I(du,be=>Pn(this,t,be));const Ee=z(this,Be(this,u));Ue(this._pendingCalls,Ee),this._pendingCalls.add(r),s.changed&&_.batchedUpdates(()=>{var be;s.changed=!E,X==null||X(Ee,this),E?me(o.onRest,Ee):(be=s.onStart)==null||be.call(s,Ee,this)})}E&&this._set(A),g?r(ki(t.to,t,this._state,this)):k?this._start():se(this)&&!d?this._pendingCalls.add(r):r(Gi(A))}_focus(e){const t=this.animation;e!==t.to&&(dn(this)&&this._detach(),t.to=e,dn(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;j(t)&&(Ne(t,this),mr(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;j(e)&&We(e,this)}_set(e,t=!0){const r=F(e);if(!m.und(r)){const n=K(this);if(!n||!ie(r,n.getValue())){const i=cr(r);!n||n.constructor!=i?Hr(this,i.create(r)):n.setValue(r),n&&_.batchedUpdates(()=>{this._onChange(r,t)})}}return K(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Fe(this,"onStart",z(this,Be(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),me(this.animation.onChange,e,this)),me(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;K(this).reset(F(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),se(this)||(Sn(this,!0),Le(this)||this._resume())}_resume(){Z.skipAnimation?this.finish():Pt.start(this)}_stop(e,t){if(se(this)){Sn(this,!1);const r=this.animation;I(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),ze(this,{type:"idle",parent:this});const n=t?Ie(this.get()):z(this.get(),Be(this,e!=null?e:r.to));Ue(this._pendingCalls,n),r.changed&&(r.changed=!1,Fe(this,"onRest",n,this))}}};function Be(e,t){const r=Ye(t),n=Ye(e.get());return ie(n,r)}function Vi(e,t=e.loop,r=e.to){const n=me(t);if(n){const i=n!==!0&&Di(n),a=(i||e).reverse,o=!i||i.reset;return Ke({...e,loop:t,default:!1,pause:void 0,to:!a||hr(r)?r:void 0,from:o?e.from:void 0,reset:o,...i})}}function Ke(e){const{to:t,from:r}=e=Di(e),n=new Set;return m.obj(t)&&An(t,n),m.obj(r)&&An(r,n),e.keys=n.size?Array.from(n):null,e}function hu(e){const t=Ke(e);return m.und(t.default)&&(t.default=Lr(t)),t}function An(e,t){re(e,(r,n)=>r!=null&&t.add(n))}var du=["onStart","onRest","onChange","onPause","onResume"];function Pn(e,t,r){e.animation[r]=t[r]!==Fi(t,r)?Bi(t[r],e.key):void 0}function Fe(e,t,...r){var n,i,a,o;(i=(n=e.animation)[t])==null||i.call(n,...r),(o=(a=e.defaultProps)[t])==null||o.call(a,...r)}var mu=["onStart","onChange","onRest"],pu=1,vu=class{constructor(e,t){this.id=pu++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,r)=>e[r]=t.get()),e}set(e){for(const t in e){const r=e[t];m.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(Ke(e)),this}start(e){let{queue:t}=this;return e?t=G(e).map(Ke):this.queue=[],this._flush?this._flush(this,t):(Wi(this,t),gr(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;I(G(t),n=>r[n].stop(!!e))}else Je(this._state,this._lastAsyncId),this.each(r=>r.stop(!!e));return this}pause(e){if(m.und(e))this.start({pause:!0});else{const t=this.springs;I(G(e),r=>t[r].pause())}return this}resume(e){if(m.und(e))this.start({pause:!1});else{const t=this.springs;I(G(e),r=>t[r].resume())}return this}each(e){re(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,Ge(e,([s,u])=>{u.value=this.get(),s(u,this,this._item)}));const a=!n&&this._started,o=i||a&&r.size?this.get():null;i&&t.size&&Ge(t,([s,u])=>{u.value=o,s(u,this,this._item)}),a&&(this._started=!1,Ge(r,([s,u])=>{u.value=o,s(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;_.onFrame(this._onFrame)}};function gr(e,t){return Promise.all(t.map(r=>$i(e,r))).then(r=>Br(e,r))}async function $i(e,t,r){const{keys:n,to:i,from:a,loop:o,onRest:s,onResolve:u}=t,l=m.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);const f=m.arr(i)||m.fun(i)?i:void 0;f?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):I(mu,p=>{const y=t[p];if(m.fun(y)){const v=e._events[p];t[p]=({finished:T,cancelled:E})=>{const A=v.get(y);A?(T||(A.finished=!1),E&&(A.cancelled=!0)):v.set(y,{value:null,finished:T||!1,cancelled:E||!1})},l&&(l[p]=t[p])}});const c=e._state;t.pause===!c.paused?(c.paused=t.pause,Ue(t.pause?c.pauseQueue:c.resumeQueue)):c.paused&&(t.pause=!0);const h=(n||Object.keys(e.springs)).map(p=>e.springs[p].start(t)),d=t.cancel===!0||Fi(t,"cancel")===!0;(f||d&&c.asyncId)&&h.push(Ui(++e._lastAsyncId,{props:t,state:c,actions:{pause:lr,resume:lr,start(p,y){d?(Je(c,e._lastAsyncId),y(Ie(e))):(p.onRest=s,y(ki(f,p,c,e)))}}})),c.paused&&await new Promise(p=>{c.resumeQueue.add(p)});const g=Br(e,await Promise.all(h));if(o&&g.finished&&!(r&&g.noop)){const p=Vi(t,o,i);if(p)return Wi(e,[p]),$i(e,p,!0)}return u&&_.batchedUpdates(()=>u(g,e,e.item)),g}function In(e,t){const r={...e.springs};return t&&I(G(t),n=>{m.und(n.keys)&&(n=Ke(n)),m.obj(n.to)||(n={...n,to:void 0}),zi(r,n,i=>Xi(i))}),qi(e,r),r}function qi(e,t){re(t,(r,n)=>{e.springs[n]||(e.springs[n]=r,Ne(r,e))})}function Xi(e,t){const r=new cu;return r.key=e,t&&Ne(r,t),r}function zi(e,t,r){t.keys&&I(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function Wi(e,t){I(t,r=>{zi(e.springs,r,n=>Xi(n,e))})}var Rt=({children:e,...t})=>{const r=x.useContext(St),n=t.pause||!!r.pause,i=t.immediate||!!r.immediate;t=$o(()=>({pause:n,immediate:i}),[n,i]);const{Provider:a}=St;return x.createElement(a,{value:t},e)},St=gu(Rt,{});Rt.Provider=St.Provider;Rt.Consumer=St.Consumer;function gu(e,t){return Object.assign(e,x.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var yu=()=>{const e=[],t=function(n){jo();const i=[];return I(e,(a,o)=>{if(m.und(n))i.push(a.start());else{const s=r(n,a,o);s&&i.push(a.start(s))}}),i};t.current=e,t.add=function(n){e.includes(n)||e.push(n)},t.delete=function(n){const i=e.indexOf(n);~i&&e.splice(i,1)},t.pause=function(){return I(e,n=>n.pause(...arguments)),this},t.resume=function(){return I(e,n=>n.resume(...arguments)),this},t.set=function(n){I(e,(i,a)=>{const o=m.fun(n)?n(a,i):n;o&&i.set(o)})},t.start=function(n){const i=[];return I(e,(a,o)=>{if(m.und(n))i.push(a.start());else{const s=this._getProps(n,a,o);s&&i.push(a.start(s))}}),i},t.stop=function(){return I(e,n=>n.stop(...arguments)),this},t.update=function(n){return I(e,(i,a)=>i.update(this._getProps(n,i,a))),this};const r=function(n,i,a){return m.fun(n)?n(a,i):n};return t._getProps=r,t};function Eu(e,t,r){const n=m.fun(t)&&t;n&&!r&&(r=[]);const i=x.useMemo(()=>n||arguments.length==3?yu():void 0,[]),a=x.useRef(0),o=Ri(),s=x.useMemo(()=>({ctrls:[],queue:[],flush(v,T){const E=In(v,T);return a.current>0&&!s.queue.length&&!Object.keys(E).some(w=>!v.springs[w])?gr(v,T):new Promise(w=>{qi(v,E),s.queue.push(()=>{w(gr(v,T))}),o()})}}),[]),u=x.useRef([...s.ctrls]),l=[],f=pn(e)||0;x.useMemo(()=>{I(u.current.slice(e,f),v=>{iu(v,i),v.stop(!0)}),u.current.length=e,c(f,e)},[e]),x.useMemo(()=>{c(0,Math.min(f,e))},r);function c(v,T){for(let E=v;E<T;E++){const A=u.current[E]||(u.current[E]=new vu(null,s.flush)),w=n?n(E,A):t[E];w&&(l[E]=hu(w))}}const h=u.current.map((v,T)=>In(v,l[T])),d=x.useContext(Rt),g=pn(d),p=d!==g&&nu(d);Mr(()=>{a.current++,s.ctrls=u.current;const{queue:v}=s;v.length&&(s.queue=[],I(v,T=>T())),I(u.current,(T,E)=>{i==null||i.add(T),p&&T.start({default:d});const A=l[E];A&&(au(T,A.ref),T.ref?T.queue.push(A):T.start(A))})}),Mi(()=>()=>{I(s.ctrls,v=>v.stop(!0))});const y=h.map(v=>({...v}));return i?[y,i]:y}function Xu(e,t){const r=m.fun(e),[[n],i]=Eu(1,r?e:[e],r?[]:t);return r||arguments.length==2?[n,i]:n}var bu=class extends Fr{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=qe(...t);const r=this._get(),n=cr(r);Hr(this,n.create(r))}advance(e){const t=this._get(),r=this.get();ie(t,r)||(K(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Cn(this._active)&&Vt(this)}_get(){const e=m.arr(this.source)?this.source.map(F):G(F(this.source));return this.calc(...e)}_start(){this.idle&&!Cn(this._active)&&(this.idle=!1,I(Ot(this),e=>{e.done=!1}),Z.skipAnimation?(_.batchedUpdates(()=>this.advance()),Vt(this)):Pt.start(this))}_attach(){let e=1;I(G(this.source),t=>{j(t)&&Ne(t,this),mr(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){I(G(this.source),e=>{j(e)&&We(e,this)}),this._active.clear(),Vt(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=G(this.source).reduce((t,r)=>Math.max(t,(mr(r)?r.priority:0)+1),0))}};function Tu(e){return e.idle!==!1}function Cn(e){return!e.size||Array.from(e).every(Tu)}function Vt(e){e.idle||(e.idle=!0,I(Ot(e),t=>{t.done=!0}),ze(e,{type:"idle",parent:e}))}Z.assign({createStringInterpolator:Oi,to:(e,t)=>new bu(e,t)});var Qi=/^--/;function xu(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Qi.test(e)&&!(Ve.hasOwnProperty(e)&&Ve[e])?t+"px":(""+t).trim()}var wn={};function Su(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:n,children:i,scrollTop:a,scrollLeft:o,viewBox:s,...u}=t,l=Object.values(u),f=Object.keys(u).map(c=>r||e.hasAttribute(c)?c:wn[c]||(wn[c]=c.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));i!==void 0&&(e.textContent=i);for(const c in n)if(n.hasOwnProperty(c)){const h=xu(c,n[c]);Qi.test(c)?e.style.setProperty(c,h):e.style[c]=h}f.forEach((c,h)=>{e.setAttribute(c,l[h])}),a!==void 0&&(e.scrollTop=a),o!==void 0&&(e.scrollLeft=o),s!==void 0&&e.setAttribute("viewBox",s)}var Ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_u=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Au=["Webkit","Ms","Moz","O"];Ve=Object.keys(Ve).reduce((e,t)=>(Au.forEach(r=>e[_u(r,t)]=e[t]),e),Ve);var Pu=/^(matrix|translate|scale|rotate|skew)/,Iu=/^(translate)/,Cu=/^(rotate|skew)/,$t=(e,t)=>m.num(e)&&e!==0?e+t:e,gt=(e,t)=>m.arr(e)?e.every(r=>gt(r,t)):m.num(e)?e===t:parseFloat(e)===t,wu=class extends Nt{constructor({x:e,y:t,z:r,...n}){const i=[],a=[];(e||t||r)&&(i.push([e||0,t||0,r||0]),a.push(o=>["translate3d(".concat(o.map(s=>$t(s,"px")).join(","),")"),gt(o,0)])),re(n,(o,s)=>{if(s==="transform")i.push([o||""]),a.push(u=>[u,u===""]);else if(Pu.test(s)){if(delete n[s],m.und(o))return;const u=Iu.test(s)?"px":Cu.test(s)?"deg":"";i.push(G(o)),a.push(s==="rotate3d"?([l,f,c,h])=>["rotate3d(".concat(l,",").concat(f,",").concat(c,",").concat($t(h,u),")"),gt(h,0)]:l=>["".concat(s,"(").concat(l.map(f=>$t(f,u)).join(","),")"),gt(l,s.startsWith("scale")?1:0)])}}),i.length&&(n.transform=new Ou(i,a)),super(n)}},Ou=class extends Ii{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return I(this.inputs,(r,n)=>{const i=F(r[0]),[a,o]=this.transforms[n](m.arr(i)?i:r.map(F));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&I(this.inputs,t=>I(t,r=>j(r)&&Ne(r,this)))}observerRemoved(e){e==0&&I(this.inputs,t=>I(t,r=>j(r)&&We(r,this)))}eventObserved(e){e.type=="change"&&(this._value=null),ze(this,e)}},Nu=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Z.assign({batchedUpdates:ta.unstable_batchedUpdates,createStringInterpolator:Oi,colors:Eo});var Ru=Jo(Nu,{applyAnimatedValues:Su,createAnimatedStyle:e=>new wu(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}),zu=Ru.animated;function et(e){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(e)}function Mu(e,t){if(et(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(et(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hu(e){var t=Mu(e,"string");return et(t)=="symbol"?t:t+""}function Zi(e,t,r){return t=Hu(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Yi=function(e){var t=e.decode,r=t===void 0?!0:t,n=e.crossOrigin,i=n===void 0?"":n;return function(a){return new Promise(function(o,s){var u=new Image;i&&(u.crossOrigin=i),u.onload=function(){r&&u.decode?u.decode().then(o).catch(s):o()},u.onerror=s,u.src=a})}};function On(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?On(Object(r),!0).forEach(function(n){Zi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):On(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Lu=function(t){return t.filter(function(r){return r})},Bu=function(t){return Array.isArray(t)?t:[t]},D={},Fu=function(t,r){var n=!1;return new Promise(function(i,a){var o=function(u){return r(u).then(function(){n=!0,i(u)})};t.reduce(function(s,u){return s.catch(function(){if(!n)return o(u)})},o(t.shift())).catch(a)})};function Du(e){var t=e.srcList,r=e.imgPromise,n=r===void 0?Yi({decode:!0}):r,i=e.useSuspense,a=i===void 0?!0:i,o=x.useState(!1),s=o[1],u=Lu(Bu(t)),l=u.join("");if(D[l]||(D[l]={promise:Fu(u,n),cache:"pending",error:null}),D[l].cache==="resolved")return{src:D[l].src,isLoading:!1,error:null};if(D[l].cache==="rejected"){if(a)throw D[l].error;return{isLoading:!1,error:D[l].error,src:void 0}}if(D[l].promise.then(function(f){D[l]=dt(dt({},D[l]),{},{cache:"resolved",src:f}),a||s(l)}).catch(function(f){D[l]=dt(dt({},D[l]),{},{cache:"rejected",error:f}),a||s(l)}),a)throw D[l].promise;return{isLoading:!0,src:void 0,error:null}}var Uu=["decode","src","loader","unloader","container","loaderContainer","unloaderContainer","imgPromise","crossorigin","useSuspense"];function Nn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nn(Object(r),!0).forEach(function(n){Zi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var qt=function(t){return t};function Wu(e){var t=e.decode,r=t===void 0?!0:t,n=e.src,i=n===void 0?[]:n,a=e.loader,o=a===void 0?null:a,s=e.unloader,u=s===void 0?null:s,l=e.container,f=l===void 0?qt:l,c=e.loaderContainer,h=c===void 0?qt:c,d=e.unloaderContainer,g=d===void 0?qt:d,p=e.imgPromise,y=e.crossorigin,v=e.useSuspense,T=v===void 0?!1:v,E=yr(e,Uu);p=p||Yi({decode:r,crossOrigin:y});var A=Du({srcList:i,imgPromise:p,useSuspense:T}),w=A.src,L=A.isLoading;return w?f(U.createElement("img",Gu({src:w},E))):!T&&L?h(o):!T&&u?g(u):null}export{gi as C,jr as H,Wu as I,ao as M,b as _,Ce as a,ee as b,Vu as c,Xu as d,zu as e,su as f,$u as g,qu as h,Sr as u};