@x4b/banner 60.0.0 → 60.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,39 +1,39 @@
1
- (function(te,re){typeof exports=="object"&&typeof module<"u"?re(exports,require("react"),require("@x4b/design-system"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@x4b/design-system","react-dom"],re):(te=typeof globalThis<"u"?globalThis:te||self,re(te.Banner={},te.React,te.designSystem,te.ReactDOM))})(this,function(te,re,ce,ba){"use strict";const Ea=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function wa(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const w=wa(re),ye=Ea(re);var xt=function(e,t){return xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},xt(e,t)};function fe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");xt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var R=function(){return R=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},R.apply(this,arguments)};function St(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 a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function be(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var gr={exports:{}},k={};/** @license React v16.13.1
1
+ (function(re,ne){typeof exports=="object"&&typeof module<"u"?ne(exports,require("react"),require("@x4b/design-system"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@x4b/design-system","react-dom"],ne):(re=typeof globalThis<"u"?globalThis:re||self,ne(re.Banner={},re.React,re.designSystem,re.ReactDOM))})(this,function(re,ne,le,ba){"use strict";const Ea=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function wa(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const w=wa(ne),be=Ea(ne);var St=function(e,t){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},St(e,t)};function he(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");St(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var M=function(){return M=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},M.apply(this,arguments)};function Rt(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 a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function Ee(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var gr={exports:{}},k={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var yr;function Ta(){if(yr)return k;yr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,I=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function v(g){if(typeof g=="object"&&g!==null){var L=g.$$typeof;switch(L){case t:switch(g=g.type,g){case l:case f:case n:case o:case a:case h:return g;default:switch(g=g&&g.$$typeof,g){case s:case c:case I:case E:case i:return g;default:return L}}case r:return L}}}function O(g){return v(g)===f}return k.AsyncMode=l,k.ConcurrentMode=f,k.ContextConsumer=s,k.ContextProvider=i,k.Element=t,k.ForwardRef=c,k.Fragment=n,k.Lazy=I,k.Memo=E,k.Portal=r,k.Profiler=o,k.StrictMode=a,k.Suspense=h,k.isAsyncMode=function(g){return O(g)||v(g)===l},k.isConcurrentMode=O,k.isContextConsumer=function(g){return v(g)===s},k.isContextProvider=function(g){return v(g)===i},k.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},k.isForwardRef=function(g){return v(g)===c},k.isFragment=function(g){return v(g)===n},k.isLazy=function(g){return v(g)===I},k.isMemo=function(g){return v(g)===E},k.isPortal=function(g){return v(g)===r},k.isProfiler=function(g){return v(g)===o},k.isStrictMode=function(g){return v(g)===a},k.isSuspense=function(g){return v(g)===h},k.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===f||g===o||g===a||g===h||g===m||typeof g=="object"&&g!==null&&(g.$$typeof===I||g.$$typeof===E||g.$$typeof===i||g.$$typeof===s||g.$$typeof===c||g.$$typeof===d||g.$$typeof===S||g.$$typeof===p||g.$$typeof===T)},k.typeOf=v,k}var U={};/** @license React v16.13.1
8
+ */var yr;function Ta(){if(yr)return k;yr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,I=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function m(p){if(typeof p=="object"&&p!==null){var N=p.$$typeof;switch(N){case t:switch(p=p.type,p){case l:case f:case n:case o:case a:case h:return p;default:switch(p=p&&p.$$typeof,p){case s:case c:case I:case g:case i:return p;default:return N}}case r:return N}}}function R(p){return m(p)===f}return k.AsyncMode=l,k.ConcurrentMode=f,k.ContextConsumer=s,k.ContextProvider=i,k.Element=t,k.ForwardRef=c,k.Fragment=n,k.Lazy=I,k.Memo=g,k.Portal=r,k.Profiler=o,k.StrictMode=a,k.Suspense=h,k.isAsyncMode=function(p){return R(p)||m(p)===l},k.isConcurrentMode=R,k.isContextConsumer=function(p){return m(p)===s},k.isContextProvider=function(p){return m(p)===i},k.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},k.isForwardRef=function(p){return m(p)===c},k.isFragment=function(p){return m(p)===n},k.isLazy=function(p){return m(p)===I},k.isMemo=function(p){return m(p)===g},k.isPortal=function(p){return m(p)===r},k.isProfiler=function(p){return m(p)===o},k.isStrictMode=function(p){return m(p)===a},k.isSuspense=function(p){return m(p)===h},k.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===f||p===o||p===a||p===h||p===v||typeof p=="object"&&p!==null&&(p.$$typeof===I||p.$$typeof===g||p.$$typeof===i||p.$$typeof===s||p.$$typeof===c||p.$$typeof===d||p.$$typeof===S||p.$$typeof===b||p.$$typeof===T)},k.typeOf=m,k}var U={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var br;function xa(){return br||(br=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,I=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function v(M){return typeof M=="string"||typeof M=="function"||M===n||M===f||M===o||M===a||M===h||M===m||typeof M=="object"&&M!==null&&(M.$$typeof===I||M.$$typeof===E||M.$$typeof===i||M.$$typeof===s||M.$$typeof===c||M.$$typeof===d||M.$$typeof===S||M.$$typeof===p||M.$$typeof===T)}function O(M){if(typeof M=="object"&&M!==null){var Ve=M.$$typeof;switch(Ve){case t:var P=M.type;switch(P){case l:case f:case n:case o:case a:case h:return P;default:var ge=P&&P.$$typeof;switch(ge){case s:case c:case I:case E:case i:return ge;default:return Ve}}case r:return Ve}}}var g=l,L=f,N=s,ie=i,se=t,xe=c,de=n,ve=I,$=E,ue=r,J=o,Z=a,le=h,Q=!1;function Ie(M){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Me(M)||O(M)===l}function Me(M){return O(M)===f}function He(M){return O(M)===s}function Be(M){return O(M)===i}function Fe(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function je(M){return O(M)===c}function Ge(M){return O(M)===n}function Pe(M){return O(M)===I}function B(M){return O(M)===E}function K(M){return O(M)===r}function Oe(M){return O(M)===o}function Se(M){return O(M)===a}function nt(M){return O(M)===h}U.AsyncMode=g,U.ConcurrentMode=L,U.ContextConsumer=N,U.ContextProvider=ie,U.Element=se,U.ForwardRef=xe,U.Fragment=de,U.Lazy=ve,U.Memo=$,U.Portal=ue,U.Profiler=J,U.StrictMode=Z,U.Suspense=le,U.isAsyncMode=Ie,U.isConcurrentMode=Me,U.isContextConsumer=He,U.isContextProvider=Be,U.isElement=Fe,U.isForwardRef=je,U.isFragment=Ge,U.isLazy=Pe,U.isMemo=B,U.isPortal=K,U.isProfiler=Oe,U.isStrictMode=Se,U.isSuspense=nt,U.isValidElementType=v,U.typeOf=O}()),U}(function(e){process.env.NODE_ENV==="production"?e.exports=Ta():e.exports=xa()})(gr);var Er=gr.exports,Sa={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ra={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wr={};wr[Er.ForwardRef]=Sa,wr[Er.Memo]=Ra;function Tr(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}var _;(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"})(_||(_={}));var X;(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"})(X||(X={}));var Xe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Xe||(Xe={}));function xr(e){return e.type===X.literal}function Ia(e){return e.type===X.argument}function Sr(e){return e.type===X.number}function Rr(e){return e.type===X.date}function Ir(e){return e.type===X.time}function Mr(e){return e.type===X.select}function Pr(e){return e.type===X.plural}function Ma(e){return e.type===X.pound}function Or(e){return e.type===X.tag}function Cr(e){return!!(e&&typeof e=="object"&&e.type===Xe.number)}function Rt(e){return!!(e&&typeof e=="object"&&e.type===Xe.dateTime)}var Nr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Pa=/(?:[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 Oa(e){var t={};return e.replace(Pa,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?"short":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 Ca=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Na(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ca).filter(function(m){return m.length>0}),r=[],n=0,a=t;n<a.length;n++){var o=a[n],i=o.split("/");if(i.length===0)throw new Error("Invalid number skeleton");for(var s=i[0],l=i.slice(1),f=0,c=l;f<c.length;f++){var h=c[f];if(h.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:l})}return r}function Aa(e){return e.replace(/^(.*?)-/,"")}var Ar=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_r=/^(@+)?(\+|#+)?[rs]?$/g,_a=/(\*)(0+)|(#+)(0+)|(0+)/g,Lr=/^(0+)$/;function Dr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(_r,function(r,n,a){return typeof a!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):a==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof a=="string"?a.length:0)),""}),t}function Hr(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 La(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)),!Lr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Br(e){var t={},r=Hr(e);return r||t}function Da(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.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=Aa(a.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=R(R(R({},t),{notation:"scientific"}),a.options.reduce(function(l,f){return R(R({},l),Br(f))},{}));continue;case"engineering":t=R(R(R({},t),{notation:"engineering"}),a.options.reduce(function(l,f){return R(R({},l),Br(f))},{}));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(a.options[0]);continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(_a,function(l,f,c,h,m,E){if(f)t.minimumIntegerDigits=c.length;else{if(h&&m)throw new Error("We currently do not support maximum integer digits");if(E)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Lr.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(Ar.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(Ar,function(l,f,c,h,m,E){return c==="*"?t.minimumFractionDigits=f.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:m&&E?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+E.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var o=a.options[0];o==="w"?t=R(R({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=R(R({},t),Dr(o)));continue}if(_r.test(a.stem)){t=R(R({},t),Dr(a.stem));continue}var i=Hr(a.stem);i&&(t=R(R({},t),i));var s=La(a.stem);s&&(t=R(R({},t),s))}return t}var it={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","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"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function Ha(e,t){for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(a==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===a;)o++,n++;var i=1+(o&1),s=o<2?1:3+(o>>1),l="a",f=Ba(t);for((f=="H"||f=="k")&&(s=0);s-- >0;)r+=l;for(;i-- >0;)r=f+r}else a==="J"?r+="H":r+=a}return r}function Ba(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 a=it[n||""]||it[r||""]||it["".concat(r,"-001")]||it["001"];return a[0]}var It,Fa=new RegExp("^".concat(Nr.source,"*")),ka=new RegExp("".concat(Nr.source,"*$"));function D(e,t){return{start:e,end:t}}var Ua=!!String.prototype.startsWith,za=!!String.fromCodePoint,ja=!!Object.fromEntries,Ga=!!String.prototype.codePointAt,Va=!!String.prototype.trimStart,Xa=!!String.prototype.trimEnd,Za=!!Number.isSafeInteger,Ya=Za?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Mt=!0;try{var Wa=zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Mt=((It=Wa.exec("a"))===null||It===void 0?void 0:It[0])==="a"}catch{Mt=!1}var Fr=Ua?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Pt=za?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",a=t.length,o=0,i;a>o;){if(i=t[o++],i>1114111)throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return n},kr=ja?Object.fromEntries:function(t){for(var r={},n=0,a=t;n<a.length;n++){var o=a[n],i=o[0],s=o[1];r[i]=s}return r},Ur=Ga?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var a=t.charCodeAt(r),o;return a<55296||a>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?a:(a-55296<<10)+(o-56320)+65536}},Ja=Va?function(t){return t.trimStart()}:function(t){return t.replace(Fa,"")},qa=Xa?function(t){return t.trimEnd()}:function(t){return t.replace(ka,"")};function zr(e,t){return new RegExp(e,t)}var Ot;if(Mt){var jr=zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ot=function(t,r){var n;jr.lastIndex=r;var a=jr.exec(t);return(n=a[1])!==null&&n!==void 0?n:""}}else Ot=function(t,r){for(var n=[];;){var a=Ur(t,r);if(a===void 0||Gr(a)||eo(a))break;n.push(a),r+=a>=65536?2:1}return Pt.apply(void 0,n)};var $a=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 a=[];!this.isEOF();){var o=this.char();if(o===123){var i=this.parseArgument(t,n);if(i.err)return i;a.push(i.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),a.push({type:X.pound,location:D(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(_.UNMATCHED_CLOSING_TAG,D(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Ct(this.peek()||0)){var i=this.parseTag(t,r);if(i.err)return i;a.push(i.val)}else{var i=this.parseLiteral(t,r);if(i.err)return i;a.push(i.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:X.literal,value:"<".concat(a,"/>"),location:D(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ct(this.char()))return this.error(_.INVALID_TAG,D(s,this.clonePosition()));var l=this.clonePosition(),f=this.parseTagName();return a!==f?this.error(_.UNMATCHED_CLOSING_TAG,D(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:X.tag,value:a,children:i,location:D(n,this.clonePosition())},err:null}:this.error(_.INVALID_TAG,D(s,this.clonePosition())))}else return this.error(_.UNCLOSED_TAG,D(n,this.clonePosition()))}else return this.error(_.INVALID_TAG,D(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ka(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),a="";;){var o=this.tryParseQuote(r);if(o){a+=o;continue}var i=this.tryParseUnquoted(t,r);if(i){a+=i;continue}var s=this.tryParseLeftAngleBracket();if(s){a+=s;continue}break}var l=D(n,this.clonePosition());return{val:{type:X.literal,value:a,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Qa(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 Pt.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(),Pt(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(_.EMPTY_ARGUMENT,D(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(_.MALFORMED_ARGUMENT,D(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:X.argument,value:a,location:D(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition())):this.parseArgumentOptions(t,r,a,n);default:return this.error(_.MALFORMED_ARGUMENT,D(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ot(this.message,r),a=r+n.length;this.bumpTo(a);var o=this.clonePosition(),i=D(t,o);return{value:n,location:i}},e.prototype.parseArgumentOptions=function(t,r,n,a){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(_.EXPECT_ARGUMENT_TYPE,D(i,l));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var m=qa(h.val);if(m.length===0)return this.error(_.EXPECT_ARGUMENT_STYLE,D(this.clonePosition(),this.clonePosition()));var E=D(c,this.clonePosition());f={style:m,styleLocation:E}}var I=this.tryParseArgumentClose(a);if(I.err)return I;var T=D(a,this.clonePosition());if(f&&Fr(f==null?void 0:f.style,"::",0)){var d=Ja(f.style.slice(2));if(s==="number"){var h=this.parseNumberSkeletonFromString(d,f.styleLocation);return h.err?h:{val:{type:X.number,value:n,location:T,style:h.val},err:null}}else{if(d.length===0)return this.error(_.EXPECT_DATE_TIME_SKELETON,T);var S=d;this.locale&&(S=Ha(d,this.locale));var m={type:Xe.dateTime,pattern:S,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?Oa(S):{}},p=s==="date"?X.date:X.time;return{val:{type:p,value:n,location:T,style:m},err:null}}}return{val:{type:s==="number"?X.number:s==="date"?X.date:X.time,value:n,location:T,style:(o=f==null?void 0:f.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var v=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS,D(v,R({},v)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),g=0;if(s!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),O=this.parseIdentifierIfPossible(),g=h.val}var L=this.tryParsePluralOrSelectOptions(t,s,r,O);if(L.err)return L;var I=this.tryParseArgumentClose(a);if(I.err)return I;var N=D(a,this.clonePosition());return s==="select"?{val:{type:X.select,value:n,options:kr(L.val),location:N},err:null}:{val:{type:X.plural,value:n,options:kr(L.val),offset:g,pluralType:s==="plural"?"cardinal":"ordinal",location:N},err:null}}default:return this.error(_.INVALID_ARGUMENT_TYPE,D(i,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,D(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 a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,D(a,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=Na(t)}catch{return this.error(_.INVALID_NUMBER_SKELETON,r)}return{val:{type:Xe.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Da(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,a){for(var o,i=!1,s=[],l=new Set,f=a.value,c=a.location;;){if(f.length===0){var h=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR,_.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;c=D(h,this.clonePosition()),f=this.message.slice(h.offset,this.offset())}else break}if(l.has(f))return this.error(r==="select"?_.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);f==="other"&&(i=!0),this.bumpSpace();var E=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?_.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,D(this.clonePosition(),this.clonePosition()));var I=this.parseMessage(t+1,r,n);if(I.err)return I;var T=this.tryParseArgumentClose(E);if(T.err)return T;s.push([f,{value:I.val,location:D(E,this.clonePosition())}]),l.add(f),this.bumpSpace(),o=this.parseIdentifierIfPossible(),f=o.value,c=o.location}return s.length===0?this.error(r==="select"?_.EXPECT_SELECT_ARGUMENT_SELECTOR:_.EXPECT_PLURAL_ARGUMENT_SELECTOR,D(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(_.MISSING_OTHER_CLAUSE,D(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,i=i*10+(s-48),this.bump();else break}var l=D(a,this.clonePosition());return o?(i*=n,Ya(i)?{val:i,err:null}:this.error(r,l)):this.error(t,l)},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=Ur(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(Fr(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()&&Gr(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 Ct(e){return e>=97&&e<=122||e>=65&&e<=90}function Qa(e){return Ct(e)||e===47}function Ka(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 Gr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function eo(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 Nt(e){e.forEach(function(t){if(delete t.location,Mr(t)||Pr(t))for(var r in t.options)delete t.options[r].location,Nt(t.options[r].value);else Sr(t)&&Cr(t.style)||(Rr(t)||Ir(t))&&Rt(t.style)?delete t.style.location:Or(t)&&Nt(t.children)})}function to(e,t){t===void 0&&(t={}),t=R({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new $a(e,t).parse();if(r.err){var n=SyntaxError(_[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Nt(r.val),r.val}function Ee(e,t){var r=t&&t.cache?t.cache:so,n=t&&t.serializer?t.serializer:io,a=t&&t.strategy?t.strategy:no;return a(e,{cache:r,serializer:n})}function ro(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Vr(e,t,r,n){var a=ro(n)?n:r(n),o=t.get(a);return typeof o>"u"&&(o=e.call(this,n),t.set(a,o)),o}function Xr(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),o=t.get(a);return typeof o>"u"&&(o=e.apply(this,n),t.set(a,o)),o}function At(e,t,r,n,a){return r.bind(t,e,n,a)}function no(e,t){var r=e.length===1?Vr:Xr;return At(e,this,r,t.cache.create(),t.serializer)}function ao(e,t){return At(e,this,Xr,t.cache.create(),t.serializer)}function oo(e,t){return At(e,this,Vr,t.cache.create(),t.serializer)}var io=function(){return JSON.stringify(arguments)};function _t(){this.cache=Object.create(null)}_t.prototype.get=function(e){return this.cache[e]},_t.prototype.set=function(e,t){this.cache[e]=t};var so={create:function(){return new _t}},we={variadic:ao,monadic:oo},Te;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Te||(Te={}));var Ae=function(e){fe(t,e);function t(r,n,a){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=a,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Zr=function(e){fe(t,e);function t(r,n,a,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(a).join('", "'),'"'),Te.INVALID_VALUE,o)||this}return t}(Ae),uo=function(e){fe(t,e);function t(r,n,a){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Te.INVALID_VALUE,a)||this}return t}(Ae),lo=function(e){fe(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}(Ae),ne;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ne||(ne={}));function co(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ne.literal||r.type!==ne.literal?t.push(r):n.value+=r.value,t},[])}function Yr(e){return typeof e=="function"}function st(e,t,r,n,a,o,i){if(e.length===1&&xr(e[0]))return[{type:ne.literal,value:e[0].value}];for(var s=[],l=0,f=e;l<f.length;l++){var c=f[l];if(xr(c)){s.push({type:ne.literal,value:c.value});continue}if(Ma(c)){typeof o=="number"&&s.push({type:ne.literal,value:r.getNumberFormat(t).format(o)});continue}var h=c.value;if(!(a&&h in a))throw new lo(h,i);var m=a[h];if(Ia(c)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),s.push({type:typeof m=="string"?ne.literal:ne.object,value:m});continue}if(Rr(c)){var E=typeof c.style=="string"?n.date[c.style]:Rt(c.style)?c.style.parsedOptions:void 0;s.push({type:ne.literal,value:r.getDateTimeFormat(t,E).format(m)});continue}if(Ir(c)){var E=typeof c.style=="string"?n.time[c.style]:Rt(c.style)?c.style.parsedOptions:n.time.medium;s.push({type:ne.literal,value:r.getDateTimeFormat(t,E).format(m)});continue}if(Sr(c)){var E=typeof c.style=="string"?n.number[c.style]:Cr(c.style)?c.style.parsedOptions:void 0;E&&E.scale&&(m=m*(E.scale||1)),s.push({type:ne.literal,value:r.getNumberFormat(t,E).format(m)});continue}if(Or(c)){var I=c.children,T=c.value,d=a[T];if(!Yr(d))throw new uo(T,"function",i);var S=st(I,t,r,n,a,o),p=d(S.map(function(g){return g.value}));Array.isArray(p)||(p=[p]),s.push.apply(s,p.map(function(g){return{type:typeof g=="string"?ne.literal:ne.object,value:g}}))}if(Mr(c)){var v=c.options[m]||c.options.other;if(!v)throw new Zr(c.value,m,Object.keys(c.options),i);s.push.apply(s,st(v.value,t,r,n,a));continue}if(Pr(c)){var v=c.options["=".concat(m)];if(!v){if(!Intl.PluralRules)throw new Ae(`Intl.PluralRules is not available in this environment.
15
+ */var br;function xa(){return br||(br=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,I=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function m(P){return typeof P=="string"||typeof P=="function"||P===n||P===f||P===o||P===a||P===h||P===v||typeof P=="object"&&P!==null&&(P.$$typeof===I||P.$$typeof===g||P.$$typeof===i||P.$$typeof===s||P.$$typeof===c||P.$$typeof===d||P.$$typeof===S||P.$$typeof===b||P.$$typeof===T)}function R(P){if(typeof P=="object"&&P!==null){var Ve=P.$$typeof;switch(Ve){case t:var O=P.type;switch(O){case l:case f:case n:case o:case a:case h:return O;default:var ye=O&&O.$$typeof;switch(ye){case s:case c:case I:case g:case i:return ye;default:return Ve}}case r:return Ve}}}var p=l,N=f,L=s,te=i,ce=t,fe=c,me=n,ge=I,$=g,se=r,J=o,Z=a,ue=h,Q=!1;function Ie(P){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Me(P)||R(P)===l}function Me(P){return R(P)===f}function He(P){return R(P)===s}function Be(P){return R(P)===i}function Fe(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function je(P){return R(P)===c}function Ge(P){return R(P)===n}function Pe(P){return R(P)===I}function B(P){return R(P)===g}function K(P){return R(P)===r}function Oe(P){return R(P)===o}function Se(P){return R(P)===a}function nt(P){return R(P)===h}U.AsyncMode=p,U.ConcurrentMode=N,U.ContextConsumer=L,U.ContextProvider=te,U.Element=ce,U.ForwardRef=fe,U.Fragment=me,U.Lazy=ge,U.Memo=$,U.Portal=se,U.Profiler=J,U.StrictMode=Z,U.Suspense=ue,U.isAsyncMode=Ie,U.isConcurrentMode=Me,U.isContextConsumer=He,U.isContextProvider=Be,U.isElement=Fe,U.isForwardRef=je,U.isFragment=Ge,U.isLazy=Pe,U.isMemo=B,U.isPortal=K,U.isProfiler=Oe,U.isStrictMode=Se,U.isSuspense=nt,U.isValidElementType=m,U.typeOf=R}()),U}(function(e){process.env.NODE_ENV==="production"?e.exports=Ta():e.exports=xa()})(gr);var Er=gr.exports,Sa={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ra={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wr={};wr[Er.ForwardRef]=Sa,wr[Er.Memo]=Ra;function Tr(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}var _;(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"})(_||(_={}));var X;(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"})(X||(X={}));var Xe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Xe||(Xe={}));function xr(e){return e.type===X.literal}function Ia(e){return e.type===X.argument}function Sr(e){return e.type===X.number}function Rr(e){return e.type===X.date}function Ir(e){return e.type===X.time}function Mr(e){return e.type===X.select}function Pr(e){return e.type===X.plural}function Ma(e){return e.type===X.pound}function Or(e){return e.type===X.tag}function Cr(e){return!!(e&&typeof e=="object"&&e.type===Xe.number)}function It(e){return!!(e&&typeof e=="object"&&e.type===Xe.dateTime)}var Nr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Pa=/(?:[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 Oa(e){var t={};return e.replace(Pa,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?"short":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 Ca=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Na(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ca).filter(function(v){return v.length>0}),r=[],n=0,a=t;n<a.length;n++){var o=a[n],i=o.split("/");if(i.length===0)throw new Error("Invalid number skeleton");for(var s=i[0],l=i.slice(1),f=0,c=l;f<c.length;f++){var h=c[f];if(h.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:l})}return r}function Aa(e){return e.replace(/^(.*?)-/,"")}var Ar=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_r=/^(@+)?(\+|#+)?[rs]?$/g,_a=/(\*)(0+)|(#+)(0+)|(0+)/g,Lr=/^(0+)$/;function Dr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(_r,function(r,n,a){return typeof a!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):a==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof a=="string"?a.length:0)),""}),t}function Hr(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 La(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)),!Lr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Br(e){var t={},r=Hr(e);return r||t}function Da(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.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=Aa(a.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=M(M(M({},t),{notation:"scientific"}),a.options.reduce(function(l,f){return M(M({},l),Br(f))},{}));continue;case"engineering":t=M(M(M({},t),{notation:"engineering"}),a.options.reduce(function(l,f){return M(M({},l),Br(f))},{}));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(a.options[0]);continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(_a,function(l,f,c,h,v,g){if(f)t.minimumIntegerDigits=c.length;else{if(h&&v)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Lr.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(Ar.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(Ar,function(l,f,c,h,v,g){return c==="*"?t.minimumFractionDigits=f.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:v&&g?(t.minimumFractionDigits=v.length,t.maximumFractionDigits=v.length+g.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var o=a.options[0];o==="w"?t=M(M({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=M(M({},t),Dr(o)));continue}if(_r.test(a.stem)){t=M(M({},t),Dr(a.stem));continue}var i=Hr(a.stem);i&&(t=M(M({},t),i));var s=La(a.stem);s&&(t=M(M({},t),s))}return t}var it={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","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"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function Ha(e,t){for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(a==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===a;)o++,n++;var i=1+(o&1),s=o<2?1:3+(o>>1),l="a",f=Ba(t);for((f=="H"||f=="k")&&(s=0);s-- >0;)r+=l;for(;i-- >0;)r=f+r}else a==="J"?r+="H":r+=a}return r}function Ba(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 a=it[n||""]||it[r||""]||it["".concat(r,"-001")]||it["001"];return a[0]}var Mt,Fa=new RegExp("^".concat(Nr.source,"*")),ka=new RegExp("".concat(Nr.source,"*$"));function D(e,t){return{start:e,end:t}}var Ua=!!String.prototype.startsWith,za=!!String.fromCodePoint,ja=!!Object.fromEntries,Ga=!!String.prototype.codePointAt,Va=!!String.prototype.trimStart,Xa=!!String.prototype.trimEnd,Za=!!Number.isSafeInteger,Ya=Za?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Pt=!0;try{var Wa=zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pt=((Mt=Wa.exec("a"))===null||Mt===void 0?void 0:Mt[0])==="a"}catch{Pt=!1}var Fr=Ua?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Ot=za?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",a=t.length,o=0,i;a>o;){if(i=t[o++],i>1114111)throw RangeError(i+" is not a valid code point");n+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return n},kr=ja?Object.fromEntries:function(t){for(var r={},n=0,a=t;n<a.length;n++){var o=a[n],i=o[0],s=o[1];r[i]=s}return r},Ur=Ga?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var a=t.charCodeAt(r),o;return a<55296||a>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?a:(a-55296<<10)+(o-56320)+65536}},Ja=Va?function(t){return t.trimStart()}:function(t){return t.replace(Fa,"")},qa=Xa?function(t){return t.trimEnd()}:function(t){return t.replace(ka,"")};function zr(e,t){return new RegExp(e,t)}var Ct;if(Pt){var jr=zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ct=function(t,r){var n;jr.lastIndex=r;var a=jr.exec(t);return(n=a[1])!==null&&n!==void 0?n:""}}else Ct=function(t,r){for(var n=[];;){var a=Ur(t,r);if(a===void 0||Gr(a)||eo(a))break;n.push(a),r+=a>=65536?2:1}return Ot.apply(void 0,n)};var $a=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 a=[];!this.isEOF();){var o=this.char();if(o===123){var i=this.parseArgument(t,n);if(i.err)return i;a.push(i.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),a.push({type:X.pound,location:D(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(_.UNMATCHED_CLOSING_TAG,D(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Nt(this.peek()||0)){var i=this.parseTag(t,r);if(i.err)return i;a.push(i.val)}else{var i=this.parseLiteral(t,r);if(i.err)return i;a.push(i.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:X.literal,value:"<".concat(a,"/>"),location:D(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var i=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Nt(this.char()))return this.error(_.INVALID_TAG,D(s,this.clonePosition()));var l=this.clonePosition(),f=this.parseTagName();return a!==f?this.error(_.UNMATCHED_CLOSING_TAG,D(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:X.tag,value:a,children:i,location:D(n,this.clonePosition())},err:null}:this.error(_.INVALID_TAG,D(s,this.clonePosition())))}else return this.error(_.UNCLOSED_TAG,D(n,this.clonePosition()))}else return this.error(_.INVALID_TAG,D(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ka(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),a="";;){var o=this.tryParseQuote(r);if(o){a+=o;continue}var i=this.tryParseUnquoted(t,r);if(i){a+=i;continue}var s=this.tryParseLeftAngleBracket();if(s){a+=s;continue}break}var l=D(n,this.clonePosition());return{val:{type:X.literal,value:a,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Qa(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 Ot.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(),Ot(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(_.EMPTY_ARGUMENT,D(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(_.MALFORMED_ARGUMENT,D(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:X.argument,value:a,location:D(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition())):this.parseArgumentOptions(t,r,a,n);default:return this.error(_.MALFORMED_ARGUMENT,D(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ct(this.message,r),a=r+n.length;this.bumpTo(a);var o=this.clonePosition(),i=D(t,o);return{value:n,location:i}},e.prototype.parseArgumentOptions=function(t,r,n,a){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(_.EXPECT_ARGUMENT_TYPE,D(i,l));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var v=qa(h.val);if(v.length===0)return this.error(_.EXPECT_ARGUMENT_STYLE,D(this.clonePosition(),this.clonePosition()));var g=D(c,this.clonePosition());f={style:v,styleLocation:g}}var I=this.tryParseArgumentClose(a);if(I.err)return I;var T=D(a,this.clonePosition());if(f&&Fr(f==null?void 0:f.style,"::",0)){var d=Ja(f.style.slice(2));if(s==="number"){var h=this.parseNumberSkeletonFromString(d,f.styleLocation);return h.err?h:{val:{type:X.number,value:n,location:T,style:h.val},err:null}}else{if(d.length===0)return this.error(_.EXPECT_DATE_TIME_SKELETON,T);var S=d;this.locale&&(S=Ha(d,this.locale));var v={type:Xe.dateTime,pattern:S,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?Oa(S):{}},b=s==="date"?X.date:X.time;return{val:{type:b,value:n,location:T,style:v},err:null}}}return{val:{type:s==="number"?X.number:s==="date"?X.date:X.time,value:n,location:T,style:(o=f==null?void 0:f.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS,D(m,M({},m)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),p=0;if(s!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),R=this.parseIdentifierIfPossible(),p=h.val}var N=this.tryParsePluralOrSelectOptions(t,s,r,R);if(N.err)return N;var I=this.tryParseArgumentClose(a);if(I.err)return I;var L=D(a,this.clonePosition());return s==="select"?{val:{type:X.select,value:n,options:kr(N.val),location:L},err:null}:{val:{type:X.plural,value:n,options:kr(N.val),offset:p,pluralType:s==="plural"?"cardinal":"ordinal",location:L},err:null}}default:return this.error(_.INVALID_ARGUMENT_TYPE,D(i,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE,D(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 a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,D(a,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=Na(t)}catch{return this.error(_.INVALID_NUMBER_SKELETON,r)}return{val:{type:Xe.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Da(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,a){for(var o,i=!1,s=[],l=new Set,f=a.value,c=a.location;;){if(f.length===0){var h=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var v=this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR,_.INVALID_PLURAL_ARGUMENT_SELECTOR);if(v.err)return v;c=D(h,this.clonePosition()),f=this.message.slice(h.offset,this.offset())}else break}if(l.has(f))return this.error(r==="select"?_.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);f==="other"&&(i=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?_.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,D(this.clonePosition(),this.clonePosition()));var I=this.parseMessage(t+1,r,n);if(I.err)return I;var T=this.tryParseArgumentClose(g);if(T.err)return T;s.push([f,{value:I.val,location:D(g,this.clonePosition())}]),l.add(f),this.bumpSpace(),o=this.parseIdentifierIfPossible(),f=o.value,c=o.location}return s.length===0?this.error(r==="select"?_.EXPECT_SELECT_ARGUMENT_SELECTOR:_.EXPECT_PLURAL_ARGUMENT_SELECTOR,D(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(_.MISSING_OTHER_CLAUSE,D(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,i=i*10+(s-48),this.bump();else break}var l=D(a,this.clonePosition());return o?(i*=n,Ya(i)?{val:i,err:null}:this.error(r,l)):this.error(t,l)},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=Ur(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(Fr(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()&&Gr(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 Nt(e){return e>=97&&e<=122||e>=65&&e<=90}function Qa(e){return Nt(e)||e===47}function Ka(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 Gr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function eo(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 At(e){e.forEach(function(t){if(delete t.location,Mr(t)||Pr(t))for(var r in t.options)delete t.options[r].location,At(t.options[r].value);else Sr(t)&&Cr(t.style)||(Rr(t)||Ir(t))&&It(t.style)?delete t.style.location:Or(t)&&At(t.children)})}function to(e,t){t===void 0&&(t={}),t=M({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new $a(e,t).parse();if(r.err){var n=SyntaxError(_[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||At(r.val),r.val}function we(e,t){var r=t&&t.cache?t.cache:so,n=t&&t.serializer?t.serializer:io,a=t&&t.strategy?t.strategy:no;return a(e,{cache:r,serializer:n})}function ro(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Vr(e,t,r,n){var a=ro(n)?n:r(n),o=t.get(a);return typeof o>"u"&&(o=e.call(this,n),t.set(a,o)),o}function Xr(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),o=t.get(a);return typeof o>"u"&&(o=e.apply(this,n),t.set(a,o)),o}function _t(e,t,r,n,a){return r.bind(t,e,n,a)}function no(e,t){var r=e.length===1?Vr:Xr;return _t(e,this,r,t.cache.create(),t.serializer)}function ao(e,t){return _t(e,this,Xr,t.cache.create(),t.serializer)}function oo(e,t){return _t(e,this,Vr,t.cache.create(),t.serializer)}var io=function(){return JSON.stringify(arguments)};function Lt(){this.cache=Object.create(null)}Lt.prototype.get=function(e){return this.cache[e]},Lt.prototype.set=function(e,t){this.cache[e]=t};var so={create:function(){return new Lt}},Te={variadic:ao,monadic:oo},xe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(xe||(xe={}));var Ae=function(e){he(t,e);function t(r,n,a){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=a,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Zr=function(e){he(t,e);function t(r,n,a,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(a).join('", "'),'"'),xe.INVALID_VALUE,o)||this}return t}(Ae),uo=function(e){he(t,e);function t(r,n,a){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),xe.INVALID_VALUE,a)||this}return t}(Ae),lo=function(e){he(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,'"'),xe.MISSING_VALUE,n)||this}return t}(Ae),ae;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ae||(ae={}));function co(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ae.literal||r.type!==ae.literal?t.push(r):n.value+=r.value,t},[])}function Yr(e){return typeof e=="function"}function st(e,t,r,n,a,o,i){if(e.length===1&&xr(e[0]))return[{type:ae.literal,value:e[0].value}];for(var s=[],l=0,f=e;l<f.length;l++){var c=f[l];if(xr(c)){s.push({type:ae.literal,value:c.value});continue}if(Ma(c)){typeof o=="number"&&s.push({type:ae.literal,value:r.getNumberFormat(t).format(o)});continue}var h=c.value;if(!(a&&h in a))throw new lo(h,i);var v=a[h];if(Ia(c)){(!v||typeof v=="string"||typeof v=="number")&&(v=typeof v=="string"||typeof v=="number"?String(v):""),s.push({type:typeof v=="string"?ae.literal:ae.object,value:v});continue}if(Rr(c)){var g=typeof c.style=="string"?n.date[c.style]:It(c.style)?c.style.parsedOptions:void 0;s.push({type:ae.literal,value:r.getDateTimeFormat(t,g).format(v)});continue}if(Ir(c)){var g=typeof c.style=="string"?n.time[c.style]:It(c.style)?c.style.parsedOptions:n.time.medium;s.push({type:ae.literal,value:r.getDateTimeFormat(t,g).format(v)});continue}if(Sr(c)){var g=typeof c.style=="string"?n.number[c.style]:Cr(c.style)?c.style.parsedOptions:void 0;g&&g.scale&&(v=v*(g.scale||1)),s.push({type:ae.literal,value:r.getNumberFormat(t,g).format(v)});continue}if(Or(c)){var I=c.children,T=c.value,d=a[T];if(!Yr(d))throw new uo(T,"function",i);var S=st(I,t,r,n,a,o),b=d(S.map(function(p){return p.value}));Array.isArray(b)||(b=[b]),s.push.apply(s,b.map(function(p){return{type:typeof p=="string"?ae.literal:ae.object,value:p}}))}if(Mr(c)){var m=c.options[v]||c.options.other;if(!m)throw new Zr(c.value,v,Object.keys(c.options),i);s.push.apply(s,st(m.value,t,r,n,a));continue}if(Pr(c)){var m=c.options["=".concat(v)];if(!m){if(!Intl.PluralRules)throw new Ae(`Intl.PluralRules is not available in this environment.
16
16
  Try polyfilling it using "@formatjs/intl-pluralrules"
17
- `,Te.MISSING_INTL_API,i);var O=r.getPluralRules(t,{type:c.pluralType}).select(m-(c.offset||0));v=c.options[O]||c.options.other}if(!v)throw new Zr(c.value,m,Object.keys(c.options),i);s.push.apply(s,st(v.value,t,r,n,a,m-(c.offset||0)));continue}}return co(s)}function fo(e,t){return t?R(R(R({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=R(R({},e[n]),t[n]||{}),r},{})):e}function ho(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=fo(e[n],t[n]),r},R({},e)):e}function Lt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function mo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ee(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,be([void 0],r,!1)))},{cache:Lt(e.number),strategy:we.variadic}),getDateTimeFormat:Ee(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,be([void 0],r,!1)))},{cache:Lt(e.dateTime),strategy:we.variadic}),getPluralRules:Ee(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,be([void 0],r,!1)))},{cache:Lt(e.pluralRules),strategy:we.variadic})}}var Wr=function(){function e(t,r,n,a){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(i){var s=o.formatToParts(i);if(s.length===1)return s[0].value;var l=s.reduce(function(f,c){return!f.length||c.type!==ne.literal||typeof f[f.length-1]!="string"?f.push(c.value):f[f.length-1]+=c.value,f},[]);return l.length<=1?l[0]||"":l},this.formatToParts=function(i){return st(o.ast,o.locales,o.formatters,o.formats,i,void 0,o.message)},this.resolvedOptions=function(){var i;return{locale:((i=o.resolvedLocale)===null||i===void 0?void 0:i.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.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`");this.ast=e.__parse(t,{ignoreTag:a==null?void 0:a.ignoreTag,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=ho(e.formats,n),this.formatters=a&&a.formatters||mo(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=to,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}(),ee;(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"})(ee||(ee={}));var oe=function(e){fe(t,e);function t(r,n,a){var o=this,i=a?a instanceof Error?a:new Error(String(a)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
17
+ `,xe.MISSING_INTL_API,i);var R=r.getPluralRules(t,{type:c.pluralType}).select(v-(c.offset||0));m=c.options[R]||c.options.other}if(!m)throw new Zr(c.value,v,Object.keys(c.options),i);s.push.apply(s,st(m.value,t,r,n,a,v-(c.offset||0)));continue}}return co(s)}function fo(e,t){return t?M(M(M({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=M(M({},e[n]),t[n]||{}),r},{})):e}function ho(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=fo(e[n],t[n]),r},M({},e)):e}function Dt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function mo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:we(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:Dt(e.number),strategy:Te.variadic}),getDateTimeFormat:we(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:Dt(e.dateTime),strategy:Te.variadic}),getPluralRules:we(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:Dt(e.pluralRules),strategy:Te.variadic})}}var Wr=function(){function e(t,r,n,a){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(i){var s=o.formatToParts(i);if(s.length===1)return s[0].value;var l=s.reduce(function(f,c){return!f.length||c.type!==ae.literal||typeof f[f.length-1]!="string"?f.push(c.value):f[f.length-1]+=c.value,f},[]);return l.length<=1?l[0]||"":l},this.formatToParts=function(i){return st(o.ast,o.locales,o.formatters,o.formats,i,void 0,o.message)},this.resolvedOptions=function(){var i;return{locale:((i=o.resolvedLocale)===null||i===void 0?void 0:i.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.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`");this.ast=e.__parse(t,{ignoreTag:a==null?void 0:a.ignoreTag,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=ho(e.formats,n),this.formatters=a&&a.formatters||mo(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=to,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}(),ee;(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"})(ee||(ee={}));var ie=function(e){he(t,e);function t(r,n,a){var o=this,i=a?a instanceof Error?a:new Error(String(a)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
18
18
  `).concat(i?`
19
19
  `.concat(i.message,`
20
- `).concat(i.stack):""))||this,o.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),po=function(e){fe(t,e);function t(r,n){return e.call(this,ee.UNSUPPORTED_FORMATTER,r,n)||this}return t}(oe),vo=function(e){fe(t,e);function t(r,n){return e.call(this,ee.INVALID_CONFIG,r,n)||this}return t}(oe),Jr=function(e){fe(t,e);function t(r,n){return e.call(this,ee.MISSING_DATA,r,n)||this}return t}(oe),Dt=function(e){fe(t,e);function t(r,n,a){return e.call(this,ee.FORMAT_ERROR,"".concat(r,`
20
+ `).concat(i.stack):""))||this,o.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),po=function(e){he(t,e);function t(r,n){return e.call(this,ee.UNSUPPORTED_FORMATTER,r,n)||this}return t}(ie),vo=function(e){he(t,e);function t(r,n){return e.call(this,ee.INVALID_CONFIG,r,n)||this}return t}(ie),Jr=function(e){he(t,e);function t(r,n){return e.call(this,ee.MISSING_DATA,r,n)||this}return t}(ie),Ht=function(e){he(t,e);function t(r,n,a){return e.call(this,ee.FORMAT_ERROR,"".concat(r,`
21
21
  Locale: `).concat(n,`
22
- `),a)||this}return t}(oe),Ht=function(e){fe(t,e);function t(r,n,a,o){var i=e.call(this,"".concat(r,`
22
+ `),a)||this}return t}(ie),Bt=function(e){he(t,e);function t(r,n,a,o){var i=e.call(this,"".concat(r,`
23
23
  MessageID: `).concat(a==null?void 0:a.id,`
24
24
  Default Message: `).concat(a==null?void 0:a.defaultMessage,`
25
25
  Description: `).concat(a==null?void 0:a.description,`
26
- `),n,o)||this;return i.descriptor=a,i}return t}(Dt),go=function(e){fe(t,e);function t(r,n){var a=e.call(this,ee.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(o){var i;return(i=o.value)!==null&&i!==void 0?i:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return a.descriptor=r,a}return t}(oe);function ke(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,a){return a in e?n[a]=e[a]:a in r&&(n[a]=r[a]),n},{})}var yo=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},bo=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},qr={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:yo,onWarn:bo};function $r(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ue(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Eo(e){e===void 0&&(e=$r());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,a=Ee(function(){for(var s,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((s=Intl.DateTimeFormat).bind.apply(s,be([void 0],l,!1)))},{cache:Ue(e.dateTime),strategy:we.variadic}),o=Ee(function(){for(var s,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((s=Intl.NumberFormat).bind.apply(s,be([void 0],l,!1)))},{cache:Ue(e.number),strategy:we.variadic}),i=Ee(function(){for(var s,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((s=Intl.PluralRules).bind.apply(s,be([void 0],l,!1)))},{cache:Ue(e.pluralRules),strategy:we.variadic});return{getDateTimeFormat:a,getNumberFormat:o,getMessageFormat:Ee(function(s,l,f,c){return new Wr(s,l,f,R({formatters:{getNumberFormat:o,getDateTimeFormat:a,getPluralRules:i}},c||{}))},{cache:Ue(e.message),strategy:we.variadic}),getRelativeTimeFormat:Ee(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(t.bind.apply(t,be([void 0],s,!1)))},{cache:Ue(e.relativeTime),strategy:we.variadic}),getPluralRules:i,getListFormat:Ee(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(r.bind.apply(r,be([void 0],s,!1)))},{cache:Ue(e.list),strategy:we.variadic}),getDisplayNames:Ee(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(n.bind.apply(n,be([void 0],s,!1)))},{cache:Ue(e.displayNames),strategy:we.variadic})}}function Bt(e,t,r,n){var a=e&&e[t],o;if(a&&(o=a[r]),o)return o;n(new po("No ".concat(t," format named: ").concat(r)))}function ut(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=R({timeZone:t},e[n]),r},{})}function Qr(e,t){var r=Object.keys(R(R({},e),t));return r.reduce(function(n,a){return n[a]=R(R({},e[a]||{}),t[a]||{}),n},{})}function Kr(e,t){if(!t)return e;var r=Wr.formats;return R(R(R({},r),e),{date:Qr(ut(r.date,t),ut(e.date||{},t)),time:Qr(ut(r.time,t),ut(e.time||{},t))})}var Ft=function(e,t,r,n,a){var o=e.locale,i=e.formats,s=e.messages,l=e.defaultLocale,f=e.defaultFormats,c=e.fallbackOnEmptyString,h=e.onError,m=e.timeZone,E=e.defaultRichTextElements;r===void 0&&(r={id:""});var I=r.id,T=r.defaultMessage;Tr(!!I,"[@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 d=String(I),S=s&&Object.prototype.hasOwnProperty.call(s,d)&&s[d];if(Array.isArray(S)&&S.length===1&&S[0].type===X.literal)return S[0].value;if(!n&&S&&typeof S=="string"&&!E)return S.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=R(R({},E),n||{}),i=Kr(i,m),f=Kr(f,m),!S){if(c===!1&&S==="")return S;if((!T||o&&o.toLowerCase()!==l.toLowerCase())&&h(new go(r,o)),T)try{var p=t.getMessageFormat(T,l,f,a);return p.format(n)}catch(v){return h(new Ht('Error formatting default message for: "'.concat(d,'", rendering default message verbatim'),o,r,v)),typeof T=="string"?T:d}return d}try{var p=t.getMessageFormat(S,o,i,R({formatters:t},a||{}));return p.format(n)}catch(v){h(new Ht('Error formatting message: "'.concat(d,'", using ').concat(T?"default message":"id"," as fallback."),o,r,v))}if(T)try{var p=t.getMessageFormat(T,l,f,a);return p.format(n)}catch(v){h(new Ht('Error formatting the default message for: "'.concat(d,'", rendering message verbatim'),o,r,v))}return typeof S=="string"?S:typeof T=="string"?T:d},en=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function lt(e,t,r,n){var a=e.locale,o=e.formats,i=e.onError,s=e.timeZone;n===void 0&&(n={});var l=n.format,f=R(R({},s&&{timeZone:s}),l&&Bt(o,t,l,i)),c=ke(n,en,f);return t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle&&(c=R(R({},c),{hour:"numeric",minute:"numeric"})),r(a,c)}function wo(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=o===void 0?{}:o,s=typeof a=="string"?new Date(a||0):a;try{return lt(e,"date",t,i).format(s)}catch(l){e.onError(new oe(ee.FORMAT_ERROR,"Error formatting date.",l))}return String(s)}function To(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=o===void 0?{}:o,s=typeof a=="string"?new Date(a||0):a;try{return lt(e,"time",t,i).format(s)}catch(l){e.onError(new oe(ee.FORMAT_ERROR,"Error formatting time.",l))}return String(s)}function xo(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=r[2],s=i===void 0?{}:i,l=e.timeZone,f=e.locale,c=e.onError,h=ke(s,en,l?{timeZone:l}:{});try{return t(f,h).formatRange(a,o)}catch(m){c(new oe(ee.FORMAT_ERROR,"Error formatting date time range.",m))}return String(a)}function So(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=o===void 0?{}:o,s=typeof a=="string"?new Date(a||0):a;try{return lt(e,"date",t,i).formatToParts(s)}catch(l){e.onError(new oe(ee.FORMAT_ERROR,"Error formatting date.",l))}return[]}function Ro(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=o===void 0?{}:o,s=typeof a=="string"?new Date(a||0):a;try{return lt(e,"time",t,i).formatToParts(s)}catch(l){e.onError(new oe(ee.FORMAT_ERROR,"Error formatting time.",l))}return[]}var Io=["style","type","fallback"];function Mo(e,t,r,n){var a=e.locale,o=e.onError,i=Intl.DisplayNames;i||o(new Ae(`Intl.DisplayNames is not available in this environment.
26
+ `),n,o)||this;return i.descriptor=a,i}return t}(Ht),go=function(e){he(t,e);function t(r,n){var a=e.call(this,ee.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(o){var i;return(i=o.value)!==null&&i!==void 0?i:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return a.descriptor=r,a}return t}(ie);function ke(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,a){return a in e?n[a]=e[a]:a in r&&(n[a]=r[a]),n},{})}var yo=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},bo=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},qr={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:yo,onWarn:bo};function $r(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ue(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Eo(e){e===void 0&&(e=$r());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,a=we(function(){for(var s,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((s=Intl.DateTimeFormat).bind.apply(s,Ee([void 0],l,!1)))},{cache:Ue(e.dateTime),strategy:Te.variadic}),o=we(function(){for(var s,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((s=Intl.NumberFormat).bind.apply(s,Ee([void 0],l,!1)))},{cache:Ue(e.number),strategy:Te.variadic}),i=we(function(){for(var s,l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new((s=Intl.PluralRules).bind.apply(s,Ee([void 0],l,!1)))},{cache:Ue(e.pluralRules),strategy:Te.variadic});return{getDateTimeFormat:a,getNumberFormat:o,getMessageFormat:we(function(s,l,f,c){return new Wr(s,l,f,M({formatters:{getNumberFormat:o,getDateTimeFormat:a,getPluralRules:i}},c||{}))},{cache:Ue(e.message),strategy:Te.variadic}),getRelativeTimeFormat:we(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(t.bind.apply(t,Ee([void 0],s,!1)))},{cache:Ue(e.relativeTime),strategy:Te.variadic}),getPluralRules:i,getListFormat:we(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(r.bind.apply(r,Ee([void 0],s,!1)))},{cache:Ue(e.list),strategy:Te.variadic}),getDisplayNames:we(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(n.bind.apply(n,Ee([void 0],s,!1)))},{cache:Ue(e.displayNames),strategy:Te.variadic})}}function Ft(e,t,r,n){var a=e&&e[t],o;if(a&&(o=a[r]),o)return o;n(new po("No ".concat(t," format named: ").concat(r)))}function ut(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=M({timeZone:t},e[n]),r},{})}function Qr(e,t){var r=Object.keys(M(M({},e),t));return r.reduce(function(n,a){return n[a]=M(M({},e[a]||{}),t[a]||{}),n},{})}function Kr(e,t){if(!t)return e;var r=Wr.formats;return M(M(M({},r),e),{date:Qr(ut(r.date,t),ut(e.date||{},t)),time:Qr(ut(r.time,t),ut(e.time||{},t))})}var kt=function(e,t,r,n,a){var o=e.locale,i=e.formats,s=e.messages,l=e.defaultLocale,f=e.defaultFormats,c=e.fallbackOnEmptyString,h=e.onError,v=e.timeZone,g=e.defaultRichTextElements;r===void 0&&(r={id:""});var I=r.id,T=r.defaultMessage;Tr(!!I,"[@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 d=String(I),S=s&&Object.prototype.hasOwnProperty.call(s,d)&&s[d];if(Array.isArray(S)&&S.length===1&&S[0].type===X.literal)return S[0].value;if(!n&&S&&typeof S=="string"&&!g)return S.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=M(M({},g),n||{}),i=Kr(i,v),f=Kr(f,v),!S){if(c===!1&&S==="")return S;if((!T||o&&o.toLowerCase()!==l.toLowerCase())&&h(new go(r,o)),T)try{var b=t.getMessageFormat(T,l,f,a);return b.format(n)}catch(m){return h(new Bt('Error formatting default message for: "'.concat(d,'", rendering default message verbatim'),o,r,m)),typeof T=="string"?T:d}return d}try{var b=t.getMessageFormat(S,o,i,M({formatters:t},a||{}));return b.format(n)}catch(m){h(new Bt('Error formatting message: "'.concat(d,'", using ').concat(T?"default message":"id"," as fallback."),o,r,m))}if(T)try{var b=t.getMessageFormat(T,l,f,a);return b.format(n)}catch(m){h(new Bt('Error formatting the default message for: "'.concat(d,'", rendering message verbatim'),o,r,m))}return typeof S=="string"?S:typeof T=="string"?T:d},en=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function lt(e,t,r,n){var a=e.locale,o=e.formats,i=e.onError,s=e.timeZone;n===void 0&&(n={});var l=n.format,f=M(M({},s&&{timeZone:s}),l&&Ft(o,t,l,i)),c=ke(n,en,f);return t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle&&(c=M(M({},c),{hour:"numeric",minute:"numeric"})),r(a,c)}function wo(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=o===void 0?{}:o,s=typeof a=="string"?new Date(a||0):a;try{return lt(e,"date",t,i).format(s)}catch(l){e.onError(new ie(ee.FORMAT_ERROR,"Error formatting date.",l))}return String(s)}function To(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=o===void 0?{}:o,s=typeof a=="string"?new Date(a||0):a;try{return lt(e,"time",t,i).format(s)}catch(l){e.onError(new ie(ee.FORMAT_ERROR,"Error formatting time.",l))}return String(s)}function xo(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=r[2],s=i===void 0?{}:i,l=e.timeZone,f=e.locale,c=e.onError,h=ke(s,en,l?{timeZone:l}:{});try{return t(f,h).formatRange(a,o)}catch(v){c(new ie(ee.FORMAT_ERROR,"Error formatting date time range.",v))}return String(a)}function So(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=o===void 0?{}:o,s=typeof a=="string"?new Date(a||0):a;try{return lt(e,"date",t,i).formatToParts(s)}catch(l){e.onError(new ie(ee.FORMAT_ERROR,"Error formatting date.",l))}return[]}function Ro(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],o=r[1],i=o===void 0?{}:o,s=typeof a=="string"?new Date(a||0):a;try{return lt(e,"time",t,i).formatToParts(s)}catch(l){e.onError(new ie(ee.FORMAT_ERROR,"Error formatting time.",l))}return[]}var Io=["style","type","fallback"];function Mo(e,t,r,n){var a=e.locale,o=e.onError,i=Intl.DisplayNames;i||o(new Ae(`Intl.DisplayNames is not available in this environment.
27
27
  Try polyfilling it using "@formatjs/intl-displaynames"
28
- `,Te.MISSING_INTL_API));var s=ke(n,Io);try{return t(a,s).of(r)}catch(l){o(new oe(ee.FORMAT_ERROR,"Error formatting display name.",l))}}var Po=["type","style"],tn=Date.now();function Oo(e){return"".concat(tn,"_").concat(e,"_").concat(tn)}function Co(e,t,r,n){n===void 0&&(n={});var a=rn(e,t,r,n).reduce(function(o,i){var s=i.value;return typeof s!="string"?o.push(s):typeof o[o.length-1]=="string"?o[o.length-1]+=s:o.push(s),o},[]);return a.length===1?a[0]:a.length===0?"":a}function rn(e,t,r,n){var a=e.locale,o=e.onError;n===void 0&&(n={});var i=Intl.ListFormat;i||o(new Ae(`Intl.ListFormat is not available in this environment.
28
+ `,xe.MISSING_INTL_API));var s=ke(n,Io);try{return t(a,s).of(r)}catch(l){o(new ie(ee.FORMAT_ERROR,"Error formatting display name.",l))}}var Po=["type","style"],tn=Date.now();function Oo(e){return"".concat(tn,"_").concat(e,"_").concat(tn)}function Co(e,t,r,n){n===void 0&&(n={});var a=rn(e,t,r,n).reduce(function(o,i){var s=i.value;return typeof s!="string"?o.push(s):typeof o[o.length-1]=="string"?o[o.length-1]+=s:o.push(s),o},[]);return a.length===1?a[0]:a.length===0?"":a}function rn(e,t,r,n){var a=e.locale,o=e.onError;n===void 0&&(n={});var i=Intl.ListFormat;i||o(new Ae(`Intl.ListFormat is not available in this environment.
29
29
  Try polyfilling it using "@formatjs/intl-listformat"
30
- `,Te.MISSING_INTL_API));var s=ke(n,Po);try{var l={},f=r.map(function(c,h){if(typeof c=="object"){var m=Oo(h);return l[m]=c,m}return String(c)});return t(a,s).formatToParts(f).map(function(c){return c.type==="literal"?c:R(R({},c),{value:l[c.value]||c.value})})}catch(c){o(new oe(ee.FORMAT_ERROR,"Error formatting list.",c))}return r}var No=["type"];function Ao(e,t,r,n){var a=e.locale,o=e.onError;n===void 0&&(n={}),Intl.PluralRules||o(new Ae(`Intl.PluralRules is not available in this environment.
30
+ `,xe.MISSING_INTL_API));var s=ke(n,Po);try{var l={},f=r.map(function(c,h){if(typeof c=="object"){var v=Oo(h);return l[v]=c,v}return String(c)});return t(a,s).formatToParts(f).map(function(c){return c.type==="literal"?c:M(M({},c),{value:l[c.value]||c.value})})}catch(c){o(new ie(ee.FORMAT_ERROR,"Error formatting list.",c))}return r}var No=["type"];function Ao(e,t,r,n){var a=e.locale,o=e.onError;n===void 0&&(n={}),Intl.PluralRules||o(new Ae(`Intl.PluralRules is not available in this environment.
31
31
  Try polyfilling it using "@formatjs/intl-pluralrules"
32
- `,Te.MISSING_INTL_API));var i=ke(n,No);try{return t(a,i).select(r)}catch(s){o(new Dt("Error formatting plural.",a,s))}return"other"}var _o=["numeric","style"];function Lo(e,t,r){var n=e.locale,a=e.formats,o=e.onError;r===void 0&&(r={});var i=r.format,s=!!i&&Bt(a,"relative",i,o)||{},l=ke(r,_o,s);return t(n,l)}function Do(e,t,r,n,a){a===void 0&&(a={}),n||(n="second");var o=Intl.RelativeTimeFormat;o||e.onError(new Ae(`Intl.RelativeTimeFormat is not available in this environment.
32
+ `,xe.MISSING_INTL_API));var i=ke(n,No);try{return t(a,i).select(r)}catch(s){o(new Ht("Error formatting plural.",a,s))}return"other"}var _o=["numeric","style"];function Lo(e,t,r){var n=e.locale,a=e.formats,o=e.onError;r===void 0&&(r={});var i=r.format,s=!!i&&Ft(a,"relative",i,o)||{},l=ke(r,_o,s);return t(n,l)}function Do(e,t,r,n,a){a===void 0&&(a={}),n||(n="second");var o=Intl.RelativeTimeFormat;o||e.onError(new Ae(`Intl.RelativeTimeFormat is not available in this environment.
33
33
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
34
- `,Te.MISSING_INTL_API));try{return Lo(e,t,a).format(r,n)}catch(i){e.onError(new Dt("Error formatting relative time.",e.locale,i))}return String(r)}var Ho=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function nn(e,t,r){var n=e.locale,a=e.formats,o=e.onError;r===void 0&&(r={});var i=r.format,s=i&&Bt(a,"number",i,o)||{},l=ke(r,Ho,s);return t(n,l)}function Bo(e,t,r,n){n===void 0&&(n={});try{return nn(e,t,n).format(r)}catch(a){e.onError(new oe(ee.FORMAT_ERROR,"Error formatting number.",a))}return String(r)}function Fo(e,t,r,n){n===void 0&&(n={});try{return nn(e,t,n).formatToParts(r)}catch(a){e.onError(new oe(ee.FORMAT_ERROR,"Error formatting number.",a))}return[]}function ko(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function Uo(e){e.onWarn&&e.defaultRichTextElements&&ko(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
34
+ `,xe.MISSING_INTL_API));try{return Lo(e,t,a).format(r,n)}catch(i){e.onError(new Ht("Error formatting relative time.",e.locale,i))}return String(r)}var Ho=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function nn(e,t,r){var n=e.locale,a=e.formats,o=e.onError;r===void 0&&(r={});var i=r.format,s=i&&Ft(a,"number",i,o)||{},l=ke(r,Ho,s);return t(n,l)}function Bo(e,t,r,n){n===void 0&&(n={});try{return nn(e,t,n).format(r)}catch(a){e.onError(new ie(ee.FORMAT_ERROR,"Error formatting number.",a))}return String(r)}function Fo(e,t,r,n){n===void 0&&(n={});try{return nn(e,t,n).formatToParts(r)}catch(a){e.onError(new ie(ee.FORMAT_ERROR,"Error formatting number.",a))}return[]}function ko(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function Uo(e){e.onWarn&&e.defaultRichTextElements&&ko(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
35
35
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
36
- For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function zo(e,t){var r=Eo(t),n=R(R({},qr),e),a=n.locale,o=n.defaultLocale,i=n.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&i?i(new Jr('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&i&&i(new Jr('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(i&&i(new vo('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),Uo(n),R(R({},n),{formatters:r,formatNumber:Bo.bind(null,n,r.getNumberFormat),formatNumberToParts:Fo.bind(null,n,r.getNumberFormat),formatRelativeTime:Do.bind(null,n,r.getRelativeTimeFormat),formatDate:wo.bind(null,n,r.getDateTimeFormat),formatDateToParts:So.bind(null,n,r.getDateTimeFormat),formatTime:To.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:xo.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Ro.bind(null,n,r.getDateTimeFormat),formatPlural:Ao.bind(null,n,r.getPluralRules),formatMessage:Ft.bind(null,n,r),$t:Ft.bind(null,n,r),formatList:Co.bind(null,n,r.getListFormat),formatListToParts:rn.bind(null,n,r.getListFormat),formatDisplayName:Mo.bind(null,n,r.getDisplayNames)})}function an(e){Tr(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var on=R(R({},qr),{textComponent:w.Fragment});function jo(e){return function(t){return e(w.Children.toArray(t))}}function Go(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),a=r.length;if(n.length!==a)return!1;for(var o=0;o<a;o++){var i=r[o];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}var ct={exports:{}},$e={};/**
36
+ For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function zo(e,t){var r=Eo(t),n=M(M({},qr),e),a=n.locale,o=n.defaultLocale,i=n.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&i?i(new Jr('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&i&&i(new Jr('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(i&&i(new vo('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),Uo(n),M(M({},n),{formatters:r,formatNumber:Bo.bind(null,n,r.getNumberFormat),formatNumberToParts:Fo.bind(null,n,r.getNumberFormat),formatRelativeTime:Do.bind(null,n,r.getRelativeTimeFormat),formatDate:wo.bind(null,n,r.getDateTimeFormat),formatDateToParts:So.bind(null,n,r.getDateTimeFormat),formatTime:To.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:xo.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Ro.bind(null,n,r.getDateTimeFormat),formatPlural:Ao.bind(null,n,r.getPluralRules),formatMessage:kt.bind(null,n,r),$t:kt.bind(null,n,r),formatList:Co.bind(null,n,r.getListFormat),formatListToParts:rn.bind(null,n,r.getListFormat),formatDisplayName:Mo.bind(null,n,r.getDisplayNames)})}function an(e){Tr(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var on=M(M({},qr),{textComponent:w.Fragment});function jo(e){return function(t){return e(w.Children.toArray(t))}}function Go(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),a=r.length;if(n.length!==a)return!1;for(var o=0;o<a;o++){var i=r[o];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}var ct={exports:{}},$e={};/**
37
37
  * @license React
38
38
  * react-jsx-runtime.production.min.js
39
39
  *
@@ -41,7 +41,7 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
41
41
  *
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
- */var sn;function Vo(){if(sn)return $e;sn=1;var e=ye.default,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,f){var c,h={},m=null,E=null;f!==void 0&&(m=""+f),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(E=l.ref);for(c in l)n.call(l,c)&&!o.hasOwnProperty(c)&&(h[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)h[c]===void 0&&(h[c]=l[c]);return{$$typeof:t,type:s,key:m,ref:E,props:h,_owner:a.current}}return $e.Fragment=r,$e.jsx=i,$e.jsxs=i,$e}var Qe={};/**
44
+ */var sn;function Vo(){if(sn)return $e;sn=1;var e=be.default,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,f){var c,h={},v=null,g=null;f!==void 0&&(v=""+f),l.key!==void 0&&(v=""+l.key),l.ref!==void 0&&(g=l.ref);for(c in l)n.call(l,c)&&!o.hasOwnProperty(c)&&(h[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)h[c]===void 0&&(h[c]=l[c]);return{$$typeof:t,type:s,key:v,ref:g,props:h,_owner:a.current}}return $e.Fragment=r,$e.jsx=i,$e.jsxs=i,$e}var Qe={};/**
45
45
  * @license React
46
46
  * react-jsx-runtime.development.js
47
47
  *
@@ -49,17 +49,17 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
49
49
  *
50
50
  * This source code is licensed under the MIT license found in the
51
51
  * LICENSE file in the root directory of this source tree.
52
- */var un;function Xo(){return un||(un=1,process.env.NODE_ENV!=="production"&&function(){var e=ye.default,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),I=Symbol.iterator,T="@@iterator";function d(u){if(u===null||typeof u!="object")return null;var b=I&&u[I]||u[T];return typeof b=="function"?b:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(u){{for(var b=arguments.length,x=new Array(b>1?b-1:0),C=1;C<b;C++)x[C-1]=arguments[C];v("error",u,x)}}function v(u,b,x){{var C=S.ReactDebugCurrentFrame,F=C.getStackAddendum();F!==""&&(b+="%s",x=x.concat([F]));var V=x.map(function(H){return String(H)});V.unshift("Warning: "+b),Function.prototype.apply.call(console[u],console,V)}}var O=!1,g=!1,L=!1,N=!1,ie=!1,se;se=Symbol.for("react.module.reference");function xe(u){return!!(typeof u=="string"||typeof u=="function"||u===n||u===o||ie||u===a||u===f||u===c||N||u===E||O||g||L||typeof u=="object"&&u!==null&&(u.$$typeof===m||u.$$typeof===h||u.$$typeof===i||u.$$typeof===s||u.$$typeof===l||u.$$typeof===se||u.getModuleId!==void 0))}function de(u,b,x){var C=u.displayName;if(C)return C;var F=b.displayName||b.name||"";return F!==""?x+"("+F+")":x}function ve(u){return u.displayName||"Context"}function $(u){if(u==null)return null;if(typeof u.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case c:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case s:var b=u;return ve(b)+".Consumer";case i:var x=u;return ve(x._context)+".Provider";case l:return de(u,u.render,"ForwardRef");case h:var C=u.displayName||null;return C!==null?C:$(u.type)||"Memo";case m:{var F=u,V=F._payload,H=F._init;try{return $(H(V))}catch{return null}}}return null}var ue=Object.assign,J=0,Z,le,Q,Ie,Me,He,Be;function Fe(){}Fe.__reactDisabledLog=!0;function je(){{if(J===0){Z=console.log,le=console.info,Q=console.warn,Ie=console.error,Me=console.group,He=console.groupCollapsed,Be=console.groupEnd;var u={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}J++}}function Ge(){{if(J--,J===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ue({},u,{value:Z}),info:ue({},u,{value:le}),warn:ue({},u,{value:Q}),error:ue({},u,{value:Ie}),group:ue({},u,{value:Me}),groupCollapsed:ue({},u,{value:He}),groupEnd:ue({},u,{value:Be})})}J<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Pe=S.ReactCurrentDispatcher,B;function K(u,b,x){{if(B===void 0)try{throw Error()}catch(F){var C=F.stack.trim().match(/\n( *(at )?)/);B=C&&C[1]||""}return`
53
- `+B+u}}var Oe=!1,Se;{var nt=typeof WeakMap=="function"?WeakMap:Map;Se=new nt}function M(u,b){if(!u||Oe)return"";{var x=Se.get(u);if(x!==void 0)return x}var C;Oe=!0;var F=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var V;V=Pe.current,Pe.current=null,je();try{if(b){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(Ne){C=Ne}Reflect.construct(u,[],H)}else{try{H.call()}catch(Ne){C=Ne}u.call(H.prototype)}}else{try{throw Error()}catch(Ne){C=Ne}u()}}catch(Ne){if(Ne&&C&&typeof Ne.stack=="string"){for(var A=Ne.stack.split(`
54
- `),ae=C.stack.split(`
55
- `),W=A.length-1,q=ae.length-1;W>=1&&q>=0&&A[W]!==ae[q];)q--;for(;W>=1&&q>=0;W--,q--)if(A[W]!==ae[q]){if(W!==1||q!==1)do if(W--,q--,q<0||A[W]!==ae[q]){var me=`
56
- `+A[W].replace(" at new "," at ");return u.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",u.displayName)),typeof u=="function"&&Se.set(u,me),me}while(W>=1&&q>=0);break}}}finally{Oe=!1,Pe.current=V,Ge(),Error.prepareStackTrace=F}var qe=u?u.displayName||u.name:"",ya=qe?K(qe):"";return typeof u=="function"&&Se.set(u,ya),ya}function Ve(u,b,x){return M(u,!1)}function P(u){var b=u.prototype;return!!(b&&b.isReactComponent)}function ge(u,b,x){if(u==null)return"";if(typeof u=="function")return M(u,P(u));if(typeof u=="string")return K(u);switch(u){case f:return K("Suspense");case c:return K("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case l:return Ve(u.render);case h:return ge(u.type,b,x);case m:{var C=u,F=C._payload,V=C._init;try{return ge(V(F),b,x)}catch{}}}return""}var Ce=Object.prototype.hasOwnProperty,at={},sa=S.ReactDebugCurrentFrame;function Tt(u){if(u){var b=u._owner,x=ge(u.type,u._source,b?b.type:null);sa.setExtraStackFrame(x)}else sa.setExtraStackFrame(null)}function Hs(u,b,x,C,F){{var V=Function.call.bind(Ce);for(var H in u)if(V(u,H)){var A=void 0;try{if(typeof u[H]!="function"){var ae=Error((C||"React class")+": "+x+" type `"+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[H]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ae.name="Invariant Violation",ae}A=u[H](b,H,C,x,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(W){A=W}A&&!(A instanceof Error)&&(Tt(F),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",C||"React class",x,H,typeof A),Tt(null)),A instanceof Error&&!(A.message in at)&&(at[A.message]=!0,Tt(F),p("Failed %s type: %s",x,A.message),Tt(null))}}}var Bs=Array.isArray;function hr(u){return Bs(u)}function Fs(u){{var b=typeof Symbol=="function"&&Symbol.toStringTag,x=b&&u[Symbol.toStringTag]||u.constructor.name||"Object";return x}}function ks(u){try{return ua(u),!1}catch{return!0}}function ua(u){return""+u}function la(u){if(ks(u))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fs(u)),ua(u)}var ot=S.ReactCurrentOwner,Us={key:!0,ref:!0,__self:!0,__source:!0},ca,fa,dr;dr={};function zs(u){if(Ce.call(u,"ref")){var b=Object.getOwnPropertyDescriptor(u,"ref").get;if(b&&b.isReactWarning)return!1}return u.ref!==void 0}function js(u){if(Ce.call(u,"key")){var b=Object.getOwnPropertyDescriptor(u,"key").get;if(b&&b.isReactWarning)return!1}return u.key!==void 0}function Gs(u,b){if(typeof u.ref=="string"&&ot.current&&b&&ot.current.stateNode!==b){var x=$(ot.current.type);dr[x]||(p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',$(ot.current.type),u.ref),dr[x]=!0)}}function Vs(u,b){{var x=function(){ca||(ca=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};x.isReactWarning=!0,Object.defineProperty(u,"key",{get:x,configurable:!0})}}function Xs(u,b){{var x=function(){fa||(fa=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};x.isReactWarning=!0,Object.defineProperty(u,"ref",{get:x,configurable:!0})}}var Zs=function(u,b,x,C,F,V,H){var A={$$typeof:t,type:u,key:b,ref:x,props:H,_owner:V};return A._store={},Object.defineProperty(A._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(A,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(A,"_source",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.freeze&&(Object.freeze(A.props),Object.freeze(A)),A};function Ys(u,b,x,C,F){{var V,H={},A=null,ae=null;x!==void 0&&(la(x),A=""+x),js(b)&&(la(b.key),A=""+b.key),zs(b)&&(ae=b.ref,Gs(b,F));for(V in b)Ce.call(b,V)&&!Us.hasOwnProperty(V)&&(H[V]=b[V]);if(u&&u.defaultProps){var W=u.defaultProps;for(V in W)H[V]===void 0&&(H[V]=W[V])}if(A||ae){var q=typeof u=="function"?u.displayName||u.name||"Unknown":u;A&&Vs(H,q),ae&&Xs(H,q)}return Zs(u,A,ae,F,C,ot.current,H)}}var mr=S.ReactCurrentOwner,ha=S.ReactDebugCurrentFrame;function Je(u){if(u){var b=u._owner,x=ge(u.type,u._source,b?b.type:null);ha.setExtraStackFrame(x)}else ha.setExtraStackFrame(null)}var pr;pr=!1;function vr(u){return typeof u=="object"&&u!==null&&u.$$typeof===t}function da(){{if(mr.current){var u=$(mr.current.type);if(u)return`
52
+ */var un;function Xo(){return un||(un=1,process.env.NODE_ENV!=="production"&&function(){var e=be.default,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),I=Symbol.iterator,T="@@iterator";function d(u){if(u===null||typeof u!="object")return null;var E=I&&u[I]||u[T];return typeof E=="function"?E:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(u){{for(var E=arguments.length,x=new Array(E>1?E-1:0),C=1;C<E;C++)x[C-1]=arguments[C];m("error",u,x)}}function m(u,E,x){{var C=S.ReactDebugCurrentFrame,F=C.getStackAddendum();F!==""&&(E+="%s",x=x.concat([F]));var V=x.map(function(H){return String(H)});V.unshift("Warning: "+E),Function.prototype.apply.call(console[u],console,V)}}var R=!1,p=!1,N=!1,L=!1,te=!1,ce;ce=Symbol.for("react.module.reference");function fe(u){return!!(typeof u=="string"||typeof u=="function"||u===n||u===o||te||u===a||u===f||u===c||L||u===g||R||p||N||typeof u=="object"&&u!==null&&(u.$$typeof===v||u.$$typeof===h||u.$$typeof===i||u.$$typeof===s||u.$$typeof===l||u.$$typeof===ce||u.getModuleId!==void 0))}function me(u,E,x){var C=u.displayName;if(C)return C;var F=E.displayName||E.name||"";return F!==""?x+"("+F+")":x}function ge(u){return u.displayName||"Context"}function $(u){if(u==null)return null;if(typeof u.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case c:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case s:var E=u;return ge(E)+".Consumer";case i:var x=u;return ge(x._context)+".Provider";case l:return me(u,u.render,"ForwardRef");case h:var C=u.displayName||null;return C!==null?C:$(u.type)||"Memo";case v:{var F=u,V=F._payload,H=F._init;try{return $(H(V))}catch{return null}}}return null}var se=Object.assign,J=0,Z,ue,Q,Ie,Me,He,Be;function Fe(){}Fe.__reactDisabledLog=!0;function je(){{if(J===0){Z=console.log,ue=console.info,Q=console.warn,Ie=console.error,Me=console.group,He=console.groupCollapsed,Be=console.groupEnd;var u={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}J++}}function Ge(){{if(J--,J===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:se({},u,{value:Z}),info:se({},u,{value:ue}),warn:se({},u,{value:Q}),error:se({},u,{value:Ie}),group:se({},u,{value:Me}),groupCollapsed:se({},u,{value:He}),groupEnd:se({},u,{value:Be})})}J<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Pe=S.ReactCurrentDispatcher,B;function K(u,E,x){{if(B===void 0)try{throw Error()}catch(F){var C=F.stack.trim().match(/\n( *(at )?)/);B=C&&C[1]||""}return`
53
+ `+B+u}}var Oe=!1,Se;{var nt=typeof WeakMap=="function"?WeakMap:Map;Se=new nt}function P(u,E){if(!u||Oe)return"";{var x=Se.get(u);if(x!==void 0)return x}var C;Oe=!0;var F=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var V;V=Pe.current,Pe.current=null,je();try{if(E){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(Ne){C=Ne}Reflect.construct(u,[],H)}else{try{H.call()}catch(Ne){C=Ne}u.call(H.prototype)}}else{try{throw Error()}catch(Ne){C=Ne}u()}}catch(Ne){if(Ne&&C&&typeof Ne.stack=="string"){for(var A=Ne.stack.split(`
54
+ `),oe=C.stack.split(`
55
+ `),W=A.length-1,q=oe.length-1;W>=1&&q>=0&&A[W]!==oe[q];)q--;for(;W>=1&&q>=0;W--,q--)if(A[W]!==oe[q]){if(W!==1||q!==1)do if(W--,q--,q<0||A[W]!==oe[q]){var pe=`
56
+ `+A[W].replace(" at new "," at ");return u.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",u.displayName)),typeof u=="function"&&Se.set(u,pe),pe}while(W>=1&&q>=0);break}}}finally{Oe=!1,Pe.current=V,Ge(),Error.prepareStackTrace=F}var qe=u?u.displayName||u.name:"",ya=qe?K(qe):"";return typeof u=="function"&&Se.set(u,ya),ya}function Ve(u,E,x){return P(u,!1)}function O(u){var E=u.prototype;return!!(E&&E.isReactComponent)}function ye(u,E,x){if(u==null)return"";if(typeof u=="function")return P(u,O(u));if(typeof u=="string")return K(u);switch(u){case f:return K("Suspense");case c:return K("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case l:return Ve(u.render);case h:return ye(u.type,E,x);case v:{var C=u,F=C._payload,V=C._init;try{return ye(V(F),E,x)}catch{}}}return""}var Ce=Object.prototype.hasOwnProperty,at={},sa=S.ReactDebugCurrentFrame;function xt(u){if(u){var E=u._owner,x=ye(u.type,u._source,E?E.type:null);sa.setExtraStackFrame(x)}else sa.setExtraStackFrame(null)}function Hs(u,E,x,C,F){{var V=Function.call.bind(Ce);for(var H in u)if(V(u,H)){var A=void 0;try{if(typeof u[H]!="function"){var oe=Error((C||"React class")+": "+x+" type `"+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[H]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw oe.name="Invariant Violation",oe}A=u[H](E,H,C,x,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(W){A=W}A&&!(A instanceof Error)&&(xt(F),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",C||"React class",x,H,typeof A),xt(null)),A instanceof Error&&!(A.message in at)&&(at[A.message]=!0,xt(F),b("Failed %s type: %s",x,A.message),xt(null))}}}var Bs=Array.isArray;function hr(u){return Bs(u)}function Fs(u){{var E=typeof Symbol=="function"&&Symbol.toStringTag,x=E&&u[Symbol.toStringTag]||u.constructor.name||"Object";return x}}function ks(u){try{return ua(u),!1}catch{return!0}}function ua(u){return""+u}function la(u){if(ks(u))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Fs(u)),ua(u)}var ot=S.ReactCurrentOwner,Us={key:!0,ref:!0,__self:!0,__source:!0},ca,fa,dr;dr={};function zs(u){if(Ce.call(u,"ref")){var E=Object.getOwnPropertyDescriptor(u,"ref").get;if(E&&E.isReactWarning)return!1}return u.ref!==void 0}function js(u){if(Ce.call(u,"key")){var E=Object.getOwnPropertyDescriptor(u,"key").get;if(E&&E.isReactWarning)return!1}return u.key!==void 0}function Gs(u,E){if(typeof u.ref=="string"&&ot.current&&E&&ot.current.stateNode!==E){var x=$(ot.current.type);dr[x]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',$(ot.current.type),u.ref),dr[x]=!0)}}function Vs(u,E){{var x=function(){ca||(ca=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};x.isReactWarning=!0,Object.defineProperty(u,"key",{get:x,configurable:!0})}}function Xs(u,E){{var x=function(){fa||(fa=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};x.isReactWarning=!0,Object.defineProperty(u,"ref",{get:x,configurable:!0})}}var Zs=function(u,E,x,C,F,V,H){var A={$$typeof:t,type:u,key:E,ref:x,props:H,_owner:V};return A._store={},Object.defineProperty(A._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(A,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(A,"_source",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.freeze&&(Object.freeze(A.props),Object.freeze(A)),A};function Ys(u,E,x,C,F){{var V,H={},A=null,oe=null;x!==void 0&&(la(x),A=""+x),js(E)&&(la(E.key),A=""+E.key),zs(E)&&(oe=E.ref,Gs(E,F));for(V in E)Ce.call(E,V)&&!Us.hasOwnProperty(V)&&(H[V]=E[V]);if(u&&u.defaultProps){var W=u.defaultProps;for(V in W)H[V]===void 0&&(H[V]=W[V])}if(A||oe){var q=typeof u=="function"?u.displayName||u.name||"Unknown":u;A&&Vs(H,q),oe&&Xs(H,q)}return Zs(u,A,oe,F,C,ot.current,H)}}var mr=S.ReactCurrentOwner,ha=S.ReactDebugCurrentFrame;function Je(u){if(u){var E=u._owner,x=ye(u.type,u._source,E?E.type:null);ha.setExtraStackFrame(x)}else ha.setExtraStackFrame(null)}var pr;pr=!1;function vr(u){return typeof u=="object"&&u!==null&&u.$$typeof===t}function da(){{if(mr.current){var u=$(mr.current.type);if(u)return`
57
57
 
58
- Check the render method of \``+u+"`."}return""}}function Ws(u){{if(u!==void 0){var b=u.fileName.replace(/^.*[\\\/]/,""),x=u.lineNumber;return`
58
+ Check the render method of \``+u+"`."}return""}}function Ws(u){{if(u!==void 0){var E=u.fileName.replace(/^.*[\\\/]/,""),x=u.lineNumber;return`
59
59
 
60
- Check your code at `+b+":"+x+"."}return""}}var ma={};function Js(u){{var b=da();if(!b){var x=typeof u=="string"?u:u.displayName||u.name;x&&(b=`
60
+ Check your code at `+E+":"+x+"."}return""}}var ma={};function Js(u){{var E=da();if(!E){var x=typeof u=="string"?u:u.displayName||u.name;x&&(E=`
61
61
 
62
- Check the top-level render call using <`+x+">.")}return b}}function pa(u,b){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var x=Js(b);if(ma[x])return;ma[x]=!0;var C="";u&&u._owner&&u._owner!==mr.current&&(C=" It was passed a child from "+$(u._owner.type)+"."),Je(u),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',x,C),Je(null)}}function va(u,b){{if(typeof u!="object")return;if(hr(u))for(var x=0;x<u.length;x++){var C=u[x];vr(C)&&pa(C,b)}else if(vr(u))u._store&&(u._store.validated=!0);else if(u){var F=d(u);if(typeof F=="function"&&F!==u.entries)for(var V=F.call(u),H;!(H=V.next()).done;)vr(H.value)&&pa(H.value,b)}}}function qs(u){{var b=u.type;if(b==null||typeof b=="string")return;var x;if(typeof b=="function")x=b.propTypes;else if(typeof b=="object"&&(b.$$typeof===l||b.$$typeof===h))x=b.propTypes;else return;if(x){var C=$(b);Hs(x,u.props,"prop",C,u)}else if(b.PropTypes!==void 0&&!pr){pr=!0;var F=$(b);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",F||"Unknown")}typeof b.getDefaultProps=="function"&&!b.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $s(u){{for(var b=Object.keys(u.props),x=0;x<b.length;x++){var C=b[x];if(C!=="children"&&C!=="key"){Je(u),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),Je(null);break}}u.ref!==null&&(Je(u),p("Invalid attribute `ref` supplied to `React.Fragment`."),Je(null))}}function ga(u,b,x,C,F,V){{var H=xe(u);if(!H){var A="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(A+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ae=Ws(F);ae?A+=ae:A+=da();var W;u===null?W="null":hr(u)?W="array":u!==void 0&&u.$$typeof===t?(W="<"+($(u.type)||"Unknown")+" />",A=" Did you accidentally export a JSX literal instead of a component?"):W=typeof u,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",W,A)}var q=Ys(u,b,x,F,V);if(q==null)return q;if(H){var me=b.children;if(me!==void 0)if(C)if(hr(me)){for(var qe=0;qe<me.length;qe++)va(me[qe],u);Object.freeze&&Object.freeze(me)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else va(me,u)}return u===n?$s(q):qs(q),q}}function Qs(u,b,x){return ga(u,b,x,!0)}function Ks(u,b,x){return ga(u,b,x,!1)}var eu=Ks,tu=Qs;Qe.Fragment=n,Qe.jsx=eu,Qe.jsxs=tu}()),Qe}(function(e){process.env.NODE_ENV==="production"?e.exports=Vo():e.exports=Xo()})(ct);const ft=ct.exports.Fragment,y=ct.exports.jsx,G=ct.exports.jsxs;var kt=w.createContext(null);kt.Consumer;var Zo=kt.Provider,Yo=Zo,Wo=kt;function Ze(){var e=w.useContext(Wo);return an(e),e}var Ut;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Ut||(Ut={}));var zt;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(zt||(zt={}));function ln(e){var t=function(r){var n=Ze(),a=r.value,o=r.children,i=St(r,["value","children"]),s=typeof a=="string"?new Date(a||0):a,l=e==="formatDate"?n.formatDateToParts(s,i):n.formatTimeToParts(s,i);return o(l)};return t.displayName=zt[e],t}function Ke(e){var t=function(r){var n=Ze(),a=r.value,o=r.children,i=St(r,["value","children"]),s=n[e](a,i);if(typeof o=="function")return o(s);var l=n.textComponent||w.Fragment;return y(l,{children:s})};return t.displayName=Ut[e],t}function jt(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}}function cn(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=Yr(n)?jo(n):n,t},{})}var fn=function(e,t,r,n){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];var i=cn(n),s=Ft.apply(void 0,be([e,t,r,i],a,!1));return Array.isArray(s)?w.Children.toArray(s):s},hn=function(e,t){var r=e.defaultRichTextElements,n=St(e,["defaultRichTextElements"]),a=cn(r),o=zo(R(R(R({},on),n),{defaultRichTextElements:a}),t),i={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:a};return R(R({},o),{formatMessage:fn.bind(null,i,o.formatters),$t:fn.bind(null,i,o.formatters)})},Jo=function(e){fe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=$r(),r.state={cache:r.cache,intl:hn(jt(r.props),r.cache),prevConfig:jt(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var a=n.prevConfig,o=n.cache,i=jt(r);return Go(a,i)?null:{intl:hn(i,o),prevConfig:i}},t.prototype.render=function(){return an(this.state.intl),y(Yo,{value:this.state.intl,children:this.props.children})},t.displayName="IntlProvider",t.defaultProps=on,t}(w.PureComponent);const qo=Jo;Ke("formatDate"),Ke("formatTime"),Ke("formatNumber"),Ke("formatList"),Ke("formatDisplayName"),ln("formatDate"),ln("formatTime");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 ht(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=dn(e))&&(n&&(n+=" "),n+=t);return n}const $o=`
62
+ Check the top-level render call using <`+x+">.")}return E}}function pa(u,E){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var x=Js(E);if(ma[x])return;ma[x]=!0;var C="";u&&u._owner&&u._owner!==mr.current&&(C=" It was passed a child from "+$(u._owner.type)+"."),Je(u),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',x,C),Je(null)}}function va(u,E){{if(typeof u!="object")return;if(hr(u))for(var x=0;x<u.length;x++){var C=u[x];vr(C)&&pa(C,E)}else if(vr(u))u._store&&(u._store.validated=!0);else if(u){var F=d(u);if(typeof F=="function"&&F!==u.entries)for(var V=F.call(u),H;!(H=V.next()).done;)vr(H.value)&&pa(H.value,E)}}}function qs(u){{var E=u.type;if(E==null||typeof E=="string")return;var x;if(typeof E=="function")x=E.propTypes;else if(typeof E=="object"&&(E.$$typeof===l||E.$$typeof===h))x=E.propTypes;else return;if(x){var C=$(E);Hs(x,u.props,"prop",C,u)}else if(E.PropTypes!==void 0&&!pr){pr=!0;var F=$(E);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",F||"Unknown")}typeof E.getDefaultProps=="function"&&!E.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $s(u){{for(var E=Object.keys(u.props),x=0;x<E.length;x++){var C=E[x];if(C!=="children"&&C!=="key"){Je(u),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),Je(null);break}}u.ref!==null&&(Je(u),b("Invalid attribute `ref` supplied to `React.Fragment`."),Je(null))}}function ga(u,E,x,C,F,V){{var H=fe(u);if(!H){var A="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(A+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var oe=Ws(F);oe?A+=oe:A+=da();var W;u===null?W="null":hr(u)?W="array":u!==void 0&&u.$$typeof===t?(W="<"+($(u.type)||"Unknown")+" />",A=" Did you accidentally export a JSX literal instead of a component?"):W=typeof u,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",W,A)}var q=Ys(u,E,x,F,V);if(q==null)return q;if(H){var pe=E.children;if(pe!==void 0)if(C)if(hr(pe)){for(var qe=0;qe<pe.length;qe++)va(pe[qe],u);Object.freeze&&Object.freeze(pe)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else va(pe,u)}return u===n?$s(q):qs(q),q}}function Qs(u,E,x){return ga(u,E,x,!0)}function Ks(u,E,x){return ga(u,E,x,!1)}var eu=Ks,tu=Qs;Qe.Fragment=n,Qe.jsx=eu,Qe.jsxs=tu}()),Qe}(function(e){process.env.NODE_ENV==="production"?e.exports=Vo():e.exports=Xo()})(ct);const ft=ct.exports.Fragment,y=ct.exports.jsx,G=ct.exports.jsxs;var Ut=w.createContext(null);Ut.Consumer;var Zo=Ut.Provider,Yo=Zo,Wo=Ut;function Ze(){var e=w.useContext(Wo);return an(e),e}var zt;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(zt||(zt={}));var jt;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(jt||(jt={}));function ln(e){var t=function(r){var n=Ze(),a=r.value,o=r.children,i=Rt(r,["value","children"]),s=typeof a=="string"?new Date(a||0):a,l=e==="formatDate"?n.formatDateToParts(s,i):n.formatTimeToParts(s,i);return o(l)};return t.displayName=jt[e],t}function Ke(e){var t=function(r){var n=Ze(),a=r.value,o=r.children,i=Rt(r,["value","children"]),s=n[e](a,i);if(typeof o=="function")return o(s);var l=n.textComponent||w.Fragment;return y(l,{children:s})};return t.displayName=zt[e],t}function Gt(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}}function cn(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=Yr(n)?jo(n):n,t},{})}var fn=function(e,t,r,n){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];var i=cn(n),s=kt.apply(void 0,Ee([e,t,r,i],a,!1));return Array.isArray(s)?w.Children.toArray(s):s},hn=function(e,t){var r=e.defaultRichTextElements,n=Rt(e,["defaultRichTextElements"]),a=cn(r),o=zo(M(M(M({},on),n),{defaultRichTextElements:a}),t),i={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:a};return M(M({},o),{formatMessage:fn.bind(null,i,o.formatters),$t:fn.bind(null,i,o.formatters)})},Jo=function(e){he(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=$r(),r.state={cache:r.cache,intl:hn(Gt(r.props),r.cache),prevConfig:Gt(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var a=n.prevConfig,o=n.cache,i=Gt(r);return Go(a,i)?null:{intl:hn(i,o),prevConfig:i}},t.prototype.render=function(){return an(this.state.intl),y(Yo,{value:this.state.intl,children:this.props.children})},t.displayName="IntlProvider",t.defaultProps=on,t}(w.PureComponent);const qo=Jo;Ke("formatDate"),Ke("formatTime"),Ke("formatNumber"),Ke("formatList"),Ke("formatDisplayName"),ln("formatDate"),ln("formatTime");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 ht(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=dn(e))&&(n&&(n+=" "),n+=t);return n}const $o=`
63
63
  ---
64
64
  Request Info [please do not remove or edit this footer]
65
65
  `,Qo=`
@@ -77,10 +77,10 @@ URL: ${e.url}`;return $o+t+Qo}function ei(e,t,r,n){const o=r.replace("{applicati
77
77
  * LICENSE.md file in the root directory of this source tree.
78
78
  *
79
79
  * @license MIT
80
- */function vn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Y(e,t){return r=>{if(e&&e(r),!r.defaultPrevented)return t(r)}}function gn(e){return typeof e=="boolean"}function dt(e){return!!(e&&{}.toString.call(e)=="[object Function]")}function ri(e){return typeof e=="string"}function ni(e,t){if(e!=null)if(dt(e))e(t);else try{e.current=t}catch{throw new Error(`Cannot assign value "${t}" to ref "${e}"`)}}function ze(...e){return re.useCallback(t=>{for(let r of e)ni(r,t)},e)}function _e(e){return vn()?e?e.ownerDocument:document:null}function ai(e,t){let r=w.createContext(t);function n(o){let{children:i,...s}=o,l=w.useMemo(()=>s,Object.values(s));return y(r.Provider,{value:l,children:i})}function a(o){let i=w.useContext(r);if(i)return i;if(t)return t;throw Error(`${o} must be rendered inside of a ${e} component.`)}return r.displayName=`${e}Context`,n.displayName=`${e}Provider`,[n,a]}function oi(e){var n,a;let t=_e(e),r=t.defaultView||window;return t?{width:(n=t.documentElement.clientWidth)!=null?n:r.innerWidth,height:(a=t.documentElement.clientHeight)!=null?a:r.innerHeight}:{width:0,height:0}}function mt(e){return"which"in e?e.which===3:"button"in e?e.button===2:!1}function Ye(...e){return e.filter(t=>t!=null).join("--")}function Gt(){}function yn(){let[,e]=re.useState(Object.create(null));return re.useCallback(()=>{e(Object.create(null))},[])}var We=vn()?re.useLayoutEffect:re.useEffect;function Vt(e){const t=re.useRef(null);return re.useEffect(()=>{t.current=e},[e]),t.current}function ii(e,t){let[r,n]=re.useState(t),a=re.useCallback(o=>{e.current=o,n(o)},[]);return[r,a]}var si=({children:e,type:t="reach-portal",containerRef:r})=>{let n=w.useRef(null),a=w.useRef(null),o=yn();return w.useEffect(()=>{r!=null&&(typeof r!="object"||!("current"in r)?console.warn("@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."):r.current==null&&console.warn("@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."))},[r]),We(()=>{if(!n.current)return;let i=n.current.ownerDocument,s=(r==null?void 0:r.current)||i.body;return a.current=i==null?void 0:i.createElement(t),s.appendChild(a.current),o(),()=>{a.current&&s&&s.removeChild(a.current)}},[t,o,r]),a.current?ba.createPortal(e,a.current):y("span",{ref:n})},Xt=({unstable_skipInitialRender:e,...t})=>{let[r,n]=w.useState(!1);return w.useEffect(()=>{e&&n(!0)},[e]),e&&!r?null:y(si,{...t})};Xt.displayName="Portal";var ui=["bottom","height","left","right","top","width"],li=function(t,r){return t===void 0&&(t={}),r===void 0&&(r={}),ui.some(function(n){return t[n]!==r[n]})},Le=new Map,bn,ci=function e(){var t=[];Le.forEach(function(r,n){var a=n.getBoundingClientRect();li(a,r.rect)&&(r.rect=a,t.push(r))}),t.forEach(function(r){r.callbacks.forEach(function(n){return n(r.rect)})}),bn=window.requestAnimationFrame(e)};function fi(e,t){return{observe:function(){var n=Le.size===0;Le.has(e)?Le.get(e).callbacks.push(t):Le.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),n&&ci()},unobserve:function(){var n=Le.get(e);if(n){var a=n.callbacks.indexOf(t);a>=0&&n.callbacks.splice(a,1),n.callbacks.length||Le.delete(e),Le.size||cancelAnimationFrame(bn)}}}}function pt(e,t,r){var m;let n,a;gn(t)?n=t:(n=(m=t==null?void 0:t.observe)!=null?m:!0,a=t==null?void 0:t.onChange),dt(r)&&(a=r),w.useEffect(()=>{gn(t)&&console.warn("Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")},[t]),w.useEffect(()=>{dt(r)&&console.warn("Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")},[r]);let[o,i]=w.useState(e.current),s=w.useRef(!1),l=w.useRef(!1),[f,c]=w.useState(null),h=w.useRef(a);return We(()=>{h.current=a,e.current!==o&&i(e.current)}),We(()=>{o&&!s.current&&(s.current=!0,c(o.getBoundingClientRect()))},[o]),We(()=>{if(!n)return;let E=o;if(l.current||(l.current=!0,E=e.current),!E){console.warn("You need to place the ref");return}let I=fi(E,T=>{var d;(d=h.current)==null||d.call(h,T),c(T)});return I.observe(),()=>{I.unobserve()}},[n,o,e]),f}/*!
80
+ */function vn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Y(e,t){return r=>{if(e&&e(r),!r.defaultPrevented)return t(r)}}function gn(e){return typeof e=="boolean"}function dt(e){return!!(e&&{}.toString.call(e)=="[object Function]")}function ri(e){return typeof e=="string"}function ni(e,t){if(e!=null)if(dt(e))e(t);else try{e.current=t}catch{throw new Error(`Cannot assign value "${t}" to ref "${e}"`)}}function ze(...e){return ne.useCallback(t=>{for(let r of e)ni(r,t)},e)}function _e(e){return vn()?e?e.ownerDocument:document:null}function ai(e,t){let r=w.createContext(t);function n(o){let{children:i,...s}=o,l=w.useMemo(()=>s,Object.values(s));return y(r.Provider,{value:l,children:i})}function a(o){let i=w.useContext(r);if(i)return i;if(t)return t;throw Error(`${o} must be rendered inside of a ${e} component.`)}return r.displayName=`${e}Context`,n.displayName=`${e}Provider`,[n,a]}function oi(e){var n,a;let t=_e(e),r=t.defaultView||window;return t?{width:(n=t.documentElement.clientWidth)!=null?n:r.innerWidth,height:(a=t.documentElement.clientHeight)!=null?a:r.innerHeight}:{width:0,height:0}}function mt(e){return"which"in e?e.which===3:"button"in e?e.button===2:!1}function Ye(...e){return e.filter(t=>t!=null).join("--")}function Vt(){}function yn(){let[,e]=ne.useState(Object.create(null));return ne.useCallback(()=>{e(Object.create(null))},[])}var We=vn()?ne.useLayoutEffect:ne.useEffect;function Xt(e){const t=ne.useRef(null);return ne.useEffect(()=>{t.current=e},[e]),t.current}function ii(e,t){let[r,n]=ne.useState(t),a=ne.useCallback(o=>{e.current=o,n(o)},[]);return[r,a]}var si=({children:e,type:t="reach-portal",containerRef:r})=>{let n=w.useRef(null),a=w.useRef(null),o=yn();return w.useEffect(()=>{r!=null&&(typeof r!="object"||!("current"in r)?console.warn("@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`."):r.current==null&&console.warn("@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html."))},[r]),We(()=>{if(!n.current)return;let i=n.current.ownerDocument,s=(r==null?void 0:r.current)||i.body;return a.current=i==null?void 0:i.createElement(t),s.appendChild(a.current),o(),()=>{a.current&&s&&s.removeChild(a.current)}},[t,o,r]),a.current?ba.createPortal(e,a.current):y("span",{ref:n})},Zt=({unstable_skipInitialRender:e,...t})=>{let[r,n]=w.useState(!1);return w.useEffect(()=>{e&&n(!0)},[e]),e&&!r?null:y(si,{...t})};Zt.displayName="Portal";var ui=["bottom","height","left","right","top","width"],li=function(t,r){return t===void 0&&(t={}),r===void 0&&(r={}),ui.some(function(n){return t[n]!==r[n]})},Le=new Map,bn,ci=function e(){var t=[];Le.forEach(function(r,n){var a=n.getBoundingClientRect();li(a,r.rect)&&(r.rect=a,t.push(r))}),t.forEach(function(r){r.callbacks.forEach(function(n){return n(r.rect)})}),bn=window.requestAnimationFrame(e)};function fi(e,t){return{observe:function(){var n=Le.size===0;Le.has(e)?Le.get(e).callbacks.push(t):Le.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),n&&ci()},unobserve:function(){var n=Le.get(e);if(n){var a=n.callbacks.indexOf(t);a>=0&&n.callbacks.splice(a,1),n.callbacks.length||Le.delete(e),Le.size||cancelAnimationFrame(bn)}}}}function pt(e,t,r){var v;let n,a;gn(t)?n=t:(n=(v=t==null?void 0:t.observe)!=null?v:!0,a=t==null?void 0:t.onChange),dt(r)&&(a=r),w.useEffect(()=>{gn(t)&&console.warn("Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")},[t]),w.useEffect(()=>{dt(r)&&console.warn("Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")},[r]);let[o,i]=w.useState(e.current),s=w.useRef(!1),l=w.useRef(!1),[f,c]=w.useState(null),h=w.useRef(a);return We(()=>{h.current=a,e.current!==o&&i(e.current)}),We(()=>{o&&!s.current&&(s.current=!0,c(o.getBoundingClientRect()))},[o]),We(()=>{if(!n)return;let g=o;if(l.current||(l.current=!0,g=e.current),!g){console.warn("You need to place the ref");return}let I=fi(g,T=>{var d;(d=h.current)==null||d.call(h,T),c(T)});return I.observe(),()=>{I.unobserve()}},[n,o,e]),f}/*!
81
81
  * tabbable 5.3.3
82
82
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
83
- */var hi=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Zt=hi.join(","),En=typeof Element>"u",et=En?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Yt=!En&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},di=function(t,r,n){var a=Array.prototype.slice.apply(t.querySelectorAll(Zt));return r&&et.call(t,Zt)&&a.unshift(t),a=a.filter(n),a},mi=function e(t,r,n){for(var a=[],o=Array.from(t);o.length;){var i=o.shift();if(i.tagName==="SLOT"){var s=i.assignedElements(),l=s.length?s:i.children,f=e(l,!0,n);n.flatten?a.push.apply(a,f):a.push({scope:i,candidates:f})}else{var c=et.call(i,Zt);c&&n.filter(i)&&(r||!t.includes(i))&&a.push(i);var h=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),m=!n.shadowRootFilter||n.shadowRootFilter(i);if(h&&m){var E=e(h===!0?i.children:h.children,!0,n);n.flatten?a.push.apply(a,E):a.push({scope:i,candidates:E})}else o.unshift.apply(o,i.children)}}return a},wn=function(t,r){return t.tabIndex<0&&(r||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},pi=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},Tn=function(t){return t.tagName==="INPUT"},vi=function(t){return Tn(t)&&t.type==="hidden"},gi=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},yi=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},bi=function(t){if(!t.name)return!0;var r=t.form||Yt(t),n=function(s){return r.querySelectorAll('input[type="radio"][name="'+s+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=n(window.CSS.escape(t.name));else try{a=n(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=yi(a,t.form);return!o||o===t},Ei=function(t){return Tn(t)&&t.type==="radio"},wi=function(t){return Ei(t)&&!bi(t)},xn=function(t){var r=t.getBoundingClientRect(),n=r.width,a=r.height;return n===0&&a===0},Ti=function(t,r){var n=r.displayCheck,a=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=et.call(t,"details>summary:first-of-type"),i=o?t.parentElement:t;if(et.call(i,"details:not([open]) *"))return!0;var s=Yt(t).host,l=(s==null?void 0:s.ownerDocument.contains(s))||t.ownerDocument.contains(t);if(!n||n==="full"){if(typeof a=="function"){for(var f=t;t;){var c=t.parentElement,h=Yt(t);if(c&&!c.shadowRoot&&a(c)===!0)return xn(t);t.assignedSlot?t=t.assignedSlot:!c&&h!==t.ownerDocument?t=h.host:t=c}t=f}if(l)return!t.getClientRects().length}else if(n==="non-zero-area")return xn(t);return!1},xi=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var a=r.children.item(n);if(a.tagName==="LEGEND")return et.call(r,"fieldset[disabled] *")?!0:!a.contains(t)}return!0}r=r.parentElement}return!1},Si=function(t,r){return!(r.disabled||vi(r)||Ti(r,t)||gi(r)||xi(r))},Sn=function(t,r){return!(wi(r)||wn(r)<0||!Si(t,r))},Ri=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},Ii=function e(t){var r=[],n=[];return t.forEach(function(a,o){var i=!!a.scope,s=i?a.scope:a,l=wn(s,i),f=i?e(a.candidates):s;l===0?i?r.push.apply(r,f):r.push(s):n.push({documentOrder:o,tabIndex:l,item:a,isScope:i,content:f})}),n.sort(pi).reduce(function(a,o){return o.isScope?a.push.apply(a,o.content):a.push(o.content),a},[]).concat(r)},Re=function(t,r){r=r||{};var n;return r.getShadowRoot?n=mi([t],r.includeContainer,{filter:Sn.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:Ri}):n=di(t,r.includeContainer,Sn.bind(null,r)),Ii(n)},Wt=w.forwardRef(function({unstable_skipInitialPortalRender:t,...r},n){return y(Xt,{unstable_skipInitialRender:t,children:y(Rn,{ref:n,...r})})});Wt.displayName="Popover";var Rn=w.forwardRef(function({as:t="div",targetRef:r,position:n=Oi,unstable_observableRefs:a=[],...o},i){const s=w.useRef(null),l=pt(s,{observe:!o.hidden}),f=pt(r,{observe:!0}),c=ze(s,i);return Ni(r,s),y(t,{"data-reach-popover":"",ref:c,...o,style:{position:"absolute",...Mi(n,f,l,...a),...o.style}})});Rn.displayName="PopoverImpl";function Mi(e,t,r,...n){return r?e(t,r,...n.map(a=>a.current)):{visibility:"hidden"}}function Pi(e,t,r){return{top:r?`${e.top-t.height+window.pageYOffset}px`:`${e.top+e.height+window.pageYOffset}px`}}var Oi=(e,t)=>{if(!e||!t)return{};const{directionRight:r,directionUp:n}=Ci(e,t);return{left:r?`${e.right-t.width+window.pageXOffset}px`:`${e.left+window.pageXOffset}px`,...Pi(e,t,n)}};function Ci(e,t,r=0,n=0){const a={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-r,bottom:window.innerHeight<e.bottom+t.height-n,left:e.left+e.width-t.width<0},o=a.right&&!a.left,i=a.left&&!a.right,s=a.bottom&&!a.top,l=a.top&&!a.bottom;return{directionRight:o,directionLeft:i,directionUp:s,directionDown:l}}function Ni(e,t){const r=_e(e.current);function n(p){p.key==="Tab"&&t.current&&Re(t.current).length===0||(p.key==="Tab"&&p.shiftKey?f(p)?c(p):h(p)?m(p):I(p)&&d():p.key==="Tab"&&(o()?i(p):s()?l(p):E(p)&&d()))}w.useEffect(()=>(r.addEventListener("keydown",n),()=>{r.removeEventListener("keydown",n)}),[]);function a(){const p=Re(r),v=p&&e.current?p.indexOf(e.current):-1,O=p&&p[v+1];return t.current&&t.current.contains(O||null)?!1:O}function o(){return e.current?e.current===r.activeElement:!1}function i(p){const v=t.current&&Re(t.current);v&&v[0]&&(p.preventDefault(),v[0].focus())}function s(){if(t.current?t.current.contains(r.activeElement||null):!1){const v=t.current&&Re(t.current);return Boolean(v&&v[v.length-1]===r.activeElement)}return!1}function l(p){const v=a();v&&(p.preventDefault(),v.focus())}function f(p){if(!p.shiftKey)return;const v=a();return p.target===v}function c(p){const v=t.current&&Re(t.current),O=v&&v[v.length-1];O&&(p.preventDefault(),O.focus())}function h(p){const v=t.current&&Re(t.current);return v?v.length===0?!1:p.target===v[0]:!1}function m(p){var v;p.preventDefault(),(v=e.current)==null||v.focus()}function E(p){const v=t.current?Re(r).filter(O=>!t.current.contains(O)):null;return v?p.target===v[v.length-1]:!1}function I(p){return p.target===Re(r)[0]}let T=[];function d(){const p=t.current&&Re(t.current);p&&(p.forEach(v=>{T.push([v,v.tabIndex]),v.tabIndex=-1}),r.addEventListener("focusin",S))}function S(){r.removeEventListener("focusin",S),T.forEach(([p,v])=>{p.tabIndex=v})}}var Jt=!1,Ai=0;function In(){return++Ai}var Mn=w["useId".toString()];function Pn(e){var a;if(Mn!==void 0){let o=Mn();return e!=null?e:o}let t=e!=null?e:Jt?In():null,[r,n]=w.useState(t);return We(()=>{r===null&&n(In())},[]),w.useEffect(()=>{Jt===!1&&(Jt=!0)},[]),(a=e!=null?e:r)!=null?a:void 0}function _i(e,t={}){const r=[];let n=w.createContext({descendants:r,registerDescendant:()=>Gt,...t});return n.displayName=e,n}function Li(e,t,r){let n=yn(),{registerDescendant:a,descendants:o}=w.useContext(t),i=r!=null?r:o.findIndex(s=>s.element===e.element);return We(()=>(e.element||n(),a({...e,index:i})),[e,n,i,a,...Object.values(e)]),i}function Di(){return w.useState([])}function Hi(e){return w.useContext(e).descendants}function Bi({context:e,children:t,items:r,set:n}){let a=w.useCallback(({element:o,index:i,...s})=>o?(n(l=>{if(i!=null&&i!==-1)return Cn(l,{element:o,index:i,...s},i);if(l.length===0)return[{...s,element:o,index:0}];if(l.find(h=>h.element===o))return console.warn(`[reach-ui]: \`useDescendant\` was called with an element that was already registered.
83
+ */var hi=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Yt=hi.join(","),En=typeof Element>"u",et=En?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Wt=!En&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},di=function(t,r,n){var a=Array.prototype.slice.apply(t.querySelectorAll(Yt));return r&&et.call(t,Yt)&&a.unshift(t),a=a.filter(n),a},mi=function e(t,r,n){for(var a=[],o=Array.from(t);o.length;){var i=o.shift();if(i.tagName==="SLOT"){var s=i.assignedElements(),l=s.length?s:i.children,f=e(l,!0,n);n.flatten?a.push.apply(a,f):a.push({scope:i,candidates:f})}else{var c=et.call(i,Yt);c&&n.filter(i)&&(r||!t.includes(i))&&a.push(i);var h=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),v=!n.shadowRootFilter||n.shadowRootFilter(i);if(h&&v){var g=e(h===!0?i.children:h.children,!0,n);n.flatten?a.push.apply(a,g):a.push({scope:i,candidates:g})}else o.unshift.apply(o,i.children)}}return a},wn=function(t,r){return t.tabIndex<0&&(r||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},pi=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},Tn=function(t){return t.tagName==="INPUT"},vi=function(t){return Tn(t)&&t.type==="hidden"},gi=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},yi=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},bi=function(t){if(!t.name)return!0;var r=t.form||Wt(t),n=function(s){return r.querySelectorAll('input[type="radio"][name="'+s+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=n(window.CSS.escape(t.name));else try{a=n(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=yi(a,t.form);return!o||o===t},Ei=function(t){return Tn(t)&&t.type==="radio"},wi=function(t){return Ei(t)&&!bi(t)},xn=function(t){var r=t.getBoundingClientRect(),n=r.width,a=r.height;return n===0&&a===0},Ti=function(t,r){var n=r.displayCheck,a=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=et.call(t,"details>summary:first-of-type"),i=o?t.parentElement:t;if(et.call(i,"details:not([open]) *"))return!0;var s=Wt(t).host,l=(s==null?void 0:s.ownerDocument.contains(s))||t.ownerDocument.contains(t);if(!n||n==="full"){if(typeof a=="function"){for(var f=t;t;){var c=t.parentElement,h=Wt(t);if(c&&!c.shadowRoot&&a(c)===!0)return xn(t);t.assignedSlot?t=t.assignedSlot:!c&&h!==t.ownerDocument?t=h.host:t=c}t=f}if(l)return!t.getClientRects().length}else if(n==="non-zero-area")return xn(t);return!1},xi=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var a=r.children.item(n);if(a.tagName==="LEGEND")return et.call(r,"fieldset[disabled] *")?!0:!a.contains(t)}return!0}r=r.parentElement}return!1},Si=function(t,r){return!(r.disabled||vi(r)||Ti(r,t)||gi(r)||xi(r))},Sn=function(t,r){return!(wi(r)||wn(r)<0||!Si(t,r))},Ri=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},Ii=function e(t){var r=[],n=[];return t.forEach(function(a,o){var i=!!a.scope,s=i?a.scope:a,l=wn(s,i),f=i?e(a.candidates):s;l===0?i?r.push.apply(r,f):r.push(s):n.push({documentOrder:o,tabIndex:l,item:a,isScope:i,content:f})}),n.sort(pi).reduce(function(a,o){return o.isScope?a.push.apply(a,o.content):a.push(o.content),a},[]).concat(r)},Re=function(t,r){r=r||{};var n;return r.getShadowRoot?n=mi([t],r.includeContainer,{filter:Sn.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:Ri}):n=di(t,r.includeContainer,Sn.bind(null,r)),Ii(n)},Jt=w.forwardRef(function({unstable_skipInitialPortalRender:t,...r},n){return y(Zt,{unstable_skipInitialRender:t,children:y(Rn,{ref:n,...r})})});Jt.displayName="Popover";var Rn=w.forwardRef(function({as:t="div",targetRef:r,position:n=Oi,unstable_observableRefs:a=[],...o},i){const s=w.useRef(null),l=pt(s,{observe:!o.hidden}),f=pt(r,{observe:!0}),c=ze(s,i);return Ni(r,s),y(t,{"data-reach-popover":"",ref:c,...o,style:{position:"absolute",...Mi(n,f,l,...a),...o.style}})});Rn.displayName="PopoverImpl";function Mi(e,t,r,...n){return r?e(t,r,...n.map(a=>a.current)):{visibility:"hidden"}}function Pi(e,t,r){return{top:r?`${e.top-t.height+window.pageYOffset}px`:`${e.top+e.height+window.pageYOffset}px`}}var Oi=(e,t)=>{if(!e||!t)return{};const{directionRight:r,directionUp:n}=Ci(e,t);return{left:r?`${e.right-t.width+window.pageXOffset}px`:`${e.left+window.pageXOffset}px`,...Pi(e,t,n)}};function Ci(e,t,r=0,n=0){const a={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-r,bottom:window.innerHeight<e.bottom+t.height-n,left:e.left+e.width-t.width<0},o=a.right&&!a.left,i=a.left&&!a.right,s=a.bottom&&!a.top,l=a.top&&!a.bottom;return{directionRight:o,directionLeft:i,directionUp:s,directionDown:l}}function Ni(e,t){const r=_e(e.current);function n(b){b.key==="Tab"&&t.current&&Re(t.current).length===0||(b.key==="Tab"&&b.shiftKey?f(b)?c(b):h(b)?v(b):I(b)&&d():b.key==="Tab"&&(o()?i(b):s()?l(b):g(b)&&d()))}w.useEffect(()=>(r.addEventListener("keydown",n),()=>{r.removeEventListener("keydown",n)}),[]);function a(){const b=Re(r),m=b&&e.current?b.indexOf(e.current):-1,R=b&&b[m+1];return t.current&&t.current.contains(R||null)?!1:R}function o(){return e.current?e.current===r.activeElement:!1}function i(b){const m=t.current&&Re(t.current);m&&m[0]&&(b.preventDefault(),m[0].focus())}function s(){if(t.current?t.current.contains(r.activeElement||null):!1){const m=t.current&&Re(t.current);return Boolean(m&&m[m.length-1]===r.activeElement)}return!1}function l(b){const m=a();m&&(b.preventDefault(),m.focus())}function f(b){if(!b.shiftKey)return;const m=a();return b.target===m}function c(b){const m=t.current&&Re(t.current),R=m&&m[m.length-1];R&&(b.preventDefault(),R.focus())}function h(b){const m=t.current&&Re(t.current);return m?m.length===0?!1:b.target===m[0]:!1}function v(b){var m;b.preventDefault(),(m=e.current)==null||m.focus()}function g(b){const m=t.current?Re(r).filter(R=>!t.current.contains(R)):null;return m?b.target===m[m.length-1]:!1}function I(b){return b.target===Re(r)[0]}let T=[];function d(){const b=t.current&&Re(t.current);b&&(b.forEach(m=>{T.push([m,m.tabIndex]),m.tabIndex=-1}),r.addEventListener("focusin",S))}function S(){r.removeEventListener("focusin",S),T.forEach(([b,m])=>{b.tabIndex=m})}}var qt=!1,Ai=0;function In(){return++Ai}var Mn=w["useId".toString()];function Pn(e){var a;if(Mn!==void 0){let o=Mn();return e!=null?e:o}let t=e!=null?e:qt?In():null,[r,n]=w.useState(t);return We(()=>{r===null&&n(In())},[]),w.useEffect(()=>{qt===!1&&(qt=!0)},[]),(a=e!=null?e:r)!=null?a:void 0}function _i(e,t={}){const r=[];let n=w.createContext({descendants:r,registerDescendant:()=>Vt,...t});return n.displayName=e,n}function Li(e,t,r){let n=yn(),{registerDescendant:a,descendants:o}=w.useContext(t),i=r!=null?r:o.findIndex(s=>s.element===e.element);return We(()=>(e.element||n(),a({...e,index:i})),[e,n,i,a,...Object.values(e)]),i}function Di(){return w.useState([])}function Hi(e){return w.useContext(e).descendants}function Bi({context:e,children:t,items:r,set:n}){let a=w.useCallback(({element:o,index:i,...s})=>o?(n(l=>{if(i!=null&&i!==-1)return Cn(l,{element:o,index:i,...s},i);if(l.length===0)return[{...s,element:o,index:0}];if(l.find(h=>h.element===o))return console.warn(`[reach-ui]: \`useDescendant\` was called with an element that was already registered.
84
84
 
85
85
  If you are using the \`@reach/descendants\` package directly, make sure to only register descendants once. Registering a descendant more than once will lead to bugs in your app.
86
86
 
@@ -90,7 +90,7 @@ To report a bug, open a new issue:
90
90
 
91
91
  https://github.com/reach/reach-ui/issues/new?assignees=&labels=&template=Bug_report.md
92
92
 
93
- IMPORTANT: this check will only run in the development build, so if you see this warning please be aware that your app may crash when deployed.`),Ui(l);let f=ki(l,o),c;return f===-1?c=[...l,{...s,element:o,index:l.length}]:c=Cn(l,{...s,element:o,index:f},f),c}),()=>{!o||n(l=>l.filter(f=>o!==f.element))}):Gt,[]);return y(e.Provider,{value:w.useMemo(()=>({descendants:r,registerDescendant:a}),[r,a]),children:t})}function Fi(e,t){let{descendants:r}=w.useContext(e),{callback:n,currentIndex:a,filter:o,key:i="index",orientation:s="vertical",rotate:l=!0,rtl:f=!1}=t;return function(h){if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(h.key))return;let m=a!=null?a:-1,E=o?r.filter(o):r;if(!E.length)return;let I=E.findIndex(v=>v.index===a);function T(){return m===p().index?l?S():E[I]:E[(I+1)%E.length]}function d(){return m===S().index?l?p():E[I]:E[(I-1+E.length)%E.length]}function S(){return E[0]}function p(){return E[E.length-1]}switch(h.key){case"ArrowDown":if(s==="vertical"||s==="both"){h.preventDefault();let N=T();n(i==="option"?N:N[i])}break;case"ArrowUp":if(s==="vertical"||s==="both"){h.preventDefault();let N=d();n(i==="option"?N:N[i])}break;case"ArrowLeft":if(s==="horizontal"||s==="both"){h.preventDefault();let N=(f?T:d)();n(i==="option"?N:N[i])}break;case"ArrowRight":if(s==="horizontal"||s==="both"){h.preventDefault();let N=(f?d:T)();n(i==="option"?N:N[i])}break;case"PageUp":h.preventDefault();let v=(h.ctrlKey?d:S)();n(i==="option"?v:v[i]);break;case"Home":h.preventDefault();let O=S();n(i==="option"?O:O[i]);break;case"PageDown":h.preventDefault();let g=(h.ctrlKey?T:p)();n(i==="option"?g:g[i]);break;case"End":h.preventDefault();let L=p();n(i==="option"?L:L[i]);break}}}function On(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function ki(e,t){if(!t||!e.length)return-1;let r=e.length;for(;r--;){let n=e[r].element;if(!!n&&On(n,t))return r+1}return-1}function Cn(e,t,r){return r==null||!(r in e)?[...e,t]:[...e.slice(0,r),t,...e.slice(r)]}function Ui(e){return e.sort((t,r)=>!t.element||!r.element?0:On(t.element,r.element)?-1:1).map((t,r)=>({...t,index:r}))}var Nn="CLEAR_SELECTION_INDEX",qt="CLICK_MENU_ITEM",tt="CLOSE_MENU",zi="OPEN_MENU_AT_FIRST_ITEM",$t="OPEN_MENU_AT_INDEX",An="OPEN_MENU_CLEARED",Qt="SEARCH_FOR_ITEM",De="SELECT_ITEM_AT_INDEX",Kt="SET_BUTTON_ID",vt=_i("DropdownDescendantContext"),[ji,rt]=ai("Dropdown"),Gi={triggerId:null,isExpanded:!1,typeaheadQuery:"",selectionIndex:-1},_n=({id:e,children:t})=>{let r=w.useRef(null),n=w.useRef(null),a=w.useRef(null),[o,i]=Di(),s=Pn(e),l=e||Ye("menu",s),f=Ye("menu-button",l),[c,h]=w.useReducer(qi,{...Gi,triggerId:f}),m=w.useRef(!1),E=w.useRef([]),I=w.useRef(!1),T=w.useRef({x:0,y:0});return w.useEffect(()=>{c.isExpanded?(window.__REACH_DISABLE_TOOLTIPS=!0,window.requestAnimationFrame(()=>{gt(n.current)})):window.__REACH_DISABLE_TOOLTIPS=!1},[c.isExpanded]),y(Bi,{context:vt,items:o,set:i,children:y(ji,{dispatch:h,dropdownId:l,dropdownRef:n,mouseDownStartPosRef:T,popoverRef:a,readyToSelect:I,selectCallbacks:E,state:c,triggerClickedRef:m,triggerRef:r,children:dt(t)?t({isExpanded:c.isExpanded,isOpen:c.isExpanded}):t})})};_n.displayName="DropdownProvider";function Ln({onKeyDown:e,onMouseDown:t,id:r,ref:n,...a}){let{dispatch:o,dropdownId:i,mouseDownStartPosRef:s,triggerClickedRef:l,triggerRef:f,state:{triggerId:c,isExpanded:h}}=rt("useDropdownTrigger"),m=ze(f,n),E=kn(),I=w.useMemo(()=>E.findIndex(S=>!S.disabled),[E]);w.useEffect(()=>{r!=null&&r!==c&&o({type:Kt,payload:r})},[c,o,r]),w.useEffect(()=>{r==null&&o({type:Kt,payload:Ye("menu-button",i)})},[i,o,r]);function T(S){switch(S.key){case"ArrowDown":case"ArrowUp":S.preventDefault(),o({type:$t,payload:{index:I}});break;case"Enter":case" ":o({type:$t,payload:{index:I}});break}}function d(S){mt(S.nativeEvent)||(s.current={x:S.clientX,y:S.clientY},h||(l.current=!0),o(h?{type:tt}:{type:An}))}return{data:{isExpanded:h,controls:i},props:{...a,ref:m,id:c||void 0,onKeyDown:Y(e,T),onMouseDown:Y(t,d),type:"button"}}}var Vi=w.forwardRef(({as:e="button",...t},r)=>{let{props:n}=Ln({...t,ref:r});return y(e,{"data-reach-dropdown-trigger":"",...n})});Vi.displayName="DropdownTrigger";function Dn({index:e,isLink:t=!1,onClick:r,onDragStart:n,onMouseDown:a,onMouseEnter:o,onMouseLeave:i,onMouseMove:s,onMouseUp:l,onSelect:f,disabled:c,onFocus:h,valueText:m,ref:E,...I}){let{dispatch:T,dropdownRef:d,mouseDownStartPosRef:S,readyToSelect:p,selectCallbacks:v,triggerRef:O,state:{selectionIndex:g,isExpanded:L}}=rt("useDropdownItem"),N=w.useRef(null),[ie,se]=w.useState(m||""),xe=w.useCallback(B=>{!m&&(B==null?void 0:B.textContent)&&se(B.textContent)},[m]),de=w.useRef(!1),[ve,$]=ii(N,null),ue=w.useMemo(()=>({element:ve,key:ie,disabled:c,isLink:t}),[c,ve,t,ie]),J=Li(ue,vt,e),Z=J===g&&!c,le=ze(E,$,xe);v.current[J]=f;function Q(){gt(O.current),f&&f(),T({type:qt})}function Ie(B){mt(B.nativeEvent)||t&&(c?B.preventDefault():Q())}function Me(B){t&&B.preventDefault()}function He(B){mt(B.nativeEvent)||(t?de.current=!0:B.preventDefault())}function Be(B){let K=_e(d.current);!Z&&J!=null&&!c&&((d==null?void 0:d.current)&&d.current!==K.activeElement&&N.current!==K.activeElement&&d.current.focus(),T({type:De,payload:{index:J}}))}function Fe(B){T({type:Nn})}function je(B){if(!p.current){let K=8,Oe=Math.abs(B.clientX-S.current.x),Se=Math.abs(B.clientY-S.current.y);(Oe>K||Se>K)&&(p.current=!0)}!Z&&J!=null&&!c&&T({type:De,payload:{index:J,dropdownRef:d}})}function Ge(){p.current=!0,!Z&&J!=null&&!c&&T({type:De,payload:{index:J}})}function Pe(B){if(!mt(B.nativeEvent)){if(!p.current){p.current=!0;return}t?de.current?de.current=!1:N.current&&N.current.click():c||Q()}}return w.useEffect(()=>{if(L){let B=window.setTimeout(()=>{p.current=!0},400);return()=>{window.clearTimeout(B)}}else p.current=!1},[L,p]),w.useEffect(()=>{let B=_e(N.current);return B.addEventListener("mouseup",K),()=>{B.removeEventListener("mouseup",K)};function K(){de.current=!1}},[]),{data:{disabled:c},props:{id:Fn(J),tabIndex:-1,...I,ref:le,"data-disabled":c?"":void 0,"data-selected":Z?"":void 0,"data-valuetext":ie,onClick:Y(r,Ie),onDragStart:Y(n,Me),onMouseDown:Y(a,He),onMouseEnter:Y(o,Be),onMouseLeave:Y(i,Fe),onMouseMove:Y(s,je),onFocus:Y(h,Ge),onMouseUp:Y(l,Pe)}}}var Xi=w.forwardRef(({as:e="div",...t},r)=>{let{props:n}=Dn({...t,ref:r});return y(e,{"data-reach-dropdown-item":"",...n})});Xi.displayName="DropdownItem";function Hn({id:e,onKeyDown:t,ref:r,...n}){let{dispatch:a,triggerRef:o,dropdownRef:i,selectCallbacks:s,dropdownId:l,state:{isExpanded:f,triggerId:c,selectionIndex:h,typeaheadQuery:m}}=rt("useDropdownItems"),E=kn(),I=ze(i,r);w.useEffect(()=>{let v=Wi(E,m);m&&v!=null&&a({type:De,payload:{index:v,dropdownRef:i}});let O=window.setTimeout(()=>m&&a({type:Qt,payload:""}),1e3);return()=>window.clearTimeout(O)},[a,E,m,i]);let T=Vt(E.length),d=Vt(E[h]),S=Vt(h);w.useEffect(()=>{h>E.length-1?a({type:De,payload:{index:E.length-1,dropdownRef:i}}):T!==E.length&&h>-1&&d&&S===h&&E[h]!==d&&a({type:De,payload:{index:E.findIndex(v=>v.key===(d==null?void 0:d.key)),dropdownRef:i}})},[i,a,E,T,d,S,h]);let p=Y(function(O){let{key:g}=O;if(!!f)switch(g){case"Enter":case" ":let L=E.find(N=>N.index===h);L&&!L.disabled&&(O.preventDefault(),L.isLink&&L.element?L.element.click():(gt(o.current),s.current[L.index]&&s.current[L.index](),a({type:qt})));break;case"Escape":gt(o.current),a({type:tt});break;case"Tab":O.preventDefault();break;default:if(ri(g)&&g.length===1){let N=m+g.toLowerCase();a({type:Qt,payload:N})}break}},Fi(vt,{currentIndex:h,orientation:"vertical",rotate:!1,filter:v=>!v.disabled,callback:v=>{a({type:De,payload:{index:v,dropdownRef:i}})},key:"index"}));return{data:{activeDescendant:Fn(h)||void 0,triggerId:c},props:{tabIndex:-1,...n,ref:I,id:l,onKeyDown:Y(t,p)}}}var Zi=w.forwardRef(({as:e="div",...t},r)=>{let{props:n}=Hn({...t,ref:r});return y(e,{"data-reach-dropdown-items":"",...n})});Zi.displayName="DropdownItems";function Bn({onBlur:e,portal:t=!0,position:r,ref:n,...a}){let{triggerRef:o,triggerClickedRef:i,dispatch:s,dropdownRef:l,popoverRef:f,state:{isExpanded:c}}=rt("useDropdownPopover"),h=ze(f,n);return w.useEffect(()=>{if(!c)return;let m=_e(f.current);function E(I){i.current?i.current=!1:Ji(f.current,I.target)||s({type:tt})}return m.addEventListener("mousedown",E),()=>{m.removeEventListener("mousedown",E)}},[i,o,s,l,f,c]),{data:{portal:t,position:r,targetRef:o,isExpanded:c},props:{ref:h,hidden:!c,onBlur:Y(e,m=>{m.currentTarget.contains(m.relatedTarget)||s({type:tt})}),...a}}}var Yi=w.forwardRef(({as:e="div",...t},r)=>{let{data:{portal:n,targetRef:a,position:o},props:i}=Bn({...t,ref:r}),s={"data-reach-dropdown-popover":""};return n?y(Wt,{...i,...s,as:e,targetRef:a,position:o,unstable_skipInitialPortalRender:!0}):y(e,{...i,...s})});Yi.displayName="DropdownPopover";function Wi(e,t=""){if(!t)return null;let r=e.find(n=>{var a,o,i;return n.disabled?!1:(i=(o=(a=n.element)==null?void 0:a.dataset)==null?void 0:o.valuetext)==null?void 0:i.toLowerCase().startsWith(t)});return r?e.indexOf(r):null}function Fn(e){let{dropdownId:t}=rt("useItemId");return e!=null&&e>-1?Ye(`option-${e}`,t):void 0}function gt(e){e&&e.focus()}function Ji(e,t){return!!(e&&e.contains(t))}function qi(e,t={}){switch(t.type){case qt:return{...e,isExpanded:!1,selectionIndex:-1};case tt:return{...e,isExpanded:!1,selectionIndex:-1};case zi:return{...e,isExpanded:!0,selectionIndex:0};case $t:return{...e,isExpanded:!0,selectionIndex:t.payload.index};case An:return{...e,isExpanded:!0,selectionIndex:-1};case De:{let{dropdownRef:r={current:null}}=t.payload;if(t.payload.index>=0&&t.payload.index!==e.selectionIndex){if(r.current){let n=_e(r.current);r.current!==(n==null?void 0:n.activeElement)&&r.current.focus()}return{...e,selectionIndex:t.payload.max!=null?Math.min(Math.max(t.payload.index,0),t.payload.max):Math.max(t.payload.index,0)}}return e}case Nn:return{...e,selectionIndex:-1};case Kt:return{...e,triggerId:t.payload};case Qt:return typeof t.payload<"u"?{...e,typeaheadQuery:t.payload}:e;default:return e}}function kn(){return Hi(vt)}var Un={exports:{}},z={};/**
93
+ IMPORTANT: this check will only run in the development build, so if you see this warning please be aware that your app may crash when deployed.`),Ui(l);let f=ki(l,o),c;return f===-1?c=[...l,{...s,element:o,index:l.length}]:c=Cn(l,{...s,element:o,index:f},f),c}),()=>{!o||n(l=>l.filter(f=>o!==f.element))}):Vt,[]);return y(e.Provider,{value:w.useMemo(()=>({descendants:r,registerDescendant:a}),[r,a]),children:t})}function Fi(e,t){let{descendants:r}=w.useContext(e),{callback:n,currentIndex:a,filter:o,key:i="index",orientation:s="vertical",rotate:l=!0,rtl:f=!1}=t;return function(h){if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(h.key))return;let v=a!=null?a:-1,g=o?r.filter(o):r;if(!g.length)return;let I=g.findIndex(m=>m.index===a);function T(){return v===b().index?l?S():g[I]:g[(I+1)%g.length]}function d(){return v===S().index?l?b():g[I]:g[(I-1+g.length)%g.length]}function S(){return g[0]}function b(){return g[g.length-1]}switch(h.key){case"ArrowDown":if(s==="vertical"||s==="both"){h.preventDefault();let L=T();n(i==="option"?L:L[i])}break;case"ArrowUp":if(s==="vertical"||s==="both"){h.preventDefault();let L=d();n(i==="option"?L:L[i])}break;case"ArrowLeft":if(s==="horizontal"||s==="both"){h.preventDefault();let L=(f?T:d)();n(i==="option"?L:L[i])}break;case"ArrowRight":if(s==="horizontal"||s==="both"){h.preventDefault();let L=(f?d:T)();n(i==="option"?L:L[i])}break;case"PageUp":h.preventDefault();let m=(h.ctrlKey?d:S)();n(i==="option"?m:m[i]);break;case"Home":h.preventDefault();let R=S();n(i==="option"?R:R[i]);break;case"PageDown":h.preventDefault();let p=(h.ctrlKey?T:b)();n(i==="option"?p:p[i]);break;case"End":h.preventDefault();let N=b();n(i==="option"?N:N[i]);break}}}function On(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function ki(e,t){if(!t||!e.length)return-1;let r=e.length;for(;r--;){let n=e[r].element;if(!!n&&On(n,t))return r+1}return-1}function Cn(e,t,r){return r==null||!(r in e)?[...e,t]:[...e.slice(0,r),t,...e.slice(r)]}function Ui(e){return e.sort((t,r)=>!t.element||!r.element?0:On(t.element,r.element)?-1:1).map((t,r)=>({...t,index:r}))}var Nn="CLEAR_SELECTION_INDEX",$t="CLICK_MENU_ITEM",tt="CLOSE_MENU",zi="OPEN_MENU_AT_FIRST_ITEM",Qt="OPEN_MENU_AT_INDEX",An="OPEN_MENU_CLEARED",Kt="SEARCH_FOR_ITEM",De="SELECT_ITEM_AT_INDEX",er="SET_BUTTON_ID",vt=_i("DropdownDescendantContext"),[ji,rt]=ai("Dropdown"),Gi={triggerId:null,isExpanded:!1,typeaheadQuery:"",selectionIndex:-1},_n=({id:e,children:t})=>{let r=w.useRef(null),n=w.useRef(null),a=w.useRef(null),[o,i]=Di(),s=Pn(e),l=e||Ye("menu",s),f=Ye("menu-button",l),[c,h]=w.useReducer(qi,{...Gi,triggerId:f}),v=w.useRef(!1),g=w.useRef([]),I=w.useRef(!1),T=w.useRef({x:0,y:0});return w.useEffect(()=>{c.isExpanded?(window.__REACH_DISABLE_TOOLTIPS=!0,window.requestAnimationFrame(()=>{gt(n.current)})):window.__REACH_DISABLE_TOOLTIPS=!1},[c.isExpanded]),y(Bi,{context:vt,items:o,set:i,children:y(ji,{dispatch:h,dropdownId:l,dropdownRef:n,mouseDownStartPosRef:T,popoverRef:a,readyToSelect:I,selectCallbacks:g,state:c,triggerClickedRef:v,triggerRef:r,children:dt(t)?t({isExpanded:c.isExpanded,isOpen:c.isExpanded}):t})})};_n.displayName="DropdownProvider";function Ln({onKeyDown:e,onMouseDown:t,id:r,ref:n,...a}){let{dispatch:o,dropdownId:i,mouseDownStartPosRef:s,triggerClickedRef:l,triggerRef:f,state:{triggerId:c,isExpanded:h}}=rt("useDropdownTrigger"),v=ze(f,n),g=kn(),I=w.useMemo(()=>g.findIndex(S=>!S.disabled),[g]);w.useEffect(()=>{r!=null&&r!==c&&o({type:er,payload:r})},[c,o,r]),w.useEffect(()=>{r==null&&o({type:er,payload:Ye("menu-button",i)})},[i,o,r]);function T(S){switch(S.key){case"ArrowDown":case"ArrowUp":S.preventDefault(),o({type:Qt,payload:{index:I}});break;case"Enter":case" ":o({type:Qt,payload:{index:I}});break}}function d(S){mt(S.nativeEvent)||(s.current={x:S.clientX,y:S.clientY},h||(l.current=!0),o(h?{type:tt}:{type:An}))}return{data:{isExpanded:h,controls:i},props:{...a,ref:v,id:c||void 0,onKeyDown:Y(e,T),onMouseDown:Y(t,d),type:"button"}}}var Vi=w.forwardRef(({as:e="button",...t},r)=>{let{props:n}=Ln({...t,ref:r});return y(e,{"data-reach-dropdown-trigger":"",...n})});Vi.displayName="DropdownTrigger";function Dn({index:e,isLink:t=!1,onClick:r,onDragStart:n,onMouseDown:a,onMouseEnter:o,onMouseLeave:i,onMouseMove:s,onMouseUp:l,onSelect:f,disabled:c,onFocus:h,valueText:v,ref:g,...I}){let{dispatch:T,dropdownRef:d,mouseDownStartPosRef:S,readyToSelect:b,selectCallbacks:m,triggerRef:R,state:{selectionIndex:p,isExpanded:N}}=rt("useDropdownItem"),L=w.useRef(null),[te,ce]=w.useState(v||""),fe=w.useCallback(B=>{!v&&(B==null?void 0:B.textContent)&&ce(B.textContent)},[v]),me=w.useRef(!1),[ge,$]=ii(L,null),se=w.useMemo(()=>({element:ge,key:te,disabled:c,isLink:t}),[c,ge,t,te]),J=Li(se,vt,e),Z=J===p&&!c,ue=ze(g,$,fe);m.current[J]=f;function Q(){gt(R.current),f&&f(),T({type:$t})}function Ie(B){mt(B.nativeEvent)||t&&(c?B.preventDefault():Q())}function Me(B){t&&B.preventDefault()}function He(B){mt(B.nativeEvent)||(t?me.current=!0:B.preventDefault())}function Be(B){let K=_e(d.current);!Z&&J!=null&&!c&&((d==null?void 0:d.current)&&d.current!==K.activeElement&&L.current!==K.activeElement&&d.current.focus(),T({type:De,payload:{index:J}}))}function Fe(B){T({type:Nn})}function je(B){if(!b.current){let K=8,Oe=Math.abs(B.clientX-S.current.x),Se=Math.abs(B.clientY-S.current.y);(Oe>K||Se>K)&&(b.current=!0)}!Z&&J!=null&&!c&&T({type:De,payload:{index:J,dropdownRef:d}})}function Ge(){b.current=!0,!Z&&J!=null&&!c&&T({type:De,payload:{index:J}})}function Pe(B){if(!mt(B.nativeEvent)){if(!b.current){b.current=!0;return}t?me.current?me.current=!1:L.current&&L.current.click():c||Q()}}return w.useEffect(()=>{if(N){let B=window.setTimeout(()=>{b.current=!0},400);return()=>{window.clearTimeout(B)}}else b.current=!1},[N,b]),w.useEffect(()=>{let B=_e(L.current);return B.addEventListener("mouseup",K),()=>{B.removeEventListener("mouseup",K)};function K(){me.current=!1}},[]),{data:{disabled:c},props:{id:Fn(J),tabIndex:-1,...I,ref:ue,"data-disabled":c?"":void 0,"data-selected":Z?"":void 0,"data-valuetext":te,onClick:Y(r,Ie),onDragStart:Y(n,Me),onMouseDown:Y(a,He),onMouseEnter:Y(o,Be),onMouseLeave:Y(i,Fe),onMouseMove:Y(s,je),onFocus:Y(h,Ge),onMouseUp:Y(l,Pe)}}}var Xi=w.forwardRef(({as:e="div",...t},r)=>{let{props:n}=Dn({...t,ref:r});return y(e,{"data-reach-dropdown-item":"",...n})});Xi.displayName="DropdownItem";function Hn({id:e,onKeyDown:t,ref:r,...n}){let{dispatch:a,triggerRef:o,dropdownRef:i,selectCallbacks:s,dropdownId:l,state:{isExpanded:f,triggerId:c,selectionIndex:h,typeaheadQuery:v}}=rt("useDropdownItems"),g=kn(),I=ze(i,r);w.useEffect(()=>{let m=Wi(g,v);v&&m!=null&&a({type:De,payload:{index:m,dropdownRef:i}});let R=window.setTimeout(()=>v&&a({type:Kt,payload:""}),1e3);return()=>window.clearTimeout(R)},[a,g,v,i]);let T=Xt(g.length),d=Xt(g[h]),S=Xt(h);w.useEffect(()=>{h>g.length-1?a({type:De,payload:{index:g.length-1,dropdownRef:i}}):T!==g.length&&h>-1&&d&&S===h&&g[h]!==d&&a({type:De,payload:{index:g.findIndex(m=>m.key===(d==null?void 0:d.key)),dropdownRef:i}})},[i,a,g,T,d,S,h]);let b=Y(function(R){let{key:p}=R;if(!!f)switch(p){case"Enter":case" ":let N=g.find(L=>L.index===h);N&&!N.disabled&&(R.preventDefault(),N.isLink&&N.element?N.element.click():(gt(o.current),s.current[N.index]&&s.current[N.index](),a({type:$t})));break;case"Escape":gt(o.current),a({type:tt});break;case"Tab":R.preventDefault();break;default:if(ri(p)&&p.length===1){let L=v+p.toLowerCase();a({type:Kt,payload:L})}break}},Fi(vt,{currentIndex:h,orientation:"vertical",rotate:!1,filter:m=>!m.disabled,callback:m=>{a({type:De,payload:{index:m,dropdownRef:i}})},key:"index"}));return{data:{activeDescendant:Fn(h)||void 0,triggerId:c},props:{tabIndex:-1,...n,ref:I,id:l,onKeyDown:Y(t,b)}}}var Zi=w.forwardRef(({as:e="div",...t},r)=>{let{props:n}=Hn({...t,ref:r});return y(e,{"data-reach-dropdown-items":"",...n})});Zi.displayName="DropdownItems";function Bn({onBlur:e,portal:t=!0,position:r,ref:n,...a}){let{triggerRef:o,triggerClickedRef:i,dispatch:s,dropdownRef:l,popoverRef:f,state:{isExpanded:c}}=rt("useDropdownPopover"),h=ze(f,n);return w.useEffect(()=>{if(!c)return;let v=_e(f.current);function g(I){i.current?i.current=!1:Ji(f.current,I.target)||s({type:tt})}return v.addEventListener("mousedown",g),()=>{v.removeEventListener("mousedown",g)}},[i,o,s,l,f,c]),{data:{portal:t,position:r,targetRef:o,isExpanded:c},props:{ref:h,hidden:!c,onBlur:Y(e,v=>{v.currentTarget.contains(v.relatedTarget)||s({type:tt})}),...a}}}var Yi=w.forwardRef(({as:e="div",...t},r)=>{let{data:{portal:n,targetRef:a,position:o},props:i}=Bn({...t,ref:r}),s={"data-reach-dropdown-popover":""};return n?y(Jt,{...i,...s,as:e,targetRef:a,position:o,unstable_skipInitialPortalRender:!0}):y(e,{...i,...s})});Yi.displayName="DropdownPopover";function Wi(e,t=""){if(!t)return null;let r=e.find(n=>{var a,o,i;return n.disabled?!1:(i=(o=(a=n.element)==null?void 0:a.dataset)==null?void 0:o.valuetext)==null?void 0:i.toLowerCase().startsWith(t)});return r?e.indexOf(r):null}function Fn(e){let{dropdownId:t}=rt("useItemId");return e!=null&&e>-1?Ye(`option-${e}`,t):void 0}function gt(e){e&&e.focus()}function Ji(e,t){return!!(e&&e.contains(t))}function qi(e,t={}){switch(t.type){case $t:return{...e,isExpanded:!1,selectionIndex:-1};case tt:return{...e,isExpanded:!1,selectionIndex:-1};case zi:return{...e,isExpanded:!0,selectionIndex:0};case Qt:return{...e,isExpanded:!0,selectionIndex:t.payload.index};case An:return{...e,isExpanded:!0,selectionIndex:-1};case De:{let{dropdownRef:r={current:null}}=t.payload;if(t.payload.index>=0&&t.payload.index!==e.selectionIndex){if(r.current){let n=_e(r.current);r.current!==(n==null?void 0:n.activeElement)&&r.current.focus()}return{...e,selectionIndex:t.payload.max!=null?Math.min(Math.max(t.payload.index,0),t.payload.max):Math.max(t.payload.index,0)}}return e}case Nn:return{...e,selectionIndex:-1};case er:return{...e,triggerId:t.payload};case Kt:return typeof t.payload<"u"?{...e,typeaheadQuery:t.payload}:e;default:return e}}function kn(){return Hi(vt)}var Un={exports:{}},z={};/**
94
94
  * @license React
95
95
  * react-is.production.min.js
96
96
  *
@@ -98,7 +98,7 @@ IMPORTANT: this check will only run in the development build, so if you see this
98
98
  *
99
99
  * This source code is licensed under the MIT license found in the
100
100
  * LICENSE file in the root directory of this source tree.
101
- */var zn;function $i(){if(zn)return z;zn=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),I;I=Symbol.for("react.module.reference");function T(d){if(typeof d=="object"&&d!==null){var S=d.$$typeof;switch(S){case e:switch(d=d.type,d){case r:case a:case n:case f:case c:return d;default:switch(d=d&&d.$$typeof,d){case s:case i:case l:case m:case h:case o:return d;default:return S}}case t:return S}}}return z.ContextConsumer=i,z.ContextProvider=o,z.Element=e,z.ForwardRef=l,z.Fragment=r,z.Lazy=m,z.Memo=h,z.Portal=t,z.Profiler=a,z.StrictMode=n,z.Suspense=f,z.SuspenseList=c,z.isAsyncMode=function(){return!1},z.isConcurrentMode=function(){return!1},z.isContextConsumer=function(d){return T(d)===i},z.isContextProvider=function(d){return T(d)===o},z.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},z.isForwardRef=function(d){return T(d)===l},z.isFragment=function(d){return T(d)===r},z.isLazy=function(d){return T(d)===m},z.isMemo=function(d){return T(d)===h},z.isPortal=function(d){return T(d)===t},z.isProfiler=function(d){return T(d)===a},z.isStrictMode=function(d){return T(d)===n},z.isSuspense=function(d){return T(d)===f},z.isSuspenseList=function(d){return T(d)===c},z.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===a||d===n||d===f||d===c||d===E||typeof d=="object"&&d!==null&&(d.$$typeof===m||d.$$typeof===h||d.$$typeof===o||d.$$typeof===i||d.$$typeof===l||d.$$typeof===I||d.getModuleId!==void 0)},z.typeOf=T,z}var j={};/**
101
+ */var zn;function $i(){if(zn)return z;zn=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),I;I=Symbol.for("react.module.reference");function T(d){if(typeof d=="object"&&d!==null){var S=d.$$typeof;switch(S){case e:switch(d=d.type,d){case r:case a:case n:case f:case c:return d;default:switch(d=d&&d.$$typeof,d){case s:case i:case l:case v:case h:case o:return d;default:return S}}case t:return S}}}return z.ContextConsumer=i,z.ContextProvider=o,z.Element=e,z.ForwardRef=l,z.Fragment=r,z.Lazy=v,z.Memo=h,z.Portal=t,z.Profiler=a,z.StrictMode=n,z.Suspense=f,z.SuspenseList=c,z.isAsyncMode=function(){return!1},z.isConcurrentMode=function(){return!1},z.isContextConsumer=function(d){return T(d)===i},z.isContextProvider=function(d){return T(d)===o},z.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},z.isForwardRef=function(d){return T(d)===l},z.isFragment=function(d){return T(d)===r},z.isLazy=function(d){return T(d)===v},z.isMemo=function(d){return T(d)===h},z.isPortal=function(d){return T(d)===t},z.isProfiler=function(d){return T(d)===a},z.isStrictMode=function(d){return T(d)===n},z.isSuspense=function(d){return T(d)===f},z.isSuspenseList=function(d){return T(d)===c},z.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===a||d===n||d===f||d===c||d===g||typeof d=="object"&&d!==null&&(d.$$typeof===v||d.$$typeof===h||d.$$typeof===o||d.$$typeof===i||d.$$typeof===l||d.$$typeof===I||d.getModuleId!==void 0)},z.typeOf=T,z}var j={};/**
102
102
  * @license React
103
103
  * react-is.development.js
104
104
  *
@@ -106,7 +106,7 @@ IMPORTANT: this check will only run in the development build, so if you see this
106
106
  *
107
107
  * This source code is licensed under the MIT license found in the
108
108
  * LICENSE file in the root directory of this source tree.
109
- */var jn;function Qi(){return jn||(jn=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),I=!1,T=!1,d=!1,S=!1,p=!1,v;v=Symbol.for("react.module.reference");function O(P){return!!(typeof P=="string"||typeof P=="function"||P===r||P===a||p||P===n||P===f||P===c||S||P===E||I||T||d||typeof P=="object"&&P!==null&&(P.$$typeof===m||P.$$typeof===h||P.$$typeof===o||P.$$typeof===i||P.$$typeof===l||P.$$typeof===v||P.getModuleId!==void 0))}function g(P){if(typeof P=="object"&&P!==null){var ge=P.$$typeof;switch(ge){case e:var Ce=P.type;switch(Ce){case r:case a:case n:case f:case c:return Ce;default:var at=Ce&&Ce.$$typeof;switch(at){case s:case i:case l:case m:case h:case o:return at;default:return ge}}case t:return ge}}}var L=i,N=o,ie=e,se=l,xe=r,de=m,ve=h,$=t,ue=a,J=n,Z=f,le=c,Q=!1,Ie=!1;function Me(P){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function He(P){return Ie||(Ie=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Be(P){return g(P)===i}function Fe(P){return g(P)===o}function je(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function Ge(P){return g(P)===l}function Pe(P){return g(P)===r}function B(P){return g(P)===m}function K(P){return g(P)===h}function Oe(P){return g(P)===t}function Se(P){return g(P)===a}function nt(P){return g(P)===n}function M(P){return g(P)===f}function Ve(P){return g(P)===c}j.ContextConsumer=L,j.ContextProvider=N,j.Element=ie,j.ForwardRef=se,j.Fragment=xe,j.Lazy=de,j.Memo=ve,j.Portal=$,j.Profiler=ue,j.StrictMode=J,j.Suspense=Z,j.SuspenseList=le,j.isAsyncMode=Me,j.isConcurrentMode=He,j.isContextConsumer=Be,j.isContextProvider=Fe,j.isElement=je,j.isForwardRef=Ge,j.isFragment=Pe,j.isLazy=B,j.isMemo=K,j.isPortal=Oe,j.isProfiler=Se,j.isStrictMode=nt,j.isSuspense=M,j.isSuspenseList=Ve,j.isValidElementType=O,j.typeOf=g}()),j}(function(e){process.env.NODE_ENV==="production"?e.exports=$i():e.exports=Qi()})(Un);var yt=w.forwardRef(({as:e=w.Fragment,id:t,children:r,...n},a)=>{let i=w.useMemo(()=>{try{return Un.exports.isFragment(y(e,{}))}catch{return!1}},[e])?{}:{ref:a,id:t,"data-reach-menu":"",...n};return y(e,{...i,children:y(_n,{id:t,children:r})})});yt.displayName="Menu";var bt=w.forwardRef(({as:e="button",...t},r)=>{let{data:{isExpanded:n,controls:a},props:o}=Ln({...t,ref:r});return y(e,{"aria-expanded":n?!0:void 0,"aria-haspopup":!0,"aria-controls":a,...o,"data-reach-menu-button":""})});bt.displayName="MenuButton";var er=w.forwardRef(({as:e="div",...t},r)=>{let{data:{disabled:n},props:a}=Dn({...t,ref:r});return y(e,{role:"menuitem",...a,"aria-disabled":n||void 0,"data-reach-menu-item":""})});er.displayName="MenuItemImpl";var Gn=w.forwardRef(({as:e="div",...t},r)=>y(er,{...t,ref:r,as:e}));Gn.displayName="MenuItem";var Vn=w.forwardRef(({as:e="div",...t},r)=>{let{data:{activeDescendant:n,triggerId:a},props:o}=Hn({...t,ref:r});return y(e,{"aria-activedescendant":n,"aria-labelledby":a||void 0,role:"menu",...o,"data-reach-menu-items":""})});Vn.displayName="MenuItems";var tr=w.forwardRef(({as:e="a",component:t,onSelect:r,...n},a)=>(w.useEffect(()=>{t&&console.warn("[@reach/menu-button]: Please use the `as` prop instead of `component`")},[t]),y(er,{...n,ref:a,"data-reach-menu-link":"",as:e,isLink:!0,onSelect:r||Gt})));tr.displayName="MenuLink";var Xn=w.forwardRef(({portal:e=!0,...t},r)=>y(Zn,{portal:e,children:y(Vn,{...t,ref:r,"data-reach-menu-list":""})}));Xn.displayName="MenuList";var Zn=w.forwardRef(({as:e="div",...t},r)=>{let{data:{portal:n,targetRef:a,position:o},props:i}=Bn({...t,ref:r}),s={"data-reach-menu-popover":""};return n?y(Wt,{...i,...s,as:e,targetRef:a,position:o,unstable_skipInitialPortalRender:!0}):y(e,{...i,...s})});Zn.displayName="MenuPopover";function rr({children:e,withMinWidth:t=!0,className:r,...n}){return y(Xn,{...n,className:ht({"tw-min-w-[13.125rem]":t},"motion-safe:data-[reach-menu-list]:tw-animate-slideDown motion-safe:data-[reach-menu-items]:tw-animate-slideDown tw-z-[1] tw-mt-2 tw-bg-white tw-shadow-[0_1px_2px_0_rgb(60,64,67,0.3),0_2px_6px_2px_rgb(60,64,67,0.15)] tw-outline-none tw-will-change-transform",r),children:e})}function Ki({applicationDescriptions:e,refreshToken:t}){const r=Ze(),n=Object.values(e).filter(a=>!a.hidden).map(a=>({...a,url:`${a.url}${t?`#refreshToken=${t}`:""}`}));return G(yt,{children:[G(bt,{as:ce.Button,className:"aria-expanded:tw-text-primary-700 aria-expanded:tw-bg-primary-100 aria-expanded:tw-border-primary-100 aria-expanded:tw-duration-150",variant:"ghost",colorScheme:"primary",compact:!0,rounded:!0,children:[y("p",{className:"tw-sr-only",children:r.formatMessage({id:"appSelector"})}),G("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",children:[y("title",{children:r.formatMessage({id:"appSelector"})}),y("g",{fill:"currentColor",fillRule:"evenodd",fillOpacity:.9,children:y("path",{d:"M15 20h5v-5h-5m0-2.5h5v-5h-5M7.5 5h5V0h-5M15 5h5V0h-5M7.5 12.5h5v-5h-5m-7.5 5h5v-5H0M0 20h5v-5H0m7.5 5h5v-5h-5M0 5h5V0H0v5z"})})]})]}),y(rr,{className:"tw-grid tw-max-w-[250px] tw-grid-cols-2 tw-gap-3 tw-px-4 tw-py-4",children:n.map(a=>G(tr,{className:"data-selected:tw-duration-150 tw-flex tw-flex-col tw-items-center tw-gap-2 tw-rounded-lg tw-px-2 tw-py-2 tw-text-center tw-text-sm tw-font-light tw-text-black tw-no-underline tw-transition-colors tw-duration-500 hover:tw-cursor-pointer hover:tw-bg-gray-50 hover:tw-duration-150 data-[selected]:tw-cursor-pointer data-[selected]:tw-bg-gray-50",href:a.url,children:[y("img",{alt:"",width:"34",height:"34","aria-hidden":!0,src:`data:image/svg+xml;base64,${a.logo}`,className:"tw-my-0 tw-mx-2 tw-block"}),a.name]},`app-selector-${a.name}`))})]})}function Yn({children:e,className:t,...r}){return y("h1",{...r,className:ht("tw-my-0 tw-mr-auto tw-ml-2 tw-text-lg tw-font-light tw-leading-none tw-tracking-wide tw-text-black md:tw-text-xl lg:tw-text-2xl",t),children:e})}const ru="";var Wn=w.forwardRef(function({as:t="span",style:r={},...n},a){return y(t,{ref:a,style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal",...r},...n})});Wn.displayName="VisuallyHidden";var es=100,ts=500,nr={initial:"IDLE",states:{IDLE:{enter:ir,on:{MOUSE_ENTER:"FOCUSED",FOCUS:"VISIBLE"}},FOCUSED:{enter:as,leave:os,on:{MOUSE_MOVE:"FOCUSED",MOUSE_LEAVE:"IDLE",MOUSE_DOWN:"DISMISSED",BLUR:"IDLE",REST:"VISIBLE"}},VISIBLE:{on:{FOCUS:"FOCUSED",MOUSE_ENTER:"FOCUSED",MOUSE_LEAVE:"LEAVING_VISIBLE",BLUR:"LEAVING_VISIBLE",MOUSE_DOWN:"DISMISSED",SELECT_WITH_KEYBOARD:"DISMISSED",GLOBAL_MOUSE_MOVE:"LEAVING_VISIBLE"}},LEAVING_VISIBLE:{enter:is,leave:()=>{ss(),ir()},on:{MOUSE_ENTER:"VISIBLE",FOCUS:"VISIBLE",TIME_COMPLETE:"IDLE"}},DISMISSED:{leave:()=>{ir()},on:{MOUSE_LEAVE:"IDLE",BLUR:"IDLE"}}}},he={value:nr.initial,context:{id:null}},Et=[];function rs(e){return Et.push(e),()=>{Et.splice(Et.indexOf(e),1)}}function ns(){Et.forEach(e=>e(he))}var ar;function as(){window.clearTimeout(ar),ar=window.setTimeout(()=>{pe({type:"REST"})},es)}function os(){window.clearTimeout(ar)}var or;function is(){window.clearTimeout(or),or=window.setTimeout(()=>pe({type:"TIME_COMPLETE"}),ts)}function ss(){window.clearTimeout(or)}function ir(){he.context.id=null}function Jn({id:e,onPointerEnter:t,onPointerMove:r,onPointerLeave:n,onPointerDown:a,onMouseEnter:o,onMouseMove:i,onMouseLeave:s,onMouseDown:l,onFocus:f,onBlur:c,onKeyDown:h,disabled:m,ref:E,DEBUG_STYLE:I}={}){let T=String(Pn(e)),[d,S]=w.useState(I?!0:$n(T,!0)),p=w.useRef(null),v=ze(E,p),O=pt(p,{observe:d});w.useEffect(()=>rs(()=>{S($n(T))}),[T]),w.useEffect(()=>{let Z=_e(p.current);function le(Q){(Q.key==="Escape"||Q.key==="Esc")&&he.value==="VISIBLE"&&pe({type:"SELECT_WITH_KEYBOARD"})}return Z.addEventListener("keydown",le),()=>Z.removeEventListener("keydown",le)},[]),hs({disabled:m,isVisible:d,ref:p});function g(Z,le){return typeof window<"u"&&"PointerEvent"in window?Z:Y(Z,le)}function L(Z){return function(Q){Q.pointerType==="mouse"&&Z(Q)}}function N(){pe({type:"MOUSE_ENTER",id:T})}function ie(){pe({type:"MOUSE_MOVE",id:T})}function se(){pe({type:"MOUSE_LEAVE"})}function xe(){he.context.id===T&&pe({type:"MOUSE_DOWN"})}function de(){window.__REACH_DISABLE_TOOLTIPS||pe({type:"FOCUS",id:T})}function ve(){he.context.id===T&&pe({type:"BLUR"})}function $(Z){(Z.key==="Enter"||Z.key===" ")&&pe({type:"SELECT_WITH_KEYBOARD"})}return[{"aria-describedby":d?Ye("tooltip",T):void 0,"data-state":d?"tooltip-visible":"tooltip-hidden","data-reach-tooltip-trigger":"",ref:v,onPointerEnter:Y(t,L(N)),onPointerMove:Y(r,L(ie)),onPointerLeave:Y(n,L(se)),onPointerDown:Y(a,L(xe)),onMouseEnter:g(o,N),onMouseMove:g(i,ie),onMouseLeave:g(s,se),onMouseDown:g(l,xe),onFocus:Y(f,de),onBlur:Y(c,ve),onKeyDown:Y(h,$)},{id:T,triggerRect:O,isVisible:d},d]}var us=w.forwardRef(function({children:e,label:t,ariaLabel:r,id:n,DEBUG_STYLE:a,...o},i){let s=w.Children.only(e);w.useEffect(()=>{r&&console.warn("The `ariaLabel prop is deprecated and will be removed from @reach/tooltip in a future version of Reach UI. Please use `aria-label` instead.")},[r]);let[l,f]=Jn({id:n,onPointerEnter:s.props.onPointerEnter,onPointerMove:s.props.onPointerMove,onPointerLeave:s.props.onPointerLeave,onPointerDown:s.props.onPointerDown,onMouseEnter:s.props.onMouseEnter,onMouseMove:s.props.onMouseMove,onMouseLeave:s.props.onMouseLeave,onMouseDown:s.props.onMouseDown,onFocus:s.props.onFocus,onBlur:s.props.onBlur,onKeyDown:s.props.onKeyDown,disabled:s.props.disabled,ref:s.ref,DEBUG_STYLE:a});return G(ft,{children:[w.cloneElement(s,l),y(sr,{ref:i,label:t,"aria-label":r,...f,...o})]})});us.displayName="Tooltip";var sr=w.forwardRef(function({label:t,ariaLabel:r,isVisible:n,id:a,...o},i){return n?y(Xt,{children:y(qn,{ref:i,label:t,"aria-label":r,isVisible:n,...o,id:Ye("tooltip",String(a))})}):null});sr.displayName="TooltipPopup";var qn=w.forwardRef(function({ariaLabel:t,"aria-label":r,as:n="div",id:a,isVisible:o,label:i,position:s=fs,style:l,triggerRect:f,...c},h){let m=(r||t)!=null,E=w.useRef(null),I=ze(h,E),T=pt(E,{observe:o});return G(ft,{children:[y(n,{role:m?void 0:"tooltip",...c,ref:I,"data-reach-tooltip":"",id:m?void 0:a,style:{...l,...ls(s,f,T)},children:i}),m&&y(Wn,{role:"tooltip",id:a,children:r||t})]})});qn.displayName="TooltipContent";function ls(e,t,r){return r?e(t,r):{visibility:"hidden"}}var cs=8,fs=(e,t,r=cs)=>{let{width:n,height:a}=oi();if(!e||!t)return{};let o={top:e.top-t.height<0,right:n<e.left+t.width,bottom:a<e.bottom+t.height+r,left:e.left-t.width<0},i=o.right&&!o.left,s=o.bottom&&!o.top;return{left:i?`${e.right-t.width+window.pageXOffset}px`:`${e.left+window.pageXOffset}px`,top:s?`${e.top-r-t.height+window.pageYOffset}px`:`${e.top+r+e.height+window.pageYOffset}px`}};function hs({disabled:e,isVisible:t,ref:r}){w.useEffect(()=>{if(!(typeof window<"u"&&"PointerEvent"in window)||!e||!t)return;let n=_e(r.current);function a(o){!t||o.target instanceof Element&&o.target.closest("[data-reach-tooltip-trigger][data-state='tooltip-visible']")||pe({type:"GLOBAL_MOUSE_MOVE"})}return n.addEventListener("mousemove",a),()=>{n.removeEventListener("mousemove",a)}},[e,t,r])}function pe(e){let{value:t,context:r,changed:n}=ds(he,e);n&&(he={value:t,context:r},ns())}function ds(e,t){let r=nr.states[e.value],n=r&&r.on&&r.on[t.type];if(!n)return{...e,changed:!1};r&&r.leave&&r.leave(e.context,t);const{type:a,...o}=t;let i={...he.context,...o},s=typeof n=="string"?n:n.target,l=nr.states[s];return l&&l.enter&&l.enter(e.context,t),{value:s,context:i,changed:!0}}function $n(e,t){return he.context.id===e&&(t?he.value==="VISIBLE":he.value==="VISIBLE"||he.value==="LEAVING_VISIBLE")}const ms=(e,t)=>{const r=e&&t?e.right-t.width+window.scrollX:"",n=e?e.bottom+window.scrollY:"";return{left:`${r}px`,top:`${n}px`}};function ps({children:e,label:t}){const[r,n]=Jn();return G(ft,{children:[ye.default.cloneElement(e,r),y(sr,{...n,label:t,"aria-label":t,style:{background:"white",color:"black",border:"none",borderRadius:"0.5rem",boxShadow:"0 2px 10px rgba(0,0,0,0.1)"},position:ms,className:"tw-border tw-border-blue-500 tw-p-2"})]})}const Qn="x4b.language",vs=e=>{window.localStorage.setItem(Qn,e)};function Kn(){return window.localStorage.getItem(Qn)||"en"}const ea={en:"EN - English",fr:"FR - Fran\xE7ais"};function gs({language:e,languages:t,onLanguageSelected:r}){return G(yt,{children:[y(bt,{as:ce.Button,className:"aria-expanded:tw-border-gray-100 aria-expanded:tw-bg-gray-100 aria-expanded:tw-text-gray-700 aria-expanded:tw-duration-150",variant:"ghost",colorScheme:"gray",rounded:!0,compact:!0,children:G("div",{className:"tw-min-w-[36px] tw-text-base lg:tw-text-lg",children:[y("span",{children:e.toUpperCase()}),G("svg",{"aria-hidden":!0,className:"tw-ml-1 !tw-inline-block",xmlns:"http://www.w3.org/2000/svg",width:"8",height:"5",viewBox:"0 0 8 5",children:[y("defs",{children:y("path",{id:"a",d:"M1367.876 32.83a.5.5 0 01-.752-.66l3.5-4a.5.5 0 01.752 0l3.5 4a.5.5 0 01-.752.66L1371 29.26l-3.124 3.57z"})}),y("use",{fill:"currentColor",transform:"matrix(1 0 0 -1 -1367 33)",xlinkHref:"#a"})]})]})}),y(rr,{withMinWidth:!1,className:"tw-min-w-fit",children:t.filter(n=>ea[n]).map(n=>y(Gn,{className:"tw-cursor-pointer tw-whitespace-nowrap tw-py-2 tw-px-4 tw-text-base tw-font-normal tw-leading-normal tw-tracking-normal tw-text-black hover:tw-bg-gray-50 data-[selected]:tw-bg-gray-50",onSelect:()=>{vs(n),r&&r(n)},children:ea[n]},n))})]})}function ys({count:e,onClick:t}){const r=Ze();return G(ce.Button,{className:"tw-hidden sm:tw-inline-block",variant:"ghost",colorScheme:"primary",compact:!0,rounded:!0,onClick:t,children:[y("p",{className:"tw-sr-only",children:r.formatMessage({id:"notifications"})}),G("svg",{"aria-hidden":!0,width:"22",height:"22",opacity:"0.9",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"tw-block tw-scale-[1.08]",children:[y("title",{children:r.formatMessage({id:"notifications"})}),y("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"})]}),e?y("div",{className:"tw-absolute tw-top-[0.3em] tw-left-[22px] tw-min-w-[1em] tw-rounded-[1em] tw-bg-red-600 tw-py-[0.1em] tw-px-[0.3em] tw-text-center tw-text-[0.8em] tw-font-semibold tw-leading-[1em] tw-text-white",children:e}):void 0]})}function bs({username:e,version:t,onLogout:r}){const n=Ze();return G(yt,{children:[G(bt,{className:"!tw-px-0 !tw-py-0 tw-transition-opacity hover:tw-opacity-80 aria-expanded:tw-opacity-80 aria-expanded:tw-duration-150",as:ce.Button,variant:"ghost",colorScheme:"primary",compact:!0,rounded:!0,children:[y("p",{className:"tw-sr-only",children:n.formatMessage({id:"userAccountTooltip"})}),G("svg",{"aria-hidden":!0,width:44,height:44,viewBox:"0 0 44 44",version:"1.1",children:[y("title",{children:n.formatMessage({id:"userAccountTooltip"})}),y("defs",{children:y("clipPath",{id:"user-badge--clip-path",children:y("circle",{cx:"50%",cy:"50%",r:"22",fill:"#FFFFFF",fillRule:"evenodd"})})}),y("image",{width:"44",height:"44",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfMAAAHyCAMAAADIjdfcAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAYBQTFRFM22C0LKTQX6aSEhIRoSiSoyuMGp+0cjRRICdNXCFQH2ZP3uWs7OwJ11xhoeGR2VzSIalSousPnqVSoqrOHOKz6jORoalPHmT/ubPR4enR4WkRYSjPXqUoYt2VVVVQ4GeOnaPSYqs5NbjOXSNS4ytrGeqcXBvdIeENnGIRVZdRUVFSl9o/vDjOVll4sWlRXSKLlpp/dy8sKqXN1FaUVFR8cqjO3eQTExMPnuWk5uYbZKet5yCR4OgRElL0b2jW4mboKWiRm19TIOa/dKoT4efQk1STI2vUVtf////Rn6apFiiU1dZSIioQHePQoCcSYmpRYKgRYOhQX+bQHSLRIKgQ4GdRIOhSIinQHyXPHiROnWNPnmTSImqO3iRQn+cQoCdSImpSYqqOnWOQX6ZSYioQ4CdOXSMuoK56ebpjnxs8/Pz5r2eUFVXc2hdXl5f/dWuXFZRUE1L+fT58+rz/vz5Z19X/vjxQXCEXHp+OHSOak5pSH+bRnuUklWRgW6AU0pTDizfXgAAHjtJREFUeNrs3etjE8d2APAxohKxPRZ140DBXqe6tYikGBljX9coMiiKasVcqHmlUFJyb9Nb2WBjDAFze932X69k+aHHrnYeZ2bOked8SfIFVvvLOXNmZneW/TPC+JvI+MeT+NuI+Ie/C40//ennn3/+4x//pTP+0BX/+Yd/bcbf98Xldnx1FE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/KwePIr6YBaor9VXYY7a9wDUh2c1KoMiye/sh6QS/SMunmGZmmXaOJYPPkVR79B53XFVXXzKd3SvuTodi1Img8iP3BlHsAU94aC+Wt6aS7exLFYclfDud50LaNs3tB8EG7f1d3KSZkPJL9SCAgm+qr0IRNdjfsEvTQXb+JYLLmzFk4r0QPFpdd24/6a2kRNakBnseRX3P0InelaStk8o1XaHd6teWHzOPIDh79Co7hPqC3DtZu4LMU0FzePI3fYwmkleqBhvkVvoibTxLE4cpctnFaip1TNGxql3WWaCzdxLI7csfmSdnGfkjWf0yjtS05vlmATx+LIXwQB0UR/rWi+kSLZwYkP6CyO/MCxufoC7Liq+f8STXMJ84HkLyoB1USfUFqGa8b/EU1z0SaOxZC/SAdkE31Lzfx/qKa5aBPHYshfrAdkE31cZel1Y+O/qaa5aBP3/wIMAI6prfGsFSkIAAAAAElFTkSuQmCC",clipPath:"url(#user-badge--clip-path)"})]})]}),G(rr,{withMinWidth:!1,className:"tw-w-[310px]",children:[G("div",{className:"tw-flex tw-flex-col tw-gap-4 tw-py-4 tw-px-5",children:[y("div",{className:"tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap tw-text-base tw-font-semibold tw-leading-tight tw-text-black",children:e}),y(tr,{as:ce.Button,className:"tw-self-end data-[selected]:[&:not(:hover)]:tw-ring data-[selected]:[&:not(:hover)]:tw-ring-gray-300",variant:"outline",colorScheme:"gray",onSelect:r,children:n.formatMessage({id:"logout"})})]}),y("div",{className:"tw-flex tw-w-full tw-justify-center tw-bg-gray-50 tw-py-4 tw-px-0 tw-text-sm tw-font-normal tw-text-gray-700",children:n.formatMessage({id:"version"},{version:t})})]})]})}const Es="https://xcomponent.github.io/appcontrol-documentation/contact/";function ws({application:e,applications:t,notificationCount:r,onNotificationClick:n,onInstallationClick:a,onToggleMenuClick:o,language:i,languages:s,onLanguageChange:l,username:f,version:c,logout:h,refreshToken:m,loginUrl:E,withMaxWith:I=!1,className:T,showUpgrade:d,...S}){const p=Ze(),v=t==null?void 0:t[e],O="x4b-settings",g=t==null?void 0:t[O],L="support@xcomponent.com",N=v&&{applicationName:v==null?void 0:v.name,username:f,version:c,url:v==null?void 0:v.url},ie=()=>{const se=!pn();ti(se),o&&o(se)};return v?y("header",{...S,"aria-label":"Global",className:ht(T,"tw-box-border tw-bg-white ",m&&"tw-shadow-[0_0_10px_0_rgba(72,40,83,0.1)]"),children:G("nav",{"aria-label":"top",className:ht(m?"tw-gap-0 sm:tw-gap-1 lg:tw-gap-2":"tw-gap-0 sm:tw-gap-1",I&&"tw-mx-auto tw-max-w-7xl","tw-text-primary-600 tw-isolate tw-m-0 tw-box-border tw-flex tw-w-full tw-flex-row tw-flex-wrap tw-items-center tw-justify-start tw-py-2 tw-px-4 tw-font-sans tw-antialiased lg:tw-px-5 xl:tw-px-3 "),children:[m&&o&&G(ce.Button,{variant:"ghost",colorScheme:"primary",compact:!0,rounded:!0,onClick:ie,children:[y("p",{className:"tw-sr-only",children:p.formatMessage({id:"mainMenu"})}),G("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 18 16",children:[y("title",{children:p.formatMessage({id:"mainMenu"})}),y("g",{fill:"currentColor",fillRule:"evenodd",fillOpacity:.9,children:y("path",{d:"M18 6.818H0v1.364h18zM18 13H0v1.36h18zM18 .364H0v1.36h18z"})})]})]}),y("img",{alt:e,width:"34",height:"34","aria-hidden":!0,src:`data:image/svg+xml;base64,${v.logo}`,className:"tw-my-0 tw-block"}),y(Yn,{className:"tw-hidden md:tw-block",children:v.label||v.name}),y(Yn,{className:"tw-block md:tw-hidden",children:v.shortname||v.name}),a!==void 0&&y(ce.Button,{as:"a",variant:"ghost",colorScheme:"primary",compact:!1,rounded:!1,"aria-label":p.formatMessage({id:"installGateway"}),onClick:a,children:p.formatMessage({id:"installGateway"})}),d&&y(ps,{label:p.formatMessage({id:"upgradeBtnTooltip"}),children:G(ce.Button,{as:"a",variant:"outline",colorScheme:"primary",rounded:!0,href:N&&ei(L,`[${N.applicationName}] Support Request`,p.formatMessage({id:"contactUpgradeMailBody"}),N),target:"_blank",rel:"noopener noreferrer nofollow",children:[G("p",{className:"tw-sr-only",children:[" ",p.formatMessage({id:"upgradeBtnTooltip"})]}),p.formatMessage({id:"upgradeBtn"})]})}),r!==void 0&&m&&y(ys,{count:r,onClick:n}),g&&e!==O&&m&&G(ce.Button,{as:"a",variant:"ghost",colorScheme:"primary",compact:!0,rounded:!0,href:`${g.url}${m?`#refreshToken=${m}`:""}`,children:[y("p",{className:"tw-sr-only",children:p.formatMessage({id:"settings"})}),G("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",children:[y("title",{children:p.formatMessage({id:"settings"})}),y("g",{fill:"currentColor",fillRule:"evenodd",fillOpacity:.9,children:y("path",{d:"M14.037 19.103v2.25c0 .357-.29.647-.647.647H8.61a.647.647 0 0 1-.647-.647v-2.25c-.981-.278-1.658-.682-2.422-1.353a15.057 15.057 0 0 1-.108-.096L3.35 18.811a.647.647 0 0 1-.875-.242L.087 14.43a.647.647 0 0 1 .237-.884l1.995-1.15a8.415 8.415 0 0 1 .005-2.796L.344 8.452a.647.647 0 0 1-.234-.885l2.413-4.138A.647.647 0 0 1 3.4 3.19l2.036 1.152.105-.093c.764-.67 1.44-1.073 2.422-1.353V.647c0-.357.29-.647.647-.647h4.78c.357 0 .647.29.647.647v2.25c.982.28 1.658.683 2.422 1.353l.105.093L18.6 3.191a.647.647 0 0 1 .878.238l2.412 4.138c.18.309.075.706-.234.885l-1.98 1.149c.156.934.161 1.857.005 2.797l1.995 1.149c.31.178.416.574.237.884l-2.388 4.138a.647.647 0 0 1-.874.242l-2.084-1.157-.108.096c-.764.671-1.44 1.075-2.422 1.353zm-1.294-.504c0-.303.21-.566.507-.632 1.043-.231 1.621-.545 2.355-1.19.114-.1.181-.161.432-.39a.647.647 0 0 1 .752-.09l1.933 1.074 1.747-3.026-1.834-1.056a.647.647 0 0 1-.308-.7 7.203 7.203 0 0 0-.005-3.178.647.647 0 0 1 .307-.699l1.816-1.054-1.764-3.026L16.793 5.7a.647.647 0 0 1-.756-.086c-.246-.226-.318-.291-.432-.391-.733-.644-1.311-.958-2.356-1.19a.647.647 0 0 1-.506-.632V1.294H9.257v2.107c0 .303-.21.566-.506.631-1.044.233-1.623.547-2.356 1.19-.114.101-.185.166-.432.392a.647.647 0 0 1-.756.086L3.32 4.632 1.555 7.658l1.816 1.054a.647.647 0 0 1 .308.699 7.203 7.203 0 0 0-.005 3.177.647.647 0 0 1-.31.7l-1.833 1.057 1.747 3.026 1.934-1.074a.647.647 0 0 1 .751.09c.25.229.318.29.432.39.734.645 1.312.959 2.355 1.19a.647.647 0 0 1 .507.632v2.107h3.486v-2.107zM14.276 11a3.275 3.275 0 1 1-6.551 0 3.275 3.275 0 0 1 6.55 0zm-1.294 0a1.981 1.981 0 1 0-3.963 0 1.981 1.981 0 0 0 3.963 0z"})})]})]}),G(ce.Button,{as:"a",variant:"ghost",colorScheme:"primary",compact:!0,rounded:!0,href:Es,children:[y("p",{className:"tw-sr-only",children:p.formatMessage({id:"documentation"})}),G("svg",{className:"tw-w-[1.5rem] tw-h-[1.5rem] tw-block","aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",children:[y("title",{children:p.formatMessage({id:"documentation"})}),y("path",{strokeWidth:"1",fill:"currentColor",d:"M52.586 20.5H70.25a1.5 1.5 0 100-3H52.586a1.5 1.5 0 100 3zM52.586 32.1H70.25a1.5 1.5 0 100-3H52.586a1.5 1.5 0 100 3zM70.25 40.7h-40.5a1.5 1.5 0 100 3h40.5a1.5 1.5 0 100-3zM70.25 52.3h-40.5a1.5 1.5 0 100 3h40.5a1.5 1.5 0 100-3zM70.25 63.9h-40.5a1.5 1.5 0 100 3h40.5a1.5 1.5 0 100-3zM56 75.5H29.75a1.5 1.5 0 100 3H56a1.5 1.5 0 100-3zM44.181 35.785a1.5 1.5 0 001.5-1.5V16a1.5 1.5 0 00-1.5-1.5H28.896a1.5 1.5 0 00-1.5 1.5v18.285a1.5 1.5 0 001.5 1.5h15.285zM30.396 17.5h12.285v15.285H30.396V17.5z"}),y("path",{strokeWidth:"1",fill:"currentColor",d:"M78.521 5H21.479a4.067 4.067 0 00-4.063 4.063v81.875a4.067 4.067 0 004.063 4.063h43.522c.161 0 .314-.032.46-.08.023-.007.045-.012.067-.021.148-.056.282-.136.404-.233.011-.008.024-.011.034-.02L82.05 81.083c.015-.013.026-.029.041-.042a1.27 1.27 0 00.114-.118c.03-.034.06-.068.086-.104.03-.041.056-.084.082-.128a1.2 1.2 0 00.066-.122c.021-.045.038-.092.055-.139a1.315 1.315 0 00.084-.43c.001-.021.006-.041.006-.062V9.063A4.068 4.068 0 0078.521 5zM20.417 90.938V9.063c0-.586.476-1.063 1.062-1.063h57.042c.586 0 1.063.477 1.063 1.063v69.374H65a1.5 1.5 0 00-1.5 1.5V92H21.479a1.063 1.063 0 01-1.062-1.062zm56.562-9.501L66.5 90.273v-8.837h10.479z"})]})]}),y(ce.Button,{href:"https://slack.xcomponent.com",as:"a",variant:"ghost",colorScheme:"primary",compact:!0,rounded:!0,"aria-label":p.formatMessage({id:"contactDevelopers"}),children:G("svg",{viewBox:"8 8 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,className:"tw-w-[1.5rem] tw-h-[1.5rem] tw-block",children:[y("title",{children:p.formatMessage({id:"contactDevelopers"})}),y("path",{d:"M16.535 27.397a2.711 2.711 0 01-2.704 2.705 2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h2.704v2.705zM17.898 27.397a2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v6.772a2.712 2.712 0 01-2.705 2.705 2.711 2.711 0 01-2.705-2.705v-6.772z",fill:"#E01E5A"}),y("path",{d:"M20.603 16.535a2.711 2.711 0 01-2.705-2.704 2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v2.704h-2.705zM20.603 17.898a2.712 2.712 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-6.772a2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h6.772z",fill:"#36C5F0"}),y("path",{d:"M31.465 20.603a2.711 2.711 0 012.704-2.705 2.711 2.711 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-2.704v-2.705zM30.102 20.603a2.711 2.711 0 01-2.705 2.705 2.711 2.711 0 01-2.705-2.705v-6.772a2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v6.772z",fill:"#2EB67D"}),y("path",{d:"M27.397 31.465a2.711 2.711 0 012.705 2.704 2.711 2.711 0 01-2.705 2.705 2.712 2.712 0 01-2.705-2.705v-2.704h2.705zM27.397 30.102a2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h6.772a2.711 2.711 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-6.772z",fill:"#ECB22E"})]})}),m&&e===O&&t&&y(Ki,{applicationDescriptions:t,refreshToken:m}),m&&f&&c&&h&&y(bs,{username:f,version:c,onLogout:h}),y(gs,{language:i||"en",languages:s||["en"],onLanguageSelected:l}),!m&&G(ft,{children:[y(ce.Button,{className:"tw-ml-2 tw-mr-0 md:tw-ml-3 lg:tw-mr-3",size:"lg",href:E,as:"a",variant:"link",colorScheme:"gray",children:p.formatMessage({id:"login"})}),y(ce.Button,{className:"tw-ml-3 tw-hidden lg:tw-inline-block",size:"xl",href:E,as:"a",variant:"solid",colorScheme:"primary",children:p.formatMessage({id:"getStartedFree"})})]})]})}):(console.error(`Unknown application ${e}`),y("div",{"data-testid":"init-error"}))}const Ts={en:{mainMenu:"Main menu",settings:"Settings",help:"Help",contactDevelopers:"Contact Community",contactus:"Contact Support",contactUsMailBody:`Hello Support team,
109
+ */var jn;function Qi(){return jn||(jn=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),I=!1,T=!1,d=!1,S=!1,b=!1,m;m=Symbol.for("react.module.reference");function R(O){return!!(typeof O=="string"||typeof O=="function"||O===r||O===a||b||O===n||O===f||O===c||S||O===g||I||T||d||typeof O=="object"&&O!==null&&(O.$$typeof===v||O.$$typeof===h||O.$$typeof===o||O.$$typeof===i||O.$$typeof===l||O.$$typeof===m||O.getModuleId!==void 0))}function p(O){if(typeof O=="object"&&O!==null){var ye=O.$$typeof;switch(ye){case e:var Ce=O.type;switch(Ce){case r:case a:case n:case f:case c:return Ce;default:var at=Ce&&Ce.$$typeof;switch(at){case s:case i:case l:case v:case h:case o:return at;default:return ye}}case t:return ye}}}var N=i,L=o,te=e,ce=l,fe=r,me=v,ge=h,$=t,se=a,J=n,Z=f,ue=c,Q=!1,Ie=!1;function Me(O){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function He(O){return Ie||(Ie=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Be(O){return p(O)===i}function Fe(O){return p(O)===o}function je(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function Ge(O){return p(O)===l}function Pe(O){return p(O)===r}function B(O){return p(O)===v}function K(O){return p(O)===h}function Oe(O){return p(O)===t}function Se(O){return p(O)===a}function nt(O){return p(O)===n}function P(O){return p(O)===f}function Ve(O){return p(O)===c}j.ContextConsumer=N,j.ContextProvider=L,j.Element=te,j.ForwardRef=ce,j.Fragment=fe,j.Lazy=me,j.Memo=ge,j.Portal=$,j.Profiler=se,j.StrictMode=J,j.Suspense=Z,j.SuspenseList=ue,j.isAsyncMode=Me,j.isConcurrentMode=He,j.isContextConsumer=Be,j.isContextProvider=Fe,j.isElement=je,j.isForwardRef=Ge,j.isFragment=Pe,j.isLazy=B,j.isMemo=K,j.isPortal=Oe,j.isProfiler=Se,j.isStrictMode=nt,j.isSuspense=P,j.isSuspenseList=Ve,j.isValidElementType=R,j.typeOf=p}()),j}(function(e){process.env.NODE_ENV==="production"?e.exports=$i():e.exports=Qi()})(Un);var yt=w.forwardRef(({as:e=w.Fragment,id:t,children:r,...n},a)=>{let i=w.useMemo(()=>{try{return Un.exports.isFragment(y(e,{}))}catch{return!1}},[e])?{}:{ref:a,id:t,"data-reach-menu":"",...n};return y(e,{...i,children:y(_n,{id:t,children:r})})});yt.displayName="Menu";var bt=w.forwardRef(({as:e="button",...t},r)=>{let{data:{isExpanded:n,controls:a},props:o}=Ln({...t,ref:r});return y(e,{"aria-expanded":n?!0:void 0,"aria-haspopup":!0,"aria-controls":a,...o,"data-reach-menu-button":""})});bt.displayName="MenuButton";var tr=w.forwardRef(({as:e="div",...t},r)=>{let{data:{disabled:n},props:a}=Dn({...t,ref:r});return y(e,{role:"menuitem",...a,"aria-disabled":n||void 0,"data-reach-menu-item":""})});tr.displayName="MenuItemImpl";var Gn=w.forwardRef(({as:e="div",...t},r)=>y(tr,{...t,ref:r,as:e}));Gn.displayName="MenuItem";var Vn=w.forwardRef(({as:e="div",...t},r)=>{let{data:{activeDescendant:n,triggerId:a},props:o}=Hn({...t,ref:r});return y(e,{"aria-activedescendant":n,"aria-labelledby":a||void 0,role:"menu",...o,"data-reach-menu-items":""})});Vn.displayName="MenuItems";var Et=w.forwardRef(({as:e="a",component:t,onSelect:r,...n},a)=>(w.useEffect(()=>{t&&console.warn("[@reach/menu-button]: Please use the `as` prop instead of `component`")},[t]),y(tr,{...n,ref:a,"data-reach-menu-link":"",as:e,isLink:!0,onSelect:r||Vt})));Et.displayName="MenuLink";var Xn=w.forwardRef(({portal:e=!0,...t},r)=>y(Zn,{portal:e,children:y(Vn,{...t,ref:r,"data-reach-menu-list":""})}));Xn.displayName="MenuList";var Zn=w.forwardRef(({as:e="div",...t},r)=>{let{data:{portal:n,targetRef:a,position:o},props:i}=Bn({...t,ref:r}),s={"data-reach-menu-popover":""};return n?y(Jt,{...i,...s,as:e,targetRef:a,position:o,unstable_skipInitialPortalRender:!0}):y(e,{...i,...s})});Zn.displayName="MenuPopover";function rr({children:e,withMinWidth:t=!0,className:r,...n}){return y(Xn,{...n,className:ht({"tw-min-w-[13.125rem]":t},"motion-safe:data-[reach-menu-list]:tw-animate-slideDown motion-safe:data-[reach-menu-items]:tw-animate-slideDown tw-z-[1] tw-mt-2 tw-bg-white tw-shadow-[0_1px_2px_0_rgb(60,64,67,0.3),0_2px_6px_2px_rgb(60,64,67,0.15)] tw-outline-none tw-will-change-transform",r),children:e})}function Ki({applicationDescriptions:e,refreshToken:t}){const r=Ze(),n=Object.values(e).filter(a=>!a.hidden).map(a=>({...a,url:`${a.url}${t?`#refreshToken=${t}`:""}`}));return G(yt,{children:[G(bt,{as:le.Button,className:"aria-expanded:tw-text-primary-700 aria-expanded:tw-bg-primary-100 aria-expanded:tw-border-primary-100 aria-expanded:tw-duration-150",variant:"ghost",colorScheme:"primary",compact:!0,rounded:!0,children:[y("p",{className:"tw-sr-only",children:r.formatMessage({id:"appSelector"})}),G("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",children:[y("title",{children:r.formatMessage({id:"appSelector"})}),y("g",{fill:"currentColor",fillRule:"evenodd",fillOpacity:.9,children:y("path",{d:"M15 20h5v-5h-5m0-2.5h5v-5h-5M7.5 5h5V0h-5M15 5h5V0h-5M7.5 12.5h5v-5h-5m-7.5 5h5v-5H0M0 20h5v-5H0m7.5 5h5v-5h-5M0 5h5V0H0v5z"})})]})]}),y(rr,{className:"tw-grid tw-max-w-[250px] tw-grid-cols-2 tw-gap-3 tw-px-4 tw-py-4",children:n.map(a=>G(Et,{className:"data-selected:tw-duration-150 tw-flex tw-flex-col tw-items-center tw-gap-2 tw-rounded-lg tw-px-2 tw-py-2 tw-text-center tw-text-sm tw-font-light tw-text-black tw-no-underline tw-transition-colors tw-duration-500 hover:tw-cursor-pointer hover:tw-bg-gray-50 hover:tw-duration-150 data-[selected]:tw-cursor-pointer data-[selected]:tw-bg-gray-50",href:a.url,children:[y("img",{alt:"",width:"34",height:"34","aria-hidden":!0,src:`data:image/svg+xml;base64,${a.logo}`,className:"tw-my-0 tw-mx-2 tw-block"}),a.name]},`app-selector-${a.name}`))})]})}function Yn({children:e,className:t,...r}){return y("h1",{...r,className:ht("tw-my-0 tw-mr-auto tw-ml-2 tw-text-lg tw-font-light tw-leading-none tw-tracking-wide tw-text-black md:tw-text-xl lg:tw-text-2xl",t),children:e})}const ru="";var Wn=w.forwardRef(function({as:t="span",style:r={},...n},a){return y(t,{ref:a,style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal",...r},...n})});Wn.displayName="VisuallyHidden";var es=100,ts=500,nr={initial:"IDLE",states:{IDLE:{enter:ir,on:{MOUSE_ENTER:"FOCUSED",FOCUS:"VISIBLE"}},FOCUSED:{enter:as,leave:os,on:{MOUSE_MOVE:"FOCUSED",MOUSE_LEAVE:"IDLE",MOUSE_DOWN:"DISMISSED",BLUR:"IDLE",REST:"VISIBLE"}},VISIBLE:{on:{FOCUS:"FOCUSED",MOUSE_ENTER:"FOCUSED",MOUSE_LEAVE:"LEAVING_VISIBLE",BLUR:"LEAVING_VISIBLE",MOUSE_DOWN:"DISMISSED",SELECT_WITH_KEYBOARD:"DISMISSED",GLOBAL_MOUSE_MOVE:"LEAVING_VISIBLE"}},LEAVING_VISIBLE:{enter:is,leave:()=>{ss(),ir()},on:{MOUSE_ENTER:"VISIBLE",FOCUS:"VISIBLE",TIME_COMPLETE:"IDLE"}},DISMISSED:{leave:()=>{ir()},on:{MOUSE_LEAVE:"IDLE",BLUR:"IDLE"}}}},de={value:nr.initial,context:{id:null}},wt=[];function rs(e){return wt.push(e),()=>{wt.splice(wt.indexOf(e),1)}}function ns(){wt.forEach(e=>e(de))}var ar;function as(){window.clearTimeout(ar),ar=window.setTimeout(()=>{ve({type:"REST"})},es)}function os(){window.clearTimeout(ar)}var or;function is(){window.clearTimeout(or),or=window.setTimeout(()=>ve({type:"TIME_COMPLETE"}),ts)}function ss(){window.clearTimeout(or)}function ir(){de.context.id=null}function Jn({id:e,onPointerEnter:t,onPointerMove:r,onPointerLeave:n,onPointerDown:a,onMouseEnter:o,onMouseMove:i,onMouseLeave:s,onMouseDown:l,onFocus:f,onBlur:c,onKeyDown:h,disabled:v,ref:g,DEBUG_STYLE:I}={}){let T=String(Pn(e)),[d,S]=w.useState(I?!0:$n(T,!0)),b=w.useRef(null),m=ze(g,b),R=pt(b,{observe:d});w.useEffect(()=>rs(()=>{S($n(T))}),[T]),w.useEffect(()=>{let Z=_e(b.current);function ue(Q){(Q.key==="Escape"||Q.key==="Esc")&&de.value==="VISIBLE"&&ve({type:"SELECT_WITH_KEYBOARD"})}return Z.addEventListener("keydown",ue),()=>Z.removeEventListener("keydown",ue)},[]),hs({disabled:v,isVisible:d,ref:b});function p(Z,ue){return typeof window<"u"&&"PointerEvent"in window?Z:Y(Z,ue)}function N(Z){return function(Q){Q.pointerType==="mouse"&&Z(Q)}}function L(){ve({type:"MOUSE_ENTER",id:T})}function te(){ve({type:"MOUSE_MOVE",id:T})}function ce(){ve({type:"MOUSE_LEAVE"})}function fe(){de.context.id===T&&ve({type:"MOUSE_DOWN"})}function me(){window.__REACH_DISABLE_TOOLTIPS||ve({type:"FOCUS",id:T})}function ge(){de.context.id===T&&ve({type:"BLUR"})}function $(Z){(Z.key==="Enter"||Z.key===" ")&&ve({type:"SELECT_WITH_KEYBOARD"})}return[{"aria-describedby":d?Ye("tooltip",T):void 0,"data-state":d?"tooltip-visible":"tooltip-hidden","data-reach-tooltip-trigger":"",ref:m,onPointerEnter:Y(t,N(L)),onPointerMove:Y(r,N(te)),onPointerLeave:Y(n,N(ce)),onPointerDown:Y(a,N(fe)),onMouseEnter:p(o,L),onMouseMove:p(i,te),onMouseLeave:p(s,ce),onMouseDown:p(l,fe),onFocus:Y(f,me),onBlur:Y(c,ge),onKeyDown:Y(h,$)},{id:T,triggerRect:R,isVisible:d},d]}var us=w.forwardRef(function({children:e,label:t,ariaLabel:r,id:n,DEBUG_STYLE:a,...o},i){let s=w.Children.only(e);w.useEffect(()=>{r&&console.warn("The `ariaLabel prop is deprecated and will be removed from @reach/tooltip in a future version of Reach UI. Please use `aria-label` instead.")},[r]);let[l,f]=Jn({id:n,onPointerEnter:s.props.onPointerEnter,onPointerMove:s.props.onPointerMove,onPointerLeave:s.props.onPointerLeave,onPointerDown:s.props.onPointerDown,onMouseEnter:s.props.onMouseEnter,onMouseMove:s.props.onMouseMove,onMouseLeave:s.props.onMouseLeave,onMouseDown:s.props.onMouseDown,onFocus:s.props.onFocus,onBlur:s.props.onBlur,onKeyDown:s.props.onKeyDown,disabled:s.props.disabled,ref:s.ref,DEBUG_STYLE:a});return G(ft,{children:[w.cloneElement(s,l),y(sr,{ref:i,label:t,"aria-label":r,...f,...o})]})});us.displayName="Tooltip";var sr=w.forwardRef(function({label:t,ariaLabel:r,isVisible:n,id:a,...o},i){return n?y(Zt,{children:y(qn,{ref:i,label:t,"aria-label":r,isVisible:n,...o,id:Ye("tooltip",String(a))})}):null});sr.displayName="TooltipPopup";var qn=w.forwardRef(function({ariaLabel:t,"aria-label":r,as:n="div",id:a,isVisible:o,label:i,position:s=fs,style:l,triggerRect:f,...c},h){let v=(r||t)!=null,g=w.useRef(null),I=ze(h,g),T=pt(g,{observe:o});return G(ft,{children:[y(n,{role:v?void 0:"tooltip",...c,ref:I,"data-reach-tooltip":"",id:v?void 0:a,style:{...l,...ls(s,f,T)},children:i}),v&&y(Wn,{role:"tooltip",id:a,children:r||t})]})});qn.displayName="TooltipContent";function ls(e,t,r){return r?e(t,r):{visibility:"hidden"}}var cs=8,fs=(e,t,r=cs)=>{let{width:n,height:a}=oi();if(!e||!t)return{};let o={top:e.top-t.height<0,right:n<e.left+t.width,bottom:a<e.bottom+t.height+r,left:e.left-t.width<0},i=o.right&&!o.left,s=o.bottom&&!o.top;return{left:i?`${e.right-t.width+window.pageXOffset}px`:`${e.left+window.pageXOffset}px`,top:s?`${e.top-r-t.height+window.pageYOffset}px`:`${e.top+r+e.height+window.pageYOffset}px`}};function hs({disabled:e,isVisible:t,ref:r}){w.useEffect(()=>{if(!(typeof window<"u"&&"PointerEvent"in window)||!e||!t)return;let n=_e(r.current);function a(o){!t||o.target instanceof Element&&o.target.closest("[data-reach-tooltip-trigger][data-state='tooltip-visible']")||ve({type:"GLOBAL_MOUSE_MOVE"})}return n.addEventListener("mousemove",a),()=>{n.removeEventListener("mousemove",a)}},[e,t,r])}function ve(e){let{value:t,context:r,changed:n}=ds(de,e);n&&(de={value:t,context:r},ns())}function ds(e,t){let r=nr.states[e.value],n=r&&r.on&&r.on[t.type];if(!n)return{...e,changed:!1};r&&r.leave&&r.leave(e.context,t);const{type:a,...o}=t;let i={...de.context,...o},s=typeof n=="string"?n:n.target,l=nr.states[s];return l&&l.enter&&l.enter(e.context,t),{value:s,context:i,changed:!0}}function $n(e,t){return de.context.id===e&&(t?de.value==="VISIBLE":de.value==="VISIBLE"||de.value==="LEAVING_VISIBLE")}const ms=(e,t)=>{const r=e&&t?e.right-t.width+window.scrollX:"",n=e?e.bottom+window.scrollY:"";return{left:`${r}px`,top:`${n}px`}};function ps({children:e,label:t}){const[r,n]=Jn();return G(ft,{children:[be.default.cloneElement(e,r),y(sr,{...n,label:t,"aria-label":t,style:{background:"white",color:"black",border:"none",borderRadius:"0.5rem",boxShadow:"0 2px 10px rgba(0,0,0,0.1)"},position:ms,className:"tw-border tw-border-blue-500 tw-p-2"})]})}const Qn="x4b.language",vs=e=>{window.localStorage.setItem(Qn,e)};function Kn(){return window.localStorage.getItem(Qn)||"en"}const ea={en:"EN - English",fr:"FR - Fran\xE7ais"};function gs({language:e,languages:t,onLanguageSelected:r}){return G(yt,{children:[y(bt,{as:le.Button,className:"aria-expanded:tw-border-gray-100 aria-expanded:tw-bg-gray-100 aria-expanded:tw-text-gray-700 aria-expanded:tw-duration-150",variant:"ghost",colorScheme:"gray",rounded:!0,compact:!0,children:G("div",{className:"tw-min-w-[36px] tw-text-base lg:tw-text-lg",children:[y("span",{children:e.toUpperCase()}),G("svg",{"aria-hidden":!0,className:"tw-ml-1 !tw-inline-block",xmlns:"http://www.w3.org/2000/svg",width:"8",height:"5",viewBox:"0 0 8 5",children:[y("defs",{children:y("path",{id:"a",d:"M1367.876 32.83a.5.5 0 01-.752-.66l3.5-4a.5.5 0 01.752 0l3.5 4a.5.5 0 01-.752.66L1371 29.26l-3.124 3.57z"})}),y("use",{fill:"currentColor",transform:"matrix(1 0 0 -1 -1367 33)",xlinkHref:"#a"})]})]})}),y(rr,{withMinWidth:!1,className:"tw-min-w-fit",children:t.filter(n=>ea[n]).map(n=>y(Gn,{className:"tw-cursor-pointer tw-whitespace-nowrap tw-py-2 tw-px-4 tw-text-base tw-font-normal tw-leading-normal tw-tracking-normal tw-text-black hover:tw-bg-gray-50 data-[selected]:tw-bg-gray-50",onSelect:()=>{vs(n),r&&r(n)},children:ea[n]},n))})]})}function ys({count:e,onClick:t}){const r=Ze();return G(le.Button,{className:"tw-hidden sm:tw-inline-block",variant:"ghost",colorScheme:"primary",compact:!0,rounded:!0,onClick:t,children:[y("p",{className:"tw-sr-only",children:r.formatMessage({id:"notifications"})}),G("svg",{"aria-hidden":!0,width:"22",height:"22",opacity:"0.9",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"tw-block tw-scale-[1.08]",children:[y("title",{children:r.formatMessage({id:"notifications"})}),y("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"})]}),e?y("div",{className:"tw-absolute tw-top-[0.3em] tw-left-[22px] tw-min-w-[1em] tw-rounded-[1em] tw-bg-red-600 tw-py-[0.1em] tw-px-[0.3em] tw-text-center tw-text-[0.8em] tw-font-semibold tw-leading-[1em] tw-text-white",children:e}):void 0]})}function bs({username:e,version:t,onLogout:r,onUpdateProfile:n}){const a=Ze();return G(yt,{children:[G(bt,{className:"!tw-px-0 !tw-py-0 tw-transition-opacity hover:tw-opacity-80 aria-expanded:tw-opacity-80 aria-expanded:tw-duration-150",as:le.Button,variant:"ghost",colorScheme:"primary",compact:!0,rounded:!0,children:[y("p",{className:"tw-sr-only",children:a.formatMessage({id:"userAccountTooltip"})}),G("svg",{"aria-hidden":!0,width:44,height:44,viewBox:"0 0 44 44",version:"1.1",children:[y("title",{children:a.formatMessage({id:"userAccountTooltip"})}),y("defs",{children:y("clipPath",{id:"user-badge--clip-path",children:y("circle",{cx:"50%",cy:"50%",r:"22",fill:"#FFFFFF",fillRule:"evenodd"})})}),y("image",{width:"44",height:"44",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfMAAAHyCAMAAADIjdfcAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAYBQTFRFM22C0LKTQX6aSEhIRoSiSoyuMGp+0cjRRICdNXCFQH2ZP3uWs7OwJ11xhoeGR2VzSIalSousPnqVSoqrOHOKz6jORoalPHmT/ubPR4enR4WkRYSjPXqUoYt2VVVVQ4GeOnaPSYqs5NbjOXSNS4ytrGeqcXBvdIeENnGIRVZdRUVFSl9o/vDjOVll4sWlRXSKLlpp/dy8sKqXN1FaUVFR8cqjO3eQTExMPnuWk5uYbZKet5yCR4OgRElL0b2jW4mboKWiRm19TIOa/dKoT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TIp+0eLwFc3D+Im0/BPfxo9cSJeRXzweTTVo+XgC7uEt/GboA9/Gi1tMsN6EyIfNryaVGwxV3CfA7sufZ9qzdsR948jnzaLjlwcZf5nOZ7Ms+1qw/oTIj8wPIvgC3uMuYZMs+1qw/oTITc9nAO/BKTjPkUkVeWdAZ0JkJ+xf7hj5DFvaFoTqi0Sw3oTIT85bp1c8g3VGXMGzRLu9SAzkTIn1j/BaDFXcZ8jsJBA5oDOhMgf+niLGeNG55VXobratzfUkpzmQGdCZC/TAe0En1LwzyjdzyYmw5Oxzyc/GUhoJXo45Ln+4Y2cROkSrvMNgsTIH/p4ifodHFZ1WW4TnON/+n2XdyvBSXzKPIDJ+ZgxV3OvAFQ2p3cr3kV8yjyKxUnvwGsuKekzOf0Szv2L/KwePIr6YBaor9VXYY7a9wDUh2c1KoMiye/sh6QS/SMunmGZmmXaOJYPPkVR79B53XFVXXzKd3SvuTodi1Img8iP3BlHsAU94aC+Wt6aS7exLFYclfDud50LaNs3tB8EG7f1d3KSZkPJL9SCAgm+qr0IRNdjfsEvTQXb+JYLLmzFk4r0QPFpdd24/6a2kRNakBnseRX3P0InelaStk8o1XaHd6teWHzOPIDh79Co7hPqC3DtZu4LMU0FzePI3fYwmkleqBhvkVvoibTxLE4cpctnFaip1TNGxql3WWaCzdxLI7csfmSdnGfkjWf0yjtS05vlmATx+LIXwQB0UR/rWi+kSLZwYkP6CyO/MCxufoC7Liq+f8STXMJ84HkLyoB1USfUFqGa8b/EU1z0SaOxZC/SAdkE31Lzfx/qKa5aBPHYshfrAdkE31cZel1Y+O/qaa5aBP3/wIMAI6prfGsFSkIAAAAAElFTkSuQmCC",clipPath:"url(#user-badge--clip-path)"})]})]}),G(rr,{withMinWidth:!1,className:"tw-w-[310px]",children:[G("div",{className:"tw-flex tw-flex-col tw-gap-4 tw-py-4 tw-px-5",children:[y("div",{className:"tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap tw-text-lg tw-font-semibold tw-leading-tight tw-text-black",children:e}),n&&y(Et,{className:"tw-self-start tw-text-base hover:tw-text-gray-900 hover:tw-font-medium hover:tw-underline",onSelect:n,children:a.formatMessage({id:"updateProfile"})}),y(Et,{as:le.Button,className:"tw-self-end data-[selected]:[&:not(:hover)]:tw-ring data-[selected]:[&:not(:hover)]:tw-ring-gray-300",variant:"outline",colorScheme:"gray",onSelect:r,children:a.formatMessage({id:"logout"})})]}),y("div",{className:"tw-flex tw-w-full tw-justify-center tw-bg-gray-50 tw-py-4 tw-px-0 tw-text-sm tw-font-normal tw-text-gray-700",children:a.formatMessage({id:"version"},{version:t})})]})]})}const Es="https://xcomponent.github.io/appcontrol-documentation/contact/";function ws({application:e,applications:t,notificationCount:r,onNotificationClick:n,onInstallationClick:a,onToggleMenuClick:o,language:i,languages:s,onLanguageChange:l,username:f,version:c,logout:h,updateProfile:v,refreshToken:g,loginUrl:I,withMaxWith:T=!1,className:d,showUpgrade:S,...b}){const m=Ze(),R=t==null?void 0:t[e],p="x4b-settings",N=t==null?void 0:t[p],L="support@xcomponent.com",te=R&&{applicationName:R==null?void 0:R.name,username:f,version:c,url:R==null?void 0:R.url},ce=()=>{const fe=!pn();ti(fe),o&&o(fe)};return R?y("header",{...b,"aria-label":"Global",className:ht(d,"tw-box-border tw-bg-white ",g&&"tw-shadow-[0_0_10px_0_rgba(72,40,83,0.1)]"),children:G("nav",{"aria-label":"top",className:ht(g?"tw-gap-0 sm:tw-gap-1 lg:tw-gap-2":"tw-gap-0 sm:tw-gap-1",T&&"tw-mx-auto tw-max-w-7xl","tw-text-primary-600 tw-isolate tw-m-0 tw-box-border tw-flex tw-w-full tw-flex-row tw-flex-wrap tw-items-center tw-justify-start tw-py-2 tw-px-4 tw-font-sans tw-antialiased lg:tw-px-5 xl:tw-px-3 "),children:[g&&o&&G(le.Button,{variant:"ghost",colorScheme:"primary",compact:!0,rounded:!0,onClick:ce,children:[y("p",{className:"tw-sr-only",children:m.formatMessage({id:"mainMenu"})}),G("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 18 16",children:[y("title",{children:m.formatMessage({id:"mainMenu"})}),y("g",{fill:"currentColor",fillRule:"evenodd",fillOpacity:.9,children:y("path",{d:"M18 6.818H0v1.364h18zM18 13H0v1.36h18zM18 .364H0v1.36h18z"})})]})]}),y("img",{alt:e,width:"34",height:"34","aria-hidden":!0,src:`data:image/svg+xml;base64,${R.logo}`,className:"tw-my-0 tw-block"}),y(Yn,{className:"tw-hidden md:tw-block",children:R.label||R.name}),y(Yn,{className:"tw-block md:tw-hidden",children:R.shortname||R.name}),a!==void 0&&y(le.Button,{as:"a",variant:"ghost",colorScheme:"primary",compact:!1,rounded:!1,"aria-label":m.formatMessage({id:"installGateway"}),onClick:a,children:m.formatMessage({id:"installGateway"})}),S&&y(ps,{label:m.formatMessage({id:"upgradeBtnTooltip"}),children:G(le.Button,{as:"a",variant:"outline",colorScheme:"primary",rounded:!0,href:te&&ei(L,`[${te.applicationName}] Support Request`,m.formatMessage({id:"contactUpgradeMailBody"}),te),target:"_blank",rel:"noopener noreferrer nofollow",children:[G("p",{className:"tw-sr-only",children:[" ",m.formatMessage({id:"upgradeBtnTooltip"})]}),m.formatMessage({id:"upgradeBtn"})]})}),r!==void 0&&g&&y(ys,{count:r,onClick:n}),N&&e!==p&&g&&G(le.Button,{as:"a",variant:"ghost",colorScheme:"primary",compact:!0,rounded:!0,href:`${N.url}${g?`#refreshToken=${g}`:""}`,children:[y("p",{className:"tw-sr-only",children:m.formatMessage({id:"settings"})}),G("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",children:[y("title",{children:m.formatMessage({id:"settings"})}),y("g",{fill:"currentColor",fillRule:"evenodd",fillOpacity:.9,children:y("path",{d:"M14.037 19.103v2.25c0 .357-.29.647-.647.647H8.61a.647.647 0 0 1-.647-.647v-2.25c-.981-.278-1.658-.682-2.422-1.353a15.057 15.057 0 0 1-.108-.096L3.35 18.811a.647.647 0 0 1-.875-.242L.087 14.43a.647.647 0 0 1 .237-.884l1.995-1.15a8.415 8.415 0 0 1 .005-2.796L.344 8.452a.647.647 0 0 1-.234-.885l2.413-4.138A.647.647 0 0 1 3.4 3.19l2.036 1.152.105-.093c.764-.67 1.44-1.073 2.422-1.353V.647c0-.357.29-.647.647-.647h4.78c.357 0 .647.29.647.647v2.25c.982.28 1.658.683 2.422 1.353l.105.093L18.6 3.191a.647.647 0 0 1 .878.238l2.412 4.138c.18.309.075.706-.234.885l-1.98 1.149c.156.934.161 1.857.005 2.797l1.995 1.149c.31.178.416.574.237.884l-2.388 4.138a.647.647 0 0 1-.874.242l-2.084-1.157-.108.096c-.764.671-1.44 1.075-2.422 1.353zm-1.294-.504c0-.303.21-.566.507-.632 1.043-.231 1.621-.545 2.355-1.19.114-.1.181-.161.432-.39a.647.647 0 0 1 .752-.09l1.933 1.074 1.747-3.026-1.834-1.056a.647.647 0 0 1-.308-.7 7.203 7.203 0 0 0-.005-3.178.647.647 0 0 1 .307-.699l1.816-1.054-1.764-3.026L16.793 5.7a.647.647 0 0 1-.756-.086c-.246-.226-.318-.291-.432-.391-.733-.644-1.311-.958-2.356-1.19a.647.647 0 0 1-.506-.632V1.294H9.257v2.107c0 .303-.21.566-.506.631-1.044.233-1.623.547-2.356 1.19-.114.101-.185.166-.432.392a.647.647 0 0 1-.756.086L3.32 4.632 1.555 7.658l1.816 1.054a.647.647 0 0 1 .308.699 7.203 7.203 0 0 0-.005 3.177.647.647 0 0 1-.31.7l-1.833 1.057 1.747 3.026 1.934-1.074a.647.647 0 0 1 .751.09c.25.229.318.29.432.39.734.645 1.312.959 2.355 1.19a.647.647 0 0 1 .507.632v2.107h3.486v-2.107zM14.276 11a3.275 3.275 0 1 1-6.551 0 3.275 3.275 0 0 1 6.55 0zm-1.294 0a1.981 1.981 0 1 0-3.963 0 1.981 1.981 0 0 0 3.963 0z"})})]})]}),G(le.Button,{as:"a",variant:"ghost",colorScheme:"primary",compact:!0,rounded:!0,href:Es,children:[y("p",{className:"tw-sr-only",children:m.formatMessage({id:"documentation"})}),G("svg",{className:"tw-w-[1.5rem] tw-h-[1.5rem] tw-block","aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",children:[y("title",{children:m.formatMessage({id:"documentation"})}),y("path",{strokeWidth:"1",fill:"currentColor",d:"M52.586 20.5H70.25a1.5 1.5 0 100-3H52.586a1.5 1.5 0 100 3zM52.586 32.1H70.25a1.5 1.5 0 100-3H52.586a1.5 1.5 0 100 3zM70.25 40.7h-40.5a1.5 1.5 0 100 3h40.5a1.5 1.5 0 100-3zM70.25 52.3h-40.5a1.5 1.5 0 100 3h40.5a1.5 1.5 0 100-3zM70.25 63.9h-40.5a1.5 1.5 0 100 3h40.5a1.5 1.5 0 100-3zM56 75.5H29.75a1.5 1.5 0 100 3H56a1.5 1.5 0 100-3zM44.181 35.785a1.5 1.5 0 001.5-1.5V16a1.5 1.5 0 00-1.5-1.5H28.896a1.5 1.5 0 00-1.5 1.5v18.285a1.5 1.5 0 001.5 1.5h15.285zM30.396 17.5h12.285v15.285H30.396V17.5z"}),y("path",{strokeWidth:"1",fill:"currentColor",d:"M78.521 5H21.479a4.067 4.067 0 00-4.063 4.063v81.875a4.067 4.067 0 004.063 4.063h43.522c.161 0 .314-.032.46-.08.023-.007.045-.012.067-.021.148-.056.282-.136.404-.233.011-.008.024-.011.034-.02L82.05 81.083c.015-.013.026-.029.041-.042a1.27 1.27 0 00.114-.118c.03-.034.06-.068.086-.104.03-.041.056-.084.082-.128a1.2 1.2 0 00.066-.122c.021-.045.038-.092.055-.139a1.315 1.315 0 00.084-.43c.001-.021.006-.041.006-.062V9.063A4.068 4.068 0 0078.521 5zM20.417 90.938V9.063c0-.586.476-1.063 1.062-1.063h57.042c.586 0 1.063.477 1.063 1.063v69.374H65a1.5 1.5 0 00-1.5 1.5V92H21.479a1.063 1.063 0 01-1.062-1.062zm56.562-9.501L66.5 90.273v-8.837h10.479z"})]})]}),y(le.Button,{href:"https://slack.xcomponent.com",as:"a",variant:"ghost",colorScheme:"primary",compact:!0,rounded:!0,"aria-label":m.formatMessage({id:"contactDevelopers"}),children:G("svg",{viewBox:"8 8 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,className:"tw-w-[1.5rem] tw-h-[1.5rem] tw-block",children:[y("title",{children:m.formatMessage({id:"contactDevelopers"})}),y("path",{d:"M16.535 27.397a2.711 2.711 0 01-2.704 2.705 2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h2.704v2.705zM17.898 27.397a2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v6.772a2.712 2.712 0 01-2.705 2.705 2.711 2.711 0 01-2.705-2.705v-6.772z",fill:"#E01E5A"}),y("path",{d:"M20.603 16.535a2.711 2.711 0 01-2.705-2.704 2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v2.704h-2.705zM20.603 17.898a2.712 2.712 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-6.772a2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h6.772z",fill:"#36C5F0"}),y("path",{d:"M31.465 20.603a2.711 2.711 0 012.704-2.705 2.711 2.711 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-2.704v-2.705zM30.102 20.603a2.711 2.711 0 01-2.705 2.705 2.711 2.711 0 01-2.705-2.705v-6.772a2.711 2.711 0 012.705-2.705 2.711 2.711 0 012.705 2.705v6.772z",fill:"#2EB67D"}),y("path",{d:"M27.397 31.465a2.711 2.711 0 012.705 2.704 2.711 2.711 0 01-2.705 2.705 2.712 2.712 0 01-2.705-2.705v-2.704h2.705zM27.397 30.102a2.711 2.711 0 01-2.705-2.705 2.711 2.711 0 012.705-2.705h6.772a2.711 2.711 0 012.705 2.705 2.711 2.711 0 01-2.705 2.705h-6.772z",fill:"#ECB22E"})]})}),g&&e===p&&t&&y(Ki,{applicationDescriptions:t,refreshToken:g}),g&&f&&c&&h&&y(bs,{username:f,version:c,onLogout:h,onUpdateProfile:v}),y(gs,{language:i||"en",languages:s||["en"],onLanguageSelected:l}),!g&&G(ft,{children:[y(le.Button,{className:"tw-ml-2 tw-mr-0 md:tw-ml-3 lg:tw-mr-3",size:"lg",href:I,as:"a",variant:"link",colorScheme:"gray",children:m.formatMessage({id:"login"})}),y(le.Button,{className:"tw-ml-3 tw-hidden lg:tw-inline-block",size:"xl",href:I,as:"a",variant:"solid",colorScheme:"primary",children:m.formatMessage({id:"getStartedFree"})})]})]})}):(console.error(`Unknown application ${e}`),y("div",{"data-testid":"init-error"}))}const Ts={en:{mainMenu:"Main menu",settings:"Settings",help:"Help",contactDevelopers:"Contact Community",contactus:"Contact Support",contactUsMailBody:`Hello Support team,
110
110
 
111
111
  <Please describe your problem/request here.
112
112
  Do not hesitate to add as many details as possible.
@@ -131,7 +131,7 @@ The more precise your explanation, the better our answer. \u{1F60A}>
131
131
  Thank you \u{1F60A}
132
132
 
133
133
  Regards,
134
- <Your Name>`,documentation:"Documentation",notifications:"Notifications",appSelector:"X4B applications",userAccountTooltip:"X4B account",logout:"Sign out",version:"Version: {version}",login:"Log in",getStartedFree:"Get started free",installGateway:"Install Gateways & Agents",upgradeBtn:"Upgrade to Enterprise plan",upgradeBtnTooltip:"Email for Enterprise upgrade"},fr:{mainMenu:"Menu principal",settings:"Param\xE8tres",help:"Aide",contactDevelopers:"Contacter la communaut\xE9",contactus:"Contacter le support",contactUsMailBody:`Bonjour,
134
+ <Your Name>`,documentation:"Documentation",notifications:"Notifications",appSelector:"X4B applications",userAccountTooltip:"X4B account",logout:"Sign out",version:"Version: {version}",login:"Log in",getStartedFree:"Get started free",installGateway:"Install Gateways & Agents",upgradeBtn:"Upgrade to Enterprise plan",upgradeBtnTooltip:"Email for Enterprise upgrade",updateProfile:"Update profile"},fr:{mainMenu:"Menu principal",settings:"Param\xE8tres",help:"Aide",contactDevelopers:"Contacter la communaut\xE9",contactus:"Contacter le support",contactUsMailBody:`Bonjour,
135
135
 
136
136
  <Merci d'entrer la description de votre probl\xE8me/requ\xEAte au support ici.
137
137
  N'h\xE9sitez pas \xE0 rajouter le plus de d\xE9tails possible. Plus votre demande
@@ -155,5 +155,5 @@ Pour toute correspondance ult\xE9rieure, veuillez me contacter \xE0 mon num\xE9r
155
155
 
156
156
  Merci \u{1F60A}
157
157
  Cordialement,
158
- <Votre nom>`,documentation:"Documentation",notifications:"Notifications",appSelector:"Applications X4B",userAccountTooltip:"Compte X4B",logout:"D\xE9connexion",version:"Version : {version}",login:"Se connecter",getStartedFree:"Essayer gratuitement",installGateway:"Installation des passerelles & agents",upgradeBtn:"Mettre \xE0 niveau",upgradeBtnTooltip:"Email pour la mise \xE0 niveau Entreprise"}},xs=e=>Ts[e];function Ss(e){const t=e.language||"en";return y(qo,{locale:t,messages:xs(t),children:y(ws,{...e})})}const Rs='<svg width="34" height="35" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.63 16.635.574 6.579c-.725-.725-.725-1.952 0-2.718L2.946 1.49c.725-.725 1.952-.725 2.717 0L15.72 11.546c.725.725.725 1.951 0 2.717l-2.371 2.372a1.894 1.894 0 0 1-2.718 0ZM.574 29.333 10.63 19.277c.725-.725 1.952-.725 2.718 0l2.371 2.372c.725.725.725 1.952 0 2.717L5.663 34.422c-.725.726-1.951.726-2.717 0L.574 32.051c-.765-.766-.765-1.993 0-2.718ZM23.37 19.237l10.056 10.056c.725.725.725 1.951 0 2.717l-2.372 2.372c-.725.725-1.952.725-2.717 0L18.28 24.326c-.725-.725-.725-1.952 0-2.718l2.371-2.371a1.97 1.97 0 0 1 2.718 0Z" fill="#44506A"/><path d="M33.426 6.579 23.37 16.635c-.726.725-1.952.725-2.718 0l-2.371-2.372c-.725-.725-.725-1.952 0-2.717L28.337 1.49c.725-.725 1.951-.725 2.717 0l2.372 2.371c.765.766.765 1.993 0 2.718Z" fill="url(#a)"/><defs><linearGradient id="a" x1="17.736" y1="9.065" x2="33.999" y2="9.065" gradientUnits="userSpaceOnUse"><stop stop-color="#2E5BFF"/><stop offset="1" stop-color="#7994F6"/></linearGradient></defs></svg>';async function Is(e){const t=await fetch(`${e}/applications`);return t.ok?(await t.json()).reduce((n,a)=>(n[a.id]={name:a.label,url:a.url,logo:a.logo,documentationUrl:a.documentationUrl,hidden:Boolean(a.hidden)},n),{}):(console.error(t.text),{})}function ur(e){this.message=e}ur.prototype=new Error,ur.prototype.name="InvalidCharacterError";var ta=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new ur("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,a=0,o=0,i="";n=t.charAt(o++);~n&&(r=a%4?64*r+n:n,a++%4)?i+=String.fromCharCode(255&r>>(-2*a&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return i};function Ms(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(r){return decodeURIComponent(ta(r).replace(/(.)/g,function(n,a){var o=a.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}(t)}catch{return ta(t)}}function wt(e){this.message=e}function lr(e,t){if(typeof e!="string")throw new wt("Invalid token specified");var r=(t=t||{}).header===!0?0:1;try{return JSON.parse(Ms(e.split(".")[r]))}catch(n){throw new wt("Invalid token specified: "+n.message)}}wt.prototype=new Error,wt.prototype.name="InvalidTokenError";const Ps=e=>{if(e){const t=lr(e);return t?t.user:void 0}},Os=()=>{const e=ra("refreshToken");return e?{refreshToken:e,accessToken:ra("accessToken")}:{}};function ra(e){var r;const t=(r=window.location.hash)==null?void 0:r.slice(1).split("#").map(n=>{const a=n.split("=");return{key:a[0],value:a[1]}}).filter(n=>n.key===e).map(n=>n.value);return t&&t.length>0?t[0]:void 0}const Cs=()=>window.accessToken,cr=60,Ns=5*cr*1e3,na=e=>{const t=lr(e),r=Date.now()/1e3;return!t.exp||t.exp>r+cr},As=e=>{const t=lr(e),r=Date.now()/1e3;return t.exp?na(e)?(t.exp-r-cr)*1e3:0:Ns},aa=()=>{const e=Kn();return e?`lang=${e}&`:""};async function _s(e,t){const r=await fetch(`${e}/services`);if(r.ok){const n=await r.json(),a=n.login,o=n.authentication,i=()=>{window.location.href=`${a}/logout?${aa()}redirectUrl=${encodeURIComponent(window.location.href)}`},s=Os();if(s!=null&&s.refreshToken){const l=await ia(i,o,s,t);if(history.replaceState({},"",window.location.href.split("#")[0]),l)return{token:l,logout:i}}else window.location.href=`${a}?${aa()}redirectUrl=${encodeURIComponent(window.location.href)}`}else throw new Error(await r.text())}function oa(e,t,r,n){const a=As(window.accessToken||"");console.debug(`Token will refresh in ${a} ms`),setTimeout(()=>ia(e,t,r,n),a)}async function ia(e,t,r,n){if(r.accessToken&&na(r.accessToken))return window.accessToken=r.accessToken,oa(e,t,r,n),r;if(!r.refreshToken){window.accessToken=void 0,console.error("no refresh token, nothing to refresh");return}try{const a=await fetch(`${t}/api/Users/RefreshToken`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r.refreshToken)});if(a.ok){const o=await a.json();if(o.refreshToken)return window.accessToken=o.accessToken,n&&n(o),oa(e,t,o,n),o;console.error("no refresh token");return}else{const o=await a.json();console.error(o),e()}}catch(a){console.error(a),e()}}const fr=ye.default.createContext(void 0);fr.displayName="AuthContext";function Ls({appsServiceUrl:e,children:t}){const[r,n]=ye.default.useState(),[a,o]=ye.default.useState(),i=ye.default.useCallback(l=>{n(f=>({logout:(f==null?void 0:f.logout)||(()=>{}),token:{accessToken:l.accessToken,refreshToken:l.refreshToken}}))},[]);ye.default.useEffect(()=>{Promise.all([_s(e,i),Is(e)]).then(([l,f])=>{Object.keys(f).forEach(c=>{f[c].logo=window.btoa(f[c].logo)}),o(f),n(l)})},[e,i]);const s=ye.default.useCallback(l=>({...l,applications:a,username:Ps(r==null?void 0:r.token.refreshToken),logout:r==null?void 0:r.logout,refreshToken:r==null?void 0:r.token.refreshToken}),[a,r]);return y(fr.Provider,{value:{appsServiceUrl:e,authResult:r,applications:a,getBannerProps:s},children:r&&a&&t})}function Ds(){const e=ye.default.useContext(fr);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}te.AuthProvider=Ls,te.Banner=Ss,te.defaultAppIcon=Rs,te.getDefaultLanguage=Kn,te.getToken=Cs,te.isMenuOpen=pn,te.useAuth=Ds,Object.defineProperties(te,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
158
+ <Votre nom>`,documentation:"Documentation",notifications:"Notifications",appSelector:"Applications X4B",userAccountTooltip:"Compte X4B",logout:"D\xE9connexion",version:"Version : {version}",login:"Se connecter",getStartedFree:"Essayer gratuitement",installGateway:"Installation des passerelles & agents",upgradeBtn:"Mettre \xE0 niveau",upgradeBtnTooltip:"Email pour la mise \xE0 niveau Entreprise",updateProfile:"Mettre \xE0 jour le profil"}},xs=e=>Ts[e];function Ss(e){const t=e.language||"en";return y(qo,{locale:t,messages:xs(t),children:y(ws,{...e})})}const Rs='<svg width="34" height="35" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.63 16.635.574 6.579c-.725-.725-.725-1.952 0-2.718L2.946 1.49c.725-.725 1.952-.725 2.717 0L15.72 11.546c.725.725.725 1.951 0 2.717l-2.371 2.372a1.894 1.894 0 0 1-2.718 0ZM.574 29.333 10.63 19.277c.725-.725 1.952-.725 2.718 0l2.371 2.372c.725.725.725 1.952 0 2.717L5.663 34.422c-.725.726-1.951.726-2.717 0L.574 32.051c-.765-.766-.765-1.993 0-2.718ZM23.37 19.237l10.056 10.056c.725.725.725 1.951 0 2.717l-2.372 2.372c-.725.725-1.952.725-2.717 0L18.28 24.326c-.725-.725-.725-1.952 0-2.718l2.371-2.371a1.97 1.97 0 0 1 2.718 0Z" fill="#44506A"/><path d="M33.426 6.579 23.37 16.635c-.726.725-1.952.725-2.718 0l-2.371-2.372c-.725-.725-.725-1.952 0-2.717L28.337 1.49c.725-.725 1.951-.725 2.717 0l2.372 2.371c.765.766.765 1.993 0 2.718Z" fill="url(#a)"/><defs><linearGradient id="a" x1="17.736" y1="9.065" x2="33.999" y2="9.065" gradientUnits="userSpaceOnUse"><stop stop-color="#2E5BFF"/><stop offset="1" stop-color="#7994F6"/></linearGradient></defs></svg>';async function Is(e){const t=await fetch(`${e}/applications`);return t.ok?(await t.json()).reduce((n,a)=>(n[a.id]={name:a.label,url:a.url,logo:a.logo,documentationUrl:a.documentationUrl,hidden:Boolean(a.hidden)},n),{}):(console.error(t.text),{})}function ur(e){this.message=e}ur.prototype=new Error,ur.prototype.name="InvalidCharacterError";var ta=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new ur("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,a=0,o=0,i="";n=t.charAt(o++);~n&&(r=a%4?64*r+n:n,a++%4)?i+=String.fromCharCode(255&r>>(-2*a&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return i};function Ms(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(r){return decodeURIComponent(ta(r).replace(/(.)/g,function(n,a){var o=a.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}(t)}catch{return ta(t)}}function Tt(e){this.message=e}function lr(e,t){if(typeof e!="string")throw new Tt("Invalid token specified");var r=(t=t||{}).header===!0?0:1;try{return JSON.parse(Ms(e.split(".")[r]))}catch(n){throw new Tt("Invalid token specified: "+n.message)}}Tt.prototype=new Error,Tt.prototype.name="InvalidTokenError";const Ps=e=>{if(e){const t=lr(e);return t?t.user:void 0}},Os=()=>{const e=ra("refreshToken");return e?{refreshToken:e,accessToken:ra("accessToken")}:{}};function ra(e){var r;const t=(r=window.location.hash)==null?void 0:r.slice(1).split("#").map(n=>{const a=n.split("=");return{key:a[0],value:a[1]}}).filter(n=>n.key===e).map(n=>n.value);return t&&t.length>0?t[0]:void 0}const Cs=()=>window.accessToken,cr=60,Ns=5*cr*1e3,na=e=>{const t=lr(e),r=Date.now()/1e3;return!t.exp||t.exp>r+cr},As=e=>{const t=lr(e),r=Date.now()/1e3;return t.exp?na(e)?(t.exp-r-cr)*1e3:0:Ns},aa=()=>{const e=Kn();return e?`lang=${e}&`:""};async function _s(e,t){const r=await fetch(`${e}/services`);if(r.ok){const n=await r.json(),a=n.login,o=n.authentication,i=()=>{window.location.href=`${a}/logout?${aa()}redirectUrl=${encodeURIComponent(window.location.href)}`},s=Os();if(s!=null&&s.refreshToken){const l=await ia(i,o,s,t);if(history.replaceState({},"",window.location.href.split("#")[0]),l)return{token:l,logout:i}}else window.location.href=`${a}?${aa()}redirectUrl=${encodeURIComponent(window.location.href)}`}else throw new Error(await r.text())}function oa(e,t,r,n){const a=As(window.accessToken||"");console.debug(`Token will refresh in ${a} ms`),setTimeout(()=>ia(e,t,r,n),a)}async function ia(e,t,r,n){if(r.accessToken&&na(r.accessToken))return window.accessToken=r.accessToken,oa(e,t,r,n),r;if(!r.refreshToken){window.accessToken=void 0,console.error("no refresh token, nothing to refresh");return}try{const a=await fetch(`${t}/api/Users/RefreshToken`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r.refreshToken)});if(a.ok){const o=await a.json();if(o.refreshToken)return window.accessToken=o.accessToken,n&&n(o),oa(e,t,o,n),o;console.error("no refresh token");return}else{const o=await a.json();console.error(o),e()}}catch(a){console.error(a),e()}}const fr=be.default.createContext(void 0);fr.displayName="AuthContext";function Ls({appsServiceUrl:e,children:t}){const[r,n]=be.default.useState(),[a,o]=be.default.useState(),i=be.default.useCallback(l=>{n(f=>({logout:(f==null?void 0:f.logout)||(()=>{}),token:{accessToken:l.accessToken,refreshToken:l.refreshToken}}))},[]);be.default.useEffect(()=>{Promise.all([_s(e,i),Is(e)]).then(([l,f])=>{Object.keys(f).forEach(c=>{f[c].logo=window.btoa(f[c].logo)}),o(f),n(l)})},[e,i]);const s=be.default.useCallback(l=>({...l,applications:a,username:Ps(r==null?void 0:r.token.refreshToken),logout:r==null?void 0:r.logout,refreshToken:r==null?void 0:r.token.refreshToken}),[a,r]);return y(fr.Provider,{value:{appsServiceUrl:e,authResult:r,applications:a,getBannerProps:s},children:r&&a&&t})}function Ds(){const e=be.default.useContext(fr);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}re.AuthProvider=Ls,re.Banner=Ss,re.defaultAppIcon=Rs,re.getDefaultLanguage=Kn,re.getToken=Cs,re.isMenuOpen=pn,re.useAuth=Ds,Object.defineProperties(re,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
159
159
  //# sourceMappingURL=banner.umd.js.map