gymatra-ui 0.1.0 → 0.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.
package/dist/index.cjs CHANGED
@@ -1,108 +1 @@
1
- "use strict";var z5=Object.defineProperty;var A5=(e,t,n)=>t in e?z5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Be=(e,t,n)=>A5(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),j5=require("react-dom");function If(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const p=If(o),on=If(j5);function Ff(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zi={exports:{}},Eo={};/**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Yd;function D5(){if(Yd)return Eo;Yd=1;var e=o,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(s,d,u){var f,m={},h=null,x=null;u!==void 0&&(h=""+u),d.key!==void 0&&(h=""+d.key),d.ref!==void 0&&(x=d.ref);for(f in d)r.call(d,f)&&!a.hasOwnProperty(f)&&(m[f]=d[f]);if(s&&s.defaultProps)for(f in d=s.defaultProps,d)m[f]===void 0&&(m[f]=d[f]);return{$$typeof:t,type:s,key:h,ref:x,props:m,_owner:i.current}}return Eo.Fragment=n,Eo.jsx=l,Eo.jsxs=l,Eo}var wo={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Xd;function k5(){return Xd||(Xd=1,process.env.NODE_ENV!=="production"&&(function(){var e=o,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),g=Symbol.iterator,b="@@iterator";function v(L){if(L===null||typeof L!="object")return null;var pe=g&&L[g]||L[b];return typeof pe=="function"?pe:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(L){{for(var pe=arguments.length,ve=new Array(pe>1?pe-1:0),Ae=1;Ae<pe;Ae++)ve[Ae-1]=arguments[Ae];E("error",L,ve)}}function E(L,pe,ve){{var Ae=y.ReactDebugCurrentFrame,Ye=Ae.getStackAddendum();Ye!==""&&(pe+="%s",ve=ve.concat([Ye]));var ke=ve.map(function(Le){return String(Le)});ke.unshift("Warning: "+pe),Function.prototype.apply.call(console[L],console,ke)}}var C=!1,$=!1,M=!1,S=!1,P=!1,N;N=Symbol.for("react.module.reference");function R(L){return!!(typeof L=="string"||typeof L=="function"||L===r||L===a||P||L===i||L===u||L===f||S||L===x||C||$||M||typeof L=="object"&&L!==null&&(L.$$typeof===h||L.$$typeof===m||L.$$typeof===l||L.$$typeof===s||L.$$typeof===d||L.$$typeof===N||L.getModuleId!==void 0))}function z(L,pe,ve){var Ae=L.displayName;if(Ae)return Ae;var Ye=pe.displayName||pe.name||"";return Ye!==""?ve+"("+Ye+")":ve}function _(L){return L.displayName||"Context"}function F(L){if(L==null)return null;if(typeof L.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof L=="function")return L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof L=="object")switch(L.$$typeof){case s:var pe=L;return _(pe)+".Consumer";case l:var ve=L;return _(ve._context)+".Provider";case d:return z(L,L.render,"ForwardRef");case m:var Ae=L.displayName||null;return Ae!==null?Ae:F(L.type)||"Memo";case h:{var Ye=L,ke=Ye._payload,Le=Ye._init;try{return F(Le(ke))}catch{return null}}}return null}var O=Object.assign,j=0,V,J,U,G,I,A,T;function q(){}q.__reactDisabledLog=!0;function D(){{if(j===0){V=console.log,J=console.info,U=console.warn,G=console.error,I=console.group,A=console.groupCollapsed,T=console.groupEnd;var L={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:L,log:L,warn:L,error:L,group:L,groupCollapsed:L,groupEnd:L})}j++}}function B(){{if(j--,j===0){var L={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},L,{value:V}),info:O({},L,{value:J}),warn:O({},L,{value:U}),error:O({},L,{value:G}),group:O({},L,{value:I}),groupCollapsed:O({},L,{value:A}),groupEnd:O({},L,{value:T})})}j<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var W=y.ReactCurrentDispatcher,X;function ee(L,pe,ve){{if(X===void 0)try{throw Error()}catch(Ye){var Ae=Ye.stack.trim().match(/\n( *(at )?)/);X=Ae&&Ae[1]||""}return`
18
- `+X+L}}var Q=!1,ie;{var se=typeof WeakMap=="function"?WeakMap:Map;ie=new se}function Z(L,pe){if(!L||Q)return"";{var ve=ie.get(L);if(ve!==void 0)return ve}var Ae;Q=!0;var Ye=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ke;ke=W.current,W.current=null,D();try{if(pe){var Le=function(){throw Error()};if(Object.defineProperty(Le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Le,[])}catch(zt){Ae=zt}Reflect.construct(L,[],Le)}else{try{Le.call()}catch(zt){Ae=zt}L.call(Le.prototype)}}else{try{throw Error()}catch(zt){Ae=zt}L()}}catch(zt){if(zt&&Ae&&typeof zt.stack=="string"){for(var Ue=zt.stack.split(`
19
- `),yt=Ae.stack.split(`
20
- `),xt=Ue.length-1,ht=yt.length-1;xt>=1&&ht>=0&&Ue[xt]!==yt[ht];)ht--;for(;xt>=1&&ht>=0;xt--,ht--)if(Ue[xt]!==yt[ht]){if(xt!==1||ht!==1)do if(xt--,ht--,ht<0||Ue[xt]!==yt[ht]){var jt=`
21
- `+Ue[xt].replace(" at new "," at ");return L.displayName&&jt.includes("<anonymous>")&&(jt=jt.replace("<anonymous>",L.displayName)),typeof L=="function"&&ie.set(L,jt),jt}while(xt>=1&&ht>=0);break}}}finally{Q=!1,W.current=ke,B(),Error.prepareStackTrace=Ye}var St=L?L.displayName||L.name:"",Fe=St?ee(St):"";return typeof L=="function"&&ie.set(L,Fe),Fe}function he(L,pe,ve){return Z(L,!1)}function re(L){var pe=L.prototype;return!!(pe&&pe.isReactComponent)}function fe(L,pe,ve){if(L==null)return"";if(typeof L=="function")return Z(L,re(L));if(typeof L=="string")return ee(L);switch(L){case u:return ee("Suspense");case f:return ee("SuspenseList")}if(typeof L=="object")switch(L.$$typeof){case d:return he(L.render);case m:return fe(L.type,pe,ve);case h:{var Ae=L,Ye=Ae._payload,ke=Ae._init;try{return fe(ke(Ye),pe,ve)}catch{}}}return""}var ue=Object.prototype.hasOwnProperty,ne={},me=y.ReactDebugCurrentFrame;function le(L){if(L){var pe=L._owner,ve=fe(L.type,L._source,pe?pe.type:null);me.setExtraStackFrame(ve)}else me.setExtraStackFrame(null)}function we(L,pe,ve,Ae,Ye){{var ke=Function.call.bind(ue);for(var Le in L)if(ke(L,Le)){var Ue=void 0;try{if(typeof L[Le]!="function"){var yt=Error((Ae||"React class")+": "+ve+" type `"+Le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof L[Le]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw yt.name="Invariant Violation",yt}Ue=L[Le](pe,Le,Ae,ve,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(xt){Ue=xt}Ue&&!(Ue instanceof Error)&&(le(Ye),w("%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).",Ae||"React class",ve,Le,typeof Ue),le(null)),Ue instanceof Error&&!(Ue.message in ne)&&(ne[Ue.message]=!0,le(Ye),w("Failed %s type: %s",ve,Ue.message),le(null))}}}var Y=Array.isArray;function ae(L){return Y(L)}function Pe(L){{var pe=typeof Symbol=="function"&&Symbol.toStringTag,ve=pe&&L[Symbol.toStringTag]||L.constructor.name||"Object";return ve}}function je(L){try{return te(L),!1}catch{return!0}}function te(L){return""+L}function oe(L){if(je(L))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Pe(L)),te(L)}var be=y.ReactCurrentOwner,xe={key:!0,ref:!0,__self:!0,__source:!0},Ce,Te;function Oe(L){if(ue.call(L,"ref")){var pe=Object.getOwnPropertyDescriptor(L,"ref").get;if(pe&&pe.isReactWarning)return!1}return L.ref!==void 0}function He(L){if(ue.call(L,"key")){var pe=Object.getOwnPropertyDescriptor(L,"key").get;if(pe&&pe.isReactWarning)return!1}return L.key!==void 0}function Ge(L,pe){typeof L.ref=="string"&&be.current}function Ze(L,pe){{var ve=function(){Ce||(Ce=!0,w("%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)",pe))};ve.isReactWarning=!0,Object.defineProperty(L,"key",{get:ve,configurable:!0})}}function Ht(L,pe){{var ve=function(){Te||(Te=!0,w("%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)",pe))};ve.isReactWarning=!0,Object.defineProperty(L,"ref",{get:ve,configurable:!0})}}var Rt=function(L,pe,ve,Ae,Ye,ke,Le){var Ue={$$typeof:t,type:L,key:pe,ref:ve,props:Le,_owner:ke};return Ue._store={},Object.defineProperty(Ue._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ue,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ae}),Object.defineProperty(Ue,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ye}),Object.freeze&&(Object.freeze(Ue.props),Object.freeze(Ue)),Ue};function It(L,pe,ve,Ae,Ye){{var ke,Le={},Ue=null,yt=null;ve!==void 0&&(oe(ve),Ue=""+ve),He(pe)&&(oe(pe.key),Ue=""+pe.key),Oe(pe)&&(yt=pe.ref,Ge(pe,Ye));for(ke in pe)ue.call(pe,ke)&&!xe.hasOwnProperty(ke)&&(Le[ke]=pe[ke]);if(L&&L.defaultProps){var xt=L.defaultProps;for(ke in xt)Le[ke]===void 0&&(Le[ke]=xt[ke])}if(Ue||yt){var ht=typeof L=="function"?L.displayName||L.name||"Unknown":L;Ue&&Ze(Le,ht),yt&&Ht(Le,ht)}return Rt(L,Ue,yt,Ye,Ae,be.current,Le)}}var ze=y.ReactCurrentOwner,nt=y.ReactDebugCurrentFrame;function ot(L){if(L){var pe=L._owner,ve=fe(L.type,L._source,pe?pe.type:null);nt.setExtraStackFrame(ve)}else nt.setExtraStackFrame(null)}var lt;lt=!1;function rt(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function Je(){{if(ze.current){var L=F(ze.current.type);if(L)return`
22
-
23
- Check the render method of \``+L+"`."}return""}}function Mt(L){return""}var it={};function Ft(L){{var pe=Je();if(!pe){var ve=typeof L=="string"?L:L.displayName||L.name;ve&&(pe=`
24
-
25
- Check the top-level render call using <`+ve+">.")}return pe}}function vt(L,pe){{if(!L._store||L._store.validated||L.key!=null)return;L._store.validated=!0;var ve=Ft(pe);if(it[ve])return;it[ve]=!0;var Ae="";L&&L._owner&&L._owner!==ze.current&&(Ae=" It was passed a child from "+F(L._owner.type)+"."),ot(L),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ve,Ae),ot(null)}}function ye(L,pe){{if(typeof L!="object")return;if(ae(L))for(var ve=0;ve<L.length;ve++){var Ae=L[ve];rt(Ae)&&vt(Ae,pe)}else if(rt(L))L._store&&(L._store.validated=!0);else if(L){var Ye=v(L);if(typeof Ye=="function"&&Ye!==L.entries)for(var ke=Ye.call(L),Le;!(Le=ke.next()).done;)rt(Le.value)&&vt(Le.value,pe)}}}function Ie(L){{var pe=L.type;if(pe==null||typeof pe=="string")return;var ve;if(typeof pe=="function")ve=pe.propTypes;else if(typeof pe=="object"&&(pe.$$typeof===d||pe.$$typeof===m))ve=pe.propTypes;else return;if(ve){var Ae=F(pe);we(ve,L.props,"prop",Ae,L)}else if(pe.PropTypes!==void 0&&!lt){lt=!0;var Ye=F(pe);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ye||"Unknown")}typeof pe.getDefaultProps=="function"&&!pe.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function De(L){{for(var pe=Object.keys(L.props),ve=0;ve<pe.length;ve++){var Ae=pe[ve];if(Ae!=="children"&&Ae!=="key"){ot(L),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ae),ot(null);break}}L.ref!==null&&(ot(L),w("Invalid attribute `ref` supplied to `React.Fragment`."),ot(null))}}var st={};function Ke(L,pe,ve,Ae,Ye,ke){{var Le=R(L);if(!Le){var Ue="";(L===void 0||typeof L=="object"&&L!==null&&Object.keys(L).length===0)&&(Ue+=" 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 yt=Mt();yt?Ue+=yt:Ue+=Je();var xt;L===null?xt="null":ae(L)?xt="array":L!==void 0&&L.$$typeof===t?(xt="<"+(F(L.type)||"Unknown")+" />",Ue=" Did you accidentally export a JSX literal instead of a component?"):xt=typeof L,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",xt,Ue)}var ht=It(L,pe,ve,Ye,ke);if(ht==null)return ht;if(Le){var jt=pe.children;if(jt!==void 0)if(Ae)if(ae(jt)){for(var St=0;St<jt.length;St++)ye(jt[St],L);Object.freeze&&Object.freeze(jt)}else w("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 ye(jt,L)}if(ue.call(pe,"key")){var Fe=F(L),zt=Object.keys(pe).filter(function(yo){return yo!=="key"}),bo=zt.length>0?"{key: someKey, "+zt.join(": ..., ")+": ...}":"{key: someKey}";if(!st[Fe+bo]){var Ul=zt.length>0?"{"+zt.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
26
- let props = %s;
27
- <%s {...props} />
28
- React keys must be passed directly to JSX without using spread:
29
- let props = %s;
30
- <%s key={someKey} {...props} />`,bo,Fe,Ul,Fe),st[Fe+bo]=!0}}return L===r?De(ht):Ie(ht),ht}}function Ne(L,pe,ve){return Ke(L,pe,ve,!0)}function et(L,pe,ve){return Ke(L,pe,ve,!1)}var At=et,Zt=Ne;wo.Fragment=r,wo.jsx=At,wo.jsxs=Zt})()),wo}var Zd;function H5(){return Zd||(Zd=1,process.env.NODE_ENV==="production"?zi.exports=D5():zi.exports=k5()),zi.exports}var c=H5();const Jd={};function Pt(e,t){const n=p.useRef(Jd);return n.current===Jd&&(n.current=e(t)),n}function an(e,t,n,r){const i=Pt(Tf).current;return V5(i,e,t,n,r)&&Of(i,[e,t,n,r]),i.callback}function L5(e){const t=Pt(Tf).current;return _5(t,e)&&Of(t,e),t.callback}function Tf(){return{callback:null,cleanup:null,refs:[]}}function V5(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function _5(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function Of(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let i=0;i<t.length;i+=1){const a=t[i];if(a!=null)switch(typeof a){case"function":{const l=a(n);typeof l=="function"&&(r[i]=l);break}case"object":{a.current=n;break}}}e.cleanup=()=>{for(let i=0;i<t.length;i+=1){const a=t[i];if(a!=null)switch(typeof a){case"function":{const l=r[i];typeof l=="function"?l():a(null);break}case"object":{a.current=null;break}}}}}}}const B5=parseInt(p.version,10);function ja(e){return B5>=e}function Qd(e){if(!p.isValidElement(e))return null;const t=e,n=t.props;return(ja(19)?n==null?void 0:n.ref:t.ref)??null}function ws(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}let Cs;process.env.NODE_ENV!=="production"&&(Cs=new Set);function zf(e,t){return function(...r){if(process.env.NODE_ENV!=="production"){const i=r.join(" "),a=`${t}: ${i}`,l=`${e}:${a}`;Cs.has(l)||(Cs.add(l),e==="warn"?console.warn(a):console.error(a))}}}const Af=zf("warn","Base UI");function Qe(){}const qt=Object.freeze([]),We=Object.freeze({});function G5(e,t){const n={};for(const r in e){const i=e[r];if(t!=null&&t.hasOwnProperty(r)){const a=t[r](i);a!=null&&Object.assign(n,a);continue}i===!0?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function U5(e,t){return typeof e=="function"?e(t):e}function W5(e,t){return typeof e=="function"?e(t):e}const jf={};function _t(e,t,n,r,i){if(!n&&!r&&!i&&!e)return ca(t);let a=ca(e);return t&&(a=No(a,t)),n&&(a=No(a,n)),r&&(a=No(a,r)),i&&(a=No(a,i)),a}function K5(e){if(e.length===0)return jf;if(e.length===1)return ca(e[0]);let t=ca(e[0]);for(let n=1;n<e.length;n+=1)t=No(t,e[n]);return t}function ca(e){return kf(e)?{...e(jf)}:q5(e)}function No(e,t){return kf(t)?t(e):Y5(e,t)}function q5(e){const t={...e};for(const n in t){const r=t[n];Df(n,r)&&(t[n]=Hf(r))}return t}function Y5(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=ws(e.style,r);break}case"className":{e[n]=Lf(e.className,r);break}default:Df(n,r)?e[n]=X5(e[n],r):e[n]=r}}return e}function Df(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t=="function"||typeof t>"u")}function kf(e){return typeof e=="function"}function X5(e,t){return t?e?(...n)=>{const r=n[0];if(Vf(r)){const a=r;ua(a);const l=t(...n);return a.baseUIHandlerPrevented||e==null||e(...n),l}const i=t(...n);return e==null||e(...n),i}:Hf(t):e}function Hf(e){return e&&((...t)=>{const n=t[0];return Vf(n)&&ua(n),e(...t)})}function ua(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Lf(e,t){return t?e?t+" "+e:t:e}function Vf(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Se(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=cc(r));const i=Z5(t,n,r);if(n.enabled===!1)return null;const a=n.state??We;return nh(e,r,i,a)}function Z5(e,t,n){const{className:r,style:i}=e,{state:a=We,ref:l,props:s,stateAttributesMapping:d,enabled:u=!0}=t,f=u?U5(r,a):void 0,m=u?W5(i,a):void 0,h=u?G5(a,d):We,x=u&&s?J5(s):void 0,g=u?ws(h,x)??{}:We;return typeof document<"u"&&(u?Array.isArray(l)?g.ref=L5([g.ref,Qd(n),...l]):g.ref=an(g.ref,Qd(n),l):an(null,null)),u?(f!==void 0&&(g.className=Lf(g.className,f)),m!==void 0&&(g.style=ws(g.style,m)),g):We}function J5(e){return Array.isArray(e)?K5(e):_t(void 0,e)}const Q5=Symbol.for("react.lazy"),eh=/^[A-Z][A-Za-z0-9$]*$/,th=/[a-z]/;function cc(e){if((e==null?void 0:e.$$typeof)!==Q5)return e;const t=p.Children.toArray(e)[0];return p.isValidElement(t)?t:e}function nh(e,t,n,r){if(t){if(typeof t=="function")return process.env.NODE_ENV!=="production"&&rh(t),t(n,r);const i=_t(n,t.props);if(i.ref=n.ref,process.env.NODE_ENV!=="production"&&!p.isValidElement(t))throw new Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.","A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.","https://base-ui.com/r/invalid-render-prop"].join(`
31
- `));return p.cloneElement(t,i)}return oh(e,n)}function rh(e){const t=e.name;t.length!==0&&eh.test(t)&&th.test(t)&&Af(`The \`render\` prop received a function named \`${t}\` that starts with an uppercase letter.`,"This usually means a React component was passed directly as `render={Component}`.","Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.","If this is an intentional render callback, rename it to start with a lowercase letter.","Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.","https://base-ui.com/r/invalid-render-prop")}function oh(e,t){return e==="button"?o.createElement("button",{type:"button",...t,key:t.key}):e==="img"?o.createElement("img",{alt:"",...t,key:t.key}):p.createElement(e,t)}function ih(e,t){return function(r,...i){const a=new URL(e);return a.searchParams.set("code",r.toString()),i.forEach(l=>a.searchParams.append("args[]",l)),`${t} error #${r}; visit ${a} for the full message.`}}const Ve=ih("https://base-ui.com/production-error","Base UI"),uc=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(uc.displayName="AvatarRootContext");function _f(){const e=p.useContext(uc);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>.":Ve(13));return e}const dc={imageLoadingStatus:()=>null},fc=p.forwardRef(function(t,n){const{className:r,render:i,style:a,...l}=t,[s,d]=p.useState("idle"),u={imageLoadingStatus:s},f=p.useMemo(()=>({imageLoadingStatus:s,setImageLoadingStatus:d}),[s,d]),m=Se("span",t,{state:u,ref:n,props:l,stateAttributesMapping:dc});return c.jsx(uc.Provider,{value:f,children:m})});process.env.NODE_ENV!=="production"&&(fc.displayName="AvatarRoot");const Vt={...p},ql=Vt.useInsertionEffect,ah=ql&&ql!==Vt.useLayoutEffect?ql:e=>e();function de(e){const t=Pt(lh).current;return t.next=e,ah(t.effect),t.trampoline}function lh(){const e={next:void 0,callback:sh,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function sh(){if(process.env.NODE_ENV!=="production")throw new Error("Base UI: Cannot call an event handler while rendering.")}const ch=()=>{},ce=typeof document<"u"?p.useLayoutEffect:ch;function mc(e){p.useEffect(e,qt)}const Ai=null;let e2=globalThis.requestAnimationFrame;class uh{constructor(){Be(this,"callbacks",[]);Be(this,"callbacksCount",0);Be(this,"nextId",1);Be(this,"startId",1);Be(this,"isScheduled",!1);Be(this,"tick",t=>{var i;this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let a=0;a<n.length;a+=1)(i=n[a])==null||i.call(n,t)})}request(t){const n=this.nextId;this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1;const r=process.env.NODE_ENV!=="production"&&e2!==requestAnimationFrame&&(e2=requestAnimationFrame,!0);return(!this.isScheduled||r)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||this.callbacks[n]!==null&&(this.callbacks[n]=null,this.callbacksCount-=1)}}let ji=new uh;class Rn{constructor(){Be(this,"currentId",Ai);Be(this,"cancel",()=>{this.currentId!==Ai&&(ji.cancel(this.currentId),this.currentId=Ai)});Be(this,"disposeEffect",()=>this.cancel)}static create(){return new Rn}static request(t){return ji.request(t)}static cancel(t){return ji.cancel(t)}request(t){this.cancel(),this.currentId=ji.request(()=>{this.currentId=Ai,t()})}}function Yr(){const e=Pt(Rn.create).current;return mc(e.disposeEffect),e}function Dn(e){return e==null?e:"current"in e?e.current:e}function t2(e,t){return e.getAnimations(t).filter(n=>{var i;const r=(i=n.effect)==null?void 0:i.getTiming();return(r==null?void 0:r.duration)!==1/0&&(r==null?void 0:r.iterations)!==1/0})}const Bf="data-starting-style",dh="data-ending-style";let Di=null;function fh(e){if(!Di){const t=[];Di=t,queueMicrotask(()=>{Di=null,on.flushSync(()=>{for(const n of t)n()})})}Di.push(e)}function pc(e,t=!1,n=!1){const r=Yr();return de((i,a=null)=>{r.cancel();const l=Dn(e);if(l==null)return;const s=l,d=()=>{if(!n){on.flushSync(i);return}fh(()=>{a!=null&&a.aborted||i()})};if(typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function u(){Promise.all(t2(s).map(f=>f.finished.then(Qe))).then(()=>{a!=null&&a.aborted||d()},()=>{if(a!=null&&a.aborted)return;if(t2(s).some(m=>m.pending||m.playState!=="finished")){u();return}d()})}if(t){const f=Bf;if(!s.hasAttribute(f)){r.request(u);return}const m=new MutationObserver(()=>{s.hasAttribute(f)||(m.disconnect(),u())});m.observe(s,{attributes:!0,attributeFilter:[f]}),a==null||a.addEventListener("abort",()=>m.disconnect(),{once:!0});return}r.request(u)})}function Yt(e){const{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,l=de(a),s=pc(r,n,i);p.useEffect(()=>{if(!t)return;const d=new AbortController;return s(l,d.signal),()=>{d.abort()}},[t,n,l,s])}const mh={[Bf]:""},ph={[dh]:""},ln={transitionStatus(e){return e==="starting"?mh:e==="ending"?ph:null}};function $n(e,t=!1,n=!1,r=!1){const[i,a]=p.useState(e&&t?"idle":void 0),[l,s]=p.useState(e&&!r);return e&&!l&&(s(!0),a("starting")),!e&&l&&i!=="ending"&&!n&&a("ending"),!e&&!l&&i==="ending"&&a(void 0),ce(()=>{if(!e&&l&&i!=="ending"&&n){const d=Rn.request(()=>{a("ending")});return()=>{Rn.cancel(d)}}},[e,l,i,n]),ce(()=>{if(!e||t||i===void 0)return;const d=Rn.request(()=>{a(void 0)});return()=>{Rn.cancel(d)}},[t,e,i]),ce(()=>{if(!e||!t)return;e&&l&&i!=="idle"&&a("starting");const d=Rn.request(()=>{a("idle")});return()=>{Rn.cancel(d)}},[t,e,l,i]),{mounted:l,setMounted:s,transitionStatus:i}}function hh(e,{referrerPolicy:t,crossOrigin:n,sizes:r,srcSet:i},a){const l=p.useState("idle"),s=l[1];return ce(()=>{if(!a)return Qe;if(!e&&!i)return s("error"),Qe;let d=!0;const u=new window.Image,f=m=>()=>{d&&s(m)};return s("loading"),u.onload=f("loaded"),u.onerror=f("error"),t&&(u.referrerPolicy=t),u.crossOrigin=n??null,r&&(u.sizes=r),i&&(u.srcset=i),e&&(u.src=e),u.complete&&s(u.naturalWidth>0?"loaded":"error"),()=>{d=!1}},[a,e,i,r,n,t,s]),l}const gh={...dc,...ln},hc=p.forwardRef(function(t,n){const{className:r,render:i,onLoadingStatusChange:a,keepMounted:l=!1,style:s,sizes:d,srcSet:u,src:f,...m}=t,{setImageLoadingStatus:h}=_f(),[x,g]=hh(f,t,!l),b=x==="loaded",{mounted:v,transitionStatus:y,setMounted:w}=$n(b),E=p.useRef(null),C=p.useRef(!0);ce(()=>{if(!l)return;const z=C.current;C.current=!1;const _=E.current;if(!_)return;if(!_.complete){g("loading");return}const F=_.naturalWidth>0?"loaded":"error";g(F),F==="loaded"&&z&&w(!0)},[l,f,u,d,m.crossOrigin,m.referrerPolicy,i,g,w]);const $=l?{"data-loading":x==="loading"?"":void 0,"data-error":x==="error"?"":void 0,"aria-hidden":x!=="loaded"||void 0,onLoad(){g("loaded")},onError(){g("error")}}:void 0,M=de(z=>{a==null||a(z),h(z)});ce(()=>{x!=="idle"&&M(x)},[x,M]),ce(()=>()=>h("idle"),[h]),Yt({enabled:!b,open:b,ref:E,onComplete(){b||w(!1)}});const S={imageLoadingStatus:x,transitionStatus:l&&y==="ending"?void 0:y},P=l||v,N={};d!==void 0&&(N.sizes=d),u!==void 0&&(N.srcSet=u),f!==void 0&&(N.src=f);const R=Se("img",t,{state:S,ref:[n,E],props:[$,m,N],stateAttributesMapping:gh,enabled:P});return P?R:null});process.env.NODE_ENV!=="production"&&(hc.displayName="AvatarImage");const Co=0;class En{constructor(){Be(this,"currentId",Co);Be(this,"clear",()=>{this.currentId!==Co&&(clearTimeout(this.currentId),this.currentId=Co)});Be(this,"disposeEffect",()=>this.clear)}static create(){return new En}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Co,n()},t)}isStarted(){return this.currentId!==Co}}function wt(){const e=Pt(En.create).current;return mc(e.disposeEffect),e}const gc=p.forwardRef(function(t,n){const{className:r,render:i,delay:a=0,style:l,...s}=t,{imageLoadingStatus:d}=_f(),[u,f]=p.useState(a===0),m=wt();return p.useEffect(()=>(a>0?m.start(a,()=>f(!0)):f(!0),m.clear),[m,a]),Se("span",t,{state:{imageLoadingStatus:d},ref:n,props:s,stateAttributesMapping:dc,enabled:d!=="loaded"&&(a===0||u)})});process.env.NODE_ENV!=="production"&&(gc.displayName="AvatarFallback");function K(...e){return e.filter(Boolean).join(" ")}const da={xs:{root:"size-6 text-[10px]",status:"size-1.5 ring-1"},sm:{root:"size-8 text-xs",status:"size-2 ring-1.5"},md:{root:"size-10 text-sm",status:"size-2.5 ring-2"},lg:{root:"size-12 text-base",status:"size-3 ring-2"},xl:{root:"size-16 text-xl",status:"size-3.5 ring-2"},"2xl":{root:"size-20 text-2xl",status:"size-4 ring-2"}},n2={circle:"rounded-full",square:"rounded-lg"},r2={primary:"bg-primary-soft text-primary",secondary:"bg-surface-muted text-text",success:"bg-emerald-50 text-emerald-700",warning:"bg-amber-50 text-amber-700",danger:"bg-rose-50 text-rose-700",info:"bg-sky-50 text-sky-700",neutral:"bg-gray-100 text-gray-700"},vh={online:"bg-emerald-500",busy:"bg-rose-500",away:"bg-amber-500",offline:"bg-gray-400"};function xh(e){if(!e)return"";const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?t[0].slice(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()}function bh({className:e}){return c.jsxs("svg",{className:K("size-1/2 opacity-65",e),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),c.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function Qo({src:e,alt:t="Avatar",name:n,fallback:r,size:i="md",shape:a="circle",variant:l="primary",status:s,statusPosition:d="bottom-right",bordered:u=!1,delayMs:f=0,className:m,children:h,...x}){const g=da[i]??da.md,b=n2[a]??n2.circle,v=r2[l]??r2.primary,y=n?xh(n):void 0,w=r??y??c.jsx(bh,{});return c.jsxs("span",{className:K("relative inline-flex shrink-0 select-none",m),...x,children:[c.jsx(fc,{className:K("flex items-center justify-center overflow-hidden font-semibold transition-all",g.root,b,v,u&&"border border-border"),children:h||c.jsxs(c.Fragment,{children:[e&&c.jsx(hc,{src:e,alt:t||n||"Avatar",className:"size-full object-cover"}),c.jsx(gc,{delay:f,className:"flex size-full items-center justify-center uppercase tracking-wider",children:w})]})}),s&&c.jsx("span",{className:K("absolute rounded-full ring-white",g.status,vh[s],d==="bottom-right"&&(a==="circle"?"bottom-0 end-0 translate-x-[1px] translate-y-[1px]":"bottom-[-2px] end-[-2px]"),d==="top-right"&&(a==="circle"?"top-0 end-0 translate-x-[1px] -translate-y-[1px]":"top-[-2px] end-[-2px]")),"aria-hidden":"true"})]})}function Gf({children:e,max:t,size:n="md",spacing:r="tight",className:i,...a}){const l=o.Children.toArray(e).filter(o.isValidElement),s=l.length,d=r==="tight"?n==="xs"?"-space-x-1.5":n==="sm"?"-space-x-2":n==="md"?"-space-x-2.5":n==="lg"?"-space-x-3":"-space-x-4":r==="normal"?"-space-x-1.5":"space-x-1",u=t&&s>t?l.slice(0,t):l,f=t&&s>t?s-t:0,m=da[n]??da.md;return c.jsxs("div",{className:K("inline-flex items-center",d,i),role:"group","aria-label":`Groupe de ${s} avatars`,...a,children:[u.map((h,x)=>o.cloneElement(h,{key:x,size:h.props.size??n,className:K("ring-2 ring-white hover:z-10 focus:z-10 transition-transform",h.props.className)})),f>0&&c.jsxs("span",{className:K("flex items-center justify-center rounded-full bg-surface-muted border border-border text-text font-semibold ring-2 ring-white select-none shrink-0",m.root),title:`${f} autre(s) utilisateur(s)`,children:["+",f]})]})}Qo.Root=fc;Qo.Image=hc;Qo.Fallback=gc;Qo.Group=Gf;const yh={default:"bg-surface-muted text-text-muted",primary:"bg-primary-soft text-primary",secondary:"bg-surface text-text",outline:"bg-transparent text-text border border-border",success:"bg-emerald-50 text-emerald-700",warning:"bg-amber-50 text-amber-700",danger:"bg-rose-50 text-rose-700",info:"bg-sky-50 text-sky-700"},Eh={sm:"h-5 px-2 text-xs gap-1",md:"h-6 px-2.5 text-xs gap-1.5",lg:"h-7 px-3 text-xs font-semibold gap-1.5"},vc=o.forwardRef(({variant:e="default",size:t="md",pill:n=!0,dot:r=!1,check:i=!1,circle:a=!1,startIcon:l,endIcon:s,className:d,children:u,...f},m)=>c.jsxs("span",{ref:m,className:K("inline-flex items-center justify-center font-medium border-0 select-none transition-colors",n?"rounded-full":"rounded-md",yh[e],Eh[t],d),...f,children:[a||r?c.jsx("span",{className:K("rounded-full border-2 border-current shrink-0",t==="sm"?"size-2":"size-2.5"),"aria-hidden":"true"}):i?c.jsx("svg",{className:K("shrink-0",t==="sm"?"size-3":t==="lg"?"size-3.5":"size-3"),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:c.jsx("polyline",{points:"20 6 9 17 4 12"})}):null,l&&c.jsx("span",{className:"inline-flex shrink-0 items-center justify-center","aria-hidden":"true",children:l}),u&&c.jsx("span",{className:"truncate",children:u}),s&&c.jsx("span",{className:"inline-flex shrink-0 items-center justify-center","aria-hidden":"true",children:s})]}));vc.displayName="GymatraBadge";function Uf({items:e,separator:t="/",className:n,...r}){return c.jsx("nav",{"aria-label":"Breadcrumb",className:K("inline-block",n),...r,children:c.jsx("ol",{className:"flex flex-wrap items-center gap-1.5 text-sm text-text-muted m-0 p-0 list-none",children:e.map((i,a)=>{const l=a===e.length-1;return c.jsxs("li",{className:"inline-flex items-center gap-1.5",children:[!l&&i.href?c.jsxs("a",{href:i.href,onClick:i.onClick,className:"inline-flex items-center gap-1.5 rounded px-0.5 text-sm text-text-muted transition-colors hover:text-text outline-none focus-visible:outline-2 focus-visible:outline-primary",children:[i.icon,c.jsx("span",{children:i.label})]}):c.jsxs("span",{className:K("inline-flex items-center gap-1.5 px-0.5 text-sm",l?"font-medium text-text":"text-text-muted"),"aria-current":l?"page":void 0,children:[i.icon,c.jsx("span",{children:i.label})]}),!l&&c.jsx("span",{className:"text-xs text-text-subtle select-none px-0.5","aria-hidden":"true",children:t})]},a)})})})}Uf.displayName="GymatraBreadcrumb";function Wf({className:e,...t}){return c.jsx("ol",{className:K("flex flex-wrap items-center gap-1.5 text-sm text-text-muted m-0 p-0 list-none",e),...t})}Wf.displayName="GymatraBreadcrumbList";function Kf({className:e,...t}){return c.jsx("li",{className:K("inline-flex items-center gap-1.5",e),...t})}Kf.displayName="GymatraBreadcrumbItem";function qf({className:e,...t}){return c.jsx("a",{className:K("inline-flex items-center gap-1.5 rounded px-0.5 text-sm text-text-muted transition-colors hover:text-text outline-none focus-visible:outline-2 focus-visible:outline-primary",e),...t})}qf.displayName="GymatraBreadcrumbLink";function Yf({className:e,...t}){return c.jsx("span",{"aria-current":"page",className:K("inline-flex items-center gap-1.5 px-0.5 text-sm font-medium text-text",e),...t})}Yf.displayName="GymatraBreadcrumbPage";function Xf({children:e="/",className:t,...n}){return c.jsx("span",{"aria-hidden":"true",className:K("text-xs text-text-subtle select-none px-0.5",t),...n,children:e})}Xf.displayName="GymatraBreadcrumbSeparator";function Zf({className:e,...t}){return c.jsx("span",{"aria-hidden":"true",className:K("flex size-6 items-center justify-center text-text-muted select-none text-xs font-bold",e),...t,children:"…"})}Zf.displayName="GymatraBreadcrumbEllipsis";const o2={primary:"bg-primary text-white hover:bg-primary-hover active:bg-primary-active focus-visible:outline-primary shadow-none border-0",secondary:"bg-surface-muted text-text hover:bg-border/60 active:bg-border focus-visible:outline-primary shadow-none border-0",outline:"bg-transparent text-text border border-border hover:bg-surface-muted hover:text-text active:bg-border/40 focus-visible:outline-primary shadow-none",soft:"bg-primary-soft text-primary hover:bg-primary-soft/70 active:bg-primary/15 focus-visible:outline-primary shadow-none border-0",ghost:"bg-transparent text-text-muted hover:text-text hover:bg-surface-muted active:bg-border/40 focus-visible:outline-primary shadow-none border-0",danger:"bg-danger text-white hover:bg-danger/90 active:bg-danger/80 focus-visible:outline-danger shadow-none border-0",success:"bg-emerald-600 text-white hover:bg-emerald-700 active:bg-emerald-800 focus-visible:outline-emerald-600 shadow-none border-0",warning:"bg-amber-600 text-white hover:bg-amber-700 active:bg-amber-800 focus-visible:outline-amber-600 shadow-none border-0",info:"bg-sky-600 text-white hover:bg-sky-700 active:bg-sky-800 focus-visible:outline-sky-600 shadow-none border-0","outline-primary":"bg-transparent text-primary border border-primary/40 hover:bg-primary-soft hover:border-primary active:bg-primary/15 focus-visible:outline-primary shadow-none","outline-danger":"bg-transparent text-danger border border-danger/40 hover:bg-rose-50 hover:border-danger active:bg-danger/15 focus-visible:outline-danger shadow-none","outline-warning":"bg-transparent text-amber-700 border border-amber-400 hover:bg-amber-50 hover:border-amber-600 active:bg-amber-100 focus-visible:outline-amber-600 shadow-none","outline-success":"bg-transparent text-emerald-700 border border-emerald-400 hover:bg-emerald-50 hover:border-emerald-600 active:bg-emerald-100 focus-visible:outline-emerald-600 shadow-none","outline-info":"bg-transparent text-sky-700 border border-sky-400 hover:bg-sky-50 hover:border-sky-600 active:bg-sky-100 focus-visible:outline-sky-600 shadow-none"},wh={xs:"h-7 px-2.5 text-xs gap-1.5",sm:"h-8 px-3 text-xs gap-1.5",md:"h-10 px-4 text-sm gap-2",lg:"h-11 px-5 text-sm gap-2.5",xl:"h-12 px-6 text-base gap-3",icon:"size-9 p-0 justify-center text-sm gap-0"},Ch={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},$h={xs:"size-3.5",sm:"size-4",md:"size-4",lg:"size-4.5",xl:"size-5",icon:"size-4.5"};function Mh(e,t){if(t&&t!=="default"){if(e==="outline")return`outline-${t}`;if(e==="primary")return t}return e}const fa=o.forwardRef(({variant:e="primary",color:t,size:n="md",weight:r="semibold",pill:i=!1,fullWidth:a=!1,startIcon:l,endIcon:s,loading:d=!1,loadingText:u,disabled:f,children:m,className:h,type:x="button",...g},b)=>{const v=f||d,y=$h[n],w=Mh(e,t);return c.jsx("button",{ref:b,type:x,disabled:v,"aria-busy":d?!0:void 0,className:K("inline-flex cursor-pointer items-center justify-center transition-all duration-150 select-none",i?"rounded-full":n==="xs"?"rounded":n==="xl"?"rounded-lg":"rounded-md",a?"w-full":"",Ch[r],"focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50",o2[w]||o2.primary,wh[n],h),...g,children:d?c.jsxs(c.Fragment,{children:[c.jsxs("svg",{className:K("animate-spin shrink-0",y),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[c.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),c.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),u?c.jsx("span",{children:u}):m?c.jsx("span",{children:m}):null]}):c.jsxs(c.Fragment,{children:[l&&c.jsx("span",{className:K("inline-flex shrink-0 items-center justify-center",y),"aria-hidden":"true",children:l}),m&&c.jsx("span",{children:m}),s&&c.jsx("span",{className:K("inline-flex shrink-0 items-center justify-center",y),"aria-hidden":"true",children:s})]})})});fa.displayName="GymatraButton";const yr=zf("error","Base UI");function fn({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=p.useRef(e!==void 0),[a,l]=p.useState(()=>t),s=i&&e!==void 0?e:a;if(process.env.NODE_ENV!=="production"){p.useEffect(()=>{i!==(e!==void 0)&&yr([`A component is changing the ${i?"":"un"}controlled ${r} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
32
- `))},[r,n,e]);const{current:u}=p.useRef(t);p.useEffect(()=>{!i&&i2(u)!==i2(t)&&yr([`A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
33
- `))},[t])}const d=p.useCallback(u=>{i||l(u)},[]);return[s,d]}function i2(e){let t=0;const n=new WeakMap;try{return JSON.stringify(e,function(a,l){if(!(a==="_owner"&&this!=null&&typeof this=="object"&&"$$typeof"in this)){if(typeof l=="bigint")return`__bigint__:${l}`;if(l!==null&&typeof l=="object"){const s=n.get(l);if(s!==void 0)return`__object__:${s}`;n.set(l,t),t+=1}return l}})??`__top__:${typeof e}`}catch{return"__unserializable__"}}function Jf(e){const t=p.useRef(!0);t.current&&(t.current=!1,e())}function Nt(e){const t=Pt(Sh,e).current;return t.next=e,ce(t.effect),t}function Sh(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const Qf={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},no={...Qf,position:"fixed",margin:0,top:0,left:0},ei={...Qf,position:"absolute"};var ki={exports:{}},Yl={};/**
34
- * @license React
35
- * use-sync-external-store-shim.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var a2;function Nh(){if(a2)return Yl;a2=1;var e=o;function t(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,l=e.useDebugValue;function s(m,h){var x=h(),g=r({inst:{value:x,getSnapshot:h}}),b=g[0].inst,v=g[1];return a(function(){b.value=x,b.getSnapshot=h,d(b)&&v({inst:b})},[m,x,h]),i(function(){return d(b)&&v({inst:b}),m(function(){d(b)&&v({inst:b})})},[m]),l(x),x}function d(m){var h=m.getSnapshot;m=m.value;try{var x=h();return!n(m,x)}catch{return!0}}function u(m,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return Yl.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Yl}var Xl={};/**
42
- * @license React
43
- * use-sync-external-store-shim.development.js
44
- *
45
- * Copyright (c) Meta Platforms, Inc. and affiliates.
46
- *
47
- * This source code is licensed under the MIT license found in the
48
- * LICENSE file in the root directory of this source tree.
49
- */var l2;function Ph(){return l2||(l2=1,process.env.NODE_ENV!=="production"&&(function(){function e(x,g){return x===g&&(x!==0||1/x===1/g)||x!==x&&g!==g}function t(x,g){f||i.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var b=g();if(!m){var v=g();a(b,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}v=l({inst:{value:b,getSnapshot:g}});var y=v[0].inst,w=v[1];return d(function(){y.value=b,y.getSnapshot=g,n(y)&&w({inst:y})},[x,b,g]),s(function(){return n(y)&&w({inst:y}),x(function(){n(y)&&w({inst:y})})},[x]),u(b),b}function n(x){var g=x.getSnapshot;x=x.value;try{var b=g();return!a(x,b)}catch{return!0}}function r(x,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=o,a=typeof Object.is=="function"?Object.is:e,l=i.useState,s=i.useEffect,d=i.useLayoutEffect,u=i.useDebugValue,f=!1,m=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Xl.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Xl}var s2;function xc(){return s2||(s2=1,process.env.NODE_ENV==="production"?ki.exports=Nh():ki.exports=Ph()),ki.exports}var Da=xc(),Hi={exports:{}},Zl={};/**
50
- * @license React
51
- * use-sync-external-store-shim/with-selector.production.js
52
- *
53
- * Copyright (c) Meta Platforms, Inc. and affiliates.
54
- *
55
- * This source code is licensed under the MIT license found in the
56
- * LICENSE file in the root directory of this source tree.
57
- */var c2;function Rh(){if(c2)return Zl;c2=1;var e=o,t=xc();function n(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,a=e.useRef,l=e.useEffect,s=e.useMemo,d=e.useDebugValue;return Zl.useSyncExternalStoreWithSelector=function(u,f,m,h,x){var g=a(null);if(g.current===null){var b={hasValue:!1,value:null};g.current=b}else b=g.current;g=s(function(){function y(M){if(!w){if(w=!0,E=M,M=h(M),x!==void 0&&b.hasValue){var S=b.value;if(x(S,M))return C=S}return C=M}if(S=C,r(E,M))return S;var P=h(M);return x!==void 0&&x(S,P)?(E=M,S):(E=M,C=P)}var w=!1,E,C,$=m===void 0?null:m;return[function(){return y(f())},$===null?void 0:function(){return y($())}]},[f,m,h,x]);var v=i(u,g[0],g[1]);return l(function(){b.hasValue=!0,b.value=v},[v]),d(v),v},Zl}var Jl={};/**
58
- * @license React
59
- * use-sync-external-store-shim/with-selector.development.js
60
- *
61
- * Copyright (c) Meta Platforms, Inc. and affiliates.
62
- *
63
- * This source code is licensed under the MIT license found in the
64
- * LICENSE file in the root directory of this source tree.
65
- */var u2;function Ih(){return u2||(u2=1,process.env.NODE_ENV!=="production"&&(function(){function e(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=o,n=xc(),r=typeof Object.is=="function"?Object.is:e,i=n.useSyncExternalStore,a=t.useRef,l=t.useEffect,s=t.useMemo,d=t.useDebugValue;Jl.useSyncExternalStoreWithSelector=function(u,f,m,h,x){var g=a(null);if(g.current===null){var b={hasValue:!1,value:null};g.current=b}else b=g.current;g=s(function(){function y(M){if(!w){if(w=!0,E=M,M=h(M),x!==void 0&&b.hasValue){var S=b.value;if(x(S,M))return C=S}return C=M}if(S=C,r(E,M))return S;var P=h(M);return x!==void 0&&x(S,P)?(E=M,S):(E=M,C=P)}var w=!1,E,C,$=m===void 0?null:m;return[function(){return y(f())},$===null?void 0:function(){return y($())}]},[f,m,h,x]);var v=i(u,g[0],g[1]);return l(function(){b.hasValue=!0,b.value=v},[v]),d(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Jl}var d2;function Fh(){return d2||(d2=1,process.env.NODE_ENV==="production"?Hi.exports=Rh():Hi.exports=Ih()),Hi.exports}var Th=Fh();const $s=[];let Ms;function Oh(){return Ms}function zh(e){$s.push(e)}function ti(e){const t=(n,r)=>{const i=Pt(Ah).current;let a;try{Ms=i;for(const l of $s)l.before(i);a=e(n,r);for(const l of $s)l.after(i);i.didInitialize=!0}finally{Ms=void 0}return a};return t.displayName=e.displayName||e.name,t}function ka(e){return p.forwardRef(ti(e))}function Ah(){return{didInitialize:!1}}const jh=ja(19),Dh=jh?Hh:Lh;function e3(e,t,n,r,i){return Dh(e,t,n,r,i)}function kh(e,t,n,r,i){const a=p.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return Da.useSyncExternalStore(e.subscribe,a,a)}zh({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){const r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const i of e.syncHooks)n.add(i.store);const r=[];for(const i of n)r.push(i.subscribe(t));return()=>{for(const i of r)i()}}),Da.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Hh(e,t,n,r,i){const a=Oh();if(!a)return kh(e,t,n,r,i);const l=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[l],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function Lh(e,t,n,r,i){return Th.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,a=>t(a,n,r,i))}class Vh{constructor(t){Be(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));Be(this,"getSnapshot",()=>this.state);this.state=t,this.listeners=new Set,this.updateTick=0}static create(t){return new this(t)}setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,r,i){return e3(this,t,n,r,i)}}class Cr extends Vh{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}useSyncedValue(t,n){p.useDebugValue(t);const r=this;ce(()=>{r.state[t]!==n&&r.set(t,n)},[r,t,n])}useSyncedValueWithCleanup(t,n){const r=this;ce(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){const n=this;if(process.env.NODE_ENV!=="production"){p.useDebugValue(t,l=>Object.keys(l));const i=p.useRef(Object.keys(t)).current,a=Object.keys(t);(i.length!==a.length||i.some((l,s)=>l!==a[s]))&&console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.")}const r=Object.values(t);ce(()=>{n.update(t)},[n,...r])}useControlledProp(t,n){p.useDebugValue(t);const r=this,i=n!==void 0;if(ce(()=>{i&&!Object.is(r.state[t],n)&&r.setState({...r.state,[t]:n})},[r,t,n,i]),process.env.NODE_ENV!=="production"){const a=this.controlledValues??(this.controlledValues=new Map);a.has(t)||a.set(t,i);const l=a.get(t);l!==void 0&&l!==i&&console.error(`A component is changing the ${l?"":"un"}controlled state of ${t.toString()} to be ${l?"un":""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`)}}select(t,n,r,i){const a=this.selectors[t];return a(this.state,n,r,i)}useState(t,n,r,i){return p.useDebugValue(t),e3(this,this.selectors[t],n,r,i)}useContextCallback(t,n){p.useDebugValue(t);const r=de(n??Qe);this.context[t]=r}useStateSetter(t){const n=p.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let i=r(this.state);return n(i,i,this),this.subscribe(a=>{const l=r(a);if(!Object.is(i,l)){const s=i;i=l,n(l,s,this)}})}}function Ha(){return typeof window<"u"}function Gt(e){return bc(e)?(e.nodeName||"").toLowerCase():"#document"}function pt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kn(e){var t;return(t=(bc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bc(e){return Ha()?e instanceof Node||e instanceof pt(e).Node:!1}function tt(e){return Ha()?e instanceof Element||e instanceof pt(e).Element:!1}function at(e){return Ha()?e instanceof HTMLElement||e instanceof pt(e).HTMLElement:!1}function nr(e){return!Ha()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pt(e).ShadowRoot}function ni(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function _h(e){return/^(table|td|th)$/.test(Gt(e))}function La(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Bh=/transform|translate|scale|rotate|perspective|filter/,Gh=/paint|layout|strict|content/,fr=e=>!!e&&e!=="none";let Ql;function yc(e){const t=tt(e)?Qt(e):e;return fr(t.transform)||fr(t.translate)||fr(t.scale)||fr(t.rotate)||fr(t.perspective)||!Ec()&&(fr(t.backdropFilter)||fr(t.filter))||Bh.test(t.willChange||"")||Gh.test(t.contain||"")}function Uh(e){let t=wn(e);for(;at(t)&&!In(t);){if(yc(t))return t;if(La(t))return null;t=wn(t)}return null}function Ec(){return Ql==null&&(Ql=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ql}function In(e){return/^(html|body|#document)$/.test(Gt(e))}function Qt(e){return pt(e).getComputedStyle(e)}function Va(e){return tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wn(e){if(Gt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nr(e)&&e.host||Kn(e);return nr(t)?t.host:t}function t3(e){const t=wn(e);return In(t)?(e.ownerDocument||e).body:at(t)&&ni(t)?t:t3(t)}function Xr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=t3(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),l=pt(i);if(a){const s=Ss(l);return t.concat(l,l.visualViewport||[],ni(i)?i:[],s&&n?Xr(s):[])}else return t.concat(i,Xr(i,[],n))}function Ss(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Fn(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}function Xe(e){return(e==null?void 0:e.ownerDocument)||document}function qe(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function wc(){const[,e]=p.useState({});return p.useCallback(()=>{e({})},[])}function Wh(){if(typeof navigator>"u")return{userAgent:"",platform:"",maxTouchPoints:0};if(process.env.NODE_ENV!=="production"){const e=navigator.userAgentData;if(e&&Array.isArray(e.brands))return{userAgent:e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "),platform:e.platform??navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}return{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:Kh,platform:qh,maxTouchPoints:Yh}=Wh(),_a=Kh.toLowerCase(),Oo=qh.toLowerCase(),ri=/^i(os$|p)/.test(Oo)||Oo==="macintel"&&Yh>1,f2="android",ma=Oo===f2||_a.includes(f2),Cc=!ri&&Oo.startsWith("mac");Oo.startsWith("win");const Xh=Cc||ri;var Rf;const An=typeof CSS<"u"&&!!((Rf=CSS.supports)!=null&&Rf.call(CSS,"-webkit-backdrop-filter:none")),m2=!An&&_a.includes("firefox");!An&&_a.includes("chrom");const n3=Xh,$c=/jsdom|happydom/.test(_a);function Tt(e){e.preventDefault(),e.stopPropagation()}function Zh(e){return"nativeEvent"in e}function Zr(e){return e.pointerType===""&&e.isTrusted?!0:ma&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Mc(e){return $c?!1:!ma&&e.width===0&&e.height===0||e.type==="pointerdown"&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"&&(ma||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Qn(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Jh(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function Kt(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function Re(e,t){var r;if(!e||!t)return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e.contains(t))return!0;if(n&&nr(n)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function Bn(e,t){let n=e;for(;n;){if(tt(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(nr(n)?n.host:null)}return null}function Ct(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}const Ns="data-base-ui-focusable",r3="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",hr="ArrowLeft",gr="ArrowRight",Sc="ArrowUp",Ba="ArrowDown",Qh="data-open",e6="data-closed",t6="data-anchor-hidden",o3="data-popup-open",n6="data-pressed",r6={[o3]:""},o6={[o3]:"",[n6]:""},i6={[Qh]:""},a6={[e6]:""},l6={[t6]:""},ro={open(e){return e?r6:null}},zo={open(e){return e?o6:null}},ar={open(e){return e?i6:a6},anchorHidden(e){return e?l6:null}},oi={...ar,...ln},Ps="data-trigger-disabled";function pa(e,t){if(!tt(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute(Ps);for(const[,r]of t.entries())if(Re(r,n))return!r.hasAttribute(Ps);return!1}function es(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function s6(e){return e.matches("html,body")}function ii(e){return at(e)&&e.matches(r3)}function i3(e){return Bn(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${r3}`)!=null}function Rs(e){return e?e.getAttribute("role")==="combobox"&&ii(e):!1}function c6(e){if(!e||$c)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function ha(e){return e?e.hasAttribute(Ns)?e:e.querySelector(`[${Ns}]`)||e:null}function u6(e,t){return t!=null&&!Qn(t)?0:typeof e=="function"?e():e}function Er(e,t,n){const r=u6(e,n);return typeof r=="number"?r:r==null?void 0:r[t]}function p2(e){return typeof e=="function"?e():e}function a3(e,t){return t||e==="click"||e==="mousedown"}function d6(e){return(e==null?void 0:e.includes("mouse"))&&e!=="mousedown"}function $e(e,t,n,r){let i=!1,a=!1;const l=r??We;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...l}}function Nc(e,t,n){const r=n??We;return{reason:e,event:t??new Event("base-ui"),...r}}const mt="none",Gn="trigger-press",Ot="trigger-hover",Hr="trigger-focus",ai="outside-press",Tn="item-press",Ga="close-press",h2="clear-press",f6="chip-remove-press",Lr="input-change",Pn="input-clear",l3="input-press",zn="focus-out",$r="escape-key",rr="list-navigation",Pc="keyboard",s3="pointer",Rc="cancel-open",Dr="sibling-open",c3="disabled",g2="missing",v2="initial",oo="imperative-action",m6="window-resize",Ic=p.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new En,currentIdRef:{current:null},currentContextRef:{current:null}});process.env.NODE_ENV!=="production"&&(Ic.displayName="FloatingDelayGroupContext");function p6(e,t){e.current=t.current}function h6(e){const{children:t,delay:n,timeoutMs:r=0}=e,i=p.useRef(n),a=p.useRef(n),l=p.useRef(null),s=p.useRef(null),d=wt();return ce(()=>{if(a.current=n,!l.current){i.current=n;return}i.current={open:Er(i.current,"open"),close:Er(n,"close")}},[n,l,i,a]),c.jsx(Ic.Provider,{value:p.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:l,timeoutMs:r,currentContextRef:s,timeout:d}),[r,d]),children:t})}function g6(e,t={open:!1}){const{open:n}=t,r=e.useState("floatingId"),i=p.useContext(Ic),{currentIdRef:a,delayRef:l,timeoutMs:s,initialDelayRef:d,currentContextRef:u,hasProvider:f,timeout:m}=i,[h,x]=p.useState(!1),g=p.useRef(n);return ce(()=>{g.current=n},[n]),ce(()=>{function b(){var v;(v=u.current)==null||v.setIsInstantPhase(!1),a.current=null,u.current=null,l.current=d.current,m.clear()}if(a.current&&!n&&a.current===r){if(x(!1),s){const v=r;return m.start(s,()=>{e.select("open")||a.current&&a.current!==v||b()}),()=>{(g.current||a.current!==v)&&m.clear()}}b()}},[n,r,a,l,s,d,u,m,e]),ce(()=>{if(!n)return;const b=u.current,v=a.current;m.clear(),u.current={onOpenChange:e.setOpen,setIsInstantPhase:x},a.current=r,l.current={open:0,close:Er(d.current,"close")},v!==null&&v!==r?(x(!0),b==null||b.setIsInstantPhase(!0),b==null||b.onOpenChange(!1,$e(mt))):(x(!1),b==null||b.setIsInstantPhase(!1))},[n,r,e,a,l,d,u,m]),ce(()=>()=>{if(a.current===r){if(u.current=null,!g.current)return;a.current=null,p6(l,d),m.clear()}},[u,a,l,r,d,m]),p.useMemo(()=>({activeIdRef:a,hasProvider:f,delayRef:l,isInstantPhase:h}),[a,f,l,h])}const Un=p.forwardRef(function(t,n){const[r,i]=p.useState();ce(()=>{n3&&An&&i("button")},[]);const a={tabIndex:0,role:r};return c.jsx("span",{...t,ref:n,style:no,"aria-hidden":r?void 0:!0,...a,"data-base-ui-focus-guard":""})});process.env.NODE_ENV!=="production"&&(Un.displayName="FocusGuard");const Jr=Math.min,Ln=Math.max,Qr=Math.round,mr=Math.floor,Vn=e=>({x:e,y:e}),v6={left:"right",right:"left",bottom:"top",top:"bottom"};function u3(e,t,n){return Ln(e,Jr(t,n))}function or(e,t){return typeof e=="function"?e(t):e}function rn(e){return e.split("-")[0]}function On(e){return e.split("-")[1]}function Fc(e){return e==="x"?"y":"x"}function Tc(e){return e==="y"?"height":"width"}function dn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Oc(e){return Fc(dn(e))}function x6(e,t,n){n===void 0&&(n=!1);const r=On(e),i=Oc(e),a=Tc(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=ga(l)),[l,ga(l)]}function b6(e){const t=ga(e);return[Is(e),t,Is(t)]}function Is(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const x2=["left","right"],b2=["right","left"],y6=["top","bottom"],E6=["bottom","top"];function w6(e,t,n){switch(e){case"top":case"bottom":return n?t?b2:x2:t?x2:b2;case"left":case"right":return t?y6:E6;default:return[]}}function C6(e,t,n,r){const i=On(e);let a=w6(rn(e),n==="start",r);return i&&(a=a.map(l=>l+"-"+i),t&&(a=a.concat(a.map(Is)))),a}function ga(e){const t=rn(e);return v6[t]+e.slice(t.length)}function $6(e){var t,n,r,i;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(i=e.left)!=null?i:0}}function d3(e){return typeof e!="number"?$6(e):{top:e,right:e,bottom:e,left:e}}function Ao(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Li(e,t,n){return Math.floor(e/t)!==n}function _n(e,t){return t<0||t>=e.length}function na(e,t){return Jt(e.current,{disabledIndices:t})}function Fs(e,t){return Jt(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function M6(e,t,n){const{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:l,minIndex:s,maxIndex:d}=n,u=()=>Jt(e,{startingIndex:t,decrement:r,disabledIndices:l});let f,m=!1;if(!i)f=r?Math.max(s,u()):Math.min(d,u());else if(r?t<=s:t>=d){const h=r?-1:e.length;a&&t!==h?f=-1:(f=r?d:s,m=!0)}else f=u();return{index:_n(e,f)?-1:f,wrapped:m}}function Jt(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&er(e,a,r));return a}function S6(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:l,disabledIndices:s,minIndex:d,maxIndex:u,prevIndex:f,stopEvent:m=!1}){let h=f,x;if(t.key===Sc?x="up":t.key===Ba&&(x="down"),x){const g=[],b=[];let v=!1,y=0;{let N=null,R=-1;e.forEach((z,_)=>{if(z==null)return;y+=1;const F=Bn(z,'[role="row"]');F&&(v=!0),(F!==N||R===-1)&&(N=F,R+=1,g[R]=[]),g[R].push(_),b[_]=R})}let w=!1,E=0;if(v)for(const N of g){const R=N.length;R>E&&(E=R),R!==l&&(w=!0)}const C=w&&y<e.length,$=E||l,M=N=>{if(!w||f===-1)return;const R=b[f];if(R==null)return;const z=g[R].indexOf(f),_=N==="up"?-1:1;for(let F=R+_,O=0;O<g.length;O+=1,F+=_){if(F<0||F>=g.length){if(!r||C)return;if(F=F<0?g.length-1:0,i){const V=Math.min(z,g[F].length-1),J=g[F][V]??g[F][0],U=i(t,f,J);F=b[U]??F}}const j=g[F];for(let V=Math.min(z,j.length-1);V>=0;V-=1){const J=j[V];if(!er(e,J,s))return J}}},S=N=>{if(!C||f===-1)return;const R=f%$,z=N==="up"?-$:$,_=u-u%$,F=mr(u/$)+1;for(let O=f-R+z,j=0;j<F;j+=1,O+=z){if(O<0||O>u){if(!r)return;O=O<0?_:0}const V=Math.min(O+$-1,u);for(let J=Math.min(O+R,V);J>=O;J-=1)if(!er(e,J,s))return J}};m&&Tt(t);const P=M(x)??S(x);if(P!==void 0)h=P;else if(f===-1)h=x==="up"?u:d;else if(h=Jt(e,{startingIndex:f,amount:$,decrement:x==="up",disabledIndices:s}),r){if(x==="up"&&(f-$<d||h<0)){const N=f%$,R=u%$,z=u-(R-N);R===N?h=u:h=R>N?z:z-$,i&&(h=i(t,f,h))}x==="down"&&f+$>u&&(h=Jt(e,{startingIndex:f%$-$,amount:$,disabledIndices:s}),i&&(h=i(t,f,h)))}_n(e,h)&&(h=f)}if(n==="both"){const g=mr(f/l);t.key===(a?hr:gr)&&(m&&Tt(t),f%l!==l-1?(h=Jt(e,{startingIndex:f,disabledIndices:s}),r&&Li(h,l,g)&&(h=Jt(e,{startingIndex:f-f%l-1,disabledIndices:s}),i&&(h=i(t,f,h)))):r&&(h=Jt(e,{startingIndex:f-f%l-1,disabledIndices:s}),i&&(h=i(t,f,h))),Li(h,l,g)&&(h=f)),t.key===(a?gr:hr)&&(m&&Tt(t),f%l!==0?(h=Jt(e,{startingIndex:f,decrement:!0,disabledIndices:s}),r&&Li(h,l,g)&&(h=Jt(e,{startingIndex:f+(l-f%l),decrement:!0,disabledIndices:s}),i&&(h=i(t,f,h)))):r&&(h=Jt(e,{startingIndex:f+(l-f%l),decrement:!0,disabledIndices:s}),i&&(h=i(t,f,h))),Li(h,l,g)&&(h=f));const b=mr(u/l)===g;_n(e,h)&&(r&&b?(h=t.key===(a?gr:hr)?u:Jt(e,{startingIndex:f-f%l-1,disabledIndices:s}),i&&(h=i(t,f,h))):h=f)}return h}function er(e,t,n){if(typeof n=="function"?n(t):(n==null?void 0:n.includes(t))??!1)return!0;const i=e[t];return i?!Ua(i)||i.matches(":disabled")?!0:!n&&(i.hasAttribute("disabled")||i.getAttribute("aria-disabled")==="true"):!1}function N6(e){return e.visibility==="hidden"||e.visibility==="collapse"}function Ua(e,t=e?Qt(e):null){return!e||!e.isConnected||!t||N6(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}const P6='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function R6(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return nr(n)?n.host:null}function Ts(e){for(const t of Array.from(e.children))if(Gt(t)==="summary")return t;return null}function I6(e,t){const n=Ts(t);return!!n&&(e===n||Re(n,e))}function f3(e){const t=e?Gt(e):"";return e!=null&&e.matches(P6)&&(t!=="summary"||e.parentElement!=null&&Gt(e.parentElement)==="details"&&Ts(e.parentElement)===e)&&(t!=="details"||Ts(e)==null)&&(t!=="input"||e.type!=="hidden")}function zc(e){if(!f3(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=R6(t)){const n=t!==e,r=Gt(t)==="slot";if(t.hasAttribute("inert")||n&&Gt(t)==="details"&&!t.open&&!I6(e,t)||t.hasAttribute("hidden")||!r&&!F6(t,n))return!1}return!0}function F6(e,t){const n=Qt(e);return t?n.display!=="none":Ua(e,n)}function m3(e){const t=e.tabIndex;if(t<0){const n=Gt(e);if(n==="details"||n==="audio"||n==="video"||at(e)&&e.isContentEditable)return 0}return t}function ts(e){if(Gt(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function p3(e,t){const n=ts(e);if(!n)return!0;const r=t.find(i=>{const a=ts(i);return(a==null?void 0:a.name)===n.name&&a.form===n.form&&a.checked});return r?r===n:t.find(i=>{const a=ts(i);return(a==null?void 0:a.name)===n.name&&a.form===n.form})===n}function h3(e){if(at(e)&&Gt(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return at(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Ac(e,t){h3(e).forEach(n=>{f3(n)&&t.push(n),Ac(n,t)})}function g3(e,t,n){h3(e).forEach(r=>{at(r)&&r.matches(t)&&n.push(r),g3(r,t,n)})}function Wa(e){return zc(e)&&m3(e)>=0}function v3(e){const t=[];return Ac(e,t),t.filter(zc)}function Ka(e){const t=v3(e);return t.filter(n=>m3(n)>=0&&p3(n,t))}function x3(e,t){const n=Ka(e),r=n.length;if(r===0)return;const i=Kt(Xe(e)),a=n.indexOf(i),l=a===-1?t===1?0:r-1:a+t;return n[l]}function b3(e){return x3(Xe(e).body,1)||e}function y3(e){return x3(Xe(e).body,-1)||e}function T6(e,t,n){if(!e)return null;const r=[];Ac(Xe(e).body,r);const i=r.indexOf(e);if(i===-1)return null;const a=r.filter(zc);for(let l=1;l<r.length;l+=1){const s=r[(i+t*l+r.length)%r.length];if(!Re(n,s)&&Wa(s)&&p3(s,a))return s}return r[i]}function Vr(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Re(n,r)}function O6(e){Ka(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function y2(e){const t=[];g3(e,"[data-tabindex]",t),t.forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function ir(e,t,n=!0){return e.filter(i=>i.parentId===t).flatMap(i=>{var a;return[...!n||(a=i.context)!=null&&a.open?[i]:[],...ir(e,i.id,n)]})}function E2(e,t){var i;let n=[],r=(i=e.find(a=>a.id===t))==null?void 0:i.parentId;for(;r;){const a=e.find(l=>l.id===r);r=a==null?void 0:a.parentId,a&&(n=n.concat(a))}return n}function _r(e){return`data-base-ui-${e}`}let Vi=0;function ra(e,t={}){const{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Vi);function a(){i&&!i()||e==null||e.focus({preventScroll:n})}if(r)return a(),Qe;const l=requestAnimationFrame(a);return Vi=l,()=>{Vi===l&&(cancelAnimationFrame(l),Vi=0)}}const w2="data-base-ui-inert";let $o=new WeakMap,_i=new WeakSet,Mo=new WeakMap,ns=0;function E3(e){return e?nr(e)?e.host:E3(e.parentNode):null}const C2=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=E3(n);return e.contains(r)?r:null}).filter(n=>n!=null),$2=e=>{const t=new Set;return e.forEach(n=>{let r=n;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},M2=(e,t,n)=>{const r=[],i=a=>{!a||n.has(a)||Array.from(a.children).forEach(l=>{Gt(l)!=="script"&&(t.has(l)?i(l):r.push(l))})};return i(e),r};function z6(e,t,n,{mark:r=!0}){const i=C2(t,e),a=r?M2(t,$2(i),new Set(i)):[],l=[],s=[];if(n){const d=C2(t,Array.from(t.querySelectorAll("[aria-live]"))),u=i.concat(d);M2(t,$2(u),new Set(u)).forEach(m=>{const h=m.getAttribute("aria-hidden"),x=h!==null&&h!=="false",g=($o.get(m)||0)+1;$o.set(m,g),l.push(m),g===1&&x&&_i.add(m),x||m.setAttribute("aria-hidden","true")})}return r&&a.forEach(d=>{const u=(Mo.get(d)||0)+1;Mo.set(d,u),s.push(d),u===1&&d.setAttribute(w2,"")}),ns+=1,()=>{l.forEach(d=>{const u=($o.get(d)||0)-1;$o.set(d,u),u||(_i.has(d)||d.removeAttribute("aria-hidden"),_i.delete(d))}),r&&s.forEach(d=>{const u=(Mo.get(d)||0)-1;Mo.set(d,u),u||d.removeAttribute(w2)}),ns-=1,ns||($o=new WeakMap,_i=new WeakSet,Mo=new WeakMap)}}function S2(e,t={}){const{ariaHidden:n=!1,mark:r=!0}=t,i=Xe(e[0]).body;return z6(e,i,n,{mark:r})}let N2=0;function A6(e,t="mui"){const n=p.useRef(void 0),r=wc(),i=e??n.current;return p.useEffect(()=>{n.current==null&&(N2+=1,n.current=`${t}-${N2}`,e==null&&r())},[e,t,r]),i}const P2=Vt.useId;function li(e,t){if(P2!==void 0){const n=P2();return e??(t?`${t}-${n}`:n)}return A6(e,t)}const j6=500,w3=500,D6={style:{transition:"none"}},jc="data-base-ui-click-trigger",Dc={fallbackAxisSide:"none"},kc={fallbackAxisSide:"end"},k6={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Hc=p.createContext(null);process.env.NODE_ENV!=="production"&&(Hc.displayName="PortalContext");const C3=()=>p.useContext(Hc),H6=_r("portal");function $3(e={}){const{ref:t,container:n,componentProps:r=We,elementProps:i}=e,a=li(),l=C3(),s=l==null?void 0:l.portalNode,[d,u]=p.useState(null),[f,m]=p.useState(null),h=de(v=>{v!==null&&m(v)}),x=p.useRef(null);ce(()=>{if(n===null){x.current&&(x.current=null,m(null),u(null));return}const v=(n&&(bc(n)?n:n.current))??s??document.body;if(v==null){x.current&&(x.current=null,m(null),u(null));return}x.current!==v&&(x.current=v,m(null),u(v))},[n,s]);const g=Se("div",r,{ref:[t,h],props:[{id:a,[H6]:""},i]}),b=d&&g?on.createPortal(g,d):null;return{node:f,nodeId:p.isValidElement(g)?g.props.id:void 0,subtree:b}}const io=p.forwardRef(function(t,n){const{render:r,className:i,style:a,children:l,container:s,portalOwnerRole:d,...u}=t,{node:f,nodeId:m,subtree:h}=$3({container:s,ref:n,componentProps:t,elementProps:u}),x=p.useRef(null),g=p.useRef(null),b=p.useRef(null),v=p.useRef(null),[y,w]=p.useState(null),E=p.useRef(!1),C=y==null?void 0:y.modal,$=y==null?void 0:y.open,M=!!y&&!y.modal&&y.open&&!!f;p.useEffect(()=>{if(!f||C)return;function P(N){f&&N.relatedTarget&&Vr(N)&&(N.type==="focusin"?E.current&&(y2(f),E.current=!1):(O6(f),E.current=!0))}return Fn(qe(f,"focusin",P,!0),qe(f,"focusout",P,!0))},[f,C]),ce(()=>{!f||$!==!0||!E.current||(y2(f),E.current=!1)},[$,f]);const S=p.useMemo(()=>({beforeOutsideRef:x,afterOutsideRef:g,beforeInsideRef:b,afterInsideRef:v,portalNode:f,setFocusManagerState:w}),[f]);return c.jsxs(p.Fragment,{children:[h,c.jsxs(Hc.Provider,{value:S,children:[M&&f&&c.jsx(Un,{"data-type":"outside",ref:x,onFocus:P=>{var N;if(Vr(P,f))(N=b.current)==null||N.focus();else{const R=y?y.domReference:null,z=y3(R);z==null||z.focus()}}}),M&&f&&c.jsx("span",{role:d,"aria-owns":m,style:k6}),f&&on.createPortal(l,f),M&&f&&c.jsx(Un,{"data-type":"outside",ref:g,onFocus:P=>{var N;if(Vr(P,f))(N=v.current)==null||N.focus();else{const R=y?y.domReference:null,z=b3(R);z==null||z.focus(),y!=null&&y.closeOnFocusOut&&(y==null||y.onOpenChange(!1,$e(zn,P.nativeEvent)))}}})]})]})});process.env.NODE_ENV!=="production"&&(io.displayName="FloatingPortal");function M3(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}class Lc{constructor(){Be(this,"nodesRef",{current:[]});Be(this,"events",M3())}addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const Vc=p.createContext(null);process.env.NODE_ENV!=="production"&&(Vc.displayName="FloatingNodeContext");const _c=p.createContext(null);process.env.NODE_ENV!=="production"&&(_c.displayName="FloatingTreeContext");const lr=()=>{var e;return((e=p.useContext(Vc))==null?void 0:e.id)||null},qn=e=>{const t=p.useContext(_c);return e??t};function qa(e){const t=li(),n=qn(e),r=lr();return ce(()=>{if(!t)return;const i={id:t,parentId:r};return n==null||n.addNode(i),()=>{n==null||n.removeNode(i)}},[n,t,r]),t}function Bc(e){const{children:t,id:n}=e,r=lr();return c.jsx(Vc.Provider,{value:p.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function Gc(e){const{children:t,externalTree:n}=e,r=Pt(()=>n??new Lc).current;return c.jsx(_c.Provider,{value:r,children:t})}function L6(e,t){const n=pt(Ct(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||(Zr(e)?"keyboard":t||"mouse"):"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const R2=20;let Jn=[];function Uc(){Jn=Jn.filter(e=>{var t;return(t=e.deref())==null?void 0:t.isConnected})}function I2(e){Uc(),e&&Gt(e)!=="body"&&(Jn.push(new WeakRef(e)),Jn.length>R2&&(Jn=Jn.slice(-R2)))}function F2(){var e;return Uc(),(e=Jn[Jn.length-1])==null?void 0:e.deref()}function V6(e){return e?Wa(e)?e:Ka(e)[0]||e:null}function T2(e){var i;if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!((i=e.getAttribute("role"))!=null&&i.includes("dialog")))return;const n=v3(e).filter(a=>{const l=a.getAttribute("data-tabindex")||"";return Wa(a)||a.hasAttribute("data-tabindex")&&!l.startsWith("-")}),r=e.getAttribute("tabindex");n.length===0?r!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(r!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function si(e){const{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:l,restoreFocus:s=!1,modal:d=!0,closeOnFocusOut:u=!0,openInteractionType:f="",nextFocusableElement:m,previousFocusableElement:h,beforeContentFocusGuardRef:x,externalTree:g,getInsideElements:b}=e,v=t.useState("open"),y=t.useState("domReferenceElement"),w=t.useState("floatingElement"),{events:E,dataRef:C}=t.context,$=de(()=>{var re;return(re=C.current.floatingContext)==null?void 0:re.nodeId}),M=i===!1,S=Rs(y)&&M,P=Nt(i),N=Nt(a),R=Nt(l),z=Nt(f),_=Nt(v),F=qn(g),O=C3(),j=p.useRef(!1),V=p.useRef(!1),J=p.useRef(!1),U=p.useRef(null),G=p.useRef(""),I=p.useRef(""),A=p.useRef(null),T=p.useRef(null),q=an(A,x,O==null?void 0:O.beforeInsideRef),D=an(T,O==null?void 0:O.afterInsideRef),B=wt(),W=wt(),X=Yr(),ee=O!=null,Q=ha(w),ie=de((re=Q)=>re?Ka(re):[]),se=de(()=>(b==null?void 0:b().filter(re=>re!=null))??[]);p.useEffect(()=>{if(r||!d)return;function re(ue){ue.key==="Tab"&&Re(Q,Kt(Xe(Q)))&&ie().length===0&&!S&&Tt(ue)}const fe=Xe(Q);return qe(fe,"keydown",re)},[r,Q,d,S,ie]),p.useEffect(()=>{if(r||!v)return;const re=Xe(Q);function fe(){J.current=!1}function ue(me){const le=Ct(me),we=se(),Y=Re(w,le)||Re(y,le)||Re(O==null?void 0:O.portalNode,le)||we.some(ae=>ae===le||Re(ae,le));J.current=!Y,I.current=me.pointerType||"keyboard",Bn(le,`[${jc}]`)&&(V.current=!0,W.start(0,()=>{V.current=!1}))}function ne(){I.current="keyboard"}return Fn(qe(re,"pointerdown",ue,!0),qe(re,"pointerup",fe,!0),qe(re,"pointercancel",fe,!0),qe(re,"keydown",ne,!0),fe)},[r,w,y,Q,v,O,W,se]),p.useEffect(()=>{if(r||!u)return;const re=Xe(Q);function fe(){V.current=!0,W.start(0,()=>{V.current=!1})}function ue(we){const Y=Ct(we);Wa(Y)&&(U.current=Y)}function ne(we){const Y=we.relatedTarget,ae=we.currentTarget,Pe=Ct(we);d&&Y==null&&Pe!=null&&Re(w,Pe)&&I2(Pe),queueMicrotask(()=>{const je=$(),te=t.context.triggerElements,oe=se(),be=(Y==null?void 0:Y.hasAttribute(_r("focus-guard")))&&[A.current,T.current,O==null?void 0:O.beforeInsideRef.current,O==null?void 0:O.afterInsideRef.current,O==null?void 0:O.beforeOutsideRef.current,O==null?void 0:O.afterOutsideRef.current,Dn(h),Dn(m)].includes(Y),xe=!(Re(y,Y)||Re(w,Y)||Re(Y,w)||Re(O==null?void 0:O.portalNode,Y)||oe.some(Ce=>Ce===Y||Re(Ce,Y))||te.hasMatchingElement(Ce=>Re(Ce,Y))||be||F&&(ir(F.nodesRef.current,je).find(Ce=>{var Te,Oe;return Re((Te=Ce.context)==null?void 0:Te.elements.floating,Y)||Re((Oe=Ce.context)==null?void 0:Oe.elements.domReference,Y)})||E2(F.nodesRef.current,je).find(Ce=>{var Te,Oe,He;return[(Te=Ce.context)==null?void 0:Te.elements.floating,ha((Oe=Ce.context)==null?void 0:Oe.elements.floating)].includes(Y)||((He=Ce.context)==null?void 0:He.elements.domReference)===Y})));if(ae===y&&Q&&T2(Q),s&&ae!==y&&!Ua(Pe)&&Kt(re)===re.body){if(at(Q)&&(Q.focus(),s==="popup")){X.request(()=>{Q.focus()});return}const Ce=ie(),Te=U.current,Oe=(Te&&Ce.includes(Te)?Te:null)||Ce[Ce.length-1]||Q;at(Oe)&&Oe.focus()}if(C.current.insideReactTree){C.current.insideReactTree=!1;return}(S||!d)&&Y&&xe&&!V.current&&(S||Y!==F2())&&(j.current=!0,t.setOpen(!1,$e(zn,we)))})}function me(){J.current||(C.current.insideReactTree=!0,B.start(0,()=>{C.current.insideReactTree=!1}))}const le=at(y)?y:null;if(!(!w&&!le))return Fn(le&&qe(le,"focusout",ne),le&&qe(le,"pointerdown",fe),w&&qe(w,"focusin",ue),w&&qe(w,"focusout",ne),w&&O&&qe(w,"focusout",me,!0))},[r,y,w,Q,d,F,O,t,u,s,ie,S,$,C,B,W,X,m,h,se]),p.useEffect(()=>{var ae,Pe,je;if(r||!w||!v)return;const re=Array.from(((ae=O==null?void 0:O.portalNode)==null?void 0:ae.querySelectorAll(`[${_r("portal")}]`))||[]),ue=(je=(Pe=(F?E2(F.nodesRef.current,$()):[]).find(te=>{var oe;return Rs(((oe=te.context)==null?void 0:oe.elements.domReference)||null)}))==null?void 0:Pe.context)==null?void 0:je.elements.domReference,me=[...[w,...re,A.current,T.current,O==null?void 0:O.beforeOutsideRef.current,O==null?void 0:O.afterOutsideRef.current,...se()],ue,Dn(h),Dn(m),S?y:null].filter(te=>te!=null),le=S2(me,{ariaHidden:d||S,mark:!1}),we=[w,...re].filter(te=>te!=null),Y=S2(we);return()=>{Y(),le()}},[v,r,y,w,d,O,S,F,$,m,h,se]),ce(()=>{if(!v||r||!at(Q))return;G.current="",I.current="";const re=Xe(Q),fe=Kt(re);queueMicrotask(()=>{const ue=P.current,ne=typeof ue=="function"?ue(z.current||""):ue;if(ne===void 0||ne===!1||Re(Q,fe))return;let le=null;const we=()=>(le==null&&(le=ie(Q)),le[0]||Q);let Y;ne===!0||ne===null?Y=we():Y=Dn(ne),Y=Y||we();const ae=Re(Q,Kt(re)),Pe=C.current.openEvent,je=(Pe==null?void 0:Pe.type)==="mousedown"&&Zr(Pe);ra(Y,{sync:je,preventScroll:Y===Q,shouldFocus(){if(!_.current)return!1;if(ae)return!0;const te=Kt(re);return!(te!==Y&&Re(Q,te))}})})},[r,v,Q,ie,P,z,_,C]);const Z=p.useRef(null);ce(()=>{if(r||!Q){Z.current=null;return}Z.current&&(Z.current.cancelled=!0,Z.current=null);const re=Xe(Q),fe=Kt(re),ue=z.current==null;I2(fe);function ne(le){var we;if(le.open||(G.current=L6(le.nativeEvent,I.current)),(le.reason===zn&&((we=le.triggerElement)!=null&&we.hasAttribute(_r("focus-guard")))||le.reason===Ot&&le.nativeEvent.type==="mouseleave")&&(j.current=!0),le.reason===ai)if(le.nested)j.current=!1;else if(Zr(le.nativeEvent)||Mc(le.nativeEvent))j.current=!1;else{let Y=!1;Xe(Q).createElement("div").focus({get preventScroll(){return Y=!0,!1}}),Y?j.current=!1:j.current=!0}}E.on("openchange",ne);function me(le){const we=N.current;let Y=typeof we=="function"?we(le):we;if(Y===void 0||Y===!1)return null;Y===null&&(Y=!0);const ae=y!=null&&y.isConnected?y:null,Pe=fe!=null&&fe.isConnected&&Gt(fe)!=="body"?fe:null;let je=ue?Pe||ae:ae||Pe;return je||(je=F2()||null),typeof Y=="boolean"?je:Dn(Y)||je||null}return()=>{E.off("openchange",ne);const le=Kt(re),we=se(),Y=Re(w,le)||we.some(oe=>oe===le||Re(oe,le))||F&&ir(F.nodesRef.current,$(),!1).some(oe=>{var be;return Re((be=oe.context)==null?void 0:be.elements.floating,le)}),ae=N.current,Pe=G.current,je=me(Pe),te={cancelled:!1};Z.current=te,queueMicrotask(()=>{Z.current===te&&(Z.current=null);const oe=V6(je),be=R.current??typeof ae!="boolean";if(!te.cancelled&&ae&&!j.current&&at(oe)&&(!(!be&&oe!==le&&le!==re.body)||Y)){const xe={preventScroll:!0};Pe==="keyboard"&&(xe.focusVisible=!0),oe.focus(xe)}j.current=!1})}},[r,w,Q,N,R,z,E,F,y,$,se]),ce(()=>{if(!An||v||!w)return;const re=Kt(Xe(w));!at(re)||!ii(re)||Re(w,re)&&re.blur()},[v,w]),ce(()=>{if(!(r||!O))return O.setFocusManagerState({modal:d,closeOnFocusOut:u,open:v,onOpenChange:t.setOpen,domReference:y}),()=>{O.setFocusManagerState(null)}},[r,O,d,v,t,u,y]),ce(()=>{if(!(r||!Q))return T2(Q),()=>{queueMicrotask(Uc)}},[r,Q]);const he=!r&&(d?!S:!0)&&(ee||d);return c.jsxs(p.Fragment,{children:[he&&c.jsx(Un,{"data-type":"inside",ref:q,onFocus:re=>{var fe;if(d){const ue=ie();ra(ue[ue.length-1])}else if(O!=null&&O.portalNode)if(j.current=!1,Vr(re,O.portalNode)){const ue=b3(y);ue==null||ue.focus()}else(fe=Dn(h??O.beforeOutsideRef))==null||fe.focus()}}),n,he&&c.jsx(Un,{"data-type":"inside",ref:D,onFocus:re=>{var fe;if(d)ra(ie()[0]);else if(O!=null&&O.portalNode)if(u&&(j.current=!0),Vr(re,O.portalNode)){const ue=y3(y);ue==null||ue.focus()}else(fe=Dn(m??O.afterOutsideRef))==null||fe.focus()}})]})}function Mr(e,t={}){const{enabled:n=!0,event:r="click",toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:l=!0,touchOpenDelay:s=0,reason:d=Gn}=t,u=e.context.dataRef,f=p.useRef(void 0),m=Yr(),h=wt(),x=p.useMemo(()=>{function g(v,y,w,E){const C=$e(d,y,w);v&&E==="touch"&&s>0?h.start(s,()=>{e.setOpen(!0,C)}):e.setOpen(v,C)}function b(v,y,w){const E=u.current.openEvent,C=e.select("domReferenceElement")!==y;return v&&C||!v||!i?!0:E&&(typeof l=="function"?l():l)?!w(E.type):!1}return{onPointerDown(v){f.current=Qn(v.pointerType,!0)&&Mc(v.nativeEvent)?"virtual":v.pointerType},onMouseDown(v){const y=f.current,w=v.nativeEvent,E=e.select("open");if(v.button!==0||r==="click"||Qn(y,!0)&&a)return;const C=b(E,v.currentTarget,P=>P==="click"||P==="mousedown"),$=Ct(w),M=ii($);if(M||y==="virtual"){g(C,w,M?$:v.currentTarget,y);return}const S=v.currentTarget;m.request(()=>{g(C,w,S,y)})},onClick(v){if(r==="mousedown-only")return;const y=f.current;if(r==="mousedown"&&y){f.current=void 0;return}if(Qn(y,!0)&&a)return;const w=e.select("open"),E=b(w,v.currentTarget,C=>C==="click"||C==="mousedown"||C==="keydown"||C==="keyup");g(E,v.nativeEvent,v.currentTarget,y)},onKeyDown(){f.current=void 0}}},[u,r,a,d,e,l,i,m,h,s]);return p.useMemo(()=>n?{reference:x}:We,[n,x])}function _6(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){var x;const a=(e==null?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},l=t.axis==="x"||t.axis==="both",s=t.axis==="y"||t.axis==="both",d=["mouseenter","mousemove"].includes(((x=t.dataRef.current.openEvent)==null?void 0:x.type)||"")&&t.pointerType!=="touch",u=t.axis==="y"?a.width:0,f=t.axis==="x"?a.height:0;let m=a.x,h=a.y;return n==null&&t.x&&l&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),m-=n||0,h-=r||0,(!i||d)&&(m=l&&t.x!=null?t.x:m,h=s&&t.y!=null?t.y:h),i=!0,{width:u,height:f,x:m,y:h,top:h,right:m+u,bottom:h+f,left:m}}}}function O2(e){return e!=null&&e.clientX!=null}function B6(e,t={}){const{enabled:n=!0,axis:r="both"}=t,i=e.useState("open"),a=e.useState("floatingElement"),l=e.useState("domReferenceElement"),s=e.context.dataRef,d=p.useRef(!1),u=p.useRef(null),[f,m]=p.useState(),[h,x]=p.useState([]),g=de(E=>{e.set("positionReference",E)}),b=de((E,C,$)=>{d.current||s.current.openEvent&&!O2(s.current.openEvent)||e.set("positionReference",_6($??l,{x:E,y:C,axis:r,dataRef:s,pointerType:f}))}),v=de(E=>{i?u.current||(b(E.clientX,E.clientY,E.currentTarget),x([])):b(E.clientX,E.clientY,E.currentTarget)}),y=Qn(f)?a:i;p.useEffect(()=>{if(!n){g(l);return}if(!y)return;function E(){var M;(M=u.current)==null||M.call(u),u.current=null}const C=pt(a);function $(M){const S=Ct(M);Re(a,S)?E():b(M.clientX,M.clientY)}return!s.current.openEvent||O2(s.current.openEvent)?u.current=qe(C,"mousemove",$):g(l),E},[y,n,a,s,l,e,b,g,h]),p.useEffect(()=>()=>{e.set("positionReference",null)},[e]),p.useEffect(()=>{n&&!a&&(d.current=!1)},[n,a]),p.useEffect(()=>{!n&&i&&(d.current=!0)},[n,i]);const w=p.useMemo(()=>{function E(C){m(C.pointerType)}return{onPointerDown:E,onPointerEnter:E,onMouseMove:v,onMouseEnter:v}},[v]);return p.useMemo(()=>n?{reference:w,trigger:w}:{},[n,w])}function G6(){return!1}function U6(e){return{escapeKey:typeof e=="boolean"?e:(e==null?void 0:e.escapeKey)??!1,outsidePress:typeof e=="boolean"?e:(e==null?void 0:e.outsidePress)??!0}}function ao(e,t={}){const{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a="sloppy",referencePress:l=G6,bubbles:s,externalTree:d}=t,u=e.useState("open"),f=e.useState("floatingElement"),{dataRef:m,events:h}=e.context,x=qn(d),g=de(typeof i=="function"?i:()=>!1),b=typeof i=="function"?g:i,v=b!==!1,y=de(()=>a),{escapeKey:w,outsidePress:E}=U6(s),C=p.useRef(!1),$=p.useRef(!1),M=p.useRef(!1),S=p.useRef(!1),P=p.useRef(!1),N=p.useRef(""),R=p.useRef(null),z=wt(),_=wt(),F=wt(),O=de(()=>{_.clear(),m.current.insideReactTree=!1}),j=de(D=>{var X;const B=(X=m.current.floatingContext)==null?void 0:X.nodeId;return(x?ir(x.nodesRef.current,B):[]).some(ee=>{var Q;return((Q=ee.context)==null?void 0:Q.open)&&!ee.context.dataRef.current[D]})}),V=de(D=>es(D,e.select("floatingElement"))||es(D,e.select("domReferenceElement"))),J=de(D=>{l()&&e.setOpen(!1,$e(Gn,D.nativeEvent))}),U=de(D=>{if(!u||!n||!r||D.key!=="Escape")return;const B=Zh(D)?D.nativeEvent:D;if(P.current||B.isComposing||!w&&j("__escapeKeyBubbles"))return;const W=$e($r,B);e.setOpen(!1,W),W.isCanceled||D.preventDefault(),!w&&!W.isPropagationAllowed&&D.stopPropagation()}),G=de(()=>{m.current.insideReactTree=!0,_.start(0,O)}),I=de(D=>{if(!u||!n||D.button!==0)return;const B=Ct(D.nativeEvent);Re(e.select("floatingElement"),B)&&(C.current||(C.current=!0,$.current=!1))}),A=de(D=>{!u||!n||(D.defaultPrevented||D.nativeEvent.defaultPrevented)&&C.current&&($.current=!0)});p.useEffect(()=>{function D(B){B.open||(S.current=!1)}return h.on("openchange",D),()=>{h.off("openchange",D)}},[h]),p.useEffect(()=>O,[O]),p.useEffect(()=>{if(!u||!n)return u||(S.current=!1,P.current=!1,N.current="",R.current=null),O;m.current.__escapeKeyBubbles=w,m.current.__outsidePressBubbles=E;const D=new En,B=Xe(f);function W(){F.clear(),P.current=!0}function X(){P.current=!0,F.start(An?5:0,()=>{P.current=!1})}function ee(){M.current=!0,D.start(0,()=>{M.current=!1})}function Q(){C.current=!1,$.current=!1}function ie(){const te=N.current,oe=te==="pen"||!te?"mouse":te,be=y(),xe=typeof be=="function"?be():be;return typeof xe=="string"?xe:xe[oe]}function se(te){const oe=ie();return oe==="intentional"&&te.type!=="click"||oe==="sloppy"&&te.type==="click"}function Z(te){var xe;const oe=(xe=m.current.floatingContext)==null?void 0:xe.nodeId,be=x&&ir(x.nodesRef.current,oe).some(Ce=>{var Te;return es(te,(Te=Ce.context)==null?void 0:Te.elements.floating)});return V(te)||be}function he(te){if(se(te)){te.type!=="click"&&!V(te)&&(D.clear(),M.current=!1),O();return}if(m.current.insideReactTree){O();return}const oe=Ct(te),be=`[${_r("inert")}]`,xe=tt(oe)?oe.getRootNode():null,Ce=Array.from((nr(xe)?xe:Xe(e.select("floatingElement"))).querySelectorAll(be)),Te=e.context.triggerElements;if(oe&&(Te.hasElement(oe)||Te.hasMatchingElement(He=>Re(He,oe))))return;let Oe=tt(oe)?oe:null;for(;Oe&&!In(Oe);){const He=wn(Oe);if(In(He)||!tt(He))break;Oe=He}if(!(Ce.length&&tt(oe)&&!s6(oe)&&!Re(oe,e.select("floatingElement"))&&Ce.every(He=>!Re(Oe,He)))){if(at(oe)&&!("touches"in te)){const He=In(oe),Ge=Qt(oe),Ze=/auto|scroll/,Ht=He||Ze.test(Ge.overflowX),Rt=He||Ze.test(Ge.overflowY),It=Ht&&oe.clientWidth>0&&oe.scrollWidth>oe.clientWidth,ze=Rt&&oe.clientHeight>0&&oe.scrollHeight>oe.clientHeight,nt=Ge.direction==="rtl",ot=ze&&(nt?te.offsetX<=oe.offsetWidth-oe.clientWidth:te.offsetX>oe.clientWidth),lt=It&&te.offsetY>oe.clientHeight;if(ot||lt)return}if(!Z(te)){if(ie()==="intentional"){if(te.detail!==0&&!Zr(te)&&!S.current)return;if(M.current){D.clear(),M.current=!1;return}}typeof b=="function"&&!b(te)||j("__outsidePressBubbles")||(e.setOpen(!1,$e(ai,te)),O())}}}function re(te){ie()!=="sloppy"||te.pointerType==="touch"||!e.select("open")||!n||V(te)||he(te)}function fe(te){if(ie()!=="sloppy"||!e.select("open")||!n||V(te))return;const oe=te.touches[0];oe&&(R.current={startTime:Date.now(),startX:oe.clientX,startY:oe.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},z.start(1e3,()=>{R.current&&(R.current.dismissOnTouchEnd=!1,R.current.dismissOnMouseDown=!1)}))}function ue(te,oe){const be=Ct(te);if(!be)return;const xe=qe(be,te.type,()=>{oe(te),xe()})}function ne(te){N.current="touch",ue(te,fe)}function me(te){z.clear(),te.type==="pointerdown"&&(te.button===0&&(S.current=!0),N.current=te.pointerType),!(te.type==="mousedown"&&R.current&&!R.current.dismissOnMouseDown)&&ue(te,oe=>{oe.type==="pointerdown"?re(oe):he(oe)})}function le(te){if(te.type==="pointercancel"&&(S.current=!1),!C.current)return;const oe=$.current;if(Q(),ie()==="intentional"){if(te.type==="pointercancel"){oe&&ee();return}if(!Z(te)){if(oe){ee();return}typeof b=="function"&&!b(te)||(D.clear(),M.current=!0,O())}}}function we(te){if(ie()!=="sloppy"||!R.current||V(te))return;const oe=te.touches[0];if(!oe)return;const be=Math.abs(oe.clientX-R.current.startX),xe=Math.abs(oe.clientY-R.current.startY),Ce=Math.sqrt(be*be+xe*xe);Ce>5&&(R.current.dismissOnTouchEnd=!0),Ce>10&&(he(te),z.clear(),R.current=null)}function Y(te){ue(te,we)}function ae(te){ie()!=="sloppy"||!R.current||V(te)||(R.current.dismissOnTouchEnd&&he(te),z.clear(),R.current=null)}function Pe(te){ue(te,ae)}const je=Fn(r&&Fn(qe(B,"keydown",U),qe(B,"compositionstart",W),qe(B,"compositionend",X)),v&&Fn(qe(B,"click",me,!0),qe(B,"pointerdown",me,!0),qe(B,"pointerup",le,!0),qe(B,"pointercancel",le,!0),qe(B,"mousedown",me,!0),qe(B,"mouseup",le,!0),qe(B,"touchstart",ne,{capture:!0,passive:!0}),qe(B,"touchmove",Y,{capture:!0,passive:!0}),qe(B,"touchend",Pe,{capture:!0,passive:!0})));return()=>{je(),D.clear(),Q(),M.current=!1}},[m,f,r,v,b,u,n,w,E,U,O,y,j,V,x,e,z,F]);const T=p.useMemo(()=>({onKeyDown:U,onPointerDown:J,onClick:J}),[U,J]),q=p.useMemo(()=>({onKeyDown:U,onPointerDown:A,onMouseDown:A,onClickCapture:G,onMouseDownCapture(D){G(),I(D)},onPointerDownCapture(D){G(),I(D)},onMouseUpCapture:G,onTouchEndCapture:G,onTouchMoveCapture:G}),[U,G,I,A]);return p.useMemo(()=>n?{reference:T,floating:q,trigger:T}:{},[n,T,q])}function S3(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:l}=e,s=t.useState("open"),d=t.useState("activeTriggerElement"),u=t.useState(n?"popupElement":"positionerElement"),f=l;return t.useSyncedValue("floatingId",i),ce(()=>{const m={open:s,floatingId:i,referenceElement:d,floatingElement:u};tt(d)&&(m.domReferenceElement=d),r.state.positionReference===r.state.referenceElement&&(m.positionReference=d),r.update(m)},[s,i,d,u,r]),r.context.onOpenChange=f,r.context.nested=a,r}function Wc(e){const{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:l}=e,s=de(i),{mounted:d,setMounted:u,transitionStatus:f}=$n(t,!1,!1,l),m=t?!1:r;ce(()=>{t&&s(!1)},[t,s]);const h=p.useRef(d),x=p.useRef(!1),g=wc(),b=()=>{h.current=!1,u(!1),a()};ce(()=>{h.current=d,x.current&&(x.current=!1,!t&&d&&b())});const v=de(()=>{if(h.current){if(t){x.current=!0,g();return}b()}});return Yt({enabled:d&&!t&&!m,open:t,ref:n,onComplete(){t||v()}}),{mounted:d,transitionStatus:f,preventUnmountingOnClose:m,forceUnmount:v}}const lo={tabIndex:-1,[Ns]:""};function N3(e){return t=>t==="touch"?e.current:!0}function Kc(e,t=!1){const n=li(),r=lr()!=null,i=Pt(()=>e(n,r)).current;return S3({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function Ya({handle:e,store:t}){return ce(()=>e.attachStore(t),[e,t]),null}function z2(e){const t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function P3(e,t){const n=p.useRef(null);return de(r=>{const i=n.current;if(i!==null){if(i.element===r&&i.store===t&&i.id===e)return;n.current=null;const a=i.store;a.context.triggerElements.getById(i.id)===i.element&&(a.context.triggerElements.delete(i.id),z2(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),z2(t))})}function Xa(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);const a=(n==null?void 0:n.id)??null;let l=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(l=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:l,activeTriggerElement:s,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function ci(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function W6(e,t,n,r={}){var f,m,h;const i=n.reason,a=i===Ot,l=t&&i===Hr,s=!t&&(i===Gn||i===$r),d=ci(n);if((m=(f=e.context).onOpenChange)==null||m.call(f,t,n),n.isCanceled)return;(h=r.onBeforeDispatch)==null||h.call(r),e.state.floatingRootContext.dispatchOpenChange(t,n);const u=()=>{const x=Xa(e.state,t,n.trigger,d()),g={...r.extraState,...x};l?g.instantType="focus":s?g.instantType="dismiss":a&&(g.instantType=void 0),e.update(g)};a?on.flushSync(u):u()}function Za(e,t,n,r){const i=n.useState("isMountedByTrigger",e),a=P3(e,n),l=de(d=>{const u=n.select("open"),f=n.select("activeTriggerId");if(f===e){const m={activeTriggerElement:d,...u?r:null};n.update(m);return}if(f==null&&u&&!n.state.openedWithoutTrigger){const m={activeTriggerId:e??null,activeTriggerElement:d,...r};n.update(m)}}),s=de(d=>{a(d),d&&l(d)});return ce(()=>(s(t.current),()=>s(null)),[s,t,n,e]),ce(()=>{if(i){const d={activeTriggerElement:t.current,...r};n.update(d)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function Ja(e,t={}){const{closeOnActiveTriggerUnmount:n=!1}=t,r=p.useRef(null),i=e.useState("open"),a=e.useState("triggerCount"),l=e.useState("activeTriggerId"),s=e.useState("activeTriggerElement");ce(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0),e.state.openedWithoutTrigger&&e.set("openedWithoutTrigger",!1);return}const d=e.context.triggerElements.size,u={};e.state.triggerCount!==d&&(u.triggerCount=d);const f=e.select("activeTriggerId");let m=null;if(f){const h=e.context.triggerElements.getById(f);if(h)r.current=f,h!==e.state.activeTriggerElement&&(u.activeTriggerElement=h);else{for(const[x,g]of e.context.triggerElements.entries())if(g===e.state.activeTriggerElement){u.activeTriggerId=x,u.activeTriggerElement=g,r.current=x;break}u.activeTriggerId===void 0&&(r.current===f?m=f:r.current=null)}}else r.current=null;if(!m&&!f&&!e.state.openedWithoutTrigger&&d===1){const h=e.context.triggerElements.entries().next();if(!h.done){const[x,g]=h.value;u.activeTriggerId=x,u.activeTriggerElement=g,r.current=x}}(u.triggerCount!==void 0||u.activeTriggerId!==void 0||u.activeTriggerElement!==void 0)&&e.update(u),m&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===m&&!e.context.triggerElements.getById(m)){const h=$e(mt);e.setOpen(!1,h),h.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,a,l,s,n])}function Qa(e,t,n,r){const{mounted:i,transitionStatus:a,forceUnmount:l}=Wc({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState("preventUnmountingOnClose"),setPreventUnmountOnClose:s=>t.set("preventUnmountingOnClose",s),animateInitialOpen:r,onUnmount(){var s,d;t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n==null||n(),(d=(s=t.context).onOpenChangeComplete)==null||d.call(s,!1)}});return Pt(()=>(t.set("mounted",i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:l,transitionStatus:a}}function el(e,t){e.useSyncedValues(t),ce(()=>()=>{e.update({activeTriggerProps:We,inactiveTriggerProps:We,popupProps:We})},[e])}function R3(e,t){ce(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),ce(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}let Br;function K6(e){Br??(Br=new WeakMap);let t=Br.get(e);return t||(t=new WeakMap,Br.set(e,t)),t}class ui{constructor(){Be(this,"idMap",new Map)}add(t,n){if(process.env.NODE_ENV!=="production"){const r=K6(this),i=r.get(n);if(i!==void 0&&i!==t)throw new Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.");const a=this.idMap.get(t);a!==void 0&&a!==n&&r.delete(a),r.set(n,t)}this.idMap.set(t,n)}delete(t){var n;if(process.env.NODE_ENV!=="production"){const r=this.idMap.get(t);r!==void 0&&((n=Br==null?void 0:Br.get(this))==null||n.delete(r))}this.idMap.delete(t)}hasElement(t){for(const n of this.idMap.values())if(n===t)return!0;return!1}hasMatchingElement(t){for(const n of this.idMap.values())if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}const q6={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class I3 extends Cr{constructor(n){const{syncOnly:r,nested:i,onOpenChange:a,triggerElements:l,...s}=n;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:a,dataRef:{current:{}},events:M3(),nested:i,triggerElements:l},q6);Be(this,"syncOpenEvent",(n,r)=>{(!n||!this.state.open||r!=null&&Jh(r))&&(this.context.dataRef.current.openEvent=n?r:void 0)});Be(this,"dispatchOpenChange",(n,r)=>{this.syncOpenEvent(n,r.event);const i={open:n,reason:r.reason,nativeEvent:r.event,nested:this.context.nested,triggerElement:r.trigger};this.context.events.emit("openchange",i)});Be(this,"setOpen",(n,r)=>{var i,a,l,s;if(this.syncOnly){(a=(i=this.context).onOpenChange)==null||a.call(i,n,r);return}this.dispatchOpenChange(n,r),(s=(l=this.context).onOpenChange)==null||s.call(l,n,r)});this.syncOnly=r}}function tl(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new I3({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:We,inactiveTriggerProps:We,popupProps:We}}const Ro=e=>e.triggerIdProp??e.activeTriggerId,va=e=>e.openProp??e.open,A2=e=>{var n;return(((n=e.popupElement)==null?void 0:n.id)??e.floatingId)||void 0};function F3(e,t){return t!==void 0&&va(e)&&Ro(e)===t}function Y6(e,t){return F3(e,t)?!0:t!==void 0&&va(e)&&Ro(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}const Hn={open:va,mounted:e=>e.mounted,transitionStatus:e=>va(e)&&!e.mounted?"starting":e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Ro,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:A2,isTriggerActive:(e,t)=>t!==void 0&&Ro(e)===t,isOpenedByTrigger:(e,t)=>F3(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Ro(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Y6(e,t)?A2(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function nl(e){const t=p.useCallback(r=>e===void 0?Qe:e.subscribeStore(r),[e]),n=p.useCallback(()=>e===void 0?void 0:e.store,[e]);return Da.useSyncExternalStore(t,n,()=>e==null?void 0:e.serverStore)}function T3(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,i=li(),a=lr()!=null;if(process.env.NODE_ENV!=="production"){const s=r.reference;s&&!tt(s)&&console.error("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `context.setPositionReference()`","instead.")}const l=Pt(()=>new I3({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new ui,floatingId:i,syncOnly:!1,nested:a})).current;return ce(()=>{const s={open:t,floatingId:i};r.reference!==void 0&&(s.referenceElement=r.reference,s.domReferenceElement=tt(r.reference)?r.reference:null),r.floating!==void 0&&(s.floatingElement=r.floating),l.update(s)},[t,i,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=a,l}const rs=Cc&&An;function O3(e,t={}){const{enabled:n=!0,delay:r}=t,{events:i,dataRef:a}=e.context,l=p.useRef(!1),s=p.useRef(null),d=p.useRef(!0),u=wt();p.useEffect(()=>{const m=e.select("domReferenceElement");if(!n)return;const h=pt(m);function x(){const v=e.select("domReferenceElement");!e.select("open")&&at(v)&&v===Kt(Xe(v))&&(l.current=!0,s.current=v)}function g(){d.current=!0}function b(){d.current=!1}return Fn(qe(h,"blur",x),rs&&qe(h,"keydown",g,!0),rs&&qe(h,"pointerdown",b,!0))},[e,n]),p.useEffect(()=>{if(!n)return;function m(h){if(h.reason===Gn||h.reason===$r){const x=e.select("domReferenceElement");tt(x)&&(s.current=x,l.current=!0)}}return i.on("openchange",m),()=>{i.off("openchange",m)}},[i,n,e]);const f=p.useMemo(()=>{function m(){l.current=!1,s.current=null}return{onMouseLeave(){m()},onFocus(h){const x=h.currentTarget;if(l.current){if(s.current===x)return;m()}const g=Ct(h.nativeEvent);if(tt(g)){if(rs&&!h.relatedTarget){if(!d.current&&!ii(g))return}else if(!c6(g))return}const b=pa(h.relatedTarget,e.context.triggerElements),{nativeEvent:v,currentTarget:y}=h;if(e.select("open")&&b||!r){e.setOpen(!0,$e(Hr,v,y));return}u.start(r,()=>{l.current||e.setOpen(!0,$e(Hr,v,y))})},onBlur(h){m();const x=h.relatedTarget,g=h.nativeEvent,b=tt(x)&&x.hasAttribute(_r("focus-guard"))&&x.getAttribute("data-type")==="outside";u.start(0,()=>{var E;const v=e.select("domReferenceElement"),y=Kt(Xe(v));!x&&y===v||Re((E=a.current.floatingContext)==null?void 0:E.refs.floating.current,y)||Re(v,y)||b||pa(x??y,e.context.triggerElements)||e.setOpen(!1,$e(Hr,g))})}}},[a,r,e,u]);return p.useMemo(()=>n?{reference:f,trigger:f}:{},[n,f])}class qc{constructor(){Be(this,"pointerType");Be(this,"interactedInside",!1);Be(this,"handler");Be(this,"blockMouseMove",!0);Be(this,"performedPointerEventsMutation",!1);Be(this,"pointerEventsScopeElement",null);Be(this,"pointerEventsReferenceElement",null);Be(this,"pointerEventsFloatingElement",null);Be(this,"restTimeoutPending",!1);Be(this,"openChangeTimeout",new En);Be(this,"restTimeout",new En);Be(this,"handleCloseOptions");Be(this,"dispose",()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()});Be(this,"disposeEffect",()=>this.dispose)}static create(){return new qc}}const xa=new WeakMap;function ba(e){var n,r,i;if(!e.performedPointerEventsMutation)return;const t=e.pointerEventsScopeElement;t&&xa.get(t)===e&&((n=e.pointerEventsScopeElement)==null||n.style.removeProperty("pointer-events"),(r=e.pointerEventsReferenceElement)==null||r.style.removeProperty("pointer-events"),(i=e.pointerEventsFloatingElement)==null||i.style.removeProperty("pointer-events"),xa.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function z3(e,t){const{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=xa.get(n);a&&a!==e&&ba(a),ba(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,xa.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",i.style.pointerEvents="auto"}function Yc(e){const t=e.context.dataRef.current,n=Pt(()=>t.hoverInteractionState??qc.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),mc(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Xc(e,t={}){const{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=e.useState("open"),l=e.useState("floatingElement"),s=e.useState("domReferenceElement"),{dataRef:d}=e.context,u=qn(),f=lr(),m=Yc(e),h=wt(),x=de(()=>{var v;return a3((v=d.current.openEvent)==null?void 0:v.type,m.interactedInside)}),g=de(()=>{var v;return d6((v=d.current.openEvent)==null?void 0:v.type)}),b=de(()=>{ba(m)});ce(()=>{a||(m.pointerType=void 0,m.restTimeoutPending=!1,m.interactedInside=!1,b())},[a,m,b]),p.useEffect(()=>b,[b]),ce(()=>{var v,y,w,E,C;if(n&&a&&(v=m.handleCloseOptions)!=null&&v.blockPointerEvents&&g()&&tt(s)&&l){const $=s,M=l,S=Xe(l),P=(w=(y=u==null?void 0:u.nodesRef.current.find(_=>_.id===f))==null?void 0:y.context)==null?void 0:w.elements.floating;P&&(P.style.pointerEvents="");const N=m.pointerEventsScopeElement!==M?m.pointerEventsScopeElement:null,R=P!==M?P:null,z=((C=(E=m.handleCloseOptions)==null?void 0:E.getScope)==null?void 0:C.call(E))??N??R??Bn($,"[data-rootownerid]")??S.body;return z3(m,{scopeElement:z,referenceElement:$,floatingElement:M}),()=>{b()}}},[n,a,s,l,m,g,u,f,b]),p.useEffect(()=>{if(!n)return;function v(){return!!(u&&f&&ir(u.nodesRef.current,f).length>0)}function y(S){const P=Er(r,"close",m.pointerType),N=()=>{e.setOpen(!1,$e(Ot,S)),u==null||u.events.emit("floating.closed",S)};P?m.openChangeTimeout.start(P,N):(m.openChangeTimeout.clear(),N())}function w(S){const P=Ct(S);if(!i3(P)){m.interactedInside=!1;return}m.interactedInside=Bn(P,"[aria-haspopup]")!=null}function E(){m.openChangeTimeout.clear(),h.clear(),u==null||u.events.off("floating.closed",$),b()}function C(S){var z;if(v()&&u){u.events.on("floating.closed",$);return}if(pa(S.relatedTarget,e.context.triggerElements))return;const P=((z=d.current.floatingContext)==null?void 0:z.nodeId)??i,N=S.relatedTarget;if(!(u&&P&&tt(N)&&ir(u.nodesRef.current,P,!1).some(_=>{var F;return Re((F=_.context)==null?void 0:F.elements.floating,N)}))){if(m.handler){m.handler(S);return}b(),g()&&!x()&&y(S)}}function $(S){!u||!f||v()||h.start(0,()=>{u.events.off("floating.closed",$),e.setOpen(!1,$e(Ot,S)),u.events.emit("floating.closed",S)})}const M=l;return Fn(M&&qe(M,"mouseenter",E),M&&qe(M,"mouseleave",C),M&&qe(M,"pointerdown",w,!0),()=>{u==null||u.events.off("floating.closed",$)})},[n,l,e,d,r,i,g,x,b,m,u,f,h])}const X6={current:null};function rl(e,t={}){const{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:l=0,move:s=!0,triggerElementRef:d=X6,externalTree:u,isActiveTrigger:f=!0,getHandleCloseContext:m,isClosing:h,shouldOpen:x,guardStaleOpen:g=!1}=t,{dataRef:b,events:v}=e.context,y=qn(u),w=Yc(e),E=p.useRef(!1),C=Nt(i),$=Nt(r),M=Nt(l),S=Nt(n),P=Nt(x),N=Nt(h),R=de(()=>{var j;return a3((j=b.current.openEvent)==null?void 0:j.type,w.interactedInside)}),z=de(()=>{var j;return((j=P.current)==null?void 0:j.call(P))!==!1}),_=de((j,V,J)=>{const U=e.context.triggerElements;if(U.hasElement(V))return!j||!Re(j,V);if(!tt(J))return!1;const G=J;return U.hasMatchingElement(I=>Re(I,G))&&(!j||!Re(j,G))}),F=de(()=>{if(!w.handler)return;Xe(e.select("domReferenceElement")).removeEventListener("mousemove",w.handler),w.handler=void 0}),O=de(()=>{ba(w)});return f&&(w.handleCloseOptions=i==null?void 0:i.__options),p.useEffect(()=>F,[F]),p.useEffect(()=>{if(!n)return;function j(V){V.open?E.current=!1:(E.current=V.reason===Ot,F(),w.openChangeTimeout.clear(),w.restTimeout.clear(),w.blockMouseMove=!0,w.restTimeoutPending=!1)}return v.on("openchange",j),()=>{v.off("openchange",j)}},[n,v,w,F]),p.useEffect(()=>{if(!n)return;function j(A,T=!0){const q=Er($.current,"close",w.pointerType);q?w.openChangeTimeout.start(q,()=>{e.setOpen(!1,$e(Ot,A)),y==null||y.events.emit("floating.closed",A)}):T&&(w.openChangeTimeout.clear(),e.setOpen(!1,$e(Ot,A)),y==null||y.events.emit("floating.closed",A))}const V=d.current??(f?e.select("domReferenceElement"):null);if(!tt(V))return;function J(A){var ue;if(w.openChangeTimeout.clear(),w.blockMouseMove=!1,a&&!Qn(w.pointerType))return;const T=p2(M.current),q=Er($.current,"open",w.pointerType),D=Ct(A),B=A.currentTarget??null,W=e.select("domReferenceElement");let X=B;if(tt(D)&&!e.context.triggerElements.hasElement(D)){for(const ne of e.context.triggerElements.elements())if(Re(ne,D)){X=ne;break}}tt(B)&&tt(W)&&!e.context.triggerElements.hasElement(B)&&Re(B,W)&&(X=W);const ee=X==null?!1:_(W,X,D),Q=e.select("open"),ie=((ue=N.current)==null?void 0:ue.call(N))??e.select("transitionStatus")==="ending",se=!Q&&ie&&E.current,Z=!ee&&tt(X)&&tt(W)&&Re(W,X)&&se,he=T>0&&!q,re=ee&&(Q||se)||Z,fe=!Q||ee;if(re){z()&&e.setOpen(!0,$e(Ot,A,X));return}he||(q?w.openChangeTimeout.start(q,()=>{fe&&z()&&e.setOpen(!0,$e(Ot,A,X))}):fe&&z()&&e.setOpen(!0,$e(Ot,A,X)))}function U(A){if(R()){O();return}F();const T=e.select("domReferenceElement"),q=Xe(T);w.restTimeout.clear(),w.restTimeoutPending=!1;const D=b.current.floatingContext??(m==null?void 0:m());if(pa(A.relatedTarget,e.context.triggerElements))return;if(C.current&&D){e.select("open")||w.openChangeTimeout.clear();const W=d.current;w.handler=C.current({...D,tree:y,x:A.clientX,y:A.clientY,onClose(){O(),F(),S.current&&!R()&&W===e.select("domReferenceElement")&&j(A,!0)}}),q.addEventListener("mousemove",w.handler),w.handler(A);return}(w.pointerType==="touch"?!Re(e.select("floatingElement"),A.relatedTarget):!0)&&j(A)}function G(A){Re(V,A.relatedTarget)||(w.openChangeTimeout.clear(),w.restTimeout.clear(),w.restTimeoutPending=!1)}const I=g?qe(V,"mouseout",G):void 0;return s?Fn(qe(V,"mousemove",J,{once:!0}),qe(V,"mouseenter",J),qe(V,"mouseleave",U),I):Fn(qe(V,"mouseenter",J),qe(V,"mouseleave",U),I)},[F,O,b,$,e,n,C,w,f,_,R,a,s,M,d,y,S,m,N,z,g]),p.useMemo(()=>{if(!n)return;function j(V){w.pointerType=V.pointerType}return{onPointerDown:j,onPointerEnter:j,onMouseMove(V){var D,B,W;const{nativeEvent:J}=V,U=V.currentTarget,G=e.select("domReferenceElement"),I=e.select("open"),A=_(G,U,V.target);if(a&&!Qn(w.pointerType))return;if(I&&A&&((D=w.handleCloseOptions)!=null&&D.blockPointerEvents)){const X=e.select("floatingElement");if(X){const ee=((W=(B=w.handleCloseOptions)==null?void 0:B.getScope)==null?void 0:W.call(B))??U.ownerDocument.body;z3(w,{scopeElement:ee,referenceElement:U,floatingElement:X})}}const T=p2(M.current);if(I&&!A||T===0||!A&&w.restTimeoutPending&&V.movementX**2+V.movementY**2<2)return;w.restTimeout.clear();function q(){if(w.restTimeoutPending=!1,R())return;const X=e.select("open");!w.blockMouseMove&&(!X||A)&&z()&&e.setOpen(!0,$e(Ot,J,U))}w.pointerType==="touch"?on.flushSync(()=>{q()}):A&&I?q():(w.restTimeoutPending=!0,w.restTimeout.start(T,q))}}},[n,w,R,_,a,e,M,z])}function j2(e){return An&&e.movementX===0&&e.movementY===0}function ol(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Bi(e,t){return ol(t,e===Sc||e===Ba,e===hr||e===gr)}function os(e,t,n){return ol(t,e===Ba,n?e===hr:e===gr)||e==="Enter"||e===" "||e===""}function Z6(e,t,n){return ol(t,n?e===hr:e===gr,e===Ba)}function J6(e,t,n,r){const i=n?e===gr:e===hr,a=e===Sc;return t==="both"||t==="horizontal"&&r?e==="Escape":ol(t,i,a)}function Zc(e,t){const{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:l=null,allowEscape:s=!1,loopFocus:d=!1,nested:u=!1,rtl:f=!1,virtual:m=!1,focusItemOnOpen:h="auto",focusItemOnHover:x=!0,openOnArrowKeyDown:g=!0,disabledIndices:b=void 0,orientation:v="vertical",triggerOrientation:y=v,parentOrientation:w,id:E,resetOnPointerLeave:C=!0,externalTree:$,nestedReturnFocusRef:M,grid:S}=t,P=S!=null;process.env.NODE_ENV!=="production"&&(s&&(d||console.warn("`useListNavigation` looping must be enabled to allow escaping."),m||console.warn("`useListNavigation` must be virtual to allow escaping.")),v==="vertical"&&P&&console.warn("In grid list navigation mode, the `orientation` should",'be either "horizontal" or "both".'));const N=e.useState("open"),R=e.useState("floatingElement"),z=e.useState("domReferenceElement"),_=e.context.dataRef,F=ha(R),O=Rs(z),j=Nt(F),V=lr(),J=qn($),U=p.useRef(h),G=p.useRef(l??-1),I=p.useRef(null),A=p.useRef(!0),T=de(te=>{i(G.current===-1?null:G.current,te)}),q=p.useRef(!!R),D=p.useRef(N),B=p.useRef(!1),W=p.useRef(!1),X=p.useRef(null),ee=Nt(b),Q=Nt(N),ie=Nt(l),se=Nt(C),Z=Yr(),he=Yr(),re=de(()=>{Z.cancel();function te(Ce){m||(X.current=ra(Ce,{sync:B.current,preventScroll:!0}))}const oe=n.current[G.current],be=W.current;oe&&te(oe),(B.current?Ce=>Ce():Ce=>Z.request(Ce))(()=>{var Oe;const Ce=n.current[G.current]||oe;if(!Ce)return;oe||te(Ce),we&&(be||!A.current)&&((Oe=Ce.scrollIntoView)==null||Oe.call(Ce,{block:"nearest",inline:"nearest"}))})});ce(()=>{_.current.orientation=v},[_,v]),ce(()=>{N||(I.current=null),(!N||h!=="auto")&&(U.current=h)},[N,h]),ce(()=>{a&&(N&&R?(G.current=l??-1,U.current&&l!=null&&(W.current=!0,T())):q.current&&(G.current=-1,T()))},[a,N,R,l,T]),ce(()=>{if(a){if(!N){B.current=!1;return}if(R)if(r==null){if(B.current=!1,ie.current!=null)return;if(q.current&&(G.current=-1,re()),(!D.current||!q.current)&&U.current&&(I.current!=null||U.current===!0&&I.current==null)){let te=0;const oe=()=>{n.current[0]==null?(te<2&&(te?xe=>he.request(xe):queueMicrotask)(oe),te+=1):(G.current=I.current==null||os(I.current,y,f)||u?na(n):Fs(n),I.current=null,T())};oe()}}else _n(n.current,r)||(G.current=r,re(),W.current=!1)}},[a,N,R,r,ie,u,n,y,f,T,re,he]),ce(()=>{var Ce,Te;if(!a||R||!J||m||!q.current)return;const te=J.nodesRef.current,oe=(Te=(Ce=te.find(Oe=>Oe.id===V))==null?void 0:Ce.context)==null?void 0:Te.elements.floating,be=Kt(Xe(z??oe??null)),xe=te.some(Oe=>Oe.context&&Re(Oe.context.elements.floating,be));oe&&!xe&&A.current&&oe.focus({preventScroll:!0})},[a,R,z,J,V,m]),ce(()=>{D.current=N,q.current=!!R});const fe=r!=null,ue=de(te=>{if(!Q.current)return;const oe=n.current.indexOf(te.currentTarget);oe!==-1&&(G.current!==oe||r!==oe)&&(G.current=oe,T(te))}),ne=de(()=>{var te,oe,be;return w??((be=(oe=(te=J==null?void 0:J.nodesRef.current.find(xe=>xe.id===V))==null?void 0:te.context)==null?void 0:oe.dataRef)==null?void 0:be.current.orientation)}),me=de(()=>na(n,ee.current)),le=de(te=>{if(A.current=!1,B.current=!0,te.which===229||!Q.current&&te.currentTarget===j.current)return;if(u&&J6(te.key,v,f,P)){Bi(te.key,ne())||Tt(te),e.setOpen(!1,$e(rr,te.nativeEvent));const Ce=(M==null?void 0:M.current)??z;at(Ce)&&Ce.focus();return}r!=null&&r!==G.current&&!_n(n.current,r)&&(G.current=r);const oe=G.current,be=na(n,b),xe=Fs(n,b);if(O||(te.key==="Home"&&(Tt(te),G.current=be,T(te)),te.key==="End"&&(Tt(te),G.current=xe,T(te))),S!=null){const Ce=S(te,G.current,n,v,d,f,b,be,xe);if(Ce!=null&&Ce!==G.current&&(G.current=Ce,T(te)),v==="both")return}if(Bi(te.key,v)){Tt(te);const Ce=Kt(te.currentTarget.ownerDocument);if(N&&!m&&Re(te.currentTarget,Ce)&&!n.current.some(He=>He!=null&&Re(He,Ce))){G.current=os(te.key,v,f)?be:xe,T(te),r===G.current&&re();return}const{index:Te,wrapped:Oe}=M6(n.current,oe,{decrement:!os(te.key,v,f),loopFocus:d,allowEscape:s,disabledIndices:b,minIndex:be,maxIndex:xe});Oe&&(B.current=!1),G.current=Te,T(te)}}),we=p.useMemo(()=>({onFocus(oe){B.current=!0,ue(oe)},onClick({currentTarget:oe}){m||oe.focus({preventScroll:!0})},onMouseMove(oe){j2(oe)||(B.current=!0,W.current=!1,x&&ue(oe))},onPointerLeave(oe){var xe;if(!Q.current||!A.current||oe.pointerType==="touch")return;B.current=!0;const be=oe.relatedTarget;if(!(!x||n.current.includes(be))&&se.current&&((xe=X.current)==null||xe.call(X),X.current=null,G.current=-1,T(oe),!m)){const Ce=j.current,Te=Kt(Xe(Ce));Ce&&Re(Ce,Te)&&Ce.focus({preventScroll:!0})}}}),[ue,Q,j,x,n,T,se,m]),Y=p.useMemo(()=>m&&N&&fe&&{"aria-activedescendant":`${E}-${r}`},[m,N,fe,E,r]),ae=p.useMemo(()=>({...O?{}:Y,onKeyDown(te){if(te.key==="Tab"&&te.shiftKey&&N&&!m){const oe=Ct(te.nativeEvent);if(oe&&!Re(j.current,oe))return;Tt(te);const be=$e(zn,te.nativeEvent);e.setOpen(!1,be);const xe=(M==null?void 0:M.current)??z;!be.isCanceled&&at(xe)&&xe.focus();return}le(te)},onPointerMove(te){j2(te)||(A.current=!0)}}),[Y,le,j,O,e,N,m,z,M]),Pe=p.useMemo(()=>{function te(xe){e.setOpen(!0,$e(rr,xe.nativeEvent,xe.currentTarget))}function oe(xe){h==="auto"&&Zr(xe.nativeEvent)&&(U.current=!m)}function be(xe){U.current=h,h==="auto"&&Mc(xe.nativeEvent)&&(U.current=!0)}return{onKeyDown(xe){var Ze;const Ce=e.select("open");A.current=!1;const Te=xe.key.startsWith("Arrow"),Oe=Z6(xe.key,ne(),f),He=Bi(xe.key,Ce?v:y),Ge=(u?Oe:He)||xe.key==="Enter"||xe.key.trim()==="";if(m&&Ce&&(!u||ii(xe.currentTarget)))return le(xe);if(!(!Ce&&!g&&Te)){if(Ge){const Ht=Bi(xe.key,ne());I.current=u&&Ht?null:xe.key}if(u){Oe&&(Tt(xe),Ce?(G.current=me(),T(xe),m&&((Ze=j.current)==null||Ze.focus())):te(xe));return}He&&(ie.current!=null&&(G.current=ie.current),Tt(xe),!Ce&&g?te(xe):le(xe),Ce&&T(xe))}},onFocus(xe){xe.target===xe.currentTarget&&e.select("open")&&!m&&(G.current=-1,T(xe))},onPointerDown:be,onPointerEnter:be,onMouseDown:oe,onClick:oe}},[le,h,me,u,T,e,g,v,y,ne,f,ie,m,j]),je=p.useMemo(()=>({...Y,...Pe}),[Y,Pe]);return p.useMemo(()=>a?{reference:je,floating:ae,item:we,trigger:Pe}:{},[a,je,ae,Pe,we])}function Jc(e,t){const{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:l,onTyping:s,enabled:d=!0,resetMs:u=750,selectedIndex:f=null}=t,m=de(s),h=e.useState("open"),x=wt(),g=p.useRef(""),b=p.useRef(f??i??-1),v=p.useRef(null),y=de(C=>{function $(O){return r==null?void 0:r.current[O]}function M(O){const j=$(O);return j&&!Ua(j)||j!=null&&j.matches(":disabled")?!1:l==null||!er(qt,O,l)}function S(O,j,V=0){if(O.length===0)return-1;const J=(V%O.length+O.length)%O.length,U=j.toLowerCase();for(let G=0;G<O.length;G+=1){const I=(J+G)%O.length,A=O[I];if(!(!(A!=null&&A.toLowerCase().startsWith(U))||!M(I)))return I}return-1}const P=n.current;if(g.current.length>0&&C.key===" "&&(Tt(C),m==null||m(!0)),g.current.length>0&&g.current[0]!==" "&&S(P,g.current)===-1&&C.key!==" "&&(m==null||m(!1)),P==null||C.key.length!==1||C.ctrlKey||C.metaKey||C.altKey)return;h&&C.key!==" "&&(Tt(C),m==null||m(!0));const N=g.current==="";N&&(b.current=f??i??-1),P.every((O,j)=>{var V,J;return O&&M(j)?((V=O[0])==null?void 0:V.toLowerCase())!==((J=O[1])==null?void 0:J.toLowerCase()):!0})&&g.current===C.key&&(g.current="",b.current=v.current),g.current+=C.key,x.start(u,()=>{g.current="",b.current=v.current,m==null||m(!1)});const _=((N?f??i??-1:b.current)??0)+1,F=S(P,g.current,_);F!==-1?(a==null||a(F,C),v.current=F):C.key!==" "&&(g.current="",m==null||m(!1))}),w=de(C=>{const $=C.relatedTarget,M=e.select("domReferenceElement"),S=e.select("floatingElement");Re(M,$)||Re(S,$)||(x.clear(),g.current="",b.current=v.current,m==null||m(!1))});ce(()=>{!h&&f!==null||(x.clear(),v.current=null,g.current!==""&&(g.current="",m==null||m(!1)))},[h,f,x,m]);const E=p.useMemo(()=>({onKeyDown:y,onBlur:w}),[y,w]);return p.useMemo(()=>d?{reference:E,floating:E}:{},[d,E])}const D2=.1,Q6=D2*D2,gt=.5;function Gi(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Ui(e,t,n,r,i,a,l,s,d,u){let f=!1;return Gi(e,t,n,r,i,a)&&(f=!f),Gi(e,t,i,a,l,s)&&(f=!f),Gi(e,t,l,s,d,u)&&(f=!f),Gi(e,t,d,u,n,r)&&(f=!f),f}function e7(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Wi(e,t,n,r,i,a){const l=Math.min(n,i),s=Math.max(n,i),d=Math.min(r,a),u=Math.max(r,a);return e>=l&&e<=s&&t>=d&&t<=u}function il(e={}){const{blockPointerEvents:t=!1}=e,n=new En,r=({x:i,y:a,placement:l,elements:s,onClose:d,nodeId:u,tree:f})=>{const m=l==null?void 0:l.split("-")[0];let h=!1,x=null,g=null,b=typeof performance<"u"?performance.now():0;function v(w,E){const C=performance.now(),$=C-b;if(x===null||g===null||$===0)return x=w,g=E,b=C,!1;const M=w-x,S=E-g,P=M*M+S*S,N=$*$*Q6;return x=w,g=E,b=C,P<N}function y(){n.clear(),d()}return function(E){n.clear();const C=s.domReference,$=s.floating;if(!C||!$||m==null||i==null||a==null)return;const{clientX:M,clientY:S}=E,P=Ct(E),N=E.type==="mouseleave",R=Re($,P),z=Re(C,P);if(R&&(h=!0,!N))return;if(z&&(h=!1,!N)){h=!0;return}if(N&&tt(E.relatedTarget)&&Re($,E.relatedTarget))return;function _(){return!!(f&&ir(f.nodesRef.current,u).length>0)}function F(){_()||y()}if(_())return;const O=C.getBoundingClientRect(),j=$.getBoundingClientRect(),V=i>j.right-j.width/2,J=a>j.bottom-j.height/2,U=j.width>O.width,G=j.height>O.height,I=(U?O:j).left,A=(U?O:j).right,T=(G?O:j).top,q=(G?O:j).bottom;if(m==="top"&&a>=O.bottom-1||m==="bottom"&&a<=O.top+1||m==="left"&&i>=O.right-1||m==="right"&&i<=O.left+1){F();return}let D=!1;switch(m){case"top":D=Wi(M,S,I,O.top+1,A,j.bottom-1);break;case"bottom":D=Wi(M,S,I,j.top+1,A,O.bottom-1);break;case"left":D=Wi(M,S,j.right-1,q,O.left+1,T);break;case"right":D=Wi(M,S,O.right-1,q,j.left+1,T);break}if(D)return;if(h&&!e7(M,S,O)){F();return}if(!N&&v(M,S)){F();return}let B=!1;switch(m){case"top":{const W=U?gt/2:gt*4,X=U||V?i+W:i-W,ee=U?i-W:V?i+W:i-W,Q=a+gt+1,ie=V||U?j.bottom-gt:j.top,se=V?U?j.bottom-gt:j.top:j.bottom-gt;B=Ui(M,S,X,Q,ee,Q,j.left,ie,j.right,se);break}case"bottom":{const W=U?gt/2:gt*4,X=U||V?i+W:i-W,ee=U?i-W:V?i+W:i-W,Q=a-gt,ie=V||U?j.top+gt:j.bottom,se=V?U?j.top+gt:j.bottom:j.top+gt;B=Ui(M,S,X,Q,ee,Q,j.left,ie,j.right,se);break}case"left":{const W=G?gt/2:gt*4,X=G||J?a+W:a-W,ee=G?a-W:J?a+W:a-W,Q=i+gt+1,ie=J||G?j.right-gt:j.left,se=J?G?j.right-gt:j.left:j.right-gt;B=Ui(M,S,ie,j.top,se,j.bottom,Q,X,Q,ee);break}case"right":{const W=G?gt/2:gt*4,X=G||J?a+W:a-W,ee=G?a-W:J?a+W:a-W,Q=i-gt,ie=J||G?j.left+gt:j.right,se=J?G?j.left+gt:j.right:j.left+gt;B=Ui(M,S,Q,X,Q,ee,ie,j.top,se,j.bottom);break}}B?h||n.start(40,F):F()}};return r.__options={...e,blockPointerEvents:t},r}function k2(e,t,n){let{reference:r,floating:i}=e;const a=dn(t),l=Oc(t),s=Tc(l),d=rn(t),u=a==="y",f=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let x;switch(d){case"top":x={x:f,y:r.y-i.height};break;case"bottom":x={x:f,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:m};break;case"left":x={x:r.x-i.width,y:m};break;default:x={x:r.x,y:r.y}}const g=On(t);return g&&(x[l]+=h*(g==="end"?1:-1)*(n&&u?-1:1)),x}async function t7(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:l,elements:s,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:h=!1,padding:x=0}=or(t,e),g=d3(x),v=s[h?m==="floating"?"reference":"floating":m],y=Ao(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:d})),w=m==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(E))&&await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1},$=Ao(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:E,strategy:d}):w);return{top:(y.top-$.top+g.top)/C.y,bottom:($.bottom-y.bottom+g.bottom)/C.y,left:(y.left-$.left+g.left)/C.x,right:($.right-y.right+g.right)/C.x}}const n7=50,r7=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:t7},d=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:m}=k2(u,r,d),h=r,x=0;const g={};for(let b=0;b<a.length;b++){const v=a[b];if(!v)continue;const{name:y,fn:w}=v,{x:E,y:C,data:$,reset:M}=await w({x:f,y:m,initialPlacement:r,placement:h,strategy:i,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});f=E??f,m=C??m,g[y]={...g[y],...$},M&&x<n7&&(x++,typeof M=="object"&&(M.placement&&(h=M.placement),M.rects&&(u=M.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:f,y:m}=k2(u,h,d)),b=-1)}return{x:f,y:m,placement:h,strategy:i,middlewareData:g}},o7=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:l,initialPlacement:s,platform:d,elements:u}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...v}=or(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=rn(i),w=dn(s),E=rn(s)===s,C=await(d.isRTL==null?void 0:d.isRTL(u.floating)),$=h||(E||!b?[ga(s)]:b6(s)),M=g!=="none";!h&&M&&$.push(...C6(s,b,g,C));const S=[s,...$],P=await d.detectOverflow(t,v),N=[];let R=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&N.push(P[y]),m){const O=x6(i,l,C);N.push(P[O[0]],P[O[1]])}if(R=[...R,{placement:i,overflows:N}],!N.every(O=>O<=0)){var z,_;const O=(((z=a.flip)==null?void 0:z.index)||0)+1,j=S[O];if(j&&(!(m==="alignment"?w!==dn(j):!1)||R.every(U=>dn(U.placement)===w?U.overflows[0]>0:!0)))return{data:{index:O,overflows:R},reset:{placement:j}};let V=(_=R.filter(J=>J.overflows[0]<=0).sort((J,U)=>J.overflows[1]-U.overflows[1])[0])==null?void 0:_.placement;if(!V)switch(x){case"bestFit":{var F;const J=(F=R.filter(U=>{if(M){const G=dn(U.placement);return G===w||G==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(G=>G>0).reduce((G,I)=>G+I,0)]).sort((U,G)=>U[1]-G[1])[0])==null?void 0:F[0];J&&(V=J);break}case"initialPlacement":V=s;break}if(i!==V)return{reset:{placement:V}}}return{}}}},A3=new Set(["left","top"]);async function i7(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=rn(n),s=On(n),d=dn(n)==="y",u=A3.has(l)?-1:1,f=a&&d?-1:1,m=or(t,e);let{mainAxis:h,crossAxis:x,alignmentAxis:g}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof g=="number"&&(x=s==="end"?g*-1:g),d?{x:x*f,y:h*u}:{x:h*u,y:x*f}}const a7=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:l,middlewareData:s}=t,d=await i7(t,e);return l===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:l}}}}},l7=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:a}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:d={fn:w=>{let{x:E,y:C}=w;return{x:E,y:C}}},...u}=or(e,t),f={x:n,y:r},m=await a.detectOverflow(t,u),h=dn(i),x=Fc(h);let g=f[x],b=f[h];const v=(w,E)=>u3(E+m[w==="y"?"top":"left"],E,E-m[w==="y"?"bottom":"right"]);l&&(g=v(x,g)),s&&(b=v(h,b));const y=d.fn({...t,[x]:g,[h]:b});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[x]:l,[h]:s}}}}}},s7=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:i,y:a,placement:l,rects:s,middlewareData:d}=t,{offset:u=0,mainAxis:f=!0,crossAxis:m=!0}=or(e,t),h={x:i,y:a},x=dn(l),g=Fc(x);let b=h[g],v=h[x];const y=or(u,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:(n=y.mainAxis)!=null?n:0,crossAxis:(r=y.crossAxis)!=null?r:0};if(f){const $=g==="y"?"height":"width",M=s.reference[g]-s.floating[$]+w.mainAxis,S=s.reference[g]+s.reference[$]-w.mainAxis;b<M?b=M:b>S&&(b=S)}if(m){var E,C;const $=g==="y"?"width":"height",M=A3.has(rn(l)),S=s.reference[x]-s.floating[$]+(M&&((E=d.offset)==null?void 0:E[x])||0)+(M?0:w.crossAxis),P=s.reference[x]+s.reference[$]+(M?0:((C=d.offset)==null?void 0:C[x])||0)-(M?w.crossAxis:0);v<S?v=S:v>P&&(v=P)}return{[g]:b,[x]:v}}}},c7=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:a}=t,{apply:l=()=>{},...s}=or(e,t),d=await i.detectOverflow(t,s),u=rn(n),f=On(n),m=dn(n)==="y",{width:h,height:x}=r.floating;let g,b;u==="top"||u==="bottom"?(g=u,b=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=u,g=f==="end"?"top":"bottom");const v=x-d.top-d.bottom,y=h-d.left-d.right,w=Jr(x-d[g],v),E=Jr(h-d[b],y),C=t.middlewareData.shift,$=!C;let M=w,S=E;C!=null&&C.enabled.x&&(S=y),C!=null&&C.enabled.y&&(M=v),$&&!f&&(m?S=h-2*Ln(d.left,d.right):M=x-2*Ln(d.top,d.bottom)),await l({...t,availableWidth:S,availableHeight:M});const P=await i.getDimensions(a.floating);return h!==P.width||x!==P.height?{reset:{rects:!0}}:{}}}};function j3(e){const t=Qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=at(e),a=i?e.offsetWidth:n,l=i?e.offsetHeight:r,s=Qr(n)!==a||Qr(r)!==l;return s&&(n=a,r=l),{width:n,height:r,$:s}}function Qc(e){return tt(e)?e:e.contextElement}function Gr(e){const t=Qc(e);if(!at(t))return Vn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=j3(t);let l=(a?Qr(n.width):n.width)/r,s=(a?Qr(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const u7=Vn(0);function D3(e){const t=pt(e);return!Ec()||!t.visualViewport?u7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function d7(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===pt(e)}function wr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Qc(e);let l=Vn(1);t&&(r?tt(r)&&(l=Gr(r)):l=Gr(e));const s=d7(a,n,r)?D3(a):Vn(0);let d=(i.left+s.x)/l.x,u=(i.top+s.y)/l.y,f=i.width/l.x,m=i.height/l.y;if(a&&r){const h=pt(a),x=tt(r)?pt(r):r;let g=h,b=Ss(g);for(;b&&x!==g;){const v=Gr(b),y=b.getBoundingClientRect(),w=Qt(b),E=y.left+(b.clientLeft+parseFloat(w.paddingLeft))*v.x,C=y.top+(b.clientTop+parseFloat(w.paddingTop))*v.y;d*=v.x,u*=v.y,f*=v.x,m*=v.y,d+=E,u+=C,g=pt(b),b=Ss(g)}}return Ao({width:f,height:m,x:d,y:u})}function al(e,t){const n=Va(e).scrollLeft;return t?t.left+n:wr(Kn(e)).left+n}function k3(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-al(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function f7(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",l=Kn(r),s=t?La(t.floating):!1;if(r===l||s&&a)return n;let d={scrollLeft:0,scrollTop:0},u=Vn(1);const f=Vn(0),m=at(r);if((m||!a)&&((Gt(r)!=="body"||ni(l))&&(d=Va(r)),m)){const x=wr(r);u=Gr(r),f.x=x.x+r.clientLeft,f.y=x.y+r.clientTop}const h=l&&!m&&!a?k3(l,d):Vn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-d.scrollTop*u.y+f.y+h.y}}function m7(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function p7(e){const t=Va(e),n=e.ownerDocument.body,r=Ln(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Ln(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+al(e);const l=-t.scrollTop;return Qt(n).direction==="rtl"&&(a+=Ln(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:l}}const h7=25;function g7(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",i=pt(e),a=Kn(e),l=i.visualViewport;let s=a.clientWidth,d=a.clientHeight,u=0,f=0;if(l){const h=!Ec()||t==="fixed";r?h||(u=-l.offsetLeft,f=-l.offsetTop):(s=l.width,d=l.height,h&&(u=l.offsetLeft,f=l.offsetTop))}if(al(a)<=0){const h=a.ownerDocument,x=h.body,g=getComputedStyle(x),b=h.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(a.clientWidth-x.clientWidth-b),y=getComputedStyle(a).scrollbarGutter==="stable both-edges"?v/2:v;y<=h7&&(s-=y)}return{width:s,height:d,x:u,y:f}}function v7(e,t){const n=wr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Gr(e),l=e.clientWidth*a.x,s=e.clientHeight*a.y,d=i*a.x,u=r*a.y;return{width:l,height:s,x:d,y:u}}function H2(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=g7(e,n,t);else if(t==="document")r=p7(Kn(e));else if(tt(t))r=v7(t,n);else{const i=D3(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ao(r)}function x7(e,t){const n=t.get(e);if(n)return n;let r=Xr(e,[],!1).filter(s=>tt(s)&&Gt(s)!=="body"),i=null;const a=Qt(e).position==="fixed";let l=a?wn(e):e;for(;tt(l)&&!In(l);){const s=Qt(l),d=yc(l),u=i?i.position:a?"fixed":"";!d&&(u==="fixed"||u==="absolute"&&s.position==="static")?r=r.filter(m=>m!==l):i=s,l=wn(l)}return t.set(e,r),r}function b7(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?La(t)?[]:x7(t,this._c):[].concat(n),r],s=H2(t,l[0],i);let d=s.top,u=s.right,f=s.bottom,m=s.left;for(let h=1;h<l.length;h++){const x=H2(t,l[h],i);d=Ln(x.top,d),u=Jr(x.right,u),f=Jr(x.bottom,f),m=Ln(x.left,m)}return{width:u-m,height:f-d,x:m,y:d}}function y7(e){const{width:t,height:n}=j3(e);return{width:t,height:n}}function E7(e,t,n){const r=at(t),i=Kn(t),a=n==="fixed",l=wr(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const d=Vn(0);if((r||!a)&&((Gt(t)!=="body"||ni(i))&&(s=Va(t)),r)){const h=wr(t,!0,a,t);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}!r&&i&&(d.x=al(i));const u=i&&!r&&!a?k3(i,s):Vn(0),f=l.left+s.scrollLeft-d.x-u.x,m=l.top+s.scrollTop-d.y-u.y;return{x:f,y:m,width:l.width,height:l.height}}function is(e){return Qt(e).position==="static"}function L2(e,t){if(!at(e)||Qt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Kn(e)===n&&(n=n.ownerDocument.body),n}function H3(e,t){const n=pt(e);if(La(e))return n;if(!at(e)){let i=wn(e);for(;i&&!In(i);){if(tt(i)&&!is(i))return i;i=wn(i)}return n}let r=L2(e,t);for(;r&&_h(r)&&is(r);)r=L2(r,t);return r&&In(r)&&is(r)&&!yc(r)?n:r||Uh(e)||n}const w7=async function(e){const t=this.getOffsetParent||H3,n=this.getDimensions,r=await n(e.floating);return{reference:E7(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function C7(e){return Qt(e).direction==="rtl"}const L3={convertOffsetParentRelativeRectToViewportRelativeRect:f7,getDocumentElement:Kn,getClippingRect:b7,getOffsetParent:H3,getElementRects:w7,getClientRects:m7,getDimensions:y7,getScale:Gr,isElement:tt,isRTL:C7};function V3(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $7(e,t,n){let r=null,i;const a=Kn(e);function l(){var f;clearTimeout(i),(f=r)==null||f.disconnect(),r=null}function s(f,m){f===void 0&&(f=!1),m===void 0&&(m=1),l();const h=e.getBoundingClientRect(),{left:x,top:g,width:b,height:v}=h;if(f||t(),!b||!v)return;const y=mr(g),w=mr(a.clientWidth-(x+b)),E=mr(a.clientHeight-(g+v)),C=mr(x),M={rootMargin:-y+"px "+-w+"px "+-E+"px "+-C+"px",threshold:Ln(0,Jr(1,m))||1};let S=!0;function P(N){const R=N[0].intersectionRatio;if(!V3(h,e.getBoundingClientRect()))return s();if(R!==m){if(!S)return s();R?s(!1,R):i=setTimeout(()=>{s(!1,1e-7)},1e3)}S=!1}try{r=new IntersectionObserver(P,{...M,root:a.ownerDocument})}catch{r=new IntersectionObserver(P,M)}r.observe(e)}const d=pt(e),u=()=>s(n);return d.addEventListener("resize",u),s(!0),()=>{d.removeEventListener("resize",u),l()}}function V2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=Qc(e),f=i||a?[...u?Xr(u):[],...t?Xr(t):[]]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n),a&&y.addEventListener("resize",n)});const m=u&&s?$7(u,n,a):null;let h=-1,x=null;l&&(x=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&x&&t&&(x.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var E;(E=x)==null||E.observe(t)})),n()}),u&&!d&&x.observe(u),t&&x.observe(t));let g,b=d?wr(e):null;d&&v();function v(){const y=wr(e);b&&!V3(b,y)&&n(),b=y,g=requestAnimationFrame(v)}return n(),()=>{var y;f.forEach(w=>{i&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),m==null||m(),(y=x)==null||y.disconnect(),x=null,d&&cancelAnimationFrame(g)}}const M7=a7,S7=l7,N7=o7,P7=c7,R7=s7,I7=(e,t,n)=>{const r=new Map,i=n??{},a={...L3,...i.platform,_c:r};return r7(e,t,{...i,platform:a})};var F7=typeof document<"u",T7=function(){},oa=F7?o.useLayoutEffect:T7;function ya(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ya(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!ya(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function _3(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _2(e,t){const n=_3(e);return Math.round(t*n)/n}function as(e){const t=p.useRef(e);return oa(()=>{t.current=e}),t}function O7(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:d,open:u}=e,[f,m]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,x]=p.useState(r);ya(h,r)||x(r);const[g,b]=p.useState(null),[v,y]=p.useState(null),w=p.useCallback(U=>{U!==M.current&&(M.current=U,b(U))},[]),E=p.useCallback(U=>{U!==S.current&&(S.current=U,y(U))},[]),C=a||g,$=l||v,M=p.useRef(null),S=p.useRef(null),P=p.useRef(f),N=d!=null,R=as(d),z=as(i),_=as(u),F=p.useCallback(()=>{if(!M.current||!S.current)return;const U={placement:t,strategy:n,middleware:h};z.current&&(U.platform=z.current),I7(M.current,S.current,U).then(G=>{const I={...G,isPositioned:_.current!==!1};O.current&&!ya(P.current,I)&&(P.current=I,on.flushSync(()=>{m(I)}))})},[h,t,n,z,_]);oa(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,m(U=>({...U,isPositioned:!1})))},[u]);const O=p.useRef(!1);oa(()=>(O.current=!0,()=>{O.current=!1}),[]),oa(()=>{if(C&&(M.current=C),$&&(S.current=$),C&&$){if(R.current)return R.current(C,$,F);F()}},[C,$,F,R,N]);const j=p.useMemo(()=>({reference:M,floating:S,setReference:w,setFloating:E}),[w,E]),V=p.useMemo(()=>({reference:C,floating:$}),[C,$]),J=p.useMemo(()=>{const U={position:n,left:0,top:0};if(!V.floating)return U;const G=_2(V.floating,f.x),I=_2(V.floating,f.y);return s?{...U,transform:"translate("+G+"px, "+I+"px)",..._3(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:I}},[n,s,V.floating,f.x,f.y]);return p.useMemo(()=>({...f,update:F,refs:j,elements:V,floatingStyles:J}),[f,F,j,V,J])}const z7=(e,t)=>{const n=M7(e);return{name:n.name,fn:n.fn,options:[e,t]}},A7=(e,t)=>{const n=S7(e);return{name:n.name,fn:n.fn,options:[e,t]}},j7=(e,t)=>({fn:R7(e).fn,options:[e,t]}),D7=(e,t)=>{const n=N7(e);return{name:n.name,fn:n.fn,options:[e,t]}},k7=(e,t)=>{const n=P7(e);return{name:n.name,fn:n.fn,options:[e,t]}};function H7(e,t,n,r,i,a,l,s,d,u=2){const f=S6(n.current,{event:e,orientation:r,loopFocus:i,rtl:a,cols:u,disabledIndices:l,minIndex:s,maxIndex:d,prevIndex:t>d?s:t,stopEvent:!0});return _n(n.current,f)?void 0:f}function di(e){return e==null?mt:e.type.startsWith("key")?Pc:e.type.startsWith("mouse")||e.type.startsWith("pointer")?s3:mt}const eu=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(eu.displayName="ComboboxRootContext");const tu=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(tu.displayName="ComboboxFloatingContext");const nu=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(nu.displayName="ComboboxDerivedItemsContext");const ru=p.createContext(!1);process.env.NODE_ENV!=="production"&&(ru.displayName="ComboboxHasItemsContext");const ou=p.createContext("");process.env.NODE_ENV!=="production"&&(ou.displayName="ComboboxInputValueContext");function Xt(){const e=p.useContext(eu);if(!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: ComboboxRootContext is missing. Combobox parts must be placed within <Combobox.Root>.":Ve(22));return e}function ll(){const e=p.useContext(tu);if(!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: ComboboxFloatingContext is missing. Combobox parts must be placed within <Combobox.Root>.":Ve(23));return e}function fi(){const e=p.useContext(nu);if(!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: ComboboxItemsContext is missing. Combobox parts must be placed within <Combobox.Root>.":Ve(24));return e}function iu(){return p.useContext(ou)}function L7(){return p.useContext(ru)}function V7(e,t,n=Object.is){const{length:r}=e;if(r!==t.length)return!1;for(let i=0;i<r;i+=1)if(!n(e[i],t[i]))return!1;return!0}const sl=(e,t)=>Object.is(e,t);function pn(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function B3(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!V7(e,t,(r,i)=>pn(r,i,n)):e!==t}function Ea(e,t,n){return e?e.some(r=>r===void 0?!1:pn(t,r,n)):!1}function vr(e,t,n){return e?e.findIndex(r=>r===void 0?!1:pn(r,t,n)):-1}function _7(e,t){if(t!==sl)return r=>Ea(e,r,t);const n=new Set(e);return n.delete(void 0),r=>n.has(r)&&(r!==0||e.some(i=>Object.is(r,i)))}function Io(e,t,n,r){const i=r&&Array.isArray(t)?e.findIndex(_7(t,n)):vr(e,t,n);return i===-1?null:i}function G3(e,t,n,r,i,a){return Ea(r,t,i)?a!=null&&e>a&&Ea(r,n[a],i)?a:e:e===a?Io(n,r,i,!0):a}function U3(e,t,n){return e.filter(r=>!pn(t,r,n))}function Os(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function B7(e){return typeof e=="object"&&e!=null&&Array.isArray(e.items)}function au(e){return B7(e==null?void 0:e[0])}function ia(e){return au(e)?e.flatMap(t=>t.items):e}function W3(e){if(!Array.isArray(e))return e!=null&&"null"in e;const t=e;if(au(t)){for(const n of t)for(const r of n.items)if(r&&r.value==null&&r.label!=null)return!0;return!1}for(const n of t)if(n&&n.value==null&&n.label!=null)return!0;return!1}function tr(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return Os(e)}function bn(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?Os(e.value):Os(e)}function K3(e,t,n){function r(){return tr(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e=="object"&&"label"in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??r();if(Array.isArray(t)){const a=ia(t);if(e==null||typeof e!="object"){const l=a.find(s=>s.value===e);return l&&l.label!=null?l.label:r()}if("value"in e){const l=a.find(s=>s&&s.value===e.value);if(l&&l.label!=null)return l.label}}return r()}function G7(e,t,n){return e.reduce((r,i,a)=>(a>0&&r.push(", "),r.push(c.jsx(p.Fragment,{children:K3(i,t,n)},a)),r),[])}const U7={id:e=>e.id,labelId:e=>e.labelId,items:e=>e.items,selectedValue:e=>e.selectedValue,hasSelectionChips:e=>{const t=e.selectedValue;return Array.isArray(t)&&t.length>0},hasSelectedValue:e=>{const{selectedValue:t,selectionMode:n}=e;return t==null?!1:n==="multiple"&&Array.isArray(t)?t.length>0:!0},hasNullItemLabel:(e,t)=>t?W3(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMounted:e=>e.forceMounted,inline:e=>e.inline,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{const n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(i=>pn(t,i,n)):pn(t,r,n)},transitionStatus:e=>e.transitionStatus,popupProps:e=>e.popupProps,listProps:e=>e.listProps,inputProps:e=>e.inputProps,triggerProps:e=>e.triggerProps,itemRoot:e=>e.itemRoot,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupId:e=>e.popupId,triggerElement:e=>e.triggerElement,inputElement:e=>e.inputElement,inputGroupElement:e=>e.inputGroupElement,popupSide:e=>e.popupSide,openMethod:e=>e.openMethod,inputInsidePopup:e=>e.inputInsidePopup,inputOwnsFormValue:e=>e.inputOwnsFormValue,selectionMode:e=>e.selectionMode,name:e=>e.name,form:e=>e.form,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,grid:e=>e.grid,virtualized:e=>e.virtualized,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,modal:e=>e.modal,autoHighlight:e=>e.autoHighlight},W7="data-valid",K7="data-invalid",cl={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},q3={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},q7={disabled:!1,...q3},Mn={valid(e){return e===null?null:e?{[W7]:""}:{[K7]:""}}},Y3={invalid:void 0,name:void 0,validityData:{state:cl,errors:[],error:"",value:"",initialValue:null},setValidityData:Qe,disabled:void 0,setTouched:Qe,setDirty:Qe,setFilled:Qe,setFocused:Qe,focusOwnerRef:{current:void 0},validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:q7,registerFieldControl:Qe,validation:{getValidationProps:(e,t=We)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Qe,getInputControl:()=>null,commit:async()=>{},change:Qe}},ul=p.createContext(Y3);process.env.NODE_ENV!=="production"&&(ul.displayName="FieldRootContext");function Ut(e=!0){const t=p.useContext(ul);if(t.setValidityData===Qe&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.":Ve(28));return t}function mi(e,t,n,r,i=!0,a){const{registerFieldControl:l}=Ut(),s=Pt(()=>Symbol());ce(()=>{const d=s.current;if(!i){l(d,void 0);return}l(d,{controlRef:e,getValue:r,id:t,name:a,value:n})},[e,i,r,t,a,l,s,n]),ce(()=>{const d=s.current;return()=>{l(d,void 0)}},[l,s])}const lu=p.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Qe,validationMode:"onSubmit",submitCountRef:{current:0}});process.env.NODE_ENV!=="production"&&(lu.displayName="FormContext");function Yn(){return p.useContext(lu)}function ft(e){return li(e,"base-ui")}const su=p.createContext({controlId:void 0,registerControlId:Qe,resetControlId:Qe,labelId:void 0,setLabelId:Qe,messageIds:[],setMessageIds:Qe,getDescriptionProps:e=>e});process.env.NODE_ENV!=="production"&&(su.displayName="LabelableContext");function sn(){return p.useContext(su)}function Sr(e={}){const{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=sn(),l=ft(),s=Pt(()=>Symbol()),d=p.useRef(!1),u=p.useRef(!1),f=de(()=>{!d.current||i===Qe||(d.current=!1,i(s.current,void 0))});return ce(()=>{if(!n||i===Qe){f();return}let m;if(t!==void 0)u.current=!0,m=t;else if(u.current)m=l;else{a();return}if(m===void 0){f();return}d.current=!0,i(s.current,m)},[t,n,i,a,l,s,f]),ce(()=>f,[f]),(n?r:void 0)??t??l}function X3(e){return e==null?void 0:`${e}-popup`}function Y7(e,t){return(n,r)=>n==null?!1:e.contains(n,r,t)}function cu(e){return Array.isArray(e)?e.map(t=>cu(t)).join(","):e==null?"":String(e)}const B2=new Map;function X7(e={}){const{locale:t,...n}=e,r={usage:"search",sensitivity:"base",ignorePunctuation:!0,...n},i=`${cu(t)}|${JSON.stringify(r)}`,a=B2.get(i);if(a)return a;const l=new Intl.Collator(t,r),s={contains(d,u,f){if(!u)return!0;const m=tr(d,f);for(let h=0;h<=m.length-u.length;h+=1)if(l.compare(m.slice(h,h+u.length),u)===0)return!0;return!1},startsWith(d,u,f){if(!u)return!0;const m=tr(d,f);return l.compare(m.slice(0,u.length),u)===0},endsWith(d,u,f){if(!u)return!0;const m=tr(d,f),h=u.length;return m.length>=h&&l.compare(m.slice(m.length-h),u)===0}};return B2.set(i,s),s}const Z7=X7;function J7(e){const t=p.useRef(""),n=p.useCallback(i=>{i.defaultPrevented||(t.current=i.pointerType,e(i,i.pointerType))},[e]);return{onClick:p.useCallback(i=>{if(i.detail===0){e(i,"keyboard");return}"pointerType"in i?e(i,i.pointerType):e(i,t.current),t.current=""},[e]),onPointerDown:n}}function un(e,t){const n=p.useRef(e),r=de(t);ce(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function uu(e,t){const n=de((a,l)=>{(typeof e=="function"?e():e)||t(l||(ri?"touch":""))}),{onClick:r,onPointerDown:i}=J7(n);return p.useMemo(()=>({onClick:r,onPointerDown:i}),[r,i])}function du(e){const[t,n]=p.useState(null),r=uu(e,n);return un(e,i=>{i&&!e&&n(null)}),p.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function Q7(e,t=!1){const{overflowY:n}=Qt(e);return n!=="auto"&&n!=="scroll"?!1:t?e.clientHeight>0:e.scrollHeight>e.clientHeight}const Z3=Symbol("none"),ls={value:Z3,index:-1},J3=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(J3.displayName="DirectionContext");function Nr(){const e=p.useContext(J3);return(e==null?void 0:e.direction)??"ltr"}function e8(e,t,n){const r=e.get(t);if(r!==void 0||n===sl)return r;for(const[i,a]of e)if(pn(i,t,n))return a}function t8(e){const{id:t,onOpenChangeComplete:n,defaultSelectedValue:r=null,selectedValue:i,onSelectedValueChange:a,defaultInputValue:l,inputValue:s,open:d,defaultOpen:u=!1,selectionMode:f,onItemHighlighted:m,name:h,form:x,disabled:g=!1,readOnly:b=!1,required:v=!1,inputRef:y,grid:w=!1,items:E,filteredItems:C,filter:$,filterQuery:M,openOnInputClick:S=!0,autoHighlight:P=!1,keepHighlight:N=!1,highlightItemOnHover:R=!0,loopFocus:z=!0,itemToStringLabel:_,itemToStringValue:F,isItemEqualToValue:O=sl,virtualized:j=!1,inline:V=!1,fillInputOnItemPress:J=!0,modal:U=!1,limit:G=-1,autoComplete:I="list",formAutoComplete:A,locale:T,submitOnItemClick:q=!1}=e,{clearErrors:D}=Yn(),{setDirty:B,validityData:W,setFilled:X,name:ee,disabled:Q,setTouched:ie,setFocused:se,validationMode:Z,validation:he}=Ut(),re=Nr(),fe=Sr({id:t}),ue=Z7({locale:T}),ne=Array.isArray(E)?null:E;if(ne&&typeof ne.label!="function")throw new Error(process.env.NODE_ENV!=="production"?"Base UI: the `items` prop received an object that is not a collection, so its items cannot be read. Pass an array of items, an array of groups with items, or the result of `createItems()`. See https://base-ui.com/react/components/combobox#createitems":Ve(100));const me=ne?ne.data:E,le=ne==null?void 0:ne.value,we=le?void 0:me,Y=p.useMemo(()=>{if(!C||!le)return;const Ee=ia(C),Me=Ee.map(le);let _e;return{values:Me,findItem(ct,bt){if(!_e){_e=new Map;for(let Dt=0;Dt<Me.length;Dt+=1)_e.has(Me[Dt])||_e.set(Me[Dt],Ee[Dt])}return e8(_e,ct,bt)}}},[C,le]),ae=p.useMemo(()=>ne?Ee=>ne.label(Ee,O,Me=>{const _e=Y==null?void 0:Y.findItem(Me,O);return _e!=null?ne.itemLabel(_e):tr(Me,_)}):_,[ne,_,Y,O]),Pe=p.useMemo(()=>ne?Object.assign(Ee=>ne.itemLabel(Ee),{selected:Ee=>tr(Ee,ae)}):_,[ne,ae,_]);function je(Ee){return tr(Ee,ae)}const[te,oe]=p.useState(!1),[be,xe]=p.useState(null),Ce=p.useRef(be),Te=p.useRef([]),Oe=p.useRef([]),He=p.useRef(null),Ge=p.useRef(null),Ze=p.useRef(null),Ht=p.useRef(null),Rt=p.useRef(null),It=p.useRef(!1),ze=p.useRef(null),nt=p.useRef(null),ot=p.useRef(null),lt=p.useRef(ls),rt=p.useRef(null),Je=p.useRef([]),Mt=p.useRef(null),it=Q||g,Ft=ee??h,vt=f==="multiple",ye=f==="single",Ie=s!==void 0||l!==void 0,De=me!==void 0,st=C!==void 0;let Ke;P==="always"?Ke="always":Ke=P?"input-change":!1;const[Ne,et]=fn({controlled:i,default:vt?r??qt:r,name:"Combobox",state:"selectedValue"}),At=p.useMemo(()=>$===null?()=>!0:$!==void 0?$:Y7(ue,Pe),[$,ue,Pe]),Zt=Pt(()=>Ie?l??"":ye?je(Ne):"").current,[L,pe]=fn({controlled:s,default:Zt,name:"Combobox",state:"inputValue"}),[ve,Ae]=fn({controlled:d,default:u,name:"Combobox",state:"open"}),Ye=au(me),ke=!ve&&be!==null?be:String(L).trim(),Le=ye?je(Ne):"",Ue=ye&&!te&&ke!==""&&Le.length===ke.length&&ue.contains(Le,ke),yt=Ue?"":M??ke,xt=De&&st&&Ue&&(!ne||ne.hasValue(Ne,O)),ht=p.useMemo(()=>me?ia(me):qt,[me]),jt=p.useMemo(()=>{if(C&&!xt)return C;if(!me)return qt;if(Ye){const Me=me,_e=[];let ct=0;for(const bt of Me){if(G>-1&&ct>=G)break;const Dt=G>-1?G-ct:1/0,Et=yt===""?bt.items.slice(0,Dt):[];if(yt!=="")for(const Lt of bt.items){if(Et.length>=Dt)break;At(Lt,yt,Pe)&&Et.push(Lt)}if(Et.length>0){const Lt={...bt,items:Et};_e.push(Lt),ct+=Et.length}}return _e}if(yt==="")return G>-1?ht.slice(0,G):ht;const Ee=[];for(const Me of ht){if(G>-1&&Ee.length>=G)break;At(Me,yt,Pe)&&Ee.push(Me)}return Ee},[C,xt,me,Ye,yt,G,At,Pe,ht]),St=p.useMemo(()=>{if(Y&&jt===C)return Y.values;const Ee=ia(jt);return le?Ee.map(Me=>le(Me)):Ee},[jt,C,Y,le]),Fe=Pt(()=>{let Ee=null;return V&&ve&&De&&f!=="none"&&(Ee=Io(St,Ne,O,vt)),new Cr({id:fe,labelId:void 0,selectedValue:Ne,open:ve,items:we,selectionMode:f,name:Ft,form:x,disabled:it,readOnly:b,required:v,grid:w,virtualized:j,openOnInputClick:S,itemToStringLabel:ae,isItemEqualToValue:O,modal:U,autoHighlight:Ke,submitOnItemClick:q,hasInputValue:Ie,mounted:!1,forceMounted:!1,transitionStatus:"idle",inline:V,activeIndex:null,selectedIndex:Ee,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemRoot:{props:We,id:fe,selectionMode:f,disabled:it,readOnly:b,isItemEqualToValue:O},positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:f==="none"},{onOpenChangeComplete:Qe,setOpen:Qe,setInputValue:Qe,setSelectedValue:Qe,setIndices:Qe,handleSelection:Qe,forceMount:Qe,requestSubmit:Qe,listRef:Te,labelsRef:Oe,popupRef:He,emptyRef:Rt,inputRef:Ge,startDismissRef:Ze,endDismissRef:Ht,chipsContainerRef:ze,clearRef:nt,valuesRef:Je,pointerDownItemRef:Mt,selectionEventRef:ot},U7)}).current,zt=f==="none"?L:Ne,bo=p.useMemo(()=>f==="none"?zt:Array.isArray(Ne)?Ne.map(Ee=>bn(Ee,F)):bn(Ne,F),[zt,F,f,Ne]),Ul=de(m),yo=de(n),Pd=Fe.useState("activeIndex"),m5=Fe.useState("selectedIndex"),Pi=Fe.useState("positionerElement"),Pr=Fe.useState("listElement"),ur=Fe.useState("triggerElement"),Rr=Fe.useState("inputElement"),p5=Fe.useState("inputGroupElement"),Bt=Fe.useState("inline"),hn=Fe.useState("inputInsidePopup"),h5=Fe.useState("inputOwnsFormValue"),Rd=ye&&!hn&&L===Le,g5=Nt(ur),{openMethod:v5,triggerProps:Id}=du(ve),x5=de(()=>bo);mi(hn?g5:Ge,fe,zt,x5,!it,h);const Fd=de(()=>{me?Oe.current=St.map(je):Fe.set("forceMounted",!0)}),Ir=de((Ee,Me,_e,ct)=>{if(Me===-1){if(lt.current===ls)return;lt.current=ls}else lt.current={value:Ee,index:Me};Ul(Ee,Nc(_e,ct,{index:Me}))}),jn=de(Ee=>{const Me={};Ee.activeIndex!==void 0&&(Me.activeIndex=Ee.activeIndex),Ee.selectedIndex!==void 0&&(Me.selectedIndex=Ee.selectedIndex),Fe.update(Me);const _e=Ee.activeIndex;if(_e===void 0)return;const ct=Ee.type||mt;_e===null?Ir(void 0,-1,ct,Ee.event):Ir(Je.current[_e],_e,ct,Ee.event)}),Nn=de((Ee,Me)=>{var _e;if((_e=e.onInputValueChange)==null||_e.call(e,Ee,Me),!Me.isCanceled){if(It.current=Me.reason===Pn,Me.reason===Lr){ve&&be!==null&&xe(null);const ct=Me.event,bt=ct.inputType;if(ct.type==="compositionend"||bt!=null&&bt!==""&&bt!=="insertReplacementText"){const Et=Ee.trim()!=="";Et&&oe(!0),rt.current={hasQuery:Et};const Lt=Fe.state.listElement;if(!Fe.state.virtualized&&Lt){const nn=He.current;for(const tn of Xr(Lt.firstElementChild??Lt)){if(!at(tn)||(nn?!Re(nn,tn):tn.getAttribute("role")==="dialog"))break;if(Q7(tn)){tn.scrollTop=0;break}}}Et&&Ke&&Fe.state.activeIndex==null&&(ve||Bt)&&Fe.set("activeIndex",0)}}else Me.reason===Pn&&Ee===""&&Fe.state.inputInsidePopup&&(rt.current={hasQuery:!1,selection:!0});pe(Ee)}}),Td=de(Ee=>{const Me=!Ee&&hn&&!Bt&&L!==""&&(String(L).trim()===be||L===Le);!Ee&&(Me||L===""||Rd)&&oe(!1),xe(null),Me&&Nn("",$e(Pn))}),[b5,Od]=p.useState(!1),dr=de((Ee,Me)=>{var bt,Dt;if(ve===Ee)return;Me.reason===$r&&De&&St.length===0&&!Rt.current&&Me.allowPropagation();const _e=Me,ct=ci(_e);if((bt=e.onOpenChange)==null||bt.call(e,Ee,_e),(Dt=rt.current)!=null&&Dt.hasQuery&&Me.reason===Lr===Me.isCanceled&&(rt.current=null),!Me.isCanceled&&(Ee&&be!==null&&Td(Me.reason===Lr),!Ee&&te&&(ye?(Bt||xe(ke),ke===""&&oe(!1)):vt&&(Bt||xe(ke),hn&&jn({activeIndex:null}),(!hn||Bt)&&Nn("",$e(Pn,Me.event,void 0,{isItemPress:Me.reason===Tn})))),Ee||Od(ct()),Ae(Ee),!Ee&&hn&&(Me.reason===zn||Me.reason===ai)&&(ie(!0),se(!1),Z==="onBlur"))){const Et=f==="none"?L:Ne;he.commit(Et)}}),Fr=de((Ee,Me)=>{if(a==null||a(Ee,Me),Me.isCanceled)return;et(Ee),(f==="none"&&He.current&&J||ye&&!Fe.state.inputInsidePopup)&&Nn(je(Ee),$e(Me.reason,Me.event))}),y5=de((Ee,Me)=>{var Et;const _e=Ct(Ee),ct=ot.current??Ee;ot.current=null;const bt=$e(Tn,ct),Dt=(Et=Bn(_e,"a"))==null?void 0:Et.getAttribute("href");if(Dt){Dt.startsWith("#")&&dr(!1,bt);return}if(vt){const Lt=Array.isArray(Ne)?Ne:[],nn=Ea(Lt,Me,O),tn=nn?U3(Lt,Me,O):[...Lt,Me];if(Fr(tn,bt),bt.isCanceled||!(Ge.current?Ge.current.value.trim()!=="":!1))return;if(Fe.state.inputInsidePopup){Nn("",$e(Pn,bt.event,void 0,{isItemPress:!0}));const Kl=rt.current;Kl&&!nn&&(Kl.toggledValue=Me)}else dr(!1,bt)}else{if(Fr(Me,bt),bt.isCanceled)return;dr(!1,bt)}}),E5=de(()=>{var Me,_e;const Ee=((Me=he.inputRef.current)==null?void 0:Me.form)??((_e=Fe.state.inputElement)==null?void 0:_e.form);Ee&&typeof Ee.requestSubmit=="function"&&Ee.requestSubmit()}),w5=de(()=>{if(yo==null||yo(!1),oe(!1),xe(null),jn(f==="none"?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),vt&&Ge.current&&Ge.current.value!==""&&!It.current&&Nn("",$e(Pn)),ye)if(Fe.state.inputInsidePopup)Ge.current&&Ge.current.value!==""&&Nn("",$e(Pn));else{const Ee=je(Ne);Ge.current&&Ge.current.value!==Ee&&Nn(Ee,$e(Ee===""?Pn:mt))}}),Ri=p.useMemo(()=>Bt&&Pi?{current:Bn(Pi,'[role="dialog"]')}:He,[Bt,Pi]),{mounted:C5,transitionStatus:zd,forceUnmount:Ad}=Wc({open:ve,ref:Ri,preventUnmountOnClose:b5,setPreventUnmountOnClose:Od,onUnmount:w5});p.useImperativeHandle(e.actionsRef,()=>({unmount:Ad,close:()=>dr(!1,$e(oo))}),[Ad,dr]),ce(function(){const Me=Ce.current!==null&&be===null;if(Ce.current=be,ve&&(!Me||!De)||(ve||(Mt.current=null),f==="none"))return;const _e=De?St:Je.current;jn({selectedIndex:Io(_e,Ne,O,vt)})},[ve,be,Ne,f,vt,De,St,O,jn]),ce(()=>{me&&(Je.current=St,Te.current.length=St.length)},[me,St]),ce(()=>{var Ee;!ve&&((Ee=rt.current)!=null&&Ee.hasQuery)&&(rt.current=null)},[ve]),ce(()=>{var Et;if(!ve&&Bt&&Ri.current){rt.current=null;return}const Ee=De||st?St:Je.current,Me=rt.current;if(Me){const Lt=ve||Bt||((Et=Fe.state.positionerElement)==null?void 0:Et.hidden)===!1;if(Me.hasQuery){const nn=Ge.current;!Ke||String(L).trim()===""||Bt&&Ke!=="always"&&(!nn||Kt(nn.ownerDocument)!==nn)?rt.current=null:Lt&&(Ee[0]!==void 0||!De&&!st)&&(Fe.set("activeIndex",0),rt.current=null)}else if(String(L).trim()===""&&(rt.current=null,Lt)){const nn=Me.selection;Ke==="always"&&!nn&&Fe.state.selectionMode==="none"&&Fe.set("activeIndex",0),queueMicrotask(()=>{if(!Fe.state.open&&(!Fe.state.inline||Ri.current)||Ge.current&&Ge.current.value.trim()!=="")return;const tn=Fe.state.selectedValue,Or=Fe.state.selectionMode==="multiple";if(Or&&Array.isArray(tn)?tn.length>0:Fe.state.selectionMode!=="none"&&tn!=null){const Kd=De||st?St:Je.current,qd=vr(Kd,Me.toggledValue,Fe.state.isItemEqualToValue);Fe.set("activeIndex",qd!==-1?qd:Io(Kd,tn,Fe.state.isItemEqualToValue,Or))}else nn?Fe.set("activeIndex",null):Ke==="always"&&Fe.set("activeIndex",0)})}}if(!ve&&!Bt)return;const _e=Fe.state.activeIndex;if(_e==null){if(Ke==="always"&&Ee.length>0){Fe.set("activeIndex",0);return}Ir(void 0,-1,mt);return}if(_e>=Ee.length){Ir(void 0,-1,mt),Fe.set("activeIndex",null);return}const ct=Ee[_e],bt=lt.current.value,Dt=bt!==Z3&&pn(ct,bt,Fe.state.isItemEqualToValue);(lt.current.index!==_e||!Dt)&&Ir(ct,_e,mt)},[Pd,Ke,Ir,st,De,St,Bt,ve,Ri,Fe,L]),ce(()=>{if(f==="none"){X(String(L)!=="");return}X(vt?Array.isArray(Ne)&&Ne.length>0:Ne!=null)},[X,f,L,Ne,vt]),p.useEffect(()=>{De&&Ke&&St.length===0&&jn({activeIndex:null})},[De,Ke,St.length,jn]);function $5(){ve&&ke!==""&&ke!==String(Zt)&&!Rd&&oe(!0)}function M5(){ve&&be!==null&&Td(!1)}let jd=!1;function Dd(){!jd&&L!==Le&&(jd=!0,Nn(Le,$e(mt)))}function S5(){f!=="none"&&(D(Ft),B(B3(Ne,W.initialValue,O)),he.change(Ne),ye&&!Ie&&!hn&&Dd())}function kd(){ye&&!Ie&&!hn&&!te&&Dd()}function N5(){f==="none"&&(D(Ft),B(L!==W.initialValue),he.change(L))}un(ke,$5),un(ve,M5),un(Ne,S5),un(Le,kd),un(me,kd),un(L,N5);const Ii=T3({open:Bt?!0:ve,onOpenChange:dr,elements:{reference:hn?ur:Rr,floating:Pi}}),Hd=w?"grid":"listbox",Fi=ve||Bt,Ld=Fi?"true":"false",Ti=p.useMemo(()=>{const Ee=(Rr==null?void 0:Rr.tagName)==="INPUT",Me=Rr==null||Ee,_e=Me||Fi,ct=Me?{autoComplete:"off",spellCheck:"false",autoCorrect:"off",autoCapitalize:"none"}:{};return _e&&(ct.role="combobox",ct["aria-expanded"]=Ld,ct["aria-haspopup"]=Hd,ct["aria-controls"]=Fi?Pr==null?void 0:Pr.id:void 0,ct["aria-autocomplete"]=b?"none":I),{reference:ct,floating:{role:"presentation"}}},[Rr,Fi,Ld,Hd,Pr==null?void 0:Pr.id,I,b]),Vd=Mr(Ii,{enabled:!it&&S,event:"mousedown-only",toggle:!1,touchOpenDelay:hn?0:100,reason:l3}),Oi=ao(Ii,{enabled:!it&&!Bt,outsidePressEvent:{mouse:"sloppy",touch:"intentional"},bubbles:Bt?!0:void 0,outsidePress(Ee){const Me=Ct(Ee);return!Re(ur,Me)&&!Re(nt.current,Me)&&!Re(ze.current,Me)&&!Re(p5,Me)}}),Tr=Zc(Ii,{enabled:!it,id:fe,listRef:Te,activeIndex:Pd,selectedIndex:m5,virtual:!0,loopFocus:z,allowEscape:z&&!Ke,focusItemOnOpen:te||f==="none"&&!Ke?!1:"auto",focusItemOnHover:R,resetOnPointerLeave:!N,orientation:w?"horizontal":void 0,rtl:re==="rtl",disabledIndices:qt,grid:w?H7:void 0,onNavigate(Ee,Me){!Me&&!ve&&!(Bt&&Ee===null)||zd==="ending"||jn({activeIndex:Ee,type:di(Me),event:Me==null?void 0:Me.nativeEvent})}}),_d=p.useMemo(()=>_t(Tr.reference,{onKeyDown(Ee){w&&Fe.state.activeIndex==null&&(Ee.key==="ArrowLeft"||Ee.key==="ArrowRight")&&Ee.preventBaseUIHandler()}},Oi.reference,Vd.reference,Ti.reference),[Tr.reference,Oi.reference,Vd.reference,Ti.reference,w,Fe]),Bd=p.useMemo(()=>_t(lo,Oi.floating),[Oi.floating]),Gd=p.useMemo(()=>_t(Tr.floating,Ti.floating),[Tr.floating,Ti.floating]),Ud=p.useMemo(()=>{const Ee=Tr.item;return{props:Ee?{...Ee,onFocus:void 0}:We,id:fe,selectionMode:f,disabled:it,readOnly:b,isItemEqualToValue:O}},[Tr.item,fe,f,it,b,O]);Fe.useContextCallback("setOpen",dr),Fe.useContextCallback("setInputValue",Nn),Fe.useContextCallback("setSelectedValue",Fr),Fe.useContextCallback("setIndices",jn),Fe.useContextCallback("handleSelection",y5),Fe.useContextCallback("forceMount",Fd),Fe.useContextCallback("requestSubmit",E5),Fe.useContextCallback("onOpenChangeComplete",n),Jf(()=>{Fe.update({inline:V,popupProps:Bd,listProps:Gd,inputProps:_d,triggerProps:Id,itemRoot:Ud})});const Wd={id:fe,selectedValue:Ne,open:ve,mounted:C5,transitionStatus:zd,items:we,inline:V,popupProps:Bd,listProps:Gd,inputProps:_d,triggerProps:Id,itemRoot:Ud,openMethod:v5,selectionMode:f,name:Ft,form:x,disabled:it,readOnly:b,required:v,grid:w,virtualized:j,openOnInputClick:S,itemToStringLabel:ae,modal:U,autoHighlight:Ke,isItemEqualToValue:O,submitOnItemClick:q,hasInputValue:Ie};ce(()=>{Fe.update({...Wd,inputOwnsFormValue:f==="none"&&(V||!Fe.state.inputInsidePopup)})},[Fe,...Object.values(Wd)]);const P5=an(y,he.inputRef),R5=p.useMemo(()=>({query:ke,hasItems:De,filteredItems:jt,flatFilteredValues:St}),[ke,De,jt,St]),I5=p.useMemo(()=>Array.isArray(zt)?"":bn(zt,F),[zt,F]),F5=vt&&Array.isArray(Ne)&&Ne.length>0,Wl=vt||f==="none"&&h5?void 0:Ft,T5=p.useMemo(()=>!vt||!Array.isArray(Ne)||!Ft?null:Ne.map(Ee=>{const Me=bn(Ee,F);return c.jsx("input",{type:"hidden",form:x,name:Ft,value:Me,disabled:it},Me)}),[vt,Ne,x,Ft,F,it]),O5=c.jsxs(p.Fragment,{children:[e.children,c.jsx("input",{...he.getValidationProps(it,{onFocus(){var Ee;if(hn){ur==null||ur.focus();return}(Ee=Ge.current||ur)==null||Ee.focus()},onChange(Ee){if(Ee.nativeEvent.defaultPrevented||it||b)return;const Me=Ee.currentTarget.value,_e=Me.toLowerCase(),ct=$e(mt,Ee.nativeEvent),bt=()=>Je.current.findIndex(Et=>bn(Et,F).toLowerCase()===_e||je(Et).toLowerCase()===_e);function Dt(){if(vt)return;if(f==="none"){Nn(Me,ct);return}let Et=bt();Et===-1&&(Et=Je.current.findIndex((nn,tn)=>{const Or=Oe.current[tn];return Or!=null&&Or.toLowerCase()===_e}));const Lt=Et===-1?void 0:Je.current[Et];Lt!=null&&(Fr==null||Fr(Lt,ct))}ye&&(Fd(),me&&bt()===-1&&Fe.set("forceMounted",!0)),queueMicrotask(Dt)}}),id:fe&&Wl==null?`${fe}-hidden-input`:void 0,form:x,name:Wl,autoComplete:A,disabled:it,required:v&&!F5,readOnly:b,value:I5,ref:P5,style:Wl?ei:no,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),T5]});return c.jsx(eu.Provider,{value:Fe,children:c.jsx(tu.Provider,{value:Ii,children:c.jsx(ru.Provider,{value:De,children:c.jsx(nu.Provider,{value:R5,children:c.jsx(ou.Provider,{value:L,children:O5})})})})})}function Q3(e){const{multiple:t=!1,defaultValue:n,value:r,onValueChange:i,autoComplete:a,...l}=e;return c.jsx(t8,{...l,selectionMode:t?"multiple":"single",selectedValue:r,defaultSelectedValue:n,onSelectedValueChange:i,formAutoComplete:a})}function em(e,t){const n=ft(e);return ce(()=>(t(n),()=>{t(r=>r===n?void 0:r)}),[n,t]),n}function tm(e={}){const{id:t,fallbackControlId:n,native:r=!1,setLabelId:i,focusControl:a}=e,{controlId:l,setLabelId:s}=sn(),d=de(x=>{s(x),i==null||i(x)}),u=em(t,d),f=l??n;function m(x){if(a){a(x,f);return}if(!f)return;const g=n8(x.currentTarget,f);at(g)&&r8(g)}function h(x){const g=Ct(x.nativeEvent);Bn(g,"button,input,select,textarea")||(!x.defaultPrevented&&x.detail>1&&x.preventDefault(),!r&&m(x))}return r?{id:u,htmlFor:f,onMouseDown:h}:{id:u,onClick:h,onPointerDown(x){x.preventDefault()}}}function n8(e,t){let n=e.getRootNode();for(;nr(n);){const r=n.getElementById(t);if(r)return r;n=n.host.getRootNode()}return Xe(e).getElementById(t)}function r8(e){e.focus({focusVisible:!0})}function o8(e){return e==null?void 0:`${e}-label`}function nm(e,t){return e??t}const i8="data-popup-side",a8="data-list-empty",rm={...zo,...Mn,popupSide:e=>e?{[i8]:e}:null,listEmpty:e=>e?{[a8]:""}:null};function so(e,t,n){const{setFocused:r,focusOwnerRef:i}=Ut(),a=de(l=>{(l?!e:i.current===a)&&(i.current=l&&a,r(l))});return ce(()=>{const l=t.current,s=l==null?void 0:l.getRootNode();return(s==null?void 0:s.activeElement)===l&&a(!0),()=>a(!1)},[e,t,a]),a}const fu=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(fu.displayName="ComboboxChipsContext");function om(){return p.useContext(fu)}const mu=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(mu.displayName="ComboboxPositionerContext");function pu(e){const t=p.useContext(mu);if(t===void 0&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Combobox.Popup> and <Combobox.Arrow> must be used within the <Combobox.Positioner> component":Ve(21));return t}const hu=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(hu.displayName="CompositeRootContext");function dl(e=!1){const t=p.useContext(hu);if(t===void 0&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.":Ve(16));return t}function l8(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,l=r&&t!==!1,s=r&&t===!1;return{props:p.useMemo(()=>{const u={onKeyDown(f){n&&t&&f.key!=="Tab"&&f.preventDefault()}};return r||(u.tabIndex=i,!a&&n&&(u.tabIndex=t?i:-1)),(a&&(t||l)||!a&&n)&&(u["aria-disabled"]=n),a&&(!t||s)&&(u.disabled=n),u},[r,n,t,l,s,a,i])}}function Ur(e,t,{detail:n=0,pointerType:r=""}={}){e.dispatchEvent(new(pt(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Wt(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,l=p.useRef(null),s=dl(!0),d=a??s!==void 0,{props:u}=l8({focusableWhenDisabled:n,disabled:t,composite:d,tabIndex:r,isNativeButton:i});process.env.NODE_ENV!=="production"&&p.useEffect(()=>{var g,b;if(!l.current)return;const x=Ki(l.current);if(i){if(!x){const v=((g=Vt.captureOwnerStack)==null?void 0:g.call(Vt))||"";yr(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${v}`)}}else if(x){const v=((b=Vt.captureOwnerStack)==null?void 0:b.call(Vt))||"";yr(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${v}`)}},[i]);const f=p.useCallback(()=>{const x=l.current;Ki(x)&&d&&t&&u.disabled===void 0&&x.disabled&&(x.disabled=!1)},[t,u.disabled,d]);ce(f,[f]);const m=p.useCallback((x={})=>{const{onClick:g,onMouseDown:b,onKeyUp:v,onKeyDown:y,onPointerDown:w,...E}=x;return _t({onClick(C){if(t){C.preventDefault();return}g==null||g(C)},onMouseDown(C){t||b==null||b(C)},onKeyDown(C){if(t||(ua(C),y==null||y(C),C.baseUIHandlerPrevented))return;const $=C.target===C.currentTarget,M=C.currentTarget,S=Ki(M),P=!i&&s8(M),N=$&&(i?S:!P),R=C.key==="Enter",z=C.key===" ",_=M.getAttribute("role"),F=(_==null?void 0:_.startsWith("menuitem"))||_==="option"||_==="gridcell";if($&&d&&z){if(C.defaultPrevented&&F)return;C.preventDefault(),(!i||S)&&(C.preventBaseUIHandler(),Ur(M,C));return}if(!N||i||!z&&!R){$&&P&&z&&C.preventDefault();return}C.defaultPrevented||(C.preventDefault(),R&&(C.preventBaseUIHandler(),Ur(M,C)))},onKeyUp(C){if(!t){if(ua(C),v==null||v(C),C.target===C.currentTarget&&i&&d&&Ki(C.currentTarget)&&C.key===" "){C.preventDefault();return}C.baseUIHandlerPrevented||C.target===C.currentTarget&&!i&&!d&&!C.defaultPrevented&&C.key===" "&&(C.preventBaseUIHandler(),Ur(C.currentTarget,C))}},onPointerDown(C){if(t){C.preventDefault();return}w==null||w(C)}},i?{type:"button"}:{role:"button"},u,E)},[t,u,d,i]),h=de(x=>{l.current=x,f()});return{getButtonProps:m,buttonRef:h}}function Ki(e){return at(e)&&e.tagName==="BUTTON"}function s8(e){return at(e)&&e.tagName==="A"&&!!e.href}const gu=p.forwardRef(function(t,n){const r=Xt(),{buttonRef:i,getButtonProps:a}=Wt({native:!1}),l=an(n,i);function s(u){r.context.setOpen(!1,$e(Ga,u.nativeEvent,u.currentTarget))}const d=a({onClick:s});return c.jsx("span",{ref:l,...d,"aria-label":"Dismiss",tabIndex:void 0,style:ei})});process.env.NODE_ENV!=="production"&&(gu.displayName="ComboboxInternalDismissButton");function im(e){const t=e.useState("mounted"),n=e.useState("popupSide"),r=e.useState("positionerElement");return t&&r?n:null}function fl(){return fi().filteredItems.length===0}function am(e){return e==="rtl"?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]}function c8(e,t){const n=e>=t-1?t-2:e;return n>=0?n:void 0}function lm(e,t,n){const r=e.context.listRef.current[t];r&&(e.context.selectionEventRef.current=n,r.click(),e.context.selectionEventRef.current=null)}const vu=p.forwardRef(function(t,n){const{render:r,className:i,disabled:a=!1,id:l,style:s,...d}=t,{state:u,disabled:f,setTouched:m,validationMode:h,validation:x}=Ut(),{labelId:g}=sn(),b=om(),y=!!pu(!0),w=Xt(),E=iu(),C=Nr(),$=w.useState("required"),M=w.useState("disabled"),S=w.useState("readOnly"),P=w.useState("name"),N=w.useState("form"),R=w.useState("selectionMode"),z=w.useState("autoHighlight"),_=w.useState("inputProps"),F=w.useState("triggerProps"),O=w.useState("open"),j=w.useState("mounted"),V=w.useState("selectedValue"),J=w.useState("id"),U=w.useState("inline"),G=w.useState("modal"),I=!!z,A=im(w),T=f||M||a,q=fl(),D=so(T,w.context.inputRef),B=y||U,W=!B||G,X=ft(l??(B?void 0:J)),ee=y?q3:u,[Q,ie]=p.useState(null),se=p.useRef(!1),Z=p.useRef(null);ce(()=>{O||(Z.current=null)},[O]);const he=R==="none"&&!y,re=de(Y=>{const ae=y||w.state.inline;ae&&!w.state.hasInputValue&&w.context.setInputValue("",$e(mt)),w.update({inputElement:Y,inputInsidePopup:ae,inputOwnsFormValue:he})}),fe=y?d:x.getValidationProps(T,d);function ue(Y){w.context.setIndices({activeIndex:null,selectedIndex:null,type:di(Y),event:Y})}const ne={...ee,open:O,disabled:T,readOnly:S,popupSide:A,listEmpty:q};function me(Y){if(!b)return;let ae;const Pe=b.chipsRef.current.length,[je]=am(C);return Y.key===je&&(Y.currentTarget.selectionStart??0)===0&&V.length>0&&(Y.preventDefault(),ae=Pe>0?Pe-1:void 0),ae}const le=Se("input",t,{state:ne,ref:[n,w.context.inputRef,re],props:[_,F,{value:Q??E,"aria-readonly":S||void 0,"aria-required":$||void 0,"aria-labelledby":g,disabled:T,readOnly:S,required:R==="none"?$:void 0,form:N,...he&&P&&{name:P},id:X,onFocus(){if(D(!0),!U)return;const Y=Z.current;Z.current=null,!(Y==null||!Object.hasOwn(w.context.valuesRef.current,Y))&&w.context.setIndices({activeIndex:Y})},onBlur(){m(!0),D(!1);const Y=w.state.activeIndex;if(U&&Y!==null&&z!=="always"&&(Z.current=Y,w.context.setIndices({activeIndex:null})),h==="onBlur"){const ae=R==="none"?E:V;x.commit(ae)}},onCompositionStart(Y){ma||(se.current=!0,ie(Y.currentTarget.value))},onCompositionEnd(Y){se.current=!1;const ae=Y.currentTarget.value;ie(null),w.context.setInputValue(ae,$e(Lr,Y.nativeEvent))},onChange(Y){const ae=Y.nativeEvent,Pe=ae.inputType,je=!Pe||Pe==="insertReplacementText",te=se.current||!je;function oe(Te){S||T||!Te||!te||(w.context.setOpen(!0,$e(Lr,ae)),I||ue(ae))}if(se.current){const Te=Y.currentTarget.value;ie(Te),Te===""&&!w.state.openOnInputClick&&!w.state.inputInsidePopup&&w.context.setOpen(!1,$e(Pn,ae));const Oe=Te.trim(),He=I&&Oe!=="";oe(Oe),O&&w.state.activeIndex!==null&&!He&&ue(ae);return}const be=$e(Lr,ae);if(w.context.setInputValue(Y.currentTarget.value,be),be.isCanceled)return;const xe=Y.currentTarget.value==="",Ce=$e(Pn,ae);xe&&!w.state.inputInsidePopup&&(R==="single"&&w.context.setSelectedValue(null,Ce),w.state.openOnInputClick||w.context.setOpen(!1,Ce)),oe(Y.currentTarget.value.trim()),O&&w.state.activeIndex!==null&&!I&&ue(ae)},onKeyDown(Y){var oe;if(Y.ctrlKey||Y.shiftKey||Y.altKey||Y.metaKey)return;if(T||S){S&&Y.key==="Enter"&&O&&w.state.activeIndex!==null&&Tt(Y);return}const ae=Y.currentTarget,Pe=ae.scrollWidth-ae.clientWidth,je=C==="rtl";if(Y.key==="Home"){Tt(Y);const be=m2&&je?ae.value.length:0;ae.setSelectionRange(be,be),ae.scrollLeft=0;return}if(Y.key==="End"){Tt(Y);const be=m2&&je?0:ae.value.length;ae.setSelectionRange(be,be),ae.scrollLeft=je?-Pe:Pe;return}if(!j&&Y.key==="Escape"){const be=R==="multiple"&&Array.isArray(V)?V.length===0:V===null,xe=$e($r,Y.nativeEvent),Ce=R==="multiple"?[]:null;w.context.setInputValue("",xe),w.context.setSelectedValue(Ce,xe),!be&&!w.state.inline&&!xe.isPropagationAllowed&&Y.stopPropagation();return}if(b&&Y.key==="Backspace"&&ae.value===""&&Array.isArray(V)&&V.length>0){const be=b.chipsRef.current.length,xe=be>0?be-1:V.length-1,Ce=V.filter((Te,Oe)=>Oe!==xe);ue(Y.nativeEvent),w.context.setSelectedValue(Ce,$e(mt,Y.nativeEvent));return}const te=me(Y);if(te!==void 0&&((oe=b==null?void 0:b.chipsRef.current[te])==null||oe.focus()),Y.which!==229&&Y.key==="Enter"&&O){const be=w.state.activeIndex,xe=Y.nativeEvent;if(be===null){if(U)return;w.context.setOpen(!1,$e(mt,xe));return}Tt(Y),lm(w,be,xe)}}},fe],stateAttributesMapping:rm}),we=y?c.jsx(ul.Provider,{value:Y3,children:le}):le;return c.jsxs(p.Fragment,{children:[O&&W&&c.jsx(gu,{ref:w.context.startDismissRef}),we]})});process.env.NODE_ENV!=="production"&&(vu.displayName="ComboboxInput");function u8(e,t,n,r){var l;if(e.baseUIHandlerPrevented)return;const i=Ct(e.nativeEvent),a=tt(i)?i:null;a!==e.currentTarget&&i3(a)||(e.preventDefault(),!n&&((l=t.context.inputRef.current)==null||l.focus(),t.state.openOnInputClick&&t.context.setOpen(!0,$e(l3,e.nativeEvent))))}const qi=5;function xu(e,t){const n=d8(t);return e.clientX>=n.left-qi&&e.clientX<=n.right+qi&&e.clientY>=n.top-qi&&e.clientY<=n.bottom+qi}function d8(e){const t=e.getBoundingClientRect(),n=pt(e);if($c)return t;const r=n.getComputedStyle(e,"::before"),i=n.getComputedStyle(e,"::after");if(!(r.content!=="none"||i.content!=="none"))return t;const l=parseFloat(r.width)||0,s=parseFloat(r.height)||0,d=parseFloat(i.width)||0,u=parseFloat(i.height)||0,f=Math.max(t.width,l,d),m=Math.max(t.height,s,u),h=f-t.width,x=m-t.height;return{left:t.left-h/2,right:t.right+h/2,top:t.top-x/2,bottom:t.bottom+x/2}}const sm=p.forwardRef(function(t,n){const{render:r,className:i,nativeButton:a=!0,disabled:l=!1,id:s,style:d,...u}=t,{state:f,disabled:m,setTouched:h,validationMode:x,validation:g}=Ut(),{labelId:b}=sn(),v=Xt(),y=v.useState("selectionMode"),w=v.useState("disabled"),E=v.useState("readOnly"),C=v.useState("required"),$=v.useState("positionerElement"),M=v.useState("listElement"),S=v.useState("popupId"),P=v.useState("triggerProps"),N=v.useState("inputInsidePopup"),R=v.useState("id"),z=v.useState("labelId"),_=v.useState("open"),F=v.useState("selectedValue"),O=v.useState("activeIndex"),j=v.useState("selectedIndex"),V=v.useState("hasSelectedValue"),J=ll(),U=iu(),G=wt(),I=m||w||l,A=fl(),T=im(v),q=p.useRef(null),D=so(I,q);Sr({id:N?s:void 0});const B=N?s??R:s,W=nm(b,z);let X;_&&N?X=S??X3(R):_&&(X=M==null?void 0:M.id);const ee=p.useRef("");function Q(ne){ee.current=ne.pointerType}const{reference:ie}=Jc(J,{enabled:!_&&!E&&!w&&y==="single",listRef:v.context.labelsRef,activeIndex:O,selectedIndex:j,onMatch(ne){const me=v.context.valuesRef.current[ne];me!==void 0&&v.context.setSelectedValue(me,$e(mt))}}),{reference:se}=Mr(J,{enabled:!w,event:"mousedown"}),{buttonRef:Z,getButtonProps:he}=Wt({native:a,disabled:I}),re={...f,readOnly:E,open:_,disabled:I,popupSide:T,listEmpty:A,placeholder:y==="none"?!1:!V},fe=de(ne=>{v.set("triggerElement",ne)});return Se("button",t,{ref:[n,Z,q,fe],state:re,props:[P,se,ie,{id:B,tabIndex:N?0:-1,role:N?"combobox":void 0,"aria-expanded":_,"aria-haspopup":N?"dialog":"listbox","aria-controls":X,"aria-required":N&&C||void 0,"aria-readonly":N&&E||void 0,"aria-labelledby":W,onPointerDown:Q,onPointerEnter:Q,onFocus(){D(!0),!I&&G.start(0,v.context.forceMount)},onBlur(ne){if(!Re($,ne.relatedTarget)&&(h(!0),D(!1),x==="onBlur")){const me=y==="none"?U:F;g.commit(me)}},onMouseDown(ne){var we;if(I||(N||J.set("domReferenceElement",ne.currentTarget),v.context.forceMount(),ee.current!=="touch"&&((we=v.context.inputRef.current)==null||we.focus(),N||ne.preventDefault()),_))return;const me=Xe(ne.currentTarget);function le(Y){const ae=v.state.triggerElement;if(!ae)return;const Pe=Ct(Y),je=v.state.positionerElement,te=v.state.listElement;Re(ae,Pe)||Re(je,Pe)||Re(te,Pe)||xu(Y,ae)||v.context.setOpen(!1,$e(Rc,Y))}N&&me.addEventListener("mouseup",le,{once:!0})},onKeyDown(ne){var me;(ne.key==="ArrowDown"||ne.key==="ArrowUp")&&(Tt(ne),v.context.setOpen(!0,$e(rr,ne.nativeEvent)),(me=v.context.inputRef.current)==null||me.focus())}},g.getValidationProps(I,u),he],stateAttributesMapping:rm})});process.env.NODE_ENV!=="production"&&(sm.displayName="ComboboxTrigger");const bu=p.createContext(null);process.env.NODE_ENV!=="production"&&(bu.displayName="GroupCollectionContext");function f8(){return p.useContext(bu)}function m8(e){const{children:t,items:n}=e,r=p.useMemo(()=>({items:n}),[n]);return c.jsx(bu.Provider,{value:r,children:t})}function p8(e){const{children:t}=e,{filteredItems:n}=fi(),r=f8(),i=r?r.items:n;return c.jsx(p.Fragment,{children:i.map(t)})}const yu=p.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});process.env.NODE_ENV!=="production"&&(yu.displayName="CompositeListContext");function h8(){return p.useContext(yu)}function co(e){const{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=de(i),[,l]=p.useState(0),s=Pt(v8).current,d=Pt(g8).current,u=p.useRef(0),f=p.useRef(!0),m=p.useRef(null),h=p.useRef(null),x=de(()=>{f.current||(f.current=!0,l($=>$+1))}),g=de(($,M)=>{d.set($,M),x()}),b=de($=>{d.delete($),x()}),v=de($=>{const M=new Map;return n.current.length=0,r&&(r.current.length=0),$.forEach(S=>{var P,N;M.set(S.element,{...S.registration.metadata??{},index:S.index}),n.current[S.index]=S.element,r&&(r.current[S.index]=S.registration.label!==void 0?S.registration.label:((N=(P=S.registration.textRef)==null?void 0:P.current)==null?void 0:N.textContent)??S.element.textContent)}),u.current=n.current.length,M});function y($){var P;if((P=h.current)==null||P.disconnect(),h.current=null,typeof MutationObserver!="function"||$.length<2)return;const M=new MutationObserver(N=>{if(!y8(N))return;let R=null;for(const z of $)if(z.isConnected){if(R&&cm(R,z)>0){M.disconnect(),x();return}R=z}});h.current=M;const S=new Set;for(let N=1;N<$.length;N+=1){const R=b8($[N-1],$[N]);R&&S.add(R)}S.forEach(N=>M.observe(N,{childList:!0}))}const w=de(()=>{const[$,M]=x8(d),S=v($),P=m.current,N=!P||P.length!==$.length||$.some((R,z)=>{const _=P[z];return R.index!==_.index||R.element!==_.element||R.registration.index!==_.registration.index||R.registration.metadata!==_.registration.metadata});y(M),m.current=$,f.current=!1,N&&(s.forEach(R=>R(S)),a(S))});ce(()=>(!f.current&&m.current&&v(m.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,v]),ce(()=>{f.current&&w()}),ce(()=>()=>{var $;($=h.current)==null||$.disconnect(),f.current=!0},[]);const E=de($=>(s.add($),()=>{s.delete($)})),C=p.useMemo(()=>({register:g,unregister:b,subscribeMapChange:E,nextIndexRef:u}),[g,b,E,u]);return c.jsx(yu.Provider,{value:C,children:t})}function g8(){return new Map}function v8(){return new Set}function x8(e){const t=new Set,n=[],r=[];e.forEach((a,l)=>{if(!l.isConnected)return;const s=a.index,d={index:s??-1,element:l,registration:a};s===null?r.push(d):s>=0&&(t.add(s),n.push(d))});let i=0;return r.sort((a,l)=>cm(a.element,l.element)),r.forEach(a=>{for(;t.has(i);)i+=1;a.index=i,n.push(a),i+=1}),t.size>0&&n.sort((a,l)=>a.index-l.index),[n,r.map(a=>a.element)]}function b8(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function y8(e){for(const t of e)for(let n=0;n<t.removedNodes.length;n+=1)if(t.removedNodes[n].isConnected)return!0;return!1}function cm(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}const Eu=p.forwardRef(function(t,n){var r;const{render:i,className:a,style:l,children:s,...d}=t,u=Xt(),f=ll(),m=!!pu(!0),{filteredItems:h,hasItems:x}=fi(),g=u.useState("selectionMode"),b=u.useState("grid"),v=u.useState("readOnly"),y=u.useState("listProps"),w=u.useState("virtualized"),E=u.useState("forceMounted"),C=g==="multiple",$=h.length===0,M=de(F=>{u.set("positionerElement",F)}),S=de(F=>{u.set("listElement",F)}),P=p.useMemo(()=>typeof s=="function"?r||(r=c.jsx(p8,{children:s})):s,[s]),N={empty:$},R=f.useState("floatingId"),z=Se("div",t,{state:N,ref:[n,S,m?null:M],props:[y,{children:P,tabIndex:-1,id:R,role:b?"grid":"listbox","aria-multiselectable":C?"true":void 0,"aria-readonly":!b&&v?!0:void 0,onKeyDown(F){if(!(u.state.disabled||u.state.readOnly)&&F.key==="Enter"){const O=u.state.activeIndex;if(O==null)return;Tt(F),lm(u,O,F.nativeEvent)}}},d]});if(w)return z;const _=x&&!E?void 0:u.context.labelsRef;return c.jsx(co,{elementsRef:u.context.listRef,labelsRef:_,children:z})});process.env.NODE_ENV!=="production"&&(Eu.displayName="ComboboxList");const E8="⁠",w8=200;function C8(e){const t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT);let n=null;for(;t.nextNode();){const r=t.currentNode;r.nodeValue!==""&&(n=r)}return n}function $8(e=!0){const t=wt(),n=p.useRef(null);return p.useEffect(()=>{if(!e||ri)return;const r=n.current;if(r==null)return;const i=C8(r);if(i==null)return;const a=i.data,l=`${a}${E8}`;return i.nodeValue=l,t.start(w8,()=>{i.nodeValue===l&&(i.nodeValue=a)}),()=>{t.clear(),i.nodeValue===l&&(i.nodeValue=a)}},[e,n,t]),n}const wu=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(wu.displayName="ComboboxPortalContext");function M8(){const e=p.useContext(wu);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Combobox.Portal> is missing.":Ve(20));return e}const Cu=p.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t,a=Xt(),l=a.useState("mounted"),s=a.useState("forceMounted");return l||r||s?c.jsx(wu.Provider,{value:r,children:c.jsx(io,{ref:n,...i})}):null});process.env.NODE_ENV!=="production"&&(Cu.displayName="ComboboxPortal");function uo(e){return ja(19)?e:e?"true":void 0}function S8(e){const{nodeId:t,externalTree:n,rootContext:r}=e,i=r.useState("referenceElement"),a=r.useState("floatingElement"),l=r.useState("domReferenceElement"),s=r.useState("open"),d=r.useState("floatingId"),[u,f]=p.useState(null),m=p.useRef(null),h=qn(n),x=p.useMemo(()=>({reference:i,floating:a,domReference:l}),[i,a,l]),g=O7({...e,elements:{...x,...u&&{reference:u}}}),b=p.useCallback(E=>{const C=tt(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),getClientRects:()=>E.getClientRects(),contextElement:E}:E;f(C),g.refs.setReference(C)},[g.refs]),v=p.useMemo(()=>({...g.refs,setPositionReference:b,domReference:m}),[g.refs,b]),y=p.useMemo(()=>({...g.elements,domReference:l}),[g.elements,l]),w=p.useMemo(()=>({...g,dataRef:r.context.dataRef,open:s,onOpenChange:r.setOpen,events:r.context.events,floatingId:d,refs:v,elements:y,nodeId:t,rootStore:r}),[g,v,y,t,r,s,d]);return ce(()=>{l&&(m.current=l)},[l]),ce(()=>{r.context.dataRef.current.floatingContext=w;const E=h==null?void 0:h.nodesRef.current.find(C=>C.id===t);E&&(E.context=w)}),p.useMemo(()=>({...g,context:w,refs:v,elements:y,rootStore:r}),[g,v,y,w,r])}const N8=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:l,elements:s,middlewareData:d}=t,{element:u,padding:f=0}=or(e,t)||{};if(u==null)return{};const m=d3(f),h={x:n,y:r},x=Oc(i),g=Tc(x),b=await l.getDimensions(u),v=x==="y",y=v?"top":"left",w=v?"bottom":"right",E=v?"clientHeight":"clientWidth",C=a.reference[g]+a.reference[x]-h[x]-a.floating[g],$=h[x]-a.reference[x],M=s.floating[E]||a.floating[g],S=C/2-$/2,P=M/2-b[g]/2-1,N=Math.min(m[y],P),R=Math.min(m[w],P),z=N,_=M-b[g]-R,F=M/2-b[g]/2+S,O=u3(z,F,_),j=!d.arrow&&On(i)!=null&&F!==O&&a.reference[g]/2-(F<z?N:R)-b[g]/2<0,V=j?F<z?F-z:F-_:0;return{[x]:h[x]+V,data:{[x]:O,centerOffset:F-O-V,...j&&{alignmentOffset:V}},reset:j}}}),P8=(e,t)=>{const{name:n,fn:r}=N8(e);return{name:n,fn:r,options:[e,t]}},R8={name:"hide",async fn(e){const{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,l=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:l.top-n>=0||l.right-t>=0||l.bottom-n>=0||l.left-t>=0||a}}}},I8={sideX:"left",sideY:"top"},F8="--available-width",T8="--available-height",O8="--anchor-width",z8="--anchor-height",A8="--transform-origin",G2=F8,U2=T8;function um(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function W2(e,t,n){const{rects:r,placement:i}=e;return{side:um(t,rn(i),n),align:On(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function pi(e){return j8(e,S8)}function j8(e,t){var Ft,vt;const{anchor:n,positionMethod:r="absolute",side:i="bottom",sideOffset:a=0,align:l="center",alignOffset:s=0,collisionBoundary:d,collisionPadding:u=5,sticky:f=!1,arrowPadding:m=5,disableAnchorTracking:h=!1,inline:x,keepMounted:g=!1,floatingRootContext:b,mounted:v,collisionAvoidance:y,shift:w,nodeId:E,adaptiveOrigin:C,lazyFlip:$=!1,externalTree:M}=e,S=y.side||"flip",P=y.align||"flip",N=y.fallbackAxisSide||"end",R=(w==null?void 0:w.crossAxis)??!1,z=w==null?void 0:w.rootBoundary,_=typeof n=="function"?n:void 0,F=de(_),O=_?F:n,j=Nt(n),V=Nt(v),U=Nr()==="rtl",[G,I]=p.useState(null);!v&&G!==null&&I(null);const A=$==="placement",T=G?rn(G):null,q=G&&A?On(G)||"center":null,D=T||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":U?"left":"right","inline-start":U?"right":"left"}[i],B=q||l,W=B==="center"?D:`${D}-${B}`;let X=u;typeof X=="number"?X={top:X,right:X,bottom:X,left:X}:X&&(X={top:X.top||0,right:X.right||0,bottom:X.bottom||0,left:X.left||0});const ee=1,Q=i==="bottom"?ee:0,ie=i==="top"?ee:0,se=i==="right"?ee:0,Z=i==="left"?ee:0,he={boundary:d==="clipping-ancestors"?"clippingAncestors":d,padding:X},re=p.useRef(null),fe=Nt(a),ue=Nt(s),ne=typeof a!="function"?a:0,me=typeof s!="function"?s:0,le=[];x&&le.push(x),le.push(z7(ye=>{const Ie=W2(ye,i,U),De=typeof fe.current=="function"?fe.current(Ie):fe.current,st=typeof ue.current=="function"?ue.current(Ie):ue.current;return{mainAxis:De,crossAxis:st,alignmentAxis:st}},[ne,me,U,i]));const we=P==="none"&&S!=="shift",Y=!we&&(f||R||S==="shift"),ae=S==="none"?null:D7({...he,padding:{top:X.top+ee+Q,right:X.right+ee+Z,bottom:X.bottom+ee+ie,left:X.left+ee+se},mainAxis:!R&&S==="flip",crossAxis:P==="flip"?"alignment":!1,fallbackAxisSideDirection:N}),Pe=we?null:A7({...he,rootBoundary:z,mainAxis:P!=="none",crossAxis:Y,limiter:f||R?void 0:j7(ye=>{if(!re.current)return{};const{width:Ie,height:De}=re.current.getBoundingClientRect(),st=dn(rn(ye.placement)),Ke=st==="y"?Ie:De,Ne=st==="y"?X.left+X.right:X.top+X.bottom;return{offset:Ke/2+Ne/2}})},[he,f,R,z,X,P]);S==="shift"||P==="shift"||B==="center"?le.push(Pe,ae):le.push(ae,Pe),le.push(k7({...he,apply({elements:{floating:ye},availableWidth:Ie,availableHeight:De,rects:st}){if(!V.current)return;const Ke=ye.style;Ke.setProperty(G2,`${Ie}px`),Ke.setProperty(U2,`${De}px`);const Ne=pt(ye).devicePixelRatio||1,{x:et,y:At,width:Zt,height:L}=st.reference,pe=(Math.round((et+Zt)*Ne)-Math.round(et*Ne))/Ne,ve=(Math.round((At+L)*Ne)-Math.round(At*Ne))/Ne;Ke.setProperty(O8,`${pe}px`),Ke.setProperty(z8,`${ve}px`)}}),P8(ye=>({element:re.current||Xe(ye.elements.floating).createElement("div"),padding:re.current?m:0}),[m]),{name:"transformOrigin",fn(ye){var ke,Le,Ue,yt,xt,ht;const{elements:{floating:Ie},middlewareData:De,placement:st,platform:Ke,rects:Ne,y:et}=ye,At=rn(st),Zt=On(st),L=dn(At)==="y",pe=re.current,ve=typeof a=="function"?a(W2(ye,i,U)):a;let Ae;if(!pe&&Zt&&Math.abs(L?((ke=De.shift)==null?void 0:ke.x)||0:((Le=De.shift)==null?void 0:Le.y)||0)<=1)Ae=Zt==="start"===(L&&((Ue=Ke.isRTL)==null?void 0:Ue.call(Ke,Ie))===!0)?"100%":"0%";else{const jt=L?((yt=De.arrow)==null?void 0:yt.x)||0:((xt=De.arrow)==null?void 0:xt.y)||0,St=L?(pe==null?void 0:pe.clientWidth)||0:(pe==null?void 0:pe.clientHeight)||0;Ae=`${jt+St/2}px`}let Ye=At==="top"||At==="left"?`calc(100% + ${ve}px)`:`${-ve}px`;return Y&&L&&Math.abs(((ht=De.shift)==null?void 0:ht.y)||0)>ve&&(Ye=`${Ne.reference.y+Ne.reference.height/2-et}px`),Ie.style.setProperty(A8,L?`${Ae} ${Ye}`:`${Ye} ${Ae}`),{}}},R8,C),ce(()=>{!v&&b&&b.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[v,b]);const je=p.useMemo(()=>({ancestorScroll:!h,elementResize:!h&&typeof ResizeObserver<"u",layoutShift:!h&&typeof IntersectionObserver<"u"}),[h]),{refs:te,elements:oe,x:be,y:xe,middlewareData:Ce,update:Te,placement:Oe,context:He,isPositioned:Ge,floatingStyles:Ze}=t({rootContext:b,open:g?v:void 0,placement:W,middleware:le,strategy:r,whileElementsMounted:g?void 0:(...ye)=>V2(...ye,je),nodeId:E,externalTree:M}),{sideX:Ht,sideY:Rt}=Ce.adaptiveOrigin||I8,It=Ge?r:"fixed",ze=p.useMemo(()=>{let ye;return Ge?C?ye={position:It,[Ht]:be,[Rt]:xe}:ye={...Ze,position:It}:ye={position:It,top:0,left:0},ye[G2]="100vw",ye[U2]="100vh",Ge||(ye.opacity=0),ye},[C,It,Ht,be,Rt,xe,Ze,Ge]),nt=p.useRef(null);ce(()=>{if(!v)return;const ye=j.current,Ie=typeof ye=="function"?ye():ye,st=(K2(Ie)?Ie.current:Ie)||null||null;st!==nt.current&&(te.setPositionReference(st),nt.current=st)},[v,te,O,j]),p.useEffect(()=>{if(!v)return;const ye=j.current;typeof ye!="function"&&K2(ye)&&ye.current!==nt.current&&(te.setPositionReference(ye.current),nt.current=ye.current)},[v,te,O,j]),p.useEffect(()=>{if(g&&v&&oe.reference&&oe.floating)return V2(oe.reference,oe.floating,Te,je)},[g,v,oe,Te,je]);const ot=rn(Oe),lt=um(i,ot,U),rt=On(Oe)||"center",Je=!!((Ft=Ce.hide)!=null&&Ft.referenceHidden);ce(()=>{$&&v&&Ge&&(ot!==D||A&&rt!==B)&&I(Oe)},[$,A,v,Ge,Oe,ot,rt,D,B]);const Mt=p.useMemo(()=>{var ye,Ie;return{position:"absolute",top:(ye=Ce.arrow)==null?void 0:ye.y,left:(Ie=Ce.arrow)==null?void 0:Ie.x}},[Ce.arrow]),it=((vt=Ce.arrow)==null?void 0:vt.centerOffset)!==0;return p.useMemo(()=>({positionerStyles:ze,arrowStyles:Mt,arrowRef:re,arrowUncentered:it,side:lt,align:rt,physicalSide:ot,anchorHidden:Je,refs:te,context:He,isPositioned:Ge,update:Te}),[ze,Mt,re,it,lt,rt,ot,Je,te,He,Ge,Te])}function K2(e){return e!=null&&"current"in e}const fo=p.forwardRef(function(t,n){const{cutout:r,...i}=t;let a;if(r){const l=r.getBoundingClientRect();a=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${l.left}px ${l.top}px,${l.left}px ${l.bottom}px,${l.right}px ${l.bottom}px,${l.right}px ${l.top}px,${l.left}px ${l.top}px)`}return c.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:a}})});process.env.NODE_ENV!=="production"&&(fo.displayName="InternalBackdrop");function mo(e){return e==="starting"?D6:We}function hi(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:l,inert:s=!1}){const d={...n};return s&&(d.pointerEvents="none"),Se("div",e,{state:t,ref:a,props:[{role:"presentation",hidden:l,style:d},mo(r),i],stateAttributesMapping:ar})}let q2={},Y2={},X2="";function ml(e,t){return ni(e)?e:t}function Z2(e,t,n){return/hidden|clip/.test(e.getComputedStyle(ml(t,n)).overflowY)}function D8(e){if(typeof document>"u")return!1;const t=Xe(e);return pt(t).innerWidth-t.documentElement.clientWidth>0}function k8(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=Xe(e),r=n.documentElement,i=n.body,a=ml(r,i),l=a.style.overflowY,s=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",a.style.overflowY="scroll";const d=a.offsetWidth;a.style.overflowY="hidden";const u=a.offsetWidth;return a.style.overflowY=l,r.style.scrollbarGutter=s,d===u}function H8(e){const t=Xe(e),n=t.documentElement,r=t.body,i=ml(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,a)}}function L8(e){var x;const t=Xe(e),n=t.documentElement,r=t.body,i=pt(n);let a=0,l=0,s=!1;const d=Rn.create();if(An&&(((x=i.visualViewport)==null?void 0:x.scale)??1)!==1)return()=>{};function u(){const g=i.getComputedStyle(n),b=i.getComputedStyle(r),w=(g.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";a=n.scrollTop,l=n.scrollLeft,q2={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},X2=n.style.scrollBehavior,Y2={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const E=n.scrollHeight>n.clientHeight,C=n.scrollWidth>n.clientWidth,$=g.overflowY==="scroll"||b.overflowY==="scroll",M=g.overflowX==="scroll"||b.overflowX==="scroll",S=Math.max(0,i.innerWidth-r.clientWidth),P=Math.max(0,i.innerHeight-r.clientHeight),N=parseFloat(b.marginTop)+parseFloat(b.marginBottom),R=parseFloat(b.marginLeft)+parseFloat(b.marginRight),z=ml(n,r);if(s=k8(e),s){n.style.scrollbarGutter=w,z.style.overflowY="hidden",z.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:w,overflowY:"hidden",overflowX:"hidden"}),(E||$)&&(n.style.overflowY="scroll"),(C||M)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:N||P?`calc(100dvh - ${N+P}px)`:"100dvh",width:R||S?`calc(100vw - ${R+S}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),r.scrollTop=a,r.scrollLeft=l,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function f(){Object.assign(n.style,q2),Object.assign(r.style,Y2),s||(n.scrollTop=a,n.scrollLeft=l,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=X2)}function m(){f(),d.request(u)}u();const h=qe(i,"resize",m);return()=>{d.cancel(),f(),typeof i.removeEventListener=="function"&&h()}}class V8{constructor(){Be(this,"lockCount",0);Be(this,"restore",null);Be(this,"timeoutLock",En.create());Be(this,"timeoutUnlock",En.create());Be(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});Be(this,"unlock",()=>{var t;this.lockCount===0&&this.restore&&((t=this.restore)==null||t.call(this),this.restore=null)})}acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}lock(t){if(this.lockCount===0||this.restore!==null)return;const n=Xe(t),r=n.documentElement,i=n.body,a=pt(r);if(Z2(a,r,i)){const s=new a.MutationObserver(()=>{Z2(a,r,i)||(s.disconnect(),this.restore=null,this.lock(t))}),d={attributes:!0};s.observe(r,d),s.observe(i,d),this.restore=()=>s.disconnect();return}const l=ri||!D8(t);this.restore=l?H8(t):L8(t)}}const _8=new V8;function dm(e=!0,t=null){ce(()=>{if(e)return _8.acquire(t)},[e,t])}const B8=20;function pl(e,t,n,r){const[i,a]=p.useState(!1);ce(()=>{if(!e||!t||n==null){a(!1);return}const l=Xe(n).documentElement.clientWidth,s=n.offsetWidth;a(l>0&&s>0&&s>=l-B8)},[e,t,n]),dm(e&&(!t||i),r)}const $u=p.forwardRef(function(t,n){const{render:r,className:i,anchor:a,positionMethod:l,side:s,align:d,sideOffset:u,alignOffset:f,collisionBoundary:m="clipping-ancestors",collisionPadding:h,arrowPadding:x,sticky:g,disableAnchorTracking:b=!1,collisionAvoidance:v=Dc,style:y,...w}=t,E=Xt(),C=ll(),$=M8(),M=E.useState("modal"),S=E.useState("open"),P=E.useState("mounted"),N=E.useState("openMethod"),R=E.useState("positionerElement"),z=E.useState("triggerElement"),_=E.useState("inputElement"),F=E.useState("inputGroupElement"),O=E.useState("inputInsidePopup"),j=E.useState("transitionStatus"),V=fl(),U=pi({anchor:a??(O?z:F??_),floatingRootContext:C,positionMethod:l,mounted:P,side:s,sideOffset:u,align:d,alignOffset:f,arrowPadding:x,collisionBoundary:m,collisionPadding:h,sticky:g,disableAnchorTracking:b,keepMounted:$,collisionAvoidance:v,lazyFlip:!0});pl(S&&M,N==="touch",R,z);const G={open:S,side:U.side,align:U.align,anchorHidden:U.anchorHidden,empty:V};ce(()=>{E.set("popupSide",U.side)},[E,U.side]);const I=de(T=>{E.set("positionerElement",T)}),A=hi(t,G,{styles:U.positionerStyles,transitionStatus:j,props:w,refs:[n,I],hidden:!P,inert:!S});return c.jsxs(mu.Provider,{value:U,children:[P&&M&&c.jsx(fo,{inert:uo(!S),cutout:F??_??z}),A]})});process.env.NODE_ENV!=="production"&&($u.displayName="ComboboxPositioner");const G8={...ar,...ln},fm=p.forwardRef(function(t,n){const{render:r,className:i,style:a,initialFocus:l,finalFocus:s,...d}=t,u=Xt(),f=pu(),m=ll(),h=u.useState("mounted"),x=u.useState("open"),g=u.useState("openMethod"),b=u.useState("popupProps"),v=u.useState("transitionStatus"),y=u.useState("inputInsidePopup"),w=u.useState("inputElement"),E=u.useState("modal"),C=u.useState("id"),$=fl(),M=d.id??(y?X3(C):void 0);ce(()=>{var F;return u.set("popupId",((F=u.context.popupRef.current)==null?void 0:F.id)||M),()=>{u.set("popupId",void 0)}},[u,M]),Yt({open:x,ref:u.context.popupRef,onComplete(){x&&u.context.onOpenChangeComplete(!0)}});const S={open:x,side:f.side,align:f.align,anchorHidden:f.anchorHidden,transitionStatus:v,empty:$},P=Se("div",t,{state:S,ref:[n,u.context.popupRef],props:[b,{id:M,role:y?"dialog":"presentation",onFocus(F){var j;const O=Ct(F.nativeEvent);g!=="touch"&&(Re(u.state.listElement,O)||O===F.currentTarget)&&((j=u.context.inputRef.current)==null||j.focus())}},mo(v),d],stateAttributesMapping:G8}),R=l===void 0?y?F=>F==="touch"?u.context.popupRef.current:w:!1:l;let z;s!=null?z=s:z=y?void 0:!1;const _=!y||E;return c.jsx(si,{context:m,disabled:!h,modal:_,openInteractionType:g,initialFocus:R,returnFocus:z,getInsideElements:()=>[u.context.startDismissRef.current,u.context.endDismissRef.current],children:c.jsxs(p.Fragment,{children:[P,_&&c.jsx(gu,{ref:u.context.endDismissRef})]})})});process.env.NODE_ENV!=="production"&&(fm.displayName="ComboboxPopup");const Mu=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(Mu.displayName="ComboboxGroupContext");function U8(){const e=p.useContext(Mu);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: ComboboxGroupContext is missing. ComboboxGroup parts must be placed within <Combobox.Group>.":Ve(18));return e}const Su=p.forwardRef(function(t,n){const{render:r,className:i,style:a,items:l,...s}=t,u=Xt().useState("grid"),[f,m]=p.useState(),h=p.useMemo(()=>({labelId:f,setLabelId:m,items:l}),[f,m,l]),x=Se("div",t,{ref:n,props:[{role:u?"rowgroup":"group","aria-labelledby":f},s]}),g=c.jsx(Mu.Provider,{value:h,children:x});return l?c.jsx(m8,{items:l,children:g}):g});process.env.NODE_ENV!=="production"&&(Su.displayName="ComboboxGroup");const mm=p.forwardRef(function(t,n){const{render:r,className:i,style:a,id:l,...s}=t,{setLabelId:d}=U8(),u=ft(l);return ce(()=>(d(u),()=>{d(m=>m===u?void 0:m)}),[u,d]),Se("div",t,{ref:n,props:[{id:u,"aria-hidden":!0},s]})});process.env.NODE_ENV!=="production"&&(mm.displayName="ComboboxGroupLabel");function Xn(e={}){const{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:l,unregister:s,subscribeMapChange:d,nextIndexRef:u}=h8(),f=p.useRef(-1),[m,h]=p.useState(a==null&&t?()=>{if(f.current===-1){const v=u.current;u.current+=1,f.current=v}return f.current}:-1),x=a??m,g=p.useRef(null),b=p.useCallback(v=>{const y=g.current;y&&s(y),g.current=v,v&&l(v,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,l,s,r,n,i]);return ce(()=>{if(a==null)return d(v=>{var w;const y=g.current?(w=v.get(g.current))==null?void 0:w.index:null;y!=null&&h(y)})},[a,d]),{ref:b,index:x}}const Nu=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(Nu.displayName="ComboboxItemContext");function W8(){const e=p.useContext(Nu);if(!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: ComboboxItemContext is missing. ComboboxItem parts must be placed within <Combobox.Item>.":Ve(19));return e}const pm=p.createContext(!1);process.env.NODE_ENV!=="production"&&(pm.displayName="ComboboxRowContext");function K8(){return p.useContext(pm)}function hm(e){const{componentProps:t,forwardedRef:n,virtualized:r,indexFromFilter:i}=e,{render:a,className:l,style:s,value:d=null,index:u,disabled:f=!1,nativeButton:m=!1,...h}=t,x=p.useRef(null),g=Xn({guess:!0,index:u,textRef:x}),b=Xt(),v=K8(),y=L7(),{props:w,id:E,selectionMode:C,disabled:$,readOnly:M,isItemEqualToValue:S}=b.useState("itemRoot"),P=$||f,N=C!=="none",R=u??i??g.index,z=R!==-1,_=b.useState("isActive",R),F=b.useState("isSelected",d),O=p.useRef(null),j=E!=null&&z?`${E}-${R}`:void 0,V=F&&N;ce(()=>{if(!(z&&(r||u!=null)))return;const B=b.context.listRef.current;return B[R]=O.current,()=>{delete B[R]}},[z,r,R,u,b]),ce(()=>{if(!z||y)return;const D=b.context.valuesRef.current;return D[R]=d,()=>{delete D[R]}},[z,y,R,d,b]),ce(()=>{if(!z||y)return;const D=b.state.selectedValue;let B=b.state.selectedIndex;b.state.selectionMode==="multiple"&&Array.isArray(D)?B=G3(R,d,b.context.valuesRef.current,D,S,B):pn(d,D,S)&&(B=R),b.set("selectedIndex",B)},[z,y,b,R,d,S]);const{getButtonProps:J,buttonRef:U}=Wt({disabled:P,focusableWhenDisabled:!0,native:m,composite:!0}),G={disabled:P,selected:V,highlighted:_};function I(D){function B(){b.context.handleSelection(D,d)}b.state.submitOnItemClick?(on.flushSync(B),b.context.requestSubmit()):B()}const A={id:j,role:v?"gridcell":"option","aria-selected":N?V:void 0,tabIndex:void 0,onPointerDownCapture(D){D.isPrimary&&(b.context.pointerDownItemRef.current=D.currentTarget),D.preventDefault()},onMouseDown(D){D.preventDefault()},onClick(D){P||M||I(D.nativeEvent)},onMouseUp(D){const B=b.context.pointerDownItemRef.current===D.currentTarget;b.context.pointerDownItemRef.current=null,!(P||M||D.button!==0||B||!_)&&I(D.nativeEvent)}},T=Se("div",t,{ref:[U,n,g.ref,O],state:G,props:[w,A,h,J]}),q=p.useMemo(()=>({selected:V,textRef:x}),[V,x]);return c.jsx(Nu.Provider,{value:q,children:T})}function q8(e){const{componentProps:t,forwardedRef:n}=e,i=Xt().useState("isItemEqualToValue"),{flatFilteredValues:a}=fi(),l=t.value??null,s=vr(a,l,i);return c.jsx(hm,{componentProps:t,forwardedRef:n,virtualized:!0,indexFromFilter:s})}const gm=p.memo(p.forwardRef(function(t,n){const i=Xt().useState("virtualized");return i&&t.index==null?c.jsx(q8,{componentProps:t,forwardedRef:n}):c.jsx(hm,{componentProps:t,forwardedRef:n,virtualized:i,indexFromFilter:void 0})}));process.env.NODE_ENV!=="production"&&(gm.displayName="ComboboxItem");const Pu=p.memo(p.forwardRef(function(t,n){const{render:r,className:i,style:a,keepMounted:l,selected:s,...d}=t,u=p.useRef(null),{transitionStatus:f,setMounted:m}=$n(s),x=Se("span",t,{ref:[n,u],state:{selected:s,transitionStatus:f},props:[{"aria-hidden":!0,children:"✔️"},d],stateAttributesMapping:ln});return Yt({batch:!0,enabled:!s,open:s,ref:u,onComplete(){s||m(!1)}}),x}));process.env.NODE_ENV!=="production"&&(Pu.displayName="ItemIndicator");const vm=p.forwardRef(function(t,n){const{selected:r}=W8();return t.keepMounted||r?c.jsx(Pu,{...t,selected:r,ref:n}):null});process.env.NODE_ENV!=="production"&&(vm.displayName="ComboboxItemIndicator");const xm=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,s=Xt(),d=s.useState("hasSelectionChips"),u=p.useRef([]),f=Se("div",t,{ref:[n,s.context.chipsContainerRef],props:[d?{role:"toolbar"}:We,{onMouseDown(h){u8(h,s,s.state.disabled)}},l]}),m=p.useMemo(()=>({chipsRef:u}),[]);return c.jsx(fu.Provider,{value:m,children:c.jsx(co,{elementsRef:u,children:f})})});process.env.NODE_ENV!=="production"&&(xm.displayName="ComboboxChips");const Ru=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ru.displayName="ComboboxChipContext");function Y8(){const e=p.useContext(Ru);if(!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: ComboboxChipContext is missing. ComboboxChip parts must be placed within <Combobox.Chip>.":Ve(17));return e}const bm=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,s=Xt(),{chipsRef:d}=om(),u=Nr(),f=s.useState("disabled"),m=s.useState("readOnly"),h=s.useState("selectedValue"),{ref:x,index:g}=Xn();function b(E){let C=g;const[$,M]=am(u);return E.key===$?(E.preventDefault(),g>0?C=g-1:C=void 0):E.key===M?(E.preventDefault(),g<d.current.length-1?C=g+1:C=void 0):E.key==="Backspace"||E.key==="Delete"?(C=c8(g,h.length),Tt(E),on.flushSync(()=>{s.context.setIndices({activeIndex:null,selectedIndex:null,type:Pc,event:E.nativeEvent}),s.context.setSelectedValue(h.filter((S,P)=>P!==g),$e(mt,E.nativeEvent))})):E.key==="Enter"||E.key===" "?(Tt(E),C=void 0):E.key==="ArrowDown"||E.key==="ArrowUp"?(Tt(E),on.flushSync(()=>{s.context.setOpen(!0,$e(rr,E.nativeEvent))}),C=void 0):E.key.length===1&&!E.ctrlKey&&!E.metaKey&&!E.altKey&&(C=void 0),C}const y=Se("div",t,{ref:[n,x],state:{disabled:f},props:[{tabIndex:-1,"aria-disabled":f||void 0,"aria-readonly":m||void 0,onKeyDown(E){var $,M;if(f||m)return;const C=b(E);C===void 0?($=s.context.inputRef.current)==null||$.focus():(M=d.current[C])==null||M.focus()}},l]}),w=p.useMemo(()=>({index:g}),[g]);return c.jsx(Ru.Provider,{value:w,children:y})});process.env.NODE_ENV!=="production"&&(bm.displayName="ComboboxChip");const ym=p.forwardRef(function(t,n){const{render:r,className:i,disabled:a=!1,nativeButton:l=!0,style:s,...d}=t,u=Xt(),{index:f}=Y8(),m=u.useState("disabled"),h=u.useState("readOnly"),x=u.useState("selectedValue"),g=u.useState("isItemEqualToValue"),b=m||a,{buttonRef:v,getButtonProps:y}=Wt({native:l,disabled:b||h,focusableWhenDisabled:!0}),w={disabled:b};function E(M,S){const P=u.state.activeIndex;if(P==null)return;const N=vr(u.context.valuesRef.current,M,g);N!==-1&&P===N&&u.context.setIndices({activeIndex:null,type:di(S),event:S})}function C(M){var N;const S=$e(f6,M.nativeEvent),P=x[f];return E(P,M.nativeEvent),u.context.setSelectedValue(x.filter((R,z)=>z!==f),S),(N=u.context.inputRef.current)==null||N.focus(),S}return Se("button",t,{ref:[n,v],state:w,props:[{tabIndex:-1,onMouseDown(M){M.preventDefault()},onClick(M){C(M).isPropagationAllowed||M.stopPropagation()},onKeyDown(M){(M.key==="Enter"||M.key===" ")&&(C(M).isPropagationAllowed||Tt(M))}},d,y]})});process.env.NODE_ENV!=="production"&&(ym.displayName="ComboboxChipRemove");const Em=p.forwardRef(function(t,n){const{render:r,className:i,style:a,children:l,...s}=t,{filteredItems:d}=fi(),u=Xt(),f=$8(),m=d.length===0?l:null;return Se("div",t,{ref:[n,u.context.emptyRef,f],props:[{children:m,role:"status","aria-live":"polite","aria-atomic":!0},s]})});process.env.NODE_ENV!=="production"&&(Em.displayName="ComboboxEmpty");const X8={...ln,...ro},wm=p.forwardRef(function(t,n){const{render:r,className:i,disabled:a=!1,nativeButton:l=!0,keepMounted:s=!1,style:d,...u}=t,{disabled:f}=Ut(),m=Xt(),h=m.useState("selectionMode"),x=m.useState("disabled"),g=m.useState("readOnly"),b=m.useState("open"),v=m.useState("selectedValue"),y=m.useState("hasSelectionChips"),w=iu();let E=!1;h==="none"?E=w!=="":h==="single"?E=v!=null:E=y;const C=f||x||a,{buttonRef:$,getButtonProps:M}=Wt({native:l,disabled:C}),{mounted:S,transitionStatus:P,setMounted:N}=$n(E),R={disabled:C,visible:E,open:b,transitionStatus:P};Yt({open:E,ref:m.context.clearRef,onComplete(){E||N(!1)}});const z=Se("button",t,{state:R,ref:[n,$,m.context.clearRef],props:[{tabIndex:-1,children:"x",onMouseDown(F){F.preventDefault()},onClick(F){var j;if(C||g)return;const O=di(F);m.context.setInputValue("",$e(h2,F.nativeEvent)),h!=="none"?(m.context.setSelectedValue(Array.isArray(v)?[]:null,$e(h2,F.nativeEvent)),m.context.setIndices({activeIndex:null,selectedIndex:null,type:O,event:F.nativeEvent})):m.context.setIndices({activeIndex:null,type:O,event:F.nativeEvent}),(j=m.context.inputRef.current)==null||j.focus()}},u,M],stateAttributesMapping:X8});return s||S?z:null});process.env.NODE_ENV!=="production"&&(wm.displayName="ComboboxClear");const Iu=p.forwardRef(function(t,n){const{className:r,render:i,orientation:a="horizontal",style:l,...s}=t;return Se("div",t,{state:{orientation:a},ref:n,props:[{role:"presentation"},s]})});process.env.NODE_ENV!=="production"&&(Iu.displayName="ListboxSeparator");const Z8=Iu,J8=Q3,Q8=sm,eg=Cu,tg=$u,ng=Eu,rg=Su,og=Z8,ig=wm,ag=xm,lg=bm,sg=ym,Cm=o.forwardRef(({className:e,startIcon:t,error:n,disabled:r,...i},a)=>c.jsxs("div",{className:K("relative flex items-center w-full h-10 rounded-md border bg-white transition-colors",r?"border-border bg-surface-muted opacity-50 cursor-not-allowed":n?"border-danger focus-within:border-danger focus-within:ring-1 focus-within:ring-danger":"border-border hover:border-text-subtle focus-within:border-primary focus-within:ring-1 focus-within:ring-primary"),children:[t&&c.jsx("span",{className:"shrink-0 pl-3 text-text-subtle pointer-events-none flex items-center justify-center",children:t}),c.jsx(vu,{ref:a,disabled:r,className:K("h-full w-full bg-transparent px-3.5 py-2 text-sm text-text placeholder:text-text-subtle outline-none border-0 ring-0 shadow-none focus:outline-none focus:ring-0 focus:border-0",e),...i}),c.jsx("span",{className:"shrink-0 pr-3 text-text-subtle pointer-events-none flex items-center justify-center",children:c.jsx("svg",{className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"m6 9 6 6 6-6"})})})]}));Cm.displayName="GymatraComboboxInput";const Fu=o.forwardRef(({className:e,children:t,...n},r)=>c.jsx(fm,{ref:r,className:K("z-50 min-w-[var(--anchor-width)] max-h-64 overflow-y-auto rounded-lg border border-border bg-white p-1 text-sm text-text outline-none shadow-none",e),...n,children:t}));Fu.displayName="GymatraComboboxPopup";function cg({className:e="size-3.5"}){return c.jsx("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polyline",{points:"20 6 9 17 4 12"})})}const wa=o.forwardRef(({className:e,children:t,icon:n,description:r,...i},a)=>c.jsxs(gm,{ref:a,className:K("group relative flex w-full cursor-pointer select-none items-center justify-between gap-2 rounded-md px-2.5 py-1.5 text-sm text-text outline-none transition-colors","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[highlighted]:bg-surface-muted data-[highlighted]:text-text","data-[selected]:font-medium data-[selected]:text-primary",e),...i,children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[n&&c.jsx("span",{className:"shrink-0 size-4 text-text-muted flex items-center justify-center",children:n}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"truncate",children:t}),r&&c.jsx("div",{className:"text-[11px] text-text-muted truncate",children:r})]})]}),c.jsx(vm,{className:"shrink-0 size-4 flex items-center justify-center text-primary",children:c.jsx(cg,{})})]}));wa.displayName="GymatraComboboxItem";const Tu=o.forwardRef(({className:e,children:t,...n},r)=>c.jsx(Em,{ref:r,className:K("px-3 py-2 text-xs text-text-muted text-center",e),...n,children:t??"Aucun résultat trouvé"}));Tu.displayName="GymatraComboboxEmpty";const Ou=o.forwardRef(({className:e,...t},n)=>c.jsx(mm,{ref:n,className:K("px-2.5 py-1 text-[11px] font-semibold uppercase tracking-wider text-text-subtle select-none",e),...t}));Ou.displayName="GymatraComboboxGroupLabel";function ug(e){return e.map(t=>typeof t=="string"?{value:t,label:t}:t)}function dg({label:e,helperText:t,error:n,options:r,value:i,defaultValue:a,onValueChange:l,onChange:s,placeholder:d="Rechercher ou sélectionner...",emptyText:u="Aucun résultat trouvé",disabled:f=!1,required:m=!1,className:h,startIcon:x}){const g=ug(r),b=g.some(E=>!!E.group),v={};b&&g.forEach(E=>{const C=E.group||"Autres";v[C]||(v[C]=[]),v[C].push(E)});const y=E=>{l==null||l(E),s==null||s(E)},w=i!==void 0?{value:i,onValueChange:y,items:g}:a!==void 0?{defaultValue:a,onValueChange:y,items:g}:{onValueChange:y,items:g};return c.jsxs("div",{className:K("w-full space-y-1.5",h),children:[e&&c.jsxs("label",{className:"block text-xs font-semibold text-text",children:[e,m&&c.jsx("span",{className:"text-danger ml-0.5",children:"*"})]}),c.jsxs(Q3,{...w,disabled:f,children:[c.jsxs("div",{className:K("relative flex items-center w-full h-10 rounded-md border bg-white transition-colors",f?"border-border bg-surface-muted opacity-50 cursor-not-allowed":n?"border-danger focus-within:border-danger focus-within:ring-1 focus-within:ring-danger":"border-border hover:border-text-subtle focus-within:border-primary focus-within:ring-1 focus-within:ring-primary"),children:[x&&c.jsx("span",{className:"shrink-0 pl-3 text-text-subtle pointer-events-none flex items-center justify-center",children:x}),c.jsx(vu,{placeholder:d,disabled:f,className:"h-full w-full bg-transparent px-3.5 py-2 text-sm text-text placeholder:text-text-subtle outline-none border-0 ring-0 shadow-none focus:outline-none focus:ring-0 focus:border-0"}),c.jsx("span",{className:"shrink-0 pr-3 text-text-subtle pointer-events-none flex items-center justify-center",children:c.jsx("svg",{className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"m6 9 6 6 6-6"})})})]}),c.jsx(Cu,{children:c.jsx($u,{sideOffset:4,className:"z-50 outline-none",children:c.jsxs(Fu,{children:[c.jsx(Tu,{children:u}),c.jsx(Eu,{children:b?Object.entries(v).map(([E,C])=>c.jsxs(Su,{children:[c.jsx(Ou,{children:E}),C.map($=>c.jsx(wa,{value:$.value,disabled:$.disabled,icon:$.icon,description:$.description,children:$.label},$.value))]},E)):g.map(E=>c.jsx(wa,{value:E.value,disabled:E.disabled,icon:E.icon,description:E.description,children:E.label},E.value))})]})})})]}),n?c.jsx("p",{className:"text-[11px] text-danger",children:n}):t?c.jsx("p",{className:"text-[11px] text-text-muted",children:t}):null]})}const zu=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(zu.displayName="DialogRootContext");function sr(e){const t=p.useContext(zu);if(!e&&t===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.":Ve(27));return t}const Au=p.forwardRef(function(t,n){const{render:r,className:i,style:a,forceRender:l=!1,...s}=t,d=sr(),u=d.useState("open"),f=d.useState("nested"),m=d.useState("mounted"),h=d.useState("transitionStatus");return Se("div",t,{state:{open:u,transitionStatus:h},ref:[d.context.backdropRef,n],stateAttributesMapping:oi,props:[{role:"presentation",hidden:!m,style:{userSelect:"none",WebkitUserSelect:"none"}},s],enabled:l||!f})});process.env.NODE_ENV!=="production"&&(Au.displayName="DialogBackdrop");const jo=p.forwardRef(function(t,n){const{render:r,className:i,style:a,disabled:l=!1,nativeButton:s=!0,...d}=t,u=sr(),f=u.useState("open"),{getButtonProps:m,buttonRef:h}=Wt({disabled:l,native:s}),x={disabled:l};function g(b){f&&u.setOpen(!1,$e(Ga,b.nativeEvent))}return Se("button",t,{state:x,ref:[n,h],props:[{onClick:g},d,m]})});process.env.NODE_ENV!=="production"&&(jo.displayName="DialogClose");const ju=p.forwardRef(function(t,n){const{render:r,className:i,style:a,id:l,...s}=t,d=sr(),u=ft(l);return d.useSyncedValueWithCleanup("descriptionElementId",u),Se("p",t,{ref:n,props:[{id:u},s]})});process.env.NODE_ENV!=="production"&&(ju.displayName="DialogDescription");const Du=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(Du.displayName="DialogPortalContext");function fg(){const e=p.useContext(Du);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Dialog.Portal> is missing.":Ve(26));return e}const zs="ArrowUp",As="ArrowDown",js="ArrowLeft",Ds="ArrowRight",ks="Home",Hs="End",gi=new Set([zs,As,js,Ds,ks,Hs]),mg="Shift",pg=[mg,"Control","Alt","Meta"];function hg(e){return at(e)&&e.tagName==="INPUT"}function J2(e){return!!(hg(e)&&e.selectionStart!=null||at(e)&&e.tagName==="TEXTAREA")}function Q2(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop;const l=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(l&&r!=="vertical"){const d=e0(e,t,"left"),u=Yi(e),f=Yi(t);n==="ltr"&&(d+t.offsetWidth+f.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?i=d+t.offsetWidth+f.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:d-f.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(i=d-f.scrollMarginLeft-u.scrollPaddingLeft)),n==="rtl"&&(d-f.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft?i=d-f.scrollMarginLeft-u.scrollPaddingLeft:d+t.offsetWidth+f.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(i=d+t.offsetWidth+f.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(s&&r!=="horizontal"){const d=e0(e,t,"top"),u=Yi(e),f=Yi(t);d-f.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?a=d-f.scrollMarginTop-u.scrollPaddingTop:d+t.offsetHeight+f.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(a=d+t.offsetHeight+f.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:"auto"})}function e0(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function Yi(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}const gg="--nested-dialogs",vg="data-nested-dialog-open",xg={...ar,...ln,nestedDialogOpen(e){return e?{[vg]:""}:null}},ku=p.forwardRef(function(t,n){const{render:r,className:i,style:a,finalFocus:l,initialFocus:s,...d}=t,u=sr(),f=u.useState("descriptionElementId"),m=u.useState("disablePointerDismissal"),h=u.useState("floatingRootContext"),x=u.useState("popupProps"),g=u.useState("modal"),b=u.useState("mounted"),v=u.useState("nested"),y=u.useState("nestedOpenDialogCount"),w=u.useState("open"),E=u.useState("openMethod"),C=u.useState("titleElementId"),$=u.useState("transitionStatus"),M=u.useState("role"),S=h.useState("floatingId");fg(),Yt({open:w,ref:u.context.popupRef,onComplete(){var F,O;w&&((O=(F=u.context).onOpenChangeComplete)==null||O.call(F,!0))}});const P=s===void 0?N3(u.context.popupRef):s,N=y>0,R=u.useStateSetter("popupElement"),_=Se("div",t,{state:{open:w,nested:v,transitionStatus:$,nestedDialogOpen:N},props:[x,{id:S,"aria-labelledby":C,"aria-describedby":f,role:M,...lo,hidden:!b,onKeyDown(F){gi.has(F.key)&&F.stopPropagation()},style:{[gg]:y}},d],ref:[n,u.context.popupRef,R],stateAttributesMapping:xg});return c.jsx(si,{context:h,openInteractionType:E,disabled:!b,closeOnFocusOut:!m,initialFocus:P,returnFocus:l,modal:g!==!1,restoreFocus:"popup",children:_})});process.env.NODE_ENV!=="production"&&(ku.displayName="DialogPopup");const hl=p.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t,a=sr(),l=a.useState("mounted"),s=a.useState("modal"),d=a.useState("open");return l||r?c.jsx(Du.Provider,{value:r,children:c.jsxs(io,{ref:n,...i,children:[l&&s===!0&&c.jsx(fo,{ref:a.context.internalBackdropRef,inert:uo(!d)}),t.children]})}):null});process.env.NODE_ENV!=="production"&&(hl.displayName="DialogPortal");function bg({store:e,parentContext:t,isDrawer:n}){const r=e.useState("open"),i=e.useState("mounted"),a=e.useState("disablePointerDismissal"),l=e.useState("modal"),s=e.useState("popupElement"),d=e.useState("floatingRootContext"),[u,f]=p.useState(0),[m,h]=p.useState(0),x=u===0,g=ao(d,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:l==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(b){if(!e.context.outsidePressEnabledRef.current||"button"in b&&b.button!==0)return!1;if("touches"in b){if(b.type==="touchend"){if(b.changedTouches.length!==1||b.touches.length!==0)return!1}else if(b.touches.length!==1)return!1}const v=Ct(b);if(x&&!a){if(l){const y=e.context.internalBackdropRef.current,w=e.context.backdropRef.current;return y||w?y===v||w===v||Re(v,s)&&!(v!=null&&v.hasAttribute("data-base-ui-portal")):!0}return!0}return!1},escapeKey:x});return dm(r&&l===!0,s),e.useContextCallback("onNestedDialogOpen",(b,v)=>{!e.select("open")&&!e.select("mounted")||(f(b),h(v))}),ce(()=>{!r&&!i&&(f(0),h(0))},[r,i]),ce(()=>(t!=null&&t.onNestedDialogOpen&&r&&t.onNestedDialogOpen(u+1,m+(n?1:0)),()=>{t!=null&&t.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,u,m,t]),el(e,{activeTriggerProps:g.reference,inactiveTriggerProps:g.trigger,popupProps:g.floating,nestedOpenDialogCount:u,nestedOpenDrawerCount:m}),null}const yg={...Hn,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class Eg extends Cr{constructor(n,r,i){const a=new ui,l=wg(n,a,r,i);super(l,Cg(a),yg);Be(this,"setOpen",(n,r)=>{var i,a;r.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!n&&r.trigger==null&&this.state.activeTriggerId!=null&&(r.trigger=this.state.activeTriggerElement??void 0),(a=(i=this.context).onOpenChange)==null||a.call(i,n,r),!r.isCanceled&&(this.state.floatingRootContext.dispatchOpenChange(n,r),this.update(Xa(this.state,n,r.trigger)))})}}function wg(e,t,n,r=!1){return{...tl(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}function Cg(e){return{popupRef:p.createRef(),backdropRef:p.createRef(),internalBackdropRef:p.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function $g(e,t){const{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:l,disablePointerDismissal:s=!1,modal:d=!0,actionsRef:u,handle:f,triggerId:m,defaultTriggerId:h=null}=t,x=e==="drawer",g=d,b=s,v="dialog",y=sr(!0),w=y!=null,E={modal:g,disablePointerDismissal:b,nested:w,role:v},C=Kc((R,z)=>new Eg({open:i,openProp:r,activeTriggerId:h,triggerIdProp:m,...E},R,z),!0);C.useControlledProp("openProp",r),C.useControlledProp("triggerIdProp",m),C.useSyncedValues(E),C.useContextCallback("onOpenChange",a),C.useContextCallback("onOpenChangeComplete",l);const $=C.useState("open"),M=C.useState("mounted"),S=C.useState("payload");R3(C,$),Ja(C);const{forceUnmount:P}=Qa($,C);p.useImperativeHandle(u,()=>({unmount:P,close:()=>C.setOpen(!1,$e(oo))}),[P,C]);const N=$||M||f!=null;return c.jsxs(zu.Provider,{value:C,children:[f&&c.jsx(Ya,{handle:f,store:C}),N&&c.jsx(bg,{store:C,parentContext:y==null?void 0:y.context,isDrawer:x}),typeof n=="function"?n({payload:S}):n]})}const gl=ti(function(t){return $g("dialog",t)});process.env.NODE_ENV!=="production"&&(gl.displayName="DialogRoot");const Hu=p.forwardRef(function(t,n){const{render:r,className:i,style:a,id:l,...s}=t,d=sr(),u=ft(l);return d.useSyncedValueWithCleanup("titleElementId",u),Se("h2",t,{ref:n,props:[{id:u},s]})});process.env.NODE_ENV!=="production"&&(Hu.displayName="DialogTitle");const vl=ka(function(t,n){const{render:r,className:i,style:a,disabled:l=!1,nativeButton:s=!0,id:d,payload:u,handle:f,...m}=t,h=sr(!0),g=nl(f)??h;if(!g)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.":Ve(79));const b=ft(d),v=g.useState("floatingRootContext"),y=g.useState("isOpenedByTrigger",b),w=g.useState("triggerPopupId",b),E=p.useRef(null),{registerTrigger:C,isMountedByThisTrigger:$}=Za(b,E,g,{payload:u}),{getButtonProps:M,buttonRef:S}=Wt({disabled:l,native:s}),P=Mr(v),N=uu(()=>g.select("open"),_=>{g.set("openMethod",_)}),R={disabled:l,open:y},z=g.useState("triggerProps",$);return Se("button",t,{state:R,ref:[S,n,C,E],props:[P.reference,z,N,{[jc]:"",id:b,"aria-haspopup":"dialog","aria-expanded":y,"aria-controls":w},m,M],stateAttributesMapping:ro})});process.env.NODE_ENV!=="production"&&(vl.displayName="DialogTrigger");const $m={sm:"max-w-[420px]",md:"max-w-lg",lg:"max-w-xl",xl:"max-w-2xl"};function Mg({variant:e}){switch(e){case"danger":case"delete":return c.jsx("svg",{className:"size-12 text-danger stroke-[1.5]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})});case"warning":return c.jsx("svg",{className:"size-12 text-amber-600 stroke-[1.5]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})});case"success":return c.jsx("svg",{className:"size-12 text-emerald-600 stroke-[1.5]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})});case"info":return c.jsx("svg",{className:"size-12 text-sky-600 stroke-[1.5]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})});case"primary":return c.jsx("svg",{className:"size-12 text-primary stroke-[1.5]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z"})});default:return null}}function Mm({open:e,defaultOpen:t,onOpenChange:n,trigger:r,variant:i="default",size:a="sm",title:l,description:s,icon:d,align:u="center",children:f,confirmLabel:m,onConfirm:h,confirmVariant:x,cancelLabel:g="Annuler",onCancel:b,loading:v=!1,confirmDisabled:y=!1,showCloseButton:w=!1,footer:E,className:C}){const $=i==="danger"||i==="delete",S=m??(h?$?"Supprimer":"Confirmer":void 0),P=d===!1?null:d!==void 0?d:c.jsx(Mg,{variant:i}),N=()=>x||($?"danger":i==="warning"?"warning":i==="success"?"success":i==="info"?"info":"primary"),R=c.jsxs(hl,{children:[c.jsx(Au,{className:"fixed inset-0 z-50 bg-black/40 backdrop-blur-xs transition-opacity duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0"}),c.jsxs(ku,{className:K("fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-[calc(100%-2rem)] bg-white rounded-lg border border-border p-6 shadow-none","flex flex-col focus:outline-none transition-all duration-150","data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0",$m[a],u==="center"?"items-center text-center":"items-start text-left",C),children:[w&&c.jsx(jo,{className:"size-8 inline-flex items-center justify-center absolute right-3.5 top-3.5 rounded-md text-text-muted hover:bg-surface-muted hover:text-text cursor-pointer transition-colors focus-visible:outline-primary","aria-label":"Fermer",onClick:b,children:c.jsxs("svg",{className:"size-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),P&&c.jsx("div",{className:"flex items-center justify-center mb-3 text-center",children:P}),l&&c.jsx(Hu,{className:K("text-lg font-semibold text-text leading-snug",u==="center"?"text-center":"text-left"),children:l}),s&&c.jsx(ju,{className:K("text-sm text-text-muted mt-2 leading-relaxed",u==="center"?"text-center":"text-left"),children:s}),f&&c.jsx("div",{className:"mt-4 w-full text-left",children:f}),E!==void 0?E:(S||g)&&c.jsxs("div",{className:K("w-full mt-6",g&&S?"grid grid-cols-2 gap-3":"flex justify-end gap-3"),children:[g&&c.jsx(jo,{render:c.jsx(fa,{variant:"outline",size:"md",className:"w-full text-sm font-medium",onClick:b,disabled:v,children:g})}),S&&c.jsx(fa,{variant:N(),size:"md",className:"w-full text-sm font-medium",onClick:h,loading:v,disabled:y||v,children:S})]})]})]});return c.jsxs(gl,{open:e,defaultOpen:t,onOpenChange:n,children:[r&&c.jsx(vl,{render:r}),R]})}const po=Object.assign(Mm,{Root:gl,Trigger:vl,Portal:hl,Backdrop:o.forwardRef(function({className:t,...n},r){return c.jsx(Au,{ref:r,className:K("fixed inset-0 z-50 bg-black/40 backdrop-blur-xs transition-opacity duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",t),...n})}),Popup:o.forwardRef(function({className:t,size:n="sm",...r},i){return c.jsx(ku,{ref:i,className:K("fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-[calc(100%-2rem)] bg-white rounded-lg border border-border p-6 shadow-none","flex flex-col focus:outline-none transition-all duration-150","data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0",$m[n],t),...r})}),Title:o.forwardRef(function({className:t,...n},r){return c.jsx(Hu,{ref:r,className:K("text-lg font-semibold text-text leading-snug",t),...n})}),Description:o.forwardRef(function({className:t,...n},r){return c.jsx(ju,{ref:r,className:K("text-sm text-text-muted mt-2 leading-relaxed",t),...n})}),Close:jo}),Sg=gl,Ng=vl,Pg=hl,Rg=po.Backdrop,Ig=po.Popup,Fg=po.Popup,Tg=po.Title,Og=po.Description,zg=jo,aa={s:400,m:560,l:700,xl:860,full:1100};function la(e){return typeof e=="number"?e:e&&e in aa?aa[e]:aa.m}const Lu=o.createContext(void 0),Sm=()=>{const e=o.useContext(Lu);if(!e)throw new Error("useGymatraDrawer must be used within a GymatraDrawerProvider");return e},Ag=Sm,jg=Lu;function Nm({children:e}){const[t,n]=o.useState(!1),[r,i]=o.useState(!1),[a,l]=o.useState(!1),[s,d]=o.useState("m"),[u,f]=o.useState(null),[m,h]=o.useState(null),x=o.useRef(null),g=o.useRef(null),[b,v]=o.useState(!1),[y,w]=o.useState(!1),[E,C]=o.useState(!1),[$,M]=o.useState("l"),[S,P]=o.useState(null),[N,R]=o.useState(null),z=o.useRef(null),_=o.useRef(null),[F,O]=o.useState(!1),[j,V]=o.useState(!1),[J,U]=o.useState(!1),[G,I]=o.useState("s"),[A,T]=o.useState(null),[q,D]=o.useState(null),B=o.useRef(null),W=o.useRef(null);o.useEffect(()=>{if(r&&t){const we=requestAnimationFrame(()=>{l(!0)});return()=>cancelAnimationFrame(we)}else l(!1)},[r,t]),o.useEffect(()=>{if(y&&b){const we=requestAnimationFrame(()=>{C(!0)});return()=>cancelAnimationFrame(we)}else C(!1)},[y,b]),o.useEffect(()=>{if(j&&F){const we=requestAnimationFrame(()=>{U(!0)});return()=>cancelAnimationFrame(we)}else U(!1)},[j,F]),o.useEffect(()=>{const we=()=>{he()};return window.addEventListener("popstate",we),()=>window.removeEventListener("popstate",we)},[]);const X=(we,Y="s",ae={})=>{W.current&&clearTimeout(W.current),T(()=>we),I(Y),D(ae),V(!0),O(!0)},ee=()=>{O(!1),U(!1),W.current&&clearTimeout(W.current),W.current=setTimeout(()=>{V(!1),T(null),D(null)},300)},Q=(we,Y="l",ae={})=>{_.current&&clearTimeout(_.current),P(()=>we),M(Y),R(ae),w(!0),v(!0)},ie=()=>{ee(),v(!1),C(!1),_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{w(!1),P(null),R(null)},300)},se=(we,Y="m",ae={})=>{g.current&&clearTimeout(g.current),f(()=>we),d(Y),h(ae),i(!0),n(!0)},Z=()=>{ee(),ie(),n(!1),l(!1),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{i(!1),f(null),h(null)},300)},he=()=>{Z()};o.useEffect(()=>{const we=Y=>{Y.key==="Escape"&&(F?ee():b?ie():t&&Z())};if(t||b||F)return document.addEventListener("keydown",we),()=>document.removeEventListener("keydown",we)},[t,b,F]);const re=r||y||j,fe=a||E||J,ue=(t?1:0)+(b?1:0)+(F?1:0),ne=la(s),me=la($),le=la(G);return c.jsxs(Lu.Provider,{value:{openDrawer:se,closeDrawer:Z,isOpen:t,size:s,contentProps:m,Component:u,openSecondDrawer:Q,closeSecondDrawer:ie,isSecondOpen:b,secondSize:$,secondContentProps:N,SecondComponent:S,openThirdDrawer:X,closeThirdDrawer:ee,isThirdOpen:F,thirdSize:G,thirdContentProps:q,ThirdComponent:A,closeAll:he,openCount:ue},children:[e,re&&c.jsx("div",{"aria-hidden":"true",onClick:()=>{F?ee():b?ie():t&&Z()},className:K("fixed inset-0 z-[9990] bg-black/40 backdrop-blur-[2px] cursor-pointer","transition-opacity duration-300 ease-out",fe?"opacity-100":"opacity-0 pointer-events-none")}),re&&c.jsxs("div",{className:K("fixed end-0 top-0 bottom-0 z-[10000] flex items-stretch justify-end pointer-events-none","overflow-x-auto overflow-y-hidden max-[900px]:!inset-0"),children:[j&&c.jsx("div",{ref:B,className:K("flex flex-col bg-white border-s border-border min-h-0 shrink-0 overflow-y-auto overflow-x-hidden shadow-none","transition-all duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]",J?"translate-x-0 opacity-100 pointer-events-auto":"translate-x-full opacity-0 pointer-events-none","max-[900px]:!w-full max-[900px]:!border-0 max-[900px]:fixed max-[900px]:inset-0 max-[900px]:z-30"),style:{width:`${le}px`,maxWidth:"100vw"},children:A&&c.jsx(A,{...q||{}})}),y&&c.jsx("div",{ref:z,className:K("flex flex-col bg-white border-s border-border min-h-0 shrink-0 overflow-y-auto overflow-x-hidden shadow-none","transition-all duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]",E?"translate-x-0 opacity-100 pointer-events-auto":"translate-x-full opacity-0 pointer-events-none","max-[900px]:!w-full max-[900px]:!border-0 max-[900px]:fixed max-[900px]:inset-0 max-[900px]:z-20"),style:{width:`${me}px`,maxWidth:"100vw"},children:S&&c.jsx(S,{...N||{}})}),r&&c.jsx("div",{ref:x,className:K("flex flex-col bg-white border-s border-border min-h-0 shrink-0 overflow-y-auto overflow-x-hidden shadow-none","transition-all duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]",a?"translate-x-0 opacity-100 pointer-events-auto":"translate-x-full opacity-0 pointer-events-none","max-[900px]:!w-full max-[900px]:!border-0 max-[900px]:fixed max-[900px]:inset-0 max-[900px]:z-10"),style:{width:`${ne}px`,maxWidth:"100vw"},children:u&&c.jsx(u,{...m||{}})})]})]})}const Dg=Nm;function kg({title:e,description:t,icon:n,showCloseButton:r=!0,onClose:i,footer:a,className:l,children:s,...d}){return c.jsxs("div",{className:K("flex h-full flex-col bg-white text-text min-h-0",l),...d,children:[(e||r)&&c.jsxs("div",{className:"sticky top-0 z-20 shrink-0 bg-white",children:[c.jsxs("div",{className:"flex items-center justify-between px-5 pt-4 pb-3 sm:px-6",children:[c.jsxs("div",{className:"flex items-center gap-3 min-w-0 pe-3",children:[n&&c.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg bg-primary-soft text-primary",children:n}),c.jsxs("div",{className:"min-w-0",children:[e&&c.jsx("h3",{className:"text-base font-semibold text-text truncate",children:e}),t&&c.jsx("p",{className:"text-xs text-text-muted truncate mt-0.5",children:t})]})]}),r&&c.jsx("button",{type:"button",onClick:i,"aria-label":"Close drawer",className:"size-8 inline-flex shrink-0 items-center justify-center rounded-md text-text-muted hover:bg-surface-muted hover:text-text cursor-pointer transition-colors",children:c.jsxs("svg",{className:"size-4.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),c.jsx("div",{className:"mx-5 sm:mx-6 border-b border-border"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto p-5 text-sm text-text space-y-4",children:s}),a&&c.jsx("div",{className:"flex shrink-0 items-center justify-end gap-2.5 border-t border-border px-5 py-3.5 bg-surface/30",children:a})]})}function Hg({className:e="size-3.5"}){return c.jsx("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"m6 9 6 6 6-6"})})}function Vu({label:e,options:t,multiple:n=!1,value:r,defaultValue:i,onChange:a,placeholder:l,bordered:s=!0,showCount:d=!0,size:u="sm",width:f,className:m,disabled:h=!1}){const[x,g]=o.useState(()=>typeof i<"u"?i:n?[]:t.length>0?t[0].value:""),[b,v]=o.useState(!1),y=o.useRef(null),w=r??x,E=n?Array.isArray(w)?w:w?[w]:[]:typeof w=="string"&&w!==""?[w]:[];let C;if(n)if(E.length===0)C=l??`All ${e}`;else if(E.length===1){const N=t.find(R=>R.value===E[0]);C=N?N.label:E[0]}else E.length===t.length?C=`All (${E.length})`:C=`${E.length} selected`;else{const N=E[0],R=t.find(z=>z.value===N);C=R?R.label:l??`All ${e}`}const $=n?E.length>0:!!(E[0]&&E[0]!=="all"&&E[0]!=="");o.useEffect(()=>{function N(R){y.current&&!y.current.contains(R.target)&&v(!1)}if(b)return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[b]),o.useEffect(()=>{function N(R){R.key==="Escape"&&v(!1)}if(b)return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[b]);function M(N){if(n){const z=E.includes(N)?E.filter(_=>_!==N):[...E,N];typeof r>"u"&&g(z),a==null||a(z)}else typeof r>"u"&&g(N),a==null||a(N),v(!1)}function S(){const N=t.filter(R=>!R.disabled).map(R=>R.value);typeof r>"u"&&g(N),a==null||a(N)}function P(){const N=[];typeof r>"u"&&g(N),a==null||a(N)}return c.jsxs("div",{ref:y,className:K("relative inline-block text-left",m),children:[c.jsxs("button",{type:"button",disabled:h,onClick:()=>v(N=>!N),"aria-haspopup":"listbox","aria-expanded":b,"aria-label":`${e}: ${C}`,className:K("inline-flex items-center justify-between gap-2 rounded-md text-text cursor-pointer transition-colors outline-none","focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary","disabled:pointer-events-none disabled:opacity-50",u==="sm"?"h-8.5 px-3 text-sm":"h-10 px-3.5 text-sm",f||(u==="sm"?"w-[165px]":"w-[185px]"),s?"border border-border bg-white hover:border-border-strong hover:bg-surface/50":"border-0 bg-transparent hover:bg-surface/50",b&&"bg-primary-soft/50 text-primary",$&&!b&&"bg-primary-soft/50 text-primary"),children:[c.jsxs("span",{className:"flex items-center gap-1.5 truncate",children:[c.jsxs("span",{className:"text-text-muted",children:[e,":"]}),c.jsx("span",{className:"truncate",children:C})]}),c.jsx("span",{className:K("text-text-subtle transition-transform duration-150 flex items-center shrink-0",b&&"rotate-180 text-primary"),"aria-hidden":"true",children:c.jsx(Hg,{})})]}),b&&c.jsxs("div",{role:"listbox","aria-multiselectable":n,"aria-label":e,className:"absolute left-0 z-50 mt-1 min-w-[190px] w-max max-w-[280px] rounded-lg border border-border bg-white p-1.5 shadow-none focus:outline-none",children:[n&&t.length>2&&c.jsxs("div",{className:"flex items-center justify-between border-b border-border px-2 py-1.5 mb-1 text-xs text-text-muted",children:[c.jsxs("span",{children:[E.length," of ",t.length," selected"]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("button",{type:"button",onClick:S,className:"text-primary hover:underline font-medium cursor-pointer",children:"All"}),c.jsx("span",{className:"text-border","aria-hidden":"true",children:"|"}),c.jsx("button",{type:"button",onClick:P,className:"text-text-muted hover:text-text hover:underline cursor-pointer",children:"Clear"})]})]}),c.jsx("div",{className:"max-h-60 overflow-y-auto space-y-0.5",children:t.map(N=>{const R=E.includes(N.value);return c.jsxs("button",{type:"button",role:"option","aria-selected":R,disabled:N.disabled,onClick:()=>M(N.value),className:K("flex w-full items-center justify-between gap-2.5 rounded-md px-2 py-1.5 text-xs text-left cursor-pointer transition-colors outline-none","hover:bg-surface hover:text-text","focus-visible:bg-surface focus-visible:text-primary","disabled:pointer-events-none disabled:opacity-40",R?"bg-primary-soft/40 text-primary font-medium":"text-text font-normal"),children:[c.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[c.jsx("span",{"aria-hidden":"true",className:K("size-5 shrink-0 rounded-md flex items-center justify-center border transition-colors",R?"border-primary bg-primary text-white":"border-slate-300 bg-white hover:border-slate-400"),children:R&&c.jsx("svg",{"aria-hidden":"true",className:"size-4 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polyline",{points:"20 6 9 17 4 12"})})}),c.jsx("span",{className:"truncate",children:N.label})]}),d&&typeof N.count<"u"&&c.jsx("span",{className:K("shrink-0 rounded px-1.5 py-0.5 text-[10px] font-medium leading-none",R?"bg-primary text-white":"bg-surface text-text-muted"),children:N.count})]},N.value)})})]})]})}Vu.displayName="GymatraFilterSelect";function Lg({className:e="size-4"}){return c.jsxs("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"11",cy:"11",r:"7"}),c.jsx("path",{d:"m21 21-4.35-4.35"})]})}function Pm({className:e="size-3"}){return c.jsx("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})}function Vg({className:e="size-3.5"}){return c.jsx("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"m6 9 6 6 6-6"})})}function _g({className:e="size-3.5"}){return c.jsx("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})})}function Rm({value:e,onChange:t,onClear:n,placeholder:r="Search...",borderless:i=!0,className:a,...l}){const s=!!(e&&String(e).length>0);return c.jsxs("div",{className:K("relative flex items-center shrink-0",i?"w-[180px] min-w-[140px] max-w-[220px]":"w-60",a),children:[c.jsx("span",{className:"pointer-events-none absolute left-0.5 flex items-center text-text-subtle","aria-hidden":"true",children:c.jsx(Lg,{className:"size-4"})}),c.jsx("input",{type:"search",value:e,onChange:t,placeholder:r,className:K("w-full h-9 bg-transparent text-[13px] text-text placeholder:text-[13px] placeholder:text-text-subtle",i?"border-0 ring-0 outline-none shadow-none pl-6 pr-5 focus:border-0 focus:ring-0 focus:outline-none focus:shadow-none active:border-0 active:ring-0 active:outline-none":"rounded-md border border-border pl-8 pr-6 focus:border-primary focus:outline-2 focus:outline-primary/30"),...l}),s&&n&&c.jsx("button",{type:"button",onClick:n,"aria-label":"Clear search",className:"absolute right-0.5 flex size-5 items-center justify-center text-text-subtle hover:text-text cursor-pointer transition-colors",children:c.jsx(Pm,{className:"size-3.5"})})]})}function Bg({label:e,options:t,value:n,defaultValue:r,onChange:i,className:a,...l}){return c.jsxs("div",{className:K("relative inline-flex items-center",a),children:[c.jsx("select",{value:n,defaultValue:r,onChange:i,"aria-label":e,className:"h-8.5 rounded-md border border-border bg-surface pl-2.5 pr-7 text-xs text-text outline-none hover:border-border-strong focus-visible:border-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary cursor-pointer appearance-none transition-colors",...l,children:t.map(s=>c.jsx("option",{value:s.value,children:s.label},s.value))}),c.jsx("span",{className:"pointer-events-none absolute right-2 text-text-subtle flex items-center","aria-hidden":"true",children:c.jsx(Vg,{})})]})}function Im({label:e,valueLabel:t,onRemove:n,className:r}){return c.jsxs("span",{className:K("inline-flex h-6 items-center gap-1.5 rounded border border-border bg-surface px-2 text-xs text-text",r),children:[c.jsxs("span",{className:"text-text-muted",children:[e,":"]}),c.jsx("span",{className:"font-medium text-text",children:t}),c.jsx("button",{type:"button",onClick:n,"aria-label":`Remove filter ${e}: ${t}`,className:"inline-flex size-3.5 items-center justify-center rounded-full text-text-muted hover:text-text cursor-pointer transition-colors",children:c.jsx(Pm,{})})]})}function Fm({searchValue:e,onSearchChange:t,searchPlaceholder:n="Search...",searchBorderless:r=!0,totalCount:i,countLabel:a="Results",actions:l,filters:s=[],activeFilters:d=[],onResetFilters:u,isFiltersOpen:f,defaultFiltersOpen:m=!1,onToggleFilters:h,filterButtonLabel:x="Filters",bottomContent:g,className:b,children:v,...y}){const[w,E]=o.useState(m),C=f??w;function $(){const P=!C;typeof f>"u"&&E(P),h==null||h(P)}const M=typeof e<"u"||typeof t<"u";s.length>0||d.length>0;const S=d.length;return c.jsxs("div",{className:K("flex flex-col w-full",b),...y,children:[c.jsxs("div",{className:"flex flex-wrap items-center min-h-12 py-1.5 ps-3.5 pe-1.5 gap-3 rounded-lg border border-border bg-surface",children:[M&&c.jsx(Rm,{value:e,onChange:P=>t==null?void 0:t(P.target.value),onClear:()=>t==null?void 0:t(""),placeholder:n,borderless:r}),M&&typeof i<"u"&&c.jsx("span",{className:"h-5 w-px shrink-0 bg-border","aria-hidden":"true"}),typeof i<"u"&&c.jsxs("div",{className:"inline-flex items-center gap-1.5 whitespace-nowrap text-sm text-text-muted",children:[c.jsx("span",{className:"font-semibold text-text",children:i}),c.jsx("span",{children:a})]}),v,c.jsxs("div",{className:"ms-auto flex flex-wrap items-center gap-2.5",children:[s.length>0&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"h-5 w-px shrink-0 bg-border","aria-hidden":"true"}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.map(P=>c.jsx(Vu,{label:P.label,options:P.options,multiple:P.multiple,value:P.value,defaultValue:P.defaultValue,onChange:P.onChange},P.id)),u&&(d.length>0||!!e)&&c.jsx("button",{type:"button",onClick:u,className:"rounded px-1.5 py-0.5 text-xs font-medium text-primary hover:underline cursor-pointer transition-opacity",children:"Reset"})]})]}),l,g&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"h-5 w-px shrink-0 bg-border","aria-hidden":"true"}),c.jsxs("button",{type:"button",onClick:$,"aria-expanded":C,"aria-label":`${C?"Hide":"Show"} filters`,title:x,"data-active":C||S>0,className:"relative inline-flex size-8 shrink-0 items-center justify-center rounded-md border-0 bg-transparent text-text hover:bg-surface-muted hover:text-primary cursor-pointer transition-colors outline-none focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary data-[active=true]:bg-primary-soft data-[active=true]:text-primary",children:[c.jsx(_g,{}),S>0&&c.jsx("span",{className:"absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-bold leading-none text-white",children:S})]})]})]})]}),d.length>0&&c.jsx("div",{className:"mt-2 flex flex-wrap items-center gap-1.5 px-1","aria-label":"Applied filters",children:d.map(P=>c.jsx(Im,{label:P.label,valueLabel:P.valueLabel,onRemove:P.onRemove},P.id))}),C&&g&&c.jsx("div",{className:"mt-2.5 flex flex-col gap-3 rounded-lg border border-border bg-surface p-3.5 transition-all",children:g})]})}Fm.displayName="GymatraFilterBar";const Tm=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(Tm.displayName="FieldsetRootContext");function Gg(e=!1){const t=p.useContext(Tm);if(!t&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>.":Ve(86));return t}const _u=function(t){const n=ft(),[r,i]=p.useState(n),[a,l]=p.useState(),[s,d]=p.useState([]),u=r===void 0?n:r,f=Pt(()=>new Map),{messageIds:m}=sn(),h=de((v,y)=>{const w=f.current;y===void 0?w.delete(v):w.set(v,y),i(E=>{if(w.size===0)return E;let C;for(const $ of w.values()){if($===E)return E;C===void 0&&(C=$)}return C})}),x=de(()=>{f.current.size===0&&i(n)}),g=p.useCallback(v=>{const y=v["aria-describedby"]?v["aria-describedby"].split(" "):[];return y.push(...m,...s),{...v,"aria-describedby":Array.from(new Set(y)).join(" ")||void 0}},[m,s]),b=p.useMemo(()=>({controlId:u,registerControlId:h,resetControlId:x,labelId:a,setLabelId:l,messageIds:s,setMessageIds:d,getDescriptionProps:g}),[u,h,x,a,l,s,d,g]);return c.jsx(su.Provider,{value:b,children:t.children})};process.env.NODE_ENV!=="production"&&(_u.displayName="LabelableProvider");function Om(e,t,n,r=!0,i,a){const[l,s]=p.useState(),d=ft(i?`${i}-label`:void 0),u=!!(a!=null&&a.trim()),m=e??(u?void 0:t)??l;return ce(()=>{const h=e||t||u||!r?void 0:Ug(n.current,d);l!==h&&s(h)}),m}function Ug(e,t){const n=Wg(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Wg(e){if(!e)return;const t=e.parentElement;if(t&&t.tagName==="LABEL")return t;const n=e.id;if(n){const i=e.nextElementSibling;if(i&&i.htmlFor===n)return i}const r=e.labels;return r&&r[0]}function Ca(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}const ss=Object.keys(cl);function Kg(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}function t0(e,t){let n=null;for(const r of e.keys())if(Kg(r,t)){if(!r.validity.valid)return r;n??(n=r)}return n}function n0(e){return{...cl,valid:!e,customError:e}}function cs(e){return e&&e.validationMessage?[e.validationMessage]:[]}function qg(e){const{elementRef:t,formRef:n}=Yn(),{setValidityData:r,validate:i,validityData:a,validationDebounceTime:l,invalid:s,markedDirtyRef:d,state:u,shouldValidateOnChange:f,validationMode:m,registeredFieldIdRef:h}=e,{controlId:x,getDescriptionProps:g}=sn(),b=wt(),v=p.useRef(null),y=Pt(()=>new Map).current,w=p.useRef(0),E=p.useRef(null),C=p.useCallback((N,R)=>(y.set(N,R),()=>{y.delete(N)}),[y]),$=de(()=>{var R;const N=t0(y,t.current);return N&&((R=y.get(N))==null?void 0:R.controlRef.current)||null}),M=de(async(N,R=!1)=>{w.current+=1;const z=w.current;function _(D,B=s){const W=h.current??x;if(W==null)return;const X=n.current.fields.get(W);if(!X)return;const ee=Ca(D,B);n.current.fields.set(W,{...X,validityData:ee})}function F(D,B){const W=D.valid===!1?B:[];return{value:N,state:D,error:W[0]??"",errors:W,initialValue:a.initialValue}}function O(D,B){const W=D.validity.customError?D.validationMessage:"",X=B.replace(/\r\n?/g,`
66
- `);D.setCustomValidity(X),E.current=[D,X,W]}function j(){const D=E.current;E.current=null,D&&(!D[0].willValidate||D[0].validationMessage===D[1])&&D[0].setCustomValidity(D[2])}function V(D,B,W){const X=F(D,B);_(X,W),r(X)}function J(D){const B=ss.reduce((X,ee)=>(X[ee]=D.validity[ee],X),{});let W=!1;for(const X of ss)if(X!=="valid"){if(X==="valueMissing"&&B[X])W=!0;else if(B[X])return B}return W&&!d.current&&(B.valid=!0,B.valueMissing=!1),B}function U(){return y.size>0?t0(y,t.current):v.current}let G=U();function I(){return G=U(),G!=null&&G.willValidate?J(G):n0(!1)}if(R){if(u.valid!==!1||!G)return;if(!G.validity.valueMissing){j();const D=U(),B=D!=null&&D.validity.customError?cs(D):[];V(n0(B.length>0),B,!1);return}for(const D of ss)if(D!=="valid"&&D!=="valueMissing"&&D!=="customError"&&G.validity[D])return}b.clear(),j();let A=I(),T=cs(G);const q=f();if(T.length===0||q){const D=Array.from(n.current.fields.values()).reduce((X,ee)=>(ee.name&&(X[ee.name]=ee.getValue()),X),{}),B=i(N,D);let W;if(typeof B=="object"&&B!==null&&"then"in B){if(A.valid===!1?V(A,T):(m==="onSubmit"||!a.state.customError)&&(A.valid=null,V(A,T)),W=await B,z!==w.current)return;A=I()}else W=B;T=W?[].concat(W).filter(Boolean):[],T.length>0?(A.valid=!1,A.customError=!0,G!=null&&G.willValidate&&O(G,T.join(`
67
- `))):T=cs(G)}V(A,T)}),S=de((N,R=!1)=>{if(b.clear(),w.current+=1,R)return;const z=f();z&&N!==""&&l?b.start(l,()=>{M(N)}):M(N,!z)}),P=p.useCallback((N,R={})=>_t(g(R),u.valid===!1&&!u.disabled&&!N?{"aria-invalid":!0}:We),[g,u.disabled,u.valid]);return p.useMemo(()=>({getValidationProps:P,inputRef:v,registeredInputs:y,registerInput:C,getInputControl:$,commit:M,change:S}),[P,y,C,$,M,S])}function Yg(e){const{change:t,commit:n,invalid:r,markedDirtyRef:i,name:a,setRegisteredFieldName:l,registeredFieldIdRef:s,setValidityData:d,validityData:u}=e,{formRef:f}=Yn(),m=p.useRef(null),h=p.useRef(null),x=p.useRef(!1),g=de(()=>{const $=h.current;if($)return $.getValue?$.getValue():$.value});function b($){return $.value===void 0?g():$.value}const v=de(()=>{const $=h.current;if(i.current=!0,!$){n(u.value);return}n(b($))});function y(){const $=h.current;!$||!$.id||f.current.fields.set($.id,{getValue:g,name:a??$.name,controlRef:$.controlRef,validityData:Ca(u,r),validate:v})}function w($=(M=>(M=h.current)==null?void 0:M.id)()){$&&f.current.fields.delete($)}function E($){if(x.current)return;x.current=!0;const M=b($);d(S=>S.initialValue===M?S:{...S,initialValue:M})}ce(()=>{const $=h.current;!$||!$.id||(l(a?void 0:$.name),f.current.fields.set($.id,{getValue:g,name:a??$.name,controlRef:$.controlRef,validityData:Ca(u,r),validate:v}))},[f,g,r,a,l,v,u]),ce(()=>{const $=f.current.fields;return()=>{var S;const M=(S=h.current)==null?void 0:S.id;M&&$.delete(M)}},[f]);const C=de(($,M)=>{var N;if(!M){m.current===$&&(m.current=null,t(void 0,!0),w(),h.current=null,l(void 0),s.current=void 0);return}const S=(N=h.current)==null?void 0:N.id,P=m.current;P&&P!==$&&t(void 0,!0),m.current=$,h.current=M,a||l(M.name),s.current=M.id,S&&S!==M.id&&w(S),E(M),y()});return[v,C]}const zm=p.forwardRef(function(t,n){var ne;const{errors:r,validationMode:i,submitCountRef:a}=Yn(),{render:l,className:s,validate:d,validationDebounceTime:u=0,validationMode:f=i,name:m,disabled:h=!1,invalid:x,dirty:g,touched:b,actionsRef:v,style:y,...w}=t,E=(ne=Gg(!0))==null?void 0:ne.disabled,C=de(d||(()=>null)),$=E||h,[M,S]=p.useState(!1),[P,N]=p.useState(!1),[R,z]=p.useState(!1),[_,F]=p.useState(!1),O=p.useRef(void 0),j=g??P,V=b??M,J=p.useRef(j),U=p.useRef(void 0),[G,I]=p.useState(),A=m??G;ce(()=>{g!==void 0&&(J.current=g)},[g]);const T=de(me=>{g===void 0&&(me&&(J.current=!0),N(me))}),q=de(me=>{b===void 0&&S(me)}),D=de(()=>f==="onChange"||f==="onSubmit"&&a.current>0),B=A&&Object.hasOwn(r,A)?r[A]:null,W=!!(Array.isArray(B)?B.length:B),X=x===!0||W,[ee,Q]=p.useState({state:cl,error:"",errors:[],value:null,initialValue:null}),ie=!X&&($?null:ee.state.valid),se=p.useMemo(()=>({disabled:$,touched:V,dirty:j,valid:ie,filled:R,focused:_}),[$,V,j,ie,R,_]),Z=qg({setValidityData:Q,validate:C,validityData:ee,validationDebounceTime:u,invalid:X,markedDirtyRef:J,state:se,shouldValidateOnChange:D,validationMode:f,registeredFieldIdRef:U}),[he,re]=Yg({change:Z.change,commit:Z.commit,invalid:X,markedDirtyRef:J,name:m,setRegisteredFieldName:I,registeredFieldIdRef:U,setValidityData:Q,validityData:ee});p.useImperativeHandle(v,()=>({validate:he}),[he]);const fe=p.useMemo(()=>({invalid:X,name:A,validityData:ee,setValidityData:Q,disabled:$,setTouched:q,setDirty:T,setFilled:z,setFocused:F,focusOwnerRef:O,validationMode:f,shouldValidateOnChange:D,state:se,registerFieldControl:re,validation:Z}),[X,A,ee,$,q,T,z,F,f,D,se,re,Z]),ue=Se("div",t,{ref:n,state:se,props:w,stateAttributesMapping:Mn});return c.jsx(ul.Provider,{value:fe,children:ue})});process.env.NODE_ENV!=="production"&&(zm.displayName="FieldRootInner");const vi=p.forwardRef(function(t,n){return c.jsx(_u,{children:c.jsx(zm,{...t,ref:n})})});process.env.NODE_ENV!=="production"&&(vi.displayName="FieldRoot");const Bu=p.createContext({disabled:!1});process.env.NODE_ENV!=="production"&&(Bu.displayName="FieldItemContext");function Gu(){return p.useContext(Bu)}const xi=p.forwardRef(function(t,n){const{render:r,className:i,style:a,id:l,nativeLabel:s=!0,...d}=t,u=Ut(!1),f=Gu(),{labelId:m}=sn(),h={...u.state,disabled:u.disabled||f.disabled},x=p.useRef(null),g=tm({id:m??l,native:s});return process.env.NODE_ENV!=="production"&&p.useEffect(()=>{var y,w;if(!x.current)return;const v=x.current.tagName==="LABEL";if(s){if(!v){const E=((y=Vt.captureOwnerStack)==null?void 0:y.call(Vt))||"";yr(`<Field.Label> expected a <label> element because the \`nativeLabel\` prop is true. Rendering a non-<label> disables native label association, so \`htmlFor\` will not work. Use a real <label> in the \`render\` prop, or set \`nativeLabel\` to \`false\`.${E}`)}}else if(v){const E=((w=Vt.captureOwnerStack)==null?void 0:w.call(Vt))||"";yr(`<Field.Label> expected a non-<label> element because the \`nativeLabel\` prop is false. Rendering a <label> assumes native label behavior while Base UI treats it as non-native, which can cause unexpected pointer behavior. Use a non-<label> in the \`render\` prop, or set \`nativeLabel\` to \`true\`.${E}`)}},[s]),Se("label",t,{ref:[n,x],state:h,props:[g,d],stateAttributesMapping:Mn})});process.env.NODE_ENV!=="production"&&(xi.displayName="FieldLabel");const Xg={...Mn,...ln},Wr=p.forwardRef(function(t,n){const{render:r,id:i,className:a,match:l,style:s,...d}=t,u=ft(i),{validityData:f,state:m,name:h}=Ut(!1),{setMessageIds:x}=sn(),{errors:g}=Yn(),b=h&&Object.hasOwn(g,h)?g[h]:null,v=!!(Array.isArray(b)?b.length:b),y=typeof l=="string";let w=!1;l===!0?w=!0:m.disabled?w=!1:y?w=!!f.state[l]:w=v||f.state.valid===!1;const{mounted:E,transitionStatus:C,setMounted:$}=$n(w);ce(()=>{if(!(!w||!u))return x(V=>V.concat(u)),()=>{x(V=>V.filter(J=>J!==u))}},[w,u,x]);const M=p.useRef(null),[S,P]=p.useState(null),[N,R]=p.useState(null);let z=f.error;!y&&v?z=b:f.errors.length>1&&(z=f.errors);let _=z;Array.isArray(z)&&(_=z.length>1?c.jsx("ul",{children:z.map(V=>c.jsx("li",{children:V},V))}):z[0]);const F=Array.isArray(z)?JSON.stringify(z):z;w&&F!==N&&(R(F),P(_)),Yt({open:w,ref:M,onComplete(){w||$(!1)}});const O={...m,transitionStatus:C},j=Se("div",t,{ref:[n,M],state:O,props:[{id:u,children:w?_:S},d],stateAttributesMapping:Xg,enabled:E});return E?j:null});process.env.NODE_ENV!=="production"&&(Wr.displayName="FieldError");const bi=p.forwardRef(function(t,n){const{render:r,id:i,className:a,style:l,...s}=t,d=ft(i),u=Ut(!1),f=Gu(),{setMessageIds:m}=sn(),h={...u.state,disabled:u.disabled||f.disabled};return ce(()=>{if(d)return m(g=>g.concat(d)),()=>{m(g=>g.filter(b=>b!==d))}},[d,m]),Se("p",t,{ref:n,state:h,props:[{id:d},s],stateAttributesMapping:Mn})});process.env.NODE_ENV!=="production"&&(bi.displayName="FieldDescription");const yi=p.forwardRef(function(t,n){const{render:r,className:i,id:a,name:l,value:s,disabled:d=!1,onValueChange:u,defaultValue:f,autoFocus:m=!1,style:h,...x}=t,{state:g,name:b,disabled:v,setTouched:y,setDirty:w,validityData:E,setFilled:C,validationMode:$,validation:M}=Ut(),{clearErrors:S,elementRef:P,submitCountRef:N}=Yn(),R=v||d,z=b??l,_={...g,disabled:R},{labelId:F}=sn(),O=Sr({id:a}),j=s!==void 0,V=s==null?void 0:String(s),J=de(()=>{var T;return(T=M.inputRef.current)==null?void 0:T.value});mi(M.inputRef,O,V,J,!R,l),ce(()=>{var q;const T=V??((q=M.inputRef.current)==null?void 0:q.value);T!==void 0&&C(T!=="")},[V,f,M.inputRef,C]),un(V,()=>{V!==void 0&&(S(z),w(V!==(E.initialValue??"")),M.change(V))});const U=p.useRef(null),G=so(R,U),I=wt();return Se("input",t,{ref:[n,U],state:_,props:[{id:O,disabled:R,name:z,ref:M.inputRef,"aria-labelledby":F,autoFocus:m,...j?{value:s}:{defaultValue:f},onChange(T){const q=T.currentTarget.value,D=$e(mt,T.nativeEvent);u==null||u(q,D),!j&&(w(q!==(E.initialValue??"")),C(q!==""),!T.nativeEvent.defaultPrevented&&!D.isCanceled&&(S(z),M.change(q)))},onFocus(){G(!0)},onBlur(T){if(y(!0),G(!1),$==="onBlur"){const q=T.currentTarget.value;M.commit(q),j&&queueMicrotask(()=>{var B;const D=(B=M.inputRef.current)==null?void 0:B.value;D!==void 0&&D!==q&&D!==(E.initialValue??"")&&M.commit(D)})}},onKeyDown(T){if(T.currentTarget.tagName==="INPUT"&&T.key==="Enter"){y(!0);const q=T.currentTarget.value,D=T.currentTarget.form;if(D&&D===P.current&&!T.defaultPrevented){const B=T.currentTarget,W=N.current;I.start(0,()=>{N.current===W&&M.commit(B.value)})}else M.commit(q)}}},x,T=>M.getValidationProps(R,T)],stateAttributesMapping:Mn})});process.env.NODE_ENV!=="production"&&(yi.displayName="FieldControl");const Am=function(t){const{children:n}=t,{validityData:r,invalid:i}=Ut(!1),a=p.useMemo(()=>Ca(r,i),[r,i]),l=a.state.valid===!1,{transitionStatus:s}=$n(l),d=p.useMemo(()=>({...a,validity:a.state,transitionStatus:s}),[a,s]);return c.jsx(p.Fragment,{children:n(d)})};process.env.NODE_ENV!=="production"&&(Am.displayName="FieldValidity");const jm=p.forwardRef(function(t,n){const{render:r,className:i,style:a,disabled:l=!1,...s}=t,{state:d,disabled:u}=Ut(!1),f=u||l,m={...d,disabled:f},h=p.useMemo(()=>({disabled:f}),[f]),x=Se("div",t,{ref:n,state:m,props:s,stateAttributesMapping:Mn});return c.jsx(_u,{children:c.jsx(Bu.Provider,{value:h,children:x})})});process.env.NODE_ENV!=="production"&&(jm.displayName="FieldItem");const Zg=Object.freeze(Object.defineProperty({__proto__:null,Control:yi,Description:bi,Error:Wr,Item:jm,Label:xi,Root:vi,Validity:Am},Symbol.toStringTag,{value:"Module"})),Uu=p.forwardRef(function(t,n){const{render:r,className:i,validationMode:a="onSubmit",errors:l,onSubmit:s,onFormSubmit:d,actionsRef:u,style:f,...m}=t,h=p.useRef({fields:new Map}),x=p.useRef(null),g=p.useRef(!1),b=p.useRef(0),v=de(()=>{let M=!1,S=null;for(const P of h.current.fields.values()){if(P.validityData.state.valid!==!1)continue;M=!0;const N=P.controlRef.current;N&&(!S||Jg(N,S))&&(S=N)}return S?(S.focus(),S.tagName==="INPUT"&&S.select(),!0):M}),[y,w]=p.useState(l);un(l,()=>{w(l)}),p.useEffect(()=>{g.current&&(g.current=!1,v())},[y,v]),p.useImperativeHandle(u,()=>({validate(M){var S;M?(S=Array.from(h.current.fields.values()).find(P=>P.name===M))==null||S.validate():h.current.fields.forEach(P=>{P.validate()})}}),[]);const E=Se("form",t,{ref:[n,x],props:[{noValidate:!0,onSubmit(M){if(b.current+=1,h.current.fields.forEach(S=>{S.validate()}),v()){M.preventDefault();return}if(g.current=!0,s==null||s(M),d){M.preventDefault();const S={};h.current.fields.forEach(P=>{P.name&&(S[P.name]=P.getValue())}),d(S,Nc(mt,M.nativeEvent))}}},m]}),C=de(M=>{M&&w(S=>{if(!S||!Object.hasOwn(S,M))return S;const P={...S};return delete P[M],P})}),$=p.useMemo(()=>({elementRef:x,formRef:h,validationMode:a,errors:y??We,clearErrors:C,submitCountRef:b}),[h,a,y,C]);return c.jsx(lu.Provider,{value:$,children:E})});process.env.NODE_ENV!=="production"&&(Uu.displayName="Form");function Jg(e,t){const n=e.compareDocumentPosition(t);return(n&Node.DOCUMENT_POSITION_DISCONNECTED)===0&&(n&Node.DOCUMENT_POSITION_FOLLOWING)!==0}const Wu=p.forwardRef(function(t,n){return c.jsx(yi,{ref:n,...t})});process.env.NODE_ENV!=="production"&&(Wu.displayName="Input");function Qg(e){const[t,n]=p.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}function Ku(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}const qu=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(qu.displayName="SelectRootContext");const Yu=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(Yu.displayName="SelectFloatingContext");function cn(){const e=p.useContext(qu);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.":Ve(60));return e}function Dm(){const e=p.useContext(Yu);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.":Ve(61));return e}const ev={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,multiple:e=>e.multiple,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,highlightItemOnHover:e=>e.highlightItemOnHover,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{const{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:bn(t,r)!==""},hasNullItemLabel:(e,t)=>t?W3(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{const n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(i=>pn(t,i,n)):pn(t,r,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,itemRoot:e=>e.itemRoot,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};function pr(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const xn=1;function Xu(e,t){return Math.max(0,e-t)}function $a(e,t){if(t<=0)return 0;const n=pr(e,0,t),r=n,i=t-n,a=r<=xn,l=i<=xn;return a&&l?r<=i?0:t:a?0:l?t:n}function km(e){const{id:t,value:n,defaultValue:r=null,onValueChange:i,open:a,defaultOpen:l=!1,onOpenChange:s,name:d,form:u,autoComplete:f,disabled:m=!1,readOnly:h=!1,required:x=!1,modal:g=!0,actionsRef:b,inputRef:v,onOpenChangeComplete:y,items:w,multiple:E=!1,itemToStringLabel:C,itemToStringValue:$,isItemEqualToValue:M=sl,highlightItemOnHover:S=!0,children:P}=e,{clearErrors:N}=Yn(),{setDirty:R,setTouched:z,setFocused:_,validityData:F,setFilled:O,name:j,disabled:V,validation:J,validationMode:U}=Ut(),G=Sr({id:t}),I=V||m,A=j??d,[T,q]=fn({controlled:n,default:E?r??qt:r,name:"Select",state:"value"}),[D,B]=fn({controlled:a,default:l,name:"Select",state:"open"}),W=p.useRef([]),X=p.useRef([]),ee=p.useRef(null),Q=p.useRef(null),ie=p.useRef(0),se=p.useRef(null),Z=p.useRef([]),he=p.useRef(!1),re=p.useRef(null),fe=p.useRef(null),ue=p.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ne=p.useRef(!1),me=p.useRef(T),{openMethod:le,triggerProps:we}=du(D),Y=Pt(()=>new Cr({id:G,labelId:void 0,modal:g,multiple:E,disabled:I,readOnly:h,required:x,highlightItemOnHover:S,itemToStringLabel:C,itemToStringValue:$,isItemEqualToValue:M,value:T,open:D,mounted:D,transitionStatus:void 0,items:w,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:We,triggerProps:We,itemRoot:{props:We,multiple:E,disabled:I,readOnly:h,isItemEqualToValue:M},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:Qe,setOpen:Qe,handleScrollArrowVisibility:Qe,onOpenChangeComplete:Qe,listRef:W,popupRef:ee,scrollHandlerRef:Q,scrollArrowsMountedCountRef:ie,valueRef:se,valuesRef:Z,labelsRef:X,typingRef:he,selectionRef:ue,firstItemTextRef:re,selectedItemTextRef:fe,alignItemWithTriggerActiveRef:ne,initialValueRef:me},ev)).current,[ae,Pe]=p.useState(!1),{mounted:je,transitionStatus:te,forceUnmount:oe}=Wc({open:D,ref:ee,preventUnmountOnClose:ae,setPreventUnmountOnClose:Pe,onUnmount(){Y.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),y==null||y(!1)}}),be=Y.useState("activeIndex"),xe=Y.useState("selectedIndex"),Ce=Y.useState("triggerElement"),Te=Y.useState("positionerElement"),Oe=Qg(le),He=le??Oe,Ge=p.useMemo(()=>E?"":bn(T,$),[E,T,$]),Ze=p.useMemo(()=>E&&Array.isArray(T)?T.map(Ne=>bn(Ne,$)):bn(T,$),[E,T,$]),Ht=Nt(Ce),Rt=de(()=>Ze);mi(Ht,G,T,Rt,!I,d);const It=E?Array.isArray(T)&&T.length>0:T!=null&&Ge!=="";ce(()=>{O(It)},[It,O]),ce(function(){const et=Io(Z.current,T,M,E);et===null&&(fe.current=null),!D&&Y.set("selectedIndex",et)},[E,D,T,M,Y]),un(T,()=>{N(A),R(B3(T,F.initialValue,M)),J.change(T)});const ze=de((Ne,et)=>{const At=et,Zt=ci(At);s==null||s(Ne,At),!et.isCanceled&&(Ne||Pe(Zt()),B(Ne),!Ne&&(et.reason===zn||et.reason===ai)&&(z(!0),_(!1),U==="onBlur"&&J.commit(T)))});p.useImperativeHandle(b,()=>({unmount:oe,close:()=>{Y.state.open&&ze(!1,$e(oo))}}),[oe,ze,Y]);const nt=de((Ne,et)=>{i==null||i(Ne,et),!et.isCanceled&&q(Ne)}),ot=de(Ne=>{const et=Xu(Ne.scrollHeight,Ne.clientHeight),At=$a(Ne.scrollTop,et),Zt=At>0,L=At<et;Y.set("scrollUpArrowVisible",Zt),Y.set("scrollDownArrowVisible",L)}),lt=T3({open:D,onOpenChange:ze,elements:{reference:Ce,floating:Te}}),rt=Mr(lt,{enabled:!I,event:"mousedown"}),Je=ao(lt),Mt=Zc(lt,{enabled:!I,listRef:W,activeIndex:be,selectedIndex:xe,disabledIndices:qt,onNavigate(Ne){Ne===null&&!D||Y.set("activeIndex",Ne)},focusItemOnHover:S}),it=Jc(lt,{enabled:!I&&(D||!h&&!E),listRef:X,activeIndex:be,selectedIndex:xe,disabledIndices:Ne=>Ku(W.current[Ne]),onMatch(Ne){D?Y.set("activeIndex",Ne):nt(Z.current[Ne],$e(mt))},onTyping(Ne){he.current=Ne}}),Ft=p.useMemo(()=>_t(it.reference,Mt.reference,Je.reference,rt.reference,we),[rt.reference,it.reference,Mt.reference,Je.reference,we]),vt=p.useMemo(()=>_t(lo,it.floating,Mt.floating,Je.floating),[it.floating,Mt.floating,Je.floating]),ye=Mt.item??We,Ie=p.useMemo(()=>({props:ye,multiple:E,disabled:I,readOnly:h,isItemEqualToValue:M}),[ye,E,I,h,M]);Y.useContextCallback("setValue",nt),Y.useContextCallback("setOpen",ze),Y.useContextCallback("handleScrollArrowVisibility",ot),Y.useContextCallback("onOpenChangeComplete",y),Jf(()=>{Y.update({popupProps:vt,triggerProps:Ft,itemRoot:Ie})}),Y.useSyncedValues({id:G,modal:g,multiple:E,disabled:I,readOnly:h,required:x,highlightItemOnHover:S,value:T,open:D,mounted:je,transitionStatus:te,popupProps:vt,triggerProps:Ft,itemRoot:Ie,items:w,itemToStringLabel:C,itemToStringValue:$,isItemEqualToValue:M,openMethod:He});const De=an(v,J.inputRef),st=E?void 0:A,Ke=p.useMemo(()=>!E||!Array.isArray(T)||!A?null:T.map(Ne=>{const et=bn(Ne,$);return c.jsx("input",{type:"hidden",form:u,name:A,value:et,disabled:I},et)}),[E,T,u,A,$,I]);return c.jsxs(qu.Provider,{value:Y,children:[c.jsx(Yu.Provider,{value:lt,children:P}),c.jsx("input",{...J.getValidationProps(I,{onFocus(){var Ne;(Ne=Y.state.triggerElement)==null||Ne.focus({focusVisible:!0})},onChange(Ne){if(Ne.nativeEvent.defaultPrevented||I||h)return;const et=Ne.currentTarget.value,At=$e(mt,Ne.nativeEvent);function Zt(){if(E)return;const L=et.toLowerCase();let pe=Z.current.findIndex(Ae=>bn(Ae,$).toLowerCase()===L||tr(Ae,C).toLowerCase()===L);pe===-1&&(pe=Z.current.findIndex((Ae,Ye)=>{const ke=X.current[Ye];return ke!=null&&ke.toLowerCase()===L}));const ve=Z.current[pe];ve!=null&&nt(ve,At)}Y.set("forceMount",!0),queueMicrotask(Zt)}}),id:G&&st==null?`${G}-hidden-input`:void 0,form:u,name:st,autoComplete:f,value:Ge,disabled:I,required:x&&!(E&&It),readOnly:h,ref:De,style:A?ei:no,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Ke]})}const Hm=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,s=l;delete s.id;const d=Ut(),u=cn(),f=u.useState("triggerElement"),m=u.useState("id"),h=o8(m),x=tm({id:h,fallbackControlId:(f==null?void 0:f.id)??m,setLabelId(g){const b=typeof g=="function"?g(u.state.labelId):g;u.set("labelId",b)}});return Se("div",t,{ref:n,state:d.state,props:[x,l],stateAttributesMapping:Mn})});process.env.NODE_ENV!=="production"&&(Hm.displayName="SelectLabel");const tv="data-popup-side",nv=400,rv={...zo,...Mn,popupSide:e=>e?{[tv]:e}:null,value:()=>null},Zu=p.forwardRef(function(t,n){var ie;const{render:r,className:i,id:a,disabled:l=!1,nativeButton:s=!0,style:d,...u}=t,{setTouched:f,validationMode:m,validation:h,state:x,disabled:g}=Ut(),{labelId:b}=sn(),v=cn(),y=v.useState("readOnly"),w=v.useState("required"),E=v.useState("disabled"),C=g||E||l,$=v.useState("open"),M=v.useState("mounted"),S=v.useState("value"),P=v.useState("triggerProps"),N=v.useState("positionerElement"),R=v.useState("listElement"),z=v.useState("popupSide"),_=v.useState("id"),F=v.useState("labelId"),O=v.useState("hasSelectedValue"),j=M&&N?z:null,V=a??_,J=nm(b,F);Sr({id:a});const U=Nt(N),G=p.useRef(null),I=so(C,G),{getButtonProps:A,buttonRef:T}=Wt({disabled:C,native:s}),q=v.useStateSetter("triggerElement"),D=wt(),B=wt(),W=wt();p.useEffect(()=>{if($)return W.start(nv,()=>{v.context.selectionRef.current.allowUnselectedMouseUp=!0,v.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{W.clear()};v.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},B.clear()},[$,v,B,W]);const X=_t(P,{id:V,role:"combobox","aria-expanded":$,"aria-haspopup":"listbox","aria-controls":$?(R==null?void 0:R.id)??((ie=ha(N))==null?void 0:ie.id):void 0,"aria-labelledby":J,"aria-readonly":y||void 0,"aria-required":w||void 0,tabIndex:C?-1:0,onFocus(se){I(!0),$&&v.context.alignItemWithTriggerActiveRef.current&&v.context.setOpen(!1,$e(mt,se.nativeEvent)),D.start(0,()=>{v.set("forceMount",!0)})},onBlur(se){Re(N,se.relatedTarget)||(f(!0),I(!1),m==="onBlur"&&h.commit(S))},onMouseDown(se){if($)return;const Z=Xe(se.currentTarget);function he(re){if(!G.current)return;const fe=re.target;Re(G.current,fe)||Re(U.current,fe)||xu(re,G.current)||v.context.setOpen(!1,$e(Rc,re))}B.start(0,()=>{Z.addEventListener("mouseup",he,{once:!0})})}},u,A),ee=h.getValidationProps(C,X);ee.role="combobox";const Q={...x,open:$,disabled:C,value:S,readOnly:y,popupSide:j,placeholder:!O};return Se("button",t,{ref:[n,G,T,q],state:Q,stateAttributesMapping:rv,props:ee})});process.env.NODE_ENV!=="production"&&(Zu.displayName="SelectTrigger");const ov={value:()=>null},Ju=p.forwardRef(function(t,n){const{className:r,render:i,children:a,placeholder:l,style:s,...d}=t,u=cn(),f=u.useState("value"),m=u.useState("items"),h=u.useState("itemToStringLabel"),x=u.useState("hasSelectedValue"),g=!x&&l!=null&&a==null,b=u.useState("hasNullItemLabel",g),v={value:f,placeholder:!x};let y=null;return typeof a=="function"?y=a(f):a!=null?y=a:g&&!b?y=l:Array.isArray(f)?y=G7(f,m,h):y=K3(f,m,h),Se("span",t,{state:v,ref:[n,u.context.valueRef],props:[{children:y},d],stateAttributesMapping:ov})});process.env.NODE_ENV!=="production"&&(Ju.displayName="SelectValue");const Qu=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,u={open:cn().useState("open")};return Se("span",t,{state:u,ref:n,props:[{"aria-hidden":!0,children:"▼"},l],stateAttributesMapping:ro})});process.env.NODE_ENV!=="production"&&(Qu.displayName="SelectIcon");const e1=p.forwardRef(function(t,n){const r=cn(),i=r.useState("mounted"),a=r.useState("forceMount");return i||a?c.jsx(io,{ref:n,...t}):null});process.env.NODE_ENV!=="production"&&(e1.displayName="SelectPortal");const iv={...ar,...ln},Lm=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,s=cn(),d=s.useState("open"),u=s.useState("mounted"),f=s.useState("transitionStatus");return Se("div",t,{state:{open:d,transitionStatus:f},ref:n,props:[{role:"presentation",hidden:!u,style:{userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:iv})});process.env.NODE_ENV!=="production"&&(Lm.displayName="SelectBackdrop");const t1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(t1.displayName="SelectPositionerContext");function xl(){const e=p.useContext(t1);if(!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.":Ve(59));return e}function Ma(e,t){e&&Object.assign(e.style,t)}const Vm={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},av={position:"fixed"},n1=p.forwardRef(function(t,n){const{anchor:r,className:i,render:a,positionMethod:l,side:s,align:d,sideOffset:u,alignOffset:f,collisionBoundary:m="clipping-ancestors",collisionPadding:h,arrowPadding:x,sticky:g,disableAnchorTracking:b,alignItemWithTrigger:v=!0,collisionAvoidance:y=Dc,style:w,...E}=t,C=cn(),$=Dm(),M=C.useState("open"),S=C.useState("mounted"),P=C.useState("modal"),N=C.useState("value"),R=C.useState("openMethod"),z=C.useState("positionerElement"),_=C.useState("triggerElement"),F=C.useState("isItemEqualToValue"),O=C.useState("transitionStatus"),j=p.useRef(null),V=p.useRef(null),[J,U]=p.useState(v),G=S&&J&&R!=="touch";!S&&J!==v&&U(v),p.useImperativeHandle(C.context.alignItemWithTriggerActiveRef,()=>G),pl((G||P)&&M,R==="touch",z,_);const I=pi({anchor:r,floatingRootContext:$,positionMethod:l,mounted:S,side:s,sideOffset:u,align:d,alignOffset:f,arrowPadding:x,collisionBoundary:m,collisionPadding:h,sticky:g,disableAnchorTracking:b??G,collisionAvoidance:y,keepMounted:!0}),A=G?"none":I.side,T=G?av:I.positionerStyles,q={open:M,side:A,align:I.align,anchorHidden:I.anchorHidden};ce(()=>{C.set("popupSide",I.side)},[C,I.side]);const D=C.useStateSetter("positionerElement"),B=hi(t,q,{styles:T,transitionStatus:O,props:E,refs:[n,D],hidden:!S,inert:!M}),W=p.useRef(0),X=de(Q=>{if(C.context.valuesRef.current.length===0)return;const ie=W.current;W.current=Q.size;const se=$e(mt);if(ie!==0&&!C.state.multiple&&N!==null&&vr(C.context.valuesRef.current,N,F)===-1){const he=C.context.initialValueRef.current,fe=he!=null&&vr(C.context.valuesRef.current,he,F)!==-1?he:null;C.context.setValue(fe,se),fe===null&&(C.set("selectedIndex",null),C.context.selectedItemTextRef.current=null)}if(ie!==0&&C.state.multiple&&Array.isArray(N)){const Z=N.filter(he=>vr(C.context.valuesRef.current,he,F)!==-1);Z.length!==N.length&&(C.context.setValue(Z,se),Z.length===0&&(C.set("selectedIndex",null),C.context.selectedItemTextRef.current=null))}if(M&&G){C.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const Z={height:""};Ma(z,Z),Ma(C.context.popupRef.current,Z)}}),ee=p.useMemo(()=>({...I,side:A,alignItemWithTriggerActive:G,setControlledAlignItemWithTrigger:U,scrollUpArrowRef:j,scrollDownArrowRef:V}),[I,A,G,U]);return c.jsx(co,{elementsRef:C.context.listRef,labelsRef:C.context.labelsRef,onMapChange:X,children:c.jsxs(t1.Provider,{value:ee,children:[S&&P&&c.jsx(fo,{inert:uo(!M),cutout:_}),B]})})});process.env.NODE_ENV!=="production"&&(n1.displayName="SelectPositioner");const Xi="base-ui-disable-scrollbar",Sa={className:Xi,getElement(e){return c.jsx("style",{nonce:e,href:Xi,precedence:"base-ui:low",children:`.${Xi}{scrollbar-width:none}.${Xi}::-webkit-scrollbar{display:none}`})}};process.env.NODE_ENV!=="production"&&(Sa.getElement.displayName="styleDisableScrollbar.getElement");const _m=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(_m.displayName="ToolbarRootContext");function bl(e){return p.useContext(_m)}const Bm=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(Bm.displayName="CSPContext");const lv={disableStyleElements:!1};function Gm(){return p.useContext(Bm)??lv}const r0="--transform-origin",sv={...ar,...ln},r1=p.forwardRef(function(t,n){const{render:r,className:i,style:a,finalFocus:l,...s}=t,d=cn(),u=d.useState("multiple"),f=d.useState("readOnly"),m=d.useState("highlightItemOnHover"),h=Dm(),{side:x,align:g,alignItemWithTriggerActive:b,isPositioned:v,setControlledAlignItemWithTrigger:y}=xl(),w=bl()!=null,E=Nr(),{nonce:C,disableStyleElements:$}=Gm(),M=d.useState("id"),S=d.useState("open"),P=d.useState("openMethod"),N=d.useState("mounted"),R=d.useState("popupProps"),z=d.useState("transitionStatus"),_=d.useState("triggerElement"),F=d.useState("positionerElement"),O=d.useState("listElement"),j=p.useRef(!1),V=p.useRef(!1),J=p.useRef({}),U=Yr(),G=de(q=>{if(!F||!d.context.popupRef.current||!V.current)return;const D=F.style.top==="0px",B=F.style.bottom==="0px";if(j.current||!b||!D&&!B){d.context.handleScrollArrowVisibility(q);return}const W=i0(F),X=Po(F.getBoundingClientRect().height,"y",W),ee=Xe(F),Q=pt(F),ie=Q.getComputedStyle(F),se=parseFloat(ie.marginTop),Z=parseFloat(ie.marginBottom),he=o0(Q.getComputedStyle(d.context.popupRef.current)),re=Math.min(ee.documentElement.clientHeight-se-Z,he),fe=q.scrollTop,ue=Zi(q);let ne=null;const me=ae=>{F.style.height=`${ae}px`},le=D?ue-fe:fe,we=Math.min(X+le,re);if(le<=xn){const ae=pr(le,0,re-X);ae>0&&me(X+ae),q.scrollTop=D?ue:0,re-(X+ae)<=xn&&(j.current=!0),d.context.handleScrollArrowVisibility(q);return}if(re-we>xn)ne=D?1/0:0;else if(B&&fe<ue){const ae=X+le-re;ne=fe-(le-ae)}const Y=Math.ceil(we);if(Y!==0&&me(Y),ne!=null){const ae=pr(ne,0,Zi(q));Math.abs(q.scrollTop-ae)>xn&&(q.scrollTop=ae)}Y>=re-xn&&(j.current=!0),d.context.handleScrollArrowVisibility(q)});p.useImperativeHandle(d.context.scrollHandlerRef,()=>G,[G]),Yt({open:S,ref:d.context.popupRef,onComplete(){S&&d.context.onOpenChangeComplete(!0)}});const I={open:S,transitionStatus:z,side:x,align:g};ce(()=>{!F||!d.context.popupRef.current||Object.keys(J.current).length||(J.current={top:F.style.top||"0",left:F.style.left||"0",right:F.style.right,height:F.style.height,bottom:F.style.bottom,minHeight:F.style.minHeight,maxHeight:F.style.maxHeight,marginTop:F.style.marginTop,marginBottom:F.style.marginBottom})},[d,F]),ce(()=>{S||b||(V.current=!1,j.current=!1,Ma(F,J.current))},[S,b,F]),ce(()=>{var B,W;const q=d.context.popupRef.current;if(!S||!_||!F||!q||b&&!v||d.state.transitionStatus==="ending")return;if(V.current=!0,q.style.removeProperty(r0),!b){U.request(()=>d.context.handleScrollArrowVisibility(O||q));return}const D=cv(q);try{let X=d.context.selectedItemTextRef.current;X!=null&&X.isConnected||(X=!d.select("hasSelectedValue")&&((B=d.context.firstItemTextRef.current)!=null&&B.isConnected)?d.context.firstItemTextRef.current:null);const ee=d.context.valueRef.current,Q=pt(F),ie=Q.getComputedStyle(F),se=Q.getComputedStyle(q),Z=Xe(_),he=i0(_),re=Ji(_.getBoundingClientRect(),he),fe=Ji(F.getBoundingClientRect(),he),ue=re.height,ne=O||q,me=ne.scrollHeight,le=parseFloat(se.borderBottomWidth),we=parseFloat(ie.marginTop)||10,Y=parseFloat(ie.marginBottom)||10,ae=parseFloat(ie.minHeight)||100,Pe=o0(se),je=5,te=5,oe=20,be=Z.documentElement.clientHeight-we-Y,xe=Z.documentElement.clientWidth,Ce=be-re.bottom+ue;let Te,Oe=E==="rtl"?re.right-fe.width:re.left,He=0;if(X&&ee){const Je=Ji(ee.getBoundingClientRect(),he);Te=Ji(X.getBoundingClientRect(),he),Oe=fe.left+(E==="rtl"?Je.right-Te.right:Je.left-Te.left);const Mt=Je.top-re.top+Je.height/2;He=Te.top-fe.top+Te.height/2-Mt}const Ge=Ce+He+Y+le;let Ze=Math.min(be,Ge);const Ht=be-we-Y,Rt=Ge-Ze,It=xe-te;F.style.left=`${pr(Oe,je,It-fe.width)}px`,F.style.height=`${Ze}px`,F.style.maxHeight="none",F.style.marginTop=`${we}px`,F.style.marginBottom=`${Y}px`,q.style.height="100%";const ze=Zi(ne),nt=Rt>=ze-xn;nt&&(Ze=Math.min(be,fe.height)-(Rt-ze));const ot=re.top<oe||re.bottom>be-oe||Math.ceil(Ze)+xn<Math.min(me,ae),lt=(((W=Q.visualViewport)==null?void 0:W.scale)??1)!==1&&An;if(ot||lt){Ma(F,J.current),y(!1);return}const rt=Math.max(ae,Ze);if(nt){const Je=Math.max(0,be-Ge);F.style.top=fe.height>=Ht?"0":`${Je}px`,F.style.height=`${Ze}px`,ne.scrollTop=Zi(ne)}else F.style.bottom="0",ne.scrollTop=Rt;if(Te){const Je=fe.top,Mt=fe.height,it=Te.top+Te.height/2,Ft=pr(Mt>0?(it-Je)/Mt*100:50,0,100);q.style.setProperty(r0,`50% ${Ft}%`)}(rt===be||Ze>=Pe)&&(j.current=!0),d.context.handleScrollArrowVisibility(ne),m&&d.state.selectedIndex===null&&d.state.activeIndex===null&&d.context.listRef.current[0]!=null&&d.set("activeIndex",0)}finally{D()}},[d,S,F,_,b,y,U,O,m,E,v]),p.useEffect(()=>{if(!b||!F||!S)return;const q=pt(F);function D(B){d.context.setOpen(!1,$e(m6,B))}return qe(q,"resize",D)},[d,b,F,S]);const A={...O?{role:"presentation"}:{role:"listbox","aria-multiselectable":u||void 0,"aria-readonly":f||void 0,id:`${M}-list`},onKeyDown(q){w&&gi.has(q.key)&&q.stopPropagation()},onScroll(q){O||G(q.currentTarget)},...b&&{style:O?{height:"100%"}:Vm},className:!O&&b?Sa.className:void 0},T=Se("div",t,{ref:[n,d.context.popupRef],state:I,stateAttributesMapping:sv,props:[R,A,mo(z),s]});return c.jsxs(p.Fragment,{children:[!$&&Sa.getElement(C),c.jsx(si,{context:h,modal:!1,disabled:!N,openInteractionType:P,returnFocus:l,restoreFocus:!0,children:T})]})});process.env.NODE_ENV!=="production"&&(r1.displayName="SelectPopup");function o0(e){const t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function Zi(e){return Xu(e.scrollHeight,e.clientHeight)}function i0(e){return L3.getScale(e)}function Po(e,t,n){return e/n[t]}function Ji(e,t){return Ao({x:Po(e.x,"x",t),y:Po(e.y,"y",t),width:Po(e.width,"x",t),height:Po(e.height,"y",t)})}const a0=[["transform","none"],["scale","1"],["translate","0 0"]];function cv(e){const{style:t}=e,n={};for(const[r,i]of a0)n[r]=t.getPropertyValue(r),t.setProperty(r,i,"important");return()=>{for(const[r]of a0){const i=n[r];i?t.setProperty(r,i):t.removeProperty(r)}}}const o1=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,s=cn(),d=s.useState("multiple"),u=s.useState("readOnly"),{alignItemWithTriggerActive:f}=xl(),m=s.useState("hasScrollArrows"),h=s.useState("openMethod"),g={id:`${s.useState("id")}-list`,role:"listbox","aria-multiselectable":d||void 0,"aria-readonly":u||void 0,onScroll(v){var y,w;(w=(y=s.context.scrollHandlerRef).current)==null||w.call(y,v.currentTarget)},...f&&{style:Vm},className:m&&h!=="touch"?Sa.className:void 0},b=s.useStateSetter("listElement");return Se("div",t,{ref:[n,b],props:[g,l]})});process.env.NODE_ENV!=="production"&&(o1.displayName="SelectList");const i1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(i1.displayName="SelectItemContext");function Um(){const e=p.useContext(i1);if(!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.":Ve(57));return e}const a1=p.memo(p.forwardRef(function(t,n){const{render:r,className:i,style:a,value:l=null,label:s,disabled:d=!1,nativeButton:u=!1,...f}=t,m=p.useRef(null),h=Xn({guess:!0,label:s,textRef:m}),x=cn(),{props:g,multiple:b,disabled:v,readOnly:y,isItemEqualToValue:w}=x.useState("itemRoot"),E=v||d,C=x.useState("isActive",h.index),$=x.useState("open"),M=x.useState("isSelected",l),S=x.useState("isSelectedByFocus",h.index),P=h.index,N=p.useRef(null);ce(()=>{const I=x.context.valuesRef.current;return I[P]=l,()=>{delete I[P]}},[P,l,x]),ce(()=>{const I=x.state.value,A=x.state.selectedIndex;let T=A,q;b&&Array.isArray(I)?(T=G3(P,l,x.context.valuesRef.current,I,w,A),q=T===P,P===A&&!q&&(x.context.selectedItemTextRef.current=null)):(q=I!==void 0&&pn(l,I,w),q&&(T=P)),x.set("selectedIndex",T),q&&m.current&&(x.context.selectedItemTextRef.current=m.current)},[P,b,w,x,l]);const R=p.useRef("mouse"),z=p.useRef(!1),{getButtonProps:_,buttonRef:F}=Wt({disabled:E,focusableWhenDisabled:!0,native:u,composite:!0}),O={disabled:E,selected:M,highlighted:C};function j(I){if(v||y)return;const A=x.state.value;if(b){const T=Array.isArray(A)?A:[],q=M?U3(T,l,w):[...T,l];x.context.setValue(q,$e(Tn,I))}else x.context.setValue(l,$e(Tn,I)),x.context.setOpen(!1,$e(Tn,I))}function V(){x.context.selectionRef.current.dragY=0}const J={role:"option","aria-selected":M,tabIndex:$&&C?0:-1,onKeyDown(I){x.set("activeIndex",P),I.key===" "&&x.context.typingRef.current&&I.preventDefault()},onClick(I){const A=R.current!=="touch",T=I.nativeEvent.pointerType,q=A&&Zr(I.nativeEvent)&&(T!==void 0||C),D=A&&!q&&!z.current;z.current=!1,!(E||D)&&j(I.nativeEvent)},onPointerEnter(I){R.current=I.pointerType},onPointerMove(I){if(I.pointerType==="mouse"&&I.buttons===1){const A=x.context.selectionRef.current;A.dragY+=I.movementY,A.dragY**2>=64&&(A.allowUnselectedMouseUp=!0)}},onPointerDown(I){R.current=I.pointerType,z.current=!0,V()},onMouseUp(){var T;if(V(),E||R.current==="touch"||z.current)return;const I=!x.context.selectionRef.current.allowSelectedMouseUp&&M,A=!x.context.selectionRef.current.allowUnselectedMouseUp&&!M;I||A||(z.current=!0,(T=N.current)==null||T.click(),z.current=!1)}},U=Se("div",t,{ref:[F,n,h.ref,N],state:O,props:[g,J,f,_]}),G=p.useMemo(()=>({selected:M,index:P,textRef:m,selectedByFocus:S}),[M,P,m,S]);return c.jsx(i1.Provider,{value:G,children:U})}));process.env.NODE_ENV!=="production"&&(a1.displayName="SelectItem");const l1=p.forwardRef(function(t,n){const{selected:r}=Um();return t.keepMounted||r?c.jsx(Pu,{...t,selected:r,ref:n}):null});process.env.NODE_ENV!=="production"&&(l1.displayName="SelectItemIndicator");const s1=p.memo(p.forwardRef(function(t,n){const{index:r,textRef:i,selectedByFocus:a}=Um(),l=cn(),{render:s,className:d,style:u,...f}=t,m=p.useCallback(x=>{x&&(r===0&&(l.context.firstItemTextRef.current=x),a&&(l.context.selectedItemTextRef.current=x))},[l,r,a]);return Se("div",t,{ref:[m,n,i],props:f})}));process.env.NODE_ENV!=="production"&&(s1.displayName="SelectItemText");const Wm=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,s=cn(),{side:d,align:u,arrowRef:f,arrowStyles:m,arrowUncentered:h,alignItemWithTriggerActive:x}=xl(),b={open:s.useState("open"),side:d,align:u,uncentered:h},v=Se("div",t,{state:b,ref:[f,n],props:[{style:m,"aria-hidden":!0},l],stateAttributesMapping:oi});return x?null:v});process.env.NODE_ENV!=="production"&&(Wm.displayName="SelectArrow");const c1=p.forwardRef(function(t,n){const{render:r,className:i,style:a,direction:l,keepMounted:s,...d}=t,u=l==="up",f=cn(),{side:m,scrollDownArrowRef:h,scrollUpArrowRef:x}=xl(),g=u?"scrollUpArrowVisible":"scrollDownArrowVisible",b=f.useState(g),v=f.useState("openMethod"),y=b&&v!=="touch",w=wt(),E=u?x:h,{mounted:C,transitionStatus:$,setMounted:M}=$n(y);ce(()=>(f.context.scrollArrowsMountedCountRef.current+=1,f.set("hasScrollArrows",!0),()=>{f.context.scrollArrowsMountedCountRef.current=Math.max(0,f.context.scrollArrowsMountedCountRef.current-1),f.context.scrollArrowsMountedCountRef.current===0&&f.set("hasScrollArrows",!1)}),[f]),Yt({open:y,ref:E,onComplete(){y||M(!1)}});const N=Se("div",t,{ref:[n,E],state:{direction:l,visible:y,side:m,transitionStatus:$},props:[{"aria-hidden":!0,children:u?"▲":"▼",style:{position:"absolute"},onMouseMove(z){if(z.movementX===0&&z.movementY===0||w.isStarted())return;f.set("activeIndex",null);function _(){var U;const F=f.state.listElement??f.context.popupRef.current;if(!F)return;f.set("activeIndex",null),f.context.handleScrollArrowVisibility(F);const O=Xu(F.scrollHeight,F.clientHeight),j=$a(F.scrollTop,O),V=j===(u?0:O),J=f.context.listRef.current;if(j!==F.scrollTop&&(F.scrollTop=j),V){w.clear();return}if(J.length>0){const G=((U=E.current)==null?void 0:U.offsetHeight)||0;F.scrollTop=uv(J,u,j,F.clientHeight,G,O)}w.start(40,_)}w.start(40,_)},onMouseLeave(){w.clear()}},d],stateAttributesMapping:ln});return C||s?N:null});process.env.NODE_ENV!=="production"&&(c1.displayName="SelectScrollArrow");function uv(e,t,n,r,i,a){if(t){let f=0;const m=n+i-xn;for(let g=0;g<e.length;g+=1){const b=e[g];if(b&&b.offsetTop>=m){f=g;break}}const h=Math.max(0,f-1),x=e[h];return h<f&&x?$a(x.offsetTop-i,a):0}let l=e.length-1;const s=n+r-i+xn;for(let f=0;f<e.length;f+=1){const m=e[f];if(m&&m.offsetTop+m.offsetHeight>s){l=Math.max(0,f-1);break}}const d=Math.min(e.length-1,l+1),u=e[d];return d>l&&u?$a(u.offsetTop+u.offsetHeight-r+i,a):a}const Km=p.forwardRef(function(t,n){return c.jsx(c1,{...t,ref:n,direction:"down"})});process.env.NODE_ENV!=="production"&&(Km.displayName="SelectScrollDownArrow");const qm=p.forwardRef(function(t,n){return c.jsx(c1,{...t,ref:n,direction:"up"})});process.env.NODE_ENV!=="production"&&(qm.displayName="SelectScrollUpArrow");const u1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(u1.displayName="SelectGroupContext");function dv(){const e=p.useContext(u1);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>.":Ve(56));return e}const Ym=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,[s,d]=p.useState(),u=p.useMemo(()=>({labelId:s,setLabelId:d}),[s,d]),f=Se("div",t,{ref:n,props:[{role:"group","aria-labelledby":s},l]});return c.jsx(u1.Provider,{value:u,children:f})});process.env.NODE_ENV!=="production"&&(Ym.displayName="SelectGroup");const Xm=p.forwardRef(function(t,n){const{render:r,className:i,style:a,id:l,...s}=t,{setLabelId:d}=dv(),u=ft(l);return ce(()=>(d(u),()=>{d(m=>m===u?void 0:m)}),[u,d]),Se("div",t,{ref:n,props:[{id:u,"aria-hidden":!0},s]})});process.env.NODE_ENV!=="production"&&(Xm.displayName="SelectGroupLabel");const fv=Iu,mv=Object.freeze(Object.defineProperty({__proto__:null,Arrow:Wm,Backdrop:Lm,Group:Ym,GroupLabel:Xm,Icon:Qu,Item:a1,ItemIndicator:l1,ItemText:s1,Label:Hm,List:o1,Popup:r1,Portal:e1,Positioner:n1,Root:km,ScrollDownArrow:Km,ScrollUpArrow:qm,Separator:fv,Trigger:Zu,Value:Ju},Symbol.toStringTag,{value:"Module"}));function pv(e){if(!e)return null;for(const t of e.elements){const n=t.tagName;if(n==="BUTTON"||n==="INPUT"){const r=t;if(r.type==="submit")return r}}return null}const hv="data-checked",gv="data-unchecked";function Zm(e){return{checked(t){return e.indeterminate?{}:t?{[hv]:""}:{[gv]:""}},...Mn}}const Jm=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(Jm.displayName="CheckboxGroupContext");function vv(){return p.useContext(Jm)}const d1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(d1.displayName="CheckboxRootContext");function xv(){const e=p.useContext(d1);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.":Ve(14));return e}const bv="data-parent",f1=p.forwardRef(function(t,n){const{checked:r,className:i,defaultChecked:a=!1,"aria-labelledby":l,disabled:s=!1,form:d,id:u,indeterminate:f=!1,inputRef:m,name:h,onCheckedChange:x,parent:g=!1,readOnly:b=!1,render:v,required:y=!1,uncheckedValue:w,value:E,nativeButton:C=!1,style:$,...M}=t,{clearErrors:S}=Yn(),{disabled:P,name:N,setDirty:R,setFilled:z,setTouched:_,state:F,validationMode:O,validityData:j,validation:V}=Ut(),J=Gu(),{labelId:U,registerControlId:G,getDescriptionProps:I}=sn(),A=vv(),T=(A==null?void 0:A.allValues)===void 0?void 0:A.parent,q=T!==void 0,D=P||J.disabled||(A==null?void 0:A.disabled)||s,B=N??h,W=E??B,X=ft(),ee=(A==null?void 0:A.registerControlId)!==G,Q=Sr({id:u||void 0,enabled:ee}),ie=C?Q:X;let se={};q&&(g?se=T.getParentProps():W!==void 0&&(se=T.getChildProps(W)));const{checked:Z=r,indeterminate:he=f,onCheckedChange:re,...fe}=se,ue=A==null?void 0:A.value,ne=p.useRef(null),me=so(D,ne),{getButtonProps:le,buttonRef:we}=Wt({disabled:D,native:C}),Y=(A==null?void 0:A.validation)??V,[ae,Pe]=fn({controlled:W!==void 0&&ue!==void 0&&!g?ue.includes(W):Z,default:a,name:"Checkbox",state:"checked"}),je=q?!!Z:ae,te=q&&he||f;mi(ne,X,ae,void 0,!A&&!D,h);const oe=T==null?void 0:T.registerChildId,be=p.useRef(null),xe=Y.registerInput,Ce=A?W:void 0,Te=p.useCallback(ze=>xe(ze,{controlRef:ne,value:Ce}),[xe,Ce]),Oe=an(m,be,g?void 0:Te),He=Om(l,U,be,!C,Q,M["aria-label"]);ce(()=>{be.current&&(be.current.indeterminate=te),A||z(ae)},[ae,te,A,z]),un(ae,()=>{A||(S(B),R(ae!==j.initialValue),Y.change(ae))});const Ge=_t({checked:ae,disabled:D,form:d,name:g?void 0:B,id:C?void 0:Q,required:y,ref:Oe,style:B?ei:no,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(ze){if(ze.nativeEvent.defaultPrevented)return;if(b){ze.preventDefault();return}const nt=ze.currentTarget.checked,ot=$e(mt,ze.nativeEvent);if(x==null||x(nt,ot),!ot.isCanceled&&(re==null||re(nt,ot),!ot.isCanceled&&(Pe(nt),W!==void 0&&A!==void 0&&!g&&!q))){const lt=nt?[...A.value,W]:A.value.filter(rt=>rt!==W);A.setValue(lt,ot)}},onClick(ze){ze.stopPropagation()},onFocus(){var ze;(ze=ne.current)==null||ze.focus()}},E!==void 0?{value:(A?ae&&E:E)||""}:We,I,ze=>Y.getValidationProps(D,ze));p.useEffect(()=>{if(!T||W===void 0)return;const ze=T.disabledStatesRef.current;return ze.set(W,D),()=>{ze.delete(W)}},[T,D,W]);const Ze=p.useMemo(()=>({...F,checked:je,disabled:D,readOnly:b,required:y,indeterminate:te}),[F,je,D,b,y,te]),Ht=Zm(Ze),Rt=Se("span",t,{state:Ze,ref:[we,ne,n],props:[{id:ie,role:"checkbox","aria-checked":te?"mixed":je,"aria-readonly":b||void 0,"aria-required":y||void 0,"aria-labelledby":He,[bv]:g?"":void 0,onFocus(){me(!0)},onBlur(){const ze=be.current;ze&&(_(!0),me(!1),O==="onBlur"&&Y.commit(A?ue:ze.checked))},onKeyDown(ze){var it;if(ze.key!=="Enter"||(ze.preventBaseUIHandler(),ze.defaultPrevented))return;const nt=((it=be.current)==null?void 0:it.form)??null,ot=ze.currentTarget,lt=ze.nativeEvent,rt=ze.preventDefault,Je=lt.preventDefault;let Mt=!1;ze.preventDefault=()=>{Mt=!0,rt.call(ze)},lt.preventDefault=()=>{Mt=!0,Je.call(lt)},Je.call(lt),pt(ot).queueMicrotask(()=>{var Ft;ze.preventDefault=rt,lt.preventDefault=Je,Mt||(Ft=pv(nt))==null||Ft.click()})},onClick(ze){if(b||D)return;ze.preventDefault();const nt=be.current;nt&&Ur(nt,ze)}},M,fe,le,I,ze=>Y.getValidationProps(D,ze)],stateAttributesMapping:Ht}),It=Rt.props.id;return ce(()=>{if(!(!oe||g||W===void 0||It===void 0))return oe(W,It)},[oe,g,W,It]),c.jsxs(d1.Provider,{value:Ze,children:[Rt,!ae&&!A&&B&&!g&&w!==void 0&&c.jsx("input",{type:"hidden",form:d,name:B,value:w,disabled:D}),c.jsx("input",{...Ge,suppressHydrationWarning:!0})]})});process.env.NODE_ENV!=="production"&&(f1.displayName="CheckboxRoot");const m1=p.forwardRef(function(t,n){const{render:r,className:i,style:a,keepMounted:l=!1,...s}=t,d=xv(),u=d.checked||d.indeterminate,{mounted:f,transitionStatus:m,setMounted:h}=$n(u),x=p.useRef(null),g={...d,transitionStatus:m};Yt({batch:!0,enabled:!u,open:u,ref:x,onComplete(){u||h(!1)}});const v={...Zm(d),...ln},y=l||f,w=Se("span",t,{ref:[n,x],state:g,stateAttributesMapping:v,props:s});return y?w:null});process.env.NODE_ENV!=="production"&&(m1.displayName="CheckboxIndicator");const yv=Object.freeze(Object.defineProperty({__proto__:null,Indicator:m1,Root:f1},Symbol.toStringTag,{value:"Module"})),p1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(p1.displayName="SwitchRootContext");function Ev(){const e=p.useContext(p1);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.":Ve(63));return e}const wv="data-checked",Cv="data-unchecked",Qm={...Mn,checked(e){return e?{[wv]:""}:{[Cv]:""}}},yl=p.forwardRef(function(t,n){const{checked:r,className:i,defaultChecked:a,"aria-labelledby":l,form:s,id:d,inputRef:u,name:f,nativeButton:m=!1,onCheckedChange:h,readOnly:x=!1,required:g=!1,disabled:b=!1,render:v,uncheckedValue:y,value:w,style:E,...C}=t,{clearErrors:$}=Yn(),{state:M,setTouched:S,setDirty:P,validityData:N,setFilled:R,validationMode:z,disabled:_,name:F,validation:O}=Ut(),{labelId:j}=sn(),V=_||b,J=F??f,U=p.useRef(null),G=an(U,u,O.inputRef),I=p.useRef(null),A=so(V,I),T=ft(),q=Sr({id:d}),D=m?void 0:q,[B,W]=fn({controlled:r,default:!!a,name:"Switch",state:"checked"});mi(I,T,B,void 0,!V,f),ce(()=>{R(B)},[B,R]),un(B,()=>{$(J),P(B!==N.initialValue),O.change(B)});const{getButtonProps:X,buttonRef:ee}=Wt({disabled:V,native:m}),Q=Om(l,j,U,!m,D,C["aria-label"]),ie={id:m?q:T,role:"switch","aria-checked":B,"aria-readonly":x||void 0,"aria-required":g||void 0,"aria-labelledby":Q,onFocus(){A(!0)},onBlur(){const re=U.current;!re||V||(S(!0),A(!1),z==="onBlur"&&O.commit(re.checked))},onClick(re){if(x||V)return;re.preventDefault();const fe=U.current;fe&&Ur(fe,re)}},se={...O.getValidationProps(V),checked:B,disabled:V,form:s,id:D,name:J,required:g,style:J?ei:no,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:G,onChange(re){if(re.nativeEvent.defaultPrevented)return;if(x){re.preventDefault();return}const fe=re.currentTarget.checked,ue=$e(mt,re.nativeEvent);h==null||h(fe,ue),!ue.isCanceled&&W(fe)},onClick(re){re.stopPropagation()},onFocus(){var re;(re=I.current)==null||re.focus()},...w!==void 0?{value:w}:We},Z=p.useMemo(()=>({...M,checked:B,disabled:V,readOnly:x,required:g}),[M,B,V,x,g]),he=Se("span",t,{state:Z,ref:[n,I,ee],props:[ie,C,X,re=>O.getValidationProps(V,re)],stateAttributesMapping:Qm});return c.jsxs(p1.Provider,{value:Z,children:[he,!B&&J&&y!==void 0&&c.jsx("input",{type:"hidden",form:s,name:J,value:y,disabled:V}),c.jsx("input",{...se,suppressHydrationWarning:!0})]})});process.env.NODE_ENV!=="production"&&(yl.displayName="SwitchRoot");const El=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,s=Ev();return Se("span",t,{state:s,ref:n,stateAttributesMapping:Qm,props:l})});process.env.NODE_ENV!=="production"&&(El.displayName="SwitchThumb");const $v=Object.freeze(Object.defineProperty({__proto__:null,Root:yl,Thumb:El},Symbol.toStringTag,{value:"Module"}));function $t({label:e,error:t,helperText:n,required:r,disabled:i,focused:a,startAdornment:l,endAdornment:s,className:d,wrapperClassName:u,children:f,...m}){const h=!!t;return c.jsxs("div",{className:K("relative w-full pt-2.5 pb-1",i&&"opacity-60 pointer-events-none",u),...m,children:[c.jsxs("div",{className:K("group relative flex items-center w-full min-h-11 rounded-md border bg-white transition-all",h?"border-danger focus-within:border-danger focus-within:ring-1 focus-within:ring-danger":a?"border-primary ring-1 ring-primary":"border-border hover:border-text-subtle focus-within:border-primary focus-within:ring-1 focus-within:ring-primary",d),children:[e&&c.jsxs("label",{className:K("pointer-events-none absolute -top-3 start-3 z-10 px-1.5 bg-white text-sm leading-none font-medium transition-colors select-none",h?"text-danger":a?"text-primary":"text-text-muted group-focus-within:text-primary group-hover:text-text"),children:[e,r&&c.jsx("span",{className:"ms-0.5 text-danger","aria-hidden":"true",children:"*"})]}),l&&c.jsx("div",{className:"flex shrink-0 items-center ps-3 text-text-muted select-none",children:l}),c.jsx("div",{className:"flex-1 min-w-0 flex items-center",children:f}),s&&c.jsx("div",{className:"flex shrink-0 items-center pe-3 text-text-muted select-none",children:s})]}),(t||n)&&c.jsxs("p",{className:K("mt-2 text-xs flex items-center gap-1 ps-1",h?"text-danger font-medium":"text-text-muted"),children:[h&&c.jsxs("svg",{className:"size-3.5 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),c.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),c.jsx("span",{children:t||n})]})]})}const h1={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|[67]3)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1(?:05|[2-9]))","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-6]|80[2-46]","11|2[02]|33|4[04]|79[1-6]|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85[02-46-9]"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[0-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["983[2-57-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[02589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","(?:13|8\\d{4})\\d{5}|[235-8]\\d{8}|[23568]\\d{6}",[7,9,10],[["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|29|58)|67[0-46-9]|(?:55|68)[0-69]"],"0$1"],["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|[27]|48)|37|675|(?:55|68)[78]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["548"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[256]|39|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["3"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};var Qi={exports:{}},ea={exports:{}},ut={};/** @license React v16.13.1
68
- * react-is.production.min.js
69
- *
70
- * Copyright (c) Facebook, Inc. and its affiliates.
71
- *
72
- * This source code is licensed under the MIT license found in the
73
- * LICENSE file in the root directory of this source tree.
74
- */var l0;function Mv(){if(l0)return ut;l0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function E($){if(typeof $=="object"&&$!==null){var M=$.$$typeof;switch(M){case t:switch($=$.type,$){case d:case u:case r:case a:case i:case m:return $;default:switch($=$&&$.$$typeof,$){case s:case f:case g:case x:case l:return $;default:return M}}case n:return M}}}function C($){return E($)===u}return ut.AsyncMode=d,ut.ConcurrentMode=u,ut.ContextConsumer=s,ut.ContextProvider=l,ut.Element=t,ut.ForwardRef=f,ut.Fragment=r,ut.Lazy=g,ut.Memo=x,ut.Portal=n,ut.Profiler=a,ut.StrictMode=i,ut.Suspense=m,ut.isAsyncMode=function($){return C($)||E($)===d},ut.isConcurrentMode=C,ut.isContextConsumer=function($){return E($)===s},ut.isContextProvider=function($){return E($)===l},ut.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===t},ut.isForwardRef=function($){return E($)===f},ut.isFragment=function($){return E($)===r},ut.isLazy=function($){return E($)===g},ut.isMemo=function($){return E($)===x},ut.isPortal=function($){return E($)===n},ut.isProfiler=function($){return E($)===a},ut.isStrictMode=function($){return E($)===i},ut.isSuspense=function($){return E($)===m},ut.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===r||$===u||$===a||$===i||$===m||$===h||typeof $=="object"&&$!==null&&($.$$typeof===g||$.$$typeof===x||$.$$typeof===l||$.$$typeof===s||$.$$typeof===f||$.$$typeof===v||$.$$typeof===y||$.$$typeof===w||$.$$typeof===b)},ut.typeOf=E,ut}var dt={};/** @license React v16.13.1
75
- * react-is.development.js
76
- *
77
- * Copyright (c) Facebook, Inc. and its affiliates.
78
- *
79
- * This source code is licensed under the MIT license found in the
80
- * LICENSE file in the root directory of this source tree.
81
- */var s0;function Sv(){return s0||(s0=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function E(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===u||Z===a||Z===i||Z===m||Z===h||typeof Z=="object"&&Z!==null&&(Z.$$typeof===g||Z.$$typeof===x||Z.$$typeof===l||Z.$$typeof===s||Z.$$typeof===f||Z.$$typeof===v||Z.$$typeof===y||Z.$$typeof===w||Z.$$typeof===b)}function C(Z){if(typeof Z=="object"&&Z!==null){var he=Z.$$typeof;switch(he){case t:var re=Z.type;switch(re){case d:case u:case r:case a:case i:case m:return re;default:var fe=re&&re.$$typeof;switch(fe){case s:case f:case g:case x:case l:return fe;default:return he}}case n:return he}}}var $=d,M=u,S=s,P=l,N=t,R=f,z=r,_=g,F=x,O=n,j=a,V=i,J=m,U=!1;function G(Z){return U||(U=!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.")),I(Z)||C(Z)===d}function I(Z){return C(Z)===u}function A(Z){return C(Z)===s}function T(Z){return C(Z)===l}function q(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function D(Z){return C(Z)===f}function B(Z){return C(Z)===r}function W(Z){return C(Z)===g}function X(Z){return C(Z)===x}function ee(Z){return C(Z)===n}function Q(Z){return C(Z)===a}function ie(Z){return C(Z)===i}function se(Z){return C(Z)===m}dt.AsyncMode=$,dt.ConcurrentMode=M,dt.ContextConsumer=S,dt.ContextProvider=P,dt.Element=N,dt.ForwardRef=R,dt.Fragment=z,dt.Lazy=_,dt.Memo=F,dt.Portal=O,dt.Profiler=j,dt.StrictMode=V,dt.Suspense=J,dt.isAsyncMode=G,dt.isConcurrentMode=I,dt.isContextConsumer=A,dt.isContextProvider=T,dt.isElement=q,dt.isForwardRef=D,dt.isFragment=B,dt.isLazy=W,dt.isMemo=X,dt.isPortal=ee,dt.isProfiler=Q,dt.isStrictMode=ie,dt.isSuspense=se,dt.isValidElementType=E,dt.typeOf=C})()),dt}var c0;function ep(){return c0||(c0=1,process.env.NODE_ENV==="production"?ea.exports=Mv():ea.exports=Sv()),ea.exports}/*
82
- object-assign
83
- (c) Sindre Sorhus
84
- @license MIT
85
- */var us,u0;function Nv(){if(u0)return us;u0=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},s=0;s<10;s++)l["_"+String.fromCharCode(s)]=s;var d=Object.getOwnPropertyNames(l).map(function(f){return l[f]});if(d.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(f){u[f]=f}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return us=i()?Object.assign:function(a,l){for(var s,d=r(a),u,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var m in s)t.call(s,m)&&(d[m]=s[m]);if(e){u=e(s);for(var h=0;h<u.length;h++)n.call(s,u[h])&&(d[u[h]]=s[u[h]])}}return d},us}var ds,d0;function g1(){if(d0)return ds;d0=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ds=e,ds}var fs,f0;function tp(){return f0||(f0=1,fs=Function.call.bind(Object.prototype.hasOwnProperty)),fs}var ms,m0;function Pv(){if(m0)return ms;m0=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=g1(),n={},r=tp();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(a,l,s,d,u){if(process.env.NODE_ENV!=="production"){for(var f in a)if(r(a,f)){var m;try{if(typeof a[f]!="function"){var h=Error((d||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}m=a[f](l,f,d,s,null,t)}catch(g){m=g}if(m&&!(m instanceof Error)&&e((d||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var x=u?u():"";e("Failed "+s+" type: "+m.message+(x??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ms=i,ms}var ps,p0;function Rv(){if(p0)return ps;p0=1;var e=ep(),t=Nv(),n=g1(),r=tp(),i=Pv(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var d="Warning: "+s;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return ps=function(s,d){var u=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function m(I){var A=I&&(u&&I[u]||I[f]);if(typeof A=="function")return A}var h="<<anonymous>>",x={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:w(),arrayOf:E,element:C(),elementType:$(),instanceOf:M,node:R(),objectOf:P,oneOf:S,oneOfType:N,shape:_,exact:F};function g(I,A){return I===A?I!==0||1/I===1/A:I!==I&&A!==A}function b(I,A){this.message=I,this.data=A&&typeof A=="object"?A:{},this.stack=""}b.prototype=Error.prototype;function v(I){if(process.env.NODE_ENV!=="production")var A={},T=0;function q(B,W,X,ee,Q,ie,se){if(ee=ee||h,ie=ie||X,se!==n){if(d){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var he=ee+":"+X;!A[he]&&T<3&&(a("You are manually calling a React.PropTypes validation function for the `"+ie+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),A[he]=!0,T++)}}return W[X]==null?B?W[X]===null?new b("The "+Q+" `"+ie+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new b("The "+Q+" `"+ie+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:I(W,X,ee,Q,ie)}var D=q.bind(null,!1);return D.isRequired=q.bind(null,!0),D}function y(I){function A(T,q,D,B,W,X){var ee=T[q],Q=V(ee);if(Q!==I){var ie=J(ee);return new b("Invalid "+B+" `"+W+"` of type "+("`"+ie+"` supplied to `"+D+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return v(A)}function w(){return v(l)}function E(I){function A(T,q,D,B,W){if(typeof I!="function")return new b("Property `"+W+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var X=T[q];if(!Array.isArray(X)){var ee=V(X);return new b("Invalid "+B+" `"+W+"` of type "+("`"+ee+"` supplied to `"+D+"`, expected an array."))}for(var Q=0;Q<X.length;Q++){var ie=I(X,Q,D,B,W+"["+Q+"]",n);if(ie instanceof Error)return ie}return null}return v(A)}function C(){function I(A,T,q,D,B){var W=A[T];if(!s(W)){var X=V(W);return new b("Invalid "+D+" `"+B+"` of type "+("`"+X+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return v(I)}function $(){function I(A,T,q,D,B){var W=A[T];if(!e.isValidElementType(W)){var X=V(W);return new b("Invalid "+D+" `"+B+"` of type "+("`"+X+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return v(I)}function M(I){function A(T,q,D,B,W){if(!(T[q]instanceof I)){var X=I.name||h,ee=G(T[q]);return new b("Invalid "+B+" `"+W+"` of type "+("`"+ee+"` supplied to `"+D+"`, expected ")+("instance of `"+X+"`."))}return null}return v(A)}function S(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function A(T,q,D,B,W){for(var X=T[q],ee=0;ee<I.length;ee++)if(g(X,I[ee]))return null;var Q=JSON.stringify(I,function(se,Z){var he=J(Z);return he==="symbol"?String(Z):Z});return new b("Invalid "+B+" `"+W+"` of value `"+String(X)+"` "+("supplied to `"+D+"`, expected one of "+Q+"."))}return v(A)}function P(I){function A(T,q,D,B,W){if(typeof I!="function")return new b("Property `"+W+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var X=T[q],ee=V(X);if(ee!=="object")return new b("Invalid "+B+" `"+W+"` of type "+("`"+ee+"` supplied to `"+D+"`, expected an object."));for(var Q in X)if(r(X,Q)){var ie=I(X,Q,D,B,W+"."+Q,n);if(ie instanceof Error)return ie}return null}return v(A)}function N(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var A=0;A<I.length;A++){var T=I[A];if(typeof T!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(T)+" at index "+A+"."),l}function q(D,B,W,X,ee){for(var Q=[],ie=0;ie<I.length;ie++){var se=I[ie],Z=se(D,B,W,X,ee,n);if(Z==null)return null;Z.data&&r(Z.data,"expectedType")&&Q.push(Z.data.expectedType)}var he=Q.length>0?", expected one of type ["+Q.join(", ")+"]":"";return new b("Invalid "+X+" `"+ee+"` supplied to "+("`"+W+"`"+he+"."))}return v(q)}function R(){function I(A,T,q,D,B){return O(A[T])?null:new b("Invalid "+D+" `"+B+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return v(I)}function z(I,A,T,q,D){return new b((I||"React class")+": "+A+" type `"+T+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function _(I){function A(T,q,D,B,W){var X=T[q],ee=V(X);if(ee!=="object")return new b("Invalid "+B+" `"+W+"` of type `"+ee+"` "+("supplied to `"+D+"`, expected `object`."));for(var Q in I){var ie=I[Q];if(typeof ie!="function")return z(D,B,W,Q,J(ie));var se=ie(X,Q,D,B,W+"."+Q,n);if(se)return se}return null}return v(A)}function F(I){function A(T,q,D,B,W){var X=T[q],ee=V(X);if(ee!=="object")return new b("Invalid "+B+" `"+W+"` of type `"+ee+"` "+("supplied to `"+D+"`, expected `object`."));var Q=t({},T[q],I);for(var ie in Q){var se=I[ie];if(r(I,ie)&&typeof se!="function")return z(D,B,W,ie,J(se));if(!se)return new b("Invalid "+B+" `"+W+"` key `"+ie+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(T[q],null," ")+`
86
- Valid keys: `+JSON.stringify(Object.keys(I),null," "));var Z=se(X,ie,D,B,W+"."+ie,n);if(Z)return Z}return null}return v(A)}function O(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(O);if(I===null||s(I))return!0;var A=m(I);if(A){var T=A.call(I),q;if(A!==I.entries){for(;!(q=T.next()).done;)if(!O(q.value))return!1}else for(;!(q=T.next()).done;){var D=q.value;if(D&&!O(D[1]))return!1}}else return!1;return!0;default:return!1}}function j(I,A){return I==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function V(I){var A=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":j(A,I)?"symbol":A}function J(I){if(typeof I>"u"||I===null)return""+I;var A=V(I);if(A==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return A}function U(I){var A=J(I);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function G(I){return!I.constructor||!I.constructor.name?h:I.constructor.name}return x.checkPropTypes=i,x.resetWarningCache=i.resetWarningCache,x.PropTypes=x,x},ps}var hs,h0;function Iv(){if(h0)return hs;h0=1;var e=g1();function t(){}function n(){}return n.resetWarningCache=t,hs=function(){function r(l,s,d,u,f,m){if(m!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},hs}var g0;function Fv(){if(g0)return Qi.exports;if(g0=1,process.env.NODE_ENV!=="production"){var e=ep(),t=!0;Qi.exports=Rv()(e.isElement,t)}else Qi.exports=Iv()();return Qi.exports}var Tv=Fv();const ge=Ff(Tv);var gs={exports:{}};/*!
87
- Copyright (c) 2018 Jed Watson.
88
- Licensed under the MIT License (MIT), see
89
- http://jedwatson.github.io/classnames
90
- */var v0;function Ov(){return v0||(v0=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(a=i(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var s in a)t.call(a,s)&&a[s]&&(l=i(l,s));return l}function i(a,l){return l?a?a+" "+l:a+l:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(gs)),gs.exports}var zv=Ov();const Na=Ff(zv);function Av(e,t,n){switch(n){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1);break}return{value:e,caret:t}}function jv(e,t,n){for(var r={},i="",a=0,l=0;l<e.length;){var s=n(e[l],i,r);s!==void 0&&(i+=s,t!==void 0&&(t===l?a=i.length-1:t>l&&(a=i.length))),l++}t===void 0&&(a=i.length);var d={value:i,caret:a};return d}function Dv(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=kv(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
91
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kv(e,t){if(e){if(typeof e=="string")return x0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x0(e,t)}}function x0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ls(e,t){for(var n=0,r=Dv(t.split("")),i;!(i=r()).done;){var a=i.value;a===e&&n++}return n}function Hv(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"x",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",i=e.length,a=Ls("(",e),l=Ls(")",e),s=a-l;s>0&&i<t.length;)e+=t[i].replace(n,r),t[i]===")"&&s--,i++;return e}function Lv(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Vv(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
92
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vv(e,t){if(e){if(typeof e=="string")return b0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b0(e,t)}}function b0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _v(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!e)return function(i){return{text:i}};var r=Ls(t,e);return function(i){if(!i)return{text:"",template:e};for(var a=0,l="",s=Lv(e.split("")),d;!(d=s()).done;){var u=d.value;if(u!==t){l+=u;continue}if(l+=i[a],a++,a===i.length&&i.length<r)break}return n&&(l=Hv(l,e)),{text:l,template:e}}}function Bv(e,t,n){typeof n=="string"&&(n=_v(n));var r=n(e)||{},i=r.text,a=r.template;if(i===void 0&&(i=e),a)if(t===void 0)t=i.length;else{for(var l=0,s=!1,d=-1;l<i.length&&l<a.length;){if(i[l]!==a[l]){if(t===0){s=!0,t=l;break}d=l,t--}l++}s||(t=d+1)}return{text:i,caret:t}}function Gv(e){return e.hasAttribute("readonly")}function Uv(e){if(e.selectionStart!==e.selectionEnd)return{start:e.selectionStart,end:e.selectionEnd}}var y0={Backspace:8,Delete:46};function Wv(e){switch(e.keyCode){case y0.Backspace:return"Backspace";case y0.Delete:return"Delete"}}function Kv(e){return e.selectionStart}function np(e,t){t!==void 0&&(qv()?setTimeout(function(){return e.setSelectionRange(t,t)},0):e.setSelectionRange(t,t))}function qv(){if(typeof navigator<"u")return Yv.test(navigator.userAgent)}var Yv=/Android/i;function Xv(e,t,n,r,i){Vs(t,n,r,void 0,i)}function Zv(e,t,n,r,i){if(!Gv(t)){var a=Wv(e);switch(a){case"Delete":case"Backspace":e.preventDefault();var l=Uv(t);return l?(Jv(t,l),Vs(t,n,r,void 0,i)):Vs(t,n,r,a,i)}}}function Jv(e,t){var n=e.value;n=n.slice(0,t.start)+n.slice(t.end),e.value=n,np(e,t.start)}function Vs(e,t,n,r,i){var a=jv(e.value,Kv(e),t),l=a.value,s=a.caret;if(r){var d=Av(l,s,r);l=d.value,s=d.caret}var u=Bv(l,s,n),f=u.text;s=u.caret,e.value=f,np(e,s),i&&i(l)}var Qv=["ref","parse","format","value","defaultValue","controlled","onChange","onKeyDown"];function E0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E0(Object(n),!0).forEach(function(r){e9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t9(e,t){if(e==null)return{};var n=n9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function n9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function r9(e){var t=e.ref,n=e.parse,r=e.format,i=e.value,a=e.defaultValue,l=e.controlled,s=l===void 0?!0:l,d=e.onChange,u=e.onKeyDown,f=t9(e,Qv),m=o.useRef(),h=o.useCallback(function(v){m.current=v,t&&(typeof t=="function"?t(v):t.current=v)},[t]),x=o.useCallback(function(v){return Xv(v,m.current,n,r,d)},[m,n,r,d]),g=o.useCallback(function(v){if(u&&u(v),!v.defaultPrevented)return Zv(v,m.current,n,r,d)},[m,n,r,d,u]),b=zr(zr({},f),{},{ref:h,onChange:x,onKeyDown:g});return s?zr(zr({},b),{},{value:r(w0(i)?"":i).text}):zr(zr({},b),{},{defaultValue:r(w0(a)?"":a).text})}function w0(e){return e==null}var o9=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function C0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function i9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C0(Object(n),!0).forEach(function(r){a9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l9(e,t){if(e==null)return{};var n=s9(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function s9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Pa(e,t){var n=e.inputComponent,r=n===void 0?"input":n,i=e.parse,a=e.format,l=e.value,s=e.defaultValue,d=e.onChange,u=e.controlled,f=e.onKeyDown,m=e.type,h=m===void 0?"text":m,x=l9(e,o9),g=r9(i9({ref:t,parse:i,format:a,value:l,defaultValue:s,onChange:d,controlled:u,onKeyDown:f,type:h},x));return o.createElement(r,g)}Pa=o.forwardRef(Pa);Pa.propTypes={parse:ge.func.isRequired,format:ge.func.isRequired,inputComponent:ge.elementType,type:ge.string,value:ge.string,defaultValue:ge.string,onChange:ge.func,controlled:ge.bool,onKeyDown:ge.func,onCut:ge.func,onPaste:ge.func};function $0(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),l=Number(r[i]);if(a>l)return 1;if(l>a)return-1;if(!isNaN(a)&&isNaN(l))return 1;if(isNaN(a)&&!isNaN(l))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var c9={}.constructor;function xr(e){return e!=null&&e.constructor===c9}var u9=/^\d+$/;function d9(e){return u9.test(e)}function eo(e){"@babel/helpers - typeof";return eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eo(e)}function wl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f9(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m9(r.key),r)}}function Cl(e,t,n){return t&&f9(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function m9(e){var t=p9(e,"string");return eo(t)=="symbol"?t:t+""}function p9(e,t){if(eo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(eo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var h9="1.2.0",g9="1.7.35",M0=" ext. ",kt=(function(){function e(t){wl(this,e),rp(t),this.metadata=t,ip.call(this,t)}return Cl(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){var i,a;if(n&&(d9(n)?a=n:i=n),r&&(a=r),i&&i!=="001"){var l=this.getCountryMetadata(i);if(!l)throw new Error("Unknown country: ".concat(i));this.numberingPlan=new S0(l,this)}else if(a){if(!this.hasCallingCode(a))throw new Error("Unknown calling code: ".concat(a));this.numberingPlan=new S0(this.getNumberingPlanMetadata(a),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var i=this.nonGeographic()[n];if(i)return i}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),S0=(function(){function e(t,n){wl(this,e),this.globalMetadataObject=n,this.metadata=t,ip.call(this,n.metadata)}return Cl(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return r.map(function(i){return new v9(i,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&N0(this.types(),n))return new b9(N0(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?M0:this.metadata[13]||M0}}])})(),v9=(function(){function e(t,n){wl(this,e),this._format=t,this.metadata=n}return Cl(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!x9.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),x9=/^\(?\$1\)?$/,b9=(function(){function e(t,n){wl(this,e),this.type=t,this.metadata=n}return Cl(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function N0(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function rp(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!xr(e)||!xr(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(xr(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+y9(e)+": "+e,"."))}var y9=function(t){return eo(t)};function Cn(e,t){var n=new kt(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function op(e,t){return t.countries.hasOwnProperty(e)}function ip(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?$0(t,h9)===-1?this.v2=!0:$0(t,g9)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function Ei(e,t,n){return E9(e,void 0,t,n)}function E9(e,t,n,r){n&&(r=new kt(r.metadata),r.selectNumberingPlan(n));var i=r.type(t),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return"IS_POSSIBLE";var l=e.length,s=a[0];return s===l?"IS_POSSIBLE":s>l?"TOO_SHORT":a[a.length-1]<l?"TOO_LONG":a.indexOf(l,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function w9(e,t,n){t===void 0&&(t={});var r=new kt(n);if(t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return ap(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function ap(e,t){switch(Ei(e,void 0,t)){case"IS_POSSIBLE":return!0;default:return!1}}function Wn(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function C9(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=$9(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
93
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $9(e,t){if(e){if(typeof e=="string")return P0(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P0(e,t):void 0}}function P0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var M9=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function v1(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){var r=new kt(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(Wn(i,r.nationalNumberPattern())){if(vs(i,"FIXED_LINE",r))return r.type("MOBILE")&&r.type("MOBILE").pattern()===""||!r.type("MOBILE")||vs(i,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=C9(M9),l;!(l=a()).done;){var s=l.value;if(vs(i,s,r))return s}}}}function vs(e,t,n){var r=n.type(t);return!r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?!1:Wn(e,r.pattern())}function S9(e,t,n){t=t||{};var r=new kt(n);if(r.selectNumberingPlan(e.country||e.countryCallingCode),r.hasTypes())return v1(e,t,r.metadata)!==void 0;var i=t.v2?e.nationalNumber:e.phone;return Wn(i,r.nationalNumberPattern())}var N9=/^[A-Z]{2}$/;function P9(e){return N9.test(e)}function R9(e,t){var n,r,i=new kt(t);return P9(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=e,{country:n,callingCode:r}}function I9(e,t,n){var r=new kt(n),i=r.getCountryCodesForCallingCode(e);return i?i.filter(function(a){return F9(t,a,n)}):[]}function F9(e,t,n){var r=new kt(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var x1=2,T9=17,O9=3,en="0-90-9٠-٩۰-۹",z9="-‐-―−ー-",A9="//",j9="..",D9="  ­​⁠ ",k9="()()[]\\[\\]",H9="~⁓∼~",yn="".concat(z9).concat(A9).concat(j9).concat(D9).concat(k9).concat(H9),$l="++",L9=new RegExp("(["+en+"])");function lp(e,t,n,r){if(t){var i=new kt(r);i.selectNumberingPlan(t||n);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var l=e.match(L9);if(!(l&&l[1]!=null&&l[1].length>0&&l[1]==="0"))return e}}}function _s(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,a,l=r.length-1,s=l>0&&r[l];if(t.nationalPrefixTransformRule()&&s)i=e.replace(n,t.nationalPrefixTransformRule()),l>1&&(a=r[1]);else{var d=r[0];i=e.slice(d.length),s&&(a=r[1])}var u;if(s){var f=e.indexOf(r[1]),m=e.slice(0,f);m===t.numberingPlan.nationalPrefix()&&(u=t.numberingPlan.nationalPrefix())}else u=r[0];return{nationalNumber:i,nationalPrefix:u,carrierCode:a}}}return{nationalNumber:e}}function V9(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_9(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
94
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _9(e,t){if(e){if(typeof e=="string")return R0(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R0(e,t):void 0}}function R0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sp(e,t,n){for(var r=new kt(n),i=V9(t),a;!(a=i()).done;){var l=a.value;if(r.selectNumberingPlan(l),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return l}else if(v1({phone:e,country:l},void 0,r.metadata))return l}}function b1(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:sp(n,i,r.metadata)}function Bs(e,t,n){var r=_s(e,n),i=r.carrierCode,a=r.nationalNumber;if(a!==e){if(!B9(e,a,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=b1(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n})),!G9(a,t,n)))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:i}}function B9(e,t,n){return!(Wn(e,n.nationalNumberPattern())&&!Wn(t,n.nationalNumberPattern()))}function G9(e,t,n){switch(Ei(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function cp(e,t,n,r,i){if(!(t||n||r))return{number:e};var a=t||n?Cn(t||n,i):r;if(e.indexOf(a)===0){var l=new kt(i);l.selectNumberingPlan(t||n||r);var s=e.slice(a.length),d=Bs(s,void 0,l),u=d.nationalNumber,f=Bs(e,void 0,l),m=f.nationalNumber;if(!Wn(m,l.nationalNumberPattern())&&Wn(u,l.nationalNumberPattern())||Ei(m,void 0,l)==="TOO_LONG")return{countryCallingCode:a,number:s}}return{number:e}}function y1(e,t,n,r,i){if(!e)return{};var a;if(e[0]!=="+"){var l=lp(e,t||n,r,i);if(l&&l!==e)a=!0,e="+"+l;else{if(t||n||r){var s=cp(e,t,n,r,i),d=s.countryCallingCode,u=s.number;if(d)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:d,number:u}}return{number:e}}}if(e[1]==="0")return{};for(var f=new kt(i),m=2;m-1<=O9&&m<=e.length;){var h=e.slice(1,m);if(f.hasCallingCode(h))return f.selectNumberingPlan(h),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:h,number:e.slice(m)};m++}return{}}function up(e){return e.replace(new RegExp("[".concat(yn,"]+"),"g")," ").trim()}var dp=/(\$\d)/;function fp(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(dp,t.nationalPrefixFormattingRule()):t.format());return r?up(a):a}var U9=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function W9(e,t,n){var r=new kt(n);if(r.selectNumberingPlan(e||t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(U9.test(r.IDDPrefix()))return r.IDDPrefix()}var K9=";ext=",Ar=function(t){return"([".concat(en,"]{1,").concat(t,"})")};function mp(e){var t="20",n="15",r="9",i="6",a="[  \\t,]*",l="[:\\..]?[  \\t,-]*",s="#?",d="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",u="(?:[xx##~~]|int|int)",f="[- ]+",m="[  \\t]*",h="(?:,{2}|;)",x=K9+Ar(t),g=a+d+l+Ar(t)+s,b=a+u+l+Ar(r)+s,v=f+Ar(i)+"#",y=m+h+l+Ar(n)+s,w=m+"(?:,)+"+l+Ar(r)+s;return x+"|"+g+"|"+b+"|"+v+"|"+y+"|"+w}var q9="["+en+"]{"+x1+"}",Y9="["+$l+"]{0,1}(?:["+yn+"]*["+en+"]){3,}["+yn+en+"]*",X9=new RegExp("^["+$l+"]{0,1}(?:["+yn+"]*["+en+"]){1,2}$","i"),Z9=Y9+"(?:"+mp()+")?",J9=new RegExp("^"+q9+"$|^"+Z9+"$","i");function Q9(e){return e.length>=x1&&J9.test(e)}function ex(e){return X9.test(e)}function tx(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}var I0={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function nx(e,t,n,r){n?n=ix({},I0,n):n=I0;var i=new kt(r);if(e.country&&e.country!=="001"){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.selectNumberingPlan(e.country)}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var a=i.countryCallingCode(),l=n.v2?e.nationalNumber:e.phone,s;switch(t){case"NATIONAL":return l?(s=Ra(l,e.carrierCode,"NATIONAL",i,n),xs(s,e.ext,i,n.formatExtension)):"";case"INTERNATIONAL":return l?(s=Ra(l,null,"INTERNATIONAL",i,n),s="+".concat(a," ").concat(s),xs(s,e.ext,i,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(l);case"RFC3966":return tx({number:"+".concat(a).concat(l),ext:e.ext});case"IDD":if(!n.fromCountry)return;var d=ox(l,e.carrierCode,a,n.fromCountry,i);return d?xs(d,e.ext,i,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Ra(e,t,n,r,i){var a=rx(r.formats(),e);return a?fp(e,a,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function rx(e,t){return ax(e,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(r)!==0)return!1}return Wn(t,n.pattern())})}function xs(e,t,n,r){return t?r(e,t,n):e}function ox(e,t,n,r,i){var a=Cn(r,i.metadata);if(a===n){var l=Ra(e,t,"NATIONAL",i);return n==="1"?n+" "+l:l}var s=W9(r,void 0,i.metadata);if(s)return"".concat(s," ").concat(n," ").concat(Ra(e,null,"INTERNATIONAL",i))}function ix(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}function ax(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function Do(e){"@babel/helpers - typeof";return Do=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Do(e)}function F0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function T0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F0(Object(n),!0).forEach(function(r){lx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lx(e,t,n){return(t=pp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pp(r.key),r)}}function ux(e,t,n){return t&&cx(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pp(e){var t=dx(e,"string");return Do(t)=="symbol"?t:t+""}function dx(e,t){if(Do(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Do(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hp=(function(){function e(t,n,r){if(sx(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(xr(n)&&xr(n.countries)){r=n;var i=t;if(!fx.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=y1(i,void 0,void 0,void 0,r),l=a.countryCallingCode,s=a.number;if(n=s,t=l,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");rp(r);var d=R9(t,r),u=d.country,f=d.callingCode;this.country=u,this.countryCallingCode=f,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return ux(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:I9(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return w9(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return S9(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new kt(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return v1(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return nx(this,n,r?T0(T0({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])})(),fx=/^\+\d+$/;function Gs(e){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(e)}function mx(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function px(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hx(e,t,n){return t=Ho(t),gx(e,E1()?Reflect.construct(t,n||[],Ho(e).constructor):t.apply(e,n))}function gx(e,t){if(t&&(Gs(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vx(e)}function vx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ko(e,t)}function Us(e){var t=typeof Map=="function"?new Map:void 0;return Us=function(r){if(r===null||!yx(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return bx(r,arguments,Ho(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ko(i,r)},Us(e)}function bx(e,t,n){if(E1())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&ko(i,n.prototype),i}function E1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E1=function(){return!!e})()}function yx(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function ko(e,t){return ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ko(e,t)}function Ho(e){return Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ho(e)}var kn=(function(e){function t(n){var r;return px(this,t),r=hx(this,t,[n]),Object.setPrototypeOf(r,t.prototype),r.name=r.constructor.name,r}return xx(t,e),mx(t)})(Us(Error)),O0=new RegExp("(?:"+mp()+")$","i");function Ex(e){var t=e.search(O0);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(O0),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}function wx(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Cx(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
95
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cx(e,t){if(e){if(typeof e=="string")return z0(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z0(e,t):void 0}}function z0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var $x={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function gp(e){return $x[e]}function br(e){for(var t="",n=wx(e.split("")),r;!(r=n()).done;){var i=r.value,a=gp(i);a&&(t+=a)}return t}function Mx(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Sx(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
96
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sx(e,t){if(e){if(typeof e=="string")return A0(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A0(e,t):void 0}}function A0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ws(e){for(var t="",n=Mx(e.split("")),r;!(r=n()).done;){var i=r.value;t+=vp(i,t)||""}return t}function vp(e,t,n){if(e==="+"){if(t){typeof n=="function"&&n("end");return}return"+"}return gp(e)}var xp="+",Nx="[\\-\\.\\(\\)]?",j0="(["+en+"]|"+Nx+")",Px="^\\"+xp+j0+"*["+en+"]"+j0+"*$",Rx=new RegExp(Px,"g"),Ks=en,Ix="["+Ks+"]+((\\-)*["+Ks+"])*",Fx="a-zA-Z",Tx="["+Fx+"]+((\\-)*["+Ks+"])*",Ox="^("+Ix+"\\.)*"+Tx+"\\.?$",zx=new RegExp(Ox,"g"),D0="tel:",qs=";phone-context=",Ax=";isub=";function jx(e){var t=e.indexOf(qs);if(t<0)return null;var n=t+qs.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function Dx(e){return e===null?!0:e.length===0?!1:Rx.test(e)||zx.test(e)}function kx(e,t){var n=t.extractFormattedPhoneNumber,r=jx(e);if(!Dx(r))throw new kn("NOT_A_NUMBER");var i;if(r===null)i=n(e)||"";else{i="",r.charAt(0)===xp&&(i+=r);var a=e.indexOf(D0),l;a>=0?l=a+D0.length:l=0;var s=e.indexOf(qs);i+=e.substring(l,s)}var d=i.indexOf(Ax);if(d>0&&(i=i.substring(0,d)),i!=="")return i}var Hx=250,Lx=new RegExp("["+$l+en+"]"),Vx=new RegExp("[^"+en+"#]+$");function _x(e,t,n){t=t||{};var r=new kt(n);if(t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new kn("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var i=Gx(e,t.v2,t.extract),a=i.number,l=i.ext,s=i.error;if(!a){if(t.v2)throw s==="TOO_SHORT"?new kn("TOO_SHORT"):new kn("NOT_A_NUMBER");return{}}var d=Wx(a,t.defaultCountry,t.defaultCallingCode,r),u=d.country,f=d.nationalNumber,m=d.countryCallingCode,h=d.countryCallingCodeSource,x=d.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new kn("INVALID_COUNTRY");return{}}if(!f||f.length<x1){if(t.v2)throw new kn("TOO_SHORT");return{}}if(f.length>T9){if(t.v2)throw new kn("TOO_LONG");return{}}if(t.v2){var g=new hp(m,f,r.metadata);return u&&(g.country=u),x&&(g.carrierCode=x),l&&(g.ext=l),g.__countryCallingCodeSource=h,g}var b=(t.extended?r.hasSelectedNumberingPlan():u)?Wn(f,r.nationalNumberPattern()):!1;return t.extended?{country:u,countryCallingCode:m,carrierCode:x,valid:b,possible:b?!0:!!(t.extended===!0&&r.possibleLengths()&&ap(f,r)),phone:f,ext:l}:b?Ux(u,f,l):{}}function Bx(e,t,n){if(e){if(e.length>Hx){if(n)throw new kn("TOO_LONG");return}if(t===!1)return e;var r=e.search(Lx);if(!(r<0))return e.slice(r).replace(Vx,"")}}function Gx(e,t,n){var r=kx(e,{extractFormattedPhoneNumber:function(l){return Bx(l,n,t)}});if(!r)return{};if(!Q9(r))return ex(r)?{error:"TOO_SHORT"}:{};var i=Ex(r);return i.ext?i:{number:r}}function Ux(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function Wx(e,t,n,r){var i=y1(Ws(e),void 0,t,n,r.metadata),a=i.countryCallingCodeSource,l=i.countryCallingCode,s=i.number,d;if(l)r.selectNumberingPlan(l);else if(s&&(t||n))t?(d=t,r.selectNumberingPlan(t),l=r.numberingPlan.callingCode()):(r.selectNumberingPlan(n),l=n);else return{};if(!s)return{countryCallingCodeSource:a,countryCallingCode:l};var u=Bs(Ws(s),void 0,r),f=u.nationalNumber,m=u.carrierCode,h=b1(l,{nationalNumber:f,metadata:r});return h&&(d=h,h==="001"||r.selectNumberingPlan(d)),{country:d,countryCallingCode:l,countryCallingCodeSource:a,nationalNumber:f,carrierCode:m}}function Lo(e){"@babel/helpers - typeof";return Lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lo(e)}function k0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function H0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k0(Object(n),!0).forEach(function(r){Kx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kx(e,t,n){return(t=qx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qx(e){var t=Yx(e,"string");return Lo(t)=="symbol"?t:t+""}function Yx(e,t){if(Lo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xx(e,t,n){return _x(e,H0(H0({},t),{},{v2:!0}),n)}function Vo(e){"@babel/helpers - typeof";return Vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vo(e)}function L0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L0(Object(n),!0).forEach(function(r){Jx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jx(e,t,n){return(t=Qx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qx(e){var t=eb(e,"string");return Vo(t)=="symbol"?t:t+""}function eb(e,t){if(Vo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tb(e,t){return ib(e)||ob(e,t)||rb(e,t)||nb()}function nb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
97
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rb(e,t){if(e){if(typeof e=="string")return V0(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V0(e,t):void 0}}function V0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ob(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,s=[],d=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(d=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);d=!0);}catch(f){u=!0,i=f}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw i}}return s}}function ib(e){if(Array.isArray(e))return e}function bp(e){var t=Array.prototype.slice.call(e),n=tb(t,4),r=n[0],i=n[1],a=n[2],l=n[3],s,d,u;if(typeof r=="string")s=r;else throw new TypeError("A text for parsing must be a string.");if(!i||typeof i=="string")l?(d=a,u=l):(d=void 0,u=a),i&&(d=Zx({defaultCountry:i},d));else if(xr(i))a?(d=i,u=a):u=i;else throw new Error("Invalid second argument: ".concat(i));return{text:s,options:d,metadata:u}}function _o(e){"@babel/helpers - typeof";return _o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_o(e)}function _0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function B0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_0(Object(n),!0).forEach(function(r){ab(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ab(e,t,n){return(t=lb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lb(e){var t=sb(e,"string");return _o(t)=="symbol"?t:t+""}function sb(e,t){if(_o(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_o(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yp(e,t,n){t&&t.defaultCountry&&!op(t.defaultCountry,n)&&(t=B0(B0({},t),{},{defaultCountry:void 0}));try{return Xx(e,t,n)}catch(r){if(!(r instanceof kn))throw r}}function Ep(){var e=bp(arguments),t=e.text,n=e.options,r=e.metadata;return yp(t,n,r)}function Bo(e){"@babel/helpers - typeof";return Bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bo(e)}function G0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function U0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G0(Object(n),!0).forEach(function(r){cb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cb(e,t,n){return(t=ub(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ub(e){var t=db(e,"string");return Bo(t)=="symbol"?t:t+""}function db(e,t){if(Bo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fb(){var e=bp(arguments),t=e.text,n=e.options,r=e.metadata;n=U0(U0({},n),{},{extract:!1});var i=yp(t,n,r);return i&&i.isValid()||!1}function Go(e){"@babel/helpers - typeof";return Go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Go(e)}function mb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gb(r.key),r)}}function hb(e,t,n){return t&&pb(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gb(e){var t=vb(e,"string");return Go(t)=="symbol"?t:t+""}function vb(e,t){if(Go(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Go(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xb=(function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;mb(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}return hb(e,[{key:"reset",value:function(n){var r=n.country,i=n.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(r,i)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberIsModified=!1,this.nationalPrefix=void 0,this.carrierCode=void 0,this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix=void 0}},{key:"update",value:function(n){for(var r=0,i=Object.keys(n);r<i.length;r++){var a=i[r];this[a]=n[a]}}},{key:"initCountryAndCallingCode",value:function(n,r){this.setCountry(n),this.setCallingCode(r)}},{key:"setCountry",value:function(n){this.country=n,this.onCountryChange(n)}},{key:"setCallingCode",value:function(n){this.callingCode=n,this.onCallingCodeChange(n,this.country)}},{key:"startInternationalNumber",value:function(n,r){this.international=!0,this.initCountryAndCallingCode(n,r)}},{key:"appendDigits",value:function(n){this.digits+=n}},{key:"appendNationalSignificantNumberDigits",value:function(n){this.nationalSignificantNumber+=n}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])})();function bb(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=yb(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
98
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yb(e,t){if(e){if(typeof e=="string")return W0(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W0(e,t):void 0}}function W0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var vn="x",bs=new RegExp(vn);function sa(e,t){if(t<1)return"";for(var n="";t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function K0(e,t){return e[t]===")"&&t++,Eb(e.slice(0,t))}function Eb(e){for(var t=[],n=0;n<e.length;)e[n]==="("?t.push(n):e[n]===")"&&t.pop(),n++;var r=0,i="";t.push(e.length);for(var a=0,l=t;a<l.length;a++){var s=l[a];i+=e.slice(r,s),r=s+1}return i}function wb(e,t,n){for(var r=bb(n.split("")),i;!(i=r()).done;){var a=i.value;if(e.slice(t+1).search(bs)<0)return;t=e.search(bs),e=e.replace(bs,a)}return[e,t]}function Cb(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,l=new RegExp("^(?:".concat(t.pattern(),")$"));if(l.test(e.nationalSignificantNumber))return Mb(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:a})}function $b(e,t){return Ei(e,void 0,t)==="IS_POSSIBLE"}function Mb(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var l=q0(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:r});if(l)return l}return q0(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:r})}function q0(e,t,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,a=n.getSeparatorAfterNationalPrefix,l=fp(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:r});if(i||(e.nationalPrefix?l=e.nationalPrefix+a(t)+l:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(l=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+l)),Sb(l,e))return l}function Sb(e,t){return br(e)===t.getNationalDigits()}function Uo(e){"@babel/helpers - typeof";return Uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uo(e)}function Nb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ib(r.key),r)}}function Rb(e,t,n){return t&&Pb(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ib(e){var t=Fb(e,"string");return Uo(t)=="symbol"?t:t+""}function Fb(e,t){if(Uo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Tb=(function(){function e(){Nb(this,e)}return Rb(e,[{key:"parse",value:function(n){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(n),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var r=this.context[0],i=r.branches,a=r.instructions;if(i)return{op:"|",args:i.concat([ys(a)])};if(a.length===0)throw new Error("Pattern is required");return a.length===1?a[0]:a}},{key:"startContext",value:function(n){this.context.push(n)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(n){if(!n)throw new Error("Pattern is required");var r=n.match(Ab);if(!r){if(zb.test(n))throw new Error("Illegal characters found in a pattern: ".concat(n));this.getContext().instructions=this.getContext().instructions.concat(n.split(""));return}var i=r[1],a=n.slice(0,r.index),l=n.slice(r.index+i.length);switch(i){case"(?:":a&&this.parsePattern(a),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(a&&this.parsePattern(a),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var s=this.getContext(),d=s.branches;d.push(ys(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:d});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(a&&this.parsePattern(a),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(ys(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":a&&this.parsePattern(a),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:Ob(a)});break;default:throw new Error("Unknown operator: ".concat(i))}l&&this.parsePattern(l)}}])})();function Ob(e){for(var t=[],n=0;n<e.length;){if(e[n]==="-"){if(n===0||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,i=e[n+1].charCodeAt(0)-1,a=r;a<=i;)t.push(String.fromCharCode(a)),a++}else t.push(e[n]);n++}return t}var zb=/[\(\)\[\]\?\:\|]/,Ab=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function ys(e){return e.length===1?e[0]:e}function Y0(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=jb(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
99
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jb(e,t){if(e){if(typeof e=="string")return X0(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X0(e,t):void 0}}function X0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wo(e){"@babel/helpers - typeof";return Wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wo(e)}function Db(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lb(r.key),r)}}function Hb(e,t,n){return t&&kb(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lb(e){var t=Vb(e,"string");return Wo(t)=="symbol"?t:t+""}function Vb(e,t){if(Wo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _b=(function(){function e(t){Db(this,e),this.matchTree=new Tb().parse(t)}return Hb(e,[{key:"match",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.allowOverflow;if(!n)throw new Error("String is required");var a=Ys(n.split(""),this.matchTree,!0);if(a&&a.match&&delete a.matchedChars,!(a&&a.overflow&&!i))return a}}])})();function Ys(e,t,n){if(typeof t=="string"){var r=e.join("");return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var i=e.slice(),a=0;a<t.length;){var l=t[a],s=Ys(i,l,n&&a===t.length-1);if(s){if(s.overflow)return s;if(s.match){if(i=i.slice(s.matchedChars.length),i.length===0)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(s.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
100
- `.concat(JSON.stringify(s,null,2)))}}else return;a++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-i.length)}}switch(t.op){case"|":for(var d,u=Y0(t.args),f;!(f=u()).done;){var m=f.value,h=Ys(e,m,n);if(h){if(h.overflow)return h;if(h.match)return{match:!0,matchedChars:h.matchedChars};if(h.partialMatch)d=!0;else throw new Error(`Unsupported match result:
101
- `.concat(JSON.stringify(h,null,2)))}}return d?{partialMatch:!0}:void 0;case"[]":for(var x=Y0(t.args),g;!(g=x()).done;){var b=g.value;if(e[0]===b)return e.length===1?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[b]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function Ko(e){"@babel/helpers - typeof";return Ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ko(e)}function Z0(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Bb(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
102
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bb(e,t){if(e){if(typeof e=="string")return J0(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J0(e,t):void 0}}function J0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Gb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ub(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kb(r.key),r)}}function Wb(e,t,n){return t&&Ub(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kb(e){var t=qb(e,"string");return Ko(t)=="symbol"?t:t+""}function qb(e,t){if(Ko(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ko(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xs="9",Yb=15,Xb=sa(Xs,Yb),Zb=/[- ]/,Jb=function(){return/\[([^\[\]])*\]/g},Qb=function(){return/\d(?=[^,}][^,}])/g},ey=new RegExp("["+yn+"]*\\$1["+yn+"]*(\\$\\d["+yn+"]*)*$"),Q0=3,ty=(function(){function e(t){t.state;var n=t.metadata;Gb(this,e),this.metadata=n,this.resetFormat()}return Wb(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(n,r){this.resetFormat(),n?(this.isNANP=n.callingCode()==="1",this.matchingFormats=n.formats(),r.nationalSignificantNumber&&this.narrowDownMatchingFormats(r)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(n,r){var i=this;if($b(r.nationalSignificantNumber,this.metadata))for(var a=Z0(this.matchingFormats),l;!(l=a()).done;){var s=l.value,d=Cb(r,s,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(f){return i.shouldTryNationalPrefixFormattingRule(f,{international:r.international,nationalPrefix:r.nationalPrefix})},getSeparatorAfterNationalPrefix:function(f){return i.getSeparatorAfterNationalPrefix(f)}});if(d)return this.resetFormat(),this.chosenFormat=s,this.setNationalNumberTemplate(d.replace(/\d/g,vn),r),this.populatedNationalNumberTemplate=d,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(vn),d}return this.formatNationalNumberWithNextDigits(n,r)}},{key:"formatNationalNumberWithNextDigits",value:function(n,r){var i=this.chosenFormat,a=this.chooseFormat(r);if(a)return a===i?this.formatNextNationalNumberDigits(n):this.formatNextNationalNumberDigits(r.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(n){var r=this,i=n.nationalSignificantNumber,a=n.nationalPrefix,l=n.international,s=i,d=s.length-Q0;d<0&&(d=0),this.matchingFormats=this.matchingFormats.filter(function(u){return r.formatSuits(u,l,a)&&r.formatMatches(u,s,d)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(n,r,i){return!(i&&!n.usesNationalPrefix()&&!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r&&!i&&n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(n,r,i){var a=n.leadingDigitsPatterns().length;if(a===0)return!0;i=Math.min(i,a-1);var l=n.leadingDigitsPatterns()[i];if(r.length<Q0)try{return new _b(l).match(r,{allowOverflow:!0})!==void 0}catch(s){return console.error(s),!0}return new RegExp("^(".concat(l,")")).test(r)}},{key:"getFormatFormat",value:function(n,r){return r?n.internationalFormat():n.format()}},{key:"chooseFormat",value:function(n){for(var r=this,i=function(){var u=s.value;return r.chosenFormat===u?0:ey.test(r.getFormatFormat(u,n.international))?r.createTemplateForFormat(u,n)?(r.chosenFormat=u,0):(r.matchingFormats=r.matchingFormats.filter(function(f){return f!==u}),1):1},a,l=Z0(this.matchingFormats.slice()),s;!(s=l()).done&&(a=i(),a!==0););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(n,r){if(!(n.pattern().indexOf("|")>=0)){var i=this.getTemplateForFormat(n,r);if(i)return this.setNationalNumberTemplate(i,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&Zb.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var i=n.IDDPrefix,a=n.missingPlus;return i?r&&r.spacing===!1?i:i+" ":a?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,i=0,a=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";i<a.length+n.getDigitsWithoutInternationalPrefix().length;)r=this.template.indexOf(vn,r+1),i++;return K0(this.template,r+1)}}},{key:"setNationalNumberTemplate",value:function(n,r){this.nationalNumberTemplate=n,this.populatedNationalNumberTemplate=n,this.populatedNationalNumberTemplatePosition=-1,r.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g,vn)+sa(vn,r.callingCode.length)+" "+n:this.template=n}},{key:"getTemplateForFormat",value:function(n,r){var i=r.nationalSignificantNumber,a=r.international,l=r.nationalPrefix,s=r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,d=n.pattern();d=d.replace(Jb(),"\\d").replace(Qb(),"\\d");var u=Xb.match(d)[0];if(!(i.length>u.length)){var f=new RegExp("^"+d+"$"),m=i.replace(/\d/g,Xs);f.test(m)&&(u=m);var h=this.getFormatFormat(n,a),x;if(this.shouldTryNationalPrefixFormattingRule(n,{international:a,nationalPrefix:l})){var g=h.replace(dp,n.nationalPrefixFormattingRule());if(br(n.nationalPrefixFormattingRule())===(l||"")+br("$1")&&(h=g,x=!0,l))for(var b=l.length;b>0;)h=h.replace(/\d/,vn),b--}var v=u.replace(new RegExp(d),h).replace(new RegExp(Xs,"g"),vn);return x||(s?v=sa(vn,s.length)+" "+v:l&&(v=sa(vn,l.length)+this.getSeparatorAfterNationalPrefix(n)+v)),a&&(v=up(v)),v}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=wb(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],K0(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var i=r.international,a=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var l=n.usesNationalPrefix();if(l&&a||!l&&!i)return!0}}}])})();function qo(e){"@babel/helpers - typeof";return qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qo(e)}function wp(e,t){return iy(e)||oy(e,t)||ry(e,t)||ny()}function ny(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
103
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ry(e,t){if(e){if(typeof e=="string")return ef(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ef(e,t):void 0}}function ef(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oy(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,s=[],d=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(d=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);d=!0);}catch(f){u=!0,i=f}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw i}}return s}}function iy(e){if(Array.isArray(e))return e}function ay(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ly(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cy(r.key),r)}}function sy(e,t,n){return t&&ly(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cy(e){var t=uy(e,"string");return qo(t)=="symbol"?t:t+""}function uy(e,t){if(qo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dy="["+yn+en+"]+",fy=new RegExp("^"+dy+"$","i"),my="(?:["+$l+"]["+yn+en+"]*|["+yn+en+"]+)",py=new RegExp("[^"+yn+en+"]+.*$"),hy=/[^\d\[\]]/,gy=(function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,i=t.metadata,a=t.onNationalSignificantNumberChange;ay(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=a}return sy(e,[{key:"input",value:function(n,r){var i=by(n),a=wp(i,2),l=a[0],s=a[1],d=br(l),u;return s&&(r.digits||(r.startInternationalNumber(void 0,void 0),d||(u=!0))),d&&this.inputDigits(d,r),{digits:d,justLeadingPlus:u}}},{key:"inputDigits",value:function(n,r){var i=r.digits,a=i.length<3&&i.length+n.length>=3;if(r.appendDigits(n),a&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(l){return r.update(l)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,i=n.callingCode;return r&&!i}},{key:"extractCountryCallingCode",value:function(n){var r=y1("+"+n.getDigitsWithoutInternationalPrefix(),n.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode,a=r.number;if(i)return n.setCallingCode(i),n.update({nationalSignificantNumber:a}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&hy.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=_s(n,this.metadata),a=i.nationalPrefix,l=i.nationalNumber,s=i.carrierCode;if(l!==n)return this.onExtractedNationalNumber(a,s,l,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var a=_s(n,this.metadata),l=a.nationalPrefix,s=a.nationalNumber,d=a.carrierCode;if(s!==r)return this.onExtractedNationalNumber(l,d,s,n,i),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,i,a,l){var s=!1,d,u=a.lastIndexOf(i);if(u<0||u!==a.length-i.length)s=!0;else{var f=a.slice(0,u);f&&f!==n&&(d=f)}l({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:i,nationalSignificantNumberIsModified:s,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:d}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,i=n.IDDPrefix,a=n.digits;if(n.nationalSignificantNumber,!(r||i)){var l=lp(a,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(l!==void 0&&l!==a)return n.update({IDDPrefix:a.slice(0,a.length-l.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=cp(n.digits,n.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode;if(i)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(n,r){var i=r.country,a=r.callingCode;n.startInternationalNumber(i,a),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}])})();function vy(e){var t=e.search(my);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(py,""),n&&(e="+"+e),e}}function xy(e){var t=vy(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function by(e){var t=xy(e),n=wp(t,2),r=n[0],i=n[1];return fy.test(r)||(r=""),[r,i]}function Yo(e){"@babel/helpers - typeof";return Yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yo(e)}function yy(e,t){return $y(e)||Cy(e,t)||wy(e,t)||Ey()}function Ey(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
104
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wy(e,t){if(e){if(typeof e=="string")return tf(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tf(e,t):void 0}}function tf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cy(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,s=[],d=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(d=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);d=!0);}catch(f){u=!0,i=f}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw i}}return s}}function $y(e){if(Array.isArray(e))return e}function My(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Py(r.key),r)}}function Ny(e,t,n){return t&&Sy(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Py(e){var t=Ry(e,"string");return Yo(t)=="symbol"?t:t+""}function Ry(e,t){if(Yo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cr=(function(){function e(t,n){My(this,e),this.metadata=new kt(n);var r=this.getCountryAndCallingCode(t),i=yy(r,2),a=i[0],l=i[1];this.defaultCountry=a,this.defaultCallingCode=l,this.reset()}return Ny(e,[{key:"getCountryAndCallingCode",value:function(n){var r,i;return n&&(xr(n)?(r=n.defaultCountry,i=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,i]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),i=r.digits,a=r.justLeadingPlus;if(a)this.formattedOutput="+";else if(i){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var l;if(this.metadata.hasSelectedNumberingPlan()&&(l=this.formatter.format(i,this.state)),l===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var s=this.state.getNationalDigits();s&&(l=this.formatter.format(s,this.state))}this.formattedOutput=l?this.getFullNumber(l):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new xb({onCountryChange:function(i){n.country=i},onCallingCodeChange:function(i,a){n.metadata.selectNumberingPlan(a||i),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new ty({state:this.state,metadata:this.metadata}),this.parser=new gy({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var i=function(s){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!s})+s},a=this.state.callingCode;return i(a?n?"".concat(a," ").concat(n):a:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,a=n.nationalPrefix,l=r,s=i||a;return s&&(l=s+l),l}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(n?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,vn)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){var n=b1(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata});n!==this.state.country&&(this.state.setCountry(n),n&&this.metadata.selectNumberingPlan(n))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,a=n.country,l=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+l:"+"+r;if(a||i){var s=a?this.metadata.countryCallingCode():i;return"+"+s+l}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,a=n.callingCode;if(r){var l=this._getCountry();if(!(!l&&!a)){if(l&&l===this.defaultCountry){var s=this.metadata.numberingPlan.callingCode(),d=Iy(s,r,this.metadata);d&&(l=d)}var u=new hp(l||a,r,this.metadata.metadata);return i&&(u.carrierCode=i),u}}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"validateLength",value:function(){var n=this.state,r=n.digits,i=n.nationalSignificantNumber;if(!r)return"NOT_A_NUMBER";if(!this.metadata.numberingPlan)return"INVALID_COUNTRY";if(!i)return"TOO_SHORT";var a=Ei(i,void 0,this.metadata);if(a!=="IS_POSSIBLE")return a}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])})();function Iy(e,t,n){var r=n.getCountryCodesForCallingCode(e);if(r.length>1)return sp(t,r,n.metadata)}function Zs(e){return new kt(e).getCountries()}function Fy(e,t,n){return n||(n=t,t=void 0),new cr(t,n).input(e)}function Cp(e){var t=e.inputFormat,n=e.country,r=e.metadata;return t==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(Cn(n,r)):""}function Ia(e,t){return t&&(e=e.slice(t.length),e[0]===" "&&(e=e.slice(1))),e}function Ty(e,t,n){if(!(n&&n.ignoreRest)){var r=function(a){if(n)switch(a){case"end":n.ignoreRest=!0;break}};return vp(e,t,r)}}function $p(e){var t=e.onKeyDown,n=e.inputFormat;return o.useCallback(function(r){if(r.keyCode===zy&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&Oy(r.target)===Ay.length){r.preventDefault();return}t&&t(r)},[t,n])}function Oy(e){return e.selectionStart}var zy=8,Ay="+",jy=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Js.apply(this,arguments)}function Dy(e,t){if(e==null)return{};var n=ky(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ky(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Hy(e){function t(n,r){var i=n.onKeyDown,a=n.country,l=n.inputFormat,s=n.metadata,d=s===void 0?e:s;n.international,n.withCountryCallingCode;var u=Dy(n,jy),f=o.useCallback(function(h){var x=new cr(a,d),g=Cp({inputFormat:l,country:a,metadata:d}),b=x.input(g+h),v=x.getTemplate();return g&&(b=Ia(b,g),v&&(v=Ia(v,g))),{text:b,template:v}},[a,d]),m=$p({onKeyDown:i,inputFormat:l});return o.createElement(Pa,Js({},u,{ref:r,parse:Ty,format:f,onKeyDown:m}))}return t=o.forwardRef(t),t.propTypes={value:ge.string.isRequired,onChange:ge.func.isRequired,onKeyDown:ge.func,country:ge.string,inputFormat:ge.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:ge.object},t}const Mp=Hy();var Ly=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function Qs(){return Qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qs.apply(this,arguments)}function Vy(e,t){if(e==null)return{};var n=_y(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _y(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function By(e){function t(n,r){var i=n.value,a=n.onChange,l=n.onKeyDown,s=n.country,d=n.inputFormat,u=n.metadata,f=u===void 0?e:u,m=n.inputComponent,h=m===void 0?"input":m;n.international,n.withCountryCallingCode;var x=Vy(n,Ly),g=Cp({inputFormat:d,country:s,metadata:f}),b=o.useCallback(function(y){var w=Ws(y.target.value);if(w===i){var E=nf(g,w,s,f);E.indexOf(y.target.value)===0&&(w=w.slice(0,-1))}a(w)},[g,i,a,s,f]),v=$p({onKeyDown:l,inputFormat:d});return o.createElement(h,Qs({},x,{ref:r,value:nf(g,i,s,f),onChange:b,onKeyDown:v}))}return t=o.forwardRef(t),t.propTypes={value:ge.string.isRequired,onChange:ge.func.isRequired,onKeyDown:ge.func,country:ge.string,inputFormat:ge.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:ge.object,inputComponent:ge.elementType},t}const Sp=By();function nf(e,t,n,r){return Ia(Fy(e+t,n,r),e)}function Gy(e){return rf(e[0])+rf(e[1])}function rf(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var Uy=["value","onChange","options","disabled","readOnly"],Wy=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function Ky(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=qy(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
105
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qy(e,t){if(e){if(typeof e=="string")return of(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return of(e,t)}}function of(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fa(){return Fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fa.apply(this,arguments)}function Np(e,t){if(e==null)return{};var n=Yy(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yy(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Pp(e){var t=e.value,n=e.onChange,r=e.options,i=e.disabled,a=e.readOnly,l=Np(e,Uy),s=o.useCallback(function(d){var u=d.target.value;n(u==="ZZ"?void 0:u)},[n]);return o.useMemo(function(){return Ip(r,t)},[r,t]),o.createElement("select",Fa({},l,{disabled:i||a,readOnly:a,value:t||"ZZ",onChange:s}),r.map(function(d){var u=d.value,f=d.label,m=d.divider;return o.createElement("option",{key:m?"|":u||"ZZ",value:m?"|":u||"ZZ",disabled:!!m,style:m?Xy:void 0},f)}))}Pp.propTypes={value:ge.string,onChange:ge.func.isRequired,options:ge.arrayOf(ge.shape({value:ge.string,label:ge.string,divider:ge.bool})).isRequired,disabled:ge.bool,readOnly:ge.bool};var Xy={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function Rp(e){var t=e.value,n=e.options,r=e.className,i=e.iconComponent;e.getIconAspectRatio;var a=e.arrowComponent,l=a===void 0?Zy:a,s=e.unicodeFlags,d=Np(e,Wy),u=o.useMemo(function(){return Ip(n,t)},[n,t]);return o.createElement("div",{className:"PhoneInputCountry"},o.createElement(Pp,Fa({},d,{value:t,options:n,className:Na("PhoneInputCountrySelect",r)})),u&&(s&&t?o.createElement("div",{className:"PhoneInputCountryIconUnicode"},Gy(t)):o.createElement(i,{"aria-hidden":!0,country:t,label:u.label,aspectRatio:s?1:void 0})),o.createElement(l,null))}Rp.propTypes={iconComponent:ge.elementType,arrowComponent:ge.elementType,unicodeFlags:ge.bool};function Zy(){return o.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function Ip(e,t){for(var n=Ky(e),r;!(r=n()).done;){var i=r.value;if(!i.divider&&Jy(i.value,t))return i}}function Jy(e,t){return e==null?t==null:e===t}var Qy=["country","countryName","flags","flagUrl"];function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ec.apply(this,arguments)}function eE(e,t){if(e==null)return{};var n=tE(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tE(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function w1(e){var t=e.country,n=e.countryName,r=e.flags,i=e.flagUrl,a=eE(e,Qy);return r&&r[t]?r[t]({title:n}):o.createElement("img",ec({},a,{alt:n,role:n?void 0:"presentation",src:i.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}w1.propTypes={country:ge.string.isRequired,countryName:ge.string.isRequired,flags:ge.objectOf(ge.elementType),flagUrl:ge.string.isRequired};var nE=["aspectRatio"],rE=["title"],oE=["title"];function Ta(){return Ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ta.apply(this,arguments)}function C1(e,t){if(e==null)return{};var n=iE(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iE(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ml(e){var t=e.aspectRatio,n=C1(e,nE);return t===1?o.createElement(Tp,n):o.createElement(Fp,n)}Ml.propTypes={title:ge.string.isRequired,aspectRatio:ge.number};function Fp(e){var t=e.title,n=C1(e,rE);return o.createElement("svg",Ta({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),o.createElement("title",null,t),o.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},o.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),o.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),o.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),o.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),o.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),o.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),o.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}Fp.propTypes={title:ge.string.isRequired};function Tp(e){var t=e.title,n=C1(e,oE);return o.createElement("svg",Ta({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),o.createElement("title",null,t),o.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},o.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),o.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),o.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),o.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),o.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),o.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),o.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}Tp.propTypes={title:ge.string.isRequired};function aE(e){if(e.length<2||e[0]!=="+")return!1;for(var t=1;t<e.length;){var n=e.charCodeAt(t);if(!(n>=48&&n<=57))return!1;t++}return!0}function $1(e){aE(e)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",e)}function lE(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=sE(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
106
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sE(e,t){if(e){if(typeof e=="string")return af(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return af(e,t)}}function af(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cE(e,t){if(!t)return e;for(var n=[],r=[],i=n,a=function(){var u=s.value;if(u==="|")i.push({divider:!0});else if(u==="..."||u==="…")i=r;else{var f;u==="🌐"?f=void 0:f=u;var m=e.indexOf(e.filter(function(x){return x.value===f})[0]),h=e[m];e.splice(m,1),i.push(h)}},l=lE(t),s;!(s=l()).done;)a();return n.concat(e).concat(r)}function uE(e,t){if(e&&(e=e.filter(function(n){switch(n){case"🌐":case"|":case"...":case"…":return!0;default:return Sl(n,t)}}),e.length>0))return e}function Sl(e,t){return op(e,t)?!0:(console.error("Country not found: ".concat(e)),!1)}function Op(e,t){return e&&(e=e.filter(function(n){return Sl(n,t)}),e.length===0&&(e=void 0)),e}var dE=["country","label","aspectRatio"];function tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tc.apply(this,arguments)}function fE(e,t){if(e==null)return{};var n=mE(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mE(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function zp(e){var t=e.flags,n=e.flagUrl,r=e.flagComponent,i=e.internationalIcon;function a(l){var s=l.country,d=l.label,u=l.aspectRatio,f=fE(l,dE),m=i===Ml?u:void 0;return o.createElement("div",tc({},f,{className:Na("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":m===1,"PhoneInputCountryIcon--border":s})}),s?o.createElement(r,{country:s,countryName:d,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):o.createElement(i,{title:d,aspectRatio:m,className:"PhoneInputCountryIconImg"}))}return a.propTypes={country:ge.string,label:ge.string.isRequired,aspectRatio:ge.number},a}zp({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:w1,internationalIcon:Ml});function pE(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=hE(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
107
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hE(e,t){if(e){if(typeof e=="string")return lf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lf(e,t)}}function lf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gE(e,t){for(var n=pE(e),r;!(r=n()).done;){var i=r.value;i&&vE(i,t)}}function vE(e,t){typeof e=="function"?e(t):e.current=t}var M1=ge.shape({country_calling_codes:ge.object.isRequired,countries:ge.object.isRequired}),Ap=ge.objectOf(ge.string);function mn(e,t){var n="+"+Cn(e,t);return n}function xE(e){var t=e.value,n=e.phoneNumber,r=e.defaultCountry,i=e.getAnyCountry,a=e.countries,l=e.required,s=e.metadata,d;return n&&n.country?d=n.country:r&&(!t||Kr(t,r,s))&&(d=r),a&&a.indexOf(d)<0&&(d=void 0),!d&&l&&a&&a.length>0&&(d=i()),d}function bE(e){var t=e.countries,n=e.countryNames,r=e.addInternationalOption,i=e.compareStringsLocales,a=e.compareStrings;a||(a=SE);var l=t.map(function(s){return{value:s,label:n[s]||s}});return l.sort(function(s,d){return a(s.label,d.label,i)}),r&&l.unshift({label:n.ZZ}),l}function jp(e,t){return Ep(e||"",t)}function yE(e){return e.formatNational().replace(/\D/g,"")}function EE(e,t){var n=t.prevCountry,r=t.newCountry,i=t.metadata,a=t.useNationalFormat;if(n===r)return e;if(!e)return a?"":r?mn(r,i):"";if(r){if(e[0]==="+"){if(a)return e.indexOf("+"+Cn(r,i))===0?NE(e,r,i):"";if(n){var l=mn(r,i);return e.indexOf(l)===0?e:l}else{var s=mn(r,i);return e.indexOf(s)===0?e:s}}}else if(e[0]!=="+")return kr(e,n,i)||"";return e}function kr(e,t,n){if(e){if(e[0]==="+"){if(e==="+")return;var r=new cr(t,n);return r.input(e),r.getNumberValue()}if(t){var i=kp(e,t,n);return"+".concat(Cn(t,n)).concat(i||"")}}}function wE(e,t,n){var r=kp(e,t,n);if(r){var i=r.length-CE(t,n);if(i>0)return e.slice(0,e.length-i)}return e}function CE(e,t){return t=new kt(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}function Dp(e,t){var n=t.country,r=t.countries,i=t.defaultCountry,a=t.latestCountrySelectedByUser,l=t.required,s=t.metadata;if(e==="+")return n;var d=ME(e,s);if(d)return!r||r.indexOf(d)>=0?d:void 0;if(n){if(Kr(e,n,s)){if(a&&Kr(e,a,s))return a;if(i&&Kr(e,i,s))return i;if(!l)return}else if(!l)return}return n}function $E(e,t){var n=t.prevPhoneDigits,r=t.country,i=t.defaultCountry,a=t.latestCountrySelectedByUser,l=t.countryRequired,s=t.getAnyCountry,d=t.countries,u=t.international,f=t.limitMaxLength,m=t.countryCallingCodeEditable,h=t.metadata;if(u&&m===!1&&r){var x=mn(r,h);if(e.indexOf(x)!==0){var g,b=e&&e[0]!=="+";return b?(e=x+e,g=kr(e,r,h)):e=x,{phoneDigits:e,value:g,country:r}}}u===!1&&r&&e&&e[0]==="+"&&(e=sf(e,r,h)),e&&r&&f&&(e=wE(e,r,h)),e&&e[0]!=="+"&&(!r||u)&&(e="+"+e),!e&&n&&n[0]==="+"&&(u?r=void 0:r=i),e==="+"&&n&&n[0]==="+"&&n.length>1&&(r=void 0);var v;return e&&(e[0]==="+"&&(e==="+"||r&&mn(r,h).indexOf(e)===0)?v=void 0:v=kr(e,r,h)),v&&(r=Dp(v,{country:r,countries:d,defaultCountry:i,latestCountrySelectedByUser:a,required:!1,metadata:h}),u===!1&&r&&e&&e[0]==="+"&&(e=sf(e,r,h),v=kr(e,r,h))),!r&&l&&(r=i||s()),{phoneDigits:e,country:r,value:v}}function sf(e,t,n){if(e.indexOf(mn(t,n))===0){var r=new cr(t,n);r.input(e);var i=r.getNumber();return i?i.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function ME(e,t){var n=new cr(null,t);return n.input(e),n.getCountry()}function SE(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):e<t?-1:e>t?1:0}function NE(e,t,n){if(t){var r="+"+Cn(t,n);if(e.length<r.length){if(r.indexOf(e)===0)return""}else if(e.indexOf(r)===0)return e.slice(r.length)}for(var i=0,a=Object.keys(n.country_calling_codes);i<a.length;i++){var l=a[i];if(e.indexOf(l)===1)return e.slice(1+l.length)}return""}function kp(e,t,n){var r=new cr(t,n);r.input(e);var i=r.getNumber();return i&&i.nationalNumber}function Kr(e,t,n){for(var r=mn(t,n),i=0;i<e.length&&i<r.length;){if(e[i]!==r[i])return!1;i++}return!0}function Hp(e){var t=e.value,n=e.phoneNumber,r=e.defaultCountry,i=e.international,a=e.useNationalFormat,l=e.metadata;return(i===!1||a)&&n&&n.country?yE(n):!t&&i&&r?mn(r,l):t}function Xo(e){"@babel/helpers - typeof";return Xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xo(e)}function cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ta(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cf(Object(n),!0).forEach(function(r){PE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PE(e,t,n){return t=RE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RE(e){var t=IE(e,"string");return Xo(t)=="symbol"?t:t+""}function IE(e,t){if(Xo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FE(e,t,n){var r=e.metadata,i=e.countries,a=e.defaultCountry,l=e.value,s=e.reset,d=e.international,u=e.displayInitialValueAsLocalNumber,f=e.initialValueFormat,m=t.defaultCountry,h=t.value,x=t.reset;n.country;var g=n.value,b=n.hasUserSelectedACountry,v=n.latestCountrySelectedByUser,y=function(z){return Hp(ta(ta({},z),{},{international:d,useNationalFormat:u||f==="national",metadata:r}))};if(s!==x)return{phoneDigits:y({value:void 0,defaultCountry:a}),value:void 0,country:a,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(a!==m){var w=!a||Sl(a,r),E=!g||d&&g===y({value:void 0,defaultCountry:m}),C=!l&&E;if(!b&&w&&C)return{country:a,phoneDigits:y({value:void 0,defaultCountry:a}),value:void 0}}if(!uf(l,h)&&!uf(l,g)){var $,M;if(l){l&&$1(l),$=jp(l,r);var S=Op(i,r);$&&$.country?(!S||S.indexOf($.country)>=0)&&(M=$.country):(M=Dp(l,{country:void 0,countries:S,metadata:r}),M||a&&l.indexOf(mn(a,r))===0&&(M=a))}var P;if(l){if(v){var N=M?v===M:Kr(l,v,r);N?M||(M=v):P={latestCountrySelectedByUser:void 0}}}else P={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return ta(ta({},P),{},{phoneDigits:y({phoneNumber:$,value:l,defaultCountry:a}),value:l,country:l?M:a})}}function uf(e,t){return e===null&&(e=void 0),t===null&&(t=void 0),e===t}var TE=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function to(e){"@babel/helpers - typeof";return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},to(e)}function df(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?df(Object(n),!0).forEach(function(r){gn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):df(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qr.apply(this,arguments)}function OE(e,t){if(e==null)return{};var n=zE(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zE(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function AE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ff(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_p(r.key),r)}}function jE(e,t,n){return t&&ff(e.prototype,t),n&&ff(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function DE(e,t,n){return t=Oa(t),kE(e,Vp()?Reflect.construct(t,n||[],Oa(e).constructor):t.apply(e,n))}function kE(e,t){if(t&&(to(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HE(e)}function HE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vp=function(){return!!e})()}function Oa(e){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Oa(e)}function LE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nc(e,t)}function nc(e,t){return nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nc(e,t)}function gn(e,t,n){return t=_p(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _p(e){var t=VE(e,"string");return to(t)=="symbol"?t:t+""}function VE(e,t){if(to(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(to(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _E=(function(e){function t(n){var r;AE(this,t),r=DE(this,t,[n]),gn(r,"setInputRef",function(v){gE([r.props.inputRef,r.inputRef],v)}),gn(r,"isCountrySupportedWithError",function(v){var y=r.props.metadata;return Sl(v,y)}),gn(r,"onCountryChange",function(v){var y=r.props,w=y.international,E=y.metadata,C=y.onChange,$=y.focusInputOnCountrySelection,M=r.state,S=M.phoneDigits,P=M.country,N=EE(S,{prevCountry:P,newCountry:v,metadata:E,useNationalFormat:!w}),R=kr(N,v,E);$&&r.inputRef.current.focus(),r.setState({country:v,latestCountrySelectedByUser:v,hasUserSelectedACountry:!0,phoneDigits:N,value:R},function(){C(R)})}),gn(r,"onChange",function(v){var y=r.props,w=y.defaultCountry,E=y.onChange,C=y.addInternationalOption,$=y.international,M=y.limitMaxLength,S=y.countryCallingCodeEditable,P=y.metadata,N=r.state,R=N.countries,z=N.phoneDigits,_=N.country,F=N.latestCountrySelectedByUser,O=$E(v,{prevPhoneDigits:z,country:_,countryRequired:!C,defaultCountry:w,latestCountrySelectedByUser:F,getAnyCountry:function(){return r.getFirstSupportedCountry({countries:R})},countries:R,international:$,limitMaxLength:M,countryCallingCodeEditable:S,metadata:P}),j=O.phoneDigits,V=O.country,J=O.value,U={phoneDigits:j,value:J,country:V};F&&J&&!Kr(J,F,P)&&(U.latestCountrySelectedByUser=void 0),S===!1&&!J&&j===r.state.phoneDigits&&(U.forceRerender={}),r.setState(U,function(){return E(J)})}),gn(r,"_onFocus",function(){return r.setState({isFocused:!0})}),gn(r,"_onBlur",function(){return r.setState({isFocused:!1})}),gn(r,"onFocus",function(v){r._onFocus();var y=r.props.onFocus;y&&y(v)}),gn(r,"onBlur",function(v){var y=r.props.onBlur;r._onBlur(),y&&y(v)}),gn(r,"onCountryFocus",function(v){r._onFocus();var y=r.props.countrySelectProps;if(y){var w=y.onFocus;w&&w(v)}}),gn(r,"onCountryBlur",function(v){r._onBlur();var y=r.props.countrySelectProps;if(y){var w=y.onBlur;w&&w(v)}}),r.inputRef=o.createRef();var i=r.props,a=i.value;i.labels;var l=i.international,s=i.addInternationalOption,d=i.displayInitialValueAsLocalNumber,u=i.initialValueFormat,f=i.metadata,m=r.props,h=m.defaultCountry,x=m.countries;h&&(r.isCountrySupportedWithError(h)||(h=void 0)),a&&$1(a),x=Op(x,f);var g=jp(a,f);r.CountryIcon=zp(r.props);var b=xE({value:a,phoneNumber:g,defaultCountry:h,required:!s,countries:x||Zs(f),getAnyCountry:function(){return r.getFirstSupportedCountry({countries:x})},metadata:f});return r.state={props:r.props,country:b,countries:x,phoneDigits:Hp({value:a,phoneNumber:g,defaultCountry:h,international:l,useNationalFormat:d||u==="national",metadata:f}),value:a},r}return LE(t,e),jE(t,[{key:"componentDidMount",value:function(){var r=this.props.onCountryChange,i=this.props.defaultCountry,a=this.state.country;r&&(i&&(this.isCountrySupportedWithError(i)||(i=void 0)),a!==i&&r(a))}},{key:"componentDidUpdate",value:function(r,i){var a=this.props.onCountryChange,l=this.state.country;a&&l!==i.country&&a(l)}},{key:"getCountrySelectOptions",value:function(r){var i=r.countries,a=this.props,l=a.international,s=a.countryCallingCodeEditable,d=a.countryOptionsOrder,u=a.addInternationalOption,f=a.labels,m=a.locales,h=a.metadata;return this.useMemoCountrySelectOptions(function(){return cE(bE({countries:i||Zs(h),countryNames:f,addInternationalOption:l&&s===!1?!1:u,compareStringsLocales:m}),uE(d,h))},[i,d,u,f,h])}},{key:"useMemoCountrySelectOptions",value:function(r,i){return(!this.countrySelectOptionsMemoDependencies||!GE(i,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=r(),this.countrySelectOptionsMemoDependencies=i),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(r){var i=r.countries,a=this.getCountrySelectOptions({countries:i});return a[0].value}},{key:"render",value:function(){var r=this.props,i=r.name,a=r.disabled,l=r.readOnly,s=r.autoComplete,d=r.style,u=r.className;r.inputRef;var f=r.inputComponent,m=r.numberInputProps,h=r.smartCaret,x=r.countrySelectComponent,g=r.countrySelectProps,b=r.containerComponent,v=r.containerComponentProps;r.defaultCountry,r.countries,r.countryOptionsOrder;var y=r.labels;r.flags,r.flagComponent,r.flagUrl,r.addInternationalOption,r.internationalIcon,r.displayInitialValueAsLocalNumber,r.initialValueFormat,r.onCountryChange,r.limitMaxLength,r.countryCallingCodeEditable,r.focusInputOnCountrySelection,r.reset;var w=r.metadata,E=r.international;r.locales;var C=OE(r,TE),$=this.state,M=$.country,S=$.countries,P=$.phoneDigits,N=$.isFocused,R=h?Mp:Sp,z=this.getCountrySelectOptions({countries:S});return o.createElement(b,qr({style:d,className:Na(u,"PhoneInput",{"PhoneInput--focus":N,"PhoneInput--disabled":a,"PhoneInput--readOnly":l})},v),o.createElement(x,qr({name:i?"".concat(i,"Country"):void 0,"aria-label":y.country},g,{value:M,options:z,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:a||g&&g.disabled,readOnly:l||g&&g.readOnly,iconComponent:this.CountryIcon})),o.createElement(R,qr({ref:this.setInputRef,type:"tel",autoComplete:s},m,C,{inputFormat:E===!0?"INTERNATIONAL":E===!1?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:E?!0:void 0,withCountryCallingCode:E?!0:void 0,name:i,metadata:w,country:M,value:P||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:a,readOnly:l,inputComponent:f,className:Na("PhoneInputInput",m&&m.className,C.className)})))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return Lp({props:r},FE(r,i.props,i))}}])})(o.PureComponent),Bp=o.forwardRef(function(e,t){return o.createElement(_E,qr({},BE(e),{inputRef:t}))});Bp.propTypes={value:ge.string,onChange:ge.func.isRequired,onFocus:ge.func,onBlur:ge.func,disabled:ge.bool,readOnly:ge.bool,autoComplete:ge.string,initialValueFormat:ge.oneOf(["national"]),displayInitialValueAsLocalNumber:ge.bool,defaultCountry:ge.string,countries:ge.arrayOf(ge.string),labels:Ap,locales:ge.oneOfType([ge.string,ge.arrayOf(ge.string)]),flagUrl:ge.string,flags:ge.objectOf(ge.elementType),flagComponent:ge.elementType,addInternationalOption:ge.bool,internationalIcon:ge.elementType,countryOptionsOrder:ge.arrayOf(ge.string),style:ge.object,className:ge.string,countrySelectComponent:ge.elementType,countrySelectProps:ge.object,inputComponent:ge.elementType,numberInputProps:ge.object,containerComponent:ge.elementType,containerComponentProps:ge.object,smartCaret:ge.bool,international:ge.bool,limitMaxLength:ge.bool,countryCallingCodeEditable:ge.bool,metadata:M1,onCountryChange:ge.func,focusInputOnCountrySelection:ge.bool};var mf={autoComplete:"tel",countrySelectComponent:Rp,flagComponent:w1,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:Ml,inputComponent:"input",containerComponent:"div",reset:ge.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};function BE(e){e=Lp({},e);for(var t in mf)e[t]===void 0&&(e[t]=mf[t]);return e}function GE(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;){if(e[n]!==t[n])return!1;n++}return!0}function rc(e){"@babel/helpers - typeof";return rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rc(e)}function Gp(e,t,n){if(n||rc(t)==="object"&&(n=t,t="NATIONAL"),!e)return"";var r=Ep(e,n);if(!r)return"";switch(t){case"National":t="NATIONAL";break;case"International":t="INTERNATIONAL";break}return r.format(t)}function UE(e,t){return Gp(e,"INTERNATIONAL",t)}function So(e,t){return YE(e)||qE(e,t)||KE(e,t)||WE()}function WE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
108
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KE(e,t){if(e){if(typeof e=="string")return pf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pf(e,t)}}function pf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qE(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,s=[],d=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(d=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);d=!0);}catch(f){u=!0,i=f}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw i}}return s}}function YE(e){if(Array.isArray(e))return e}function XE(e){var t=this,n=e.value,r=e.onChange,i=e.country,a=e.defaultCountry,l=e.international,s=e.withCountryCallingCode,d=e.useNationalFormatForDefaultCountryValue,u=e.metadata;typeof s=="boolean"&&!(i&&l)&&console.error("[react-phone-number-input] `withCountryCallingCode` property can only be used together with `country` and `international` properties"),i&&a&&console.error("[react-phone-number-input] When `country` property is passed, `defaultCountry` property has no effect and therefore shouldn't be passed"),typeof l=="boolean"&&!i&&console.error("[react-phone-number-input] `international` property can only be used together with `country` property");var f=JE({international:l,country:i,defaultCountry:a,withCountryCallingCode:s}),m=o.useRef(),h=function(A,T,q){console.error("[react-phone-number-input] Expected phone number ".concat(A," to correspond to country ").concat(T," but ").concat(q?"in reality it corresponds to country "+q:"it doesn't",".")),m.current=!0},x=function(A){return n&&$1(n),ZE(n,i,a,f,d,u,function(){A&&A.onCountryMismatch&&A.onCountryMismatch();for(var T=arguments.length,q=new Array(T),D=0;D<T;D++)q[D]=arguments[D];h.apply(t,q)})},g=o.useState(i),b=So(g,2),v=b[0],y=b[1],w=o.useState(a),E=So(w,2),C=E[0],$=E[1],M=o.useState(x()),S=So(M,2),P=S[0],N=S[1],R=o.useState(n),z=So(R,2),_=z[0],F=z[1],O=o.useState(),j=So(O,2);j[0];var V=j[1],J=o.useCallback(function(){return V({})},[V]);function U(I){if(I){f==="NATIONAL_PART_OF_INTERNATIONAL"&&(I="+".concat(Cn(i,u)).concat(I));var A=new cr(i||a,u);return A.input(I),A.getNumberValue()}}o.useEffect(function(){n!==_&&(F(n),N(x()))},[n]),o.useEffect(function(){if(i!==v){y(i);var I,A=x({onCountryMismatch:function(){I=!0}});N(A),I&&F(U(A))}},[i]),o.useEffect(function(){a!==C&&($(a),N(x()))},[a]),o.useEffect(function(){_!==n&&r(_)},[_]);var G=o.useCallback(function(I){var A;if(i)if(f==="INTERNATIONAL"){var T=mn(i,u);if(I.indexOf(T)!==0){if(I&&I[0]!=="+")I=T+I;else if(!m.current)return N(T),F(void 0),J()}}else I&&I[0]==="+"&&(I=I.slice(1));else a||I&&I[0]!=="+"&&(I="+"+I);I&&(A=U(I)),N(I),F(A)},[i,f,a,u,N,F,J,m]);return{phoneDigits:P,setPhoneDigits:G,inputFormat:f}}function ZE(e,t,n,r,i,a,l){if(t&&r==="INTERNATIONAL"){var s=mn(t,a);return e?(e.indexOf(s)!==0&&l(e,t),e):s}if(!e)return"";if(!t&&!n)return e;var d=new cr(void 0,a);d.input(e);var u=d.getNumber();if(u)if(t)switch(u.country&&u.country!==t?l(e,t,u.country):u.countryCallingCode!==Cn(t,a)&&l(e,t),r){case"NATIONAL":return br(u.formatNational());case"NATIONAL_PART_OF_INTERNATIONAL":return br(Ia(u.formatInternational(),mn(t,a)));case"INTERNATIONAL":throw new Error('`inputFormat: "INTERNATIONAL"` case should\'ve already been handled earlier in the code');case"INTERNATIONAL_OR_NATIONAL":throw new Error('`inputFormat: "INTERNATIONAL_OR_NATIONAL"` is not possible when `country` is fixed');default:throw new Error("Unknown `inputFormat`: ".concat(r))}else return u.countryCallingCode&&u.countryCallingCode===Cn(n,a)&&i?br(u.formatNational()):e;else return""}function JE(e){var t=e.international,n=e.country,r=e.defaultCountry,i=e.withCountryCallingCode;return n?t?i?"INTERNATIONAL":"NATIONAL_PART_OF_INTERNATIONAL":"NATIONAL":r?"INTERNATIONAL_OR_NATIONAL":"INTERNATIONAL"}var QE=["Component","country","defaultCountry","useNationalFormatForDefaultCountryValue","value","onChange","metadata","international","withCountryCallingCode"];function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oc.apply(this,arguments)}function ew(e,t){if(e==null)return{};var n=tw(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tw(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function za(e,t){var n=e.Component,r=e.country,i=e.defaultCountry,a=e.useNationalFormatForDefaultCountryValue,l=a===void 0?!0:a,s=e.value,d=e.onChange,u=e.metadata,f=e.international,m=e.withCountryCallingCode,h=ew(e,QE),x=XE({value:s,onChange:d,country:r,defaultCountry:i,international:f,withCountryCallingCode:m,useNationalFormatForDefaultCountryValue:l,metadata:u}),g=x.phoneDigits,b=x.setPhoneDigits,v=x.inputFormat;return o.createElement(n,oc({},h,{ref:t,metadata:u,inputFormat:v,international:f,withCountryCallingCode:m,country:r||i,value:g,onChange:b}))}za=o.forwardRef(za);za.propTypes={value:ge.string,onChange:ge.func.isRequired,country:ge.string,defaultCountry:ge.string,international:ge.bool,withCountryCallingCode:ge.bool,Component:ge.elementType.isRequired,useNationalFormatForDefaultCountryValue:ge.bool,metadata:M1};var nw=["type","autoComplete","smartCaret","metadata"];function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ic.apply(this,arguments)}function rw(e,t){if(e==null)return{};var n=ow(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ow(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Up(e){function t(n,r){var i=n.type,a=i===void 0?"tel":i,l=n.autoComplete,s=l===void 0?"tel":l,d=n.smartCaret,u=d===void 0?!0:d,f=n.metadata,m=f===void 0?e:f,h=rw(n,nw);return o.createElement(za,ic({},h,{type:a,autoComplete:s,metadata:m,ref:r,Component:u?Mp:Sp}))}return t=o.forwardRef(t),t.propTypes={type:ge.string,autoComplete:ge.string,smartCaret:ge.bool,metadata:ge.object},t}Up();const iw=Up(h1),aw={ext:"ext.",country:"Phone number country",phone:"Phone",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XA:"Abkhazia",XK:"Kosovo",XO:"South Ossetia",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var lw=["metadata","labels"];function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ac.apply(this,arguments)}function sw(e,t){if(e==null)return{};var n=cw(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cw(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Wp(e){var t=o.forwardRef(function(n,r){var i=n.metadata,a=i===void 0?e:i,l=n.labels,s=l===void 0?aw:l,d=sw(n,lw);return o.createElement(Bp,ac({},d,{ref:r,metadata:a,labels:s}))});return t.propTypes={metadata:M1,labels:Ap},t}Wp();function wi(e,t){var n=Array.prototype.slice.call(t);return n.push(h1),e.apply(this,n)}Wp(h1);function uw(){return wi(Gp,arguments)}function dw(){return wi(UE,arguments)}function Kp(){return wi(fb,arguments)}function fw(){return wi(Zs,arguments)}function Es(){return wi(Cn,arguments)}var mw=["title"],pw=["title"],hw=["title"],gw=["title"],vw=["title"],xw=["title"],bw=["title"],yw=["title"],Ew=["title"],ww=["title"],Cw=["title"],$w=["title"],Mw=["title"],Sw=["title"],Nw=["title"],Pw=["title"],Rw=["title"],Iw=["title"],Fw=["title"],Tw=["title"],Ow=["title"],zw=["title"],Aw=["title"],jw=["title"],Dw=["title"],kw=["title"],Hw=["title"],Lw=["title"],Vw=["title"],_w=["title"],Bw=["title"],Gw=["title"],Uw=["title"],Ww=["title"],Kw=["title"],qw=["title"],Yw=["title"],Xw=["title"],Zw=["title"],Jw=["title"],Qw=["title"],eC=["title"],tC=["title"],nC=["title"],rC=["title"],oC=["title"],iC=["title"],aC=["title"],lC=["title"],sC=["title"],cC=["title"],uC=["title"],dC=["title"],fC=["title"],mC=["title"],pC=["title"],hC=["title"],gC=["title"],vC=["title"],xC=["title"],bC=["title"],yC=["title"],EC=["title"],wC=["title"],CC=["title"],$C=["title"],MC=["title"],SC=["title"],NC=["title"],PC=["title"],RC=["title"],IC=["title"],FC=["title"],TC=["title"],OC=["title"],zC=["title"],AC=["title"],jC=["title"],DC=["title"],kC=["title"],HC=["title"],LC=["title"],VC=["title"],_C=["title"],BC=["title"],GC=["title"],UC=["title"],WC=["title"],KC=["title"],qC=["title"],YC=["title"],XC=["title"],ZC=["title"],JC=["title"],QC=["title"],e$=["title"],t$=["title"],n$=["title"],r$=["title"],o$=["title"],i$=["title"],a$=["title"],l$=["title"],s$=["title"],c$=["title"],u$=["title"],d$=["title"],f$=["title"],m$=["title"],p$=["title"],h$=["title"],g$=["title"],v$=["title"],x$=["title"],b$=["title"],y$=["title"],E$=["title"],w$=["title"],C$=["title"],$$=["title"],M$=["title"],S$=["title"],N$=["title"],P$=["title"],R$=["title"],I$=["title"],F$=["title"],T$=["title"],O$=["title"],z$=["title"],A$=["title"],j$=["title"],D$=["title"],k$=["title"],H$=["title"],L$=["title"],V$=["title"],_$=["title"],B$=["title"],G$=["title"],U$=["title"],W$=["title"],K$=["title"],q$=["title"],Y$=["title"],X$=["title"],Z$=["title"],J$=["title"],Q$=["title"],eM=["title"],tM=["title"],nM=["title"],rM=["title"],oM=["title"],iM=["title"],aM=["title"],lM=["title"],sM=["title"],cM=["title"],uM=["title"],dM=["title"],fM=["title"],mM=["title"],pM=["title"],hM=["title"],gM=["title"],vM=["title"],xM=["title"],bM=["title"],yM=["title"],EM=["title"],wM=["title"],CM=["title"],$M=["title"],MM=["title"],SM=["title"],NM=["title"],PM=["title"],RM=["title"],IM=["title"],FM=["title"],TM=["title"],OM=["title"],zM=["title"],AM=["title"],jM=["title"],DM=["title"],kM=["title"],HM=["title"],LM=["title"],VM=["title"],_M=["title"],BM=["title"],GM=["title"],UM=["title"],WM=["title"],KM=["title"],qM=["title"],YM=["title"],XM=["title"],ZM=["title"],JM=["title"],QM=["title"],eS=["title"],tS=["title"],nS=["title"],rS=["title"],oS=["title"],iS=["title"],aS=["title"],lS=["title"],sS=["title"],cS=["title"],uS=["title"],dS=["title"],fS=["title"],mS=["title"],pS=["title"],hS=["title"],gS=["title"],vS=["title"],xS=["title"],bS=["title"],yS=["title"],ES=["title"],wS=["title"],CS=["title"],$S=["title"],MS=["title"],SS=["title"],NS=["title"],PS=["title"],RS=["title"],IS=["title"],FS=["title"],TS=["title"],OS=["title"],zS=["title"],AS=["title"],jS=["title"],DS=["title"],kS=["title"],HS=["title"],LS=["title"],VS=["title"],_S=["title"],BS=["title"],GS=["title"],US=["title"],WS=["title"],KS=["title"],qS=["title"],YS=["title"],XS=["title"],ZS=["title"],JS=["title"],QS=["title"],eN=["title"],tN=["title"],nN=["title"],rN=["title"],oN=["title"],iN=["title"],aN=["title"],lN=["title"];function k(){return k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(this,arguments)}function H(e,t){if(e==null)return{};var n=sN(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var cN=function(t){var n=t.title,r=H(t,mw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M440.1 181.1c-.1 39.2-6.4 81.4-57.4 101.5-51.1-20.1-57.3-62.3-57.4-101.5h114.8z"}),o.createElement("path",{fill:"#1B81B6",d:"M439.6 197.7c-2.8 34.9-12.4 67.4-57 85-44.4-17.6-54.5-51.2-56.9-84.9"}),o.createElement("path",{fill:"#FFF",d:"M437.8 214.1c-3.2 24.3-16.7 53.5-55.1 68.6-38.4-15.1-50.5-42.5-55.1-68.4"}),o.createElement("path",{fill:"#1B81B6",d:"M434.2 230.3c-5.7 17.7-19.3 39.4-51.3 52.8-32-12.6-45.2-33.8-51.4-53"}),o.createElement("path",{fill:"#FFF",d:"M426.7 246.9c-6.5 11.3-17.7 25.4-44 35.9-27.5-11.5-37.4-25.3-44-36.1"}),o.createElement("path",{fill:"#1B81B6",d:"M412.4 265.1c-8.1 7.2-12 11.2-29.6 17.9-20.1-7.9-22.6-11.6-29.2-17.5"}),o.createElement("path",{fill:"#288549",d:"M383.3 231.6c-.2-.2-27.9 35.7-27.9 35.7-1.8-1.3-10-9.5-13.3-15l41.3-50.1 40.2 49.7c-3.9 6.5-11.4 13.6-13.2 15M382.6 85.3l-26.5 45h53z"}),o.createElement("path",{d:"M275.9 223.6c3.6-26.7 13.5-47.3 22.1-46.2s12.6 23.7 9 50.4-13.5 47.3-22.1 46.2c-8.6-1.2-12.6-23.7-9-50.4zm191.2-45.9c8.6-1.2 18.5 19.5 22.1 46.2s-.4 49.2-9 50.4-18.5-19.6-22.2-46.3c-3.6-26.6.5-49.2 9.1-50.3z",fill:"#F0955D"}),o.createElement("path",{d:"M296.4 162c2.4-6 7.4-9.7 11-8.2 3.7 1.5 4.7 7.5 2.3 13.5s-7.4 9.7-11 8.2c-3.6-1.5-4.7-7.5-2.3-13.5zm-8 109.2c.9-6.2 3.1-11.1 4.9-10.8s2.5 5.5 1.6 11.8c-.9 6.2-3.1 11.1-4.9 10.8s-2.5-5.5-1.6-11.8zm10.6-12.8c1.8-.1 3.6 4.7 3.9 10.8s-.9 11.1-2.7 11.2c-1.8.1-3.6-4.7-3.9-10.8-.3-6.1.9-11.1 2.7-11.2zm10.5-70c2.1-.8 6.1 4.2 8.8 11.2 2.8 7 3.3 13.4 1.2 14.2-2.1.8-6.1-4.2-8.8-11.2-2.8-7-3.3-13.4-1.2-14.2zm6.5-14.1c7-2.8 13.4-3.3 14.2-1.2.8 2.1-4.2 6.1-11.2 8.8-7 2.8-13.4 3.3-14.2 1.2-.9-2.1 4.2-6 11.2-8.8zm141.6-20.2c3.7-1.5 8.6 2.2 11 8.2 2.4 6 1.4 12.1-2.3 13.5-3.7 1.5-8.6-2.2-11-8.2-2.4-6-1.3-12.1 2.3-13.5zm14.2 106.5c1.8-.3 4 4.6 4.9 10.8.9 6.2.2 11.5-1.6 11.8-1.8.3-4-4.6-4.9-10.8-1-6.3-.2-11.5 1.6-11.8zm-9.6 8.8c.3-6.1 2.1-10.9 3.9-10.8 1.8.1 3 5.1 2.7 11.2-.3 6.1-2.1 10.9-3.9 10.8-1.8-.1-3-5.1-2.7-11.2zm-15.5-69.7c2.8-7 6.7-12.1 8.8-11.2 2.1.8 1.6 7.2-1.2 14.2-2.8 7-6.7 12.1-8.8 11.2s-1.6-7.2 1.2-14.2zm-11.8-26.5c.8-2.1 7.2-1.6 14.2 1.2 7 2.8 12.1 6.7 11.2 8.8-.8 2.1-7.2 1.6-14.2-1.2-7-2.7-12.1-6.7-11.2-8.8z",fill:"#EADFD5"}),o.createElement("path",{fill:"#B0C6CC",d:"M373.3 130.3 356.1 155l17.8 26.1H396l4.7-25.4-5.4-25.4z"}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})))},uN=function(t){var n=t.title,r=H(t,pw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#fedd00",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#10069f",d:"M0 0h171v342H0z"}),o.createElement("path",{fill:"#d50032",d:"M342 0h171v342H342z"}),o.createElement("path",{fill:"#D80027",d:"M198.9 113.6H256v64.8h-57.1z"}),o.createElement("path",{d:"M267.6 113.6v64.7m16.6-64.7v64.7m16.6-64.7v64.7",stroke:"#D80027",strokeWidth:7}),o.createElement("path",{d:"M247.4 178.4v64.7m-13.3-64.7v64.7m-13.3-64.6v53.9m-13.7-53.9v47.1",stroke:"#D80027",strokeWidth:5}),o.createElement("path",{fill:"#FFDA44",d:"m199.9 146 27.6-32.4 28.5 32.3-28.1 32.4z"}),o.createElement("path",{fill:"#BC8B00",d:"M182.2 95.9v92.2c0 34.3 27.3 54.2 48.6 64.5-.8 1.4 25.1 8.3 25.1 8.3s25.9-6.9 25.1-8.3c21.4-10.3 48.6-30.1 48.6-64.5V95.9H182.2zm129.9 92.2c0 16.9-10 29.4-32.8 43.9-8.6 5.5-17.5 9-23.3 11-5.8-2-14.7-5.5-23.3-11-22.8-14.5-32.8-28-32.8-43.9v-74.5h112.2v74.5z"}),o.createElement("path",{fill:"#D80027",d:"M264.4 188.9h29.5v8.6h-29.5zm0 17.6h29.5v8.6h-29.5z"}))},dN=function(t){var n=t.title,r=H(t,hw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#00843d",d:"M0 0h513v114H0z"}),o.createElement("path",{d:"M0 228h513v114H0z"}),o.createElement("path",{fill:"#c8102e",d:"M0 0h171v342H0z"}))},fN=function(t){var n=t.title,r=H(t,gw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D32011",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#007A36",d:"M342 0h171v342H342z"}),o.createElement("path",{d:"M0 0h171v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M256.5 131.3c-17.5 0-31.8 14.3-31.8 31.8v47.7h63.6v-47.7c0-17.7-14.3-31.8-31.8-31.8z"}),o.createElement("path",{fill:"#FFF",d:"M256.5 93c-43.1 0-78 34.9-78 78s34.9 77.9 78 77.9 78-34.9 78-78-34.9-77.9-78-77.9zm0 142.4c-35.6 0-64.5-28.9-64.5-64.5s28.9-64.5 64.5-64.5 64.5 29 64.5 64.6c0 35.6-28.9 64.4-64.5 64.4z"}))},mN=function(t){var n=t.title,r=H(t,vw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#0072c6",d:"M88.8 136.5c-2.2 12.9-3.4 26.2-3.4 39.8 0 13.6 1.2 27 3.4 39.8L256 228.3l167.2-12.1c2.2-12.9 3.4-26.2 3.4-39.8s-1.2-27-3.4-39.8"}),o.createElement("path",{fill:"#FFF",d:"M423.2 219H88.8c15.8 69.8 84.7 122.3 167.2 122.3S407.4 288.8 423.2 219z"}),o.createElement("path",{fill:"#FFDA44",d:"M365.9 136.5H146.1l44.9-21.1-23.9-43.5 48.8 9.4L222 32l34 36.2L290 32l6.1 49.3 48.8-9.4-23.9 43.5z"}),o.createElement("g",{fill:"#ce1126"},o.createElement("path",{d:"M256.5 342 0 0v342z"}),o.createElement("path",{d:"M513 342V0L256 342z"})))},pN=function(t){var n=t.title,r=H(t,xw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M454.8 265.38c7.94-10.93 13.24-24.27 13.24-40.42V104.89a59.754 59.754 0 0 1-36.02 12.01c-19.64 0-37.07-9.43-48.03-24.01-10.95 14.58-28.39 24.01-48.03 24.01-13.52 0-25.99-4.47-36.02-12v120.06c0 16.16 5.3 29.5 13.24 40.42H454.8z"}),o.createElement("path",{fill:"#9cf",d:"M310.23 260.98C332.65 296.96 384 309 384 309s51.35-12.04 73.77-48.02H310.23z"}),o.createElement("g",{fill:"#f90"},o.createElement("path",{d:"M396.66 172.21c.32 1.42 8.72 10.17 17.56 20.15 1.39 1.57-8.74 12.63-6.91 12.59 4.75-.12 19.27-17.26 19.34 6.65.05 15.94-30 27.51-30 27.51h17.47l.65 14.96s4.97-13.34 7.59-16.57c8.1-9.97 20.18-30.07 34.59-27.1 14.41 2.97-13.66-13.92-13.66-13.92s-5.2-15.19-16.63-16.97c-10.06-1.57-14.29-2.51-26.64-7.3-1.68-.65-3.88-2.32-3.36 0z"}),o.createElement("path",{d:"M359.69 198.69c1.07-.99 4.46-12.63 8.69-25.28.67-1.99 15.31 1.27 14.35-.3-2.47-4.06-24.58-8.08-3.9-20.08 13.79-8 38.82 12.27 38.82 12.27l-8.72-15.14 12.64-8.03s-14.05 2.35-18.14 1.69c-12.68-2.04-36.13-2.48-40.75-16.45-4.62-13.97-5.25 18.79-5.25 18.79s-10.56 12.08-6.4 22.88c3.66 9.5 4.96 13.64 6.97 26.73.29 1.79-.06 4.53 1.69 2.92z"}),o.createElement("path",{d:"M395.67 219.87c-1.39-.43-13.16 2.49-26.22 5.18-2.06.42-6.59-13.88-7.47-12.26-2.27 4.17 5.36 25.31-15.41 13.45-13.84-7.91-8.89-39.73-8.89-39.73l-8.71 15.14-13.29-6.9s9.09 10.96 10.57 14.84c4.6 11.99 16 32.49 6.24 43.49-9.76 11.01 18.88-4.9 18.88-4.9s15.76 3.07 23-5.96c6.38-7.94 9.3-11.14 19.61-19.45 1.43-1.12 3.97-2.19 1.69-2.9z"})),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})))},hN=function(t){var n=t.title,r=H(t,bw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 60"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#ED2024",d:"M0 0h90v60H0z"}),o.createElement("path",{fill:"#212121",d:"M32.5 12.2v16l7.1 2.5-5 4.9 2.4 3 5.3-5.5 1.2 2.3-3 4.9 3.6 5.6-1.8 2.6 2.8 3.6 2.7-3.7-1.5-2.6 3-5.8-2.7-4.6 1.2-2.3 5.2 5.5 2.5-2.9-5.2-5.1 7.2-2.6V12.2l-5.2 1.9-.1 3.8-3.3.3v-2.6l1.7-2.3 5.6-2.2-2.3-.4 1.4-1.2.9.4-.8-1.4L54 9l-1-1.1L47.5 9l1.4 1.1-3.8 4.9-3.8-4.8 1.3-1.1-5-1.2L36.2 9l-1.5-.4-.8 1.4.9-.6 1.6 1.1-2.3.5 5.5 2 1.6 2.3v2.9l-3.3-.3v-3.6z"}),o.createElement("path",{d:"M26.2 25h6.4v2.5h-6.4zm0-4.1h6.4v2.7h-6.4zm0-4.2h6.4v2.6h-6.4zm0-4h6.4v2.5h-6.4zM57.4 25h6.4v2.5h-6.4zm0-4.1h6.4v2.7h-6.4zm0-4.2h6.4v2.6h-6.4zm0-4h6.4v2.5h-6.4zM53.4 36.1h6.4V38h-6.4zm-23.2 0h6.4V38h-6.4z",fill:"#212121"}))},gN=function(t){var n=t.title,r=H(t,yw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#FF9811",d:"M0 228h513v114H0z"}))},vN=function(t){var n=t.title,r=H(t,Ew);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{d:"M0 171h513v171H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 0h513v171H0z"}),o.createElement("g",{fill:"#FFDA44"},o.createElement("path",{d:"m332.7 135.6 17.5-8.6-7.4-19-18.7 6.2zm-45.6-56 5.5-18.8-19.1-7.2-8 18zm29.4 23.2 12.2-15.3-14.9-13.9-14.2 13.6zm19.4 68.9 19.5-.8v-21.3l-22.9.2zm-12.6 38.1 18.8 5.5 7.3-19-18-8zm-29 32.4 14.9 12.7 14.4-14.4-13.1-14.7zm-47-147.7 9.8 19.9 21.9 3.3-15.9 15.5 3.6 21.9-19.6-10.4-19.7 10.2 3.8-21.9-15.8-15.5 22-3.1z"}),o.createElement("path",{d:"m250.8 61.3-2.7 18.3c43.1 3.2 77 39.2 77 83.1 0 46-37.3 82.9-83.4 83.4-29.2.3-51.3-14.8-67-33.7l-13.9 12.3c15 19 40.8 39.9 80.9 39.9 56.3 0 101.9-45.6 101.9-101.9.1-53.2-40.7-96.9-92.8-101.4z"}),o.createElement("path",{fill:"#000",d:"m291.9 223.4-11.8 14s51.9 38.9 53.6 40.4c1.7 1.5 5.2 2 9.1-2.7 3.7-4.5 2.8-8.1.9-9.7-2-1.5-51.8-42-51.8-42z"}),o.createElement("path",{d:"M206.1 157.2c-7.7 10.3-7.5 23.1 2.8 30.9 0 0 135.2 101.5 136.9 103 1.7 1.5 5.2 2 9.1-2.7 3.7-4.5 2.8-8.1.9-9.7-1.9-1.5-149.7-121.5-149.7-121.5zm47.7 99.1 7.3 18.2 19.5-6-4.8-19.1zm-40.4-3.7-2 19.5 20.1 3.6 4.5-19.1zm-35.7-21.2L167.4 248l16.4 12.1 12.5-15.2z"})))},xN=function(t){var n=t.title,r=H(t,ww);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 744 496"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#3A7DCE",d:"M0 0h744v496H0V0z"}),o.createElement("path",{fill:"#fff",d:"m120 125 90 63 54-14 23-81 61-36 92 14 105 55 6 90 34 12v92l-65 115-78 24-72-17 18-30-8-32-10 9-162-25-49-85 20-46-49-62z"}))},bN=function(t){var n=t.title,r=H(t,Cw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),o.createElement("path",{fill:"#338AF3",d:"M0 0h512v114H0zm0 228h512v114H0z"}),o.createElement("circle",{fill:"#FFDA44",stroke:"#d6ab00",strokeWidth:5,cx:256.5,cy:171,r:40}))},yN=function(t){var n=t.title,r=H(t,$w);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#10338c",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M513 33 95.3 171 513 310.76V342L0 171 513 0z"}),o.createElement("path",{fill:"#FFF",d:"M513 287.18v24.58L81.72 171 513 30v24.16"}),o.createElement("path",{fill:"#A2001D",d:"m476.98 140.21-21.89 10.68-3.18-15.32 31.19-29.77s-9.42-40.65-13.75-44.98l-112.32 55.82-6.84 36.76-31.9 28.59-.4 34.2 34.29-22.76 67.23-2.66-1.51 38.11h22.23l11.9-44.64 31.55-24.61-6.6-19.42z"}),o.createElement("path",{fill:"#EFC100",stroke:"#231F20",strokeMiterlimit:10,d:"m317.89 238.41-22.24-11.11 22.24-11.11h144.46v22.22z"}))},EN=function(t){var n=t.title,r=H(t,Mw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 114h513v114H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0zm0 228h513v114H0z"}))},wN=function(t){var n=t.title,r=H(t,Sw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#00008b",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"m188 212.6 11 22.9 24.7-5.7-11 22.8 19.9 15.8-24.8 5.6.1 25.4-19.9-15.9-19.8 15.9.1-25.4-24.8-5.6 19.9-15.8-11.1-22.8 24.8 5.7zm197.9 28.5 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6v12.2l-9.4-7.6-9.5 7.6.1-12.2-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zm-48.6-116 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.9-2.7 9.5-7.5-5.3-10.9L332 136zm48.6-66.2 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.8-2.7 9.5-7.5-5.3-10.9 11.8 2.7zm42.5 49.7 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6V150l-9.4-7.6-9.5 7.6v-12.2l-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zM398 166.5l4.1 12.7h13.3l-10.8 7.8 4.2 12.7-10.8-7.9-10.8 7.9 4.1-12.7-10.7-7.8h13.3z",fill:"#FFF"}),o.createElement("path",{fill:"#00008b",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"red"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})))},CN=function(t){var n=t.title,r=H(t,Nw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 363 242"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#338AF3",d:"M0 0h363v242H0z"}),o.createElement("path",{fill:"#FFF",d:"M57 96.9 14.7 78.2 57 59.6l18.6-42.2 18.6 42.2 42.3 18.6-42.3 18.7-18.6 42.2z"}),o.createElement("path",{fill:"#f30028",d:"m75.6 40.6 11.5 26.1 26.1 11.5-26.1 11.5-11.5 26.1-11.5-26.1L38 78.2l26.1-11.5z"}),o.createElement("path",{d:"M0 152.2h363v15.7H0zm0 31.4h363v15.7H0z",fill:"#FFDA44"}))},$N=function(t){var n=t.title,r=H(t,Pw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFDA44",d:"M513 210.9H202.2V342h-79.8V210.9H0v-79.8h122.4V0h79.8v131.1H513v61.2z"}),o.createElement("path",{fill:"#D80027",d:"M513 149.7v42.6H183.7V342H141V192.3H0v-42.6h141V0h42.7v149.7z"}))},MN=function(t){var n=t.title,r=H(t,Rw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#ef3340",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#00b5e2",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#509e2f",d:"M0 228h513v114H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M265.6 212.6c-23 0-41.6-18.6-41.6-41.6s18.6-41.6 41.6-41.6c7.2 0 13.9 1.8 19.8 5-9.2-9-21.9-14.6-35.8-14.6-28.3 0-51.2 22.9-51.2 51.2s22.9 51.2 51.2 51.2c13.9 0 26.6-5.6 35.8-14.6-5.9 3.2-12.6 5-19.8 5z"}),o.createElement("path",{d:"m297.6 142.2 5.5 15.5 14.9-7.1-7.1 14.9 15.5 5.5-15.5 5.5 7.1 14.9-14.9-7.1-5.5 15.5-5.5-15.5-14.9 7.1 7.1-14.9-15.5-5.5 15.5-5.5-7.1-14.9 14.9 7.1z"})))},SN=function(t){var n=t.title,r=H(t,Iw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#10338C",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#F6C500",d:"M99.9 0h342v342"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M19.9 21.1 40.3 6.2 60.9 21 54 0H26.7z"}),o.createElement("path",{d:"M92.3 25.5 84.4 1.3l-7.8 24.2H51.3l20.5 14.8-7.8 24 20.4-14.8L105 64.3l-7.9-24 20.5-14.9z"}),o.createElement("path",{d:"m136.3 69.2-7.8-24-7.8 24H95.5l20.4 14.9-7.8 24 20.4-14.8 20.6 14.8-7.8-24 20.4-14.9z"}),o.createElement("path",{d:"m179.4 112.3-7.8-24.1-7.8 24.1h-25.3l20.5 14.9-7.8 24 20.4-14.8 20.6 14.8-7.9-24 20.5-15z"}),o.createElement("path",{d:"m222.5 155.3-7.8-24-7.8 24h-25.4l20.6 15-7.8 24 20.4-14.9 20.4 14.9-7.8-24 20.6-15z"}),o.createElement("path",{d:"m265.6 198.4-7.8-24-7.8 24h-25.4l20.6 14.9-7.8 24.1 20.4-14.9 20.4 14.9-7.8-24.2 20.5-14.8z"}),o.createElement("path",{d:"m308.7 241.5-7.9-24-7.8 24h-25.3l20.5 14.8-7.9 24.2 20.6-14.9 20.4 14.8-7.8-24.1 20.5-14.8z"}),o.createElement("path",{d:"m351.7 284.6-7.8-24.2-7.8 24.2h-25.3l20.4 14.8-7.8 24.1 20.5-14.9 20.5 14.9-7.8-24.1 20.4-14.8z"}),o.createElement("path",{d:"m387 303.5-7.9 24.1-25.3.1 19.8 14.3h26.6l19.9-14.4h-25.3z"})))},NN=function(t){var n=t.title,r=H(t,Fw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#ffc726",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h171v342H0zm342 0h171v342H342z",fill:"#00267f"}),o.createElement("path",{d:"m325.74 101.02-31.97 12.4c-.68 1.35-5.79 7.54-8.18 53.06h-17.05v-60.42L256 78.68l-12.54 27v60.8H226.4c-2.39-45.53-7.8-52.48-8.47-53.84l-31.68-11.63c.15.31 15.4 31.34 15.4 78.01v12.54h41.81v71.07h25.08v-71.07h41.81v-12.54c0-24.13 4.17-44.02 7.68-56.46 3.82-13.57 7.7-21.49 7.74-21.57l-.03.03z"}))},PN=function(t){var n=t.title,r=H(t,Tw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#2d6e41",d:"M0 85.331h513v342H0z"}),o.createElement("circle",{fill:"#F40B32",cx:218.902,cy:256.5,r:115}))},RN=function(t){var n=t.title,r=H(t,Ow);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#fdda25",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h171v342H0z"}),o.createElement("path",{fill:"#ef3340",d:"M342 0h171v342H342z"}))},IN=function(t){var n=t.title,r=H(t,zw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#3d944f",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#ef2b2d",d:"M0 0h513v171H0z"}),o.createElement("path",{fill:"#FFDA44",d:"m256 102.6 16.9 52h54.7l-44.2 32.2 16.8 52-44.2-32.1-44.2 32.1 16.8-52-44.2-32.2h54.7z"}))},FN=function(t){var n=t.title,r=H(t,Aw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#00966e",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#d62612",d:"M0 228h513v114H0z"}))},TN=function(t){var n=t.title,r=H(t,jw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"m222.8 34.3-85.2 34.2 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.8H0V0h137.6z"}))},ON=function(t){var n=t.title,r=H(t,Dw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M215.9 170.7 0 314.6V26.8zM513 26.8v287.8L297.1 170.7z",fill:"#47a644"}),o.createElement("path",{fill:"#0052B4",d:"M513 26.8 296.1 170.7 513 314.6V342h-41.1L256 197.4 40.1 342H0v-27.4l215.9-143.9L0 26.8V0h40.1L256 143.9 471.9 0H513z"}),o.createElement("path",{fill:"#FFF",d:"M513 26.8 297.1 170.7 513 314.6V342h-40L256 197.4 39 342H0v-27.4l215.9-143.9L0 26.8V0h40.1L256 143.9 471.9 0H513z"}),o.createElement("circle",{fill:"#FFF",cx:251.6,cy:170.7,r:100.2}),o.createElement("path",{d:"m251.4 103.6 7.4 12.9h14.8l-7.4 12.8 7.4 12.8h-14.8l-7.4 12.9-7.4-12.9h-14.8l7.4-12.8-7.4-12.8H244zm38.8 66.7 7.4 12.9h14.8L305 196l7.4 12.8h-14.8l-7.4 12.9-7.4-12.9h-14.9l7.4-12.8-7.4-12.8h14.9zm-77.2 0 7.4 12.9h14.9l-7.4 12.8 7.4 12.8h-14.9l-7.4 12.9-7.4-12.9h-14.8l7.4-12.8-7.4-12.8h14.8z",fill:"#D80027",stroke:"#47a644",strokeWidth:3}))},zN=function(t){var n=t.title,r=H(t,kw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#008751",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#fcd116",d:"M197 0h316v171H197z"}),o.createElement("path",{fill:"#e8112d",d:"M197 171h316v171H197z"}))},AN=function(t){var n=t.title,r=H(t,Hw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M157.3 199.8s-9 43.9-19.3 40.4c-10.6-3.5-17.5-18.8-17.5-18.8L106 242.6s38.2 8.5 41 5.5c1.2-1.1 8.2-15.1 10.3-26.1v-22.2zm-56.1 60.5s-2.5 20.2-1.1 22.7c1.2 2.3 39.5 11.3 39.5 11.3s-25 16.5-29.7 20.5l-18.1-29.9-.7-24.6h10.1zm11.3-165.7s39.7 41.6 40.4 45.5c.7 3.7-4.2 3.2-4.2 3.2s-44.8-37.5-49.9-41.1c-5.4-3.5 13.7-7.6 13.7-7.6zm246.7 106.7s9 42.4 19.2 38.9c10.6-3.5 17.5-18.8 17.5-18.8l14.5 21.2s-37 8.5-39.8 5.5c-1.2-1.1-9.3-13.8-11.5-24.7l.1-22.1zm56 59s2.5 20.2 1.1 22.7c-1.2 2.3-39.5 11.3-39.5 11.3s25 16.5 29.7 20.5l18.1-29.9.7-24.6h-10.1zM403.9 94.6s-39.6 41.6-40.4 45.5c-.7 3.7 4.2 3.2 4.2 3.2s44.8-37.5 49.9-41.1c5.2-3.5-13.7-7.6-13.7-7.6z",fill:"#E6BC00"}),o.createElement("path",{d:"M99.4 104.7s17-.7 16.6-11.5c-.4-10.6-11.2-14.9-19.1-12.4-8 2.3-23 13.4-13.6 35.1 9.4 21.4 23.4 29.4 26.2 47.8 0 0-5.5 9.9-19.1.4-16.9-11.8-6.2-38.2-10.4-45-4.2-7.1-41-38.9-41-38.9s-30.2 39.4-18 74.9c17 49.2 51.7 32 64.6 36.8 0 0-42.1 62-49.6 67.1 0 0 24.1 8.3 47.8-18.8 0 0 5.8 9.7 7.1 20.2h10.3c4.8-26.2 51.5-64.3 49.9-82.3-1.8-21.3-49.2-49.5-51.7-73.4zM365.1 178c-1.6 18.1 45.1 56.1 49.9 82.3h10.3c1.2-10.4 7.1-20.2 7.1-20.2 23.7 27.1 47.8 18.8 47.8 18.8-7.4-5.1-49.6-67.1-49.6-67.1 12.9-4.8 47.7 12.4 64.6-36.8 12.2-35.6-18-74.9-18-74.9s-36.7 31.8-41 38.9c-4.2 6.7 6.5 33.2-10.4 45-13.7 9.5-19.1-.4-19.1-.4 2.8-18.4 16.8-26.4 26.2-47.8 9.4-21.6-5.7-32.8-13.6-35.1-8-2.5-18.8 1.8-19.1 12.4-.4 10.8 16.6 11.5 16.6 11.5-2.5 24-49.9 52.2-51.7 73.4z",fill:"#ADADAD"}),o.createElement("path",{fill:"#125ECC",d:"M157.3 87.1h201.8v145.5c0 16.1-9.7 21.4-21.9 31.8l-45.9 39.4c-18.2 15.6-47.9 15.6-66.1 0l-46-39.4c-12.1-10.4-21.9-15.7-21.9-31.8V87.1z"}),o.createElement("path",{fill:"#FFE600",d:"M200.6 147.7c-8 0-14.4-6.4-14.4-14.4s6.4-14.4 14.4-14.4 14.4 6.4 14.4 14.4-6.5 14.4-14.4 14.4zm57.6-3c-8 0-14.4-6.4-14.4-14.4s6.4-14.4 14.4-14.4 14.4 6.4 14.4 14.4-6.4 14.4-14.4 14.4zm57.7 3c-8 0-14.4-6.4-14.4-14.4s6.5-14.4 14.4-14.4 14.4 6.4 14.4 14.4-6.5 14.4-14.4 14.4zM215 274.4c-8 0-14.4-6.5-14.4-14.4 0-8 6.4-14.4 14.4-14.4s14.4 6.4 14.4 14.4-6.5 14.4-14.4 14.4zm43.2 14.5c-8 0-14.4-6.5-14.4-14.4s6.4-14.4 14.4-14.4 14.4 6.5 14.4 14.4-6.4 14.4-14.4 14.4zm43.2-14.5c-8 0-14.4-6.5-14.4-14.4 0-8 6.5-14.4 14.4-14.4s14.4 6.4 14.4 14.4c.1 8-6.4 14.4-14.4 14.4z"}),o.createElement("path",{fill:"#D60537",d:"M157.3 175.4h201.8V233H157.3v-57.6z"}),o.createElement("path",{fill:"#EACE00",d:"M142.9 43.8s57.6-14.4 115.3-14.4 115.3 14.4 115.3 14.4l-14.4 57.7s-50.5-14.4-100.9-14.4-100.9 14.4-100.9 14.4l-14.4-57.7z"}),o.createElement("path",{fill:"#7A6920",d:"M258.2 72.7c-8 0-14.4-6.4-14.4-14.4s6.4-14.4 14.4-14.4 14.4 6.5 14.4 14.4-6.4 14.4-14.4 14.4zm57.7 5c-8 0-14.4-6.4-14.4-14.4s6.5-14.4 14.4-14.4 14.4 6.5 14.4 14.4-6.5 14.4-14.4 14.4zm-115.3 0c-8 0-14.4-6.4-14.4-14.4s6.4-14.4 14.4-14.4S215 55.3 215 63.2s-6.5 14.5-14.4 14.5z"}),o.createElement("circle",{fill:"#FFF",cx:258.2,cy:204.2,r:16.9}))},jN=function(t){var n=t.title,r=H(t,Lw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#c8102e",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#fff",stroke:"#000",strokeWidth:2,d:"M303.9 94.94v99.69c0 59.81 79.75 99.69 79.75 99.69s79.75-39.88 79.75-99.69V94.94H303.9z"}),o.createElement("path",{fill:"#2F8F22",d:"M436.37 254.44H330.93c23.13 25.08 52.72 39.88 52.72 39.88s29.59-14.8 52.72-39.88z"}),o.createElement("circle",{fill:"#65B5D2",cx:383.65,cy:214.56,r:39.88}),o.createElement("circle",{fill:"#c8102e",cx:343.77,cy:194.63,r:19.94}),o.createElement("circle",{fill:"#c8102e",cx:423.52,cy:194.63,r:19.94}),o.createElement("circle",{fill:"#c8102e",cx:383.65,cy:154.75,r:19.94}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#c8102e"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})))},DN=function(t){var n=t.title,r=H(t,Vw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"m0 193.74 513 127.19V214.26L0 97.08z"}),o.createElement("path",{fill:"#FFF",d:"M513 234.26v-86.67L0 20.41v86.67"}),o.createElement("g",{fill:"#D80027",stroke:"#231F20",strokeWidth:3,strokeMiterlimit:10},o.createElement("path",{d:"M306.4 134.01a50.28 50.28 0 0 1 6.07 24.02c0 21.55-13.51 39.94-32.52 47.19v-59.51c5.7-1.19 10-6.37 10-12.59 6.9 0 12.5-5.75 12.5-12.85h-.42c6.9 0 12.91-5.75 12.91-12.85h-34.99V76.58l-14.99-27.71-15 27.71v30.84h-34.99c0 7.1 6.01 12.85 12.91 12.85h-.42c0 7.1 5.6 12.85 12.5 12.85 0 6.22 4.29 11.4 9.99 12.59v61.37c-22.09-5.39-38.48-25.3-38.48-49.05 0-8.7 2.2-16.88 6.07-24.02-10.96 11.21-17.72 26.53-17.72 43.44 0 34.32 27.82 62.15 62.15 62.15s62.15-27.83 62.15-62.15c0-16.91-6.77-32.24-17.72-43.44z"}),o.createElement("path",{d:"M198.46 226.81s20.69 27.71 66.5 27.71 66.5-27.71 66.5-27.71l13.47 28.37s-21.03 27.71-79.97 27.71-79.97-27.71-79.97-27.71l13.47-28.37zm-69.22-93.63h20.88l24.93 27.26v73.45h-26.28v-68.37zm270.76 0h-20.88l-24.93 27.26v73.45h26.27v-68.37z"})))},kN=function(t){var n=t.title,r=H(t,_w);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#d52b1e",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#f9e300",d:"M0 114h513v114H0z"}),o.createElement("path",{fill:"#007934",d:"M0 228h513v114H0z"}))},HN=function(t){var n=t.title,r=H(t,Bw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#012a87",d:"M0 342h513V0z"}),o.createElement("path",{fill:"#f9d90f",d:"M250.4 0H0v166.9z"}),o.createElement("path",{fill:"#dc171d",d:"m140.4 118.3 12.2 21.2h24.5l-12.3 21.1 12.3 21.2h-24.5L140.4 203l-12.2-21.2h-24.5l12.3-21.2-12.3-21.1h24.5z"}),o.createElement("circle",{fill:"none",stroke:"#000",strokeWidth:9,strokeMiterlimit:10,cx:140.4,cy:160.6,r:57.7}))},LN=function(t){var n=t.title,r=H(t,Gw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#DC171D",d:"M512 342H0V.7h512V342z"}),o.createElement("path",{fill:"#012A87",d:"M512 342H0V171.3h512V342z"}),o.createElement("path",{fill:"#FFF",d:"M256 342 0 171.3 256 .7l256 170.7L256 342z"}),o.createElement("path",{fill:"#F9D90F",d:"m199.2 249.5 21.7-66.8-56.8-41.2h70.5L256 74.7l21.7 66.8h70.2l-56.8 41.2 21.7 66.8-56.8-41.3z"}))},VN=function(t){var n=t.title,r=H(t,Uw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},r),n&&o.createElement("title",null,n),o.createElement("path",{d:"M0 0h900v600H0z",fill:"#dc171d"}),o.createElement("path",{d:"M450 168.787 215.691 300 450 431.213 684.309 300z",fill:"#fff"}),o.createElement("path",{d:"M281.477 336.852V376h69.961l290.727-52.4V376h-93.668z",fill:"#dc171f"}),o.createElement("path",{d:"M188 288H20V20h418v128zm524 0h168V20H462v128zm-524 24H20v268h418V452zm524 0h168v268H462V452z",fill:"#012a87"}),o.createElement("path",{d:"m450 199.5 8.068 24.827h26.105l-21.12 15.346 8.067 24.827L450 249.157 428.88 264.5l8.066-24.827-21.119-15.345 26.105-.001z",fill:"#f9d90f"}),o.createElement("path",{d:"M281.477 336.852c2.712-8.848 8.614-12.77 16.594-10.995 4.94-18.73 27.739-22.07 36.786-12.857l22.273 22.37c4.837 2.251 12.207 3.095 17.326 3.095 6.33.1 5.621 3.005 10.91 3.106 14.096.27 51.143.458 57.857 0 2.75-.187 64.134-67.857 64.134-67.857 5.12-6.31 18.453-8.333 25.714-3.214 6.786 6.429 13.929 7.143 18.929 2.857 4.405-6.547 14.392-7.309 20.714-3.571l69.45 53.815L548.497 376H351.438l-69.96-39.148z",fill:"#008830"}))},_N=function(t){var n=t.title,r=H(t,Ww);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#012a87",d:"M0 342h513V0z"}),o.createElement("path",{fill:"#f9d90f",d:"M250.4 0H0v166.9z"}),o.createElement("path",{fill:"#dc171d",d:"m140.4 118.3 12.2 21.2h24.5l-12.3 21.1 12.3 21.2h-24.5L140.4 203l-12.2-21.2h-24.5l12.3-21.2-12.3-21.1h24.5z"}),o.createElement("circle",{fill:"none",stroke:"#000",strokeWidth:9,strokeMiterlimit:10,cx:140.4,cy:160.6,r:57.7}))},BN=function(t){var n=t.title,r=H(t,Kw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#009b3a",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#fedf00",d:"m256.5 19.3 204.9 151.4L256.5 322 50.6 170.7z"}),o.createElement("circle",{fill:"#FFF",cx:256.5,cy:171,r:80.4}),o.createElement("path",{fill:"#002776",d:"M215.9 165.7c-13.9 0-27.4 2.1-40.1 6 .6 43.9 36.3 79.3 80.3 79.3 27.2 0 51.3-13.6 65.8-34.3-24.9-31-63.2-51-106-51zm119 20.3c.9-5 1.5-10.1 1.5-15.4 0-44.4-36-80.4-80.4-80.4-33.1 0-61.5 20.1-73.9 48.6 10.9-2.2 22.1-3.4 33.6-3.4 46.8.1 89 19.5 119.2 50.6z"}))},GN=function(t){var n=t.title,r=H(t,qw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#ffc72c",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v114H0zm0 228h513v114H0z",fill:"#00778b"}),o.createElement("path",{d:"M256 171 0 342V0z"}))},UN=function(t){var n=t.title,r=H(t,Yw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FF7415",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFDA44",d:"M513 0H0v342"}),o.createElement("path",{fill:"none",stroke:"#FFF",strokeWidth:42,strokeMiterlimit:10,d:"M128.7 255.5s35 54 67.3 32.4c56.9-37.9-68.9-108.6-2.9-152.6 58.3-38.8 76.6 103.5 137.6 62.8 59-39.3-64.7-111.4-9.2-148.4 33.4-22.2 67.1 32.6 67.1 32.6"}))},WN=function(t){var n=t.title,r=H(t,Xw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#EF2B2D",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",className:"prefix__st1",d:"M139.9 0h93.3v342h-93.3z"}),o.createElement("path",{fill:"#FFF",className:"prefix__st1",d:"M0 119h513v104.1H0z"}),o.createElement("path",{fill:"#002868",d:"M163.2 0h46.6v342h-46.6z"}),o.createElement("path",{fill:"#002868",d:"M0 145h513v52H0z"}))},KN=function(t){var n=t.title,r=H(t,Zw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 238h513v104H0zM0 0h513v104H0z",fill:"#6da9d2"}),o.createElement("path",{d:"M0 125.5h513v89.656H0z"}))},qN=function(t){var n=t.title,r=H(t,Jw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#007C30",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#CE1720",d:"M0 230h513V0H0"}),o.createElement("path",{fill:"#FFF",d:"M100 230V0H0v342h513-413z"}),o.createElement("path",{d:"M28 159.6 8.6 128.2 28 97.4l19.3 30.8zm44.6 0-19.3-31.4 19.3-30.8L92 128.2zM28 241.2 8.6 209.8 28 179l19.3 30.8zm44.6 0-19.3-31.4L72.6 179 92 209.8z",fill:"#CE1720"}),o.createElement("path",{d:"m28 73.8-16.1-26L28 22.2l16 25.6zm44.6 0-16-26 16-25.6 16.1 25.6zM28 318l-16.1-26.1L28 266.3l16 25.6zm44.6 0-16-26.1 16-25.6 16.1 25.6z",fill:"none",stroke:"#CE1720",strokeWidth:7}))},YN=function(t){var n=t.title,r=H(t,Qw);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#003e87",d:"M0 0h513v342H0z"}),o.createElement("circle",{fill:"#FFF",cx:260.9,cy:170.9,r:118.9}),o.createElement("circle",{fill:"none",stroke:"#6DA544",strokeWidth:18,strokeMiterlimit:10,cx:261.9,cy:173.1,r:94.5}),o.createElement("g",{stroke:"#000"},o.createElement("path",{fill:"#003e87",d:"m261.9 151.5-50.6 23.4v20c0 11.8 6.1 22.8 16.2 28.9L262 239l34.5-15.2c10-6.2 16.2-17.1 16.2-28.9v-20l-50.8-23.4z"}),o.createElement("path",{fill:"#FFDA44",d:"M211.3 128.1h101.3v46.7H211.3z"})),o.createElement("path",{d:"M0 0h513v35H0zm0 306h513v35H0z",fill:"#ce1127"}))},XN=function(t){var n=t.title,r=H(t,eC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h142v342H0zm371 0h142v342H371zm-64.5 206 50.4-25.2-25.2-12.6V143l-50.4 25.2 25.2-50.4h-25.2L256.1 80l-25.2 37.8h-25.2l25.2 50.4-50.4-25.2v25.2l-25.2 12.6 50.4 25.2-12.6 25.2h50.4V269h25.2v-37.8h50.4z",fill:"red"}))},ZN=function(t){var n=t.title,r=H(t,tC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"green",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"m422.7 252.4 6.2 12.8 13.8-3.2-6.2 12.8 11.2 8.8-13.9 3.2V301l-11.1-8.9-11.1 8.9v-14.2l-13.8-3.2 11.1-8.8-6.2-12.8 13.9 3.2zm-46.6-136.3 6.2 12.9 13.8-3.2-6.2 12.8 11.2 8.8-13.9 3.1v14.3l-11.1-8.9-11.1 8.9.1-14.3-13.9-3.1 11.1-8.8-6.2-12.8L370 129zm37-77.8 6.2 12.8 13.8-3.2-6.2 12.8 11.2 8.9-13.9 3.1v14.2L413.1 78 402 86.9l.1-14.2-13.9-3.1 11.1-8.9-6.2-12.8 13.9 3.2zm51.8 58.4 6.2 12.8 13.9-3.2-6.3 12.8 11.2 8.9-13.9 3.1.1 14.2-11.2-8.9-11.1 8.9.1-14.2L440 128l11.2-8.9-6.3-12.8 13.9 3.2zm-28 68.1 4.9 14.8h15.6l-12.6 9.2 4.8 14.9-12.7-9.2-12.6 9.2 4.8-14.9-12.6-9.2h15.6zM306.8 254.7c-49.2 0-89.1-39.9-89.1-89.1s39.9-89.1 89.1-89.1c15.3 0 29.8 3.9 42.4 10.7C329.4 67.9 302.3 56 272.5 56c-60.5 0-109.6 49.1-109.6 109.6S212 275.3 272.5 275.3c29.8 0 56.9-11.9 76.6-31.3-12.6 6.8-27 10.7-42.3 10.7zM140.4 59.5C129.7 41 109.7 28.6 86.8 28.6S44 41 33.3 59.5h107.1zm.2.4-53.8 53.8-53.7-53.8C28 68.9 25 79.3 25 90.5c0 34.2 27.7 61.9 61.9 61.9s61.9-27.7 61.9-61.9c-.1-11.2-3.1-21.6-8.2-30.6z",fill:"#FFDA44"}),o.createElement("path",{fill:"#A2001D",d:"M71.4 98.2v52.2c4.9 1.3 10.1 1.9 15.5 1.9s10.5-.7 15.5-1.9V98.2h-31z"}))},JN=function(t){var n=t.title,r=H(t,nC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#338AF3",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFDA44",d:"M513 66.9V0H411.7L0 274.4V342h100.3z"}),o.createElement("path",{fill:"#D80027",d:"M513 0v40.1L60.2 342H0v-40.8L451.8 0z"}),o.createElement("path",{fill:"#FFDA44",d:"m93.6 31.2 16.3 50.4H163l-42.9 31.2 16.4 50.5-42.9-31.2-43 31.2L67 112.8 24.1 81.6h53.1z"}))},QN=function(t){var n=t.title,r=H(t,rC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#d21034",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 171h211.5v85.3H0zm300.5 0H512v85.3H300.5z",fill:"#3a9927"}),o.createElement("path",{fill:"#003082",d:"M0 0v85.3h211.5V0h89v85.3H513V0z"}),o.createElement("path",{d:"M300.5 85.3H512v85.3H300.5zM0 85.3h211.5v85.3H0z",fill:"#FFF"}),o.createElement("path",{d:"M300.5 342h-89v-86H0v86h513v-86H300.5zM105.7 8.6l8.6 26.2h27.5L119.5 51l8.6 26.2L105.7 61 83.4 77.2 91.9 51 69.6 34.8h27.6z",fill:"#ffce00"}))},eP=function(t){var n=t.title,r=H(t,oC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#009739",d:"M0 0h900v600H0z"}),o.createElement("path",{d:"M0 600 600 0h300v600z",fill:"#ffd100"}),o.createElement("path",{d:"M900 0v600H300z",fill:"#dc241f"}))},tP=function(t){var n=t.title,r=H(t,iC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 768 512"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"red",d:"M0 0h768v512H0V0z"}),o.createElement("path",{fill:"#FFF",d:"M336 96h96v112h112v96H432v112h-96V304H224v-96h112V96z"}))},nP=function(t){var n=t.title,r=H(t,aC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#009e60",d:"M342 0h171v342H342z"}),o.createElement("path",{fill:"#f77f00",d:"M0 0h171v342H0z"}))},rP=function(t){var n=t.title,r=H(t,lC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"m384 71.4 5.3 16.2h17.1l-13.9 10.1 5.3 16.2-13.8-10-13.8 10 5.3-16.2-13.9-10.1h17.1zm-70.2 29.1 15.2 7.7 12.1-12.1-2.7 16.9 15.3 7.8-16.9 2.6-2.7 16.9-7.8-15.2-16.8 2.7 12.1-12.1zm-29.1 70.2 16.3-5.3v-17.1l10 13.8 16.3-5.3-10.1 13.9 10.1 13.8-16.3-5.3-10 13.8v-17.1zm29.1 70.2 7.7-15.3-12-12 16.8 2.6 7.8-15.2 2.7 16.9 16.9 2.7-15.3 7.7 2.7 16.9-12.1-12.1zM384 270l-5.3-16.3h-17.1l13.9-10-5.3-16.3 13.8 10 13.8-10-5.3 16.3 13.9 10h-17.1zm70.2-29.1-15.2-7.8-12.1 12.1 2.7-16.9-15.3-7.7 16.9-2.7 2.7-16.9 7.8 15.2 16.8-2.6-12.1 12zm29.1-70.2-16.3 5.2V193l-10-13.8-16.3 5.3 10.1-13.8-10.1-13.9 16.3 5.3 10-13.8v17.1zm-29.1-70.2-7.7 15.2 12 12.1-16.8-2.7-7.8 15.2-2.7-16.9-16.9-2.6 15.3-7.8-2.7-16.9 12.1 12.1z",fill:"#FFF"}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})))},oP=function(t){var n=t.title,r=H(t,sC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M196 0h317v171H196z"}),o.createElement("path",{fill:"#0037A1",d:"M0 0h196v171H0z"}),o.createElement("path",{fill:"#FFF",d:"M98 24.5 113.1 71H162l-39.6 28.7 15.2 46.5L98 117.5l-39.6 28.7 15.2-46.5L34 71h48.9z"}))},iP=function(t){var n=t.title,r=H(t,cC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#ce1126",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#007a5e",d:"M0 0h171v342H0z"}),o.createElement("path",{d:"M342 0h171v342H342zm-86 102.2 17.2 53H329L283.9 188l17.2 53-45.1-32.7-45.1 32.7 17.2-53-45.1-32.8h55.8z",fill:"#fcd116"}))},aP=function(t){var n=t.title,r=H(t,uC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"m226.8 239.2-9.7-15.6-17.9 4.4 11.9-14.1-9.7-15.6 17.1 6.9 11.8-14.1-1.3 18.4 17.1 6.9-17.9 4.4zM290.6 82l-10.1 15.4 11.6 14.3-17.7-4.8-10.1 15.5-1-18.4-17.7-4.8 17.2-6.6-1-18.4 11.6 14.3zm-54.4-56.6-2 18.3 16.8 7.6-18 3.8-2 18.3-9.2-16-17.9 3.8 12.3-13.7-9.2-15.9 16.8 7.5zm56.6 136.4-14.9 10.9 5.8 17.5-14.9-10.8-14.9 11 5.6-17.6-14.9-10.7 18.4-.1 5.6-17.6 5.8 17.5zM115 46.3l17.3 53.5h56.2l-45.4 32.9 17.3 53.5-45.4-33-45.5 33 17.4-53.5-45.5-32.9h56.3z",fill:"#FFDA44"}))},lP=function(t){var n=t.title,r=H(t,dC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 256.5h513V342H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 171h513v85.5H0z"}))},sP=function(t){var n=t.title,r=H(t,fC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 114h513v114H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 285h513v57H0zM0 0h513v57H0z"}))},cP=function(t){var n=t.title,r=H(t,mC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FF9811",d:"M0-40.8v422.9-211.4z"}),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v68.3H0zm0 136.5h513v68.3H0zm0 136.6h513v68.3H0z",fill:"#0052B4"}),o.createElement("path",{fill:"#D80027",d:"M256 170.7 0 342V0z"}),o.createElement("path",{fill:"#FFF",d:"m86.5 111.4 12.7 39.2h41.3l-33.4 24.2 12.8 39.3-33.4-24.2-33.4 24.2 12.8-39.3-33.4-24.2h41.2z"}))},uP=function(t){var n=t.title,r=H(t,pC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#003893",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#cf2027",d:"M0 182.2h513v41.4H0z"}),o.createElement("path",{fill:"#FFF",d:"M0 140.8h513v41.4H0zm0 82.8h513V265H0z"}),o.createElement("path",{d:"m150.4 70 6.9 21.1h22.2l-18 13.1 6.9 21.1-18-13.1-17.9 13.1 6.8-21.1-17.9-13.1h22.2zm0 209.7 6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-17.9-13h22.2zm-97.6-70.9 6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-17.9-13H46zM90.1 91l6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-18-13h22.3zm-66.3 71H46l6.8-21.1 6.9 21.1h22.2l-18 13.1 6.9 21.1-18-13-17.9 13 6.8-21.1zm48.4 148.9 6.8-21.1-18-13h22.3l6.8-21.2 6.9 21.2h22.2l-18 13 6.9 21.1-18-13zM248 208.8l-6.9 21.1h-22.2l18 13-6.9 21.2 18-13.1 18 13.1-6.9-21.2 18-13h-22.2zM210.7 91l-6.8 21.1h-22.2l17.9 13-6.8 21.2 17.9-13.1 18 13.1-6.9-21.2 18-13h-22.2zm66.4 71h-22.2l-6.9-21.1-6.9 21.1h-22.2l18 13.1-6.9 21.1 18-13 18 13-6.9-21.1zm-48.4 148.9-6.9-21.1 18-13h-22.2l-6.9-21.2-6.8 21.2h-22.2l17.9 13-6.8 21.1 17.9-13z",fill:"#f7d116",stroke:"#000"}))},dP=function(t){var n=t.title,r=H(t,hC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#002b7f",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#f9e814",d:"M0 233.5h513v51H0z"}),o.createElement("path",{d:"m168.7 86.5 12.9 39.8h41.8l-33.8 24.5 12.9 39.7-33.8-24.5-33.8 24.5 12.9-39.7-33.8-24.5h41.8zm-83.3-54 7.8 23.9h25L97.9 71.1l7.8 23.8-20.3-14.7-20.3 14.7 7.8-23.8-20.3-14.7h25.1z",fill:"#FFF"}))},fP=function(t){var n=t.title,r=H(t,gC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#0021ad",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#1c8a42",d:"M0 0h513v342"}),o.createElement("path",{d:"m77.6 272 5.7 11.9 12.8-3-5.7 11.9 10.3 8.1-12.8 2.9V317l-10.3-8.3-10.2 8.3v-13.2l-12.8-2.9 10.3-8.1-5.8-11.9 12.9 3zm-37.1-98.9 5.7 11.9 12.8-3-5.7 11.8 10.3 8.2-12.9 2.9.1 13.2-10.3-8.3-10.3 8.3.1-13.2-12.9-2.9 10.4-8.2L22 182l12.8 3zm37.1-80.9 5.7 11.8 12.8-2.9-5.7 11.8 10.3 8.2-12.8 2.9v13.1l-10.3-8.2-10.2 8.2V124l-12.8-2.9 10.3-8.2-5.8-11.8L72 104zm46.1 62.9 5.7 11.9 12.8-3-5.7 11.9 10.3 8.1-12.8 2.9v13.2l-10.3-8.2-10.2 8.2v-13.2l-12.8-2.9 10.3-8.1-5.7-11.9 12.8 3zm-32.9 54 4.4 13.7h14.5L98 231.3l4.5 13.7-11.7-8.4-11.7 8.4 4.5-13.7-11.7-8.5h14.4z",fill:"#FFF"}),o.createElement("circle",{fill:"#ffc639",cx:267.1,cy:170.7,r:74.5}),o.createElement("path",{fill:"#1c8a42",d:"M267.1 220.3h24.8s10.8-19 0-37.2l24.8-24.8-12.4-24.8h-12.4s-6.2 18.6-31 18.6-31-18.6-31-18.6h-12.4l12.4 24.8-12.4 24.8 12.4 12.4s12.4-24.8 37.2-12.4c0 0 10.5 15.5 0 37.2z"}),o.createElement("path",{fill:"#ffc639",d:"M464.4 92.2c.6-2.9-.2-17.6-.2-20.7 0-21.3-13.9-39.4-33.2-45.7 5.9 12 9.2 25.4 9.2 39.7 0 4.8-.4 9.5-1.1 14.1-2.9-4.7-6.6-8.9-11.2-12.6-17.1-13.6-40.6-14-57.9-2.5 13.4 2.9 26.3 8.9 37.7 18 9 7.1 16.2 16.8 21.7 26.1 0 0-17.8 10.9-31 15.1s-42.3 7.9-42.3 7.9c72 12 132-36 132-36-6.5-13.4-15.8-4-23.7-3.4z"}))},mP=function(t){var n=t.title,r=H(t,vC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#DB7D00",d:"M141.7 154.7s.2 67.1 74.7 65.3l4.5 13.9h8.9s-7.4-41.1 60.1-41.5c0 0 0-27.6 27.6-27.6H359s-66-51.8 58.9-118l1.8-13.1s-129.9 71-198.9 57.2c0 0 10.7 42.5-10.8 42.5-10.8 0-9.7-8.1-32.3-8.1-18.7 0-17.3 19.7-26.3 19.5-8.9-.2-18.8-12.3-19.6-10.2-.7 2.1 9.9 20.1 9.9 20.1z"}),o.createElement("g",{fill:"#006651"},o.createElement("path",{d:"M237.2 308.1c6.9-5 13-6.6 22.4-8.3s19.4-4.4 24.6-5.8-17.7 6.6-23.5 8.3c-5.8 1.6-23.5 5.8-23.5 5.8zm37.9-14.7c-1.9-11.9 2.8-24.3 13.5-29.3 2.5 8.6-5.2 23.2-13.5 29.3zm18.2-6.2c-5.8-9.8 4-22.6 11.1-28.8 3.3 6-2.5 23.7-11.1 28.8zm16.9-7.6c-6.2-8.4 1.1-23.2 8.8-29 3.1 8.2.1 23.2-8.8 29zm16.9-10.6c-5.6-8-1.7-20.4 6.3-28.4 5.8 6.6.9 21-6.3 28.4zm13.5-10.7c-4.7-7.5 1.1-25.4 8.6-30.4 3.3 6.6.8 25.4-8.6 30.4zm10.8-2.8c-1.4-10.8 17.4-22.7 25.2-22.4-.9 8.9-8.9 18.6-25.2 22.4zm-10.5 12.2c8.8-9.1 26-9.1 32.1-7.2-1.7 5.3-21.9 16.9-32.1 7.2z"}),o.createElement("path",{d:"M328.7 276.8c12.4-3.3 20.5-6.1 27.9 1.7-5.2 6.6-25.4 4.7-27.9-1.7zm-17.7 8c11.9-6.4 26.3 3 28.5 8.6-13.3 5.5-28.7-7.2-28.5-8.6zm-16.3 9.2c10.8-4.1 23.2 1.4 28.2 7.5-5.8 2.7-21 5.7-28.2-7.5zm-14.9 4.7c12.4-1.4 24.4 8 27 13.4-15.9 1.5-22-3.2-27-13.4zm-4 9.4c-6.9-5-13-6.6-22.4-8.3-9.4-1.7-19.4-4.4-24.6-5.8-5.3-1.4 17.7 6.6 23.5 8.3 5.8 1.6 23.5 5.8 23.5 5.8zm-37.9-14.7c1.9-11.9-2.8-24.3-13.5-29.3-2.5 8.6 5.2 23.2 13.5 29.3zm-18.2-6.2c5.8-9.8-4-22.6-11.1-28.8-3.3 6 2.5 23.7 11.1 28.8zm-16.9-7.6c6.2-8.4-1.1-23.2-8.8-29-3.1 8.2-.1 23.2 8.8 29zM185.9 269c5.6-8 1.7-20.4-6.3-28.4-5.8 6.6-.9 21 6.3 28.4zm-13.5-10.7c4.7-7.5-1.1-25.4-8.6-30.4-3.3 6.6-.8 25.4 8.6 30.4zm-10.8-2.8c1.4-10.8-17.4-22.7-25.2-22.4.9 8.9 8.9 18.6 25.2 22.4zm10.5 12.2c-8.8-9.1-26-9.1-32.1-7.2 1.7 5.3 21.9 16.9 32.1 7.2z"}),o.createElement("path",{d:"M184.3 276.8c-12.4-3.3-20.5-6.1-27.9 1.7 5.2 6.6 25.4 4.7 27.9-1.7zm17.7 8c-11.9-6.4-26.3 3-28.5 8.6 13.3 5.5 28.7-7.2 28.5-8.6zm16.3 9.2c-10.8-4.1-23.2 1.4-28.2 7.5 5.8 2.7 21 5.7 28.2-7.5zm14.9 4.7c-12.4-1.4-24.4 8-27 13.4 15.9 1.5 22-3.2 27-13.4z"})))},pP=function(t){var n=t.title,r=H(t,xC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#11457e",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#d7141a",d:"M513 171v171H0l256.5-171z"}),o.createElement("path",{fill:"#FFF",d:"M513 0v171H256.5L0 0z"}))},hP=function(t){var n=t.title,r=H(t,bC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#FFDA44",d:"M0 228h513v114H0z"}))},gP=function(t){var n=t.title,r=H(t,yC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#12ad2b",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#6ab2e7",d:"M513 0v166.7L0 170.8V0z"}),o.createElement("path",{fill:"#FFF",d:"M256 170.7 0 342V0z"}),o.createElement("path",{fill:"#d7141a",d:"m89.8 92.5 17 52.4H162l-44.6 32.5 17 52.4-44.6-32.4-44.6 32.4 17-52.4-44.6-32.5h55.2z"}))},vP=function(t){var n=t.title,r=H(t,EC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#c60c30",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M190 0h-60v140H0v60h130v142h60V200h323v-60H190z"}))},xP=function(t){var n=t.title,r=H(t,wC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#496E2D",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 110.7v120h513v-120z"}),o.createElement("path",{fill:"#FFDA44",d:"M0 110.7h513v40H0z"}),o.createElement("path",{fill:"#FFF",d:"M0 190.7h513v40H0z"}),o.createElement("path",{d:"M196 0h120v342H196z"}),o.createElement("path",{fill:"#FFDA44",d:"M196 0h40v342h-40z"}),o.createElement("path",{fill:"#FFF",d:"M274.7 0h40v342h-40z"}),o.createElement("circle",{fill:"#D80027",cx:256,cy:170.7,r:123.1}),o.createElement("path",{d:"m256 58.6 4.6 14.2h15l-12.1 8.9 4.6 14.2-12.1-8.8-12.1 8.8 4.6-14.2-12.1-8.9h15zM190.1 80l12.2 8.8 12.1-8.8-4.6 14.3 12.1 8.8h-15l-4.6 14.2-4.7-14.2h-15l12.1-8.8zm-40.7 56h15l4.6-14.2 4.7 14.2h15l-12.2 8.8 4.7 14.3-12.2-8.8-12.1 8.8 4.6-14.3zm0 69.3 12.1-8.8-4.6-14.3L169 191l12.2-8.8-4.7 14.3 12.2 8.8h-15l-4.7 14.3-4.6-14.3zm40.7 56.1 4.6-14.3-12.1-8.8h15l4.7-14.3 4.6 14.3h15l-12.1 8.8 4.6 14.3-12.1-8.9zm65.9 21.4-4.6-14.3h-15l12.1-8.8-4.6-14.3 12.1 8.8 12.1-8.8-4.6 14.3 12.1 8.8h-15zm65.9-21.4-12.2-8.9-12.1 8.9 4.6-14.3-12.1-8.8h15l4.6-14.3 4.7 14.3h15l-12.1 8.8zm40.7-56.1h-15l-4.6 14.3-4.7-14.3h-15l12.2-8.8-4.7-14.3L343 191l12.1-8.8-4.6 14.3zm0-69.3-12.1 8.8 4.6 14.3-12.1-8.8-12.2 8.8 4.7-14.3-12.2-8.8h15l4.7-14.2 4.6 14.2zm-40.7-56-4.6 14.3 12.1 8.8h-15l-4.7 14.2-4.6-14.2h-15l12.1-8.8-4.6-14.3 12.1 8.8zM279.3 168.7c-11-21.1-14.5-25.1-14.5-25.1s.4-9.7.4-15.6c0-8.8-7.4-15.8-16.5-15.8-8.6 0-15.7 2.9-16.5 11-4.2.9-8.6 4.1-8.6 10.7 0 4.8 1 7.3 5.2 9.3 2.1-4.6 4.3-4.8 9.3-6.4.8.6 1.7 3 2.6 3.4l.3 1s-13.3 6.6-13.3 30.9c0 29.5 22 45.4 22 45.4l-1.8.3-1.9 7.1h22v-7.2l11 17.5c.3-.3 10.2-47.6.3-66.5z",fill:"#496E2D"}))},bP=function(t){var n=t.title,r=H(t,CC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 216h211v126H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 0h211v126H0z"}),o.createElement("path",{fill:"#D80027",d:"M302 0h211v126H302z"}),o.createElement("path",{fill:"#0052B4",d:"M302 216h211v126H302z"}),o.createElement("g",{stroke:"#FFF",strokeWidth:5,strokeMiterlimit:10},o.createElement("path",{fill:"#0052B4",d:"M256 130h-49.9v49.4s19.5 6 49.9 6V130z"}),o.createElement("path",{fill:"#D80027",d:"M206.1 179.4v6c0 27.5 22.3 49.9 49.9 49.9v-49.9c-30.4 0-49.9-6-49.9-6z"}),o.createElement("path",{fill:"#0052B4",d:"M256 235.3c27.5 0 49.9-22.3 49.9-49.9v-6s-19.5 6-49.9 6v49.9z"}),o.createElement("path",{fill:"#D80027",d:"M256 130v55.4c30.4 0 49.9-6 49.9-6V130H256z"})))},yP=function(t){var n=t.title,r=H(t,$C);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#41662E",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M256.5 0H513v342H256.5z"}),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"m341.5 105.3-29.4 40.4-47.5-15.4 29.4 40.4-29.4 40.4 47.5-15.4 29.4 40.4v-50l47.5-15.5-47.5-15.4z"}),o.createElement("path",{d:"M309.9 276.7c-58.5 0-106-47.5-106-106s47.5-106 106-106c18.3 0 35.4 4.6 50.4 12.7-23.5-23-55.7-37.2-91.2-37.2-72 0-130.4 58.4-130.4 130.4S197.1 301 269.1 301c35.5 0 67.7-14.2 91.2-37.2-14.9 8.2-32.1 12.9-50.4 12.9z"})))},EP=function(t){var n=t.title,r=H(t,MC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 170.7h513V256H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 256h513v85.3H0z"}),o.createElement("circle",{fill:"#FFDA44",cx:256,cy:171,r:60}),o.createElement("path",{fill:"#4C1F00",d:"M369.2 79.9s-27.2-13.8-33.9-16c-6.7-2.2-49.1-13.2-49.1-7 0 10.3-13.5 12-15.5 12s-2-5.3-14.8-5.3-13.7 4.8-15.8 4.8c-2.2 0-14.5-1-14.5-11.5 0-5.2-42.9 4-49.1 7-6.1 3.1-33.9 16-33.9 16s45.8 2.7 53.9 6.2 43.8 16.5 43.8 16.5l-2.8 13.3h37.8l-3.8-13.3s35.1-12.7 43.8-16.5 53.9-6.2 53.9-6.2z"}),o.createElement("path",{fill:"#57BA17",d:"M217.7 171.7c0 21.1 17.2 38.3 38.3 38.3 21.1 0 38.3-17.2 38.3-38.3v-11.5h-76.5v11.5z"}),o.createElement("path",{fill:"#338AF3",d:"M256 110.5c-21.1 0-38.3 17.2-38.3 38.3v11.5h76.5v-11.5c.1-21.1-17.1-38.3-38.2-38.3z"}))},wP=function(t){var n=t.title,r=H(t,SC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#111",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#368FD8",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#FFF",d:"M0 228h513v114H0z"}))},CP=function(t){var n=t.title,r=H(t,NC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),o.createElement("path",{d:"M0 228h513v114H0z"}),o.createElement("path",{fill:"#C09300",d:"M220.3 204.4s0-58.4 4.5-64.7c3.1-4.3 16.8 5.2 22.7 4.5 0 0 4.2-7.5 4.5-12 .3-4.6-1.1-7.6-4.9-6.2 0 0-1.2-2.1.5-3.3 1.6-1.2 5.6.1 5.6.1s-.5-1 1.6-.9c2.9.2 7.2 1.4 7.4 5.6.2 3.1.3 7.7.4 8.7.7 6.8 2.7 8.7 2.7 8.7s18.4-9.2 22-5.2c3.3 3.8 4.5 64.7 4.5 64.7l-18.1-16.8 12.1 29.5s-14.4 2.4-28.9 2.4c-14.5 0-31.1-4.2-31.1-4.2l13.8-28.2-19.3 17.3z"}))},$P=function(t){var n=t.title,r=H(t,PC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#428823",d:"M0 228h513v114H0z"}),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M256 171 0 342V0zm53.1 0c0-22.9 13.1-42.1 34.6-46.8-3.3-.7-6.7-1.1-10.3-1.1-26.4 0-47.9 21.4-47.9 47.9s21.4 47.9 47.9 47.9c3.5 0 7-.4 10.3-1.1-21.5-5.1-34.6-24.2-34.6-46.8z"}),o.createElement("path",{d:"m365 129.2 10.3 31.7h33.3l-27 19.6 10.3 31.7-26.9-19.6-27 19.6 10.3-31.7-27-19.6h33.4z"})))},MP=function(t){var n=t.title,r=H(t,RC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#338AF3",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#56AF35",d:"M0 0h513v171H0z"}),o.createElement("path",{fill:"#D80027",d:"m0 342 513-171L0 0v342z"}),o.createElement("g",{fill:"#ffc945"},o.createElement("path",{d:"M134.7 231.5c33.6 0 60.8-27.2 60.8-60.8s-27.2-60.8-60.8-60.8-60.8 27.2-60.8 60.8 27.2 60.8 60.8 60.8zm0 24.3c-47 0-85.2-38.1-85.2-85.2s38.1-85.2 85.2-85.2 85.2 38.1 85.2 85.2-38.2 85.2-85.2 85.2z"}),o.createElement("circle",{cx:119.5,cy:148.3,r:17.5}),o.createElement("circle",{cx:148.9,cy:158.5,r:17.5}),o.createElement("circle",{cx:134.7,cy:135.2,r:17.5}),o.createElement("circle",{cx:119.5,cy:172.7,r:17.5}),o.createElement("circle",{cx:149.9,cy:182.8,r:17.5}),o.createElement("circle",{cx:122.5,cy:198,r:17.5}),o.createElement("circle",{cx:145.9,cy:205.2,r:17.5})))},SP=function(t){var n=t.title,r=H(t,IC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 810 540"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FCDD09",d:"M0 0h810v540H0z"}),o.createElement("path",{stroke:"#DA121A",strokeWidth:60,d:"M0 90h810m0 120H0m0 120h810m0 120H0"}))},NP=function(t){var n=t.title,r=H(t,FC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h22.5v15H0V0z"}),o.createElement("path",{fill:"#D03433",d:"M0 0h22.5v4H0V0zm0 11h22.5v4H0v-4z"}),o.createElement("path",{fill:"#FBCA46",d:"M0 4h22.5v7H0V4z"}),o.createElement("path",{fill:"#FFF",d:"M7.8 7h1v.5h-1V7z"}),o.createElement("path",{fill:"#A41517",d:"M7.2 8.5c0 .3.3.5.6.5s.6-.2.6-.5L8.5 7H7.1l.1 1.5zM6.6 7c0-.3.2-.5.4-.5h1.5c.3 0 .5.2.5.4V7l-.1 1.5c-.1.6-.5 1-1.1 1-.6 0-1-.4-1.1-1L6.6 7z"}),o.createElement("path",{fill:"#A41517",d:"M6.8 7.5h2V8h-.5l-.5 1-.5-1h-.5v-.5zM5.3 6h1v3.5h-1V6zm4 0h1v3.5h-1V6zm-2.5-.5c0-.3.2-.5.5-.5h1c.3 0 .5.2.5.5v.2c0 .2-.1.3-.3.3H7c-.1 0-.2-.1-.2-.2v-.3z"}))},PP=function(t){var n=t.title,r=H(t,TC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#20AA46",d:"M0 0h22.5v5H0V0z"}),o.createElement("path",{fill:"#E92F3B",d:"M0 10h22.5v5H0v-5z"}),o.createElement("path",{fill:"#FADF50",d:"M0 5h22.5v5H0V5z"}),o.createElement("circle",{fill:"#205CCA",cx:11.3,cy:7.5,r:5.2}),o.createElement("g",{stroke:"#FFDB3D",fill:"none"},o.createElement("path",{d:"m11.3 8.8-2.1 1.5.8-2.4-2-1.5h2.5l.8-2.3.8 2.3h2.6l-2.1 1.5.8 2.4-2.1-1.5zm-1-2.4h1.9M9.9 7.8l1.3 1m.8-2.6.7 1.8M10 7.9l.6-1.8M11 9l1.6-1.1",strokeWidth:.5}),o.createElement("path",{d:"m8.7 3.9 1.1 1.6m4-1.7-1 1.6m-1.5 4.7V12M8.9 8.3 7.1 9m8.4 0-1.8-.7",strokeWidth:.25})))},RP=function(t){var n=t.title,r=H(t,OC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 810 540"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#039",d:"M0 0h810v540H0z"}),o.createElement("path",{fill:"#FC0",d:"m404.951 59.865 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-90 24 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-66 66 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-24 89.999 6.735 20.719h21.894l-17.633 12.813 6.638 20.74-17.634-12.813-17.634 12.813 6.736-20.731-17.633-12.811h21.796zm24 90.001 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm66 66 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm180-312 6.735 20.718h21.894l-17.633 12.812 6.637 20.74-17.633-12.812-17.635 12.812 6.737-20.729-17.633-12.812h21.795zm66 66 6.735 20.718h21.894l-17.633 12.812 6.637 20.74-17.633-12.812-17.635 12.812 6.737-20.729-17.633-12.812h21.795zm24 90 6.735 20.718h21.894l-17.633 12.813 6.638 20.74-17.634-12.813-17.634 12.813 6.736-20.731-17.633-12.811h21.796zm-24 90 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm-156 90 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm90-24.001 6.735 20.719h21.894l-17.633 12.812 6.639 20.74-17.635-12.812-17.633 12.812 6.735-20.73-17.633-12.811h21.797z"}))},IP=function(t){var n=t.title,r=H(t,zC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#2E52B2",d:"M513 129.3V212H203.7v130H121V212H0v-82.7h121V0h82.7v129.3z"}))},FP=function(t){var n=t.title,r=H(t,AC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#62B5E5",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#F3F3F3",d:"M307.1 127.1v92c0 61.6 80.5 80.5 80.5 80.5s80.4-19 80.4-80.6v-92l-80.5-23-80.4 23.1z"}),o.createElement("path",{fill:"#c8102e",d:"M468 132.8V98.3H307.1v34.5h69v69h-69v23h69V296c6.9 2.5 11.5 3.5 11.5 3.5s4.6-1.1 11.5-3.5v-71.2h69v-23h-69v-69H468z"}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})))},TP=function(t){var n=t.title,r=H(t,jC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})),o.createElement("path",{fill:"#2a7fff",d:"M311.2 190.2v-90c0-8.5 6.5-15.3 15-15.3h120.5c8.3 0 15 6.8 15 15.3v90c0 75.2-75.2 105.3-75.2 105.3s-75.3-30.1-75.3-105.3z"}),o.createElement("path",{fill:"#FFF",d:"M311.2 190.2v-90c0-8.5 6.5-15.3 15-15.3h120.5c8.3 0 15 6.8 15 15.3v90c0 75.2-75.2 105.3-75.2 105.3s-75.3-30.1-75.3-105.3zm79.6 86.3c7.9-4.5 15.9-10 23.2-16.7 20.5-18.5 32.6-41.4 32.6-69.7v-90c0-.3-120.4-.3-120.4-.3v90.3c0 28.3 12.1 51.2 32.6 69.7 8.3 7.5 17.6 13.9 27.6 19 1.4-.6 2.8-1.4 4.4-2.3z"}),o.createElement("path",{fill:"#3e6d1e",d:"M346.1 189.4c-2.6-7.9 1.7-14.3 10.1-14.3h60.5c8.2 0 12.8 6.3 10.1 14.3l-5.5 16.5c-2.6 7.9-8.9 9.2-15.8 4 0 0 2.6-4.8-19.1-4.8s-19.1 4.8-19.1 4.8c-6.1 5.7-13.1 4-15.8-4 .1.1-5.4-16.5-5.4-16.5z"}),o.createElement("path",{fill:"#e5e5e5",d:"M356.4 175.1c8.1 1.6 17.8-15 30.1-15 13.1 0 21.8 17.1 30.1 15 7.4-1.8 15-22.2 15-30.1 0-16.6-20.2-30.1-45.1-30.1s-45.1 13.5-45.1 30.1c-.1 8.5 6.6 28.5 15 30.1z"}),o.createElement("path",{fill:"#FFF",d:"M355 266.7c6.2.4 12.5-1.8 17.2-6.5l9-9c2.9-2.9 7.5-2.9 10.4 0l9 9c4.7 4.7 11 6.9 17.1 6.5 5.3-.3 32.5-33.5 25.7-32.6-4.6.6-9.1 2.8-12.7 6.3l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-8.7-8.8-22.9-8.8-31.7-.1l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-3.5-3.5-7.8-5.6-12.3-6.3-6.7-1.1 20.1 32.2 25.3 32.5zM321.1 206c2.9-2.9 7.5-2.9 10.4 0l9 9c8.8 8.7 22.9 8.7 31.7 0l9-9c2.9-2.9 7.5-2.9 10.4 0l9 9c8.8 8.7 22.9 8.7 31.7 0l9-9c2.9-2.9 7.5-2.9 10.4 0 0 0 5.5-14.8 2.5-15.9-7.9-2.9-17.2-1.2-23.5 5.2l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-8.7-8.8-22.9-8.8-31.7-.1l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-6.2-6.2-15.1-8-22.8-5.5-3.1 1.1 1.9 16.1 1.9 16.1z"}))},OP=function(t){var n=t.title,r=H(t,DC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#338AF3",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"m256 37.9 10.1 31.2H299l-26.6 19.3 10.2 31.2-26.6-19.3-26.6 19.3 10.2-31.2L213 69.1h32.9zM123.2 170.7l31.2-10.2v-32.8l19.3 26.6 31.2-10.2-19.3 26.6 19.3 26.5-31.2-10.1-19.3 26.5v-32.8zM256 303.5l-10.1-31.2H213l26.6-19.3-10.2-31.3L256 241l26.6-19.3-10.2 31.3 26.6 19.3h-32.9zm132.8-132.8-31.2 10.1v32.8l-19.3-26.5-31.2 10.1 19.3-26.5-19.3-26.6 31.2 10.2 19.3-26.6v32.8z",fill:"#FFF"}))},zP=function(t){var n=t.title,r=H(t,kC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#0F61A5",d:"M513 214.5H206.2V342h-87.8V214.5H0v-87.7h118.4V0h87.8v126.8H513V192z"}),o.createElement("path",{fill:"#E50E3D",d:"M513 149.3V192H183.7v150H141V192H0v-42.7h141V0h42.7v149.3z"}))},AP=function(t){var n=t.title,r=H(t,HC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},jP=function(t){var n=t.title,r=H(t,LC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#6DA544",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 228h513v114H0z"}))},DP=function(t){var n=t.title,r=H(t,VC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 136h513v70H0z"}),o.createElement("path",{fill:"#D80027",d:"M221.5 0h70v342h-70z"}))},kP=function(t){var n=t.title,r=H(t,_C);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 136h513v70H0z"}),o.createElement("path",{fill:"#D80027",d:"M221.5 0h70v342h-70z"}),o.createElement("path",{fill:"#FFF",stroke:"#231F20",strokeMiterlimit:10,d:"m256.5 87.8-24 41.4h-48.8l24.7 42.1-24.7 42.1h48.8l24 42.1 24-42.1h48.8l-24.7-42.1 24.7-42.1h-48.8l-24-41.4z"}),o.createElement("path",{fill:"#D80027",d:"M258.6 130.6c-3.3 0-3.3 3.3-3.3 3.3V160h-2v-22s0-4-3.3-4c-4 0-4 4-4 4v23.4l-2 .7v-16.7s0-4-3.3-4c-4 0-4 4-4 4V174c0 6.7 3.3 13.4 8 17.4v14h24V194c6-3.3 10.7-9.4 12-16.7 0-4 1.3-7.3 2.7-10.7l2.7-9.4s.7-3.3-2.7-4.7-4.7 2-4.7 2l-5.3 12.7h-2v-31.4s0-3.3-3.3-3.3c-4 0-4 3.3-4 3.3v24h-1.3v-26.1c-.2.2-.2-3.1-4.2-3.1z"}),o.createElement("path",{fill:"#FFDA44",stroke:"#231F20",strokeMiterlimit:10,d:"M249.2 25.7V33h-7.3v14.7h7.3v14c-4-4-9.4-6-14.7-6-12.2-.1-22.1 9.6-22.3 21.8-.1 6.1 2.4 12 6.9 16.3v13.4h74.8V93.8c4-4.7 6.7-10 6.7-16-.2-12.2-10.3-21.9-22.4-21.6-5.3.1-10.4 2.1-14.3 5.6v-14h7.3V33.1h-7.3v-7.3l-14.7-.1z"}))},HP=function(t){var n=t.title,r=H(t,BC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#005EB8",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M0 302.1V342h59.9l196.6-131.1L453.1 342H513v-39.9L316.4 171 513 39.9V0h-59.9L256.5 131.1 59.9 0H0v39.9L196.7 171z"}))},LP=function(t){var n=t.title,r=H(t,GC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v171H0z"}),o.createElement("path",{fill:"#529E3C",d:"M0 171h513v171H0z"}),o.createElement("path",{fill:"#D11C1C",d:"m201 259.8 28.2-4.8-21.8-10.3 14.9-8.4s25.2 21.2 25.2 14.4c0-7.3 23.7-4.1 22.7-14.4-1.3-14.1-26.2-1-30.6-18.7-2.5-9.9-10.3-8.6-10.3-8.6l-25.1 8.6-12.5 18.7-6.2-18.7s-14.6 11.9-19.5 18.7c-5.2 7.3-10.7 23.5-10.7 23.5l25.6 10.7-37.3-6.6-27.2 6.6-16.7 4.6 7.3-7.7-15-7.6 15-9-7.3-6.1 32.3 6.1s11.8-1.2 16.3-6.1c5.6-6.2 10.1-27.1 10.1-27.1l-14.8-8.6-11.6 21s-8-19.9-15.6-31c-5.7-8.3-24.3-27.3-24.3-27.3l-24 12.6 13.4-26.7s10.6-9.3 3.9-18.8c-6.8-9.5-12.4-30.9-12.4-30.9s14.1 24.4 19.2 22.5c7.2-2.7-9-25 0-28.9 6.5-2.9 7.6 25.5 7.6 25.5l7.3-13.9v17.3s-4.3 20.7 3 33c7.2 12.3 28.7 20.9 28.7 20.9s-5.6-12.3 0-36c3.8-16 17.2-43.4 23.6-52.1 3.3-4.6-26.7 17-26.7 17v-17l-28.6-2.9-7.3 8.3-18.3-30L104 83.1h34.6l-6.7-8.3H104s5.9-12.1 34.6-12.1l13.6-9.2s18.6.5 29 .9c9.3.4 26.1-11.5 26.1-11.5l4.7 11.5-11 17.3 11.1 11.4-4.7 7 8.1 11.5H201l11.1 17.9-11.1-6.3 6.4 17.3-6.4 17.8 28.2-9.5s0-25.6 10.3-37.2C271.1 69.2 322.6 43 322.6 43s-2.7 23.5 4.9 25.4c11.1 2.7 59.4-19.4 59.4-19.4s-29 31.3-23.1 34.1c3.2 1.5 8.5 7 8.5 7s-25.1 20.5-29.3 29.3c-4.2 8.8 6.1 19.4 6.1 19.4s-21.7 0-32.5 9.5c32.5 0 59.1 15.4 74.8 4 10.5-7.6-37.7-2.9-31.4-21.9 2.4-7.1 8.5-15.2 22.6-17.3s19.1 6.3 19.1 6.3l7.6-11.5h-22.4l40.6-39.6 5.3 51.1-13.7-11.4-6.2 19.2c14.6 44.6-52.8 54.1-52.8 54.1l41.6 27.8-14.8 4.2-4.2 41.7 19.1 15.5-25-6.6-49.2 11.2 9.8-15.3-20.6 4.1 13.7-13.1-13.7-6.1 17.6-4.9 22.1 15.2s11-14.2 12.2-21.7c1.3-7.8-4.8-24.2-4.8-24.2s-32.6-.7-44.1-3.5-18.2-11.9-18.2-11.9l-13.1 15.4s45.5 17.1 34.1 24.2c-2.6 1.7-15.7-3.2-15.7-3.2s-22.4 26.2-36.8 29.7c-6.5 1.6 18.3 10.7 18.3 10.7s-21.2-3.4-32-6.6c-11.3-3.4-44.4 6.6-44.4 6.6l-11-10.7zM383.9 138c3.1 0 5.7-2.6 5.7-5.7s-2.6-5.7-5.7-5.7-5.7 2.6-5.7 5.7 2.5 5.7 5.7 5.7z"}))},VP=function(t){var n=t.title,r=H(t,UC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M0 0h513v341.3H0V0z"}),o.createElement("path",{d:"M311.7 230 513 341.3v-31.5L369.3 230h-57.6zM200.3 111.3 0 0v31.5l143.7 79.8h56.6z"})),o.createElement("path",{d:"M393.8 230 513 295.7V230H393.8zm-82.1 0L513 341.3v-31.5L369.3 230h-57.6zm146.9 111.3-147-81.7v81.7h147zM90.3 230 0 280.2V230h90.3zm110 14.2v97.2H25.5l174.8-97.2zm-82.1-132.9L0 45.6v65.7h118.2zm82.1 0L0 0v31.5l143.7 79.8h56.6zM53.4 0l147 81.7V0h-147zm368.3 111.3L513 61.1v50.2h-91.3zm-110-14.2V0h174.9L311.7 97.1z",fill:"#012169"}),o.createElement("g",{fill:"#c8102e"},o.createElement("path",{d:"M288 0h-64v138.7H0v64h224v138.7h64V202.7h224v-64H288V0z"}),o.createElement("path",{d:"M311.7 230 513 341.3v-31.5L369.3 230h-57.6zm-168 0L0 309.9v31.5L200.3 230h-56.6zm56.6-118.7L0 0v31.5l143.7 79.8h56.6zm168 0L513 31.5V0L311.7 111.3h56.6z"})))},_P=function(t){var n=t.title,r=H(t,WC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#c60a0a",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#3E8446",d:"m256.5 170.7-212 126.1V44.5z"}),o.createElement("path",{d:"m256.5 170.7 211 126.1h-423zm211-126.2-211 126.2-212-126.2z",fill:"#FFDA44"}),o.createElement("path",{fill:"#3E8446",d:"M467.5 44.5v252.3l-211-126.1z"}),o.createElement("path",{d:"m256.5 10.4 2.8 10.2H270l-8.6 6.3 3.3 10.2-8.2-6.3-9.2 6.3 3.3-10.2-8.6-6.3h10.7zm-86.4 0 3.3 10.2h10.7l-8.6 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm171.8 0 3.3 10.2H356l-8.7 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm-85.4 293.8 2.8 10.2H270l-8.6 6.3 3.3 10.2-8.2-6.3-9.2 6.3 3.3-10.2-8.6-6.3h10.7zm-86.4 0 3.3 10.2h10.7l-8.6 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm171.8 0 3.3 10.2H356l-8.7 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7z",fill:"#FFDA44"}),o.createElement("circle",{fill:"#c60a0a",cx:244.5,cy:170.7,r:76.2}),o.createElement("path",{fill:"#FFDA44",d:"m244.5 110.1 13.6 41.8h44l-35.6 25.8 13.6 41.8-35.6-25.8-35.5 25.8 13.6-41.8-35.6-25.8h44zm-136.8 57.7c4.4 6.9 2.3 16.1-4.6 20.5s-16.1 2.3-20.5-4.6c-7.9-12.5-3.3-33-3.3-33s20.4 4.6 28.4 17.1z"}),o.createElement("circle",{fill:"#A2001D",cx:99.1,cy:182.1,r:7.4}))},BP=function(t){var n=t.title,r=H(t,KC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#fff",d:"M0 0h22.5v15H0z"}),o.createElement("path",{fill:"#eb000e",d:"M9.8 6H0v3h9.8v6h3V9h9.8V6h-9.8V0h-3v6z"}),o.createElement("path",{fill:"#eb000e",d:"m17.3 2.7-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm-12.7 0-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm0 9-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm12.7 0-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2z"}))},GP=function(t){var n=t.title,r=H(t,qC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 60"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FDEB01",d:"m0 0 90 60H0z"}),o.createElement("path",{fill:"#58A846",d:"M90 0v60L0 0z"}),o.createElement("path",{fill:"#ED3D24",d:"m50.7 33.3 9.3-6.7H48.5L45 15.7l-3.5 10.9H30l9.3 6.7-3.6 11 9.3-6.7 9.3 6.7z"}))},UP=function(t){var n=t.title,r=H(t,YC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M308 0H204v118.7H0v104h204V342h104V222.7h205v-104H308z"}),o.createElement("path",{fill:"#FFDA44",d:"m368.6 188 26 17.3V136l-26 17.3h-95.3V58.1l17.3-26h-69.2l17.3 26v95.2h-95.3l-26-17.3v69.3l26-17.3h95.3v95.2l-17.3 26h69.2l-17.3-26V188z"}))},WP=function(t){var n=t.title,r=H(t,XC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#496E2D",d:"M0 228h513v114H0z"}),o.createElement("path",{d:"m255.9 113.8 14.1 43.4 40.4 3.2-37 26.9 19.5 40.3-37-26.9-37 26.9 14.1-43.5-36.9-26.9h45.7z"}))},KP=function(t){var n=t.title,r=H(t,ZC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 230h513v112H0z"}),o.createElement("path",{fill:"#D80027",stroke:"#000",strokeMiterlimit:10,d:"M363.1 131.8V99.1H374V77.3h-21.9v10.9h-21.8V77.3h-21.8v21.8h10.9v32.7h-21.8V55.5h10.9V33.7h-21.8v10.9h-10.9V33.7H254v10.9h-10.9V33.7h-21.8v21.8h10.9v76.3h-21.8V99.1h10.9V77.3h-21.8v10.9h-21.8V77.3h-21.8v21.8h10.9v32.7H145V219h239.9v-87.2z"}),o.createElement("path",{fill:"#FFDA44",stroke:"#000",strokeMiterlimit:10,d:"m264.9 235.5-24.2 18.2 19.1 14.3v31.3h-23.2v9h23v7.9h-23v9.3H270V268l19.1-14.3-24.2-18.2zm0 25.3-10.1-7.1 10.1-7.1 10.1 7.1-10.1 7.1z"}),o.createElement("path",{d:"M239.6 209.7v-27.9s.1-22.3 25-22.3c24.8 0 25.7 22 25.7 22v28.2h-50.7zm-69.1 0v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8z"}),o.createElement("path",{d:"M169.1 209.7v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8zm151.8 0v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8zm8.4-77.7v-15.7s.1-12.1 11.3-12.1c11.3 0 11.7 11.9 11.7 11.9V132h-23zm-78.8 0v-23.7s.1-18.3 14.3-18.3c14.2 0 14.7 18 14.7 18v24h-29zm-73 0v-15.7s.1-12.1 11.3-12.1 11.7 11.9 11.7 11.9V132h-23z"}))},qP=function(t){var n=t.title,r=H(t,JC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M513 0v171H0V0z"}),o.createElement("circle",{fill:"#FFF",cx:185.8,cy:171.2,r:117.8}),o.createElement("path",{fill:"#D80027",d:"M68 171c0-65.1 52.8-117.8 117.8-117.8 65.1 0 117.8 52.8 117.8 117.8"}))},YP=function(t){var n=t.title,r=H(t,QC);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#cf0d19",d:"M0 0h513v100H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 121h513v100H0z"}),o.createElement("path",{fill:"#1a7e25",d:"M0 242h513v100H0z"}))},XP=function(t){var n=t.title,r=H(t,e$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 0h512v342H0z"}),o.createElement("path",{fill:"#6DA544",d:"M342 0h171v342H342z"}),o.createElement("path",{fill:"#D80027",d:"M0 0h171v342H0z"}))},ZP=function(t){var n=t.title,r=H(t,t$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},JP=function(t){var n=t.title,r=H(t,n$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#6DA544",d:"M0 0h513v113.8H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 227.6h513V342H0z"}),o.createElement("path",{fill:"#0070C8",d:"M126 171 0 342V0z"}),o.createElement("path",{fill:"none",stroke:"#000",strokeMiterlimit:10,d:"M233.8 139.4v40.4c0 35.6 35.6 35.6 35.6 35.6s35.6 0 35.6-35.6v-40.4h-71.2z"}),o.createElement("path",{fill:"#786145",d:"M264.5 179.8h9.8l4 25.8h-17.8z"}),o.createElement("path",{fill:"#6DA544",d:"M287.2 162c0-9.8-8-14.8-17.8-14.8s-17.8 5-17.8 14.8c-4.9 0-8.9 4-8.9 8.9s4 8.9 8.9 8.9h35.6c4.9 0 8.9-4 8.9-8.9s-4-8.9-8.9-8.9z"}),o.createElement("path",{d:"m230.7 120 1.9 3.3h3.8l-1.9 3.3 1.9 3.2h-3.8l-1.9 3.3-1.9-3.3H225l1.9-3.2-1.9-3.3h3.8zm15.3 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2h-3.7l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8zm15.3 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2h-3.7l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8zm15.8 0 1.9 3.3h3.8l-1.9 3.3 1.9 3.2H279l-1.9 3.3-1.9-3.3h-3.7l1.8-3.2-1.8-3.3h3.7zm16 0 1.9 3.3h3.8l-1.9 3.3 1.9 3.2H295l-1.9 3.3-1.9-3.3h-3.7l1.8-3.2-1.8-3.3h3.7zm15 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2H310l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8z",fill:"#FFDA00",stroke:"#000",strokeMiterlimit:10}))},QP=function(t){var n=t.title,r=H(t,r$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("g",{fill:"#0d5eaf"},o.createElement("path",{d:"M0 0h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0z"}),o.createElement("path",{d:"M0 0h190v190H0z"})),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M0 76h190v38H0z"}),o.createElement("path",{d:"M76 0h38v190H76z"})))},eR=function(t){var n=t.title,r=H(t,o$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})),o.createElement("ellipse",{fill:"#FFF",cx:443.4,cy:233.6,rx:29,ry:43.5}),o.createElement("ellipse",{fill:"#FFCE00",cx:406.9,cy:317.7,rx:22,ry:9.3}),o.createElement("ellipse",{fill:"#FFCE00",cx:364,cy:317.7,rx:22,ry:9.3}),o.createElement("path",{fill:"#39B200",d:"m342 190.1 43.4 86.9 43.5-86.9z"}),o.createElement("ellipse",{fill:"#9B9B9B",cx:327.5,cy:233.6,rx:29,ry:43.5}),o.createElement("path",{fill:"#757575",d:"m371 175.6-14.5 14.5h57.9l-14.5-14.5 14.5-43.5s-13-29-29-29-29 29-29 29l14.6 43.5z"}),o.createElement("circle",{fill:"#C6B56F",cx:385.4,cy:67,r:29}),o.createElement("circle",{fill:"#923f00",cx:386,cy:88.7,r:29}),o.createElement("circle",{fill:"#FFF",cx:443.4,cy:117.7,r:29}),o.createElement("circle",{fill:"#0049FF",cx:342.2,cy:146.7,r:29}),o.createElement("circle",{fill:"#0041F9",cx:429.8,cy:146.7,r:29}),o.createElement("circle",{fill:"#F7D71E",cx:386,cy:233.6,r:29}),o.createElement("circle",{fill:"#CEC851",cx:457.9,cy:190.1,r:29}),o.createElement("circle",{fill:"#FFF",cx:385.4,cy:289.5,r:29}),o.createElement("path",{fill:"#7C0B29",d:"m371 135.7 14.5-3.5 14.5 3.5c0 7.5-14.5 11-14.5 11s-14.5-3.5-14.5-11z"}),o.createElement("circle",{fill:"#FFF",cx:327.5,cy:117.4,r:29}))},tR=function(t){var n=t.title,r=H(t,i$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h171v342H0zm342 0h171v342H342z",fill:"#338AF3"}),o.createElement("circle",{fill:"#DCC26D",cx:256,cy:155.8,r:25.5}),o.createElement("path",{fill:"#628A40",d:"M194.2 155.9c0 22.1 11.8 42.5 30.8 53.5 5.9 3.4 13.5 1.4 16.9-4.5 3.4-5.9 1.4-13.5-4.5-16.9-11.5-6.6-18.5-18.9-18.5-32.1 0-6.8-5.5-12.4-12.4-12.4s-12.3 5.5-12.3 12.4zm95.1 52.1c17.8-11.4 28.6-31 28.5-52.1 0-6.8-5.5-12.4-12.4-12.4-6.8 0-12.4 5.5-12.4 12.4 0 12.7-6.5 24.5-17.1 31.3-5.8 3.6-7.7 11.2-4.1 17 3.6 5.8 11.2 7.7 17 4.1.2-.1.3-.2.5-.3z"}))},nR=function(t){var n=t.title,r=H(t,a$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#0052B4",d:"M11.1 11.1h489.7v319.1H11.1z"}),o.createElement("path",{fill:"#7DBEF1",d:"M256 285.3s76.4-51.3 76.4-114.6S256 56 256 56s-76.4 51.3-76.4 114.6S256 285.3 256 285.3z"}),o.createElement("path",{fill:"#1C8AE6",d:"M179.8 180.7h152.6l-29.3 64.9h-95.2z"}),o.createElement("path",{fill:"#FFF042",d:"M192.3 205.9s40.5 38.2 51 38.2c12.4 0 12.6-18.4 25.5-25.5 20.2-11.1 51-12.7 51-12.7L297 248.7l-41 36.6-46.8-39.7-16.9-39.7z"}),o.createElement("path",{fill:"#259C7B",d:"m256 157.5-22.5 15.6 7.9-26.2-21.8-16.5 27.4-.5 9-25.9 9 25.9 27.4.5-21.8 16.6 7.9 26.2-22.5-15.7z"}),o.createElement("path",{fill:"#8E5715",d:"M249.7 144.6c-.9 9.2-1.5 18.4-1.7 27.6-.3 11.9.3 20.7 2 26 2.2 6.6 7.2 12.9 14.2 18.9 5.3 4.6 10.6 8.1 14.2 10.1 3.1 1.7 7 .6 8.7-2.4 1.7-3.1.6-7-2.4-8.7-4.3-2.5-8.4-5.4-12.2-8.7-5.4-4.6-9.1-9.2-10.4-13.3-1.1-3.4-1.6-11.3-1.4-21.7.2-8.9.8-17.8 1.7-26.6.4-3.5-2.2-6.6-5.7-7-3.6-.3-6.7 2.3-7 5.8z"}),o.createElement("path",{fill:"#FFF",d:"m217.8 170.7 25.5 38.2h-25.5v-38.2z"}),o.createElement("path",{fill:"none",stroke:"#D80027",strokeWidth:12,strokeMiterlimit:10,d:"M256 285.3s76.4-51.3 76.4-114.6S256 56 256 56s-76.4 51.3-76.4 114.6S256 285.3 256 285.3z"}))},rR=function(t){var n=t.title,r=H(t,l$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#6DA544",d:"M0 0h512v342H0z"}),o.createElement("path",{fill:"#FFDA44",d:"M0 0h512v171H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 0h182v342H0z"}),o.createElement("path",{d:"m98.3 109.8 15.1 46.5h48.9L122.8 185l15.1 46.5-39.6-28.7-39.5 28.7L73.9 185l-39.6-28.7h48.9z"}))},oR=function(t){var n=t.title,r=H(t,s$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#009E49",d:"M0 0h900v600H0V0z"}),o.createElement("path",{fill:"#FFF",d:"m0 0 947 300L0 600V0z"}),o.createElement("path",{fill:"#FFD00D",d:"M0 26.1 870 300 0 573.9V26.1z"}),o.createElement("path",{fill:"#2D2D2D",d:"m0 0 450 300L0 600V0z"}),o.createElement("path",{fill:"#D3132F",d:"m0 35 397.5 265L0 565V35z"}))},iR=function(t){var n=t.title,r=H(t,c$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 14"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h21v14H0V0z"}),o.createElement("path",{fill:"#EE1C25",d:"M0 0h21v14H0V0z"}),o.createElement("path",{fill:"#FFF",d:"M12 6.7c-.8-.5-1 .4-1 0 0-.8.9-1.5 2-1.5s2 .7 2 1.5c-.9 0-1 .5-1.5.5-.6 0-.7 0-1.5-.5zm1.2-.2c.1 0 .2-.1.2-.2s0-.3-.2-.3-.2.1-.2.2.1.3.2.3zm-1.8 2c.2-.9-.7-.8-.3-.9.8-.3 1.7.4 2 1.4.3 1.1 0 2.1-.8 2.4-.3-.9-.8-.8-.9-1.3-.1-.6-.2-.7 0-1.6zm.6 1.1c0 .1.2.2.3.2.1 0 .2-.2.2-.3s-.2-.2-.3-.2c-.2 0-.2.2-.2.3zM9.6 8.5c.9-.1.6-.9.8-.6.5.7.2 1.7-.7 2.4-.9.6-2 .6-2.5 0 .8-.6.6-1 .9-1.3.4-.4.5-.5 1.5-.5zm-.9.9c-.1 0-.2.2-.1.3s.3.2.4.1.1-.3 0-.4-.2-.1-.3 0zM9 6.7c.3.9 1 .3.8.6-.5.7-1.6.7-2.5 0-.9-.6-1.2-1.7-.7-2.4.8.6 1.1.2 1.5.5.4.4.5.4.9 1.3zm-1.1-.6c-.1-.1-.3 0-.4.1s-.1.3 0 .4c.1.1.3 0 .3-.1.2-.1.2-.3.1-.4zm2.6-.5c-.7.6.1 1.1-.3 1-.8-.3-1.2-1.4-.8-2.4.3-1 1.3-1.7 2-1.4-.3.9.2 1.1 0 1.6-.1.5-.2.6-.9 1.2zm.2-1.2c0-.1 0-.3-.1-.3s-.3 0-.3.1 0 .3.2.3c0 .1.1 0 .2-.1z"}))},aR=function(t){var n=t.title,r=H(t,u$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})),o.createElement("path",{d:"m189.2 212.6 11 22.9 24.7-5.7-11.1 22.8 19.9 15.8L209 274v25.4l-19.8-15.9-19.8 15.9.1-25.4-24.8-5.6 19.9-15.8-11.1-22.8 24.8 5.7zm197.9 28.5 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6v12.2l-9.4-7.6-9.5 7.6.1-12.2-11.9-2.6 9.5-7.5-5.3-10.9 11.9 2.7zm-48.6-116 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6v-12.1l-11.8-2.7 9.5-7.5-5.3-10.9 11.8 2.7zm48.6-66.2 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.9-2.7 9.5-7.5-5.3-10.9 11.9 2.7zm42.4 49.7 5.3 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6V150l-9.5-7.6-9.4 7.6v-12.2l-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zm-30.3 57.9 4.1 12.7h13.3l-10.8 7.8 4.1 12.6-10.7-7.8-10.8 7.8 4.1-12.6-10.7-7.8h13.3z",fill:"#FFF"}))},lR=function(t){var n=t.title,r=H(t,d$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v114H0zm0 228h513v114H0zm203.5-110.1 6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zm105 0 6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zM256 147.6l6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zm-52.5 29.7 6.7 16.6 17.6 1-14 10.9 4.7 17.6-15-9.9-15 9.9 4.7-17.6-14-10.9 17.6-1zm105 0 6.7 16.6 17.6 1-14 10.9 4.7 17.6-15-9.9-15 9.9 4.7-17.6-14-10.9 17.6-1z",fill:"#338AF3"}))},sR=function(t){var n=t.title,r=H(t,f$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 228h513v114H0z"}),o.createElement("path",{d:"M309.3 113.2v-44l17.5-14.4 17.7 14.4v44zm-105.6 0v-44l-17.3-14.4-17.9 14.4v44zm35.2 0v-44l17.6-14.4 17.6 14.4v44z",fill:"#338AF3"}),o.createElement("path",{d:"M309.3 113.2h-35.2v-44l17.5-14.4 17.7 14.4zm-70.4 0h-35.2v-44l17.5-14.4 17.7 14.4z",fill:"#0052B4"}),o.createElement("path",{stroke:"#D80027",fill:"#FFF",d:"M168.5 113.2v101.9c0 24.3 14.4 46.2 35.4 59.4 21.3 13.4 42.1 14.7 52.6 14.7s31.4-1.7 52.6-14.8c21-13 35.4-35.1 35.4-59.3V113.2h-176z"}),o.createElement("path",{d:"M168.5 113.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-105.6 35.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-105.6 35.2h35.2v35.2h-35.2zm35.2 35.2h35.2V254h-35.2zm35.2-35.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-35.2 35.2h35.2V254h-35.2zm35.2 55.5c8.6-5.4 16.2-12.3 22-20.3h-22v20.3zM181.7 254c5.8 8 13.3 14.9 22 20.4V254h-22zm57.2 0v33.7c7.2 1.2 13.3 1.5 17.6 1.5 4.3 0 10.4-.3 17.6-1.6V254h-35.2z",fill:"#D80027"}))},cR=function(t){var n=t.title,r=H(t,m$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#00209f",d:"M0 0h513v171H0z"}),o.createElement("path",{fill:"#d21034",d:"M0 171h513v171H0z"}),o.createElement("path",{fill:"#FFF",d:"m381.4 251.5-110.7-13.8-110.8 13.8V85.4h221.5z"}),o.createElement("circle",{fill:"#00209f",cx:270.7,cy:182.3,r:55.4}),o.createElement("circle",{fill:"#d21034",cx:270.7,cy:182.3,r:27.7}),o.createElement("path",{fill:"#016a16",d:"M229.1 100h83.1l-41.5 54.6z"}),o.createElement("path",{fill:"#f1b517",d:"M265.5 140.8h10v83h-10z"}),o.createElement("path",{fill:"#016a16",d:"M314.9 215.5h-88.5l-66.5 36h221.5z"}))},uR=function(t){var n=t.title,r=H(t,p$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#6DA544",d:"M0 228h513v114H0z"}))},dR=function(t){var n=t.title,r=H(t,h$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 300 200"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#fc0",d:"M0 0h300v200H0z"}),o.createElement("path",{fill:"#0768a9",d:"M0 0h200v200H0z"}),o.createElement("path",{fill:"#fff",d:"M0 0h100v200H0z"}))},fR=function(t){var n=t.title,r=H(t,g$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#E00",d:"M0 0h513v171H0z"}))},mR=function(t){var n=t.title,r=H(t,v$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#6DA544",d:"M0 0h171v342H0z"}),o.createElement("path",{fill:"#FF9811",d:"M342 0h171v342H342z"}))},pR=function(t){var n=t.title,r=H(t,x$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M340.6 122.4h-56.1l-28-48.6-28 48.6h-56.1l28 48.6-28 48.6h56.1l28 48.6 28-48.6h56.1l-28-48.6 28-48.6zM293.2 171 276 204.2h-38.9L219.8 171l17.2-33.2h38.9l17.3 33.2zm-36.7-71.8 11.9 23.3h-23.9l12-23.3zm-58.3 38.6h23.9l-10.8 21-13.1-21zm0 66.4 13-22.1 11.9 22.1h-24.9zm58.3 37.5-11.9-22.1h23.9l-12 22.1zm59.4-37.5h-25l11.9-22.1 13.1 22.1zm-26.1-66.4h26.1l-13 22.1-13.1-22.1zM0 21.3h512V64H0zm0 256h512V320H0z",fill:"#2E52B2"}))},hR=function(t){var n=t.title,r=H(t,b$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#E52D42",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M393.3 68.2h-45.8l-33.8 80.2-34.4-22.9s-24.7-59.1-34.4-68.2c-9.7-9.7-18.7-.6-48.9 7.8-29.6 8.4-30.8 18.7-42.2 18.7-4.8 0-19.9-17.5-27.7-22.3-12.1-7.8-16.9-4.2-13.9 7.2 1.2 4.8 10.9 10.9 16.9 19.9 7.8 11.5 12.7 25.9 12.7 25.9s10.9-10.3 16.9-12.1c9-2.4 19.3 1.8 31.4 0 15.1-2.4 31.4-10.9 31.4-10.9l4.2 43.4s-54.3 50.7-49.5 70.6 56.1 44.6 68.2 62.7c12.1 17.5-7.2 24.1-7.2 32.6s-1.8 19.9 7.2 16.3c9-3.6 10.3-18.1 18.7-31.4 6-9 10.3-13.9 11.5-17.5 1.8-9-23.5-32-37.4-48.9-6.6-7.8-19.9-18.7-19.9-18.7l39.2-29.6s67.6 27.7 82.6 18.7c15.1-9 19.3-98.3 19.3-98.3l47-11.5-12.1-11.7z"}),o.createElement("path",{fill:"#F8DD4E",d:"M279.3 262.4c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm45.8-182.8c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm0 91.1c-6 0-11.5-4.8-11.5-11.5 0-6 4.8-11.5 11.5-11.5 6 0 11.5 4.8 11.5 11.5-.6 6.7-5.5 11.5-11.5 11.5zm-136.9 45.8c-6 0-11.5-4.8-11.5-11.5 0-6 4.8-11.5 11.5-11.5 6.6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm45.2-136.9c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-4.8 11.5-11.5 11.5zm22.9 91.1c-6 0-11.5-10.3-11.5-22.9s4.8-22.9 11.5-22.9c6 0 11.5 10.3 11.5 22.9s-4.8 22.9-11.5 22.9zm-114-45.2c-6 0-11.5-4.8-11.5-11.5 0-6.6 4.8-11.5 11.5-11.5 6.6 0 11.5 4.8 11.5 11.5 0 6.6-4.8 11.5-11.5 11.5z"}))},gR=function(t){var n=t.title,r=H(t,y$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#ff6820",d:"M0 0h513v114H0V0z"}),o.createElement("path",{fill:"#FFF",d:"M0 114h513v114H0V114z"}),o.createElement("path",{fill:"#046a38",d:"M0 228h513v114H0V228z"}),o.createElement("path",{fill:"none",stroke:"#07038d",strokeWidth:4,d:"M256.5 136.8c18.9 0 34.2 15.3 34.2 34.2s-15.3 34.2-34.2 34.2-34.2-15.3-34.2-34.2 15.3-34.2 34.2-34.2z"}),o.createElement("path",{d:"m265.3 138.2-17.6 65.7m17.6-65.7-17.6 65.7m25.8-62.3-34 58.9m41-53.5-48 48m53.4-41L227 188m62.3-25.8-65.7 17.6m66.9-8.8h-68m66.8 8.8-65.7-17.6m62.3 25.8L227 154m53.5 41-48-48m41 53.4-34-58.9m25.8 62.3-17.6-65.7m8.8 66.9v-68m-8.8 66.8 17.6-65.7m-25.8 62.3 34-58.9m-41 53.5 48.1-48.1M227.1 188l58.9-34m-62.3 25.8 65.7-17.6m-66.9 8.8h68m-66.8-8.8 65.7 17.6M227.1 154l58.9 34m-53.5-41 48.1 48.1m-41.1-53.5 34 58.9m-25.8-62.3 17.6 65.7",stroke:"#07038d",strokeWidth:2}))},vR=function(t){var n=t.title,r=H(t,E$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0-.3h513V342H0V-.3z"}),o.createElement("path",{fill:"#012169",d:"M462.9 198.1c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 10c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-10 20-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-10 21-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 21 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 20 10c11 6 22 12 32.1 12s20-6 31.1-12l19-10v-22c-10 0-20 6-30.1 12-7 4-16 9-20 9zM0 31.7l19 10c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-10 20-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-10 21-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 21 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 20 10c11 6 22 12 32.1 12s20-6 31.1-12l19-10v-22c-10 1-20 6-30.1 12-7 4-16 9-20 9s-14-5-21-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-11-30.1-12v22zm462.9 55.2c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 9c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12l19-9v-22c-10 0-20 6-30.1 12-7 3.9-16 9-20 9zm50.1 34c-10 1-20 6-30.1 12-7 4-16 10-20 10s-14-6-21-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-14-6-20-10c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-13-6-20-10c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 10-20 10s-13-6-20-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 10-21 10s-13-6-20-10c-10-6-20-11-30.1-12v23c4 1 13 5 19 9 11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12c6-4 15-8 19-9v-23zm-50.1 133.3c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 9c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12l19-9v-22c-10 0-20 6-30.1 12-7 4-16 9-20 9zm50.1 34c-10 1-20 6-30.1 12-7 4-16 10-20 10s-14-6-21-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-14-6-20-10c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-13-6-20-10c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 10-20 10s-13-6-20-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 10-21 10s-13-6-20-10c-10-6-20-11-30.1-12v23c4 0 13 5 19 9 11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12c6-4 15-9 19-9v-23z"}),o.createElement("g",{strokeWidth:2,strokeMiterlimit:10},o.createElement("path",{d:"M389.8 119.9H408v78.8h-18.3l.1-78.8zm0 117.8H408v75.1h-18.3l.1-75.1z",fill:"#a24300",stroke:"#000"}),o.createElement("path",{fill:"#006d00",stroke:"#004100",d:"M462.8 91.5h-29.1l25.7-25.7c4.5-4.4 4.5-11.4 0-15.8l-3.4-3.4c-4.4-4.4-11.4-4.4-15.8 0l-25.9 25.9V37.4c0-6.2-5.1-11.3-11.3-11.3h-4.7c-6.2 0-11.3 5.1-11.3 11.3v31.7l-23.5-23.8c-4.7-4.7-12.2-4.7-16.9 0l-3.6 3.6c-4.7 4.7-4.7 12.4 0 17.2l25 25.4h-30.6c-6 0-10.9 4.9-10.9 10.9v4.6c0 6 4.9 10.9 10.9 10.9H369l-20.7 20.7c-4.4 4.4-4.4 11.4 0 15.8l3.4 3.4c4.4 4.4 11.4 4.4 15.8 0l19.6-19.6V167c0 6.1 5.1 11.1 11.3 11.3h4.7c6.2 0 11.3-5.1 11.3-11.3v-28.3l22.2 22.6c4.7 4.7 12.4 4.7 17.1 0l3.6-3.6c4.7-4.7 4.7-12.4 0-17.2L435.2 118h27.6c5.9 0 10.7-4.9 10.9-10.9v-4.6c0-6.1-4.9-11-10.9-11z"}),o.createElement("path",{fill:"#fed100",stroke:"#525625",d:"M439.2 249.1h-79.8s-.9-13.4-6-21.8c-6.2-10.4-13.9-28.1-1.4-36.7 15.9-10.9 33.7.8 48.2.8 11.8.1 26.9-14 45-.8 12.2 8.9 3.9 28.2-1.3 36.7-7 11.5-4.7 21.8-4.7 21.8z"})),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})))},xR=function(t){var n=t.title,r=H(t,w$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#CE1126",d:"M0 0h513v114H0z"}),o.createElement("path",{d:"M0 228h513v114H0z"}),o.createElement("path",{d:"M219.2 160.7h-29.3c1.5-5.7 6.6-9.9 12.8-9.9v-19.9c-18.3 0-33.1 14.9-33.1 33.1v16.5h49.6c1.8 0 3.3 1.5 3.3 3.3v6.6h-66.2v19.9h86.1v-26.5c0-12.7-10.4-23.1-23.2-23.1zm49.6 29.8v-59.6H249v79.5h33.1v-19.9zm66.2 0v-59.6h-19.8v59.6h-6.6v-19.8h-19.9v39.7h59.6v-19.9z",fill:"#547C31"}))},bR=function(t){var n=t.title,r=H(t,C$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),o.createElement("path",{fill:"#6DA544",d:"M0 0h513v114H0z"}),o.createElement("path",{d:"M0 227.9h513v114H0zm278.8-93.1c.1 2 8.7 26.2 4.4 39.4-6.6 20.3-15.8 21.8-19.8 24.5V134l-6.9-4.2-6.9 4.2v64.7c-4-2.7-12.4-2.4-19.8-24.5-4.3-12.7 5.7-37.3 5.8-39.2 0 0-9.5 8.1-15.8 24-5.9 14.8 1.9 49.6 29.5 54.8 2.3.4 4.7 5.6 7.2 5.6 2.1 0 4.1-5.2 6-5.5 28.4-4.6 35-41.7 29.9-55.6-5.4-14.6-13.6-23.5-13.6-23.5z",fill:"#D80027"}),o.createElement("path",{d:"M44.6 98.9h22.3v24.4H44.6zM0 98.9h22.3v24.4H0zm89.2 0h22.3v24.4H89.2zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4H223zm44.7 0H290v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0H513v24.4h-22.3zm-446.1 118h22.3v25.5H44.6zm-44.6 0h22.3v25.5H0zm89.2 0h22.3v25.5H89.2zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5H223zm44.7 0H290v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0H513v25.5h-22.3z",fill:"#FFF",opacity:.5}))},yR=function(t){var n=t.title,r=H(t,$$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M513 210.6H202.2v130.7h-79.8V210.6H0v-79.8h122.4V0h79.8v130.8H513v18.5l-1 42.7z"}),o.createElement("path",{fill:"#D80027",d:"M513 149.3V192H183.7v149.3H141V192H0v-42.7h141V0h42.7v149.3z"}))},ER=function(t){var n=t.title,r=H(t,M$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#F4F5F0",d:"M342 0H0v341.3h512V0z"}),o.createElement("path",{fill:"#008C45",d:"M0 0h171v342H0z"}),o.createElement("path",{fill:"#CD212A",d:"M342 0h171v342H342z"}))},wR=function(t){var n=t.title,r=H(t,S$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M301.8 171 513 30.2V0h-45.3L256.5 140.8 45.3 0H0v30.2L211.2 171 0 311.8V342h45.3l211.2-140.8L467.7 342H513v-30.2z"}),o.createElement("path",{fill:"#FFDA44",d:"m233.7 44.6 22.3 5.6 22.3-5.6 4-20.9-14.9 6.5L256 14.8l-11.4 15.4-14.9-6.5z"}),o.createElement("path",{fill:"#D80027",d:"M233.7 44.6s-4 12.9-4 29.9c0 27.9 26.3 41.3 26.3 41.3s26.3-15.5 26.3-41.3c0-15.4-4-29.9-4-29.9s-8.1-5-22.3-5-22.3 5-22.3 5z"}))},CR=function(t){var n=t.title,r=H(t,N$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#6DA544",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M215.9 171 0 314.6V26.8zM513 26.8v287.8L296.1 171z"}),o.createElement("path",{fill:"#0052B4",d:"M513 26.8 296.1 171 513 314.6V342h-41.1L256 197.4 40.1 342H0v-27.4L215.9 171 0 26.8V0h40.1L256 143.9 471.9 0H513z"}),o.createElement("path",{fill:"#FFDA44",d:"M513 26.8 296.1 171 513 314.6V342h-41.1L256 197.4 40.1 342H0v-27.4L215.9 171 0 26.8V0h40.1L256 143.9 471.9 0H513z"}))},$R=function(t){var n=t.title,r=H(t,P$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#6DA544",d:"M0 228h513v114H0z"}),o.createElement("path",{fill:"#D80027",d:"M256.5 170.7 0 341.3V0z"}),o.createElement("path",{fill:"#FFF",d:"m77.9 139.5 7.9 16.4 17.8-4.1-8 16.5 14.3 11.3-17.8 4 .1 18.3-14.3-11.5-14.2 11.5v-18.3l-17.8-4 14.3-11.3-7.9-16.5 17.7 4.1z"}))},MR=function(t){var n=t.title,r=H(t,R$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),o.createElement("circle",{fill:"#D80027",cx:256.5,cy:171,r:96}))},SR=function(t){var n=t.title,r=H(t,I$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h512v90.579H0z"}),o.createElement("path",{fill:"#496E2D",d:"M0 251h513v91H0z"}),o.createElement("path",{fill:"#A2001D",d:"M0 114h513v114H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"m323.3 54.5-25.6-11.8L256 137l-41.7-94.3-25.6 11.8 51.8 116.2-51.8 116.2 25.6 11.8 41.7-94.4 41.7 94.4 25.6-11.8-51.8-116.2z"}),o.createElement("path",{d:"M273.4 65.6c-9.9-10.8-17.4-17-17.4-17s-7.5 6.2-17.4 17v210.1c9.9 10.8 17.4 17 17.4 17s7.5-6.2 17.4-17V65.6z"})),o.createElement("path",{d:"M209 105.9v129.5c10.5 18.5 23.3 33.7 32.9 43.8V62.1c-9.6 10.1-22.4 25.3-32.9 43.8zm94 0c-10.5-18.5-23.3-33.7-32.9-43.8v217.2c9.6-10.1 22.4-25.3 32.9-43.8V105.9z",fill:"#A2001D"}),o.createElement("path",{d:"M303 105.9v129.5c10.6-18.8 18.8-41 18.8-64.8s-8.2-45.9-18.8-64.7zm-94 0v129.5c-10.6-18.8-18.8-41-18.8-64.8s8.2-45.9 18.8-64.7z"}))},NR=function(t){var n=t.title,r=H(t,F$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M0 0h513v342H0z"}),o.createElement("circle",{cx:256,cy:171,r:171})),o.createElement("path",{fill:"#FFDA44",d:"M382.4 170.7 330.8 195l27.5 50-56.1-10.7-7.1 56.6-39.1-41.7-39.1 41.7-7.1-56.6-56.1 10.7 27.5-50-51.6-24.3 51.6-24.3-27.5-50.1 56.1 10.8 7.1-56.7L256 92.1l39.1-41.7 7.1 56.7 56.1-10.8-27.5 50.1z"}),o.createElement("circle",{fill:"#D80027",cx:257.4,cy:170.7,r:71.6}),o.createElement("path",{d:"M214.2 170.7c-2.1 0-4.1.1-6.2.3.1 12 4.4 22.9 11.6 31.5 3.8-10.3 9.5-19.6 16.7-27.7-6.9-2.7-14.3-4.1-22.1-4.1zm26.6 46.5c5.2 1.9 10.8 2.9 16.6 2.9 5.8 0 11.4-1 16.6-2.9-2.8-11.1-8.7-21-16.6-28.8-7.9 7.8-13.8 17.7-16.6 28.8zm59.4-71.2c-8.5-14.8-24.5-24.7-42.8-24.7-18.3 0-34.2 9.9-42.8 24.7 15.6.1 30.2 4.3 42.8 11.6 12.6-7.3 27.2-11.6 42.8-11.6zm-21.7 28.8c7.2 8 12.9 17.4 16.7 27.7 7.2-8.5 11.5-19.5 11.6-31.5-2-.2-4.1-.3-6.2-.3-7.7 0-15.2 1.4-22.1 4.1z",fill:"#FFDA44"}))},PR=function(t){var n=t.title,r=H(t,T$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v114H0zm0 228h513v114H0z",fill:"#0052B4"}),o.createElement("path",{fill:"#FFF",d:"M303.5 196.6v-17.8h-11.9v-23.7l-11.9-11.9-11.8 11.9v-23.8L256 119.5l-11.9 11.8v23.8l-11.8-11.9-11.9 11.9v23.7h-11.9v17.8h-11.9v17.8h118.8v-17.8z"}))},RR=function(t){var n=t.title,r=H(t,O$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 450 300"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#CE1126",d:"M0 0h450v300H0V0z"}),o.createElement("g",{fill:"#FCD116"},o.createElement("circle",{cx:227.6,cy:161.2,r:56.2}),o.createElement("path",{d:"m254.1 73.4-23.7 26 28.6 6.5zm-51.5.2-4.8 33.1 28.5-8zm94.3 26.7-34.7 8.5 20.1 23.7zm-138.3-1.8 15.5 32.7 20.2-22.7zm159 45.3-34.4-9.9 5.6 29.5zm-182-2.6 31.9 19.8 5.2-27.7z"})),o.createElement("path",{fill:"#003F87",d:"M0 175h450v125H0V175z"}),o.createElement("path",{fill:"#FFF",d:"M0 267c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21zm0-43c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21zm0-43c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21z"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"#FCD116",d:"m183.2 48.3-1.1-5.3 22.4-3.7s-30.1-7.1-40-10.7c-14.3-5.1-16.3-12.1-16.3-12.1s44.7 11 64.8 11c4.3 0 12.8 10.7 12.8 10.7s14.8-14.9 21.9-15.4c32.1-2.3 66.6-6.4 66.6-6.4s-10 6.7-16 8.5c-16.2 4.9-50.6 11.7-50.6 11.7l-4.8 7.5H277l-14.4 4.3 7.4 6.9s-7.8-4.1-18.1-2.1c-7.1 1.3-15.4 6-22.9 8-18.7 4.8-29.9-12.8-29.9-12.8l-15.9-.1z"}))},IR=function(t){var n=t.title,r=H(t,z$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFDA44",d:"M0 0h513v85.5H0z"}),o.createElement("path",{fill:"#FFF",d:"M0 85.5h513V171H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 171h513v85.5H0z"}),o.createElement("path",{fill:"#6DA544",d:"M256.5 171 0 342V0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M68.6 170.7c0-24.9 17.5-45.6 40.8-50.7-3.6-.8-7.3-1.2-11.1-1.2-28.7 0-51.9 23.3-51.9 51.9s23.3 51.9 51.9 51.9c3.8 0 7.5-.4 11.1-1.2-23.3-5.1-40.8-25.9-40.8-50.7z"}),o.createElement("path",{d:"m108.9 126.1 2.7 8.5h9l-7.3 5.3 2.8 8.5-7.2-5.2-7.3 5.2 2.8-8.5-7.2-5.3h8.9zm0 22.3 2.7 8.5h9l-7.3 5.3 2.8 8.5-7.2-5.3-7.3 5.3 2.8-8.5-7.2-5.3h8.9z"}),o.createElement("path",{d:"m108.9 170.7 2.7 8.5h9l-7.3 5.2 2.8 8.5-7.2-5.2-7.3 5.2 2.8-8.5-7.2-5.2h8.9zm0 22.2 2.7 8.5h9l-7.3 5.3 2.8 8.5-7.2-5.3-7.3 5.3 2.8-8.5-7.2-5.3h8.9z"})))},FR=function(t){var n=t.title,r=H(t,A$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#6DA544",d:"M512 0H0v342"}),o.createElement("path",{fill:"#FFDA44",d:"M307.7 0 0 194.5V342h206.9L513 148.5V0z"}),o.createElement("path",{d:"M513 0H385.2L0 249.4V341l126.2 1L513 91.6z"}),o.createElement("path",{d:"m141.1 187 31.2 24 32.3-22.2-13.1 37 31.1 23.9-39.2-1.1-13.2 37-11.1-37.6-39.2-1.1 32.3-22.2zM310.6 70.8l31.2 23.9 32.3-22.2-13.1 37 31.1 23.9-39.2-1.1-13.2 37-11.1-37.6-39.2-1.1 32.4-22.2z",fill:"#FFF"}))},TR=function(t){var n=t.title,r=H(t,j$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#91DC5A",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v57.188H0zm0 284.1h513v57.177H0z",fill:"#0052B4"}),o.createElement("path",{fill:"#D80027",d:"M0 79.9h513v181.582H0z"}),o.createElement("circle",{fill:"#FFF",cx:190.33,cy:171,r:65.668}),o.createElement("path",{fill:"#D80027",d:"m190.3 105 14.8 45.3h47.7l-38.6 28.1 14.8 45.5-38.7-28.2-38.6 28.1 14.8-45.4-38.6-28.1h47.7z"}))},OR=function(t){var n=t.title,r=H(t,D$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M84.6 107.8 132 36.6m-29.7 83 47.4-71.1m-29.6 83 47.4-71.1m177.9 221.3 47.4-71.1m-29.6 82.9 47.4-71.1m-29.6 83 47.4-71.1M132 305.4l-47.4-71.1m65.2 59.2-47.4-71.1m65.2 59.3-47.4-71.1m272.6-79.1-47.4-71.1m65.2 59.2-47.4-71.1m65.2 59.3L381 36.6",stroke:"#000",strokeWidth:14.25}),o.createElement("path",{d:"m357.3 238.2 59.3 39.5m-299.4-13.8L135 252m222.3-148.2L378 90m17.8-11.9 17.8-11.9",stroke:"#FFF",strokeWidth:12.5}),o.createElement("circle",{fill:"#CA163A",cx:256.5,cy:171,r:85.5}),o.createElement("path",{fill:"#0E4896",d:"M185.3 123.6c-13.1 19.6-7.8 46.2 11.9 59.3s46.2 7.8 59.3-11.9 39.6-24.9 59.3-11.9c19.6 13.1 24.9 39.6 11.9 59.3-26.2 39.3-79.3 49.9-118.6 23.7s-49.9-79.3-23.8-118.5z"}))},zR=function(t){var n=t.title,r=H(t,k$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#6DA544",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 228h513v114H0z"}),o.createElement("path",{d:"M167 227.6 0 341.3V0l167 113.8z"}))},AR=function(t){var n=t.title,r=H(t,H$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("g",{stroke:"#fff"},o.createElement("circle",{fill:"#059334",cx:384,cy:96.5,r:29.7}),o.createElement("path",{fill:"#c8102e",d:"M332.1 89H436v44.5H332.1z"}),o.createElement("path",{fill:"#fcea83",d:"M332.1 200.3V230h15.6c9.4 9.2 22.2 14.8 36.3 14.8 14.1 0 27-5.7 36.3-14.8h15.6v-29.7H332.1z"}),o.createElement("path",{fill:"#004b9e",d:"M332.1 126.1v44.5c0 39.8 51.9 51.9 51.9 51.9s51.9-12.2 51.9-51.9v-44.5H332.1z"}),o.createElement("path",{d:"M384 149.9c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9v20.8c13 0 13 11.9 26 11.9s13-11.9 26-11.9 13 11.9 26 11.9 13-11.9 26-11.9v-20.8c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9zm0-41.6c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9v20.8c13 0 13 11.9 26 11.9s13-11.9 26-11.9 13 11.9 26 11.9 13-11.9 26-11.9v-20.8c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9z",fill:"#F3F3F3"})),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})))},jR=function(t){var n=t.title,r=H(t,L$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#36B6CC",d:"M0 0h513v342H0V0z"}),o.createElement("circle",{fill:"#FFD400",cx:256.5,cy:170.9,r:68.4}),o.createElement("path",{fill:"#FFD400",d:"m256.5 251.5-27.9 41.7-7.1-49.7-43.2 25.5 15.2-47.8-50 4.2 34.4-36.5-46.9-18 46.8-18-34.4-36.5 50 4.2-15.2-47.8 43.2 25.4 7.1-49.7 27.9 41.7 27.9-41.7 7.1 49.7 43.2-25.4-15.2 47.8 50-4.2-34.3 36.6 46.8 17.9-46.8 18 34.4 36.5-50-4.2 15.2 47.8-43.2-25.4-7.1 49.7c0-.1-27.9-41.8-27.9-41.8zm0-.8c44.1 0 79.9-35.8 79.9-79.9S300.6 91 256.5 91s-79.9 35.8-79.9 79.9 35.8 79.8 79.9 79.8zM22.8 28.3c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6V28.3zm0 45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6V74zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm22.8-22.8c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7V245c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V188zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V96.8zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V51.2z"}))},DR=function(t){var n=t.title,r=H(t,V$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 .1h513v90.7H0zm0 251.2h513V342H0z",fill:"#D80027"}),o.createElement("circle",{fill:"#FFF",cx:256.5,cy:171,r:65.9}))},kR=function(t){var n=t.title,r=H(t,_$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 .2h513v90.7H0zm.5 251.1H513V342H.5z",fill:"#D80027"}),o.createElement("path",{fill:"#6DA544",d:"M290.3 193.5 256 130.7l-34.3 62.8h25.7v17.2h17.2v-17.2z"}),o.createElement("path",{fill:"#14AF5A",d:"M241.3 213.1c4.4-4.4 4.4-11.6-.1-16l4.7 4.7c-5.2-4.7-12.2-6.6-19.1-5.3l-23.5 5.9c-6.1 1.5-6.8-.4-1.8-4.2l27.1-20.3c5.1-3.8 4.2-6.9-2.3-6.9h-11c-6.4 0-7-2.3-1.5-5.1l25.3-12.7c5.6-2.8 5.1-5.1-1.5-5.1h-11c-6.4 0-7.4-3.1-2.3-6.9l27.1-20.3c5.6-3.8 12.9-3.8 18.5 0l27.1 20.3c5.1 3.8 4.2 6.9-2.3 6.9h-11c-6.4 0-7 2.3-1.5 5.1l25.3 12.7c5.6 2.8 5.1 5.1-1.5 5.1h-11c-6.4 0-7.4 3.1-2.3 6.9l27.1 20.3c5.1 3.8 4.4 5.7-1.8 4.2l-23.5-5.9c-6.8-1.3-13.9.6-19.1 5.3l4.7-4.7c-4.4 4.4-4.5 11.5-.1 16l6.8 6.8c4.4 4.4 3.1 8-3.3 8h-45.8c-6.2 0-7.7-3.6-3.3-8 .1.1 6.9-6.8 6.9-6.8z"}))},HR=function(t){var n=t.title,r=H(t,B$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#55B2FF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#F3F3F3",d:"M148.5 298.1h216l-108-254.2z"}),o.createElement("path",{fill:"#333",d:"m186 272.7 70.5-160.3L327 272.7z"}),o.createElement("path",{fill:"#FFDA44",d:"M148.5 298.1h216l-108-101.7z"}))},LR=function(t){var n=t.title,r=H(t,G$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 0h513v171H0z"}),o.createElement("path",{fill:"#FFDA44",d:"M149.3 98.1c0-14-11.3-25.3-25.3-25.3-6.5 0-12.4 2.4-16.9 6.4V64.4h8.4V47.5h-8.4v-8.4H90.3v8.4h-8.4v16.9h8.4v14.9c-4.5-4-10.4-6.4-16.9-6.4-14 0-25.3 11.3-25.3 25.3 0 7.5 3.3 14.2 8.4 18.8v14.9h84.3V117c5.3-4.7 8.5-11.5 8.5-18.9z"}))},VR=function(t){var n=t.title,r=H(t,U$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#A2001D",d:"M222.6 22.3h267.1v296.8H222.6z"}),o.createElement("path",{fill:"#D80027",d:"M22.3 22.3h200.3v296.8H22.3z"}),o.createElement("path",{fill:"#FFDA44",d:"M200.3 0h22.3v342h-22.3z"}),o.createElement("path",{fill:"#6DA544",d:"M22.3 22.3h89v296.8h-89z"}),o.createElement("path",{fill:"#FF9811",d:"M111.3 22.3h89v296.8h-89z"}),o.createElement("path",{fill:"#FFDA44",d:"M368.2 156.8c-1.4-2 0-37.9 0-37.9.9-7.4.1-8.4 1-11.4.9-2.9 5.4-11.6 5.4-11.6s-6-2.3-10.3-.6c-4.3 1.7-24.7-7.5-31.2 3.4-4.4 7-23.6 16.2-24.6 14-1-2.2-5.9-5-6.9-2.9s-.7 13.9 0 16c.8 2.6 9.8 2 12.3 3.1 3.7 1.8 12.2 8.2 11.9 10.7-.3 2.5-22.5-6-24.2-4.5-1.4 1.2-1.9 13.2-.4 15 1.8 2.1 23.4 5.6 25 7.5 1.6 1.9-13.1 7.4-12.3 25 .7 14.7 8 17.4 8 17.4s-2.4 3.6-7.8 3.1c-6.2-.6-27.4-17.7-27.4-17.7s-3.5-109 3.6-121.4c4.9-8.5-22.7 10.1-22.7 50.8V151c0 6.6-1.4 22.4 2.6 34 0 0-.4 46.9 1.5 49.6s12.7 2.2 14.8 0 0-30 0-30c7.7.2 18.3 17.5 32.5 16.4 20.6-1.6 28.7-9.9 34.3-5 8.1 7.1 5.5 23.2.4 31.5-2.2 3.5-14.3 4.7-15.7 7.6-1.4 2.9.5 5.4.5 5.4h29.7s1.4-20.5 2.7-26.1c1.3-5.7-.6-10.7 5.9-10.4 23.5 1.1 39.8-15.3 45.5-8 3.2 4.1 5.6 29.9 3.3 33.3-2.2 3.4-13.8 2.8-15.2 6.7-1.4 4 .8 4.4.8 4.4h29.7s-.4-21.2 2.5-27.7 4.9-10.4 9.3-17.2c4.4-6.8 11.3-15.7 11.3-36.2 0-14.2-8.1-22.8-8.1-22.8H417c-14.1.2-47.4 2.3-48.8.3zm-136-124.5c10.7-10.6 20.2-2.7 22.2 2.1 1.9 4.8 2.1 8.2 2.8 13.6.9 6.9 4.9 14 4.9 14s-7.1-3.8-14.7-4.2c-4.7-.3-9-.6-13.6-2.5-5.7-2.3-11.7-12.9-1.6-23zm248.4-.1c10.7 10.6 2.8 20.2-2 22.2s-8.2 2.1-13.6 2.8c-6.9.9-14 5-14 5s3.7-7.1 4.2-14.7c.3-4.7.6-9.1 2.4-13.6 2.2-5.7 12.8-11.8 23-1.7zm.1 276.9c-10.7 10.6-20.2 2.6-22.2-2.2-1.9-4.8-2.1-8.2-2.7-13.6-.8-6.9-4.9-14.1-4.9-14.1s7 3.8 14.7 4.3c4.7.3 9 .6 13.6 2.5 5.7 2.4 11.7 13.1 1.5 23.1zm-248.2-.1c-10.6-10.7-2.7-20.2 2.1-22.2 4.8-1.9 8.2-2.1 13.6-2.8 6.9-.9 14-4.9 14-4.9s-3.8 7.1-4.2 14.7c-.3 4.7-.6 9-2.5 13.6-2.3 5.7-12.9 11.8-23 1.6z"}),o.createElement("path",{fill:"none",stroke:"#FFDA44",strokeWidth:6,strokeMiterlimit:10,d:"M446.9 162.4s7.5-2.6 8.4-16.1c.6-8.6-19.8-16-39-11.5-19.7 4.6-34-3.1-34-14.6 0-22.9 29.7-16.2 38.9-11.3 9.1 4.9 29.7 23.5 35.1 9.4"}))},_R=function(t){var n=t.title,r=H(t,W$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v31.1H0zm0 62.2h513v31.1H0zm0 62.3h513v31.1H0zm0 62.3h513v31.1H0zm0 62.5h513v31.1H0zm0 61.6h513V342H0z",fill:"#bf0a30"}),o.createElement("path",{fill:"#002868",d:"M0 0h155.6v155.6H0z"}),o.createElement("path",{fill:"#FFF",d:"m77.8 30.2 10.7 32.9h34.6l-28 20.4 10.7 32.9-28-20.3-28 20.3 10.7-32.9-28-20.4h34.6z"}))},BR=function(t){var n=t.title,r=H(t,K$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#6DA544",d:"M0 227.6h513v114H0z"}),o.createElement("path",{d:"m245.2 171 7.7-23.1c2-5.9 5.1-6 7.1 0l7.7 23.1 19.4 29.1c1.7 2.6 1.3 6.3-1.2 8 0 0-6.9 8-29.5 8s-29.5-8-29.5-8c-2.4-2-2.9-5.4-1.2-8l19.5-29.1z"}),o.createElement("path",{d:"M256.5 171c-12.5 0-22.6-10.1-22.6-22.6 0-12.5 10.1-22.6 22.6-22.6s22.6 10.1 22.6 22.6c0 12.5-10.2 22.6-22.6 22.6zm0 0c6.2 0 11.3-16.3 11.3-22.6 0-6.2-5.1-11.3-11.3-11.3-6.2 0-11.3 5.1-11.3 11.3 0 6.3 5 22.6 11.3 22.6z"}))},GR=function(t){var n=t.title,r=H(t,q$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#6DA544",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFDA44",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 228h513v114H0z"}))},UR=function(t){var n=t.title,r=H(t,Y$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#338AF3",d:"M0 228h513v114H0z"}))},WR=function(t){var n=t.title,r=H(t,X$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{className:"prefix__st1",d:"M0 0h513v127.6H0zm0 214.4h513V342H0z",fill:"#A2001D"}))},KR=function(t){var n=t.title,r=H(t,Z$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#496E2D",d:"M0 228h513v114H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"m281.4 150.7 9 12.3 14.5-4.7-9 12.4 9 12.3-14.5-4.7-9 12.3v-15.2l-14.5-4.7 14.5-4.7z"}),o.createElement("path",{d:"M257 201.5c-17 0-30.9-13.8-30.9-30.9s13.8-30.9 30.9-30.9c5.3 0 10.3 1.3 14.7 3.7-6.9-6.7-16.2-10.8-26.6-10.8-21 0-38 17-38 38s17 38 38 38c10.3 0 19.7-4.1 26.6-10.8-4.4 2.4-9.4 3.7-14.7 3.7z"})))},qR=function(t){var n=t.title,r=H(t,J$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#d12a46",d:"M0 .3V342h513V.3z"}),o.createElement("path",{fill:"#316525",d:"M359.8 148.9h-73.3l-22.7-69.7-22.7 69.7h-73.3l59.3 43.1-22.7 69.7 59.3-43.1 59.3 43.1-22.5-69.7 59.3-43.1zm-116.1 37.7 7.7-23.6h24.8l7.7 23.6-20.1 14.6-20.1-14.6zm27.9-37.7H256l7.8-24 7.8 24zm24.3 29-4.8-14.9h25.3l-20.5 14.9zM236.6 163l-4.8 14.9-20.5-14.9h25.3zm-5.3 61.8 7.8-24 12.6 9.2-20.4 14.8zm44.5-14.9 12.6-9.2 7.8 24-20.4-14.8z"}))},YR=function(t){var n=t.title,r=H(t,Q$);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 171h513v171H0z"}),o.createElement("path",{fill:"#ce1126",d:"M0 0h513v171H0z"}))},XR=function(t){var n=t.title,r=H(t,eM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}),o.createElement("path",{fill:"#0052B4",d:"M0 0h171v342H0z"}),o.createElement("path",{fill:"#AF7F59",stroke:"#231F20",strokeWidth:3,strokeMiterlimit:10,d:"m240.4 105.7 9.7 11.6-7.5 17.4-26.1-24.3-12.7 13.2v106.1l24.6-36 20.6 12.4-18 27.8 25.2 15.8 26.5-15.8-19.7-27.8 22.3-12.4 23.9 33.8v-106l-12.4-12-26.8 24.7-6.5-16.5 3.5-12.3-11.7-7.5z"}))},ZR=function(t){var n=t.title,r=H(t,tM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#ffc000",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#e30000",d:"M20 20h473v302H20z"}),o.createElement("path",{fill:"#ffc000",d:"M248.5 112.9c4.4 4.4 11.6 4.4 16 0l-4.7 4.7 22.7-22.7c4.9-4.5 12.1-5.6 18.2-2.8l2.1 1c5.7 2.9 6.7 8.7 2.3 13.1l4.7-4.7-22.8 22.8c-4.5 4.9-5.6 12.1-2.8 18.2l1 2.1c2.9 5.7 5.1 15.4 5.1 21.6v-11.3c0 6.2 4.4 9.1 10.2 6.2l2.1-1c5.7-2.9 6.7-8.7 2.3-13.1l4.7 4.7c-4.4-4.4-4.4-11.6 0-16l-4.7 4.7c5.2-5.5 9.6-11.6 13.1-18.2l1-2.1c2.9-5.7 6.3-15.1 7.9-21.2l5.8-23.3c1.5-6 5.9-6.8 9.6-1.8l20.2 26.9c3.8 5.1 6.9 14 6.9 20.6v22.4c0 6.3-2.2 15.8-5.1 21.7l-1 2.1c-3.5 6.6-7.9 12.7-13.1 18.2l-6.8 6.8c-5.4 5.2-11.5 9.6-18.2 13.1l-2.1 1c-5.7 2.9-15.5 5.1-21.6 5.1-6.2 0-6.9 2.2-1.1 5.1l2.1 1c5.7 2.9 13.8 8.7 18.2 13.1l-4.7-4.7c4.4 4.4 11.6 4.4 16 0l-4.7 4.7c4.4-4.4 11.6-4.4 16 0L339 226c4.6 4.9 5.7 12.1 2.9 18.2l-1 2.1c-2.9 5.7-10.4 10.2-16.4 10.2-7.5-.3-14.8-2-21.6-5.1l-2.1-1c-6.5-3.6-11.8-8.9-15.4-15.4l-1-2.1c-2.9-5.7-8.7-6.7-13.1-2.3l4.7-4.7c-4.4 4.7-5.2 11.8-1.8 17.3l10.3 15.4c3.4 5.1 2 12.1-3.1 15.5L266 284.4c-5.7 3.4-12.8 3.4-18.6 0L232 274.1c-5.1-3.4-6.5-10.3-3.1-15.5l10.3-15.4c3.4-5.5 2.6-12.6-1.8-17.3l4.7 4.7c-4.4-4.4-10.2-3.6-13.1 2.3l-1 2.1c-2.9 5.7-9.5 12.4-15.4 15.4l-2.1 1c-5.7 2.9-15.5 5.1-21.6 5.1-6.9-.3-13.1-4.2-16.4-10.2l-1-2.1c-2.8-6.1-1.6-13.3 2.9-18.2l-4.7 4.7c4.4-4.4 11.6-4.4 16 0L181 226c4.4 4.4 11.6 4.4 16 0l-4.7 4.7c5.5-5.2 11.6-9.6 18.2-13.1l2.1-1c5.7-2.9 5-5.1-1.1-5.1-7.5-.3-14.8-2-21.6-5.1l-2.1-1c-6.6-3.5-12.7-7.9-18.2-13.1l-6.8-6.8c-5.2-5.4-9.6-11.5-13.1-18.2l-1-2.1c-3.1-6.8-4.9-14.2-5.1-21.7V121c0-6.3 3.1-15.6 6.9-20.6l20.2-26.9c3.8-5.1 8.1-4.3 9.6 1.8l5.8 23.3c2 7.3 4.6 14.4 7.9 21.2l1 2.1c2.9 5.7 8.7 13.8 13.1 18.2l-4.7-4.7c4.4 4.4 4.4 11.6 0 16l4.7-4.7c-4.4 4.4-3.6 10.2 2.3 13.1l2.1 1c5.7 2.9 10.2 0 10.2-6.2v11.3c0-6.2 2.2-15.7 5.1-21.6l1-2.1c2.8-6.1 1.7-13.2-2.8-18.2l-22.7-22.7 4.7 4.7c-4.4-4.4-3.6-10.2 2.3-13.1l2.1-1c6.1-2.8 13.2-1.7 18.2 2.8l22.7 22.7-4.8-4.5zm-18-40.7c-4.4-4.4-3.2-9.5 2.8-11.5l12.4-4.2c3-1 6.9-7.5 10.8-7.5 3.9 0 7.8 6.5 10.8 7.5l12.4 4.2c6 2 7.2 7.1 2.8 11.5l-6.8 6.8c-5.3 4.7-12.1 7.5-19.2 7.9-6.2 0-14.8-3.5-19.2-7.9l-6.8-6.8z"}),o.createElement("path",{fill:"#0371ba",d:"M275 201.3h-37c-4.9 0-8.8-3.9-8.8-8.8v-34.2c0-4.9 3.9-8.8 8.8-8.8h37c4.9 0 8.8 3.9 8.8 8.8v34.2c0 4.8-3.9 8.8-8.8 8.8z"}),o.createElement("path",{fill:"#39B54A",d:"m230.8 212.8 24.4 17.9c.8.6 1.8.6 2.6 0l24.4-17.9c2.1-1.6 1.2-5.4-1.3-5.4h-48.8c-2.5 0-3.4 3.9-1.3 5.4z"}),o.createElement("path",{fill:"#ffc000",d:"M262.8 186.5h-12.5c-3.3 0-5.9-2.6-5.9-5.9V170c0-3.3 2.6-5.9 5.9-5.9h12.5c3.3 0 5.9 2.6 5.9 5.9v10.6c-.1 3.3-2.7 5.9-5.9 5.9z"}))},JR=function(t){var n=t.title,r=H(t,nM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 108 72"},r),n&&o.createElement("title",null,n),o.createElement("path",{d:"M0 0h108v72H0z",fill:"#003787"}),o.createElement("path",{d:"M0 0h108L60 48v24H48V48z",fill:"#fff"}),o.createElement("circle",{cx:54,cy:30,r:8,fill:"#f9d90f"}),o.createElement("path",{d:"M44 30h20L54 48z",fill:"#fff"}),o.createElement("path",{d:"M54 48 38 33h32z",fill:"#cf142b"}))},QR=function(t){var n=t.title,r=H(t,rM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#f9423a",d:"M0 0h513v171H0z"}),o.createElement("path",{fill:"#00843d",d:"M0 171h513v171H0z"}),o.createElement("path",{fill:"#FFF",d:"M0 0h171v342H0z"}))},eI=function(t){var n=t.title,r=H(t,oM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#1E509C",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M513 176.1V81.3L0 342l513-165.9z"}),o.createElement("path",{fill:"#F18D36",d:"M513 0v81.3L0 342 513 0z"}),o.createElement("path",{fill:"#FFF",d:"m126.7 99.3-7.8-54.1-7.7 54.1-20.8-23.7 10.7 31.6-31.5-10.7 23.6 20.8-54.1 7.7 54.1 7.7-23.6 20.8 31.5-10.7-10.7 31.6 20.8-23.7 7.7 54.1 7.8-54.1 20.7 23.7-10.6-31.6 31.5 10.7-23.6-20.8 54-7.7-54-7.7 23.6-20.8-31.5 10.7 10.6-31.6z"}))},tI=function(t){var n=t.title,r=H(t,iM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M384.6 342 256.5 167.3 283.4 342zM133.8 0l122.7 167.3L230.8 0zm95.8 342 26.9-174.7L128.4 342zM0 0v127.8l256.5 39.5L28.4 0zm0 342h18.2l238.3-174.7L0 206.7zm256.5-174.7L513 127.8V0h-28.4zM282.2 0l-25.7 167.3L379.2 0z"}),o.createElement("path",{d:"M513 342V206.7l-256.5-39.4L494.8 342z"}),o.createElement("circle",{cx:256.5,cy:171,r:59.5})),o.createElement("circle",{fill:"#FFDA44",cx:256.5,cy:171,r:44.5}))},nI=function(t){var n=t.title,r=H(t,aM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#14b53a",d:"M0 0h171v342H0z"}),o.createElement("path",{fill:"#fcd116",d:"M171 0h171v342H171z"}),o.createElement("path",{fill:"#ce1126",d:"M342 0h171v342H342z"}))},rI=function(t){var n=t.title,r=H(t,lM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#fecb00",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#34b233",d:"M0 114h513v114H0z"}),o.createElement("path",{fill:"#ea2839",d:"M0 228h513v114H0z"}),o.createElement("path",{fill:"#FFF",d:"M384.8 142.2h-98L256.5 49l-30.3 93.2h-98l79.3 57.6-30.3 93.2 79.3-56.9 79.3 56.9-30.3-93.2 79.3-57.6z"}))},oI=function(t){var n=t.title,r=H(t,sM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#0066b2",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M342 0h171v342H342zM0 0h171v342H0z",fill:"#da2031"}),o.createElement("g",{fill:"#ffd300"},o.createElement("path",{d:"M108.3 166.3h14.8v74.2h-14.8zm-59.4 0h14.8v74.2H48.9z"}),o.createElement("circle",{cx:86,cy:203.4,r:14.8}),o.createElement("path",{d:"M71.2 225.7h29.7v14.8H71.2zm0-59.4h29.7v14.8H71.2z"}),o.createElement("circle",{cx:86,cy:144,r:14.8}),o.createElement("path",{d:"M76.3 123.9h19.5L86 108.3z"})))},iI=function(t){var n=t.title,r=H(t,cM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#0F7562",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M286.2 168.5c-4.2 0-8.2.8-11.9 2.2 2-4.5 3.4-9.5 3.4-14.9 0-21.2-21.2-37.1-21.2-37.1s-21.2 15.9-21.2 37.1c0 5.4 1.4 10.4 3.4 14.9-3.7-1.3-7.7-2.2-11.9-2.2-25.6 0-37.1 11.2-37.1 11.2s15.9 31.2 37.1 31.2c12.4 0 23-7.3 29.7-13.3 6.6 6 17.3 13.3 29.7 13.3 21.2 0 37.1-31.2 37.1-31.2s-10.8-11.2-37.1-11.2zm-29.7-96.8 4.4 13.5h14.2l-11.5 8.3L268 107l-11.5-8.3L245 107l4.4-13.5-11.5-8.3h14.2zm-53.9 23.6 8.4 7.6 9.9-5.7-4.7 10.4 8.5 7.6-11.3-1.2-4.6 10.3-2.4-11.1-11.3-1.1 9.9-5.7zm-39.4 39.5 11.1 2.3 5.6-9.8 1.2 11.3 11.1 2.3-10.4 4.6 1.2 11.3-7.6-8.4-10.3 4.6 5.6-9.8zm147.2-39.5-8.4 7.6-9.9-5.7 4.7 10.4-8.5 7.6 11.3-1.2 4.6 10.3 2.4-11.1 11.3-1.1-9.9-5.7zm39.4 39.5-11.1 2.3-5.6-9.8-1.2 11.3-11.1 2.3 10.4 4.6-1.2 11.3 7.6-8.4 10.3 4.6-5.6-9.8z",fill:"#FFDA44"}),o.createElement("path",{d:"M256.5 270.3c16.8 0 32.4-5.6 44.8-15.1h-89.6c12.4 9.4 28 15.1 44.8 15.1zm-68-44.6c2.4 5.4 5.3 10.4 8.9 15.1H238c13.9 0 18.5-7 18.5-7s5.3 7 18.6 7h40.6c3.5-4.6 6.5-9.7 8.9-15.1h-49.5c-15.5 0-18.6-10-18.6-10s-5.3 10-18.5 10h-49.5z",fill:"#FFF"}))},aI=function(t){var n=t.title,r=H(t,uM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 750 500"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#0071BC",d:"M0 0h750v500H0V0z"}),o.createElement("g",{fill:"#FFF",stroke:"#000",strokeWidth:1.9},o.createElement("circle",{cx:375,cy:245,r:225,fill:"#fff"}),o.createElement("circle",{cx:375,cy:245,r:165,fill:"#0071BC"})),o.createElement("g",{stroke:"#000"},o.createElement("path",{fill:"#8C8A8C",strokeWidth:1.9,d:"M444.7 450c.7 11-7.8 20-18.8 20H323.6c-11 0-19.5-9-19-20l16.7-325c.6-11 10-20 21-20h61.4c11 0 20.5 9 21.2 20l19.8 325z"}),o.createElement("path",{fill:"#FFF",strokeWidth:2,strokeLinejoin:"round",d:"m373 114 30 93h97l-78 56 29 92-78-56-78 57 30-93-79-57h97l30-92z"})))},lI=function(t){var n=t.title,r=H(t,dM);return o.createElement("svg",k({viewBox:"0 0 900 600",xmlns:"http://www.w3.org/2000/svg"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#231f1e",d:"M0 0h900v600H0z"}),o.createElement("path",{fill:"#00a650",d:"M0 0h900v300H0z"}),o.createElement("path",{fill:"#ef1923",d:"m0 0 450 300L0 600z"}))},sI=function(t){var n=t.title,r=H(t,fM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#00a95c",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#d01c1f",d:"M0 0h513v46H0zm0 296h513v46H0z"}),o.createElement("path",{fill:"gold",d:"M256 213.9c-46 0-84.3-32.3-93.8-75.4-1.4 6.6-2.2 13.5-2.2 20.6 0 53 43 96 96 96s96-43 96-96c0-7.1-.8-13.9-2.2-20.6-9.5 43.1-47.8 75.4-93.8 75.4z"}),o.createElement("path",{fill:"gold",d:"m256 87 8.9 27.5h29l-23.4 17 8.9 27.5-23.4-17-23.4 17 8.9-27.5-23.4-17h29z"}))},cI=function(t){var n=t.title,r=H(t,mM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#00A2B8",stroke:"#FFF",strokeWidth:3,d:"M318.2 106.7v106.5c0 51.9 67.8 67.8 67.8 67.8s67.8-15.9 67.8-67.8V106.7H318.2z"}),o.createElement("path",{fill:"#A35023",d:"M319.7 212.7c0 50.8 66.3 66.3 66.3 66.3s66.3-15.6 66.3-66.3H319.7z"}),o.createElement("path",{fill:"#510",d:"M415.1 155.1h-19.4v-19.4h-19.4v19.4H357v19.4h19.3v58.1h19.4v-58.1h19.4z"}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})))},uI=function(t){var n=t.title,r=H(t,pM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#cf142b",d:"M256 0h256.5v342H256z"}),o.createElement("path",{stroke:"#cf142b",strokeWidth:10,d:"M101.2 68.2V33H66v35.2H30.8v35.2H66v35.2h35.2v-35.2h35.2V68.2z"}),o.createElement("path",{fill:"#fff",stroke:"#acacac",strokeWidth:5,d:"M101.2 68.2V33H66v35.2H30.8v35.2H66v35.2h35.2v-35.2h35.2V68.2z"}),o.createElement("circle",{cx:85,cy:85,r:26,fill:"none",stroke:"#acacac",strokeWidth:5}),o.createElement("circle",{cx:85,cy:85,r:18,fill:"#dedede",stroke:"#acacac",strokeWidth:5}))},dI=function(t){var n=t.title,r=H(t,hM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#d01c1f",d:"M0 0h513v85.5H0z"}),o.createElement("path",{fill:"#2d3359",d:"M0 85.5h513V171H0z"}),o.createElement("path",{fill:"#f7b718",d:"M0 171h513v85.5H0z"}),o.createElement("path",{fill:"#008658",d:"M0 256.5h513V342H0z"}))},fI=function(t){var n=t.title,r=H(t,gM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 720 480"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#007E3A",stroke:"#D21034",strokeWidth:120,d:"M60 60h600v360H60z"}),o.createElement("circle",{fill:"#FFF",cx:390,cy:240,r:80}),o.createElement("circle",{fill:"#007E3A",cx:420,cy:240,r:80}))},mI=function(t){var n=t.title,r=H(t,vM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#ce1126",d:"M0 114h513v114H0z"}),o.createElement("path",{fill:"#339e35",d:"M0 228h513v114H0z"}),o.createElement("circle",{fill:"#ce1126",cx:256.5,cy:125,r:95}),o.createElement("path",{d:"M0 100h513v14H0z"}))},pI=function(t){var n=t.title,r=H(t,xM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#dc2339",d:"M342 0H0v341.3h513V0z"}),o.createElement("path",{fill:"#11865d",d:"M0 0h171v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M171 0h171v342H171z"}),o.createElement("path",{fill:"#8C9157",d:"M195.8 171.2c0 21.6 11.5 41.7 30.3 52.5 5.8 3.4 13.2 1.4 16.6-4.4 3.4-5.8 1.4-13.2-4.4-16.6-11.3-6.5-18.2-18.5-18.2-31.5 0-6.7-5.4-12.1-12.1-12.1-6.7 0-12.2 5.4-12.2 12.1zm93.4 51.1c17.5-11.1 28-30.4 28-51.1 0-6.7-5.4-12.1-12.1-12.1s-12.1 5.4-12.1 12.1c0 12.4-6.3 24-16.8 30.7-5.7 3.5-7.5 10.9-4.1 16.7s10.9 7.5 16.7 4.1c0-.2.2-.3.4-.4z"}),o.createElement("ellipse",{fill:"#C59262",cx:256.5,cy:159.1,rx:24.3,ry:36.4}))},hI=function(t){var n=t.title,r=H(t,bM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v24.4H0zm0 48.9h513v24.4H0zm0 48.8h513v24.4H0zm0 48.9h513V171H0zm0 48.8h513v24.4H0zm0 48.9h513v24.4H0zm0 48.8h513v24.4H0z",fill:"#c00"}),o.createElement("path",{fill:"#006",d:"M0 0h256.5v195.4H0z"}),o.createElement("path",{d:"M153.3 42.1C122.6 30.7 88.5 46.3 77.1 77s4.2 64.8 34.9 76.2c13.3 5 28 5 41.4 0-30.7 24.5-75.4 19.6-100-11.1s-19.6-75.4 11.1-100c26-20.7 62.9-20.7 88.8 0zm26.7 75-20.6 23.3 5.4-30.6-31-1.6 27.3-14.9L143 68l28.6 12 8.4-29.9 8.4 29.9L217 68l-18 25.4 27.3 14.9-31 1.6 5.4 30.6-20.7-23.4z",fill:"#fc0"}))},gI=function(t){var n=t.title,r=H(t,yM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#006d66",d:"M0 0h513v104H0z"}),o.createElement("path",{d:"M0 119h513v104H0z"}),o.createElement("path",{fill:"#f4d900",d:"M0 238h513v104H0z"}),o.createElement("path",{fill:"#cb0f31",d:"M256 171 0 342V0z"}),o.createElement("path",{fill:"#f4d900",d:"m83.5 109.8 15.1 46.5h48.9L107.9 185l15.1 46.5-39.5-28.7-39.6 28.7L59 185l-39.5-28.7h48.9z"}))},vI=function(t){var n=t.title,r=H(t,EM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#009a44",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#002f6c",d:"M0 342V0h513"}),o.createElement("path",{fill:"#FFF",d:"M513 67V0H412.5L0 275v67h100.5z"}),o.createElement("path",{fill:"#c8102e",d:"M513 0v40.2L60.3 342H0v-40.2L452.7 0z"}),o.createElement("path",{fill:"#ffcd00",d:"m188.1 104.1-22.8 10.7 12.2 22.1-24.8-4.8-3.1 25-17.3-18.4-17.2 18.4-3.1-25-24.8 4.8 12.2-22.1-22.8-10.7 22.8-10.7-12.2-22.1L112 76l3.1-25 17.2 18.4L149.6 51l3.1 25 24.8-4.7-12.2 22.1z"}))},xI=function(t){var n=t.title,r=H(t,wM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#009543",d:"M0 234.8h513V342H0V234.8z"}),o.createElement("path",{fill:"#ED4135",d:"M0 105.8h513v129.3H0V105.8z"}),o.createElement("path",{fill:"#0035AD",d:"M0 0h513v106.8H0V0z"}),o.createElement("circle",{fill:"#FAE600",stroke:"#000",strokeWidth:5.3,cx:192.4,cy:171,r:126.1}),o.createElement("path",{d:"m246.8 284.1-25.5 9.6-28.9 3.4-30.3-1.9-28.8-12.4s22.9-23.5 32.6-26.9c6.9-2.4 18-3 18-3V97.8l-.2-52.9h13.5l-.4 54.1v153.7s12.3 1 17.7 3.3c9 3.8 32.3 28.1 32.3 28.1z"}),o.createElement("path",{d:"m168.3 80.8 39.5-19.7 5.1 10.3-39.5 19.7-5.1-10.3z"}),o.createElement("ellipse",{cx:190.6,cy:224.8,rx:13.5,ry:21.2}),o.createElement("circle",{cx:190.3,cy:114.9,r:16.8}),o.createElement("ellipse",{cx:191.1,cy:169.2,rx:16,ry:9.7}),o.createElement("path",{d:"M171.4 146.7h37.7v8h-37.7zm0 36h37.7v8h-37.7z"}),o.createElement("g",{fill:"none",stroke:"#000",strokeWidth:10,strokeMiterlimit:10},o.createElement("path",{d:"M163.4 112.2s.8 26.8 27.3 26.8 26.5-26.8 26.5-26.8"}),o.createElement("path",{className:"prefix__st4",d:"M163.4 224.8s1.9-26.6 27.3-26.6 26.5 26.6 26.5 26.6"})))},bI=function(t){var n=t.title,r=H(t,CM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#e05206",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#0db02b",d:"M0 228h513v114H0z"}),o.createElement("circle",{fill:"#e05206",cx:256.5,cy:171,r:32}))},yI=function(t){var n=t.title,r=H(t,$M);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h171v342H0zm342 0h171v342H342zm-38 227L256 75l-48 152h41v40h14v-40z",fill:"#007934"}))},EI=function(t){var n=t.title,r=H(t,MM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h171v342H0zm342 0h171v342H342z",fill:"#008751"}))},wI=function(t){var n=t.title,r=H(t,SM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v114H0zm0 228h513v114H0z",fill:"#0067c6"}),o.createElement("circle",{fill:"none",stroke:"#FFDA44",strokeWidth:5,cx:256.5,cy:171,r:50}),o.createElement("path",{fill:"#0a47a5",d:"M285.7 176.7h-58.4l-9.8 16.9h78z"}),o.createElement("path",{fill:"#6fd8f3",d:"m256.5 126.1-29.2 50.6h58.4z"}),o.createElement("path",{fill:"#97c924",d:"M221.7 186.4h69.6l-8-13.9h-53.6z"}),o.createElement("circle",{fill:"red",cx:256.5,cy:161,r:5}))},CI=function(t){var n=t.title,r=H(t,NM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 114h513v114H0z"}),o.createElement("path",{fill:"#cd1f2a",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#1d4185",d:"M0 228h513v114H0z"}))},$I=function(t){var n=t.title,r=H(t,PM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#ba0c2f",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M513 211H202.6v131h-79.9V211H0v-80h122.7V0h79.9v131H513v61.4z"}),o.createElement("path",{fill:"#00205b",d:"M513 149.6v42.8H184V342h-42.7V192.4H0v-42.8h141.3V0H184v149.6z"}))},MI=function(t){var n=t.title,r=H(t,RM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 342V-.2L281.1 175H87.8l184 167z"}),o.createElement("path",{fill:"#D80027",d:"M243.4 164.8 9.2 19.3v313.5h235.2l-184.1-168z"}),o.createElement("path",{fill:"#FFF",d:"m62.4 204.1 7.9 16.2 14.9-10.1-1.3 18 18-1.3-10.1 14.9 16.2 7.9-16.2 7.8 10.1 15-18-1.3 1.3 17.9L70.3 279l-7.9 16.2-7.8-16.2-14.9 10.1 1.3-17.9-18 1.3 10.1-15-16.2-7.8 16.2-7.9L23 226.9l18 1.3-1.3-18 14.9 10.1zm-5.3-103.7 5.3 7.7 5.4-7.7 2 9.1 7.9-5-1.7 9.2 9.3-1.7-5.1 7.9 9.2 2-7.8 5.4 7.8 5.3-9.2 2 5.1 7.9-9.3-1.7 1.7 9.3-7.9-5.1-2 9.2-5.4-7.7-5.3 7.7-2-9.2-7.9 5.1 1.7-9.3-9.3 1.7 5.1-7.9-9.2-2 7.7-5.3-7.7-5.4 9.2-2-5.1-7.9 9.3 1.7-1.7-9.2 7.9 5z"}),o.createElement("path",{fill:"#FFF",d:"M18.5 108.7s4.8 27.7 44 27.7 44-27.7 44-27.7c0 9.4-6 46.5-44 46.5s-44-38.2-44-46.5z"}))},SI=function(t){var n=t.title,r=H(t,IM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#ffc72c",d:"M0 155h513v32H0z"}),o.createElement("path",{fill:"#FFF",d:"m164.2 189 7.9 27.7 20.7-20-7 27.9 28-7-20.1 20.7 27.8 7.9-27.8 7.9 20.1 20.7-28-7 7 28-20.7-20.1-7.9 27.8-7.9-27.8-20.7 20.1 7-28-27.9 7 20-20.7-27.7-7.9 27.7-7.9-20-20.7 27.9 7-7-27.9 20.7 20z"}))},NI=function(t){var n=t.title,r=H(t,FM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#fedd00",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})),o.createElement("circle",{fill:"#012169",cx:126.8,cy:85.7,r:29.9}),o.createElement("path",{d:"m128.3 128.6 3.5 10.9h11.5l-9.3 6.7 3.5 10.9-9.2-6.7-9.3 6.7 3.5-10.9-9.2-6.7h11.4zm-.1-115.4 3.6 10.9h11.4l-9.2 6.7 3.5 10.9-9.3-6.7-9.2 6.7 3.5-10.9-9.3-6.7h11.5zm76.4 58.1 3.5 10.9h11.5l-9.3 6.7 3.5 10.9-9.2-6.7-9.3 6.7 3.5-10.9-9.2-6.7H201zm-151.8.1 3.6 10.9h11.4l-9.3 6.8 3.6 10.8-9.3-6.7-9.3 6.7 3.6-10.8-9.3-6.8h11.5zm74-15.6 6.7 20.7h21.8l-17.7 12.8 6.8 20.6-17.6-12.7-17.7 12.7 6.8-20.6-17.6-12.8H120z",fill:"#fedd00"}))},PI=function(t){var n=t.title,r=H(t,TM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"m448.9 107.7 4.2 13.1h13.8l-11.1 8.1L460 142l-11.1-8.1-11.1 8.1 4.2-13.1-11.1-8.1h13.7zm-64.2 145.9 5.1 15.6h16.4l-13.2 9.7 5 15.6-13.3-9.7-13.2 9.7 5-15.6-13.3-9.7h16.5zm.1-210.2 4.7 14.6h15.3l-12.4 8.9 4.7 14.6-12.3-9-12.4 9 4.7-14.6-12.3-8.9H380zm-64.2 86 4.7 14.5h15.3l-12.3 9 4.7 14.5-12.4-8.9-12.3 8.9 4.7-14.5-12.4-9h15.3z",fill:"#D80027",stroke:"#FFF",strokeWidth:2,strokeMiterlimit:10}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})))},RI=function(t){var n=t.title,r=H(t,OM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M138 0h377v114H138z"}),o.createElement("path",{fill:"#4A7C3A",d:"M138 230h377v114H138z"}),o.createElement("g",{fill:"none",stroke:"#FFF",strokeWidth:10,strokeMiterlimit:2},o.createElement("path",{d:"M40.3 35.2s37.1 48 50.8 54.5c13.7 6.5 17.1 5.7 17.1 5.7"}),o.createElement("path",{d:"M100 35.2S62.9 80.6 53.3 87.6c-9.6 7-18.7 7.8-18.7 7.8m17.1-30.1h37.9M70.7 35.2v30.1"})))},II=function(t){var n=t.title,r=H(t,zM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#da121a",d:"M256.5 0H513v171H256.5z"}),o.createElement("path",{fill:"#072357",d:"M0 171h256.5v171H0zM128 37.9l11.8 36.4h38.3l-31 22.4 11.9 36.4-31-22.5-31 22.5 11.9-36.4-31-22.4h38.3z"}),o.createElement("path",{fill:"#da121a",d:"m384 208.9 11.8 36.4h38.3l-31 22.4 11.9 36.4-31-22.5-31 22.5 11.9-36.4-31-22.4h38.3z"}))},FI=function(t){var n=t.title,r=H(t,AM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h171v342H0zm342 0h171v342H342z",fill:"#D80027"}),o.createElement("path",{fill:"#00A854",d:"M224.3 119c4.3 7.6-17.1 71.9-6.5 87.8s21.9 22.4 38.2 22.4c16.3 0 30.7-6.8 39.6-24.7s-14.2-76.3-6.8-85.4c7.4-9.1 29.3 8.5 35.5 35.2 6.2 26.7-8.4 60.2-20.7 70-12.3 9.7-20.3 9.7-47.6 9.7s-32.4-1.4-45-10.7c-12.5-9.4-28.9-35.8-22.7-67.3 6.2-31.7 31.7-44.6 36-37z"}),o.createElement("path",{fill:"#D91023",stroke:"#E7CA00",strokeWidth:2,d:"M272.6 218.9H240c-7.5 0-13.6-6.1-13.6-13.6v-45c0-7.5 6.1-13.6 13.6-13.6h32.6c7.5 0 13.6 6.1 13.6 13.6v45c.1 7.5-6 13.6-13.6 13.6z"}),o.createElement("ellipse",{fill:"#E7CA00",cx:256.4,cy:200.9,rx:25,ry:13.2}),o.createElement("path",{fill:"#FFF",d:"M256.4 147.6v35.1h28.9c0-38.3 3.9-35.1-28.9-35.1z"}),o.createElement("path",{fill:"#007EA8",d:"M256.4 147.6v35.1h-28.9c0-37.9-3.7-35.1 28.9-35.1z"}),o.createElement("path",{fill:"#947245",d:"M270.1 158.1h1.6v21.5h-1.6z"}),o.createElement("circle",{fill:"#D18219",stroke:"#FFF",cx:241.8,cy:165.2,r:8.1}),o.createElement("ellipse",{fill:"none",stroke:"#00A854",strokeWidth:6,cx:256.4,cy:122.2,rx:20.5,ry:16.5}),o.createElement("ellipse",{fill:"none",stroke:"#E7CA00",strokeWidth:3,cx:256.4,cy:122.2,rx:20.5,ry:16.5}),o.createElement("circle",{fill:"#E7CA00",cx:270.9,cy:163.1,r:8.9}))},TI=function(t){var n=t.title,r=H(t,jM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v85H0zm0 257h513v85H0z",fill:"#D80027"}),o.createElement("path",{fill:"#1481DB",d:"M329.5 171c0 40.3-32.7 73-73 73s-73-32.7-73-73"}),o.createElement("path",{fill:"#FFAB50",d:"M256.5 98c-40.3 0-73 32.7-73 73h146c0-40.3-32.7-73-73-73z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M181.9 169.3h150.5v4.5H181.9z"}),o.createElement("path",{d:"M222.4 162.9h66.5v10.9h-66.5z"})),o.createElement("path",{d:"M212.8 131.1H223s-1.6 55.5.1 57.4c11.9 13.5 25.3 0 25.3 0s-2.7 18.9-17.8 18.9-17.8-18.7-17.8-18.7v-57.6zm85.6 0h-10.2s1.6 55.5-.1 57.4c-11.9 13.5-25.3 0-25.3 0s2.7 18.9 17.8 18.9c15.1 0 17.8-18.7 17.8-18.7v-57.6zM242.6 156l25.9 6.9v-36.4s-14-3.8-14-16.8 14-9.6 14-9.6-25.9-4.6-25.9 8.1V156z",fill:"#D80027",stroke:"#630810",strokeWidth:2}))},OI=function(t){var n=t.title,r=H(t,DM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#C8102E",d:"M0 0h513v342"}),o.createElement("path",{d:"m153.7 225 2.7 8.5h9l-7.2 5.2 2.7 8.6-7.2-5.3-7.3 5.3 2.8-8.6-7.3-5.2h9zm-25.3-120 5.2 16h16.8l-13.6 9.9 5.2 16-13.6-9.9-13.6 9.9 5.2-16-13.6-9.9h16.8zm0 160.3 5.2 16h16.8l-13.6 9.9 5.2 16-13.6-9.9-13.6 9.9 5.2-16-13.6-9.9h16.8zm50.7-96.1 5.2 16h16.8l-13.6 9.9 5.2 16-13.6-9.9-13.6 9.9 5.2-16-13.6-9.9h16.8zm-107.3 4.1 5.2 16h16.8l-13.6 9.9 5.2 15.9-13.6-9.8-13.6 9.8 5.2-15.9-13.6-9.9h16.8z",fill:"#FFF"}),o.createElement("g",{fill:"#FFCD00"},o.createElement("path",{d:"M288 79.9s33 13.8 30 19.7c-2.9 5.9-17.4-7.1-30-3.5-12.7 3.5-28.6 32.4-28.6 32.4s18.6 2.7 34.2 1.5c15.6-1.2 19.7-7.4 19.7-7.4s.7 15.3 12.7 24.3c18.2 13.6 56.2 22.3 56.2 22.3s.6-6.5-2.7-20.7-8-21.4-8-21.4 55.7 38.3 51.2 59.3-30.1 19.6-30.1 19.6 28.4 12.5 37.4-13.5c12.4-35.6-42.4-65.2-42.4-65.2s6.5 3.1 17.1 4.6 20.3-.3 20.3-.3-13.8-43.6-29.2-52.1c-15.3-8.5-37.1-.9-37.1-.9s9.1-5.9 10-15.9c.9-10-3.5-24.1-3.5-24.1-50.1 21.2-21.2 41.2-33 49.2-2 1.4-9.5-9.9-18.8-8.2-11.5 1.8-25.4.3-25.4.3z"}),o.createElement("path",{d:"M404.7 131.8s15.3 17.7 8.2 35.9c-7.1 18.3-37.7 13.5-37.7 13.5s24.7 13.9 40.6-5.3-2.4-43.6-2.4-43.6l-8.7-.5z"})))},zI=function(t){var n=t.title,r=H(t,kM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#0038A8",d:"M513 0v171H256.5L0 0z"}),o.createElement("path",{fill:"#CE1126",d:"M513 171v171H0l256.5-171z"}),o.createElement("g",{fill:"#FCD116"},o.createElement("path",{d:"m22.1 33.8 8.5 11.9 13.8-4.5-8.6 11.7 8.5 11.8-13.8-4.6-8.6 11.7V57.2L8.2 52.7 22 48.4zm0 236.4 8.5 11.8 13.8-4.4-8.6 11.7 8.5 11.8-13.8-4.6-8.6 11.7v-14.6l-13.7-4.5 13.8-4.3zM210.5 152l-8.5 11.8-13.8-4.4 8.6 11.7-8.4 11.8 13.7-4.6 8.6 11.7v-14.6l13.7-4.5-13.8-4.3z"}),o.createElement("circle",{cx:95,cy:171,r:32}),o.createElement("path",{d:"m95 171 11.2 56.5-3.4 3.4-3.7 3.5-4.2 4.2-4.2-4.2-3.7-3.5-3.4-3.4L95 171zm0 0-11.2-56.5 3.4-3.4 3.7-3.5 4.2-4.2 4.2 4.2 3.7 3.5 3.4 3.4L95 171zm0 0 56.5-11.2 3.4 3.4 3.5 3.7 4.2 4.2-4.2 4.2-3.5 3.7-3.4 3.4L95 171zm0 0-56.5 11.2-3.4-3.4-3.5-3.7-4.2-4.2 4.2-4.2 3.5-3.7 3.4-3.4L95 171zm0 0 32-47.9h4.8l5.1.2h5.9v5.9l.2 5.1v4.8L95 171zm0 0-32 47.9h-4.8l-5.1-.2h-5.9v-5.9l-.2-5.1v-4.8L95 171zm0 0 47.9 32v4.8l-.2 5.1v5.9h-5.9l-5.1.2h-4.8L95 171zm0 0-47.9-32v-4.8l.2-5.1v-5.9h5.9l5.1-.2h4.8L95 171z"})))},AI=function(t){var n=t.title,r=H(t,HM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h900v600H0z"}),o.createElement("path",{fill:"#01411C",d:"M225 0h675v600H225z"}),o.createElement("path",{fill:"#FFF",d:"M562.5 120c99.4 0 180 80.6 180 180s-80.6 180-180 180-180-80.6-180-180 80.6-180 180-180z"}),o.createElement("path",{fill:"#01411C",d:"M498.9 135.8c68.1-60.5 172.4-54.4 232.9 13.7s54.4 172.4-13.7 232.9-172.4 54.4-232.9-13.7-54.4-172.4 13.7-232.9z"}),o.createElement("path",{fill:"#FFF",d:"m628.1 165.3 75.8 85.3-111.5-24.4L697 180.4l-57.7 98.5-11.2-113.6z"}))},jI=function(t){var n=t.title,r=H(t,LM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#dc143c",d:"M0 171h513v171H0z"}))},DI=function(t){var n=t.title,r=H(t,VM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},kI=function(t){var n=t.title,r=H(t,_M);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("g",{stroke:"#000"},o.createElement("path",{fill:"#96877d",d:"m400.7 134.5-16.7 5.6-16.7-5.6-5.6-13.9 5.6-13.9h33.4l-5.6 13.9z"}),o.createElement("path",{fill:"#006ec7",d:"M345 134.5v61.2c0 29.8 39 39 39 39s39-9.1 39-39v-61.2h-78z"}),o.createElement("path",{fill:"#337321",d:"M348.6 210.2c9.6 18.4 35.4 24.5 35.4 24.5s25.9-6.1 35.4-24.5l-35.4-59-35.4 59z"}),o.createElement("path",{fill:"#f7e017",d:"m423 195.1-39-60.6-39 60.6v.6c0 5.5 1.3 10.3 3.5 14.5l35.4-55.1 35.4 55.1c2.2-4.2 3.5-9 3.5-14.5v-.6z"})),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})),o.createElement("path",{fill:"#f7e017",d:"M375 189.5h18.3l.1 5.5h-5.8v25.2l12.3-6.1 3 5-18.9 9.7-18.4-9.8 2.9-5.1 12.6 6.3V195H375z"}))},HI=function(t){var n=t.title,r=H(t,BM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v68.4H0zm0 136.8h513v68.4H0zm0 136.8h513V342H0z",fill:"#E00"}),o.createElement("path",{fill:"#04F",d:"M256.5 171 0 342V0z"}),o.createElement("path",{fill:"#FFF",d:"m84 110.1 15.1 46.5H148l-39.6 28.8 15.1 46.5L84 203.1l-39.6 28.8 15.1-46.5L20 156.6h48.9z"}))},LI=function(t){var n=t.title,r=H(t,GM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#007A3D",d:"M0 228h513v114H0z"}),o.createElement("path",{fill:"#CE1126",d:"M256.5 171 0 342V0z"}))},VI=function(t){var n=t.title,r=H(t,UM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"red",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#060",d:"M197 0v342H0V0z"}),o.createElement("circle",{fill:"#FF0",cx:197.1,cy:171,r:64}),o.createElement("path",{fill:"red",d:"M161.1 139v40c0 19.9 16.1 36 36 36s36-16.1 36-36v-40h-72z"}),o.createElement("path",{fill:"#FFF",d:"M197.1 191c-6.6 0-12-5.4-12-12v-16h24v16c0 6.6-5.3 12-12 12z"}))},_I=function(t){var n=t.title,r=H(t,WM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#09f",d:"M0 0h513v342H0z"}),o.createElement("circle",{fill:"#ff0",cx:220,cy:171,r:74}))},BI=function(t){var n=t.title,r=H(t,KM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#D52B1E",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#0038A8",d:"M0 228h513v114H0z"}),o.createElement("path",{fill:"#009B3A",d:"m279.7 148-8.7 8.7c3.7 3.7 6 8.8 6 14.5 0 11.3-9.2 20.5-20.5 20.5s-20.5-9.2-20.5-20.5c0-5.7 2.3-10.8 6-14.5l-8.7-8.7c-5.9 5.9-9.6 14.1-9.6 23.2 0 18.1 14.7 32.8 32.8 32.8s32.8-14.7 32.8-32.8c0-9.1-3.7-17.3-9.6-23.2z"}),o.createElement("path",{fill:"#FEDF00",stroke:"#000",d:"m256.5 157.2 3.2 9.9h10.5l-8.5 6.2 3.2 9.9-8.4-6.2-8.4 6.2 3.2-9.9-8.5-6.2h10.5z"}),o.createElement("circle",{fill:"none",stroke:"#000",strokeWidth:2,cx:256.5,cy:171,r:45}))},GI=function(t){var n=t.title,r=H(t,qM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#8a1538",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M0 0v342h150.3l37.7-19.6-37.7-18.9 37.7-19-37.7-18.9 37.7-19-37.7-19 37.7-18.9-37.7-19 37.7-19-37.7-18.9 37.7-19-37.7-18.9 37.7-19-37.7-19L188 57l-37.7-19L188 19.1 150.3 0z"}))},UI=function(t){var n=t.title,r=H(t,YM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),o.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},WI=function(t){var n=t.title,r=H(t,XM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#002b7f",d:"M0 0h171v342H0z"}),o.createElement("path",{fill:"#fcd116",d:"M171 0h171v342H171z"}),o.createElement("path",{fill:"#ce1126",d:"M342 0h171v342H342z"}))},KI=function(t){var n=t.title,r=H(t,ZM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#c6363c",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#0c4076",d:"M0 114h513v114H0z"}),o.createElement("path",{fill:"#FFF",d:"M0 228h513v114H0z"}),o.createElement("path",{fill:"#c6363c",d:"M120 96.8v85.1c0 48.4 63.3 63.3 63.3 63.3s63.3-14.8 63.3-63.3V96.8H120z"}),o.createElement("path",{d:"M146.1 111.6h74.2V82l-14.8 7.4-22.3-22.3L161 89.4 146.1 82zm85.6 82.2-48.3-48.2-48.2 48.2 15.7 15.7 32.5-32.5 32.5 32.5z",fill:"#edb92e"}),o.createElement("path",{fill:"#FFF",d:"M231.7 148.7h-22.5c1.3-2.2 2-4.7 2-7.4 0-8.2-6.6-14.8-14.8-14.8-5.7 0-10.6 3.2-13.1 7.8-2.5-4.7-7.4-7.8-13.1-7.8-8.2 0-14.8 6.6-14.8 14.8 0 2.7.7 5.2 2 7.4h-22.1c0 8.2 7.1 14.8 15.3 14.8h-.6c0 8.2 6.6 14.8 14.8 14.8 0 7.3 5.2 13.3 12.1 14.6l-11.7 26.4c5.6 2.3 11.7 3.5 18.1 3.5s12.5-1.3 18.1-3.5L189.9 193c6.9-1.3 12.1-7.3 12.1-14.6 8.2 0 14.8-6.6 14.8-14.8h-.5c8.2 0 15.4-6.7 15.4-14.9z"}))},qI=function(t){var n=t.title,r=H(t,JM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#0039a6",d:"M0 114h513v114H0z"}),o.createElement("path",{fill:"#d52b1e",d:"M0 228h513v114H0z"}))},YI=function(t){var n=t.title,r=H(t,QM);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#00A5E0",d:"M0 0h513v171H0z"}),o.createElement("path",{fill:"#F9D202",d:"M0 171h513v85.5H0z"}),o.createElement("path",{fill:"#1E5F3D",d:"M0 256.5h513V342H0z"}),o.createElement("path",{fill:"#F9D202",d:"m420.6 36.1 2.3 35.9 11.6-34.1-7 35.3 19.9-29.9-15.8 32.2 27-23.7-23.7 27L467.1 63l-29.9 19.9 35.3-7-34.1 11.6 35.9 2.3-35.9 2.3 34.1 11.6-35.3-7 29.9 19.9-32.2-15.8 23.7 27-27-23.7 15.8 32.2-19.9-29.9 7 35.3-11.6-34.1-2.3 35.9-2.3-35.9-11.6 34.1 7-35.3-19.9 29.9 15.8-32.2-27 23.7 23.7-27-32.2 15.8L404 96.7l-35.3 7 34.1-11.6-35.9-2.3 35.9-2.3-34.1-11.6 35.3 7L374.1 63l32.2 15.8-23.7-27 27 23.7-15.8-32.2 19.9 29.9-7-35.3L418.3 72z"}),o.createElement("circle",{fill:"#F9D202",stroke:"#00A5E0",strokeWidth:2,cx:420.6,cy:89.8,r:15.9}))},XI=function(t){var n=t.title,r=H(t,eS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{d:"M0 0h513v342H0z",fill:"#fff"}),o.createElement("g",{fill:"#00512e"},o.createElement("path",{d:"M0 0v342h513V0zm218 76q1 2-2 5-3 2-1 4 3 4 0 6-2 1-5-1-6-6 0-14 6-4 8 0m-102 2 1 6q0 4-2 4-5 1-5-6l2-4zm39 1 1 2q-1 4-5 4-5 0-6-4c0-4 7-6 10-2m47 2q3 4 2 9c-1 2-22 19-24 19q-3 0-4-4l6-6 6-5v-3c-5-10 7-18 14-10m35-3q3 1 0 7-2 8-6 6c-3-1-3 14 0 19q2 4 7-1c2-3 2-5 2-15 0-12 0-13 2-13q5-2 5 13 1 11 3 13 3 6 6 3 3-2-1-12-3-12 1-16h9q2-2 9 1l6 2 1-2q4-4 6-1l3 17c3 16 3 16 7 24l15 30q1 6-4 5l-8-14-6-12 1 20c1 21 1 23-4 23q-4 2-4-15l-1-27-1-16-9-13c-8-12-8-13-11-13q-6-1-2 6l2 7q0 4 3 2 6-2 6 3-1 4-8 5l-5 2-5 2q-6 0-10-3-2-3-5 1-5 5-12 2-5-1-7-10l-1-3-1 3q-3 7-9 8-7 0-9-11-3-10 2-10 4-1 5 7l2 6q1 0 4-7 6-17 13-12h1c-1-1 2-10 4-11zm-97 10 2 16 1 9h4q5 2 6-1c2-1 2-2-1-11l-3-12 3-1 11 5V82q4-2 6 1l3 23 1 20h2q5 0 5 5 1 6 3 0 3-9 8-2 1 3 2 0 3-7 4-6c5 0 6 7 1 13q-3 3-7 3l-6 1q-5 4-10 0l-2-2v5c0 21-16 42-33 42q-21-1-23-21 0-5 2-6 4-1 6 6 1 12 12 13 14 2 24-15 6-11 1-5-12 18-28 11-7-5-9-17-2-6 1-7 5-3 6 6 1 12 10 12 7 0 13-8 5-8-1-7-11-1-8-12 8-11 17-5l3 2-1-12-4-22q-3 1 0 7c2 6 2 6 0 10l-5 5q-3 3-7 1h-5l-1 16c-1 19-1 20-4 21-4 1-4-2-4-19l1-15-3 1q-3 1-6-2c-2-2-2-2-3-14l-1-12q-2-1-2 10l-1 13q-3 6-8 4c-3-2-4-4-7-15q-4-15 2-14 4-1 5 8l1 5 1-6q0-13 9-12l6 2c2 3 2 4 2 14l1 11 2-1 1-8-2-16q-3-12 2-11 3-1 5 7m163-3q4 10 1 13-4 3-7-7-3-11 2-10zm12-3 3 7q2 6 1 8v16l2 27c2 22 2 21 6 21h3l-1-5-2-23-3-33c-2-16-1-19 3-19 3 0 8 14 6 16v24c5 47 5 48 0 47q-3-2-1 4l2 6q2 1 5-9 7-18 10-16 3 0 7 5 4 7 7 7 4-1 1-33l-1-21-10-12-9-15q0-5 8-1 5 2 6 6l2 6q3 4 1-4 0-10 3-10c4 0 9 10 7 13l-1 8q1 8 4 12l3 3-2-15c-2-16-2-19 1-20q3 0 5 4l4 5h2q6-4 8 9 0 8-4 8-3 0-4-6 1-8-3-5c-1 2-1 3 1 19l2 17 5 7c6 10 12 21 11 22q-2 3-5 2l-5-8-5-8 1 8c0 11 0 11-3 11q-5 3-5-7l-1-16c0-8-1-10-4-15l-4-5v19c1 21 0 25-5 28q-6 5-13-3l-4-5-4 9q-6 14-11 15-9-1-11-16-1-8-5-1c-3 5-12 13-19 17q-8 4-8-2-1-2 6-6c9-5 17-14 17-18l-5-78q2-4 5-1m89 5 4 6q1 1-2 3l-2 2 4 24q4 25 4 35c0 10 0 11-3 17q-7 13-19 14-8 0-7-2-2-4 7-6 15-2 14-23a708 708 0 0 0-8-75c3-2 3-1 8 5m-211 19 1 4q0 3 2 2 5 0 5 4c0 4-9 6-13 2-4-5 0-17 5-12m108 1h2l4-1q4 2 0 7-7 6-11-1v-5q3-2 5 0m55 2q3 4-1 6-2 0-1 5t-1 6q-1 2-10-6-8-7-6-9 3-4 7 0l2 2 2-3q5-3 8-1m-131 13c3 2 6 14 6 17q-1 6 6 1l10-4q5-1 7-4 4-9 10-12 10 0 11 9 0 7-16 13l-2 1 13 1c16 0 16 0 13 9q-2 7-4 7l-10 2q-19 3-17 9 1 2 4 3 6 3 3 7l-7 1q-13-2-21-10l-3-3-2 3q-7 10-19 13-10 2-15-10l-5 2q-18 10-19 8l-2-3c0-2 1-2 15-11l9-6q1-3 5-4c3 1 10-5 12-9q3-6-1-15l-2-8q1-5 6-6c3 0 8 5 8 7q-1 4-4 3v1l1 10c1 9-1 13-10 21l-7 6 2 3q5 9 15-2 10-8 10-23 0-10-6-24v-4q3-4 6 1m17 2q2 3 4 0 11-3 5 5c-4 5-12 5-15-1v-4zm118 5 1 2q1 2-7 8c-8 6-9 7-11 5q-5-4 6-10c8-6 8-6 11-5m-229 3q3 2-10 10-12 8-13 3-5-3 9-10 13-8 14-3m229 10c3 2 4 9 3 11q-3 3-6 1c-2-2-3-11-1-13q1-2 4 1m-172 7q3 3 2 7 1 5-3 5-3 1-3-3l-2-4q-3-3-1-6 4-2 7 1m-79 9 1 8q0 9 3 6 4-1 4 3-1 7-7 7-7-1-7-14-1-9 2-10zm168 12q0 4 3 2t4 3q-2 6-8 8l-4-2q-3-3-4-2-4 0-5-4l5-6q7-6 7-4 3 1 2 5m102 3q4 4 1 9-7 7-7-4t6-5m-42 73c0 2 1 2 12 2q24-1 22 11 0 7-6 10c-4 1-31 2-34 0q-2-1-2-6v-4h-82l-74-1c-16 0-28-10-28-10h92c91 0 92-1 92-2q-1-3 4-5c5-2 4 4 4 5"}),o.createElement("path",{d:"m195 86 1 1 1-1-1-1q-2 0-1 1m84 5q-2 2 1 5l3 3-1-4-1-5zm-125 45q-3 3-1 4 5-1 6-4zm110-7q-4 5 0 3 6-4 2-4zm-31 30q0 6 4 8l5 4q3 2 2-3 0-3 4-7 4-3 2-4l-13-3h-5zm104 101q-1 3 13 2c11 0 13 0 14-2l-13-1z"})))},ZI=function(t){var n=t.title,r=H(t,tS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#205831",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#004EB4",d:"M0 342V0h513"}),o.createElement("path",{fill:"#F4CA15",d:"M0 328v14h28L513 14V0h-28z"}),o.createElement("path",{d:"M47.2 11.5 54 32.6h22.3l-18 13.2 6.9 21.1-18-13.1-18 13.1L36 45.8 18 32.6h22.3zm113.6 0 6.9 21.1H190l-18 13.2 6.8 21.1-18-13.1-18 13.1 6.9-21.1-18-13.2H154zM47.2 122.3l6.8 21.1h22.3l-18 13.2 6.9 21.1-18-13-18 13 6.8-21.1-18-13.2h22.3zm113.6 0 6.9 21.1H190l-18 13.2 6.8 21.1-18-13-18 13 6.9-21.1-18-13.2H154zM104 66.9l6.8 21.2h22.3l-18 13 6.9 21.2-18-13.1-18 13.1 6.8-21.2-18-13h22.3z",fill:"#FFF"}))},JI=function(t){var n=t.title,r=H(t,nS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#F6CA3F",d:"M185.9 0 0 342 368.2 0z"}),o.createElement("path",{fill:"#007631",d:"M513 224.5 0 342h513z"}),o.createElement("path",{fill:"#CB262E",d:"M513 0H358.2L0 342l513-224.9z"}),o.createElement("path",{fill:"#002E69",d:"M0 0v342L185.9 0z"}))},QI=function(t){var n=t.title,r=H(t,rS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#cb0f32",d:"M0 0h513v114H0z"}),o.createElement("path",{fill:"#FFF",d:"M0 114h513v114H0z"}),o.createElement("path",{d:"M0 228h513v114H0z"}),o.createElement("path",{fill:"#006e28",d:"m0 0 200 171L0 342z"}))},eF=function(t){var n=t.title,r=H(t,oS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#004F8E",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#F6C500",d:"M192.4.3h-64.2v138.8H0v64.1h128.2V342h64.2V203.2H513v-64.1H192.4z"}))},tF=function(t){var n=t.title,r=H(t,iS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h900v600H0V0z"}),o.createElement("path",{fill:"#ED2939",d:"M0 0h900v300H0V0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M129.7 150c0-48.8 29-90.9 70.6-109.9-3.4-.3-6.8-.5-10.2-.5-61 0-110.4 49.4-110.4 110.4s49.4 110.4 110.4 110.4c3.4 0 6.9-.2 10.2-.5-41.7-19-70.6-61.1-70.6-109.9zm131.2-59.9 16.9-12.3H257l-6.5-19.9-6.5 19.9h-20.8l16.9 12.3-6.5 19.8 16.9-12.3 16.9 12.3zm37.3 114.5 16.9-12.2h-20.9l-6.5-19.9-6.4 19.9h-20.9l16.9 12.2-6.5 19.9 16.9-12.3 16.9 12.3z"}),o.createElement("path",{d:"m200.7 133.8 16.9-12.3h-20.9l-6.4-19.8-6.5 19.8h-20.9l16.9 12.3-6.4 19.9 16.9-12.3 16.9 12.3zm137.4-12.3h-20.9l-6.5-19.8-6.4 19.8h-20.9l16.9 12.3-6.5 19.9 16.9-12.3 16.9 12.3-6.4-19.9zm-114.4 83.1 16.9-12.2h-20.9l-6.4-19.9-6.5 19.9h-20.9l16.9 12.2-6.4 19.9 16.9-12.3 16.9 12.3z"})))},nF=function(t){var n=t.title,r=H(t,aS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#5f7dbd",d:"M449 139.7c-.1 44.4-7.2 92.1-65 114.9-57.8-22.8-64.9-70.5-65-114.9h130z"}),o.createElement("path",{fill:"#f2d049",d:"M449 139.7c0-16.7-.9-32.9-.5-47.1C426.9 83 398.4 81 383.9 81s-42.9 2-64.6 11.6c.4 14.2-.5 30.4-.5 47.1H449z"}),o.createElement("path",{fill:"#b38c79",d:"m369.5 204.5.3 10.3-12.8.2 4.9 13.2h-17.3c-18-20.2-23.4-42.4-24.9-68.1l9.1-9.7 8.3 14.3 10.8-12.8 7 7.8.8 15.7 13.8 29.1z"}),o.createElement("path",{fill:"#5c5568",d:"m436.6 192.5-8.6 18.3h-47l-29.2-19.5 25.7 10.5h25.1l3.7-6.5 7.2.2 2-3z"}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})))},rF=function(t){var n=t.title,r=H(t,lS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 240 160"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FF0D0B",d:"M0 0h240v160H0V0z"}),o.createElement("path",{fill:"#0E55BD",d:"M0 0h240v106.7H0V0z"}),o.createElement("path",{fill:"#FFF",d:"M0 0h240v53.3H0V0z"}),o.createElement("path",{fill:"#0E55BD",d:"M99.5 30.8c-12.4-5.5-26.4-5.5-38.8 0-2.2 28.7 4.4 44.8 19.3 48.7 14.9-3.9 21.5-20 19.5-48.7z"}),o.createElement("path",{d:"m82 37.1-1.5.1-.5-1.3-.5 1.3-1.5-.1.8 1.2-.8 1.2 1.5-.2.5 1.2.5-1.2 1.5.2-.8-1.2zm-5.5-7.4-1.4.2-.6-1.4-.6 1.4-1.4-.2.8 1.2-.8 1.2 1.4-.1.6 1.3.6-1.3 1.4.1-.8-1.2zm11 0-1.4.2-.6-1.4-.6 1.4-1.4-.2.8 1.2-.8 1.2 1.4-.1.6 1.3.6-1.3 1.4.1-.8-1.2z",fill:"#FF0"}),o.createElement("path",{fill:"#FFF",d:"m87.9 48.7-3.1 4.1-4.7-9.3-4.7 9.3-3.1-4.1-7.9 10.4c0 .5.1.9.3 1.5 2.1 7.6 8 13.7 15.5 16.3 7.5-2.5 13.3-8.7 15.5-16.3.1-.4.3-.9.3-1.5l-8.1-10.4z"}),o.createElement("path",{fill:"#0E55BD",d:"M64.5 60.5c.8 2.8 3.7 4.4 6.4 3.6.4-.1.8-.3 1.2-.5 1.6-.9 3.6-.9 5.2 0s3.6.9 5.2 0 3.6-.9 5.2 0c2.5 1.5 5.7.5 7.1-1.9.3-.4.4-.8.5-1.2l.3.1v3.9c-.9 0-1.9.3-2.7.7-1.6.9-3.6.9-5.2 0s-3.6-.9-5.2 0-3.6.9-5.2 0-3.6-.9-5.2 0-3.6.9-5.2 0c-.8-.4-1.7-.7-2.7-.7v-3.9"}),o.createElement("path",{fill:"#0E55BD",d:"M64.5 63.6c.8 2.8 3.7 4.4 6.4 3.6.4-.1.8-.3 1.2-.5 1.6-.9 3.6-.9 5.2 0s3.6.9 5.2 0 3.6-.9 5.2 0c2.5 1.5 5.7.5 7.1-1.9.3-.4.4-.8.5-1.2l.3.1v3.9c-.9 0-1.9.3-2.7.7-1.6.9-3.6.9-5.2 0s-3.6-.9-5.2 0-3.6.9-5.2 0-3.6-.9-5.2 0-3.6.9-5.2 0c-.8-.4-1.7-.7-2.7-.7v-3.9"}),o.createElement("path",{fill:"#FF0D0B",d:"m99.5 30.8-1.6 24.8c-.7 10.5-7.8 19.7-17.9 22.9-10.1-3.2-17.2-12.3-17.9-22.9l-1.6-24.8c-.5.3-.9.4-1.5.7l1.5 24.1C61.3 66.9 69.1 76.7 80 80c10.9-3.3 18.7-13.1 19.3-24.4l1.5-24.1c-.4-.3-.9-.6-1.3-.7z"}))},oF=function(t){var n=t.title,r=H(t,sS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#ba0c2f",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M513 211H202.6v131h-79.9V211H0v-80h122.7V0h79.9v131H513v61.4z"}),o.createElement("path",{fill:"#00205b",d:"M513 149.6v42.8H184V342h-42.7V192.4H0v-42.8h141.3V0H184v149.6z"}))},iF=function(t){var n=t.title,r=H(t,cS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 196.641h512v118.717H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 315.359h512v111.304H0z"}),o.createElement("path",{fill:"#FFF",d:"M129.468 181.799v85.136c0 48.429 63.267 63.267 63.267 63.267S256 315.362 256 266.935v-85.136H129.468z"}),o.createElement("path",{fill:"#D80027",d:"M146.126 184.294v81.941c0 5.472 1.215 10.64 3.623 15.485h85.97c2.408-4.844 3.623-10.012 3.623-15.485v-81.941h-93.216z"}),o.createElement("path",{fill:"#FFF",d:"M221.301 241.427h-21.425v-14.283h14.284v-14.283h-14.284v-14.284h-14.283v14.284h-14.282v14.283h14.282v14.283h-21.426v14.284h21.426v14.283h14.283v-14.283h21.425z"}),o.createElement("path",{fill:"#0052B4",d:"M169.232 301.658c9.204 5.783 18.66 9.143 23.502 10.636 4.842-1.494 14.298-4.852 23.502-10.636 9.282-5.833 15.79-12.506 19.484-19.939a24.878 24.878 0 0 0-14.418-4.583c-1.956 0-3.856.232-5.682.657-3.871-8.796-12.658-14.94-22.884-14.94-10.227 0-19.013 6.144-22.884 14.94a25.048 25.048 0 0 0-5.682-.657 24.88 24.88 0 0 0-14.418 4.583c3.691 7.433 10.198 14.106 19.48 19.939z"}))},aF=function(t){var n=t.title,r=H(t,uS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{fill:"#6DA544",d:"M0 85.337h512v113.775H0z"}),o.createElement("path",{fill:"#338AF3",d:"M0 312.888h512v113.775H0z"}))},lF=function(t){var n=t.title,r=H(t,dS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#338AF3",d:"M0 85.34h512v341.326H0z"}),o.createElement("path",{fill:"#FFF",d:"M512 85.334v166.69L0 256.175V85.334z"}),o.createElement("path",{fill:"#6DA544",d:"M323.744 203.099 256 270.843l-67.744-67.744a81.156 81.156 0 0 0-13.879 45.483v22.261c0 35.744 23.097 66.193 55.148 77.213-4.277 8.385-3.556 18.848 2.712 26.671l24.258-19.439 24.258 19.439c6.342-7.915 7.011-18.534 2.564-26.968 31.614-11.261 54.308-41.485 54.308-76.916v-22.261a81.174 81.174 0 0 0-13.881-45.483z"}),o.createElement("path",{fill:"#FFDA44",d:"M256 330.206c-32.732 0-59.362-26.63-59.362-59.362v-22.261c0-32.733 26.63-59.363 59.362-59.363s59.362 26.63 59.362 59.362v22.261c0 32.733-26.63 59.363-59.362 59.363z"}),o.createElement("path",{fill:"#338AF3",d:"M293.101 270.843v-22.261c0-20.458-16.643-37.101-37.101-37.101s-37.101 16.643-37.101 37.101v22.261L256 278.264l37.101-7.421z"}),o.createElement("path",{fill:"#6DA544",d:"M218.899 270.843c0 20.458 16.643 37.101 37.101 37.101s37.101-16.643 37.101-37.101h-74.202z"}),o.createElement("path",{fill:"#FFDA44",d:"M300.522 189.22c0-12.295-9.966-22.261-22.261-22.261a22.173 22.173 0 0 0-14.84 5.672v-13.093h7.421v-14.84h-7.421v-7.421h-14.84v7.421h-7.421v14.84h7.421v13.093a22.177 22.177 0 0 0-14.841-5.672c-12.295 0-22.261 9.966-22.261 22.261 0 6.591 2.867 12.512 7.421 16.589v13.093h74.203v-13.093c4.552-4.077 7.419-9.997 7.419-16.589z"}))},sF=function(t){var n=t.title,r=H(t,fS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.326H0z"}),o.createElement("path",{fill:"#D80027",d:"M330.207 85.331H512v341.337H330.207z"}),o.createElement("path",{d:"M0 85.331h181.793v341.337H0zm255.999 111.301 14.733 45.347h47.685l-38.576 28.029 14.734 45.348-38.576-28.026-38.577 28.026 14.737-45.348-38.576-28.029h47.681z",fill:"#496E2D"}))},cF=function(t){var n=t.title,r=H(t,mS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#338AF3",d:"M0 85.331h512v341.337H0z"}),o.createElement("path",{fill:"#FFF",d:"m256 157.273 22.663 69.748H352l-59.332 43.106 22.664 69.749L256 296.769l-59.332 43.107 22.664-69.749L160 227.021h73.337z"}))},uF=function(t){var n=t.title,r=H(t,pS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.337H0z"}),o.createElement("path",{fill:"#A2001D",d:"M0 196.636h512v118.728H0z"}),o.createElement("path",{d:"M0 352.462h512v74.207H0zM0 85.331h512v74.207H0z",fill:"#6DA544"}),o.createElement("path",{fill:"#FFDA44",d:"m256.742 218.003 9.43 29.021h30.518L272 264.963l9.431 29.023-24.689-17.937-24.689 17.937 9.431-29.023-24.69-17.939h30.518z"}))},dF=function(t){var n=t.title,r=H(t,hS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{fill:"#496E2D",d:"M0 322.783h512v103.88H0z"}),o.createElement("path",{d:"M0 85.337h512v104.515H0z"}),o.createElement("path",{fill:"#A2001D",d:"M0 210.877h512v89.656H0z"}),o.createElement("path",{fill:"#0052B4",d:"M256 256.006 0 426.668V85.331z"}),o.createElement("path",{fill:"#FFDA44",d:"m73.178 209.188 20.831 29.067 34.084-10.83-21.207 28.795 20.83 29.069-33.939-11.271-21.208 28.794.234-35.762-33.94-11.273 34.083-10.83z"}))},fF=function(t){var n=t.title,r=H(t,gS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{d:"M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z",fill:"#6DA544"}),o.createElement("path",{fill:"#D80027",d:"M256 256.006 0 426.668V85.331z"}),o.createElement("path",{d:"m302.049 226.318 7.368 22.674h23.842l-19.288 14.016 7.366 22.674-19.288-14.015-19.287 14.015 7.366-22.674-19.288-14.016h23.842zm74.203 0 7.367 22.674h23.842l-19.288 14.016 7.367 22.674-19.288-14.015-19.288 14.015 7.367-22.674-19.288-14.016h23.842z"}))},mF=function(t){var n=t.title,r=H(t,vS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{d:"M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z",fill:"#0052B4"}),o.createElement("path",{fill:"#FFDA44",d:"M228.582 261.936 256 214.447l27.418 47.489z"}),o.createElement("path",{fill:"#6DA544",d:"M291.616 277.616 256 295.425l-35.616-17.809v-23.744h71.232z"}),o.createElement("path",{fill:"#FFDA44",d:"m289.579 216.485-12.592 12.592c5.37 5.372 8.693 12.791 8.693 20.988 0 16.392-13.289 29.68-29.68 29.68-16.392 0-29.68-13.289-29.68-29.68 0-8.195 3.322-15.616 8.693-20.988l-12.592-12.592c-8.594 8.594-13.91 20.466-13.91 33.579 0 26.228 21.261 47.489 47.489 47.489s47.489-21.261 47.489-47.489c0-13.114-5.316-24.987-13.91-33.579z"}))},pF=function(t){var n=t.title,r=H(t,xS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#0052B4",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{fill:"#D80027",d:"M512 85.331v166.69L0 256.173V85.331z"}),o.createElement("path",{fill:"#FFF",d:"M256 256.006 0 426.668V85.331z"}),o.createElement("g",{fill:"#FFDA44"},o.createElement("path",{d:"M59.621 256a59.546 59.546 0 0 0-.193 4.57c0 32.821 26.607 59.429 59.429 59.429s59.429-26.607 59.429-59.429c0-1.539-.078-3.061-.193-4.57H59.621z"}),o.createElement("circle",{cx:118.862,cy:210.287,r:18.286})),o.createElement("path",{fill:"#D80027",d:"M77.715 205.714v59.429c0 31.494 41.144 41.143 41.144 41.143s41.144-9.649 41.144-41.143v-59.429H77.715z"}),o.createElement("path",{fill:"#338AF3",d:"M118.877 287.148c-7.632-2.746-22.876-9.767-22.876-22.006v-41.144h45.715v41.144c-.001 12.28-15.244 19.283-22.839 22.006z"}),o.createElement("path",{fill:"#F3F3F3",d:"M128.001 246.856v-9.142l-9.144-4.571-9.142 4.571v9.142l-4.571 4.573v18.285h27.428v-18.285z"}))},hF=function(t){var n=t.title,r=H(t,bS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},r),n&&o.createElement("title",null,n),o.createElement("path",{d:"M0 0h900v600H0z",fill:"#0f0f0f"}),o.createElement("path",{d:"M0 0h900v400H0z",fill:"#fff"}),o.createElement("path",{d:"M0 0h900v200H0z",fill:"#047a3f"}),o.createElement("path",{d:"m176.26 375 48.738-150 48.738 150-127.6-92.705h157.72M626.256 375l48.738-150 48.738 150-127.6-92.705h157.72M401.252 375l48.738-150 48.738 150-127.6-92.705h157.72",fill:"#ce1126"}))},gF=function(t){var n=t.title,r=H(t,yS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#2B5DEA",d:"M0 0h900v600H0V0z"}),o.createElement("path",{fill:"#FFDF29",d:"M0 100h900v400H0V100z"}),o.createElement("path",{fill:"#D70000",d:"M0 150h900v300H0V150z"}),o.createElement("path",{fill:"#FFF",d:"M450 171.4v257.2c114.3 0 171.4-85.7 214.3-128.6-42.9-42.9-100-128.6-214.3-128.6z"}),o.createElement("path",{d:"M450 171.4c-100 0-171.4 85.7-214.3 128.6C278.6 342.9 350 428.6 450 428.6V171.4z"}),o.createElement("path",{fill:"#FFF",d:"M346.3 254.3h21v91.3h-21zm51.9 0h21v91.3h-21z"}),o.createElement("path",{d:"M477.8 254.3h21v91.3h-21zm51.9 0h21v91.3h-21z"}))},vF=function(t){var n=t.title,r=H(t,ES);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})),o.createElement("path",{fill:"#1799f8",d:"M448.9 169.5c0 9.6-.3 29.6-1.4 39.2-4.1 34.9-23.5 68.8-62.1 85.9-45.3-17.9-60.8-51-64.9-85.9-1.1-9.6-1.5-19.4-1.5-29l.3-47.1h129.2l.4 36.9z"}),o.createElement("path",{fill:"#FFF",d:"M447.5 208.7c-.2 1.6-.4 3.3-.6 4.9-4.8 33.1-22.9 65.4-61.5 81-43.2-17-59.4-47.9-64.2-81-.2-1.6-.4-3.2-.6-4.9"}),o.createElement("path",{fill:"#1799f8",d:"m385.4 251.7-22.9-43h45.8z"}),o.createElement("path",{fill:"#FFF",d:"m385.4 165.8-22.9 42.9h45.8z"}),o.createElement("ellipse",{fill:"#dcb072",cx:474.8,cy:236.8,rx:16.8,ry:43.3}),o.createElement("ellipse",{fill:"#dcb072",cx:295.3,cy:236.8,rx:16.8,ry:43.3}),o.createElement("path",{fill:"#FFF",d:"m385.4 31.5-33.4 44h68.5zM315.5 280s33.8 29.5 69.9 29.5 67.1-29.5 67.1-29.5l8.5 14.6S439.2 326 385.4 326 307 294.6 307 294.6l8.5-14.6z"}),o.createElement("ellipse",{fill:"#A5A5A5",cx:386.3,cy:104.3,rx:34.3,ry:23.3}))},xF=function(t){var n=t.title,r=H(t,wS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFDA44",stroke:"#fff",strokeWidth:4,d:"M332.1 106.7v78.2c0 38.1 51.9 49.8 51.9 49.8s51.9-11.7 51.9-49.8v-78.2H332.1z"}),o.createElement("path",{fill:"#fcad56",d:"M376.6 135.1c0 7.9-6.6 28.4-14.8 28.4S347 142.9 347 135.1c0-7.9 14.8-14.2 14.8-14.2s14.8 6.4 14.8 14.2z"}),o.createElement("path",{fill:"#9e540a",d:"M416 150.6c2.4-5.6 4.3-13.8 4.3-17.9 0-6.5-8.9-11.9-8.9-11.9s-8.9 5.3-8.9 11.9c0 4.1 1.9 12.3 4.3 17.9l-5.1 11.1c3 1.2 6.3 1.8 9.8 1.8 3.5 0 6.8-.7 9.8-1.8l-5.3-11.1z"}),o.createElement("path",{fill:"#009e49",d:"M372.9 184.9s-7.4 14.2-7.4 28.4h37.1c0-14.2-7.4-28.4-7.4-28.4l-11.1-7.1-11.2 7.1z"}),o.createElement("path",{fill:"#ce1126",d:"M395.1 184.9v-3.6c0-5.9-5-10.7-11.1-10.7s-11.1 4.8-11.1 10.7v3.6h22.2z"}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})))},bF=function(t){var n=t.title,r=H(t,CS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.337H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 85.331h170.663v341.337H0z"}),o.createElement("path",{fill:"#D80027",d:"M341.337 85.331H512v341.337H341.337z"}))},yF=function(t){var n=t.title,r=H(t,$S);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h21v15H0V0z"}),o.createElement("path",{fill:"#0A388A",d:"M0 0h22.5v15H0V0z"}),o.createElement("path",{fill:"#FFF",d:"M0 0h11.3v7.5H0V0z"}),o.createElement("path",{fill:"#D80027",d:"M7.1 0h3.6v7H7.1V0z"}),o.createElement("path",{fill:"#0A388A",d:"M0 0h3.6v7H0V0z"}),o.createElement("path",{fill:"#FFF",d:"M3.6 0h3.6v7H3.6V0zm10.9 6h5L19 7h-1.5v.5h1l-.5 1h-.5V10h-1V7H15l-.5-1zm4 2.5 1 1.5h-2l1-1.5zm-3 0 1 1.5h-2l1-1.5zm1.5 3L16 10h2l-1 1.5zM20 8c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm-6 0c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm1 4c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm4 0c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm-2 1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5z"}))},EF=function(t){var n=t.title,r=H(t,MS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{d:"M0 85.337h512V153.6H0zM0 358.4h512v68.263H0zm0-136.537h512v68.263H0z",fill:"#496E2D"}),o.createElement("path",{fill:"#D80027",d:"M0 85.337h204.054v204.054H0z"}),o.createElement("path",{fill:"#FFF",d:"m102.026 133.938 13.26 40.812h42.916l-34.718 25.226 13.26 40.814-34.718-25.224-34.719 25.224 13.263-40.814-34.718-25.226h42.913z"}))},wF=function(t){var n=t.title,r=H(t,SS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 85.334h512V426.66H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 194.056h512v123.882H0z"}),o.createElement("path",{d:"M0 85.334h512v54.522H0zm0 286.809h512v54.522H0z",fill:"#D80027"}))},CF=function(t){var n=t.title,r=H(t,NS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),o.createElement("path",{fill:"#6DA544",d:"M0 312.888h512v113.775H0z"}),o.createElement("path",{d:"M226.318 300.522h59.364v-25.23l-11.873 5.937L256 263.421l-17.809 17.808-11.873-5.937zm-33.963-29.682 2.763 8.504h8.94l-7.233 5.255 2.763 8.502-7.233-5.255-7.234 5.255 2.763-8.502-7.233-5.255h8.94zm8.566-29.68 2.763 8.502h8.94l-7.233 5.255 2.763 8.504-7.233-5.256-7.234 5.256 2.763-8.504-7.233-5.255h8.94zm24.488-22.261 2.763 8.502h8.94l-7.233 5.255 2.763 8.504-7.233-5.256-7.234 5.256 2.763-8.504-7.233-5.255h8.94zm94.236 51.941-2.763 8.504h-8.94l7.233 5.255-2.763 8.502 7.233-5.255 7.234 5.255-2.763-8.502 7.233-5.255h-8.94zm-8.566-29.68-2.763 8.502h-8.94l7.233 5.255-2.763 8.504 7.233-5.256 7.234 5.256-2.763-8.504 7.233-5.255h-8.94zm-24.488-22.261-2.763 8.502h-8.94l7.233 5.255-2.763 8.504 7.233-5.256 7.234 5.256-2.763-8.504 7.233-5.255h-8.94zM256 207.767l2.763 8.503h8.941l-7.234 5.256 2.763 8.502-7.233-5.254-7.233 5.254 2.763-8.502-7.234-5.256h8.941z",fill:"#FFDA44"}))},$F=function(t){var n=t.title,r=H(t,PS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#0052B4",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{d:"m210.715 174.377 3.684 11.338h11.919l-9.643 7.006 3.684 11.337-9.644-7.007-9.644 7.007 3.684-11.337-9.645-7.006h11.921zm-93.899 107.594 4.605 14.172h14.9l-12.055 8.757 4.606 14.173-12.056-8.76-12.055 8.76 4.604-14.173-12.054-8.757h14.899zm27.88-162.292 4.604 14.172h14.901l-12.056 8.758 4.606 14.171-12.055-8.759-12.056 8.759 4.606-14.171-12.055-8.758h14.9zm-75.157 55.652 4.604 14.172h14.9l-12.055 8.758 4.606 14.171-12.055-8.758-12.056 8.758 4.606-14.171-12.055-8.758h14.9z",fill:"#FFF"}),o.createElement("path",{d:"M483.386 354.503H117.801s109.234-88.562 310.593-220.938c.001 0-88.443 128.935 54.992 220.938zm-365.585 11.586c-11.177 0-11.195 17.37 0 17.37h365.585c11.177 0 11.195-17.37 0-17.37H117.801z",fill:"#FFDA44"}))},MF=function(t){var n=t.title,r=H(t,RS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{fill:"#FFDA44",d:"M256 256 0 90.691v44.242L155.826 256 0 377.067v44.242z"}),o.createElement("path",{d:"M0 90.691v330.618L189.217 256z"}),o.createElement("path",{fill:"#FFF",d:"m44.184 213.36 24.912 23.577 30.121-16.41-14.723 30.98 24.911 23.575-34.012-4.43L60.67 301.63l-6.296-33.716-34.012-4.43 30.119-16.408z"}))},SF=function(t){var n=t.title,r=H(t,IS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#496E2D",d:"M0 85.337h512v341.326H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M357.208 183.679c8.397-23.404-1.036-48.858-21.281-61.536a52.131 52.131 0 0 1 10.884 2.621c27.002 9.688 41.038 39.428 31.35 66.431s-39.428 41.038-66.431 31.35a52.182 52.182 0 0 1-10.069-4.895c23.686 3.084 47.15-10.566 55.547-33.971zm-46.571-67.95-7.297 9.427-11.22-4.026 6.712 9.852-7.296 9.427 11.443-3.338 6.712 9.852.361-11.914 11.444-3.339-11.221-4.025z"}),o.createElement("path",{d:"m330.338 146.448-7.296 9.427-11.221-4.026 6.712 9.852-7.296 9.427 11.443-3.339 6.712 9.853.36-11.915 11.445-3.34-11.221-4.024zM275.9 126.916l-7.296 9.427-11.219-4.024 6.711 9.851-7.296 9.426 11.443-3.338 6.712 9.852.361-11.915 11.444-3.337-11.221-4.027zm-.799 35.189-7.296 9.427-11.221-4.026 6.712 9.852-7.296 9.427 11.444-3.338 6.711 9.852.362-11.915 11.443-3.338-11.22-4.026zm33.484 12.013-7.296 9.427-11.22-4.026 6.712 9.853-7.297 9.426 11.444-3.338 6.712 9.852.36-11.915 11.443-3.338-11.219-4.025z"})),o.createElement("path",{fill:"#D80027",d:"M83.478 85.337h89.043v341.326H83.478z"}),o.createElement("path",{fill:"#FFF",d:"m117.458 175.191-14.908-11.105v-15.705l14.908-11.105h21.084l14.908 11.105v15.705l-14.908 11.105z"}),o.createElement("path",{d:"M128 137.276h-10.542l-14.908 11.105v7.678H128zm0 37.915h10.542l14.908-11.105v-8.012H128z",fill:"#FF9811"}),o.createElement("path",{fill:"#FFF",d:"m117.458 374.725-14.908-11.106v-15.704l14.908-11.105h21.084l14.908 11.105v15.704l-14.908 11.106z"}),o.createElement("path",{d:"M128 336.81h-10.542l-14.908 11.105v7.678H128zm0 37.915h10.542l14.908-11.106v-8.011H128z",fill:"#FF9811"}),o.createElement("path",{d:"m117.458 274.957-14.908-11.105v-15.703l14.908-11.106h21.084l14.908 11.106v15.703l-14.908 11.105zm36.513 24.434h-6.493v-6.493h-11.411l-8.068-8.068-8.067 8.068h-11.41v6.493h-6.493v12.986h6.493v6.492h11.41l8.068 8.069 8.068-8.069h11.41v-6.492h6.493zm0-99.768h-6.493v-6.492h-11.411l-8.068-8.069-8.067 8.069h-11.41v6.492h-6.493v12.986h6.493v6.492h11.41l8.068 8.07 8.068-8.07h11.41v-6.492h6.493z",fill:"#496E2D"}),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M120.576 248.576h14.84v14.84h-14.84z"}),o.createElement("circle",{cx:128,cy:206.113,r:7.421}),o.createElement("circle",{cx:128,cy:305.887,r:7.421})))},NF=function(t){var n=t.title,r=H(t,FS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 85.331h512v341.337H0z"}),o.createElement("circle",{fill:"#FFF",cx:256,cy:255.994,r:96}),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"m267.826 219.291 16.47 22.695 26.673-8.649-16.496 22.676 16.468 22.695-26.664-8.681-16.495 22.676.017-28.04-26.664-8.682 26.674-8.648z"}),o.createElement("path",{d:"M277.818 312.724c-31.33 0-56.727-25.397-56.727-56.727s25.397-56.727 56.727-56.727c9.769 0 18.96 2.47 26.985 6.819-12.589-12.31-29.804-19.909-48.803-19.909-38.558 0-69.818 31.259-69.818 69.818s31.26 69.818 69.818 69.818c18.999 0 36.215-7.599 48.803-19.909-8.026 4.347-17.216 6.817-26.985 6.817z"})))},PF=function(t){var n=t.title,r=H(t,TS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 85.331h512v341.337H0z"}),o.createElement("path",{fill:"#FFF",d:"M0 85.331h256v170.663H0z"}),o.createElement("path",{fill:"#D80027",d:"M141.357 157.303V130.59h-26.714v26.713H87.93v26.713h26.713v26.713h26.714v-26.713h26.713v-26.713z"}))},RF=function(t){var n=t.title,r=H(t,OS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#E30A17",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#FFF",d:"M259.7 118.6c-13.1-9.5-29-14.6-45.3-14.5-40.8 0-73.8 30.8-73.8 68.9s33.1 68.9 73.8 68.9c17.1 0 32.9-5.4 45.3-14.5-30 38.6-85.7 45.6-124.3 15.5s-45.6-85.7-15.5-124.3 85.7-45.6 124.3-15.5c5.8 4.5 11 9.8 15.5 15.5zm39.9 65.8-18.1 21.9 1.2-28.4-26.4-10.4 27.3-7.6 1.8-28.3 15.6 23.7 27.5-7.1-17.5 22 15.3 23.9-26.7-9.7z"}))},IF=function(t){var n=t.title,r=H(t,zS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{fill:"#FFF",d:"m6.066 85.337 207.961 212.636 131.584 128.69h160.323L297.973 214.027 166.389 85.337z"}),o.createElement("path",{d:"M43.364 85.337 384.69 426.663h83.946L127.31 85.337z"}))},FF=function(t){var n=t.title,r=H(t,AS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#00B2EE",d:"M0 171h256.5V0H513v342H0V171z"}),o.createElement("path",{d:"m196.8 274.1 16.8 51.6-43.9-31.9H224l-43.9 31.9 16.7-51.6zm205.8-80.3 16.8 51.6-43.9-31.9h54.3l-43.9 31.9 16.7-51.6zm60.7-44.7 16.8 51.6-43.9-31.9h54.3l-43.9 31.9 16.7-51.6zm0-127.8L480.1 73l-44-32h54.3l-43.9 32 16.8-51.7zm-53 53.7 16.8 51.6-43.9-31.9h54.3l-43.9 31.9L410.3 75zm-77.4 32 16.8 51.6-43.9-31.9H360l-43.9 31.9 16.8-51.6zM350 245.4l16.8 51.6-43.9-31.9h54.3L333.3 297l16.7-51.6zm-71.8-56.2 16.8 51.6-44-31.8h54.3l-43.9 31.9 16.8-51.7zm0 75.3 16.8 51.6-44-31.9h54.3l-43.9 31.9 16.8-51.6z",fill:"#FFDA44"}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})))},TF=function(t){var n=t.title,r=H(t,jS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 85.337h256V256H0z"}),o.createElement("path",{fill:"#FFF",d:"M186.435 170.669 162.558 181.9l12.714 23.125-25.927-4.961-3.286 26.192L128 206.993l-18.06 19.263-3.285-26.192-25.927 4.96 12.714-23.125-23.877-11.23 23.877-11.231-12.714-23.125 25.927 4.96 3.286-26.192L128 134.344l18.06-19.263 3.285 26.192 25.928-4.96-12.715 23.125z"}),o.createElement("circle",{fill:"#0052B4",cx:128,cy:170.674,r:29.006}),o.createElement("path",{fill:"#FFF",d:"M128 190.06c-10.692 0-19.391-8.7-19.391-19.391 0-10.692 8.7-19.391 19.391-19.391 10.692 0 19.391 8.7 19.391 19.391 0 10.691-8.699 19.391-19.391 19.391z"}))},OF=function(t){var n=t.title,r=H(t,DS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#338AF3",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{fill:"#6DA544",d:"M0 426.663V85.337h512"}),o.createElement("path",{fill:"#FFDA44",d:"M512 152.222V85.337H411.67L0 359.778v66.885h100.33z"}),o.createElement("path",{d:"M512 85.337v40.125L60.193 426.663H0v-40.125L451.807 85.337z"}))},zF=function(t){var n=t.title,r=H(t,kS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{fill:"#338AF3",d:"M0 85.337h512V256H0z"}))},AF=function(t){var n=t.title,r=H(t,HS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.3"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#232323",d:"M0 0h512v341.3H0z"}),o.createElement("path",{fill:"#FFDA44",d:"M0 56.9h512v56.9H0z"}),o.createElement("path",{fill:"#D32300",d:"M0 113.8h512v56.9H0z"}),o.createElement("path",{fill:"#FFDA44",d:"M0 227.6h512v56.9H0z"}),o.createElement("path",{fill:"#D32300",d:"M0 284.4h512v56.9H0z"}),o.createElement("circle",{fill:"#FFF",cx:256,cy:170.7,r:80.7}),o.createElement("path",{d:"M234.5 127.5c.9-1.4-19.6-2-19.6-2 1.7-2.5 18.4-10.5 18.4-10.5s-.9-6 2.7-9.8l-4.5-9.8s7-3.4 18.4-3.4 19.9 7 21 13.1l-6.4 3.4c-.1 4.7 1.7 11.6-4.3 17.3-5.9 5.7-8.3 6.9-8.5 18.8 0 3.9 2.3 8.2 8.8 11.7 17.4 9.3 38.6 28.2 44.6 33.9 6.1 5.7 5.1 19.2 2.6 25.2s-12.1 14.3-14.3 13.6c-2.2-.6 1.2-9.2-3.5-11.6 0 0-8.9-7.6-16.8.6s-.2 25.2 3.9 28c4.1 2.8 1.7 5-1.9 5H247c-3.8 0-5.4-2.3-1.9-5 7.6-3.8 12.4-15.3 7.4-20.3-4.9-4.9-18.3 1.5-21.5 6.3-2.8 2.8-8.8 3.6-12.9-1.4s-4.1-10.4-1.1-12.5c7-4.8 0 0 .1-.1 0 0 11.9-8.6 29.9-9 3.9 0 4.8-2.2 2.2-4.8 0 0-30.9-27.4-28.1-44.2 3-18.3 20-26.3 13.4-32.5-1.3-1.8 0 0 0 0z"}))},jF=function(t){var n=t.title,r=H(t,LS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.7h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513V342H0z",fill:"#D80027"}),o.createElement("path",{fill:"#2E52B2",d:"M0 0h256.5v184.1H0z"}),o.createElement("path",{d:"m47.8 138.9-4-12.8-4.4 12.8H26.2l10.7 7.7-4 12.8 10.9-7.9 10.6 7.9-4.1-12.8 10.9-7.7zm56.3 0-4.1-12.8-4.2 12.8H82.6l10.7 7.7-4 12.8 10.7-7.9 10.8 7.9-4-12.8 10.7-7.7zm56.5 0-4.3-12.8-4 12.8h-13.5l11 7.7-4.2 12.8 10.7-7.9 11 7.9-4.2-12.8 10.7-7.7zm56.2 0-4-12.8-4.2 12.8h-13.3l10.8 7.7-4 12.8 10.7-7.9 10.8 7.9-4.3-12.8 11-7.7zM100 75.3l-4.2 12.8H82.6L93.3 96l-4 12.6 10.7-7.8 10.8 7.8-4-12.6 10.7-7.9h-13.4zm-56.2 0-4.4 12.8H26.2L36.9 96l-4 12.6 10.9-7.8 10.6 7.8L50.3 96l10.9-7.9H47.8zm112.5 0-4 12.8h-13.5l11 7.9-4.2 12.6 10.7-7.8 11 7.8-4.2-12.6 10.7-7.9h-13.2zm56.5 0-4.2 12.8h-13.3l10.8 7.9-4 12.6 10.7-7.8 10.8 7.8-4.3-12.6 11-7.9h-13.5zm-169-50.6-4.4 12.6H26.2l10.7 7.9-4 12.7L43.8 50l10.6 7.9-4.1-12.7 10.9-7.9H47.8zm56.2 0-4.2 12.6H82.6l10.7 7.9-4 12.7L100 50l10.8 7.9-4-12.7 10.7-7.9h-13.4zm56.3 0-4 12.6h-13.5l11 7.9-4.2 12.7 10.7-7.9 11 7.9-4.2-12.7 10.7-7.9h-13.2zm56.5 0-4.2 12.6h-13.3l10.8 7.9-4 12.7 10.7-7.9 10.8 7.9-4.3-12.7 11-7.9h-13.5z",fill:"#FFF"}))},DF=function(t){var n=t.title,r=H(t,VS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.7h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513V342H0z",fill:"#D80027"}),o.createElement("path",{fill:"#2E52B2",d:"M0 0h256.5v184.1H0z"}),o.createElement("path",{d:"m47.8 138.9-4-12.8-4.4 12.8H26.2l10.7 7.7-4 12.8 10.9-7.9 10.6 7.9-4.1-12.8 10.9-7.7zm56.3 0-4.1-12.8-4.2 12.8H82.6l10.7 7.7-4 12.8 10.7-7.9 10.8 7.9-4-12.8 10.7-7.7zm56.5 0-4.3-12.8-4 12.8h-13.5l11 7.7-4.2 12.8 10.7-7.9 11 7.9-4.2-12.8 10.7-7.7zm56.2 0-4-12.8-4.2 12.8h-13.3l10.8 7.7-4 12.8 10.7-7.9 10.8 7.9-4.3-12.8 11-7.7zM100 75.3l-4.2 12.8H82.6L93.3 96l-4 12.6 10.7-7.8 10.8 7.8-4-12.6 10.7-7.9h-13.4zm-56.2 0-4.4 12.8H26.2L36.9 96l-4 12.6 10.9-7.8 10.6 7.8L50.3 96l10.9-7.9H47.8zm112.5 0-4 12.8h-13.5l11 7.9-4.2 12.6 10.7-7.8 11 7.8-4.2-12.6 10.7-7.9h-13.2zm56.5 0-4.2 12.8h-13.3l10.8 7.9-4 12.6 10.7-7.8 10.8 7.8-4.3-12.6 11-7.9h-13.5zm-169-50.6-4.4 12.6H26.2l10.7 7.9-4 12.7L43.8 50l10.6 7.9-4.1-12.7 10.9-7.9H47.8zm56.2 0-4.2 12.6H82.6l10.7 7.9-4 12.7L100 50l10.8 7.9-4-12.7 10.7-7.9h-13.4zm56.3 0-4 12.6h-13.5l11 7.9-4.2 12.7 10.7-7.9 11 7.9-4.2-12.7 10.7-7.9h-13.2zm56.5 0-4.2 12.6h-13.3l10.8 7.9-4 12.7 10.7-7.9 10.8 7.9-4.3-12.7 11-7.9h-13.5z",fill:"#FFF"}))},kF=function(t){var n=t.title,r=H(t,_S);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 38h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0z",fill:"#0038a8"}),o.createElement("path",{fill:"#FFF",d:"M0 0h256.5v190H0z"}),o.createElement("path",{fill:"#FED443",d:"m128.3 138.7-15.1 22.6-3.8-26.9L86 148.2l8.2-25.9-27.2 2.2 18.6-19.8L60.3 95l25.4-9.7L67 65.5l27.1 2.3-8.2-25.9 23.4 13.8 3.9-26.9 15.1 22.6 15.1-22.6 3.8 26.9 23.4-13.8-8.2 25.9 27.1-2.2-18.6 19.8 25.4 9.7-25.4 9.7 18.6 19.8-27.1-2.2 8.2 25.9-23.4-13.8-3.9 26.9-15-22.7zm0-.5c23.9.9 44-17.6 44.9-41.5.9-23.9-17.6-44-41.5-44.9h-3.4c-23.9.8-42.6 20.8-41.8 44.6.6 22.8 19 41.1 41.8 41.8zm0-10.6c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.3 34-34 34z"}))},HF=function(t){var n=t.title,r=H(t,BS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#3081f7",d:"M0 0h513v108H0z"}),o.createElement("path",{fill:"#ee162e",d:"M0 108h513v9H0z"}),o.createElement("path",{fill:"#FFF",d:"M0 117h513v108H0z"}),o.createElement("path",{fill:"#ee162e",d:"M0 225h513v9H0z"}),o.createElement("path",{fill:"#308738",d:"M0 233h513v108H0z"}),o.createElement("path",{d:"M53.5 54c0-23.1 16.4-35 34.3-38.9-2.7-.6-5.6-.9-8.5-.9-22 0-39.8 17.8-39.8 39.8s17.8 39.8 39.8 39.8c2.9 0 5.8-.3 8.5-.9C69.9 89 53.5 77.1 53.5 54zm57.9 21.3 1.8 5.9h6.2l-5 3.6 1.9 5.8-4.9-3.6-5 3.6 1.9-5.8-4.9-3.6h6.1zm27.8 0 1.9 5.9h6.1l-5 3.6 1.9 5.8-4.9-3.6-5 3.6 1.9-5.8-4.9-3.6h6.1zm27.8 0 1.9 5.9h6.1l-4.9 3.6 1.9 5.8-5-3.6-4.9 3.6 1.9-5.8-5-3.6h6.1zm27.9 0 1.9 5.9h6.1l-5 3.6 1.9 5.8-4.9-3.6-5 3.6 1.9-5.8-4.9-3.6h6.1zm27.8 0 1.9 5.9h6.1l-4.9 3.6 1.9 5.8-5-3.6-4.9 3.6 1.9-5.8-5-3.6h6.1zm-83.5-28.9 1.9 5.8h6.1l-5 3.6 1.9 5.8-4.9-3.6-5 3.6 1.9-5.8-4.9-3.6h6.1zm27.8 0 1.9 5.8h6.1l-4.9 3.6 1.9 5.8-5-3.6-4.9 3.6 1.9-5.8-5-3.6h6.1zm27.9 0 1.9 5.8h6.1l-5 3.6 1.9 5.8-4.9-3.6-5 3.6 1.9-5.8-4.9-3.6h6.1zm27.8 0 1.9 5.8h6.1l-4.9 3.6 1.9 5.8-5-3.6-4.9 3.6 1.9-5.8-5-3.6h6.1zm-55.7-29 1.9 5.8h6.1l-4.9 3.6 1.9 5.9-5-3.6-4.9 3.6 1.9-5.9-5-3.6h6.1zm27.9 0 1.9 5.8h6.1l-5 3.6 1.9 5.9-4.9-3.6-5 3.6 1.9-5.9-4.9-3.6h6.1zm27.8 0 1.9 5.8h6.1l-4.9 3.6 1.9 5.9-5-3.6-4.9 3.6 1.9-5.9-5-3.6h6.1z",fill:"#FFF"}))},LF=function(t){var n=t.title,r=H(t,GS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.326H0z"}),o.createElement("path",{fill:"#FFF",d:"M256 85.331h256v341.337H256z"}),o.createElement("path",{fill:"#ACABB1",d:"m321.353 233.837 32.073 42.43c-5.053 7.651-5.026 17.961.817 25.692 7.414 9.807 21.374 11.748 31.182 4.335 9.807-7.414 11.748-21.374 4.334-31.182-5.843-7.731-15.756-10.568-24.495-7.795l-49.988-66.129-11.838 8.949-17.759 13.424 17.899 23.677 17.775-13.401zm46.175 48.78a7.421 7.421 0 1 1 8.95 11.84 7.421 7.421 0 0 1-8.95-11.84z"}),o.createElement("path",{fill:"#FFDA44",d:"m376.367 247.24 17.899-23.677-17.759-13.424-11.838-8.949-49.988 66.129c-8.74-2.775-18.651.063-24.495 7.795-7.414 9.808-5.473 23.768 4.334 31.182 9.808 7.414 23.768 5.473 31.182-4.335 5.845-7.731 5.871-18.041.817-25.692l32.073-42.43 17.775 13.401zm-62.504 45.771a7.42 7.42 0 1 1-11.84-8.95 7.42 7.42 0 0 1 11.84 8.95z"}))},VF=function(t){var n=t.title,r=H(t,US);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.337H0z"}),o.createElement("path",{fill:"#338AF3",d:"M0 85.331h170.663v341.337H0z"}),o.createElement("path",{d:"M341.337 85.331H512v341.337H341.337zM214.261 283.82l-33.393-50.086 33.392-50.087 33.392 50.087zm83.478 0-33.391-50.086 33.391-50.087 33.393 50.087zM256 350.603l-33.391-50.087L256 250.429l33.391 50.087z",fill:"#6DA544"}))},_F=function(t){var n=t.title,r=H(t,WS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFCE00",d:"M0 0h22.5v5H0z"}),o.createElement("path",{fill:"#203899",d:"M0 5h22.5v5H0z"}),o.createElement("path",{fill:"#D82B2B",d:"M0 10h22.5v5H0z"}),o.createElement("path",{fill:"#FFF",d:"m12.13 5.38.14.46.45.14-.39.27.01.48-.38-.29-.45.15.15-.44-.28-.38h.47zm-1.77 0 .27.39h.47l-.28.38.15.45-.45-.16-.38.28.01-.47-.39-.28.45-.13zm3.44.56-.01.48.39.27-.46.14-.14.45-.27-.38h-.48l.29-.38-.15-.45.45.16zm-5.11.02.4.27.44-.18-.13.46.3.36-.47.02-.26.4-.16-.44-.46-.12.37-.3zm6.55 1.17-.2.44.25.4-.47-.05-.31.36-.1-.46-.43-.18.41-.24.03-.47.35.31zm.19 1.12.21.43.47.07-.34.33.08.46-.42-.22-.42.22.08-.46-.34-.33.47-.07zM7 8.2l.21.43.47.06-.34.33.08.47L7 9.27l-.42.22.08-.47-.34-.33.47-.06zm.31-1.15.45.14.38-.29v.48l.39.26-.45.15-.13.46-.28-.38-.47.01.27-.38z"}))},BF=function(t){var n=t.title,r=H(t,KS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#012169",d:"M0 0h513v342H0z"}),o.createElement("path",{fill:"#ffc72c",d:"m384.8 174.7-46.2 46.2c8.7 16.7 26.1 28.1 46.2 28.1s37.6-11.4 46.2-28.1l-46.2-46.2z"}),o.createElement("path",{fill:"#006129",stroke:"#fff",strokeWidth:3,d:"M332.7 93v81.8c0 39.8 52 52 52 52s52-12.2 52-52V93h-104z"}),o.createElement("path",{fill:"#FFF",d:"M373.6 130.1h22.3v59.5h-22.3z"}),o.createElement("circle",{fill:"#9c4c00",cx:384.8,cy:130.1,r:11.2}),o.createElement("path",{d:"M347.6 107.8h14.9v14.9h-14.9zm0 33.5h14.9v14.9h-14.9zm0 33.4h14.9v14.9h-14.9zm59.5-66.9H422v14.9h-14.9zm0 33.5H422v14.9h-14.9zm0 33.4H422v14.9h-14.9z",fill:"#ffc72c"}),o.createElement("path",{fill:"#012169",d:"M0 0h256.5v171H0z"}),o.createElement("g",{fill:"#FFF"},o.createElement("path",{d:"M256.5 0v30.6l-45.3 25.2h45.3v59.4h-59.2l59.2 32.9V171h-26.7l-73.7-40.9V171h-55.7v-48.7L12.8 171H0v-30.6l45.3-25.2H0V55.8h59.2L0 22.9V0h26.7l73.7 40.9V0h55.7v48.7L243.7 0z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-55.7-59.4L0 0v15.8l72 40z"})),o.createElement("g",{fill:"#D80027"},o.createElement("path",{d:"M144.3 0h-32.1v69.5H0v32h112.2V171h32.1v-69.5h112.2v-32H144.3z"}),o.createElement("path",{d:"M156.1 115.2 256.5 171v-15.8l-72-40zm-84.1 0-72 40V171l100.4-55.8zm28.4-59.4L0 0v15.8l72 40zm84.1 0 72-40V0L156.1 55.8z"})))},GF=function(t){var n=t.title,r=H(t,qS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.3"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h512v341.3H0z"}),o.createElement("path",{fill:"#1583C4",d:"m397.7 166.3-51 97.7c-1.1 2-.3 4.5 1.8 5.6 2 1.1 4.5.3 5.6-1.8l51-97.7c1-2.1.1-4.6-2-5.5-2-.9-4.3-.2-5.4 1.7z"}),o.createElement("path",{fill:"#1583C4",d:"m404.9 188-57.8 75.4c-1.3 1.9-.8 4.5 1.1 5.8 1.7 1.2 4.1.9 5.5-.7l57.8-75.4c1.4-1.8 1.1-4.4-.8-5.8-1.8-1.5-4.4-1.1-5.8.7z"}),o.createElement("path",{fill:"#1583C4",d:"m379 181.3-32.5 83.1c-.8 2.1.2 4.6 2.4 5.4 2.1.8 4.6-.2 5.4-2.4l32.5-83.1c.7-2.2-.4-4.5-2.6-5.3-2.1-.6-4.3.4-5.2 2.3z"}),o.createElement("path",{fill:"#409347",d:"M122.1 171.9c.4 1.7 1.2 4.7 2.2 8.5 1.7 6.4 3.6 12.8 5.6 18.7 2.3 6.9 14.7 31.4 20.2 39.1 6.9 9.7 14.1 19.3 21.5 28.6 1.6 1.9 4.5 2.1 6.4.5 1.8-1.6 2.1-4.3.7-6.2-7.3-9.2-14.4-18.6-21.2-28.2-4.2-5.8-17.2-31.1-19-36.7-2.9-8.7-5.4-17.6-7.6-26.5-.5-2.4-2.9-4-5.3-3.5s-4 2.9-3.5 5.3c-.1.2 0 .3 0 .4z"}),o.createElement("g",{fill:"#FFD836",stroke:"#231F20",strokeMiterlimit:10},o.createElement("path",{d:"M297.1 114.9S279.5 42.8 261 42.8c-6.9 0-11.9-.6-15.4 6.4-.9 1.7-20.7-1.6-19.1 20.8.5 6.9 1.1-9.8 14.9-3.4 6.3 3-16.4 48.2-16.4 48.2h72.1z"}),o.createElement("path",{d:"m466.1 48.4-90.9 22c-75.3 18.3-42.1 44.4-42.1 44.4l-72.1 12-72.1-12s33.2-26.1-42.1-44.4l-90.9-22C43.1 45.3 38.1 51.8 45.3 63c0 0 106.6 104 126.8 112 20.2 8.1 40.8 0 40.8 0s-14.9 8.7-24 24c-9.2 15.3-4.6 34.7-38.9 40.2-5.5 6.6-5 14 2.9 19.9 7.9 5.8 72.1-48.1 72.1-48.1s-24 24.4-24 36.1c0 5.1 44.1 53.8 60.1 53.8s60.1-48.7 60.1-53.8c0-11.7-24-36.1-24-36.1s64.2 53.9 72.1 48.1 11.4-19.3 2.8-19.9c-28-1.8-29.7-24.9-38.9-40.2-9.2-15.3-24-24-24-24s20.6 8.1 40.8 0S476.7 63 476.7 63c7.2-11.2 2.3-17.7-10.6-14.6z"})),o.createElement("path",{fill:"#FFF",stroke:"#231F20",strokeMiterlimit:10,d:"M201.3 111.8v80.3c0 45.7 59.7 59.7 59.7 59.7s59.7-14 59.7-59.7v-80.3H201.3z"}),o.createElement("path",{d:"M225.2 137.7V235c8.2 6 17 10.2 23.9 12.9V137.7h-23.9zm71.6 0V235c-8.2 6-17 10.2-23.9 12.9V137.7h23.9z",fill:"#D80027"}),o.createElement("path",{fill:"#0052B4",d:"M201.3 111.8h119.4v37.9H201.3z"}),o.createElement("path",{fill:"#1583C4",d:"m60.1 210.5-21.9-58.1H15.7l31.8 80.8h25.2l31.5-80.8H81.7zm391.4-58.6h18.9v81.7h-18.9z"}))},UF=function(t){var n=t.title,r=H(t,YS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M196.641 85.337H0v341.326h512V85.337z"}),o.createElement("path",{fill:"#FFDA44",d:"m256 157.279 22.663 69.747H352l-59.332 43.106 22.664 69.749L256 296.774l-59.332 43.107 22.664-69.749L160 227.026h73.337z"}))},WF=function(t){var n=t.title,r=H(t,XS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{fill:"#6DA544",d:"M512 256v170.663H0L215.185 256z"}),o.createElement("path",{fill:"#D80027",d:"M512 85.337V256H215.185L0 85.337z"}),o.createElement("path",{d:"M221.001 239.304 26.868 85.337H8.956l208.168 165.098H512v-11.131zM8.956 426.663h17.912l194.133-153.967H512v-11.131H217.124zM0 92.44v14.206L188.317 256 0 405.354v14.205L206.229 256z"}),o.createElement("g",{fill:"#FFDA44"},o.createElement("path",{d:"M8.956 85.337H0v7.103L206.229 256 0 419.559v7.104h8.956l208.168-165.098H512v-11.13H217.124z"}),o.createElement("path",{d:"M63.718 292.382v-14.295c14.265 0 25.87-11.606 25.87-25.869 0-10.092-8.211-18.303-18.304-18.303-6.875 0-12.469 5.593-12.469 12.469 0 4.397 3.577 7.974 7.974 7.974a4.514 4.514 0 0 0 4.508-4.508h14.295c0 10.368-8.435 18.804-18.802 18.804-12.279-.002-22.269-9.993-22.269-22.271 0-14.758 12.006-26.764 26.764-26.764 17.975 0 32.599 14.623 32.599 32.599 0 22.145-18.018 40.164-40.166 40.164z"})))},KF=function(t){var n=t.title,r=H(t,ZS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80B30",d:"M0 0h150v100H0z"}),o.createElement("path",{fill:"#00318A",d:"M0 0h20v44.33H0z"}),o.createElement("path",{fill:"#FFF",d:"M20 0h20v44.33H20z"}),o.createElement("path",{fill:"none",stroke:"#FFF",strokeWidth:3,d:"M0 44.33h62.75V0"}),o.createElement("path",{fill:"#FFF",d:"M108.08 43.29 87.96 23.17h40.25l-20.13 20.12zm-6.7 6.71L81.25 29.88v40.25L101.38 50zm6.7 6.71L87.96 76.83h40.25l-20.13-20.12zm6.71-6.71 20.13-20.13v40.25L114.79 50z"}))},qF=function(t){var n=t.title,r=H(t,JS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#D80027",d:"M0 85.331h512v341.337H0z"}),o.createElement("path",{fill:"#0052B4",d:"M0 85.331h256v170.663H0z"}),o.createElement("path",{d:"m165.483 181.79 2.764 8.504h8.939l-7.232 5.254 2.763 8.503-7.234-5.255-7.233 5.255 2.763-8.503-7.233-5.254h8.94zm-44.904-66.783 4.606 14.173h14.9l-12.055 8.757 4.605 14.171-12.056-8.758-12.054 8.758 4.605-14.171-12.056-8.757h14.901zm44.522 14.841 4.606 14.172h14.9l-12.055 8.757 4.604 14.173-12.055-8.76-12.054 8.76 4.604-14.173-12.055-8.757h14.9zm-35.192 59.363 4.606 14.172h14.9l-12.055 8.758 4.604 14.171-12.055-8.759-12.054 8.759 4.604-14.171-12.055-8.758h14.9zm-39.01-37.103 4.605 14.173h14.9l-12.055 8.757 4.604 14.173-12.054-8.76-12.055 8.76 4.604-14.173-12.055-8.757h14.9z",fill:"#FFF"}))},YF=function(t){var n=t.title,r=H(t,QS);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),o.createElement("path",{d:"M0 0h513v48.8H0zm0 97.5h513v48.8H0zM0 195h513v48.8H0zm0 97.6h513v48.8H0z",fill:"#6DA544"}),o.createElement("path",{fill:"#D80027",d:"M0 0h256.5v146.3H0z"}),o.createElement("path",{fill:"#FFF",d:"m116.9 114.4-7.5-14.8V69.9L128 59l18.6 10.9v22.3l7.4-7.4 4.2 3-4.2 11.8-14.9 14.8z"}),o.createElement("circle",{fill:"#FFF",cx:82,cy:82.8,r:5.4}),o.createElement("circle",{fill:"#FFF",cx:90.8,cy:61.7,r:5.4}),o.createElement("circle",{fill:"#FFF",cx:106.6,cy:46.2,r:5.4}),o.createElement("circle",{fill:"#FFF",cx:128,cy:40.8,r:5.4}),o.createElement("circle",{fill:"#FFF",cx:149.4,cy:46.2,r:5.4}),o.createElement("circle",{fill:"#FFF",cx:165.2,cy:61.7,r:5.4}),o.createElement("circle",{fill:"#FFF",cx:174,cy:82.8,r:5.4}))},XF=function(t){var n=t.title,r=H(t,eN);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},r),n&&o.createElement("title",null,n),o.createElement("path",{d:"M0 0h900v600H0z",fill:"#fff"}),o.createElement("circle",{fill:"#e30a17",cx:300,cy:300,r:150}),o.createElement("circle",{cx:337.5,cy:300,r:120,fill:"#fff"}),o.createElement("path",{fill:"#e30a17",d:"M0 60h900v60H0zm0 420h900v60H0zm417.5-180 135.676-44.084-83.852 115.413V228.671l83.852 115.413z"}))},ZF=function(t){var n=t.title,r=H(t,tN);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.33"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#0052B4",d:"M0 0h512v341.34H0z"}),o.createElement("path",{d:"m220.72 42.63 7.95 16.11 17.77 2.58-12.86 12.54 3.04 17.7-15.9-8.36-15.9 8.36 3.03-17.7-12.86-12.54 17.78-2.58zm70.56-.06 7.95 16.1 17.78 2.59-12.86 12.53 3.03 17.71-15.9-8.36-15.9 8.36 3.04-17.71-12.86-12.53 17.77-2.59zm62.08 11.36 7.95 16.11 17.77 2.58-12.86 12.54 3.04 17.7-15.9-8.35-15.9 8.35 3.04-17.7-12.87-12.54 17.78-2.58zm63.01 18.3 7.95 16.11 17.77 2.59-12.86 12.53 3.04 17.71-15.9-8.36-15.9 8.36 3.03-17.71-12.86-12.53 17.78-2.59zm-257.73-18.3 7.95 16.11 17.78 2.58-12.87 12.54 3.04 17.7-15.9-8.35-15.9 8.35 3.04-17.7-12.86-12.54 17.77-2.58zm-63.01 18.3 7.95 16.11 17.78 2.59-12.86 12.53 3.03 17.71-15.9-8.36-15.9 8.36 3.04-17.71-12.86-12.53 17.77-2.59z",fill:"#FFF"}),o.createElement("path",{fill:"#FFDA44",d:"m217.53 259.33-27.22-13.61-27.22-54.43h27.22l27.22-27.22 13.61-27.22 27.22-13.61 13.61 13.61 27.22 13.61v13.61l13.61 13.61 40.83 27.22L340 245.73l-40.83 40.83-13.61-27.22-40.83 27.22v27.22l-13.61-13.61-13.59-40.84z"}))},JF=function(t){var n=t.title,r=H(t,nN);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 450 300"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h450v300H0z"}),o.createElement("path",{fill:"red",d:"M0 100h450v200H0z"}),o.createElement("path",{fill:"#FFDF00",d:"M0 200h450v100H0z"}))},QF=function(t){var n=t.title,r=H(t,rN);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),o.createElement("path",{d:"M0 312.888h512v113.775H0z"}))},eT=function(t){var n=t.title,r=H(t,oN);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 60"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 0h90v60H0z"}),o.createElement("path",{stroke:"#7f7f7f",strokeWidth:.25,fill:"#ABABAB",d:"M75.6 39.6c-1.1.7 0 1.8-.6 1.9-.6.1-1.5-1.4-.2-2.5 1.6-1.5 5.8 0 5.9 4.3 0 2.2-.9 6.8-7.2 6.8-7.6 0-11.4-5.7-11.4-11.4 0-4.8 3.7-13.5 6.5-14.6 3.1-1.2 6.7-3.5 6.8-5 0-.5-1.4-.1-3.3.9-3.1 1.7-6.6 2.5-6.6 1.4s2.9-3.1 4-4.6c1.2-1.6.9-5.5 3-5.5 7.6 0 9.9 7.7 7 11.7-1.9 2.6 4.3 1 4.3 1s0 5.3-3.2 7.3c-3 1.8-4.8 3.9-4.8 3.9s.2-4.6-.5-3.9c-.6.7-11.1 4.5-10.3 12 .3 3 4.5 5.4 8.5 5.2s5.7-2.4 5.8-4.9c.1-3.9-3-4.4-3.7-4zm-64.9 4c.1 2.5 1.8 4.7 5.8 4.9s8.2-2.2 8.5-5.2c.8-7.5-9.7-11.3-10.3-12-.7-.7-.5 3.9-.5 3.9s-1.8-2.1-4.8-3.9c-3.2-2-3.2-7.3-3.2-7.3s6.2 1.6 4.3-1c-2.9-4-.6-11.7 7-11.7 2.1 0 1.8 3.9 3 5.5 1.1 1.5 4 3.5 4 4.6s-3.5.3-6.6-1.4c-1.9-1-3.3-1.4-3.3-.9.1 1.5 3.7 3.8 6.8 5 2.8 1.1 6.5 9.8 6.5 14.6 0 5.7-3.8 11.4-11.4 11.4-6.3 0-7.2-4.6-7.2-6.8.1-4.3 4.3-5.8 5.9-4.3 1.2 1.1.4 2.7-.2 2.5-.6-.1.6-1.2-.6-1.9-.6-.4-3.7.1-3.7 4z"}),o.createElement("path",{fill:"#DE393A",d:"M31 28.8v14c0 1.9 2.1 1.6 2.1 1.6h9.3c1.2 0 2.6 2.3 2.6 2.3s1.4-2.3 2.5-2.3h9.6s2 .2 2-1.8V28.7H31z"}),o.createElement("path",{fill:"#3951A3",d:"M31 13.1h28v15.7H31z"}),o.createElement("path",{fill:"#FFF",d:"M50.1 16.5c-.4 2.4-2.5 4.2-5.1 4.2-2.5 0-4.6-1.8-5.1-4.2-.5.9-.8 1.9-.8 3 0 3.3 2.6 5.9 5.9 5.9 3.3 0 5.9-2.6 5.9-5.9 0-1.1-.3-2.1-.8-3z"}),o.createElement("circle",{fill:"#FEE05F",cx:39.1,cy:36.5,r:3}),o.createElement("circle",{fill:"#FEE05F",cx:50.9,cy:36.5,r:3}))},tT=function(t){var n=t.title,r=H(t,iN);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),o.createElement("path",{d:"M114.024 256.001 0 141.926v228.17z"}),o.createElement("path",{fill:"#ffb915",d:"M161.192 256 0 94.7v47.226l114.024 114.075L0 370.096v47.138z"}),o.createElement("path",{fill:"#007847",d:"M509.833 289.391c.058-.44.804-.878 2.167-1.318v-65.464H222.602L85.33 85.337H0V94.7L161.192 256 0 417.234v9.429h85.33l137.272-137.272h287.231z"}),o.createElement("path",{fill:"#000c8a",d:"M503.181 322.783H236.433l-103.881 103.88H512v-103.88z"}),o.createElement("path",{fill:"#e1392d",d:"M503.181 189.217H512V85.337H132.552l103.881 103.88z"}))},nT=function(t){var n=t.title,r=H(t,aN);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{fill:"#496E2D",d:"M0 85.331h512v341.337H0z"}),o.createElement("path",{fill:"#FF9811",d:"M490.668 195.476h-48c0-8.836-7.164-16-16-16s-16 7.164-16 16h-48c0 8.836 7.697 16 16.533 16h-.533c0 8.836 7.162 16 16 16 0 8.836 7.162 16 16 16h32c8.836 0 16-7.164 16-16 8.836 0 16-7.164 16-16h-.533c8.837 0 16.533-7.164 16.533-16z"}),o.createElement("path",{fill:"#D80027",d:"M341.337 255.994h56.888v170.663h-56.888z"}),o.createElement("path",{fill:"#FF9811",d:"M455.112 255.994H512v170.663h-56.888z"}),o.createElement("path",{d:"M398.225 255.994h56.888v170.663h-56.888z"}))},rT=function(t){var n=t.title,r=H(t,lN);return o.createElement("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&o.createElement("title",null,n),o.createElement("path",{d:"M0 85.333h512V426.67H0z"}),o.createElement("path",{d:"M0 134.196h512v48.868H0zm0 195.472h512v48.868H0z",fill:"#FFDA44"}),o.createElement("path",{fill:"#057f44",d:"M0 85.333h512v48.868H0z"}),o.createElement("path",{d:"M0 183.069h512v48.868H0zm0 97.737h512v48.868H0z",fill:"#D80027"}),o.createElement("path",{fill:"#057f44",d:"M0 378.542h512v48.128H0z"}),o.createElement("path",{fill:"#FFF",d:"M276.992 255.996 106.329 426.659H0V85.333h106.329z"}),o.createElement("path",{d:"M256 255.996 85.334 426.662h20.987l170.667-170.666L106.321 85.33H85.334z"}),o.createElement("path",{fill:"#D80027",d:"m102.465 202.57 13.259 40.812h42.917l-34.718 25.226 13.26 40.814-34.718-25.224-34.72 25.224 13.262-40.814-34.718-25.226h42.915z"}),o.createElement("path",{fill:"#FFDA44",d:"m138.94 259.335-34.559-12.243s-2.553-23.955-2.708-24.766c-1.173-6.18-6.603-10.851-13.123-10.851-7.376 0-13.357 5.98-13.357 13.357 0 1.223.178 2.402.486 3.528l-9.689 9.755h17.229c0 17.882-13.344 17.882-13.344 35.691l7.402 17.809h44.522l7.422-17.809h-.004a17.782 17.782 0 0 0 1.381-5.231c6.397-2.589 8.342-9.24 8.342-9.24z"}))};const hf={AC:cN,AD:uN,AE:dN,AF:fN,AG:mN,AI:pN,AL:hN,AM:gN,AO:vN,AQ:xN,AR:bN,AS:yN,AT:EN,AU:wN,AW:CN,AX:$N,AZ:MN,BA:SN,BB:NN,BD:PN,BE:RN,BF:IN,BG:FN,BH:TN,BI:ON,BJ:zN,BL:AN,BM:jN,BN:DN,BO:kN,BQ_BO:HN,BQ_SA:LN,BQ_SE:VN,BQ:_N,BR:BN,BS:GN,BT:UN,BV:WN,BW:KN,BY:qN,BZ:YN,CA:XN,CC:ZN,CD:JN,CF:QN,CG:eP,CH:tP,CI:nP,CK:rP,CL:oP,CM:iP,CN:aP,CO:lP,CR:sP,CU:cP,CV:uP,CW:dP,CX:fP,CY:mP,CZ:pP,DE:hP,DJ:gP,DK:vP,DM:xP,DO:bP,DZ:yP,EC:EP,EE:wP,EG:CP,EH:$P,ER:MP,ES_CT:SP,ES:NP,ET:PP,EU:RP,FI:IP,FJ:FP,FK:TP,FM:OP,FO:zP,FR:AP,GA:jP,GB_ENG:DP,GB_NIR:kP,GB_SCT:HP,GB_WLS:LP,GB:VP,GD:_P,GE:BP,GF:GP,GG:UP,GH:WP,GI:KP,GL:qP,GM:YP,GN:XP,GP:ZP,GQ:JP,GR:QP,GS:eR,GT:tR,GU:nR,GW:rR,GY:oR,HK:iR,HM:aR,HN:lR,HR:sR,HT:cR,HU:uR,IC:dR,ID:fR,IE:mR,IL:pR,IM:hR,IN:gR,IO:vR,IQ:xR,IR:bR,IS:yR,IT:ER,JE:wR,JM:CR,JO:$R,JP:MR,KE:SR,KG:NR,KH:PR,KI:RR,KM:IR,KN:FR,KP:TR,KR:OR,KW:zR,KY:AR,KZ:jR,LA:DR,LB:kR,LC:HR,LI:LR,LK:VR,LR:_R,LS:BR,LT:GR,LU:UR,LV:WR,LY:KR,MA:qR,MC:YR,MD:XR,ME:ZR,MF:JR,MG:QR,MH:eI,MK:tI,ML:nI,MM:rI,MN:oI,MO:iI,MP:aI,MQ:lI,MR:sI,MS:cI,MT:uI,MU:dI,MV:fI,MW:mI,MX:pI,MY:hI,MZ:gI,NA:vI,NC:xI,NE:bI,NF:yI,NG:EI,NI:wI,NL:CI,NO:$I,NP:MI,NR:SI,NU:NI,NZ:PI,OM:RI,PA:II,PE:FI,PF:TI,PG:OI,PH:zI,PK:AI,PL:jI,PM:DI,PN:kI,PR:HI,PS:LI,PT:VI,PW:_I,PY:BI,QA:GI,RE:UI,RO:WI,RS:KI,RU:qI,RW:YI,SA:XI,SB:ZI,SC:JI,SD:QI,SE:eF,SG:tF,SH:nF,SI:rF,SJ:oF,SK:iF,SL:aF,SM:lF,SN:sF,SO:cF,SR:uF,SS:dF,ST:fF,SV:mF,SX:pF,SY:hF,SZ:gF,TA:vF,TC:xF,TD:bF,TF:yF,TG:EF,TH:wF,TJ:CF,TK:$F,TL:MF,TM:SF,TN:NF,TO:PF,TR:RF,TT:IF,TV:FF,TW:TF,TZ:OF,UA:zF,UG:AF,UM:jF,US:DF,UY:kF,UZ:HF,VA:LF,VC:VF,VE:_F,VG:BF,VI:GF,VN:UF,VU:WF,WF:KF,WS:qF,XA:YF,XC:XF,XK:ZF,XO:JF,YE:QF,YT:eT,ZA:tT,ZM:nT,ZW:rT},gf={ext:"ext.",country:"Numéro de téléphone pays",phone:"Téléphone",AC:"Île de l'Ascension",AD:"Andorre",AE:"Émirats Arabes Unis",AF:"Afghanistan",AG:"Antigua et Barbuda",AI:"Anguilla",AL:"Albanie",AM:"Arménie",AO:"Angola",AQ:"Antarctique",AR:"Argentine",AS:"Samoa américaines",AT:"Autriche",AU:"Australie",AW:"Aruba",AX:"île d'Åland",AZ:"Azerbaïdjan",BA:"Bosnie-Herzégovine",BB:"Barbade",BD:"Bangladesh",BE:"Belgique",BF:"Burkina Faso",BG:"Bulgarie",BH:"Bahrain",BI:"Burundi",BJ:"Bénin",BL:"St. Barthélemy",BM:"Bermudes",BN:"Brunéi",BO:"Bolivie",BQ:"Pays-Bas caribéens",BR:"Brésil",BS:"Bahamas",BT:"Bhoutan",BV:"Île Bouvet",BW:"Botswana",BY:"Biélorussie",BZ:"Belize",CA:"Canada",CC:"Ile des Cocos (Keeling)",CD:"République Démocratique du Congo",CF:"Centrafrique",CG:"Congo (République)",CH:"Suisse",CI:"Côte d'Ivoire",CK:"Iles Cook",CL:"Chili",CM:"Cameroun",CN:"Chine (République populaire)",CO:"Colombie",CR:"Costa Rica",CU:"Cuba",CV:"Iles du Cap-Vert",CW:"Curaçao",CX:"Ile Christmas (Océan indien)",CY:"Chypre",CZ:"Tchèque (République)",DE:"Allemagne",DJ:"Djibouti",DK:"Danemark",DM:"Dominique",DO:"Dominicaine (République)",DZ:"Algérie",EC:"Equateur",EE:"Estonie",EG:"Egypte",EH:"Sahara Occidental",ER:"Erythrée",ES:"Espagne",ET:"Ethiopie",FI:"Finlande",FJ:"Fidji",FK:"Iles Falkland",FM:"Micronésie (Etats fédérés)",FO:"Iles Féroé",FR:"France",GA:"Gabon",GB:"Grande-Bretagne et Irlande du Nord",GD:"Grenade",GE:"Géorgie",GF:"Guyane française",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Groenland",GM:"Gambie",GN:"Guinée (République)",GP:"Guadeloupe",GQ:"Guinée équatorial",GR:"Grèce",GS:"Géorgie du Sud-et-les Îles Sandwich du Sud",GT:"Guatemala",GU:"Guam",GW:"Guinée-Bissau",GY:"Guyane",HK:"Hong-Kong",HM:"Îles Heard et Îles de McDonald",HN:"Honduras",HR:"Croatie",HT:"Haïti",HU:"Hongrie",ID:"Indonésie",IE:"Irlande",IL:"Israël",IM:"Ile de Man",IN:"Inde",IO:"Territoire britannique de l'Océan indien",IQ:"Iraq",IR:"Iran",IS:"Islande",IT:"Italie",JE:"Jersey",JM:"Jamaïque",JO:"Jordanie",JP:"Japon",KE:"Kenya",KG:"Kirghizistan",KH:"Cambodge",KI:"Kiribati",KM:"Comores",KN:"St. Christophe (St. Kitts) et Nevis",KP:"Corée, République populaire démocratique (Corée du Nord)",KR:"Corée, République (Corée du Sud)",KW:"Kuwait",KY:"Cayman",KZ:"Kazakhstan",LA:"Laos",LB:"Liban",LC:"St. Lucie",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lituanie",LU:"Luxembourg",LV:"Lettonie",LY:"Libye",MA:"Maroc",MC:"Monaco",MD:"Moldavie",ME:"Monténégro, République",MF:"St. Martin",MG:"Madagascar",MH:"Îles Marshall",MK:"ex-République yougoslave de Macédoine",ML:"Mali",MM:"Myanmar",MN:"Mongolie",MO:"Macao",MP:"Îles Mariannes",MQ:"Martinique",MR:"Mauritanie",MS:"Montserrat",MT:"Malte",MU:"Ile Maurice",MV:"Maldives",MW:"Malawi",MX:"Mexique",MY:"Malaisie",MZ:"Mozambique",NA:"Namibie",NC:"Nouvelle-Calédonie",NE:"Niger",NF:"Île Norfolk",NG:"Nigeria",NI:"Nicaragua",NL:"Pays-Bas",NO:"Norvège",NP:"Népal",NR:"Nauru",NU:"Niue",NZ:"Nouvelle-Zélande",OM:"Oman",PA:"Panama",PE:"Pérou",PF:"Polynésie française",PG:"Papouasie-Nouvelle-Guinée",PH:"Philippines",PK:"Pakistan",PL:"Pologne",PM:"St. Pierre et Miquelon",PN:"Îles Pitcairn",PR:"Porto Rico",PS:"Palestine",PT:"Portugal",PW:"Palaos",PY:"Paraguay",QA:"Qatar",RE:"Île de la Réunion",RO:"Roumanie",RS:"Serbie, République",RU:"Russie (Fédération de)",RW:"Rwanda",SA:"Arabie Saoudite",SB:"Iles Salomon",SC:"Seychelles",SD:"Soudan",SE:"Suède",SG:"Singapour",SH:"St. Hélène, Ascension et Tristan da Cunha",SI:"Slovénie",SJ:"Svalbard et île Jan Mayen SK Slovaque (République)",SK:"Slovaquie",SL:"Sierra Leone",SM:"St-Marin",SN:"Sénégal",SO:"Somalie",SR:"Suriname",SS:"Soudan du Sud",ST:"St. Thomas et Prince",SV:"El Salvador",SX:"St-Martin (Pays-Bas)",SY:"Syrie",SZ:"Swaziland",TA:"Île Tristan da Cunha",TC:"Turques et Caïques",TD:"Tchad",TF:"Terres australes et antarctiques françaises",TG:"Togo",TH:"Thaïlande",TJ:"Tadjikistan",TK:"Tokelau",TL:"Timor oriental",TM:"Turkménistan",TN:"Tunisie",TO:"Tonga",TR:"Turquie",TT:"Trinité et Tobago",TV:"Tuvalu",TW:"Taiwan (Taipei chinois)",TZ:"Tanzanie",UA:"Ukraine",UG:"Ouganda",UM:"Iles mineures éloignées des États-Unis",US:"États-Unis d'Amérique",UY:"Uruguay",UZ:"Ouzbékistan",VA:"Vatican",VC:"St. Vincent et Grenadines",VE:"Venezuela",VG:"Iles britanniques Vierges (Tortola)",VI:"Îles Vierges (États-Unis)",VN:"Viêt-Nam",VU:"Vanuatu",WF:"Wallis et Futuna",WS:"Samoa",XA:"Abkhazie",XK:"Kosovo",XO:"Ossétie du Sud-Alanie",YE:"Yemen",YT:"Mayotte",ZA:"Afrique du Sud",ZM:"Zambie",ZW:"Zimbabwe",ZZ:"International"},ho=o.forwardRef(({label:e,error:t,helperText:n,startIcon:r,endIcon:i,prefixText:a,suffixText:l,type:s="text",placeholder:d,disabled:u,required:f,className:m,wrapperClassName:h,...x},g)=>{const b=!!(r||a),v=!!(l||i);return c.jsx($t,{label:e,error:t,helperText:n,required:f,disabled:u,wrapperClassName:h,startAdornment:b?c.jsxs("div",{className:"flex items-center gap-1.5 text-text-muted text-sm",children:[r,a&&c.jsx("span",{className:"font-medium text-text select-none",children:a})]}):void 0,endAdornment:v?c.jsxs("div",{className:"flex items-center gap-1.5 text-text-muted text-sm",children:[l&&c.jsx("span",{className:"font-medium text-text select-none",children:l}),i]}):void 0,children:c.jsx("input",{ref:g,type:s,disabled:u,placeholder:d||(typeof e=="string"?e:void 0),className:K("w-full h-11 bg-transparent text-sm text-text placeholder:text-text-subtle/80 outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0",b?"ps-2.5":"ps-3.5",v?"pe-2.5":"pe-3.5","disabled:cursor-not-allowed",m),...x})})});ho.displayName="GymatraTextInput";const qp=o.forwardRef(({label:e="Email",startIcon:t,...n},r)=>{const i=c.jsxs("svg",{className:"size-4 text-text-subtle",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),c.jsx("path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"})]});return c.jsx(ho,{ref:r,type:"email",label:e,startIcon:t??i,autoComplete:"email",...n})});qp.displayName="GymatraEmailInput";const Yp=o.forwardRef(({label:e="Mot de passe",startIcon:t,...n},r)=>{const[i,a]=o.useState(!1),l=c.jsxs("svg",{className:"size-4 text-text-subtle",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),c.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]});return c.jsx(ho,{ref:r,type:i?"text":"password",label:e,startIcon:t??l,autoComplete:"current-password",endIcon:c.jsx("button",{type:"button",tabIndex:-1,onClick:()=>a(!i),className:"text-text-muted hover:text-text cursor-pointer transition-colors p-1","aria-label":i?"Masquer":"Afficher",children:i?c.jsxs("svg",{className:"size-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),c.jsx("line",{x1:"1",y1:"23",x2:"23",y2:"1"})]}):c.jsxs("svg",{className:"size-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),c.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}),...n})});Yp.displayName="GymatraPasswordInput";const Xp=o.forwardRef(({label:e="Rechercher",startIcon:t,value:n,onChange:r,onClear:i,...a},l)=>{const[s,d]=o.useState(""),u=n!==void 0,f=u?String(n):s,m=c.jsxs("svg",{className:"size-4 text-text-subtle",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("circle",{cx:"11",cy:"11",r:"8"}),c.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),h=()=>{u||d(""),i==null||i()};return c.jsx(ho,{ref:l,type:"search",label:e,value:n,onChange:x=>{u||d(x.target.value),r==null||r(x)},startIcon:t??m,endIcon:f?c.jsx("button",{type:"button",onClick:h,className:"text-text-muted hover:text-text cursor-pointer p-0.5 rounded-full hover:bg-surface-muted transition-colors","aria-label":"Effacer",children:c.jsxs("svg",{className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}):void 0,...a})});Xp.displayName="GymatraSearchInput";const vf=["MA","DZ","TN","FR","ES","BE","CA","US","GB","SA","AE","QA","TR"],xf={MA:"Maroc",DZ:"Algérie",TN:"Tunisie",FR:"France",ES:"Espagne",BE:"Belgique",CA:"Canada",US:"États-Unis",GB:"Royaume-Uni",SA:"Arabie Saoudite",AE:"Émirats Arabes Unis",QA:"Qatar",TR:"Turquie",IT:"Italie",DE:"Allemagne",CH:"Suisse",NL:"Pays-Bas",PT:"Portugal",EG:"Égypte",SN:"Sénégal",CI:"Côte d'Ivoire"},Zp=({name:e,label:t="Téléphone",error:n,helperText:r,value:i,defaultValue:a,onChange:l,onBlur:s,defaultCountry:d="MA",disabled:u,required:f,autoValidate:m=!1,invalidErrorMessage:h,placeholder:x,className:g,wrapperClassName:b})=>{const[v,y]=o.useState(d),[w,E]=o.useState(a),[C,$]=o.useState(!1),[M,S]=o.useState(""),P=o.useRef(null),N=o.useRef(null),R=i!==void 0?i:w,z=U=>{i===void 0&&E(U),l==null||l(U)},_=hf[v],F=v?Es(v):"212",O=!!(m&&R&&R.trim().length>3&&!Kp(R)),j=n||(O?h||"Numéro de téléphone invalide pour ce pays":void 0),V=o.useMemo(()=>{const G=fw().filter(I=>!vf.includes(I));return[...vf,...G]},[]),J=o.useMemo(()=>{if(!M.trim())return V;const U=M.toLowerCase().trim();return V.filter(G=>{const I=(gf[G]||xf[G]||G).toLowerCase(),A=Es(G);return I.includes(U)||A.includes(U)||G.toLowerCase().includes(U)})},[V,M]);return o.useEffect(()=>{const U=G=>{P.current&&!P.current.contains(G.target)&&$(!1)};return C&&(document.addEventListener("mousedown",U),setTimeout(()=>{var G;return(G=N.current)==null?void 0:G.focus()},50)),()=>document.removeEventListener("mousedown",U)},[C]),c.jsxs("div",{ref:P,className:"relative w-full",children:[c.jsx($t,{label:t,error:j,helperText:r,required:f,disabled:u,focused:C,wrapperClassName:b,className:g,startAdornment:c.jsxs("div",{className:"relative flex items-center pe-1 self-stretch",children:[c.jsxs("button",{type:"button",disabled:u,onClick:()=>{u||($(!C),S(""))},className:"flex items-center gap-1.5 py-1 px-1 -ms-1 rounded hover:bg-surface-muted transition-colors cursor-pointer select-none text-sm text-text outline-none focus-visible:ring-1 focus-visible:ring-primary","aria-expanded":C,"aria-label":"Sélectionner le pays",children:[c.jsx("span",{className:"flex items-center justify-center w-5 h-3.5 rounded-[2px] overflow-hidden border border-border/80 shrink-0 bg-surface-muted [&>svg]:size-full [&>svg]:object-cover",children:_?c.jsx(_,{title:v}):c.jsx("span",{className:"text-xs",children:"🌐"})}),c.jsx("svg",{className:K("size-3 text-text-subtle shrink-0 transition-transform duration-200",C&&"rotate-180"),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:c.jsx("polyline",{points:"6 9 12 15 18 9"})}),c.jsxs("span",{className:"font-medium text-text text-sm ms-0.5",children:["+",F]})]}),c.jsx("span",{className:"h-4 w-px bg-border ms-1.5 me-1 shrink-0","aria-hidden":"true"})]}),children:c.jsx(iw,{name:e,country:v,value:R,onChange:z,onBlur:s,disabled:u,placeholder:x||(v==="MA"?"06 55 12 34 56":"Numéro de téléphone"),className:K("w-full h-11 ps-1 pe-3.5 bg-transparent text-sm text-text placeholder:text-text-subtle/80 outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0","disabled:cursor-not-allowed",g)})}),C&&c.jsxs("div",{className:"absolute top-[calc(100%+6px)] start-0 z-50 w-72 rounded-lg border border-border bg-white p-2 shadow-lg max-h-72 flex flex-col",children:[c.jsxs("div",{className:"relative mb-2 shrink-0",children:[c.jsx("div",{className:"absolute inset-y-0 start-2.5 flex items-center pointer-events-none text-text-subtle",children:c.jsxs("svg",{className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[c.jsx("circle",{cx:"11",cy:"11",r:"8"}),c.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})}),c.jsx("input",{ref:N,type:"text",value:M,onChange:U=>S(U.target.value),placeholder:"Rechercher pays ou indicatif...",className:"w-full h-8 ps-8 pe-2.5 bg-surface-muted rounded text-xs text-text placeholder:text-text-subtle outline-none border border-border focus:border-primary focus:bg-white transition-colors"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto space-y-0.5 pe-1",children:J.length===0?c.jsx("div",{className:"px-3 py-4 text-xs text-center text-text-muted",children:"Aucun pays trouvé"}):J.map(U=>{const G=hf[U],I=Es(U),A=gf[U]||xf[U]||U,T=U===v;return c.jsxs("button",{type:"button",onClick:()=>{y(U),$(!1),S("")},className:K("w-full flex items-center justify-between px-2.5 py-1.5 rounded text-xs transition-colors cursor-pointer text-start",T?"bg-primary-soft text-primary font-medium":"text-text hover:bg-surface-muted"),children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[c.jsx("span",{className:"flex items-center justify-center w-5 h-3.5 rounded-[2px] overflow-hidden border border-border/80 shrink-0 bg-surface-muted [&>svg]:size-full [&>svg]:object-cover",children:G?c.jsx(G,{title:A}):c.jsx("span",{className:"text-[10px]",children:"🌐"})}),c.jsx("span",{className:"truncate",children:A})]}),c.jsxs("span",{className:K("text-xs shrink-0 ms-2 font-medium",T?"text-primary":"text-text-muted"),children:["+",I]})]},U)})})]})]})};Zp.displayName="GymatraPhoneInput";const Jp=o.forwardRef(({label:e="Site web",prefixText:t="https://",...n},r)=>{const i=c.jsxs("svg",{className:"size-4 text-text-subtle",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),c.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]});return c.jsx(ho,{ref:r,type:"url",label:e,startIcon:i,prefixText:t,placeholder:"example.com",...n})});Jp.displayName="GymatraUrlInput";const Ci=o.forwardRef(({label:e="Nombre",error:t,helperText:n,step:r=1,min:i,max:a,showSteppers:l=!0,prefixText:s,suffixText:d,disabled:u,required:f,className:m,value:h,defaultValue:x,onChange:g,...b},v)=>{const y=o.useRef(null),w=E=>{const C=y.current;!C||u||(E==="up"?C.stepUp():C.stepDown(),C.dispatchEvent(new Event("change",{bubbles:!0})))};return c.jsx($t,{label:e,error:t,helperText:n,required:f,disabled:u,startAdornment:s?c.jsx("span",{className:"text-xs text-text-muted font-medium select-none",children:s}):void 0,endAdornment:l?c.jsxs("div",{className:"flex flex-col border-s border-border -me-1 self-stretch my-0.5 justify-center",children:[c.jsx("button",{type:"button",tabIndex:-1,disabled:u,onClick:()=>w("up"),className:"px-1.5 py-0 text-text-muted hover:text-text hover:bg-surface-muted transition-colors cursor-pointer flex-1 flex items-center justify-center","aria-label":"Augmenter",children:c.jsx("svg",{className:"size-2.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:c.jsx("polyline",{points:"18 15 12 9 6 15"})})}),c.jsx("button",{type:"button",tabIndex:-1,disabled:u,onClick:()=>w("down"),className:"px-1.5 py-0 text-text-muted hover:text-text hover:bg-surface-muted transition-colors cursor-pointer border-t border-border flex-1 flex items-center justify-center","aria-label":"Diminuer",children:c.jsx("svg",{className:"size-2.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:c.jsx("polyline",{points:"6 9 12 15 18 9"})})})]}):d?c.jsx("span",{className:"text-xs text-text-muted font-medium select-none",children:d}):void 0,children:c.jsx("input",{ref:E=>{y.current=E,typeof v=="function"?v(E):v&&(v.current=E)},type:"number",step:r,min:i,max:a,disabled:u,value:h,defaultValue:x,onChange:g,className:K("w-full h-11 bg-transparent text-sm text-text placeholder:text-text-subtle outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",s?"ps-2.5":"ps-3.5",l||d?"pe-2.5":"pe-3.5",m),...b})})});Ci.displayName="GymatraNumberInput";const oT=Ci,Qp=o.forwardRef(({label:e="Montant",currency:t="DH",currencyPosition:n="end",step:r=.01,min:i=0,placeholder:a="0.00",...l},s)=>{const d=n==="start";return c.jsx(Ci,{ref:s,label:e,step:r,min:i,placeholder:a,showSteppers:!1,prefixText:d?t:void 0,suffixText:d?void 0:t,...l})});Qp.displayName="GymatraCurrencyInput";const e4=o.forwardRef(({label:e="Pourcentage",min:t=0,max:n=100,step:r=1,placeholder:i="0",...a},l)=>c.jsx(Ci,{ref:l,label:e,min:t,max:n,step:r,placeholder:i,showSteppers:!1,suffixText:"%",...a}));e4.displayName="GymatraPercentageInput";const t4=o.forwardRef(({label:e="Date",error:t,helperText:n,required:r,disabled:i,className:a,...l},s)=>c.jsx($t,{label:e,error:t,helperText:n,required:r,disabled:i,endAdornment:c.jsxs("svg",{className:"size-4 text-text-subtle pointer-events-none",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),c.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),c.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),c.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),children:c.jsx("input",{ref:s,type:"date",disabled:i,className:K("w-full h-11 px-3 bg-transparent text-sm text-text outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0 [color-scheme:light]",a),...l})}));t4.displayName="GymatraDateInput";const n4=o.forwardRef(({label:e="Heure",error:t,helperText:n,required:r,disabled:i,className:a,...l},s)=>c.jsx($t,{label:e,error:t,helperText:n,required:r,disabled:i,endAdornment:c.jsxs("svg",{className:"size-4 text-text-subtle pointer-events-none",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("polyline",{points:"12 6 12 12 16 14"})]}),children:c.jsx("input",{ref:s,type:"time",disabled:i,className:K("w-full h-11 px-3 bg-transparent text-sm text-text outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0 [color-scheme:light]",a),...l})}));n4.displayName="GymatraTimeInput";const r4=o.forwardRef(({label:e="Date & Heure",error:t,helperText:n,required:r,disabled:i,className:a,...l},s)=>c.jsx($t,{label:e,error:t,helperText:n,required:r,disabled:i,endAdornment:c.jsxs("svg",{className:"size-4 text-text-subtle pointer-events-none",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),c.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),c.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),c.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),children:c.jsx("input",{ref:s,type:"datetime-local",disabled:i,className:K("w-full h-11 px-3 bg-transparent text-sm text-text outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0 [color-scheme:light]",a),...l})}));r4.displayName="GymatraDateTimeInput";function iT({label:e="Période (Début - Fin)",startDate:t,endDate:n,onStartDateChange:r,onEndDateChange:i,error:a,helperText:l,disabled:s,required:d,className:u}){return c.jsx($t,{label:e,error:a,helperText:l,required:d,disabled:s,className:u,endAdornment:c.jsxs("svg",{className:"size-4 text-text-subtle pointer-events-none",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),c.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),c.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),c.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),children:c.jsxs("div",{className:"flex items-center w-full px-2",children:[c.jsx("input",{type:"date",value:t,disabled:s,onChange:f=>r==null?void 0:r(f.target.value),className:"flex-1 h-11 bg-transparent text-sm text-text outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0 [color-scheme:light]"}),c.jsx("span",{className:"px-2 text-text-muted select-none",children:"→"}),c.jsx("input",{type:"date",value:n,disabled:s,onChange:f=>i==null?void 0:i(f.target.value),className:"flex-1 h-11 bg-transparent text-sm text-text outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0 [color-scheme:light]"})]})})}function aT({name:e,label:t="Sélection",options:n,value:r,defaultValue:i,onChange:a,onBlur:l,placeholder:s="Sélectionner une option...",searchable:d=!1,searchPlaceholder:u="Rechercher...",clearable:f=!1,error:m,helperText:h,required:x,disabled:g,className:b,wrapperClassName:v}){const[y,w]=o.useState(i),[E,C]=o.useState(!1),[$,M]=o.useState(""),S=o.useRef(null),P=o.useRef(null),N=r!==void 0,R=N?r:y,z=n.find(j=>j.value===R);o.useEffect(()=>{const j=V=>{S.current&&!S.current.contains(V.target)&&C(!1)};if(E)return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[E]),o.useEffect(()=>{E&&d&&P.current&&P.current.focus(),E||M("")},[E,d]);const _=$.trim()?n.filter(j=>j.label.toLowerCase().includes($.toLowerCase())||j.description&&j.description.toLowerCase().includes($.toLowerCase())):n,F=j=>{j.disabled||(N||w(j.value),a==null||a(j.value),C(!1))},O=j=>{j.stopPropagation(),N||w(void 0),a==null||a(void 0)};return c.jsxs("div",{ref:S,className:K("relative w-full",v),children:[e&&c.jsx("input",{type:"hidden",name:e,value:R!==void 0?String(R):""}),c.jsx($t,{label:t,error:m,helperText:h,required:x,disabled:g,focused:E,endAdornment:c.jsxs("div",{className:"flex items-center gap-1",children:[f&&R!==void 0&&!g&&c.jsx("button",{type:"button",tabIndex:-1,onClick:O,className:"size-5 flex items-center justify-center rounded text-text-subtle hover:text-text hover:bg-surface-muted transition-colors cursor-pointer",title:"Effacer",children:c.jsxs("svg",{className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),c.jsx("svg",{className:K("size-4 text-text-subtle transition-transform duration-200 pointer-events-none",E&&"rotate-180"),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),children:c.jsx("button",{type:"button",disabled:g,onClick:()=>C(j=>!j),onBlur:l,className:K("w-full h-11 px-3.5 flex items-center justify-start text-start bg-transparent text-sm outline-none cursor-pointer border-0 ring-0",g&&"cursor-not-allowed text-text-subtle",b),children:z?c.jsxs("span",{className:"flex items-center gap-2 truncate text-text font-normal",children:[z.icon&&c.jsx("span",{className:"shrink-0 text-text-muted",children:z.icon}),c.jsx("span",{className:"truncate",children:z.label})]}):c.jsx("span",{className:"text-text-subtle/80 truncate",children:s})})}),E&&c.jsxs("div",{className:"absolute top-[calc(100%+4px)] start-0 z-50 w-full rounded-lg border border-border bg-white p-1.5 shadow-lg max-h-72 overflow-y-auto animate-in fade-in-50 zoom-in-95",children:[d&&c.jsx("div",{className:"p-1 pb-1.5 border-b border-border mb-1",children:c.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1.5 bg-surface-muted rounded-md text-xs",children:[c.jsxs("svg",{className:"size-3.5 text-text-subtle shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("circle",{cx:"11",cy:"11",r:"8"}),c.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),c.jsx("input",{ref:P,type:"text",value:$,onChange:j=>M(j.target.value),placeholder:u,className:"w-full bg-transparent text-text outline-none placeholder:text-text-subtle text-xs"}),$&&c.jsx("button",{type:"button",onClick:()=>M(""),className:"size-3.5 text-text-subtle hover:text-text cursor-pointer",children:"×"})]})}),c.jsx("div",{className:"space-y-0.5",children:_.length===0?c.jsx("div",{className:"py-4 text-center text-xs text-text-muted",children:"Aucun résultat trouvé"}):_.map(j=>{const V=j.value===R;return c.jsxs("button",{type:"button",disabled:j.disabled,onClick:()=>F(j),className:K("w-full flex items-center justify-between gap-2 px-3 py-2 rounded-md text-xs sm:text-sm text-start transition-colors cursor-pointer",V?"bg-primary-soft text-primary font-medium":"text-text hover:bg-surface-muted",j.disabled&&"opacity-40 cursor-not-allowed hover:bg-transparent"),children:[c.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[j.icon&&c.jsx("span",{className:"shrink-0 text-text-muted",children:j.icon}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"truncate font-medium",children:j.label}),j.description&&c.jsx("div",{className:"text-xs text-text-muted truncate mt-0.5",children:j.description})]})]}),V&&c.jsx("svg",{className:"size-4 text-primary shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:c.jsx("polyline",{points:"20 6 9 17 4 12"})})]},String(j.value))})})]})]})}const o4=o.forwardRef(({label:e="Sélection",options:t,error:n,helperText:r,placeholder:i="Choisir...",disabled:a,required:l,className:s,children:d,...u},f)=>c.jsx($t,{label:e,error:n,helperText:r,required:l,disabled:a,endAdornment:c.jsx("svg",{className:"size-4 text-text-subtle pointer-events-none",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("polyline",{points:"6 9 12 15 18 9"})}),children:c.jsxs("select",{ref:f,disabled:a,className:K("w-full h-11 ps-3.5 pe-8 bg-transparent text-sm text-text outline-none appearance-none cursor-pointer border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0",s),...u,children:[i&&c.jsx("option",{value:"",children:i}),t.map(m=>c.jsx("option",{value:m.value,children:m.label},m.value)),d]})}));o4.displayName="GymatraSelectField";function lT({label:e="Sélection multiple",options:t,value:n=[],onChange:r,error:i,helperText:a,placeholder:l="Sélectionner...",disabled:s,required:d}){const[u,f]=o.useState(!1),m=o.useRef(null);o.useEffect(()=>{const g=b=>{m.current&&!m.current.contains(b.target)&&f(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]);const h=g=>{n.includes(g)?r==null||r(n.filter(b=>b!==g)):r==null||r([...n,g])},x=t.filter(g=>n.includes(g.value));return c.jsxs("div",{ref:m,className:"relative w-full",children:[c.jsx($t,{label:e,error:i,helperText:a,required:d,disabled:s,focused:u,endAdornment:c.jsx("svg",{className:K("size-4 text-text-subtle transition-transform",u&&"rotate-180"),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("polyline",{points:"6 9 12 15 18 9"})}),children:c.jsx("button",{type:"button",disabled:s,onClick:()=>f(!u),className:"w-full min-h-11 py-2 px-3.5 flex flex-wrap items-center gap-1.5 text-left text-sm text-text outline-none cursor-pointer",children:x.length===0?c.jsx("span",{className:"text-text-subtle",children:l}):x.map(g=>c.jsxs("span",{className:"inline-flex items-center gap-1 rounded bg-surface-muted px-2 py-0.5 text-xs font-medium text-text border border-border",children:[g.label,c.jsx("span",{role:"button",tabIndex:0,onClick:b=>{b.stopPropagation(),h(g.value)},className:"text-text-muted hover:text-text cursor-pointer",children:"×"})]},g.value))})}),u&&c.jsx("div",{className:"absolute top-[calc(100%+4px)] start-0 z-50 w-full rounded-md border border-border bg-white p-1.5 shadow-sm max-h-56 overflow-y-auto",children:t.map(g=>{const b=n.includes(g.value);return c.jsxs("div",{onClick:()=>h(g.value),className:K("flex items-center justify-between px-2.5 py-1.5 rounded text-sm cursor-pointer transition-colors",b?"bg-primary-soft text-primary font-medium":"text-text hover:bg-surface-muted"),children:[c.jsx("span",{children:g.label}),b&&c.jsx("span",{children:"✓"})]},g.value)})})]})}function sT({label:e="Autocomplétion",suggestions:t,value:n="",onChange:r,placeholder:i="Commencez à taper...",error:a,helperText:l}){const[s,d]=o.useState(!1),[u,f]=o.useState(n),m=o.useRef(null),h=n!==void 0?n:u,x=t.filter(g=>g.toLowerCase().includes(h.toLowerCase())&&g.toLowerCase()!==h.toLowerCase());return o.useEffect(()=>{const g=b=>{m.current&&!m.current.contains(b.target)&&d(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]),c.jsxs("div",{ref:m,className:"relative w-full",children:[c.jsx($t,{label:e,error:a,helperText:l,focused:s&&x.length>0,children:c.jsx("input",{type:"text",value:h,placeholder:i,onFocus:()=>d(!0),onChange:g=>{const b=g.target.value;f(b),r==null||r(b),d(!0)},className:"w-full h-11 px-3.5 bg-transparent text-sm text-text placeholder:text-text-subtle outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0"})}),s&&x.length>0&&c.jsx("div",{className:"absolute top-[calc(100%+4px)] start-0 z-50 w-full rounded-md border border-border bg-white p-1 shadow-sm max-h-48 overflow-y-auto",children:x.map((g,b)=>c.jsx("div",{onClick:()=>{f(g),r==null||r(g),d(!1)},className:"px-3 py-2 rounded text-sm text-text hover:bg-surface-muted cursor-pointer transition-colors",children:g},b))})]})}function cT({label:e,boxLabel:t,description:n,error:r,helperText:i,checked:a,defaultChecked:l,onChange:s,disabled:d,className:u,...f}){return c.jsx($t,{label:e,error:r,helperText:i,disabled:d,className:u,children:c.jsxs("label",{className:"flex items-start gap-2.5 w-full p-3 cursor-pointer select-none",children:[c.jsx("input",{type:"checkbox",checked:a,defaultChecked:l,onChange:s,disabled:d,className:"mt-0.5 size-4 accent-primary rounded border-border",...f}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("span",{className:"text-sm font-medium text-text block leading-tight",children:t}),n&&c.jsx("span",{className:"text-xs text-text-muted mt-0.5 block",children:n})]})]})})}function uT({label:e="Options",name:t,options:n,value:r,defaultValue:i,onChange:a,direction:l="horizontal",error:s,helperText:d,disabled:u}){return c.jsx($t,{label:e,error:s,helperText:d,disabled:u,children:c.jsx("div",{className:K("p-3 w-full flex flex-wrap gap-4",l==="vertical"&&"flex-col gap-2.5"),children:n.map(f=>c.jsxs("label",{className:"flex items-center gap-2 cursor-pointer select-none",children:[c.jsx("input",{type:"radio",name:t,value:f.value,checked:r!==void 0?r===f.value:void 0,defaultChecked:i===f.value,onChange:()=>a==null?void 0:a(f.value),disabled:u,className:"size-4 accent-primary"}),c.jsx("span",{className:"text-sm font-medium text-text",children:f.label})]},f.value))})})}function dT({label:e,switchLabel:t,description:n,checked:r,defaultChecked:i,onChange:a,error:l,helperText:s,disabled:d}){return c.jsx($t,{label:e,error:l,helperText:s,disabled:d,children:c.jsxs("div",{className:"flex items-center justify-between w-full p-3",children:[c.jsxs("div",{className:"min-w-0 pe-3",children:[c.jsx("span",{className:"text-sm font-medium text-text block leading-tight",children:t}),n&&c.jsx("span",{className:"text-xs text-text-muted mt-0.5 block",children:n})]}),c.jsx("button",{type:"button",role:"switch","aria-checked":r,disabled:d,onClick:()=>a==null?void 0:a(!r),className:K("relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",r?"bg-primary":"bg-border-strong"),children:c.jsx("span",{className:K("pointer-events-none inline-block size-5 transform rounded-full bg-white shadow-sm ring-0 transition duration-200 ease-in-out",r?"translate-x-5":"translate-x-0")})})]})})}function fT({label:e,options:t,value:n,onChange:r,error:i,helperText:a}){return c.jsx($t,{label:e,error:i,helperText:a,children:c.jsx("div",{className:"flex items-center p-1.5 w-full gap-1",children:t.map(l=>c.jsx("button",{type:"button",onClick:()=>r(l.value),className:K("flex-1 h-8 rounded text-sm font-medium transition-colors cursor-pointer",n===l.value?"bg-primary text-white shadow-none":"bg-surface-muted text-text-muted hover:bg-border/60 hover:text-text"),children:l.label},l.value))})})}const i4=o.forwardRef(({label:e="Description",error:t,helperText:n,required:r,disabled:i,className:a,placeholder:l,rows:s=3,...d},u)=>c.jsx($t,{label:e,error:t,helperText:n,required:r,disabled:i,children:c.jsx("textarea",{ref:u,rows:s,disabled:i,placeholder:l||(typeof e=="string"?e:void 0),className:K("w-full p-3 bg-transparent text-sm text-text placeholder:text-text-subtle/80 outline-none resize-none",a),...d})}));i4.displayName="GymatraTextareaField";function mT({label:e="Contenu enrichi",value:t,defaultValue:n="",onChange:r,placeholder:i="Rédigez votre texte...",error:a,helperText:l,disabled:s}){const[d,u]=o.useState(n),f=t!==void 0?t:d,m=h=>{const x=`${f} [${h}]`;t===void 0&&u(x),r==null||r(x)};return c.jsx($t,{label:e,error:a,helperText:l,disabled:s,children:c.jsxs("div",{className:"flex flex-col w-full",children:[c.jsxs("div",{className:"flex items-center gap-1 border-b border-border p-2 bg-surface-muted/50",children:[c.jsx("button",{type:"button",onClick:()=>m("b"),className:"size-7 rounded text-xs font-bold text-text hover:bg-white hover:shadow-xs transition-colors",title:"Gras",children:"B"}),c.jsx("button",{type:"button",onClick:()=>m("i"),className:"size-7 rounded text-xs italic font-serif text-text hover:bg-white hover:shadow-xs transition-colors",title:"Italique",children:"I"}),c.jsx("button",{type:"button",onClick:()=>m("u"),className:"size-7 rounded text-xs underline text-text hover:bg-white hover:shadow-xs transition-colors",title:"Souligné",children:"U"}),c.jsx("span",{className:"h-4 w-px bg-border mx-1"}),c.jsx("button",{type:"button",onClick:()=>m("ul"),className:"size-7 rounded text-xs text-text hover:bg-white hover:shadow-xs transition-colors flex items-center justify-center",title:"Liste à puces",children:c.jsxs("svg",{className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("line",{x1:"8",y1:"6",x2:"21",y2:"6"}),c.jsx("line",{x1:"8",y1:"12",x2:"21",y2:"12"}),c.jsx("line",{x1:"8",y1:"18",x2:"21",y2:"18"}),c.jsx("line",{x1:"3",y1:"6",x2:"3.01",y2:"6"}),c.jsx("line",{x1:"3",y1:"12",x2:"3.01",y2:"12"}),c.jsx("line",{x1:"3",y1:"18",x2:"3.01",y2:"18"})]})}),c.jsx("button",{type:"button",onClick:()=>m("link"),className:"size-7 rounded text-xs text-text hover:bg-white hover:shadow-xs transition-colors flex items-center justify-center",title:"Lien",children:c.jsxs("svg",{className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),c.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})})]}),c.jsx("textarea",{rows:4,value:f,disabled:s,placeholder:i,onChange:h=>{t===void 0&&u(h.target.value),r==null||r(h.target.value)},className:"w-full p-3 bg-transparent text-sm text-text placeholder:text-text-subtle/80 outline-none resize-none"})]})})}function pT({label:e="Fichiers joints",accept:t,multiple:n=!1,onFilesSelected:r,error:i,helperText:a,disabled:l}){const[s,d]=o.useState([]),u=o.useId(),f=m=>{if(!m||m.length===0)return;const h=Array.from(m);d(h.map(x=>x.name)),r==null||r(h)};return c.jsx($t,{label:e,error:i,helperText:a,disabled:l,children:c.jsxs("div",{className:"flex flex-col w-full p-3.5",children:[c.jsx("input",{id:u,type:"file",accept:t,multiple:n,disabled:l,onChange:m=>f(m.target.files),className:"hidden"}),c.jsxs("label",{htmlFor:u,className:"flex flex-col items-center justify-center border-2 border-dashed border-border rounded-md p-4 bg-surface-muted/30 hover:bg-surface-muted cursor-pointer transition-colors text-center",children:[c.jsxs("svg",{className:"size-6 text-text-subtle mb-1.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:[c.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),c.jsx("polyline",{points:"17 8 12 3 7 8"}),c.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]}),c.jsx("span",{className:"text-sm font-medium text-primary",children:"Cliquez pour parcourir"}),c.jsx("span",{className:"text-xs text-text-muted mt-0.5",children:"ou glissez-déposez vos fichiers ici"})]}),s.length>0&&c.jsx("div",{className:"mt-2.5 flex flex-wrap gap-1.5",children:s.map((m,h)=>c.jsxs("span",{className:"inline-flex items-center gap-1 rounded bg-surface-muted px-2 py-0.5 text-xs text-text border border-border",children:["📄 ",m]},h))})]})})}function hT({label:e="Téléverser une image",onImageSelected:t,error:n,helperText:r,disabled:i}){const[a,l]=o.useState(null),s=o.useId(),d=u=>{const f=u==null?void 0:u[0];f&&(l(URL.createObjectURL(f)),t==null||t(f))};return c.jsx($t,{label:e,error:n,helperText:r,disabled:i,children:c.jsxs("div",{className:"flex items-center justify-between w-full p-3.5 gap-3",children:[c.jsx("input",{id:s,type:"file",accept:"image/*",disabled:i,onChange:u=>d(u.target.files),className:"hidden"}),a?c.jsxs("div",{className:"flex items-center gap-3 w-full",children:[c.jsx("img",{src:a,alt:"Aperçu",className:"size-14 rounded-md object-cover border border-border shrink-0"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("label",{htmlFor:s,className:"text-xs font-semibold text-primary hover:underline cursor-pointer block",children:"Changer l'image"}),c.jsx("button",{type:"button",onClick:()=>l(null),className:"mt-1 text-xs text-danger hover:underline cursor-pointer",children:"Supprimer"})]})]}):c.jsxs("label",{htmlFor:s,className:"flex items-center gap-3 w-full cursor-pointer",children:[c.jsx("div",{className:"size-12 rounded-md bg-surface-muted border border-border flex items-center justify-center text-text-subtle shrink-0",children:c.jsxs("svg",{className:"size-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:[c.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),c.jsx("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),c.jsx("polyline",{points:"21 15 16 10 5 21"})]})}),c.jsxs("div",{children:[c.jsx("span",{className:"text-sm font-medium text-text block",children:"Sélectionner une photo"}),c.jsx("span",{className:"text-xs text-text-muted",children:"PNG, JPG, WebP jusqu'à 5MB"})]})]})]})})}function gT({label:e="Photo de profil",initialSrc:t,onAvatarChange:n,error:r,helperText:i,disabled:a}){const[l,s]=o.useState(t??null),d=o.useId(),u=f=>{const m=f==null?void 0:f[0];m&&(s(URL.createObjectURL(m)),n==null||n(m))};return c.jsx($t,{label:e,error:r,helperText:i,disabled:a,children:c.jsxs("div",{className:"flex items-center gap-3.5 w-full p-3.5",children:[c.jsx("input",{id:d,type:"file",accept:"image/*",disabled:a,onChange:f=>u(f.target.files),className:"hidden"}),c.jsx("div",{className:"size-12 rounded-full border border-border bg-surface-muted overflow-hidden flex items-center justify-center shrink-0",children:l?c.jsx("img",{src:l,alt:"Avatar",className:"size-full object-cover"}):c.jsx("svg",{className:"size-6 text-text-subtle",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:c.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})})}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:d,className:"inline-flex h-8 items-center justify-center rounded-md border border-border bg-surface px-3 text-xs font-medium text-text hover:bg-surface-muted cursor-pointer transition-colors",children:"Téléverser une photo"}),c.jsx("span",{className:"text-xs text-text-muted block mt-0.5",children:"Format carré recommandé"})]})]})})}const vT=["#224086","#10B981","#EF4444","#F59E0B","#8B5CF6","#06B6D4","#1E293B"];function a4({name:e,label:t="Couleur",value:n,defaultValue:r="#224086",onChange:i,onBlur:a,presets:l=vT,showPresets:s=!0,error:d,helperText:u,disabled:f,required:m,className:h,wrapperClassName:x}){const[g,b]=o.useState(r),v=n!==void 0?n:g,y=E=>{n===void 0&&b(E),i==null||i(E)},w=v.startsWith("#")?v.slice(1):v;return c.jsx($t,{label:t,error:d,helperText:u,required:m,disabled:f,wrapperClassName:x,className:h,startAdornment:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("div",{className:"relative size-6 rounded border border-border overflow-hidden cursor-pointer shrink-0 shadow-none hover:border-text-subtle transition-colors",children:[c.jsx("div",{className:"w-full h-full",style:{backgroundColor:v||"#224086"}}),c.jsx("input",{type:"color",value:v.startsWith("#")&&v.length===7?v:"#224086",disabled:f,onChange:E=>y(E.target.value.toUpperCase()),className:"absolute inset-0 opacity-0 w-full h-full cursor-pointer disabled:cursor-not-allowed","aria-label":"Choisir la couleur"})]}),c.jsx("span",{className:"text-text-muted font-mono text-sm select-none",children:"#"})]}),endAdornment:s&&l.length>0?c.jsx("div",{className:"flex items-center gap-1.5 pe-1",children:l.slice(0,7).map(E=>{const C=v.toLowerCase()===E.toLowerCase();return c.jsx("button",{type:"button",disabled:f,onClick:()=>y(E),className:K("size-4 rounded-full border transition-all cursor-pointer hover:scale-115 shrink-0",C?"ring-2 ring-primary ring-offset-1 border-white scale-110":"border-border/60 hover:border-text-subtle"),style:{backgroundColor:E},title:E,"aria-label":`Couleur ${E}`},E)})}):void 0,children:c.jsx("input",{name:e,type:"text",value:w.toUpperCase(),disabled:f,maxLength:6,onChange:E=>{const C=E.target.value.replace(/[^0-9A-Fa-f]/g,"");C.length<=6&&y(`#${C}`)},onBlur:a,placeholder:"224086",className:K("w-full h-11 ps-1 pe-2 bg-transparent text-sm font-mono text-text placeholder:text-text-subtle/80 uppercase outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0","disabled:cursor-not-allowed")})})}const xT=a4;function bT({label:e="Intensité",min:t=0,max:n=100,step:r=1,value:i,defaultValue:a=50,unit:l="%",onChange:s,error:d,helperText:u,disabled:f}){const[m,h]=o.useState(a),x=i!==void 0?i:m;return c.jsx($t,{label:e,error:d,helperText:u,disabled:f,children:c.jsxs("div",{className:"flex items-center gap-3 w-full p-3",children:[c.jsx("input",{type:"range",min:t,max:n,step:r,value:x,disabled:f,onChange:g=>{const b=Number(g.target.value);i===void 0&&h(b),s==null||s(b)},className:"flex-1 accent-primary cursor-pointer"}),c.jsxs("span",{className:"min-w-10 text-right text-sm font-semibold text-text font-mono",children:[x,l]})]})})}function yT({label:e="Fourchette",min:t=0,max:n=1e3,minValue:r=100,maxValue:i=600,unit:a="€",onRangeChange:l,error:s,helperText:d}){const[u,f]=o.useState(r),[m,h]=o.useState(i);return c.jsx($t,{label:e,error:s,helperText:d,children:c.jsxs("div",{className:"flex items-center justify-between w-full p-3 gap-3",children:[c.jsxs("div",{className:"flex items-center gap-1.5 flex-1",children:[c.jsx("span",{className:"text-xs text-text-muted",children:"Min:"}),c.jsx("input",{type:"number",min:t,max:m,value:u,onChange:x=>{const g=Number(x.target.value);f(g),l==null||l(g,m)},className:"w-full h-8 px-2 rounded border border-border text-xs font-semibold text-text outline-none focus:border-primary"}),c.jsx("span",{className:"text-xs text-text-muted",children:a})]}),c.jsx("span",{className:"text-text-muted",children:"—"}),c.jsxs("div",{className:"flex items-center gap-1.5 flex-1",children:[c.jsx("span",{className:"text-xs text-text-muted",children:"Max:"}),c.jsx("input",{type:"number",min:u,max:n,value:m,onChange:x=>{const g=Number(x.target.value);h(g),l==null||l(u,g)},className:"w-full h-8 px-2 rounded border border-border text-xs font-semibold text-text outline-none focus:border-primary"}),c.jsx("span",{className:"text-xs text-text-muted",children:a})]})]})})}function ET({label:e="Code de validation (OTP)",length:t=6,value:n="",onChange:r,error:i,helperText:a,disabled:l}){const[s,d]=o.useState(n),u=n!==void 0?n:s,f=(h,x)=>{x.length>1&&(x=x.slice(-1));const g=u.padEnd(t," ").split("");g[h]=x||" ";const b=g.join("").trimEnd();if(n===void 0&&d(b),r==null||r(b),x&&h<t-1){const v=document.getElementById(`gym-otp-${h+1}`);v==null||v.focus()}},m=(h,x)=>{if(x.key==="Backspace"&&!u[h]&&h>0){const g=document.getElementById(`gym-otp-${h-1}`);g==null||g.focus()}};return c.jsx($t,{label:e,error:i,helperText:a,disabled:l,children:c.jsx("div",{className:"flex items-center justify-between w-full p-3 gap-2",children:Array.from({length:t}).map((h,x)=>c.jsx("input",{id:`gym-otp-${x}`,type:"text",inputMode:"numeric",maxLength:1,disabled:l,value:u[x]&&u[x]!==" "?u[x]:"",onChange:g=>f(x,g.target.value),onKeyDown:g=>m(x,g),className:"size-10 rounded-md border border-border bg-surface-muted text-center text-base font-semibold text-text focus:border-primary focus:bg-white focus:outline-none"},x))})})}function $i({label:e,error:t,helperText:n,required:r,disabled:i,startAdornment:a,endAdornment:l,focused:s,hasValue:d,className:u,children:f,...m}){const h=!!t;return c.jsxs("div",{className:K("relative w-full pt-2.5 pb-1",i&&"opacity-60 pointer-events-none",u),...m,children:[c.jsxs("div",{className:K("group relative flex items-center w-full min-h-11 rounded-md border bg-white transition-all",h?"border-danger focus-within:border-danger focus-within:ring-1 focus-within:ring-danger":s?"border-primary ring-1 ring-primary":"border-border hover:border-text-subtle focus-within:border-primary focus-within:ring-1 focus-within:ring-primary"),children:[c.jsxs("label",{className:K("pointer-events-none absolute -top-3 start-3 z-10 px-1.5 bg-white text-sm leading-none font-medium transition-colors select-none",h?"text-danger":s?"text-primary":"text-text-muted group-focus-within:text-primary group-hover:text-text"),children:[e,r&&c.jsx("span",{className:"ms-0.5 text-danger",children:"*"})]}),a&&c.jsx("div",{className:"flex shrink-0 items-center ps-3 text-text-muted select-none",children:a}),c.jsx("div",{className:"flex-1 min-w-0 flex items-center",children:f}),l&&c.jsx("div",{className:"flex shrink-0 items-center pe-3 text-text-muted select-none",children:l})]}),(t||n)&&c.jsx("p",{className:K("mt-1 text-xs leading-none ps-1",h?"text-danger":"text-text-muted"),children:t||n})]})}const l4=o.forwardRef(({label:e,error:t,helperText:n,startIcon:r,endIcon:i,prefixText:a,suffixText:l,type:s="text",value:d,defaultValue:u,onChange:f,disabled:m,required:h,className:x,placeholder:g,...b},v)=>{const[y,w]=o.useState(!1),[E,C]=o.useState(u??""),$=d!==void 0,M=s==="password",S=M?y?"text":"password":s;return c.jsx($i,{label:e,error:t,helperText:n,required:h,disabled:m,className:x,startAdornment:r||a?c.jsxs("div",{className:"flex items-center gap-1.5 text-text-muted text-sm",children:[r,a&&c.jsx("span",{className:"font-medium text-text",children:a})]}):void 0,endAdornment:M?c.jsx("button",{type:"button",tabIndex:-1,onClick:()=>w(!y),className:"text-text-muted hover:text-text cursor-pointer transition-colors","aria-label":y?"Hide password":"Show password",children:y?c.jsxs("svg",{className:"size-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),c.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):c.jsxs("svg",{className:"size-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),c.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}):l||i?c.jsxs("div",{className:"flex items-center gap-1.5 text-text-muted text-sm",children:[l&&c.jsx("span",{className:"font-medium text-text",children:l}),i]}):void 0,children:c.jsx("input",{ref:v,type:S,value:d,defaultValue:u,onChange:P=>{$||C(P.target.value),f==null||f(P)},disabled:m,placeholder:g||(typeof e=="string"?e:void 0),className:K("w-full h-11 px-3.5 bg-transparent text-sm text-text placeholder:text-text-subtle/80 outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0","disabled:cursor-not-allowed"),...b})})});l4.displayName="GymatraTextField";const s4=o.forwardRef(({label:e,error:t,helperText:n,required:r,disabled:i,className:a,placeholder:l,rows:s=3,...d},u)=>c.jsx($i,{label:e,error:t,helperText:n,required:r,disabled:i,className:a,children:c.jsx("textarea",{ref:u,rows:s,disabled:i,placeholder:l||(typeof e=="string"?e:void 0),className:"w-full p-3 bg-transparent text-sm text-text placeholder:text-text-subtle/80 outline-none resize-none",...d})}));s4.displayName="GymatraFloatingTextarea";const c4=o.forwardRef(({label:e,error:t,helperText:n,required:r,disabled:i,options:a,className:l,children:s,...d},u)=>c.jsx($i,{label:e,error:t,helperText:n,required:r,disabled:i,className:l,endAdornment:c.jsx("svg",{className:"size-4 text-text-subtle pointer-events-none",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("polyline",{points:"6 9 12 15 18 9"})}),children:c.jsxs("select",{ref:u,disabled:i,className:"w-full h-11 ps-3.5 pe-8 bg-transparent text-sm text-text outline-none appearance-none cursor-pointer border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0",...d,children:[a.map(f=>c.jsx("option",{value:f.value,children:f.label},f.value)),s]})}));c4.displayName="GymatraFloatingSelect";function wT({length:e=6,value:t="",onChange:n,label:r="Code OTP / PIN",error:i,disabled:a}){const[l,s]=o.useState(t),d=t!==void 0?t:l,u=(m,h)=>{h.length>1&&(h=h.slice(-1));const x=d.padEnd(e," ").split("");x[m]=h||" ";const g=x.join("").trimEnd();if(t===void 0&&s(g),n==null||n(g),h&&m<e-1){const b=document.getElementById(`otp-digit-${m+1}`);b==null||b.focus()}},f=(m,h)=>{if(h.key==="Backspace"&&!d[m]&&m>0){const x=document.getElementById(`otp-digit-${m-1}`);x==null||x.focus()}};return c.jsx("div",{className:"relative",children:c.jsx($i,{label:r,error:i,disabled:a,children:c.jsx("div",{className:"flex items-center justify-between w-full p-2.5 gap-2",children:Array.from({length:e}).map((m,h)=>c.jsx("input",{id:`otp-digit-${h}`,type:"text",inputMode:"numeric",maxLength:1,disabled:a,value:d[h]&&d[h]!==" "?d[h]:"",onChange:x=>u(h,x.target.value),onKeyDown:x=>f(h,x),className:"size-10 rounded-md border border-border bg-surface-muted text-center text-base font-semibold text-text focus:border-primary focus:bg-white focus:outline-none"},h))})})})}function CT({label:e="Photo de profil",src:t,onChange:n,disabled:r}){const[i,a]=o.useState(t),l=o.useId(),s=d=>{var f;const u=(f=d.target.files)==null?void 0:f[0];if(u){const m=URL.createObjectURL(u);a(m),n==null||n(u)}};return c.jsxs("div",{className:"relative rounded-md border border-border p-3.5 bg-white",children:[c.jsx("label",{className:"absolute -top-2.5 start-2.5 px-1 bg-white text-xs font-medium text-text-muted",children:e}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"relative size-12 shrink-0 rounded-full border border-border overflow-hidden bg-surface-muted flex items-center justify-center text-text-muted",children:i?c.jsx("img",{src:i,alt:"Avatar preview",className:"size-full object-cover"}):c.jsx("svg",{className:"size-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:c.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("input",{id:l,type:"file",accept:"image/*",disabled:r,onChange:s,className:"hidden"}),c.jsx("label",{htmlFor:l,className:"inline-flex h-8 items-center justify-center rounded-md border border-border bg-surface px-3 text-xs font-medium text-text hover:bg-surface-muted cursor-pointer transition-colors",children:"Téléverser une image"}),c.jsx("p",{className:"mt-1 text-xs text-text-muted",children:"PNG, JPG jusqu'à 2MB"})]})]})]})}function $T({className:e,...t}){return c.jsx(Uu,{...t,className:typeof e=="function"?n=>K("gym-form",e(n)):K("gym-form",e)})}function MT({name:e,label:t,description:n,error:r,required:i,disabled:a,validate:l,validationMode:s,className:d,children:u}){return c.jsxs(vi,{name:e,invalid:!!r,disabled:a,validate:l,validationMode:s,className:K("gym-field",d),children:[c.jsxs(xi,{className:"gym-field__label",children:[t,i&&c.jsx("span",{className:"gym-required","aria-hidden":"true",children:"*"})]}),u,n&&c.jsx(bi,{className:"gym-field__description",children:n}),r?c.jsx(Wr,{match:!0,className:"gym-field__error",children:r}):c.jsx(Wr,{match:"valueMissing",className:"gym-field__error",children:"This field is required."}),!r&&c.jsx(Wr,{match:"typeMismatch",className:"gym-field__error",children:"Enter a valid value."})]})}const u4=o.forwardRef(({className:e,...t},n)=>c.jsx(yi,{ref:n,render:c.jsx(Wu,{}),...t,className:K("gym-control",e)}));u4.displayName="GymatraInput";function ST({rows:e=4,className:t,...n}){return c.jsx(yi,{...n,render:c.jsx("textarea",{rows:e}),className:K("gym-control gym-control--textarea",t)})}function NT({name:e,label:t,description:n,error:r,options:i,value:a,defaultValue:l,onValueChange:s,placeholder:d="Choose an option",required:u,disabled:f,className:m}){const h=o.useId(),x=n?`${h}-description`:void 0,g=`${h}-error`;return c.jsxs(vi,{name:e,invalid:!!r,disabled:f,className:K("gym-field",m),children:[c.jsxs(xi,{htmlFor:h,className:"gym-field__label",children:[t,u&&c.jsx("span",{className:"gym-required","aria-hidden":"true",children:"*"})]}),c.jsxs(km,{name:e,id:h,items:i,value:a,defaultValue:l,onValueChange:s,required:u,disabled:f,children:[c.jsxs(Zu,{"aria-describedby":[x,g].filter(Boolean).join(" "),"aria-invalid":r?!0:void 0,className:"gym-control gym-select__trigger",children:[c.jsx(Ju,{placeholder:d}),c.jsx(Qu,{"aria-hidden":"true",className:"gym-select__icon",children:"⌄"})]}),c.jsx(e1,{children:c.jsx(n1,{sideOffset:4,className:"gym-select__positioner",children:c.jsx(r1,{className:"gym-select__popup",children:c.jsx(o1,{children:i.map(b=>c.jsxs(a1,{value:b.value,className:"gym-select__item",children:[c.jsx(s1,{children:b.label}),c.jsx(l1,{className:"gym-select__check",children:"✓"})]},b.value))})})})})]}),n&&c.jsx(bi,{id:x,className:"gym-field__description",children:n}),c.jsx(Wr,{id:g,match:r?!0:"valueMissing",className:"gym-field__error",children:r??"Choose an option."})]})}function PT({name:e,label:t,description:n,checked:r,defaultChecked:i,onCheckedChange:a,disabled:l,required:s,className:d}){const u=o.useId();return c.jsxs(vi,{name:e,disabled:l,className:K("gym-choice",d),children:[c.jsxs(xi,{htmlFor:u,className:"gym-choice__label",children:[c.jsx(f1,{id:u,name:e,checked:r,defaultChecked:i,onCheckedChange:a,disabled:l,required:s,className:"gym-checkbox",children:c.jsx(m1,{className:"gym-checkbox__check",children:"✓"})}),c.jsxs("span",{children:[t,s&&c.jsx("span",{className:"gym-required","aria-hidden":"true",children:"*"})]})]}),n&&c.jsx(bi,{className:"gym-field__description gym-choice__description",children:n})]})}const S1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(S1.displayName="MenuPositionerContext");function d4(e){const t=p.useContext(S1);if(t===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>.":Ve(33));return t}const Nl=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(Nl.displayName="MenuRootContext");function Sn(e){const t=p.useContext(Nl);if(t===void 0&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>.":Ve(36));return t}const f4=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(f4.displayName="ContextMenuRootContext");function N1(e=!0){const t=p.useContext(f4);if(t===void 0&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within <ContextMenu.Root>.":Ve(25));return t}const P1=p.createContext(null);process.env.NODE_ENV!=="production"&&(P1.displayName="MenuFilterImplContext");function Pl(e="root"){const t=p.useContext(P1),n=p.useContext(Nl);return t===null||n===void 0?null:(e==="submenu-trigger"?n.virtualFocus||n.parentVirtualFocus:n.virtualFocus)?t:null}const RT={visible:!0,ref:null};function IT(){return RT}function Rl(e,t,n="root"){const r=Pl(n),a=((n==="submenu-trigger"?r==null?void 0:r.useSubmenuTrigger:r==null?void 0:r.useItem)??IT)({label:e.label,children:e.children,render:e.render}),l=an(t,a.ref);return{visible:a.visible,ref:l,props:a.props}}const R1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(R1.displayName="MenuCheckboxItemContext");function FT(){const e=p.useContext(R1);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: MenuCheckboxItemContext is missing. MenuCheckboxItem parts must be placed within <Menu.CheckboxItem>.":Ve(30));return e}function TT(e){e.preventDefault()}function OT(e){const{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:l,itemRef:s,itemMetadata:d}=e,u=Sn(),f=N1(!0),m=d.type==="submenu-trigger",h=m?u.parentVirtualFocus:u.virtualFocus,g=(m&&u.parent.type==="menu"?u.parent.store:u.store).useState("webkitAriaSelected",n),{events:b}=a.useState("floatingTreeRoot"),v=a.useState("open"),y=f!==void 0,w=!h&&v&&n?0:-1;return p.useMemo(()=>({id:r,role:"menuitem",tabIndex:w,"aria-selected":g,onMouseDown:h?TT:void 0,onKeyDown(E){E.key===" "&&(l!=null&&l.current)&&E.preventDefault()},onMouseMove(E){i&&b.emit("itemhover",{nodeId:i,target:E.currentTarget})},onClick(E){t&&b.emit("close",{domEvent:E.nativeEvent,reason:Tn})},onMouseUp(E){if(f){const C=f.initialCursorPointRef.current;if(f.initialCursorPointRef.current=null,y&&C&&Math.abs(E.clientX-C.x)<=1&&Math.abs(E.clientY-C.y)<=1||y&&!Cc&&E.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!y||E.button===2)&&d.type==="regular-item"&&Ur(s.current,E,{detail:1,pointerType:"mouse"})}}),[t,w,r,b,i,a.context.allowMouseUpTriggerRef,l,s,f,y,d.type,g,h])}const I1={type:"regular-item"};function Il(e){const{closeOnClick:t,disabled:n,highlighted:r,id:i,store:a,typingRef:l=a.context.typingRef,nativeButton:s,itemMetadata:d,nodeId:u}=e,f=p.useRef(null),{getButtonProps:m,buttonRef:h}=Wt({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),x=OT({closeOnClick:t,highlighted:r,id:i,nodeId:u,store:a,typingRef:l,itemRef:f,itemMetadata:d}),g=p.useCallback(v=>_t(x,{onMouseEnter(y){d.type==="submenu-trigger"&&d.setActive(y.nativeEvent)}},v,m),[x,m,d]),b=an(f,h);return p.useMemo(()=>({getItemProps:g,itemRef:b}),[g,b])}const zT="data-checked",AT="data-unchecked",Fl={checked(e){return e?{[zT]:""}:{[AT]:""}},...ln},m4=p.forwardRef(function(t,n){const{render:r,className:i,id:a,label:l,nativeButton:s=!1,disabled:d=!1,closeOnClick:u=!1,checked:f=!1,onCheckedChange:m,style:h,...x}=t,{store:g}=Sn(),b=Xn({guess:!0,label:l}),v=ft(a),y=g.useState("disabled"),w=g.useState("isActive",b.index),E=g.useState("floatingNodeId"),C=g.useState("itemProps"),$=d||y,{getItemProps:M,itemRef:S}=Il({closeOnClick:u,disabled:$,highlighted:w,id:v,store:g,nativeButton:s,nodeId:E,itemMetadata:I1}),P=p.useMemo(()=>({disabled:$,highlighted:w,checked:f}),[$,w,f]);function N(z){const _=$e(Tn,z.nativeEvent,void 0,{preventUnmountOnClose:Qe});m==null||m(!f,_)}const R=Se("div",t,{state:P,stateAttributesMapping:Fl,props:[C,{role:"menuitemcheckbox","aria-checked":f,onClick:N},x,M],ref:[S,n,b.ref]});return c.jsx(R1.Provider,{value:P,children:R})});process.env.NODE_ENV!=="production"&&(m4.displayName="MenuCheckboxItemPlain");const p4=p.forwardRef(function(t,n){const{checked:r,defaultChecked:i,onCheckedChange:a,...l}=t,[s,d]=fn({controlled:r,default:i??!1,name:"MenuCheckboxItem",state:"checked"}),u=Rl(t,n);function f(m,h){a==null||a(m,h),h.isCanceled||d(m)}return u.visible?c.jsx(m4,{...l,checked:s,onCheckedChange:f,ref:u.ref}):null});process.env.NODE_ENV!=="production"&&(p4.displayName="MenuCheckboxItem");const h4=p.forwardRef(function(t,n){const{render:r,className:i,style:a,keepMounted:l=!1,...s}=t,d=FT(),u=p.useRef(null),{transitionStatus:f,mounted:m,setMounted:h}=$n(d.checked);Yt({batch:!0,enabled:!d.checked,open:d.checked,ref:u,onComplete(){d.checked||h(!1)}});const x={checked:d.checked,disabled:d.disabled,highlighted:d.highlighted,transitionStatus:f};return Se("span",t,{state:x,ref:[n,u],stateAttributesMapping:Fl,props:{"aria-hidden":!0,...s},enabled:l||m})});process.env.NODE_ENV!=="production"&&(h4.displayName="MenuCheckboxItemIndicator");const Tl=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(Tl.displayName="MenuGroupContext");function jT(){const e=p.useContext(Tl);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: MenuGroupContext is missing. Menu group parts must be used within <Menu.Group> or <Menu.RadioGroup>.":Ve(31));return e}const g4=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,[s,d]=p.useState(void 0),u=Se("div",t,{ref:n,props:{role:"group","aria-labelledby":s,...l}});return c.jsx(Tl.Provider,{value:d,children:u})});process.env.NODE_ENV!=="production"&&(g4.displayName="MenuGroupPlain");const F1=p.forwardRef(function(t,n){var i;const r=((i=Pl())==null?void 0:i.Group)??g4;return c.jsx(r,{...t,ref:n})});process.env.NODE_ENV!=="production"&&(F1.displayName="MenuGroup");const v4=p.forwardRef(function(t,n){const{render:r,className:i,style:a,id:l,...s}=t,d=ft(l),u=jT();return ce(()=>(u(d),()=>{u(f=>f===d?void 0:f)}),[u,d]),Se("div",t,{ref:n,props:{id:d,"aria-hidden":!0,...s}})});process.env.NODE_ENV!=="production"&&(v4.displayName="MenuGroupLabel");const x4=p.forwardRef(function(t,n){const{render:r,className:i,id:a,label:l,nativeButton:s=!1,disabled:d=!1,closeOnClick:u=!0,style:f,...m}=t,{store:h}=Sn(),x=Xn({guess:!0,label:l}),g=ft(a),b=h.useState("disabled"),v=h.useState("isActive",x.index),y=h.useState("floatingNodeId"),w=h.useState("itemProps"),E=d||b,{getItemProps:C,itemRef:$}=Il({closeOnClick:u,disabled:E,highlighted:v,id:g,store:h,nativeButton:s,nodeId:y,itemMetadata:I1});return Se("div",t,{state:{disabled:E,highlighted:v},props:[w,m,C],ref:[$,n,x.ref]})});process.env.NODE_ENV!=="production"&&(x4.displayName="MenuItemPlain");const b4=p.forwardRef(function(t,n){const r=Rl(t,n);return r.visible?c.jsx(x4,{...t,ref:r.ref}):null});process.env.NODE_ENV!=="production"&&(b4.displayName="MenuItem");const T1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(T1.displayName="MenuSubmenuRootContext");function y4(){return p.useContext(T1)}function DT(e,t){const n=cc(e.render);if(p.isValidElement(n)){const r=n.props;if(Object.hasOwn(r,"id"))return r.id??""}return e.id??t}function kT(e,t,n){const r=DT(e,t),i=r===t?void 0:r,a=p.useCallback(l=>n==null?void 0:n(l?i:void 0),[i,n]);return[r,a]}function HT(e,t,n){const r=cc(e.render),i=p.isValidElement(r)?r.props:void 0,a=e["aria-label"]??(i==null?void 0:i["aria-label"]);let l=e["aria-labelledby"]??(i==null?void 0:i["aria-labelledby"]);return l==null&&!a&&(l=t?t.id||void 0:n||void 0),l}const E4=p.forwardRef(function(t,n){var re;const{render:r,className:i,style:a,finalFocus:l,id:s,initialFocus:d,...u}=t,{store:f,defaultFloatingId:m,setRenderedFloatingId:h,virtualFocus:x,orientation:g}=Sn(),b=y4(),{side:v,align:y}=d4(),w=bl()!=null,E=f.useState("open"),C=f.useState("transitionStatus"),$=f.useState("popupProps"),M=f.useState("mounted"),S=f.useState("instantType"),P=f.useState("activeTriggerElement"),N=f.useState("parent"),R=f.useState("lastOpenChangeReason"),z=f.useState("rootId"),_=f.useState("floatingRootContext"),F=f.useState("floatingTreeRoot"),O=f.useState("closeDelay"),j=f.useState("hoverEnabled"),V=f.useState("disabled"),J=f.useState("openMethod"),U=f.useState("activeTriggerId"),G=f.useState("listElement"),[I,A]=kT(t,m,h),T=HT(t,P,U),q=N.type==="menu"?b:void 0,D=N.type==="context-menu";let B=d??N.type!=="menu";d===void 0&&G&&N.type!=="menu"&&(B=()=>f.state.activeIndex!==null?!1:G),Yt({open:E,ref:f.context.popupRef,onComplete(){var fe,ue;E&&((ue=(fe=f.context).onOpenChangeComplete)==null||ue.call(fe,!0))}}),p.useEffect(()=>{function fe(ue){f.setOpen(!1,$e(ue.reason,ue.domEvent))}return F.events.on("close",fe),()=>{F.events.off("close",fe)}},[F.events,f]),Xc(_,{enabled:j&&!V&&!D&&N.type!=="menubar",closeDelay:O});const W=f.useStateSetter("popupElement"),X=((re=p.useContext(P1))==null?void 0:re.useParentHandoff)??VT,{parentVirtualFocusRef:ee,handleFocus:Q}=X(f,N,E,x),ie={transitionStatus:C,side:v,align:y,open:E,nested:N.type==="menu",instant:S},se=Se("div",t,{state:ie,ref:[n,f.context.popupRef,W,A],stateAttributesMapping:oi,props:[$,{id:I,...G?{role:"presentation"}:{role:"menu","aria-orientation":g==="horizontal"?"horizontal":void 0,"aria-labelledby":T},onKeyDown(fe){var ue;(ue=q==null?void 0:q.onPopupKeyDown)==null||ue.call(q,fe),w&&gi.has(fe.key)&&fe.stopPropagation()},onFocus:Q},mo(C),u,{"data-rootownerid":z}]});let Z=N.type===void 0||D;(P||N.type==="menubar"&&R!==ai)&&(Z=!0);const he=(q==null?void 0:q.getReturnElement)??ee;return c.jsx(si,{context:_,openInteractionType:J,modal:D,disabled:!M,returnFocus:l??he??Z,explicitReturnFocus:l===void 0&&he?!1:void 0,initialFocus:B,restoreFocus:!0,getInsideElements:N.type===void 0?()=>[f.context.beforeTriggerFocusGuardRef.current]:void 0,externalTree:N.type!=="menubar"?F:void 0,previousFocusableElement:P,nextFocusableElement:N.type===void 0?f.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:f.context.beforeContentFocusGuardRef,children:se})});process.env.NODE_ENV!=="production"&&(E4.displayName="MenuPopupPlain");const LT={parentVirtualFocusRef:void 0,handleFocus:void 0};function VT(){return LT}const w4=p.forwardRef(function(t,n){var i;const r=((i=Pl())==null?void 0:i.Popup)??E4;return c.jsx(r,{...t,ref:n})});process.env.NODE_ENV!=="production"&&(w4.displayName="MenuPopup");const O1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(O1.displayName="MenuPortalContext");function _T(){const e=p.useContext(O1);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Menu.Portal> is missing.":Ve(32));return e}const go=p.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t,{store:a,parent:l}=Sn();if(!(a.useState("mounted")||r))return null;const u=l.type==="menu"||l.type==="menubar"?"group":void 0;return c.jsx(O1.Provider,{value:r,children:c.jsx(io,{ref:n,...i,portalOwnerRole:u})})});process.env.NODE_ENV!=="production"&&(go.displayName="MenuPortal");function C4(e){const{store:t,domReference:n,positionerElement:r,open:i}=e,a=p.useRef(null),l=p.useRef(null),s=pc(r);ce(()=>{var d;i||((d=l.current)==null||d.abort(),l.current=null,t.state.instantType==="trigger-change"&&t.set("instantType",void 0))},[i,t]),ce(()=>{const d=n,u=a.current;if(d&&(a.current=d),!u||!d||d===u||!t.select("open"))return;t.set("instantType",void 0);const f=new AbortController;return l.current=f,s(()=>{t.select("open")&&t.set("instantType","trigger-change")},f.signal),()=>{f.abort()}},[n,s,t])}const vo=p.forwardRef(function(t,n){var we;const{anchor:r,positionMethod:i="absolute",className:a,render:l,side:s,align:d,sideOffset:u=0,alignOffset:f=0,collisionBoundary:m="clipping-ancestors",collisionPadding:h=5,arrowPadding:x=5,sticky:g=!1,disableAnchorTracking:b=!1,collisionAvoidance:v=Dc,style:y,...w}=t,{store:E,virtualFocus:C,syncHighlightedItem:$}=Sn(),M=_T(),S=N1(!0),P=E.useState("parent"),N=E.useState("floatingRootContext"),R=E.useState("floatingTreeRoot"),z=E.useState("mounted"),_=E.useState("open"),F=E.useState("modal"),O=E.useState("openMethod"),j=E.useState("activeTriggerElement"),V=E.useState("transitionStatus"),J=E.useState("positionerElement"),U=E.useState("instantType"),G=E.useState("adaptiveOrigin"),I=E.useState("lastOpenChangeReason"),A=E.useState("floatingNodeId"),T=E.useState("floatingParentNodeId"),q=N.useState("domReferenceElement");let D=r,B=u,W=f,X=d,ee=v;P.type==="context-menu"&&(D=r??((we=P.context)==null?void 0:we.anchor),X=X??"start",!s&&X!=="center"&&(W=t.alignOffset??2,B=t.sideOffset??-5));let Q=s,ie=X;P.type==="menu"?(Q=Q??"inline-end",ie=ie??"start",ee=t.collisionAvoidance??kc):P.type==="menubar"&&(Q=Q??(P.context.orientation==="vertical"?"inline-end":"bottom"),ie=ie??"start");const se=P.type==="context-menu",Z=pi({anchor:D,floatingRootContext:N,positionMethod:S?"fixed":i,mounted:z,side:Q,sideOffset:B,align:ie,alignOffset:W,arrowPadding:se?0:x,collisionBoundary:m,collisionPadding:h,sticky:g,nodeId:A,keepMounted:M,disableAnchorTracking:b,collisionAvoidance:ee,shift:se?{crossAxis:!("side"in ee&&ee.side==="flip"),rootBoundary:"layoutViewport"}:void 0,externalTree:R,adaptiveOrigin:G,lazyFlip:C?"placement":!1});p.useEffect(()=>{function Y(ae){ae.open&&(ae.parentNodeId===A&&E.set("hoverEnabled",!1),ae.nodeId!==A&&ae.parentNodeId===E.select("floatingParentNodeId")&&E.setOpen(!1,$e(Dr)))}return R.events.on("menuopenchange",Y),()=>{R.events.off("menuopenchange",Y)}},[E,R.events,A]),p.useEffect(()=>{if(E.select("floatingParentNodeId")==null)return;function Y(ae){if(ae.open||ae.nodeId!==E.select("floatingParentNodeId"))return;const Pe=ae.reason??Dr;E.setOpen(!1,$e(Pe))}return R.events.on("menuopenchange",Y),()=>{R.events.off("menuopenchange",Y)}},[R.events,E]);const he=wt();p.useEffect(()=>{_||he.clear()},[_,he]),p.useEffect(()=>{function Y(ae){if(!(!_||ae.nodeId!==E.select("floatingParentNodeId")))if(ae.target&&j&&j!==ae.target){const Pe=E.select("closeDelay");Pe>0?he.isStarted()||he.start(Pe,()=>{E.setOpen(!1,$e(Dr))}):E.setOpen(!1,$e(Dr))}else he.clear()}return R.events.on("itemhover",Y),()=>{R.events.off("itemhover",Y)}},[R.events,_,j,E,he]),p.useEffect(()=>{const Y={open:_,nodeId:A,parentNodeId:T,reason:E.select("lastOpenChangeReason")};R.events.emit("menuopenchange",Y)},[R.events,_,E,A,T]),C4({store:E,domReference:q,positionerElement:J,open:_});const re={open:_,side:Z.side,align:Z.align,anchorHidden:Z.anchorHidden,nested:P.type==="menu",instant:U},fe=P.type==="menubar"&&P.context.modal;pl(_&&(fe||F&&I!==Ot),O==="touch",J,j);const ne=hi(t,re,{styles:Z.positionerStyles,transitionStatus:V,props:w,refs:[n,E.useStateSetter("positionerElement")],hidden:!z,inert:!_}),me=z&&P.type!=="menu"&&(P.type!=="menubar"&&F&&I!==Ot||P.type==="menubar"&&P.context.modal);let le=null;return P.type==="menubar"?le=P.context.contentElement:P.type===void 0&&(le=j),c.jsxs(S1.Provider,{value:Z,children:[me&&c.jsx(fo,{ref:P.type==="context-menu"||P.type==="nested-context-menu"?P.context.internalBackdropRef:null,inert:uo(!_),cutout:le}),c.jsx(Bc,{id:A,children:c.jsx(co,{elementsRef:E.context.itemDomElements,labelsRef:E.context.itemLabels,onMapChange:$,children:ne})})]})});process.env.NODE_ENV!=="production"&&(vo.displayName="MenuPositioner");const z1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(z1.displayName="MenuRadioGroupContext");function BT(){const e=p.useContext(z1);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: MenuRadioGroupContext is missing. MenuRadioGroup parts must be placed within <Menu.RadioGroup>.":Ve(34));return e}const $4=p.forwardRef(function(t,n){const{render:r,className:i,value:a,defaultValue:l,onValueChange:s,disabled:d=!1,style:u,"aria-labelledby":f,...m}=t,[h,x]=p.useState(void 0),[g,b]=fn({controlled:a,default:l,name:"MenuRadioGroup"}),v=de((C,$)=>{s==null||s(C,$),!$.isCanceled&&b(C)}),w=Se("div",t,{state:{disabled:d},ref:n,props:{role:"group","aria-labelledby":f??h,"aria-disabled":d||void 0,...m}}),E=p.useMemo(()=>({value:g,setValue:v,disabled:d}),[g,v,d]);return c.jsx(Tl.Provider,{value:x,children:c.jsx(z1.Provider,{value:E,children:w})})});process.env.NODE_ENV!=="production"&&($4.displayName="MenuRadioGroupPlain");const A1=p.memo(p.forwardRef(function(t,n){var i;const r=((i=Pl())==null?void 0:i.RadioGroup)??$4;return c.jsx(r,{...t,ref:n})}));process.env.NODE_ENV!=="production"&&(A1.displayName="MenuRadioGroup");const j1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(j1.displayName="MenuRadioItemContext");function GT(){const e=p.useContext(j1);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: MenuRadioItemContext is missing. MenuRadioItem parts must be placed within <Menu.RadioItem>.":Ve(35));return e}const M4=p.forwardRef(function(t,n){const{render:r,className:i,id:a,label:l,nativeButton:s=!1,disabled:d=!1,closeOnClick:u=!1,value:f,style:m,...h}=t,{store:x}=Sn(),{value:g,setValue:b,disabled:v}=BT(),y=Xn({guess:!0,label:l}),w=ft(a),E=x.useState("isActive",y.index),C=x.useState("floatingNodeId"),$=x.useState("itemProps"),M=x.useState("disabled"),S=d||v||M,P=g===f,{getItemProps:N,itemRef:R}=Il({closeOnClick:u,disabled:S,highlighted:E,id:w,store:x,nativeButton:s,nodeId:C,itemMetadata:I1}),z=p.useMemo(()=>({disabled:S,highlighted:E,checked:P}),[S,E,P]);function _(O){const j=$e(Tn,O.nativeEvent,void 0,{preventUnmountOnClose:Qe});b(f,j)}const F=Se("div",t,{state:z,stateAttributesMapping:Fl,props:[$,{role:"menuitemradio","aria-checked":P,onClick:_},h,N],ref:[R,n,y.ref]});return c.jsx(j1.Provider,{value:z,children:F})});process.env.NODE_ENV!=="production"&&(M4.displayName="MenuRadioItemPlain");const S4=p.forwardRef(function(t,n){const r=Rl(t,n);return r.visible?c.jsx(M4,{...t,ref:r.ref}):null});process.env.NODE_ENV!=="production"&&(S4.displayName="MenuRadioItem");const N4=p.forwardRef(function(t,n){const{render:r,className:i,style:a,keepMounted:l=!1,...s}=t,d=GT(),u=p.useRef(null),{transitionStatus:f,mounted:m,setMounted:h}=$n(d.checked);Yt({batch:!0,enabled:!d.checked,open:d.checked,ref:u,onComplete(){d.checked||h(!1)}});const x={checked:d.checked,disabled:d.disabled,highlighted:d.highlighted,transitionStatus:f};return Se("span",t,{state:x,stateAttributesMapping:Fl,ref:[n,u],props:{"aria-hidden":!0,...s},enabled:l||m})});process.env.NODE_ENV!=="production"&&(N4.displayName="MenuRadioItemIndicator");const D1=p.createContext(null);process.env.NODE_ENV!=="production"&&(D1.displayName="MenubarContext");function k1(e){const t=p.useContext(D1);if(t===null&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: MenubarContext is missing. Menubar parts must be placed within <Menubar>.":Ve(5));return t}const UT={...Hn,disabled:e=>e.parent.type==="menubar"&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type==="context-menu")&&(e.modal??!0),openMethod:e=>e.openMethod,keyboardOpen:e=>e.keyboardOpen,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type==="menu"?e.parent.store.select("rootId"):e.parent.type!==void 0?e.parent.context.rootId:e.rootId,activeIndex:e=>e.activeIndex,listElement:e=>e.listElement,triggerControlsId:(e,t)=>{var r;const n=Hn.triggerPopupId(e,t);return n?((r=e.listElement)==null?void 0:r.id)||n:void 0},filterTriggerProps:e=>e.filterTriggerProps,inputProps:e=>e.inputProps,webkitAriaSelected:(e,t)=>An&&e.inputFocused&&t?!0:void 0,highlightedItemId:e=>{var t;return((t=e.highlightedItem)==null?void 0:t.id)||void 0},isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType==="trigger-change"&&!Hn.open(e)?void 0:e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type==="menu"?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type==="menu")return e.parent.store.select("keyboardEventRelay")}};class WT extends Cr{constructor(t,n,r=!1){const i=new ui,a=qT(i,n,r,t);super(a,KT(i),UT),this.observe("parent",l=>{l.type==="menu"?this.context.allowMouseUpTriggerRef=l.store.context.allowMouseUpTriggerRef:l.type!==void 0&&(this.context.allowMouseUpTriggerRef=l.context.allowMouseUpTriggerRef)})}subscribeToParentMenu(){const t=this.state.parent;if(t.type!=="menu")return;let n=t.store.select("rootId"),r=t.store.select("floatingTreeRoot"),i=t.store.select("keyboardEventRelay");return t.store.subscribe(()=>{const a=t.store.select("rootId"),l=t.store.select("floatingTreeRoot"),s=t.store.select("keyboardEventRelay");n===a&&r===l&&i===s||(n=a,r=l,i=s,this.notifyAll())})}setOpen(t,n){this.state.floatingRootContext.context.events.emit("setOpen",{open:t,eventDetails:n})}setActiveIndex(t,n,r){if(this.state.activeIndex!==t){const a=(t===null?void 0:this.context.itemDomElements.current[t])===this.context.reportedItem;this.context.highlightReason=a?"none":n,this.context.highlightEvent=a?void 0:r}this.set("activeIndex",t)}highlightItem(t,n,r){const i=this.context.itemDomElements.current.indexOf(t);i>-1&&this.setActiveIndex(i,n,r)}}function KT(e){return{positionerRef:p.createRef(),popupRef:p.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},highlightReason:"none",highlightEvent:void 0,reportedItem:void 0,allowMouseUpTriggerRef:{current:!1},virtualFocusRef:void 0,triggerFocusTargetRef:p.createRef(),beforeTriggerFocusGuardRef:p.createRef(),beforeContentFocusGuardRef:p.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function qT(e,t,n=!1,r){return{...tl(e,t,n),disabled:!1,modal:!0,openMethod:null,keyboardOpen:!1,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,listElement:null,filterTriggerProps:We,inputProps:We,inputFocused:!1,highlightedItem:void 0,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new Lc,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:We,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}const Zo=p.createContext(null);process.env.NODE_ENV!=="production"&&(Zo.displayName="MenuFilterProviderContext");function P4(e,t){return(e===Gn||e===Tn)&&(t==null?void 0:t.detail)===0}function YT(e,t){return e===rr||P4(e,t)}const H1=ti(function(t){const{children:n,open:r,onOpenChange:i,onOpenChangeComplete:a,onItemHighlighted:l,defaultOpen:s=!1,disabled:d=!1,modal:u,loopFocus:f=!0,orientation:m="vertical",actionsRef:h,closeParentOnEsc:x=!1,handle:g,triggerId:b,defaultTriggerId:v=null,highlightItemOnHover:y=!0,isSubmenu:w=!1,virtualFocus:E=!1,virtualFocusRef:C,allowEscape:$=!0,resetOnPointerLeave:M=!0}=t,S=N1(!0),P=Sn(!0),N=k1(!0),R=P==null?void 0:P.store,z=(P==null?void 0:P.virtualFocus)??!1,_=p.useMemo(()=>w&&R?{type:"menu",store:R}:N?{type:"menubar",context:N}:S&&!R?{type:"context-menu",context:S}:{type:void 0},[S,R,N,w]),F=ft(),O=ft(),[j,V]=p.useState(void 0),J=(j??O)||void 0,U=lr(),G=_.type==="menu"?_.store:void 0,I=(r??s)&&(G==null?void 0:G.state.transitionStatus)==="starting",A=Pt(()=>I?G==null?void 0:G.state.instantType:void 0).current,T=Pt(()=>{const ye=new WT({open:s,openProp:r,activeTriggerId:v,triggerIdProp:b,parent:_,disabled:d,highlightItemOnHover:y,modal:_.type===void 0?u:void 0,rootId:F,instantType:A},J,U!=null);return ye.context.virtualFocusRef=C,ye}).current;T.useControlledProp("openProp",r),T.useControlledProp("triggerIdProp",b),T.useContextCallback("onOpenChangeComplete",a);const q=T.useState("floatingTreeRoot"),D=qa(q),B=T.useState("open"),W=T.useState("activeTriggerElement"),X=T.useState("positionerElement"),ee=T.useState("hoverEnabled"),Q=T.useState("disabled"),ie=T.useState("lastOpenChangeReason"),se=T.useState("parent"),Z=T.useState("activeIndex"),he=T.useState("keyboardOpen"),re=T.useState("payload"),fe=T.useState("floatingParentNodeId"),ue=p.useRef(null),ne=p.useRef(se.type!=="context-menu"),me=wt(),le=p.useRef(!0),we=wt(),Y=fe!=null;process.env.NODE_ENV!=="production"&&se.type!==void 0&&u!==void 0&&console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored.");const{openMethod:ae,triggerProps:Pe}=du(B);T.useSyncedValues({disabled:d,highlightItemOnHover:y,modal:se.type===void 0?u:void 0,openMethod:ae,rootId:F}),Ja(T);const{forceUnmount:je,transitionStatus:te}=Qa(B,T,()=>{T.set("allowMouseEnter",!1)},I),oe=pc(T.context.popupRef);p.useEffect(()=>{if(A===void 0)return;const ye=()=>{T.state.instantType===A&&T.set("instantType",void 0)};if(!B){ye();return}if(te!==void 0)return;if(T.context.popupRef.current==null){ye();return}const Ie=new AbortController;return oe(ye,Ie.signal),()=>{Ie.abort()}},[A,B,te,oe,T]),ce(()=>{S&&!P?T.update({parent:{type:"context-menu",context:S},floatingNodeId:D,floatingParentNodeId:U}):(P||!T.select("activeTriggerElement"))&&T.update({floatingNodeId:D,floatingParentNodeId:U})},[S,P,D,U,W,T]),p.useEffect(()=>{if(B||(ue.current=null),se.type==="context-menu"){if(!B){me.clear(),ne.current=!1;return}me.start(500,()=>{ne.current=!0})}},[me,B,se.type]),ce(()=>{!B&&!ee&&T.set("hoverEnabled",!0)},[B,ee,T]);const be=de((ye,Ie)=>{const De=Ie.reason;if(!ye&&!T.select("open")||B===ye&&Ie.trigger===W&&ie===De)return;const st=ci(Ie);if(!ye&&Ie.trigger==null&&(Ie.trigger=W??void 0),i==null||i(ye,Ie),Ie.isCanceled)return;T.state.floatingRootContext.dispatchOpenChange(ye,Ie);const Ke=Ie.event;if(ye===!1&&De!==Tn&&(Ke==null?void 0:Ke.type)==="click"&&Ke.pointerType==="touch"&&!le.current)return;ye&&De===Hr?(le.current=!1,we.start(300,()=>{le.current=!0})):(le.current=!0,we.clear());const Ne=!ye&&(De===$r||De==null);ue.current=Ie.event;const et=Xa(T.state,ye,Ie.trigger,st());et.openChangeReason=De,et.keyboardOpen=ye&&YT(De,Ke),se.type==="menubar"&&(De===Hr||De===zn||De===Ot||De===rr||De===Dr)?et.instantType="group":P4(De,Ke)?et.instantType="click":Ne?et.instantType="dismiss":et.instantType=void 0,T.update(et)}),xe=S3({popupStore:T,floatingRootContext:T.state.floatingRootContext,floatingId:J,nested:U!=null,onOpenChange:be}),Ce=xe.context.events;ce(()=>{const ye=({open:Ie,eventDetails:De})=>be(Ie,De);return Ce.on("setOpen",ye),()=>{Ce==null||Ce.off("setOpen",ye)}},[Ce,be]),ce(()=>T.subscribeToParentMenu(),[T]);const Te=p.useCallback(()=>{T.setOpen(!1,$e(oo))},[T]);p.useImperativeHandle(h,()=>({unmount:je,close:Te}),[je,Te]);let Oe;se.type==="context-menu"&&(Oe=se.context),p.useImperativeHandle(Oe==null?void 0:Oe.positionerRef,()=>X,[X]),p.useImperativeHandle(Oe==null?void 0:Oe.actionsRef,()=>({setOpen:be}),[be]);const He=ao(xe,{enabled:!Q,bubbles:{escapeKey:x&&se.type==="menu"},outsidePress(){var ye;return se.type!=="context-menu"||((ye=ue.current)==null?void 0:ye.type)==="contextmenu"?!0:ne.current},externalTree:Y?q:void 0}),Ge=Nr(),Ze=Zc(xe,{enabled:!Q,listRef:T.context.itemDomElements,activeIndex:Z,virtual:E,nested:se.type==="menubar"||!E&&se.type!==void 0,parentOrientation:se.type==="menubar"?se.context.orientation:void 0,loopFocus:f,focusItemOnOpen:E?he:void 0,allowEscape:E&&f&&$,orientation:m,triggerOrientation:E?"vertical":m,rtl:Ge==="rtl",disabledIndices:qt,onNavigate(ye,Ie){T.setActiveIndex(ye,di(Ie),Ie==null?void 0:Ie.nativeEvent)},openOnArrowKeyDown:se.type!=="context-menu"&&!(E&&w),externalTree:!E&&Y?q:void 0,nestedReturnFocusRef:G==null?void 0:G.context.virtualFocusRef,focusItemOnHover:y,resetOnPointerLeave:M}),Ht=p.useCallback(ye=>{T.context.typingRef.current=ye},[T]),Rt=Jc(xe,{enabled:!Q&&!E,listRef:T.context.itemLabels,elementsRef:T.context.itemDomElements,activeIndex:Z,resetMs:j6,onMatch:(ye,Ie)=>{B&&ye!==Z&&T.setActiveIndex(ye,Pc,Ie.nativeEvent)},onTyping:Ht}),It=de(l),ze=p.useRef(-1),nt=de(()=>{const ye=T.state.activeIndex,Ie=ye===null?void 0:T.context.itemDomElements.current[ye]??void 0;if((Ie==null?void 0:Ie.isConnected)===!1)return;const De=Ie===void 0?-1:ye;if(ze.current===De&&T.context.reportedItem===Ie)return;ze.current=De,T.context.reportedItem=Ie,E&&T.set("highlightedItem",Ie);const{highlightReason:st,highlightEvent:Ke}=T.context;T.context.highlightReason=mt,T.context.highlightEvent=void 0,l&&It(Ie,Nc(st,Ke,{label:Ie===void 0?void 0:T.context.itemLabels.current[De]??void 0}))});ce(()=>{nt()},[Z,nt]);const ot=p.useMemo(()=>{if(!E)return Ze.reference;if(!Ze.trigger)return We;const{onFocus:ye,...Ie}=Ze.trigger;return Ie},[E,Ze.reference,Ze.trigger]);T.useSyncedValue("inputProps",E?Ze.reference??We:We);const lt=p.useMemo(()=>{const ye=_t(Rt.reference,ot,He.reference,{onMouseMove(){T.set("allowMouseEnter",!0)}},Pe);return ye["aria-haspopup"]="menu",ye["aria-expanded"]=B,ye},[T,Rt.reference,ot,He.reference,Pe,B]),rt=p.useMemo(()=>{const ye=_t(Ze.trigger,He.trigger,Pe);return ye["aria-haspopup"]="menu",ye["aria-expanded"]=!1,ye},[Ze.trigger,He.trigger,Pe]);Pt(()=>(T.update({inactiveTriggerProps:rt}),null));const Je=p.useMemo(()=>_t(lo,{onMouseMove(){T.set("allowMouseEnter",!0),se.type==="menu"&&T.set("hoverEnabled",!1)},onClick(){T.select("hoverEnabled")&&T.set("hoverEnabled",!1)},onKeyDown(ye){const Ie=T.select("keyboardEventRelay");Ie&&!ye.isPropagationStopped()&&Ie(ye)}},Rt.floating,Ze.floating,He.floating),[se.type,T,Rt.floating,Ze.floating,He.floating]),Mt=Ze.item??We;el(T,{floatingRootContext:xe,activeTriggerProps:lt,inactiveTriggerProps:rt,popupProps:Je,itemProps:Mt});const it=p.useMemo(()=>({store:T,parent:_,orientation:m,loopFocus:f,allowEscape:$,defaultFloatingId:O,setRenderedFloatingId:V,virtualFocus:E,parentVirtualFocus:z,syncHighlightedItem:nt}),[T,_,m,f,$,O,E,z,nt]),Ft=typeof n=="function"?n({payload:re}):n;let vt=c.jsxs(Nl.Provider,{value:it,children:[g&&c.jsx(Ya,{handle:g,store:T}),Ft]});return(se.type===void 0||se.type==="context-menu")&&(vt=c.jsx(Gc,{externalTree:q,children:vt})),vt});process.env.NODE_ENV!=="production"&&(H1.displayName="MenuRootInternal");function Ol(e){const t=p.useContext(Zo);if(t===null)return c.jsx(H1,{...e});const n=t.Root;return c.jsx(Zo.Provider,{value:null,children:c.jsx(n,{...t.options,...e})})}const XT={};function L1(e){Sn();const t=p.useContext(Zo);if(t!==null){const n=t.SubmenuRoot;return c.jsx(Zo.Provider,{value:null,children:c.jsx(n,{...t.options,...e})})}return c.jsx(T1.Provider,{value:XT,children:c.jsx(H1,{...e,isSubmenu:!0})})}function R4(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=dl(),{ref:i,index:a}=Xn(e),l=n===a,s=p.useRef(null),d=an(i,s);return{compositeProps:{tabIndex:l?0:-1,onFocus(){r(a)},onMouseMove(){const f=s.current;if(!t||!f)return;const m=f.hasAttribute("disabled")||f.ariaDisabled==="true";!l&&!m&&f.focus()}},compositeRef:d,index:a}}function I4(e){const{render:t,className:n,style:r,state:i=We,props:a=qt,refs:l=qt,metadata:s,stateAttributesMapping:d,tag:u="div",...f}=e,{compositeProps:m,compositeRef:h}=R4({metadata:s});return Se(u,e,{state:i,ref:[h,...l],props:[m,...a,f],stateAttributesMapping:d})}function F4(e){if(at(e)&&e.hasAttribute("data-rootownerid"))return e.getAttribute("data-rootownerid");if(!In(e))return F4(wn(e))}function T4(e,t){function n(a,l,s){var u;const d=a.currentTarget;on.flushSync(()=>{e.setOpen(!1,$e(zn,a.nativeEvent,d))}),(u=T6(d.isConnected?d:t.current,l,s))==null||u.focus()}function r(a){n(a,-1,e.select("positionerElement"))}function i(a){var s;const l=e.select("positionerElement");l&&Vr(a,l)?(s=e.context.beforeContentFocusGuardRef.current)==null||s.focus():n(a,1,l)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function ZT(e){const{enabled:t=!0,mouseDownAction:n,open:r}=e,i=p.useRef(!1);return p.useMemo(()=>t?{onMouseDown:a=>{(n==="open"&&!r||n==="close"&&r)&&(i.current=!0,Xe(a.currentTarget).addEventListener("click",()=>{i.current=!1},{once:!0}))},onClick:a=>{i.current&&(i.current=!1,a.preventBaseUIHandler())}}:We,[t,n,r])}const zl=ka(function(t,n){const{render:r,className:i,style:a,disabled:l=!1,nativeButton:s=!0,id:d,openOnHover:u,delay:f=100,closeDelay:m=0,handle:h,payload:x,...g}=t,b=Sn(!0),y=nl(h)??(b==null?void 0:b.store);if(!y)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle.":Ve(85));const w=ft(d),E=y.useState("isTriggerActive",w),C=y.useState("floatingRootContext"),$=y.useState("isOpenedByTrigger",w),M=y.useState("triggerControlsId",w),S=p.useRef(null),P=QT(),N=dl(!0),R=qn(),z=p.useMemo(()=>R??new Lc,[R]),_=qa(z),F=lr(),{registerTrigger:O,isMountedByThisTrigger:j}=Za(w,S,y,{payload:x,closeDelay:m,parent:P,floatingTreeRoot:z,floatingNodeId:_,floatingParentNodeId:F,keyboardEventRelay:N==null?void 0:N.relayKeyboardEvent}),V=P.type==="menubar",J=y.useState("disabled"),U=l||J||V&&P.context.disabled,{getButtonProps:G,buttonRef:I}=Wt({disabled:U,native:s});p.useEffect(()=>{!$&&P.type===void 0&&(y.context.allowMouseUpTriggerRef.current=!1)},[y,$,P.type]);const A=p.useRef(null),T=wt(),q=de(we=>{if(!A.current)return;T.clear(),y.context.allowMouseUpTriggerRef.current=!1;const Y=we.target;Re(A.current,Y)||Re(y.select("positionerElement"),Y)||Y===A.current||Y!=null&&F4(Y)===y.select("rootId")||xu(we,A.current)||z.events.emit("close",{domEvent:we,reason:Rc})});p.useEffect(()=>{const we=Xe(A.current);if($&&y.select("lastOpenChangeReason")===Ot)return we.addEventListener("mouseup",q,{once:!0}),()=>{we.removeEventListener("mouseup",q)}},[$,q,y]);const D=V&&P.context.hasSubmenuOpen,W=rl(C,{enabled:(u??D)&&!U&&(!V||D&&!j),handleClose:il({blockPointerEvents:!V}),mouseOnly:!0,move:!1,restMs:P.type===void 0?f:void 0,delay:{close:m},triggerElementRef:S,externalTree:z,isActiveTrigger:E,isClosing:()=>y.select("transitionStatus")==="ending"}),X=JT($,y.select("lastOpenChangeReason")),ee=Mr(C,{enabled:!U,event:$&&V?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:P.type===void 0?X:!1}),Q=O3(C,{enabled:!U&&D}),ie=ZT({open:$,enabled:V,mouseDownAction:"open"}),se=p.useMemo(()=>_t(Q.reference,ee.reference),[Q.reference,ee.reference]),Z=y.useState("triggerProps",j),he=y.useState("filterTriggerProps"),{handlePreFocusGuardFocus:re,handleFocusTargetFocus:fe}=T4(y,S),ue={disabled:U,open:$},ne=[A,n,I,O,S],me=[se,W??We,Z,{"aria-haspopup":"menu","aria-controls":M,id:w,onMouseDown:we=>{if(y.select("open"))return;T.start(200,()=>{y.context.allowMouseUpTriggerRef.current=!0}),Xe(we.currentTarget).addEventListener("mouseup",q,{once:!0})}},he,V?{role:"menuitem"}:{},ie,g,G],le=Se("button",t,{enabled:!V,stateAttributesMapping:zo,state:ue,ref:ne,props:me});return V?c.jsx(I4,{tag:"button",render:r,className:i,style:a,state:ue,refs:ne,props:me,stateAttributesMapping:zo}):$?c.jsxs(p.Fragment,{children:[c.jsx(Un,{ref:y.context.beforeTriggerFocusGuardRef,onFocus:re},`${w}-pre-focus-guard`),c.jsx(p.Fragment,{children:le},w),c.jsx(Un,{ref:y.context.triggerFocusTargetRef,onFocus:fe},`${w}-post-focus-guard`)]}):c.jsx(p.Fragment,{children:le},w)});process.env.NODE_ENV!=="production"&&(zl.displayName="MenuTrigger");function JT(e,t){const n=wt(),[r,i]=p.useState(!1);return ce(()=>{e&&t===Ot?(i(!0),n.start(w3,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function QT(){const e=k1(!0);return p.useMemo(()=>e?{type:"menubar",context:e}:{type:void 0},[e])}function bf(e){const t=Qt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=at(e),a=i?e.offsetWidth:n,l=i?e.offsetHeight:r;return(Qr(n)!==a||Qr(r)!==l)&&(n=a,r=l),{width:n,height:r}}const Al=p.forwardRef(function(t,n){const{className:r,render:i,orientation:a="horizontal",style:l,...s}=t;return Se("div",t,{state:{orientation:a},ref:n,props:[{role:"separator","aria-orientation":a},s]})});process.env.NODE_ENV!=="production"&&(Al.displayName="Separator");const eO={"aria-expanded":void 0},O4=p.forwardRef(function(t,n){const{render:r,className:i,style:a,label:l,id:s,nativeButton:d=!1,openOnHover:u=!0,delay:f=100,closeDelay:m=0,disabled:h=!1,...x}=t,g=Sn(!0);if((g==null?void 0:g.parent.type)!=="menu")throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Menu.SubmenuTrigger> must be placed in <Menu.SubmenuRoot>.":Ve(37));const b=d4(),v=y4(),{store:y,parentVirtualFocus:w}=g,E=g.parent.store,C=Xn({guess:!0,label:l}),$=ft(s),M=y.useState("open"),S=p.useRef(!1),P=y.useState("positionerElement"),N=y.useState("floatingRootContext"),R=y.useState("floatingTreeRoot"),z=y.useState("triggerPopupId",$),_=P3($,y),F=de(ue=>{_(ue);const ne=y.select("activeTriggerElement");ue!==null&&y.select("open")&&(ne===ue||y.select("activeTriggerId")==null)&&y.update({activeTriggerId:$??null,activeTriggerElement:ue,closeDelay:m})}),O=p.useRef(null),j=p.useCallback(ue=>{O.current=ue,y.set("activeTriggerElement",ue)},[y]);ce(()=>(F(O.current),()=>F(null)),[F,$,y]),ce(()=>{if(!M||!P)return;function ue(ne){Ct(ne)===y.context.beforeContentFocusGuardRef.current&&(S.current=ne.relatedTarget===O.current)}return P.addEventListener("focusout",ue,!0),()=>{S.current=!1,P.removeEventListener("focusout",ue,!0)}},[M,P,y]),y.useSyncedValue("closeDelay",m);const V=y.useState("disabled"),J=E.useState("disabled"),U=h||V||J;process.env.NODE_ENV!=="production"&&p.useEffect(()=>{var ne;const ue=O.current;if(ue&&Ku(ue)&&!U){const me=((ne=Vt.captureOwnerStack)==null?void 0:ne.call(Vt))||"";Af(`A disabled element was detected on <Menu.SubmenuTrigger>. To properly disable the trigger, use the \`disabled\` prop on the component instead of setting it on the rendered element.${me}`)}});const G=E.useState("itemProps"),I=E.useState("isActive",C.index),A=p.useMemo(()=>({type:"submenu-trigger",setActive(ue){E.select("highlightItemOnHover")&&E.setActiveIndex(C.index,s3,ue)}}),[E,C.index]),{getItemProps:T,itemRef:q}=Il({closeOnClick:!1,disabled:U,highlighted:I,id:$,store:y,typingRef:E.context.typingRef,nativeButton:d,itemMetadata:A,nodeId:b==null?void 0:b.context.nodeId}),D=y.useState("hoverEnabled"),B=rl(N,{enabled:D&&u&&!U,handleClose:il({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:f,delay:{open:f,close:m},shouldOpen:f>0?()=>E.select("allowMouseEnter"):void 0,triggerElementRef:O,externalTree:R,isClosing:()=>y.select("transitionStatus")==="ending",guardStaleOpen:!0}),X=Mr(N,{enabled:!U,event:"mousedown",toggle:!0,ignoreMouse:u,stickIfOpen:u}).reference??We,ee=y.useState("triggerProps",!0);delete ee.id;const Q={disabled:U,highlighted:I,open:M},ie=y.useState("openMethod"),Z=y.useState("lastOpenChangeReason")===rr||ie==="keyboard",he=M&&Z&&n3,re=v!=null&&v.onTriggerKeyDown?{onKeyDown:v.onTriggerKeyDown}:void 0;return Se("div",t,{state:Q,stateAttributesMapping:ro,props:[X,B,ee,re,G,he?eO:void 0,{"aria-controls":z,tabIndex:w||!(M||I)?-1:0,onFocus(ue){y.select("open")&&S.current&&(S.current=!1,y.setOpen(!1,$e(zn,ue.nativeEvent)))},onBlur(){I&&E.setActiveIndex(null,mt)}},x,T],ref:[n,C.ref,q,F,j]})});process.env.NODE_ENV!=="production"&&(O4.displayName="MenuSubmenuTriggerPlain");const z4=p.forwardRef(function(t,n){const r=Rl(t,n,"submenu-trigger");if(!r.visible)return null;const i=r.props?_t(r.props,t):t;return c.jsx(O4,{...i,ref:r.ref})});process.env.NODE_ENV!=="production"&&(z4.displayName="MenuSubmenuTrigger");const tO=Ol,nO=zl,rO=go,oO=vo,iO=F1,aO=A1,lO=L1,xo=o.forwardRef(({className:e,children:t,...n},r)=>c.jsx(w4,{ref:r,className:K("z-50 min-w-48 rounded-lg border border-border bg-white p-1 text-sm text-text outline-none shadow-none",e),...n,children:t}));xo.displayName="GymatraMenuPopup";const jl=o.forwardRef(({variant:e="default",startIcon:t,endIcon:n,shortcut:r,className:i,children:a,...l},s)=>c.jsxs(b4,{ref:s,className:K("group relative flex w-full cursor-pointer select-none items-center gap-2 rounded-md px-2.5 py-1.5 text-sm outline-none transition-colors","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e==="danger"?"text-danger data-[highlighted]:bg-rose-50 data-[highlighted]:text-danger font-medium":e==="primary"?"text-primary data-[highlighted]:bg-primary-soft data-[highlighted]:text-primary font-medium":"text-text data-[highlighted]:bg-surface-muted data-[highlighted]:text-text",i),...l,children:[t&&c.jsx("span",{className:"shrink-0 size-4 text-text-muted group-data-[highlighted]:text-current flex items-center justify-center",children:t}),c.jsx("span",{className:"flex-1 truncate",children:a}),r&&c.jsx("kbd",{className:"ml-auto pl-3 font-mono text-[11px] text-text-subtle tracking-widest",children:r}),n&&c.jsx("span",{className:"shrink-0 size-4 text-text-muted group-data-[highlighted]:text-current flex items-center justify-center ml-auto",children:n})]}));jl.displayName="GymatraMenuItem";const Dl=o.forwardRef(({className:e,...t},n)=>c.jsx(Al,{ref:n,className:K("my-1 h-px bg-border -mx-1",e),...t}));Dl.displayName="GymatraMenuSeparator";const kl=o.forwardRef(({className:e,...t},n)=>c.jsx(v4,{ref:n,className:K("px-2.5 py-1 text-[11px] font-semibold uppercase tracking-wider text-text-subtle select-none",e),...t}));kl.displayName="GymatraMenuGroupLabel";function sO({className:e="size-3.5"}){return c.jsx("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polyline",{points:"20 6 9 17 4 12"})})}function cO({className:e="size-3.5"}){return c.jsx("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"m9 18 6-6-6-6"})})}const Hl=o.forwardRef(({className:e,children:t,shortcut:n,...r},i)=>c.jsxs(p4,{ref:i,className:K("group relative flex w-full cursor-pointer select-none items-center gap-2 rounded-md px-2.5 py-1.5 text-sm text-text outline-none transition-colors","data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-surface-muted",e),...r,children:[c.jsx("span",{className:"shrink-0 size-4 flex items-center justify-center text-primary",children:c.jsx(h4,{children:c.jsx(sO,{})})}),c.jsx("span",{className:"flex-1 truncate",children:t}),n&&c.jsx("kbd",{className:"ml-auto pl-3 font-mono text-[11px] text-text-subtle tracking-widest",children:n})]}));Hl.displayName="GymatraMenuCheckboxItem";const Ll=o.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(S4,{ref:r,className:K("group relative flex w-full cursor-pointer select-none items-center gap-2 rounded-md px-2.5 py-1.5 text-sm text-text outline-none transition-colors","data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-surface-muted",e),...n,children:[c.jsx("span",{className:"shrink-0 size-4 flex items-center justify-center text-primary",children:c.jsx(N4,{children:c.jsx("span",{className:"size-2 rounded-full bg-primary"})})}),c.jsx("span",{className:"flex-1 truncate",children:t})]}));Ll.displayName="GymatraMenuRadioItem";const Vl=o.forwardRef(({startIcon:e,className:t,children:n,...r},i)=>c.jsxs(z4,{ref:i,className:K("group relative flex w-full cursor-pointer select-none items-center justify-between gap-2 rounded-md px-2.5 py-1.5 text-sm text-text outline-none transition-colors","data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-surface-muted",t),...r,children:[c.jsxs("div",{className:"flex items-center gap-2 truncate",children:[e&&c.jsx("span",{className:"shrink-0 size-4 text-text-muted group-data-[highlighted]:text-current flex items-center justify-center",children:e}),c.jsx("span",{className:"truncate",children:n})]}),c.jsx(cO,{className:"size-3.5 text-text-muted shrink-0"})]}));Vl.displayName="GymatraMenuSubmenuTrigger";function _l(e){return e.map((t,n)=>{const r=t.key??`menu-item-${n}`;return t.type==="separator"?c.jsx(Dl,{},r):t.type==="label"?c.jsx(kl,{children:t.label},r):t.type==="checkbox"?c.jsx(Hl,{checked:t.checked,onCheckedChange:t.onCheckedChange,shortcut:t.shortcut,disabled:t.disabled,children:t.label},r):t.type==="radio"?c.jsx(Ll,{value:t.value??String(r),disabled:t.disabled,children:t.label},r):t.items&&t.items.length>0?c.jsxs(L1,{children:[c.jsx(Vl,{startIcon:t.startIcon??t.icon,disabled:t.disabled,children:t.label}),c.jsx(go,{children:c.jsx(vo,{sideOffset:4,align:"start",className:"z-50 outline-none",children:c.jsx(xo,{children:_l(t.items)})})})]},r):c.jsx(jl,{variant:t.variant,startIcon:t.startIcon??t.icon,endIcon:t.endIcon,shortcut:t.shortcut,disabled:t.disabled,onClick:t.onClick,children:t.label},r)})}function uO({trigger:e,items:t,open:n,defaultOpen:r,onOpenChange:i,side:a="bottom",align:l="start",sideOffset:s=6,width:d="min-w-[200px]",popupClassName:u,children:f}){const m=n!==void 0?{open:n,onOpenChange:i}:r!==void 0?{defaultOpen:r,onOpenChange:i}:{onOpenChange:i};return c.jsxs(Ol,{...m,children:[c.jsx(zl,{render:o.isValidElement(e)?e:c.jsx("button",{type:"button",children:e})}),c.jsx(go,{children:c.jsx(vo,{side:a,align:l,sideOffset:s,className:"z-50 outline-none",children:c.jsx(xo,{className:K(d,u),children:t&&t.length>0?_l(t):f})})})]})}const V1="data-composite-item-active";function dO(e){const{loopFocus:t=!0,orientation:n="both",grid:r,onLoop:i,direction:a,highlightedIndex:l,onHighlightedIndexChange:s,rootRef:d,enableHomeAndEndKeys:u=!1,stopEventPropagation:f,disabledIndices:m,modifierKeys:h=qt}=e,[x,g]=p.useState(0),b=r!=null,v=p.useRef(null),y=an(v,d),w=p.useRef([]),E=p.useRef(!1),C=p.useRef(null),$=l??x,M=de((z,_=!1)=>{if(C.current=w.current[z]??null,(s??g)(z),_){const F=w.current[z];Q2(v.current,F,a,n)}}),S=de(z=>{var j;if(z.size===0)return;if(E.current){const V=w.current,J=V.indexOf(C.current);if(J===-1){const U=V[$];!U||er(V,$,m)?M(fO(V,m)):C.current=U}else J!==$&&M(J);return}E.current=!0;const _=Array.from(z.keys()),F=_.find(V=>V==null?void 0:V.hasAttribute(V1))??null,O=F?((j=z.get(F))==null?void 0:j.index)??-1:-1;if(O!==-1)M(O);else if(er(_,$,m)){const V=Jt(_,{disabledIndices:m});_n(_,V)||M(V)}Q2(v.current,F,a,n)});ce(()=>{if(m==null||l!=null||!E.current)return;const z=w.current;if(er(z,$,m)){const _=Jt(z,{disabledIndices:m});_n(z,_)||M(_)}},[m,l,$,w,M]);const P=de((z,_,F)=>i?i(z,_,F,w):F),N=de(z=>{const _=z.key===ks||z.key===Hs;if(!gi.has(z.key)||!u&&_||mO(z,h)||!v.current)return;const O=a==="rtl",j=O?js:Ds,V=O?Ds:js,J=n==="vertical"?As:j,U=n==="vertical"?zs:V,G=Ct(z.nativeEvent);if(G!=null&&J2(G)&&!Ku(G)){const B=G.selectionStart,W=G.selectionEnd,X=G.value;if(B==null||z.shiftKey||B!==W||z.key!==U&&B<X.length||z.key!==J&&B>0)return}let I=$;const A=na(w,m),T=Fs(w,m);r!=null&&(I=r({disabledIndices:m,elementsRef:w,event:z,highlightedIndex:$,loopFocus:t,maxIndex:T,minIndex:A,onLoop:P,orientation:n,rtl:O}));const q=n!=="vertical"&&z.key===j||n!=="horizontal"&&z.key===As,D=n!=="vertical"&&z.key===V||n!=="horizontal"&&z.key===zs;u&&(z.key===ks?I=A:z.key===Hs&&(I=T)),I===$&&(q||D)&&(t&&I===T&&q?(I=A,i&&(I=i(z,$,I,w))):t&&I===A&&D?(I=T,i&&(I=i(z,$,I,w))):I=Jt(w.current,{startingIndex:I,decrement:D,disabledIndices:m})),I!==$&&!_n(w.current,I)&&(f&&z.stopPropagation(),(b||_||q||D)&&z.preventDefault(),M(I,!0),queueMicrotask(()=>{var B;(B=w.current[I])==null||B.focus()}))});return{props:{ref:y,onFocus(z){const _=v.current,F=Ct(z.nativeEvent);!_||F==null||!J2(F)||F.setSelectionRange(0,F.value.length)},onKeyDown:N},highlightedIndex:$,onHighlightedIndexChange:M,elementsRef:w,onMapChange:S,relayKeyboardEvent:N}}function fO(e,t){let n=-1;for(let r=0;r<e.length;r+=1){const i=e[r];if(!(!i||er(e,r,t))){if(i.hasAttribute(V1))return r;n===-1&&(n=r)}}return Math.max(n,0)}function mO(e,t){for(const n of pg)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function _1(e){const{render:t,className:n,style:r,refs:i=qt,props:a=qt,state:l=We,stateAttributesMapping:s,highlightedIndex:d,onHighlightedIndexChange:u,orientation:f,grid:m,loopFocus:h,onLoop:x,enableHomeAndEndKeys:g,onMapChange:b,stopEventPropagation:v=!0,rootRef:y,disabledIndices:w,modifierKeys:E,highlightItemOnHover:C=!1,tag:$="div",...M}=e,S=Nr(),{props:P,highlightedIndex:N,onHighlightedIndexChange:R,elementsRef:z,onMapChange:_,relayKeyboardEvent:F}=dO({grid:m,loopFocus:h,onLoop:x,orientation:f,highlightedIndex:d,onHighlightedIndexChange:u,rootRef:y,stopEventPropagation:v,enableHomeAndEndKeys:g,direction:S,disabledIndices:w,modifierKeys:E}),O=Se($,e,{state:l,ref:i,props:[P,...a,M],stateAttributesMapping:s}),j=p.useMemo(()=>({highlightedIndex:N,onHighlightedIndexChange:R,highlightItemOnHover:C,relayKeyboardEvent:F}),[N,R,C,F]);return c.jsx(hu.Provider,{value:j,children:c.jsx(co,{elementsRef:z,onMapChange:V=>{b==null||b(V),_(V)},children:O})})}const pO="data-has-submenu-open",hO={hasSubmenuOpen(e){return e?{[pO]:""}:null}},B1=p.forwardRef(function(t,n){const{orientation:r="horizontal",loopFocus:i=!0,render:a,className:l,modal:s=!0,disabled:d=!1,id:u,style:f,...m}=t,[h,x]=p.useState(null),[g,b]=p.useState(!1),v=ft(u),y={orientation:r,modal:s,hasSubmenuOpen:g},w=p.useRef(!1),E=p.useMemo(()=>({contentElement:h,setContentElement:x,setHasSubmenuOpen:b,hasSubmenuOpen:g,modal:s,disabled:d,orientation:r,allowMouseUpTriggerRef:w,rootId:v}),[h,g,s,d,r,v]);return c.jsx(D1.Provider,{value:E,children:c.jsx(Gc,{children:c.jsx(gO,{children:c.jsx(_1,{render:a,className:l,style:f,state:y,stateAttributesMapping:hO,refs:[n,x],props:[{role:"menubar",id:v,"aria-orientation":r},m],orientation:r,loopFocus:i,enableHomeAndEndKeys:!0,highlightItemOnHover:g})})})})});process.env.NODE_ENV!=="production"&&(B1.displayName="Menubar");function gO(e){const t=qa(),{events:n}=qn(),r=k1();return p.useEffect(()=>{function i(a){!a.nodeId||a.parentNodeId!==t||(a.open?r.hasSubmenuOpen||r.setHasSubmenuOpen(!0):a.reason!==Dr&&a.reason!==rr&&r.setHasSubmenuOpen(!1))}return n.on("menuopenchange",i),()=>{n.off("menuopenchange",i)}},[n,t,r]),c.jsx(Bc,{id:t,children:e.children})}const vO=B1,xO=Ol,bO=go,yO=vo,EO=F1,wO=A1,CO=L1,$O=xo,MO=jl,SO=Dl,NO=kl,PO=Hl,RO=Ll,IO=Vl,G1=o.forwardRef(({className:e,startIcon:t,children:n,...r},i)=>c.jsxs(zl,{ref:i,className:K("flex cursor-pointer select-none items-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium text-text outline-none transition-colors","hover:bg-surface-muted hover:text-text","data-[popup-open]:bg-primary-soft data-[popup-open]:text-primary","focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",e),...r,children:[t&&c.jsx("span",{className:"shrink-0 size-4 text-text-muted flex items-center justify-center",children:t}),c.jsx("span",{children:n})]}));G1.displayName="GymatraMenubarTrigger";const A4=o.forwardRef(({menus:e,bordered:t=!0,className:n,children:r,...i},a)=>c.jsx(B1,{ref:a,className:K("flex items-center gap-0.5 text-sm text-text select-none",t?"rounded-md border border-border bg-white p-1 shadow-none":"bg-transparent p-0.5",n),...i,children:e&&e.length>0?e.map((l,s)=>{const d=l.key??`menubar-menu-${s}`;return c.jsxs(Ol,{disabled:l.disabled,children:[c.jsx(G1,{startIcon:l.startIcon,disabled:l.disabled,children:l.trigger}),c.jsx(go,{children:c.jsx(vo,{side:l.side??"bottom",align:l.align??"start",sideOffset:l.sideOffset??6,className:"z-50 outline-none",children:c.jsx(xo,{className:K(l.width??"min-w-52",l.popupClassName),children:_l(l.items)})})})]},d)}):r}));A4.displayName="GymatraMenubar";function FO({className:e="size-3.5"}){return c.jsx("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"m15 18-6-6 6-6"})})}function TO({className:e="size-3.5"}){return c.jsx("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"m9 18 6-6-6-6"})})}function OO({className:e="size-3"}){return c.jsx("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"m6 9 6 6 6-6"})})}function zO({className:e="size-3"}){return c.jsx("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polyline",{points:"20 6 9 17 4 12"})})}function U1({page:e,total:t,pageSize:n,onPageChange:r,pageSizeOptions:i,onPageSizeChange:a,showSummary:l=!0,className:s,...d}){const u=Math.max(1,Math.ceil(t/n)),f=Math.min(Math.max(1,e),u),m=t===0?0:(f-1)*n+1,h=Math.min(f*n,t),[x,g]=o.useState(!1),b=o.useRef(null);o.useEffect(()=>{function w(E){b.current&&!b.current.contains(E.target)&&g(!1)}if(x)return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[x]);function v(){return u<=7?Array.from({length:u},(w,E)=>E+1):f<=4?[1,2,3,4,5,"ellipsis",u]:f>=u-3?[1,"ellipsis",u-4,u-3,u-2,u-1,u]:[1,"ellipsis",f-1,f,f+1,"ellipsis",u]}const y=v();return c.jsxs("div",{className:K("flex flex-wrap items-center justify-between gap-3 pt-3 px-1 text-xs text-text-muted",s),...d,children:[c.jsxs("div",{className:"flex items-center gap-2 text-text-muted text-xs",children:[l&&c.jsxs("span",{children:["Display ",m," to ",h," of ",t]}),i&&i.length>0&&a&&c.jsxs("div",{ref:b,className:"relative inline-block text-left",children:[c.jsxs("button",{type:"button",onClick:()=>g(w=>!w),"aria-haspopup":"listbox","aria-expanded":x,"aria-label":`Rows per page: ${n}`,className:K("inline-flex h-7 items-center justify-between gap-2 rounded-md border border-border bg-white px-2.5 text-xs text-text cursor-pointer transition-colors outline-none","hover:border-border-strong hover:bg-surface/50","focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary",x&&"border-primary bg-primary-soft/30 text-primary"),children:[c.jsx("span",{children:n}),c.jsx("span",{className:K("text-text-subtle transition-transform duration-150 flex items-center",x&&"rotate-180 text-primary"),"aria-hidden":"true",children:c.jsx(OO,{})})]}),x&&c.jsx("div",{role:"listbox","aria-label":"Rows per page",className:"absolute left-0 bottom-full z-50 mb-1 min-w-[75px] rounded-lg border border-border bg-white p-1 shadow-sm focus:outline-none",children:i.map(w=>{const E=w===n;return c.jsxs("button",{type:"button",role:"option","aria-selected":E,onClick:()=>{a(w),g(!1)},className:K("flex w-full items-center justify-between rounded px-2 py-1 text-xs text-left cursor-pointer transition-colors outline-none","hover:bg-surface hover:text-text",E?"bg-primary-soft/40 text-primary font-semibold":"text-text font-normal"),children:[c.jsx("span",{children:w}),E&&c.jsx("span",{className:"text-primary","aria-hidden":"true",children:c.jsx(zO,{})})]},w)})})]})]}),c.jsxs("div",{className:"flex items-center gap-1 ms-auto",children:[c.jsx("button",{type:"button",disabled:f<=1,onClick:()=>r(f-1),"aria-label":"Previous page",className:"flex size-7 items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-surface disabled:pointer-events-none disabled:opacity-30 cursor-pointer transition-colors",children:c.jsx(FO,{})}),y.map((w,E)=>{if(w==="ellipsis")return c.jsx("span",{className:"flex size-7 items-center justify-center text-text-subtle select-none",children:"…"},`ellipsis-${E}`);const C=w===f;return c.jsx("button",{type:"button",onClick:()=>r(w),"aria-current":C?"page":void 0,className:K("flex size-7 items-center justify-center rounded-full text-xs font-semibold cursor-pointer transition-colors",C?"bg-primary text-white":"text-text hover:bg-surface"),children:w},w)}),c.jsx("button",{type:"button",disabled:f>=u,onClick:()=>r(f+1),"aria-label":"Next page",className:"flex size-7 items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-surface disabled:pointer-events-none disabled:opacity-30 cursor-pointer transition-colors",children:c.jsx(TO,{})})]})]})}U1.displayName="GymatraPagination";const W1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(W1.displayName="PopoverRootContext");function Zn(e){const t=p.useContext(W1);if(t===void 0&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>.":Ve(47));return t}const AO={...Hn,disabled:e=>e.disabled,instantType:e=>e.instantType==="trigger-change"&&!Hn.open(e)?void 0:e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,isPressOpenedByTrigger:(e,t)=>e.openChangeReason===Gn&&Hn.isOpenedByTrigger(e,t),isTouchPressOpen:(e,t)=>t&&e.openMethod==="touch"&&e.openChangeReason===Gn,hasTriggerFocusGuards:(e,t)=>Hn.isOpenedByTrigger(e,t)&&!e.focusManagerModal,modal:e=>e.modal,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class jO extends Cr{constructor(n,r,i){const a=new ui;super(DO(n,a,r,i),kO(a),AO);Be(this,"setOpen",(n,r)=>{var m,h;const i=r.reason===Ot,a=r.reason===Gn&&r.event.detail===0,l=!n&&(r.reason===$r||r.reason==null),s=ci(r),d=this.select("activeTriggerId");if(!n&&r.reason===Ga&&r.trigger==null&&d!=null&&(r.trigger=this.context.triggerElements.getById(d)??this.select("activeTriggerElement")??void 0),(h=(m=this.context).onOpenChange)==null||h.call(m,n,r),r.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(n,r);const u=()=>{const x=Xa(this.state,n,r.trigger,s());x.openChangeReason=r.reason,this.update(x)};i?(this.context.stickIfOpen=!0,this.context.stickIfOpenTimeout.start(w3,()=>{this.context.stickIfOpen=!1}),on.flushSync(u)):u();let f;a?f="click":l?f="dismiss":r.reason===zn&&(f="focus"),this.set("instantType",f)})}}function DO(e,t,n,r=!1){const i={...tl(t,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&(e==null?void 0:e.mounted)===void 0&&(i.mounted=!0),i}function kO(e){return{popupRef:p.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:p.createRef(),beforeTriggerFocusGuardRef:p.createRef(),beforeContentFocusGuardRef:p.createRef(),stickIfOpenTimeout:new En,stickIfOpen:!0,triggerElements:e}}const lc=ti(function({props:t}){const{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:l,modal:s=!1,handle:d,triggerId:u,defaultTriggerId:f=null}=t,m=HO(d,{modal:s,open:i,openProp:r,activeTriggerId:f,triggerIdProp:u});m.useControlledProp("openProp",r),m.useControlledProp("triggerIdProp",u);const h=m.useState("open"),x=m.useState("mounted"),g=m.useState("payload");m.useContextCallback("onOpenChange",a),m.useContextCallback("onOpenChangeComplete",l),R3(m,h),Ja(m);const{forceUnmount:b}=Qa(h,m,()=>{m.context.stickIfOpen=!0,m.set("openChangeReason",null)});m.useSyncedValues({modal:s}),p.useEffect(()=>{h||m.context.stickIfOpenTimeout.clear()},[m,h]),p.useImperativeHandle(t.actionsRef,()=>({unmount:b,close:()=>m.setOpen(!1,$e(oo))}),[b,m]);const v=h||x||d!=null;return c.jsxs(W1.Provider,{value:m,children:[d&&c.jsx(Ya,{handle:d,store:m}),v&&c.jsx(LO,{store:m,modal:s}),typeof n=="function"?n({payload:g}):n]})});process.env.NODE_ENV!=="production"&&(lc.displayName="PopoverRootComponent");function j4(e){return Zn(!0)?c.jsx(lc,{props:e}):c.jsx(Gc,{children:c.jsx(lc,{props:e})})}function HO(e,t){const n=Kc((r,i)=>new jO(t,r,i));return p.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function LO({store:e,modal:t}){const n=e.useState("floatingRootContext"),r=ao(n,{outsidePressEvent:{mouse:t==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),i=r.reference,a=r.floating;return el(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:a}),null}const VO=300,K1=ka(function(t,n){const{render:r,className:i,style:a,disabled:l=!1,nativeButton:s=!0,handle:d,payload:u,openOnHover:f=!1,delay:m=VO,closeDelay:h=0,id:x,...g}=t,b=Zn(!0),y=nl(d)??b;if(!y)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle.":Ve(74));const w=ft(x),E=y.useState("isTriggerActive",w),C=y.useState("floatingRootContext"),$=y.useState("isOpenedByTrigger",w),M=y.useState("triggerPopupId",w),S=p.useRef(null),{registerTrigger:P,isMountedByThisTrigger:N}=Za(w,S,y,{payload:u,disabled:l,openOnHover:f,closeDelay:h}),R=y.useState("isPressOpenedByTrigger",w),z=y.useState("isTouchPressOpen",f),_=y.useState("hasTriggerFocusGuards",w),F=rl(C,{enabled:!l&&f&&!z,mouseOnly:!0,move:!1,handleClose:il(),restMs:m,delay:{close:h},triggerElementRef:S,isActiveTrigger:E,isClosing:()=>y.select("transitionStatus")==="ending"}),O=de(()=>y.context.stickIfOpen),j=Mr(C,{stickIfOpen:O}),V=uu(()=>y.select("open"),W=>{y.set("openMethod",W)}),J=y.useState("triggerProps",N),{getButtonProps:U,buttonRef:G}=Wt({disabled:l,native:s}),I={open(W){return R?zo.open(W):ro.open(W)}},{handlePreFocusGuardFocus:A,handleFocusTargetFocus:T}=T4(y,S),D=Se("button",t,{state:{disabled:l,open:$},ref:[G,n,P,S],props:[j.reference,F,J,V,{[jc]:"",id:w,"aria-haspopup":"dialog","aria-expanded":$,"aria-controls":M},g,U],stateAttributesMapping:I}),B=c.jsx(p.Fragment,{children:D},w);return _?c.jsxs(p.Fragment,{children:[c.jsx(Un,{ref:y.context.beforeTriggerFocusGuardRef,onFocus:A}),B,c.jsx(Un,{ref:y.context.triggerFocusTargetRef,onFocus:T})]}):B});process.env.NODE_ENV!=="production"&&(K1.displayName="PopoverTrigger");const q1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(q1.displayName="PopoverPortalContext");function _O(){const e=p.useContext(q1);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Popover.Portal> is missing.":Ve(45));return e}const Y1=p.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t;return Zn().useState("mounted")||r?c.jsx(q1.Provider,{value:r,children:c.jsx(io,{ref:n,...i})}):null});process.env.NODE_ENV!=="production"&&(Y1.displayName="PopoverPortal");const X1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(X1.displayName="PopoverPositionerContext");function D4(){const e=p.useContext(X1);if(!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>.":Ve(46));return e}const Z1=p.forwardRef(function(t,n){const{render:r,className:i,style:a,anchor:l,positionMethod:s,side:d,align:u,sideOffset:f,alignOffset:m,collisionBoundary:h="clipping-ancestors",collisionPadding:x,arrowPadding:g,sticky:b,disableAnchorTracking:v=!1,collisionAvoidance:y=kc,...w}=t,E=Zn(),C=_O(),$=qa(),M=E.useState("floatingRootContext"),S=E.useState("mounted"),P=E.useState("open"),N=E.useState("openChangeReason"),R=E.useState("activeTriggerElement"),z=E.useState("modal"),_=E.useState("openMethod"),F=E.useState("positionerElement"),O=E.useState("instantType"),j=E.useState("transitionStatus"),V=E.useState("adaptiveOrigin"),J=pi({anchor:l,floatingRootContext:M,positionMethod:s,mounted:S,side:d,sideOffset:f,align:u,alignOffset:m,arrowPadding:g,collisionBoundary:h,collisionPadding:x,sticky:b,disableAnchorTracking:v,keepMounted:C,nodeId:$,collisionAvoidance:y,adaptiveOrigin:V}),U=M.useState("domReferenceElement");C4({store:E,domReference:U,positionerElement:F,open:P});const G=z===!0&&N!==Ot;pl(P&&G,_==="touch",F,R);const I=E.useStateSetter("positionerElement"),A={open:P,side:J.side,align:J.align,anchorHidden:J.anchorHidden,instant:O},T=hi(t,A,{styles:J.positionerStyles,transitionStatus:j,props:w,refs:[n,I],hidden:!S,inert:!P});return c.jsxs(X1.Provider,{value:J,children:[S&&G&&c.jsx(fo,{inert:uo(!P),cutout:R}),c.jsx(Bc,{id:$,children:T})]})});process.env.NODE_ENV!=="production"&&(Z1.displayName="PopoverPositioner");const J1=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(J1.displayName="ClosePartContext");function BO(){const[e,t]=p.useState(0),n=de(()=>(t(i=>i+1),()=>{t(i=>Math.max(0,i-1))}));return{context:p.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}function GO(){const e=p.useContext(J1);ce(()=>e==null?void 0:e.register(),[e])}const k4=p.forwardRef(function(t,n){const{render:r,className:i,style:a,initialFocus:l,finalFocus:s,...d}=t,u=Zn(),f=D4(),m=bl()!=null,{context:h,hasClosePart:x}=BO(),g=u.useState("open"),b=u.useState("openMethod"),v=u.useState("instantType"),y=u.useState("transitionStatus"),w=u.useState("popupProps"),E=u.useState("titleElementId"),C=u.useState("descriptionElementId"),$=u.useState("modal"),M=u.useState("mounted"),S=u.useState("openChangeReason"),P=u.useState("activeTriggerElement"),N=u.useState("floatingRootContext"),R=N.useState("floatingId"),z=u.useState("disabled"),_=u.useState("openOnHover"),F=u.useState("closeDelay");Yt({open:g,ref:u.context.popupRef,onComplete(){var G,I;g&&((I=(G=u.context).onOpenChangeComplete)==null||I.call(G,!0))}}),Xc(N,{enabled:_&&!z,closeDelay:F});const O=l===void 0?N3(u.context.popupRef):l,j=$!==!1&&x;u.useSyncedValue("focusManagerModal",j);const V=u.useStateSetter("popupElement"),J={open:g,side:f.side,align:f.align,instant:v,transitionStatus:y},U=Se("div",t,{state:J,ref:[n,u.context.popupRef,V],props:[w,{id:R,role:"dialog",...lo,"aria-labelledby":E,"aria-describedby":C,onKeyDown(G){m&&gi.has(G.key)&&G.stopPropagation()}},mo(y),d],stateAttributesMapping:oi});return c.jsx(si,{context:N,openInteractionType:b,modal:j,disabled:!M||S===Ot,initialFocus:O,returnFocus:s,restoreFocus:"popup",getInsideElements:()=>[u.context.beforeTriggerFocusGuardRef.current],previousFocusableElement:at(P)?P:void 0,nextFocusableElement:u.context.triggerFocusTargetRef,beforeContentFocusGuardRef:u.context.beforeContentFocusGuardRef,children:c.jsx(J1.Provider,{value:h,children:U})})});process.env.NODE_ENV!=="production"&&(k4.displayName="PopoverPopup");const H4=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,d=Zn().useState("open"),{arrowRef:u,side:f,align:m,arrowUncentered:h,arrowStyles:x}=D4();return Se("div",t,{state:{open:d,side:f,align:m,uncentered:h},ref:[n,u],props:[{style:x,"aria-hidden":!0},l],stateAttributesMapping:ar})});process.env.NODE_ENV!=="production"&&(H4.displayName="PopoverArrow");const L4=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,s=Zn(),d=ft(l.id);return s.useSyncedValueWithCleanup("titleElementId",d),Se("h2",t,{ref:n,props:[{id:d},l]})});process.env.NODE_ENV!=="production"&&(L4.displayName="PopoverTitle");const V4=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,s=Zn(),d=ft(l.id);return s.useSyncedValueWithCleanup("descriptionElementId",d),Se("p",t,{ref:n,props:[{id:d},l]})});process.env.NODE_ENV!=="production"&&(V4.displayName="PopoverDescription");const _4=p.forwardRef(function(t,n){const{render:r,className:i,style:a,disabled:l=!1,nativeButton:s=!0,...d}=t,{buttonRef:u,getButtonProps:f}=Wt({disabled:l,focusableWhenDisabled:!1,native:s}),m=Zn();return GO(),Se("button",t,{ref:[n,u],props:[{onClick(x){m.setOpen(!1,$e(Ga,x.nativeEvent))}},d,f]})});process.env.NODE_ENV!=="production"&&(_4.displayName="PopoverClose");const UO=j4,WO=K1,KO=Y1,qO=Z1,Q1=o.forwardRef(({className:e,children:t,...n},r)=>c.jsx(k4,{ref:r,className:K("relative z-50 rounded-lg border border-border bg-white p-4 text-text outline-none shadow-none",e),...n,children:t}));Q1.displayName="GymatraPopoverPopup";const ed=o.forwardRef(({className:e,...t},n)=>c.jsx(L4,{ref:n,className:K("text-sm font-semibold text-text tracking-tight",e),...t}));ed.displayName="GymatraPopoverTitle";const td=o.forwardRef(({className:e,...t},n)=>c.jsx(V4,{ref:n,className:K("mt-1 text-xs leading-relaxed text-text-muted",e),...t}));td.displayName="GymatraPopoverDescription";function YO({className:e="size-3.5"}){return c.jsx("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})}const nd=o.forwardRef(({className:e,children:t,...n},r)=>c.jsx(_4,{ref:r,className:K("absolute top-3 right-3 rounded-md p-1 text-text-muted hover:bg-surface-muted hover:text-text cursor-pointer transition-colors outline-none focus-visible:outline-2 focus-visible:outline-primary",e),"aria-label":"Fermer",...n,children:t??c.jsx(YO,{})}));nd.displayName="GymatraPopoverClose";const B4=o.forwardRef(({className:e,...t},n)=>c.jsx(H4,{ref:n,className:K("fill-white stroke-border stroke-1",e),...t}));B4.displayName="GymatraPopoverArrow";function XO({trigger:e,title:t,description:n,content:r,children:i,footer:a,side:l="bottom",align:s="center",sideOffset:d=8,width:u="w-80",showCloseButton:f=!0,open:m,defaultOpen:h,onOpenChange:x,modal:g=!1,popupClassName:b}){const v=m!==void 0?{open:m,onOpenChange:x,modal:g}:h!==void 0?{defaultOpen:h,onOpenChange:x,modal:g}:{onOpenChange:x,modal:g};return c.jsxs(j4,{...v,children:[c.jsx(K1,{render:o.isValidElement(e)?e:c.jsx("button",{type:"button",children:e})}),c.jsx(Y1,{children:c.jsx(Z1,{side:l,align:s,sideOffset:d,className:"z-50 outline-none",children:c.jsxs(Q1,{className:K(u,b),children:[f&&c.jsx(nd,{}),(t||n)&&c.jsxs("div",{className:K("space-y-1",f?"pr-6":void 0),children:[t&&c.jsx(ed,{children:t}),n&&c.jsx(td,{children:n})]}),(r||i)&&c.jsx("div",{className:K(t||n?"mt-3":void 0),children:r??i}),a&&c.jsx("div",{className:"mt-4 pt-3 border-t border-border flex items-center justify-end gap-2",children:a})]})})})]})}const yf=new Map;function ZO(e,t){const n=JSON.stringify({locale:cu(e),options:t}),r=yf.get(n);if(r)return r;const i=new Intl.NumberFormat(e,t);return yf.set(n,i),i}function Ef(e,t,n){return e==null?"":ZO(t,n).format(e)}function JO(e,t,n){return(e-t)*100/(n-t)}const rd=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(rd.displayName="ProgressRootContext");function Bl(){const e=p.useContext(rd);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: ProgressRootContext is missing. Progress parts must be placed within <Progress.Root>.":Ve(51));return e}const QO="data-complete",ez="data-indeterminate",tz="data-progressing",Mi={status(e){return e==="progressing"?{[tz]:""}:e==="complete"?{[QO]:""}:e==="indeterminate"?{[ez]:""}:null}},od=p.forwardRef(function(t,n){const{format:r,getAriaValueText:i,locale:a,max:l=100,min:s=0,value:d,render:u,className:f,children:m,style:h,...x}=t,[g,b]=p.useState();let v="indeterminate",y=null,w=null,E="",C="indeterminate progress";if(d!=null&&Number.isFinite(d)){const N=JO(d,s,l);y=pr(Number.isNaN(N)?0:N,0,100),w=pr(d,s,l),v=w===l?"complete":"progressing",E=r?Ef(w,a,r):Ef(y/100,a,{style:"percent"}),C=E}const $=p.useMemo(()=>({status:v}),[v]),M={"aria-labelledby":g,"aria-valuemax":l,"aria-valuemin":s,"aria-valuenow":w??void 0,"aria-valuetext":i?i(E,d):C,role:"progressbar",children:c.jsxs(p.Fragment,{children:[m,c.jsx("span",{role:"presentation",style:no,children:"x"})]})},S=p.useMemo(()=>({formattedValue:E,percentageValue:y,setLabelId:b,state:$,value:d}),[E,y,b,$,d]),P=Se("div",t,{state:$,ref:n,props:[M,x],stateAttributesMapping:Mi});return c.jsx(rd.Provider,{value:S,children:P})});process.env.NODE_ENV!=="production"&&(od.displayName="ProgressRoot");const id=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,{state:s}=Bl();return Se("div",t,{state:s,ref:n,props:l,stateAttributesMapping:Mi})});process.env.NODE_ENV!=="production"&&(id.displayName="ProgressTrack");const ad=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,{percentageValue:s,state:d}=Bl(),u=s==null?{}:{insetInlineStart:0,height:"inherit",width:`${s}%`};return Se("div",t,{state:d,ref:n,props:[{style:u},l],stateAttributesMapping:Mi})});process.env.NODE_ENV!=="production"&&(ad.displayName="ProgressIndicator");const G4=p.forwardRef(function(t,n){const{className:r,render:i,children:a,style:l,...s}=t,{value:d,formattedValue:u,state:f}=Bl(),m=f.status==="indeterminate";return Se("span",t,{state:f,ref:n,props:[{"aria-hidden":!0,children:typeof a=="function"?a(m?"indeterminate":u,d):m?null:u},s],stateAttributesMapping:Mi})});process.env.NODE_ENV!=="production"&&(G4.displayName="ProgressValue");const ld=p.forwardRef(function(t,n){const{render:r,className:i,style:a,id:l,...s}=t,{setLabelId:d,state:u}=Bl(),f=em(l,d);return Se("span",t,{state:u,ref:n,props:[{id:f,role:"presentation"},s],stateAttributesMapping:Mi})});process.env.NODE_ENV!=="production"&&(ld.displayName="ProgressLabel");const nz=od,rz=id,oz=ad,iz=ld,az=G4,lz={primary:"bg-primary",success:"bg-emerald-600",warning:"bg-amber-500",danger:"bg-rose-600",info:"bg-sky-600"},sz={xs:"h-1",sm:"h-1.5",md:"h-2",lg:"h-3"},cz={pill:"rounded-full",rounded:"rounded-md",square:"rounded-none"};function uz({value:e,min:t=0,max:n=100,label:r,description:i,showValue:a=!0,formatValue:l,variant:s="primary",size:d="md",shape:u="pill",className:f,trackClassName:m,indicatorClassName:h}){const x=e===null,g=cz[u],b=e!==null?Math.round((e-t)/(n-t)*100):0;return c.jsxs(od,{value:e,min:t,max:n,className:K("w-full space-y-1.5",f),children:[(r||a)&&c.jsxs("div",{className:"flex items-center justify-between gap-2 text-xs font-medium",children:[c.jsxs("div",{className:"space-y-0.5 min-w-0",children:[r&&c.jsx(ld,{className:"text-text font-semibold truncate",children:r}),i&&c.jsx("p",{className:"text-[11px] text-text-muted",children:i})]}),a&&!x&&c.jsx("span",{className:"text-text-muted font-mono font-medium shrink-0 ml-auto",children:l?l(e):`${b}%`})]}),c.jsx(id,{className:K("relative w-full overflow-hidden bg-surface-muted",sz[d],g,m),children:c.jsx(ad,{className:K("h-full transition-all duration-300 ease-out",lz[s],g,x&&"w-1/3 animate-[indeterminate_1.5s_infinite_ease-in-out]",h)})})]})}const dz={primary:"text-primary",success:"text-emerald-600",warning:"text-amber-500",danger:"text-rose-600",info:"text-sky-600"};function fz({value:e,size:t=80,strokeWidth:n=8,variant:r="primary",children:i,className:a,showValue:l=!0}){const s=Math.min(100,Math.max(0,e)),d=(t-n)/2,u=2*Math.PI*d,f=u-s/100*u;return c.jsxs("div",{className:K("relative inline-flex items-center justify-center shrink-0",a),style:{width:t,height:t},role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,children:[c.jsxs("svg",{className:"-rotate-90 origin-center",width:t,height:t,viewBox:`0 0 ${t} ${t}`,children:[c.jsx("circle",{className:"text-surface-muted",strokeWidth:n,stroke:"currentColor",fill:"transparent",r:d,cx:t/2,cy:t/2}),c.jsx("circle",{className:K(dz[r],"transition-all duration-500 ease-out"),strokeWidth:n,strokeDasharray:u,strokeDashoffset:f,strokeLinecap:"round",stroke:"currentColor",fill:"transparent",r:d,cx:t/2,cy:t/2})]}),c.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-center p-1",children:i??(l&&c.jsxs("span",{className:"text-xs font-semibold font-mono text-text",children:[Math.round(s),"%"]}))})]})}const mz=Al,U4=o.forwardRef(({orientation:e="horizontal",variant:t="default",decorative:n=!0,label:r,children:i,labelPosition:a="center",className:l,...s},d)=>{const u=e==="horizontal",f=r??i,m=()=>{switch(t){case"subtle":return u?"h-px w-full bg-border/50":"w-px h-full min-h-[1rem] bg-border/50 self-stretch";case"primary":return u?"h-px w-full bg-primary/40":"w-px h-full min-h-[1rem] bg-primary/40 self-stretch";case"dashed":return u?"h-0 w-full border-t border-dashed border-border":"w-0 h-full min-h-[1rem] border-s border-dashed border-border self-stretch";case"dotted":return u?"h-0 w-full border-t border-dotted border-border":"w-0 h-full min-h-[1rem] border-s border-dotted border-border self-stretch";case"default":default:return u?"h-px w-full bg-border":"w-px h-full min-h-[1rem] bg-border self-stretch"}};if(u&&f){const h=m();return c.jsxs("div",{ref:d,role:n?"none":"separator","aria-orientation":"horizontal",className:K("flex w-full items-center select-none text-xs font-medium text-text-muted",l),...s,children:[c.jsx("div",{className:K(a==="start"?"w-6 shrink-0":"flex-1",h)}),c.jsx("span",{className:"px-3 shrink-0 flex items-center gap-1.5",children:f}),c.jsx("div",{className:K(a==="end"?"w-6 shrink-0":"flex-1",h)})]})}return c.jsx(Al,{ref:d,orientation:e,role:n?"none":"separator",className:K("shrink-0",m(),l),...s})});U4.displayName="GymatraSeparator";const jr=o.createContext(null);function W4(){const e=o.useContext(jr);if(!e)throw new Error("useGymatraStepper must be used within a GymatraStepper");return e}function K4({className:e}){return c.jsx("svg",{className:K("size-3.5",e),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:c.jsx("polyline",{points:"20 6 9 17 4 12"})})}function pz({className:e}){return c.jsxs("svg",{className:K("size-3.5",e),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),c.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}function hz({steps:e,currentStep:t,activeStep:n,orientation:r="horizontal",variant:i="numbered",layout:a="inline",size:l="md",clickable:s=!1,allowStepAdvance:d=!1,onStepClick:u,className:f,children:m,...h}){const x=t??n??0,g=e?e.length:o.Children.count(m),b={currentStep:x,orientation:r,variant:i,size:l,layout:a,clickable:s,allowStepAdvance:d,onStepClick:u,totalSteps:g};return r==="vertical"?c.jsx(jr.Provider,{value:b,children:c.jsx("div",{role:"navigation","aria-label":"Progress Stepper",className:K("w-full flex flex-col",f),...h,children:e?e.map((v,y)=>{const w=y===e.length-1,E=v.status??(y<x?"complete":y===x?"current":"upcoming");return c.jsx(q4,{stepIndex:y,status:E,title:v.title,description:v.description,icon:v.icon,completedIcon:v.completedIcon,errorIcon:v.errorIcon,optional:v.optional,disabled:v.disabled,badge:v.badge,isLast:w},v.id??y)}):m})}):e&&i==="pills"&&r==="horizontal"?c.jsx(jr.Provider,{value:b,children:c.jsx("nav",{role:"navigation","aria-label":"Progress Stepper",className:K("w-full text-text",f),...h,children:c.jsx("ol",{className:"flex flex-wrap items-center gap-2 sm:gap-2.5 w-full",children:e.map((v,y)=>{const w=y===e.length-1,E=v.status??(y<x?"complete":y===x?"current":"upcoming"),C=E==="complete",$=E==="current",M=E==="error",S=s&&!v.disabled&&(d||C||$),P=()=>{S&&u&&u(y,v)};return c.jsxs("li",{className:"inline-flex items-center gap-2",children:[c.jsxs("button",{type:"button",disabled:!S||v.disabled,onClick:P,"aria-current":$?"step":void 0,className:K("inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs transition-all outline-none",$?"bg-primary text-white font-semibold ring-2 ring-primary/25":C?"bg-primary-soft text-primary font-medium hover:bg-primary-soft/80":M?"bg-rose-50 text-danger border border-danger/30 font-medium":"bg-surface-muted text-text-muted font-normal hover:text-text",S&&"cursor-pointer focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",!S&&"cursor-default",v.disabled&&"opacity-50 pointer-events-none"),children:[c.jsx("span",{className:K("flex size-4 items-center justify-center rounded-full text-[10px] font-bold shrink-0",$?"bg-white/20 text-white":C?"bg-primary text-white":M?"bg-danger text-white":"bg-border text-text-muted"),children:C?c.jsx(K4,{className:"size-2.5"}):y+1}),c.jsx("span",{className:"truncate",children:v.title})]}),!w&&c.jsx("span",{className:"text-text-subtle text-xs select-none","aria-hidden":"true",children:"/"})]},v.id??y)})})})}):e&&r==="horizontal"&&a==="centered"?c.jsx(jr.Provider,{value:b,children:c.jsx("nav",{role:"navigation","aria-label":"Progress Stepper",className:K("w-full text-text",f),...h,children:c.jsx("ol",{className:"flex items-start justify-between w-full",children:e.map((v,y)=>{const w=y===0,E=y===e.length-1,C=v.status??(y<x?"complete":y===x?"current":"upcoming"),$=C==="complete",M=C==="current",S=s&&!v.disabled&&(d||$||M),P=()=>{S&&u&&u(y,v)},N=R=>{S&&(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),P())};return c.jsxs("li",{className:"relative flex-1 flex flex-col items-center text-center group",children:[!w&&c.jsx("div",{"aria-hidden":"true",className:"absolute top-4 -translate-y-1/2 left-0 right-1/2 h-0.5 bg-border -z-0",children:c.jsx("div",{className:K("h-full transition-all duration-300",y<=x?"bg-primary":"bg-transparent")})}),!E&&c.jsx("div",{"aria-hidden":"true",className:"absolute top-4 -translate-y-1/2 left-1/2 right-0 h-0.5 bg-border -z-0",children:c.jsx("div",{className:K("h-full transition-all duration-300",y<x?"bg-primary":"bg-transparent")})}),c.jsxs("div",{role:S?"button":void 0,tabIndex:S?0:void 0,onClick:S?P:void 0,onKeyDown:S?N:void 0,"aria-current":M?"step":void 0,className:K("relative z-10 flex flex-col items-center outline-none group rounded-lg p-1 transition-colors",S&&"cursor-pointer hover:bg-surface-muted/40 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",v.disabled&&"opacity-50 pointer-events-none"),children:[c.jsx("div",{className:"bg-white rounded-full p-0.5 ring-4 ring-white",children:c.jsx(Jo,{stepIndex:y,status:C,icon:v.icon,completedIcon:v.completedIcon,errorIcon:v.errorIcon,variant:i,size:l})}),c.jsxs("div",{className:"mt-2 flex flex-col items-center max-w-[140px]",children:[c.jsx("span",{className:K("text-xs leading-tight transition-colors",M?"text-primary font-bold":$?"text-text font-medium":C==="error"?"text-danger font-medium":"text-text-muted"),children:v.title}),v.description&&c.jsx("span",{className:"text-xs text-text-muted mt-0.5 hidden sm:block truncate w-full",children:v.description}),v.badge&&c.jsx("span",{className:"mt-1",children:v.badge})]})]})]},v.id??y)})})})}):e&&r==="horizontal"?c.jsx(jr.Provider,{value:b,children:c.jsx("nav",{role:"navigation","aria-label":"Progress Stepper",className:K("w-full text-text",f),...h,children:c.jsx("ol",{className:"flex items-center w-full",children:e.map((v,y)=>{const w=y===e.length-1,E=v.status??(y<x?"complete":y===x?"current":"upcoming"),C=E==="complete",$=E==="current",M=E==="error",S=s&&!v.disabled&&(d||C||$),P=()=>{S&&u&&u(y,v)},N=R=>{S&&(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),P())};return c.jsxs("li",{className:K("flex items-center min-w-0",w?"flex-none":"flex-1"),children:[c.jsxs("div",{role:S?"button":void 0,tabIndex:S?0:void 0,onClick:S?P:void 0,onKeyDown:S?N:void 0,"aria-current":$?"step":void 0,className:K("flex items-center gap-2.5 sm:gap-3 shrink-0 rounded-lg outline-none transition-colors p-1 -m-1",S&&"cursor-pointer hover:bg-surface-muted/50 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",v.disabled&&"opacity-50 pointer-events-none"),children:[c.jsx(Jo,{stepIndex:y,status:E,icon:v.icon,completedIcon:v.completedIcon,errorIcon:v.errorIcon,variant:i,size:l}),c.jsxs("div",{className:"flex flex-col text-start min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[c.jsx("span",{className:K("leading-tight truncate transition-colors",l==="sm"?"text-xs":l==="lg"?"text-base":"text-sm",$?"text-primary font-bold":C?"text-text font-medium":M?"text-danger font-medium":"text-text-muted font-normal"),children:v.title}),v.optional&&c.jsx("span",{className:"text-xs text-text-subtle font-normal",children:"(Facultatif)"}),v.badge&&c.jsx("span",{children:v.badge})]}),v.description&&c.jsx("span",{className:"text-text-muted leading-tight mt-0.5 truncate hidden md:inline-block text-xs",children:v.description})]})]}),!w&&c.jsx("div",{"aria-hidden":"true",className:"flex-1 mx-2 sm:mx-4 h-0.5 min-w-3 sm:min-w-6 bg-border relative overflow-hidden rounded-full shrink",children:c.jsx("div",{className:K("h-full w-full transition-all duration-300",y<x?"bg-primary":"bg-transparent")})})]},v.id??y)})})})}):c.jsx(jr.Provider,{value:b,children:c.jsx("div",{role:"navigation","aria-label":"Progress Stepper",className:K("w-full text-text",r==="horizontal"?"flex flex-row items-start justify-between":"flex flex-col space-y-0",f),...h,children:m})})}function q4({stepIndex:e=0,status:t,title:n,description:r,icon:i,completedIcon:a,errorIcon:l,optional:s,disabled:d,badge:u,isLast:f=!1,className:m,children:h,...x}){const{currentStep:g,orientation:b,variant:v,size:y,clickable:w,allowStepAdvance:E,onStepClick:C}=W4(),$=t??(e<g?"complete":e===g?"current":"upcoming"),M=$==="complete",S=$==="current",P=$==="error",N=w&&!d&&(E||M||S),R=()=>{N&&C&&C(e)},z=_=>{N&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),R())};return b==="vertical"?c.jsxs("div",{className:K("relative flex items-stretch gap-3.5 group",d&&"opacity-50 pointer-events-none",m),...x,children:[c.jsxs("div",{className:"flex flex-col items-center shrink-0",children:[c.jsx("div",{role:N?"button":void 0,tabIndex:N?0:void 0,onClick:N?R:void 0,onKeyDown:N?z:void 0,"aria-current":S?"step":void 0,className:K("rounded-full outline-none transition-transform",N&&"cursor-pointer hover:scale-105 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"),children:c.jsx(Jo,{stepIndex:e,status:$,icon:i,completedIcon:a,errorIcon:l,variant:v,size:y})}),!f&&c.jsx("div",{className:K("w-0.5 flex-1 my-1.5 transition-colors duration-200 min-h-7",M?"bg-primary":"bg-border"),"aria-hidden":"true"})]}),c.jsxs("div",{className:K("flex-1 min-w-0 pb-6",f&&"pb-1"),children:[c.jsxs("div",{role:N?"button":void 0,tabIndex:N?0:void 0,onClick:N?R:void 0,onKeyDown:N?z:void 0,className:K("flex flex-col outline-none rounded-md",N&&"cursor-pointer"),children:[c.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[c.jsx("span",{className:K("leading-tight transition-colors",y==="sm"?"text-xs":y==="lg"?"text-base":"text-sm",S?"text-primary font-bold":M?"text-text font-medium":P?"text-danger font-medium":"text-text-muted font-normal"),children:n}),s&&c.jsx("span",{className:"text-xs text-text-subtle font-normal",children:"(Facultatif)"}),u&&c.jsx("span",{children:u})]}),r&&c.jsx("p",{className:"text-xs text-text-muted mt-0.5 leading-relaxed",children:r})]}),h&&c.jsx("div",{className:"mt-2.5",children:h})]})]}):c.jsx("div",{className:K("group relative flex flex-col items-center flex-1 text-center sm:flex-row sm:items-start sm:text-start",d&&"opacity-50 pointer-events-none",m),...x,children:c.jsxs("div",{role:N?"button":void 0,tabIndex:N?0:void 0,onClick:N?R:void 0,onKeyDown:N?z:void 0,"aria-current":S?"step":void 0,className:K("flex items-start gap-3 rounded-lg transition-colors outline-none flex-col sm:flex-row items-center sm:items-start",N&&"cursor-pointer p-1.5 -m-1.5 rounded-md hover:bg-surface-muted/70 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"),children:[c.jsx(Jo,{stepIndex:e,status:$,icon:i,completedIcon:a,errorIcon:l,variant:v,size:y}),(n||r||h)&&c.jsxs("div",{className:"min-w-0 flex flex-col items-center sm:items-start",children:[c.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[n&&c.jsx("span",{className:K("leading-tight truncate transition-colors",y==="sm"?"text-xs":y==="lg"?"text-base":"text-sm",S?"text-primary font-bold":M?"text-text font-medium":P?"text-danger font-medium":"text-text-muted font-normal"),children:n}),s&&c.jsx("span",{className:"text-xs text-text-subtle font-normal",children:"(Facultatif)"}),u&&c.jsx("span",{children:u})]}),r&&c.jsx("p",{className:"text-text-muted leading-relaxed mt-0.5 text-xs",children:r}),h]})]})})}function Jo({stepIndex:e,status:t,icon:n,completedIcon:r,errorIcon:i,variant:a="numbered",size:l="md"}){const s=t==="complete",d=t==="current",u=t==="error";if(a==="dots"){const m=l==="sm"?"size-2.5":l==="lg"?"size-4":"size-3";return c.jsx("span",{"aria-hidden":"true",className:K("rounded-full shrink-0 transition-all duration-200 mt-1.5",m,s?"bg-primary":d?"bg-primary ring-4 ring-primary/25 scale-125":u?"bg-danger ring-2 ring-danger/20":"bg-border")})}const f=l==="sm"?"size-6 text-xs":l==="lg"?"size-10 text-sm":"size-8 text-xs font-semibold";return c.jsx("span",{className:K("relative flex shrink-0 items-center justify-center rounded-full transition-all duration-200 select-none",f,s?"bg-primary text-white border border-primary shadow-none":d?"bg-primary text-white border border-primary ring-4 ring-primary/20 font-bold":u?"bg-rose-50 text-danger border-2 border-danger font-bold":"bg-surface-muted text-text-subtle border border-border"),"aria-hidden":"true",children:s?r??c.jsx(K4,{}):u?i??c.jsx(pz,{}):a==="icons"&&n?n:c.jsx("span",{children:e+1})})}function gz({status:e="upcoming",className:t}){const n=e==="complete";return c.jsx("div",{"aria-hidden":"true",className:K("flex-1 hidden sm:flex items-center self-start mt-4 px-2",t),children:c.jsx("div",{className:K("h-0.5 w-full transition-colors duration-200",n?"bg-primary":"bg-border")})})}function vz({active:e=!0,className:t,children:n,...r}){return e?c.jsx("div",{className:K("text-xs text-text",t),...r,children:n}):null}const xz=yl,bz=El;function yz(e="md"){switch(e){case"sm":return{track:"h-5 w-9 p-0.5",thumb:"size-4 data-[checked]:translate-x-4"};case"lg":return{track:"h-7 w-13 p-0.5",thumb:"size-6 data-[checked]:translate-x-6"};case"md":default:return{track:"h-6 w-11 p-0.5",thumb:"size-5 data-[checked]:translate-x-5"}}}function Ez(e="primary"){switch(e){case"success":return"data-[checked]:bg-emerald-600 data-[checked]:border-emerald-600 focus-visible:outline-emerald-600";case"danger":return"data-[checked]:bg-danger data-[checked]:border-danger focus-visible:outline-danger";case"warning":return"data-[checked]:bg-amber-500 data-[checked]:border-amber-500 focus-visible:outline-amber-500";case"primary":default:return"data-[checked]:bg-primary data-[checked]:border-primary focus-visible:outline-primary"}}const Y4=o.forwardRef(({size:e="md",variant:t="primary",label:n,description:r,labelPosition:i="right",onCheckedChange:a,onChange:l,disabled:s=!1,className:d,wrapperClassName:u,...f},m)=>{const h=yz(e),x=Ez(t),g=(v,y)=>{a==null||a(v,y),l==null||l(v)},b=c.jsx(yl,{ref:m,disabled:s,onCheckedChange:g,className:K("relative inline-flex shrink-0 cursor-pointer rounded-full border border-border bg-surface-muted transition-colors duration-200 outline-none select-none shadow-none","focus-visible:outline-2 focus-visible:outline-offset-2","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",h.track,x,d),...f,children:c.jsx(El,{className:K("pointer-events-none block rounded-full bg-white transition-transform duration-200 shadow-none translate-x-0",h.thumb)})});return!n&&!r?b:i==="left"?c.jsxs("label",{className:K("flex cursor-pointer select-none items-center justify-between gap-4 w-full",s&&"cursor-not-allowed opacity-50",u),children:[c.jsxs("div",{className:"flex flex-col min-w-0",children:[n&&c.jsx("span",{className:"text-sm font-medium text-text leading-tight",children:n}),r&&c.jsx("span",{className:"text-xs text-text-muted mt-0.5 leading-normal",children:r})]}),b]}):c.jsxs("label",{className:K("inline-flex cursor-pointer select-none items-center gap-3",s&&"cursor-not-allowed opacity-50",u),children:[b,c.jsxs("div",{className:"flex flex-col min-w-0",children:[n&&c.jsx("span",{className:"text-sm font-medium text-text leading-tight",children:n}),r&&c.jsx("span",{className:"text-xs text-text-muted mt-0.5 leading-normal",children:r})]})]})});Y4.displayName="GymatraSwitch";function wz({direction:e}){return c.jsxs("svg",{"aria-hidden":"true",className:"size-3.5 shrink-0",viewBox:"0 0 16 16",fill:"currentColor",children:[c.jsx("path",{d:"M5 12V4M5 4L2.5 6.5M5 4L7.5 6.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",className:e==="asc"?"text-primary opacity-100":"opacity-35"}),c.jsx("path",{d:"M11 4V12M11 12L8.5 9.5M11 12L13.5 9.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",className:e==="desc"?"text-primary opacity-100":"opacity-35"})]})}function Cz({className:e="size-3.5"}){return c.jsx("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"m6 9 6 6 6-6"})})}function X4({variant:e="cards",className:t,...n}){return c.jsx("div",{className:"w-full overflow-x-auto",children:c.jsx("table",{className:K("w-full text-left text-sm",e==="cards"?"border-separate border-spacing-y-2":"border-collapse border border-border rounded-lg bg-white overflow-hidden",t),...n})})}X4.displayName="GymatraTable";function sd({className:e,...t}){return c.jsx("thead",{className:K("text-xs font-semibold uppercase tracking-wider text-text-subtle",e),...t})}sd.displayName="GymatraTableHeader";function cd({className:e,...t}){return c.jsx("tbody",{className:K("space-y-2",e),...t})}cd.displayName="GymatraTableBody";function ud({className:e,selected:t,variant:n="cards",...r}){return c.jsx("tr",{"data-selected":t,className:K("group transition-all bg-white hover:bg-surface/60","data-[selected=true]:bg-primary-soft/30",n==="cards"?"[&>td:first-child]:rounded-s-lg [&>td:last-child]:rounded-e-lg [&>td]:border-y [&>td]:border-border [&>td:first-child]:border-s [&>td:last-child]:border-e [&>td]:shadow-none":"border-b border-border last:border-b-0",e),...r})}ud.displayName="GymatraTableRow";function Fo({className:e,align:t="left",density:n="normal",...r}){const i=n==="compact"?"py-1.5 px-3 text-[11px]":n==="relaxed"?"py-3.5 px-4 text-xs":"py-2.5 px-3.5 text-xs";return c.jsx("th",{className:K("font-semibold uppercase tracking-wider text-text-subtle align-middle whitespace-nowrap",i,t==="center"&&"text-center",t==="right"&&"text-right",e),...r})}Fo.displayName="GymatraTableHead";function To({className:e,align:t="left",density:n="normal",...r}){const i=n==="compact"?"py-2 px-3 text-xs":n==="relaxed"?"py-4 px-4 text-sm":"py-3 px-3.5 text-sm";return c.jsx("td",{className:K("align-middle text-text bg-inherit",i,t==="center"&&"text-center",t==="right"&&"text-right",e),...r})}To.displayName="GymatraTableCell";function dd({children:e,direction:t,onSort:n,align:r="left",density:i="normal",className:a,...l}){const s=!!t,d=i==="compact"?"py-1.5 px-3 text-[11px]":i==="relaxed"?"py-3.5 px-4 text-xs":"py-2.5 px-3.5 text-xs";return c.jsx("th",{className:K("font-semibold uppercase tracking-wider align-middle whitespace-nowrap",d,r==="center"&&"text-center",r==="right"&&"text-right",a),...l,children:c.jsxs("button",{type:"button",onClick:n,className:K("inline-flex items-center gap-1.5 cursor-pointer transition-colors outline-none","focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary",s?"text-primary font-bold":"text-text-subtle hover:text-text"),children:[c.jsx("span",{children:e}),c.jsx(wz,{direction:t})]})})}dd.displayName="GymatraTableSortHead";function Aa({checked:e=!1,onChange:t,indeterminate:n=!1,"aria-label":r}){return c.jsxs("button",{type:"button",role:"checkbox","aria-checked":n?"mixed":e,"aria-label":r,onClick:()=>t==null?void 0:t(!e),className:K("size-5 shrink-0 rounded-md flex items-center justify-center border cursor-pointer transition-colors outline-none","focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary",e||n?"border-primary bg-primary text-white":"border-slate-300 bg-white hover:border-slate-400"),children:[e&&!n&&c.jsx("svg",{"aria-hidden":"true",className:"size-4 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polyline",{points:"20 6 9 17 4 12"})}),n&&c.jsx("span",{className:"h-0.5 w-3 bg-white rounded-full"})]})}Aa.displayName="GymatraTableCheckbox";function fd({columnsCount:e,hasCheckbox:t=!1,hasExpand:n=!1,density:r="normal",variant:i="cards"}){const a=r==="compact"?"py-2 px-3":r==="relaxed"?"py-4 px-4":"py-3 px-3.5";return c.jsxs("tr",{className:K("bg-white transition-opacity",i==="cards"?"[&>td:first-child]:rounded-s-lg [&>td:last-child]:rounded-e-lg [&>td]:border-y [&>td]:border-border [&>td:first-child]:border-s [&>td:last-child]:border-e":"border-b border-border last:border-b-0"),children:[n&&c.jsx("td",{className:K("w-8 text-center align-middle",a),children:c.jsx("div",{className:"size-4 mx-auto rounded bg-slate-200/80 animate-pulse"})}),t&&c.jsx("td",{className:K("w-8 align-middle",a),children:c.jsx("div",{className:"size-5 rounded-md bg-slate-200/80 animate-pulse"})}),Array.from({length:e}).map((l,s)=>c.jsx("td",{className:K("align-middle",a),children:s===0?c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx("div",{className:"size-8 shrink-0 rounded-full bg-slate-200/80 animate-pulse"}),c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("div",{className:"h-3.5 w-28 rounded bg-slate-200/80 animate-pulse"}),c.jsx("div",{className:"h-2.5 w-20 rounded bg-slate-200/60 animate-pulse"})]})]}):c.jsx("div",{className:K("h-3.5 rounded bg-slate-200/80 animate-pulse",s===1?"w-24":s===e-1?"w-16":"w-20")})},s))]})}fd.displayName="GymatraTableSkeletonRow";function md({rowCount:e=5,columnsCount:t,hasCheckbox:n=!1,hasExpand:r=!1,density:i="normal",variant:a="cards"}){return c.jsx(c.Fragment,{children:Array.from({length:e}).map((l,s)=>c.jsx(fd,{columnsCount:t,hasCheckbox:n,hasExpand:r,density:i,variant:a},s))})}md.displayName="GymatraTableSkeleton";function Z4({columns:e,data:t,rowKey:n=(S,P)=>S.id??P,sort:r,defaultSort:i,onSortChange:a,selectable:l=!1,selectedIds:s,onSelectionChange:d,selectionActions:u,pagination:f,emptyTitle:m="No data found",emptyDescription:h="There are no records matching your criteria.",loading:x=!1,skeletonRowCount:g=5,density:b="normal",variant:v="cards",onRowClick:y,expandedRowRender:w,expandedRowKeys:E,onExpandedRowsChange:C,className:$,...M}){const[S,P]=o.useState(i),N=r??S,[R,z]=o.useState([]),_=s??R,[F,O]=o.useState([]),j=E??F,[V,J]=o.useState((f==null?void 0:f.page)??1),[U,G]=o.useState((f==null?void 0:f.pageSize)??10),I=(f==null?void 0:f.page)??V,A=(f==null?void 0:f.pageSize)??U,T=!!w;function q(ne){let me;(N==null?void 0:N.key)!==ne?me={key:ne,direction:"asc"}:N.direction==="asc"?me={key:ne,direction:"desc"}:me=void 0,typeof r>"u"&&P(me),a==null||a(me)}const D=o.useMemo(()=>N?[...t].sort((ne,me)=>{const le=ne[N.key],we=me[N.key];if(le===we)return 0;if(le==null)return 1;if(we==null)return-1;const Y=String(le).localeCompare(String(we),void 0,{numeric:!0});return N.direction==="asc"?Y:-Y}):t,[t,N]),B=typeof(f==null?void 0:f.total)<"u",W=B?f.total:D.length,X=o.useMemo(()=>{if(!f||B)return D;const ne=(I-1)*A;return D.slice(ne,ne+A)},[D,f,B,I,A]),ee=X.map((ne,me)=>n(ne,me)),Q=ee.length>0&&ee.every(ne=>_.includes(ne)),ie=ee.some(ne=>_.includes(ne))&&!Q;function se(ne){let me;if(ne){const le=new Set([..._,...ee]);me=Array.from(le)}else me=_.filter(le=>!ee.includes(le));typeof s>"u"&&z(me),d==null||d(me)}function Z(ne,me){let le;me?le=[..._,ne]:le=_.filter(we=>we!==ne),typeof s>"u"&&z(le),d==null||d(le)}function he(){typeof s>"u"&&z([]),d==null||d([])}function re(ne){let me;j.includes(ne)?me=j.filter(le=>le!==ne):me=[...j,ne],typeof E>"u"&&O(me),C==null||C(me)}const fe=_.length>0,ue=e.length+(l?1:0)+(T?1:0);return c.jsxs("div",{className:K("flex flex-col w-full relative",$),...M,children:[c.jsx("div",{className:K("fixed bottom-6 left-1/2 -translate-x-1/2 z-50 transition-all duration-200 ease-out","w-[calc(100%-2rem)] max-w-lg sm:w-auto",fe&&u?"translate-y-0 opacity-100 pointer-events-auto":"translate-y-4 opacity-0 pointer-events-none"),children:c.jsxs("div",{className:"flex flex-wrap items-center justify-between sm:justify-start gap-3 rounded-3xl border border-border bg-white px-4 py-2 text-xs shadow-sm",children:[c.jsx("span",{className:"font-medium text-text",children:_.length===1?"1 item selected":`${_.length} items selected`}),c.jsx("span",{className:"hidden sm:inline-block h-4 w-px bg-border","aria-hidden":"true"}),c.jsx("div",{className:"flex items-center gap-1.5 ms-auto sm:ms-0",children:typeof u=="function"?u(_,he):u}),c.jsx("span",{className:"hidden sm:inline-block h-4 w-px bg-border","aria-hidden":"true"}),c.jsx("button",{type:"button",onClick:he,"aria-label":"Cancel selection",title:"Cancel selection",className:"flex size-6 items-center justify-center rounded-full text-text-muted hover:bg-surface hover:text-text cursor-pointer transition-colors outline-none focus-visible:outline-2 focus-visible:outline-primary",children:c.jsx("svg",{"aria-hidden":"true",className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})})]})}),c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:K("w-full text-left text-sm",v==="cards"?"border-separate border-spacing-y-2":"border-collapse border border-border rounded-lg bg-white overflow-hidden"),children:[c.jsx(sd,{children:c.jsxs("tr",{children:[T&&c.jsx(Fo,{density:b,className:"w-8 px-2"}),l&&c.jsx(Fo,{density:b,className:"w-8 px-3",children:c.jsx(Aa,{checked:Q,indeterminate:ie,onChange:se,"aria-label":"Select all rows on current page"})}),e.map(ne=>ne.sortable?c.jsx(dd,{direction:(N==null?void 0:N.key)===ne.key?N.direction:void 0,onSort:()=>q(ne.key),align:ne.align,density:b,className:ne.width,children:ne.header},ne.key):c.jsx(Fo,{align:ne.align,density:b,className:ne.width,children:ne.header},ne.key))]})}),c.jsx(cd,{children:x?c.jsx(md,{rowCount:g,columnsCount:e.length,hasCheckbox:l,hasExpand:T,density:b,variant:v}):X.length>0?X.map((ne,me)=>{const le=n(ne,me),we=_.includes(le),Y=j.includes(le);return c.jsxs(o.Fragment,{children:[c.jsxs(ud,{selected:we,variant:v,onClick:ae=>{const Pe=ae.target;Pe.closest("button")||Pe.closest("input")||Pe.closest("a")||y==null||y(ne,me)},className:K(y&&"cursor-pointer hover:border-primary/40"),children:[T&&c.jsx(To,{density:b,className:"w-8 px-2 text-center",children:c.jsx("button",{type:"button",onClick:ae=>{ae.stopPropagation(),re(le)},"aria-expanded":Y,"aria-label":Y?"Collapse row":"Expand row",className:"size-6 inline-flex items-center justify-center rounded text-text-muted hover:text-text hover:bg-surface-muted transition-transform cursor-pointer outline-none focus-visible:outline-2 focus-visible:outline-primary",children:c.jsx("span",{className:K("inline-block transition-transform duration-150",Y&&"rotate-180"),children:c.jsx(Cz,{})})})}),l&&c.jsx(To,{density:b,className:"w-8 px-3",children:c.jsx(Aa,{checked:we,onChange:ae=>Z(le,ae),"aria-label":`Select row ${le}`})}),e.map(ae=>c.jsx(To,{align:ae.align,density:b,children:ae.render?ae.render(ne,me):ne[ae.key]},ae.key))]}),T&&Y&&c.jsx("tr",{className:K(v==="cards"?"bg-surface-muted/30":"bg-surface-muted/40 border-b border-border"),children:c.jsx("td",{colSpan:ue,className:K("px-5 py-4 text-sm text-text",v==="cards"&&"rounded-lg border border-border border-dashed my-1"),children:w==null?void 0:w(ne,me)})})]},le)}):c.jsx("tr",{children:c.jsxs("td",{colSpan:ue,className:"rounded-lg border border-border bg-white px-4 py-12 text-center text-text-muted",children:[c.jsx("p",{className:"font-semibold text-text",children:m}),c.jsx("p",{className:"mt-1 text-xs text-text-muted",children:h})]})})})]})}),f&&!x&&c.jsx(U1,{page:I,pageSize:A,total:W,onPageChange:ne=>{var me;typeof f.page>"u"&&J(ne),(me=f.onPageChange)==null||me.call(f,ne)},pageSizeOptions:f.pageSizeOptions,onPageSizeChange:ne=>{var me;typeof f.pageSize>"u"&&G(ne),(me=f.onPageSizeChange)==null||me.call(f,ne)},showSummary:f.showSummary})]})}Z4.displayName="GymatraDataTable";const pd=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(pd.displayName="TabsRootContext");function Gl(){const e=p.useContext(pd);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.":Ve(64));return e}const $z="data-activation-direction",Si={tabActivationDirection:e=>({[$z]:e})},hd=p.forwardRef(function(t,n){const{className:r,defaultValue:i=0,onValueChange:a,orientation:l="horizontal",render:s,value:d,style:u,...f}=t,m=t.defaultValue!==void 0,h=p.useRef([]),[x,g]=p.useState(()=>new Map),[b,v]=fn({controlled:d,default:i,name:"Tabs",state:"value"}),y=d!==void 0,[w,E]=p.useState(()=>new Map),C=p.useRef(void 0),$=p.useCallback(ee=>sc(w,ee),[w]),[M,S]=p.useState(()=>({previousValue:b,tabActivationDirection:"none"})),{previousValue:P,tabActivationDirection:N}=M;let R=N,z=!1;P!==b&&(R=wf(P,b,l,w),z=P!=null&&b!=null&&$(b)==null);const _=z?P:b,F=P!==_||N!==R;ce(()=>{F&&S({previousValue:_,tabActivationDirection:R})},[_,F,R]);const O=de((ee,Q)=>{const ie=wf(b,ee,l,w);Q.activationDirection=ie,a==null||a(ee,Q),!Q.isCanceled&&v(()=>ee)}),j=de((ee,Q)=>{a==null||a(ee,$e(Q,void 0,void 0,{activationDirection:"none"}))}),V=de((ee,Q)=>(g(ie=>{const se=new Map(ie);return se.set(ee,Q),se}),()=>{g(ie=>{if(ie.get(ee)!==Q)return ie;const se=new Map(ie);return se.delete(ee),se})})),J=p.useCallback(ee=>x.get(ee),[x]),U=p.useCallback(ee=>{for(const Q of w.values())if(ee===Q.value)return Q.id},[w]),G=p.useMemo(()=>({getTabElementBySelectedValue:$,getTabIdByPanelValue:U,getTabPanelIdByValue:J,onValueChange:O,orientation:l,registerMountedTabPanel:V,setTabMap:E,tabActivationDirection:R,value:b}),[$,U,J,O,l,V,E,R,b]),I=p.useMemo(()=>{for(const ee of w.values())if(ee.value===b)return ee},[w,b]),A=p.useMemo(()=>{for(const ee of w.values())if(!ee.disabled)return ee.value},[w]),T=p.useRef(!m),q=p.useRef(i),D=p.useRef(m),B=p.useRef(!1);ce(()=>{var Z;if(y)return;function ee(he,re){v(()=>he),S({previousValue:he,tabActivationDirection:"none"}),j(he,re),T.current=!1}if(w.size===0){B.current&&b!==null&&!((Z=C.current)!=null&&Z.isConnected)&&ee(null,g2);return}B.current=!0,C.current=w.keys().next().value;const Q=I==null?void 0:I.disabled,ie=I==null&&b!==null;if(!Q&&b===q.current&&(D.current=!1),D.current&&Q&&b===q.current)return;const se=T.current;if(Q||ie){const he=A??null;if(b===he){T.current=!1;return}let re=g2;se?re=v2:Q&&(re=c3),ee(he,re);return}se&&I!=null&&(j(b,v2),T.current=!1)},[A,y,j,I,v,w,b]);const X=Se("div",t,{state:{orientation:l,tabActivationDirection:R},ref:n,props:f,stateAttributesMapping:Si});return c.jsx(pd.Provider,{value:G,children:c.jsx(co,{elementsRef:h,children:X})})});process.env.NODE_ENV!=="production"&&(hd.displayName="TabsRoot");function sc(e,t){for(const[n,r]of e.entries())if(t===r.value)return n;return null}function wf(e,t,n,r){if(e==null||t==null)return"none";const[i,a,l]=n==="horizontal"?["left","left","right"]:["top","up","down"],s=sc(r,e),d=sc(r,t);if(s==null||d==null)return s!==d&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?l:a:"none";const u=s.getBoundingClientRect()[i],f=d.getBoundingClientRect()[i];return f<u?a:f>u?l:"none"}const gd=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(gd.displayName="TabsListContext");function J4(){const e=p.useContext(gd);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.":Ve(65));return e}const vd=p.forwardRef(function(t,n){const{className:r,disabled:i=!1,render:a,value:l,id:s,nativeButton:d=!0,style:u,...f}=t,{value:m,getTabPanelIdByValue:h,onValueChange:x,orientation:g,tabActivationDirection:b}=Gl(),{activateOnFocus:v,registerTabResizeObserverElement:y,tabsListElement:w}=J4(),{highlightedIndex:E,onHighlightedIndexChange:C}=dl(),$=ft(s),M=p.useMemo(()=>({disabled:i,id:$,value:l}),[i,$,l]),{compositeProps:S,compositeRef:P,index:N}=R4({metadata:M}),R=l===m,z=p.useRef(!1),_=p.useRef(null),F=de(B=>{var W;(W=_.current)==null||W.call(_),_.current=B?y(B):null});ce(()=>{if(z.current){z.current=!1;return}if(!(R&&N>-1&&E!==N))return;const B=w;if(B!=null){const W=Kt(Xe(B));if(W&&Re(B,W))return}i||C(N)},[R,N,E,C,i,w]);const{getButtonProps:O,buttonRef:j}=Wt({disabled:i,native:d,focusableWhenDisabled:!0}),V=h(l),J=p.useRef(!1),U=p.useRef(!1);function G(B){x(l,$e(mt,B.nativeEvent,void 0,{activationDirection:"none"}))}function I(B){R||i||G(B)}function A(B){R||i||v&&(!J.current||U.current)&&G(B)}function T(B){if(R||i)return;J.current=!0,U.current=B.button===0;const W=Xe(B.currentTarget);function X(){J.current=!1,U.current=!1,W.removeEventListener("pointerup",X),W.removeEventListener("pointercancel",X)}W.addEventListener("pointerup",X),W.addEventListener("pointercancel",X)}return Se("button",t,{state:{disabled:i,active:R,orientation:g,tabActivationDirection:b},ref:[n,j,P,F],props:[S,{role:"tab","aria-controls":V,"aria-selected":R,id:$,onClick:I,onFocus:A,onPointerDown:T,[V1]:R?"":void 0,onKeyDownCapture(){z.current=!0}},f,O],stateAttributesMapping:Si})});process.env.NODE_ENV!=="production"&&(vd.displayName="TabsTab");const Mz="",Sz=()=>()=>{},Nz=()=>!0,Pz=()=>!1;function Rz(){return Da.useSyncExternalStore(Sz,Nz,Pz)}function Iz(){const[e,t]=p.useState(!1);return p.useEffect(()=>{t(!0)},[]),e}const Fz=ja(18)?Rz:Iz;function Tz(){return!Fz()}function Oz(e){const{script:t}=e,{nonce:n}=Gm();return Tz()?c.jsx("script",{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}function zz(e,t){const n=(t??pt(e).getComputedStyle(e)).transform;let r=0,i=0,a=1;if(n&&n!=="none"){const l=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(l){const s=l[1].split(", ").map(parseFloat);s.length===6?(r=s[4],i=s[5],a=Math.sqrt(s[0]*s[0]+s[1]*s[1])):s.length===16&&(r=s[12],i=s[13],a=s[0])}}return{x:r,y:i,scale:a}}const Az="--active-tab-left",jz="--active-tab-right",Dz="--active-tab-top",kz="--active-tab-bottom",Hz="--active-tab-width",Lz="--active-tab-height";var Cf;const Vz={...Si,activeTabPosition:()=>null,activeTabSize:()=>null},$f=2,Q4=p.forwardRef(function(t,n){const{className:r,render:i,renderBeforeHydration:a=!1,style:l,...s}=t,{getTabElementBySelectedValue:d,orientation:u,tabActivationDirection:f,value:m}=Gl(),{tabsListElement:h,registerIndicatorUpdateListener:x}=J4(),g=wc();p.useEffect(()=>x(g),[x,g]);let b=0,v=0,y=0,w=0,E=0,C=0,$=!1;if(m!=null&&h!=null){const _=d(m);if(_!=null){$=!0;const{width:F,height:O}=bf(_),{width:j,height:V}=bf(h),J=_.getBoundingClientRect(),U=h.getBoundingClientRect(),G=j>0?U.width/j:1,I=V>0?U.height/V:1,A=_z(_,h);b=A.left,y=A.top;const T=(J.left-U.left)/G+h.scrollLeft-h.clientLeft,q=(J.top-U.top)/I+h.scrollTop-h.clientTop,D=Bz(_);Math.abs(T-D.x-b)<=$f&&Math.abs(q-D.y-y)<=$f&&(b=T,y=q),E=F,C=O,v=h.scrollWidth-b-E,w=h.scrollHeight-y-C}}const M=$?{left:b,right:v,top:y,bottom:w}:null,S=$?{width:E,height:C}:null,P=$?{[Az]:`${b}px`,[jz]:`${v}px`,[Dz]:`${y}px`,[kz]:`${w}px`,[Hz]:`${E}px`,[Lz]:`${C}px`}:void 0,N=$&&E>0&&C>0,z=Se("span",t,{state:{orientation:u,activeTabPosition:M,activeTabSize:S,tabActivationDirection:f},ref:n,props:[{role:"presentation",style:P,hidden:!N},s,{suppressHydrationWarning:!0}],stateAttributesMapping:Vz});return m==null?null:c.jsxs(p.Fragment,{children:[z,a&&(Cf||(Cf=c.jsx(Oz,{script:Mz})))]})});process.env.NODE_ENV!=="production"&&(Q4.displayName="TabsIndicator");function _z(e,t){const n=Mf(e),r=Mf(t);let i=n.left-r.left-t.clientLeft,a=n.top-r.top-t.clientTop,l=wn(e);for(;at(l)&&l!==t&&!In(l);)i-=l.scrollLeft,a-=l.scrollTop,l=wn(l);return{left:i,top:a}}function Mf(e){let t=0,n=0,r=e;for(;r!=null;){t+=r.offsetLeft,n+=r.offsetTop;const i=r.offsetParent;i!=null&&(t+=i.clientLeft,n+=i.clientTop),r=i}return{left:t,top:n}}function Bz(e){const t=pt(e).getComputedStyle(e),{x:n,y:r}=zz(e,t);let i=n,a=r;const{translate:l}=t;if(l&&l!=="none"){const s=l.split(" ");i+=Sf(s[0],e.offsetWidth),a+=Sf(s[1],e.offsetHeight)}return{x:i,y:a}}function Sf(e,t){if(!e)return 0;const n=parseFloat(e);return Number.isFinite(n)?e.endsWith("%")?n/100*t:n:0}const Gz="data-index",Uz={...Si,...ln},xd=p.forwardRef(function(t,n){const{className:r,value:i,render:a,keepMounted:l=!1,style:s,...d}=t,{value:u,getTabIdByPanelValue:f,orientation:m,tabActivationDirection:h,registerMountedTabPanel:x}=Gl(),g=ft(),{ref:b,index:v}=Xn(),y=i===u,{mounted:w,transitionStatus:E,setMounted:C}=$n(y),$=!w,M=f(i),S={hidden:$,orientation:m,tabActivationDirection:h,transitionStatus:E},P=p.useRef(null),N=Se("div",t,{state:S,ref:[n,b,P],props:[{"aria-labelledby":M,hidden:$,id:g,role:"tabpanel",tabIndex:y?0:-1,inert:uo(!y),[Gz]:v},d],stateAttributesMapping:Uz});return Yt({open:y,ref:P,onComplete(){y||C(!1)}}),ce(()=>{if(!(g==null||$&&!l))return x(i,g)},[$,l,i,g,x]),l||w?N:null});process.env.NODE_ENV!=="production"&&(xd.displayName="TabsPanel");const bd=p.forwardRef(function(t,n){const{activateOnFocus:r=!1,className:i,loopFocus:a=!0,render:l,style:s,...d}=t,{orientation:u,setTabMap:f,tabActivationDirection:m}=Gl(),[h,x]=p.useState(0),[g,b]=p.useState(null),v=p.useRef(new Set),y=p.useRef(new Set),w=p.useRef(null);ce(()=>{if(typeof ResizeObserver>"u")return;const P=new ResizeObserver(()=>{v.current.forEach(N=>{N()})});return w.current=P,g&&P.observe(g),y.current.forEach(N=>{P.observe(N)}),()=>{P.disconnect(),w.current=null}},[g]);const E=de(P=>(v.current.add(P),()=>{v.current.delete(P)})),C=de(P=>{var N;return y.current.add(P),(N=w.current)==null||N.observe(P),()=>{var R;y.current.delete(P),(R=w.current)==null||R.unobserve(P)}}),$={orientation:u,tabActivationDirection:m},M={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},S=p.useMemo(()=>({activateOnFocus:r,registerIndicatorUpdateListener:E,registerTabResizeObserverElement:C,tabsListElement:g}),[r,E,C,g]);return c.jsx(gd.Provider,{value:S,children:c.jsx(_1,{render:l,className:i,style:s,state:$,refs:[n,b],props:[M,d],stateAttributesMapping:Si,highlightedIndex:h,enableHomeAndEndKeys:!0,loopFocus:a,orientation:u,onHighlightedIndexChange:x,onMapChange:f,disabledIndices:qt})})});process.env.NODE_ENV!=="production"&&(bd.displayName="TabsList");const Wz=hd,Kz=bd,qz=vd,Yz=xd,Xz=Q4,Zz={sm:"h-8 px-2.5 text-xs gap-1.5",md:"h-9 px-3.5 text-sm gap-2",lg:"h-11 px-4 text-base gap-2.5"};function Jz(e,t,n,r="horizontal"){const i="inline-flex items-center justify-center font-medium transition-colors select-none outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary disabled:pointer-events-none disabled:opacity-50 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 cursor-pointer",a=Zz[t],l=n?"flex-1":"";switch(e){case"line":return r==="vertical"?K(i,a,l,"justify-start border-r-2 -mr-px border-transparent text-text-muted hover:text-text hover:border-border","data-[active]:border-primary aria-selected:border-primary data-[active]:text-primary aria-selected:text-primary data-[active]:font-semibold aria-selected:font-semibold"):K(i,a,l,"border-b-2 -mb-px border-transparent text-text-muted hover:text-text hover:border-border","data-[active]:border-primary aria-selected:border-primary data-[active]:text-primary aria-selected:text-primary data-[active]:font-semibold aria-selected:font-semibold");case"pills":return K(i,a,l,"rounded-md border border-transparent text-text-muted hover:text-text hover:bg-surface-muted/60","data-[active]:bg-white aria-selected:bg-white data-[active]:text-primary aria-selected:text-primary data-[active]:font-semibold aria-selected:font-semibold data-[active]:border-border aria-selected:border-border");case"enclosed":return K(i,a,l,"rounded-t-md border-t border-x -mb-px border-transparent text-text-muted hover:text-text hover:bg-surface-muted/40","data-[active]:border-border aria-selected:border-border data-[active]:bg-white aria-selected:bg-white data-[active]:text-primary aria-selected:text-primary data-[active]:font-semibold aria-selected:font-semibold data-[active]:border-b-transparent aria-selected:border-b-transparent");case"soft":default:return K(i,a,l,"rounded-md text-text-muted hover:bg-surface-muted hover:text-text","data-[active]:bg-primary-soft aria-selected:bg-primary-soft data-[active]:text-primary aria-selected:text-primary data-[active]:font-semibold aria-selected:font-semibold")}}function Qz(e,t="horizontal",n){if(t==="vertical")return e==="line"?"flex flex-col border-r border-border gap-1":e==="pills"?"flex flex-col rounded-lg border border-border bg-surface-muted/60 p-1 gap-1":"flex flex-col gap-1";const r=n?"w-full":"";switch(e){case"line":return K("flex items-center border-b border-border gap-2 sm:gap-6",r);case"pills":return K("inline-flex items-center rounded-lg border border-border bg-surface-muted/60 p-1 gap-1",r);case"enclosed":return K("flex items-center border-b border-border gap-1",r);case"soft":default:return K("flex items-center gap-1.5",r)}}function eA({value:e,defaultValue:t,onValueChange:n,variant:r="line",size:i="md",orientation:a="horizontal",fullWidth:l=!1,items:s,children:d,className:u,listClassName:f,panelClassName:m}){const h=t??(s&&s.length>0?s[0].value:void 0),x=e!==void 0?{value:e}:h!==void 0?{defaultValue:h}:{};return c.jsx(hd,{...x,onValueChange:g=>{typeof g=="string"&&(n==null||n(g))},orientation:a,className:K(a==="vertical"?"flex gap-6 items-start":"flex flex-col",u),children:s&&s.length>0?c.jsxs(c.Fragment,{children:[c.jsx(bd,{className:K(Qz(r,a,l),f),children:s.map(g=>{const b=g.startIcon??g.icon;return c.jsxs(vd,{value:g.value,disabled:g.disabled,className:K(Jz(r,i,l,a)),children:[b&&c.jsx("span",{className:"shrink-0 size-4 flex items-center justify-center",children:b}),c.jsx("span",{children:g.label}),g.badge!==void 0&&c.jsx(vc,{variant:g.badgeVariant??"default",size:"sm",pill:!0,className:"ml-1 text-[11px] px-1.5 py-0 h-4 min-w-4",children:g.badge}),g.endIcon&&c.jsx("span",{className:"shrink-0 size-4 flex items-center justify-center",children:g.endIcon})]},g.value)})}),s.map(g=>g.content?c.jsx(xd,{value:g.value,className:K("pt-4 focus-visible:outline-none",m),children:g.content},g.value):null)]}):d})}const yd=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(yd.displayName="ToggleGroupContext");function tA(){return p.useContext(yd)}const Ed=p.forwardRef(function(t,n){const{className:r,defaultPressed:i=!1,disabled:a=!1,form:l,onPressedChange:s,pressed:d,render:u,type:f,value:m,nativeButton:h=!0,style:x,...g}=t,b=ft(m||void 0),v=tA(),y=(v==null?void 0:v.value)??[],w=(a||(v==null?void 0:v.disabled))??!1;process.env.NODE_ENV!=="production"&&p.useEffect(()=>{v&&m===void 0&&v.isValueInitialized&&yr("A `<Toggle>` component rendered in a `<ToggleGroup>` has no explicit `value` prop.","This will cause issues between the Toggle Group and Toggle values.","Provide the `<Toggle>` with a `value` prop matching the `<ToggleGroup>` values prop type.")},[v,m,v==null?void 0:v.isValueInitialized]);const[E,C]=fn({controlled:v?b!==void 0&&y.indexOf(b)>-1:d,default:i,name:"Toggle",state:"pressed"}),{getButtonProps:$,buttonRef:M}=Wt({disabled:w,native:h}),S={disabled:w,pressed:E},P=[M,n],N=[{"aria-pressed":E,onClick(_){var j;const F=!E,O=$e(mt,_.nativeEvent);s==null||s(F,O),!O.isCanceled&&(b&&((j=v==null?void 0:v.setGroupValue)==null||j.call(v,b,F,O)),!O.isCanceled&&C(F))}},g,$],R=Se("button",t,{enabled:!v,state:S,ref:P,props:N}),z=p.useMemo(()=>({disabled:w,focusableWhenDisabled:!1}),[w]);return v?c.jsx(I4,{tag:"button",render:u,className:r,style:x,metadata:z,state:S,refs:P,props:N}):R});process.env.NODE_ENV!=="production"&&(Ed.displayName="Toggle");const e5=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(e5.displayName="ToolbarGroupContext");function nA(){return p.useContext(e5)}const wd=p.forwardRef(function(t,n){const{defaultValue:r,disabled:i=!1,loopFocus:a=!0,onValueChange:l,orientation:s="horizontal",multiple:d=!1,value:u,className:f,render:m,style:h,...x}=t,g=bl(),b=nA(),v=r??qt,y=u!==void 0||r!==void 0,w=((g==null?void 0:g.disabled)??!1)||((b==null?void 0:b.disabled)??!1)||i,[E,C]=fn({controlled:u,default:v,name:"ToggleGroup",state:"value"}),$=de((R,z,_)=>{let F;d?(F=E.slice(),z?F.push(R):F.splice(E.indexOf(R),1)):F=z?[R]:[],l==null||l(F,_),!_.isCanceled&&C(F)}),M={disabled:w,multiple:d,orientation:s},S=p.useMemo(()=>({disabled:w,setGroupValue:$,value:E,isValueInitialized:y}),[w,$,E,y]),P={role:"group"},N=Se("div",t,{enabled:!!g,state:M,ref:n,props:[P,x]});return c.jsx(yd.Provider,{value:S,children:g?N:c.jsx(_1,{render:m,className:f,style:h,state:M,refs:[n],props:[P,x],loopFocus:a,enableHomeAndEndKeys:!0,orientation:s})})});process.env.NODE_ENV!=="production"&&(wd.displayName="ToggleGroup");const rA=Ed,oA=wd;function t5(e="default"){switch(e){case"outline":return K("border border-border bg-white text-text","hover:bg-surface-muted hover:border-text-subtle","data-[pressed]:border-primary data-[pressed]:bg-primary-soft data-[pressed]:text-primary data-[pressed]:font-medium");case"solid":return K("bg-surface-muted text-text","hover:bg-surface-muted/80","data-[pressed]:bg-primary data-[pressed]:text-white data-[pressed]:font-medium");case"ghost":return K("bg-transparent text-text-muted","hover:bg-surface-muted hover:text-text","data-[pressed]:bg-surface-muted data-[pressed]:text-primary data-[pressed]:font-medium");case"default":default:return K("bg-surface-muted text-text","hover:bg-surface-muted/80 hover:text-text","data-[pressed]:bg-primary-soft data-[pressed]:text-primary data-[pressed]:font-medium")}}function n5(e="md"){switch(e){case"sm":return"h-8 px-2.5 text-xs gap-1.5 rounded-md";case"lg":return"h-11 px-4 text-base gap-2.5 rounded-md";case"md":default:return"h-9.5 px-3 text-sm gap-2 rounded-md"}}const Cd=o.forwardRef(({variant:e="default",size:t="md",startIcon:n,endIcon:r,className:i,children:a,...l},s)=>c.jsxs(Ed,{ref:s,className:K("inline-flex items-center justify-center select-none outline-none transition-colors shadow-none font-medium","focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",n5(t),t5(e),i),...l,children:[n&&c.jsx("span",{className:"shrink-0 size-4 flex items-center justify-center",children:n}),a&&c.jsx("span",{children:a}),r&&c.jsx("span",{className:"shrink-0 size-4 flex items-center justify-center",children:r})]}));Cd.displayName="GymatraToggle";const iA=o.forwardRef(({options:e,value:t,defaultValue:n,onValueChange:r,size:i="md",variant:a="default",bordered:l=!0,multiple:s=!1,orientation:d="horizontal",className:u,children:f,...m},h)=>{const x=t!==void 0?Array.isArray(t)?t:[t]:void 0,g=n!==void 0?Array.isArray(n)?n:[n]:void 0,b=y=>{r&&r(s?y:y[0]??"")},v=d==="vertical";return c.jsx(wd,{ref:h,value:x,defaultValue:g,onValueChange:b,multiple:s,orientation:d,className:K("inline-flex select-none",v?"flex-col items-stretch gap-1":"flex-row items-center gap-1",l?"rounded-md border border-border bg-white p-1 shadow-none":"bg-transparent p-0.5",u),...m,children:e&&e.length>0?e.map(y=>c.jsx(Cd,{value:y.value,size:i,variant:a,disabled:y.disabled,"aria-label":y.ariaLabel||(typeof y.label=="string"?y.label:void 0),startIcon:y.startIcon??y.icon,endIcon:y.endIcon,children:y.label},y.value)):f})}),$d=p.createContext(void 0);process.env.NODE_ENV!=="production"&&($d.displayName="TooltipRootContext");function Ni(e){const t=p.useContext($d);if(t===void 0&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.":Ve(72));return t}const aA={...Hn,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,appliedTriggerProps:(e,t)=>t?e.activeTriggerProps:void 0,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class lA extends Cr{constructor(n,r,i){const a=new ui;super(sA(n,a,r,i),cA(a),aA);Be(this,"setOpen",(n,r)=>{W6(this,n,r,{extraState:{openChangeReason:r.reason}})})}cancelPendingOpen(n){this.state.floatingRootContext.dispatchOpenChange(!1,$e(Gn,n))}}function sA(e,t,n,r=!1){return{...tl(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function cA(e){return{popupRef:p.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}const r5=ti(function(t){const{disabled:n=!1,defaultOpen:r=!1,open:i,disableHoverablePopup:a=!1,trackCursorAxis:l="none",actionsRef:s,onOpenChange:d,onOpenChangeComplete:u,handle:f,triggerId:m,defaultTriggerId:h=null,children:x}=t,g=Kc((z,_)=>new lA({open:r,openProp:i,activeTriggerId:h,triggerIdProp:m},z,_));g.useControlledProp("openProp",i),g.useControlledProp("triggerIdProp",m),g.useContextCallback("onOpenChange",d),g.useContextCallback("onOpenChangeComplete",u);const b=g.useState("open"),v=!n&&b,y=g.useState("activeTriggerId"),w=g.useState("mounted"),E=g.useState("payload");g.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:a,disabled:n}),Ja(g,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:C,transitionStatus:$}=Qa(v,g),M=g.useState("isInstantPhase"),S=g.useState("instantType"),P=g.useState("lastOpenChangeReason"),N=p.useRef(null);ce(()=>{b&&n&&g.setOpen(!1,$e(c3))},[b,n,g]),ce(()=>{$==="ending"&&P===mt||$!=="ending"&&M?(S!=="delay"&&(N.current=S),g.set("instantType","delay")):N.current!==null&&(g.set("instantType",N.current),N.current=null)},[$,M,P,S,g]),ce(()=>{v&&y==null&&g.set("payload",void 0)},[g,y,v]),p.useImperativeHandle(s,()=>({unmount:C,close:()=>g.setOpen(!1,$e(oo))}),[C,g]);const R=v||w||!n&&l!=="none";return c.jsxs($d.Provider,{value:g,children:[f&&c.jsx(Ya,{handle:f,store:g}),R&&c.jsx(uA,{store:g,disabled:n,trackCursorAxis:l}),typeof x=="function"?x({payload:E}):x]})});process.env.NODE_ENV!=="production"&&(r5.displayName="TooltipRoot");function uA({store:e,disabled:t,trackCursorAxis:n}){const r=e.useState("floatingRootContext"),i=ao(r,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),a=B6(r,{enabled:!t&&n!=="none",axis:n==="none"?void 0:n}),l=p.useMemo(()=>_t(a.reference,i.reference),[a.reference,i.reference]);return el(e,{activeTriggerProps:l,inactiveTriggerProps:l,popupProps:i.floating??We}),null}const Md=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(Md.displayName="TooltipProviderContext");function dA(){return p.useContext(Md)}const fA=600,Nf="data-base-ui-tooltip-trigger";function Pf(e){const t=Ct(e);return tt(t)?t:null}const o5=ka(function(t,n){const{render:r,className:i,style:a,handle:l,payload:s,disabled:d,delay:u,closeOnClick:f=!0,closeDelay:m,id:h,...x}=t,g=Ni(!0),v=nl(l)??g;if(!v)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.":Ve(82));const y=ft(h),w=v.useState("isTriggerActive",y),E=v.useState("isOpenedByTrigger",y),C=v.useState("floatingRootContext"),$=p.useRef(null),M=m??0,{registerTrigger:S,isMountedByThisTrigger:P}=Za(y,$,v,{payload:s,closeOnClick:f,closeDelay:M}),N=dA(),{activeIdRef:R,delayRef:z,isInstantPhase:_,hasProvider:F}=g6(C,{open:E}),O=Yc(C);v.useSyncedValue("isInstantPhase",_);const j=v.useState("disabled"),V=d??j,J=Nt(V),U=v.useState("trackCursorAxis"),G=v.useState("disableHoverablePopup"),I=p.useRef(!1),A=wt(),T=p.useRef(void 0);function q(){return F&&R.current!=null?0:u??N??fA}function D(Z){const he=$.current;if(!he||!Z)return!1;const re=Bn(Z,`[${Nf}]`);return re!==null&&re!==he&&Re(he,re)}function B(Z){const he=D(Z);return I.current=he,he&&(O.openChangeTimeout.clear(),O.restTimeout.clear(),O.restTimeoutPending=!1,A.clear()),he}const W=rl(C,{enabled:!V,mouseOnly:!0,move:!1,handleClose:!G&&U!=="both"?il():null,restMs:q,delay(){return m==null&&F?{close:Er(z.current,"close")}:{close:M}},triggerElementRef:$,isActiveTrigger:w,isClosing:()=>v.select("transitionStatus")==="ending",shouldOpen(){return!I.current}}),X=O3(C,{enabled:!V}).reference,ee=Z=>{const he=I.current,re=Pf(Z),fe=B(re),ue=$.current,ne=ue&&re&&Re(ue,re);if(fe&&v.select("open")&&v.select("lastOpenChangeReason")===Ot){v.setOpen(!1,$e(Ot,Z));return}if(he&&!fe&&ne&&!J.current&&!v.select("open")&&ue&&Qn(T.current)){const me=()=>{!I.current&&!J.current&&!v.select("open")&&v.setOpen(!0,$e(Ot,Z,ue))},le=q();le===0?(A.clear(),me()):A.start(le,me)}},Q=v.useState("appliedTriggerProps",P||U!=="none");return Se("button",t,{state:{open:E},ref:[n,S,$],props:[W,X,Q,{onMouseOver(Z){ee(Z.nativeEvent)},onFocus(Z){D(Pf(Z.nativeEvent))&&Z.preventBaseUIHandler()},onMouseLeave(){I.current=!1,A.clear(),T.current=void 0},onPointerEnter(Z){T.current=Z.pointerType},onPointerDown(Z){T.current=Z.pointerType,v.set("closeOnClick",f),f&&!v.select("open")&&v.cancelPendingOpen(Z.nativeEvent)},onClick(Z){f&&!v.select("open")&&v.cancelPendingOpen(Z.nativeEvent)},id:y,[Ps]:V?"":void 0,[Nf]:V?void 0:""},x],stateAttributesMapping:ro})});process.env.NODE_ENV!=="production"&&(o5.displayName="TooltipTrigger");const Sd=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(Sd.displayName="TooltipPortalContext");function mA(){const e=p.useContext(Sd);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Tooltip.Portal> is missing.":Ve(70));return e}const i5=p.forwardRef(function(t,n){const{children:r,container:i,className:a,render:l,style:s,...d}=t,{node:u,subtree:f}=$3({container:i,ref:n,componentProps:t,elementProps:d});return!f&&!u?null:c.jsxs(p.Fragment,{children:[f,u&&on.createPortal(r,u)]})});process.env.NODE_ENV!=="production"&&(i5.displayName="FloatingPortalLite");const a5=p.forwardRef(function(t,n){const{keepMounted:r=!1,...i}=t;return Ni().useState("mounted")||r?c.jsx(Sd.Provider,{value:r,children:c.jsx(i5,{ref:n,...i})}):null});process.env.NODE_ENV!=="production"&&(a5.displayName="TooltipPortal");const Nd=p.createContext(void 0);process.env.NODE_ENV!=="production"&&(Nd.displayName="TooltipPositionerContext");function l5(){const e=p.useContext(Nd);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.":Ve(71));return e}const s5=p.forwardRef(function(t,n){const{render:r,className:i,anchor:a,positionMethod:l="absolute",side:s="top",align:d="center",sideOffset:u=0,alignOffset:f=0,collisionBoundary:m="clipping-ancestors",collisionPadding:h=5,arrowPadding:x=5,sticky:g=!1,disableAnchorTracking:b=!1,collisionAvoidance:v=kc,style:y,...w}=t,E=Ni(),C=mA(),$=E.useState("open"),M=E.useState("mounted"),S=E.useState("trackCursorAxis"),P=E.useState("disableHoverablePopup"),N=E.useState("floatingRootContext"),R=E.useState("instantType"),z=E.useState("transitionStatus"),_=E.useState("adaptiveOrigin"),F=pi({anchor:a,positionMethod:l,floatingRootContext:N,mounted:M,side:s,sideOffset:u,align:d,alignOffset:f,collisionBoundary:m,collisionPadding:h,sticky:g,arrowPadding:x,disableAnchorTracking:b,keepMounted:C,collisionAvoidance:v,adaptiveOrigin:_}),O=p.useMemo(()=>({open:$,side:F.side,align:F.align,anchorHidden:F.anchorHidden,instant:S!=="none"?"tracking-cursor":R}),[$,F.side,F.align,F.anchorHidden,S,R]),j=hi(t,O,{styles:F.positionerStyles,transitionStatus:z,props:w,refs:[n,E.useStateSetter("positionerElement")],hidden:!M,inert:!$||S==="both"||P});return c.jsx(Nd.Provider,{value:F,children:j})});process.env.NODE_ENV!=="production"&&(s5.displayName="TooltipPositioner");const c5=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,s=Ni(),{side:d,align:u}=l5(),f=s.useState("open"),m=s.useState("instantType"),h=s.useState("transitionStatus"),x=s.useState("popupProps"),g=s.useState("floatingRootContext"),b=s.useState("disabled"),v=s.useState("closeDelay");Yt({open:f,ref:s.context.popupRef,onComplete(){var C,$;f&&(($=(C=s.context).onOpenChangeComplete)==null||$.call(C,!0))}}),Xc(g,{enabled:!b,closeDelay:v});const y=s.useStateSetter("popupElement");return Se("div",t,{state:{open:f,side:d,align:u,instant:m,transitionStatus:h},ref:[n,s.context.popupRef,y],props:[lo,x,mo(h),l],stateAttributesMapping:oi})});process.env.NODE_ENV!=="production"&&(c5.displayName="TooltipPopup");const u5=p.forwardRef(function(t,n){const{render:r,className:i,style:a,...l}=t,s=Ni(),{arrowRef:d,side:u,align:f,arrowUncentered:m,arrowStyles:h}=l5(),x=s.useState("open"),g=s.useState("instantType");return Se("div",t,{state:{open:x,side:u,align:f,uncentered:m,instant:g},ref:[n,d],props:[{style:h,"aria-hidden":!0},l],stateAttributesMapping:ar})});process.env.NODE_ENV!=="production"&&(u5.displayName="TooltipArrow");const d5=function(t){const{delay:n,closeDelay:r,timeout:i=400}=t,a=p.useMemo(()=>({open:n,close:r}),[n,r]);return c.jsx(Md.Provider,{value:n,children:c.jsx(h6,{delay:a,timeoutMs:i,children:t.children})})};process.env.NODE_ENV!=="production"&&(d5.displayName="TooltipProvider");function f5({content:e,children:t,side:n="top",align:r="center",sideOffset:i=8,delay:a=150,showArrow:l=!0,open:s,defaultOpen:d,onOpenChange:u,className:f,variant:m="dark"}){const h=m==="dark";return c.jsx(d5,{delay:a,children:c.jsxs(r5,{open:s,defaultOpen:d,onOpenChange:u,children:[c.jsx(o5,{render:t}),c.jsx(a5,{children:c.jsx(s5,{side:n,align:r,sideOffset:i,className:"z-50 outline-none",children:c.jsxs(c5,{className:K("z-50 rounded-md px-2.5 py-1.5 text-xs font-medium leading-none outline-none select-none","transition-opacity duration-150 data-[starting-style]:opacity-0 data-[ending-style]:opacity-0",h?"bg-text text-white shadow-sm":"bg-white text-text border border-border shadow-sm",f),children:[l&&c.jsx(u5,{className:K("size-2 rotate-45",h?"bg-text":"bg-white border-t border-l border-border","data-[side=top]:-bottom-1 data-[side=bottom]:-top-1 data-[side=left]:-right-1 data-[side=right]:-left-1")}),e]})})})]})})}f5.displayName="GymatraTooltip";exports.BaseUICheckbox=yv;exports.BaseUIField=Zg;exports.BaseUIForm=Uu;exports.BaseUIInput=Wu;exports.BaseUISelect=mv;exports.BaseUISwitch=$v;exports.DRAWER_SIZES=aa;exports.GymatraAutocomplete=sT;exports.GymatraAvatar=Qo;exports.GymatraAvatarGroup=Gf;exports.GymatraAvatarUpload=CT;exports.GymatraAvatarUploadField=gT;exports.GymatraBadge=vc;exports.GymatraBreadcrumb=Uf;exports.GymatraBreadcrumbEllipsis=Zf;exports.GymatraBreadcrumbItem=Kf;exports.GymatraBreadcrumbLink=qf;exports.GymatraBreadcrumbList=Wf;exports.GymatraBreadcrumbPage=Yf;exports.GymatraBreadcrumbSeparator=Xf;exports.GymatraButton=fa;exports.GymatraCheckbox=PT;exports.GymatraCheckboxField=cT;exports.GymatraCircularProgress=fz;exports.GymatraColorPicker=xT;exports.GymatraColorPickerField=a4;exports.GymatraCombobox=dg;exports.GymatraComboboxChip=lg;exports.GymatraComboboxChipRemove=sg;exports.GymatraComboboxChips=ag;exports.GymatraComboboxClear=ig;exports.GymatraComboboxEmpty=Tu;exports.GymatraComboboxGroup=rg;exports.GymatraComboboxGroupLabel=Ou;exports.GymatraComboboxInput=Cm;exports.GymatraComboboxItem=wa;exports.GymatraComboboxList=ng;exports.GymatraComboboxPopup=Fu;exports.GymatraComboboxPortal=eg;exports.GymatraComboboxPositioner=tg;exports.GymatraComboboxRoot=J8;exports.GymatraComboboxSeparator=og;exports.GymatraComboboxTrigger=Q8;exports.GymatraCurrencyInput=Qp;exports.GymatraCustomSelect=aT;exports.GymatraDataTable=Z4;exports.GymatraDateInput=t4;exports.GymatraDateRangeInput=iT;exports.GymatraDateTimeInput=r4;exports.GymatraDialog=po;exports.GymatraDialogBackdrop=Rg;exports.GymatraDialogClose=zg;exports.GymatraDialogComponent=Mm;exports.GymatraDialogContent=Fg;exports.GymatraDialogDescription=Og;exports.GymatraDialogPopup=Ig;exports.GymatraDialogPortal=Pg;exports.GymatraDialogRoot=Sg;exports.GymatraDialogTitle=Tg;exports.GymatraDialogTrigger=Ng;exports.GymatraDrawerPanel=kg;exports.GymatraDrawerProvider=Nm;exports.GymatraEmailInput=qp;exports.GymatraField=MT;exports.GymatraFieldContainer=$t;exports.GymatraFileUploadField=pT;exports.GymatraFilterBar=Fm;exports.GymatraFilterBarChip=Im;exports.GymatraFilterBarSearch=Rm;exports.GymatraFilterBarSelect=Bg;exports.GymatraFilterSelect=Vu;exports.GymatraFloatingField=$i;exports.GymatraFloatingSelect=c4;exports.GymatraFloatingTextarea=s4;exports.GymatraForm=$T;exports.GymatraImageUploadField=hT;exports.GymatraInput=u4;exports.GymatraMenu=uO;exports.GymatraMenuCheckboxItem=Hl;exports.GymatraMenuGroup=iO;exports.GymatraMenuGroupLabel=kl;exports.GymatraMenuItem=jl;exports.GymatraMenuPopup=xo;exports.GymatraMenuPortal=rO;exports.GymatraMenuPositioner=oO;exports.GymatraMenuRadioGroup=aO;exports.GymatraMenuRadioItem=Ll;exports.GymatraMenuRoot=tO;exports.GymatraMenuSeparator=Dl;exports.GymatraMenuSubmenuRoot=lO;exports.GymatraMenuSubmenuTrigger=Vl;exports.GymatraMenuTrigger=nO;exports.GymatraMenubar=A4;exports.GymatraMenubarCheckboxItem=PO;exports.GymatraMenubarGroup=EO;exports.GymatraMenubarGroupLabel=NO;exports.GymatraMenubarItem=MO;exports.GymatraMenubarMenu=xO;exports.GymatraMenubarPopup=$O;exports.GymatraMenubarPortal=bO;exports.GymatraMenubarPositioner=yO;exports.GymatraMenubarRadioGroup=wO;exports.GymatraMenubarRadioItem=RO;exports.GymatraMenubarRoot=vO;exports.GymatraMenubarSeparator=SO;exports.GymatraMenubarSubmenuRoot=CO;exports.GymatraMenubarSubmenuTrigger=IO;exports.GymatraMenubarTrigger=G1;exports.GymatraMultiSelect=lT;exports.GymatraNumberInput=Ci;exports.GymatraNumericField=oT;exports.GymatraOtpField=ET;exports.GymatraOtpInput=wT;exports.GymatraPagination=U1;exports.GymatraPasswordInput=Yp;exports.GymatraPercentageInput=e4;exports.GymatraPhoneInput=Zp;exports.GymatraPopover=XO;exports.GymatraPopoverArrow=B4;exports.GymatraPopoverClose=nd;exports.GymatraPopoverDescription=td;exports.GymatraPopoverPopup=Q1;exports.GymatraPopoverPortal=KO;exports.GymatraPopoverPositioner=qO;exports.GymatraPopoverRoot=UO;exports.GymatraPopoverTitle=ed;exports.GymatraPopoverTrigger=WO;exports.GymatraProgress=uz;exports.GymatraProgressIndicator=oz;exports.GymatraProgressLabel=iz;exports.GymatraProgressRoot=nz;exports.GymatraProgressTrack=rz;exports.GymatraProgressValue=az;exports.GymatraRadioGroupField=uT;exports.GymatraRangeField=yT;exports.GymatraRichTextEditor=mT;exports.GymatraSearchInput=Xp;exports.GymatraSelect=NT;exports.GymatraSelectField=o4;exports.GymatraSeparator=U4;exports.GymatraSeparatorRoot=mz;exports.GymatraSliderField=bT;exports.GymatraStep=q4;exports.GymatraStepConnector=gz;exports.GymatraStepContent=vz;exports.GymatraStepIndicator=Jo;exports.GymatraStepper=hz;exports.GymatraSwitch=Y4;exports.GymatraSwitchField=dT;exports.GymatraSwitchRoot=xz;exports.GymatraSwitchThumb=bz;exports.GymatraTab=qz;exports.GymatraTable=X4;exports.GymatraTableBody=cd;exports.GymatraTableCell=To;exports.GymatraTableCheckbox=Aa;exports.GymatraTableHead=Fo;exports.GymatraTableHeader=sd;exports.GymatraTableRow=ud;exports.GymatraTableSkeleton=md;exports.GymatraTableSkeletonRow=fd;exports.GymatraTableSortHead=dd;exports.GymatraTabs=eA;exports.GymatraTabsIndicator=Xz;exports.GymatraTabsList=Kz;exports.GymatraTabsPanel=Yz;exports.GymatraTabsRoot=Wz;exports.GymatraTextField=l4;exports.GymatraTextInput=ho;exports.GymatraTextarea=ST;exports.GymatraTextareaField=i4;exports.GymatraTimeInput=n4;exports.GymatraToggle=Cd;exports.GymatraToggleField=fT;exports.GymatraToggleGroup=iA;exports.GymatraToggleGroupRoot=oA;exports.GymatraToggleRoot=rA;exports.GymatraTooltip=f5;exports.GymatraUrlInput=Jp;exports.SidebarContext=jg;exports.SidebarProvider=Dg;exports.cn=K;exports.formatPhoneNumber=uw;exports.formatPhoneNumberIntl=dw;exports.getDrawerWidth=la;exports.getToggleSizeClasses=n5;exports.getToggleVariantClasses=t5;exports.isValidPhoneNumber=Kp;exports.renderMenuItems=_l;exports.useGymatraDrawer=Sm;exports.useGymatraStepper=W4;exports.useSidebar=Ag;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),Y=require("@base-ui/react/accordion"),p=require("react"),xe=require("@base-ui/react/avatar"),Ue=require("@base-ui/react/checkbox"),F=require("@base-ui/react/combobox"),W=require("@base-ui/react/dialog"),U=require("@base-ui/react/field"),kt=require("@base-ui/react/form"),Gt=require("@base-ui/react/input"),_=require("@base-ui/react/select"),ve=require("@base-ui/react/switch"),R=require("@base-ui/react/menu"),Ct=require("@base-ui/react/menubar"),H=require("@base-ui/react/popover"),X=require("@base-ui/react/progress"),St=require("@base-ui/react/separator"),ee=require("@base-ui/react/tabs"),Pt=require("@base-ui/react/toggle"),zt=require("@base-ui/react/toggle-group"),se=require("@base-ui/react/tooltip"),Cr=require("react-phone-number-input/input"),ne=require("react-phone-number-input"),ht=require("react-phone-number-input/flags"),yt=require("react-phone-number-input/locale/fr.json");function l(...t){return t.filter(Boolean).join(" ")}const Sr={default:"divide-y divide-border rounded-lg border border-border bg-white",separated:"flex flex-col gap-2",flush:"divide-y divide-border"},Pr={default:"",separated:"rounded-lg border border-border bg-white",flush:""},gt={default:"px-4",separated:"px-4",flush:"px-0"};function zr(){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"size-4 shrink-0 text-text-muted transition-transform duration-200 group-data-[panel-open]:rotate-180 motion-reduce:transition-none",children:e.jsx("path",{d:"m6 9 6 6 6-6"})})}function Ir({items:t,multiple:r=!1,value:s,defaultValue:n,onValueChange:a,variant:o="default",disabled:i=!1,headingLevel:d=3,className:m}){const u=`h${d}`;return e.jsx(Y.Accordion.Root,{multiple:r,value:s,defaultValue:n,onValueChange:a?c=>a(c):void 0,disabled:i,className:l("w-full",Sr[o],m),children:t.map(c=>e.jsxs(Y.Accordion.Item,{value:c.value,disabled:c.disabled,className:Pr[o],children:[e.jsx(Y.Accordion.Header,{render:e.jsx(u,{}),className:"m-0",children:e.jsxs(Y.Accordion.Trigger,{className:l("group flex w-full cursor-pointer items-center gap-3 py-3.5 text-start outline-none transition-colors",gt[o],o!=="flush"&&"hover:bg-surface-muted/50",o==="separated"&&"rounded-lg data-[panel-open]:rounded-b-none","focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 data-[disabled]:hover:bg-transparent"),children:[c.icon&&e.jsx("span",{"aria-hidden":"true",className:"flex shrink-0 text-text-muted group-data-[panel-open]:text-primary [&>svg]:size-4",children:c.icon}),e.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[e.jsx("span",{className:"text-sm font-medium text-text",children:c.title}),c.description&&e.jsx("span",{className:"text-xs font-normal text-text-muted",children:c.description})]}),c.meta&&e.jsx("span",{className:"shrink-0",children:c.meta}),e.jsx(zr,{})]})}),e.jsx(Y.Accordion.Panel,{className:l("h-[var(--accordion-panel-height)] overflow-hidden transition-[height] duration-200 ease-out motion-reduce:transition-none","data-[starting-style]:h-0 data-[ending-style]:h-0"),children:e.jsx("div",{className:l("pb-4 text-sm leading-6 text-text-muted",gt[o],!!c.icon&&(o==="flush"?"ps-7":"ps-11")),children:c.content})})]},c.value))})}const Mr=Y.Accordion.Root,Tr=Y.Accordion.Item,Rr=Y.Accordion.Header,Lr=Y.Accordion.Trigger,Br=Y.Accordion.Panel,It=p.createContext(null),He={xs:{root:"size-6 text-xs",status:"size-1.5 ring-1"},sm:{root:"size-8 text-xs",status:"size-2 ring-1.5"},md:{root:"size-10 text-sm",status:"size-2.5 ring-2"},lg:{root:"size-12 text-base",status:"size-3 ring-2"},xl:{root:"size-16 text-lg",status:"size-3.5 ring-2"},"2xl":{root:"size-20 text-2xl",status:"size-4 ring-2"}},_e={circle:"rounded-full",square:"rounded-lg"},jt={primary:"bg-primary-soft text-primary",secondary:"bg-surface-muted text-text",success:"bg-success-soft text-success",warning:"bg-warning-soft text-warning",danger:"bg-danger-soft text-danger",info:"bg-info-soft text-info",neutral:"bg-surface-muted text-text-muted"},Ar={online:"bg-success",busy:"bg-danger",away:"bg-warning",offline:"bg-text-subtle"};function Dr(t){if(!t)return"";const r=t.trim().split(/\s+/).filter(Boolean);return r.length===0?"":r.length===1?r[0].slice(0,2).toUpperCase():(r[0][0]+r[r.length-1][0]).toUpperCase()}function Fr({className:t}){return e.jsxs("svg",{className:l("size-1/2 opacity-65",t),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[e.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),e.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function Ne({src:t,alt:r="Avatar",name:s,fallback:n,size:a,shape:o,variant:i="primary",status:d,statusPosition:m="bottom-right",bordered:u=!1,delayMs:c=0,className:f,children:b,...y}){const x=p.useContext(It),g=a??(x==null?void 0:x.size)??"md",h=o??(x==null?void 0:x.shape)??"circle",v=He[g]??He.md,k=_e[h]??_e.circle,j=jt[i]??jt.primary,N=s?Dr(s):void 0,P=n??N??e.jsx(Fr,{});return e.jsxs("span",{className:l("relative inline-flex shrink-0 select-none",f),...y,children:[e.jsx(xe.Avatar.Root,{className:l("flex items-center justify-center overflow-hidden font-medium transition-all",v.root,k,j,u&&"border border-border",x&&"ring-2 ring-white"),children:b||e.jsxs(e.Fragment,{children:[t&&e.jsx(xe.Avatar.Image,{src:t,alt:r||s||"Avatar",className:"size-full object-cover"}),e.jsx(xe.Avatar.Fallback,{delay:c,className:"flex size-full items-center justify-center uppercase tracking-wider",children:P})]})}),d&&e.jsx("span",{className:l("absolute rounded-full ring-white",v.status,Ar[d],m==="bottom-right"&&(h==="circle"?"bottom-0 end-0 translate-x-[1px] translate-y-[1px]":"bottom-[-2px] end-[-2px]"),m==="top-right"&&(h==="circle"?"top-0 end-0 translate-x-[1px] -translate-y-[1px]":"top-[-2px] end-[-2px]")),"aria-hidden":"true"})]})}const Er={xs:"-space-x-1.5",sm:"-space-x-2",md:"-space-x-2.5",lg:"-space-x-3",xl:"-space-x-4","2xl":"-space-x-5"};function Mt({children:t,max:r,size:s="md",shape:n="circle",spacing:a="tight",className:o,...i}){const d=p.Children.toArray(t).filter(p.isValidElement),m=d.length,u=r!==void 0&&r>=0&&m>r,c=u?d.slice(0,r):d,f=u?m-r:0,b=a==="tight"?Er[s]:a==="normal"?"-space-x-1":"space-x-1";return e.jsx(It.Provider,{value:{size:s,shape:n},children:e.jsxs("div",{role:"group","aria-label":`Groupe de ${m} avatars`,className:l("inline-flex items-center",b,o),...i,children:[c.map(y=>e.jsx("span",{className:"relative inline-flex hover:z-10",children:y},y.key)),f>0&&e.jsxs("span",{role:"img","aria-label":`${f} autre${f>1?"s":""}`,title:`${f} autre${f>1?"s":""}`,className:l("relative inline-flex shrink-0 select-none items-center justify-center bg-surface-muted font-medium text-text-muted ring-2 ring-white",He[s].root,_e[n]),children:["+",f]})]})})}Ne.Root=xe.Avatar.Root;Ne.Image=xe.Avatar.Image;Ne.Fallback=xe.Avatar.Fallback;Ne.Group=Mt;const Wr={default:"bg-surface-muted text-text-muted",primary:"bg-primary-soft text-primary",secondary:"bg-surface text-text",outline:"bg-transparent text-text border border-border",success:"bg-success-soft text-success",warning:"bg-warning-soft text-warning",danger:"bg-danger-soft text-danger",info:"bg-info-soft text-info"},Or={sm:"h-5 px-2 text-xs gap-1",md:"h-6 px-2.5 text-xs gap-1.5",lg:"h-7 px-3 text-xs font-medium gap-1.5"},Qe=p.forwardRef(({variant:t="default",size:r="md",pill:s=!0,dot:n=!1,check:a=!1,circle:o=!1,startIcon:i,endIcon:d,className:m,children:u,...c},f)=>e.jsxs("span",{ref:f,className:l("inline-flex items-center justify-center font-medium border-0 select-none transition-colors",s?"rounded-full":"rounded-md",Wr[t],Or[r],m),...c,children:[o||n?e.jsx("span",{className:l("rounded-full border-2 border-current shrink-0",r==="sm"?"size-2":"size-2.5"),"aria-hidden":"true"}):a?e.jsx("svg",{className:l("shrink-0",r==="sm"?"size-3":r==="lg"?"size-3.5":"size-3"),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})}):null,i&&e.jsx("span",{className:"inline-flex shrink-0 items-center justify-center","aria-hidden":"true",children:i}),u&&e.jsx("span",{className:"truncate",children:u}),d&&e.jsx("span",{className:"inline-flex shrink-0 items-center justify-center","aria-hidden":"true",children:d})]}));Qe.displayName="GymatraBadge";function Tt({items:t,separator:r="/",className:s,...n}){return e.jsx("nav",{"aria-label":"Breadcrumb",className:l("inline-block",s),...n,children:e.jsx("ol",{className:"flex flex-wrap items-center gap-1.5 text-sm text-text-muted m-0 p-0 list-none",children:t.map((a,o)=>{const i=o===t.length-1;return e.jsxs("li",{className:"inline-flex items-center gap-1.5",children:[!i&&a.href?e.jsxs("a",{href:a.href,onClick:a.onClick,className:"inline-flex items-center gap-1.5 rounded px-0.5 text-sm text-text-muted transition-colors hover:text-text outline-none focus-visible:outline-2 focus-visible:outline-primary",children:[a.icon,e.jsx("span",{children:a.label})]}):e.jsxs("span",{className:l("inline-flex items-center gap-1.5 px-0.5 text-sm",i?"font-medium text-text":"text-text-muted"),"aria-current":i?"page":void 0,children:[a.icon,e.jsx("span",{children:a.label})]}),!i&&e.jsx("span",{className:"text-xs text-text-subtle select-none px-0.5","aria-hidden":"true",children:r})]},o)})})})}Tt.displayName="GymatraBreadcrumb";function Rt({className:t,...r}){return e.jsx("ol",{className:l("flex flex-wrap items-center gap-1.5 text-sm text-text-muted m-0 p-0 list-none",t),...r})}Rt.displayName="GymatraBreadcrumbList";function Lt({className:t,...r}){return e.jsx("li",{className:l("inline-flex items-center gap-1.5",t),...r})}Lt.displayName="GymatraBreadcrumbItem";function Bt({className:t,...r}){return e.jsx("a",{className:l("inline-flex items-center gap-1.5 rounded px-0.5 text-sm text-text-muted transition-colors hover:text-text outline-none focus-visible:outline-2 focus-visible:outline-primary",t),...r})}Bt.displayName="GymatraBreadcrumbLink";function At({className:t,...r}){return e.jsx("span",{"aria-current":"page",className:l("inline-flex items-center gap-1.5 px-0.5 text-sm font-medium text-text",t),...r})}At.displayName="GymatraBreadcrumbPage";function Dt({children:t="/",className:r,...s}){return e.jsx("span",{"aria-hidden":"true",className:l("text-xs text-text-subtle select-none px-0.5",r),...s,children:t})}Dt.displayName="GymatraBreadcrumbSeparator";function Ft({className:t,...r}){return e.jsx("span",{"aria-hidden":"true",className:l("flex size-6 items-center justify-center text-text-muted select-none text-xs font-medium",t),...r,children:"…"})}Ft.displayName="GymatraBreadcrumbEllipsis";const vt={primary:"bg-primary text-white hover:bg-primary-hover active:bg-primary-active focus-visible:outline-primary shadow-none border-0",secondary:"bg-surface-muted text-text hover:bg-border/60 active:bg-border focus-visible:outline-primary shadow-none border-0",outline:"bg-transparent text-text border border-border hover:bg-surface-muted hover:text-text active:bg-border/40 focus-visible:outline-primary shadow-none",soft:"bg-primary-soft text-primary hover:bg-primary-soft/70 active:bg-primary/15 focus-visible:outline-primary shadow-none border-0",ghost:"bg-transparent text-text-muted hover:text-text hover:bg-surface-muted active:bg-border/40 focus-visible:outline-primary shadow-none border-0",danger:"bg-danger text-white hover:bg-danger/90 active:bg-danger/80 focus-visible:outline-danger shadow-none border-0",success:"bg-success text-white hover:bg-success/90 active:bg-success/80 focus-visible:outline-success shadow-none border-0",warning:"bg-warning text-white hover:bg-warning/90 active:bg-warning/80 focus-visible:outline-warning shadow-none border-0",info:"bg-info text-white hover:bg-info/90 active:bg-info/80 focus-visible:outline-info shadow-none border-0","outline-primary":"bg-transparent text-primary border border-primary/40 hover:bg-primary-soft hover:border-primary active:bg-primary/15 focus-visible:outline-primary shadow-none","outline-danger":"bg-transparent text-danger border border-danger/40 hover:bg-danger-soft hover:border-danger active:bg-danger/15 focus-visible:outline-danger shadow-none","outline-warning":"bg-transparent text-warning border border-warning/40 hover:bg-warning-soft hover:border-warning active:bg-warning/15 focus-visible:outline-warning shadow-none","outline-success":"bg-transparent text-success border border-success/40 hover:bg-success-soft hover:border-success active:bg-success/15 focus-visible:outline-success shadow-none","outline-info":"bg-transparent text-info border border-info/40 hover:bg-info-soft hover:border-info active:bg-info/15 focus-visible:outline-info shadow-none"},$r={xs:"h-7 px-2.5 text-xs gap-1.5",sm:"h-8 px-3 text-sm gap-1.5",md:"h-10 px-4 text-sm gap-2",lg:"h-11 px-5 text-sm gap-2.5",xl:"h-12 px-6 text-base gap-3",icon:"size-9 p-0 justify-center text-sm gap-0"},Vr={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},qr={xs:"size-3.5",sm:"size-4",md:"size-4",lg:"size-4.5",xl:"size-5",icon:"size-4.5"};function Ur(t,r){if(r&&r!=="default"){if(t==="outline")return`outline-${r}`;if(t==="primary")return r}return t}const Te=p.forwardRef(({variant:t="primary",color:r,size:s="md",weight:n="medium",pill:a=!1,fullWidth:o=!1,startIcon:i,endIcon:d,loading:m=!1,loadingText:u,disabled:c,children:f,className:b,type:y="button",...x},g)=>{const h=c||m,v=qr[s],k=Ur(t,r);return e.jsx("button",{ref:g,type:y,disabled:h,"aria-busy":m?!0:void 0,className:l("inline-flex cursor-pointer items-center justify-center transition-all duration-150 select-none",a?"rounded-full":s==="xs"?"rounded":s==="xl"?"rounded-lg":"rounded-md",o?"w-full":"",Vr[n],"focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50",vt[k]||vt.primary,$r[s],b),...x,children:m?e.jsxs(e.Fragment,{children:[e.jsxs("svg",{className:l("animate-spin shrink-0",v),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),u?e.jsx("span",{children:u}):f?e.jsx("span",{children:f}):null]}):e.jsxs(e.Fragment,{children:[i&&e.jsx("span",{className:l("inline-flex shrink-0 items-center justify-center",v),"aria-hidden":"true",children:i}),f&&e.jsx("span",{children:f}),d&&e.jsx("span",{className:l("inline-flex shrink-0 items-center justify-center",v),"aria-hidden":"true",children:d})]})})});Te.displayName="GymatraButton";const Hr={sm:{box:"size-3.5",icon:"size-2.5",offset:"mt-[3px]"},md:{box:"size-4",icon:"size-3",offset:"mt-0.5"},lg:{box:"size-5",icon:"size-3.5",offset:"mt-0"}};function _r({className:t}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})})}function Kr({className:t}){return e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.5",strokeLinecap:"round","aria-hidden":"true",className:t,children:e.jsx("path",{d:"M5 12h14"})})}const Ze=p.forwardRef(({label:t,description:r,size:s="md",invalid:n=!1,indeterminate:a=!1,disabled:o=!1,onChange:i,onCheckedChange:d,className:m,wrapperClassName:u,...c},f)=>{const b=Hr[s],y=e.jsx(Ue.Checkbox.Root,{ref:f,indeterminate:a,disabled:o,"aria-invalid":n||void 0,onCheckedChange:(x,g)=>{d==null||d(x,g),i==null||i(x)},className:l("inline-flex shrink-0 cursor-pointer items-center justify-center rounded-sm border border-border-strong bg-white text-white outline-none transition-colors motion-reduce:transition-none","hover:border-text-subtle","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary","data-[checked]:border-primary data-[checked]:bg-primary data-[indeterminate]:border-primary data-[indeterminate]:bg-primary","aria-[invalid=true]:border-danger aria-[invalid=true]:focus-visible:outline-danger","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 data-[disabled]:hover:border-border-strong",b.box,!!(t||r)&&b.offset,m),...c,children:e.jsx(Ue.Checkbox.Indicator,{className:"flex items-center justify-center",keepMounted:!1,children:a?e.jsx(Kr,{className:b.icon}):e.jsx(_r,{className:b.icon})})});return!t&&!r?y:e.jsxs("label",{className:l("inline-flex select-none items-start gap-2.5",o?"cursor-not-allowed":"cursor-pointer",u),children:[y,e.jsxs("span",{className:"flex min-w-0 flex-col",children:[t&&e.jsx("span",{className:l("text-sm font-medium leading-5",o?"text-text-subtle":"text-text"),children:t}),r&&e.jsx("span",{className:"text-xs leading-normal text-text-muted",children:r})]})]})});Ze.displayName="GymatraCheckbox";const Qr=F.Combobox.Root,Zr=F.Combobox.Trigger,Jr=F.Combobox.Portal,Yr=F.Combobox.Positioner,Xr=F.Combobox.List,es=F.Combobox.Group,ts=F.Combobox.Separator,rs=F.Combobox.Clear,ss=F.Combobox.Chips,ns=F.Combobox.Chip,as=F.Combobox.ChipRemove,Et=p.forwardRef(({className:t,startIcon:r,error:s,disabled:n,...a},o)=>e.jsxs("div",{className:l("relative flex items-center w-full h-10 rounded-md border bg-white transition-colors",n?"border-border bg-surface-muted opacity-50 cursor-not-allowed":s?"border-danger focus-within:border-danger focus-within:ring-1 focus-within:ring-danger":"border-border hover:border-text-subtle focus-within:border-primary focus-within:ring-1 focus-within:ring-primary"),children:[r&&e.jsx("span",{className:"shrink-0 pl-3 text-text-subtle pointer-events-none flex items-center justify-center",children:r}),e.jsx(F.Combobox.Input,{ref:o,disabled:n,className:l("h-full w-full bg-transparent px-3.5 py-2 text-sm text-text placeholder:text-text-subtle outline-none border-0 ring-0 shadow-none focus:outline-none focus:ring-0 focus:border-0",t),...a}),e.jsx("span",{className:"shrink-0 pr-3 text-text-subtle pointer-events-none flex items-center justify-center",children:e.jsx("svg",{className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m6 9 6 6 6-6"})})})]}));Et.displayName="GymatraComboboxInput";const Je=p.forwardRef(({className:t,children:r,...s},n)=>e.jsx(F.Combobox.Popup,{ref:n,className:l("z-50 min-w-[var(--anchor-width)] max-h-64 overflow-y-auto rounded-lg border border-border bg-white p-1 text-sm text-text outline-none shadow-none",t),...s,children:r}));Je.displayName="GymatraComboboxPopup";function os({className:t="size-3.5"}){return e.jsx("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}const Re=p.forwardRef(({className:t,children:r,icon:s,description:n,...a},o)=>e.jsxs(F.Combobox.Item,{ref:o,className:l("group relative flex w-full cursor-pointer select-none items-center justify-between gap-2 rounded-md px-2.5 py-1.5 text-sm text-text outline-none transition-colors","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[highlighted]:bg-surface-muted data-[highlighted]:text-text","data-[selected]:font-medium data-[selected]:text-primary",t),...a,children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[s&&e.jsx("span",{className:"shrink-0 size-4 text-text-muted flex items-center justify-center",children:s}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"truncate",children:r}),n&&e.jsx("div",{className:"text-xs text-text-muted truncate",children:n})]})]}),e.jsx(F.Combobox.ItemIndicator,{className:"shrink-0 size-4 flex items-center justify-center text-primary",children:e.jsx(os,{})})]}));Re.displayName="GymatraComboboxItem";const Ye=p.forwardRef(({className:t,children:r,...s},n)=>e.jsx(F.Combobox.Empty,{ref:n,className:l("px-3 py-2 text-sm text-text-muted text-center",t),...s,children:r??"Aucun résultat trouvé"}));Ye.displayName="GymatraComboboxEmpty";const Xe=p.forwardRef(({className:t,...r},s)=>e.jsx(F.Combobox.GroupLabel,{ref:s,className:l("px-2.5 py-1 text-xs font-semibold uppercase tracking-wider text-text-muted select-none",t),...r}));Xe.displayName="GymatraComboboxGroupLabel";function is(t){return t.map(r=>typeof r=="string"?{value:r,label:r}:r)}function ls({label:t,helperText:r,error:s,options:n,value:a,defaultValue:o,onValueChange:i,onChange:d,placeholder:m="Rechercher ou sélectionner...",emptyText:u="Aucun résultat trouvé",disabled:c=!1,required:f=!1,className:b,startIcon:y}){const x=is(n),g=x.some(j=>!!j.group),h={};g&&x.forEach(j=>{const N=j.group||"Autres";h[N]||(h[N]=[]),h[N].push(j)});const v=j=>{i==null||i(j),d==null||d(j)},k=a!==void 0?{value:a,onValueChange:v,items:x}:o!==void 0?{defaultValue:o,onValueChange:v,items:x}:{onValueChange:v,items:x};return e.jsxs("div",{className:l("w-full space-y-1.5",b),children:[t&&e.jsxs("label",{className:"block text-xs font-medium text-text-muted",children:[t,f&&e.jsx("span",{className:"text-danger ml-0.5",children:"*"})]}),e.jsxs(F.Combobox.Root,{...k,disabled:c,children:[e.jsxs("div",{className:l("relative flex items-center w-full h-10 rounded-md border bg-white transition-colors",c?"border-border bg-surface-muted opacity-50 cursor-not-allowed":s?"border-danger focus-within:border-danger focus-within:ring-1 focus-within:ring-danger":"border-border hover:border-text-subtle focus-within:border-primary focus-within:ring-1 focus-within:ring-primary"),children:[y&&e.jsx("span",{className:"shrink-0 pl-3 text-text-subtle pointer-events-none flex items-center justify-center",children:y}),e.jsx(F.Combobox.Input,{placeholder:m,disabled:c,className:"h-full w-full bg-transparent px-3.5 py-2 text-sm text-text placeholder:text-text-subtle outline-none border-0 ring-0 shadow-none focus:outline-none focus:ring-0 focus:border-0"}),e.jsx("span",{className:"shrink-0 pr-3 text-text-subtle pointer-events-none flex items-center justify-center",children:e.jsx("svg",{className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m6 9 6 6 6-6"})})})]}),e.jsx(F.Combobox.Portal,{children:e.jsx(F.Combobox.Positioner,{sideOffset:4,className:"z-50 outline-none",children:e.jsxs(Je,{children:[e.jsx(Ye,{children:u}),e.jsx(F.Combobox.List,{children:g?Object.entries(h).map(([j,N])=>e.jsxs(F.Combobox.Group,{children:[e.jsx(Xe,{children:j}),N.map(P=>e.jsx(Re,{value:P.value,disabled:P.disabled,icon:P.icon,description:P.description,children:P.label},P.value))]},j)):x.map(j=>e.jsx(Re,{value:j.value,disabled:j.disabled,icon:j.icon,description:j.description,children:j.label},j.value))})]})})})]}),s?e.jsx("p",{className:"text-xs text-danger",children:s}):r?e.jsx("p",{className:"text-xs text-text-muted",children:r}):null]})}const Wt={sm:"max-w-[420px]",md:"max-w-lg",lg:"max-w-xl",xl:"max-w-2xl"};function cs({variant:t}){switch(t){case"danger":case"delete":return e.jsx("svg",{className:"size-12 text-danger stroke-[1.5]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})});case"warning":return e.jsx("svg",{className:"size-12 text-warning stroke-[1.5]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})});case"success":return e.jsx("svg",{className:"size-12 text-success stroke-[1.5]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})});case"info":return e.jsx("svg",{className:"size-12 text-info stroke-[1.5]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})});case"primary":return e.jsx("svg",{className:"size-12 text-primary stroke-[1.5]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","aria-hidden":"true",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z"})});default:return null}}function Ot({open:t,defaultOpen:r,onOpenChange:s,trigger:n,variant:a="default",size:o="sm",title:i,description:d,icon:m,align:u="center",children:c,confirmLabel:f,onConfirm:b,confirmVariant:y,cancelLabel:x="Annuler",onCancel:g,loading:h=!1,confirmDisabled:v=!1,showCloseButton:k=!1,footer:j,className:N}){const P=a==="danger"||a==="delete",C=f??(b?P?"Supprimer":"Confirmer":void 0),S=m===!1?null:m!==void 0?m:e.jsx(cs,{variant:a}),w=()=>y||(P?"danger":a==="warning"?"warning":a==="success"?"success":a==="info"?"info":"primary"),z=e.jsxs(W.Dialog.Portal,{children:[e.jsx(W.Dialog.Backdrop,{className:"fixed inset-0 z-50 bg-around/40 transition-opacity duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0"}),e.jsxs(W.Dialog.Popup,{className:l("fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-[calc(100%-2rem)] bg-white rounded-lg border border-border p-6 shadow-none","flex flex-col focus:outline-none transition-all duration-150","data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0",Wt[o],u==="center"?"items-center text-center":"items-start text-left",N),children:[k&&e.jsx(W.Dialog.Close,{className:"size-8 inline-flex items-center justify-center absolute right-3.5 top-3.5 rounded-md text-text-muted hover:bg-surface-muted hover:text-text cursor-pointer transition-colors focus-visible:outline-primary","aria-label":"Fermer",onClick:g,children:e.jsxs("svg",{className:"size-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),S&&e.jsx("div",{className:"flex items-center justify-center mb-3 text-center",children:S}),i&&e.jsx(W.Dialog.Title,{className:l("text-lg font-semibold text-text leading-snug",u==="center"?"text-center":"text-left"),children:i}),d&&e.jsx(W.Dialog.Description,{className:l("text-sm text-text-muted mt-2 leading-relaxed",u==="center"?"text-center":"text-left"),children:d}),c&&e.jsx("div",{className:"mt-4 w-full text-left",children:c}),j!==void 0?j:(C||x)&&e.jsxs("div",{className:l("w-full mt-6",x&&C?"grid grid-cols-2 gap-3":"flex justify-end gap-3"),children:[x&&e.jsx(W.Dialog.Close,{render:e.jsx(Te,{variant:"outline",size:"md",className:"w-full text-sm font-medium",onClick:g,disabled:h,children:x})}),C&&e.jsx(Te,{variant:w(),size:"md",className:"w-full text-sm font-medium",onClick:b,loading:h,disabled:v||h,children:C})]})]})]});return e.jsxs(W.Dialog.Root,{open:t,defaultOpen:r,onOpenChange:s,children:[n&&e.jsx(W.Dialog.Trigger,{render:n}),z]})}const me=Object.assign(Ot,{Root:W.Dialog.Root,Trigger:W.Dialog.Trigger,Portal:W.Dialog.Portal,Backdrop:p.forwardRef(function({className:r,...s},n){return e.jsx(W.Dialog.Backdrop,{ref:n,className:l("fixed inset-0 z-50 bg-around/40 transition-opacity duration-150 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",r),...s})}),Popup:p.forwardRef(function({className:r,size:s="sm",...n},a){return e.jsx(W.Dialog.Popup,{ref:a,className:l("fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-[calc(100%-2rem)] bg-white rounded-lg border border-border p-6 shadow-none","flex flex-col focus:outline-none transition-all duration-150","data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0",Wt[s],r),...n})}),Title:p.forwardRef(function({className:r,...s},n){return e.jsx(W.Dialog.Title,{ref:n,className:l("text-lg font-semibold text-text leading-snug",r),...s})}),Description:p.forwardRef(function({className:r,...s},n){return e.jsx(W.Dialog.Description,{ref:n,className:l("text-sm text-text-muted mt-2 leading-relaxed",r),...s})}),Close:W.Dialog.Close}),ds=W.Dialog.Root,us=W.Dialog.Trigger,xs=W.Dialog.Portal,ms=me.Backdrop,ps=me.Popup,fs=me.Popup,bs=me.Title,hs=me.Description,ys=W.Dialog.Close,Ke={s:25,m:35,l:50,xl:70,full:100},gs=360;function js(t){return typeof t=="number"?`${t}px`:`${Ke[t??"m"]??Ke.m}vw`}const vs={s:"w-[25vw]",m:"w-[35vw]",l:"w-[50vw]",xl:"w-[70vw]",full:"w-screen"},Ie=p.forwardRef(({size:t,animated:r,mobileLayer:s,label:n,children:a},o)=>e.jsx("div",{ref:o,role:"dialog","aria-modal":"true","aria-label":n,className:l("flex min-h-0 min-w-90 max-w-full shrink flex-col overflow-y-auto overflow-x-hidden border-s border-border bg-white shadow-none","transition-[translate,opacity] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)] motion-reduce:transition-none",typeof t=="number"?void 0:vs[t],r?"pointer-events-auto translate-x-0 opacity-100":"pointer-events-none translate-x-full opacity-0 rtl:-translate-x-full","max-[900px]:fixed max-[900px]:inset-0 max-[900px]:!w-full max-[900px]:min-w-0 max-[900px]:border-0",s),style:typeof t=="number"?{width:t}:void 0,children:a}));Ie.displayName="DrawerSlot";const et=p.createContext(void 0),$t=()=>{const t=p.useContext(et);if(!t)throw new Error("useGymatraDrawer must be used within a GymatraDrawerProvider");return t},ws=$t,Ns=et;function Vt({children:t}){const[r,s]=p.useState(!1),[n,a]=p.useState(!1),[o,i]=p.useState(!1),[d,m]=p.useState("m"),[u,c]=p.useState(null),[f,b]=p.useState(null),y=p.useRef(null),x=p.useRef(null),[g,h]=p.useState(!1),[v,k]=p.useState(!1),[j,N]=p.useState(!1),[P,T]=p.useState("l"),[C,S]=p.useState(null),[w,z]=p.useState(null),E=p.useRef(null),L=p.useRef(null),[$,te]=p.useState(!1),[I,V]=p.useState(!1),[ae,B]=p.useState(!1),[O,K]=p.useState("s"),[q,Q]=p.useState(null),[Ce,oe]=p.useState(null),be=p.useRef(null),ie=p.useRef(null);p.useEffect(()=>{if(n&&r){const G=requestAnimationFrame(()=>{i(!0)});return()=>cancelAnimationFrame(G)}else i(!1)},[n,r]),p.useEffect(()=>{if(v&&g){const G=requestAnimationFrame(()=>{N(!0)});return()=>cancelAnimationFrame(G)}else N(!1)},[v,g]),p.useEffect(()=>{if(I&&$){const G=requestAnimationFrame(()=>{B(!0)});return()=>cancelAnimationFrame(G)}else B(!1)},[I,$]),p.useEffect(()=>{const G=()=>{ye()};return window.addEventListener("popstate",G),()=>window.removeEventListener("popstate",G)},[]);const he=(G,M="s",A={})=>{ie.current&&clearTimeout(ie.current),Q(()=>G),K(M),oe(A),V(!0),te(!0)},Z=()=>{te(!1),B(!1),ie.current&&clearTimeout(ie.current),ie.current=setTimeout(()=>{V(!1),Q(null),oe(null)},300)},Se=(G,M="l",A={})=>{L.current&&clearTimeout(L.current),S(()=>G),T(M),z(A),k(!0),h(!0)},ce=()=>{Z(),h(!1),N(!1),L.current&&clearTimeout(L.current),L.current=setTimeout(()=>{k(!1),S(null),z(null)},300)},$e=(G,M="m",A={})=>{x.current&&clearTimeout(x.current),c(()=>G),m(M),b(A),a(!0),s(!0)},de=()=>{Z(),ce(),s(!1),i(!1),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{a(!1),c(null),b(null)},300)},ye=()=>{de()};p.useEffect(()=>{const G=M=>{M.key==="Escape"&&($?Z():g?ce():r&&de())};if(r||g||$)return document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[r,g,$]);const Pe=n||v||I,Ve=o||j||ae,ze=(r?1:0)+(g?1:0)+($?1:0);return e.jsxs(et.Provider,{value:{openDrawer:$e,closeDrawer:de,isOpen:r,size:d,contentProps:f,Component:u,openSecondDrawer:Se,closeSecondDrawer:ce,isSecondOpen:g,secondSize:P,secondContentProps:w,SecondComponent:C,openThirdDrawer:he,closeThirdDrawer:Z,isThirdOpen:$,thirdSize:O,thirdContentProps:Ce,ThirdComponent:q,closeAll:ye,openCount:ze},children:[t,Pe&&e.jsx("div",{"aria-hidden":"true",onClick:()=>{$?Z():g?ce():r&&de()},className:l("fixed inset-0 z-[9990] bg-around/40 cursor-pointer","transition-opacity duration-300 ease-out",Ve?"opacity-100":"opacity-0 pointer-events-none")}),Pe&&e.jsxs("div",{className:"pointer-events-none fixed inset-y-0 end-0 z-[10000] flex max-w-full items-stretch justify-end gap-1.5 overflow-x-auto overflow-y-hidden max-[900px]:inset-0",children:[I&&e.jsx(Ie,{ref:be,size:O,animated:ae,mobileLayer:"max-[900px]:z-30",label:"Tiroir de niveau 3",children:q&&e.jsx(q,{...Ce||{}})}),v&&e.jsx(Ie,{ref:E,size:P,animated:j,mobileLayer:"max-[900px]:z-20",label:"Tiroir de niveau 2",children:C&&e.jsx(C,{...w||{}})}),n&&e.jsx(Ie,{ref:y,size:d,animated:o,mobileLayer:"max-[900px]:z-10",label:"Tiroir",children:u&&e.jsx(u,{...f||{}})})]})]})}const ks=Vt;function Gs({title:t,description:r,icon:s,showCloseButton:n=!0,onClose:a,footer:o,className:i,children:d,...m}){return e.jsxs("div",{className:l("flex h-full flex-col bg-white text-text min-h-0",i),...m,children:[(t||n)&&e.jsxs("div",{className:"sticky top-0 z-20 shrink-0 bg-white",children:[e.jsxs("div",{className:"flex items-center justify-between px-5 pt-4 pb-3 sm:px-6",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0 pe-3",children:[s&&e.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg bg-primary-soft text-primary",children:s}),e.jsxs("div",{className:"min-w-0",children:[t&&e.jsx("h3",{className:"text-base font-semibold text-text truncate",children:t}),r&&e.jsx("p",{className:"text-xs text-text-muted truncate mt-0.5",children:r})]})]}),n&&e.jsx("button",{type:"button",onClick:a,"aria-label":"Fermer",className:"size-8 inline-flex shrink-0 items-center justify-center rounded-md text-text-muted hover:bg-surface-muted hover:text-text cursor-pointer transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",children:e.jsxs("svg",{className:"size-4.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),e.jsx("div",{className:"mx-5 sm:mx-6 border-b border-border"})]}),e.jsx("div",{className:"flex-1 space-y-4 overflow-y-auto p-5 text-sm text-text",children:d}),o&&e.jsx("div",{className:"flex shrink-0 items-center justify-end gap-2.5 border-t border-border bg-white px-5 py-3.5",children:o})]})}function Cs({className:t="size-3.5"}){return e.jsx("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m6 9 6 6 6-6"})})}function tt({label:t,options:r,multiple:s=!1,value:n,defaultValue:a,onChange:o,placeholder:i,bordered:d=!0,showCount:m=!0,size:u="sm",width:c,className:f,disabled:b=!1}){const[y,x]=p.useState(()=>typeof a<"u"?a:s?[]:r.length>0?r[0].value:""),[g,h]=p.useState(!1),v=p.useRef(null),k=n??y,j=s?Array.isArray(k)?k:k?[k]:[]:typeof k=="string"&&k!==""?[k]:[];let N;if(s)if(j.length===0)N=i??`All ${t}`;else if(j.length===1){const w=r.find(z=>z.value===j[0]);N=w?w.label:j[0]}else j.length===r.length?N=`All (${j.length})`:N=`${j.length} selected`;else{const w=j[0],z=r.find(E=>E.value===w);N=z?z.label:i??`All ${t}`}const P=s?j.length>0:!!(j[0]&&j[0]!=="all"&&j[0]!=="");p.useEffect(()=>{function w(z){v.current&&!v.current.contains(z.target)&&h(!1)}if(g)return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[g]),p.useEffect(()=>{function w(z){z.key==="Escape"&&h(!1)}if(g)return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[g]);function T(w){if(s){const E=j.includes(w)?j.filter(L=>L!==w):[...j,w];typeof n>"u"&&x(E),o==null||o(E)}else typeof n>"u"&&x(w),o==null||o(w),h(!1)}function C(){const w=r.filter(z=>!z.disabled).map(z=>z.value);typeof n>"u"&&x(w),o==null||o(w)}function S(){const w=[];typeof n>"u"&&x(w),o==null||o(w)}return e.jsxs("div",{ref:v,className:l("relative inline-block text-left",f),children:[e.jsxs("button",{type:"button",disabled:b,onClick:()=>h(w=>!w),"aria-haspopup":"listbox","aria-expanded":g,"aria-label":`${t}: ${N}`,className:l("inline-flex items-center justify-between gap-2 rounded-md text-text cursor-pointer transition-colors outline-none","focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary","disabled:pointer-events-none disabled:opacity-50",u==="sm"?"h-8.5 px-3 text-sm":"h-10 px-3.5 text-sm",c||(u==="sm"?"w-[165px]":"w-[185px]"),d?"border border-border bg-white hover:border-border-strong hover:bg-surface/50":"border-0 bg-transparent hover:bg-surface/50",g&&"bg-primary-soft/50 text-primary",P&&!g&&"bg-primary-soft/50 text-primary"),children:[e.jsxs("span",{className:"flex items-center gap-1.5 truncate",children:[e.jsxs("span",{className:"text-text-muted",children:[t,":"]}),e.jsx("span",{className:"truncate",children:N})]}),e.jsx("span",{className:l("text-text-subtle transition-transform duration-150 flex items-center shrink-0",g&&"rotate-180 text-primary"),"aria-hidden":"true",children:e.jsx(Cs,{})})]}),g&&e.jsxs("div",{role:"listbox","aria-multiselectable":s,"aria-label":t,className:"absolute left-0 z-50 mt-1 min-w-[190px] w-max max-w-[280px] rounded-lg border border-border bg-white p-1.5 shadow-none focus:outline-none",children:[s&&r.length>2&&e.jsxs("div",{className:"flex items-center justify-between border-b border-border px-2 py-1.5 mb-1 text-xs text-text-muted",children:[e.jsxs("span",{children:[j.length," of ",r.length," selected"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{type:"button",onClick:C,className:"text-primary hover:underline font-medium cursor-pointer",children:"All"}),e.jsx("span",{className:"text-border","aria-hidden":"true",children:"|"}),e.jsx("button",{type:"button",onClick:S,className:"text-text-muted hover:text-text hover:underline cursor-pointer",children:"Clear"})]})]}),e.jsx("div",{className:"max-h-60 overflow-y-auto space-y-0.5",children:r.map(w=>{const z=j.includes(w.value);return e.jsxs("button",{type:"button",role:"option","aria-selected":z,disabled:w.disabled,onClick:()=>T(w.value),className:l("flex w-full items-center justify-between gap-2.5 rounded-md px-2 py-1.5 text-sm text-left cursor-pointer transition-colors outline-none","hover:bg-surface hover:text-text","focus-visible:bg-surface focus-visible:text-primary","disabled:pointer-events-none disabled:opacity-40",z?"bg-primary-soft/40 text-primary font-medium":"text-text font-normal"),children:[e.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[e.jsx("span",{"aria-hidden":"true",className:l("size-5 shrink-0 rounded-md flex items-center justify-center border transition-colors",z?"border-primary bg-primary text-white":"border-border-strong bg-white hover:border-text-subtle"),children:z&&e.jsx("svg",{"aria-hidden":"true",className:"size-4 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}),e.jsx("span",{className:"truncate",children:w.label})]}),m&&typeof w.count<"u"&&e.jsx("span",{className:l("shrink-0 rounded px-1.5 py-0.5 text-xs font-medium leading-none",z?"bg-primary text-white":"bg-surface text-text-muted"),children:w.count})]},w.value)})})]})]})}tt.displayName="GymatraFilterSelect";function Ss({className:t="size-4"}){return e.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"11",cy:"11",r:"7"}),e.jsx("path",{d:"m21 21-4.35-4.35"})]})}function qt({className:t="size-3"}){return e.jsx("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})}function Ps({className:t="size-3.5"}){return e.jsx("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m6 9 6 6 6-6"})})}function zs({className:t="size-3.5"}){return e.jsx("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})})}function Ut({value:t,onChange:r,onClear:s,placeholder:n="Search...",borderless:a=!0,className:o,...i}){const d=!!(t&&String(t).length>0);return e.jsxs("div",{className:l("relative flex items-center shrink-0",a?"w-[180px] min-w-[140px] max-w-[220px]":"w-60",o),children:[e.jsx("span",{className:"pointer-events-none absolute left-0.5 flex items-center text-text-subtle","aria-hidden":"true",children:e.jsx(Ss,{className:"size-4"})}),e.jsx("input",{type:"search",value:t,onChange:r,placeholder:n,className:l("w-full h-9 bg-transparent text-sm text-text placeholder:text-sm placeholder:text-text-subtle",a?"border-0 ring-0 outline-none shadow-none pl-6 pr-5 focus:border-0 focus:ring-0 focus:outline-none focus:shadow-none active:border-0 active:ring-0 active:outline-none":"rounded-md border border-border pl-8 pr-6 focus:border-primary focus:outline-2 focus:outline-primary/30"),...i}),d&&s&&e.jsx("button",{type:"button",onClick:s,"aria-label":"Clear search",className:"absolute right-0.5 flex size-5 items-center justify-center text-text-subtle hover:text-text cursor-pointer transition-colors",children:e.jsx(qt,{className:"size-3.5"})})]})}function Is({label:t,options:r,value:s,defaultValue:n,onChange:a,className:o,...i}){return e.jsxs("div",{className:l("relative inline-flex items-center",o),children:[e.jsx("select",{value:s,defaultValue:n,onChange:a,"aria-label":t,className:"h-8.5 rounded-md border border-border bg-surface pl-2.5 pr-7 text-sm text-text outline-none hover:border-border-strong focus-visible:border-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary cursor-pointer appearance-none transition-colors",...i,children:r.map(d=>e.jsx("option",{value:d.value,children:d.label},d.value))}),e.jsx("span",{className:"pointer-events-none absolute right-2 text-text-subtle flex items-center","aria-hidden":"true",children:e.jsx(Ps,{})})]})}function Ht({label:t,valueLabel:r,onRemove:s,className:n}){return e.jsxs("span",{className:l("inline-flex h-6 items-center gap-1.5 rounded border border-border bg-surface px-2 text-xs text-text",n),children:[e.jsxs("span",{className:"text-text-muted",children:[t,":"]}),e.jsx("span",{className:"font-medium text-text",children:r}),e.jsx("button",{type:"button",onClick:s,"aria-label":`Remove filter ${t}: ${r}`,className:"inline-flex size-3.5 items-center justify-center rounded-full text-text-muted hover:text-text cursor-pointer transition-colors",children:e.jsx(qt,{})})]})}function _t({searchValue:t,onSearchChange:r,searchPlaceholder:s="Search...",searchBorderless:n=!0,totalCount:a,countLabel:o="Results",actions:i,filters:d=[],activeFilters:m=[],onResetFilters:u,isFiltersOpen:c,defaultFiltersOpen:f=!1,onToggleFilters:b,filterButtonLabel:y="Filters",bottomContent:x,className:g,children:h,...v}){const[k,j]=p.useState(f),N=c??k;function P(){const S=!N;typeof c>"u"&&j(S),b==null||b(S)}const T=typeof t<"u"||typeof r<"u";d.length>0||m.length>0;const C=m.length;return e.jsxs("div",{className:l("flex flex-col w-full",g),...v,children:[e.jsxs("div",{className:"flex flex-wrap items-center min-h-12 py-1.5 ps-3.5 pe-1.5 gap-3 rounded-lg border border-border bg-surface",children:[T&&e.jsx(Ut,{value:t,onChange:S=>r==null?void 0:r(S.target.value),onClear:()=>r==null?void 0:r(""),placeholder:s,borderless:n}),T&&typeof a<"u"&&e.jsx("span",{className:"h-5 w-px shrink-0 bg-border","aria-hidden":"true"}),typeof a<"u"&&e.jsxs("div",{className:"inline-flex items-center gap-1.5 whitespace-nowrap text-sm text-text-muted",children:[e.jsx("span",{className:"font-medium text-text",children:a}),e.jsx("span",{children:o})]}),h,e.jsxs("div",{className:"ms-auto flex flex-wrap items-center gap-2.5",children:[d.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"h-5 w-px shrink-0 bg-border","aria-hidden":"true"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[d.map(S=>e.jsx(tt,{label:S.label,options:S.options,multiple:S.multiple,value:S.value,defaultValue:S.defaultValue,onChange:S.onChange},S.id)),u&&(m.length>0||!!t)&&e.jsx("button",{type:"button",onClick:u,className:"rounded px-1.5 py-0.5 text-xs font-medium text-primary hover:underline cursor-pointer transition-opacity",children:"Reset"})]})]}),i,x&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"h-5 w-px shrink-0 bg-border","aria-hidden":"true"}),e.jsxs("button",{type:"button",onClick:P,"aria-expanded":N,"aria-label":`${N?"Hide":"Show"} filters`,title:y,"data-active":N||C>0,className:"relative inline-flex size-8 shrink-0 items-center justify-center rounded-md border-0 bg-transparent text-text hover:bg-surface-muted hover:text-primary cursor-pointer transition-colors outline-none focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary data-[active=true]:bg-primary-soft data-[active=true]:text-primary",children:[e.jsx(zs,{}),C>0&&e.jsx("span",{className:"absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-primary px-1 text-xs font-medium leading-none text-white",children:C})]})]})]})]}),m.length>0&&e.jsx("div",{className:"mt-2 flex flex-wrap items-center gap-1.5 px-1","aria-label":"Applied filters",children:m.map(S=>e.jsx(Ht,{label:S.label,valueLabel:S.valueLabel,onRemove:S.onRemove},S.id))}),N&&x&&e.jsx("div",{className:"mt-2.5 flex flex-col gap-3 rounded-lg border border-border bg-surface p-3.5 transition-all",children:x})]})}_t.displayName="GymatraFilterBar";function D({label:t,error:r,helperText:s,required:n,disabled:a,focused:o,startAdornment:i,endAdornment:d,className:m,wrapperClassName:u,children:c,...f}){const b=!!r;return e.jsxs("div",{className:l("relative w-full pt-2.5 pb-1",a&&"opacity-60 pointer-events-none",u),...f,children:[e.jsxs("div",{className:l("group relative flex items-center w-full min-h-11 rounded-md border bg-white transition-all",b?"border-danger focus-within:border-danger focus-within:ring-1 focus-within:ring-danger":o?"border-primary ring-1 ring-primary":"border-border hover:border-text-subtle focus-within:border-primary focus-within:ring-1 focus-within:ring-primary",m),children:[t&&e.jsxs("label",{className:l("pointer-events-none absolute -top-3 start-3 z-10 px-1.5 bg-white text-sm leading-none font-medium transition-colors select-none",b?"text-danger":o?"text-primary":"text-text-muted group-focus-within:text-primary group-hover:text-text"),children:[t,n&&e.jsx("span",{className:"ms-0.5 text-danger","aria-hidden":"true",children:"*"})]}),i&&e.jsx("div",{className:"flex shrink-0 items-center ps-3 text-text-muted select-none",children:i}),e.jsx("div",{className:"flex-1 min-w-0 flex items-center",children:c}),d&&e.jsx("div",{className:"flex shrink-0 items-center pe-3 text-text-muted select-none",children:d})]}),(r||s)&&e.jsxs("p",{className:l("mt-2 text-xs flex items-center gap-1 ps-1",b?"text-danger font-medium":"text-text-muted"),children:[b&&e.jsxs("svg",{className:"size-3.5 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),e.jsx("span",{children:r||s})]})]})}const pe=p.forwardRef(({label:t,error:r,helperText:s,startIcon:n,endIcon:a,prefixText:o,suffixText:i,type:d="text",placeholder:m,disabled:u,required:c,className:f,wrapperClassName:b,...y},x)=>{const g=!!(n||o),h=!!(i||a);return e.jsx(D,{label:t,error:r,helperText:s,required:c,disabled:u,wrapperClassName:b,startAdornment:g?e.jsxs("div",{className:"flex items-center gap-1.5 text-text-muted text-sm",children:[n,o&&e.jsx("span",{className:"font-medium text-text select-none",children:o})]}):void 0,endAdornment:h?e.jsxs("div",{className:"flex items-center gap-1.5 text-text-muted text-sm",children:[i&&e.jsx("span",{className:"font-medium text-text select-none",children:i}),a]}):void 0,children:e.jsx("input",{ref:x,type:d,disabled:u,placeholder:m||(typeof t=="string"?t:void 0),className:l("w-full h-11 bg-transparent text-sm text-text placeholder:text-text-subtle/80 outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0",g?"ps-2.5":"ps-3.5",h?"pe-2.5":"pe-3.5","disabled:cursor-not-allowed",f),...y})})});pe.displayName="GymatraTextInput";const Kt=p.forwardRef(({label:t="Email",startIcon:r,...s},n)=>{const a=e.jsxs("svg",{className:"size-4 text-text-subtle",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),e.jsx("path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"})]});return e.jsx(pe,{ref:n,type:"email",label:t,startIcon:r??a,autoComplete:"email",...s})});Kt.displayName="GymatraEmailInput";const Qt=p.forwardRef(({label:t="Mot de passe",startIcon:r,...s},n)=>{const[a,o]=p.useState(!1),i=e.jsxs("svg",{className:"size-4 text-text-subtle",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),e.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]});return e.jsx(pe,{ref:n,type:a?"text":"password",label:t,startIcon:r??i,autoComplete:"current-password",endIcon:e.jsx("button",{type:"button",tabIndex:-1,onClick:()=>o(!a),className:"text-text-muted hover:text-text cursor-pointer transition-colors p-1","aria-label":a?"Masquer":"Afficher",children:a?e.jsxs("svg",{className:"size-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),e.jsx("line",{x1:"1",y1:"23",x2:"23",y2:"1"})]}):e.jsxs("svg",{className:"size-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),e.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}),...s})});Qt.displayName="GymatraPasswordInput";const Zt=p.forwardRef(({label:t="Rechercher",startIcon:r,value:s,onChange:n,onClear:a,...o},i)=>{const[d,m]=p.useState(""),u=s!==void 0,c=u?String(s):d,f=e.jsxs("svg",{className:"size-4 text-text-subtle",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("circle",{cx:"11",cy:"11",r:"8"}),e.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),b=()=>{u||m(""),a==null||a()};return e.jsx(pe,{ref:i,type:"search",label:t,value:s,onChange:y=>{u||m(y.target.value),n==null||n(y)},startIcon:r??f,endIcon:c?e.jsx("button",{type:"button",onClick:b,className:"text-text-muted hover:text-text cursor-pointer p-0.5 rounded-full hover:bg-surface-muted transition-colors","aria-label":"Effacer",children:e.jsxs("svg",{className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}):void 0,...o})});Zt.displayName="GymatraSearchInput";const wt=["MA","DZ","TN","FR","ES","BE","CA","US","GB","SA","AE","QA","TR"],Nt={MA:"Maroc",DZ:"Algérie",TN:"Tunisie",FR:"France",ES:"Espagne",BE:"Belgique",CA:"Canada",US:"États-Unis",GB:"Royaume-Uni",SA:"Arabie Saoudite",AE:"Émirats Arabes Unis",QA:"Qatar",TR:"Turquie",IT:"Italie",DE:"Allemagne",CH:"Suisse",NL:"Pays-Bas",PT:"Portugal",EG:"Égypte",SN:"Sénégal",CI:"Côte d'Ivoire"},Jt=({name:t,label:r="Téléphone",error:s,helperText:n,value:a,defaultValue:o,onChange:i,onBlur:d,defaultCountry:m="MA",disabled:u,required:c,autoValidate:f=!1,invalidErrorMessage:b,placeholder:y,className:x,wrapperClassName:g})=>{const[h,v]=p.useState(m),[k,j]=p.useState(o),[N,P]=p.useState(!1),[T,C]=p.useState(""),S=p.useRef(null),w=p.useRef(null),z=a!==void 0?a:k,E=B=>{a===void 0&&j(B),i==null||i(B)},L=ht[h],$=h?ne.getCountryCallingCode(h):"212",te=!!(f&&z&&z.trim().length>3&&!ne.isValidPhoneNumber(z)),I=s||(te?b||"Numéro de téléphone invalide pour ce pays":void 0),V=p.useMemo(()=>{const O=ne.getCountries().filter(K=>!wt.includes(K));return[...wt,...O]},[]),ae=p.useMemo(()=>{if(!T.trim())return V;const B=T.toLowerCase().trim();return V.filter(O=>{const K=(yt[O]||Nt[O]||O).toLowerCase(),q=ne.getCountryCallingCode(O);return K.includes(B)||q.includes(B)||O.toLowerCase().includes(B)})},[V,T]);return p.useEffect(()=>{const B=O=>{S.current&&!S.current.contains(O.target)&&P(!1)};return N&&(document.addEventListener("mousedown",B),setTimeout(()=>{var O;return(O=w.current)==null?void 0:O.focus()},50)),()=>document.removeEventListener("mousedown",B)},[N]),e.jsxs("div",{ref:S,className:"relative w-full",children:[e.jsx(D,{label:r,error:I,helperText:n,required:c,disabled:u,focused:N,wrapperClassName:g,className:x,startAdornment:e.jsxs("div",{className:"relative flex items-center pe-1 self-stretch",children:[e.jsxs("button",{type:"button",disabled:u,onClick:()=>{u||(P(!N),C(""))},className:"flex items-center gap-1.5 py-1 px-1 -ms-1 rounded hover:bg-surface-muted transition-colors cursor-pointer select-none text-sm text-text outline-none focus-visible:ring-1 focus-visible:ring-primary","aria-expanded":N,"aria-label":"Sélectionner le pays",children:[e.jsx("span",{className:"flex items-center justify-center w-5 h-3.5 rounded-xs overflow-hidden border border-border/80 shrink-0 bg-surface-muted [&>svg]:size-full [&>svg]:object-cover",children:L?e.jsx(L,{title:h}):e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-text-muted","aria-hidden":"true",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]})}),e.jsx("svg",{className:l("size-3 text-text-subtle shrink-0 transition-transform duration-200",N&&"rotate-180"),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:e.jsx("polyline",{points:"6 9 12 15 18 9"})}),e.jsxs("span",{className:"font-medium text-text text-sm ms-0.5",children:["+",$]})]}),e.jsx("span",{className:"h-4 w-px bg-border ms-1.5 me-1 shrink-0","aria-hidden":"true"})]}),children:e.jsx(Cr,{name:t,country:h,value:z,onChange:E,onBlur:d,disabled:u,placeholder:y||(h==="MA"?"06 55 12 34 56":"Numéro de téléphone"),className:l("w-full h-11 ps-1 pe-3.5 bg-transparent text-sm text-text placeholder:text-text-subtle/80 outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0","disabled:cursor-not-allowed",x)})}),N&&e.jsxs("div",{className:"absolute top-[calc(100%+6px)] start-0 z-50 w-72 rounded-lg border border-border bg-white p-2 shadow-none max-h-72 flex flex-col",children:[e.jsxs("div",{className:"relative mb-2 shrink-0",children:[e.jsx("div",{className:"absolute inset-y-0 start-2.5 flex items-center pointer-events-none text-text-subtle",children:e.jsxs("svg",{className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[e.jsx("circle",{cx:"11",cy:"11",r:"8"}),e.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})}),e.jsx("input",{ref:w,type:"text",value:T,onChange:B=>C(B.target.value),placeholder:"Rechercher pays ou indicatif...",className:"w-full h-8 ps-8 pe-2.5 bg-surface-muted rounded text-sm text-text placeholder:text-text-subtle outline-none border border-border focus:border-primary focus:bg-white transition-colors"})]}),e.jsx("div",{className:"flex-1 overflow-y-auto space-y-0.5 pe-1",children:ae.length===0?e.jsx("div",{className:"px-3 py-4 text-sm text-center text-text-muted",children:"Aucun pays trouvé"}):ae.map(B=>{const O=ht[B],K=ne.getCountryCallingCode(B),q=yt[B]||Nt[B]||B,Q=B===h;return e.jsxs("button",{type:"button",onClick:()=>{v(B),P(!1),C("")},className:l("w-full flex items-center justify-between px-2.5 py-1.5 rounded text-sm transition-colors cursor-pointer text-start",Q?"bg-primary-soft text-primary font-medium":"text-text hover:bg-surface-muted"),children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx("span",{className:"flex items-center justify-center w-5 h-3.5 rounded-xs overflow-hidden border border-border/80 shrink-0 bg-surface-muted [&>svg]:size-full [&>svg]:object-cover",children:O?e.jsx(O,{title:q}):e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-text-muted","aria-hidden":"true",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]})}),e.jsx("span",{className:"truncate",children:q})]}),e.jsxs("span",{className:l("text-xs shrink-0 ms-2 font-medium",Q?"text-primary":"text-text-muted"),children:["+",K]})]},B)})})]})]})};Jt.displayName="GymatraPhoneInput";const Yt=p.forwardRef(({label:t="Site web",prefixText:r="https://",...s},n)=>{const a=e.jsxs("svg",{className:"size-4 text-text-subtle",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),e.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]});return e.jsx(pe,{ref:n,type:"url",label:t,startIcon:a,prefixText:r,placeholder:"example.com",...s})});Yt.displayName="GymatraUrlInput";const ke=p.forwardRef(({label:t="Nombre",error:r,helperText:s,step:n=1,min:a,max:o,showSteppers:i=!0,prefixText:d,suffixText:m,disabled:u,required:c,className:f,value:b,defaultValue:y,onChange:x,...g},h)=>{const v=p.useRef(null),k=j=>{const N=v.current;!N||u||(j==="up"?N.stepUp():N.stepDown(),N.dispatchEvent(new Event("change",{bubbles:!0})))};return e.jsx(D,{label:t,error:r,helperText:s,required:c,disabled:u,startAdornment:d?e.jsx("span",{className:"text-xs text-text-muted font-medium select-none",children:d}):void 0,endAdornment:i?e.jsxs("div",{className:"flex flex-col border-s border-border -me-1 self-stretch my-0.5 justify-center",children:[e.jsx("button",{type:"button",tabIndex:-1,disabled:u,onClick:()=>k("up"),className:"px-1.5 py-0 text-text-muted hover:text-text hover:bg-surface-muted transition-colors cursor-pointer flex-1 flex items-center justify-center","aria-label":"Augmenter",children:e.jsx("svg",{className:"size-2.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:e.jsx("polyline",{points:"18 15 12 9 6 15"})})}),e.jsx("button",{type:"button",tabIndex:-1,disabled:u,onClick:()=>k("down"),className:"px-1.5 py-0 text-text-muted hover:text-text hover:bg-surface-muted transition-colors cursor-pointer border-t border-border flex-1 flex items-center justify-center","aria-label":"Diminuer",children:e.jsx("svg",{className:"size-2.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})})]}):m?e.jsx("span",{className:"text-xs text-text-muted font-medium select-none",children:m}):void 0,children:e.jsx("input",{ref:j=>{v.current=j,typeof h=="function"?h(j):h&&(h.current=j)},type:"number",step:n,min:a,max:o,disabled:u,value:b,defaultValue:y,onChange:x,className:l("w-full h-11 bg-transparent text-sm text-text placeholder:text-text-subtle outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",d?"ps-2.5":"ps-3.5",i||m?"pe-2.5":"pe-3.5",f),...g})})});ke.displayName="GymatraNumberInput";const Ms=ke,Xt=p.forwardRef(({label:t="Montant",currency:r="DH",currencyPosition:s="end",step:n=.01,min:a=0,placeholder:o="0.00",...i},d)=>{const m=s==="start";return e.jsx(ke,{ref:d,label:t,step:n,min:a,placeholder:o,showSteppers:!1,prefixText:m?r:void 0,suffixText:m?void 0:r,...i})});Xt.displayName="GymatraCurrencyInput";const er=p.forwardRef(({label:t="Pourcentage",min:r=0,max:s=100,step:n=1,placeholder:a="0",...o},i)=>e.jsx(ke,{ref:i,label:t,min:r,max:s,step:n,placeholder:a,showSteppers:!1,suffixText:"%",...o}));er.displayName="GymatraPercentageInput";const tr=p.forwardRef(({label:t="Date",error:r,helperText:s,required:n,disabled:a,className:o,...i},d)=>e.jsx(D,{label:t,error:r,helperText:s,required:n,disabled:a,endAdornment:e.jsxs("svg",{className:"size-4 text-text-subtle pointer-events-none",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),e.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),e.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),e.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),children:e.jsx("input",{ref:d,type:"date",disabled:a,className:l("w-full h-11 px-3 bg-transparent text-sm text-text outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0 [color-scheme:light]",o),...i})}));tr.displayName="GymatraDateInput";const rr=p.forwardRef(({label:t="Heure",error:r,helperText:s,required:n,disabled:a,className:o,...i},d)=>e.jsx(D,{label:t,error:r,helperText:s,required:n,disabled:a,endAdornment:e.jsxs("svg",{className:"size-4 text-text-subtle pointer-events-none",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("polyline",{points:"12 6 12 12 16 14"})]}),children:e.jsx("input",{ref:d,type:"time",disabled:a,className:l("w-full h-11 px-3 bg-transparent text-sm text-text outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0 [color-scheme:light]",o),...i})}));rr.displayName="GymatraTimeInput";const sr=p.forwardRef(({label:t="Date & Heure",error:r,helperText:s,required:n,disabled:a,className:o,...i},d)=>e.jsx(D,{label:t,error:r,helperText:s,required:n,disabled:a,endAdornment:e.jsxs("svg",{className:"size-4 text-text-subtle pointer-events-none",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),e.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),e.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),e.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),children:e.jsx("input",{ref:d,type:"datetime-local",disabled:a,className:l("w-full h-11 px-3 bg-transparent text-sm text-text outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0 [color-scheme:light]",o),...i})}));sr.displayName="GymatraDateTimeInput";function Ts({label:t="Période (Début - Fin)",startDate:r,endDate:s,onStartDateChange:n,onEndDateChange:a,error:o,helperText:i,disabled:d,required:m,className:u}){return e.jsx(D,{label:t,error:o,helperText:i,required:m,disabled:d,className:u,endAdornment:e.jsxs("svg",{className:"size-4 text-text-subtle pointer-events-none",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),e.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),e.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),e.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),children:e.jsxs("div",{className:"flex items-center w-full px-2",children:[e.jsx("input",{type:"date",value:r,disabled:d,onChange:c=>n==null?void 0:n(c.target.value),className:"flex-1 h-11 bg-transparent text-sm text-text outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0 [color-scheme:light]"}),e.jsx("span",{className:"px-2 text-text-muted select-none",children:"→"}),e.jsx("input",{type:"date",value:s,disabled:d,onChange:c=>a==null?void 0:a(c.target.value),className:"flex-1 h-11 bg-transparent text-sm text-text outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0 [color-scheme:light]"})]})})}function Rs({name:t,label:r="Sélection",options:s,value:n,defaultValue:a,onChange:o,onBlur:i,placeholder:d="Sélectionner une option...",searchable:m=!1,searchPlaceholder:u="Rechercher...",clearable:c=!1,error:f,helperText:b,required:y,disabled:x,className:g,wrapperClassName:h}){const[v,k]=p.useState(a),[j,N]=p.useState(!1),[P,T]=p.useState(""),C=p.useRef(null),S=p.useRef(null),w=n!==void 0,z=w?n:v,E=s.find(I=>I.value===z);p.useEffect(()=>{const I=V=>{C.current&&!C.current.contains(V.target)&&N(!1)};if(j)return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[j]),p.useEffect(()=>{j&&m&&S.current&&S.current.focus(),j||T("")},[j,m]);const L=P.trim()?s.filter(I=>I.label.toLowerCase().includes(P.toLowerCase())||I.description&&I.description.toLowerCase().includes(P.toLowerCase())):s,$=I=>{I.disabled||(w||k(I.value),o==null||o(I.value),N(!1))},te=I=>{I.stopPropagation(),w||k(void 0),o==null||o(void 0)};return e.jsxs("div",{ref:C,className:l("relative w-full",h),children:[t&&e.jsx("input",{type:"hidden",name:t,value:z!==void 0?String(z):""}),e.jsx(D,{label:r,error:f,helperText:b,required:y,disabled:x,focused:j,endAdornment:e.jsxs("div",{className:"flex items-center gap-1",children:[c&&z!==void 0&&!x&&e.jsx("button",{type:"button",tabIndex:-1,onClick:te,className:"size-5 flex items-center justify-center rounded text-text-subtle hover:text-text hover:bg-surface-muted transition-colors cursor-pointer",title:"Effacer",children:e.jsxs("svg",{className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),e.jsx("svg",{className:l("size-4 text-text-subtle transition-transform duration-200 pointer-events-none",j&&"rotate-180"),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),children:e.jsx("button",{type:"button",disabled:x,onClick:()=>N(I=>!I),onBlur:i,className:l("w-full h-11 px-3.5 flex items-center justify-start text-start bg-transparent text-sm outline-none cursor-pointer border-0 ring-0",x&&"cursor-not-allowed text-text-subtle",g),children:E?e.jsxs("span",{className:"flex items-center gap-2 truncate text-text font-normal",children:[E.icon&&e.jsx("span",{className:"shrink-0 text-text-muted",children:E.icon}),e.jsx("span",{className:"truncate",children:E.label})]}):e.jsx("span",{className:"text-text-subtle/80 truncate",children:d})})}),j&&e.jsxs("div",{className:"absolute top-[calc(100%+4px)] start-0 z-50 w-full rounded-lg border border-border bg-white p-1.5 shadow-none max-h-72 overflow-y-auto animate-in fade-in-50 zoom-in-95",children:[m&&e.jsx("div",{className:"p-1 pb-1.5 border-b border-border mb-1",children:e.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1.5 bg-surface-muted rounded-md text-xs",children:[e.jsxs("svg",{className:"size-3.5 text-text-subtle shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("circle",{cx:"11",cy:"11",r:"8"}),e.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),e.jsx("input",{ref:S,type:"text",value:P,onChange:I=>T(I.target.value),placeholder:u,className:"w-full bg-transparent text-text outline-none placeholder:text-text-subtle text-sm"}),P&&e.jsx("button",{type:"button",onClick:()=>T(""),className:"size-3.5 text-text-subtle hover:text-text cursor-pointer",children:"×"})]})}),e.jsx("div",{className:"space-y-0.5",children:L.length===0?e.jsx("div",{className:"py-4 text-center text-sm text-text-muted",children:"Aucun résultat trouvé"}):L.map(I=>{const V=I.value===z;return e.jsxs("button",{type:"button",disabled:I.disabled,onClick:()=>$(I),className:l("w-full flex items-center justify-between gap-2 px-3 py-2 rounded-md text-sm text-start transition-colors cursor-pointer",V?"bg-primary-soft text-primary font-medium":"text-text hover:bg-surface-muted",I.disabled&&"opacity-40 cursor-not-allowed hover:bg-transparent"),children:[e.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[I.icon&&e.jsx("span",{className:"shrink-0 text-text-muted",children:I.icon}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"truncate font-medium",children:I.label}),I.description&&e.jsx("div",{className:"text-xs text-text-muted truncate mt-0.5",children:I.description})]})]}),V&&e.jsx("svg",{className:"size-4 text-primary shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})]},String(I.value))})})]})]})}const nr=p.forwardRef(({label:t="Sélection",options:r,error:s,helperText:n,placeholder:a="Choisir...",disabled:o,required:i,className:d,children:m,...u},c)=>e.jsx(D,{label:t,error:s,helperText:n,required:i,disabled:o,endAdornment:e.jsx("svg",{className:"size-4 text-text-subtle pointer-events-none",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("polyline",{points:"6 9 12 15 18 9"})}),children:e.jsxs("select",{ref:c,disabled:o,className:l("w-full h-11 ps-3.5 pe-8 bg-transparent text-sm text-text outline-none appearance-none cursor-pointer border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0",d),...u,children:[a&&e.jsx("option",{value:"",children:a}),r.map(f=>e.jsx("option",{value:f.value,children:f.label},f.value)),m]})}));nr.displayName="GymatraSelectField";function Ls({label:t="Sélection multiple",options:r,value:s=[],onChange:n,error:a,helperText:o,placeholder:i="Sélectionner...",disabled:d,required:m}){const[u,c]=p.useState(!1),f=p.useRef(null);p.useEffect(()=>{const x=g=>{f.current&&!f.current.contains(g.target)&&c(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const b=x=>{s.includes(x)?n==null||n(s.filter(g=>g!==x)):n==null||n([...s,x])},y=r.filter(x=>s.includes(x.value));return e.jsxs("div",{ref:f,className:"relative w-full",children:[e.jsx(D,{label:t,error:a,helperText:o,required:m,disabled:d,focused:u,endAdornment:e.jsx("svg",{className:l("size-4 text-text-subtle transition-transform",u&&"rotate-180"),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("polyline",{points:"6 9 12 15 18 9"})}),children:e.jsx("button",{type:"button",disabled:d,onClick:()=>c(!u),className:"w-full min-h-11 py-2 px-3.5 flex flex-wrap items-center gap-1.5 text-left text-sm text-text outline-none cursor-pointer",children:y.length===0?e.jsx("span",{className:"text-text-subtle",children:i}):y.map(x=>e.jsxs("span",{className:"inline-flex items-center gap-1 rounded bg-surface-muted px-2 py-0.5 text-xs font-medium text-text border border-border",children:[x.label,e.jsx("span",{role:"button",tabIndex:0,onClick:g=>{g.stopPropagation(),b(x.value)},className:"text-text-muted hover:text-text cursor-pointer",children:"×"})]},x.value))})}),u&&e.jsx("div",{className:"absolute top-[calc(100%+4px)] start-0 z-50 w-full rounded-md border border-border bg-white p-1.5 shadow-none max-h-56 overflow-y-auto",children:r.map(x=>{const g=s.includes(x.value);return e.jsxs("div",{onClick:()=>b(x.value),className:l("flex items-center justify-between px-2.5 py-1.5 rounded text-sm cursor-pointer transition-colors",g?"bg-primary-soft text-primary font-medium":"text-text hover:bg-surface-muted"),children:[e.jsx("span",{children:x.label}),g&&e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"size-4 text-primary","aria-hidden":"true",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})})]},x.value)})})]})}function Bs({label:t="Autocomplétion",suggestions:r,value:s="",onChange:n,placeholder:a="Commencez à taper...",error:o,helperText:i}){const[d,m]=p.useState(!1),[u,c]=p.useState(s),f=p.useRef(null),b=s!==void 0?s:u,y=r.filter(x=>x.toLowerCase().includes(b.toLowerCase())&&x.toLowerCase()!==b.toLowerCase());return p.useEffect(()=>{const x=g=>{f.current&&!f.current.contains(g.target)&&m(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]),e.jsxs("div",{ref:f,className:"relative w-full",children:[e.jsx(D,{label:t,error:o,helperText:i,focused:d&&y.length>0,children:e.jsx("input",{type:"text",value:b,placeholder:a,onFocus:()=>m(!0),onChange:x=>{const g=x.target.value;c(g),n==null||n(g),m(!0)},className:"w-full h-11 px-3.5 bg-transparent text-sm text-text placeholder:text-text-subtle outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0"})}),d&&y.length>0&&e.jsx("div",{className:"absolute top-[calc(100%+4px)] start-0 z-50 w-full rounded-md border border-border bg-white p-1 shadow-none max-h-48 overflow-y-auto",children:y.map((x,g)=>e.jsx("div",{onClick:()=>{c(x),n==null||n(x),m(!1)},className:"px-3 py-2 rounded text-sm text-text hover:bg-surface-muted cursor-pointer transition-colors",children:x},g))})]})}const As=ve.Switch.Root,Ds=ve.Switch.Thumb;function Fs(t="md"){switch(t){case"sm":return{track:"h-5 w-9 p-0.5",thumb:"size-4 data-[checked]:translate-x-4 rtl:data-[checked]:-translate-x-4"};case"lg":return{track:"h-7 w-13 p-0.5",thumb:"size-6 data-[checked]:translate-x-6 rtl:data-[checked]:-translate-x-6"};case"md":default:return{track:"h-6 w-11 p-0.5",thumb:"size-5 data-[checked]:translate-x-5 rtl:data-[checked]:-translate-x-5"}}}function Es(t="primary"){switch(t){case"success":return"data-[checked]:bg-success focus-visible:outline-success";case"danger":return"data-[checked]:bg-danger focus-visible:outline-danger";case"warning":return"data-[checked]:bg-warning focus-visible:outline-warning";case"primary":default:return"data-[checked]:bg-primary focus-visible:outline-primary"}}const rt=p.forwardRef(({size:t="md",variant:r="primary",label:s,description:n,labelPosition:a="right",onCheckedChange:o,onChange:i,disabled:d=!1,className:m,wrapperClassName:u,...c},f)=>{const b=Fs(t),y=Es(r),x=(h,v)=>{o==null||o(h,v),i==null||i(h)},g=e.jsx(ve.Switch.Root,{ref:f,disabled:d,onCheckedChange:x,className:l("relative inline-flex shrink-0 cursor-pointer items-center rounded-full border-0 bg-text-subtle transition-colors duration-200 outline-none select-none shadow-none motion-reduce:transition-none","focus-visible:outline-2 focus-visible:outline-offset-2","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",b.track,y,m),...c,children:e.jsx(ve.Switch.Thumb,{className:l("pointer-events-none block rounded-full bg-white transition-transform duration-200 shadow-none translate-x-0 motion-reduce:transition-none",b.thumb)})});return!s&&!n?g:a==="left"?e.jsxs("label",{className:l("flex cursor-pointer select-none items-center justify-between gap-4 w-full",d&&"cursor-not-allowed",u),children:[e.jsxs("span",{className:"flex min-w-0 flex-col",children:[s&&e.jsx("span",{className:l("text-sm font-medium leading-tight",d?"text-text-subtle":"text-text"),children:s}),n&&e.jsx("span",{className:"mt-0.5 text-xs leading-normal text-text-muted",children:n})]}),g]}):e.jsxs("label",{className:l("inline-flex cursor-pointer select-none items-center gap-3",d&&"cursor-not-allowed",u),children:[g,e.jsxs("span",{className:"flex min-w-0 flex-col",children:[s&&e.jsx("span",{className:l("text-sm font-medium leading-tight",d?"text-text-subtle":"text-text"),children:s}),n&&e.jsx("span",{className:"mt-0.5 text-xs leading-normal text-text-muted",children:n})]})]})});rt.displayName="GymatraSwitch";function Ws({label:t,boxLabel:r,description:s,error:n,helperText:a,disabled:o,className:i,...d}){return e.jsx(D,{label:t,error:n,helperText:a,disabled:o,className:i,children:e.jsx(Ze,{label:r,description:s,disabled:o,invalid:!!n,wrapperClassName:"flex w-full p-3",...d})})}function Os({label:t="Options",name:r,options:s,value:n,defaultValue:a,onChange:o,direction:i="horizontal",error:d,helperText:m,disabled:u}){return e.jsx(D,{label:t,error:d,helperText:m,disabled:u,children:e.jsx("div",{className:l("p-3 w-full flex flex-wrap gap-4",i==="vertical"&&"flex-col gap-2.5"),children:s.map(c=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer select-none",children:[e.jsx("input",{type:"radio",name:r,value:c.value,checked:n!==void 0?n===c.value:void 0,defaultChecked:a===c.value,onChange:()=>o==null?void 0:o(c.value),disabled:u,className:"size-4 accent-primary"}),e.jsx("span",{className:"text-sm font-medium text-text",children:c.label})]},c.value))})})}function $s({label:t,switchLabel:r,description:s,checked:n,defaultChecked:a,onChange:o,error:i,helperText:d,disabled:m}){return e.jsx(D,{label:t,error:i,helperText:d,disabled:m,children:e.jsx(rt,{label:r,description:s,labelPosition:"left",checked:n,defaultChecked:a,onChange:o,disabled:m,"aria-invalid":i?!0:void 0,wrapperClassName:"p-3"})})}function Vs({label:t,options:r,value:s,onChange:n,error:a,helperText:o}){return e.jsx(D,{label:t,error:a,helperText:o,children:e.jsx("div",{className:"flex items-center p-1.5 w-full gap-1",children:r.map(i=>e.jsx("button",{type:"button",onClick:()=>n(i.value),className:l("flex-1 h-8 rounded text-sm font-medium transition-colors cursor-pointer",s===i.value?"bg-primary text-white shadow-none":"bg-surface-muted text-text-muted hover:bg-border/60 hover:text-text"),children:i.label},i.value))})})}const ar=p.forwardRef(({label:t="Description",error:r,helperText:s,required:n,disabled:a,className:o,placeholder:i,rows:d=3,...m},u)=>e.jsx(D,{label:t,error:r,helperText:s,required:n,disabled:a,children:e.jsx("textarea",{ref:u,rows:d,disabled:a,placeholder:i||(typeof t=="string"?t:void 0),className:l("w-full p-3 bg-transparent text-sm text-text placeholder:text-text-subtle/80 outline-none resize-none",o),...m})}));ar.displayName="GymatraTextareaField";function qs({label:t="Contenu enrichi",value:r,defaultValue:s="",onChange:n,placeholder:a="Rédigez votre texte...",error:o,helperText:i,disabled:d}){const[m,u]=p.useState(s),c=r!==void 0?r:m,f=b=>{const y=`${c} [${b}]`;r===void 0&&u(y),n==null||n(y)};return e.jsx(D,{label:t,error:o,helperText:i,disabled:d,children:e.jsxs("div",{className:"flex flex-col w-full",children:[e.jsxs("div",{className:"flex items-center gap-1 border-b border-border p-2 bg-surface-muted/50",children:[e.jsx("button",{type:"button",onClick:()=>f("b"),className:"size-7 rounded text-sm font-semibold text-text hover:bg-white transition-colors",title:"Gras",children:"B"}),e.jsx("button",{type:"button",onClick:()=>f("i"),className:"size-7 rounded text-sm italic font-serif text-text hover:bg-white transition-colors",title:"Italique",children:"I"}),e.jsx("button",{type:"button",onClick:()=>f("u"),className:"size-7 rounded text-sm underline text-text hover:bg-white transition-colors",title:"Souligné",children:"U"}),e.jsx("span",{className:"h-4 w-px bg-border mx-1"}),e.jsx("button",{type:"button",onClick:()=>f("ul"),className:"size-7 rounded text-sm text-text hover:bg-white transition-colors flex items-center justify-center",title:"Liste à puces",children:e.jsxs("svg",{className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("line",{x1:"8",y1:"6",x2:"21",y2:"6"}),e.jsx("line",{x1:"8",y1:"12",x2:"21",y2:"12"}),e.jsx("line",{x1:"8",y1:"18",x2:"21",y2:"18"}),e.jsx("line",{x1:"3",y1:"6",x2:"3.01",y2:"6"}),e.jsx("line",{x1:"3",y1:"12",x2:"3.01",y2:"12"}),e.jsx("line",{x1:"3",y1:"18",x2:"3.01",y2:"18"})]})}),e.jsx("button",{type:"button",onClick:()=>f("link"),className:"size-7 rounded text-sm text-text hover:bg-white transition-colors flex items-center justify-center",title:"Lien",children:e.jsxs("svg",{className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),e.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})})]}),e.jsx("textarea",{rows:4,value:c,disabled:d,placeholder:a,onChange:b=>{r===void 0&&u(b.target.value),n==null||n(b.target.value)},className:"w-full p-3 bg-transparent text-sm text-text placeholder:text-text-subtle/80 outline-none resize-none"})]})})}function Us({label:t="Fichiers joints",accept:r,multiple:s=!1,onFilesSelected:n,error:a,helperText:o,disabled:i}){const[d,m]=p.useState([]),u=p.useId(),c=f=>{if(!f||f.length===0)return;const b=Array.from(f);m(b.map(y=>y.name)),n==null||n(b)};return e.jsx(D,{label:t,error:a,helperText:o,disabled:i,children:e.jsxs("div",{className:"flex flex-col w-full p-3.5",children:[e.jsx("input",{id:u,type:"file",accept:r,multiple:s,disabled:i,onChange:f=>c(f.target.files),className:"hidden"}),e.jsxs("label",{htmlFor:u,className:"flex flex-col items-center justify-center border-2 border-dashed border-border rounded-md p-4 bg-surface-muted/30 hover:bg-surface-muted cursor-pointer transition-colors text-center",children:[e.jsxs("svg",{className:"size-6 text-text-subtle mb-1.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:[e.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),e.jsx("polyline",{points:"17 8 12 3 7 8"}),e.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]}),e.jsx("span",{className:"text-sm font-medium text-primary",children:"Cliquez pour parcourir"}),e.jsx("span",{className:"text-xs text-text-muted mt-0.5",children:"ou glissez-déposez vos fichiers ici"})]}),d.length>0&&e.jsx("div",{className:"mt-2.5 flex flex-wrap gap-1.5",children:d.map((f,b)=>e.jsxs("span",{className:"inline-flex items-center gap-1 rounded bg-surface-muted px-2 py-0.5 text-xs text-text border border-border",children:["📄 ",f]},b))})]})})}function Hs({label:t="Téléverser une image",onImageSelected:r,error:s,helperText:n,disabled:a}){const[o,i]=p.useState(null),d=p.useId(),m=u=>{const c=u==null?void 0:u[0];c&&(i(URL.createObjectURL(c)),r==null||r(c))};return e.jsx(D,{label:t,error:s,helperText:n,disabled:a,children:e.jsxs("div",{className:"flex items-center justify-between w-full p-3.5 gap-3",children:[e.jsx("input",{id:d,type:"file",accept:"image/*",disabled:a,onChange:u=>m(u.target.files),className:"hidden"}),o?e.jsxs("div",{className:"flex items-center gap-3 w-full",children:[e.jsx("img",{src:o,alt:"Aperçu",className:"size-14 rounded-md object-cover border border-border shrink-0"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("label",{htmlFor:d,className:"text-xs font-medium text-primary hover:underline cursor-pointer block",children:"Changer l'image"}),e.jsx("button",{type:"button",onClick:()=>i(null),className:"mt-1 text-xs text-danger hover:underline cursor-pointer",children:"Supprimer"})]})]}):e.jsxs("label",{htmlFor:d,className:"flex items-center gap-3 w-full cursor-pointer",children:[e.jsx("div",{className:"size-12 rounded-md bg-surface-muted border border-border flex items-center justify-center text-text-subtle shrink-0",children:e.jsxs("svg",{className:"size-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:[e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),e.jsx("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),e.jsx("polyline",{points:"21 15 16 10 5 21"})]})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-sm font-medium text-text block",children:"Sélectionner une photo"}),e.jsx("span",{className:"text-xs text-text-muted",children:"PNG, JPG, WebP jusqu'à 5MB"})]})]})]})})}function _s({label:t="Photo de profil",initialSrc:r,onAvatarChange:s,error:n,helperText:a,disabled:o}){const[i,d]=p.useState(r??null),m=p.useId(),u=c=>{const f=c==null?void 0:c[0];f&&(d(URL.createObjectURL(f)),s==null||s(f))};return e.jsx(D,{label:t,error:n,helperText:a,disabled:o,children:e.jsxs("div",{className:"flex items-center gap-3.5 w-full p-3.5",children:[e.jsx("input",{id:m,type:"file",accept:"image/*",disabled:o,onChange:c=>u(c.target.files),className:"hidden"}),e.jsx("div",{className:"size-12 rounded-full border border-border bg-surface-muted overflow-hidden flex items-center justify-center shrink-0",children:i?e.jsx("img",{src:i,alt:"Avatar",className:"size-full object-cover"}):e.jsx("svg",{className:"size-6 text-text-subtle",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:e.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})})}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:m,className:"inline-flex h-8 items-center justify-center rounded-md border border-border bg-surface px-3 text-xs font-medium text-text hover:bg-surface-muted cursor-pointer transition-colors",children:"Téléverser une photo"}),e.jsx("span",{className:"text-xs text-text-muted block mt-0.5",children:"Format carré recommandé"})]})]})})}const Ks=["#224086","#10B981","#EF4444","#F59E0B","#8B5CF6","#06B6D4","#1E293B"];function or({name:t,label:r="Couleur",value:s,defaultValue:n="#224086",onChange:a,onBlur:o,presets:i=Ks,showPresets:d=!0,error:m,helperText:u,disabled:c,required:f,className:b,wrapperClassName:y}){const[x,g]=p.useState(n),h=s!==void 0?s:x,v=j=>{s===void 0&&g(j),a==null||a(j)},k=h.startsWith("#")?h.slice(1):h;return e.jsx(D,{label:r,error:m,helperText:u,required:f,disabled:c,wrapperClassName:y,className:b,startAdornment:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"relative size-6 rounded border border-border overflow-hidden cursor-pointer shrink-0 shadow-none hover:border-text-subtle transition-colors",children:[e.jsx("div",{className:"w-full h-full",style:{backgroundColor:h||"#224086"}}),e.jsx("input",{type:"color",value:h.startsWith("#")&&h.length===7?h:"#224086",disabled:c,onChange:j=>v(j.target.value.toUpperCase()),className:"absolute inset-0 opacity-0 w-full h-full cursor-pointer disabled:cursor-not-allowed","aria-label":"Choisir la couleur"})]}),e.jsx("span",{className:"text-text-muted font-mono text-sm select-none",children:"#"})]}),endAdornment:d&&i.length>0?e.jsx("div",{className:"flex items-center gap-1.5 pe-1",children:i.slice(0,7).map(j=>{const N=h.toLowerCase()===j.toLowerCase();return e.jsx("button",{type:"button",disabled:c,onClick:()=>v(j),className:l("size-4 rounded-full border transition-all cursor-pointer hover:scale-115 shrink-0",N?"ring-2 ring-primary ring-offset-1 border-white scale-110":"border-border/60 hover:border-text-subtle"),style:{backgroundColor:j},title:j,"aria-label":`Couleur ${j}`},j)})}):void 0,children:e.jsx("input",{name:t,type:"text",value:k.toUpperCase(),disabled:c,maxLength:6,onChange:j=>{const N=j.target.value.replace(/[^0-9A-Fa-f]/g,"");N.length<=6&&v(`#${N}`)},onBlur:o,placeholder:"224086",className:l("w-full h-11 ps-1 pe-2 bg-transparent text-sm font-mono text-text placeholder:text-text-subtle/80 uppercase outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0","disabled:cursor-not-allowed")})})}const Qs=or;function Zs({label:t="Intensité",min:r=0,max:s=100,step:n=1,value:a,defaultValue:o=50,unit:i="%",onChange:d,error:m,helperText:u,disabled:c}){const[f,b]=p.useState(o),y=a!==void 0?a:f;return e.jsx(D,{label:t,error:m,helperText:u,disabled:c,children:e.jsxs("div",{className:"flex items-center gap-3 w-full p-3",children:[e.jsx("input",{type:"range",min:r,max:s,step:n,value:y,disabled:c,onChange:x=>{const g=Number(x.target.value);a===void 0&&b(g),d==null||d(g)},className:"flex-1 accent-primary cursor-pointer"}),e.jsxs("span",{className:"min-w-10 text-right text-sm font-medium text-text font-mono tabular-nums",children:[y,i]})]})})}function Js({label:t="Fourchette",min:r=0,max:s=1e3,minValue:n=100,maxValue:a=600,unit:o="€",onRangeChange:i,error:d,helperText:m}){const[u,c]=p.useState(n),[f,b]=p.useState(a);return e.jsx(D,{label:t,error:d,helperText:m,children:e.jsxs("div",{className:"flex items-center justify-between w-full p-3 gap-3",children:[e.jsxs("div",{className:"flex items-center gap-1.5 flex-1",children:[e.jsx("span",{className:"text-xs text-text-muted",children:"Min:"}),e.jsx("input",{type:"number",min:r,max:f,value:u,onChange:y=>{const x=Number(y.target.value);c(x),i==null||i(x,f)},className:"w-full h-8 px-2 rounded border border-border text-sm text-text outline-none focus:border-primary"}),e.jsx("span",{className:"text-xs text-text-muted",children:o})]}),e.jsx("span",{className:"text-text-muted",children:"—"}),e.jsxs("div",{className:"flex items-center gap-1.5 flex-1",children:[e.jsx("span",{className:"text-xs text-text-muted",children:"Max:"}),e.jsx("input",{type:"number",min:u,max:s,value:f,onChange:y=>{const x=Number(y.target.value);b(x),i==null||i(u,x)},className:"w-full h-8 px-2 rounded border border-border text-sm text-text outline-none focus:border-primary"}),e.jsx("span",{className:"text-xs text-text-muted",children:o})]})]})})}function Ys({label:t="Code de validation (OTP)",length:r=6,value:s,onChange:n,error:a,helperText:o,disabled:i}){const d=p.useId(),[m,u]=p.useState(""),c=s!==void 0?s:m,f=(y,x)=>{x.length>1&&(x=x.slice(-1));const g=c.padEnd(r," ").split("");g[y]=x||" ";const h=g.join("").trimEnd();if(s===void 0&&u(h),n==null||n(h),x&&y<r-1){const v=document.getElementById(`${d}-otp-${y+1}`);v==null||v.focus()}},b=(y,x)=>{if(x.key==="Backspace"&&!c[y]&&y>0){const g=document.getElementById(`${d}-otp-${y-1}`);g==null||g.focus()}};return e.jsx(D,{label:t,error:a,helperText:o,disabled:i,children:e.jsx("div",{className:"flex items-center justify-between w-full p-3 gap-2",children:Array.from({length:r}).map((y,x)=>e.jsx("input",{id:`${d}-otp-${x}`,"aria-label":`Chiffre ${x+1} sur ${r}`,type:"text",inputMode:"numeric",maxLength:1,disabled:i,value:c[x]&&c[x]!==" "?c[x]:"",onChange:g=>f(x,g.target.value),onKeyDown:g=>b(x,g),className:"size-10 rounded-md border border-border bg-surface-muted text-center text-base font-semibold text-text focus:border-primary focus:bg-white focus:outline-none"},x))})})}function Ge({label:t,error:r,helperText:s,required:n,disabled:a,startAdornment:o,endAdornment:i,focused:d,hasValue:m,className:u,children:c,...f}){const b=!!r;return e.jsxs("div",{className:l("relative w-full pt-2.5 pb-1",a&&"opacity-60 pointer-events-none",u),...f,children:[e.jsxs("div",{className:l("group relative flex items-center w-full min-h-11 rounded-md border bg-white transition-all",b?"border-danger focus-within:border-danger focus-within:ring-1 focus-within:ring-danger":d?"border-primary ring-1 ring-primary":"border-border hover:border-text-subtle focus-within:border-primary focus-within:ring-1 focus-within:ring-primary"),children:[e.jsxs("label",{className:l("pointer-events-none absolute -top-3 start-3 z-10 px-1.5 bg-white text-sm leading-none font-medium transition-colors select-none",b?"text-danger":d?"text-primary":"text-text-muted group-focus-within:text-primary group-hover:text-text"),children:[t,n&&e.jsx("span",{className:"ms-0.5 text-danger",children:"*"})]}),o&&e.jsx("div",{className:"flex shrink-0 items-center ps-3 text-text-muted select-none",children:o}),e.jsx("div",{className:"flex-1 min-w-0 flex items-center",children:c}),i&&e.jsx("div",{className:"flex shrink-0 items-center pe-3 text-text-muted select-none",children:i})]}),(r||s)&&e.jsx("p",{className:l("mt-1 text-xs leading-none ps-1",b?"text-danger":"text-text-muted"),children:r||s})]})}const ir=p.forwardRef(({label:t,error:r,helperText:s,startIcon:n,endIcon:a,prefixText:o,suffixText:i,type:d="text",value:m,defaultValue:u,onChange:c,disabled:f,required:b,className:y,placeholder:x,...g},h)=>{const[v,k]=p.useState(!1),[j,N]=p.useState(u??""),P=m!==void 0,T=d==="password",C=T?v?"text":"password":d;return e.jsx(Ge,{label:t,error:r,helperText:s,required:b,disabled:f,className:y,startAdornment:n||o?e.jsxs("div",{className:"flex items-center gap-1.5 text-text-muted text-sm",children:[n,o&&e.jsx("span",{className:"font-medium text-text",children:o})]}):void 0,endAdornment:T?e.jsx("button",{type:"button",tabIndex:-1,onClick:()=>k(!v),className:"text-text-muted hover:text-text cursor-pointer transition-colors","aria-label":v?"Hide password":"Show password",children:v?e.jsxs("svg",{className:"size-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),e.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):e.jsxs("svg",{className:"size-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),e.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}):i||a?e.jsxs("div",{className:"flex items-center gap-1.5 text-text-muted text-sm",children:[i&&e.jsx("span",{className:"font-medium text-text",children:i}),a]}):void 0,children:e.jsx("input",{ref:h,type:C,value:m,defaultValue:u,onChange:S=>{P||N(S.target.value),c==null||c(S)},disabled:f,placeholder:x||(typeof t=="string"?t:void 0),className:l("w-full h-11 px-3.5 bg-transparent text-sm text-text placeholder:text-text-subtle/80 outline-none border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0","disabled:cursor-not-allowed"),...g})})});ir.displayName="GymatraTextField";const lr=p.forwardRef(({label:t,error:r,helperText:s,required:n,disabled:a,className:o,placeholder:i,rows:d=3,...m},u)=>e.jsx(Ge,{label:t,error:r,helperText:s,required:n,disabled:a,className:o,children:e.jsx("textarea",{ref:u,rows:d,disabled:a,placeholder:i||(typeof t=="string"?t:void 0),className:"w-full p-3 bg-transparent text-sm text-text placeholder:text-text-subtle/80 outline-none resize-none",...m})}));lr.displayName="GymatraFloatingTextarea";const cr=p.forwardRef(({label:t,error:r,helperText:s,required:n,disabled:a,options:o,className:i,children:d,...m},u)=>e.jsx(Ge,{label:t,error:r,helperText:s,required:n,disabled:a,className:i,endAdornment:e.jsx("svg",{className:"size-4 text-text-subtle pointer-events-none",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("polyline",{points:"6 9 12 15 18 9"})}),children:e.jsxs("select",{ref:u,disabled:a,className:"w-full h-11 ps-3.5 pe-8 bg-transparent text-sm text-text outline-none appearance-none cursor-pointer border-0 border-none ring-0 shadow-none focus:ring-0 focus:outline-none focus:border-0",...m,children:[o.map(c=>e.jsx("option",{value:c.value,children:c.label},c.value)),d]})}));cr.displayName="GymatraFloatingSelect";function Xs({length:t=6,value:r="",onChange:s,label:n="Code OTP / PIN",error:a,disabled:o}){const[i,d]=p.useState(r),m=r!==void 0?r:i,u=(f,b)=>{b.length>1&&(b=b.slice(-1));const y=m.padEnd(t," ").split("");y[f]=b||" ";const x=y.join("").trimEnd();if(r===void 0&&d(x),s==null||s(x),b&&f<t-1){const g=document.getElementById(`otp-digit-${f+1}`);g==null||g.focus()}},c=(f,b)=>{if(b.key==="Backspace"&&!m[f]&&f>0){const y=document.getElementById(`otp-digit-${f-1}`);y==null||y.focus()}};return e.jsx("div",{className:"relative",children:e.jsx(Ge,{label:n,error:a,disabled:o,children:e.jsx("div",{className:"flex items-center justify-between w-full p-2.5 gap-2",children:Array.from({length:t}).map((f,b)=>e.jsx("input",{id:`otp-digit-${b}`,type:"text",inputMode:"numeric",maxLength:1,disabled:o,value:m[b]&&m[b]!==" "?m[b]:"",onChange:y=>u(b,y.target.value),onKeyDown:y=>c(b,y),className:"size-10 rounded-md border border-border bg-surface-muted text-center text-base font-semibold text-text focus:border-primary focus:bg-white focus:outline-none"},b))})})})}function en({label:t="Photo de profil",src:r,onChange:s,disabled:n}){const[a,o]=p.useState(r),i=p.useId(),d=m=>{var c;const u=(c=m.target.files)==null?void 0:c[0];if(u){const f=URL.createObjectURL(u);o(f),s==null||s(u)}};return e.jsxs("div",{className:"relative rounded-md border border-border p-3.5 bg-white",children:[e.jsx("label",{className:"absolute -top-2.5 start-2.5 px-1 bg-white text-xs font-medium text-text-muted",children:t}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"relative size-12 shrink-0 rounded-full border border-border overflow-hidden bg-surface-muted flex items-center justify-center text-text-muted",children:a?e.jsx("img",{src:a,alt:"Avatar preview",className:"size-full object-cover"}):e.jsx("svg",{className:"size-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:e.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("input",{id:i,type:"file",accept:"image/*",disabled:n,onChange:d,className:"hidden"}),e.jsx("label",{htmlFor:i,className:"inline-flex h-8 items-center justify-center rounded-md border border-border bg-surface px-3 text-xs font-medium text-text hover:bg-surface-muted cursor-pointer transition-colors",children:"Téléverser une image"}),e.jsx("p",{className:"mt-1 text-xs text-text-muted",children:"PNG, JPG jusqu'à 2MB"})]})]})]})}const dr="grid min-w-0 gap-1.5 text-text",ur="text-xs font-medium text-text-muted",xr="ms-1 text-primary",mr="text-xs text-text-muted",Me="text-xs text-danger",st="flex min-h-10 w-full items-center rounded-md border border-border bg-white px-3 text-sm text-text placeholder:text-text-subtle outline-none transition-colors hover:border-border-strong focus-visible:border-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary/30 aria-[invalid=true]:border-danger data-[invalid]:border-danger disabled:cursor-not-allowed disabled:bg-surface-muted disabled:text-text-subtle";function tn({className:t,...r}){return e.jsx(kt.Form,{...r,className:typeof t=="function"?s=>l("flex flex-col gap-6",t(s)):l("flex flex-col gap-6",t)})}function rn({name:t,label:r,description:s,error:n,required:a,disabled:o,validate:i,validationMode:d,className:m,children:u}){return e.jsxs(U.Field.Root,{name:t,invalid:!!n,disabled:o,validate:i,validationMode:d,className:l(dr,m),children:[e.jsxs(U.Field.Label,{className:ur,children:[r,a&&e.jsx("span",{className:xr,"aria-hidden":"true",children:"*"})]}),u,s&&e.jsx(U.Field.Description,{className:mr,children:s}),n?e.jsx(U.Field.Error,{match:!0,className:Me,children:n}):e.jsx(U.Field.Error,{match:"valueMissing",className:Me,children:"This field is required."}),!n&&e.jsx(U.Field.Error,{match:"typeMismatch",className:Me,children:"Enter a valid value."})]})}const pr=p.forwardRef(({className:t,...r},s)=>e.jsx(U.Field.Control,{ref:s,render:e.jsx(Gt.Input,{}),...r,className:l(st,t)}));pr.displayName="GymatraInput";function sn({rows:t=4,className:r,...s}){return e.jsx(U.Field.Control,{...s,render:e.jsx("textarea",{rows:t}),className:l(st,"min-h-24 resize-y py-2.5",r)})}function nn({name:t,label:r,description:s,error:n,options:a,value:o,defaultValue:i,onValueChange:d,placeholder:m="Choose an option",required:u,disabled:c,className:f}){const b=p.useId(),y=s?`${b}-description`:void 0,x=`${b}-error`;return e.jsxs(U.Field.Root,{name:t,invalid:!!n,disabled:c,className:l(dr,f),children:[e.jsxs(U.Field.Label,{htmlFor:b,className:ur,children:[r,u&&e.jsx("span",{className:xr,"aria-hidden":"true",children:"*"})]}),e.jsxs(_.Select.Root,{name:t,id:b,items:a,value:o,defaultValue:i,onValueChange:d,required:u,disabled:c,children:[e.jsxs(_.Select.Trigger,{"aria-describedby":[y,x].filter(Boolean).join(" "),"aria-invalid":n?!0:void 0,className:l(st,"cursor-pointer justify-between gap-3 text-start data-[popup-open]:border-primary"),children:[e.jsx(_.Select.Value,{placeholder:m}),e.jsx(_.Select.Icon,{"aria-hidden":"true",className:"flex text-text-muted",children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:e.jsx("path",{d:"m6 9 6 6 6-6"})})})]}),e.jsx(_.Select.Portal,{children:e.jsx(_.Select.Positioner,{sideOffset:4,className:"z-50 outline-none",children:e.jsx(_.Select.Popup,{className:"min-w-[var(--anchor-width)] overflow-hidden rounded-md border border-border bg-white p-1 text-text shadow-none outline-none",children:e.jsx(_.Select.List,{children:a.map(g=>e.jsxs(_.Select.Item,{value:g.value,className:"flex min-h-9 cursor-default items-center justify-between gap-2 rounded-sm px-2.5 text-sm text-text outline-none data-[highlighted]:bg-primary-soft data-[highlighted]:text-primary data-[selected]:font-semibold data-[selected]:text-primary",children:[e.jsx(_.Select.ItemText,{children:g.label}),e.jsx(_.Select.ItemIndicator,{className:"flex text-primary",children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"size-4","aria-hidden":"true",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})})})]},g.value))})})})})]}),s&&e.jsx(U.Field.Description,{id:y,className:mr,children:s}),e.jsx(U.Field.Error,{id:x,match:n?!0:"valueMissing",className:Me,children:n??"Choose an option."})]})}const an=R.Menu.Root,on=R.Menu.Trigger,ln=R.Menu.Portal,cn=R.Menu.Positioner,dn=R.Menu.Group,un=R.Menu.RadioGroup,xn=R.Menu.SubmenuRoot,fe=p.forwardRef(({className:t,children:r,...s},n)=>e.jsx(R.Menu.Popup,{ref:n,className:l("z-50 min-w-48 rounded-lg border border-border bg-white p-1 text-sm text-text outline-none shadow-none",t),...s,children:r}));fe.displayName="GymatraMenuPopup";const Be=p.forwardRef(({variant:t="default",startIcon:r,endIcon:s,shortcut:n,className:a,children:o,...i},d)=>e.jsxs(R.Menu.Item,{ref:d,className:l("group relative flex w-full cursor-pointer select-none items-center gap-2 rounded-md px-2.5 py-1.5 text-sm outline-none transition-colors","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t==="danger"?"text-danger data-[highlighted]:bg-danger-soft data-[highlighted]:text-danger font-medium":t==="primary"?"text-primary data-[highlighted]:bg-primary-soft data-[highlighted]:text-primary font-medium":"text-text data-[highlighted]:bg-surface-muted data-[highlighted]:text-text",a),...i,children:[r&&e.jsx("span",{className:"shrink-0 size-4 text-text-muted group-data-[highlighted]:text-current flex items-center justify-center",children:r}),e.jsx("span",{className:"flex-1 truncate",children:o}),n&&e.jsx("kbd",{className:"ml-auto pl-3 font-mono text-xs text-text-muted",children:n}),s&&e.jsx("span",{className:"shrink-0 size-4 text-text-muted group-data-[highlighted]:text-current flex items-center justify-center ml-auto",children:s})]}));Be.displayName="GymatraMenuItem";const Ae=p.forwardRef(({className:t,...r},s)=>e.jsx(R.Menu.Separator,{ref:s,className:l("my-1 h-px bg-border -mx-1",t),...r}));Ae.displayName="GymatraMenuSeparator";const De=p.forwardRef(({className:t,...r},s)=>e.jsx(R.Menu.GroupLabel,{ref:s,className:l("px-2.5 py-1 text-xs font-semibold uppercase tracking-wider text-text-muted select-none",t),...r}));De.displayName="GymatraMenuGroupLabel";function mn({className:t="size-3.5"}){return e.jsx("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}function pn({className:t="size-3.5"}){return e.jsx("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m9 18 6-6-6-6"})})}const Fe=p.forwardRef(({className:t,children:r,shortcut:s,...n},a)=>e.jsxs(R.Menu.CheckboxItem,{ref:a,className:l("group relative flex w-full cursor-pointer select-none items-center gap-2 rounded-md px-2.5 py-1.5 text-sm text-text outline-none transition-colors","data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-surface-muted",t),...n,children:[e.jsx("span",{className:"shrink-0 size-4 flex items-center justify-center text-primary",children:e.jsx(R.Menu.CheckboxItemIndicator,{children:e.jsx(mn,{})})}),e.jsx("span",{className:"flex-1 truncate",children:r}),s&&e.jsx("kbd",{className:"ml-auto pl-3 font-mono text-xs text-text-muted",children:s})]}));Fe.displayName="GymatraMenuCheckboxItem";const Ee=p.forwardRef(({className:t,children:r,...s},n)=>e.jsxs(R.Menu.RadioItem,{ref:n,className:l("group relative flex w-full cursor-pointer select-none items-center gap-2 rounded-md px-2.5 py-1.5 text-sm text-text outline-none transition-colors","data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-surface-muted",t),...s,children:[e.jsx("span",{className:"shrink-0 size-4 flex items-center justify-center text-primary",children:e.jsx(R.Menu.RadioItemIndicator,{children:e.jsx("span",{className:"size-2 rounded-full bg-primary"})})}),e.jsx("span",{className:"flex-1 truncate",children:r})]}));Ee.displayName="GymatraMenuRadioItem";const We=p.forwardRef(({startIcon:t,className:r,children:s,...n},a)=>e.jsxs(R.Menu.SubmenuTrigger,{ref:a,className:l("group relative flex w-full cursor-pointer select-none items-center justify-between gap-2 rounded-md px-2.5 py-1.5 text-sm text-text outline-none transition-colors","data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-surface-muted",r),...n,children:[e.jsxs("div",{className:"flex items-center gap-2 truncate",children:[t&&e.jsx("span",{className:"shrink-0 size-4 text-text-muted group-data-[highlighted]:text-current flex items-center justify-center",children:t}),e.jsx("span",{className:"truncate",children:s})]}),e.jsx(pn,{className:"size-3.5 text-text-muted shrink-0"})]}));We.displayName="GymatraMenuSubmenuTrigger";function Oe(t){return t.map((r,s)=>{const n=r.key??`menu-item-${s}`;return r.type==="separator"?e.jsx(Ae,{},n):r.type==="label"?e.jsx(De,{children:r.label},n):r.type==="checkbox"?e.jsx(Fe,{checked:r.checked,onCheckedChange:r.onCheckedChange,shortcut:r.shortcut,disabled:r.disabled,children:r.label},n):r.type==="radio"?e.jsx(Ee,{value:r.value??String(n),disabled:r.disabled,children:r.label},n):r.items&&r.items.length>0?e.jsxs(R.Menu.SubmenuRoot,{children:[e.jsx(We,{startIcon:r.startIcon??r.icon,disabled:r.disabled,children:r.label}),e.jsx(R.Menu.Portal,{children:e.jsx(R.Menu.Positioner,{sideOffset:4,align:"start",className:"z-50 outline-none",children:e.jsx(fe,{children:Oe(r.items)})})})]},n):e.jsx(Be,{variant:r.variant,startIcon:r.startIcon??r.icon,endIcon:r.endIcon,shortcut:r.shortcut,disabled:r.disabled,onClick:r.onClick,children:r.label},n)})}function fn({trigger:t,items:r,open:s,defaultOpen:n,onOpenChange:a,side:o="bottom",align:i="start",sideOffset:d=6,width:m="min-w-[200px]",popupClassName:u,children:c}){const f=s!==void 0?{open:s,onOpenChange:a}:n!==void 0?{defaultOpen:n,onOpenChange:a}:{onOpenChange:a};return e.jsxs(R.Menu.Root,{...f,children:[e.jsx(R.Menu.Trigger,{render:p.isValidElement(t)?t:e.jsx("button",{type:"button",children:t})}),e.jsx(R.Menu.Portal,{children:e.jsx(R.Menu.Positioner,{side:o,align:i,sideOffset:d,className:"z-50 outline-none",children:e.jsx(fe,{className:l(m,u),children:r&&r.length>0?Oe(r):c})})})]})}const bn=Ct.Menubar,hn=R.Menu.Root,yn=R.Menu.Portal,gn=R.Menu.Positioner,jn=R.Menu.Group,vn=R.Menu.RadioGroup,wn=R.Menu.SubmenuRoot,Nn=fe,kn=Be,Gn=Ae,Cn=De,Sn=Fe,Pn=Ee,zn=We,nt=p.forwardRef(({className:t,startIcon:r,children:s,...n},a)=>e.jsxs(R.Menu.Trigger,{ref:a,className:l("flex cursor-pointer select-none items-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium text-text outline-none transition-colors","hover:bg-surface-muted hover:text-text","data-[popup-open]:bg-primary-soft data-[popup-open]:text-primary","focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",t),...n,children:[r&&e.jsx("span",{className:"shrink-0 size-4 text-text-muted flex items-center justify-center",children:r}),e.jsx("span",{children:s})]}));nt.displayName="GymatraMenubarTrigger";const fr=p.forwardRef(({menus:t,bordered:r=!0,className:s,children:n,...a},o)=>e.jsx(Ct.Menubar,{ref:o,className:l("flex items-center gap-0.5 text-sm text-text select-none",r?"rounded-md border border-border bg-white p-1 shadow-none":"bg-transparent p-0.5",s),...a,children:t&&t.length>0?t.map((i,d)=>{const m=i.key??`menubar-menu-${d}`;return e.jsxs(R.Menu.Root,{disabled:i.disabled,children:[e.jsx(nt,{startIcon:i.startIcon,disabled:i.disabled,children:i.trigger}),e.jsx(R.Menu.Portal,{children:e.jsx(R.Menu.Positioner,{side:i.side??"bottom",align:i.align??"start",sideOffset:i.sideOffset??6,className:"z-50 outline-none",children:e.jsx(fe,{className:l(i.width??"min-w-52",i.popupClassName),children:Oe(i.items)})})})]},m)}):n}));fr.displayName="GymatraMenubar";function In({className:t="size-3.5"}){return e.jsx("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m15 18-6-6 6-6"})})}function Mn({className:t="size-3.5"}){return e.jsx("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m9 18 6-6-6-6"})})}function Tn({className:t="size-3"}){return e.jsx("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m6 9 6 6 6-6"})})}function Rn({className:t="size-3"}){return e.jsx("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}function at({page:t,total:r,pageSize:s,onPageChange:n,pageSizeOptions:a,onPageSizeChange:o,showSummary:i=!0,className:d,...m}){const u=Math.max(1,Math.ceil(r/s)),c=Math.min(Math.max(1,t),u),f=r===0?0:(c-1)*s+1,b=Math.min(c*s,r),[y,x]=p.useState(!1),g=p.useRef(null);p.useEffect(()=>{function k(j){g.current&&!g.current.contains(j.target)&&x(!1)}if(y)return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[y]);function h(){return u<=7?Array.from({length:u},(k,j)=>j+1):c<=4?[1,2,3,4,5,"ellipsis",u]:c>=u-3?[1,"ellipsis",u-4,u-3,u-2,u-1,u]:[1,"ellipsis",c-1,c,c+1,"ellipsis",u]}const v=h();return e.jsxs("div",{className:l("flex flex-wrap items-center justify-between gap-3 pt-3 px-1 text-sm text-text-muted",d),...m,children:[e.jsxs("div",{className:"flex items-center gap-2 text-text-muted text-sm",children:[i&&e.jsxs("span",{children:["Display ",f," to ",b," of ",r]}),a&&a.length>0&&o&&e.jsxs("div",{ref:g,className:"relative inline-block text-left",children:[e.jsxs("button",{type:"button",onClick:()=>x(k=>!k),"aria-haspopup":"listbox","aria-expanded":y,"aria-label":`Rows per page: ${s}`,className:l("inline-flex h-7 items-center justify-between gap-2 rounded-md border border-border bg-white px-2.5 text-sm text-text cursor-pointer transition-colors outline-none","hover:border-border-strong hover:bg-surface/50","focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary",y&&"border-primary bg-primary-soft/30 text-primary"),children:[e.jsx("span",{children:s}),e.jsx("span",{className:l("text-text-subtle transition-transform duration-150 flex items-center",y&&"rotate-180 text-primary"),"aria-hidden":"true",children:e.jsx(Tn,{})})]}),y&&e.jsx("div",{role:"listbox","aria-label":"Rows per page",className:"absolute left-0 bottom-full z-50 mb-1 min-w-[75px] rounded-lg border border-border bg-white p-1 shadow-none focus:outline-none",children:a.map(k=>{const j=k===s;return e.jsxs("button",{type:"button",role:"option","aria-selected":j,onClick:()=>{o(k),x(!1)},className:l("flex w-full items-center justify-between rounded px-2 py-1 text-sm text-left cursor-pointer transition-colors outline-none","hover:bg-surface hover:text-text",j?"bg-primary-soft/40 text-primary font-medium":"text-text font-normal"),children:[e.jsx("span",{children:k}),j&&e.jsx("span",{className:"text-primary","aria-hidden":"true",children:e.jsx(Rn,{})})]},k)})})]})]}),e.jsxs("div",{className:"flex items-center gap-1 ms-auto",children:[e.jsx("button",{type:"button",disabled:c<=1,onClick:()=>n(c-1),"aria-label":"Previous page",className:"flex size-7 items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-surface disabled:pointer-events-none disabled:opacity-30 cursor-pointer transition-colors",children:e.jsx(In,{})}),v.map((k,j)=>{if(k==="ellipsis")return e.jsx("span",{className:"flex size-7 items-center justify-center text-text-subtle select-none",children:"…"},`ellipsis-${j}`);const N=k===c;return e.jsx("button",{type:"button",onClick:()=>n(k),"aria-current":N?"page":void 0,className:l("flex size-7 items-center justify-center rounded-full text-sm font-medium cursor-pointer transition-colors",N?"bg-primary text-white":"text-text hover:bg-surface"),children:k},k)}),e.jsx("button",{type:"button",disabled:c>=u,onClick:()=>n(c+1),"aria-label":"Next page",className:"flex size-7 items-center justify-center rounded-full text-text-muted hover:text-text hover:bg-surface disabled:pointer-events-none disabled:opacity-30 cursor-pointer transition-colors",children:e.jsx(Mn,{})})]})]})}at.displayName="GymatraPagination";const Ln=H.Popover.Root,Bn=H.Popover.Trigger,An=H.Popover.Portal,Dn=H.Popover.Positioner,ot=p.forwardRef(({className:t,children:r,...s},n)=>e.jsx(H.Popover.Popup,{ref:n,className:l("relative z-50 rounded-lg border border-border bg-white p-4 text-text outline-none shadow-none",t),...s,children:r}));ot.displayName="GymatraPopoverPopup";const it=p.forwardRef(({className:t,...r},s)=>e.jsx(H.Popover.Title,{ref:s,className:l("text-sm font-semibold text-text",t),...r}));it.displayName="GymatraPopoverTitle";const lt=p.forwardRef(({className:t,...r},s)=>e.jsx(H.Popover.Description,{ref:s,className:l("mt-1 text-xs leading-relaxed text-text-muted",t),...r}));lt.displayName="GymatraPopoverDescription";function Fn({className:t="size-3.5"}){return e.jsx("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})}const ct=p.forwardRef(({className:t,children:r,...s},n)=>e.jsx(H.Popover.Close,{ref:n,className:l("absolute top-3 right-3 rounded-md p-1 text-text-muted hover:bg-surface-muted hover:text-text cursor-pointer transition-colors outline-none focus-visible:outline-2 focus-visible:outline-primary",t),"aria-label":"Fermer",...s,children:r??e.jsx(Fn,{})}));ct.displayName="GymatraPopoverClose";const br=p.forwardRef(({className:t,...r},s)=>e.jsx(H.Popover.Arrow,{ref:s,className:l("fill-white stroke-border stroke-1",t),...r}));br.displayName="GymatraPopoverArrow";function En({trigger:t,title:r,description:s,content:n,children:a,footer:o,side:i="bottom",align:d="center",sideOffset:m=8,width:u="w-80",showCloseButton:c=!0,open:f,defaultOpen:b,onOpenChange:y,modal:x=!1,popupClassName:g}){const h=f!==void 0?{open:f,onOpenChange:y,modal:x}:b!==void 0?{defaultOpen:b,onOpenChange:y,modal:x}:{onOpenChange:y,modal:x};return e.jsxs(H.Popover.Root,{...h,children:[e.jsx(H.Popover.Trigger,{render:p.isValidElement(t)?t:e.jsx("button",{type:"button",children:t})}),e.jsx(H.Popover.Portal,{children:e.jsx(H.Popover.Positioner,{side:i,align:d,sideOffset:m,className:"z-50 outline-none",children:e.jsxs(ot,{className:l(u,g),children:[c&&e.jsx(ct,{}),(r||s)&&e.jsxs("div",{className:l("space-y-1",c?"pr-6":void 0),children:[r&&e.jsx(it,{children:r}),s&&e.jsx(lt,{children:s})]}),(n||a)&&e.jsx("div",{className:l(r||s?"mt-3":void 0),children:n??a}),o&&e.jsx("div",{className:"mt-4 pt-3 border-t border-border flex items-center justify-end gap-2",children:o})]})})})]})}const Wn=X.Progress.Root,On=X.Progress.Track,$n=X.Progress.Indicator,Vn=X.Progress.Label,qn=X.Progress.Value,Un={primary:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info"},Hn={xs:"h-1",sm:"h-1.5",md:"h-2",lg:"h-3"},_n={pill:"rounded-full",rounded:"rounded-md",square:"rounded-none"};function Kn({value:t,min:r=0,max:s=100,label:n,description:a,showValue:o=!0,formatValue:i,variant:d="primary",size:m="md",shape:u="pill",className:c,trackClassName:f,indicatorClassName:b}){const y=t===null,x=_n[u],g=t!==null?Math.round((t-r)/(s-r)*100):0;return e.jsxs(X.Progress.Root,{value:t,min:r,max:s,className:l("w-full space-y-1.5",c),children:[(n||o)&&e.jsxs("div",{className:"flex items-center justify-between gap-2 text-xs font-medium",children:[e.jsxs("div",{className:"space-y-0.5 min-w-0",children:[n&&e.jsx(X.Progress.Label,{className:"text-text font-medium truncate",children:n}),a&&e.jsx("p",{className:"text-xs text-text-muted",children:a})]}),o&&!y&&e.jsx("span",{className:"text-text-muted font-mono font-medium shrink-0 ml-auto",children:i?i(t):`${g}%`})]}),e.jsx(X.Progress.Track,{className:l("relative w-full overflow-hidden bg-surface-muted",Hn[m],x,f),children:e.jsx(X.Progress.Indicator,{className:l("h-full transition-all duration-300 ease-out",Un[d],x,y&&"w-1/3 animate-[indeterminate_1.5s_infinite_ease-in-out]",b)})})]})}const Qn={primary:"text-primary",success:"text-success",warning:"text-warning",danger:"text-danger",info:"text-info"};function Zn({value:t,size:r=80,strokeWidth:s=8,variant:n="primary",children:a,className:o,showValue:i=!0}){const d=Math.min(100,Math.max(0,t)),m=(r-s)/2,u=2*Math.PI*m,c=u-d/100*u;return e.jsxs("div",{className:l("relative inline-flex items-center justify-center shrink-0",o),style:{width:r,height:r},role:"progressbar","aria-valuenow":d,"aria-valuemin":0,"aria-valuemax":100,children:[e.jsxs("svg",{className:"-rotate-90 origin-center",width:r,height:r,viewBox:`0 0 ${r} ${r}`,children:[e.jsx("circle",{className:"text-surface-muted",strokeWidth:s,stroke:"currentColor",fill:"transparent",r:m,cx:r/2,cy:r/2}),e.jsx("circle",{className:l(Qn[n],"transition-all duration-500 ease-out"),strokeWidth:s,strokeDasharray:u,strokeDashoffset:c,strokeLinecap:"round",stroke:"currentColor",fill:"transparent",r:m,cx:r/2,cy:r/2})]}),e.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-center p-1",children:a??(i&&e.jsxs("span",{className:"text-xs font-medium font-mono tabular-nums text-text",children:[Math.round(d),"%"]}))})]})}const Jn=St.Separator,hr=p.forwardRef(({orientation:t="horizontal",variant:r="default",decorative:s=!0,label:n,children:a,labelPosition:o="center",className:i,...d},m)=>{const u=t==="horizontal",c=n??a,f=()=>{switch(r){case"subtle":return u?"h-px w-full bg-border/50":"w-px h-full min-h-[1rem] bg-border/50 self-stretch";case"primary":return u?"h-px w-full bg-primary/40":"w-px h-full min-h-[1rem] bg-primary/40 self-stretch";case"dashed":return u?"h-0 w-full border-t border-dashed border-border":"w-0 h-full min-h-[1rem] border-s border-dashed border-border self-stretch";case"dotted":return u?"h-0 w-full border-t border-dotted border-border":"w-0 h-full min-h-[1rem] border-s border-dotted border-border self-stretch";case"default":default:return u?"h-px w-full bg-border":"w-px h-full min-h-[1rem] bg-border self-stretch"}};if(u&&c){const b=f();return e.jsxs("div",{ref:m,role:s?"none":"separator","aria-orientation":"horizontal",className:l("flex w-full items-center select-none text-xs font-medium text-text-muted",i),...d,children:[e.jsx("div",{className:l(o==="start"?"w-6 shrink-0":"flex-1",b)}),e.jsx("span",{className:"px-3 shrink-0 flex items-center gap-1.5",children:c}),e.jsx("div",{className:l(o==="end"?"w-6 shrink-0":"flex-1",b)})]})}return e.jsx(St.Separator,{ref:m,orientation:t,role:s?"none":"separator",className:l("shrink-0",f(),i),...d})});hr.displayName="GymatraSeparator";const ue=p.createContext(null);function yr(){const t=p.useContext(ue);if(!t)throw new Error("useGymatraStepper must be used within a GymatraStepper");return t}function gr({className:t}){return e.jsx("svg",{className:l("size-3.5",t),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}function Yn({className:t}){return e.jsxs("svg",{className:l("size-3.5",t),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}function Xn({steps:t,currentStep:r,activeStep:s,orientation:n="horizontal",variant:a="numbered",layout:o="inline",size:i="md",clickable:d=!1,allowStepAdvance:m=!1,onStepClick:u,className:c,children:f,...b}){const y=r??s??0,x=t?t.length:p.Children.count(f),g={currentStep:y,orientation:n,variant:a,size:i,layout:o,clickable:d,allowStepAdvance:m,onStepClick:u,totalSteps:x};return n==="vertical"?e.jsx(ue.Provider,{value:g,children:e.jsx("div",{role:"navigation","aria-label":"Progress Stepper",className:l("w-full flex flex-col",c),...b,children:t?t.map((h,v)=>{const k=v===t.length-1,j=h.status??(v<y?"complete":v===y?"current":"upcoming");return e.jsx(jr,{stepIndex:v,status:j,title:h.title,description:h.description,icon:h.icon,completedIcon:h.completedIcon,errorIcon:h.errorIcon,optional:h.optional,disabled:h.disabled,badge:h.badge,isLast:k},h.id??v)}):f})}):t&&a==="pills"&&n==="horizontal"?e.jsx(ue.Provider,{value:g,children:e.jsx("nav",{role:"navigation","aria-label":"Progress Stepper",className:l("w-full text-text",c),...b,children:e.jsx("ol",{className:"flex flex-wrap items-center gap-2 sm:gap-2.5 w-full",children:t.map((h,v)=>{const k=v===t.length-1,j=h.status??(v<y?"complete":v===y?"current":"upcoming"),N=j==="complete",P=j==="current",T=j==="error",C=d&&!h.disabled&&(m||N||P),S=()=>{C&&u&&u(v,h)};return e.jsxs("li",{className:"inline-flex items-center gap-2",children:[e.jsxs("button",{type:"button",disabled:!C||h.disabled,onClick:S,"aria-current":P?"step":void 0,className:l("inline-flex items-center gap-2 px-3 py-1.5 rounded-full text-xs transition-all outline-none",P?"bg-primary text-white font-medium ring-2 ring-primary/25":N?"bg-primary-soft text-primary font-medium hover:bg-primary-soft/80":T?"bg-danger-soft text-danger border border-danger/30 font-medium":"bg-surface-muted text-text-muted font-normal hover:text-text",C&&"cursor-pointer focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",!C&&"cursor-default",h.disabled&&"opacity-50 pointer-events-none"),children:[e.jsx("span",{className:l("flex size-4 items-center justify-center rounded-full text-xs font-medium shrink-0",P?"bg-white/20 text-white":N?"bg-primary text-white":T?"bg-danger text-white":"bg-border text-text-muted"),children:N?e.jsx(gr,{className:"size-2.5"}):v+1}),e.jsx("span",{className:"truncate",children:h.title})]}),!k&&e.jsx("span",{className:"text-text-subtle text-xs select-none","aria-hidden":"true",children:"/"})]},h.id??v)})})})}):t&&n==="horizontal"&&o==="centered"?e.jsx(ue.Provider,{value:g,children:e.jsx("nav",{role:"navigation","aria-label":"Progress Stepper",className:l("w-full text-text",c),...b,children:e.jsx("ol",{className:"flex items-start justify-between w-full",children:t.map((h,v)=>{const k=v===0,j=v===t.length-1,N=h.status??(v<y?"complete":v===y?"current":"upcoming"),P=N==="complete",T=N==="current",C=d&&!h.disabled&&(m||P||T),S=()=>{C&&u&&u(v,h)},w=z=>{C&&(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),S())};return e.jsxs("li",{className:"relative flex-1 flex flex-col items-center text-center group",children:[!k&&e.jsx("div",{"aria-hidden":"true",className:"absolute top-4 -translate-y-1/2 left-0 right-1/2 h-0.5 bg-border -z-0",children:e.jsx("div",{className:l("h-full transition-all duration-300",v<=y?"bg-primary":"bg-transparent")})}),!j&&e.jsx("div",{"aria-hidden":"true",className:"absolute top-4 -translate-y-1/2 left-1/2 right-0 h-0.5 bg-border -z-0",children:e.jsx("div",{className:l("h-full transition-all duration-300",v<y?"bg-primary":"bg-transparent")})}),e.jsxs("div",{role:C?"button":void 0,tabIndex:C?0:void 0,onClick:C?S:void 0,onKeyDown:C?w:void 0,"aria-current":T?"step":void 0,className:l("relative z-10 flex flex-col items-center outline-none group rounded-lg p-1 transition-colors",C&&"cursor-pointer hover:bg-surface-muted/40 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",h.disabled&&"opacity-50 pointer-events-none"),children:[e.jsx("div",{className:"bg-white rounded-full p-0.5 ring-4 ring-white",children:e.jsx(we,{stepIndex:v,status:N,icon:h.icon,completedIcon:h.completedIcon,errorIcon:h.errorIcon,variant:a,size:i})}),e.jsxs("div",{className:"mt-2 flex flex-col items-center max-w-[140px]",children:[e.jsx("span",{className:l("text-xs leading-tight transition-colors",T?"text-primary font-medium":P?"text-text font-medium":N==="error"?"text-danger font-medium":"text-text-muted"),children:h.title}),h.description&&e.jsx("span",{className:"text-xs text-text-muted mt-0.5 hidden sm:block truncate w-full",children:h.description}),h.badge&&e.jsx("span",{className:"mt-1",children:h.badge})]})]})]},h.id??v)})})})}):t&&n==="horizontal"?e.jsx(ue.Provider,{value:g,children:e.jsx("nav",{role:"navigation","aria-label":"Progress Stepper",className:l("w-full text-text",c),...b,children:e.jsx("ol",{className:"flex items-center w-full",children:t.map((h,v)=>{const k=v===t.length-1,j=h.status??(v<y?"complete":v===y?"current":"upcoming"),N=j==="complete",P=j==="current",T=j==="error",C=d&&!h.disabled&&(m||N||P),S=()=>{C&&u&&u(v,h)},w=z=>{C&&(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),S())};return e.jsxs("li",{className:l("flex items-center min-w-0",k?"flex-none":"flex-1"),children:[e.jsxs("div",{role:C?"button":void 0,tabIndex:C?0:void 0,onClick:C?S:void 0,onKeyDown:C?w:void 0,"aria-current":P?"step":void 0,className:l("flex items-center gap-2.5 sm:gap-3 shrink-0 rounded-lg outline-none transition-colors p-1 -m-1",C&&"cursor-pointer hover:bg-surface-muted/50 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",h.disabled&&"opacity-50 pointer-events-none"),children:[e.jsx(we,{stepIndex:v,status:j,icon:h.icon,completedIcon:h.completedIcon,errorIcon:h.errorIcon,variant:a,size:i}),e.jsxs("div",{className:"flex flex-col text-start min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[e.jsx("span",{className:l("leading-tight truncate transition-colors",i==="sm"?"text-xs":i==="lg"?"text-base":"text-sm",P?"text-primary font-medium":N?"text-text font-medium":T?"text-danger font-medium":"text-text-muted font-normal"),children:h.title}),h.optional&&e.jsx("span",{className:"text-xs text-text-muted font-normal",children:"(Facultatif)"}),h.badge&&e.jsx("span",{children:h.badge})]}),h.description&&e.jsx("span",{className:"text-text-muted leading-tight mt-0.5 truncate hidden md:inline-block text-xs",children:h.description})]})]}),!k&&e.jsx("div",{"aria-hidden":"true",className:"flex-1 mx-2 sm:mx-4 h-0.5 min-w-3 sm:min-w-6 bg-border relative overflow-hidden rounded-full shrink",children:e.jsx("div",{className:l("h-full w-full transition-all duration-300",v<y?"bg-primary":"bg-transparent")})})]},h.id??v)})})})}):e.jsx(ue.Provider,{value:g,children:e.jsx("div",{role:"navigation","aria-label":"Progress Stepper",className:l("w-full text-text",n==="horizontal"?"flex flex-row items-start justify-between":"flex flex-col space-y-0",c),...b,children:f})})}function jr({stepIndex:t=0,status:r,title:s,description:n,icon:a,completedIcon:o,errorIcon:i,optional:d,disabled:m,badge:u,isLast:c=!1,className:f,children:b,...y}){const{currentStep:x,orientation:g,variant:h,size:v,clickable:k,allowStepAdvance:j,onStepClick:N}=yr(),P=r??(t<x?"complete":t===x?"current":"upcoming"),T=P==="complete",C=P==="current",S=P==="error",w=k&&!m&&(j||T||C),z=()=>{w&&N&&N(t)},E=L=>{w&&(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),z())};return g==="vertical"?e.jsxs("div",{className:l("relative flex items-stretch gap-3.5 group",m&&"opacity-50 pointer-events-none",f),...y,children:[e.jsxs("div",{className:"flex flex-col items-center shrink-0",children:[e.jsx("div",{role:w?"button":void 0,tabIndex:w?0:void 0,onClick:w?z:void 0,onKeyDown:w?E:void 0,"aria-current":C?"step":void 0,className:l("rounded-full outline-none transition-transform",w&&"cursor-pointer hover:scale-105 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"),children:e.jsx(we,{stepIndex:t,status:P,icon:a,completedIcon:o,errorIcon:i,variant:h,size:v})}),!c&&e.jsx("div",{className:l("w-0.5 flex-1 my-1.5 transition-colors duration-200 min-h-7",T?"bg-primary":"bg-border"),"aria-hidden":"true"})]}),e.jsxs("div",{className:l("flex-1 min-w-0 pb-6",c&&"pb-1"),children:[e.jsxs("div",{role:w?"button":void 0,tabIndex:w?0:void 0,onClick:w?z:void 0,onKeyDown:w?E:void 0,className:l("flex flex-col outline-none rounded-md",w&&"cursor-pointer"),children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:l("leading-tight transition-colors",v==="sm"?"text-xs":v==="lg"?"text-base":"text-sm",C?"text-primary font-medium":T?"text-text font-medium":S?"text-danger font-medium":"text-text-muted font-normal"),children:s}),d&&e.jsx("span",{className:"text-xs text-text-muted font-normal",children:"(Facultatif)"}),u&&e.jsx("span",{children:u})]}),n&&e.jsx("p",{className:"text-xs text-text-muted mt-0.5 leading-relaxed",children:n})]}),b&&e.jsx("div",{className:"mt-2.5",children:b})]})]}):e.jsx("div",{className:l("group relative flex flex-col items-center flex-1 text-center sm:flex-row sm:items-start sm:text-start",m&&"opacity-50 pointer-events-none",f),...y,children:e.jsxs("div",{role:w?"button":void 0,tabIndex:w?0:void 0,onClick:w?z:void 0,onKeyDown:w?E:void 0,"aria-current":C?"step":void 0,className:l("flex items-start gap-3 rounded-lg transition-colors outline-none flex-col sm:flex-row items-center sm:items-start",w&&"cursor-pointer p-1.5 -m-1.5 rounded-md hover:bg-surface-muted/70 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"),children:[e.jsx(we,{stepIndex:t,status:P,icon:a,completedIcon:o,errorIcon:i,variant:h,size:v}),(s||n||b)&&e.jsxs("div",{className:"min-w-0 flex flex-col items-center sm:items-start",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s&&e.jsx("span",{className:l("leading-tight truncate transition-colors",v==="sm"?"text-xs":v==="lg"?"text-base":"text-sm",C?"text-primary font-medium":T?"text-text font-medium":S?"text-danger font-medium":"text-text-muted font-normal"),children:s}),d&&e.jsx("span",{className:"text-xs text-text-muted font-normal",children:"(Facultatif)"}),u&&e.jsx("span",{children:u})]}),n&&e.jsx("p",{className:"text-text-muted leading-relaxed mt-0.5 text-xs",children:n}),b]})]})})}function we({stepIndex:t,status:r,icon:s,completedIcon:n,errorIcon:a,variant:o="numbered",size:i="md"}){const d=r==="complete",m=r==="current",u=r==="error";if(o==="dots"){const f=i==="sm"?"size-2.5":i==="lg"?"size-4":"size-3";return e.jsx("span",{"aria-hidden":"true",className:l("rounded-full shrink-0 transition-all duration-200 mt-1.5",f,d?"bg-primary":m?"bg-primary ring-4 ring-primary/25 scale-125":u?"bg-danger ring-2 ring-danger/20":"bg-border")})}const c=i==="sm"?"size-6 text-xs":i==="lg"?"size-10 text-sm":"size-8 text-xs font-medium";return e.jsx("span",{className:l("relative flex shrink-0 items-center justify-center rounded-full transition-all duration-200 select-none",c,d?"bg-primary text-white border border-primary shadow-none":m?"bg-primary text-white border border-primary ring-4 ring-primary/20 font-medium":u?"bg-danger-soft text-danger border-2 border-danger font-medium":"bg-surface-muted text-text-muted border border-border"),"aria-hidden":"true",children:d?n??e.jsx(gr,{}):u?a??e.jsx(Yn,{}):o==="icons"&&s?s:e.jsx("span",{children:t+1})})}function ea({status:t="upcoming",className:r}){const s=t==="complete";return e.jsx("div",{"aria-hidden":"true",className:l("flex-1 hidden sm:flex items-center self-start mt-4 px-2",r),children:e.jsx("div",{className:l("h-0.5 w-full transition-colors duration-200",s?"bg-primary":"bg-border")})})}function ta({active:t=!0,className:r,children:s,...n}){return t?e.jsx("div",{className:l("text-xs text-text",r),...n,children:s}):null}function ra({direction:t}){return e.jsxs("svg",{"aria-hidden":"true",className:"size-3.5 shrink-0",viewBox:"0 0 16 16",fill:"currentColor",children:[e.jsx("path",{d:"M5 12V4M5 4L2.5 6.5M5 4L7.5 6.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",className:t==="asc"?"text-primary opacity-100":"opacity-35"}),e.jsx("path",{d:"M11 4V12M11 12L8.5 9.5M11 12L13.5 9.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",className:t==="desc"?"text-primary opacity-100":"opacity-35"})]})}function sa({className:t="size-3.5"}){return e.jsx("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m6 9 6 6 6-6"})})}function vr({variant:t="cards",className:r,...s}){return e.jsx("div",{className:"w-full overflow-x-auto",children:e.jsx("table",{className:l("w-full text-left text-sm",t==="cards"?"border-separate border-spacing-y-2":"border-collapse border border-border rounded-lg bg-white overflow-hidden",r),...s})})}vr.displayName="GymatraTable";function dt({className:t,...r}){return e.jsx("thead",{className:l("text-xs font-semibold uppercase tracking-wider text-text-muted",t),...r})}dt.displayName="GymatraTableHeader";function ut({className:t,...r}){return e.jsx("tbody",{className:l("space-y-2",t),...r})}ut.displayName="GymatraTableBody";function xt({className:t,selected:r,variant:s="cards",...n}){return e.jsx("tr",{"data-selected":r,className:l("group transition-all bg-white hover:bg-surface/60","data-[selected=true]:bg-primary-soft/30",s==="cards"?"[&>td:first-child]:rounded-s-lg [&>td:last-child]:rounded-e-lg [&>td]:border-y [&>td]:border-border [&>td:first-child]:border-s [&>td:last-child]:border-e [&>td]:shadow-none":"border-b border-border last:border-b-0",t),...n})}xt.displayName="GymatraTableRow";function ge({className:t,align:r="left",density:s="normal",...n}){const a=s==="compact"?"py-1.5 px-3 text-xs":s==="relaxed"?"py-3.5 px-4 text-xs":"py-2.5 px-3.5 text-xs";return e.jsx("th",{className:l("font-semibold uppercase tracking-wider text-text-muted align-middle whitespace-nowrap",a,r==="center"&&"text-center",r==="right"&&"text-right",t),...n})}ge.displayName="GymatraTableHead";function je({className:t,align:r="left",density:s="normal",...n}){const a=s==="compact"?"py-2 px-3 text-sm":s==="relaxed"?"py-4 px-4 text-sm":"py-3 px-3.5 text-sm";return e.jsx("td",{className:l("align-middle text-text bg-inherit",a,r==="center"&&"text-center",r==="right"&&"text-right",t),...n})}je.displayName="GymatraTableCell";function mt({children:t,direction:r,onSort:s,align:n="left",density:a="normal",className:o,...i}){const d=!!r,m=a==="compact"?"py-1.5 px-3 text-xs":a==="relaxed"?"py-3.5 px-4 text-xs":"py-2.5 px-3.5 text-xs";return e.jsx("th",{className:l("font-semibold uppercase tracking-wider align-middle whitespace-nowrap",m,n==="center"&&"text-center",n==="right"&&"text-right",o),...i,children:e.jsxs("button",{type:"button",onClick:s,className:l("inline-flex items-center gap-1.5 cursor-pointer transition-colors outline-none","focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary",d?"text-primary font-semibold":"text-text-muted hover:text-text"),children:[e.jsx("span",{children:t}),e.jsx(ra,{direction:r})]})})}mt.displayName="GymatraTableSortHead";function Le({checked:t=!1,onChange:r,indeterminate:s=!1,"aria-label":n}){return e.jsxs("button",{type:"button",role:"checkbox","aria-checked":s?"mixed":t,"aria-label":n,onClick:()=>r==null?void 0:r(!t),className:l("size-5 shrink-0 rounded-md flex items-center justify-center border cursor-pointer transition-colors outline-none","focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary",t||s?"border-primary bg-primary text-white":"border-border-strong bg-white hover:border-text-subtle"),children:[t&&!s&&e.jsx("svg",{"aria-hidden":"true",className:"size-4 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})}),s&&e.jsx("span",{className:"h-0.5 w-3 bg-white rounded-full"})]})}Le.displayName="GymatraTableCheckbox";function pt({columnsCount:t,hasCheckbox:r=!1,hasExpand:s=!1,density:n="normal",variant:a="cards"}){const o=n==="compact"?"py-2 px-3":n==="relaxed"?"py-4 px-4":"py-3 px-3.5";return e.jsxs("tr",{className:l("bg-white transition-opacity",a==="cards"?"[&>td:first-child]:rounded-s-lg [&>td:last-child]:rounded-e-lg [&>td]:border-y [&>td]:border-border [&>td:first-child]:border-s [&>td:last-child]:border-e":"border-b border-border last:border-b-0"),children:[s&&e.jsx("td",{className:l("w-8 text-center align-middle",o),children:e.jsx("div",{className:"size-4 mx-auto rounded bg-surface-muted animate-pulse"})}),r&&e.jsx("td",{className:l("w-8 align-middle",o),children:e.jsx("div",{className:"size-5 rounded-md bg-surface-muted animate-pulse"})}),Array.from({length:t}).map((i,d)=>e.jsx("td",{className:l("align-middle",o),children:d===0?e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"size-8 shrink-0 rounded-full bg-surface-muted animate-pulse"}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("div",{className:"h-3.5 w-28 rounded bg-surface-muted animate-pulse"}),e.jsx("div",{className:"h-2.5 w-20 rounded bg-surface-muted/70 animate-pulse"})]})]}):e.jsx("div",{className:l("h-3.5 rounded bg-surface-muted animate-pulse",d===1?"w-24":d===t-1?"w-16":"w-20")})},d))]})}pt.displayName="GymatraTableSkeletonRow";function ft({rowCount:t=5,columnsCount:r,hasCheckbox:s=!1,hasExpand:n=!1,density:a="normal",variant:o="cards"}){return e.jsx(e.Fragment,{children:Array.from({length:t}).map((i,d)=>e.jsx(pt,{columnsCount:r,hasCheckbox:s,hasExpand:n,density:a,variant:o},d))})}ft.displayName="GymatraTableSkeleton";function wr({columns:t,data:r,rowKey:s=(C,S)=>C.id??S,sort:n,defaultSort:a,onSortChange:o,selectable:i=!1,selectedIds:d,onSelectionChange:m,selectionActions:u,pagination:c,emptyTitle:f="No data found",emptyDescription:b="There are no records matching your criteria.",loading:y=!1,skeletonRowCount:x=5,density:g="normal",variant:h="cards",onRowClick:v,expandedRowRender:k,expandedRowKeys:j,onExpandedRowsChange:N,className:P,...T}){const[C,S]=p.useState(a),w=n??C,[z,E]=p.useState([]),L=d??z,[$,te]=p.useState([]),I=j??$,[V,ae]=p.useState((c==null?void 0:c.page)??1),[B,O]=p.useState((c==null?void 0:c.pageSize)??10),K=(c==null?void 0:c.page)??V,q=(c==null?void 0:c.pageSize)??B,Q=!!k;function Ce(G){let M;(w==null?void 0:w.key)!==G?M={key:G,direction:"asc"}:w.direction==="asc"?M={key:G,direction:"desc"}:M=void 0,typeof n>"u"&&S(M),o==null||o(M)}const oe=p.useMemo(()=>w?[...r].sort((G,M)=>{const A=G[w.key],re=M[w.key];if(A===re)return 0;if(A==null)return 1;if(re==null)return-1;const le=String(A).localeCompare(String(re),void 0,{numeric:!0});return w.direction==="asc"?le:-le}):r,[r,w]),be=typeof(c==null?void 0:c.total)<"u",ie=be?c.total:oe.length,he=p.useMemo(()=>{if(!c||be)return oe;const G=(K-1)*q;return oe.slice(G,G+q)},[oe,c,be,K,q]),Z=he.map((G,M)=>s(G,M)),Se=Z.length>0&&Z.every(G=>L.includes(G)),ce=Z.some(G=>L.includes(G))&&!Se;function $e(G){let M;if(G){const A=new Set([...L,...Z]);M=Array.from(A)}else M=L.filter(A=>!Z.includes(A));typeof d>"u"&&E(M),m==null||m(M)}function de(G,M){let A;M?A=[...L,G]:A=L.filter(re=>re!==G),typeof d>"u"&&E(A),m==null||m(A)}function ye(){typeof d>"u"&&E([]),m==null||m([])}function Pe(G){let M;I.includes(G)?M=I.filter(A=>A!==G):M=[...I,G],typeof j>"u"&&te(M),N==null||N(M)}const Ve=L.length>0,ze=t.length+(i?1:0)+(Q?1:0);return e.jsxs("div",{className:l("flex flex-col w-full relative",P),...T,children:[e.jsx("div",{className:l("fixed bottom-6 left-1/2 -translate-x-1/2 z-50 transition-all duration-200 ease-out","w-[calc(100%-2rem)] max-w-lg sm:w-auto",Ve&&u?"translate-y-0 opacity-100 pointer-events-auto":"translate-y-4 opacity-0 pointer-events-none"),children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between sm:justify-start gap-3 rounded-lg border border-border bg-white px-4 py-2 text-sm shadow-none",children:[e.jsx("span",{className:"font-medium text-text",children:L.length===1?"1 item selected":`${L.length} items selected`}),e.jsx("span",{className:"hidden sm:inline-block h-4 w-px bg-border","aria-hidden":"true"}),e.jsx("div",{className:"flex items-center gap-1.5 ms-auto sm:ms-0",children:typeof u=="function"?u(L,ye):u}),e.jsx("span",{className:"hidden sm:inline-block h-4 w-px bg-border","aria-hidden":"true"}),e.jsx("button",{type:"button",onClick:ye,"aria-label":"Cancel selection",title:"Cancel selection",className:"flex size-6 items-center justify-center rounded-full text-text-muted hover:bg-surface hover:text-text cursor-pointer transition-colors outline-none focus-visible:outline-2 focus-visible:outline-primary",children:e.jsx("svg",{"aria-hidden":"true",className:"size-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})})]})}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:l("w-full text-left text-sm",h==="cards"?"border-separate border-spacing-y-2":"border-collapse border border-border rounded-lg bg-white overflow-hidden"),children:[e.jsx(dt,{children:e.jsxs("tr",{children:[Q&&e.jsx(ge,{density:g,className:"w-8 px-2"}),i&&e.jsx(ge,{density:g,className:"w-8 px-3",children:e.jsx(Le,{checked:Se,indeterminate:ce,onChange:$e,"aria-label":"Select all rows on current page"})}),t.map(G=>G.sortable?e.jsx(mt,{direction:(w==null?void 0:w.key)===G.key?w.direction:void 0,onSort:()=>Ce(G.key),align:G.align,density:g,className:G.width,children:G.header},G.key):e.jsx(ge,{align:G.align,density:g,className:G.width,children:G.header},G.key))]})}),e.jsx(ut,{children:y?e.jsx(ft,{rowCount:x,columnsCount:t.length,hasCheckbox:i,hasExpand:Q,density:g,variant:h}):he.length>0?he.map((G,M)=>{const A=s(G,M),re=L.includes(A),le=I.includes(A);return e.jsxs(p.Fragment,{children:[e.jsxs(xt,{selected:re,variant:h,onClick:J=>{const qe=J.target;qe.closest("button")||qe.closest("input")||qe.closest("a")||v==null||v(G,M)},className:l(v&&"cursor-pointer hover:border-primary/40"),children:[Q&&e.jsx(je,{density:g,className:"w-8 px-2 text-center",children:e.jsx("button",{type:"button",onClick:J=>{J.stopPropagation(),Pe(A)},"aria-expanded":le,"aria-label":le?"Collapse row":"Expand row",className:"size-6 inline-flex items-center justify-center rounded text-text-muted hover:text-text hover:bg-surface-muted transition-transform cursor-pointer outline-none focus-visible:outline-2 focus-visible:outline-primary",children:e.jsx("span",{className:l("inline-block transition-transform duration-150",le&&"rotate-180"),children:e.jsx(sa,{})})})}),i&&e.jsx(je,{density:g,className:"w-8 px-3",children:e.jsx(Le,{checked:re,onChange:J=>de(A,J),"aria-label":`Select row ${A}`})}),t.map(J=>e.jsx(je,{align:J.align,density:g,children:J.render?J.render(G,M):G[J.key]},J.key))]}),Q&&le&&e.jsx("tr",{className:l(h==="cards"?"bg-surface-muted/30":"bg-surface-muted/40 border-b border-border"),children:e.jsx("td",{colSpan:ze,className:l("px-5 py-4 text-sm text-text",h==="cards"&&"rounded-lg border border-border border-dashed my-1"),children:k==null?void 0:k(G,M)})})]},A)}):e.jsx("tr",{children:e.jsxs("td",{colSpan:ze,className:"rounded-lg border border-border bg-white px-4 py-12 text-center text-text-muted",children:[e.jsx("p",{className:"font-semibold text-text",children:f}),e.jsx("p",{className:"mt-1 text-sm text-text-muted",children:b})]})})})]})}),c&&!y&&e.jsx(at,{page:K,pageSize:q,total:ie,onPageChange:G=>{var M;typeof c.page>"u"&&ae(G),(M=c.onPageChange)==null||M.call(c,G)},pageSizeOptions:c.pageSizeOptions,onPageSizeChange:G=>{var M;typeof c.pageSize>"u"&&O(G),(M=c.onPageSizeChange)==null||M.call(c,G)},showSummary:c.showSummary})]})}wr.displayName="GymatraDataTable";const na=ee.Tabs.Root,aa=ee.Tabs.List,oa=ee.Tabs.Tab,ia=ee.Tabs.Panel,la=ee.Tabs.Indicator,ca={sm:"h-8 px-2.5 text-sm gap-1.5",md:"h-9 px-3.5 text-sm gap-2",lg:"h-11 px-4 text-base gap-2.5"};function da(t,r,s,n="horizontal"){const a="inline-flex items-center justify-center font-medium transition-colors select-none outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary disabled:pointer-events-none disabled:opacity-50 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 cursor-pointer",o=ca[r],i=s?"flex-1":"";switch(t){case"line":return n==="vertical"?l(a,o,i,"justify-start border-r-2 -mr-px border-transparent text-text-muted hover:text-text hover:border-border","data-[active]:border-primary aria-selected:border-primary data-[active]:text-primary aria-selected:text-primary"):l(a,o,i,"border-b-2 -mb-px border-transparent text-text-muted hover:text-text hover:border-border","data-[active]:border-primary aria-selected:border-primary data-[active]:text-primary aria-selected:text-primary");case"pills":return l(a,o,i,"rounded-md border border-transparent text-text-muted hover:text-text hover:bg-surface-muted/60","data-[active]:bg-white aria-selected:bg-white data-[active]:text-primary aria-selected:text-primary data-[active]:border-border aria-selected:border-border");case"enclosed":return l(a,o,i,"rounded-t-md border-t border-x -mb-px border-transparent text-text-muted hover:text-text hover:bg-surface-muted/40","data-[active]:border-border aria-selected:border-border data-[active]:bg-white aria-selected:bg-white data-[active]:text-primary aria-selected:text-primary data-[active]:border-b-transparent aria-selected:border-b-transparent");case"soft":default:return l(a,o,i,"rounded-md text-text-muted hover:bg-surface-muted hover:text-text","data-[active]:bg-primary-soft aria-selected:bg-primary-soft data-[active]:text-primary aria-selected:text-primary")}}function ua(t,r="horizontal",s){if(r==="vertical")return t==="line"?"flex flex-col border-r border-border gap-1":t==="pills"?"flex flex-col rounded-lg border border-border bg-surface-muted/60 p-1 gap-1":"flex flex-col gap-1";const n=s?"w-full":"";switch(t){case"line":return l("flex items-center border-b border-border gap-2 sm:gap-6",n);case"pills":return l("inline-flex items-center rounded-lg border border-border bg-surface-muted/60 p-1 gap-1",n);case"enclosed":return l("flex items-center border-b border-border gap-1",n);case"soft":default:return l("flex items-center gap-1.5",n)}}function xa({value:t,defaultValue:r,onValueChange:s,variant:n="line",size:a="md",orientation:o="horizontal",fullWidth:i=!1,items:d,children:m,className:u,listClassName:c,panelClassName:f}){const b=r??(d&&d.length>0?d[0].value:void 0),y=t!==void 0?{value:t}:b!==void 0?{defaultValue:b}:{};return e.jsx(ee.Tabs.Root,{...y,onValueChange:x=>{typeof x=="string"&&(s==null||s(x))},orientation:o,className:l(o==="vertical"?"flex gap-6 items-start":"flex flex-col",u),children:d&&d.length>0?e.jsxs(e.Fragment,{children:[e.jsx(ee.Tabs.List,{className:l(ua(n,o,i),c),children:d.map(x=>{const g=x.startIcon??x.icon;return e.jsxs(ee.Tabs.Tab,{value:x.value,disabled:x.disabled,className:l(da(n,a,i,o)),children:[g&&e.jsx("span",{className:"shrink-0 size-4 flex items-center justify-center",children:g}),e.jsx("span",{children:x.label}),x.badge!==void 0&&e.jsx(Qe,{variant:x.badgeVariant??"default",size:"sm",pill:!0,className:"ml-1 text-xs px-1.5 py-0 h-4 min-w-4",children:x.badge}),x.endIcon&&e.jsx("span",{className:"shrink-0 size-4 flex items-center justify-center",children:x.endIcon})]},x.value)})}),d.map(x=>x.content?e.jsx(ee.Tabs.Panel,{value:x.value,className:l("pt-4 focus-visible:outline-none",f),children:x.content},x.value):null)]}):m})}const ma=Pt.Toggle,pa=zt.ToggleGroup;function Nr(t="default"){switch(t){case"outline":return l("border border-border bg-white text-text","hover:bg-surface-muted hover:border-text-subtle","data-[pressed]:border-primary data-[pressed]:bg-primary-soft data-[pressed]:text-primary data-[pressed]:font-medium");case"solid":return l("bg-surface-muted text-text","hover:bg-surface-muted/80","data-[pressed]:bg-primary data-[pressed]:text-white data-[pressed]:font-medium");case"ghost":return l("bg-transparent text-text-muted","hover:bg-surface-muted hover:text-text","data-[pressed]:bg-surface-muted data-[pressed]:text-primary data-[pressed]:font-medium");case"default":default:return l("bg-surface-muted text-text","hover:bg-surface-muted/80 hover:text-text","data-[pressed]:bg-primary-soft data-[pressed]:text-primary data-[pressed]:font-medium")}}function kr(t="md"){switch(t){case"sm":return"h-8 px-2.5 text-sm gap-1.5 rounded-md";case"lg":return"h-11 px-4 text-base gap-2.5 rounded-md";case"md":default:return"h-9.5 px-3 text-sm gap-2 rounded-md"}}const bt=p.forwardRef(({variant:t="default",size:r="md",startIcon:s,endIcon:n,className:a,children:o,...i},d)=>e.jsxs(Pt.Toggle,{ref:d,className:l("inline-flex items-center justify-center select-none outline-none transition-colors shadow-none font-medium","focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-primary","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none",kr(r),Nr(t),a),...i,children:[s&&e.jsx("span",{className:"shrink-0 size-4 flex items-center justify-center",children:s}),o&&e.jsx("span",{children:o}),n&&e.jsx("span",{className:"shrink-0 size-4 flex items-center justify-center",children:n})]}));bt.displayName="GymatraToggle";const fa=p.forwardRef(({options:t,value:r,defaultValue:s,onValueChange:n,size:a="md",variant:o="default",bordered:i=!0,multiple:d=!1,orientation:m="horizontal",className:u,children:c,...f},b)=>{const y=r!==void 0?Array.isArray(r)?r:[r]:void 0,x=s!==void 0?Array.isArray(s)?s:[s]:void 0,g=v=>{n&&n(d?v:v[0]??"")},h=m==="vertical";return e.jsx(zt.ToggleGroup,{ref:b,value:y,defaultValue:x,onValueChange:g,multiple:d,orientation:m,className:l("inline-flex select-none",h?"flex-col items-stretch gap-1":"flex-row items-center gap-1",i?"rounded-md border border-border bg-white p-1 shadow-none":"bg-transparent p-0.5",u),...f,children:t&&t.length>0?t.map(v=>e.jsx(bt,{value:v.value,size:a,variant:o,disabled:v.disabled,"aria-label":v.ariaLabel||(typeof v.label=="string"?v.label:void 0),startIcon:v.startIcon??v.icon,endIcon:v.endIcon,children:v.label},v.value)):c})}),ba=se.Tooltip.Provider,ha={dark:"bg-text text-white",light:"border border-border bg-white text-text"},ya={dark:"bg-text",light:l("border-border bg-white","data-[side=top]:border-b data-[side=top]:border-r","data-[side=bottom]:border-t data-[side=bottom]:border-l","data-[side=left]:border-t data-[side=left]:border-r","data-[side=right]:border-b data-[side=right]:border-l")},ga={dark:"bg-white/15 text-white",light:"bg-surface-muted text-text-muted"};function Gr({content:t,shortcut:r,children:s,side:n="top",align:a="center",sideOffset:o=8,delay:i=300,closeDelay:d=0,showArrow:m=!0,disabled:u=!1,open:c,defaultOpen:f,onOpenChange:b,className:y,variant:x="dark"}){return e.jsx(se.Tooltip.Provider,{delay:i,closeDelay:d,children:e.jsxs(se.Tooltip.Root,{open:c,defaultOpen:f,onOpenChange:b,disabled:u,children:[e.jsx(se.Tooltip.Trigger,{render:s}),e.jsx(se.Tooltip.Portal,{children:e.jsx(se.Tooltip.Positioner,{side:n,align:a,sideOffset:o,className:"z-50 outline-none",children:e.jsxs(se.Tooltip.Popup,{className:l("relative flex max-w-xs items-center gap-2 rounded-md px-2.5 py-1.5 text-xs font-medium leading-snug outline-none","origin-[var(--transform-origin)] transition-[opacity,scale] duration-150 motion-reduce:transition-none","data-[starting-style]:scale-95 data-[starting-style]:opacity-0 data-[ending-style]:scale-95 data-[ending-style]:opacity-0",ha[x],y),children:[m&&e.jsx(se.Tooltip.Arrow,{className:l("size-2 rotate-45","data-[side=top]:-bottom-1 data-[side=bottom]:-top-1 data-[side=left]:-right-1 data-[side=right]:-left-1",ya[x])}),e.jsx("span",{className:"min-w-0",children:t}),r&&e.jsx("kbd",{className:l("shrink-0 rounded-sm px-1.5 py-0.5 font-mono text-xs font-normal",ga[x]),children:r})]})})})]})})}Gr.displayName="GymatraTooltip";Object.defineProperty(exports,"BaseUICheckbox",{enumerable:!0,get:()=>Ue.Checkbox});Object.defineProperty(exports,"BaseUIField",{enumerable:!0,get:()=>U.Field});Object.defineProperty(exports,"BaseUIForm",{enumerable:!0,get:()=>kt.Form});Object.defineProperty(exports,"BaseUIInput",{enumerable:!0,get:()=>Gt.Input});Object.defineProperty(exports,"BaseUISelect",{enumerable:!0,get:()=>_.Select});Object.defineProperty(exports,"BaseUISwitch",{enumerable:!0,get:()=>ve.Switch});Object.defineProperty(exports,"formatPhoneNumber",{enumerable:!0,get:()=>ne.formatPhoneNumber});Object.defineProperty(exports,"formatPhoneNumberIntl",{enumerable:!0,get:()=>ne.formatPhoneNumberIntl});Object.defineProperty(exports,"isValidPhoneNumber",{enumerable:!0,get:()=>ne.isValidPhoneNumber});exports.DRAWER_MIN_WIDTH=gs;exports.DRAWER_SIZES=Ke;exports.GymatraAccordion=Ir;exports.GymatraAccordionHeader=Rr;exports.GymatraAccordionItemPrimitive=Tr;exports.GymatraAccordionPanel=Br;exports.GymatraAccordionRoot=Mr;exports.GymatraAccordionTrigger=Lr;exports.GymatraAutocomplete=Bs;exports.GymatraAvatar=Ne;exports.GymatraAvatarGroup=Mt;exports.GymatraAvatarUpload=en;exports.GymatraAvatarUploadField=_s;exports.GymatraBadge=Qe;exports.GymatraBreadcrumb=Tt;exports.GymatraBreadcrumbEllipsis=Ft;exports.GymatraBreadcrumbItem=Lt;exports.GymatraBreadcrumbLink=Bt;exports.GymatraBreadcrumbList=Rt;exports.GymatraBreadcrumbPage=At;exports.GymatraBreadcrumbSeparator=Dt;exports.GymatraButton=Te;exports.GymatraCheckbox=Ze;exports.GymatraCheckboxField=Ws;exports.GymatraCircularProgress=Zn;exports.GymatraColorPicker=Qs;exports.GymatraColorPickerField=or;exports.GymatraCombobox=ls;exports.GymatraComboboxChip=ns;exports.GymatraComboboxChipRemove=as;exports.GymatraComboboxChips=ss;exports.GymatraComboboxClear=rs;exports.GymatraComboboxEmpty=Ye;exports.GymatraComboboxGroup=es;exports.GymatraComboboxGroupLabel=Xe;exports.GymatraComboboxInput=Et;exports.GymatraComboboxItem=Re;exports.GymatraComboboxList=Xr;exports.GymatraComboboxPopup=Je;exports.GymatraComboboxPortal=Jr;exports.GymatraComboboxPositioner=Yr;exports.GymatraComboboxRoot=Qr;exports.GymatraComboboxSeparator=ts;exports.GymatraComboboxTrigger=Zr;exports.GymatraCurrencyInput=Xt;exports.GymatraCustomSelect=Rs;exports.GymatraDataTable=wr;exports.GymatraDateInput=tr;exports.GymatraDateRangeInput=Ts;exports.GymatraDateTimeInput=sr;exports.GymatraDialog=me;exports.GymatraDialogBackdrop=ms;exports.GymatraDialogClose=ys;exports.GymatraDialogComponent=Ot;exports.GymatraDialogContent=fs;exports.GymatraDialogDescription=hs;exports.GymatraDialogPopup=ps;exports.GymatraDialogPortal=xs;exports.GymatraDialogRoot=ds;exports.GymatraDialogTitle=bs;exports.GymatraDialogTrigger=us;exports.GymatraDrawerPanel=Gs;exports.GymatraDrawerProvider=Vt;exports.GymatraEmailInput=Kt;exports.GymatraField=rn;exports.GymatraFieldContainer=D;exports.GymatraFileUploadField=Us;exports.GymatraFilterBar=_t;exports.GymatraFilterBarChip=Ht;exports.GymatraFilterBarSearch=Ut;exports.GymatraFilterBarSelect=Is;exports.GymatraFilterSelect=tt;exports.GymatraFloatingField=Ge;exports.GymatraFloatingSelect=cr;exports.GymatraFloatingTextarea=lr;exports.GymatraForm=tn;exports.GymatraImageUploadField=Hs;exports.GymatraInput=pr;exports.GymatraMenu=fn;exports.GymatraMenuCheckboxItem=Fe;exports.GymatraMenuGroup=dn;exports.GymatraMenuGroupLabel=De;exports.GymatraMenuItem=Be;exports.GymatraMenuPopup=fe;exports.GymatraMenuPortal=ln;exports.GymatraMenuPositioner=cn;exports.GymatraMenuRadioGroup=un;exports.GymatraMenuRadioItem=Ee;exports.GymatraMenuRoot=an;exports.GymatraMenuSeparator=Ae;exports.GymatraMenuSubmenuRoot=xn;exports.GymatraMenuSubmenuTrigger=We;exports.GymatraMenuTrigger=on;exports.GymatraMenubar=fr;exports.GymatraMenubarCheckboxItem=Sn;exports.GymatraMenubarGroup=jn;exports.GymatraMenubarGroupLabel=Cn;exports.GymatraMenubarItem=kn;exports.GymatraMenubarMenu=hn;exports.GymatraMenubarPopup=Nn;exports.GymatraMenubarPortal=yn;exports.GymatraMenubarPositioner=gn;exports.GymatraMenubarRadioGroup=vn;exports.GymatraMenubarRadioItem=Pn;exports.GymatraMenubarRoot=bn;exports.GymatraMenubarSeparator=Gn;exports.GymatraMenubarSubmenuRoot=wn;exports.GymatraMenubarSubmenuTrigger=zn;exports.GymatraMenubarTrigger=nt;exports.GymatraMultiSelect=Ls;exports.GymatraNumberInput=ke;exports.GymatraNumericField=Ms;exports.GymatraOtpField=Ys;exports.GymatraOtpInput=Xs;exports.GymatraPagination=at;exports.GymatraPasswordInput=Qt;exports.GymatraPercentageInput=er;exports.GymatraPhoneInput=Jt;exports.GymatraPopover=En;exports.GymatraPopoverArrow=br;exports.GymatraPopoverClose=ct;exports.GymatraPopoverDescription=lt;exports.GymatraPopoverPopup=ot;exports.GymatraPopoverPortal=An;exports.GymatraPopoverPositioner=Dn;exports.GymatraPopoverRoot=Ln;exports.GymatraPopoverTitle=it;exports.GymatraPopoverTrigger=Bn;exports.GymatraProgress=Kn;exports.GymatraProgressIndicator=$n;exports.GymatraProgressLabel=Vn;exports.GymatraProgressRoot=Wn;exports.GymatraProgressTrack=On;exports.GymatraProgressValue=qn;exports.GymatraRadioGroupField=Os;exports.GymatraRangeField=Js;exports.GymatraRichTextEditor=qs;exports.GymatraSearchInput=Zt;exports.GymatraSelect=nn;exports.GymatraSelectField=nr;exports.GymatraSeparator=hr;exports.GymatraSeparatorRoot=Jn;exports.GymatraSliderField=Zs;exports.GymatraStep=jr;exports.GymatraStepConnector=ea;exports.GymatraStepContent=ta;exports.GymatraStepIndicator=we;exports.GymatraStepper=Xn;exports.GymatraSwitch=rt;exports.GymatraSwitchField=$s;exports.GymatraSwitchRoot=As;exports.GymatraSwitchThumb=Ds;exports.GymatraTab=oa;exports.GymatraTable=vr;exports.GymatraTableBody=ut;exports.GymatraTableCell=je;exports.GymatraTableCheckbox=Le;exports.GymatraTableHead=ge;exports.GymatraTableHeader=dt;exports.GymatraTableRow=xt;exports.GymatraTableSkeleton=ft;exports.GymatraTableSkeletonRow=pt;exports.GymatraTableSortHead=mt;exports.GymatraTabs=xa;exports.GymatraTabsIndicator=la;exports.GymatraTabsList=aa;exports.GymatraTabsPanel=ia;exports.GymatraTabsRoot=na;exports.GymatraTextField=ir;exports.GymatraTextInput=pe;exports.GymatraTextarea=sn;exports.GymatraTextareaField=ar;exports.GymatraTimeInput=rr;exports.GymatraToggle=bt;exports.GymatraToggleField=Vs;exports.GymatraToggleGroup=fa;exports.GymatraToggleGroupRoot=pa;exports.GymatraToggleRoot=ma;exports.GymatraTooltip=Gr;exports.GymatraTooltipProvider=ba;exports.GymatraUrlInput=Yt;exports.SidebarContext=Ns;exports.SidebarProvider=ks;exports.cn=l;exports.getDrawerWidth=js;exports.getToggleSizeClasses=kr;exports.getToggleVariantClasses=Nr;exports.renderMenuItems=Oe;exports.useGymatraDrawer=$t;exports.useGymatraStepper=yr;exports.useSidebar=ws;