@wallarm-org/claude-design 4.12.2 → 4.12.3

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.
@@ -70,7 +70,7 @@ self.onmessage = async ({ data: { id, d, col, P, mat, region } }) => {
70
70
  touch-action: pan-x pan-y pinch-zoom;
71
71
  }
72
72
  }
73
- `.trim(),e.head.prepend(t)},[h]),(0,c0.useEffect)(()=>{let e=g.current;return()=>{for(let t of(u||TA(e.target??void 0),e.disposables))t();e.disposables=[]}},[u]),{isPressed:s||f,pressProps:Tg(p,D,{[TY]:!0})}}({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&a()},onPress(e){("touch"===e.pointerType||"pen"===e.pointerType)&&a()}});return Tg(l,{onKeyDown:a=>{if(Ai(a.currentTarget,Aa(a))&&(a.altKey&&("ArrowDown"===a.key||"ArrowUp"===a.key)&&"setOpen"in e&&(a.preventDefault(),a.stopPropagation(),e.setOpen(!0)),!r))switch(a.key){case"ArrowLeft":if(a.preventDefault(),a.stopPropagation(),"rtl"===n){if(t.current){let e=Aa(a),r=TG(t.current,e.getBoundingClientRect().left,-1);r&&r.focus()}}else i.focusPrevious();break;case"ArrowRight":if(a.preventDefault(),a.stopPropagation(),"rtl"===n){if(t.current){let e=Aa(a),r=TG(t.current,e.getBoundingClientRect().left,1);r&&r.focus()}}else i.focusNext()}}})}function TG(e,t,r){let n=AK(e,{tabbable:!0}),i=n.nextNode(),a=null,l=1/0;for(;i;){let e=i.getBoundingClientRect().left-t,o=Math.abs(e);Math.sign(e)===r&&o<l&&(a=i,l=o),i=n.nextNode()}return a}let TU=0,TW=new Map;function Tq(e){let[t,r]=(0,c0.useState)();return Ag(()=>{if(!e)return;let t=TW.get(e);if(t)r(t.element.id);else{let n=`react-aria-description-${TU++}`;r(n);let i=document.createElement("div");i.id=n,i.style.display="none",i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},TW.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),TW.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function TX(e,t){let{id:r,"aria-label":n,"aria-labelledby":i}=e;return r=Th(r),i&&n?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),n||i||!t||(n=t),{id:r,"aria-label":n,"aria-labelledby":i}}function TK(e){let{description:t,errorMessage:r,isInvalid:n,validationState:i}=e,{labelProps:a,fieldProps:l}=function(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":i,labelElementType:a="label"}=e;t=Th(t);let l=Th(),o={};return r&&(n=n?`${l} ${n}`:l,o={id:l,htmlFor:"label"===a?t:void 0}),{labelProps:o,fieldProps:TX({id:t,"aria-label":i,"aria-labelledby":n})}}(e),o=Tp([!!t,!!r,n,i]),s=Tp([!!t,!!r,n,i]);return{labelProps:a,fieldProps:l=Tg(l,{"aria-describedby":[o,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:o},errorMessageProps:{id:s}}}function TJ(e){let t,{isDisabled:r,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:a}=e,l=(0,c0.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=TF(),c=(0,c0.useCallback)(e=>{Ai(e.currentTarget,Aa(e))&&l.current.isFocusWithin&&!Ai(e.currentTarget,e.relatedTarget)&&(l.current.isFocusWithin=!1,s(),n&&n(e),a&&a(!1))},[n,a,l,s]),d=(t=(0,c0.useRef)({isFocused:!1,observer:null}),Ag(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,c0.useCallback)(e=>{let r=Aa(e);(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&(t.current.isFocused=!0,r.addEventListener("focusout",e=>{if(t.current.isFocused=!1,r.disabled){let t=AC(e);c?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){t.current.observer?.disconnect();let e=r===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]}))},[c])),u=(0,c0.useCallback)(e=>{if(!Ai(e.currentTarget,Aa(e)))return;let t=Aa(e),r=Ar(t),n=((e=document)=>e.activeElement)(r);if(!l.current.isFocusWithin&&n===t){i&&i(e),a&&a(!0),l.current.isFocusWithin=!0,d(e);let t=e.currentTarget;o(r,"focus",e=>{let n=Aa(e);if(l.current.isFocusWithin&&!Ai(t,n)){let e=new r.defaultView.FocusEvent("blur",{relatedTarget:n});Av(e,t),c(AC(e))}},{capture:!0})}},[i,a,d,o,c]);return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:c}}}let T1=Symbol.for("react-aria.i18n.locale"),T2=Symbol.for("react-aria.i18n.strings");class T0{constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let r=this.getStringsForLocale(t)[e];if(!r)throw Error(`Could not find intl message ${e} in ${t} locale`);return r}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,r="en-US"){var n;if(t[e])return t[e];let i=(n=e,Intl.Locale?new Intl.Locale(n).language:n.split("-")[0]);if(t[i])return t[i];for(let e in t)if(e.startsWith(i+"-"))return t[e];return t[r]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("u"<typeof window)return null;let t=window[T1];if(void 0===C){let e=window[T2];if(!e)return null;for(let r in C={},e)C[r]=new T0({[t]:e[r]},t)}let r=C?.[e];if(!r)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}let T3=new Map,T5=new Map;class T4{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return"function"==typeof r?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return"function"==typeof n?n():n;let i=this.locale+":"+r,a=T3.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:r}),T3.set(i,a)),"function"==typeof(n=t[a.select(e)]||t.other)?n():n}number(e){let t=T5.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),T5.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return"function"==typeof r?r():r}}let T7=new WeakMap;function T9(e,t){let r;return t&&T0.getGlobalDictionaryForPackage(t)||((r=T7.get(e))||(r=new T0(e),T7.set(e,r)),r)}function T6(e,t){let{locale:r}=TE(),n=T9(e,t);return(0,c0.useMemo)(()=>new T4(r,n),[r,n])}let T8=new WeakMap,Me="__reactAriaDateFieldRole",Mt="__reactAriaDateFieldFocusManager";function Mr(e,t,r){var n,i,a,l;let o,s,{isInvalid:c,validationErrors:d,validationDetails:u}=t.displayValidation,{labelProps:h,fieldProps:p,descriptionProps:f,errorMessageProps:m}=TK({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||d}),g=(0,c0.useRef)(null),{focusWithinProps:C}=TJ({...e,onFocusWithin(r){g.current=t.value,e.onFocus?.(r)},onBlurWithin:r=>{t.confirmPlaceholder(),t.value!==g.current&&t.commitValidation(),e.onBlur?.(r)},onFocusWithinChange:e.onFocusChange}),v=T6((n=A8)&&n.__esModule?n.default:n,"@react-aria/datepicker"),y="hour"===t.maxGranularity?"selectedTimeDescription":"selectedDateDescription",b="hour"===t.maxGranularity?"time":"date",x=Tq(t.value?v.format(y,{[b]:t.formatValue({month:"long"})}):""),O="presentation"===e[Me]?p["aria-describedby"]:[x["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=e[Mt],S=(0,c0.useMemo)(()=>w||AJ(r),[w,r]),E=Tj(t,r,"presentation"===e[Me]);T8.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[h.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:O,focusManager:S});let k=(0,c0.useRef)(e.autoFocus);s="presentation"===e[Me]?{role:"presentation"}:Tg(p,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":O}),(0,c0.useEffect)(()=>{k.current&&S.focusFirst(),k.current=!1},[S]),i=e.inputRef,a=t.defaultValue,l=t.setValue,o=TN(e=>{l&&!e.defaultPrevented&&l(a)}),(0,c0.useEffect)(()=>{let e=i?.current?.form;return e?.addEventListener("reset",o),()=>{e?.removeEventListener("reset",o)}},[i]),function(e,t,r){let{validationBehavior:n,focus:i}=e;Ag(()=>{if("native"===n&&r?.current&&"setCustomValidity"in r.current&&!r.current.disabled){var e;let n,i=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(i),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=r.current).validity.valid,validationDetails:{badInput:(n=e.validity).badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing,valid:n.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let a=(0,c0.useRef)(!1),l=TN(()=>{a.current||t.resetValidation()}),o=TN(e=>{t.displayValidation.isInvalid||t.commitValidation();let n=r?.current?.form;!e.defaultPrevented&&r&&n&&function(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(r.validity?.valid===!1)return r}return null}(n)===r.current&&(i?i():r.current?.focus(),AI="keyboard",A_("keyboard",null));e.preventDefault()}),s=TN(()=>{t.commitValidation()});(0,c0.useEffect)(()=>{let e=r?.current;if(!e)return;let t=e.form,n=t?.reset;return t&&(t.reset=()=>{a.current=!window.event||"message"===window.event.type&&Aa(window.event)instanceof MessagePort,n?.call(t),a.current=!1}),e.addEventListener("invalid",o),e.addEventListener("change",s),t?.addEventListener("reset",l),()=>{e.removeEventListener("invalid",o),e.removeEventListener("change",s),t?.removeEventListener("reset",l),t&&(t.reset=n)}},[r,n])}({...e,focus(){S.focusFirst()}},t,e.inputRef);let P={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};"native"===e.validationBehavior&&(P.type="text",P.hidden=!0,P.required=e.isRequired,P.onChange=()=>{});let D=A6(e);return{labelProps:{...h,onClick:()=>{S.focusFirst()}},fieldProps:Tg(D,s,E,C,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)},style:{unicodeBidi:"isolate"}}),inputProps:P,descriptionProps:f,errorMessageProps:m,isInvalid:c,validationErrors:d,validationDetails:u}}var Mn={};Mn={"ar-AE":{rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."},"bg-BG":{rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."},"cs-CZ":{rangeOverflow:e=>`Hodnota mus\xed b\xfdt ${e.maxValue} nebo dř\xedvějš\xed.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota mus\xed b\xfdt ${e.minValue} nebo pozdějš\xed.`,unavailableDate:"Vybrané datum není k dispozici."},"da-DK":{rangeOverflow:e=>`V\xe6rdien skal v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`V\xe6rdien skal v\xe6re ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xfcher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xe4ter sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."},"el-GR":{rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`V\xe4\xe4rtus peab olema ${e.maxValue} v\xf5i varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`V\xe4\xe4rtus peab olema ${e.minValue} v\xf5i hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xe4 aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."},"fr-FR":{rangeOverflow:e=>`La valeur doit \xeatre ${e.maxValue} ou ant\xe9rieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit \xeatre ${e.minValue} ou ult\xe9rieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."},"he-IL":{rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az \xe9rt\xe9knek ${e.maxValue} vagy kor\xe1bbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az \xe9rt\xe9knek ${e.minValue} vagy k\xe9sőbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"},"ko-KR":{rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이후여야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."},"lt-LT":{rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien m\xe5 v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien m\xe5 v\xe6re ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub p\xf3źniejszą.`,unavailableDate:"Wybrana data jest niedostępna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."},"ru-RU":{rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."},"sk-SK":{rangeOverflow:e=>`Hodnota mus\xed byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota mus\xed byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."},"tr-TR":{rangeOverflow:e=>`Değer, ${e.maxValue} veya \xf6ncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."},"uk-UA":{rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."},"zh-CN":{rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"},"zh-TW":{rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"}};let Mi={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Ma={...Mi,customError:!0,valid:!1},Ml={isInvalid:!1,validationDetails:Mi,validationErrors:[]},Mo=(0,c0.createContext)({}),Ms="__reactAriaFormValidationState";function Mc(e){if(e[Ms]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:a}=e[Ms];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:a}}return function(e){let{isInvalid:t,validationState:r,name:n,value:i,builtinValidation:a,validate:l,validationBehavior:o="aria"}=e;r&&(t||="invalid"===r);let s=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:Ma}:null,c=(0,c0.useMemo)(()=>l&&null!=i?Mu(function(e,t){if("function"==typeof e){let r=e(t);if(r&&"boolean"!=typeof r)return Md(r)}return[]}(l,i)):null,[l,i]);a?.validationDetails.valid&&(a=void 0);let d=(0,c0.useContext)(Mo),u=(0,c0.useMemo)(()=>n?Array.isArray(n)?n.flatMap(e=>Md(d[e])):Md(d[n]):[],[d,n]),[h,p]=(0,c0.useState)(d),[f,m]=(0,c0.useState)(!1);d!==h&&(p(d),m(!1));let g=(0,c0.useMemo)(()=>Mu(f?[]:u),[f,u]),C=(0,c0.useRef)(Ml),[v,y]=(0,c0.useState)(Ml),b=(0,c0.useRef)(Ml),[x,O]=(0,c0.useState)(!1);return(0,c0.useEffect)(()=>{if(!x)return;O(!1);let e=c||a||C.current;Mh(e,b.current)||(b.current=e,y(e))}),{realtimeValidation:s||g||c||a||Ml,displayValidation:"native"===o?s||g||v:s||g||c||a||v,updateValidation(e){"aria"!==o||Mh(v,e)?C.current=e:y(e)},resetValidation(){Mh(Ml,b.current)||(b.current=Ml,y(Ml)),"native"===o&&O(!1),m(!0)},commitValidation(){"native"===o&&O(!0),m(!0)}}}(e)}function Md(e){return e?Array.isArray(e)?e:[e]:[]}function Mu(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Ma}:null}function Mh(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,r)=>e===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([e,r])=>t.validationDetails[e]===r)}function Mp(...e){let t=new Set,r=!1,n={...Mi};for(let i of e){for(let e of i.validationErrors)t.add(e);for(let e in r||=i.isInvalid,n)n[e]||=i.validationDetails[e]}return n.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:n}}let Mf=new T0((T=Mn)&&T.__esModule?T.default:T);function Mm(){let e="u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function Mg(e,t,r,n,i){let a=null!=e&&null!=r&&e.compare(r)>0,l=null!=e&&null!=t&&0>e.compare(t),o=null!=e&&n?.(e)||!1,s=a||l||o,c=[];if(s){let e=Mm(),n=new T4(e,T0.getGlobalDictionaryForPackage("@react-stately/datepicker")||Mf),s=new kp(e,My({},i)),d=s.resolvedOptions().timeZone;l&&null!=t&&c.push(n.format("rangeUnderflow",{minValue:s.format(t.toDate(d))})),a&&null!=r&&c.push(n.format("rangeOverflow",{maxValue:s.format(r.toDate(d))})),o&&c.push(n.format("unavailableDate"))}return{isInvalid:s,validationErrors:c,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}let MC={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},Mv={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function My(e,t){e={...t.shouldForceLeadingZeros?Mv:MC,...e};let r=t.granularity||"minute",n=Object.keys(e),i=n.indexOf(t.maxGranularity??"year");i<0&&(i=0);let a=n.indexOf(r);if(a<0&&(a=2),i>a)throw Error("maxGranularity must be greater than granularity");let l=n.slice(i,a+1).reduce((t,r)=>(t[r]=e[r],t),{});return null!=t.hourCycle&&(l.hour12=12===t.hourCycle),l.timeZone=t.timeZone||"UTC",("hour"===r||"minute"===r||"second"===r)&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&0===i&&(l.era="short"),l}function Mb(e){return e&&"hour"in e?e:new pj}function Mx(e,t){return null===e?null:e?ph(e,t):void 0}function MO(e,t){let r=e&&"timeZone"in e?e.timeZone:void 0,n=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=(0,c0.useState)([n,r]);return e&&(i[0]!==n||i[1]!==r)&&a([n,r]),t||(t=e?n:i[0]),[t,e?r:i[1]]}let Mw=new T0({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"áááá",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"åååå",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");class MS{constructor(e,t,r){if(this.era=r?.era??null,this.calendar=e,this.year=r?.year??null,this.month=r?.month??null,this.day=r?.day??null,this.hour=r?.hour??null,this.hourCycle=t,this.dayPeriod=null,this.minute=r?.minute??null,this.second=r?.second??null,this.millisecond=r?.millisecond??null,this.offset="offset"in(r??{})?r.offset:null,null!=this.hour){let[e,r]=Mk(this.hour,t);this.dayPeriod=e,this.hour=r}}copy(){let e=new MS(this.calendar,this.hourCycle);return e.era=this.era,e.year=this.year,e.month=this.month,e.day=this.day,e.hour=this.hour,e.dayPeriod=this.dayPeriod,e.minute=this.minute,e.second=this.second,e.millisecond=this.millisecond,e.offset=this.offset,e}isComplete(e){return e.every(e=>null!=this[e])}validate(e,t){return t.every(t=>{if(("hour"===t||"dayPeriod"===t)&&"hour"in e){let[t,r]=Mk(e.hour,this.hourCycle);return this.dayPeriod===t&&this.hour===r}return this[t]===e[t]})}isCleared(e){return e.every(e=>null===this[e])}set(e,t,r){let n=this.copy();return n[e]=t,"hour"===e&&null==n.dayPeriod&&"hour"in r&&(n.dayPeriod=Mk(r.hour,this.hourCycle)[0]),"year"===e&&null==n.era&&(n.era=r.era),"second"!==e&&"literal"!==e&&"timeZoneName"!==e&&(n.offset=null),n}clear(e){let t=this.copy();return t[e]=null,"year"===e&&(t.era=null),t.offset=null,t}cycle(e,t,r,n){let i=this.copy();if(null==i[e]&&"dayPeriod"!==e&&"era"!==e){if("hour"===e&&"hour"in r){let[e,t]=Mk(r.hour,this.hourCycle);i.dayPeriod=e,i.hour=t}else i[e]=r[e];return"year"===e&&null==i.era&&(i.era=r.era),i}switch(e){case"era":{let e=this.calendar.getEras(),r=e.indexOf(i.era);r=ME(r,t,0,e.length-1),i.era=e[r];break}case"year":{let n=new pB(this.calendar,this.era??r.era,this.year??r.year,this.month??1,this.day??1);i.era=(n=n.cycle(e,t,{round:"year"===e})).era,i.year=n.year;break}case"month":i.month=ME(i.month??1,t,1,this.calendar.getMaximumMonthsInYear());break;case"day":i.day=ME(i.day??1,t,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let e=n.some(e=>["year","month","day"].includes(e));if("timeZone"in r&&(!e||null!=i.year&&null!=i.month&&null!=i.day)){let e=this.toValue(r),[n,a]=Mk((e=e.cycle("hour",t,{hourCycle:"h12"===this.hourCycle?12:24,round:!1})).hour,this.hourCycle);i.hour=a,i.dayPeriod=n,i.offset=e.offset}else{let e=i.hour??0,n=this.getSegmentLimits("hour");i.hour=ME(e,t,n.minValue,n.maxValue),null==i.dayPeriod&&"hour"in r&&(i.dayPeriod=Mk(r.hour,this.hourCycle)[0])}break}case"dayPeriod":i.dayPeriod=ME(i.dayPeriod??0,t,0,1);break;case"minute":i.minute=ME(i.minute??0,t,0,59,!0);break;case"second":i.second=ME(i.second??0,t,0,59,!0)}return i}toValue(e){if(!("hour"in e))return e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day});{let t=this.hour;null!=t?t=function(e,t,r){switch(r){case"h11":1===t&&(e+=12);break;case"h12":12===e&&(e=0),1===t&&(e+=12);break;case"h24":e-=1}return e}(t,this.dayPeriod??0,this.hourCycle):("h12"===this.hourCycle||"h11"===this.hourCycle)&&(t=12*(1===this.dayPeriod));let r=e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day,hour:t??e.hour,minute:this.minute??e.minute,second:this.second??e.second,millisecond:this.millisecond??e.millisecond});return"offset"in r&&null!=this.offset&&r.offset!==this.offset&&(r=r.add({milliseconds:r.offset-this.offset})),r}}getSegmentLimits(e){switch(e){case"era":{let e=this.calendar.getEras();return{value:null!=this.era?e.indexOf(this.era):e.length-1,minValue:0,maxValue:e.length-1}}case"year":return{value:this.year,minValue:1,maxValue:9999};case"month":return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case"day":return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case"dayPeriod":return{value:this.dayPeriod,minValue:0,maxValue:1};case"hour":{let e=0,t=23;return"h12"===this.hourCycle?(e=1,t=12):"h11"===this.hourCycle&&(e=0,t=11),{value:this.hour,minValue:e,maxValue:t}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function ME(e,t,r,n,i=!1){if(i){(e+=Math.sign(t))<r&&(e=n);let i=Math.abs(t);(e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i)>n&&(e=r)}else(e+=t)<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function Mk(e,t){let r=+(e>=12);switch(t){case"h11":e>=12&&(e-=12);break;case"h12":0===e?e=12:e>12&&(e-=12);break;case"h23":r=null;break;case"h24":e+=1,r=null}return[r,e]}let MP="u">typeof document?c0.default.useInsertionEffect??c0.default.useLayoutEffect:()=>{};function MD(e,t,r){let[n,i]=(0,c0.useState)(e||t),a=(0,c0.useRef)(n),l=(0,c0.useRef)(void 0!==e),o=void 0!==e;(0,c0.useEffect)(()=>{l.current,l.current=o},[o]);let s=o?e:n;MP(()=>{a.current=s});let[,c]=(0,c0.useReducer)(()=>({}),{});return[s,(0,c0.useCallback)((e,...t)=>{let n="function"==typeof e?e(a.current):e;Object.is(a.current,n)||(a.current=n,i(n),c(),r?.(n,...t))},[r])]}let MA=new Map,MT=!1;try{MT="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let MM=!1;try{MM="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}let ML={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class MI{constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),"unit"===t.style&&!MM){let{unit:e,unitDisplay:r="short"}=t;if(!e)throw Error('unit option must be provided with style: "unit"');if(!ML[e]?.[r])throw Error(`Unsupported unit ${e} with unitDisplay = ${r}`);t={...t,style:"decimal"}}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(MA.has(n))return MA.get(n);let i=new Intl.NumberFormat(e,t);return MA.set(n,i),i}(e,t),this.options=t}format(e){let t="";if(t=MT||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,r){if("auto"===t)return e.format(r);{if("never"===t)return e.format(Math.abs(r));let n=!1;if("always"===t?n=r>0||Object.is(r,0):"exceptZero"===t&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),!n)return e.format(r);{let t=e.format(-r),n=e.format(r),i=t.replace(n,"").replace(/\u200e|\u061C/,"");return 1!=[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(n,"!!!").replace(i,"+").replace("!!!",n)}}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!MM){let{unit:e,unitDisplay:r="short",locale:n}=this.resolvedOptions();if(!e)return t;let i=ML[e]?.[r];t+=i[n]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return MT||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),MM||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}}let MN={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},MF={year:5,month:2,day:7,hour:2,minute:15,second:15},MR={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function MV(e){let{locale:t,createCalendar:r,hideTimeZone:n,isDisabled:i=!1,isReadOnly:a=!1,isRequired:l=!1,minValue:o,maxValue:s,isDateUnavailable:c}=e,d=e.value||e.defaultValue||e.placeholderValue||null,[u,h]=MO(d,e.granularity),p=h||"UTC";if(d&&!(u in d))throw Error("Invalid granularity "+u+" for value "+d.toString());let[f,m]=(0,c0.useMemo)(()=>{let n=new kp(t,{dateStyle:"short",timeStyle:"short",hour12:null!=e.hourCycle?12===e.hourCycle:void 0}).resolvedOptions();return[r(n.calendar),n.hourCycle]},[t,e.hourCycle,r]),[g,C]=MD(e.value,e.defaultValue??null,e.onChange),[v]=(0,c0.useState)(g),y=(0,c0.useMemo)(()=>Mx(g,f)??null,[g,f]),[b,x]=(0,c0.useState)(()=>new MS(f,m,y)),O="gregory"===f.identifier&&"BC"===b.era,w=(0,c0.useMemo)(()=>({granularity:u,maxGranularity:e.maxGranularity??"year",timeZone:h,hideTimeZone:n,hourCycle:e.hourCycle,showEra:O,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,u,e.hourCycle,e.shouldForceLeadingZeros,h,n,O]),S=(0,c0.useMemo)(()=>My({},w),[w]),E=(0,c0.useMemo)(()=>new kp(t,S),[t,S]),k=(0,c0.useMemo)(()=>E.resolvedOptions(),[E]),P=(0,c0.useMemo)(()=>(function(e,t,r,n){if(e)return Mx(e,r);let i=ph(hG(n??hK()).set({hour:0,minute:0,second:0,millisecond:0}),r);return"year"===t||"month"===t||"day"===t?pc(i):n?i:pd(i)})(e.placeholderValue,u,f,h),[e.placeholderValue,u,f,h]),D=(0,c0.useMemo)(()=>{let t="h11"===m||"h12"===m,r=["era","year","month","day","hour",...t?["dayPeriod"]:[],"minute","second"],n=r.indexOf(e.maxGranularity||"era"),i=r.indexOf("hour"===u&&t?"dayPeriod":u);return r.slice(n,i+1)},[e.maxGranularity,u,m]),[A,T]=(0,c0.useState)(y),[M,L]=(0,c0.useState)(f),[I,N]=(0,c0.useState)(m);y===A&&m===I&&hQ(f,M)||(b=new MS(f,m,y),T(y),L(f),N(m),x(b));let F=t=>{if(!e.isDisabled&&!e.isReadOnly)if(null==t||t instanceof MS&&t.isCleared(D))x(new MS(f,m,y)),C(null);else if(t instanceof MS){if(t.isComplete(D)){let e=t.toValue(y??P);if(t.validate(e,D)){let t=ph(e,d?.calendar||new hY);if(!g||0!==t.compare(g)){x(new MS(f,m,y)),C(t);return}}}x(t)}else t=ph(t,d?.calendar||new hY),x(new MS(f,m,y)),C(t)},R=(0,c0.useMemo)(()=>b.toValue(y??P).toDate(p),[b,p,y,P]),V=(0,c0.useMemo)(()=>(function(e,t,r,n,i,a,l){let o=["hour","minute","second"],s=r.formatToParts(e),c=new MI(a,{useGrouping:!1}),d=new MI(a,{useGrouping:!1,minimumIntegerDigits:2});for(let e of s)if("year"===e.type||"month"===e.type||"day"===e.type||"hour"===e.type){let r=t[e.type]??0;"2-digit"===n[e.type]?e.value=d.format(r):e.value=c.format(r)}let u=[];for(let e of s){var h;let r=MR[e.type]||e.type,n=MN[r];"era"===r&&1===i.getEras().length&&(n=!1);let s=MN[r]&&null==t[e.type],c=MN[r]?(h=e.value,"era"===r||"dayPeriod"===r?h:"year"===r||"month"===r||"day"===r?Mw.getStringForLocale(r,a):"––"):null,d={type:r,text:s?c:e.value,...t.getSegmentLimits(r),isPlaceholder:s,placeholder:c,isEditable:n};"hour"===r?(u.push({type:"literal",text:"⁦",isPlaceholder:!1,placeholder:"",isEditable:!1}),u.push(d),r===l&&u.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):o.includes(r)&&r===l?(u.push(d),u.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):u.push(d)}return u})(R,b,E,k,f,t,u),[R,E,k,b,f,t,u]),_=(e,t)=>{F(b.cycle(e,t,P,D))},Y=(0,c0.useMemo)(()=>Mg(g,o,s,c,w),[g,o,s,c,w]),$=Mc({...e,value:g,builtinValidation:Y}),H=$.displayValidation.isInvalid,z=e.validationState||(H?"invalid":null);return{...$,value:y,defaultValue:e.defaultValue??v,dateValue:R,calendar:f,setValue:F,segments:V,dateFormatter:E,validationState:z,isInvalid:H,granularity:u,maxGranularity:e.maxGranularity??"year",isDisabled:i,isReadOnly:a,isRequired:l,increment(e){_(e,1)},decrement(e){_(e,-1)},incrementPage(e){_(e,MF[e]||1)},decrementPage(e){_(e,-(MF[e]||1))},incrementToMax(e){let t="hour"===e&&"h12"===m?11:b.getSegmentLimits(e).maxValue;F(b.set(e,t,P))},decrementToMin(e){let t="hour"===e&&"h12"===m?12:b.getSegmentLimits(e).minValue;F(b.set(e,t,P))},setSegment(e,t){F(b.set(e,t,P))},confirmPlaceholder(){if(!e.isDisabled&&!e.isReadOnly&&b.isComplete(D)){let e=ph(b.toValue(y??P),d?.calendar||new hY);g&&0===e.compare(g)||C(e),x(new MS(f,m,y))}},clearSegment(e){let t=b;"timeZoneName"!==e&&"literal"!==e&&(t=b.clear(e)),F(t)},formatValue:e=>y?new kp(t,My(e,w)).format(R):"",getDateFormatter:(e,t)=>new kp(e,My({},{...w,...t}))}}let M_=(0,c0.createContext)(void 0),MY={order:"day-first"},M$=()=>(0,c0.useContext)(M_)??MY,MH=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Mz=["January","February","March","April","May","June","July","August","September","October","November","December"],MZ=Mz.map(e=>e.slice(0,3));function MQ({granularity:e,isRange:t=!1,isTimeOnly:r=!1}){return r?"Select time":"day"===e||void 0===e?t?"Select a date range":"Select a date":t?"Select date and time range":"Select date and time"}let MB=new Set(["hour","minute","second","dayPeriod"]);function Mj(){let e=document.activeElement?.getAttribute("data-segment");return null!=e&&MB.has(e)}function MG(e){let t,r=(0,ej.c)(5),{enabled:n,isOpen:i,dropdownRef:a,onOpen:l}=e;return r[0]!==a||r[1]!==n||r[2]!==i||r[3]!==l?(t=e=>{n&&(i?["ArrowUp","ArrowDown","Enter","Escape"].includes(e.key)?(e.stopPropagation(),e.preventDefault(),a.current?.handleKeyDown(e)):["ArrowLeft","ArrowRight"].includes(e.key)&&(e.stopPropagation(),e.preventDefault()):"Enter"===e.key?(e.stopPropagation(),e.preventDefault(),l()):["ArrowUp","ArrowDown"].includes(e.key)&&Mj()?(e.stopPropagation(),e.preventDefault()):e.key>="0"&&e.key<="9"&&Mj()&&(e.stopPropagation(),e.preventDefault()))},r[0]=a,r[1]=n,r[2]=i,r[3]=l,r[4]=t):t=r[4],t}let MU=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(5),{text:i,className:a}=e;return n[0]!==a?(t=(0,m2.cn)("pointer-events-none absolute inset-0 flex items-center px-1","text-text-secondary font-sans text-sm","select-none whitespace-nowrap",a),n[0]=a,n[1]=t):t=n[1],n[2]!==t||n[3]!==i?(r=(0,eB.Y)("span",{className:t,"aria-hidden":"true",children:i}),n[2]=t,n[3]=i,n[4]=r):r=n[4],r},"TemporalPlaceholder");function MW(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return e===n&&"hidden"!==r.overflow&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function Mq(e,t){let r=[],n=document.scrollingElement||document.documentElement;for(;e&&(MW(e,t)&&r.push(e),e!==n);)e=e.parentElement;return r}function MX(e,t,r={}){let{block:n="nearest",inline:i="nearest"}=r;if(e===t)return;let a=e.scrollTop,l=e.scrollLeft,o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),c=window.getComputedStyle(t),d=window.getComputedStyle(e),u=document.scrollingElement||document.documentElement,h=e===u,p=e===u?0:s.top,f=e===u?e.clientHeight:s.bottom,m=e===u?0:s.left,g=e===u?e.clientWidth:s.right,C=parseFloat(c.scrollMarginTop)||0,v=parseFloat(c.scrollMarginBottom)||0,y=parseFloat(c.scrollMarginLeft)||0,b=parseFloat(c.scrollMarginRight)||0,x=parseFloat(d.scrollPaddingTop)||0,O=parseFloat(d.scrollPaddingBottom)||0,w=parseFloat(d.scrollPaddingLeft)||0,S=parseFloat(d.scrollPaddingRight)||0,E=parseFloat(d.borderTopWidth)||0,k=parseFloat(d.borderBottomWidth)||0,P=parseFloat(d.borderLeftWidth)||0,D=parseFloat(d.borderRightWidth)||0,A=o.top-C,T=o.bottom+v,M=o.left-y,L=o.right+b,I=e===u?0:P+D,N=e===u?0:E+k,F=e===u?0:e.offsetWidth-e.clientWidth-I,R=e===u?0:e.offsetHeight-e.clientHeight-N,V=p+(h?0:E)+x,_=f-(h?0:k)-O-R,Y=m+(h?0:P)+w,$=g-(h?0:D)-S;"rtl"!==d.direction||Ak()?$-=F:Y+=F;let H=A<V||T>_,z=M<Y||L>$;if(H&&"start"===n)a+=A-V;else if(H&&"center"===n)a+=(A+T)/2-(V+_)/2;else if(H&&"end"===n)a+=T-_;else if(H&&"nearest"===n){let e=A-V,t=T-_;a+=Math.abs(e)<=Math.abs(t)?e:t}if(z&&"start"===i)l+=M-Y;else if(z&&"center"===i)l+=(M+L)/2-(Y+$)/2;else if(z&&"end"===i)l+=L-$;else if(z&&"nearest"===i){let e=M-Y,t=L-$;l+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:l,top:a})}function MK(e){var t;let r;t=e??{},r=(0,c0.useRef)(null),t&&r.current&&MJ(t,r.current)&&(t=r.current),r.current=t,e=t;let{locale:n}=TE();return(0,c0.useMemo)(()=>new kp(n,e),[n,e])}function MJ(e,t){if(e===t)return!0;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(t[n]!==e[n])return!1;return!0}class M1{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}}function M2(e,t,r,n){let i=TN(r),a=null==r;(0,c0.useEffect)(()=>{if(a||!e.current)return;let r=e.current;return r.addEventListener(t,i,n),()=>{r.removeEventListener(t,i,n)}},[e,t,n,a])}let M0=new Map,M3=null;class M5{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"u">typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){if(!this.node)return;let n=document.createElement("div");"object"==typeof e?(n.setAttribute("role","img"),n.setAttribute("aria-labelledby",e["aria-labelledby"])):n.textContent=e,"assertive"===t?this.assertiveLog?.appendChild(n):this.politeLog?.appendChild(n),""!==e&&setTimeout(()=>{n.remove()},r)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}}var M4={};M4={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Prázdné"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vacío"},"et-EE":{Empty:"Tühjenda"},"fi-FI":{Empty:"Tyhjä"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"Üres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Prázdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};let M7=()=>{},M9=RegExp("^.*\\(.*\\).*$"),M6=["latn","arab","hanidec","deva","beng","fullwide"];class M8{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return Lt(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,r){return Lt(this.locale,this.options,e).isValidPartialNumber(e,t,r)}getNumberingSystem(e){return Lt(this.locale,this.options,e).options.numberingSystem}}let Le=new Map;function Lt(e,t,r){let n=Lr(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let i of M6)if(i!==n.options.numberingSystem){let n=Lr(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(n.isValidPartialNumber(r))return n}}return n}function Lr(e,t){let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),n=Le.get(r);return n||(n=new Ln(e,t),Le.set(r,n)),n}class Ln{constructor(e,t={}){var r,n,i,a;let l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x;this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=(r=e,n=this.formatter,i=this.options,a=t,o=(l=new Intl.NumberFormat(r,{...i,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0})).formatToParts(-10000.111),s=l.formatToParts(10000.111),d=(c=La.map(e=>l.formatToParts(e))).map((e,t)=>{let r=e.find(e=>"unit"===e.type);return r&&!e.some(e=>"integer"===e.type||"fraction"===e.type)?{unit:r.value,value:La[t]}:null}).filter(e=>!!e),u=o.find(e=>"minusSign"===e.type)?.value??"-",(h=s.find(e=>"plusSign"===e.type)?.value)||a?.signDisplay!=="exceptZero"&&a?.signDisplay!=="always"||(h="+"),p=new Intl.NumberFormat(r,{...i,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),f=p.find(e=>"decimal"===e.type)?.value,m=o.find(e=>"group"===e.type)?.value,g=o.filter(e=>!Li.has(e.type)).map(e=>Lo(e.value)),C=c.flatMap(e=>e.filter(e=>!Li.has(e.type)).map(e=>Lo(e.value))),y=0===(v=[...new Set([...g,...C])].sort((e,t)=>t.length-e.length)).length?RegExp("\\p{White_Space}|\\p{Cf}","gu"):RegExp(`${v.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),x=new Map((b=[...new Intl.NumberFormat(i.locale,{useGrouping:!1}).format(0x24cb016ea)].reverse()).map((e,t)=>[e,t])),{minusSign:u,plusSign:h,decimal:f,group:m,literals:y,numeral:RegExp(`[${b.join("")}]`,"g"),numerals:b,index:e=>String(x.get(e)),noNumeralUnits:d}),"percent"===this.options.style&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(e){let t=this.formatter.resolvedOptions().useGrouping,r=this.sanitize(e);if(!t&&this.symbols.group&&r.includes(this.symbols.group))return 0/0;if(this.symbols.group&&(r=r.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=r.indexOf("-"),t=(r=(r=r.replace("-","")).replace("+","")).indexOf(".");-1===t&&(t=r.length),r=r.replace(".",""),r=t-2==0?`0.${r}`:t-2==-1?`0.0${r}`:t-2==-2?"0.00":`${r.slice(0,t-2)}.${r.slice(t-2)}`,e>-1&&(r=`-${r}`)}let n=r?+r:0/0;if(isNaN(n))return 0/0;if("percent"===this.options.style){let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new M8(this.locale,e).parse(new MI(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&M9.test(e)&&(n*=-1),n}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=Ll(e,",",this.symbols.decimal),e=Ll(e,String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&t&&(e=Ll(e,".",this.symbols.group))),"’"===this.symbols.group&&e.includes("'")&&t&&(e=Ll(e,"'",this.symbols.group)),"'"===this.symbols.group&&e.includes("’")&&t&&(e=Ll(e,"’",this.symbols.group)),"fr-FR"===this.options.locale&&this.symbols.group&&t&&(e=Ll(e," ",this.symbols.group),e=Ll(e,/\u00A0/g,this.symbols.group)),e)}isValidPartialNumber(e,t=-1/0,r=1/0){let n=this.formatter.resolvedOptions().useGrouping;return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&r>0&&(e=e.slice(this.symbols.plusSign.length)),(!(this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1)||0!==this.options.maximumFractionDigits)&&(this.symbols.group&&n&&(e=Ll(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0===e.length)}}let Li=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),La=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Ll(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function Lo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let Ls=(0,m9.F)((0,m2.cn)("relative outline-none text-left","font-sans text-sm transition-all","focus:outline-none"),{variants:{isPlaceholder:{true:"text-text-secondary",false:"text-text-primary"},disabled:{true:"cursor-not-allowed",false:"hover:bg-states-primary-default-alt cursor-text"},type:{literal:"text-text-primary select-none hover:bg-transparent focus:bg-transparent rounded-2",editable:"px-1 focus:bg-bg-fill-brand focus:text-text-primary-alt"}},defaultVariants:{type:"editable",isPlaceholder:!1,disabled:!1}}),Lc=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(23),{segment:a,state:l,disabled:o,readOnly:s,displayOverride:c}=e,d=void 0!==o&&o,u=(0,c0.useRef)(null),{segmentProps:h}=function(e,t,r){let n,i,a,l,o=(0,c0.useRef)(""),{locale:s,direction:c}=TE(),d=function(){var e;let{locale:t}=TE(),r=T9((e=A8)&&e.__esModule?e.default:e,"@react-aria/datepicker");return(0,c0.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new M1(t,r)}},[t,r])}(),{ariaLabel:u,ariaLabelledBy:h,ariaDescribedBy:p,focusManager:f}=T8.get(t),m=e.isPlaceholder?"":e.text,g=(0,c0.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),C=MK({month:"long",timeZone:g.timeZone}),v=MK({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(m=v.format(t.dateValue));else{let e=C.format(t.dateValue);m=e!==m?`${m} – ${e}`:e}let{spinButtonProps:y}=function(e){var t;let r=(0,c0.useRef)(void 0),{value:n,textValue:i,minValue:a,maxValue:l,isDisabled:o,isReadOnly:s,isRequired:c,onIncrement:d,onIncrementPage:u,onDecrement:h,onDecrementPage:p,onDecrementToMin:f,onIncrementToMax:m}=e,g=T6((t=M4)&&t.__esModule?t.default:t,"@react-aria/spinbutton"),C=(0,c0.useRef)(!1),v=(0,c0.useCallback)(()=>{clearTimeout(r.current),C.current=!1},[]),y=TN(()=>{v()});(0,c0.useEffect)(()=>()=>y(),[]);let b=(0,c0.useRef)(!1),x=()=>{b.current=!0},O=()=>{b.current=!1},w=""===i?g.format("Empty"):(i||`${n}`).replace("-","−");(0,c0.useEffect)(()=>{b.current&&(M3&&M3.clear("assertive"),function(e,t="assertive",r=7e3){M3?M3.announce(e,t,r):(M3=new M5,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"u">typeof jest)?M3.announce(e,t,r):setTimeout(()=>{M3?.isAttached()&&M3?.announce(e,t,r)},100))}(w,"assertive"))},[w]);let S=(0,c0.useCallback)(()=>{v()},[v]),E=TN(d??M7),k=TN(h??M7),P=TN(()=>{(void 0===l||isNaN(l)||void 0===n||isNaN(n)||n<l)&&(E(),D(60))}),D=TN(e=>{y(),C.current=!0,r.current=window.setTimeout(P,e)}),A=TN(()=>{(void 0===a||isNaN(a)||void 0===n||isNaN(n)||n>a)&&(k(),T(60))}),T=TN(e=>{y(),C.current=!0,r.current=window.setTimeout(A,e)}),M=e=>{e.preventDefault()},{addGlobalListener:L,removeAllGlobalListeners:I}=TF(),N=(0,c0.useRef)(!1),[F,R]=(0,c0.useState)(null);(0,c0.useEffect)(()=>{"touch"===F?D(600):F?D(400):F||y()},[F]);let[V,_]=(0,c0.useState)(null);return(0,c0.useEffect)(()=>{"touch"===V?T(600):V?T(400):V||y()},[V]),{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===n||isNaN(n)?void 0:n,"aria-valuetext":w,"aria-valuemin":a,"aria-valuemax":l,"aria-disabled":o||void 0,"aria-readonly":s||void 0,"aria-required":c||void 0,onKeyDown:e=>{if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey&&!s&&!e.nativeEvent.isComposing)switch(e.key){case"PageUp":if(u){e.preventDefault(),u?.();break}case"ArrowUp":case"Up":d&&(e.preventDefault(),d?.());break;case"PageDown":if(p){e.preventDefault(),p?.();break}case"ArrowDown":case"Down":h&&(e.preventDefault(),h?.());break;case"Home":f&&(e.preventDefault(),f?.());break;case"End":m&&(e.preventDefault(),m?.())}},onFocus:x,onBlur:O},incrementButtonProps:{onPressStart:e=>{v(),"touch"!==e.pointerType?(d?.(),R("mouse")):(L(window,"pointercancel",S,{capture:!0}),N.current=!1,R("touch")),L(window,"contextmenu",M)},onPressUp:e=>{v(),"touch"===e.pointerType&&(N.current=!0),I(),R(null)},onPressEnd:e=>{v(),"touch"===e.pointerType&&!C.current&&N.current&&d?.(),N.current=!1,R(null)},onFocus:x,onBlur:O},decrementButtonProps:{onPressStart:e=>{v(),"touch"!==e.pointerType?(h?.(),_("mouse")):(L(window,"pointercancel",S,{capture:!0}),N.current=!1,_("touch"))},onPressUp:e=>{v(),"touch"===e.pointerType&&(N.current=!0),I(),_(null)},onPressEnd:e=>{v(),"touch"===e.pointerType&&!C.current&&N.current&&h?.(),N.current=!1,_(null)},onFocus:x,onBlur:O}}}({value:e.value??void 0,textValue:m,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{o.current="",t.increment(e.type)},onDecrement:()=>{o.current="",t.decrement(e.type)},onIncrementPage:()=>{o.current="",t.incrementPage(e.type)},onDecrementPage:()=>{o.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{o.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{o.current="",t.decrementToMin(e.type)}}),b=(0,c0.useMemo)(()=>new M8(s,{maximumFractionDigits:0}),[s]),x=()=>{if(e.text===e.placeholder&&f.focusPrevious(),!b.isValidPartialNumber(e.text)||t.isReadOnly||e.isPlaceholder)("dayPeriod"===e.type||"era"===e.type)&&t.clearSegment(e.type);else{let r=e.text.slice(0,-1),n=b.parse(r);0===(r=0===n?"":r).length||0===n?t.clearSegment(e.type):t.setSegment(e.type,n),o.current=r}},{startsWith:O}=(n=function(e){let{locale:t}=TE(),r=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(M0.has(r))return M0.get(r);let n=new Intl.Collator(t,e);return M0.set(r,n),n}({usage:"search",sensitivity:"base"}),i=(0,c0.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(0,t.length),t)),[n]),a=(0,c0.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(-t.length),t)),[n]),l=(0,c0.useCallback)((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let r=0,i=(t=t.normalize("NFC")).length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(0===n.compare(t,a))return!0}return!1},[n]),(0,c0.useMemo)(()=>({startsWith:i,endsWith:a,contains:l}),[i,a,l])),w=MK({hour:"numeric",hour12:!0}),S=(0,c0.useMemo)(()=>{let e=new Date;return e.setHours(0),w.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[w]),E=(0,c0.useMemo)(()=>{let e=new Date;return e.setHours(12),w.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[w]),k=MK({year:"numeric",era:"narrow",timeZone:"UTC"}),P=(0,c0.useMemo)(()=>{if("era"!==e.type)return[];let r=ph(new pB(1,1,1),t.calendar),n=t.calendar.getEras().map(e=>{let t=r.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:k.formatToParts(t).find(e=>"era"===e.type).value}}),i=function(e){e.sort();let t=e[0],r=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==r[e])return e;return 0}(n.map(e=>e.formatted));if(i)for(let e of n)e.formatted=e.formatted.slice(i);return n},[k,t.calendar,e.type]),D=r=>{if(t.isDisabled||t.isReadOnly)return;let n=o.current+r;switch(e.type){case"dayPeriod":if(O(S,r))t.setSegment("dayPeriod",0);else if(O(E,r))t.setSegment("dayPeriod",1);else break;f.focusNext();break;case"era":{let e=P.find(e=>O(e.formatted,r));e&&(t.setSegment("era",e.era),f.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!b.isValidPartialNumber(n))return;let i=b.parse(n),a=i;if(void 0!==e.maxValue&&i>e.maxValue&&(a=b.parse(r)),isNaN(i))return;t.setSegment(e.type,a),void 0!==e.maxValue&&(Number(i+"0")>e.maxValue||n.length>=String(e.maxValue).length)?(o.current="",f.focusNext()):o.current=n}}};M2((0,c0.useRef)("u">typeof document?document:null),"selectionchange",()=>{let e=window.getSelection();e?.anchorNode&&Ai(r.current,e?.anchorNode)&&e.collapse(r.current)});let A=(0,c0.useRef)("");M2(r,"beforeinput",n=>{if(r.current)switch(n.preventDefault(),n.inputType){case"deleteContentBackward":case"deleteContentForward":b.isValidPartialNumber(e.text)&&!t.isReadOnly&&x();break;case"insertCompositionText":A.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:null!=n.data&&D(n.data)}}),M2(r,"input",e=>{let{inputType:t,data:n}=e;"insertCompositionText"===t&&(r.current&&(r.current.textContent=A.current),null!=n&&(O(S,n)||O(E,n))&&D(n))}),Ag(()=>{let e=r.current;return()=>{((e=document)=>e.activeElement)()===e&&(f.focusPrevious()||f.focusNext())}},[r,f]);let T=Ak()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e===(0,c0.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])||t.isInvalid||(p=void 0);let M=Th(),L=!t.isDisabled&&!t.isReadOnly&&e.isEditable,I="literal"===e.type?"":d.of(e.type),N=TX({"aria-label":`${I}${u?`, ${u}`:""}${h?", ":""}`,"aria-labelledby":h});if("literal"===e.type)return{segmentProps:{"aria-hidden":!0}};let F={caretColor:"transparent"};if("rtl"===c){F.unicodeBidi="embed";let t=g[e.type];("numeric"===t||"2-digit"===t)&&(F.direction="ltr")}return{segmentProps:Tg(y,N,{id:M,...T,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":p,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:L,suppressContentEditableWarning:L,spellCheck:L?"false":void 0,autoCorrect:L?"off":void 0,[parseInt(c0.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:L?"next":void 0,inputMode:t.isDisabled||"dayPeriod"===e.type||"era"===e.type||!L?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:e=>{if("a"===e.key&&(Aw()?e.metaKey:e.ctrlKey)&&e.preventDefault(),!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey)switch(e.key){case"Backspace":case"Delete":e.preventDefault(),e.stopPropagation(),x()}},onFocus:()=>{o.current="",r.current&&function(e,t={}){let{containingElement:r}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(t).overflow){let{left:t,top:n}=e.getBoundingClientRect(),i=Mq(e,!0);for(let t of i)MX(t,e);let{left:a,top:l}=e.getBoundingClientRect();if(Math.abs(t-a)>1||Math.abs(n-l)>1){for(let e of i=r?Mq(r,!0):[])MX(e,r,{block:"center",inline:"center"});for(let t of Mq(e,!0))MX(t,e)}}else{let{left:t,top:n}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:i,top:a}=e.getBoundingClientRect();(Math.abs(t-i)>1||Math.abs(n-a)>1)&&(r?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}(r.current,{containingElement:function(e){let t=e;for(MW(t,void 0)&&(t=t.parentElement);t&&!MW(t,void 0);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}(r.current)});let e=window.getSelection();e?.collapse(r.current)},style:F,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}(a,l,u),p="literal"===a.type,f=a.isEditable&&!(void 0!==s&&s);if(i[0]!==c||i[1]!==p||i[2]!==a)t=c??(p?a.text:"month"!==a.type||null==a.value||a.isPlaceholder?"dayPeriod"===a.type?a.text.toUpperCase():a.text:function(e,t="MM"){return null==e?t:MZ[e-1]||String(e)}(a.value,a.placeholder)),i[0]=c,i[1]=p,i[2]=a,i[3]=t;else t=i[3];let m=t;if(p||!f){let e,t,r=!p&&!f&&!d;i[4]!==d||i[5]!==p||i[6]!==r||i[7]!==a.isPlaceholder?(e=(0,m2.cn)(Ls({type:"literal",isPlaceholder:!p&&a.isPlaceholder,disabled:d}),r&&"cursor-not-allowed"),i[4]=d,i[5]=p,i[6]=r,i[7]=a.isPlaceholder,i[8]=e):e=i[8];let n=p?void 0:a.type,l=!p&&!!a.isPlaceholder||void 0;return i[9]!==m||i[10]!==e||i[11]!==n||i[12]!==l?(t=(0,eB.Y)("span",{className:e,"data-segment":n,"data-placeholder":l,"aria-hidden":"true",children:m}),i[9]=m,i[10]=e,i[11]=n,i[12]=l,i[13]=t):t=i[13],t}i[14]!==d||i[15]!==a.isPlaceholder?(r=(0,m2.cn)(Ls({type:"editable",isPlaceholder:a.isPlaceholder,disabled:d})),i[14]=d,i[15]=a.isPlaceholder,i[16]=r):r=i[16];let g=a.isPlaceholder||void 0;return i[17]!==m||i[18]!==a.type||i[19]!==h||i[20]!==r||i[21]!==g?(n=(0,eB.Y)("span",{...h,ref:u,className:r,"data-segment":a.type,"data-placeholder":g,children:m}),i[17]=m,i[18]=a.type,i[19]=h,i[20]=r,i[21]=g,i[22]=n):n=i[22],n},"TemporalSegment"),Ld=(0,m9.F)("relative outline-none text-left font-sans text-sm text-text-primary select-none",{variants:{disabled:{true:"cursor-not-allowed opacity-50",false:""}},defaultVariants:{disabled:!1}}),Lu=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(5),{text:i,disabled:a}=e;return n[0]!==a?(t=Ld({disabled:a}),n[0]=a,n[1]=t):t=n[1],n[2]!==t||n[3]!==i?(r=(0,eB.Y)("span",{className:t,"aria-hidden":"true",children:i}),n[2]=t,n[3]=i,n[4]=r):r=n[4],r},"Literal"),Lh=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(21);u[0]!==e?({ref:a,state:l,disabled:r,readOnly:i,className:t,segmentKeyPrefix:o,...n}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a,u[6]=l,u[7]=o):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5],l=u[6],o=u[7]);let h=void 0===o?"":o,{order:p}=M$();u[8]!==r||u[9]!==p||u[10]!==i||u[11]!==h||u[12]!==l?(s=function(e,t,r,n,i,a=""){let l=e.find(e=>"day"===e.type),o=e.find(e=>"month"===e.type),s=e.find(e=>"year"===e.type);if(!(l||o||s))return e.map((e,r)=>(0,eB.Y)(Lc,{segment:e,state:t,disabled:n,readOnly:i},`${a}${e.type}_${r}`));let c=e.findIndex(e=>"hour"===e.type),d=c>=0?e.slice(c):[],u=[],h=e=>{if(!l)return;let r=l.isPlaceholder||2!==l.text.length||"0"!==l.text[0]?void 0:l.text.slice(1);u.push((0,eB.Y)(Lc,{segment:l,state:t,disabled:n,readOnly:i,displayOverride:r},e))},p=e=>{o&&u.push((0,eB.Y)(Lc,{segment:o,state:t,disabled:n,readOnly:i},e))};return"month-first"===r?(p(`${a}month`),o&&l&&u.push((0,eB.Y)(Lu,{text:" ",disabled:n},`${a}sep-md`)),h(`${a}day`)):(h(`${a}day`),l&&o&&u.push((0,eB.Y)(Lu,{text:" ",disabled:n},`${a}sep-dm`)),p(`${a}month`)),s&&(u.push((0,eB.Y)(Lu,{text:", ",disabled:n},`${a}sep-my`)),u.push((0,eB.Y)(Lc,{segment:s,state:t,disabled:n,readOnly:i},`${a}year`))),d.length>0&&(u.push((0,eB.Y)(Lu,{text:" ",disabled:n},`${a}sep-dt`)),d.forEach((e,r)=>u.push((0,eB.Y)(Lc,{segment:e,state:t,disabled:n,readOnly:i},`${a}time_${e.type}_${r}`)))),u}(l.segments,l,p,r,i,h),u[8]=r,u[9]=p,u[10]=i,u[11]=h,u[12]=l,u[13]=s):s=u[13];let f=s;return u[14]!==t?(c=(0,m2.cn)("flex items-center gap-0.5",t),u[14]=t,u[15]=c):c=u[15],u[16]!==f||u[17]!==n||u[18]!==a||u[19]!==c?(d=(0,eB.Y)("div",{...n,ref:a,className:c,children:f}),u[16]=f,u[17]=n,u[18]=a,u[19]=c,u[20]=d):d=u[20],d},"TemporalSegmentGroup");Lh.displayName="TemporalSegmentGroup";let Lp=(e,t)=>{if(!t)return -1;let r=60*t.hour+t.minute,n=0,i=Number.MAX_VALUE;return e.forEach((e,t)=>{let a=Math.abs(r-(60*e.hour+e.minute));a<i&&(i=a,n=t)}),n},Lf=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y=(0,ej.c)(44),{ref:b,isOpen:x,timeStep:O,value:w,hourCycle:S,onSelect:E,onClose:k}=e,P=void 0===O?30:O,D=void 0===S?24:S;y[0]!==P?(t=(e=>{let t=[];for(let r=0;r<1440;r+=e){let e=Math.floor(r/60),n=r%60;t.push(new pj(e,n,0,0))}return t})(P),y[0]=P,y[1]=t):t=y[1];let A=t;y[2]!==A||y[3]!==w?(r=()=>Lp(A,w),y[2]=A,y[3]=w,y[4]=r):r=y[4];let[T,M]=(0,c0.useState)(r),[L,I]=(0,c0.useState)(!1),N=(0,c0.useRef)(null),F=(0,c0.useRef)(null);y[5]!==A||y[6]!==w?(n=()=>{M(Lp(A,w))},i=[w,A],y[5]=A,y[6]=w,y[7]=n,y[8]=i):(n=y[7],i=y[8]),(0,c0.useEffect)(n,i),y[9]!==x||y[10]!==T?(a=()=>{x&&T>=0&&F.current&&F.current.scrollIntoView({block:"nearest"})},l=[x,T],y[9]=x,y[10]=T,y[11]=a,y[12]=l):(a=y[11],l=y[12]),(0,c0.useEffect)(a,l),y[13]!==A||y[14]!==k||y[15]!==E||y[16]!==T?(o=e=>{switch(e.stopPropagation(),e.key){case"ArrowUp":e.preventDefault(),I(!0),M(e=>e<=0?A.length-1:e-1);break;case"ArrowDown":e.preventDefault(),I(!0),M(e=>e<0||e>=A.length-1?0:e+1);break;case"Enter":e.preventDefault(),T>=0&&A[T]&&(E(A[T]),k());break;case"Escape":e.preventDefault(),k()}},y[13]=A,y[14]=k,y[15]=E,y[16]=T,y[17]=o):o=y[17];let R=o;y[18]!==R?(s=()=>({handleKeyDown:R}),c=[R],y[18]=R,y[19]=s,y[20]=c):(s=y[19],c=y[20]),(0,c0.useImperativeHandle)(b,s,c),y[21]!==k||y[22]!==E?(d=e=>{E(e),k()},y[21]=k,y[22]=E,y[23]=d):d=y[23];let V=d;y[24]!==L?(u=()=>{L&&I(!1)},y[24]=L,y[25]=u):u=y[25];let _=u;return x?(y[26]===Symbol.for("react.memo_cache_sentinel")?(h=(0,m2.cn)(SE.Zv,"absolute left-1/2 -translate-x-1/2 top-full mt-4 z-50","h-240 min-w-full p-0"),y[26]=h):h=y[26],y[27]!==A||y[28]!==V||y[29]!==D||y[30]!==L||y[31]!==T||y[32]!==w?(p=A.map((e,t)=>{let r=t===T,n=!!w&&e.hour===w.hour&&e.minute===w.minute;return(0,eB.FD)("button",{ref:r?F:void 0,type:"button",className:(0,m2.cn)((0,SE.OZ)({variant:"default"}),"gap-4",n&&!r&&"bg-states-primary-active",r&&"bg-states-primary-hover",L&&!r&&"hover:!bg-transparent focus:!bg-transparent"),onClick:()=>V(e),onMouseDown:Lg,role:"option","aria-selected":n,children:[(0,eB.Y)("span",{className:"flex-1 text-left whitespace-nowrap",children:((e,t)=>{let r=e.minute.toString().padStart(2,"0");if(12===t){let t=e.hour;return`${(0===t?12:t>12?t-12:t).toString().padStart(2,"0")}:${r} ${t>=12?"PM":"AM"}`}return`${e.hour.toString().padStart(2,"0")}:${r}`})(e,D)}),(0,eB.Y)("div",{className:"size-20 flex items-center justify-center shrink-0 text-icon-primary",children:n&&(0,eB.Y)(t4,{className:"size-16"})})]},`${e.hour}:${e.minute}`)}),y[27]=A,y[28]=V,y[29]=D,y[30]=L,y[31]=T,y[32]=w,y[33]=p):p=y[33],y[34]!==p?(f=(0,eB.Y)(Sv,{children:(0,eB.Y)(Sy,{className:"flex flex-col gap-1 p-8",children:p})}),y[34]=p,y[35]=f):f=y[35],y[36]===Symbol.for("react.memo_cache_sentinel")?(m=(0,eB.Y)(SO,{}),g=(0,eB.Y)(Sw,{}),y[36]=m,y[37]=g):(m=y[36],g=y[37]),y[38]!==f?(C=(0,eB.FD)(SS,{children:[f,m,g]}),y[38]=f,y[39]=C):C=y[39],y[40]!==R||y[41]!==_||y[42]!==C?(v=(0,eB.Y)("div",{className:h,onMouseDown:Lm,onMouseMove:_,onKeyDown:R,role:"listbox","aria-label":"Time selection",ref:N,children:C}),y[40]=R,y[41]=_,y[42]=C,y[43]=v):v=y[43],v):null},"TimeDropdown");function Lm(e){return e.preventDefault()}function Lg(e){return e.preventDefault()}Lf.displayName="TimeDropdown";let LC=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(5),{onClick:a,disabled:l}=e,o=void 0!==l&&l;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("inline-flex items-center justify-center","icon-md text-icon-primary","bg-transparent p-0 border-0","cursor-pointer","disabled:opacity-50 disabled:cursor-not-allowed","outline-none focus-visible:ring-3 focus-visible:ring-focus-primary rounded-4"),r=(0,eB.Y)(cN.X,{size:"md"}),i[0]=t,i[1]=r):(t=i[0],r=i[1]),i[2]!==o||i[3]!==a?(n=(0,eB.Y)("button",{type:"button",onClick:a,disabled:o,"aria-label":"Clear",className:t,children:r}),i[2]=o,i[3]=a,i[4]=n):n=i[4],n},"TemporalClear");function Lv(e){let t=hG(hK());return new pG(t.year,t.month,t.day,e.hour,e.minute,0)}let Ly=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w,S,E,k,P,D,A,T,M=(0,ej.c)(79);M[0]!==e?({state:u,icon:t,error:n,disabled:r,readOnly:o,placeholder:a,showTimeDropdown:c,timeStep:h,hourCycle:i,size:d,ref:s,...l}=e,M[0]=e,M[1]=t,M[2]=r,M[3]=n,M[4]=i,M[5]=a,M[6]=l,M[7]=o,M[8]=s,M[9]=c,M[10]=d,M[11]=u,M[12]=h):(t=M[1],r=M[2],n=M[3],i=M[4],a=M[5],l=M[6],o=M[7],s=M[8],c=M[9],d=M[10],u=M[11],h=M[12]);let L=m5("input-group"),I=(0,c0.useRef)(null),[N,F]=(0,c0.useState)(!1),[R,V]=(0,c0.useState)(!1);M[13]!==u.segments?(p=u.segments.some(Lb),M[13]=u.segments,M[14]=p):p=M[14];let _=p,Y=!!a&&!_&&!N;M[15]!==u.segments?(f=u.segments.some(Lx),M[15]=u.segments,M[16]=f):f=M[16];let $=f;M[17]!==u.segments?(m=u.segments.some(LO),M[17]=u.segments,M[18]=m):m=M[18];let H=m;M[19]!==u?(g=()=>{u.setValue(null)},M[19]=u,M[20]=g):g=M[20];let z=g;M[21]!==$||M[22]!==c?(C=()=>{F(!0),c&&$&&V(!0)},M[21]=$,M[22]=c,M[23]=C):C=M[23];let Z=C;M[24]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{F(!1),V(!1)},M[24]=v):v=M[24];let Q=v;M[25]!==H||M[26]!==u?(y=e=>{if(H){let t=u,r=t.value,n=r&&"hour"in r?r.set({hour:e.hour,minute:e.minute,second:0,millisecond:0}):Lv(e);t.setValue(n);return}u.setValue(Lv(e))},M[25]=H,M[26]=u,M[27]=y):y=M[27];let B=y,j=!!c;M[28]===Symbol.for("react.memo_cache_sentinel")?(b=()=>V(!0),M[28]=b):b=M[28],M[29]!==R||M[30]!==j?(x={enabled:j,isOpen:R,dropdownRef:I,onOpen:b},M[29]=R,M[30]=j,M[31]=x):x=M[31];let G=MG(x),U=null!==u.value&&$?u.value:null;M[32]!==t?(O=t&&(0,eB.Y)(SA,{children:(0,eB.Y)(t,{})}),M[32]=t,M[33]=O):O=M[33];let W=!t&&"pl-12";M[34]!==W?(w=(0,m2.cn)("relative flex-1 h-full",W),M[34]=W,M[35]=w):w=M[35],M[36]!==t||M[37]!==a||M[38]!==Y?(S=Y&&a&&(0,eB.Y)(MU,{text:a,className:(0,m2.cn)(!t&&"pl-12")}),M[36]=t,M[37]=a,M[38]=Y,M[39]=S):S=M[39];let q=Y&&"opacity-0",X=o&&"cursor-not-allowed";M[40]!==q||M[41]!==X?(E=(0,m2.cn)("h-full",q,X),M[40]=q,M[41]=X,M[42]=E):E=M[42];let K=n||void 0,J=r||void 0,ee=o||void 0;return M[43]!==r||M[44]!==Z||M[45]!==l||M[46]!==o||M[47]!==s||M[48]!==u||M[49]!==E||M[50]!==K||M[51]!==J||M[52]!==ee?(k=(0,eB.Y)(Lh,{...l,ref:s,"data-slot":"input",className:E,"aria-invalid":K,"aria-disabled":J,"data-readonly":ee,state:u,disabled:r,readOnly:o,onFocus:Z,onBlur:Q}),M[43]=r,M[44]=Z,M[45]=l,M[46]=o,M[47]=s,M[48]=u,M[49]=E,M[50]=K,M[51]=J,M[52]=ee,M[53]=k):k=M[53],M[54]!==U||M[55]!==B||M[56]!==$||M[57]!==i||M[58]!==R||M[59]!==c||M[60]!==h?(P=c&&$&&(0,eB.Y)(Lf,{ref:I,isOpen:R,timeStep:h,hourCycle:i,value:U,onSelect:B,onClose:()=>V(!1)}),M[54]=U,M[55]=B,M[56]=$,M[57]=i,M[58]=R,M[59]=c,M[60]=h,M[61]=P):P=M[61],M[62]!==G||M[63]!==w||M[64]!==S||M[65]!==k||M[66]!==P?(D=(0,eB.FD)("div",{className:w,onKeyDownCapture:G,children:[S,k,P]}),M[62]=G,M[63]=w,M[64]=S,M[65]=k,M[66]=P,M[67]=D):D=M[67],M[68]!==r||M[69]!==z||M[70]!==_||M[71]!==o?(A=_&&!o&&(0,eB.Y)(SA,{align:"inline-end",children:(0,eB.Y)(LC,{onClick:z,disabled:r})}),M[68]=r,M[69]=z,M[70]=_,M[71]=o,M[72]=A):A=M[72],M[73]!==d||M[74]!==O||M[75]!==D||M[76]!==A||M[77]!==L?(T=(0,eB.FD)(SL,{size:d,"data-testid":L,children:[O,D,A]}),M[73]=d,M[74]=O,M[75]=D,M[76]=A,M[77]=L,M[78]=T):T=M[78],T},"DateInputInternal");function Lb(e){return e.isEditable&&!e.isPlaceholder}function Lx(e){return"hour"===e.type||"minute"===e.type}function LO(e){return"year"===e.type||"month"===e.type||"day"===e.type}Ly.displayName="DateInputInternal";let Lw=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(47),{"data-testid":c,showIcon:d,value:u,defaultValue:h,onChange:p,error:f,disabled:m,readOnly:g,isRequired:C,granularity:v,showTimeDropdown:y,timeStep:b,placeholder:x,size:O,minValue:w,maxValue:S,placeholderValue:E,name:k,autoFocus:P,ref:D,...A}=e,T=void 0!==f&&f,M=void 0!==m&&m,L=void 0!==g&&g,I=void 0===v?"day":v,N=void 0===b?30:b,F=void 0===O?"default":O;s[0]!==I||s[1]!==x?(t=x??MQ({granularity:I}),s[0]=I,s[1]=x,s[2]=t):t=s[2];let R=t,{hourCycle:V}=M$(),{locale:_}=TE(),Y=(0,c0.useRef)(null);s[3]!==u||s[4]!==h||s[5]!==M||s[6]!==T||s[7]!==I||s[8]!==C||s[9]!==_||s[10]!==S||s[11]!==w||s[12]!==p||s[13]!==E||s[14]!==L||s[15]!==V?(r={value:u,defaultValue:h,onChange:p,minValue:w,maxValue:S,placeholderValue:E,isRequired:C,locale:_,isDisabled:M,isInvalid:T,isReadOnly:L,granularity:I,hourCycle:V,createCalendar:At,shouldForceLeadingZeros:!0},s[3]=u,s[4]=h,s[5]=M,s[6]=T,s[7]=I,s[8]=C,s[9]=_,s[10]=S,s[11]=w,s[12]=p,s[13]=E,s[14]=L,s[15]=V,s[16]=r):r=s[16];let $=MV(r);s[17]!==P||s[18]!==M||s[19]!==T||s[20]!==C||s[21]!==k||s[22]!==L?(n={name:k,autoFocus:P,isDisabled:M,isInvalid:T,isReadOnly:L,isRequired:C},s[17]=P,s[18]=M,s[19]=T,s[20]=C,s[21]=k,s[22]=L,s[23]=n):n=s[23];let{fieldProps:H}=Mr(n,$,Y),z=(0,m2.cn)("min-w-256 flex-1",A.className),Z=void 0===d||d?t_:void 0;return s[24]!==D?(i=(0,b8.t)(Y,D),s[24]=D,s[25]=i):i=s[25],s[26]!==M||s[27]!==T||s[28]!==H||s[29]!==L||s[30]!==V||s[31]!==R||s[32]!==y||s[33]!==F||s[34]!==$||s[35]!==Z||s[36]!==i||s[37]!==N?(a=(0,eB.Y)(Ly,{...H,icon:Z,ref:i,state:$,error:T,disabled:M,readOnly:L,placeholder:R,showTimeDropdown:y,timeStep:N,hourCycle:V,size:F}),s[26]=M,s[27]=T,s[28]=H,s[29]=L,s[30]=V,s[31]=R,s[32]=y,s[33]=F,s[34]=$,s[35]=Z,s[36]=i,s[37]=N,s[38]=a):a=s[38],s[39]!==a||s[40]!==c?(l=(0,eB.Y)(m3,{value:c,children:a}),s[39]=a,s[40]=c,s[41]=l):l=s[41],s[42]!==z||s[43]!==l||s[44]!==c||s[45]!==A?(o=(0,eB.Y)("div",{...A,"data-slot":"date-input","data-testid":c,className:z,children:l}),s[42]=z,s[43]=l,s[44]=c,s[45]=A,s[46]=o):o=s[46],o},"DateInput");Lw.displayName="DateInput";let LS=(0,eQ.G)(({api:e,readonly:t,showTime:r,timeRef:n,commitValue:i})=>{let[,a]=(0,c0.useReducer)(e=>e+1,0),l=(0,c0.useCallback)(t=>{let r=t||void 0;r?e.setValue([r]):e.clearValue()},[e]),o=(0,c0.useCallback)(t=>{let r;if(t&&"hour"in t&&n&&(n.current={hour:t.hour,minute:t.minute}),t&&(r=e.value[0],r&&t&&r.year===t.year&&r.month===t.month&&r.day===t.day)){let e=t||void 0;e&&i?.([e]),a()}else l(t)},[e,l,n,i]),s=e.value[0]||null,c=n?.current??{hour:0,minute:0},d=s&&Do(s,c)||null;return(0,eB.Y)("div",{className:"flex flex-1",onKeyDown:e=>e.stopPropagation(),children:r?(0,eB.Y)(Lw,{value:d,onChange:o,readOnly:t,granularity:"minute",showTimeDropdown:!0,showIcon:!1}):(0,eB.Y)(Lw,{value:s,onChange:l,readOnly:t,granularity:"day",showIcon:!1})})},"SingleDateInputInner"),LE=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(20),{api:d,readonly:u}=e;c[0]!==d?(t=e=>{let t=e||void 0,r=d.value[1];t&&r?d.setValue([t,r]):t?d.setValue([t]):r?d.setValue([r]):d.clearValue()},c[0]=d,c[1]=t):t=c[1];let h=t;c[2]!==d?(r=e=>{let t=e||void 0,r=d.value[0];t&&r?d.setValue([r,t]):t?d.setValue([t]):r?d.setValue([r]):d.clearValue()},c[2]=d,c[3]=r):r=c[3];let p=r;if(c[4]!==d.value[0])n=d.value[0]||null,c[4]=d.value[0],c[5]=n;else n=c[5];let f=n;if(c[6]!==d.value[1])i=d.value[1]||null,c[6]=d.value[1],c[7]=i;else i=c[7];let m=i;return c[8]!==h||c[9]!==u||c[10]!==f?(a=(0,eB.Y)(Lw,{value:f,onChange:h,readOnly:u,granularity:"day",showIcon:!1}),c[8]=h,c[9]=u,c[10]=f,c[11]=a):a=c[11],c[12]===Symbol.for("react.memo_cache_sentinel")?(l=(0,eB.Y)("span",{className:"flex items-center justify-center shrink-0 basis-20 font-sans text-sm leading-sm text-text-secondary","aria-hidden":"true",children:"→"}),c[12]=l):l=c[12],c[13]!==m||c[14]!==p||c[15]!==u?(o=(0,eB.Y)(Lw,{value:m,onChange:p,readOnly:u,granularity:"day",showIcon:!1}),c[13]=m,c[14]=p,c[15]=u,c[16]=o):o=c[16],c[17]!==a||c[18]!==o?(s=(0,eB.FD)("div",{className:"relative flex flex-1 items-center gap-4",onKeyDown:LP,children:[a,l,o]}),c[17]=a,c[18]=o,c[19]=s):s=c[19],s},"RangeDateInputInner"),Lk=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(11),{className:a}=e,{isRange:l,readonly:o,showTime:s,timeRef:c,commitValue:d}=Da();return i[0]!==a?(t=(0,m2.cn)("flex flex-1 items-center","pt-20 pb-4 px-20",a),i[0]=a,i[1]=t):t=i[1],i[2]!==d||i[3]!==l||i[4]!==o||i[5]!==s||i[6]!==c?(r=(0,eB.Y)(Dr.Context,{children:e=>l?(0,eB.Y)(LE,{api:e,readonly:o}):(0,eB.Y)(LS,{api:e,readonly:o,showTime:s,timeRef:c,commitValue:d})}),i[2]=d,i[3]=l,i[4]=o,i[5]=s,i[6]=c,i[7]=r):r=i[7],i[8]!==t||i[9]!==r?(n=(0,eB.Y)("div",{className:t,children:r}),i[8]=t,i[9]=r,i[10]=n):n=i[10],n},"CalendarInputHeader");function LP(e){return e.stopPropagation()}Lk.displayName="CalendarInputHeader";let LD=(0,m9.F)((0,m2.cn)("inline-flex items-center justify-center gap-1 w-fit","border border-component-border-hotkey rounded-4 bg-bg-surface-2","font-sans font-medium","text-text-primary text-xs","pointer-events-none select-none"),{variants:{size:{xsmall:"h-16 min-w-20 p-2",small:"h-20 min-w-20 p-4",medium:"h-24 min-w-24 p-6"}}}),LA=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(8);a[0]!==e?({size:r,...t}=e,a[0]=e,a[1]=t,a[2]=r):(t=a[1],r=a[2]);let l=void 0===r?"small":r;return a[3]!==l?(n=(0,m2.cn)(LD({size:l})),a[3]=l,a[4]=n):n=a[4],a[5]!==t||a[6]!==n?(i=(0,eB.Y)("kbd",{...t,"data-slot":"kbd",className:n}),a[5]=t,a[6]=n,a[7]=i):i=a[7],i},"Kbd");LA.displayName="Kbd";let LT=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(8),{ref:o,className:s}=e;return l[0]!==s?(t=(0,m2.cn)("flex items-center gap-12",s),l[0]=s,l[1]=t):t=l[1],l[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,eB.FD)("div",{className:"flex items-center gap-4",children:[(0,eB.FD)("div",{className:"flex items-center gap-2",children:[(0,eB.Y)(LA,{size:"small",children:"←"}),(0,eB.Y)(LA,{size:"small",children:"↑"}),(0,eB.Y)(LA,{size:"small",children:"↓"}),(0,eB.Y)(LA,{size:"small",children:"→"})]}),(0,eB.Y)("span",{className:"font-sans font-medium text-xs text-text-secondary",children:"to navigate"})]}),l[2]=r):r=l[2],l[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,eB.FD)("div",{className:"flex items-center gap-4",children:[(0,eB.Y)(LA,{size:"small",children:"Enter"}),(0,eB.Y)("span",{className:"font-sans font-medium text-xs text-text-secondary",children:"to select"})]}),l[3]=n):n=l[3],l[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,eB.FD)("div",{className:"flex items-center gap-4",children:[(0,eB.Y)(LA,{size:"small",children:"ESC"}),(0,eB.Y)("span",{className:"font-sans font-medium text-xs text-text-secondary",children:"to close"})]}),l[4]=i):i=l[4],l[5]!==o||l[6]!==t?(a=(0,eB.FD)("div",{ref:o,className:t,children:[r,n,i]}),l[5]=o,l[6]=t,l[7]=a):a=l[7],a},"CalendarKeyboardHints");LT.displayName="CalendarKeyboardHints";let LM=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(18);d[0]!==e?({label:i,value:s,shortcut:l,showShortcut:o,onClick:n,className:t,disabled:r,...a}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=n,d[4]=i,d[5]=a,d[6]=l,d[7]=o,d[8]=s):(t=d[1],r=d[2],n=d[3],i=d[4],a=d[5],l=d[6],o=d[7],s=d[8]);let u=void 0===o||o,{readonly:h}=Da(),p=h||r;return d[9]!==t||d[10]!==n||d[11]!==p||d[12]!==i||d[13]!==a||d[14]!==l||d[15]!==u||d[16]!==s?(c=(0,eB.Y)(Dr.Context,{children:e=>(0,eB.FD)("button",{...a,type:"button",disabled:p,onClick:t=>{if(!p){if("string"==typeof s){let t=e.getRangePresetValue(s);e.setValue(t)}else e.setValue(s);n?.(t)}},className:(0,m2.cn)("flex items-center justify-between","w-full px-8 py-6 rounded-6","font-sans font-normal text-sm leading-sm text-text-primary","select-none","transition-colors","outline-none focus-visible:ring-3 focus-visible:ring-focus-primary",p?"cursor-default opacity-50":"cursor-pointer hover:bg-states-primary-hover active:bg-states-primary-pressed",t),children:[(0,eB.Y)("span",{children:i}),u&&l&&(0,eB.Y)("span",{className:(0,m2.cn)("flex items-center justify-center","min-w-20 h-20 px-4","font-mono font-normal text-xs leading-xs","border border-component-border-hotkey rounded-4","bg-bg-surface-2"),children:l})]})}),d[9]=t,d[10]=n,d[11]=p,d[12]=i,d[13]=a,d[14]=l,d[15]=u,d[16]=s,d[17]=c):c=d[17],c},"CalendarPresetItem");LM.displayName="CalendarPresetItem";let LL=e=>{let t,r,n=(0,ej.c)(4),{presets:i,api:a}=e;return n[0]!==a||n[1]!==i?(t=()=>{let e=e=>{if(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let t=e.key.toUpperCase(),r=i.find(e=>e.shortcut?.toUpperCase()===t);if(r)if("string"==typeof r.value){let e=a.getRangePresetValue(r.value);a.setValue(e)}else a.setValue(r.value)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},r=[a,i],n[0]=a,n[1]=i,n[2]=t,n[3]=r):(t=n[2],r=n[3]),(0,c0.useEffect)(t,r),null},LI=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(17),{children:c,presets:d,showShortcuts:u,className:h}=e,p=void 0===u||u,{isRange:f}=Da(),m=d??(c?void 0:f?Dd:Dc);return s[0]!==h?(t=(0,m2.cn)("flex flex-col","w-182 py-4 px-4","border-r border-border-primary-light",h),s[0]=h,s[1]=t):t=s[1],s[2]!==m?(r=m&&(0,eB.Y)(Dr.Context,{children:e=>(0,eB.Y)(LL,{presets:m,api:e})}),s[2]=m,s[3]=r):r=s[3],s[4]!==c||s[5]!==m||s[6]!==p?(n=c??m?.map(e=>(0,eB.Y)(LM,{label:e.label,value:e.value,shortcut:e.shortcut,showShortcut:p},e.label)),s[4]=c,s[5]=m,s[6]=p,s[7]=n):n=s[7],s[8]!==n?(i=(0,eB.Y)(Sv,{children:(0,eB.Y)(Sy,{className:"px-4 py-4",children:(0,eB.Y)("div",{className:"flex flex-col gap-1",children:n})})}),s[8]=n,s[9]=i):i=s[9],s[10]===Symbol.for("react.memo_cache_sentinel")?(a=(0,eB.Y)(SO,{}),s[10]=a):a=s[10],s[11]!==i?(l=(0,eB.FD)(SS,{children:[i,a]}),s[11]=i,s[12]=l):l=s[12],s[13]!==t||s[14]!==r||s[15]!==l?(o=(0,eB.FD)("div",{className:t,children:[r,l]}),s[13]=t,s[14]=r,s[15]=l,s[16]=o):o=s[16],o},"CalendarPresets");LI.displayName="CalendarPresets";let LN=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(16);c[0]!==e?({ref:n,onClick:t,children:i,variant:a,color:l,size:o,...r}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=i,c[5]=a,c[6]=l,c[7]=o):(t=c[1],r=c[2],n=c[3],i=c[4],a=c[5],l=c[6],o=c[7]);let d=void 0===i?"Reset":i,u=void 0===a?"ghost":a,h=void 0===l?"neutral":l,p=void 0===o?"small":o;return c[8]!==d||c[9]!==h||c[10]!==t||c[11]!==r||c[12]!==n||c[13]!==p||c[14]!==u?(s=(0,eB.Y)(Dr.Context,{children:e=>(0,eB.Y)(vn.$,{ref:n,variant:u,color:h,size:p,onClick:()=>{e.clearValue(),t?.()},...r,children:d})}),c[8]=d,c[9]=h,c[10]=t,c[11]=r,c[12]=n,c[13]=p,c[14]=u,c[15]=s):s=c[15],s},"CalendarResetButton");LN.displayName="CalendarResetButton";let LF=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(10);l[0]!==e?({children:t,asChild:i,ref:r,...n}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=n,l[4]=i):(t=l[1],r=l[2],n=l[3],i=l[4]);let o=void 0===i||i;return l[5]!==o||l[6]!==t||l[7]!==r||l[8]!==n?(a=(0,eB.Y)(Dr.Control,{children:(0,eB.Y)(Dr.Trigger,{...n,ref:r,asChild:o,children:t})}),l[5]=o,l[6]=t,l[7]=r,l[8]=n,l[9]=a):a=l[9],a},"CalendarTrigger");LF.displayName="CalendarTrigger";let LR=(0,m9.F)("flex flex-col gap-8 rounded-8 border-1 shadow-sm min-w-[240px] overflow-hidden py-16 transition-colors duration-200 h-full text-sm",{variants:{color:{primary:"bg-bg-surface-1 border-border-primary-light",secondary:"bg-bg-light-primary border-border-primary-light"},interactive:{true:["cursor-pointer overlay","hover:not-disabled:overlay-states-primary-hover","[&:active:not(:has(a:active,button:active,input:active,select:active,textarea:active))]:not-disabled:overlay-states-primary-pressed","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-primary"],false:""},disabled:{true:"opacity-50 pointer-events-none cursor-not-allowed",false:""}},defaultVariants:{color:"primary",interactive:!1,disabled:!1}}),LV=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f=(0,ej.c)(31);f[0]!==e?({ref:i,color:a,asChild:l,disabled:o,className:r,children:t,"data-testid":s,...n}=e,f[0]=e,f[1]=t,f[2]=r,f[3]=n,f[4]=i,f[5]=a,f[6]=l,f[7]=o,f[8]=s):(t=f[1],r=f[2],n=f[3],i=f[4],a=f[5],l=f[6],o=f[7],s=f[8]);let m=void 0===a?"primary":a,g=void 0!==o&&o,C=void 0!==l&&l?Ew.DX:"div";f[9]!==n?(c=Object.keys(n).some(e=>e.startsWith("on")&&"function"==typeof n[e]),f[9]=n,f[10]=c):c=f[10];let v=c;f[11]!==n?(d=e=>{if(!n.onClick)return;let t=e.target,r=e.currentTarget,i=t.closest("[data-ds-suppress-parent-click]");i&&r.contains(i)||(t===r||t.closest("a[href],button,input,select,textarea,[tabindex]")===r)&&n.onClick(e)},f[11]=n,f[12]=d):d=f[12];let y=d,b=v&&!g?0:void 0,x=g||void 0,O=g?void 0:y;return f[13]!==r||f[14]!==m||f[15]!==g||f[16]!==v?(u=(0,m2.cn)(LR({color:m,interactive:v,disabled:g}),r),f[13]=r,f[14]=m,f[15]=g,f[16]=v,f[17]=u):u=f[17],f[18]!==C||f[19]!==t||f[20]!==n||f[21]!==i||f[22]!==b||f[23]!==x||f[24]!==O||f[25]!==u||f[26]!==s?(h=(0,eB.Y)(C,{...n,ref:i,"data-slot":"card","data-testid":s,tabIndex:b,"aria-disabled":x,onClick:O,className:u,children:t}),f[18]=C,f[19]=t,f[20]=n,f[21]=i,f[22]=b,f[23]=x,f[24]=O,f[25]=u,f[26]=s,f[27]=h):h=f[27],f[28]!==h||f[29]!==s?(p=(0,eB.Y)(m3,{value:s,children:h}),f[28]=h,f[29]=s,f[30]=p):p=f[30],p},"Card");LV.displayName="Card";let L_=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(15);s[0]!==e?({ref:i,asChild:a,className:r,children:t,...n}=e,s[0]=e,s[1]=t,s[2]=r,s[3]=n,s[4]=i,s[5]=a):(t=s[1],r=s[2],n=s[3],i=s[4],a=s[5]);let c=void 0!==a&&a?Ew.DX:"div",d=m5("content");return s[6]!==r?(l=(0,m2.cn)("px-16 text-md",r),s[6]=r,s[7]=l):l=s[7],s[8]!==c||s[9]!==t||s[10]!==n||s[11]!==i||s[12]!==l||s[13]!==d?(o=(0,eB.Y)(c,{...n,ref:i,"data-slot":"card-content","data-testid":d,className:l,children:t}),s[8]=c,s[9]=t,s[10]=n,s[11]=i,s[12]=l,s[13]=d,s[14]=o):o=s[14],o},"CardContent");L_.displayName="CardContent";let LY=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(16);s[0]!==e?({ref:i,asChild:a,className:r,children:t,...n}=e,s[0]=e,s[1]=t,s[2]=r,s[3]=n,s[4]=i,s[5]=a):(t=s[1],r=s[2],n=s[3],i=s[4],a=s[5]);let c=void 0!==a&&a?Ew.DX:"div",d=m5("footer"),u=c0.Children.count(t)>1?"justify-between":"justify-end";return s[6]!==r||s[7]!==u?(l=(0,m2.cn)("mt-auto flex items-center gap-12 px-16",u,r),s[6]=r,s[7]=u,s[8]=l):l=s[8],s[9]!==c||s[10]!==t||s[11]!==n||s[12]!==i||s[13]!==l||s[14]!==d?(o=(0,eB.Y)(c,{...n,ref:i,"data-slot":"card-footer","data-testid":d,className:l,children:t}),s[9]=c,s[10]=t,s[11]=n,s[12]=i,s[13]=l,s[14]=d,s[15]=o):o=s[15],o},"CardFooter");LY.displayName="CardFooter";let L$=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(15);s[0]!==e?({ref:i,asChild:a,className:r,children:t,...n}=e,s[0]=e,s[1]=t,s[2]=r,s[3]=n,s[4]=i,s[5]=a):(t=s[1],r=s[2],n=s[3],i=s[4],a=s[5]);let c=void 0!==a&&a?Ew.DX:"div",d=m5("header");return s[6]!==r?(l=(0,m2.cn)("flex items-center justify-between gap-8 px-16 text-base",r),s[6]=r,s[7]=l):l=s[7],s[8]!==c||s[9]!==t||s[10]!==n||s[11]!==i||s[12]!==l||s[13]!==d?(o=(0,eB.Y)(c,{...n,ref:i,"data-slot":"card-header","data-testid":d,className:l,children:t}),s[8]=c,s[9]=t,s[10]=n,s[11]=i,s[12]=l,s[13]=d,s[14]=o):o=s[14],o},"CardHeader");L$.displayName="CardHeader";let LH=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(19);d[0]!==e?({ref:a,icon:n,className:r,children:t,...i}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=n,d[4]=i,d[5]=a):(t=d[1],r=d[2],n=d[3],i=d[4],a=d[5]);let u=m5("title");return d[6]!==r?(l=(0,m2.cn)("flex items-center gap-8",r),d[6]=r,d[7]=l):l=d[7],d[8]!==n?(o=n&&(0,eB.Y)("span",{className:"shrink-0",children:n}),d[8]=n,d[9]=o):o=d[9],d[10]!==t?(s=(0,eB.Y)(bk.E,{size:"md",weight:"medium",color:"primary",children:t}),d[10]=t,d[11]=s):s=d[11],d[12]!==i||d[13]!==a||d[14]!==l||d[15]!==o||d[16]!==s||d[17]!==u?(c=(0,eB.FD)("div",{...i,ref:a,"data-slot":"card-title","data-testid":u,className:l,children:[o,s]}),d[12]=i,d[13]=a,d[14]=l,d[15]=o,d[16]=s,d[17]=u,d[18]=c):c=d[18],c},"CardTitle");LH.displayName="CardTitle";let Lz=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(17);c[0]!==e?({ref:i,className:r,children:t,"data-testid":a,...n}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=i,c[5]=a):(t=c[1],r=c[2],n=c[3],i=c[4],a=c[5]);let d=m5("chain-of-thought",a);return c[6]!==r?(l=(0,m2.cn)(xM(),r),c[6]=r,c[7]=l):l=c[7],c[8]!==t||c[9]!==d?(o=(0,eB.Y)(m3,{value:d,children:t}),c[8]=t,c[9]=d,c[10]=o):o=c[10],c[11]!==n||c[12]!==i||c[13]!==l||c[14]!==o||c[15]!==d?(s=(0,eB.Y)("ol",{...n,ref:i,"data-slot":"chain-of-thought","data-testid":d,role:"list",className:l,children:o}),c[11]=n,c[12]=i,c[13]=l,c[14]=o,c[15]=d,c[16]=s):s=c[16],s},"ChainOfThought");Lz.displayName="ChainOfThought";let LZ=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(19);d[0]!==e?({ref:a,open:n,children:t,className:r,inertWhenClosed:l,...i}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=n,d[4]=i,d[5]=a,d[6]=l):(t=d[1],r=d[2],n=d[3],i=d[4],a=d[5],l=d[6]);let u=void 0!==l&&l,h=n?"open":"closed",p=n?"grid-rows-[1fr]":"grid-rows-[0fr]";d[7]!==r||d[8]!==p?(o=(0,m2.cn)("grid transition-[grid-template-rows] duration-[220ms] ease-[cubic-bezier(0.4,0,0.2,1)] motion-reduce:transition-none",p,r),d[7]=r,d[8]=p,d[9]=o):o=d[9];let f=!!u&&!n||void 0;return d[10]!==t||d[11]!==f?(s=(0,eB.Y)("div",{className:"overflow-hidden",inert:f,children:t}),d[10]=t,d[11]=f,d[12]=s):s=d[12],d[13]!==i||d[14]!==a||d[15]!==h||d[16]!==o||d[17]!==s?(c=(0,eB.Y)("div",{ref:a,"data-state":h,className:o,...i,children:s}),d[13]=i,d[14]=a,d[15]=h,d[16]=o,d[17]=s,d[18]=c):c=d[18],c},"Collapse");LZ.displayName="Collapse";let LQ=(0,eB.Y)(rD,{}),LB=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w,S,E,k,P,D,A=(0,ej.c)(81);A[0]!==e?({ref:c,label:n,icon:d,metric:i,status:u,open:o,defaultOpen:h,onOpenChange:l,children:t,className:r,onClick:a,"data-testid":p,...s}=e,A[0]=e,A[1]=t,A[2]=r,A[3]=n,A[4]=i,A[5]=a,A[6]=l,A[7]=o,A[8]=s,A[9]=c,A[10]=d,A[11]=u,A[12]=h,A[13]=p):(t=A[1],r=A[2],n=A[3],i=A[4],a=A[5],l=A[6],o=A[7],s=A[8],c=A[9],d=A[10],u=A[11],h=A[12],p=A[13]);let T=void 0===d?LQ:d,M=void 0===u?"done":u,L=void 0!==h&&h,I=m5("step",p),N=(0,c0.useId)(),[F,R]=(0,c0.useState)(L),[V]=(0,c0.useState)("running"===M),[_,Y]=(0,c0.useState)(!1),$=V&&!(_&&"done"===M);A[14]!==M?(f=e=>{"done"===M&&e.target===e.currentTarget&&e.propertyName.endsWith("text-fill-color")&&Y(!0)},A[14]=M,A[15]=f):f=A[15];let H=f,z=o??F,Z=null!=t&&!1!==t,Q=null!==T;A[16]!==z||A[17]!==a||A[18]!==l||A[19]!==o?(m=e=>{a?.(e),e.defaultPrevented||(void 0===o&&R(!z),l?.(!z))},A[16]=z,A[17]=a,A[18]=l,A[19]=o,A[20]=m):m=A[20];let B=m,j=Q&&!(Z&&z);A[21]!==Z||A[22]!==T||A[23]!==z||A[24]!==j||A[25]!==M||A[26]!==I?(g=(j||Z)&&(0,eB.FD)("span",{className:(0,m2.cn)(xN({status:M})),"data-testid":I&&`${I}--icon`,children:[j&&(0,eB.Y)("span",{className:(0,m2.cn)("inline-flex",Z&&"group-hover/row:hidden group-focus-visible/row:hidden"),children:T}),Z&&(0,eB.Y)("span",{className:(0,m2.cn)("inline-flex transition-transform motion-reduce:transition-none",!z&&"-rotate-90",j&&"hidden group-hover/row:inline-flex group-focus-visible/row:inline-flex"),children:(0,eB.Y)(t6.y,{})})]}),A[21]=Z,A[22]=T,A[23]=z,A[24]=j,A[25]=M,A[26]=I,A[27]=g):g=A[27];let G=g;A[28]!==M?(C="error"===M&&(0,eB.Y)("span",{className:"sr-only",children:"Error: "}),A[28]=M,A[29]=C):C=A[29],A[30]!==$||A[31]!==M?(v=xF({status:M,entered:$}),A[30]=$,A[31]=M,A[32]=v):v=A[32];let U=$?H:void 0;A[33]!==n||A[34]!==v||A[35]!==U?(y=(0,eB.Y)("span",{className:v,onTransitionEnd:U,children:n}),A[33]=n,A[34]=v,A[35]=U,A[36]=y):y=A[36],A[37]!==i?(b=null!=i&&(0,eB.Y)("span",{className:xR(),children:i}),A[37]=i,A[38]=b):b=A[38],A[39]!==G||A[40]!==y||A[41]!==b||A[42]!==C?(x=(0,eB.FD)(eB.FK,{children:[G,C,y,b]}),A[39]=G,A[40]=y,A[41]=b,A[42]=C,A[43]=x):x=A[43];let W=x,q=c;A[44]!==r||A[45]!==Z?(O=(0,m2.cn)(xI({interactive:Z}),r),A[44]=r,A[45]=Z,A[46]=O):O=A[46],A[47]!==s||A[48]!==q||A[49]!==O||A[50]!==I?(w={...s,ref:q,"data-slot":"chain-of-thought-step-row","data-testid":I,className:O},A[47]=s,A[48]=q,A[49]=O,A[50]=I,A[51]=w):w=A[51];let X=w,K=V||void 0,J=Z&&z?"open":"closed",ee=!Q;return A[52]!==V||A[53]!==ee?(S=xL({simple:ee,entered:V}),A[52]=V,A[53]=ee,A[54]=S):S=A[54],A[55]!==Z||A[56]!==N||A[57]!==B||A[58]!==z||A[59]!==a||A[60]!==W||A[61]!==X?(E=Z?(0,eB.Y)("button",{...X,type:"button","aria-expanded":z,"aria-controls":N,onClick:B,children:W}):(0,eB.Y)("div",{...X,onClick:a,children:W}),A[55]=Z,A[56]=N,A[57]=B,A[58]=z,A[59]=a,A[60]=W,A[61]=X,A[62]=E):E=A[62],A[63]!==V||A[64]!==j||A[65]!==I?(k=j&&(0,eB.Y)("span",{"aria-hidden":!0,"data-slot":"chain-of-thought-connector","data-testid":I&&`${I}--connector`,className:(0,m2.cn)(xV({entered:V}),"h-20")}),A[63]=V,A[64]=j,A[65]=I,A[66]=k):k=A[66],A[67]!==t||A[68]!==Z||A[69]!==N||A[70]!==z||A[71]!==I?(P=Z&&(0,eB.Y)(LZ,{id:N,open:z,inertWhenClosed:!0,"data-slot":"chain-of-thought-step-content",children:(0,eB.FD)("div",{className:"flex",children:[(0,eB.Y)("span",{"aria-hidden":!0,className:xV()}),(0,eB.Y)("div",{className:x_(),children:(0,eB.Y)(m3,{value:I,children:t})})]})}),A[67]=t,A[68]=Z,A[69]=N,A[70]=z,A[71]=I,A[72]=P):P=A[72],A[73]!==M||A[74]!==K||A[75]!==J||A[76]!==S||A[77]!==E||A[78]!==k||A[79]!==P?(D=(0,eB.FD)("li",{"data-slot":"chain-of-thought-step","data-status":M,"data-entered":K,"data-state":J,className:S,children:[E,k,P]}),A[73]=M,A[74]=K,A[75]=J,A[76]=S,A[77]=E,A[78]=k,A[79]=P,A[80]=D):D=A[80],D},"ChainOfThoughtStep");LB.displayName="ChainOfThoughtStep";let Lj=(0,m9.F)("relative isolate flex h-full min-h-0 flex-col overflow-hidden bg-bg-page-bg"),LG=(0,m9.F)("pointer-events-none absolute inset-0 -z-1",{variants:{background:{strong:"opacity-12",subtle:"opacity-5"}},defaultVariants:{background:"subtle"}}),LU=(0,m9.F)("flex h-48 shrink-0 items-center justify-between gap-8 border-b border-border-primary-light bg-bg-page-bg pl-16 pr-12"),LW=(0,m9.F)("flex min-w-0 items-center"),Lq=(0,m9.F)((0,m2.cn)("flex shrink-0 items-center gap-4","*:data-[orientation=vertical]:mx-2 *:data-[orientation=vertical]:h-16 *:data-[orientation=vertical]:self-center")),LX=(0,m9.F)("flex min-h-0 flex-1 flex-col overflow-y-auto px-16 pt-12 pb-16"),LK=(0,m9.F)("flex shrink-0 flex-col gap-16 px-20 pb-4"),LJ=(0,m9.F)("flex flex-col items-center gap-24 pt-103"),L1=(0,m9.F)("flex flex-col",{variants:{placement:{footer:"items-end gap-8",greeting:"items-center gap-12"}},defaultVariants:{placement:"footer"}}),L2=(0,m9.F)("font-mono text-xs text-text-secondary [font-feature-settings:'liga'_0]"),L0=(0,m9.F)((0,m2.cn)("inline-flex max-w-full shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap","border border-border-primary bg-transparent font-mono font-normal text-text-primary outline-none transition-colors [font-feature-settings:'liga'_0]","not-disabled:hover:border-border-brand not-disabled:hover:bg-bg-light-brand not-disabled:hover:text-text-brand","focus-visible:ring-3 focus-visible:ring-focus-brand","disabled:cursor-not-allowed disabled:opacity-50"),{variants:{size:{md:"h-20 rounded-8 px-8 text-xs",lg:"h-28 rounded-12 px-12 text-sm"}},defaultVariants:{size:"md"}}),L3=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(22);u[0]!==e?({ref:i,background:a,className:r,children:t,"data-testid":l,...n}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a,u[6]=l):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5],l=u[6]);let h=void 0===a?"subtle":a;return u[7]!==r?(o=(0,m2.cn)(Lj(),r),u[7]=r,u[8]=o):o=u[8],u[9]!==h||u[10]!==l?(s="none"!==h&&(0,eB.Y)("div",{"aria-hidden":!0,"data-slot":"chat-background","data-testid":l&&`${l}--background`,className:LG({background:h}),children:(0,eB.Y)(bN,{palette:"chat",className:"size-full [--lg-frame-bg:transparent]"})}),u[9]=h,u[10]=l,u[11]=s):s=u[11],u[12]!==t||u[13]!==l?(c=(0,eB.Y)(m3,{value:l,children:t}),u[12]=t,u[13]=l,u[14]=c):c=u[14],u[15]!==n||u[16]!==i||u[17]!==o||u[18]!==s||u[19]!==c||u[20]!==l?(d=(0,eB.FD)("section",{"aria-label":"Wally chat",...n,ref:i,"data-slot":"chat","data-testid":l,className:o,children:[s,c]}),u[15]=n,u[16]=i,u[17]=o,u[18]=s,u[19]=c,u[20]=l,u[21]=d):d=u[21],d},"Chat");L3.displayName="Chat";let L5=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({ref:n,className:t,"data-testid":i,...r}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("body",i);return o[5]!==t?(a=(0,m2.cn)(LX(),t),o[5]=t,o[6]=a):a=o[6],o[7]!==r||o[8]!==n||o[9]!==a||o[10]!==s?(l=(0,eB.Y)("div",{role:"log","aria-label":"Chat messages",...r,ref:n,"data-slot":"chat-body","data-testid":s,className:a}),o[7]=r,o[8]=n,o[9]=a,o[10]=s,o[11]=l):l=o[11],l},"ChatBody");L5.displayName="ChatBody";let L4=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({ref:n,className:t,"data-testid":i,...r}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("footer",i);return o[5]!==t?(a=(0,m2.cn)(LK(),t),o[5]=t,o[6]=a):a=o[6],o[7]!==r||o[8]!==n||o[9]!==a||o[10]!==s?(l=(0,eB.Y)("div",{...r,ref:n,"data-slot":"chat-footer","data-testid":s,className:a}),o[7]=r,o[8]=n,o[9]=a,o[10]=s,o[11]=l):l=o[11],l},"ChatFooter");L4.displayName="ChatFooter";let L7=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f=(0,ej.c)(25);f[0]!==e?({ref:i,title:l,className:r,children:t,"data-testid":a,...n}=e,f[0]=e,f[1]=t,f[2]=r,f[3]=n,f[4]=i,f[5]=a,f[6]=l):(t=f[1],r=f[2],n=f[3],i=f[4],a=f[5],l=f[6]);let m=m5("greeting",a),g=(0,c0.useRef)(null),C=(0,c0.useRef)(null);f[7]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{let e,t=g.current;if(!t||"u"<typeof IntersectionObserver)return;let r=new IntersectionObserver(t=>{t.some(L9)&&(r.disconnect(),e=setTimeout(()=>{g7().motionOn()&&C.current?.play("hello")},250))},{threshold:.6});return r.observe(t),()=>{r.disconnect(),clearTimeout(e)}},s=[],f[7]=o,f[8]=s):(o=f[7],s=f[8]),(0,c0.useEffect)(o,s),f[9]!==r?(c=(0,m2.cn)(LJ(),r),f[9]=r,f[10]=c):c=f[10];let v=m&&`${m}--wally`;return f[11]!==v?(d=(0,eB.Y)(C9,{ref:g,handleRef:C,agent:"wally",seed:"wally",size:120,live:!0,shadow:!0,"data-testid":v}),f[11]=v,f[12]=d):d=f[12],f[13]!==l?(u=(0,eB.Y)(bk.E,{asChild:!0,size:"xl",weight:"medium",color:"primary",align:"center",children:(0,eB.Y)("h2",{children:l})}),f[13]=l,f[14]=u):u=f[14],f[15]!==d||f[16]!==u?(h=(0,eB.FD)("div",{className:"flex flex-col items-center gap-12",children:[d,u]}),f[15]=d,f[16]=u,f[17]=h):h=f[17],f[18]!==t||f[19]!==n||f[20]!==i||f[21]!==c||f[22]!==h||f[23]!==m?(p=(0,eB.FD)("div",{...n,ref:i,"data-slot":"chat-greeting","data-testid":m,className:c,children:[h,t]}),f[18]=t,f[19]=n,f[20]=i,f[21]=c,f[22]=h,f[23]=m,f[24]=p):p=f[24],p},"ChatGreeting");function L9(e){return e.isIntersecting}L7.displayName="ChatGreeting";let L6=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({ref:n,className:t,"data-testid":i,...r}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("header",i);return o[5]!==t?(a=(0,m2.cn)(LU(),t),o[5]=t,o[6]=a):a=o[6],o[7]!==r||o[8]!==n||o[9]!==a||o[10]!==s?(l=(0,eB.Y)("header",{...r,ref:n,"data-slot":"chat-header","data-testid":s,className:a}),o[7]=r,o[8]=n,o[9]=a,o[10]=s,o[11]=l):l=o[11],l},"ChatHeader");L6.displayName="ChatHeader";let L8=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({ref:n,className:t,"data-testid":i,...r}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("actions",i);return o[5]!==t?(a=(0,m2.cn)(Lq(),t),o[5]=t,o[6]=a):a=o[6],o[7]!==r||o[8]!==n||o[9]!==a||o[10]!==s?(l=(0,eB.Y)("div",{...r,ref:n,"data-slot":"chat-header-actions","data-testid":s,className:a}),o[7]=r,o[8]=n,o[9]=a,o[10]=s,o[11]=l):l=o[11],l},"ChatHeaderActions");L8.displayName="ChatHeaderActions";let Ie=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(21);u[0]!==e?({ref:a,className:r,children:t,label:n,"data-testid":l,...i}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a,u[6]=l):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5],l=u[6]);let h=m5("title",l);u[7]!==r?(o=(0,m2.cn)(LW(),r),u[7]=r,u[8]=o):o=u[8];let p=h&&`${h}--wally`;return u[9]!==p?(s=(0,eB.Y)(C8,{agent:"wally",size:24,align:"optical","data-testid":p}),u[9]=p,u[10]=s):s=u[10],u[11]!==t||u[12]!==n?(c=null==t?(0,eB.Y)("span",{className:"ml-8 truncate text-sm text-text-primary",children:n??(0,eB.FD)(eB.FK,{children:["Ask ",(0,eB.Y)("span",{className:"font-mono font-medium text-text-brand",children:"Wally"})]})}):(0,eB.FD)(eB.FK,{children:[(0,eB.Y)("span",{"aria-hidden":!0,className:"pl-12 pr-4 text-sm font-medium text-text-secondary",children:"/"}),t]}),u[11]=t,u[12]=n,u[13]=c):c=u[13],u[14]!==i||u[15]!==a||u[16]!==o||u[17]!==s||u[18]!==c||u[19]!==h?(d=(0,eB.FD)("div",{...i,ref:a,"data-slot":"chat-header-title","data-testid":h,className:o,children:[s,c]}),u[14]=i,u[15]=a,u[16]=o,u[17]=s,u[18]=c,u[19]=h,u[20]=d):d=u[20],d},"ChatHeaderTitle");Ie.displayName="ChatHeaderTitle";let It=(0,c0.createContext)({size:"md"}),Ir=It.Provider,In=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(13);o[0]!==e?({ref:n,className:t,"data-testid":i,...r}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("suggestion",i),{size:c}=(0,c0.useContext)(It);return o[5]!==t||o[6]!==c?(a=(0,m2.cn)(L0({size:c}),t),o[5]=t,o[6]=c,o[7]=a):a=o[7],o[8]!==r||o[9]!==n||o[10]!==a||o[11]!==s?(l=(0,eB.Y)("button",{type:"button",...r,ref:n,"data-slot":"chat-suggestion","data-testid":s,className:a}),o[8]=r,o[9]=n,o[10]=a,o[11]=s,o[12]=l):l=o[12],l},"ChatSuggestion");In.displayName="ChatSuggestion";let Ii=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p=(0,ej.c)(29);p[0]!==e?({ref:a,placement:l,label:n,className:r,children:t,"data-testid":o,...i}=e,p[0]=e,p[1]=t,p[2]=r,p[3]=n,p[4]=i,p[5]=a,p[6]=l,p[7]=o):(t=p[1],r=p[2],n=p[3],i=p[4],a=p[5],l=p[6],o=p[7]);let f=void 0===l?"footer":l,m=m5("suggestions",o),g=(0,c0.useId)(),C=null!=n&&!1!==n&&""!==n,v=C?void 0:"Suggestions",y=C?g:void 0;p[8]!==r||p[9]!==f?(s=(0,m2.cn)(L1({placement:f}),r),p[8]=r,p[9]=f,p[10]=s):s=p[10],p[11]!==C||p[12]!==n||p[13]!==g?(c=C&&(0,eB.Y)("p",{id:g,className:L2(),children:n}),p[11]=C,p[12]=n,p[13]=g,p[14]=c):c=p[14];let b="greeting"===f?"lg":"md";return p[15]!==b?(d={size:b},p[15]=b,p[16]=d):d=p[16],p[17]!==t||p[18]!==d?(u=(0,eB.Y)(Ir,{value:d,children:t}),p[17]=t,p[18]=d,p[19]=u):u=p[19],p[20]!==i||p[21]!==a||p[22]!==v||p[23]!==y||p[24]!==s||p[25]!==c||p[26]!==u||p[27]!==m?(h=(0,eB.FD)("div",{role:"group","aria-label":v,"aria-labelledby":y,...i,ref:a,"data-slot":"chat-suggestions","data-testid":m,className:s,children:[c,u]}),p[20]=i,p[21]=a,p[22]=v,p[23]=y,p[24]=s,p[25]=c,p[26]=u,p[27]=m,p[28]=h):h=p[28],h},"ChatSuggestions");Ii.displayName="ChatSuggestions";let Ia=(0,eQ.G)(()=>{let e,t=(0,ej.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eB.FD)(eB.FK,{children:[(0,eB.Y)("circle",{cx:"32",cy:"32",r:"32",fill:"#FF4D2E"}),(0,eB.Y)("path",{d:"M17.2314 50.5207C19.7664 49.9086 22.2431 50.6207 23.8945 52.7825C24.8723 54.0622 25.5292 55.5857 25.7744 57.2473C22.1381 56.3537 18.8026 54.6966 15.9482 52.4534C16.1585 51.8535 16.4823 51.3094 17.2314 50.5207Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M44.4561 48.8809C46.3962 49.0529 48.0829 50.0012 49.0967 51.5869C44.5259 55.5798 38.546 58 32 58C29.8539 58 27.7692 57.7373 25.7744 57.2471C25.529 55.586 24.8711 54.0636 23.8936 52.7842C22.2422 50.6224 19.7648 49.9079 17.2314 50.5215C18.0054 49.7075 19.0353 49.2217 20.2979 49.1152C22.9299 48.8947 25.5254 48.7239 28.1035 48.6592C28.1374 48.8982 27.9709 49.4624 28.2236 49.666C28.7772 50.1101 29.6026 50.0389 30.2949 50.042C31.2236 50.0466 34.4984 50.0346 34.8838 49.2822C35.0395 48.9785 34.9895 48.639 34.9648 48.3584L37.5566 48.2676L44.4561 48.8809Z",fill:"#FDFCFC"}),(0,eB.Y)("path",{d:"M27.5031 45.7366C26.933 44.5967 35.4833 45.7366 35.4833 45.7366C35.4833 45.7366 36.0533 49.1567 34.9133 49.7267C33.7732 50.2967 28.6427 50.8667 28.0729 50.2967C26.8639 49.0873 28.0731 46.8765 27.5031 45.7366Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M42.8074 25.7023C42.1108 24.9508 41.4019 24.184 40.7358 23.2846C40.8379 23.2983 40.8684 23.1291 40.8699 22.9843C40.8858 20.7033 41.5682 18.4768 42.833 16.5786L43.8978 14.9807C43.0201 13.6263 43.2141 12.0181 44.2954 11.0464C45.4209 10.0365 47.074 10.0384 48.2163 11.0656C49.2429 11.989 49.4611 13.5992 48.6432 14.8348C47.9015 15.9545 46.7243 16.4001 45.3955 16.0561C43.7239 17.735 42.7889 20.0099 42.7966 22.3791L42.8074 25.7023Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M18.1375 26.4225C18.8341 25.671 19.5429 24.9042 20.2091 24.0048C20.107 24.0185 20.0765 23.8493 20.075 23.7045C20.059 21.4236 19.3767 19.197 18.1118 17.2988L17.0471 15.7009C17.9248 14.3465 17.7307 12.7383 16.6495 11.7667C15.524 10.7567 13.8709 10.7586 12.7286 11.7858C11.702 12.7092 11.4838 14.3195 12.3017 15.555C13.0434 16.6747 14.2206 17.1204 15.5494 16.7763C17.2209 18.4553 18.156 20.7302 18.1483 23.0993L18.1375 26.4225Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M33.1535 17.2782C33.1551 17.2781 33.1566 17.2781 33.1582 17.278L33.1536 17.2795C33.1536 17.2791 33.1535 17.2786 33.1535 17.2782C28.468 17.4859 24.4639 20.6468 22.5195 24.9076C20.8167 28.6362 20.2588 32.8161 21.0545 36.813C22.1994 42.563 27.2054 46.3725 33.0088 46.06C33.5972 46.028 34.1338 46.0752 34.6856 46.2277L22.3228 45.9457C19.9417 45.7246 17.9311 44.5478 16.3427 42.7688C11.4021 37.2353 13.3384 26.823 20.6323 20.7323C24.0989 17.8375 28.4432 16.6713 32.8396 17.1286C33.0189 17.1468 33.1436 17.1484 33.1535 17.2782Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M42.9326 21.0864C43.5988 21.9858 44.3061 22.7525 45.0043 23.504C47.9174 27.7723 49.2207 32.6992 48.082 37.7022C47.4555 40.4568 45.9814 42.7815 43.7116 44.4248C40.6522 46.6412 38.047 46.0818 34.6857 46.2251C34.1339 46.0726 33.5973 46.0254 33.0089 46.0574C27.2055 46.3699 22.1994 42.5604 21.0546 36.8104C20.2589 32.815 20.8168 28.6336 22.5196 24.905C24.4647 20.6428 28.4708 17.4827 33.1583 17.2754C37.2634 17.0955 39.9631 18.6519 42.9326 21.0864ZM31.079 41.4187C33.8442 41.5604 36.4982 41.4933 39.2634 41.3729C42.0211 41.254 44.207 39.5818 45.0561 36.9293C46.1339 33.5604 45.4128 29.8165 43.2863 26.9751C41.5028 24.5909 38.8656 23.3226 35.9128 23.2022C31.5653 23.0239 27.7802 25.4263 26.1019 29.4293C24.9647 32.1428 24.826 35.1732 26.1324 37.8302C27.0927 39.783 28.8839 41.3074 31.079 41.4187Z",fill:"#FDFCFC"}),(0,eB.Y)("path",{d:"M31.0789 41.4209C28.8838 41.3097 27.0927 39.7853 26.1338 37.8325C24.8274 35.1755 24.9661 32.145 26.1033 29.4316C27.7817 25.4286 31.5667 23.0262 35.9143 23.2045C38.8655 23.3249 41.5027 24.5932 43.2878 26.9774C45.4143 29.8188 46.1353 33.5612 45.0576 36.9316C44.2085 39.5856 42.024 41.2563 39.2649 41.3752C36.4997 41.4941 33.8442 41.5612 31.0805 41.4209H31.0789ZM41.4554 30.9316C41.1658 30.4301 40.6003 30.1527 40.1201 30.1771C39.6658 30.1999 39.2024 30.5216 38.9356 30.988C37.8564 32.8768 38.492 35.9667 40.2451 35.9133C41.7146 35.8691 42.582 32.8844 41.4554 30.9316ZM32.521 31.0643C32.2542 30.5261 31.7375 30.2228 31.2512 30.203C30.7649 30.1832 30.2969 30.4286 29.9921 30.895C28.7253 32.8356 29.4052 35.9545 31.1018 35.9835C32.5789 36.0094 33.5759 33.1923 32.521 31.0643Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M32.52 31.0635C33.5749 33.1916 32.5779 36.0086 31.1008 35.9827C29.4057 35.9537 28.7243 32.8348 29.991 30.8943C30.2959 30.4278 30.7822 30.1839 31.2502 30.2022C31.7182 30.2205 32.2532 30.5254 32.52 31.0635Z",fill:"#FDFCFC"}),(0,eB.Y)("path",{d:"M41.4545 30.9316C42.5811 32.8829 41.7152 35.8676 40.2442 35.9133C38.4911 35.9667 37.8555 32.8768 38.9347 30.988C39.2015 30.5216 39.6649 30.1999 40.1192 30.1771C40.5994 30.1527 41.1649 30.4301 41.4545 30.9316Z",fill:"#FDFCFC"})]}),t[0]=e):e=t[0],e},"CirclePaths"),Il=(0,m9.F)("inline-block shrink-0",{variants:{size:{xs:"h-[16px]",sm:"h-[20px]",md:"h-[24px]",lg:"h-[32px]",xl:"h-[64px]"}},defaultVariants:{size:"md"}}),Io=(0,eQ.G)(()=>{let e,t=(0,ej.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eB.FD)(eB.FK,{children:[(0,eB.Y)("path",{d:"M46.4519 27.9723C45.6059 27.0597 44.7452 26.1286 43.9362 25.0364C44.0602 25.0531 44.0973 24.8476 44.0991 24.6717C44.1184 21.9019 44.9471 19.1981 46.483 16.8931L47.776 14.9526C46.7101 13.308 46.9458 11.3551 48.2588 10.1752C49.6255 8.94876 51.6329 8.95107 53.0201 10.1984C54.2667 11.3198 54.5317 13.2751 53.5384 14.7755C52.6378 16.1352 51.2083 16.6763 49.5947 16.2586C47.5648 18.2974 46.4294 21.0599 46.4388 23.9368L46.4519 27.9723Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M16.4934 28.8466C17.3394 27.934 18.2002 27.0029 19.0091 25.9108C18.8851 25.9274 18.848 25.7219 18.8462 25.5461C18.8269 22.7762 17.9983 20.0725 16.4623 17.7674L15.1693 15.827C16.2352 14.1824 15.9995 12.2295 14.6865 11.0495C13.3198 9.82312 11.3124 9.82543 9.92521 11.0728C8.67858 12.1941 8.41366 14.1495 9.4069 15.6499C10.3075 17.0095 11.737 17.5507 13.3506 17.133C15.3805 19.1717 16.5159 21.9342 16.5066 24.8112L16.4934 28.8466Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M34.7286 17.7426C34.7305 17.7426 34.7324 17.7425 34.7343 17.7424L34.7287 17.7442C34.7287 17.7437 34.7286 17.7432 34.7286 17.7426C29.0389 17.9948 24.1766 21.8332 21.8153 27.0072C19.7476 31.5351 19.0701 36.6108 20.0364 41.4644C21.4266 48.4469 27.5057 53.0728 34.5529 52.6933C35.2674 52.6545 35.919 52.7118 36.5891 52.897L21.5765 52.5545C18.6851 52.2861 16.2435 50.857 14.3146 48.6968C8.31515 41.9772 10.6665 29.3332 19.5237 21.937C23.7333 18.4218 29.0088 17.0056 34.3474 17.561C34.5651 17.5831 34.7166 17.585 34.7286 17.7426Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M46.6038 22.3671C47.4128 23.4592 48.2717 24.3903 49.1195 25.3029C52.657 30.4861 54.2397 36.4689 52.8569 42.5442C52.0961 45.8892 50.3061 48.7122 47.5498 50.7077C43.8346 53.3992 40.671 52.7198 36.5893 52.8938C35.9192 52.7087 35.2676 52.6513 34.5531 52.6902C27.5059 53.0697 21.4268 48.4438 20.0366 41.4613C19.0703 36.6096 19.7479 31.532 21.8155 27.0041C24.1776 21.8284 29.0423 17.991 34.7345 17.7393C39.7195 17.5209 42.9979 19.4108 46.6038 22.3671ZM32.2096 47.0573C35.5675 47.2294 38.7903 47.148 42.1482 47.0017C45.4969 46.8573 48.1514 44.8267 49.1824 41.6057C50.4912 37.5148 49.6156 32.9684 47.0333 29.5179C44.8675 26.6228 41.6651 25.0827 38.0795 24.9364C32.8001 24.7198 28.2038 27.6372 26.1657 32.4982C24.7847 35.7932 24.6163 39.4732 26.2027 42.6997C27.3689 45.071 29.544 46.9221 32.2096 47.0573Z",fill:"#FF4D2E"}),(0,eB.Y)("path",{d:"M32.2095 47.06C29.5439 46.9249 27.3689 45.0738 26.2045 42.7025C24.6181 39.476 24.7865 35.796 26.1675 32.501C28.2056 27.6399 32.8019 24.7226 38.0813 24.9392C41.665 25.0854 44.8675 26.6255 47.0351 29.5207C49.6174 32.9712 50.493 37.5156 49.1843 41.6085C48.1532 44.8313 45.5005 46.8601 42.15 47.0045C38.7921 47.1489 35.5674 47.2303 32.2114 47.06H32.2095ZM44.8101 34.3225C44.4584 33.7135 43.7716 33.3765 43.1885 33.4062C42.6369 33.4339 42.0741 33.8245 41.7502 34.391C40.4396 36.6845 41.2115 40.4367 43.3403 40.3719C45.1248 40.3182 46.178 36.6938 44.8101 34.3225ZM33.9607 34.4835C33.6367 33.8301 33.0092 33.4617 32.4187 33.4376C31.8282 33.4136 31.2599 33.7116 30.8897 34.278C29.3514 36.6345 30.177 40.4219 32.2373 40.4571C34.031 40.4885 35.2416 37.0677 33.9607 34.4835Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M33.9591 34.4824C35.2401 37.0666 34.0295 40.4874 32.2357 40.456C30.1773 40.4208 29.3498 36.6334 30.8881 34.277C31.2583 33.7105 31.8488 33.4143 32.4171 33.4365C32.9854 33.4588 33.6352 33.829 33.9591 34.4824Z",fill:"#FF4D2E"}),(0,eB.Y)("path",{d:"M44.8084 34.3222C46.1764 36.6917 45.125 40.3161 43.3386 40.3717C41.2098 40.4365 40.4379 36.6843 41.7485 34.3907C42.0725 33.8243 42.6352 33.4337 43.1868 33.4059C43.7699 33.3763 44.4567 33.7132 44.8084 34.3222Z",fill:"#FF4D2E"})]}),t[0]=e):e=t[0],e},"SimplePaths"),Is=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(19);d[0]!==e?({ref:n,variant:i,size:a,className:t,...r}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=n,d[4]=i,d[5]=a):(t=d[1],r=d[2],n=d[3],i=d[4],a=d[5]);let u=void 0===i?"simple":i,h=void 0===a?"md":a;return d[6]!==t||d[7]!==h?(l=(0,m2.cn)(Il({size:h}),"w-auto",t),d[6]=t,d[7]=h,d[8]=l):l=d[8],d[9]!==u?(o="simple"===u&&(0,eB.Y)(Io,{}),d[9]=u,d[10]=o):o=d[10],d[11]!==u?(s="circle"===u&&(0,eB.Y)(Ia,{}),d[11]=u,d[12]=s):s=d[12],d[13]!==r||d[14]!==n||d[15]!==l||d[16]!==o||d[17]!==s?(c=(0,eB.FD)("svg",{...r,ref:n,"data-slot":"wally-icon",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:l,children:[o,s]}),d[13]=r,d[14]=n,d[15]=l,d[16]=o,d[17]=s,d[18]=c):c=d[18],c},"WallyIcon");Is.displayName="WallyIcon";let Ic=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(24);u[0]!==e?({ref:r,id:t,label:i,"data-testid":a,...n}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5]);let h=void 0===i?"Ask Wally":i,p=m5("trigger",a),f=(0,c0.useId)(),m=t??f;u[6]!==m?(l={trigger:m},u[6]=m,u[7]=l):l=u[7];let g=p&&`${p}--icon`;return u[8]!==g?(o=(0,eB.Y)(Is,{size:"md","data-testid":g}),u[8]=g,u[9]=o):o=u[9],u[10]!==h||u[11]!==r||u[12]!==n||u[13]!==o||u[14]!==p||u[15]!==m?(s=(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{variant:"ghost",color:"neutral",size:"small","aria-label":h,type:"button",...n,id:m,ref:r,"data-slot":"chat-trigger","data-testid":p,children:o})}),u[10]=h,u[11]=r,u[12]=n,u[13]=o,u[14]=p,u[15]=m,u[16]=s):s=u[16],u[17]!==h?(c=(0,eB.Y)(bm,{children:h}),u[17]=h,u[18]=c):c=u[18],u[19]!==l||u[20]!==s||u[21]!==c||u[22]!==p?(d=(0,eB.FD)(bC,{ids:l,"data-testid":p,children:[s,c]}),u[19]=l,u[20]=s,u[21]=c,u[22]=p,u[23]=d):d=u[23],d},"ChatTrigger");Ic.displayName="ChatTrigger";let Id=(0,c0.createContext)(null),Iu=()=>{let e=(0,c0.useContext)(Id);if(!e)throw Error("ChatInput parts must be rendered inside <ChatInput>");return e},Ih=(0,m9.F)("flex flex-col gap-4"),Ip=(0,m9.F)("flex flex-col rounded-16 border border-border-info bg-bg-light-info"),If=(0,m9.F)("flex flex-wrap items-center gap-6 px-12 pt-8 pb-6"),Im=(0,m9.F)((0,m2.cn)("flex flex-wrap items-center gap-x-6 gap-y-24 rounded-16 border border-border-primary px-11 pt-9 pb-11","transition-[border-color,box-shadow] motion-reduce:transition-none","hover:border-component-border-input-hover","has-[textarea:focus]:border-component-border-input-hover has-[textarea:focus]:shadow-none has-[textarea:focus]:ring-3 has-[textarea:focus]:ring-focus-primary"),{variants:{withContext:{false:"bg-component-input-bg shadow-xs",true:"-mx-px -mb-px bg-bg-surface-1 shadow-sm"},disabled:{true:"pointer-events-none opacity-50"}},defaultVariants:{withContext:!1}}),Ig=(0,m9.F)((0,m2.cn)("w-full basis-full resize-none bg-transparent text-sm text-text-primary outline-none","placeholder:text-text-secondary disabled:cursor-not-allowed [scrollbar-width:thin]")),IC=(0,m9.F)("text-center text-xs text-text-secondary"),Iv=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w,S,E,k,P=(0,ej.c)(66);P[0]!==e?({ref:o,value:p,onValueChange:l,onSubmit:a,onStop:i,isRunning:c,disabled:d,context:n,disclaimer:u,className:r,children:t,"data-testid":h,...s}=e,P[0]=e,P[1]=t,P[2]=r,P[3]=n,P[4]=i,P[5]=a,P[6]=l,P[7]=o,P[8]=s,P[9]=c,P[10]=d,P[11]=u,P[12]=h,P[13]=p):(t=P[1],r=P[2],n=P[3],i=P[4],a=P[5],l=P[6],o=P[7],s=P[8],c=P[9],d=P[10],u=P[11],h=P[12],p=P[13]);let D=void 0!==c&&c,A=void 0!==d&&d,T=void 0===u?"Wally can make mistakes; always verify.":u,M=m5("input",h);P[14]!==M?(f=e=>M?`${M}--${e}`:void 0,P[14]=M,P[15]=f):f=P[15];let L=f,I=(0,c0.useId)(),N=null!==T&&!1!==T;P[16]!==n?(m=c0.Children.toArray(n),P[16]=n,P[17]=m):m=P[17];let F=m.length>0;P[18]!==A||P[19]!==D||P[20]!==a||P[21]!==p?(g=e=>{e.preventDefault();let t=p.trim();!t||D||A||(a(t),e.currentTarget.querySelector("textarea")?.focus())},P[18]=A,P[19]=D,P[20]=a,P[21]=p,P[22]=g):g=P[22];let R=g;P[23]!==L?(C=L("box"),P[23]=L,P[24]=C):C=P[24],P[25]!==A||P[26]!==F?(v=Im({withContext:F,disabled:A}),P[25]=A,P[26]=F,P[27]=v):v=P[27],P[28]!==t||P[29]!==C||P[30]!==v?(y=(0,eB.Y)("div",{"data-slot":"chat-input-box","data-testid":C,className:v,children:t}),P[28]=t,P[29]=C,P[30]=v,P[31]=y):y=P[31];let V=y,_=A||void 0;P[32]!==r?(b=(0,m2.cn)(Ih(),r),P[32]=r,P[33]=b):b=P[33];let Y=N?I:void 0;return P[34]!==A||P[35]!==D||P[36]!==i||P[37]!==l||P[38]!==Y||P[39]!==p?(x={value:p,onValueChange:l,isRunning:D,disabled:A,onStop:i,disclaimerId:Y},P[34]=A,P[35]=D,P[36]=i,P[37]=l,P[38]=Y,P[39]=p,P[40]=x):x=P[40],P[41]!==V||P[42]!==n||P[43]!==F||P[44]!==L?(O=F?(0,eB.FD)("div",{"data-slot":"chat-input-context","data-testid":L("context"),className:Ip(),children:[(0,eB.Y)("div",{className:If(),children:n}),V]}):V,P[41]=V,P[42]=n,P[43]=F,P[44]=L,P[45]=O):O=P[45],P[46]!==O||P[47]!==M?(w=(0,eB.Y)(m3,{value:M,children:O}),P[46]=O,P[47]=M,P[48]=w):w=P[48],P[49]!==x||P[50]!==w?(S=(0,eB.Y)(Id.Provider,{value:x,children:w}),P[49]=x,P[50]=w,P[51]=S):S=P[51],P[52]!==T||P[53]!==I||P[54]!==N||P[55]!==L?(E=N&&(0,eB.Y)("p",{id:I,"data-slot":"chat-input-disclaimer","data-testid":L("disclaimer"),className:IC(),children:T}),P[52]=T,P[53]=I,P[54]=N,P[55]=L,P[56]=E):E=P[56],P[57]!==R||P[58]!==o||P[59]!==s||P[60]!==_||P[61]!==b||P[62]!==S||P[63]!==E||P[64]!==M?(k=(0,eB.FD)("form",{...s,ref:o,onSubmit:R,"aria-disabled":_,"data-slot":"chat-input","data-testid":M,className:b,children:[S,E]}),P[57]=R,P[58]=o,P[59]=s,P[60]=_,P[61]=b,P[62]=S,P[63]=E,P[64]=M,P[65]=k):k=P[65],k},"ChatInput");Iv.displayName="ChatInput";let Iy=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y=(0,ej.c)(47);y[0]!==e?({ref:a,id:n,sendLabel:o,stopLabel:s,className:t,disabled:r,onClick:i,"data-testid":c,...l}=e,y[0]=e,y[1]=t,y[2]=r,y[3]=n,y[4]=i,y[5]=a,y[6]=l,y[7]=o,y[8]=s,y[9]=c):(t=y[1],r=y[2],n=y[3],i=y[4],a=y[5],l=y[6],o=y[7],s=y[8],c=y[9]);let b=void 0===o?"Send":o,x=void 0===s?"Stop response":s,O=m5("submit",c),{value:w,isRunning:S,disabled:E,onStop:k}=Iu(),P=(0,c0.useId)(),D=n??P;y[10]!==S||y[11]!==i||y[12]!==k?(d=e=>{i?.(e),!e.defaultPrevented&&S&&(e.preventDefault(),k?.(),e.currentTarget.form?.querySelector("textarea")?.focus())},y[10]=S,y[11]=i,y[12]=k,y[13]=d):d=y[13];let A=d,T=!S;y[14]!==D?(u={trigger:D},y[14]=D,y[15]=u):u=y[15];let M=S?x:b,L=S?"button":"submit",I=S?"secondary":"primary",N=S?"neutral":"brand";return y[16]!==E||y[17]!==r||y[18]!==S||y[19]!==w?(h=E||r||!S&&!w.trim(),y[16]=E,y[17]=r,y[18]=S,y[19]=w,y[20]=h):h=y[20],y[21]!==t?(p=(0,m2.cn)("ms-auto",t),y[21]=t,y[22]=p):p=y[22],y[23]!==S?(f=S?(0,eB.Y)(rV,{}):(0,eB.Y)(ti,{}),y[23]=S,y[24]=f):f=y[24],y[25]!==A||y[26]!==a||y[27]!==l||y[28]!==h||y[29]!==p||y[30]!==f||y[31]!==M||y[32]!==L||y[33]!==I||y[34]!==N||y[35]!==O||y[36]!==D?(m=(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{"aria-label":M,...l,ref:a,id:D,type:L,variant:I,color:N,size:"small",disabled:h,onClick:A,"data-slot":"chat-input-submit","data-testid":O,className:p,children:f})}),y[25]=A,y[26]=a,y[27]=l,y[28]=h,y[29]=p,y[30]=f,y[31]=M,y[32]=L,y[33]=I,y[34]=N,y[35]=O,y[36]=D,y[37]=m):m=y[37],y[38]===Symbol.for("react.memo_cache_sentinel")?(g=(0,eB.Y)(LA,{children:"Esc"}),y[38]=g):g=y[38],y[39]!==x?(C=(0,eB.FD)(bm,{children:[x," ",g]}),y[39]=x,y[40]=C):C=y[40],y[41]!==m||y[42]!==C||y[43]!==T||y[44]!==u||y[45]!==O?(v=(0,eB.FD)(bC,{disabled:T,ids:u,"data-testid":O,children:[m,C]}),y[41]=m,y[42]=C,y[43]=T,y[44]=u,y[45]=O,y[46]=v):v=y[46],v},"ChatInputSubmit");function Ib(e,t,r,n){let i,a,l,o,s=(0,ej.c)(11),c=(0,c0.useRef)(null);s[0]!==e||s[1]!==r||s[2]!==t?(i=()=>{if(e&&c.current){var n;let e,i,a,l,o,s;n=c.current,i=Number.parseInt((e=window.getComputedStyle(n)).lineHeight,10)||20,a=(Number.parseInt(e.paddingTop,10)||0)+(Number.parseInt(e.paddingBottom,10)||0),o=i*r+a+(l=(Number.parseInt(e.borderTopWidth,10)||0)+(Number.parseInt(e.borderBottomWidth,10)||0)),n.style.height="0",s=n.scrollHeight+l,n.style.height=`${Math.min(Math.max(s,i*t+a+l),o)}px`,n.style.overflowY=s>o?"auto":"hidden"}},s[0]=e,s[1]=r,s[2]=t,s[3]=i):i=s[3];let d=i;return s[4]!==d?(a=()=>{d()},s[4]=d,s[5]=a):a=s[5],s[6]!==d||s[7]!==n?(l=[d,n],s[6]=d,s[7]=n,s[8]=l):l=s[8],(0,c0.useLayoutEffect)(a,l),s[9]!==d?(o={ref:c,adjustHeight:d},s[9]=d,s[10]=o):o=s[10],o}Iy.displayName="ChatInputSubmit";let Ix=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C=(0,ej.c)(37);C[0]!==e?({ref:l,className:r,disabled:n,onChange:i,onKeyDown:a,"aria-describedby":t,"data-testid":s,...o}=e,C[0]=e,C[1]=t,C[2]=r,C[3]=n,C[4]=i,C[5]=a,C[6]=l,C[7]=o,C[8]=s):(t=C[1],r=C[2],n=C[3],i=C[4],a=C[5],l=C[6],o=C[7],s=C[8]);let v=m5("textarea",s),{value:y,onValueChange:b,isRunning:x,disabled:O,onStop:w,disclaimerId:S}=Iu(),{ref:E}=Ib(!0,1,8,y);C[9]!==t||C[10]!==S?(c=[t,S].filter(Boolean).join(" ")||void 0,C[9]=t,C[10]=S,C[11]=c):c=C[11];let k=c,P=(0,c0.useRef)(null),D=x&&!!w;C[12]!==D?(d=()=>{let e=P.current,t=e?.ownerDocument.defaultView;if(!D||!e||!t)return;let r=t=>{"Escape"!==t.key||t.isComposing||t.target!==e||"true"===e.getAttribute("aria-expanded")||t.preventDefault()};return t.addEventListener("keydown",r,!0),()=>t.removeEventListener("keydown",r,!0)},u=[D],C[12]=D,C[13]=d,C[14]=u):(d=C[13],u=C[14]),(0,c0.useEffect)(d,u),C[15]!==i||C[16]!==b?(h=e=>{i?.(e),b(e.target.value)},C[15]=i,C[16]=b,C[17]=h):h=C[17];let A=h;C[18]!==D||C[19]!==a||C[20]!==w?(p=e=>{a?.(e),!e.nativeEvent.isComposing&&229!==e.keyCode&&("Escape"===e.key?D&&"true"!==e.currentTarget.getAttribute("aria-expanded")&&w?.():"Enter"!==e.key||e.shiftKey||e.defaultPrevented||(e.preventDefault(),e.currentTarget.form?.requestSubmit()))},C[18]=D,C[19]=a,C[20]=w,C[21]=p):p=C[21];let T=p;C[22]!==E||C[23]!==l?(f=(0,b8.t)(E,P,l),C[22]=E,C[23]=l,C[24]=f):f=C[24];let M=O||n;return C[25]!==r?(m=(0,m2.cn)(Ig(),r),C[25]=r,C[26]=m):m=C[26],C[27]!==k||C[28]!==A||C[29]!==T||C[30]!==o||C[31]!==f||C[32]!==M||C[33]!==m||C[34]!==v||C[35]!==y?(g=(0,eB.Y)("textarea",{placeholder:"Ask Wally...","aria-label":"Message Wally",...o,ref:f,rows:1,value:y,disabled:M,"aria-describedby":k,onChange:A,onKeyDown:T,"data-slot":"chat-input-textarea","data-testid":v,className:m}),C[27]=k,C[28]=A,C[29]=T,C[30]=o,C[31]=f,C[32]=M,C[33]=m,C[34]=v,C[35]=y,C[36]=g):g=C[36],g},"ChatInputTextarea");Ix.displayName="ChatInputTextarea";var[IO,Iw]=(0,ua.q)({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"}),IS=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=(0,p8.v)(r.getAnchorProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});IS.displayName="PopoverAnchor";var IE=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=(0,p8.v)(r.getArrowProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});IE.displayName="PopoverArrow";var Ik=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=(0,p8.v)(r.getArrowTipProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});Ik.displayName="PopoverArrowTip";var IP=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=(0,p8.v)(r.getCloseTriggerProps(),e);return(0,eB.Y)(fr.button,{...n,ref:t})});IP.displayName="PopoverCloseTrigger";var ID=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=vd(),i=(0,p8.v)(r.getContentProps(),n.getPresenceProps(),e),a=p6(n.ref,t);return(0,eB.Y)(vs,{presence:n,children:(0,eB.Y)(fr.div,{...i,ref:a})})});ID.displayName="PopoverContent";var IA=e=>e.children(Iw()),IT=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=(0,p8.v)(r.getDescriptionProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});IT.displayName="PopoverDescription";var IM=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=(0,p8.v)(r.getIndicatorProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});IM.displayName="PopoverIndicator";var IL=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=vd(),i=(0,p8.v)(r.getPositionerProps(),e);return n.unmounted?null:(0,eB.Y)(fr.div,{...i,ref:t})});IL.displayName="PopoverPositioner";var II=new WeakMap,IN=new WeakMap,IF={},IR=0,IV=e=>e&&(e.host||IV(e.parentNode)),I_=new Set(["script","output","status","next-route-announcer"]),IY=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body;function I$(e,t={}){let{defer:r=!0}=t,n=[];return n.push((r?e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)}:e=>e())(()=>{let t=("function"==typeof e?e():e).filter(Boolean);0!==t.length&&n.push(((e,t=IY(e),r="data-aria-hidden",n=!0)=>{if(t)return((e,t)=>{let{parentNode:r,markerName:n,controlAttribute:i,explicitBooleanValue:a,followControlledElements:l=!0}=t,o=(Array.isArray(e)?e:[e]).map(e=>{if(r.contains(e))return e;let t=IV(e);return t&&r.contains(t)?t:(console.error("[zag-js > ariaHidden] target",e,"in not contained inside",r,". Doing nothing"),null)}).filter(e=>!!e);IF[n]||(IF[n]=new WeakMap);let s=IF[n],c=[],d=new Set,u=new Set(o),h=e=>{!e||d.has(e)||(d.add(e),h(e.parentNode))};o.forEach(e=>{h(e),l&&uq(e)&&OS(e,e=>{h(e)})});let p=e=>{!e||u.has(e)||Array.prototype.forEach.call(e.children,e=>{if(d.has(e))p(e);else try{if(I_.has(e.localName)||"status"===e.role||e.hasAttribute("aria-live")||e.matches("[data-live-announcer]"))return;let t=e.getAttribute(i),r=a?"true"===t:null!==t&&"false"!==t,l=(II.get(e)||0)+1,o=(s.get(e)||0)+1;II.set(e,l),s.set(e,o),c.push(e),1===l&&r&&IN.set(e,!0),1===o&&e.setAttribute(n,""),r||e.setAttribute(i,a?"true":"")}catch(t){console.error("[zag-js > ariaHidden] cannot operate on ",e,t)}})};return p(r),d.clear(),IR++,()=>{c.forEach(e=>{let t=II.get(e)-1,r=s.get(e)-1;II.set(e,t),s.set(e,r),t||(IN.has(e)||e.removeAttribute(i),IN.delete(e)),r||e.removeAttribute(n)}),--IR||(II=new WeakMap,II=new WeakMap,IN=new WeakMap,IF={})}})(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden",explicitBooleanValue:!0,followControlledElements:n})})(t))})),()=>{n.forEach(e=>e?.())}}function IH(e){return null==e?null:"function"==typeof e?e():e}function Iz(e,t,r){if(!t)return null;let n=fX(e.ownerDocument.body,{getShadowRoot:r}),i=n.indexOf(t);if(-1===i)return null;for(let t=i+1;t<n.length;t++){let r=n[t];if(!u7(e,r))return r}return null}var IZ=Object.defineProperty,IQ=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?IZ(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},IB={activateTrap(e,t){if(e.length>0){let r=e[e.length-1];r!==t&&r.pause()}let r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},deactivateTrap(e,t){let r=e.indexOf(t);-1!==r&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},Ij=[],IG=class{constructor(e,t){IQ(this,"trapStack"),IQ(this,"config"),IQ(this,"doc"),IQ(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),IQ(this,"lastInteractionType","keyboard"),IQ(this,"portalContainers",new Set),IQ(this,"listenerCleanups",[]),IQ(this,"handleFocus",e=>{let t=fP(e),r=this.findContainerIndex(t,e)>=0;if(r||uX(t))r&&(this.state.mostRecentlyFocusedNode=t);else{let t;e.stopImmediatePropagation();let r=!0;if(this.state.mostRecentlyFocusedNode)if(f1(this.state.mostRecentlyFocusedNode)>0){let e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:n}=this.state.containerGroups[e];if(n.length>0){let e=n.findIndex(e=>e===this.state.mostRecentlyFocusedNode);e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1<n.length&&(t=n[e+1],r=!1):e-1>=0&&(t=n[e-1],r=!1))}}else this.state.containerGroups.some(e=>e.tabbableNodes.some(e=>f1(e)>0))||(r=!1);else r=!1;r&&(t=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),t?this.tryFocus(t):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),IQ(this,"handlePointerDown",e=>{this.lastInteractionType="pointer";let t=fP(e);this.findContainerIndex(t,e)>=0||(IK(this.config.clickOutsideDeactivates,e)?this.deactivate({returnFocus:this.config.returnFocusOnDeactivate}):IK(this.config.allowOutsideClick,e)||e.preventDefault())}),IQ(this,"handleClick",e=>{let t=fP(e);this.findContainerIndex(t,e)>=0||IK(this.config.clickOutsideDeactivates,e)||IK(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}),IQ(this,"handleTabKey",e=>{if(this.lastInteractionType="keyboard",this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;let t=this.config.isKeyBackward(e),r=this.findNextNavNode({event:e,isBackward:t});r&&(IW(e)&&e.preventDefault(),this.tryFocus(r))}}),IQ(this,"handleEscapeKey",e=>{IJ(e)&&!1!==IK(this.config.escapeDeactivates,e)&&(e.preventDefault(),this.deactivate())}),IQ(this,"_mutationObserver"),IQ(this,"setupMutationObserver",()=>{let e=this.doc.defaultView||window;this._mutationObserver=new e.MutationObserver(e=>{e.some(e=>Array.from(e.removedNodes).some(e=>e===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),e.some(e=>"attributes"===e.type&&("aria-controls"===e.attributeName||"aria-expanded"===e.attributeName)||"childList"===e.type&&e.addedNodes.length>0&&Array.from(e.addedNodes).some(e=>{if(e.nodeType!==Node.ELEMENT_NODE)return!1;if(e.hasAttribute("aria-controls")&&"true"===e.getAttribute("aria-expanded")||e.querySelector?.('[aria-controls][aria-expanded="true"]'))return!0;if(e.id&&!this.state.containers.some(t=>t.contains(e))){let t;if(!e.id)return!1;let r=he(e),n=CSS.escape(e.id),i=`[aria-controls~="${n}"][aria-expanded="true"], [aria-controls="${n}"][aria-expanded="true"]`;return!!(r.querySelector(i)&&(t=e.getAttribute("role"))&&Ob.has(t))}return!1}))&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),IQ(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(e=>{this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(e=>{this.observePortalContainer(e)}))}),IQ(this,"getInitialFocusNode",()=>{let e=this.getNodeForOption("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!fq(e)){let t=u8(this.doc);if(t&&this.findContainerIndex(t)>=0)e=t;else{let t=this.state.tabbableGroups[0];e=t&&t.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else null===e&&(e=this.getNodeForOption("fallbackFocus"));if(!e||(e.isConnected||(e=this.getNodeForOption("fallbackFocus")),!e||!e.isConnected))throw Error("Your focus-trap needs to have at least one focusable element");return e}),IQ(this,"tryFocus",(e,t)=>{if(!1!==e&&e!==u8(this.doc)){if(!e||!e.focus)return void this.tryFocus(this.getInitialFocusNode());e.focus({preventScroll:!!this.config.preventScroll,...t}),this.state.mostRecentlyFocusedNode=e,I2(e)&&e.select()}}),IQ(this,"deactivate",e=>{if(!this.state.active)return this;let t={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...e};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),IB.deactivateTrap(this.trapStack,this),this.portalContainers.clear();let r=this.getOption(t,"onDeactivate"),n=this.getOption(t,"onPostDeactivate"),i=this.getOption(t,"checkCanReturnFocus"),a=this.getOption(t,"returnFocus","returnFocusOnDeactivate");r?.();let l=()=>{I1(()=>{if(a&&this.isSafeToOverrideFocus()){let e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation),t="keyboard"===this.lastInteractionType?{focusVisible:!0}:void 0;this.tryFocus(e,t)}n?.()})};return a&&i?i(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(l,l):l(),this}),IQ(this,"pause",e=>{if(this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onPause"),r=this.getOption(e,"onPostPause");return this.state.paused=!0,t?.(),this.removeListeners(),this.updateObservedNodes(),r?.(),this}),IQ(this,"unpause",e=>{if(!this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onUnpause"),r=this.getOption(e,"onPostUnpause");this.state.paused=!1,t?.();try{this.updateTabbableNodes()}catch{}this.attachListeners();try{this.commitInitialFocus()}catch{}return this.updateObservedNodes(),r?.(),this}),IQ(this,"updateContainerElements",e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),IQ(this,"getReturnFocusNode",e=>{let t=this.getNodeForOption("setReturnFocus",{params:[e]});return t||!1!==t&&e}),IQ(this,"getOption",(e,t,r)=>e&&void 0!==e[t]?e[t]:this.config[r||t]),IQ(this,"getNodeForOption",(e,{hasFallback:t=!1,params:r=[]}={})=>{let n=this.config[e];if("function"==typeof n&&(n=n(...r)),!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let i=n;if("string"==typeof n){try{i=this.doc.querySelector(n)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!i&&!t)throw Error(`\`${e}\` as selector refers to no known node`)}return i}),IQ(this,"findNextNavNode",e=>{let{event:t,isBackward:r=!1}=e,n=e.target||fP(t);this.updateTabbableNodes();let i=null;if(this.state.tabbableGroups.length>0){let e=this.findContainerIndex(n,t),a=e>=0?this.state.containerGroups[e]:void 0;if(e<0)i=r?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(r){let r=this.state.tabbableGroups.findIndex(({firstTabbableNode:e})=>n===e);if(r<0&&(a?.container===n||fq(n)&&!fK(n)&&!a?.nextTabbableNode(n,!1))&&(r=e),r>=0){let e=0===r?this.state.tabbableGroups.length-1:r-1,t=this.state.tabbableGroups[e];i=f1(n)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else IW(t)||(i=a?.nextTabbableNode(n,!1))}else{let r=this.state.tabbableGroups.findIndex(({lastTabbableNode:e})=>n===e);if(r<0&&(a?.container===n||fq(n)&&!fK(n)&&!a?.nextTabbableNode(n))&&(r=e),r>=0){let e=r===this.state.tabbableGroups.length-1?0:r+1,t=this.state.tabbableGroups[e];i=f1(n)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else IW(t)||(i=a?.nextTabbableNode(n))}}else i=this.getNodeForOption("fallbackFocus");return i}),this.trapStack=t.trapStack||Ij;let r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:Iq,isKeyBackward:IX,...t};this.doc=r.document||u9(Array.isArray(e)?e[0]:e),this.config=r,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){let t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{let t;(t=new Set,OS(e,r=>{e.contains(r)||t.add(r)}),Array.from(t)).forEach(e=>{this.addPortalContainer(e)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){let r="function"==typeof t?.composedPath?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:n,tabbableNodes:i})=>n.contains(e)||r?.includes(n)||i.find(t=>t===e)||this.isControlledElement(n,e)||this.isPersistentElement(e,t))}isControlledElement(e,t){return!!this.config.followControlledElements&&Ow(e,t)}isPersistentElement(e,t){let r=this.config.persistentElements;if(!r||0===r.length)return!1;let n="function"==typeof t?.composedPath?t.composedPath():void 0;return r.some(t=>{let r=t();return u7(r,e)||null!=r&&n?.includes(r)})}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{let t=fX(e,{getShadowRoot:this.config.getShadowRoot}),r=fW(e,{getShadowRoot:this.config.getShadowRoot}),n=t[0],i=t[t.length-1],a=!1;for(let e=0;e<t.length;e++)if(f1(t[e])>0){a=!0;break}return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:a,firstTabbableNode:n,lastTabbableNode:i,firstDomTabbableNode:n,lastDomTabbableNode:i,nextTabbableNode:function(e,n=!0){let i=t.indexOf(e);if(i>=0)return t[i+(n?1:-1)];let a=r.indexOf(e);if(!(a<0)){if(n){for(let e=a+1;e<r.length;e++)if(fK(r[e]))return r[e]}else for(let e=a-1;e>=0;e--)if(fK(r[e]))return r[e]}}}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}attachListeners(){if(this.state.active)return IB.activateTrap(this.trapStack,this),this.listenerCleanups.push(fH(this.doc,"focusin",this.handleFocus,!0),fH(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),fH(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),fH(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),fH(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),fH(this.doc,"keydown",this.handleEscapeKey)),this}commitInitialFocus(){return this.state.delayInitialFocusTimer=this.config.delayInitialFocus?I1(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this}addListeners(){if(this.state.active)return this.attachListeners(),this.commitInitialFocus(),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}containsElement(e){return this.state.containers.some(t=>u7(t,e))}isSafeToOverrideFocus(){let e=u8(this.doc);return!!(!e||e===this.doc.body||this.containsElement(e))||this.trapStack.some(t=>t!==this&&t.containsElement(e))}activate(e){if(this.state.active)return this;let t=this.getOption(e,"onActivate"),r=this.getOption(e,"onPostActivate"),n=this.getOption(e,"checkCanFocusTrap");n||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=u8(this.doc),t?.();let i=()=>{n&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.()};return n?n(this.state.containers.concat()).then(i,i):i(),this}},IU=e=>e?.type==="keydown",IW=e=>IU(e)&&e?.key==="Tab",Iq=e=>IU(e)&&"Tab"===e.key&&!e?.shiftKey,IX=e=>IU(e)&&"Tab"===e.key&&e?.shiftKey,IK=(e,...t)=>"function"==typeof e?e(...t):e,IJ=e=>!e.isComposing&&"Escape"===e.key,I1=e=>setTimeout(e,0),I2=e=>"input"===e.localName&&"select"in e&&"function"==typeof e.select;function I0(e,t={}){let r,n=fd(()=>{let n=(Array.isArray(e)?e:[e]).map(e=>"function"==typeof e?e():e).filter(e=>null!=e);if(0===n.length)return;let i=n[0];r=new IG(n,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:i,...t,document:u9(i)});try{r.activate()}catch{}});return function(){r?.deactivate(),n()}}var I3="data-scroll-lock",I5=new WeakMap;function I4(e){let t=fp(e),r=t?.scrollbarGutter;return"stable"===r||r?.startsWith("stable ")===!0}function I7(e){let t=e??document,r=I5.get(t);r||(r={count:0,cleanup:function(e){let t,r=e.defaultView??window,{documentElement:n,body:i}=e,a=function(e){let{documentElement:t,body:r}=e;return vO(t)?t:r}(e),l=I4(n)||I4(i),o=r.innerWidth-n.clientWidth;i.setAttribute(I3,"");let s=Math.round(n.getBoundingClientRect().left)+n.scrollLeft?"paddingLeft":"paddingRight",c=[fZ(n,"--scrollbar-width",`${o}px`),fw()?(()=>{let{scrollX:e,scrollY:t,visualViewport:n}=r,a=n?.offsetLeft??0,c=n?.offsetTop??0,d={position:"fixed",overflow:"hidden",top:`${-(t-Math.floor(c))}px`,left:`${-(e-Math.floor(a))}px`,right:"0"};!l&&o>0&&(d[s]=`${o}px`);let u=fz(i,d);return()=>{u?.(),r.scrollTo({left:e,top:t,behavior:"instant"})}})():(t={overflow:"hidden"},!l&&o>0&&(t[s]=`${o}px`),fz(a,t))];return()=>{c.forEach(e=>e?.()),i.removeAttribute(I3)}}(t)},I5.set(t,r)),r.count++;let n=r,i=!1;return()=>{i||(i=!0,n.count--,0===n.count&&(n.cleanup(),I5.delete(t)))}}var I9=e=>e.ids?.anchor??`popover:${e.id}:anchor`,I6=(e,t)=>{let r=e.ids?.trigger;return null!=r?(0,u$.Tn)(r)?r(t):r:t?`popover:${e.id}:trigger:${t}`:`popover:${e.id}:trigger`},I8=e=>e.ids?.content??`popover:${e.id}:content`,Ne=e=>e.ids?.positioner??`popover:${e.id}:popper`,Nt=e=>e.ids?.title??`popover:${e.id}:title`,Nr=e=>e.ids?.description??`popover:${e.id}:desc`,Nn=e=>e.getById(I9(e)),Ni=e=>e.getById(I6(e)),Na=e=>mA(e.getRootNode(),`[data-scope="popover"][data-part="trigger"]${uY(e.id)}`),Nl=(e,t)=>null==t?Ni(e)??Na(e)[0]:e.getById(I6(e,t)),No=e=>e.getById(I8(e)),Ns=e=>e.getById(Ne(e)),Nc=uE({props:({props:e})=>({closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,restoreFocus:!0,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e,prop:t,scope:r})=>({currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(e){let n=t("onTriggerValueChange");if(!n)return;let i=Nl(r,e);n({value:e,triggerElement:i})}}))}),computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:r}){e([()=>t("open")],()=>{r(["toggleVisibility"])})},entry:["checkRenderedElements"],on:{"TRIGGER_VALUE.SET":{actions:["setTriggerValue","reposition"]}},states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackDismissableElement","trackPositioning","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackPositioning({context:e,prop:t,scope:r}){e.set("currentPlacement",t("positioning").placement);let n=Nn(r);return y1(()=>n??Nl(r,e.get("triggerValue")),()=>Ns(r),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})},trackDismissableElement({send:e,prop:t,scope:r}){let n=!0;return OV(()=>No(r),{type:"popover",pointerBlocking:t("modal"),exclude:[Ni(r),...Na(r)].filter(Boolean),defer:!0,onEscapeKeyDown(e){t("onEscapeKeyDown")?.(e),t("closeOnEscape")||e.preventDefault()},onInteractOutside(e){t("onInteractOutside")?.(e),!e.defaultPrevented&&(n=!(e.detail.focusable||e.detail.contextmenu),t("closeOnInteractOutside")||e.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:n})}})},proxyTabFocus({prop:e,scope:t,context:r}){if(!e("modal")&&e("portalled"))return function(e,t){let{defer:r,...n}=t,i=[];return i.push((r?fd:e=>e())(()=>{i.push(function(e,t={}){let{triggerElement:r,onFocus:n,onFocusEnter:i,getShadowRoot:a}=t,l=IH(e)??IH(r);return fH(l?.ownerDocument||document,"keydown",function(t){if("Tab"!==t.key)return;let l=IH(e),o=IH(r);if(!l)return;let[s,c]=fJ(l,{includeContainer:!0,getShadowRoot:a}),d=!s&&!c,u=null;t.shiftKey&&(u3(s)||d)?u=o:!t.shiftKey&&u3(o)?(i?.(),u=s):!t.shiftKey&&(u3(c)||d)?u=Iz(l,o,a):t.shiftKey&&u3(Iz(l,o,a))&&(i?.(),u=c),u&&(t.preventDefault(),"function"==typeof n?n(u):u.focus())},!0)}(e,n))})),()=>{i.forEach(e=>e?.())}}(()=>No(t),{triggerElement:Nl(t,r.get("triggerValue")),defer:!0,getShadowRoot:!0,onFocus(e){e.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t,context:r}){if(e("modal"))return I$(()=>[No(t),Nl(t,r.get("triggerValue"))],{defer:!0})},preventScroll({prop:e,scope:t}){if(e("modal"))return I7(t.getDoc())},trapFocus({prop:e,scope:t,context:r}){if(e("modal"))return I0(()=>No(t),{preventScroll:!0,returnFocusOnDeactivate:!!e("restoreFocus"),initialFocus:()=>Oz({root:No(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")}),setReturnFocus:n=>{let i=e("finalFocusEl")?.();if(i)return i;let a=r.get("triggerValue");if(a){let e=Nl(t,a);if(e)return e}let l=Na(t)[0];return l||n},getShadowRoot:!0})}},actions:{reposition({event:e,prop:t,scope:r,context:n}){let i=Nn(r);y1(()=>i??Nl(r,n.get("triggerValue")),()=>Ns(r),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(e){n.set("currentPlacement",e.placement)}})},setTriggerValue({context:e,event:t}){void 0!==t.value&&e.set("triggerValue",t.value)},checkRenderedElements({context:e,scope:t}){fd(()=>{Object.assign(e.get("renderedElements"),{title:!!t.getById(Nt(t)),description:!!t.getById(Nr(t))})})},setInitialFocus({prop:e,scope:t}){e("modal")||fd(()=>{let r=Oz({root:No(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")});r?.focus({preventScroll:!0})})},setFinalFocus({event:e,prop:t,scope:r,context:n}){let i=e.restoreFocus??e.previousEvent?.restoreFocus;null!=i&&!i||t("restoreFocus")&&fd(()=>{let e=t("finalFocusEl")?.();if(e)return void e.focus({preventScroll:!0});let i=Nl(r,n.get("triggerValue"));i?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!1})})},toggleVisibility({event:e,send:t,prop:r}){t({type:r("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}}),Nd=uZ("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger").build(),Nu={closeTriggerLabel:"close"},Nh=e=>{let[t,{children:r,...n}]=vf(e),i=(e=>{let t=(0,c0.useId)(),{getRootNode:r}=uo(),{dir:n}=uc();return function(e,t){let{state:r,context:n,send:i,computed:a,prop:l,scope:o}=e,s=uz(Nu,l("translations")),c=r.matches("open"),d=n.get("currentPlacement"),u=d?yB(d):void 0,h=a("currentPortalled"),p=n.get("renderedElements"),f=n.get("triggerValue"),m=be({...l("positioning"),placement:d});return{portalled:h,open:c,setOpen(e){r.matches("open")!==e&&i({type:e?"OPEN":"CLOSE"})},triggerValue:f,setTriggerValue(e){i({type:"TRIGGER_VALUE.SET",value:e})},reposition(e={}){i({type:"POSITIONING.SET",options:e})},getArrowProps:()=>t.element({id:o.ids?.arrow??`popover:${o.id}:arrow`,...Nd.arrow.attrs,dir:l("dir"),style:m.arrow}),getArrowTipProps:()=>t.element({...Nd.arrowTip.attrs,dir:l("dir"),style:m.arrowTip}),getAnchorProps:()=>t.element({...Nd.anchor.attrs,dir:l("dir"),id:I9(o)}),getTriggerProps(e={}){let{value:r}=e,n=null!=r&&f===r;return t.button({...Nd.trigger.attrs,dir:l("dir"),type:"button","data-placement":d,"data-side":u,id:I6(o,r),"data-ownedby":o.id,"data-value":r,"data-current":uF(n),"aria-haspopup":"dialog","aria-expanded":null==r?c:c&&n,"data-state":c?"open":"closed","aria-controls":I8(o),onPointerDown(e){0===e.button&&fE()&&e.currentTarget.focus()},onClick(e){e.defaultPrevented||i({type:c&&null!=r&&!n?"TRIGGER_VALUE.SET":"TOGGLE",value:r})},onBlur(e){i({type:"TRIGGER_BLUR",target:e.relatedTarget})}})},getIndicatorProps:()=>t.element({...Nd.indicator.attrs,dir:l("dir"),"data-state":c?"open":"closed"}),getPositionerProps:()=>t.element({id:Ne(o),...Nd.positioner.attrs,dir:l("dir"),style:m.floating}),getContentProps:()=>t.element({...Nd.content.attrs,dir:l("dir"),id:I8(o),tabIndex:-1,role:"dialog","aria-modal":uR(l("modal")),hidden:!c,"data-state":c?"open":"closed","data-expanded":uF(c),"aria-labelledby":p.title?Nt(o):void 0,"aria-describedby":p.description?Nr(o):void 0,"data-placement":d,"data-side":u}),getTitleProps:()=>t.element({...Nd.title.attrs,id:Nt(o),dir:l("dir")}),getDescriptionProps:()=>t.element({...Nd.description.attrs,id:Nr(o),dir:l("dir")}),getCloseTriggerProps:()=>t.button({...Nd.closeTrigger.attrs,dir:l("dir"),id:o.ids?.closeTrigger??`popover:${o.id}:close`,type:"button","aria-label":s.closeTriggerLabel,onClick(e){e.defaultPrevented||(e.stopPropagation(),i({type:"CLOSE"}))}})}}(hk(Nc,{id:t,dir:n,getRootNode:r,...e}),hA)})(n),a=vv((0,p8.v)({present:i.open},t));return(0,eB.Y)(IO,{value:i,children:(0,eB.Y)(vc,{value:a,children:r})})},Np=e=>{let[t,{value:r,children:n}]=vf(e),i=vv((0,p8.v)({present:r.open},t));return(0,eB.Y)(IO,{value:r,children:(0,eB.Y)(vc,{value:i,children:n})})},Nf=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=(0,p8.v)(r.getTitleProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});Nf.displayName="PopoverTitle";var Nm=p1(),Ng=(0,c0.forwardRef)((e,t)=>{let[r,n]=Nm(e,["value"]),i=Iw(),a=vd(),l=i.getTriggerProps(r),o=(0,p8.v)({...l,"aria-controls":a.unmounted?void 0:l["aria-controls"]},n);return(0,eB.Y)(fr.button,{...o,ref:t})});Ng.displayName="PopoverTrigger";var NC=pq({Anchor:()=>IS,Arrow:()=>IE,ArrowTip:()=>Ik,CloseTrigger:()=>IP,Content:()=>ID,Context:()=>IA,Description:()=>IT,Indicator:()=>IM,Positioner:()=>IL,Root:()=>Nh,RootProvider:()=>Np,Title:()=>Nf,Trigger:()=>Ng});let Nv={gutter:8,offset:{mainAxis:12}},Ny=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(11),{children:a,open:l,onOpenChange:o,ids:s,positioning:c,"data-testid":d}=e,u=m5(),h=d??u;i[0]!==o?(t=e=>{let{open:t}=e;o?.(t)},i[0]=o,i[1]=t):t=i[1];let p=t,f=c??Nv;return i[2]!==a||i[3]!==p||i[4]!==s||i[5]!==l||i[6]!==f?(r=(0,eB.Y)(NC.Root,{positioning:f,open:l,onOpenChange:p,ids:s,lazyMount:!0,unmountOnExit:!0,children:a}),i[2]=a,i[3]=p,i[4]=s,i[5]=l,i[6]=f,i[7]=r):r=i[7],i[8]!==r||i[9]!==h?(n=(0,eB.Y)(m3,{value:h,children:r}),i[8]=r,i[9]=h,i[10]=n):n=i[10],n},"Popover");Ny.displayName="Popover";let Nb=(0,c0.createContext)(null),Nx=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(14),{children:o,open:s,onOpenChange:c,"data-testid":d}=e,u=m5("permissions",d),h=(0,c0.useId)();return l[0]!==h?(t={triggerId:h},l[0]=h,l[1]=t):t=l[1],l[2]!==h?(r={trigger:h},l[2]=h,l[3]=r):r=l[3],l[4]===Symbol.for("react.memo_cache_sentinel")?(n={placement:"top-start",gutter:8},l[4]=n):n=l[4],l[5]!==o||l[6]!==c||l[7]!==s||l[8]!==r||l[9]!==u?(i=(0,eB.Y)(Ny,{"data-testid":u,ids:r,positioning:n,open:s,onOpenChange:c,children:o}),l[5]=o,l[6]=c,l[7]=s,l[8]=r,l[9]=u,l[10]=i):i=l[10],l[11]!==t||l[12]!==i?(a=(0,eB.Y)(Nb.Provider,{value:t,children:i}),l[11]=t,l[12]=i,l[13]=a):a=l[13],a},"ChatPermissions");Nx.displayName="ChatPermissions";let NO=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f=(0,ej.c)(27);f[0]!==e?({ref:i,children:t,minHeight:n,maxHeight:l,minWidth:o,maxWidth:s,className:r,"data-testid":c,...a}=e,f[0]=e,f[1]=t,f[2]=r,f[3]=n,f[4]=i,f[5]=a,f[6]=l,f[7]=o,f[8]=s,f[9]=c):(t=f[1],r=f[2],n=f[3],i=f[4],a=f[5],l=f[6],o=f[7],s=f[8],c=f[9]);let m=void 0===l?"560px":l,g=void 0===o?"256px":o,C=void 0===s?"560px":s,v=m5("content",c),{getContentProps:y}=Iw();f[10]!==y?(d=y(),f[10]=y,f[11]=d):d=f[11];let{id:b}=d,x=w$(i);f[12]!==m||f[13]!==C||f[14]!==n||f[15]!==g?(u={"--popover-min-height":n,"--popover-max-height":m,"--popover-min-width":g,"--popover-max-width":C},f[12]=m,f[13]=C,f[14]=n,f[15]=g,f[16]=u):u=f[16];let O=u;return f[17]!==r?(h=(0,m2.cn)("flex flex-col overflow-auto","min-w-(--popover-min-width)","max-w-[clamp(var(--popover-min-width),var(--available-width),var(--popover-max-width))]","min-h-(--popover-min-height)","max-h-[clamp(var(--popover-min-height,0px),var(--available-height),var(--popover-max-height))]","p-12 bg-bg-surface-2 rounded-12 border border-border-primary-light shadow-md text-text-primary","z-[calc(var(--drawer-positioner-z-index)+(var(--layer-index,0)*var(--drawer-level-ratio)))]","overscroll-contain","animate-in fade-in-0 zoom-in-95 origin-[--radix-tooltip-content-transform-origin]","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2",r),f[17]=r,f[18]=h):h=f[18],f[19]!==t||f[20]!==x||f[21]!==b||f[22]!==a||f[23]!==O||f[24]!==h||f[25]!==v?(p=(0,eB.Y)(bh,{children:(0,eB.Y)(NC.Positioner,{children:(0,eB.Y)(NC.Content,{"data-slot":"popover-content",...a,ref:x,id:b,"data-testid":v,style:O,className:h,children:t})})}),f[19]=t,f[20]=x,f[21]=b,f[22]=a,f[23]=O,f[24]=h,f[25]=v,f[26]=p):p=f[26],p},"PopoverContent");NO.displayName="PopoverContent";let Nw=(0,m9.F)("w-320 gap-1 p-8"),NS=(0,m9.F)("w-full items-start justify-between gap-4 rounded-6 px-8 py-6 hover:bg-states-primary-hover"),NE=(0,m9.F)("truncate text-xs text-text-secondary"),Nk=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(17);s[0]!==e?({label:i,className:r,children:t,...n}=e,s[0]=e,s[1]=t,s[2]=r,s[3]=n,s[4]=i):(t=s[1],r=s[2],n=s[3],i=s[4]);let c=void 0===i?"Always allowed in this conversation":i,d=(0,c0.useId)(),u=null!=c&&!1!==c&&""!==c,h=u?d:void 0;return s[5]!==r?(a=(0,m2.cn)(Nw(),r),s[5]=r,s[6]=a):a=s[6],s[7]!==u||s[8]!==c||s[9]!==d?(l=u&&(0,eB.Y)("p",{id:d,className:(0,SE.d)(),children:c}),s[7]=u,s[8]=c,s[9]=d,s[10]=l):l=s[10],s[11]!==t||s[12]!==n||s[13]!==h||s[14]!==a||s[15]!==l?(o=(0,eB.FD)(NO,{"aria-labelledby":h,...n,"data-slot":"chat-permissions-content",minWidth:"320px",maxWidth:"320px",className:a,children:[l,t]}),s[11]=t,s[12]=n,s[13]=h,s[14]=a,s[15]=l,s[16]=o):o=s[16],o},"ChatPermissionsContent");Nk.displayName="ChatPermissionsContent";var[NP,ND]=(0,ua.q)({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),NA=e=>e.children(ND()),NT=(0,c0.forwardRef)((e,t)=>{let r=ND(),n=(0,p8.v)(r.getControlProps(),e);return(0,eB.Y)(fr.span,{...n,ref:t})});NT.displayName="SwitchControl";var NM=i("M3"),NL=(0,c0.forwardRef)((e,t)=>{let r=ND(),n=(0,p8.v)(r.getHiddenInputProps(),e),i=(0,NM.f)();return(0,eB.Y)(fr.input,{"aria-describedby":i?.ariaDescribedby,...n,ref:t})});NL.displayName="SwitchHiddenInput";var NI=(0,c0.forwardRef)((e,t)=>{let r=ND(),n=(0,p8.v)(r.getLabelProps(),e);return(0,eB.Y)(fr.span,{...n,ref:t})});function NN(e){let{pointerNode:t,keyboardNode:r=t,onPress:n,onPressStart:i,onPressEnd:a,isValidKey:l=e=>"Enter"===e.key}=e;if(!t)return uI;let o=u6(t),s=uI,c=uI,d=uI,u=e=>({point:f$(e),event:e});function h(e){a?.(u(e))}let p=fH(t,"pointerdown",e=>{c(),c=uL(fH(o,"pointerup",e=>{u7(t,fP(e))?n?.(u(e)):a?.(u(e))},{passive:!n,once:!0}),fH(o,"pointercancel",h,{passive:!a,once:!0})),u3(r)&&"mouse"===e.pointerType&&e.preventDefault(),i?.(u(e))},{passive:!i});return s=uL(p,fH(r,"focus",function(){d=uL(fH(r,"keydown",e=>{var t;l(e)&&(c(),c=fH(r,"keyup",e=>{if(!l(e))return;let t=u(new o.PointerEvent("pointerup"));n?.(t),a?.(t)}),t=new o.PointerEvent("pointerdown"),i?.(u(t)))}),fH(r,"blur",()=>{h(new o.PointerEvent("pointercancel"))}))})),()=>{s(),c(),d()}}NI.displayName="SwitchLabel";var NF=e=>e.ids?.root??`switch:${e.id}`,NR=e=>e.ids?.label??`switch:${e.id}:label`,NV=e=>e.ids?.thumb??`switch:${e.id}:thumb`,N_=e=>e.ids?.control??`switch:${e.id}:control`,NY=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,N$=e=>e.getById(NF(e)),NH=e=>e.getById(NY(e)),{not:Nz}=uS(),NZ=uE({props:({props:e})=>({defaultChecked:!1,label:"switch",value:"on",...e}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),computed:{isDisabled:({context:e,prop:t})=>t("disabled")||e.get("fieldsetDisabled")},watch({track:e,prop:t,context:r,action:n}){e([()=>t("disabled")],()=>{n(["removeFocusIfNeeded"])}),e([()=>r.get("checked")],()=>{n(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:Nz("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:Nz("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({computed:e,scope:t,context:r}){if(!e("isDisabled"))return NN({pointerNode:N$(t),keyboardNode:NH(t),isValidKey:e=>" "===e.key,onPress:()=>r.set("active",!1),onPressStart:()=>r.set("active",!0),onPressEnd:()=>r.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return v$({root:t.getRootNode()})},trackFormControlState:({context:e,send:t,scope:r})=>kZ(NH(r),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){t({type:"CHECKED.SET",checked:!!e.initial("checked"),src:"form-reset"})}})},actions:{setContext({context:e,event:t}){for(let r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,scope:t}){let r=NH(t);r&&k$(r,!!e.get("checked"))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.set("focused",!1)},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e}){e.set("checked",!e.get("checked"))},dispatchChangeEvent({context:e,scope:t}){queueMicrotask(()=>{kz(NH(t),{checked:e.get("checked")})})}}}}),NQ={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},NB=uZ("switch").parts("root","label","control","thumb").build(),Nj=p1(),NG=(0,c0.forwardRef)((e,t)=>{let[r,n]=Nj(e,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),i=(e=>{let t=(0,c0.useId)(),{getRootNode:r}=uo(),{dir:n}=uc(),i=(0,NM.f)();return function(e,t){let{context:r,send:n,prop:i,scope:a}=e,l=!!i("disabled"),o=!!i("readOnly"),s=!!i("required"),c=!!r.get("checked"),d=!l&&r.get("focused"),u=!l&&r.get("focusVisible"),h={"data-active":uF(!l&&r.get("active")),"data-focus":uF(d),"data-focus-visible":uF(u),"data-readonly":uF(o),"data-hover":uF(r.get("hovered")),"data-disabled":uF(l),"data-state":c?"checked":"unchecked","data-invalid":uF(i("invalid")),"data-required":uF(s)};return{checked:c,disabled:l,focused:d,setChecked(e){n({type:"CHECKED.SET",checked:e,isTrusted:!1})},toggleChecked(){n({type:"CHECKED.TOGGLE",checked:c,isTrusted:!1})},getRootProps:()=>t.label({...NB.root.attrs,...h,dir:i("dir"),id:NF(a),htmlFor:NY(a),onPointerMove(){l||n({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){l||n({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(e){l||(fP(e)===NH(a)&&e.stopPropagation(),fE()&&eI.getHiddenInputEl(a)?.focus())}}),getLabelProps:()=>t.element({...NB.label.attrs,...h,dir:i("dir"),id:NR(a)}),getThumbProps:()=>t.element({...NB.thumb.attrs,...h,dir:i("dir"),id:NV(a),"aria-hidden":!0}),getControlProps:()=>t.element({...NB.control.attrs,...h,dir:i("dir"),id:N_(a),"aria-hidden":!0}),getHiddenInputProps:()=>t.input({id:NY(a),type:"checkbox",required:i("required"),defaultChecked:c,disabled:l,"aria-labelledby":NR(a),"aria-invalid":i("invalid"),name:i("name"),form:i("form"),value:i("value"),style:NQ,onFocus(){n({type:"CONTEXT.SET",context:{focused:!0,focusVisible:vY()}})},onBlur(){n({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(e){o?e.preventDefault():n({type:"CHECKED.SET",checked:e.currentTarget.checked,isTrusted:!0})}})}}(hk(NZ,{id:t,ids:{label:i?.ids.label,hiddenInput:i?.ids.control},dir:n,disabled:i?.disabled,readOnly:i?.readOnly,invalid:i?.invalid,required:i?.required,getRootNode:r,...e}),hA)})(r),a=(0,p8.v)(i.getRootProps(),n);return(0,eB.Y)(NP,{value:i,children:(0,eB.Y)(fr.label,{...a,ref:t})})});NG.displayName="SwitchRoot";var NU=p1(),NW=(0,c0.forwardRef)((e,t)=>{let[{value:r},n]=NU(e,["value"]),i=(0,p8.v)(r.getRootProps(),n);return(0,eB.Y)(NP,{value:r,children:(0,eB.Y)(fr.label,{...i,ref:t})})});NW.displayName="SwitchRootProvider";var Nq=(0,c0.forwardRef)((e,t)=>{let r=ND(),n=(0,p8.v)(r.getThumbProps(),e);return(0,eB.Y)(fr.span,{...n,ref:t})});Nq.displayName="SwitchThumb";var NX=pq({Context:()=>NA,Control:()=>NT,HiddenInput:()=>NL,Label:()=>NI,Root:()=>NG,RootProvider:()=>NW,Thumb:()=>Nq});let NK=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(9);a[0]!==e?({className:t,...r}=e,a[0]=e,a[1]=t,a[2]=r):(t=a[1],r=a[2]);let l=m5("label");return a[3]!==t?(n=(0,m2.cn)("flex items-center gap-4","font-sans text-sm font-normal text-text-primary",t),a[3]=t,a[4]=n):n=a[4],a[5]!==r||a[6]!==n||a[7]!==l?(i=(0,eB.Y)(NX.Label,{...r,"data-testid":l,className:n}),a[5]=r,a[6]=n,a[7]=l,a[8]=i):i=a[8],i},"SwitchLabel");NK.displayName="SwitchLabel";let NJ=(0,c0.createContext)({a11yMode:!1}),N1=(0,eQ.G)(()=>{let e,t,r,n,i,a=(0,ej.c)(12),l=ND(),{a11yMode:o}=(0,c0.useContext)(NJ),s=m5("control"),c=l.checked;return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,m2.cn)("relative flex items-center self-start my-2","w-34 h-20","rounded-8 overflow-hidden overlay transition-all data-focus-visible:ring-3","bg-component-switcher-bg","[&[data-hover]:not([data-active]):not([data-state=checked])]:overlay-states-primary-hover","[&[data-active]:not([data-state=checked])]:overlay-states-primary-pressed","[&[data-focus-visible]:not([data-state=checked])]:ring-focus-primary","data-[state=checked]:bg-bg-fill-brand","[&[data-hover]:not([data-active])[data-state=checked]]:overlay-states-on-fill-hover","[&[data-active][data-state=checked]]:overlay-states-on-fill-pressed","[&[data-focus-visible][data-state=checked]]:ring-focus-brand"),a[0]=e):e=a[0],a[1]!==o||a[2]!==c?(t=o&&!c&&(0,eB.Y)(cN.X,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-10 h-10 text-icon-secondary pointer-events-none z-0"}),a[1]=o,a[2]=c,a[3]=t):t=a[3],a[4]!==o||a[5]!==c?(r=o&&c&&(0,eB.Y)(t4,{className:"absolute left-2 top-1/2 -translate-y-1/2 w-10 h-10 text-white pointer-events-none z-0"}),a[4]=o,a[5]=c,a[6]=r):r=a[6],a[7]===Symbol.for("react.memo_cache_sentinel")?(n=(0,eB.Y)(NX.Thumb,{className:(0,m2.cn)("w-16 h-12","bg-icon-primary-alt rounded-4 shadow-sm transition-all relative z-[9]","translate-x-4","data-[state=checked]:translate-x-14")}),a[7]=n):n=a[7],a[8]!==t||a[9]!==r||a[10]!==s?(i=(0,eB.FD)(NX.Control,{"data-testid":s,className:e,children:[t,r,n]}),a[8]=t,a[9]=r,a[10]=s,a[11]=i):i=a[11],i},"SwitchControl");N1.displayName="SwitchControl";let N2=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h=(0,ej.c)(22);h[0]!==e?({children:t,className:r,a11yMode:i,"data-testid":a,...n}=e,h[0]=e,h[1]=t,h[2]=r,h[3]=n,h[4]=i,h[5]=a):(t=h[1],r=h[2],n=h[3],i=h[4],a=h[5]);let p=void 0!==i&&i;return h[6]!==p?(l={a11yMode:p},h[6]=p,h[7]=l):l=h[7],h[8]!==r?(o=(0,m2.cn)("items-center gap-x-8","[&:not(:has([data-part=description]))]:flex","[&:has([data-part=description])]:grid","[&:has([data-part=description])]:grid-cols-[40px_auto]","*:data-[part=description]:col-start-2 *:data-[part=description]:col-end-3","[&:not([data-disabled])]:cursor-pointer","data-disabled:opacity-50 data-disabled:pointer-events-none data-disabled:cursor-not-allowed",r),h[8]=r,h[9]=o):o=h[9],h[10]===Symbol.for("react.memo_cache_sentinel")?(s=(0,eB.Y)(NX.HiddenInput,{}),h[10]=s):s=h[10],h[11]!==t||h[12]!==n||h[13]!==o||h[14]!==a?(c=(0,eB.FD)(NX.Root,{...n,"data-testid":a,className:o,children:[t,s]}),h[11]=t,h[12]=n,h[13]=o,h[14]=a,h[15]=c):c=h[15],h[16]!==c||h[17]!==a?(d=(0,eB.Y)(m3,{value:a,children:c}),h[16]=c,h[17]=a,h[18]=d):d=h[18],h[19]!==l||h[20]!==d?(u=(0,eB.Y)(NJ.Provider,{value:l,children:d}),h[19]=l,h[20]=d,h[21]=u):u=h[21],u},"Switch");N2.displayName="Switch";let N0=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m=(0,ej.c)(28);m[0]!==e?({name:n,title:o,description:r,onCheckedChange:i,className:t,"data-testid":l,...a}=e,m[0]=e,m[1]=t,m[2]=r,m[3]=n,m[4]=i,m[5]=a,m[6]=l,m[7]=o):(t=m[1],r=m[2],n=m[3],i=m[4],a=m[5],l=m[6],o=m[7]);let g=m5("item",l);return m[8]!==n||m[9]!==i?(s=i&&(e=>{let{checked:t}=e;return i({checked:t,name:n})}),m[8]=n,m[9]=i,m[10]=s):s=m[10],m[11]!==t?(c=(0,m2.cn)(NS(),t),m[11]=t,m[12]=c):c=m[12],m[13]!==o?(d=(0,eB.Y)(NK,{children:o}),m[13]=o,m[14]=d):d=m[14],m[15]!==r?(u=null!=r&&(0,eB.Y)("span",{className:NE(),children:r}),m[15]=r,m[16]=u):u=m[16],m[17]!==d||m[18]!==u?(h=(0,eB.FD)("span",{className:"flex min-w-0 flex-1 flex-col",children:[d,u]}),m[17]=d,m[18]=u,m[19]=h):h=m[19],m[20]===Symbol.for("react.memo_cache_sentinel")?(p=(0,eB.Y)(N1,{}),m[20]=p):p=m[20],m[21]!==n||m[22]!==a||m[23]!==s||m[24]!==c||m[25]!==h||m[26]!==g?(f=(0,eB.FD)(N2,{...a,name:n,onCheckedChange:s,"data-slot":"chat-permissions-item","data-testid":g,className:c,children:[h,p]}),m[21]=n,m[22]=a,m[23]=s,m[24]=c,m[25]=h,m[26]=g,m[27]=f):f=m[27],f},"ChatPermissionsItem");N0.displayName="ChatPermissionsItem";let N3=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(8);a[0]!==e?({asChild:r,"data-testid":n,...t}=e,a[0]=e,a[1]=t,a[2]=r,a[3]=n):(t=a[1],r=a[2],n=a[3]);let l=void 0!==r&&r,o=m5("trigger",n);return a[4]!==l||a[5]!==t||a[6]!==o?(i=(0,eB.Y)(NC.Trigger,{...t,asChild:l,"data-testid":o}),a[4]=l,a[5]=t,a[6]=o,a[7]=i):i=a[7],i},"PopoverTrigger");N3.displayName="PopoverTrigger";let N5=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(25);u[0]!==e?({ref:r,children:t,"aria-label":i,"data-testid":a,...n}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5]);let h=void 0===i?"Permission settings":i,{triggerId:p}=(()=>{let e=(0,c0.useContext)(Nb);if(!e)throw Error("ChatPermissions parts must be rendered inside <ChatPermissions>");return e})(),{open:f}=Iw(),m=m5("trigger",a),g=m5("tooltip");return u[6]!==p?(l={trigger:p},u[6]=p,u[7]=l):l=u[7],u[8]!==t?(o=t??(0,eB.Y)(oq,{}),u[8]=t,u[9]=o):o=u[9],u[10]!==h||u[11]!==r||u[12]!==n||u[13]!==o||u[14]!==m||u[15]!==p?(s=(0,eB.Y)(N3,{asChild:!0,children:(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{type:"button",...n,ref:r,id:p,"data-slot":"chat-permissions-trigger","data-testid":m,variant:"ghost",color:"neutral",size:"small","aria-label":h,children:o})})}),u[10]=h,u[11]=r,u[12]=n,u[13]=o,u[14]=m,u[15]=p,u[16]=s):s=u[16],u[17]!==h||u[18]!==g?(c=(0,eB.Y)(bm,{"data-testid":g,children:h}),u[17]=h,u[18]=g,u[19]=c):c=u[19],u[20]!==f||u[21]!==l||u[22]!==s||u[23]!==c?(d=(0,eB.FD)(bC,{disabled:f,ids:l,children:[s,c]}),u[20]=f,u[21]=l,u[22]=s,u[23]=c,u[24]=d):d=u[24],d},"ChatPermissionsTrigger");N5.displayName="ChatPermissionsTrigger";var[N4,N7]=(0,ua.q)({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),[N9,N6]=(0,ua.q)({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),N8=e=>e.children(N6()),Fe=(0,c0.forwardRef)((e,t)=>{let r=N6(),n=(0,p8.v)(r.getControlProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});Fe.displayName="CheckboxControl";var Ft=uZ("checkbox").parts("root","label","control","indicator"),Fr=Ft.build(),Fn=Ft.extendWith("group"),[Fi,Fa]=(0,ua.q)({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1}),Fl=p1(),Fo=(0,c0.forwardRef)((e,t)=>{let[r,n]=Fl(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name","maxSelectedValues"]),i=function(e={}){let t=Fa(),{defaultValue:r,value:n,onValueChange:i,disabled:a=t?.disabled,readOnly:l,name:o,invalid:s=t?.invalid,maxSelectedValues:c}=e,d=!(a||l),[u,h]=function(e){let{value:t,onChange:r,defaultValue:n}=e,[i,a]=(0,c0.useState)(n),l=void 0!==t;return[l?t:i,(0,c0.useCallback)(e=>(l||a(e),r?.(e)),[l,r])]}({value:n,defaultValue:r||[],onChange:vm(i,{sync:!0})}),p=e=>u.some(t=>String(t)===String(e)),f=e=>{p(e)?C(e):g(e)},m=null!=c&&u.length>=c,g=e=>{!d||p(e)||m||h(u.concat(e))},C=e=>{d&&h(u.filter(t=>String(t)!==String(e)))};return{isChecked:p,value:u,name:o,disabled:!!a,readOnly:!!l,invalid:!!s,setValue:h,addValue:g,toggleValue:f,getItemProps:e=>{let t=null!=e.value?p(e.value):void 0;return{checked:t,onCheckedChange(){null!=e.value&&f(e.value)},name:o,disabled:a||m&&!t,readOnly:l,invalid:s}}}}(r);return(0,eB.Y)(N4,{value:i,children:(0,eB.Y)(fr.div,{ref:t,role:"group",...n,...Fn.build().group.attrs})})});Fo.displayName="CheckboxGroup";var Fs=p1(),Fc=(0,c0.forwardRef)((e,t)=>{let[r,n]=Fs(e,["value"]);return(0,eB.Y)(N4,{value:r.value,children:(0,eB.Y)(fr.div,{ref:t,role:"group",...n,...Fn.build().group.attrs})})});Fc.displayName="CheckboxGroupProvider";var Fd=(0,c0.forwardRef)((e,t)=>{let r=N6(),n=(0,p8.v)(r.getHiddenInputProps(),e),i=(0,NM.f)();return(0,eB.Y)(fr.input,{"aria-describedby":i?.ariaDescribedby,...n,ref:t})});Fd.displayName="CheckboxHiddenInput";var Fu=(0,c0.forwardRef)((e,t)=>{let{indeterminate:r,...n}=e,i=N6(),a=(0,p8.v)(i.getIndicatorProps(),n),l=r?i.indeterminate:i.checked;return(0,eB.Y)(fr.div,{...a,hidden:!l,ref:t})});Fu.displayName="CheckboxIndicator";var Fh=(0,c0.forwardRef)((e,t)=>{let r=N6(),n=(0,p8.v)(r.getLabelProps(),e);return(0,eB.Y)(fr.span,{...n,ref:t})});Fh.displayName="CheckboxLabel";var Fp=e=>e.ids?.root??`checkbox:${e.id}`,Ff=e=>e.ids?.label??`checkbox:${e.id}:label`,Fm=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,Fg=e=>e.getById(Fm(e)),{not:FC}=uS(),Fv=uE({props:({props:e})=>({value:"on",...e,defaultChecked:e.defaultChecked??!1}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),watch({track:e,context:t,prop:r,action:n}){e([()=>r("disabled")],()=>{n(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{n(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:FC("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:FC("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>Fy(e.get("checked")),checked:({context:e})=>{var t;return!Fy(t=e.get("checked"))&&!!t},disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:r}){if(!t("disabled"))return NN({pointerNode:r.getById(Fp(r)),keyboardNode:Fg(r),isValidKey:e=>" "===e.key,onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return v$({root:t.getRootNode?.()})},trackFormControlState:({context:e,scope:t})=>kZ(Fg(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("checked",e.initial("checked"))}})},actions:{setContext({context:e,event:t}){for(let r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,computed:t,scope:r}){let n=Fg(r);n&&(k$(n,t("checked")),n.indeterminate=Fy(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){let r=!!Fy(t("checked"))||!t("checked");e.set("checked",r)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{kz(Fg(t),{checked:e("checked")})})}}}});function Fy(e){return"indeterminate"===e}var Fb=p1(),Fx=(0,c0.forwardRef)((e,t)=>{let[r,n]=Fb(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),i=((e={})=>{let t=N7(),r=(0,NM.f)(),n=(0,c0.useMemo)(()=>(0,p8.v)(t?.getItemProps({value:e.value})??{},e),[e,t]),i=(0,c0.useId)(),{getRootNode:a}=uo(),{dir:l}=uc();return function(e,t){let{send:r,context:n,prop:i,computed:a,scope:l}=e,o=!!i("disabled"),s=!!i("readOnly"),c=!!i("required"),d=!!i("invalid"),u=!o&&n.get("focused"),h=!o&&n.get("focusVisible"),p=a("checked"),f=a("indeterminate"),m=n.get("checked"),g={"data-active":uF(n.get("active")),"data-focus":uF(u),"data-focus-visible":uF(h),"data-readonly":uF(s),"data-hover":uF(n.get("hovered")),"data-disabled":uF(o),"data-state":f?"indeterminate":p?"checked":"unchecked","data-invalid":uF(d),"data-required":uF(c)};return{checked:p,disabled:o,indeterminate:f,focused:u,checkedState:m,setChecked(e){r({type:"CHECKED.SET",checked:e,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:p,isTrusted:!1})},getRootProps:()=>t.label({...Fr.root.attrs,...g,dir:i("dir"),id:Fp(l),htmlFor:Fm(l),onPointerMove(){o||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){o||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(e){fP(e)===Fg(l)&&e.stopPropagation()}}),getLabelProps:()=>t.element({...Fr.label.attrs,...g,dir:i("dir"),id:Ff(l)}),getControlProps:()=>t.element({...Fr.control.attrs,...g,dir:i("dir"),id:l.ids?.control??`checkbox:${l.id}:control`,"aria-hidden":!0}),getIndicatorProps:()=>t.element({...Fr.indicator.attrs,...g,dir:i("dir"),hidden:!f&&!p}),getHiddenInputProps:()=>t.input({id:Fm(l),type:"checkbox",required:i("required"),defaultChecked:p,disabled:o,"aria-labelledby":Ff(l),"aria-invalid":d,name:i("name"),form:i("form"),value:i("value"),style:NQ,onFocus(){r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:vY()}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(e){s?e.preventDefault():r({type:"CHECKED.SET",checked:e.currentTarget.checked,isTrusted:!0})}})}}(hk(Fv,{id:i,ids:{label:r?.ids.label,hiddenInput:r?.ids.control},dir:l,disabled:r?.disabled,readOnly:r?.readOnly,invalid:r?.invalid,required:r?.required,getRootNode:a,...n}),hA)})(r),a=(0,p8.v)(i.getRootProps(),n);return(0,eB.Y)(N9,{value:i,children:(0,eB.Y)(fr.label,{...a,ref:t})})});Fx.displayName="CheckboxRoot";var FO=p1(),Fw=(0,c0.forwardRef)((e,t)=>{let[{value:r},n]=FO(e,["value"]),i=(0,p8.v)(r.getRootProps(),n);return(0,eB.Y)(N9,{value:r,children:(0,eB.Y)(fr.label,{...i,ref:t})})});Fw.displayName="CheckboxRootProvider";var FS=pq({Context:()=>N8,Control:()=>Fe,Group:()=>Fo,GroupProvider:()=>Fc,HiddenInput:()=>Fd,Indicator:()=>Fu,Label:()=>Fh,Root:()=>Fx,RootProvider:()=>Fw});let FE=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(16);c[0]!==e?({children:t,ref:n,"data-testid":i,...r}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=i):(t=c[1],r=c[2],n=c[3],i=c[4]);let d=N7()?{ids:{}}:void 0;return c[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,m2.cn)("items-center gap-x-8","[&:not(:has([data-part=description]))]:flex","[&:has([data-part=description])]:grid","[&:has([data-part=description])]:grid-cols-[16px_auto]","*:data-[part=description]:col-start-2 *:data-[part=description]:col-end-3","[&:not([data-disabled])]:cursor-pointer","data-disabled:pointer-none data-disabled:cursor-not-allowed"),c[5]=a):a=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,eB.Y)(FS.HiddenInput,{}),c[6]=l):l=c[6],c[7]!==t||c[8]!==d||c[9]!==r||c[10]!==n||c[11]!==i?(o=(0,eB.FD)(FS.Root,{...d,...r,ref:n,"data-testid":i,className:a,children:[t,l]}),c[7]=t,c[8]=d,c[9]=r,c[10]=n,c[11]=i,c[12]=o):o=c[12],c[13]!==o||c[14]!==i?(s=(0,eB.Y)(m3,{value:i,children:o}),c[13]=o,c[14]=i,c[15]=s):s=c[15],s},"Checkbox");FE.displayName="Checkbox";let Fk=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),n=m5("description");return r[0]!==e||r[1]!==n?(t=(0,eB.Y)(bk.E,{...e,"data-testid":n,size:"sm",weight:"regular",color:"secondary","data-scope":"checkbox","data-part":"description"}),r[0]=e,r[1]=n,r[2]=t):t=r[2],t},"CheckboxDescription");Fk.displayName="CheckboxDescription";let FP=(0,m9.F)("flex flex-col gap-8",{variants:{variant:{default:(0,m2.cn)("data-disabled:[&_[data-part=root]]:opacity-50"),card:(0,m2.cn)("[&_[data-part=root]]:py-12 [&_[data-part=root]]:pl-12 [&_[data-part=root]]:pr-16","[&_[data-part=root]]:rounded-8 [&_[data-part=root]]:border [&_[data-part=root]]:bg-bg-surface-2","[&_[data-part=root]]:transition-colors [&_[data-part=root]]:overlay","[&_[data-part=root][data-state=unchecked]]:border-border-primary","[&_[data-part=root][data-state=unchecked]:not([data-disabled])]:hover:overlay-states-primary-hover","[&_[data-part=root][data-state=unchecked]:not([data-disabled])]:active:overlay-states-primary-pressed","[&_[data-part=root][data-state=checked]]:border-border-brand","[&_[data-part=root][data-state=checked]:not([data-disabled])]:hover:overlay-states-brand-hover","[&_[data-part=root][data-state=checked]:not([data-disabled])]:active:overlay-states-brand-pressed","[&_[data-part=root][data-state=indeterminate]]:border-border-brand","[&_[data-part=root][data-state=indeterminate]:not([data-disabled])]:hover:overlay-states-brand-hover","[&_[data-part=root][data-state=indeterminate]:not([data-disabled])]:active:overlay-states-brand-pressed","[&_[data-part=root][data-disabled]]:[&_[data-part=label]]:opacity-50","[&_[data-part=root][data-disabled]]:[&_[data-part=description]]:opacity-50","[&_[data-part=root][data-disabled]]:[&_[data-part=control]]:opacity-50")}}}),FD=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(10);l[0]!==e?({variant:r,"data-testid":n,...t}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=n):(t=l[1],r=l[2],n=l[3]);let o=void 0===r?"default":r,s=m5("group",n);return l[4]!==o?(i=(0,m2.cn)(FP({variant:o})),l[4]=o,l[5]=i):i=l[5],l[6]!==t||l[7]!==i||l[8]!==s?(a=(0,eB.Y)(FS.Group,{...t,"data-testid":s,className:i}),l[6]=t,l[7]=i,l[8]=s,l[9]=a):a=l[9],a},"CheckboxGroup");FD.displayName="CheckboxGroup",Object.assign(FD,{fieldSlot:"checkbox-group"});let FA=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(3);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eB.Y)("rect",{x:"3.5",y:"10.5",width:"17",height:"3",rx:"0.75",fill:"currentColor"}),n[0]=t):t=n[0],n[1]!==e?(r=(0,eB.Y)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":!0,focusable:!1,...e,children:t}),n[1]=e,n[2]=r):r=n[2],r},"IndeterminateIcon"),FT=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(3);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eB.Y)("path",{d:"M18.9395 4.93946C19.5253 4.35368 20.4748 4.35368 21.0606 4.93946C21.6462 5.52526 21.6463 6.47482 21.0606 7.06056L10.0606 18.0606C9.47485 18.6463 8.52529 18.6462 7.93949 18.0606L2.93949 13.0606C2.3537 12.4748 2.3537 11.5253 2.93949 10.9395C3.52528 10.3537 4.4748 10.3537 5.06058 10.9395L9.00004 14.8789L18.9395 4.93946Z",fill:"currentColor"}),n[0]=t):t=n[0],n[1]!==e?(r=(0,eB.Y)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":!0,focusable:!1,...e,children:t}),n[1]=e,n[2]=r):r=n[2],r},"CheckIcon"),FM=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(10);l[0]!==e?({checkedState:r,...t}=e,l[0]=e,l[1]=t,l[2]=r):(t=l[1],r=l[2]);let o=void 0!==r&&r;l[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,m2.cn)("flex items-center justify-center self-start my-2","w-16 h-16","rounded-4 shadow-xs overlay transition-all data-focus-visible:ring-3","[&_svg]:icon-sm [&_svg]:text-icon-primary-alt [&_svg]:shrink-0 [&_svg]:pointer-events-none","bg-bg-surface-3 border border-border-primary","[&[data-hover]:not([data-active]):not([data-state=checked]):not([data-state=indeterminate])]:bg-states-primary-hover","[&[data-active]:not([data-state=checked]):not([data-state=indeterminate])]:bg-states-primary-pressed","[&[data-focus-visible]:not([data-state=checked]):not([data-state=indeterminate])]:ring-focus-primary","data-[state=checked]:bg-bg-fill-brand","data-[state=checked]:border-bg-fill-brand","data-[state=checked]:border-none","data-[state=indeterminate]:bg-bg-fill-brand","data-[state=indeterminate]:border-bg-fill-brand","data-[state=indeterminate]:border-none","[&[data-hover]:not([data-active]):is([data-state=checked])]:overlay-states-on-fill-hover","[&[data-hover]:not([data-active]):is([data-state=indeterminate])]:overlay-states-on-fill-hover","[&[data-active][data-state=checked]]:overlay-states-on-fill-pressed","[&[data-active][data-state=indeterminate]]:overlay-states-on-fill-pressed","[&[data-focus-visible][data-state=checked]]:ring-focus-brand","[&[data-focus-visible][data-state=indeterminate]]:ring-focus-brand"),l[3]=n):n=l[3];let s="indeterminate"===o?"indeterminate":o?"checked":"unchecked";return l[4]!==o?(i="indeterminate"===o?(0,eB.Y)(FA,{}):!!o&&(0,eB.Y)(FT,{}),l[4]=o,l[5]=i):i=l[5],l[6]!==t||l[7]!==s||l[8]!==i?(a=(0,eB.Y)("div",{className:n,"data-state":s,...t,children:i}),l[6]=t,l[7]=s,l[8]=i,l[9]=a):a=l[9],a},"Checkmark"),FL=(0,eQ.G)(()=>{let e,t,r,n=(0,ej.c)(8),{getControlProps:i,checkedState:a}=N6(),l=m5("indicator");n[0]!==i?(e=i(),n[0]=i,n[1]=e):e=n[1];let o=e;return n[2]!==a||n[3]!==o?(t=(0,eB.Y)(FM,{...o,checkedState:a}),n[2]=a,n[3]=o,n[4]=t):t=n[4],n[5]!==t||n[6]!==l?(r=(0,eB.Y)("div",{"data-testid":l,className:"flex items-center justify-center self-start",children:t}),n[5]=t,n[6]=l,n[7]=r):r=n[7],r},"CheckboxIndicator");FL.displayName="CheckboxIndicator";let FI=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(4),i=m5("label");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("flex gap-4","font-sans text-sm font-normal text-text-primary"),n[0]=t):t=n[0],n[1]!==e||n[2]!==i?(r=(0,eB.Y)(FS.Label,{...e,"data-testid":i,className:t}),n[1]=e,n[2]=i,n[3]=r):r=n[3],r},"CheckboxLabel");FI.displayName="CheckboxLabel";let FN=(0,m9.F)("font-mono",{variants:{size:{xs:"text-2xs leading-2xs",s:"text-xs leading-xs",m:"text-sm leading-sm",l:"text-base leading-sm"},weight:{light:"font-light",regular:"font-normal",medium:"font-medium",bold:"font-bold"},color:{primary:"text-text-primary","primary-alt":"text-text-primary-alt",secondary:"text-text-secondary",destructive:"text-text-danger"},italic:{true:"italic",false:"not-italic"},truncate:{true:"truncate"}},defaultVariants:{italic:!1}}),FF=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h=(0,ej.c)(22);h[0]!==e?({size:i,weight:a,color:l,italic:o,asChild:s,truncate:c,lineClamp:r,className:t,...n}=e,h[0]=e,h[1]=t,h[2]=r,h[3]=n,h[4]=i,h[5]=a,h[6]=l,h[7]=o,h[8]=s,h[9]=c):(t=h[1],r=h[2],n=h[3],i=h[4],a=h[5],l=h[6],o=h[7],s=h[8],c=h[9]);let p=void 0===i?"l":i,f=void 0===a?"regular":a,m=void 0===l?"primary":l,g=void 0!==o&&o,C=void 0!==c&&c,v=void 0!==s&&s?Ew.DX:"p";return h[10]!==t||h[11]!==m||h[12]!==g||h[13]!==r||h[14]!==p||h[15]!==C||h[16]!==f?(d=(0,m2.cn)(FN({size:p,weight:f,color:m,italic:g,truncate:C}),r&&`line-clamp-${r}`,t),h[10]=t,h[11]=m,h[12]=g,h[13]=r,h[14]=p,h[15]=C,h[16]=f,h[17]=d):d=h[17],h[18]!==v||h[19]!==n||h[20]!==d?(u=(0,eB.Y)(v,{...n,className:d}),h[18]=v,h[19]=n,h[20]=d,h[21]=u):u=h[21],u},"Code");FF.displayName="Code";let FR=(0,c0.createContext)(null),FV=e=>{let t=(0,c0.useContext)(FR);if(!t)throw Error(`${e} must be rendered inside <Conversation>`);return t},F_=(0,m9.F)("relative flex min-h-0 flex-1 flex-col"),FY=(0,m9.F)("[overflow-anchor:none] outline-none focus-visible:ring-3 focus-visible:ring-focus-primary focus-visible:ring-inset"),F$=(0,m9.F)("flex flex-col"),FH=(0,m9.F)("block shrink-0 outline-none focus-visible:ring-3 focus-visible:ring-focus-primary"),Fz=(0,m9.F)("flex flex-col"),FZ=(0,m9.F)("absolute bottom-12 left-1/2 flex -translate-x-1/2"),FQ=new Set(["ArrowUp","PageUp","Home"]),FB=e=>{e.scrollTop=e.scrollHeight},Fj=(e,t)=>{e.scrollTop=t},FG=1e3/60,FU=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p=(0,ej.c)(26);p[0]!==e?({ref:a,threshold:l,autoScrollKey:t,className:n,children:r,"data-testid":o,...i}=e,p[0]=e,p[1]=t,p[2]=r,p[3]=n,p[4]=i,p[5]=a,p[6]=l,p[7]=o):(t=p[1],r=p[2],n=p[3],i=p[4],a=p[5],l=p[6],o=p[7]);let f=void 0===l?70:l,m=m5(void 0,o),[g,C]=(0,c0.useState)(null),[v,y]=(0,c0.useState)(null),{isAtBottom:b,scrollToBottom:x}=function(e,t,r,n){let i,a,l,o,s,c,d=(0,ej.c)(13),[u,h]=(0,c0.useState)(!0),p=(0,c0.useRef)(!0),f=(0,c0.useRef)(null);d[0]!==t||d[1]!==e||d[2]!==r?(i=()=>{if(!e||!t)return;let n=e.scrollTop,i=e.scrollHeight,a=()=>e.scrollHeight-e.scrollTop-e.clientHeight<=r,l=0,o=0,s=0,c=()=>{n=e.scrollTop,i=e.scrollHeight,h(p.current&&0!==l||a())},d=()=>{let t=document.getSelection();return!!t&&!t.isCollapsed&&e.contains(t.anchorNode)},u=()=>{l&&cancelAnimationFrame(l),l=0,o=0},m=t=>{if(l=0,!p.current||d())return u();let r=e.scrollTop,n=e.scrollHeight-e.clientHeight-r;if(n<=1)return n>0&&Fj(e,r+n),u();let i=s&&t>s?Math.min(t-s,FG):FG;s=t,o=Math.min(3,Math.max(0,o+(4e-4*n-.04*o)*i)),l=requestAnimationFrame(m),Fj(e,r+Math.min(n,Math.max(1,o*i)))},g=()=>{!p.current||d()||("function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches?FB(e):l||(s=0,l=requestAnimationFrame(m)))};f.current=g;let C=()=>{let t=e.scrollHeight<i,r=e.scrollTop>=e.scrollHeight-e.clientHeight-1;t||r||!(e.scrollTop<n-1)?a()&&(p.current=!0):(p.current=!1,u()),c()},v=t=>{e.scrollTop>0&&!((e,t)=>{for(let r=e instanceof Element?e:null;r&&r!==t;r=r.parentElement)if(r.scrollTop>0)return!0;return!1})(t,e)&&(p.current=!1,u())},y=e=>{e.deltaY<0&&-e.deltaY>=Math.abs(e.deltaX)&&v(e.target)},b=t=>{let r;!t.defaultPrevented&&FQ.has(t.key)&&t.target instanceof Node&&e.contains(t.target)&&!((r=t.target)instanceof HTMLElement&&(r.isContentEditable||r.matches("input, textarea, select")))&&v(t.target)},x=0,O=e=>{x=e.touches[0]?.clientY??0},w=e=>{let t=e.touches[0]?.clientY??x;t>x&&v(e.target),x=t},S=new ResizeObserver(()=>{g(),c()});S.observe(t),S.observe(e),e.addEventListener("scroll",C,{passive:!0}),e.addEventListener("wheel",y,{passive:!0}),e.addEventListener("touchstart",O,{passive:!0}),e.addEventListener("touchmove",w,{passive:!0});let E=e.ownerDocument;return E.addEventListener("keydown",b),FB(e),c(),()=>{u(),f.current=null,S.disconnect(),e.removeEventListener("scroll",C),e.removeEventListener("wheel",y),e.removeEventListener("touchstart",O),e.removeEventListener("touchmove",w),E.removeEventListener("keydown",b)}},a=[e,t,r],d[0]=t,d[1]=e,d[2]=r,d[3]=i,d[4]=a):(i=d[3],a=d[4]),(0,c0.useEffect)(i,a);let m=(0,c0.useRef)(n);d[5]!==n?(l=()=>{Object.is(m.current,n)||(m.current=n,p.current=!0,f.current?.())},o=[n],d[5]=n,d[6]=l,d[7]=o):(l=d[6],o=d[7]),(0,c0.useEffect)(l,o),d[8]!==e?(s=t=>{e&&(p.current=!0,"smooth"===(void 0===t?"smooth":t)?f.current?.():FB(e))},d[8]=e,d[9]=s):s=d[9];let g=s;return d[10]!==u||d[11]!==g?(c={isAtBottom:u,scrollToBottom:g},d[10]=u,d[11]=g,d[12]=c):c=d[12],c}(g,v,f,t);return p[8]!==n?(s=(0,m2.cn)(F_(),n),p[8]=n,p[9]=s):s=p[9],p[10]!==b||p[11]!==g||p[12]!==x?(c={isAtBottom:b,scrollToBottom:x,scrollEl:g,setScrollEl:C,setContentEl:y},p[10]=b,p[11]=g,p[12]=x,p[13]=c):c=p[13],p[14]!==r||p[15]!==m?(d=(0,eB.Y)(m3,{value:m,children:r}),p[14]=r,p[15]=m,p[16]=d):d=p[16],p[17]!==c||p[18]!==d?(u=(0,eB.Y)(FR.Provider,{value:c,children:d}),p[17]=c,p[18]=d,p[19]=u):u=p[19],p[20]!==i||p[21]!==a||p[22]!==s||p[23]!==u||p[24]!==o?(h=(0,eB.Y)("div",{...i,ref:a,"data-slot":"conversation","data-testid":o,className:s,children:u}),p[20]=i,p[21]=a,p[22]=s,p[23]=u,p[24]=o,p[25]=h):h=p[25],h},"Conversation");FU.displayName="Conversation";let FW=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p=(0,ej.c)(26);p[0]!==e?({ref:a,className:r,contentClassName:n,children:t,...i}=e,p[0]=e,p[1]=t,p[2]=r,p[3]=n,p[4]=i,p[5]=a):(t=p[1],r=p[2],n=p[3],i=p[4],a=p[5]);let{setScrollEl:f,setContentEl:m}=FV("ConversationContent"),g=m5("end");return p[6]!==a||p[7]!==f?(l=g9(a,f),p[6]=a,p[7]=f,p[8]=l):l=p[8],p[9]!==r?(o=(0,m2.cn)(FY(),r),p[9]=r,p[10]=o):o=p[10],p[11]!==n?(s=(0,m2.cn)(F$(),n),p[11]=n,p[12]=s):s=p[12],p[13]!==t||p[14]!==m||p[15]!==s?(c=(0,eB.Y)("div",{ref:m,"data-slot":"conversation-content",className:s,children:t}),p[13]=t,p[14]=m,p[15]=s,p[16]=c):c=p[16],p[17]===Symbol.for("react.memo_cache_sentinel")?(d=FH(),p[17]=d):d=p[17],p[18]!==g?(u=(0,eB.Y)("span",{tabIndex:-1,"data-slot":"conversation-end","data-testid":g,className:d}),p[18]=g,p[19]=u):u=p[19],p[20]!==i||p[21]!==l||p[22]!==o||p[23]!==c||p[24]!==u?(h=(0,eB.FD)(L5,{tabIndex:-1,...i,ref:l,className:o,children:[c,u]}),p[20]=i,p[21]=l,p[22]=o,p[23]=c,p[24]=u,p[25]=h):h=p[25],h},"ConversationContent");FW.displayName="ConversationContent";let Fq=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(18);d[0]!==e?({ref:i,title:a,className:r,children:t,"data-testid":l,...n}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=n,d[4]=i,d[5]=a,d[6]=l):(t=d[1],r=d[2],n=d[3],i=d[4],a=d[5],l=d[6]);let u=void 0===a?"How can I help you today?":a,h=m5("empty-state",l);return d[7]!==r?(o=(0,m2.cn)(Fz(),r),d[7]=r,d[8]=o):o=d[8],d[9]!==t||d[10]!==u?(s=(0,eB.Y)(L7,{title:u,children:t}),d[9]=t,d[10]=u,d[11]=s):s=d[11],d[12]!==n||d[13]!==i||d[14]!==o||d[15]!==s||d[16]!==h?(c=(0,eB.Y)("div",{...n,ref:i,"data-slot":"conversation-empty-state","data-testid":h,className:o,children:s}),d[12]=n,d[13]=i,d[14]=o,d[15]=s,d[16]=h,d[17]=c):c=d[17],c},"ConversationEmptyState");Fq.displayName="ConversationEmptyState";let FX=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m=(0,ej.c)(31);m[0]!==e?({ref:a,id:r,label:l,className:t,onClick:n,"data-testid":o,...i}=e,m[0]=e,m[1]=t,m[2]=r,m[3]=n,m[4]=i,m[5]=a,m[6]=l,m[7]=o):(t=m[1],r=m[2],n=m[3],i=m[4],a=m[5],l=m[6],o=m[7]);let g=void 0===l?"Scroll to latest message":l,{isAtBottom:C,scrollToBottom:v,scrollEl:y}=FV("ConversationScrollButton"),b=m5("scroll-button",o),x=(0,c0.useId)(),O=r??x;return C?null:(m[8]===Symbol.for("react.memo_cache_sentinel")?(s=FZ(),m[8]=s):s=m[8],m[9]!==O?(c={trigger:O},m[9]=O,m[10]=c):c=m[10],m[11]!==n||m[12]!==y||m[13]!==v?(d=e=>{if(n?.(e),e.defaultPrevented)return;v("smooth");let t=y?.lastElementChild;(t instanceof HTMLElement?t:y)?.focus({preventScroll:!0})},m[11]=n,m[12]=y,m[13]=v,m[14]=d):d=m[14],m[15]===Symbol.for("react.memo_cache_sentinel")?(u=(0,eB.Y)(e6,{}),m[15]=u):u=m[15],m[16]!==t||m[17]!==g||m[18]!==i||m[19]!==a||m[20]!==d||m[21]!==b||m[22]!==O?(h=(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{type:"button","aria-label":g,...i,ref:a,id:O,variant:"outline",color:"neutral",size:"small","data-slot":"conversation-scroll-button","data-testid":b,className:t,onClick:d,children:u})}),m[16]=t,m[17]=g,m[18]=i,m[19]=a,m[20]=d,m[21]=b,m[22]=O,m[23]=h):h=m[23],m[24]!==g?(p=(0,eB.Y)(bm,{children:g}),m[24]=g,m[25]=p):p=m[25],m[26]!==c||m[27]!==h||m[28]!==p||m[29]!==b?(f=(0,eB.Y)("div",{"data-slot":"conversation-scroll-button-anchor",className:s,children:(0,eB.FD)(bC,{ids:c,"data-testid":b,children:[h,p]})}),m[26]=c,m[27]=h,m[28]=p,m[29]=b,m[30]=f):f=m[30],f)},"ConversationScrollButton");FX.displayName="ConversationScrollButton";let FK="u">typeof navigator&&void 0!==navigator.clipboard&&"function"==typeof navigator.clipboard.writeText;async function FJ(e){if(FK)try{await navigator.clipboard.writeText(e);return}catch{}!function(e){let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-9999px",t.setAttribute("aria-hidden","true"),t.tabIndex=-1,t.readOnly=!0,document.body.appendChild(t),t.select();try{return document.execCommand("copy")}catch{return!1}finally{document.body.removeChild(t)}}(e)}let F1=(0,c0.createContext)(null),F2=F1.Provider;function F0(){let e=(0,c0.useContext)(F1);if(!e)throw Error("useCopyable must be used within a <Copyable> component");return e}let F3=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(29),{text:h,tooltip:p,onCopied:f,resetDelay:m,children:g}=e,C=void 0===m?2e3:m,{copied:v,copy:y}=function(e){let t,r,n=(0,ej.c)(5),i=void 0===e?2e3:e,[a,l]=(0,c0.useState)(!1),o=(0,c0.useRef)(void 0);n[0]!==i?(t=e=>{FJ(e),l(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>l(!1),i)},n[0]=i,n[1]=t):t=n[1];let s=t;return n[2]!==a||n[3]!==s?(r={copied:a,copy:s},n[2]=a,n[3]=s,n[4]=r):r=n[4],r}(C),[b,x]=(0,c0.useState)(!1),[O,w]=(0,c0.useState)(!1),S=(0,c0.useRef)(void 0),E=b||O;u[0]!==y||u[1]!==f||u[2]!==C||u[3]!==h||u[4]!==p?(t=e=>{y("function"==typeof h?h():h),f?.(),p&&(w(!0),clearTimeout(S.current),S.current=setTimeout(()=>{w(!1)},C))},u[0]=y,u[1]=f,u[2]=C,u[3]=h,u[4]=p,u[5]=t):t=u[5];let k=t;u[6]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{x(e)},u[6]=r):r=u[6];let P=r;u[7]!==O?(n=()=>{if(!O)return;let e=!1,t=()=>{w(!1),clearTimeout(S.current)},r=requestAnimationFrame(()=>{document.addEventListener("pointerdown",t),e=!0});return()=>{cancelAnimationFrame(r),e&&document.removeEventListener("pointerdown",t)}},i=[O],u[7]=O,u[8]=n,u[9]=i):(n=u[8],i=u[9]),(0,c0.useEffect)(n,i);let D="string"==typeof p?p:"object"==typeof p?p.idle:"Click to copy",A="object"==typeof p?p.copied:"Copied";u[10]!==v?(a={copied:v},u[10]=v,u[11]=a):a=u[11];let T=a;u[12]!==g||u[13]!==k?(l=(0,eB.Y)(Ew.DX,{onClick:k,children:g}),u[12]=g,u[13]=k,u[14]=l):l=u[14];let M=l;if(!p){let e;return u[15]!==T||u[16]!==M?(e=(0,eB.Y)(F2,{value:T,children:M}),u[15]=T,u[16]=M,u[17]=e):e=u[17],e}u[18]!==M?(o=(0,eB.Y)(bo,{asChild:!0,children:M}),u[18]=M,u[19]=o):o=u[19];let L=v?A:D;return u[20]!==L?(s=(0,eB.Y)(bm,{children:L}),u[20]=L,u[21]=s):s=u[21],u[22]!==s||u[23]!==o||u[24]!==E?(c=(0,eB.FD)(bC,{open:E,onOpenChange:P,closeOnPointerDown:!1,children:[o,s]}),u[22]=s,u[23]=o,u[24]=E,u[25]=c):c=u[25],u[26]!==T||u[27]!==c?(d=(0,eB.Y)(F2,{value:T,children:c}),u[26]=T,u[27]=c,u[28]=d):d=u[28],d},"Copyable");F3.displayName="Copyable";let F5=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),{copied:n}=F0();return r[0]!==n||r[1]!==e?(t=n?(0,eB.Y)(t4,{...e}):(0,eB.Y)(rX,{...e}),r[0]=n,r[1]=e,r[2]=t):t=r[2],t},"CopyableIcon");F5.displayName="CopyableIcon";let F4=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(14),{idle:l,copied:o,className:s}=e,c=void 0===o?"Copied":o,{copied:d}=F0();a[0]!==s?(t=(0,m2.cn)("inline-grid [&>*]:col-start-1 [&>*]:row-start-1",s),a[0]=s,a[1]=t):t=a[1];let u=d||void 0,h=d?"invisible":void 0;a[2]!==l||a[3]!==u||a[4]!==h?(r=(0,eB.Y)("span",{"aria-hidden":u,className:h,children:l}),a[2]=l,a[3]=u,a[4]=h,a[5]=r):r=a[5];let p=!d||void 0,f=d?void 0:"invisible";return a[6]!==c||a[7]!==p||a[8]!==f?(n=(0,eB.Y)("span",{"aria-hidden":p,className:f,children:c}),a[6]=c,a[7]=p,a[8]=f,a[9]=n):n=a[9],a[10]!==t||a[11]!==r||a[12]!==n?(i=(0,eB.FD)("span",{"data-slot":"copyable-label",className:t,children:[r,n]}),a[10]=t,a[11]=r,a[12]=n,a[13]=i):i=a[13],i},"CopyableLabel");F4.displayName="CopyableLabel";let F7=(0,c0.createContext)(null);function F9(){let e=(0,c0.useContext)(F7);if(!e)throw Error("useCountryContext must be used within a Country component");return e}let F6={AF:{name:"Afghanistan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M144.7%200h222.6l37%20257.7-37%20254.3H144.7l-42.4-255.2z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M367.3%200H512v512H367.3z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h144.7v512H0z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22M256%20167a89%2089%200%201%200%200%20178%2089%2089%200%200%200%200-178zm0%20144.7a55.7%2055.7%200%201%201%200-111.4%2055.7%2055.7%200%200%201%200%20111.4z%22%2F%3E%3Cpath%20d%3D%22M256%20222.6c-12.3%200-22.3%2010-22.3%2022.3v33.4h44.6v-33.4c0-12.3-10-22.3-22.3-22.3z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},AX:{name:"Åland Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h100.2l68.3%2040.7L233.7%200H512v189.2l-45.5%2066%2045.5%2068.6V512H233.7l-65.8-39.2-67.7%2039.2H0V322.8l45.6-67.5L0%20189.2z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M100.2%200v189.2H0v33.4l23%2034-23%2032.8v33.4h100.2V512h33.4l33.9-22.6%2032.8%2022.6h33.4V323.8H512v-34.4l-24.2-32.2%2024.2-34.6v-33.4H233.7V0h-33.4l-32.6%2020-34.1-20z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M133.6%200v222.6H0v66.8h133.6V512h66.7V289.4H512v-66.8H200.3V0h-66.7z%22%2F%3E%3C%2Fsvg%3E"},AL:{name:"Albania",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M400.7%20190H308a33.3%2033.3%200%200%200-24.2-56.4%2033.3%2033.3%200%200%200-27.8%2014.9%2033.4%2033.4%200%201%200-52%2041.5h-92.7a45.8%2045.8%200%200%200%2046%2044.5h-1.5c0%2024.6%2020%2044.6%2044.5%2044.6%200%208%202.1%2015.4%205.8%2021.8l-37%2037%2028.4%2028.3%2040.2-40.2a30.5%2030.5%200%200%200%204.9%201.4l-24.3%2054.8L256%20423l37.7-40.8-24.3-54.8a30.4%2030.4%200%200%200%204.9-1.4l40.2%2040.2%2028.3-28.3-37-37a44.2%2044.2%200%200%200%205.9-21.8c24.5%200%2044.5-20%2044.5-44.6h-1.5c24.6%200%2046-19.9%2046-44.5z%22%2F%3E%3C%2Fsvg%3E"},DZ:{name:"Algeria",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h256l45.3%20251.8L256%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M256%200h256v512H256z%22%2F%3E%3Cg%20fill%3D%22%23d80027%22%3E%3Cpath%20d%3D%22m311%20206.9-21%2029-34-11%2021%2028.8-21%2029%2034-11.1%2021%2029v-35.8l34-11.1-34-11z%22%2F%3E%3Cpath%20d%3D%22M277.2%20328.3a72.3%2072.3%200%201%201%2034.5-136%2089%2089%200%201%200%200%20127.3%2072%2072%200%200%201-34.5%208.7z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},AS:{name:"American Samoa",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M512%2020.4V490L23.8%20255.8z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M445.2%20246.5h-30.5c8-9.6%207.5-23.7-1.5-32.7a24.2%2024.2%200%200%200%200-34.2l-.5.5a25%2025%200%200%200%20.5-34.8l-137%20137a23.9%2023.9%200%200%200%2034%200l2.6-2.5%2065.6-6v28.3h22.3v-30.2l33.4-3z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M278.3%20311.7%20256%20300.5l22.3-11.1H423v22.3z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200v512h512L28.7%20256.2%20512%200z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%200%200%20256l512%20256v-22L43.8%20256%20512%2020.4z%22%2F%3E%3C%2Fsvg%3E"},AD:{name:"Andorra",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h144.7l36%20254.6-36%20257.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M367.3%200H512v512H367.3l-29.7-257.3z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M144.7%200h222.6v512H144.7z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%20354.5V256h66.8v47.3zm-66.8-165.3H256V256h-66.8z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M289.4%20167a22.3%2022.3%200%200%200-33.4-19.3%2022.1%2022.1%200%200%200-11.1-3c-12.3%200-22.3%2010-22.3%2022.3H167v111.3c0%2041.4%2032.9%2065.4%2058.7%2077.8a22.1%2022.1%200%200%200-3%2011.2%2022.3%2022.3%200%200%200%2033.3%2019.3%2022.1%2022.1%200%200%200%2011.1%203%2022.3%2022.3%200%200%200%2019.2-33.5c25.8-12.4%2058.7-36.4%2058.7-77.8V167zm22.3%20111.3c0%205.8%200%2023.4-27.5%2040.9a136.5%20136.5%200%200%201-28.2%2013.3c-7-2.4-17.8-6.7-28.2-13.3-27.5-17.5-27.5-35.1-27.5-41v-77.9h111.4z%22%2F%3E%3C%2Fsvg%3E"},AO:{name:"Angola",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v256l-253%2036.6L0%20256z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20256h512v256H0z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22m220.9%20203.6%2021.7%2015.8-8.3%2025.5L256%20229l21.7%2015.7-8.3-25.5%2021.7-15.7h-26.8L256%20178l-8.3%2025.5z%22%2F%3E%3Cpath%20d%3D%22M320%20145.1a127.2%20127.2%200%200%200-64-17v33.3a94%2094%200%200%201%2047.3%2012.7%2094.7%2094.7%200%200%201-94.6%20163.8%2094%2094%200%200%201-31.6-29.8l-27.9%2018.4a128.1%20128.1%200%200%200%20217.7-6.5A128.1%20128.1%200%200%200%20320%20145.1z%22%2F%3E%3Cpath%20d%3D%22M182.2%20233.7a33.4%2033.4%200%200%200%2013.3%2045.4l108.4%2059.2c-7.4%2013.5-3.4%2030%2010%2037.3l29.3%2016a27.8%2027.8%200%200%200%2037.8-11l16-29.3z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},AI:{name:"Anguilla",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M445.2%20256.1zm-155.8%200z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M433%20293.6a62.4%2062.4%200%200%200%2012.2-37.5V144.8a55.4%2055.4%200%200%201-33.4%2011.1%2055.6%2055.6%200%200%201-44.5-22.2%2055.6%2055.6%200%200%201-44.5%2022.2%2055.4%2055.4%200%200%201-33.4-11.1v111.3c0%2015%205%2027.3%2012.3%2037.5h131.2z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M409.8%20235.5a91%2091%200%200%200%206.3-27.6c0-10.1-13.2-18.3-13.2-18.3s-13.2%208.2-13.2%2018.3a91%2091%200%200%200%206.3%2027.6l-7.6%2017.1a38.3%2038.3%200%200%200%2029%200zm-51.5-55.6a91%2091%200%200%200-27%208.3c-8.8%205-9.3%2020.5-9.3%2020.5s13.7%207.4%2022.4%202.3c5.5-3.1%2015-11.8%2020.8-19.2l18.6-2a38.4%2038.4%200%200%200-4.7-14%2038.4%2038.4%200%200%200-9.7-11.1zm-22.4%2072.2a91%2091%200%200%200%2020.7%2019.3c8.8%205%2022.5-2.3%2022.5-2.3s-.6-15.5-9.3-20.5a91%2091%200%200%200-27-8.4l-11.1-15.1a38.4%2038.4%200%200%200-9.7%2011%2038.4%2038.4%200%200%200-4.8%2014z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M299%20289.5c20.7%2033.3%2068.3%2044.5%2068.3%2044.5s47.6-11.2%2068.4-44.5H298.9Z%22%2F%3E%3C%2Fsvg%3E"},AG:{name:"Antigua and Barbuda",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20.4h512l-34%20229H36z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m367.3%20205.3-109.7%2019.4-112.9-19.4%2045.5-21.3-24.2-44%2049.3%209.4%206.3-49.9%2034.4%2036.7%2034.4-36.6%206.3%2050L346%20140l-24.2%2044z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M25.6%20205.3h466.8L257%20439.5z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M34%20307.4h446L256%20511.6z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22m0%20511.6%20256%20.4L0%20.4zm256%20.4%20256-.4V0z%22%2F%3E%3C%2Fsvg%3E"},AR:{name:"Argentina",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v144.7L488%20256l24%20111.3V512H0V367.3L26%20256%200%20144.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20144.7h512v222.6H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m332.4%20256-31.2%2014.7%2016.7%2030.3-34-6.5-4.2%2034.3-23.7-25.2-23.6%2025.2-4.3-34.3-34%206.5%2016.6-30.3-31.2-14.7%2031.3-14.7L194%20211l34%206.5%204.3-34.3%2023.6%2025.2%2023.6-25.2%204.4%2034.3%2034-6.5-16.7%2030.3z%22%2F%3E%3C%2Fsvg%3E"},AM:{name:"Armenia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20166.9%20253-26.7L512%20167v178l-261.1%2026L0%20344.8z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v166.9H0z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M0%20344.9h512V512H0z%22%2F%3E%3C%2Fsvg%3E"},AW:{name:"Aruba",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20322.8%20253.6-18.4L512%20322.8v33.4l-258%2015.3L0%20356.2zm0%2066.8%20257.2-13.8L512%20389.6V423l-253%2016.9L0%20423z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v322.8H0zm0%20356.2h512v33.4H0zM0%20423h512v89H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m117.3%20161.5-50-22.1%2050-22%2022-50.1%2022.2%2050%2050%2022-50%2022.2-22.1%2050z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m139.4%2094.9%2013.6%2030.9%2031%2013.6-31%2013.6-13.6%2031-13.6-31-31-13.6%2031-13.6z%22%2F%3E%3C%2Fsvg%3E"},AU:{name:"Australia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m400%20256%205%2017h18l-14%2010%205%2017-14-10-15%2010%206-17-15-10h18zm40-78%207%2015%2016-4-7%2015%2013%2010-16%203v17l-13-10-12%2010v-17l-16-3%2013-10-7-15%2015%204zm-57-67%207%2015%2016-4-7%2015%2013%2010-16%204v16l-13-10-12%2010v-16l-16-4%2012-10-7-15%2016%204zm-65%2089%207%2015%2016-4-7%2015%2012%2010-15%204v16l-13-10-13%2010v-16l-16-4%2013-10-7-15%2016%204zm65%20156%207%2015%2016-4-7%2015%2013%2010-16%203v17l-13-10-12%2010v-17l-16-3%2012-10-7-15%2016%204zm-229-56%2014%2030%2032-8-14%2030%2026%2020-32%207v33l-26-21-25%2021v-33l-32-7%2026-20-14-30%2031%208z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0H32zm96%20128%20128%20128v-31l-97-97h-31z%22%2F%3E%3C%2Fsvg%3E"},AT:{name:"Austria",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167l-23.2%2089.7L512%20345v167H0V345l29.4-89L0%20167z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20167h512v178H0z%22%2F%3E%3C%2Fsvg%3E"},AZ:{name:"Azerbaijan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20166.9%20253-31.8%20259%2031.8v178l-257.5%2037.4L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v166.9H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20344.9h512V512H0z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22M261.6%20328.2a72.3%2072.3%200%201%201%2034.4-136%2089%2089%200%201%200%200%20127.3%2072%2072%200%200%201-34.4%208.7z%22%2F%3E%3Cpath%20d%3D%22m317.2%20206%209.6%2026.8%2025.8-12.3-12.2%2025.8%2026.9%209.6-27%209.6%2012.3%2025.8-25.8-12.3-9.6%2027-9.6-27-25.8%2012.3%2012.3-25.8-27-9.6%2027-9.6-12.3-25.8%2025.8%2012.3z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},BS:{name:"Bahamas",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v167l-37.4%2089%2037.4%2089v167H0l49.6-252z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M108.3%20167H512v178H108.3z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200v512l256-256L0%200z%22%2F%3E%3C%2Fsvg%3E"},BH:{name:"Bahrain",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h182.5l88.1%20268.5-88%20243.5H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m182.5%200-82.3%2042.7%2082.3%2042.7-82.3%2042.6%2082.3%2042.7-82.3%2042.7%2082.3%2042.6-82.3%2042.7%2082.3%2042.7-82.3%2042.6%2082.3%2042.7-82.3%2042.7%2082.3%2042.6H512V0H182.5z%22%2F%3E%3C%2Fsvg%3E"},BD:{name:"Bangladesh",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Ccircle%20cx%3D%22200.3%22%20cy%3D%22256%22%20r%3D%22111.3%22%20fill%3D%22%23d80027%22%2F%3E%3C%2Fsvg%3E"},BB:{name:"Barbados",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h144.8l112.9%2036.7L367.4%200H512v512H367.4l-108.9-38.1L144.8%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M144.8%200h222.6v512H144.8z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m334.1%20155.8%2014.8%207.5-14.9-7.5-15-7.4c-.8%201.8-20.3%2041.4-23.5%20102h-22.7v-94.6l-16.7-22.2-16.7%2022.2v94.6h-22.7a278.3%20278.3%200%200%200-23.6-102l-29.8%2014.9c.2.4%2020.5%2041.7%2020.5%20103.8v16.7h55.6v94.6h33.4v-94.6h55.6v-16.7c0-32%205.6-58.6%2010.3-75.1%205-18%2010.2-28.6%2010.3-28.7l-15-7.5z%22%2F%3E%3C%2Fsvg%3E"},BY:{name:"Belarus",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h155.8l35%20254.6-35%20257.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M155.8%200H512v345.1l-183%2037.4-173.2-37.4z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M155.8%20345.1H512V512H155.8z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M50%20.2%2022.3%2050l27.8%2050.4L77.9%2050zm55.8%200L78%2050l27.7%2050.4%2028-50.4zM50%20137.5l-27.7%2049.6%2027.8%2050.5%2027.7-50.5zm55.8%200L78%20187.1l27.7%2050.5%2028-50.5zM50%20274.7l-27.7%2049.7%2027.8%2050.4%2027.8-50.4zm55.8%200L78%20324.4l27.7%2050.4%2028-50.4zM50%20412l-27.7%2049.6%2027.8%2050.5%2027.7-50.5zm55.8%200L78%20461.6l27.7%2050.5%2028-50.5z%22%2F%3E%3C%2Fsvg%3E"},BE:{name:"Belgium",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h167l38.2%20252.6L167%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M345%200h167v512H345l-36.7-256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M167%200h178v512H167z%22%2F%3E%3C%2Fsvg%3E"},BZ:{name:"Belize",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%2044.5%20257.8-23.7L512%2044.5v423l-252.5%2026L0%20467.5z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22122.4%22%20fill%3D%22%23eee%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22100.2%22%20fill%3D%22%236da544%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2266.8%22%20fill%3D%22%23eee%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%20239.3%20219.8%20256v27.8l36.2%2022.3%2036.2-22.3V256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M219.8%20222.6h72.4V256h-72.4z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h512v44.5H0zm0%20467.5h512V512H0z%22%2F%3E%3C%2Fsvg%3E"},BJ:{name:"Benin",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h189.2l54%20257.6-54%20254.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M189.2%200H512v256l-159%2053.5L189.1%20256z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M189.2%20256H512v256H189.2z%22%2F%3E%3C%2Fsvg%3E"},BM:{name:"Bermuda",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%200h256v512H0V256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h33.4l31.8%2016.4%2035-16.4H256v133.6l-9.3%2033.7%209.3%2041.5V256h-47.2l-39.3-7-35.9%207.1L0%20256V100.2l15.4-34.5L0%2033.4z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M445.2%20256.1zm-155.8%200z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m267%20235.5-102-102h-31.4L267%20267z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M33.4%200v33.4H0v66.8h33.4v170.6h66.8V100.2h170.2V33.4H100.2V0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M180.8%20133.6H256v75.2zm-47.2%2047.2v75.3l75.2-.1z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M289.4%20133.6V256c0%2059.6%20155.8%2059.6%20155.8%200V133.6z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M289.4%20256c0%2059.6%2077.9%2078%2077.9%2078s78-18.4%2078-78h-156z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22m367.3%20207-36.2%2015.6V256l36.2%2022.3%2036.2-22.3v-33.4z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M331.1%20189.2h72.4v33.4H331z%22%2F%3E%3C%2Fsvg%3E"},BT:{name:"Bhutan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512L281%20293.2%200%20512z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M506.7%200%200%20506.7v5.3h512V0h-5.3z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M398.2%20142V97.7h-85.3l-6.5%206.5c-23.2%2023.2-19.3%2050.2-16.5%2070%202.7%2018.3%203%2025.3-3.8%2032-6.8%207-14%206.6-32.2%204-19.7-3-46.8-6.8-70%2016.4-23.2%2023.2-19.3%2050.3-16.4%2070%202.6%2018.3%203%2025.4-4%2032.2-6.7%206.8-13.7%206.5-32%203.8-7.2-1-14.5-2-22.4-2.2l-.5%2044.6c5%200%2010.6.8%2016.5%201.7%207%201%2015%202.2%2023.5%202.2%208.7%200%2018-1.3%2027-5.2v35.6h66.8v-33.4H209v-22.2h22.3v-33.4h-18c.9-10.8-.6-21.2-2-30-2.5-18.4-3-25.4%204-32.2%206.8-6.8%2013.8-6.5%2032.2-3.8%2014.3%202%2032.6%204.7%2050.4-3v35.6h66.8v-33.4h-33.3V231h22.3v-33.4h-17.8a130%20130%200%200%200-2-30c-1.8-12.8-2.5-20-.4-25.6z%22%2F%3E%3C%2Fsvg%3E"},BO:{name:"Bolivia (Plurinational State of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20167%20252.9-29.3L512%20167v178l-255.7%2025.7L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},BQ:{name:"Bonaire, Sint Eustatius and Saba",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M113.7%20119.8%20276%200h236v31.7L306%20289.5%2031.6%20512H0V276z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200v276L276%200H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M512%2031.7%2031.7%20512H512V31.7z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m255%20245.7%2022.1-12-22-12a78%2078%200%200%200-65-65l-12-22-12%2022a78%2078%200%200%200-65%2065l-22%2012%2022%2012a78%2078%200%200%200%2065%2065l12%2022.1%2012-22a78%2078%200%200%200%2065-65zm-77%2032.6a44.5%2044.5%200%201%201%200-89%2044.5%2044.5%200%200%201%200%2089z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m178%20200.3%209.7%2016.7H207l-9.6%2016.7%209.6%2016.7h-19.3l-9.6%2016.7-9.7-16.7h-19.2l9.6-16.7-9.6-16.7h19.2z%22%2F%3E%3C%2Fsvg%3E"},BA:{name:"Bosnia and Herzegovina",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h445.3l33.9%20255-33.9%20257-323.7-134.3L0%2066.8z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%2066.8V512h445.4z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M445.3%200H512v512h-66.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m354.6%20456-8.3%2025.6h-26.8l21.7%2015.8-8.3%2025.5%2021.7-15.8%2021.7%2015.8-8.3-25.5%2021.7-15.8h-26.8zm-55-55.4-8.3%2025.5h-26.8l21.7%2015.8-8.3%2025.5%2021.7-15.8%2021.7%2015.8-8.3-25.5%2021.7-15.8h-26.8zM244.4%20345l-8.3%2025.5h-26.8l21.7%2015.8-8.3%2025.5%2021.7-15.8%2021.7%2015.8-8.3-25.5%2021.7-15.8h-26.8zm-55.1-55.7-8.3%2025.5h-26.8l21.7%2015.8-8.3%2025.5%2021.7-15.8L211%20356l-8.3-25.5%2021.7-15.8h-26.8zm-55.4-55.7-8.3%2025.5H98.8l21.7%2015.8-8.3%2025.5%2021.7-15.8%2021.7%2015.8-8.3-25.5L169%20259h-26.8zM78.7%20178l-8.3%2025.5H43.6l21.7%2015.8-8.3%2025.5L78.7%20229l21.7%2015.8-8.3-25.5%2021.7-15.8H87zm-55.2-55.7-8.3%2025.5h-26.8l21.7%2015.8L1.8%20189l21.7-15.8L45.2%20189l-8.3-25.5%2021.7-15.8H31.8z%22%2F%3E%3C%2Fsvg%3E"},BW:{name:"Botswana",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v178l-31%2076.9%2031%2079.1v178H0V334l37-80.7L0%20178z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m0%20211.5%20256-19.2%20256%2019.2v89l-254.6%2020.7L0%20300.5z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20178h512v33.5H0zm0%20122.5h512V334H0z%22%2F%3E%3C%2Fsvg%3E"},BV:{name:"Bouvet Island",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h100.2l66.1%2053.5L233.7%200H512v189.3L466.3%20257l45.7%2065.8V512H233.7l-68-50.7-65.5%2050.7H0V322.8l51.4-68.5-51.4-65z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M100.2%200v189.3H0v33.4l24.6%2033L0%20289.5v33.4h100.2V512h33.4l30.6-26.3%2036.1%2026.3h33.4V322.8H512v-33.4l-24.6-33.7%2024.6-33v-33.4H233.7V0h-33.4l-33.8%2025.3L133.6%200z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M133.6%200v222.7H0v66.7h133.6V512h66.7V289.4H512v-66.7H200.3V0z%22%2F%3E%3C%2Fsvg%3E"},BR:{name:"Brazil",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20100.2%20467.5%20256%20256%20411.8%2044.5%20256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M174.2%20221a87%2087%200%200%200-7.2%2036.3l162%2049.8a88.5%2088.5%200%200%200%2014.4-34c-40.6-65.3-119.7-80.3-169.1-52z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M255.7%20167a89%2089%200%200%200-41.9%2010.6%2089%2089%200%200%200-39.6%2043.4%20181.7%20181.7%200%200%201%20169.1%2052.2%2089%2089%200%200%200-9-59.4%2089%2089%200%200%200-78.6-46.8zM212%20250.5a149%20149%200%200%200-45%206.8%2089%2089%200%200%200%2010.5%2040.9%2089%2089%200%200%200%20120.6%2036.2%2089%2089%200%200%200%2030.7-27.3A151%20151%200%200%200%20212%20250.5z%22%2F%3E%3C%2Fsvg%3E"},IO:{name:"British Indian Ocean Territory",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h32l32%2032L96%200h160l12%208%2013-8h36l24%208%2025-8h36l25%208%2024-8h36l25%2022v34l-8%2017%208%2017v35l-8%2017%208%2017v34l-8%2017%208%2017v35l-8%2017%208%2017v34l-8%2017%208%2018v34l-8%2017%208%2017v35l-8%2017%208%2017v10h-22l-21-8-20%208h-44l-21-8-21%208h-44l-20-8-21%208h-44l-21-8-20%208h-44l-21-8-21%208H64l-21-8-21%208H0v-10l8-17-8-17v-35l8-17-8-17v-34l8-18-8-17v-34l8-17-8-17V96l32-32L0%2032Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200v22c21%200%2021%2019%2043%2019%2021%200%2021-19%2042-19%2022%200%2022%2019%2043%2019s21-19%2043-19c21%200%2021%2019%2042%2019%2022%200%2022-19%2043-19V0h-25c-4%204-9%207-18%207-8%200-13-3-18-7h-49c-4%204-9%207-18%207-8%200-14-3-18-7h-49c-5%204-10%207-18%207-9%200-14-3-18-7h-25zm0%2056v34c21%200%2021%2020%2043%2020%2021%200%2021-20%2042-20%2022%200%2022%2020%2043%2020s21-20%2043-20c21%200%2021%2020%2042%2020%2022%200%2022-20%2043-20V56c-21%200-21%2019-43%2019-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19zm0%2069v3h-83l83%2083v16c21%200%2021%2020%2043%2020%2021%200%2021-20%2042-20%2022%200%2022%2020%2043%2020s21-20%2043-20c21%200%2021%2020%2042%2020%2022%200%2022-20%2043-20v-34c-21%200-21%2020-43%2020-21%200-21-20-42-20-22%200-22%2020-43%2020s-21-20-43-20c-21%200-21%2020-42%2020-22%200-22-20-43-20v-34c21%200%2021%2019%2043%2019%2021%200%2021-19%2042-19%2022%200%2022%2019%2043%2019s21-19%2043-19c21%200%2021%2019%2042%2019%2022%200%2022-19%2043-19v-34c-21%200-21%2019-43%2019-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19zm-128%2048v83h83l-83-83zM0%20262v34c21%200%2021%2020%2043%2020%2021%200%2021-20%2042-20%2022%200%2022%2020%2043%2020s21-20%2043-20c21%200%2021%2020%2042%2020%2022%200%2022-20%2043-20s21%2020%2043%2020c21%200%2021-20%2042-20%2022%200%2022%2020%2043%2020s21-20%2043-20c21%200%2021%2020%2042%2020%2022%200%2022-20%2043-20v-34c-21%200-21%2019-43%2019-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19s-21%2019-43%2019c-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19zm0%2068v35c21%200%2021%2019%2043%2019%2021%200%2021-19%2042-19%2022%200%2022%2019%2043%2019s21-19%2043-19c21%200%2021%2019%2042%2019%2022%200%2022-19%2043-19s21%2019%2043%2019c21%200%2021-19%2042-19%2022%200%2022%2019%2043%2019s21-19%2043-19c21%200%2021%2019%2042%2019%2022%200%2022-19%2043-19v-35c-21%200-21%2020-43%2020-21%200-21-20-42-20-22%200-22%2020-43%2020s-21-20-43-20c-21%200-21%2020-42%2020-22%200-22-20-43-20s-21%2020-43%2020c-21%200-21-20-42-20-22%200-22%2020-43%2020s-21-20-43-20c-21%200-21%2020-42%2020-22%200-22-20-43-20zm0%2069v34c21%200%2021%2020%2043%2020%2021%200%2021-20%2042-20%2022%200%2022%2020%2043%2020s21-20%2043-20c21%200%2021%2020%2042%2020%2022%200%2022-20%2043-20s21%2020%2043%2020c21%200%2021-20%2042-20%2022%200%2022%2020%2043%2020s21-20%2043-20c21%200%2021%2020%2042%2020%2022%200%2022-20%2043-20v-34c-21%200-21%2019-43%2019-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19s-21%2019-43%2019c-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19zm0%2069v34c11%200%2016%205%2022%2010h42c5-5%2010-10%2021-10s17%205%2022%2010h42c5-5%2011-10%2022-10s16%205%2022%2010h41c6-5%2011-10%2022-10s16%205%2022%2010h42c5-5%2010-10%2021-10s17%205%2022%2010h42c5-5%2011-10%2022-10s16%205%2022%2010h41c6-5%2011-10%2022-10v-34c-21%200-21%2019-43%2019-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19s-21%2019-43%2019c-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M334%20134h100l-50%2050z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M373%20173h22v50l-11%208-11-8Zm0%20161h22v61h-22z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M451%20301a34%2034%200%200%200-56-25v-20h11v-22h-11v-11h-22v11h-11v22h11v20a34%2034%200%200%200-47%203%2033%2033%200%200%200%202%2046v20h112v-20c7-6%2011-14%2011-24z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M351%20289c-3%200-6%202-8%204-4%204-4%2012%200%2016l8%206v8h65v-8l8-6c4-4%204-12%200-16s-10-5-15-1l-15%2014h-21l-15-14a11%2011%200%200%200-7-3z%22%2F%3E%3C%2Fsvg%3E"},BN:{name:"Brunei Darussalam",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512v326.7l-19.3%2076.5%2019.3%2077.7V512H0V185.2l21.4-76.5L0%2031z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%2031v117.2l512%20295.7V326.7L0%2031z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20108.2v77L512%20481v-77L0%20108.2z%22%2F%3E%3Cg%20fill%3D%22%23d80027%22%3E%3Cpath%20d%3D%22M328.3%20228.2a72.3%2072.3%200%201%201-136-34.4%2089%2089%200%201%200%20127.3%200%2072%2072%200%200%201%208.7%2034.4z%22%2F%3E%3Cpath%20d%3D%22M239.3%20144.7h33.4v167h-33.4z%22%2F%3E%3Cpath%20d%3D%22M311.6%20178H200.4c0%207.8%206.6%2014%2014.3%2014h-.4a14%2014%200%200%200%2013.9%2014%2014%2014%200%200%200%2013.9%2013.8h27.8a14%2014%200%200%200%2014-13.9%2014%2014%200%200%200%2013.8-13.9h-.4c7.6%200%2014.3-6.2%2014.3-13.9zM178.1%20322.9h155.8v33.4H178.1z%22%2F%3E%3Cpath%20d%3D%22M289.4%20333.9h66.8v33.4h-66.8zm-133.6%200h66.8v33.4h-66.8z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},BG:{name:"Bulgaria",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22m0%20166.9%20258-31.7%20254%2031.7v178l-251.4%2041.3L0%20344.9z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v166.9H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20344.9h512V512H0z%22%2F%3E%3C%2Fsvg%3E"},BF:{name:"Burkina Faso",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v256l-255.2%2048L0%20256z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20256h512v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%20167%2019.3%2059.5H338l-50.6%2036.8%2019.3%2059.5L256%20286l-50.6%2036.8%2019.3-59.5-50.6-36.8h62.6z%22%2F%3E%3C%2Fsvg%3E"},BI:{name:"Burundi",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h47.2l207.5%2030L464.8%200H512v47.2L477.4%20256%20512%20464.8V512h-47.2l-209.1-35.8L47.2%20512H0v-47.2l32.8-202.7L0%2047.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M47.2%200%20256%20208.8%20464.8%200H47.2zM256%20303.2%2047.2%20512h417.6L256%20303.2z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%2047.2v417.6L208.8%20256%200%2047.2zm512%200L303.2%20256%20512%20464.8V47.2z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22111.3%22%20fill%3D%22%23eee%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m256%20178%209.6%2016.8H285l-9.6%2016.7%209.6%2016.7h-19.3l-9.6%2016.7-9.6-16.7H227l9.6-16.7-9.6-16.7h19.3zm-49%2078%209.6%2016.7H236l-9.6%2016.7%209.6%2016.7h-19.3l-9.6%2016.7-9.6-16.7H178l9.6-16.7-9.6-16.7h19.3zm98%200%209.6%2016.7H334l-9.6%2016.7%209.6%2016.7h-19.3l-9.6%2016.7-9.6-16.7H276l9.6-16.7-9.6-16.7h19.3z%22%2F%3E%3C%2Fsvg%3E"},CV:{name:"Cabo Verde",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v256.2l-41.9%2064.3%2041.9%2063.7V512H0V384.2L41.3%20320%200%20256.2z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20256.2h512v42.9l-15.7%2021.6%2015.7%2021v42.5H0v-42.5l15.1-21.5L0%20299z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20299.1h512v42.6H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m182.8%20190.4%205.2%2016.4h17.1l-13.8%2010%205.3%2016.3-13.8-10-14%2010%205.4-16.3-13.9-10h17.1zm0%20213.3L188%20420h17.1l-13.8%2010%205.3%2016.2-13.8-10-14%2010L174%20430l-14-10h17.2zm-99.2-72.1%205.2%2016.2h17.1L92.1%20358l5.2%2016.2-13.7-10-14%2010L75%20358l-14-10.1h17.2zm37.9-119.8%205%2016h17.2l-13.8%2010.3%205.2%2016.2-13.7-10-14%2010%205.4-16.3-14-10.1H116zm-60.4%2067h17l5.5-16.2%205.2%2016.2h17.1L92.1%20289l5.2%2016.4L83.6%20295l-14%2010.3%205.4-16.4zm46.5%20143%205.3-16.2L99%20395.4h17.1l5.4-16.2%205.2%2016.3h17.1L130%20405.6l5.3%2016.2-13.8-10zM282%20331.6l-5.4%2016.2h-17l13.8%2010.2-5.3%2016.2%2013.9-10%2013.8%2010-5.2-16.3%2013.7-10.1h-17zm-38-119.8-5.3%2016.2h-17.1l14%2010.2-5.4%2016.2%2013.9-10%2013.8%2010-5.3-16.3%2013.8-10.1h-17zm60.3%2067h-17l-5.3-16.2-5.4%2016.2h-17l13.8%2010.1-5.3%2016.4L282%20295l13.8%2010.3-5.2-16.4zm-46.4%20143-5.3-16.2%2013.8-10.2h-17l-5.3-16.2-5.4%2016.3h-17.1l14%2010.1-5.4%2016.2%2013.9-10z%22%2F%3E%3C%2Fsvg%3E"},KH:{name:"Cambodia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v133.7l-39%20121.6%2039%20123.2V512H0V378.5L34.2%20255%200%20133.7z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20133.7h512v244.8H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M345%20306.1v-33.3h-22.2v-44.5L300.5%20206l-22.2%2022.3v-44.5L256%20161.5l-22.3%2022.3v44.5L211.5%20206l-22.3%2022.3v44.5H167v33.4h-22.3v33.4h222.6v-33.5z%22%2F%3E%3C%2Fsvg%3E"},CM:{name:"Cameroon",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M144.8%200h222.4l32%20260-32%20252H144.8l-32.1-256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256.1%20167%2022.1%2068h71.5L292%20277l22%2068-57.8-42-57.9%2042%2022.1-68-57.8-42H234z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h144.8v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M367.2%200H512v512H367.2z%22%2F%3E%3C%2Fsvg%3E"},CA:{name:"Canada",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v512h144l112-64%20112%2064h144V0H368L256%2064%20144%200Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M144%200h224v512H144Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m301%20289%2044-22-22-11v-22l-45%2022%2023-44h-23l-22-34-22%2033h-23l23%2045-45-22v22l-22%2011%2045%2022-12%2023h45v33h22v-33h45z%22%2F%3E%3C%2Fsvg%3E"},KY:{name:"Cayman Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Ccircle%20cx%3D%22367.3%22%20cy%3D%22144.7%22%20r%3D%2244.5%22%20fill%3D%22%236da544%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M289.4%20133.5h155.8l.1%2029-76.9%2079.7-79.1-79.7z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M445.2%20256zm-155.8%200z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M289.4%20300.5V345h23.4a77.6%2077.6%200%200%200%20109%200h23.4v-44.5z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M289.3%20193.7v31.2l8%2016.6-7.9%2014.5c.1%2059.6%2077.9%2078%2077.9%2078s78-18.4%2078-78l-7.7-13.2%207.7-18v-31.1l-78-10.2z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M367.3%20224.9c-19.5%200-19.5%2017.8-39%2017.8s-19.4-17.8-39-17.8V256c19.7%200%2019.6%2017.8%2039%2017.8s19.5-17.8%2039-17.8%2019.5%2017.8%2039%2017.8%2019.4-17.8%2039-17.8v-31.2c-19.6%200-19.6%2017.8-39%2017.8-19.5%200-19.5-17.8-39-17.8zm0-62.4c-19.5%200-19.5%2017.8-39%2017.8s-19.4-17.8-39-17.8v31.2c19.7%200%2019.6%2017.8%2039%2017.8s19.5-17.8%2039-17.8%2019.5%2017.8%2039%2017.8%2019.4-17.8%2039-17.8v-31.2c-19.6%200-19.6%2017.8-39%2017.8-19.5%200-19.5-17.8-39-17.8z%22%2F%3E%3C%2Fsvg%3E"},CF:{name:"Central African Republic",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20378.4%20252.9-28.8L512%20378.4V512H322.8L256%20481l-66.8%2031H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%20256%20249.8-28L512%20256v122.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20133.6%20255.3-28.3L512%20133.6V256H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h189.2L256%2030l66.8-30H512v133.6H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m137.7%2055.7%206.9%2021.2H167L148.9%2090l6.9%2021.3-18.1-13.1-18%2013.1%206.8-21.3-18-13h22.3z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M189.2%200h133.6v512H189.2z%22%2F%3E%3C%2Fsvg%3E"},TD:{name:"Chad",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M167%200h178l25.9%20252.3L345%20512H167l-29.8-253.4z%22%2F%3E%3Cpath%20fill%3D%22%23026%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},CL:{name:"Chile",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20256%20254.5-51.3L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h256l52.7%20132.8L256%20256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M256%200h256v256H256zM152.4%2089l16.6%2051h53.6l-43.4%2031.6%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51L82.2%20140h53.6z%22%2F%3E%3C%2Fsvg%3E"},CN:{name:"China",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m140.1%20155.8%2022.1%2068h71.5l-57.8%2042.1%2022.1%2068-57.9-42-57.9%2042%2022.2-68-57.9-42.1H118zm163.4%20240.7-16.9-20.8-25%209.7%2014.5-22.5-16.9-20.9%2025.9%206.9%2014.6-22.5%201.4%2026.8%2026%206.9-25.1%209.6zm33.6-61%208-25.6-21.9-15.5%2026.8-.4%207.9-25.6%208.7%2025.4%2026.8-.3-21.5%2016%208.6%2025.4-21.9-15.5zm45.3-147.6L370.6%20212l19.2%2018.7-26.5-3.8-11.8%2024-4.6-26.4-26.6-3.8%2023.8-12.5-4.6-26.5%2019.2%2018.7zm-78.2-73-2%2026.7%2024.9%2010.1-26.1%206.4-1.9%2026.8-14.1-22.8-26.1%206.4%2017.3-20.5-14.2-22.7%2024.9%2010.1z%22%2F%3E%3C%2Fsvg%3E"},CX:{name:"Christmas Island",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%200%20216.9%20301.6L512%20512V0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%200%20512%20512H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2266.8%22%20fill%3D%22%23ffda44%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m95.3%20367.3%207%2014.7%2016-3.7L111%20393l13%2010-16%203.6.1%2016.3-12.7-10.2L82.6%20423v-16.3L66.9%20403l12.6-10-7-14.7%2015.8%203.7zM49.3%20245l7.1%2014.7%2015.9-3.7-7.1%2014.6%2012.7%2010.2-15.9%203.5v16.3l-12.6-10.2-12.7%2010.2v-16.3l-15.9-3.5%2012.8-10.2-7.1-14.6%2015.8%203.7zm46-100.2%207%2014.7%2016-3.7-7.2%2014.7%2012.8%2010-16%203.7.1%2016.2-12.7-10.1-12.7%2010.1v-16.2l-15.8-3.6%2012.7-10.1-7-14.7%2015.8%203.7zm57.1%2078%207%2014.6%2015.9-3.7-7.1%2014.7%2012.7%2010.1-15.8%203.6v16.3L152.4%20268l-12.7%2010.2V262l-15.8-3.6%2012.7-10.1-7-14.7%2015.8%203.7zm-40.8%2066.7%205.5%2017H135L120.5%20317l5.6%2017-14.5-10.5L97%20333.9l5.6-17-14.5-10.5H106z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M256%20300.5h22.3s9.6-17%200-33.4l22.2-22.2-11.1-22.3h-11.1s-5.6%2016.7-27.9%2016.7-27.8-16.7-27.8-16.7h-11.1l11.1%2022.3-11.1%2022.2%2011.1%2011.2S233.7%20256%20256%20267c0%200%209.5%2014%200%2033.4z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M422.2%20140.2a44.7%2044.7%200%200%200-30-50.8%2083.1%2083.1%200%200%201%207.5%2049.9%2045.6%2045.6%200%200%200-10.4-11.6%2045.7%2045.7%200%200%200-53.7-2.4%2085.3%2085.3%200%200%201%2035%2016.7c8.3%206.6%2015%2015.5%2020.2%2024.1l-68%2021.3c66.8%2011.2%20122.4-33.4%20122.4-33.4-6.1-12.3-15.7-14.4-23-13.8z%22%2F%3E%3C%2Fsvg%3E"},CC:{name:"Cocos (Keeling) Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22m393%20367.3%207%2014.7%2015.9-3.7-7.1%2014.7%2012.7%2010-15.9%203.7V423L393%20412.8%20380.3%20423v-16.3l-15.9-3.6%2012.8-10.1-7.1-14.7L386%20382zm-65.4-155.8%207%2014.7%2016-3.7-7.2%2014.7%2012.8%2010-16%203.6.1%2016.3-12.7-10.2-12.7%2010.2v-16.3l-15.8-3.5%2012.7-10.1-7-14.7%2015.8%203.7zm65.4-89%207%2014.6%2015.9-3.6-7.1%2014.6%2012.7%2010.1-15.9%203.6v16.3L393%20167.9l-12.7%2010.2v-16.3l-15.9-3.6%2012.8-10-7.1-14.7L386%20137zm57%2066.7%207%2014.7%2016-3.7-7.1%2014.7%2012.7%2010.1-15.9%203.6v16.3l-12.6-10.2-12.7%2010.2v-16.3l-15.9-3.6%2012.8-10.1-7.1-14.7L443%20204zm-40.8%2078%205.6%2017h17.9l-14.5%2010.4%205.5%2017-14.5-10.5-14.4%2010.6%205.5-17-14.5-10.6h18z%22%2F%3E%3Cpath%20d%3D%22M283.8%20328.3a72.3%2072.3%200%201%201%2034.4-136%2089%2089%200%201%200%200%20127.3%2072%2072%200%200%201-34.4%208.7zM161%20100.2a44.5%2044.5%200%200%200-77.1%200h77zm.1.2-38.7%2038.7-38.7-38.7a44.3%2044.3%200%200%200-5.8%2022%2044.5%2044.5%200%201%200%2089%200%2044.3%2044.3%200%200%200-5.8-22z%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M111.3%20128v37.6a44.6%2044.6%200%200%200%2011.1%201.4c3.9%200%207.6-.5%2011.2-1.4V128h-22.3z%22%2F%3E%3C%2Fsvg%3E"},CO:{name:"Colombia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20384%20255.8-29.7L512%20384v128H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20256%20259.5-31L512%20256v128H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3C%2Fsvg%3E"},KM:{name:"Comoros",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M124.4%20149.7%20512%20132.8V0H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M112.5%20132.8H512v122.4l-294.2%2016.6z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%20255.3H234.5l-136%20139.8L512%20377.7V256z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M108.2%20377.7%200%20511.2l512%20.8V377.7z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M.8%200%200%20511.2l256-256z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22M67.5%20255.3a78%2078%200%200%201%2061.2-76%2078.2%2078.2%200%200%200-16.7-2%2078%2078%200%201%200%2016.7%20154%2078%2078%200%200%201-61.2-76z%22%2F%3E%3Cpath%20d%3D%22m127.9%20188.5%204.1%2012.7h13.4l-10.8%208%204.1%2012.7-10.8-8-10.9%208%204.2-12.8-10.9-7.9h13.4zm0%2033.4%204.1%2012.7h13.4l-10.8%208%204.1%2012.7-10.8-8-10.9%208%204.2-12.8-10.9-7.9h13.4zm0%2033.4L132%20268h13.4l-10.8%208%204.1%2012.6-10.8-7.8-10.9%207.8%204.2-12.7-10.9-7.9h13.4zm0%2033.3%204.1%2012.8h13.4l-10.8%208%204.1%2012.6-10.8-7.8L117%20322l4.2-12.7-10.9-7.9h13.4z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},CG:{name:"Congo",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M384%200h128v128L352%20352%20128%20512H0V384l160-224Z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20384%20384%200H0Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%20128%20128%20512h384z%22%2F%3E%3C%2Fsvg%3E"},CD:{name:"Congo (Democratic Republic of the)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h401.9L512%20110.3V512H110.3L0%20401.9z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M401.9%200%200%20401.9V449l63%2063h47.3L512%20110.3V63L449%200z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M449%200%200%20449v63h63L512%2063V0h-63z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m136.4%2078%2013.8%2042.4H195l-36%2026.3%2013.7%2042.5-36.2-26.3-36%2026.3%2013.7-42.5L78%20120.4h44.7z%22%2F%3E%3C%2Fsvg%3E"},CK:{name:"Cook Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m345%20256%204.8%2014.6H365l-12.4%209%204.7%2014.6-12.4-9-12.4%209%204.8-14.6-12.4-9h15.3zm-63%2026%2013.7%207%2010.9-10.8-2.4%2015.1%2013.6%207-15.1%202.4-2.4%2015.1-7-13.6-15.1%202.4%2010.8-10.9zm-26%2063%2014.6-4.7V325l9%2012.4%2014.6-4.8-9%2012.4%209%2012.4-14.6-4.7-9%2012.4v-15.3zm26%2063%207-13.6-10.8-10.9%2015.1%202.4%207-13.6%202.4%2015%2015.1%202.5-13.6%207%202.4%2015-10.9-10.8zm63%2026-4.7-14.5H325l12.4-9-4.8-14.6%2012.4%209%2012.4-9-4.7%2014.6%2012.4%209h-15.3zm63-26-13.6-7-10.9%2010.9%202.4-15.2-13.6-7%2015-2.3%202.5-15.1%207%2013.6%2015-2.4-10.8%2010.9zm26-63-14.5%204.8V365l-9-12.4-14.6%204.7%209-12.4-9-12.4%2014.6%204.8%209-12.4v15.3zm-26-63-7%2013.7%2010.9%2010.9-15.2-2.4-7%2013.6-2.3-15.1-15.1-2.4%2013.6-7-2.4-15.1%2010.9%2010.8z%22%2F%3E%3C%2Fsvg%3E"},CR:{name:"Costa Rica",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v89l-66.3%20167.5L512%20423v89H0v-89l69.7-167.3L0%2089z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%2089h512v78l-39.7%2091.1L512%20345v78H0v-78l36.3-85.6L0%20167z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20167h512v178H0z%22%2F%3E%3C%2Fsvg%3E"},CI:{name:"Côte d'Ivoire",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M167%200h178l31%20253.2L345%20512H167l-33.4-257.4z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},HR:{name:"Croatia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M322.8%20178h-44.5l7.4-55.7%2029.7-22.2%2029.6%2022.2V167zm-133.6%200h44.5l-7.4-55.7-29.7-22.2-29.6%2022.2V167z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M285.7%20178h-59.4v-55.7l29.7-22.2%2029.7%2022.2z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M167%20167v122.3a89%2089%200%200%200%2035.8%2071.3l15.5-3.9%2019.7%2019.8a89.1%2089.1%200%200%200%2018%201.8%2089%2089%200%200%200%2017.9-1.8l22.4-18.7%2013%202.8a89%2089%200%200%200%2035.7-71.3V167z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M167%20167h35.6v35.5H167zm71.2%200h35.6v35.5h-35.6zm71.2%200H345v35.5h-35.6zm-106.8%2035.5h35.6v35.6h-35.6zm71.2%200h35.6v35.6h-35.6zM167%20238.1h35.6v35.6H167zm35.6%2035.6h35.6v35.6h-35.6zm35.6-35.6h35.6v35.6h-35.6zm71.2%200H345v35.6h-35.6zm-35.6%2035.6h35.6v35.6h-35.6zm-35.6%2035.6h35.6V345h-35.6zm-35.6%200h-33.3c3%2013.3%209%2025.4%2017.3%2035.6h16zM309.4%20345h16a88.8%2088.8%200%200%200%2017.3-35.6h-33.3zm-106.8%200v15.6a88.7%2088.7%200%200%200%2035.6%2016V345zm71.2%200v31.6a88.7%2088.7%200%200%200%2035.6-16V345z%22%2F%3E%3C%2Fsvg%3E"},CU:{name:"Cuba",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v102.4L483.8%20151l28.2%2053.8v102.4l-30.5%2050.7%2030.5%2051.7V512H0l39.8-257z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M0%2044.5v423V256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M27.2%20102.4v102.4H512V102.4H27.2zm0%20204.8v102.4H512V307.2H27.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v512l256-256L0%200z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m103.6%20189.2%2016.6%2051h53.6l-43.4%2031.6%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51-43.4-31.6H87z%22%2F%3E%3C%2Fsvg%3E"},CW:{name:"Curaçao",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v342.3l-22%2034.2%2022%2032.5v103H0V409l25.4-31L0%20342.2z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m175.2%20164.2%2013.8%2042.5h44.7L197.6%20233l13.8%2042.5-36.2-26.3-36.1%2026.3%2013.8-42.5-36.2-26.3h44.7zm-76.7-44.5%208.2%2025.5h26.9L111.9%20161l8.3%2025.5-21.7-15.7-21.7%2015.7L85%20161l-21.7-15.7h26.9z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%20342.3h512V409H0z%22%2F%3E%3C%2Fsvg%3E"},CY:{name:"Cyprus",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M400.7%20222.6h-33.4a111.3%20111.3%200%200%201-222.6%200h-33.4c0%2066.2%2044.5%20122%20105.2%20139.2a37%2037%200%200%200%203.9%2040.5l36.3-29.2%2036.4%2029.2a37%2037%200%200%200%203.7-40.8%20144.8%20144.8%200%200%200%20103.9-138.9z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M167%20211.5s0%2055.6%2055.6%2055.6l11.1%2011.2H256s11.1-33.4%2033.4-33.4c0%200%200-22.3%2022.3-22.3H345s-11-44.5%2044.6-77.9l-22.3-11.1s-78%2055.6-133.6%2044.5v22.2h-22.2l-11.2-11-33.3%2022.2z%22%2F%3E%3C%2Fsvg%3E"},CZ:{name:"Czechia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v256l-265%2045.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M210%20256h302v256H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200v512l256-256L0%200z%22%2F%3E%3C%2Fsvg%3E"},DK:{name:"Denmark",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h133.6l32.7%2020.3%2034-20.3H512v222.6L491.4%20256l20.6%2033.4V512H200.3l-31.7-20.4-35%2020.4H0V289.4l29.4-33L0%20222.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M133.6%200v222.6H0v66.8h133.6V512h66.7V289.4H512v-66.8H200.3V0h-66.7z%22%2F%3E%3C%2Fsvg%3E"},DJ:{name:"Djibouti",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v256l-153.2%2035.7L210%20256z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M210%20256h302v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m103.6%20189.2%2016.6%2051h53.6l-43.4%2031.6%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51-43.4-31.6H87z%22%2F%3E%3C%2Fsvg%3E"},DM:{name:"Dominica",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h208l48%2032%2048-32h208v208l-32%2048%2032%2048v208H304l-48-32-48%2032H0V304l32-48-32-48Z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M512%20240v32l-256%2032L0%20272v-32l256-32z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M512%20208v32H0v-32z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M240%200h32l32%20256-32%20256h-32l-32-256Z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M208%200h32v512h-32z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M272%200h32v512h-32z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M512%20272v32H0v-32z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22122.4%22%20fill%3D%22%23d80027%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M284%20270c-9-19-21-37-21-37v-13a14%2014%200%200%200-27-2%2011%2011%200%200%200-4%2021%2016%2016%200%200%201%209-9%2014%2014%200%200%200%202%202h2s-7%2019-7%2029c0%2027%2019%2036%2019%2036l-10%209h19v-18l9%209s17-11%209-27zm-28-114%204%2013h14l-11%208%204%2012-11-8-11%208%204-12-11-8h14Zm-59%2019%2011%208%2011-8-4%2013%2011%208h-14l-4%2012-4-12h-14l11-8zm-36%2050h13l4-13%204%2013h14l-11%208%204%2013-11-8-11%208%205-13zm0%2062%2011-8-5-13%2011%208%2011-8-4%2013%2011%208h-14l-4%2013-4-13Zm36%2050%204-13-11-8h14l4-12%204%2012h13l-10%208%204%2013-11-8zm59%2019-4-13h-14l11-8-4-12%2011%208%2011-8-4%2012%2011%209h-14Zm59-19-11-8-11%208%204-13-10-8h13l4-12%204%2012h14l-11%208zm36-50h-13l-4%2013-4-13h-14l11-8-4-13%2011%208%2011-8-5%2013zm0-62-11%208%205%2013-11-8-11%208%204-13-11-8h14l4-13%204%2013zm-36-50-4%2013%2011%208h-14l-4%2012-4-12h-14l11-8-4-13%2011%208z%22%2F%3E%3C%2Fsvg%3E"},DO:{name:"Dominican Republic",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M35.5%20256h444l32.5-66.8V0H322.8L256%2031.8v444.6L189.2%20512H0V322.8z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M479.5%20256h-444L0%20189.2V0h189.2L256%2031.8v444.6l66.8%2035.6H512V322.8z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M189.2%200h133.6v189.2H512v133.6H322.8V512H189.2V322.8H0V189.2h189.2z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M322.8%20256a66.8%2066.8%200%201%201-133.6%200c0-36.9%2066.8-66.8%2066.8-66.8s66.8%2030%2066.8%2066.8z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M189.2%20256a66.8%2066.8%200%201%201%20133.6%200%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M218.4%20222.6v41.7a37.6%2037.6%200%201%200%2075.2%200v-41.7z%22%2F%3E%3C%2Fsvg%3E"},DNO:{name:"Donetsk Oblast",flag:"data:image/svg+xml,%3Csvg%20width%3D%22512%22%20height%3D%22512%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23a)%22%3E%3Cpath%20d%3D%22M512%20341.333H0V512h512V341.333Z%22%20fill%3D%22%23D80027%22%2F%3E%3Cpath%20d%3D%22M512%20170.667H0v170.666h512V170.667Z%22%20fill%3D%22%230052B4%22%2F%3E%3Cpath%20d%3D%22M512%200H0v170.667h512V0Z%22%20fill%3D%22%23333%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22a%22%3E%3Crect%20width%3D%22512%22%20height%3D%22512%22%20rx%3D%22256%22%20fill%3D%22%23fff%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"},EC:{name:"Ecuador",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20384%20254.7-32.7L512%20383.9V512H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20256%20255-27%20257%2027v128H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2289%22%20fill%3D%22%23ffda44%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M256%20311.6c-30.7%200-55.7-25-55.7-55.6v-33.4a55.7%2055.7%200%200%201%20111.4%200V256c0%2030.6-25%2055.6-55.7%2055.6z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M345%20122.4h-66.7a22.3%2022.3%200%200%200-44.6%200H167a23%2023%200%200%200%2023%2022.3h-.8c0%2012.3%2010%2022.3%2022.3%2022.3%200%2012.3%2010%2022.2%2022.2%2022.2h44.6c12.3%200%2022.2-10%2022.2-22.2%2012.3%200%2022.3-10%2022.3-22.3h-.8a23%2023%200%200%200%2023-22.3z%22%2F%3E%3C%2Fsvg%3E"},EG:{name:"Egypt",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20144%20256-32%20256%2032v224l-256%2032L0%20368Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v144H0Z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20368h512v144H0Z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M250%20191c-8%200-17%204-22%2014%205-3%2016-1%2016%2013%200%204-2%208-5%2010-8%200-14-14-29-14-10%200-19%207-19%2017v69l46-7-14%2027h66l-14-27%2046%207v-69c0-10-9-17-19-17-15%200-21%2014-29%2014%208-23-7-37-23-37z%22%2F%3E%3C%2Fsvg%3E"},SV:{name:"El Salvador",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v144.7l-40.5%20112.6%2040.5%20110V512H0V367.3l42.2-114L0%20144.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20144.7h512v222.6H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m204.6%20267.1%2051.4-89%2051.4%2089z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M322.8%20296.5%20256%20330l-66.8-33.4V252h133.6z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m319%20182-23.6%2023.5a55.5%2055.5%200%200%201-39.4%2095%2055.7%2055.7%200%200%201-39.3-95L193%20182a89%2089%200%201%200%20126%200z%22%2F%3E%3C%2Fsvg%3E"},GQ:{name:"Equatorial Guinea",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M41.3%20121.9%20512%20167v178L43.8%20391.3z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v167H111z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M111%20345h401v167H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M334%20257.1h22.2v32.3h-22.3z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M367.3%20245a22.3%2022.3%200%201%200-44.5%200%2011.1%2011.1%200%201%200%200%2022.1h44.5a11.1%2011.1%200%201%200%200-22.2z%22%2F%3E%3C%2Fsvg%3E"},ER:{name:"Eritrea",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v256H62z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M62%20256h450v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v512l512-256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M133.6%20150.3c-49.1%200-89%2040-89%2089v33.4a89.1%2089.1%200%200%200%20178%200v-33.4c0-49-40-89-89-89zm55.6%20122.4c0%2024.9-16.4%2046-39%2053v-36.3l23.7-23.6-23.6-23.6v-19.6h-33.4V256l-23.6%2023.6%2023.6%2023.6v22.6a55.7%2055.7%200%200%201-39-53.1v-33.4a55.7%2055.7%200%200%201%20111.3%200z%22%2F%3E%3C%2Fsvg%3E"},EE:{name:"Estonia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m0%20167%20254.6-36.6L512%20166.9v178l-254.6%2036.4L0%20344.9z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v166.9H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20344.9h512V512H0z%22%2F%3E%3C%2Fsvg%3E"},ET:{name:"Ethiopia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20345%20255.7-31L512%20345v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20167%20258-40.7L512%20167v178H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22122.4%22%20fill%3D%22%230052b4%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22m256%20161.2%2022%2068h71.7l-58%2042%2022.3%2068.3-58-42.3-58%2042.2%2022.2-68.1-58-42H234z%22%2F%3E%3Cpath%20d%3D%22m344.1%20273-70-22.9%2043.2-59.6-18-13L256%20237l-43.3-59.7-18%2013.1%2043.3%2059.7-70.1%2022.7%206.9%2021.2%2070-22.8V345h22.3v-73.7l70.1%2022.8z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},FK:{name:"Falkland Islands (Malvinas)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M411.8%20300.5v11.2h-89v-11.2h-33.4V345h22.3v11.2H423V345h22.2v-44.5z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M289.4%20133.6V256c0%2059.6%2077.9%2078%2077.9%2078s78-18.4%2078-78V133.6h-156z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M367.3%20224.9c-19.5%200-19.5%2017.8-39%2017.8s-19.4-17.8-39-17.8V256c19.6%200%2019.6%2017.8%2039%2017.8s19.5-17.8%2039-17.8%2019.5%2017.8%2039%2017.8%2019.4-17.8%2039-17.8v-31.2c-19.6%200-19.6%2017.8-39%2017.8-19.5%200-19.5-17.8-39-17.8zm0-62.4c-19.5%200-19.5%2017.8-39%2017.8s-19.4-17.8-39-17.8v31.2c19.6%200%2019.6%2017.8%2039%2017.8s19.5-17.8%2039-17.8%2019.5%2017.8%2039%2017.8%2019.4-17.8%2039-17.8v-31.2c-19.6%200-19.6%2017.8-39%2017.8-19.5%200-19.5-17.8-39-17.8z%22%2F%3E%3C%2Fsvg%3E"},FO:{name:"Faroe Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h100.2l66.1%2053.5L233.7%200H512v189.3L466.3%20257l45.7%2065.8V512H233.7l-68-50.7-65.5%2050.7H0V322.8l51.4-68.5-51.4-65z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M100.2%200v189.3H0v33.4l24.6%2033L0%20289.5v33.4h100.2V512h33.4l30.6-26.3%2036.1%2026.3h33.4V322.8H512v-33.4l-24.6-33.7%2024.6-33v-33.4H233.7V0h-33.4l-33.8%2025.3L133.6%200z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M133.6%200v222.7H0v66.7h133.6V512h66.7V289.4H512v-66.7H200.3V0h-66.7z%22%2F%3E%3C%2Fsvg%3E"},FJ:{name:"Fiji",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32l42-16%2041%2016h45l-8-16%208-15v-14l-16-42%2016-41V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M128%20256v-83l83%2083zm128-45-83-83h83z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m367.3%20144.7-78%2022.3h.1v66.7l9.2%2011-9.2%2011.3c0%2045.5%2045.3%2067%2066.8%2074.6l11.5-8.8%2010.7%208.8c21.5-7.7%2066.8-29.1%2066.8-74.6l-8-11%208-11.3V167Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97zm317.2%2039v-33.4H289.4V167h66.8v66.7h-66.8V256h66.8v74.6a111%20111%200%200%200%2011.1%203.4s4.4-1%2011.1-3.4V256h66.8v-22.3h-66.8V167Z%22%2F%3E%3C%2Fsvg%3E"},FI:{name:"Finland",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h133.6l35.3%2016.7L200.3%200H512v222.6l-22.6%2031.7%2022.6%2035.1V512H200.3l-32-19.8-34.7%2019.8H0V289.4l22.1-33.3L0%20222.6z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M133.6%200v222.6H0v66.8h133.6V512h66.7V289.4H512v-66.8H200.3V0h-66.7z%22%2F%3E%3C%2Fsvg%3E"},FR:{name:"France",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M167%200h178l25.9%20252.3L345%20512H167l-29.8-253.4z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},GF:{name:"French Guiana",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%200%20216.9%20301.6L512%20512V0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%200%20512%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m256%20121%2090%20270-234-168h288L166%20391z%22%2F%3E%3C%2Fsvg%3E"},PF:{name:"French Polynesia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v133.7l-52%20126%2052%20118.8V512H0V378.5l53-121L0%20133.6z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20133.7h512v244.8H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M345%20256.1c0%2049.2-39.8%2078-89%2078s-89-28.8-89-78a89%2089%200%201%201%20178%200z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M345%20256.1a89%2089%200%201%201-178%200%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M200.3%20233.8h22.3v44.6h-22.3zm89%200h22.4v44.6h-22.3zM245%20200.4h22v78h-22z%22%2F%3E%3C%2Fsvg%3E"},TF:{name:"French Southern Territories",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h75v224H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M149%200h75v224h-75z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m323%20158%2013%2021h36v71l-27-43-37%2059h18l19-34%2039%2070%2039-70%2019%2034h18l-37-59-27%2043v-39h16l12-20h-28v-12h36l13-21zm43%2088h-40v14h40zm76%200h-40v14h40z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m301%20181%2013%2038-34-23h42l-34%2023zm166%200%2013%2038-34-23h42l-34%2023zM339%20282l13%2038-34-23h42l-34%2023zm90%200%2013%2038-34-23h42l-34%2023zm-45%2034%2013%2038-34-23h42l-34%2023z%22%2F%3E%3C%2Fsvg%3E"},GA:{name:"Gabon",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},GM:{name:"Gambia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20155.8%20255-30.6%20257%2030.6v33.4l-27.7%2067.2%2027.7%2066.4v33.4l-256%2032.4L0%20356.2v-33.4l28.8-68.5L0%20189.2z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h512v155.8H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20189.2h512v133.6H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%20356.2h512V512H0z%22%2F%3E%3C%2Fsvg%3E"},GE:{name:"Georgia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h222.6l31%2023.4L289.4%200H512v222.6l-21.5%2031%2021.5%2035.8V512H289.4l-34.2-20.5-32.6%2020.5H0V289.4l22.7-32.6L0%20222.6z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M222.6%200v222.6H0v66.8h222.6V512h66.8V289.4H512v-66.8H289.4V0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M155.8%20122.4V89h-33.4v33.4H89v33.4h33.4v33.4h33.4v-33.4h33.4v-33.4zm233.8%200V89h-33.4v33.4h-33.4v33.4h33.4v33.4h33.4v-33.4H423v-33.4zM155.8%20356.2v-33.4h-33.4v33.4H89v33.4h33.4V423h33.4v-33.4h33.4v-33.4zm233.8%200v-33.4h-33.4v33.4h-33.4v33.4h33.4V423h33.4v-33.4H423v-33.4z%22%2F%3E%3C%2Fsvg%3E"},DE:{name:"Germany",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20345%20256.7-25.5L512%20345v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20167%20255-23%20257%2023v178H0z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},GH:{name:"Ghana",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20167%20257.3-31.9L512%20167v178l-256.3%2029L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m256%20167%2022.1%2068h71.5l-57.8%2042%2022%2068-57.8-42-57.9%2042%2022.1-68-57.8-42h71.5z%22%2F%3E%3C%2Fsvg%3E"},GI:{name:"Gibraltar",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20345%20256.3-31.3L512%20345v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v345H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M356.2%20211.5V178h11.1v-22.3H345V167h-22.2v-11.2h-22.3v22.3h11.2v33.4h-22.3v-78h11.1v-22.2h-22.2v11.1H267v-11h-22v11h-11.2v-11h-22.2v22.2h11.1v77.9h-22.3V178h11.2v-22.3h-22.3V167H167v-11.2h-22.3v22.3h11.1v33.4h-22.2v89h244.8v-89z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20289.4a33.4%2033.4%200%200%200-11.1%2064.9v46.4h-33.4v44.5H267v-91a33.4%2033.4%200%200%200-11.1-64.8zm0%2044.5a11.1%2011.1%200%201%201%200-22.2%2011.1%2011.1%200%200%201%200%2022.2z%22%2F%3E%3C%2Fsvg%3E"},GR:{name:"Greece",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h99l29%2032%2028-32h356v57l-32%2028%2032%2029v57l-32%2028%2032%2029v57l-32%2028%2032%2028v57l-32%2029%2032%2028v57H0v-57l32-28-32-29v-56l32-29-32-28V171l32-29-32-28Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M99%200v114H0v57h99v114H0v57h512v-57H156V171h100v-57H156V0Zm157%2057v57h256V57Zm0%20114v57h256v-57ZM0%20398v57h512v-57z%22%2F%3E%3C%2Fsvg%3E"},GL:{name:"Greenland",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20256%20259-45.3L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M55.7%20256a122.4%20122.4%200%201%200%20244.8%200l-123-24z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M55.7%20256a122.4%20122.4%200%201%201%20244.8%200z%22%2F%3E%3C%2Fsvg%3E"},GD:{name:"Grenada",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M23.6%2023.7h464.8v464.7H23.6z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%2075.1%2038%2038l436.3%20436.4%2037.7-37.5V75l-39.6-35.5L40.2%20471.8%200%20436.8z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256.1%22%20r%3D%2289%22%20fill%3D%22%23a2001d%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%20167%2020%2061.5h64.6l-52.3%2038%2020%2061.3-52.3-38-52.3%2038%2020-61.3-52.3-38H236zM256%20.2z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h512v75.1H0zm0%20436.8h512v75.1H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%2028%204.1%2012.7h13.5l-10.9%208%204.2%2012.6-10.9-7.9-10.8%208%204.1-12.8-10.9-8H252zm-62%200%204%2012.7h13.5l-10.9%208%204.2%2012.6-10.9-7.9-10.8%208%204.1-12.8-10.8-8h13.4zm124%200%204.2%2012.7h13.4l-10.8%208%204.1%2012.6-10.8-7.9-10.9%208%204.2-12.8-10.9-8H314zm-62%20422.8%204.1%2012.7h13.5l-10.9%208%204.2%2012.7-10.9-8-10.8%208%204.1-12.8-10.9-7.9H252zm-62%200%204%2012.7h13.5l-10.9%208%204.2%2012.7-10.9-8-10.8%208%204.1-12.8-10.8-7.9h13.4zm124%200%204.2%2012.7h13.4l-10.8%208%204.1%2012.7-10.8-8-10.9%208%204.2-12.8-10.9-7.9H314zm-240-199a22.3%2022.3%200%200%201-37.6%2023.9c-12-18.8-5-49.5-5-49.5S66%20233%2078%20251.9z%22%2F%3E%3Ccircle%20cx%3D%2265.1%22%20cy%3D%22273.2%22%20r%3D%2211.1%22%20fill%3D%22%23a2001d%22%2F%3E%3C%2Fsvg%3E"},GP:{name:"Guadeloupe",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20176h512v336H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v176H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M94%20228a8%208%200%200%200-2%200%208%208%200%200%200-5%204%208%208%200%200%200-1%206l7%2025-39-23a8%208%200%200%200-11%203%208%208%200%200%200%203%2011l39%2023-25%206a8%208%200%200%200-5%204%208%208%200%200%200-1%206%208%208%200%200%200%2010%206l41-11%208%205-26%206a8%208%200%200%200-4%204%208%208%200%200%200-1%206%208%208%200%200%200%2010%206l40-11%208%205-25%206a8%208%200%200%200-4%204%208%208%200%200%200-1%206%208%208%200%200%200%2010%206l40-11%2025%2014a8%208%200%200%200%2011-3%208%208%200%200%200-3-10l-25-15-11-40a8%208%200%200%200-10-6%208%208%200%200%200-5%204%208%208%200%200%200%200%206l6%2025-8-5-11-40a8%208%200%200%200-9-6%208%208%200%200%200-5%204%208%208%200%200%200-1%206l7%2025-8-5-11-40a8%208%200%200%200-8-6zm180%2096%20122%20107c17-13%2032-30%2044-48l-166-59z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%20480-21-29-31%2019-8-35-36%205%206-35-36-9%2019-31-29-21%2029-21-19-31%2036-8-6-36%2036%206%208-36%2031%2019%2021-29%2021%2029%2031-19%208%2036%2036-6-6%2036%2036%208-19%2031%2029%2021-29%2021%2019%2031-36%208%206%2036-36-5-8%2035-31-19zm0-440-10%2011c-7%2011-9%2022-5%2031l7%2017c-4-6-9-10-15-12-4-1-11%200-16%205-7%206-10%2024%2011%2027-2-3-2-9%203-11%203-2%207-1%208%200%202%201%204%204%205%207h-5v10h6c-2%206-6%209-15%2016%208%201%2017-5%2019-7l2-5-1%2020c1%205%202%207%206%2011%204-4%205-6%206-11l-1-20%202%204c2%203%2011%209%2019%209-9-8-13-11-14-17h5v-10h-5c1-3%203-6%205-7%201-1%205-2%209%200s4%208%202%2011c21-3%2018-21%2011-27-5-5-11-6-16-5-6%202-11%206-15%2012l7-17c4-9%202-20-5-31l-10-11zm96%200-10%2011c-7%2011-9%2022-5%2031l7%2017c-4-6-9-10-15-12-5-1-11%200-17%205-6%206-9%2024%2012%2027-2-3-2-9%203-11%203-2%207-1%208%200%202%201%204%204%205%207h-5v10h5c-1%206-5%209-14%2016%208%201%2017-5%2019-7l2-5-1%2020c1%205%202%207%206%2011%204-4%205-6%206-11l-1-20%202%204c2%203%2011%209%2019%209-9-8-13-11-15-17h6v-10h-5c1-3%203-6%205-7%201-1%205-2%208%200%205%202%205%208%203%2011%2021-3%2018-21%2011-27-5-5-11-6-16-5-6%202-11%206-15%2012l7-17c4-9%202-20-5-31l-10-11zm-192%200-10%2011c-7%2011-9%2022-5%2031l7%2017c-4-6-9-10-15-12-4-1-11%200-16%205-7%206-10%2024%2011%2027-2-3-2-9%203-11%203-2%207-1%208%200%202%201%204%204%205%207h-5v10h6c-2%206-6%209-15%2016%208%201%2017-5%2019-7l2-5-1%2020c1%205%202%207%206%2011%204-4%205-6%206-11l-1-20%202%204c2%203%2011%209%2019%209-9-8-13-11-14-17h5v-10h-5c1-3%203-6%205-7%201-1%205-2%209%200s4%208%202%2011c21-3%2019-21%2012-27-6-5-12-6-17-5-6%202-11%206-15%2012l7-17c4-9%202-20-5-31l-10-11z%22%2F%3E%3C%2Fsvg%3E"},GU:{name:"Guam",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v44.6l-41.2%20207.2L512%20467.6V512H0v-44.4l38-219-38-204z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%2044.6h512v423H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M241.5%20417.7c-3.5-3-85.7-74.5-85.7-161.6%200-87%2082.2-158.6%2085.7-161.6L256%2082.1l14.5%2012.4c3.5%203%2085.7%2074.4%2085.7%20161.6%200%2087.2-82.2%20158.6-85.7%20161.6L256%20430.1z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M334%20256.1c0-78-78-144.7-78-144.7s-78%2066.8-78%20144.7a150%20150%200%200%200%2017.5%2066.8h121a150%20150%200%200%200%2017.4-66.8z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M334%20256.1a150%20150%200%200%201-17.5%2066.8L256%20334l-60.5-11a150%20150%200%200%201-17.4-66.9h155.8z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20400.8s37.5-32.2%2060.5-78h-121c23%2045.8%2060.5%2078%2060.5%2078z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M206%20211.6h100l-50%2050z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M239.3%20245h33.4v100.1h-33.4z%22%2F%3E%3C%2Fsvg%3E"},GT:{name:"Guatemala",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h144.7l108.4%2041.2L367.3%200H512v512H367.3l-110.2-41.4L144.7%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M144.7%200h222.6v512H144.7z%22%2F%3E%3Cpath%20fill%3D%22%23acabb1%22%20d%3D%22M322.9%20299.3%20279.6%20256l41.2-41.2L319%20193l-11.7-11.8-51.2%2051.2-51.2-51.2-11.7%2011.8-2%2021.8%2041.3%2041.2-43.3%2043.3%2023.6%2023.6%2043.3-43.3%2043.3%2043.3z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m319%20193-23.6%2023.6a55.5%2055.5%200%200%201-39.4%2095%2055.7%2055.7%200%200%201-39.4-95L193%20193a89%2089%200%201%200%20126%200z%22%2F%3E%3C%2Fsvg%3E"},GG:{name:"Guernsey",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h222.6l31%2023.4L289.4%200H512v222.6l-21.5%2031%2021.5%2035.8V512H289.4l-34.2-20.5-32.6%2020.5H0V289.4l22.7-32.6L0%20222.6z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M222.6%200v222.6H0v66.8h222.6V512h66.8V289.4H512v-66.8H289.4V0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m328.3%20267%2016.7%2011.3v-44.7L328.3%20245h-61.2v-61.2l11.2-16.8h-44.6l11.2%2016.8v61.1h-61.2L167%20233.6v44.7l16.7-11.3h61.2v61.3l-11.2%2016.6h44.6L267%20328.3V267z%22%2F%3E%3C%2Fsvg%3E"},GN:{name:"Guinea",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M167%200h178l25.9%20252.3L345%20512H167l-29.8-253.4z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},GW:{name:"Guinea-Bissau",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h189.2l54%20257.6-54%20254.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M189.2%200H512v256l-159%2053.5L189.1%20256z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M189.2%20256H512v256H189.2z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m96.7%20189.2%2016.6%2051H167l-43.4%2031.6%2016.5%2051-43.4-31.5-43.4%2031.5%2016.6-51-43.4-31.6h53.7z%22%2F%3E%3C%2Fsvg%3E"},GY:{name:"Guyana",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M77.7%200H512v512H77.8z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M425.4%20254.7%2031.4%20512h46.4L512%20256%2077.7%200H31.4z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20256%2031.4%20512l436.8-256L31.4%200z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200v1.8l219.6%20253.8L0%20510v2h31.4l256-256L31.4%200z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v512l256-256L0%200z%22%2F%3E%3C%2Fsvg%3E"},HT:{name:"Haiti",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22m0%20256%20254.8-41.8L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m345%20322.8-89-11.1-89%2011V189.3h178z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22267.1%22%20r%3D%2244.5%22%20fill%3D%22%230052b4%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22267.1%22%20r%3D%2222.3%22%20fill%3D%22%23a2001d%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M222.6%20211.5h66.8L256%20244.9z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M244.9%20233.7H267v66.8h-22z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M291.6%20293.8h-71.2l-53.4%2029h178z%22%2F%3E%3C%2Fsvg%3E"},HM:{name:"Heard Island and McDonald Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m400%20256%205%2017h18l-14%2010%205%2017-14-10-15%2010%206-17-15-10h18zm40-78%207%2015%2016-4-7%2015%2013%2010-16%203v17l-13-10-12%2010v-17l-16-3%2013-10-7-15%2015%204zm-57-67%207%2015%2016-4-7%2015%2013%2010-16%204v16l-13-10-12%2010v-16l-16-4%2012-10-7-15%2016%204zm-65%2089%207%2015%2016-4-7%2015%2012%2010-15%204v16l-13-10-13%2010v-16l-16-4%2013-10-7-15%2016%204zm65%20156%207%2015%2016-4-7%2015%2013%2010-16%203v17l-13-10-12%2010v-17l-16-3%2012-10-7-15%2016%204zm-229-56%2014%2030%2032-8-14%2030%2026%2020-32%207v33l-26-21-25%2021v-33l-32-7%2026-20-14-30%2031%208z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0H32zm96%20128%20128%20128v-31l-97-97h-31z%22%2F%3E%3C%2Fsvg%3E"},VA:{name:"Holy See",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h256l51.7%20254.7L256%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M256%200h256v512H256z%22%2F%3E%3Cpath%20fill%3D%22%23acabb1%22%20d%3D%22m354%20222.8%2048.1%2063.6A33.4%2033.4%200%201%200%20420%20273l-75-99.2-17.7%2013.4-26.7%2020.2%2026.9%2035.5%2026.6-20.1zm69.3%2073.1a11.1%2011.1%200%201%201%2013.4%2017.8%2011.1%2011.1%200%200%201-13.4-17.8z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m436.6%20242.9%2026.8-35.5-26.6-20.2-17.8-13.4-75%2099.2a33.4%2033.4%200%201%200%2017.8%2013.4l48-63.6%2026.8%2020zm-93.8%2068.6a11.1%2011.1%200%201%201-17.8-13.4%2011.1%2011.1%200%200%201%2017.8%2013.4z%22%2F%3E%3C%2Fsvg%3E"},HN:{name:"Honduras",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v144.7l-40.5%20112.6%2040.5%20110V512H0V367.3l42.2-114L0%20144.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20144.7h512v222.6H0z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22m157.5%20167%208.3%2025.5h26.9L171%20208.2l8.2%2025.5-21.7-15.7-21.7%2015.7%208.3-25.5-21.7-15.7h26.9zm0%20111.3%208.3%2025.5h26.9L171%20319.5l8.2%2025.5-21.7-15.7-21.7%2015.7%208.3-25.5-21.7-15.7h26.9zm197-111.3%208.2%2025.5h26.9l-21.7%2015.7%208.3%2025.5-21.7-15.7-21.7%2015.7%208.2-25.5-21.7-15.7h26.9zm0%20111.3%208.2%2025.5h26.9l-21.7%2015.7%208.3%2025.5-21.7-15.7-21.7%2015.7%208.2-25.5-21.7-15.7h26.9zM256%20222.6l8.3%2025.5H291L269.4%20264l8.3%2025.5-21.7-15.8-21.7%2015.8%208.3-25.5-21.7-15.8h26.8z%22%2F%3E%3C%2Fsvg%3E"},HK:{name:"Hong Kong",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M282.4%20193.7c-5.8%2024.2-16.1%2019.6-21.2%2040.7a55.7%2055.7%200%200%201%2026-108.3c-10.1%2042.2.4%2046-4.8%2067.6zM205%20211.6c21.2%2013%2013.6%2021.4%2032.1%2032.8a55.7%2055.7%200%200%201-94.9-58.2c37%2022.7%2043.8%2013.8%2062.8%2025.4zm-7%2079.3c19-16.2%2024.7-6.4%2041.2-20.4a55.7%2055.7%200%200%201-84.7%2072.2c33-28.2%2026.6-37.4%2043.6-51.8zm73.4%2031c-9.6-23%201.5-25.3-6.8-45.3a55.7%2055.7%200%200%201%2042.6%20102.8c-16.6-40-27.3-36.9-35.8-57.4zm52.2-60c-24.9%202-23.7-9.3-45.3-7.6a55.7%2055.7%200%200%201%20111-8.7c-43.3%203.4-43.6%2014.5-65.7%2016.3z%22%2F%3E%3C%2Fsvg%3E"},HU:{name:"Hungary",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},IS:{name:"Iceland",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h100.2l66.1%2053.5L233.7%200H512v189.3L466.3%20257l45.7%2065.8V512H233.7l-68-50.7-65.5%2050.7H0V322.8l51.4-68.5-51.4-65z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M100.2%200v189.3H0v33.4l24.6%2033L0%20289.5v33.4h100.2V512h33.4l30.6-26.3%2036.1%2026.3h33.4V322.8H512v-33.4l-24.6-33.7%2024.6-33v-33.4H233.7V0h-33.4l-33.8%2025.3L133.6%200z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M133.6%200v222.7H0v66.7h133.6V512h66.7V289.4H512v-66.7H200.3V0z%22%2F%3E%3C%2Fsvg%3E"},IN:{name:"India",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20160%20256-32%20256%2032v192l-256%2032L0%20352z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M0%200h512v160H0Z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20352h512v160H0Z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2272%22%20fill%3D%22%230052b4%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2248%22%20fill%3D%22%23eee%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2224%22%20fill%3D%22%230052b4%22%2F%3E%3C%2Fsvg%3E"},ID:{name:"Indonesia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20256%20249.6-41.3L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3C%2Fsvg%3E"},IR:{name:"Iran (Islamic Republic of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20144.7%20258.8%2039.6%20512%20144.7v222.6L257%20493%200%20367.3z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200v144.7h105.6v-22.2h33.6v22.2h33.3v-22.2h33.6v22.2h33.3v-22.2H273v22.2h33v-22.2h33.6v22.2h33.2v-22.2h33.6v22.2H512V0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20367.3V512h512V367.3H406.4v22.4h-33.6v-22.4h-33.2v22.4H306v-22.4h-33v22.4h-33.6v-22.4h-33.3v22.4h-33.6v-22.4h-33.3v22.4h-33.6v-22.4zm339.1-178h-33.4c.2%203.7.4%207.4.4%2011.1%200%2024.8-6.2%2048.8-17%2066-3.3%205.2-9%2012.6-16.4%2017.6v-94.7h-33.4v94.8c-7.5-5-13-12.4-16.4-17.7-10.8-17-17-41-17-65.9%200-3.7.2-7.4.4-11H173a190%20190%200%200%200-.4%2011c0%2068.7%2036.7%20122.5%2083.5%20122.5s83.5-53.8%2083.5-122.5c0-3.7-.1-7.4-.4-11z%22%2F%3E%3C%2Fsvg%3E"},IQ:{name:"Iraq",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M194.8%20239.3h-49.4a22.3%2022.3%200%200%201%2021.6-16.7v-33.4c-30.7%200-55.7%2025-55.7%2055.7v27.8h83.5a5.6%205.6%200%200%201%205.5%205.6v11H89v33.5h144.7v-44.5a39%2039%200%200%200-39-39zm83.5%2050v-100h-33.4v133.5h55.6v-33.4zm111.3%200v-100h-33.4v100H345V256h-33.3v66.8h100.1v-33.4z%22%2F%3E%3C%2Fsvg%3E"},IE:{name:"Ireland",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M167%200h178l25.9%20252.3L345%20512H167l-29.8-253.4z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},IM:{name:"Isle of Man",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m350.8%20171.6-18.1%2064.6-54.3-10-35-72-94.4%2033.4-7.4-21-24.7-3%2018.6%2052.5%2065-16.7%2018.4%2052-44.9%2066.3%2076.3%2065-14.5%2017%209.7%2022.9%2036.1-42.3-46.8-48%2035.8-42%2079.8%205.8%2018.2-98.6%2022%204%2015-19.8-54.8-10zM256%20256z%22%2F%3E%3C%2Fsvg%3E"},IL:{name:"Israel",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v55.7l-25%2032.7%2025%2034v267.2l-26%2036%2026%2030.7V512H0v-55.7l24.8-34.1L0%20389.6V122.4l27.2-33.2L0%2055.7z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%2055.7v66.7h512V55.7zm0%20333.9v66.7h512v-66.7zm352.4-189.3H288l-32-55.6-32.1%2055.6h-64.3l32.1%2055.7-32%2055.7h64.2l32.1%2055.6%2032.1-55.6h64.3L320.3%20256l32-55.7zm-57%2055.7-19.7%2034.2h-39.4L216.5%20256l19.8-34.2h39.4l19.8%2034.2zM256%20187.6l7.3%2012.7h-14.6zm-59.2%2034.2h14.7l-7.4%2012.7zm0%2068.4%207.3-12.7%207.4%2012.7zm59.2%2034.2-7.3-12.7h14.6zm59.2-34.2h-14.7l7.4-12.7zm-14.7-68.4h14.7l-7.3%2012.7z%22%2F%3E%3C%2Fsvg%3E"},IT:{name:"Italy",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M167%200h178l25.9%20252.3L345%20512H167l-29.8-253.4z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},JM:{name:"Jamaica",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M23.3%20488.6%200%20465V47.1l23.4-23.7%20464%20464%2024.6-22.6V47.1l-24.5-22.7z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M23.3%2023.3%2047.1%200h417.7l23.8%2023.4-464%20464L47%20512h418l22.6-24.5z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200v47.1L208.8%20256%200%20464.9V512h47.1L256%20303.2%20464.9%20512H512v-47L303.1%20256%20512%2047.2V0h-47.2L256%20208.9%2047%200z%22%2F%3E%3C%2Fsvg%3E"},JP:{name:"Japan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22111.3%22%20fill%3D%22%23d80027%22%2F%3E%3C%2Fsvg%3E"},JE:{name:"Jersey",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%2047.1%2047%200h417.8L512%2047.2v417.7L464.9%20512H47L0%20464.9z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v47.1L208.8%20256%200%20464.9V512h47.1L256%20303.2%20464.9%20512H512v-47L303.1%20256%20512%2047.2V0h-47.2L256%20208.9%2047%200z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M211.5%2078%20256%2089l44.5-11V40l-17.8%209L256%2022.3%20229.3%2049l-17.8-9z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M211.5%2078v27.7c0%2034.1%2044.5%2044.6%2044.5%2044.6s44.5-10.5%2044.5-44.6V78z%22%2F%3E%3C%2Fsvg%3E"},JO:{name:"Jordan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m126%20158%20127.8-10.3L512%20167v178l-254.9%2032.3L126%20335.9z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v167H107z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M107%20345h405v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m101.6%20200.3%2014%2029.4%2031.8-7.3-14.2%2029.3%2025.5%2020.2-31.8%207.2.1%2032.6-25.4-20.4-25.4%2020.4V279l-31.7-7.2%2025.5-20-14.2-29.4%2031.8%207.3z%22%2F%3E%3C%2Fsvg%3E"},KZ:{name:"Kazakhstan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M400.7%20258.8H111.3c0%2020%2017.4%2036.2%2037.4%2036.2h-1.2c0%2020%2016.2%2036.1%2036.2%2036.1%200%2020%2016.1%2036.2%2036.1%2036.2h72.4c20%200%2036.1-16.2%2036.1-36.2%2020%200%2036.2-16.2%2036.2-36.1h-1.2c20%200%2037.4-16.2%2037.4-36.2z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M356.2%20211.5a100.2%20100.2%200%200%201-200.4%200%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m332.5%20211.5-31.3%2014.7%2016.7%2030.3-34-6.5-4.3%2034.3L256%20259l-23.6%2025.3L228%20250l-34%206.5%2016.6-30.3-31.2-14.7%2031.2-14.7-16.6-30.3%2034%206.5%204.3-34.3%2023.6%2025.2%2023.6-25.2L284%20173l34-6.5-16.6%2030.3z%22%2F%3E%3C%2Fsvg%3E"},KE:{name:"Kenya",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20144.7%20253.4-28.2L512%20144.7V178l-36%2076.4%2036%2079.6v33.3L254.7%20400%200%20367.3V334l39-78-39-78z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%20178h512v156H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m335.9%20118.3-30.3-14-49.4%20111.9-49.4-111.9-30.3%2014L237.8%20256l-61.3%20137.7%2030.3%2014%2049.4-111.9%2049.4%20111.9%2030.3-14L274.6%20256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M256.2%20111.3s-7%205.8-16.7%2016l-16%20127.6%2016%20129.8c9.7%2010.2%2016.7%2016%2016.7%2016s7-5.8%2016.7-16l15-130.7-15-126.7c-9.7-10.2-16.7-16-16.7-16z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m311.9%20179.2-10%2075.5%2010%2078.1A158.6%20158.6%200%200%200%20334%20256c0-28.2-9.7-54.5-22.2-76.8zm-111.4%200%208.9%2074.3-9%2079.3a158.6%20158.6%200%200%201-22.1-76.8c0-28.2%209.7-54.5%2022.2-76.8z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M200.5%20179.2v153.6a269%20269%200%200%200%2039%2051.9V127.3c-11.4%2012-26.6%2030-39%2052zm111.4%200a269%20269%200%200%200-39-51.9v257.4c11.4-12%2026.5-30%2039-52V179.3z%22%2F%3E%3C%2Fsvg%3E"},KI:{name:"Kiribati",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512l-.1%20234.8-254.7%20260.9L.3%20234.8z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m345%20238-36.3%2017.2%2019.3%2035.2-39.5-7.5-5%2039.9-27.5-29.4-27.5%2029.4-5-40-39.5%207.6%2019.3-35.2L167%20238l36.3-17.1-19.3-35.3%2039.5%207.6%205-40%2027.5%2029.4%2027.5-29.3%205%2039.9%2039.5-7.6-19.3%2035.3zM322.8%2083.6h-50.1a16.7%2016.7%200%200%200-33.4%200h-50c0%209.2%208%2016.7%2017.2%2016.7h-.6c0%209.2%207.5%2016.7%2016.7%2016.7%200%209.2%207.5%2016.7%2016.7%2016.7h33.4c9.2%200%2016.7-7.5%2016.7-16.7%209.2%200%2016.7-7.5%2016.7-16.7h-.6c9.3%200%2017.3-7.5%2017.3-16.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M85.3%20234.8c-21.3%200-21.3%2019.5-42.7%2019.5-21.2%200-21.3-19.3-42.3-19.5v34.3l12.3%2018.2L.3%20303.4V336l12.8%2018.2L.3%20370.3v32.4l39.1%2049.4%20441.2%203%2031.3-52.4v-32.4l-8.2-16.4%208.2-17.9v-32.6l-10.3-14%2010.3-20.3v-34.3c-21.2%200-21.2%2019.5-42.5%2019.5s-21.4-19.5-42.7-19.5c-21.3%200-21.3%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.6-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.3%200-21.3%2019.5-42.6%2019.5s-21.4-19.5-42.7-19.5z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M85.3%20269.1c-21.3%200-21.3%2019.5-42.7%2019.5-21.2%200-21.3-19.3-42.3-19.5v34.3c21%20.2%2021.1%2019.5%2042.3%2019.5%2021.4%200%2021.4-19.5%2042.7-19.5%2021.3%200%2021.3%2019.5%2042.7%2019.5%2021.4%200%2021.3-19.5%2042.6-19.5%2021.4%200%2021.4%2019.5%2042.7%2019.5%2021.3%200%2021.3-19.5%2042.7-19.5%2021.4%200%2021.4%2019.5%2042.7%2019.5%2021.3%200%2021.3-19.5%2042.7-19.5%2021.3%200%2021.3%2019.5%2042.6%2019.5%2021.4%200%2021.4-19.5%2042.7-19.5%2021.3%200%2021.3%2019.5%2042.7%2019.5%2021.4%200%2021.3-19.4%2042.5-19.5v-34.3c-21.2%200-21.2%2019.5-42.5%2019.5s-21.4-19.5-42.7-19.5c-21.3%200-21.3%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.6-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.3%200-21.3%2019.5-42.6%2019.5s-21.4-19.5-42.7-19.5zm0%2066.9C64%20336%2064%20355.5%2042.6%20355.5c-21.2%200-21.3-19.3-42.3-19.5v34.3c21%20.2%2021.1%2019.5%2042.3%2019.5%2021.4%200%2021.4-19.5%2042.7-19.5%2021.3%200%2021.3%2019.5%2042.7%2019.5%2021.4%200%2021.3-19.5%2042.6-19.5%2021.4%200%2021.4%2019.5%2042.7%2019.5%2021.3%200%2021.3-19.5%2042.7-19.5%2021.4%200%2021.4%2019.5%2042.7%2019.5%2021.3%200%2021.3-19.5%2042.7-19.5%2021.3%200%2021.3%2019.5%2042.6%2019.5%2021.4%200%2021.4-19.5%2042.7-19.5%2021.3%200%2021.3%2019.5%2042.7%2019.5%2021.4%200%2021.3-19.4%2042.5-19.5V336c-21.2%200-21.2%2019.5-42.5%2019.5S448%20336%20426.7%20336c-21.3%200-21.3%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.6-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.3%200-21.3%2019.5-42.6%2019.5S106.6%20336%2085.3%20336zm0%2066.7c-21.3%200-21.3%2019.5-42.7%2019.5-21.2%200-21.3-19.3-42.3-19.5L0%20512h512l-.1-109.3c-21.2%200-21.2%2019.5-42.5%2019.5s-21.4-19.5-42.7-19.5c-21.3%200-21.3%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.6-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.3%200-21.3%2019.5-42.6%2019.5s-21.4-19.5-42.7-19.5z%22%2F%3E%3C%2Fsvg%3E"},KP:{name:"Korea (Democratic People's Republic of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v89l-61.2%20165.6L512%20423v89H0v-89l62.5-174.6L0%2089z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%2089h512v33.4l-28.1%20130L512%20389.7V423H0v-33.4L30%20255%200%20122.4z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20122.4h512v267.2H0z%22%2F%3E%3Ccircle%20cx%3D%22157.5%22%20cy%3D%22256%22%20r%3D%2298.5%22%20fill%3D%22%23eee%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m157.5%20157.5%2022.1%2068h71.6l-58%2042%2022.3%2068.3-58-42.3-58%2042.2%2022.2-68.1-57.9-42h71.6z%22%2F%3E%3C%2Fsvg%3E"},KR:{name:"Korea (Republic of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M345%20256c0%2022.3-39.8%2078-89%2078s-89-55.7-89-78a89%2089%200%201%201%20178%200z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M345%20256a89%2089%200%201%201-178%200%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m350.4%20334.7%2023.7-23.6%2015.7%2015.7-23.6%2023.6zm-39.3%2039.4%2023.6-23.7%2015.7%2015.8-23.6%2023.6zm86.6%207.8%2023.6-23.6L437%20374l-23.6%2023.7zm-39.4%2039.4%2023.6-23.6%2015.8%2015.7L374%20437zm15.8-63%2023.6-23.6%2015.7%2015.7-23.6%2023.7zm-39.4%2039.4%2023.6-23.6%2015.8%2015.7-23.7%2023.6zm63-220.4-63-63%2015.8-15.7%2063%2063zm-63-15.7-23.6-23.7%2015.7-15.7%2023.7%2023.6zm39.4%2039.3-23.7-23.6%2015.8-15.7%2023.6%2023.6zm7.8-86.6-23.6-23.6L374%2075l23.7%2023.6zm39.4%2039.4L397.7%20130l15.7-15.8L437%20138zM90.7%20358.3l63%2063-15.8%2015.7-63-63zm63%2015.7%2023.6%2023.7-15.7%2015.7-23.7-23.6zm-39.4-39.3%2023.6%2023.6-15.7%2015.8-23.6-23.7zm23.6-23.6%2063%2063-15.7%2015.7-63-63zm15.8-220.4-63%2063L75%20137.9l63-63zm23.6%2023.6-63%2063-15.7-15.8%2063-63zm23.6%2023.6-63%2063-15.7-15.7%2063-63z%22%2F%3E%3C%2Fsvg%3E"},KW:{name:"Kuwait",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M138.4%20147%20512%20167v178l-373.6%2020z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%200%20138.4%20167H512V0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20512%20138.4-167H512v167z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M167%20167%200%200v512l167-167z%22%2F%3E%3C%2Fsvg%3E"},KG:{name:"Kyrgyzstan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M381.2%20256%20330%20280l27.3%2049.6-55.6-10.6-7%2056.1-38.7-41.3-38.7%2041.3-7-56.1-55.6%2010.6%2027.3-49.5-51.2-24.1%2051.2-24-27.3-49.6%2055.6%2010.6%207-56.1%2038.7%2041.3%2038.7-41.3%207%2056.1%2055.6-10.6-27.3%2049.5z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2277.9%22%20fill%3D%22%23d80027%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M217%20256c-1.8%200-3.7.1-5.5.3a44.3%2044.3%200%200%200%2010.4%2028.3%2078%2078%200%200%201%2015-24.9A55.4%2055.4%200%200%200%20217%20256zm24%2042a44.4%2044.4%200%200%200%2030%200c-2.6-10-7.8-19-15-26-7.2%207-12.4%2016-15%2026zm53.6-64.3a44.5%2044.5%200%200%200-77.2%200%2077.4%2077.4%200%200%201%2038.6%2010.5%2077.4%2077.4%200%200%201%2038.6-10.5zm-19.6%2026a78%2078%200%200%201%2015.1%2025%2044.3%2044.3%200%200%200%2010.4-28.4%2055.8%2055.8%200%200%200-5.5-.3%2055.3%2055.3%200%200%200-20%203.7z%22%2F%3E%3C%2Fsvg%3E"},LA:{name:"Lao People's Democratic Republic",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v144.8l-45.8%20113L512%20367.4V512H0V367.4l46.3-111.1L0%20144.8z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20144.8h512v222.6H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256.1%22%20r%3D%2289%22%20fill%3D%22%23eee%22%2F%3E%3C%2Fsvg%3E"},LV:{name:"Latvia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h512v189.2l-38.5%2070%2038.5%2063.6V512H0V322.8l39.4-63L0%20189.1z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20189.2h512v133.6H0z%22%2F%3E%3C%2Fsvg%3E"},LB:{name:"Lebanon",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v144.8l-45.8%20113L512%20367.4V512H0V367.4l46.3-111.1L0%20144.8z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20144.8h512v222.6H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M322.8%20300.5%20256%20178.1l-66.8%20122.4h50.1V334h33.4v-33.4z%22%2F%3E%3C%2Fsvg%3E"},LS:{name:"Lesotho",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20144.7%20255.3-36.5L512%20144.7v222.6L250.5%20407%200%20367.3z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M272.7%20250.4v-61.2h-33.4v61.2L199%20290.8a66.7%2066.7%200%200%200%20114%200z%22%2F%3E%3C%2Fsvg%3E"},LR:{name:"Liberia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20232.7%20256%200h256l-19.2%2024L512%2046.4v46.7l-19.6%2022.6%2019.6%2023.9v46.5L493.8%20209l18.2%2023.7v46.6L493%20304l19%2021.8v46.6l-18%2023.5%2018%2023v46.6l-253.3%2021L0%20465.5v-46.6l18.8-21.6L0%20372.4v-46.6l19.6-21.9L0%20279.3z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m256%200-22%2046.5h278V0zm-17.1%2093.2v46.5H512V93.2zm-4.9%2093%2022%2046.5h256v-46.5zM0%20279.3v46.5h512v-46.5zm0%2093.1v46.5h512v-46.5zm0%2093.1V512h512v-46.5z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h256v232.7H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m152.4%2066.8%2016.6%2051h53.6l-43.4%2031.5%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51-43.4-31.5h53.6z%22%2F%3E%3C%2Fsvg%3E"},LY:{name:"Libya",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m0%20144.7%20257-22.4%20255%2022.4v222.6l-254.9%2031L0%20367.3z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22m315.6%20209.3%2021%2029%2034-11-21%2029%2021%2028.8-34-11-21%2029v-36l-34-11%2034-11z%22%2F%3E%3Cpath%20d%3D%22M258.3%20328.4a72.3%2072.3%200%201%201%2034.4-136%2089%2089%200%201%200%200%20127.3%2072%2072%200%200%201-34.4%208.7z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},LI:{name:"Liechtenstein",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20256%20255.2-39.6L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M189.2%20178a33.4%2033.4%200%200%200-55.6-24.8v-19.6h11.1v-22.3h-11.1v-11.1h-22.3v11.1h-11.1v22.3h11.1v19.6A33.4%2033.4%200%200%200%2066.8%20203v19.6H178V203c6.8-6.1%2011.1-15%2011.1-25z%22%2F%3E%3C%2Fsvg%3E"},LT:{name:"Lithuania",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},LHO:{name:"Luhansk Oblast",flag:"data:image/svg+xml,%3Csvg%20width%3D%22512%22%20height%3D%22512%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23a)%22%3E%3Cpath%20d%3D%22M0%20341.333h512V512H0V341.333Z%22%20fill%3D%22%23D52B1E%22%2F%3E%3Cpath%20d%3D%22M0%20170.667h512v170.666H0V170.667Z%22%20fill%3D%22%230039A6%22%2F%3E%3Cpath%20d%3D%22M0%200h512v170.667H0V0Z%22%20fill%3D%22%2364C8FF%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22a%22%3E%3Crect%20width%3D%22512%22%20height%3D%22512%22%20rx%3D%22256%22%20fill%3D%22%23fff%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"},LU:{name:"Luxembourg",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},MO:{name:"Macao",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M300.5%20245.3c-6.3%200-12.2%201.3-17.8%203.3%203-6.8%205.1-14.3%205.1-22.4%200-31.8-31.8-55.6-31.8-55.6s-31.8%2023.8-31.8%2055.6c0%208%202%2015.6%205%2022.4-5.5-2-11.4-3.3-17.7-3.3-31.8%200-55.7%2031.8-55.7%2031.8s23.9%2031.8%2055.7%2031.8C230%20309%20246%20298%20256%20289c10%209.1%2025.9%2020%2044.5%2020%2031.8%200%2055.7-31.8%2055.7-31.8s-23.9-31.8-55.7-31.8z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%20100.2%206.6%2020.2h21.2l-17.2%2012.5%206.6%2020.2-17.2-12.5-17.2%2012.5%206.6-20.2-17.2-12.5h21.2zm-80.8%2035.3%2012.6%2011.4%2014.7-8.5-6.9%2015.5%2012.7%2011.4-17-1.8-6.9%2015.6-3.5-16.7-17-1.7%2014.8-8.5zM116%20194.7l16.6%203.5%208.5-14.7%201.8%2017%2016.6%203.5-15.5%206.9%201.8%2016.9-11.4-12.6-15.5%206.9%208.5-14.8zm220.8-59.2L324.2%20147l-14.7-8.5%206.9%2015.5-12.7%2011.4%2017-1.8%206.9%2015.6%203.5-16.7%2017-1.7-14.8-8.5zm59.2%2059.2-16.6%203.5-8.5-14.7-1.8%2017-16.6%203.5%2015.5%206.9-1.8%2016.9%2011.4-12.6%2015.5%206.9-8.5-14.8z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M256%20398c25.3%200%2048.5-8.5%2067.2-22.6H188.8c18.7%2014.1%2042%2022.6%2067.2%2022.6zm-102-66.8a111.3%20111.3%200%200%200%2013.2%2022.6h177.6a111.3%20111.3%200%200%200%2013.2-22.6z%22%2F%3E%3C%2Fsvg%3E"},MK:{name:"Macedonia (the former Yugoslav Republic of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h68.2l86%2033.6L216.5%200h78.8l61.2%2034.8L443.8%200H512v68.3l-31.4%2088%2031.4%2060.2v78.8L477.4%20356l34.6%2087.8V512h-68.2l-77-37.3-71.3%2037.3h-78.8l-61-39.7L68.2%20512H0v-68l40.3-88.2L0%20295.5v-78.8L40.3%20157%200%2068.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M295.5%20512h148.3L256%20256zm-79-512H68.2L256%20256zm.2%20512L256%20256%2068.2%20512zM0%20216.7%20256%20256%200%2068.2zm0%20227.2L256%20256%200%20295.5zM512%2068.3%20256%20256l256-39.5zM443.8%200H295.3L256%20256zM512%20443.8V295.3L256%20256z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2289%22%20fill%3D%22%23d80027%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2266.8%22%20fill%3D%22%23ffda44%22%2F%3E%3C%2Fsvg%3E"},MG:{name:"Madagascar",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h167l45.6%20257.6L167.1%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M167%200h345v256l-176.7%2053.5L166.9%20256z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M167%20256h345v256H167z%22%2F%3E%3C%2Fsvg%3E"},MW:{name:"Malawi",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m332.5%20122.4-31.2-14.7%2016.6-30.3-34%206.5-4.3-34.3L256%2075l-23.6-25.3L228%2084l-34-6.5%2016.7%2030.3-31.3%2014.7z%22%2F%3E%3C%2Fsvg%3E"},MY:{name:"Malaysia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20256%20256%200h256v55.7l-19.5%2033%2019.5%2033.7v66.8l-22.1%2037.7L512%20256v66.8l-20.2%2038.5%2020.2%2028.3v66.7l-254.5%2028.2L0%20456.3v-66.7l26-35.1-26-31.7z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%20256h256v-66.8H222.9zm-33.1-133.6H512V55.7H222.9zM512%20512v-55.7H0V512zM0%20389.6h512v-66.8H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h256v256H0z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22M170.2%20219.1a63.3%2063.3%200%201%201%2030.1-119%2078%2078%200%201%200%200%20111.4%2063%2063%200%200%201-30%207.6z%22%2F%3E%3Cpath%20d%3D%22m188%20111.3%2011.3%2023.5%2025.4-5.9-11.4%2023.5%2020.4%2016.2-25.4%205.7.1%2026-20.3-16.2-20.4%2016.2.1-26-25.4-5.7%2020.4-16.2-11.4-23.5%2025.4%206z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},MV:{name:"Maldives",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M89%20133.6h334v244.8H89z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M297.2%20328.3a72.3%2072.3%200%201%201%2034.4-136%2089%2089%200%201%200%200%20127.3%2072%2072%200%200%201-34.4%208.7z%22%2F%3E%3C%2Fsvg%3E"},ML:{name:"Mali",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M167%200h178l25.9%20252.3L345%20512H167l-29.8-253.4z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},MT:{name:"Malta",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h256l52%20259.2L256%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%200h256v512H256z%22%2F%3E%3Cpath%20fill%3D%22%23acabb1%22%20d%3D%22M178%20100.2V66.8h-33.3v33.4h-33.4v33.4h33.4V167h33.4v-33.4h33.4v-33.4z%22%2F%3E%3C%2Fsvg%3E"},MH:{name:"Marshall Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h397.6L512%20114.2V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M512%200H397.6L0%20512%20493.4%2053.7z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22m0%20512%20512-397.8V0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M222.2%20150.1%20191%20164.8l16.7%2030.3-34-6.5-4.3%2034.3-23.6-25.2-23.7%2025.2-4.3-34.3-33.9%206.5%2016.6-30.3-31.2-14.7%2031.2-14.7L84%20105.1l34%206.5%204.2-34.3%2023.7%2025.3%2023.6-25.3%204.3%2034.3%2034-6.5-16.7%2030.3z%22%2F%3E%3C%2Fsvg%3E"},MQ:{name:"Martinique",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h222.6l31%2023.4L289.4%200H512v222.6l-21.5%2031%2021.5%2035.8V512H289.4l-34.2-20.5-32.6%2020.5H0V289.4l22.7-32.6L0%20222.6z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M222.6%200v222.6H0v66.8h222.6V512h66.8V289.4H512v-66.8H289.4V0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M343.4%20162.4a6.2%206.2%200%200%201%206.2-6.1h13.2a38%2038%200%200%200%200-75.9h-12.6c-4-3-9.6-5-15.6-5-12.7%200-23%208.3-23%2018.4%200%2010%2010.1%2018.2%2022.6%2018.3h28.6a6.2%206.2%200%200%201%200%2012.4h-13.2a38%2038%200%200%200%200%2075.8h51.1v-31.7h-51.1a6.2%206.2%200%200%201-6.2-6.2zm-200.4%200a6.2%206.2%200%200%201%206.2-6.1h13.2a38%2038%200%200%200%200-75.9H150c-4.1-3-9.6-5-15.7-5-12.6%200-22.9%208.3-22.9%2018.4%200%2010%2010%2018.2%2022.6%2018.3h28.5a6.2%206.2%200%200%201%200%2012.4h-13.2a38%2038%200%200%200%200%2075.8h51.1v-31.7h-51a6.2%206.2%200%200%201-6.3-6.2zm200.4%20236.2a6.2%206.2%200%200%201%206.2-6.2h13.2a38%2038%200%200%200%200-75.8h-12.6c-4-3-9.6-5-15.6-5-12.7%200-23%208.3-23%2018.4%200%2010%2010.1%2018.1%2022.6%2018.3h28.6a6.2%206.2%200%200%201%206.2%206.2%206.2%206.2%200%200%201-6.2%206.2h-13.2a38%2038%200%200%200%200%2075.8h51v-31.7h-51a6.2%206.2%200%200%201-6.2-6.2zm-200.4%200a6.2%206.2%200%200%201%206.2-6.2h13.2a38%2038%200%200%200%200-75.8H150c-4.1-3-9.6-5-15.7-5-12.6%200-22.9%208.3-22.9%2018.4%200%2010%2010%2018.1%2022.6%2018.3h28.5a6.2%206.2%200%200%201%206.2%206.2%206.2%206.2%200%200%201-6.2%206.2h-13.2a38%2038%200%200%200%200%2075.8h51.1v-31.7h-51a6.2%206.2%200%200%201-6.3-6.2z%22%2F%3E%3C%2Fsvg%3E"},MR:{name:"Mauritania",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22M256%20295.8a89%2089%200%200%201-87-70%2089.4%2089.4%200%200%200-2%2019%2089%2089%200%201%200%20178%200%2089.4%2089.4%200%200%200-2-19%2089%2089%200%200%201-87%2070z%22%2F%3E%3Cpath%20d%3D%22m256%20178%208.3%2025.6H291l-21.7%2015.8%208.3%2025.5L256%20229l-21.7%2015.8%208.3-25.5-21.7-15.8h26.8z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},MU:{name:"Mauritius",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%20378.3%20254-37.1%20258%2037V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20256.1%20252.2-33.3L512%20256v122.4H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20133.7%20249.7%2097%20512%20133.7v122.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v133.7H0z%22%2F%3E%3C%2Fsvg%3E"},YT:{name:"Mayotte",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23acabb1%22%20d%3D%22M113%20139c-4%200-11%202-23%208a59%2059%200%200%200-13%209c-28%2027-20%2068-11%2079%203%204%2016%2023%2032%2030%2022%208%2036%2028%2037%2051%200%2024-15%2044-34%2046h-4c-19%200-36-19-37-43v2c1%2029%2020%2052%2043%2052s44-12%2055-32l5-8a43%2043%200%200%200%204-14c4-19%206-70-47-95-40-20-45-36-40-43a4%204%200%200%201%203-1%2019%2019%200%200%200%2018%2019%2015%2015%200%200%200%2010-4s18%2018%2024%2011%200-7-6-14c-5-7%200-21-11-28-12-7-18-7-12-15a16%2016%200%200%201%2012-7s0-3-5-3zm287%200c-5%200-5%203-5%203%205%201%209%203%2012%207%205%208%200%208-12%2015s-6%2021-12%2028c-5%207-11%207-5%2014%205%207%2024-11%2024-11a15%2015%200%200%200%2010%204%2019%2019%200%200%200%2018-19%204%204%200%200%201%202%201c6%207%201%2023-40%2043-52%2025-50%2076-47%2095l5%2014a189%20189%200%200%200%205%208c10%2020%2032%2033%2054%2032%2024%200%2043-23%2044-52v-2c-2%2024-18%2043-38%2043h-4c-19-2-33-22-33-46%201-23%2015-43%2036-51%2016-7%2029-26%2033-30%208-11%2017-52-11-79a59%2059%200%200%200-14-9c-12-6-18-8-22-8zM26%20199c-1%200-2%201-2%203-2%2016-1%2052%2033%2064a2%202%200%200%200%203-1l6-8v-4c-5-7-22-31-22-44l-2-2a19%2019%200%200%201-15-7l-1-1zm460%200-1%201a19%2019%200%200%201-15%207l-2%202c0%2013-17%2037-21%2044v4l5%208a2%202%200%200%200%203%201c34-12%2035-48%2034-64l-3-3z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M211%20147a22.5%2022.5%200%200%200%200%2045%2022.5%2022.5%200%200%200%200%2045l45%2032%2045-32a22.5%2022.5%200%200%200%200-45%2022.5%2022.5%200%201%200-22.5-22.5%2022.5%2022.5%200%200%200-45%200A22.5%2022.5%200%200%200%20211%20147z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M211%20327a22.5%2022.5%200%200%201-22.5-22.5A22.5%2022.5%200%200%201%20211%20282a22.5%2022.5%200%200%201-22.5-22.5A22.5%2022.5%200%200%201%20211%20237h90a22.5%2022.5%200%200%201%2022.5%2022.5A22.5%2022.5%200%200%201%20301%20282a22.5%2022.5%200%200%201%2022.5%2022.5A22.5%2022.5%200%200%201%20301%20327a22.5%2022.5%200%200%201-22.5-22.5A22.5%2022.5%200%200%201%20256%20327a22.5%2022.5%200%200%201-22.5-22.5A22.5%2022.5%200%200%201%20211%20327z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M232%20188a25%2025%200%200%200-1%205%2025%2025%200%200%200%2025%2025%2025%2025%200%200%200%2025-25%2025%2025%200%200%200-1-5%2025%2025%200%200%201-24%2019%2025%2025%200%200%201-24-19z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M283%20254a4%204%200%200%200-4%204v8l-7-4a4%204%200%200%200-2-1%204%204%200%200%200-3%202%204%204%200%200%200%201%206l7%204-7%203a4%204%200%200%200-1%206%204%204%200%200%200%205%201l7-3v7a4%204%200%200%200%204%204%204%204%200%200%200%204-4v-7l7%203a4%204%200%200%200%205-1%204%204%200%200%200-1-6l-7-3%207-4a4%204%200%200%200%201-6%204%204%200%200%200-3-2%204%204%200%200%200-2%201l-7%204v-8a4%204%200%200%200-4-4zm-54%200a4%204%200%200%200-4%204v8l-7-4a4%204%200%200%200-2-1%204%204%200%200%200-3%202%204%204%200%200%200%201%206l7%204-7%203a4%204%200%200%200-1%206%204%204%200%200%200%205%201l7-3v7a4%204%200%200%200%204%204%204%204%200%200%200%204-4v-7l7%203a4%204%200%200%200%205-1%204%204%200%200%200-1-6l-7-3%207-4a4%204%200%200%200%201-6%204%204%200%200%200-3-2%204%204%200%200%200-2%201l-7%204v-8a4%204%200%200%200-4-4z%22%2F%3E%3C%2Fsvg%3E"},MX:{name:"Mexico",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M144%200h223l33%20256-33%20256H144l-32-256z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h144v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M368%200h144v512H368z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20277v10h12l10-22z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M160%20242a96%2096%200%200%200%20192%200h-11a85%2085%200%200%201-170%200zm39%2017-4%202c-2%202-2%206%201%208%2015%2014%2034%2022%2054%2024v17h12v-17c20-2%2039-10%2054-24%203-2%203-6%201-8s-6-2-8%200a78%2078%200%200%201-53%2021c-19%200-38-8-53-21z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M256%20316c-14%200-28-5-40-13l6-9c20%2013%2048%2013%2068%200l7%209c-12%208-26%2013-41%2013z%22%2F%3E%3Cpath%20fill%3D%22%23751a46%22%20d%3D%22M256%20174c22%2011%2012%2033%2011%2034l-2-4c-5-11-18-18-31-18v11c6%200%2011%205%2011%2011-7%207-9%2017-4%2026l4%208-13%2023%2029-7%2018%2018v-11l11%2011%2023-11-35-21-5-21%2028%2016c4%2011%2012%2021%2023%2026%209-83-42-91-61-91z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M222%20271c-15%200-33-12-38-40l11-2c4%2023%2018%2031%2027%2031%203%200%205-1%206-3%200-2%200-3-6-5-3-1-7-2-10-5-10-12%204-24%2011-30%201-1%202-2%201-3%200%200-2-2-5-2-7%200-12-4-14-11-2-6%202-13%208-17l5%2011c-2%200-2%202-2%204%200%200%201%202%203%202%207%200%2014%204%2016%209%201%203%202%209-5%2015-7%207-11%2012-9%2015l5%201c5%202%2014%205%2013%2017-1%208-8%2013-17%2013h-1z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m234%20186-12%2011v11l18-9c3-1%203-5%201-7z%22%2F%3E%3Ccircle%20cx%3D%22172%22%20cy%3D%22275%22%20r%3D%228%22%20fill%3D%22%23ffda44%22%2F%3E%3Ccircle%20cx%3D%22189%22%20cy%3D%22302%22%20r%3D%228%22%20fill%3D%22%23ffda44%22%2F%3E%3Ccircle%20cx%3D%22216%22%20cy%3D%22323%22%20r%3D%228%22%20fill%3D%22%23ffda44%22%2F%3E%3Ccircle%20cx%3D%22297%22%20cy%3D%22323%22%20r%3D%228%22%20fill%3D%22%23ffda44%22%2F%3E%3Ccircle%20cx%3D%22324%22%20cy%3D%22302%22%20r%3D%228%22%20fill%3D%22%23ffda44%22%2F%3E%3Ccircle%20cx%3D%22341%22%20cy%3D%22275%22%20r%3D%228%22%20fill%3D%22%23ffda44%22%2F%3E%3Crect%20width%3D%2234%22%20height%3D%2222%22%20x%3D%22239%22%20y%3D%22299%22%20fill%3D%22%23ff9811%22%20rx%3D%2211%22%20ry%3D%2211%22%2F%3E%3C%2Fsvg%3E"},FM:{name:"Micronesia (Federated States of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m256%20111.3%2011%2034h35.8l-29%2021%2011.1%2034-28.9-21-29%2021%2011.1-34-29-21H245zM111.3%20256l34-11v-35.8l21%2029%2034-11.1-21%2028.9%2021%2029-34-11.1-21%2029V267zM256%20400.7l-11-34h-35.8l29-21-11.1-34%2028.9%2021%2029-21-11.1%2034%2029%2021H267zM400.7%20256l-34%2011v35.8l-21-29-34%2011.1%2021-28.9-21-29%2034%2011.1%2021-29V245z%22%2F%3E%3C%2Fsvg%3E"},MD:{name:"Moldova (Republic of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h144.7l36%20254.6-36%20257.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M367.3%200H512v512H367.3l-29.7-257.3z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M144.7%200h222.6v512H144.7z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M345.1%20201.4H284a27.8%2027.8%200%201%200-55.6%200h-61.2a28.2%2028.2%200%200%200%2028.3%2027.4h-1a27.4%2027.4%200%200%200%2027.5%2027.4c0%2013.4%209.6%2024.5%2022.3%2027l-21.6%2048.7a88.8%2088.8%200%200%200%2033.5%206.5%2088.8%2088.8%200%200%200%2033.5-6.5L268.1%20283a27.4%2027.4%200%200%200%2022.3-26.9%2027.4%2027.4%200%200%200%2027.4-27.4h-.9a28.2%2028.2%200%200%200%2028.3-27.4z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256.1%20239.3%20220%20256v33.4l36.2%2022.3%2036.2-22.3V256z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M220%20222.6h72.3V256H220z%22%2F%3E%3C%2Fsvg%3E"},MC:{name:"Monaco",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20256%20258.2-43.3L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3C%2Fsvg%3E"},MN:{name:"Mongolia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h167l84.9%2045L345%200h167v512H345l-87.7-48.1L167%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M167%200h178v512H167z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22M122.4%20256h22.3v89h-22.3zm-89%200h22.3v89H33.4z%22%2F%3E%3Ccircle%20cx%3D%2289%22%20cy%3D%22289.4%22%20r%3D%2222.3%22%2F%3E%3Ccircle%20cx%3D%2289%22%20cy%3D%22211.5%22%20r%3D%2211.1%22%2F%3E%3Cpath%20d%3D%22M66.8%20322.8h44.5V345H66.8zm0-89h44.5V256H66.8zM89%20133.5l8%2024.2h25.4l-20.6%2015%207.9%2024.3L89%20182l-20.6%2015%207.9-24.3-20.6-15h25.5z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},ME:{name:"Montenegro",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512v44.5l-43.6%20209.7L512%20467.5V512H0v-44.5l46.6-212L0%2044.5z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%2044.5h512v423H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M200.3%20189.2h111.4v-44.5l-22.3%2011.1-33.4-33.4-33.4%2033.4-22.3-11.1zM356.2%20256h-55.7a25.5%2025.5%200%200%200%203.5-12.8%2025.7%2025.7%200%200%200-48.3-12.1%2025.7%2025.7%200%201%200-45%2024.9h-54.9c0%2017%2014.9%2030.8%2031.9%2030.8h-1c0%2014%209.2%2025.8%2022%2029.6l-25%2025%2023.6%2023.6%2033.5-33.5c1.3.5%202.6.9%204%201.1l-20.2%2045.7a83.2%2083.2%200%200%200%2031.4%206.2%2083.2%2083.2%200%200%200%2031.4-6.2l-20.2-45.7a25.4%2025.4%200%200%200%204-1.1l33.5%2033.5%2023.6-23.6-25-25a30.8%2030.8%200%200%200%2022-29.6h-1c17%200%2031.9-13.8%2031.9-30.8z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m256%20272.7-36.2%2016.7v33.4L256%20345l36.2-22.2v-33.4z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M219.8%20256h72.4v44.5h-72.4z%22%2F%3E%3C%2Fsvg%3E"},MS:{name:"Montserrat",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M289.4%20133.6V256l78%2040.4%2077.9-40.4V133.6h-156z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M289.4%20256c0%2059.6%2077.9%2078%2077.9%2078s78-18.4%2078-78h-156z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M400.7%20189.2h-22.3V167h-22.2v22.2h-22.3v22.3h22.3v66.8h22.2v-66.8h22.3z%22%2F%3E%3C%2Fsvg%3E"},MA:{name:"Morocco",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M407.3%20210H291.7L256%20100.3%20220.3%20210H104.7l93.5%2068-35.7%20109.8L256%20320l93.5%2068-35.7-110zm-183%2059.5%2012.2-37.1h39l12.1%2037.1-31.6%2023-31.6-23zm44-59.4h-24.6l12.3-37.9zm38.3%2045.7-7.7-23.4h39.9zM213%20232.4l-7.7%2023.4-32.2-23.4zm-8.3%2097.3%2012.3-38%2020%2014.5zm70.1-23.4%2020-14.5%2012.3%2037.9z%22%2F%3E%3C%2Fsvg%3E"},MZ:{name:"Mozambique",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m99%20136.8%20413%2020v31.5l-35.9%2066.1%2036.2%2068.4-.3%2032.4-413%2022z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M512%20156.8V0H0l122%20156.8z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M167%20188.3v134.5h345.3l-.3-134.5z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M512%20355.2V512H0l122-156.8z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m103.6%20189.2%2016.6%2051h53.6l-43.4%2031.6%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51-43.4-31.6H87z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M55.1%20256h97v44.5h-97z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m170.5%20205-15.7-15.8-51.2%2051.2-51.1-51.2L36.7%20205%2088%20256l-51.2%2051.3%2015.8%2015.5%2051.1-51%2051.2%2051%2015.7-15.5-51.2-51.2z%22%2F%3E%3C%2Fsvg%3E"},MM:{name:"Myanmar",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M431.5%20216.5h-134L256%2089l-41.4%20127.6h-134l108.3%2078.8L147.5%20423%20256%20345l108.5%2078-41.4-127.6z%22%2F%3E%3C%2Fsvg%3E"},NA:{name:"Namibia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20401.9%20160.6-237.1L401.9%200H449l63%2063v47.3L350.3%20339.2%20110.3%20512H63L0%20449z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%20512h63L512%2063V0h-63L0%20449z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200v401.9L401.9%200z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M512%20512V110.3L110.3%20512z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m211.5%20144.7-28.7%2013.5L198%20186l-31.2-6-4%2031.5-21.6-23.2-21.7%2023.2-4-31.5-31%206%2015.2-27.8L71%20144.7l28.7-13.5-15.3-27.8%2031.1%206%204-31.5%2021.7%2023.2L163%2078l4%2031.5%2031-6-15.2%2027.8z%22%2F%3E%3C%2Fsvg%3E"},NR:{name:"Nauru",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v233.7L494.3%20257l17.7%2021.3V512H0V278.3l18.7-22.9L0%20233.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m211.5%20345-28.7%2013.5%2015.3%2027.8-31.2-6-4%2031.5-21.6-23.1-21.7%2023.1-4-31.4-31.1%206%2015.3-27.9L71%20345l28.7-13.4-15.3-27.8%2031.1%206%204-31.5%2021.7%2023.1%2021.7-23.1%204%2031.4%2031-6-15.2%2027.9z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%20233.7h512v44.6H0z%22%2F%3E%3C%2Fsvg%3E"},NP:{name:"Nepal",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M228.4%200H512v512h-27.4L159.4%20258.5z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M510.5%20283.8%20228.5%200h-39.3l-70.9%20253.8L445.2%20512h39.4L256.4%20283.8h254z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M445.2%20256%20189.2%200H0v512h445.2l-256-256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m243.5%20378-31.3-14.7L229%20333l-34%206.5-4.3-34.3-23.6%2025.2-23.7-25.2-4.3%2034.3-34-6.5%2016.7%2030.3L90.4%20378l31.3%2014.7-16.6%2030.3%2034-6.5%204.2%2034.3%2023.7-25.2%2023.6%2025.2%204.3-34.3%2034%206.5-16.7-30.3zM149.8%2089l-3.2%2025-24.7-4.7%2012.1%2022-22.7%2010.7h-11.1a66.8%2066.8%200%200%200%20133.5%200h-11.1L200%20131.3l12-22-24.6%204.7-3.1-25-17.2%2018.4z%22%2F%3E%3C%2Fsvg%3E"},NL:{name:"Netherlands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},NC:{name:"New Caledonia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%20352h512v160H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20160h512v192H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v160H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M398%20256a168%20168%200%201%201-336%200%20168%20168%200%200%201%20336%200z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M230%2080a176%20176%200%201%200%200%20352%20176%20176%200%200%200%200-352zm-8%2016v34c-8%204-14%208-15%2016l-1%2016%206-3%2010-4v8a24%2024%200%200%200-16%2023%2024%2024%200%200%200%2016%2022v8h-20v16h20v8a24%2024%200%200%200-16%2022%2024%2024%200%200%200%2016%2023v7h-20v17h20v7a24%2024%200%200%200-16%2023%2024%2024%200%200%200%2016%2022v8c-10%200-18%203-23%207-7%205-22%2020-30%2028a160%20160%200%200%201%2053-308zm16%200a160%20160%200%200%201%2051%20309l-30-29c-5-4-12-6-21-7v-8a24%2024%200%200%200%2016-22%2024%2024%200%200%200-16-23v-7h21v-16h-21v-8a24%2024%200%200%200%2016-23%2024%2024%200%200%200-16-22v-8h21v-16h-21v-7a24%2024%200%200%200%2016-23%2024%2024%200%200%200-16-23v-20c6-5%2011-13%2017-23%204-8%202-11%202-11l-2%203-17%2011V96z%22%2F%3E%3C%2Fsvg%3E"},NZ:{name:"New Zealand",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Zm382%2092-11%2035h-37l30%2021-12%2035%2030-22%2030%2022-12-35%2030-21h-37l-11-35Zm61%2072-11%2035h-37l30%2021-11%2035%2029-21%2030%2021-12-35%2030-21h-37Zm-123%2010-11%2035h-37l30%2022-11%2035%2029-22%2030%2022-11-35%2029-22h-36zm59%20130-11%2035h-37l30%2021-11%2035%2029-21%2030%2021-11-35%2029-21h-36z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97zm251%20201-5%2018h-19l15%2010-6%2018%2015-11%2015%2011-5-18%2014-10h-18Zm-59-129-5%2017h-19l15%2011-6%2017%2015-11%2015%2011-6-17%2015-11h-18l-6-17zm123-11-6%2018h-18l15%2011-6%2017%2015-11%2015%2011-6-17%2015-11h-18l-6-18zm-61-72-6%2017h-18l15%2011-6%2017%2015-10%2015%2010-6-17%2015-11h-18z%22%2F%3E%3C%2Fsvg%3E"},NI:{name:"Nicaragua",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v144.7l-41.4%20111.7L512%20367.3V512H0V367.3l41.5-107.9L0%20144.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20144.7h512v222.6H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20178a78%2078%200%201%200%200%20156%2078%2078%200%200%200%200-156zm0%20122.5a44.5%2044.5%200%201%201%200-89%2044.5%2044.5%200%200%201%200%2089z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M294.6%20267.1%20256%20256l-38.6%2011.1-12.8%2022.3h102.8z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M256%20200.3%20230.3%20245l25.7%2011%2025.7-11.1z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M217.4%20267.1h77.2L281.7%20245h-51.4z%22%2F%3E%3C%2Fsvg%3E"},NE:{name:"Niger",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20144.7%20255.3-36.5L512%20144.7v222.6L250.5%20407%200%20367.3z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256.1%22%20r%3D%2289%22%20fill%3D%22%23ff9811%22%2F%3E%3C%2Fsvg%3E"},NG:{name:"Nigeria",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200v512h160l96-64%2096%2064h160V0H352l-96%2064-96-64Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M160%200h192v512H160Z%22%2F%3E%3C%2Fsvg%3E"},NU:{name:"Niue",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%20256%20256%200h256v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32l42-16%2041%2016h45l-8-16%208-15v-14l-16-42%2016-41V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M128%20256v-83l83%2083zm128-45-83-83h83z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m128%20128%20128%20128v-31l-97-97Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Z%22%2F%3E%3Ccircle%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%20fill%3D%22%230052b4%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m50%20198%2014-44%2015%2044-38-27h47zM162%2086l14-44%2015%2044-38-27h47ZM64%2017l28%2086-73-53h90l-73%2053Z%22%2F%3E%3C%2Fsvg%3E"},NF:{name:"Norfolk Island",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h144.7l108.4%2041.2L367.3%200H512v512H367.3l-110.2-41.4L144.7%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M144.7%200h222.6v512H144.7z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m323%20334-67-211.6L189.3%20334h50.1v55.7h33.4V334z%22%2F%3E%3C%2Fsvg%3E"},MP:{name:"Northern Mariana Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M248%20417.2a16.7%2016.7%200%200%201-15-11%2016.7%2016.7%200%200%201-29.7-7.6%2016.7%2016.7%200%200%201-27.6-13.5%2016.7%2016.7%200%200%201-24.3-18.9%2016.7%2016.7%200%200%201-17.8-5%2016.7%2016.7%200%200%201-2.3-18.3%2016.7%2016.7%200%200%201-15-26.8%2016.7%2016.7%200%200%201-9.2-29.4%2016.7%2016.7%200%200%201-3.1-30.5%2016.7%2016.7%200%200%201%203-30.6%2016.7%2016.7%200%200%201%209.2-29.4%2016.7%2016.7%200%200%201%2015-26.9%2016.7%2016.7%200%200%201%202.2-18.3c4.5-5.2%2011.5-7%2017.7-5a16.7%2016.7%200%200%201%206-17.5%2016.7%2016.7%200%200%201%2018.3-1.4%2016.7%2016.7%200%200%201%2027.6-13.6%2016.7%2016.7%200%200%201%2029.7-7.7%2016.7%2016.7%200%200%201%2030.7-1.6%2016.7%2016.7%200%200%201%2030.4%204.6%2016.7%2016.7%200%200%201%2028.9%2010.6%2016.7%2016.7%200%200%201%2026.1%2016.2c6-2.6%2013.2-1.5%2018.2%203.2a16.7%2016.7%200%200%201%204.1%2018%2016.7%2016.7%200%200%201%2017.7%2025.1%2016.7%2016.7%200%200%201%2015.4%2010.1%2016.7%2016.7%200%200%201-3.2%2018.2%2016.7%2016.7%200%200%201%206.2%2030c6%202.6%2010.2%208.5%2010.2%2015.4v.4c0%206.9-4.2%2012.8-10.2%2015.4a16.7%2016.7%200%200%201-6.1%2030%2016.7%2016.7%200%200%201-12.2%2028.3%2016.7%2016.7%200%200%201-.4%2018.5%2016.7%2016.7%200%200%201-17.1%206.8%2016.7%2016.7%200%200%201-4.2%2018c-5%204.7-12.2%205.7-18.1%203.2a16.7%2016.7%200%200%201-26%2016.3%2016.7%2016.7%200%200%201-28.8%2010.7%2016.7%2016.7%200%200%201-30.5%204.6%2016.7%2016.7%200%200%201-15.9%209.4z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22111.3%22%20fill%3D%22%23338af3%22%2F%3E%3Cpath%20fill%3D%22%23acabb1%22%20d%3D%22M280.4%20218.2c5.4-4%209-10.5%209-17.9v-11c0-12.4-10-22.3-22.3-22.3H245c-12.3%200-22.3%2010-22.3%2022.2v11.1c0%207.4%203.6%2013.9%209%2018L211.5%20423s11.1%2011%2044.5%2011%2044.5-11%2044.5-11z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m256%20167%2019.3%2059.5H338l-50.6%2036.8%2019.3%2059.5L256%20286l-50.6%2036.8%2019.3-59.5-50.6-36.8h62.6z%22%2F%3E%3C%2Fsvg%3E"},NO:{name:"Norway",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h100.2l66.1%2053.5L233.7%200H512v189.3L466.3%20257l45.7%2065.8V512H233.7l-68-50.7-65.5%2050.7H0V322.8l51.4-68.5-51.4-65z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M100.2%200v189.3H0v33.4l24.6%2033L0%20289.5v33.4h100.2V512h33.4l30.6-26.3%2036.1%2026.3h33.4V322.8H512v-33.4l-24.6-33.7%2024.6-33v-33.4H233.7V0h-33.4l-33.8%2025.3L133.6%200z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M133.6%200v222.7H0v66.7h133.6V512h66.7V289.4H512v-66.7H200.3V0z%22%2F%3E%3C%2Fsvg%3E"},OM:{name:"Oman",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M189.2%200H512v167l-347.5%2024.6z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m163%20320%20349%2025v167H189.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h189.2v167H512v178H189.2v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M156.6%20112.7%20133%2089l-15.7%2015.8L101.5%2089%2078%20112.7l15.8%2015.7L78%20144l23.6%2023.6%2015.8-15.7%2015.7%2015.7%2023.6-23.6-15.7-15.7z%22%2F%3E%3C%2Fsvg%3E"},PK:{name:"Pakistan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h133.6l50.2%20252.5L133.6%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M133.6%200H512v512H133.6z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M365.5%20298.3A72.3%2072.3%200%201%201%20313.7%20168a89%2089%200%201%200%2074.6%20103.2%2072%2072%200%200%201-22.8%2027.2zM364%20167l18.2%2019.6%2024.3-11.3-13%2023.5%2018.2%2019.6-26.3-5.1-13%2023.4-3.3-26.7-26.1-5%2024.4-11.3z%22%2F%3E%3C%2Fsvg%3E"},PW:{name:"Palau",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Ccircle%20cx%3D%22200.3%22%20cy%3D%22256%22%20r%3D%22111.3%22%20fill%3D%22%23ffda44%22%2F%3E%3C%2Fsvg%3E"},PS:{name:"Palestine, State of",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M41.3%20121.9%20512%20167v178L43.8%20391.3z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v167H111z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M111%20345h401v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3C%2Fsvg%3E"},PA:{name:"Panama",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h256l256%20256v256H256L0%20256z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20256v256h256V256z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%200h256v256H256z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m152.4%2089%2016.6%2051h53.6l-43.4%2031.6%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51L82.2%20140h53.6z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m359.6%20289.4%2016.6%2051h53.6L386.4%20372l16.6%2051-43.4-31.5-43.4%2031.6%2016.6-51-43.4-31.6H343z%22%2F%3E%3C%2Fsvg%3E"},PG:{name:"Papua New Guinea",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M512%20512%20301.3%20226.6%200%200v512z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22m0%200%20512%20512V0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m195%20346%204.2%2012.9h13.6l-11%208%204.2%2012.8-11-7.9-11%207.9%204.2-12.9-11-8h13.6zm-34.6-123.7%207%2021.5h22.5L171.7%20257l7%2021.5-18.3-13.3-18.2%2013.3%206.9-21.5-18.2-13.2h22.5zm0%20157.4%207%2021.5h22.5l-18.2%2013.2%207%2021.6-18.3-13.4-18.2%2013.4%206.9-21.6-18.2-13.2h22.5zm66-101.2%207%2021.5H256l-18.2%2013.3%206.9%2021.4-18.2-13.2-18.3%2013.2%207-21.4-18.3-13.3h22.5zm-132%200%207%2021.5h22.5l-18.2%2013.3%207%2021.4-18.3-13.2-18.3%2013.2%207-21.4L64.8%20300h22.5z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M430.3%20189a67%2067%200%200%200-42.6-19.7l48.2-37.6a89.7%2089.7%200%200%200-70.3-26A67.2%2067.2%200%200%200%20348.5%2076l-19.2%2038.2a28%2028%200%200%200-4.8-6.3%2028%2028%200%201%200-39.7%2039.7%2028%2028%200%200%200%206.3%204.8L253%20171.5a67.2%2067.2%200%200%200%2029.6%2017.2%2089.7%2089.7%200%200%200%2026%2070.2l42.2-54.2a16.8%2016.8%200%200%201%2011.9-4.9c4.4%200%208.7%201.7%2012%205a16.8%2016.8%200%200%201%204.8%2011.9c0%204.5-1.7%208.8-4.9%2012l15.9%2015.9a39.1%2039.1%200%200%200%203.7-51.4%2044.7%2044.7%200%200%201%2020.2%2011.6%2045%2045%200%200%201%200%2063.6l15.9%2015.9a67%2067%200%200%200%200-95.4z%22%2F%3E%3C%2Fsvg%3E"},PY:{name:"Paraguay",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20144.7%20255.3-36.5L512%20144.7v222.6L250.5%20407%200%20367.3z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m319%20182-23.6%2023.5a55.5%2055.5%200%200%201-39.4%2095%2055.7%2055.7%200%200%201-39.3-95L193%20182a89%2089%200%201%200%20126%200z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%20211.5%208.3%2025.5H291l-21.7%2015.8%208.3%2025.5-21.7-15.8-21.7%2015.8%208.3-25.5-21.7-15.8h26.8z%22%2F%3E%3C%2Fsvg%3E"},PE:{name:"Peru",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h167l86%2041.2L345%200h167v512H345l-87.9-41.4L167%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M167%200h178v512H167z%22%2F%3E%3C%2Fsvg%3E"},PH:{name:"Philippines",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v256l-265%2045.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M210%20256h302v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M175.3%20256%20144%20241.3l16.7-30.3-34%206.5-4.3-34.3-23.6%2025.2L75%20183.2l-4.3%2034.3-34-6.5%2016.7%2030.3L22.3%20256l31.2%2014.7L37%20301l34-6.5%204.2%2034.3%2023.7-25.2%2023.6%2025.2%204.3-34.3%2034%206.5-16.7-30.3zm-107-155.8%2010.4%2014.5%2017-5.4-10.6%2014.4%2010.4%2014.5-17-5.6L68%20147l.2-17.9-17-5.6%2017-5.4zm0%20264.8%2010.4%2014.6%2017-5.4-10.6%2014.3%2010.4%2014.6-17-5.7L68%20411.8l.2-17.9-17-5.6%2017-5.4zm148.4-132.4L206.3%20247l-17-5.4%2010.5%2014.4-10.4%2014.6%2017-5.7%2010.6%2014.4-.1-17.9%2017-5.6-17.1-5.4z%22%2F%3E%3C%2Fsvg%3E"},PN:{name:"Pitcairn",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23acabb1%22%20d%3D%22m401%20156-34%2011-33-11-11-28%2011-28h67l-11%2028Z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M289%20156v122c0%2060%2078%2078%2078%2078s78-18%2078-78V156H289z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M296%20307c20%2037%2071%2049%2071%2049s52-12%2071-49l-71-118-71%20118z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m445%20277-78-121-78%20121v1a62%2062%200%200%200%207%2029l71-110%2071%20110a62%2062%200%200%200%207-29z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3C%2Fsvg%3E"},PL:{name:"Poland",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20256%20256.4-44.3L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3C%2Fsvg%3E"},PT:{name:"Portugal",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20512h167l37.9-260.3L167%200H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%200H167v512h345z%22%2F%3E%3Ccircle%20cx%3D%22167%22%20cy%3D%22256%22%20r%3D%2289%22%20fill%3D%22%23ffda44%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M116.9%20211.5V267a50%2050%200%201%200%20100.1%200v-55.6H117z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M167%20283.8c-9.2%200-16.7-7.5-16.7-16.7V245h33.4v22c0%209.2-7.5%2016.7-16.7%2016.7z%22%2F%3E%3C%2Fsvg%3E"},PR:{name:"Puerto Rico",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m27%2063.3%20485%2039.1v102.4L477.3%20259l34.7%2048.2v102.4L27.4%20446.9z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%200%2051.2%20102.4H512V0zm0%20512h512V409.6H51.2zm180-204.8h332V204.8H180z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m103.6%20189.2%2016.6%2051h53.6l-43.4%2031.6%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51-43.4-31.6H87z%22%2F%3E%3C%2Fsvg%3E"},QA:{name:"Qatar",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h173l61%20255.8L173.4%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23751a46%22%20d%3D%22m173%200-72.7%2030.8L176%2063l-75.7%2032.2%2075.7%2032.1-75.7%2032.2%2075.7%2032.1-75.7%2032.1%2075.7%2032.2-75.7%2032.2%2075.7%2032.1-75.7%2032.2%2075.7%2032.1-75.7%2032.2%2075.7%2032.1-75.7%2032.2%2073.1%2031H512V0z%22%2F%3E%3C%2Fsvg%3E"},ROC:{name:"Republic of Crimea",flag:"data:image/svg+xml,%3Csvg%20width%3D%22512%22%20height%3D%22512%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23a)%22%3E%3Cpath%20d%3D%22M512%20426.667H0V512h512v-85.333Z%22%20fill%3D%22%23D80027%22%2F%3E%3Cpath%20d%3D%22M512%2085.3334H0V426.667h512V85.3334Z%22%20fill%3D%22%23EEE%22%2F%3E%3Cpath%20d%3D%22M512%200H0v85.3333h512V0Z%22%20fill%3D%22%230052B4%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22a%22%3E%3Crect%20width%3D%22512%22%20height%3D%22512%22%20rx%3D%22256%22%20fill%3D%22%23fff%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"},RE:{name:"Réunion",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M64%200%200%2064v160l32%2032-32%2032v224l256-32%20256%2032V288l-32-32%2032-32V64L448%200H288l-32%2032-32-32H64z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%20256%200%20512h512z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%20224v64l512-64v64z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20256%200%2064V0h64zm0%200L448%200h64v64zm0%200L224%200h64z%22%2F%3E%3C%2Fsvg%3E"},RO:{name:"Romania",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M167%200h178l25.9%20252.3L345%20512H167l-29.8-253.4z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},RU:{name:"Russian Federation",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},RW:{name:"Rwanda",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22m0%20378.5%20254.1-22.1L512%20378.5V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20256.1%20255-30.3%20257%2030.3v122.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m289.4%20150%2031.3%2014.6L304%20195l34-6.5%204.3%2034.3%2023.6-25.2%2023.7%2025.2%204.3-34.3%2034%206.5-16.7-30.3%2031.2-14.7-31.2-14.7%2016.6-30.3-34%206.5-4.2-34.3-23.7%2025.3-23.6-25.3-4.3%2034.3-34-6.5%2016.7%2030.3z%22%2F%3E%3C%2Fsvg%3E"},BL:{name:"Saint Barthélemy",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23acabb1%22%20d%3D%22M167%20178a28%2028%200%200%200-28%2028H55a28%2028%200%200%200%2028%2028%2028%2028%200%200%200%2028%2028%2028%2028%200%200%200%2028%2028h234a28%2028%200%200%200%2028-28%2028%2028%200%200%200%2028-28%2028%2028%200%200%200%2028-28h-84a28%2028%200%200%200-28-28z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M123%20357h44v44h-44zm222%200h44v44h-44zm-178%2011h178v44H167zm67-268v33.5L223%20145l-12-6v-17h-44v56l89%2014%2089-14v-56h-44v17l-12%206-11-11.5V100z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M167%20178v112c0%2068%2089%2088.5%2089%2088.5s89-20.4%2089-88.5V178z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M167%20222.1h178v69H167z%22%2F%3E%3C%2Fsvg%3E"},SH:{name:"Saint Helena, Ascension and Tristan da Cunha",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20d%3D%22M288%20128h160v80l-80%2032-80-32z%22%20style%3D%22fill%3A%23eee%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M368%20140a14%2014%200%200%200-14%2014h-42a14%2014%200%200%200%2014%2014%2014%2014%200%200%200%2014%2014%2014%2014%200%200%200%2014%2014h28a14%2014%200%200%200%2014-14%2014%2014%200%200%200%2014-14%2014%2014%200%200%200%2014-14h-42a14%2014%200%200%200-14-14z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M288%20208v48c0%2061%2080%2080%2080%2080s80-19%2080-80v-48z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M372%20221c-9%200-15%208-25%201%205%2012%2014%209%2022%2010v6h-14s-14%2020%200%2038h14v5h-14c-9%200-9-11-9-11h-34v11h7c9%208%2013%2026%2027%2026h52c15%200%2017-9%2020-17%203-7%205-8%206-9v-8h-29s0%208-8%208h-12v-6h14c-11-17%200-37%200-37h-14v-16l-4-1zm-23%2017c-20%206-31%2026-31%2026h25c-2-17%206-26%206-26zm44%206a34%2034%200%200%200-2%2023h24c-5-12%200-23%200-23z%22%2F%3E%3C%2Fsvg%3E"},KN:{name:"Saint Kitts and Nevis",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20401.9%20173.6-225.3L401.9%200H449l63%2063-.1%2047.3-167.3%20223.5L110.3%20512H63L0%20449z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200v401.9L401.9%200z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%20512V110.3L110.3%20512z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20512h63L512%2063V0h-63L0%20449z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m162.8%20302%2024%2012.2%2019-19-4.4%2026.5%2024%2012.2-26.6%204.2-4.2%2026.5-12-24L156%20345l19-19zM302%20162.8l24%2012.1%2019-19-4.3%2026.6%2024%2012.1-26.6%204.2-4.2%2026.5-12.2-23.9-26.5%204.2%2019-19z%22%2F%3E%3C%2Fsvg%3E"},LC:{name:"Saint Lucia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M161.4%20345h189.2L256%20122.4z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M194.3%20322.8%20256%20182.4l61.7%20140.4z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M161.4%20345h189.2L256%20256z%22%2F%3E%3C%2Fsvg%3E"},MF:{name:"Saint Martin (French part)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20128V0h512v128L299%20512h-86z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22213%22%20r%3D%2257%22%20fill%3D%22%23ffda44%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M185%20213h142l-71%20128Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%20341%20142%20235h228z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20128%20213%20213v171H0Zm512%200L299%20341v171h213z%22%2F%3E%3C%2Fsvg%3E"},PM:{name:"Saint Pierre and Miquelon",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M160%200h352v512H160l-32-256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20160%2080-32%2080%2032v192l-80%2032-80-32z%22%2F%3E%3Crect%20width%3D%22160%22%20height%3D%22160%22%20fill%3D%22%23d80027%22%20ry%3D%220%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M160%2021V0h-20L0%20139v21h20z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%2021V0h20l140%20139v21h-20z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%2064h160v32H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M64%200h32v160H64z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20512h160V352H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M340%20146v158h-40c-24%200-24-32-24-32h-96v32h20l147%2032%20145-32v-24h-80s0%2024-24%2024h-32V146z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M356%20138v32c-31-11-61%208-80-32%2033%2023%2051-10%2080%200zm-72%2046s-24%2024-16%2072h-72s32-56%2088-72zm16%20104h95c-31-48%200-104%200-104h-95s-40%2056%200%20104zm101-24a96%2096%200%200%201%204-64h63s-16%2032-1%2064zm-101%2040h192s-8%200-16%2024-16%2048-56%2048H276c-39%200-52-50-76-72z%22%2F%3E%3Crect%20width%3D%2296%22%20height%3D%2232%22%20x%3D%2232%22%20y%3D%22384%22%20fill%3D%22%23ffda44%22%20rx%3D%2216%22%20ry%3D%2216%22%2F%3E%3Crect%20width%3D%2296%22%20height%3D%2232%22%20x%3D%2232%22%20y%3D%22448%22%20fill%3D%22%23ffda44%22%20rx%3D%2216%22%20ry%3D%2216%22%2F%3E%3C%2Fsvg%3E"},VC:{name:"Saint Vincent and the Grenadines",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M378.5%200H133.7l-22.3%20256%2022.3%20256h244.8l22.3-256z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M133.7%20512V0H0v512z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M512%200H378.5v512H512zM200.4%20322.8%20156%20256l44.5-66.8%2044.7%2066.8zm111.4%200L267.1%20256l44.6-66.8%2044.5%2066.8zm-55.7%2089L211.6%20345l44.5-66.7%2044.5%2066.7z%22%2F%3E%3C%2Fsvg%3E"},WS:{name:"Samoa",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20256%20256%200h256v512H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m205%20167%204.2%2012.7h13.4l-10.8%207.9%204.1%2012.7-10.8-7.8-10.9%207.8%204.1-12.7-10.8-7.9h13.4zM137.8%2066.8l7%2021.2H167l-18.1%2013.2%206.9%2021.2-18.1-13.1-18%2013.1%206.8-21.2-18-13.2h22.3zM204.5%2089l6.9%2021.3h22.3l-18%2013.1%206.9%2021.3-18.1-13.1-18.1%2013.1%207-21.3-18.2-13.1h22.4zm-52.8%2089%206.9%2021.3H181l-18.1%2013.2%206.9%2021.2-18.1-13.1-18%2013.1%206.8-21.2-18-13.2h22.3zm-58.5-55.6%206.9%2021.3h22.3l-18%2013.1%206.9%2021.3-18.1-13.2L75%20178.1l6.9-21.3-18-13.1h22.3z%22%2F%3E%3C%2Fsvg%3E"},SM:{name:"San Marino",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22m0%20256%20256-52.3L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M357.6%20176.6%20256%20278.3%20154.4%20176.6a121.7%20121.7%200%200%200-20.8%2068.3v33.4c0%2053.6%2034.6%2099.2%2082.7%20115.8a37%2037%200%200%200%204%2040l36.4-29.2%2036.4%2029.2a37%2037%200%200%200%203.9-40.5%20122.6%20122.6%200%200%200%2081.4-115.3v-33.4c0-25.3-7.6-48.7-20.8-68.3z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20367.3c-49.1%200-89-40-89-89v-33.4a89.1%2089.1%200%200%201%20178%200v33.4c0%2049-39.9%2089-89%2089z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M311.7%20278.3v-33.4a55.7%2055.7%200%200%200-111.4%200v33.4l55.7%2011z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M200.3%20278.3a55.7%2055.7%200%200%200%20111.4%200z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M322.8%20155.8A33.4%2033.4%200%200%200%20267%20131v-19.6h11.2V89H267V78h-22v11h-11.2v22.3H245v19.6a33.4%2033.4%200%200%200-44.5%2049.8v19.6h111.3v-19.6c6.8-6.1%2011-15%2011-24.9z%22%2F%3E%3C%2Fsvg%3E"},ST:{name:"Sao Tome and Principe",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v167l-52.6%2083.8L512%20345v167H0l72-264.3z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M114.9%20166.9H512v178H114.9z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m325%20211.5%2011.1%2034H372l-29%2021%2011.1%2034-29-21-28.9%2021%2011-34-28.8-21H314zm111.4%200%2011%2034h35.8l-29%2021%2011.1%2034-29-21-28.9%2021%2011.1-34-29-21h35.8z%22%2F%3E%3C%2Fsvg%3E"},SA:{name:"Saudi Arabia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22M144.7%20306c0%2018.5%2015%2033.5%2033.4%2033.5h100.2a27.8%2027.8%200%200%200%2027.8%2027.8h33.4a27.8%2027.8%200%200%200%2027.8-27.8V306zm225.4-161.3v78c0%2012.2-10%2022.2-22.3%2022.2v33.4c30.7%200%2055.7-25%2055.7-55.7v-77.9H370zm-239.3%2078c0%2012.2-10%2022.2-22.3%2022.2v33.4c30.7%200%2055.7-25%2055.7-55.7v-77.9h-33.4z%22%2F%3E%3Cpath%20d%3D%22M320%20144.7h33.4v78H320zm-50%2044.5a5.6%205.6%200%200%201-11.2%200v-44.5h-33.4v44.5a5.6%205.6%200%200%201-11.1%200v-44.5h-33.4v44.5a39%2039%200%200%200%2039%2039%2038.7%2038.7%200%200%200%2022.2-7%2038.7%2038.7%200%200%200%2022.2%207c1.7%200%203.4-.1%205-.3a22.3%2022.3%200%200%201-21.6%2017v33.4c30.6%200%2055.6-25%2055.6-55.7v-77.9H270z%22%2F%3E%3Cpath%20d%3D%22M180.9%20244.9h50v33.4h-50z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},SN:{name:"Senegal",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M144.8%200h222.4l32%20260-32%20252H144.8l-32.1-256z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h144.8v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M367.2%200H512v512H367.2z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22m256.1%20167%2022.1%2068h71.5L292%20277l22%2068-57.8-42-57.9%2042%2022.1-68-57.8-42H234z%22%2F%3E%3C%2Fsvg%3E"},RS:{name:"Serbia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M66.2%20144.7v127.7c0%2072.6%2094.9%2095%2094.9%2095s94.9-22.4%2094.9-95V144.7z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M105.4%20167h111.4v-44.6l-22.3%2011.2-33.4-33.4-33.4%2033.4-22.3-11.2zm128.3%20123.2-72.3-72.4L89%20290.2l23.7%2023.6%2048.7-48.7%2048.7%2048.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M233.7%20222.6H200a22.1%2022.1%200%200%200%203-11.1%2022.3%2022.3%200%200%200-42-10.5%2022.3%2022.3%200%200%200-41.9%2010.5%2022.1%2022.1%200%200%200%203%2011.1H89a23%2023%200%200%200%2023%2022.3h-.7c0%2012.3%2010%2022.2%2022.3%2022.2%200%2011%207.8%2020%2018.1%2021.9l-17.5%2039.6a72.1%2072.1%200%200%200%2027.2%205.3%2072.1%2072.1%200%200%200%2027.2-5.3L171.1%20289c10.3-2%2018.1-11%2018.1-21.9%2012.3%200%2022.3-10%2022.3-22.2h-.8a23%2023%200%200%200%2023-22.3z%22%2F%3E%3C%2Fsvg%3E"},SC:{name:"Seychelles",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200v332l150.9-138.5L225.2%200z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M273.1%20253.3%20512%200H225.2L0%20332v80.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%200%200%20412.2v50.4L277.9%20390%20512%20256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20462.6%20512%20256v133.5l-223.9%2078.8L0%20488.4z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m512%20389.5-512%2099V512h512z%22%2F%3E%3C%2Fsvg%3E"},SL:{name:"Sierra Leone",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},SG:{name:"Singapore",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20256%20257.7-51L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22M155.8%20133.6A78%2078%200%200%201%20217%2057.5a78.2%2078.2%200%200%200-16.7-1.8%2078%2078%200%201%200%2016.7%20154%2078%2078%200%200%201-61.2-76.1zM256%2061.2l5.5%2017h18l-14.6%2010.5%205.6%2017L256%2095.2l-14.5%2010.5%205.6-17-14.5-10.5h17.9z%22%2F%3E%3Cpath%20d%3D%22m212.6%2094.6%205.6%2017H236l-14.4%2010.5%205.5%2017-14.5-10.5-14.4%2010.5%205.5-17-14.5-10.5h17.9zm86.8%200%205.5%2017h17.9l-14.5%2010.5%205.5%2017-14.4-10.5-14.5%2010.5%205.5-17-14.4-10.5h17.8zm-16.7%2050.1%205.5%2017h17.9l-14.5%2010.5%205.5%2017-14.4-10.5-14.5%2010.5%205.5-17-14.4-10.5h17.9zm-53.4%200%205.5%2017h18l-14.5%2010.5%205.5%2017-14.5-10.5-14.4%2010.5%205.5-17-14.5-10.5h17.9z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},SX:{name:"Sint Maarten (Dutch part)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v256l-265%2045.2z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M210%20256h302v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22M28%20256a73.1%2073.1%200%200%200-.2%205.6%2072.3%2072.3%200%201%200%20144.5-5.6z%22%2F%3E%3Ccircle%20cx%3D%22100.2%22%20cy%3D%22200.3%22%20r%3D%2222.3%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M50%20194.8V267c0%2038.4%2050.2%2050%2050.2%2050s50-11.6%2050-50v-72.3h-100z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M100.2%20294c-9.3-3.4-28-12-28-27v-50H128v50c0%2015-18.6%2023.6-27.8%2026.9z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M111.3%20244.9v-11.2l-11.1-5.5-11.2%205.5V245l-5.5%205.5v22.3h33.4v-22.3z%22%2F%3E%3C%2Fsvg%3E"},SK:{name:"Slovakia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20160%20256-32%20256%2032v192l-256%2032L0%20352z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v160H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20352h512v160H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M64%2063v217c0%20104%20144%20137%20144%20137s144-33%20144-137V63z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M96%2095v185a83%2078%200%200%200%209%2034h206a83%2077%200%200%200%209-34V95z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M288%20224h-64v-32h32v-32h-32v-32h-32v32h-32v32h32v32h-64v32h64v32h32v-32h64z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M152%20359a247%20231%200%200%200%2056%2024c12-3%2034-11%2056-24a123%20115%200%200%200%2047-45%2060%2056%200%200%200-34-10l-14%202a60%2056%200%200%200-110%200%2060%2056%200%200%200-14-2c-12%200-24%204-34%2010a123%20115%200%200%200%2047%2045z%22%2F%3E%3C%2Fsvg%3E"},SI:{name:"Slovenia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M222.7%20167v-66.8H89V167l67%2082.6z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M89%20167v22.2c0%2051.1%2066.8%2066.8%2066.8%2066.8s66.8-15.7%2066.8-66.8V167l-22.3%2022.2-44.5-33.4-44.5%2033.4z%22%2F%3E%3C%2Fsvg%3E"},SB:{name:"Solomon Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M512%20512V23.6L256%20255.9%2023.6%20512z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h488.4L256%20256%200%20488.4z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M488.4%200%200%20488.4V512h23.6L512%2023.6V0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m107.8%2089%205.5%2017h18l-14.6%2010.5%205.5%2017L108%20123l-14.5%2010.6%205.5-17L84.4%20106h17.8zm91.3%200%205.5%2017h18L208%20116.4l5.6%2017L199%20123l-14.5%2010.6%205.6-17-14.5-10.6h18zm-91.3%2089%205.5%2017h18l-14.6%2010.5%205.5%2017-14.4-10.5-14.5%2010.5%205.5-17L84.4%20195h17.8zm91.3%200%205.5%2017h18L208%20205.5l5.6%2017-14.5-10.5-14.5%2010.5%205.6-17-14.5-10.5h18zm-45.7-44.5%205.6%2017h17.8L162.4%20161l5.5%2017-14.5-10.5L139%20178l5.5-17-14.5-10.5h18z%22%2F%3E%3C%2Fsvg%3E"},SO:{name:"Somalia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m256%20133.6%2027.6%2085H373L300.7%20271l27.6%2085-72.3-52.5-72.3%2052.6%2027.6-85-72.3-52.6h89.4z%22%2F%3E%3C%2Fsvg%3E"},ZA:{name:"South Africa",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%200%20192%20256L0%20512h47l465-189v-34l-32-33%2032-33v-34L47%200Z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20142v228l140-114z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M192%20256%200%2095v47l114%20114L0%20370v47z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M512%20223H223L0%200v94l161%20162L0%20418v94l223-223h289z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%200H47l189%20189h276z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M512%20512H47l189-189h276z%22%2F%3E%3C%2Fsvg%3E"},GS:{name:"South Georgia and the South Sandwich Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Crect%20width%3D%2264%22%20height%3D%2232%22%20x%3D%22336%22%20y%3D%22256%22%20fill%3D%22%236da544%22%20rx%3D%2216%22%20ry%3D%2216%22%2F%3E%3Ccircle%20cx%3D%22368%22%20cy%3D%2296%22%20r%3D%2232%22%20fill%3D%22%23ff9811%22%2F%3E%3Ccircle%20cx%3D%22368%22%20cy%3D%22144%22%20r%3D%2248%22%20fill%3D%22%23acabb1%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M320%20144v77c0%2036%2048%2048%2048%2048s48-12%2048-48v-77z%22%2F%3E%3Crect%20width%3D%2232%22%20height%3D%22128%22%20x%3D%22288%22%20y%3D%22128%22%20fill%3D%22%23333%22%20rx%3D%2216%22%20ry%3D%2216%22%2F%3E%3Crect%20width%3D%2232%22%20height%3D%22128%22%20x%3D%22416%22%20y%3D%22128%22%20fill%3D%22%23333%22%20rx%3D%2216%22%20ry%3D%2216%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m320%20144%2048%20112%2048-112z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M288%20288v32h32v8h96v-8h32v-32h-32v8h-96v-8z%22%2F%3E%3C%2Fsvg%3E"},SS:{name:"South Sudan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M74.1%20115%20512%20156.9v31.5l-42.4%2070.3%2042.4%2064.2v31.5L74.1%20386.8z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v156.8H50z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M150.6%20188.3H512v134.5H150.6z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M50%20354.3h462V512H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m83.4%20192.4%2031.2%2043.6%2051.2-16.3-31.9%2043.2%2031.3%2043.6-51-16.9-31.7%2043.2.3-53.7L32%20262.2%2083%20246z%22%2F%3E%3C%2Fsvg%3E"},ES:{name:"Spain",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20128%20256-32%20256%2032v256l-256%2032L0%20384Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v128H0zm0%20384h512v128H0z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22M144%20304h-16v-80h16zm128%200h16v-80h-16z%22%2F%3E%3Cellipse%20cx%3D%22208%22%20cy%3D%22296%22%20rx%3D%2248%22%20ry%3D%2232%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23d80027%22%3E%3Crect%20width%3D%2216%22%20height%3D%2224%22%20x%3D%22128%22%20y%3D%22192%22%20rx%3D%228%22%2F%3E%3Crect%20width%3D%2216%22%20height%3D%2224%22%20x%3D%22272%22%20y%3D%22192%22%20rx%3D%228%22%2F%3E%3Cpath%20d%3D%22M208%20272v24a24%2024%200%200%200%2024%2024%2024%2024%200%200%200%2024-24v-24h-24z%22%2F%3E%3C%2Fg%3E%3Crect%20width%3D%2232%22%20height%3D%2216%22%20x%3D%22120%22%20y%3D%22208%22%20fill%3D%22%23ff9811%22%20ry%3D%228%22%2F%3E%3Crect%20width%3D%2232%22%20height%3D%2216%22%20x%3D%22264%22%20y%3D%22208%22%20fill%3D%22%23ff9811%22%20ry%3D%228%22%2F%3E%3Crect%20width%3D%2232%22%20height%3D%2216%22%20x%3D%22120%22%20y%3D%22304%22%20fill%3D%22%23ff9811%22%20rx%3D%228%22%2F%3E%3Crect%20width%3D%2232%22%20height%3D%2216%22%20x%3D%22264%22%20y%3D%22304%22%20fill%3D%22%23ff9811%22%20rx%3D%228%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M160%20272v24c0%208%204%2014%209%2019l5-6%205%2010a21%2021%200%200%200%2010%200l5-10%205%206c6-5%209-11%209-19v-24h-9l-5%208-5-8h-10l-5%208-5-8z%22%2F%3E%3Cpath%20d%3D%22M122%20252h172m-172%2024h28m116%200h28%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M122%20248a4%204%200%200%200-4%204%204%204%200%200%200%204%204h172a4%204%200%200%200%204-4%204%204%200%200%200-4-4zm0%2024a4%204%200%200%200-4%204%204%204%200%200%200%204%204h28a4%204%200%200%200%204-4%204%204%200%200%200-4-4zm144%200a4%204%200%200%200-4%204%204%204%200%200%200%204%204h28a4%204%200%200%200%204-4%204%204%200%200%200-4-4z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M196%20168c-7%200-13%205-15%2011l-5-1c-9%200-16%207-16%2016s7%2016%2016%2016c7%200%2013-4%2015-11a16%2016%200%200%200%2017-4%2016%2016%200%200%200%2017%204%2016%2016%200%201%200%2010-20%2016%2016%200%200%200-27-5c-3-4-7-6-12-6zm0%208c5%200%208%204%208%208%200%205-3%208-8%208-4%200-8-3-8-8%200-4%204-8%208-8zm24%200c5%200%208%204%208%208%200%205-3%208-8%208-4%200-8-3-8-8%200-4%204-8%208-8zm-44%2010%204%201%204%208c0%204-4%207-8%207s-8-3-8-8c0-4%204-8%208-8zm64%200c5%200%208%204%208%208%200%205-3%208-8%208-4%200-8-3-8-7l4-8z%22%2F%3E%3Cpath%20fill%3D%22none%22%20d%3D%22M220%20284v12c0%207%205%2012%2012%2012s12-5%2012-12v-12z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M200%20160h16v32h-16z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M208%20224h48v48h-48z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m248%20208-8%208h-64l-8-8c0-13%2018-24%2040-24s40%2011%2040%2024zm-88%2016h48v48h-48z%22%2F%3E%3Crect%20width%3D%2220%22%20height%3D%2232%22%20x%3D%22222%22%20y%3D%22232%22%20fill%3D%22%23d80027%22%20rx%3D%2210%22%20ry%3D%2210%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M168%20232v8h8v16h-8v8h32v-8h-8v-16h8v-8zm8-16h64v8h-64z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Ccircle%20cx%3D%22186%22%20cy%3D%22202%22%20r%3D%226%22%2F%3E%3Ccircle%20cx%3D%22208%22%20cy%3D%22202%22%20r%3D%226%22%2F%3E%3Ccircle%20cx%3D%22230%22%20cy%3D%22202%22%20r%3D%226%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M169%20272v43a24%2024%200%200%200%2010%204v-47h-10zm20%200v47a24%2024%200%200%200%2010-4v-43h-10z%22%2F%3E%3Cg%20fill%3D%22%23338af3%22%3E%3Ccircle%20cx%3D%22208%22%20cy%3D%22272%22%20r%3D%2216%22%2F%3E%3Crect%20width%3D%2232%22%20height%3D%2216%22%20x%3D%22264%22%20y%3D%22320%22%20ry%3D%228%22%2F%3E%3Crect%20width%3D%2232%22%20height%3D%2216%22%20x%3D%22120%22%20y%3D%22320%22%20ry%3D%228%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},LK:{name:"Sri Lanka",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M81.4%2027.2h135.2v456.5H81.4z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%2044.5%20100.2-22v463L0%20467.5z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22m218.6%2026.5%20293.4%2018v93.2l-18.6%20106.2%2018.6%2097.4v126.2l-293.4%2018z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200v44.5h200.3v423H0V512h512v-44.5H233.7v-423H512V0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M300.5%2094.6c-18.4%200-33.4%2015-33.4%2033.4v144.6a33%2033%200%200%200%2011.2%2025v53h22.2v-27.8h100.2v44.5h-22.3v22.3H423V345l20.4-22.2h48.2a72.9%2072.9%200%200%200%2020.4%2018.5V137.7a66%2066%200%200%200-22.5%2013.1%2067.8%2067.8%200%200%200-13.2%2082.9c-21.3-.1-41%20.2-53.3%200V167c0-11.2-16.7-22.3-16.7-22.3s-16.7%2011.1-16.7%2022.3h-66.8v66.7h33.4v33.4c0%207.1%201.4%2014.1%204.1%2020.7L345%20300.6h-44.5v-206z%22%2F%3E%3C%2Fsvg%3E"},SD:{name:"Sudan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M43.6%20109.4%20512%20144.7v222.6L43.8%20397.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v144.7H111z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M111%20367.3h401V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3C%2Fsvg%3E"},SR:{name:"Suriname",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v111.3l-85.3%20143.1L512%20400.7V512H0V400.7l87-149L0%20111.3z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20111.3h512V167l-41%2084.7%2041%2093.3v55.7H0V345l44.2-86.6L0%20167z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%20167h512v178H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%20167%2022.1%2068h71.5l-57.8%2042%2022%2068-57.8-42-57.9%2042%2022.1-68-57.8-42h71.5z%22%2F%3E%3C%2Fsvg%3E"},SJ:{name:"Svalbard and Jan Mayen",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h100.2l66.1%2053.5L233.7%200H512v189.3L466.3%20257l45.7%2065.8V512H233.7l-68-50.7-65.5%2050.7H0V322.8l51.4-68.5-51.4-65z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M100.2%200v189.3H0v33.4l24.6%2033L0%20289.5v33.4h100.2V512h33.4l30.6-26.3%2036.1%2026.3h33.4V322.8H512v-33.4l-24.6-33.7%2024.6-33v-33.4H233.7V0h-33.4l-33.8%2025.3L133.6%200z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M133.6%200v222.7H0v66.7h133.6V512h66.7V289.4H512v-66.7H200.3V0z%22%2F%3E%3C%2Fsvg%3E"},SZ:{name:"Swaziland",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20144.7%20256-20.5%20256%2020.5V178l-37.4%2079%2037.4%2077v33.3l-256%2024.1L0%20367.3V334l37.7-77.3L0%20178z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%20178h512v156H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M89.2%20244.9h334V267h-334zm44.6-44.6h244.8v22.3H133.8z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m256.2%20189.2-18%2065.2%2018%2068.4c66.8%200%20124-66.8%20124-66.8s-57.2-66.8-124-66.8z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M256.2%20322.8c-66.8%200-124-66.8-124-66.8s57.2-66.8%20124-66.8%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M211.7%20233.7h22.2v44.6h-22.2z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M278.5%20233.7h22.2v44.6h-22.2z%22%2F%3E%3Cg%20fill%3D%22%230052b4%22%20transform%3D%22translate(.2)%22%3E%3Ccircle%20cx%3D%2289%22%20cy%3D%22256%22%20r%3D%2222.3%22%2F%3E%3Ccircle%20cx%3D%22423%22%20cy%3D%22256%22%20r%3D%2222.3%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},SE:{name:"Sweden",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h133.6l35.3%2016.7L200.3%200H512v222.6l-22.6%2031.7%2022.6%2035.1V512H200.3l-32-19.8-34.7%2019.8H0V289.4l22.1-33.3L0%20222.6z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M133.6%200v222.6H0v66.8h133.6V512h66.7V289.4H512v-66.8H200.3V0z%22%2F%3E%3C%2Fsvg%3E"},CH:{name:"Switzerland",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M389.6%20211.5h-89v-89h-89.1v89h-89v89h89v89h89v-89h89z%22%2F%3E%3C%2Fsvg%3E"},SY:{name:"Syrian Arab Republic",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m153%20194.8%2013.8%2042.5h44.7l-36.2%2026.3%2013.8%2042.5-36.1-26.3-36.2%2026.3%2013.8-42.5-36.2-26.3h44.7zm206%200%2013.9%2042.5h44.7l-36.2%2026.3%2013.8%2042.5-36.2-26.3-36.1%2026.3%2013.8-42.5-36.2-26.3h44.7z%22%2F%3E%3C%2Fsvg%3E"},TW:{name:"Taiwan, Province of China",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20256%20256%200h256v512H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%20256V0H0v256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m222.6%20149.8-31.3%2014.7%2016.7%2030.3-34-6.5-4.3%2034.3-23.6-25.2-23.7%2025.2-4.3-34.3-34%206.5%2016.7-30.3-31.2-14.7%2031.2-14.7-16.6-30.3%2034%206.5%204.2-34.3%2023.7%2025.3L169.7%2077l4.3%2034.3%2034-6.5-16.7%2030.3z%22%2F%3E%3Ccircle%20cx%3D%22146.1%22%20cy%3D%22149.8%22%20r%3D%2247.7%22%20fill%3D%22%230052b4%22%2F%3E%3Ccircle%20cx%3D%22146.1%22%20cy%3D%22149.8%22%20fill%3D%22%23eee%22%20r%3D%2241.5%22%2F%3E%3C%2Fsvg%3E"},TJ:{name:"Tajikistan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20144.7%20255.3-36.5L512%20144.7v222.6L250.5%20407%200%20367.3z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M211.5%20323h89v-38l-17.8%209-26.7-26.9-26.7%2026.7-17.8-8.9zm-51-44.6%204.2%2012.7H178l-10.9%208%204.2%2012.7-10.9-8-10.8%208%204.1-12.8-10.7-7.9h13.4zm12.9-44.6%204.1%2012.8H191l-10.8%208%204.1%2012.6-10.8-7.9-10.9%208%204.2-12.8-10.9-8h13.4zm36.7-33.4%204.2%2012.8h13.4l-10.9%208%204.2%2012.6-11-7.7-10.8%207.8%204.1-12.7-10.8-7.9H206zm141.4%2078-4.2%2012.7H334l10.9%208-4.2%2012.7%2010.9-8%2010.8%208-4.1-12.8%2010.7-7.9h-13.4zm-12.9-44.6-4.1%2012.8H321l10.8%208-4.1%2012.6%2010.8-7.9%2010.9%208-4.2-12.8%2010.9-8h-13.4zM302%20200.4l-4.2%2012.8h-13.4l10.9%208-4.2%2012.6%2010.9-7.7%2010.8%207.8-4.1-12.7%2010.8-7.9H306zm-46-16.6%204.1%2012.7h13.5l-10.9%208%204.1%2012.6-10.8-7.8-10.8%207.8%204.1-12.7-10.9-7.9H252z%22%2F%3E%3C%2Fsvg%3E"},TZ:{name:"Tanzania, United Republic of",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M401.8%200H449l63%2063v47.2L347.7%20336.3%20110.2%20512H63L0%20449v-47.2l167.1-238.6z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20512v-63L449%200h63v63L63%20512z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M110.2%20512%20512%20110.2V512z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20401.8%20401.8%200H0z%22%2F%3E%3C%2Fsvg%3E"},TH:{name:"Thailand",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v89l-79.2%20163.7L512%20423v89H0v-89l82.7-169.6L0%2089z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%2089h512v78l-42.6%2091.2L512%20345v78H0v-78l40-92.5L0%20167z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20167h512v178H0z%22%2F%3E%3C%2Fsvg%3E"},TL:{name:"Timor-Leste",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%200%20214%20251.8L0%20512l418-256z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%200H0l367.3%20256L0%20512h512z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m71%20197.4%2039%2036.8%2047-25.6-23%2048.4%2039%2036.9-53.2-7-23%2048.5-9.9-52.7-53.2-7%2047.1-25.6z%22%2F%3E%3C%2Fsvg%3E"},TG:{name:"Togo",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M256%200h256v102.4L483.8%20151l28.2%2053.8v102.4l-30.5%2050.7%2030.5%2051.7V512H0V409.6l34.7-51L0%20307.1z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M0%2044.5v423V256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M231.7%20102.4v102.4H512V102.4zM0%20307.2v102.4h512V307.2H256l-128.2-26.4z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%20307.2V0H0v307.2z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m141.4%20122.4%2016.5%2051h53.7L168%20205l16.6%2051-43.4-31.5L98%20256l16.5-51L71%20173.5h53.7z%22%2F%3E%3C%2Fsvg%3E"},TK:{name:"Tokelau",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m188%20133.6%205.6%2017h17.9L197%20161l5.5%2017-14.4-10.5-14.5%2010.5%205.5-17-14.4-10.5h17.8zM115.5%20256l7%2021.3h22.3l-18%2013%206.8%2021.4-18-13.2-18.1%2013.2%206.9-21.3-18.1-13.1h22.3zm0-178%207%2021.2h22.3l-18%2013.1%206.8%2021.3-18-13.2-18.1%2013.2%206.9-21.3-18.1-13.1h22.3zM59.8%20178l6.9%2021.3H89l-18%2013.2%206.9%2021.2-18.1-13.1-18.1%2013.1%207-21.2-18.2-13.2H53z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m188%20133.6%205.6%2017h17.9L197%20161l5.5%2017-14.4-10.5-14.5%2010.5%205.5-17-14.4-10.5h17.8zM115.5%20256l7%2021.3h22.3l-18%2013%206.8%2021.4-18-13.2-18.1%2013.2%206.9-21.3-18.1-13.1h22.3zm0-178%207%2021.2h22.3l-18%2013.1%206.8%2021.3-18-13.2-18.1%2013.2%206.9-21.3-18.1-13.1h22.3zM59.8%20178l6.9%2021.3H89l-18%2013.2%206.9%2021.2-18.1-13.1-18.1%2013.1%207-21.2-18.2-13.2H53z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M411.8%20122.4%20144.7%20345h361.7v-35.8a167.4%20167.4%200%200%201-97.9-152.3c0-11.7%201-23.5%203.3-34.5zm94.6%20244.9H144.7v33.4h361.7z%22%2F%3E%3C%2Fsvg%3E"},TO:{name:"Tonga",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20256%20256%200h256v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M167%20133.6v-33.4h-33.4v33.4h-33.4V167h33.4v33.3H167V167h33.3v-33.4z%22%2F%3E%3C%2Fsvg%3E"},TT:{name:"Trinidad and Tobago",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20110.2%20110.2%200H512v401.8L401.8%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M110.2%200H63L0%2063v47.2L401.8%20512H449l63-63v-47.2z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M512%20512v-63L63%200H0v63l449%20449z%22%2F%3E%3C%2Fsvg%3E"},TN:{name:"Tunisia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22122.4%22%20fill%3D%22%23eee%22%2F%3E%3Cg%20fill%3D%22%23d80027%22%3E%3Cpath%20d%3D%22m271%20209.2%2021%2029%2034.1-11.1-21%2029%2021%2028.9-34-11.1-21%2029V267L237%20256l34-11z%22%2F%3E%3Cpath%20d%3D%22M283.8%20328.3a72.3%2072.3%200%201%201%2034.4-136%2089%2089%200%201%200%200%20127.3%2072%2072%200%200%201-34.4%208.7z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},TR:{name:"Turkey",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22m245.5%20209.2%2021%2029%2034-11.1-21%2029%2021%2028.9-34-11.1-21%2029V267l-34-11.1%2034-11z%22%2F%3E%3Cpath%20d%3D%22M188.2%20328.3a72.3%2072.3%200%201%201%2034.4-136%2089%2089%200%201%200%200%20127.3%2072%2072%200%200%201-34.4%208.7z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},TM:{name:"Turkmenistan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h66.8l67.8%2032.3L200.3%200H512v512H200.3l-70.2-34.1L66.8%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M66.8%200h133.5v512H66.8z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22M374.4%20193.1a78%2078%200%200%200-31.9-92.3%2078.2%2078.2%200%200%201%2016.3%204%2078%2078%200%201%201-52.6%20146.6%2078.1%2078.1%200%200%201-15.1-7.3%2078%2078%200%200%200%2083.3-51zm-69.8-102-11%2014.2-16.8-6%2010%2014.8-10.9%2014%2017.2-5%2010%2014.9.6-18%2017.2-5-16.9-6z%22%2F%3E%3Cpath%20d%3D%22m334.1%20137.3-11%2014-16.8-6%2010.1%2014.8-11%2014.2%2017.2-5%2010.1%2014.7.5-17.8%2017.2-5-16.8-6zM252.5%20108l-11%2014.1-16.8-6%2010%2014.7-10.9%2014.2%2017.2-5%2010%2014.7.6-17.8%2017.1-5-16.8-6zm-1.2%2052.7-11%2014.2-16.8-6%2010%2014.7-10.9%2014.2%2017.2-5%2010%2014.7.6-17.8%2017.1-5-16.8-6zm50.2%2018-11%2014.2-16.8-6%2010%2014.7-10.9%2014.2%2017.2-5%2010%2014.7.6-17.8%2017.2-5-16.9-6z%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M117.8%20134.8%2095.4%20118v-12l38.2-28%2015.8-.1%2022.3%2016.7v11.5l-38.1%2028.7z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M133.6%2078h-15.8L95.4%2094.5V106h38.2zm0%2056.8h15.8l22.3-16.7v-12h-38.1z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22m117.8%20284.4-22.4-16.6v-23.6l22.4-16.6h31.6l22.3%2016.6v23.6l-22.3%2016.6zm54.7%2036.7h-9.7v-9.8h-17.1l-12.1-12-12.1%2012h-17.2v9.8h-9.7v19.5h9.7v9.7h17.2l12%2012.1%2012.2-12.1h17v-9.7h9.8zm0-149.7h-9.7v-9.7h-17.1l-12.1-12.1-12.1%2012h-17.2v9.8h-9.7V191h9.7v9.8h17.2l12%2012%2012.2-12h17V191h9.8z%22%2F%3E%3Cg%20fill%3D%22%23d80027%22%3E%3Cpath%20d%3D%22M122.4%20244.9h22.3V267h-22.3z%22%2F%3E%3Ccircle%20cx%3D%22133.6%22%20cy%3D%22181.2%22%20r%3D%2211.1%22%2F%3E%3Ccircle%20cx%3D%22133.6%22%20cy%3D%22330.8%22%20r%3D%2211.1%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m117.8%20434-22.4-16.8v-12l38.2-28%2015.8-.1%2022.3%2016.7v11.5L133.6%20434z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M133.6%20377.2h-15.8l-22.4%2016.5v11.5h38.2zm0%2056.8h15.8l22.3-16.7v-12h-38.1z%22%2F%3E%3C%2Fsvg%3E"},TC:{name:"Turks and Caicos Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M289.4%20133.6V256c0%2059.6%2077.9%2078%2077.9%2078s78-18.4%2078-78V133.6h-156z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M356.2%20178c0%2012.4-10%2044.6-22.3%2044.6s-22.2-32.2-22.2-44.5c0-12.3%2022.2-22.3%2022.2-22.3s22.3%2010%2022.3%2022.3z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M415.2%20202.3a92.2%2092.2%200%200%200%206.4-28c0-10.2-13.3-18.5-13.3-18.5s-13.4%208.3-13.4%2018.6c0%206.4%202.8%2019.2%206.4%2028l-7.7%2017.3a38.9%2038.9%200%200%200%2014.7%203%2038.9%2038.9%200%200%200%2014.7-3z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M350.6%20256s-11.1%2022.3-11.1%2044.5H395c0-22.2-11.1-44.5-11.1-44.5l-16.7-11.1-16.7%2011.1Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M384%20256v-5.6a16.7%2016.7%200%200%200-33.4%200v5.6z%22%2F%3E%3C%2Fsvg%3E"},TV:{name:"Tuvalu",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%20256%20256%200h256v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h33.4l32%2016.9L100.3%200H256v33.4l-14.8%2033.5%2014.8%2033.3v33.4l-9.3%2033.7%209.3%2041.5v15.7l-6.2%2011.6L256%20256h-47.2l-39.3-7-35.9%207.1-33.4-.1-32.6-16.6L33.4%20256H0V100.2l14.2-35.8L0%2033.4z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m256%20224.5-91-91h-31.4L256%20256z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M33.4%200v33.4H0v66.8h33.4V256h66.8V100.2H256V33.4H100.2V0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m279.4%20423%205.5%2017h18l-14.6%2010.5%205.6%2017-14.5-10.5-14.5%2010.5%205.6-17L256%20440h17.9zm142.4-111.3%205.5%2017h18l-14.5%2010.5%205.5%2017-14.5-10.5-14.5%2010.5%205.6-17-14.5-10.5h17.9zm35.7-167%205.5%2017h18l-14.5%2010.5%205.6%2017-14.5-10.5-14.5%2010.5%205.6-17-14.5-10.5H452zm8.8%20122.4%205.6%2017h17.8l-14.4%2010.5%205.5%2017-14.5-10.5-14.4%2010.6%205.5-17-14.5-10.6h18zM305%20383l16%208%2012.6-12.6-2.8%2017.7%2016%208.1L329%20407l-2.8%2017.7-8.1-16-17.7%202.8%2012.7-12.6zm0-66.8%2016%208.1%2012.6-12.6-2.8%2017.6%2016%208.1-17.7%202.8-2.8%2017.7-8.1-16-17.7%202.9%2012.7-12.7zm55.7%2042.8%2016%208.1%2012.6-12.6-2.8%2017.6%2016%208.1-17.8%202.8-2.7%2017.7-8.2-16-17.6%202.9%2012.6-12.7zm0-143%2016%208.1%2012.6-12.6-2.8%2017.6%2016%208.2-17.8%202.8-2.7%2017.6-8.2-16-17.6%202.9%2012.6-12.7zm54-1.7%2015.9%208.1%2012.6-12.6-2.8%2017.6%2016%208.1-17.7%202.8-2.8%2017.7-8.1-16-17.8%203%2012.7-12.7z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M180.8%20133.6H256v75.2zm-47.2%2047.2v75.3l75.2-.1z%22%2F%3E%3C%2Fsvg%3E"},UG:{name:"Uganda",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%2085v342l256%2031%20256-31V85L256%2053Z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v85H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20171h512v85l-256%2031L0%20256Z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20256h512v85H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20427h512v85H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2285.3%22%20fill%3D%22%23eee%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m287%20260-31-13%208-26a17%2017%200%200%200-5-16l8-8a28%2028%200%200%200-19-8%2028%2028%200%200%200-20%208l8%208a17%2017%200%200%200-5%2012l1%205-12%2012h21s-9%2013-14%2024c-4%2011%200%2025%2012%2030l6%202%2011%2010v12l-11%2011h22v-23l10-10h21a22%2022%200%200%200-11-30z%22%2F%3E%3C%2Fsvg%3E"},UA:{name:"Ukraine",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20256%20258-39.4L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3C%2Fsvg%3E"},AE:{name:"United Arab Emirates",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h167l52.3%20252L167%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m167%20167%20170.8-44.6L512%20167v178l-173.2%2036.9L167%20345z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M167%200h345v167H167z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M167%20345h345v167H167z%22%2F%3E%3C%2Fsvg%3E"},GB:{name:"Great Britain",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%200%208%2022-8%2023v23l32%2054-32%2054v32l32%2048-32%2048v32l32%2054-32%2054v68l22-8%2023%208h23l54-32%2054%2032h32l48-32%2048%2032h32l54-32%2054%2032h68l-8-22%208-23v-23l-32-54%2032-54v-32l-32-48%2032-48v-32l-32-54%2032-54V0l-22%208-23-8h-23l-54%2032-54-32h-32l-48%2032-48-32h-32l-54%2032L68%200H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M336%200v108L444%200Zm176%2068L404%20176h108zM0%20176h108L0%2068ZM68%200l108%20108V0Zm108%20512V404L68%20512ZM0%20444l108-108H0Zm512-108H404l108%20108Zm-68%20176L336%20404v108z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v45l131%20131h45L0%200zm208%200v208H0v96h208v208h96V304h208v-96H304V0h-96zm259%200L336%20131v45L512%200h-45zM176%20336%200%20512h45l131-131v-45zm160%200%20176%20176v-45L381%20336h-45z%22%2F%3E%3C%2Fsvg%3E"},US:{name:"United States",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M256%200h256v64l-32%2032%2032%2032v64l-32%2032%2032%2032v64l-32%2032%2032%2032v64l-256%2032L0%20448v-64l32-32-32-32v-64z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M224%2064h288v64H224Zm0%20128h288v64H256ZM0%20320h512v64H0Zm0%20128h512v64H0Z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h256v256H0Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m187%20243%2057-41h-70l57%2041-22-67zm-81%200%2057-41H93l57%2041-22-67zm-81%200%2057-41H12l57%2041-22-67zm162-81%2057-41h-70l57%2041-22-67zm-81%200%2057-41H93l57%2041-22-67zm-81%200%2057-41H12l57%2041-22-67Zm162-82%2057-41h-70l57%2041-22-67Zm-81%200%2057-41H93l57%2041-22-67zm-81%200%2057-41H12l57%2041-22-67Z%22%2F%3E%3C%2Fsvg%3E"},UY:{name:"Uruguay",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%20256%20256%200h256v55.7l-20.7%2034.5%2020.7%2032.2v66.8l-21.2%2032.7L512%20256v66.8l-24%2031.7%2024%2035.1v66.7l-259.1%2028.3L0%20456.3v-66.7l27.1-33.3L0%20322.8z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M256%20256h256v-66.8H236.9zm-19.1-133.6H512V55.7H236.9zM512%20512v-55.7H0V512zM0%20389.6h512v-66.8H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m222.6%20149.8-31.3%2014.7%2016.7%2030.3-34-6.5-4.3%2034.3-23.6-25.2-23.7%2025.2-4.3-34.3-33.9%206.5%2016.6-30.3-31.2-14.7%2031.2-14.7-16.6-30.3%2034%206.5%204.2-34.3%2023.7%2025.3L169.7%2077l4.3%2034.3%2034-6.5-16.7%2030.3z%22%2F%3E%3C%2Fsvg%3E"},UZ:{name:"Uzbekistan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20178%20254.2-22L512%20178v22.3l-40.2%2054.1%2040.2%2057.3V334l-254%2023.4L0%20334v-22.3l36.7-59.4-36.7-52z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v178H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20200.3h512v111.4H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20334h512v178H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M117.2%20105.7a50%2050%200%200%201%2039.3-48.9%2050.2%2050.2%200%200%200-10.7-1.1%2050%2050%200%201%200%2010.7%2099c-22.5-5-39.3-25-39.3-49zm69%2022.8%203.3%2010.4h11l-9%206.5%203.5%2010.4-9-6.4-8.7%206.4%203.4-10.4-9-6.5h11zm35%200%203.4%2010.4h11l-9%206.5%203.4%2010.4-8.8-6.4-9%206.4%203.5-10.4-9-6.5h11zm35%200%203.4%2010.4h11l-9%206.5%203.5%2010.4-9-6.4-8.8%206.4%203.4-10.4-9-6.5h11zm35%200%203.4%2010.4h11l-9%206.5%203.5%2010.4-9-6.4-8.8%206.4%203.4-10.4-9-6.5h11zm35%200%203.4%2010.4h11l-9%206.5%203.5%2010.4-9-6.4-8.8%206.4%203.4-10.4-8.8-6.5h11zm-105-36.4%203.4%2010.4h11l-9%206.5%203.4%2010.4-8.8-6.5-9%206.5%203.5-10.4-9-6.5h11zm35%200%203.4%2010.4h11l-9%206.5%203.5%2010.4-9-6.5-8.8%206.5%203.4-10.4-9-6.5h11zm35%200%203.4%2010.4h11l-9%206.5%203.5%2010.4-9-6.5-8.8%206.5%203.4-10.4-9-6.5h11zm35%200%203.4%2010.4h11l-9%206.5%203.5%2010.4-9-6.5-8.8%206.5%203.4-10.4-8.8-6.5h11zm-70-36.4%203.4%2010.4h11l-9%206.4%203.6%2010.5-9-6.5-8.8%206.5%203.4-10.5-9-6.4h11zm35%200%203.4%2010.4h11l-9%206.4%203.6%2010.5-9-6.5-8.8%206.5%203.4-10.5-9-6.4h11zm35%200%203.4%2010.4h11l-9%206.4%203.6%2010.5-9-6.5-8.8%206.5%203.4-10.5-8.8-6.4h11z%22%2F%3E%3C%2Fsvg%3E"},VU:{name:"Vanuatu",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%20222.6V0H0l215.6%20239.4z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M512%20289.4V512H0l216.5-240z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m0%200%20222.6%20222.6H512v22.2l-10.9%2011.8L512%20267v22.4H222.6L0%20512v-31.5l8-23-8-8.6V63l9.5-10.4-9.5-21z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22M512%20244.8H213.2L0%2031.7V63l192.8%20193L0%20449v31.5L213.2%20267H512z%22%2F%3E%3Cpath%20d%3D%22M62.2%20310.6V289a38.8%2038.8%200%200%200%2038.8-38.8A27.5%2027.5%200%200%200%2073.5%20223a18.7%2018.7%200%200%200-18.7%2018.7%2012%2012%200%200%200%2012%2012c3.7%200%206.8-3%206.8-6.8H95A28.2%2028.2%200%200%201%2066.8%20275c-18.4%200-33.4-15-33.4-33.4%200-22.2%2018-40.2%2040-40.2a49%2049%200%200%201%2049%2049c0%2033.1-27%2060.2-60.2%2060.2z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},VE:{name:"Venezuela (Bolivarian Republic of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20144.7%20255.3-36.5L512%20144.7v222.6L250.5%20407%200%20367.3z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M443.4%20306.4%20429.8%20317l6%2016.1-14.3-9.6-13.5%2010.7%204.7-16.5-14.2-9.6%2017.1-.6%204.7-16.5%206%2016.1zm-34.7-60-9%2014.5%2011%2013.2L394%20270l-9%2014.6-1.3-17-16.6-4.3%2015.9-6.4-1.2-17%2011%2013zm-53-44.5-3.6%2016.8%2014.9%208.4-17%201.8-3.6%2016.8-7-15.7-17%201.8%2012.7-11.5-7-15.6%2014.8%208.6zm-65-23.7%202.3%2017%2017%203-15.5%207.5%202.4%2017-12-12.4-15.4%207.6%208-15.2-11.8-12.3%2016.9%203zm-69.3%200%208%2015.1%2017-3-12%2012.4%208%2015.2-15.4-7.6-11.9%2012.4%202.4-17-15.4-7.5%2016.9-3zm-65%2023.7%2012.7%2011.5%2014.8-8.6-7%2015.7%2012.8%2011.4-17-1.8-7%2015.7-3.7-16.7-17-1.8%2014.8-8.5zm-53.1%2044.5%2015.9%206.4%2011-13-1.2%2017%2016%206.4-16.7%204.2-1.2%2017L118%20270l-16.7%204.2%2011-13.2zm-34.7%2060%2017.2.5%205.9-16%204.7%2016.4%2017.1.6-14.2%209.6%204.7%2016.6-13.5-10.6-14.2%209.6%205.9-16z%22%2F%3E%3C%2Fsvg%3E"},VN:{name:"Viet Nam",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%20133.6%2027.6%2085H373L300.7%20271l27.6%2085-72.3-52.5-72.3%2052.6%2027.6-85-72.3-52.6h89.4z%22%2F%3E%3C%2Fsvg%3E"},VG:{name:"Virgin Islands (British)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m367.3%20256-69.2%2069.2a77.9%2077.9%200%200%200%20138.4%200z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M289.4%20133.6V256c0%2059.6%2077.9%2078%2077.9%2078s78-18.4%2078-78V133.6h-156z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M445.2%20256zm-155.8%200z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M311.7%20155.8h22.2v22.3h-22.2zm0%2050.1h22.2v22.3h-22.2zm0%2050.1h22.2v22.3h-22.2zm89-100.2H423v22.3h-22.3zm0%2050.1H423v22.3h-22.3zm0%2050.1H423v22.3h-22.3z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M350.6%20189.2H384v89h-33.4z%22%2F%3E%3Ccircle%20cx%3D%22367.3%22%20cy%3D%22189.2%22%20r%3D%2216.7%22%20fill%3D%22%23a2001d%22%2F%3E%3C%2Fsvg%3E"},VI:{name:"Virgin Islands (U.S.)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22M299.5%20178.8a43.5%2043.5%200%201%200-87%200H117a44%2044%200%200%200%2044.2%2042.9h-1.4a42.8%2042.8%200%200%200%2042.8%2042.8l53.5%2042%2053.5-42a42.8%2042.8%200%200%200%2042.8-42.8H351a44%2044%200%200%200%2044.2-42.9h-95.6z%22%2F%3E%3Cpath%20d%3D%22m236.9%20302.3-27%2060.9a122%20122%200%200%200%2046.1%209%20122%20122%200%200%200%2046-9l-26.9-60.9H237z%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m255.3%20214-55%2021.5v39.7a49.1%2049.1%200%200%200%2022.3%2040l11.3-2.3%2011%2014.3a98.2%2098.2%200%200%200%2011.1%203.6s4.6-1.1%2011.1-3.6l9.4-14.1%2013%202.1a49.2%2049.2%200%200%200%2022.2-40.1v-39.6z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M62%20257.8%2092.3%20342l29.8-84.2h22.7l-43.4%20111.3H83L39.3%20257.8h22.8zm349.8%20111.3V257.8h21.7v111.3z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M222.6%20224.4v90.8a96%2096%200%200%200%2022.3%2012V224.3zm66.8%200v90.8a98%2098%200%200%201-22.3%2012V224.3z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M200.3%20200.2h111.4v35.3H200.3z%22%2F%3E%3C%2Fsvg%3E"},WF:{name:"Wallis and Futuna",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h256v256H0Z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h75v224H0Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M149%200h75v224h-75z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m384%20232-72-72h144zm-24%2024-72-72v144zm24%2024-72%2072h144zm24-24%2072-72v144z%22%2F%3E%3C%2Fsvg%3E"},EH:{name:"Western Sahara",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m90.1%20144.8%20210.5-27.7L512%20144.8v222.6l-209%2032.4-213-32.4z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v144.8H28.2z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M39.5%20367.4H512V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20.1V512h.1L256%20256.1%200%20.1zm365.1%20178.1a78%2078%200%201%200%2018.9%20154%2078%2078%200%200%201%200-152.2%2078.2%2078.2%200%200%200-18.9-1.8z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m387.3%20206.1%2011%2034h35.8l-29%2021%2011.1%2034-29-21-28.9%2021%2011.1-34-29-21h35.8z%22%2F%3E%3C%2Fsvg%3E"},YE:{name:"Yemen",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},ZM:{name:"Zambia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h512v256L256%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M473%20167h-66.7a22.3%2022.3%200%200%200-44.6%200H295a23%2023%200%200%200%2023%2022.2h-.8c0%2012.3%2010%2022.3%2022.3%2022.3%200%2012.3%2010%2022.2%2022.2%2022.2h44.6c12.3%200%2022.2-10%2022.2-22.2%2012.3%200%2022.3-10%2022.3-22.3h-.8a23%2023%200%200%200%2023-22.2z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M341.3%20256h85.4l21.1%20126.3L426.7%20512h-85.4l-23.5-128z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%20256h85.3v256H256z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M426.7%20256H512v256h-85.3z%22%2F%3E%3C%2Fsvg%3E"},ZW:{name:"Zimbabwe",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M31.4%200H512v512H31.4z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M57.8%2073.3H512v73.3l-65.1%20110%2065.1%20110v73.3H57.8z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M132%20146.6h380v73.3l-27%2036%2027%2037.3v73.3H132z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v512l279.8-256z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m103%20189.2%2016.5%2051h53.6l-43.4%2031.6%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51-43.4-31.6h53.6z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m148.5%20260.2-43.2-15.3-3.4-31a16.7%2016.7%200%201%200-32.5%207.6l-12%2012.1h21.5c0%2022.4-16.7%2022.4-16.7%2044.7l9.2%2022.2h55.7l9.3-22.2a22.2%2022.2%200%200%200%201.7-6.6c8-3.2%2010.4-11.5%2010.4-11.5z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m31.4%200%20220%20220H512v73.2H250.2L31.4%20512H0l256-256L0%200z%22%2F%3E%3C%2Fsvg%3E"}},F8=(0,m9.F)("inline-flex items-center gap-6 w-fit",{variants:{size:{small:"",medium:""}}}),Re=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f=(0,ej.c)(29);f[0]!==e?({ref:a,asChild:l,code:n,size:o,className:r,children:t,"data-testid":s,...i}=e,f[0]=e,f[1]=t,f[2]=r,f[3]=n,f[4]=i,f[5]=a,f[6]=l,f[7]=o,f[8]=s):(t=f[1],r=f[2],n=f[3],i=f[4],a=f[5],l=f[6],o=f[7],s=f[8]);let m=void 0!==l&&l,g=void 0===o?"small":o,C=F6[n],v=m?Ew.DX:"div",y=g??"medium";return f[9]!==n||f[10]!==C||f[11]!==y?(c={code:n,size:y,countryData:C},f[9]=n,f[10]=C,f[11]=y,f[12]=c):c=f[12],f[13]!==r||f[14]!==g?(d=(0,m2.cn)(F8({size:g}),r),f[13]=r,f[14]=g,f[15]=d):d=f[15],f[16]!==v||f[17]!==t||f[18]!==i||f[19]!==a||f[20]!==d||f[21]!==s?(u=(0,eB.Y)(v,{...i,ref:a,"data-testid":s,"data-slot":"country",className:d,children:t}),f[16]=v,f[17]=t,f[18]=i,f[19]=a,f[20]=d,f[21]=s,f[22]=u):u=f[22],f[23]!==u||f[24]!==s?(h=(0,eB.Y)(m3,{value:s,children:u}),f[23]=u,f[24]=s,f[25]=h):h=f[25],f[26]!==c||f[27]!==h?(p=(0,eB.Y)(F7.Provider,{value:c,children:h}),f[26]=c,f[27]=h,f[28]=p):p=f[28],p},"Country");Re.displayName="Country";let Rt=(0,m9.F)("shrink-0 rounded-full object-cover",{variants:{size:{small:"size-16",medium:"size-20"}}}),Rr=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(12);a[0]!==e?({className:t,...r}=e,a[0]=e,a[1]=t,a[2]=r):(t=a[1],r=a[2]);let l=m5("flag"),{code:o,size:s,countryData:c}=F9();if(!c?.flag)return null;let d=c.flag,u=c.name??o;return a[3]!==t||a[4]!==s?(n=(0,m2.cn)(Rt({size:s}),t),a[3]=t,a[4]=s,a[5]=n):n=a[5],a[6]!==c.flag||a[7]!==r||a[8]!==u||a[9]!==n||a[10]!==l?(i=(0,eB.Y)("img",{...r,src:d,alt:u,"data-slot":"country-flag","data-testid":l,className:n}),a[6]=c.flag,a[7]=r,a[8]=u,a[9]=n,a[10]=l,a[11]=i):i=a[11],i},"CountryFlag"),Rn=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(9),a=m5("name"),{code:l,size:o,countryData:s}=F9(),c="small"===o?"xs":"sm",d=s?.name??l;i[0]!==c||i[1]!==d||i[2]!==a?(t=(0,eB.Y)(bw,{asChild:!0,children:(0,eB.Y)(bk.E,{size:c,"data-slot":"country-name","data-testid":a,lineClamp:1,truncate:!0,children:d})}),i[0]=c,i[1]=d,i[2]=a,i[3]=t):t=i[3];let u=s?.name??l;return i[4]!==u?(r=(0,eB.Y)(bS,{children:u}),i[4]=u,i[5]=r):r=i[5],i[6]!==t||i[7]!==r?(n=(0,eB.FD)(bE,{children:[t,r]}),i[6]=t,i[7]=r,i[8]=n):n=i[8],n},"CountryName");Rn.displayName="CountryName";let Ri=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(6),{order:i,hourCycle:a,children:l}=e;n[0]!==a||n[1]!==i?(t={order:i,hourCycle:a},n[0]=a,n[1]=i,n[2]=t):t=n[2];let o=t;return n[3]!==l||n[4]!==o?(r=(0,eB.Y)(M_.Provider,{value:o,children:l}),n[3]=l,n[4]=o,n[5]=r):r=n[5],r},"DateFormatProvider");Ri.displayName="DateFormatProvider";let Ra=(0,c0.createContext)(void 0),Rl=()=>{let e=(0,c0.useContext)(Ra);if(!e)throw Error("useDateRangeContext must be used within a <DateRangeProvider>. Did you forget to wrap the component tree, or are you rendering DateRangeStartValue / DateRangeEndValue / DateRangeSeparator outside it?");return e},Ro=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w,S,E,k,P,D,A,T,M,L,I,N=(0,ej.c)(90);N[0]!==e?({type:i,onHasPartialValueChange:t,ref:n,wrapperHtmlProps:a,...r}=e,N[0]=e,N[1]=t,N[2]=r,N[3]=n,N[4]=i,N[5]=a):(t=N[1],r=N[2],n=N[3],i=N[4],a=N[5]);let{state:F,disabled:R,error:V,readOnly:_,showTimeDropdown:Y,timeStep:$,hourCycle:H,icon:z}=Rl(),Z=void 0!==R&&R,Q=void 0!==_&&_,B=void 0===$?30:$,{locale:j}=TE(),G=(0,c0.useRef)(null),U=(0,c0.useRef)(null),[W,q]=(0,c0.useState)(!1);N[6]!==H||N[7]!==j||N[8]!==r?(l={...r,locale:j,createCalendar:At,hourCycle:H,shouldForceLeadingZeros:!0},N[6]=H,N[7]=j,N[8]=r,N[9]=l):l=N[9];let X=MV(l),{fieldProps:K}=Mr(r,X,U);N[10]!==X.segments?(o=X.segments.some(Rs),N[10]=X.segments,N[11]=o):o=N[11];let J=o;N[12]!==J||N[13]!==t?(s=()=>{t?.(J)},c=[J,t],N[12]=J,N[13]=t,N[14]=s,N[15]=c):(s=N[14],c=N[15]),(0,c0.useEffect)(s,c),N[16]!==X.segments?(d=X.segments.some(Rc),N[16]=X.segments,N[17]=d):d=N[17];let ee=d;N[18]!==ee||N[19]!==Y?(u=()=>{Y&&ee&&q(!0)},N[18]=ee,N[19]=Y,N[20]=u):u=N[20];let et=u;N[21]===Symbol.for("react.memo_cache_sentinel")?(h=e=>{e.currentTarget.contains(e.relatedTarget)||q(!1)},N[21]=h):h=N[21];let er=h;N[22]!==ee||N[23]!==W||N[24]!==Y?(p=()=>{Y&&ee&&!W&&q(!0)},N[22]=ee,N[23]=W,N[24]=Y,N[25]=p):p=N[25];let en=p;N[26]!==X.value||N[27]!==F||N[28]!==i?(f=e=>{var t;let r,n=X.value,a=n&&"hour"in n?n.set({hour:e.hour,minute:e.minute,second:0,millisecond:0}):(t=e,new pG((r=hG(hK())).year,r.month,r.day,t.hour,t.minute,0));F.setDateTime(i,a),q(!1)},N[26]=X.value,N[27]=F,N[28]=i,N[29]=f):f=N[29];let ei=f,ea=!!Y;N[30]===Symbol.for("react.memo_cache_sentinel")?(m=()=>q(!0),N[30]=m):m=N[30],N[31]!==W||N[32]!==ea?(g={enabled:ea,isOpen:W,dropdownRef:G,onOpen:m},N[31]=W,N[32]=ea,N[33]=g):g=N[33];let el=MG(g),eo=X.value&&ee?X.value:null;N[34]!==a?(C=a??{},N[34]=a,N[35]=C):C=N[35],N[36]!==C?({className:v,onClick:b,onFocus:x,onBlur:y,onKeyDownCapture:O,...w}=C,N[36]=C,N[37]=v,N[38]=y,N[39]=b,N[40]=x,N[41]=O,N[42]=w):(v=N[37],y=N[38],b=N[39],x=N[40],O=N[41],w=N[42]),N[43]!==b||N[44]!==en?(S=e=>{b?.(e),e.defaultPrevented||en()},N[43]=b,N[44]=en,N[45]=S):S=N[45];let es=S;N[46]!==x||N[47]!==et?(E=e=>{x?.(e),e.defaultPrevented||et()},N[46]=x,N[47]=et,N[48]=E):E=N[48];let ec=E;N[49]!==y?(k=e=>{y?.(e),e.defaultPrevented||er(e)},N[49]=y,N[50]=k):k=N[50];let ed=k;N[51]!==O||N[52]!==el?(P=e=>{O?.(e),e.defaultPrevented||el(e)},N[51]=O,N[52]=el,N[53]=P):P=N[53];let eu=P,eh=!z&&"start"===i&&"pl-12";N[54]!==v||N[55]!==eh?(D=(0,m2.cn)("relative h-full",eh,v),N[54]=v,N[55]=eh,N[56]=D):D=N[56],N[57]!==n?(A=(0,b8.t)(U,n),N[57]=n,N[58]=A):A=N[58];let ep=Q&&"cursor-not-allowed";N[59]!==ep?(T=(0,m2.cn)("h-full",ep),N[59]=ep,N[60]=T):T=N[60];let ef=Z||void 0,em=void 0!==V&&V||void 0,eg=Q||void 0,eC=`${i}-`;return N[61]!==Z||N[62]!==K||N[63]!==X||N[64]!==Q||N[65]!==A||N[66]!==T||N[67]!==ef||N[68]!==em||N[69]!==eg||N[70]!==eC||N[71]!==i?(M=(0,eB.Y)(Lh,{...K,ref:A,"data-slot":"input",className:T,"aria-disabled":ef,"aria-invalid":em,"data-readonly":eg,"data-field-type":i,state:X,disabled:Z,readOnly:Q,segmentKeyPrefix:eC}),N[61]=Z,N[62]=K,N[63]=X,N[64]=Q,N[65]=A,N[66]=T,N[67]=ef,N[68]=em,N[69]=eg,N[70]=eC,N[71]=i,N[72]=M):M=N[72],N[73]!==eo||N[74]!==ei||N[75]!==ee||N[76]!==H||N[77]!==W||N[78]!==Y||N[79]!==B?(L=Y&&ee&&(0,eB.Y)(Lf,{ref:G,isOpen:W,timeStep:B,hourCycle:H,value:eo,onSelect:ei,onClose:()=>q(!1)}),N[73]=eo,N[74]=ei,N[75]=ee,N[76]=H,N[77]=W,N[78]=Y,N[79]=B,N[80]=L):L=N[80],N[81]!==ed||N[82]!==es||N[83]!==ec||N[84]!==eu||N[85]!==w||N[86]!==D||N[87]!==M||N[88]!==L?(I=(0,eB.FD)("div",{...w,className:D,onKeyDownCapture:eu,onClick:es,onFocus:ec,onBlur:ed,children:[M,L]}),N[81]=ed,N[82]=es,N[83]=ec,N[84]=eu,N[85]=w,N[86]=D,N[87]=M,N[88]=L,N[89]=I):I=N[89],I},"DateRangeSegmentGroup");function Rs(e){return e.isEditable&&!e.isPlaceholder}function Rc(e){return"hour"===e.type||"minute"===e.type}Ro.displayName="DateRangeSegmentGroup";let Rd=(0,eQ.G)(e=>{let t,r=(0,ej.c)(4),{endFieldProps:n,endRef:i}=Rl();return r[0]!==n||r[1]!==i||r[2]!==e?(t=(0,eB.Y)(Ro,{...n,ref:i,type:"end",wrapperHtmlProps:e}),r[0]=n,r[1]=i,r[2]=e,r[3]=t):t=r[3],t},"DateRangeEndValue");function Ru(e){return e?.start!=null&&null!=e.end}Rd.displayName="DateRangeEndValue";var Rh=i("Wv");function Rp(e){let t,r,n,i=(0,ej.c)(9),{value:a,defaultValue:l,onChange:o}=e,s=l??null;i[0]!==a||i[1]!==s?(t={controlled:a,default:s},i[0]=a,i[1]=s,i[2]=t):t=i[2];let[c,d]=(0,Rh.q)(t);i[3]!==o||i[4]!==d?(r=e=>{d(e),o?.(e)},i[3]=o,i[4]=d,i[5]=r):r=i[5];let u=r;return i[6]!==u||i[7]!==c?(n={value:c,onChange:u},i[6]=u,i[7]=c,i[8]=n):n=i[8],n}let Rf=(0,eQ.G)(e=>{let{children:t,ref:r,value:n,defaultValue:i,onChange:a,error:l=!1,disabled:o=!1,readOnly:s=!1,granularity:c="day",placeholder:d,showTimeDropdown:u,timeStep:h=30,showIcon:p=!0,size:f="default"}=e,m=d??MQ({granularity:c,isRange:!0}),g=p?t_:void 0,{hourCycle:C}=M$(),v=(0,c0.useRef)(null),y=(0,c0.useRef)(null),b=(0,c0.useRef)(null),{value:x,onChange:O}=Rp({value:n,defaultValue:i,onChange:a}),w=function(e){let t=function(e){let[t,r]=MD(e.isOpen,e.defaultOpen||!1,e.onOpenChange),n=(0,c0.useCallback)(()=>{r(!0)},[r]),i=(0,c0.useCallback)(()=>{r(!1)},[r]),a=(0,c0.useCallback)(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:i,toggle:a}}(e),[r,n]=MD(e.value,e.defaultValue||null,e.onChange),[i]=(0,c0.useState)(r),[a,l]=(0,c0.useState)(()=>r||{start:null,end:null});null==r&&a.start&&a.end&&l(a={start:null,end:null});let o=r||a,s=e=>{l(o=e||{start:null,end:null}),Ru(o)?n(o):n(null)},[c,d]=MO(o?.start||o?.end||e.placeholderValue||null,e.granularity),u="hour"===c||"minute"===c||"second"===c,h=e.shouldCloseOnSelect??!0,[p,f]=(0,c0.useState)(null),[m,g]=(0,c0.useState)(null);o&&Ru(o)&&(p=o,"hour"in o.start&&(m=o));let C=(e,t)=>{s({start:"timeZone"in t.start?t.start.set(pc(e.start)):pd(e.start,t.start),end:"timeZone"in t.end?t.end.set(pc(e.end)):pd(e.end,t.end)}),f(null),g(null),k.commitValidation()},v=r=>{let n="function"==typeof h?h():h;u?Ru(r)&&(n||m?.start&&m?.end)?C(r,{start:m?.start||Mb(e.placeholderValue),end:m?.end||Mb(e.placeholderValue)}):f(r):Ru(r)?(s(r),k.commitValidation()):f(r),n&&t.setOpen(!1)},y=e=>{Ru(p)&&Ru(e)?C(p,e):g(e)},b=o?.start?.calendar.identifier==="gregory"&&"BC"===o.start.era||o?.end?.calendar.identifier==="gregory"&&"BC"===o.end.era,x=(0,c0.useMemo)(()=>({granularity:c,timeZone:d,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:b}),[c,e.hourCycle,e.shouldForceLeadingZeros,d,e.hideTimeZone,b]),{minValue:O,maxValue:w,isDateUnavailable:S}=e,E=(0,c0.useMemo)(()=>{var e,t;let r;return e=o,t=S?e=>S(e,null):void 0,r=Mp(Mg(e?.start??null,O,w,t,x),Mg(e?.end??null,O,w,t,x)),e?.end!=null&&null!=e.start&&0>e.end.compare(e.start)&&(r=Mp(r,{isInvalid:!0,validationErrors:[(T0.getGlobalDictionaryForPackage("@react-stately/datepicker")||Mf).getStringForLocale("rangeReversed",Mm())],validationDetails:{...Mi,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),r},[o,O,w,S,x]),k=Mc({...e,value:r,name:(0,c0.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:E}),P=k.displayValidation.isInvalid,D=e.validationState||(P?"invalid":null);return{...k,value:o,defaultValue:e.defaultValue??i,setValue:s,dateRange:p,timeRange:m,granularity:c,hasTime:u,setDate(e,t){"start"===e?v({start:t,end:p?.end??null}):v({start:p?.start??null,end:t})},setTime(e,t){"start"===e?y({start:t,end:m?.end??null}):y({start:m?.start??null,end:t})},setDateTime(e,t){"start"===e?s({start:t,end:o?.end??null}):s({start:o?.start??null,end:t})},setDateRange:v,setTimeRange:y,...t,setOpen(r){!r&&!(o?.start&&o?.end)&&Ru(p)&&u&&C(p,{start:m?.start||Mb(e.placeholderValue),end:m?.end||Mb(e.placeholderValue)}),t.setOpen(r)},validationState:D,isInvalid:P,formatValue(t,r){let n;if(!o||!o.start||!o.end)return null;let i="timeZone"in o.start?o.start.timeZone:void 0,a=e.granularity||(o.start&&"minute"in o.start?"minute":"day"),l="timeZone"in o.end?o.end.timeZone:void 0,s=e.granularity||(o.end&&"minute"in o.end?"minute":"day"),c=My(r,{granularity:a,timeZone:i,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===o.start.calendar.identifier&&"BC"===o.start.era||"gregory"===o.end.calendar.identifier&&"BC"===o.end.era}),d=o.start.toDate(i||"UTC"),u=o.end.toDate(l||"UTC"),h=new kp(t,c);if(i===l&&a===s&&0!==o.start.compare(o.end)){try{let e=h.formatRangeToParts(d,u),t=-1;for(let r=0;r<e.length;r++){let n=e[r];if("shared"===n.source&&"literal"===n.type)t=r;else if("endRange"===n.source)break}let r="",n="";for(let i=0;i<e.length;i++)i<t?r+=e[i].value:i>t&&(n+=e[i].value);return{start:r,end:n}}catch{}n=h}else n=new kp(t,My(r,{granularity:s,timeZone:l,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:h.format(d),end:n.format(u)}},getDateFormatter:(e,t)=>new kp(e,My({},{...x,...t}))}}({value:x,onChange:e=>O(e??null),isDisabled:o,isReadOnly:s,granularity:c,hourCycle:C,shouldForceLeadingZeros:!0}),{groupProps:S,startFieldProps:E,endFieldProps:k}=function(e,t,r){var n;let i=T6((n=A8)&&n.__esModule?n.default:n,"@react-aria/datepicker"),{isInvalid:a,validationErrors:l,validationDetails:o}=t.displayValidation,{labelProps:s,fieldProps:c,descriptionProps:d,errorMessageProps:u}=TK({...e,labelElementType:"span",isInvalid:a,errorMessage:e.errorMessage||l}),h=c["aria-labelledby"]||c.id,{locale:p}=TE(),f=t.formatValue(p,{month:"long"}),m=Tq(f?i.format("selectedRangeDescription",{startDate:f.start,endDate:f.end}):""),g={"aria-label":i.format("startDate"),"aria-labelledby":h},C={"aria-label":i.format("endDate"),"aria-labelledby":h},v=Th(),y=Th(),b=Tj(t,r),x=[m["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,O=(0,c0.useMemo)(()=>AJ(r,{accept:e=>e.id!==v}),[r,v]),w={[Mt]:O,[Me]:"presentation","aria-describedby":x,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},S=A6(e),E=(0,c0.useRef)(!1),{focusWithinProps:k}=TJ({...e,isDisabled:t.isOpen,onBlurWithin:t=>{Ai(document.getElementById(y),t.relatedTarget)||(E.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{E.current||(E.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}}),P=(0,c0.useRef)(Ml),D=(0,c0.useRef)(Ml);return{groupProps:Tg(S,b,c,m,k,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":x,onKeyDown(r){!t.isOpen&&e.onKeyDown&&e.onKeyDown(r)},onKeyUp(r){!t.isOpen&&e.onKeyUp&&e.onKeyUp(r)}}),labelProps:{...s,onClick:()=>{O.focusFirst()}},buttonProps:{...m,id:v,"aria-haspopup":"dialog","aria-label":i.format("calendar"),"aria-labelledby":`${v} ${h}`,"aria-describedby":x,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:y,"aria-labelledby":`${v} ${h}`},startFieldProps:{...g,...w,value:t.value?.start??null,defaultValue:t.defaultValue?.start,onChange:e=>t.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,form:e.form,[Ms]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){P.current=e,t.updateValidation(Mp(e,D.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...C,...w,value:t.value?.end??null,defaultValue:t.defaultValue?.end,onChange:e=>t.setDateTime("end",e),name:e.endName,form:e.form,[Ms]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){D.current=e,t.updateValidation(Mp(P.current,e))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:d,errorMessageProps:u,calendarProps:{autoFocus:!0,value:t.dateRange?.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:a,validationErrors:l,validationDetails:o}}({value:x,isDisabled:o,isReadOnly:s,granularity:c,hourCycle:C},w,v);return(0,eB.Y)(Ra.Provider,{value:{finalRef:(0,b8.t)(v,r),startRef:y,endRef:b,groupProps:S,startFieldProps:E,endFieldProps:k,state:w,disabled:o,readOnly:s,error:l,placeholder:m,showTimeDropdown:u,timeStep:h,hourCycle:C,icon:g,size:f},children:t})},"DateRangeProvider");Rf.displayName="DateRangeProvider";let Rm=(0,m9.F)((0,m2.cn)("relative group/temporal flex-1 h-full flex items-center gap-4","focus-within:outline-none","data-disabled:opacity-50 data-disabled:cursor-not-allowed")),Rg=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(8),{children:i}=e,{groupProps:a,finalRef:l,disabled:o,error:s}=Rl();n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)(Rm()),n[0]=t):t=n[0];let c=o||void 0,d=o||void 0,u=s||void 0;return n[1]!==i||n[2]!==l||n[3]!==a||n[4]!==c||n[5]!==d||n[6]!==u?(r=(0,eB.Y)("div",{...a,ref:l,"data-slot":"date-range-group",className:t,"data-disabled":c,"aria-disabled":d,"aria-invalid":u,children:i}),n[1]=i,n[2]=l,n[3]=a,n[4]=c,n[5]=d,n[6]=u,n[7]=r):r=n[7],r},"DateRangeGroup"),RC=(0,eQ.G)(()=>{let e,t,r=(0,ej.c)(3),n=m5("separator");return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,m2.cn)("text-sm text-text-secondary select-none"),r[0]=e):e=r[0],r[1]!==n?(t=(0,eB.Y)("span",{"data-slot":"date-range-separator","data-testid":n,className:e,"aria-hidden":"true",children:"→"}),r[1]=n,r[2]=t):t=r[2],t},"DateRangeSeparator");RC.displayName="DateRangeSeparator";let Rv=(0,eQ.G)(()=>{let e,t,r,n,i,a,l,o,s,c,d,u,h,p,f=(0,ej.c)(40),{icon:m,state:g,startFieldProps:C,startRef:v,endFieldProps:y,endRef:b,disabled:x,readOnly:O,placeholder:w,size:S}=Rl(),E=m5("input-group"),[k,P]=(0,c0.useState)(!1),[D,A]=(0,c0.useState)(!1),[T,M]=(0,c0.useState)(!1),[L,I]=(0,c0.useState)(0),N=k||D;f[0]!==g?(e=()=>{g.setValue(null),I(Ry)},f[0]=g,f[1]=e):e=f[1];let F=e;f[2]===Symbol.for("react.memo_cache_sentinel")?(t=()=>M(!0),f[2]=t):t=f[2];let R=t;f[3]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{e.currentTarget.contains(e.relatedTarget)||M(!1)},f[3]=r):r=f[3];let V=r,_=!!w&&!N&&!T;f[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,m2.cn)("**:data-[slot=input]:first:pr-0 **:data-[slot=input]:last:pl-0"),f[4]=n):n=f[4],f[5]!==m?(i=m&&(0,eB.Y)(SA,{children:(0,eB.Y)(m,{})}),f[5]=m,f[6]=i):i=f[6],f[7]!==m||f[8]!==w||f[9]!==_?(a=_&&w&&(0,eB.Y)(MU,{text:w,className:(0,m2.cn)(!m&&"pl-12")}),f[7]=m,f[8]=w,f[9]=_,f[10]=a):a=f[10];let Y=_&&"[&>*]:opacity-0";f[11]!==Y?(l=(0,m2.cn)("contents",Y),f[11]=Y,f[12]=l):l=f[12];let $=`start-${L}`;f[13]!==C||f[14]!==v||f[15]!==$?(o=(0,eB.Y)(Ro,{...C,ref:v,type:"start",onHasPartialValueChange:P},$),f[13]=C,f[14]=v,f[15]=$,f[16]=o):o=f[16],f[17]===Symbol.for("react.memo_cache_sentinel")?(s=(0,eB.Y)(RC,{}),f[17]=s):s=f[17];let H=`end-${L}`;return f[18]!==y||f[19]!==b||f[20]!==H?(c=(0,eB.Y)(Ro,{...y,ref:b,type:"end",onHasPartialValueChange:A},H),f[18]=y,f[19]=b,f[20]=H,f[21]=c):c=f[21],f[22]!==c||f[23]!==l||f[24]!==o?(d=(0,eB.FD)("div",{className:l,children:[o,s,c]}),f[22]=c,f[23]=l,f[24]=o,f[25]=d):d=f[25],f[26]!==d||f[27]!==a?(u=(0,eB.FD)(Rg,{children:[a,d]}),f[26]=d,f[27]=a,f[28]=u):u=f[28],f[29]!==x||f[30]!==F||f[31]!==N||f[32]!==O?(h=!O&&(0,eB.Y)(SA,{align:"inline-end",children:(0,eB.Y)("div",{className:(0,m2.cn)(!N&&"invisible"),children:(0,eB.Y)(LC,{onClick:F,disabled:x||!N})})}),f[29]=x,f[30]=F,f[31]=N,f[32]=O,f[33]=h):h=f[33],f[34]!==S||f[35]!==u||f[36]!==h||f[37]!==i||f[38]!==E?(p=(0,eB.Y)("div",{className:n,onFocusCapture:R,onBlurCapture:V,children:(0,eB.FD)(SL,{size:S,"data-testid":E,children:[i,u,h]})}),f[34]=S,f[35]=u,f[36]=h,f[37]=i,f[38]=E,f[39]=p):p=f[39],p},"DateRangeInputInternal");function Ry(e){return e+1}Rv.displayName="DateRangeInputInternal";let Rb=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w=(0,ej.c)(44);w[0]!==e?({"data-testid":p,className:t,ref:c,value:m,defaultValue:r,onChange:l,showIcon:d,error:i,disabled:n,readOnly:s,placeholder:o,size:h,granularity:a,showTimeDropdown:u,timeStep:f,...g}=e,w[0]=e,w[1]=t,w[2]=r,w[3]=n,w[4]=i,w[5]=a,w[6]=l,w[7]=o,w[8]=s,w[9]=c,w[10]=d,w[11]=u,w[12]=h,w[13]=p,w[14]=f,w[15]=m,w[16]=g):(t=w[1],r=w[2],n=w[3],i=w[4],a=w[5],l=w[6],o=w[7],s=w[8],c=w[9],d=w[10],u=w[11],h=w[12],p=w[13],f=w[14],m=w[15],g=w[16]),w[17]!==t?(C=(0,m2.cn)("min-w-284",t),w[17]=t,w[18]=C):C=w[18],w[19]!==a||w[20]!==u||w[21]!==f?(v={granularity:a,showTimeDropdown:u,timeStep:f},w[19]=a,w[20]=u,w[21]=f,w[22]=v):v=w[22];let S=v;return w[23]===Symbol.for("react.memo_cache_sentinel")?(y=(0,eB.Y)(Rv,{}),w[23]=y):y=w[23],w[24]!==r||w[25]!==n||w[26]!==i||w[27]!==l||w[28]!==o||w[29]!==s||w[30]!==c||w[31]!==d||w[32]!==h||w[33]!==S||w[34]!==m?(b=(0,eB.Y)(Rf,{ref:c,value:m,defaultValue:r,onChange:l,showIcon:d,error:i,disabled:n,readOnly:s,placeholder:o,size:h,...S,children:y}),w[24]=r,w[25]=n,w[26]=i,w[27]=l,w[28]=o,w[29]=s,w[30]=c,w[31]=d,w[32]=h,w[33]=S,w[34]=m,w[35]=b):b=w[35],w[36]!==b||w[37]!==p?(x=(0,eB.Y)(m3,{value:p,children:b}),w[36]=b,w[37]=p,w[38]=x):x=w[38],w[39]!==C||w[40]!==x||w[41]!==p||w[42]!==g?(O=(0,eB.Y)("div",{...g,"data-slot":"date-range-input","data-testid":p,className:C,children:x}),w[39]=C,w[40]=x,w[41]=p,w[42]=g,w[43]=O):O=w[43],O},"DateRangeInput");Rb.displayName="DateRangeInput";let Rx=(0,eQ.G)(e=>{let t,r=(0,ej.c)(4),{startFieldProps:n,startRef:i}=Rl();return r[0]!==e||r[1]!==n||r[2]!==i?(t=(0,eB.Y)(Ro,{...n,ref:i,type:"start",wrapperHtmlProps:e}),r[0]=e,r[1]=n,r[2]=i,r[3]=t):t=r[3],t},"DateRangeStartValue");Rx.displayName="DateRangeStartValue";let RO=(0,c0.createContext)(null),Rw=(0,c0.createContext)(0),RS=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(17),{kind:s,open:c,children:d}=e,u=(0,c0.useContext)(RO),[h,p]=(0,c0.useState)(0);o[0]!==s||o[1]!==u?(t=e=>{let t=u?.registerNested(e),r=e===s;return r&&p(Rk),()=>{r&&p(RP),t?.()}},o[0]=s,o[1]=u,o[2]=t):t=o[2];let f=t;o[3]!==s||o[4]!==c||o[5]!==u?(r=()=>{if(c&&u)return u.registerNested(s)},n=[c,u,s],o[3]=s,o[4]=c,o[5]=u,o[6]=r,o[7]=n):(r=o[6],n=o[7]),(0,c0.useEffect)(r,n),o[8]!==s||o[9]!==f?(i={kind:s,registerNested:f},o[8]=s,o[9]=f,o[10]=i):i=o[10];let m=i;return o[11]!==d||o[12]!==h?(a=(0,eB.Y)(Rw.Provider,{value:h,children:d}),o[11]=d,o[12]=h,o[13]=a):a=o[13],o[14]!==m||o[15]!==a?(l=(0,eB.Y)(RO.Provider,{value:m,children:a}),o[14]=m,o[15]=a,o[16]=l):l=o[16],l},"DrawerNestingProvider");RS.displayName="DrawerNestingProvider";let RE=()=>(0,c0.useContext)(Rw);function Rk(e){return e+1}function RP(e){return e-1}let RD=(0,c0.createContext)(null),RA=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(23),{children:o,kind:s,open:c,onOpenChange:d,closeOnEscape:u,overlay:h,modal:p,width:f,minWidth:m,maxWidth:g}=e,C=void 0===m?400:m,v=void 0===g?1130:g;l[0]!==c?(t={controlled:c,default:!1},l[0]=c,l[1]=t):t=l[1];let[y,b]=(0,Rh.q)(t),x=void 0!==y&&y,O=(0,c0.useId)(),[w,S]=(0,c0.useState)(void 0===f?640:f),[E,k]=(0,c0.useState)(!1);l[2]!==d||l[3]!==b?(r=e=>{b(e),d?.(e)},l[2]=d,l[3]=b,l[4]=r):r=l[4];let P=r;l[5]!==u||l[6]!==O||l[7]!==P||l[8]!==x||l[9]!==E||l[10]!==v||l[11]!==C||l[12]!==p||l[13]!==h||l[14]!==w?(n={isOpen:x,onOpenChange:P,closeOnEscape:u,overlay:h,modal:p,contentId:O,width:w,setWidth:S,isResizing:E,setIsResizing:k,minWidth:C,maxWidth:v},l[5]=u,l[6]=O,l[7]=P,l[8]=x,l[9]=E,l[10]=v,l[11]=C,l[12]=p,l[13]=h,l[14]=w,l[15]=n):n=l[15];let D=n;return l[16]!==o||l[17]!==x||l[18]!==s?(i=(0,eB.Y)(RS,{kind:s,open:x,children:o}),l[16]=o,l[17]=x,l[18]=s,l[19]=i):i=l[19],l[20]!==D||l[21]!==i?(a=(0,eB.Y)(RD.Provider,{value:D,children:i}),l[20]=D,l[21]=i,l[22]=a):a=l[22],a},"DrawerProvider");var[RT,RM]=(0,ua.q)({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),RL=(0,c0.forwardRef)((e,t)=>{let r=RM(),n=vv({...p0(),present:r.open}),i=(0,p8.v)(r.getBackdropProps(),n.getPresenceProps(),e),a=p6(n.ref,t);return(0,eB.Y)(vs,{presence:n,children:(0,eB.Y)(fr.div,{...i,ref:a})})});RL.displayName="DialogBackdrop";var RI=(0,c0.forwardRef)((e,t)=>{let r=RM(),n=(0,p8.v)(r.getCloseTriggerProps(),e);return(0,eB.Y)(fr.button,{...n,ref:t})});RI.displayName="DialogCloseTrigger";var RN=(0,c0.forwardRef)((e,t)=>{let r=RM(),n=vd(),i=(0,p8.v)(r.getContentProps(),n.getPresenceProps(),e),a=p6(n.ref,t);return(0,eB.Y)(vs,{presence:n,children:(0,eB.Y)(fr.div,{...i,ref:a})})});RN.displayName="DialogContent";var RF=e=>e.children(RM()),RR=(0,c0.forwardRef)((e,t)=>{let r=RM(),n=(0,p8.v)(r.getDescriptionProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});RR.displayName="DialogDescription";var RV=(0,c0.forwardRef)((e,t)=>{let r=RM(),n=(0,p8.v)(r.getPositionerProps(),e);return vd().unmounted?null:(0,eB.Y)(fr.div,{...n,ref:t})});RV.displayName="DialogPositioner";var R_=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,RY=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,R$=e=>e.ids?.content??`dialog:${e.id}:content`,RH=(e,t)=>{let r=e.ids?.trigger;return null!=r?(0,u$.Tn)(r)?r(t):r:t?`dialog:${e.id}:trigger:${t}`:`dialog:${e.id}:trigger`},Rz=e=>e.ids?.title??`dialog:${e.id}:title`,RZ=e=>e.ids?.description??`dialog:${e.id}:description`,RQ=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,RB=e=>e.getById(R$(e)),Rj=e=>e.getById(RH(e)),RG=e=>mA(e.getRootNode(),`[data-scope="dialog"][data-part="trigger"]${uY(e.id)}`),RU=(e,t)=>null==t?Rj(e)??RG(e)[0]:e.getById(RH(e,t)),RW=uE({props({props:e,scope:t}){let r="alertdialog"===e.role,n=r?()=>t.getById(RQ(t)):void 0,i="boolean"!=typeof e.modal||e.modal;return{role:"dialog",modal:i,trapFocus:i,preventScroll:i,closeOnInteractOutside:i&&!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:n,...e}},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e,prop:t,scope:r})=>({rendered:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(e){let n=t("onTriggerValueChange");if(!n)return;let i=RU(r,e);n({value:e,triggerElement:i})}}))}),watch({track:e,action:t,prop:r}){e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","setInitialFocus"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackDismissableElement:({scope:e,send:t,prop:r})=>OV(()=>RB(e),{type:"dialog",defer:!0,pointerBlocking:r("modal"),layerStyleTargets:[()=>e.getById(RY(e)),()=>e.getById(R_(e))],exclude:[Rj(e),...RG(e)].filter(Boolean),onInteractOutside(e){r("onInteractOutside")?.(e),r("closeOnInteractOutside")||e.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onRequestDismiss:r("onRequestDismiss"),onEscapeKeyDown(e){r("onEscapeKeyDown")?.(e),r("closeOnEscape")||e.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}}),preventScroll({scope:e,prop:t}){if(t("preventScroll"))return I7(e.getDoc())},trapFocus({scope:e,prop:t,context:r}){if(t("trapFocus"))return I0(()=>RB(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:()=>Oz({root:RB(e),getInitialEl:t("initialFocusEl")}),setReturnFocus:n=>{let i=t("finalFocusEl")?.();if(i)return i;let a=r.get("triggerValue");if(a){let t=RU(e,a);if(t)return t}let l=RG(e)[0];return l||n},getShadowRoot:!0})},hideContentBelow({scope:e,prop:t}){if(t("modal"))return I$(()=>[RB(e)],{defer:!0})}},actions:{setInitialFocus({prop:e,scope:t}){e("trapFocus")||fd(()=>{let r=Oz({root:RB(t),getInitialEl:e("initialFocusEl")});r?.focus({preventScroll:!0})})},checkRenderedElements({context:e,scope:t}){fd(()=>{e.set("rendered",{title:!!t.getById(Rz(t)),description:!!t.getById(RZ(t))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setTriggerValue({context:e,event:t}){void 0!==t.value&&e.set("triggerValue",t.value)},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}}),Rq=uZ("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger").build(),RX=e=>{let[t,{children:r,...n}]=vf(e),[i]=p3(t),a=(e=>{let t=(0,c0.useId)(),{getRootNode:r}=uo(),{dir:n}=uc();return function(e,t){let{state:r,send:n,context:i,prop:a,scope:l}=e,o=a("aria-label"),s=r.matches("open"),c=i.get("triggerValue");return{open:s,setOpen(e){r.matches("open")!==e&&n({type:e?"OPEN":"CLOSE"})},triggerValue:c,setTriggerValue(e){n({type:"TRIGGER_VALUE.SET",value:e})},getTriggerProps(e={}){let{value:r}=e,i=null!=r&&c===r;return t.button({...Rq.trigger.attrs,dir:a("dir"),id:RH(l,r),"data-ownedby":l.id,"data-value":r,"aria-haspopup":"dialog",type:"button","aria-expanded":null==r?s:s&&i,"data-state":s?"open":"closed","aria-controls":R$(l),"data-current":uF(i),onClick(e){e.defaultPrevented||n({type:s&&null!=r&&!i?"TRIGGER_VALUE.SET":"TOGGLE",value:r})}})},getBackdropProps:()=>t.element({...Rq.backdrop.attrs,dir:a("dir"),hidden:!s,id:RY(l),"data-state":s?"open":"closed"}),getPositionerProps:()=>t.element({...Rq.positioner.attrs,dir:a("dir"),id:R_(l),style:uH({pointerEvents:s&&a("modal")?void 0:"none"})}),getContentProps(){let e=i.get("rendered");return t.element({...Rq.content.attrs,dir:a("dir"),role:a("role"),hidden:!s,id:R$(l),tabIndex:-1,"data-state":s?"open":"closed","aria-modal":a("modal"),"aria-label":o||void 0,"aria-labelledby":o||!e.title?void 0:Rz(l),"aria-describedby":e.description?RZ(l):void 0,style:uH({pointerEvents:a("modal")?void 0:"auto"})})},getTitleProps:()=>t.element({...Rq.title.attrs,dir:a("dir"),id:Rz(l)}),getDescriptionProps:()=>t.element({...Rq.description.attrs,dir:a("dir"),id:RZ(l)}),getCloseTriggerProps:()=>t.button({...Rq.closeTrigger.attrs,dir:a("dir"),id:RQ(l),type:"button",onClick(e){e.defaultPrevented||(e.stopPropagation(),n({type:"CLOSE"}))}})}}(hk(RW,{id:t,getRootNode:r,dir:n,...e}),hA)})(n),l=vv((0,p8.v)({present:a.open},t));return(0,eB.Y)(RT,{value:a,children:(0,eB.Y)(p2,{value:i,children:(0,eB.Y)(vc,{value:l,children:r})})})},RK=e=>{let[t,{value:r,children:n}]=vf(e),[i]=p3(t),a=vv((0,p8.v)({present:r.open},t));return(0,eB.Y)(RT,{value:r,children:(0,eB.Y)(p2,{value:i,children:(0,eB.Y)(vc,{value:a,children:n})})})},RJ=(0,c0.forwardRef)((e,t)=>{let r=RM(),n=(0,p8.v)(r.getTitleProps(),e);return(0,eB.Y)(fr.h2,{...n,ref:t})});RJ.displayName="DialogTitle";var R1=p1(),R2=(0,c0.forwardRef)((e,t)=>{let[r,n]=R1(e,["value"]),i=RM(),a=vd(),l=i.getTriggerProps(r),o=(0,p8.v)({...l,"aria-controls":a.unmounted?void 0:l["aria-controls"]},n);return(0,eB.Y)(fr.button,{...o,ref:t})});R2.displayName="DialogTrigger";var R0=pq({Backdrop:()=>RL,CloseTrigger:()=>RI,Content:()=>RN,Context:()=>RF,Description:()=>RR,Positioner:()=>RV,Root:()=>RX,RootProvider:()=>RK,Title:()=>RJ,Trigger:()=>R2});let R3=()=>{let e=(0,c0.useContext)(RD);if(!e)throw Error("useDrawerContext must be used within a DrawerProvider");return e},R5=e=>null===e.closest('[data-part="positioner"], [data-scope="dialog"][data-part="content"]'),R4=(0,c0.createContext)([]),R7=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(20),{children:d,closeOnEscape:u,closeOnOutsideClick:h,modal:p,onInteractOutside:f,onEscapeKeyDown:m}=e,{isOpen:g,onOpenChange:C,contentId:v}=R3(),y=(0,c0.useContext)(R4);(s=(0,ej.c)(7))[0]!==v||s[1]!==g||s[2]!==p?(l=()=>{if(!g||p)return;let e=e=>e instanceof Node&&document.getElementById(v)?.contains(e)===!0,t=document.activeElement,r=t instanceof HTMLElement&&t!==document.body&&R5(t)?t:null,n=!1,i=t=>{let n=t.target;n instanceof HTMLElement&&!e(n)&&R5(n)&&(r=n)},a=t=>{let r=t.target;n=r instanceof Element&&!e(r)&&R5(r)},l=()=>{n=!1};return document.addEventListener("focusin",i,!0),document.addEventListener("pointerdown",a,!0),document.addEventListener("keydown",l,!0),()=>{document.removeEventListener("focusin",i,!0),document.removeEventListener("pointerdown",a,!0),document.removeEventListener("keydown",l,!0),n||queueMicrotask(()=>{let t=document.activeElement,n=!t||t===document.body||e(t)||null!==t.closest('[data-scope="dialog"][data-part="content"][data-state="closed"]'),i=r?.isConnected?r:Array.from(document.querySelectorAll('[data-scope="dialog"][data-part="trigger"]')).find(e=>e.getAttribute("aria-controls")===v)??null;n&&i&&i.focus({preventScroll:!0})})}},s[0]=v,s[1]=g,s[2]=p,s[3]=l):l=s[3],s[4]!==v||s[5]!==g?(o=[g,v],s[4]=v,s[5]=g,s[6]=o):o=s[6],(0,c0.useLayoutEffect)(l,o),c[0]!==C?(t=e=>{let{open:t}=e;C(t)},c[0]=C,c[1]=t):t=c[1];let b=t;if(c[2]!==v?(r={content:v},c[2]=v,c[3]=r):r=c[3],c[4]!==y)n=e=>{let t=e.detail.targetLayer?.id;t&&y.includes(t)||e.preventDefault()},c[4]=y,c[5]=n;else n=c[5];if(c[6]!==p)i=e=>{let t=e.detail.originalEvent.target;(p||t instanceof Element&&t.closest('[data-scope="dialog"][data-part="content"][data-state="closed"]'))&&e.preventDefault()},c[6]=p,c[7]=i;else i=c[7];return c[8]!==d||c[9]!==u||c[10]!==h||c[11]!==b||c[12]!==g||c[13]!==p||c[14]!==m||c[15]!==f||c[16]!==r||c[17]!==n||c[18]!==i?(a=(0,eB.Y)(R0.Root,{ids:r,open:g,onOpenChange:b,closeOnEscape:u,closeOnInteractOutside:h,modal:p,onRequestDismiss:n,onFocusOutside:i,onInteractOutside:f,onEscapeKeyDown:m,lazyMount:!0,unmountOnExit:!0,children:d}),c[8]=d,c[9]=u,c[10]=h,c[11]=b,c[12]=g,c[13]=p,c[14]=m,c[15]=f,c[16]=r,c[17]=n,c[18]=i,c[19]=a):a=c[19],a},"DrawerRoot");R7.displayName="DrawerRoot";let R9=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(21),{children:a,kind:l,open:o,onOpenChange:s,closeOnEscape:c,closeOnOutsideClick:d,overlay:u,modal:h,width:p,minWidth:f,maxWidth:m,onInteractOutside:g,onEscapeKeyDown:C,"data-testid":v}=e,y=void 0===l?"drawer":l,b=void 0===c||c,x=void 0===d||d,O=void 0===u||u,w=void 0===h||h;return i[0]!==a||i[1]!==v?(t=(0,eB.Y)(m3,{value:v,children:a}),i[0]=a,i[1]=v,i[2]=t):t=i[2],i[3]!==b||i[4]!==x||i[5]!==w||i[6]!==C||i[7]!==g||i[8]!==t?(r=(0,eB.Y)(R7,{closeOnEscape:b,closeOnOutsideClick:x,modal:w,onInteractOutside:g,onEscapeKeyDown:C,children:t}),i[3]=b,i[4]=x,i[5]=w,i[6]=C,i[7]=g,i[8]=t,i[9]=r):r=i[9],i[10]!==b||i[11]!==y||i[12]!==m||i[13]!==f||i[14]!==w||i[15]!==s||i[16]!==o||i[17]!==O||i[18]!==r||i[19]!==p?(n=(0,eB.Y)(RA,{kind:y,open:o,onOpenChange:s,closeOnEscape:b,overlay:O,modal:w,width:p,minWidth:f,maxWidth:m,children:r}),i[10]=b,i[11]=y,i[12]=m,i[13]=f,i[14]=w,i[15]=s,i[16]=o,i[17]=O,i[18]=r,i[19]=p,i[20]=n):n=i[20],n},"Drawer");R9.displayName="Drawer";let R6=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(11),{children:s,ref:c}=e,d=m5("body");return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("flex-1 min-h-0"),o[0]=t):t=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,m2.cn)("flex flex-col px-24 min-h-full h-auto min-w-0!"),o[1]=r):r=o[1],o[2]!==s?(n=(0,eB.Y)(Sy,{className:r,"data-slot":"drawer-scroll-area-content",children:s}),o[2]=s,o[3]=n):n=o[3],o[4]!==c||o[5]!==n?(i=(0,eB.Y)(Sv,{ref:c,children:n}),o[4]=c,o[5]=n,o[6]=i):i=o[6],o[7]===Symbol.for("react.memo_cache_sentinel")?(a=(0,eB.Y)(SO,{}),o[7]=a):a=o[7],o[8]!==i||o[9]!==d?(l=(0,eB.FD)(SS,{className:t,"data-slot":"drawer-body","data-testid":d,children:[i,a]}),o[8]=i,o[9]=d,o[10]=l):l=o[10],l},"DrawerBody");R6.displayName="DrawerBody";let R8=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(25);u[0]!==e?({children:t,asChild:i,ref:r,"data-testid":a,...n}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5]);let h=void 0!==i&&i,p=m5("close",a),{closeOnEscape:f}=R3();if(h){let e;return u[6]!==t||u[7]!==r||u[8]!==n||u[9]!==a?(e=(0,eB.Y)(R0.CloseTrigger,{...n,ref:r,asChild:!0,"data-testid":a,children:t}),u[6]=t,u[7]=r,u[8]=n,u[9]=a,u[10]=e):e=u[10],e}return u[11]!==t?(l=t||(0,eB.Y)(cN.X,{}),u[11]=t,u[12]=l):l=u[12],u[13]!==r||u[14]!==n||u[15]!==l||u[16]!==p?(o=(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(R0.CloseTrigger,{asChild:!0,onFocusCapture:Ve,children:(0,eB.Y)(vn.$,{ref:r,variant:"ghost",color:"neutral",size:"small","aria-label":"Close drawer",...n,"data-testid":p,children:l})})}),u[13]=r,u[14]=n,u[15]=l,u[16]=p,u[17]=o):o=u[17],u[18]!==f?(s=f&&(0,eB.Y)(LA,{children:"ESC"}),u[18]=f,u[19]=s):s=u[19],u[20]!==s?(c=(0,eB.FD)(bm,{children:["Close ",s]}),u[20]=s,u[21]=c):c=u[21],u[22]!==o||u[23]!==c?(d=(0,eB.FD)(bC,{children:[o,c]}),u[22]=o,u[23]=c,u[24]=d):d=u[24],d},"DrawerClose");function Ve(e){e.stopPropagation()}R8.displayName="DrawerClose";let Vt=(0,m9.F)((0,m2.cn)("relative","bg-bg-surface-2","border border-border-primary-light","rounded-12","shadow-xl","flex flex-col","overflow-visible","outline-none","**:data-[slot=drawer-scroll-area-content]:pb-24","has-data-[slot=drawer-footer]:**:data-[slot=drawer-scroll-area-content]:pb-8","**:data-[slot=drawer-scroll-area-content]:pt-8","[&_[data-slot=drawer-body]:has([data-part=viewport][data-overflow-y])]:border-y","[&_[data-slot=drawer-body]:has([data-part=viewport][data-overflow-y])]:border-transparent","[&_[data-slot=drawer-body]:has([data-part=viewport][data-overflow-y])]:transition-colors","[&_[data-slot=drawer-body]:has([data-part=viewport][data-overflow-y]:not([data-at-top]))]:border-t-border-primary-light","[&_[data-slot=drawer-body]:has([data-part=viewport][data-overflow-y]:not([data-at-bottom]))]:border-b-border-primary-light","[&:has([data-slot=drawer-header] [data-scope=tabs])_[data-slot=drawer-body]]:border-t-0","[&:has([data-slot=drawer-header] [data-slot=tabs-list])_[data-slot=drawer-body]]:border-t-0","[&:has([data-slot=drawer-header]+[data-scope=tabs])_[data-slot=drawer-body]]:border-t-0","[&:has([data-slot=drawer-header]+[data-slot=tabs-list])_[data-slot=drawer-body]]:border-t-0","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0","data-[state=open]:duration-300 data-[state=closed]:duration-150"),{variants:{isResizing:{true:"transition-none"}}}),Vr=(0,m9.F)((0,m2.cn)("flex w-full","origin-[right center]","z-[calc(var(--drawer-positioner-z-index)+(var(--layer-index,0)*var(--drawer-level-ratio)))]"),{variants:{isResizing:{true:"transition-transform"}}}),Vn=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(3);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("fixed inset-0","data-[state=open]:animate-in data-[state=open]:fade-in-0","data-[state=closed]:animate-out data-[state=closed]:fade-out-0","transition-opacity duration-200","backdrop-blur-xs bg-component-dialog-overlay","z-[calc(var(--drawer-overlay-z-index)+(var(--layer-index,0)*var(--drawer-level-ratio)))]"),n[0]=t):t=n[0],n[1]!==e?(r=(0,eB.Y)("div",{...e,className:t}),n[1]=e,n[2]=r):r=n[2],r},"Overlay");Vn.displayName="Overlay";let Vi=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(3),{ref:i}=e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eB.Y)(Vn,{}),n[0]=t):t=n[0],n[1]!==i?(r=(0,eB.Y)(R0.Backdrop,{ref:i,asChild:!0,children:t}),n[1]=i,n[2]=r):r=n[2],r},"DrawerOverlay");Vi.displayName="DrawerOverlay";let Va=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(6);return i[0]!==e?({children:t,...r}=e,i[0]=e,i[1]=t,i[2]=r):(t=i[1],r=i[2]),i[3]!==t||i[4]!==r?(n=(0,eB.Y)(bh,{...r,children:t}),i[3]=t,i[4]=r,i[5]=n):n=i[5],n},"DrawerPortal");Va.displayName="DrawerPortal";let Vl=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(6),{children:i,isResizing:a}=e,{modal:l}=R3();return n[0]!==a||n[1]!==l?(t=(0,m2.cn)(Vr({isResizing:a}),"fixed right-0 left-0 top-0 bottom-0","justify-end p-8",!l&&"pointer-events-none [&>*]:pointer-events-auto"),n[0]=a,n[1]=l,n[2]=t):t=n[2],n[3]!==i||n[4]!==t?(r=(0,eB.Y)(R0.Positioner,{className:t,children:i}),n[3]=i,n[4]=t,n[5]=r):r=n[5],r},"DrawerPositioner");Vl.displayName="DrawerPositioner";let Vo=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(27),{children:d,asChild:u,ref:h}=e,p=m5("content"),{width:f,isResizing:m,overlay:g,contentId:C}=R3(),v=(0,c0.useContext)(R4),y=RE();c[0]!==g?(t=g&&(0,eB.Y)(Vi,{}),c[0]=g,c[1]=t):t=c[1];let b=y>0?"":void 0;c[2]!==m?(r=(0,m2.cn)(Vt({isResizing:m}),"h-full","slide-in-from-right-[25%] slide-out-to-right-[25%]","origin-left","data-[has-nested-same]:scale-[calc(var(--drawer-pushed-back-scale)-(var(--nested-same-kind-count)*var(--drawer-pushed-back-ratio)))]","data-[has-nested-same]:-translate-x-[calc((var(--drawer-pushed-back-offset)/(var(--drawer-pushed-back-scale)-(var(--nested-same-kind-count)*var(--drawer-pushed-back-ratio))))*var(--nested-same-kind-count))]"),c[2]=m,c[3]=r):r=c[3],c[4]!==y||c[5]!==f?(n={width:f,"--nested-same-kind-count":y},c[4]=y,c[5]=f,c[6]=n):n=c[6];let x=n;return c[7]!==v||c[8]!==C?(i=[...v,C],c[7]=v,c[8]=C,c[9]=i):i=c[9],c[10]!==d||c[11]!==i?(a=(0,eB.Y)(R4.Provider,{value:i,children:d}),c[10]=d,c[11]=i,c[12]=a):a=c[12],c[13]!==u||c[14]!==h||c[15]!==b||c[16]!==r||c[17]!==x||c[18]!==a||c[19]!==p?(l=(0,eB.Y)(R0.Content,{ref:h,"data-testid":p,"data-has-nested-same":b,className:r,style:x,asChild:u,children:a}),c[13]=u,c[14]=h,c[15]=b,c[16]=r,c[17]=x,c[18]=a,c[19]=p,c[20]=l):l=c[20],c[21]!==m||c[22]!==l?(o=(0,eB.Y)(Vl,{isResizing:m,children:l}),c[21]=m,c[22]=l,c[23]=o):o=c[23],c[24]!==t||c[25]!==o?(s=(0,eB.FD)(Va,{children:[t,o]}),c[24]=t,c[25]=o,c[26]=s):s=c[26],s},"DrawerContent");Vo.displayName="DrawerContent";let Vs=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(5),{children:i,ref:a}=e,l=m5("footer");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("rounded-b-12 bg-bg-surface-2","flex items-center justify-end gap-8 shrink-0 w-full px-24 py-16","relative"),n[0]=t):t=n[0],n[1]!==i||n[2]!==a||n[3]!==l?(r=(0,eB.Y)("div",{ref:a,"data-testid":l,"data-slot":"drawer-footer",className:t,children:i}),n[1]=i,n[2]=a,n[3]=l,n[4]=r):r=n[4],r},"DrawerFooter");Vs.displayName="DrawerFooter";let Vc=(0,m9.F)("flex items-center gap-8",{variants:{placement:{left:"mr-auto",right:"ml-auto"}}}),Vd=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(6),{children:i,placement:a}=e,l=void 0===a?"right":a,o=m5("footer-controls");return n[0]!==l?(t=(0,m2.cn)(Vc({placement:l})),n[0]=l,n[1]=t):t=n[1],n[2]!==i||n[3]!==t||n[4]!==o?(r=(0,eB.Y)("div",{"data-testid":o,className:t,children:i}),n[2]=i,n[3]=t,n[4]=o,n[5]=r):r=n[5],r},"DrawerFooterControls");Vd.displayName="DrawerFooterControls";let Vu=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(5),{children:i,ref:a}=e,l=m5("description");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("text-sm font-normal text-text-secondary"),n[0]=t):t=n[0],n[1]!==i||n[2]!==a||n[3]!==l?(r=(0,eB.Y)(R0.Description,{ref:a,"data-testid":l,"data-slot":"drawer-description",className:t,children:i}),n[1]=i,n[2]=a,n[3]=l,n[4]=r):r=n[4],r},"DrawerDescription");Vu.displayName="DrawerDescription";let Vh=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(5),{children:i,ref:a}=e,l=m5("title");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("flex-1 min-w-0","font-sans-display font-medium text-lg leading-28","text-text-primary"),n[0]=t):t=n[0],n[1]!==i||n[2]!==a||n[3]!==l?(r=(0,eB.Y)(R0.Title,{ref:a,"data-testid":l,className:t,children:i}),n[1]=i,n[2]=a,n[3]=l,n[4]=r):r=n[4],r},"DrawerTitle");Vh.displayName="DrawerTitle";let Vp=e=>(0,c0.isValidElement)(e)&&e.type===R8,Vf=e=>(0,c0.isValidElement)(e)&&e.type===Vh,Vm=e=>(0,c0.isValidElement)(e)&&e.type===Vu,Vg=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(17),{children:d,ref:u}=e,h=m5("header");if(c[0]!==d){let e=c0.Children.toArray(d);r=e.some(Vp),i=e.find(Vf),t=e.find(Vm),n=e.filter(e=>e!==i&&e!==t),c[0]=d,c[1]=t,c[2]=r,c[3]=n,c[4]=i}else t=c[1],r=c[2],n=c[3],i=c[4];let p=n;return c[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,m2.cn)("relative shrink-0 w-full","bg-bg-surface-2","flex items-start justify-between gap-12","pt-16 pb-12 pl-24 pr-16","rounded-t-12","outline-none"),c[5]=a):a=c[5],c[6]!==t||c[7]!==i?(l=(i||t)&&(0,eB.FD)("div",{className:"flex flex-1 flex-col gap-0 min-w-0",children:[i,t]}),c[6]=t,c[7]=i,c[8]=l):l=c[8],c[9]!==r?(o=!r&&(0,eB.Y)(R8,{}),c[9]=r,c[10]=o):o=c[10],c[11]!==u||c[12]!==p||c[13]!==l||c[14]!==o||c[15]!==h?(s=(0,eB.FD)("div",{ref:u,"data-testid":h,"data-slot":"drawer-header",className:a,children:[l,p,o]}),c[11]=u,c[12]=p,c[13]=l,c[14]=o,c[15]=h,c[16]=s):s=c[16],s},"DrawerHeader");function VC(e,t){let r,n,i=0,a=t=>{i=Date.now(),e(...t)},l=(...e)=>{let l=t-(Date.now()-i);if(l<=0){clearTimeout(r),r=void 0,a(e);return}n=e,void 0===r&&(r=setTimeout(()=>{r=void 0,n&&a(n)},l))};return l.cancel=()=>{clearTimeout(r),r=void 0,n=void 0},l}Vg.displayName="DrawerHeader";let Vv=(0,m9.F)((0,m2.cn)("absolute left-0 top-0 bottom-0 z-1","-translate-x-1/2","w-12 py-12","outline-none cursor-col-resize","flex items-center justify-center",'before:content-[""]',"before:block","before:w-3 before:h-full","before:rounded-full","before:bg-bg-fill-brand","before:transition-opacity before:duration-150"),{variants:{barIsVisible:{true:"before:opacity-100",false:"before:opacity-0"}}}),Vy=(0,eQ.G)(({ref:e,"data-testid":t,onResizeStart:r,onResizeEnd:n,onMouseEnter:i,onMouseLeave:a,onMouseDown:l,className:o,...s})=>{let{setWidth:c,setIsResizing:d,minWidth:u,maxWidth:h}=R3(),p=m5("resize-handle",t),[f,m]=(0,c0.useState)(!1),[g,C]=(0,c0.useState)(!1),v=(0,c0.useRef)({startX:0,startWidth:0,currentWidth:0}),y=(0,c0.useRef)(n);(0,c0.useEffect)(()=>{y.current=n},[n]);let b=(0,c0.useMemo)(()=>VC(e=>{let{startX:t,startWidth:r}=v.current,n=Math.min(Math.max(r+(t-e.clientX),u),h);c(n),v.current.currentWidth=n},16),[u,h,c]);(0,c0.useEffect)(()=>{if(!g)return;let e=()=>{C(!1),d(!1),b.cancel(),y.current?.(v.current.currentWidth)};return document.addEventListener("mousemove",b),document.addEventListener("mouseup",e),()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",e),b.cancel()}},[g,b,d]);let x=f||g;return(0,eB.FD)(bC,{positioning:{placement:"left"},open:f&&!g,children:[(0,eB.Y)(bo,{...s,ref:e,"data-slot":"resize-handle","data-resizing":g||void 0,"data-testid":p,className:(0,m2.cn)(Vv({barIsVisible:x}),o),onMouseEnter:e=>{i?.(e),e.defaultPrevented||m(!0)},onMouseLeave:e=>{a?.(e),e.defaultPrevented||m(!1)},onMouseDown:e=>{if(l?.(e),e.defaultPrevented)return;e.preventDefault();let t=e.currentTarget.closest('[role="dialog"]');if(!t)return;let n=t.offsetWidth;v.current={startX:e.clientX,startWidth:n,currentWidth:n},C(!0),d(!0),r?.()}}),(0,eB.Y)(bm,{children:"Drag to resize"})]})},"DrawerResizeHandle");Vy.displayName="DrawerResizeHandle";let Vb=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({children:t,asChild:i,ref:r,"data-testid":a,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i,o[5]=a):(t=o[1],r=o[2],n=o[3],i=o[4],a=o[5]);let s=void 0!==i&&i,c=m5("trigger",a);return o[6]!==s||o[7]!==t||o[8]!==r||o[9]!==n||o[10]!==c?(l=(0,eB.Y)(R0.Trigger,{...n,ref:r,"data-testid":c,asChild:s,children:t}),o[6]=s,o[7]=t,o[8]=r,o[9]=n,o[10]=c,o[11]=l):l=o[11],l},"DrawerTrigger");Vb.displayName="DrawerTrigger";let Vx=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({children:t,className:r,"data-testid":i,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("context-trigger",i);return o[5]!==r?(a=(0,m2.cn)("[@media(pointer:fine)]:select-text!",r),o[5]=r,o[6]=a):a=o[6],o[7]!==t||o[8]!==n||o[9]!==a||o[10]!==s?(l=(0,eB.Y)(wN.ContextTrigger,{...n,className:a,"data-testid":s,children:t}),o[7]=t,o[8]=n,o[9]=a,o[10]=s,o[11]=l):l=o[11],l},"DropdownMenuContextTrigger");Vx.displayName="DropdownMenuContextTrigger";let VO=(0,eQ.G)(e=>{let t,r=(0,ej.c)(4),n=(0,c0.useId)(),i=m5("group");return r[0]!==n||r[1]!==e||r[2]!==i?(t=(0,eB.Y)(wN.ItemGroup,{...e,id:n,"data-testid":i}),r[0]=n,r[1]=e,r[2]=i,r[3]=t):t=r[3],t},"DropdownMenuGroup");VO.displayName="DropdownMenuGroup";let Vw=(0,m9.F)("",{variants:{inline:{true:"inline-flex",false:"flex"},direction:{row:"flex-row",column:"flex-col","row-reverse":"flex-row-reverse","column-reverse":"flex-col-reverse"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{wrap:"flex-wrap",nowrap:"flex-nowrap",reverse:"flex-wrap-reverse"},fullWidth:{true:"w-full"},flexGrow:{true:"flex-1"},flexShrink:{true:"shrink",false:"shrink-0"},gap:{0:"",1:"gap-1",2:"gap-2",4:"gap-4",6:"gap-6",8:"gap-8",12:"gap-12",16:"gap-16",20:"gap-20",24:"gap-24",28:"gap-28",32:"gap-32",36:"gap-36",40:"gap-40",44:"gap-44",48:"gap-48",56:"gap-56",64:"gap-64",80:"gap-80",96:"gap-96",112:"gap-112",128:"gap-128",144:"gap-144"}}}),VS=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C=(0,ej.c)(32);C[0]!==e?({inline:o,direction:s,align:c,justify:d,wrap:u,gap:h,fullWidth:a,flexGrow:n,flexShrink:i,asChild:p,className:r,children:t,...l}=e,C[0]=e,C[1]=t,C[2]=r,C[3]=n,C[4]=i,C[5]=a,C[6]=l,C[7]=o,C[8]=s,C[9]=c,C[10]=d,C[11]=u,C[12]=h,C[13]=p):(t=C[1],r=C[2],n=C[3],i=C[4],a=C[5],l=C[6],o=C[7],s=C[8],c=C[9],d=C[10],u=C[11],h=C[12],p=C[13]);let v=void 0!==o&&o,y=void 0===s?"column":s,b=void 0===c?"stretch":c,x=void 0===d?"start":d,O=void 0===u?"nowrap":u,w=void 0===h?4:h,S=void 0!==p&&p;if(C[14]!==t){let e;f=(e=t,c0.Children.toArray(e).filter(e=>(0,c0.isValidElement)(e))).map(VE),C[14]=t,C[15]=f}else f=C[15];let E=f,k=S?Ew.DX:"div";return C[16]!==b||C[17]!==r||C[18]!==y||C[19]!==n||C[20]!==i||C[21]!==a||C[22]!==w||C[23]!==v||C[24]!==x||C[25]!==O?(m=(0,m2.cn)(Vw({inline:v,direction:y,align:b,justify:x,wrap:O,gap:w,fullWidth:a,flexGrow:n,flexShrink:i}),r),C[16]=b,C[17]=r,C[18]=y,C[19]=n,C[20]=i,C[21]=a,C[22]=w,C[23]=v,C[24]=x,C[25]=O,C[26]=m):m=C[26],C[27]!==k||C[28]!==E||C[29]!==l||C[30]!==m?(g=(0,eB.Y)(k,{...l,className:m,children:E}),C[27]=k,C[28]=E,C[29]=l,C[30]=m,C[31]=g):g=C[31],g},"Stack");function VE(e,t){let r=void 0!==e.key?e.key:t;return(0,eB.Y)(c0.Fragment,{children:e},r)}VS.displayName="Stack";let Vk=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(6);return i[0]!==e?({ref:r,...t}=e,i[0]=e,i[1]=t,i[2]=r):(t=i[1],r=i[2]),i[3]!==t||i[4]!==r?(n=(0,eB.Y)(VS,{ref:r,direction:"column",...t}),i[3]=t,i[4]=r,i[5]=n):n=i[5],n},"VStack");Vk.displayName="VStack";let VP=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),{children:n}=e,i=m5("item-content");return r[0]!==n||r[1]!==i?(t=(0,eB.Y)(Vk,{gap:0,align:"start","data-testid":i,children:n}),r[0]=n,r[1]=i,r[2]=t):t=r[2],t},"DropdownMenuItemContent"),VD=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),{children:n}=e,i=m5("item-description");return r[0]!==n||r[1]!==i?(t=(0,eB.Y)(bk.E,{size:"xs",color:"secondary","data-slot":"dropdown-menu-item-description","data-testid":i,children:n}),r[0]=n,r[1]=i,r[2]=t):t=r[2],t},"DropdownMenuItemDescription"),VA=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(13);o[0]!==e?({className:t,inset:r,sticky:i,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("label");return o[5]!==t||o[6]!==r||o[7]!==i?(a=(0,m2.cn)((0,SE.d)({inset:r,sticky:i}),t),o[5]=t,o[6]=r,o[7]=i,o[8]=a):a=o[8],o[9]!==n||o[10]!==a||o[11]!==s?(l=(0,eB.Y)("div",{"data-testid":s,className:a,...n}),o[9]=n,o[10]=a,o[11]=s,o[12]=l):l=o[12],l},"DropdownMenuLabel");VA.displayName="DropdownMenuLabel";let VT=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(9);a[0]!==e?({className:t,...r}=e,a[0]=e,a[1]=t,a[2]=r):(t=a[1],r=a[2]);let l=m5("separator");return a[3]!==t?(n=(0,m2.cn)("mx-8 my-4 h-px bg-border-primary border-none",t),a[3]=t,a[4]=n):n=a[4],a[5]!==r||a[6]!==n||a[7]!==l?(i=(0,eB.Y)(wN.Separator,{"data-testid":l,className:n,...r}),a[5]=r,a[6]=n,a[7]=l,a[8]=i):i=a[8],i},"DropdownMenuSeparator");VT.displayName="DropdownMenuSeparator";let VM=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(17);d[0]!==e?({variant:i,inset:a,children:t,className:r,"data-testid":l,...n}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=n,d[4]=i,d[5]=a,d[6]=l):(t=d[1],r=d[2],n=d[3],i=d[4],a=d[5],l=d[6]);let u=void 0===i?"default":i,h=void 0!==a&&a,p=m5("trigger-item",l);return d[7]!==r||d[8]!==h||d[9]!==u?(o=(0,m2.cn)((0,SE.OZ)({variant:u,inset:h}),r),d[7]=r,d[8]=h,d[9]=u,d[10]=o):o=d[10],d[11]===Symbol.for("react.memo_cache_sentinel")?(s=(0,eB.Y)("div",{className:'ml-auto before:content-[""] before:flex before:w-8 before:shrink-0',children:(0,eB.Y)(rr.c,{})}),d[11]=s):s=d[11],d[12]!==t||d[13]!==n||d[14]!==o||d[15]!==p?(c=(0,eB.FD)(wN.TriggerItem,{...n,"data-testid":p,className:o,children:[t,s]}),d[12]=t,d[13]=n,d[14]=o,d[15]=p,d[16]=c):c=d[16],c},"DropdownMenuTriggerItem");VM.displayName="DropdownMenuTriggerItem";let VL=(0,m9.F)("flex flex-col items-center text-center m-[0_auto]",{variants:{type:{"collection-empty":"gap-16 py-24 max-w-[560px] min-w-[256px]","no-results":"gap-8 py-8 w-[240px]"}},defaultVariants:{type:"collection-empty"}}),VI=(0,m9.F)("empty-state-medallion flex items-center justify-center shrink-0 size-36 rounded-[15px] p-8 text-xl text-icon-secondary"),VN=(0,m9.F)("flex flex-col items-center",{variants:{type:{"collection-empty":"gap-8","no-results":"gap-4"}},defaultVariants:{type:"collection-empty"}}),VF=(0,m9.F)("text-center break-words",{variants:{type:{"collection-empty":"font-pixel text-base leading-base text-text-primary","no-results":"font-sans-display text-sm font-medium text-text-secondary"}},defaultVariants:{type:"collection-empty"}}),VR=(0,c0.createContext)("collection-empty"),VV=VR.Provider,V_=()=>(0,c0.useContext)(VR),VY=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(22);u[0]!==e?({ref:i,type:a,className:r,children:t,"data-testid":l,...n}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a,u[6]=l):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5],l=u[6]);let h=void 0===a?"collection-empty":a;return u[7]!==r||u[8]!==h?(o=(0,m2.cn)(VL({type:h}),r),u[7]=r,u[8]=h,u[9]=o):o=u[9],u[10]!==t||u[11]!==n||u[12]!==i||u[13]!==o||u[14]!==l?(s=(0,eB.Y)("div",{...n,ref:i,role:"status","data-slot":"empty-state","data-testid":l,className:o,children:t}),u[10]=t,u[11]=n,u[12]=i,u[13]=o,u[14]=l,u[15]=s):s=u[15],u[16]!==s||u[17]!==h?(c=(0,eB.Y)(VV,{value:h,children:s}),u[16]=s,u[17]=h,u[18]=c):c=u[18],u[19]!==c||u[20]!==l?(d=(0,eB.Y)(m3,{value:l,children:c}),u[19]=c,u[20]=l,u[21]=d):d=u[21],d},"EmptyState");VY.displayName="EmptyState";let V$=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(13);o[0]!==e?({ref:i,className:r,children:t,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("actions");return o[5]!==r?(a=(0,m2.cn)("flex items-center justify-center gap-12",r),o[5]=r,o[6]=a):a=o[6],o[7]!==t||o[8]!==n||o[9]!==i||o[10]!==a||o[11]!==s?(l=(0,eB.Y)("div",{...n,ref:i,"data-slot":"empty-state-actions","data-testid":s,className:a,children:t}),o[7]=t,o[8]=n,o[9]=i,o[10]=a,o[11]=s,o[12]=l):l=o[12],l},"EmptyStateActions");V$.displayName="EmptyStateActions";let VH=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(9);a[0]!==e?({ref:n,children:t,...r}=e,a[0]=e,a[1]=t,a[2]=r,a[3]=n):(t=a[1],r=a[2],n=a[3]);let l=m5("description");return a[4]!==t||a[5]!==r||a[6]!==n||a[7]!==l?(i=(0,eB.Y)(bk.E,{...r,ref:n,"data-testid":l,"data-slot":"empty-state-description",size:"xs",color:"secondary",align:"center",children:t}),a[4]=t,a[5]=r,a[6]=n,a[7]=l,a[8]=i):i=a[8],i},"EmptyStateDescription");VH.displayName="EmptyStateDescription";let Vz=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(13);o[0]!==e?({ref:i,className:r,children:t,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("illustration");return o[5]!==r?(a=(0,m2.cn)(VI(),r),o[5]=r,o[6]=a):a=o[6],o[7]!==t||o[8]!==n||o[9]!==i||o[10]!==a||o[11]!==s?(l=(0,eB.Y)("div",{...n,ref:i,"data-slot":"empty-state-illustration","data-testid":s,className:a,children:t}),o[7]=t,o[8]=n,o[9]=i,o[10]=a,o[11]=s,o[12]=l):l=o[12],l},"EmptyStateIllustration");Vz.displayName="EmptyStateIllustration";let VZ=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(7);i[0]!==e?({size:r,...t}=e,i[0]=e,i[1]=t,i[2]=r):(t=i[1],r=i[2]);let a=void 0===r?"md":r,l=m5("link");return i[3]!==t||i[4]!==a||i[5]!==l?(n=(0,eB.Y)(EQ,{...t,size:a,"data-slot":"empty-state-link","data-testid":l}),i[3]=t,i[4]=a,i[5]=l,i[6]=n):n=i[6],n},"EmptyStateLink");VZ.displayName="EmptyStateLink";let VQ=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(14);o[0]!==e?({ref:i,className:r,children:t,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("message"),c=V_();return o[5]!==r||o[6]!==c?(a=(0,m2.cn)(VN({type:c}),r),o[5]=r,o[6]=c,o[7]=a):a=o[7],o[8]!==t||o[9]!==n||o[10]!==i||o[11]!==a||o[12]!==s?(l=(0,eB.Y)("div",{...n,ref:i,"data-slot":"empty-state-message","data-testid":s,className:a,children:t}),o[8]=t,o[9]=n,o[10]=i,o[11]=a,o[12]=s,o[13]=l):l=o[13],l},"EmptyStateMessage");VQ.displayName="EmptyStateMessage";let VB=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(14);o[0]!==e?({ref:i,className:r,children:t,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("title"),c=V_();return o[5]!==r||o[6]!==c?(a=(0,m2.cn)(VF({type:c}),r),o[5]=r,o[6]=c,o[7]=a):a=o[7],o[8]!==t||o[9]!==n||o[10]!==i||o[11]!==a||o[12]!==s?(l=(0,eB.Y)("p",{...n,ref:i,"data-testid":s,"data-slot":"empty-state-title",className:a,children:t}),o[8]=t,o[9]=n,o[10]=i,o[11]=a,o[12]=s,o[13]=l):l=o[13],l},"EmptyStateTitle");VB.displayName="EmptyStateTitle";var Vj=(0,c0.forwardRef)((e,t)=>{let[r,n]=vf(e),i=vv(r),a=p6(i.ref,t);return(0,eB.Y)(vs,{presence:i,children:(0,eB.Y)(fr.div,{...n,...i.getPresenceProps(),"data-scope":"presence","data-part":"root",ref:a})})});Vj.displayName="Presence";var VG=i("P");let VU=(0,m9.F)("",{variants:{size:{small:"py-0",medium:"py-6",default:"py-8","inline-edit":"py-4"}}}),VW=(0,m9.F)("min-h-[64px]",{variants:{size:{small:"min-h-[64px]",medium:"min-h-[72px]",default:"min-h-[76px]","inline-edit":"min-h-[64px]"}}}),Vq=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m=(0,ej.c)(35);m[0]!==e?({error:a,disabled:l,size:o,minRows:r,maxRows:t,ref:i,...n}=e,m[0]=e,m[1]=t,m[2]=r,m[3]=n,m[4]=i,m[5]=a,m[6]=l,m[7]=o):(t=m[1],r=m[2],n=m[3],i=m[4],a=m[5],l=m[6],o=m[7]);let g=void 0!==a&&a,C=void 0!==l&&l,v=void 0===o?"default":o,y=(0,NM.f)();m[8]!==y?(s=(0,p8.v)(y?.getTextareaProps()),m[8]=y,m[9]=s):s=m[9];let b=s,x=null!=t,O=r??(x?1:void 0),{ref:w,adjustHeight:S}=Ib(x,O??1,t??1,n.value);m[10]!==w||m[11]!==i?(c=(0,b8.t)(w,i),m[10]=w,m[11]=i,m[12]=c):c=m[12];let E=!!g;return m[13]!==S||m[14]!==x||m[15]!==n?(d=x&&{onInput:e=>{S(),n.onInput?.(e)}},m[13]=S,m[14]=x,m[15]=n,m[16]=d):d=m[16],m[17]!==x||m[18]!==g||m[19]!==v?(u=(0,m2.cn)((0,VG.j)({error:g}),VU({size:v}),"[scrollbar-width:thin]",!x&&VW({size:v}),x&&"resize-none"),m[17]=x,m[18]=g,m[19]=v,m[20]=u):u=m[20],m[21]!==C||m[22]!==O||m[23]!==b||m[24]!==n||m[25]!==c||m[26]!==E||m[27]!==d||m[28]!==u?(h=(0,eB.Y)("textarea",{...b,...n,ref:c,disabled:C,"aria-invalid":E,"aria-disabled":C,rows:O,...d,className:u}),m[21]=C,m[22]=O,m[23]=b,m[24]=n,m[25]=c,m[26]=E,m[27]=d,m[28]=u,m[29]=h):h=m[29],m[30]!==x?(p=!x&&(0,eB.Y)(eG.A,{className:"w-12 h-12 absolute bottom-0 right-0 text-icon-secondary pointer-events-none",viewBox:"0 0 12 12",children:(0,eB.Y)("path",{d:"M6 8L8 6M8 3L3 8",stroke:"currentColor",strokeLinecap:"round"})}),m[30]=x,m[31]=p):p=m[31],m[32]!==p||m[33]!==h?(f=(0,eB.FD)("div",{className:"relative","data-slot":"textarea",children:[h,p]}),m[32]=p,m[33]=h,m[34]=f):f=m[34],f},"Textarea");Vq.displayName="Textarea";var VX=i("B");let VK=(0,m9.F)((0,m2.cn)("fixed bottom-24 right-24 z-50 w-[400px] max-w-[calc(100vw-32px)]","flex flex-col gap-8 overflow-hidden p-12","rounded-12 border border-border-primary-light bg-bg-surface-2 text-text-primary shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:slide-in-from-bottom data-[state=open]:duration-300","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-bottom data-[state=closed]:duration-150","motion-reduce:animate-none motion-reduce:transition-none")),VJ=(0,eQ.G)(({duration:e,paused:t=!1,onComplete:r,"data-testid":n})=>{let[i,a]=(0,c0.useState)(0),l=(0,c0.useRef)(0),o=(0,c0.useRef)(0),s=(0,c0.useRef)(0),c=(0,c0.useRef)(t),d=(0,c0.useRef)(r);return c.current=t,d.current=r,(0,c0.useEffect)(()=>{o.current=performance.now();let t=!1,r=n=>{c.current||(l.current+=n-o.current),o.current=n;let i=Math.min(l.current/e,1);a(i),i<1?s.current=requestAnimationFrame(r):t||(t=!0,d.current())};return s.current=requestAnimationFrame(r),()=>cancelAnimationFrame(s.current)},[e]),(0,eB.Y)("div",{"aria-hidden":!0,"data-slot":"feedback-pulse-progress","data-testid":n,className:(0,m2.cn)("pointer-events-none absolute inset-0 overflow-hidden rounded-12"),children:(0,eB.Y)("div",{className:"h-full bg-states-primary-default-alt transition-none",style:{width:`${100*i}%`}})})},"FeedbackPulseProgress");VJ.displayName="FeedbackPulseProgress";let V1=["Very difficult","Very easy"],V2=[1,2,3,4,5],V0=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O=(0,ej.c)(54),{open:w,onOpenChange:S,onSubmit:E,question:k,scaleLabels:P,showComment:D,dismissDuration:A,confirmationText:T,"data-testid":M,ref:L}=e,I=void 0===k?"How easy was it to use this feature?":k,N=void 0===P?V1:P,F=void 0===D||D,R=void 0===A?5e3:A,V=void 0===T?"Thanks a lot! — Wallarm Team":T,[_,Y]=(0,c0.useState)("rating"),[$,H]=(0,c0.useState)(null),[z,Z]=(0,c0.useState)(""),[Q,B]=(0,c0.useState)(!1),[j,G]=(0,c0.useState)(!1),U=(0,c0.useRef)(null),W=(0,c0.useRef)(null),q=(0,c0.useRef)(null),X=(0,c0.useRef)(null);O[0]!==L?(t=e=>{q.current=e,"function"==typeof L?L(e):L&&(L.current=e)},O[0]=L,O[1]=t):t=O[1];let K=t;O[2]!==w?(r=()=>{w&&(Y("rating"),H(null),Z(""),B(!1))},n=[w],O[2]=w,O[3]=r,O[4]=n):(r=O[3],n=O[4]),(0,c0.useEffect)(r,n),O[5]!==_?(a=()=>{"submitted"===_&&W.current?.focus()},i=[_],O[5]=_,O[6]=i,O[7]=a):(i=O[6],a=O[7]),(0,c0.useEffect)(a,i),O[8]!==_?(l=()=>{if("feedback"!==_)return void G(!1);let e=setTimeout(()=>G(!0),250);return()=>clearTimeout(e)},o=[_],O[8]=_,O[9]=l,O[10]=o):(l=O[9],o=O[10]),(0,c0.useEffect)(l,o),O[11]!==_?(s=()=>{let e=q.current,t=X.current;if(X.current=null,!e||"submitted"!==_||null==t)return;let r="u">typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,n=e.getBoundingClientRect().height;if(r||1>Math.abs(t-n))return;e.style.height=`${t}px`;let i=new AbortController,a=requestAnimationFrame(()=>{e.style.transition="height 200ms ease-out",e.style.height=`${n}px`}),l=0,o=()=>{cancelAnimationFrame(a),clearTimeout(l),i.abort(),e.style.height="",e.style.transition=""};return l=window.setTimeout(o,400),e.addEventListener("transitionend",e=>{"height"===e.propertyName&&o()},{signal:i.signal}),o},c=[_],O[11]=_,O[12]=s,O[13]=c):(s=O[12],c=O[13]),(0,c0.useLayoutEffect)(s,c),O[14]!==M?(d=e=>M?`${M}--${e}`:void 0,O[14]=M,O[15]=d):d=O[15];let J=d;O[16]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{H(e),Y("feedback")},O[16]=u):u=O[16];let ee=u;O[17]!==$?(h=e=>{let t=$??1,r=null;"ArrowRight"===e.key||"ArrowUp"===e.key?r=Math.min(t+1,5):("ArrowLeft"===e.key||"ArrowDown"===e.key)&&(r=Math.max(t-1,1)),null!=r&&(e.preventDefault(),ee(r),U.current?.querySelector(`[data-score="${r}"]`)?.focus())},O[17]=$,O[18]=h):h=O[18];let et=h;O[19]!==z||O[20]!==E||O[21]!==$?(p=()=>{if(null==$)return;let e=z.trim();X.current=q.current?.getBoundingClientRect().height??null,E({score:$,comment:e||void 0}),Y("submitted")},O[19]=z,O[20]=E,O[21]=$,O[22]=p):p=O[22];let er=p;return O[23]!==S||O[24]!==w||O[25]!==_?(f=()=>{if(!w||"submitted"===_)return;let e=e=>{"Escape"===e.key&&S(!1,"dismiss")};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},m=[w,_,S],O[23]=S,O[24]=w,O[25]=_,O[26]=f,O[27]=m):(f=O[26],m=O[27]),(0,c0.useEffect)(f,m),O[28]===Symbol.for("react.memo_cache_sentinel")?(g=VK(),C=()=>B(!0),v=()=>B(!1),O[28]=g,O[29]=C,O[30]=v):(g=O[28],C=O[29],v=O[30]),O[31]!==z||O[32]!==V||O[33]!==R||O[34]!==et||O[35]!==er||O[36]!==S||O[37]!==Q||O[38]!==_||O[39]!==I||O[40]!==j||O[41]!==N||O[42]!==$||O[43]!==F||O[44]!==J?(y="submitted"===_?(0,eB.FD)(eB.FK,{children:[(0,eB.Y)(VJ,{duration:R,paused:Q,onComplete:()=>S(!1,"submit"),"data-testid":J("progress")}),(0,eB.FD)("div",{className:"relative z-10 flex items-center gap-8","aria-live":"polite",children:[(0,eB.Y)(t4,{size:"md",className:"shrink-0 text-icon-success"}),(0,eB.Y)("span",{className:"flex-1 text-sm font-medium text-text-primary",children:V}),(0,eB.FD)(bC,{children:[(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{ref:W,variant:"ghost",color:"neutral",size:"small","aria-label":"Close","data-testid":J("close"),onClick:()=>S(!1,"submit"),children:(0,eB.Y)(cN.X,{})})}),(0,eB.Y)(bm,{children:"Close"})]})]})]}):(0,eB.FD)(eB.FK,{children:[(0,eB.FD)("div",{className:"flex items-start justify-between gap-8",children:[(0,eB.Y)("span",{className:"flex-1 text-sm font-medium text-text-primary",children:I}),(0,eB.FD)(bC,{children:[(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{variant:"ghost",color:"neutral",size:"small","aria-label":"Close","data-testid":J("close"),onClick:()=>S(!1,"dismiss"),children:(0,eB.Y)(cN.X,{})})}),(0,eB.Y)(bm,{children:"Close"})]})]}),(0,eB.FD)("div",{children:[(0,eB.FD)("div",{className:"flex flex-col gap-4",children:[(0,eB.Y)("div",{ref:U,role:"radiogroup","aria-label":I,"data-testid":J("scale"),className:"flex gap-8",onKeyDown:et,children:V2.map(e=>(0,eB.Y)(VX.f,{variant:"outline",color:"neutral",size:"small",fullWidth:!0,active:$===e,role:"radio","aria-checked":$===e,"aria-label":String(e),"data-score":e,"data-testid":J(`score-${e}`),tabIndex:$===e||null==$&&1===e?0:-1,onToggle:()=>ee(e),children:e},e))}),(0,eB.FD)("div",{className:"flex justify-between",children:[(0,eB.Y)("span",{className:"text-sm font-normal text-text-secondary",children:N[0]}),(0,eB.Y)("span",{className:"text-sm font-normal text-text-secondary",children:N[1]})]})]}),(0,eB.Y)("div",{inert:"feedback"!==_,className:(0,m2.cn)("grid transition-[grid-template-rows] duration-200 ease-out motion-reduce:transition-none","feedback"===_?"mt-8 grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,eB.FD)("div",{className:(0,m2.cn)("flex flex-col gap-8",j?"overflow-visible":"overflow-hidden"),children:[F&&(0,eB.Y)(Vq,{placeholder:"Tell us why? (optional)",value:z,onChange:e=>Z(e.target.value),"data-testid":J("comment")}),(0,eB.Y)("div",{className:"flex justify-end",children:(0,eB.Y)(vn.$,{variant:"primary",color:"brand",size:"medium","data-testid":J("send"),onClick:er,children:"Send"})})]})})]})]}),O[31]=z,O[32]=V,O[33]=R,O[34]=et,O[35]=er,O[36]=S,O[37]=Q,O[38]=_,O[39]=I,O[40]=j,O[41]=N,O[42]=$,O[43]=F,O[44]=J,O[45]=y):y=O[45],O[46]!==I||O[47]!==K||O[48]!==y||O[49]!==M?(b=(0,eB.Y)("div",{ref:K,"data-slot":"feedback-pulse","data-testid":M,role:"dialog","aria-label":I,className:g,onMouseEnter:C,onMouseLeave:v,children:y}),O[46]=I,O[47]=K,O[48]=y,O[49]=M,O[50]=b):b=O[50],O[51]!==w||O[52]!==b?(x=(0,eB.Y)(bh,{children:(0,eB.Y)(Vj,{present:w,asChild:!0,children:b})}),O[51]=w,O[52]=b,O[53]=x):x=O[53],x},"FeedbackPulse");V0.displayName="FeedbackPulse";var V3=e=>e.children((0,NM.f)()),V5=(0,c0.forwardRef)((e,t)=>{let r=(0,NM.f)(),n=(0,p8.v)(r.getErrorTextProps(),e);return r?.invalid?(0,eB.Y)(fr.span,{...n,ref:t}):null});V5.displayName="FieldErrorText";var V4=(0,c0.forwardRef)((e,t)=>{let r=(0,NM.f)(),n=(0,p8.v)(r?.getHelperTextProps(),e);return(0,eB.Y)(fr.span,{...n,ref:t})});V4.displayName="FieldHelperText";var V7=(0,c0.forwardRef)((e,t)=>{let r=(0,NM.f)(),n=(0,p8.v)(r?.getInputProps(),e);return(0,eB.Y)(fr.input,{...n,ref:t})});V7.displayName="FieldInput";var V9=uZ("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator").build(),V6=e=>{let{value:t,children:r}=e,n=(0,NM.f)(),i=(0,c0.useMemo)(()=>{if(!n)throw Error("Field.Item must be used within Field.Root");let e=`field::${n.ids.control}::item::${t}`,r=`${e}::label`,i=()=>({...n.getInputProps(),id:e});return{...n,ids:{...n.ids,control:e,label:r},getLabelProps:()=>({...n.getLabelProps(),id:r,htmlFor:e}),getInputProps:()=>({...i(),...V9.input.attrs}),getSelectProps:()=>({...i(),...V9.select.attrs}),getTextareaProps:()=>({...i(),...V9.textarea.attrs})}},[n,t]);return(0,eB.Y)(NM.S,{value:i,children:r})};V6.displayName="FieldItem";var V8=(0,c0.forwardRef)((e,t)=>{let r=(0,NM.f)(),n=(0,p8.v)(r?.getLabelProps(),e);return(0,eB.Y)(fr.label,{...n,ref:t})});V8.displayName="FieldLabel";var _e=(0,c0.forwardRef)(({fallback:e,...t},r)=>{let n=(0,NM.f)();if(!n.required)return e;let i=(0,p8.v)(n.getRequiredIndicatorProps(),t);return(0,eB.Y)(fr.span,{...i,ref:r,children:t.children??"*"})});_e.displayName="FieldRequiredIndicator";var _t="u">typeof window?c0.useLayoutEffect:c0.useEffect,_r=p1(),_n=(0,c0.forwardRef)((e,t)=>{let[r,n]=_r(e,["id","ids","disabled","invalid","readOnly","required","target"]),i=((e={})=>{let t=Fa(),r=uo(),{ids:n,target:i,disabled:a=!!t?.disabled,invalid:l=!1,readOnly:o=!1,required:s=!1}=e,[c,d]=(0,c0.useState)(!1),[u,h]=(0,c0.useState)(!1),p=(0,c0.useId)(),f=e.id??p,m=(0,c0.useRef)(null),g=n?.control??`field::${f}`,C=n?.errorText??`field::${f}::error-text`,v=n?.helperText??`field::${f}::helper-text`,y=n?.label??`field::${f}::label`;_t(()=>{let e=m.current;if(!e)return;let t=()=>{let e=r.getRootNode();d(!!e.getElementById(C)),h(!!e.getElementById(v))};t();let n=new(r.getWindow()).MutationObserver(t);return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[r,C,v]);let b=(0,c0.useMemo)(()=>()=>({...V9.root.attrs,id:g,ref:m,role:"group","data-disabled":uF(a),"data-invalid":uF(l),"data-readonly":uF(o)}),[a,l,o,g]),x=i?`field::${f}::item::${i}`:void 0,O=(0,c0.useMemo)(()=>()=>({...V9.label.attrs,id:y,"data-disabled":uF(a),"data-invalid":uF(l),"data-readonly":uF(o),"data-required":uF(s),htmlFor:x??f}),[a,l,o,s,f,y,x]),w=c&&l?C:void 0,S=(0,c0.useMemo)(()=>()=>({"aria-describedby":u?v:void 0,"aria-errormessage":w,"aria-invalid":uR(l),"data-invalid":uF(l),"data-required":uF(s),"data-readonly":uF(o),id:f,required:s,disabled:a,readOnly:o}),[u,v,l,s,o,f,w,a]),E=(0,c0.useMemo)(()=>()=>({...S(),...V9.input.attrs}),[S]),k=(0,c0.useMemo)(()=>()=>({...S(),...V9.textarea.attrs}),[S]),P=(0,c0.useMemo)(()=>()=>({...S(),...V9.select.attrs}),[S]),D=(0,c0.useMemo)(()=>()=>({id:v,...V9.helperText.attrs,"data-disabled":uF(a)}),[a,v]),A=(0,c0.useMemo)(()=>()=>({id:C,...V9.errorText.attrs,"aria-live":"polite"}),[C]);return{ariaDescribedby:u?v:void 0,ids:{root:g,control:f,label:y,errorText:C,helperText:v},refs:{rootRef:m},disabled:a,invalid:l,readOnly:o,required:s,getLabelProps:O,getRootProps:b,getInputProps:E,getTextareaProps:k,getSelectProps:P,getHelperTextProps:D,getErrorTextProps:A,getRequiredIndicatorProps:(0,c0.useMemo)(()=>()=>({"aria-hidden":!0,...V9.requiredIndicator.attrs}),[])}})(r),a=(0,p8.v)(i.getRootProps(),n),l=p6(t,i.refs.rootRef);return(0,eB.Y)(NM.S,{value:i,children:(0,eB.Y)(fr.div,{...a,ref:l})})});_n.displayName="FieldRoot";var _i=p1(),_a=(0,c0.forwardRef)((e,t)=>{let[{value:r},n]=_i(e,["value"]),i=(0,p8.v)(r.getRootProps(),n);return(0,eB.Y)(NM.S,{value:r,children:(0,eB.Y)(fr.div,{...i,ref:t})})});_a.displayName="FieldRootProvider";var _l=(0,c0.forwardRef)((e,t)=>{let r=(0,NM.f)(),n=(0,p8.v)(r?.getSelectProps(),e);return(0,eB.Y)(fr.select,{...n,ref:t})});_l.displayName="FieldSelect";var _o=(0,c0.forwardRef)((e,t)=>{let{autoresize:r,...n}=e,i=(0,c0.useRef)(null),a=(0,NM.f)(),l=(0,p8.v)(a?.getTextareaProps(),{style:{resize:r?"none":void 0}},n),o=p6(t,i);return(0,c0.useEffect)(()=>{if(r)return(e=>{if(!e)return;let t=fp(e),r=u6(e),n=u9(e),i=()=>{requestAnimationFrame(()=>{let r;e.style.height="auto",r="content-box"===t.boxSizing?e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),"none"!==t.maxHeight&&r>parseFloat(t.maxHeight)?("hidden"===t.overflowY&&(e.style.overflowY="scroll"),r=parseFloat(t.maxHeight)):"hidden"!==t.overflowY&&(e.style.overflowY="hidden"),e.style.height=`${r}px`})};e.addEventListener("input",i),e.form?.addEventListener("reset",i);let a=Object.getOwnPropertyDescriptor(e,"value"),l=a?.set?a:Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value");l?.set&&Object.defineProperty(e,"value",{...l,set(e){l.set?.call(this,e),i()}});let o=new r.ResizeObserver(()=>{requestAnimationFrame(()=>i())});o.observe(e);let s=new r.MutationObserver(()=>i());return s.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),n.fonts?.addEventListener("loadingdone",i),()=>{e.removeEventListener("input",i),e.form?.removeEventListener("reset",i),n.fonts?.removeEventListener("loadingdone",i),o.disconnect(),s.disconnect()}})(i.current)},[r]),(0,eB.Y)(fr.textarea,{...l,ref:o})});_o.displayName="FieldTextarea";var _s=pq({Context:()=>V3,ErrorText:()=>V5,HelperText:()=>V4,Input:()=>V7,Item:()=>V6,Label:()=>V8,RequiredIndicator:()=>_e,Root:()=>_n,RootProvider:()=>_a,Select:()=>_l,Textarea:()=>_o}),_c=e=>e.children(Fa()),_d=(0,c0.forwardRef)((e,t)=>{let r=Fa(),n=(0,p8.v)(r.getErrorTextProps(),e);return r.invalid?(0,eB.Y)(fr.span,{...n,ref:t}):null});_d.displayName="FieldsetErrorText";var _u=(0,c0.forwardRef)((e,t)=>{let r=Fa(),n=(0,p8.v)(r.getHelperTextProps(),e);return(0,eB.Y)(fr.span,{...n,ref:t})});_u.displayName="FieldsetHelperText";var _h=(0,c0.forwardRef)((e,t)=>{let r=Fa(),n=(0,p8.v)(r.getLegendProps(),e);return(0,eB.Y)(fr.legend,{...n,ref:t})});_h.displayName="FieldsetLegend";var _p=uZ("fieldset").parts("root","errorText","helperText","legend").build(),_f=p1(),_m=(0,c0.forwardRef)((e,t)=>{let[r,n]=_f(e,["id","disabled","invalid"]),i=((e={})=>{let{disabled:t=!1,invalid:r=!1}=e,n=uo(),[i,a]=(0,c0.useState)(!1),[l,o]=(0,c0.useState)(!1),s=(0,c0.useId)(),c=e.id??s,d=(0,c0.useRef)(null),u=`fieldset::${c}::legend`,h=`fieldset::${c}::error-text`,p=`fieldset::${c}::helper-text`;_t(()=>{let e=d.current;if(!e)return;let t=()=>{let e=n.getRootNode();a(!!e.getElementById(h)),o(!!e.getElementById(p))};t();let r=new(n.getWindow()).MutationObserver(t);return r.observe(e,{childList:!0,subtree:!0}),()=>r.disconnect()},[n,h,p]);let f=[];i&&r&&f.push(h),l&&f.push(p);let m=f.length>0?f.join(" "):void 0;return{refs:{rootRef:d},ids:{legend:u,errorText:h,helperText:p},disabled:t,invalid:r,getRootProps:()=>({..._p.root.attrs,ref:d,disabled:t,"data-disabled":uF(t),"data-invalid":uF(r),"aria-labelledby":u,"aria-describedby":m}),getLegendProps:()=>({id:u,..._p.legend.attrs,"data-disabled":uF(t),"data-invalid":uF(r)}),getHelperTextProps:()=>({id:p,..._p.helperText.attrs}),getErrorTextProps:()=>({id:h,..._p.errorText.attrs,"aria-live":"polite"})}})(r),a=(0,p8.v)(i.getRootProps(),n),l=p6(t,i.refs.rootRef);return(0,eB.Y)(Fi,{value:i,children:(0,eB.Y)(fr.fieldset,{...a,ref:l})})});_m.displayName="FieldsetRoot";var _g=p1(),_C=(0,c0.forwardRef)((e,t)=>{let[{value:r},n]=_g(e,["value"]),i=(0,p8.v)(r.getRootProps(),n);return(0,eB.Y)(Fi,{value:r,children:(0,eB.Y)(fr.fieldset,{...i,ref:t})})});_C.displayName="FieldsetRootProvider";var _v=pq({Context:()=>_c,ErrorText:()=>_d,HelperText:()=>_u,Legend:()=>_h,Root:()=>_m,RootProvider:()=>_C});let _y=(0,m9.F)("group/field flex gap-4 w-full min-w-0 data-[invalid=true]:text-text-danger",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px has-[>[data-slot=field-content]]:items-start"],responsive:["@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto flex-col [&>*]:w-full [&>.sr-only]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}}),_b=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(17);c[0]!==e?({orientation:n,children:t,"data-testid":i,...r}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=i):(t=c[1],r=c[2],n=c[3],i=c[4]);let d=void 0===n?"vertical":n,u=(s=t,c0.Children.toArray(s).some(e=>(0,c0.isValidElement)(e)&&"function"==typeof e.type&&"checkbox-group"===e.type.fieldSlot))?_v.Root:_s.Root;return c[5]!==d?(a=(0,m2.cn)(_y({orientation:d})),c[5]=d,c[6]=a):a=c[6],c[7]!==u||c[8]!==t||c[9]!==d||c[10]!==r||c[11]!==a||c[12]!==i?(l=(0,eB.Y)(u,{...r,role:"group","data-testid":i,"data-slot":"field","data-orientation":d,className:a,children:t}),c[7]=u,c[8]=t,c[9]=d,c[10]=r,c[11]=a,c[12]=i,c[13]=l):l=c[13],c[14]!==l||c[15]!==i?(o=(0,eB.Y)(m3,{value:i,children:l}),c[14]=l,c[15]=i,c[16]=o):o=c[16],o},"Field");_b.displayName="Field";let _x=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(4),i=m5("content");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("group/field-content flex flex-1 flex-col gap-4 leading-snug"),n[0]=t):t=n[0],n[1]!==e||n[2]!==i?(r=(0,eB.Y)("div",{...e,"data-testid":i,"data-slot":"field-content",className:t}),n[1]=e,n[2]=i,n[3]=r):r=n[3],r},"FieldContent");_x.displayName="FieldContent";let _O=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(4),i=m5("description");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("text-text-secondary text-sm font-normal leading-normal group-has-[[data-orientation=horizontal]]/field:text-balance","nth-last-2:-mt-1 last:mt-0 [[data-variant=legend]+&]:mb-16"),n[0]=t):t=n[0],n[1]!==e||n[2]!==i?(r=(0,eB.Y)("p",{...e,"data-testid":i,"data-slot":"field-description",className:t}),n[1]=e,n[2]=i,n[3]=r):r=n[3],r},"FieldDescription");_O.displayName="FieldDescription";let _w=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(11);o[0]!==e?({children:t,...r}=e,o[0]=e,o[1]=t,o[2]=r):(t=o[1],r=o[2]);let s=m5("error");return o[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,m2.cn)("flex gap-4 text-text-danger"),i=(0,eB.Y)(lD,{size:"md",className:"self-start my-2"}),o[3]=n,o[4]=i):(n=o[3],i=o[4]),o[5]!==t?(a=(0,eB.Y)(bk.E,{size:"sm",color:"danger",children:t}),o[5]=t,o[6]=a):a=o[6],o[7]!==r||o[8]!==a||o[9]!==s?(l=(0,eB.FD)("div",{...r,"data-testid":s,role:"alert","data-slot":"field-error",className:n,children:[i,a]}),o[7]=r,o[8]=a,o[9]=s,o[10]=l):l=o[10],l},"FieldError");_w.displayName="FieldError";let _S=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(6);i[0]!==e?({...t}=e,i[0]=e,i[1]=t):t=i[1];let a=m5("group");return i[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,m2.cn)("group/field-group @container/field-group flex w-full flex-col gap-16 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4"),i[2]=r):r=i[2],i[3]!==t||i[4]!==a?(n=(0,eB.Y)("div",{...t,"data-testid":a,"data-slot":"field-group",className:r}),i[3]=t,i[4]=a,i[5]=n):n=i[5],n},"FieldGroup");_S.displayName="FieldGroup";let _E=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(4),i=m5("label");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("group/field-label flex w-fit gap-4 text-sm text-text-primary font-medium leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:rounded-8 has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4"),n[0]=t):t=n[0],n[1]!==e||n[2]!==i?(r=(0,eB.Y)(_s.Label,{...e,"data-testid":i,"data-slot":"field-label",className:t}),n[1]=e,n[2]=i,n[3]=r):r=n[3],r},"FieldLabel");_E.displayName="FieldLabel";let _k=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(8);a[0]!==e?({variant:r,...t}=e,a[0]=e,a[1]=t,a[2]=r):(t=a[1],r=a[2]);let l=void 0===r?"legend":r,o=m5("legend");return a[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,m2.cn)("font-medium text-text-primary","data-[variant=legend]:text-lg","data-[variant=label]:text-sm","[&+[data-slot=field-group]]:mt-16"),a[3]=n):n=a[3],a[4]!==t||a[5]!==o||a[6]!==l?(i=(0,eB.Y)("legend",{...t,"data-testid":o,"data-slot":"field-legend","data-variant":l,className:n}),a[4]=t,a[5]=o,a[6]=l,a[7]=i):i=a[7],i},"FieldLegend");_k.displayName="FieldLegend";let _P=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),n=m5("separator");return r[0]!==e||r[1]!==n?(t=(0,eB.Y)(Dy,{...e,"data-testid":n}),r[0]=e,r[1]=n,r[2]=t):t=r[2],t},"FieldSeparator");_P.displayName="FieldSeparator";let _D=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(9);a[0]!==e?({className:t,...r}=e,a[0]=e,a[1]=t,a[2]=r):(t=a[1],r=a[2]);let l=m5("set");return a[3]!==t?(n=(0,m2.cn)("flex flex-col gap-16","max-w-full min-w-0","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",t),a[3]=t,a[4]=n):n=a[4],a[5]!==r||a[6]!==n||a[7]!==l?(i=(0,eB.Y)("fieldset",{...r,"data-testid":l,"data-slot":"field-set",className:n}),a[5]=r,a[6]=n,a[7]=l,a[8]=i):i=a[8],i},"FieldSet");_D.displayName="FieldSet";let _A=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(4),i=m5("title");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("flex w-fit items-center gap-4 text-sm font-medium leading-snug group-data-[disabled=true]/field:opacity-50"),n[0]=t):t=n[0],n[1]!==e||n[2]!==i?(r=(0,eB.Y)("div",{...e,"data-testid":i,"data-slot":"field-label",className:t}),n[1]=e,n[2]=i,n[3]=r):r=n[3],r},"FieldTitle");_A.displayName="FieldTitle";var _T=(e,t)=>e.name===t.name&&e.size===t.size&&e.type===t.type,_M=e=>"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)||/^.*\.[\w]+$/.test(e),_L=e=>e.ids?.root??`file:${e.id}`,_I=e=>e.ids?.dropzone??`file:${e.id}:dropzone`,_N=e=>e.ids?.hiddenInput??`file:${e.id}:input`,_F=e=>e.ids?.trigger??`file:${e.id}:trigger`,_R=e=>e.ids?.label??`file:${e.id}:label`,_V=(e,t)=>e.ids?.item?.(t)??`file:${e.id}:item:${t}`,__=(e,t)=>e.ids?.itemName?.(t)??`file:${e.id}:item-name:${t}`,_Y=(e,t)=>e.ids?.itemSizeText?.(t)??`file:${e.id}:item-size:${t}`,_$=(e,t)=>e.ids?.itemPreview?.(t)??`file:${e.id}:item-preview:${t}`,_H=(e,t)=>e.ids?.itemDeleteTrigger?.(t)??`file:${e.id}:item-delete:${t}`,_z=e=>(0,hd.tW)(`${e.name}-${e.size}`),_Z=e=>e.getById(_L(e)),_Q=e=>e.getById(_N(e)),_B=e=>e.getById(_I(e)),_j=new Map("3g2_video/3gpp2[3gp,3gpp_video/3gpp[3mf_model/3mf[7z_application/x-7z-compressed[aac_audio/aac[ac_application/pkix-attr-cert[adp_audio/adpcm[adts_audio/aac[ai_application/postscript[aml_application/automationml-aml+xml[amlx_application/automationml-amlx+zip[amr_audio/amr[apk_application/vnd.android.package-archive[apng_image/apng[appcache,manifest_text/cache-manifest[appinstaller_application/appinstaller[appx_application/appx[appxbundle_application/appxbundle[asc_application/pgp-keys[atom_application/atom+xml[atomcat_application/atomcat+xml[atomdeleted_application/atomdeleted+xml[atomsvc_application/atomsvc+xml[au,snd_audio/basic[avi_video/x-msvideo[avci_image/avci[avcs_image/avcs[avif_image/avif[aw_application/applixware[bdoc_application/bdoc[bin,bpk,buffer,deb,deploy,dist,distz,dll,dmg,dms,dump,elc,exe,img,iso,lrf,mar,msi,msm,msp,pkg,so_application/octet-stream[bmp,dib_image/bmp[btf,btif_image/prs.btif[bz2_application/x-bzip2[c_text/x-c[ccxml_application/ccxml+xml[cdfx_application/cdfx+xml[cdmia_application/cdmi-capability[cdmic_application/cdmi-container[cdmid_application/cdmi-domain[cdmio_application/cdmi-object[cdmiq_application/cdmi-queue[cer_application/pkix-cert[cgm_image/cgm[cjs_application/node[class_application/java-vm[coffee,litcoffee_text/coffeescript[conf,def,in,ini,list,log,text,txt_text/plain[cpp,cxx,cc_text/x-c++src[cpl_application/cpl+xml[cpt_application/mac-compactpro[crl_application/pkix-crl[css_text/css[csv_text/csv[cu_application/cu-seeme[cwl_application/cwl[cww_application/prs.cww[davmount_application/davmount+xml[dbk_application/docbook+xml[doc_application/msword[docx_application/vnd.openxmlformats-officedocument.wordprocessingml.document[dsc_text/prs.lines.tag[dssc_application/dssc+der[dtd_application/xml-dtd[dwd_application/atsc-dwd+xml[ear,jar,war_application/java-archive[ecma_application/ecmascript[emf_image/emf[eml,mime_message/rfc822[emma_application/emma+xml[emotionml_application/emotionml+xml[eot_application/vnd.ms-fontobject[eps,ps_application/postscript[epub_application/epub+zip[exi_application/exi[exp_application/express[exr_image/aces[ez_application/andrew-inset[fdf_application/fdf[fdt_application/fdt+xml[fits_image/fits[flac_audio/flac[flv_video/x-flv[g3_image/g3fax[geojson_application/geo+json[gif_image/gif[glb_model/gltf-binary[gltf_model/gltf+json[gml_application/gml+xml[go_text/x-go[gpx_application/gpx+xml[gz_application/gzip[h_text/x-h[h261_video/h261[h263_video/h263[h264_video/h264[heic_image/heic[heics_image/heic-sequence[heif_image/heif[heifs_image/heif-sequence[htm,html,shtml_text/html[ico_image/x-icon[icns_image/x-icns[ics,ifb_text/calendar[iges,igs_model/iges[ink,inkml_application/inkml+xml[ipa_application/octet-stream[java_text/x-java-source[jp2,jpg2_image/jp2[jpeg,jpe,jpg_image/jpeg[jpf,jpx_image/jpx[jpm,jpgm_image/jpm[jpgv_video/jpeg[jph_image/jph[js,mjs_text/javascript[json_application/json[json5_application/json5[jsonld_application/ld+json[jsx_text/jsx[jxl_image/jxl[jxr_image/jxr[ktx_image/ktx[ktx2_image/ktx2[less_text/less[m1v,m2v,mpe,mpeg,mpg_video/mpeg[m4a_audio/mp4[m4v_video/x-m4v[md,markdown_text/markdown[mid,midi,kar,rmi_audio/midi[mkv_video/x-matroska[mp2,mp2a,mp3,mpga,m3a,m2a_audio/mpeg[mp4,mp4v,mpg4_video/mp4[mp4a_audio/mp4[mp4s,m4p_application/mp4[odp_application/vnd.oasis.opendocument.presentation[oda_application/oda[ods_application/vnd.oasis.opendocument.spreadsheet[odt_application/vnd.oasis.opendocument.text[oga,ogg,opus,spx_audio/ogg[ogv_video/ogg[ogx_application/ogg[otf_font/otf[p12,pfx_application/x-pkcs12[pdf_application/pdf[pem_application/x-pem-file[php_text/x-php[png_image/png[ppt_application/vnd.ms-powerpoint[pptx_application/vnd.openxmlformats-officedocument.presentationml.presentation[pskcxml_application/pskc+xml[psd_image/vnd.adobe.photoshop[py_text/x-python[qt,mov_video/quicktime[rar_application/vnd.rar[rdf_application/rdf+xml[rtf_text/rtf[sass_text/x-sass[scss_text/x-scss[sgm,sgml_text/sgml[sh_application/x-sh[svg,svgz_image/svg+xml[swf_application/x-shockwave-flash[tar_application/x-tar[tif,tiff_image/tiff[toml_application/toml[ts_video/mp2t[tsx_text/tsx[tsv_text/tab-separated-values[ttc_font/collection[ttf_font/ttf[vtt_text/vtt[wasm_application/wasm[wav_audio/wav[weba_audio/webm[webm_video/webm[webmanifest_application/manifest+json[webp_image/webp[wma_audio/x-ms-wma[wmv_video/x-ms-wmv[woff_font/woff[woff2_font/woff2[xls_application/vnd.ms-excel[xlsx_application/vnd.openxmlformats-officedocument.spreadsheetml.sheet[xml_application/xml[xz_application/x-xz[yaml,yml_text/yaml[zip_application/zip".split("[").flatMap(e=>{let[t,r]=e.split("_");return t.split(",").map(e=>[e,r])}));function _G(e,t){let r="application/x-moz-file"===e.type||function(e,t){if(e&&t){let r,n=Array.isArray(t)?t:"string"==typeof t?t.split(","):[];if(0===n.length)return!0;let i=e.name||"",a=(e.type||(r=i.split(".").pop())&&_j.get(r)||"").toLowerCase(),l=a.replace(/\/.*$/,"");return n.some(e=>{let t=e.trim().toLowerCase();return"."===t.charAt(0)?i.toLowerCase().endsWith(t):t.endsWith("/*")?l===t.replace(/\/.*$/,""):a===t})}return!0}(e,t);return[r,r?null:"FILE_INVALID_TYPE"]}function _U(e){let t=fP(e);return e.dataTransfer?e.dataTransfer.types.some(e=>"Files"===e||"application/x-moz-file"===e):!!t&&"files"in t}function _W(e,t,r=[],n=[]){let{prop:i,computed:a}=e,l=[],o=[],s={acceptedFiles:r,rejectedFiles:n};return t.forEach(e=>{let[t,n]=_G(e,a("acceptAttr")),[c,d]=function(e,t,r){if(null!=e.size)if(null!=t&&null!=r){if(e.size>r)return[!1,"FILE_TOO_LARGE"];if(e.size<t)return[!1,"FILE_TOO_SMALL"]}else{if(null!=t&&e.size<t)return[!1,"FILE_TOO_SMALL"];if(null!=r&&e.size>r)return[!1,"FILE_TOO_LARGE"]}return[!0,null]}(e,i("minFileSize"),i("maxFileSize")),u=r.some(t=>_T(t,e))||l.some(t=>_T(t,e)),h=i("validate")?.(e,s),p=!h||0===h.length;if(t&&c&&p&&!u)l.push(e);else{let t=[n,d];u&&t.push("FILE_EXISTS"),p||t.push(...h??[]),o.push({file:e,errors:t.filter(Boolean)})}}),!function(e,t,r){let{prop:n,computed:i}=e;return(!!i("multiple")||!(t>1))&&(!i("multiple")&&t+r.length===2||!(t+r.length>n("maxFiles")))}(e,l.length,r)&&(l.forEach(e=>{o.push({file:e,errors:["TOO_MANY_FILES"]})}),l.splice(0)),{acceptedFiles:l,rejectedFiles:o}}var _q=uE({props:({props:e})=>({minFileSize:0,maxFileSize:1/0,maxFiles:1,allowDrop:!0,preventDocumentDrop:!0,defaultAcceptedFiles:[],...e}),initialState:()=>"idle",context:({prop:e,bindable:t,getContext:r})=>({acceptedFiles:t(()=>({defaultValue:e("defaultAcceptedFiles"),value:e("acceptedFiles"),isEqual:(e,t)=>e.length===t?.length&&e.every((e,r)=>_T(e,t[r])),hash:e=>e.map(e=>`${e.name}-${e.size}`).join(","),onChange(t){let n=r();e("onFileAccept")?.({files:t}),e("onFileChange")?.({acceptedFiles:t,rejectedFiles:n.get("rejectedFiles")})}})),rejectedFiles:t(()=>({defaultValue:[],isEqual:(e,t)=>e.length===t?.length&&e.every((e,r)=>_T(e.file,t[r].file)),onChange(t){let n=r();e("onFileReject")?.({files:t}),e("onFileChange")?.({acceptedFiles:n.get("acceptedFiles"),rejectedFiles:t})}})),transforming:t(()=>({defaultValue:!1}))}),computed:{acceptAttr:({prop:e})=>(function(e){if(null!=e)return"string"==typeof e?e:Array.isArray(e)?e.filter(_M).join(","):Object.entries(e).reduce((e,[t,r])=>[...e,t,...r],[]).filter(_M).join(",")})(e("accept")),multiple:({prop:e})=>e("maxFiles")>1},watch({track:e,context:t,action:r}){e([()=>t.hash("acceptedFiles")],()=>{r(["syncInputElement"])})},on:{"FILES.SET":{actions:["setFiles"]},"FILE.SELECT":{actions:["setEventFiles"]},"FILE.DELETE":{actions:["removeFile"]},"FILES.CLEAR":{actions:["clearFiles"]},"REJECTED_FILES.CLEAR":{actions:["clearRejectedFiles"]}},effects:["preventDocumentDrop"],states:{idle:{on:{OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.FOCUS":{target:"focused"},"DROPZONE.DRAG_OVER":{target:"dragging"}}},focused:{on:{"DROPZONE.BLUR":{target:"idle"},OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.DRAG_OVER":{target:"dragging"}}},dragging:{on:{"DROPZONE.DROP":{target:"idle",actions:["setEventFiles"]},"DROPZONE.DRAG_LEAVE":{target:"idle"}}}},implementations:{effects:{preventDocumentDrop({prop:e,scope:t}){if(!e("preventDocumentDrop")||!e("allowDrop")||e("disabled"))return;let r=t.getDoc();return(0,hd.OK)(fH(r,"dragover",e=>{e?.preventDefault()},!1),fH(r,"drop",e=>{u7(_Z(t),fP(e))||e.preventDefault()},!1))}},actions:{syncInputElement({scope:e,context:t}){queueMicrotask(()=>{let r=_Q(e);if(!r)return;var n=t.get("acceptedFiles");let i=u6(r);try{if("DataTransfer"in i){let e=new i.DataTransfer;n.forEach(t=>{e.items.add(t)}),r.files=e.files}}catch{}let a=e.getWin();r.dispatchEvent(new a.Event("change",{bubbles:!0}))})},openFilePicker({scope:e}){fd(()=>{eN.getHiddenInputEl(e)?.click()})},setFiles(e){let{computed:t,context:r,event:n}=e,{acceptedFiles:i,rejectedFiles:a}=_W(e,n.files);r.set("acceptedFiles",t("multiple")?i:i.length>0?[i[0]]:[]),r.set("rejectedFiles",a)},setEventFiles(e){let{computed:t,context:r,event:n,prop:i}=e,a=r.get("acceptedFiles"),l=r.get("rejectedFiles"),{acceptedFiles:o,rejectedFiles:s}=_W(e,n.files,a,l),c=e=>{if(t("multiple")){r.set("acceptedFiles",t=>[...t,...e]),r.set("rejectedFiles",s);return}if(e.length){r.set("acceptedFiles",[e[0]]),r.set("rejectedFiles",s);return}s.length&&(r.set("acceptedFiles",r.get("acceptedFiles")),r.set("rejectedFiles",s))},d=i("transformFiles");d?(r.set("transforming",!0),d(o).then(c).catch(e=>{ud(`[zag-js/file-upload] error transforming files
73
+ `.trim(),e.head.prepend(t)},[h]),(0,c0.useEffect)(()=>{let e=g.current;return()=>{for(let t of(u||TA(e.target??void 0),e.disposables))t();e.disposables=[]}},[u]),{isPressed:s||f,pressProps:Tg(p,D,{[TY]:!0})}}({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&a()},onPress(e){("touch"===e.pointerType||"pen"===e.pointerType)&&a()}});return Tg(l,{onKeyDown:a=>{if(Ai(a.currentTarget,Aa(a))&&(a.altKey&&("ArrowDown"===a.key||"ArrowUp"===a.key)&&"setOpen"in e&&(a.preventDefault(),a.stopPropagation(),e.setOpen(!0)),!r))switch(a.key){case"ArrowLeft":if(a.preventDefault(),a.stopPropagation(),"rtl"===n){if(t.current){let e=Aa(a),r=TG(t.current,e.getBoundingClientRect().left,-1);r&&r.focus()}}else i.focusPrevious();break;case"ArrowRight":if(a.preventDefault(),a.stopPropagation(),"rtl"===n){if(t.current){let e=Aa(a),r=TG(t.current,e.getBoundingClientRect().left,1);r&&r.focus()}}else i.focusNext()}}})}function TG(e,t,r){let n=AK(e,{tabbable:!0}),i=n.nextNode(),a=null,l=1/0;for(;i;){let e=i.getBoundingClientRect().left-t,o=Math.abs(e);Math.sign(e)===r&&o<l&&(a=i,l=o),i=n.nextNode()}return a}let TU=0,TW=new Map;function Tq(e){let[t,r]=(0,c0.useState)();return Ag(()=>{if(!e)return;let t=TW.get(e);if(t)r(t.element.id);else{let n=`react-aria-description-${TU++}`;r(n);let i=document.createElement("div");i.id=n,i.style.display="none",i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},TW.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),TW.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function TX(e,t){let{id:r,"aria-label":n,"aria-labelledby":i}=e;return r=Th(r),i&&n?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),n||i||!t||(n=t),{id:r,"aria-label":n,"aria-labelledby":i}}function TK(e){let{description:t,errorMessage:r,isInvalid:n,validationState:i}=e,{labelProps:a,fieldProps:l}=function(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":i,labelElementType:a="label"}=e;t=Th(t);let l=Th(),o={};return r&&(n=n?`${l} ${n}`:l,o={id:l,htmlFor:"label"===a?t:void 0}),{labelProps:o,fieldProps:TX({id:t,"aria-label":i,"aria-labelledby":n})}}(e),o=Tp([!!t,!!r,n,i]),s=Tp([!!t,!!r,n,i]);return{labelProps:a,fieldProps:l=Tg(l,{"aria-describedby":[o,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:o},errorMessageProps:{id:s}}}function TJ(e){let t,{isDisabled:r,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:a}=e,l=(0,c0.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=TF(),c=(0,c0.useCallback)(e=>{Ai(e.currentTarget,Aa(e))&&l.current.isFocusWithin&&!Ai(e.currentTarget,e.relatedTarget)&&(l.current.isFocusWithin=!1,s(),n&&n(e),a&&a(!1))},[n,a,l,s]),d=(t=(0,c0.useRef)({isFocused:!1,observer:null}),Ag(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,c0.useCallback)(e=>{let r=Aa(e);(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&(t.current.isFocused=!0,r.addEventListener("focusout",e=>{if(t.current.isFocused=!1,r.disabled){let t=AC(e);c?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){t.current.observer?.disconnect();let e=r===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]}))},[c])),u=(0,c0.useCallback)(e=>{if(!Ai(e.currentTarget,Aa(e)))return;let t=Aa(e),r=Ar(t),n=((e=document)=>e.activeElement)(r);if(!l.current.isFocusWithin&&n===t){i&&i(e),a&&a(!0),l.current.isFocusWithin=!0,d(e);let t=e.currentTarget;o(r,"focus",e=>{let n=Aa(e);if(l.current.isFocusWithin&&!Ai(t,n)){let e=new r.defaultView.FocusEvent("blur",{relatedTarget:n});Av(e,t),c(AC(e))}},{capture:!0})}},[i,a,d,o,c]);return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:c}}}let T1=Symbol.for("react-aria.i18n.locale"),T2=Symbol.for("react-aria.i18n.strings");class T0{constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let r=this.getStringsForLocale(t)[e];if(!r)throw Error(`Could not find intl message ${e} in ${t} locale`);return r}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,r="en-US"){var n;if(t[e])return t[e];let i=(n=e,Intl.Locale?new Intl.Locale(n).language:n.split("-")[0]);if(t[i])return t[i];for(let e in t)if(e.startsWith(i+"-"))return t[e];return t[r]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("u"<typeof window)return null;let t=window[T1];if(void 0===C){let e=window[T2];if(!e)return null;for(let r in C={},e)C[r]=new T0({[t]:e[r]},t)}let r=C?.[e];if(!r)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}let T3=new Map,T5=new Map;class T4{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return"function"==typeof r?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return"function"==typeof n?n():n;let i=this.locale+":"+r,a=T3.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:r}),T3.set(i,a)),"function"==typeof(n=t[a.select(e)]||t.other)?n():n}number(e){let t=T5.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),T5.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return"function"==typeof r?r():r}}let T7=new WeakMap;function T9(e,t){let r;return t&&T0.getGlobalDictionaryForPackage(t)||((r=T7.get(e))||(r=new T0(e),T7.set(e,r)),r)}function T6(e,t){let{locale:r}=TE(),n=T9(e,t);return(0,c0.useMemo)(()=>new T4(r,n),[r,n])}let T8=new WeakMap,Me="__reactAriaDateFieldRole",Mt="__reactAriaDateFieldFocusManager";function Mr(e,t,r){var n,i,a,l;let o,s,{isInvalid:c,validationErrors:d,validationDetails:u}=t.displayValidation,{labelProps:h,fieldProps:p,descriptionProps:f,errorMessageProps:m}=TK({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||d}),g=(0,c0.useRef)(null),{focusWithinProps:C}=TJ({...e,onFocusWithin(r){g.current=t.value,e.onFocus?.(r)},onBlurWithin:r=>{t.confirmPlaceholder(),t.value!==g.current&&t.commitValidation(),e.onBlur?.(r)},onFocusWithinChange:e.onFocusChange}),v=T6((n=A8)&&n.__esModule?n.default:n,"@react-aria/datepicker"),y="hour"===t.maxGranularity?"selectedTimeDescription":"selectedDateDescription",b="hour"===t.maxGranularity?"time":"date",x=Tq(t.value?v.format(y,{[b]:t.formatValue({month:"long"})}):""),O="presentation"===e[Me]?p["aria-describedby"]:[x["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=e[Mt],S=(0,c0.useMemo)(()=>w||AJ(r),[w,r]),E=Tj(t,r,"presentation"===e[Me]);T8.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[h.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:O,focusManager:S});let k=(0,c0.useRef)(e.autoFocus);s="presentation"===e[Me]?{role:"presentation"}:Tg(p,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":O}),(0,c0.useEffect)(()=>{k.current&&S.focusFirst(),k.current=!1},[S]),i=e.inputRef,a=t.defaultValue,l=t.setValue,o=TN(e=>{l&&!e.defaultPrevented&&l(a)}),(0,c0.useEffect)(()=>{let e=i?.current?.form;return e?.addEventListener("reset",o),()=>{e?.removeEventListener("reset",o)}},[i]),function(e,t,r){let{validationBehavior:n,focus:i}=e;Ag(()=>{if("native"===n&&r?.current&&"setCustomValidity"in r.current&&!r.current.disabled){var e;let n,i=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(i),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=r.current).validity.valid,validationDetails:{badInput:(n=e.validity).badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing,valid:n.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let a=(0,c0.useRef)(!1),l=TN(()=>{a.current||t.resetValidation()}),o=TN(e=>{t.displayValidation.isInvalid||t.commitValidation();let n=r?.current?.form;!e.defaultPrevented&&r&&n&&function(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(r.validity?.valid===!1)return r}return null}(n)===r.current&&(i?i():r.current?.focus(),AI="keyboard",A_("keyboard",null));e.preventDefault()}),s=TN(()=>{t.commitValidation()});(0,c0.useEffect)(()=>{let e=r?.current;if(!e)return;let t=e.form,n=t?.reset;return t&&(t.reset=()=>{a.current=!window.event||"message"===window.event.type&&Aa(window.event)instanceof MessagePort,n?.call(t),a.current=!1}),e.addEventListener("invalid",o),e.addEventListener("change",s),t?.addEventListener("reset",l),()=>{e.removeEventListener("invalid",o),e.removeEventListener("change",s),t?.removeEventListener("reset",l),t&&(t.reset=n)}},[r,n])}({...e,focus(){S.focusFirst()}},t,e.inputRef);let P={type:"hidden",name:e.name,form:e.form,value:t.value?.toString()||"",disabled:e.isDisabled};"native"===e.validationBehavior&&(P.type="text",P.hidden=!0,P.required=e.isRequired,P.onChange=()=>{});let D=A6(e);return{labelProps:{...h,onClick:()=>{S.focusFirst()}},fieldProps:Tg(D,s,E,C,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)},style:{unicodeBidi:"isolate"}}),inputProps:P,descriptionProps:f,errorMessageProps:m,isInvalid:c,validationErrors:d,validationDetails:u}}var Mn={};Mn={"ar-AE":{rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."},"bg-BG":{rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."},"cs-CZ":{rangeOverflow:e=>`Hodnota mus\xed b\xfdt ${e.maxValue} nebo dř\xedvějš\xed.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota mus\xed b\xfdt ${e.minValue} nebo pozdějš\xed.`,unavailableDate:"Vybrané datum není k dispozici."},"da-DK":{rangeOverflow:e=>`V\xe6rdien skal v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`V\xe6rdien skal v\xe6re ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder fr\xfcher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder sp\xe4ter sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."},"el-GR":{rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`V\xe4\xe4rtus peab olema ${e.maxValue} v\xf5i varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`V\xe4\xe4rtus peab olema ${e.minValue} v\xf5i hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sit\xe4 aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."},"fr-FR":{rangeOverflow:e=>`La valeur doit \xeatre ${e.maxValue} ou ant\xe9rieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit \xeatre ${e.minValue} ou ult\xe9rieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."},"he-IL":{rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az \xe9rt\xe9knek ${e.maxValue} vagy kor\xe1bbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az \xe9rt\xe9knek ${e.minValue} vagy k\xe9sőbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"},"ko-KR":{rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이후여야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."},"lt-LT":{rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien m\xe5 v\xe6re ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien m\xe5 v\xe6re ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub p\xf3źniejszą.`,unavailableDate:"Wybrana data jest niedostępna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."},"ru-RU":{rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."},"sk-SK":{rangeOverflow:e=>`Hodnota mus\xed byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota mus\xed byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`V\xe4rdet m\xe5ste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`V\xe4rdet m\xe5ste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."},"tr-TR":{rangeOverflow:e=>`Değer, ${e.maxValue} veya \xf6ncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."},"uk-UA":{rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."},"zh-CN":{rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"},"zh-TW":{rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"}};let Mi={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Ma={...Mi,customError:!0,valid:!1},Ml={isInvalid:!1,validationDetails:Mi,validationErrors:[]},Mo=(0,c0.createContext)({}),Ms="__reactAriaFormValidationState";function Mc(e){if(e[Ms]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:a}=e[Ms];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:a}}return function(e){let{isInvalid:t,validationState:r,name:n,value:i,builtinValidation:a,validate:l,validationBehavior:o="aria"}=e;r&&(t||="invalid"===r);let s=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:Ma}:null,c=(0,c0.useMemo)(()=>l&&null!=i?Mu(function(e,t){if("function"==typeof e){let r=e(t);if(r&&"boolean"!=typeof r)return Md(r)}return[]}(l,i)):null,[l,i]);a?.validationDetails.valid&&(a=void 0);let d=(0,c0.useContext)(Mo),u=(0,c0.useMemo)(()=>n?Array.isArray(n)?n.flatMap(e=>Md(d[e])):Md(d[n]):[],[d,n]),[h,p]=(0,c0.useState)(d),[f,m]=(0,c0.useState)(!1);d!==h&&(p(d),m(!1));let g=(0,c0.useMemo)(()=>Mu(f?[]:u),[f,u]),C=(0,c0.useRef)(Ml),[v,y]=(0,c0.useState)(Ml),b=(0,c0.useRef)(Ml),[x,O]=(0,c0.useState)(!1);return(0,c0.useEffect)(()=>{if(!x)return;O(!1);let e=c||a||C.current;Mh(e,b.current)||(b.current=e,y(e))}),{realtimeValidation:s||g||c||a||Ml,displayValidation:"native"===o?s||g||v:s||g||c||a||v,updateValidation(e){"aria"!==o||Mh(v,e)?C.current=e:y(e)},resetValidation(){Mh(Ml,b.current)||(b.current=Ml,y(Ml)),"native"===o&&O(!1),m(!0)},commitValidation(){"native"===o&&O(!0),m(!0)}}}(e)}function Md(e){return e?Array.isArray(e)?e:[e]:[]}function Mu(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Ma}:null}function Mh(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,r)=>e===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([e,r])=>t.validationDetails[e]===r)}function Mp(...e){let t=new Set,r=!1,n={...Mi};for(let i of e){for(let e of i.validationErrors)t.add(e);for(let e in r||=i.isInvalid,n)n[e]||=i.validationDetails[e]}return n.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:n}}let Mf=new T0((T=Mn)&&T.__esModule?T.default:T);function Mm(){let e="u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function Mg(e,t,r,n,i){let a=null!=e&&null!=r&&e.compare(r)>0,l=null!=e&&null!=t&&0>e.compare(t),o=null!=e&&n?.(e)||!1,s=a||l||o,c=[];if(s){let e=Mm(),n=new T4(e,T0.getGlobalDictionaryForPackage("@react-stately/datepicker")||Mf),s=new kp(e,My({},i)),d=s.resolvedOptions().timeZone;l&&null!=t&&c.push(n.format("rangeUnderflow",{minValue:s.format(t.toDate(d))})),a&&null!=r&&c.push(n.format("rangeOverflow",{maxValue:s.format(r.toDate(d))})),o&&c.push(n.format("unavailableDate"))}return{isInvalid:s,validationErrors:c,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}let MC={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},Mv={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function My(e,t){e={...t.shouldForceLeadingZeros?Mv:MC,...e};let r=t.granularity||"minute",n=Object.keys(e),i=n.indexOf(t.maxGranularity??"year");i<0&&(i=0);let a=n.indexOf(r);if(a<0&&(a=2),i>a)throw Error("maxGranularity must be greater than granularity");let l=n.slice(i,a+1).reduce((t,r)=>(t[r]=e[r],t),{});return null!=t.hourCycle&&(l.hour12=12===t.hourCycle),l.timeZone=t.timeZone||"UTC",("hour"===r||"minute"===r||"second"===r)&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&0===i&&(l.era="short"),l}function Mb(e){return e&&"hour"in e?e:new pj}function Mx(e,t){return null===e?null:e?ph(e,t):void 0}function MO(e,t){let r=e&&"timeZone"in e?e.timeZone:void 0,n=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=(0,c0.useState)([n,r]);return e&&(i[0]!==n||i[1]!==r)&&a([n,r]),t||(t=e?n:i[0]),[t,e?r:i[1]]}let Mw=new T0({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},is:{year:"áááá",month:"mm",day:"dd"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"åååå",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},"sr-Latn":{year:"gggg",month:"mm",day:"dd"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");class MS{constructor(e,t,r){if(this.era=r?.era??null,this.calendar=e,this.year=r?.year??null,this.month=r?.month??null,this.day=r?.day??null,this.hour=r?.hour??null,this.hourCycle=t,this.dayPeriod=null,this.minute=r?.minute??null,this.second=r?.second??null,this.millisecond=r?.millisecond??null,this.offset="offset"in(r??{})?r.offset:null,null!=this.hour){let[e,r]=Mk(this.hour,t);this.dayPeriod=e,this.hour=r}}copy(){let e=new MS(this.calendar,this.hourCycle);return e.era=this.era,e.year=this.year,e.month=this.month,e.day=this.day,e.hour=this.hour,e.dayPeriod=this.dayPeriod,e.minute=this.minute,e.second=this.second,e.millisecond=this.millisecond,e.offset=this.offset,e}isComplete(e){return e.every(e=>null!=this[e])}validate(e,t){return t.every(t=>{if(("hour"===t||"dayPeriod"===t)&&"hour"in e){let[t,r]=Mk(e.hour,this.hourCycle);return this.dayPeriod===t&&this.hour===r}return this[t]===e[t]})}isCleared(e){return e.every(e=>null===this[e])}set(e,t,r){let n=this.copy();return n[e]=t,"hour"===e&&null==n.dayPeriod&&"hour"in r&&(n.dayPeriod=Mk(r.hour,this.hourCycle)[0]),"year"===e&&null==n.era&&(n.era=r.era),"second"!==e&&"literal"!==e&&"timeZoneName"!==e&&(n.offset=null),n}clear(e){let t=this.copy();return t[e]=null,"year"===e&&(t.era=null),t.offset=null,t}cycle(e,t,r,n){let i=this.copy();if(null==i[e]&&"dayPeriod"!==e&&"era"!==e){if("hour"===e&&"hour"in r){let[e,t]=Mk(r.hour,this.hourCycle);i.dayPeriod=e,i.hour=t}else i[e]=r[e];return"year"===e&&null==i.era&&(i.era=r.era),i}switch(e){case"era":{let e=this.calendar.getEras(),r=e.indexOf(i.era);r=ME(r,t,0,e.length-1),i.era=e[r];break}case"year":{let n=new pB(this.calendar,this.era??r.era,this.year??r.year,this.month??1,this.day??1);i.era=(n=n.cycle(e,t,{round:"year"===e})).era,i.year=n.year;break}case"month":i.month=ME(i.month??1,t,1,this.calendar.getMaximumMonthsInYear());break;case"day":i.day=ME(i.day??1,t,1,this.calendar.getMaximumDaysInMonth());break;case"hour":{let e=n.some(e=>["year","month","day"].includes(e));if("timeZone"in r&&(!e||null!=i.year&&null!=i.month&&null!=i.day)){let e=this.toValue(r),[n,a]=Mk((e=e.cycle("hour",t,{hourCycle:"h12"===this.hourCycle?12:24,round:!1})).hour,this.hourCycle);i.hour=a,i.dayPeriod=n,i.offset=e.offset}else{let e=i.hour??0,n=this.getSegmentLimits("hour");i.hour=ME(e,t,n.minValue,n.maxValue),null==i.dayPeriod&&"hour"in r&&(i.dayPeriod=Mk(r.hour,this.hourCycle)[0])}break}case"dayPeriod":i.dayPeriod=ME(i.dayPeriod??0,t,0,1);break;case"minute":i.minute=ME(i.minute??0,t,0,59,!0);break;case"second":i.second=ME(i.second??0,t,0,59,!0)}return i}toValue(e){if(!("hour"in e))return e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day});{let t=this.hour;null!=t?t=function(e,t,r){switch(r){case"h11":1===t&&(e+=12);break;case"h12":12===e&&(e=0),1===t&&(e+=12);break;case"h24":e-=1}return e}(t,this.dayPeriod??0,this.hourCycle):("h12"===this.hourCycle||"h11"===this.hourCycle)&&(t=12*(1===this.dayPeriod));let r=e.set({era:this.era??e.era,year:this.year??e.year,month:this.month??e.month,day:this.day??e.day,hour:t??e.hour,minute:this.minute??e.minute,second:this.second??e.second,millisecond:this.millisecond??e.millisecond});return"offset"in r&&null!=this.offset&&r.offset!==this.offset&&(r=r.add({milliseconds:r.offset-this.offset})),r}}getSegmentLimits(e){switch(e){case"era":{let e=this.calendar.getEras();return{value:null!=this.era?e.indexOf(this.era):e.length-1,minValue:0,maxValue:e.length-1}}case"year":return{value:this.year,minValue:1,maxValue:9999};case"month":return{value:this.month,minValue:1,maxValue:this.calendar.getMaximumMonthsInYear()};case"day":return{value:this.day,minValue:1,maxValue:this.calendar.getMaximumDaysInMonth()};case"dayPeriod":return{value:this.dayPeriod,minValue:0,maxValue:1};case"hour":{let e=0,t=23;return"h12"===this.hourCycle?(e=1,t=12):"h11"===this.hourCycle&&(e=0,t=11),{value:this.hour,minValue:e,maxValue:t}}case"minute":return{value:this.minute,minValue:0,maxValue:59};case"second":return{value:this.second,minValue:0,maxValue:59}}}}function ME(e,t,r,n,i=!1){if(i){(e+=Math.sign(t))<r&&(e=n);let i=Math.abs(t);(e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i)>n&&(e=r)}else(e+=t)<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function Mk(e,t){let r=+(e>=12);switch(t){case"h11":e>=12&&(e-=12);break;case"h12":0===e?e=12:e>12&&(e-=12);break;case"h23":r=null;break;case"h24":e+=1,r=null}return[r,e]}let MP="u">typeof document?c0.default.useInsertionEffect??c0.default.useLayoutEffect:()=>{};function MD(e,t,r){let[n,i]=(0,c0.useState)(e||t),a=(0,c0.useRef)(n),l=(0,c0.useRef)(void 0!==e),o=void 0!==e;(0,c0.useEffect)(()=>{l.current,l.current=o},[o]);let s=o?e:n;MP(()=>{a.current=s});let[,c]=(0,c0.useReducer)(()=>({}),{});return[s,(0,c0.useCallback)((e,...t)=>{let n="function"==typeof e?e(a.current):e;Object.is(a.current,n)||(a.current=n,i(n),c(),r?.(n,...t))},[r])]}let MA=new Map,MT=!1;try{MT="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let MM=!1;try{MM="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}let ML={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class MI{constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),"unit"===t.style&&!MM){let{unit:e,unitDisplay:r="short"}=t;if(!e)throw Error('unit option must be provided with style: "unit"');if(!ML[e]?.[r])throw Error(`Unsupported unit ${e} with unitDisplay = ${r}`);t={...t,style:"decimal"}}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(MA.has(n))return MA.get(n);let i=new Intl.NumberFormat(e,t);return MA.set(n,i),i}(e,t),this.options=t}format(e){let t="";if(t=MT||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,r){if("auto"===t)return e.format(r);{if("never"===t)return e.format(Math.abs(r));let n=!1;if("always"===t?n=r>0||Object.is(r,0):"exceptZero"===t&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),!n)return e.format(r);{let t=e.format(-r),n=e.format(r),i=t.replace(n,"").replace(/\u200e|\u061C/,"");return 1!=[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(n,"!!!").replace(i,"+").replace("!!!",n)}}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!MM){let{unit:e,unitDisplay:r="short",locale:n}=this.resolvedOptions();if(!e)return t;let i=ML[e]?.[r];t+=i[n]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return MT||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),MM||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}}let MN={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},MF={year:5,month:2,day:7,hour:2,minute:15,second:15},MR={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function MV(e){let{locale:t,createCalendar:r,hideTimeZone:n,isDisabled:i=!1,isReadOnly:a=!1,isRequired:l=!1,minValue:o,maxValue:s,isDateUnavailable:c}=e,d=e.value||e.defaultValue||e.placeholderValue||null,[u,h]=MO(d,e.granularity),p=h||"UTC";if(d&&!(u in d))throw Error("Invalid granularity "+u+" for value "+d.toString());let[f,m]=(0,c0.useMemo)(()=>{let n=new kp(t,{dateStyle:"short",timeStyle:"short",hour12:null!=e.hourCycle?12===e.hourCycle:void 0}).resolvedOptions();return[r(n.calendar),n.hourCycle]},[t,e.hourCycle,r]),[g,C]=MD(e.value,e.defaultValue??null,e.onChange),[v]=(0,c0.useState)(g),y=(0,c0.useMemo)(()=>Mx(g,f)??null,[g,f]),[b,x]=(0,c0.useState)(()=>new MS(f,m,y)),O="gregory"===f.identifier&&"BC"===b.era,w=(0,c0.useMemo)(()=>({granularity:u,maxGranularity:e.maxGranularity??"year",timeZone:h,hideTimeZone:n,hourCycle:e.hourCycle,showEra:O,shouldForceLeadingZeros:e.shouldForceLeadingZeros}),[e.maxGranularity,u,e.hourCycle,e.shouldForceLeadingZeros,h,n,O]),S=(0,c0.useMemo)(()=>My({},w),[w]),E=(0,c0.useMemo)(()=>new kp(t,S),[t,S]),k=(0,c0.useMemo)(()=>E.resolvedOptions(),[E]),P=(0,c0.useMemo)(()=>(function(e,t,r,n){if(e)return Mx(e,r);let i=ph(hG(n??hK()).set({hour:0,minute:0,second:0,millisecond:0}),r);return"year"===t||"month"===t||"day"===t?pc(i):n?i:pd(i)})(e.placeholderValue,u,f,h),[e.placeholderValue,u,f,h]),D=(0,c0.useMemo)(()=>{let t="h11"===m||"h12"===m,r=["era","year","month","day","hour",...t?["dayPeriod"]:[],"minute","second"],n=r.indexOf(e.maxGranularity||"era"),i=r.indexOf("hour"===u&&t?"dayPeriod":u);return r.slice(n,i+1)},[e.maxGranularity,u,m]),[A,T]=(0,c0.useState)(y),[M,L]=(0,c0.useState)(f),[I,N]=(0,c0.useState)(m);y===A&&m===I&&hQ(f,M)||(b=new MS(f,m,y),T(y),L(f),N(m),x(b));let F=t=>{if(!e.isDisabled&&!e.isReadOnly)if(null==t||t instanceof MS&&t.isCleared(D))x(new MS(f,m,y)),C(null);else if(t instanceof MS){if(t.isComplete(D)){let e=t.toValue(y??P);if(t.validate(e,D)){let t=ph(e,d?.calendar||new hY);if(!g||0!==t.compare(g)){x(new MS(f,m,y)),C(t);return}}}x(t)}else t=ph(t,d?.calendar||new hY),x(new MS(f,m,y)),C(t)},R=(0,c0.useMemo)(()=>b.toValue(y??P).toDate(p),[b,p,y,P]),V=(0,c0.useMemo)(()=>(function(e,t,r,n,i,a,l){let o=["hour","minute","second"],s=r.formatToParts(e),c=new MI(a,{useGrouping:!1}),d=new MI(a,{useGrouping:!1,minimumIntegerDigits:2});for(let e of s)if("year"===e.type||"month"===e.type||"day"===e.type||"hour"===e.type){let r=t[e.type]??0;"2-digit"===n[e.type]?e.value=d.format(r):e.value=c.format(r)}let u=[];for(let e of s){var h;let r=MR[e.type]||e.type,n=MN[r];"era"===r&&1===i.getEras().length&&(n=!1);let s=MN[r]&&null==t[e.type],c=MN[r]?(h=e.value,"era"===r||"dayPeriod"===r?h:"year"===r||"month"===r||"day"===r?Mw.getStringForLocale(r,a):"––"):null,d={type:r,text:s?c:e.value,...t.getSegmentLimits(r),isPlaceholder:s,placeholder:c,isEditable:n};"hour"===r?(u.push({type:"literal",text:"⁦",isPlaceholder:!1,placeholder:"",isEditable:!1}),u.push(d),r===l&&u.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):o.includes(r)&&r===l?(u.push(d),u.push({type:"literal",text:"⁩",isPlaceholder:!1,placeholder:"",isEditable:!1})):u.push(d)}return u})(R,b,E,k,f,t,u),[R,E,k,b,f,t,u]),_=(e,t)=>{F(b.cycle(e,t,P,D))},Y=(0,c0.useMemo)(()=>Mg(g,o,s,c,w),[g,o,s,c,w]),$=Mc({...e,value:g,builtinValidation:Y}),H=$.displayValidation.isInvalid,z=e.validationState||(H?"invalid":null);return{...$,value:y,defaultValue:e.defaultValue??v,dateValue:R,calendar:f,setValue:F,segments:V,dateFormatter:E,validationState:z,isInvalid:H,granularity:u,maxGranularity:e.maxGranularity??"year",isDisabled:i,isReadOnly:a,isRequired:l,increment(e){_(e,1)},decrement(e){_(e,-1)},incrementPage(e){_(e,MF[e]||1)},decrementPage(e){_(e,-(MF[e]||1))},incrementToMax(e){let t="hour"===e&&"h12"===m?11:b.getSegmentLimits(e).maxValue;F(b.set(e,t,P))},decrementToMin(e){let t="hour"===e&&"h12"===m?12:b.getSegmentLimits(e).minValue;F(b.set(e,t,P))},setSegment(e,t){F(b.set(e,t,P))},confirmPlaceholder(){if(!e.isDisabled&&!e.isReadOnly&&b.isComplete(D)){let e=ph(b.toValue(y??P),d?.calendar||new hY);g&&0===e.compare(g)||C(e),x(new MS(f,m,y))}},clearSegment(e){let t=b;"timeZoneName"!==e&&"literal"!==e&&(t=b.clear(e)),F(t)},formatValue:e=>y?new kp(t,My(e,w)).format(R):"",getDateFormatter:(e,t)=>new kp(e,My({},{...w,...t}))}}let M_=(0,c0.createContext)(void 0),MY={order:"day-first"},M$=()=>(0,c0.useContext)(M_)??MY,MH=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Mz=["January","February","March","April","May","June","July","August","September","October","November","December"],MZ=Mz.map(e=>e.slice(0,3));function MQ({granularity:e,isRange:t=!1,isTimeOnly:r=!1}){return r?"Select time":"day"===e||void 0===e?t?"Select a date range":"Select a date":t?"Select date and time range":"Select date and time"}let MB=new Set(["hour","minute","second","dayPeriod"]);function Mj(){let e=document.activeElement?.getAttribute("data-segment");return null!=e&&MB.has(e)}function MG(e){let t,r=(0,ej.c)(5),{enabled:n,isOpen:i,dropdownRef:a,onOpen:l}=e;return r[0]!==a||r[1]!==n||r[2]!==i||r[3]!==l?(t=e=>{n&&(i?["ArrowUp","ArrowDown","Enter","Escape"].includes(e.key)?(e.stopPropagation(),e.preventDefault(),a.current?.handleKeyDown(e)):["ArrowLeft","ArrowRight"].includes(e.key)&&(e.stopPropagation(),e.preventDefault()):"Enter"===e.key?(e.stopPropagation(),e.preventDefault(),l()):["ArrowUp","ArrowDown"].includes(e.key)&&Mj()?(e.stopPropagation(),e.preventDefault()):e.key>="0"&&e.key<="9"&&Mj()&&(e.stopPropagation(),e.preventDefault()))},r[0]=a,r[1]=n,r[2]=i,r[3]=l,r[4]=t):t=r[4],t}let MU=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(5),{text:i,className:a}=e;return n[0]!==a?(t=(0,m2.cn)("pointer-events-none absolute inset-0 flex items-center px-1","text-text-secondary font-sans text-sm","select-none whitespace-nowrap",a),n[0]=a,n[1]=t):t=n[1],n[2]!==t||n[3]!==i?(r=(0,eB.Y)("span",{className:t,"aria-hidden":"true",children:i}),n[2]=t,n[3]=i,n[4]=r):r=n[4],r},"TemporalPlaceholder");function MW(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return e===n&&"hidden"!==r.overflow&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function Mq(e,t){let r=[],n=document.scrollingElement||document.documentElement;for(;e&&(MW(e,t)&&r.push(e),e!==n);)e=e.parentElement;return r}function MX(e,t,r={}){let{block:n="nearest",inline:i="nearest"}=r;if(e===t)return;let a=e.scrollTop,l=e.scrollLeft,o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),c=window.getComputedStyle(t),d=window.getComputedStyle(e),u=document.scrollingElement||document.documentElement,h=e===u,p=e===u?0:s.top,f=e===u?e.clientHeight:s.bottom,m=e===u?0:s.left,g=e===u?e.clientWidth:s.right,C=parseFloat(c.scrollMarginTop)||0,v=parseFloat(c.scrollMarginBottom)||0,y=parseFloat(c.scrollMarginLeft)||0,b=parseFloat(c.scrollMarginRight)||0,x=parseFloat(d.scrollPaddingTop)||0,O=parseFloat(d.scrollPaddingBottom)||0,w=parseFloat(d.scrollPaddingLeft)||0,S=parseFloat(d.scrollPaddingRight)||0,E=parseFloat(d.borderTopWidth)||0,k=parseFloat(d.borderBottomWidth)||0,P=parseFloat(d.borderLeftWidth)||0,D=parseFloat(d.borderRightWidth)||0,A=o.top-C,T=o.bottom+v,M=o.left-y,L=o.right+b,I=e===u?0:P+D,N=e===u?0:E+k,F=e===u?0:e.offsetWidth-e.clientWidth-I,R=e===u?0:e.offsetHeight-e.clientHeight-N,V=p+(h?0:E)+x,_=f-(h?0:k)-O-R,Y=m+(h?0:P)+w,$=g-(h?0:D)-S;"rtl"!==d.direction||Ak()?$-=F:Y+=F;let H=A<V||T>_,z=M<Y||L>$;if(H&&"start"===n)a+=A-V;else if(H&&"center"===n)a+=(A+T)/2-(V+_)/2;else if(H&&"end"===n)a+=T-_;else if(H&&"nearest"===n){let e=A-V,t=T-_;a+=Math.abs(e)<=Math.abs(t)?e:t}if(z&&"start"===i)l+=M-Y;else if(z&&"center"===i)l+=(M+L)/2-(Y+$)/2;else if(z&&"end"===i)l+=L-$;else if(z&&"nearest"===i){let e=M-Y,t=L-$;l+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:l,top:a})}function MK(e){var t;let r;t=e??{},r=(0,c0.useRef)(null),t&&r.current&&MJ(t,r.current)&&(t=r.current),r.current=t,e=t;let{locale:n}=TE();return(0,c0.useMemo)(()=>new kp(n,e),[n,e])}function MJ(e,t){if(e===t)return!0;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(t[n]!==e[n])return!1;return!0}class M1{constructor(e,t){this.locale=e,this.dictionary=t}of(e){return this.dictionary.getStringForLocale(e,this.locale)}}function M2(e,t,r,n){let i=TN(r),a=null==r;(0,c0.useEffect)(()=>{if(a||!e.current)return;let r=e.current;return r.addEventListener(t,i,n),()=>{r.removeEventListener(t,i,n)}},[e,t,n,a])}let M0=new Map,M3=null;class M5{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"u">typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){if(!this.node)return;let n=document.createElement("div");"object"==typeof e?(n.setAttribute("role","img"),n.setAttribute("aria-labelledby",e["aria-labelledby"])):n.textContent=e,"assertive"===t?this.assertiveLog?.appendChild(n):this.politeLog?.appendChild(n),""!==e&&setTimeout(()=>{n.remove()},r)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}}var M4={};M4={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Prázdné"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vacío"},"et-EE":{Empty:"Tühjenda"},"fi-FI":{Empty:"Tyhjä"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"Üres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Prázdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};let M7=()=>{},M9=RegExp("^.*\\(.*\\).*$"),M6=["latn","arab","hanidec","deva","beng","fullwide"];class M8{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return Lt(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,r){return Lt(this.locale,this.options,e).isValidPartialNumber(e,t,r)}getNumberingSystem(e){return Lt(this.locale,this.options,e).options.numberingSystem}}let Le=new Map;function Lt(e,t,r){let n=Lr(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let i of M6)if(i!==n.options.numberingSystem){let n=Lr(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(n.isValidPartialNumber(r))return n}}return n}function Lr(e,t){let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),n=Le.get(r);return n||(n=new Ln(e,t),Le.set(r,n)),n}class Ln{constructor(e,t={}){var r,n,i,a;let l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x;this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=(r=e,n=this.formatter,i=this.options,a=t,o=(l=new Intl.NumberFormat(r,{...i,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0})).formatToParts(-10000.111),s=l.formatToParts(10000.111),d=(c=La.map(e=>l.formatToParts(e))).map((e,t)=>{let r=e.find(e=>"unit"===e.type);return r&&!e.some(e=>"integer"===e.type||"fraction"===e.type)?{unit:r.value,value:La[t]}:null}).filter(e=>!!e),u=o.find(e=>"minusSign"===e.type)?.value??"-",(h=s.find(e=>"plusSign"===e.type)?.value)||a?.signDisplay!=="exceptZero"&&a?.signDisplay!=="always"||(h="+"),p=new Intl.NumberFormat(r,{...i,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),f=p.find(e=>"decimal"===e.type)?.value,m=o.find(e=>"group"===e.type)?.value,g=o.filter(e=>!Li.has(e.type)).map(e=>Lo(e.value)),C=c.flatMap(e=>e.filter(e=>!Li.has(e.type)).map(e=>Lo(e.value))),y=0===(v=[...new Set([...g,...C])].sort((e,t)=>t.length-e.length)).length?RegExp("\\p{White_Space}|\\p{Cf}","gu"):RegExp(`${v.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),x=new Map((b=[...new Intl.NumberFormat(i.locale,{useGrouping:!1}).format(0x24cb016ea)].reverse()).map((e,t)=>[e,t])),{minusSign:u,plusSign:h,decimal:f,group:m,literals:y,numeral:RegExp(`[${b.join("")}]`,"g"),numerals:b,index:e=>String(x.get(e)),noNumeralUnits:d}),"percent"===this.options.style&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(e){let t=this.formatter.resolvedOptions().useGrouping,r=this.sanitize(e);if(!t&&this.symbols.group&&r.includes(this.symbols.group))return 0/0;if(this.symbols.group&&(r=r.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=r.indexOf("-"),t=(r=(r=r.replace("-","")).replace("+","")).indexOf(".");-1===t&&(t=r.length),r=r.replace(".",""),r=t-2==0?`0.${r}`:t-2==-1?`0.0${r}`:t-2==-2?"0.00":`${r.slice(0,t-2)}.${r.slice(t-2)}`,e>-1&&(r=`-${r}`)}let n=r?+r:0/0;if(isNaN(n))return 0/0;if("percent"===this.options.style){let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new M8(this.locale,e).parse(new MI(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&M9.test(e)&&(n*=-1),n}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=Ll(e,",",this.symbols.decimal),e=Ll(e,String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&t&&(e=Ll(e,".",this.symbols.group))),"’"===this.symbols.group&&e.includes("'")&&t&&(e=Ll(e,"'",this.symbols.group)),"'"===this.symbols.group&&e.includes("’")&&t&&(e=Ll(e,"’",this.symbols.group)),"fr-FR"===this.options.locale&&this.symbols.group&&t&&(e=Ll(e," ",this.symbols.group),e=Ll(e,/\u00A0/g,this.symbols.group)),e)}isValidPartialNumber(e,t=-1/0,r=1/0){let n=this.formatter.resolvedOptions().useGrouping;return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&r>0&&(e=e.slice(this.symbols.plusSign.length)),(!(this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1)||0!==this.options.maximumFractionDigits)&&(this.symbols.group&&n&&(e=Ll(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0===e.length)}}let Li=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),La=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Ll(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function Lo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let Ls=(0,m9.F)((0,m2.cn)("relative outline-none text-left","font-sans text-sm transition-all","focus:outline-none"),{variants:{isPlaceholder:{true:"text-text-secondary",false:"text-text-primary"},disabled:{true:"cursor-not-allowed",false:"hover:bg-states-primary-default-alt cursor-text"},type:{literal:"text-text-primary select-none hover:bg-transparent focus:bg-transparent rounded-2",editable:"px-1 focus:bg-bg-fill-brand focus:text-text-primary-alt"}},defaultVariants:{type:"editable",isPlaceholder:!1,disabled:!1}}),Lc=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(23),{segment:a,state:l,disabled:o,readOnly:s,displayOverride:c}=e,d=void 0!==o&&o,u=(0,c0.useRef)(null),{segmentProps:h}=function(e,t,r){let n,i,a,l,o=(0,c0.useRef)(""),{locale:s,direction:c}=TE(),d=function(){var e;let{locale:t}=TE(),r=T9((e=A8)&&e.__esModule?e.default:e,"@react-aria/datepicker");return(0,c0.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new M1(t,r)}},[t,r])}(),{ariaLabel:u,ariaLabelledBy:h,ariaDescribedBy:p,focusManager:f}=T8.get(t),m=e.isPlaceholder?"":e.text,g=(0,c0.useMemo)(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),C=MK({month:"long",timeZone:g.timeZone}),v=MK({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(m=v.format(t.dateValue));else{let e=C.format(t.dateValue);m=e!==m?`${m} – ${e}`:e}let{spinButtonProps:y}=function(e){var t;let r=(0,c0.useRef)(void 0),{value:n,textValue:i,minValue:a,maxValue:l,isDisabled:o,isReadOnly:s,isRequired:c,onIncrement:d,onIncrementPage:u,onDecrement:h,onDecrementPage:p,onDecrementToMin:f,onIncrementToMax:m}=e,g=T6((t=M4)&&t.__esModule?t.default:t,"@react-aria/spinbutton"),C=(0,c0.useRef)(!1),v=(0,c0.useCallback)(()=>{clearTimeout(r.current),C.current=!1},[]),y=TN(()=>{v()});(0,c0.useEffect)(()=>()=>y(),[]);let b=(0,c0.useRef)(!1),x=()=>{b.current=!0},O=()=>{b.current=!1},w=""===i?g.format("Empty"):(i||`${n}`).replace("-","−");(0,c0.useEffect)(()=>{b.current&&(M3&&M3.clear("assertive"),function(e,t="assertive",r=7e3){M3?M3.announce(e,t,r):(M3=new M5,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"u">typeof jest)?M3.announce(e,t,r):setTimeout(()=>{M3?.isAttached()&&M3?.announce(e,t,r)},100))}(w,"assertive"))},[w]);let S=(0,c0.useCallback)(()=>{v()},[v]),E=TN(d??M7),k=TN(h??M7),P=TN(()=>{(void 0===l||isNaN(l)||void 0===n||isNaN(n)||n<l)&&(E(),D(60))}),D=TN(e=>{y(),C.current=!0,r.current=window.setTimeout(P,e)}),A=TN(()=>{(void 0===a||isNaN(a)||void 0===n||isNaN(n)||n>a)&&(k(),T(60))}),T=TN(e=>{y(),C.current=!0,r.current=window.setTimeout(A,e)}),M=e=>{e.preventDefault()},{addGlobalListener:L,removeAllGlobalListeners:I}=TF(),N=(0,c0.useRef)(!1),[F,R]=(0,c0.useState)(null);(0,c0.useEffect)(()=>{"touch"===F?D(600):F?D(400):F||y()},[F]);let[V,_]=(0,c0.useState)(null);return(0,c0.useEffect)(()=>{"touch"===V?T(600):V?T(400):V||y()},[V]),{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===n||isNaN(n)?void 0:n,"aria-valuetext":w,"aria-valuemin":a,"aria-valuemax":l,"aria-disabled":o||void 0,"aria-readonly":s||void 0,"aria-required":c||void 0,onKeyDown:e=>{if(!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey&&!s&&!e.nativeEvent.isComposing)switch(e.key){case"PageUp":if(u){e.preventDefault(),u?.();break}case"ArrowUp":case"Up":d&&(e.preventDefault(),d?.());break;case"PageDown":if(p){e.preventDefault(),p?.();break}case"ArrowDown":case"Down":h&&(e.preventDefault(),h?.());break;case"Home":f&&(e.preventDefault(),f?.());break;case"End":m&&(e.preventDefault(),m?.())}},onFocus:x,onBlur:O},incrementButtonProps:{onPressStart:e=>{v(),"touch"!==e.pointerType?(d?.(),R("mouse")):(L(window,"pointercancel",S,{capture:!0}),N.current=!1,R("touch")),L(window,"contextmenu",M)},onPressUp:e=>{v(),"touch"===e.pointerType&&(N.current=!0),I(),R(null)},onPressEnd:e=>{v(),"touch"===e.pointerType&&!C.current&&N.current&&d?.(),N.current=!1,R(null)},onFocus:x,onBlur:O},decrementButtonProps:{onPressStart:e=>{v(),"touch"!==e.pointerType?(h?.(),_("mouse")):(L(window,"pointercancel",S,{capture:!0}),N.current=!1,_("touch"))},onPressUp:e=>{v(),"touch"===e.pointerType&&(N.current=!0),I(),_(null)},onPressEnd:e=>{v(),"touch"===e.pointerType&&!C.current&&N.current&&h?.(),N.current=!1,_(null)},onFocus:x,onBlur:O}}}({value:e.value??void 0,textValue:m,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{o.current="",t.increment(e.type)},onDecrement:()=>{o.current="",t.decrement(e.type)},onIncrementPage:()=>{o.current="",t.incrementPage(e.type)},onDecrementPage:()=>{o.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{o.current="",t.incrementToMax(e.type)},onDecrementToMin:()=>{o.current="",t.decrementToMin(e.type)}}),b=(0,c0.useMemo)(()=>new M8(s,{maximumFractionDigits:0}),[s]),x=()=>{if(e.text===e.placeholder&&f.focusPrevious(),!b.isValidPartialNumber(e.text)||t.isReadOnly||e.isPlaceholder)("dayPeriod"===e.type||"era"===e.type)&&t.clearSegment(e.type);else{let r=e.text.slice(0,-1),n=b.parse(r);0===(r=0===n?"":r).length||0===n?t.clearSegment(e.type):t.setSegment(e.type,n),o.current=r}},{startsWith:O}=(n=function(e){let{locale:t}=TE(),r=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(M0.has(r))return M0.get(r);let n=new Intl.Collator(t,e);return M0.set(r,n),n}({usage:"search",sensitivity:"base"}),i=(0,c0.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(0,t.length),t)),[n]),a=(0,c0.useCallback)((e,t)=>0===t.length||(e=e.normalize("NFC"),t=t.normalize("NFC"),0===n.compare(e.slice(-t.length),t)),[n]),l=(0,c0.useCallback)((e,t)=>{if(0===t.length)return!0;e=e.normalize("NFC");let r=0,i=(t=t.normalize("NFC")).length;for(;r+i<=e.length;r++){let a=e.slice(r,r+i);if(0===n.compare(t,a))return!0}return!1},[n]),(0,c0.useMemo)(()=>({startsWith:i,endsWith:a,contains:l}),[i,a,l])),w=MK({hour:"numeric",hour12:!0}),S=(0,c0.useMemo)(()=>{let e=new Date;return e.setHours(0),w.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[w]),E=(0,c0.useMemo)(()=>{let e=new Date;return e.setHours(12),w.formatToParts(e).find(e=>"dayPeriod"===e.type).value},[w]),k=MK({year:"numeric",era:"narrow",timeZone:"UTC"}),P=(0,c0.useMemo)(()=>{if("era"!==e.type)return[];let r=ph(new pB(1,1,1),t.calendar),n=t.calendar.getEras().map(e=>{let t=r.set({year:1,month:1,day:1,era:e}).toDate("UTC");return{era:e,formatted:k.formatToParts(t).find(e=>"era"===e.type).value}}),i=function(e){e.sort();let t=e[0],r=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==r[e])return e;return 0}(n.map(e=>e.formatted));if(i)for(let e of n)e.formatted=e.formatted.slice(i);return n},[k,t.calendar,e.type]),D=r=>{if(t.isDisabled||t.isReadOnly)return;let n=o.current+r;switch(e.type){case"dayPeriod":if(O(S,r))t.setSegment("dayPeriod",0);else if(O(E,r))t.setSegment("dayPeriod",1);else break;f.focusNext();break;case"era":{let e=P.find(e=>O(e.formatted,r));e&&(t.setSegment("era",e.era),f.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!b.isValidPartialNumber(n))return;let i=b.parse(n),a=i;if(void 0!==e.maxValue&&i>e.maxValue&&(a=b.parse(r)),isNaN(i))return;t.setSegment(e.type,a),void 0!==e.maxValue&&(Number(i+"0")>e.maxValue||n.length>=String(e.maxValue).length)?(o.current="",f.focusNext()):o.current=n}}};M2((0,c0.useRef)("u">typeof document?document:null),"selectionchange",()=>{let e=window.getSelection();e?.anchorNode&&Ai(r.current,e?.anchorNode)&&e.collapse(r.current)});let A=(0,c0.useRef)("");M2(r,"beforeinput",n=>{if(r.current)switch(n.preventDefault(),n.inputType){case"deleteContentBackward":case"deleteContentForward":b.isValidPartialNumber(e.text)&&!t.isReadOnly&&x();break;case"insertCompositionText":A.current=r.current.textContent,r.current.textContent=r.current.textContent;break;default:null!=n.data&&D(n.data)}}),M2(r,"input",e=>{let{inputType:t,data:n}=e;"insertCompositionText"===t&&(r.current&&(r.current.textContent=A.current),null!=n&&(O(S,n)||O(E,n))&&D(n))}),Ag(()=>{let e=r.current;return()=>{((e=document)=>e.activeElement)()===e&&(f.focusPrevious()||f.focusNext())}},[r,f]);let T=Ak()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};e===(0,c0.useMemo)(()=>t.segments.find(e=>e.isEditable),[t.segments])||t.isInvalid||(p=void 0);let M=Th(),L=!t.isDisabled&&!t.isReadOnly&&e.isEditable,I="literal"===e.type?"":d.of(e.type),N=TX({"aria-label":`${I}${u?`, ${u}`:""}${h?", ":""}`,"aria-labelledby":h});if("literal"===e.type)return{segmentProps:{"aria-hidden":!0}};let F={caretColor:"transparent"};if("rtl"===c){F.unicodeBidi="embed";let t=g[e.type];("numeric"===t||"2-digit"===t)&&(F.direction="ltr")}return{segmentProps:Tg(y,N,{id:M,...T,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":p,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:L,suppressContentEditableWarning:L,spellCheck:L?"false":void 0,autoCorrect:L?"off":void 0,[parseInt(c0.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:L?"next":void 0,inputMode:t.isDisabled||"dayPeriod"===e.type||"era"===e.type||!L?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:e=>{if("a"===e.key&&(Aw()?e.metaKey:e.ctrlKey)&&e.preventDefault(),!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey)switch(e.key){case"Backspace":case"Delete":e.preventDefault(),e.stopPropagation(),x()}},onFocus:()=>{o.current="",r.current&&function(e,t={}){let{containingElement:r}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(t).overflow){let{left:t,top:n}=e.getBoundingClientRect(),i=Mq(e,!0);for(let t of i)MX(t,e);let{left:a,top:l}=e.getBoundingClientRect();if(Math.abs(t-a)>1||Math.abs(n-l)>1){for(let e of i=r?Mq(r,!0):[])MX(e,r,{block:"center",inline:"center"});for(let t of Mq(e,!0))MX(t,e)}}else{let{left:t,top:n}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:i,top:a}=e.getBoundingClientRect();(Math.abs(t-i)>1||Math.abs(n-a)>1)&&(r?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}(r.current,{containingElement:function(e){let t=e;for(MW(t,void 0)&&(t=t.parentElement);t&&!MW(t,void 0);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}(r.current)});let e=window.getSelection();e?.collapse(r.current)},style:F,onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}(a,l,u),p="literal"===a.type,f=a.isEditable&&!(void 0!==s&&s);if(i[0]!==c||i[1]!==p||i[2]!==a)t=c??(p?a.text:"month"!==a.type||null==a.value||a.isPlaceholder?"dayPeriod"===a.type?a.text.toUpperCase():a.text:function(e,t="MM"){return null==e?t:MZ[e-1]||String(e)}(a.value,a.placeholder)),i[0]=c,i[1]=p,i[2]=a,i[3]=t;else t=i[3];let m=t;if(p||!f){let e,t,r=!p&&!f&&!d;i[4]!==d||i[5]!==p||i[6]!==r||i[7]!==a.isPlaceholder?(e=(0,m2.cn)(Ls({type:"literal",isPlaceholder:!p&&a.isPlaceholder,disabled:d}),r&&"cursor-not-allowed"),i[4]=d,i[5]=p,i[6]=r,i[7]=a.isPlaceholder,i[8]=e):e=i[8];let n=p?void 0:a.type,l=!p&&!!a.isPlaceholder||void 0;return i[9]!==m||i[10]!==e||i[11]!==n||i[12]!==l?(t=(0,eB.Y)("span",{className:e,"data-segment":n,"data-placeholder":l,"aria-hidden":"true",children:m}),i[9]=m,i[10]=e,i[11]=n,i[12]=l,i[13]=t):t=i[13],t}i[14]!==d||i[15]!==a.isPlaceholder?(r=(0,m2.cn)(Ls({type:"editable",isPlaceholder:a.isPlaceholder,disabled:d})),i[14]=d,i[15]=a.isPlaceholder,i[16]=r):r=i[16];let g=a.isPlaceholder||void 0;return i[17]!==m||i[18]!==a.type||i[19]!==h||i[20]!==r||i[21]!==g?(n=(0,eB.Y)("span",{...h,ref:u,className:r,"data-segment":a.type,"data-placeholder":g,children:m}),i[17]=m,i[18]=a.type,i[19]=h,i[20]=r,i[21]=g,i[22]=n):n=i[22],n},"TemporalSegment"),Ld=(0,m9.F)("relative outline-none text-left font-sans text-sm text-text-primary select-none",{variants:{disabled:{true:"cursor-not-allowed opacity-50",false:""}},defaultVariants:{disabled:!1}}),Lu=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(5),{text:i,disabled:a}=e;return n[0]!==a?(t=Ld({disabled:a}),n[0]=a,n[1]=t):t=n[1],n[2]!==t||n[3]!==i?(r=(0,eB.Y)("span",{className:t,"aria-hidden":"true",children:i}),n[2]=t,n[3]=i,n[4]=r):r=n[4],r},"Literal"),Lh=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(21);u[0]!==e?({ref:a,state:l,disabled:r,readOnly:i,className:t,segmentKeyPrefix:o,...n}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a,u[6]=l,u[7]=o):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5],l=u[6],o=u[7]);let h=void 0===o?"":o,{order:p}=M$();u[8]!==r||u[9]!==p||u[10]!==i||u[11]!==h||u[12]!==l?(s=function(e,t,r,n,i,a=""){let l=e.find(e=>"day"===e.type),o=e.find(e=>"month"===e.type),s=e.find(e=>"year"===e.type);if(!(l||o||s))return e.map((e,r)=>(0,eB.Y)(Lc,{segment:e,state:t,disabled:n,readOnly:i},`${a}${e.type}_${r}`));let c=e.findIndex(e=>"hour"===e.type),d=c>=0?e.slice(c):[],u=[],h=e=>{if(!l)return;let r=l.isPlaceholder||2!==l.text.length||"0"!==l.text[0]?void 0:l.text.slice(1);u.push((0,eB.Y)(Lc,{segment:l,state:t,disabled:n,readOnly:i,displayOverride:r},e))},p=e=>{o&&u.push((0,eB.Y)(Lc,{segment:o,state:t,disabled:n,readOnly:i},e))};return"month-first"===r?(p(`${a}month`),o&&l&&u.push((0,eB.Y)(Lu,{text:" ",disabled:n},`${a}sep-md`)),h(`${a}day`)):(h(`${a}day`),l&&o&&u.push((0,eB.Y)(Lu,{text:" ",disabled:n},`${a}sep-dm`)),p(`${a}month`)),s&&(u.push((0,eB.Y)(Lu,{text:", ",disabled:n},`${a}sep-my`)),u.push((0,eB.Y)(Lc,{segment:s,state:t,disabled:n,readOnly:i},`${a}year`))),d.length>0&&(u.push((0,eB.Y)(Lu,{text:" ",disabled:n},`${a}sep-dt`)),d.forEach((e,r)=>u.push((0,eB.Y)(Lc,{segment:e,state:t,disabled:n,readOnly:i},`${a}time_${e.type}_${r}`)))),u}(l.segments,l,p,r,i,h),u[8]=r,u[9]=p,u[10]=i,u[11]=h,u[12]=l,u[13]=s):s=u[13];let f=s;return u[14]!==t?(c=(0,m2.cn)("flex items-center gap-0.5",t),u[14]=t,u[15]=c):c=u[15],u[16]!==f||u[17]!==n||u[18]!==a||u[19]!==c?(d=(0,eB.Y)("div",{...n,ref:a,className:c,children:f}),u[16]=f,u[17]=n,u[18]=a,u[19]=c,u[20]=d):d=u[20],d},"TemporalSegmentGroup");Lh.displayName="TemporalSegmentGroup";let Lp=(e,t)=>{if(!t)return -1;let r=60*t.hour+t.minute,n=0,i=Number.MAX_VALUE;return e.forEach((e,t)=>{let a=Math.abs(r-(60*e.hour+e.minute));a<i&&(i=a,n=t)}),n},Lf=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y=(0,ej.c)(44),{ref:b,isOpen:x,timeStep:O,value:w,hourCycle:S,onSelect:E,onClose:k}=e,P=void 0===O?30:O,D=void 0===S?24:S;y[0]!==P?(t=(e=>{let t=[];for(let r=0;r<1440;r+=e){let e=Math.floor(r/60),n=r%60;t.push(new pj(e,n,0,0))}return t})(P),y[0]=P,y[1]=t):t=y[1];let A=t;y[2]!==A||y[3]!==w?(r=()=>Lp(A,w),y[2]=A,y[3]=w,y[4]=r):r=y[4];let[T,M]=(0,c0.useState)(r),[L,I]=(0,c0.useState)(!1),N=(0,c0.useRef)(null),F=(0,c0.useRef)(null);y[5]!==A||y[6]!==w?(n=()=>{M(Lp(A,w))},i=[w,A],y[5]=A,y[6]=w,y[7]=n,y[8]=i):(n=y[7],i=y[8]),(0,c0.useEffect)(n,i),y[9]!==x||y[10]!==T?(a=()=>{x&&T>=0&&F.current&&F.current.scrollIntoView({block:"nearest"})},l=[x,T],y[9]=x,y[10]=T,y[11]=a,y[12]=l):(a=y[11],l=y[12]),(0,c0.useEffect)(a,l),y[13]!==A||y[14]!==k||y[15]!==E||y[16]!==T?(o=e=>{switch(e.stopPropagation(),e.key){case"ArrowUp":e.preventDefault(),I(!0),M(e=>e<=0?A.length-1:e-1);break;case"ArrowDown":e.preventDefault(),I(!0),M(e=>e<0||e>=A.length-1?0:e+1);break;case"Enter":e.preventDefault(),T>=0&&A[T]&&(E(A[T]),k());break;case"Escape":e.preventDefault(),k()}},y[13]=A,y[14]=k,y[15]=E,y[16]=T,y[17]=o):o=y[17];let R=o;y[18]!==R?(s=()=>({handleKeyDown:R}),c=[R],y[18]=R,y[19]=s,y[20]=c):(s=y[19],c=y[20]),(0,c0.useImperativeHandle)(b,s,c),y[21]!==k||y[22]!==E?(d=e=>{E(e),k()},y[21]=k,y[22]=E,y[23]=d):d=y[23];let V=d;y[24]!==L?(u=()=>{L&&I(!1)},y[24]=L,y[25]=u):u=y[25];let _=u;return x?(y[26]===Symbol.for("react.memo_cache_sentinel")?(h=(0,m2.cn)(SE.Zv,"absolute left-1/2 -translate-x-1/2 top-full mt-4 z-50","h-240 min-w-full p-0"),y[26]=h):h=y[26],y[27]!==A||y[28]!==V||y[29]!==D||y[30]!==L||y[31]!==T||y[32]!==w?(p=A.map((e,t)=>{let r=t===T,n=!!w&&e.hour===w.hour&&e.minute===w.minute;return(0,eB.FD)("button",{ref:r?F:void 0,type:"button",className:(0,m2.cn)((0,SE.OZ)({variant:"default"}),"gap-4",n&&!r&&"bg-states-primary-active",r&&"bg-states-primary-hover",L&&!r&&"hover:!bg-transparent focus:!bg-transparent"),onClick:()=>V(e),onMouseDown:Lg,role:"option","aria-selected":n,children:[(0,eB.Y)("span",{className:"flex-1 text-left whitespace-nowrap",children:((e,t)=>{let r=e.minute.toString().padStart(2,"0");if(12===t){let t=e.hour;return`${(0===t?12:t>12?t-12:t).toString().padStart(2,"0")}:${r} ${t>=12?"PM":"AM"}`}return`${e.hour.toString().padStart(2,"0")}:${r}`})(e,D)}),(0,eB.Y)("div",{className:"size-20 flex items-center justify-center shrink-0 text-icon-primary",children:n&&(0,eB.Y)(t4,{className:"size-16"})})]},`${e.hour}:${e.minute}`)}),y[27]=A,y[28]=V,y[29]=D,y[30]=L,y[31]=T,y[32]=w,y[33]=p):p=y[33],y[34]!==p?(f=(0,eB.Y)(Sv,{children:(0,eB.Y)(Sy,{className:"flex flex-col gap-1 p-8",children:p})}),y[34]=p,y[35]=f):f=y[35],y[36]===Symbol.for("react.memo_cache_sentinel")?(m=(0,eB.Y)(SO,{}),g=(0,eB.Y)(Sw,{}),y[36]=m,y[37]=g):(m=y[36],g=y[37]),y[38]!==f?(C=(0,eB.FD)(SS,{children:[f,m,g]}),y[38]=f,y[39]=C):C=y[39],y[40]!==R||y[41]!==_||y[42]!==C?(v=(0,eB.Y)("div",{className:h,onMouseDown:Lm,onMouseMove:_,onKeyDown:R,role:"listbox","aria-label":"Time selection",ref:N,children:C}),y[40]=R,y[41]=_,y[42]=C,y[43]=v):v=y[43],v):null},"TimeDropdown");function Lm(e){return e.preventDefault()}function Lg(e){return e.preventDefault()}Lf.displayName="TimeDropdown";let LC=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(5),{onClick:a,disabled:l}=e,o=void 0!==l&&l;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("inline-flex items-center justify-center","icon-md text-icon-primary","bg-transparent p-0 border-0","cursor-pointer","disabled:opacity-50 disabled:cursor-not-allowed","outline-none focus-visible:ring-3 focus-visible:ring-focus-primary rounded-4"),r=(0,eB.Y)(cN.X,{size:"md"}),i[0]=t,i[1]=r):(t=i[0],r=i[1]),i[2]!==o||i[3]!==a?(n=(0,eB.Y)("button",{type:"button",onClick:a,disabled:o,"aria-label":"Clear",className:t,children:r}),i[2]=o,i[3]=a,i[4]=n):n=i[4],n},"TemporalClear");function Lv(e){let t=hG(hK());return new pG(t.year,t.month,t.day,e.hour,e.minute,0)}let Ly=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w,S,E,k,P,D,A,T,M=(0,ej.c)(79);M[0]!==e?({state:u,icon:t,error:n,disabled:r,readOnly:o,placeholder:a,showTimeDropdown:c,timeStep:h,hourCycle:i,size:d,ref:s,...l}=e,M[0]=e,M[1]=t,M[2]=r,M[3]=n,M[4]=i,M[5]=a,M[6]=l,M[7]=o,M[8]=s,M[9]=c,M[10]=d,M[11]=u,M[12]=h):(t=M[1],r=M[2],n=M[3],i=M[4],a=M[5],l=M[6],o=M[7],s=M[8],c=M[9],d=M[10],u=M[11],h=M[12]);let L=m5("input-group"),I=(0,c0.useRef)(null),[N,F]=(0,c0.useState)(!1),[R,V]=(0,c0.useState)(!1);M[13]!==u.segments?(p=u.segments.some(Lb),M[13]=u.segments,M[14]=p):p=M[14];let _=p,Y=!!a&&!_&&!N;M[15]!==u.segments?(f=u.segments.some(Lx),M[15]=u.segments,M[16]=f):f=M[16];let $=f;M[17]!==u.segments?(m=u.segments.some(LO),M[17]=u.segments,M[18]=m):m=M[18];let H=m;M[19]!==u?(g=()=>{u.setValue(null)},M[19]=u,M[20]=g):g=M[20];let z=g;M[21]!==$||M[22]!==c?(C=()=>{F(!0),c&&$&&V(!0)},M[21]=$,M[22]=c,M[23]=C):C=M[23];let Z=C;M[24]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{F(!1),V(!1)},M[24]=v):v=M[24];let Q=v;M[25]!==H||M[26]!==u?(y=e=>{if(H){let t=u,r=t.value,n=r&&"hour"in r?r.set({hour:e.hour,minute:e.minute,second:0,millisecond:0}):Lv(e);t.setValue(n);return}u.setValue(Lv(e))},M[25]=H,M[26]=u,M[27]=y):y=M[27];let B=y,j=!!c;M[28]===Symbol.for("react.memo_cache_sentinel")?(b=()=>V(!0),M[28]=b):b=M[28],M[29]!==R||M[30]!==j?(x={enabled:j,isOpen:R,dropdownRef:I,onOpen:b},M[29]=R,M[30]=j,M[31]=x):x=M[31];let G=MG(x),U=null!==u.value&&$?u.value:null;M[32]!==t?(O=t&&(0,eB.Y)(SA,{children:(0,eB.Y)(t,{})}),M[32]=t,M[33]=O):O=M[33];let W=!t&&"pl-12";M[34]!==W?(w=(0,m2.cn)("relative flex-1 h-full",W),M[34]=W,M[35]=w):w=M[35],M[36]!==t||M[37]!==a||M[38]!==Y?(S=Y&&a&&(0,eB.Y)(MU,{text:a,className:(0,m2.cn)(!t&&"pl-12")}),M[36]=t,M[37]=a,M[38]=Y,M[39]=S):S=M[39];let q=Y&&"opacity-0",X=o&&"cursor-not-allowed";M[40]!==q||M[41]!==X?(E=(0,m2.cn)("h-full",q,X),M[40]=q,M[41]=X,M[42]=E):E=M[42];let K=n||void 0,J=r||void 0,ee=o||void 0;return M[43]!==r||M[44]!==Z||M[45]!==l||M[46]!==o||M[47]!==s||M[48]!==u||M[49]!==E||M[50]!==K||M[51]!==J||M[52]!==ee?(k=(0,eB.Y)(Lh,{...l,ref:s,"data-slot":"input",className:E,"aria-invalid":K,"aria-disabled":J,"data-readonly":ee,state:u,disabled:r,readOnly:o,onFocus:Z,onBlur:Q}),M[43]=r,M[44]=Z,M[45]=l,M[46]=o,M[47]=s,M[48]=u,M[49]=E,M[50]=K,M[51]=J,M[52]=ee,M[53]=k):k=M[53],M[54]!==U||M[55]!==B||M[56]!==$||M[57]!==i||M[58]!==R||M[59]!==c||M[60]!==h?(P=c&&$&&(0,eB.Y)(Lf,{ref:I,isOpen:R,timeStep:h,hourCycle:i,value:U,onSelect:B,onClose:()=>V(!1)}),M[54]=U,M[55]=B,M[56]=$,M[57]=i,M[58]=R,M[59]=c,M[60]=h,M[61]=P):P=M[61],M[62]!==G||M[63]!==w||M[64]!==S||M[65]!==k||M[66]!==P?(D=(0,eB.FD)("div",{className:w,onKeyDownCapture:G,children:[S,k,P]}),M[62]=G,M[63]=w,M[64]=S,M[65]=k,M[66]=P,M[67]=D):D=M[67],M[68]!==r||M[69]!==z||M[70]!==_||M[71]!==o?(A=_&&!o&&(0,eB.Y)(SA,{align:"inline-end",children:(0,eB.Y)(LC,{onClick:z,disabled:r})}),M[68]=r,M[69]=z,M[70]=_,M[71]=o,M[72]=A):A=M[72],M[73]!==d||M[74]!==O||M[75]!==D||M[76]!==A||M[77]!==L?(T=(0,eB.FD)(SL,{size:d,"data-testid":L,children:[O,D,A]}),M[73]=d,M[74]=O,M[75]=D,M[76]=A,M[77]=L,M[78]=T):T=M[78],T},"DateInputInternal");function Lb(e){return e.isEditable&&!e.isPlaceholder}function Lx(e){return"hour"===e.type||"minute"===e.type}function LO(e){return"year"===e.type||"month"===e.type||"day"===e.type}Ly.displayName="DateInputInternal";let Lw=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(47),{"data-testid":c,showIcon:d,value:u,defaultValue:h,onChange:p,error:f,disabled:m,readOnly:g,isRequired:C,granularity:v,showTimeDropdown:y,timeStep:b,placeholder:x,size:O,minValue:w,maxValue:S,placeholderValue:E,name:k,autoFocus:P,ref:D,...A}=e,T=void 0!==f&&f,M=void 0!==m&&m,L=void 0!==g&&g,I=void 0===v?"day":v,N=void 0===b?30:b,F=void 0===O?"default":O;s[0]!==I||s[1]!==x?(t=x??MQ({granularity:I}),s[0]=I,s[1]=x,s[2]=t):t=s[2];let R=t,{hourCycle:V}=M$(),{locale:_}=TE(),Y=(0,c0.useRef)(null);s[3]!==u||s[4]!==h||s[5]!==M||s[6]!==T||s[7]!==I||s[8]!==C||s[9]!==_||s[10]!==S||s[11]!==w||s[12]!==p||s[13]!==E||s[14]!==L||s[15]!==V?(r={value:u,defaultValue:h,onChange:p,minValue:w,maxValue:S,placeholderValue:E,isRequired:C,locale:_,isDisabled:M,isInvalid:T,isReadOnly:L,granularity:I,hourCycle:V,createCalendar:At,shouldForceLeadingZeros:!0},s[3]=u,s[4]=h,s[5]=M,s[6]=T,s[7]=I,s[8]=C,s[9]=_,s[10]=S,s[11]=w,s[12]=p,s[13]=E,s[14]=L,s[15]=V,s[16]=r):r=s[16];let $=MV(r);s[17]!==P||s[18]!==M||s[19]!==T||s[20]!==C||s[21]!==k||s[22]!==L?(n={name:k,autoFocus:P,isDisabled:M,isInvalid:T,isReadOnly:L,isRequired:C},s[17]=P,s[18]=M,s[19]=T,s[20]=C,s[21]=k,s[22]=L,s[23]=n):n=s[23];let{fieldProps:H}=Mr(n,$,Y),z=(0,m2.cn)("min-w-256 flex-1",A.className),Z=void 0===d||d?t_:void 0;return s[24]!==D?(i=(0,b8.t)(Y,D),s[24]=D,s[25]=i):i=s[25],s[26]!==M||s[27]!==T||s[28]!==H||s[29]!==L||s[30]!==V||s[31]!==R||s[32]!==y||s[33]!==F||s[34]!==$||s[35]!==Z||s[36]!==i||s[37]!==N?(a=(0,eB.Y)(Ly,{...H,icon:Z,ref:i,state:$,error:T,disabled:M,readOnly:L,placeholder:R,showTimeDropdown:y,timeStep:N,hourCycle:V,size:F}),s[26]=M,s[27]=T,s[28]=H,s[29]=L,s[30]=V,s[31]=R,s[32]=y,s[33]=F,s[34]=$,s[35]=Z,s[36]=i,s[37]=N,s[38]=a):a=s[38],s[39]!==a||s[40]!==c?(l=(0,eB.Y)(m3,{value:c,children:a}),s[39]=a,s[40]=c,s[41]=l):l=s[41],s[42]!==z||s[43]!==l||s[44]!==c||s[45]!==A?(o=(0,eB.Y)("div",{...A,"data-slot":"date-input","data-testid":c,className:z,children:l}),s[42]=z,s[43]=l,s[44]=c,s[45]=A,s[46]=o):o=s[46],o},"DateInput");Lw.displayName="DateInput";let LS=(0,eQ.G)(({api:e,readonly:t,showTime:r,timeRef:n,commitValue:i})=>{let[,a]=(0,c0.useReducer)(e=>e+1,0),l=(0,c0.useCallback)(t=>{let r=t||void 0;r?e.setValue([r]):e.clearValue()},[e]),o=(0,c0.useCallback)(t=>{let r;if(t&&"hour"in t&&n&&(n.current={hour:t.hour,minute:t.minute}),t&&(r=e.value[0],r&&t&&r.year===t.year&&r.month===t.month&&r.day===t.day)){let e=t||void 0;e&&i?.([e]),a()}else l(t)},[e,l,n,i]),s=e.value[0]||null,c=n?.current??{hour:0,minute:0},d=s&&Do(s,c)||null;return(0,eB.Y)("div",{className:"flex flex-1",onKeyDown:e=>e.stopPropagation(),children:r?(0,eB.Y)(Lw,{value:d,onChange:o,readOnly:t,granularity:"minute",showTimeDropdown:!0,showIcon:!1}):(0,eB.Y)(Lw,{value:s,onChange:l,readOnly:t,granularity:"day",showIcon:!1})})},"SingleDateInputInner"),LE=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(20),{api:d,readonly:u}=e;c[0]!==d?(t=e=>{let t=e||void 0,r=d.value[1];t&&r?d.setValue([t,r]):t?d.setValue([t]):r?d.setValue([r]):d.clearValue()},c[0]=d,c[1]=t):t=c[1];let h=t;c[2]!==d?(r=e=>{let t=e||void 0,r=d.value[0];t&&r?d.setValue([r,t]):t?d.setValue([t]):r?d.setValue([r]):d.clearValue()},c[2]=d,c[3]=r):r=c[3];let p=r;if(c[4]!==d.value[0])n=d.value[0]||null,c[4]=d.value[0],c[5]=n;else n=c[5];let f=n;if(c[6]!==d.value[1])i=d.value[1]||null,c[6]=d.value[1],c[7]=i;else i=c[7];let m=i;return c[8]!==h||c[9]!==u||c[10]!==f?(a=(0,eB.Y)(Lw,{value:f,onChange:h,readOnly:u,granularity:"day",showIcon:!1}),c[8]=h,c[9]=u,c[10]=f,c[11]=a):a=c[11],c[12]===Symbol.for("react.memo_cache_sentinel")?(l=(0,eB.Y)("span",{className:"flex items-center justify-center shrink-0 basis-20 font-sans text-sm leading-sm text-text-secondary","aria-hidden":"true",children:"→"}),c[12]=l):l=c[12],c[13]!==m||c[14]!==p||c[15]!==u?(o=(0,eB.Y)(Lw,{value:m,onChange:p,readOnly:u,granularity:"day",showIcon:!1}),c[13]=m,c[14]=p,c[15]=u,c[16]=o):o=c[16],c[17]!==a||c[18]!==o?(s=(0,eB.FD)("div",{className:"relative flex flex-1 items-center gap-4",onKeyDown:LP,children:[a,l,o]}),c[17]=a,c[18]=o,c[19]=s):s=c[19],s},"RangeDateInputInner"),Lk=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(11),{className:a}=e,{isRange:l,readonly:o,showTime:s,timeRef:c,commitValue:d}=Da();return i[0]!==a?(t=(0,m2.cn)("flex flex-1 items-center","pt-20 pb-4 px-20",a),i[0]=a,i[1]=t):t=i[1],i[2]!==d||i[3]!==l||i[4]!==o||i[5]!==s||i[6]!==c?(r=(0,eB.Y)(Dr.Context,{children:e=>l?(0,eB.Y)(LE,{api:e,readonly:o}):(0,eB.Y)(LS,{api:e,readonly:o,showTime:s,timeRef:c,commitValue:d})}),i[2]=d,i[3]=l,i[4]=o,i[5]=s,i[6]=c,i[7]=r):r=i[7],i[8]!==t||i[9]!==r?(n=(0,eB.Y)("div",{className:t,children:r}),i[8]=t,i[9]=r,i[10]=n):n=i[10],n},"CalendarInputHeader");function LP(e){return e.stopPropagation()}Lk.displayName="CalendarInputHeader";let LD=(0,m9.F)((0,m2.cn)("inline-flex items-center justify-center gap-1 w-fit","border border-component-border-hotkey rounded-4 bg-bg-surface-2","font-sans font-medium","text-text-primary text-xs","pointer-events-none select-none"),{variants:{size:{xsmall:"h-16 min-w-20 p-2",small:"h-20 min-w-20 p-4",medium:"h-24 min-w-24 p-6"}}}),LA=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(8);a[0]!==e?({size:r,...t}=e,a[0]=e,a[1]=t,a[2]=r):(t=a[1],r=a[2]);let l=void 0===r?"small":r;return a[3]!==l?(n=(0,m2.cn)(LD({size:l})),a[3]=l,a[4]=n):n=a[4],a[5]!==t||a[6]!==n?(i=(0,eB.Y)("kbd",{...t,"data-slot":"kbd",className:n}),a[5]=t,a[6]=n,a[7]=i):i=a[7],i},"Kbd");LA.displayName="Kbd";let LT=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(8),{ref:o,className:s}=e;return l[0]!==s?(t=(0,m2.cn)("flex items-center gap-12",s),l[0]=s,l[1]=t):t=l[1],l[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,eB.FD)("div",{className:"flex items-center gap-4",children:[(0,eB.FD)("div",{className:"flex items-center gap-2",children:[(0,eB.Y)(LA,{size:"small",children:"←"}),(0,eB.Y)(LA,{size:"small",children:"↑"}),(0,eB.Y)(LA,{size:"small",children:"↓"}),(0,eB.Y)(LA,{size:"small",children:"→"})]}),(0,eB.Y)("span",{className:"font-sans font-medium text-xs text-text-secondary",children:"to navigate"})]}),l[2]=r):r=l[2],l[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,eB.FD)("div",{className:"flex items-center gap-4",children:[(0,eB.Y)(LA,{size:"small",children:"Enter"}),(0,eB.Y)("span",{className:"font-sans font-medium text-xs text-text-secondary",children:"to select"})]}),l[3]=n):n=l[3],l[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,eB.FD)("div",{className:"flex items-center gap-4",children:[(0,eB.Y)(LA,{size:"small",children:"ESC"}),(0,eB.Y)("span",{className:"font-sans font-medium text-xs text-text-secondary",children:"to close"})]}),l[4]=i):i=l[4],l[5]!==o||l[6]!==t?(a=(0,eB.FD)("div",{ref:o,className:t,children:[r,n,i]}),l[5]=o,l[6]=t,l[7]=a):a=l[7],a},"CalendarKeyboardHints");LT.displayName="CalendarKeyboardHints";let LM=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(18);d[0]!==e?({label:i,value:s,shortcut:l,showShortcut:o,onClick:n,className:t,disabled:r,...a}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=n,d[4]=i,d[5]=a,d[6]=l,d[7]=o,d[8]=s):(t=d[1],r=d[2],n=d[3],i=d[4],a=d[5],l=d[6],o=d[7],s=d[8]);let u=void 0===o||o,{readonly:h}=Da(),p=h||r;return d[9]!==t||d[10]!==n||d[11]!==p||d[12]!==i||d[13]!==a||d[14]!==l||d[15]!==u||d[16]!==s?(c=(0,eB.Y)(Dr.Context,{children:e=>(0,eB.FD)("button",{...a,type:"button",disabled:p,onClick:t=>{if(!p){if("string"==typeof s){let t=e.getRangePresetValue(s);e.setValue(t)}else e.setValue(s);n?.(t)}},className:(0,m2.cn)("flex items-center justify-between","w-full px-8 py-6 rounded-6","font-sans font-normal text-sm leading-sm text-text-primary","select-none","transition-colors","outline-none focus-visible:ring-3 focus-visible:ring-focus-primary",p?"cursor-default opacity-50":"cursor-pointer hover:bg-states-primary-hover active:bg-states-primary-pressed",t),children:[(0,eB.Y)("span",{children:i}),u&&l&&(0,eB.Y)("span",{className:(0,m2.cn)("flex items-center justify-center","min-w-20 h-20 px-4","font-mono font-normal text-xs leading-xs","border border-component-border-hotkey rounded-4","bg-bg-surface-2"),children:l})]})}),d[9]=t,d[10]=n,d[11]=p,d[12]=i,d[13]=a,d[14]=l,d[15]=u,d[16]=s,d[17]=c):c=d[17],c},"CalendarPresetItem");LM.displayName="CalendarPresetItem";let LL=e=>{let t,r,n=(0,ej.c)(4),{presets:i,api:a}=e;return n[0]!==a||n[1]!==i?(t=()=>{let e=e=>{if(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let t=e.key.toUpperCase(),r=i.find(e=>e.shortcut?.toUpperCase()===t);if(r)if("string"==typeof r.value){let e=a.getRangePresetValue(r.value);a.setValue(e)}else a.setValue(r.value)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},r=[a,i],n[0]=a,n[1]=i,n[2]=t,n[3]=r):(t=n[2],r=n[3]),(0,c0.useEffect)(t,r),null},LI=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(17),{children:c,presets:d,showShortcuts:u,className:h}=e,p=void 0===u||u,{isRange:f}=Da(),m=d??(c?void 0:f?Dd:Dc);return s[0]!==h?(t=(0,m2.cn)("flex flex-col","w-182 py-4 px-4","border-r border-border-primary-light",h),s[0]=h,s[1]=t):t=s[1],s[2]!==m?(r=m&&(0,eB.Y)(Dr.Context,{children:e=>(0,eB.Y)(LL,{presets:m,api:e})}),s[2]=m,s[3]=r):r=s[3],s[4]!==c||s[5]!==m||s[6]!==p?(n=c??m?.map(e=>(0,eB.Y)(LM,{label:e.label,value:e.value,shortcut:e.shortcut,showShortcut:p},e.label)),s[4]=c,s[5]=m,s[6]=p,s[7]=n):n=s[7],s[8]!==n?(i=(0,eB.Y)(Sv,{children:(0,eB.Y)(Sy,{className:"px-4 py-4",children:(0,eB.Y)("div",{className:"flex flex-col gap-1",children:n})})}),s[8]=n,s[9]=i):i=s[9],s[10]===Symbol.for("react.memo_cache_sentinel")?(a=(0,eB.Y)(SO,{}),s[10]=a):a=s[10],s[11]!==i?(l=(0,eB.FD)(SS,{children:[i,a]}),s[11]=i,s[12]=l):l=s[12],s[13]!==t||s[14]!==r||s[15]!==l?(o=(0,eB.FD)("div",{className:t,children:[r,l]}),s[13]=t,s[14]=r,s[15]=l,s[16]=o):o=s[16],o},"CalendarPresets");LI.displayName="CalendarPresets";let LN=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(16);c[0]!==e?({ref:n,onClick:t,children:i,variant:a,color:l,size:o,...r}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=i,c[5]=a,c[6]=l,c[7]=o):(t=c[1],r=c[2],n=c[3],i=c[4],a=c[5],l=c[6],o=c[7]);let d=void 0===i?"Reset":i,u=void 0===a?"ghost":a,h=void 0===l?"neutral":l,p=void 0===o?"small":o;return c[8]!==d||c[9]!==h||c[10]!==t||c[11]!==r||c[12]!==n||c[13]!==p||c[14]!==u?(s=(0,eB.Y)(Dr.Context,{children:e=>(0,eB.Y)(vn.$,{ref:n,variant:u,color:h,size:p,onClick:()=>{e.clearValue(),t?.()},...r,children:d})}),c[8]=d,c[9]=h,c[10]=t,c[11]=r,c[12]=n,c[13]=p,c[14]=u,c[15]=s):s=c[15],s},"CalendarResetButton");LN.displayName="CalendarResetButton";let LF=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(10);l[0]!==e?({children:t,asChild:i,ref:r,...n}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=n,l[4]=i):(t=l[1],r=l[2],n=l[3],i=l[4]);let o=void 0===i||i;return l[5]!==o||l[6]!==t||l[7]!==r||l[8]!==n?(a=(0,eB.Y)(Dr.Control,{children:(0,eB.Y)(Dr.Trigger,{...n,ref:r,asChild:o,children:t})}),l[5]=o,l[6]=t,l[7]=r,l[8]=n,l[9]=a):a=l[9],a},"CalendarTrigger");LF.displayName="CalendarTrigger";let LR=(0,m9.F)("flex flex-col gap-8 rounded-8 border-1 shadow-sm min-w-[240px] overflow-hidden py-16 transition-colors duration-200 h-full text-sm",{variants:{color:{primary:"bg-bg-surface-1 border-border-primary-light",secondary:"bg-bg-light-primary border-border-primary-light"},interactive:{true:["cursor-pointer overlay","hover:not-disabled:overlay-states-primary-hover","[&:active:not(:has(a:active,button:active,input:active,select:active,textarea:active))]:not-disabled:overlay-states-primary-pressed","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-primary"],false:""},disabled:{true:"opacity-50 pointer-events-none cursor-not-allowed",false:""}},defaultVariants:{color:"primary",interactive:!1,disabled:!1}}),LV=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f=(0,ej.c)(31);f[0]!==e?({ref:i,color:a,asChild:l,disabled:o,className:r,children:t,"data-testid":s,...n}=e,f[0]=e,f[1]=t,f[2]=r,f[3]=n,f[4]=i,f[5]=a,f[6]=l,f[7]=o,f[8]=s):(t=f[1],r=f[2],n=f[3],i=f[4],a=f[5],l=f[6],o=f[7],s=f[8]);let m=void 0===a?"primary":a,g=void 0!==o&&o,C=void 0!==l&&l?Ew.DX:"div";f[9]!==n?(c=Object.keys(n).some(e=>e.startsWith("on")&&"function"==typeof n[e]),f[9]=n,f[10]=c):c=f[10];let v=c;f[11]!==n?(d=e=>{if(!n.onClick)return;let t=e.target,r=e.currentTarget,i=t.closest("[data-ds-suppress-parent-click]");i&&r.contains(i)||(t===r||t.closest("a[href],button,input,select,textarea,[tabindex]")===r)&&n.onClick(e)},f[11]=n,f[12]=d):d=f[12];let y=d,b=v&&!g?0:void 0,x=g||void 0,O=g?void 0:y;return f[13]!==r||f[14]!==m||f[15]!==g||f[16]!==v?(u=(0,m2.cn)(LR({color:m,interactive:v,disabled:g}),r),f[13]=r,f[14]=m,f[15]=g,f[16]=v,f[17]=u):u=f[17],f[18]!==C||f[19]!==t||f[20]!==n||f[21]!==i||f[22]!==b||f[23]!==x||f[24]!==O||f[25]!==u||f[26]!==s?(h=(0,eB.Y)(C,{...n,ref:i,"data-slot":"card","data-testid":s,tabIndex:b,"aria-disabled":x,onClick:O,className:u,children:t}),f[18]=C,f[19]=t,f[20]=n,f[21]=i,f[22]=b,f[23]=x,f[24]=O,f[25]=u,f[26]=s,f[27]=h):h=f[27],f[28]!==h||f[29]!==s?(p=(0,eB.Y)(m3,{value:s,children:h}),f[28]=h,f[29]=s,f[30]=p):p=f[30],p},"Card");LV.displayName="Card";let L_=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(15);s[0]!==e?({ref:i,asChild:a,className:r,children:t,...n}=e,s[0]=e,s[1]=t,s[2]=r,s[3]=n,s[4]=i,s[5]=a):(t=s[1],r=s[2],n=s[3],i=s[4],a=s[5]);let c=void 0!==a&&a?Ew.DX:"div",d=m5("content");return s[6]!==r?(l=(0,m2.cn)("px-16 text-md",r),s[6]=r,s[7]=l):l=s[7],s[8]!==c||s[9]!==t||s[10]!==n||s[11]!==i||s[12]!==l||s[13]!==d?(o=(0,eB.Y)(c,{...n,ref:i,"data-slot":"card-content","data-testid":d,className:l,children:t}),s[8]=c,s[9]=t,s[10]=n,s[11]=i,s[12]=l,s[13]=d,s[14]=o):o=s[14],o},"CardContent");L_.displayName="CardContent";let LY=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(16);s[0]!==e?({ref:i,asChild:a,className:r,children:t,...n}=e,s[0]=e,s[1]=t,s[2]=r,s[3]=n,s[4]=i,s[5]=a):(t=s[1],r=s[2],n=s[3],i=s[4],a=s[5]);let c=void 0!==a&&a?Ew.DX:"div",d=m5("footer"),u=c0.Children.count(t)>1?"justify-between":"justify-end";return s[6]!==r||s[7]!==u?(l=(0,m2.cn)("mt-auto flex items-center gap-12 px-16",u,r),s[6]=r,s[7]=u,s[8]=l):l=s[8],s[9]!==c||s[10]!==t||s[11]!==n||s[12]!==i||s[13]!==l||s[14]!==d?(o=(0,eB.Y)(c,{...n,ref:i,"data-slot":"card-footer","data-testid":d,className:l,children:t}),s[9]=c,s[10]=t,s[11]=n,s[12]=i,s[13]=l,s[14]=d,s[15]=o):o=s[15],o},"CardFooter");LY.displayName="CardFooter";let L$=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(15);s[0]!==e?({ref:i,asChild:a,className:r,children:t,...n}=e,s[0]=e,s[1]=t,s[2]=r,s[3]=n,s[4]=i,s[5]=a):(t=s[1],r=s[2],n=s[3],i=s[4],a=s[5]);let c=void 0!==a&&a?Ew.DX:"div",d=m5("header");return s[6]!==r?(l=(0,m2.cn)("flex items-center justify-between gap-8 px-16 text-base",r),s[6]=r,s[7]=l):l=s[7],s[8]!==c||s[9]!==t||s[10]!==n||s[11]!==i||s[12]!==l||s[13]!==d?(o=(0,eB.Y)(c,{...n,ref:i,"data-slot":"card-header","data-testid":d,className:l,children:t}),s[8]=c,s[9]=t,s[10]=n,s[11]=i,s[12]=l,s[13]=d,s[14]=o):o=s[14],o},"CardHeader");L$.displayName="CardHeader";let LH=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(19);d[0]!==e?({ref:a,icon:n,className:r,children:t,...i}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=n,d[4]=i,d[5]=a):(t=d[1],r=d[2],n=d[3],i=d[4],a=d[5]);let u=m5("title");return d[6]!==r?(l=(0,m2.cn)("flex items-center gap-8",r),d[6]=r,d[7]=l):l=d[7],d[8]!==n?(o=n&&(0,eB.Y)("span",{className:"shrink-0",children:n}),d[8]=n,d[9]=o):o=d[9],d[10]!==t?(s=(0,eB.Y)(bk.E,{size:"md",weight:"medium",color:"primary",children:t}),d[10]=t,d[11]=s):s=d[11],d[12]!==i||d[13]!==a||d[14]!==l||d[15]!==o||d[16]!==s||d[17]!==u?(c=(0,eB.FD)("div",{...i,ref:a,"data-slot":"card-title","data-testid":u,className:l,children:[o,s]}),d[12]=i,d[13]=a,d[14]=l,d[15]=o,d[16]=s,d[17]=u,d[18]=c):c=d[18],c},"CardTitle");LH.displayName="CardTitle";let Lz=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(17);c[0]!==e?({ref:i,className:r,children:t,"data-testid":a,...n}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=i,c[5]=a):(t=c[1],r=c[2],n=c[3],i=c[4],a=c[5]);let d=m5("chain-of-thought",a);return c[6]!==r?(l=(0,m2.cn)(xM(),r),c[6]=r,c[7]=l):l=c[7],c[8]!==t||c[9]!==d?(o=(0,eB.Y)(m3,{value:d,children:t}),c[8]=t,c[9]=d,c[10]=o):o=c[10],c[11]!==n||c[12]!==i||c[13]!==l||c[14]!==o||c[15]!==d?(s=(0,eB.Y)("ol",{...n,ref:i,"data-slot":"chain-of-thought","data-testid":d,role:"list",className:l,children:o}),c[11]=n,c[12]=i,c[13]=l,c[14]=o,c[15]=d,c[16]=s):s=c[16],s},"ChainOfThought");Lz.displayName="ChainOfThought";let LZ=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(19);d[0]!==e?({ref:a,open:n,children:t,className:r,inertWhenClosed:l,...i}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=n,d[4]=i,d[5]=a,d[6]=l):(t=d[1],r=d[2],n=d[3],i=d[4],a=d[5],l=d[6]);let u=void 0!==l&&l,h=n?"open":"closed",p=n?"grid-rows-[1fr]":"grid-rows-[0fr]";d[7]!==r||d[8]!==p?(o=(0,m2.cn)("grid transition-[grid-template-rows] duration-[220ms] ease-[cubic-bezier(0.4,0,0.2,1)] motion-reduce:transition-none",p,r),d[7]=r,d[8]=p,d[9]=o):o=d[9];let f=!!u&&!n||void 0;return d[10]!==t||d[11]!==f?(s=(0,eB.Y)("div",{className:"overflow-hidden",inert:f,children:t}),d[10]=t,d[11]=f,d[12]=s):s=d[12],d[13]!==i||d[14]!==a||d[15]!==h||d[16]!==o||d[17]!==s?(c=(0,eB.Y)("div",{ref:a,"data-state":h,className:o,...i,children:s}),d[13]=i,d[14]=a,d[15]=h,d[16]=o,d[17]=s,d[18]=c):c=d[18],c},"Collapse");LZ.displayName="Collapse";let LQ=(0,eB.Y)(rD,{}),LB=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w,S,E,k,P,D,A=(0,ej.c)(81);A[0]!==e?({ref:c,label:n,icon:d,metric:i,status:u,open:o,defaultOpen:h,onOpenChange:l,children:t,className:r,onClick:a,"data-testid":p,...s}=e,A[0]=e,A[1]=t,A[2]=r,A[3]=n,A[4]=i,A[5]=a,A[6]=l,A[7]=o,A[8]=s,A[9]=c,A[10]=d,A[11]=u,A[12]=h,A[13]=p):(t=A[1],r=A[2],n=A[3],i=A[4],a=A[5],l=A[6],o=A[7],s=A[8],c=A[9],d=A[10],u=A[11],h=A[12],p=A[13]);let T=void 0===d?LQ:d,M=void 0===u?"done":u,L=void 0!==h&&h,I=m5("step",p),N=(0,c0.useId)(),[F,R]=(0,c0.useState)(L),[V]=(0,c0.useState)("running"===M),[_,Y]=(0,c0.useState)(!1),$=V&&!(_&&"done"===M);A[14]!==M?(f=e=>{"done"===M&&e.target===e.currentTarget&&e.propertyName.endsWith("text-fill-color")&&Y(!0)},A[14]=M,A[15]=f):f=A[15];let H=f,z=o??F,Z=null!=t&&!1!==t,Q=null!==T;A[16]!==z||A[17]!==a||A[18]!==l||A[19]!==o?(m=e=>{a?.(e),e.defaultPrevented||(void 0===o&&R(!z),l?.(!z))},A[16]=z,A[17]=a,A[18]=l,A[19]=o,A[20]=m):m=A[20];let B=m,j=Q&&!(Z&&z);A[21]!==Z||A[22]!==T||A[23]!==z||A[24]!==j||A[25]!==M||A[26]!==I?(g=(j||Z)&&(0,eB.FD)("span",{className:(0,m2.cn)(xN({status:M})),"data-testid":I&&`${I}--icon`,children:[j&&(0,eB.Y)("span",{className:(0,m2.cn)("inline-flex",Z&&"group-hover/row:hidden group-focus-visible/row:hidden"),children:T}),Z&&(0,eB.Y)("span",{className:(0,m2.cn)("inline-flex transition-transform motion-reduce:transition-none",!z&&"-rotate-90",j&&"hidden group-hover/row:inline-flex group-focus-visible/row:inline-flex"),children:(0,eB.Y)(t6.y,{})})]}),A[21]=Z,A[22]=T,A[23]=z,A[24]=j,A[25]=M,A[26]=I,A[27]=g):g=A[27];let G=g;A[28]!==M?(C="error"===M&&(0,eB.Y)("span",{className:"sr-only",children:"Error: "}),A[28]=M,A[29]=C):C=A[29],A[30]!==$||A[31]!==M?(v=xF({status:M,entered:$}),A[30]=$,A[31]=M,A[32]=v):v=A[32];let U=$?H:void 0;A[33]!==n||A[34]!==v||A[35]!==U?(y=(0,eB.Y)("span",{className:v,onTransitionEnd:U,children:n}),A[33]=n,A[34]=v,A[35]=U,A[36]=y):y=A[36],A[37]!==i?(b=null!=i&&(0,eB.Y)("span",{className:xR(),children:i}),A[37]=i,A[38]=b):b=A[38],A[39]!==G||A[40]!==y||A[41]!==b||A[42]!==C?(x=(0,eB.FD)(eB.FK,{children:[G,C,y,b]}),A[39]=G,A[40]=y,A[41]=b,A[42]=C,A[43]=x):x=A[43];let W=x,q=c;A[44]!==r||A[45]!==Z?(O=(0,m2.cn)(xI({interactive:Z}),r),A[44]=r,A[45]=Z,A[46]=O):O=A[46],A[47]!==s||A[48]!==q||A[49]!==O||A[50]!==I?(w={...s,ref:q,"data-slot":"chain-of-thought-step-row","data-testid":I,className:O},A[47]=s,A[48]=q,A[49]=O,A[50]=I,A[51]=w):w=A[51];let X=w,K=V||void 0,J=Z&&z?"open":"closed",ee=!Q;return A[52]!==V||A[53]!==ee?(S=xL({simple:ee,entered:V}),A[52]=V,A[53]=ee,A[54]=S):S=A[54],A[55]!==Z||A[56]!==N||A[57]!==B||A[58]!==z||A[59]!==a||A[60]!==W||A[61]!==X?(E=Z?(0,eB.Y)("button",{...X,type:"button","aria-expanded":z,"aria-controls":N,onClick:B,children:W}):(0,eB.Y)("div",{...X,onClick:a,children:W}),A[55]=Z,A[56]=N,A[57]=B,A[58]=z,A[59]=a,A[60]=W,A[61]=X,A[62]=E):E=A[62],A[63]!==V||A[64]!==j||A[65]!==I?(k=j&&(0,eB.Y)("span",{"aria-hidden":!0,"data-slot":"chain-of-thought-connector","data-testid":I&&`${I}--connector`,className:(0,m2.cn)(xV({entered:V}),"h-20")}),A[63]=V,A[64]=j,A[65]=I,A[66]=k):k=A[66],A[67]!==t||A[68]!==Z||A[69]!==N||A[70]!==z||A[71]!==I?(P=Z&&(0,eB.Y)(LZ,{id:N,open:z,inertWhenClosed:!0,"data-slot":"chain-of-thought-step-content",children:(0,eB.FD)("div",{className:"flex",children:[(0,eB.Y)("span",{"aria-hidden":!0,className:xV()}),(0,eB.Y)("div",{className:x_(),children:(0,eB.Y)(m3,{value:I,children:t})})]})}),A[67]=t,A[68]=Z,A[69]=N,A[70]=z,A[71]=I,A[72]=P):P=A[72],A[73]!==M||A[74]!==K||A[75]!==J||A[76]!==S||A[77]!==E||A[78]!==k||A[79]!==P?(D=(0,eB.FD)("li",{"data-slot":"chain-of-thought-step","data-status":M,"data-entered":K,"data-state":J,className:S,children:[E,k,P]}),A[73]=M,A[74]=K,A[75]=J,A[76]=S,A[77]=E,A[78]=k,A[79]=P,A[80]=D):D=A[80],D},"ChainOfThoughtStep");LB.displayName="ChainOfThoughtStep";let Lj=(0,m9.F)("relative isolate flex h-full min-h-0 flex-col overflow-hidden bg-bg-page-bg"),LG=(0,m9.F)("pointer-events-none absolute inset-0 -z-1",{variants:{background:{strong:"opacity-12",subtle:"opacity-5"}},defaultVariants:{background:"subtle"}}),LU=(0,m9.F)("flex h-48 shrink-0 items-center justify-between gap-8 border-b border-border-primary-light bg-bg-page-bg pl-16 pr-12"),LW=(0,m9.F)("flex min-w-0 items-center"),Lq=(0,m9.F)((0,m2.cn)("flex shrink-0 items-center gap-4","*:data-[orientation=vertical]:mx-2 *:data-[orientation=vertical]:h-16 *:data-[orientation=vertical]:self-center")),LX=(0,m9.F)("flex min-h-0 flex-1 flex-col overflow-y-auto px-16 pt-12 pb-16"),LK=(0,m9.F)("flex shrink-0 flex-col gap-16 px-20 pb-4"),LJ=(0,m9.F)("flex flex-col items-center gap-24 pt-103"),L1=(0,m9.F)("flex flex-col",{variants:{placement:{footer:"items-end gap-8",greeting:"items-center gap-12"}},defaultVariants:{placement:"footer"}}),L2=(0,m9.F)("font-mono text-xs text-text-secondary [font-feature-settings:'liga'_0]"),L0=(0,m9.F)((0,m2.cn)("inline-flex max-w-full shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap","border border-border-primary bg-transparent font-mono font-normal text-text-primary outline-none transition-colors [font-feature-settings:'liga'_0]","not-disabled:hover:border-border-brand not-disabled:hover:bg-bg-light-brand not-disabled:hover:text-text-brand","focus-visible:ring-3 focus-visible:ring-focus-brand","disabled:cursor-not-allowed disabled:opacity-50"),{variants:{size:{md:"h-20 rounded-8 px-8 text-xs",lg:"h-28 rounded-12 px-12 text-sm"}},defaultVariants:{size:"md"}}),L3=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(22);u[0]!==e?({ref:i,background:a,className:r,children:t,"data-testid":l,...n}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a,u[6]=l):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5],l=u[6]);let h=void 0===a?"subtle":a;return u[7]!==r?(o=(0,m2.cn)(Lj(),r),u[7]=r,u[8]=o):o=u[8],u[9]!==h||u[10]!==l?(s="none"!==h&&(0,eB.Y)("div",{"aria-hidden":!0,"data-slot":"chat-background","data-testid":l&&`${l}--background`,className:LG({background:h}),children:(0,eB.Y)(bN,{palette:"chat",className:"size-full [--lg-frame-bg:transparent]"})}),u[9]=h,u[10]=l,u[11]=s):s=u[11],u[12]!==t||u[13]!==l?(c=(0,eB.Y)(m3,{value:l,children:t}),u[12]=t,u[13]=l,u[14]=c):c=u[14],u[15]!==n||u[16]!==i||u[17]!==o||u[18]!==s||u[19]!==c||u[20]!==l?(d=(0,eB.FD)("section",{"aria-label":"Wally chat",...n,ref:i,"data-slot":"chat","data-testid":l,className:o,children:[s,c]}),u[15]=n,u[16]=i,u[17]=o,u[18]=s,u[19]=c,u[20]=l,u[21]=d):d=u[21],d},"Chat");L3.displayName="Chat";let L5=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({ref:n,className:t,"data-testid":i,...r}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("body",i);return o[5]!==t?(a=(0,m2.cn)(LX(),t),o[5]=t,o[6]=a):a=o[6],o[7]!==r||o[8]!==n||o[9]!==a||o[10]!==s?(l=(0,eB.Y)("div",{role:"log","aria-label":"Chat messages",...r,ref:n,"data-slot":"chat-body","data-testid":s,className:a}),o[7]=r,o[8]=n,o[9]=a,o[10]=s,o[11]=l):l=o[11],l},"ChatBody");L5.displayName="ChatBody";let L4=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({ref:n,className:t,"data-testid":i,...r}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("footer",i);return o[5]!==t?(a=(0,m2.cn)(LK(),t),o[5]=t,o[6]=a):a=o[6],o[7]!==r||o[8]!==n||o[9]!==a||o[10]!==s?(l=(0,eB.Y)("div",{...r,ref:n,"data-slot":"chat-footer","data-testid":s,className:a}),o[7]=r,o[8]=n,o[9]=a,o[10]=s,o[11]=l):l=o[11],l},"ChatFooter");L4.displayName="ChatFooter";let L7=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f=(0,ej.c)(25);f[0]!==e?({ref:i,title:l,className:r,children:t,"data-testid":a,...n}=e,f[0]=e,f[1]=t,f[2]=r,f[3]=n,f[4]=i,f[5]=a,f[6]=l):(t=f[1],r=f[2],n=f[3],i=f[4],a=f[5],l=f[6]);let m=m5("greeting",a),g=(0,c0.useRef)(null),C=(0,c0.useRef)(null);f[7]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{let e,t=g.current;if(!t||"u"<typeof IntersectionObserver)return;let r=new IntersectionObserver(t=>{t.some(L9)&&(r.disconnect(),e=setTimeout(()=>{g7().motionOn()&&C.current?.play("hello")},250))},{threshold:.6});return r.observe(t),()=>{r.disconnect(),clearTimeout(e)}},s=[],f[7]=o,f[8]=s):(o=f[7],s=f[8]),(0,c0.useEffect)(o,s),f[9]!==r?(c=(0,m2.cn)(LJ(),r),f[9]=r,f[10]=c):c=f[10];let v=m&&`${m}--wally`;return f[11]!==v?(d=(0,eB.Y)(C9,{ref:g,handleRef:C,agent:"wally",seed:"wally",size:120,live:!0,shadow:!0,"data-testid":v}),f[11]=v,f[12]=d):d=f[12],f[13]!==l?(u=(0,eB.Y)(bk.E,{asChild:!0,size:"xl",weight:"medium",color:"primary",align:"center",children:(0,eB.Y)("h2",{children:l})}),f[13]=l,f[14]=u):u=f[14],f[15]!==d||f[16]!==u?(h=(0,eB.FD)("div",{className:"flex flex-col items-center gap-12",children:[d,u]}),f[15]=d,f[16]=u,f[17]=h):h=f[17],f[18]!==t||f[19]!==n||f[20]!==i||f[21]!==c||f[22]!==h||f[23]!==m?(p=(0,eB.FD)("div",{...n,ref:i,"data-slot":"chat-greeting","data-testid":m,className:c,children:[h,t]}),f[18]=t,f[19]=n,f[20]=i,f[21]=c,f[22]=h,f[23]=m,f[24]=p):p=f[24],p},"ChatGreeting");function L9(e){return e.isIntersecting}L7.displayName="ChatGreeting";let L6=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({ref:n,className:t,"data-testid":i,...r}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("header",i);return o[5]!==t?(a=(0,m2.cn)(LU(),t),o[5]=t,o[6]=a):a=o[6],o[7]!==r||o[8]!==n||o[9]!==a||o[10]!==s?(l=(0,eB.Y)("header",{...r,ref:n,"data-slot":"chat-header","data-testid":s,className:a}),o[7]=r,o[8]=n,o[9]=a,o[10]=s,o[11]=l):l=o[11],l},"ChatHeader");L6.displayName="ChatHeader";let L8=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({ref:n,className:t,"data-testid":i,...r}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("actions",i);return o[5]!==t?(a=(0,m2.cn)(Lq(),t),o[5]=t,o[6]=a):a=o[6],o[7]!==r||o[8]!==n||o[9]!==a||o[10]!==s?(l=(0,eB.Y)("div",{...r,ref:n,"data-slot":"chat-header-actions","data-testid":s,className:a}),o[7]=r,o[8]=n,o[9]=a,o[10]=s,o[11]=l):l=o[11],l},"ChatHeaderActions");L8.displayName="ChatHeaderActions";let Ie=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(21);u[0]!==e?({ref:a,className:r,children:t,label:n,"data-testid":l,...i}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a,u[6]=l):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5],l=u[6]);let h=m5("title",l);u[7]!==r?(o=(0,m2.cn)(LW(),r),u[7]=r,u[8]=o):o=u[8];let p=h&&`${h}--wally`;return u[9]!==p?(s=(0,eB.Y)(C8,{agent:"wally",size:24,align:"optical","data-testid":p}),u[9]=p,u[10]=s):s=u[10],u[11]!==t||u[12]!==n?(c=null==t?(0,eB.Y)("span",{className:"ml-8 truncate text-sm text-text-primary",children:n??(0,eB.FD)(eB.FK,{children:["Ask ",(0,eB.Y)("span",{className:"font-mono font-medium text-text-brand",children:"Wally"})]})}):(0,eB.FD)(eB.FK,{children:[(0,eB.Y)("span",{"aria-hidden":!0,className:"pl-12 pr-4 text-sm font-medium text-text-secondary",children:"/"}),t]}),u[11]=t,u[12]=n,u[13]=c):c=u[13],u[14]!==i||u[15]!==a||u[16]!==o||u[17]!==s||u[18]!==c||u[19]!==h?(d=(0,eB.FD)("div",{...i,ref:a,"data-slot":"chat-header-title","data-testid":h,className:o,children:[s,c]}),u[14]=i,u[15]=a,u[16]=o,u[17]=s,u[18]=c,u[19]=h,u[20]=d):d=u[20],d},"ChatHeaderTitle");Ie.displayName="ChatHeaderTitle";let It=(0,c0.createContext)({size:"md"}),Ir=It.Provider,In=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(13);o[0]!==e?({ref:n,className:t,"data-testid":i,...r}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("suggestion",i),{size:c}=(0,c0.useContext)(It);return o[5]!==t||o[6]!==c?(a=(0,m2.cn)(L0({size:c}),t),o[5]=t,o[6]=c,o[7]=a):a=o[7],o[8]!==r||o[9]!==n||o[10]!==a||o[11]!==s?(l=(0,eB.Y)("button",{type:"button",...r,ref:n,"data-slot":"chat-suggestion","data-testid":s,className:a}),o[8]=r,o[9]=n,o[10]=a,o[11]=s,o[12]=l):l=o[12],l},"ChatSuggestion");In.displayName="ChatSuggestion";let Ii=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p=(0,ej.c)(29);p[0]!==e?({ref:a,placement:l,label:n,className:r,children:t,"data-testid":o,...i}=e,p[0]=e,p[1]=t,p[2]=r,p[3]=n,p[4]=i,p[5]=a,p[6]=l,p[7]=o):(t=p[1],r=p[2],n=p[3],i=p[4],a=p[5],l=p[6],o=p[7]);let f=void 0===l?"footer":l,m=m5("suggestions",o),g=(0,c0.useId)(),C=null!=n&&!1!==n&&""!==n,v=C?void 0:"Suggestions",y=C?g:void 0;p[8]!==r||p[9]!==f?(s=(0,m2.cn)(L1({placement:f}),r),p[8]=r,p[9]=f,p[10]=s):s=p[10],p[11]!==C||p[12]!==n||p[13]!==g?(c=C&&(0,eB.Y)("p",{id:g,className:L2(),children:n}),p[11]=C,p[12]=n,p[13]=g,p[14]=c):c=p[14];let b="greeting"===f?"lg":"md";return p[15]!==b?(d={size:b},p[15]=b,p[16]=d):d=p[16],p[17]!==t||p[18]!==d?(u=(0,eB.Y)(Ir,{value:d,children:t}),p[17]=t,p[18]=d,p[19]=u):u=p[19],p[20]!==i||p[21]!==a||p[22]!==v||p[23]!==y||p[24]!==s||p[25]!==c||p[26]!==u||p[27]!==m?(h=(0,eB.FD)("div",{role:"group","aria-label":v,"aria-labelledby":y,...i,ref:a,"data-slot":"chat-suggestions","data-testid":m,className:s,children:[c,u]}),p[20]=i,p[21]=a,p[22]=v,p[23]=y,p[24]=s,p[25]=c,p[26]=u,p[27]=m,p[28]=h):h=p[28],h},"ChatSuggestions");Ii.displayName="ChatSuggestions";let Ia=(0,eQ.G)(()=>{let e,t=(0,ej.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eB.FD)(eB.FK,{children:[(0,eB.Y)("circle",{cx:"32",cy:"32",r:"32",fill:"#FF4D2E"}),(0,eB.Y)("path",{d:"M17.2314 50.5207C19.7664 49.9086 22.2431 50.6207 23.8945 52.7825C24.8723 54.0622 25.5292 55.5857 25.7744 57.2473C22.1381 56.3537 18.8026 54.6966 15.9482 52.4534C16.1585 51.8535 16.4823 51.3094 17.2314 50.5207Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M44.4561 48.8809C46.3962 49.0529 48.0829 50.0012 49.0967 51.5869C44.5259 55.5798 38.546 58 32 58C29.8539 58 27.7692 57.7373 25.7744 57.2471C25.529 55.586 24.8711 54.0636 23.8936 52.7842C22.2422 50.6224 19.7648 49.9079 17.2314 50.5215C18.0054 49.7075 19.0353 49.2217 20.2979 49.1152C22.9299 48.8947 25.5254 48.7239 28.1035 48.6592C28.1374 48.8982 27.9709 49.4624 28.2236 49.666C28.7772 50.1101 29.6026 50.0389 30.2949 50.042C31.2236 50.0466 34.4984 50.0346 34.8838 49.2822C35.0395 48.9785 34.9895 48.639 34.9648 48.3584L37.5566 48.2676L44.4561 48.8809Z",fill:"#FDFCFC"}),(0,eB.Y)("path",{d:"M27.5031 45.7366C26.933 44.5967 35.4833 45.7366 35.4833 45.7366C35.4833 45.7366 36.0533 49.1567 34.9133 49.7267C33.7732 50.2967 28.6427 50.8667 28.0729 50.2967C26.8639 49.0873 28.0731 46.8765 27.5031 45.7366Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M42.8074 25.7023C42.1108 24.9508 41.4019 24.184 40.7358 23.2846C40.8379 23.2983 40.8684 23.1291 40.8699 22.9843C40.8858 20.7033 41.5682 18.4768 42.833 16.5786L43.8978 14.9807C43.0201 13.6263 43.2141 12.0181 44.2954 11.0464C45.4209 10.0365 47.074 10.0384 48.2163 11.0656C49.2429 11.989 49.4611 13.5992 48.6432 14.8348C47.9015 15.9545 46.7243 16.4001 45.3955 16.0561C43.7239 17.735 42.7889 20.0099 42.7966 22.3791L42.8074 25.7023Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M18.1375 26.4225C18.8341 25.671 19.5429 24.9042 20.2091 24.0048C20.107 24.0185 20.0765 23.8493 20.075 23.7045C20.059 21.4236 19.3767 19.197 18.1118 17.2988L17.0471 15.7009C17.9248 14.3465 17.7307 12.7383 16.6495 11.7667C15.524 10.7567 13.8709 10.7586 12.7286 11.7858C11.702 12.7092 11.4838 14.3195 12.3017 15.555C13.0434 16.6747 14.2206 17.1204 15.5494 16.7763C17.2209 18.4553 18.156 20.7302 18.1483 23.0993L18.1375 26.4225Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M33.1535 17.2782C33.1551 17.2781 33.1566 17.2781 33.1582 17.278L33.1536 17.2795C33.1536 17.2791 33.1535 17.2786 33.1535 17.2782C28.468 17.4859 24.4639 20.6468 22.5195 24.9076C20.8167 28.6362 20.2588 32.8161 21.0545 36.813C22.1994 42.563 27.2054 46.3725 33.0088 46.06C33.5972 46.028 34.1338 46.0752 34.6856 46.2277L22.3228 45.9457C19.9417 45.7246 17.9311 44.5478 16.3427 42.7688C11.4021 37.2353 13.3384 26.823 20.6323 20.7323C24.0989 17.8375 28.4432 16.6713 32.8396 17.1286C33.0189 17.1468 33.1436 17.1484 33.1535 17.2782Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M42.9326 21.0864C43.5988 21.9858 44.3061 22.7525 45.0043 23.504C47.9174 27.7723 49.2207 32.6992 48.082 37.7022C47.4555 40.4568 45.9814 42.7815 43.7116 44.4248C40.6522 46.6412 38.047 46.0818 34.6857 46.2251C34.1339 46.0726 33.5973 46.0254 33.0089 46.0574C27.2055 46.3699 22.1994 42.5604 21.0546 36.8104C20.2589 32.815 20.8168 28.6336 22.5196 24.905C24.4647 20.6428 28.4708 17.4827 33.1583 17.2754C37.2634 17.0955 39.9631 18.6519 42.9326 21.0864ZM31.079 41.4187C33.8442 41.5604 36.4982 41.4933 39.2634 41.3729C42.0211 41.254 44.207 39.5818 45.0561 36.9293C46.1339 33.5604 45.4128 29.8165 43.2863 26.9751C41.5028 24.5909 38.8656 23.3226 35.9128 23.2022C31.5653 23.0239 27.7802 25.4263 26.1019 29.4293C24.9647 32.1428 24.826 35.1732 26.1324 37.8302C27.0927 39.783 28.8839 41.3074 31.079 41.4187Z",fill:"#FDFCFC"}),(0,eB.Y)("path",{d:"M31.0789 41.4209C28.8838 41.3097 27.0927 39.7853 26.1338 37.8325C24.8274 35.1755 24.9661 32.145 26.1033 29.4316C27.7817 25.4286 31.5667 23.0262 35.9143 23.2045C38.8655 23.3249 41.5027 24.5932 43.2878 26.9774C45.4143 29.8188 46.1353 33.5612 45.0576 36.9316C44.2085 39.5856 42.024 41.2563 39.2649 41.3752C36.4997 41.4941 33.8442 41.5612 31.0805 41.4209H31.0789ZM41.4554 30.9316C41.1658 30.4301 40.6003 30.1527 40.1201 30.1771C39.6658 30.1999 39.2024 30.5216 38.9356 30.988C37.8564 32.8768 38.492 35.9667 40.2451 35.9133C41.7146 35.8691 42.582 32.8844 41.4554 30.9316ZM32.521 31.0643C32.2542 30.5261 31.7375 30.2228 31.2512 30.203C30.7649 30.1832 30.2969 30.4286 29.9921 30.895C28.7253 32.8356 29.4052 35.9545 31.1018 35.9835C32.5789 36.0094 33.5759 33.1923 32.521 31.0643Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M32.52 31.0635C33.5749 33.1916 32.5779 36.0086 31.1008 35.9827C29.4057 35.9537 28.7243 32.8348 29.991 30.8943C30.2959 30.4278 30.7822 30.1839 31.2502 30.2022C31.7182 30.2205 32.2532 30.5254 32.52 31.0635Z",fill:"#FDFCFC"}),(0,eB.Y)("path",{d:"M41.4545 30.9316C42.5811 32.8829 41.7152 35.8676 40.2442 35.9133C38.4911 35.9667 37.8555 32.8768 38.9347 30.988C39.2015 30.5216 39.6649 30.1999 40.1192 30.1771C40.5994 30.1527 41.1649 30.4301 41.4545 30.9316Z",fill:"#FDFCFC"})]}),t[0]=e):e=t[0],e},"CirclePaths"),Il=(0,m9.F)("inline-block shrink-0",{variants:{size:{xs:"h-[16px]",sm:"h-[20px]",md:"h-[24px]",lg:"h-[32px]",xl:"h-[64px]"}},defaultVariants:{size:"md"}}),Io=(0,eQ.G)(()=>{let e,t=(0,ej.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eB.FD)(eB.FK,{children:[(0,eB.Y)("path",{d:"M46.4519 27.9723C45.6059 27.0597 44.7452 26.1286 43.9362 25.0364C44.0602 25.0531 44.0973 24.8476 44.0991 24.6717C44.1184 21.9019 44.9471 19.1981 46.483 16.8931L47.776 14.9526C46.7101 13.308 46.9458 11.3551 48.2588 10.1752C49.6255 8.94876 51.6329 8.95107 53.0201 10.1984C54.2667 11.3198 54.5317 13.2751 53.5384 14.7755C52.6378 16.1352 51.2083 16.6763 49.5947 16.2586C47.5648 18.2974 46.4294 21.0599 46.4388 23.9368L46.4519 27.9723Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M16.4934 28.8466C17.3394 27.934 18.2002 27.0029 19.0091 25.9108C18.8851 25.9274 18.848 25.7219 18.8462 25.5461C18.8269 22.7762 17.9983 20.0725 16.4623 17.7674L15.1693 15.827C16.2352 14.1824 15.9995 12.2295 14.6865 11.0495C13.3198 9.82312 11.3124 9.82543 9.92521 11.0728C8.67858 12.1941 8.41366 14.1495 9.4069 15.6499C10.3075 17.0095 11.737 17.5507 13.3506 17.133C15.3805 19.1717 16.5159 21.9342 16.5066 24.8112L16.4934 28.8466Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M34.7286 17.7426C34.7305 17.7426 34.7324 17.7425 34.7343 17.7424L34.7287 17.7442C34.7287 17.7437 34.7286 17.7432 34.7286 17.7426C29.0389 17.9948 24.1766 21.8332 21.8153 27.0072C19.7476 31.5351 19.0701 36.6108 20.0364 41.4644C21.4266 48.4469 27.5057 53.0728 34.5529 52.6933C35.2674 52.6545 35.919 52.7118 36.5891 52.897L21.5765 52.5545C18.6851 52.2861 16.2435 50.857 14.3146 48.6968C8.31515 41.9772 10.6665 29.3332 19.5237 21.937C23.7333 18.4218 29.0088 17.0056 34.3474 17.561C34.5651 17.5831 34.7166 17.585 34.7286 17.7426Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M46.6038 22.3671C47.4128 23.4592 48.2717 24.3903 49.1195 25.3029C52.657 30.4861 54.2397 36.4689 52.8569 42.5442C52.0961 45.8892 50.3061 48.7122 47.5498 50.7077C43.8346 53.3992 40.671 52.7198 36.5893 52.8938C35.9192 52.7087 35.2676 52.6513 34.5531 52.6902C27.5059 53.0697 21.4268 48.4438 20.0366 41.4613C19.0703 36.6096 19.7479 31.532 21.8155 27.0041C24.1776 21.8284 29.0423 17.991 34.7345 17.7393C39.7195 17.5209 42.9979 19.4108 46.6038 22.3671ZM32.2096 47.0573C35.5675 47.2294 38.7903 47.148 42.1482 47.0017C45.4969 46.8573 48.1514 44.8267 49.1824 41.6057C50.4912 37.5148 49.6156 32.9684 47.0333 29.5179C44.8675 26.6228 41.6651 25.0827 38.0795 24.9364C32.8001 24.7198 28.2038 27.6372 26.1657 32.4982C24.7847 35.7932 24.6163 39.4732 26.2027 42.6997C27.3689 45.071 29.544 46.9221 32.2096 47.0573Z",fill:"#FF4D2E"}),(0,eB.Y)("path",{d:"M32.2095 47.06C29.5439 46.9249 27.3689 45.0738 26.2045 42.7025C24.6181 39.476 24.7865 35.796 26.1675 32.501C28.2056 27.6399 32.8019 24.7226 38.0813 24.9392C41.665 25.0854 44.8675 26.6255 47.0351 29.5207C49.6174 32.9712 50.493 37.5156 49.1843 41.6085C48.1532 44.8313 45.5005 46.8601 42.15 47.0045C38.7921 47.1489 35.5674 47.2303 32.2114 47.06H32.2095ZM44.8101 34.3225C44.4584 33.7135 43.7716 33.3765 43.1885 33.4062C42.6369 33.4339 42.0741 33.8245 41.7502 34.391C40.4396 36.6845 41.2115 40.4367 43.3403 40.3719C45.1248 40.3182 46.178 36.6938 44.8101 34.3225ZM33.9607 34.4835C33.6367 33.8301 33.0092 33.4617 32.4187 33.4376C31.8282 33.4136 31.2599 33.7116 30.8897 34.278C29.3514 36.6345 30.177 40.4219 32.2373 40.4571C34.031 40.4885 35.2416 37.0677 33.9607 34.4835Z",fill:"#0D0B0C"}),(0,eB.Y)("path",{d:"M33.9591 34.4824C35.2401 37.0666 34.0295 40.4874 32.2357 40.456C30.1773 40.4208 29.3498 36.6334 30.8881 34.277C31.2583 33.7105 31.8488 33.4143 32.4171 33.4365C32.9854 33.4588 33.6352 33.829 33.9591 34.4824Z",fill:"#FF4D2E"}),(0,eB.Y)("path",{d:"M44.8084 34.3222C46.1764 36.6917 45.125 40.3161 43.3386 40.3717C41.2098 40.4365 40.4379 36.6843 41.7485 34.3907C42.0725 33.8243 42.6352 33.4337 43.1868 33.4059C43.7699 33.3763 44.4567 33.7132 44.8084 34.3222Z",fill:"#FF4D2E"})]}),t[0]=e):e=t[0],e},"SimplePaths"),Is=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(19);d[0]!==e?({ref:n,variant:i,size:a,className:t,...r}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=n,d[4]=i,d[5]=a):(t=d[1],r=d[2],n=d[3],i=d[4],a=d[5]);let u=void 0===i?"simple":i,h=void 0===a?"md":a;return d[6]!==t||d[7]!==h?(l=(0,m2.cn)(Il({size:h}),"w-auto",t),d[6]=t,d[7]=h,d[8]=l):l=d[8],d[9]!==u?(o="simple"===u&&(0,eB.Y)(Io,{}),d[9]=u,d[10]=o):o=d[10],d[11]!==u?(s="circle"===u&&(0,eB.Y)(Ia,{}),d[11]=u,d[12]=s):s=d[12],d[13]!==r||d[14]!==n||d[15]!==l||d[16]!==o||d[17]!==s?(c=(0,eB.FD)("svg",{...r,ref:n,"data-slot":"wally-icon",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:l,children:[o,s]}),d[13]=r,d[14]=n,d[15]=l,d[16]=o,d[17]=s,d[18]=c):c=d[18],c},"WallyIcon");Is.displayName="WallyIcon";let Ic=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(24);u[0]!==e?({ref:r,id:t,label:i,"data-testid":a,...n}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5]);let h=void 0===i?"Ask Wally":i,p=m5("trigger",a),f=(0,c0.useId)(),m=t??f;u[6]!==m?(l={trigger:m},u[6]=m,u[7]=l):l=u[7];let g=p&&`${p}--icon`;return u[8]!==g?(o=(0,eB.Y)(Is,{size:"md","data-testid":g}),u[8]=g,u[9]=o):o=u[9],u[10]!==h||u[11]!==r||u[12]!==n||u[13]!==o||u[14]!==p||u[15]!==m?(s=(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{variant:"ghost",color:"neutral",size:"small","aria-label":h,type:"button",...n,id:m,ref:r,"data-slot":"chat-trigger","data-testid":p,children:o})}),u[10]=h,u[11]=r,u[12]=n,u[13]=o,u[14]=p,u[15]=m,u[16]=s):s=u[16],u[17]!==h?(c=(0,eB.Y)(bm,{children:h}),u[17]=h,u[18]=c):c=u[18],u[19]!==l||u[20]!==s||u[21]!==c||u[22]!==p?(d=(0,eB.FD)(bC,{ids:l,"data-testid":p,children:[s,c]}),u[19]=l,u[20]=s,u[21]=c,u[22]=p,u[23]=d):d=u[23],d},"ChatTrigger");Ic.displayName="ChatTrigger";let Id=(0,c0.createContext)(null),Iu=()=>{let e=(0,c0.useContext)(Id);if(!e)throw Error("ChatInput parts must be rendered inside <ChatInput>");return e},Ih=(0,m9.F)("flex flex-col gap-4"),Ip=(0,m9.F)("flex flex-col rounded-16 border border-border-info bg-bg-light-info"),If=(0,m9.F)("flex flex-wrap items-center gap-6 px-12 pt-8 pb-6"),Im=(0,m9.F)((0,m2.cn)("flex flex-wrap items-center gap-x-6 gap-y-24 rounded-16 border border-border-primary px-11 pt-9 pb-11","transition-[border-color,box-shadow] motion-reduce:transition-none","hover:border-component-border-input-hover","has-[textarea:focus]:border-component-border-input-hover has-[textarea:focus]:shadow-none has-[textarea:focus]:ring-3 has-[textarea:focus]:ring-focus-primary"),{variants:{withContext:{false:"bg-component-input-bg shadow-xs",true:"-mx-px -mb-px bg-bg-surface-1 shadow-sm"},disabled:{true:"pointer-events-none opacity-50"}},defaultVariants:{withContext:!1}}),Ig=(0,m9.F)((0,m2.cn)("w-full basis-full resize-none bg-transparent text-sm text-text-primary outline-none","placeholder:text-text-secondary disabled:cursor-not-allowed [scrollbar-width:thin]")),IC=(0,m9.F)("text-center text-xs text-text-secondary"),Iv=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w,S,E,k,P=(0,ej.c)(66);P[0]!==e?({ref:o,value:p,onValueChange:l,onSubmit:a,onStop:i,isRunning:c,disabled:d,context:n,disclaimer:u,className:r,children:t,"data-testid":h,...s}=e,P[0]=e,P[1]=t,P[2]=r,P[3]=n,P[4]=i,P[5]=a,P[6]=l,P[7]=o,P[8]=s,P[9]=c,P[10]=d,P[11]=u,P[12]=h,P[13]=p):(t=P[1],r=P[2],n=P[3],i=P[4],a=P[5],l=P[6],o=P[7],s=P[8],c=P[9],d=P[10],u=P[11],h=P[12],p=P[13]);let D=void 0!==c&&c,A=void 0!==d&&d,T=void 0===u?"Wally can make mistakes; always verify.":u,M=m5("input",h);P[14]!==M?(f=e=>M?`${M}--${e}`:void 0,P[14]=M,P[15]=f):f=P[15];let L=f,I=(0,c0.useId)(),N=null!==T&&!1!==T;P[16]!==n?(m=c0.Children.toArray(n),P[16]=n,P[17]=m):m=P[17];let F=m.length>0;P[18]!==A||P[19]!==D||P[20]!==a||P[21]!==p?(g=e=>{e.preventDefault();let t=p.trim();!t||D||A||(a(t),e.currentTarget.querySelector("textarea")?.focus())},P[18]=A,P[19]=D,P[20]=a,P[21]=p,P[22]=g):g=P[22];let R=g;P[23]!==L?(C=L("box"),P[23]=L,P[24]=C):C=P[24],P[25]!==A||P[26]!==F?(v=Im({withContext:F,disabled:A}),P[25]=A,P[26]=F,P[27]=v):v=P[27],P[28]!==t||P[29]!==C||P[30]!==v?(y=(0,eB.Y)("div",{"data-slot":"chat-input-box","data-testid":C,className:v,children:t}),P[28]=t,P[29]=C,P[30]=v,P[31]=y):y=P[31];let V=y,_=A||void 0;P[32]!==r?(b=(0,m2.cn)(Ih(),r),P[32]=r,P[33]=b):b=P[33];let Y=N?I:void 0;return P[34]!==A||P[35]!==D||P[36]!==i||P[37]!==l||P[38]!==Y||P[39]!==p?(x={value:p,onValueChange:l,isRunning:D,disabled:A,onStop:i,disclaimerId:Y},P[34]=A,P[35]=D,P[36]=i,P[37]=l,P[38]=Y,P[39]=p,P[40]=x):x=P[40],P[41]!==V||P[42]!==n||P[43]!==F||P[44]!==L?(O=F?(0,eB.FD)("div",{"data-slot":"chat-input-context","data-testid":L("context"),className:Ip(),children:[(0,eB.Y)("div",{className:If(),children:n}),V]}):V,P[41]=V,P[42]=n,P[43]=F,P[44]=L,P[45]=O):O=P[45],P[46]!==O||P[47]!==M?(w=(0,eB.Y)(m3,{value:M,children:O}),P[46]=O,P[47]=M,P[48]=w):w=P[48],P[49]!==x||P[50]!==w?(S=(0,eB.Y)(Id.Provider,{value:x,children:w}),P[49]=x,P[50]=w,P[51]=S):S=P[51],P[52]!==T||P[53]!==I||P[54]!==N||P[55]!==L?(E=N&&(0,eB.Y)("p",{id:I,"data-slot":"chat-input-disclaimer","data-testid":L("disclaimer"),className:IC(),children:T}),P[52]=T,P[53]=I,P[54]=N,P[55]=L,P[56]=E):E=P[56],P[57]!==R||P[58]!==o||P[59]!==s||P[60]!==_||P[61]!==b||P[62]!==S||P[63]!==E||P[64]!==M?(k=(0,eB.FD)("form",{...s,ref:o,onSubmit:R,"aria-disabled":_,"data-slot":"chat-input","data-testid":M,className:b,children:[S,E]}),P[57]=R,P[58]=o,P[59]=s,P[60]=_,P[61]=b,P[62]=S,P[63]=E,P[64]=M,P[65]=k):k=P[65],k},"ChatInput");Iv.displayName="ChatInput";let Iy=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y=(0,ej.c)(47);y[0]!==e?({ref:a,id:n,sendLabel:o,stopLabel:s,className:t,disabled:r,onClick:i,"data-testid":c,...l}=e,y[0]=e,y[1]=t,y[2]=r,y[3]=n,y[4]=i,y[5]=a,y[6]=l,y[7]=o,y[8]=s,y[9]=c):(t=y[1],r=y[2],n=y[3],i=y[4],a=y[5],l=y[6],o=y[7],s=y[8],c=y[9]);let b=void 0===o?"Send":o,x=void 0===s?"Stop response":s,O=m5("submit",c),{value:w,isRunning:S,disabled:E,onStop:k}=Iu(),P=(0,c0.useId)(),D=n??P;y[10]!==S||y[11]!==i||y[12]!==k?(d=e=>{i?.(e),!e.defaultPrevented&&S&&(e.preventDefault(),k?.(),e.currentTarget.form?.querySelector("textarea")?.focus())},y[10]=S,y[11]=i,y[12]=k,y[13]=d):d=y[13];let A=d,T=!S;y[14]!==D?(u={trigger:D},y[14]=D,y[15]=u):u=y[15];let M=S?x:b,L=S?"button":"submit",I=S?"secondary":"primary",N=S?"neutral":"brand";return y[16]!==E||y[17]!==r||y[18]!==S||y[19]!==w?(h=E||r||!S&&!w.trim(),y[16]=E,y[17]=r,y[18]=S,y[19]=w,y[20]=h):h=y[20],y[21]!==t?(p=(0,m2.cn)("ms-auto",t),y[21]=t,y[22]=p):p=y[22],y[23]!==S?(f=S?(0,eB.Y)(rV,{}):(0,eB.Y)(ti,{}),y[23]=S,y[24]=f):f=y[24],y[25]!==A||y[26]!==a||y[27]!==l||y[28]!==h||y[29]!==p||y[30]!==f||y[31]!==M||y[32]!==L||y[33]!==I||y[34]!==N||y[35]!==O||y[36]!==D?(m=(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{"aria-label":M,...l,ref:a,id:D,type:L,variant:I,color:N,size:"small",disabled:h,onClick:A,"data-slot":"chat-input-submit","data-testid":O,className:p,children:f})}),y[25]=A,y[26]=a,y[27]=l,y[28]=h,y[29]=p,y[30]=f,y[31]=M,y[32]=L,y[33]=I,y[34]=N,y[35]=O,y[36]=D,y[37]=m):m=y[37],y[38]===Symbol.for("react.memo_cache_sentinel")?(g=(0,eB.Y)(LA,{children:"Esc"}),y[38]=g):g=y[38],y[39]!==x?(C=(0,eB.FD)(bm,{children:[x," ",g]}),y[39]=x,y[40]=C):C=y[40],y[41]!==m||y[42]!==C||y[43]!==T||y[44]!==u||y[45]!==O?(v=(0,eB.FD)(bC,{disabled:T,ids:u,"data-testid":O,children:[m,C]}),y[41]=m,y[42]=C,y[43]=T,y[44]=u,y[45]=O,y[46]=v):v=y[46],v},"ChatInputSubmit");function Ib(e,t,r,n){let i,a,l,o,s=(0,ej.c)(11),c=(0,c0.useRef)(null);s[0]!==e||s[1]!==r||s[2]!==t?(i=()=>{if(e&&c.current){var n;let e,i,a,l,o,s;n=c.current,i=Number.parseInt((e=window.getComputedStyle(n)).lineHeight,10)||20,a=(Number.parseInt(e.paddingTop,10)||0)+(Number.parseInt(e.paddingBottom,10)||0),o=i*r+a+(l=(Number.parseInt(e.borderTopWidth,10)||0)+(Number.parseInt(e.borderBottomWidth,10)||0)),n.style.height="0",s=n.scrollHeight+l,n.style.height=`${Math.min(Math.max(s,i*t+a+l),o)}px`,n.style.overflowY=s>o?"auto":"hidden"}},s[0]=e,s[1]=r,s[2]=t,s[3]=i):i=s[3];let d=i;return s[4]!==d?(a=()=>{d()},s[4]=d,s[5]=a):a=s[5],s[6]!==d||s[7]!==n?(l=[d,n],s[6]=d,s[7]=n,s[8]=l):l=s[8],(0,c0.useLayoutEffect)(a,l),s[9]!==d?(o={ref:c,adjustHeight:d},s[9]=d,s[10]=o):o=s[10],o}Iy.displayName="ChatInputSubmit";let Ix=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C=(0,ej.c)(37);C[0]!==e?({ref:l,className:r,disabled:n,onChange:i,onKeyDown:a,"aria-describedby":t,"data-testid":s,...o}=e,C[0]=e,C[1]=t,C[2]=r,C[3]=n,C[4]=i,C[5]=a,C[6]=l,C[7]=o,C[8]=s):(t=C[1],r=C[2],n=C[3],i=C[4],a=C[5],l=C[6],o=C[7],s=C[8]);let v=m5("textarea",s),{value:y,onValueChange:b,isRunning:x,disabled:O,onStop:w,disclaimerId:S}=Iu(),{ref:E}=Ib(!0,1,8,y);C[9]!==t||C[10]!==S?(c=[t,S].filter(Boolean).join(" ")||void 0,C[9]=t,C[10]=S,C[11]=c):c=C[11];let k=c,P=(0,c0.useRef)(null),D=x&&!!w;C[12]!==D?(d=()=>{let e=P.current,t=e?.ownerDocument.defaultView;if(!D||!e||!t)return;let r=t=>{"Escape"!==t.key||t.isComposing||t.target!==e||"true"===e.getAttribute("aria-expanded")||t.preventDefault()};return t.addEventListener("keydown",r,!0),()=>t.removeEventListener("keydown",r,!0)},u=[D],C[12]=D,C[13]=d,C[14]=u):(d=C[13],u=C[14]),(0,c0.useEffect)(d,u),C[15]!==i||C[16]!==b?(h=e=>{i?.(e),b(e.target.value)},C[15]=i,C[16]=b,C[17]=h):h=C[17];let A=h;C[18]!==D||C[19]!==a||C[20]!==w?(p=e=>{a?.(e),!e.nativeEvent.isComposing&&229!==e.keyCode&&("Escape"===e.key?D&&"true"!==e.currentTarget.getAttribute("aria-expanded")&&w?.():"Enter"!==e.key||e.shiftKey||e.defaultPrevented||(e.preventDefault(),e.currentTarget.form?.requestSubmit()))},C[18]=D,C[19]=a,C[20]=w,C[21]=p):p=C[21];let T=p;C[22]!==E||C[23]!==l?(f=(0,b8.t)(E,P,l),C[22]=E,C[23]=l,C[24]=f):f=C[24];let M=O||n;return C[25]!==r?(m=(0,m2.cn)(Ig(),r),C[25]=r,C[26]=m):m=C[26],C[27]!==k||C[28]!==A||C[29]!==T||C[30]!==o||C[31]!==f||C[32]!==M||C[33]!==m||C[34]!==v||C[35]!==y?(g=(0,eB.Y)("textarea",{placeholder:"Ask Wally...","aria-label":"Message Wally",...o,ref:f,rows:1,value:y,disabled:M,"aria-describedby":k,onChange:A,onKeyDown:T,"data-slot":"chat-input-textarea","data-testid":v,className:m}),C[27]=k,C[28]=A,C[29]=T,C[30]=o,C[31]=f,C[32]=M,C[33]=m,C[34]=v,C[35]=y,C[36]=g):g=C[36],g},"ChatInputTextarea");Ix.displayName="ChatInputTextarea";var[IO,Iw]=(0,ua.q)({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"}),IS=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=(0,p8.v)(r.getAnchorProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});IS.displayName="PopoverAnchor";var IE=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=(0,p8.v)(r.getArrowProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});IE.displayName="PopoverArrow";var Ik=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=(0,p8.v)(r.getArrowTipProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});Ik.displayName="PopoverArrowTip";var IP=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=(0,p8.v)(r.getCloseTriggerProps(),e);return(0,eB.Y)(fr.button,{...n,ref:t})});IP.displayName="PopoverCloseTrigger";var ID=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=vd(),i=(0,p8.v)(r.getContentProps(),n.getPresenceProps(),e),a=p6(n.ref,t);return(0,eB.Y)(vs,{presence:n,children:(0,eB.Y)(fr.div,{...i,ref:a})})});ID.displayName="PopoverContent";var IA=e=>e.children(Iw()),IT=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=(0,p8.v)(r.getDescriptionProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});IT.displayName="PopoverDescription";var IM=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=(0,p8.v)(r.getIndicatorProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});IM.displayName="PopoverIndicator";var IL=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=vd(),i=(0,p8.v)(r.getPositionerProps(),e);return n.unmounted?null:(0,eB.Y)(fr.div,{...i,ref:t})});IL.displayName="PopoverPositioner";var II=new WeakMap,IN=new WeakMap,IF={},IR=0,IV=e=>e&&(e.host||IV(e.parentNode)),I_=new Set(["script","output","status","next-route-announcer"]),IY=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body;function I$(e,t={}){let{defer:r=!0}=t,n=[];return n.push((r?e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)}:e=>e())(()=>{let t=("function"==typeof e?e():e).filter(Boolean);0!==t.length&&n.push(((e,t=IY(e),r="data-aria-hidden",n=!0)=>{if(t)return((e,t)=>{let{parentNode:r,markerName:n,controlAttribute:i,explicitBooleanValue:a,followControlledElements:l=!0}=t,o=(Array.isArray(e)?e:[e]).map(e=>{if(r.contains(e))return e;let t=IV(e);return t&&r.contains(t)?t:(console.error("[zag-js > ariaHidden] target",e,"in not contained inside",r,". Doing nothing"),null)}).filter(e=>!!e);IF[n]||(IF[n]=new WeakMap);let s=IF[n],c=[],d=new Set,u=new Set(o),h=e=>{!e||d.has(e)||(d.add(e),h(e.parentNode))};o.forEach(e=>{h(e),l&&uq(e)&&OS(e,e=>{h(e)})});let p=e=>{!e||u.has(e)||Array.prototype.forEach.call(e.children,e=>{if(d.has(e))p(e);else try{if(I_.has(e.localName)||"status"===e.role||e.hasAttribute("aria-live")||e.matches("[data-live-announcer]"))return;let t=e.getAttribute(i),r=a?"true"===t:null!==t&&"false"!==t,l=(II.get(e)||0)+1,o=(s.get(e)||0)+1;II.set(e,l),s.set(e,o),c.push(e),1===l&&r&&IN.set(e,!0),1===o&&e.setAttribute(n,""),r||e.setAttribute(i,a?"true":"")}catch(t){console.error("[zag-js > ariaHidden] cannot operate on ",e,t)}})};return p(r),d.clear(),IR++,()=>{c.forEach(e=>{let t=II.get(e)-1,r=s.get(e)-1;II.set(e,t),s.set(e,r),t||(IN.has(e)||e.removeAttribute(i),IN.delete(e)),r||e.removeAttribute(n)}),--IR||(II=new WeakMap,II=new WeakMap,IN=new WeakMap,IF={})}})(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden",explicitBooleanValue:!0,followControlledElements:n})})(t))})),()=>{n.forEach(e=>e?.())}}function IH(e){return null==e?null:"function"==typeof e?e():e}function Iz(e,t,r){if(!t)return null;let n=fX(e.ownerDocument.body,{getShadowRoot:r}),i=n.indexOf(t);if(-1===i)return null;for(let t=i+1;t<n.length;t++){let r=n[t];if(!u7(e,r))return r}return null}var IZ=Object.defineProperty,IQ=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?IZ(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},IB={activateTrap(e,t){if(e.length>0){let r=e[e.length-1];r!==t&&r.pause()}let r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},deactivateTrap(e,t){let r=e.indexOf(t);-1!==r&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},Ij=[],IG=class{constructor(e,t){IQ(this,"trapStack"),IQ(this,"config"),IQ(this,"doc"),IQ(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),IQ(this,"lastInteractionType","keyboard"),IQ(this,"portalContainers",new Set),IQ(this,"listenerCleanups",[]),IQ(this,"handleFocus",e=>{let t=fP(e),r=this.findContainerIndex(t,e)>=0;if(r||uX(t))r&&(this.state.mostRecentlyFocusedNode=t);else{let t;e.stopImmediatePropagation();let r=!0;if(this.state.mostRecentlyFocusedNode)if(f1(this.state.mostRecentlyFocusedNode)>0){let e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:n}=this.state.containerGroups[e];if(n.length>0){let e=n.findIndex(e=>e===this.state.mostRecentlyFocusedNode);e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1<n.length&&(t=n[e+1],r=!1):e-1>=0&&(t=n[e-1],r=!1))}}else this.state.containerGroups.some(e=>e.tabbableNodes.some(e=>f1(e)>0))||(r=!1);else r=!1;r&&(t=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),t?this.tryFocus(t):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),IQ(this,"handlePointerDown",e=>{this.lastInteractionType="pointer";let t=fP(e);this.findContainerIndex(t,e)>=0||(IK(this.config.clickOutsideDeactivates,e)?this.deactivate({returnFocus:this.config.returnFocusOnDeactivate}):IK(this.config.allowOutsideClick,e)||e.preventDefault())}),IQ(this,"handleClick",e=>{let t=fP(e);this.findContainerIndex(t,e)>=0||IK(this.config.clickOutsideDeactivates,e)||IK(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}),IQ(this,"handleTabKey",e=>{if(this.lastInteractionType="keyboard",this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;let t=this.config.isKeyBackward(e),r=this.findNextNavNode({event:e,isBackward:t});r&&(IW(e)&&e.preventDefault(),this.tryFocus(r))}}),IQ(this,"handleEscapeKey",e=>{IJ(e)&&!1!==IK(this.config.escapeDeactivates,e)&&(e.preventDefault(),this.deactivate())}),IQ(this,"_mutationObserver"),IQ(this,"setupMutationObserver",()=>{let e=this.doc.defaultView||window;this._mutationObserver=new e.MutationObserver(e=>{e.some(e=>Array.from(e.removedNodes).some(e=>e===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),e.some(e=>"attributes"===e.type&&("aria-controls"===e.attributeName||"aria-expanded"===e.attributeName)||"childList"===e.type&&e.addedNodes.length>0&&Array.from(e.addedNodes).some(e=>{if(e.nodeType!==Node.ELEMENT_NODE)return!1;if(e.hasAttribute("aria-controls")&&"true"===e.getAttribute("aria-expanded")||e.querySelector?.('[aria-controls][aria-expanded="true"]'))return!0;if(e.id&&!this.state.containers.some(t=>t.contains(e))){let t;if(!e.id)return!1;let r=he(e),n=CSS.escape(e.id),i=`[aria-controls~="${n}"][aria-expanded="true"], [aria-controls="${n}"][aria-expanded="true"]`;return!!(r.querySelector(i)&&(t=e.getAttribute("role"))&&Ob.has(t))}return!1}))&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),IQ(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(e=>{this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(e=>{this.observePortalContainer(e)}))}),IQ(this,"getInitialFocusNode",()=>{let e=this.getNodeForOption("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!fq(e)){let t=u8(this.doc);if(t&&this.findContainerIndex(t)>=0)e=t;else{let t=this.state.tabbableGroups[0];e=t&&t.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else null===e&&(e=this.getNodeForOption("fallbackFocus"));if(!e||(e.isConnected||(e=this.getNodeForOption("fallbackFocus")),!e||!e.isConnected))throw Error("Your focus-trap needs to have at least one focusable element");return e}),IQ(this,"tryFocus",(e,t)=>{if(!1!==e&&e!==u8(this.doc)){if(!e||!e.focus)return void this.tryFocus(this.getInitialFocusNode());e.focus({preventScroll:!!this.config.preventScroll,...t}),this.state.mostRecentlyFocusedNode=e,I2(e)&&e.select()}}),IQ(this,"deactivate",e=>{if(!this.state.active)return this;let t={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...e};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),IB.deactivateTrap(this.trapStack,this),this.portalContainers.clear();let r=this.getOption(t,"onDeactivate"),n=this.getOption(t,"onPostDeactivate"),i=this.getOption(t,"checkCanReturnFocus"),a=this.getOption(t,"returnFocus","returnFocusOnDeactivate");r?.();let l=()=>{I1(()=>{if(a&&this.isSafeToOverrideFocus()){let e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation),t="keyboard"===this.lastInteractionType?{focusVisible:!0}:void 0;this.tryFocus(e,t)}n?.()})};return a&&i?i(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(l,l):l(),this}),IQ(this,"pause",e=>{if(this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onPause"),r=this.getOption(e,"onPostPause");return this.state.paused=!0,t?.(),this.removeListeners(),this.updateObservedNodes(),r?.(),this}),IQ(this,"unpause",e=>{if(!this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onUnpause"),r=this.getOption(e,"onPostUnpause");this.state.paused=!1,t?.();try{this.updateTabbableNodes()}catch{}this.attachListeners();try{this.commitInitialFocus()}catch{}return this.updateObservedNodes(),r?.(),this}),IQ(this,"updateContainerElements",e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),IQ(this,"getReturnFocusNode",e=>{let t=this.getNodeForOption("setReturnFocus",{params:[e]});return t||!1!==t&&e}),IQ(this,"getOption",(e,t,r)=>e&&void 0!==e[t]?e[t]:this.config[r||t]),IQ(this,"getNodeForOption",(e,{hasFallback:t=!1,params:r=[]}={})=>{let n=this.config[e];if("function"==typeof n&&(n=n(...r)),!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let i=n;if("string"==typeof n){try{i=this.doc.querySelector(n)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!i&&!t)throw Error(`\`${e}\` as selector refers to no known node`)}return i}),IQ(this,"findNextNavNode",e=>{let{event:t,isBackward:r=!1}=e,n=e.target||fP(t);this.updateTabbableNodes();let i=null;if(this.state.tabbableGroups.length>0){let e=this.findContainerIndex(n,t),a=e>=0?this.state.containerGroups[e]:void 0;if(e<0)i=r?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(r){let r=this.state.tabbableGroups.findIndex(({firstTabbableNode:e})=>n===e);if(r<0&&(a?.container===n||fq(n)&&!fK(n)&&!a?.nextTabbableNode(n,!1))&&(r=e),r>=0){let e=0===r?this.state.tabbableGroups.length-1:r-1,t=this.state.tabbableGroups[e];i=f1(n)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else IW(t)||(i=a?.nextTabbableNode(n,!1))}else{let r=this.state.tabbableGroups.findIndex(({lastTabbableNode:e})=>n===e);if(r<0&&(a?.container===n||fq(n)&&!fK(n)&&!a?.nextTabbableNode(n))&&(r=e),r>=0){let e=r===this.state.tabbableGroups.length-1?0:r+1,t=this.state.tabbableGroups[e];i=f1(n)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else IW(t)||(i=a?.nextTabbableNode(n))}}else i=this.getNodeForOption("fallbackFocus");return i}),this.trapStack=t.trapStack||Ij;let r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:Iq,isKeyBackward:IX,...t};this.doc=r.document||u9(Array.isArray(e)?e[0]:e),this.config=r,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){let t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{let t;(t=new Set,OS(e,r=>{e.contains(r)||t.add(r)}),Array.from(t)).forEach(e=>{this.addPortalContainer(e)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){let r="function"==typeof t?.composedPath?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:n,tabbableNodes:i})=>n.contains(e)||r?.includes(n)||i.find(t=>t===e)||this.isControlledElement(n,e)||this.isPersistentElement(e,t))}isControlledElement(e,t){return!!this.config.followControlledElements&&Ow(e,t)}isPersistentElement(e,t){let r=this.config.persistentElements;if(!r||0===r.length)return!1;let n="function"==typeof t?.composedPath?t.composedPath():void 0;return r.some(t=>{let r=t();return u7(r,e)||null!=r&&n?.includes(r)})}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{let t=fX(e,{getShadowRoot:this.config.getShadowRoot}),r=fW(e,{getShadowRoot:this.config.getShadowRoot}),n=t[0],i=t[t.length-1],a=!1;for(let e=0;e<t.length;e++)if(f1(t[e])>0){a=!0;break}return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:a,firstTabbableNode:n,lastTabbableNode:i,firstDomTabbableNode:n,lastDomTabbableNode:i,nextTabbableNode:function(e,n=!0){let i=t.indexOf(e);if(i>=0)return t[i+(n?1:-1)];let a=r.indexOf(e);if(!(a<0)){if(n){for(let e=a+1;e<r.length;e++)if(fK(r[e]))return r[e]}else for(let e=a-1;e>=0;e--)if(fK(r[e]))return r[e]}}}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}attachListeners(){if(this.state.active)return IB.activateTrap(this.trapStack,this),this.listenerCleanups.push(fH(this.doc,"focusin",this.handleFocus,!0),fH(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),fH(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),fH(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),fH(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),fH(this.doc,"keydown",this.handleEscapeKey)),this}commitInitialFocus(){return this.state.delayInitialFocusTimer=this.config.delayInitialFocus?I1(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this}addListeners(){if(this.state.active)return this.attachListeners(),this.commitInitialFocus(),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}containsElement(e){return this.state.containers.some(t=>u7(t,e))}isSafeToOverrideFocus(){let e=u8(this.doc);return!!(!e||e===this.doc.body||this.containsElement(e))||this.trapStack.some(t=>t!==this&&t.containsElement(e))}activate(e){if(this.state.active)return this;let t=this.getOption(e,"onActivate"),r=this.getOption(e,"onPostActivate"),n=this.getOption(e,"checkCanFocusTrap");n||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=u8(this.doc),t?.();let i=()=>{n&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.()};return n?n(this.state.containers.concat()).then(i,i):i(),this}},IU=e=>e?.type==="keydown",IW=e=>IU(e)&&e?.key==="Tab",Iq=e=>IU(e)&&"Tab"===e.key&&!e?.shiftKey,IX=e=>IU(e)&&"Tab"===e.key&&e?.shiftKey,IK=(e,...t)=>"function"==typeof e?e(...t):e,IJ=e=>!e.isComposing&&"Escape"===e.key,I1=e=>setTimeout(e,0),I2=e=>"input"===e.localName&&"select"in e&&"function"==typeof e.select;function I0(e,t={}){let r,n=fd(()=>{let n=(Array.isArray(e)?e:[e]).map(e=>"function"==typeof e?e():e).filter(e=>null!=e);if(0===n.length)return;let i=n[0];r=new IG(n,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:i,...t,document:u9(i)});try{r.activate()}catch{}});return function(){r?.deactivate(),n()}}var I3="data-scroll-lock",I5=new WeakMap;function I4(e){let t=fp(e),r=t?.scrollbarGutter;return"stable"===r||r?.startsWith("stable ")===!0}function I7(e){let t=e??document,r=I5.get(t);r||(r={count:0,cleanup:function(e){let t,r=e.defaultView??window,{documentElement:n,body:i}=e,a=function(e){let{documentElement:t,body:r}=e;return vO(t)?t:r}(e),l=I4(n)||I4(i),o=r.innerWidth-n.clientWidth;i.setAttribute(I3,"");let s=Math.round(n.getBoundingClientRect().left)+n.scrollLeft?"paddingLeft":"paddingRight",c=[fZ(n,"--scrollbar-width",`${o}px`),fw()?(()=>{let{scrollX:e,scrollY:t,visualViewport:n}=r,a=n?.offsetLeft??0,c=n?.offsetTop??0,d={position:"fixed",overflow:"hidden",top:`${-(t-Math.floor(c))}px`,left:`${-(e-Math.floor(a))}px`,right:"0"};!l&&o>0&&(d[s]=`${o}px`);let u=fz(i,d);return()=>{u?.(),r.scrollTo({left:e,top:t,behavior:"instant"})}})():(t={overflow:"hidden"},!l&&o>0&&(t[s]=`${o}px`),fz(a,t))];return()=>{c.forEach(e=>e?.()),i.removeAttribute(I3)}}(t)},I5.set(t,r)),r.count++;let n=r,i=!1;return()=>{i||(i=!0,n.count--,0===n.count&&(n.cleanup(),I5.delete(t)))}}var I9=e=>e.ids?.anchor??`popover:${e.id}:anchor`,I6=(e,t)=>{let r=e.ids?.trigger;return null!=r?(0,u$.Tn)(r)?r(t):r:t?`popover:${e.id}:trigger:${t}`:`popover:${e.id}:trigger`},I8=e=>e.ids?.content??`popover:${e.id}:content`,Ne=e=>e.ids?.positioner??`popover:${e.id}:popper`,Nt=e=>e.ids?.title??`popover:${e.id}:title`,Nr=e=>e.ids?.description??`popover:${e.id}:desc`,Nn=e=>e.getById(I9(e)),Ni=e=>e.getById(I6(e)),Na=e=>mA(e.getRootNode(),`[data-scope="popover"][data-part="trigger"]${uY(e.id)}`),Nl=(e,t)=>null==t?Ni(e)??Na(e)[0]:e.getById(I6(e,t)),No=e=>e.getById(I8(e)),Ns=e=>e.getById(Ne(e)),Nc=uE({props:({props:e})=>({closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,restoreFocus:!0,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e,prop:t,scope:r})=>({currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(e){let n=t("onTriggerValueChange");if(!n)return;let i=Nl(r,e);n({value:e,triggerElement:i})}}))}),computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:r}){e([()=>t("open")],()=>{r(["toggleVisibility"])})},entry:["checkRenderedElements"],on:{"TRIGGER_VALUE.SET":{actions:["setTriggerValue","reposition"]}},states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackDismissableElement","trackPositioning","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackPositioning({context:e,prop:t,scope:r}){e.set("currentPlacement",t("positioning").placement);let n=Nn(r);return y1(()=>n??Nl(r,e.get("triggerValue")),()=>Ns(r),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})},trackDismissableElement({send:e,prop:t,scope:r}){let n=!0;return OV(()=>No(r),{type:"popover",pointerBlocking:t("modal"),exclude:[Ni(r),...Na(r)].filter(Boolean),defer:!0,onEscapeKeyDown(e){t("onEscapeKeyDown")?.(e),t("closeOnEscape")||e.preventDefault()},onInteractOutside(e){t("onInteractOutside")?.(e),!e.defaultPrevented&&(n=!(e.detail.focusable||e.detail.contextmenu),t("closeOnInteractOutside")||e.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:n})}})},proxyTabFocus({prop:e,scope:t,context:r}){if(!e("modal")&&e("portalled"))return function(e,t){let{defer:r,...n}=t,i=[];return i.push((r?fd:e=>e())(()=>{i.push(function(e,t={}){let{triggerElement:r,onFocus:n,onFocusEnter:i,getShadowRoot:a}=t,l=IH(e)??IH(r);return fH(l?.ownerDocument||document,"keydown",function(t){if("Tab"!==t.key)return;let l=IH(e),o=IH(r);if(!l)return;let[s,c]=fJ(l,{includeContainer:!0,getShadowRoot:a}),d=!s&&!c,u=null;t.shiftKey&&(u3(s)||d)?u=o:!t.shiftKey&&u3(o)?(i?.(),u=s):!t.shiftKey&&(u3(c)||d)?u=Iz(l,o,a):t.shiftKey&&u3(Iz(l,o,a))&&(i?.(),u=c),u&&(t.preventDefault(),"function"==typeof n?n(u):u.focus())},!0)}(e,n))})),()=>{i.forEach(e=>e?.())}}(()=>No(t),{triggerElement:Nl(t,r.get("triggerValue")),defer:!0,getShadowRoot:!0,onFocus(e){e.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t,context:r}){if(e("modal"))return I$(()=>[No(t),Nl(t,r.get("triggerValue"))],{defer:!0})},preventScroll({prop:e,scope:t}){if(e("modal"))return I7(t.getDoc())},trapFocus({prop:e,scope:t,context:r}){if(e("modal"))return I0(()=>No(t),{preventScroll:!0,returnFocusOnDeactivate:!!e("restoreFocus"),initialFocus:()=>Oz({root:No(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")}),setReturnFocus:n=>{let i=e("finalFocusEl")?.();if(i)return i;let a=r.get("triggerValue");if(a){let e=Nl(t,a);if(e)return e}let l=Na(t)[0];return l||n},getShadowRoot:!0})}},actions:{reposition({event:e,prop:t,scope:r,context:n}){let i=Nn(r);y1(()=>i??Nl(r,n.get("triggerValue")),()=>Ns(r),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(e){n.set("currentPlacement",e.placement)}})},setTriggerValue({context:e,event:t}){void 0!==t.value&&e.set("triggerValue",t.value)},checkRenderedElements({context:e,scope:t}){fd(()=>{Object.assign(e.get("renderedElements"),{title:!!t.getById(Nt(t)),description:!!t.getById(Nr(t))})})},setInitialFocus({prop:e,scope:t}){e("modal")||fd(()=>{let r=Oz({root:No(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")});r?.focus({preventScroll:!0})})},setFinalFocus({event:e,prop:t,scope:r,context:n}){let i=e.restoreFocus??e.previousEvent?.restoreFocus;null!=i&&!i||t("restoreFocus")&&fd(()=>{let e=t("finalFocusEl")?.();if(e)return void e.focus({preventScroll:!0});let i=Nl(r,n.get("triggerValue"));i?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!1})})},toggleVisibility({event:e,send:t,prop:r}){t({type:r("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}}),Nd=uZ("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger").build(),Nu={closeTriggerLabel:"close"},Nh=e=>{let[t,{children:r,...n}]=vf(e),i=(e=>{let t=(0,c0.useId)(),{getRootNode:r}=uo(),{dir:n}=uc();return function(e,t){let{state:r,context:n,send:i,computed:a,prop:l,scope:o}=e,s=uz(Nu,l("translations")),c=r.matches("open"),d=n.get("currentPlacement"),u=d?yB(d):void 0,h=a("currentPortalled"),p=n.get("renderedElements"),f=n.get("triggerValue"),m=be({...l("positioning"),placement:d});return{portalled:h,open:c,setOpen(e){r.matches("open")!==e&&i({type:e?"OPEN":"CLOSE"})},triggerValue:f,setTriggerValue(e){i({type:"TRIGGER_VALUE.SET",value:e})},reposition(e={}){i({type:"POSITIONING.SET",options:e})},getArrowProps:()=>t.element({id:o.ids?.arrow??`popover:${o.id}:arrow`,...Nd.arrow.attrs,dir:l("dir"),style:m.arrow}),getArrowTipProps:()=>t.element({...Nd.arrowTip.attrs,dir:l("dir"),style:m.arrowTip}),getAnchorProps:()=>t.element({...Nd.anchor.attrs,dir:l("dir"),id:I9(o)}),getTriggerProps(e={}){let{value:r}=e,n=null!=r&&f===r;return t.button({...Nd.trigger.attrs,dir:l("dir"),type:"button","data-placement":d,"data-side":u,id:I6(o,r),"data-ownedby":o.id,"data-value":r,"data-current":uF(n),"aria-haspopup":"dialog","aria-expanded":null==r?c:c&&n,"data-state":c?"open":"closed","aria-controls":I8(o),onPointerDown(e){0===e.button&&fE()&&e.currentTarget.focus()},onClick(e){e.defaultPrevented||i({type:c&&null!=r&&!n?"TRIGGER_VALUE.SET":"TOGGLE",value:r})},onBlur(e){i({type:"TRIGGER_BLUR",target:e.relatedTarget})}})},getIndicatorProps:()=>t.element({...Nd.indicator.attrs,dir:l("dir"),"data-state":c?"open":"closed"}),getPositionerProps:()=>t.element({id:Ne(o),...Nd.positioner.attrs,dir:l("dir"),style:m.floating}),getContentProps:()=>t.element({...Nd.content.attrs,dir:l("dir"),id:I8(o),tabIndex:-1,role:"dialog","aria-modal":uR(l("modal")),hidden:!c,"data-state":c?"open":"closed","data-expanded":uF(c),"aria-labelledby":p.title?Nt(o):void 0,"aria-describedby":p.description?Nr(o):void 0,"data-placement":d,"data-side":u}),getTitleProps:()=>t.element({...Nd.title.attrs,id:Nt(o),dir:l("dir")}),getDescriptionProps:()=>t.element({...Nd.description.attrs,id:Nr(o),dir:l("dir")}),getCloseTriggerProps:()=>t.button({...Nd.closeTrigger.attrs,dir:l("dir"),id:o.ids?.closeTrigger??`popover:${o.id}:close`,type:"button","aria-label":s.closeTriggerLabel,onClick(e){e.defaultPrevented||(e.stopPropagation(),i({type:"CLOSE"}))}})}}(hk(Nc,{id:t,dir:n,getRootNode:r,...e}),hA)})(n),a=vv((0,p8.v)({present:i.open},t));return(0,eB.Y)(IO,{value:i,children:(0,eB.Y)(vc,{value:a,children:r})})},Np=e=>{let[t,{value:r,children:n}]=vf(e),i=vv((0,p8.v)({present:r.open},t));return(0,eB.Y)(IO,{value:r,children:(0,eB.Y)(vc,{value:i,children:n})})},Nf=(0,c0.forwardRef)((e,t)=>{let r=Iw(),n=(0,p8.v)(r.getTitleProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});Nf.displayName="PopoverTitle";var Nm=p1(),Ng=(0,c0.forwardRef)((e,t)=>{let[r,n]=Nm(e,["value"]),i=Iw(),a=vd(),l=i.getTriggerProps(r),o=(0,p8.v)({...l,"aria-controls":a.unmounted?void 0:l["aria-controls"]},n);return(0,eB.Y)(fr.button,{...o,ref:t})});Ng.displayName="PopoverTrigger";var NC=pq({Anchor:()=>IS,Arrow:()=>IE,ArrowTip:()=>Ik,CloseTrigger:()=>IP,Content:()=>ID,Context:()=>IA,Description:()=>IT,Indicator:()=>IM,Positioner:()=>IL,Root:()=>Nh,RootProvider:()=>Np,Title:()=>Nf,Trigger:()=>Ng});let Nv={gutter:8,offset:{mainAxis:12}},Ny=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(11),{children:a,open:l,onOpenChange:o,ids:s,positioning:c,"data-testid":d}=e,u=m5(),h=d??u;i[0]!==o?(t=e=>{let{open:t}=e;o?.(t)},i[0]=o,i[1]=t):t=i[1];let p=t,f=c??Nv;return i[2]!==a||i[3]!==p||i[4]!==s||i[5]!==l||i[6]!==f?(r=(0,eB.Y)(NC.Root,{positioning:f,open:l,onOpenChange:p,ids:s,lazyMount:!0,unmountOnExit:!0,children:a}),i[2]=a,i[3]=p,i[4]=s,i[5]=l,i[6]=f,i[7]=r):r=i[7],i[8]!==r||i[9]!==h?(n=(0,eB.Y)(m3,{value:h,children:r}),i[8]=r,i[9]=h,i[10]=n):n=i[10],n},"Popover");Ny.displayName="Popover";let Nb=(0,c0.createContext)(null),Nx=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(14),{children:o,open:s,onOpenChange:c,"data-testid":d}=e,u=m5("permissions",d),h=(0,c0.useId)();return l[0]!==h?(t={triggerId:h},l[0]=h,l[1]=t):t=l[1],l[2]!==h?(r={trigger:h},l[2]=h,l[3]=r):r=l[3],l[4]===Symbol.for("react.memo_cache_sentinel")?(n={placement:"top-start",gutter:8},l[4]=n):n=l[4],l[5]!==o||l[6]!==c||l[7]!==s||l[8]!==r||l[9]!==u?(i=(0,eB.Y)(Ny,{"data-testid":u,ids:r,positioning:n,open:s,onOpenChange:c,children:o}),l[5]=o,l[6]=c,l[7]=s,l[8]=r,l[9]=u,l[10]=i):i=l[10],l[11]!==t||l[12]!==i?(a=(0,eB.Y)(Nb.Provider,{value:t,children:i}),l[11]=t,l[12]=i,l[13]=a):a=l[13],a},"ChatPermissions");Nx.displayName="ChatPermissions";let NO=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f=(0,ej.c)(27);f[0]!==e?({ref:i,children:t,minHeight:n,maxHeight:l,minWidth:o,maxWidth:s,className:r,"data-testid":c,...a}=e,f[0]=e,f[1]=t,f[2]=r,f[3]=n,f[4]=i,f[5]=a,f[6]=l,f[7]=o,f[8]=s,f[9]=c):(t=f[1],r=f[2],n=f[3],i=f[4],a=f[5],l=f[6],o=f[7],s=f[8],c=f[9]);let m=void 0===l?"560px":l,g=void 0===o?"256px":o,C=void 0===s?"560px":s,v=m5("content",c),{getContentProps:y}=Iw();f[10]!==y?(d=y(),f[10]=y,f[11]=d):d=f[11];let{id:b}=d,x=w$(i);f[12]!==m||f[13]!==C||f[14]!==n||f[15]!==g?(u={"--popover-min-height":n,"--popover-max-height":m,"--popover-min-width":g,"--popover-max-width":C},f[12]=m,f[13]=C,f[14]=n,f[15]=g,f[16]=u):u=f[16];let O=u;return f[17]!==r?(h=(0,m2.cn)("flex flex-col overflow-auto","min-w-(--popover-min-width)","max-w-[clamp(var(--popover-min-width),var(--available-width),var(--popover-max-width))]","min-h-(--popover-min-height)","max-h-[clamp(var(--popover-min-height,0px),var(--available-height),var(--popover-max-height))]","p-12 bg-bg-surface-2 rounded-12 border border-border-primary-light shadow-md text-text-primary","z-[calc(var(--drawer-positioner-z-index)+(var(--layer-index,0)*var(--drawer-level-ratio)))]","overscroll-contain","animate-in fade-in-0 zoom-in-95 origin-[--radix-tooltip-content-transform-origin]","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2",r),f[17]=r,f[18]=h):h=f[18],f[19]!==t||f[20]!==x||f[21]!==b||f[22]!==a||f[23]!==O||f[24]!==h||f[25]!==v?(p=(0,eB.Y)(bh,{children:(0,eB.Y)(NC.Positioner,{children:(0,eB.Y)(NC.Content,{"data-slot":"popover-content",...a,ref:x,id:b,"data-testid":v,style:O,className:h,children:t})})}),f[19]=t,f[20]=x,f[21]=b,f[22]=a,f[23]=O,f[24]=h,f[25]=v,f[26]=p):p=f[26],p},"PopoverContent");NO.displayName="PopoverContent";let Nw=(0,m9.F)("w-320 gap-1 p-8"),NS=(0,m9.F)("w-full items-start justify-between gap-4 rounded-6 px-8 py-6 hover:bg-states-primary-hover"),NE=(0,m9.F)("truncate text-xs text-text-secondary"),Nk=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(17);s[0]!==e?({label:i,className:r,children:t,...n}=e,s[0]=e,s[1]=t,s[2]=r,s[3]=n,s[4]=i):(t=s[1],r=s[2],n=s[3],i=s[4]);let c=void 0===i?"Always allowed in this conversation":i,d=(0,c0.useId)(),u=null!=c&&!1!==c&&""!==c,h=u?d:void 0;return s[5]!==r?(a=(0,m2.cn)(Nw(),r),s[5]=r,s[6]=a):a=s[6],s[7]!==u||s[8]!==c||s[9]!==d?(l=u&&(0,eB.Y)("p",{id:d,className:(0,SE.d)(),children:c}),s[7]=u,s[8]=c,s[9]=d,s[10]=l):l=s[10],s[11]!==t||s[12]!==n||s[13]!==h||s[14]!==a||s[15]!==l?(o=(0,eB.FD)(NO,{"aria-labelledby":h,...n,"data-slot":"chat-permissions-content",minWidth:"320px",maxWidth:"320px",className:a,children:[l,t]}),s[11]=t,s[12]=n,s[13]=h,s[14]=a,s[15]=l,s[16]=o):o=s[16],o},"ChatPermissionsContent");Nk.displayName="ChatPermissionsContent";var[NP,ND]=(0,ua.q)({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),NA=e=>e.children(ND()),NT=(0,c0.forwardRef)((e,t)=>{let r=ND(),n=(0,p8.v)(r.getControlProps(),e);return(0,eB.Y)(fr.span,{...n,ref:t})});NT.displayName="SwitchControl";var NM=i("M3"),NL=(0,c0.forwardRef)((e,t)=>{let r=ND(),n=(0,p8.v)(r.getHiddenInputProps(),e),i=(0,NM.f)();return(0,eB.Y)(fr.input,{"aria-describedby":i?.ariaDescribedby,...n,ref:t})});NL.displayName="SwitchHiddenInput";var NI=(0,c0.forwardRef)((e,t)=>{let r=ND(),n=(0,p8.v)(r.getLabelProps(),e);return(0,eB.Y)(fr.span,{...n,ref:t})});function NN(e){let{pointerNode:t,keyboardNode:r=t,onPress:n,onPressStart:i,onPressEnd:a,isValidKey:l=e=>"Enter"===e.key}=e;if(!t)return uI;let o=u6(t),s=uI,c=uI,d=uI,u=e=>({point:f$(e),event:e});function h(e){a?.(u(e))}let p=fH(t,"pointerdown",e=>{c(),c=uL(fH(o,"pointerup",e=>{u7(t,fP(e))?n?.(u(e)):a?.(u(e))},{passive:!n,once:!0}),fH(o,"pointercancel",h,{passive:!a,once:!0})),u3(r)&&"mouse"===e.pointerType&&e.preventDefault(),i?.(u(e))},{passive:!i});return s=uL(p,fH(r,"focus",function(){d=uL(fH(r,"keydown",e=>{var t;l(e)&&(c(),c=fH(r,"keyup",e=>{if(!l(e))return;let t=u(new o.PointerEvent("pointerup"));n?.(t),a?.(t)}),t=new o.PointerEvent("pointerdown"),i?.(u(t)))}),fH(r,"blur",()=>{h(new o.PointerEvent("pointercancel"))}))})),()=>{s(),c(),d()}}NI.displayName="SwitchLabel";var NF=e=>e.ids?.root??`switch:${e.id}`,NR=e=>e.ids?.label??`switch:${e.id}:label`,NV=e=>e.ids?.thumb??`switch:${e.id}:thumb`,N_=e=>e.ids?.control??`switch:${e.id}:control`,NY=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,N$=e=>e.getById(NF(e)),NH=e=>e.getById(NY(e)),{not:Nz}=uS(),NZ=uE({props:({props:e})=>({defaultChecked:!1,label:"switch",value:"on",...e}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),computed:{isDisabled:({context:e,prop:t})=>t("disabled")||e.get("fieldsetDisabled")},watch({track:e,prop:t,context:r,action:n}){e([()=>t("disabled")],()=>{n(["removeFocusIfNeeded"])}),e([()=>r.get("checked")],()=>{n(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:Nz("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:Nz("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({computed:e,scope:t,context:r}){if(!e("isDisabled"))return NN({pointerNode:N$(t),keyboardNode:NH(t),isValidKey:e=>" "===e.key,onPress:()=>r.set("active",!1),onPressStart:()=>r.set("active",!0),onPressEnd:()=>r.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return v$({root:t.getRootNode()})},trackFormControlState:({context:e,send:t,scope:r})=>kZ(NH(r),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){t({type:"CHECKED.SET",checked:!!e.initial("checked"),src:"form-reset"})}})},actions:{setContext({context:e,event:t}){for(let r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,scope:t}){let r=NH(t);r&&k$(r,!!e.get("checked"))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.set("focused",!1)},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e}){e.set("checked",!e.get("checked"))},dispatchChangeEvent({context:e,scope:t}){queueMicrotask(()=>{kz(NH(t),{checked:e.get("checked")})})}}}}),NQ={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},NB=uZ("switch").parts("root","label","control","thumb").build(),Nj=p1(),NG=(0,c0.forwardRef)((e,t)=>{let[r,n]=Nj(e,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),i=(e=>{let t=(0,c0.useId)(),{getRootNode:r}=uo(),{dir:n}=uc(),i=(0,NM.f)();return function(e,t){let{context:r,send:n,prop:i,scope:a}=e,l=!!i("disabled"),o=!!i("readOnly"),s=!!i("required"),c=!!r.get("checked"),d=!l&&r.get("focused"),u=!l&&r.get("focusVisible"),h={"data-active":uF(!l&&r.get("active")),"data-focus":uF(d),"data-focus-visible":uF(u),"data-readonly":uF(o),"data-hover":uF(r.get("hovered")),"data-disabled":uF(l),"data-state":c?"checked":"unchecked","data-invalid":uF(i("invalid")),"data-required":uF(s)};return{checked:c,disabled:l,focused:d,setChecked(e){n({type:"CHECKED.SET",checked:e,isTrusted:!1})},toggleChecked(){n({type:"CHECKED.TOGGLE",checked:c,isTrusted:!1})},getRootProps:()=>t.label({...NB.root.attrs,...h,dir:i("dir"),id:NF(a),htmlFor:NY(a),onPointerMove(){l||n({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){l||n({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(e){l||(fP(e)===NH(a)&&e.stopPropagation(),fE()&&eI.getHiddenInputEl(a)?.focus())}}),getLabelProps:()=>t.element({...NB.label.attrs,...h,dir:i("dir"),id:NR(a)}),getThumbProps:()=>t.element({...NB.thumb.attrs,...h,dir:i("dir"),id:NV(a),"aria-hidden":!0}),getControlProps:()=>t.element({...NB.control.attrs,...h,dir:i("dir"),id:N_(a),"aria-hidden":!0}),getHiddenInputProps:()=>t.input({id:NY(a),type:"checkbox",required:i("required"),defaultChecked:c,disabled:l,"aria-labelledby":NR(a),"aria-invalid":i("invalid"),name:i("name"),form:i("form"),value:i("value"),style:NQ,onFocus(){n({type:"CONTEXT.SET",context:{focused:!0,focusVisible:vY()}})},onBlur(){n({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(e){o?e.preventDefault():n({type:"CHECKED.SET",checked:e.currentTarget.checked,isTrusted:!0})}})}}(hk(NZ,{id:t,ids:{label:i?.ids.label,hiddenInput:i?.ids.control},dir:n,disabled:i?.disabled,readOnly:i?.readOnly,invalid:i?.invalid,required:i?.required,getRootNode:r,...e}),hA)})(r),a=(0,p8.v)(i.getRootProps(),n);return(0,eB.Y)(NP,{value:i,children:(0,eB.Y)(fr.label,{...a,ref:t})})});NG.displayName="SwitchRoot";var NU=p1(),NW=(0,c0.forwardRef)((e,t)=>{let[{value:r},n]=NU(e,["value"]),i=(0,p8.v)(r.getRootProps(),n);return(0,eB.Y)(NP,{value:r,children:(0,eB.Y)(fr.label,{...i,ref:t})})});NW.displayName="SwitchRootProvider";var Nq=(0,c0.forwardRef)((e,t)=>{let r=ND(),n=(0,p8.v)(r.getThumbProps(),e);return(0,eB.Y)(fr.span,{...n,ref:t})});Nq.displayName="SwitchThumb";var NX=pq({Context:()=>NA,Control:()=>NT,HiddenInput:()=>NL,Label:()=>NI,Root:()=>NG,RootProvider:()=>NW,Thumb:()=>Nq});let NK=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(9);a[0]!==e?({className:t,...r}=e,a[0]=e,a[1]=t,a[2]=r):(t=a[1],r=a[2]);let l=m5("label");return a[3]!==t?(n=(0,m2.cn)("flex items-center gap-4","font-sans text-sm font-normal text-text-primary",t),a[3]=t,a[4]=n):n=a[4],a[5]!==r||a[6]!==n||a[7]!==l?(i=(0,eB.Y)(NX.Label,{...r,"data-testid":l,className:n}),a[5]=r,a[6]=n,a[7]=l,a[8]=i):i=a[8],i},"SwitchLabel");NK.displayName="SwitchLabel";let NJ=(0,c0.createContext)({a11yMode:!1}),N1=(0,eQ.G)(()=>{let e,t,r,n,i,a=(0,ej.c)(12),l=ND(),{a11yMode:o}=(0,c0.useContext)(NJ),s=m5("control"),c=l.checked;return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,m2.cn)("relative flex items-center self-start my-2","w-34 h-20","rounded-8 overflow-hidden overlay transition-all data-focus-visible:ring-3","bg-component-switcher-bg","[&[data-hover]:not([data-active]):not([data-state=checked])]:overlay-states-primary-hover","[&[data-active]:not([data-state=checked])]:overlay-states-primary-pressed","[&[data-focus-visible]:not([data-state=checked])]:ring-focus-primary","data-[state=checked]:bg-bg-fill-brand","[&[data-hover]:not([data-active])[data-state=checked]]:overlay-states-on-fill-hover","[&[data-active][data-state=checked]]:overlay-states-on-fill-pressed","[&[data-focus-visible][data-state=checked]]:ring-focus-brand"),a[0]=e):e=a[0],a[1]!==o||a[2]!==c?(t=o&&!c&&(0,eB.Y)(cN.X,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-10 h-10 text-icon-secondary pointer-events-none z-0"}),a[1]=o,a[2]=c,a[3]=t):t=a[3],a[4]!==o||a[5]!==c?(r=o&&c&&(0,eB.Y)(t4,{className:"absolute left-2 top-1/2 -translate-y-1/2 w-10 h-10 text-white pointer-events-none z-0"}),a[4]=o,a[5]=c,a[6]=r):r=a[6],a[7]===Symbol.for("react.memo_cache_sentinel")?(n=(0,eB.Y)(NX.Thumb,{className:(0,m2.cn)("w-16 h-12","bg-icon-primary-alt rounded-4 shadow-sm transition-all relative z-[9]","translate-x-4","data-[state=checked]:translate-x-14")}),a[7]=n):n=a[7],a[8]!==t||a[9]!==r||a[10]!==s?(i=(0,eB.FD)(NX.Control,{"data-testid":s,className:e,children:[t,r,n]}),a[8]=t,a[9]=r,a[10]=s,a[11]=i):i=a[11],i},"SwitchControl");N1.displayName="SwitchControl";let N2=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h=(0,ej.c)(22);h[0]!==e?({children:t,className:r,a11yMode:i,"data-testid":a,...n}=e,h[0]=e,h[1]=t,h[2]=r,h[3]=n,h[4]=i,h[5]=a):(t=h[1],r=h[2],n=h[3],i=h[4],a=h[5]);let p=void 0!==i&&i;return h[6]!==p?(l={a11yMode:p},h[6]=p,h[7]=l):l=h[7],h[8]!==r?(o=(0,m2.cn)("items-center gap-x-8","[&:not(:has([data-part=description]))]:flex","[&:has([data-part=description])]:grid","[&:has([data-part=description])]:grid-cols-[40px_auto]","*:data-[part=description]:col-start-2 *:data-[part=description]:col-end-3","[&:not([data-disabled])]:cursor-pointer","data-disabled:opacity-50 data-disabled:pointer-events-none data-disabled:cursor-not-allowed",r),h[8]=r,h[9]=o):o=h[9],h[10]===Symbol.for("react.memo_cache_sentinel")?(s=(0,eB.Y)(NX.HiddenInput,{}),h[10]=s):s=h[10],h[11]!==t||h[12]!==n||h[13]!==o||h[14]!==a?(c=(0,eB.FD)(NX.Root,{...n,"data-testid":a,className:o,children:[t,s]}),h[11]=t,h[12]=n,h[13]=o,h[14]=a,h[15]=c):c=h[15],h[16]!==c||h[17]!==a?(d=(0,eB.Y)(m3,{value:a,children:c}),h[16]=c,h[17]=a,h[18]=d):d=h[18],h[19]!==l||h[20]!==d?(u=(0,eB.Y)(NJ.Provider,{value:l,children:d}),h[19]=l,h[20]=d,h[21]=u):u=h[21],u},"Switch");N2.displayName="Switch";let N0=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m=(0,ej.c)(28);m[0]!==e?({name:n,title:o,description:r,onCheckedChange:i,className:t,"data-testid":l,...a}=e,m[0]=e,m[1]=t,m[2]=r,m[3]=n,m[4]=i,m[5]=a,m[6]=l,m[7]=o):(t=m[1],r=m[2],n=m[3],i=m[4],a=m[5],l=m[6],o=m[7]);let g=m5("item",l);return m[8]!==n||m[9]!==i?(s=i&&(e=>{let{checked:t}=e;return i({checked:t,name:n})}),m[8]=n,m[9]=i,m[10]=s):s=m[10],m[11]!==t?(c=(0,m2.cn)(NS(),t),m[11]=t,m[12]=c):c=m[12],m[13]!==o?(d=(0,eB.Y)(NK,{children:o}),m[13]=o,m[14]=d):d=m[14],m[15]!==r?(u=null!=r&&(0,eB.Y)("span",{className:NE(),children:r}),m[15]=r,m[16]=u):u=m[16],m[17]!==d||m[18]!==u?(h=(0,eB.FD)("span",{className:"flex min-w-0 flex-1 flex-col",children:[d,u]}),m[17]=d,m[18]=u,m[19]=h):h=m[19],m[20]===Symbol.for("react.memo_cache_sentinel")?(p=(0,eB.Y)(N1,{}),m[20]=p):p=m[20],m[21]!==n||m[22]!==a||m[23]!==s||m[24]!==c||m[25]!==h||m[26]!==g?(f=(0,eB.FD)(N2,{...a,name:n,onCheckedChange:s,"data-slot":"chat-permissions-item","data-testid":g,className:c,children:[h,p]}),m[21]=n,m[22]=a,m[23]=s,m[24]=c,m[25]=h,m[26]=g,m[27]=f):f=m[27],f},"ChatPermissionsItem");N0.displayName="ChatPermissionsItem";let N3=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(8);a[0]!==e?({asChild:r,"data-testid":n,...t}=e,a[0]=e,a[1]=t,a[2]=r,a[3]=n):(t=a[1],r=a[2],n=a[3]);let l=void 0!==r&&r,o=m5("trigger",n);return a[4]!==l||a[5]!==t||a[6]!==o?(i=(0,eB.Y)(NC.Trigger,{...t,asChild:l,"data-testid":o}),a[4]=l,a[5]=t,a[6]=o,a[7]=i):i=a[7],i},"PopoverTrigger");N3.displayName="PopoverTrigger";let N5=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(25);u[0]!==e?({ref:r,children:t,"aria-label":i,"data-testid":a,...n}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5]);let h=void 0===i?"Permission settings":i,{triggerId:p}=(()=>{let e=(0,c0.useContext)(Nb);if(!e)throw Error("ChatPermissions parts must be rendered inside <ChatPermissions>");return e})(),{open:f}=Iw(),m=m5("trigger",a),g=m5("tooltip");return u[6]!==p?(l={trigger:p},u[6]=p,u[7]=l):l=u[7],u[8]!==t?(o=t??(0,eB.Y)(oq,{}),u[8]=t,u[9]=o):o=u[9],u[10]!==h||u[11]!==r||u[12]!==n||u[13]!==o||u[14]!==m||u[15]!==p?(s=(0,eB.Y)(N3,{asChild:!0,children:(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{type:"button",...n,ref:r,id:p,"data-slot":"chat-permissions-trigger","data-testid":m,variant:"ghost",color:"neutral",size:"small","aria-label":h,children:o})})}),u[10]=h,u[11]=r,u[12]=n,u[13]=o,u[14]=m,u[15]=p,u[16]=s):s=u[16],u[17]!==h||u[18]!==g?(c=(0,eB.Y)(bm,{"data-testid":g,children:h}),u[17]=h,u[18]=g,u[19]=c):c=u[19],u[20]!==f||u[21]!==l||u[22]!==s||u[23]!==c?(d=(0,eB.FD)(bC,{disabled:f,ids:l,children:[s,c]}),u[20]=f,u[21]=l,u[22]=s,u[23]=c,u[24]=d):d=u[24],d},"ChatPermissionsTrigger");N5.displayName="ChatPermissionsTrigger";var[N4,N7]=(0,ua.q)({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),[N9,N6]=(0,ua.q)({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),N8=e=>e.children(N6()),Fe=(0,c0.forwardRef)((e,t)=>{let r=N6(),n=(0,p8.v)(r.getControlProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});Fe.displayName="CheckboxControl";var Ft=uZ("checkbox").parts("root","label","control","indicator"),Fr=Ft.build(),Fn=Ft.extendWith("group"),[Fi,Fa]=(0,ua.q)({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1}),Fl=p1(),Fo=(0,c0.forwardRef)((e,t)=>{let[r,n]=Fl(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name","maxSelectedValues"]),i=function(e={}){let t=Fa(),{defaultValue:r,value:n,onValueChange:i,disabled:a=t?.disabled,readOnly:l,name:o,invalid:s=t?.invalid,maxSelectedValues:c}=e,d=!(a||l),[u,h]=function(e){let{value:t,onChange:r,defaultValue:n}=e,[i,a]=(0,c0.useState)(n),l=void 0!==t;return[l?t:i,(0,c0.useCallback)(e=>(l||a(e),r?.(e)),[l,r])]}({value:n,defaultValue:r||[],onChange:vm(i,{sync:!0})}),p=e=>u.some(t=>String(t)===String(e)),f=e=>{p(e)?C(e):g(e)},m=null!=c&&u.length>=c,g=e=>{!d||p(e)||m||h(u.concat(e))},C=e=>{d&&h(u.filter(t=>String(t)!==String(e)))};return{isChecked:p,value:u,name:o,disabled:!!a,readOnly:!!l,invalid:!!s,setValue:h,addValue:g,toggleValue:f,getItemProps:e=>{let t=null!=e.value?p(e.value):void 0;return{checked:t,onCheckedChange(){null!=e.value&&f(e.value)},name:o,disabled:a||m&&!t,readOnly:l,invalid:s}}}}(r);return(0,eB.Y)(N4,{value:i,children:(0,eB.Y)(fr.div,{ref:t,role:"group",...n,...Fn.build().group.attrs})})});Fo.displayName="CheckboxGroup";var Fs=p1(),Fc=(0,c0.forwardRef)((e,t)=>{let[r,n]=Fs(e,["value"]);return(0,eB.Y)(N4,{value:r.value,children:(0,eB.Y)(fr.div,{ref:t,role:"group",...n,...Fn.build().group.attrs})})});Fc.displayName="CheckboxGroupProvider";var Fd=(0,c0.forwardRef)((e,t)=>{let r=N6(),n=(0,p8.v)(r.getHiddenInputProps(),e),i=(0,NM.f)();return(0,eB.Y)(fr.input,{"aria-describedby":i?.ariaDescribedby,...n,ref:t})});Fd.displayName="CheckboxHiddenInput";var Fu=(0,c0.forwardRef)((e,t)=>{let{indeterminate:r,...n}=e,i=N6(),a=(0,p8.v)(i.getIndicatorProps(),n),l=r?i.indeterminate:i.checked;return(0,eB.Y)(fr.div,{...a,hidden:!l,ref:t})});Fu.displayName="CheckboxIndicator";var Fh=(0,c0.forwardRef)((e,t)=>{let r=N6(),n=(0,p8.v)(r.getLabelProps(),e);return(0,eB.Y)(fr.span,{...n,ref:t})});Fh.displayName="CheckboxLabel";var Fp=e=>e.ids?.root??`checkbox:${e.id}`,Ff=e=>e.ids?.label??`checkbox:${e.id}:label`,Fm=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,Fg=e=>e.getById(Fm(e)),{not:FC}=uS(),Fv=uE({props:({props:e})=>({value:"on",...e,defaultChecked:e.defaultChecked??!1}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),watch({track:e,context:t,prop:r,action:n}){e([()=>r("disabled")],()=>{n(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{n(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:FC("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:FC("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>Fy(e.get("checked")),checked:({context:e})=>{var t;return!Fy(t=e.get("checked"))&&!!t},disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:r}){if(!t("disabled"))return NN({pointerNode:r.getById(Fp(r)),keyboardNode:Fg(r),isValidKey:e=>" "===e.key,onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return v$({root:t.getRootNode?.()})},trackFormControlState:({context:e,scope:t})=>kZ(Fg(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("checked",e.initial("checked"))}})},actions:{setContext({context:e,event:t}){for(let r in t.context)e.set(r,t.context[r])},syncInputElement({context:e,computed:t,scope:r}){let n=Fg(r);n&&(k$(n,t("checked")),n.indeterminate=Fy(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){let r=!!Fy(t("checked"))||!t("checked");e.set("checked",r)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{kz(Fg(t),{checked:e("checked")})})}}}});function Fy(e){return"indeterminate"===e}var Fb=p1(),Fx=(0,c0.forwardRef)((e,t)=>{let[r,n]=Fb(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),i=((e={})=>{let t=N7(),r=(0,NM.f)(),n=(0,c0.useMemo)(()=>(0,p8.v)(t?.getItemProps({value:e.value})??{},e),[e,t]),i=(0,c0.useId)(),{getRootNode:a}=uo(),{dir:l}=uc();return function(e,t){let{send:r,context:n,prop:i,computed:a,scope:l}=e,o=!!i("disabled"),s=!!i("readOnly"),c=!!i("required"),d=!!i("invalid"),u=!o&&n.get("focused"),h=!o&&n.get("focusVisible"),p=a("checked"),f=a("indeterminate"),m=n.get("checked"),g={"data-active":uF(n.get("active")),"data-focus":uF(u),"data-focus-visible":uF(h),"data-readonly":uF(s),"data-hover":uF(n.get("hovered")),"data-disabled":uF(o),"data-state":f?"indeterminate":p?"checked":"unchecked","data-invalid":uF(d),"data-required":uF(c)};return{checked:p,disabled:o,indeterminate:f,focused:u,checkedState:m,setChecked(e){r({type:"CHECKED.SET",checked:e,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:p,isTrusted:!1})},getRootProps:()=>t.label({...Fr.root.attrs,...g,dir:i("dir"),id:Fp(l),htmlFor:Fm(l),onPointerMove(){o||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){o||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(e){fP(e)===Fg(l)&&e.stopPropagation()}}),getLabelProps:()=>t.element({...Fr.label.attrs,...g,dir:i("dir"),id:Ff(l)}),getControlProps:()=>t.element({...Fr.control.attrs,...g,dir:i("dir"),id:l.ids?.control??`checkbox:${l.id}:control`,"aria-hidden":!0}),getIndicatorProps:()=>t.element({...Fr.indicator.attrs,...g,dir:i("dir"),hidden:!f&&!p}),getHiddenInputProps:()=>t.input({id:Fm(l),type:"checkbox",required:i("required"),defaultChecked:p,disabled:o,"aria-labelledby":Ff(l),"aria-invalid":d,name:i("name"),form:i("form"),value:i("value"),style:NQ,onFocus(){r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:vY()}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(e){s?e.preventDefault():r({type:"CHECKED.SET",checked:e.currentTarget.checked,isTrusted:!0})}})}}(hk(Fv,{id:i,ids:{label:r?.ids.label,hiddenInput:r?.ids.control},dir:l,disabled:r?.disabled,readOnly:r?.readOnly,invalid:r?.invalid,required:r?.required,getRootNode:a,...n}),hA)})(r),a=(0,p8.v)(i.getRootProps(),n);return(0,eB.Y)(N9,{value:i,children:(0,eB.Y)(fr.label,{...a,ref:t})})});Fx.displayName="CheckboxRoot";var FO=p1(),Fw=(0,c0.forwardRef)((e,t)=>{let[{value:r},n]=FO(e,["value"]),i=(0,p8.v)(r.getRootProps(),n);return(0,eB.Y)(N9,{value:r,children:(0,eB.Y)(fr.label,{...i,ref:t})})});Fw.displayName="CheckboxRootProvider";var FS=pq({Context:()=>N8,Control:()=>Fe,Group:()=>Fo,GroupProvider:()=>Fc,HiddenInput:()=>Fd,Indicator:()=>Fu,Label:()=>Fh,Root:()=>Fx,RootProvider:()=>Fw});let FE=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(16);c[0]!==e?({children:t,ref:n,"data-testid":i,...r}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=i):(t=c[1],r=c[2],n=c[3],i=c[4]);let d=N7()?{ids:{}}:void 0;return c[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,m2.cn)("items-center gap-x-8","[&:not(:has([data-part=description]))]:flex","[&:has([data-part=description])]:grid","[&:has([data-part=description])]:grid-cols-[16px_auto]","*:data-[part=description]:col-start-2 *:data-[part=description]:col-end-3","[&:not([data-disabled])]:cursor-pointer","data-disabled:pointer-none data-disabled:cursor-not-allowed"),c[5]=a):a=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,eB.Y)(FS.HiddenInput,{}),c[6]=l):l=c[6],c[7]!==t||c[8]!==d||c[9]!==r||c[10]!==n||c[11]!==i?(o=(0,eB.FD)(FS.Root,{...d,...r,ref:n,"data-testid":i,className:a,children:[t,l]}),c[7]=t,c[8]=d,c[9]=r,c[10]=n,c[11]=i,c[12]=o):o=c[12],c[13]!==o||c[14]!==i?(s=(0,eB.Y)(m3,{value:i,children:o}),c[13]=o,c[14]=i,c[15]=s):s=c[15],s},"Checkbox");FE.displayName="Checkbox";let Fk=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),n=m5("description");return r[0]!==e||r[1]!==n?(t=(0,eB.Y)(bk.E,{...e,"data-testid":n,size:"sm",weight:"regular",color:"secondary","data-scope":"checkbox","data-part":"description"}),r[0]=e,r[1]=n,r[2]=t):t=r[2],t},"CheckboxDescription");Fk.displayName="CheckboxDescription";let FP=(0,m9.F)("flex flex-col gap-8",{variants:{variant:{default:(0,m2.cn)("data-disabled:[&_[data-part=root]]:opacity-50"),card:(0,m2.cn)("[&_[data-part=root]]:py-12 [&_[data-part=root]]:pl-12 [&_[data-part=root]]:pr-16","[&_[data-part=root]]:rounded-8 [&_[data-part=root]]:border [&_[data-part=root]]:bg-bg-surface-2","[&_[data-part=root]]:transition-colors [&_[data-part=root]]:overlay","[&_[data-part=root][data-state=unchecked]]:border-border-primary","[&_[data-part=root][data-state=unchecked]:not([data-disabled])]:hover:overlay-states-primary-hover","[&_[data-part=root][data-state=unchecked]:not([data-disabled])]:active:overlay-states-primary-pressed","[&_[data-part=root][data-state=checked]]:border-border-brand","[&_[data-part=root][data-state=checked]:not([data-disabled])]:hover:overlay-states-brand-hover","[&_[data-part=root][data-state=checked]:not([data-disabled])]:active:overlay-states-brand-pressed","[&_[data-part=root][data-state=indeterminate]]:border-border-brand","[&_[data-part=root][data-state=indeterminate]:not([data-disabled])]:hover:overlay-states-brand-hover","[&_[data-part=root][data-state=indeterminate]:not([data-disabled])]:active:overlay-states-brand-pressed","[&_[data-part=root][data-disabled]]:[&_[data-part=label]]:opacity-50","[&_[data-part=root][data-disabled]]:[&_[data-part=description]]:opacity-50","[&_[data-part=root][data-disabled]]:[&_[data-part=control]]:opacity-50")}}}),FD=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(10);l[0]!==e?({variant:r,"data-testid":n,...t}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=n):(t=l[1],r=l[2],n=l[3]);let o=void 0===r?"default":r,s=m5("group",n);return l[4]!==o?(i=(0,m2.cn)(FP({variant:o})),l[4]=o,l[5]=i):i=l[5],l[6]!==t||l[7]!==i||l[8]!==s?(a=(0,eB.Y)(FS.Group,{...t,"data-testid":s,className:i}),l[6]=t,l[7]=i,l[8]=s,l[9]=a):a=l[9],a},"CheckboxGroup");FD.displayName="CheckboxGroup",Object.assign(FD,{fieldSlot:"checkbox-group"});let FA=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(3);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eB.Y)("rect",{x:"3.5",y:"10.5",width:"17",height:"3",rx:"0.75",fill:"currentColor"}),n[0]=t):t=n[0],n[1]!==e?(r=(0,eB.Y)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":!0,focusable:!1,...e,children:t}),n[1]=e,n[2]=r):r=n[2],r},"IndeterminateIcon"),FT=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(3);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eB.Y)("path",{d:"M18.9395 4.93946C19.5253 4.35368 20.4748 4.35368 21.0606 4.93946C21.6462 5.52526 21.6463 6.47482 21.0606 7.06056L10.0606 18.0606C9.47485 18.6463 8.52529 18.6462 7.93949 18.0606L2.93949 13.0606C2.3537 12.4748 2.3537 11.5253 2.93949 10.9395C3.52528 10.3537 4.4748 10.3537 5.06058 10.9395L9.00004 14.8789L18.9395 4.93946Z",fill:"currentColor"}),n[0]=t):t=n[0],n[1]!==e?(r=(0,eB.Y)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":!0,focusable:!1,...e,children:t}),n[1]=e,n[2]=r):r=n[2],r},"CheckIcon"),FM=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(10);l[0]!==e?({checkedState:r,...t}=e,l[0]=e,l[1]=t,l[2]=r):(t=l[1],r=l[2]);let o=void 0!==r&&r;l[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,m2.cn)("flex items-center justify-center self-start my-2","w-16 h-16","rounded-4 shadow-xs overlay transition-all data-focus-visible:ring-3","[&_svg]:icon-sm [&_svg]:text-icon-primary-alt [&_svg]:shrink-0 [&_svg]:pointer-events-none","bg-bg-surface-3 border border-border-primary","[&[data-hover]:not([data-active]):not([data-state=checked]):not([data-state=indeterminate])]:bg-states-primary-hover","[&[data-active]:not([data-state=checked]):not([data-state=indeterminate])]:bg-states-primary-pressed","[&[data-focus-visible]:not([data-state=checked]):not([data-state=indeterminate])]:ring-focus-primary","data-[state=checked]:bg-bg-fill-brand","data-[state=checked]:border-bg-fill-brand","data-[state=checked]:border-none","data-[state=indeterminate]:bg-bg-fill-brand","data-[state=indeterminate]:border-bg-fill-brand","data-[state=indeterminate]:border-none","[&[data-hover]:not([data-active]):is([data-state=checked])]:overlay-states-on-fill-hover","[&[data-hover]:not([data-active]):is([data-state=indeterminate])]:overlay-states-on-fill-hover","[&[data-active][data-state=checked]]:overlay-states-on-fill-pressed","[&[data-active][data-state=indeterminate]]:overlay-states-on-fill-pressed","[&[data-focus-visible][data-state=checked]]:ring-focus-brand","[&[data-focus-visible][data-state=indeterminate]]:ring-focus-brand"),l[3]=n):n=l[3];let s="indeterminate"===o?"indeterminate":o?"checked":"unchecked";return l[4]!==o?(i="indeterminate"===o?(0,eB.Y)(FA,{}):!!o&&(0,eB.Y)(FT,{}),l[4]=o,l[5]=i):i=l[5],l[6]!==t||l[7]!==s||l[8]!==i?(a=(0,eB.Y)("div",{className:n,"data-state":s,...t,children:i}),l[6]=t,l[7]=s,l[8]=i,l[9]=a):a=l[9],a},"Checkmark"),FL=(0,eQ.G)(()=>{let e,t,r,n=(0,ej.c)(8),{getControlProps:i,checkedState:a}=N6(),l=m5("indicator");n[0]!==i?(e=i(),n[0]=i,n[1]=e):e=n[1];let o=e;return n[2]!==a||n[3]!==o?(t=(0,eB.Y)(FM,{...o,checkedState:a}),n[2]=a,n[3]=o,n[4]=t):t=n[4],n[5]!==t||n[6]!==l?(r=(0,eB.Y)("div",{"data-testid":l,className:"flex items-center justify-center self-start",children:t}),n[5]=t,n[6]=l,n[7]=r):r=n[7],r},"CheckboxIndicator");FL.displayName="CheckboxIndicator";let FI=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(4),i=m5("label");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("flex gap-4","font-sans text-sm font-normal text-text-primary"),n[0]=t):t=n[0],n[1]!==e||n[2]!==i?(r=(0,eB.Y)(FS.Label,{...e,"data-testid":i,className:t}),n[1]=e,n[2]=i,n[3]=r):r=n[3],r},"CheckboxLabel");FI.displayName="CheckboxLabel";let FN=(0,m9.F)("font-mono",{variants:{size:{xs:"text-2xs leading-2xs",s:"text-xs leading-xs",m:"text-sm leading-sm",l:"text-base leading-sm"},weight:{light:"font-light",regular:"font-normal",medium:"font-medium",bold:"font-bold"},color:{primary:"text-text-primary","primary-alt":"text-text-primary-alt",secondary:"text-text-secondary",destructive:"text-text-danger"},italic:{true:"italic",false:"not-italic"},truncate:{true:"truncate"}},defaultVariants:{italic:!1}}),FF=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h=(0,ej.c)(22);h[0]!==e?({size:i,weight:a,color:l,italic:o,asChild:s,truncate:c,lineClamp:r,className:t,...n}=e,h[0]=e,h[1]=t,h[2]=r,h[3]=n,h[4]=i,h[5]=a,h[6]=l,h[7]=o,h[8]=s,h[9]=c):(t=h[1],r=h[2],n=h[3],i=h[4],a=h[5],l=h[6],o=h[7],s=h[8],c=h[9]);let p=void 0===i?"l":i,f=void 0===a?"regular":a,m=void 0===l?"primary":l,g=void 0!==o&&o,C=void 0!==c&&c,v=void 0!==s&&s?Ew.DX:"p";return h[10]!==t||h[11]!==m||h[12]!==g||h[13]!==r||h[14]!==p||h[15]!==C||h[16]!==f?(d=(0,m2.cn)(FN({size:p,weight:f,color:m,italic:g,truncate:C}),r&&`line-clamp-${r}`,t),h[10]=t,h[11]=m,h[12]=g,h[13]=r,h[14]=p,h[15]=C,h[16]=f,h[17]=d):d=h[17],h[18]!==v||h[19]!==n||h[20]!==d?(u=(0,eB.Y)(v,{...n,className:d}),h[18]=v,h[19]=n,h[20]=d,h[21]=u):u=h[21],u},"Code");FF.displayName="Code";let FR=(0,c0.createContext)(null),FV=e=>{let t=(0,c0.useContext)(FR);if(!t)throw Error(`${e} must be rendered inside <Conversation>`);return t},F_=(0,m9.F)("relative flex min-h-0 flex-1 flex-col"),FY=(0,m9.F)("[overflow-anchor:none] outline-none focus-visible:ring-3 focus-visible:ring-focus-primary focus-visible:ring-inset"),F$=(0,m9.F)("flex flex-col"),FH=(0,m9.F)("block shrink-0 outline-none focus-visible:ring-3 focus-visible:ring-focus-primary"),Fz=(0,m9.F)("flex flex-col"),FZ=(0,m9.F)("absolute bottom-12 left-1/2 flex -translate-x-1/2"),FQ=new Set(["ArrowUp","PageUp","Home"]),FB=e=>{e.scrollTop=e.scrollHeight},Fj=(e,t)=>{e.scrollTop=t},FG=1e3/60,FU=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p=(0,ej.c)(26);p[0]!==e?({ref:a,threshold:l,autoScrollKey:t,className:n,children:r,"data-testid":o,...i}=e,p[0]=e,p[1]=t,p[2]=r,p[3]=n,p[4]=i,p[5]=a,p[6]=l,p[7]=o):(t=p[1],r=p[2],n=p[3],i=p[4],a=p[5],l=p[6],o=p[7]);let f=void 0===l?70:l,m=m5(void 0,o),[g,C]=(0,c0.useState)(null),[v,y]=(0,c0.useState)(null),{isAtBottom:b,scrollToBottom:x}=function(e,t,r,n){let i,a,l,o,s,c,d=(0,ej.c)(13),[u,h]=(0,c0.useState)(!0),p=(0,c0.useRef)(!0),f=(0,c0.useRef)(null);d[0]!==t||d[1]!==e||d[2]!==r?(i=()=>{if(!e||!t)return;let n=e.scrollTop,i=e.scrollHeight,a=()=>e.scrollHeight-e.scrollTop-e.clientHeight<=r,l=0,o=0,s=0,c=()=>{n=e.scrollTop,i=e.scrollHeight,h(p.current&&0!==l||a())},d=()=>{let t=document.getSelection();return!!t&&!t.isCollapsed&&e.contains(t.anchorNode)},u=()=>{l&&cancelAnimationFrame(l),l=0,o=0},m=t=>{if(l=0,!p.current||d())return u();let r=e.scrollTop,n=e.scrollHeight-e.clientHeight-r;if(n<=1)return n>0&&Fj(e,r+n),u();let i=s&&t>s?Math.min(t-s,FG):FG;s=t,o=Math.min(3,Math.max(0,o+(4e-4*n-.04*o)*i)),l=requestAnimationFrame(m),Fj(e,r+Math.min(n,Math.max(1,o*i)))},g=()=>{!p.current||d()||("function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches?FB(e):l||(s=0,l=requestAnimationFrame(m)))};f.current=g;let C=()=>{let t=e.scrollHeight<i,r=e.scrollTop>=e.scrollHeight-e.clientHeight-1;t||r||!(e.scrollTop<n-1)?a()&&(p.current=!0):(p.current=!1,u()),c()},v=t=>{e.scrollTop>0&&!((e,t)=>{for(let r=e instanceof Element?e:null;r&&r!==t;r=r.parentElement)if(r.scrollTop>0)return!0;return!1})(t,e)&&(p.current=!1,u())},y=e=>{e.deltaY<0&&-e.deltaY>=Math.abs(e.deltaX)&&v(e.target)},b=t=>{let r;!t.defaultPrevented&&FQ.has(t.key)&&t.target instanceof Node&&e.contains(t.target)&&!((r=t.target)instanceof HTMLElement&&(r.isContentEditable||r.matches("input, textarea, select")))&&v(t.target)},x=0,O=e=>{x=e.touches[0]?.clientY??0},w=e=>{let t=e.touches[0]?.clientY??x;t>x&&v(e.target),x=t},S=new ResizeObserver(()=>{g(),c()});S.observe(t),S.observe(e),e.addEventListener("scroll",C,{passive:!0}),e.addEventListener("wheel",y,{passive:!0}),e.addEventListener("touchstart",O,{passive:!0}),e.addEventListener("touchmove",w,{passive:!0});let E=e.ownerDocument;return E.addEventListener("keydown",b),FB(e),c(),()=>{u(),f.current=null,S.disconnect(),e.removeEventListener("scroll",C),e.removeEventListener("wheel",y),e.removeEventListener("touchstart",O),e.removeEventListener("touchmove",w),E.removeEventListener("keydown",b)}},a=[e,t,r],d[0]=t,d[1]=e,d[2]=r,d[3]=i,d[4]=a):(i=d[3],a=d[4]),(0,c0.useEffect)(i,a);let m=(0,c0.useRef)(n);d[5]!==n?(l=()=>{Object.is(m.current,n)||(m.current=n,p.current=!0,f.current?.())},o=[n],d[5]=n,d[6]=l,d[7]=o):(l=d[6],o=d[7]),(0,c0.useEffect)(l,o),d[8]!==e?(s=t=>{e&&(p.current=!0,"smooth"===(void 0===t?"smooth":t)?f.current?.():FB(e))},d[8]=e,d[9]=s):s=d[9];let g=s;return d[10]!==u||d[11]!==g?(c={isAtBottom:u,scrollToBottom:g},d[10]=u,d[11]=g,d[12]=c):c=d[12],c}(g,v,f,t);return p[8]!==n?(s=(0,m2.cn)(F_(),n),p[8]=n,p[9]=s):s=p[9],p[10]!==b||p[11]!==g||p[12]!==x?(c={isAtBottom:b,scrollToBottom:x,scrollEl:g,setScrollEl:C,setContentEl:y},p[10]=b,p[11]=g,p[12]=x,p[13]=c):c=p[13],p[14]!==r||p[15]!==m?(d=(0,eB.Y)(m3,{value:m,children:r}),p[14]=r,p[15]=m,p[16]=d):d=p[16],p[17]!==c||p[18]!==d?(u=(0,eB.Y)(FR.Provider,{value:c,children:d}),p[17]=c,p[18]=d,p[19]=u):u=p[19],p[20]!==i||p[21]!==a||p[22]!==s||p[23]!==u||p[24]!==o?(h=(0,eB.Y)("div",{...i,ref:a,"data-slot":"conversation","data-testid":o,className:s,children:u}),p[20]=i,p[21]=a,p[22]=s,p[23]=u,p[24]=o,p[25]=h):h=p[25],h},"Conversation");FU.displayName="Conversation";let FW=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p=(0,ej.c)(26);p[0]!==e?({ref:a,className:r,contentClassName:n,children:t,...i}=e,p[0]=e,p[1]=t,p[2]=r,p[3]=n,p[4]=i,p[5]=a):(t=p[1],r=p[2],n=p[3],i=p[4],a=p[5]);let{setScrollEl:f,setContentEl:m}=FV("ConversationContent"),g=m5("end");return p[6]!==a||p[7]!==f?(l=g9(a,f),p[6]=a,p[7]=f,p[8]=l):l=p[8],p[9]!==r?(o=(0,m2.cn)(FY(),r),p[9]=r,p[10]=o):o=p[10],p[11]!==n?(s=(0,m2.cn)(F$(),n),p[11]=n,p[12]=s):s=p[12],p[13]!==t||p[14]!==m||p[15]!==s?(c=(0,eB.Y)("div",{ref:m,"data-slot":"conversation-content",className:s,children:t}),p[13]=t,p[14]=m,p[15]=s,p[16]=c):c=p[16],p[17]===Symbol.for("react.memo_cache_sentinel")?(d=FH(),p[17]=d):d=p[17],p[18]!==g?(u=(0,eB.Y)("span",{tabIndex:-1,"data-slot":"conversation-end","data-testid":g,className:d}),p[18]=g,p[19]=u):u=p[19],p[20]!==i||p[21]!==l||p[22]!==o||p[23]!==c||p[24]!==u?(h=(0,eB.FD)(L5,{tabIndex:-1,...i,ref:l,className:o,children:[c,u]}),p[20]=i,p[21]=l,p[22]=o,p[23]=c,p[24]=u,p[25]=h):h=p[25],h},"ConversationContent");FW.displayName="ConversationContent";let Fq=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(18);d[0]!==e?({ref:i,title:a,className:r,children:t,"data-testid":l,...n}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=n,d[4]=i,d[5]=a,d[6]=l):(t=d[1],r=d[2],n=d[3],i=d[4],a=d[5],l=d[6]);let u=void 0===a?"How can I help you today?":a,h=m5("empty-state",l);return d[7]!==r?(o=(0,m2.cn)(Fz(),r),d[7]=r,d[8]=o):o=d[8],d[9]!==t||d[10]!==u?(s=(0,eB.Y)(L7,{title:u,children:t}),d[9]=t,d[10]=u,d[11]=s):s=d[11],d[12]!==n||d[13]!==i||d[14]!==o||d[15]!==s||d[16]!==h?(c=(0,eB.Y)("div",{...n,ref:i,"data-slot":"conversation-empty-state","data-testid":h,className:o,children:s}),d[12]=n,d[13]=i,d[14]=o,d[15]=s,d[16]=h,d[17]=c):c=d[17],c},"ConversationEmptyState");Fq.displayName="ConversationEmptyState";let FX=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m=(0,ej.c)(31);m[0]!==e?({ref:a,id:r,label:l,className:t,onClick:n,"data-testid":o,...i}=e,m[0]=e,m[1]=t,m[2]=r,m[3]=n,m[4]=i,m[5]=a,m[6]=l,m[7]=o):(t=m[1],r=m[2],n=m[3],i=m[4],a=m[5],l=m[6],o=m[7]);let g=void 0===l?"Scroll to latest message":l,{isAtBottom:C,scrollToBottom:v,scrollEl:y}=FV("ConversationScrollButton"),b=m5("scroll-button",o),x=(0,c0.useId)(),O=r??x;return C?null:(m[8]===Symbol.for("react.memo_cache_sentinel")?(s=FZ(),m[8]=s):s=m[8],m[9]!==O?(c={trigger:O},m[9]=O,m[10]=c):c=m[10],m[11]!==n||m[12]!==y||m[13]!==v?(d=e=>{if(n?.(e),e.defaultPrevented)return;v("smooth");let t=y?.lastElementChild;(t instanceof HTMLElement?t:y)?.focus({preventScroll:!0})},m[11]=n,m[12]=y,m[13]=v,m[14]=d):d=m[14],m[15]===Symbol.for("react.memo_cache_sentinel")?(u=(0,eB.Y)(e6,{}),m[15]=u):u=m[15],m[16]!==t||m[17]!==g||m[18]!==i||m[19]!==a||m[20]!==d||m[21]!==b||m[22]!==O?(h=(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{type:"button","aria-label":g,...i,ref:a,id:O,variant:"outline",color:"neutral",size:"small","data-slot":"conversation-scroll-button","data-testid":b,className:t,onClick:d,children:u})}),m[16]=t,m[17]=g,m[18]=i,m[19]=a,m[20]=d,m[21]=b,m[22]=O,m[23]=h):h=m[23],m[24]!==g?(p=(0,eB.Y)(bm,{children:g}),m[24]=g,m[25]=p):p=m[25],m[26]!==c||m[27]!==h||m[28]!==p||m[29]!==b?(f=(0,eB.Y)("div",{"data-slot":"conversation-scroll-button-anchor",className:s,children:(0,eB.FD)(bC,{ids:c,"data-testid":b,children:[h,p]})}),m[26]=c,m[27]=h,m[28]=p,m[29]=b,m[30]=f):f=m[30],f)},"ConversationScrollButton");FX.displayName="ConversationScrollButton";let FK="u">typeof navigator&&void 0!==navigator.clipboard&&"function"==typeof navigator.clipboard.writeText;async function FJ(e){if(FK)try{await navigator.clipboard.writeText(e);return}catch{}!function(e){let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-9999px",t.setAttribute("aria-hidden","true"),t.tabIndex=-1,t.readOnly=!0,document.body.appendChild(t),t.select();try{return document.execCommand("copy")}catch{return!1}finally{document.body.removeChild(t)}}(e)}let F1=(0,c0.createContext)(null),F2=F1.Provider;function F0(){let e=(0,c0.useContext)(F1);if(!e)throw Error("useCopyable must be used within a <Copyable> component");return e}let F3=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(29),{text:h,tooltip:p,onCopied:f,resetDelay:m,children:g}=e,C=void 0===m?2e3:m,{copied:v,copy:y}=function(e){let t,r,n=(0,ej.c)(5),i=void 0===e?2e3:e,[a,l]=(0,c0.useState)(!1),o=(0,c0.useRef)(void 0);n[0]!==i?(t=e=>{FJ(e),l(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>l(!1),i)},n[0]=i,n[1]=t):t=n[1];let s=t;return n[2]!==a||n[3]!==s?(r={copied:a,copy:s},n[2]=a,n[3]=s,n[4]=r):r=n[4],r}(C),[b,x]=(0,c0.useState)(!1),[O,w]=(0,c0.useState)(!1),S=(0,c0.useRef)(void 0),E=b||O;u[0]!==y||u[1]!==f||u[2]!==C||u[3]!==h||u[4]!==p?(t=e=>{y("function"==typeof h?h():h),f?.(),p&&(w(!0),clearTimeout(S.current),S.current=setTimeout(()=>{w(!1)},C))},u[0]=y,u[1]=f,u[2]=C,u[3]=h,u[4]=p,u[5]=t):t=u[5];let k=t;u[6]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{x(e)},u[6]=r):r=u[6];let P=r;u[7]!==O?(n=()=>{if(!O)return;let e=!1,t=()=>{w(!1),clearTimeout(S.current)},r=requestAnimationFrame(()=>{document.addEventListener("pointerdown",t),e=!0});return()=>{cancelAnimationFrame(r),e&&document.removeEventListener("pointerdown",t)}},i=[O],u[7]=O,u[8]=n,u[9]=i):(n=u[8],i=u[9]),(0,c0.useEffect)(n,i);let D="string"==typeof p?p:"object"==typeof p?p.idle:"Click to copy",A="object"==typeof p?p.copied:"Copied";u[10]!==v?(a={copied:v},u[10]=v,u[11]=a):a=u[11];let T=a;u[12]!==g||u[13]!==k?(l=(0,eB.Y)(Ew.DX,{onClick:k,children:g}),u[12]=g,u[13]=k,u[14]=l):l=u[14];let M=l;if(!p){let e;return u[15]!==T||u[16]!==M?(e=(0,eB.Y)(F2,{value:T,children:M}),u[15]=T,u[16]=M,u[17]=e):e=u[17],e}u[18]!==M?(o=(0,eB.Y)(bo,{asChild:!0,children:M}),u[18]=M,u[19]=o):o=u[19];let L=v?A:D;return u[20]!==L?(s=(0,eB.Y)(bm,{children:L}),u[20]=L,u[21]=s):s=u[21],u[22]!==s||u[23]!==o||u[24]!==E?(c=(0,eB.FD)(bC,{open:E,onOpenChange:P,closeOnPointerDown:!1,children:[o,s]}),u[22]=s,u[23]=o,u[24]=E,u[25]=c):c=u[25],u[26]!==T||u[27]!==c?(d=(0,eB.Y)(F2,{value:T,children:c}),u[26]=T,u[27]=c,u[28]=d):d=u[28],d},"Copyable");F3.displayName="Copyable";let F5=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),{copied:n}=F0();return r[0]!==n||r[1]!==e?(t=n?(0,eB.Y)(t4,{...e}):(0,eB.Y)(rX,{...e}),r[0]=n,r[1]=e,r[2]=t):t=r[2],t},"CopyableIcon");F5.displayName="CopyableIcon";let F4=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(14),{idle:l,copied:o,className:s}=e,c=void 0===o?"Copied":o,{copied:d}=F0();a[0]!==s?(t=(0,m2.cn)("inline-grid [&>*]:col-start-1 [&>*]:row-start-1",s),a[0]=s,a[1]=t):t=a[1];let u=d||void 0,h=d?"invisible":void 0;a[2]!==l||a[3]!==u||a[4]!==h?(r=(0,eB.Y)("span",{"aria-hidden":u,className:h,children:l}),a[2]=l,a[3]=u,a[4]=h,a[5]=r):r=a[5];let p=!d||void 0,f=d?void 0:"invisible";return a[6]!==c||a[7]!==p||a[8]!==f?(n=(0,eB.Y)("span",{"aria-hidden":p,className:f,children:c}),a[6]=c,a[7]=p,a[8]=f,a[9]=n):n=a[9],a[10]!==t||a[11]!==r||a[12]!==n?(i=(0,eB.FD)("span",{"data-slot":"copyable-label",className:t,children:[r,n]}),a[10]=t,a[11]=r,a[12]=n,a[13]=i):i=a[13],i},"CopyableLabel");F4.displayName="CopyableLabel";let F7=(0,c0.createContext)(null);function F9(){let e=(0,c0.useContext)(F7);if(!e)throw Error("useCountryContext must be used within a Country component");return e}let F6={AF:{name:"Afghanistan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M144.7%200h222.6l37%20257.7-37%20254.3H144.7l-42.4-255.2z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M367.3%200H512v512H367.3z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h144.7v512H0z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22M256%20167a89%2089%200%201%200%200%20178%2089%2089%200%200%200%200-178zm0%20144.7a55.7%2055.7%200%201%201%200-111.4%2055.7%2055.7%200%200%201%200%20111.4z%22%2F%3E%3Cpath%20d%3D%22M256%20222.6c-12.3%200-22.3%2010-22.3%2022.3v33.4h44.6v-33.4c0-12.3-10-22.3-22.3-22.3z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},AX:{name:"Åland Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h100.2l68.3%2040.7L233.7%200H512v189.2l-45.5%2066%2045.5%2068.6V512H233.7l-65.8-39.2-67.7%2039.2H0V322.8l45.6-67.5L0%20189.2z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M100.2%200v189.2H0v33.4l23%2034-23%2032.8v33.4h100.2V512h33.4l33.9-22.6%2032.8%2022.6h33.4V323.8H512v-34.4l-24.2-32.2%2024.2-34.6v-33.4H233.7V0h-33.4l-32.6%2020-34.1-20z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M133.6%200v222.6H0v66.8h133.6V512h66.7V289.4H512v-66.8H200.3V0h-66.7z%22%2F%3E%3C%2Fsvg%3E"},AL:{name:"Albania",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M400.7%20190H308a33.3%2033.3%200%200%200-24.2-56.4%2033.3%2033.3%200%200%200-27.8%2014.9%2033.4%2033.4%200%201%200-52%2041.5h-92.7a45.8%2045.8%200%200%200%2046%2044.5h-1.5c0%2024.6%2020%2044.6%2044.5%2044.6%200%208%202.1%2015.4%205.8%2021.8l-37%2037%2028.4%2028.3%2040.2-40.2a30.5%2030.5%200%200%200%204.9%201.4l-24.3%2054.8L256%20423l37.7-40.8-24.3-54.8a30.4%2030.4%200%200%200%204.9-1.4l40.2%2040.2%2028.3-28.3-37-37a44.2%2044.2%200%200%200%205.9-21.8c24.5%200%2044.5-20%2044.5-44.6h-1.5c24.6%200%2046-19.9%2046-44.5z%22%2F%3E%3C%2Fsvg%3E"},DZ:{name:"Algeria",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h256l45.3%20251.8L256%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M256%200h256v512H256z%22%2F%3E%3Cg%20fill%3D%22%23d80027%22%3E%3Cpath%20d%3D%22m311%20206.9-21%2029-34-11%2021%2028.8-21%2029%2034-11.1%2021%2029v-35.8l34-11.1-34-11z%22%2F%3E%3Cpath%20d%3D%22M277.2%20328.3a72.3%2072.3%200%201%201%2034.5-136%2089%2089%200%201%200%200%20127.3%2072%2072%200%200%201-34.5%208.7z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},AS:{name:"American Samoa",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M512%2020.4V490L23.8%20255.8z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M445.2%20246.5h-30.5c8-9.6%207.5-23.7-1.5-32.7a24.2%2024.2%200%200%200%200-34.2l-.5.5a25%2025%200%200%200%20.5-34.8l-137%20137a23.9%2023.9%200%200%200%2034%200l2.6-2.5%2065.6-6v28.3h22.3v-30.2l33.4-3z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M278.3%20311.7%20256%20300.5l22.3-11.1H423v22.3z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200v512h512L28.7%20256.2%20512%200z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%200%200%20256l512%20256v-22L43.8%20256%20512%2020.4z%22%2F%3E%3C%2Fsvg%3E"},AD:{name:"Andorra",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h144.7l36%20254.6-36%20257.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M367.3%200H512v512H367.3l-29.7-257.3z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M144.7%200h222.6v512H144.7z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%20354.5V256h66.8v47.3zm-66.8-165.3H256V256h-66.8z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M289.4%20167a22.3%2022.3%200%200%200-33.4-19.3%2022.1%2022.1%200%200%200-11.1-3c-12.3%200-22.3%2010-22.3%2022.3H167v111.3c0%2041.4%2032.9%2065.4%2058.7%2077.8a22.1%2022.1%200%200%200-3%2011.2%2022.3%2022.3%200%200%200%2033.3%2019.3%2022.1%2022.1%200%200%200%2011.1%203%2022.3%2022.3%200%200%200%2019.2-33.5c25.8-12.4%2058.7-36.4%2058.7-77.8V167zm22.3%20111.3c0%205.8%200%2023.4-27.5%2040.9a136.5%20136.5%200%200%201-28.2%2013.3c-7-2.4-17.8-6.7-28.2-13.3-27.5-17.5-27.5-35.1-27.5-41v-77.9h111.4z%22%2F%3E%3C%2Fsvg%3E"},AO:{name:"Angola",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v256l-253%2036.6L0%20256z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20256h512v256H0z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22m220.9%20203.6%2021.7%2015.8-8.3%2025.5L256%20229l21.7%2015.7-8.3-25.5%2021.7-15.7h-26.8L256%20178l-8.3%2025.5z%22%2F%3E%3Cpath%20d%3D%22M320%20145.1a127.2%20127.2%200%200%200-64-17v33.3a94%2094%200%200%201%2047.3%2012.7%2094.7%2094.7%200%200%201-94.6%20163.8%2094%2094%200%200%201-31.6-29.8l-27.9%2018.4a128.1%20128.1%200%200%200%20217.7-6.5A128.1%20128.1%200%200%200%20320%20145.1z%22%2F%3E%3Cpath%20d%3D%22M182.2%20233.7a33.4%2033.4%200%200%200%2013.3%2045.4l108.4%2059.2c-7.4%2013.5-3.4%2030%2010%2037.3l29.3%2016a27.8%2027.8%200%200%200%2037.8-11l16-29.3z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},AI:{name:"Anguilla",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M445.2%20256.1zm-155.8%200z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M433%20293.6a62.4%2062.4%200%200%200%2012.2-37.5V144.8a55.4%2055.4%200%200%201-33.4%2011.1%2055.6%2055.6%200%200%201-44.5-22.2%2055.6%2055.6%200%200%201-44.5%2022.2%2055.4%2055.4%200%200%201-33.4-11.1v111.3c0%2015%205%2027.3%2012.3%2037.5h131.2z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M409.8%20235.5a91%2091%200%200%200%206.3-27.6c0-10.1-13.2-18.3-13.2-18.3s-13.2%208.2-13.2%2018.3a91%2091%200%200%200%206.3%2027.6l-7.6%2017.1a38.3%2038.3%200%200%200%2029%200zm-51.5-55.6a91%2091%200%200%200-27%208.3c-8.8%205-9.3%2020.5-9.3%2020.5s13.7%207.4%2022.4%202.3c5.5-3.1%2015-11.8%2020.8-19.2l18.6-2a38.4%2038.4%200%200%200-4.7-14%2038.4%2038.4%200%200%200-9.7-11.1zm-22.4%2072.2a91%2091%200%200%200%2020.7%2019.3c8.8%205%2022.5-2.3%2022.5-2.3s-.6-15.5-9.3-20.5a91%2091%200%200%200-27-8.4l-11.1-15.1a38.4%2038.4%200%200%200-9.7%2011%2038.4%2038.4%200%200%200-4.8%2014z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M299%20289.5c20.7%2033.3%2068.3%2044.5%2068.3%2044.5s47.6-11.2%2068.4-44.5H298.9Z%22%2F%3E%3C%2Fsvg%3E"},AG:{name:"Antigua and Barbuda",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20.4h512l-34%20229H36z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m367.3%20205.3-109.7%2019.4-112.9-19.4%2045.5-21.3-24.2-44%2049.3%209.4%206.3-49.9%2034.4%2036.7%2034.4-36.6%206.3%2050L346%20140l-24.2%2044z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M25.6%20205.3h466.8L257%20439.5z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M34%20307.4h446L256%20511.6z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22m0%20511.6%20256%20.4L0%20.4zm256%20.4%20256-.4V0z%22%2F%3E%3C%2Fsvg%3E"},AR:{name:"Argentina",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v144.7L488%20256l24%20111.3V512H0V367.3L26%20256%200%20144.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20144.7h512v222.6H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m332.4%20256-31.2%2014.7%2016.7%2030.3-34-6.5-4.2%2034.3-23.7-25.2-23.6%2025.2-4.3-34.3-34%206.5%2016.6-30.3-31.2-14.7%2031.3-14.7L194%20211l34%206.5%204.3-34.3%2023.6%2025.2%2023.6-25.2%204.4%2034.3%2034-6.5-16.7%2030.3z%22%2F%3E%3C%2Fsvg%3E"},AM:{name:"Armenia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20166.9%20253-26.7L512%20167v178l-261.1%2026L0%20344.8z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v166.9H0z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M0%20344.9h512V512H0z%22%2F%3E%3C%2Fsvg%3E"},AW:{name:"Aruba",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20322.8%20253.6-18.4L512%20322.8v33.4l-258%2015.3L0%20356.2zm0%2066.8%20257.2-13.8L512%20389.6V423l-253%2016.9L0%20423z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v322.8H0zm0%20356.2h512v33.4H0zM0%20423h512v89H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m117.3%20161.5-50-22.1%2050-22%2022-50.1%2022.2%2050%2050%2022-50%2022.2-22.1%2050z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m139.4%2094.9%2013.6%2030.9%2031%2013.6-31%2013.6-13.6%2031-13.6-31-31-13.6%2031-13.6z%22%2F%3E%3C%2Fsvg%3E"},AU:{name:"Australia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m400%20256%205%2017h18l-14%2010%205%2017-14-10-15%2010%206-17-15-10h18zm40-78%207%2015%2016-4-7%2015%2013%2010-16%203v17l-13-10-12%2010v-17l-16-3%2013-10-7-15%2015%204zm-57-67%207%2015%2016-4-7%2015%2013%2010-16%204v16l-13-10-12%2010v-16l-16-4%2012-10-7-15%2016%204zm-65%2089%207%2015%2016-4-7%2015%2012%2010-15%204v16l-13-10-13%2010v-16l-16-4%2013-10-7-15%2016%204zm65%20156%207%2015%2016-4-7%2015%2013%2010-16%203v17l-13-10-12%2010v-17l-16-3%2012-10-7-15%2016%204zm-229-56%2014%2030%2032-8-14%2030%2026%2020-32%207v33l-26-21-25%2021v-33l-32-7%2026-20-14-30%2031%208z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0H32zm96%20128%20128%20128v-31l-97-97h-31z%22%2F%3E%3C%2Fsvg%3E"},AT:{name:"Austria",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167l-23.2%2089.7L512%20345v167H0V345l29.4-89L0%20167z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20167h512v178H0z%22%2F%3E%3C%2Fsvg%3E"},AZ:{name:"Azerbaijan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20166.9%20253-31.8%20259%2031.8v178l-257.5%2037.4L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v166.9H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20344.9h512V512H0z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22M261.6%20328.2a72.3%2072.3%200%201%201%2034.4-136%2089%2089%200%201%200%200%20127.3%2072%2072%200%200%201-34.4%208.7z%22%2F%3E%3Cpath%20d%3D%22m317.2%20206%209.6%2026.8%2025.8-12.3-12.2%2025.8%2026.9%209.6-27%209.6%2012.3%2025.8-25.8-12.3-9.6%2027-9.6-27-25.8%2012.3%2012.3-25.8-27-9.6%2027-9.6-12.3-25.8%2025.8%2012.3z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},BS:{name:"Bahamas",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v167l-37.4%2089%2037.4%2089v167H0l49.6-252z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M108.3%20167H512v178H108.3z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200v512l256-256L0%200z%22%2F%3E%3C%2Fsvg%3E"},BH:{name:"Bahrain",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h182.5l88.1%20268.5-88%20243.5H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m182.5%200-82.3%2042.7%2082.3%2042.7-82.3%2042.6%2082.3%2042.7-82.3%2042.7%2082.3%2042.6-82.3%2042.7%2082.3%2042.7-82.3%2042.6%2082.3%2042.7-82.3%2042.7%2082.3%2042.6H512V0H182.5z%22%2F%3E%3C%2Fsvg%3E"},BD:{name:"Bangladesh",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Ccircle%20cx%3D%22200.3%22%20cy%3D%22256%22%20r%3D%22111.3%22%20fill%3D%22%23d80027%22%2F%3E%3C%2Fsvg%3E"},BB:{name:"Barbados",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h144.8l112.9%2036.7L367.4%200H512v512H367.4l-108.9-38.1L144.8%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M144.8%200h222.6v512H144.8z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m334.1%20155.8%2014.8%207.5-14.9-7.5-15-7.4c-.8%201.8-20.3%2041.4-23.5%20102h-22.7v-94.6l-16.7-22.2-16.7%2022.2v94.6h-22.7a278.3%20278.3%200%200%200-23.6-102l-29.8%2014.9c.2.4%2020.5%2041.7%2020.5%20103.8v16.7h55.6v94.6h33.4v-94.6h55.6v-16.7c0-32%205.6-58.6%2010.3-75.1%205-18%2010.2-28.6%2010.3-28.7l-15-7.5z%22%2F%3E%3C%2Fsvg%3E"},BY:{name:"Belarus",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h155.8l35%20254.6-35%20257.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M155.8%200H512v345.1l-183%2037.4-173.2-37.4z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M155.8%20345.1H512V512H155.8z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M50%20.2%2022.3%2050l27.8%2050.4L77.9%2050zm55.8%200L78%2050l27.7%2050.4%2028-50.4zM50%20137.5l-27.7%2049.6%2027.8%2050.5%2027.7-50.5zm55.8%200L78%20187.1l27.7%2050.5%2028-50.5zM50%20274.7l-27.7%2049.7%2027.8%2050.4%2027.8-50.4zm55.8%200L78%20324.4l27.7%2050.4%2028-50.4zM50%20412l-27.7%2049.6%2027.8%2050.5%2027.7-50.5zm55.8%200L78%20461.6l27.7%2050.5%2028-50.5z%22%2F%3E%3C%2Fsvg%3E"},BE:{name:"Belgium",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h167l38.2%20252.6L167%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M345%200h167v512H345l-36.7-256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M167%200h178v512H167z%22%2F%3E%3C%2Fsvg%3E"},BZ:{name:"Belize",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%2044.5%20257.8-23.7L512%2044.5v423l-252.5%2026L0%20467.5z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22122.4%22%20fill%3D%22%23eee%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22100.2%22%20fill%3D%22%236da544%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2266.8%22%20fill%3D%22%23eee%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%20239.3%20219.8%20256v27.8l36.2%2022.3%2036.2-22.3V256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M219.8%20222.6h72.4V256h-72.4z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h512v44.5H0zm0%20467.5h512V512H0z%22%2F%3E%3C%2Fsvg%3E"},BJ:{name:"Benin",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h189.2l54%20257.6-54%20254.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M189.2%200H512v256l-159%2053.5L189.1%20256z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M189.2%20256H512v256H189.2z%22%2F%3E%3C%2Fsvg%3E"},BM:{name:"Bermuda",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%200h256v512H0V256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h33.4l31.8%2016.4%2035-16.4H256v133.6l-9.3%2033.7%209.3%2041.5V256h-47.2l-39.3-7-35.9%207.1L0%20256V100.2l15.4-34.5L0%2033.4z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M445.2%20256.1zm-155.8%200z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m267%20235.5-102-102h-31.4L267%20267z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M33.4%200v33.4H0v66.8h33.4v170.6h66.8V100.2h170.2V33.4H100.2V0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M180.8%20133.6H256v75.2zm-47.2%2047.2v75.3l75.2-.1z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M289.4%20133.6V256c0%2059.6%20155.8%2059.6%20155.8%200V133.6z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M289.4%20256c0%2059.6%2077.9%2078%2077.9%2078s78-18.4%2078-78h-156z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22m367.3%20207-36.2%2015.6V256l36.2%2022.3%2036.2-22.3v-33.4z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M331.1%20189.2h72.4v33.4H331z%22%2F%3E%3C%2Fsvg%3E"},BT:{name:"Bhutan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512L281%20293.2%200%20512z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M506.7%200%200%20506.7v5.3h512V0h-5.3z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M398.2%20142V97.7h-85.3l-6.5%206.5c-23.2%2023.2-19.3%2050.2-16.5%2070%202.7%2018.3%203%2025.3-3.8%2032-6.8%207-14%206.6-32.2%204-19.7-3-46.8-6.8-70%2016.4-23.2%2023.2-19.3%2050.3-16.4%2070%202.6%2018.3%203%2025.4-4%2032.2-6.7%206.8-13.7%206.5-32%203.8-7.2-1-14.5-2-22.4-2.2l-.5%2044.6c5%200%2010.6.8%2016.5%201.7%207%201%2015%202.2%2023.5%202.2%208.7%200%2018-1.3%2027-5.2v35.6h66.8v-33.4H209v-22.2h22.3v-33.4h-18c.9-10.8-.6-21.2-2-30-2.5-18.4-3-25.4%204-32.2%206.8-6.8%2013.8-6.5%2032.2-3.8%2014.3%202%2032.6%204.7%2050.4-3v35.6h66.8v-33.4h-33.3V231h22.3v-33.4h-17.8a130%20130%200%200%200-2-30c-1.8-12.8-2.5-20-.4-25.6z%22%2F%3E%3C%2Fsvg%3E"},BO:{name:"Bolivia (Plurinational State of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20167%20252.9-29.3L512%20167v178l-255.7%2025.7L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},BQ:{name:"Bonaire, Sint Eustatius and Saba",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M113.7%20119.8%20276%200h236v31.7L306%20289.5%2031.6%20512H0V276z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200v276L276%200H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M512%2031.7%2031.7%20512H512V31.7z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m255%20245.7%2022.1-12-22-12a78%2078%200%200%200-65-65l-12-22-12%2022a78%2078%200%200%200-65%2065l-22%2012%2022%2012a78%2078%200%200%200%2065%2065l12%2022.1%2012-22a78%2078%200%200%200%2065-65zm-77%2032.6a44.5%2044.5%200%201%201%200-89%2044.5%2044.5%200%200%201%200%2089z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m178%20200.3%209.7%2016.7H207l-9.6%2016.7%209.6%2016.7h-19.3l-9.6%2016.7-9.7-16.7h-19.2l9.6-16.7-9.6-16.7h19.2z%22%2F%3E%3C%2Fsvg%3E"},BA:{name:"Bosnia and Herzegovina",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h445.3l33.9%20255-33.9%20257-323.7-134.3L0%2066.8z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%2066.8V512h445.4z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M445.3%200H512v512h-66.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m354.6%20456-8.3%2025.6h-26.8l21.7%2015.8-8.3%2025.5%2021.7-15.8%2021.7%2015.8-8.3-25.5%2021.7-15.8h-26.8zm-55-55.4-8.3%2025.5h-26.8l21.7%2015.8-8.3%2025.5%2021.7-15.8%2021.7%2015.8-8.3-25.5%2021.7-15.8h-26.8zM244.4%20345l-8.3%2025.5h-26.8l21.7%2015.8-8.3%2025.5%2021.7-15.8%2021.7%2015.8-8.3-25.5%2021.7-15.8h-26.8zm-55.1-55.7-8.3%2025.5h-26.8l21.7%2015.8-8.3%2025.5%2021.7-15.8L211%20356l-8.3-25.5%2021.7-15.8h-26.8zm-55.4-55.7-8.3%2025.5H98.8l21.7%2015.8-8.3%2025.5%2021.7-15.8%2021.7%2015.8-8.3-25.5L169%20259h-26.8zM78.7%20178l-8.3%2025.5H43.6l21.7%2015.8-8.3%2025.5L78.7%20229l21.7%2015.8-8.3-25.5%2021.7-15.8H87zm-55.2-55.7-8.3%2025.5h-26.8l21.7%2015.8L1.8%20189l21.7-15.8L45.2%20189l-8.3-25.5%2021.7-15.8H31.8z%22%2F%3E%3C%2Fsvg%3E"},BW:{name:"Botswana",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v178l-31%2076.9%2031%2079.1v178H0V334l37-80.7L0%20178z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m0%20211.5%20256-19.2%20256%2019.2v89l-254.6%2020.7L0%20300.5z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20178h512v33.5H0zm0%20122.5h512V334H0z%22%2F%3E%3C%2Fsvg%3E"},BV:{name:"Bouvet Island",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h100.2l66.1%2053.5L233.7%200H512v189.3L466.3%20257l45.7%2065.8V512H233.7l-68-50.7-65.5%2050.7H0V322.8l51.4-68.5-51.4-65z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M100.2%200v189.3H0v33.4l24.6%2033L0%20289.5v33.4h100.2V512h33.4l30.6-26.3%2036.1%2026.3h33.4V322.8H512v-33.4l-24.6-33.7%2024.6-33v-33.4H233.7V0h-33.4l-33.8%2025.3L133.6%200z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M133.6%200v222.7H0v66.7h133.6V512h66.7V289.4H512v-66.7H200.3V0z%22%2F%3E%3C%2Fsvg%3E"},BR:{name:"Brazil",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20100.2%20467.5%20256%20256%20411.8%2044.5%20256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M174.2%20221a87%2087%200%200%200-7.2%2036.3l162%2049.8a88.5%2088.5%200%200%200%2014.4-34c-40.6-65.3-119.7-80.3-169.1-52z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M255.7%20167a89%2089%200%200%200-41.9%2010.6%2089%2089%200%200%200-39.6%2043.4%20181.7%20181.7%200%200%201%20169.1%2052.2%2089%2089%200%200%200-9-59.4%2089%2089%200%200%200-78.6-46.8zM212%20250.5a149%20149%200%200%200-45%206.8%2089%2089%200%200%200%2010.5%2040.9%2089%2089%200%200%200%20120.6%2036.2%2089%2089%200%200%200%2030.7-27.3A151%20151%200%200%200%20212%20250.5z%22%2F%3E%3C%2Fsvg%3E"},IO:{name:"British Indian Ocean Territory",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h32l32%2032L96%200h160l12%208%2013-8h36l24%208%2025-8h36l25%208%2024-8h36l25%2022v34l-8%2017%208%2017v35l-8%2017%208%2017v34l-8%2017%208%2017v35l-8%2017%208%2017v34l-8%2017%208%2018v34l-8%2017%208%2017v35l-8%2017%208%2017v10h-22l-21-8-20%208h-44l-21-8-21%208h-44l-20-8-21%208h-44l-21-8-20%208h-44l-21-8-21%208H64l-21-8-21%208H0v-10l8-17-8-17v-35l8-17-8-17v-34l8-18-8-17v-34l8-17-8-17V96l32-32L0%2032Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200v22c21%200%2021%2019%2043%2019%2021%200%2021-19%2042-19%2022%200%2022%2019%2043%2019s21-19%2043-19c21%200%2021%2019%2042%2019%2022%200%2022-19%2043-19V0h-25c-4%204-9%207-18%207-8%200-13-3-18-7h-49c-4%204-9%207-18%207-8%200-14-3-18-7h-49c-5%204-10%207-18%207-9%200-14-3-18-7h-25zm0%2056v34c21%200%2021%2020%2043%2020%2021%200%2021-20%2042-20%2022%200%2022%2020%2043%2020s21-20%2043-20c21%200%2021%2020%2042%2020%2022%200%2022-20%2043-20V56c-21%200-21%2019-43%2019-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19zm0%2069v3h-83l83%2083v16c21%200%2021%2020%2043%2020%2021%200%2021-20%2042-20%2022%200%2022%2020%2043%2020s21-20%2043-20c21%200%2021%2020%2042%2020%2022%200%2022-20%2043-20v-34c-21%200-21%2020-43%2020-21%200-21-20-42-20-22%200-22%2020-43%2020s-21-20-43-20c-21%200-21%2020-42%2020-22%200-22-20-43-20v-34c21%200%2021%2019%2043%2019%2021%200%2021-19%2042-19%2022%200%2022%2019%2043%2019s21-19%2043-19c21%200%2021%2019%2042%2019%2022%200%2022-19%2043-19v-34c-21%200-21%2019-43%2019-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19zm-128%2048v83h83l-83-83zM0%20262v34c21%200%2021%2020%2043%2020%2021%200%2021-20%2042-20%2022%200%2022%2020%2043%2020s21-20%2043-20c21%200%2021%2020%2042%2020%2022%200%2022-20%2043-20s21%2020%2043%2020c21%200%2021-20%2042-20%2022%200%2022%2020%2043%2020s21-20%2043-20c21%200%2021%2020%2042%2020%2022%200%2022-20%2043-20v-34c-21%200-21%2019-43%2019-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19s-21%2019-43%2019c-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19zm0%2068v35c21%200%2021%2019%2043%2019%2021%200%2021-19%2042-19%2022%200%2022%2019%2043%2019s21-19%2043-19c21%200%2021%2019%2042%2019%2022%200%2022-19%2043-19s21%2019%2043%2019c21%200%2021-19%2042-19%2022%200%2022%2019%2043%2019s21-19%2043-19c21%200%2021%2019%2042%2019%2022%200%2022-19%2043-19v-35c-21%200-21%2020-43%2020-21%200-21-20-42-20-22%200-22%2020-43%2020s-21-20-43-20c-21%200-21%2020-42%2020-22%200-22-20-43-20s-21%2020-43%2020c-21%200-21-20-42-20-22%200-22%2020-43%2020s-21-20-43-20c-21%200-21%2020-42%2020-22%200-22-20-43-20zm0%2069v34c21%200%2021%2020%2043%2020%2021%200%2021-20%2042-20%2022%200%2022%2020%2043%2020s21-20%2043-20c21%200%2021%2020%2042%2020%2022%200%2022-20%2043-20s21%2020%2043%2020c21%200%2021-20%2042-20%2022%200%2022%2020%2043%2020s21-20%2043-20c21%200%2021%2020%2042%2020%2022%200%2022-20%2043-20v-34c-21%200-21%2019-43%2019-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19s-21%2019-43%2019c-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19zm0%2069v34c11%200%2016%205%2022%2010h42c5-5%2010-10%2021-10s17%205%2022%2010h42c5-5%2011-10%2022-10s16%205%2022%2010h41c6-5%2011-10%2022-10s16%205%2022%2010h42c5-5%2010-10%2021-10s17%205%2022%2010h42c5-5%2011-10%2022-10s16%205%2022%2010h41c6-5%2011-10%2022-10v-34c-21%200-21%2019-43%2019-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19s-21%2019-43%2019c-21%200-21-19-42-19-22%200-22%2019-43%2019s-21-19-43-19c-21%200-21%2019-42%2019-22%200-22-19-43-19z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M334%20134h100l-50%2050z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M373%20173h22v50l-11%208-11-8Zm0%20161h22v61h-22z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M451%20301a34%2034%200%200%200-56-25v-20h11v-22h-11v-11h-22v11h-11v22h11v20a34%2034%200%200%200-47%203%2033%2033%200%200%200%202%2046v20h112v-20c7-6%2011-14%2011-24z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M351%20289c-3%200-6%202-8%204-4%204-4%2012%200%2016l8%206v8h65v-8l8-6c4-4%204-12%200-16s-10-5-15-1l-15%2014h-21l-15-14a11%2011%200%200%200-7-3z%22%2F%3E%3C%2Fsvg%3E"},BN:{name:"Brunei Darussalam",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512v326.7l-19.3%2076.5%2019.3%2077.7V512H0V185.2l21.4-76.5L0%2031z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%2031v117.2l512%20295.7V326.7L0%2031z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20108.2v77L512%20481v-77L0%20108.2z%22%2F%3E%3Cg%20fill%3D%22%23d80027%22%3E%3Cpath%20d%3D%22M328.3%20228.2a72.3%2072.3%200%201%201-136-34.4%2089%2089%200%201%200%20127.3%200%2072%2072%200%200%201%208.7%2034.4z%22%2F%3E%3Cpath%20d%3D%22M239.3%20144.7h33.4v167h-33.4z%22%2F%3E%3Cpath%20d%3D%22M311.6%20178H200.4c0%207.8%206.6%2014%2014.3%2014h-.4a14%2014%200%200%200%2013.9%2014%2014%2014%200%200%200%2013.9%2013.8h27.8a14%2014%200%200%200%2014-13.9%2014%2014%200%200%200%2013.8-13.9h-.4c7.6%200%2014.3-6.2%2014.3-13.9zM178.1%20322.9h155.8v33.4H178.1z%22%2F%3E%3Cpath%20d%3D%22M289.4%20333.9h66.8v33.4h-66.8zm-133.6%200h66.8v33.4h-66.8z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},BG:{name:"Bulgaria",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22m0%20166.9%20258-31.7%20254%2031.7v178l-251.4%2041.3L0%20344.9z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v166.9H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20344.9h512V512H0z%22%2F%3E%3C%2Fsvg%3E"},BF:{name:"Burkina Faso",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v256l-255.2%2048L0%20256z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20256h512v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%20167%2019.3%2059.5H338l-50.6%2036.8%2019.3%2059.5L256%20286l-50.6%2036.8%2019.3-59.5-50.6-36.8h62.6z%22%2F%3E%3C%2Fsvg%3E"},BI:{name:"Burundi",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h47.2l207.5%2030L464.8%200H512v47.2L477.4%20256%20512%20464.8V512h-47.2l-209.1-35.8L47.2%20512H0v-47.2l32.8-202.7L0%2047.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M47.2%200%20256%20208.8%20464.8%200H47.2zM256%20303.2%2047.2%20512h417.6L256%20303.2z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%2047.2v417.6L208.8%20256%200%2047.2zm512%200L303.2%20256%20512%20464.8V47.2z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22111.3%22%20fill%3D%22%23eee%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m256%20178%209.6%2016.8H285l-9.6%2016.7%209.6%2016.7h-19.3l-9.6%2016.7-9.6-16.7H227l9.6-16.7-9.6-16.7h19.3zm-49%2078%209.6%2016.7H236l-9.6%2016.7%209.6%2016.7h-19.3l-9.6%2016.7-9.6-16.7H178l9.6-16.7-9.6-16.7h19.3zm98%200%209.6%2016.7H334l-9.6%2016.7%209.6%2016.7h-19.3l-9.6%2016.7-9.6-16.7H276l9.6-16.7-9.6-16.7h19.3z%22%2F%3E%3C%2Fsvg%3E"},CV:{name:"Cabo Verde",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v256.2l-41.9%2064.3%2041.9%2063.7V512H0V384.2L41.3%20320%200%20256.2z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20256.2h512v42.9l-15.7%2021.6%2015.7%2021v42.5H0v-42.5l15.1-21.5L0%20299z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20299.1h512v42.6H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m182.8%20190.4%205.2%2016.4h17.1l-13.8%2010%205.3%2016.3-13.8-10-14%2010%205.4-16.3-13.9-10h17.1zm0%20213.3L188%20420h17.1l-13.8%2010%205.3%2016.2-13.8-10-14%2010L174%20430l-14-10h17.2zm-99.2-72.1%205.2%2016.2h17.1L92.1%20358l5.2%2016.2-13.7-10-14%2010L75%20358l-14-10.1h17.2zm37.9-119.8%205%2016h17.2l-13.8%2010.3%205.2%2016.2-13.7-10-14%2010%205.4-16.3-14-10.1H116zm-60.4%2067h17l5.5-16.2%205.2%2016.2h17.1L92.1%20289l5.2%2016.4L83.6%20295l-14%2010.3%205.4-16.4zm46.5%20143%205.3-16.2L99%20395.4h17.1l5.4-16.2%205.2%2016.3h17.1L130%20405.6l5.3%2016.2-13.8-10zM282%20331.6l-5.4%2016.2h-17l13.8%2010.2-5.3%2016.2%2013.9-10%2013.8%2010-5.2-16.3%2013.7-10.1h-17zm-38-119.8-5.3%2016.2h-17.1l14%2010.2-5.4%2016.2%2013.9-10%2013.8%2010-5.3-16.3%2013.8-10.1h-17zm60.3%2067h-17l-5.3-16.2-5.4%2016.2h-17l13.8%2010.1-5.3%2016.4L282%20295l13.8%2010.3-5.2-16.4zm-46.4%20143-5.3-16.2%2013.8-10.2h-17l-5.3-16.2-5.4%2016.3h-17.1l14%2010.1-5.4%2016.2%2013.9-10z%22%2F%3E%3C%2Fsvg%3E"},KH:{name:"Cambodia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v133.7l-39%20121.6%2039%20123.2V512H0V378.5L34.2%20255%200%20133.7z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20133.7h512v244.8H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M345%20306.1v-33.3h-22.2v-44.5L300.5%20206l-22.2%2022.3v-44.5L256%20161.5l-22.3%2022.3v44.5L211.5%20206l-22.3%2022.3v44.5H167v33.4h-22.3v33.4h222.6v-33.5z%22%2F%3E%3C%2Fsvg%3E"},CM:{name:"Cameroon",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M144.8%200h222.4l32%20260-32%20252H144.8l-32.1-256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256.1%20167%2022.1%2068h71.5L292%20277l22%2068-57.8-42-57.9%2042%2022.1-68-57.8-42H234z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h144.8v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M367.2%200H512v512H367.2z%22%2F%3E%3C%2Fsvg%3E"},CA:{name:"Canada",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v512h144l112-64%20112%2064h144V0H368L256%2064%20144%200Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M144%200h224v512H144Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m301%20289%2044-22-22-11v-22l-45%2022%2023-44h-23l-22-34-22%2033h-23l23%2045-45-22v22l-22%2011%2045%2022-12%2023h45v33h22v-33h45z%22%2F%3E%3C%2Fsvg%3E"},KY:{name:"Cayman Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Ccircle%20cx%3D%22367.3%22%20cy%3D%22144.7%22%20r%3D%2244.5%22%20fill%3D%22%236da544%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M289.4%20133.5h155.8l.1%2029-76.9%2079.7-79.1-79.7z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M445.2%20256zm-155.8%200z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M289.4%20300.5V345h23.4a77.6%2077.6%200%200%200%20109%200h23.4v-44.5z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M289.3%20193.7v31.2l8%2016.6-7.9%2014.5c.1%2059.6%2077.9%2078%2077.9%2078s78-18.4%2078-78l-7.7-13.2%207.7-18v-31.1l-78-10.2z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M367.3%20224.9c-19.5%200-19.5%2017.8-39%2017.8s-19.4-17.8-39-17.8V256c19.7%200%2019.6%2017.8%2039%2017.8s19.5-17.8%2039-17.8%2019.5%2017.8%2039%2017.8%2019.4-17.8%2039-17.8v-31.2c-19.6%200-19.6%2017.8-39%2017.8-19.5%200-19.5-17.8-39-17.8zm0-62.4c-19.5%200-19.5%2017.8-39%2017.8s-19.4-17.8-39-17.8v31.2c19.7%200%2019.6%2017.8%2039%2017.8s19.5-17.8%2039-17.8%2019.5%2017.8%2039%2017.8%2019.4-17.8%2039-17.8v-31.2c-19.6%200-19.6%2017.8-39%2017.8-19.5%200-19.5-17.8-39-17.8z%22%2F%3E%3C%2Fsvg%3E"},CF:{name:"Central African Republic",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20378.4%20252.9-28.8L512%20378.4V512H322.8L256%20481l-66.8%2031H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%20256%20249.8-28L512%20256v122.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20133.6%20255.3-28.3L512%20133.6V256H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h189.2L256%2030l66.8-30H512v133.6H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m137.7%2055.7%206.9%2021.2H167L148.9%2090l6.9%2021.3-18.1-13.1-18%2013.1%206.8-21.3-18-13h22.3z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M189.2%200h133.6v512H189.2z%22%2F%3E%3C%2Fsvg%3E"},TD:{name:"Chad",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M167%200h178l25.9%20252.3L345%20512H167l-29.8-253.4z%22%2F%3E%3Cpath%20fill%3D%22%23026%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},CL:{name:"Chile",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20256%20254.5-51.3L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h256l52.7%20132.8L256%20256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M256%200h256v256H256zM152.4%2089l16.6%2051h53.6l-43.4%2031.6%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51L82.2%20140h53.6z%22%2F%3E%3C%2Fsvg%3E"},CN:{name:"China",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m140.1%20155.8%2022.1%2068h71.5l-57.8%2042.1%2022.1%2068-57.9-42-57.9%2042%2022.2-68-57.9-42.1H118zm163.4%20240.7-16.9-20.8-25%209.7%2014.5-22.5-16.9-20.9%2025.9%206.9%2014.6-22.5%201.4%2026.8%2026%206.9-25.1%209.6zm33.6-61%208-25.6-21.9-15.5%2026.8-.4%207.9-25.6%208.7%2025.4%2026.8-.3-21.5%2016%208.6%2025.4-21.9-15.5zm45.3-147.6L370.6%20212l19.2%2018.7-26.5-3.8-11.8%2024-4.6-26.4-26.6-3.8%2023.8-12.5-4.6-26.5%2019.2%2018.7zm-78.2-73-2%2026.7%2024.9%2010.1-26.1%206.4-1.9%2026.8-14.1-22.8-26.1%206.4%2017.3-20.5-14.2-22.7%2024.9%2010.1z%22%2F%3E%3C%2Fsvg%3E"},CX:{name:"Christmas Island",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%200%20216.9%20301.6L512%20512V0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%200%20512%20512H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2266.8%22%20fill%3D%22%23ffda44%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m95.3%20367.3%207%2014.7%2016-3.7L111%20393l13%2010-16%203.6.1%2016.3-12.7-10.2L82.6%20423v-16.3L66.9%20403l12.6-10-7-14.7%2015.8%203.7zM49.3%20245l7.1%2014.7%2015.9-3.7-7.1%2014.6%2012.7%2010.2-15.9%203.5v16.3l-12.6-10.2-12.7%2010.2v-16.3l-15.9-3.5%2012.8-10.2-7.1-14.6%2015.8%203.7zm46-100.2%207%2014.7%2016-3.7-7.2%2014.7%2012.8%2010-16%203.7.1%2016.2-12.7-10.1-12.7%2010.1v-16.2l-15.8-3.6%2012.7-10.1-7-14.7%2015.8%203.7zm57.1%2078%207%2014.6%2015.9-3.7-7.1%2014.7%2012.7%2010.1-15.8%203.6v16.3L152.4%20268l-12.7%2010.2V262l-15.8-3.6%2012.7-10.1-7-14.7%2015.8%203.7zm-40.8%2066.7%205.5%2017H135L120.5%20317l5.6%2017-14.5-10.5L97%20333.9l5.6-17-14.5-10.5H106z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M256%20300.5h22.3s9.6-17%200-33.4l22.2-22.2-11.1-22.3h-11.1s-5.6%2016.7-27.9%2016.7-27.8-16.7-27.8-16.7h-11.1l11.1%2022.3-11.1%2022.2%2011.1%2011.2S233.7%20256%20256%20267c0%200%209.5%2014%200%2033.4z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M422.2%20140.2a44.7%2044.7%200%200%200-30-50.8%2083.1%2083.1%200%200%201%207.5%2049.9%2045.6%2045.6%200%200%200-10.4-11.6%2045.7%2045.7%200%200%200-53.7-2.4%2085.3%2085.3%200%200%201%2035%2016.7c8.3%206.6%2015%2015.5%2020.2%2024.1l-68%2021.3c66.8%2011.2%20122.4-33.4%20122.4-33.4-6.1-12.3-15.7-14.4-23-13.8z%22%2F%3E%3C%2Fsvg%3E"},CC:{name:"Cocos (Keeling) Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22m393%20367.3%207%2014.7%2015.9-3.7-7.1%2014.7%2012.7%2010-15.9%203.7V423L393%20412.8%20380.3%20423v-16.3l-15.9-3.6%2012.8-10.1-7.1-14.7L386%20382zm-65.4-155.8%207%2014.7%2016-3.7-7.2%2014.7%2012.8%2010-16%203.6.1%2016.3-12.7-10.2-12.7%2010.2v-16.3l-15.8-3.5%2012.7-10.1-7-14.7%2015.8%203.7zm65.4-89%207%2014.6%2015.9-3.6-7.1%2014.6%2012.7%2010.1-15.9%203.6v16.3L393%20167.9l-12.7%2010.2v-16.3l-15.9-3.6%2012.8-10-7.1-14.7L386%20137zm57%2066.7%207%2014.7%2016-3.7-7.1%2014.7%2012.7%2010.1-15.9%203.6v16.3l-12.6-10.2-12.7%2010.2v-16.3l-15.9-3.6%2012.8-10.1-7.1-14.7L443%20204zm-40.8%2078%205.6%2017h17.9l-14.5%2010.4%205.5%2017-14.5-10.5-14.4%2010.6%205.5-17-14.5-10.6h18z%22%2F%3E%3Cpath%20d%3D%22M283.8%20328.3a72.3%2072.3%200%201%201%2034.4-136%2089%2089%200%201%200%200%20127.3%2072%2072%200%200%201-34.4%208.7zM161%20100.2a44.5%2044.5%200%200%200-77.1%200h77zm.1.2-38.7%2038.7-38.7-38.7a44.3%2044.3%200%200%200-5.8%2022%2044.5%2044.5%200%201%200%2089%200%2044.3%2044.3%200%200%200-5.8-22z%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M111.3%20128v37.6a44.6%2044.6%200%200%200%2011.1%201.4c3.9%200%207.6-.5%2011.2-1.4V128h-22.3z%22%2F%3E%3C%2Fsvg%3E"},CO:{name:"Colombia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20384%20255.8-29.7L512%20384v128H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20256%20259.5-31L512%20256v128H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3C%2Fsvg%3E"},KM:{name:"Comoros",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M124.4%20149.7%20512%20132.8V0H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M112.5%20132.8H512v122.4l-294.2%2016.6z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%20255.3H234.5l-136%20139.8L512%20377.7V256z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M108.2%20377.7%200%20511.2l512%20.8V377.7z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M.8%200%200%20511.2l256-256z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22M67.5%20255.3a78%2078%200%200%201%2061.2-76%2078.2%2078.2%200%200%200-16.7-2%2078%2078%200%201%200%2016.7%20154%2078%2078%200%200%201-61.2-76z%22%2F%3E%3Cpath%20d%3D%22m127.9%20188.5%204.1%2012.7h13.4l-10.8%208%204.1%2012.7-10.8-8-10.9%208%204.2-12.8-10.9-7.9h13.4zm0%2033.4%204.1%2012.7h13.4l-10.8%208%204.1%2012.7-10.8-8-10.9%208%204.2-12.8-10.9-7.9h13.4zm0%2033.4L132%20268h13.4l-10.8%208%204.1%2012.6-10.8-7.8-10.9%207.8%204.2-12.7-10.9-7.9h13.4zm0%2033.3%204.1%2012.8h13.4l-10.8%208%204.1%2012.6-10.8-7.8L117%20322l4.2-12.7-10.9-7.9h13.4z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},CG:{name:"Congo",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M384%200h128v128L352%20352%20128%20512H0V384l160-224Z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20384%20384%200H0Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%20128%20128%20512h384z%22%2F%3E%3C%2Fsvg%3E"},CD:{name:"Congo (Democratic Republic of the)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h401.9L512%20110.3V512H110.3L0%20401.9z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M401.9%200%200%20401.9V449l63%2063h47.3L512%20110.3V63L449%200z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M449%200%200%20449v63h63L512%2063V0h-63z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m136.4%2078%2013.8%2042.4H195l-36%2026.3%2013.7%2042.5-36.2-26.3-36%2026.3%2013.7-42.5L78%20120.4h44.7z%22%2F%3E%3C%2Fsvg%3E"},CK:{name:"Cook Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m345%20256%204.8%2014.6H365l-12.4%209%204.7%2014.6-12.4-9-12.4%209%204.8-14.6-12.4-9h15.3zm-63%2026%2013.7%207%2010.9-10.8-2.4%2015.1%2013.6%207-15.1%202.4-2.4%2015.1-7-13.6-15.1%202.4%2010.8-10.9zm-26%2063%2014.6-4.7V325l9%2012.4%2014.6-4.8-9%2012.4%209%2012.4-14.6-4.7-9%2012.4v-15.3zm26%2063%207-13.6-10.8-10.9%2015.1%202.4%207-13.6%202.4%2015%2015.1%202.5-13.6%207%202.4%2015-10.9-10.8zm63%2026-4.7-14.5H325l12.4-9-4.8-14.6%2012.4%209%2012.4-9-4.7%2014.6%2012.4%209h-15.3zm63-26-13.6-7-10.9%2010.9%202.4-15.2-13.6-7%2015-2.3%202.5-15.1%207%2013.6%2015-2.4-10.8%2010.9zm26-63-14.5%204.8V365l-9-12.4-14.6%204.7%209-12.4-9-12.4%2014.6%204.8%209-12.4v15.3zm-26-63-7%2013.7%2010.9%2010.9-15.2-2.4-7%2013.6-2.3-15.1-15.1-2.4%2013.6-7-2.4-15.1%2010.9%2010.8z%22%2F%3E%3C%2Fsvg%3E"},CR:{name:"Costa Rica",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v89l-66.3%20167.5L512%20423v89H0v-89l69.7-167.3L0%2089z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%2089h512v78l-39.7%2091.1L512%20345v78H0v-78l36.3-85.6L0%20167z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20167h512v178H0z%22%2F%3E%3C%2Fsvg%3E"},CI:{name:"Côte d'Ivoire",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M167%200h178l31%20253.2L345%20512H167l-33.4-257.4z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},HR:{name:"Croatia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M322.8%20178h-44.5l7.4-55.7%2029.7-22.2%2029.6%2022.2V167zm-133.6%200h44.5l-7.4-55.7-29.7-22.2-29.6%2022.2V167z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M285.7%20178h-59.4v-55.7l29.7-22.2%2029.7%2022.2z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M167%20167v122.3a89%2089%200%200%200%2035.8%2071.3l15.5-3.9%2019.7%2019.8a89.1%2089.1%200%200%200%2018%201.8%2089%2089%200%200%200%2017.9-1.8l22.4-18.7%2013%202.8a89%2089%200%200%200%2035.7-71.3V167z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M167%20167h35.6v35.5H167zm71.2%200h35.6v35.5h-35.6zm71.2%200H345v35.5h-35.6zm-106.8%2035.5h35.6v35.6h-35.6zm71.2%200h35.6v35.6h-35.6zM167%20238.1h35.6v35.6H167zm35.6%2035.6h35.6v35.6h-35.6zm35.6-35.6h35.6v35.6h-35.6zm71.2%200H345v35.6h-35.6zm-35.6%2035.6h35.6v35.6h-35.6zm-35.6%2035.6h35.6V345h-35.6zm-35.6%200h-33.3c3%2013.3%209%2025.4%2017.3%2035.6h16zM309.4%20345h16a88.8%2088.8%200%200%200%2017.3-35.6h-33.3zm-106.8%200v15.6a88.7%2088.7%200%200%200%2035.6%2016V345zm71.2%200v31.6a88.7%2088.7%200%200%200%2035.6-16V345z%22%2F%3E%3C%2Fsvg%3E"},CU:{name:"Cuba",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v102.4L483.8%20151l28.2%2053.8v102.4l-30.5%2050.7%2030.5%2051.7V512H0l39.8-257z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M0%2044.5v423V256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M27.2%20102.4v102.4H512V102.4H27.2zm0%20204.8v102.4H512V307.2H27.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v512l256-256L0%200z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m103.6%20189.2%2016.6%2051h53.6l-43.4%2031.6%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51-43.4-31.6H87z%22%2F%3E%3C%2Fsvg%3E"},CW:{name:"Curaçao",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v342.3l-22%2034.2%2022%2032.5v103H0V409l25.4-31L0%20342.2z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m175.2%20164.2%2013.8%2042.5h44.7L197.6%20233l13.8%2042.5-36.2-26.3-36.1%2026.3%2013.8-42.5-36.2-26.3h44.7zm-76.7-44.5%208.2%2025.5h26.9L111.9%20161l8.3%2025.5-21.7-15.7-21.7%2015.7L85%20161l-21.7-15.7h26.9z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%20342.3h512V409H0z%22%2F%3E%3C%2Fsvg%3E"},CY:{name:"Cyprus",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M400.7%20222.6h-33.4a111.3%20111.3%200%200%201-222.6%200h-33.4c0%2066.2%2044.5%20122%20105.2%20139.2a37%2037%200%200%200%203.9%2040.5l36.3-29.2%2036.4%2029.2a37%2037%200%200%200%203.7-40.8%20144.8%20144.8%200%200%200%20103.9-138.9z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M167%20211.5s0%2055.6%2055.6%2055.6l11.1%2011.2H256s11.1-33.4%2033.4-33.4c0%200%200-22.3%2022.3-22.3H345s-11-44.5%2044.6-77.9l-22.3-11.1s-78%2055.6-133.6%2044.5v22.2h-22.2l-11.2-11-33.3%2022.2z%22%2F%3E%3C%2Fsvg%3E"},CZ:{name:"Czechia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v256l-265%2045.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M210%20256h302v256H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200v512l256-256L0%200z%22%2F%3E%3C%2Fsvg%3E"},DK:{name:"Denmark",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h133.6l32.7%2020.3%2034-20.3H512v222.6L491.4%20256l20.6%2033.4V512H200.3l-31.7-20.4-35%2020.4H0V289.4l29.4-33L0%20222.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M133.6%200v222.6H0v66.8h133.6V512h66.7V289.4H512v-66.8H200.3V0h-66.7z%22%2F%3E%3C%2Fsvg%3E"},DJ:{name:"Djibouti",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v256l-153.2%2035.7L210%20256z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M210%20256h302v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m103.6%20189.2%2016.6%2051h53.6l-43.4%2031.6%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51-43.4-31.6H87z%22%2F%3E%3C%2Fsvg%3E"},DM:{name:"Dominica",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h208l48%2032%2048-32h208v208l-32%2048%2032%2048v208H304l-48-32-48%2032H0V304l32-48-32-48Z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M512%20240v32l-256%2032L0%20272v-32l256-32z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M512%20208v32H0v-32z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M240%200h32l32%20256-32%20256h-32l-32-256Z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M208%200h32v512h-32z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M272%200h32v512h-32z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M512%20272v32H0v-32z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22122.4%22%20fill%3D%22%23d80027%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M284%20270c-9-19-21-37-21-37v-13a14%2014%200%200%200-27-2%2011%2011%200%200%200-4%2021%2016%2016%200%200%201%209-9%2014%2014%200%200%200%202%202h2s-7%2019-7%2029c0%2027%2019%2036%2019%2036l-10%209h19v-18l9%209s17-11%209-27zm-28-114%204%2013h14l-11%208%204%2012-11-8-11%208%204-12-11-8h14Zm-59%2019%2011%208%2011-8-4%2013%2011%208h-14l-4%2012-4-12h-14l11-8zm-36%2050h13l4-13%204%2013h14l-11%208%204%2013-11-8-11%208%205-13zm0%2062%2011-8-5-13%2011%208%2011-8-4%2013%2011%208h-14l-4%2013-4-13Zm36%2050%204-13-11-8h14l4-12%204%2012h13l-10%208%204%2013-11-8zm59%2019-4-13h-14l11-8-4-12%2011%208%2011-8-4%2012%2011%209h-14Zm59-19-11-8-11%208%204-13-10-8h13l4-12%204%2012h14l-11%208zm36-50h-13l-4%2013-4-13h-14l11-8-4-13%2011%208%2011-8-5%2013zm0-62-11%208%205%2013-11-8-11%208%204-13-11-8h14l4-13%204%2013zm-36-50-4%2013%2011%208h-14l-4%2012-4-12h-14l11-8-4-13%2011%208z%22%2F%3E%3C%2Fsvg%3E"},DO:{name:"Dominican Republic",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M35.5%20256h444l32.5-66.8V0H322.8L256%2031.8v444.6L189.2%20512H0V322.8z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M479.5%20256h-444L0%20189.2V0h189.2L256%2031.8v444.6l66.8%2035.6H512V322.8z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M189.2%200h133.6v189.2H512v133.6H322.8V512H189.2V322.8H0V189.2h189.2z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M322.8%20256a66.8%2066.8%200%201%201-133.6%200c0-36.9%2066.8-66.8%2066.8-66.8s66.8%2030%2066.8%2066.8z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M189.2%20256a66.8%2066.8%200%201%201%20133.6%200%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M218.4%20222.6v41.7a37.6%2037.6%200%201%200%2075.2%200v-41.7z%22%2F%3E%3C%2Fsvg%3E"},DNO:{name:"Donetsk Oblast",flag:"data:image/svg+xml,%3Csvg%20width%3D%22512%22%20height%3D%22512%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23a)%22%3E%3Cpath%20d%3D%22M512%20341.333H0V512h512V341.333Z%22%20fill%3D%22%23D80027%22%2F%3E%3Cpath%20d%3D%22M512%20170.667H0v170.666h512V170.667Z%22%20fill%3D%22%230052B4%22%2F%3E%3Cpath%20d%3D%22M512%200H0v170.667h512V0Z%22%20fill%3D%22%23333%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22a%22%3E%3Crect%20width%3D%22512%22%20height%3D%22512%22%20rx%3D%22256%22%20fill%3D%22%23fff%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"},EC:{name:"Ecuador",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20384%20254.7-32.7L512%20383.9V512H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20256%20255-27%20257%2027v128H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2289%22%20fill%3D%22%23ffda44%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M256%20311.6c-30.7%200-55.7-25-55.7-55.6v-33.4a55.7%2055.7%200%200%201%20111.4%200V256c0%2030.6-25%2055.6-55.7%2055.6z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M345%20122.4h-66.7a22.3%2022.3%200%200%200-44.6%200H167a23%2023%200%200%200%2023%2022.3h-.8c0%2012.3%2010%2022.3%2022.3%2022.3%200%2012.3%2010%2022.2%2022.2%2022.2h44.6c12.3%200%2022.2-10%2022.2-22.2%2012.3%200%2022.3-10%2022.3-22.3h-.8a23%2023%200%200%200%2023-22.3z%22%2F%3E%3C%2Fsvg%3E"},EG:{name:"Egypt",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20144%20256-32%20256%2032v224l-256%2032L0%20368Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v144H0Z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20368h512v144H0Z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M250%20191c-8%200-17%204-22%2014%205-3%2016-1%2016%2013%200%204-2%208-5%2010-8%200-14-14-29-14-10%200-19%207-19%2017v69l46-7-14%2027h66l-14-27%2046%207v-69c0-10-9-17-19-17-15%200-21%2014-29%2014%208-23-7-37-23-37z%22%2F%3E%3C%2Fsvg%3E"},SV:{name:"El Salvador",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v144.7l-40.5%20112.6%2040.5%20110V512H0V367.3l42.2-114L0%20144.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20144.7h512v222.6H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m204.6%20267.1%2051.4-89%2051.4%2089z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M322.8%20296.5%20256%20330l-66.8-33.4V252h133.6z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m319%20182-23.6%2023.5a55.5%2055.5%200%200%201-39.4%2095%2055.7%2055.7%200%200%201-39.3-95L193%20182a89%2089%200%201%200%20126%200z%22%2F%3E%3C%2Fsvg%3E"},GQ:{name:"Equatorial Guinea",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M41.3%20121.9%20512%20167v178L43.8%20391.3z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v167H111z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M111%20345h401v167H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M334%20257.1h22.2v32.3h-22.3z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M367.3%20245a22.3%2022.3%200%201%200-44.5%200%2011.1%2011.1%200%201%200%200%2022.1h44.5a11.1%2011.1%200%201%200%200-22.2z%22%2F%3E%3C%2Fsvg%3E"},ER:{name:"Eritrea",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v256H62z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M62%20256h450v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v512l512-256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M133.6%20150.3c-49.1%200-89%2040-89%2089v33.4a89.1%2089.1%200%200%200%20178%200v-33.4c0-49-40-89-89-89zm55.6%20122.4c0%2024.9-16.4%2046-39%2053v-36.3l23.7-23.6-23.6-23.6v-19.6h-33.4V256l-23.6%2023.6%2023.6%2023.6v22.6a55.7%2055.7%200%200%201-39-53.1v-33.4a55.7%2055.7%200%200%201%20111.3%200z%22%2F%3E%3C%2Fsvg%3E"},EE:{name:"Estonia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m0%20167%20254.6-36.6L512%20166.9v178l-254.6%2036.4L0%20344.9z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v166.9H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20344.9h512V512H0z%22%2F%3E%3C%2Fsvg%3E"},ET:{name:"Ethiopia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20345%20255.7-31L512%20345v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20167%20258-40.7L512%20167v178H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22122.4%22%20fill%3D%22%230052b4%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22m256%20161.2%2022%2068h71.7l-58%2042%2022.3%2068.3-58-42.3-58%2042.2%2022.2-68.1-58-42H234z%22%2F%3E%3Cpath%20d%3D%22m344.1%20273-70-22.9%2043.2-59.6-18-13L256%20237l-43.3-59.7-18%2013.1%2043.3%2059.7-70.1%2022.7%206.9%2021.2%2070-22.8V345h22.3v-73.7l70.1%2022.8z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},FK:{name:"Falkland Islands (Malvinas)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M411.8%20300.5v11.2h-89v-11.2h-33.4V345h22.3v11.2H423V345h22.2v-44.5z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M289.4%20133.6V256c0%2059.6%2077.9%2078%2077.9%2078s78-18.4%2078-78V133.6h-156z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M367.3%20224.9c-19.5%200-19.5%2017.8-39%2017.8s-19.4-17.8-39-17.8V256c19.6%200%2019.6%2017.8%2039%2017.8s19.5-17.8%2039-17.8%2019.5%2017.8%2039%2017.8%2019.4-17.8%2039-17.8v-31.2c-19.6%200-19.6%2017.8-39%2017.8-19.5%200-19.5-17.8-39-17.8zm0-62.4c-19.5%200-19.5%2017.8-39%2017.8s-19.4-17.8-39-17.8v31.2c19.6%200%2019.6%2017.8%2039%2017.8s19.5-17.8%2039-17.8%2019.5%2017.8%2039%2017.8%2019.4-17.8%2039-17.8v-31.2c-19.6%200-19.6%2017.8-39%2017.8-19.5%200-19.5-17.8-39-17.8z%22%2F%3E%3C%2Fsvg%3E"},FO:{name:"Faroe Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h100.2l66.1%2053.5L233.7%200H512v189.3L466.3%20257l45.7%2065.8V512H233.7l-68-50.7-65.5%2050.7H0V322.8l51.4-68.5-51.4-65z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M100.2%200v189.3H0v33.4l24.6%2033L0%20289.5v33.4h100.2V512h33.4l30.6-26.3%2036.1%2026.3h33.4V322.8H512v-33.4l-24.6-33.7%2024.6-33v-33.4H233.7V0h-33.4l-33.8%2025.3L133.6%200z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M133.6%200v222.7H0v66.7h133.6V512h66.7V289.4H512v-66.7H200.3V0h-66.7z%22%2F%3E%3C%2Fsvg%3E"},FJ:{name:"Fiji",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32l42-16%2041%2016h45l-8-16%208-15v-14l-16-42%2016-41V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M128%20256v-83l83%2083zm128-45-83-83h83z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m367.3%20144.7-78%2022.3h.1v66.7l9.2%2011-9.2%2011.3c0%2045.5%2045.3%2067%2066.8%2074.6l11.5-8.8%2010.7%208.8c21.5-7.7%2066.8-29.1%2066.8-74.6l-8-11%208-11.3V167Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97zm317.2%2039v-33.4H289.4V167h66.8v66.7h-66.8V256h66.8v74.6a111%20111%200%200%200%2011.1%203.4s4.4-1%2011.1-3.4V256h66.8v-22.3h-66.8V167Z%22%2F%3E%3C%2Fsvg%3E"},FI:{name:"Finland",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h133.6l35.3%2016.7L200.3%200H512v222.6l-22.6%2031.7%2022.6%2035.1V512H200.3l-32-19.8-34.7%2019.8H0V289.4l22.1-33.3L0%20222.6z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M133.6%200v222.6H0v66.8h133.6V512h66.7V289.4H512v-66.8H200.3V0h-66.7z%22%2F%3E%3C%2Fsvg%3E"},FR:{name:"France",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M167%200h178l25.9%20252.3L345%20512H167l-29.8-253.4z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},GF:{name:"French Guiana",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%200%20216.9%20301.6L512%20512V0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%200%20512%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m256%20121%2090%20270-234-168h288L166%20391z%22%2F%3E%3C%2Fsvg%3E"},PF:{name:"French Polynesia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v133.7l-52%20126%2052%20118.8V512H0V378.5l53-121L0%20133.6z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20133.7h512v244.8H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M345%20256.1c0%2049.2-39.8%2078-89%2078s-89-28.8-89-78a89%2089%200%201%201%20178%200z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M345%20256.1a89%2089%200%201%201-178%200%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M200.3%20233.8h22.3v44.6h-22.3zm89%200h22.4v44.6h-22.3zM245%20200.4h22v78h-22z%22%2F%3E%3C%2Fsvg%3E"},TF:{name:"French Southern Territories",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h75v224H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M149%200h75v224h-75z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m323%20158%2013%2021h36v71l-27-43-37%2059h18l19-34%2039%2070%2039-70%2019%2034h18l-37-59-27%2043v-39h16l12-20h-28v-12h36l13-21zm43%2088h-40v14h40zm76%200h-40v14h40z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m301%20181%2013%2038-34-23h42l-34%2023zm166%200%2013%2038-34-23h42l-34%2023zM339%20282l13%2038-34-23h42l-34%2023zm90%200%2013%2038-34-23h42l-34%2023zm-45%2034%2013%2038-34-23h42l-34%2023z%22%2F%3E%3C%2Fsvg%3E"},GA:{name:"Gabon",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},GM:{name:"Gambia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20155.8%20255-30.6%20257%2030.6v33.4l-27.7%2067.2%2027.7%2066.4v33.4l-256%2032.4L0%20356.2v-33.4l28.8-68.5L0%20189.2z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h512v155.8H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20189.2h512v133.6H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%20356.2h512V512H0z%22%2F%3E%3C%2Fsvg%3E"},GE:{name:"Georgia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h222.6l31%2023.4L289.4%200H512v222.6l-21.5%2031%2021.5%2035.8V512H289.4l-34.2-20.5-32.6%2020.5H0V289.4l22.7-32.6L0%20222.6z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M222.6%200v222.6H0v66.8h222.6V512h66.8V289.4H512v-66.8H289.4V0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M155.8%20122.4V89h-33.4v33.4H89v33.4h33.4v33.4h33.4v-33.4h33.4v-33.4zm233.8%200V89h-33.4v33.4h-33.4v33.4h33.4v33.4h33.4v-33.4H423v-33.4zM155.8%20356.2v-33.4h-33.4v33.4H89v33.4h33.4V423h33.4v-33.4h33.4v-33.4zm233.8%200v-33.4h-33.4v33.4h-33.4v33.4h33.4V423h33.4v-33.4H423v-33.4z%22%2F%3E%3C%2Fsvg%3E"},DE:{name:"Germany",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20345%20256.7-25.5L512%20345v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20167%20255-23%20257%2023v178H0z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},GH:{name:"Ghana",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20167%20257.3-31.9L512%20167v178l-256.3%2029L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m256%20167%2022.1%2068h71.5l-57.8%2042%2022%2068-57.8-42-57.9%2042%2022.1-68-57.8-42h71.5z%22%2F%3E%3C%2Fsvg%3E"},GI:{name:"Gibraltar",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20345%20256.3-31.3L512%20345v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v345H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M356.2%20211.5V178h11.1v-22.3H345V167h-22.2v-11.2h-22.3v22.3h11.2v33.4h-22.3v-78h11.1v-22.2h-22.2v11.1H267v-11h-22v11h-11.2v-11h-22.2v22.2h11.1v77.9h-22.3V178h11.2v-22.3h-22.3V167H167v-11.2h-22.3v22.3h11.1v33.4h-22.2v89h244.8v-89z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20289.4a33.4%2033.4%200%200%200-11.1%2064.9v46.4h-33.4v44.5H267v-91a33.4%2033.4%200%200%200-11.1-64.8zm0%2044.5a11.1%2011.1%200%201%201%200-22.2%2011.1%2011.1%200%200%201%200%2022.2z%22%2F%3E%3C%2Fsvg%3E"},GR:{name:"Greece",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h99l29%2032%2028-32h356v57l-32%2028%2032%2029v57l-32%2028%2032%2029v57l-32%2028%2032%2028v57l-32%2029%2032%2028v57H0v-57l32-28-32-29v-56l32-29-32-28V171l32-29-32-28Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M99%200v114H0v57h99v114H0v57h512v-57H156V171h100v-57H156V0Zm157%2057v57h256V57Zm0%20114v57h256v-57ZM0%20398v57h512v-57z%22%2F%3E%3C%2Fsvg%3E"},GL:{name:"Greenland",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20256%20259-45.3L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M55.7%20256a122.4%20122.4%200%201%200%20244.8%200l-123-24z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M55.7%20256a122.4%20122.4%200%201%201%20244.8%200z%22%2F%3E%3C%2Fsvg%3E"},GD:{name:"Grenada",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M23.6%2023.7h464.8v464.7H23.6z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%2075.1%2038%2038l436.3%20436.4%2037.7-37.5V75l-39.6-35.5L40.2%20471.8%200%20436.8z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256.1%22%20r%3D%2289%22%20fill%3D%22%23a2001d%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%20167%2020%2061.5h64.6l-52.3%2038%2020%2061.3-52.3-38-52.3%2038%2020-61.3-52.3-38H236zM256%20.2z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h512v75.1H0zm0%20436.8h512v75.1H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%2028%204.1%2012.7h13.5l-10.9%208%204.2%2012.6-10.9-7.9-10.8%208%204.1-12.8-10.9-8H252zm-62%200%204%2012.7h13.5l-10.9%208%204.2%2012.6-10.9-7.9-10.8%208%204.1-12.8-10.8-8h13.4zm124%200%204.2%2012.7h13.4l-10.8%208%204.1%2012.6-10.8-7.9-10.9%208%204.2-12.8-10.9-8H314zm-62%20422.8%204.1%2012.7h13.5l-10.9%208%204.2%2012.7-10.9-8-10.8%208%204.1-12.8-10.9-7.9H252zm-62%200%204%2012.7h13.5l-10.9%208%204.2%2012.7-10.9-8-10.8%208%204.1-12.8-10.8-7.9h13.4zm124%200%204.2%2012.7h13.4l-10.8%208%204.1%2012.7-10.8-8-10.9%208%204.2-12.8-10.9-7.9H314zm-240-199a22.3%2022.3%200%200%201-37.6%2023.9c-12-18.8-5-49.5-5-49.5S66%20233%2078%20251.9z%22%2F%3E%3Ccircle%20cx%3D%2265.1%22%20cy%3D%22273.2%22%20r%3D%2211.1%22%20fill%3D%22%23a2001d%22%2F%3E%3C%2Fsvg%3E"},GP:{name:"Guadeloupe",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20176h512v336H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v176H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M94%20228a8%208%200%200%200-2%200%208%208%200%200%200-5%204%208%208%200%200%200-1%206l7%2025-39-23a8%208%200%200%200-11%203%208%208%200%200%200%203%2011l39%2023-25%206a8%208%200%200%200-5%204%208%208%200%200%200-1%206%208%208%200%200%200%2010%206l41-11%208%205-26%206a8%208%200%200%200-4%204%208%208%200%200%200-1%206%208%208%200%200%200%2010%206l40-11%208%205-25%206a8%208%200%200%200-4%204%208%208%200%200%200-1%206%208%208%200%200%200%2010%206l40-11%2025%2014a8%208%200%200%200%2011-3%208%208%200%200%200-3-10l-25-15-11-40a8%208%200%200%200-10-6%208%208%200%200%200-5%204%208%208%200%200%200%200%206l6%2025-8-5-11-40a8%208%200%200%200-9-6%208%208%200%200%200-5%204%208%208%200%200%200-1%206l7%2025-8-5-11-40a8%208%200%200%200-8-6zm180%2096%20122%20107c17-13%2032-30%2044-48l-166-59z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%20480-21-29-31%2019-8-35-36%205%206-35-36-9%2019-31-29-21%2029-21-19-31%2036-8-6-36%2036%206%208-36%2031%2019%2021-29%2021%2029%2031-19%208%2036%2036-6-6%2036%2036%208-19%2031%2029%2021-29%2021%2019%2031-36%208%206%2036-36-5-8%2035-31-19zm0-440-10%2011c-7%2011-9%2022-5%2031l7%2017c-4-6-9-10-15-12-4-1-11%200-16%205-7%206-10%2024%2011%2027-2-3-2-9%203-11%203-2%207-1%208%200%202%201%204%204%205%207h-5v10h6c-2%206-6%209-15%2016%208%201%2017-5%2019-7l2-5-1%2020c1%205%202%207%206%2011%204-4%205-6%206-11l-1-20%202%204c2%203%2011%209%2019%209-9-8-13-11-14-17h5v-10h-5c1-3%203-6%205-7%201-1%205-2%209%200s4%208%202%2011c21-3%2018-21%2011-27-5-5-11-6-16-5-6%202-11%206-15%2012l7-17c4-9%202-20-5-31l-10-11zm96%200-10%2011c-7%2011-9%2022-5%2031l7%2017c-4-6-9-10-15-12-5-1-11%200-17%205-6%206-9%2024%2012%2027-2-3-2-9%203-11%203-2%207-1%208%200%202%201%204%204%205%207h-5v10h5c-1%206-5%209-14%2016%208%201%2017-5%2019-7l2-5-1%2020c1%205%202%207%206%2011%204-4%205-6%206-11l-1-20%202%204c2%203%2011%209%2019%209-9-8-13-11-15-17h6v-10h-5c1-3%203-6%205-7%201-1%205-2%208%200%205%202%205%208%203%2011%2021-3%2018-21%2011-27-5-5-11-6-16-5-6%202-11%206-15%2012l7-17c4-9%202-20-5-31l-10-11zm-192%200-10%2011c-7%2011-9%2022-5%2031l7%2017c-4-6-9-10-15-12-4-1-11%200-16%205-7%206-10%2024%2011%2027-2-3-2-9%203-11%203-2%207-1%208%200%202%201%204%204%205%207h-5v10h6c-2%206-6%209-15%2016%208%201%2017-5%2019-7l2-5-1%2020c1%205%202%207%206%2011%204-4%205-6%206-11l-1-20%202%204c2%203%2011%209%2019%209-9-8-13-11-14-17h5v-10h-5c1-3%203-6%205-7%201-1%205-2%209%200s4%208%202%2011c21-3%2019-21%2012-27-6-5-12-6-17-5-6%202-11%206-15%2012l7-17c4-9%202-20-5-31l-10-11z%22%2F%3E%3C%2Fsvg%3E"},GU:{name:"Guam",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v44.6l-41.2%20207.2L512%20467.6V512H0v-44.4l38-219-38-204z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%2044.6h512v423H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M241.5%20417.7c-3.5-3-85.7-74.5-85.7-161.6%200-87%2082.2-158.6%2085.7-161.6L256%2082.1l14.5%2012.4c3.5%203%2085.7%2074.4%2085.7%20161.6%200%2087.2-82.2%20158.6-85.7%20161.6L256%20430.1z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M334%20256.1c0-78-78-144.7-78-144.7s-78%2066.8-78%20144.7a150%20150%200%200%200%2017.5%2066.8h121a150%20150%200%200%200%2017.4-66.8z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M334%20256.1a150%20150%200%200%201-17.5%2066.8L256%20334l-60.5-11a150%20150%200%200%201-17.4-66.9h155.8z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20400.8s37.5-32.2%2060.5-78h-121c23%2045.8%2060.5%2078%2060.5%2078z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M206%20211.6h100l-50%2050z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M239.3%20245h33.4v100.1h-33.4z%22%2F%3E%3C%2Fsvg%3E"},GT:{name:"Guatemala",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h144.7l108.4%2041.2L367.3%200H512v512H367.3l-110.2-41.4L144.7%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M144.7%200h222.6v512H144.7z%22%2F%3E%3Cpath%20fill%3D%22%23acabb1%22%20d%3D%22M322.9%20299.3%20279.6%20256l41.2-41.2L319%20193l-11.7-11.8-51.2%2051.2-51.2-51.2-11.7%2011.8-2%2021.8%2041.3%2041.2-43.3%2043.3%2023.6%2023.6%2043.3-43.3%2043.3%2043.3z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m319%20193-23.6%2023.6a55.5%2055.5%200%200%201-39.4%2095%2055.7%2055.7%200%200%201-39.4-95L193%20193a89%2089%200%201%200%20126%200z%22%2F%3E%3C%2Fsvg%3E"},GG:{name:"Guernsey",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h222.6l31%2023.4L289.4%200H512v222.6l-21.5%2031%2021.5%2035.8V512H289.4l-34.2-20.5-32.6%2020.5H0V289.4l22.7-32.6L0%20222.6z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M222.6%200v222.6H0v66.8h222.6V512h66.8V289.4H512v-66.8H289.4V0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m328.3%20267%2016.7%2011.3v-44.7L328.3%20245h-61.2v-61.2l11.2-16.8h-44.6l11.2%2016.8v61.1h-61.2L167%20233.6v44.7l16.7-11.3h61.2v61.3l-11.2%2016.6h44.6L267%20328.3V267z%22%2F%3E%3C%2Fsvg%3E"},GN:{name:"Guinea",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M167%200h178l25.9%20252.3L345%20512H167l-29.8-253.4z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},GW:{name:"Guinea-Bissau",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h189.2l54%20257.6-54%20254.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M189.2%200H512v256l-159%2053.5L189.1%20256z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M189.2%20256H512v256H189.2z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m96.7%20189.2%2016.6%2051H167l-43.4%2031.6%2016.5%2051-43.4-31.5-43.4%2031.5%2016.6-51-43.4-31.6h53.7z%22%2F%3E%3C%2Fsvg%3E"},GY:{name:"Guyana",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M77.7%200H512v512H77.8z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M425.4%20254.7%2031.4%20512h46.4L512%20256%2077.7%200H31.4z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20256%2031.4%20512l436.8-256L31.4%200z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200v1.8l219.6%20253.8L0%20510v2h31.4l256-256L31.4%200z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v512l256-256L0%200z%22%2F%3E%3C%2Fsvg%3E"},HT:{name:"Haiti",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22m0%20256%20254.8-41.8L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m345%20322.8-89-11.1-89%2011V189.3h178z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22267.1%22%20r%3D%2244.5%22%20fill%3D%22%230052b4%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22267.1%22%20r%3D%2222.3%22%20fill%3D%22%23a2001d%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M222.6%20211.5h66.8L256%20244.9z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M244.9%20233.7H267v66.8h-22z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M291.6%20293.8h-71.2l-53.4%2029h178z%22%2F%3E%3C%2Fsvg%3E"},HM:{name:"Heard Island and McDonald Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m400%20256%205%2017h18l-14%2010%205%2017-14-10-15%2010%206-17-15-10h18zm40-78%207%2015%2016-4-7%2015%2013%2010-16%203v17l-13-10-12%2010v-17l-16-3%2013-10-7-15%2015%204zm-57-67%207%2015%2016-4-7%2015%2013%2010-16%204v16l-13-10-12%2010v-16l-16-4%2012-10-7-15%2016%204zm-65%2089%207%2015%2016-4-7%2015%2012%2010-15%204v16l-13-10-13%2010v-16l-16-4%2013-10-7-15%2016%204zm65%20156%207%2015%2016-4-7%2015%2013%2010-16%203v17l-13-10-12%2010v-17l-16-3%2012-10-7-15%2016%204zm-229-56%2014%2030%2032-8-14%2030%2026%2020-32%207v33l-26-21-25%2021v-33l-32-7%2026-20-14-30%2031%208z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0H32zm96%20128%20128%20128v-31l-97-97h-31z%22%2F%3E%3C%2Fsvg%3E"},VA:{name:"Holy See",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h256l51.7%20254.7L256%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M256%200h256v512H256z%22%2F%3E%3Cpath%20fill%3D%22%23acabb1%22%20d%3D%22m354%20222.8%2048.1%2063.6A33.4%2033.4%200%201%200%20420%20273l-75-99.2-17.7%2013.4-26.7%2020.2%2026.9%2035.5%2026.6-20.1zm69.3%2073.1a11.1%2011.1%200%201%201%2013.4%2017.8%2011.1%2011.1%200%200%201-13.4-17.8z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m436.6%20242.9%2026.8-35.5-26.6-20.2-17.8-13.4-75%2099.2a33.4%2033.4%200%201%200%2017.8%2013.4l48-63.6%2026.8%2020zm-93.8%2068.6a11.1%2011.1%200%201%201-17.8-13.4%2011.1%2011.1%200%200%201%2017.8%2013.4z%22%2F%3E%3C%2Fsvg%3E"},HN:{name:"Honduras",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v144.7l-40.5%20112.6%2040.5%20110V512H0V367.3l42.2-114L0%20144.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20144.7h512v222.6H0z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22m157.5%20167%208.3%2025.5h26.9L171%20208.2l8.2%2025.5-21.7-15.7-21.7%2015.7%208.3-25.5-21.7-15.7h26.9zm0%20111.3%208.3%2025.5h26.9L171%20319.5l8.2%2025.5-21.7-15.7-21.7%2015.7%208.3-25.5-21.7-15.7h26.9zm197-111.3%208.2%2025.5h26.9l-21.7%2015.7%208.3%2025.5-21.7-15.7-21.7%2015.7%208.2-25.5-21.7-15.7h26.9zm0%20111.3%208.2%2025.5h26.9l-21.7%2015.7%208.3%2025.5-21.7-15.7-21.7%2015.7%208.2-25.5-21.7-15.7h26.9zM256%20222.6l8.3%2025.5H291L269.4%20264l8.3%2025.5-21.7-15.8-21.7%2015.8%208.3-25.5-21.7-15.8h26.8z%22%2F%3E%3C%2Fsvg%3E"},HK:{name:"Hong Kong",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M282.4%20193.7c-5.8%2024.2-16.1%2019.6-21.2%2040.7a55.7%2055.7%200%200%201%2026-108.3c-10.1%2042.2.4%2046-4.8%2067.6zM205%20211.6c21.2%2013%2013.6%2021.4%2032.1%2032.8a55.7%2055.7%200%200%201-94.9-58.2c37%2022.7%2043.8%2013.8%2062.8%2025.4zm-7%2079.3c19-16.2%2024.7-6.4%2041.2-20.4a55.7%2055.7%200%200%201-84.7%2072.2c33-28.2%2026.6-37.4%2043.6-51.8zm73.4%2031c-9.6-23%201.5-25.3-6.8-45.3a55.7%2055.7%200%200%201%2042.6%20102.8c-16.6-40-27.3-36.9-35.8-57.4zm52.2-60c-24.9%202-23.7-9.3-45.3-7.6a55.7%2055.7%200%200%201%20111-8.7c-43.3%203.4-43.6%2014.5-65.7%2016.3z%22%2F%3E%3C%2Fsvg%3E"},HU:{name:"Hungary",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},IS:{name:"Iceland",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h100.2l66.1%2053.5L233.7%200H512v189.3L466.3%20257l45.7%2065.8V512H233.7l-68-50.7-65.5%2050.7H0V322.8l51.4-68.5-51.4-65z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M100.2%200v189.3H0v33.4l24.6%2033L0%20289.5v33.4h100.2V512h33.4l30.6-26.3%2036.1%2026.3h33.4V322.8H512v-33.4l-24.6-33.7%2024.6-33v-33.4H233.7V0h-33.4l-33.8%2025.3L133.6%200z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M133.6%200v222.7H0v66.7h133.6V512h66.7V289.4H512v-66.7H200.3V0z%22%2F%3E%3C%2Fsvg%3E"},IN:{name:"India",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20160%20256-32%20256%2032v192l-256%2032L0%20352z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M0%200h512v160H0Z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20352h512v160H0Z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2272%22%20fill%3D%22%230052b4%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2248%22%20fill%3D%22%23eee%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2224%22%20fill%3D%22%230052b4%22%2F%3E%3C%2Fsvg%3E"},ID:{name:"Indonesia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20256%20249.6-41.3L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3C%2Fsvg%3E"},IR:{name:"Iran (Islamic Republic of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20144.7%20258.8%2039.6%20512%20144.7v222.6L257%20493%200%20367.3z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200v144.7h105.6v-22.2h33.6v22.2h33.3v-22.2h33.6v22.2h33.3v-22.2H273v22.2h33v-22.2h33.6v22.2h33.2v-22.2h33.6v22.2H512V0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20367.3V512h512V367.3H406.4v22.4h-33.6v-22.4h-33.2v22.4H306v-22.4h-33v22.4h-33.6v-22.4h-33.3v22.4h-33.6v-22.4h-33.3v22.4h-33.6v-22.4zm339.1-178h-33.4c.2%203.7.4%207.4.4%2011.1%200%2024.8-6.2%2048.8-17%2066-3.3%205.2-9%2012.6-16.4%2017.6v-94.7h-33.4v94.8c-7.5-5-13-12.4-16.4-17.7-10.8-17-17-41-17-65.9%200-3.7.2-7.4.4-11H173a190%20190%200%200%200-.4%2011c0%2068.7%2036.7%20122.5%2083.5%20122.5s83.5-53.8%2083.5-122.5c0-3.7-.1-7.4-.4-11z%22%2F%3E%3C%2Fsvg%3E"},IQ:{name:"Iraq",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M194.8%20239.3h-49.4a22.3%2022.3%200%200%201%2021.6-16.7v-33.4c-30.7%200-55.7%2025-55.7%2055.7v27.8h83.5a5.6%205.6%200%200%201%205.5%205.6v11H89v33.5h144.7v-44.5a39%2039%200%200%200-39-39zm83.5%2050v-100h-33.4v133.5h55.6v-33.4zm111.3%200v-100h-33.4v100H345V256h-33.3v66.8h100.1v-33.4z%22%2F%3E%3C%2Fsvg%3E"},IE:{name:"Ireland",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M167%200h178l25.9%20252.3L345%20512H167l-29.8-253.4z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},IM:{name:"Isle of Man",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m350.8%20171.6-18.1%2064.6-54.3-10-35-72-94.4%2033.4-7.4-21-24.7-3%2018.6%2052.5%2065-16.7%2018.4%2052-44.9%2066.3%2076.3%2065-14.5%2017%209.7%2022.9%2036.1-42.3-46.8-48%2035.8-42%2079.8%205.8%2018.2-98.6%2022%204%2015-19.8-54.8-10zM256%20256z%22%2F%3E%3C%2Fsvg%3E"},IL:{name:"Israel",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v55.7l-25%2032.7%2025%2034v267.2l-26%2036%2026%2030.7V512H0v-55.7l24.8-34.1L0%20389.6V122.4l27.2-33.2L0%2055.7z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%2055.7v66.7h512V55.7zm0%20333.9v66.7h512v-66.7zm352.4-189.3H288l-32-55.6-32.1%2055.6h-64.3l32.1%2055.7-32%2055.7h64.2l32.1%2055.6%2032.1-55.6h64.3L320.3%20256l32-55.7zm-57%2055.7-19.7%2034.2h-39.4L216.5%20256l19.8-34.2h39.4l19.8%2034.2zM256%20187.6l7.3%2012.7h-14.6zm-59.2%2034.2h14.7l-7.4%2012.7zm0%2068.4%207.3-12.7%207.4%2012.7zm59.2%2034.2-7.3-12.7h14.6zm59.2-34.2h-14.7l7.4-12.7zm-14.7-68.4h14.7l-7.3%2012.7z%22%2F%3E%3C%2Fsvg%3E"},IT:{name:"Italy",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M167%200h178l25.9%20252.3L345%20512H167l-29.8-253.4z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},JM:{name:"Jamaica",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M23.3%20488.6%200%20465V47.1l23.4-23.7%20464%20464%2024.6-22.6V47.1l-24.5-22.7z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M23.3%2023.3%2047.1%200h417.7l23.8%2023.4-464%20464L47%20512h418l22.6-24.5z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200v47.1L208.8%20256%200%20464.9V512h47.1L256%20303.2%20464.9%20512H512v-47L303.1%20256%20512%2047.2V0h-47.2L256%20208.9%2047%200z%22%2F%3E%3C%2Fsvg%3E"},JP:{name:"Japan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22111.3%22%20fill%3D%22%23d80027%22%2F%3E%3C%2Fsvg%3E"},JE:{name:"Jersey",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%2047.1%2047%200h417.8L512%2047.2v417.7L464.9%20512H47L0%20464.9z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v47.1L208.8%20256%200%20464.9V512h47.1L256%20303.2%20464.9%20512H512v-47L303.1%20256%20512%2047.2V0h-47.2L256%20208.9%2047%200z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M211.5%2078%20256%2089l44.5-11V40l-17.8%209L256%2022.3%20229.3%2049l-17.8-9z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M211.5%2078v27.7c0%2034.1%2044.5%2044.6%2044.5%2044.6s44.5-10.5%2044.5-44.6V78z%22%2F%3E%3C%2Fsvg%3E"},JO:{name:"Jordan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m126%20158%20127.8-10.3L512%20167v178l-254.9%2032.3L126%20335.9z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v167H107z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M107%20345h405v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m101.6%20200.3%2014%2029.4%2031.8-7.3-14.2%2029.3%2025.5%2020.2-31.8%207.2.1%2032.6-25.4-20.4-25.4%2020.4V279l-31.7-7.2%2025.5-20-14.2-29.4%2031.8%207.3z%22%2F%3E%3C%2Fsvg%3E"},KZ:{name:"Kazakhstan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M400.7%20258.8H111.3c0%2020%2017.4%2036.2%2037.4%2036.2h-1.2c0%2020%2016.2%2036.1%2036.2%2036.1%200%2020%2016.1%2036.2%2036.1%2036.2h72.4c20%200%2036.1-16.2%2036.1-36.2%2020%200%2036.2-16.2%2036.2-36.1h-1.2c20%200%2037.4-16.2%2037.4-36.2z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M356.2%20211.5a100.2%20100.2%200%200%201-200.4%200%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m332.5%20211.5-31.3%2014.7%2016.7%2030.3-34-6.5-4.3%2034.3L256%20259l-23.6%2025.3L228%20250l-34%206.5%2016.6-30.3-31.2-14.7%2031.2-14.7-16.6-30.3%2034%206.5%204.3-34.3%2023.6%2025.2%2023.6-25.2L284%20173l34-6.5-16.6%2030.3z%22%2F%3E%3C%2Fsvg%3E"},KE:{name:"Kenya",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20144.7%20253.4-28.2L512%20144.7V178l-36%2076.4%2036%2079.6v33.3L254.7%20400%200%20367.3V334l39-78-39-78z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%20178h512v156H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m335.9%20118.3-30.3-14-49.4%20111.9-49.4-111.9-30.3%2014L237.8%20256l-61.3%20137.7%2030.3%2014%2049.4-111.9%2049.4%20111.9%2030.3-14L274.6%20256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M256.2%20111.3s-7%205.8-16.7%2016l-16%20127.6%2016%20129.8c9.7%2010.2%2016.7%2016%2016.7%2016s7-5.8%2016.7-16l15-130.7-15-126.7c-9.7-10.2-16.7-16-16.7-16z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m311.9%20179.2-10%2075.5%2010%2078.1A158.6%20158.6%200%200%200%20334%20256c0-28.2-9.7-54.5-22.2-76.8zm-111.4%200%208.9%2074.3-9%2079.3a158.6%20158.6%200%200%201-22.1-76.8c0-28.2%209.7-54.5%2022.2-76.8z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M200.5%20179.2v153.6a269%20269%200%200%200%2039%2051.9V127.3c-11.4%2012-26.6%2030-39%2052zm111.4%200a269%20269%200%200%200-39-51.9v257.4c11.4-12%2026.5-30%2039-52V179.3z%22%2F%3E%3C%2Fsvg%3E"},KI:{name:"Kiribati",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512l-.1%20234.8-254.7%20260.9L.3%20234.8z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m345%20238-36.3%2017.2%2019.3%2035.2-39.5-7.5-5%2039.9-27.5-29.4-27.5%2029.4-5-40-39.5%207.6%2019.3-35.2L167%20238l36.3-17.1-19.3-35.3%2039.5%207.6%205-40%2027.5%2029.4%2027.5-29.3%205%2039.9%2039.5-7.6-19.3%2035.3zM322.8%2083.6h-50.1a16.7%2016.7%200%200%200-33.4%200h-50c0%209.2%208%2016.7%2017.2%2016.7h-.6c0%209.2%207.5%2016.7%2016.7%2016.7%200%209.2%207.5%2016.7%2016.7%2016.7h33.4c9.2%200%2016.7-7.5%2016.7-16.7%209.2%200%2016.7-7.5%2016.7-16.7h-.6c9.3%200%2017.3-7.5%2017.3-16.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M85.3%20234.8c-21.3%200-21.3%2019.5-42.7%2019.5-21.2%200-21.3-19.3-42.3-19.5v34.3l12.3%2018.2L.3%20303.4V336l12.8%2018.2L.3%20370.3v32.4l39.1%2049.4%20441.2%203%2031.3-52.4v-32.4l-8.2-16.4%208.2-17.9v-32.6l-10.3-14%2010.3-20.3v-34.3c-21.2%200-21.2%2019.5-42.5%2019.5s-21.4-19.5-42.7-19.5c-21.3%200-21.3%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.6-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.3%200-21.3%2019.5-42.6%2019.5s-21.4-19.5-42.7-19.5z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M85.3%20269.1c-21.3%200-21.3%2019.5-42.7%2019.5-21.2%200-21.3-19.3-42.3-19.5v34.3c21%20.2%2021.1%2019.5%2042.3%2019.5%2021.4%200%2021.4-19.5%2042.7-19.5%2021.3%200%2021.3%2019.5%2042.7%2019.5%2021.4%200%2021.3-19.5%2042.6-19.5%2021.4%200%2021.4%2019.5%2042.7%2019.5%2021.3%200%2021.3-19.5%2042.7-19.5%2021.4%200%2021.4%2019.5%2042.7%2019.5%2021.3%200%2021.3-19.5%2042.7-19.5%2021.3%200%2021.3%2019.5%2042.6%2019.5%2021.4%200%2021.4-19.5%2042.7-19.5%2021.3%200%2021.3%2019.5%2042.7%2019.5%2021.4%200%2021.3-19.4%2042.5-19.5v-34.3c-21.2%200-21.2%2019.5-42.5%2019.5s-21.4-19.5-42.7-19.5c-21.3%200-21.3%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.6-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.3%200-21.3%2019.5-42.6%2019.5s-21.4-19.5-42.7-19.5zm0%2066.9C64%20336%2064%20355.5%2042.6%20355.5c-21.2%200-21.3-19.3-42.3-19.5v34.3c21%20.2%2021.1%2019.5%2042.3%2019.5%2021.4%200%2021.4-19.5%2042.7-19.5%2021.3%200%2021.3%2019.5%2042.7%2019.5%2021.4%200%2021.3-19.5%2042.6-19.5%2021.4%200%2021.4%2019.5%2042.7%2019.5%2021.3%200%2021.3-19.5%2042.7-19.5%2021.4%200%2021.4%2019.5%2042.7%2019.5%2021.3%200%2021.3-19.5%2042.7-19.5%2021.3%200%2021.3%2019.5%2042.6%2019.5%2021.4%200%2021.4-19.5%2042.7-19.5%2021.3%200%2021.3%2019.5%2042.7%2019.5%2021.4%200%2021.3-19.4%2042.5-19.5V336c-21.2%200-21.2%2019.5-42.5%2019.5S448%20336%20426.7%20336c-21.3%200-21.3%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.6-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.3%200-21.3%2019.5-42.6%2019.5S106.6%20336%2085.3%20336zm0%2066.7c-21.3%200-21.3%2019.5-42.7%2019.5-21.2%200-21.3-19.3-42.3-19.5L0%20512h512l-.1-109.3c-21.2%200-21.2%2019.5-42.5%2019.5s-21.4-19.5-42.7-19.5c-21.3%200-21.3%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.6-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.4%200-21.4%2019.5-42.7%2019.5-21.3%200-21.3-19.5-42.7-19.5-21.3%200-21.3%2019.5-42.6%2019.5s-21.4-19.5-42.7-19.5z%22%2F%3E%3C%2Fsvg%3E"},KP:{name:"Korea (Democratic People's Republic of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v89l-61.2%20165.6L512%20423v89H0v-89l62.5-174.6L0%2089z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%2089h512v33.4l-28.1%20130L512%20389.7V423H0v-33.4L30%20255%200%20122.4z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20122.4h512v267.2H0z%22%2F%3E%3Ccircle%20cx%3D%22157.5%22%20cy%3D%22256%22%20r%3D%2298.5%22%20fill%3D%22%23eee%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m157.5%20157.5%2022.1%2068h71.6l-58%2042%2022.3%2068.3-58-42.3-58%2042.2%2022.2-68.1-57.9-42h71.6z%22%2F%3E%3C%2Fsvg%3E"},KR:{name:"Korea (Republic of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M345%20256c0%2022.3-39.8%2078-89%2078s-89-55.7-89-78a89%2089%200%201%201%20178%200z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M345%20256a89%2089%200%201%201-178%200%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m350.4%20334.7%2023.7-23.6%2015.7%2015.7-23.6%2023.6zm-39.3%2039.4%2023.6-23.7%2015.7%2015.8-23.6%2023.6zm86.6%207.8%2023.6-23.6L437%20374l-23.6%2023.7zm-39.4%2039.4%2023.6-23.6%2015.8%2015.7L374%20437zm15.8-63%2023.6-23.6%2015.7%2015.7-23.6%2023.7zm-39.4%2039.4%2023.6-23.6%2015.8%2015.7-23.7%2023.6zm63-220.4-63-63%2015.8-15.7%2063%2063zm-63-15.7-23.6-23.7%2015.7-15.7%2023.7%2023.6zm39.4%2039.3-23.7-23.6%2015.8-15.7%2023.6%2023.6zm7.8-86.6-23.6-23.6L374%2075l23.7%2023.6zm39.4%2039.4L397.7%20130l15.7-15.8L437%20138zM90.7%20358.3l63%2063-15.8%2015.7-63-63zm63%2015.7%2023.6%2023.7-15.7%2015.7-23.7-23.6zm-39.4-39.3%2023.6%2023.6-15.7%2015.8-23.6-23.7zm23.6-23.6%2063%2063-15.7%2015.7-63-63zm15.8-220.4-63%2063L75%20137.9l63-63zm23.6%2023.6-63%2063-15.7-15.8%2063-63zm23.6%2023.6-63%2063-15.7-15.7%2063-63z%22%2F%3E%3C%2Fsvg%3E"},KW:{name:"Kuwait",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M138.4%20147%20512%20167v178l-373.6%2020z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%200%20138.4%20167H512V0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20512%20138.4-167H512v167z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M167%20167%200%200v512l167-167z%22%2F%3E%3C%2Fsvg%3E"},KG:{name:"Kyrgyzstan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M381.2%20256%20330%20280l27.3%2049.6-55.6-10.6-7%2056.1-38.7-41.3-38.7%2041.3-7-56.1-55.6%2010.6%2027.3-49.5-51.2-24.1%2051.2-24-27.3-49.6%2055.6%2010.6%207-56.1%2038.7%2041.3%2038.7-41.3%207%2056.1%2055.6-10.6-27.3%2049.5z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2277.9%22%20fill%3D%22%23d80027%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M217%20256c-1.8%200-3.7.1-5.5.3a44.3%2044.3%200%200%200%2010.4%2028.3%2078%2078%200%200%201%2015-24.9A55.4%2055.4%200%200%200%20217%20256zm24%2042a44.4%2044.4%200%200%200%2030%200c-2.6-10-7.8-19-15-26-7.2%207-12.4%2016-15%2026zm53.6-64.3a44.5%2044.5%200%200%200-77.2%200%2077.4%2077.4%200%200%201%2038.6%2010.5%2077.4%2077.4%200%200%201%2038.6-10.5zm-19.6%2026a78%2078%200%200%201%2015.1%2025%2044.3%2044.3%200%200%200%2010.4-28.4%2055.8%2055.8%200%200%200-5.5-.3%2055.3%2055.3%200%200%200-20%203.7z%22%2F%3E%3C%2Fsvg%3E"},LA:{name:"Lao People's Democratic Republic",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v144.8l-45.8%20113L512%20367.4V512H0V367.4l46.3-111.1L0%20144.8z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20144.8h512v222.6H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256.1%22%20r%3D%2289%22%20fill%3D%22%23eee%22%2F%3E%3C%2Fsvg%3E"},LV:{name:"Latvia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h512v189.2l-38.5%2070%2038.5%2063.6V512H0V322.8l39.4-63L0%20189.1z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20189.2h512v133.6H0z%22%2F%3E%3C%2Fsvg%3E"},LB:{name:"Lebanon",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v144.8l-45.8%20113L512%20367.4V512H0V367.4l46.3-111.1L0%20144.8z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20144.8h512v222.6H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M322.8%20300.5%20256%20178.1l-66.8%20122.4h50.1V334h33.4v-33.4z%22%2F%3E%3C%2Fsvg%3E"},LS:{name:"Lesotho",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20144.7%20255.3-36.5L512%20144.7v222.6L250.5%20407%200%20367.3z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M272.7%20250.4v-61.2h-33.4v61.2L199%20290.8a66.7%2066.7%200%200%200%20114%200z%22%2F%3E%3C%2Fsvg%3E"},LR:{name:"Liberia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20232.7%20256%200h256l-19.2%2024L512%2046.4v46.7l-19.6%2022.6%2019.6%2023.9v46.5L493.8%20209l18.2%2023.7v46.6L493%20304l19%2021.8v46.6l-18%2023.5%2018%2023v46.6l-253.3%2021L0%20465.5v-46.6l18.8-21.6L0%20372.4v-46.6l19.6-21.9L0%20279.3z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m256%200-22%2046.5h278V0zm-17.1%2093.2v46.5H512V93.2zm-4.9%2093%2022%2046.5h256v-46.5zM0%20279.3v46.5h512v-46.5zm0%2093.1v46.5h512v-46.5zm0%2093.1V512h512v-46.5z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h256v232.7H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m152.4%2066.8%2016.6%2051h53.6l-43.4%2031.5%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51-43.4-31.5h53.6z%22%2F%3E%3C%2Fsvg%3E"},LY:{name:"Libya",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m0%20144.7%20257-22.4%20255%2022.4v222.6l-254.9%2031L0%20367.3z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22m315.6%20209.3%2021%2029%2034-11-21%2029%2021%2028.8-34-11-21%2029v-36l-34-11%2034-11z%22%2F%3E%3Cpath%20d%3D%22M258.3%20328.4a72.3%2072.3%200%201%201%2034.4-136%2089%2089%200%201%200%200%20127.3%2072%2072%200%200%201-34.4%208.7z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},LI:{name:"Liechtenstein",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20256%20255.2-39.6L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M189.2%20178a33.4%2033.4%200%200%200-55.6-24.8v-19.6h11.1v-22.3h-11.1v-11.1h-22.3v11.1h-11.1v22.3h11.1v19.6A33.4%2033.4%200%200%200%2066.8%20203v19.6H178V203c6.8-6.1%2011.1-15%2011.1-25z%22%2F%3E%3C%2Fsvg%3E"},LT:{name:"Lithuania",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},LHO:{name:"Luhansk Oblast",flag:"data:image/svg+xml,%3Csvg%20width%3D%22512%22%20height%3D%22512%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23a)%22%3E%3Cpath%20d%3D%22M0%20341.333h512V512H0V341.333Z%22%20fill%3D%22%23D52B1E%22%2F%3E%3Cpath%20d%3D%22M0%20170.667h512v170.666H0V170.667Z%22%20fill%3D%22%230039A6%22%2F%3E%3Cpath%20d%3D%22M0%200h512v170.667H0V0Z%22%20fill%3D%22%2364C8FF%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22a%22%3E%3Crect%20width%3D%22512%22%20height%3D%22512%22%20rx%3D%22256%22%20fill%3D%22%23fff%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"},LU:{name:"Luxembourg",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},MO:{name:"Macao",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M300.5%20245.3c-6.3%200-12.2%201.3-17.8%203.3%203-6.8%205.1-14.3%205.1-22.4%200-31.8-31.8-55.6-31.8-55.6s-31.8%2023.8-31.8%2055.6c0%208%202%2015.6%205%2022.4-5.5-2-11.4-3.3-17.7-3.3-31.8%200-55.7%2031.8-55.7%2031.8s23.9%2031.8%2055.7%2031.8C230%20309%20246%20298%20256%20289c10%209.1%2025.9%2020%2044.5%2020%2031.8%200%2055.7-31.8%2055.7-31.8s-23.9-31.8-55.7-31.8z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%20100.2%206.6%2020.2h21.2l-17.2%2012.5%206.6%2020.2-17.2-12.5-17.2%2012.5%206.6-20.2-17.2-12.5h21.2zm-80.8%2035.3%2012.6%2011.4%2014.7-8.5-6.9%2015.5%2012.7%2011.4-17-1.8-6.9%2015.6-3.5-16.7-17-1.7%2014.8-8.5zM116%20194.7l16.6%203.5%208.5-14.7%201.8%2017%2016.6%203.5-15.5%206.9%201.8%2016.9-11.4-12.6-15.5%206.9%208.5-14.8zm220.8-59.2L324.2%20147l-14.7-8.5%206.9%2015.5-12.7%2011.4%2017-1.8%206.9%2015.6%203.5-16.7%2017-1.7-14.8-8.5zm59.2%2059.2-16.6%203.5-8.5-14.7-1.8%2017-16.6%203.5%2015.5%206.9-1.8%2016.9%2011.4-12.6%2015.5%206.9-8.5-14.8z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M256%20398c25.3%200%2048.5-8.5%2067.2-22.6H188.8c18.7%2014.1%2042%2022.6%2067.2%2022.6zm-102-66.8a111.3%20111.3%200%200%200%2013.2%2022.6h177.6a111.3%20111.3%200%200%200%2013.2-22.6z%22%2F%3E%3C%2Fsvg%3E"},MK:{name:"Macedonia (the former Yugoslav Republic of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h68.2l86%2033.6L216.5%200h78.8l61.2%2034.8L443.8%200H512v68.3l-31.4%2088%2031.4%2060.2v78.8L477.4%20356l34.6%2087.8V512h-68.2l-77-37.3-71.3%2037.3h-78.8l-61-39.7L68.2%20512H0v-68l40.3-88.2L0%20295.5v-78.8L40.3%20157%200%2068.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M295.5%20512h148.3L256%20256zm-79-512H68.2L256%20256zm.2%20512L256%20256%2068.2%20512zM0%20216.7%20256%20256%200%2068.2zm0%20227.2L256%20256%200%20295.5zM512%2068.3%20256%20256l256-39.5zM443.8%200H295.3L256%20256zM512%20443.8V295.3L256%20256z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2289%22%20fill%3D%22%23d80027%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2266.8%22%20fill%3D%22%23ffda44%22%2F%3E%3C%2Fsvg%3E"},MG:{name:"Madagascar",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h167l45.6%20257.6L167.1%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M167%200h345v256l-176.7%2053.5L166.9%20256z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M167%20256h345v256H167z%22%2F%3E%3C%2Fsvg%3E"},MW:{name:"Malawi",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m332.5%20122.4-31.2-14.7%2016.6-30.3-34%206.5-4.3-34.3L256%2075l-23.6-25.3L228%2084l-34-6.5%2016.7%2030.3-31.3%2014.7z%22%2F%3E%3C%2Fsvg%3E"},MY:{name:"Malaysia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20256%20256%200h256v55.7l-19.5%2033%2019.5%2033.7v66.8l-22.1%2037.7L512%20256v66.8l-20.2%2038.5%2020.2%2028.3v66.7l-254.5%2028.2L0%20456.3v-66.7l26-35.1-26-31.7z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%20256h256v-66.8H222.9zm-33.1-133.6H512V55.7H222.9zM512%20512v-55.7H0V512zM0%20389.6h512v-66.8H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h256v256H0z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22M170.2%20219.1a63.3%2063.3%200%201%201%2030.1-119%2078%2078%200%201%200%200%20111.4%2063%2063%200%200%201-30%207.6z%22%2F%3E%3Cpath%20d%3D%22m188%20111.3%2011.3%2023.5%2025.4-5.9-11.4%2023.5%2020.4%2016.2-25.4%205.7.1%2026-20.3-16.2-20.4%2016.2.1-26-25.4-5.7%2020.4-16.2-11.4-23.5%2025.4%206z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},MV:{name:"Maldives",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M89%20133.6h334v244.8H89z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M297.2%20328.3a72.3%2072.3%200%201%201%2034.4-136%2089%2089%200%201%200%200%20127.3%2072%2072%200%200%201-34.4%208.7z%22%2F%3E%3C%2Fsvg%3E"},ML:{name:"Mali",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M167%200h178l25.9%20252.3L345%20512H167l-29.8-253.4z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},MT:{name:"Malta",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h256l52%20259.2L256%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%200h256v512H256z%22%2F%3E%3Cpath%20fill%3D%22%23acabb1%22%20d%3D%22M178%20100.2V66.8h-33.3v33.4h-33.4v33.4h33.4V167h33.4v-33.4h33.4v-33.4z%22%2F%3E%3C%2Fsvg%3E"},MH:{name:"Marshall Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h397.6L512%20114.2V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M512%200H397.6L0%20512%20493.4%2053.7z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22m0%20512%20512-397.8V0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M222.2%20150.1%20191%20164.8l16.7%2030.3-34-6.5-4.3%2034.3-23.6-25.2-23.7%2025.2-4.3-34.3-33.9%206.5%2016.6-30.3-31.2-14.7%2031.2-14.7L84%20105.1l34%206.5%204.2-34.3%2023.7%2025.3%2023.6-25.3%204.3%2034.3%2034-6.5-16.7%2030.3z%22%2F%3E%3C%2Fsvg%3E"},MQ:{name:"Martinique",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h222.6l31%2023.4L289.4%200H512v222.6l-21.5%2031%2021.5%2035.8V512H289.4l-34.2-20.5-32.6%2020.5H0V289.4l22.7-32.6L0%20222.6z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M222.6%200v222.6H0v66.8h222.6V512h66.8V289.4H512v-66.8H289.4V0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M343.4%20162.4a6.2%206.2%200%200%201%206.2-6.1h13.2a38%2038%200%200%200%200-75.9h-12.6c-4-3-9.6-5-15.6-5-12.7%200-23%208.3-23%2018.4%200%2010%2010.1%2018.2%2022.6%2018.3h28.6a6.2%206.2%200%200%201%200%2012.4h-13.2a38%2038%200%200%200%200%2075.8h51.1v-31.7h-51.1a6.2%206.2%200%200%201-6.2-6.2zm-200.4%200a6.2%206.2%200%200%201%206.2-6.1h13.2a38%2038%200%200%200%200-75.9H150c-4.1-3-9.6-5-15.7-5-12.6%200-22.9%208.3-22.9%2018.4%200%2010%2010%2018.2%2022.6%2018.3h28.5a6.2%206.2%200%200%201%200%2012.4h-13.2a38%2038%200%200%200%200%2075.8h51.1v-31.7h-51a6.2%206.2%200%200%201-6.3-6.2zm200.4%20236.2a6.2%206.2%200%200%201%206.2-6.2h13.2a38%2038%200%200%200%200-75.8h-12.6c-4-3-9.6-5-15.6-5-12.7%200-23%208.3-23%2018.4%200%2010%2010.1%2018.1%2022.6%2018.3h28.6a6.2%206.2%200%200%201%206.2%206.2%206.2%206.2%200%200%201-6.2%206.2h-13.2a38%2038%200%200%200%200%2075.8h51v-31.7h-51a6.2%206.2%200%200%201-6.2-6.2zm-200.4%200a6.2%206.2%200%200%201%206.2-6.2h13.2a38%2038%200%200%200%200-75.8H150c-4.1-3-9.6-5-15.7-5-12.6%200-22.9%208.3-22.9%2018.4%200%2010%2010%2018.1%2022.6%2018.3h28.5a6.2%206.2%200%200%201%206.2%206.2%206.2%206.2%200%200%201-6.2%206.2h-13.2a38%2038%200%200%200%200%2075.8h51.1v-31.7h-51a6.2%206.2%200%200%201-6.3-6.2z%22%2F%3E%3C%2Fsvg%3E"},MR:{name:"Mauritania",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22M256%20295.8a89%2089%200%200%201-87-70%2089.4%2089.4%200%200%200-2%2019%2089%2089%200%201%200%20178%200%2089.4%2089.4%200%200%200-2-19%2089%2089%200%200%201-87%2070z%22%2F%3E%3Cpath%20d%3D%22m256%20178%208.3%2025.6H291l-21.7%2015.8%208.3%2025.5L256%20229l-21.7%2015.8%208.3-25.5-21.7-15.8h26.8z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},MU:{name:"Mauritius",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%20378.3%20254-37.1%20258%2037V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20256.1%20252.2-33.3L512%20256v122.4H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20133.7%20249.7%2097%20512%20133.7v122.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v133.7H0z%22%2F%3E%3C%2Fsvg%3E"},YT:{name:"Mayotte",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23acabb1%22%20d%3D%22M113%20139c-4%200-11%202-23%208a59%2059%200%200%200-13%209c-28%2027-20%2068-11%2079%203%204%2016%2023%2032%2030%2022%208%2036%2028%2037%2051%200%2024-15%2044-34%2046h-4c-19%200-36-19-37-43v2c1%2029%2020%2052%2043%2052s44-12%2055-32l5-8a43%2043%200%200%200%204-14c4-19%206-70-47-95-40-20-45-36-40-43a4%204%200%200%201%203-1%2019%2019%200%200%200%2018%2019%2015%2015%200%200%200%2010-4s18%2018%2024%2011%200-7-6-14c-5-7%200-21-11-28-12-7-18-7-12-15a16%2016%200%200%201%2012-7s0-3-5-3zm287%200c-5%200-5%203-5%203%205%201%209%203%2012%207%205%208%200%208-12%2015s-6%2021-12%2028c-5%207-11%207-5%2014%205%207%2024-11%2024-11a15%2015%200%200%200%2010%204%2019%2019%200%200%200%2018-19%204%204%200%200%201%202%201c6%207%201%2023-40%2043-52%2025-50%2076-47%2095l5%2014a189%20189%200%200%200%205%208c10%2020%2032%2033%2054%2032%2024%200%2043-23%2044-52v-2c-2%2024-18%2043-38%2043h-4c-19-2-33-22-33-46%201-23%2015-43%2036-51%2016-7%2029-26%2033-30%208-11%2017-52-11-79a59%2059%200%200%200-14-9c-12-6-18-8-22-8zM26%20199c-1%200-2%201-2%203-2%2016-1%2052%2033%2064a2%202%200%200%200%203-1l6-8v-4c-5-7-22-31-22-44l-2-2a19%2019%200%200%201-15-7l-1-1zm460%200-1%201a19%2019%200%200%201-15%207l-2%202c0%2013-17%2037-21%2044v4l5%208a2%202%200%200%200%203%201c34-12%2035-48%2034-64l-3-3z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M211%20147a22.5%2022.5%200%200%200%200%2045%2022.5%2022.5%200%200%200%200%2045l45%2032%2045-32a22.5%2022.5%200%200%200%200-45%2022.5%2022.5%200%201%200-22.5-22.5%2022.5%2022.5%200%200%200-45%200A22.5%2022.5%200%200%200%20211%20147z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M211%20327a22.5%2022.5%200%200%201-22.5-22.5A22.5%2022.5%200%200%201%20211%20282a22.5%2022.5%200%200%201-22.5-22.5A22.5%2022.5%200%200%201%20211%20237h90a22.5%2022.5%200%200%201%2022.5%2022.5A22.5%2022.5%200%200%201%20301%20282a22.5%2022.5%200%200%201%2022.5%2022.5A22.5%2022.5%200%200%201%20301%20327a22.5%2022.5%200%200%201-22.5-22.5A22.5%2022.5%200%200%201%20256%20327a22.5%2022.5%200%200%201-22.5-22.5A22.5%2022.5%200%200%201%20211%20327z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M232%20188a25%2025%200%200%200-1%205%2025%2025%200%200%200%2025%2025%2025%2025%200%200%200%2025-25%2025%2025%200%200%200-1-5%2025%2025%200%200%201-24%2019%2025%2025%200%200%201-24-19z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M283%20254a4%204%200%200%200-4%204v8l-7-4a4%204%200%200%200-2-1%204%204%200%200%200-3%202%204%204%200%200%200%201%206l7%204-7%203a4%204%200%200%200-1%206%204%204%200%200%200%205%201l7-3v7a4%204%200%200%200%204%204%204%204%200%200%200%204-4v-7l7%203a4%204%200%200%200%205-1%204%204%200%200%200-1-6l-7-3%207-4a4%204%200%200%200%201-6%204%204%200%200%200-3-2%204%204%200%200%200-2%201l-7%204v-8a4%204%200%200%200-4-4zm-54%200a4%204%200%200%200-4%204v8l-7-4a4%204%200%200%200-2-1%204%204%200%200%200-3%202%204%204%200%200%200%201%206l7%204-7%203a4%204%200%200%200-1%206%204%204%200%200%200%205%201l7-3v7a4%204%200%200%200%204%204%204%204%200%200%200%204-4v-7l7%203a4%204%200%200%200%205-1%204%204%200%200%200-1-6l-7-3%207-4a4%204%200%200%200%201-6%204%204%200%200%200-3-2%204%204%200%200%200-2%201l-7%204v-8a4%204%200%200%200-4-4z%22%2F%3E%3C%2Fsvg%3E"},MX:{name:"Mexico",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M144%200h223l33%20256-33%20256H144l-32-256z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h144v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M368%200h144v512H368z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20277v10h12l10-22z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M160%20242a96%2096%200%200%200%20192%200h-11a85%2085%200%200%201-170%200zm39%2017-4%202c-2%202-2%206%201%208%2015%2014%2034%2022%2054%2024v17h12v-17c20-2%2039-10%2054-24%203-2%203-6%201-8s-6-2-8%200a78%2078%200%200%201-53%2021c-19%200-38-8-53-21z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M256%20316c-14%200-28-5-40-13l6-9c20%2013%2048%2013%2068%200l7%209c-12%208-26%2013-41%2013z%22%2F%3E%3Cpath%20fill%3D%22%23751a46%22%20d%3D%22M256%20174c22%2011%2012%2033%2011%2034l-2-4c-5-11-18-18-31-18v11c6%200%2011%205%2011%2011-7%207-9%2017-4%2026l4%208-13%2023%2029-7%2018%2018v-11l11%2011%2023-11-35-21-5-21%2028%2016c4%2011%2012%2021%2023%2026%209-83-42-91-61-91z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M222%20271c-15%200-33-12-38-40l11-2c4%2023%2018%2031%2027%2031%203%200%205-1%206-3%200-2%200-3-6-5-3-1-7-2-10-5-10-12%204-24%2011-30%201-1%202-2%201-3%200%200-2-2-5-2-7%200-12-4-14-11-2-6%202-13%208-17l5%2011c-2%200-2%202-2%204%200%200%201%202%203%202%207%200%2014%204%2016%209%201%203%202%209-5%2015-7%207-11%2012-9%2015l5%201c5%202%2014%205%2013%2017-1%208-8%2013-17%2013h-1z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m234%20186-12%2011v11l18-9c3-1%203-5%201-7z%22%2F%3E%3Ccircle%20cx%3D%22172%22%20cy%3D%22275%22%20r%3D%228%22%20fill%3D%22%23ffda44%22%2F%3E%3Ccircle%20cx%3D%22189%22%20cy%3D%22302%22%20r%3D%228%22%20fill%3D%22%23ffda44%22%2F%3E%3Ccircle%20cx%3D%22216%22%20cy%3D%22323%22%20r%3D%228%22%20fill%3D%22%23ffda44%22%2F%3E%3Ccircle%20cx%3D%22297%22%20cy%3D%22323%22%20r%3D%228%22%20fill%3D%22%23ffda44%22%2F%3E%3Ccircle%20cx%3D%22324%22%20cy%3D%22302%22%20r%3D%228%22%20fill%3D%22%23ffda44%22%2F%3E%3Ccircle%20cx%3D%22341%22%20cy%3D%22275%22%20r%3D%228%22%20fill%3D%22%23ffda44%22%2F%3E%3Crect%20width%3D%2234%22%20height%3D%2222%22%20x%3D%22239%22%20y%3D%22299%22%20fill%3D%22%23ff9811%22%20rx%3D%2211%22%20ry%3D%2211%22%2F%3E%3C%2Fsvg%3E"},FM:{name:"Micronesia (Federated States of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m256%20111.3%2011%2034h35.8l-29%2021%2011.1%2034-28.9-21-29%2021%2011.1-34-29-21H245zM111.3%20256l34-11v-35.8l21%2029%2034-11.1-21%2028.9%2021%2029-34-11.1-21%2029V267zM256%20400.7l-11-34h-35.8l29-21-11.1-34%2028.9%2021%2029-21-11.1%2034%2029%2021H267zM400.7%20256l-34%2011v35.8l-21-29-34%2011.1%2021-28.9-21-29%2034%2011.1%2021-29V245z%22%2F%3E%3C%2Fsvg%3E"},MD:{name:"Moldova (Republic of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h144.7l36%20254.6-36%20257.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M367.3%200H512v512H367.3l-29.7-257.3z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M144.7%200h222.6v512H144.7z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M345.1%20201.4H284a27.8%2027.8%200%201%200-55.6%200h-61.2a28.2%2028.2%200%200%200%2028.3%2027.4h-1a27.4%2027.4%200%200%200%2027.5%2027.4c0%2013.4%209.6%2024.5%2022.3%2027l-21.6%2048.7a88.8%2088.8%200%200%200%2033.5%206.5%2088.8%2088.8%200%200%200%2033.5-6.5L268.1%20283a27.4%2027.4%200%200%200%2022.3-26.9%2027.4%2027.4%200%200%200%2027.4-27.4h-.9a28.2%2028.2%200%200%200%2028.3-27.4z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256.1%20239.3%20220%20256v33.4l36.2%2022.3%2036.2-22.3V256z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M220%20222.6h72.3V256H220z%22%2F%3E%3C%2Fsvg%3E"},MC:{name:"Monaco",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20256%20258.2-43.3L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3C%2Fsvg%3E"},MN:{name:"Mongolia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h167l84.9%2045L345%200h167v512H345l-87.7-48.1L167%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M167%200h178v512H167z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22M122.4%20256h22.3v89h-22.3zm-89%200h22.3v89H33.4z%22%2F%3E%3Ccircle%20cx%3D%2289%22%20cy%3D%22289.4%22%20r%3D%2222.3%22%2F%3E%3Ccircle%20cx%3D%2289%22%20cy%3D%22211.5%22%20r%3D%2211.1%22%2F%3E%3Cpath%20d%3D%22M66.8%20322.8h44.5V345H66.8zm0-89h44.5V256H66.8zM89%20133.5l8%2024.2h25.4l-20.6%2015%207.9%2024.3L89%20182l-20.6%2015%207.9-24.3-20.6-15h25.5z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},ME:{name:"Montenegro",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512v44.5l-43.6%20209.7L512%20467.5V512H0v-44.5l46.6-212L0%2044.5z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%2044.5h512v423H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M200.3%20189.2h111.4v-44.5l-22.3%2011.1-33.4-33.4-33.4%2033.4-22.3-11.1zM356.2%20256h-55.7a25.5%2025.5%200%200%200%203.5-12.8%2025.7%2025.7%200%200%200-48.3-12.1%2025.7%2025.7%200%201%200-45%2024.9h-54.9c0%2017%2014.9%2030.8%2031.9%2030.8h-1c0%2014%209.2%2025.8%2022%2029.6l-25%2025%2023.6%2023.6%2033.5-33.5c1.3.5%202.6.9%204%201.1l-20.2%2045.7a83.2%2083.2%200%200%200%2031.4%206.2%2083.2%2083.2%200%200%200%2031.4-6.2l-20.2-45.7a25.4%2025.4%200%200%200%204-1.1l33.5%2033.5%2023.6-23.6-25-25a30.8%2030.8%200%200%200%2022-29.6h-1c17%200%2031.9-13.8%2031.9-30.8z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m256%20272.7-36.2%2016.7v33.4L256%20345l36.2-22.2v-33.4z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M219.8%20256h72.4v44.5h-72.4z%22%2F%3E%3C%2Fsvg%3E"},MS:{name:"Montserrat",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M289.4%20133.6V256l78%2040.4%2077.9-40.4V133.6h-156z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M289.4%20256c0%2059.6%2077.9%2078%2077.9%2078s78-18.4%2078-78h-156z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M400.7%20189.2h-22.3V167h-22.2v22.2h-22.3v22.3h22.3v66.8h22.2v-66.8h22.3z%22%2F%3E%3C%2Fsvg%3E"},MA:{name:"Morocco",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M407.3%20210H291.7L256%20100.3%20220.3%20210H104.7l93.5%2068-35.7%20109.8L256%20320l93.5%2068-35.7-110zm-183%2059.5%2012.2-37.1h39l12.1%2037.1-31.6%2023-31.6-23zm44-59.4h-24.6l12.3-37.9zm38.3%2045.7-7.7-23.4h39.9zM213%20232.4l-7.7%2023.4-32.2-23.4zm-8.3%2097.3%2012.3-38%2020%2014.5zm70.1-23.4%2020-14.5%2012.3%2037.9z%22%2F%3E%3C%2Fsvg%3E"},MZ:{name:"Mozambique",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m99%20136.8%20413%2020v31.5l-35.9%2066.1%2036.2%2068.4-.3%2032.4-413%2022z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M512%20156.8V0H0l122%20156.8z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M167%20188.3v134.5h345.3l-.3-134.5z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M512%20355.2V512H0l122-156.8z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m103.6%20189.2%2016.6%2051h53.6l-43.4%2031.6%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51-43.4-31.6H87z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M55.1%20256h97v44.5h-97z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m170.5%20205-15.7-15.8-51.2%2051.2-51.1-51.2L36.7%20205%2088%20256l-51.2%2051.3%2015.8%2015.5%2051.1-51%2051.2%2051%2015.7-15.5-51.2-51.2z%22%2F%3E%3C%2Fsvg%3E"},MM:{name:"Myanmar",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M431.5%20216.5h-134L256%2089l-41.4%20127.6h-134l108.3%2078.8L147.5%20423%20256%20345l108.5%2078-41.4-127.6z%22%2F%3E%3C%2Fsvg%3E"},NA:{name:"Namibia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20401.9%20160.6-237.1L401.9%200H449l63%2063v47.3L350.3%20339.2%20110.3%20512H63L0%20449z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%20512h63L512%2063V0h-63L0%20449z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200v401.9L401.9%200z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M512%20512V110.3L110.3%20512z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m211.5%20144.7-28.7%2013.5L198%20186l-31.2-6-4%2031.5-21.6-23.2-21.7%2023.2-4-31.5-31%206%2015.2-27.8L71%20144.7l28.7-13.5-15.3-27.8%2031.1%206%204-31.5%2021.7%2023.2L163%2078l4%2031.5%2031-6-15.2%2027.8z%22%2F%3E%3C%2Fsvg%3E"},NR:{name:"Nauru",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v233.7L494.3%20257l17.7%2021.3V512H0V278.3l18.7-22.9L0%20233.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m211.5%20345-28.7%2013.5%2015.3%2027.8-31.2-6-4%2031.5-21.6-23.1-21.7%2023.1-4-31.4-31.1%206%2015.3-27.9L71%20345l28.7-13.4-15.3-27.8%2031.1%206%204-31.5%2021.7%2023.1%2021.7-23.1%204%2031.4%2031-6-15.2%2027.9z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%20233.7h512v44.6H0z%22%2F%3E%3C%2Fsvg%3E"},NP:{name:"Nepal",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M228.4%200H512v512h-27.4L159.4%20258.5z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M510.5%20283.8%20228.5%200h-39.3l-70.9%20253.8L445.2%20512h39.4L256.4%20283.8h254z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M445.2%20256%20189.2%200H0v512h445.2l-256-256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m243.5%20378-31.3-14.7L229%20333l-34%206.5-4.3-34.3-23.6%2025.2-23.7-25.2-4.3%2034.3-34-6.5%2016.7%2030.3L90.4%20378l31.3%2014.7-16.6%2030.3%2034-6.5%204.2%2034.3%2023.7-25.2%2023.6%2025.2%204.3-34.3%2034%206.5-16.7-30.3zM149.8%2089l-3.2%2025-24.7-4.7%2012.1%2022-22.7%2010.7h-11.1a66.8%2066.8%200%200%200%20133.5%200h-11.1L200%20131.3l12-22-24.6%204.7-3.1-25-17.2%2018.4z%22%2F%3E%3C%2Fsvg%3E"},NL:{name:"Netherlands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},NC:{name:"New Caledonia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%20352h512v160H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20160h512v192H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v160H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M398%20256a168%20168%200%201%201-336%200%20168%20168%200%200%201%20336%200z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M230%2080a176%20176%200%201%200%200%20352%20176%20176%200%200%200%200-352zm-8%2016v34c-8%204-14%208-15%2016l-1%2016%206-3%2010-4v8a24%2024%200%200%200-16%2023%2024%2024%200%200%200%2016%2022v8h-20v16h20v8a24%2024%200%200%200-16%2022%2024%2024%200%200%200%2016%2023v7h-20v17h20v7a24%2024%200%200%200-16%2023%2024%2024%200%200%200%2016%2022v8c-10%200-18%203-23%207-7%205-22%2020-30%2028a160%20160%200%200%201%2053-308zm16%200a160%20160%200%200%201%2051%20309l-30-29c-5-4-12-6-21-7v-8a24%2024%200%200%200%2016-22%2024%2024%200%200%200-16-23v-7h21v-16h-21v-8a24%2024%200%200%200%2016-23%2024%2024%200%200%200-16-22v-8h21v-16h-21v-7a24%2024%200%200%200%2016-23%2024%2024%200%200%200-16-23v-20c6-5%2011-13%2017-23%204-8%202-11%202-11l-2%203-17%2011V96z%22%2F%3E%3C%2Fsvg%3E"},NZ:{name:"New Zealand",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Zm382%2092-11%2035h-37l30%2021-12%2035%2030-22%2030%2022-12-35%2030-21h-37l-11-35Zm61%2072-11%2035h-37l30%2021-11%2035%2029-21%2030%2021-12-35%2030-21h-37Zm-123%2010-11%2035h-37l30%2022-11%2035%2029-22%2030%2022-11-35%2029-22h-36zm59%20130-11%2035h-37l30%2021-11%2035%2029-21%2030%2021-11-35%2029-21h-36z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97zm251%20201-5%2018h-19l15%2010-6%2018%2015-11%2015%2011-5-18%2014-10h-18Zm-59-129-5%2017h-19l15%2011-6%2017%2015-11%2015%2011-6-17%2015-11h-18l-6-17zm123-11-6%2018h-18l15%2011-6%2017%2015-11%2015%2011-6-17%2015-11h-18l-6-18zm-61-72-6%2017h-18l15%2011-6%2017%2015-10%2015%2010-6-17%2015-11h-18z%22%2F%3E%3C%2Fsvg%3E"},NI:{name:"Nicaragua",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v144.7l-41.4%20111.7L512%20367.3V512H0V367.3l41.5-107.9L0%20144.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20144.7h512v222.6H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20178a78%2078%200%201%200%200%20156%2078%2078%200%200%200%200-156zm0%20122.5a44.5%2044.5%200%201%201%200-89%2044.5%2044.5%200%200%201%200%2089z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M294.6%20267.1%20256%20256l-38.6%2011.1-12.8%2022.3h102.8z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M256%20200.3%20230.3%20245l25.7%2011%2025.7-11.1z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M217.4%20267.1h77.2L281.7%20245h-51.4z%22%2F%3E%3C%2Fsvg%3E"},NE:{name:"Niger",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20144.7%20255.3-36.5L512%20144.7v222.6L250.5%20407%200%20367.3z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256.1%22%20r%3D%2289%22%20fill%3D%22%23ff9811%22%2F%3E%3C%2Fsvg%3E"},NG:{name:"Nigeria",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200v512h160l96-64%2096%2064h160V0H352l-96%2064-96-64Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M160%200h192v512H160Z%22%2F%3E%3C%2Fsvg%3E"},NU:{name:"Niue",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%20256%20256%200h256v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32l42-16%2041%2016h45l-8-16%208-15v-14l-16-42%2016-41V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M128%20256v-83l83%2083zm128-45-83-83h83z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m128%20128%20128%20128v-31l-97-97Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Z%22%2F%3E%3Ccircle%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%20fill%3D%22%230052b4%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m50%20198%2014-44%2015%2044-38-27h47zM162%2086l14-44%2015%2044-38-27h47ZM64%2017l28%2086-73-53h90l-73%2053Z%22%2F%3E%3C%2Fsvg%3E"},NF:{name:"Norfolk Island",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h144.7l108.4%2041.2L367.3%200H512v512H367.3l-110.2-41.4L144.7%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M144.7%200h222.6v512H144.7z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m323%20334-67-211.6L189.3%20334h50.1v55.7h33.4V334z%22%2F%3E%3C%2Fsvg%3E"},MP:{name:"Northern Mariana Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M248%20417.2a16.7%2016.7%200%200%201-15-11%2016.7%2016.7%200%200%201-29.7-7.6%2016.7%2016.7%200%200%201-27.6-13.5%2016.7%2016.7%200%200%201-24.3-18.9%2016.7%2016.7%200%200%201-17.8-5%2016.7%2016.7%200%200%201-2.3-18.3%2016.7%2016.7%200%200%201-15-26.8%2016.7%2016.7%200%200%201-9.2-29.4%2016.7%2016.7%200%200%201-3.1-30.5%2016.7%2016.7%200%200%201%203-30.6%2016.7%2016.7%200%200%201%209.2-29.4%2016.7%2016.7%200%200%201%2015-26.9%2016.7%2016.7%200%200%201%202.2-18.3c4.5-5.2%2011.5-7%2017.7-5a16.7%2016.7%200%200%201%206-17.5%2016.7%2016.7%200%200%201%2018.3-1.4%2016.7%2016.7%200%200%201%2027.6-13.6%2016.7%2016.7%200%200%201%2029.7-7.7%2016.7%2016.7%200%200%201%2030.7-1.6%2016.7%2016.7%200%200%201%2030.4%204.6%2016.7%2016.7%200%200%201%2028.9%2010.6%2016.7%2016.7%200%200%201%2026.1%2016.2c6-2.6%2013.2-1.5%2018.2%203.2a16.7%2016.7%200%200%201%204.1%2018%2016.7%2016.7%200%200%201%2017.7%2025.1%2016.7%2016.7%200%200%201%2015.4%2010.1%2016.7%2016.7%200%200%201-3.2%2018.2%2016.7%2016.7%200%200%201%206.2%2030c6%202.6%2010.2%208.5%2010.2%2015.4v.4c0%206.9-4.2%2012.8-10.2%2015.4a16.7%2016.7%200%200%201-6.1%2030%2016.7%2016.7%200%200%201-12.2%2028.3%2016.7%2016.7%200%200%201-.4%2018.5%2016.7%2016.7%200%200%201-17.1%206.8%2016.7%2016.7%200%200%201-4.2%2018c-5%204.7-12.2%205.7-18.1%203.2a16.7%2016.7%200%200%201-26%2016.3%2016.7%2016.7%200%200%201-28.8%2010.7%2016.7%2016.7%200%200%201-30.5%204.6%2016.7%2016.7%200%200%201-15.9%209.4z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22111.3%22%20fill%3D%22%23338af3%22%2F%3E%3Cpath%20fill%3D%22%23acabb1%22%20d%3D%22M280.4%20218.2c5.4-4%209-10.5%209-17.9v-11c0-12.4-10-22.3-22.3-22.3H245c-12.3%200-22.3%2010-22.3%2022.2v11.1c0%207.4%203.6%2013.9%209%2018L211.5%20423s11.1%2011%2044.5%2011%2044.5-11%2044.5-11z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m256%20167%2019.3%2059.5H338l-50.6%2036.8%2019.3%2059.5L256%20286l-50.6%2036.8%2019.3-59.5-50.6-36.8h62.6z%22%2F%3E%3C%2Fsvg%3E"},NO:{name:"Norway",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h100.2l66.1%2053.5L233.7%200H512v189.3L466.3%20257l45.7%2065.8V512H233.7l-68-50.7-65.5%2050.7H0V322.8l51.4-68.5-51.4-65z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M100.2%200v189.3H0v33.4l24.6%2033L0%20289.5v33.4h100.2V512h33.4l30.6-26.3%2036.1%2026.3h33.4V322.8H512v-33.4l-24.6-33.7%2024.6-33v-33.4H233.7V0h-33.4l-33.8%2025.3L133.6%200z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M133.6%200v222.7H0v66.7h133.6V512h66.7V289.4H512v-66.7H200.3V0z%22%2F%3E%3C%2Fsvg%3E"},OM:{name:"Oman",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M189.2%200H512v167l-347.5%2024.6z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m163%20320%20349%2025v167H189.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h189.2v167H512v178H189.2v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M156.6%20112.7%20133%2089l-15.7%2015.8L101.5%2089%2078%20112.7l15.8%2015.7L78%20144l23.6%2023.6%2015.8-15.7%2015.7%2015.7%2023.6-23.6-15.7-15.7z%22%2F%3E%3C%2Fsvg%3E"},PK:{name:"Pakistan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h133.6l50.2%20252.5L133.6%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M133.6%200H512v512H133.6z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M365.5%20298.3A72.3%2072.3%200%201%201%20313.7%20168a89%2089%200%201%200%2074.6%20103.2%2072%2072%200%200%201-22.8%2027.2zM364%20167l18.2%2019.6%2024.3-11.3-13%2023.5%2018.2%2019.6-26.3-5.1-13%2023.4-3.3-26.7-26.1-5%2024.4-11.3z%22%2F%3E%3C%2Fsvg%3E"},PW:{name:"Palau",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Ccircle%20cx%3D%22200.3%22%20cy%3D%22256%22%20r%3D%22111.3%22%20fill%3D%22%23ffda44%22%2F%3E%3C%2Fsvg%3E"},PS:{name:"Palestine, State of",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M41.3%20121.9%20512%20167v178L43.8%20391.3z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v167H111z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M111%20345h401v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3C%2Fsvg%3E"},PA:{name:"Panama",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h256l256%20256v256H256L0%20256z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20256v256h256V256z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%200h256v256H256z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m152.4%2089%2016.6%2051h53.6l-43.4%2031.6%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51L82.2%20140h53.6z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m359.6%20289.4%2016.6%2051h53.6L386.4%20372l16.6%2051-43.4-31.5-43.4%2031.6%2016.6-51-43.4-31.6H343z%22%2F%3E%3C%2Fsvg%3E"},PG:{name:"Papua New Guinea",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M512%20512%20301.3%20226.6%200%200v512z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22m0%200%20512%20512V0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m195%20346%204.2%2012.9h13.6l-11%208%204.2%2012.8-11-7.9-11%207.9%204.2-12.9-11-8h13.6zm-34.6-123.7%207%2021.5h22.5L171.7%20257l7%2021.5-18.3-13.3-18.2%2013.3%206.9-21.5-18.2-13.2h22.5zm0%20157.4%207%2021.5h22.5l-18.2%2013.2%207%2021.6-18.3-13.4-18.2%2013.4%206.9-21.6-18.2-13.2h22.5zm66-101.2%207%2021.5H256l-18.2%2013.3%206.9%2021.4-18.2-13.2-18.3%2013.2%207-21.4-18.3-13.3h22.5zm-132%200%207%2021.5h22.5l-18.2%2013.3%207%2021.4-18.3-13.2-18.3%2013.2%207-21.4L64.8%20300h22.5z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M430.3%20189a67%2067%200%200%200-42.6-19.7l48.2-37.6a89.7%2089.7%200%200%200-70.3-26A67.2%2067.2%200%200%200%20348.5%2076l-19.2%2038.2a28%2028%200%200%200-4.8-6.3%2028%2028%200%201%200-39.7%2039.7%2028%2028%200%200%200%206.3%204.8L253%20171.5a67.2%2067.2%200%200%200%2029.6%2017.2%2089.7%2089.7%200%200%200%2026%2070.2l42.2-54.2a16.8%2016.8%200%200%201%2011.9-4.9c4.4%200%208.7%201.7%2012%205a16.8%2016.8%200%200%201%204.8%2011.9c0%204.5-1.7%208.8-4.9%2012l15.9%2015.9a39.1%2039.1%200%200%200%203.7-51.4%2044.7%2044.7%200%200%201%2020.2%2011.6%2045%2045%200%200%201%200%2063.6l15.9%2015.9a67%2067%200%200%200%200-95.4z%22%2F%3E%3C%2Fsvg%3E"},PY:{name:"Paraguay",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20144.7%20255.3-36.5L512%20144.7v222.6L250.5%20407%200%20367.3z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m319%20182-23.6%2023.5a55.5%2055.5%200%200%201-39.4%2095%2055.7%2055.7%200%200%201-39.3-95L193%20182a89%2089%200%201%200%20126%200z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%20211.5%208.3%2025.5H291l-21.7%2015.8%208.3%2025.5-21.7-15.8-21.7%2015.8%208.3-25.5-21.7-15.8h26.8z%22%2F%3E%3C%2Fsvg%3E"},PE:{name:"Peru",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h167l86%2041.2L345%200h167v512H345l-87.9-41.4L167%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M167%200h178v512H167z%22%2F%3E%3C%2Fsvg%3E"},PH:{name:"Philippines",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v256l-265%2045.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M210%20256h302v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M175.3%20256%20144%20241.3l16.7-30.3-34%206.5-4.3-34.3-23.6%2025.2L75%20183.2l-4.3%2034.3-34-6.5%2016.7%2030.3L22.3%20256l31.2%2014.7L37%20301l34-6.5%204.2%2034.3%2023.7-25.2%2023.6%2025.2%204.3-34.3%2034%206.5-16.7-30.3zm-107-155.8%2010.4%2014.5%2017-5.4-10.6%2014.4%2010.4%2014.5-17-5.6L68%20147l.2-17.9-17-5.6%2017-5.4zm0%20264.8%2010.4%2014.6%2017-5.4-10.6%2014.3%2010.4%2014.6-17-5.7L68%20411.8l.2-17.9-17-5.6%2017-5.4zm148.4-132.4L206.3%20247l-17-5.4%2010.5%2014.4-10.4%2014.6%2017-5.7%2010.6%2014.4-.1-17.9%2017-5.6-17.1-5.4z%22%2F%3E%3C%2Fsvg%3E"},PN:{name:"Pitcairn",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23acabb1%22%20d%3D%22m401%20156-34%2011-33-11-11-28%2011-28h67l-11%2028Z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M289%20156v122c0%2060%2078%2078%2078%2078s78-18%2078-78V156H289z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M296%20307c20%2037%2071%2049%2071%2049s52-12%2071-49l-71-118-71%20118z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m445%20277-78-121-78%20121v1a62%2062%200%200%200%207%2029l71-110%2071%20110a62%2062%200%200%200%207-29z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3C%2Fsvg%3E"},PL:{name:"Poland",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20256%20256.4-44.3L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3C%2Fsvg%3E"},PT:{name:"Portugal",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20512h167l37.9-260.3L167%200H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%200H167v512h345z%22%2F%3E%3Ccircle%20cx%3D%22167%22%20cy%3D%22256%22%20r%3D%2289%22%20fill%3D%22%23ffda44%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M116.9%20211.5V267a50%2050%200%201%200%20100.1%200v-55.6H117z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M167%20283.8c-9.2%200-16.7-7.5-16.7-16.7V245h33.4v22c0%209.2-7.5%2016.7-16.7%2016.7z%22%2F%3E%3C%2Fsvg%3E"},PR:{name:"Puerto Rico",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m27%2063.3%20485%2039.1v102.4L477.3%20259l34.7%2048.2v102.4L27.4%20446.9z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%200%2051.2%20102.4H512V0zm0%20512h512V409.6H51.2zm180-204.8h332V204.8H180z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m103.6%20189.2%2016.6%2051h53.6l-43.4%2031.6%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51-43.4-31.6H87z%22%2F%3E%3C%2Fsvg%3E"},QA:{name:"Qatar",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h173l61%20255.8L173.4%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23751a46%22%20d%3D%22m173%200-72.7%2030.8L176%2063l-75.7%2032.2%2075.7%2032.1-75.7%2032.2%2075.7%2032.1-75.7%2032.1%2075.7%2032.2-75.7%2032.2%2075.7%2032.1-75.7%2032.2%2075.7%2032.1-75.7%2032.2%2075.7%2032.1-75.7%2032.2%2073.1%2031H512V0z%22%2F%3E%3C%2Fsvg%3E"},ROC:{name:"Republic of Crimea",flag:"data:image/svg+xml,%3Csvg%20width%3D%22512%22%20height%3D%22512%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23a)%22%3E%3Cpath%20d%3D%22M512%20426.667H0V512h512v-85.333Z%22%20fill%3D%22%23D80027%22%2F%3E%3Cpath%20d%3D%22M512%2085.3334H0V426.667h512V85.3334Z%22%20fill%3D%22%23EEE%22%2F%3E%3Cpath%20d%3D%22M512%200H0v85.3333h512V0Z%22%20fill%3D%22%230052B4%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22a%22%3E%3Crect%20width%3D%22512%22%20height%3D%22512%22%20rx%3D%22256%22%20fill%3D%22%23fff%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"},RE:{name:"Réunion",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M64%200%200%2064v160l32%2032-32%2032v224l256-32%20256%2032V288l-32-32%2032-32V64L448%200H288l-32%2032-32-32H64z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%20256%200%20512h512z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%20224v64l512-64v64z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20256%200%2064V0h64zm0%200L448%200h64v64zm0%200L224%200h64z%22%2F%3E%3C%2Fsvg%3E"},RO:{name:"Romania",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M167%200h178l25.9%20252.3L345%20512H167l-29.8-253.4z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h167v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M345%200h167v512H345z%22%2F%3E%3C%2Fsvg%3E"},RU:{name:"Russian Federation",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},RW:{name:"Rwanda",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22m0%20378.5%20254.1-22.1L512%20378.5V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20256.1%20255-30.3%20257%2030.3v122.4H0z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m289.4%20150%2031.3%2014.6L304%20195l34-6.5%204.3%2034.3%2023.6-25.2%2023.7%2025.2%204.3-34.3%2034%206.5-16.7-30.3%2031.2-14.7-31.2-14.7%2016.6-30.3-34%206.5-4.2-34.3-23.7%2025.3-23.6-25.3-4.3%2034.3-34-6.5%2016.7%2030.3z%22%2F%3E%3C%2Fsvg%3E"},BL:{name:"Saint Barthélemy",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23acabb1%22%20d%3D%22M167%20178a28%2028%200%200%200-28%2028H55a28%2028%200%200%200%2028%2028%2028%2028%200%200%200%2028%2028%2028%2028%200%200%200%2028%2028h234a28%2028%200%200%200%2028-28%2028%2028%200%200%200%2028-28%2028%2028%200%200%200%2028-28h-84a28%2028%200%200%200-28-28z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M123%20357h44v44h-44zm222%200h44v44h-44zm-178%2011h178v44H167zm67-268v33.5L223%20145l-12-6v-17h-44v56l89%2014%2089-14v-56h-44v17l-12%206-11-11.5V100z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M167%20178v112c0%2068%2089%2088.5%2089%2088.5s89-20.4%2089-88.5V178z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M167%20222.1h178v69H167z%22%2F%3E%3C%2Fsvg%3E"},SH:{name:"Saint Helena, Ascension and Tristan da Cunha",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20d%3D%22M288%20128h160v80l-80%2032-80-32z%22%20style%3D%22fill%3A%23eee%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M368%20140a14%2014%200%200%200-14%2014h-42a14%2014%200%200%200%2014%2014%2014%2014%200%200%200%2014%2014%2014%2014%200%200%200%2014%2014h28a14%2014%200%200%200%2014-14%2014%2014%200%200%200%2014-14%2014%2014%200%200%200%2014-14h-42a14%2014%200%200%200-14-14z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M288%20208v48c0%2061%2080%2080%2080%2080s80-19%2080-80v-48z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M372%20221c-9%200-15%208-25%201%205%2012%2014%209%2022%2010v6h-14s-14%2020%200%2038h14v5h-14c-9%200-9-11-9-11h-34v11h7c9%208%2013%2026%2027%2026h52c15%200%2017-9%2020-17%203-7%205-8%206-9v-8h-29s0%208-8%208h-12v-6h14c-11-17%200-37%200-37h-14v-16l-4-1zm-23%2017c-20%206-31%2026-31%2026h25c-2-17%206-26%206-26zm44%206a34%2034%200%200%200-2%2023h24c-5-12%200-23%200-23z%22%2F%3E%3C%2Fsvg%3E"},KN:{name:"Saint Kitts and Nevis",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20401.9%20173.6-225.3L401.9%200H449l63%2063-.1%2047.3-167.3%20223.5L110.3%20512H63L0%20449z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200v401.9L401.9%200z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%20512V110.3L110.3%20512z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20512h63L512%2063V0h-63L0%20449z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m162.8%20302%2024%2012.2%2019-19-4.4%2026.5%2024%2012.2-26.6%204.2-4.2%2026.5-12-24L156%20345l19-19zM302%20162.8l24%2012.1%2019-19-4.3%2026.6%2024%2012.1-26.6%204.2-4.2%2026.5-12.2-23.9-26.5%204.2%2019-19z%22%2F%3E%3C%2Fsvg%3E"},LC:{name:"Saint Lucia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M161.4%20345h189.2L256%20122.4z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M194.3%20322.8%20256%20182.4l61.7%20140.4z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M161.4%20345h189.2L256%20256z%22%2F%3E%3C%2Fsvg%3E"},MF:{name:"Saint Martin (French part)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20128V0h512v128L299%20512h-86z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22213%22%20r%3D%2257%22%20fill%3D%22%23ffda44%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M185%20213h142l-71%20128Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%20341%20142%20235h228z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20128%20213%20213v171H0Zm512%200L299%20341v171h213z%22%2F%3E%3C%2Fsvg%3E"},PM:{name:"Saint Pierre and Miquelon",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M160%200h352v512H160l-32-256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20160%2080-32%2080%2032v192l-80%2032-80-32z%22%2F%3E%3Crect%20width%3D%22160%22%20height%3D%22160%22%20fill%3D%22%23d80027%22%20ry%3D%220%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M160%2021V0h-20L0%20139v21h20z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%2021V0h20l140%20139v21h-20z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%2064h160v32H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M64%200h32v160H64z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20512h160V352H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M340%20146v158h-40c-24%200-24-32-24-32h-96v32h20l147%2032%20145-32v-24h-80s0%2024-24%2024h-32V146z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M356%20138v32c-31-11-61%208-80-32%2033%2023%2051-10%2080%200zm-72%2046s-24%2024-16%2072h-72s32-56%2088-72zm16%20104h95c-31-48%200-104%200-104h-95s-40%2056%200%20104zm101-24a96%2096%200%200%201%204-64h63s-16%2032-1%2064zm-101%2040h192s-8%200-16%2024-16%2048-56%2048H276c-39%200-52-50-76-72z%22%2F%3E%3Crect%20width%3D%2296%22%20height%3D%2232%22%20x%3D%2232%22%20y%3D%22384%22%20fill%3D%22%23ffda44%22%20rx%3D%2216%22%20ry%3D%2216%22%2F%3E%3Crect%20width%3D%2296%22%20height%3D%2232%22%20x%3D%2232%22%20y%3D%22448%22%20fill%3D%22%23ffda44%22%20rx%3D%2216%22%20ry%3D%2216%22%2F%3E%3C%2Fsvg%3E"},VC:{name:"Saint Vincent and the Grenadines",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M378.5%200H133.7l-22.3%20256%2022.3%20256h244.8l22.3-256z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M133.7%20512V0H0v512z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M512%200H378.5v512H512zM200.4%20322.8%20156%20256l44.5-66.8%2044.7%2066.8zm111.4%200L267.1%20256l44.6-66.8%2044.5%2066.8zm-55.7%2089L211.6%20345l44.5-66.7%2044.5%2066.7z%22%2F%3E%3C%2Fsvg%3E"},WS:{name:"Samoa",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20256%20256%200h256v512H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m205%20167%204.2%2012.7h13.4l-10.8%207.9%204.1%2012.7-10.8-7.8-10.9%207.8%204.1-12.7-10.8-7.9h13.4zM137.8%2066.8l7%2021.2H167l-18.1%2013.2%206.9%2021.2-18.1-13.1-18%2013.1%206.8-21.2-18-13.2h22.3zM204.5%2089l6.9%2021.3h22.3l-18%2013.1%206.9%2021.3-18.1-13.1-18.1%2013.1%207-21.3-18.2-13.1h22.4zm-52.8%2089%206.9%2021.3H181l-18.1%2013.2%206.9%2021.2-18.1-13.1-18%2013.1%206.8-21.2-18-13.2h22.3zm-58.5-55.6%206.9%2021.3h22.3l-18%2013.1%206.9%2021.3-18.1-13.2L75%20178.1l6.9-21.3-18-13.1h22.3z%22%2F%3E%3C%2Fsvg%3E"},SM:{name:"San Marino",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22m0%20256%20256-52.3L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M357.6%20176.6%20256%20278.3%20154.4%20176.6a121.7%20121.7%200%200%200-20.8%2068.3v33.4c0%2053.6%2034.6%2099.2%2082.7%20115.8a37%2037%200%200%200%204%2040l36.4-29.2%2036.4%2029.2a37%2037%200%200%200%203.9-40.5%20122.6%20122.6%200%200%200%2081.4-115.3v-33.4c0-25.3-7.6-48.7-20.8-68.3z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M256%20367.3c-49.1%200-89-40-89-89v-33.4a89.1%2089.1%200%200%201%20178%200v33.4c0%2049-39.9%2089-89%2089z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M311.7%20278.3v-33.4a55.7%2055.7%200%200%200-111.4%200v33.4l55.7%2011z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M200.3%20278.3a55.7%2055.7%200%200%200%20111.4%200z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M322.8%20155.8A33.4%2033.4%200%200%200%20267%20131v-19.6h11.2V89H267V78h-22v11h-11.2v22.3H245v19.6a33.4%2033.4%200%200%200-44.5%2049.8v19.6h111.3v-19.6c6.8-6.1%2011-15%2011-24.9z%22%2F%3E%3C%2Fsvg%3E"},ST:{name:"Sao Tome and Principe",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v167l-52.6%2083.8L512%20345v167H0l72-264.3z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M114.9%20166.9H512v178H114.9z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m325%20211.5%2011.1%2034H372l-29%2021%2011.1%2034-29-21-28.9%2021%2011-34-28.8-21H314zm111.4%200%2011%2034h35.8l-29%2021%2011.1%2034-29-21-28.9%2021%2011.1-34-29-21h35.8z%22%2F%3E%3C%2Fsvg%3E"},SA:{name:"Saudi Arabia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22M144.7%20306c0%2018.5%2015%2033.5%2033.4%2033.5h100.2a27.8%2027.8%200%200%200%2027.8%2027.8h33.4a27.8%2027.8%200%200%200%2027.8-27.8V306zm225.4-161.3v78c0%2012.2-10%2022.2-22.3%2022.2v33.4c30.7%200%2055.7-25%2055.7-55.7v-77.9H370zm-239.3%2078c0%2012.2-10%2022.2-22.3%2022.2v33.4c30.7%200%2055.7-25%2055.7-55.7v-77.9h-33.4z%22%2F%3E%3Cpath%20d%3D%22M320%20144.7h33.4v78H320zm-50%2044.5a5.6%205.6%200%200%201-11.2%200v-44.5h-33.4v44.5a5.6%205.6%200%200%201-11.1%200v-44.5h-33.4v44.5a39%2039%200%200%200%2039%2039%2038.7%2038.7%200%200%200%2022.2-7%2038.7%2038.7%200%200%200%2022.2%207c1.7%200%203.4-.1%205-.3a22.3%2022.3%200%200%201-21.6%2017v33.4c30.6%200%2055.6-25%2055.6-55.7v-77.9H270z%22%2F%3E%3Cpath%20d%3D%22M180.9%20244.9h50v33.4h-50z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},SN:{name:"Senegal",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M144.8%200h222.4l32%20260-32%20252H144.8l-32.1-256z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h144.8v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M367.2%200H512v512H367.2z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22m256.1%20167%2022.1%2068h71.5L292%20277l22%2068-57.8-42-57.9%2042%2022.1-68-57.8-42H234z%22%2F%3E%3C%2Fsvg%3E"},RS:{name:"Serbia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M66.2%20144.7v127.7c0%2072.6%2094.9%2095%2094.9%2095s94.9-22.4%2094.9-95V144.7z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M105.4%20167h111.4v-44.6l-22.3%2011.2-33.4-33.4-33.4%2033.4-22.3-11.2zm128.3%20123.2-72.3-72.4L89%20290.2l23.7%2023.6%2048.7-48.7%2048.7%2048.7z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M233.7%20222.6H200a22.1%2022.1%200%200%200%203-11.1%2022.3%2022.3%200%200%200-42-10.5%2022.3%2022.3%200%200%200-41.9%2010.5%2022.1%2022.1%200%200%200%203%2011.1H89a23%2023%200%200%200%2023%2022.3h-.7c0%2012.3%2010%2022.2%2022.3%2022.2%200%2011%207.8%2020%2018.1%2021.9l-17.5%2039.6a72.1%2072.1%200%200%200%2027.2%205.3%2072.1%2072.1%200%200%200%2027.2-5.3L171.1%20289c10.3-2%2018.1-11%2018.1-21.9%2012.3%200%2022.3-10%2022.3-22.2h-.8a23%2023%200%200%200%2023-22.3z%22%2F%3E%3C%2Fsvg%3E"},SC:{name:"Seychelles",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200v332l150.9-138.5L225.2%200z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M273.1%20253.3%20512%200H225.2L0%20332v80.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%200%200%20412.2v50.4L277.9%20390%20512%20256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20462.6%20512%20256v133.5l-223.9%2078.8L0%20488.4z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m512%20389.5-512%2099V512h512z%22%2F%3E%3C%2Fsvg%3E"},SL:{name:"Sierra Leone",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},SG:{name:"Singapore",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20256%20257.7-51L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22M155.8%20133.6A78%2078%200%200%201%20217%2057.5a78.2%2078.2%200%200%200-16.7-1.8%2078%2078%200%201%200%2016.7%20154%2078%2078%200%200%201-61.2-76.1zM256%2061.2l5.5%2017h18l-14.6%2010.5%205.6%2017L256%2095.2l-14.5%2010.5%205.6-17-14.5-10.5h17.9z%22%2F%3E%3Cpath%20d%3D%22m212.6%2094.6%205.6%2017H236l-14.4%2010.5%205.5%2017-14.5-10.5-14.4%2010.5%205.5-17-14.5-10.5h17.9zm86.8%200%205.5%2017h17.9l-14.5%2010.5%205.5%2017-14.4-10.5-14.5%2010.5%205.5-17-14.4-10.5h17.8zm-16.7%2050.1%205.5%2017h17.9l-14.5%2010.5%205.5%2017-14.4-10.5-14.5%2010.5%205.5-17-14.4-10.5h17.9zm-53.4%200%205.5%2017h18l-14.5%2010.5%205.5%2017-14.5-10.5-14.4%2010.5%205.5-17-14.5-10.5h17.9z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},SX:{name:"Sint Maarten (Dutch part)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v256l-265%2045.2z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M210%20256h302v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22M28%20256a73.1%2073.1%200%200%200-.2%205.6%2072.3%2072.3%200%201%200%20144.5-5.6z%22%2F%3E%3Ccircle%20cx%3D%22100.2%22%20cy%3D%22200.3%22%20r%3D%2222.3%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M50%20194.8V267c0%2038.4%2050.2%2050%2050.2%2050s50-11.6%2050-50v-72.3h-100z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M100.2%20294c-9.3-3.4-28-12-28-27v-50H128v50c0%2015-18.6%2023.6-27.8%2026.9z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M111.3%20244.9v-11.2l-11.1-5.5-11.2%205.5V245l-5.5%205.5v22.3h33.4v-22.3z%22%2F%3E%3C%2Fsvg%3E"},SK:{name:"Slovakia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20160%20256-32%20256%2032v192l-256%2032L0%20352z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v160H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20352h512v160H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M64%2063v217c0%20104%20144%20137%20144%20137s144-33%20144-137V63z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M96%2095v185a83%2078%200%200%200%209%2034h206a83%2077%200%200%200%209-34V95z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M288%20224h-64v-32h32v-32h-32v-32h-32v32h-32v32h32v32h-64v32h64v32h32v-32h64z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M152%20359a247%20231%200%200%200%2056%2024c12-3%2034-11%2056-24a123%20115%200%200%200%2047-45%2060%2056%200%200%200-34-10l-14%202a60%2056%200%200%200-110%200%2060%2056%200%200%200-14-2c-12%200-24%204-34%2010a123%20115%200%200%200%2047%2045z%22%2F%3E%3C%2Fsvg%3E"},SI:{name:"Slovenia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M222.7%20167v-66.8H89V167l67%2082.6z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M89%20167v22.2c0%2051.1%2066.8%2066.8%2066.8%2066.8s66.8-15.7%2066.8-66.8V167l-22.3%2022.2-44.5-33.4-44.5%2033.4z%22%2F%3E%3C%2Fsvg%3E"},SB:{name:"Solomon Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M512%20512V23.6L256%20255.9%2023.6%20512z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h488.4L256%20256%200%20488.4z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M488.4%200%200%20488.4V512h23.6L512%2023.6V0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m107.8%2089%205.5%2017h18l-14.6%2010.5%205.5%2017L108%20123l-14.5%2010.6%205.5-17L84.4%20106h17.8zm91.3%200%205.5%2017h18L208%20116.4l5.6%2017L199%20123l-14.5%2010.6%205.6-17-14.5-10.6h18zm-91.3%2089%205.5%2017h18l-14.6%2010.5%205.5%2017-14.4-10.5-14.5%2010.5%205.5-17L84.4%20195h17.8zm91.3%200%205.5%2017h18L208%20205.5l5.6%2017-14.5-10.5-14.5%2010.5%205.6-17-14.5-10.5h18zm-45.7-44.5%205.6%2017h17.8L162.4%20161l5.5%2017-14.5-10.5L139%20178l5.5-17-14.5-10.5h18z%22%2F%3E%3C%2Fsvg%3E"},SO:{name:"Somalia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m256%20133.6%2027.6%2085H373L300.7%20271l27.6%2085-72.3-52.5-72.3%2052.6%2027.6-85-72.3-52.6h89.4z%22%2F%3E%3C%2Fsvg%3E"},ZA:{name:"South Africa",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%200%20192%20256L0%20512h47l465-189v-34l-32-33%2032-33v-34L47%200Z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20142v228l140-114z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M192%20256%200%2095v47l114%20114L0%20370v47z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M512%20223H223L0%200v94l161%20162L0%20418v94l223-223h289z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%200H47l189%20189h276z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M512%20512H47l189-189h276z%22%2F%3E%3C%2Fsvg%3E"},GS:{name:"South Georgia and the South Sandwich Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Crect%20width%3D%2264%22%20height%3D%2232%22%20x%3D%22336%22%20y%3D%22256%22%20fill%3D%22%236da544%22%20rx%3D%2216%22%20ry%3D%2216%22%2F%3E%3Ccircle%20cx%3D%22368%22%20cy%3D%2296%22%20r%3D%2232%22%20fill%3D%22%23ff9811%22%2F%3E%3Ccircle%20cx%3D%22368%22%20cy%3D%22144%22%20r%3D%2248%22%20fill%3D%22%23acabb1%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M320%20144v77c0%2036%2048%2048%2048%2048s48-12%2048-48v-77z%22%2F%3E%3Crect%20width%3D%2232%22%20height%3D%22128%22%20x%3D%22288%22%20y%3D%22128%22%20fill%3D%22%23333%22%20rx%3D%2216%22%20ry%3D%2216%22%2F%3E%3Crect%20width%3D%2232%22%20height%3D%22128%22%20x%3D%22416%22%20y%3D%22128%22%20fill%3D%22%23333%22%20rx%3D%2216%22%20ry%3D%2216%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m320%20144%2048%20112%2048-112z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M288%20288v32h32v8h96v-8h32v-32h-32v8h-96v-8z%22%2F%3E%3C%2Fsvg%3E"},SS:{name:"South Sudan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M74.1%20115%20512%20156.9v31.5l-42.4%2070.3%2042.4%2064.2v31.5L74.1%20386.8z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v156.8H50z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M150.6%20188.3H512v134.5H150.6z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M50%20354.3h462V512H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m83.4%20192.4%2031.2%2043.6%2051.2-16.3-31.9%2043.2%2031.3%2043.6-51-16.9-31.7%2043.2.3-53.7L32%20262.2%2083%20246z%22%2F%3E%3C%2Fsvg%3E"},ES:{name:"Spain",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20128%20256-32%20256%2032v256l-256%2032L0%20384Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v128H0zm0%20384h512v128H0z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22M144%20304h-16v-80h16zm128%200h16v-80h-16z%22%2F%3E%3Cellipse%20cx%3D%22208%22%20cy%3D%22296%22%20rx%3D%2248%22%20ry%3D%2232%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23d80027%22%3E%3Crect%20width%3D%2216%22%20height%3D%2224%22%20x%3D%22128%22%20y%3D%22192%22%20rx%3D%228%22%2F%3E%3Crect%20width%3D%2216%22%20height%3D%2224%22%20x%3D%22272%22%20y%3D%22192%22%20rx%3D%228%22%2F%3E%3Cpath%20d%3D%22M208%20272v24a24%2024%200%200%200%2024%2024%2024%2024%200%200%200%2024-24v-24h-24z%22%2F%3E%3C%2Fg%3E%3Crect%20width%3D%2232%22%20height%3D%2216%22%20x%3D%22120%22%20y%3D%22208%22%20fill%3D%22%23ff9811%22%20ry%3D%228%22%2F%3E%3Crect%20width%3D%2232%22%20height%3D%2216%22%20x%3D%22264%22%20y%3D%22208%22%20fill%3D%22%23ff9811%22%20ry%3D%228%22%2F%3E%3Crect%20width%3D%2232%22%20height%3D%2216%22%20x%3D%22120%22%20y%3D%22304%22%20fill%3D%22%23ff9811%22%20rx%3D%228%22%2F%3E%3Crect%20width%3D%2232%22%20height%3D%2216%22%20x%3D%22264%22%20y%3D%22304%22%20fill%3D%22%23ff9811%22%20rx%3D%228%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M160%20272v24c0%208%204%2014%209%2019l5-6%205%2010a21%2021%200%200%200%2010%200l5-10%205%206c6-5%209-11%209-19v-24h-9l-5%208-5-8h-10l-5%208-5-8z%22%2F%3E%3Cpath%20d%3D%22M122%20252h172m-172%2024h28m116%200h28%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M122%20248a4%204%200%200%200-4%204%204%204%200%200%200%204%204h172a4%204%200%200%200%204-4%204%204%200%200%200-4-4zm0%2024a4%204%200%200%200-4%204%204%204%200%200%200%204%204h28a4%204%200%200%200%204-4%204%204%200%200%200-4-4zm144%200a4%204%200%200%200-4%204%204%204%200%200%200%204%204h28a4%204%200%200%200%204-4%204%204%200%200%200-4-4z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M196%20168c-7%200-13%205-15%2011l-5-1c-9%200-16%207-16%2016s7%2016%2016%2016c7%200%2013-4%2015-11a16%2016%200%200%200%2017-4%2016%2016%200%200%200%2017%204%2016%2016%200%201%200%2010-20%2016%2016%200%200%200-27-5c-3-4-7-6-12-6zm0%208c5%200%208%204%208%208%200%205-3%208-8%208-4%200-8-3-8-8%200-4%204-8%208-8zm24%200c5%200%208%204%208%208%200%205-3%208-8%208-4%200-8-3-8-8%200-4%204-8%208-8zm-44%2010%204%201%204%208c0%204-4%207-8%207s-8-3-8-8c0-4%204-8%208-8zm64%200c5%200%208%204%208%208%200%205-3%208-8%208-4%200-8-3-8-7l4-8z%22%2F%3E%3Cpath%20fill%3D%22none%22%20d%3D%22M220%20284v12c0%207%205%2012%2012%2012s12-5%2012-12v-12z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M200%20160h16v32h-16z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M208%20224h48v48h-48z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m248%20208-8%208h-64l-8-8c0-13%2018-24%2040-24s40%2011%2040%2024zm-88%2016h48v48h-48z%22%2F%3E%3Crect%20width%3D%2220%22%20height%3D%2232%22%20x%3D%22222%22%20y%3D%22232%22%20fill%3D%22%23d80027%22%20rx%3D%2210%22%20ry%3D%2210%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M168%20232v8h8v16h-8v8h32v-8h-8v-16h8v-8zm8-16h64v8h-64z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Ccircle%20cx%3D%22186%22%20cy%3D%22202%22%20r%3D%226%22%2F%3E%3Ccircle%20cx%3D%22208%22%20cy%3D%22202%22%20r%3D%226%22%2F%3E%3Ccircle%20cx%3D%22230%22%20cy%3D%22202%22%20r%3D%226%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M169%20272v43a24%2024%200%200%200%2010%204v-47h-10zm20%200v47a24%2024%200%200%200%2010-4v-43h-10z%22%2F%3E%3Cg%20fill%3D%22%23338af3%22%3E%3Ccircle%20cx%3D%22208%22%20cy%3D%22272%22%20r%3D%2216%22%2F%3E%3Crect%20width%3D%2232%22%20height%3D%2216%22%20x%3D%22264%22%20y%3D%22320%22%20ry%3D%228%22%2F%3E%3Crect%20width%3D%2232%22%20height%3D%2216%22%20x%3D%22120%22%20y%3D%22320%22%20ry%3D%228%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},LK:{name:"Sri Lanka",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M81.4%2027.2h135.2v456.5H81.4z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m0%2044.5%20100.2-22v463L0%20467.5z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22m218.6%2026.5%20293.4%2018v93.2l-18.6%20106.2%2018.6%2097.4v126.2l-293.4%2018z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200v44.5h200.3v423H0V512h512v-44.5H233.7v-423H512V0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M300.5%2094.6c-18.4%200-33.4%2015-33.4%2033.4v144.6a33%2033%200%200%200%2011.2%2025v53h22.2v-27.8h100.2v44.5h-22.3v22.3H423V345l20.4-22.2h48.2a72.9%2072.9%200%200%200%2020.4%2018.5V137.7a66%2066%200%200%200-22.5%2013.1%2067.8%2067.8%200%200%200-13.2%2082.9c-21.3-.1-41%20.2-53.3%200V167c0-11.2-16.7-22.3-16.7-22.3s-16.7%2011.1-16.7%2022.3h-66.8v66.7h33.4v33.4c0%207.1%201.4%2014.1%204.1%2020.7L345%20300.6h-44.5v-206z%22%2F%3E%3C%2Fsvg%3E"},SD:{name:"Sudan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M43.6%20109.4%20512%20144.7v222.6L43.8%20397.2z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v144.7H111z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M111%20367.3h401V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3C%2Fsvg%3E"},SR:{name:"Suriname",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%200h512v111.3l-85.3%20143.1L512%20400.7V512H0V400.7l87-149L0%20111.3z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20111.3h512V167l-41%2084.7%2041%2093.3v55.7H0V345l44.2-86.6L0%20167z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%20167h512v178H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%20167%2022.1%2068h71.5l-57.8%2042%2022%2068-57.8-42-57.9%2042%2022.1-68-57.8-42h71.5z%22%2F%3E%3C%2Fsvg%3E"},SJ:{name:"Svalbard and Jan Mayen",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h100.2l66.1%2053.5L233.7%200H512v189.3L466.3%20257l45.7%2065.8V512H233.7l-68-50.7-65.5%2050.7H0V322.8l51.4-68.5-51.4-65z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M100.2%200v189.3H0v33.4l24.6%2033L0%20289.5v33.4h100.2V512h33.4l30.6-26.3%2036.1%2026.3h33.4V322.8H512v-33.4l-24.6-33.7%2024.6-33v-33.4H233.7V0h-33.4l-33.8%2025.3L133.6%200z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M133.6%200v222.7H0v66.7h133.6V512h66.7V289.4H512v-66.7H200.3V0z%22%2F%3E%3C%2Fsvg%3E"},SZ:{name:"Swaziland",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20144.7%20256-20.5%20256%2020.5V178l-37.4%2079%2037.4%2077v33.3l-256%2024.1L0%20367.3V334l37.7-77.3L0%20178z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%20178h512v156H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M89.2%20244.9h334V267h-334zm44.6-44.6h244.8v22.3H133.8z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m256.2%20189.2-18%2065.2%2018%2068.4c66.8%200%20124-66.8%20124-66.8s-57.2-66.8-124-66.8z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M256.2%20322.8c-66.8%200-124-66.8-124-66.8s57.2-66.8%20124-66.8%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M211.7%20233.7h22.2v44.6h-22.2z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M278.5%20233.7h22.2v44.6h-22.2z%22%2F%3E%3Cg%20fill%3D%22%230052b4%22%20transform%3D%22translate(.2)%22%3E%3Ccircle%20cx%3D%2289%22%20cy%3D%22256%22%20r%3D%2222.3%22%2F%3E%3Ccircle%20cx%3D%22423%22%20cy%3D%22256%22%20r%3D%2222.3%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},SE:{name:"Sweden",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h133.6l35.3%2016.7L200.3%200H512v222.6l-22.6%2031.7%2022.6%2035.1V512H200.3l-32-19.8-34.7%2019.8H0V289.4l22.1-33.3L0%20222.6z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M133.6%200v222.6H0v66.8h133.6V512h66.7V289.4H512v-66.8H200.3V0z%22%2F%3E%3C%2Fsvg%3E"},CH:{name:"Switzerland",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M389.6%20211.5h-89v-89h-89.1v89h-89v89h89v89h89v-89h89z%22%2F%3E%3C%2Fsvg%3E"},SY:{name:"Syrian Arab Republic",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22m153%20194.8%2013.8%2042.5h44.7l-36.2%2026.3%2013.8%2042.5-36.1-26.3-36.2%2026.3%2013.8-42.5-36.2-26.3h44.7zm206%200%2013.9%2042.5h44.7l-36.2%2026.3%2013.8%2042.5-36.2-26.3-36.1%2026.3%2013.8-42.5-36.2-26.3h44.7z%22%2F%3E%3C%2Fsvg%3E"},TW:{name:"Taiwan, Province of China",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20256%20256%200h256v512H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%20256V0H0v256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m222.6%20149.8-31.3%2014.7%2016.7%2030.3-34-6.5-4.3%2034.3-23.6-25.2-23.7%2025.2-4.3-34.3-34%206.5%2016.7-30.3-31.2-14.7%2031.2-14.7-16.6-30.3%2034%206.5%204.2-34.3%2023.7%2025.3L169.7%2077l4.3%2034.3%2034-6.5-16.7%2030.3z%22%2F%3E%3Ccircle%20cx%3D%22146.1%22%20cy%3D%22149.8%22%20r%3D%2247.7%22%20fill%3D%22%230052b4%22%2F%3E%3Ccircle%20cx%3D%22146.1%22%20cy%3D%22149.8%22%20fill%3D%22%23eee%22%20r%3D%2241.5%22%2F%3E%3C%2Fsvg%3E"},TJ:{name:"Tajikistan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20144.7%20255.3-36.5L512%20144.7v222.6L250.5%20407%200%20367.3z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M211.5%20323h89v-38l-17.8%209-26.7-26.9-26.7%2026.7-17.8-8.9zm-51-44.6%204.2%2012.7H178l-10.9%208%204.2%2012.7-10.9-8-10.8%208%204.1-12.8-10.7-7.9h13.4zm12.9-44.6%204.1%2012.8H191l-10.8%208%204.1%2012.6-10.8-7.9-10.9%208%204.2-12.8-10.9-8h13.4zm36.7-33.4%204.2%2012.8h13.4l-10.9%208%204.2%2012.6-11-7.7-10.8%207.8%204.1-12.7-10.8-7.9H206zm141.4%2078-4.2%2012.7H334l10.9%208-4.2%2012.7%2010.9-8%2010.8%208-4.1-12.8%2010.7-7.9h-13.4zm-12.9-44.6-4.1%2012.8H321l10.8%208-4.1%2012.6%2010.8-7.9%2010.9%208-4.2-12.8%2010.9-8h-13.4zM302%20200.4l-4.2%2012.8h-13.4l10.9%208-4.2%2012.6%2010.9-7.7%2010.8%207.8-4.1-12.7%2010.8-7.9H306zm-46-16.6%204.1%2012.7h13.5l-10.9%208%204.1%2012.6-10.8-7.8-10.8%207.8%204.1-12.7-10.9-7.9H252z%22%2F%3E%3C%2Fsvg%3E"},TZ:{name:"Tanzania, United Republic of",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M401.8%200H449l63%2063v47.2L347.7%20336.3%20110.2%20512H63L0%20449v-47.2l167.1-238.6z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20512v-63L449%200h63v63L63%20512z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M110.2%20512%20512%20110.2V512z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20401.8%20401.8%200H0z%22%2F%3E%3C%2Fsvg%3E"},TH:{name:"Thailand",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v89l-79.2%20163.7L512%20423v89H0v-89l82.7-169.6L0%2089z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%2089h512v78l-42.6%2091.2L512%20345v78H0v-78l40-92.5L0%20167z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%20167h512v178H0z%22%2F%3E%3C%2Fsvg%3E"},TL:{name:"Timor-Leste",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%200%20214%20251.8L0%20512l418-256z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%200H0l367.3%20256L0%20512h512z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200v512l256-256z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m71%20197.4%2039%2036.8%2047-25.6-23%2048.4%2039%2036.9-53.2-7-23%2048.5-9.9-52.7-53.2-7%2047.1-25.6z%22%2F%3E%3C%2Fsvg%3E"},TG:{name:"Togo",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M256%200h256v102.4L483.8%20151l28.2%2053.8v102.4l-30.5%2050.7%2030.5%2051.7V512H0V409.6l34.7-51L0%20307.1z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M0%2044.5v423V256z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M231.7%20102.4v102.4H512V102.4zM0%20307.2v102.4h512V307.2H256l-128.2-26.4z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%20307.2V0H0v307.2z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m141.4%20122.4%2016.5%2051h53.7L168%20205l16.6%2051-43.4-31.5L98%20256l16.5-51L71%20173.5h53.7z%22%2F%3E%3C%2Fsvg%3E"},TK:{name:"Tokelau",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m188%20133.6%205.6%2017h17.9L197%20161l5.5%2017-14.4-10.5-14.5%2010.5%205.5-17-14.4-10.5h17.8zM115.5%20256l7%2021.3h22.3l-18%2013%206.8%2021.4-18-13.2-18.1%2013.2%206.9-21.3-18.1-13.1h22.3zm0-178%207%2021.2h22.3l-18%2013.1%206.8%2021.3-18-13.2-18.1%2013.2%206.9-21.3-18.1-13.1h22.3zM59.8%20178l6.9%2021.3H89l-18%2013.2%206.9%2021.2-18.1-13.1-18.1%2013.1%207-21.2-18.2-13.2H53z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m188%20133.6%205.6%2017h17.9L197%20161l5.5%2017-14.4-10.5-14.5%2010.5%205.5-17-14.4-10.5h17.8zM115.5%20256l7%2021.3h22.3l-18%2013%206.8%2021.4-18-13.2-18.1%2013.2%206.9-21.3-18.1-13.1h22.3zm0-178%207%2021.2h22.3l-18%2013.1%206.8%2021.3-18-13.2-18.1%2013.2%206.9-21.3-18.1-13.1h22.3zM59.8%20178l6.9%2021.3H89l-18%2013.2%206.9%2021.2-18.1-13.1-18.1%2013.1%207-21.2-18.2-13.2H53z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M411.8%20122.4%20144.7%20345h361.7v-35.8a167.4%20167.4%200%200%201-97.9-152.3c0-11.7%201-23.5%203.3-34.5zm94.6%20244.9H144.7v33.4h361.7z%22%2F%3E%3C%2Fsvg%3E"},TO:{name:"Tonga",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20256%20256%200h256v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M167%20133.6v-33.4h-33.4v33.4h-33.4V167h33.4v33.3H167V167h33.3v-33.4z%22%2F%3E%3C%2Fsvg%3E"},TT:{name:"Trinidad and Tobago",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20110.2%20110.2%200H512v401.8L401.8%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M110.2%200H63L0%2063v47.2L401.8%20512H449l63-63v-47.2z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M512%20512v-63L63%200H0v63l449%20449z%22%2F%3E%3C%2Fsvg%3E"},TN:{name:"Tunisia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22122.4%22%20fill%3D%22%23eee%22%2F%3E%3Cg%20fill%3D%22%23d80027%22%3E%3Cpath%20d%3D%22m271%20209.2%2021%2029%2034.1-11.1-21%2029%2021%2028.9-34-11.1-21%2029V267L237%20256l34-11z%22%2F%3E%3Cpath%20d%3D%22M283.8%20328.3a72.3%2072.3%200%201%201%2034.4-136%2089%2089%200%201%200%200%20127.3%2072%2072%200%200%201-34.4%208.7z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},TR:{name:"Turkey",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22m245.5%20209.2%2021%2029%2034-11.1-21%2029%2021%2028.9-34-11.1-21%2029V267l-34-11.1%2034-11z%22%2F%3E%3Cpath%20d%3D%22M188.2%20328.3a72.3%2072.3%200%201%201%2034.4-136%2089%2089%200%201%200%200%20127.3%2072%2072%200%200%201-34.4%208.7z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},TM:{name:"Turkmenistan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h66.8l67.8%2032.3L200.3%200H512v512H200.3l-70.2-34.1L66.8%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M66.8%200h133.5v512H66.8z%22%2F%3E%3Cg%20fill%3D%22%23eee%22%3E%3Cpath%20d%3D%22M374.4%20193.1a78%2078%200%200%200-31.9-92.3%2078.2%2078.2%200%200%201%2016.3%204%2078%2078%200%201%201-52.6%20146.6%2078.1%2078.1%200%200%201-15.1-7.3%2078%2078%200%200%200%2083.3-51zm-69.8-102-11%2014.2-16.8-6%2010%2014.8-10.9%2014%2017.2-5%2010%2014.9.6-18%2017.2-5-16.9-6z%22%2F%3E%3Cpath%20d%3D%22m334.1%20137.3-11%2014-16.8-6%2010.1%2014.8-11%2014.2%2017.2-5%2010.1%2014.7.5-17.8%2017.2-5-16.8-6zM252.5%20108l-11%2014.1-16.8-6%2010%2014.7-10.9%2014.2%2017.2-5%2010%2014.7.6-17.8%2017.1-5-16.8-6zm-1.2%2052.7-11%2014.2-16.8-6%2010%2014.7-10.9%2014.2%2017.2-5%2010%2014.7.6-17.8%2017.1-5-16.8-6zm50.2%2018-11%2014.2-16.8-6%2010%2014.7-10.9%2014.2%2017.2-5%2010%2014.7.6-17.8%2017.2-5-16.9-6z%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M117.8%20134.8%2095.4%20118v-12l38.2-28%2015.8-.1%2022.3%2016.7v11.5l-38.1%2028.7z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M133.6%2078h-15.8L95.4%2094.5V106h38.2zm0%2056.8h15.8l22.3-16.7v-12h-38.1z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22m117.8%20284.4-22.4-16.6v-23.6l22.4-16.6h31.6l22.3%2016.6v23.6l-22.3%2016.6zm54.7%2036.7h-9.7v-9.8h-17.1l-12.1-12-12.1%2012h-17.2v9.8h-9.7v19.5h9.7v9.7h17.2l12%2012.1%2012.2-12.1h17v-9.7h9.8zm0-149.7h-9.7v-9.7h-17.1l-12.1-12.1-12.1%2012h-17.2v9.8h-9.7V191h9.7v9.8h17.2l12%2012%2012.2-12h17V191h9.8z%22%2F%3E%3Cg%20fill%3D%22%23d80027%22%3E%3Cpath%20d%3D%22M122.4%20244.9h22.3V267h-22.3z%22%2F%3E%3Ccircle%20cx%3D%22133.6%22%20cy%3D%22181.2%22%20r%3D%2211.1%22%2F%3E%3Ccircle%20cx%3D%22133.6%22%20cy%3D%22330.8%22%20r%3D%2211.1%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m117.8%20434-22.4-16.8v-12l38.2-28%2015.8-.1%2022.3%2016.7v11.5L133.6%20434z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M133.6%20377.2h-15.8l-22.4%2016.5v11.5h38.2zm0%2056.8h15.8l22.3-16.7v-12h-38.1z%22%2F%3E%3C%2Fsvg%3E"},TC:{name:"Turks and Caicos Islands",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M289.4%20133.6V256c0%2059.6%2077.9%2078%2077.9%2078s78-18.4%2078-78V133.6h-156z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M356.2%20178c0%2012.4-10%2044.6-22.3%2044.6s-22.2-32.2-22.2-44.5c0-12.3%2022.2-22.3%2022.2-22.3s22.3%2010%2022.3%2022.3z%22%2F%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M415.2%20202.3a92.2%2092.2%200%200%200%206.4-28c0-10.2-13.3-18.5-13.3-18.5s-13.4%208.3-13.4%2018.6c0%206.4%202.8%2019.2%206.4%2028l-7.7%2017.3a38.9%2038.9%200%200%200%2014.7%203%2038.9%2038.9%200%200%200%2014.7-3z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M350.6%20256s-11.1%2022.3-11.1%2044.5H395c0-22.2-11.1-44.5-11.1-44.5l-16.7-11.1-16.7%2011.1Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M384%20256v-5.6a16.7%2016.7%200%200%200-33.4%200v5.6z%22%2F%3E%3C%2Fsvg%3E"},TV:{name:"Tuvalu",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%20256%20256%200h256v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h33.4l32%2016.9L100.3%200H256v33.4l-14.8%2033.5%2014.8%2033.3v33.4l-9.3%2033.7%209.3%2041.5v15.7l-6.2%2011.6L256%20256h-47.2l-39.3-7-35.9%207.1-33.4-.1-32.6-16.6L33.4%20256H0V100.2l14.2-35.8L0%2033.4z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m256%20224.5-91-91h-31.4L256%20256z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M33.4%200v33.4H0v66.8h33.4V256h66.8V100.2H256V33.4H100.2V0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m279.4%20423%205.5%2017h18l-14.6%2010.5%205.6%2017-14.5-10.5-14.5%2010.5%205.6-17L256%20440h17.9zm142.4-111.3%205.5%2017h18l-14.5%2010.5%205.5%2017-14.5-10.5-14.5%2010.5%205.6-17-14.5-10.5h17.9zm35.7-167%205.5%2017h18l-14.5%2010.5%205.6%2017-14.5-10.5-14.5%2010.5%205.6-17-14.5-10.5H452zm8.8%20122.4%205.6%2017h17.8l-14.4%2010.5%205.5%2017-14.5-10.5-14.4%2010.6%205.5-17-14.5-10.6h18zM305%20383l16%208%2012.6-12.6-2.8%2017.7%2016%208.1L329%20407l-2.8%2017.7-8.1-16-17.7%202.8%2012.7-12.6zm0-66.8%2016%208.1%2012.6-12.6-2.8%2017.6%2016%208.1-17.7%202.8-2.8%2017.7-8.1-16-17.7%202.9%2012.7-12.7zm55.7%2042.8%2016%208.1%2012.6-12.6-2.8%2017.6%2016%208.1-17.8%202.8-2.7%2017.7-8.2-16-17.6%202.9%2012.6-12.7zm0-143%2016%208.1%2012.6-12.6-2.8%2017.6%2016%208.2-17.8%202.8-2.7%2017.6-8.2-16-17.6%202.9%2012.6-12.7zm54-1.7%2015.9%208.1%2012.6-12.6-2.8%2017.6%2016%208.1-17.7%202.8-2.8%2017.7-8.1-16-17.8%203%2012.7-12.7z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M180.8%20133.6H256v75.2zm-47.2%2047.2v75.3l75.2-.1z%22%2F%3E%3C%2Fsvg%3E"},UG:{name:"Uganda",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%2085v342l256%2031%20256-31V85L256%2053Z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v85H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20171h512v85l-256%2031L0%20256Z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20256h512v85H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20427h512v85H0z%22%2F%3E%3Ccircle%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%2285.3%22%20fill%3D%22%23eee%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m287%20260-31-13%208-26a17%2017%200%200%200-5-16l8-8a28%2028%200%200%200-19-8%2028%2028%200%200%200-20%208l8%208a17%2017%200%200%200-5%2012l1%205-12%2012h21s-9%2013-14%2024c-4%2011%200%2025%2012%2030l6%202%2011%2010v12l-11%2011h22v-23l10-10h21a22%2022%200%200%200-11-30z%22%2F%3E%3C%2Fsvg%3E"},UA:{name:"Ukraine",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m0%20256%20258-39.4L512%20256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v256H0z%22%2F%3E%3C%2Fsvg%3E"},AE:{name:"United Arab Emirates",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23a2001d%22%20d%3D%22M0%200h167l52.3%20252L167%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m167%20167%20170.8-44.6L512%20167v178l-173.2%2036.9L167%20345z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M167%200h345v167H167z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M167%20345h345v167H167z%22%2F%3E%3C%2Fsvg%3E"},GB:{name:"Great Britain",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%200%208%2022-8%2023v23l32%2054-32%2054v32l32%2048-32%2048v32l32%2054-32%2054v68l22-8%2023%208h23l54-32%2054%2032h32l48-32%2048%2032h32l54-32%2054%2032h68l-8-22%208-23v-23l-32-54%2032-54v-32l-32-48%2032-48v-32l-32-54%2032-54V0l-22%208-23-8h-23l-54%2032-54-32h-32l-48%2032-48-32h-32l-54%2032L68%200H0z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M336%200v108L444%200Zm176%2068L404%20176h108zM0%20176h108L0%2068ZM68%200l108%20108V0Zm108%20512V404L68%20512ZM0%20444l108-108H0Zm512-108H404l108%20108Zm-68%20176L336%20404v108z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200v45l131%20131h45L0%200zm208%200v208H0v96h208v208h96V304h208v-96H304V0h-96zm259%200L336%20131v45L512%200h-45zM176%20336%200%20512h45l131-131v-45zm160%200%20176%20176v-45L381%20336h-45z%22%2F%3E%3C%2Fsvg%3E"},US:{name:"United States",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M256%200h256v64l-32%2032%2032%2032v64l-32%2032%2032%2032v64l-32%2032%2032%2032v64l-256%2032L0%20448v-64l32-32-32-32v-64z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M224%2064h288v64H224Zm0%20128h288v64H256ZM0%20320h512v64H0Zm0%20128h512v64H0Z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h256v256H0Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m187%20243%2057-41h-70l57%2041-22-67zm-81%200%2057-41H93l57%2041-22-67zm-81%200%2057-41H12l57%2041-22-67zm162-81%2057-41h-70l57%2041-22-67zm-81%200%2057-41H93l57%2041-22-67zm-81%200%2057-41H12l57%2041-22-67Zm162-82%2057-41h-70l57%2041-22-67Zm-81%200%2057-41H93l57%2041-22-67zm-81%200%2057-41H12l57%2041-22-67Z%22%2F%3E%3C%2Fsvg%3E"},UY:{name:"Uruguay",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%20256%20256%200h256v55.7l-20.7%2034.5%2020.7%2032.2v66.8l-21.2%2032.7L512%20256v66.8l-24%2031.7%2024%2035.1v66.7l-259.1%2028.3L0%20456.3v-66.7l27.1-33.3L0%20322.8z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M256%20256h256v-66.8H236.9zm-19.1-133.6H512V55.7H236.9zM512%20512v-55.7H0V512zM0%20389.6h512v-66.8H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h256v256H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m222.6%20149.8-31.3%2014.7%2016.7%2030.3-34-6.5-4.3%2034.3-23.6-25.2-23.7%2025.2-4.3-34.3-33.9%206.5%2016.6-30.3-31.2-14.7%2031.2-14.7-16.6-30.3%2034%206.5%204.2-34.3%2023.7%2025.3L169.7%2077l4.3%2034.3%2034-6.5-16.7%2030.3z%22%2F%3E%3C%2Fsvg%3E"},UZ:{name:"Uzbekistan",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m0%20178%20254.2-22L512%20178v22.3l-40.2%2054.1%2040.2%2057.3V334l-254%2023.4L0%20334v-22.3l36.7-59.4-36.7-52z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M0%200h512v178H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%20200.3h512v111.4H0z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M0%20334h512v178H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M117.2%20105.7a50%2050%200%200%201%2039.3-48.9%2050.2%2050.2%200%200%200-10.7-1.1%2050%2050%200%201%200%2010.7%2099c-22.5-5-39.3-25-39.3-49zm69%2022.8%203.3%2010.4h11l-9%206.5%203.5%2010.4-9-6.4-8.7%206.4%203.4-10.4-9-6.5h11zm35%200%203.4%2010.4h11l-9%206.5%203.4%2010.4-8.8-6.4-9%206.4%203.5-10.4-9-6.5h11zm35%200%203.4%2010.4h11l-9%206.5%203.5%2010.4-9-6.4-8.8%206.4%203.4-10.4-9-6.5h11zm35%200%203.4%2010.4h11l-9%206.5%203.5%2010.4-9-6.4-8.8%206.4%203.4-10.4-9-6.5h11zm35%200%203.4%2010.4h11l-9%206.5%203.5%2010.4-9-6.4-8.8%206.4%203.4-10.4-8.8-6.5h11zm-105-36.4%203.4%2010.4h11l-9%206.5%203.4%2010.4-8.8-6.5-9%206.5%203.5-10.4-9-6.5h11zm35%200%203.4%2010.4h11l-9%206.5%203.5%2010.4-9-6.5-8.8%206.5%203.4-10.4-9-6.5h11zm35%200%203.4%2010.4h11l-9%206.5%203.5%2010.4-9-6.5-8.8%206.5%203.4-10.4-9-6.5h11zm35%200%203.4%2010.4h11l-9%206.5%203.5%2010.4-9-6.5-8.8%206.5%203.4-10.4-8.8-6.5h11zm-70-36.4%203.4%2010.4h11l-9%206.4%203.6%2010.5-9-6.5-8.8%206.5%203.4-10.5-9-6.4h11zm35%200%203.4%2010.4h11l-9%206.4%203.6%2010.5-9-6.5-8.8%206.5%203.4-10.5-9-6.4h11zm35%200%203.4%2010.4h11l-9%206.4%203.6%2010.5-9-6.5-8.8%206.5%203.4-10.5-8.8-6.4h11z%22%2F%3E%3C%2Fsvg%3E"},VU:{name:"Vanuatu",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M512%20222.6V0H0l215.6%20239.4z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M512%20289.4V512H0l216.5-240z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m0%200%20222.6%20222.6H512v22.2l-10.9%2011.8L512%20267v22.4H222.6L0%20512v-31.5l8-23-8-8.6V63l9.5-10.4-9.5-21z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22M512%20244.8H213.2L0%2031.7V63l192.8%20193L0%20449v31.5L213.2%20267H512z%22%2F%3E%3Cpath%20d%3D%22M62.2%20310.6V289a38.8%2038.8%200%200%200%2038.8-38.8A27.5%2027.5%200%200%200%2073.5%20223a18.7%2018.7%200%200%200-18.7%2018.7%2012%2012%200%200%200%2012%2012c3.7%200%206.8-3%206.8-6.8H95A28.2%2028.2%200%200%201%2066.8%20275c-18.4%200-33.4-15-33.4-33.4%200-22.2%2018-40.2%2040-40.2a49%2049%200%200%201%2049%2049c0%2033.1-27%2060.2-60.2%2060.2z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},VE:{name:"Venezuela (Bolivarian Republic of)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22m0%20144.7%20255.3-36.5L512%20144.7v222.6L250.5%20407%200%20367.3z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M0%200h512v144.7H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20367.3h512V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M443.4%20306.4%20429.8%20317l6%2016.1-14.3-9.6-13.5%2010.7%204.7-16.5-14.2-9.6%2017.1-.6%204.7-16.5%206%2016.1zm-34.7-60-9%2014.5%2011%2013.2L394%20270l-9%2014.6-1.3-17-16.6-4.3%2015.9-6.4-1.2-17%2011%2013zm-53-44.5-3.6%2016.8%2014.9%208.4-17%201.8-3.6%2016.8-7-15.7-17%201.8%2012.7-11.5-7-15.6%2014.8%208.6zm-65-23.7%202.3%2017%2017%203-15.5%207.5%202.4%2017-12-12.4-15.4%207.6%208-15.2-11.8-12.3%2016.9%203zm-69.3%200%208%2015.1%2017-3-12%2012.4%208%2015.2-15.4-7.6-11.9%2012.4%202.4-17-15.4-7.5%2016.9-3zm-65%2023.7%2012.7%2011.5%2014.8-8.6-7%2015.7%2012.8%2011.4-17-1.8-7%2015.7-3.7-16.7-17-1.8%2014.8-8.5zm-53.1%2044.5%2015.9%206.4%2011-13-1.2%2017%2016%206.4-16.7%204.2-1.2%2017L118%20270l-16.7%204.2%2011-13.2zm-34.7%2060%2017.2.5%205.9-16%204.7%2016.4%2017.1.6-14.2%209.6%204.7%2016.6-13.5-10.6-14.2%209.6%205.9-16z%22%2F%3E%3C%2Fsvg%3E"},VN:{name:"Viet Nam",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m256%20133.6%2027.6%2085H373L300.7%20271l27.6%2085-72.3-52.5-72.3%2052.6%2027.6-85-72.3-52.6h89.4z%22%2F%3E%3C%2Fsvg%3E"},VG:{name:"Virgin Islands (British)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m367.3%20256-69.2%2069.2a77.9%2077.9%200%200%200%20138.4%200z%22%2F%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M289.4%20133.6V256c0%2059.6%2077.9%2078%2077.9%2078s78-18.4%2078-78V133.6h-156z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M445.2%20256zm-155.8%200z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M311.7%20155.8h22.2v22.3h-22.2zm0%2050.1h22.2v22.3h-22.2zm0%2050.1h22.2v22.3h-22.2zm89-100.2H423v22.3h-22.3zm0%2050.1H423v22.3h-22.3zm0%2050.1H423v22.3h-22.3z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v32l32%2032L0%2096v160h32l32-32%2032%2032h32v-83l83%2083h45l-8-16%208-15v-14l-83-83h83V96l-32-32%2032-32V0H96L64%2032%2032%200Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M32%200v32H0v64h32v160h64V96h160V32H96V0Zm96%20128%20128%20128v-31l-97-97z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M350.6%20189.2H384v89h-33.4z%22%2F%3E%3Ccircle%20cx%3D%22367.3%22%20cy%3D%22189.2%22%20r%3D%2216.7%22%20fill%3D%22%23a2001d%22%2F%3E%3C%2Fsvg%3E"},VI:{name:"Virgin Islands (U.S.)",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h512v512H0z%22%2F%3E%3Cg%20fill%3D%22%23ffda44%22%3E%3Cpath%20d%3D%22M299.5%20178.8a43.5%2043.5%200%201%200-87%200H117a44%2044%200%200%200%2044.2%2042.9h-1.4a42.8%2042.8%200%200%200%2042.8%2042.8l53.5%2042%2053.5-42a42.8%2042.8%200%200%200%2042.8-42.8H351a44%2044%200%200%200%2044.2-42.9h-95.6z%22%2F%3E%3Cpath%20d%3D%22m236.9%20302.3-27%2060.9a122%20122%200%200%200%2046.1%209%20122%20122%200%200%200%2046-9l-26.9-60.9H237z%22%2F%3E%3C%2Fg%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m255.3%20214-55%2021.5v39.7a49.1%2049.1%200%200%200%2022.3%2040l11.3-2.3%2011%2014.3a98.2%2098.2%200%200%200%2011.1%203.6s4.6-1.1%2011.1-3.6l9.4-14.1%2013%202.1a49.2%2049.2%200%200%200%2022.2-40.1v-39.6z%22%2F%3E%3Cpath%20fill%3D%22%23338af3%22%20d%3D%22M62%20257.8%2092.3%20342l29.8-84.2h22.7l-43.4%20111.3H83L39.3%20257.8h22.8zm349.8%20111.3V257.8h21.7v111.3z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M222.6%20224.4v90.8a96%2096%200%200%200%2022.3%2012V224.3zm66.8%200v90.8a98%2098%200%200%201-22.3%2012V224.3z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M200.3%20200.2h111.4v35.3H200.3z%22%2F%3E%3C%2Fsvg%3E"},WF:{name:"Wallis and Futuna",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%200h256v512H0V256Z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200h256v256H0Z%22%2F%3E%3Cpath%20fill%3D%22%230052b4%22%20d%3D%22M0%200h75v224H0Z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M149%200h75v224h-75z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m384%20232-72-72h144zm-24%2024-72-72v144zm24%2024-72%2072h144zm24-24%2072-72v144z%22%2F%3E%3C%2Fsvg%3E"},EH:{name:"Western Sahara",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m90.1%20144.8%20210.5-27.7L512%20144.8v222.6l-209%2032.4-213-32.4z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200h512v144.8H28.2z%22%2F%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M39.5%20367.4H512V512H0z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%20.1V512h.1L256%20256.1%200%20.1zm365.1%20178.1a78%2078%200%201%200%2018.9%20154%2078%2078%200%200%201%200-152.2%2078.2%2078.2%200%200%200-18.9-1.8z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m387.3%20206.1%2011%2034h35.8l-29%2021%2011.1%2034-29-21-28.9%2021%2011.1-34-29-21h35.8z%22%2F%3E%3C%2Fsvg%3E"},YE:{name:"Yemen",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22m0%20167%20253.8-19.3L512%20167v178l-254.9%2032.3L0%20345z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M0%200h512v167H0z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%20345h512v167H0z%22%2F%3E%3C%2Fsvg%3E"},ZM:{name:"Zambia",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%23496e2d%22%20d%3D%22M0%200h512v256L256%20512H0z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M473%20167h-66.7a22.3%2022.3%200%200%200-44.6%200H295a23%2023%200%200%200%2023%2022.2h-.8c0%2012.3%2010%2022.3%2022.3%2022.3%200%2012.3%2010%2022.2%2022.2%2022.2h44.6c12.3%200%2022.2-10%2022.2-22.2%2012.3%200%2022.3-10%2022.3-22.3h-.8a23%2023%200%200%200%2023-22.2z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M341.3%20256h85.4l21.1%20126.3L426.7%20512h-85.4l-23.5-128z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M256%20256h85.3v256H256z%22%2F%3E%3Cpath%20fill%3D%22%23ff9811%22%20d%3D%22M426.7%20256H512v256h-85.3z%22%2F%3E%3C%2Fsvg%3E"},ZW:{name:"Zimbabwe",flag:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20style%3D%22border-radius%3A50%25%22%3E%3Cpath%20fill%3D%22%236da544%22%20d%3D%22M31.4%200H512v512H31.4z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22M57.8%2073.3H512v73.3l-65.1%20110%2065.1%20110v73.3H57.8z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22M132%20146.6h380v73.3l-27%2036%2027%2037.3v73.3H132z%22%2F%3E%3Cpath%20fill%3D%22%23eee%22%20d%3D%22M0%200v512l279.8-256z%22%2F%3E%3Cpath%20fill%3D%22%23d80027%22%20d%3D%22m103%20189.2%2016.5%2051h53.6l-43.4%2031.6%2016.6%2051-43.4-31.5-43.4%2031.5%2016.6-51-43.4-31.6h53.6z%22%2F%3E%3Cpath%20fill%3D%22%23ffda44%22%20d%3D%22m148.5%20260.2-43.2-15.3-3.4-31a16.7%2016.7%200%201%200-32.5%207.6l-12%2012.1h21.5c0%2022.4-16.7%2022.4-16.7%2044.7l9.2%2022.2h55.7l9.3-22.2a22.2%2022.2%200%200%200%201.7-6.6c8-3.2%2010.4-11.5%2010.4-11.5z%22%2F%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22m31.4%200%20220%20220H512v73.2H250.2L31.4%20512H0l256-256L0%200z%22%2F%3E%3C%2Fsvg%3E"}},F8=(0,m9.F)("inline-flex items-center gap-6 w-fit",{variants:{size:{small:"",medium:""}}}),Re=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f=(0,ej.c)(29);f[0]!==e?({ref:a,asChild:l,code:n,size:o,className:r,children:t,"data-testid":s,...i}=e,f[0]=e,f[1]=t,f[2]=r,f[3]=n,f[4]=i,f[5]=a,f[6]=l,f[7]=o,f[8]=s):(t=f[1],r=f[2],n=f[3],i=f[4],a=f[5],l=f[6],o=f[7],s=f[8]);let m=void 0!==l&&l,g=void 0===o?"small":o,C=F6[n],v=m?Ew.DX:"div",y=g??"medium";return f[9]!==n||f[10]!==C||f[11]!==y?(c={code:n,size:y,countryData:C},f[9]=n,f[10]=C,f[11]=y,f[12]=c):c=f[12],f[13]!==r||f[14]!==g?(d=(0,m2.cn)(F8({size:g}),r),f[13]=r,f[14]=g,f[15]=d):d=f[15],f[16]!==v||f[17]!==t||f[18]!==i||f[19]!==a||f[20]!==d||f[21]!==s?(u=(0,eB.Y)(v,{...i,ref:a,"data-testid":s,"data-slot":"country",className:d,children:t}),f[16]=v,f[17]=t,f[18]=i,f[19]=a,f[20]=d,f[21]=s,f[22]=u):u=f[22],f[23]!==u||f[24]!==s?(h=(0,eB.Y)(m3,{value:s,children:u}),f[23]=u,f[24]=s,f[25]=h):h=f[25],f[26]!==c||f[27]!==h?(p=(0,eB.Y)(F7.Provider,{value:c,children:h}),f[26]=c,f[27]=h,f[28]=p):p=f[28],p},"Country");Re.displayName="Country";let Rt=(0,m9.F)("shrink-0 rounded-full object-cover",{variants:{size:{small:"size-16",medium:"size-20"}}}),Rr=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(12);a[0]!==e?({className:t,...r}=e,a[0]=e,a[1]=t,a[2]=r):(t=a[1],r=a[2]);let l=m5("flag"),{code:o,size:s,countryData:c}=F9();if(!c?.flag)return null;let d=c.flag,u=c.name??o;return a[3]!==t||a[4]!==s?(n=(0,m2.cn)(Rt({size:s}),t),a[3]=t,a[4]=s,a[5]=n):n=a[5],a[6]!==c.flag||a[7]!==r||a[8]!==u||a[9]!==n||a[10]!==l?(i=(0,eB.Y)("img",{...r,src:d,alt:u,"data-slot":"country-flag","data-testid":l,className:n}),a[6]=c.flag,a[7]=r,a[8]=u,a[9]=n,a[10]=l,a[11]=i):i=a[11],i},"CountryFlag"),Rn=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(9),a=m5("name"),{code:l,size:o,countryData:s}=F9(),c="small"===o?"xs":"sm",d=s?.name??l;i[0]!==c||i[1]!==d||i[2]!==a?(t=(0,eB.Y)(bw,{asChild:!0,children:(0,eB.Y)(bk.E,{size:c,"data-slot":"country-name","data-testid":a,lineClamp:1,truncate:!0,children:d})}),i[0]=c,i[1]=d,i[2]=a,i[3]=t):t=i[3];let u=s?.name??l;return i[4]!==u?(r=(0,eB.Y)(bS,{children:u}),i[4]=u,i[5]=r):r=i[5],i[6]!==t||i[7]!==r?(n=(0,eB.FD)(bE,{children:[t,r]}),i[6]=t,i[7]=r,i[8]=n):n=i[8],n},"CountryName");Rn.displayName="CountryName";let Ri=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(6),{order:i,hourCycle:a,children:l}=e;n[0]!==a||n[1]!==i?(t={order:i,hourCycle:a},n[0]=a,n[1]=i,n[2]=t):t=n[2];let o=t;return n[3]!==l||n[4]!==o?(r=(0,eB.Y)(M_.Provider,{value:o,children:l}),n[3]=l,n[4]=o,n[5]=r):r=n[5],r},"DateFormatProvider");Ri.displayName="DateFormatProvider";let Ra=(0,c0.createContext)(void 0),Rl=()=>{let e=(0,c0.useContext)(Ra);if(!e)throw Error("useDateRangeContext must be used within a <DateRangeProvider>. Did you forget to wrap the component tree, or are you rendering DateRangeStartValue / DateRangeEndValue / DateRangeSeparator outside it?");return e},Ro=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w,S,E,k,P,D,A,T,M,L,I,N=(0,ej.c)(90);N[0]!==e?({type:i,onHasPartialValueChange:t,ref:n,wrapperHtmlProps:a,...r}=e,N[0]=e,N[1]=t,N[2]=r,N[3]=n,N[4]=i,N[5]=a):(t=N[1],r=N[2],n=N[3],i=N[4],a=N[5]);let{state:F,disabled:R,error:V,readOnly:_,showTimeDropdown:Y,timeStep:$,hourCycle:H,icon:z}=Rl(),Z=void 0!==R&&R,Q=void 0!==_&&_,B=void 0===$?30:$,{locale:j}=TE(),G=(0,c0.useRef)(null),U=(0,c0.useRef)(null),[W,q]=(0,c0.useState)(!1);N[6]!==H||N[7]!==j||N[8]!==r?(l={...r,locale:j,createCalendar:At,hourCycle:H,shouldForceLeadingZeros:!0},N[6]=H,N[7]=j,N[8]=r,N[9]=l):l=N[9];let X=MV(l),{fieldProps:K}=Mr(r,X,U);N[10]!==X.segments?(o=X.segments.some(Rs),N[10]=X.segments,N[11]=o):o=N[11];let J=o;N[12]!==J||N[13]!==t?(s=()=>{t?.(J)},c=[J,t],N[12]=J,N[13]=t,N[14]=s,N[15]=c):(s=N[14],c=N[15]),(0,c0.useEffect)(s,c),N[16]!==X.segments?(d=X.segments.some(Rc),N[16]=X.segments,N[17]=d):d=N[17];let ee=d;N[18]!==ee||N[19]!==Y?(u=()=>{Y&&ee&&q(!0)},N[18]=ee,N[19]=Y,N[20]=u):u=N[20];let et=u;N[21]===Symbol.for("react.memo_cache_sentinel")?(h=e=>{e.currentTarget.contains(e.relatedTarget)||q(!1)},N[21]=h):h=N[21];let er=h;N[22]!==ee||N[23]!==W||N[24]!==Y?(p=()=>{Y&&ee&&!W&&q(!0)},N[22]=ee,N[23]=W,N[24]=Y,N[25]=p):p=N[25];let en=p;N[26]!==X.value||N[27]!==F||N[28]!==i?(f=e=>{var t;let r,n=X.value,a=n&&"hour"in n?n.set({hour:e.hour,minute:e.minute,second:0,millisecond:0}):(t=e,new pG((r=hG(hK())).year,r.month,r.day,t.hour,t.minute,0));F.setDateTime(i,a),q(!1)},N[26]=X.value,N[27]=F,N[28]=i,N[29]=f):f=N[29];let ei=f,ea=!!Y;N[30]===Symbol.for("react.memo_cache_sentinel")?(m=()=>q(!0),N[30]=m):m=N[30],N[31]!==W||N[32]!==ea?(g={enabled:ea,isOpen:W,dropdownRef:G,onOpen:m},N[31]=W,N[32]=ea,N[33]=g):g=N[33];let el=MG(g),eo=X.value&&ee?X.value:null;N[34]!==a?(C=a??{},N[34]=a,N[35]=C):C=N[35],N[36]!==C?({className:v,onClick:b,onFocus:x,onBlur:y,onKeyDownCapture:O,...w}=C,N[36]=C,N[37]=v,N[38]=y,N[39]=b,N[40]=x,N[41]=O,N[42]=w):(v=N[37],y=N[38],b=N[39],x=N[40],O=N[41],w=N[42]),N[43]!==b||N[44]!==en?(S=e=>{b?.(e),e.defaultPrevented||en()},N[43]=b,N[44]=en,N[45]=S):S=N[45];let es=S;N[46]!==x||N[47]!==et?(E=e=>{x?.(e),e.defaultPrevented||et()},N[46]=x,N[47]=et,N[48]=E):E=N[48];let ec=E;N[49]!==y?(k=e=>{y?.(e),e.defaultPrevented||er(e)},N[49]=y,N[50]=k):k=N[50];let ed=k;N[51]!==O||N[52]!==el?(P=e=>{O?.(e),e.defaultPrevented||el(e)},N[51]=O,N[52]=el,N[53]=P):P=N[53];let eu=P,eh=!z&&"start"===i&&"pl-12";N[54]!==v||N[55]!==eh?(D=(0,m2.cn)("relative h-full",eh,v),N[54]=v,N[55]=eh,N[56]=D):D=N[56],N[57]!==n?(A=(0,b8.t)(U,n),N[57]=n,N[58]=A):A=N[58];let ep=Q&&"cursor-not-allowed";N[59]!==ep?(T=(0,m2.cn)("h-full",ep),N[59]=ep,N[60]=T):T=N[60];let ef=Z||void 0,em=void 0!==V&&V||void 0,eg=Q||void 0,eC=`${i}-`;return N[61]!==Z||N[62]!==K||N[63]!==X||N[64]!==Q||N[65]!==A||N[66]!==T||N[67]!==ef||N[68]!==em||N[69]!==eg||N[70]!==eC||N[71]!==i?(M=(0,eB.Y)(Lh,{...K,ref:A,"data-slot":"input",className:T,"aria-disabled":ef,"aria-invalid":em,"data-readonly":eg,"data-field-type":i,state:X,disabled:Z,readOnly:Q,segmentKeyPrefix:eC}),N[61]=Z,N[62]=K,N[63]=X,N[64]=Q,N[65]=A,N[66]=T,N[67]=ef,N[68]=em,N[69]=eg,N[70]=eC,N[71]=i,N[72]=M):M=N[72],N[73]!==eo||N[74]!==ei||N[75]!==ee||N[76]!==H||N[77]!==W||N[78]!==Y||N[79]!==B?(L=Y&&ee&&(0,eB.Y)(Lf,{ref:G,isOpen:W,timeStep:B,hourCycle:H,value:eo,onSelect:ei,onClose:()=>q(!1)}),N[73]=eo,N[74]=ei,N[75]=ee,N[76]=H,N[77]=W,N[78]=Y,N[79]=B,N[80]=L):L=N[80],N[81]!==ed||N[82]!==es||N[83]!==ec||N[84]!==eu||N[85]!==w||N[86]!==D||N[87]!==M||N[88]!==L?(I=(0,eB.FD)("div",{...w,className:D,onKeyDownCapture:eu,onClick:es,onFocus:ec,onBlur:ed,children:[M,L]}),N[81]=ed,N[82]=es,N[83]=ec,N[84]=eu,N[85]=w,N[86]=D,N[87]=M,N[88]=L,N[89]=I):I=N[89],I},"DateRangeSegmentGroup");function Rs(e){return e.isEditable&&!e.isPlaceholder}function Rc(e){return"hour"===e.type||"minute"===e.type}Ro.displayName="DateRangeSegmentGroup";let Rd=(0,eQ.G)(e=>{let t,r=(0,ej.c)(4),{endFieldProps:n,endRef:i}=Rl();return r[0]!==n||r[1]!==i||r[2]!==e?(t=(0,eB.Y)(Ro,{...n,ref:i,type:"end",wrapperHtmlProps:e}),r[0]=n,r[1]=i,r[2]=e,r[3]=t):t=r[3],t},"DateRangeEndValue");function Ru(e){return e?.start!=null&&null!=e.end}Rd.displayName="DateRangeEndValue";var Rh=i("Wv");function Rp(e){let t,r,n,i=(0,ej.c)(9),{value:a,defaultValue:l,onChange:o}=e,s=l??null;i[0]!==a||i[1]!==s?(t={controlled:a,default:s},i[0]=a,i[1]=s,i[2]=t):t=i[2];let[c,d]=(0,Rh.q)(t);i[3]!==o||i[4]!==d?(r=e=>{d(e),o?.(e)},i[3]=o,i[4]=d,i[5]=r):r=i[5];let u=r;return i[6]!==u||i[7]!==c?(n={value:c,onChange:u},i[6]=u,i[7]=c,i[8]=n):n=i[8],n}let Rf=(0,eQ.G)(e=>{let{children:t,ref:r,value:n,defaultValue:i,onChange:a,error:l=!1,disabled:o=!1,readOnly:s=!1,granularity:c="day",placeholder:d,showTimeDropdown:u,timeStep:h=30,showIcon:p=!0,size:f="default"}=e,m=d??MQ({granularity:c,isRange:!0}),g=p?t_:void 0,{hourCycle:C}=M$(),v=(0,c0.useRef)(null),y=(0,c0.useRef)(null),b=(0,c0.useRef)(null),{value:x,onChange:O}=Rp({value:n,defaultValue:i,onChange:a}),w=function(e){let t=function(e){let[t,r]=MD(e.isOpen,e.defaultOpen||!1,e.onOpenChange),n=(0,c0.useCallback)(()=>{r(!0)},[r]),i=(0,c0.useCallback)(()=>{r(!1)},[r]),a=(0,c0.useCallback)(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:i,toggle:a}}(e),[r,n]=MD(e.value,e.defaultValue||null,e.onChange),[i]=(0,c0.useState)(r),[a,l]=(0,c0.useState)(()=>r||{start:null,end:null});null==r&&a.start&&a.end&&l(a={start:null,end:null});let o=r||a,s=e=>{l(o=e||{start:null,end:null}),Ru(o)?n(o):n(null)},[c,d]=MO(o?.start||o?.end||e.placeholderValue||null,e.granularity),u="hour"===c||"minute"===c||"second"===c,h=e.shouldCloseOnSelect??!0,[p,f]=(0,c0.useState)(null),[m,g]=(0,c0.useState)(null);o&&Ru(o)&&(p=o,"hour"in o.start&&(m=o));let C=(e,t)=>{s({start:"timeZone"in t.start?t.start.set(pc(e.start)):pd(e.start,t.start),end:"timeZone"in t.end?t.end.set(pc(e.end)):pd(e.end,t.end)}),f(null),g(null),k.commitValidation()},v=r=>{let n="function"==typeof h?h():h;u?Ru(r)&&(n||m?.start&&m?.end)?C(r,{start:m?.start||Mb(e.placeholderValue),end:m?.end||Mb(e.placeholderValue)}):f(r):Ru(r)?(s(r),k.commitValidation()):f(r),n&&t.setOpen(!1)},y=e=>{Ru(p)&&Ru(e)?C(p,e):g(e)},b=o?.start?.calendar.identifier==="gregory"&&"BC"===o.start.era||o?.end?.calendar.identifier==="gregory"&&"BC"===o.end.era,x=(0,c0.useMemo)(()=>({granularity:c,timeZone:d,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:b}),[c,e.hourCycle,e.shouldForceLeadingZeros,d,e.hideTimeZone,b]),{minValue:O,maxValue:w,isDateUnavailable:S}=e,E=(0,c0.useMemo)(()=>{var e,t;let r;return e=o,t=S?e=>S(e,null):void 0,r=Mp(Mg(e?.start??null,O,w,t,x),Mg(e?.end??null,O,w,t,x)),e?.end!=null&&null!=e.start&&0>e.end.compare(e.start)&&(r=Mp(r,{isInvalid:!0,validationErrors:[(T0.getGlobalDictionaryForPackage("@react-stately/datepicker")||Mf).getStringForLocale("rangeReversed",Mm())],validationDetails:{...Mi,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),r},[o,O,w,S,x]),k=Mc({...e,value:r,name:(0,c0.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:E}),P=k.displayValidation.isInvalid,D=e.validationState||(P?"invalid":null);return{...k,value:o,defaultValue:e.defaultValue??i,setValue:s,dateRange:p,timeRange:m,granularity:c,hasTime:u,setDate(e,t){"start"===e?v({start:t,end:p?.end??null}):v({start:p?.start??null,end:t})},setTime(e,t){"start"===e?y({start:t,end:m?.end??null}):y({start:m?.start??null,end:t})},setDateTime(e,t){"start"===e?s({start:t,end:o?.end??null}):s({start:o?.start??null,end:t})},setDateRange:v,setTimeRange:y,...t,setOpen(r){!r&&!(o?.start&&o?.end)&&Ru(p)&&u&&C(p,{start:m?.start||Mb(e.placeholderValue),end:m?.end||Mb(e.placeholderValue)}),t.setOpen(r)},validationState:D,isInvalid:P,formatValue(t,r){let n;if(!o||!o.start||!o.end)return null;let i="timeZone"in o.start?o.start.timeZone:void 0,a=e.granularity||(o.start&&"minute"in o.start?"minute":"day"),l="timeZone"in o.end?o.end.timeZone:void 0,s=e.granularity||(o.end&&"minute"in o.end?"minute":"day"),c=My(r,{granularity:a,timeZone:i,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===o.start.calendar.identifier&&"BC"===o.start.era||"gregory"===o.end.calendar.identifier&&"BC"===o.end.era}),d=o.start.toDate(i||"UTC"),u=o.end.toDate(l||"UTC"),h=new kp(t,c);if(i===l&&a===s&&0!==o.start.compare(o.end)){try{let e=h.formatRangeToParts(d,u),t=-1;for(let r=0;r<e.length;r++){let n=e[r];if("shared"===n.source&&"literal"===n.type)t=r;else if("endRange"===n.source)break}let r="",n="";for(let i=0;i<e.length;i++)i<t?r+=e[i].value:i>t&&(n+=e[i].value);return{start:r,end:n}}catch{}n=h}else n=new kp(t,My(r,{granularity:s,timeZone:l,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle}));return{start:h.format(d),end:n.format(u)}},getDateFormatter:(e,t)=>new kp(e,My({},{...x,...t}))}}({value:x,onChange:e=>O(e??null),isDisabled:o,isReadOnly:s,granularity:c,hourCycle:C,shouldForceLeadingZeros:!0}),{groupProps:S,startFieldProps:E,endFieldProps:k}=function(e,t,r){var n;let i=T6((n=A8)&&n.__esModule?n.default:n,"@react-aria/datepicker"),{isInvalid:a,validationErrors:l,validationDetails:o}=t.displayValidation,{labelProps:s,fieldProps:c,descriptionProps:d,errorMessageProps:u}=TK({...e,labelElementType:"span",isInvalid:a,errorMessage:e.errorMessage||l}),h=c["aria-labelledby"]||c.id,{locale:p}=TE(),f=t.formatValue(p,{month:"long"}),m=Tq(f?i.format("selectedRangeDescription",{startDate:f.start,endDate:f.end}):""),g={"aria-label":i.format("startDate"),"aria-labelledby":h},C={"aria-label":i.format("endDate"),"aria-labelledby":h},v=Th(),y=Th(),b=Tj(t,r),x=[m["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,O=(0,c0.useMemo)(()=>AJ(r,{accept:e=>e.id!==v}),[r,v]),w={[Mt]:O,[Me]:"presentation","aria-describedby":x,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},S=A6(e),E=(0,c0.useRef)(!1),{focusWithinProps:k}=TJ({...e,isDisabled:t.isOpen,onBlurWithin:t=>{Ai(document.getElementById(y),t.relatedTarget)||(E.current=!1,e.onBlur?.(t),e.onFocusChange?.(!1))},onFocusWithin:t=>{E.current||(E.current=!0,e.onFocus?.(t),e.onFocusChange?.(!0))}}),P=(0,c0.useRef)(Ml),D=(0,c0.useRef)(Ml);return{groupProps:Tg(S,b,c,m,k,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":x,onKeyDown(r){!t.isOpen&&e.onKeyDown&&e.onKeyDown(r)},onKeyUp(r){!t.isOpen&&e.onKeyUp&&e.onKeyUp(r)}}),labelProps:{...s,onClick:()=>{O.focusFirst()}},buttonProps:{...m,id:v,"aria-haspopup":"dialog","aria-label":i.format("calendar"),"aria-labelledby":`${v} ${h}`,"aria-describedby":x,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:y,"aria-labelledby":`${v} ${h}`},startFieldProps:{...g,...w,value:t.value?.start??null,defaultValue:t.defaultValue?.start,onChange:e=>t.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,form:e.form,[Ms]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){P.current=e,t.updateValidation(Mp(e,D.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...C,...w,value:t.value?.end??null,defaultValue:t.defaultValue?.end,onChange:e=>t.setDateTime("end",e),name:e.endName,form:e.form,[Ms]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){D.current=e,t.updateValidation(Mp(P.current,e))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:d,errorMessageProps:u,calendarProps:{autoFocus:!0,value:t.dateRange?.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:a,validationErrors:l,validationDetails:o}}({value:x,isDisabled:o,isReadOnly:s,granularity:c,hourCycle:C},w,v);return(0,eB.Y)(Ra.Provider,{value:{finalRef:(0,b8.t)(v,r),startRef:y,endRef:b,groupProps:S,startFieldProps:E,endFieldProps:k,state:w,disabled:o,readOnly:s,error:l,placeholder:m,showTimeDropdown:u,timeStep:h,hourCycle:C,icon:g,size:f},children:t})},"DateRangeProvider");Rf.displayName="DateRangeProvider";let Rm=(0,m9.F)((0,m2.cn)("relative group/temporal flex-1 h-full flex items-center gap-4","focus-within:outline-none","data-disabled:opacity-50 data-disabled:cursor-not-allowed")),Rg=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(8),{children:i}=e,{groupProps:a,finalRef:l,disabled:o,error:s}=Rl();n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)(Rm()),n[0]=t):t=n[0];let c=o||void 0,d=o||void 0,u=s||void 0;return n[1]!==i||n[2]!==l||n[3]!==a||n[4]!==c||n[5]!==d||n[6]!==u?(r=(0,eB.Y)("div",{...a,ref:l,"data-slot":"date-range-group",className:t,"data-disabled":c,"aria-disabled":d,"aria-invalid":u,children:i}),n[1]=i,n[2]=l,n[3]=a,n[4]=c,n[5]=d,n[6]=u,n[7]=r):r=n[7],r},"DateRangeGroup"),RC=(0,eQ.G)(()=>{let e,t,r=(0,ej.c)(3),n=m5("separator");return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,m2.cn)("text-sm text-text-secondary select-none"),r[0]=e):e=r[0],r[1]!==n?(t=(0,eB.Y)("span",{"data-slot":"date-range-separator","data-testid":n,className:e,"aria-hidden":"true",children:"→"}),r[1]=n,r[2]=t):t=r[2],t},"DateRangeSeparator");RC.displayName="DateRangeSeparator";let Rv=(0,eQ.G)(()=>{let e,t,r,n,i,a,l,o,s,c,d,u,h,p,f=(0,ej.c)(40),{icon:m,state:g,startFieldProps:C,startRef:v,endFieldProps:y,endRef:b,disabled:x,readOnly:O,placeholder:w,size:S}=Rl(),E=m5("input-group"),[k,P]=(0,c0.useState)(!1),[D,A]=(0,c0.useState)(!1),[T,M]=(0,c0.useState)(!1),[L,I]=(0,c0.useState)(0),N=k||D;f[0]!==g?(e=()=>{g.setValue(null),I(Ry)},f[0]=g,f[1]=e):e=f[1];let F=e;f[2]===Symbol.for("react.memo_cache_sentinel")?(t=()=>M(!0),f[2]=t):t=f[2];let R=t;f[3]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{e.currentTarget.contains(e.relatedTarget)||M(!1)},f[3]=r):r=f[3];let V=r,_=!!w&&!N&&!T;f[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,m2.cn)("**:data-[slot=input]:first:pr-0 **:data-[slot=input]:last:pl-0"),f[4]=n):n=f[4],f[5]!==m?(i=m&&(0,eB.Y)(SA,{children:(0,eB.Y)(m,{})}),f[5]=m,f[6]=i):i=f[6],f[7]!==m||f[8]!==w||f[9]!==_?(a=_&&w&&(0,eB.Y)(MU,{text:w,className:(0,m2.cn)(!m&&"pl-12")}),f[7]=m,f[8]=w,f[9]=_,f[10]=a):a=f[10];let Y=_&&"[&>*]:opacity-0";f[11]!==Y?(l=(0,m2.cn)("contents",Y),f[11]=Y,f[12]=l):l=f[12];let $=`start-${L}`;f[13]!==C||f[14]!==v||f[15]!==$?(o=(0,eB.Y)(Ro,{...C,ref:v,type:"start",onHasPartialValueChange:P},$),f[13]=C,f[14]=v,f[15]=$,f[16]=o):o=f[16],f[17]===Symbol.for("react.memo_cache_sentinel")?(s=(0,eB.Y)(RC,{}),f[17]=s):s=f[17];let H=`end-${L}`;return f[18]!==y||f[19]!==b||f[20]!==H?(c=(0,eB.Y)(Ro,{...y,ref:b,type:"end",onHasPartialValueChange:A},H),f[18]=y,f[19]=b,f[20]=H,f[21]=c):c=f[21],f[22]!==c||f[23]!==l||f[24]!==o?(d=(0,eB.FD)("div",{className:l,children:[o,s,c]}),f[22]=c,f[23]=l,f[24]=o,f[25]=d):d=f[25],f[26]!==d||f[27]!==a?(u=(0,eB.FD)(Rg,{children:[a,d]}),f[26]=d,f[27]=a,f[28]=u):u=f[28],f[29]!==x||f[30]!==F||f[31]!==N||f[32]!==O?(h=!O&&(0,eB.Y)(SA,{align:"inline-end",children:(0,eB.Y)("div",{className:(0,m2.cn)(!N&&"invisible"),children:(0,eB.Y)(LC,{onClick:F,disabled:x||!N})})}),f[29]=x,f[30]=F,f[31]=N,f[32]=O,f[33]=h):h=f[33],f[34]!==S||f[35]!==u||f[36]!==h||f[37]!==i||f[38]!==E?(p=(0,eB.Y)("div",{className:n,onFocusCapture:R,onBlurCapture:V,children:(0,eB.FD)(SL,{size:S,"data-testid":E,children:[i,u,h]})}),f[34]=S,f[35]=u,f[36]=h,f[37]=i,f[38]=E,f[39]=p):p=f[39],p},"DateRangeInputInternal");function Ry(e){return e+1}Rv.displayName="DateRangeInputInternal";let Rb=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w=(0,ej.c)(44);w[0]!==e?({"data-testid":p,className:t,ref:c,value:m,defaultValue:r,onChange:l,showIcon:d,error:i,disabled:n,readOnly:s,placeholder:o,size:h,granularity:a,showTimeDropdown:u,timeStep:f,...g}=e,w[0]=e,w[1]=t,w[2]=r,w[3]=n,w[4]=i,w[5]=a,w[6]=l,w[7]=o,w[8]=s,w[9]=c,w[10]=d,w[11]=u,w[12]=h,w[13]=p,w[14]=f,w[15]=m,w[16]=g):(t=w[1],r=w[2],n=w[3],i=w[4],a=w[5],l=w[6],o=w[7],s=w[8],c=w[9],d=w[10],u=w[11],h=w[12],p=w[13],f=w[14],m=w[15],g=w[16]),w[17]!==t?(C=(0,m2.cn)("min-w-284",t),w[17]=t,w[18]=C):C=w[18],w[19]!==a||w[20]!==u||w[21]!==f?(v={granularity:a,showTimeDropdown:u,timeStep:f},w[19]=a,w[20]=u,w[21]=f,w[22]=v):v=w[22];let S=v;return w[23]===Symbol.for("react.memo_cache_sentinel")?(y=(0,eB.Y)(Rv,{}),w[23]=y):y=w[23],w[24]!==r||w[25]!==n||w[26]!==i||w[27]!==l||w[28]!==o||w[29]!==s||w[30]!==c||w[31]!==d||w[32]!==h||w[33]!==S||w[34]!==m?(b=(0,eB.Y)(Rf,{ref:c,value:m,defaultValue:r,onChange:l,showIcon:d,error:i,disabled:n,readOnly:s,placeholder:o,size:h,...S,children:y}),w[24]=r,w[25]=n,w[26]=i,w[27]=l,w[28]=o,w[29]=s,w[30]=c,w[31]=d,w[32]=h,w[33]=S,w[34]=m,w[35]=b):b=w[35],w[36]!==b||w[37]!==p?(x=(0,eB.Y)(m3,{value:p,children:b}),w[36]=b,w[37]=p,w[38]=x):x=w[38],w[39]!==C||w[40]!==x||w[41]!==p||w[42]!==g?(O=(0,eB.Y)("div",{...g,"data-slot":"date-range-input","data-testid":p,className:C,children:x}),w[39]=C,w[40]=x,w[41]=p,w[42]=g,w[43]=O):O=w[43],O},"DateRangeInput");Rb.displayName="DateRangeInput";let Rx=(0,eQ.G)(e=>{let t,r=(0,ej.c)(4),{startFieldProps:n,startRef:i}=Rl();return r[0]!==e||r[1]!==n||r[2]!==i?(t=(0,eB.Y)(Ro,{...n,ref:i,type:"start",wrapperHtmlProps:e}),r[0]=e,r[1]=n,r[2]=i,r[3]=t):t=r[3],t},"DateRangeStartValue");Rx.displayName="DateRangeStartValue";let RO=(0,c0.createContext)(null),Rw=(0,c0.createContext)(0),RS=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(17),{kind:s,open:c,children:d}=e,u=(0,c0.useContext)(RO),[h,p]=(0,c0.useState)(0);o[0]!==s||o[1]!==u?(t=e=>{let t=u?.registerNested(e),r=e===s;return r&&p(Rk),()=>{r&&p(RP),t?.()}},o[0]=s,o[1]=u,o[2]=t):t=o[2];let f=t;o[3]!==s||o[4]!==c||o[5]!==u?(r=()=>{if(c&&u)return u.registerNested(s)},n=[c,u,s],o[3]=s,o[4]=c,o[5]=u,o[6]=r,o[7]=n):(r=o[6],n=o[7]),(0,c0.useEffect)(r,n),o[8]!==s||o[9]!==f?(i={kind:s,registerNested:f},o[8]=s,o[9]=f,o[10]=i):i=o[10];let m=i;return o[11]!==d||o[12]!==h?(a=(0,eB.Y)(Rw.Provider,{value:h,children:d}),o[11]=d,o[12]=h,o[13]=a):a=o[13],o[14]!==m||o[15]!==a?(l=(0,eB.Y)(RO.Provider,{value:m,children:a}),o[14]=m,o[15]=a,o[16]=l):l=o[16],l},"DrawerNestingProvider");RS.displayName="DrawerNestingProvider";let RE=()=>(0,c0.useContext)(Rw);function Rk(e){return e+1}function RP(e){return e-1}let RD=(0,c0.createContext)(null),RA=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(23),{children:o,kind:s,open:c,onOpenChange:d,closeOnEscape:u,overlay:h,modal:p,width:f,minWidth:m,maxWidth:g}=e,C=void 0===m?400:m,v=void 0===g?1130:g;l[0]!==c?(t={controlled:c,default:!1},l[0]=c,l[1]=t):t=l[1];let[y,b]=(0,Rh.q)(t),x=void 0!==y&&y,O=(0,c0.useId)(),[w,S]=(0,c0.useState)(void 0===f?640:f),[E,k]=(0,c0.useState)(!1);l[2]!==d||l[3]!==b?(r=e=>{b(e),d?.(e)},l[2]=d,l[3]=b,l[4]=r):r=l[4];let P=r;l[5]!==u||l[6]!==O||l[7]!==P||l[8]!==x||l[9]!==E||l[10]!==v||l[11]!==C||l[12]!==p||l[13]!==h||l[14]!==w?(n={isOpen:x,onOpenChange:P,closeOnEscape:u,overlay:h,modal:p,contentId:O,width:w,setWidth:S,isResizing:E,setIsResizing:k,minWidth:C,maxWidth:v},l[5]=u,l[6]=O,l[7]=P,l[8]=x,l[9]=E,l[10]=v,l[11]=C,l[12]=p,l[13]=h,l[14]=w,l[15]=n):n=l[15];let D=n;return l[16]!==o||l[17]!==x||l[18]!==s?(i=(0,eB.Y)(RS,{kind:s,open:x,children:o}),l[16]=o,l[17]=x,l[18]=s,l[19]=i):i=l[19],l[20]!==D||l[21]!==i?(a=(0,eB.Y)(RD.Provider,{value:D,children:i}),l[20]=D,l[21]=i,l[22]=a):a=l[22],a},"DrawerProvider");var[RT,RM]=(0,ua.q)({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),RL=(0,c0.forwardRef)((e,t)=>{let r=RM(),n=vv({...p0(),present:r.open}),i=(0,p8.v)(r.getBackdropProps(),n.getPresenceProps(),e),a=p6(n.ref,t);return(0,eB.Y)(vs,{presence:n,children:(0,eB.Y)(fr.div,{...i,ref:a})})});RL.displayName="DialogBackdrop";var RI=(0,c0.forwardRef)((e,t)=>{let r=RM(),n=(0,p8.v)(r.getCloseTriggerProps(),e);return(0,eB.Y)(fr.button,{...n,ref:t})});RI.displayName="DialogCloseTrigger";var RN=(0,c0.forwardRef)((e,t)=>{let r=RM(),n=vd(),i=(0,p8.v)(r.getContentProps(),n.getPresenceProps(),e),a=p6(n.ref,t);return(0,eB.Y)(vs,{presence:n,children:(0,eB.Y)(fr.div,{...i,ref:a})})});RN.displayName="DialogContent";var RF=e=>e.children(RM()),RR=(0,c0.forwardRef)((e,t)=>{let r=RM(),n=(0,p8.v)(r.getDescriptionProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});RR.displayName="DialogDescription";var RV=(0,c0.forwardRef)((e,t)=>{let r=RM(),n=(0,p8.v)(r.getPositionerProps(),e);return vd().unmounted?null:(0,eB.Y)(fr.div,{...n,ref:t})});RV.displayName="DialogPositioner";var R_=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,RY=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,R$=e=>e.ids?.content??`dialog:${e.id}:content`,RH=(e,t)=>{let r=e.ids?.trigger;return null!=r?(0,u$.Tn)(r)?r(t):r:t?`dialog:${e.id}:trigger:${t}`:`dialog:${e.id}:trigger`},Rz=e=>e.ids?.title??`dialog:${e.id}:title`,RZ=e=>e.ids?.description??`dialog:${e.id}:description`,RQ=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,RB=e=>e.getById(R$(e)),Rj=e=>e.getById(RH(e)),RG=e=>mA(e.getRootNode(),`[data-scope="dialog"][data-part="trigger"]${uY(e.id)}`),RU=(e,t)=>null==t?Rj(e)??RG(e)[0]:e.getById(RH(e,t)),RW=uE({props({props:e,scope:t}){let r="alertdialog"===e.role,n=r?()=>t.getById(RQ(t)):void 0,i="boolean"!=typeof e.modal||e.modal;return{role:"dialog",modal:i,trapFocus:i,preventScroll:i,closeOnInteractOutside:i&&!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:n,...e}},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e,prop:t,scope:r})=>({rendered:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(e){let n=t("onTriggerValueChange");if(!n)return;let i=RU(r,e);n({value:e,triggerElement:i})}}))}),watch({track:e,action:t,prop:r}){e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","setInitialFocus"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackDismissableElement:({scope:e,send:t,prop:r})=>OV(()=>RB(e),{type:"dialog",defer:!0,pointerBlocking:r("modal"),layerStyleTargets:[()=>e.getById(RY(e)),()=>e.getById(R_(e))],exclude:[Rj(e),...RG(e)].filter(Boolean),onInteractOutside(e){r("onInteractOutside")?.(e),r("closeOnInteractOutside")||e.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onRequestDismiss:r("onRequestDismiss"),onEscapeKeyDown(e){r("onEscapeKeyDown")?.(e),r("closeOnEscape")||e.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}}),preventScroll({scope:e,prop:t}){if(t("preventScroll"))return I7(e.getDoc())},trapFocus({scope:e,prop:t,context:r}){if(t("trapFocus"))return I0(()=>RB(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:()=>Oz({root:RB(e),getInitialEl:t("initialFocusEl")}),setReturnFocus:n=>{let i=t("finalFocusEl")?.();if(i)return i;let a=r.get("triggerValue");if(a){let t=RU(e,a);if(t)return t}let l=RG(e)[0];return l||n},getShadowRoot:!0})},hideContentBelow({scope:e,prop:t}){if(t("modal"))return I$(()=>[RB(e)],{defer:!0})}},actions:{setInitialFocus({prop:e,scope:t}){e("trapFocus")||fd(()=>{let r=Oz({root:RB(t),getInitialEl:e("initialFocusEl")});r?.focus({preventScroll:!0})})},checkRenderedElements({context:e,scope:t}){fd(()=>{e.set("rendered",{title:!!t.getById(Rz(t)),description:!!t.getById(RZ(t))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setTriggerValue({context:e,event:t}){void 0!==t.value&&e.set("triggerValue",t.value)},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}}),Rq=uZ("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger").build(),RX=e=>{let[t,{children:r,...n}]=vf(e),[i]=p3(t),a=(e=>{let t=(0,c0.useId)(),{getRootNode:r}=uo(),{dir:n}=uc();return function(e,t){let{state:r,send:n,context:i,prop:a,scope:l}=e,o=a("aria-label"),s=r.matches("open"),c=i.get("triggerValue");return{open:s,setOpen(e){r.matches("open")!==e&&n({type:e?"OPEN":"CLOSE"})},triggerValue:c,setTriggerValue(e){n({type:"TRIGGER_VALUE.SET",value:e})},getTriggerProps(e={}){let{value:r}=e,i=null!=r&&c===r;return t.button({...Rq.trigger.attrs,dir:a("dir"),id:RH(l,r),"data-ownedby":l.id,"data-value":r,"aria-haspopup":"dialog",type:"button","aria-expanded":null==r?s:s&&i,"data-state":s?"open":"closed","aria-controls":R$(l),"data-current":uF(i),onClick(e){e.defaultPrevented||n({type:s&&null!=r&&!i?"TRIGGER_VALUE.SET":"TOGGLE",value:r})}})},getBackdropProps:()=>t.element({...Rq.backdrop.attrs,dir:a("dir"),hidden:!s,id:RY(l),"data-state":s?"open":"closed"}),getPositionerProps:()=>t.element({...Rq.positioner.attrs,dir:a("dir"),id:R_(l),style:uH({pointerEvents:s&&a("modal")?void 0:"none"})}),getContentProps(){let e=i.get("rendered");return t.element({...Rq.content.attrs,dir:a("dir"),role:a("role"),hidden:!s,id:R$(l),tabIndex:-1,"data-state":s?"open":"closed","aria-modal":a("modal"),"aria-label":o||void 0,"aria-labelledby":o||!e.title?void 0:Rz(l),"aria-describedby":e.description?RZ(l):void 0,style:uH({pointerEvents:a("modal")?void 0:"auto"})})},getTitleProps:()=>t.element({...Rq.title.attrs,dir:a("dir"),id:Rz(l)}),getDescriptionProps:()=>t.element({...Rq.description.attrs,dir:a("dir"),id:RZ(l)}),getCloseTriggerProps:()=>t.button({...Rq.closeTrigger.attrs,dir:a("dir"),id:RQ(l),type:"button",onClick(e){e.defaultPrevented||(e.stopPropagation(),n({type:"CLOSE"}))}})}}(hk(RW,{id:t,getRootNode:r,dir:n,...e}),hA)})(n),l=vv((0,p8.v)({present:a.open},t));return(0,eB.Y)(RT,{value:a,children:(0,eB.Y)(p2,{value:i,children:(0,eB.Y)(vc,{value:l,children:r})})})},RK=e=>{let[t,{value:r,children:n}]=vf(e),[i]=p3(t),a=vv((0,p8.v)({present:r.open},t));return(0,eB.Y)(RT,{value:r,children:(0,eB.Y)(p2,{value:i,children:(0,eB.Y)(vc,{value:a,children:n})})})},RJ=(0,c0.forwardRef)((e,t)=>{let r=RM(),n=(0,p8.v)(r.getTitleProps(),e);return(0,eB.Y)(fr.h2,{...n,ref:t})});RJ.displayName="DialogTitle";var R1=p1(),R2=(0,c0.forwardRef)((e,t)=>{let[r,n]=R1(e,["value"]),i=RM(),a=vd(),l=i.getTriggerProps(r),o=(0,p8.v)({...l,"aria-controls":a.unmounted?void 0:l["aria-controls"]},n);return(0,eB.Y)(fr.button,{...o,ref:t})});R2.displayName="DialogTrigger";var R0=pq({Backdrop:()=>RL,CloseTrigger:()=>RI,Content:()=>RN,Context:()=>RF,Description:()=>RR,Positioner:()=>RV,Root:()=>RX,RootProvider:()=>RK,Title:()=>RJ,Trigger:()=>R2});let R3=()=>{let e=(0,c0.useContext)(RD);if(!e)throw Error("useDrawerContext must be used within a DrawerProvider");return e},R5=e=>null===e.closest('[data-part="positioner"], [data-scope="dialog"][data-part="content"]'),R4=(0,c0.createContext)([]),R7=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(20),{children:d,closeOnEscape:u,closeOnOutsideClick:h,modal:p,onInteractOutside:f,onEscapeKeyDown:m}=e,{isOpen:g,onOpenChange:C,contentId:v}=R3(),y=(0,c0.useContext)(R4);(s=(0,ej.c)(7))[0]!==v||s[1]!==g||s[2]!==p?(l=()=>{if(!g||p)return;let e=e=>e instanceof Node&&document.getElementById(v)?.contains(e)===!0,t=document.activeElement,r=t instanceof HTMLElement&&t!==document.body&&R5(t)?t:null,n=!1,i=t=>{let n=t.target;n instanceof HTMLElement&&!e(n)&&R5(n)&&(r=n)},a=t=>{let r=t.target;n=r instanceof Element&&!e(r)&&R5(r)},l=()=>{n=!1};return document.addEventListener("focusin",i,!0),document.addEventListener("pointerdown",a,!0),document.addEventListener("keydown",l,!0),()=>{document.removeEventListener("focusin",i,!0),document.removeEventListener("pointerdown",a,!0),document.removeEventListener("keydown",l,!0),n||queueMicrotask(()=>{let t=document.activeElement,n=!t||t===document.body||e(t)||null!==t.closest('[data-scope="dialog"][data-part="content"][data-state="closed"]'),i=r?.isConnected?r:Array.from(document.querySelectorAll('[data-scope="dialog"][data-part="trigger"]')).find(e=>e.getAttribute("aria-controls")===v)??null;n&&i&&i.focus({preventScroll:!0})})}},s[0]=v,s[1]=g,s[2]=p,s[3]=l):l=s[3],s[4]!==v||s[5]!==g?(o=[g,v],s[4]=v,s[5]=g,s[6]=o):o=s[6],(0,c0.useLayoutEffect)(l,o),c[0]!==C?(t=e=>{let{open:t}=e;C(t)},c[0]=C,c[1]=t):t=c[1];let b=t;if(c[2]!==v?(r={content:v},c[2]=v,c[3]=r):r=c[3],c[4]!==y)n=e=>{let t=e.detail.targetLayer?.id;t&&y.includes(t)||e.preventDefault()},c[4]=y,c[5]=n;else n=c[5];if(c[6]!==p)i=e=>{let t=e.detail.originalEvent.target;(p||t instanceof Element&&t.closest('[data-scope="dialog"][data-part="content"][data-state="closed"]'))&&e.preventDefault()},c[6]=p,c[7]=i;else i=c[7];return c[8]!==d||c[9]!==u||c[10]!==h||c[11]!==b||c[12]!==g||c[13]!==p||c[14]!==m||c[15]!==f||c[16]!==r||c[17]!==n||c[18]!==i?(a=(0,eB.Y)(R0.Root,{ids:r,open:g,onOpenChange:b,closeOnEscape:u,closeOnInteractOutside:h,modal:p,onRequestDismiss:n,onFocusOutside:i,onInteractOutside:f,onEscapeKeyDown:m,lazyMount:!0,unmountOnExit:!0,children:d}),c[8]=d,c[9]=u,c[10]=h,c[11]=b,c[12]=g,c[13]=p,c[14]=m,c[15]=f,c[16]=r,c[17]=n,c[18]=i,c[19]=a):a=c[19],a},"DrawerRoot");R7.displayName="DrawerRoot";let R9=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(21),{children:a,kind:l,open:o,onOpenChange:s,closeOnEscape:c,closeOnOutsideClick:d,overlay:u,modal:h,width:p,minWidth:f,maxWidth:m,onInteractOutside:g,onEscapeKeyDown:C,"data-testid":v}=e,y=void 0===l?"drawer":l,b=void 0===c||c,x=void 0===d||d,O=void 0===u||u,w=void 0===h||h;return i[0]!==a||i[1]!==v?(t=(0,eB.Y)(m3,{value:v,children:a}),i[0]=a,i[1]=v,i[2]=t):t=i[2],i[3]!==b||i[4]!==x||i[5]!==w||i[6]!==C||i[7]!==g||i[8]!==t?(r=(0,eB.Y)(R7,{closeOnEscape:b,closeOnOutsideClick:x,modal:w,onInteractOutside:g,onEscapeKeyDown:C,children:t}),i[3]=b,i[4]=x,i[5]=w,i[6]=C,i[7]=g,i[8]=t,i[9]=r):r=i[9],i[10]!==b||i[11]!==y||i[12]!==m||i[13]!==f||i[14]!==w||i[15]!==s||i[16]!==o||i[17]!==O||i[18]!==r||i[19]!==p?(n=(0,eB.Y)(RA,{kind:y,open:o,onOpenChange:s,closeOnEscape:b,overlay:O,modal:w,width:p,minWidth:f,maxWidth:m,children:r}),i[10]=b,i[11]=y,i[12]=m,i[13]=f,i[14]=w,i[15]=s,i[16]=o,i[17]=O,i[18]=r,i[19]=p,i[20]=n):n=i[20],n},"Drawer");R9.displayName="Drawer";let R6=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(11),{children:s,ref:c}=e,d=m5("body");return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("flex-1 min-h-0"),o[0]=t):t=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,m2.cn)("flex flex-col px-24 min-h-full h-auto min-w-0!"),o[1]=r):r=o[1],o[2]!==s?(n=(0,eB.Y)(Sy,{className:r,"data-slot":"drawer-scroll-area-content",children:s}),o[2]=s,o[3]=n):n=o[3],o[4]!==c||o[5]!==n?(i=(0,eB.Y)(Sv,{ref:c,children:n}),o[4]=c,o[5]=n,o[6]=i):i=o[6],o[7]===Symbol.for("react.memo_cache_sentinel")?(a=(0,eB.Y)(SO,{}),o[7]=a):a=o[7],o[8]!==i||o[9]!==d?(l=(0,eB.FD)(SS,{className:t,"data-slot":"drawer-body","data-testid":d,children:[i,a]}),o[8]=i,o[9]=d,o[10]=l):l=o[10],l},"DrawerBody");R6.displayName="DrawerBody";let R8=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(25);u[0]!==e?({children:t,asChild:i,ref:r,"data-testid":a,...n}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5]);let h=void 0!==i&&i,p=m5("close",a),{closeOnEscape:f}=R3();if(h){let e;return u[6]!==t||u[7]!==r||u[8]!==n||u[9]!==a?(e=(0,eB.Y)(R0.CloseTrigger,{"data-slot":"drawer-close",...n,ref:r,asChild:!0,"data-testid":a,children:t}),u[6]=t,u[7]=r,u[8]=n,u[9]=a,u[10]=e):e=u[10],e}return u[11]!==t?(l=t||(0,eB.Y)(cN.X,{}),u[11]=t,u[12]=l):l=u[12],u[13]!==r||u[14]!==n||u[15]!==l||u[16]!==p?(o=(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(R0.CloseTrigger,{asChild:!0,onFocusCapture:Ve,children:(0,eB.Y)(vn.$,{ref:r,variant:"ghost",color:"neutral",size:"small","aria-label":"Close drawer","data-slot":"drawer-close",...n,"data-testid":p,children:l})})}),u[13]=r,u[14]=n,u[15]=l,u[16]=p,u[17]=o):o=u[17],u[18]!==f?(s=f&&(0,eB.Y)(LA,{children:"ESC"}),u[18]=f,u[19]=s):s=u[19],u[20]!==s?(c=(0,eB.FD)(bm,{children:["Close ",s]}),u[20]=s,u[21]=c):c=u[21],u[22]!==o||u[23]!==c?(d=(0,eB.FD)(bC,{children:[o,c]}),u[22]=o,u[23]=c,u[24]=d):d=u[24],d},"DrawerClose");function Ve(e){e.stopPropagation()}R8.displayName="DrawerClose";let Vt=(0,m9.F)((0,m2.cn)("relative","bg-bg-surface-2","border border-border-primary-light","rounded-12","shadow-xl","flex flex-col","overflow-visible","outline-none","**:data-[slot=drawer-scroll-area-content]:pb-24","has-data-[slot=drawer-footer]:**:data-[slot=drawer-scroll-area-content]:pb-8","**:data-[slot=drawer-scroll-area-content]:pt-8","[&_[data-slot=drawer-body]:has([data-part=viewport][data-overflow-y])]:border-y","[&_[data-slot=drawer-body]:has([data-part=viewport][data-overflow-y])]:border-transparent","[&_[data-slot=drawer-body]:has([data-part=viewport][data-overflow-y])]:transition-colors","[&_[data-slot=drawer-body]:has([data-part=viewport][data-overflow-y]:not([data-at-top]))]:border-t-border-primary-light","[&_[data-slot=drawer-body]:has([data-part=viewport][data-overflow-y]:not([data-at-bottom]))]:border-b-border-primary-light","[&:has([data-slot=drawer-header] [data-scope=tabs])_[data-slot=drawer-body]]:border-t-0","[&:has([data-slot=drawer-header] [data-slot=tabs-list])_[data-slot=drawer-body]]:border-t-0","[&:has([data-slot=drawer-header]+[data-scope=tabs])_[data-slot=drawer-body]]:border-t-0","[&:has([data-slot=drawer-header]+[data-slot=tabs-list])_[data-slot=drawer-body]]:border-t-0","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0","data-[state=open]:duration-300 data-[state=closed]:duration-150"),{variants:{isResizing:{true:"transition-none"}}}),Vr=(0,m9.F)((0,m2.cn)("flex w-full","origin-[right center]","z-[calc(var(--drawer-positioner-z-index)+(var(--layer-index,0)*var(--drawer-level-ratio)))]"),{variants:{isResizing:{true:"transition-transform"}}}),Vn=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(3);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("fixed inset-0","data-[state=open]:animate-in data-[state=open]:fade-in-0","data-[state=closed]:animate-out data-[state=closed]:fade-out-0","transition-opacity duration-200","backdrop-blur-xs bg-component-dialog-overlay","z-[calc(var(--drawer-overlay-z-index)+(var(--layer-index,0)*var(--drawer-level-ratio)))]"),n[0]=t):t=n[0],n[1]!==e?(r=(0,eB.Y)("div",{...e,className:t}),n[1]=e,n[2]=r):r=n[2],r},"Overlay");Vn.displayName="Overlay";let Vi=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(3),{ref:i}=e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eB.Y)(Vn,{}),n[0]=t):t=n[0],n[1]!==i?(r=(0,eB.Y)(R0.Backdrop,{ref:i,asChild:!0,children:t}),n[1]=i,n[2]=r):r=n[2],r},"DrawerOverlay");Vi.displayName="DrawerOverlay";let Va=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(6);return i[0]!==e?({children:t,...r}=e,i[0]=e,i[1]=t,i[2]=r):(t=i[1],r=i[2]),i[3]!==t||i[4]!==r?(n=(0,eB.Y)(bh,{...r,children:t}),i[3]=t,i[4]=r,i[5]=n):n=i[5],n},"DrawerPortal");Va.displayName="DrawerPortal";let Vl=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(6),{children:i,isResizing:a}=e,{modal:l}=R3();return n[0]!==a||n[1]!==l?(t=(0,m2.cn)(Vr({isResizing:a}),"fixed right-0 left-0 top-0 bottom-0","justify-end p-8",!l&&"pointer-events-none [&>*]:pointer-events-auto"),n[0]=a,n[1]=l,n[2]=t):t=n[2],n[3]!==i||n[4]!==t?(r=(0,eB.Y)(R0.Positioner,{className:t,children:i}),n[3]=i,n[4]=t,n[5]=r):r=n[5],r},"DrawerPositioner");Vl.displayName="DrawerPositioner";let Vo=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(27),{children:d,asChild:u,ref:h}=e,p=m5("content"),{width:f,isResizing:m,overlay:g,contentId:C}=R3(),v=(0,c0.useContext)(R4),y=RE();c[0]!==g?(t=g&&(0,eB.Y)(Vi,{}),c[0]=g,c[1]=t):t=c[1];let b=y>0?"":void 0;c[2]!==m?(r=(0,m2.cn)(Vt({isResizing:m}),"h-full","slide-in-from-right-[25%] slide-out-to-right-[25%]","origin-left","data-[has-nested-same]:scale-[calc(var(--drawer-pushed-back-scale)-(var(--nested-same-kind-count)*var(--drawer-pushed-back-ratio)))]","data-[has-nested-same]:-translate-x-[calc((var(--drawer-pushed-back-offset)/(var(--drawer-pushed-back-scale)-(var(--nested-same-kind-count)*var(--drawer-pushed-back-ratio))))*var(--nested-same-kind-count))]"),c[2]=m,c[3]=r):r=c[3],c[4]!==y||c[5]!==f?(n={width:f,"--nested-same-kind-count":y},c[4]=y,c[5]=f,c[6]=n):n=c[6];let x=n;return c[7]!==v||c[8]!==C?(i=[...v,C],c[7]=v,c[8]=C,c[9]=i):i=c[9],c[10]!==d||c[11]!==i?(a=(0,eB.Y)(R4.Provider,{value:i,children:d}),c[10]=d,c[11]=i,c[12]=a):a=c[12],c[13]!==u||c[14]!==h||c[15]!==b||c[16]!==r||c[17]!==x||c[18]!==a||c[19]!==p?(l=(0,eB.Y)(R0.Content,{ref:h,"data-testid":p,"data-has-nested-same":b,className:r,style:x,asChild:u,children:a}),c[13]=u,c[14]=h,c[15]=b,c[16]=r,c[17]=x,c[18]=a,c[19]=p,c[20]=l):l=c[20],c[21]!==m||c[22]!==l?(o=(0,eB.Y)(Vl,{isResizing:m,children:l}),c[21]=m,c[22]=l,c[23]=o):o=c[23],c[24]!==t||c[25]!==o?(s=(0,eB.FD)(Va,{children:[t,o]}),c[24]=t,c[25]=o,c[26]=s):s=c[26],s},"DrawerContent");Vo.displayName="DrawerContent";let Vs=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(5),{children:i,ref:a}=e,l=m5("footer");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("rounded-b-12 bg-bg-surface-2","flex items-center justify-end gap-8 shrink-0 w-full px-24 py-16","relative"),n[0]=t):t=n[0],n[1]!==i||n[2]!==a||n[3]!==l?(r=(0,eB.Y)("div",{ref:a,"data-testid":l,"data-slot":"drawer-footer",className:t,children:i}),n[1]=i,n[2]=a,n[3]=l,n[4]=r):r=n[4],r},"DrawerFooter");Vs.displayName="DrawerFooter";let Vc=(0,m9.F)("flex items-center gap-8",{variants:{placement:{left:"mr-auto",right:"ml-auto"}}}),Vd=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(6),{children:i,placement:a}=e,l=void 0===a?"right":a,o=m5("footer-controls");return n[0]!==l?(t=(0,m2.cn)(Vc({placement:l})),n[0]=l,n[1]=t):t=n[1],n[2]!==i||n[3]!==t||n[4]!==o?(r=(0,eB.Y)("div",{"data-testid":o,className:t,children:i}),n[2]=i,n[3]=t,n[4]=o,n[5]=r):r=n[5],r},"DrawerFooterControls");Vd.displayName="DrawerFooterControls";let Vu=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(5),{children:i,ref:a}=e,l=m5("description");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("col-start-1 row-start-2 text-sm font-normal text-text-secondary"),n[0]=t):t=n[0],n[1]!==i||n[2]!==a||n[3]!==l?(r=(0,eB.Y)(R0.Description,{ref:a,"data-testid":l,"data-slot":"drawer-description",className:t,children:i}),n[1]=i,n[2]=a,n[3]=l,n[4]=r):r=n[4],r},"DrawerDescription");Vu.displayName="DrawerDescription";let Vh=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(5),{children:i,ref:a}=e,l=m5("title");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("flex-1 min-w-0 col-start-1 row-start-1","font-sans-display font-medium text-lg leading-28","text-text-primary"),n[0]=t):t=n[0],n[1]!==i||n[2]!==a||n[3]!==l?(r=(0,eB.Y)(R0.Title,{ref:a,"data-testid":l,"data-slot":"drawer-title",className:t,children:i}),n[1]=i,n[2]=a,n[3]=l,n[4]=r):r=n[4],r},"DrawerTitle");Vh.displayName="DrawerTitle";let Vp=e=>(0,c0.isValidElement)(e)&&e.type===R8,Vf=e=>(0,c0.isValidElement)(e)&&e.type===Vh,Vm=e=>(0,c0.isValidElement)(e)&&e.type===Vu,Vg=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(17),{children:d,ref:u}=e,h=m5("header");if(c[0]!==d){let e=c0.Children.toArray(d);r=e.some(Vp),i=e.find(Vf),t=e.find(Vm),n=e.filter(e=>e!==i&&e!==t),c[0]=d,c[1]=t,c[2]=r,c[3]=n,c[4]=i}else t=c[1],r=c[2],n=c[3],i=c[4];let p=n;return c[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,m2.cn)("relative shrink-0 w-full","bg-bg-surface-2","flex items-start justify-between gap-12","[&:has(>[data-slot=drawer-description])]:grid [&:has(>[data-slot=drawer-description])]:grid-cols-[minmax(0,1fr)]","[&:has(>[data-slot=drawer-description])]:grid-rows-[auto_1fr] [&:has(>[data-slot=drawer-description])]:auto-cols-max","[&:has(>[data-slot=drawer-description])]:gap-y-0","[&:has(>[data-slot=drawer-description])>*:not([data-slot=drawer-title]):not([data-slot=drawer-description])]:row-[1/span_2]","[&>[data-slot=drawer-close]~[data-slot=drawer-close]]:hidden","pt-16 pb-12 pl-24 pr-16","rounded-t-12","outline-none"),c[5]=a):a=c[5],c[6]!==t||c[7]!==i?(l=(i||t)&&(0,eB.FD)("div",{className:"flex flex-1 flex-col gap-0 min-w-0",children:[i,t]}),c[6]=t,c[7]=i,c[8]=l):l=c[8],c[9]!==r?(o=!r&&(0,eB.Y)(R8,{}),c[9]=r,c[10]=o):o=c[10],c[11]!==u||c[12]!==p||c[13]!==l||c[14]!==o||c[15]!==h?(s=(0,eB.FD)("div",{ref:u,"data-testid":h,"data-slot":"drawer-header",className:a,children:[l,p,o]}),c[11]=u,c[12]=p,c[13]=l,c[14]=o,c[15]=h,c[16]=s):s=c[16],s},"DrawerHeader");function VC(e,t){let r,n,i=0,a=t=>{i=Date.now(),e(...t)},l=(...e)=>{let l=t-(Date.now()-i);if(l<=0){clearTimeout(r),r=void 0,a(e);return}n=e,void 0===r&&(r=setTimeout(()=>{r=void 0,n&&a(n)},l))};return l.cancel=()=>{clearTimeout(r),r=void 0,n=void 0},l}Vg.displayName="DrawerHeader";let Vv=(0,m9.F)((0,m2.cn)("absolute left-0 top-0 bottom-0 z-1","-translate-x-1/2","w-12 py-12","outline-none cursor-col-resize","flex items-center justify-center",'before:content-[""]',"before:block","before:w-3 before:h-full","before:rounded-full","before:bg-bg-fill-brand","before:transition-opacity before:duration-150"),{variants:{barIsVisible:{true:"before:opacity-100",false:"before:opacity-0"}}}),Vy=(0,eQ.G)(({ref:e,"data-testid":t,onResizeStart:r,onResizeEnd:n,onMouseEnter:i,onMouseLeave:a,onMouseDown:l,className:o,...s})=>{let{setWidth:c,setIsResizing:d,minWidth:u,maxWidth:h}=R3(),p=m5("resize-handle",t),[f,m]=(0,c0.useState)(!1),[g,C]=(0,c0.useState)(!1),v=(0,c0.useRef)({startX:0,startWidth:0,currentWidth:0}),y=(0,c0.useRef)(n);(0,c0.useEffect)(()=>{y.current=n},[n]);let b=(0,c0.useMemo)(()=>VC(e=>{let{startX:t,startWidth:r}=v.current,n=Math.min(Math.max(r+(t-e.clientX),u),h);c(n),v.current.currentWidth=n},16),[u,h,c]);(0,c0.useEffect)(()=>{if(!g)return;let e=()=>{C(!1),d(!1),b.cancel(),y.current?.(v.current.currentWidth)};return document.addEventListener("mousemove",b),document.addEventListener("mouseup",e),()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",e),b.cancel()}},[g,b,d]);let x=f||g;return(0,eB.FD)(bC,{positioning:{placement:"left"},open:f&&!g,children:[(0,eB.Y)(bo,{...s,ref:e,"data-slot":"resize-handle","data-resizing":g||void 0,"data-testid":p,className:(0,m2.cn)(Vv({barIsVisible:x}),o),onMouseEnter:e=>{i?.(e),e.defaultPrevented||m(!0)},onMouseLeave:e=>{a?.(e),e.defaultPrevented||m(!1)},onMouseDown:e=>{if(l?.(e),e.defaultPrevented)return;e.preventDefault();let t=e.currentTarget.closest('[role="dialog"]');if(!t)return;let n=t.offsetWidth;v.current={startX:e.clientX,startWidth:n,currentWidth:n},C(!0),d(!0),r?.()}}),(0,eB.Y)(bm,{children:"Drag to resize"})]})},"DrawerResizeHandle");Vy.displayName="DrawerResizeHandle";let Vb=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({children:t,asChild:i,ref:r,"data-testid":a,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i,o[5]=a):(t=o[1],r=o[2],n=o[3],i=o[4],a=o[5]);let s=void 0!==i&&i,c=m5("trigger",a);return o[6]!==s||o[7]!==t||o[8]!==r||o[9]!==n||o[10]!==c?(l=(0,eB.Y)(R0.Trigger,{...n,ref:r,"data-testid":c,asChild:s,children:t}),o[6]=s,o[7]=t,o[8]=r,o[9]=n,o[10]=c,o[11]=l):l=o[11],l},"DrawerTrigger");Vb.displayName="DrawerTrigger";let Vx=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({children:t,className:r,"data-testid":i,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("context-trigger",i);return o[5]!==r?(a=(0,m2.cn)("[@media(pointer:fine)]:select-text!",r),o[5]=r,o[6]=a):a=o[6],o[7]!==t||o[8]!==n||o[9]!==a||o[10]!==s?(l=(0,eB.Y)(wN.ContextTrigger,{...n,className:a,"data-testid":s,children:t}),o[7]=t,o[8]=n,o[9]=a,o[10]=s,o[11]=l):l=o[11],l},"DropdownMenuContextTrigger");Vx.displayName="DropdownMenuContextTrigger";let VO=(0,eQ.G)(e=>{let t,r=(0,ej.c)(4),n=(0,c0.useId)(),i=m5("group");return r[0]!==n||r[1]!==e||r[2]!==i?(t=(0,eB.Y)(wN.ItemGroup,{...e,id:n,"data-testid":i}),r[0]=n,r[1]=e,r[2]=i,r[3]=t):t=r[3],t},"DropdownMenuGroup");VO.displayName="DropdownMenuGroup";let Vw=(0,m9.F)("",{variants:{inline:{true:"inline-flex",false:"flex"},direction:{row:"flex-row",column:"flex-col","row-reverse":"flex-row-reverse","column-reverse":"flex-col-reverse"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{wrap:"flex-wrap",nowrap:"flex-nowrap",reverse:"flex-wrap-reverse"},fullWidth:{true:"w-full"},flexGrow:{true:"flex-1"},flexShrink:{true:"shrink",false:"shrink-0"},gap:{0:"",1:"gap-1",2:"gap-2",4:"gap-4",6:"gap-6",8:"gap-8",12:"gap-12",16:"gap-16",20:"gap-20",24:"gap-24",28:"gap-28",32:"gap-32",36:"gap-36",40:"gap-40",44:"gap-44",48:"gap-48",56:"gap-56",64:"gap-64",80:"gap-80",96:"gap-96",112:"gap-112",128:"gap-128",144:"gap-144"}}}),VS=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C=(0,ej.c)(32);C[0]!==e?({inline:o,direction:s,align:c,justify:d,wrap:u,gap:h,fullWidth:a,flexGrow:n,flexShrink:i,asChild:p,className:r,children:t,...l}=e,C[0]=e,C[1]=t,C[2]=r,C[3]=n,C[4]=i,C[5]=a,C[6]=l,C[7]=o,C[8]=s,C[9]=c,C[10]=d,C[11]=u,C[12]=h,C[13]=p):(t=C[1],r=C[2],n=C[3],i=C[4],a=C[5],l=C[6],o=C[7],s=C[8],c=C[9],d=C[10],u=C[11],h=C[12],p=C[13]);let v=void 0!==o&&o,y=void 0===s?"column":s,b=void 0===c?"stretch":c,x=void 0===d?"start":d,O=void 0===u?"nowrap":u,w=void 0===h?4:h,S=void 0!==p&&p;if(C[14]!==t){let e;f=(e=t,c0.Children.toArray(e).filter(e=>(0,c0.isValidElement)(e))).map(VE),C[14]=t,C[15]=f}else f=C[15];let E=f,k=S?Ew.DX:"div";return C[16]!==b||C[17]!==r||C[18]!==y||C[19]!==n||C[20]!==i||C[21]!==a||C[22]!==w||C[23]!==v||C[24]!==x||C[25]!==O?(m=(0,m2.cn)(Vw({inline:v,direction:y,align:b,justify:x,wrap:O,gap:w,fullWidth:a,flexGrow:n,flexShrink:i}),r),C[16]=b,C[17]=r,C[18]=y,C[19]=n,C[20]=i,C[21]=a,C[22]=w,C[23]=v,C[24]=x,C[25]=O,C[26]=m):m=C[26],C[27]!==k||C[28]!==E||C[29]!==l||C[30]!==m?(g=(0,eB.Y)(k,{...l,className:m,children:E}),C[27]=k,C[28]=E,C[29]=l,C[30]=m,C[31]=g):g=C[31],g},"Stack");function VE(e,t){let r=void 0!==e.key?e.key:t;return(0,eB.Y)(c0.Fragment,{children:e},r)}VS.displayName="Stack";let Vk=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(6);return i[0]!==e?({ref:r,...t}=e,i[0]=e,i[1]=t,i[2]=r):(t=i[1],r=i[2]),i[3]!==t||i[4]!==r?(n=(0,eB.Y)(VS,{ref:r,direction:"column",...t}),i[3]=t,i[4]=r,i[5]=n):n=i[5],n},"VStack");Vk.displayName="VStack";let VP=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),{children:n}=e,i=m5("item-content");return r[0]!==n||r[1]!==i?(t=(0,eB.Y)(Vk,{gap:0,align:"start","data-testid":i,children:n}),r[0]=n,r[1]=i,r[2]=t):t=r[2],t},"DropdownMenuItemContent"),VD=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),{children:n}=e,i=m5("item-description");return r[0]!==n||r[1]!==i?(t=(0,eB.Y)(bk.E,{size:"xs",color:"secondary","data-slot":"dropdown-menu-item-description","data-testid":i,children:n}),r[0]=n,r[1]=i,r[2]=t):t=r[2],t},"DropdownMenuItemDescription"),VA=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(13);o[0]!==e?({className:t,inset:r,sticky:i,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("label");return o[5]!==t||o[6]!==r||o[7]!==i?(a=(0,m2.cn)((0,SE.d)({inset:r,sticky:i}),t),o[5]=t,o[6]=r,o[7]=i,o[8]=a):a=o[8],o[9]!==n||o[10]!==a||o[11]!==s?(l=(0,eB.Y)("div",{"data-testid":s,className:a,...n}),o[9]=n,o[10]=a,o[11]=s,o[12]=l):l=o[12],l},"DropdownMenuLabel");VA.displayName="DropdownMenuLabel";let VT=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(9);a[0]!==e?({className:t,...r}=e,a[0]=e,a[1]=t,a[2]=r):(t=a[1],r=a[2]);let l=m5("separator");return a[3]!==t?(n=(0,m2.cn)("mx-8 my-4 h-px bg-border-primary border-none",t),a[3]=t,a[4]=n):n=a[4],a[5]!==r||a[6]!==n||a[7]!==l?(i=(0,eB.Y)(wN.Separator,{"data-testid":l,className:n,...r}),a[5]=r,a[6]=n,a[7]=l,a[8]=i):i=a[8],i},"DropdownMenuSeparator");VT.displayName="DropdownMenuSeparator";let VM=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(17);d[0]!==e?({variant:i,inset:a,children:t,className:r,"data-testid":l,...n}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=n,d[4]=i,d[5]=a,d[6]=l):(t=d[1],r=d[2],n=d[3],i=d[4],a=d[5],l=d[6]);let u=void 0===i?"default":i,h=void 0!==a&&a,p=m5("trigger-item",l);return d[7]!==r||d[8]!==h||d[9]!==u?(o=(0,m2.cn)((0,SE.OZ)({variant:u,inset:h}),r),d[7]=r,d[8]=h,d[9]=u,d[10]=o):o=d[10],d[11]===Symbol.for("react.memo_cache_sentinel")?(s=(0,eB.Y)("div",{className:'ml-auto before:content-[""] before:flex before:w-8 before:shrink-0',children:(0,eB.Y)(rr.c,{})}),d[11]=s):s=d[11],d[12]!==t||d[13]!==n||d[14]!==o||d[15]!==p?(c=(0,eB.FD)(wN.TriggerItem,{...n,"data-testid":p,className:o,children:[t,s]}),d[12]=t,d[13]=n,d[14]=o,d[15]=p,d[16]=c):c=d[16],c},"DropdownMenuTriggerItem");VM.displayName="DropdownMenuTriggerItem";let VL=(0,m9.F)("flex flex-col items-center text-center m-[0_auto]",{variants:{type:{"collection-empty":"gap-16 py-24 max-w-[560px] min-w-[256px]","no-results":"gap-8 py-8 w-[240px]"}},defaultVariants:{type:"collection-empty"}}),VI=(0,m9.F)("empty-state-medallion flex items-center justify-center shrink-0 size-36 rounded-[15px] p-8 text-xl text-icon-secondary"),VN=(0,m9.F)("flex flex-col items-center",{variants:{type:{"collection-empty":"gap-8","no-results":"gap-4"}},defaultVariants:{type:"collection-empty"}}),VF=(0,m9.F)("text-center break-words",{variants:{type:{"collection-empty":"font-pixel text-base leading-base text-text-primary","no-results":"font-sans-display text-sm font-medium text-text-secondary"}},defaultVariants:{type:"collection-empty"}}),VR=(0,c0.createContext)("collection-empty"),VV=VR.Provider,V_=()=>(0,c0.useContext)(VR),VY=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(22);u[0]!==e?({ref:i,type:a,className:r,children:t,"data-testid":l,...n}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a,u[6]=l):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5],l=u[6]);let h=void 0===a?"collection-empty":a;return u[7]!==r||u[8]!==h?(o=(0,m2.cn)(VL({type:h}),r),u[7]=r,u[8]=h,u[9]=o):o=u[9],u[10]!==t||u[11]!==n||u[12]!==i||u[13]!==o||u[14]!==l?(s=(0,eB.Y)("div",{...n,ref:i,role:"status","data-slot":"empty-state","data-testid":l,className:o,children:t}),u[10]=t,u[11]=n,u[12]=i,u[13]=o,u[14]=l,u[15]=s):s=u[15],u[16]!==s||u[17]!==h?(c=(0,eB.Y)(VV,{value:h,children:s}),u[16]=s,u[17]=h,u[18]=c):c=u[18],u[19]!==c||u[20]!==l?(d=(0,eB.Y)(m3,{value:l,children:c}),u[19]=c,u[20]=l,u[21]=d):d=u[21],d},"EmptyState");VY.displayName="EmptyState";let V$=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(13);o[0]!==e?({ref:i,className:r,children:t,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("actions");return o[5]!==r?(a=(0,m2.cn)("flex items-center justify-center gap-12",r),o[5]=r,o[6]=a):a=o[6],o[7]!==t||o[8]!==n||o[9]!==i||o[10]!==a||o[11]!==s?(l=(0,eB.Y)("div",{...n,ref:i,"data-slot":"empty-state-actions","data-testid":s,className:a,children:t}),o[7]=t,o[8]=n,o[9]=i,o[10]=a,o[11]=s,o[12]=l):l=o[12],l},"EmptyStateActions");V$.displayName="EmptyStateActions";let VH=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(9);a[0]!==e?({ref:n,children:t,...r}=e,a[0]=e,a[1]=t,a[2]=r,a[3]=n):(t=a[1],r=a[2],n=a[3]);let l=m5("description");return a[4]!==t||a[5]!==r||a[6]!==n||a[7]!==l?(i=(0,eB.Y)(bk.E,{...r,ref:n,"data-testid":l,"data-slot":"empty-state-description",size:"xs",color:"secondary",align:"center",children:t}),a[4]=t,a[5]=r,a[6]=n,a[7]=l,a[8]=i):i=a[8],i},"EmptyStateDescription");VH.displayName="EmptyStateDescription";let Vz=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(13);o[0]!==e?({ref:i,className:r,children:t,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("illustration");return o[5]!==r?(a=(0,m2.cn)(VI(),r),o[5]=r,o[6]=a):a=o[6],o[7]!==t||o[8]!==n||o[9]!==i||o[10]!==a||o[11]!==s?(l=(0,eB.Y)("div",{...n,ref:i,"data-slot":"empty-state-illustration","data-testid":s,className:a,children:t}),o[7]=t,o[8]=n,o[9]=i,o[10]=a,o[11]=s,o[12]=l):l=o[12],l},"EmptyStateIllustration");Vz.displayName="EmptyStateIllustration";let VZ=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(7);i[0]!==e?({size:r,...t}=e,i[0]=e,i[1]=t,i[2]=r):(t=i[1],r=i[2]);let a=void 0===r?"md":r,l=m5("link");return i[3]!==t||i[4]!==a||i[5]!==l?(n=(0,eB.Y)(EQ,{...t,size:a,"data-slot":"empty-state-link","data-testid":l}),i[3]=t,i[4]=a,i[5]=l,i[6]=n):n=i[6],n},"EmptyStateLink");VZ.displayName="EmptyStateLink";let VQ=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(14);o[0]!==e?({ref:i,className:r,children:t,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("message"),c=V_();return o[5]!==r||o[6]!==c?(a=(0,m2.cn)(VN({type:c}),r),o[5]=r,o[6]=c,o[7]=a):a=o[7],o[8]!==t||o[9]!==n||o[10]!==i||o[11]!==a||o[12]!==s?(l=(0,eB.Y)("div",{...n,ref:i,"data-slot":"empty-state-message","data-testid":s,className:a,children:t}),o[8]=t,o[9]=n,o[10]=i,o[11]=a,o[12]=s,o[13]=l):l=o[13],l},"EmptyStateMessage");VQ.displayName="EmptyStateMessage";let VB=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(14);o[0]!==e?({ref:i,className:r,children:t,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("title"),c=V_();return o[5]!==r||o[6]!==c?(a=(0,m2.cn)(VF({type:c}),r),o[5]=r,o[6]=c,o[7]=a):a=o[7],o[8]!==t||o[9]!==n||o[10]!==i||o[11]!==a||o[12]!==s?(l=(0,eB.Y)("p",{...n,ref:i,"data-testid":s,"data-slot":"empty-state-title",className:a,children:t}),o[8]=t,o[9]=n,o[10]=i,o[11]=a,o[12]=s,o[13]=l):l=o[13],l},"EmptyStateTitle");VB.displayName="EmptyStateTitle";var Vj=(0,c0.forwardRef)((e,t)=>{let[r,n]=vf(e),i=vv(r),a=p6(i.ref,t);return(0,eB.Y)(vs,{presence:i,children:(0,eB.Y)(fr.div,{...n,...i.getPresenceProps(),"data-scope":"presence","data-part":"root",ref:a})})});Vj.displayName="Presence";var VG=i("P");let VU=(0,m9.F)("",{variants:{size:{small:"py-0",medium:"py-6",default:"py-8","inline-edit":"py-4"}}}),VW=(0,m9.F)("min-h-[64px]",{variants:{size:{small:"min-h-[64px]",medium:"min-h-[72px]",default:"min-h-[76px]","inline-edit":"min-h-[64px]"}}}),Vq=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m=(0,ej.c)(35);m[0]!==e?({error:a,disabled:l,size:o,minRows:r,maxRows:t,ref:i,...n}=e,m[0]=e,m[1]=t,m[2]=r,m[3]=n,m[4]=i,m[5]=a,m[6]=l,m[7]=o):(t=m[1],r=m[2],n=m[3],i=m[4],a=m[5],l=m[6],o=m[7]);let g=void 0!==a&&a,C=void 0!==l&&l,v=void 0===o?"default":o,y=(0,NM.f)();m[8]!==y?(s=(0,p8.v)(y?.getTextareaProps()),m[8]=y,m[9]=s):s=m[9];let b=s,x=null!=t,O=r??(x?1:void 0),{ref:w,adjustHeight:S}=Ib(x,O??1,t??1,n.value);m[10]!==w||m[11]!==i?(c=(0,b8.t)(w,i),m[10]=w,m[11]=i,m[12]=c):c=m[12];let E=!!g;return m[13]!==S||m[14]!==x||m[15]!==n?(d=x&&{onInput:e=>{S(),n.onInput?.(e)}},m[13]=S,m[14]=x,m[15]=n,m[16]=d):d=m[16],m[17]!==x||m[18]!==g||m[19]!==v?(u=(0,m2.cn)((0,VG.j)({error:g}),VU({size:v}),"[scrollbar-width:thin]",!x&&VW({size:v}),x&&"resize-none"),m[17]=x,m[18]=g,m[19]=v,m[20]=u):u=m[20],m[21]!==C||m[22]!==O||m[23]!==b||m[24]!==n||m[25]!==c||m[26]!==E||m[27]!==d||m[28]!==u?(h=(0,eB.Y)("textarea",{...b,...n,ref:c,disabled:C,"aria-invalid":E,"aria-disabled":C,rows:O,...d,className:u}),m[21]=C,m[22]=O,m[23]=b,m[24]=n,m[25]=c,m[26]=E,m[27]=d,m[28]=u,m[29]=h):h=m[29],m[30]!==x?(p=!x&&(0,eB.Y)(eG.A,{className:"w-12 h-12 absolute bottom-0 right-0 text-icon-secondary pointer-events-none",viewBox:"0 0 12 12",children:(0,eB.Y)("path",{d:"M6 8L8 6M8 3L3 8",stroke:"currentColor",strokeLinecap:"round"})}),m[30]=x,m[31]=p):p=m[31],m[32]!==p||m[33]!==h?(f=(0,eB.FD)("div",{className:"relative","data-slot":"textarea",children:[h,p]}),m[32]=p,m[33]=h,m[34]=f):f=m[34],f},"Textarea");Vq.displayName="Textarea";var VX=i("B");let VK=(0,m9.F)((0,m2.cn)("fixed bottom-24 right-24 z-50 w-[400px] max-w-[calc(100vw-32px)]","flex flex-col gap-8 overflow-hidden p-12","rounded-12 border border-border-primary-light bg-bg-surface-2 text-text-primary shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:slide-in-from-bottom data-[state=open]:duration-300","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-bottom data-[state=closed]:duration-150","motion-reduce:animate-none motion-reduce:transition-none")),VJ=(0,eQ.G)(({duration:e,paused:t=!1,onComplete:r,"data-testid":n})=>{let[i,a]=(0,c0.useState)(0),l=(0,c0.useRef)(0),o=(0,c0.useRef)(0),s=(0,c0.useRef)(0),c=(0,c0.useRef)(t),d=(0,c0.useRef)(r);return c.current=t,d.current=r,(0,c0.useEffect)(()=>{o.current=performance.now();let t=!1,r=n=>{c.current||(l.current+=n-o.current),o.current=n;let i=Math.min(l.current/e,1);a(i),i<1?s.current=requestAnimationFrame(r):t||(t=!0,d.current())};return s.current=requestAnimationFrame(r),()=>cancelAnimationFrame(s.current)},[e]),(0,eB.Y)("div",{"aria-hidden":!0,"data-slot":"feedback-pulse-progress","data-testid":n,className:(0,m2.cn)("pointer-events-none absolute inset-0 overflow-hidden rounded-12"),children:(0,eB.Y)("div",{className:"h-full bg-states-primary-default-alt transition-none",style:{width:`${100*i}%`}})})},"FeedbackPulseProgress");VJ.displayName="FeedbackPulseProgress";let V1=["Very difficult","Very easy"],V2=[1,2,3,4,5],V0=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O=(0,ej.c)(54),{open:w,onOpenChange:S,onSubmit:E,question:k,scaleLabels:P,showComment:D,dismissDuration:A,confirmationText:T,"data-testid":M,ref:L}=e,I=void 0===k?"How easy was it to use this feature?":k,N=void 0===P?V1:P,F=void 0===D||D,R=void 0===A?5e3:A,V=void 0===T?"Thanks a lot! — Wallarm Team":T,[_,Y]=(0,c0.useState)("rating"),[$,H]=(0,c0.useState)(null),[z,Z]=(0,c0.useState)(""),[Q,B]=(0,c0.useState)(!1),[j,G]=(0,c0.useState)(!1),U=(0,c0.useRef)(null),W=(0,c0.useRef)(null),q=(0,c0.useRef)(null),X=(0,c0.useRef)(null);O[0]!==L?(t=e=>{q.current=e,"function"==typeof L?L(e):L&&(L.current=e)},O[0]=L,O[1]=t):t=O[1];let K=t;O[2]!==w?(r=()=>{w&&(Y("rating"),H(null),Z(""),B(!1))},n=[w],O[2]=w,O[3]=r,O[4]=n):(r=O[3],n=O[4]),(0,c0.useEffect)(r,n),O[5]!==_?(a=()=>{"submitted"===_&&W.current?.focus()},i=[_],O[5]=_,O[6]=i,O[7]=a):(i=O[6],a=O[7]),(0,c0.useEffect)(a,i),O[8]!==_?(l=()=>{if("feedback"!==_)return void G(!1);let e=setTimeout(()=>G(!0),250);return()=>clearTimeout(e)},o=[_],O[8]=_,O[9]=l,O[10]=o):(l=O[9],o=O[10]),(0,c0.useEffect)(l,o),O[11]!==_?(s=()=>{let e=q.current,t=X.current;if(X.current=null,!e||"submitted"!==_||null==t)return;let r="u">typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,n=e.getBoundingClientRect().height;if(r||1>Math.abs(t-n))return;e.style.height=`${t}px`;let i=new AbortController,a=requestAnimationFrame(()=>{e.style.transition="height 200ms ease-out",e.style.height=`${n}px`}),l=0,o=()=>{cancelAnimationFrame(a),clearTimeout(l),i.abort(),e.style.height="",e.style.transition=""};return l=window.setTimeout(o,400),e.addEventListener("transitionend",e=>{"height"===e.propertyName&&o()},{signal:i.signal}),o},c=[_],O[11]=_,O[12]=s,O[13]=c):(s=O[12],c=O[13]),(0,c0.useLayoutEffect)(s,c),O[14]!==M?(d=e=>M?`${M}--${e}`:void 0,O[14]=M,O[15]=d):d=O[15];let J=d;O[16]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{H(e),Y("feedback")},O[16]=u):u=O[16];let ee=u;O[17]!==$?(h=e=>{let t=$??1,r=null;"ArrowRight"===e.key||"ArrowUp"===e.key?r=Math.min(t+1,5):("ArrowLeft"===e.key||"ArrowDown"===e.key)&&(r=Math.max(t-1,1)),null!=r&&(e.preventDefault(),ee(r),U.current?.querySelector(`[data-score="${r}"]`)?.focus())},O[17]=$,O[18]=h):h=O[18];let et=h;O[19]!==z||O[20]!==E||O[21]!==$?(p=()=>{if(null==$)return;let e=z.trim();X.current=q.current?.getBoundingClientRect().height??null,E({score:$,comment:e||void 0}),Y("submitted")},O[19]=z,O[20]=E,O[21]=$,O[22]=p):p=O[22];let er=p;return O[23]!==S||O[24]!==w||O[25]!==_?(f=()=>{if(!w||"submitted"===_)return;let e=e=>{"Escape"===e.key&&S(!1,"dismiss")};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},m=[w,_,S],O[23]=S,O[24]=w,O[25]=_,O[26]=f,O[27]=m):(f=O[26],m=O[27]),(0,c0.useEffect)(f,m),O[28]===Symbol.for("react.memo_cache_sentinel")?(g=VK(),C=()=>B(!0),v=()=>B(!1),O[28]=g,O[29]=C,O[30]=v):(g=O[28],C=O[29],v=O[30]),O[31]!==z||O[32]!==V||O[33]!==R||O[34]!==et||O[35]!==er||O[36]!==S||O[37]!==Q||O[38]!==_||O[39]!==I||O[40]!==j||O[41]!==N||O[42]!==$||O[43]!==F||O[44]!==J?(y="submitted"===_?(0,eB.FD)(eB.FK,{children:[(0,eB.Y)(VJ,{duration:R,paused:Q,onComplete:()=>S(!1,"submit"),"data-testid":J("progress")}),(0,eB.FD)("div",{className:"relative z-10 flex items-center gap-8","aria-live":"polite",children:[(0,eB.Y)(t4,{size:"md",className:"shrink-0 text-icon-success"}),(0,eB.Y)("span",{className:"flex-1 text-sm font-medium text-text-primary",children:V}),(0,eB.FD)(bC,{children:[(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{ref:W,variant:"ghost",color:"neutral",size:"small","aria-label":"Close","data-testid":J("close"),onClick:()=>S(!1,"submit"),children:(0,eB.Y)(cN.X,{})})}),(0,eB.Y)(bm,{children:"Close"})]})]})]}):(0,eB.FD)(eB.FK,{children:[(0,eB.FD)("div",{className:"flex items-start justify-between gap-8",children:[(0,eB.Y)("span",{className:"flex-1 text-sm font-medium text-text-primary",children:I}),(0,eB.FD)(bC,{children:[(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{variant:"ghost",color:"neutral",size:"small","aria-label":"Close","data-testid":J("close"),onClick:()=>S(!1,"dismiss"),children:(0,eB.Y)(cN.X,{})})}),(0,eB.Y)(bm,{children:"Close"})]})]}),(0,eB.FD)("div",{children:[(0,eB.FD)("div",{className:"flex flex-col gap-4",children:[(0,eB.Y)("div",{ref:U,role:"radiogroup","aria-label":I,"data-testid":J("scale"),className:"flex gap-8",onKeyDown:et,children:V2.map(e=>(0,eB.Y)(VX.f,{variant:"outline",color:"neutral",size:"small",fullWidth:!0,active:$===e,role:"radio","aria-checked":$===e,"aria-label":String(e),"data-score":e,"data-testid":J(`score-${e}`),tabIndex:$===e||null==$&&1===e?0:-1,onToggle:()=>ee(e),children:e},e))}),(0,eB.FD)("div",{className:"flex justify-between",children:[(0,eB.Y)("span",{className:"text-sm font-normal text-text-secondary",children:N[0]}),(0,eB.Y)("span",{className:"text-sm font-normal text-text-secondary",children:N[1]})]})]}),(0,eB.Y)("div",{inert:"feedback"!==_,className:(0,m2.cn)("grid transition-[grid-template-rows] duration-200 ease-out motion-reduce:transition-none","feedback"===_?"mt-8 grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,eB.FD)("div",{className:(0,m2.cn)("flex flex-col gap-8",j?"overflow-visible":"overflow-hidden"),children:[F&&(0,eB.Y)(Vq,{placeholder:"Tell us why? (optional)",value:z,onChange:e=>Z(e.target.value),"data-testid":J("comment")}),(0,eB.Y)("div",{className:"flex justify-end",children:(0,eB.Y)(vn.$,{variant:"primary",color:"brand",size:"medium","data-testid":J("send"),onClick:er,children:"Send"})})]})})]})]}),O[31]=z,O[32]=V,O[33]=R,O[34]=et,O[35]=er,O[36]=S,O[37]=Q,O[38]=_,O[39]=I,O[40]=j,O[41]=N,O[42]=$,O[43]=F,O[44]=J,O[45]=y):y=O[45],O[46]!==I||O[47]!==K||O[48]!==y||O[49]!==M?(b=(0,eB.Y)("div",{ref:K,"data-slot":"feedback-pulse","data-testid":M,role:"dialog","aria-label":I,className:g,onMouseEnter:C,onMouseLeave:v,children:y}),O[46]=I,O[47]=K,O[48]=y,O[49]=M,O[50]=b):b=O[50],O[51]!==w||O[52]!==b?(x=(0,eB.Y)(bh,{children:(0,eB.Y)(Vj,{present:w,asChild:!0,children:b})}),O[51]=w,O[52]=b,O[53]=x):x=O[53],x},"FeedbackPulse");V0.displayName="FeedbackPulse";var V3=e=>e.children((0,NM.f)()),V5=(0,c0.forwardRef)((e,t)=>{let r=(0,NM.f)(),n=(0,p8.v)(r.getErrorTextProps(),e);return r?.invalid?(0,eB.Y)(fr.span,{...n,ref:t}):null});V5.displayName="FieldErrorText";var V4=(0,c0.forwardRef)((e,t)=>{let r=(0,NM.f)(),n=(0,p8.v)(r?.getHelperTextProps(),e);return(0,eB.Y)(fr.span,{...n,ref:t})});V4.displayName="FieldHelperText";var V7=(0,c0.forwardRef)((e,t)=>{let r=(0,NM.f)(),n=(0,p8.v)(r?.getInputProps(),e);return(0,eB.Y)(fr.input,{...n,ref:t})});V7.displayName="FieldInput";var V9=uZ("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator").build(),V6=e=>{let{value:t,children:r}=e,n=(0,NM.f)(),i=(0,c0.useMemo)(()=>{if(!n)throw Error("Field.Item must be used within Field.Root");let e=`field::${n.ids.control}::item::${t}`,r=`${e}::label`,i=()=>({...n.getInputProps(),id:e});return{...n,ids:{...n.ids,control:e,label:r},getLabelProps:()=>({...n.getLabelProps(),id:r,htmlFor:e}),getInputProps:()=>({...i(),...V9.input.attrs}),getSelectProps:()=>({...i(),...V9.select.attrs}),getTextareaProps:()=>({...i(),...V9.textarea.attrs})}},[n,t]);return(0,eB.Y)(NM.S,{value:i,children:r})};V6.displayName="FieldItem";var V8=(0,c0.forwardRef)((e,t)=>{let r=(0,NM.f)(),n=(0,p8.v)(r?.getLabelProps(),e);return(0,eB.Y)(fr.label,{...n,ref:t})});V8.displayName="FieldLabel";var _e=(0,c0.forwardRef)(({fallback:e,...t},r)=>{let n=(0,NM.f)();if(!n.required)return e;let i=(0,p8.v)(n.getRequiredIndicatorProps(),t);return(0,eB.Y)(fr.span,{...i,ref:r,children:t.children??"*"})});_e.displayName="FieldRequiredIndicator";var _t="u">typeof window?c0.useLayoutEffect:c0.useEffect,_r=p1(),_n=(0,c0.forwardRef)((e,t)=>{let[r,n]=_r(e,["id","ids","disabled","invalid","readOnly","required","target"]),i=((e={})=>{let t=Fa(),r=uo(),{ids:n,target:i,disabled:a=!!t?.disabled,invalid:l=!1,readOnly:o=!1,required:s=!1}=e,[c,d]=(0,c0.useState)(!1),[u,h]=(0,c0.useState)(!1),p=(0,c0.useId)(),f=e.id??p,m=(0,c0.useRef)(null),g=n?.control??`field::${f}`,C=n?.errorText??`field::${f}::error-text`,v=n?.helperText??`field::${f}::helper-text`,y=n?.label??`field::${f}::label`;_t(()=>{let e=m.current;if(!e)return;let t=()=>{let e=r.getRootNode();d(!!e.getElementById(C)),h(!!e.getElementById(v))};t();let n=new(r.getWindow()).MutationObserver(t);return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[r,C,v]);let b=(0,c0.useMemo)(()=>()=>({...V9.root.attrs,id:g,ref:m,role:"group","data-disabled":uF(a),"data-invalid":uF(l),"data-readonly":uF(o)}),[a,l,o,g]),x=i?`field::${f}::item::${i}`:void 0,O=(0,c0.useMemo)(()=>()=>({...V9.label.attrs,id:y,"data-disabled":uF(a),"data-invalid":uF(l),"data-readonly":uF(o),"data-required":uF(s),htmlFor:x??f}),[a,l,o,s,f,y,x]),w=c&&l?C:void 0,S=(0,c0.useMemo)(()=>()=>({"aria-describedby":u?v:void 0,"aria-errormessage":w,"aria-invalid":uR(l),"data-invalid":uF(l),"data-required":uF(s),"data-readonly":uF(o),id:f,required:s,disabled:a,readOnly:o}),[u,v,l,s,o,f,w,a]),E=(0,c0.useMemo)(()=>()=>({...S(),...V9.input.attrs}),[S]),k=(0,c0.useMemo)(()=>()=>({...S(),...V9.textarea.attrs}),[S]),P=(0,c0.useMemo)(()=>()=>({...S(),...V9.select.attrs}),[S]),D=(0,c0.useMemo)(()=>()=>({id:v,...V9.helperText.attrs,"data-disabled":uF(a)}),[a,v]),A=(0,c0.useMemo)(()=>()=>({id:C,...V9.errorText.attrs,"aria-live":"polite"}),[C]);return{ariaDescribedby:u?v:void 0,ids:{root:g,control:f,label:y,errorText:C,helperText:v},refs:{rootRef:m},disabled:a,invalid:l,readOnly:o,required:s,getLabelProps:O,getRootProps:b,getInputProps:E,getTextareaProps:k,getSelectProps:P,getHelperTextProps:D,getErrorTextProps:A,getRequiredIndicatorProps:(0,c0.useMemo)(()=>()=>({"aria-hidden":!0,...V9.requiredIndicator.attrs}),[])}})(r),a=(0,p8.v)(i.getRootProps(),n),l=p6(t,i.refs.rootRef);return(0,eB.Y)(NM.S,{value:i,children:(0,eB.Y)(fr.div,{...a,ref:l})})});_n.displayName="FieldRoot";var _i=p1(),_a=(0,c0.forwardRef)((e,t)=>{let[{value:r},n]=_i(e,["value"]),i=(0,p8.v)(r.getRootProps(),n);return(0,eB.Y)(NM.S,{value:r,children:(0,eB.Y)(fr.div,{...i,ref:t})})});_a.displayName="FieldRootProvider";var _l=(0,c0.forwardRef)((e,t)=>{let r=(0,NM.f)(),n=(0,p8.v)(r?.getSelectProps(),e);return(0,eB.Y)(fr.select,{...n,ref:t})});_l.displayName="FieldSelect";var _o=(0,c0.forwardRef)((e,t)=>{let{autoresize:r,...n}=e,i=(0,c0.useRef)(null),a=(0,NM.f)(),l=(0,p8.v)(a?.getTextareaProps(),{style:{resize:r?"none":void 0}},n),o=p6(t,i);return(0,c0.useEffect)(()=>{if(r)return(e=>{if(!e)return;let t=fp(e),r=u6(e),n=u9(e),i=()=>{requestAnimationFrame(()=>{let r;e.style.height="auto",r="content-box"===t.boxSizing?e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),"none"!==t.maxHeight&&r>parseFloat(t.maxHeight)?("hidden"===t.overflowY&&(e.style.overflowY="scroll"),r=parseFloat(t.maxHeight)):"hidden"!==t.overflowY&&(e.style.overflowY="hidden"),e.style.height=`${r}px`})};e.addEventListener("input",i),e.form?.addEventListener("reset",i);let a=Object.getOwnPropertyDescriptor(e,"value"),l=a?.set?a:Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value");l?.set&&Object.defineProperty(e,"value",{...l,set(e){l.set?.call(this,e),i()}});let o=new r.ResizeObserver(()=>{requestAnimationFrame(()=>i())});o.observe(e);let s=new r.MutationObserver(()=>i());return s.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),n.fonts?.addEventListener("loadingdone",i),()=>{e.removeEventListener("input",i),e.form?.removeEventListener("reset",i),n.fonts?.removeEventListener("loadingdone",i),o.disconnect(),s.disconnect()}})(i.current)},[r]),(0,eB.Y)(fr.textarea,{...l,ref:o})});_o.displayName="FieldTextarea";var _s=pq({Context:()=>V3,ErrorText:()=>V5,HelperText:()=>V4,Input:()=>V7,Item:()=>V6,Label:()=>V8,RequiredIndicator:()=>_e,Root:()=>_n,RootProvider:()=>_a,Select:()=>_l,Textarea:()=>_o}),_c=e=>e.children(Fa()),_d=(0,c0.forwardRef)((e,t)=>{let r=Fa(),n=(0,p8.v)(r.getErrorTextProps(),e);return r.invalid?(0,eB.Y)(fr.span,{...n,ref:t}):null});_d.displayName="FieldsetErrorText";var _u=(0,c0.forwardRef)((e,t)=>{let r=Fa(),n=(0,p8.v)(r.getHelperTextProps(),e);return(0,eB.Y)(fr.span,{...n,ref:t})});_u.displayName="FieldsetHelperText";var _h=(0,c0.forwardRef)((e,t)=>{let r=Fa(),n=(0,p8.v)(r.getLegendProps(),e);return(0,eB.Y)(fr.legend,{...n,ref:t})});_h.displayName="FieldsetLegend";var _p=uZ("fieldset").parts("root","errorText","helperText","legend").build(),_f=p1(),_m=(0,c0.forwardRef)((e,t)=>{let[r,n]=_f(e,["id","disabled","invalid"]),i=((e={})=>{let{disabled:t=!1,invalid:r=!1}=e,n=uo(),[i,a]=(0,c0.useState)(!1),[l,o]=(0,c0.useState)(!1),s=(0,c0.useId)(),c=e.id??s,d=(0,c0.useRef)(null),u=`fieldset::${c}::legend`,h=`fieldset::${c}::error-text`,p=`fieldset::${c}::helper-text`;_t(()=>{let e=d.current;if(!e)return;let t=()=>{let e=n.getRootNode();a(!!e.getElementById(h)),o(!!e.getElementById(p))};t();let r=new(n.getWindow()).MutationObserver(t);return r.observe(e,{childList:!0,subtree:!0}),()=>r.disconnect()},[n,h,p]);let f=[];i&&r&&f.push(h),l&&f.push(p);let m=f.length>0?f.join(" "):void 0;return{refs:{rootRef:d},ids:{legend:u,errorText:h,helperText:p},disabled:t,invalid:r,getRootProps:()=>({..._p.root.attrs,ref:d,disabled:t,"data-disabled":uF(t),"data-invalid":uF(r),"aria-labelledby":u,"aria-describedby":m}),getLegendProps:()=>({id:u,..._p.legend.attrs,"data-disabled":uF(t),"data-invalid":uF(r)}),getHelperTextProps:()=>({id:p,..._p.helperText.attrs}),getErrorTextProps:()=>({id:h,..._p.errorText.attrs,"aria-live":"polite"})}})(r),a=(0,p8.v)(i.getRootProps(),n),l=p6(t,i.refs.rootRef);return(0,eB.Y)(Fi,{value:i,children:(0,eB.Y)(fr.fieldset,{...a,ref:l})})});_m.displayName="FieldsetRoot";var _g=p1(),_C=(0,c0.forwardRef)((e,t)=>{let[{value:r},n]=_g(e,["value"]),i=(0,p8.v)(r.getRootProps(),n);return(0,eB.Y)(Fi,{value:r,children:(0,eB.Y)(fr.fieldset,{...i,ref:t})})});_C.displayName="FieldsetRootProvider";var _v=pq({Context:()=>_c,ErrorText:()=>_d,HelperText:()=>_u,Legend:()=>_h,Root:()=>_m,RootProvider:()=>_C});let _y=(0,m9.F)("group/field flex gap-4 w-full min-w-0 data-[invalid=true]:text-text-danger",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px has-[>[data-slot=field-content]]:items-start"],responsive:["@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto flex-col [&>*]:w-full [&>.sr-only]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}}),_b=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(17);c[0]!==e?({orientation:n,children:t,"data-testid":i,...r}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=i):(t=c[1],r=c[2],n=c[3],i=c[4]);let d=void 0===n?"vertical":n,u=(s=t,c0.Children.toArray(s).some(e=>(0,c0.isValidElement)(e)&&"function"==typeof e.type&&"checkbox-group"===e.type.fieldSlot))?_v.Root:_s.Root;return c[5]!==d?(a=(0,m2.cn)(_y({orientation:d})),c[5]=d,c[6]=a):a=c[6],c[7]!==u||c[8]!==t||c[9]!==d||c[10]!==r||c[11]!==a||c[12]!==i?(l=(0,eB.Y)(u,{...r,role:"group","data-testid":i,"data-slot":"field","data-orientation":d,className:a,children:t}),c[7]=u,c[8]=t,c[9]=d,c[10]=r,c[11]=a,c[12]=i,c[13]=l):l=c[13],c[14]!==l||c[15]!==i?(o=(0,eB.Y)(m3,{value:i,children:l}),c[14]=l,c[15]=i,c[16]=o):o=c[16],o},"Field");_b.displayName="Field";let _x=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(4),i=m5("content");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("group/field-content flex flex-1 flex-col gap-4 leading-snug"),n[0]=t):t=n[0],n[1]!==e||n[2]!==i?(r=(0,eB.Y)("div",{...e,"data-testid":i,"data-slot":"field-content",className:t}),n[1]=e,n[2]=i,n[3]=r):r=n[3],r},"FieldContent");_x.displayName="FieldContent";let _O=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(4),i=m5("description");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("text-text-secondary text-sm font-normal leading-normal group-has-[[data-orientation=horizontal]]/field:text-balance","nth-last-2:-mt-1 last:mt-0 [[data-variant=legend]+&]:mb-16"),n[0]=t):t=n[0],n[1]!==e||n[2]!==i?(r=(0,eB.Y)("p",{...e,"data-testid":i,"data-slot":"field-description",className:t}),n[1]=e,n[2]=i,n[3]=r):r=n[3],r},"FieldDescription");_O.displayName="FieldDescription";let _w=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(11);o[0]!==e?({children:t,...r}=e,o[0]=e,o[1]=t,o[2]=r):(t=o[1],r=o[2]);let s=m5("error");return o[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,m2.cn)("flex gap-4 text-text-danger"),i=(0,eB.Y)(lD,{size:"md",className:"self-start my-2"}),o[3]=n,o[4]=i):(n=o[3],i=o[4]),o[5]!==t?(a=(0,eB.Y)(bk.E,{size:"sm",color:"danger",children:t}),o[5]=t,o[6]=a):a=o[6],o[7]!==r||o[8]!==a||o[9]!==s?(l=(0,eB.FD)("div",{...r,"data-testid":s,role:"alert","data-slot":"field-error",className:n,children:[i,a]}),o[7]=r,o[8]=a,o[9]=s,o[10]=l):l=o[10],l},"FieldError");_w.displayName="FieldError";let _S=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(6);i[0]!==e?({...t}=e,i[0]=e,i[1]=t):t=i[1];let a=m5("group");return i[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,m2.cn)("group/field-group @container/field-group flex w-full flex-col gap-16 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4"),i[2]=r):r=i[2],i[3]!==t||i[4]!==a?(n=(0,eB.Y)("div",{...t,"data-testid":a,"data-slot":"field-group",className:r}),i[3]=t,i[4]=a,i[5]=n):n=i[5],n},"FieldGroup");_S.displayName="FieldGroup";let _E=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(4),i=m5("label");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("group/field-label flex w-fit gap-4 text-sm text-text-primary font-medium leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:rounded-8 has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4"),n[0]=t):t=n[0],n[1]!==e||n[2]!==i?(r=(0,eB.Y)(_s.Label,{...e,"data-testid":i,"data-slot":"field-label",className:t}),n[1]=e,n[2]=i,n[3]=r):r=n[3],r},"FieldLabel");_E.displayName="FieldLabel";let _k=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(8);a[0]!==e?({variant:r,...t}=e,a[0]=e,a[1]=t,a[2]=r):(t=a[1],r=a[2]);let l=void 0===r?"legend":r,o=m5("legend");return a[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,m2.cn)("font-medium text-text-primary","data-[variant=legend]:text-lg","data-[variant=label]:text-sm","[&+[data-slot=field-group]]:mt-16"),a[3]=n):n=a[3],a[4]!==t||a[5]!==o||a[6]!==l?(i=(0,eB.Y)("legend",{...t,"data-testid":o,"data-slot":"field-legend","data-variant":l,className:n}),a[4]=t,a[5]=o,a[6]=l,a[7]=i):i=a[7],i},"FieldLegend");_k.displayName="FieldLegend";let _P=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),n=m5("separator");return r[0]!==e||r[1]!==n?(t=(0,eB.Y)(Dy,{...e,"data-testid":n}),r[0]=e,r[1]=n,r[2]=t):t=r[2],t},"FieldSeparator");_P.displayName="FieldSeparator";let _D=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(9);a[0]!==e?({className:t,...r}=e,a[0]=e,a[1]=t,a[2]=r):(t=a[1],r=a[2]);let l=m5("set");return a[3]!==t?(n=(0,m2.cn)("flex flex-col gap-16","max-w-full min-w-0","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",t),a[3]=t,a[4]=n):n=a[4],a[5]!==r||a[6]!==n||a[7]!==l?(i=(0,eB.Y)("fieldset",{...r,"data-testid":l,"data-slot":"field-set",className:n}),a[5]=r,a[6]=n,a[7]=l,a[8]=i):i=a[8],i},"FieldSet");_D.displayName="FieldSet";let _A=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(4),i=m5("title");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("flex w-fit items-center gap-4 text-sm font-medium leading-snug group-data-[disabled=true]/field:opacity-50"),n[0]=t):t=n[0],n[1]!==e||n[2]!==i?(r=(0,eB.Y)("div",{...e,"data-testid":i,"data-slot":"field-label",className:t}),n[1]=e,n[2]=i,n[3]=r):r=n[3],r},"FieldTitle");_A.displayName="FieldTitle";var _T=(e,t)=>e.name===t.name&&e.size===t.size&&e.type===t.type,_M=e=>"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)||/^.*\.[\w]+$/.test(e),_L=e=>e.ids?.root??`file:${e.id}`,_I=e=>e.ids?.dropzone??`file:${e.id}:dropzone`,_N=e=>e.ids?.hiddenInput??`file:${e.id}:input`,_F=e=>e.ids?.trigger??`file:${e.id}:trigger`,_R=e=>e.ids?.label??`file:${e.id}:label`,_V=(e,t)=>e.ids?.item?.(t)??`file:${e.id}:item:${t}`,__=(e,t)=>e.ids?.itemName?.(t)??`file:${e.id}:item-name:${t}`,_Y=(e,t)=>e.ids?.itemSizeText?.(t)??`file:${e.id}:item-size:${t}`,_$=(e,t)=>e.ids?.itemPreview?.(t)??`file:${e.id}:item-preview:${t}`,_H=(e,t)=>e.ids?.itemDeleteTrigger?.(t)??`file:${e.id}:item-delete:${t}`,_z=e=>(0,hd.tW)(`${e.name}-${e.size}`),_Z=e=>e.getById(_L(e)),_Q=e=>e.getById(_N(e)),_B=e=>e.getById(_I(e)),_j=new Map("3g2_video/3gpp2[3gp,3gpp_video/3gpp[3mf_model/3mf[7z_application/x-7z-compressed[aac_audio/aac[ac_application/pkix-attr-cert[adp_audio/adpcm[adts_audio/aac[ai_application/postscript[aml_application/automationml-aml+xml[amlx_application/automationml-amlx+zip[amr_audio/amr[apk_application/vnd.android.package-archive[apng_image/apng[appcache,manifest_text/cache-manifest[appinstaller_application/appinstaller[appx_application/appx[appxbundle_application/appxbundle[asc_application/pgp-keys[atom_application/atom+xml[atomcat_application/atomcat+xml[atomdeleted_application/atomdeleted+xml[atomsvc_application/atomsvc+xml[au,snd_audio/basic[avi_video/x-msvideo[avci_image/avci[avcs_image/avcs[avif_image/avif[aw_application/applixware[bdoc_application/bdoc[bin,bpk,buffer,deb,deploy,dist,distz,dll,dmg,dms,dump,elc,exe,img,iso,lrf,mar,msi,msm,msp,pkg,so_application/octet-stream[bmp,dib_image/bmp[btf,btif_image/prs.btif[bz2_application/x-bzip2[c_text/x-c[ccxml_application/ccxml+xml[cdfx_application/cdfx+xml[cdmia_application/cdmi-capability[cdmic_application/cdmi-container[cdmid_application/cdmi-domain[cdmio_application/cdmi-object[cdmiq_application/cdmi-queue[cer_application/pkix-cert[cgm_image/cgm[cjs_application/node[class_application/java-vm[coffee,litcoffee_text/coffeescript[conf,def,in,ini,list,log,text,txt_text/plain[cpp,cxx,cc_text/x-c++src[cpl_application/cpl+xml[cpt_application/mac-compactpro[crl_application/pkix-crl[css_text/css[csv_text/csv[cu_application/cu-seeme[cwl_application/cwl[cww_application/prs.cww[davmount_application/davmount+xml[dbk_application/docbook+xml[doc_application/msword[docx_application/vnd.openxmlformats-officedocument.wordprocessingml.document[dsc_text/prs.lines.tag[dssc_application/dssc+der[dtd_application/xml-dtd[dwd_application/atsc-dwd+xml[ear,jar,war_application/java-archive[ecma_application/ecmascript[emf_image/emf[eml,mime_message/rfc822[emma_application/emma+xml[emotionml_application/emotionml+xml[eot_application/vnd.ms-fontobject[eps,ps_application/postscript[epub_application/epub+zip[exi_application/exi[exp_application/express[exr_image/aces[ez_application/andrew-inset[fdf_application/fdf[fdt_application/fdt+xml[fits_image/fits[flac_audio/flac[flv_video/x-flv[g3_image/g3fax[geojson_application/geo+json[gif_image/gif[glb_model/gltf-binary[gltf_model/gltf+json[gml_application/gml+xml[go_text/x-go[gpx_application/gpx+xml[gz_application/gzip[h_text/x-h[h261_video/h261[h263_video/h263[h264_video/h264[heic_image/heic[heics_image/heic-sequence[heif_image/heif[heifs_image/heif-sequence[htm,html,shtml_text/html[ico_image/x-icon[icns_image/x-icns[ics,ifb_text/calendar[iges,igs_model/iges[ink,inkml_application/inkml+xml[ipa_application/octet-stream[java_text/x-java-source[jp2,jpg2_image/jp2[jpeg,jpe,jpg_image/jpeg[jpf,jpx_image/jpx[jpm,jpgm_image/jpm[jpgv_video/jpeg[jph_image/jph[js,mjs_text/javascript[json_application/json[json5_application/json5[jsonld_application/ld+json[jsx_text/jsx[jxl_image/jxl[jxr_image/jxr[ktx_image/ktx[ktx2_image/ktx2[less_text/less[m1v,m2v,mpe,mpeg,mpg_video/mpeg[m4a_audio/mp4[m4v_video/x-m4v[md,markdown_text/markdown[mid,midi,kar,rmi_audio/midi[mkv_video/x-matroska[mp2,mp2a,mp3,mpga,m3a,m2a_audio/mpeg[mp4,mp4v,mpg4_video/mp4[mp4a_audio/mp4[mp4s,m4p_application/mp4[odp_application/vnd.oasis.opendocument.presentation[oda_application/oda[ods_application/vnd.oasis.opendocument.spreadsheet[odt_application/vnd.oasis.opendocument.text[oga,ogg,opus,spx_audio/ogg[ogv_video/ogg[ogx_application/ogg[otf_font/otf[p12,pfx_application/x-pkcs12[pdf_application/pdf[pem_application/x-pem-file[php_text/x-php[png_image/png[ppt_application/vnd.ms-powerpoint[pptx_application/vnd.openxmlformats-officedocument.presentationml.presentation[pskcxml_application/pskc+xml[psd_image/vnd.adobe.photoshop[py_text/x-python[qt,mov_video/quicktime[rar_application/vnd.rar[rdf_application/rdf+xml[rtf_text/rtf[sass_text/x-sass[scss_text/x-scss[sgm,sgml_text/sgml[sh_application/x-sh[svg,svgz_image/svg+xml[swf_application/x-shockwave-flash[tar_application/x-tar[tif,tiff_image/tiff[toml_application/toml[ts_video/mp2t[tsx_text/tsx[tsv_text/tab-separated-values[ttc_font/collection[ttf_font/ttf[vtt_text/vtt[wasm_application/wasm[wav_audio/wav[weba_audio/webm[webm_video/webm[webmanifest_application/manifest+json[webp_image/webp[wma_audio/x-ms-wma[wmv_video/x-ms-wmv[woff_font/woff[woff2_font/woff2[xls_application/vnd.ms-excel[xlsx_application/vnd.openxmlformats-officedocument.spreadsheetml.sheet[xml_application/xml[xz_application/x-xz[yaml,yml_text/yaml[zip_application/zip".split("[").flatMap(e=>{let[t,r]=e.split("_");return t.split(",").map(e=>[e,r])}));function _G(e,t){let r="application/x-moz-file"===e.type||function(e,t){if(e&&t){let r,n=Array.isArray(t)?t:"string"==typeof t?t.split(","):[];if(0===n.length)return!0;let i=e.name||"",a=(e.type||(r=i.split(".").pop())&&_j.get(r)||"").toLowerCase(),l=a.replace(/\/.*$/,"");return n.some(e=>{let t=e.trim().toLowerCase();return"."===t.charAt(0)?i.toLowerCase().endsWith(t):t.endsWith("/*")?l===t.replace(/\/.*$/,""):a===t})}return!0}(e,t);return[r,r?null:"FILE_INVALID_TYPE"]}function _U(e){let t=fP(e);return e.dataTransfer?e.dataTransfer.types.some(e=>"Files"===e||"application/x-moz-file"===e):!!t&&"files"in t}function _W(e,t,r=[],n=[]){let{prop:i,computed:a}=e,l=[],o=[],s={acceptedFiles:r,rejectedFiles:n};return t.forEach(e=>{let[t,n]=_G(e,a("acceptAttr")),[c,d]=function(e,t,r){if(null!=e.size)if(null!=t&&null!=r){if(e.size>r)return[!1,"FILE_TOO_LARGE"];if(e.size<t)return[!1,"FILE_TOO_SMALL"]}else{if(null!=t&&e.size<t)return[!1,"FILE_TOO_SMALL"];if(null!=r&&e.size>r)return[!1,"FILE_TOO_LARGE"]}return[!0,null]}(e,i("minFileSize"),i("maxFileSize")),u=r.some(t=>_T(t,e))||l.some(t=>_T(t,e)),h=i("validate")?.(e,s),p=!h||0===h.length;if(t&&c&&p&&!u)l.push(e);else{let t=[n,d];u&&t.push("FILE_EXISTS"),p||t.push(...h??[]),o.push({file:e,errors:t.filter(Boolean)})}}),!function(e,t,r){let{prop:n,computed:i}=e;return(!!i("multiple")||!(t>1))&&(!i("multiple")&&t+r.length===2||!(t+r.length>n("maxFiles")))}(e,l.length,r)&&(l.forEach(e=>{o.push({file:e,errors:["TOO_MANY_FILES"]})}),l.splice(0)),{acceptedFiles:l,rejectedFiles:o}}var _q=uE({props:({props:e})=>({minFileSize:0,maxFileSize:1/0,maxFiles:1,allowDrop:!0,preventDocumentDrop:!0,defaultAcceptedFiles:[],...e}),initialState:()=>"idle",context:({prop:e,bindable:t,getContext:r})=>({acceptedFiles:t(()=>({defaultValue:e("defaultAcceptedFiles"),value:e("acceptedFiles"),isEqual:(e,t)=>e.length===t?.length&&e.every((e,r)=>_T(e,t[r])),hash:e=>e.map(e=>`${e.name}-${e.size}`).join(","),onChange(t){let n=r();e("onFileAccept")?.({files:t}),e("onFileChange")?.({acceptedFiles:t,rejectedFiles:n.get("rejectedFiles")})}})),rejectedFiles:t(()=>({defaultValue:[],isEqual:(e,t)=>e.length===t?.length&&e.every((e,r)=>_T(e.file,t[r].file)),onChange(t){let n=r();e("onFileReject")?.({files:t}),e("onFileChange")?.({acceptedFiles:n.get("acceptedFiles"),rejectedFiles:t})}})),transforming:t(()=>({defaultValue:!1}))}),computed:{acceptAttr:({prop:e})=>(function(e){if(null!=e)return"string"==typeof e?e:Array.isArray(e)?e.filter(_M).join(","):Object.entries(e).reduce((e,[t,r])=>[...e,t,...r],[]).filter(_M).join(",")})(e("accept")),multiple:({prop:e})=>e("maxFiles")>1},watch({track:e,context:t,action:r}){e([()=>t.hash("acceptedFiles")],()=>{r(["syncInputElement"])})},on:{"FILES.SET":{actions:["setFiles"]},"FILE.SELECT":{actions:["setEventFiles"]},"FILE.DELETE":{actions:["removeFile"]},"FILES.CLEAR":{actions:["clearFiles"]},"REJECTED_FILES.CLEAR":{actions:["clearRejectedFiles"]}},effects:["preventDocumentDrop"],states:{idle:{on:{OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.FOCUS":{target:"focused"},"DROPZONE.DRAG_OVER":{target:"dragging"}}},focused:{on:{"DROPZONE.BLUR":{target:"idle"},OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.DRAG_OVER":{target:"dragging"}}},dragging:{on:{"DROPZONE.DROP":{target:"idle",actions:["setEventFiles"]},"DROPZONE.DRAG_LEAVE":{target:"idle"}}}},implementations:{effects:{preventDocumentDrop({prop:e,scope:t}){if(!e("preventDocumentDrop")||!e("allowDrop")||e("disabled"))return;let r=t.getDoc();return(0,hd.OK)(fH(r,"dragover",e=>{e?.preventDefault()},!1),fH(r,"drop",e=>{u7(_Z(t),fP(e))||e.preventDefault()},!1))}},actions:{syncInputElement({scope:e,context:t}){queueMicrotask(()=>{let r=_Q(e);if(!r)return;var n=t.get("acceptedFiles");let i=u6(r);try{if("DataTransfer"in i){let e=new i.DataTransfer;n.forEach(t=>{e.items.add(t)}),r.files=e.files}}catch{}let a=e.getWin();r.dispatchEvent(new a.Event("change",{bubbles:!0}))})},openFilePicker({scope:e}){fd(()=>{eN.getHiddenInputEl(e)?.click()})},setFiles(e){let{computed:t,context:r,event:n}=e,{acceptedFiles:i,rejectedFiles:a}=_W(e,n.files);r.set("acceptedFiles",t("multiple")?i:i.length>0?[i[0]]:[]),r.set("rejectedFiles",a)},setEventFiles(e){let{computed:t,context:r,event:n,prop:i}=e,a=r.get("acceptedFiles"),l=r.get("rejectedFiles"),{acceptedFiles:o,rejectedFiles:s}=_W(e,n.files,a,l),c=e=>{if(t("multiple")){r.set("acceptedFiles",t=>[...t,...e]),r.set("rejectedFiles",s);return}if(e.length){r.set("acceptedFiles",[e[0]]),r.set("rejectedFiles",s);return}s.length&&(r.set("acceptedFiles",r.get("acceptedFiles")),r.set("rejectedFiles",s))},d=i("transformFiles");d?(r.set("transforming",!0),d(o).then(c).catch(e=>{ud(`[zag-js/file-upload] error transforming files
74
74
  ${e}`)}).finally(()=>{r.set("transforming",!1)})):c(o)},removeFile({context:e,event:t}){if("rejected"===t.itemType){let r=e.get("rejectedFiles").filter(e=>!_T(e.file,t.file));e.set("rejectedFiles",r)}else{let r=e.get("acceptedFiles").filter(e=>!_T(e,t.file));e.set("acceptedFiles",r)}},clearRejectedFiles({context:e}){e.set("rejectedFiles",[])},clearFiles({context:e}){e.set("acceptedFiles",[]),e.set("rejectedFiles",[])}}}}),_X=(e,t)=>(Object.defineProperty(e,"relativePath",{value:t?`${t}/${e.name}`:e.name}),e),_K=(e,t="")=>new Promise(r=>{let n=[],i=()=>{e.readEntries(e=>{if(0===e.length)return void r(Promise.all(n).then(e=>e.flat()));let a=e.map(e=>e?e.isDirectory?_K(e.createReader(),`${t}${e.name}`):e.isFile?new Promise(r=>{e.file(e=>{r(_X(e,t))})}):void 0:null).filter(e=>e);n.push(Promise.all(a)),i()})};i()}),_J=(M=Intl.NumberFormat,v=new Map,function(e,t){let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(v.has(r))return v.get(r);let n=new M(e,t);return v.set(r,n),n}),_1=["","kilo","mega","giga","tera"],_2=["","kilo","mega","giga","tera","peta"],_0=uZ("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger").build(),_3={dropzone:"dropzone",itemPreview:e=>`preview of ${e.name}`,deleteFile:e=>`delete file ${e.name}`},_5="accepted";function _4(e,t){if(!e||"file"===e.getAttribute("type"))return!1;let r=e.closest("button, a[href], input:not([type='file']), select, textarea, [tabindex], [contenteditable]");return r!=t&&u7(t,r)}var _7=e=>{let t=(0,c0.useId)(),{getRootNode:r}=uo(),{dir:n,locale:i}=uc(),a=(0,NM.f)();return function(e,t){let{state:r,send:n,prop:i,computed:a,scope:l,context:o}=e,s=!!i("disabled"),c=!!i("readOnly"),d=!!i("required"),u=i("allowDrop"),h=uz(_3,i("translations")),p=r.matches("dragging"),f=r.matches("focused")&&!s,m=o.get("acceptedFiles"),g=i("maxFiles");return{dragging:p,focused:f,disabled:s,readOnly:c,transforming:o.get("transforming"),maxFilesReached:m.length>=g,remainingFiles:Math.max(0,g-m.length),openFilePicker(){s||c||n({type:"OPEN"})},deleteFile(e,t=_5){s||c||n({type:"FILE.DELETE",file:e,itemType:t})},acceptedFiles:m,rejectedFiles:o.get("rejectedFiles"),setFiles(e){s||c||n({type:"FILES.SET",files:e,count:e.length})},clearRejectedFiles(){s||c||n({type:"REJECTED_FILES.CLEAR"})},clearFiles(){s||c||n({type:"FILES.CLEAR"})},getFileSize:e=>((e,t="en-US",r={})=>{if(Number.isNaN(e))return"";if(0===e)return"0 B";let{unitSystem:n="decimal",precision:i=3,unit:a="byte",unitDisplay:l="short"}=r,o="binary"===n?1024:1e3,s="bit"===a?_1:_2,c=Math.abs(e),d=0;for(;c>=o&&d<s.length-1;)c/=o,d++;let u=parseFloat(c.toPrecision(i));return function(e,t,r={}){return _J(t,r).format(e)}(e<0?-u:u,t,{style:"unit",unit:s[d]+a,unitDisplay:l})})(e.size,i("locale")),createFileUrl(e,t){let r=l.getWin(),n=r.URL.createObjectURL(e);return t(n),()=>r.URL.revokeObjectURL(n)},setClipboardFiles(e){if(s||c)return!1;let t=Array.from(e?.items??[]).reduce((e,t)=>{if("file"!==t.kind)return e;let r=t.getAsFile();return r?[...e,r]:e},[]);return!!t.length&&(n({type:"FILE.SELECT",files:t}),!0)},getRootProps:()=>t.element({..._0.root.attrs,dir:i("dir"),id:_L(l),"data-disabled":uF(s),"data-readonly":uF(c),"data-dragging":uF(p)}),getDropzoneProps:(e={})=>t.element({..._0.dropzone.attrs,dir:i("dir"),id:_I(l),tabIndex:s||c||e.disableClick?void 0:0,role:e.disableClick?"application":"button","aria-label":h.dropzone,"aria-disabled":s||c||void 0,"data-invalid":uF(i("invalid")),"data-disabled":uF(s),"data-readonly":uF(c),"data-dragging":uF(p),onKeyDown(t){if(s||c||t.defaultPrevented)return;let r=fP(t);!u7(t.currentTarget,r)||_4(r,t.currentTarget)||e.disableClick||("Enter"===t.key||" "===t.key)&&n({type:"DROPZONE.CLICK",src:"keydown"})},onClick(t){if(s||c||t.defaultPrevented||e.disableClick)return;let r=fP(t);!u7(t.currentTarget,r)||_4(r,t.currentTarget)||("label"===t.currentTarget.localName&&t.preventDefault(),n({type:"DROPZONE.CLICK"}))},onDragOver(e){if(!s&&!c&&u){e.preventDefault(),e.stopPropagation();try{e.dataTransfer.dropEffect="copy"}catch{}_U(e)&&n({type:"DROPZONE.DRAG_OVER",count:e.dataTransfer.items.length})}},onDragLeave(e){s||c||!u||u7(e.currentTarget,e.relatedTarget)||n({type:"DROPZONE.DRAG_LEAVE"})},onDrop(e){if(!s&&!c&&(u&&(e.preventDefault(),e.stopPropagation()),_U(e))){let t,r;(t=e.dataTransfer.items,r=i("directory"),Promise.all(Array.from(t).filter(e=>"file"===e.kind).map(e=>{let t="function"==typeof e.getAsEntry?e.getAsEntry():"function"==typeof e.webkitGetAsEntry?e.webkitGetAsEntry():null;if(!t)return null;if(t.isDirectory&&r)return _K(t.createReader(),`${t.name}`);if(t.isFile&&"function"==typeof e.getAsFile){let t=e.getAsFile();return Promise.resolve(t?_X(t,""):null)}if(t.isFile)return new Promise(e=>{t.file(t=>{e(_X(t,""))})})}).filter(e=>e))).then(e=>{n({type:"DROPZONE.DROP",files:function e(t){return t.reduce((t,r)=>Array.isArray(r)?t.concat(e(r)):t.concat(r),[])}(e)})})}},onFocus(){s||c||n({type:"DROPZONE.FOCUS"})},onBlur(){s||c||n({type:"DROPZONE.BLUR"})}}),getTriggerProps:()=>t.button({..._0.trigger.attrs,dir:i("dir"),id:_F(l),disabled:s||c,"data-disabled":uF(s),"data-readonly":uF(c),"data-invalid":uF(i("invalid")),type:"button",onClick(e){s||c||(u7(_B(l),e.currentTarget)&&e.stopPropagation(),n({type:"OPEN"}))}}),getHiddenInputProps:()=>t.input({id:_N(l),tabIndex:-1,disabled:s||c,type:"file",required:i("required"),capture:i("capture"),name:i("name"),accept:a("acceptAttr"),webkitdirectory:i("directory")?"":void 0,multiple:a("multiple")||i("maxFiles")>1,"aria-hidden":!0,onClick(e){e.stopPropagation(),e.currentTarget.value=""},onInput(e){if(s||c)return;let{files:t}=e.currentTarget;n({type:"FILE.SELECT",files:t?Array.from(t):[]})},style:NQ}),getItemGroupProps(e={}){let{type:r=_5}=e;return t.element({..._0.itemGroup.attrs,dir:i("dir"),"data-disabled":uF(s),"data-type":r})},getItemProps(e){let{file:r,type:n=_5}=e;return t.element({..._0.item.attrs,dir:i("dir"),id:_V(l,_z(r)),"data-disabled":uF(s),"data-type":n})},getItemNameProps(e){let{file:r,type:n=_5}=e;return t.element({..._0.itemName.attrs,dir:i("dir"),id:__(l,_z(r)),"data-disabled":uF(s),"data-type":n})},getItemSizeTextProps(e){let{file:r,type:n=_5}=e;return t.element({..._0.itemSizeText.attrs,dir:i("dir"),id:_Y(l,_z(r)),"data-disabled":uF(s),"data-type":n})},getItemPreviewProps(e){let{file:r,type:n=_5}=e;return t.element({..._0.itemPreview.attrs,dir:i("dir"),id:_$(l,_z(r)),"data-disabled":uF(s),"data-type":n})},getItemPreviewImageProps(e){let{file:r,url:n,type:i=_5}=e;if(!r.type.startsWith("image/"))throw Error("Preview Image is only supported for image files");return t.img({..._0.itemPreviewImage.attrs,alt:h.itemPreview?.(r),src:n,"data-disabled":uF(s),"data-type":i})},getItemDeleteTriggerProps(e){let{file:r,type:a=_5}=e;return t.button({..._0.itemDeleteTrigger.attrs,dir:i("dir"),id:_H(l,_z(r)),type:"button",disabled:s||c,"data-disabled":uF(s),"data-readonly":uF(c),"data-type":a,"aria-label":h.deleteFile?.(r),onClick(){s||c||n({type:"FILE.DELETE",file:r,itemType:a})}})},getLabelProps:()=>t.label({..._0.label.attrs,dir:i("dir"),id:_R(l),htmlFor:_N(l),"data-disabled":uF(s),"data-invalid":uF(i("invalid")),"data-required":uF(d)}),getClearTriggerProps:()=>t.button({..._0.clearTrigger.attrs,dir:i("dir"),type:"button",disabled:s||c,hidden:0===m.length,"data-disabled":uF(s),"data-readonly":uF(c),onClick(e){e.defaultPrevented||s||c||n({type:"FILES.CLEAR"})}})}}(hk(_q,{id:t,ids:{label:a?.ids.label,hiddenInput:a?.ids.control},dir:n,disabled:a?.disabled,locale:i,required:a?.required,invalid:a?.invalid,getRootNode:r,...e}),hA)},[_9,_6]=(0,ua.q)({name:"FileUploadContext",hookName:"useFileUploadContext",providerName:"<FileUploadProvider />"}),_8=(0,c0.forwardRef)((e,t)=>{let r=_6(),n=(0,p8.v)(r.getClearTriggerProps(),e);return(0,eB.Y)(fr.button,{...n,ref:t})});_8.displayName="FileUploadClearTrigger";var Ye=e=>e.children(_6()),Yt=p1(),Yr=(0,c0.forwardRef)((e,t)=>{let[r,n]=Yt(e,["disableClick"]),i=_6(),a=(0,p8.v)(i.getDropzoneProps(r),n);return(0,eB.Y)(fr.div,{...a,ref:t})});Yr.displayName="FileUploadDropzone";var Yn=(0,c0.forwardRef)((e,t)=>{let r=_6(),n=(0,p8.v)(r.getHiddenInputProps(),e),i=(0,NM.f)();return(0,eB.Y)(fr.input,{"aria-describedby":i?.ariaDescribedby,...n,ref:t})});Yn.displayName="FileUploadHiddenInput";var[Yi,Ya]=(0,ua.q)({name:"FileUploadItemGroupPropsContext",hookName:"useFileUploadItemGroupPropsContext",providerName:"<FileUploadItemGroupPropsProvider />"}),[Yl,Yo]=(0,ua.q)({name:"FileUploadItemPropsContext",hookName:"useFileUploadItemPropsContext",providerName:"<FileUploadItemPropsProvider />"}),Ys=p1(),Yc=(0,c0.forwardRef)((e,t)=>{let[r,n]=Ys(e,["file"]),i=_6(),a=Ya(),l={...r,type:a.type},o=(0,p8.v)(i.getItemProps(l),n);return(0,eB.Y)(Yl,{value:l,children:(0,eB.Y)(fr.li,{...o,ref:t})})});Yc.displayName="FileUploadItem";var Yd=(0,c0.forwardRef)((e,t)=>{let r=_6(),n=Yo(),i=(0,p8.v)(r.getItemDeleteTriggerProps(n),e);return(0,eB.Y)(fr.button,{...i,ref:t})});Yd.displayName="FileUploadItemDeleteTrigger";var Yu=p1(),Yh=(0,c0.forwardRef)((e,t)=>{let[r,n]=Yu(e,["type"]),i=_6(),a=(0,p8.v)(i.getItemGroupProps(r),n);return(0,eB.Y)(Yi,{value:r,children:(0,eB.Y)(fr.ul,{...a,ref:t})})});Yh.displayName="FileUploadItemGroup";var Yp=(0,c0.forwardRef)((e,t)=>{let{children:r,...n}=e,i=_6(),a=Yo(),l=(0,p8.v)(i.getItemNameProps(a),n);return(0,eB.Y)(fr.div,{...l,ref:t,children:r||a.file.name})});Yp.displayName="FileUploadItemName";var Yf=(0,c0.forwardRef)((e,t)=>{let r=_6(),n=Yo(),i=(0,p8.v)(r.getItemPreviewProps(n),e);return n.file.type.match(e.type??".*")?(0,eB.Y)(fr.div,{...i,ref:t}):null});Yf.displayName="FileUploadItemPreview";var Ym=(0,c0.forwardRef)((e,t)=>{let[r,n]=(0,c0.useState)(""),i=_6(),a=Yo(),l=(0,p8.v)(i.getItemPreviewImageProps({...a,url:r}),e);return((0,c0.useEffect)(()=>i.createFileUrl(a.file,e=>n(e)),[a,i]),r)?(0,eB.Y)(fr.img,{...l,ref:t}):null});Ym.displayName="FileUploadItemPreviewImage";var Yg=(0,c0.forwardRef)((e,t)=>{let{children:r,...n}=e,i=_6(),a=Yo(),l=(0,p8.v)(i.getItemSizeTextProps(a),n);return(0,eB.Y)(fr.div,{...l,ref:t,children:r||i.getFileSize(a.file)})});Yg.displayName="FileUploadItemSizeText";var YC=(0,c0.forwardRef)((e,t)=>{let r=_6(),n=(0,p8.v)(r.getLabelProps(),e);return(0,eB.Y)(fr.label,{...n,ref:t})});YC.displayName="FileUploadLabel";var Yv=p1(),Yy=(0,c0.forwardRef)((e,t)=>{let[r,n]=Yv(e,["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","directory","disabled","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","readOnly","required","translations","transformFiles","validate"]),i=_7(r),a=(0,p8.v)(i.getRootProps(),n);return(0,eB.Y)(_9,{value:i,children:(0,eB.Y)(fr.div,{...a,ref:t})})});Yy.displayName="FileUploadRoot";var Yb=p1(),Yx=(0,c0.forwardRef)((e,t)=>{let[{value:r},n]=Yb(e,["value"]),i=(0,p8.v)(r.getRootProps(),n);return(0,eB.Y)(_9,{value:r,children:(0,eB.Y)(fr.div,{...i,ref:t})})});Yx.displayName="FileUploadRootProvider";var YO=(0,c0.forwardRef)((e,t)=>{let r=_6(),n=(0,p8.v)(r.getTriggerProps(),e);return(0,eB.Y)(fr.button,{...n,ref:t})});YO.displayName="FileUploadTrigger";var Yw=pq({ClearTrigger:()=>_8,Context:()=>Ye,Dropzone:()=>Yr,HiddenInput:()=>Yn,Item:()=>Yc,ItemDeleteTrigger:()=>Yd,ItemGroup:()=>Yh,ItemName:()=>Yp,ItemPreview:()=>Yf,ItemPreviewImage:()=>Ym,ItemSizeText:()=>Yg,Label:()=>YC,Root:()=>Yy,RootProvider:()=>Yx,Trigger:()=>YO});let YS=(0,m9.F)("flex w-full min-w-0 flex-col gap-8 [&>[data-slot=file-upload-trigger]]:self-start"),YE=(0,m9.F)((0,m2.cn)("flex h-96 w-full min-w-300 cursor-pointer flex-col items-center justify-center gap-8 px-16 text-center","rounded-12 border-1 border-dashed border-border-primary bg-states-primary-default-alt","text-sm text-text-primary transition-colors outline-none","focus-visible:ring-3 focus-visible:ring-focus-primary","not-data-disabled:hover:border-border-brand not-data-disabled:hover:bg-states-brand-hover not-data-disabled:hover:text-text-brand","data-dragging:border-border-brand data-dragging:bg-states-brand-hover data-dragging:text-text-brand","data-invalid:border-border-strong-danger","data-disabled:cursor-not-allowed data-disabled:text-text-disable-primary")),Yk=(0,m9.F)("group/item flex w-full min-w-0 items-start gap-8 rounded-12 bg-bg-primary py-8 pr-6 pl-10"),YP=(0,m2.cn)("mt-2 flex shrink-0 text-icon-secondary group-data-loading/item:text-icon-primary-disable"),YD=(0,m2.cn)("block truncate text-sm text-text-primary group-data-loading/item:text-text-disable-primary"),YA=(0,m2.cn)("block truncate text-xs text-text-secondary"),YT=(0,m2.cn)("-my-2 flex shrink-0 items-center gap-4"),YM=(0,m2.cn)("flex flex-col gap-4 text-text-danger"),YL=(0,c0.createContext)(null),YI=YL.Provider,YN=()=>(0,c0.useContext)(YL),YF=e=>{let t=(0,c0.useContext)(YL);if(!t)throw Error(`${e} must be rendered inside <FileUpload>.`);return t},YR=e=>void 0===e?[]:(Array.isArray(e)?e:[e]).flatMap(e=>e.split(",")).map(e=>e.trim()).filter(Boolean),YV=(e,t)=>e.name===t.name&&e.size===t.size&&e.type===t.type,Y_=(0,eQ.G)(({value:e,defaultValue:t,onValueChange:r,onFileReject:n,accept:i,maxFiles:a=1,maxFileSize:l,minFileSize:o,validate:s,name:c,required:d,disabled:u,readOnly:h,error:p=!1,allowDrop:f=!0,className:m,children:g,ref:C,onDragOver:v,onDrop:y,"data-testid":b,...x})=>{let O,w=(0,NM.f)(),S=m5(),E=b??S,k=u??w?.disabled??!1,P=h??w?.readOnly??!1,D=d??w?.required??!1,A=p||!!w?.invalid,T=a<=1,[M,L]=(0,c0.useState)(0),I=(0,c0.useCallback)(()=>(L(e=>e+1),()=>L(e=>e-1)),[]),N=M>0,[F,R]=(0,c0.useState)(t?.length??0),V=!T&&(e?.length??F)>=a,[_,Y]=(0,c0.useState)([]),$=(O=YR(i)).length?O.join(","):void 0,H=(0,c0.useMemo)(()=>YR(i),[i]),z=(0,c0.useCallback)(e=>e.map(e=>({file:e.file,errors:T?e.errors.filter(e=>"FILE_EXISTS"!==e):e.errors})).filter(e=>e.errors.length>0),[T]),Z=(0,c0.useCallback)(e=>{Y([]),R(e.files.length),r?.(e.files)},[r]),Q=(0,c0.useRef)(null),B=(0,c0.useRef)(null),j=(0,c0.useCallback)(e=>{Q.current&&((e,t)=>{let r=e.ownerDocument.defaultView;if(r&&"DataTransfer"in r)try{let n=new r.DataTransfer;for(let e of t)n.items.add(e);e.files=n.files}catch{}})(Q.current,e)},[]),G=(0,c0.useCallback)(e=>{let t=B.current;if(!t)return;let r=t.acceptedFiles,n=r.length===e.length&&r.every((t,r)=>YV(t,e[r]));t.setFiles(e),n&&(j(e),Z({files:e}))},[j,Z]),U=_7({name:c,accept:$,maxFiles:a,maxFileSize:l,minFileSize:o,validate:s?e=>s(e):void 0,required:D,disabled:k,readOnly:P,invalid:A,allowDrop:f&&!N&&!V,preventDocumentDrop:!1,acceptedFiles:e,defaultAcceptedFiles:t,onFileAccept:Z,onFileReject:(0,c0.useCallback)(e=>{let[t]=e.files,r=B.current?.acceptedFiles[0];if(T&&1===e.files.length&&t&&r&&1===t.errors.length&&"FILE_EXISTS"===t.errors[0]&&t.file.lastModified!==r.lastModified)return void queueMicrotask(()=>G([t.file]));let i=z(e.files);i.length&&n?.(i)},[T,z,n,G])});B.current=U;let W=(0,c0.useRef)(U.acceptedFiles);(0,c0.useEffect)(()=>{W.current.length&&j(W.current)},[j]);let q=(0,c0.useCallback)(e=>{Y(e),e.length&&n?.(e)},[n]),X=(0,c0.useCallback)(()=>{U.clearRejectedFiles(),Y([])},[U]),K=f&&!k;(0,c0.useEffect)(()=>{if(!K)return;let e=e=>e.preventDefault();return document.addEventListener("dragover",e),document.addEventListener("drop",e),()=>{document.removeEventListener("dragover",e),document.removeEventListener("drop",e)}},[K]);let J=k||N||!T&&U.maxFilesReached,ee=(0,c0.useId)(),et=(0,c0.useMemo)(()=>[...z(U.rejectedFiles),..._],[z,U.rejectedFiles,_]),er=(0,c0.useMemo)(()=>({api:U,single:T,disabled:k,readOnly:P,invalid:A,locked:N,pickerHidden:P,pickerBlocked:J,accept:$,limits:{acceptList:H,maxFiles:a,maxFileSize:l,minFileSize:o},validate:s,rejections:et,reportRejections:q,clearRejections:X,commitFiles:G,registerLoading:I,errorId:ee}),[U,T,k,P,A,N,J,$,H,a,l,o,s,et,q,X,G,I,ee]);return(0,eB.FD)(Yw.RootProvider,{...x,value:U,ref:C,onDragOver:e=>{if(v?.(e),!e.defaultPrevented){e.preventDefault();try{e.dataTransfer.dropEffect="none"}catch{}}},onDrop:e=>{y?.(e),e.preventDefault()},"data-slot":"file-upload","data-testid":b,className:(0,m2.cn)(YS(),m),children:[(0,eB.Y)(YI,{value:er,children:(0,eB.Y)(m3,{value:E,children:g})}),(0,eB.Y)(Yw.HiddenInput,{ref:Q,onClick:e=>{J&&e.preventDefault()},"data-slot":"file-upload-hidden-input","data-testid":E?`${E}--hidden-input`:void 0})]})},"FileUpload");Y_.displayName="FileUpload";let YY=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f=(0,ej.c)(36);f[0]!==e?({icon:i,children:t,className:r,ref:l,"data-testid":o,"aria-describedby":n,...a}=e,f[0]=e,f[1]=t,f[2]=r,f[3]=n,f[4]=i,f[5]=a,f[6]=l,f[7]=o):(t=f[1],r=f[2],n=f[3],i=f[4],a=f[5],l=f[6],o=f[7]);let m=YF("FileUploadDropzone"),g=(0,NM.f)(),C=m5("dropzone",o),v=(0,c0.useId)();if(m.pickerHidden)return null;let y=m.pickerBlocked,b=m.rejections.length>0,x=void 0!==a["aria-label"]||void 0!==a["aria-labelledby"];f[8]!==g?.ids||f[9]!==x||f[10]!==v?(s=x?void 0:[g?.ids.label,v].filter(Boolean).join(" "),f[8]=g?.ids,f[9]=x,f[10]=v,f[11]=s):s=f[11];let O=s;f[12]!==m.errorId||f[13]!==n||f[14]!==b?(c=[n,b?m.errorId:void 0].filter(Boolean).join(" ")||void 0,f[12]=m.errorId,f[13]=n,f[14]=b,f[15]=c):c=f[15];let w=c,S=y||void 0,E=y?"":void 0,k=m.invalid||b?"":void 0;f[16]!==r?(d=(0,m2.cn)(YE(),r),f[16]=r,f[17]=d):d=f[17],f[18]!==i?(u=i??(0,eB.Y)(oK,{size:"md"}),f[18]=i,f[19]=u):u=f[19];let P=t??"Drag and drop files or click to select";return f[20]!==P||f[21]!==v?(h=(0,eB.Y)("span",{id:v,children:P}),f[20]=P,f[21]=v,f[22]=h):h=f[22],f[23]!==y||f[24]!==w||f[25]!==O||f[26]!==a||f[27]!==l||f[28]!==S||f[29]!==E||f[30]!==k||f[31]!==d||f[32]!==u||f[33]!==h||f[34]!==C?(p=(0,eB.FD)(Yw.Dropzone,{"aria-labelledby":O,...a,"aria-describedby":w,ref:l,disableClick:y,role:"button","aria-disabled":S,"data-disabled":E,"data-invalid":k,"data-slot":"file-upload-dropzone","data-testid":C,className:d,children:[u,h]}),f[23]=y,f[24]=w,f[25]=O,f[26]=a,f[27]=l,f[28]=S,f[29]=E,f[30]=k,f[31]=d,f[32]=u,f[33]=h,f[34]=C,f[35]=p):p=f[35],p},"FileUploadDropzone");YY.displayName="FileUploadDropzone";let Y$=["B","KB","MB","GB","TB"],YH=e=>{let t=e,r=0;for(;t>=1024&&r<Y$.length-1;)t/=1024,r+=1;let n=0===r?t:Math.round(10*t)/10;return n>=1024&&r<Y$.length-1&&(n=Math.round(n/1024*10)/10,r+=1),`${n} ${Y$[r]}`},Yz=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(22);c[0]!==e?({children:t,className:r,ref:i,"data-testid":a,...n}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=i,c[5]=a):(t=c[1],r=c[2],n=c[3],i=c[4],a=c[5]);let d=YF("FileUploadError"),u=m5("rejections",a);if(0===d.rejections.length)return null;let h=d.errorId;if(c[6]!==r?(l=(0,m2.cn)(YM,r),c[6]=r,c[7]=l):l=c[7],c[8]!==t||c[9]!==d.limits||c[10]!==d.rejections){let e;c[12]!==t||c[13]!==d.limits?(e=(e,r)=>e.errors.map(n=>{let i,a,l;return(0,eB.FD)("div",{className:"flex gap-4",children:[(0,eB.Y)(lD,{size:"md",className:"my-2 shrink-0 self-start"}),(0,eB.Y)(bk.E,{size:"sm",color:"danger",children:t?t(e,n):(i=e.file.name,a=d.limits,l=e.file.size,`${i} — ${((e,t,r)=>{switch(e){case"FILE_INVALID_TYPE":return`Not a ${t.acceptList.join(" / ")} file`;case"FILE_TOO_LARGE":return`Too large: ${YH(r??0)}; the limit is ${YH(t.maxFileSize??0)}`;case"FILE_TOO_SMALL":return`Too small: ${YH(r??0)}; the minimum is ${YH(t.minFileSize??0)}`;case"TOO_MANY_FILES":return`Too many files; the limit is ${t.maxFiles}`;case"FILE_EXISTS":return"Already added";default:return e}})(n,a,l)}`)})]},`${r}-${n}`)}),c[12]=t,c[13]=d.limits,c[14]=e):e=c[14],o=d.rejections.flatMap(e),c[8]=t,c[9]=d.limits,c[10]=d.rejections,c[11]=o}else o=c[11];return c[15]!==d.errorId||c[16]!==n||c[17]!==i||c[18]!==l||c[19]!==o||c[20]!==u?(s=(0,eB.Y)("div",{...n,ref:i,id:h,role:"alert","data-slot":"file-upload-error","data-testid":u,className:l,children:o}),c[15]=d.errorId,c[16]=n,c[17]=i,c[18]=l,c[19]=o,c[20]=u,c[21]=s):s=c[21],s},"FileUploadError");Yz.displayName="FileUploadError";var YZ=i("D");let YQ=(0,c0.createContext)(null),YB=YQ.Provider,Yj=e=>{let t=(0,c0.useContext)(YQ);if(!t)throw Error(`${e} must be rendered inside <FileUploadItem>.`);return t},YG=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w,S,E,k=(0,ej.c)(61);k[0]!==e?({file:i,description:n,loading:s,icon:a,children:t,className:r,ref:o,"data-testid":c,...l}=e,k[0]=e,k[1]=t,k[2]=r,k[3]=n,k[4]=i,k[5]=a,k[6]=l,k[7]=o,k[8]=s,k[9]=c):(t=k[1],r=k[2],n=k[3],i=k[4],a=k[5],l=k[6],o=k[7],s=k[8],c=k[9]);let P=void 0!==s&&s,D=YN(),A=m5("item",c);k[10]!==c?(d=e=>void 0===c?void 0:`${c}--${e}`,k[10]=c,k[11]=d):d=k[11];let T=d,M=m5("item-name"),L=m5("item-description");k[12]!==M||k[13]!==T?(u=T("item-name")??M,k[12]=M,k[13]=T,k[14]=u):u=k[14];let I=u;k[15]!==L||k[16]!==T?(h=T("item-description")??L,k[15]=L,k[16]=T,k[17]=h):h=k[17];let N=h,F=D?.registerLoading;k[18]!==P||k[19]!==F?(p=()=>{if(P&&F)return F()},f=[P,F],k[18]=P,k[19]=F,k[20]=p,k[21]=f):(p=k[20],f=k[21]),(0,c0.useEffect)(p,f),k[22]!==i||k[23]!==P?(m={file:i,loading:P},k[22]=i,k[23]=P,k[24]=m):m=k[24];let R=m,V=!!t||P,_=P||void 0,Y=P?"":void 0;return k[25]!==r?(g=(0,m2.cn)(Yk(),r),k[25]=r,k[26]=g):g=k[26],k[27]!==a?(C=a??(0,eB.Y)(nA,{size:"md"}),k[27]=a,k[28]=C):C=k[28],k[29]!==C?(v=(0,eB.Y)("span",{className:YP,children:C}),k[29]=C,k[30]=v):v=k[30],k[31]!==i.name||k[32]!==I?(y=(0,eB.Y)(bw,{asChild:!0,children:(0,eB.Y)("span",{"data-slot":"file-upload-item-name","data-testid":I,className:YD,children:i.name})}),k[31]=i.name,k[32]=I,k[33]=y):y=k[33],k[34]!==i.name?(b=(0,eB.Y)(bS,{children:i.name}),k[34]=i.name,k[35]=b):b=k[35],k[36]!==y||k[37]!==b?(x=(0,eB.FD)(bE,{children:[y,b]}),k[36]=y,k[37]=b,k[38]=x):x=k[38],k[39]!==n||k[40]!==N?(O=n?(0,eB.Y)("span",{"data-slot":"file-upload-item-description","data-testid":N,className:YA,children:n}):null,k[39]=n,k[40]=N,k[41]=O):O=k[41],k[42]!==x||k[43]!==O?(w=(0,eB.FD)("div",{className:"flex min-w-0 flex-1 flex-col",children:[x,O]}),k[42]=x,k[43]=O,k[44]=w):w=k[44],k[45]!==t||k[46]!==V||k[47]!==R||k[48]!==P||k[49]!==c?(S=V?(0,eB.FD)("div",{"data-slot":"file-upload-item-actions",className:YT,children:[(0,eB.Y)(YB,{value:R,children:void 0===c?t:(0,eB.Y)(m3,{value:c,children:t})}),P?(0,eB.Y)(YZ.a,{type:"sonner",size:"md",color:"primary"}):null]}):null,k[45]=t,k[46]=V,k[47]=R,k[48]=P,k[49]=c,k[50]=S):S=k[50],k[51]!==l||k[52]!==o||k[53]!==g||k[54]!==v||k[55]!==w||k[56]!==S||k[57]!==_||k[58]!==Y||k[59]!==A?(E=(0,eB.FD)("li",{...l,ref:o,"aria-busy":_,"data-loading":Y,"data-slot":"file-upload-item","data-testid":A,className:g,children:[v,w,S]}),k[51]=l,k[52]=o,k[53]=g,k[54]=v,k[55]=w,k[56]=S,k[57]=_,k[58]=Y,k[59]=A,k[60]=E):E=k[60],E},"FileUploadItem");YG.displayName="FileUploadItem";let YU=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(19);c[0]!==e?({disabled:t,"data-testid":n,...r}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n):(t=c[1],r=c[2],n=c[3]);let d=YN(),u=m5("item-action",n),h=r["aria-label"],p=!!(t||d?.disabled);c[4]!==p||c[5]!==r||c[6]!==u?(i=(0,eB.Y)(vn.$,{variant:"ghost",color:"neutral",size:"small",...r,"data-slot":"file-upload-item-action","data-testid":u,disabled:p}),c[4]=p,c[5]=r,c[6]=u,c[7]=i):i=c[7];let f=i;if("string"!=typeof h)return f;c[8]===Symbol.for("react.memo_cache_sentinel")?(a={placement:"top"},c[8]=a):a=c[8],c[9]!==f||c[10]!==u?(l=(0,eB.Y)(bo,{asChild:!0,"data-testid":u,children:f}),c[9]=f,c[10]=u,c[11]=l):l=c[11];let m=u?`${u}--tooltip`:void 0;return c[12]!==h||c[13]!==m?(o=(0,eB.Y)(bm,{"data-testid":m,children:h}),c[12]=h,c[13]=m,c[14]=o):o=c[14],c[15]!==p||c[16]!==l||c[17]!==o?(s=(0,eB.FD)(bC,{positioning:a,disabled:p,children:[l,o]}),c[15]=p,c[16]=l,c[17]=o,c[18]=s):s=c[18],s},"FileUploadItemAction");YU.displayName="FileUploadItemAction";let YW='[data-slot="file-upload-item"]',Yq=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f=(0,ej.c)(31);f[0]!==e?({children:r,onClick:i,disabled:n,"aria-label":t,"data-testid":l,...a}=e,f[0]=e,f[1]=t,f[2]=r,f[3]=n,f[4]=i,f[5]=a,f[6]=l):(t=f[1],r=f[2],n=f[3],i=f[4],a=f[5],l=f[6]);let m=YN(),g=Yj("FileUploadItemDeleteTrigger"),C=m5("item-delete-trigger",l);if(m?.readOnly)return null;let v=!!(n||m?.disabled);f[7]!==g.file||f[8]!==i||f[9]!==m?(o=e=>{if(i?.(e),!e.defaultPrevented&&m&&g.file instanceof File){var t;let r,n,i,a=(r=(t=e.currentTarget).closest(YW),n=t.closest('[data-slot="file-upload"]'),i=r&&n?[...n.querySelectorAll(YW)].indexOf(r):-1,()=>{n&&!(i<0)&&requestAnimationFrame(()=>{let e=t.ownerDocument.activeElement;if(e&&e!==t.ownerDocument.body&&e.isConnected)return;let r=n.querySelectorAll(YW),a=r[i]??r[i-1],l=a?.querySelector('[data-slot="file-upload-item-delete-trigger"]')??a?.querySelector("button:not(:disabled)")??n.querySelector('[data-slot="file-upload-dropzone"], [data-slot="file-upload-trigger"]');l?.focus()})});m.api.deleteFile(g.file),m.clearRejections(),a()}},f[7]=g.file,f[8]=i,f[9]=m,f[10]=o):o=f[10];let y=o;f[11]===Symbol.for("react.memo_cache_sentinel")?(s={placement:"top"},f[11]=s):s=f[11];let b=t??(g.loading?"Cancel upload":`Delete ${g.file.name}`);f[12]!==r?(c=r??(0,eB.Y)(cN.X,{}),f[12]=r,f[13]=c):c=f[13],f[14]!==y||f[15]!==v||f[16]!==a||f[17]!==b||f[18]!==c||f[19]!==C?(d=(0,eB.Y)(vn.$,{variant:"ghost",color:"neutral",size:"small","aria-label":b,...a,"data-slot":"file-upload-item-delete-trigger","data-testid":C,disabled:v,onClick:y,children:c}),f[14]=y,f[15]=v,f[16]=a,f[17]=b,f[18]=c,f[19]=C,f[20]=d):d=f[20],f[21]!==d||f[22]!==C?(u=(0,eB.Y)(bo,{asChild:!0,"data-testid":C,children:d}),f[21]=d,f[22]=C,f[23]=u):u=f[23];let x=C?`${C}--tooltip`:void 0,O=g.loading?"Cancel upload":"Delete";return f[24]!==x||f[25]!==O?(h=(0,eB.Y)(bm,{"data-testid":x,children:O}),f[24]=x,f[25]=O,f[26]=h):h=f[26],f[27]!==v||f[28]!==u||f[29]!==h?(p=(0,eB.FD)(bC,{positioning:s,disabled:v,children:[u,h]}),f[27]=v,f[28]=u,f[29]=h,f[30]=p):p=f[30],p},"FileUploadItemDeleteTrigger");Yq.displayName="FileUploadItemDeleteTrigger";let YX=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(22);u[0]!==e?({children:t,className:r,ref:i,"data-testid":a,...n}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5]);let h=YN(),p=m5("item-group",a);u[6]!==h?.api.acceptedFiles?(l=h?.api.acceptedFiles??[],u[6]=h?.api.acceptedFiles,u[7]=l):l=u[7];let f=l;u[8]!==t||u[9]!==f?(o="function"==typeof t?f.map((e,r)=>(0,eB.Y)(c0.Fragment,{children:t(e,r)},`${e.name}-${e.size}-${e.lastModified}-${r}`)):t,u[8]=t,u[9]=f,u[10]=o):o=u[10];let m=o;return null==m||!1===m||Array.isArray(m)&&0===m.length?null:(u[11]!==r?(s=(0,m2.cn)("flex w-full min-w-0 flex-col gap-8",r),u[11]=r,u[12]=s):s=u[12],u[13]!==m||u[14]!==a?(c=void 0===a?m:(0,eB.Y)(m3,{value:a,children:m}),u[13]=m,u[14]=a,u[15]=c):c=u[15],u[16]!==n||u[17]!==i||u[18]!==s||u[19]!==c||u[20]!==p?(d=(0,eB.Y)("ul",{...n,ref:i,"data-slot":"file-upload-item-group","data-testid":p,className:s,children:c}),u[16]=n,u[17]=i,u[18]=s,u[19]=c,u[20]=p,u[21]=d):d=u[21],d)},"FileUploadItemGroup");YX.displayName="FileUploadItemGroup";let YK=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C=(0,ej.c)(41);C[0]!==e?({children:r,onClick:i,disabled:n,"aria-label":t,"data-testid":l,...a}=e,C[0]=e,C[1]=t,C[2]=r,C[3]=n,C[4]=i,C[5]=a,C[6]=l):(t=C[1],r=C[2],n=C[3],i=C[4],a=C[5],l=C[6]);let v=YN(),y=Yj("FileUploadItemReplaceTrigger"),b=(0,c0.useRef)(null),x=m5("item-replace-trigger",l),O=m5("item-replace-input");if(!v||v.readOnly||y.loading)return null;let w=y.file;if(!v.single&&!(w instanceof File))return null;let S=!!(n||v.disabled);C[7]!==i||C[8]!==v.api||C[9]!==v.single?(o=e=>{i?.(e),e.defaultPrevented||(v.single?v.api.openFilePicker():b.current?.click())},C[7]=i,C[8]=v.api,C[9]=v.single,C[10]=o):o=C[10];let E=o;C[11]!==w||C[12]!==v?(s=e=>{let t=e.currentTarget.files?.[0];if(e.currentTarget.value="",!t||!(w instanceof File)||YV(t,w)&&t.lastModified===w.lastModified)return;let r=((e,t)=>{let r=[],[n]=_G(e,t.acceptList.length?t.acceptList.join(","):void 0);n||r.push("FILE_INVALID_TYPE"),void 0!==t.maxFileSize&&e.size>t.maxFileSize&&r.push("FILE_TOO_LARGE"),void 0!==t.minFileSize&&e.size<t.minFileSize&&r.push("FILE_TOO_SMALL");let i=t.validate?.(e);return i&&r.push(...i),r})(t,{acceptList:v.limits.acceptList,maxFileSize:v.limits.maxFileSize,minFileSize:v.limits.minFileSize,validate:v.validate});(v.api.acceptedFiles.some(e=>e!==w&&YV(e,t))&&r.push("FILE_EXISTS"),r.length)?v.reportRejections([{file:t,errors:r}]):v.commitFiles(v.api.acceptedFiles.map(e=>e===w?t:e))},C[11]=w,C[12]=v,C[13]=s):s=C[13];let k=s;C[14]===Symbol.for("react.memo_cache_sentinel")?(c={placement:"top"},C[14]=c):c=C[14];let P=t??`Replace ${y.file.name}`;C[15]!==r?(d=r??(0,eB.Y)(oI,{}),C[15]=r,C[16]=d):d=C[16],C[17]!==E||C[18]!==S||C[19]!==a||C[20]!==P||C[21]!==d||C[22]!==x?(u=(0,eB.Y)(vn.$,{variant:"ghost",color:"neutral",size:"small","aria-label":P,...a,"data-slot":"file-upload-item-replace-trigger","data-testid":x,disabled:S,onClick:E,children:d}),C[17]=E,C[18]=S,C[19]=a,C[20]=P,C[21]=d,C[22]=x,C[23]=u):u=C[23],C[24]!==u||C[25]!==x?(h=(0,eB.Y)(bo,{asChild:!0,"data-testid":x,children:u}),C[24]=u,C[25]=x,C[26]=h):h=C[26];let D=x?`${x}--tooltip`:void 0;return C[27]!==D?(p=(0,eB.Y)(bm,{"data-testid":D,children:"Replace"}),C[27]=D,C[28]=p):p=C[28],C[29]!==S||C[30]!==h||C[31]!==p?(f=(0,eB.FD)(bC,{positioning:c,disabled:S,children:[h,p]}),C[29]=S,C[30]=h,C[31]=p,C[32]=f):f=C[32],C[33]!==k||C[34]!==O||C[35]!==v.accept||C[36]!==v.single?(m=v.single?null:(0,eB.Y)("input",{ref:b,type:"file",accept:v.accept,hidden:!0,tabIndex:-1,"aria-hidden":!0,"data-slot":"file-upload-item-replace-input","data-testid":O,onChange:k}),C[33]=k,C[34]=O,C[35]=v.accept,C[36]=v.single,C[37]=m):m=C[37],C[38]!==f||C[39]!==m?(g=(0,eB.FD)(eB.FK,{children:[f,m]}),C[38]=f,C[39]=m,C[40]=g):g=C[40],g},"FileUploadItemReplaceTrigger");YK.displayName="FileUploadItemReplaceTrigger";let YJ=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(29);u[0]!==e?({children:t,disabled:n,asChild:a,"data-testid":l,"aria-describedby":r,...i}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a,u[6]=l):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5],l=u[6]);let h=void 0!==a&&a,p=YF("FileUploadTrigger"),f=m5("trigger",l);if(p.pickerHidden)return null;u[7]!==p.errorId||u[8]!==p.rejections.length||u[9]!==r?(o=[r,p.rejections.length?p.errorId:void 0].filter(Boolean).join(" ")||void 0,u[7]=p.errorId,u[8]=p.rejections.length,u[9]=r,u[10]=o):o=u[10];let m=o,g=n||p.pickerBlocked;u[11]!==m||u[12]!==g||u[13]!==f?(s={"aria-describedby":m,"data-slot":"file-upload-trigger","data-testid":f,disabled:g},u[11]=m,u[12]=g,u[13]=f,u[14]=s):s=u[14];let C=s;if(h){let e,r,n;if(u[15]!==i){let{variant:t,color:n,size:a,loading:l,fullWidth:o,as:s,ref:c,...d}=i;e=c,r=d,u[15]=i,u[16]=e,u[17]=r}else e=u[16],r=u[17];let a=e;return u[18]!==t||u[19]!==r||u[20]!==C||u[21]!==a?(n=(0,eB.Y)(Yw.Trigger,{...r,...C,ref:a,asChild:!0,children:t}),u[18]=t,u[19]=r,u[20]=C,u[21]=a,u[22]=n):n=u[22],n}return u[23]!==t?(c=t??(0,eB.FD)(eB.FK,{children:[(0,eB.Y)(oK,{}),"Select file"]}),u[23]=t,u[24]=c):c=u[24],u[25]!==i||u[26]!==C||u[27]!==c?(d=(0,eB.Y)(Yw.Trigger,{asChild:!0,children:(0,eB.Y)(vn.$,{variant:"primary",color:"brand",size:"large",...i,...C,children:c})}),u[25]=i,u[26]=C,u[27]=c,u[28]=d):d=u[28],d},"FileUploadTrigger");YJ.displayName="FileUploadTrigger";let Y1=e=>{let t,r,n=(0,ej.c)(3),[i,a]=(0,c0.useState)();return n[0]!==e?(t=()=>{if(!e)return void a(void 0);let t=URL.createObjectURL(e);return a(t),()=>URL.revokeObjectURL(t)},r=[e],n[0]=e,n[1]=t,n[2]=r):(t=n[1],r=n[2]),(0,c0.useEffect)(t,r),i};var Y2=Object.defineProperty,Y0=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?Y2(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r};function Y3(e,t,r){for(let n=0;n<t.length;n++)e=r.getChildren(e,t.slice(n+1))[t[n]];return e}function Y5(e,t){for(let r=0;r<Math.min(e.length,t.length);r++){if(e[r]<t[r])return -1;if(e[r]>t[r])return 1}return e.length-t.length}function Y4(e,t){let r;return $r(e,{onEnter:(e,n)=>{if(t.predicate(e,n))return r=[...n],"stop"},getChildren:t.getChildren}),r}function Y7(){return{type:"replace"}}function Y9(e){return[e.slice(0,-1),e[e.length-1]]}function Y6(e,t,r=new Map){let[n,i]=Y9(e);for(let e=n.length-1;e>=0;e--){let t=n.slice(0,e).join();r.get(t)?.type!=="remove"&&r.set(t,Y7())}let a=r.get(n.join());if(a?.type==="remove")r.set(n.join(),{type:"removeThenInsert",removeIndexes:a.indexes,insertIndex:i,insertNodes:t});else r.set(n.join(),{type:"insert",index:i,nodes:t});return r}function Y8(e){let t=new Map,r=new Map;for(let t of e){let e=t.slice(0,-1).join(),n=r.get(e)??[];n.push(t[t.length-1]),r.set(e,n.sort((e,t)=>e-t))}for(let r of e)for(let e=r.length-2;e>=0;e--){let n=r.slice(0,e).join();t.has(n)||t.set(n,Y7())}for(let[e,n]of r)t.set(e,{type:"remove",indexes:n});return t}function $e(e,t,r){var n,i;let a;return n=e,i={...r,getChildren:(e,n)=>{let i=n.join(),a=t.get(i);switch(a?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return r.getChildren(e,n);default:return[]}},transform:(e,n,i)=>{let a=i.join(),l=t.get(a);switch(l?.type){case"remove":return r.create(e,n.filter((e,t)=>!l.indexes.includes(t)),i);case"removeThenInsert":let o=n.filter((e,t)=>!l.removeIndexes.includes(t)),s=l.removeIndexes.reduce((e,t)=>t<e?e-1:e,l.insertIndex);return r.create(e,$t(o,s,0,...l.insertNodes),i);case"insert":return r.create(e,$t(n,l.index,0,...l.nodes),i);case"replace":return r.create(e,n,i);default:return e}}},a={},$r(n,{...i,onLeave:(e,t)=>{let r=[0,...t],n=r.join(),l=i.transform(e,a[n]??[],t),o=r.slice(0,-1).join(),s=a[o]??[];s.push(l),a[o]=s}}),a[""][0]}function $t(e,t,r,...n){return[...e.slice(0,t),...n,...e.slice(t+r)]}function $r(e,t){let{onEnter:r,onLeave:n,getChildren:i}=t,a=[],l=[{node:e}],o=t.reuseIndexPath?()=>a:()=>a.slice();for(;l.length>0;){let e=l[l.length-1];if(void 0===e.state){let t=r?.(e.node,o());if("stop"===t)return;e.state="skip"===t?-1:0}let t=e.children||i(e.node,o());if(e.children||(e.children=t),-1!==e.state){if(e.state<t.length){let r=e.state;a.push(r),l.push({node:t[r]}),e.state=r+1;continue}if("stop"===n?.(e.node,o()))return}a.pop(),l.pop()}}var $n=class e{constructor(t){Y0(this,"options",t),Y0(this,"rootNode"),Y0(this,"isEqual",e=>uD(this.rootNode,e.rootNode)),Y0(this,"getNodeChildren",e=>this.options.nodeToChildren?.(e)??$i.nodeToChildren(e)??[]),Y0(this,"resolveIndexPath",e=>"string"==typeof e?this.getIndexPath(e):e),Y0(this,"resolveNode",e=>{let t=this.resolveIndexPath(e);return t?this.at(t):void 0}),Y0(this,"getNodeChildrenCount",e=>this.options.nodeToChildrenCount?.(e)??$i.nodeToChildrenCount(e)),Y0(this,"getNodeValue",e=>this.options.nodeToValue?.(e)??$i.nodeToValue(e)),Y0(this,"getNodeDisabled",e=>this.options.isNodeDisabled?.(e)??$i.isNodeDisabled(e)),Y0(this,"stringify",e=>{let t=this.findNode(e);return t?this.stringifyNode(t):null}),Y0(this,"stringifyNode",e=>this.options.nodeToString?.(e)??$i.nodeToString(e)),Y0(this,"getFirstNode",(e=this.rootNode,t={})=>{let r;return $r(e,{getChildren:this.getNodeChildren,onEnter:(n,i)=>{if(!this.isSameNode(n,e)){if(t.skip?.({value:this.getNodeValue(n),node:n,indexPath:i}))return"skip";if(!r&&i.length>0&&!this.getNodeDisabled(n))return r=n,"stop"}}}),r}),Y0(this,"getLastNode",(e=this.rootNode,t={})=>{let r;return $r(e,{getChildren:this.getNodeChildren,onEnter:(n,i)=>{if(!this.isSameNode(n,e)){if(t.skip?.({value:this.getNodeValue(n),node:n,indexPath:i}))return"skip";i.length>0&&!this.getNodeDisabled(n)&&(r=n)}}}),r}),Y0(this,"at",e=>Y3(this.rootNode,e,{getChildren:this.getNodeChildren})),Y0(this,"findNode",(e,t=this.rootNode)=>{var r;let n;return $r(t,{...r={getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e},onEnter:(e,t)=>{if(r.predicate(e,t))return n=e,"stop"}}),n}),Y0(this,"findNodes",(e,t=this.rootNode)=>{var r;let n,i=new Set(e.filter(e=>null!=e));return r={getChildren:this.getNodeChildren,predicate:e=>i.has(this.getNodeValue(e))},n=[],$r(t,{onEnter:(e,t)=>{r.predicate(e,t)&&n.push(e)},getChildren:r.getChildren}),n}),Y0(this,"sort",e=>e.reduce((e,t)=>{let r=this.getIndexPath(t);return r&&e.push({value:t,indexPath:r}),e},[]).sort((e,t)=>Y5(e.indexPath,t.indexPath)).map(({value:e})=>e)),Y0(this,"getValue",e=>{let t=this.at(e);return t?this.getNodeValue(t):void 0}),Y0(this,"getValuePath",e=>{if(!e)return[];let t=[],r=[...e];for(;r.length>0;){let e=this.at(r);e&&t.unshift(this.getNodeValue(e)),r.pop()}return t}),Y0(this,"getDepth",e=>{let t=Y4(this.rootNode,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e});return t?.length??0}),Y0(this,"isSameNode",(e,t)=>this.getNodeValue(e)===this.getNodeValue(t)),Y0(this,"isRootNode",e=>this.isSameNode(e,this.rootNode)),Y0(this,"contains",(e,t)=>!!e&&!!t&&t.slice(0,e.length).every((r,n)=>e[n]===t[n])),Y0(this,"getNextNode",(e,t={})=>{let r,n=!1;return $r(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(i,a)=>{if(this.isRootNode(i))return;let l=this.getNodeValue(i);return t.skip?.({value:l,node:i,indexPath:a})?(l===e&&(n=!0),"skip"):n&&!this.getNodeDisabled(i)?(r=i,"stop"):void(l===e&&(n=!0))}}),r}),Y0(this,"getPreviousNode",(e,t={})=>{let r,n=!1;return $r(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(i,a)=>{if(this.isRootNode(i))return;let l=this.getNodeValue(i);return t.skip?.({value:l,node:i,indexPath:a})?"skip":l===e?(n=!0,"stop"):void(!this.getNodeDisabled(i)&&(r=i))}}),n?r:void 0}),Y0(this,"getParentNodes",e=>{let t=this.resolveIndexPath(e)?.slice();if(!t)return[];let r=[];for(;t.length>0;){t.pop();let e=this.at(t);e&&!this.isRootNode(e)&&r.unshift(e)}return r}),Y0(this,"getDescendantNodes",(e,t)=>{let r=this.resolveNode(e);if(!r)return[];let n=[];return $r(r,{getChildren:this.getNodeChildren,onEnter:(e,r)=>{0===r.length||!t?.withBranch&&this.isBranchNode(e)||n.push(e)}}),n}),Y0(this,"getDescendantValues",(e,t)=>this.getDescendantNodes(e,t).map(e=>this.getNodeValue(e))),Y0(this,"getParentIndexPath",e=>e.slice(0,-1)),Y0(this,"getParentNode",e=>{let t=this.resolveIndexPath(e);return t?this.at(this.getParentIndexPath(t)):void 0}),Y0(this,"visit",e=>{let{skip:t,...r}=e;$r(this.rootNode,{...r,getChildren:this.getNodeChildren,onEnter:(e,n)=>{if(!this.isRootNode(e))return t?.({value:this.getNodeValue(e),node:e,indexPath:n})?"skip":r.onEnter?.(e,n)}})}),Y0(this,"getPreviousSibling",e=>{let t=this.getParentNode(e);if(!t)return;let r=this.getNodeChildren(t),n=e[e.length-1];for(;--n>=0;){let e=r[n];if(!this.getNodeDisabled(e))return e}}),Y0(this,"getNextSibling",e=>{let t=this.getParentNode(e);if(!t)return;let r=this.getNodeChildren(t),n=e[e.length-1];for(;++n<r.length;){let e=r[n];if(!this.getNodeDisabled(e))return e}}),Y0(this,"getSiblingNodes",e=>{let t=this.getParentNode(e);return t?this.getNodeChildren(t):[]}),Y0(this,"getValues",(e=this.rootNode)=>{var t,r;let n;return(t={getChildren:this.getNodeChildren,transform:e=>[this.getNodeValue(e)]},n=(r={...t,initialResult:[],nextResult:(e,r,n)=>(e.push(...t.transform(r,n)),e)}).initialResult,$r(e,{...r,onEnter:(e,t)=>{n=r.nextResult(n,e,t)}}),n).slice(1)}),Y0(this,"isValidDepth",(e,t)=>null==t||("function"==typeof t?t(e.length):e.length===t)),Y0(this,"isBranchNode",e=>this.getNodeChildren(e).length>0||null!=this.getNodeChildrenCount(e)),Y0(this,"getBranchValues",(e=this.rootNode,t={})=>{let r=[];return $r(e,{getChildren:this.getNodeChildren,onEnter:(e,n)=>{if(0===n.length)return;let i=this.getNodeValue(e);if(t.skip?.({value:i,node:e,indexPath:n}))return"skip";this.isBranchNode(e)&&this.isValidDepth(n,t.depth)&&r.push(this.getNodeValue(e))}}),r}),Y0(this,"flatten",(e=this.rootNode)=>{var t;let r,n,i,a;return t={getChildren:this.getNodeChildren},r=[],n=0,i=new Map,a=new Map,$r(e,{getChildren:t.getChildren,onEnter:(e,l)=>{i.has(e)||i.set(e,n++);let o=t.getChildren(e,l);o.forEach(t=>{a.has(t)||a.set(t,e),i.has(t)||i.set(t,n++)});let s=o.length>0?o.map(e=>i.get(e)):void 0,c=a.get(e),d=c?i.get(c):void 0,u=i.get(e);r.push({...e,_children:s,_parent:d,_index:u})}}),r}),Y0(this,"_create",(e,t)=>this.getNodeChildren(e).length>0||t.length>0?{...e,children:t}:{...e}),Y0(this,"_insert",(e,t,r)=>this.copy(function(e,t){let{nodes:r,at:n}=t;if(0===n.length)throw Error("Can't insert nodes at the root");return $e(e,Y6(n,r),t)}(e,{at:t,nodes:r,getChildren:this.getNodeChildren,create:this._create}))),Y0(this,"copy",t=>new e({...this.options,rootNode:t})),Y0(this,"_replace",(e,t,r)=>{var n;return this.copy(0===(n={at:t,node:r,getChildren:this.getNodeChildren,create:this._create}).at.length?n.node:$e(e,function(e,t){let r=new Map,[n,i]=Y9(e);for(let e=n.length-1;e>=0;e--){let t=n.slice(0,e).join();r.set(t,Y7())}return r.set(n.join(),{type:"removeThenInsert",removeIndexes:[i],insertIndex:i,insertNodes:[t]}),r}(n.at,n.node),n))}),Y0(this,"_move",(e,t,r)=>this.copy(function(e,t){if(0===t.indexPaths.length)return e;for(let e of t.indexPaths)if(0===e.length)throw Error("Can't move the root node");if(0===t.to.length)throw Error("Can't move nodes to the root");let r=function(e){let t=e.sort(Y5),r=[],n=new Set;for(let e of t){let t=e.join();n.has(t)||(n.add(t),r.push(e))}return r}(t.indexPaths),n=r.map(r=>Y3(e,r,t));return $e(e,Y6(t.to,n,Y8(r)),t)}(e,{indexPaths:t,to:r,getChildren:this.getNodeChildren,create:this._create}))),Y0(this,"_remove",(e,t)=>this.copy(function(e,t){if(0===t.indexPaths.length)return e;for(let e of t.indexPaths)if(0===e.length)throw Error("Can't remove the root node");return $e(e,Y8(t.indexPaths),t)}(e,{indexPaths:t,getChildren:this.getNodeChildren,create:this._create}))),Y0(this,"replace",(e,t)=>this._replace(this.rootNode,e,t)),Y0(this,"remove",e=>this._remove(this.rootNode,e)),Y0(this,"insertBefore",(e,t)=>this.getParentNode(e)?this._insert(this.rootNode,e,t):void 0),Y0(this,"insertAfter",(e,t)=>{if(!this.getParentNode(e))return;let r=[...e.slice(0,-1),e[e.length-1]+1];return this._insert(this.rootNode,r,t)}),Y0(this,"move",(e,t)=>this._move(this.rootNode,e,t)),Y0(this,"filter",e=>{let t=function(e,t){let{predicate:r,create:n,getChildren:i}=t,a=(e,t)=>{let l=i(e,t),o=[];l.forEach((e,r)=>{let n=a(e,[...t,r]);n&&o.push(n)});let s=0===t.length,c=r(e,t),d=o.length>0;return s||c||d?n(e,o,t):null};return a(e,[])||n(e,[],[])}(this.rootNode,{predicate:e,getChildren:this.getNodeChildren,create:this._create});return this.copy(t)}),Y0(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}getIndexPath(e){if(!Array.isArray(e))return Y4(this.rootNode,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e});{if(0===e.length)return[];let t=[],r=this.getNodeChildren(this.rootNode);for(let n=0;n<e.length;n++){let i=e[n],a=r.findIndex(e=>this.getNodeValue(e)===i);if(-1===a)break;if(t.push(a),n<e.length-1){let e=r[a];r=this.getNodeChildren(e)}}return t}}},$i={nodeToValue:e=>"string"==typeof e?e:(0,u$.Gv)(e)&&(0,u$.cK)(e,"value")?e.value:"",nodeToString:e=>"string"==typeof e?e:(0,u$.Gv)(e)&&(0,u$.cK)(e,"label")?e.label:$i.nodeToValue(e),isNodeDisabled:e=>!!((0,u$.Gv)(e)&&(0,u$.cK)(e,"disabled"))&&!!e.disabled,nodeToChildren:e=>e.children,nodeToChildrenCount(e){if((0,u$.Gv)(e)&&(0,u$.cK)(e,"childrenCount"))return e.childrenCount}},$a=e=>new $n(e);function $l(e,t){return{items:e,accessors:t??{getValue:e=>e.value,getLabel:e=>e.label,getChildren:e=>e.children,isDisabled:e=>!!e.disabled}}}$a.empty=()=>new $n({rootNode:{value:"ROOT",children:[]}});let $o="__filter-cascade-parent__",$s=(e,t)=>{let r=[],n=e;for(let e of t){let t=n?.find(t=>t.value===e);if(!t)break;r.push(t),n=t.children}return r};var $c=(L={getRootId:e=>e.ids?.root??`cascade-select:${e.id}`,getLabelId:e=>e.ids?.label??`cascade-select:${e.id}:label`,getControlId:e=>e.ids?.control??`cascade-select:${e.id}:control`,getTriggerId:e=>e.ids?.trigger??`cascade-select:${e.id}:trigger`,getIndicatorId:e=>e.ids?.indicator??`cascade-select:${e.id}:indicator`,getClearTriggerId:e=>e.ids?.clearTrigger??`cascade-select:${e.id}:clear-trigger`,getPositionerId:e=>e.ids?.positioner??`cascade-select:${e.id}:positioner`,getContentId:e=>e.ids?.content??`cascade-select:${e.id}:content`,getHiddenInputId:e=>e.ids?.hiddenInput??`cascade-select:${e.id}:hidden-input`,getListId:(e,t)=>e.ids?.list?.(t)??`cascade-select:${e.id}:list:${t}`,getItemId:(e,t)=>e.ids?.item?.(t)??`cascade-select:${e.id}:item:${t}`,getRootEl:e=>$c.getById(e,$c.getRootId(e)),getLabelEl:e=>$c.getById(e,$c.getLabelId(e)),getControlEl:e=>$c.getById(e,$c.getControlId(e)),getTriggerEl:e=>$c.getById(e,$c.getTriggerId(e)),getIndicatorEl:e=>$c.getById(e,$c.getIndicatorId(e)),getClearTriggerEl:e=>$c.getById(e,$c.getClearTriggerId(e)),getPositionerEl:e=>$c.getById(e,$c.getPositionerId(e)),getContentEl:e=>$c.getById(e,$c.getContentId(e)),getHiddenInputEl:e=>$c.getById(e,$c.getHiddenInputId(e)),getListEl:(e,t)=>$c.getById(e,$c.getListId(e,t)),getListEls:e=>mA($c.getContentEl(e),'[data-part="list"]'),getItemEl:(e,t)=>$c.getById(e,$c.getItemId(e,t)),dispatchInputEvent:(e,t)=>{let r=$c.getHiddenInputEl(e);r&&kH(r,{value:t})}},{...y={getRootNode:e=>e.getRootNode?.()??document,getDoc:e=>u9(y.getRootNode(e)),getWin:e=>y.getDoc(e).defaultView??window,getActiveElement:e=>u8(y.getRootNode(e)),isActiveElement:u3,getById:(e,t)=>y.getRootNode(e).getElementById(t),setValue:(e,t)=>{null!=e&&null!=t&&kY(e,t.toString())}},...L});function $d(e,t,r){return(t.x-e.x)*(r.y-e.y)-(t.y-e.y)*(r.x-e.x)}var{or:$u,and:$h,not:$p}=uS(),$f=uE({props:({props:e})=>({closeOnSelect:!0,loopFocus:!1,defaultValue:[],defaultHighlightedValue:[],defaultOpen:!1,multiple:!1,highlightTrigger:"click",allowParentSelection:!1,positioning:{placement:"bottom-start",gutter:8,...e.positioning},...e,collection:e.collection??$a.empty()}),context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:uD,hash:e=>e.join(", ")})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue"),value:e("highlightedValue"),isEqual:uD})),valueIndexPath:t(()=>({defaultValue:(e("value")??e("defaultValue")??[]).map(t=>e("collection").getIndexPath(t))})),highlightedIndexPath:t(()=>{let t=e("highlightedValue")??e("defaultHighlightedValue")??null;return{defaultValue:t?e("collection").getIndexPath(t):[]}}),highlightedItems:t(()=>({defaultValue:[]})),selectedItems:t(()=>({defaultValue:[]})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),graceArea:t(()=>({defaultValue:null})),isPointerInTransit:t(()=>({defaultValue:!1}))}),computed:{isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({prop:e,context:t})=>{let r=e("collection"),n=t.get("selectedItems"),i=e("multiple"),a=e=>r.stringifyNode(e.at(-1))??r.getNodeValue(e.at(-1)),l=e=>e.map(e=>r.stringifyNode(e)??r.getNodeValue(e)).join(" / ");return(e("formatValue")??(e=>e.map(i?a:l).join(", ")))(n)}},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"idle",watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value")?.toString()],()=>{n(["syncInputValue","dispatchChangeEvent"])}),r([()=>t("open")],()=>{n(["toggleVisibility"])})},on:{"VALUE.SET":{actions:["setValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"CLEAR_TRIGGER.CLICK":{actions:["clearValue","focusTriggerEl"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightLastItem"]},{guard:$u("isTriggerArrowDownEvent","isTriggerEnterEvent",""),target:"open",actions:["setInitialFocus","highlightFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"TRIGGER.ARROW_RIGHT":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","highlightFirstItem"]}]}},open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","trackFocusVisible","computePlacement","scrollToHighlightedItems"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedValue"]},{target:"idle",actions:["clearHighlightedValue"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedValue"]},{target:"idle",actions:["invokeOnClose","clearHighlightedValue"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedValue"]}],"ITEM.CLICK":[{guard:$h("canSelectItem",$h("shouldCloseOnSelect",$p("multiple")),"isOpenControlled"),actions:["selectItem","invokeOnClose"]},{guard:$h("canSelectItem",$h("shouldCloseOnSelect",$p("multiple"))),target:"focused",actions:["selectItem","invokeOnClose","focusTriggerEl","clearHighlightedValue"]},{guard:"canSelectItem",actions:["selectItem"]},{actions:["setHighlightedValue"]}],"ITEM.POINTER_ENTER":[{guard:"isHoverHighlight",actions:["setHighlightingForHoveredItem"]}],"ITEM.POINTER_LEAVE":[{guard:$h("isHoverHighlight","shouldHighlightOnHover"),actions:["createGraceArea"]}],POINTER_MOVE:[{guard:$h("isHoverHighlight","hasGraceArea","isPointerOutsideGraceArea","isPointerNotInAnyItem","hasHighlightedValue"),actions:["clearGraceArea"]}],"GRACE_AREA.CLEAR":[{guard:"isHoverHighlight",actions:["clearGraceArea"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:$u($p("hasHighlightedValue"),$h("loop","isHighlightedLastItem")),actions:["highlightFirstItem"]},{actions:["highlightNextItem"]}],"CONTENT.ARROW_UP":[{guard:$u($p("hasHighlightedValue"),$h("loop","isHighlightedFirstItem")),actions:["highlightLastItem"]},{actions:["highlightPreviousItem"]}],"CONTENT.ARROW_RIGHT":[{guard:"canNavigateToChild",actions:["highlightFirstChild"]}],"CONTENT.ARROW_LEFT":[{guard:$h("isAtRootLevel","isOpenControlled"),actions:["invokeOnClose","focusTriggerEl"]},{guard:$h("isAtRootLevel","restoreFocus"),target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedValue"]},{guard:"isAtRootLevel",target:"idle",actions:["invokeOnClose","clearHighlightedValue"]},{guard:"canNavigateToParent",actions:["highlightParent"]}],"CONTENT.ENTER":[{guard:$h("canSelectHighlightedItem",$h("shouldCloseOnSelectHighlighted",$p("multiple")),"isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:$h("canSelectHighlightedItem",$h("shouldCloseOnSelectHighlighted",$p("multiple"))),target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedValue"]},{guard:"canSelectHighlightedItem",actions:["selectHighlightedItem"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{restoreFocus:({event:e})=>$g(e),multiple:({prop:e})=>!!e("multiple"),loop:({prop:e})=>!!e("loopFocus"),isOpenControlled:({prop:e})=>!!e("open"),isTriggerClickEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.CLICK",isTriggerArrowUpEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_UP",isTriggerArrowDownEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_DOWN",isTriggerEnterEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ENTER",isTriggerArrowRightEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_RIGHT",hasHighlightedValue:({context:e})=>e.get("highlightedValue").length>0,isHighlightedFirstItem:({context:e})=>0===e.get("highlightedIndexPath").at(-1),isHighlightedLastItem:({prop:e,context:t})=>{let r=t.get("highlightedIndexPath"),n=r.at(-1);if(!n&&0!==n)return!1;let i=r.slice(0,-1);return!e("collection").at([...i,n+1])},shouldCloseOnSelect:({prop:e,event:t})=>{let r=e("collection"),n=r.at(t.indexPath);return e("closeOnSelect")&&n&&!r.isBranchNode(n)},shouldCloseOnSelectHighlighted:({prop:e,context:t})=>{let r=e("collection"),n=hi(t.get("highlightedItems"));return e("closeOnSelect")&&null!=n&&!r.isBranchNode(n)},canSelectItem:({prop:e,event:t})=>{let r=e("collection"),n=r.at(t.indexPath);return!!n&&(e("allowParentSelection")||!r.isBranchNode(n))},canSelectHighlightedItem:({prop:e,context:t})=>{let r=e("collection"),n=r.at(t.get("highlightedIndexPath"));return!!n&&(e("allowParentSelection")||!r.isBranchNode(n))},canNavigateToChild:({prop:e,context:t})=>{let r=t.get("highlightedIndexPath");if(!r.length)return!1;let n=e("collection"),i=n.at(r);return i&&n.isBranchNode(i)},canNavigateToParent:({context:e})=>e.get("highlightedIndexPath").length>1,isAtRootLevel:({context:e})=>e.get("highlightedIndexPath").length<=1,isHoverHighlight:({prop:e})=>"hover"===e("highlightTrigger"),shouldHighlightOnHover:({prop:e,event:t})=>{let r=e("collection"),n=r.at(t.indexPath);return n&&r.isBranchNode(n)},shouldUpdateHighlightedIndexPath:({prop:e,context:t,event:r})=>{let n=e("collection"),i=t.get("highlightedIndexPath");if(!i||0===i.length)return!1;let a=n.at(r.indexPath);if(!a||n.isBranchNode(a))return!1;let l=r.indexPath;if(!l)return!1;let o=Math.min(l.length,i.length),s=0;for(let e=0;e<o;e++)if(l[e]===i[e])s=e+1;else break;return s>0&&(s<i.length||s<l.length)},hasGraceArea:({context:e})=>null!=e.get("graceArea"),isPointerOutsideGraceArea:({context:e,event:t})=>{let r=e.get("graceArea");return!!r&&!OG(r,{x:t.clientX,y:t.clientY})},isPointerNotInAnyItem:({event:e})=>{let t=e.target,r=t.closest('[data-part="item"]'),n=t.closest('[data-part="content"]');return!n||!r&&!!n}},effects:{trackFormControlState:({context:e,scope:t,prop:r})=>kZ($c.getTriggerEl(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",r("defaultValue")??[])}}),trackFocusVisible:({scope:e})=>v$({root:e.getRootNode?.()}),trackDismissableElement({scope:e,send:t,prop:r}){let n=!0;return OV(()=>$c.getContentEl(e),{defer:!0,exclude:[$c.getTriggerEl(e),$c.getClearTriggerEl(e)],onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onInteractOutside(e){r("onInteractOutside")?.(e),n=!(e.detail.focusable||e.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:n})}})},computePlacement:({context:e,prop:t,scope:r})=>y1(()=>$c.getTriggerEl(r),()=>$c.getPositionerEl(r),{...t("positioning"),onComplete(t){e.set("currentPlacement",t.placement)}}),scrollToHighlightedItems({context:e,prop:t,scope:r}){let n=[],i=i=>{let a=e.get("highlightedValue"),l=e.get("highlightedIndexPath");l.length&&"pointer"!==vS&&$c.getListEls(r).forEach((e,o)=>{let s=l.slice(0,o+1),c=$c.getItemEl(r,a.toString()),d=t("scrollToIndexFn");if(d)return void d({index:s[s.length-1],immediate:i,depth:o});let u=fd(()=>{OH(c,{rootEl:e,block:"nearest"})});n.push(u)})};fd(()=>{v_("virtual"),i(!0)});let a=fd(()=>i(!0));n.push(a);let l=f2($c.getContentEl(r),{attributes:["data-activedescendant"],callback:()=>i(!1)});return n.push(l),()=>{n.forEach(e=>e())}}},actions:{setValue(e){$m.value(e,e.event.value)},clearValue(e){$m.value(e,[])},setHighlightedValue(e){let{event:t}=e;$m.highlightedValue(e,t.value)},clearHighlightedValue(e){$m.highlightedValue(e,[])},reposition({context:e,prop:t,scope:r,event:n}){y1($c.getTriggerEl(r),()=>$c.getPositionerEl(r),{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},selectItem(e){let{context:t,prop:r,event:n}=e,i=r("collection"),a=r("multiple"),l=t.get("value"),o=n.value,s=n.indexPath??i.getIndexPath(o),c=i.at(s),d=i.isBranchNode(c);if(r("allowParentSelection")){if(a){let t=l.filter(e=>{let t=e.length<o.length?e:o;return!(e.length<o.length?o:e).slice(0,t.length).every((e,r)=>e===t[r])&&!uD(e,o)});$m.value(e,[...t,o])}else $m.value(e,[o]);d&&$m.highlightedValue(e,o)}else if(d)a&&l.length>0?$m.value(e,[...l.slice(0,-1),o]):$m.value(e,[o]),$m.highlightedValue(e,o);else if(a){let t=l.findIndex(e=>uD(e,o));if(t>=0){let r=[...l];r.splice(t,1),$m.value(e,r)}else $m.value(e,[...l,o])}else $m.value(e,[o])},clearItem(e){let{context:t,event:r}=e,n=t.get("value").filter(e=>!uD(e,r.value));$m.value(e,n)},selectHighlightedItem({context:e,send:t}){let r=e.get("highlightedIndexPath"),n=e.get("highlightedValue");n&&t({type:"ITEM.SELECT",value:n,indexPath:r})},highlightFirstItem(e){let t,{context:r,prop:n}=e,i=n("collection"),a=r.get("highlightedValue");if(a.length){let e=r.get("highlightedIndexPath");t=i.getParentNode(e)??i.rootNode}else t=i.rootNode;let l=i.getNodeChildren(t).find(e=>!i.getNodeDisabled(e));if(!l)return;let o=i.getNodeValue(l);if(a.length){let t=a.slice(0,-1);$m.highlightedValue(e,[...t,o])}else $m.highlightedValue(e,[o])},highlightLastItem(e){let t,{context:r,prop:n}=e,i=n("collection"),a=r.get("highlightedValue");if(a.length){let e=r.get("highlightedIndexPath");t=i.getParentNode(e)??i.rootNode}else t=i.rootNode;let l=i.getNodeChildren(t).findLast(e=>!i.getNodeDisabled(e));if(!l)return;let o=i.getNodeValue(l);if(a.length){let t=a.slice(0,-1);$m.highlightedValue(e,[...t,o])}else $m.highlightedValue(e,[o])},highlightNextItem(e){let{context:t,prop:r}=e,n=r("collection"),i=t.get("highlightedValue");if(!i.length)return;let a=t.get("highlightedIndexPath"),l=n.getNextSibling(a);if(!l)return;let o=n.getNodeValue(l);if(1===i.length)$m.highlightedValue(e,[o]);else{let t=i.slice(0,-1);$m.highlightedValue(e,[...t,o])}},highlightPreviousItem(e){let{context:t,prop:r}=e,n=r("collection"),i=t.get("highlightedValue");if(!i.length)return;let a=t.get("highlightedIndexPath"),l=n.getPreviousSibling(a);if(!l)return;let o=n.getNodeValue(l);if(1===i.length)$m.highlightedValue(e,[o]);else{let t=i.slice(0,-1);$m.highlightedValue(e,[...t,o])}},highlightFirstChild(e){let{context:t,prop:r}=e,n=r("collection"),i=t.get("highlightedValue");if(!i.length)return;let a=t.get("highlightedIndexPath"),l=n.getFirstNode(n.at(a));if(!l)return;let o=n.getNodeValue(l);$m.highlightedValue(e,[...i,o])},highlightParent(e){let{context:t}=e,r=t.get("highlightedValue");if(!r.length)return;let n=r.slice(0,-1);$m.highlightedValue(e,n)},setInitialFocus({scope:e}){fd(()=>{let t=$c.getContentEl(e);t?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){$g(e)&&fd(()=>{let e=$c.getTriggerEl(t);e?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,context:t}){e("onOpenChange")?.({open:!0,value:t.get("value")})},invokeOnClose({prop:e,context:t}){e("onOpenChange")?.({open:!1,value:t.get("value")})},toggleVisibility({send:e,prop:t}){null!=t("open")&&e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE"})},highlightFirstSelectedItem(e){let{context:t}=e,r=t.get("value");if(0===r.length)return;let n=hi(r);n&&$m.highlightedValue(e,n)},createGraceArea({context:e,event:t,scope:r}){let n=t.value.toString(),i=$c.getItemEl(r,n);if(!i)return;let a={x:t.clientX,y:t.clientY},l=i.getBoundingClientRect(),o=$c.getListEl(r,n);if(!o)return;let s=function(e,t,r,n={}){var i;let a,{padding:l=5}=n,o=function(e,t){let{x:r,y:n}=t,i=r-e.minX,a=e.maxX-r,l=n-e.minY,o=e.maxY-n,s=i,c="left";return a<s&&(s=a,c="right"),l<s&&(s=l,c="top"),o<s&&(c="bottom"),c}(OB({x:t.left,y:t.top,width:t.width,height:t.height}),e),s=function(e,t,r){let{x:n,y:i}=e;switch(t){case"top":return[OQ(n-r,i+r),OQ(n+r,i+r)];case"bottom":return[OQ(n-r,i-r),OQ(n+r,i-r)];case"left":return[OQ(n+r,i-r),OQ(n+r,i+r)];case"right":return[OQ(n-r,i-r),OQ(n-r,i+r)];default:return[]}}(e,o,l),c=[(a=Oj(OB({x:(i=r).left,y:i.top,width:i.width,height:i.height}))).top,a.right,a.bottom,a.left];return function(e){if(e.length<=1)return e.slice();let t=e.slice().sort((e,t)=>e.x!==t.x?e.x-t.x:e.y-t.y),r=[];for(let e of t){for(;r.length>=2&&0>=$d(r[r.length-2],r[r.length-1],e);)r.pop();r.push(e)}let n=[];for(let e=t.length-1;e>=0;e--){let r=t[e];for(;n.length>=2&&0>=$d(n[n.length-2],n[n.length-1],r);)n.pop();n.push(r)}return r.pop(),n.pop(),r.concat(n)}([...s,...c])}(a,l,o.getBoundingClientRect());e.set("graceArea",s),setTimeout(()=>{e.set("graceArea",null)},300)},clearGraceArea({context:e}){e.set("graceArea",null)},setHighlightingForHoveredItem(e){let t,{prop:r,event:n}=e,i=r("collection"),a=i.at(n.indexPath);t=a&&i.isBranchNode(a)?n.value:n.value.slice(0,-1),$m.highlightedValue(e,t)},syncInputValue({context:e,scope:t}){let r=$c.getHiddenInputEl(t);r&&kY(r,e.hash("value"))},dispatchChangeEvent({scope:e,context:t}){kH($c.getHiddenInputEl(e),{value:t.hash("value")})},scrollContentToTop({scope:e,prop:t}){let r=t("scrollToIndexFn");fd(()=>{let t=$c.getContentEl(e),n=t?.querySelectorAll('[data-part="list"]');n?.forEach((e,t)=>{r?r({index:0,immediate:!0,depth:t}):e.scrollTop=0})})}}}}),$m={value({context:e,prop:t},r){let n=t("collection");e.set("value",r);let i=r.map(e=>n.getIndexPath(e));e.set("valueIndexPath",i);let a=i.map(e=>e.map((t,r)=>{let i=e.slice(0,r+1);return n.at(i)}));e.set("selectedItems",a),t("onValueChange")?.({value:r,items:a})},highlightedValue({context:e,prop:t},r){let n=t("collection");e.set("highlightedValue",r);let i=(null==r?[]:n.getIndexPath(r))??[];e.set("highlightedIndexPath",i);let a=i.map((e,t)=>{let r=i.slice(0,t+1);return n.at(r)});e.set("highlightedItems",a),t("onHighlightChange")?.({highlightedValue:r,highlightedItems:a})}};function $g(e){let t=e.restoreFocus??e.previousEvent?.restoreFocus;return null==t||!!t}var $C=uZ("cascade-select").parts("root","label","control","trigger","indicator","valueText","clearTrigger","positioner","content","list","item","itemText","itemIndicator").build();let $v=(0,c0.createContext)(null),$y=()=>{let e=(0,c0.useContext)($v);if(!e)throw Error("FilterCascade parts must be rendered inside <FilterCascade>");return e},$b=(0,c0.createContext)({header:[],footer:[]}),$x=()=>{let{api:e,path:t,query:r,clear:n,isFlat:i,loadState:a}=$y(),{collection:l}=e,o=e=>l.getNodeChildren(e.node).map((t,r)=>({node:t,indexPath:[...e.indexPath,r],value:[...e.value,l.getNodeValue(t)]})),s=[],c={node:l.rootNode,indexPath:[],value:[]};for(let t=0;;t++){let r=o(c),n=0===t?void 0:a(c.node);s.push({...c,depth:t,items:r.filter(e=>!e.node.isParent),parentItem:r.find(e=>e.node.isParent),status:"loading"===n?"loading":n&&!Array.isArray(n)?"error":"ready"});let i=e.getItemState({item:c.node,...c}),d=i.highlightedChild;if(!d||!l.isBranchNode(d))break;c={node:d,indexPath:[...c.indexPath,i.highlightedIndex],value:[...c.value,l.getNodeValue(d)]}}return{levels:s,path:t,query:r,isSearchList:i,isEmpty:""!==r.trim()&&(s[0]?.items.length??0)===0,clear:n}},$O=8,$w=[],$S=(0,eQ.G)(({label:e,collection:t,value:r,defaultValue:n,onValueChange:i,open:a,defaultOpen:l,onOpenChange:o,loadChildren:s,parentLabel:c,searchIn:d="all",searchThreshold:u=$O,disabled:h=!1,className:p,children:f,"data-testid":m,...g})=>{let[C,v]=(0,c0.useState)(n??$w),y=r??C,[b,x]=(0,c0.useState)(""),[O,w]=(0,c0.useState)(()=>new Map),S=void 0!==c,E=(0,c0.useMemo)(()=>(({source:e,loaded:t,parentLabel:r})=>{let{accessors:n}=e,i=(e,a)=>{let l=n.getValue(e),o=[...a,l],s=n.getChildren?.(e)??t.get(o.join("\0")),c=Array.isArray(s)?s:void 0,d=!!c?.length||!!n.hasChildren?.(e),u={value:l,label:n.getLabel(e),data:e,path:o,disabled:n.isDisabled?.(e)};if(!d)return u;let h=(c??[]).map(e=>i(e,o));return r&&h.unshift({value:$o,label:r(e),data:e,path:[...o,$o],isParent:!0}),u.children=h,c||(u.childrenCount=0),u};return e.items.map(e=>i(e,[]))})({source:t,loaded:O,parentLabel:void 0===c?void 0:"string"==typeof c?()=>c:c}),[t,O,c]),k=""!==b.trim(),P=k&&"all"===d,D=(0,c0.useMemo)(()=>{if(!k)return E;if(P){let e=b.trim().toLowerCase(),t=[],r=(n,i)=>{if(!n.isParent)for(let a of(n.label.toLowerCase().includes(e)&&t.push({...n,value:n.path.join("\0"),trail:i,children:void 0,childrenCount:void 0}),n.children??[]))r(a,[...i,n.label])};for(let e of E)r(e,[]);return t}let e=b.trim().toLowerCase();return E.filter(t=>t.label.toLowerCase().includes(e))},[E,b,k,P]),A=(0,c0.useMemo)(()=>$a({rootNode:{value:"__filter-cascade-root__",label:"",path:[],children:D},isNodeDisabled:e=>!!e.disabled}),[D]),T=$s(E,y),M=P?D.some(e=>e.value===y.join("\0"))?[[y.join("\0")]]:[]:0===y.length?[]:S&&T.at(-1)?.children?[[...y,$o]]:[y],L=(e,t=!1)=>{let r=e.path.join("\0");if(!s||void 0===e.data||O.has(r)&&!t)return;let n=e=>w(t=>new Map(t).set(r,e));n("loading"),s(e.data,e.path).then(n,e=>n({error:e}))},I=(0,c0.useRef)(L);I.current=L,(0,c0.useEffect)(()=>{let e=E;for(let t of y){let r=e.find(e=>e.value===t);if(!r)return;if(0===r.childrenCount)return void I.current(r);e=r.children??[]}},[E,y]);let N=e=>{v(e),x(""),i?.({value:e,items:$s(E,e).flatMap(e=>void 0===e.data?[]:[e.data])})},F=(0,c0.useId)(),R=function(e,t){let{send:r,context:n,prop:i,scope:a,computed:l,state:o}=e,s=i("collection"),c=n.get("value"),d=o.hasTag("open"),u=o.matches("focused"),h=n.get("highlightedIndexPath"),p=n.get("highlightedValue"),f=n.get("currentPlacement"),m=f?yB(f):void 0,g=i("disabled")||n.get("fieldsetDisabled"),C=l("isInteractive"),v=l("valueAsString"),y=n.get("highlightedItems"),b=n.get("selectedItems"),x=be({...i("positioning"),placement:f}),O=e=>{let{item:t,indexPath:r,value:n}=e,i=r?r.length:0,a=n.every((e,t)=>e===p[t]),l=c.some(e=>uD(e,n)),o=s.getNodeChildren(s.at(r))[h[i]],d=h[i];return{value:n,disabled:s.getNodeDisabled(t),highlighted:a,selected:l,hasChildren:s.isBranchNode(t),depth:i,highlightedChild:o,highlightedIndex:d}},w=c.length>0,S=0===c.length;return{collection:s,open:d,focused:u,multiple:!!i("multiple"),disabled:g,value:c,highlightedValue:p,highlightedItems:y,selectedItems:b,hasSelectedItems:w,empty:S,valueAsString:v,reposition(e={}){r({type:"POSITIONING.SET",options:e})},focus(){$c.getTriggerEl(a)?.focus({preventScroll:!0})},setOpen(e){e!==d&&r({type:e?"OPEN":"CLOSE"})},setHighlightValue(e){r({type:"HIGHLIGHTED_VALUE.SET",value:e})},clearHighlightValue(){r({type:"HIGHLIGHTED_VALUE.CLEAR"})},setValue(e){r({type:"VALUE.SET",value:e})},selectValue(e){r({type:"ITEM.SELECT",value:e})},clearValue(e){e?r({type:"ITEM.CLEAR",value:e}):r({type:"VALUE.CLEAR"})},getItemState:O,getRootProps:()=>t.element({...$C.root.attrs,id:$c.getRootId(a),dir:i("dir"),"data-disabled":uF(g),"data-readonly":uF(i("readOnly")),"data-invalid":uF(i("invalid")),"data-state":d?"open":"closed"}),getLabelProps:()=>t.label({...$C.label.attrs,id:$c.getLabelId(a),dir:i("dir"),htmlFor:$c.getHiddenInputId(a),"data-disabled":uF(g),"data-readonly":uF(i("readOnly")),"data-invalid":uF(i("invalid")),onClick(e){if(e.defaultPrevented||g)return;let t=$c.getTriggerEl(a);t?.focus({preventScroll:!0})}}),getControlProps:()=>t.element({...$C.control.attrs,dir:i("dir"),id:$c.getControlId(a),"data-disabled":uF(g),"data-focus":uF(u),"data-readonly":uF(i("readOnly")),"data-invalid":uF(i("invalid")),"data-state":d?"open":"closed"}),getTriggerProps:()=>t.button({...$C.trigger.attrs,dir:i("dir"),id:$c.getTriggerId(a),type:"button",role:"combobox","aria-controls":$c.getContentId(a),"aria-expanded":d,"aria-haspopup":"listbox","aria-labelledby":$c.getLabelId(a),"data-state":d?"open":"closed","data-disabled":uF(g),"data-readonly":uF(i("readOnly")),"data-invalid":uF(i("invalid")),"data-focus":uF(u),"data-placement":f,"data-side":m,"data-placeholder-shown":uF(!w),disabled:g,onClick(e){e.defaultPrevented||C&&r({type:"TRIGGER.CLICK"})},onFocus(){r({type:"TRIGGER.FOCUS"})},onBlur(){r({type:"TRIGGER.BLUR"})},onKeyDown(e){if(e.defaultPrevented||!C)return;let t={ArrowUp(){r({type:"TRIGGER.ARROW_UP"})},ArrowDown(e){r({type:e.altKey?"OPEN":"TRIGGER.ARROW_DOWN"})},ArrowLeft(){r({type:"TRIGGER.ARROW_LEFT"})},ArrowRight(){r({type:"TRIGGER.ARROW_RIGHT"})},Enter(){r({type:"TRIGGER.ENTER"})},Space(){r({type:"TRIGGER.ENTER"})}}[fF(e,{dir:i("dir")})];t&&(t(e),e.preventDefault())}}),getClearTriggerProps:()=>t.button({...$C.clearTrigger.attrs,dir:i("dir"),id:$c.getClearTriggerId(a),type:"button","aria-label":"Clear value",hidden:!w,"data-disabled":uF(g),"data-readonly":uF(i("readOnly")),"data-invalid":uF(i("invalid")),disabled:g,onClick(e){e.defaultPrevented||r({type:"CLEAR_TRIGGER.CLICK"})}}),getPositionerProps:()=>t.element({...$C.positioner.attrs,dir:i("dir"),id:$c.getPositionerId(a),style:x.floating}),getContentProps(){let e=p?$c.getItemId(a,p.toString()):void 0;return t.element({...$C.content.attrs,id:$c.getContentId(a),role:"listbox","aria-labelledby":$c.getLabelId(a),"aria-activedescendant":e,"data-activedescendant":e,"data-state":d?"open":"closed","aria-multiselectable":i("multiple"),"aria-required":i("required"),"aria-readonly":i("readOnly"),hidden:!d,tabIndex:0,onKeyDown(e){let t,n;if(!C||(t=fk(e),n=t?.[0]??e.target,e.currentTarget!==n))return;if("Tab"===e.key&&!OZ(e))return void e.preventDefault();let a={ArrowDown(){r({type:"CONTENT.ARROW_DOWN"})},ArrowUp(){r({type:"CONTENT.ARROW_UP"})},ArrowRight(){r({type:"CONTENT.ARROW_RIGHT"})},ArrowLeft(){r({type:"CONTENT.ARROW_LEFT"})},Home(){r({type:"CONTENT.HOME"})},End(){r({type:"CONTENT.END"})},Enter(){r({type:"CONTENT.ENTER"})}," "(){r({type:"CONTENT.ENTER"})}}[fF(e,{dir:i("dir")})];if(a){a(),e.preventDefault();return}if(u4(e.target))return},onPointerMove(e){C&&r({type:"POINTER_MOVE",clientX:e.clientX,clientY:e.clientY,target:e.target})}})},getListProps(e){let r=O(e);return t.element({...$C.list.attrs,id:$c.getListId(a,r.value.toString()),dir:i("dir"),"data-depth":r.depth,"aria-level":r.depth,role:"group"})},getIndicatorProps:()=>t.element({...$C.indicator.attrs,id:$c.getIndicatorId(a),dir:i("dir"),"aria-hidden":!0,"data-state":d?"open":"closed","data-disabled":uF(g),"data-readonly":uF(i("readOnly")),"data-invalid":uF(i("invalid"))}),getItemProps(e){let{indexPath:n}=e,l=O(e);return t.element({...$C.item.attrs,id:$c.getItemId(a,l.value.toString()),dir:i("dir"),role:"treeitem","aria-haspopup":l.hasChildren?"menu":void 0,"aria-expanded":!!l.hasChildren&&l.highlighted,"aria-controls":l.hasChildren?$c.getListId(a,l.value.toString()):void 0,"aria-owns":l.hasChildren?$c.getListId(a,l.value.toString()):void 0,"aria-disabled":uR(l.disabled),"data-value":l.value.toString(),"data-disabled":uF(l.disabled),"data-highlighted":uF(l.highlighted),"data-selected":uF(l.selected),"data-depth":l.depth,"data-state":l.selected?"checked":"unchecked","data-type":l.hasChildren?"branch":"leaf","data-index-path":n.toString(),onDoubleClick(){l.disabled||r({type:"CLOSE"})},onClick(e){e.defaultPrevented||!C||l.disabled||r({type:"ITEM.CLICK",value:l.value,indexPath:n})},onPointerMove(e){!C||l.disabled||"mouse"!==e.pointerType||"pointer"!==vS||uD(l.value,p)||r({type:"ITEM.POINTER_ENTER",value:l.value,indexPath:n,clientX:e.clientX,clientY:e.clientY})},onPointerLeave(e){!C||l.disabled||"mouse"!==e.pointerType||"pointer"===vS&&r({type:"ITEM.POINTER_LEAVE",value:l.value,indexPath:n,clientX:e.clientX,clientY:e.clientY})}})},getItemTextProps(e){let{item:r}=e,n=s.getNodeValue(r),a=O(e);return t.element({dir:i("dir"),...$C.itemText.attrs,"data-value":n,"data-highlighted":uF(a.highlighted),"data-state":a.selected?"checked":"unchecked","data-disabled":uF(a.disabled)})},getItemIndicatorProps(e){let{item:r}=e,n=s.getNodeValue(r),a=O(e);return t.element({...$C.itemIndicator.attrs,dir:i("dir"),"data-value":n,"data-highlighted":uF(a.highlighted),"data-type":a.hasChildren?"branch":"leaf","data-state":a.selected?"checked":"unchecked",hidden:!a.selected})},getValueTextProps:()=>t.element({...$C.valueText.attrs,dir:i("dir"),"data-disabled":uF(g),"data-invalid":uF(i("invalid")),"data-focus":uF(u)}),getHiddenInputProps(){let e=n.hash("value");return t.input({name:i("name"),form:i("form"),disabled:g,multiple:i("multiple"),required:i("required"),readOnly:i("readOnly"),hidden:!0,"aria-hidden":!0,id:$c.getHiddenInputId(a),defaultValue:e,"aria-labelledby":$c.getLabelId(a)})}}}(hk($f,{id:F,collection:A,value:M,open:a,defaultOpen:l,disabled:h,allowParentSelection:!S,highlightTrigger:"hover",positioning:{placement:"bottom-start",gutter:4},scrollToIndexFn:({index:e,depth:t})=>{let r=document.getElementById(`cascade-select:${F}:content`),n=[...r?.querySelectorAll(`[data-slot=filter-cascade-item][data-depth="${t+1}"]`)??[]].find(t=>t.dataset.indexPath?.split(",").at(-1)===String(e));n?.scrollIntoView({block:"nearest"})},onHighlightChange:e=>{let t=e.highlightedItems.at(-1);t?.childrenCount===0&&I.current(t)},onValueChange:e=>{let t=e.value[0]??[];P?N(t[0]?t[0].split("\0"):[]):N(t.at(-1)===$o?t.slice(0,-1):t)},onOpenChange:e=>{e.open||x(""),o?.(e.open)}}),hA),V=(0,c0.useRef)(null),_={api:R,accessors:t.accessors,label:e,path:T,clear:()=>N($w),triggerRef:V,query:b,setQuery:x,isSearchable:t.items.length>=u,isFlat:P,loadState:e=>O.get(e.path.join("\0")),retry:e=>L(e,!0),disabled:h};return(0,eB.Y)($v.Provider,{value:_,children:(0,eB.Y)(m3,{value:m,children:(0,eB.Y)("div",{...g,...R.getRootProps(),"data-slot":"filter-cascade","data-testid":m,className:(0,m2.cn)("inline-flex min-w-0",p),children:f})})})},"FilterCascade");$S.displayName="FilterCascade";let $E=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(10);l[0]!==e?({className:t,"data-testid":n,...r}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=n):(t=l[1],r=l[2],n=l[3]);let o=m5("section",n);return l[4]!==t?(i=(0,m2.cn)("flex flex-col gap-1 before:mx-8 before:my-4 before:h-px before:bg-border-primary",t),l[4]=t,l[5]=i):i=l[5],l[6]!==r||l[7]!==i||l[8]!==o?(a=(0,eB.Y)("div",{role:"group",...r,"data-slot":"filter-cascade-section","data-testid":o,className:i}),l[6]=r,l[7]=i,l[8]=o,l[9]=a):a=l[9],a},"FilterCascadeSection");$E.displayName="FilterCascadeSection";let $k=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v=(0,ej.c)(37);v[0]!==e?({checked:t,onCheckedChange:a,onClick:l,onKeyDown:o,icon:i,className:n,children:r,"data-testid":c,...s}=e,v[0]=e,v[1]=t,v[2]=r,v[3]=n,v[4]=i,v[5]=a,v[6]=l,v[7]=o,v[8]=s,v[9]=c):(t=v[1],r=v[2],n=v[3],i=v[4],a=v[5],l=v[6],o=v[7],s=v[8],c=v[9]);let y=m5("checkbox-item",c);v[10]!==t||v[11]!==a||v[12]!==l?(d=e=>{l?.(e),e.defaultPrevented||a?.(!t)},v[10]=t,v[11]=a,v[12]=l,v[13]=d):d=v[13];let b=d;v[14]!==o?(u=e=>{o?.(e),("Enter"===e.key||" "===e.key)&&e.stopPropagation()},v[14]=o,v[15]=u):u=v[15];let x=u,O=t?"checked":"unchecked";return v[16]!==n?(h=(0,m2.cn)((0,SE.OZ)({variant:"default"}),"w-full text-left focus-visible:bg-states-primary-hover","data-[state=checked]:bg-states-primary-active",n),v[16]=n,v[17]=h):h=v[17],v[18]!==i?(p=i&&(0,eB.Y)("span",{className:"flex h-20 w-16 shrink-0 items-center justify-center",children:i}),v[18]=i,v[19]=p):p=v[19],v[20]!==r?(f=(0,eB.Y)("span",{className:"min-w-0 flex-1 truncate",children:r}),v[20]=r,v[21]=f):f=v[21],v[22]!==t?(m=t&&(0,eB.Y)(t4,{}),v[22]=t,v[23]=m):m=v[23],v[24]!==m?(g=(0,eB.Y)("span",{className:SE.yW,children:m}),v[24]=m,v[25]=g):g=v[25],v[26]!==t||v[27]!==b||v[28]!==x||v[29]!==s||v[30]!==O||v[31]!==h||v[32]!==p||v[33]!==f||v[34]!==g||v[35]!==y?(C=(0,eB.FD)("button",{type:"button",role:"menuitemcheckbox","aria-checked":t,...s,"data-slot":"filter-cascade-checkbox-item","data-testid":y,"data-state":O,onClick:b,onKeyDown:x,className:h,children:[p,f,g]}),v[26]=t,v[27]=b,v[28]=x,v[29]=s,v[30]=O,v[31]=h,v[32]=p,v[33]=f,v[34]=g,v[35]=y,v[36]=C):C=v[36],C},"FilterCascadeCheckboxItem");$k.displayName="FilterCascadeCheckboxItem";let $P=(0,c0.createContext)(null),$D=e=>{let t=(0,c0.useContext)($P);if(!t)throw Error(`${e} must be rendered inside <FilterCascadeItem>`);return t},$A=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O=(0,ej.c)(61);O[0]!==e?({ref:a,item:n,className:r,children:t,"data-testid":l,...i}=e,O[0]=e,O[1]=t,O[2]=r,O[3]=n,O[4]=i,O[5]=a,O[6]=l):(t=O[1],r=O[2],n=O[3],i=O[4],a=O[5],l=O[6]);let{api:w,accessors:S}=$y(),E=m5("item",l);if(O[7]!==S||O[8]!==w||O[9]!==t||O[10]!==r||O[11]!==n||O[12]!==i||O[13]!==a||O[14]!==E){let e,l,y,b={item:n.node,indexPath:n.indexPath,value:n.value},x=w.getItemState(b),k=n.node.data;O[27]!==S||O[28]!==k?(e=void 0!==k&&S.getIcon?.(k)!=null,O[27]=S,O[28]=k,O[29]=e):e=O[29];let P=e;O[30]!==S||O[31]!==k||O[32]!==n.node.isParent||O[33]!==n.node.trail?.length?(l=!!n.node.trail?.length||void 0!==k&&!n.node.isParent&&S.getDescription?.(k)!=null,O[30]=S,O[31]=k,O[32]=n.node.isParent,O[33]=n.node.trail?.length,O[34]=l):l=O[34];let D=l;o=$P.Provider,d=n,h=i,p=w.getItemProps(b),f=a,m="filter-cascade-item",g=n.node.isParent||void 0,C=E,O[35]!==r?(v=(0,m2.cn)((0,SE.OZ)({variant:"default"}),"items-start gap-4 data-[state=checked]:bg-states-primary-active",r),O[35]=r,O[36]=v):v=O[36],O[37]!==t||O[38]!==D||O[39]!==P?(y=t??(0,eB.FD)(eB.FK,{children:[P&&(0,eB.Y)($L,{}),(0,eB.FD)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,eB.Y)($T,{}),D&&(0,eB.Y)($M,{})]})]}),O[37]=t,O[38]=D,O[39]=P,O[40]=y):y=O[40],O[41]!==y?(c=(0,eB.Y)("span",{className:"flex min-w-0 flex-1 items-start gap-8",children:y}),O[41]=y,O[42]=c):c=O[42],O[43]===Symbol.for("react.memo_cache_sentinel")?(s=(0,m2.cn)(SE.yW,"h-20"),O[43]=s):s=O[43],u=x.hasChildren?(0,eB.Y)(rr.c,{}):(0,eB.Y)("span",{...w.getItemIndicatorProps(b),className:"flex",children:x.selected&&(0,eB.Y)(t4,{})}),O[7]=S,O[8]=w,O[9]=t,O[10]=r,O[11]=n,O[12]=i,O[13]=a,O[14]=E,O[15]=o,O[16]=s,O[17]=c,O[18]=d,O[19]=u,O[20]=h,O[21]=p,O[22]=f,O[23]=m,O[24]=g,O[25]=C,O[26]=v}else o=O[15],s=O[16],c=O[17],d=O[18],u=O[19],h=O[20],p=O[21],f=O[22],m=O[23],g=O[24],C=O[25],v=O[26];return O[44]!==s||O[45]!==u?(y=(0,eB.Y)("span",{className:s,children:u}),O[44]=s,O[45]=u,O[46]=y):y=O[46],O[47]!==c||O[48]!==y||O[49]!==h||O[50]!==p||O[51]!==f||O[52]!==m||O[53]!==g||O[54]!==C||O[55]!==v?(b=(0,eB.FD)("div",{...h,...p,ref:f,"data-slot":m,"data-parent":g,"data-testid":C,className:v,children:[c,y]}),O[47]=c,O[48]=y,O[49]=h,O[50]=p,O[51]=f,O[52]=m,O[53]=g,O[54]=C,O[55]=v,O[56]=b):b=O[56],O[57]!==o||O[58]!==d||O[59]!==b?(x=(0,eB.Y)(o,{value:d,children:b}),O[57]=o,O[58]=d,O[59]=b,O[60]=x):x=O[60],x},"FilterCascadeItem");$A.displayName="FilterCascadeItem";let $T=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(16);o[0]!==e?({className:r,children:t,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n):(t=o[1],r=o[2],n=o[3]);let{api:s}=$y(),c=$D("FilterCascadeItemText");o[4]!==s||o[5]!==c.indexPath||o[6]!==c.node||o[7]!==c.value?(i=s.getItemTextProps({item:c.node,indexPath:c.indexPath,value:c.value}),o[4]=s,o[5]=c.indexPath,o[6]=c.node,o[7]=c.value,o[8]=i):i=o[8],o[9]!==r?(a=(0,m2.cn)("truncate",r),o[9]=r,o[10]=a):a=o[10];let d=t??c.node.label;return o[11]!==n||o[12]!==i||o[13]!==a||o[14]!==d?(l=(0,eB.Y)("span",{...n,...i,"data-slot":"filter-cascade-item-text",className:a,children:d}),o[11]=n,o[12]=i,o[13]=a,o[14]=d,o[15]=l):l=o[15],l},"FilterCascadeItemText");$T.displayName="FilterCascadeItemText";let $M=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(14);o[0]!==e?({className:r,children:t,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n):(t=o[1],r=o[2],n=o[3]);let{accessors:s}=$y(),c=$D("FilterCascadeItemDescription"),d=c.node.data;o[4]!==s||o[5]!==d||o[6]!==c.node.trail?(i=c.node.trail?.length?c.node.trail.join(" › "):void 0===d?null:s.getDescription?.(d),o[4]=s,o[5]=d,o[6]=c.node.trail,o[7]=i):i=o[7];let u=i;o[8]!==r?(a=(0,m2.cn)("truncate text-xs text-text-secondary",r),o[8]=r,o[9]=a):a=o[9];let h=t??u;return o[10]!==n||o[11]!==a||o[12]!==h?(l=(0,eB.Y)("span",{...n,"data-slot":"filter-cascade-item-description",className:a,children:h}),o[10]=n,o[11]=a,o[12]=h,o[13]=l):l=o[13],l},"FilterCascadeItemDescription");$M.displayName="FilterCascadeItemDescription";let $L=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(14);o[0]!==e?({className:r,children:t,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n):(t=o[1],r=o[2],n=o[3]);let{accessors:s}=$y(),c=$D("FilterCascadeItemIcon").node.data;return o[4]!==r?(i=(0,m2.cn)("flex h-20 w-16 shrink-0 items-center justify-center",r),o[4]=r,o[5]=i):i=o[5],o[6]!==s||o[7]!==t||o[8]!==c?(a=t??(void 0===c?null:s.getIcon?.(c)),o[6]=s,o[7]=t,o[8]=c,o[9]=a):a=o[9],o[10]!==n||o[11]!==i||o[12]!==a?(l=(0,eB.Y)("span",{...n,"data-slot":"filter-cascade-item-icon",className:i,children:a}),o[10]=n,o[11]=i,o[12]=a,o[13]=l):l=o[13],l},"FilterCascadeItemIcon");$L.displayName="FilterCascadeItemIcon";let $I=(0,c0.createContext)(null),$N=e=>{let t=(0,c0.useContext)($I);if(!t)throw Error(`${e} must be rendered inside <FilterCascadeLevel>`);return t},$F=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h=(0,ej.c)(33);h[0]!==e?({ref:a,level:n,className:r,children:t,"data-testid":l,...i}=e,h[0]=e,h[1]=t,h[2]=r,h[3]=n,h[4]=i,h[5]=a,h[6]=l):(t=h[1],r=h[2],n=h[3],i=h[4],a=h[5],l=h[6]);let{api:p,retry:f}=$y(),{header:m,footer:g}=(0,c0.useContext)($b),C=m5("level",l),v=0===n.depth;if("loading"===n.status){let e;h[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eB.Y)($R,{}),h[7]=e):e=h[7],o=e}else if("error"===n.status){let e;h[8]!==n.node||h[9]!==f?(e=(0,eB.FD)("div",{className:"flex items-center justify-between gap-8 py-2 pl-8 text-sm text-text-secondary",children:["Couldn’t load",(0,eB.Y)(vn.$,{variant:"ghost",color:"neutral",size:"small",onClick:()=>f(n.node),children:"Retry"})]}),h[8]=n.node,h[9]=f,h[10]=e):e=h[10],o=e}else{let e;h[11]!==t?(e=t??(0,eB.FD)(eB.FK,{children:[(0,eB.Y)($Y,{}),(0,eB.Y)($V,{})]}),h[11]=t,h[12]=e):e=h[12],o=e}h[13]!==p||h[14]!==n.indexPath||h[15]!==n.node||h[16]!==n.value?(s=p.getListProps({item:n.node,indexPath:n.indexPath,value:n.value}),h[13]=p,h[14]=n.indexPath,h[15]=n.node,h[16]=n.value,h[17]=s):s=h[17];let y=n.depth;h[18]!==r?(c=(0,m2.cn)("flex w-320 shrink-0 flex-col gap-1 overflow-y-auto overscroll-none","max-h-[min(400px,var(--available-height))]","rounded-12 border border-border-primary-light bg-bg-surface-2 p-8 shadow-md","not-first:-ml-4",r),h[18]=r,h[19]=c):c=h[19];let b=v&&m,x=v&&g;return h[20]!==o||h[21]!==n.depth||h[22]!==i||h[23]!==a||h[24]!==s||h[25]!==c||h[26]!==b||h[27]!==x||h[28]!==C?(d=(0,eB.FD)("div",{...i,...s,ref:a,"data-slot":"filter-cascade-level","data-level":y,"data-testid":C,className:c,children:[b,o,x]}),h[20]=o,h[21]=n.depth,h[22]=i,h[23]=a,h[24]=s,h[25]=c,h[26]=b,h[27]=x,h[28]=C,h[29]=d):d=h[29],h[30]!==n||h[31]!==d?(u=(0,eB.Y)($I.Provider,{value:n,children:d}),h[30]=n,h[31]=d,h[32]=u):u=h[32],u},"FilterCascadeLevel");$F.displayName="FilterCascadeLevel";let $R=(0,eQ.G)(()=>{let e,t,r=(0,ej.c)(3),n=m5("level-loading");return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=[64,48,56].map($Z),r[0]=e):e=r[0],r[1]!==n?(t=(0,eB.Y)("div",{"aria-busy":!0,"data-slot":"filter-cascade-level-loading","data-testid":n,className:"flex flex-col gap-1",children:e}),r[1]=n,r[2]=t):t=r[2],t},"LevelLoading"),$V=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(8),{filter:i,children:a}=e,l=$N("FilterCascadeItems");n[0]!==i||n[1]!==l.items?(t=i?l.items.filter(i):l.items,n[0]=i,n[1]=l.items,n[2]=t):t=n[2];let o=t;if(n[3]!==a||n[4]!==o){let e;n[6]!==a?(e=e=>a?(0,eB.Y)($_,{children:a(e)},e.node.value):(0,eB.Y)($A,{item:e},e.node.value),n[6]=a,n[7]=e):e=n[7],r=o.map(e),n[3]=a,n[4]=o,n[5]=r}else r=n[5];return r},"FilterCascadeItems");$V.displayName="FilterCascadeItems";let $_=({children:e})=>e,$Y=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),n=$N("FilterCascadeParentItem");return r[0]!==n.parentItem||r[1]!==e?(t=n.parentItem?(0,eB.Y)($A,{...e,item:n.parentItem}):null,r[0]=n.parentItem,r[1]=e,r[2]=t):t=r[2],t},"FilterCascadeParentItem");$Y.displayName="FilterCascadeParentItem";let $$=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(9),{children:i}=e,{levels:a,isEmpty:l,isSearchList:o}=$x();n[0]!==i||n[1]!==l||n[2]!==o?(t=e=>l?(0,eB.Y)($z,{}):o?void 0:i?.(e),n[0]=i,n[1]=l,n[2]=o,n[3]=t):t=n[3];let s=t;if(n[4]!==a||n[5]!==s){let e;n[7]!==s?(e=e=>(0,eB.Y)($F,{level:e,children:s(e)},e.depth),n[7]=s,n[8]=e):e=n[8],r=a.map(e),n[4]=a,n[5]=s,n[6]=r}else r=n[6];return r},"FilterCascadeLevels");$$.displayName="FilterCascadeLevels";let $H=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(10);l[0]!==e?({className:t,"data-testid":n,...r}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=n):(t=l[1],r=l[2],n=l[3]);let o=m5("group-label",n);return l[4]!==t?(i=(0,m2.cn)((0,SE.d)({inset:!1}),t),l[4]=t,l[5]=i):i=l[5],l[6]!==r||l[7]!==i||l[8]!==o?(a=(0,eB.Y)("div",{...r,"data-slot":"filter-cascade-group-label","data-testid":o,className:i}),l[6]=r,l[7]=i,l[8]=o,l[9]=a):a=l[9],a},"FilterCascadeGroupLabel");$H.displayName="FilterCascadeGroupLabel";let $z=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({className:r,children:t,"data-testid":i,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("empty",i);o[5]!==r?(a=(0,m2.cn)("px-8 py-10 text-center text-sm text-text-secondary",r),o[5]=r,o[6]=a):a=o[6];let c=t??"No results";return o[7]!==n||o[8]!==a||o[9]!==c||o[10]!==s?(l=(0,eB.Y)("div",{...n,"data-slot":"filter-cascade-empty","data-testid":s,className:a,children:c}),o[7]=n,o[8]=a,o[9]=c,o[10]=s,o[11]=l):l=o[11],l},"FilterCascadeEmpty");function $Z(e){return(0,eB.FD)("div",{className:"flex items-center gap-8 px-8 py-8",children:[(0,eB.Y)(xQ,{width:"16px",height:"16px",rounded:"full"}),(0,eB.Y)(xQ,{width:`${e}%`,height:"12px",rounded:4})]},e)}$z.displayName="FilterCascadeEmpty";var $Q={itemToValue:e=>"string"==typeof e?e:(0,u$.Gv)(e)&&(0,u$.cK)(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:(0,u$.Gv)(e)&&(0,u$.cK)(e,"label")?e.label:$Q.itemToValue(e),isItemDisabled:e=>!!((0,u$.Gv)(e)&&(0,u$.cK)(e,"disabled"))&&!!e.disabled},$B=class e{constructor(t){Y0(this,"options",t),Y0(this,"items"),Y0(this,"indexMap",null),Y0(this,"copy",t=>new e({...this.options,items:t??[...this.items]})),Y0(this,"isEqual",e=>uD(this.items,e.items)),Y0(this,"setItems",e=>this.copy(e)),Y0(this,"getValues",(e=this.items)=>{let t=[];for(let r of e){let e=this.getItemValue(r);null!=e&&t.push(e)}return t}),Y0(this,"find",e=>{if(null==e)return null;let t=this.indexOf(e);return -1!==t?this.at(t):null}),Y0(this,"findMany",e=>{let t=[];for(let r of e){let e=this.find(r);null!=e&&t.push(e)}return t}),Y0(this,"at",e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;for(let[,r]of this.group())for(let n of r){if(t===e)return n;t++}return null}),Y0(this,"sortFn",(e,t)=>(this.indexOf(e)??0)-(this.indexOf(t)??0)),Y0(this,"sort",e=>[...e].sort(this.sortFn.bind(this))),Y0(this,"getItemValue",e=>null==e?null:this.options.itemToValue?.(e)??$Q.itemToValue(e)),Y0(this,"getItemDisabled",e=>null!=e&&(this.options.isItemDisabled?.(e)??$Q.isItemDisabled(e))),Y0(this,"stringifyItem",e=>null==e?null:this.options.itemToString?.(e)??$Q.itemToString(e)),Y0(this,"stringify",e=>null==e?null:this.stringifyItem(this.find(e))),Y0(this,"stringifyItems",(e,t=", ")=>{let r=[];for(let t of e){let e=this.stringifyItem(t);null!=e&&r.push(e)}return r.join(t)}),Y0(this,"stringifyMany",(e,t)=>this.stringifyItems(this.findMany(e),t)),Y0(this,"has",e=>-1!==this.indexOf(e)),Y0(this,"hasItem",e=>null!=e&&this.has(this.getItemValue(e))),Y0(this,"group",()=>{let{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];let r=new Map;this.items.forEach((t,n)=>{let i=e(t,n);r.has(i)||r.set(i,[]),r.get(i).push(t)});let n=Array.from(r.entries());return t&&n.sort(([e],[r])=>{if("function"==typeof t)return t(e,r);if(Array.isArray(t)){let n=t.indexOf(e),i=t.indexOf(r);return -1===n?1:-1===i?-1:n-i}return"asc"===t?e.localeCompare(r):"desc"===t?r.localeCompare(e):0}),n}),Y0(this,"getNextValue",(e,t=1,r=!1)=>{let n=this.indexOf(e);if(-1===n)return null;for(n=r?Math.min(n+t,this.size-1):n+t;n<=this.size&&this.getItemDisabled(this.at(n));)n++;return this.getItemValue(this.at(n))}),Y0(this,"getPreviousValue",(e,t=1,r=!1)=>{let n=this.indexOf(e);if(-1===n)return null;for(n=r?Math.max(n-t,0):n-t;n>=0&&this.getItemDisabled(this.at(n));)n--;return this.getItemValue(this.at(n))}),Y0(this,"indexOf",e=>{if(null==e)return -1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(t=>this.getItemValue(t)===e);if(!this.indexMap){this.indexMap=new Map;let e=0;for(let[,t]of this.group())for(let r of t){let t=this.getItemValue(r);null!=t&&this.indexMap.set(t,e),e++}}return this.indexMap.get(e)??-1}),Y0(this,"getByText",(e,t)=>{let r=null!=t?this.indexOf(t):-1,n=1===e.length;for(let i=0;i<this.items.length;i++){let a=this.items[(r+i+1)%this.items.length];if((!n||this.getItemValue(a)!==t)&&!this.getItemDisabled(a)&&$j(this.stringifyItem(a),e))return a}}),Y0(this,"search",(e,t)=>{let{state:r,currentValue:n,timeout:i=350}=t,a=r.keysSoFar+e,l=a.length>1&&Array.from(a).every(e=>e===a[0])?a[0]:a,o=this.getByText(l,n),s=this.getItemValue(o);function c(){clearTimeout(r.timer),r.timer=-1}return!function e(t){r.keysSoFar=t,c(),""!==t&&(r.timer=+setTimeout(()=>{e(""),c()},i))}(a),s}),Y0(this,"update",(e,t)=>{let r=this.indexOf(e);return -1===r?this:this.copy([...this.items.slice(0,r),t,...this.items.slice(r+1)])}),Y0(this,"upsert",(e,t,r="append")=>{let n=this.indexOf(e);return -1===n?("append"===r?this.append:this.prepend)(t):this.copy([...this.items.slice(0,n),t,...this.items.slice(n+1)])}),Y0(this,"insert",(e,...t)=>this.copy($G(this.items,e,...t))),Y0(this,"insertBefore",(e,...t)=>{let r=this.indexOf(e);if(-1===r)if(0!==this.items.length)return this;else r=0;return this.copy($G(this.items,r,...t))}),Y0(this,"insertAfter",(e,...t)=>{let r=this.indexOf(e);if(-1===r)if(0!==this.items.length)return this;else r=0;return this.copy($G(this.items,r+1,...t))}),Y0(this,"prepend",(...e)=>this.copy($G(this.items,0,...e))),Y0(this,"append",(...e)=>this.copy($G(this.items,this.items.length,...e))),Y0(this,"filter",e=>{let t=this.items.filter((t,r)=>e(this.stringifyItem(t),r,t));return this.copy(t)}),Y0(this,"remove",(...e)=>{let t=e.map(e=>"string"==typeof e?e:this.getItemValue(e));return this.copy(this.items.filter(e=>{let r=this.getItemValue(e);return null!=r&&!t.includes(r)}))}),Y0(this,"move",(e,t)=>{let r=this.indexOf(e);return -1===r?this:this.copy($U(this.items,[r],t))}),Y0(this,"moveBefore",(e,...t)=>{let r=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===r)return this;let n=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy($U(this.items,n,r))}),Y0(this,"moveAfter",(e,...t)=>{let r=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===r)return this;let n=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy($U(this.items,n,r+1))}),Y0(this,"reorder",(e,t)=>this.copy($U(this.items,[e],t))),Y0(this,"compareValue",(e,t)=>{let r=this.indexOf(e),n=this.indexOf(t);return r<n?-1:+(r>n)}),Y0(this,"range",(e,t)=>{let r=[],n=e;for(;null!=n;){if(this.find(n)&&r.push(n),n===t)return r;n=this.getNextValue(n)}return[]}),Y0(this,"getValueRange",(e,t)=>e&&t?0>=this.compareValue(e,t)?this.range(e,t):this.range(t,e):[]),Y0(this,"toString",()=>{let e="";for(let t of this.items)e+=[this.getItemValue(t),this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(":")+",";return e}),Y0(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}*[Symbol.iterator](){yield*this.items}},$j=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function $G(e,t,...r){return[...e.slice(0,t),...r,...e.slice(t)]}function $U(e,t,r){let n=(t=[...t].sort((e,t)=>e-t)).map(t=>e[t]);for(let r=t.length-1;r>=0;r--)e=[...e.slice(0,t[r]),...e.slice(t[r]+1)];return r=Math.max(0,r-t.filter(e=>e<r).length),[...e.slice(0,r),...n,...e.slice(r)]}var $W=e=>new $B(e),[$q,$X]=(0,ua.q)({name:"SelectContext",hookName:"useSelectContext",providerName:"<SelectProvider />"}),$K=(0,c0.forwardRef)((e,t)=>{let r=$X(),n=(0,p8.v)(r.getClearTriggerProps(),e);return(0,eB.Y)(fr.button,{...n,ref:t})});$K.displayName="SelectClearTrigger";var $J=(0,c0.forwardRef)((e,t)=>{let r=$X(),n=vd(),i=(0,p8.v)(r.getContentProps(),n.getPresenceProps(),e),a=p6(n.ref,t);return(0,eB.Y)(vs,{presence:n,children:(0,eB.Y)(fr.div,{...i,ref:a})})});$J.displayName="SelectContent";var $1=e=>e.children($X()),$2=(0,c0.forwardRef)((e,t)=>{let r=$X(),n=(0,p8.v)(r.getControlProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});$2.displayName="SelectControl";var $0=(0,c0.forwardRef)((e,t)=>{let r=$X(),n=(0,p8.v)(r.getHiddenSelectProps(),e),i=0===r.value.length,a=(0,NM.f)();return(0,eB.FD)(fr.select,{"aria-describedby":a?.ariaDescribedby,...n,ref:t,children:[i&&(0,eB.Y)("option",{value:""}),r.collection.items.map((e,t)=>(0,eB.Y)("option",{value:r.collection.getItemValue(e)??"",disabled:r.collection.getItemDisabled(e),children:r.collection.stringifyItem(e)},t))]})});$0.displayName="SelectHiddenSelect";var $3=(0,c0.forwardRef)((e,t)=>{let r=$X(),n=(0,p8.v)(r.getIndicatorProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});$3.displayName="SelectIndicator";var[$5,$4]=(0,ua.q)({name:"SelectItemContext",hookName:"useSelectItemContext",providerName:"<SelectItemProvider />"}),[$7,$9]=(0,ua.q)({name:"SelectItemPropsContext",hookName:"useSelectItemPropsContext",providerName:"<SelectItemPropsProvider />"}),$6=p1(),$8=(0,c0.forwardRef)((e,t)=>{let[r,n]=$6(e,["item","persistFocus"]),i=$X(),a=(0,p8.v)(i.getItemProps(r),n),l=i.getItemState(r);return(0,eB.Y)($7,{value:r,children:(0,eB.Y)($5,{value:l,children:(0,eB.Y)(fr.div,{...a,ref:t})})})});$8.displayName="SelectItem";var He=e=>e.children($4()),[Ht,Hr]=(0,ua.q)({name:"SelectItemGroupPropsContext",hookName:"useSelectItemGroupPropsContext",providerName:"<SelectItemGroupPropsProvider />"}),Hn=p1(),Hi=(0,c0.forwardRef)((e,t)=>{let r=(0,c0.useId)(),[n,i]=Hn(e,["id"]),a={id:r,...n},l=$X(),o=(0,p8.v)(l.getItemGroupProps(a),i);return(0,eB.Y)(Ht,{value:a,children:(0,eB.Y)(fr.div,{...o,ref:t})})});Hi.displayName="SelectItemGroup";var Ha=(0,c0.forwardRef)((e,t)=>{let r=$X(),n=Hr(),i=(0,p8.v)(r.getItemGroupLabelProps({htmlFor:n.id}),e);return(0,eB.Y)(fr.div,{...i,ref:t})});Ha.displayName="SelectItemGroupLabel";var Hl=(0,c0.forwardRef)((e,t)=>{let r=$X(),n=$9(),i=(0,p8.v)(r.getItemIndicatorProps(n),e);return(0,eB.Y)(fr.div,{...i,ref:t})});Hl.displayName="SelectItemIndicator";var Ho=(0,c0.forwardRef)((e,t)=>{let r=$X(),n=$9(),i=(0,p8.v)(r.getItemTextProps(n),e);return(0,eB.Y)(fr.span,{...i,ref:t})});Ho.displayName="SelectItemText";var Hs=(0,c0.forwardRef)((e,t)=>{let r=$X(),n=(0,p8.v)(r.getLabelProps(),e);return(0,eB.Y)(fr.label,{...n,ref:t})});Hs.displayName="SelectLabel";var Hc=(0,c0.forwardRef)((e,t)=>{let r=$X(),n=(0,p8.v)(r.getListProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});Hc.displayName="SelectList";var Hd=(0,c0.forwardRef)((e,t)=>{let r=$X(),n=(0,p8.v)(r.getPositionerProps(),e);return vd().unmounted?null:(0,eB.Y)(fr.div,{...n,ref:t})});function Hu({values:e,collection:t,selectedItemMap:r}){let n=[];for(let i of e){let e=t.find(i)??r.get(i);null!=e&&n.push(e)}return n}function Hh({selectedItemMap:e,values:t,selectedItems:r,collection:n}){let i=new Map(e);for(let e of r){let t=n.getItemValue(e);null!=t&&i.set(t,e)}let a=new Set(t);for(let e of i.keys())a.has(e)||i.delete(e);return i}function Hp({values:e,collection:t,selectedItemMap:r}){let n=Hu({values:e,collection:t,selectedItemMap:r}),i=Hh({selectedItemMap:r,values:e,selectedItems:n,collection:t});return{selectedItems:n,nextSelectedItemMap:i}}Hd.displayName="SelectPositioner";var Hf=e=>new $B(e);Hf.empty=()=>new $B({items:[]});var Hm=e=>e.ids?.root??`select:${e.id}`,Hg=e=>e.ids?.content??`select:${e.id}:content`,HC=e=>e.ids?.trigger??`select:${e.id}:trigger`,Hv=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,Hy=e=>e.ids?.label??`select:${e.id}:label`,Hb=e=>e.ids?.control??`select:${e.id}:control`,Hx=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,HO=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,Hw=e=>e.ids?.positioner??`select:${e.id}:positioner`,HS=(e,t)=>e.ids?.itemGroup?.(t)??`select:${e.id}:optgroup:${t}`,HE=(e,t)=>e.ids?.itemGroupLabel?.(t)??`select:${e.id}:optgroup-label:${t}`,Hk=e=>e.getById(HO(e)),HP=e=>e.getById(Hg(e)),HD=e=>e.getById(Hb(e)),HA=e=>e.getById(HC(e)),HT=e=>e.getById(Hv(e)),HM=e=>e.getById(Hw(e)),HL=(e,t)=>null==t?null:e.getById(Hx(e,t)),{and:HI,not:HN,or:HF}=uS(),HR=uE({props:({props:e})=>({loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??Hf.empty(),positioning:{placement:"bottom-start",gutter:8,...e.positioning}}),context({prop:e,bindable:t,getContext:r}){let n=e("value")??e("defaultValue")??[],i=e("collection").findMany(n);return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:uD,onChange(t){let n=r(),i=e("collection"),a=Hp({values:t,collection:i,selectedItemMap:n.get("selectedItemMap")}),l=e("value")??t,o=l===t?a:Hp({values:l,collection:i,selectedItemMap:a.nextSelectedItemMap});return n.set("selectedItemMap",o.nextSelectedItemMap),e("onValueChange")?.({value:t,items:a.selectedItems})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){e("onHighlightChange")?.({highlightedValue:t,highlightedItem:e("collection").find(t),highlightedIndex:e("collection").indexOf(t)})}})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),highlightedItem:t(()=>({defaultValue:null})),selectedItemMap:t(()=>({defaultValue:function({selectedItems:e,collection:t}){return Hh({selectedItemMap:new Map,values:e.map(e=>t.getItemValue(e)).filter(Boolean),selectedItems:e,collection:t})}({selectedItems:i,collection:e("collection")})}))}},refs:()=>({typeahead:{...O$.defaultOptions}}),computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>""!==e.get("typeahead").keysSoFar,isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),selectedItems:({context:e,prop:t})=>Hu({values:e.get("value"),collection:t("collection"),selectedItemMap:e.get("selectedItemMap")}),valueAsString:({computed:e,prop:t})=>t("collection").stringifyItems(e("selectedItems"))},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"idle",entry:["syncSelectElement"],watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value").toString()],()=>{n(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])}),r([()=>t("open")],()=>{n(["toggleVisibility"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem"])}),r([()=>t("collection").toString()],()=>{n(["syncCollection"])})},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:HF("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:HI(HN("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:HN("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:HI(HN("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:HN("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:HN("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:HN("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:HN("multiple"),actions:["selectMatchingItem"]}}},open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","trackFocusVisible","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:HI("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:HI("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:HI("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>HV(e),isOpenControlled:({prop:e})=>void 0!==e("open"),isTriggerClickEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.CLICK",isTriggerEnterEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ENTER",isTriggerArrowUpEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_UP",isTriggerArrowDownEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_DOWN"},effects:{trackFocusVisible:({scope:e})=>v$({root:e.getRootNode?.()}),trackFormControlState:({context:e,scope:t})=>kZ(Hk(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){let t=e.initial("value");e.set("value",t)}}),trackDismissableElement({scope:e,send:t,prop:r}){let n=!0;return OV(()=>HP(e),{type:"listbox",defer:!0,exclude:[HA(e),HT(e)],onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onInteractOutside(e){r("onInteractOutside")?.(e),n=!(e.detail.focusable||e.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:n})}})},computePlacement({context:e,prop:t,scope:r}){let n=t("positioning");return e.set("currentPlacement",n.placement),y1(()=>HA(r),()=>HM(r),{defer:!0,...n,onComplete(t){e.set("currentPlacement",t.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:r}){let n=n=>{let i=e.get("highlightedValue");if(null==i||"pointer"===vS)return;let a=HP(r),l=t("scrollToIndexFn");if(l){let e=t("collection").indexOf(i);l?.({index:e,immediate:n,getElement:()=>HL(r,i)});return}OH(HL(r,i),{rootEl:a,block:"nearest"})};return fd(()=>{v_("virtual"),n(!0)}),f2(()=>HP(r),{defer:!0,attributes:["data-activedescendant"],callback(){n(!1)}})}},actions:{reposition({context:e,prop:t,scope:r,event:n}){y1(HA(r),()=>HM(r),{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility({send:e,prop:t,event:r}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})},highlightPreviousItem({context:e,prop:t}){let r=e.get("highlightedValue");if(null==r)return;let n=t("collection").getPreviousValue(r,1,t("loopFocus"));null!=n&&e.set("highlightedValue",n)},highlightNextItem({context:e,prop:t}){let r=e.get("highlightedValue");if(null==r)return;let n=t("collection").getNextValue(r,1,t("loopFocus"));null!=n&&e.set("highlightedValue",n)},highlightFirstItem({context:e,prop:t}){let r=t("collection").firstValue;e.set("highlightedValue",r)},highlightLastItem({context:e,prop:t}){let r=t("collection").lastValue;e.set("highlightedValue",r)},setInitialFocus({scope:e}){fd(()=>{let t=Oz({root:HP(e)});t?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){HV(e)&&fd(()=>{let e=HA(t);e?.focus({preventScroll:!0})})},selectHighlightedItem({context:e,prop:t,event:r}){let n=r.value??e.get("highlightedValue");null!=n&&t("collection").has(n)&&(t("onSelect")?.({value:n}),n=t("deselectable")&&!t("multiple")&&e.get("value").includes(n)?null:n,e.set("value",e=>null==n?[]:t("multiple")?hl(e,n):[n]))},highlightComputedFirstItem({context:e,prop:t,computed:r}){let n=t("collection"),i=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.firstValue;e.set("highlightedValue",i)},highlightComputedLastItem({context:e,prop:t,computed:r}){let n=t("collection"),i=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.lastValue;e.set("highlightedValue",i)},highlightFirstSelectedItem({context:e,prop:t,computed:r}){if(!r("hasSelectedItems"))return;let n=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",n)},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:r,refs:n}){let i=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("highlightedValue")});null!=i&&e.set("highlightedValue",i)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:r}){t("onSelect")?.({value:r.value});let n=t("deselectable")&&!t("multiple")&&e.get("value").includes(r.value)?null:r.value;e.set("value",e=>null==n?[]:t("multiple")?hl(e,n):[n])},clearItem({context:e,event:t}){e.set("value",e=>e.filter(e=>e!==t.value))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){let[r]=e.get("value"),n=t("collection").getPreviousValue(r);n&&e.set("value",[n])},selectNextItem({context:e,prop:t}){let[r]=e.get("value"),n=t("collection").getNextValue(r);n&&e.set("value",[n])},selectFirstItem({context:e,prop:t}){let r=t("collection").firstValue;r&&e.set("value",[r])},selectLastItem({context:e,prop:t}){let r=t("collection").lastValue;r&&e.set("value",[r])},selectMatchingItem({context:e,prop:t,event:r,refs:n}){let i=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("value")[0]});null!=i&&e.set("value",[i])},scrollContentToTop({prop:e,scope:t}){if(e("scrollToIndexFn")){let r=e("collection").firstValue;e("scrollToIndexFn")?.({index:0,immediate:!0,getElement:()=>HL(t,r)})}else eF.getContentEl(t)?.scrollTo(0,0)},invokeOnOpen({prop:e,context:t}){e("onOpenChange")?.({open:!0,value:t.get("value")})},invokeOnClose({prop:e,context:t}){e("onOpenChange")?.({open:!1,value:t.get("value")})},syncSelectElement({context:e,prop:t,scope:r}){let n=Hk(r);if(n){if(0===e.get("value").length&&!t("multiple")){n.selectedIndex=-1;return}for(let t of n.options)t.selected=e.get("value").includes(t.value)}},syncCollection({context:e,prop:t}){let r=t("collection"),n=r.find(e.get("highlightedValue"));n&&e.set("highlightedItem",n);let i=Hp({values:e.get("value"),collection:r,selectedItemMap:e.get("selectedItemMap")});e.set("selectedItemMap",i.nextSelectedItemMap)},syncSelectedItems({context:e,prop:t}){let r=Hp({values:e.get("value"),collection:t("collection"),selectedItemMap:e.get("selectedItemMap")});e.set("selectedItemMap",r.nextSelectedItemMap)},syncHighlightedItem({context:e,prop:t}){let r=t("collection"),n=e.get("highlightedValue"),i=n?r.find(n):null;e.set("highlightedItem",i)},dispatchChangeEvent({scope:e}){queueMicrotask(()=>{let t=Hk(e);if(!t)return;let r=new(e.getWin()).Event("change",{bubbles:!0,composed:!0});t.dispatchEvent(kj(r))})}}}});function HV(e){let t=e.restoreFocus??e.previousEvent?.restoreFocus;return null==t||!!t}var H_=uZ("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText").build(),HY={clearTriggerLabel:"Clear value"},H$=(0,c0.forwardRef)((e,t)=>{let[r,n]=vf(e),[i,a]=p1()(n,["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","disabled","form","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","translations","autoComplete","value"]),l=(e=>{let t=(0,c0.useId)(),{dir:r}=uc(),{getRootNode:n}=uo(),i=(0,NM.f)();return function(e,t){let{context:r,prop:n,scope:i,state:a,computed:l,send:o}=e,s=uz(HY,n("translations")),c=n("disabled")||r.get("fieldsetDisabled"),d=!!n("invalid"),u=!!n("required"),h=!!n("readOnly"),p=n("composite"),f=n("collection"),m=a.hasTag("open"),g=a.matches("focused"),C=r.get("highlightedValue"),v=r.get("highlightedItem"),y=l("selectedItems"),b=r.get("currentPlacement"),x=b?yB(b):void 0,O=l("isTypingAhead"),w=l("isInteractive"),S=C?Hx(i,C):void 0;function E(e){let t=f.getItemDisabled(e.item),n=f.getItemValue(e.item);return uh(n,()=>`[zag-js] No value found for item ${JSON.stringify(e.item)}`),{value:n,disabled:!!(c||t),highlighted:C===n,selected:r.get("value").includes(n)}}let k=be({...n("positioning"),placement:b});return{open:m,focused:g,empty:0===r.get("value").length,highlightedItem:v,highlightedValue:C,selectedItems:y,hasSelectedItems:l("hasSelectedItems"),value:r.get("value"),valueAsString:l("valueAsString"),collection:f,multiple:!!n("multiple"),disabled:!!c,reposition(e={}){o({type:"POSITIONING.SET",options:e})},focus(){eF.getTriggerEl(i)?.focus({preventScroll:!0})},setOpen(e){a.hasTag("open")!==e&&o({type:e?"OPEN":"CLOSE"})},selectValue(e){o({type:"ITEM.SELECT",value:e})},setValue(e){o({type:"VALUE.SET",value:e})},selectAll(){o({type:"VALUE.SET",value:f.getValues()})},setHighlightValue(e){o({type:"HIGHLIGHTED_VALUE.SET",value:e})},clearHighlightValue(){o({type:"HIGHLIGHTED_VALUE.CLEAR"})},clearValue(e){e?o({type:"ITEM.CLEAR",value:e}):o({type:"VALUE.CLEAR"})},getItemState:E,getRootProps:()=>t.element({...H_.root.attrs,dir:n("dir"),id:Hm(i),"data-invalid":uF(d),"data-readonly":uF(h)}),getLabelProps:()=>t.label({dir:n("dir"),id:Hy(i),...H_.label.attrs,"data-disabled":uF(c),"data-invalid":uF(d),"data-readonly":uF(h),"data-required":uF(u),htmlFor:HO(i),onClick(e){e.defaultPrevented||c||eF.getTriggerEl(i)?.focus({preventScroll:!0})}}),getControlProps:()=>t.element({...H_.control.attrs,dir:n("dir"),id:Hb(i),"data-state":m?"open":"closed","data-focus":uF(g),"data-disabled":uF(c),"data-invalid":uF(d)}),getValueTextProps:()=>t.element({...H_.valueText.attrs,dir:n("dir"),"data-disabled":uF(c),"data-invalid":uF(d),"data-focus":uF(g)}),getTriggerProps:()=>t.button({id:HC(i),disabled:c,dir:n("dir"),type:"button",role:"combobox","aria-controls":Hg(i),"aria-expanded":m,"aria-haspopup":"listbox","data-state":m?"open":"closed","aria-invalid":d,"aria-required":u,"aria-labelledby":Hy(i),...H_.trigger.attrs,"data-disabled":uF(c),"data-invalid":uF(d),"data-readonly":uF(h),"data-placement":b,"data-side":x,"data-placeholder-shown":uF(!l("hasSelectedItems")),onClick(e){!w||e.defaultPrevented||o({type:"TRIGGER.CLICK"})},onFocus(){o({type:"TRIGGER.FOCUS"})},onBlur(){o({type:"TRIGGER.BLUR"})},onKeyDown(e){if(e.defaultPrevented||!w)return;let t={ArrowUp(){o({type:"TRIGGER.ARROW_UP"})},ArrowDown(e){o({type:e.altKey?"OPEN":"TRIGGER.ARROW_DOWN"})},ArrowLeft(){o({type:"TRIGGER.ARROW_LEFT"})},ArrowRight(){o({type:"TRIGGER.ARROW_RIGHT"})},Home(){o({type:"TRIGGER.HOME"})},End(){o({type:"TRIGGER.END"})},Enter(){o({type:"TRIGGER.ENTER"})},Space(e){O?o({type:"TRIGGER.TYPEAHEAD",key:e.key}):o({type:"TRIGGER.ENTER"})}}[fF(e,{dir:n("dir"),orientation:"vertical"})];if(t){t(e),e.preventDefault();return}O$.isValidEvent(e)&&(o({type:"TRIGGER.TYPEAHEAD",key:e.key}),e.preventDefault())}}),getIndicatorProps:()=>t.element({...H_.indicator.attrs,dir:n("dir"),"aria-hidden":!0,"data-state":m?"open":"closed","data-disabled":uF(c),"data-invalid":uF(d),"data-readonly":uF(h)}),getItemProps(e){let r=E(e);return t.element({id:Hx(i,r.value),role:"option",...H_.item.attrs,dir:n("dir"),"data-value":r.value,"aria-selected":r.selected,"data-state":r.selected?"checked":"unchecked","data-highlighted":uF(r.highlighted),"data-disabled":uF(r.disabled),"aria-disabled":uR(r.disabled),onPointerMove(e){r.disabled||"mouse"!==e.pointerType||"pointer"!==vS||r.value!==C&&o({type:"ITEM.POINTER_MOVE",value:r.value})},onClick(e){e.defaultPrevented||r.disabled||o({type:"ITEM.CLICK",src:"pointerup",value:r.value})},onPointerLeave(t){r.disabled||e.persistFocus||"mouse"!==t.pointerType||"pointer"===vS&&o({type:"ITEM.POINTER_LEAVE"})}})},getItemTextProps(e){let r=E(e);return t.element({...H_.itemText.attrs,"data-state":r.selected?"checked":"unchecked","data-disabled":uF(r.disabled),"data-highlighted":uF(r.highlighted)})},getItemIndicatorProps(e){let r=E(e);return t.element({"aria-hidden":!0,...H_.itemIndicator.attrs,"data-state":r.selected?"checked":"unchecked",hidden:!r.selected})},getItemGroupLabelProps(e){let{htmlFor:r}=e;return t.element({...H_.itemGroupLabel.attrs,id:HE(i,r),dir:n("dir"),role:"presentation"})},getItemGroupProps(e){let{id:r}=e;return t.element({...H_.itemGroup.attrs,"data-disabled":uF(c),id:HS(i,r),"aria-labelledby":HE(i,r),role:"group",dir:n("dir")})},getClearTriggerProps:()=>t.button({...H_.clearTrigger.attrs,id:Hv(i),type:"button","aria-label":s.clearTriggerLabel,"data-invalid":uF(d),disabled:c,hidden:!l("hasSelectedItems"),dir:n("dir"),onClick(e){e.defaultPrevented||o({type:"CLEAR.CLICK"})}}),getHiddenSelectProps(){let e=r.get("value"),a=n("multiple")?e:e?.[0],l=e=>{let t;kB(fR(e))||o({type:"VALUE.SET",value:(t=e.currentTarget).multiple?Array.from(t.selectedOptions,e=>e.value):t.value?[t.value]:[]})};return t.select({name:n("name"),form:n("form"),disabled:c,multiple:n("multiple"),required:n("required"),"aria-hidden":!0,id:HO(i),defaultValue:a,style:NQ,tabIndex:-1,autoComplete:n("autoComplete"),onChange:l,onInput:l,onFocus(){eF.getTriggerEl(i)?.focus({preventScroll:!0})},"aria-labelledby":Hy(i)})},getPositionerProps:()=>t.element({...H_.positioner.attrs,dir:n("dir"),id:Hw(i),style:k.floating}),getContentProps:()=>t.element({hidden:!m,dir:n("dir"),id:Hg(i),role:p?"listbox":"dialog",...H_.content.attrs,"data-state":m?"open":"closed","data-placement":b,"data-side":x,"data-activedescendant":S,"aria-activedescendant":p?S:void 0,"aria-multiselectable":!!n("multiple")&&!!p||void 0,"aria-labelledby":Hy(i),tabIndex:0,onKeyDown(e){if(!w||!u7(e.currentTarget,fP(e)))return;if("Tab"===e.key&&!OZ(e))return void e.preventDefault();let t={ArrowUp(){o({type:"CONTENT.ARROW_UP"})},ArrowDown(){o({type:"CONTENT.ARROW_DOWN"})},Home(){o({type:"CONTENT.HOME"})},End(){o({type:"CONTENT.END"})},Enter(){o({type:"ITEM.CLICK",src:"keydown.enter"})},Space(e){O?o({type:"CONTENT.TYPEAHEAD",key:e.key}):t.Enter?.(e)}},r=t[fF(e)];if(r){r(e),e.preventDefault();return}!u4(fP(e))&&O$.isValidEvent(e)&&(o({type:"CONTENT.TYPEAHEAD",key:e.key}),e.preventDefault())}}),getListProps:()=>t.element({...H_.list.attrs,tabIndex:0,role:p?void 0:"listbox","aria-labelledby":HC(i),"aria-activedescendant":p?void 0:S,"aria-multiselectable":!!(!p&&n("multiple"))||void 0})}}(hk(HR,{id:t,ids:{label:i?.ids.label,hiddenSelect:i?.ids.control},disabled:i?.disabled,readOnly:i?.readOnly,invalid:i?.invalid,required:i?.required,dir:r,getRootNode:n,...e}),hA)})(i),o=vv((0,p8.v)({present:l.open},r)),s=(0,p8.v)(l.getRootProps(),a);return(0,eB.Y)($q,{value:l,children:(0,eB.Y)(vc,{value:o,children:(0,eB.Y)(fr.div,{...s,ref:t})})})}),HH=(0,c0.forwardRef)((e,t)=>{let[r,n]=vf(e),[{value:i},a]=p1()(n,["value"]),l=vv((0,p8.v)({present:i.open},r)),o=(0,p8.v)(i.getRootProps(),a);return(0,eB.Y)($q,{value:i,children:(0,eB.Y)(vc,{value:l,children:(0,eB.Y)(fr.div,{...o,ref:t})})})}),Hz=(0,c0.forwardRef)((e,t)=>{let r=$X(),n=(0,p8.v)(r.getTriggerProps(),e);return(0,eB.Y)(fr.button,{...n,ref:t})});Hz.displayName="SelectTrigger";var HZ=(0,c0.forwardRef)((e,t)=>{let{children:r,placeholder:n,...i}=e,a=$X(),l=(0,p8.v)(a.getValueTextProps(),i);return(0,eB.Y)(fr.span,{...l,ref:t,children:r||a.valueAsString||n})});HZ.displayName="SelectValueText";var HQ=pq({ClearTrigger:()=>$K,Content:()=>$J,Context:()=>$1,Control:()=>$2,HiddenSelect:()=>$0,Indicator:()=>$3,Item:()=>$8,ItemContext:()=>He,ItemGroup:()=>Hi,ItemGroupLabel:()=>Ha,ItemIndicator:()=>Hl,ItemText:()=>Ho,Label:()=>Hs,List:()=>Hc,Positioner:()=>Hd,Root:()=>H$,RootProvider:()=>HH,Trigger:()=>Hz,ValueText:()=>HZ});let HB=(0,c0.createContext)({}),Hj=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),{children:n,value:i}=e;return r[0]!==n||r[1]!==i?(t=(0,eB.Y)(HB.Provider,{value:i,children:n}),r[0]=n,r[1]=i,r[2]=t):t=r[2],t},"SelectSharedProvider"),HG=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f=(0,ej.c)(25);f[0]!==e?({children:t,loading:i,disabled:a,positioning:r,"data-testid":l,...n}=e,f[0]=e,f[1]=t,f[2]=r,f[3]=n,f[4]=i,f[5]=a,f[6]=l):(t=f[1],r=f[2],n=f[3],i=f[4],a=f[5],l=f[6]);let m=void 0!==i&&i,g=void 0!==a&&a;f[7]===Symbol.for("react.memo_cache_sentinel")?(o={mainAxis:4},f[7]=o):o=f[7],f[8]!==r?(s={offset:o,gutter:4,overflowPadding:4,...r},f[8]=r,f[9]=s):s=f[9];let C=s;return f[10]!==m?(c={loading:m},f[10]=m,f[11]=c):c=f[11],f[12]===Symbol.for("react.memo_cache_sentinel")?(d=(0,eB.Y)(HQ.HiddenSelect,{}),f[12]=d):d=f[12],f[13]!==t||f[14]!==g||f[15]!==C||f[16]!==n||f[17]!==l?(u=(0,eB.FD)(HQ.Root,{...n,"data-testid":l,disabled:g,positioning:C,lazyMount:!0,unmountOnExit:!0,children:[d,t]}),f[13]=t,f[14]=g,f[15]=C,f[16]=n,f[17]=l,f[18]=u):u=f[18],f[19]!==c||f[20]!==u?(h=(0,eB.Y)(Hj,{value:c,children:u}),f[19]=c,f[20]=u,f[21]=h):h=f[21],f[22]!==h||f[23]!==l?(p=(0,eB.Y)(m3,{value:l,children:h}),f[22]=h,f[23]=l,f[24]=p):p=f[24],p},"Select");HG.displayName="Select";let HU=(e,t)=>{let r,n,i=(0,ej.c)(10),[a,l]=(0,c0.useState)(""),o=t?.filterFn;h:{let t;if(!a){r=e;break h}if(i[0]!==e||i[1]!==o||i[2]!==a){let r;i[4]!==o||i[5]!==a?(r=(e,t,r)=>o?o(e,r,a):e.toLowerCase().includes(a.toLowerCase()),i[4]=o,i[5]=a,i[6]=r):r=i[6],t=e.filter(r),i[0]=e,i[1]=o,i[2]=a,i[3]=t}else t=i[3];r=t}let s=r;return i[7]!==s||i[8]!==a?(n={searchValue:a,onSearchChange:l,filteredCollection:s},i[7]=s,i[8]=a,i[9]=n):n=i[9],n},HW=(0,c0.createContext)(null),Hq=()=>{let e=(0,c0.useContext)(HW);if(!e)throw Error("FilterDropdown parts must be rendered inside <FilterDropdown>");return e},HX=(0,c0.createContext)(null),HK=()=>{let e,t=(0,ej.c)(8),{filteredCollection:r,groups:n,query:i,isSearchActive:a,multiple:l,value:o,clear:s}=Hq();return t[0]!==s||t[1]!==a||t[2]!==l||t[3]!==i||t[4]!==r||t[5]!==n||t[6]!==o?(e={filteredCollection:r,groups:n,query:i,isSearchActive:a,multiple:l,value:o,clear:s},t[0]=s,t[1]=a,t[2]=l,t[3]=i,t[4]=r,t[5]=n,t[6]=o,t[7]=e):e=t[7],e},HJ="__all__",H1="__selected__:",H2=Symbol("filter-dropdown-special-item"),H0=e=>"object"==typeof e&&null!==e&&H2 in e,H3=e=>`${H1}${e}`,H5=e=>e.startsWith(H1)?e.slice(H1.length):e,H4=[],H7=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w,S,E,k,P,D,A,T,M,L,I,N,F,R=(0,ej.c)(108);R[0]!==e?({label:o,allLabel:h,collection:n,multiple:p,value:v,defaultValue:a,onValueChange:c,open:d,defaultOpen:i,onOpenChange:s,searchThreshold:f,filterFn:l,selectedOnTop:m,disabled:g,className:r,children:t,"data-testid":C,...u}=e,R[0]=e,R[1]=t,R[2]=r,R[3]=n,R[4]=i,R[5]=a,R[6]=l,R[7]=o,R[8]=s,R[9]=c,R[10]=d,R[11]=u,R[12]=h,R[13]=p,R[14]=f,R[15]=m,R[16]=g,R[17]=C,R[18]=v):(t=R[1],r=R[2],n=R[3],i=R[4],a=R[5],l=R[6],o=R[7],s=R[8],c=R[9],d=R[10],u=R[11],h=R[12],p=R[13],f=R[14],m=R[15],g=R[16],C=R[17],v=R[18]);let V=void 0===h?"All":h,_=void 0!==p&&p,Y=void 0===f?8:f,$=void 0===m||m,H=void 0!==g&&g,[z,Z]=(0,c0.useState)(a??H4),Q=v??z,[B,j]=(0,c0.useState)(i??!1),G=d??B,U=n,W=l;R[19]!==W?(y={filterFn:W},R[19]=W,R[20]=y):y=R[20];let{searchValue:q,onSearchChange:X,filteredCollection:K}=HU(U,y),[J,ee]=(0,c0.useState)(Q),[et,er]=(0,c0.useState)(),[en,ei]=(0,c0.useState)(null),[ea,el]=(0,c0.useState)(!1),[eo,es]=(0,c0.useState)(G);G!==eo&&(es(G),X(""),er(void 0),el(!1),G&&ee(Q));let ec=G?J:Q,ed=(0,c0.useRef)(null),eu=(0,c0.useRef)(null),eh=U.size>=Y,ep=eh&&q.length>0,ef=!_&&!ep,em=$&&_&&eh&&!ep&&ec.length>0;R[21]!==V?(b={[H2]:!0,value:HJ,label:V},R[21]=V,R[22]=b):b=R[22];let eg=b;R[23]!==K?(x=K.group(),R[23]=K,R[24]=x):x=R[24];let eC=x;R[25]!==U||R[26]!==ec||R[27]!==em?(O=em?U.findMany(ec).map(e=>({[H2]:!0,value:H3(U.getItemValue(e)??""),label:U.stringifyItem(e)??"",source:e})):[],R[25]=U,R[26]=ec,R[27]=em,R[28]=O):O=R[28];let ev=O;if(R[29]!==ev||R[30]!==eg||R[31]!==U||R[32]!==eC||R[33]!==ef){let e,t,r;R[35]!==U?(e=e=>H0(e)?e.value:U.getItemValue(e)??"",t=e=>H0(e)?e.label:U.stringifyItem(e)??"",r=e=>H0(e)?!!e.source&&U.getItemDisabled(e.source):U.getItemDisabled(e),R[35]=U,R[36]=e,R[37]=t,R[38]=r):(e=R[36],t=R[37],r=R[38]),w=$W({items:[...ef?[eg]:[],...ev,...eC.flatMap(H9)],itemToValue:e,itemToString:t,isItemDisabled:r}),R[29]=ev,R[30]=eg,R[31]=U,R[32]=eC,R[33]=ef,R[34]=w}else w=R[34];let ey=w;if(R[39]!==ev||R[40]!==U){let e;R[42]!==U?(e=e=>U.getItemValue(e.source??null)??"",R[42]=U,R[43]=e):e=R[43],S=new Set(ev.map(e)),R[39]=ev,R[40]=U,R[41]=S}else S=R[41];let eb=S;R[44]!==eb||R[45]!==_||R[46]!==ef||R[47]!==Q?(E=((e,{multiple:t,aliased:r,hasAll:n=!0})=>{if(!t){let[t]=e;return void 0===t?n?[HJ]:[]:[t]}return[...e,...e.filter(e=>r.has(e)).map(H3)]})(Q,{multiple:_,aliased:eb,hasAll:ef}),R[44]=eb,R[45]=_,R[46]=ef,R[47]=Q,R[48]=E):E=R[48];let ex=E,eO=ea?ey.firstValue:en;R[49]!==n||R[50]!==c||R[51]!==v?(k=e=>{void 0===v&&Z(e),c?.({value:e,items:n.findMany(e)})},R[49]=n,R[50]=c,R[51]=v,R[52]=k):k=R[52];let ew=k;R[53]!==ew||R[54]!==H||R[55]!==Q?(P=()=>{H||0===Q.length||ew([])},R[53]=ew,R[54]=H,R[55]=Q,R[56]=P):P=R[56];let eS=P;R[57]!==ew||R[58]!==ex||R[59]!==_||R[60]!==Q?(D=e=>{ew(((e,{multiple:t,previousInternal:r,previousValue:n})=>{if(!t){let[t]=e;return void 0===t||t===HJ?[]:[H5(t)]}let i=new Set(r),a=new Set(e),l=[...n];for(let t of e){if(i.has(t)||t===HJ)continue;let e=H5(t);l.includes(e)||l.push(e)}for(let e of r){if(a.has(e))continue;let t=H5(e);l=l.filter(e=>e!==t)}return l})(e.value,{multiple:_,previousInternal:ex,previousValue:Q}))},R[57]=ew,R[58]=ex,R[59]=_,R[60]=Q,R[61]=D):D=R[61];let eE=D;R[62]!==s||R[63]!==Q?(A=e=>{let{open:t}=e;j(t),s?.({open:t,value:Q})},R[62]=s,R[63]=Q,R[64]=A):A=R[64];let ek=A;R[65]===Symbol.for("react.memo_cache_sentinel")?(T=e=>{ei(e.highlightedValue),el(!1)},R[65]=T):T=R[65];let eP=T;R[66]!==X||R[67]!==q||R[68]!==Q?(M=e=>{!q&&e&&er(eu.current?.offsetWidth||void 0),q&&!e&&ee(Q),X(e),el(!0)},R[66]=X,R[67]=q,R[68]=Q,R[69]=M):M=R[69];let eD=M;R[70]!==ev||R[71]!==eg||R[72]!==V||R[73]!==U||R[74]!==eS||R[75]!==H||R[76]!==K||R[77]!==eC||R[78]!==ep||R[79]!==eh||R[80]!==o||R[81]!==et||R[82]!==_||R[83]!==q||R[84]!==eD||R[85]!==ef||R[86]!==em||R[87]!==Q?(L={label:o,allLabel:V,multiple:_,disabled:H,value:Q,collection:U,filteredCollection:K,groups:eC,query:q,setQuery:eD,isSearchable:eh,isSearchActive:ep,showAll:ef,allItem:eg,showSelected:em,aliasItems:ev,clear:eS,triggerRef:ed,contentRef:eu,lockedWidth:et},R[70]=ev,R[71]=eg,R[72]=V,R[73]=U,R[74]=eS,R[75]=H,R[76]=K,R[77]=eC,R[78]=ep,R[79]=eh,R[80]=o,R[81]=et,R[82]=_,R[83]=q,R[84]=eD,R[85]=ef,R[86]=em,R[87]=Q,R[88]=L):L=R[88];let eA=L,eT=u;return R[89]!==r?(I=(0,m2.cn)("inline-flex max-w-full",r),R[89]=r,R[90]=I):I=R[90],R[91]!==ey||R[92]!==t||R[93]!==i||R[94]!==H||R[95]!==ek||R[96]!==eE||R[97]!==eO||R[98]!==ex||R[99]!==_||R[100]!==d||R[101]!==eT||R[102]!==I||R[103]!==C?(N=(0,eB.Y)(HG,{...eT,"data-slot":"filter-dropdown","data-testid":C,className:I,collection:ey,multiple:_,disabled:H,value:ex,onValueChange:eE,open:d,defaultOpen:i,onOpenChange:ek,highlightedValue:eO,onHighlightChange:eP,children:t}),R[91]=ey,R[92]=t,R[93]=i,R[94]=H,R[95]=ek,R[96]=eE,R[97]=eO,R[98]=ex,R[99]=_,R[100]=d,R[101]=eT,R[102]=I,R[103]=C,R[104]=N):N=R[104],R[105]!==eA||R[106]!==N?(F=(0,eB.Y)(HW.Provider,{value:eA,children:N}),R[105]=eA,R[106]=N,R[107]=F):F=R[107],F},"FilterDropdown");function H9(e){let[,t]=e;return t}H7.displayName="FilterDropdown";let H6=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(10);l[0]!==e?({variant:r,"data-testid":n,...t}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=n):(t=l[1],r=l[2],n=l[3]);let o=void 0===r?"default":r,s=m5("option",n);return l[4]!==o?(i=(0,m2.cn)((0,SE.OZ)({variant:o,inset:!1}),"flex-wrap relative gap-y-0 gap-x-8 pr-32","has-[>[data-slot=select-option-hint]]:flex-nowrap","data-[state=checked]:bg-states-primary-active","data-highlighted:bg-states-primary-hover"),l[4]=o,l[5]=i):i=l[5],l[6]!==t||l[7]!==i||l[8]!==s?(a=(0,eB.Y)(HQ.Item,{...t,"data-testid":s,persistFocus:!0,className:i}),l[6]=t,l[7]=i,l[8]=s,l[9]=a):a=l[9],a},"SelectOption");H6.displayName="SelectOption";let H8=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(10),{multiple:a}=$X(),{selected:l}=$4(),o=m5("option-indicator"),s=!a&&void 0;return i[0]!==a||i[1]!==l?(t=a?(0,eB.Y)(FM,{checkedState:l}):(0,eB.Y)(t4,{className:"icon-md"}),i[0]=a,i[1]=l,i[2]=t):t=i[2],i[3]!==e||i[4]!==s||i[5]!==t?(r=(0,eB.Y)(HQ.ItemIndicator,{...e,className:"flex items-center pointer-events-none",hidden:s,children:t}),i[3]=e,i[4]=s,i[5]=t,i[6]=r):r=i[6],i[7]!==r||i[8]!==o?(n=(0,eB.Y)("div",{"data-testid":o,className:"flex items-center justify-end h-20 absolute top-6 right-8",children:r}),i[7]=r,i[8]=o,i[9]=n):n=i[9],n},"SelectOptionIndicator");H8.displayName="SelectOptionIndicator";let ze=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),n=m5("option-text");return r[0]!==e||r[1]!==n?(t=(0,eB.Y)(HQ.ItemText,{...e,"data-testid":n}),r[0]=e,r[1]=n,r[2]=t):t=r[2],t},"SelectOptionText");ze.displayName="SelectOptionText";let zt=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({children:t,"data-testid":n,...r}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n):(t=o[1],r=o[2],n=o[3]);let{showAll:s,allItem:c,allLabel:d}=Hq(),u=m5("all-option",n);if(!s)return null;let h=t??d;return o[4]!==h?(i=(0,eB.Y)(ze,{children:h}),o[4]=h,o[5]=i):i=o[5],o[6]===Symbol.for("react.memo_cache_sentinel")?(a=(0,eB.Y)(H8,{}),o[6]=a):a=o[6],o[7]!==c||o[8]!==r||o[9]!==i||o[10]!==u?(l=(0,eB.FD)(H6,{...r,item:c,"data-slot":"filter-dropdown-all-option","data-testid":u,children:[i,a]}),o[7]=c,o[8]=r,o[9]=i,o[10]=u,o[11]=l):l=o[11],l},"FilterDropdownAllOption");zt.displayName="FilterDropdownAllOption";let zr=(0,m9.F)((0,m2.cn)("inline-flex h-36 min-w-0 max-w-180 items-stretch","rounded-12 border-1 border-border-primary bg-component-outline-button-bg","font-sans text-sm text-text-primary","overlay hover:not-data-disabled:overlay-states-primary-hover","active:not-data-disabled:overlay-states-primary-pressed data-[state=open]:overlay-states-primary-pressed","transition-[border,box-shadow,opacity]","has-[[data-slot=filter-dropdown-trigger]:focus-visible]:ring-3 has-[[data-slot=filter-dropdown-trigger]:focus-visible]:ring-focus-primary","data-disabled:opacity-50 data-disabled:cursor-not-allowed"),{variants:{applied:{true:"border-solid shadow-2xs has-[[data-slot=filter-dropdown-trigger]:focus-visible]:shadow-none",false:"border-dashed"},clearable:{true:"pr-6",false:""}},defaultVariants:{applied:!1,clearable:!1}}),zn=(0,m9.F)((0,m2.cn)("flex min-w-0 flex-1 items-center gap-8 py-8 pl-16","cursor-pointer outline-none disabled:cursor-not-allowed","[&_svg]:pointer-events-none [&_svg]:shrink-0"),{variants:{clearable:{true:"pr-4",false:"pr-10"}},defaultVariants:{clearable:!1}}),zi=(0,m9.F)("min-w-0 truncate",{variants:{emphasis:{value:"font-medium",name:"font-normal"}},defaultVariants:{emphasis:"name"}}),za=(0,m2.cn)("inline-flex size-24 shrink-0 items-center justify-center self-center rounded-6","cursor-pointer text-icon-secondary transition-colors hover:not-disabled:text-icon-primary","outline-none focus-visible:ring-3 focus-visible:ring-focus-primary","disabled:cursor-not-allowed [&_svg]:icon-md [&_svg]:pointer-events-none"),zl=(0,m2.cn)("min-w-128 max-w-360","max-h-[min(340px,var(--available-height))]"),zo=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p=(0,ej.c)(26);p[0]!==e?({ref:o,className:n,children:r,disabled:i,onClick:a,"aria-label":t,"data-testid":s,...l}=e,p[0]=e,p[1]=t,p[2]=r,p[3]=n,p[4]=i,p[5]=a,p[6]=l,p[7]=o,p[8]=s):(t=p[1],r=p[2],n=p[3],i=p[4],a=p[5],l=p[6],o=p[7],s=p[8]);let{multiple:f,value:m,label:g,clear:C,triggerRef:v,disabled:y}=Hq(),b=m5("clear",s);if(!f||0===m.length)return null;p[9]!==C||p[10]!==a||p[11]!==v?(c=e=>{a?.(e),e.defaultPrevented||(v.current?.focus(),C())},p[9]=C,p[10]=a,p[11]=v,p[12]=c):c=p[12];let x=c,O=t??`Clear ${g}`,w=y||i;return p[13]!==n?(d=(0,m2.cn)(za,n),p[13]=n,p[14]=d):d=p[14],p[15]!==r?(u=r??(0,eB.Y)(cN.X,{size:"md"}),p[15]=r,p[16]=u):u=p[16],p[17]!==x||p[18]!==l||p[19]!==o||p[20]!==O||p[21]!==w||p[22]!==d||p[23]!==u||p[24]!==b?(h=(0,eB.Y)("button",{type:"button",...l,ref:o,"data-slot":"filter-dropdown-clear","data-testid":b,"aria-label":O,disabled:w,onClick:x,className:d,children:u}),p[17]=x,p[18]=l,p[19]=o,p[20]=O,p[21]=w,p[22]=d,p[23]=u,p[24]=b,p[25]=h):h=p[25],h},"FilterDropdownClear");zo.displayName="FilterDropdownClear";let zs=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(5),{description:i,className:a}=e,l=void 0===i?"No results":i;return n[0]!==l?(t=(0,eB.Y)(VQ,{children:(0,eB.Y)(VH,{children:l})}),n[0]=l,n[1]=t):t=n[1],n[2]!==a||n[3]!==t?(r=(0,eB.Y)(VY,{type:"no-results",className:a,children:t}),n[2]=a,n[3]=t,n[4]=r):r=n[4],r},"SelectEmptyState");zs.displayName="SelectEmptyState";let zc=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h=(0,ej.c)(20);h[0]!==e?({children:t,"data-testid":n,...r}=e,h[0]=e,h[1]=t,h[2]=r,h[3]=n):(t=h[1],r=h[2],n=h[3]);let p=m5("content",n);h[4]!==t?(i=c0.Children.count(t),h[4]=t,h[5]=i):i=h[5];let f=0===i;return h[6]===Symbol.for("react.memo_cache_sentinel")?(a=(0,m2.cn)("flex flex-col p-8 overflow-hidden outline-none"),h[6]=a):a=h[6],h[7]!==t||h[8]!==f?(l=f?(0,eB.Y)(zs,{}):t,h[7]=t,h[8]=f,h[9]=l):l=h[9],h[10]!==l?(o=(0,eB.Y)(Sv,{"data-no-autofocus":"",children:(0,eB.Y)(Sy,{className:"flex flex-col gap-1",children:l})}),h[10]=l,h[11]=o):o=h[11],h[12]===Symbol.for("react.memo_cache_sentinel")?(s=(0,eB.Y)(SO,{}),c=(0,eB.Y)(Sw,{}),h[12]=s,h[13]=c):(s=h[12],c=h[13]),h[14]!==o?(d=(0,eB.FD)(SS,{children:[o,s,c]}),h[14]=o,h[15]=d):d=h[15],h[16]!==r||h[17]!==d||h[18]!==p?(u=(0,eB.Y)(HQ.List,{...r,"data-testid":p,className:a,asChild:!0,children:d}),h[16]=r,h[17]=d,h[18]=p,h[19]=u):u=h[19],u},"SelectContent");zc.displayName="SelectContent";let zd=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(4),i=m5("header");return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("bg-component-outline-button-bg pt-8 px-8 shrink-0"),n[0]=t):t=n[0],n[1]!==e||n[2]!==i?(r=(0,eB.Y)("div",{...e,"data-testid":i,className:t}),n[1]=e,n[2]=i,n[3]=r):r=n[3],r},"SelectHeader");zd.displayName="SelectHeader";let zu=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(15);s[0]!==e?({className:r,children:t,contentProps:n,...i}=e,s[0]=e,s[1]=t,s[2]=r,s[3]=n,s[4]=i):(t=s[1],r=s[2],n=s[3],i=s[4]);let c=w$(n?.ref);return s[5]!==r?(a=(0,m2.cn)(SE.Zv,"flex flex-col","h-full","min-w-240","max-w-320","max-h-(--available-height)","p-0","origin-[--transform-origin]",r),s[5]=r,s[6]=a):a=s[6],s[7]!==t||s[8]!==n||s[9]!==c||s[10]!==a?(l=(0,eB.Y)(HQ.Content,{...n,ref:c,className:a,children:t}),s[7]=t,s[8]=n,s[9]=c,s[10]=a,s[11]=l):l=s[11],s[12]!==i||s[13]!==l?(o=(0,eB.Y)(bh,{children:(0,eB.Y)(HQ.Positioner,{...i,className:"outline-none",children:l})}),s[12]=i,s[13]=l,s[14]=o):o=s[14],o},"SelectPositioner");zu.displayName="SelectPositioner";let zh=(0,m9.F)("shrink-0 border-t",{variants:{variant:{default:"bg-component-outline-button-bg py-8 px-16 border-border-primary",actions:"flex items-center justify-end gap-8 p-8 border-border-primary-light"}},defaultVariants:{variant:"default"}}),zp=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(10);l[0]!==e?({variant:r,"data-testid":n,...t}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=n):(t=l[1],r=l[2],n=l[3]);let o=void 0===r?"default":r,s=m5("footer",n);return l[4]!==o?(i=(0,m2.cn)(zh({variant:o})),l[4]=o,l[5]=i):i=l[5],l[6]!==t||l[7]!==i||l[8]!==s?(a=(0,eB.Y)("div",{...t,"data-testid":s,className:i}),l[6]=t,l[7]=i,l[8]=s,l[9]=a):a=l[9],a},"SelectFooter");zp.displayName="SelectFooter";let zf=new Set(["Enter"," "]),zm=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(17);c[0]!==e?({children:t,onClick:r,onKeyDown:n,"data-testid":a,...i}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=i,c[5]=a):(t=c[1],r=c[2],n=c[3],i=c[4],a=c[5]);let{clear:d}=Hq(),u=m5("footer-clear",a);c[6]!==n?(l=e=>{n?.(e),zf.has(e.key)&&e.stopPropagation()},c[6]=n,c[7]=l):l=c[7];let h=l;c[8]!==d||c[9]!==r?(o=e=>{if(r?.(e),e.defaultPrevented)return;let t=e.currentTarget.closest('[data-scope="select"][data-part="content"]'),n=t?.querySelector('[data-slot="filter-dropdown-search"] input');(n??t)?.focus({preventScroll:!0}),d()},c[8]=d,c[9]=r,c[10]=o):o=c[10];let p=o,f=t??"Clear";return c[11]!==p||c[12]!==h||c[13]!==i||c[14]!==f||c[15]!==u?(s=(0,eB.Y)(vn.$,{...i,"data-slot":"filter-dropdown-footer-clear","data-testid":u,"data-no-autofocus":"",variant:"ghost",color:"neutral",size:"small",onClick:p,onKeyDown:h,children:f}),c[11]=p,c[12]=h,c[13]=i,c[14]=f,c[15]=u,c[16]=s):s=c[16],s},"FilterDropdownFooterClear");zm.displayName="FilterDropdownFooterClear";let zg=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(10);l[0]!==e?({children:t,"data-testid":n,...r}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=n):(t=l[1],r=l[2],n=l[3]);let{multiple:o,value:s}=Hq(),c=m5("footer",n);return o&&0!==s.length?(l[4]!==t?(i=t??(0,eB.Y)(zm,{}),l[4]=t,l[5]=i):i=l[5],l[6]!==r||l[7]!==i||l[8]!==c?(a=(0,eB.Y)(zp,{...r,variant:"actions","data-slot":"filter-dropdown-footer","data-testid":c,children:i}),l[6]=r,l[7]=i,l[8]=c,l[9]=a):a=l[9],a):null},"FilterDropdownFooter");zg.displayName="FilterDropdownFooter";let zC=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x=(0,ej.c)(44);x[0]!==e?({value:r,defaultValue:o,onChange:n,onClear:i,size:s,disabled:c,placeholder:d,className:t,ref:a,"data-testid":u,...l}=e,x[0]=e,x[1]=t,x[2]=r,x[3]=n,x[4]=i,x[5]=a,x[6]=l,x[7]=o,x[8]=s,x[9]=c,x[10]=d,x[11]=u):(t=x[1],r=x[2],n=x[3],i=x[4],a=x[5],l=x[6],o=x[7],s=x[8],c=x[9],d=x[10],u=x[11]);let O=void 0===o?"":o,w=void 0===s?"default":s,S=void 0!==c&&c,E=void 0===d?"Search":d,[k,P]=(0,c0.useState)(O),D=r??k;x[12]!==r||x[13]!==n?(h=e=>{void 0===r&&P(e),n?.(e)},x[12]=r,x[13]=n,x[14]=h):h=x[14];let A=h;x[15]!==A?(p=e=>{A(e.target.value)},x[15]=A,x[16]=p):p=x[16];let T=p;x[17]!==i||x[18]!==A?(f=()=>{i?.(),A("")},x[17]=i,x[18]=A,x[19]=f):f=x[19];let M=f,L=D.length>0&&!S;x[20]===Symbol.for("react.memo_cache_sentinel")?(m=(0,eB.Y)(SA,{children:(0,eB.Y)(oH,{})}),x[20]=m):m=x[20],x[21]!==S||x[22]!==T||x[23]!==E||x[24]!==a||x[25]!==l||x[26]!==w||x[27]!==D?(g=(0,eB.Y)(SP.p,{...l,type:"text",value:D,onChange:T,placeholder:E,disabled:S,size:w,ref:a}),x[21]=S,x[22]=T,x[23]=E,x[24]=a,x[25]=l,x[26]=w,x[27]=D,x[28]=g):g=x[28];let I=L?-1:void 0,N=!L,F=!L,R=L?"cursor-pointer":"invisible";return x[29]!==R?(C=(0,m2.cn)("flex text-icon-secondary",R),x[29]=R,x[30]=C):C=x[30],x[31]===Symbol.for("react.memo_cache_sentinel")?(v=(0,eB.Y)(cN.X,{size:"md"}),x[31]=v):v=x[31],x[32]!==M||x[33]!==I||x[34]!==N||x[35]!==F||x[36]!==C?(y=(0,eB.Y)(SA,{align:"inline-end",children:(0,eB.Y)("button",{type:"button",tabIndex:I,disabled:N,onClick:M,"aria-label":"Clear","aria-hidden":F,className:C,children:v})}),x[32]=M,x[33]=I,x[34]=N,x[35]=F,x[36]=C,x[37]=y):y=x[37],x[38]!==t||x[39]!==w||x[40]!==y||x[41]!==g||x[42]!==u?(b=(0,eB.FD)(SL,{size:w,className:t,"data-slot":"search-input","data-testid":u,children:[m,g,y]}),x[38]=t,x[39]=w,x[40]=y,x[41]=g,x[42]=u,x[43]=b):b=x[43],b},"SearchInput");zC.displayName="SearchInput";let zv=new Set([" ","Home","End"]),zy=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(14);s[0]!==e?({value:a,onChange:t,onKeyDown:r,"data-testid":i,...n}=e,s[0]=e,s[1]=t,s[2]=r,s[3]=n,s[4]=i,s[5]=a):(t=s[1],r=s[2],n=s[3],i=s[4],a=s[5]);let c=m5("search-input",i);s[6]!==r?(l=e=>{r?.(e),zv.has(e.key)&&e.stopPropagation()},s[6]=r,s[7]=l):l=s[7];let d=l;return s[8]!==d||s[9]!==t||s[10]!==n||s[11]!==c||s[12]!==a?(o=(0,eB.Y)(zC,{...n,value:a,onChange:t,onKeyDown:d,"data-testid":c}),s[8]=d,s[9]=t,s[10]=n,s[11]=c,s[12]=a,s[13]=o):o=s[13],o},"SelectSearchInput");zy.displayName="SelectSearchInput";let zb=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(22);c[0]!==e?({onChange:r,"aria-label":t,"data-testid":i,...n}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=i):(t=c[1],r=c[2],n=c[3],i=c[4]);let{label:d,query:u,setQuery:h,isSearchable:p}=Hq(),f=m5("search",i),m=$X();if(!p)return null;c[5]!==r||c[6]!==h?(a=e=>{h(e),r?.(e)},c[5]=r,c[6]=h,c[7]=a):a=c[7];let g=a,C=m.highlightedItem;c[8]!==C||c[9]!==m?(l=C?m.getItemProps({item:C}).id:void 0,c[8]=C,c[9]=m,c[10]=l):l=c[10];let v=l,y=m.open;c[11]!==m?(o=m.getContentProps(),c[11]=m,c[12]=o):o=c[12];let b=t??`Search ${d}`;return c[13]!==v||c[14]!==g||c[15]!==n||c[16]!==u||c[17]!==m.open||c[18]!==o.id||c[19]!==b||c[20]!==f?(s=(0,eB.Y)("div",{"data-slot":"filter-dropdown-search",className:"-mb-3",children:(0,eB.Y)(zy,{"data-autofocus":"",role:"combobox","aria-autocomplete":"list","aria-expanded":y,"aria-controls":o.id,"aria-activedescendant":v,...n,"aria-label":b,value:u,onChange:g,"data-testid":f})}),c[13]=v,c[14]=g,c[15]=n,c[16]=u,c[17]=m.open,c[18]=o.id,c[19]=b,c[20]=f,c[21]=s):s=c[21],s},"FilterDropdownSearch");zb.displayName="FilterDropdownSearch";let zx=(0,eQ.G)(({ref:e,className:t,style:r,children:n,"data-testid":i,...a})=>{let{isSearchable:l,isSearchActive:o,lockedWidth:s,contentRef:c}=Hq(),d=m5("content",i),u=m5("list"),h=m5(),p=[],f=[],m=[];c0.Children.forEach(n,e=>{(0,c0.isValidElement)(e)&&e.type===zb?p.push(e):(0,c0.isValidElement)(e)&&e.type===zg?f.push(e):m.push(e)});let g=o&&s?s:void 0;return(0,eB.FD)(zu,{className:(0,m2.cn)(zl,t),contentProps:{...a,ref:g9(e,c),style:void 0===g?r:{...r,width:g},"data-slot":"filter-dropdown-content","data-testid":d},children:[l&&p.length>0&&(0,eB.Y)(zd,{children:p}),(0,eB.Y)(zc,{"data-testid":u,tabIndex:-1,"data-no-autofocus":"",children:(0,eB.Y)(m3,{value:h,children:m})}),f]})},"FilterDropdownContent");zx.displayName="FilterDropdownContent";let zO=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({ref:n,children:t,"data-testid":i,...r}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let{filteredCollection:s}=Hq(),c=m5("empty",i);if(s.size>0)return null;let d=t??"Nothing matches";return o[5]!==d?(a=(0,eB.Y)(zs,{className:"w-full max-w-240",description:d}),o[5]=d,o[6]=a):a=o[6],o[7]!==r||o[8]!==n||o[9]!==a||o[10]!==c?(l=(0,eB.Y)("div",{...r,ref:n,"data-slot":"filter-dropdown-empty","data-testid":c,children:a}),o[7]=r,o[8]=n,o[9]=a,o[10]=c,o[11]=l):l=o[11],l},"FilterDropdownEmpty");zO.displayName="FilterDropdownEmpty";let zw=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(9);l[0]!==e?({children:t,"data-testid":n,...r}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=n):(t=l[1],r=l[2],n=l[3]);let o=m5("group",n);return l[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,m2.cn)("flex flex-col gap-1"),l[4]=i):i=l[4],l[5]!==t||l[6]!==r||l[7]!==o?(a=(0,eB.Y)(HQ.ItemGroup,{...r,"data-testid":o,className:i,children:t}),l[5]=t,l[6]=r,l[7]=o,l[8]=a):a=l[8],a},"SelectGroup");zw.displayName="SelectGroup";let zS=(0,eQ.G)(e=>{let t,r=(0,ej.c)(2);return r[0]!==e?(t=(0,eB.Y)(zw,{...e,"data-slot":"filter-dropdown-group"}),r[0]=e,r[1]=t):t=r[1],t},"FilterDropdownGroup");zS.displayName="FilterDropdownGroup";let zE=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(7);a[0]!==e?({"data-testid":r,...t}=e,a[0]=e,a[1]=t,a[2]=r):(t=a[1],r=a[2]);let l=m5("group-label",r);return a[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,m2.cn)((0,SE.d)({inset:!1})),a[3]=n):n=a[3],a[4]!==t||a[5]!==l?(i=(0,eB.Y)(HQ.ItemGroupLabel,{...t,"data-testid":l,className:n}),a[4]=t,a[5]=l,a[6]=i):i=a[6],i},"SelectGroupLabel");zE.displayName="SelectGroupLabel";let zk=(0,eQ.G)(e=>{let t,r=(0,ej.c)(2);return r[0]!==e?(t=(0,eB.Y)(zE,{...e,"data-slot":"filter-dropdown-group-label"}),r[0]=e,r[1]=t):t=r[1],t},"FilterDropdownGroupLabel");zk.displayName="FilterDropdownGroupLabel";let zP=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(12);o[0]!==e?({ref:n,className:t,"data-testid":i,...r}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=m5("option-hint",i);return o[5]!==t?(a=(0,m2.cn)("ml-auto shrink-0 self-start font-sans text-sm text-text-secondary tabular-nums",t),o[5]=t,o[6]=a):a=o[6],o[7]!==r||o[8]!==n||o[9]!==a||o[10]!==s?(l=(0,eB.Y)("span",{...r,ref:n,"data-slot":"select-option-hint","data-testid":s,className:a}),o[7]=r,o[8]=n,o[9]=a,o[10]=s,o[11]=l):l=o[11],l},"SelectOptionHint");zP.displayName="SelectOptionHint";let zD=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(21);u[0]!==e?({item:n,hint:r,children:t,"data-testid":a,...i}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i,u[5]=a):(t=u[1],r=u[2],n=u[3],i=u[4],a=u[5]);let{collection:h}=Hq(),p=(0,c0.useContext)(HX),f=h.getItemValue(n),m=p?.source!==void 0&&h.getItemValue(p.source)===f,g=m5("selected-option"),C=m&&p?p:n,v=a??(m?g:void 0);return u[6]!==t||u[7]!==h||u[8]!==n?(l=t??h.stringifyItem(n),u[6]=t,u[7]=h,u[8]=n,u[9]=l):l=u[9],u[10]!==l?(o=(0,eB.Y)(ze,{children:l}),u[10]=l,u[11]=o):o=u[11],u[12]!==r?(s=null!=r&&(0,eB.Y)(zP,{children:r}),u[12]=r,u[13]=s):s=u[13],u[14]===Symbol.for("react.memo_cache_sentinel")?(c=(0,eB.Y)(H8,{}),u[14]=c):c=u[14],u[15]!==i||u[16]!==C||u[17]!==v||u[18]!==o||u[19]!==s?(d=(0,eB.FD)(H6,{...i,item:C,"data-slot":"filter-dropdown-option","data-testid":v,children:[o,s,c]}),u[15]=i,u[16]=C,u[17]=v,u[18]=o,u[19]=s,u[20]=d):d=u[20],d},"FilterDropdownOption");zD.displayName="FilterDropdownOption";let zA=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(11);l[0]!==e?({className:t,ref:n,...r}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=n):(t=l[1],r=l[2],n=l[3]);let o=m5("separator");return l[4]!==t?(i=(0,m2.cn)("mx-8 my-4 h-px bg-border-primary border-none",t),l[4]=t,l[5]=i):i=l[5],l[6]!==r||l[7]!==n||l[8]!==i||l[9]!==o?(a=(0,eB.Y)("hr",{ref:n,"data-slot":"select-separator","data-testid":o,"aria-orientation":"horizontal",className:i,...r}),l[6]=r,l[7]=n,l[8]=i,l[9]=o,l[10]=a):a=l[10],a},"SelectSeparator");zA.displayName="SelectSeparator";let zT=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(20);d[0]!==e?({label:n,children:t,"data-testid":i,...r}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=n,d[4]=i):(t=d[1],r=d[2],n=d[3],i=d[4]);let u=void 0===n?"Selected":n,{showSelected:h,aliasItems:p}=Hq(),f=m5("selected",i);if(!h)return null;if(d[5]!==u?(a=(0,eB.Y)(zE,{children:u}),d[5]=u,d[6]=a):a=d[6],d[7]!==p||d[8]!==t){let e;d[10]!==t?(e=e=>{let r=e.source;return(0,eB.Y)(HX.Provider,{value:e,children:t?t(r):(0,eB.Y)(zD,{item:r})},e.value)},d[10]=t,d[11]=e):e=d[11],l=p.map(e),d[7]=p,d[8]=t,d[9]=l}else l=d[9];return d[12]!==r||d[13]!==a||d[14]!==l||d[15]!==f?(o=(0,eB.FD)(zw,{...r,"data-slot":"filter-dropdown-selected","data-testid":f,children:[a,l]}),d[12]=r,d[13]=a,d[14]=l,d[15]=f,d[16]=o):o=d[16],d[17]===Symbol.for("react.memo_cache_sentinel")?(s=(0,eB.Y)(zA,{}),d[17]=s):s=d[17],d[18]!==o?(c=(0,eB.FD)(eB.FK,{children:[o,s]}),d[18]=o,d[19]=c):c=d[19],c},"FilterDropdownSelected");zT.displayName="FilterDropdownSelected";let zM=(0,m9.F)("inline-flex w-max shrink-0 items-center justify-center whitespace-nowrap rounded-full font-mono font-medium transition-colors",{variants:{type:{solid:"",secondary:"",outline:"border-1"},color:{neutral:"","neutral-alt":"",brand:"",danger:"",success:"",info:""},size:{default:"h-20 min-w-16 px-5 py-2 text-xs [&_svg]:icon-sm",small:"h-16 min-w-12 px-3 py-2 text-2xs [&_svg]:icon-xs"},iconOnly:{true:""},clickable:{true:"cursor-pointer overlay active:outline-none active:ring-3 focus-visible:outline-none focus-visible:ring-3",false:""}},compoundVariants:[{type:"solid",color:"brand",className:"bg-bg-fill-brand text-text-primary-alt"},{type:"solid",color:"danger",className:"bg-bg-fill-danger text-text-primary-alt"},{type:"secondary",color:"neutral",className:"bg-states-primary-active text-text-primary"},{type:"secondary",color:"neutral-alt",className:"bg-states-primary-alt-active text-text-primary-alt"},{type:"secondary",color:"brand",className:"bg-states-brand-active text-text-brand"},{type:"secondary",color:"danger",className:"bg-states-danger-active text-text-danger"},{type:"secondary",color:"success",className:"bg-states-success-active text-text-success"},{type:"secondary",color:"info",className:"bg-states-info-active text-text-info"},{type:"outline",color:"neutral",className:"border-border-primary bg-component-outline-button-bg text-text-primary"},{type:"outline",color:"brand",className:"border-border-brand bg-bg-brand text-text-brand"},{type:"outline",color:"danger",className:"border-border-danger bg-bg-danger text-text-danger"},{type:"outline",color:"success",className:"border-border-success bg-bg-success text-text-success"},{type:"outline",size:"default",className:"px-4 py-1"},{type:"outline",size:"small",className:"px-2 py-1"},{iconOnly:!0,className:"px-2 py-2"},{type:"outline",iconOnly:!0,className:"px-1 py-1"},{clickable:!0,type:["secondary","outline"],color:"neutral",className:"hover:overlay-states-primary-hover active:overlay-states-primary-hover"},{clickable:!0,type:"secondary",color:"neutral-alt",className:"hover:overlay-states-primary-alt-hover active:overlay-states-primary-alt-hover"},{clickable:!0,type:"solid",color:"brand",className:"hover:overlay-states-on-fill-hover active:overlay-states-on-fill-hover active:ring-focus-brand focus-visible:ring-focus-brand"},{clickable:!0,type:"solid",color:"danger",className:"hover:overlay-states-on-fill-hover active:overlay-states-on-fill-hover active:ring-focus-destructive focus-visible:ring-focus-destructive"},{clickable:!0,type:["secondary","outline"],color:"brand",className:"hover:overlay-states-brand-hover active:overlay-states-brand-hover"},{clickable:!0,type:["secondary","outline"],color:"danger",className:"hover:overlay-states-danger-hover active:overlay-states-danger-hover"},{clickable:!0,type:["secondary","outline"],color:"success",className:"hover:overlay-states-success-hover active:overlay-states-success-hover"},{clickable:!0,type:"secondary",color:"info",className:"hover:overlay-states-info-hover active:overlay-states-info-hover"},{clickable:!0,type:["secondary","outline"],className:"active:ring-focus-primary focus-visible:ring-focus-primary"}]}),zL=e=>"BUTTON"===e.tagName||"INPUT"===e.tagName||"A"===e.tagName&&e.hasAttribute("href"),zI=(0,eQ.G)(({type:e="secondary",color:t="solid"===e?"brand":"neutral",size:r="default",asChild:n=!1,children:i,className:a,ref:l,role:o,tabIndex:s,onClick:c,onKeyDown:d,onKeyUp:u,onBlur:h,"data-slot":p,...f})=>{let m=n&&(0,c0.isValidElement)(i)?i:null,g=m?.props,C=m?.type==="button"||m?.type==="input"||m?.type==="a"&&g?.href!=null,v=!g?.disabled&&!!(c||g?.onClick||C),y=(0,c0.useRef)(!1),b=n?Ew.DX:"div";return(0,eB.Y)(b,{...f,ref:l,role:o??(v&&!C?"button":void 0),tabIndex:s??(v&&!C?0:void 0),"data-slot":p??"numeric-badge","data-type":e,"data-color":t,onClick:c?e=>{e.defaultPrevented||c(e)}:void 0,onKeyDown:e=>{d?.(e),e.defaultPrevented||!v||e.target!==e.currentTarget||zL(e.currentTarget)||("Enter"===e.key?(e.preventDefault(),e.currentTarget.click()):" "===e.key&&(e.preventDefault(),y.current=!0))},onKeyUp:e=>{if(u?.(e)," "!==e.key)return;let t=y.current;y.current=!1,t&&!e.defaultPrevented&&v&&e.target===e.currentTarget&&!zL(e.currentTarget)&&(e.preventDefault(),e.currentTarget.click())},onBlur:e=>{y.current=!1,h?.(e)},className:(0,m2.cn)(zM({type:e,color:t,size:r,clickable:v,iconOnly:(0,ES.o)(m?m.props.children:i)}),a),children:i})},"NumericBadge");zI.displayName="NumericBadge";let zN=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(5),{className:a}=e;return i[0]!==a?(t=(0,m2.cn)("ml-auto icon-md transition-transform data-[state=open]:rotate-180",a),i[0]=a,i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,eB.Y)(t6.y,{}),i[2]=r):r=i[2],i[3]!==t?(n=(0,eB.Y)(HQ.Indicator,{className:t,asChild:!0,children:r}),i[3]=t,i[4]=n):n=i[4],n},"SelectArrow"),zF=new Set(["Backspace","Delete"]),zR=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(11),{text:l,emphasis:o,className:s}=e;return a[0]!==s||a[1]!==o?(t=(0,m2.cn)(zi({emphasis:o}),s),a[0]=s,a[1]=o,a[2]=t):t=a[2],a[3]!==t||a[4]!==l?(r=(0,eB.Y)(bw,{children:(0,eB.Y)("span",{className:t,children:l})}),a[3]=t,a[4]=l,a[5]=r):r=a[5],a[6]!==l?(n=(0,eB.Y)(bS,{children:l}),a[6]=l,a[7]=n):n=a[7],a[8]!==r||a[9]!==n?(i=(0,eB.Y)(m3,{value:void 0,children:(0,eB.FD)(bE,{children:[r,n]})}),a[8]=r,a[9]=n,a[10]=i):i=a[10],i},"TruncatedText"),zV=(0,eQ.G)(()=>{let e,t=(0,ej.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eB.Y)("span",{"aria-hidden":!0,className:"shrink-0 text-xs text-text-tertiary",children:"•"}),t[0]=e):e=t[0],e},"Separator"),z_=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b=(0,ej.c)(72);b[0]!==e?({ref:l,className:n,children:r,onKeyDown:i,"aria-label":t,"data-testid":o,...a}=e,b[0]=e,b[1]=t,b[2]=r,b[3]=n,b[4]=i,b[5]=a,b[6]=l,b[7]=o):(t=b[1],r=b[2],n=b[3],i=b[4],a=b[5],l=b[6],o=b[7]);let{label:x,allLabel:O,multiple:w,value:S,collection:E,clear:k,triggerRef:P}=Hq(),D=m5("control"),A=m5("trigger",o),T=S.length>0,M=w&&T;if(b[8]!==O||b[9]!==r||b[10]!==k||b[11]!==M||b[12]!==E||b[13]!==T||b[14]!==x||b[15]!==w||b[16]!==i||b[17]!==S){let e,t,n;b[22]!==E?(e=e=>E.stringify(e)??e,b[22]=E,b[23]=e):e=b[23];let a=S.map(e);if(b[24]!==r?(t=c0.Children.toArray(r).find(zY),b[24]=r,b[25]=t):t=b[25],d=t,b[26]!==k||b[27]!==M||b[28]!==i?(n=e=>{i?.(e),!e.defaultPrevented&&M&&zF.has(e.key)&&(e.preventDefault(),k())},b[26]=k,b[27]=M,b[28]=i,b[29]=n):n=b[29],u=n,s=x,w)if(T)if(1===S.length){let e,t;b[32]!==x?(e=(0,eB.Y)(zR,{text:x,emphasis:"name"}),b[32]=x,b[33]=e):e=b[33],b[34]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eB.Y)(zV,{}),b[34]=t):t=b[34],c=(0,eB.FD)(eB.FK,{children:[e,t,(0,eB.Y)(zR,{text:a[0]??"",emphasis:"value",className:"min-w-24"})]}),s=`${x}, ${a[0]}`}else{let e,t,r,n;b[35]!==x?(e=(0,eB.Y)(zR,{text:x,emphasis:"name"}),b[35]=x,b[36]=e):e=b[36],b[37]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eB.Y)(zV,{}),b[37]=t):t=b[37],b[38]!==S.length?(r=(0,eB.Y)("span",{"aria-hidden":!0,className:"inline-flex shrink-0",children:(0,eB.Y)(zI,{type:"secondary",color:"neutral",children:S.length})}),b[38]=S.length,b[39]=r):r=b[39],b[40]!==e||b[41]!==r?(n=(0,eB.FD)(eB.FK,{children:[e,t,r]}),b[40]=e,b[41]=r,b[42]=n):n=b[42],c=n,s=`${x}, ${S.length} selected: ${a.join(", ")}`}else{let e;b[30]!==x?(e=(0,eB.Y)(zR,{text:x,emphasis:"name"}),b[30]=x,b[31]=e):e=b[31],c=e}else c=T?(0,eB.Y)(zR,{text:a[0]??"",emphasis:"value"}):(0,eB.Y)(zR,{text:O,emphasis:"name"}),T&&(s=`${x}, ${a[0]}`);b[8]=O,b[9]=r,b[10]=k,b[11]=M,b[12]=E,b[13]=T,b[14]=x,b[15]=w,b[16]=i,b[17]=S,b[18]=s,b[19]=c,b[20]=d,b[21]=u}else s=b[18],c=b[19],d=b[20],u=b[21];b[43]!==M||b[44]!==T?(h=zr({applied:T,clearable:M}),b[43]=M,b[44]=T,b[45]=h):h=b[45],b[46]!==l||b[47]!==P?(p=g9(l,P),b[46]=l,b[47]=P,b[48]=p):p=b[48];let L=t??s;return b[49]!==n||b[50]!==M?(f=(0,m2.cn)(zn({clearable:M}),n),b[49]=n,b[50]=M,b[51]=f):f=b[51],b[52]!==c?(m=(0,eB.Y)("span",{className:"flex min-w-0 items-center gap-4 overflow-hidden",children:c}),b[52]=c,b[53]=m):m=b[53],b[54]!==M?(g=!M&&(0,eB.Y)(zN,{className:"text-icon-primary"}),b[54]=M,b[55]=g):g=b[55],b[56]!==u||b[57]!==a||b[58]!==p||b[59]!==L||b[60]!==f||b[61]!==m||b[62]!==g||b[63]!==A?(C=(0,eB.FD)(HQ.Trigger,{...a,ref:p,"data-slot":"filter-dropdown-trigger","data-testid":A,"aria-label":L,onKeyDown:u,className:f,children:[m,g]}),b[56]=u,b[57]=a,b[58]=p,b[59]=L,b[60]=f,b[61]=m,b[62]=g,b[63]=A,b[64]=C):C=b[64],b[65]!==d?(v=d??(0,eB.Y)(zo,{}),b[65]=d,b[66]=v):v=b[66],b[67]!==D||b[68]!==h||b[69]!==C||b[70]!==v?(y=(0,eB.FD)(HQ.Control,{"data-slot":"filter-dropdown-control","data-testid":D,className:h,children:[C,v]}),b[67]=D,b[68]=h,b[69]=C,b[70]=v,b[71]=y):y=b[71],y},"FilterDropdownTrigger");function zY(e){return(0,c0.isValidElement)(e)&&e.type===zo}z_.displayName="FilterDropdownTrigger";let z$=(0,c0.createContext)(null),zH=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),{value:n,children:i}=e;return r[0]!==i||r[1]!==n?(t=(0,eB.Y)(z$.Provider,{value:n,children:i}),r[0]=i,r[1]=n,r[2]=t):t=r[2],t},"FilterInputProvider");zH.displayName="FilterInputProvider";let zz="attribute",zZ="operator",zQ="value",zB=["is_null","is_not_null"],zj=["in","not_in"],zG=/^chip-(\d+)$/,zU=/^connector-(\d+)$/,zW='[data-slot="filter-input"]',zq={and:"AND",or:"OR","(":"(",")":")"},zX={"=":"=","!=":"!=",">":">","<":"<",">=":">=","<=":"<=",like:"~",not_like:"!~",in:"IN",not_in:"NOT IN",is_null:"= null",is_not_null:"!= null",between:"<>"},zK={"=":"is","!=":"is not",">":"greater","<":"less",">=":"greater or equal","<=":"less or equal",like:"like",not_like:"not like",in:"is any of",not_in:"is not any of",is_null:"is not set",is_not_null:"is set",between:"between"},zJ={string:{"=":"is","!=":"is not",in:"in",not_in:"not in",like:"like",not_like:"not like",is_null:"is not set",is_not_null:"is set"},integer:{"=":"is","!=":"is not",">":"greater","<":"less",">=":"greater or equal","<=":"less or equal",in:"in",not_in:"not in"},float:{"=":"is","!=":"is not",">":"greater","<":"less",">=":"greater or equal","<=":"less or equal"},date:{"=":"is","!=":"is not",">":"after","<":"before",">=":"on or after","<=":"on or before",between:"in between"},boolean:{"=":"is true","!=":"is false",is_null:"is not set",is_not_null:"is set"},enum:{in:"is any of",not_in:"is not any of",is_null:"is not set",is_not_null:"is set"}},z1={string:[["=","!=","in","not_in","like","not_like"],["is_null","is_not_null"]],integer:[["=","!=",">","<",">=","<="],["in","not_in"]],float:[["=","!=",">","<",">=","<="]],date:[[">",">=","<","<=","=","!=","between"]],boolean:[["=","!=","is_null","is_not_null"]],enum:[["=","!=","in","not_in"],["is_null","is_not_null"]]},z2=(e,t)=>zJ[t]?.[e]??zK[e],z0=(e,t)=>{let r=Object.entries(zJ[t]).find(([,t])=>t===e);if(r)return r[0];let n=Object.entries(zK).find(([,t])=>t===e);return n?n[0]:null},z3=e=>null!==e&&zj.includes(e),z5=e=>zB.includes(e),z4=e=>e.operators??z1[e.type].flat(),z7=(e,t)=>z4(e).includes(t),z9=(e,t)=>e?t?"value":"operator":"field",z6=(e,t,r)=>!!e&&!!t&&(!!z5(t)||null!=r&&(Array.isArray(r)?r.length>0:""!==r)),z8=e=>{let t=e.match(zG);return t?Number(t[1]):null},Ze=e=>null==e||""===e||Array.isArray(e)&&0===e.length,Zt=(e,t)=>!e||(z5(e)?void 0:Ze(t)?zQ:void 0),Zr=e=>Array.isArray(e?.children),Zn=e=>{if(!e)return[];let t=[];for(let r of e)Zr(r)?t.push(...Zn(r.children)):t.push(r);return t},Zi=(e,t)=>{if(e){for(let r of e)if(Zr(r)){let e=Zi(r.children,t);if(e)return e}else if(String(r.value)===t)return r}},Za=(e,t)=>{if(null==e)return;let r=String(e);for(let e of t){let t=Zi(e.values,r);if(t)return t.label}},Zl=(e,t="",r)=>{if(e.getSuggestions)return e.getSuggestions(t,r);let n=e.values??[];return n.length>0?n:e.options?.map(e=>({value:e,label:e}))??[]},Zo=e=>!1!==e.strictValues&&!e.getSuggestions&&((e.values?.length??0)>0||(e.options?.length??0)>0),Zs=[{value:"30m",label:"30 min ago"},{value:"1h",label:"1 hour ago"},{value:"6h",label:"6 hours ago"},{value:"12h",label:"12 hours ago"},{value:"1d",label:"1 day ago"},{value:"7d",label:"7 days ago"},{value:"14d",label:"14 days ago"}],Zc=e=>{let t=Zs.find(t=>t.value===e);return t?t.label:/^\d+[mhd]$/.test(e)?e:(e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(t)return new Date(Date.UTC(+t[1],t[2]-1,+t[3])).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});let r=new Date(e);return Number.isNaN(r.getTime())?e:r.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})(e)},Zd=(e,t)=>null!=t&&(!e||Zf(e,t)),Zu=(e,t)=>e.find(e=>e.label.toLowerCase()===t.toLowerCase()||String(e.value).toLowerCase()===t.toLowerCase()),Zh=(e,t)=>e.some(e=>e.value===t||String(e.value).toLowerCase()===String(t).toLowerCase()),Zp=(e,t)=>{if(e.validate)return t.reduce((t,r,n)=>(e.validate(r)&&t.push(n),t),[]);if(e.getSuggestions)return[];let r=Zo(e)?Zn(Zl(e)):null;return t.reduce((t,n,i)=>(null==n||(((e,t)=>{switch(t){case"integer":{if("number"==typeof e)return Number.isInteger(e);let t=String(e).trim();return""!==t&&/^-?\d+$/.test(t)}case"float":{if("number"==typeof e)return Number.isFinite(e);let t=String(e).trim();return""!==t&&Number.isFinite(Number(t))}case"boolean":{if("boolean"==typeof e)return!0;let t=String(e).trim().toLowerCase();return"true"===t||"false"===t}case"date":{let t=String(e).trim();if(""===t)return!1;return/^\d+[mhd]$/.test(t)||!Number.isNaN(new Date(t).getTime())}default:return!0}})(n,e.type)?r&&r.length>0&&!Zh(r,n)&&t.push(i):t.push(i)),t),[])},Zf=(e,t)=>null!=t&&Zp(e,Array.isArray(t)?t:[t]).length>0,Zm=e=>{let t=e.pair;return!t||!(t.operator&&z5(t.operator))&&Ze(t.value)},Zg=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(10),{errors:o}=e;if(0===o.length)return null;let s=1===o.length?"Filter contains 1 issue:":`Filter contains ${o.length} issues:`;return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eB.Y)(bT,{}),l[0]=t):t=l[0],l[1]!==s?(r=(0,eB.Y)(bM,{children:s}),l[1]=s,l[2]=r):r=l[2],l[3]!==o?(n=o.map(ZC),l[3]=o,l[4]=n):n=l[4],l[5]!==n?(i=(0,eB.Y)("ul",{className:"list-disc ms-[21px] text-sm text-text-secondary",children:n}),l[5]=n,l[6]=i):i=l[6],l[7]!==r||l[8]!==i?(a=(0,eB.FD)(vr,{color:"destructive",children:[t,(0,eB.FD)(by,{children:[r,i]})]}),l[7]=r,l[8]=i,l[9]=a):a=l[9],a},"FilterInputErrors");function ZC(e,t){return(0,eB.Y)("li",{children:e},t)}Zg.displayName="FilterInputErrors";let Zv=()=>{let e=(0,c0.useContext)(z$);if(!e)throw Error("useFilterInputContext must be used within a <FilterInput> component");return e},Zy=(0,m9.F)("h-22 group/chip relative flex items-center justify-center px-5 py-0 border border-solid rounded-8 gap-4 group-data-[selected-all]/filter-input:bg-bg-light-info group-data-[selected-all]/filter-input:border-border-info [[data-drag-selected]_&]:bg-bg-light-info [[data-drag-selected]_&]:border-border-info",{variants:{error:{true:"bg-bg-light-danger border-border-danger",false:"bg-badge-badge-bg border-border-primary"},interactive:{true:"cursor-pointer",false:""},disabled:{true:"opacity-50 cursor-default",false:""},building:{true:"",false:""}},compoundVariants:[{building:!0,error:!1,className:"border-border-strong-primary"}],defaultVariants:{error:!1,interactive:!1,disabled:!1,building:!1}}),Zb="flex flex-col justify-center overflow-hidden leading-none",Zx="min-w-[4px] self-stretch",ZO=(0,m9.F)("truncate text-sm",{variants:{variant:{attribute:"font-normal",operator:"font-normal",value:"font-medium"},error:{true:"text-text-danger",false:""}},compoundVariants:[{variant:"attribute",error:!1,className:"text-text-primary"},{variant:"operator",error:!1,className:"text-text-secondary"},{variant:"value",error:!1,className:"text-text-info"}],defaultVariants:{error:!1}}),Zw=(0,m9.F)("absolute -right-[13px] top-[-1px] bottom-[-1px] flex items-center justify-center p-0 cursor-pointer w-[18px] border border-solid border-l-0 rounded-r-8 opacity-0 pointer-events-none group-hover/chip:opacity-100 group-hover/chip:pointer-events-auto focus:opacity-100 focus:pointer-events-auto transition-opacity group-data-[selected-all]/filter-input:hidden [[data-drag-selected]_&]:hidden",{variants:{error:{true:"border-border-danger bg-bg-light-danger text-text-danger",false:"border-border-primary bg-badge-badge-bg text-text-secondary"}},defaultVariants:{error:!1}}),ZS=e=>{let t,r,n=(0,ej.c)(9),{sizerRef:i,text:a,minWidth:l,maxWidth:o}=e,s=void 0===l?4:l,c=void 0===o?280:o,[d,u]=(0,c0.useState)(s);return n[0]!==c||n[1]!==s||n[2]!==i||n[3]!==a?(t=()=>{u(Math.min(c,Math.max(s,i.current?.getBoundingClientRect().width??8*a.length)))},n[0]=c,n[1]=s,n[2]=i,n[3]=a,n[4]=t):t=n[4],n[5]!==c||n[6]!==s||n[7]!==a?(r=[a,s,c],n[5]=c,n[6]=s,n[7]=a,n[8]=r):r=n[8],(0,c0.useEffect)(t,r),d+4},ZE=(0,eQ.G)(()=>{let e,t,r,n,i,a,l=(0,ej.c)(20),o=(0,c0.useContext)(z$),s=(0,c0.useRef)(null),c=o?.inputText??"";l[0]!==c?(e={sizerRef:s,text:c},l[0]=c,l[1]=e):e=l[1];let d=ZS(e);if(!o)return null;let{inputRef:u,error:h,menuOpen:p,onInputChange:f,onInputKeyDown:m,onInputClick:g}=o,C=`${d}px`;l[2]!==C?(t={width:C},l[2]=C,l[3]=t):t=l[3],l[4]!==h||l[5]!==u||l[6]!==c||l[7]!==p||l[8]!==f||l[9]!==g||l[10]!==m||l[11]!==t?(r=(0,eB.Y)("input",{ref:u,type:"text",role:"combobox",size:1,"aria-expanded":p,"aria-invalid":h,"aria-label":"Filter value","aria-autocomplete":"list",value:c,onChange:f,onKeyDown:m,onClick:g,style:t,className:"h-22 min-w-0 border-none bg-transparent p-0 text-sm shadow-none outline-none ring-0"}),l[4]=h,l[5]=u,l[6]=c,l[7]=p,l[8]=f,l[9]=g,l[10]=m,l[11]=t,l[12]=r):r=l[12],l[13]===Symbol.for("react.memo_cache_sentinel")?(n=(0,m2.cn)(ZO({variant:"value"}),"invisible absolute whitespace-pre"),l[13]=n):n=l[13];let v=c||" ";return l[14]!==n||l[15]!==v?(i=(0,eB.Y)("span",{ref:s,className:n,"aria-hidden":!0,children:v}),l[14]=n,l[15]=v,l[16]=i):i=l[16],l[17]!==r||l[18]!==i?(a=(0,eB.FD)(eB.FK,{children:[r,i]}),l[17]=r,l[18]=i,l[19]=a):a=l[19],a},"ChipSearchInput");ZE.displayName="ChipSearchInput";let Zk=(0,c0.createContext)(null),ZP=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(6);return i[0]!==e?({children:t,...r}=e,i[0]=e,i[1]=t,i[2]=r):(t=i[1],r=i[2]),i[3]!==t||i[4]!==r?(n=(0,eB.Y)(Zk.Provider,{value:r,children:t}),i[3]=t,i[4]=r,i[5]=n):n=i[5],n},"EditingProvider"),ZD=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(9),{error:l,onRemove:o}=e,s=m5("remove-button");return a[0]!==o?(t=e=>{e.stopPropagation(),o()},a[0]=o,a[1]=t):t=a[1],a[2]!==l?(r=Zw({error:l}),a[2]=l,a[3]=r):r=a[3],a[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,eB.Y)(cN.X,{size:"sm"}),a[4]=n):n=a[4],a[5]!==t||a[6]!==r||a[7]!==s?(i=(0,eB.Y)("button",{type:"button",onClick:t,className:r,"data-slot":"filter-input-chip-delete","data-testid":s,"aria-label":"Remove filter",children:n}),a[5]=t,a[6]=r,a[7]=s,a[8]=i):i=a[8],i},"FilterInputRemoveButton");ZD.displayName="FilterInputRemoveButton";let ZA=(0,eQ.G)(()=>{let e,t,r=(0,ej.c)(3),n=m5("separator");return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eB.Y)("p",{className:ZO({variant:"operator"}),children:";"}),r[0]=e):e=r[0],r[1]!==n?(t=(0,eB.Y)("div",{className:`${Zb} shrink-0`,"data-slot":"segment-separator","data-testid":n,"aria-hidden":!0,children:e}),r[1]=n,r[2]=t):t=r[2],t},"PairSeparator");ZA.displayName="PairSeparator";let ZT=e=>{if(e){if("end"===e.dataset.caretMode){let t=e.value.length;e.setSelectionRange(t,t);return}e.select()}},ZM=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h=(0,ej.c)(26);h[0]!==e?({valueParts:i,valueSeparator:a,errorValueIndices:r,className:t,...n}=e,h[0]=e,h[1]=t,h[2]=r,h[3]=n,h[4]=i,h[5]=a):(t=h[1],r=h[2],n=h[3],i=h[4],a=h[5]);let p=!!n.onClick;if(h[6]!==t?(l=(0,m2.cn)(Zb,t),h[6]=t,h[7]=l):l=h[7],h[8]!==p?(o=p&&{role:"button","aria-label":"Edit filter value"},h[8]=p,h[9]=o):o=h[9],h[10]===Symbol.for("react.memo_cache_sentinel")?(s=ZO({variant:"value"}),h[10]=s):s=h[10],h[11]!==r||h[12]!==i||h[13]!==a){let e;h[15]!==r||h[16]!==i.length||h[17]!==a?(e=(e,t)=>(0,eB.FD)("span",{className:r.includes(t)?ZO({variant:"value",error:!0}):void 0,children:[e,t<i.length-1&&a]},t),h[15]=r,h[16]=i.length,h[17]=a,h[18]=e):e=h[18],c=i.map(e),h[11]=r,h[12]=i,h[13]=a,h[14]=c}else c=h[14];return h[19]!==c?(d=(0,eB.Y)("p",{className:s,children:c}),h[19]=c,h[20]=d):d=h[20],h[21]!==n||h[22]!==l||h[23]!==o||h[24]!==d?(u=(0,eB.Y)("div",{className:l,"data-slot":"segment-value",...o,...n,children:d}),h[21]=n,h[22]=l,h[23]=o,h[24]=d,h[25]=u):u=h[25],u},"MultiValueSegment");ZM.displayName="MultiValueSegment";let ZL=(0,eQ.G)(({ref:e,variant:t,children:r,className:n,error:i,editing:a,editText:l,onEditChange:o,onEditKeyDown:s,onEditBlur:c,valueParts:d,valueSeparator:u=", ",errorValueIndices:h,caretMode:p,valueMaxWidth:f,...m})=>{let g=m5(t),C=(0,c0.useRef)(null),v=(0,c0.useRef)(null),y=(0,c0.useRef)(null),b=(0,c0.useContext)(z$),x=t===zz?b?.segmentAttributeInputRef:t===zZ?b?.segmentOperatorInputRef:t===zQ?b?.segmentValueInputRef:null,O=(0,c0.useRef)(0);(0,c0.useEffect)(()=>{a||(O.current=C.current?.getBoundingClientRect().width??8*r.length)},[a,r]),(0,c0.useEffect)(()=>{if(!a)return;let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>{v.current?.focus(),ZT(v.current)})});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}},[a]);let w=ZS({sizerRef:y,text:l??"",...t===zQ&&f&&{maxWidth:f}}),S=(0,c0.useCallback)(e=>{v.current=e,x&&(x.current=e)},[x]),E=!!m.onClick;return t===zQ&&d&&h&&h.length>0&&!a?(0,eB.Y)(ZM,{valueParts:d,valueSeparator:u,errorValueIndices:h,className:n,"data-testid":g,...m}):(0,eB.Y)("div",{ref:e,className:(0,m2.cn)(Zb,n),"data-slot":`segment-${t}`,"data-testid":g,...E&&{role:"button","aria-label":`Edit filter ${t}`},...m,children:a?(0,eB.FD)(eB.FK,{children:[(0,eB.Y)("input",{ref:S,size:1,value:l??"",onChange:e=>o?.(e.target.value),onKeyDown:s,onBlur:c,"aria-label":`Filter ${t}`,..."end"===p&&{"data-caret-mode":"end"},className:(0,m2.cn)(ZO({variant:t,error:i}),"bg-transparent outline-none p-0 m-0",t===zQ&&"min-w-0"),style:{width:`${w}px`}}),(0,eB.Y)("span",{ref:y,className:(0,m2.cn)(ZO({variant:t,error:i}),"invisible absolute whitespace-pre"),"aria-hidden":!0,children:l||" "})]}):(0,eB.Y)("p",{ref:C,className:ZO({variant:t,error:i}),children:r})})},"Segment");ZL.displayName="Segment";let ZI=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w,S,E,k,P,D,A,T,M,L,I,N,F,R,V,_,Y,$,H=(0,ej.c)(116);H[0]!==e?({ref:h,chipId:n,attribute:t,attributeDescription:r,operator:c,value:b,error:f,valueParts:x,valueSeparator:O,errorValueIndices:a,building:m,disabled:g,valueMaxWidth:C,caretMode:v,pair:d,onRemove:o,onSegmentClick:s,onPairSegmentClick:l,className:i,style:p,"data-testid":y,...u}=e,H[0]=e,H[1]=t,H[2]=r,H[3]=n,H[4]=i,H[5]=a,H[6]=l,H[7]=o,H[8]=s,H[9]=c,H[10]=d,H[11]=u,H[12]=h,H[13]=p,H[14]=f,H[15]=m,H[16]=g,H[17]=C,H[18]=v,H[19]=y,H[20]=b,H[21]=x,H[22]=O):(t=H[1],r=H[2],n=H[3],i=H[4],a=H[5],l=H[6],o=H[7],s=H[8],c=H[9],d=H[10],u=H[11],h=H[12],p=H[13],f=H[14],m=H[15],g=H[16],C=H[17],v=H[18],y=H[19],b=H[20],x=H[21],O=H[22]);let z=void 0!==f&&f,Z=void 0!==m&&m,Q=void 0!==g&&g,B=void 0===C?500:C,j=void 0===v?"end":v,G=m5("condition-chip",y),U=!Q,W=(0,c0.useRef)(null),q=(0,c0.useContext)(Zk),X=null!=q&&null!=q.editingSegment&&(Z?null==q.editingChipId:null!=n&&q.editingChipId===n),K=X?q.editingSegment:null,J=!X&&z,ee=X?void 0:d?.error,et=!!J||!!ee;H[23]!==K||H[24]!==s?(w=(e,t)=>{if(!s||K===e)return;t.stopPropagation();let r=W.current;r&&s(e,r)},H[23]=K,H[24]=s,H[25]=w):w=H[25];let er=w;H[26]!==l?(S=(e,t)=>{if(!l)return;t.stopPropagation();let r=W.current;r&&l(e,r)},H[26]=l,H[27]=S):S=H[27];let en=S,ei=q?.editingSide??0;H[28]!==q||H[29]!==ei||H[30]!==X?(E=(e,t)=>X&&q.editingSegment===e&&ei===(void 0===t?0:t)?{editing:!0,editText:q.segmentFilterText,onEditChange:q.onSegmentFilterChange,onEditKeyDown:q.onSegmentEditKeyDown,onEditBlur:q.onSegmentEditBlur}:{},H[28]=q,H[29]=ei,H[30]=X,H[31]=E):E=H[31];let ea=E,el=0===ei?K:null,eo=1===ei?K:null,es=!0===J||J===zz;H[32]!==er||H[33]!==U?(k=U?e=>er(zz,e):void 0,H[32]=er,H[33]=U,H[34]=k):k=H[34];let ec=U&&Z?ZN:void 0;H[35]!==ea?(P=ea(zz),H[35]=ea,H[36]=P):P=H[36],H[37]!==t||H[38]!==k||H[39]!==ec||H[40]!==P||H[41]!==es?(D=(0,eB.Y)(ZL,{variant:zz,className:"min-w-0 max-w-[180px] shrink",error:es,onClick:k,onMouseDown:ec,...P,children:t}),H[37]=t,H[38]=k,H[39]=ec,H[40]=P,H[41]=es,H[42]=D):D=H[42];let ed=D;H[43]!==h?(A=e=>{W.current=e,"function"==typeof h?h(e):h&&(h.current=e)},H[43]=h,H[44]=A):A=H[44];let eu=A;return H[45]!==Z||H[46]!==i||H[47]!==Q||H[48]!==et||H[49]!==U||H[50]!==d?(T=(0,m2.cn)(Zy({error:et,interactive:U,disabled:Q,building:Z}),d?void 0:"max-w-[320px]",i),H[45]=Z,H[46]=i,H[47]=Q,H[48]=et,H[49]=U,H[50]=d,H[51]=T):T=H[51],H[52]!==d||H[53]!==p||H[54]!==B?(M=d?{maxWidth:B,...p}:{maxWidth:"none",...p},H[52]=d,H[53]=p,H[54]=B,H[55]=M):M=H[55],H[56]!==Z?(L=Z&&{"data-building":""},H[56]=Z,H[57]=L):L=H[57],H[58]!==r||H[59]!==ed||H[60]!==el||H[61]!==G?(I=r?(0,eB.FD)(bC,{disabled:el===zz,children:[(0,eB.Y)(bo,{asChild:!0,"data-testid":G&&`${G}--attribute`,children:ed}),(0,eB.Y)(bm,{children:r})]}):ed,H[58]=r,H[59]=ed,H[60]=el,H[61]=G,H[62]=I):I=H[62],H[63]!==el||H[64]!==Z||H[65]!==er||H[66]!==U||H[67]!==c||H[68]!==ea?(N=(c||el===zZ)&&(0,eB.Y)(ZL,{variant:zZ,className:"shrink-0",onClick:U?e=>er(zZ,e):void 0,onMouseDown:U&&Z?ZN:void 0,...ea(zZ),children:c??""}),H[63]=el,H[64]=Z,H[65]=er,H[66]=U,H[67]=c,H[68]=ea,H[69]=N):N=H[69],H[70]!==el||H[71]!==Z||H[72]!==j||H[73]!==J||H[74]!==a||H[75]!==er||H[76]!==U||H[77]!==d||H[78]!==ea||H[79]!==b||H[80]!==B||H[81]!==x||H[82]!==O?(F=(b||el===zQ||!d&&J===zQ)&&(0,eB.Y)(ZL,{variant:zQ,className:b||d?d?"max-w-[90px] shrink":"shrink-0":Zx,...B&&b&&!d&&{style:{maxWidth:B}},error:el!==zQ&&(!0===J||J===zQ),valueParts:x,valueSeparator:O,errorValueIndices:a,caretMode:j,valueMaxWidth:B,onClick:U?e=>er(zQ,e):void 0,onMouseDown:U&&Z?ZN:void 0,...ea(zQ),children:b??""}),H[70]=el,H[71]=Z,H[72]=j,H[73]=J,H[74]=a,H[75]=er,H[76]=U,H[77]=d,H[78]=ea,H[79]=b,H[80]=B,H[81]=x,H[82]=O,H[83]=F):F=H[83],H[84]!==j||H[85]!==ee||H[86]!==en||H[87]!==U||H[88]!==d||H[89]!==eo||H[90]!==ea||H[91]!==B?(R=d&&(0,eB.FD)(eB.FK,{children:[(0,eB.Y)(ZA,{}),(0,eB.Y)(ZL,{variant:zz,className:"min-w-0 max-w-[120px] shrink",onClick:U&&d.error?e=>en(d.operator?zQ:zZ,e):void 0,children:d.attribute}),(d.operator||eo===zZ)&&(0,eB.Y)(ZL,{variant:zZ,className:"shrink-0",onClick:U?e=>en("operator",e):void 0,...ea(zZ,1),children:d.operator??""}),(null!=d.value||eo===zQ)&&(0,eB.Y)(ZL,{variant:zQ,className:d.value?"shrink":Zx,error:eo!==zQ&&(!0===ee||ee===zQ),caretMode:j,valueMaxWidth:B,onClick:U?e=>en("value",e):void 0,...ea(zQ,1),children:d.value??""})]}),H[84]=j,H[85]=ee,H[86]=en,H[87]=U,H[88]=d,H[89]=eo,H[90]=ea,H[91]=B,H[92]=R):R=H[92],H[93]!==Z||H[94]!==X?(V=Z&&!X&&(0,eB.Y)(ZE,{}),H[93]=Z,H[94]=X,H[95]=V):V=H[95],H[96]!==Q||H[97]!==et||H[98]!==o?(_=o&&!Q&&(0,eB.Y)(ZD,{error:et,onRemove:o}),H[96]=Q,H[97]=et,H[98]=o,H[99]=_):_=H[99],H[100]!==I||H[101]!==N||H[102]!==F||H[103]!==R||H[104]!==V||H[105]!==_||H[106]!==G?(Y=(0,eB.FD)(m3,{value:G,children:[I,N,F,R,V,_]}),H[100]=I,H[101]=N,H[102]=F,H[103]=R,H[104]=V,H[105]=_,H[106]=G,H[107]=Y):Y=H[107],H[108]!==u||H[109]!==eu||H[110]!==T||H[111]!==M||H[112]!==L||H[113]!==Y||H[114]!==G?($=(0,eB.Y)("div",{ref:eu,className:T,style:M,"data-slot":"filter-input-condition-chip","data-testid":G,...L,...u,children:Y}),H[108]=u,H[109]=eu,H[110]=T,H[111]=M,H[112]=L,H[113]=Y,H[114]=G,H[115]=$):$=H[115],$},"FilterInputChip");function ZN(e){e.preventDefault()}ZI.displayName="FilterInputChip";let ZF=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(3);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,m2.cn)("inline-flex items-center gap-1"),n[0]=t):t=n[0],n[1]!==e?(r=(0,eB.Y)("kbd",{...e,"data-slot":"kbd-group",className:t}),n[1]=e,n[2]=r):r=n[2],r},"KbdGroup");ZF.displayName="KbdGroup";let ZR=e=>!!e?.closest("[data-filter-input-menu]"),ZV=e=>{ZR(e.detail.targetLayer??null)&&e.preventDefault()},Z_=e=>({top:e.top,bottom:e.bottom,left:e.left}),ZY=({anchorRef:e,containerRef:t,getAnchorBounds:r,gutter:n=12},i=[])=>(0,c0.useMemo)(()=>({placement:"bottom-start",gutter:n,getAnchorRect:()=>{let n=t?.current??e?.current?.closest(zW),i=n?.getBoundingClientRect();return i?((e,t,r=t.right)=>({x:e.left,y:e.top,width:r-e.left,height:e.bottom-e.top,top:e.top,bottom:e.bottom,left:e.left,right:r}))(r?r(i):Z_(e?.current?.getBoundingClientRect()??i),i):null}}),[e,t,r,n,...i]),Z$=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O=(0,ej.c)(44),{chipId:w,variant:S,onChange:E,className:k}=e,P=m5("connector-chip"),{menuOpen:D,closeAutocompleteMenu:A}=Zv(),[T,M]=(0,c0.useState)(!1),L=(0,c0.useRef)(null);O[0]!==A?(t=e=>{e&&A(),M(e)},O[0]=A,O[1]=t):t=O[1];let I=t;O[2]!==D?(r=()=>{D&&M(!1)},n=[D],O[2]=D,O[3]=r,O[4]=n):(r=O[3],n=O[4]),(0,c0.useEffect)(r,n),O[5]===Symbol.for("react.memo_cache_sentinel")?(i={anchorRef:L},O[5]=i):i=O[5];let N=ZY(i),F=zq[S],R=T&&!D;O[6]!==k?(a=(0,m2.cn)(Zy({interactive:!0}),"max-w-[320px] outline-none focus-visible:outline-none",k),O[6]=k,O[7]=a):a=O[7];let V=`Logical operator: ${F}`;return O[8]===Symbol.for("react.memo_cache_sentinel")?(l="text-sm font-normal truncate text-text-secondary",O[8]=l):l=O[8],O[9]!==F?(o=(0,eB.Y)("div",{className:Zb,children:(0,eB.Y)("p",{className:l,children:F})}),O[9]=F,O[10]=o):o=O[10],O[11]!==a||O[12]!==V||O[13]!==o?(s=(0,eB.Y)("button",{ref:L,type:"button",className:a,"data-slot":"filter-input-connector-chip","aria-label":V,children:o}),O[11]=a,O[12]=V,O[13]=o,O[14]=s):s=O[14],O[15]!==s||O[16]!==P?(c=(0,eB.Y)(SZ,{asChild:!0,"data-testid":P,children:s}),O[15]=s,O[16]=P,O[17]=c):c=O[17],O[18]!==w||O[19]!==E?(d=()=>E(w,"and"),O[18]=w,O[19]=E,O[20]=d):d=O[20],O[21]===Symbol.for("react.memo_cache_sentinel")?(u=(0,eB.Y)(S_,{children:(0,eB.Y)(rN,{})}),h=(0,eB.Y)(SY,{children:"AND"}),O[21]=u,O[22]=h):(u=O[21],h=O[22]),O[23]!==d?(p=(0,eB.FD)(S$,{value:"and",onSelect:d,children:[u,h]}),O[23]=d,O[24]=p):p=O[24],O[25]!==w||O[26]!==E?(f=()=>E(w,"or"),O[25]=w,O[26]=E,O[27]=f):f=O[27],O[28]===Symbol.for("react.memo_cache_sentinel")?(m=(0,eB.Y)(S_,{children:(0,eB.Y)(rF,{})}),g=(0,eB.Y)(SY,{children:"OR"}),O[28]=m,O[29]=g):(m=O[28],g=O[29]),O[30]!==f?(C=(0,eB.FD)(S$,{value:"or",onSelect:f,children:[m,g]}),O[30]=f,O[31]=C):C=O[31],O[32]===Symbol.for("react.memo_cache_sentinel")?(v=(0,eB.FD)("span",{className:"flex items-center gap-4",children:[(0,eB.FD)(ZF,{children:[(0,eB.Y)(LA,{children:"↑"}),(0,eB.Y)(LA,{children:"↓"})]}),"to navigate"]}),O[32]=v):v=O[32],O[33]===Symbol.for("react.memo_cache_sentinel")?(y=(0,eB.FD)(Sk,{className:"justify-start",children:[v,(0,eB.FD)("span",{className:"flex items-center gap-4",children:[(0,eB.Y)(ZF,{children:(0,eB.Y)(LA,{children:"↵"})}),"to select"]})]}),O[33]=y):y=O[33],O[34]!==p||O[35]!==C?(b=(0,eB.FD)(SN,{className:"w-auto min-w-64","data-filter-input-menu":"true",children:[p,C,y]}),O[34]=p,O[35]=C,O[36]=b):b=O[36],O[37]!==I||O[38]!==N||O[39]!==c||O[40]!==b||O[41]!==R||O[42]!==P?(x=(0,eB.FD)(w_,{"data-testid":P,positioning:N,open:R,onOpenChange:I,children:[c,b]}),O[37]=I,O[38]=N,O[39]=c,O[40]=b,O[41]=R,O[42]=P,O[43]=x):x=O[43],x},"FilterInputConnectorChip");Z$.displayName="FilterInputConnectorChip";let ZH=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(5),{onClick:a}=e;return i[0]!==a?(t=e=>{e.stopPropagation(),a()},i[0]=a,i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,eB.Y)("div",{className:"h-16 w-1 rounded-full bg-transparent transition-colors group-hover:bg-border-primary/50"}),i[2]=r):r=i[2],i[3]!==t?(n=(0,eB.Y)("button",{type:"button",className:"group relative z-20 flex h-24 w-4 shrink-0 cursor-text items-center justify-center",onClick:t,tabIndex:-1,"aria-hidden":"true",children:r}),i[3]=t,i[4]=n):n=i[4],n},"InsertionGap");ZH.displayName="InsertionGap";let Zz=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(12),{chips:i,hideLeadingGap:a,hideTrailingGap:l,onChipClick:o,onConnectorChange:s,onChipRemove:c,onGapClick:d}=e,{registerChipRef:u,onPairChipClick:h}=Zv();n[0]!==u?(t=e=>t=>u(e,t),n[0]=u,n[1]=t):t=n[1];let p=t;if(n[2]!==p||n[3]!==i||n[4]!==a||n[5]!==l||n[6]!==o||n[7]!==c||n[8]!==s||n[9]!==d||n[10]!==h){let e=[],t=0,u=i.filter(ZQ).length;for(let r of i){let n="chip"===r.variant,i="and"===r.variant||"or"===r.variant;if(n)e.push((0,eB.Y)("div",{ref:p(r.id),className:"shrink-0 cursor-pointer hover:z-30",children:(0,eB.Y)(ZI,{chipId:r.id,attribute:r.attribute??"",attributeDescription:r.attributeDescription,operator:r.operator,value:r.value,error:r.error,valueParts:r.valueParts,valueSeparator:r.valueSeparator,errorValueIndices:r.errorValueIndices,disabled:r.disabled,valueMaxWidth:r.valueMaxWidth,caretMode:r.caretMode,pair:r.pair,onRemove:r.disabled?void 0:()=>c(r.id),onSegmentClick:r.disabled?void 0:(e,t)=>o(r.id,e,t),onPairSegmentClick:r.disabled?void 0:(e,t)=>h(r.id,e,t)})},r.id));else if(i){let n=r.id.match(zU),i=n?Number(n[1]):0,o=0===t,c=t===u-1;o&&a||e.push((0,eB.Y)(ZH,{onClick:()=>d(i,!1)},`gap-before-${r.id}`)),e.push((0,eB.Y)("div",{ref:p(r.id),className:"shrink-0",children:(0,eB.Y)(Z$,{chipId:r.id,variant:r.variant,onChange:s})},r.id)),c&&l||e.push((0,eB.Y)(ZH,{onClick:()=>d(i,!0)},`gap-after-${r.id}`)),t++}}r=(0,eB.Y)(eB.FK,{children:e}),n[2]=p,n[3]=i,n[4]=a,n[5]=l,n[6]=o,n[7]=c,n[8]=s,n[9]=d,n[10]=h,n[11]=r}else r=n[11];return r},"ChipsWithGaps");Zz.displayName="ChipsWithGaps";let ZZ=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(7),{chips:a,onGapClick:l}=e;if(i[0]!==a){r=Symbol.for("react.early_return_sentinel");h:{let e,n=[...a].reverse().find(ZB);if(!n){r=null;break h}i[3]===Symbol.for("react.memo_cache_sentinel")?(e=/^chip-(\d+)$/,i[3]=e):e=i[3],t=n.id.match(e)}i[0]=a,i[1]=t,i[2]=r}else t=i[1],r=i[2];if(r!==Symbol.for("react.early_return_sentinel"))return r;let o=t,s=o?Number(o[1])+1:0;return i[4]!==l||i[5]!==s?(n=(0,eB.Y)(ZH,{onClick:()=>l(s,!0)}),i[4]=l,i[5]=s,i[6]=n):n=i[6],n},"TrailingGap");function ZQ(e){return"and"===e.variant||"or"===e.variant}function ZB(e){return"chip"===e.variant}ZZ.displayName="TrailingGap";let Zj=(0,m9.F)("relative flex box-border min-h-40 w-full overflow-hidden px-0 focus-within:outline-none focus-within:ring-3",{variants:{error:{true:"focus-within:ring-focus-destructive",false:"focus-within:not-disabled:border-border-strong-primary focus-within:ring-focus-primary"},multiRow:{true:"items-start",false:"items-stretch"}},defaultVariants:{error:!1,multiRow:!1}}),ZG=(0,m9.F)("flex min-h-[40px] w-full cursor-text flex-wrap items-center gap-y-4 py-[8px]",{variants:{hasContent:{true:"pl-8",false:"pl-12 pr-4"}},defaultVariants:{hasContent:!1}}),ZU=(0,m9.F)("h-24 border-none bg-transparent p-0 text-sm shadow-none outline-none ring-0",{variants:{hasContent:{true:"ml-4 shrink-0",false:"flex-1"}},defaultVariants:{hasContent:!1}}),ZW=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(12),{isExpanded:a,isOverflowing:l,onToggleExpand:o}=e,{chips:s,buildingChipData:c,showKeyboardHint:d,onClear:u}=Zv(),h=s.length>0,p=h||null!=c,f=l||a;return i[0]!==p||i[1]!==d?(t=d&&!p&&(0,eB.Y)("div",{className:"absolute right-8 top-0 bottom-0 z-10 flex items-center",children:(0,eB.FD)(ZF,{children:[(0,eB.Y)(LA,{children:"⌘"}),(0,eB.Y)(LA,{children:"K"})]})}),i[0]=p,i[1]=d,i[2]=t):t=i[2],i[3]!==h||i[4]!==a||i[5]!==u||i[6]!==o||i[7]!==f?(r=(f||h)&&(0,eB.FD)("div",{className:"absolute right-8 top-0 z-10 flex items-center gap-8 pt-8",children:[f&&(0,eB.FD)(bC,{children:[(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{variant:"ghost",color:"neutral",size:"small",onClick:o,"aria-label":a?"Collapse":"Expand",className:"text-icon-secondary",children:a?(0,eB.Y)(a7,{}):(0,eB.Y)(aM,{})})}),(0,eB.Y)(bm,{children:a?"Collapse":"Expand"})]}),h&&(0,eB.Y)(vn.$,{variant:"ghost",color:"neutral",size:"small",onClick:u,"aria-label":"Clear all filters",className:"text-icon-secondary",children:(0,eB.Y)(cN.X,{})})]}),i[3]=h,i[4]=a,i[5]=u,i[6]=o,i[7]=f,i[8]=r):r=i[8],i[9]!==t||i[10]!==r?(n=(0,eB.FD)(eB.FK,{children:[t,r]}),i[9]=t,i[10]=r,i[11]=n):n=i[11],n},"FilterInputFieldActions");ZW.displayName="FilterInputFieldActions";let Zq=(0,eQ.G)(e=>{let t,r,n,i=(0,ej.c)(17),{hasContent:a}=e,{inputText:l,inputRef:o,placeholder:s,error:c,menuOpen:d,onInputChange:u,onInputKeyDown:h,onInputClick:p}=Zv(),f=s||"Filter conditions",m=a?void 0:s;return i[0]!==a||i[1]!==l?(t=a?{width:`${Math.max(4,(l.length+1)*10)}px`}:void 0,i[0]=a,i[1]=l,i[2]=t):t=i[2],i[3]!==a?(r=ZU({hasContent:a}),i[3]=a,i[4]=r):r=i[4],i[5]!==c||i[6]!==o||i[7]!==l||i[8]!==d||i[9]!==u||i[10]!==p||i[11]!==h||i[12]!==f||i[13]!==m||i[14]!==t||i[15]!==r?(n=(0,eB.Y)("input",{ref:o,type:"text",role:"combobox","aria-expanded":d,"aria-invalid":c,"aria-label":f,"aria-autocomplete":"list",value:l,onChange:u,onKeyDown:h,onClick:p,placeholder:m,style:t,className:r}),i[5]=c,i[6]=o,i[7]=l,i[8]=d,i[9]=u,i[10]=p,i[11]=h,i[12]=f,i[13]=m,i[14]=t,i[15]=r,i[16]=n):n=i[16],n},"FilterInputSearch");function ZX(e){return!e}Zq.displayName="FilterInputSearch";let ZK=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w,S,E,k,P,D,A,T,M,L,I,N,F=(0,ej.c)(89);F[0]!==e?({className:t,...r}=e,F[0]=e,F[1]=t,F[2]=r):(t=F[1],r=F[2]);let{chips:R,buildingChipData:V,buildingChipRef:_,insertIndex:Y,insertAfterConnector:$,error:H,onAreaClick:z,onGapClick:Z,onChipClick:Q,onBuildingChipClick:B,onConnectorChange:j,onChipRemove:G,editingChipId:U,editingSegment:W,editingSide:q,segmentFilterText:X,onSegmentFilterChange:K,onCancelSegmentEdit:J,onCustomValueCommit:ee,onCustomAttributeCommit:et,onCustomOperatorCommit:er,onSwitchEditSegment:en,onRemoveEditingChip:ei,menuRef:ea}=Zv(),el=m5(),eo=R.length>0||null!=V,{isExpanded:es,isOverflowing:ec,innerRef:ed,toggleExpand:eu,multiRow:eh}=(()=>{let e,t,r,n,i=(0,ej.c)(8),[a,l]=(0,c0.useState)(!1),[o,s]=(0,c0.useState)(!1),c=(0,c0.useRef)(null);i[0]!==a?(e=()=>{let e=c.current;if(!e)return;let t=new ResizeObserver(()=>{let t=e.scrollHeight>100;a?t||(l(!1),s(!1)):s(t)});return t.observe(e),()=>t.disconnect()},t=[a],i[0]=a,i[1]=e,i[2]=t):(e=i[1],t=i[2]),(0,c0.useEffect)(e,t),i[3]===Symbol.for("react.memo_cache_sentinel")?(r=()=>l(ZX),i[3]=r):r=i[3];let d=r,u=o||a;return i[4]!==a||i[5]!==o||i[6]!==u?(n={isExpanded:a,isOverflowing:o,innerRef:c,toggleExpand:d,multiRow:u},i[4]=a,i[5]=o,i[6]=u,i[7]=n):n=i[7],n})(),{chipsBefore:ep,chipsAfter:ef,hideTrailingGap:em,hideLeadingGap:eg}=((P=(0,ej.c)(15))[0]!==R||P[1]!==$||P[2]!==Y?(w=((e,t,r=!1)=>{let n=0;for(let i=0;i<e.length;i++)if("chip"===e[i].variant){if(n===t){if(r)return i;if(i>0&&"chip"!==e[i-1].variant&&"("!==e[i-1].variant&&")"!==e[i-1].variant)return i-1;return i}n++}return e.length})(R,Y,$),P[0]=R,P[1]=$,P[2]=Y,P[3]=w):w=P[3],D=w,P[4]!==D||P[5]!==R?(S=R.slice(0,D),P[4]=D,P[5]=R,P[6]=S):S=P[6],A=S,P[7]!==D||P[8]!==R?(E=R.slice(D),P[7]=D,P[8]=R,P[9]=E):E=P[9],T=E,M=A[A.length-1],L=T[0],I=M?.variant==="and"||M?.variant==="or",N=L?.variant==="and"||L?.variant==="or",P[10]!==T||P[11]!==A||P[12]!==N||P[13]!==I?(k={chipsBefore:A,chipsAfter:T,hideTrailingGap:I,hideLeadingGap:N},P[10]=T,P[11]=A,P[12]=N,P[13]=I,P[14]=k):k=P[14],k);F[3]!==Q||F[4]!==G||F[5]!==j||F[6]!==Z?(n={onChipClick:Q,onConnectorChange:j,onChipRemove:G,onGapClick:Z},F[3]=Q,F[4]=G,F[5]=j,F[6]=Z,F[7]=n):n=F[7];let eC=n;F[8]!==V||F[9]!==R||F[10]!==U||F[11]!==W||F[12]!==ea||F[13]!==J||F[14]!==et||F[15]!==er||F[16]!==ee||F[17]!==ei||F[18]!==en||F[19]!==X?(i={editingChipId:U,editingSegment:W,segmentFilterText:X,chips:R,buildingChipData:V,menuRef:ea,onCancelSegmentEdit:J,onCustomValueCommit:ee,onCustomAttributeCommit:et,onCustomOperatorCommit:er,onSwitchEditSegment:en,onRemoveEditingChip:ei},F[8]=V,F[9]=R,F[10]=U,F[11]=W,F[12]=ea,F[13]=J,F[14]=et,F[15]=er,F[16]=ee,F[17]=ei,F[18]=en,F[19]=X,F[20]=i):i=F[20];let{handleSegmentEditKeyDown:ev,handleSegmentEditBlur:ey}=(e=>{let t,r,n,i=(0,ej.c)(18),{editingChipId:a,editingSegment:l,segmentFilterText:o,chips:s,buildingChipData:c,menuRef:d,onCancelSegmentEdit:u,onCustomValueCommit:h,onCustomAttributeCommit:p,onCustomOperatorCommit:f,onSwitchEditSegment:m,onRemoveEditingChip:g}=e;i[0]!==c?.operator||i[1]!==s||i[2]!==a||i[3]!==l||i[4]!==d||i[5]!==u||i[6]!==p||i[7]!==f||i[8]!==h||i[9]!==g||i[10]!==m||i[11]!==o?(t=e=>{if("Escape"===e.key){e.preventDefault(),u();return}if("Backspace"===e.key&&""===o){if(e.nativeEvent.isComposing||e.repeat)return;if(l===zz){let t=a?s.find(e=>e.id===a&&"chip"===e.variant):null;(t?.operator??c?.operator)||(e.preventDefault(),g());return}if(l===zZ){e.preventDefault(),m(zz);return}if(l===zQ){e.preventDefault(),m(zZ);return}}if("Enter"===e.key&&!e.defaultPrevented){if(l===zQ){e.preventDefault(),h(o);return}if(l===zz){e.preventDefault(),p(o);return}if(l===zZ){e.preventDefault(),f(o);return}}"ArrowDown"===e.key&&(e.preventDefault(),d.current?.focus())},i[0]=c?.operator,i[1]=s,i[2]=a,i[3]=l,i[4]=d,i[5]=u,i[6]=p,i[7]=f,i[8]=h,i[9]=g,i[10]=m,i[11]=o,i[12]=t):t=i[12];let C=t;i[13]!==u?(r=e=>{ZR(e.relatedTarget)||u()},i[13]=u,i[14]=r):r=i[14];let v=r;return i[15]!==v||i[16]!==C?(n={handleSegmentEditKeyDown:C,handleSegmentEditBlur:v},i[15]=v,i[16]=C,i[17]=n):n=i[17],n})(i);F[21]!==t||F[22]!==H||F[23]!==eh?(a=(0,m2.cn)((0,VG.j)({error:H}),"h-auto py-0",Zj({error:H,multiRow:eh}),t),F[21]=t,F[22]=H,F[23]=eh,F[24]=a):a=F[24],F[25]!==z?(l=e=>{let t=e.target;t.closest("[data-filter-input-inner]")||t.closest('[data-slot^="segment-"], button, input, [data-slot="filter-input-chip-delete"]')||z()},F[25]=z,F[26]=l):l=F[26];let eb=es?void 0:100;F[27]!==eb?(o={maxHeight:eb},F[27]=eb,F[28]=o):o=F[28],F[29]===Symbol.for("react.memo_cache_sentinel")?(s={height:"auto",maxHeight:"inherit"},F[29]=s):s=F[29],F[30]!==eo?(c=(0,m2.cn)(ZG({hasContent:eo})),F[30]=eo,F[31]=c):c=F[31];let ex=eo?64:void 0;return F[32]!==ex?(d={paddingRight:ex},F[32]=ex,F[33]=d):d=F[33],F[34]!==z?(u=e=>{let t=e.target;t===e.currentTarget?z():!t.closest('[data-slot^="segment-"], button, input, [data-slot="filter-input-chip-delete"]')&&t.closest("[data-building]")&&z()},F[34]=z,F[35]=u):u=F[35],F[36]!==ep||F[37]!==eC||F[38]!==em?(h=(0,eB.Y)(Zz,{chips:ep,hideTrailingGap:em,...eC}),F[36]=ep,F[37]=eC,F[38]=em,F[39]=h):h=F[39],F[40]!==V||F[41]!==_||F[42]!==eo||F[43]!==B?(p=V?(0,eB.Y)(ZI,{ref:_,building:!0,attribute:V.attribute,operator:V.operator,value:V.value,pair:V.pair,onSegmentClick:B,className:"mx-4"}):(0,eB.Y)(Zq,{hasContent:eo}),F[40]=V,F[41]=_,F[42]=eo,F[43]=B,F[44]=p):p=F[44],F[45]!==ef||F[46]!==eC||F[47]!==eg?(f=(0,eB.Y)(Zz,{chips:ef,hideLeadingGap:eg,...eC}),F[45]=ef,F[46]=eC,F[47]=eg,F[48]=f):f=F[48],F[49]!==ef||F[50]!==Z?(m=ef.length>0&&(0,eB.Y)(ZZ,{chips:ef,onGapClick:Z}),F[49]=ef,F[50]=Z,F[51]=m):m=F[51],F[52]!==h||F[53]!==p||F[54]!==f||F[55]!==m||F[56]!==el?(g=(0,eB.FD)(m3,{value:el,children:[h,p,f,m]}),F[52]=h,F[53]=p,F[54]=f,F[55]=m,F[56]=el,F[57]=g):g=F[57],F[58]!==ed||F[59]!==d||F[60]!==u||F[61]!==g||F[62]!==c?(C=(0,eB.Y)(Sv,{style:s,children:(0,eB.Y)("div",{ref:ed,"data-filter-input-inner":"",className:c,style:d,onClick:u,children:g})}),F[58]=ed,F[59]=d,F[60]=u,F[61]=g,F[62]=c,F[63]=C):C=F[63],F[64]!==es?(v=!es&&(0,eB.Y)(SO,{orientation:"vertical"}),F[64]=es,F[65]=v):v=F[65],F[66]!==C||F[67]!==v||F[68]!==o?(y=(0,eB.FD)(SS,{className:"h-auto flex-1 min-w-0",style:o,children:[C,v]}),F[66]=C,F[67]=v,F[68]=o,F[69]=y):y=F[69],F[70]!==es||F[71]!==ec||F[72]!==eu?(b=(0,eB.Y)(ZW,{isExpanded:es,isOverflowing:ec,onToggleExpand:eu}),F[70]=es,F[71]=ec,F[72]=eu,F[73]=b):b=F[73],F[74]!==r||F[75]!==y||F[76]!==b||F[77]!==a||F[78]!==l?(x=(0,eB.FD)("div",{className:a,"data-slot":"filter-input",onClick:l,...r,children:[y,b]}),F[74]=r,F[75]=y,F[76]=b,F[77]=a,F[78]=l,F[79]=x):x=F[79],F[80]!==U||F[81]!==W||F[82]!==q||F[83]!==ey||F[84]!==ev||F[85]!==K||F[86]!==X||F[87]!==x?(O=(0,eB.Y)(ZP,{editingChipId:U,editingSegment:W,editingSide:q,segmentFilterText:X,onSegmentFilterChange:K,onSegmentEditKeyDown:ev,onSegmentEditBlur:ey,children:x}),F[80]=U,F[81]=W,F[82]=q,F[83]=ey,F[84]=ev,F[85]=K,F[86]=X,F[87]=x,F[88]=O):O=F[88],O},"FilterInputField");ZK.displayName="FilterInputField";let ZJ=(0,eQ.G)(e=>{let t,r=(0,ej.c)(3),{range:n,onApply:i}=e;return r[0]!==i||r[1]!==n?(t=(0,eB.Y)(Dr.Context,{children:e=>(0,eB.Y)(vn.$,{variant:"primary",color:"brand",size:"small",disabled:n?e.value.length<2:e.value.length<1,onClick:()=>i(e.value),children:"Apply"})}),r[0]=i,r[1]=n,r[2]=t):t=r[2],t},"ApplyButton");function Z1(e){return Array.isArray(e)?e.map(e=>Z1(e)):e instanceof Date?new pB(e.getFullYear(),e.getMonth()+1,e.getDate()):pR(e)}ZJ.displayName="ApplyButton";let Z2=e=>{if(e&&!(e.length<6))try{return Z1(e)}catch{try{let t=new Date(e);if(Number.isNaN(t.getTime()))return;let r=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return Z1(`${r}-${n}-${i}`)}catch{return}}},Z0=e=>`${e.year}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`,Z3=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v=(0,ej.c)(47),{open:y,onSelect:b,onRangeSelect:x,onOpenChange:O,onEscape:w,positioning:S,range:E,initialValue:k,initialRangeValue:P,filterText:D,menuRef:A,className:T}=e,M=void 0!==E&&E;v[0]!==k?(t=Z2(k),v[0]=k,v[1]=t):t=v[1];let L=t,I=P?.[0];v[2]!==I?(r=Z2(I),v[2]=I,v[3]=r):r=v[3];let N=r,F=P?.[1];v[4]!==F?(n=Z2(F),v[4]=F,v[5]=n):n=v[5];let R=n;v[6]!==D?(i=Z2(D),v[6]=D,v[7]=i):i=v[7];let V=i??N??L;h:{let e;if(M&&N&&R){let e;v[8]!==N||v[9]!==R?(e=[N,R],v[8]=N,v[9]=R,v[10]=e):e=v[10],a=e;break h}v[11]!==L?(e=L?[L]:void 0,v[11]=L,v[12]=e):e=v[12],a=e}let _=a;v[13]!==x||v[14]!==b||v[15]!==M?(l=e=>{let t=e[0],r=e[1];M&&x&&t&&r?x(Z0(t),Z0(r)):!M&&t&&b(Z0(t))},v[13]=x,v[14]=b,v[15]=M,v[16]=l):l=v[16];let Y=l;v[17]!==O?(o=e=>O?.(e),v[17]=O,v[18]=o):o=v[18],v[19]!==T?(s=(0,m2.cn)("w-fit",T),v[19]=T,v[20]=s):s=v[20],v[21]!==w||v[22]!==O?(c=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),w?w():O?.(!1))},v[21]=w,v[22]=O,v[23]=c):c=v[23];let $=P?`${P[0]}_${P[1]}`:k,H=M?"range":"single";return v[24]===Symbol.for("react.memo_cache_sentinel")?(d=(0,eB.Y)(LI,{}),v[24]=d):d=v[24],v[25]===Symbol.for("react.memo_cache_sentinel")?(u=(0,eB.Y)(Lk,{}),h=(0,eB.Y)(Dw,{}),v[25]=u,v[26]=h):(u=v[25],h=v[26]),v[27]===Symbol.for("react.memo_cache_sentinel")?(p=(0,eB.Y)(LN,{}),v[27]=p):p=v[27],v[28]!==Y||v[29]!==M?(f=(0,eB.FD)("div",{className:"flex",children:[d,(0,eB.FD)(Dp,{children:[u,h,(0,eB.Y)(Dg,{children:(0,eB.FD)(DC,{children:[p,(0,eB.Y)(ZJ,{range:M,onApply:Y})]})})]})]}),v[28]=Y,v[29]=M,v[30]=f):f=v[30],v[31]!==_||v[32]!==V||v[33]!==$||v[34]!==H||v[35]!==f?(m=(0,eB.Y)(Du,{open:!0,closeOnSelect:!1,type:H,defaultValue:_,focusedValue:V,children:f},$),v[31]=_,v[32]=V,v[33]=$,v[34]=H,v[35]=f,v[36]=m):m=v[36],v[37]!==A||v[38]!==s||v[39]!==c||v[40]!==m?(g=(0,eB.Y)(SN,{ref:A,className:s,"data-filter-input-menu":"true",onKeyDown:c,children:m}),v[37]=A,v[38]=s,v[39]=c,v[40]=m,v[41]=g):g=v[41],v[42]!==y||v[43]!==S||v[44]!==o||v[45]!==g?(C=(0,eB.Y)(w_,{open:y,onOpenChange:o,onRequestDismiss:ZV,closeOnSelect:!1,positioning:S,children:g}),v[42]=y,v[43]=S,v[44]=o,v[45]=g,v[46]=C):C=v[46],C},"FilterInputDateValueMenu");Z3.displayName="FilterInputDateValueMenu";let Z5=(e,t,r)=>{if(!t)return e;let n=t.toLowerCase();return e.filter(e=>r(e).some(e=>e.toLowerCase().includes(n))).sort((e,t)=>{let i=r(e).some(e=>e.toLowerCase().startsWith(n)),a=r(t).some(e=>e.toLowerCase().startsWith(n));return i&&!a?-1:!i&&a?1:0})},Z4=e=>[e.label,e.name],Z7=({items:e,open:t,onSelect:r,onClose:n,onArrowRight:i,onArrowLeft:a,onPendingCommit:l,arrowRightSelectsActive:o=!1,inputRef:s,menuRef:c})=>{let[d,u]=(0,c0.useState)(-1),[h,p]=(0,c0.useState)(new Set),f=(0,c0.useRef)(new Map),m=(0,c0.useCallback)(e=>t=>{t?f.current.set(e,t):f.current.delete(e)},[]),g=(0,c0.useCallback)(e=>f.current.get(e)??null,[]),C=(0,c0.useRef)(-1),v=(0,c0.useRef)(h);v.current=h;let y=(0,c0.useRef)({items:e,onSelect:r,onClose:n,onArrowRight:i,onArrowLeft:a,onPendingCommit:l,arrowRightSelectsActive:o,inputRef:s,menuRef:c});y.current={items:e,onSelect:r,onClose:n,onArrowRight:i,onArrowLeft:a,onPendingCommit:l,arrowRightSelectsActive:o,inputRef:s,menuRef:c};let b=(0,c0.useRef)(t),x=(0,c0.useRef)(e.length);(0,c0.useEffect)(()=>{t&&!b.current&&(u(-1),C.current=-1,p(new Set)),b.current=t},[t]),(0,c0.useEffect)(()=>{if(e.length!==x.current&&(x.current=e.length,C.current>=e.length)){let t=e.length>0?e.length-1:-1;C.current=t,u(t)}},[e.length]);let O=(0,c0.useCallback)(e=>{let{items:t}=y.current,r=t.length;if(0===r)return C.current;let n=C.current,i=-1===n?1===e?0:r-1:(n+e+r)%r,a=Array.from({length:r},(t,n)=>(i+n*e+r*r)%r).find(e=>!t[e]?.disabled)??i;C.current=a,u(a);let l=t[a]?.id;return l&&requestAnimationFrame(()=>{f.current.get(l)?.scrollIntoView({block:"nearest"})}),a},[]),w=(0,c0.useRef)(!1),S=(0,c0.useCallback)(e=>{let{items:t}=y.current;e.preventDefault(),e.stopImmediatePropagation(),w.current=!0;let r=t[C.current],n=t[O("ArrowDown"===e.key?1:-1)];p(e=>{let t=new Set(e);return r&&!r.disabled&&t.add(r.id),n&&!n.disabled&&t.add(n.id),t}),requestAnimationFrame(()=>{w.current=!1})},[O]);(0,c0.useEffect)(()=>{if(!t)return;let e=e=>{let t=e.target,r=c?.current?.contains(t),n=e.metaKey||e.ctrlKey;if(r){if(n&&("ArrowDown"===e.key||"ArrowUp"===e.key))return void S(e);if("Enter"===e.key&&v.current.size>0){e.preventDefault(),e.stopPropagation();let{items:t,onSelect:r,onPendingCommit:n}=y.current;v.current.forEach(e=>{let n=t.find(t=>t.id===e);n&&!n.disabled&&r(n)}),p(new Set),queueMicrotask(()=>n?.());return}if("ArrowRight"===e.key){let{onArrowRight:t,arrowRightSelectsActive:r,items:n,onSelect:i}=y.current;if(!t)return;if(e.preventDefault(),e.stopPropagation(),v.current.size>0)v.current.forEach(e=>{let t=n.find(t=>t.id===e);t&&!t.disabled&&i(t)}),p(new Set),queueMicrotask(()=>t());else if(r&&C.current>=0){let e=n[C.current];e&&!e.disabled&&i(e)}else t();return}if("ArrowLeft"===e.key){let{onArrowLeft:t}=y.current;if(!t)return;e.preventDefault(),e.stopPropagation(),t();return}let{inputRef:t}=y.current;return void("ArrowUp"===e.key&&t?.current&&0===C.current&&(e.preventDefault(),e.stopPropagation(),t.current.focus()))}if(e.target?.closest?.('[data-slot^="segment-"]')){let t="Enter"===e.key&&C.current>=0;if("Escape"!==e.key&&"ArrowDown"!==e.key&&"ArrowUp"!==e.key&&!t)return}let{items:i,onSelect:a,onClose:l,onArrowRight:o}=y.current;if(0!==i.length)switch(e.key){case"ArrowDown":case"ArrowUp":if(n){S(e);break}e.preventDefault(),e.stopPropagation(),O("ArrowDown"===e.key?1:-1);break;case"Enter":{let{onPendingCommit:t}=y.current;if(v.current.size>0)e.preventDefault(),e.stopPropagation(),v.current.forEach(e=>{let t=i.find(t=>t.id===e);t&&!t.disabled&&a(t)}),p(new Set),queueMicrotask(()=>t?.());else if(C.current>=0){e.preventDefault(),e.stopPropagation();let t=i[C.current];t&&!t.disabled&&a(t)}break}case"ArrowRight":{if(!o)break;e.preventDefault(),e.stopPropagation();let{arrowRightSelectsActive:t}=y.current;if(v.current.size>0)v.current.forEach(e=>{let t=i.find(t=>t.id===e);t&&!t.disabled&&a(t)}),p(new Set),queueMicrotask(()=>o());else if(t&&C.current>=0){let e=i[C.current];e&&!e.disabled&&a(e)}else o();break}case"ArrowLeft":{let{onArrowLeft:t}=y.current;if(!t)break;e.preventDefault(),e.stopPropagation(),t();break}case"Escape":e.preventDefault(),e.stopPropagation(),l?.()}};return window.addEventListener("keydown",e,!0),()=>window.removeEventListener("keydown",e,!0)},[t,O,S,c]);let E=(0,c0.useCallback)(e=>{if(!e.highlightedValue||w.current)return;let t=y.current.items.findIndex(t=>t.id===e.highlightedValue);t>=0&&(u(t),C.current=t),f.current.get(e.highlightedValue)?.scrollIntoView({block:"nearest"})},[]),k=e[d]?.id??"";return{activeIndex:d,setActiveIndex:u,highlightedValue:k,onHighlightChange:E,pendingIds:h,registerItem:m,getItemElement:g}},Z9=(0,eQ.G)(e=>{let t,r=(0,ej.c)(2),{label:n}=e,i=void 0===n?"No results":n;return r[0]!==i?(t=(0,eB.Y)("div",{className:"flex items-center justify-center pt-2 pb-4 text-sm text-text-secondary",role:"status",children:i}),r[0]=i,r[1]=t):t=r[1],t},"MenuEmptyState");Z9.displayName="MenuEmptyState";let Z6=(e,t)=>{let r,n,i=(0,ej.c)(4),a=void 0===t||t,l=(0,c0.useRef)(e);i[0]!==e||i[1]!==a?(r=()=>{if(!a){l.current=e;return}"u"<typeof window||Object.is(l.current,e)||(l.current=e,window.dispatchEvent(new Event("resize")))},n=[e,a],i[0]=e,i[1]=a,i[2]=r,i[3]=n):(r=i[2],n=i[3]),(0,c0.useLayoutEffect)(r,n)},Z8={placement:"right-start",gutter:4,flip:!0,overflowPadding:8},Qe=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(19),{open:d,title:u,description:h,example:p,getAnchorRect:f,repositionKey:m}=e;return Z6(m,d),c[0]!==d?(t=()=>{if(!d)return;let e=0,t=()=>{e||(e=requestAnimationFrame(()=>{e=0,window.dispatchEvent(new Event("resize"))}))};return window.addEventListener("scroll",t,!0),()=>{window.removeEventListener("scroll",t,!0),e&&cancelAnimationFrame(e)}},r=[d],c[0]=d,c[1]=t,c[2]=r):(t=c[1],r=c[2]),(0,c0.useEffect)(t,r),c[3]!==f?(n={...Z8,getAnchorRect:f},c[3]=f,c[4]=n):n=c[4],c[5]!==u?(i=(0,eB.Y)("p",{className:"font-mono text-sm leading-sm text-text-primary",children:u}),c[5]=u,c[6]=i):i=c[6],c[7]!==h?(a=(0,eB.Y)("p",{className:"text-xs leading-xs text-text-secondary",children:h}),c[7]=h,c[8]=a):a=c[8],c[9]!==p?(l=p&&(0,eB.FD)(eB.FK,{children:[(0,eB.Y)(Dy,{spacing:8}),(0,eB.Y)("pre",{className:"m-0 font-mono text-xs leading-xs text-text-secondary whitespace-pre-wrap",children:p})]}),c[9]=p,c[10]=l):l=c[10],c[11]!==i||c[12]!==a||c[13]!==l?(o=(0,eB.FD)(NO,{minWidth:"240px",maxWidth:"340px",className:"gap-6 pointer-events-none","data-filter-input-menu":"true","data-testid":"field-menu-popover",children:[i,a,l]}),c[11]=i,c[12]=a,c[13]=l,c[14]=o):o=c[14],c[15]!==d||c[16]!==n||c[17]!==o?(s=(0,eB.Y)(NC.Root,{open:d,positioning:n,autoFocus:!1,closeOnInteractOutside:!1,closeOnEscape:!1,modal:!1,lazyMount:!0,unmountOnExit:!0,children:o}),c[15]=d,c[16]=n,c[17]=o,c[18]=s):s=c[18],s},"FieldMenuPopover");Qe.displayName="FieldMenuPopover";let Qt=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(15),{conditions:o,fields:s,onSelect:c,registerItem:d}=e;if(l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eB.Y)(VA,{sticky:!0,children:"Recent"}),l[0]=t):t=l[0],l[1]!==o||l[2]!==s||l[3]!==c||l[4]!==d){let e;l[6]!==s||l[7]!==c||l[8]!==d?(e=(e,t)=>{let r=s.find(t=>t.name===e.field),n=r?.label||e.field,i=String(e.operator),a=String(e.value);return(0,eB.Y)(S$,{value:`recent-${t}`,ref:d(`recent-${t}`),onSelect:()=>{r&&c(r)},children:(0,eB.FD)("span",{className:"flex gap-2 items-center text-sm",children:[(0,eB.Y)("span",{className:"text-text-primary",children:n}),(0,eB.Y)("span",{className:"text-text-secondary",children:i}),(0,eB.Y)("span",{className:"font-medium text-text-info",children:a})]})},`recent-${t}`)},l[6]=s,l[7]=c,l[8]=d,l[9]=e):e=l[9],r=o.map(e),l[1]=o,l[2]=s,l[3]=c,l[4]=d,l[5]=r}else r=l[5];return l[10]!==r?(n=(0,eB.FD)("div",{className:"flex flex-col gap-1",children:[t,(0,eB.Y)(VO,{children:r})]}),l[10]=r,l[11]=n):n=l[11],l[12]===Symbol.for("react.memo_cache_sentinel")?(i=(0,eB.Y)(VT,{}),l[12]=i):i=l[12],l[13]!==n?(a=(0,eB.FD)(eB.FK,{children:[n,i]}),l[13]=n,l[14]=a):a=l[14],a},"RecentSection");Qt.displayName="RecentSection";let Qr=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(13),{fields:o,onSelect:s,registerItem:c}=e;if(l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eB.Y)(VA,{sticky:!0,children:"Suggestions"}),l[0]=t):t=l[0],l[1]!==o||l[2]!==s||l[3]!==c){let e;l[5]!==s||l[6]!==c?(e=(e,t)=>(0,eB.Y)(S$,{value:`suggested-${t}`,ref:c(`suggested-${t}`),onSelect:()=>s(e),children:(0,eB.FD)("span",{className:"flex gap-2 items-center text-sm",children:[(0,eB.Y)("span",{className:"text-text-primary",children:e.label}),(0,eB.Y)("span",{className:"text-text-secondary",children:"operator"}),(0,eB.Y)("span",{className:"font-medium text-text-info",children:"Value"})]})},`suggested-${t}`),l[5]=s,l[6]=c,l[7]=e):e=l[7],r=o.map(e),l[1]=o,l[2]=s,l[3]=c,l[4]=r}else r=l[4];return l[8]!==r?(n=(0,eB.FD)("div",{className:"flex flex-col gap-1",children:[t,(0,eB.Y)(VO,{children:r})]}),l[8]=r,l[9]=n):n=l[9],l[10]===Symbol.for("react.memo_cache_sentinel")?(i=(0,eB.Y)(VT,{}),l[10]=i):i=l[10],l[11]!==n?(a=(0,eB.FD)(eB.FK,{children:[n,i]}),l[11]=n,l[12]=a):a=l[12],a},"SuggestionsSection");Qr.displayName="SuggestionsSection";let Qn=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(10),{onSelectAnd:l,onSelectOr:o,registerItem:s}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eB.Y)(VT,{}),a[0]=t):t=a[0],a[1]!==l||a[2]!==s?(r=l&&(0,eB.FD)(S$,{value:"and",ref:s("and"),onSelect:()=>l(),children:[(0,eB.Y)(S_,{children:(0,eB.Y)(rN,{})}),(0,eB.Y)(SY,{children:"AND"})]}),a[1]=l,a[2]=s,a[3]=r):r=a[3],a[4]!==o||a[5]!==s?(n=o&&(0,eB.FD)(S$,{value:"or",ref:s("or"),onSelect:()=>o(),children:[(0,eB.Y)(S_,{children:(0,eB.Y)(rF,{})}),(0,eB.Y)(SY,{children:"OR"})]}),a[4]=o,a[5]=s,a[6]=n):n=a[6],a[7]!==r||a[8]!==n?(i=(0,eB.FD)(eB.FK,{children:[t,r,n]}),a[7]=r,a[8]=n,a[9]=i):i=a[9],i},"OperatorsSection");Qn.displayName="OperatorsSection";let Qi=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(9),{sections:i,onSelect:a,registerItem:l}=e;if(n[0]!==a||n[1]!==l||n[2]!==i){let e;n[4]!==a||n[5]!==l?(e=(e,t)=>{let r=(0,eB.Y)(VO,{children:e.fields.map(e=>(0,eB.Y)(S$,{value:`field-${e.name}`,ref:l(`field-${e.name}`),onSelect:()=>a(e),className:"scroll-mt-32",children:(0,eB.Y)(SY,{children:e.label})},e.name))});return(0,eB.FD)(c0.Fragment,{children:[t>0&&(0,eB.Y)(VT,{}),e.label?(0,eB.FD)("div",{className:"flex flex-col gap-1",children:[(0,eB.Y)(VA,{sticky:!0,children:e.label}),r]}):r]},`${e.label??"ungrouped"}-${t}`)},n[4]=a,n[5]=l,n[6]=e):e=n[6],t=i.map(e),n[0]=a,n[1]=l,n[2]=i,n[3]=t}else t=n[3];return n[7]!==t?(r=(0,eB.Y)(eB.FK,{children:t}),n[7]=t,n[8]=r):r=n[8],r},"FieldSections");Qi.displayName="FieldSections";let Qa=(0,eQ.G)(({fields:e,filterText:t="",onSelect:r,open:n=!1,onOpenChange:i,recentConditions:a=[],suggestedFields:l=[],fieldGroups:o,onSelectAnd:s,onSelectOr:c,onEscape:d,positioning:u,inputRef:h,menuRef:p,className:f,"data-testid":m})=>{var g;let C,v,y,b,x,O=m5("field-menu",m),w=(0,c0.useMemo)(()=>a.slice(0,3),[a]),S=w.length>0,E=l.length>0,k=(0,c0.useMemo)(()=>(function(e,t,r){let n=e.filter(e=>!e.hidden);if(!t||0===t.length){let e=Z5(n,r,Z4);return e.length>0?[{fields:e}]:[]}let i=new Map(n.map(e=>[e.name,e])),a=new Set,l=[];for(let e of t){let t=[];for(let r of e.fields){if(a.has(r))continue;let e=i.get(r);e&&(a.add(r),t.push(e))}let n=Z5(t,r,Z4);n.length>0&&l.push({label:e.label,fields:n})}let o=Z5(n.filter(e=>!a.has(e.name)),r,Z4);return o.length>0&&l.push({fields:o}),l})(e,o,t),[e,o,t]),P=(e=>{let t,r=(0,ej.c)(12),{sections:n,fields:i,filterText:a,limitedRecentConditions:l,showRecent:o,suggestedFields:s,showSuggestions:c,onSelectAnd:d,onSelectOr:u}=e;if(r[0]!==i||r[1]!==a||r[2]!==l||r[3]!==d||r[4]!==u||r[5]!==n||r[6]!==o||r[7]!==c||r[8]!==s){if(t=[],!a&&o&&l.forEach((e,r)=>{let n=i.find(t=>t.name===e.field);t.push({id:`recent-${r}`,label:n?.label||e.field,value:{type:"recent",field:n}})}),a||!c||o||s.forEach((e,r)=>{t.push({id:`suggested-${r}`,label:e.label,value:{type:"field",field:e}})}),n.forEach(e=>{e.fields.forEach(e=>{t.push({id:`field-${e.name}`,label:e.label,value:{type:"field",field:e}})})}),!a&&d){let e;r[10]===Symbol.for("react.memo_cache_sentinel")?(e={id:"and",label:"AND",value:{type:"and"}},r[10]=e):e=r[10],t.push(e)}if(!a&&u){let e;r[11]===Symbol.for("react.memo_cache_sentinel")?(e={id:"or",label:"OR",value:{type:"or"}},r[11]=e):e=r[11],t.push(e)}r[0]=i,r[1]=a,r[2]=l,r[3]=d,r[4]=u,r[5]=n,r[6]=o,r[7]=c,r[8]=s,r[9]=t}else t=r[9];return t})({sections:k,fields:e,filterText:t,limitedRecentConditions:w,showRecent:S,suggestedFields:l,showSuggestions:E,onSelectAnd:s,onSelectOr:c}),{highlightedValue:D,onHighlightChange:A,registerItem:T,getItemElement:M}=Z7({items:P,open:n,onSelect:e=>{let t=e.value;"recent"===t.type||"field"===t.type?t.field&&r(t.field):"and"===t.type?s?.():"or"===t.type&&c?.()},onClose:d??(()=>i?.(!1)),onArrowRight:()=>{},arrowRightSelectsActive:!0,inputRef:h,menuRef:p}),L=k.length>0||!t,I=(0,c0.useMemo)(()=>{if(!D)return;let e=P.find(e=>e.id===D)?.value;return e?.type==="field"?e.field:void 0},[P,D]),N=(0,c0.useRef)(D);N.current=D;let F=(0,c0.useCallback)(()=>{let e=M(N.current);if(!e)return null;let t=e.getBoundingClientRect(),r=e.closest('[data-filter-input-menu="true"]')?.getBoundingClientRect();return r?new DOMRect(r.x,t.y,r.width,t.height):t},[M]),R=n&&L&&!!I?.description;return g=n&&L,y=(0,ej.c)(4),b=(0,c0.useRef)(null),x=(0,c0.useRef)(!1),y[0]!==g||y[1]!==A?(C=()=>{if(!g)return;let e=e=>{x.current=!1,b.current={x:e.clientX,y:e.clientY}},t=e=>{("ArrowDown"===e.key||"ArrowUp"===e.key)&&(x.current=!0)},r=0,n=()=>{r||x.current||(r=requestAnimationFrame(()=>{r=0;let e=b.current;if(!e)return;let t=document.elementFromPoint(e.x,e.y)?.closest('[role="menuitem"]');if(!t?.closest('[data-filter-input-menu="true"]'))return;let n=t.getAttribute("data-value");n&&A({highlightedValue:n})}))};return window.addEventListener("pointermove",e,!0),window.addEventListener("keydown",t,!0),window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("pointermove",e,!0),window.removeEventListener("keydown",t,!0),window.removeEventListener("scroll",n,!0),r&&cancelAnimationFrame(r)}},v=[g,A],y[0]=g,y[1]=A,y[2]=C,y[3]=v):(C=y[2],v=y[3]),(0,c0.useEffect)(C,v),(0,eB.FD)(eB.FK,{children:[(0,eB.Y)(w_,{"data-testid":O,open:n&&L,onOpenChange:i,onRequestDismiss:ZV,closeOnSelect:!1,positioning:u,highlightedValue:D,onHighlightChange:A,children:(0,eB.FD)(SN,{ref:p,className:(0,m2.cn)("w-[300px] max-h-[430px]",f),"data-slot":"filter-input-field-menu","data-testid":O,"data-filter-input-menu":"true",children:[!t&&S&&(0,eB.Y)(Qt,{conditions:w,fields:e,onSelect:r,registerItem:T}),!t&&E&&!S&&(0,eB.Y)(Qr,{fields:l,onSelect:r,registerItem:T}),k.length>0?(0,eB.Y)(Qi,{sections:k,onSelect:r,registerItem:T}):(0,eB.Y)(Z9,{}),!t&&(s||c)&&(0,eB.Y)(Qn,{onSelectAnd:s,onSelectOr:c,registerItem:T}),(0,eB.FD)(Sk,{className:"justify-start",children:[(0,eB.FD)("span",{className:"flex items-center gap-4",children:[(0,eB.FD)(ZF,{children:[(0,eB.Y)(LA,{children:"↑"}),(0,eB.Y)(LA,{children:"↓"})]}),"to navigate"]}),(0,eB.FD)("span",{className:"flex items-center gap-4",children:[(0,eB.Y)(ZF,{children:(0,eB.Y)(LA,{children:"↵"})}),"to select"]})]})]})}),(0,eB.Y)(Qe,{open:R,title:I?.label??"",description:I?.description??"",example:I?.example,getAnchorRect:F,repositionKey:D})]})},"FilterInputFieldMenu");Qa.displayName="FilterInputFieldMenu";let Ql=new Set(["boolean"]),Qo=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p=(0,ej.c)(47),{fieldType:f,operators:m,onSelect:g,open:C,onOpenChange:v,onEscape:y,positioning:b,inputRef:x,filterText:O,menuRef:w,className:S,"data-testid":E}=e,k=void 0!==C&&C,P=void 0===O?"":O,D=m5("operator-menu",E);p[0]!==P?(t=P.toLowerCase(),p[0]=P,p[1]=t):t=p[1];let A=t;if(p[2]!==f||p[3]!==m){let e,t,n,i,a=z1[f]||[];r=m?(e=new Set(m),t=a.map(t=>t.filter(t=>e.has(t))).filter(e=>e.length>0),n=new Set(a.flat()),(i=m.filter(e=>!n.has(e))).length>0?[...t,i]:t):a,p[2]=f,p[3]=m,p[4]=r}else r=p[4];let T=r;p[5]!==f||p[6]!==T||p[7]!==A?(n=A?T.map(e=>e.filter(e=>z2(e,f).toLowerCase().includes(A)||zX[e].toLowerCase().includes(A)||e.toLowerCase().includes(A))).filter(Qs):T,p[5]=f,p[6]=T,p[7]=A,p[8]=n):n=p[8];let M=n;if(p[9]!==f||p[10]!==M){let e;p[12]!==f?(e=e=>({id:e,label:z2(e,f),value:e}),p[12]=f,p[13]=e):e=p[13],i=M.flat().map(e),p[9]=f,p[10]=M,p[11]=i}else i=p[11];let L=i;p[14]!==g?(a=e=>g(e.value),p[14]=g,p[15]=a):a=p[15],p[16]!==y||p[17]!==v?(l=y??(()=>v?.(!1)),p[16]=y,p[17]=v,p[18]=l):l=p[18],p[19]!==L||p[20]!==x||p[21]!==w||p[22]!==k||p[23]!==a||p[24]!==l?(o={items:L,open:k,onSelect:a,onClose:l,onArrowRight:Qc,arrowRightSelectsActive:!0,inputRef:x,menuRef:w},p[19]=L,p[20]=x,p[21]=w,p[22]=k,p[23]=a,p[24]=l,p[25]=o):o=p[25];let{highlightedValue:I,onHighlightChange:N,registerItem:F}=Z7(o);return p[26]!==S?(s=(0,m2.cn)("w-256 max-h-[430px]",S),p[26]=S,p[27]=s):s=p[27],p[28]!==f||p[29]!==M||p[30]!==g||p[31]!==F?(c=M.length>0?M.map((e,t)=>(0,eB.FD)(c0.Fragment,{children:[(0,eB.Y)(VO,{children:e.map(e=>(0,eB.FD)(S$,{value:e,ref:F(e),onSelect:()=>g(e),children:[(0,eB.Y)(SY,{children:z2(e,f)}),!Ql.has(f)&&(0,eB.Y)("span",{className:"ml-auto inline-flex items-center",children:(0,eB.Y)(LA,{className:"font-mono",children:zX[e]})})]},e))}),t<M.length-1&&(0,eB.Y)(VT,{})]},`group-${t}`)):(0,eB.Y)(Z9,{}),p[28]=f,p[29]=M,p[30]=g,p[31]=F,p[32]=c):c=p[32],p[33]===Symbol.for("react.memo_cache_sentinel")?(d=(0,eB.Y)(Sk,{className:"justify-start",children:(0,eB.FD)("span",{className:"flex items-center gap-4",children:[(0,eB.Y)(ZF,{children:(0,eB.Y)(LA,{children:"↵"})}),"to select"]})}),p[33]=d):d=p[33],p[34]!==w||p[35]!==s||p[36]!==c||p[37]!==D?(u=(0,eB.FD)(SN,{ref:w,className:s,"data-filter-input-menu":"true","data-testid":D,children:[c,d]}),p[34]=w,p[35]=s,p[36]=c,p[37]=D,p[38]=u):u=p[38],p[39]!==I||p[40]!==N||p[41]!==v||p[42]!==k||p[43]!==b||p[44]!==u||p[45]!==D?(h=(0,eB.Y)(w_,{"data-testid":D,open:k,onOpenChange:v,onRequestDismiss:ZV,closeOnSelect:!1,positioning:b,highlightedValue:I,onHighlightChange:N,children:u}),p[39]=I,p[40]=N,p[41]=v,p[42]=k,p[43]=b,p[44]=u,p[45]=D,p[46]=h):h=p[46],h},"FilterInputOperatorMenu");function Qs(e){return e.length>0}function Qc(){}Qo.displayName="FilterInputOperatorMenu";let Qd=(0,eQ.G)(e=>{let t,r=(0,ej.c)(2),{multiSelect:n}=e;return r[0]!==n?(t=n?(0,eB.FD)(eB.FK,{children:[(0,eB.FD)("span",{className:"flex items-center gap-4",children:[(0,eB.Y)(ZF,{children:(0,eB.Y)(LA,{children:"↵"})}),"to select"]}),(0,eB.FD)("span",{className:"flex items-center gap-4",children:[(0,eB.FD)(ZF,{children:[(0,eB.Y)(LA,{children:"⌘"}),(0,eB.Y)(LA,{children:"↑"}),(0,eB.Y)(LA,{children:"↓"})]}),"to multi-select"]})]}):(0,eB.FD)(eB.FK,{children:[(0,eB.FD)("span",{className:"flex items-center gap-4",children:[(0,eB.FD)(ZF,{children:[(0,eB.Y)(LA,{children:"↑"}),(0,eB.Y)(LA,{children:"↓"})]}),"to navigate"]}),(0,eB.FD)("span",{className:"flex items-center gap-4",children:[(0,eB.Y)(ZF,{children:(0,eB.Y)(LA,{children:"↵"})}),"to select"]})]}),r[0]=n,r[1]=t):t=r[1],t},"ValueMenuFooterHints");Qd.displayName="ValueMenuFooterHints";let Qu=(e,t)=>{let r=t?.trim().toLowerCase();if(!r)return e;let n=e.toLowerCase(),i=[],a=0,l=0;for(;a<e.length;){let t=n.indexOf(r,a);if(-1===t){i.push((0,eB.Y)("span",{children:e.slice(a)},l++));break}t>a&&i.push((0,eB.Y)("span",{children:e.slice(a,t)},l++)),i.push((0,eB.Y)("mark",{className:"rounded-2 bg-bg-fill-brand font-medium text-text-primary-alt",children:e.slice(t,t+r.length)},l++)),a=t+r.length}return i},Qh=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(23),{option:o,isChecked:s,isPending:c,multiSelect:d,onSelect:u,registerItem:h,highlight:p}=e,f=String(o.value),m=String(o.value);l[0]!==o.value||l[1]!==h?(t=h?.(String(o.value)),l[0]=o.value,l[1]=h,l[2]=t):t=l[2];let g=c?"bg-states-primary-hover":void 0;return l[3]!==p||l[4]!==o.badge||l[5]!==o.description||l[6]!==o.label?(r=o.badge?(0,eB.Y)(ED,{color:o.badge.color,type:"secondary",variant:"default",children:o.badge.text}):(0,eB.FD)("div",{className:"min-w-0",children:[(0,eB.Y)(bk.E,{size:"sm",truncate:!0,children:Qu(o.label,p)}),o.description&&(0,eB.Y)(bk.E,{size:"xs",color:"secondary",truncate:!0,children:Qu(o.description,p)})]}),l[3]=p,l[4]=o.badge,l[5]=o.description,l[6]=o.label,l[7]=r):r=l[7],l[8]!==s||l[9]!==d?(n=d?(0,eB.Y)("div",{className:"flex shrink-0 items-start justify-end ml-auto",children:(0,eB.Y)(FM,{checkedState:s})}):s?(0,eB.Y)("div",{className:"flex shrink-0 items-start justify-end ml-auto",children:(0,eB.Y)(FM,{checkedState:!0})}):null,l[8]=s,l[9]=d,l[10]=n):n=l[10],l[11]!==d||l[12]!==o.hasSubmenu?(i=o.hasSubmenu&&!d&&(0,eB.Y)("div",{className:"flex items-center text-text-secondary ml-auto",children:(0,eB.Y)(rr.c,{})}),l[11]=d,l[12]=o.hasSubmenu,l[13]=i):i=l[13],l[14]!==u||l[15]!==f||l[16]!==m||l[17]!==t||l[18]!==g||l[19]!==r||l[20]!==n||l[21]!==i?(a=(0,eB.FD)(S$,{value:m,ref:t,onSelect:u,className:g,children:[r,n,i]},f),l[14]=u,l[15]=f,l[16]=m,l[17]=t,l[18]=g,l[19]=r,l[20]=n,l[21]=i,l[22]=a):a=l[22],a},"ValueMenuItem");Qh.displayName="ValueMenuItem";let Qp=e=>{let t=[e.label,String(e.value)];return e.description&&t.push(e.description),t},Qf=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(56),{values:h,onSelect:p,onCommit:f,open:m,onOpenChange:g,onEscape:C,multiSelect:v,initialValues:y,highlightValue:b,width:x,positioning:O,onBuildingValueChange:w,onItemToggle:S,inputRef:E,filterText:k,menuRef:P,blurCommitRef:D,className:A,loading:T,emptyLabel:M}=e,L=void 0!==m&&m,I=void 0!==v&&v;u[0]!==y?(t=void 0===y?[]:y,u[0]=y,u[1]=t):t=u[1];let N=t,F=void 0===x?"standard":x,R=void 0===k?"":k,V=void 0!==T&&T;u[2]!==R||u[3]!==h?(r=Z5(h,R,Qp),u[2]=R,u[3]=h,u[4]=r):r=u[4];let _=r;u[5]!==D||u[6]!==_||u[7]!==b||u[8]!==N||u[9]!==E||u[10]!==P||u[11]!==I||u[12]!==w||u[13]!==f||u[14]!==C||u[15]!==S||u[16]!==g||u[17]!==p||u[18]!==L?(n={values:_,open:L,multiSelect:I,initialValues:N,highlightValue:b,onSelect:p,onCommit:f,onEscape:C,onOpenChange:g,onBuildingValueChange:w,onItemToggle:S,inputRef:E,menuRef:P,blurCommitRef:D},u[5]=D,u[6]=_,u[7]=b,u[8]=N,u[9]=E,u[10]=P,u[11]=I,u[12]=w,u[13]=f,u[14]=C,u[15]=S,u[16]=g,u[17]=p,u[18]=L,u[19]=n):n=u[19];let{selectedValues:Y,checkedValues:$,highlightedValue:H,onHighlightChange:z,pendingIds:Z,registerItem:Q,handleItemSelect:B}=(({values:e,open:t,multiSelect:r,initialValues:n,highlightValue:i,onSelect:a,onCommit:l,onEscape:o,onOpenChange:s,onBuildingValueChange:c,onItemToggle:d,inputRef:u,menuRef:h,blurCommitRef:p})=>{let[f,m]=(0,c0.useState)(n),g=(0,c0.useRef)(f);g.current=f;let C=(0,c0.useRef)(null);(0,c0.useEffect)(()=>{let e=n.map(String).sort().join("\0");e!==C.current&&(C.current=e,m(n))},[n]);let v=(0,c0.useRef)(l);v.current=l;let y=(0,c0.useRef)(!1),b=(0,c0.useCallback)(()=>{if(y.current||0===g.current.length||!v.current)return!1;y.current=!0;try{return v.current(g.current),!0}finally{y.current=!1}},[]);(0,c0.useEffect)(()=>{if(p)return r?p.current=b:p.current=null,()=>{p.current=null}},[r,p,b]);let x=(0,c0.useMemo)(()=>r?f:null!=i?[i]:[],[r,f,i]),O=(0,c0.useMemo)(()=>{let t=e.map(e=>({id:String(e.value),label:e.label,value:e.value})),r=new Set(t.map(e=>e.id));return[...x.filter(e=>!r.has(String(e))).map(e=>({id:String(e),label:String(e),value:e})),...t]},[e,x]),w=e=>{if(r){var t;t=e.value,m(e=>{let r=String(t);return e.some(e=>String(e)===r)?e.filter(e=>String(e)!==r):[...e,t]}),d?.()}else a(e.value)},{highlightedValue:S,onHighlightChange:E,pendingIds:k,registerItem:P}=Z7({items:O,open:t,onSelect:w,onClose:o??(()=>{r&&b(),s?.(!1)}),onArrowRight:r?()=>b():void 0,onPendingCommit:r?()=>b():void 0,inputRef:u,menuRef:h}),D=r&&f.length>0?f.map(t=>e.find(e=>e.value===t)?.label??String(t)).join(", "):void 0;return(0,c0.useEffect)(()=>{c?.(D)},[D,c]),{checkedValues:f,selectedValues:x,highlightedValue:S,onHighlightChange:E,pendingIds:k,registerItem:P,commitChecked:b,handleItemSelect:w}})(n);u[20]!==$||u[21]!==_||u[22]!==b||u[23]!==I||u[24]!==h?(i={values:h,filteredValues:_,multiSelect:I,checkedValues:$,highlightValue:b},u[20]=$,u[21]=_,u[22]=b,u[23]=I,u[24]=h,u[25]=i):i=u[25];let j=(({values:e,filteredValues:t,multiSelect:r,checkedValues:n,highlightValue:i})=>{let a=(0,c0.useRef)(new Map);return(0,c0.useEffect)(()=>{for(let t of e)a.current.set(String(t.value),t)},[e]),(0,c0.useMemo)(()=>{let l=r?n:null!=i?[i]:[];if(0===l.length)return t;if(r){let r=new Set(t.map(e=>String(e.value))),n=l.filter(e=>!r.has(String(e))).map(t=>{let r=String(t);return e.find(e=>String(e.value)===r)??a.current.get(r)??{value:t,label:r}});return n.length>0?[...n,...t]:t}let o=new Set(l.map(String)),s=l.map(t=>{let r=String(t),n=e.find(e=>String(e.value)===r);if(n)return n;let i=a.current.get(r);return i||{value:t,label:r}}),c=t.filter(e=>!o.has(String(e.value)));return[...s,...c]},[t,e,r,n,i])})(i),G="compact"===F?"w-[172px]":"w-[300px]";u[26]!==F?(a="number"==typeof F?{width:`${F}px`}:void 0,u[26]=F,u[27]=a):a=u[27];let U=a;return u[28]!==A||u[29]!==G?(l=(0,m2.cn)(G,"max-h-[430px]",A),u[28]=A,u[29]=G,u[30]=l):l=u[30],u[31]!==j||u[32]!==M||u[33]!==R||u[34]!==B||u[35]!==V||u[36]!==I||u[37]!==Z||u[38]!==Q||u[39]!==Y?(o=V?(0,eB.Y)("div",{className:"flex items-center justify-center pt-2 pb-4 text-text-secondary",role:"status","aria-live":"polite",children:(0,eB.Y)(YZ.a,{size:"sm"})}):j.length>0?(0,eB.Y)(VO,{className:"flex flex-col gap-1",children:j.map(e=>(0,eB.Y)(Qh,{option:e,isChecked:Y.some(t=>String(t)===String(e.value)),isPending:Z.has(String(e.value)),multiSelect:I,registerItem:Q,highlight:R,onSelect:()=>B({id:String(e.value),label:e.label,value:e.value})},String(e.value)))}):(0,eB.Y)(Z9,{label:M}),u[31]=j,u[32]=M,u[33]=R,u[34]=B,u[35]=V,u[36]=I,u[37]=Z,u[38]=Q,u[39]=Y,u[40]=o):o=u[40],u[41]!==I?(s=(0,eB.Y)(Sk,{className:"justify-start",children:(0,eB.Y)(Qd,{multiSelect:I})}),u[41]=I,u[42]=s):s=u[42],u[43]!==P||u[44]!==l||u[45]!==o||u[46]!==s||u[47]!==U?(c=(0,eB.FD)(SN,{ref:P,className:l,style:U,"data-filter-input-menu":"true",children:[o,s]}),u[43]=P,u[44]=l,u[45]=o,u[46]=s,u[47]=U,u[48]=c):c=u[48],u[49]!==H||u[50]!==z||u[51]!==g||u[52]!==L||u[53]!==O||u[54]!==c?(d=(0,eB.Y)(w_,{open:L,onOpenChange:g,onRequestDismiss:ZV,closeOnSelect:!1,positioning:O,highlightedValue:H,onHighlightChange:z,children:c}),u[49]=H,u[50]=z,u[51]=g,u[52]=L,u[53]=O,u[54]=c,u[55]=d):d=u[55],d},"FlatValueMenu");Qf.displayName="FlatValueMenu";let Qm=e=>{let t=[e.label,String(e.value??"")];for(let r of(e.description&&t.push(e.description),Zn(e.children)))t.push(r.label,String(r.value??""));return t},Qg=(e,t)=>Z5(e,t,Qm).map(e=>({id:Zr(e)?`group:${e.label}`:`leaf:${String(e.value)}`,option:e,isGroup:Zr(e)})),QC=" › ",Qv=(e,t)=>null!=e&&String(e).toLowerCase().includes(t),Qy=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(32),{id:c,option:d,isGroup:u,checkedState:h,isPending:p,multiSelect:f,onSelect:m,onMouseEnter:g,onMouseLeave:C,registerRef:v,expanded:y,selectAll:b,highlight:x}=e,O=!0===h;s[0]!==h||s[1]!==u||s[2]!==f?(t=f||!u&&h?(0,eB.Y)(FM,{checkedState:!f||h}):null,s[0]=h,s[1]=u,s[2]=f,s[3]=t):t=s[3];let w=t,S=O&&"bg-states-primary-active",E=p&&"bg-states-primary-hover";s[4]!==S||s[5]!==E?(r=(0,m2.cn)("scroll-mt-32",S,E),s[4]=S,s[5]=E,s[6]=r):r=s[6];let k=f?"indeterminate"===h?"mixed":!!h:void 0;return s[7]!==y||s[8]!==u?(n=u&&{"aria-haspopup":"menu","aria-expanded":!!y},s[7]=y,s[8]=u,s[9]=n):n=s[9],s[10]!==x||s[11]!==d.badge||s[12]!==d.description||s[13]!==d.label||s[14]!==b?(i=d.badge?(0,eB.Y)(ED,{color:d.badge.color,type:"secondary",variant:"default",children:d.badge.text}):(0,eB.FD)("div",{className:"min-w-0",children:[(0,eB.Y)(bk.E,{size:"sm",weight:b?"medium":"regular",truncate:!0,children:Qu(d.label,x)}),d.description&&(0,eB.Y)(bk.E,{size:"xs",color:"secondary",truncate:!0,children:Qu(d.description,x)})]}),s[10]=x,s[11]=d.badge,s[12]=d.description,s[13]=d.label,s[14]=b,s[15]=i):i=s[15],s[16]!==u?(a=u&&(0,eB.Y)("span",{className:"flex text-text-secondary",children:(0,eB.Y)(rr.c,{})}),s[16]=u,s[17]=a):a=s[17],s[18]!==w||s[19]!==a?(l=(0,eB.FD)("div",{className:"flex shrink-0 items-center justify-end gap-8 ml-auto",children:[a,w]}),s[18]=w,s[19]=a,s[20]=l):l=s[20],s[21]!==c||s[22]!==g||s[23]!==C||s[24]!==m||s[25]!==v||s[26]!==r||s[27]!==k||s[28]!==n||s[29]!==i||s[30]!==l?(o=(0,eB.FD)(S$,{value:c,ref:v,onSelect:m,onMouseEnter:g,onMouseLeave:C,className:r,"aria-checked":k,...n,children:[i,l]}),s[21]=c,s[22]=g,s[23]=C,s[24]=m,s[25]=v,s[26]=r,s[27]=k,s[28]=n,s[29]=i,s[30]=l,s[31]=o):o=s[31],o},"NestedValueMenuItem");Qy.displayName="NestedValueMenuItem";let Qb=(e,t)=>{let r=e?.some(Zr)??!1;if(!e||!r)return t.map(e=>({kind:"leaf",value:e}));let n=new Set(t.map(String)),i=new Set,a=[],l=e=>{for(let t of e)if(Zr(t)){let e=Zn(t.children).map(e=>String(e.value)),r=e.filter(e=>n.has(e));if(0===r.length)continue;if(r.length===e.length)for(let e of(a.push({kind:"group",label:t.label}),r))i.add(e);else l(t.children)}else if(null!=t.value){let e=String(t.value);n.has(e)&&!i.has(e)&&(a.push({kind:"leaf",value:t.value}),i.add(e))}};for(let r of(l(e),t)){let e=String(r);i.has(e)||(a.push({kind:"leaf",value:r}),i.add(e))}return a},Qx="__filter_value_select_all__",QO=e=>Zn(e.children).map(e=>String(e.value)),Qw=(0,eQ.G)(({values:e,onSelect:t,onCommit:r,open:n=!1,onOpenChange:i,onEscape:a,multiSelect:l=!1,initialValues:o=[],width:s="standard",positioning:c,onBuildingValueChange:d,onItemToggle:u,inputRef:h,filterText:p="",menuRef:f,blurCommitRef:m,className:g,emptyLabel:C})=>{let v=(0,c0.useRef)(null),y=(0,c0.useRef)(new Map),b=(0,c0.useMemo)(()=>(function(e,t,r=!1){let n=t.trim().toLowerCase(),i=e.some(e=>Zr(e)||null!=e.section);if(n.length>0&&i){let t,i,a,l;return t=[],i=[],(a=(e,l)=>{for(let o of e)if(Zr(o))r&&Qv(o.label,n)&&t.push({id:`select-all:${[...l,o.label].join("/")}`,option:{...o,label:`All ${o.label}`,description:l.join(QC)||void 0},isGroup:!0,isSelectAll:!0}),a(o.children??[],[...l,o.label]);else if(Qv(o.label,n)||Qv(o.value,n)||Qv(o.description,n)){let e=l.length>0?l.join(QC):o.section;i.push({id:`leaf:${String(o.value)}`,option:{...o,description:e||void 0},isGroup:!1})}})(e,[]),(l=[...t,...i]).length>0?[{rows:l}]:[]}let a=(e,t,n)=>r?[{id:`select-all:${e}`,option:{label:`All ${e}`,children:t},isGroup:!0,isSelectAll:!0},...n]:n,l=e.filter(Zr);if(l.length>0){let r=[],n=Qg(e.filter(e=>!Zr(e)),t);for(let e of(n.length>0&&r.push({rows:n}),l)){let n=e.children??[],i=Qg(n,t);i.length>0&&r.push({label:e.label,rows:a(e.label,n,i)})}return r}if(e.some(e=>e.section)){let r=[],n=new Map,i=[];for(let t of e)t.section?(n.has(t.section)||(n.set(t.section,[]),r.push(t.section)),n.get(t.section).push(t)):i.push(t);let l=[],o=Qg(i,t);for(let e of(o.length>0&&l.push({rows:o}),r)){let r=n.get(e),i=Qg(r,t);i.length>0&&l.push({label:e,rows:a(e,r,i)})}return l}let o=Qg(e,t);return o.length>0?[{rows:o}]:[]})(e,p,l),[e,p,l]),x=(({sections:e,allValues:t,open:r,multiSelect:n,initialValues:i,onSelect:a,onCommit:l,onEscape:o,onOpenChange:s,onBuildingValueChange:c,onItemToggle:d,inputRef:u,menuRef:h,submenuRef:p,blurCommitRef:f})=>{let[m,g]=(0,c0.useState)(i),C=(0,c0.useRef)(m);C.current=m;let[v,y]=(0,c0.useState)(null),b=(0,c0.useMemo)(()=>new Set(m.map(String)),[m]),x=(0,c0.useRef)(null);(0,c0.useEffect)(()=>{let e=i.map(String).sort().join("\0");e!==x.current&&(x.current=e,g(i))},[i]);let O=(0,c0.useRef)(r);(0,c0.useEffect)(()=>{!r&&O.current&&y(null),O.current=r},[r]);let w=(0,c0.useMemo)(()=>e.flatMap(e=>e.rows),[e]),S=(0,c0.useRef)(w);S.current=w;let E=(0,c0.useMemo)(()=>w.find(e=>e.id===v&&e.isGroup&&!e.isSelectAll),[w,v]),k=(0,c0.useMemo)(()=>E?(E.option.children??[]).map(e=>({id:"value"in e&&null!=e.value?`leaf:${String(e.value)}`:`group:${e.label}`,option:e,isGroup:Array.isArray(e.children)})):[],[E]),P=(0,c0.useCallback)(e=>{g(t=>{let r=String(e);return t.some(e=>String(e)===r)?t.filter(e=>String(e)!==r):[...t,e]})},[]),D=(0,c0.useCallback)((e,t)=>{0!==e.length&&g(r=>{let n=new Set(e.map(String)),i=r.filter(e=>!n.has(String(e)));return t?[...i,...e]:i})},[]),A=(0,c0.useRef)(l);A.current=l;let T=(0,c0.useRef)(!1),M=(0,c0.useCallback)(()=>{if(T.current||0===C.current.length||!A.current)return!1;T.current=!0;try{return A.current(C.current),!0}finally{T.current=!1}},[]);(0,c0.useEffect)(()=>{if(f)return f.current=n?M:null,()=>{f.current=null}},[n,f,M]);let L=(0,c0.useCallback)(e=>b.has(String(e)),[b]),I=(0,c0.useCallback)(e=>{if(!e.isGroup)return L(e.option.value);let t=QO(e.option),r=t.filter(e=>b.has(e)).length;return 0!==r&&(r===t.length||"indeterminate")},[b,L]),N=(0,c0.useCallback)(e=>{let t=QO(e);return t.length>0&&t.every(e=>b.has(e))},[b]),F=(0,c0.useRef)(null),R=(0,c0.useCallback)(()=>{F.current&&(clearTimeout(F.current),F.current=null)},[]),V=(0,c0.useCallback)(()=>{R(),F.current=setTimeout(()=>{F.current=null,y(null)},250)},[R]),_=(0,c0.useCallback)(e=>{R(),y(e)},[R]),Y=(0,c0.useCallback)(()=>{R(),y(null)},[R]);(0,c0.useEffect)(()=>()=>R(),[R]);let $=(0,c0.useCallback)(e=>{D(Zn(e.children).map(e=>e.value),!N(e)),d?.()},[D,N,d]),H=(0,c0.useCallback)((e,t)=>{if(e.isGroup)return void(n||e.isSelectAll?$(e.option):t||_(e.id));let r=e.option.value;n?(P(r),d?.()):a(r)},[n,$,_,P,d,a]),z=(0,c0.useCallback)(()=>{n&&M(),s?.(!1)},[n,M,s]),Z=(0,c0.useMemo)(()=>w.map(e=>({id:e.id,label:e.option.label,value:e.option.value})),[w]),Q=(0,c0.useRef)(""),B=Z7({items:Z,open:r&&null==v,onSelect:(0,c0.useCallback)(e=>{let t=S.current.find(t=>t.id===e.id);t&&H(t,!1)},[H]),onClose:o??z,onArrowRight:(0,c0.useCallback)(()=>{let e=S.current.find(e=>e.id===Q.current);e?.isGroup&&!e.isSelectAll?_(e.id):n&&M()},[_,n,M]),onPendingCommit:n?M:void 0,inputRef:u,menuRef:h});Q.current=B.highlightedValue;let j=Z7({items:(0,c0.useMemo)(()=>{if(!E)return[];let e=k.map(e=>({id:e.id,label:e.option.label,value:e.option.value}));return n?[{id:Qx,label:"Select all",value:Qx},...e]:e},[E,k,n]),open:r&&null!=v,onSelect:(0,c0.useCallback)(e=>{if(!E)return;if(e.id===Qx)return void $(E.option);let t=k.find(t=>t.id===e.id);t&&H(t,!0)},[E,k,$,H]),onClose:Y,onArrowLeft:Y,onPendingCommit:n?M:void 0,inputRef:u,menuRef:p}),G=(0,c0.useMemo)(()=>{let e=new Map;for(let r of Zn(t))e.set(String(r.value),r.label);return e},[t]),U=n&&m.length>0?Qb(t,m).map(e=>"group"===e.kind?e.label:G.get(String(e.value))??String(e.value)).join(", "):void 0;return(0,c0.useEffect)(()=>{c?.(U)},[U,c]),{checkedValues:m,openParentId:v,openParent:_,closeParent:Y,cancelClose:R,scheduleClose:V,openParentRow:E,submenuRows:k,selectRow:H,toggleGroup:$,isLeafChecked:L,getRowCheckState:I,allLeavesChecked:N,commitChecked:M,topHighlightedValue:B.highlightedValue,onTopHighlightChange:B.onHighlightChange,topPendingIds:B.pendingIds,registerTopItem:B.registerItem,submenuHighlightedValue:j.highlightedValue,onSubmenuHighlightChange:j.onHighlightChange,submenuPendingIds:j.pendingIds,registerSubmenuItem:j.registerItem}})({sections:b,allValues:e,open:n,multiSelect:l,initialValues:o,onSelect:t,onCommit:r,onEscape:a,onOpenChange:i,onBuildingValueChange:d,onItemToggle:u,inputRef:h,menuRef:f,submenuRef:v,blurCommitRef:m}),O="compact"===s?"w-[172px]":"w-[300px]",w="number"==typeof s?{width:`${s}px`}:void 0,S=(0,c0.useRef)(x.openParentId);S.current=x.openParentId;let E=(0,c0.useMemo)(()=>({placement:"right-start",gutter:4,getAnchorRect:()=>{let e=S.current;return e&&y.current.get(e)?.getBoundingClientRect()||null}}),[]);Z6(x.openParentId,null!=x.openParentId);let k=x.openParentRow,P=k&&l?{id:Qx,option:{label:`All ${k.option.label}`,children:k.option.children??[]},isGroup:!0,isSelectAll:!0}:null,D=b.some(e=>e.rows.length>0);return(0,eB.FD)(eB.FK,{children:[(0,eB.Y)(w_,{open:n,onOpenChange:i,onRequestDismiss:ZV,closeOnSelect:!1,positioning:c,highlightedValue:x.topHighlightedValue,onHighlightChange:x.onTopHighlightChange,children:(0,eB.FD)(SN,{ref:f,className:(0,m2.cn)(O,"max-h-[430px]",g),style:w,"data-filter-input-menu":"true",children:[D?b.map((e,t)=>{let r=(0,eB.Y)(VO,{className:"flex flex-col gap-1",children:e.rows.map(e=>{let t,r=e.isGroup&&!e.isSelectAll;return(0,eB.Y)(Qy,{id:e.id,option:e.option,isGroup:r,checkedState:x.getRowCheckState(e),isPending:x.topPendingIds.has(e.id),multiSelect:l,onSelect:()=>x.selectRow(e,!1),onMouseEnter:r?()=>x.openParent(e.id):void 0,onMouseLeave:r?()=>x.scheduleClose():void 0,registerRef:(t=e.id,e=>{x.registerTopItem(t)(e),e?y.current.set(t,e):y.current.delete(t)}),expanded:x.openParentId===e.id,selectAll:e.isSelectAll,highlight:p},e.id)})});return(0,eB.FD)(c0.Fragment,{children:[t>0&&(0,eB.Y)(VT,{}),e.label?(0,eB.FD)("div",{className:"flex flex-col gap-1",children:[(0,eB.Y)(VA,{sticky:!0,children:e.label}),r]}):r]},e.label??`section-${t}`)}):(0,eB.Y)(Z9,{label:C}),(0,eB.Y)(Sk,{className:"justify-start",children:(0,eB.Y)(Qd,{multiSelect:l})})]})}),k&&(0,eB.Y)(w_,{open:null!=x.openParentId,closeOnSelect:!1,positioning:E,highlightedValue:x.submenuHighlightedValue,onHighlightChange:x.onSubmenuHighlightChange,children:(0,eB.Y)(SN,{ref:v,className:(0,m2.cn)(O,"max-h-[430px]"),style:w,"data-filter-input-menu":"true",onMouseEnter:x.cancelClose,onMouseLeave:x.scheduleClose,children:(0,eB.FD)(VO,{className:"flex flex-col gap-1",children:[P&&(0,eB.Y)(Qy,{id:Qx,option:P.option,isGroup:!1,checkedState:x.getRowCheckState(P),isPending:x.submenuPendingIds.has(Qx),multiSelect:l,onSelect:()=>x.toggleGroup(k.option),registerRef:x.registerSubmenuItem(Qx),selectAll:!0}),P&&(0,eB.Y)(VT,{}),x.submenuRows.map(e=>(0,eB.Y)(Qy,{id:e.id,option:e.option,isGroup:e.isGroup,checkedState:x.getRowCheckState(e),isPending:x.submenuPendingIds.has(e.id),multiSelect:l,onSelect:()=>x.selectRow(e,!0),registerRef:x.registerSubmenuItem(e.id)},e.id))]})})})]})},"NestedValueMenu");Qw.displayName="NestedValueMenu";let QS=(0,eQ.G)(e=>{let t,r,n=(0,ej.c)(5);n[0]!==e.values?(t=e.values.some(QE),n[0]=e.values,n[1]=t):t=n[1];let i=t;return n[2]!==i||n[3]!==e?(r=i?(0,eB.Y)(Qw,{...e}):(0,eB.Y)(Qf,{...e}),n[2]=i,n[3]=e,n[4]=r):r=n[4],r},"FilterInputValueMenu");function QE(e){return Zr(e)||null!=e.section}QS.displayName="FilterInputValueMenu";let Qk=(0,eQ.G)(({fields:e,fieldGroups:t,autocomplete:r})=>{var n,i,a;let l,{inputText:o,menuState:s,selectedField:c,selectedOperator:d,menuPositioning:u,editingMultiValues:h,editingSingleValue:p,editingDateRange:f,inputRef:m,menuRef:g,handleFieldSelect:C,handleOperatorSelect:v,handleValueSelect:y,handleMultiCommit:b,handleRangeSelect:x,handleMenuClose:O,handleMenuDiscard:w,handleBuildingValueChange:S,handleMultiSelectToggle:E,segmentMenuFilterText:k,editingSegment:P,blurCommitRef:D}=r,A=P===zz?k:o,T=P===zZ?k:o,M=(l=P===zQ?k:o,z3(d)?l.split(",").pop()?.trim()??"":l),L=(0,c0.useMemo)(()=>({selectedValues:[...h,...null!=p?[p]:[]]}),[h,p]),I=c?e.find(e=>e.name===c.name)??c:null,N=I?Zl(I,M,L):[],F=(0,c0.useMemo)(()=>{let t=[...h,...null!=p?[p]:[]];if(0===t.length)return N;let r=[...N],n=new Map(r.map((e,t)=>[String(e.value),t]));for(let i of t){let t=String(i),a=n.get(t);if(null!=a&&r[a].label!==t||!Zd(c,i))continue;let l=Za(i,e);void 0!==l&&(null!=a?r[a]={...r[a],value:i,label:l}:(r.push({value:i,label:l}),n.set(t,r.length-1)))}return r},[N,h,p,e,c]),R=(n=M,i=d,a=F,z3(i)?!n||a.length>0&&a.some(e=>e.label.toLowerCase()===n.toLowerCase()||String(e.value).toLowerCase()===n.toLowerCase())?"":n:n),V=!!c,_=!!c&&!!d,Y=c?.type==="date",$=N.length>0||!!I?.loadingOptions||!!I?.emptyOptionsLabel;return(0,eB.FD)(eB.FK,{children:[(0,eB.Y)(Qa,{fields:e,fieldGroups:t,filterText:A,open:"field"===s,onSelect:C,onOpenChange:O,onEscape:w,positioning:u,inputRef:m,menuRef:g}),V&&(0,eB.Y)(Qo,{fieldType:c.type,operators:c.operators,open:"operator"===s,onSelect:v,onOpenChange:O,onEscape:w,positioning:u,inputRef:m,menuRef:g,filterText:T}),_&&(Y?(0,eB.Y)(Z3,{open:"value"===s,onSelect:y,onRangeSelect:x,onOpenChange:O,onEscape:w,positioning:u,range:"between"===d,menuRef:g,initialValue:null!=p?String(p):void 0,initialRangeValue:f,filterText:R}):$&&(0,eB.Y)(QS,{values:F,open:"value"===s,onSelect:y,onCommit:b,onOpenChange:O,onEscape:w,multiSelect:z3(d),initialValues:h,highlightValue:p,positioning:u,onBuildingValueChange:S,onItemToggle:E,inputRef:m,menuRef:g,filterText:R,blurCommitRef:D,loading:I?.loadingOptions??!1,emptyLabel:I?.emptyOptionsLabel}))]})},"FilterInputMenu");Qk.displayName="FilterInputMenu";let QP="Invalid Date",QD=" – ",QA="string",QT=e=>`chip-${e}`,QM=(e,t)=>({id:`connector-${e}`,variant:t}),QL=(e,t)=>({id:`paren-${e}-${t}`,variant:"open"===e?"(":")"}),QI=(e,t,r)=>{let n=((e,t)=>{if(e?.values&&null!=t)return Zi(e.values,String(t))})(t,e)?.label;return void 0!==n?n:Zd(t,e)?Za(e,r):void 0},QN=(e,t,r,n)=>{let i=((e,t,r,n)=>{let i,a=t[e];if(!a)return{id:QT(e),variant:"chip",attribute:"",operator:"",value:"",error:n||void 0};let l=a.error||!!n||Zt(a.operator,a.value),o=r.find(e=>e.name===a.field),s={id:QT(e),variant:"chip",attribute:o?.label||a.field,...o?.description&&{attributeDescription:o.description},...o?.valueMaxWidth&&{valueMaxWidth:o.valueMaxWidth},...o?.caretMode&&{caretMode:o.caretMode},operator:a.operator?z2(a.operator,o?.type||QA):void 0,...a.disabled&&{disabled:!0}};if(a.operator&&z5(a.operator))return{...s,value:"—",error:l};if(o?.type==="date"){let e,t,r;return Array.isArray(a.value)?(t=(e=a.value.map(e=>Zc(String(e)))).reduce((e,t,r)=>(t===QP&&e.push(r),e),[]),{...s,value:e.join(QD),error:l||(t.length>0?zQ:void 0),...t.length>0&&{valueParts:e,valueSeparator:QD,errorValueIndices:t}}):(r=Zc(String(a.value??"")),{...s,value:r,error:l||(r===QP?zQ:void 0)})}if(Array.isArray(a.value)){let e,t,n;return e=a.value,t=o?Zp(o,e):[],n=o&&0===t.length?Qb(o.values,e).map(e=>"group"===e.kind?e.label:QI(e.value,o,r)??String(e.value)):e.map(e=>QI(e,o,r)??String(e)),{...s,value:n.join(", "),error:l||(t.length>0?zQ:void 0),...n.length>1&&{valueParts:n},...t.length>0&&{errorValueIndices:t}}}return{...s,value:(i=String(a.value??""),QI(a.value,o,r)??i),error:l}})(e,t,r,n),a=t[e];if(!a)return i;let l=r.find(e=>e.name===a.field),o=((e,t,r)=>{if(!t?.pairedField||null!=e.operator&&z5(e.operator))return;let n=t.pairedField;if(!e.pair){if(!(null!=e.operator&&!Ze(e.value)))return;return{attribute:n.label||n.name,value:"",error:zQ}}let{operator:i,value:a,error:l}=e.pair,o=i&&z5(i)?"—":QI(a,n,r)??String(a??""),s=!(i&&z5(i))&&Ze(a),c=l||(s?zQ:void 0);return{attribute:n.label||n.name,operator:i?z2(i,n.type||QA):void 0,value:o,...c&&{error:c}}})(a,l,r);return o?{...i,pair:o}:i},QF=(e,t,r)=>{let n,i,{conditions:a,connectors:l}=r?(n=[],i=[],e.forEach((e,a)=>{a>0&&i.push(t[a-1]??"and");let l=r.find(t=>t.name===e.field);if(e.pair&&l?.pairedField){let{pair:t,...r}=e;n.push(r),i.push("and"),n.push({type:"condition",field:l.pairedField.name,...t.operator&&{operator:t.operator},value:t.value,...t.error&&{error:t.error},...t.dateOrigin&&{dateOrigin:t.dateOrigin}})}else n.push(e)}),{conditions:n,connectors:i}):{conditions:e,connectors:t};if(0===a.length)return null;if(1===a.length)return a[0]??null;let o=a[0];if(!o)return null;let s=l.reduce((e,t,r)=>{let n=a[r+1];return n&&("or"===t?e.push([n]):e.at(-1)?.push(n)),e},[[o]]).map(e=>1===e.length&&e[0]?e[0]:{type:"group",operator:"and",children:e});return 1===s.length&&s[0]?s[0]:{type:"group",operator:"or",children:s}},QR=(e,t)=>{if(!e)return{conditions:[],connectors:[]};let r=[],n=[],i=e=>{"condition"===e.type?r.push(e):e.children.forEach((t,r)=>{r>0&&n.push(e.operator),i(t)})};return i(e),t?((e,t,r)=>{let n=[],i=[],a=0;for(;a<e.length;){let l=e[a];a>0&&i.push(t[a-1]??"and");let o=r.find(e=>e.name===l.field),s=e[a+1];o?.pairedField&&!l.pair&&"and"===t[a]&&s&&s.field===o.pairedField.name&&s?(n.push({...l,pair:{...s.operator&&{operator:s.operator},value:s.value,...s.error&&{error:s.error},...s.dateOrigin&&{dateOrigin:s.dateOrigin}}}),a+=2):(n.push(l),a+=1)}return{conditions:n,connectors:i}})(r,n,t):{conditions:r,connectors:n}},QV={conditions:[],connectors:[]},Q_=(e,t)=>{let r=[...e];return 0===t&&r.length>0?r.splice(0,1):t>0&&t-1<r.length&&r.splice(t-1,1),r};function QY(e){return e.disabled}let Q$=(e,t)=>{let r=t.split(",").map(e=>e.trim()).filter(Boolean).map(t=>{let r;return r=Zu(Zn(Zl(e)),t),r?.value??t}),n=e.normalize?r.map(t=>e.normalize(t)):r,i=Zp(e,n).length>0||void 0;return{resolved:n,error:i}},QH=e=>{if(!e||e.length<6)return null;if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e;let t=new Date(e);if(Number.isNaN(t.getTime()))return null;let r=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return`${r}-${n}-${i}`};function Qz(){return!1}function QZ(){return!1}function QQ(e){return null!=e?e-1:e}let QB={[zz]:"field",[zZ]:"operator",[zQ]:"value"},Qj=(e,t,r,n)=>e===zz?t.label:e===zZ?r?z2(r,t.type):"":n??"",QG=(e,t)=>{let r=z8(e);return null!==r?t[r]??null:null},QU=(e,t)=>{let r=Array.from(e).filter(e=>","===e||" "===e||t(e)).join("");return r===e?e:r};function QW(e){return e+1}function Qq(e){return null!=e}let QX="data-drag-selected",QK=e=>[...e.values()].some(e=>e.hasAttribute(QX)),QJ=e=>[...e.entries()].map(([e,t])=>({id:e,el:t,rect:t.getBoundingClientRect(),allIdx:0})).sort((e,t)=>{let r=e.rect.top-t.rect.top;return Math.abs(r)>Math.min(e.rect.height,t.rect.height)/2?r:e.rect.left-t.rect.left}).map((e,t)=>({...e,allIdx:t})),Q1=(e,t,r)=>e.reduce((e,n,i)=>{let a=n.rect,l=Math.max(a.left-t,0,t-a.right),o=Math.max(a.top-r,0,r-a.bottom),s=l*l+o*o;return s<e.dist?{idx:i,dist:s}:e},{idx:-1,dist:1/0}).idx,Q2=e=>({_tag:"FilterParseError",message:e}),Q0=e=>"object"==typeof e&&null!==e&&"_tag"in e&&"FilterParseError"===e._tag,Q3=new Set(["=","!=",">","<",">=","<=","in","not_in","like","not_like","is_null","is_not_null","between"]),Q5=new Set(["!=",">=","<="]),Q4=e=>" \n\r".includes(e),Q7=e=>""!==e&&!Q4(e)&&!"()[],!><=".includes(e),Q9=(e,t,r)=>{let n=e.fields.find(e=>e.name===t);if(!n)return;let i=Zp(n,r).map(e=>r[e]);if(i.length>0){let e=i.map(e=>`"${e}"`).join(", ");throw Q2(`Invalid value ${e} for field '${t}'`)}},Q6=e=>e.tokens[e.pos],Q8=e=>{let t=e.tokens[e.pos];if(!t)throw Q2("Unexpected end of input");return e.pos++,t},Be=(e,t)=>{let r=Q6(e);if(!r||r.type!==t){let e=r?`'${r.value}' at position ${r.pos}`:"end of input";throw Q2(`Expected ${t}, found ${e}`)}return Q8(e)},Bt=e=>{let t=Be(e,"IDENT");var r=t.value;if(!e.fields.some(e=>e.name===r))throw Q2(`Unknown field: ${r}`);let n=Q6(e);if(!n||"OPERATOR"!==n.type)throw Q2(`Expected operator after field '${t.value}'`);Q8(e);let i=((e,t,r)=>{if(!Q3.has(t))throw Q2(`Unknown operator: ${t}`);let n=e.fields.find(e=>e.name===r);if(n?.operators&&!n.operators.includes(t))throw Q2(`Operator '${t}' is not allowed for field '${r}'`);return t})(e,n.value,t.value);if("is_null"===i||"is_not_null"===i)return{type:"condition",field:t.value,operator:i,value:null};if(Q6(e)?.type==="LBRACKET"){let r=(e=>{Be(e,"LBRACKET");let t=[];if(Q6(e)?.type!=="RBRACKET")for(t.push(Be(e,"IDENT").value);Q6(e)?.type==="COMMA";)Q8(e),t.push(Be(e,"IDENT").value);return Be(e,"RBRACKET"),t})(e);return Q9(e,t.value,r),{type:"condition",field:t.value,operator:i,value:r}}let a=Be(e,"IDENT");return Q9(e,t.value,[a.value]),{type:"condition",field:t.value,operator:i,value:a.value}},Br=e=>{if(Q6(e)?.type==="LPAREN"){if(Q8(e),Q6(e)?.type==="LPAREN"){let t=Bi(e);return Be(e,"RPAREN"),t}let t=Bt(e),r=Q6(e);if(r?.type==="RPAREN")return Q8(e),t;if(r?.type==="AND"||r?.type==="OR"){let n=[t],i="AND"===r.type?"and":"or";for(;Q6(e)?.type==="AND"||Q6(e)?.type==="OR";)Q8(e),n.push(Br(e));return Be(e,"RPAREN"),{type:"group",operator:i,children:n}}let n=r?`'${r.value}' at position ${r.pos}`:"end of input";throw Q2(`Expected ')' or connector after condition, found ${n}`)}if(Q6(e)?.type==="IDENT")return Bt(e);let t=Q6(e);throw Q2(t?`Unexpected token '${t.value}' at position ${t.pos}`:"Unexpected end of input")},Bn=e=>{let t=Br(e);for(;Q6(e)?.type==="AND";){Q8(e);let r=Br(e);t="group"===t.type&&"and"===t.operator?{...t,children:[...t.children,r]}:{type:"group",operator:"and",children:[t,r]}}return t},Bi=e=>{let t=Bn(e);for(;Q6(e)?.type==="OR";){Q8(e);let r=Bn(e);t="group"===t.type&&"or"===t.operator?{...t,children:[...t.children,r]}:{type:"group",operator:"or",children:[t,r]}}return t},Ba=(e,t)=>{let r=e.trim();if(!r)throw Q2("Empty filter text");let n=(e=>{let t=[],r=0,n=(e,n,i,a=1)=>{t.push({type:e,value:n,pos:i}),r+=a};for(;r<e.length;){let i=e[r];if(Q4(i)){r++;continue}if("("===i){n("LPAREN","(",r);continue}if(")"===i){n("RPAREN",")",r);continue}if("["===i){n("LBRACKET","[",r);continue}if("]"===i){n("RBRACKET","]",r);continue}if(","===i){n("COMMA",",",r);continue}let a=e.slice(r,r+2);if(Q5.has(a)){n("OPERATOR",a,r,2);continue}if("=><".includes(i)){n("OPERATOR",i,r);continue}if('"'===i||"'"===i){let n=r;for(r++;r<e.length&&e[r]!==i;)r++;if(r>=e.length)throw Q2(`Unterminated string at position ${n}`);t.push({type:"IDENT",value:e.slice(n+1,r),pos:n}),r++;continue}if(Q7(i)){let n=r;for(;r<e.length&&Q7(e[r]);)r++;let i=e.slice(n,r),a=i.toUpperCase();"AND"===a?t.push({type:"AND",value:"AND",pos:n}):"OR"===a?t.push({type:"OR",value:"OR",pos:n}):Q3.has(i)?t.push({type:"OPERATOR",value:i,pos:n}):t.push({type:"IDENT",value:i,pos:n});continue}throw Q2(`Unexpected character '${i}' at position ${r}`)}return t})(r);if(0===n.length)throw Q2("Empty filter text");let i={tokens:n,pos:0,fields:t},a=Bi(i);if(i.pos<n.length){let e=n[i.pos];throw Q2(`Unexpected token '${e.value}' at position ${e.pos}`)}return a},Bl=(e,t)=>{let r;return"condition"===e.type?((e,t)=>{let r=t.get(e.field),n=r?.serializeValue;if(!n)return e;let{value:i}=e;if(null==i)return e;if(Array.isArray(i)){let t=i.map(e=>n(e));return t.every((e,t)=>e===i[t])?e:{...e,value:t}}let a=n(i);return a===i?e:{...e,value:a}})(e,t):(r=e.children.map(e=>Bl(e,t))).every((t,r)=>t===e.children[r])?e:{...e,children:r}},Bo=(e,t)=>e&&t.some(e=>e.serializeValue)?Bl(e,new Map(t.map(e=>[e.name,e]))):e,Bs=e=>`"${e}"`,Bc=(e,t)=>{if("condition"===e.type){let t,r,n;return t=e.field,r=e.operator??"=",n="is_null"===e.operator||"is_not_null"===e.operator?"":Array.isArray(e.value)?`[${e.value.map(Bs).join(", ")}]`:Bs(e.value??""),"is_null"===r||"is_not_null"===r?`(${t} ${r})`:`(${t} ${r} ${n})`}let r=t?[...e.children].sort((e,t)=>{let r="condition"===e.type?e.field:"",n="condition"===t.type?t.field:"";return r.localeCompare(n)}):e.children,n="or"===e.operator?" OR ":" AND ";return r.map(e=>Bc(e,!1)).join(n)},Bd=(e,t)=>{if(!e)return"";let r=t?Bo(e,t):e;return r?Bc(r,!0):""},Bu=e=>{if(!Q0(e))return"Could not parse the pasted filter text";let t=e.message;if(t.startsWith("Unknown field:")){let e=t.replace("Unknown field: ","");return`Unknown filter field "${e}". Check the field name and try again.`}return t.includes("not allowed for field")?`${t}. Check the operator and try again.`:t.startsWith("Invalid value")?`${t}. Check the allowed values and try again.`:t.startsWith("Expected")?`Invalid filter format: ${t.toLowerCase()}. Expected format: (field operator value) AND (field operator value)`:"Empty filter text"===t?"The pasted text is empty":`Could not parse filter: ${t}`},Bh=Object.entries(F6).map(([e,{name:t}])=>({value:e,label:t})).sort((e,t)=>e.label.localeCompare(t.label,"en")),Bp=()=>e=>/^[0-9xX]$/.test(e),Bf=()=>e=>{if("string"!=typeof e&&"number"!=typeof e)return e;let t=String(e).toUpperCase();return/^\d[0-9X]{0,2}$/.test(t)?1===t.length?`${t}XX`:2===t.length?`${t}X`:t:e},Bm=["0","1","2","3","4","5"],Bg={informational:"slate",success:"green",redirection:"blue","client-error":"amber","server-error":"red",unknown:"slate"},BC={1:"informational",2:"success",3:"redirection",4:"client-error",5:"server-error"},Bv=e=>{if("string"==typeof e&&/[xX]/.test(e)){let t=e.trim().match(/^([1-5])[\dxX]*$/);return t?.[1]?BC[t[1]]??"unknown":"unknown"}let t="number"==typeof e?e:Number.parseInt(e,10);return Number.isFinite(t)?t>=100&&t<200?"informational":t>=200&&t<300?"success":t>=300&&t<400?"redirection":t>=400&&t<500?"client-error":t>=500&&t<600?"server-error":"unknown":"unknown"},By=e=>{let t=Bv(e);if("unknown"===t){if(e.startsWith("0"))return{value:e,label:e,badge:{color:Bg.unknown,text:e}};throw Error(`statusCode: no badge color for mask "${e}"`)}return{value:e,label:e,badge:{color:Bg[t],text:e}}},Bb=()=>(e,t)=>{let r=e.trim(),n=(t?.selectedValues??[]).map(e=>String(e)).filter(e=>/^\d[\dX]{0,2}$/.test(e)&&Bm.includes(e.charAt(0))).map(e=>By(e)),i=new Set(n.map(e=>String(e.value))),a=e=>[...n,...e.filter(e=>!i.has(String(e.value)))];if(0===r.length)return a(Bm.map(e=>By(`${e}XX`)));let l=(e=>{let t=e.toUpperCase();if(0===t.length||t.length>3||!/^[\dX]+$/.test(t))return null;let r=t.charAt(0);if("X"===r||!Bm.includes(r))return null;if(1===t.length)return`${r}XX`;let n=t.charAt(1);if("X"===n)return 3===t.length&&"X"!==t.charAt(2)?null:`${r}XX`;if(2===t.length)return`${r}${n}X`;let i=t.charAt(2);return"X"===i?`${r}${n}X`:`${r}${n}${i}`})(r);return l?a([By(l)]):n},Bx=()=>e=>{let t=String(e);return!(3===t.length&&Bm.includes(t.charAt(0)))||!/^(XX|\dX|\d\d)$/.test(t.slice(1))},BO=()=>e=>"string"==typeof e&&/^\d[\dX]{0,2}$/i.test(e)?e.replace(/X+$/i,""):e,Bw=e=>{if(0===e.length)return Bh;let t=new Set(e.map(e=>e.value));return[...e.map(e=>({...e,section:"Most frequent"})),...Bh.filter(e=>!t.has(e.value)).map(e=>({...e,section:"Other countries"}))]},BS={status_code:()=>({acceptChar:Bp(),normalize:Bf(),getSuggestions:Bb(),validate:Bx(),serializeValue:BO()}),country:e=>{if(e.getSuggestions){let t=e.getSuggestions;return{getSuggestions:(e,r)=>Bw(t(e,r)??[]),values:Bh}}return{values:Bw(e.values??[]),getSuggestions:void 0}}},BE=e=>BS[e]?.({name:e}).serializeValue,Bk=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w,S,E,k,P,D,A,T,M,L,I,N,F,R,V=(0,ej.c)(102);V[0]!==e?({fields:o,fieldGroups:n,value:h,onChange:i,placeholder:s,error:c,externalErrors:r,onErrorsChange:a,showKeyboardHint:d,className:t,"data-testid":u,...l}=e,V[0]=e,V[1]=t,V[2]=r,V[3]=n,V[4]=i,V[5]=a,V[6]=l,V[7]=o,V[8]=s,V[9]=c,V[10]=d,V[11]=u,V[12]=h):(t=V[1],r=V[2],n=V[3],i=V[4],a=V[5],l=V[6],o=V[7],s=V[8],c=V[9],d=V[10],u=V[11],h=V[12]),V[13]!==o?(p=void 0===o?[]:o,V[13]=o,V[14]=p):p=V[14];let _=p,Y=void 0===s?"Type to filter...":s,$=void 0!==c&&c,H=void 0!==d&&d,z=(0,c0.useRef)(null),Z=(0,c0.useRef)(null),Q=(0,c0.useRef)(null);V[15]===Symbol.for("react.memo_cache_sentinel")?(f=new Map,V[15]=f):f=V[15];let B=(0,c0.useRef)(f);V[16]===Symbol.for("react.memo_cache_sentinel")?(m=(e,t)=>{t?B.current.set(e,t):B.current.delete(e)},V[16]=m):m=V[16];let j=m;if(V[17]!==_){let e,t;e=!1,t=_.map(t=>{let r=BS[t.name];return r?(e=!0,{...t,...r(t)}):t}),g=e?t:_,V[17]=_,V[18]=g}else g=V[18];let G=g;V[19]!==$||V[20]!==r||V[21]!==G||V[22]!==i||V[23]!==h?(C={fields:G,value:h,onChange:i,error:$,externalErrors:r},V[19]=$,V[20]=r,V[21]=G,V[22]=i,V[23]=h,V[24]=C):C=V[24];let{conditions:U,connectors:W,chips:q,upsertCondition:X,removeCondition:K,removeConditionAtIndex:J,clearAll:ee,replaceExpression:et,setConnectorValue:er}=(e=>{let t,r,n,i,a,l,o,s,c,d,u,h=(0,ej.c)(38),{fields:p,value:f,onChange:m,error:g,externalErrors:C}=e,[v,y]=(0,c0.useState)(QV),b=(0,c0.useRef)(v);h[0]!==p||h[1]!==m?(t=(e,t)=>{b.current=e,y(e),t&&m?.(QF(e.conditions,e.connectors,p))},h[0]=p,h[1]=m,h[2]=t):t=h[2];let x=t;if(h[3]!==p||h[4]!==f?(r=()=>{if(void 0!==f){let e,t=QR(f,p),r={conditions:(e=t.conditions,e.map(e=>{if(e.disabled)return e;let t=p.find(t=>t.name===e.field);if(!t||e.error===zz||t.getSuggestions&&!t.validate)return e;if(Zf(t,e.value))return e.error===zQ?e:{...e,error:zQ};if(e.error===zQ){let t={...e};return delete t.error,t}return e})),connectors:t.connectors};b.current=r,y(r)}},n=[f,p],h[3]=p,h[4]=f,h[5]=r,h[6]=n):(r=h[5],n=h[6]),(0,c0.useEffect)(r,n),h[7]!==g||h[8]!==C||h[9]!==p||h[10]!==v.conditions||h[11]!==v.connectors){var O,w;i=((e,t,r)=>{if(!r?.length)return e;let n=new Set(r),i=-1;return e.map(e=>{if("chip"!==e.variant)return e;let r=t[i+=1];return r&&!e.disabled&&!e.error&&n.has(r.field)?{...e,error:zQ}:e})})((O=v.conditions,w=v.connectors,0===O.length?[]:w.includes("and")&&w.includes("or")?w.reduce((e,t,r)=>("or"===t?e.push([r+1]):e.at(-1)?.push(r+1),e),[[0]]).reduce((e,t,r)=>{r>0&&e.chips.push(QM(t[0],"or"));let n=t.length>1;for(let[r,i]of(n&&e.chips.push(QL("open",e.parenCounter)),t.entries()))r>0&&e.chips.push(QM(i,"and")),e.chips.push(QN(i,O,p,g));return n&&(e.chips.push(QL("close",e.parenCounter)),e.parenCounter++),e},{chips:[],parenCounter:0}).chips:O.flatMap((e,t)=>{let r=QN(t,O,p,g);return t>0?[QM(t,w[t-1]??"and"),r]:[r]})),v.conditions,C),h[7]=g,h[8]=C,h[9]=p,h[10]=v.conditions,h[11]=v.connectors,h[12]=i}else i=h[12];let S=i;h[13]!==x?(a=(e,t,r,n,i,a,l,o)=>{let s=b.current;if(1===o){let e=null!=n?z8(n):s.conditions.length-1;if(null==e||e<0||e>=s.conditions.length)return;let i=s.conditions[e],o=[...s.conditions];o[e]={...i,pair:{...t&&{operator:t},value:r,...a&&{error:a},...l&&{dateOrigin:l}}},x({conditions:o,connectors:s.connectors},!0);return}let c={type:"condition",field:e.name,...t&&{operator:t},value:r,...a&&{error:a},...l&&{dateOrigin:l}};if(n){let e=z8(n),t=null!==e?s.conditions[e]:void 0;t?.pair&&t.field===c.field&&(c.pair=t.pair)}let d=((e,t,r,n)=>{if(r){let n=z8(r);if(null!==n&&n<e.length){let r=[...e];return r[n]=t,r}return[...e,t]}if(null!=n&&n>=0&&n<e.length){let r=[...e];return r.splice(n,0,t),r}return[...e,t]})(s.conditions,c,n,i),u=((e,t,r,n,i)=>{if(r||t<=1)return e;if(null!=n&&n>=0&&null!=i&&n<i){let t=Math.max(0,n-1),r=[...e];return r.splice(t,0,"and"),r}let a=t-1-e.length;return a>0?[...e,...Array(a).fill("and")]:e})(s.connectors,d.length,n,i,s.conditions.length);x({conditions:d,connectors:u},!0)},h[13]=x,h[14]=a):a=h[14];let E=a;h[15]!==x?(l=e=>{let t=z8(e);if(null===t)return;let r=b.current;r.conditions[t]?.disabled||x({conditions:r.conditions.filter((e,r)=>r!==t),connectors:Q_(r.connectors,t)},!0)},h[15]=x,h[16]=l):l=h[16];let k=l;h[17]!==x?(o=e=>{let t=b.current;e<0||e>=t.conditions.length||t.conditions[e]?.disabled||x({conditions:t.conditions.filter((t,r)=>r!==e),connectors:Q_(t.connectors,e)},!0)},h[17]=x,h[18]=o):o=h[18];let P=o;h[19]!==x||h[20]!==m?(s=()=>{let e=b.current.conditions.filter(QY);if(0===e.length){x(QV,!1),m?.(null);return}x({conditions:e,connectors:[]},!0)},h[19]=x,h[20]=m,h[21]=s):s=h[21];let D=s;h[22]!==x||h[23]!==p||h[24]!==m?(c=e=>{let t=QR(e,p);x({conditions:t.conditions,connectors:t.connectors},!1),m?.(e)},h[22]=x,h[23]=p,h[24]=m,h[25]=c):c=h[25];let A=c;h[26]!==x?(d=(e,t)=>{let r=e.match(zU);if(!r)return;let n=Number(r[1])-1,i=b.current,a=[...i.connectors];n>=0&&n<a.length&&(a[n]=t),x({conditions:i.conditions,connectors:a},!0)},h[26]=x,h[27]=d):d=h[27];let T=d;return h[28]!==S||h[29]!==D||h[30]!==k||h[31]!==P||h[32]!==A||h[33]!==T||h[34]!==v.conditions||h[35]!==v.connectors||h[36]!==E?(u={conditions:v.conditions,connectors:v.connectors,chips:S,upsertCondition:E,removeCondition:k,removeConditionAtIndex:P,clearAll:D,replaceExpression:A,setConnectorValue:T},h[28]=S,h[29]=D,h[30]=k,h[31]=P,h[32]=A,h[33]=T,h[34]=v.conditions,h[35]=v.connectors,h[36]=E,h[37]=u):u=h[37],u})(C);V[25]!==q||V[26]!==ee||V[27]!==U||V[28]!==G||V[29]!==K||V[30]!==J||V[31]!==er||V[32]!==X?(v={fields:G,conditions:U,chips:q,upsertCondition:X,removeCondition:K,removeConditionAtIndex:J,clearAll:ee,setConnectorValue:er,containerRef:Z,buildingChipRef:Q,inputRef:z},V[25]=q,V[26]=ee,V[27]=U,V[28]=G,V[29]=K,V[30]=J,V[31]=er,V[32]=X,V[33]=v):v=V[33];let en=(({fields:e,conditions:t,chips:r,upsertCondition:n,removeCondition:i,removeConditionAtIndex:a,clearAll:l,setConnectorValue:o,containerRef:s,buildingChipRef:c,inputRef:d})=>{let{inputText:u,setInputText:h,menuState:p,setMenuState:f,selectedField:m,setSelectedField:g,selectedOperator:C,setSelectedOperator:v,isFocused:y,setIsFocused:b,buildingMultiValue:x,setBuildingMultiValue:O,buildingSide:w,setBuildingSide:S,buildingBase:E,setBuildingBase:k,insertIndex:P,setInsertIndex:D,insertAfterConnector:A,setInsertAfterConnector:T,effectiveInsertIndex:M,effectiveInsertIndexRef:L,conditionsRef:I,conditionsLengthRef:N,blurCommitRef:F,segmentAttributeInputRef:R,segmentOperatorInputRef:V,segmentValueInputRef:_,commitBuildingOnBlurRef:Y,commitBuildingForceRef:$}=(e=>{let t,r,n=(0,ej.c)(15),{conditions:i}=e,[a,l]=(0,c0.useState)(""),[o,s]=(0,c0.useState)("closed"),[c,d]=(0,c0.useState)(null),[u,h]=(0,c0.useState)(null),[p,f]=(0,c0.useState)(!1),[m,g]=(0,c0.useState)(void 0),[C,v]=(0,c0.useState)(0),[y,b]=(0,c0.useState)(null),[x,O]=(0,c0.useState)(null),[w,S]=(0,c0.useState)(!1),E=x??i.length,k=(0,c0.useRef)(E),P=(0,c0.useRef)(i),D=(0,c0.useRef)(i.length);n[0]!==i||n[1]!==E?(t=()=>{k.current=E,P.current=i,D.current=i.length},n[0]=i,n[1]=E,n[2]=t):t=n[2],(0,c0.useLayoutEffect)(t);let A=(0,c0.useRef)(null),T=(0,c0.useRef)(null),M=(0,c0.useRef)(null),L=(0,c0.useRef)(null),I=(0,c0.useRef)(Qz),N=(0,c0.useRef)(QZ);return n[3]!==y||n[4]!==m||n[5]!==C||n[6]!==E||n[7]!==a||n[8]!==w||n[9]!==x||n[10]!==p||n[11]!==o||n[12]!==c||n[13]!==u?(r={inputText:a,setInputText:l,menuState:o,setMenuState:s,selectedField:c,setSelectedField:d,selectedOperator:u,setSelectedOperator:h,isFocused:p,setIsFocused:f,buildingMultiValue:m,setBuildingMultiValue:g,buildingSide:C,setBuildingSide:v,buildingBase:y,setBuildingBase:b,insertIndex:x,setInsertIndex:O,insertAfterConnector:w,setInsertAfterConnector:S,effectiveInsertIndex:E,effectiveInsertIndexRef:k,conditionsRef:P,conditionsLengthRef:D,blurCommitRef:A,segmentAttributeInputRef:T,segmentOperatorInputRef:M,segmentValueInputRef:L,commitBuildingOnBlurRef:I,commitBuildingForceRef:N},n[3]=y,n[4]=m,n[5]=C,n[6]=E,n[7]=a,n[8]=w,n[9]=x,n[10]=p,n[11]=o,n[12]=c,n[13]=u,n[14]=r):r=n[14],r})({conditions:t}),{menuPositioning:H,setMenuAnchor:z,resetMenuAnchor:Z}=(({containerRef:e,buildingChipRef:t,inputRef:r,isBuilding:n,insertIndex:i,chipsCount:a,isMenuOpen:l})=>{let o,s,c,[d,u]=(0,c0.useState)(null),h=(0,c0.useCallback)(()=>u(null),[]);(c=(0,ej.c)(4))[0]!==d||c[1]!==h?(o=()=>{if(!d)return;if(!d.isConnected)return void h();if("u"<typeof MutationObserver)return;let e=d.parentElement??d.ownerDocument?.documentElement;if(!e)return;let t=new MutationObserver(()=>{d.isConnected||h()});return t.observe(e,{childList:!0,subtree:!0}),()=>t.disconnect()},s=[d,h],c[0]=d,c[1]=h,c[2]=o,c[3]=s):(o=c[2],s=c[3]),(0,c0.useEffect)(o,s),Z6(a,l);let p=((e,t,r)=>{let n,i,a=(0,ej.c)(5),[l,o]=(0,c0.useReducer)(QW,0);return a[0]!==e||a[1]!==t||a[2]!==r?(n=()=>{let n=[e,t,r].filter(Qq);if(0===n.length)return;let i=new ResizeObserver(()=>o());for(let e of n)i.observe(e);return()=>i.disconnect()},i=[e,t,r],a[0]=e,a[1]=t,a[2]=r,a[3]=n,a[4]=i):(n=a[3],i=a[4]),(0,c0.useEffect)(n,i),l})(d,t.current,e.current),f=(0,c0.useRef)({editingEl:d,isBuilding:n,chipsCount:a});f.current={editingEl:d,isBuilding:n,chipsCount:a};let m=(0,c0.useCallback)(n=>{let{editingEl:i,isBuilding:a,chipsCount:l}=f.current,o=i?.isConnected?Z_(i.getBoundingClientRect()):a&&t.current?Z_(t.current.getBoundingClientRect()):l>0&&r?.current?Z_(r.current.getBoundingClientRect()):null;if(o)return{...o,bottom:o.bottom+10};let s=e.current?.querySelector(zW)??null;return Z_(s?.getBoundingClientRect()??n)},[e,t,r]);return{menuPositioning:ZY({containerRef:e,getAnchorBounds:m,gutter:4},[i,a,p]),setMenuAnchor:u,resetMenuAnchor:h}})({containerRef:s,buildingChipRef:c,inputRef:d,isBuilding:null!==m,insertIndex:M,chipsCount:r.length,isMenuOpen:"closed"!==p}),Q=(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(30),{conditions:u,chips:h,fields:p,setMenuAnchor:f,setSelectedField:m,setSelectedOperator:g,setMenuState:C,upsertCondition:v}=e,[y,b]=(0,c0.useState)(null),[x,O]=(0,c0.useState)(null),[w,S]=(0,c0.useState)(0),[E,k]=(0,c0.useState)(""),[P,D]=(0,c0.useState)(!1),A=(0,c0.useRef)(u),T=(0,c0.useRef)(h),M=(0,c0.useRef)(p);d[0]!==h||d[1]!==u||d[2]!==p?(t=()=>{A.current=u,T.current=h,M.current=p},d[0]=h,d[1]=u,d[2]=p,d[3]=t):t=d[3],(0,c0.useLayoutEffect)(t),d[4]!==f||d[5]!==C||d[6]!==m||d[7]!==g||d[8]!==v?(r=(e,t,r)=>{let n=QG(e,A.current);if(!n)return;let i=M.current.find(e=>e.name===n.field),a=T.current.find(t=>t.id===e);if(!a||"chip"!==a.variant)return;let l=n.error?M.current.find(e=>e.name===n.field)&&n.error!==zz?n.operator?null===n.value||""===n.value||n.error===zQ?zQ:null:zZ:zz:null,o=t===zQ&&null!=n.operator&&z5(n.operator),s=l??(o?zZ:t);if(!i&&s!==zz)return;l&&i&&v(i,n.operator,n.value,e),f(r),b(e),m(i??null);let c=s===zQ||s===zZ?z0(a.operator||"",i?.type??"string")??n.operator:null;s===zQ?g(c??null):g(null),O(s),k({attribute:a.attribute??"",operator:a.operator??"",value:a.value??""}[s]),D(!1),S(0),C(QB[s])},d[4]=f,d[5]=C,d[6]=m,d[7]=g,d[8]=v,d[9]=r):r=d[9];let L=r;d[10]!==f||d[11]!==C||d[12]!==m||d[13]!==g?(n=(e,t,r)=>{let n=QG(e,A.current),i=n&&M.current.find(e=>e.name===n.field),a=i?i.pairedField:void 0,l=T.current.find(t=>t.id===e);if(!n||!a||!l?.pair)return;let o=z0(l.pair.operator||"",a.type)??n.pair?.operator??null,s=t!==zQ||o?t:zZ;f(r),b(e),S(1),m(a),g(s===zQ?o:null),O(s),k(s===zZ?l.pair.operator??"":l.pair.value??""),D(!1),C(QB[s])},d[10]=f,d[11]=C,d[12]=m,d[13]=g,d[14]=n):n=d[14];let I=n;d[15]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{b(null),O(null),S(0),k(""),D(!1)},d[15]=i):i=d[15];let N=i;d[16]===Symbol.for("react.memo_cache_sentinel")?(a=(e,t)=>{b(null),O(e),S(0),k(t),D(!1)},d[16]=a):a=d[16];let F=a;d[17]===Symbol.for("react.memo_cache_sentinel")?(l=(e,t)=>{O(e),S(0),k(t),D(!1)},d[17]=l):l=d[17];let R=l;d[18]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{k(e),D(!0)},d[18]=o):o=d[18];let V=o;d[19]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{D(!1)},d[19]=s):s=d[19];let _=s,Y=P?E:"",$=null===y&&null!==x;return d[20]!==y||d[21]!==x||d[22]!==w||d[23]!==L||d[24]!==I||d[25]!==$||d[26]!==E||d[27]!==Y||d[28]!==P?(c={editingChipId:y,editingSegment:x,editingSide:w,isBuildingEdit:$,userHasTyped:P,setEditingSegment:O,segmentFilterText:E,segmentMenuFilterText:Y,setSegmentFilterText:V,resetSegmentTyping:_,handleChipClick:L,handlePairChipClick:I,startBuildingEdit:F,switchEditSegment:R,clearEditing:N},d[20]=y,d[21]=x,d[22]=w,d[23]=L,d[24]=I,d[25]=$,d[26]=E,d[27]=Y,d[28]=P,d[29]=c):c=d[29],c})({conditions:t,chips:r,fields:e,setMenuAnchor:z,setSelectedField:g,setSelectedOperator:v,setMenuState:f,upsertCondition:n}),B=(()=>{let[e,t]=(0,c0.useState)(null),r=(0,c0.useRef)(null);return r.current=e,{fromValue:e,currentIndex:+(null!==e),selectValue:(0,c0.useCallback)(e=>{if(null===r.current)return t(e),r.current=e,null;let n=[r.current,e];return t(null),r.current=null,n},[]),reset:(0,c0.useCallback)(()=>{t(null),r.current=null},[])}})(),j=(e=>{let t,r=(0,ej.c)(15),{editing:n,dateRange:i,containerRef:a,inputRef:l,resetMenuAnchor:o,setInputText:s,setSelectedField:c,setSelectedOperator:d,setBuildingMultiValue:u,setBuildingSide:h,setBuildingBase:p,setInsertIndex:f,setInsertAfterConnector:m,setMenuState:g}=e;return r[0]!==a||r[1]!==i||r[2]!==n||r[3]!==l||r[4]!==o||r[5]!==p||r[6]!==u||r[7]!==h||r[8]!==s||r[9]!==m||r[10]!==f||r[11]!==g||r[12]!==c||r[13]!==d?(t=e=>{let t=()=>{s(""),c(null),d(null),n.clearEditing(),i.reset(),u(void 0),h(0),p(null),f(null),m(!1),o(),g("closed")};void 0!==e&&e?(hf(t),g("field")):t();let r=document.activeElement;(r===document.body||a.current?.contains(r)||ZR(r))&&l.current?.focus()},r[0]=a,r[1]=i,r[2]=n,r[3]=l,r[4]=o,r[5]=p,r[6]=u,r[7]=h,r[8]=s,r[9]=m,r[10]=f,r[11]=g,r[12]=c,r[13]=d,r[14]=t):t=r[14],t})({editing:Q,dateRange:B,containerRef:s,inputRef:d,resetMenuAnchor:Z,setInputText:h,setSelectedField:g,setSelectedOperator:v,setBuildingMultiValue:O,setBuildingSide:S,setBuildingBase:k,setInsertIndex:D,setInsertAfterConnector:T,setMenuState:f}),{handleMenuClose:G,handleFieldSelect:U,handleOperatorSelect:W,handleValueSelect:q,handleMultiCommit:X,handleBuildingValueChange:K,handleMultiSelectToggle:J,handleRangeSelect:ee,handleCustomValueCommit:et,handleCustomAttributeCommit:er,handleCustomOperatorCommit:en}=(e=>{let t,r,n,i,a=(0,ej.c)(23),{editing:l,selectedField:o,inputRef:s,conditions:c,resetState:d,commitBuildingOnBlur:u,setMenuState:h}=e,p=(0,c0.useRef)(c);a[0]!==c?(t=()=>{p.current=c},a[0]=c,a[1]=t):t=a[1],(0,c0.useLayoutEffect)(t),a[2]!==e?(r={...e,conditionsRef:p},a[2]=e,a[3]=r):r=a[3];let f=r,{handleFieldSelect:m,handleCustomAttributeCommit:g}=(e=>{let t,r,n,i=(0,ej.c)(28),{editing:a,selectedOperator:l,fields:o,upsertCondition:s,conditionsRef:c,resetState:d,setSelectedField:u,setSelectedOperator:h,setInputText:p,setMenuState:f}=e,{editingChipId:m,editingSegment:g,isBuildingEdit:C,switchEditSegment:v,clearEditing:y}=a;i[0]!==y||i[1]!==c||i[2]!==m||i[3]!==g||i[4]!==C||i[5]!==d||i[6]!==l||i[7]!==p||i[8]!==f||i[9]!==u||i[10]!==h||i[11]!==v||i[12]!==s?(t=e=>{if(m&&g===zz){let t=z8(m),r=null!==t?c.current[t]:null;if(r){if(!r.operator){s(e,void 0,r.value,m,void 0,void 0,r.dateOrigin),u(e),h(null),v(zZ,""),f("operator");return}let t=Zf(e,r.value);s(e,r.operator,r.value,m,void 0,t?zQ:void 0,r.dateOrigin)}d();return}if(C&&g===zz){u(e);let t=!!l&&z7(e,l);t||h(null),y(),f(t?"value":"operator");return}u(e),p(""),f("operator")},i[0]=y,i[1]=c,i[2]=m,i[3]=g,i[4]=C,i[5]=d,i[6]=l,i[7]=p,i[8]=f,i[9]=u,i[10]=h,i[11]=v,i[12]=s,i[13]=t):t=i[13];let b=t;i[14]!==c||i[15]!==m||i[16]!==o||i[17]!==b||i[18]!==d||i[19]!==f||i[20]!==u||i[21]!==h||i[22]!==v||i[23]!==s?(r=e=>{if(!e.trim())return;let t=e.trim(),r=o.find(e=>e.label.toLowerCase()===t.toLowerCase()||e.name.toLowerCase()===t.toLowerCase());if(!m){r&&b(r);return}let n=z8(m),i=null!==n?c.current[n]:null;if(!i)return;if(r)return void b(r);let a={name:t,label:t,type:"string"};if(!i.operator){s(a,void 0,i.value,m,void 0,zz,i.dateOrigin),u(a),h(null),v(zZ,""),f("operator");return}s(a,i.operator,i.value,m,void 0,zz,i.dateOrigin),d()},i[14]=c,i[15]=m,i[16]=o,i[17]=b,i[18]=d,i[19]=f,i[20]=u,i[21]=h,i[22]=v,i[23]=s,i[24]=r):r=i[24];let x=r;return i[25]!==x||i[26]!==b?(n={handleFieldSelect:b,handleCustomAttributeCommit:x},i[25]=x,i[26]=b,i[27]=n):n=i[27],n})(f),{handleOperatorSelect:C,handleCustomOperatorCommit:v}=(e=>{let t,r,n,i=(0,ej.c)(28),{editing:a,selectedField:l,selectedOperator:o,insertIndex:s,upsertCondition:c,conditionsRef:d,resetState:u,setSelectedOperator:h,setMenuState:p,setBuildingMultiValue:f,setInputText:m,buildingSide:g,buildingBase:C,setBuildingBase:v,setBuildingSide:y}=e,{editingChipId:b,editingSegment:x,editingSide:O,isBuildingEdit:w,setEditingSegment:S,setSegmentFilterText:E,clearEditing:k}=a;i[0]!==C||i[1]!==g||i[2]!==k||i[3]!==d||i[4]!==b||i[5]!==x||i[6]!==O||i[7]!==s||i[8]!==w||i[9]!==u||i[10]!==l||i[11]!==o||i[12]!==v||i[13]!==f||i[14]!==y||i[15]!==S||i[16]!==m||i[17]!==p||i[18]!==E||i[19]!==h||i[20]!==c?(t=e=>{if(l){if(w&&x===zZ){var t,r;if((t=o)===(r=e)||null!=t&&null!=r&&z3(t)===z3(r)&&"between"===t==("between"===r)&&z5(t)===z5(r)||f(void 0),h(e),k(),z5(e)){c(l,e,null,null,s),u(!0);return}p("value");return}if(z5(e)){if(1===g&&C&&!b){c(C.field,C.operator,C.value,null,s),c(l,e,null,null,void 0,void 0,void 0,1),v(null),y(0),u(!0);return}let t=!!b;c(l,e,null,b,t?void 0:s,void 0,void 0,O),u(!t);return}if(b&&x===zZ){let t=z8(b),r=null!==t?d.current[t]:null;if(r){let t=1===O?r.pair?.value:r.value,n=1===O?r.pair?.dateOrigin:r.dateOrigin;if(null!==t&&""!==t&&void 0!==t){c(l,e,t,b,void 0,void 0,n,O),u();return}c(l,e,1===O?"":null,b,void 0,void 0,void 0,O),S(zQ),E("")}}if(!b){hf(()=>{h(e),m("")}),p("value");return}h(e),m(""),p("value")}},i[0]=C,i[1]=g,i[2]=k,i[3]=d,i[4]=b,i[5]=x,i[6]=O,i[7]=s,i[8]=w,i[9]=u,i[10]=l,i[11]=o,i[12]=v,i[13]=f,i[14]=y,i[15]=S,i[16]=m,i[17]=p,i[18]=E,i[19]=h,i[20]=c,i[21]=t):t=i[21];let P=t;i[22]!==P||i[23]!==l?(r=e=>{if(!l||!e.trim())return;let t=e.trim(),r=z4(l),n=z0(t,l.type);if(!n){let e=r.find(e=>zX[e].toLowerCase()===t.toLowerCase());e&&(n=e)}if(!n){let e=r.find(e=>e.toLowerCase()===t.toLowerCase());e&&(n=e)}n&&z7(l,n)&&P(n)},i[22]=P,i[23]=l,i[24]=r):r=i[24];let D=r;return i[25]!==D||i[26]!==P?(n={handleOperatorSelect:P,handleCustomOperatorCommit:D},i[25]=D,i[26]=P,i[27]=n):n=i[27],n})(f),{handleValueSelect:y,handleMultiCommit:b,handleBuildingValueChange:x,handleMultiSelectToggle:O,handleRangeSelect:w,handleCustomValueCommit:S}=(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(70),{editing:u,selectedField:h,selectedOperator:p,insertIndex:f,upsertCondition:m,conditionsRef:g,resetState:C,dateRange:v,buildingSide:y,setBuildingSide:b,buildingBase:x,setBuildingBase:O,setSelectedField:w,setSelectedOperator:S,setMenuState:E,setBuildingMultiValue:k,setInputText:P}=e,{editingChipId:D,editingSegment:A,editingSide:T,resetSegmentTyping:M}=u;d[0]!==y||d[1]!==D||d[2]!==h||d[3]!==p||d[4]!==O||d[5]!==b||d[6]!==P||d[7]!==E||d[8]!==w||d[9]!==S?(t=e=>{let t=h?.pairedField;return 0===y&&!!t&&!D&&!!h&&!!p&&(O({field:h,operator:p,value:e}),w(t),S(null),b(1),P(""),E("operator"),!0)},d[0]=y,d[1]=D,d[2]=h,d[3]=p,d[4]=O,d[5]=b,d[6]=P,d[7]=E,d[8]=w,d[9]=S,d[10]=t):t=d[10];let L=t;d[11]!==x||d[12]!==y||d[13]!==f||d[14]!==C||d[15]!==h||d[16]!==p||d[17]!==O||d[18]!==b||d[19]!==m?(r=(e,t,r)=>1===y&&!!x&&!!h&&!!p&&(m(x.field,x.operator,x.value,null,f),m(h,p,e,null,void 0,t,r,1),O(null),b(0),C(!0),!0),d[11]=x,d[12]=y,d[13]=f,d[14]=C,d[15]=h,d[16]=p,d[17]=O,d[18]=b,d[19]=m,d[20]=r):r=d[20];let I=r;d[21]!==I||d[22]!==v||d[23]!==D||d[24]!==T||d[25]!==f||d[26]!==C||d[27]!==h||d[28]!==p||d[29]!==L||d[30]!==m?(n=e=>{if(!h||!p)return;let t=e;if("between"===p&&"date"===h.type){let r=v.selectValue(String(e));if(!r)return;t=r}if(L(t)||I(t))return;let r=!!D;m(h,p,t,D,r?void 0:f,void 0,void 0,T),C(!r)},d[21]=I,d[22]=v,d[23]=D,d[24]=T,d[25]=f,d[26]=C,d[27]=h,d[28]=p,d[29]=L,d[30]=m,d[31]=n):n=d[31];let N=n;d[32]!==D||d[33]!==f||d[34]!==C||d[35]!==h||d[36]!==p||d[37]!==m?(i=e=>{if(!h||!p||0===e.length)return;let t=!!D;m(h,p,e,D,t?void 0:f),C(!t)},d[32]=D,d[33]=f,d[34]=C,d[35]=h,d[36]=p,d[37]=m,d[38]=i):i=d[38];let F=i;d[39]!==k?(a=e=>{k(e)},d[39]=k,d[40]=a):a=d[40];let R=a;d[41]!==A||d[42]!==M||d[43]!==P?(l=()=>{A===zQ?M():P("")},d[41]=A,d[42]=M,d[43]=P,d[44]=l):l=d[44];let V=l;d[45]!==D||d[46]!==f||d[47]!==C||d[48]!==h||d[49]!==p||d[50]!==m?(o=(e,t)=>{if(!h||!p)return;let r=!!D;m(h,p,[e,t],D,r?void 0:f),C(!r)},d[45]=D,d[46]=f,d[47]=C,d[48]=h,d[49]=p,d[50]=m,d[51]=o):o=d[51];let _=o;d[52]!==I||d[53]!==g||d[54]!==D||d[55]!==T||d[56]!==f||d[57]!==C||d[58]!==h||d[59]!==p||d[60]!==L||d[61]!==m?(s=e=>{let t,r,n;if(!h||!p||!e.trim())return;let i=e.trim(),a=!!D;if(z3(p)){let{resolved:e,error:n}=Q$(h,i);t=e,r=n?zQ:void 0}else if("date"===h.type)if("between"===p){let e=(e=>{let t=e.split(" – ");if(2!==t.length)return null;let r=QH(t[0].trim()),n=QH(t[1].trim());return r&&n?[r,n]:null})(i);t=e??i,r=e?void 0:zQ,n="absolute"}else{let e=((e,t,r)=>{let n,i;if(t){let e=z8(t),n=null!==e?r[e]:null;if(n){let e=String(n.value??"");i=n.dateOrigin??(/^\d+[mhd]$/.test(e)?"relative":"absolute")}}let a=/^\d+[mhd]$/.test(e),l=!a&&e.length>=6&&!Number.isNaN(new Date(e).getTime());return a||l||(n=!0),{error:n,dateOrigin:i}})(i,D,g.current);t=i,r=e.error?zQ:void 0,n=e.dateOrigin}else{let e,n,a,l,{resolved:o,error:s}=(n=Zu(e=Zn(Zl(h)),i),a=n?.value??i,l=h.normalize?h.normalize(a):a,h.validate?{resolved:l,error:!!h.validate(l)||void 0}:{resolved:l,error:!!Zo(h)&&e.length>0&&!n||void 0});t=o,r=s?zQ:void 0}L(t)||I(t,r,n)||(m(h,p,t,D,a?void 0:f,r,n,T),C(!a))},d[52]=I,d[53]=g,d[54]=D,d[55]=T,d[56]=f,d[57]=C,d[58]=h,d[59]=p,d[60]=L,d[61]=m,d[62]=s):s=d[62];let Y=s;return d[63]!==R||d[64]!==Y||d[65]!==F||d[66]!==V||d[67]!==_||d[68]!==N?(c={handleValueSelect:N,handleMultiCommit:F,handleBuildingValueChange:R,handleMultiSelectToggle:V,handleRangeSelect:_,handleCustomValueCommit:Y},d[63]=R,d[64]=Y,d[65]=F,d[66]=V,d[67]=_,d[68]=N,d[69]=c):c=d[69],c})(f);a[4]!==u||a[5]!==l.editingChipId||a[6]!==s||a[7]!==d||a[8]!==o||a[9]!==h?(n=()=>{document.activeElement===s.current||document.activeElement?.closest?.('[data-slot^="segment-"]')||u()||(null===o||l.editingChipId?d():h("closed"))},a[4]=u,a[5]=l.editingChipId,a[6]=s,a[7]=d,a[8]=o,a[9]=h,a[10]=n):n=a[10];let E=n;return a[11]!==x||a[12]!==g||a[13]!==v||a[14]!==S||a[15]!==m||a[16]!==E||a[17]!==b||a[18]!==O||a[19]!==C||a[20]!==w||a[21]!==y?(i={handleMenuClose:E,handleFieldSelect:m,handleOperatorSelect:C,handleValueSelect:y,handleMultiCommit:b,handleBuildingValueChange:x,handleMultiSelectToggle:O,handleRangeSelect:w,handleCustomValueCommit:S,handleCustomOperatorCommit:v,handleCustomAttributeCommit:g},a[11]=x,a[12]=g,a[13]=v,a[14]=S,a[15]=m,a[16]=E,a[17]=b,a[18]=O,a[19]=C,a[20]=w,a[21]=y,a[22]=i):i=a[22],i})({editing:Q,selectedField:m,selectedOperator:C,fields:e,inputRef:d,insertIndex:M,upsertCondition:n,conditions:t,resetState:j,commitBuildingOnBlur:()=>Y.current(),dateRange:B,setSelectedField:g,setSelectedOperator:v,setInputText:h,setMenuState:f,setBuildingMultiValue:O,buildingSide:w,setBuildingSide:S,buildingBase:E,setBuildingBase:k}),{switchEditSegment:ei,removeEditingChip:ea,stepBackBuildingMenu:el}=(e=>{let t,r,n,i,a=(0,ej.c)(36),{editing:l,chips:o,fields:s,conditionsRef:c,selectedField:d,selectedOperator:u,buildingMultiValue:h,upsertCondition:p,removeCondition:f,resetState:m,setInputText:g,setMenuState:C,setSelectedOperator:v,setBuildingMultiValue:y}=e,{editingChipId:b,editingSegment:x,isBuildingEdit:O,startBuildingEdit:w,switchEditSegment:S}=l;a[0]!==h||a[1]!==o||a[2]!==c||a[3]!==b||a[4]!==x||a[5]!==S||a[6]!==s||a[7]!==O||a[8]!==d||a[9]!==u||a[10]!==y||a[11]!==g||a[12]!==C||a[13]!==v||a[14]!==w||a[15]!==p?(t=e=>{if(null===x)return!1;if(O){if(!d)return!1;x===zQ?y(void 0):x===zZ&&v(null);let t=Qj(e,d,u,h);return w(e,t),g(""),C(QB[e]),!0}if(!b)return!1;let t=o.find(e=>e.id===b);if(!t||"chip"!==t.variant)return!1;let r=z8(b),n=null!==r?c.current[r]:null,i=n?s.find(e=>e.name===n.field):null;n&&i&&(x===zQ?p(i,n.operator,null,b,void 0,void 0,n.dateOrigin):x===zZ&&p(i,void 0,n.value,b,void 0,void 0,n.dateOrigin));let a=e===zz?t.attribute??"":e===zZ?t.operator??"":"";return S(e,a),C(QB[e]),!0},a[0]=h,a[1]=o,a[2]=c,a[3]=b,a[4]=x,a[5]=S,a[6]=s,a[7]=O,a[8]=d,a[9]=u,a[10]=y,a[11]=g,a[12]=C,a[13]=v,a[14]=w,a[15]=p,a[16]=t):t=a[16];let E=t;a[17]!==b||a[18]!==x||a[19]!==f||a[20]!==m?(r=()=>{if(null!==x){if(!b)return void m();f(b),m()}},a[17]=b,a[18]=x,a[19]=f,a[20]=m,a[21]=r):r=a[21];let k=r;a[22]!==h||a[23]!==m||a[24]!==d||a[25]!==u||a[26]!==y||a[27]!==g||a[28]!==C||a[29]!==v||a[30]!==w?(n=e=>{if(!d)return void m();if("value"===e){y(void 0),g("");let e=Qj(zZ,d,u,h);w(zZ,e),C("operator");return}if("operator"===e){v(null),g(""),w(zz,d.label),C("field");return}m()},a[22]=h,a[23]=m,a[24]=d,a[25]=u,a[26]=y,a[27]=g,a[28]=C,a[29]=v,a[30]=w,a[31]=n):n=a[31];let P=n;return a[32]!==k||a[33]!==P||a[34]!==E?(i={switchEditSegment:E,removeEditingChip:k,stepBackBuildingMenu:P},a[32]=k,a[33]=P,a[34]=E,a[35]=i):i=a[35],i})({editing:Q,chips:r,fields:e,conditionsRef:I,selectedField:m,selectedOperator:C,buildingMultiValue:x,upsertCondition:n,removeCondition:i,resetState:j,setInputText:h,setMenuState:f,setSelectedOperator:v,setBuildingMultiValue:O}),{handleInputChange:eo,handleInputClick:es,handleAreaClick:ec,handleKeyDown:ed,menuRef:eu}=(e=>{let t,r,n,i,a,l=(0,ej.c)(41),{inputText:o,menuState:s,selectedField:c,selectedOperator:d,isFocused:u,fields:h,inputRef:p,blurCommitRef:f,commitBuildingForceRef:m,conditionsRef:g,conditionsLengthRef:C,effectiveInsertIndexRef:v,setInputText:y,setMenuState:b,setInsertIndex:x,resetMenuAnchor:O,removeConditionAtIndex:w,handleFieldSelect:S,handleOperatorSelect:E,handleCustomValueCommit:k,stepBackBuildingMenu:P}=e,D=(0,c0.useRef)(null);l[0]!==C||l[1]!==u||l[2]!==s||l[3]!==c||l[4]!==y||l[5]!==b?(t=e=>{let t=e.target.value;"value"===s&&c?.acceptChar&&(t=QU(t,c.acceptChar))!==e.target.value&&(e.target.value=t),y(t),t&&!c?b("field"):t||c||b(u&&0===C.current?"field":"closed")},l[0]=C,l[1]=u,l[2]=s,l[3]=c,l[4]=y,l[5]=b,l[6]=t):t=l[6];let A=t;l[7]!==p||l[8]!==s||l[9]!==O||l[10]!==c||l[11]!==d||l[12]!==b?(r=()=>{p.current?.focus(),"closed"===s&&(O(),b(z9(c,d)))},l[7]=p,l[8]=s,l[9]=O,l[10]=c,l[11]=d,l[12]=b,l[13]=r):r=l[13];let T=r;l[14]!==f||l[15]!==m||l[16]!==T?(n=()=>{f.current?.()||m.current()||T()},l[14]=f,l[15]=m,l[16]=T,l[17]=n):n=l[17];let M=n;l[18]!==C||l[19]!==g||l[20]!==v||l[21]!==h||l[22]!==k||l[23]!==S||l[24]!==E||l[25]!==o||l[26]!==s||l[27]!==w||l[28]!==O||l[29]!==c||l[30]!==d||l[31]!==y||l[32]!==x||l[33]!==b||l[34]!==P?(i=e=>{if("ArrowDown"===e.key){if("closed"===s){e.preventDefault(),O(),b(z9(c,d));return}e.preventDefault(),D.current?.focus();return}if("Enter"===e.key&&"field"===s&&!c&&o.trim()){let t=o.trim().toLowerCase(),r=h.find(e=>e.label.toLowerCase()===t||e.name.toLowerCase()===t);if(r){e.preventDefault(),S(r),y("");return}}if("Enter"===e.key&&"operator"===s&&c&&o.trim()){let t=o.trim(),r=z0(t,c.type);if(!r){let e=Object.entries(zX).find(e=>{let[,r]=e;return r.toLowerCase()===t.toLowerCase()});e&&(r=e[0])}if(!r){let e=(c.operators??[]).find(e=>e.toLowerCase()===t.toLowerCase());e&&(r=e)}if(r){e.preventDefault(),E(r),y("");return}}if("Enter"===e.key&&"value"===s&&c&&!Zo(c)&&o.trim()){e.preventDefault(),k(o);return}if("Backspace"===e.key&&!e.repeat&&""===o){if(c&&("value"===s||"operator"===s||"field"===s)){e.preventDefault(),P(s);return}if(C.current>0){e.preventDefault();let t=v.current-1;t>=0&&!g.current[t]?.disabled&&(w(t),x(e=>{let t=e??C.current;return t>0?t-1:0})),O(),b("field")}}},l[18]=C,l[19]=g,l[20]=v,l[21]=h,l[22]=k,l[23]=S,l[24]=E,l[25]=o,l[26]=s,l[27]=w,l[28]=O,l[29]=c,l[30]=d,l[31]=y,l[32]=x,l[33]=b,l[34]=P,l[35]=i):i=l[35];let L=i;return l[36]!==M||l[37]!==A||l[38]!==T||l[39]!==L?(a={handleInputChange:A,handleInputClick:T,handleAreaClick:M,handleKeyDown:L,menuRef:D},l[36]=M,l[37]=A,l[38]=T,l[39]=L,l[40]=a):a=l[40],a})({inputText:u,menuState:p,selectedField:m,selectedOperator:C,isFocused:y,fields:e,inputRef:d,blurCommitRef:F,commitBuildingForceRef:$,conditionsRef:I,conditionsLengthRef:N,effectiveInsertIndexRef:L,setInputText:h,setMenuState:f,setInsertIndex:D,resetMenuAnchor:Z,removeConditionAtIndex:a,handleFieldSelect:U,handleOperatorSelect:W,handleCustomValueCommit:et,stepBackBuildingMenu:el}),{commitBuildingOnBlur:eh,hasIncompleteBuilding:ep}=(({selectedField:e,selectedOperator:t,inputText:r,editingChipId:n,effectiveInsertIndexRef:i,handleCustomValueCommit:a,upsertCondition:l,resetState:o,buildingSide:s,setBuildingSide:c,buildingBase:d,setBuildingBase:u,commitBuildingOnBlurRef:h,commitBuildingForceRef:p})=>{let f=(0,c0.useRef)(e),m=(0,c0.useRef)(t),g=(0,c0.useRef)(r),C=(0,c0.useRef)(s),v=(0,c0.useRef)(d);(0,c0.useLayoutEffect)(()=>{f.current=e,m.current=t,g.current=r,C.current=s,v.current=d});let y=(0,c0.useRef)(!1),b=(0,c0.useCallback)((e,t,r)=>{l(e.field,e.operator,e.value,null,i.current),l(t,r??void 0,null,void 0,void 0,!r||zQ,void 0,1),u(null),c(0),o()},[l,o,i,u,c]),x=(0,c0.useCallback)(()=>{if(y.current)return!1;let e=f.current,t=m.current,r=g.current.trim();if(!e||n)return!1;let s=!!t&&!z5(t)&&r.length>0;if(!s&&1===C.current&&v.current){y.current=!0;try{let r=v.current;return f.current=null,m.current=null,g.current="",b(r,e,t),!0}finally{y.current=!1}}if(!z6(e,t,null)&&!s)return!1;y.current=!0;try{if(f.current=null,m.current=null,g.current="",s)return a(r),!0;return l(e,t,null,void 0,i.current),o(),!0}finally{y.current=!1}},[n,a,l,o,i,b]);(0,c0.useLayoutEffect)(()=>{h.current=x},[x,h]);let O=(0,c0.useCallback)(()=>null!==f.current&&!n,[n]),w=(0,c0.useCallback)(()=>{if(y.current)return!1;let e=f.current,t=m.current,r=g.current.trim();if(!e||n)return!1;y.current=!0;try{if(f.current=null,m.current=null,g.current="",t&&!z5(t)&&r.length>0)return a(r),!0;if(1===C.current&&v.current)return b(v.current,e,t),!0;if(z6(e,t,null))return l(e,t,null,void 0,i.current),o(),!0;let n=!t||zQ;return l(e,t??void 0,null,void 0,i.current,n),o(),!0}finally{y.current=!1}},[n,a,l,o,i,b]);return(0,c0.useLayoutEffect)(()=>{p.current=w},[w,p]),{commitBuildingOnBlur:x,hasIncompleteBuilding:O}})({selectedField:m,selectedOperator:C,inputText:u,editingChipId:Q.editingChipId,effectiveInsertIndexRef:L,handleCustomValueCommit:et,upsertCondition:n,resetState:j,buildingSide:w,setBuildingSide:S,buildingBase:E,setBuildingBase:k,commitBuildingOnBlurRef:Y,commitBuildingForceRef:$}),{handleFocus:ef,handleBlur:em}=(({menuState:e,isFocused:t,conditionsLength:r,inputText:n,selectedField:i,selectedOperator:a,containerRef:l,inputRef:o,editingSegment:s,segmentAttributeInputRef:c,segmentOperatorInputRef:d,segmentValueInputRef:u,blurCommitRef:h,commitBuildingOnBlur:p,hasIncompleteBuilding:f,setIsFocused:m,setMenuState:g,resetMenuAnchor:C,resetState:v})=>{let y=(0,c0.useCallback)(e=>{e.target?.closest?.('[data-slot="filter-input-connector-chip"]')||m(!0)},[m]),b=(0,c0.useRef)(!1),x=(0,c0.useCallback)(e=>{if(b.current)return;let t=e.relatedTarget;if(!ZR(t)&&(null==t||t!==c.current&&t!==d.current&&t!==u.current)){b.current=!0;try{let e=!!l.current?.contains(t);if((null!=s||!e)&&h.current?.()){m(!1),t?.focus(),e||(g("closed"),document.activeElement===o.current&&o.current?.blur());return}if(e)return;m(!1),p()||(f()?g("closed"):v()),t?.focus(),document.activeElement===o.current&&o.current?.blur()}finally{b.current=!1}}},[l,h,p,f,v,m,g,o,s,c,d,u]),O=(0,c0.useRef)(!1);(0,c0.useEffect)(()=>{if(!t||O.current||s){O.current=t;return}i?(C(),g(z9(i,a))):0===r&&""===n&&(C(),g("field")),O.current=t},[t,r,n,i,a,s,C,g]);let w=(0,c0.useMemo)(()=>({[zz]:c,[zZ]:d,[zQ]:u}),[c,d,u]);return(0,c0.useEffect)(()=>{if("closed"===e||!t)return;let r=0,n=0;return r=requestAnimationFrame(()=>{n=requestAnimationFrame(()=>{let e=l.current;if(!e)return;let t=document.activeElement;if(t&&!e.contains(t)&&!ZR(t))return;let r=s?w[s]?.current??null:o.current;!r||document.activeElement!==r&&(r.focus(),s&&ZT(r))})}),()=>{cancelAnimationFrame(r),cancelAnimationFrame(n)}},[e,t,o,s,l,w]),(0,c0.useEffect)(()=>{if("closed"===e||!t)return;let r=e=>{let t=e.target;if(!t)return;let r=t.closest("[data-filter-input-menu]");if(!r||r.querySelector('[data-scope="date-picker"]'))return;let n=t.tagName;if("BUTTON"===n||"INPUT"===n||"TEXTAREA"===n||"SELECT"===n)return;let i=s?w[s]?.current:o.current;i&&document.activeElement!==i&&i.focus({preventScroll:!0})};return document.addEventListener("focusin",r),()=>document.removeEventListener("focusin",r)},[e,t,s,o,w]),{handleFocus:y,handleBlur:x}})({menuState:p,isFocused:y,conditionsLength:t.length,inputText:u,selectedField:m,selectedOperator:C,containerRef:s,inputRef:d,editingSegment:Q.editingSegment,segmentAttributeInputRef:R,segmentOperatorInputRef:V,segmentValueInputRef:_,blurCommitRef:F,commitBuildingOnBlur:eh,hasIncompleteBuilding:ep,setIsFocused:b,setMenuState:f,resetMenuAnchor:Z,resetState:j}),{handleChipRemove:eg,handleClear:eC,handleGapClick:ev,closeAutocompleteMenu:ey}=(e=>{let t,r,n,i,a,l=(0,ej.c)(24),{effectiveInsertIndexRef:o,inputRef:s,removeCondition:c,clearAll:d,resetMenuAnchor:u,resetState:h,setInsertIndex:p,setInsertAfterConnector:f,setMenuState:m}=e;l[0]!==o||l[1]!==s||l[2]!==c||l[3]!==u||l[4]!==p||l[5]!==m?(t=e=>{let t=z8(e);null!==t&&t<o.current&&p(QQ),c(e),u(),m("closed"),s.current?.focus()},l[0]=o,l[1]=s,l[2]=c,l[3]=u,l[4]=p,l[5]=m,l[6]=t):t=l[6];let g=t;l[7]!==d||l[8]!==h?(r=()=>{d(),h()},l[7]=d,l[8]=h,l[9]=r):r=l[9];let C=r;l[10]!==s||l[11]!==u||l[12]!==h||l[13]!==f||l[14]!==p||l[15]!==m?(n=(e,t)=>{h(),hf(()=>{p(e),f(t),u(),m("closed")}),m("field"),s.current?.focus()},l[10]=s,l[11]=u,l[12]=h,l[13]=f,l[14]=p,l[15]=m,l[16]=n):n=l[16];let v=n;l[17]!==m?(i=()=>{m("closed")},l[17]=m,l[18]=i):i=l[18];let y=i;return l[19]!==y||l[20]!==g||l[21]!==C||l[22]!==v?(a={handleChipRemove:g,handleClear:C,handleGapClick:v,closeAutocompleteMenu:y},l[19]=y,l[20]=g,l[21]=C,l[22]=v,l[23]=a):a=l[23],a})({effectiveInsertIndexRef:L,inputRef:d,removeCondition:i,clearAll:l,resetMenuAnchor:Z,resetState:j,setInsertIndex:D,setInsertAfterConnector:T,setMenuState:f}),{handleSegmentFilterChange:eb,cancelSegmentEdit:ex,handleMenuDiscard:eO,handleBuildingChipClick:ew}=(e=>{let t,r,n,i,a,l=(0,ej.c)(28),{editing:o,selectedField:s,selectedOperator:c,buildingMultiValue:d,resetState:u,setSelectedField:h,setSelectedOperator:p,setInputText:f,setMenuState:m,setMenuAnchor:g}=e,{editingSegment:C,isBuildingEdit:v,setSegmentFilterText:y,startBuildingEdit:b,clearEditing:x}=o;l[0]!==C||l[1]!==s?.acceptChar||l[2]!==y?(t=e=>{let t=s?.acceptChar;y(C===zQ&&t?QU(e,t):e)},l[0]=C,l[1]=s?.acceptChar,l[2]=y,l[3]=t):t=l[3];let O=t;l[4]!==x||l[5]!==v||l[6]!==m||l[7]!==h||l[8]!==p?(r=()=>{if(v){x(),m("closed");return}h(null),p(null),x(),m("closed")},l[4]=x,l[5]=v,l[6]=m,l[7]=h,l[8]=p,l[9]=r):r=l[9];let w=r;l[10]!==x||l[11]!==v||l[12]!==u||l[13]!==m?(n=()=>{if(v){x(),m("closed");return}u()},l[10]=x,l[11]=v,l[12]=u,l[13]=m,l[14]=n):n=l[14];let S=n;l[15]!==d||l[16]!==s||l[17]!==c||l[18]!==f||l[19]!==g||l[20]!==m||l[21]!==b?(i=(e,t)=>{if(!s)return;g(t);let r=Qj(e,s,c,d);b(e,r),f(""),m(QB[e])},l[15]=d,l[16]=s,l[17]=c,l[18]=f,l[19]=g,l[20]=m,l[21]=b,l[22]=i):i=l[22];let E=i;return l[23]!==w||l[24]!==E||l[25]!==S||l[26]!==O?(a={handleSegmentFilterChange:O,cancelSegmentEdit:w,handleMenuDiscard:S,handleBuildingChipClick:E},l[23]=w,l[24]=E,l[25]=S,l[26]=O,l[27]=a):a=l[27],a})({editing:Q,selectedField:m,selectedOperator:C,buildingMultiValue:x,resetState:j,setSelectedField:g,setSelectedOperator:v,setInputText:h,setMenuState:f,setMenuAnchor:z}),eS=(e=>{let t,r=(0,ej.c)(15),{conditions:n,fields:i,removeConditionAtIndex:a,setInsertIndex:l,setBuildingBase:o,setBuildingSide:s,setSelectedField:c,setSelectedOperator:d,setBuildingMultiValue:u,setInputText:h,setMenuState:p,resetMenuAnchor:f,clearEditing:m,inputRef:g}=e;return r[0]!==m||r[1]!==n||r[2]!==i||r[3]!==g||r[4]!==a||r[5]!==f||r[6]!==o||r[7]!==u||r[8]!==s||r[9]!==h||r[10]!==l||r[11]!==p||r[12]!==c||r[13]!==d?(t=(e,t,r)=>{let C=z8(e);if(null===C)return!1;let v=n[C];if(!v||v.disabled)return!1;let y=i.find(e=>e.name===v.field);if(!y)return!1;let b=!v.operator,x=null!=v.operator&&!z5(v.operator)&&Ze(v.value),O=e=>{m(),a(C),l(C),o(e.base),s(e.side),c(e.selectedField),d(e.selectedOperator),u(void 0),h(""),f(),p(e.menuState),requestAnimationFrame(()=>g.current?.focus())};if(b)return!1;if(x)return(!!y.pairedField||t===zQ)&&(O({base:null,side:0,selectedField:y,selectedOperator:v.operator??null,menuState:"value"}),!0);if(1===(void 0===r?0:r)&&t===zQ&&y.pairedField&&!z5(v.operator)){let e=v.pair?.operator;if(null!=e&&!z5(e)&&Ze(v.pair?.value))return O({base:{field:y,operator:v.operator,value:v.value},side:1,selectedField:y.pairedField,selectedOperator:e,menuState:"value"}),!0}return!1},r[0]=m,r[1]=n,r[2]=i,r[3]=g,r[4]=a,r[5]=f,r[6]=o,r[7]=u,r[8]=s,r[9]=h,r[10]=l,r[11]=p,r[12]=c,r[13]=d,r[14]=t):t=r[14],t})({conditions:t,fields:e,removeConditionAtIndex:a,setInsertIndex:D,setBuildingBase:k,setBuildingSide:S,setSelectedField:g,setSelectedOperator:v,setBuildingMultiValue:O,setInputText:h,setMenuState:f,resetMenuAnchor:Z,clearEditing:Q.clearEditing,inputRef:d}),eE=(0,c0.useCallback)((e,t,r)=>{eS(e,t,0)||Q.handleChipClick(e,t,r)},[eS,Q.handleChipClick]),ek=(0,c0.useCallback)((e,t,r)=>{eS(e,t,1)||Q.handlePairChipClick(e,t,r)},[eS,Q.handlePairChipClick]),{isBuilding:eP,buildingChipData:eD,editingMultiValues:eA,editingSingleValue:eT,editingDateRange:eM}=(({editingChipId:e,selectedField:t,selectedOperator:r,conditions:n,buildingMultiValue:i,dateRangeFromValue:a,segmentFilterText:l,buildingSide:o,buildingBase:s,editingSide:c})=>{var d;let u,h,p=null!==t&&!e,f=((e,t)=>{if(!e)return null;let r=z8(e);return null!==r?t[r]??null:null})(e,n),m=f&&1===c&&f.pair?{...f,value:f.pair.value,dateOrigin:f.pair.dateOrigin}:f,g=(()=>{if(!m||!r||!z3(r))return[];if(void 0!==l&&t)return Q$(t,l.trim()).resolved;let e=Array.isArray(m.value)?m.value:null!=m.value?[m.value]:[];if(m.error&&t&&Zo(t)){let r=Zn(Zl(t));if(r.length>0)return e.filter(e=>r.some(t=>t.value===e))}return e})(),C=(()=>{if(!(!m||!r||z3(r))&&null!=m.value&&!Array.isArray(m.value))return m.value})(),v=(()=>{if(m&&"between"===r&&t?.type==="date"&&Array.isArray(m.value)&&!(m.value.length<2))return[String(m.value[0]),String(m.value[1])]})(),y=i||(a&&"between"===r?`${Zc(a)} – ...`:r&&z5(r)?"—":void 0),b=p?1===o&&s?{attribute:s.field.label,operator:s.operator?z2(s.operator,s.field.type):void 0,value:(d=s.value,u=Zn(Zl(s.field)),h=e=>u.find(t=>String(t.value)===String(e))?.label??String(e??""),Array.isArray(d)?d.map(h).join(", "):h(d)),pair:{attribute:t.label,operator:r?z2(r,t.type):void 0,value:y}}:{attribute:t.label,operator:r?z2(r,t.type):void 0,value:y}:null;return{isBuilding:p,buildingChipData:b,editingMultiValues:g,editingSingleValue:C,editingDateRange:v}})({editingChipId:Q.editingChipId,selectedField:m,selectedOperator:C,conditions:t,buildingMultiValue:x,dateRangeFromValue:B.fromValue,segmentFilterText:Q.editingSegment===zQ&&Q.userHasTyped?Q.segmentFilterText:void 0,buildingSide:w,buildingBase:E,editingSide:Q.editingSide}),eL=null!=Q.editingChipId&&Q.editingSegment===zQ&&null!=C&&z3(C)&&null!=x&&!Q.userHasTyped?x:Q.segmentFilterText;return{inputText:u,menuState:p,selectedField:m,selectedOperator:C,isBuilding:eP,buildingChipData:eD,menuPositioning:H,editingMultiValues:eA,editingSingleValue:eT,editingDateRange:eM,inputRef:d,handleInputChange:eo,handleFieldSelect:U,handleOperatorSelect:W,handleValueSelect:q,handleMultiCommit:X,handleBuildingValueChange:K,handleMultiSelectToggle:J,handleMenuClose:G,handleMenuDiscard:eO,resetAutocompleteState:j,handleChipClick:eE,handlePairChipClick:ek,handleBuildingChipClick:ew,switchEditSegment:ei,removeEditingChip:ea,handleConnectorChange:o,handleChipRemove:eg,handleClear:eC,handleKeyDown:ed,handleInputClick:es,handleAreaClick:ec,handleGapClick:ev,handleFocus:ef,handleBlur:em,handleRangeSelect:ee,insertIndex:M,insertAfterConnector:A,editingChipId:Q.editingChipId,editingSegment:Q.editingSegment,editingSide:Q.editingSide,segmentFilterText:eL,segmentMenuFilterText:Q.segmentMenuFilterText,handleSegmentFilterChange:eb,cancelSegmentEdit:ex,handleCustomValueCommit:et,handleCustomAttributeCommit:er,handleCustomOperatorCommit:en,menuRef:eu,closeAutocompleteMenu:ey,blurCommitRef:F,setInputText:h,segmentAttributeInputRef:R,segmentOperatorInputRef:V,segmentValueInputRef:_}})(v);V[34]!==en.closeAutocompleteMenu||V[35]!==en.resetAutocompleteState||V[36]!==en.setInputText||V[37]!==ee||V[38]!==U||V[39]!==W||V[40]!==G||V[41]!==et?(y={conditions:U,connectors:W,fields:G,containerRef:Z,chipRegistryRef:B,inputRef:z,clearAll:ee,setInputText:en.setInputText,closeMenu:en.closeAutocompleteMenu,replaceExpression:et,resetAutocompleteState:en.resetAutocompleteState},V[34]=en.closeAutocompleteMenu,V[35]=en.resetAutocompleteState,V[36]=en.setInputText,V[37]=ee,V[38]=U,V[39]=W,V[40]=G,V[41]=et,V[42]=y):y=V[42];let{allSelected:ei,pasteError:ea,clearSelection:el,dismissPasteError:eo,handleMouseDown:es,handleKeyDown:ec,handleCopy:ed,handlePaste:eu,retryParse:eh}=(({conditions:e,connectors:t,fields:r,containerRef:n,chipRegistryRef:i,inputRef:a,clearAll:l,setInputText:o,closeMenu:s,replaceExpression:c,resetAutocompleteState:d})=>{let[u,h]=(0,c0.useState)(!1),[p,f]=(0,c0.useState)(null),m=(0,c0.useCallback)(()=>h(!0),[]),g=(0,c0.useCallback)(()=>{h(!1),[...i.current.values()].forEach(e=>e.removeAttribute(QX))},[i]),C=(0,c0.useCallback)(()=>f(null),[]),v=(0,c0.useRef)(!1);v.current=u,(0,c0.useEffect)(()=>{let e=e=>{!n.current?.contains(e.target)&&(v.current||QK(i.current))&&g()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n,i,g]);let{handleMouseDown:y}=(({chipRegistryRef:e,inputRef:t,closeMenu:r})=>{let n=(0,c0.useRef)(!1),i=(0,c0.useRef)(0),a=(0,c0.useRef)(0),l=(0,c0.useRef)(null),o=(0,c0.useRef)([]);return{handleMouseDown:(0,c0.useCallback)(s=>{if(0!==s.button)return;let c=s.target;if(c.closest('input, [role="combobox"]'))return;i.current=s.clientX,a.current=s.clientY,n.current=!1,l.current=((e,t,r,n)=>{let i=[...e.entries()].find(([e,r])=>e.startsWith("chip-")&&r.contains(t));if(i)return i[0];let a=QJ(e).filter(e=>e.id.startsWith("chip-"));if(0===a.length)return null;let l=Q1(a,r,n);return l>=0?a[l].id:null})(e.current,c,s.clientX,s.clientY),o.current=QJ(e.current);let d=e=>{!(4>Math.hypot(e.clientX-i.current,e.clientY-a.current))&&(n.current||(n.current=!0,document.body.style.userSelect="none",r(),t.current?.blur()),l.current&&((e,t,r,n)=>{if(0===e.length)return;let i=e.filter(e=>e.id.startsWith("chip-"));if(0===i.length)return;let a=i.findIndex(e=>e.id===t);if(-1===a)return;let l=((e,t,r)=>{if(0===e.length)return -1;let n=e.findIndex(e=>t>=e.rect.left&&t<=e.rect.right&&r>=e.rect.top&&r<=e.rect.bottom);if(-1!==n)return n;let i=e[0].rect.height,a=e.reduce((e,n,a)=>{let l=(n.rect.top+n.rect.bottom)/2,o=(n.rect.left+n.rect.right)/2,s=l+i/2<r,c=!s&&Math.abs(l-r)<=i;return s||c&&o<=t?a:e},-1);return a>=0?a:Q1(e,t,r)})(i,r,n);if(-1===l)return;let o=Math.min(a,l),s=Math.max(a,l),c=i[o].allIdx,d=i[s].allIdx;return e.forEach((e,t)=>{t>=c&&t<=d?e.el.setAttribute(QX,""):e.el.removeAttribute(QX)})})(o.current,l.current,e.clientX,e.clientY))},u=()=>{document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",u),document.body.style.userSelect="",n.current=!1};document.addEventListener("mousemove",d),document.addEventListener("mouseup",u)},[e,t,r])}})({chipRegistryRef:i,inputRef:a,closeMenu:s}),{handleKeyDown:b}=(e=>{let t,r,n=(0,ej.c)(11),{allSelected:i,conditionsCount:a,chipRegistryRef:l,containerRef:o,inputRef:s,clearAll:c,clearSelection:d,onSelectAll:u}=e;n[0]!==i||n[1]!==l||n[2]!==c||n[3]!==d||n[4]!==a||n[5]!==o||n[6]!==s||n[7]!==u?(t=e=>{let t=e.metaKey||e.ctrlKey,r=i||QK(l.current);if(t&&"a"===e.key&&a>0){e.preventDefault(),d(),u(),o.current?.focus();return}if(r&&("Delete"===e.key||"Backspace"===e.key)){e.preventDefault(),c(),d();return}if(r&&"Escape"===e.key){e.preventDefault(),d(),s.current?.focus();return}r&&!t&&d()},n[0]=i,n[1]=l,n[2]=c,n[3]=d,n[4]=a,n[5]=o,n[6]=s,n[7]=u,n[8]=t):t=n[8];let h=t;return n[9]!==h?(r={handleKeyDown:h},n[9]=h,n[10]=r):r=n[10],r})({allSelected:u,conditionsCount:e.length,chipRegistryRef:i,containerRef:n,inputRef:a,clearAll:l,clearSelection:g,onSelectAll:m}),{handleCopy:x,handlePaste:O,retryParse:w}=(e=>{let t,r,n,i,a=(0,ej.c)(23),{conditions:l,connectors:o,fields:s,chipRegistryRef:c,clearSelection:d,setPasteError:u,setInputText:h,closeMenu:p,replaceExpression:f,resetAutocompleteState:m}=e;a[0]!==c||a[1]!==l||a[2]!==o?(t=e=>{var t,r;let n;if(0===l.length)return;e.preventDefault();let i=(t=l,r=o,(n=[...c.current.entries()].filter(([e,t])=>e.startsWith("chip-")&&t.hasAttribute(QX)).map(([e])=>Number(e.slice(5))).filter(e=>!Number.isNaN(e)).sort((e,t)=>e-t)).length>0?Bd(QF(n.flatMap(e=>t[e]?[t[e]]:[]),n.slice(1).map((e,t)=>r[n[t]]??"and"))):Bd(QF(t,r)));e.clipboardData.setData("text/plain",i)},a[0]=c,a[1]=l,a[2]=o,a[3]=t):t=a[3];let g=t;a[4]!==d||a[5]!==p||a[6]!==s||a[7]!==f||a[8]!==m||a[9]!==h||a[10]!==u?(r=e=>{let t=e.clipboardData.getData("text/plain").trim();if(t&&(t.includes("(")||t.includes("=")||t.includes(" in "))){e.preventDefault();try{let e=Ba(t,s);f(e),m(),d(),u(null)}catch(e){h(t),p(),u(Bu(e))}}},a[4]=d,a[5]=p,a[6]=s,a[7]=f,a[8]=m,a[9]=h,a[10]=u,a[11]=r):r=a[11];let C=r;a[12]!==p||a[13]!==s||a[14]!==f||a[15]!==m||a[16]!==h||a[17]!==u?(n=e=>{let t=e.trim();if(!t)return void u(null);if(t.includes("(")||t.includes("=")||t.includes(" in "))try{let e=Ba(t,s);f(e),m(),h(""),p(),u(null)}catch(e){u(Bu(e))}},a[12]=p,a[13]=s,a[14]=f,a[15]=m,a[16]=h,a[17]=u,a[18]=n):n=a[18];let v=n;return a[19]!==g||a[20]!==C||a[21]!==v?(i={handleCopy:g,handlePaste:C,retryParse:v},a[19]=g,a[20]=C,a[21]=v,a[22]=i):i=a[22],i})({conditions:e,connectors:t,fields:r,chipRegistryRef:i,clearSelection:g,setPasteError:f,setInputText:o,closeMenu:s,replaceExpression:c,resetAutocompleteState:d});return{allSelected:u,pasteError:p,clearSelection:g,dismissPasteError:C,handleMouseDown:y,handleKeyDown:b,handleCopy:x,handlePaste:O,retryParse:w}})(y);V[43]!==en||V[44]!==q||V[45]!==$||V[46]!==Y||V[47]!==H?(b={chips:q,autocomplete:en,buildingChipRef:Q,inputRef:z,placeholder:Y,error:$,showKeyboardHint:H,registerChipRef:j},V[43]=en,V[44]=q,V[45]=$,V[46]=Y,V[47]=H,V[48]=b):b=V[48];let ep=(e=>{let t,r=(0,ej.c)(40),{chips:n,autocomplete:i,buildingChipRef:a,inputRef:l,placeholder:o,error:s,showKeyboardHint:c,registerChipRef:d}=e,u="closed"!==i.menuState;return r[0]!==i.buildingChipData||r[1]!==i.cancelSegmentEdit||r[2]!==i.closeAutocompleteMenu||r[3]!==i.editingChipId||r[4]!==i.editingSegment||r[5]!==i.editingSide||r[6]!==i.handleAreaClick||r[7]!==i.handleBuildingChipClick||r[8]!==i.handleChipClick||r[9]!==i.handleChipRemove||r[10]!==i.handleClear||r[11]!==i.handleConnectorChange||r[12]!==i.handleCustomAttributeCommit||r[13]!==i.handleCustomOperatorCommit||r[14]!==i.handleCustomValueCommit||r[15]!==i.handleGapClick||r[16]!==i.handleInputChange||r[17]!==i.handleInputClick||r[18]!==i.handleKeyDown||r[19]!==i.handlePairChipClick||r[20]!==i.handleSegmentFilterChange||r[21]!==i.inputText||r[22]!==i.insertAfterConnector||r[23]!==i.insertIndex||r[24]!==i.menuRef||r[25]!==i.removeEditingChip||r[26]!==i.segmentAttributeInputRef||r[27]!==i.segmentFilterText||r[28]!==i.segmentOperatorInputRef||r[29]!==i.segmentValueInputRef||r[30]!==i.switchEditSegment||r[31]!==a||r[32]!==n||r[33]!==s||r[34]!==l||r[35]!==o||r[36]!==d||r[37]!==c||r[38]!==u?(t={chips:n,buildingChipData:i.buildingChipData,buildingChipRef:a,inputText:i.inputText,inputRef:l,placeholder:o,error:s,showKeyboardHint:c,menuOpen:u,insertIndex:i.insertIndex,insertAfterConnector:i.insertAfterConnector,onInputChange:i.handleInputChange,onGapClick:i.handleGapClick,onInputKeyDown:i.handleKeyDown,onInputClick:i.handleInputClick,onAreaClick:i.handleAreaClick,onChipClick:i.handleChipClick,onPairChipClick:i.handlePairChipClick,onBuildingChipClick:i.handleBuildingChipClick,onSwitchEditSegment:i.switchEditSegment,onRemoveEditingChip:i.removeEditingChip,onConnectorChange:i.handleConnectorChange,onChipRemove:i.handleChipRemove,onClear:i.handleClear,editingChipId:i.editingChipId,editingSegment:i.editingSegment,editingSide:i.editingSide,segmentFilterText:i.segmentFilterText,onSegmentFilterChange:i.handleSegmentFilterChange,onCancelSegmentEdit:i.cancelSegmentEdit,onCustomValueCommit:i.handleCustomValueCommit,onCustomAttributeCommit:i.handleCustomAttributeCommit,onCustomOperatorCommit:i.handleCustomOperatorCommit,menuRef:i.menuRef,closeAutocompleteMenu:i.closeAutocompleteMenu,registerChipRef:d,segmentAttributeInputRef:i.segmentAttributeInputRef,segmentOperatorInputRef:i.segmentOperatorInputRef,segmentValueInputRef:i.segmentValueInputRef},r[0]=i.buildingChipData,r[1]=i.cancelSegmentEdit,r[2]=i.closeAutocompleteMenu,r[3]=i.editingChipId,r[4]=i.editingSegment,r[5]=i.editingSide,r[6]=i.handleAreaClick,r[7]=i.handleBuildingChipClick,r[8]=i.handleChipClick,r[9]=i.handleChipRemove,r[10]=i.handleClear,r[11]=i.handleConnectorChange,r[12]=i.handleCustomAttributeCommit,r[13]=i.handleCustomOperatorCommit,r[14]=i.handleCustomValueCommit,r[15]=i.handleGapClick,r[16]=i.handleInputChange,r[17]=i.handleInputClick,r[18]=i.handleKeyDown,r[19]=i.handlePairChipClick,r[20]=i.handleSegmentFilterChange,r[21]=i.inputText,r[22]=i.insertAfterConnector,r[23]=i.insertIndex,r[24]=i.menuRef,r[25]=i.removeEditingChip,r[26]=i.segmentAttributeInputRef,r[27]=i.segmentFilterText,r[28]=i.segmentOperatorInputRef,r[29]=i.segmentValueInputRef,r[30]=i.switchEditSegment,r[31]=a,r[32]=n,r[33]=s,r[34]=l,r[35]=o,r[36]=d,r[37]=c,r[38]=u,r[39]=t):t=r[39],t})(b);V[49]!==eo||V[50]!==ea?(x=()=>{ea&&eo()},V[49]=eo,V[50]=ea,V[51]=x):x=V[51],V[52]!==U.length?(O=[U.length],V[52]=U.length,V[53]=O):O=V[53],(0,c0.useEffect)(x,O),V[54]!==en.inputText||V[55]!==ea||V[56]!==eh?(w=()=>{ea&&eh(en.inputText)},V[54]=en.inputText,V[55]=ea,V[56]=eh,V[57]=w):w=V[57],V[58]!==en.inputText?(S=[en.inputText],V[58]=en.inputText,V[59]=S):S=V[59],(0,c0.useEffect)(w,S),V[60]!==U||V[61]!==G?(E=((e,t)=>{let r=[];for(let n of e){let e=t.find(e=>e.name===n.field),i=null!=n.operator&&z5(n.operator);e?.pairedField&&!i&&Zm(n)&&r.push(`${e.pairedField.label} is required`);let a=e?.label||n.field;if(e&&!e.pairedField&&!n.error&&Zt(n.operator,n.value)){r.push(`${a} is incomplete`);continue}if(n.error)switch(n.error){case zz:r.push(`Unknown field ${n.field}`);break;case zQ:if(e?.validate){let t=(Array.isArray(n.value)?n.value:[n.value]).filter(t=>null!=t&&e.validate(t));if(t.length>0){let e=t.map(e=>String(e)).join(", ");r.push(`Invalid value for ${a}: ${e}`);break}}if(e&&Zo(e)&&Array.isArray(n.value)){let t=Zn(Zl(e));if(t.length>0){let e=n.value.filter(e=>!Zh(t,e));if(e.length>0){let t=e.map(e=>String(e)).join(", ");r.push(`Invalid value for ${a}: ${t}`);break}}}r.push(`Invalid value for ${a}`);break;default:r.push(`Invalid condition for ${a}`)}}return r})(U,G),V[60]=U,V[61]=G,V[62]=E):E=V[62];let ef=E;V[63]!==ef||V[64]!==ea?(k=ea?[ea,...ef]:ef,V[63]=ef,V[64]=ea,V[65]=k):k=V[65];let em=k;V[66]!==em||V[67]!==a?(P=()=>{a?.(em)},D=[em,a],V[66]=em,V[67]=a,V[68]=P,V[69]=D):(P=V[68],D=V[69]),(0,c0.useEffect)(P,D),V[70]!==t?(A=(0,m2.cn)("group/filter-input relative flex w-full flex-col gap-4",t),V[70]=t,V[71]=A):A=V[71];let eg=en.handleFocus,eC=ei?el:void 0;return V[72]!==ei?(T=ei&&{"data-selected-all":""},V[72]=ei,V[73]=T):T=V[73],V[74]!==l||V[75]!==u?(M=(0,eB.Y)(ZK,{...l,"data-testid":u}),V[74]=l,V[75]=u,V[76]=M):M=V[76],V[77]!==ep||V[78]!==M?(L=(0,eB.Y)(zH,{value:ep,children:M}),V[77]=ep,V[78]=M,V[79]=L):L=V[79],V[80]!==en||V[81]!==n||V[82]!==G?(I=(0,eB.Y)(Qk,{fields:G,fieldGroups:n,autocomplete:en}),V[80]=en,V[81]=n,V[82]=G,V[83]=I):I=V[83],V[84]!==L||V[85]!==I||V[86]!==u?(N=(0,eB.FD)(m3,{value:u,children:[L,I]}),V[84]=L,V[85]=I,V[86]=u,V[87]=N):N=V[87],V[88]!==em?(F=(0,eB.Y)(Zg,{errors:em}),V[88]=em,V[89]=F):F=V[89],V[90]!==en.handleBlur||V[91]!==ed||V[92]!==ec||V[93]!==es||V[94]!==eu||V[95]!==A||V[96]!==eg||V[97]!==eC||V[98]!==T||V[99]!==N||V[100]!==F?(R=(0,eB.FD)("div",{ref:Z,className:A,tabIndex:-1,onFocus:eg,onBlur:en.handleBlur,onClick:eC,onKeyDown:ec,onMouseDown:es,onCopy:ed,onPaste:eu,...T,children:[N,F]}),V[90]=en.handleBlur,V[91]=ed,V[92]=ec,V[93]=es,V[94]=eu,V[95]=A,V[96]=eg,V[97]=eC,V[98]=T,V[99]=N,V[100]=F,V[101]=R):R=V[101],R},"FilterInput");Bk.displayName="FilterInput";let BP=(0,m9.F)("",{variants:{inline:{true:"inline-flex",false:"flex"},direction:{row:"flex-row",column:"flex-col","row-reverse":"flex-row-reverse","column-reverse":"flex-col-reverse"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{wrap:"flex-wrap",nowrap:"flex-nowrap",reverse:"flex-wrap-reverse"},gap:{1:"gap-1",2:"gap-2",4:"gap-4",6:"gap-6",8:"gap-8",12:"gap-12",16:"gap-16",20:"gap-20",24:"gap-24",28:"gap-28",32:"gap-32",36:"gap-36",40:"gap-40",44:"gap-44",48:"gap-48",56:"gap-56",64:"gap-64",80:"gap-80",96:"gap-96",112:"gap-112",128:"gap-128",144:"gap-144"},grow:{true:"flex-grow",false:"flex-grow-0"},shrink:{true:"flex-shrink",false:"flex-shrink-0"},fullWidth:{true:"w-full"},basis:{auto:"basis-auto",full:"basis-full","1/2":"basis-1/2","1/3":"basis-1/3","2/3":"basis-2/3","1/4":"basis-1/4","2/4":"basis-2/4","3/4":"basis-3/4","1/5":"basis-1/5","2/5":"basis-2/5","3/5":"basis-3/5","4/5":"basis-4/5","1/6":"basis-1/6","2/6":"basis-2/6","3/6":"basis-3/6","4/6":"basis-4/6","5/6":"basis-5/6","1/12":"basis-1/12","2/12":"basis-2/12","3/12":"basis-3/12","4/12":"basis-4/12","5/12":"basis-5/12","6/12":"basis-6/12","7/12":"basis-7/12","8/12":"basis-8/12","9/12":"basis-9/12","10/12":"basis-10/12","11/12":"basis-11/12",0:"basis-0"}}}),BD=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g=(0,ej.c)(30);g[0]!==e?({inline:s,direction:c,align:d,justify:u,wrap:h,gap:i,grow:a,shrink:o,basis:t,fullWidth:n,asChild:p,children:r,...l}=e,g[0]=e,g[1]=t,g[2]=r,g[3]=n,g[4]=i,g[5]=a,g[6]=l,g[7]=o,g[8]=s,g[9]=c,g[10]=d,g[11]=u,g[12]=h,g[13]=p):(t=g[1],r=g[2],n=g[3],i=g[4],a=g[5],l=g[6],o=g[7],s=g[8],c=g[9],d=g[10],u=g[11],h=g[12],p=g[13]);let C=void 0!==s&&s,v=void 0===c?"row":c,y=void 0===d?"stretch":d,b=void 0===u?"start":u,x=void 0===h?"nowrap":h,O=void 0!==p&&p?Ew.DX:"div";return g[14]!==y||g[15]!==t||g[16]!==v||g[17]!==n||g[18]!==i||g[19]!==a||g[20]!==C||g[21]!==b||g[22]!==o||g[23]!==x?(f=(0,m2.cn)(BP({inline:C,direction:v,align:y,justify:b,wrap:x,gap:i,grow:a,shrink:o,basis:t,fullWidth:n})),g[14]=y,g[15]=t,g[16]=v,g[17]=n,g[18]=i,g[19]=a,g[20]=C,g[21]=b,g[22]=o,g[23]=x,g[24]=f):f=g[24],g[25]!==O||g[26]!==r||g[27]!==l||g[28]!==f?(m=(0,eB.Y)(O,{className:f,...l,children:r}),g[25]=O,g[26]=r,g[27]=l,g[28]=f,g[29]=m):m=g[29],m},"Flex");BD.displayName="Flex";let BA=Symbol.for("constructDateFrom");function BT(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&BA in e?e[BA](t):e instanceof Date?new e.constructor(t):new Date(t)}function BM(e,t){return BT(t||e,e)}function BL(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+BM(e)))}function BI(e){return t=>{let r=(e?Math[e]:Math.trunc)(t);return 0===r?0:r}}function BN(e,t,r){let n=(BM(e)-BM(t))/6e4;return BI(r?.roundingMethod)(n)}function BF(e,...t){let r=BT.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}function BR(e,t,r){let[n,i]=BF(r?.in,e,t);return BI(r?.roundingMethod)((n-i)/36e5)}function BV(e){let t=BM(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),e-r}function B_(e,t){let r=BM(e,t?.in);return r.setHours(0,0,0,0),r}function BY(e,t,r){let[n,i]=BF(r?.in,e,t),a=B_(n),l=B_(i);return Math.round((a-BV(a)-(l-BV(l)))/864e5)}function B$(e,t,r){let[n,i]=BF(r?.in,e,t),a=BH(n,i),l=Math.abs(BY(n,i));n.setDate(n.getDate()-a*l);let o=Number(BH(n,i)===-a),s=a*(l-o);return 0===s?0:s}function BH(e,t){let r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}let Bz={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function BZ(e){return (t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}let BQ={date:BZ({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:BZ({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:BZ({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},BB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Bj(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function BG(e){return(t,r={})=>{let n,i=r.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],l=t.match(a);if(!l)return null;let o=l[0],s=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}(s,e=>e.test(o)):function(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}(s,e=>e.test(o));return n=e.valueCallback?e.valueCallback(c):c,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(o.length)}}}let BU={code:"en-US",formatDistance:(e,t,r)=>{let n,i=Bz[e];if(n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),r?.addSuffix)if(r.comparison&&r.comparison>0)return"in "+n;else return n+" ago";return n},formatLong:BQ,formatRelative:(e,t,r,n)=>BB[e],localize:{ordinalNumber:(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Bj({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Bj({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Bj({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Bj({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Bj({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(I={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{let r=e.match(I.matchPattern);if(!r)return null;let n=r[0],i=e.match(I.parsePattern);if(!i)return null;let a=I.valueCallback?I.valueCallback(i[0]):i[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(n.length)}}),era:BG({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:BG({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:BG({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:BG({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:BG({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},BW={};function Bq(e,t){let r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??BW.weekStartsOn??BW.locale?.options?.weekStartsOn??0,n=BM(e,t?.in),i=n.getDay();return n.setDate(n.getDate()-(7*(i<r)+i-r)),n.setHours(0,0,0,0),n}function BX(e,t){return Bq(e,{...t,weekStartsOn:1})}function BK(e,t){let r=BM(e,t?.in),n=r.getFullYear(),i=BT(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);let a=BX(i),l=BT(r,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);let o=BX(l);return r.getTime()>=a.getTime()?n+1:r.getTime()>=o.getTime()?n:n-1}function BJ(e,t){let r=BM(e,t?.in),n=r.getFullYear(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??BW.firstWeekContainsDate??BW.locale?.options?.firstWeekContainsDate??1,a=BT(t?.in||e,0);a.setFullYear(n+1,0,i),a.setHours(0,0,0,0);let l=Bq(a,t),o=BT(t?.in||e,0);o.setFullYear(n,0,i),o.setHours(0,0,0,0);let s=Bq(o,t);return+r>=+l?n+1:+r>=+s?n:n-1}function B1(e,t){let r=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+r}let B2={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return B1("yy"===t?n%100:n,t.length)},M(e,t){let r=e.getMonth();return"M"===t?String(r+1):B1(r+1,2)},d:(e,t)=>B1(e.getDate(),t.length),a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>B1(e.getHours()%12||12,t.length),H:(e,t)=>B1(e.getHours(),t.length),m:(e,t)=>B1(e.getMinutes(),t.length),s:(e,t)=>B1(e.getSeconds(),t.length),S(e,t){let r=t.length;return B1(Math.trunc(e.getMilliseconds()*Math.pow(10,r-3)),t.length)}},B0={G:function(e,t,r){let n=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){let t=e.getFullYear();return r.ordinalNumber(t>0?t:1-t,{unit:"year"})}return B2.y(e,t)},Y:function(e,t,r,n){let i=BJ(e,n),a=i>0?i:1-i;return"YY"===t?B1(a%100,2):"Yo"===t?r.ordinalNumber(a,{unit:"year"}):B1(a,t.length)},R:function(e,t){return B1(BK(e),t.length)},u:function(e,t){return B1(e.getFullYear(),t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return B1(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return B1(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return B2.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return B1(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let i,a,l,o,s=Math.round((Bq(i=BM(e,n?.in),n)-(a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??BW.firstWeekContainsDate??BW.locale?.options?.firstWeekContainsDate??1,l=BJ(i,n),(o=BT(n?.in||i,0)).setFullYear(l,0,a),o.setHours(0,0,0,0),Bq(o,n)))/6048e5)+1;return"wo"===t?r.ordinalNumber(s,{unit:"week"}):B1(s,t.length)},I:function(e,t,r){let n,i,a,l=Math.round((BX(n=BM(e,void 0))-(i=BK(n,void 0),(a=BT(n,0)).setFullYear(i,0,4),a.setHours(0,0,0,0),BX(a)))/6048e5)+1;return"Io"===t?r.ordinalNumber(l,{unit:"week"}):B1(l,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):B2.d(e,t)},D:function(e,t,r){let n,i,a=BY(i=BM(e,void 0),((n=BM(i,void 0)).setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n))+1;return"Do"===t?r.ordinalNumber(a,{unit:"dayOfYear"}):B1(a,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return B1(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return B1(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return B1(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n,i=e.getHours();switch(n=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n,i=e.getHours();switch(n=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return B2.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):B2.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):B1(n,t.length)},k:function(e,t,r){let n=e.getHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):B1(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):B2.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):B2.s(e,t)},S:function(e,t){return B2.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return B5(n);case"XXXX":case"XX":return B4(n);default:return B4(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return B5(n);case"xxxx":case"xx":return B4(n);default:return B4(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+B3(n,":");default:return"GMT"+B4(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+B3(n,":");default:return"GMT"+B4(n,":")}},t:function(e,t,r){return B1(Math.trunc(e/1e3),t.length)},T:function(e,t,r){return B1(+e,t.length)}};function B3(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),a=n%60;return 0===a?r+String(i):r+String(i)+t+B1(a,2)}function B5(e,t){return e%60==0?(e>0?"-":"+")+B1(Math.abs(e)/60,2):B4(e,t)}function B4(e,t=""){let r=Math.abs(e);return(e>0?"-":"+")+B1(Math.trunc(r/60),2)+t+B1(r%60,2)}let B7=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},B9=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},B6={p:B9,P:(e,t)=>{let r,n=e.match(/(P+)(p+)?/)||[],i=n[1],a=n[2];if(!a)return B7(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",B7(i,t)).replace("{{time}}",B9(a,t))}},B8=/^D+$/,je=/^Y+$/,jt=["D","DD","YY","YYYY"],jr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ji=/^'([^]*?)'?$/,ja=/''/g,jl=/[a-zA-Z]/;function jo(e,t,r){let n=r?.locale??BW.locale??BU,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??BW.firstWeekContainsDate??BW.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??BW.weekStartsOn??BW.locale?.options?.weekStartsOn??0,l=BM(e,r?.in);if(!BL(l))throw RangeError("Invalid time value");let o=t.match(jn).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,B6[t])(e,n.formatLong):e}).join("").match(jr).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t){var r;let t;return{isToken:!1,value:(t=(r=e).match(ji))?t[1].replace(ja,"'"):r}}if(B0[t])return{isToken:!0,value:e};if(t.match(jl))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});n.localize.preprocessor&&(o=n.localize.preprocessor(l,o));let s={firstWeekContainsDate:i,weekStartsOn:a,locale:n};return o.map(i=>{if(!i.isToken)return i.value;let a=i.value;return(!r?.useAdditionalWeekYearTokens&&je.test(a)||!r?.useAdditionalDayOfYearTokens&&B8.test(a))&&function(e,t,r){var n,i,a;let l,o=(n=e,i=t,a=r,l="Y"===n[0]?"years":"days of the month",`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${i}\`) for formatting ${l} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(o),jt.includes(e))throw RangeError(o)}(a,t,String(e)),(0,B0[a[0]])(l,a,n.localize,s)}).join("")}function js(e,t,r){let n=B$(e,t,r)/7;return BI(r?.roundingMethod)(n)}function jc(e,t){let r=BM(e)-BM(t);return r<0?-1:r>0?1:r}let jd=e=>"month-first"===e?"MMM d":"d MMM",ju=e=>`${jd(e)}, yyyy`,jh=(e,t)=>{let r=t?":ss":"";return 12===e?`hh:mm${r} a`:`HH:mm${r}`},jp=(e,t=new Date,r={})=>{let n;if(!BL(e))return"—";let i=(n=(BM(t)-BM(e))/1e3,BI(void 0)(n));if(i<0||i<60)return"Just now";let a=BN(t,e);if(a<60)return`${a} min ago`;let l=BR(t,e);if(l<24)return 1===l?"1 hour ago":`${l} hours ago`;let o=B$(t,e);if(o<2)return`Yesterday, ${jo(e,jh(r.hourCycle,!1))}`;if(o<7)return`${o} days ago`;let s=js(t,e);if(o<14)return"1 week ago";if(o<28)return`${s} weeks ago`;let c=function(e,t){var r,n;let i,a,l,o,[s,c,d]=BF(void 0,e,e,t),u=jc(c,d),h=Math.abs(function(e,t){let[r,n]=BF(void 0,e,t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(c,d));if(h<1)return 0;1===c.getMonth()&&c.getDate()>27&&c.setDate(30),c.setMonth(c.getMonth()-u*h);let p=jc(c,d)===-u;+(i=BM(s,void 0),r=void 0,(a=BM(i,r?.in)).setHours(23,59,59,999),a)==+(n=void 0,o=(l=BM(i,n?.in)).getMonth(),l.setFullYear(l.getFullYear(),o+1,0),l.setHours(23,59,59,999),l)&&1===h&&1===jc(s,d)&&(p=!1);let f=u*(h-p);return 0===f?0:f}(t,e);return o<150?1===c?"1 month ago":`${c} months ago`:1>function(e,t){let[r,n]=BF(void 0,e,t),i=jc(r,n),a=Math.abs(function(e,t){let[r,n]=BF(void 0,e,t);return r.getFullYear()-n.getFullYear()}(r,n));r.setFullYear(1584),n.setFullYear(1584);let l=jc(r,n)===-i,o=i*(a-l);return 0===o?0:o}(t,e)?jo(e,jd(r.order)):jo(e,ju(r.order))},jf=(e,t={})=>{if(!BL(e))return"—";let{showSeconds:r=!0}=t,n=jo(e,`${ju(t.order)} ${jh(t.hourCycle,r)}`),i=jg(e);return`${n} ${i}`},jm=(e,t=new Date,r={})=>BL(e)?e.getFullYear()===t.getFullYear()?jo(e,jd(r.order)):jo(e,ju(r.order)):"—",jg=e=>{let t=-e.getTimezoneOffset();if(0===t)return"UTC";let r=t>0?"+":"-",n=Math.floor(Math.abs(t)/60),i=Math.abs(t)%60;return 0===i?`GMT${r}${n}`:`GMT${r}${n}:${String(i).padStart(2,"0")}`},jC=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v=(0,ej.c)(48);v[0]!==e?({value:l,format:n,layout:i,showSeconds:a,ref:r,...t}=e,v[0]=e,v[1]=t,v[2]=r,v[3]=n,v[4]=i,v[5]=a,v[6]=l):(t=v[1],r=v[2],n=v[3],i=v[4],a=v[5],l=v[6]);let y=void 0===n?"relative":n,b=void 0===i?"stacked":i,x=void 0===a||a,O=M$();if(null==l){let e,n,i,a;return v[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eB.Y)(bk.E,{size:"sm",color:"secondary",children:"—"}),v[7]=e):e=v[7],v[8]!==t||v[9]!==r?(n=(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)("time",{ref:r,"data-slot":"format-date-time",...t,children:e})}),v[8]=t,v[9]=r,v[10]=n):n=v[10],v[11]===Symbol.for("react.memo_cache_sentinel")?(i=(0,eB.Y)(bm,{children:"No data"}),v[11]=i):i=v[11],v[12]!==n?(a=(0,eB.FD)(bC,{children:[n,i]}),v[12]=n,v[13]=a):a=v[13],a}if(v[14]!==O||v[15]!==y||v[16]!==b||v[17]!==t||v[18]!==r||v[19]!==x||v[20]!==l){c=Symbol.for("react.early_return_sentinel");h:{var w;let e=(w=l)instanceof Date?w:new Date(w);if(!BL(e)){let e,n;v[30]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eB.Y)(bk.E,{size:"sm",color:"secondary",children:"—"}),v[30]=e):e=v[30],v[31]!==t||v[32]!==r?(n=(0,eB.Y)("time",{ref:r,"data-slot":"format-date-time",...t,children:e}),v[31]=t,v[32]=r,v[33]=n):n=v[33],c=n;break h}let n=e.toISOString(),i=jf(e,{showSeconds:x,...O});if("relative"===y){let a;v[34]===Symbol.for("react.memo_cache_sentinel")?(a=(0,m2.cn)("whitespace-nowrap border-b-1 border-dashed border-border-strong-primary"),v[34]=a):a=v[34],c=(0,eB.FD)(bC,{children:[(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)("time",{ref:r,dateTime:n,"data-slot":"format-date-time",...t,children:(0,eB.Y)(bk.E,{size:"sm",children:(0,eB.Y)("span",{className:a,children:jp(e,void 0,O)})})})}),(0,eB.Y)(bm,{children:i})]});break h}if("datetime"===y){let i,a="inline"===b?"items-baseline gap-4":"flex-col";v[35]!==a?(i=(0,m2.cn)("inline-flex whitespace-nowrap",a),v[35]=a,v[36]=i):i=v[36],c=(0,eB.FD)("time",{ref:r,dateTime:n,className:i,"data-slot":"format-date-time",...t,children:[(0,eB.Y)(bk.E,{size:"sm",children:jm(e,void 0,O)}),(0,eB.Y)(bk.E,{size:"sm",color:"secondary",children:((e,t={})=>BL(e)?`${jo(e,jh(t.hourCycle,!1))} ${jg(e)}`:"—")(e,O)})]});break h}h=r,p=n,f="inline-flex flex-col whitespace-nowrap",m="format-date-time",s=t,o=bk.E,d="sm",u=jm(e,void 0,O)}v[14]=O,v[15]=y,v[16]=b,v[17]=t,v[18]=r,v[19]=x,v[20]=l,v[21]=o,v[22]=s,v[23]=c,v[24]=d,v[25]=u,v[26]=h,v[27]=p,v[28]=f,v[29]=m}else o=v[21],s=v[22],c=v[23],d=v[24],u=v[25],h=v[26],p=v[27],f=v[28],m=v[29];return c!==Symbol.for("react.early_return_sentinel")?c:(v[37]!==o||v[38]!==d||v[39]!==u?(g=(0,eB.Y)(o,{size:d,children:u}),v[37]=o,v[38]=d,v[39]=u,v[40]=g):g=v[40],v[41]!==s||v[42]!==g||v[43]!==h||v[44]!==p||v[45]!==f||v[46]!==m?(C=(0,eB.Y)("time",{ref:h,dateTime:p,className:f,"data-slot":m,...s,children:g}),v[41]=s,v[42]=g,v[43]=h,v[44]=p,v[45]=f,v[46]=m,v[47]=C):C=v[47],C)},"FormatDateTime");jC.displayName="FormatDateTime";let jv=[[9995e8,1e12,"T"],[9995e5,1e9,"B"],[999500,1e6,"M"],[1e3,1e3,"k"]],jy=new Intl.NumberFormat("en-US"),jb=[[9995e8,1e12,"TB"],[9995e5,1e9,"GB"],[999500,1e6,"MB"],[1e3,1e3,"KB"]],jx="border-b-1 border-dashed border-border-strong-primary",jO={placement:"top"},jw=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p=(0,ej.c)(87);p[0]!==e?({value:s,type:n,notation:i,unit:o,decimals:a,tooltip:l,ref:r,...t}=e,p[0]=e,p[1]=t,p[2]=r,p[3]=n,p[4]=i,p[5]=a,p[6]=l,p[7]=o,p[8]=s):(t=p[1],r=p[2],n=p[3],i=p[4],a=p[5],l=p[6],o=p[7],s=p[8]);let f=void 0===n?"decimal":n,m=void 0===i?"compact":i,g=void 0===a?0:a,C=void 0===l||l;if(null==s){let e,n,i,a;return p[9]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eB.Y)(bk.E,{size:"sm",color:"secondary",children:"—"}),p[9]=e):e=p[9],p[10]!==t||p[11]!==r?(n=(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)("span",{ref:r,className:"w-fit","data-slot":"format-number",...t,children:e})}),p[10]=t,p[11]=r,p[12]=n):n=p[12],p[13]===Symbol.for("react.memo_cache_sentinel")?(i=(0,eB.Y)(bm,{children:"No data"}),p[13]=i):i=p[13],p[14]!==n?(a=(0,eB.FD)(bC,{positioning:jO,children:[n,i]}),p[14]=n,p[15]=a):a=p[15],a}if(!Number.isFinite(s)){let e,n;return p[16]===Symbol.for("react.memo_cache_sentinel")?(e=(0,eB.Y)(bk.E,{size:"sm",color:"secondary",children:"—"}),p[16]=e):e=p[16],p[17]!==t||p[18]!==r?(n=(0,eB.Y)("span",{ref:r,"data-slot":"format-number",...t,children:e}),p[17]=t,p[18]=r,p[19]=n):n=p[19],n}if("percent"===f){let e,n,i;return p[20]!==g||p[21]!==s?(e=((e,t=0)=>{if(0===e)return"0%";if(100===e)return"100%";let r=10**t,n=Math.round(e*r)/r;if(e>0&&0===n)return`<${1/r}%`;if(e<100&&100===n){let e=100-1/r;return`>${t>0?e.toFixed(t):String(e)}%`}return`${t>0?n.toFixed(t):String(n)}%`})(s,g),p[20]=g,p[21]=s,p[22]=e):e=p[22],p[23]!==e?(n=(0,eB.Y)(bk.E,{size:"sm",children:e}),p[23]=e,p[24]=n):n=p[24],p[25]!==t||p[26]!==r||p[27]!==n?(i=(0,eB.Y)("span",{ref:r,"data-slot":"format-number",...t,children:n}),p[25]=t,p[26]=r,p[27]=n,p[28]=i):i=p[28],i}if("byte"===f){let e,n,i;p[29]!==s?(e=(e=>{let t=`${jy.format(e)} bytes`;if(e<1e3)return{display:`${e} B`,full:t};let r=jb.find(([t])=>e>=t);if(!r)return{display:`${e} B`,full:t};let[,n,i]=r,a=e/n,l=a>=100?0:1,o=Math.round(a*10**l)/10**l,s=o%1==0?String(o):o.toFixed(1);return{display:`${s} ${i}`,full:t}})(s),p[29]=s,p[30]=e):e=p[30];let{display:a,full:l}=e,o="compact"===m&&s>=1e3;if(o&&C){let e,n,i,o,s;return p[31]===Symbol.for("react.memo_cache_sentinel")?(e=(0,m2.cn)("whitespace-nowrap tabular-nums",jx),p[31]=e):e=p[31],p[32]!==a?(n=(0,eB.Y)(bk.E,{size:"sm",children:(0,eB.Y)("span",{className:e,children:a})}),p[32]=a,p[33]=n):n=p[33],p[34]!==l||p[35]!==t||p[36]!==r||p[37]!==n?(i=(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)("span",{ref:r,className:"w-fit","data-slot":"format-number","aria-label":l,...t,children:n})}),p[34]=l,p[35]=t,p[36]=r,p[37]=n,p[38]=i):i=p[38],p[39]!==l?(o=(0,eB.Y)(bm,{children:l}),p[39]=l,p[40]=o):o=p[40],p[41]!==i||p[42]!==o?(s=(0,eB.FD)(bC,{positioning:jO,children:[i,o]}),p[41]=i,p[42]=o,p[43]=s):s=p[43],s}if(o){let e,n;return p[44]!==a?(e=(0,eB.Y)(bk.E,{size:"sm",children:(0,eB.Y)("span",{className:"whitespace-nowrap tabular-nums",children:a})}),p[44]=a,p[45]=e):e=p[45],p[46]!==l||p[47]!==t||p[48]!==r||p[49]!==e?(n=(0,eB.Y)("span",{ref:r,"data-slot":"format-number","aria-label":l,...t,children:e}),p[46]=l,p[47]=t,p[48]=r,p[49]=e,p[50]=n):n=p[50],n}return p[51]!==l?(n=(0,eB.Y)(bk.E,{size:"sm",children:l}),p[51]=l,p[52]=n):n=p[52],p[53]!==t||p[54]!==r||p[55]!==n?(i=(0,eB.Y)("span",{ref:r,"data-slot":"format-number",...t,children:n}),p[53]=t,p[54]=r,p[55]=n,p[56]=i):i=p[56],i}p[57]!==s?(c=(e=>{if(0===e)return"0";let t=Math.abs(e);if(t<1e3)return String(e);let r=jv.find(([e])=>t>=e);if(!r)return String(e);let[,n,i]=r,a=t/n,l=a>=100?0:1,o=Math.round(a*10**l)/10**l,s=o%1==0?String(o):o.toFixed(1);return`${e<0?"-":""}${s}${i}`})(s),p[57]=s,p[58]=c):c=p[58];let v=c;if(p[59]!==s){let e;e=s,d=jy.format(e),p[59]=s,p[60]=d}else d=p[60];let y=d,b="compact"===m&&Math.abs(s)>=1e3,x=o?`${y}\xa0${o}`:y;if(b&&C){let e,n,i,a,l;return p[61]===Symbol.for("react.memo_cache_sentinel")?(e=(0,m2.cn)("whitespace-nowrap tabular-nums",jx),p[61]=e):e=p[61],p[62]!==v?(n=(0,eB.Y)(bk.E,{size:"sm",children:(0,eB.Y)("span",{className:e,children:v})}),p[62]=v,p[63]=n):n=p[63],p[64]!==x||p[65]!==t||p[66]!==r||p[67]!==n?(i=(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)("span",{ref:r,className:"w-fit","data-slot":"format-number","aria-label":x,...t,children:n})}),p[64]=x,p[65]=t,p[66]=r,p[67]=n,p[68]=i):i=p[68],p[69]!==x?(a=(0,eB.Y)(bm,{children:x}),p[69]=x,p[70]=a):a=p[70],p[71]!==a||p[72]!==i?(l=(0,eB.FD)(bC,{positioning:jO,children:[i,a]}),p[71]=a,p[72]=i,p[73]=l):l=p[73],l}if(b){let e,n,i=o?`${v}\xa0${o}`:v;return p[74]!==i?(e=(0,eB.Y)(bk.E,{size:"sm",children:(0,eB.Y)("span",{className:"whitespace-nowrap tabular-nums",children:i})}),p[74]=i,p[75]=e):e=p[75],p[76]!==x||p[77]!==t||p[78]!==r||p[79]!==e?(n=(0,eB.Y)("span",{ref:r,"data-slot":"format-number","aria-label":x,...t,children:e}),p[76]=x,p[77]=t,p[78]=r,p[79]=e,p[80]=n):n=p[80],n}let O=o?`${y}\xa0${o}`:y;return p[81]!==O?(u=(0,eB.Y)(bk.E,{size:"sm",children:O}),p[81]=O,p[82]=u):u=p[82],p[83]!==t||p[84]!==r||p[85]!==u?(h=(0,eB.Y)("span",{ref:r,"data-slot":"format-number",...t,children:u}),p[83]=t,p[84]=r,p[85]=u,p[86]=h):h=p[86],h},"FormatNumber");jw.displayName="FormatNumber";let jS=(0,m9.F)("font-sans-display text-text-primary",{variants:{size:{sm:"text-sm tracking-normal",md:"text-base tracking-normal",lg:"text-lg tracking-normal",xl:"text-xl tracking-xl","2xl":"text-2xl tracking-2xl","3xl":"text-3xl tracking-3xl","4xl":"text-4xl tracking-4xl","5xl":"text-5xl tracking-5xl","6xl":"text-6xl tracking-6xl","7xl":"text-7xl tracking-7xl"},weight:{light:"font-light",regular:"font-normal",medium:"font-medium",bold:"font-bold"},color:{primary:"text-text-primary","primary-alt":"text-text-primary-alt",secondary:"text-text-secondary","secondary-alt":"text-text-secondary-alt",inherit:"text-inherit"},align:{left:"text-left",center:"text-center",right:"text-right"},grow:{true:"flex-1 w-full"},truncate:{true:"truncate"}}}),jE=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p=(0,ej.c)(23);p[0]!==e?({as:i,size:a,weight:l,color:o,asChild:s,truncate:c,grow:d,align:t,lineClamp:r,...n}=e,p[0]=e,p[1]=t,p[2]=r,p[3]=n,p[4]=i,p[5]=a,p[6]=l,p[7]=o,p[8]=s,p[9]=c,p[10]=d):(t=p[1],r=p[2],n=p[3],i=p[4],a=p[5],l=p[6],o=p[7],s=p[8],c=p[9],d=p[10]);let f=void 0===i?"h1":i,m=void 0===a?"xl":a,g=void 0===l?"bold":l,C=void 0===o?"inherit":o,v=void 0!==c&&c,y=void 0!==d&&d,b=void 0!==s&&s?Ew.DX:f;return p[11]!==t||p[12]!==C||p[13]!==y||p[14]!==r||p[15]!==m||p[16]!==v||p[17]!==g?(u=(0,m2.cn)(jS({size:m,weight:g,truncate:v,color:C,align:t,grow:y}),r&&`line-clamp-${r}`),p[11]=t,p[12]=C,p[13]=y,p[14]=r,p[15]=m,p[16]=v,p[17]=g,p[18]=u):u=p[18],p[19]!==b||p[20]!==n||p[21]!==u?(h=(0,eB.Y)(b,{...n,className:u}),p[19]=b,p[20]=n,p[21]=u,p[22]=h):h=p[22],h},"Heading");jE.displayName="Heading";var jk=i("oB");let jP=(0,eQ.G)(e=>{let t,r,n,i,a,l,o=(0,ej.c)(11);o[0]!==e?({method:t,size:i,ref:r,...n}=e,o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i):(t=o[1],r=o[2],n=o[3],i=o[4]);let s=void 0===i?"medium":i,c=(l=t,Object.hasOwn(jk.b,l))?jk.b[t]:"slate";return o[5]!==c||o[6]!==t||o[7]!==r||o[8]!==n||o[9]!==s?(a=(0,eB.Y)(ED,{...n,ref:r,"data-method":t,type:"secondary",color:c,size:s,textVariant:"code",children:t}),o[5]=c,o[6]=t,o[7]=r,o[8]=n,o[9]=s,o[10]=a):a=o[10],a},"HttpMethod");jP.displayName="HttpMethod";var[jD,jA]=(0,ua.q)({name:"ImageCropperContext",hookName:"useImageCropperContext",providerName:"<ImageCropperProvider />"}),jT=e=>e.children(jA()),jM=(0,c0.forwardRef)((e,t)=>{let{axis:r,...n}=e,i=jA(),a=(0,p8.v)(i.getGridProps({axis:r}),n);return(0,eB.Y)(fr.div,{...a,ref:t})});jM.displayName="ImageCropperGrid";var jL=(0,c0.forwardRef)((e,t)=>{let{position:r,...n}=e,i=jA(),a=(0,p8.v)(i.getHandleProps({position:r}),n);return(0,eB.Y)(fr.div,{...a,ref:t})});jL.displayName="ImageCropperHandle";var jI=(0,c0.forwardRef)((e,t)=>{let r=jA(),n=(0,p8.v)(r.getImageProps(),e);return(0,eB.Y)(fr.img,{...n,ref:t})});jI.displayName="ImageCropperImage";var jN=(N={box:"border-box"},x=new WeakMap,O=new WeakMap,w=e=>b||(b=new e.ResizeObserver(e=>{for(let t of e){O.set(t.target,t);let e=x.get(t.target);if(e)for(let r of e)r(t)}})),{observe:(e,t)=>{let r=x.get(e)||new Set;r.add(t),x.set(e,r);let n=u6(e);return w(n).observe(e,N),()=>{let r=x.get(e);r&&(r.delete(t),0===r.size&&(x.delete(e),w(n).unobserve(e)))}},unobserve:e=>{x.delete(e),b?.unobserve(e)}}),{min:jF,max:jR,round:jV,PI:j_,cos:jY,sin:j$}=Math;function jH(e){let{zoom:t,offset:r,rotation:n,flip:i}=e,a=n%360*j_/180,l=t>0?t:1,o=l*(i.horizontal?-1:1),s=l*(i.vertical?-1:1);return{a:jY(a)*o,b:j$(a)*o,c:-j$(a)*s,d:jY(a)*s,e:r.x,f:r.y}}function jz(e){let{imageRect:t,naturalSize:r}=e,n=jH(e),i=t.width>0?t.width:r.width||1,a=t.height>0?t.height:r.height||1,l=r.width||i,o=r.height||a,s=i/l,c=a/o,d=n.a*s,u=n.b*s,h=n.c*c,p=n.d*c,f=t.x+i/2,m=t.y+a/2,g=l/2,C=o/2;return{a:d,b:u,c:h,d:p,e:f+n.e-d*g-h*C,f:m+n.f-u*g-p*C}}function jZ(e){let{crop:t}=e,r=t=>{var r,n,i,a;let l;return l=(n=jz(r={...e,point:t})).a*n.d-n.b*n.c,i={a:n.d/l,b:-n.b/l,c:-n.c/l,d:n.a/l,e:(n.c*n.f-n.d*n.e)/l,f:(n.b*n.e-n.a*n.f)/l},a=r.point,{x:i.a*a.x+i.c*a.y+i.e,y:i.b*a.x+i.d*a.y+i.f}};return{topLeft:r({x:t.x,y:t.y}),topRight:r({x:t.x+t.width,y:t.y}),bottomRight:r({x:t.x+t.width,y:t.y+t.height}),bottomLeft:r({x:t.x,y:t.y+t.height})}}function jQ(e){let{crop:t,zoom:r,imageRect:n,naturalSize:i}=e,a=r>0?r:1,l=n.width>0?n.width:i.width||1,o=n.height>0?n.height:i.height||1,s=(i.width||l)/l/a,c=(i.height||o)/o/a;return{width:jR(1,jV(t.width*s)),height:jR(1,jV(t.height*c))}}var jB=e=>e.ids?.root??`image-cropper:${e.id}`,jj=e=>e.ids?.viewport??`image-cropper:${e.id}:viewport`,jG=e=>e.ids?.image??`image-cropper:${e.id}:image`,jU=e=>e.ids?.selection??`image-cropper:${e.id}:selection`,jW=e=>e.getById(jj(e)),jq=e=>e.getById(jG(e));function jX(e){let{context:t,scope:r}=e,n=t.get("viewportRect"),i=t.get("naturalSize"),a=function(e){let t=jq(e),r=jW(e);if(!t||!r)return null;let n=0,i=0,a=t;for(;a&&a!==r;)n+=a.offsetLeft,i+=a.offsetTop,a=a.offsetParent;return a!==r?null:{x:n,y:i,width:t.offsetWidth,height:t.offsetHeight}}(r),l=a&&a.width>0&&a.height>0?a:{x:0,y:0,width:n.width||i.width||1,height:n.height||i.height||1};return{crop:t.get("crop"),zoom:t.get("zoom"),offset:t.get("offset"),rotation:t.get("rotation"),flip:t.get("flip"),imageRect:l,naturalSize:i}}var{min:jK,max:jJ,abs:j1,round:j2,hypot:j0,PI:j3,cos:j5,sin:j4}=Math,j7=e=>"w"===e||"nw"===e||"sw"===e,j9=e=>"e"===e||"ne"===e||"se"===e,j6=e=>"n"===e||"nw"===e||"ne"===e,j8=e=>"s"===e||"sw"===e||"se"===e,Ge=e=>(j7(e)||j9(e))&&(j6(e)||j8(e)),Gt=e=>{let{minSize:t,maxSize:r,viewportSize:n,aspectRatio:i}=e,a=jK(t.width,n.width),l=jK(t.height,n.height),o=r?.width??n.width;Number.isFinite(o)||(o=n.width),o=jK(o,n.width);let s=r?.height??n.height;Number.isFinite(s)||(s=n.height),s=jK(s,n.height),o=jJ(a,o),s=jJ(l,s);let c="number"==typeof i&&i>0;if(c){let e=jJ(a,l*i);a=jK(e,n.width),l=jK(e/i,n.height);let t=jK(o,s*i,n.width),r=t/i;(r>s||r>n.height)&&(t=(r=jK(s,n.height))*i),o=jJ(a,jK(t,n.width)),s=jJ(l,jK(r,n.height))}else o=jJ(a,jK(o,n.width)),s=jJ(l,jK(s,n.height));return{minWidth:a,minHeight:l,maxWidth:o,maxHeight:s,hasAspect:c}},Gr=e=>{let{widthValue:t,heightValue:r,limits:n,viewportRect:i,aspectRatio:a}=e,{minWidth:l,minHeight:o,maxWidth:s,maxHeight:c}=n,d=e=>{let t=ml(e*a,l,s);return{width:t=jK(t,i.width),height:t/a}},u=(e=>{let t=ml(e,l,s),r=(t=jK(t,i.width))/a;if(r<o){let e=d(o);t=e.width,r=e.height}if(r>c){let e=d(jK(c,i.height));t=e.width,r=e.height}if(r>i.height){let e=d(i.height);if(t=e.width,(r=e.height)<o){let e=d(o);t=e.width,r=e.height}}return{width:t,height:r}})(t),h=(e=>{let t=ml(e,o,c),r=(t=jK(t,i.height))*a,n=(r=jK(r=ml(r,l,s),i.width))/a;if(n<o){let e=d(o);r=e.width,n=e.height}if(n>c){let e=d(jK(c,i.height));r=e.width,n=e.height}if(r>i.width){if((n=(r=i.width)/a)>c){let e=d(jK(c,i.height));r=e.width,n=e.height}if(n<o){let e=d(o);r=e.width,n=e.height}}return{width:r,height:n}})(r),p=j1(u.width-t)+j1(u.height-r);return j1(h.width-t)+j1(h.height-r)<p?h:u};function Gn(e){let{cropStart:t,handlePosition:r,delta:n,viewportRect:i,minSize:a,maxSize:l,aspectRatio:o}=e,{x:s,y:c,width:d,height:u}=t,h=s,p=c,f=s+d,m=c+u,{minWidth:g,minHeight:C,maxWidth:v,maxHeight:y,hasAspect:b}=Gt({minSize:a,maxSize:l,viewportSize:i,aspectRatio:o}),x=(e=>{let{bounds:t,delta:r,handlePosition:n,viewportRect:i,minSize:a,maxSize:l}=e,{left:o,top:s,right:c,bottom:d}=t;if(j7(n)){let e=jJ(0,c-l.width),t=c-a.width;o=ml(o+r.x,e,t)}if(j9(n)){let e=o+a.width,t=jK(i.width,o+l.width);c=ml(c+r.x,e,t)}if(j6(n)){let e=jJ(0,d-l.height),t=d-a.height;s=ml(s+r.y,e,t)}if(j8(n)){let e=s+a.height,t=jK(i.height,s+l.height);d=ml(d+r.y,e,t)}return{left:o,top:s,right:c,bottom:d}})({bounds:{left:h,top:p,right:f,bottom:m},delta:n,handlePosition:r,viewportRect:i,minSize:a,maxSize:l});if(h=x.left,p=x.top,f=x.right,m=x.bottom,b){let e={minWidth:g,minHeight:C,maxWidth:v,maxHeight:y,hasAspect:b};if(Ge(r)){let t=f-h,n=t/o;(n>m-p||p+n>i.height||h+t>i.width)&&(t=(n=m-p)*o);let a=Gr({widthValue:t,heightValue:n,limits:e,viewportRect:i,aspectRatio:o}),l=(e=>{let{bounds:t,width:r,height:n,handlePosition:i}=e,{left:a,top:l,right:o,bottom:s}=t;return j9(i)&&j8(i)?{left:a,top:l,right:a+r,bottom:l+n}:j9(i)&&j6(i)?{left:a,top:s-n,right:a+r,bottom:s}:j8(i)?{left:o-r,top:l,right:o,bottom:l+n}:{left:o-r,top:s-n,right:o,bottom:s}})({bounds:{left:h,top:p,right:f,bottom:m},width:a.width,height:a.height,handlePosition:r});h=l.left,p=l.top,f=l.right,m=l.bottom}else if((j7(r)||j9(r))&&!(j6(r)||j8(r))){let t=(e=>{let{bounds:t,limits:r,viewportRect:n,aspectRatio:i,handlePosition:a}=e,{left:l,top:o,right:s,bottom:c}=t,d=(o+c)/2,u=s-l,h=u/i,p=Gr({widthValue:u,heightValue:h,limits:r,viewportRect:n,aspectRatio:i});u=p.width;let f=(h=p.height)/2,m=d-f,g=d+f;return m<0&&(m=0,g=h),g>n.height&&(m=(g=n.height)-h),{left:j9(a)?l:s-u,top:m,right:j9(a)?l+u:s,bottom:g}})({bounds:{left:h,top:p,right:f,bottom:m},limits:e,viewportRect:i,aspectRatio:o,handlePosition:r});h=t.left,p=t.top,f=t.right,m=t.bottom}else if((j6(r)||j8(r))&&!(j7(r)||j9(r))){let t=(e=>{let{bounds:t,limits:r,viewportRect:n,aspectRatio:i,handlePosition:a}=e,{left:l,top:o,right:s,bottom:c}=t,d=(l+s)/2,u=c-o,h=u*i,p=Gr({widthValue:h,heightValue:u,limits:r,viewportRect:n,aspectRatio:i});h=p.width,u=p.height;let f=h/2,m=d-f,g=d+f;return m<0&&(m=0,g=h),g>n.width&&(m=(g=n.width)-h),{left:m,top:j8(a)?o:c-u,right:g,bottom:j8(a)?o+u:c}})({bounds:{left:h,top:p,right:f,bottom:m},limits:e,viewportRect:i,aspectRatio:o,handlePosition:r});h=t.left,p=t.top,f=t.right,m=t.bottom}}let O=jJ(0,i.width-g),w=jJ(0,i.height-C);h=ml(h,0,O),p=ml(p,0,w);let S=jK(i.width,h+v),E=jK(i.height,p+y);return f=ml(f,h+g,S),m=ml(m,p+C,E),{x:h,y:p,width:f-h,height:m-p}}function Gi(e,t,r){return{x:ml(e.x+t.x,0,r.width-e.width),y:ml(e.y+t.y,0,r.height-e.height),width:e.width,height:e.height}}function Ga(e){let{zoom:t,rotation:r,viewportSize:n,offset:i,fixedCropArea:a,crop:l}=e,{cos:o,sin:s}=GD(r);if(a&&l){let e=GA(n,t,o,s),r=Gv(n),a=l.x+l.width,c=l.y+l.height;return GE(i,{x:a-r.x-e.width/2,y:c-r.y-e.height/2},{x:l.x-r.x+e.width/2,y:l.y-r.y+e.height/2})}let c=GA(n,t,o,s),d=jJ(0,c.width-n.width),u=jJ(0,c.height-n.height);return GE(i,{x:-d/2,y:-u/2},{x:d/2,y:u/2})}var Gl=(e,t,r)=>{let n=jJ(0,e.x-t),i=e.width+(e.x-n);return i<=r?{x:n,width:i}:{x:e.x+e.width-r,width:r}},Go=(e,t,r)=>{let n=jJ(0,e.y-t),i=e.height+(e.y-n);return i<=r?{y:n,height:i}:{y:e.y+e.height-r,height:r}},Gs=(e,t,r)=>{let n=jK(e.x+t,e.x+e.width-r);return{x:n,width:e.width-(n-e.x)}},Gc=(e,t,r)=>{let n=jK(e.y+t,e.y+e.height-r);return{y:n,height:e.height-(n-e.y)}};function Gd(e,t){switch(e){case"ArrowLeft":return{x:-t,y:0};case"ArrowRight":return{x:t,y:0};case"ArrowUp":return{x:0,y:-t};case"ArrowDown":return{x:0,y:t};default:return Gw}}var Gu=(e,t)=>"circle"===e?1:t,Gh=e=>({minSize:{width:e("minWidth"),height:e("minHeight")},maxSize:{width:e("maxWidth"),height:e("maxHeight")}}),Gp=(e,t)=>e(t.ctrlKey||t.metaKey?"nudgeStepCtrl":t.shiftKey?"nudgeStepShift":"nudgeStep"),Gf=(e,t)=>e?{horizontal:(0,u$.Lm)(e.horizontal)?e.horizontal:t.horizontal,vertical:(0,u$.Lm)(e.vertical)?e.vertical:t.vertical}:t,Gm=(e,t)=>e.horizontal===t.horizontal&&e.vertical===t.vertical,Gg=e=>e.width>0&&e.height>0,GC=e=>({x:e.x+e.width/2,y:e.y+e.height/2}),Gv=e=>({x:e.width/2,y:e.height/2}),Gy=(e,t,r=Gw)=>({x:(e.x+t.x)/2-r.x,y:(e.y+t.y)/2-r.y}),Gb=(e,t)=>({x:jJ(0,t.width-e.width),y:jJ(0,t.height-e.height)}),Gx=(e,t,r)=>GE({x:t.x-e.width/2,y:t.y-e.height/2},Gw,Gb(e,r)),GO=(e,t)=>e.width===t.width&&e.height===t.height,Gw={x:0,y:0},GS=(e,t)=>j0(e.x-t.x,e.y-t.y),GE=(e,t,r)=>({x:ml(e.x,t.x,r.x),y:ml(e.y,t.y,r.y)}),Gk=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),GP=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),GD=e=>{let t=e%360*j3/180;return{cos:j1(j5(t)),sin:j1(j4(t))}},GA=(e,t,r,n)=>{let i=e.width*t,a=e.height*t;return{width:i*r+a*n,height:i*n+a*r}},GT=uE({props:({props:e})=>({minWidth:40,minHeight:40,maxWidth:1/0,maxHeight:1/0,defaultZoom:1,zoomStep:.1,zoomSensitivity:2,minZoom:1,maxZoom:5,defaultRotation:0,defaultFlip:{horizontal:!1,vertical:!1},fixedCropArea:!1,cropShape:"rectangle",nudgeStep:1,nudgeStepShift:10,nudgeStepCtrl:50,...e}),context:({bindable:e,prop:t})=>({naturalSize:e(()=>({defaultValue:{width:0,height:0}})),crop:e(()=>({defaultValue:{x:0,y:0,width:0,height:0},onChange(e){t("onCropChange")?.({crop:e})}})),pointerStart:e(()=>({defaultValue:null})),cropStart:e(()=>({defaultValue:null})),handlePosition:e(()=>({defaultValue:null})),shiftLockRatio:e(()=>({defaultValue:null})),pinchDistance:e(()=>({defaultValue:null})),pinchMidpoint:e(()=>({defaultValue:null})),zoom:e(()=>({defaultValue:t("zoom")??t("defaultZoom"),onChange(e){t("onZoomChange")?.({zoom:e})}})),rotation:e(()=>({defaultValue:t("defaultRotation"),value:t("rotation"),onChange(e){t("onRotationChange")?.({rotation:e})}})),flip:e(()=>({defaultValue:{...t("defaultFlip")},value:t("flip"),onChange(e){t("onFlipChange")?.({flip:e})}})),offset:e(()=>({defaultValue:Gw})),offsetStart:e(()=>({defaultValue:null})),viewportRect:e(()=>({defaultValue:{width:0,height:0,top:0,left:0,right:0,bottom:0}}))}),initialState:()=>"idle",on:{PINCH_START:{actions:["setPinchDistance"]},PINCH_MOVE:{actions:["handlePinchMove"]},PINCH_END:{actions:["clearPinchDistance"]},SET_ZOOM:{actions:["updateZoom"]},SET_ROTATION:{actions:["setRotation"]},SET_FLIP:{actions:["setFlip"]},RESIZE_CROP:{guard:"canResizeCrop",actions:["resizeCrop"]},VIEWPORT_RESIZE:{actions:["resizeViewport"]},RESET:{actions:["resetToInitialState"]},ADJUST_ASPECT_RATIO:{guard:"hasViewportRect",actions:["adjustCropAspectRatio"]}},computed:{isMeasured:({context:e})=>Gg(e.get("viewportRect"))&&Gg(e.get("crop")),isImageReady:({context:e})=>Gg(e.get("naturalSize"))},watch({track:e,context:t,prop:r,send:n}){e([()=>r("zoom")],()=>{let e=r("zoom");void 0===e||e!==t.get("zoom")&&n({type:"SET_ZOOM",zoom:e,src:"prop"})}),e([()=>r("aspectRatio"),()=>r("cropShape")],()=>{n({type:"ADJUST_ASPECT_RATIO",src:"prop"})})},states:{idle:{entry:["checkImageStatus"],effects:["trackViewportResize","trackWheelEvent","trackTouchEvents"],on:{SET_NATURAL_SIZE:{actions:["setNaturalSize"]},SET_DEFAULT_CROP:{actions:["setDefaultCrop"]},POINTER_DOWN:{guard:"canDragSelection",target:"dragging",actions:["setPointerStart","setCropStart","setHandlePosition"]},PAN_POINTER_DOWN:{guard:"canPan",target:"panning",actions:["setPointerStart","setOffsetStart"]},ZOOM:{guard:"hasViewportRect",actions:["updateZoom"]},NUDGE_RESIZE_CROP:{guard:"hasViewportRect",actions:["nudgeResizeCrop"]},NUDGE_MOVE_CROP:{guard:"hasViewportRect",actions:["nudgeMoveCrop"]},NUDGE_PAN:{guard:"hasViewportRect",actions:["nudgePan"]}}},dragging:{effects:["trackPointerMove"],on:{POINTER_MOVE:{actions:["updateCrop"]},POINTER_UP:{target:"idle",actions:["clearPointerStart","clearCropStart","clearHandlePosition","clearOffsetStart","clearShiftRatio"]}}},panning:{effects:["trackPointerMove"],on:{POINTER_MOVE:{actions:["updatePanOffset"]},POINTER_UP:{target:"idle",actions:["clearPointerStart","clearOffsetStart"]}}}},implementations:{guards:{hasViewportRect:({context:e})=>Gg(e.get("viewportRect")),canResizeCrop:({context:e,prop:t})=>!t("fixedCropArea")&&Gg(e.get("viewportRect")),canPan:({context:e})=>Gg(e.get("naturalSize"))&&Gg(e.get("viewportRect")),canDragSelection:({context:e,prop:t})=>Gg(e.get("viewportRect"))&&!t("fixedCropArea")},actions:{checkImageStatus({send:e,scope:t,context:r}){let n=r.get("naturalSize"),i=jq(t);if(!i?.complete)return;let{naturalWidth:a,naturalHeight:l}=i;Gg({width:a,height:l})&&!Gg(n)&&e({type:"SET_NATURAL_SIZE",src:"ssr",size:{width:a,height:l}})},setNaturalSize({event:e,context:t,send:r}){t.set("naturalSize",e.size),r({type:"SET_DEFAULT_CROP",src:"init"})},setDefaultCrop({context:e,prop:t,scope:r}){let n,i=jW(r);if(!i)return;let a=GM(i);if(!Gg(a))return;let l=Gu(t("cropShape"),t("aspectRatio")),{minSize:o,maxSize:s}=Gh(t),c=e=>{let t=Gn({cropStart:e,handlePosition:"se",delta:Gw,viewportRect:a,minSize:o,maxSize:s,aspectRatio:l});return{width:t.width,height:t.height}},d=t("initialCrop");if(d){let{width:t,height:r}=c({x:0,y:0,width:d.width,height:d.height}),{x:n,y:i}=GE(d,Gw,Gb({width:t,height:r},a));e.set("crop",{x:n,y:i,width:t,height:r});return}let u=((e,t,r)=>{let n=.8*e.width,i=.8*e.height;if("number"==typeof t&&t>0){if(r){let r=e.height,n=r*t;return n>e.width&&(r=(n=e.width)/t),{width:n,height:r}}return t>n/i?{width:n,height:n/t}:{width:i*t,height:i}}if(r){let t=jK(e.width,e.height);return{width:t,height:t}}return{width:n,height:i}})(a,l,t("fixedCropArea")),h=c({x:0,y:0,width:u.width,height:u.height}),p=h.width,f=h.height,{x:m,y:g}=(n={width:p,height:f},{x:jJ(0,(a.width-n.width)/2),y:jJ(0,(a.height-n.height)/2)});e.set("crop",{x:m,y:g,width:p,height:f}),e.set("viewportRect",a)},setPointerStart({event:e,context:t}){let r=e.point;r&&t.set("pointerStart",r)},setOffsetStart({context:e}){let t=e.get("offset");e.set("offsetStart",{...t})},setCropStart({context:e}){let t=e.get("crop");e.set("cropStart",t)},updateCrop({context:e,event:t,prop:r}){let n,i=e.get("handlePosition"),a=e.get("pointerStart"),l=e.get("cropStart"),o=e.get("viewportRect"),s=r("cropShape"),c=r("aspectRatio"),d=Gu(s,c),{minSize:u,maxSize:h}=Gh(r);if(!a||!l)return;let p=Gk(t.point,a);if(i){if(void 0===c&&"circle"!==s)if(t.shiftKey){let t=e.get("crop"),r=t.width,n=t.height;if(r>0&&n>0){let t=r/n;t>0&&e.set("shiftLockRatio",t)}let i=e.get("shiftLockRatio");null!==i&&i>0&&(d=i)}else e.set("shiftLockRatio",null);else e.set("shiftLockRatio",null);if(t.altKey&&(p={x:2*p.x,y:2*p.y}),n=Gn({cropStart:l,handlePosition:i,delta:p,viewportRect:o,minSize:u,maxSize:h,aspectRatio:d}),t.altKey){let e=Gx(n,GC(l),o);n={...n,x:e.x,y:e.y}}}else n=Gi(l,p,o);e.set("crop",n)},updatePanOffset({context:e,event:t,prop:r}){let n=t.point,i=e.get("pointerStart"),a=e.get("offsetStart");if(!n||!i||!a)return;let l=e.get("zoom"),o=Ga({zoom:l,rotation:e.get("rotation"),viewportSize:e.get("viewportRect"),offset:GP(a,Gk(n,i)),fixedCropArea:r("fixedCropArea"),crop:e.get("crop")});e.set("offset",o)},setHandlePosition({event:e,context:t}){let r=e.handlePosition;r&&t.set("handlePosition",r)},setRotation({context:e,event:t}){let r=ml(t.rotation,0,360);e.set("rotation",r)},setFlip({context:e,event:t}){let r=t.flip;if(!r)return;let n=e.get("flip"),i=Gf(r,n);Gm(i,n)||e.set("flip",i)},resizeCrop({context:e,event:t,prop:r}){let{handlePosition:n,delta:i}=t;if(!n)return;let a=e.get("viewportRect");if(!Gg(a))return;let l=Gu(r("cropShape"),r("aspectRatio")),{minSize:o,maxSize:s}=Gh(r),c=Gn({cropStart:e.get("crop"),handlePosition:n,delta:i,viewportRect:a,minSize:o,maxSize:s,aspectRatio:l});e.set("crop",c)},clearPointerStart({context:e}){e.set("pointerStart",null)},clearCropStart({context:e}){e.set("cropStart",null)},clearHandlePosition({context:e}){e.set("handlePosition",null)},clearOffsetStart({context:e}){e.set("offsetStart",null)},clearShiftRatio({context:e}){e.set("shiftLockRatio",null)},updateZoom({context:e,event:t,prop:r}){let{delta:n,point:i,zoom:a,scale:l,panDelta:o}=t,s=e.get("crop"),c=e.get("zoom"),d=e.get("offset"),u=e.get("rotation"),h=e.get("viewportRect"),p=r("fixedCropArea");i||(i=GC(s));let f=Math.abs(r("zoomStep")),m=Math.max(0,r("zoomSensitivity")),[g,C]=[r("minZoom"),r("maxZoom")],v=(e,t)=>Ga({zoom:e,rotation:u,viewportSize:h,offset:t,fixedCropArea:p,crop:s}),y=(()=>{if("number"==typeof a)return ml(a,g,C);if("touch"===t.trigger&&"number"==typeof l){let e=ml(l,.5,2);return ml(c*(m>0?Math.pow(e,m):e),g,C)}return"number"==typeof n?ml(c+f*(0>Math.sign(n)?1:-1),g,C):null})();if(null===y)return;if(y===c&&o){let t=v(c,GP(d,o));e.set("offset",t);return}if(y===c)return;let{width:b,height:x}=h,{x:O,y:w}=Gv(h),S=y/c,E={x:(1-S)*(i.x-O)+S*d.x,y:(1-S)*(i.y-w)+S*d.y};if(o)E=v(y,GP(E,o));else if(y<c)if(p)E=v(y,E);else{let{width:e,height:t}={width:h.width*y,height:h.height*y};e<=b?E.x=0:E.x=Math.max(b-O-e/2,Math.min(e/2-O,E.x)),t<=x?E.y=0:E.y=Math.max(x-w-t/2,Math.min(t/2-w,E.y))}e.set("zoom",y),e.set("offset",E)},setPinchDistance({context:e,event:t,send:r}){let n=Array.isArray(t.touches)?t.touches:[];if(n.length<2)return;null!==e.get("pointerStart")&&r({type:"POINTER_UP",src:"pinch"});let[i,a]=n,l=GS(i,a),o=e.get("viewportRect"),s=Gy(i,a,{x:o.left,y:o.top});e.set("pinchDistance",l),e.set("pinchMidpoint",s)},handlePinchMove({context:e,event:t,send:r}){let n=Array.isArray(t.touches)?t.touches:[];if(n.length<2)return;let[i,a]=n,l=GS(i,a),o=e.get("pinchDistance"),s=e.get("pinchMidpoint"),c=e.get("viewportRect"),d=Gy(i,a,{x:c.left,y:c.top});if(null!=o&&o>0&&null!=s){let e=o-l,t=Math.abs(e),n=Gk(d,s);r({type:"ZOOM",trigger:"touch",delta:e,scale:t>1?l/o:1,point:d,panDelta:n})}e.set("pinchDistance",l),e.set("pinchMidpoint",d)},clearPinchDistance({context:e}){e.set("pinchDistance",null),e.set("pinchMidpoint",null)},nudgeResizeCrop({context:e,event:t,prop:r}){let{key:n,handlePosition:i,shiftKey:a,ctrlKey:l,metaKey:o}=t,s=e.get("crop"),c=e.get("viewportRect"),d=Gp(r,{shiftKey:a,ctrlKey:l,metaKey:o}),{minSize:u,maxSize:h}=Gh(r),p=function(e,t,r,n,i,a,l){let o={...n},{minWidth:s,minHeight:c,maxWidth:d,maxHeight:u}=Gt({minSize:a,maxSize:l,viewportSize:i}),h=Ge(t);if("ArrowLeft"===e){if(j7(t)){let e=Gl(n,r,d);if(o.x=e.x,o.width=e.width,h&&j6(t)){let e=Go(n,r,u);o.y=e.y,o.height=e.height}else if(h&&j8(t)){let e=o.height+r;o.height=jK(i.height-o.y,jK(u,e))}}else if(j9(t))if(o.width=jJ(s,o.width-r),h&&j6(t)){let e=Gc(n,r,c);o.y=e.y,o.height=e.height}else h&&j8(t)&&(o.height=jJ(c,o.height-r))}else if("ArrowRight"===e){if(j7(t)){let e=Gs(n,r,s);if(o.x=e.x,o.width=e.width,h&&j6(t)){let e=Gc(n,r,c);o.y=e.y,o.height=e.height}else h&&j8(t)&&(o.height=jJ(c,o.height-r))}else if(j9(t)){let e=o.width+r;if(o.width=jK(i.width-o.x,jK(d,e)),h&&j6(t)){let e=Go(n,r,u);o.y=e.y,o.height=e.height}else if(h&&j8(t)){let e=o.height+r;o.height=jK(i.height-o.y,jK(u,e))}}}if("ArrowUp"===e){if(j6(t)){let e=Go(n,r,u);if(o.y=e.y,o.height=e.height,h&&j7(t)){let e=Gl(n,r,d);o.x=e.x,o.width=e.width}else if(h&&j9(t)){let e=o.width+r;o.width=jK(i.width-o.x,jK(d,e))}}else if(j8(t))if(o.height=jJ(c,o.height-r),h&&j7(t)){let e=Gs(n,r,s);o.x=e.x,o.width=e.width}else h&&j9(t)&&(o.width=jJ(s,o.width-r))}else if("ArrowDown"===e){if(j6(t)){let e=Gc(n,r,c);if(o.y=e.y,o.height=e.height,h&&j7(t)){let e=Gs(n,r,s);o.x=e.x,o.width=e.width}else h&&j9(t)&&(o.width=jJ(s,o.width-r))}else if(j8(t)){let e=o.height+r;if(o.height=jK(i.height-o.y,jK(u,e)),h&&j7(t)){let e=Gl(n,r,d);o.x=e.x,o.width=e.width}else if(h&&j9(t)){let e=o.width+r;o.width=jK(i.width-o.x,jK(d,e))}}}return o}(n,i,d,s,c,u,h);e.set("crop",p)},nudgeMoveCrop({context:e,event:t,prop:r}){let{key:n,shiftKey:i,ctrlKey:a,metaKey:l}=t,o=e.get("crop"),s=e.get("viewportRect"),c=Gi(o,Gd(n,Gp(r,{shiftKey:i,ctrlKey:a,metaKey:l})),s);e.set("crop",c)},nudgePan({context:e,event:t,prop:r}){let{key:n,shiftKey:i,ctrlKey:a,metaKey:l}=t,o=e.get("zoom"),s=e.get("rotation"),c=e.get("viewportRect"),d=Gd(n,Gp(r,{shiftKey:i,ctrlKey:a,metaKey:l})),u=Ga({zoom:o,rotation:s,viewportSize:c,offset:GP(e.get("offset"),d),fixedCropArea:r("fixedCropArea"),crop:e.get("crop")});e.set("offset",u)},resizeViewport({context:e,prop:t,scope:r,send:n}){let i=jW(r);if(!i)return;let a=GM(i);if(!Gg(a))return;let l=e.get("viewportRect");if(GO(l,a))return;e.set("viewportRect",a);let o=e.get("crop");if(!Gg(o))return void n({type:"SET_DEFAULT_CROP",src:"viewport-resize"});if(!Gg(l))return;let s=Gu(t("cropShape"),t("aspectRatio")),{minSize:c,maxSize:d}=Gh(t),u={x:a.width/l.width,y:a.height/l.height},h=Gn({cropStart:{x:o.x*u.x,y:o.y*u.y,width:o.width*u.x,height:o.height*u.y},handlePosition:"se",delta:Gw,viewportRect:a,minSize:c,maxSize:d,aspectRatio:s}),p=Gb(h,a),{x:f,y:m}=GE(h,Gw,p);e.set("crop",{x:f,y:m,width:h.width,height:h.height})},resetToInitialState({context:e,send:t}){e.set("zoom",e.initial("zoom")),e.set("rotation",e.initial("rotation")),e.set("flip",e.initial("flip")),e.set("offset",Gw),t({type:"SET_DEFAULT_CROP",src:"reset"})},adjustCropAspectRatio({context:e,prop:t}){let r=e.get("viewportRect");if(!Gg(r))return;let n=e.get("crop");if(!Gg(n))return;let i=Gu(t("cropShape"),t("aspectRatio"));if(void 0===i||.001>j1(n.width/n.height-i))return;let{minSize:a,maxSize:l}=Gh(t),o=Gn({cropStart:n,handlePosition:"se",delta:Gw,viewportRect:r,minSize:a,maxSize:l,aspectRatio:i});if(GO(n,o))return;let s=Gx(o,GC(n),r);e.set("crop",{x:s.x,y:s.y,width:o.width,height:o.height})}},effects:{trackPointerMove:({scope:e,send:t})=>(0,hd.OK)(fH(e.getDoc(),"pointermove",function(e){t({type:"POINTER_MOVE",point:f$(e),target:fP(e),shiftKey:e.shiftKey,altKey:e.altKey})}),fH(e.getDoc(),"pointerup",function(){t({type:"POINTER_UP"})})),trackViewportResize({scope:e,send:t}){let r=jW(e);if(r)return jN.observe(r,()=>{t({type:"VIEWPORT_RESIZE",src:"resize"})})},trackWheelEvent({scope:e,send:t}){let r=jW(e);if(r)return fH(r,"wheel",function(e){if(e.preventDefault(),!r)return;let n=r.getBoundingClientRect(),i={x:e.clientX-n.left,y:e.clientY-n.top};t({type:"ZOOM",trigger:"wheel",delta:e.deltaY,point:i})},{passive:!1})},trackTouchEvents({scope:e,send:t}){let r=jW(e);if(r)return(0,hd.OK)(fH(r,"touchstart",function(e){e.touches.length>=2&&(e.preventDefault(),t({type:"PINCH_START",touches:Array.from(e.touches).map(e=>({x:e.clientX,y:e.clientY}))}))},{passive:!1}),fH(r,"touchmove",function(e){e.touches.length>=2&&(e.preventDefault(),t({type:"PINCH_MOVE",touches:Array.from(e.touches).map(e=>({x:e.clientX,y:e.clientY}))}))},{passive:!1}),fH(r,"touchend",function(e){e.touches.length<2&&t({type:"PINCH_END"})}))}}}}),GM=e=>{let t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,left:t.left,right:t.right,bottom:t.bottom}},GL=uZ("image-cropper").parts("root","viewport","image","selection","handle","grid").build(),GI={rootLabel:"Image cropper",rootRoleDescription:"Image cropper",previewLoading:"Image cropper preview loading",previewDescription({crop:e,zoom:t,rotation:r}){let n=null!=t&&Number.isFinite(t)?`${t.toFixed(2)}x zoom`:"default zoom",i=null!=r&&Number.isFinite(r)?`${Math.round(r)} degrees rotation`:"0 degrees rotation";return`Image cropper preview, ${n}, ${i}. Crop positioned at ${e.x}px from the left and ${e.y}px from the top with a size of ${e.width}px by ${e.height}px.`},selectionLabel:({shape:e})=>`Crop selection area (${"circle"===e?"circle":"rectangle"})`,selectionRoleDescription:"2d slider",selectionInstructions:"Use arrow keys to move the crop. Hold Alt with arrow keys to resize width or height. Press plus or minus to zoom.",selectionValueText:({shape:e,x:t,y:r,width:n,height:i})=>"circle"===e?`Position X ${t}px, Y ${r}px. Diameter ${n}px.`:`Position X ${t}px, Y ${r}px. Size ${n}px by ${i}px.`};function GN(e,t){let{scope:r,send:n,context:i,prop:a,state:l,computed:o}=e,s=l.matches("dragging"),c=l.matches("panning"),d=uz(GI,a("translations")),u=a("fixedCropArea"),h=a("cropShape"),p=i.get("zoom"),f=i.get("rotation"),m=i.get("flip"),g=i.get("crop"),C=i.get("offset"),v=i.get("naturalSize"),y=i.get("viewportRect"),b=o("isImageReady"),x=o("isMeasured"),O={x:j2(g.x),y:j2(g.y),width:j2(g.width),height:j2(g.height)},w=e=>{if("touch"!==e.pointerType)return!1;let t=!1===e.isPrimary,r=null!=i.get("pinchDistance");return t||r};return{zoom:p,rotation:f,flip:m,crop:g,offset:C,naturalSize:v,viewportRect:y,dragging:s,panning:c,setZoom(e){n({type:"SET_ZOOM",zoom:e})},zoomBy(e){n({type:"SET_ZOOM",zoom:p+e})},setRotation(e){n({type:"SET_ROTATION",rotation:e})},rotateBy(e){n({type:"SET_ROTATION",rotation:f+e})},setFlip(e){if(!e)return;let t=Gf(e,m);Gm(t,m)||n({type:"SET_FLIP",flip:t})},flipHorizontally(e){let t="boolean"==typeof e?e:!m.horizontal;t!==m.horizontal&&n({type:"SET_FLIP",flip:{horizontal:t}})},flipVertically(e){let t="boolean"==typeof e?e:!m.vertical;t!==m.vertical&&n({type:"SET_FLIP",flip:{vertical:t}})},resize(e,t){if(!e||u)return;let r=0,i=0;j7(e)?r=-t:j9(e)&&(r=t),j6(e)?i=-t:j8(e)&&(i=t),n({type:"RESIZE_CROP",handlePosition:e,delta:{x:r,y:i}})},reset(){n({type:"RESET"})},getCropData(){let t=jX(e),r=function(e){let t=Object.values(jZ(e)),r=t[0].x,n=t[0].x,i=t[0].y,a=t[0].y;for(let e of t)r=jF(r,e.x),n=jR(n,e.x),i=jF(i,e.y),a=jR(a,e.y);return{x:r,y:i,width:n-r,height:a-i}}(t);return{x:Math.round(r.x),y:Math.round(r.y),width:Math.round(r.width),height:Math.round(r.height),corners:jZ(t),outputSize:jQ(t),rotate:f,flipX:m.horizontal,flipY:m.vertical}},async getCroppedImage(t={}){let{type:r="image/png",quality:n=1,output:i="blob"}=t;if(!Gg(v))return null;let a=function(e,t={}){let r=jq(e.scope);if(!r||!r.complete)return null;let n=jX(e),i=function(e,t){let r=jQ(e);if(!t)return r;let n=jF(1,jR(1,t.width)/r.width,jR(1,t.height)/r.height);return{width:jR(1,jV(r.width*n)),height:jR(1,jV(r.height*n))}}(n,t.maxSize);try{let e=r.ownerDocument.createElement("canvas");if(e.width=i.width,e.height=i.height,e.width!==i.width||e.height!==i.height)return null;let t=e.getContext("2d");if(!t)return null;return!function(e,t,r){let{crop:n}=t,i=jz(t),a=r.width/n.width,l=r.height/n.height;e.setTransform(i.a*a,i.b*l,i.c*a,i.d*l,(i.e-n.x)*a,(i.f-n.y)*l)}(t,n,i),t.drawImage(r,0,0),e}catch{return null}}(e,t);if(!a)return null;try{if("dataUrl"===i){let e=a.toDataURL(r,n);return"data:,"===e?null:e}return await new Promise(e=>{a.toBlob(e,r,n)})}catch{return null}},getRootProps:()=>t.element({...GL.root.attrs,id:jB(r),dir:a("dir"),role:"group","aria-roledescription":d.rootRoleDescription,"aria-label":d.rootLabel,"aria-description":b?d.previewDescription({crop:O,zoom:Number.isFinite(p)?p:null,rotation:Number.isFinite(f)?f:null}):d.previewLoading,"aria-live":"polite","aria-controls":`${jj(r)} ${jU(r)}`,"aria-busy":b?void 0:"true","data-fixed":uF(u),"data-shape":h,"data-pinch":uF(null!=i.get("pinchDistance")),"data-dragging":uF(s),"data-panning":uF(c),style:{"--crop-width":mv(g.width),"--crop-height":mv(g.height),"--crop-x":mv(g.x),"--crop-y":mv(g.y),"--image-zoom":p,"--image-rotation":f,"--image-offset-x":mv(C.x),"--image-offset-y":mv(C.y)}}),getViewportProps(){let e=jj(r);return t.element({...GL.viewport.attrs,id:e,role:"presentation","data-ownedby":jB(r),"data-disabled":uF(!!u),style:{position:"relative",overflow:"hidden",touchAction:"none",userSelect:"none"},onPointerDown(e){if("mouse"===e.pointerType&&0!==e.button||w(e))return;let t=fP(e),i=r.getById(jB(r));if(!t||!i||!u7(i,t))return;let a=r.getById(jU(r));if(!u&&u7(a,t))return;let l=t.closest('[data-scope="image-cropper"][data-part="handle"]');l&&u7(i,l)||n({type:"PAN_POINTER_DOWN",point:f$(e)})}})},getImageProps(){let e=m.horizontal,i=m.vertical,a=function(e){let{a:t,b:r,c:n,d:i,e:a,f:l}=jH(e);return`matrix(${t}, ${r}, ${n}, ${i}, ${a}, ${l})`}({zoom:p,offset:C,rotation:f,flip:m});return t.element({...GL.image.attrs,id:jG(r),draggable:!1,role:"presentation",alt:"","aria-hidden":!0,"data-ownedby":jj(r),"data-ready":uF(b),"data-flip-horizontal":uF(e),"data-flip-vertical":uF(i),onLoad(e){let t=e.currentTarget;if(!t?.complete)return;let{naturalWidth:r,naturalHeight:i}=t;n({type:"SET_NATURAL_SIZE",src:"element",size:{width:r,height:i}})},style:{pointerEvents:"none",userSelect:"none",objectFit:"fill",transform:a,transformOrigin:"center center",willChange:"transform"}})},getSelectionProps(){let e=!!u;return t.element({...GL.selection.attrs,id:jU(r),tabIndex:0,role:"slider","aria-label":d.selectionLabel({shape:h}),"aria-roledescription":d.selectionRoleDescription,"aria-valuemin":0,"aria-valuemax":Gg(y)?Math.max(0,Math.round(y.width-g.width)):Math.max(O.x,0),"aria-valuenow":O.x,"aria-valuetext":d.selectionValueText({shape:h,...O}),"aria-description":d.selectionInstructions,"data-disabled":uF(e),"data-shape":h,"data-measured":uF(x),"data-dragging":uF(s),"data-panning":uF(c),style:{position:"absolute",top:"var(--crop-y)",left:"var(--crop-x)",width:"var(--crop-width)",height:"var(--crop-height)",touchAction:"none",visibility:x?void 0:"hidden"},onPointerDown(t){e?t.preventDefault():w(t)||n({type:"POINTER_DOWN",point:f$(t)})},onKeyDown(t){if(t.defaultPrevented)return;let r="selection",{shiftKey:i,ctrlKey:l,metaKey:o,altKey:s}=t,c=fF(t,{dir:a("dir")}),d="+"===c||"="===c,u="-"===c||"_"===c;if(d||u){n({type:"ZOOM",trigger:"keyboard",delta:d?-1:1}),t.preventDefault();return}if("ArrowUp"===c||"ArrowDown"===c||"ArrowLeft"===c||"ArrowRight"===c){if(e){if(s)return;n({type:"NUDGE_PAN",key:c,src:r,shiftKey:i,ctrlKey:l,metaKey:o}),t.preventDefault();return}if(s){n({type:"NUDGE_RESIZE_CROP",handlePosition:"ArrowUp"===c||"ArrowDown"===c?"s":"e",key:c,src:r,shiftKey:i,ctrlKey:l,metaKey:o}),t.preventDefault();return}n({type:"NUDGE_MOVE_CROP",key:c,src:r,shiftKey:i,ctrlKey:l,metaKey:o}),t.preventDefault()}}})},getHandleProps(e){let i=e.position,a=!!u;return t.element({...GL.handle.attrs,id:r.ids?.handle?.(i)??`image-cropper:${r.id}:handle:${i}`,"data-position":i,"aria-hidden":"true",role:"presentation","data-disabled":uF(a),style:function(e){switch(e){case"n":return{position:"absolute",cursor:"n-resize",width:"96%",top:0,left:"50%",translate:"-50% -50%"};case"e":return{position:"absolute",cursor:"e-resize",height:"96%",right:0,top:"50%",translate:"50% -50%"};case"s":return{position:"absolute",cursor:"s-resize",width:"96%",bottom:0,left:"50%",translate:"-50% 50%"};case"w":return{position:"absolute",cursor:"w-resize",height:"96%",left:0,top:"50%",translate:"-50% -50%"};case"se":return{position:"absolute",cursor:"se-resize",bottom:0,right:0,translate:"50% 50%"};case"sw":return{position:"absolute",cursor:"sw-resize",bottom:0,left:0,translate:"-50% 50%"};case"ne":return{position:"absolute",cursor:"ne-resize",top:0,right:0,translate:"50% -50%"};case"nw":return{position:"absolute",cursor:"nw-resize",top:0,left:0,translate:"-50% -50%"};default:throw Error(`Invalid handlePosition: ${e}`)}}(i),onPointerDown(e){a?e.preventDefault():w(e)||n({type:"POINTER_DOWN",point:f$(e),handlePosition:i})}})},getGridProps(e){let r=e.axis,n=o("isMeasured");return t.element({...GL.grid.attrs,"aria-hidden":"true","data-axis":r,"data-dragging":uF(s),"data-panning":uF(c),style:{position:"absolute",inset:"horizontal"===r?"33.33% 0":"0 33.33%",pointerEvents:"none",visibility:n?void 0:"hidden"}})}}}var GF=p1(),GR=(0,c0.forwardRef)((e,t)=>{let[r,n]=GF(e,["aspectRatio","cropShape","defaultFlip","defaultRotation","defaultZoom","fixedCropArea","flip","id","ids","initialCrop","maxHeight","maxWidth","maxZoom","minHeight","minWidth","minZoom","nudgeStep","nudgeStepCtrl","nudgeStepShift","onCropChange","onFlipChange","onRotationChange","onZoomChange","rotation","translations","zoom","zoomSensitivity","zoomStep"]),i=(e=>{let t=(0,c0.useId)(),{dir:r}=uc(),{getRootNode:n}=uo();return GN(hk(GT,{id:t,dir:r,getRootNode:n,...e}),hA)})(r),a=(0,p8.v)(i.getRootProps(),n);return(0,eB.Y)(jD,{value:i,children:(0,eB.Y)(fr.div,{...a,ref:t})})});GR.displayName="ImageCropperRoot";var GV=p1(),G_=(0,c0.forwardRef)((e,t)=>{let[{value:r},n]=GV(e,["value"]),i=(0,p8.v)(r.getRootProps(),n);return(0,eB.Y)(jD,{value:r,children:(0,eB.Y)(fr.div,{...i,ref:t})})});G_.displayName="ImageCropperRootProvider";var GY=(0,c0.forwardRef)((e,t)=>{let r=jA(),n=(0,p8.v)(r.getSelectionProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});GY.displayName="ImageCropperSelection";var G$=(0,c0.forwardRef)((e,t)=>{let r=jA(),n=(0,p8.v)(r.getViewportProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});G$.displayName="ImageCropperViewport";S=Array.from(new Set(["id","ids","dir","getRootNode","initialCrop","minWidth","minHeight","maxWidth","maxHeight","aspectRatio","cropShape","zoom","rotation","flip","defaultZoom","defaultRotation","defaultFlip","zoomStep","zoomSensitivity","minZoom","maxZoom","onZoomChange","onRotationChange","onFlipChange","onCropChange","fixedCropArea","nudgeStep","nudgeStepShift","nudgeStepCtrl","translations"]));var GH=["nw","n","ne","e","se","s","sw","w"],Gz=pq({Context:()=>jT,Grid:()=>jM,Handle:()=>jL,Image:()=>jI,Root:()=>GR,RootProvider:()=>G_,Selection:()=>GY,Viewport:()=>G$,handles:()=>GH});let GZ=(0,c0.createContext)(null),GQ=()=>{let e=(0,c0.useContext)(GZ);if(!e)throw Error("ImageCropper parts must be rendered inside ImageCropper.");return e},GB=(e,t)=>{let r,n,i=(0,ej.c)(5),{setPartIds:a}=GQ();i[0]!==t||i[1]!==e||i[2]!==a?(r=()=>(a(r=>r[e]===t?r:{...r,[e]:t}),()=>{a(r=>r[e]===t?{...r,[e]:void 0}:r)}),n=[e,t,a],i[0]=t,i[1]=e,i[2]=a,i[3]=r,i[4]=n):(r=i[3],n=i[4]),(0,c0.useLayoutEffect)(r,n)},Gj=({width:e,height:t})=>{if(!Number.isSafeInteger(e)||!Number.isSafeInteger(t)||e<=0||t<=0)throw RangeError("ImageCropper outputSize must contain positive integer dimensions.")},GG=async(e,t,r,{type:n="image/png",quality:i=.92}={})=>{if(Gj(r),!e.complete||!e.naturalWidth||!e.naturalHeight||t.width<=0||t.height<=0)return null;try{let a=e.ownerDocument.createElement("canvas");if(a.width=r.width,a.height=r.height,a.width!==r.width||a.height!==r.height)return null;let l=a.getContext("2d");if(!l)return null;return l.imageSmoothingEnabled=!0,l.imageSmoothingQuality="high",l.drawImage(e,t.x,t.y,t.width,t.height,0,0,r.width,r.height),await new Promise(e=>a.toBlob(e,n,i))}catch{return null}},GU=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g,C,v,y,b,x,O,w,S,E,k,P,D,A,T,M,L,I,N,F,R=(0,ej.c)(101);R[0]!==e?({outputSize:a,zoom:h,defaultZoom:s,minZoom:c,maxZoom:d,onZoomChange:i,ref:o,id:n,className:r,children:t,"data-testid":u,...l}=e,R[0]=e,R[1]=t,R[2]=r,R[3]=n,R[4]=i,R[5]=a,R[6]=l,R[7]=o,R[8]=s,R[9]=c,R[10]=d,R[11]=u,R[12]=h):(t=R[1],r=R[2],n=R[3],i=R[4],a=R[5],l=R[6],o=R[7],s=R[8],c=R[9],d=R[10],u=R[11],h=R[12]);let V=void 0===s?1:s,_=void 0===c?1:c,Y=void 0===d?5:d;if(Gj(a),!Number.isFinite(_)||!Number.isFinite(Y)||_<1||Y<_)throw RangeError("ImageCropper requires 1 <= minZoom <= maxZoom.");R[13]===Symbol.for("react.memo_cache_sentinel")?(p={width:0,height:0},R[13]=p):p=R[13];let[$,H]=(0,c0.useState)(p),[z,Z]=(0,c0.useState)(null),[Q,B]=(0,c0.useState)(null);R[14]===Symbol.for("react.memo_cache_sentinel")?(f={},R[14]=f):f=R[14];let[j,G]=(0,c0.useState)(f),U=z?.width&&z.height?z:a;if(R[15]!==$||R[16]!==U){let e,t;e=Math.max($.width/U.width,$.height/U.height),m={viewport:t={width:U.width*e,height:U.height*e},crop:{x:(t.width-$.width)/2,y:(t.height-$.height)/2,...$}},R[15]=$,R[16]=U,R[17]=m}else m=R[17];let W=m,q=void 0===h?void 0:Math.min(Y,Math.max(_,h));if(void 0!==q&&!Number.isFinite(q))throw RangeError("ImageCropper zoom must be finite.");R[18]!==n||R[19]!==j?(g={...j,root:n},R[18]=n,R[19]=j,R[20]=g):g=R[20];let X=a.width/a.height,K=$.width,J=$.width,ee=$.height,et=$.height,er=Math.min(Y,Math.max(_,V));R[21]!==i?(C=e=>i?.(e.zoom),R[21]=i,R[22]=C):C=R[22],R[23]===Symbol.for("react.memo_cache_sentinel")?(v={selectionInstructions:"Use arrow keys to position the image. Hold Shift for larger steps. Press plus or minus to zoom."},R[23]=v):v=R[23],R[24]!==q||R[25]!==$.height||R[26]!==$.width||R[27]!==Y||R[28]!==_||R[29]!==er||R[30]!==C||R[31]!==g||R[32]!==X?(y={ids:g,fixedCropArea:!0,aspectRatio:X,minWidth:K,maxWidth:J,minHeight:ee,maxHeight:et,minZoom:_,maxZoom:Y,zoom:q,defaultZoom:er,onZoomChange:C,translations:v},R[24]=q,R[25]=$.height,R[26]=$.width,R[27]=Y,R[28]=_,R[29]=er,R[30]=C,R[31]=g,R[32]=X,R[33]=y):y=R[33];let en=(e=>{let t,r,n=(0,ej.c)(9),i=(0,c0.useId)(),{dir:a}=uc(),{getRootNode:l}=uo(),o=(0,c0.useRef)(null),s=(0,c0.useRef)(!1),c=hk(GT,{id:i,dir:a,getRootNode:l,...e,onZoomChange:t=>{s.current||t.zoom===e.zoom||(void 0!==e.zoom&&null===o.current&&(o.current={...c.context.get("offset")}),e.onZoomChange?.(t))}}),d=GN(c,hA);return n[0]!==d.zoom||n[1]!==o||n[2]!==e.zoom||n[3]!==c?(t=()=>{void 0!==e.zoom&&d.zoom!==e.zoom&&o.current&&(s.current=!0,c.context.set("zoom",e.zoom),c.context.set("offset",o.current),s.current=!1),o.current=null},n[0]=d.zoom,n[1]=o,n[2]=e.zoom,n[3]=c,n[4]=t):t=n[4],n[5]!==d.zoom||n[6]!==e.zoom||n[7]!==c?(r=[d.zoom,e.zoom,c],n[5]=d.zoom,n[6]=e.zoom,n[7]=c,n[8]=r):r=n[8],(0,c0.useLayoutEffect)(t,r),d})(y),ei=$.width>0&&$.height>0&&.5>Math.abs(en.viewportRect.width-W.viewport.width)&&.5>Math.abs(en.viewportRect.height-W.viewport.height),ea=`${z?.src}:${z?.width}:${z?.height}:${$.width}:${$.height}:${a.width/a.height}`,el=(0,c0.useRef)(""),eo=(0,c0.useRef)(void 0);R[34]!==en||R[35]!==ei||R[36]!==ea||R[37]!==z?.src?(b=()=>{let e=eo.current!==z?.src;eo.current=z?.src,(e||ei&&el.current!==ea)&&(el.current=ei?ea:"",en.reset())},R[34]=en,R[35]=ei,R[36]=ea,R[37]=z?.src,R[38]=b):b=R[38];let es=z?.src;R[39]!==en||R[40]!==ei||R[41]!==ea||R[42]!==es?(x=[en,ei,ea,es],R[39]=en,R[40]=ei,R[41]=ea,R[42]=es,R[43]=x):x=R[43],(0,c0.useLayoutEffect)(b,x);let ec=z?.status==="loaded"&&z.width>0&&z.height>0&&en.naturalSize.width===z.width&&en.naturalSize.height===z.height&&ei&&.5>Math.abs(en.crop.x-W.crop.x)&&.5>Math.abs(en.crop.y-W.crop.y)&&.5>Math.abs(en.crop.width-$.width)&&.5>Math.abs(en.crop.height-$.height),ed=W.viewport.width>0?U.width/W.viewport.width:1,eu=$.width*ed/en.zoom,eh=$.height*ed/en.zoom,ep=((en.crop.x-en.offset.x-W.viewport.width/2)/en.zoom+W.viewport.width/2)*ed,ef=((en.crop.y-en.offset.y-W.viewport.height/2)/en.zoom+W.viewport.height/2)*ed,em=Math.max(0,U.width-eu),eg=Math.max(0,U.height-eh),eC=!ec||void 0,ev=z?.status??"loading";R[44]!==r?(O=(0,m2.cn)("flex min-w-0 flex-col items-center gap-24",r),R[44]=r,R[45]=O):O=R[45];let ey=W.viewport;R[46]!==em||R[47]!==ep||R[48]!==ef||R[49]!==eg?(w=Math.round(em>=eg?ep:ef),R[46]=em,R[47]=ep,R[48]=ef,R[49]=eg,R[50]=w):w=R[50];let eb=Math.max(0,w);R[51]!==em||R[52]!==eg?(S=Math.round(Math.max(em,eg)),R[51]=em,R[52]=eg,R[53]=S):S=R[53],R[54]!==ep?(E=Math.round(ep),R[54]=ep,R[55]=E):E=R[55];let ex=Math.max(0,E);R[56]!==ef?(k=Math.round(ef),R[56]=ef,R[57]=k):k=R[57];let eO=Math.max(0,k);R[58]!==en.zoom?(P=Math.round(100*en.zoom),R[58]=en.zoom,R[59]=P):P=R[59];let ew=`Image position X ${ex}, Y ${eO} pixels. Zoom ${P}%.`;return R[60]!==eb||R[61]!==S||R[62]!==ew?(D={value:eb,max:S,text:ew},R[60]=eb,R[61]=S,R[62]=ew,R[63]=D):D=R[63],R[64]!==en||R[65]!==Y||R[66]!==_?(A=e=>{Number.isFinite(e)&&en.setZoom(Math.min(Y,Math.max(_,e)))},R[64]=en,R[65]=Y,R[66]=_,R[67]=A):A=R[67],R[68]!==en||R[69]!==Q||R[70]!==a||R[71]!==ec||R[72]!==z?.src?(T=async e=>{if(!ec||!Q||Q.getAttribute("src")!==z?.src)return null;let t=Q.currentSrc||Q.src,{topLeft:r,topRight:n,bottomLeft:i}=en.getCropData().corners,l=await GG(Q,{x:r.x,y:r.y,width:n.x-r.x,height:i.y-r.y},a,e);return Q.isConnected&&(Q.currentSrc||Q.src)===t?l:null},R[68]=en,R[69]=Q,R[70]=a,R[71]=ec,R[72]=z?.src,R[73]=T):T=R[73],R[74]!==en.reset||R[75]!==en.zoom||R[76]!==ec||R[77]!==A||R[78]!==T?(M={ready:ec,zoom:en.zoom,setZoom:A,reset:en.reset,getCroppedImage:T},R[74]=en.reset,R[75]=en.zoom,R[76]=ec,R[77]=A,R[78]=T,R[79]=M):M=R[79],R[80]!==W.viewport||R[81]!==a||R[82]!==z||R[83]!==D||R[84]!==M?(L={outputSize:a,viewportSize:ey,source:z,setSource:Z,setFrameSize:H,setImage:B,setPartIds:G,selection:D,api:M},R[80]=W.viewport,R[81]=a,R[82]=z,R[83]=D,R[84]=M,R[85]=L):L=R[85],R[86]!==t||R[87]!==L?(I=(0,eB.Y)(GZ,{value:L,children:t}),R[86]=t,R[87]=L,R[88]=I):I=R[88],R[89]!==I||R[90]!==u?(N=(0,eB.Y)(m3,{value:u,children:I}),R[89]=I,R[90]=u,R[91]=N):N=R[91],R[92]!==en||R[93]!==l||R[94]!==o||R[95]!==eC||R[96]!==ev||R[97]!==O||R[98]!==N||R[99]!==u?(F=(0,eB.Y)(Gz.RootProvider,{...l,value:en,ref:o,"aria-busy":eC,"data-slot":"image-cropper","data-testid":u,"data-state":ev,className:O,children:N}),R[92]=en,R[93]=l,R[94]=o,R[95]=eC,R[96]=ev,R[97]=O,R[98]=N,R[99]=u,R[100]=F):F=R[100],F},"ImageCropper");GU.displayName="ImageCropper";let GW=e=>{let t,r=(0,ej.c)(3),{children:n}=e,i=GQ();return r[0]!==n||r[1]!==i.api?(t=n(i.api),r[0]=n,r[1]=i.api,r[2]=t):t=r[2],t};GW.displayName="ImageCropperContext";let Gq=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u=(0,ej.c)(16);u[0]!==e?({ref:n,className:t,"data-testid":i,...r}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=i):(t=u[1],r=u[2],n=u[3],i=u[4]);let h=m5("grid",i);return u[5]!==t?(a=(0,m2.cn)("pointer-events-none absolute inset-0",t),u[5]=t,u[6]=a):a=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(l=(0,eB.Y)("span",{className:"absolute inset-y-0 left-1/3 border-l border-border-primary/60"}),o=(0,eB.Y)("span",{className:"absolute inset-y-0 left-2/3 border-l border-border-primary/60"}),s=(0,eB.Y)("span",{className:"absolute inset-x-0 top-1/3 border-t border-border-primary/60"}),c=(0,eB.Y)("span",{className:"absolute inset-x-0 top-2/3 border-t border-border-primary/60"}),u[7]=l,u[8]=o,u[9]=s,u[10]=c):(l=u[7],o=u[8],s=u[9],c=u[10]),u[11]!==r||u[12]!==n||u[13]!==a||u[14]!==h?(d=(0,eB.FD)("div",{...r,ref:n,"aria-hidden":"true","data-slot":"image-cropper-grid","data-testid":h,className:a,children:[l,o,s,c]}),u[11]=r,u[12]=n,u[13]=a,u[14]=h,u[15]=d):d=u[15],d},"ImageCropperGrid");Gq.displayName="ImageCropperGrid";let GX=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m,g=(0,ej.c)(35);g[0]!==e?({ref:l,id:r,src:o,alt:s,className:t,onLoad:i,onError:n,"data-testid":c,...a}=e,g[0]=e,g[1]=t,g[2]=r,g[3]=n,g[4]=i,g[5]=a,g[6]=l,g[7]=o,g[8]=s,g[9]=c):(t=g[1],r=g[2],n=g[3],i=g[4],a=g[5],l=g[6],o=g[7],s=g[8],c=g[9]);let C=void 0===s?"":s,{source:v,setSource:y,setImage:b}=GQ(),[x,O]=(0,c0.useState)(null),w=(0,b8.s)(l,O,b),S=m5("image",c);GB("image",r),g[10]!==x||g[11]!==y||g[12]!==o?(d=()=>(y({src:o??"",status:"loading",width:0,height:0}),x?.complete&&x.naturalWidth&&x.naturalHeight&&x.currentSrc&&x.currentSrc===x.src&&y({src:o??"",status:"loaded",width:x.naturalWidth,height:x.naturalHeight}),()=>y(null)),u=[o,x,y],g[10]=x,g[11]=y,g[12]=o,g[13]=d,g[14]=u):(d=g[13],u=g[14]),(0,c0.useLayoutEffect)(d,u);let E=v&&v.src===o?v.status:"loading";return g[15]!==t?(h=(0,m2.cn)("block size-full select-none data-[state=loading]:invisible data-[state=error]:invisible",t),g[15]=t,g[16]=h):h=g[16],g[17]!==i||g[18]!==y||g[19]!==o?(p=e=>{let t=e.currentTarget;y({src:o??"",status:"loaded",width:t.naturalWidth,height:t.naturalHeight}),i?.(e)},g[17]=i,g[18]=y,g[19]=o,g[20]=p):p=g[20],g[21]!==n||g[22]!==y||g[23]!==o?(f=e=>{y({src:o??"",status:"error",width:0,height:0}),n?.(e)},g[21]=n,g[22]=y,g[23]=o,g[24]=f):f=g[24],g[25]!==C||g[26]!==w||g[27]!==a||g[28]!==o||g[29]!==E||g[30]!==h||g[31]!==p||g[32]!==f||g[33]!==S?(m=(0,eB.Y)(Gz.Image,{...a,ref:w,src:o,alt:C,"data-slot":"image-cropper-image","data-testid":S,"data-state":E,className:h,onLoad:p,onError:f}),g[25]=C,g[26]=w,g[27]=a,g[28]=o,g[29]=E,g[30]=h,g[31]=p,g[32]=f,g[33]=S,g[34]=m):m=g[34],m},"ImageCropperImage");GX.displayName="ImageCropperImage";let GK=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(24);d[0]!==e?({ref:a,id:r,className:t,onPointerDownCapture:n,"data-testid":l,...i}=e,d[0]=e,d[1]=t,d[2]=r,d[3]=n,d[4]=i,d[5]=a,d[6]=l):(t=d[1],r=d[2],n=d[3],i=d[4],a=d[5],l=d[6]);let{api:u,selection:h}=GQ(),p=m5("selection",l);GB("selection",r);let f=u.ready?0:-1,m=!u.ready||void 0,g=i["aria-label"]??"Position image",C=h.value,v=h.max,y=i["aria-valuetext"]??h.text;return d[7]!==u.ready||d[8]!==n?(o=e=>{n?.(e),u.ready&&!e.defaultPrevented&&0===e.button&&!1!==e.isPrimary&&e.currentTarget.focus({preventScroll:!0})},d[7]=u.ready,d[8]=n,d[9]=o):o=d[9],d[10]!==t?(s=(0,m2.cn)("outline-none focus-visible:ring-3 focus-visible:ring-inset focus-visible:ring-focus-primary",t),d[10]=t,d[11]=s):s=d[11],d[12]!==i||d[13]!==a||d[14]!==h.max||d[15]!==h.value||d[16]!==f||d[17]!==m||d[18]!==g||d[19]!==y||d[20]!==o||d[21]!==s||d[22]!==p?(c=(0,eB.Y)(Gz.Selection,{...i,ref:a,tabIndex:f,"aria-disabled":m,"aria-label":g,"aria-valuenow":C,"aria-valuemax":v,"aria-valuetext":y,onPointerDownCapture:o,"data-slot":"image-cropper-selection","data-testid":p,className:s}),d[12]=i,d[13]=a,d[14]=h.max,d[15]=h.value,d[16]=f,d[17]=m,d[18]=g,d[19]=y,d[20]=o,d[21]=s,d[22]=p,d[23]=c):c=d[23],c},"ImageCropperSelection");GK.displayName="ImageCropperSelection";let GJ=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d,u,h,p,f,m=(0,ej.c)(31);m[0]!==e?({ref:a,id:n,className:r,children:t,style:l,"data-testid":o,...i}=e,m[0]=e,m[1]=t,m[2]=r,m[3]=n,m[4]=i,m[5]=a,m[6]=l,m[7]=o):(t=m[1],r=m[2],n=m[3],i=m[4],a=m[5],l=m[6],o=m[7]);let{outputSize:g,viewportSize:C,setFrameSize:v}=GQ(),[y,b]=(0,c0.useState)(null),x=m5("viewport",o),O=m5("frame");GB("viewport",n),m[8]!==y||m[9]!==v?(s=()=>{if(!y)return;let e=()=>{let{width:e,height:t}=y.getBoundingClientRect();v(r=>r.width===e&&r.height===t?r:{width:e,height:t})};e();let t=new ResizeObserver(e);return t.observe(y),()=>t.disconnect()},c=[y,v],m[8]=y,m[9]=v,m[10]=s,m[11]=c):(s=m[10],c=m[11]),(0,c0.useLayoutEffect)(s,c),m[12]!==r?(d=(0,m2.cn)("relative w-[240px] max-w-full overflow-hidden rounded-12 bg-bg-surface-2",r),m[12]=r,m[13]=d):d=m[13];let w=g.width/g.height;return m[14]!==w?(u={aspectRatio:w},m[14]=w,m[15]=u):u=m[15],m[16]!==l||m[17]!==C.height||m[18]!==C.width?(h={...l,width:C.width,height:C.height},m[16]=l,m[17]=C.height,m[18]=C.width,m[19]=h):h=m[19],m[20]!==t||m[21]!==i||m[22]!==a||m[23]!==h||m[24]!==x?(p=(0,eB.Y)(Gz.Viewport,{...i,ref:a,"data-slot":"image-cropper-viewport","data-testid":x,className:"absolute! top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 cursor-grab data-panning:cursor-grabbing",style:h,children:t}),m[20]=t,m[21]=i,m[22]=a,m[23]=h,m[24]=x,m[25]=p):p=m[25],m[26]!==O||m[27]!==d||m[28]!==u||m[29]!==p?(f=(0,eB.Y)("div",{ref:b,"data-slot":"image-cropper-frame","data-testid":O,className:d,style:u,children:p}),m[26]=O,m[27]=d,m[28]=u,m[29]=p,m[30]=f):f=m[30],f},"ImageCropperViewport");GJ.displayName="ImageCropperViewport";let G1=(0,m9.F)("inline-block shrink-0 rounded-2",{variants:{size:{sm:"size-6",md:"size-8"},color:{info:"bg-icon-info",brand:"bg-icon-brand",warning:"bg-icon-warning",success:"bg-icon-success",ai:"bg-icon-ai",danger:"bg-icon-danger"}},defaultVariants:{size:"sm",color:"info"}}),G2=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s=(0,ej.c)(14);s[0]!==e?({ref:n,className:t,size:i,color:a,...r}=e,s[0]=e,s[1]=t,s[2]=r,s[3]=n,s[4]=i,s[5]=a):(t=s[1],r=s[2],n=s[3],i=s[4],a=s[5]);let c=void 0===i?"sm":i,d=void 0===a?"info":a;return s[6]!==t||s[7]!==d||s[8]!==c?(l=(0,m2.cn)(G1({size:c,color:d}),t),s[6]=t,s[7]=d,s[8]=c,s[9]=l):l=s[9],s[10]!==r||s[11]!==n||s[12]!==l?(o=(0,eB.Y)("span",{...r,ref:n,className:l,"data-slot":"indicator"}),s[10]=r,s[11]=n,s[12]=l,s[13]=o):o=s[13],o},"Indicator");G2.displayName="Indicator";let G0=(0,c0.createContext)(null),G3=G0.Provider;function G5(){let e=(0,c0.useContext)(G0);if(!e)throw Error("useInlineEdit must be used within <InlineEdit>");return e}function G4(e){let t,r,n=(0,ej.c)(4),{registerSubmitModeOverride:i}=G5();n[0]!==e||n[1]!==i?(t=()=>i(e),r=[e,i],n[0]=e,n[1]=i,n[2]=t,n[3]=r):(t=n[2],r=n[3]),(0,c0.useLayoutEffect)(t,r)}let G7=(0,eQ.G)(function({value:e,defaultValue:t,onValueChange:r,onValueCommit:n,onValueRevert:i,onBeforeValueCommit:a,edit:l,defaultEdit:o=!1,onEditChange:s,activationMode:c="click",submitMode:d="both",selectOnFocus:u=!0,status:h,savedDuration:p=2e3,disabled:f=!1,readOnly:m=!1,className:g,children:C,ref:v,"data-testid":y}){let b=m5(void 0,y),[x,O]=(0,Rh.q)({controlled:e,default:t}),[w,S]=(0,Rh.q)({controlled:l,default:o}),[E,k]=(0,c0.useState)(x),P=(0,c0.useRef)(x),[D,A]=(0,c0.useState)("idle"),[T,M]=(0,c0.useState)(void 0),[L,I]=(0,c0.useState)(null),N=(0,c0.useRef)(null);N.current=L;let F=(0,c0.useCallback)(e=>{N.current;let t={token:Symbol("inline-edit-submit-mode"),mode:e};return I(t),()=>{I(e=>e?.token===t.token?null:e)}},[]),R=(0,c0.useRef)(null),V=(0,c0.useCallback)(()=>null!==R.current,[]),_=(0,c0.useRef)(n);_.current=n;let Y=(0,c0.useRef)(a);Y.current=a;let $=(0,c0.useRef)(p);$.current=p;let H=(0,c0.useRef)(null),z=(0,c0.useRef)(!0);(0,c0.useEffect)(()=>(z.current=!0,()=>{z.current=!1,H.current&&clearTimeout(H.current)}),[]);let Z=h??D,Q="error"===Z||!!T,B=(0,c0.useCallback)(e=>{S(e),s?.(e)},[S,s]),j=(0,c0.useCallback)(e=>{P.current=e,k(e),r?.(e)},[r]),G=(0,c0.useCallback)(()=>{f||m||(R.current=null,P.current=x,k(x),A("idle"),M(void 0),B(!0))},[f,m,x,B]),U=(0,c0.useCallback)(()=>{R.current=null,P.current=x,k(x),A("idle"),M(void 0),B(!1),i?.(x)},[x,B,i]),W=(0,c0.useCallback)(()=>{let e;if(R.current||(h??D)==="loading")return;let t=P.current,r=Symbol("inline-edit-commit"),n=e=>{R.current=null,A("error"),M(e instanceof Error?e.message:"Failed to save")},i=()=>{let e=_.current?.(t);if(e&&"function"==typeof e.then){A("loading"),M(void 0),Promise.resolve(e).then(()=>{z.current&&R.current===r&&(R.current=null,O(t),B(!1),A("saved"),H.current&&clearTimeout(H.current),H.current=setTimeout(()=>{z.current&&A("idle")},$.current))},e=>{z.current&&R.current===r&&n(e)});return}R.current=null,O(t),B(!1)};R.current=r;let a=Y.current;if(!a)return void i();try{e=a(t,x)}catch(e){n(e);return}if(e&&"function"==typeof e.then)return void e.then(e=>{if(z.current&&R.current===r){if(!1===e||P.current!==t){R.current=null;return}i()}},e=>{z.current&&R.current===r&&n(e)});if(!1===e){R.current=null;return}i()},[O,B,h,D,x]),q=(0,c0.useMemo)(()=>({editing:!!w,value:E,committedValue:x,status:Z,invalid:Q,error:T,disabled:f,readOnly:m,activationMode:c,submitMode:L?.mode??d,selectOnFocus:u,isCommitPending:V,setValue:j,edit:G,submit:W,cancel:U,registerSubmitModeOverride:F}),[w,E,x,Z,Q,T,f,m,c,d,L,u,V,j,G,W,U,F]);return(0,eB.Y)(G3,{value:q,children:(0,eB.Y)(m3,{value:b,children:(0,eB.Y)("div",{ref:v,"data-testid":b,"data-slot":"inline-edit","data-editing":w?"":void 0,className:(0,m2.cn)("flex w-full min-w-0 flex-col",g),children:C})})})},"InlineEdit");G7.displayName="InlineEdit";let G9=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c,d=(0,ej.c)(15),{onSubmit:u,onCancel:h}=e;return d[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,eB.Y)(t4,{className:"text-icon-secondary"}),d[0]=t):t=d[0],d[1]!==u?(r=(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{size:"small",variant:"outline",color:"neutral",className:"rounded-r-none border-r-0",onClick:u,"aria-label":"Save",tabIndex:-1,children:t})}),d[1]=u,d[2]=r):r=d[2],d[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,eB.FD)(bm,{children:["Save ",(0,eB.Y)(LA,{children:"↵"})]}),d[3]=n):n=d[3],d[4]!==r?(i=(0,eB.FD)(bC,{children:[r,n]}),d[4]=r,d[5]=i):i=d[5],d[6]===Symbol.for("react.memo_cache_sentinel")?(a=(0,eB.Y)(cN.X,{className:"text-icon-secondary"}),d[6]=a):a=d[6],d[7]!==h?(l=(0,eB.Y)(bo,{asChild:!0,children:(0,eB.Y)(vn.$,{size:"small",variant:"outline",color:"neutral",className:"rounded-l-none",onClick:h,"aria-label":"Cancel",tabIndex:-1,children:a})}),d[7]=h,d[8]=l):l=d[8],d[9]===Symbol.for("react.memo_cache_sentinel")?(o=(0,eB.FD)(bm,{children:["Discard ",(0,eB.Y)(LA,{children:"ESC"})]}),d[9]=o):o=d[9],d[10]!==l?(s=(0,eB.FD)(bC,{closeOnEscape:!1,children:[l,o]}),d[10]=l,d[11]=s):s=d[11],d[12]!==i||d[13]!==s?(c=(0,eB.FD)("div",{className:"absolute right-0 top-full mt-4 flex z-10","data-slot":"inline-edit-actions",onKeyDown:G6,children:[i,s]}),d[12]=i,d[13]=s,d[14]=c):c=d[14],c},"InlineEditActions");function G6(e){return e.stopPropagation()}G9.displayName="InlineEditActions";let G8=(0,eQ.G)(({showActions:e=!0,ref:t,children:r,className:n,onKeyDown:i,onBlur:a,submitMode:l,...o})=>{let s=m5("control"),c=G5(),{editing:d,selectOnFocus:u,submit:h,cancel:p,isCommitPending:f}=c,m=l??c.submitMode,g=(0,c0.useRef)(null),C=(0,c0.useRef)(u);C.current=u,(0,c0.useEffect)(()=>{if(!d)return;let e=g.current;if(!e)return;let t=e.querySelector('input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), button:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])');if(!t)return;let r=function(e){let t=e.getAttribute("aria-controls");if(!t)return null;let r=document.getElementById(t);return r?.getAttribute("role")==="listbox"?r:null}(t)??t;r.focus(),C.current&&(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement)&&r.select()},[d]);let v=(0,c0.useCallback)(e=>{g.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]);if(!d)return null;let y="enter"===m||"both"===m,b="blur"===m||"both"===m;return(0,eB.FD)("div",{...o,ref:v,"data-testid":s,"data-slot":"inline-edit-control",onKeyDown:e=>{if(i?.(e),!e.defaultPrevented){if("Escape"===e.key){e.preventDefault(),p();return}if("Enter"===e.key&&y){if("TEXTAREA"===e.target.tagName&&!e.metaKey&&!e.ctrlKey)return;e.preventDefault(),h()}}},onBlur:e=>{a?.(e),e.defaultPrevented||e.currentTarget.contains(e.relatedTarget)||f()||(b?h():"none"!==m&&p())},className:(0,m2.cn)("w-full min-w-0 relative","[&_[data-slot=input]]:px-6","[&_textarea]:px-6","[&_[data-scope=number-input][data-part=input]]:px-6","[&_[data-scope=select][data-part=trigger]]:px-6","[&_div[data-scope=select][data-part=trigger]:has([data-slot=overflow-list])]:pl-0","[&_[data-slot=input-group-addon]]:px-6","[&_[data-slot=input-group]>div:not([data-slot])]:pl-0",n),children:["function"==typeof r?r(c):r,e&&(0,eB.Y)(G9,{onSubmit:h,onCancel:p})]})},"InlineEditControl");G8.displayName="InlineEditControl";let Ue=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(11),{children:l}=e,{value:o,setValue:s,submit:c}=G5();return G4("none"),a[0]!==o?(t=o?[o]:[],a[0]=o,a[1]=t):t=a[1],a[2]!==s?(r=e=>s(e[0]??null),a[2]=s,a[3]=r):r=a[3],a[4]!==c?(n=e=>{e||c()},a[4]=c,a[5]=n):n=a[5],a[6]!==l||a[7]!==t||a[8]!==r||a[9]!==n?(i=(0,eB.Y)(Du,{type:"single",defaultOpen:!0,closeOnSelect:!0,value:t,onChange:r,onOpenChange:n,children:l}),a[6]=l,a[7]=t,a[8]=r,a[9]=n,a[10]=i):i=a[10],i},"InlineEditDate");Ue.displayName="InlineEditDate";let Ut=(0,eQ.G)(e=>{let t,r,n,i,a=(0,ej.c)(11),{children:l}=e,{value:o,setValue:s,submit:c}=G5();return G4("none"),a[0]!==o?(t=o?[o]:[],a[0]=o,a[1]=t):t=a[1],a[2]!==s?(r=e=>s(e[0]??null),a[2]=s,a[3]=r):r=a[3],a[4]!==c?(n=e=>{e||c()},a[4]=c,a[5]=n):n=a[5],a[6]!==l||a[7]!==t||a[8]!==r||a[9]!==n?(i=(0,eB.Y)(Du,{type:"single",defaultOpen:!0,showTime:!0,closeOnSelect:!1,value:t,onChange:r,onOpenChange:n,children:l}),a[6]=l,a[7]=t,a[8]=r,a[9]=n,a[10]=i):i=a[10],i},"InlineEditDateTime");Ut.displayName="InlineEditDateTime";let Ur=(0,eQ.G)(e=>{let t,r,n,i,a,l,o,s,c=(0,ej.c)(16);c[0]!==e?({ref:i,children:t,className:r,...n}=e,c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=i):(t=c[1],r=c[2],n=c[3],i=c[4]);let d=m5("error"),{invalid:u,error:h}=G5(),p=t??h;return u&&p?(c[5]!==r?(a=(0,m2.cn)("flex items-center gap-4 pt-4",r),c[5]=r,c[6]=a):a=c[6],c[7]===Symbol.for("react.memo_cache_sentinel")?(l=(0,eB.Y)(lD,{size:"md",className:"shrink-0 text-icon-danger"}),c[7]=l):l=c[7],c[8]!==p?(o=(0,eB.Y)(bk.E,{size:"sm",color:"danger",children:p}),c[8]=p,c[9]=o):o=c[9],c[10]!==n||c[11]!==i||c[12]!==a||c[13]!==o||c[14]!==d?(s=(0,eB.FD)("div",{...n,ref:i,"data-testid":d,"data-slot":"inline-edit-error",className:a,children:[l,o]}),c[10]=n,c[11]=i,c[12]=a,c[13]=o,c[14]=d,c[15]=s):s=c[15],s):null},"InlineEditError");Ur.displayName="InlineEditError";let Un=(0,eQ.G)(e=>{let t,r,n,i,a,l=(0,ej.c)(13);l[0]!==e?({size:r,"data-testid":n,...t}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=n):(t=l[1],r=l[2],n=l[3]);let o=void 0===r?"inline-edit":r,s=m5("input",n),{value:c,setValue:d,invalid:u}=G5(),h=c??"";return l[4]!==d?(i=e=>d(e.target.value),l[4]=d,l[5]=i):i=l[5],l[6]!==u||l[7]!==t||l[8]!==o||l[9]!==h||l[10]!==i||l[11]!==s?(a=(0,eB.Y)(SP.p,{...t,"data-testid":s,value:h,onChange:i,error:u,size:o}),l[6]=u,l[7]=t,l[8]=o,l[9]=h,l[10]=i,l[11]=s,l[12]=a):a=l[12],a},"InlineEditInput");Un.displayName="InlineEditInput";var[Ui,Ua]=(0,ua.q)({name:"NumberInputContext",hookName:"useNumberInputContext",providerName:"<NumberInputProvider />"}),Ul=e=>e.children(Ua()),Uo=(0,c0.forwardRef)((e,t)=>{let r=Ua(),n=(0,p8.v)(r.getControlProps(),e);return(0,eB.Y)(fr.div,{...n,ref:t})});Uo.displayName="NumberInputControl";var Us=(0,c0.forwardRef)((e,t)=>{let r=Ua(),n=(0,p8.v)(r.getDecrementTriggerProps(),e);return(0,eB.Y)(fr.button,{...n,ref:t})});Us.displayName="NumberInputDecrementTrigger";var Uc=(0,c0.forwardRef)((e,t)=>{let r=Ua(),n=(0,p8.v)(r.getIncrementTriggerProps(),e);return(0,eB.Y)(fr.button,{...n,ref:t})});Uc.displayName="NumberInputIncrementTrigger";var Ud=(0,c0.forwardRef)((e,t)=>{let r=Ua(),n=(0,p8.v)(r.getInputProps(),e),i=(0,NM.f)();return(0,eB.Y)(fr.input,{"aria-describedby":i?.ariaDescribedby,...n,ref:t})});Ud.displayName="NumberInputInput";var Uu=(0,c0.forwardRef)((e,t)=>{let r=Ua(),n=(0,p8.v)(r.getLabelProps(),e);return(0,eB.Y)(fr.label,{...n,ref:t})});function Uh(e,t){if(e&&t.isActiveElement(e))try{let{selectionStart:t,selectionEnd:r,value:n}=e;if(null==t||null==r)return;return{start:t,end:r,value:n}}catch{return}}function Up(e,t,r){let n=e.slice(0,r),i=e.slice(r),a=0,l=Math.min(n.length,t.length);for(let e=0;e<l;e++)if(n[e]===t[e])a=e+1;else break;let o=0,s=Math.min(i.length,t.length-a);for(let e=0;e<s;e++){let r=i.length-1-e,n=t.length-1-e;if(i[r]===t[n])o=e+1;else break}return n.length>0&&a>=n.length?a:o>=i.length?t.length-o:a>0?a:o>0?t.length-o:0===r&&0===a&&0===o?t.length:e.length>0?Math.round(r/e.length*t.length):t.length}Uu.displayName="NumberInputLabel";var Uf=e=>e.ids?.root??`number-input:${e.id}`,Um=e=>e.ids?.input??`number-input:${e.id}:input`,Ug=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,UC=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,Uv=e=>e.ids?.scrubber??`number-input:${e.id}:scrubber`,Uy=e=>`number-input:${e.id}:cursor`,Ub=e=>e.ids?.label??`number-input:${e.id}:label`,Ux=e=>e.getById(Um(e)),UO=e=>e.getById(Ug(e)),Uw=e=>e.getById(UC(e)),US=e=>e.getById(Uv(e)),UE=e=>e.getDoc().getElementById(Uy(e)),Uk=(e,t)=>{let r=null;return"increment"===t&&(r=UO(e)),"decrement"===t&&(r=Uw(e)),r},UP=(e,t)=>{if(!fE())return UT(e,t),()=>{UE(e)?.remove()}},UD=e=>{let t=e.getDoc(),r=t.documentElement,n=t.body;return n.style.pointerEvents="none",r.style.userSelect="none",r.style.cursor="ew-resize",()=>{n.style.pointerEvents="",r.style.userSelect="",r.style.cursor="",r.style.length||r.removeAttribute("style"),n.style.length||n.removeAttribute("style")}},UA=(e,t)=>{let{point:r,isRtl:n,event:i}=t,a=e.getWin(),l=md(i.movementX,a.devicePixelRatio),o=md(i.movementY,a.devicePixelRatio),s=l>0?"increment":l<0?"decrement":null;n&&"increment"===s&&(s="decrement"),n&&"decrement"===s&&(s="increment");let c={x:r.x+l,y:r.y+o},d=a.innerWidth,u=md(7.5,a.devicePixelRatio);return c.x=((c.x+u)%d+d)%d-u,{hint:s,point:c}},UT=(e,t)=>{let r=e.getDoc(),n=r.createElement("div");n.className="scrubber--cursor",n.id=Uy(e),Object.assign(n.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:0x7fffffff,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),n.innerHTML=`
75
75
  <svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
76
76
  <g transform="translate(2 3)">