PageSourceSearch

https://casavo.com/wine/_next/static/chunks/4818-0edf2fae3119e525.js

js casavo.com collected 2026-10-02 12:50:59 UTC 639,107 bytes, 22 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ea84747b-4e71-4d66-8fc5-862a271a7361",e._sentryDebugIdIdentifier="sentry-dbid-ea84747b-4e71-4d66-8fc5-862a271a7361")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4818],{164:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r=(0,n(44922).createContext)(null)},448:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(65728),i=n(32375);function o(e,t,n){let o=e.style,a=t?.style,s={};if(!o)return s;for(let t in o)((0,r.S)(o[t])||a&&(0,r.S)(a[t])||(0,i.zK)(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(s[t]=o[t]);return s}},1020:(e,t,n)=>{"use strict";n.d(t,{H:()=>l});var r=n(89409);function i(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let o={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!r.px.test(e))return e;else e=parseFloat(e);let n=i(e,t.target.x),o=i(e,t.target.y);return`${n}% ${o}%`}};var a=n(3294),s=n(13995);let l={borderRadius:{...o,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:o,borderTopRightRadius:o,borderBottomLeftRadius:o,borderBottomRightRadius:o,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=a.f.parse(e);if(r.length>5)return e;let i=a.f.createTransformer(e),o=+("number"!=typeof r[0]),l=n.x.scale*t.x,u=n.y.scale*t.y;r[0+o]/=l,r[1+o]/=u;let d=(0,s.k)(l,u,.5);return"number"==typeof r[2+o]&&(r[2+o]/=d),"number"==typeof r[3+o]&&(r[3+o]/=d),i(r)}}}},1115:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});let r=(0,n(44922).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},1502:(e,t,n)=>{"use strict";n.d(t,{L:()=>C});var r=n(84161),i=n(70104),o=n(79604),a=n(75748),s=n(18917);let l=e=>Array.isArray(e);var u=n(13027),d=n(76143),c=n(48555),f=n(80016);function h(e,t,{delay:n=0,transitionOverride:p,type:m}={}){let{transition:v,transitionEnd:g,...y}=t,$=e.getDefaultTransition();v=v?(0,o.K)(v,$):$;let b=v?.reduceMotion,x=v?.skipAnimations;p&&(v=p);let w=[],C=m&&e.animationState&&e.animationState.getState()[m],S=v?.path;for(let t in S&&S.animateVisualElement(e,y,v,n,w),y){let r=e.getValue(t,e.latestValues[t]??null),o=y[t];if(void 0===o||C&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(C,t))continue;let s={delay:n,...(0,i.r)(v||{},t)};x&&(s.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(o)&&o===l&&!s.velocity){f.Gt.update(()=>r.set(o));continue}let h=!1;if(window.MotionHandoffAnimation){let n=(0,d.P)(e);if(n){let e=window.MotionHandoffAnimation(n,t,f.Gt);null!==e&&(s.startTime=e,h=!0)}}(0,u.g)(e,t);let p=b??e.shouldReduceMotion;r.start((0,c.f)(t,r,o,p&&a.$.has(t)?{type:!1}:s,e,h));let m=r.animation;m&&w.push(m)}if(g){let t=()=>f.Gt.update(()=>{g&&function(e,t){let{transitionEnd:n={},transition:i={},...o}=(0,r.K)(e,t)||{};for(let t in o={...o,...n}){var a;let n=l(a=o[t])?a[a.length-1]||0:a;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,s.OQ)(n))}}(e,g)});w.length?Promise.all(w).then(t):t()}return w}function p(e,t,n,r=0,i=1){let o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*r;return"function"==typeof n?n(o,a):1===i?o*r:s-o*r}function m(e,t,n={}){let i=(0,r.K)(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>Promise.all(h(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=0,o=1,a){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(m(l,t,{...a,delay:n+("function"==typeof r?0:r)+p(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,r,i,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(()=>t())}}var v=n(14439),g=n(33162);let y=g._.length;var $=n(9308);function b(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let x=[...g.U].reverse(),w=g.U.length;function C(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>m(e,t,n)));else if("string"==typeof t)i=m(e,t,n);else{let o="function"==typeof t?(0,r.K)(e,t,n.custom):t;i=Promise.all(h(e,o,n))}return i.then(()=>
1{e.notify("AnimationComplete",t)})})(e,t,n))),n=E(),i=!0,o=!1,a=t=>(n,i)=>{let o=(0,r.K)(e,i,"exit"===t?e.presenceContext?.custom:void 0);if(o){let{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function s(s){let{props:u}=e,d=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<y;e++){let r=g._[e],i=t.props[r];((0,v.w)(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},c=[],f=new Set,h={},m=1/0;for(let t=0;t<w;t++){var C,S;let g=x[t],y=n[g],w=void 0!==u[g]?u[g]:d[g],E=(0,v.w)(w),P=g===s?y.isActive:null;!1===P&&(m=t);let T=w===d[g]&&w!==u[g]&&E;if(T&&(i||o)&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...h},!y.isActive&&null===P||!w&&!y.prevProp||(0,$.N)(w)||"boolean"==typeof w)continue;if("exit"===g&&y.isActive&&!0!==P){y.prevResolvedValues&&(h={...h,...y.prevResolvedValues});continue}let R=(C=y.prevProp,"string"==typeof(S=w)?S!==C:!!Array.isArray(S)&&!b(S,C)),A=R||g===s&&y.isActive&&!T&&E||t>m&&E,M=!1,O=Array.isArray(w)?w:[w],N=O.reduce(a(g),{});!1===P&&(N={});let{prevResolvedValues:I={}}=y,k={...I,...N},D=t=>{A=!0,f.has(t)&&(M=!0,f.delete(t)),y.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in k){let t=N[e],n=I[e];if(h.hasOwnProperty(e))continue;let r=!1;(l(t)&&l(n)?!b(t,n)||R:t!==n)?null!=t?D(e):f.add(e):void 0!==t&&f.has(e)?D(e):y.protectedKeys[e]=!0}y.prevProp=w,y.prevResolvedValues=N,y.isActive&&(h={...h,...N}),(i||o)&&e.blockInitialAnimation&&(A=!1);let j=T&&R,L=!j||M;A&&L&&c.push(...O.map(t=>{let n={type:g};if("string"==typeof t&&(i||o)&&!j&&e.manuallyAnimateOnMount&&e.parent){let{parent:i}=e,o=(0,r.K)(i,t);if(i.enteringChildren&&o){let{delayChildren:t}=o.transition||{};n.delay=p(i.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(f.size){let t={};if("boolean"!=typeof u.initial){let n=(0,r.K)(e,Array.isArray(u.initial)?u.initial[0]:u.initial);n&&n.transition&&(t.transition=n.transition)}f.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let E=!!c.length;return i&&(!1===u.initial||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(E=!1),i=!1,o=!1,E?t(c):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=E(),o=!0}}}function S(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function E(){return{animate:S(!0),whileInView:S(),whileHover:S(),whileTap:S(),whileDrag:S(),whileFocus:S(),exit:S()}}},2092:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});let r=parseInt(n(44922).version,10);function i(e){return r>=e}},2162:(e,t,n)=>{"use strict";let r;n.d(t,{k:()=>s});var i=n(61992),o=n(80016);function a(){r=void 0}let s={now:()=>(void 0===r&&s.set(o.uv.isProcessing||i.W.useManualTiming?o.uv.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(a)}}},2624:(e,t,n)=>{"use strict";function r(e,t){return e??t}n.d(t,{_:()=>r})},2695:()=>{},3138:(e,t,n)=>{"use strict";n.d(t,{G:()=>a,T:()=>r});let r=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({}),i={[r.startingStyle]:""},o={[r.endingStyle]:""},a={transitionStatus:e=>"starting"===e?i:"ending"===e?o:null}},3184:(e,t,n)=>{"use strict";function r(e){return[e("x"),e("y")]}n.d(t,{X:()=>r})},3294:(e,t,n)=>{"use strict";n.d(t,{V:()=>d,f:()=>p});var r=n(24275);let i=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var o=n(61869),a=n(56876);let s="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function d(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},o=[],a=0,d=t.replace(u,e=>(r.y.test(e)?(i.color.push(a),o.push(l),n.push(r.y.parse(e))):e.startsWith("var(")?(i.var.push(a),o.push("var"),n.push(e)):(i.number.push(a),o.push(s),n.push(parseFloat(e))),++a,"${}")).split("${}");return{values:n,split:d,indexes:i,types:o}}function c({split:e,types:t}){let n=e.length;return i=>{let o="";for(let u=0;u<n;u++)if(o+=e[u],void 0!==i[u]){let e=t[u];e===s?o+=(0,a.a)(i[u]):e===l?o+=r.y.transform(i[u]):o+=i[u]}return o}}let f=e=>"number"==typeof e?0:r.y.test(e)?r.y.getAnimatableNone(e):e,h=(e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:f(e),p={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(o.S)?.length||0)+(e.match(i)?.length||0)>0},parse:function(e){return d(e).values},createTransformer:function(e){return c(d(e))},getAnimatableNone:function(e){let t=d(e);return c(t)(t.values.map((e,n)=>h(e,t.split[n])))}}},4465:(e,t,n)=>{"use strict";n.d(t,{M:()=>o,d:()=>i});var r=n(93858);function i(e,t,n,i){let o=!1,a=!1,s=i??r.t0;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){a=!0},get isCanceled(){return o},get isPropagationAllowed(){return a},trigger:n,...s}}function o(e,t,n){let i=n??r.t0;return{reason:e,event:t??new Event("base-ui"),...i}}},5035:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>i});let i=(r="https://base-ui.com/production-error",function(e,...t){let n=new URL(r);
1return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`})},7319:(e,t,n)=>{"use strict";n.d(t,{s:()=>d});var r=n(44922),i=n(15860),o=n(80464),a=n(38138),s=n(90221),l=n(5035);let u=r.createContext(void 0);function d(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:i=0,native:f=!0,composite:h}=e,p=r.useRef(null),m=function(e=!1){let t=r.useContext(u);if(void 0===t&&!e)throw Error((0,l.A)(16));return t}(!0),v=h??void 0!==m,{props:g}=function(e){let{focusableWhenDisabled:t,disabled:n,composite:i=!1,tabIndex:o=0,isNativeButton:a}=e,s=i&&!1!==t,l=i&&!1===t;return{props:r.useMemo(()=>{let e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return i||(e.tabIndex=o,!a&&n&&(e.tabIndex=t?o:-1)),(a&&(t||s)||!a&&n)&&(e["aria-disabled"]=n),a&&(!t||l)&&(e.disabled=n),e},[i,n,t,s,l,a,o])}}({focusableWhenDisabled:n,disabled:t,composite:v,tabIndex:i,isNativeButton:f}),y=r.useCallback(()=>{let e=p.current;c(e)&&v&&t&&void 0===g.disabled&&e.disabled&&(e.disabled=!1)},[t,g.disabled,v]);return(0,a.g)(y,[y]),{getButtonProps:r.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:i,onKeyDown:o,onPointerDown:a,...l}=e,u=f?"button":void 0;return(0,s.v6)({type:u,onClick(e){if(t)return void e.preventDefault();n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){var r;if(t||((0,s.PT)(e),o?.(e),e.baseUIHandlerPrevented))return;let i=e.target===e.currentTarget,a=e.currentTarget,l=c(a),u=!f&&(r=a,!!(r?.tagName==="A"&&r?.href)),d=i&&(f?l:!u),h="Enter"===e.key,p=" "===e.key,m=a.getAttribute("role"),g=m?.startsWith("menuitem")||"option"===m||"gridcell"===m;if(i&&v&&p){if(e.defaultPrevented&&g)return;e.preventDefault(),u||f&&l?(a.click(),e.preventBaseUIHandler()):d&&(n?.(e),e.preventBaseUIHandler());return}d&&(!f&&(p||h)&&e.preventDefault(),!f&&h&&n?.(e))},onKeyUp(e){if(!t){if((0,s.PT)(e),i?.(e),e.target===e.currentTarget&&f&&v&&c(e.currentTarget)&&" "===e.key)return void e.preventDefault();!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||f||v||" "!==e.key||n?.(e))}},onPointerDown(e){if(t)return void e.preventDefault();a?.(e)}},f?void 0:{role:"button"},g,l)},[t,g,v,f]),buttonRef:(0,o.K)(e=>{p.current=e,y()})}}function c(e){return(0,i.sb)(e)&&"BUTTON"===e.tagName}},8485:(e,t,n)=>{"use strict";n.d(t,{j4:()=>i,pG:()=>a,rm:()=>l});let r=e=>t=>"string"==typeof t&&t.startsWith(e),i=r("--"),o=r("var(--"),a=e=>!!o(e)&&s.test(e.split("/*")[0].trim()),s=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function l(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}},8514:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(44922),i=n(69996),o=/<(\w+)>(.*?)<\/\1>|<(\w+)\/>/,a=/(?:\r\n|\r|\n)/g;function s(e){var t=e.i18nKey,n=e.values,s=e.components,l=e.fallback,u=e.defaultTrans,d=e.ns,c=(0,i.A)(d),f=c.t,h=c.lang;return(0,r.useMemo)(function(){var e=f(t,n,{fallback:l,default:u});return s&&0!==s.length?function e(t,n){void 0===n&&(n=[]);var i=t.replace(a,"").split(o);if(1===i.length)return t;var s=[],l=i.shift();return l&&s.push(l),(function e(t){if(!t.length)return[];var n=t.slice(0,4),r=n[0],i=n[1],o=n[2];return[[r||o,i||"",n[3]]].concat(e(t.slice(4,t.length)))})(i).forEach(function(t,i){var o=t[0],a=t[1],l=t[2],u=n[o]||r.createElement(r.Fragment,null);s.push((0,r.cloneElement)(u,{key:i},a?e(a,n):u.props.children)),l&&s.push(l)}),s}(e,s):e},[t,n,s,h])}},8720:()=>{},9100:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(44922);let i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},9192:(e,t,n)=>{"use strict";var r=n(44922),i=n(41568),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,d=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var c=s(null);if(null===c.current){var f={hasValue:!1,value:null};c.current=f}else f=c.current;var h=a(e,(c=u(function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(a=e,t):(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}
1,[t,n,r,i]))[0],c[1]);return l(function(){f.hasValue=!0,f.value=h},[h]),d(h),h}},9221:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=n(24275),i=n(20442),o=n(71416);let a={...n(85584).W,color:r.y,backgroundColor:r.y,outlineColor:r.y,fill:r.y,stroke:r.y,borderColor:r.y,borderTopColor:r.y,borderRightColor:r.y,borderBottomColor:r.y,borderLeftColor:r.y,filter:i.p,WebkitFilter:i.p,mask:o.d,WebkitMask:o.d},s=e=>a[e]},9308:(e,t,n)=>{"use strict";function r(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{N:()=>r})},10126:()=>{},10255:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},10342:(e,t,n)=>{"use strict";n.d(t,{BF:()=>c,FP:()=>v,J9:()=>g,Kg:()=>f,Y3:()=>m,Zb:()=>u,du:()=>l,fl:()=>p,vB:()=>d,zf:()=>h});var r=n(53862),i=n(15860),o=n(41161),a=n(17724);function s(e,t,n){return Math.floor(e/t)!==n}function l(e,t){return t<0||t>=e.length}function u(e,t){return c(e.current,{disabledIndices:t})}function d(e,t){return c(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function c(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let o=t;do o+=n?-i:i;while(o>=0&&o<=e.length-1&&v(e,o,r));return o}function f(e,{event:t,orientation:n,loopFocus:i,onLoop:u,rtl:d,cols:f,disabledIndices:h,minIndex:p,maxIndex:m,prevIndex:g,stopEvent:y=!1}){let $,b=g;if(t.key===a.il?$="up":t.key===a.Jd&&($="down"),$){let n=[],a=[],s=!1,d=0;{let t=null,r=-1;e.forEach((e,i)=>{if(null==e)return;d+=1;let o=e.closest('[role="row"]');o&&(s=!0),(o!==t||-1===r)&&(t=o,n[r+=1]=[]),n[r].push(i),a[i]=r})}let x=!1,w=0;if(s)for(let e of n){let t=e.length;t>w&&(w=t),t!==f&&(x=!0)}let C=x&&d<e.length,S=w||f;y&&(0,o.jo)(t);let E=(r=>{if(!x||-1===g)return;let o=a[g];if(null==o)return;let s=n[o].indexOf(g),l="up"===r?-1:1;for(let r=o+l,d=0;d<n.length;d+=1,r+=l){if(r<0||r>=n.length){if(!i||C)return;if(r=r<0?n.length-1:0,u){let e=Math.min(s,n[r].length-1);r=a[u(t,g,n[r][e]??n[r][0])]??r}}let o=n[r];for(let t=Math.min(s,o.length-1);t>=0;t-=1){let n=o[t];if(!v(e,n,h))return n}}})($)??(t=>{if(!C||-1===g)return;let n=g%S,o="up"===t?-S:S,a=m-m%S,s=(0,r.RI)(m/S)+1;for(let t=g-n+o,r=0;r<s;r+=1,t+=o){if(t<0||t>m){if(!i)return;t=t<0?a:0}let r=Math.min(t+S-1,m);for(let i=Math.min(t+n,r);i>=t;i-=1)if(!v(e,i,h))return i}})($);if(void 0!==E)b=E;else if(-1===g)b="up"===$?m:p;else if(b=c(e,{startingIndex:g,amount:S,decrement:"up"===$,disabledIndices:h}),i){if("up"===$&&(g-S<p||b<0)){let e=g%S,n=m%S,r=m-(n-e);b=n===e?m:n>e?r:r-S,u&&(b=u(t,g,b))}"down"===$&&g+S>m&&(b=c(e,{startingIndex:g%S-S,amount:S,disabledIndices:h}),u&&(b=u(t,g,b)))}l(e,b)&&(b=g)}if("both"===n){let n=(0,r.RI)(g/f);t.key===(d?a.eR:a.RJ)&&(y&&(0,o.jo)(t),g%f!=f-1?(b=c(e,{startingIndex:g,disabledIndices:h}),i&&s(b,f,n)&&(b=c(e,{startingIndex:g-g%f-1,disabledIndices:h}),u&&(b=u(t,g,b)))):i&&(b=c(e,{startingIndex:g-g%f-1,disabledIndices:h}),u&&(b=u(t,g,b))),s(b,f,n)&&(b=g)),t.key===(d?a.RJ:a.eR)&&(y&&(0,o.jo)(t),g%f!=0?(b=c(e,{startingIndex:g,decrement:!0,disabledIndices:h}),i&&s(b,f,n)&&(b=c(e,{startingIndex:g+(f-g%f),decrement:!0,disabledIndices:h}),u&&(b=u(t,g,b)))):i&&(b=c(e,{startingIndex:g+(f-g%f),decrement:!0,disabledIndices:h}),u&&(b=u(t,g,b))),s(b,f,n)&&(b=g));let p=(0,r.RI)(m/f)===n;l(e,b)&&(i&&p?(b=t.key===(d?a.RJ:a.eR)?m:c(e,{startingIndex:g-g%f-1,disabledIndices:h}),u&&(b=u(t,g,b))):b=g)}return b}function h(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:o},a)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;r<e;r+=1)for(let e=0;e<o;e+=1)n.push(i+r+e*t);i%t+e<=t&&n.every(e=>null==r[e])?(n.forEach(e=>{r[e]=a}),s=!0):i+=1}}),[...r]}function p(e,t,n,r,i){if(-1===e)return -1;let o=n.indexOf(e),a=t[e];switch(i){case"tl":return o;case"tr":if(!a)return o;return o+a.width-1;case"bl":if(!a)return o;return o+(a.height-1)*r;case"br":return n.lastIndexOf(e);default:return -1}}function m(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function v(e,t,n){if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;let r=e[t];return!!r&&(!g(r)||!n&&(r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")))}function g(e,t=e?(0,i.L9)(e):null){var n;
1return!!e&&!!e.isConnected&&!!t&&"hidden"!==(n=t).visibility&&"collapse"!==n.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}},10396:(e,t,n)=>{"use strict";function r(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}n.d(t,{$4:()=>r,CM:()=>function e(t,n,r=!0){return t.filter(e=>e.parentId===n).flatMap(n=>[...!r||n.context?.open?[n]:[],...e(t,n.id,r)])}})},10549:()=>{},11044:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});let r=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`}},11151:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("house-plus",[["path",{d:"M12.35 21H5a2 2 0 0 1-2-2v-9a2 2 0 0 1 .71-1.53l7-6a2 2 0 0 1 2.58 0l7 6A2 2 0 0 1 21 10v2.35",key:"8ek5ge"}],["path",{d:"M14.8 12.4A1 1 0 0 0 14 12h-4a1 1 0 0 0-1 1v8",key:"1rbg29"}],["path",{d:"M15 18h6",key:"3b3c90"}],["path",{d:"M18 15v6",key:"9wciyi"}]])},12195:(e,t,n)=>{"use strict";n.d(t,{po:()=>o,tn:()=>s,yT:()=>a});var r=n(78658),i=n(33809);let o=e=>1-Math.sin(Math.acos(e)),a=(0,i.G)(o),s=(0,r.V)(o)},12792:(e,t,n)=>{"use strict";function r(e){return e?.ownerDocument||document}n.d(t,{R:()=>r})},13027:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(61992),i=n(65728);function o(e,t){let n=e.getValue("willChange");if((0,i.S)(n)&&n.add)return n.add(t);if(!n&&r.W.WillChange){let n=new r.W.WillChange("auto");e.addValue("willChange",n),n.add(t)}}},13059:()=>{},13442:(e,t,n)=>{"use strict";function r(e,[t,n]){return Math.min(n,Math.max(t,e))}n.d(t,{q:()=>r})},13995:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});let r=(e,t,n)=>e+(t-e)*n},14258:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(58710);function i(e){if("x"===e||"y"===e)if(r.I[e])return null;else return r.I[e]=!0,()=>{r.I[e]=!1};return r.I.x||r.I.y?null:(r.I.x=r.I.y=!0,()=>{r.I.x=r.I.y=!1})}},14439:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e||Array.isArray(e)}n.d(t,{w:()=>r})},14505:(e,t,n)=>{"use strict";n.d(t,{V:()=>g});var r=n(44922),i=n(89243),o=n(77268),a=n(95925),s=n(90578),l=n(7319),u=n(95357),d=n(44466),c=n(3138),f=n(24656),h=n(4465),p=n(86623),m=n(32424);let v={...c.G,...m.qV},g=r.forwardRef(function(e,t){let{render:n,className:r,disabled:c=!1,nativeButton:m=!0,keepMounted:g=!1,style:y,...$}=e,{disabled:b}=(0,u.V)(),x=(0,o.Ee)(),w=(0,i.P)(x,s.T.selectionMode),C=(0,i.P)(x,s.T.disabled),S=(0,i.P)(x,s.T.readOnly),E=(0,i.P)(x,s.T.open),P=(0,i.P)(x,s.T.selectedValue),T=(0,i.P)(x,s.T.hasSelectionChips),R=(0,o.dc)(),A=!1;A="none"===w?""!==R:"single"===w?null!=P:T;let M=b||C||c,{buttonRef:O,getButtonProps:N}=(0,l.s)({native:m,disabled:M}),{mounted:I,transitionStatus:k,setMounted:D}=(0,d.$)(A);(0,f.v)({open:A,ref:x.state.clearRef,onComplete(){A||D(!1)}});let j=(0,a.o)("button",e,{state:{disabled:M,open:E,transitionStatus:k},ref:[t,O,x.state.clearRef],props:[{tabIndex:-1,children:"x",onMouseDown(e){e.preventDefault()},onClick(e){if(M||S)return;let t=x.state.keyboardActiveRef;x.state.setInputValue("",(0,h.d)(p.R0,e.nativeEvent)),"none"!==w?(x.state.setSelectedValue(Array.isArray(P)?[]:null,(0,h.d)(p.R0,e.nativeEvent)),x.state.setIndices({activeIndex:null,selectedIndex:null,type:t.current?"keyboard":"pointer"})):x.state.setIndices({activeIndex:null,type:t.current?"keyboard":"pointer"}),x.state.inputRef.current?.focus()}},$,N],stateAttributesMapping:v});return g||I?j:null})},14611:(e,t,n)=>{"use strict";n.d(t,{Ai:()=>s,Vz:()=>a,jd:()=>r,kJ:()=>o,tl:()=>i});let r=(e,t)=>Object.is(e,t);function i(e,t,n){return null==e||null==t?Object.is(e,t):n(e,t)}function o(e,t,n){return!!e&&0!==e.length&&e.some(e=>void 0!==e&&i(t,e,n))}function a(e,t,n){return e&&0!==e.length?e.findIndex(e=>void 0!==e&&i(e,t,n)):-1}function s(e,t,n){return e.filter(e=>!i(t,e,n))}},14933:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});var r=n(67954);function i(e){return(0,r.B)(e,"base-ui")}},15413:(e,t,n)=>{"use strict";n.d(t,{c:()=>m});var r=n(20648),i=n(58710);let o=(e,t)=>!!t&&(e===t||o(e,t.parentElement));var a=n(34087),s=n(75951),l=n(20235);let u=new WeakSet;function d(e){return t=>{"Enter"===t.key&&e(t)}}function c(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let f=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=d(()=>
1{if(u.has(n))return;c(n,"down");let e=d(()=>{c(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>c(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function h(e){return(0,a.M)(e)&&!(0,i.D)()}let p=new WeakSet;function m(e,t,n={}){let[i,a,d]=(0,s.V)(e,n),c=e=>{let r=e.currentTarget;if(!h(e)||p.has(e))return;u.add(r),n.stopPropagation&&p.add(e);let i=t(r,e),s={...a,capture:!0},l=(e,t)=>{window.removeEventListener("pointerup",d,s),window.removeEventListener("pointercancel",c,s),u.has(r)&&u.delete(r),h(e)&&"function"==typeof i&&i(e,{success:t})},d=e=>{l(e,r===window||r===document||n.useGlobalTarget||o(r,e.target))},c=e=>{l(e,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",c,s)};return i.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",c,a),(0,r.s)(e)&&(e.addEventListener("focus",e=>f(e,a)),(0,l.c)(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),d}},15422:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});let r=e=>Array.isArray(e)&&"number"==typeof e[0]},15758:()=>{},16148:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},16308:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(44922);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function o(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],a=t[n];return"function"==typeof r?`${r}`==`${a}`:i(r)&&i(a)?o(r,a):r===a})}function a(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function s(e){return"number"==typeof e}function l(e){return"string"==typeof e}function u(e){return"boolean"==typeof e}function d(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return Math.abs(e)}function f(e){return Math.sign(e)}function h(e){return g(e).map(Number)}function p(e){return e[m(e)]}function m(e){return Math.max(0,e.length-1)}function v(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function g(e){return Object.keys(e)}function y(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function $(){let e=[],t={add:function(n,r,i,o={passive:!0}){let a;return"addEventListener"in n?(n.addEventListener(r,i,o),a=()=>n.removeEventListener(r,i,o)):(n.addListener(i),a=()=>n.removeListener(i)),e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function b(e=0,t=0){let n=c(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function x(e){let t=e;function n(e){return s(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function w(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style,i=null,o=!1;return{clear:function(){!o&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(o)return;let a=Math.round(100*e.direction(t))/100;a!==i&&(r.transform=n(a),i=a)},toggleActive:function(e){o=!e}}}let C={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function S(e,t,n){let r,i,o,a,E,P=e.ownerDocument,T=P.defaultView,R=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>(g(n).forEach(r=>{let i=t[r],o=n[r],a=d(i)&&d(o);t[r]=a?e(i,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=g(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>g(e.breakpoints||{})).reduce((e,t)=>
1e.concat(t),[]).map(e.matchMedia)}}}(T),A=(E=[],{init:function(e,t){return(E=t.filter(({options:e})=>!1!==R.optionsAtMedia(e).active)).forEach(t=>t.init(e,R)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){E=E.filter(e=>e.destroy())}}),M=$(),O=function(){let e,t={},n={init:function(t){e=t},emit:function(r){return(t[r]||[]).forEach(t=>t(e,r)),n},off:function(e,r){return t[e]=(t[e]||[]).filter(e=>e!==r),n},on:function(e,r){return t[e]=(t[e]||[]).concat([r]),n},clear:function(){t={}}};return n}(),{mergeOptions:N,optionsAtMedia:I,optionsMediaQueries:k}=R,{on:D,off:j,emit:L}=O,F=!1,V=N(C,S.globalOptions),B=N(V),W=[];function U(t,n){if(F)return;B=I(V=N(V,t)),W=n||W;let{container:d,slides:C}=B;o=(l(d)?e.querySelector(d):d)||e.children[0];let S=l(C)?o.querySelectorAll(C):C;a=[].slice.call(S||o.children),r=function t(n){let r=function(e,t,n,r,i,o,a){let d,C,{align:S,axis:E,direction:P,startIndex:T,loop:R,duration:A,dragFree:M,dragThreshold:O,inViewThreshold:N,slidesToScroll:I,skipSnaps:k,containScroll:D,watchResize:j,watchSlides:L,watchDrag:F,watchFocus:V}=o,B={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},W=B.measure(t),U=n.map(B.measure),_=function(e,t){let n="rtl"===t,r="y"===e,i=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(e){let{height:t,width:n}=e;return r?t:n},direction:function(e){return e*i}}}(E,P),G=_.measureSize(W),K={measure:function(e){return e/100*G}},H=function(e,t){let n={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(r,i){return l(e)?n[e](r):e(t,r,i)}}}(S,G),q=!R&&!!D,{slideSizes:X,slideSizesWithGaps:z,startGap:Y,endGap:Z}=function(e,t,n,r,i,o){let{measureSize:a,startEdge:s,endEdge:l}=e,u=n[0]&&i,d=function(){if(!u)return 0;let e=n[0];return c(t[s]-e[s])}(),f=u?parseFloat(o.getComputedStyle(p(r)).getPropertyValue(`margin-${l}`)):0,h=n.map(a),v=n.map((e,t,n)=>{let r=t===m(n);return t?r?h[t]+f:n[t+1][s]-e[s]:h[t]+d}).map(c);return{slideSizes:h,slideSizesWithGaps:v,startGap:d,endGap:f}}(_,W,U,n,R||!!D,i),J=function(e,t,n,r,i,o,a,l,u){let{startEdge:d,endEdge:f,direction:v}=e,g=s(n);return{groupSlides:function(e){return g?h(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?h(e).reduce((n,s,u)=>{let h=p(n)||0,g=s===m(e),y=i[d]-o[h][d],$=i[d]-o[s][f],b=r||0!==h?0:v(a),x=c($-(!r&&g?v(l):0)-(y+b));return u&&x>t+2&&n.push(s),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}(_,G,I,R,W,U,Y,Z,0),{snaps:Q,snapsAligned:ee}=function(e,t,n,r,i){let{startEdge:o,endEdge:a}=e,{groupSlides:s}=i,l=s(r).map(e=>p(e)[a]-e[0][o]).map(c).map(t.measure),u=r.map(e=>n[o]-e[o]).map(e=>-c(e)),d=s(u).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:u,snapsAligned:d}}(_,H,W,U,J),et=-p(Q)+p(z),{snapsContained:en,scrollContainLimit:er}=function(e,t,n,r,i){let o=b(-t+e,0),a=n.map((e,t)=>{let{min:r,max:i}=o,a=o.constrain(e),s=t===m(n);return t?s||function(e,t){return 1>=c(e-t)}(r,a)?r:function(e,t){return 1>=c(e-t)}(i,a)?i:a:i}).map(e=>parseFloat(e.toFixed(3))),s=function(){let e=a[0],t=p(a);return b(a.lastIndexOf(e),a.indexOf(t)+1)}();function l(e,t){return 1>=c(e-t)}return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return a;let{min:n,max:i}=s;return a.slice(n,i)}(),scrollContainLimit:s}}(G,et,ee,D,0),ei=q?en:ee,{limit:eo}=function(e,t,n){let r=t[0];return{limit:b(n?r-e:p(t),r)}}(et,ei,R),ea=function e(t,n,r){let{constrain:i}=b(0,t),o=t+1,a=s(n);function s(e){return r?c((o+e)%o):i(e)}function l(){return e(t,a,r)}let u={get:function(){return a}
1,set:function(e){return a=s(e),u},add:function(e){return l().set(a+e)},clone:l};return u}(m(ei),T,R),es=ea.clone(),el=h(n),eu=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},ed=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:o,slideLooper:a,dragHandler:s,animation:l,eventHandler:u,scrollBounds:d,options:{loop:c}},f)=>{let h=e.settled(),p=!d.shouldConstrain(),m=c?h:h&&p,v=m&&!s.pointerDown();v&&l.stop();let g=n.get()*f+i.get()*(1-f);r.set(g),c&&(o.loop(e.direction()),a.loop()),t.to(r.get()),v&&u.emit("settle"),m||u.emit("scroll")},ec=function(e,t,n,r){let i=$(),o=1e3/60,a=null,s=0,l=0;function u(e){if(!l)return;a||(a=e,n(),n());let i=e-a;for(a=e,s+=i;s>=o;)n(),s-=o;r(s/o),l&&(l=t.requestAnimationFrame(u))}function d(){t.cancelAnimationFrame(l),a=null,s=0,l=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(a=null,s=0)})},destroy:function(){d(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:d,update:n,render:r}}(r,i,()=>eu(eE),e=>ed(eE,e)),ef=ei[ea.get()],eh=x(ef),ep=x(ef),em=x(ef),ev=x(ef),eg=function(e,t,n,r,i,o){let a=0,s=0,l=i,u=.68,d=e.get(),h=0;function p(e){return l=e,v}function m(e){return u=e,v}let v={direction:function(){return s},duration:function(){return l},velocity:function(){return a},seek:function(){let t=r.get()-e.get(),i=0;return l?(n.set(e),a+=t/l,a*=u,d+=a,e.add(a),i=d-h):(a=0,n.set(r),e.set(r),i=t),s=f(i),h=d,v},settled:function(){return .001>c(r.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return p(i)},useFriction:m,useDuration:p};return v}(eh,em,ep,ev,A,.68),ey=function(e,t,n,r,i){let{reachedAny:o,removeOffset:a,constrain:s}=r;function l(e){return e.concat().sort((e,t)=>c(e)-c(t))[0]}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return l(i);let o=i.filter(e=>f(e)===r);return o.length?l(o):p(i)-n}return{byDistance:function(n,r){let l=i.get()+n,{index:d,distance:f}=function(n){let r=e?a(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>c(e.diff)-c(t.diff))[0];return{index:i,distance:r}}(l),h=!e&&o(l);if(!r||h)return{index:d,distance:n};let p=n+u(t[d]-f,0);return{index:d,distance:p}},byIndex:function(e,n){let r=u(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:u}}(R,ei,et,eo,ev),e$=function(e,t,n,r,i,o,a){function s(i){let s=i.distance,l=i.index!==t.get();
1o.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(i.index),a.emit("select"))}return{distance:function(e,t){s(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}}}(ec,ea,es,eg,ey,ev,a),eb=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(eo),ex=$(),ew=function(e,t,n,r){let i,o={},a=null,s=null,l=!1;return{init:function(){i=new IntersectionObserver(e=>{l||(e.forEach(e=>{o[t.indexOf(e.target)]=e}),a=null,s=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),l=!0},get:function(e=!0){if(e&&a)return a;if(!e&&s)return s;let t=g(o).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=o[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(a=t),e||(s=t),t}}}(t,n,a,N),{slideRegistry:eC}=function(e,t,n,r,i,o){let{groupSlides:a}=i,{min:s,max:l}=r;return{slideRegistry:function(){let r=a(o);return 1===n.length?[o]:e&&"keepSnaps"!==t?r.slice(s,l).map((e,t,n)=>{let r=t===m(n);return t?r?v(m(o)-p(n)[0]+1,p(n)[0]):e:v(p(n[0])+1)}):r}()}}(q,D,ei,er,J,el),eS=function(e,t,n,r,i,o,a,l){let d={passive:!0,capture:!0},c=0;function f(e){"Tab"===e.code&&(c=new Date().getTime())}return{init:function(h){l&&(o.add(document,"keydown",f,!1),t.forEach((t,f)=>{o.add(t,"focus",t=>{(u(l)||l(h,t))&&function(t){if(new Date().getTime()-c>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;let o=n.findIndex(e=>e.includes(t));s(o)&&(i.useDuration(0),r.index(o,0),a.emit("slideFocus"))}(f)},d)}))}}}(e,n,eC,e$,eg,ex,a,V),eE={ownerDocument:r,ownerWindow:i,eventHandler:a,containerRect:W,slideRects:U,animation:ec,axis:_,dragHandler:function(e,t,n,r,i,o,a,s,l,d,h,p,m,v,g,x,w,C,S){let{cross:E,direction:P}=e,T=["INPUT","SELECT","TEXTAREA"],R={passive:!1},A=$(),M=$(),O=b(50,225).constrain(v.measure(20)),N={mouse:300,touch:400},I={mouse:500,touch:600},k=g?43:25,D=!1,j=0,L=0,F=!1,V=!1,B=!1,W=!1;function U(e){if(!y(e,r)&&e.touches.length>=2)return _(e);
1let t=o.readPoint(e),n=o.readPoint(e,E),a=c(t-j),l=c(n-L);if(!V&&!W&&(!e.cancelable||!(V=a>l)))return _(e);let u=o.pointerMove(e);a>x&&(B=!0),d.useFriction(.3).useDuration(.75),s.start(),i.add(P(u)),e.preventDefault()}function _(e){let t=h.byDistance(0,!1).index!==p.get(),n=o.pointerUp(e)*(g?I:N)[W?"mouse":"touch"],r=function(e,t){let n=p.add(-1*f(e)),r=h.byDistance(e,!g).distance;return g||c(e)<O?r:w&&t?.5*r:h.byIndex(n.get(),0).distance}(P(n),t),i=function(e,t){var n,r;if(0===e||0===t||c(e)<=c(t))return 0;let i=(n=c(e),r=c(t),c(n-r));return c(i/e)}(n,r);V=!1,F=!1,M.clear(),d.useDuration(k-10*i).useFriction(.68+i/50),l.distance(r,!g),W=!1,m.emit("pointerUp")}function G(e){B&&(e.stopPropagation(),e.preventDefault(),B=!1)}return{init:function(e){S&&A.add(t,"dragstart",e=>e.preventDefault(),R).add(t,"touchmove",()=>void 0,R).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",_).add(t,"contextmenu",_).add(t,"click",G,!0);function s(s){(u(S)||S(e,s))&&function(e){let s=y(e,r);if((W=s,B=g&&s&&!e.buttons&&D,D=c(i.get()-a.get())>=2,!s||0===e.button)&&!function(e){let t=e.nodeName||"";return T.includes(t)}(e.target)){F=!0,o.pointerDown(e),d.useFriction(0).useDuration(0),i.set(a);let r=W?n:t;M.add(r,"touchmove",U,R).add(r,"touchend",_).add(r,"mousemove",U,R).add(r,"mouseup",_),j=o.readPoint(e),L=o.readPoint(e,E),m.emit("pointerDown")}}(s)}},destroy:function(){A.clear(),M.clear()},pointerDown:function(){return F}}}(_,e,r,i,ev,function(e,t){let n,r;function i(e){return e.timeStamp}function o(n,r){let i=r||e.scroll,o=`client${"x"===i?"X":"Y"}`;return(y(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,o(e)},pointerMove:function(e){let t=o(e)-o(r),a=i(e)-i(n)>170;return r=e,a&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=o(r)-o(n),a=i(e)-i(n),s=i(e)-i(r)>170,l=t/a;return a&&!s&&c(l)>.1?l:0},readPoint:o}}(_,i),eh,ec,e$,eg,ey,ea,a,K,M,O,k,0,F),eventStore:ex,percentOfView:K,index:ea,indexPrevious:es,limit:eo,location:eh,offsetLocation:em,previousLocation:ep,options:o,resizeHandler:function(e,t,n,r,i,o,a){let s,l,d=[e].concat(r),f=[],h=!1;function p(e){return i.measureSize(a.measure(e))}return{init:function(i){o&&(l=p(e),f=r.map(p),s=new ResizeObserver(n=>{(u(o)||o(i,n))&&function(n){for(let o of n){if(h)return;let n=o.target===e,a=r.indexOf(o.target),s=n?l:f[a];if(c(p(n?e:r[a])-s)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{d.forEach(e=>s.observe(e))}))},destroy:function(){h=!0,s&&s.disconnect()}}}(t,a,i,n,_,j,B),scrollBody:eg,scrollBounds:function(e,t,n,r,i){let o=i.measure(10),a=i.measure(50),s=b(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(i){if(!u())return;let l=e.reachedMin(t.get())?"min":"max",d=c(e[l]-t.get()),f=n.get()-t.get(),h=s.constrain(d/a);n.subtract(f*h),!i&&c(f)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(eo,em,ev,eg,K),scrollLooper:function(e,t,n,r){let{reachedMin:i,reachedMax:o}=b(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?o(n.get()):-1===t&&i(n.get())))return;let a=-1*t*e;r.forEach(e=>e.add(a))}}}(et,eo,em,[eh,em,ep,ev]),scrollProgress:eb,scrollSnapList:ei.map(eb.get),scrollSnaps:ei,scrollTarget:ey,scrollTo:e$,slideLooper:function(e,t,n,r,i,o,a,s,l){let u=h(i),d=h(i).reverse(),c=m(p(d,a[0]),n,!1).concat(m(p(u,t-a[0]-1),-n,!0));function f(e,t){return e.reduce((e,t)=>e-i[t],t)}function p(e,t){return e.reduce((e,n)=>f(e,t)>0?e.concat([n]):e,[])}function m(i,a,u){let d=o.map((e,n)=>({start:e-r[n]+.5+a,end:e+t-.5+a}));return i.map(t=>{let r=u?0:-n,i=u?n:0,o=d[t][u?"end":"start"];return{index:t,loopPoint:o,slideLocation:x(-1),translate:w(e,l[t]),target:()=>s.get()>o?r:i}})}return{canLoop:function(){return c.every(({index:e})=>.1>=f(u.filter(t=>t!==e),t))},clear:function(){c.forEach(e=>e.translate.clear())},loop:function(){c.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:c}}(_,G,et,X,z,Q,ei,em,n),slideFocus:eS,slidesHandler:(C=!1,{init:function(e){L&&(d=new MutationObserver(t=>{!C&&(u(L)||L(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),a.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){d&&d.disconnect(),C=!0}}),slidesInView:ew,slideIndexes:el,slideRegistry:eC,slidesToScroll:J,target:ev,translate:w(_,t)};return eE}(e,o,a,P,T,n,O);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(B),k([V,...W.map(({options:e})=>
1e)]).forEach(e=>M.add(e,"change",_)),B.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(q),r.eventHandler.init(q),r.resizeHandler.init(q),r.slidesHandler.init(q),r.options.loop&&r.slideLooper.loop(),o.offsetParent&&a.length&&r.dragHandler.init(q),i=A.init(q,W))}function _(e,t){let n=H();G(),U(N({startIndex:n},e),t),O.emit("reInit")}function G(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),A.destroy(),M.clear()}function K(e,t,n){B.active&&!F&&(r.scrollBody.useBaseFriction().useDuration(!0===t?0:B.duration),r.scrollTo.index(e,n||0))}function H(){return r.index.get()}let q={canScrollNext:function(){return r.index.add(1).get()!==H()},canScrollPrev:function(){return r.index.add(-1).get()!==H()},containerNode:function(){return o},internalEngine:function(){return r},destroy:function(){F||(F=!0,M.clear(),G(),O.emit("destroy"),O.clear())},off:j,on:D,emit:L,plugins:function(){return i},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:_,rootNode:function(){return e},scrollNext:function(e){K(r.index.add(1).get(),e,-1)},scrollPrev:function(e){K(r.index.add(-1).get(),e,1)},scrollProgress:function(){return r.scrollProgress.get(r.offsetLocation.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:K,selectedScrollSnap:H,slideNodes:function(){return a},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return U(t,n),setTimeout(()=>O.emit("init"),0),q}function E(e={},t=[]){let n=(0,r.useRef)(e),i=(0,r.useRef)(t),[s,l]=(0,r.useState)(),[u,d]=(0,r.useState)(),c=(0,r.useCallback)(()=>{s&&s.reInit(n.current,i.current)},[s]);return(0,r.useEffect)(()=>{o(n.current,e)||(n.current=e,c())},[e,c]),(0,r.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=a(e),r=a(t);return n.every((e,t)=>o(e,r[t]))}(i.current,t)&&(i.current=t,c())},[t,c]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){S.globalOptions=E.globalOptions;let e=S(u,n.current,i.current);return l(e),()=>e.destroy()}l(void 0)},[u,l]),[d,s]}S.globalOptions=void 0,E.globalOptions=void 0},16383:()=>{},16797:(e,t,n)=>{"use strict";n.d(t,{P:()=>e7});var r=n(95713),i=n(33599),o=n(44922);let a=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function s(e){if("string"!=typeof e||e.includes("-"));else if(a.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var l=n(66162),u=n(61862);let d=(0,o.createContext)({strict:!1});var c=n(79505);let f=(0,o.createContext)({});var h=n(29155),p=n(14439);function m(e){return Array.isArray(e)?e.join(" "):e}var v=n(65728),g=n(32375),y=n(31977);let $=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function b(e,t,n){for(let r in t)(0,v.S)(t[r])||(0,g.zK)(r,n)||(e[r]=t[r])}var x=n(51131),w=n(20889);let C=()=>({...$(),attrs:{}}),S=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function E(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||S.has(e)}let P=e=>!E(e);try{!function(e){"function"==typeof e&&(P=t=>t.startsWith("on")?!E(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}var T=n(448),R=n(98212),A=n(9308),M=n(87717),O=n(164),N=n(55674);let I=e=>(t,n)=>{let r=(0,o.useContext)(f),i=(0,o.useContext)(O.t),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=(0,R.u)(o[e]);let{initial:a,animate:s}=e,l=(0,h.e)(e),u=(0,h.O)(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let d=!!n&&!1===n.initial,c=(d=d||!1===a)?s:a;if(c&&"boolean"!=typeof c&&!(0,A.N)(c)){let t=Array.isArray(c)?c:[c];for(let n=0;n<t.length;n++){let r=(0,M.a)(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?a():(0,N.M)(a)},k=I({scrapeMotionValuesFromProps:T.x,createRenderState:$}),D=I({scrapeMotionValuesFromProps:n(88341).x,createRenderState:C});var j=n(59060);let L={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},F=!1;function V(){return!function(){if(F)return;let e={};for(let t in L)e[t]={isEnabled:e=>L[t].some(t=>!!e[t])};(0,j.lr)(e),F=!0}(),(0,j.vK)()}let B=Symbol.for("motionComponentSymbol");var W=n(51542);let U=(0,o.createContext)({});function _(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var G=n(9100);function K(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&function(e){let t=V();for(let n in e)t[n]={...t[n],...e[n]};(0,j.lr)(t)}(r);let a=n?"svg"===n:s(e),g=a?D:k;function S(n,r){let S,T={...(0,o.useContext)(c.Q),...n,layoutId:function({layoutId:e}){let t=(0,o.useContext)(u.L).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:R}=T,A=function(e){let{initial:t,animate:n}=function(e,t){if((0,h.e)(e)){let{initial:t,animate:n}=e;return{initial:!1===t||(0,p.w)(t)?t:void 0,animate:(0,p.w)(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(f));return(0,o.useMemo)(()=>({initial:t,animate:n}),[m(t),m(n)])}(n),M=g(n,R);if(!R&&"undefined"!=typeof window){var N,I;N=0,I=0,(0,o.useContext)(d).strict;let t=function(e){let{drag:t,layout:n}=V();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
1(T);S=t.MeasureLayout,A.visualElement=function(e,t,n,r,i,a){let{visualElement:s}=(0,o.useContext)(f),l=(0,o.useContext)(d),u=(0,o.useContext)(O.t),h=(0,o.useContext)(c.Q),p=h.reducedMotion,m=h.skipAnimations,v=(0,o.useRef)(null),g=(0,o.useRef)(!1);r=r||l.renderer,!v.current&&r&&(v.current=r(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:p,skipAnimations:m,isSVG:a}),g.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let y=v.current,$=(0,o.useContext)(U);y&&!y.projection&&i&&("html"===y.type||"svg"===y.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:d,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&_(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:d})}(v.current,n,i,$);let b=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{y&&b.current&&y.update(n,u)});let x=n[W.n],w=(0,o.useRef)(!!x&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return(0,G.E)(()=>{g.current=!0,y&&(b.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),w.current&&y.animationState&&y.animationState.animateChanges())}),(0,o.useEffect)(()=>{y&&(!w.current&&y.animationState&&y.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),w.current=!1),y.enteringChildren=void 0)}),y}(e,M,T,i,t.ProjectionNode,a)}return(0,l.jsxs)(f.Provider,{value:A,children:[S&&A.visualElement?(0,l.jsx)(S,{visualElement:A.visualElement,...T}):null,function(e,t,n,{latestValues:r},i,a=!1,l){let u=(l??s(e)?function(e,t,n,r){let i=(0,o.useMemo)(()=>{let n=C();return(0,x.B)(n,t,(0,w.n)(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};b(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return b(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,o.useMemo)(()=>{let n=$();return(0,y.O)(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(t,r,i,e),d=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&!(0,v.S)(e[i])&&(P(i)||!0===n&&E(i)||!t&&!E(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,a),c=e!==o.Fragment?{...d,...u,ref:n}:{},{children:f}=t,h=(0,o.useMemo)(()=>(0,v.S)(f)?f.get():f,[f]);return(0,o.createElement)(e,{...c,children:h})}(e,n,function(e,t,n){let r=(0,o.useRef)(n);(0,o.useInsertionEffect)(()=>{r.current=n});let i=(0,o.useRef)(null);return(0,o.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let o=r.current;if("function"==typeof o)if(n){let e=o(n);"function"==typeof e&&(i.current=e)}else i.current?(i.current(),i.current=null):o(n);else o&&(o.current=n)},[t])}(M,A.visualElement,r),M,R,t,a)]})}S.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let T=(0,o.forwardRef)(S);return T[B]=e,T}var H=n(77276),q=n(1502);class X extends H.X{constructor(e){super(e),e.animationState||(e.animationState=(0,q.L)(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();(0,A.N)(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}var z=n(84161);let Y=0;class Z extends H.X{constructor(){super(...arguments),this.id=Y++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=(0,z.K)(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
1{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}var J=n(57094),Q=n(81316),ee=n(14258),et=n(3184),en=n(89409),er=n(73814),ei=n(80016),eo=n(13027),ea=n(41487),es=n(33898),el=n(48555),eu=n(13995),ed=n(20235),ec=n(62028),ef=n(71331),eh=n(92383),ep=n(34087);function em(e){return{point:{x:e.pageX,y:e.pageY}}}let ev=e=>t=>(0,ep.M)(t)&&e(t,em(t));function eg(e,t,n,r){return(0,ec.k)(e,t,ev(n),r)}let ey=({current:e})=>e?e.ownerDocument.defaultView:null;var e$=n(97830),eb=n(24160);let ex=(e,t)=>Math.abs(e-t),ew=new Set(["auto","scroll"]);class eC{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=eS(this.lastRawMoveEventInfo,this.transformPagePoint));let e=eP(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(ex(e.x,t.x)**2+ex(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=ei.uv;this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=eS(t,this.transformPagePoint),ei.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=eP("pointercancel"===e.type?this.lastMoveEventInfo:eS(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!(0,ep.M)(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;let s=eS(em(e),this.transformPagePoint),{point:l}=s,{timestamp:u}=ei.uv;this.history=[{...l,timestamp:u}];let{onSessionStart:d}=t;d&&d(e,eP(s,this.history)),this.removeListeners=(0,e$.F)(eg(this.contextWindow,"pointermove",this.handlePointerMove),eg(this.contextWindow,"pointerup",this.handlePointerUp),eg(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ew.has(e.overflowX)||ew.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),ei.Gt.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,ei.WG)(this.updatePoint)}}function eS(e,t){return t?{point:t(e.point)}:e}function eE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eP({point:e},t){return{point:e,delta:eE(e,eT(t)),offset:eE(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=eT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>(0,eb.f)(.1)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>2*(0,eb.f)(t)&&(r=e[1]);let o=(0,eb.X)(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function eT(e){return e[e.length-1]}var eR=n(85395),eA=n(31749);function eM(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function eO(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}
1function eN(e,t,n){return{min:eI(e,t),max:eI(e,n)}}function eI(e,t){return"number"==typeof e?e:e[t]||0}let ek=new WeakMap;class eD{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,Q.ge)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:i}=this.getProps();this.panSession=new eC(e,{onSessionStart:e=>{t&&this.snapToCursor(em(e).point),this.stopAnimation()},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,ee.W)(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),(0,et.X)(e=>{let t=this.getAxisMotionValue(e).get()||0;if(en.KN.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=(0,er.CQ)(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&ei.Gt.update(()=>i(e,t),!1,!0),(0,eo.g)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&ei.Gt.update(()=>o(e,t),!1,!0)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,distanceThreshold:n,contextWindow:ey(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&ei.Gt.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!eL(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?(0,eu.k)(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?(0,eu.k)(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&_(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:eM(e.x,n,i),y:eM(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:eN(e,"left","right"),y:eN(e,"top","bottom")}}(t),r!==this.constraints&&!_(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&(0,et.X)(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_(t))return!1;let r=t.current;(0,eh.V)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let o=(0,ea.L)(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:eO(e.x,o.x),y:eO(e.y,o.y)});if(n){let e=n((0,es.pA)(a));this.hasMutatedConstraints=!!e,e&&(a=(0,es.FY)(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all((0,et.X)(a=>{if(!eL(a,t,this.currentDirection))return;let l=s&&s[a]||{};(!0===o||o===a)&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return(0,eo.g)(this.visualElement,e),n.start((0,el.f)(e,n,0,t,this.visualElement,!1))}stopAnimation(){(0,et.X)(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){(0,et.X)(t=>{let{drag:n}=this.getProps();if(!eL(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t],a=i.get()||0;i.set(e[t]-(0,eu.k)(n,o,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!_(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};(0,et.X)(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=(0,er.CQ)(e),i=(0,er.CQ)(t);return i>r?n=(0,eR.q)(t.min,t.max-r,e.min):r>i&&(n=(0,eR.q)(e.min,e.max-i,t.min)),(0,eA.q)(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),(0,et.X)(t=>{if(!eL(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set((0,eu.k)(i,o,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;ek.set(this.visualElement,this);let t=this.visualElement.current,n=eg(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,o=i!==t&&(0,ed.a)(i);n&&r&&!o&&this.start(e)}),r=()=>{let{dragConstraints:n}=this.getProps();_(n)&&n.current&&(this.constraints=this.resolveRefConstraints(),e||(e=function(e,t,n){let r=(0,ef.X)(e,ej(n)),i=(0,ef.X)(t,ej(n));return()=>{r(),i()}}(t,n.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ei.Gt.read(r);let a=(0,ec.k)(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&((0,et.X)(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function ej(e){let t=!0;return()=>{if(t){t=!1;return}e()}}
1function eL(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class eF extends H.X{constructor(e){super(e),this.removeGroupControls=J.l,this.removeListeners=J.l,this.controls=new eD(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||J.l}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let eV=e=>(t,n)=>{e&&ei.Gt.update(()=>e(t,n),!1,!0)};class eB extends H.X{constructor(){super(...arguments),this.removePointerDownListener=J.l}onPointerDown(e){this.session=new eC(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ey(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:eV(e),onStart:eV(t),onMove:eV(n),onEnd:(e,t)=>{delete this.session,r&&ei.Gt.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=eg(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var eW=n(22259),eU=n(84332),e_=n(82131);let eG=!1;class eK extends o.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),eG&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),eW.w.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),eG=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||ei.Gt.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),eU.k.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;eG=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function eH(e){let[t,n]=(0,e_.xQ)(),r=(0,o.useContext)(u.L);return(0,l.jsx)(eK,{...e,layoutGroup:r,switchLayoutGroup:(0,o.useContext)(U),isPresent:t,safeToRemove:n})}var eq=n(41921);let eX={pan:{Feature:eB},drag:{Feature:eF,ProjectionNode:eq.P,MeasureLayout:eH}};var ez=n(52780);function eY(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&ei.Gt.postRender(()=>i(t,em(t)))}class eZ extends H.X{mount(){let{current:e}=this.node;e&&(this.unmount=(0,ez.P)(e,(e,t)=>(eY(this.node,t,"Start"),e=>eY(this.node,e,"End"))))}unmount(){}}class eJ extends H.X{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,e$.F)((0,ec.k)(this.node.current,"focus",()=>this.onFocus()),(0,ec.k)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var eQ=n(15413);function e0(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&ei.Gt.postRender(()=>i(t,em(t)))}class e1 extends H.X{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;
1this.unmount=(0,eQ.c)(e,(e,t)=>(e0(this.node,t,"Start"),(e,{success:t})=>e0(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}let e2=new WeakMap,e3=new WeakMap,e4=e=>{let t=e2.get(e.target);t&&t(e)},e9=e=>{e.forEach(e4)},e8={some:0,all:1};class e5 extends H.X{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:e8[r]};this.stopObserver=function(e,t,n){let r=function({root:e,...t}){let n=e||document;e3.has(n)||e3.set(n,{});let r=e3.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(e9,{root:e,...t})),r[i]}(t);return e2.set(e,n),r.observe(e),()=>{e2.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let e6={layout:{ProjectionNode:eq.P,MeasureLayout:eH}},e7=function(e,t){if("undefined"==typeof Proxy)return K;let n=new Map,r=(n,r)=>K(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,K(o,void 0,e,t)),n.get(o))})}({animation:{Feature:X},exit:{Feature:Z},inView:{Feature:e5},tap:{Feature:e1},focus:{Feature:eJ},hover:{Feature:eZ},...eX,...e6},(e,t)=>t.isSVG??s(e)?new r.l(t):new i.M(t,{allowProjection:e!==o.Fragment}))},17382:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},17686:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});var r=n(44922),i=n(95925);let o=r.forwardRef(function(e,t){let{className:n,render:r,orientation:o="horizontal",style:a,...s}=e;return(0,i.o)("div",e,{state:{orientation:o},ref:t,props:[{role:"separator","aria-orientation":o},s]})})},17724:(e,t,n)=>{"use strict";n.d(t,{BT:()=>a,Ed:()=>r,Jd:()=>d,RJ:()=>l,WS:()=>o,XA:()=>i,eR:()=>s,il:()=>u});let r="data-base-ui-focusable",i="active",o="selected",a="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",s="ArrowLeft",l="ArrowRight",u="ArrowUp",d="ArrowDown"},17947:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},18469:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});let r=e=>/^0[^.\s]+$/u.test(e)},18742:()=>{},18917:(e,t,n)=>{"use strict";n.d(t,{OQ:()=>d,bt:()=>l});var r=n(58439),i=n(67448),o=n(2162),a=n(80016);let s=e=>!isNaN(parseFloat(e)),l={current:void 0};class u{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=o.k.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=o.k.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=s(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new r.v);let n=this.events[e].add(t);return"change"===e?()=>{n(),a.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}
1setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=o.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function d(e,t){return new u(e,t)}},19608:(e,t,n)=>{"use strict";n.d(t,{P:()=>o,s:()=>a});var r=n(5035),i=n(44922);let o=i.createContext(void 0);function a(){let e=i.useContext(o);if(void 0===e)throw Error((0,r.A)(20));return e}},20202:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},20235:(e,t,n)=>{"use strict";n.d(t,{a:()=>a,c:()=>i});let r=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function i(e){return r.has(e.tagName)||!0===e.isContentEditable}let o=new Set(["INPUT","SELECT","TEXTAREA"]);function a(e){return o.has(e.tagName)||!0===e.isContentEditable}},20260:(e,t,n)=>{"use strict";n.d(t,{C1:()=>M,bL:()=>R});var r=n(44922),i=n.t(r,2);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function s(...e){return r.useCallback(a(...e),e)}var l=n(66162),u=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function d(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var c=globalThis?.document?r.useLayoutEffect:()=>{},f=i[" useInsertionEffect ".trim().toString()]||c,h=(Symbol("RADIX:SYNC_STATE"),n(23858)),p=n(41242),m=e=>{let{present:t,children:n}=e,i=function(e){var t,n;let[i,o]=r.useState(),a=r.useRef(null),s=r.useRef(e),l=r.useRef("none"),[u,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=v(a.current);l.current="mounted"===u?e:"none"},[u]),c(()=>{let t=a.current,n=s.current;if(n!==e){let r=l.current,i=v(t);e?d("MOUNT"):"none"===i||t?.display==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),s.current=e}},[e,d]),c(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,n=n=>{let r=v(a.current).includes(CSS.escape(n.animationName));if(n.target===i&&r&&(d("ANIMATION_END"),!s.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(l.current=v(a.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}d("ANIMATION_END")}
1,[i,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:r.useCallback(e=>{a.current=e?getComputedStyle(e):null,o(e)},[])}}(t),o="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),a=s(i.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof n||i.isPresent?r.cloneElement(o,{ref:a}):null};function v(e){return e?.animationName||"none"}m.displayName="Presence",n(49715);var g=Symbol("radix.slottable");function y(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===g}var $=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var o;let e,s,l=(o=n,(s=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(s=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(u.ref=t?a(t,l):l),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...o}=e,a=r.Children.toArray(i),s=a.find(y);if(s){let e=s.props.children,i=a.map(t=>t!==s?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,l.jsx)(t,{...o,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(i?n:t,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),b="Checkbox",[x,w]=function(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=r.createContext(i),a=n.length;n=[...n,i];let s=t=>{let{scope:n,children:i,...s}=t,u=n?.[e]?.[a]||o,d=r.useMemo(()=>s,Object.values(s));return(0,l.jsx)(u.Provider,{value:d,children:i})};return s.displayName=t+"Provider",[s,function(n,s){let l=s?.[e]?.[a]||o,u=r.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}(b),[C,S]=x(b);function E(e){let{__scopeCheckbox:t,checked:n,children:i,defaultChecked:o,disabled:a,form:s,name:u,onCheckedChange:d,required:c,value:h="on",internal_do_not_use_render:p}=e,[m,v]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){let[o,a,s]=function({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),o=r.useRef(n),a=r.useRef(t);return f(()=>{a.current=t},[t]),r.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,i,a]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:o;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,i])}return[u,r.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else a(t)},[l,e,a,s])]}({prop:n,defaultProp:o??!1,onChange:d,caller:b}),[g,y]=r.useState(null),[$,x]=r.useState(null),w=r.useRef(!1),S=!g||!!s||!!g.closest("form"),E={checked:m,disabled:a,setChecked:v,control:g,setControl:y,name:u,form:s,value:h,hasConsumerStoppedPropagationRef:w,required:c,defaultChecked:!I(o)&&o,isFormControl:S,bubbleInput:$,setBubbleInput:x};return(0,l.jsx)(C,{scope:t,...E,children:"function"==typeof p?p(E):i})}var P="CheckboxTrigger",T=r.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...i},o)=>
1{let{control:a,value:u,disabled:c,checked:f,required:h,setControl:p,setChecked:m,hasConsumerStoppedPropagationRef:v,isFormControl:g,bubbleInput:y}=S(P,e),b=s(o,p),x=r.useRef(f);return r.useEffect(()=>{let e=a?.form;if(e){let t=()=>m(x.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[a,m]),(0,l.jsx)($.button,{type:"button",role:"checkbox","aria-checked":I(f)?"mixed":f,"aria-required":h,"data-state":k(f),"data-disabled":c?"":void 0,disabled:c,value:u,...i,ref:b,onKeyDown:d(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:d(n,e=>{m(e=>!!I(e)||!e),y&&g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})});T.displayName=P;var R=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:a,disabled:s,value:u,onCheckedChange:d,form:c,...f}=e;return(0,l.jsx)(E,{__scopeCheckbox:n,checked:i,defaultChecked:o,disabled:s,required:a,onCheckedChange:d,name:r,form:c,value:u,internal_do_not_use_render:({isFormControl:e})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(T,{...f,ref:t,__scopeCheckbox:n}),e&&(0,l.jsx)(N,{__scopeCheckbox:n})]})})});R.displayName=b;var A="CheckboxIndicator",M=r.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,o=S(A,n);return(0,l.jsx)(m,{present:r||I(o.checked)||!0===o.checked,children:(0,l.jsx)($.span,{"data-state":k(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});M.displayName=A;var O="CheckboxBubbleInput",N=r.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:i,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:u,required:d,disabled:c,name:f,value:m,form:v,bubbleInput:g,setBubbleInput:y}=S(O,e),b=s(n,y),x=(0,h.Z)(a),w=(0,p.X)(i);r.useEffect(()=>{if(!g)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!o.current;if(x!==a&&e){let n=new Event("click",{bubbles:t});g.indeterminate=I(a),e.call(g,!I(a)&&a),g.dispatchEvent(n)}},[g,x,a,o]);let C=r.useRef(!I(a)&&a);return(0,l.jsx)($.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??C.current,required:d,disabled:c,name:f,value:m,form:v,...t,tabIndex:-1,ref:b,style:{...t.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function I(e){return"indeterminate"===e}function k(e){return I(e)?"indeterminate":e?"checked":"unchecked"}N.displayName=O},20442:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});var r=n(3294),i=n(61869);let o=new Set(["brightness","contrast","saturate","opacity"]);function a(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(i.S)||[];if(!r)return e;let a=n.replace(r,""),s=+!!o.has(t);return r!==n&&(s*=100),t+"("+s+a+")"}let s=/\b([a-z-]*)\(.*?\)/gu,l={...r.f,getAnimatableNone:e=>{let t=e.match(s);return t?t.map(a).join(" "):e}}},20648:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(25960);function i(e){return(0,r.G)(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}},20889:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});let r=e=>"string"==typeof e&&"svg"===e.toLowerCase()},21333:(e,t,n)=>{"use strict";n.d(t,{T:()=>a,n:()=>s});var r=n(89956),i=n(89409),o=n(42803);let a=[r.ai,i.px,i.KN,i.uj,i.vw,i.vh,{test:e=>"auto"===e,parse:e=>e}],s=e=>a.find((0,o.w)(e))},21380:(e,t,n)=>{"use strict";n.d(t,{o:()=>G});var r=n(44922),i=n(89243),o=n(38138),a=n(80464),s=n(2092),l=n(77268),u=n(40324),d=n(53862),c=n(12792),f=n(15860),h=n(43282),p=n(18120),m=n(47736),v=n(68202),g=n(47853),y=n(28556);let $=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0,offsetParent:f="real"}=(0,d._3)(e,t)||{};if(null==u)return{};let h=(0,d.nI)(c),p={x:n,y:r},m=(0,d.Dz)(i),v=(0,d.sq)(m),g=await a.getDimensions(u),y="y"===m,$=y?"clientHeight":"clientWidth",b=o.reference[v]+o.reference[m]-p[m]-o.floating[v],x=p[m]-o.reference[m],w="real"===f?await a.getOffsetParent?.(u):s.floating,C=s.floating[$]||o.floating[v];C&&await a.isElement?.(w)||(C=s.floating[$]||o.floating[v]);let S=C/2-g[v]/2-1,E=Math.min(h[y?"top":"left"],S),P=Math.min(h[y?"bottom":"right"],S),T=C-g[v]-P,R=C/2-g[v]/2+(b/2-x/2),A=(0,d.qE)(E,R,T),M=!l.arrow&&null!=(0,d.Sg)(i)&&R!==A&&o.reference[v]/2-(R<E?E:P)-g[v]/2<0,O=M?R<E?R-E:R-T:0;return{[m]:p[m]+O,data:{[m]:A,centerOffset:R-A-O,...M&&{alignmentOffset:O}},reset:M}}}),b=(e,t)=>({...$(e),options:[e,t]}),x={name:"hide",async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,o=await (0,p.jD)().fn(e);return{data:{referenceHidden:o.data?.referenceHidden||0===t&&0===n&&0===r&&0===i}}}},w={sideX:"left",sideY:"top"};
1function C(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function S(e,t,n){let{rects:r,placement:i}=e;return{side:C(t,(0,d.C0)(i),n),align:(0,d.Sg)(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function E(e){return null!=e&&"current"in e}var P=n(19608),T=n(99089),R=n(90578),A=n(66162);let M=r.forwardRef(function(e,t){let n,{cutout:r,...i}=e;if(r){let e=r.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,A.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})});var O=n(32424),N=n(95925),I=n(90881),k=n(35464),D=n(31142),j=n(56303),L=n(46063),F=n(93858);let V={},B={},W="";class U{lockCount=0;restore=null;timeoutLock=j.E.create();timeoutUnlock=j.E.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(0===this.lockCount||null!==this.restore)return;let t=(0,c.R)(e).documentElement,n=(0,f.zk)(t).getComputedStyle(t).overflowY;if("hidden"===n||"clip"===n){this.restore=F.tE;return}let r=D.un||!function(e){if("undefined"==typeof document)return!1;let t=(0,c.R)(e);return(0,f.zk)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=r?function(e){let t=(0,c.R)(e),n=t.documentElement,r=t.body,i=(0,f.ZU)(n)?n:r,o={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,o)}}(e):function(e){let t=(0,c.R)(e),n=t.documentElement,r=t.body,i=(0,f.zk)(n),o=0,a=0,s=!1,l=L.K.create();if(D.Tc&&(i.visualViewport?.scale??1)!==1)return()=>{};function u(){let t=i.getComputedStyle(n),l=i.getComputedStyle(r),u=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";o=n.scrollTop,a=n.scrollLeft,V={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},W=n.style.scrollBehavior,B={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let d=n.scrollHeight>n.clientHeight,h=n.scrollWidth>n.clientWidth,p="scroll"===t.overflowY||"scroll"===l.overflowY,m="scroll"===t.overflowX||"scroll"===l.overflowX,v=Math.max(0,i.innerWidth-r.clientWidth),g=Math.max(0,i.innerHeight-r.clientHeight),y=parseFloat(l.marginTop)+parseFloat(l.marginBottom),$=parseFloat(l.marginLeft)+parseFloat(l.marginRight),b=(0,f.ZU)(n)?n:r;if(s=function(e){if(!("undefined"!=typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"undefined"==typeof document)return!1;let t=(0,c.R)(e),n=t.documentElement,r=t.body,i=(0,f.ZU)(n)?n:r,o=i.style.overflowY,a=n.style.scrollbarGutter;n.style.scrollbarGutter="stable",i.style.overflowY="scroll";let s=i.offsetWidth;i.style.overflowY="hidden";let l=i.offsetWidth;return i.style.overflowY=o,n.style.scrollbarGutter=a,s===l}(e)){n.style.scrollbarGutter=u,b.style.overflowY="hidden",b.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:u,overflowY:"hidden",overflowX:"hidden"}),(d||p)&&(n.style.overflowY="scroll"),(h||m)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:y||g?`calc(100dvh - ${y+g}px)`:"100dvh",width:$||v?`calc(100vw - ${$+v}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=o,r.scrollLeft=a,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function d(){Object.assign(n.style,V),Object.assign(r.style,B),s||(n.scrollTop=o,n.scrollLeft=a,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=W)}u();let h=(0,k.q)(i,"resize",function(){d(),l.request(u)});return()=>{l.cancel(),d(),"function"==typeof i.removeEventListener&&h()}}(e)}}let _=new U,G=r.forwardRef(function(e,t){var n;
1let{render:$,className:k,anchor:D,positionMethod:j="absolute",side:L="bottom",align:F="center",sideOffset:V=0,alignOffset:B=0,collisionBoundary:W="clipping-ancestors",collisionPadding:U=5,arrowPadding:G=5,sticky:K=!1,disableAnchorTracking:H=!1,collisionAvoidance:q=T.uD,style:X,...z}=e,Y=(0,l.Ee)(),{filteredItems:Z}=(0,l.Dc)(),J=(0,l.ui)(),Q=(0,P.s)(),ee=(0,i.P)(Y,R.T.modal),et=(0,i.P)(Y,R.T.open),en=(0,i.P)(Y,R.T.mounted),er=(0,i.P)(Y,R.T.openMethod),ei=(0,i.P)(Y,R.T.positionerElement),eo=(0,i.P)(Y,R.T.triggerElement),ea=(0,i.P)(Y,R.T.inputElement),es=(0,i.P)(Y,R.T.inputGroupElement),el=(0,i.P)(Y,R.T.inputInsidePopup),eu=(0,i.P)(Y,R.T.transitionStatus),ed=0===Z.length,ec=function(e){let{anchor:t,positionMethod:n="absolute",side:i="bottom",sideOffset:s=0,align:l="center",alignOffset:u=0,collisionBoundary:$,collisionPadding:P=5,sticky:T=!1,arrowPadding:R=5,disableAnchorTracking:A=!1,keepMounted:M=!1,floatingRootContext:O,mounted:N,collisionAvoidance:I,shiftCrossAxis:k=!1,nodeId:D,adaptiveOrigin:j,lazyFlip:L=!1,externalTree:F}=e,[V,B]=r.useState(null);N||null===V||B(null);let W=I.side||"flip",U=I.align||"flip",_=I.fallbackAxisSide||"end",G="function"==typeof t?t:void 0,K=(0,a.K)(G),H=G?K:t,q=(0,h.u)(t),X=(0,h.u)(N),z="rtl"===(0,y.j)(),Y=V||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":z?"left":"right","inline-start":z?"right":"left"})[i],Z="center"===l?Y:`${Y}-${l}`,J=P,Q=+("bottom"===i),ee=+("top"===i),et=+("right"===i),en=+("left"===i);"number"==typeof J?J={top:J+Q,right:J+en,bottom:J+ee,left:J+et}:J&&(J={top:(J.top||0)+Q,right:(J.right||0)+en,bottom:(J.bottom||0)+ee,left:(J.left||0)+et});let er={boundary:"clipping-ancestors"===$?"clippingAncestors":$,padding:J},ei=r.useRef(null),eo=(0,h.u)(s),ea=(0,h.u)(u),es=[(0,p.cY)(e=>{let t=S(e,i,z),n="function"==typeof eo.current?eo.current(t):eo.current,r="function"==typeof ea.current?ea.current(t):ea.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},["function"!=typeof s?s:0,"function"!=typeof u?u:0,z,i])],el="none"===U&&"shift"!==W,eu=!el&&(T||k||"shift"===W),ed="none"===W?null:(0,p.UU)({...er,padding:{top:J.top+1,right:J.right+1,bottom:J.bottom+1,left:J.left+1},mainAxis:!k&&"flip"===W,crossAxis:"flip"===U&&"alignment",fallbackAxisSideDirection:_}),ec=el?null:(0,p.BN)(e=>{let t=(0,c.R)(e.elements.floating).documentElement;return{...er,rootBoundary:k?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:"none"!==U,crossAxis:eu,limiter:T||k?void 0:(0,p.ER)(e=>{if(!ei.current)return{};let{width:t,height:n}=ei.current.getBoundingClientRect(),r=(0,d.TV)((0,d.C0)(e.placement)),i="y"===r?J.left+J.right:J.top+J.bottom;return{offset:("y"===r?t:n)/2+i/2}})}},[er,T,k,J,U]);"shift"===W||"shift"===U||"center"===l?es.push(ec,ed):es.push(ed,ec),es.push((0,p.Ej)({...er,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!X.current)return;let i=e.style;i.setProperty("--available-width",`${t}px`),i.setProperty("--available-height",`${n}px`);let o=(0,f.zk)(e).devicePixelRatio||1,{x:a,y:s,width:l,height:u}=r.reference,d=(Math.round((a+l)*o)-Math.round(a*o))/o,c=(Math.round((s+u)*o)-Math.round(s*o))/o;i.setProperty("--anchor-width",`${d}px`),i.setProperty("--anchor-height",`${c}px`)}}),b(()=>({element:ei.current||(0,c.R)(ei.current).createElement("div"),padding:R,offsetParent:"floating"}),[R]),{name:"transformOrigin",fn(e){let{elements:t,middlewareData:n,placement:r,rects:o,y:a}=e,l=(0,d.C0)(r),u=(0,d.TV)(l),c=ei.current,f=n.arrow?.x||0,h=n.arrow?.y||0,p=c?.clientWidth||0,m=c?.clientHeight||0,v=f+p/2,g=h+m/2,y=Math.abs(n.shift?.y||0),$=o.reference.height/2,b="function"==typeof s?s(S(e,i,z)):s,x=y>b,w={top:`${v}px calc(100% + ${b}px)`,bottom:`${v}px ${-b}px`,left:`calc(100% + ${b}px) ${g}px`,right:`${-b}px ${g}px`}[l],C=`${v}px ${o.reference.y+$-a}px`;return t.floating.style.setProperty("--transform-origin",eu&&"y"===u&&x?C:w),{}}},x,j),(0,o.g)(()=>{!N&&O&&O.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[N,O]);let ef=r.useMemo(()=>({elementResize:!A&&"undefined"!=typeof ResizeObserver,layoutShift:!A&&"undefined"!=typeof IntersectionObserver}),[A]),{refs:eh,elements:ep,x:em,y:ev,middlewareData:eg,update:ey,placement:e$,context:eb,isPositioned:ex,floatingStyles:ew}=function(e={}){let{nodeId:t,externalTree:n}=e,i=(0,v.P)(e),a=e.rootContext||i,s={reference:a.useState("referenceElement"),floating:a.useState("floatingElement"),domReference:a.useState("domReferenceElement")},[l,u]=r.useState(null),d=r.useRef(null),c=(0,m.cq)(n);(0,o.g)(()=>{s.domReference&&(d.current=s.domReference)},[s.domReference]);let h=(0,p.we)({...e,elements:{...s,...l&&{reference:l}}}),g=r.useCallback(e=>{let t=(0,f.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),h.refs.setReference(t)},[h.refs]),[y,$]=r.useState(void 0),[b,x]=r.useState(null);a.useSyncedValue("referenceElement",y??null);let w=(0,f.vq)(y)?y:null;a.useSyncedValue("domReferenceElement",void 0===y?s.domReference:w),a.useSyncedValue("floatingElement",b);let C=r.useCallback(e=>{((0,f.vq)(e)||null===e)&&(d.current=e,$(e)),((0,f.vq)(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!(0,f.vq)(e))&&h.refs.setReference(e)},[h.refs,$]),S=r.useCallback(e=>{x(e),h.refs.setFloating(e)},[h.refs]),E=r.useMemo(()=>({...h.refs,setReference:C,setFloating:S,setPositionReference:g,domReference:d}),[h.refs,C,S,g]),P=r.useMemo(()=>({...h.elements,domReference:s.domReference}),[h.elements,s.domReference]),T=a.useState("open"),R=a.useState("floatingId"),A=r.useMemo(()=>({...h,dataRef:a.context.dataRef,open:T,onOpenChange:a.setOpen,events:a.context.events,floatingId:R,refs:E,elements:P,nodeId:t,rootStore:a}),[h,E,P,t,a,T,R]);return(0,o.g)(()=>{a.context.dataRef.current.floatingContext=A;let e=c?.nodesRef.current.find(e=>e.id===t);e&&(e.context=A)}),r.useMemo(()=>({...h,context:A,refs:E,elements:P,rootStore:a}),[h,E,P,A,a])}({rootContext:O,open:M?N:void 0,placement:Z,middleware:es,strategy:n,whileElementsMounted:M?void 0:(...e)=>(0,g.ll)(...e,ef),nodeId:D,externalTree:F}),{sideX:eC,sideY:eS}=eg.adaptiveOrigin||w,eE=ex?n:"fixed",eP=r.useMemo(()=>{let e=j?{position:eE,[eC]:em,[eS]:ev}:{position:eE,...ew};return ex||(e.opacity=0),e},[j,eE,eC,em,eS,ev,ew,ex]),eT=r.useRef(null);(0,o.g)(()=>
1{if(!N)return;let e=q.current,t="function"==typeof e?e():e,n=(E(t)?t.current:t)||null;n!==eT.current&&(eh.setPositionReference(n),eT.current=n)},[N,eh,H,q]),r.useEffect(()=>{if(!N)return;let e=q.current;"function"!=typeof e&&E(e)&&e.current!==eT.current&&(eh.setPositionReference(e.current),eT.current=e.current)},[N,eh,H,q]),r.useEffect(()=>{if(M&&N&&ep.domReference&&ep.floating)return(0,g.ll)(ep.domReference,ep.floating,ey,ef)},[M,N,ep,ey,ef]);let eR=(0,d.C0)(e$),eA=C(i,eR,z),eM=(0,d.Sg)(e$)||"center",eO=!!eg.hide?.referenceHidden;(0,o.g)(()=>{L&&N&&ex&&B(eR)},[L,N,ex,eR]);let eN=r.useMemo(()=>({position:"absolute",top:eg.arrow?.y,left:eg.arrow?.x}),[eg.arrow]),eI=eg.arrow?.centerOffset!==0;return r.useMemo(()=>({positionerStyles:eP,arrowStyles:eN,arrowRef:ei,arrowUncentered:eI,side:eA,align:eM,physicalSide:eR,anchorHidden:eO,refs:eh,context:eb,isPositioned:ex,update:ey}),[eP,eN,ei,eI,eA,eM,eR,eO,eh,eb,ex,ey])}({anchor:D??(el?eo:es??ea),floatingRootContext:J,positionMethod:j,mounted:en,side:L,sideOffset:V,align:F,alignOffset:B,arrowPadding:G,collisionBoundary:W,collisionPadding:U,sticky:K,disableAnchorTracking:H,keepMounted:Q,collisionAvoidance:q,lazyFlip:!0});!function(e,t,n,i){let[a,s]=r.useState(!1);(0,o.g)(()=>{if(!e||!t||null==n)return void s(!1);let r=(0,c.R)(n).documentElement.clientWidth,i=n.offsetWidth;s(r>0&&i>0&&i>=r-20)},[e,t,n]),function(e=!0,t=null){(0,o.g)(()=>{if(e)return _.acquire(t)},[e,t])}(e&&(!t||a),i)}(et&&ee,"touch"===er,ei,eo);let ef={open:et,side:ec.side,align:ec.align,anchorHidden:ec.anchorHidden,empty:ed};(0,o.g)(()=>{Y.set("popupSide",ec.side)},[Y,ec.side]);let eh=(0,a.K)(e=>{Y.set("positionerElement",e)}),ep=function(e,t,{styles:n,transitionStatus:r,props:i,refs:o,hidden:a,inert:s=!1}){let l={...n};return s&&(l.pointerEvents="none"),(0,N.o)("div",e,{state:t,ref:o,props:[{role:"presentation",hidden:a,style:l},(0,I.d)(r),i],stateAttributesMapping:O.GW})}(e,ef,{styles:ec.positionerStyles,transitionStatus:eu,props:z,refs:[t,eh],hidden:!en,inert:!et});return(0,A.jsxs)(u.Z.Provider,{value:ec,children:[en&&ee&&(0,A.jsx)(M,{inert:(n=!et,(0,s._)(19)?n:n?"true":void 0),cutout:es??ea??eo}),ep]})})},21449:(e,t,n)=>{"use strict";function r(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}n.d(t,{r:()=>r})},21593:()=>{},21761:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});let r=e=>null!==e;function i(e,{repeat:t,repeatType:n="loop"},o,a=1){let s=e.filter(r),l=a<0||t&&"loop"!==n&&t%2==1?0:s.length-1;return l&&void 0!==o?o:s[l]}},22259:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});let r={hasAnimatedSinceResize:!0,hasEverUpdated:!1}},22948:()=>{},23858:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(44922);function i(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},23981:()=>{},24160:(e,t,n)=>{"use strict";n.d(t,{X:()=>i,f:()=>r});let r=e=>1e3*e,i=e=>e/1e3},24275:(e,t,n)=>{"use strict";n.d(t,{y:()=>a});var r=n(33432),i=n(32965),o=n(68441);let a={test:e=>o.B.test(e)||r.u.test(e)||i.V.test(e),parse:e=>o.B.test(e)?o.B.parse(e):i.V.test(e)?i.V.parse(e):r.u.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?o.B.transform(e):i.V.transform(e),getAnimatableNone:e=>{let t=a.parse(e);return t.alpha=0,a.transform(t)}}},24656:(e,t,n)=>{"use strict";n.d(t,{v:()=>u});var r=n(44922),i=n(80464),o=n(49715),a=n(46063),s=n(39608),l=n(3138);function u(e){let{enabled:t=!0,open:n,ref:u,onComplete:d}=e,c=(0,i.K)(d),f=function(e,t=!1,n=!0){let r=(0,a.N)();return(0,i.K)((i,a=null)=>{r.cancel();let u=(0,s.q)(e);if(null==u)return;let d=()=>{o.flushSync(i)};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void i();function c(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||d()}).catch(()=>{if(n){a?.aborted||d();return}let e=u.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&c()})}if(t){let e=l.T.startingStyle;if(!u.hasAttribute(e))return void r.request(c);let t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),c())});return t.observe(u,{attributes:!0,attributeFilter:[e]}),void a?.addEventListener("abort",()=>t.disconnect(),{once:!0})}r.request(c)})}(u,n,!1);r.useEffect(()=>{if(!t)return;let e=new AbortController;return f(c,e.signal),()=>{e.abort()}},[t,n,c,f])}},25479:(e,t,n)=>{"use strict";n.d(t,{I:()=>en});var r=n(44922),i=n(89243),o=n(15860),a=n(35464),s=n(82422),l=n(33074),u=n(43282),d=n(80464),c=n(38138),f=n(56303),h=n(31142),p=n(46063),m=n(12792),v=n(46860),g=n(95060),y=n(80321),$=n(41161),b=n(80368),x=n(10396),w=n(10342),C=n(4465),S=n(86623),E=n(33561),P=n(34621);let T={inert:new WeakMap,"aria-hidden":new WeakMap},R="data-base-ui-inert",A={inert:new WeakSet,"aria-hidden":new WeakSet},M=new WeakMap,O=0,N=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=function e(t){return t?(0,o.Ng)(t)?t.host:e(t.parentNode):null}(t);return e.contains(n)?n:null}).filter(e=>null!=e),I=e=>{let t=new Set;
1return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},k=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,o.mq)(e)&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function D(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:o=[]}=t,a=(0,m.R)(e[0]).body;return function(e,t,n,r,{mark:i=!0,markerIgnoreElements:o=[]}){let a=r?"inert":n?"aria-hidden":null,s=null,l=null,u=N(t,e),d=new Set(i?N(t,o):[]),c=i?k(t,I(u),new Set(u)).filter(e=>!d.has(e)):[],f=[],h=[];if(a){let e=T[a],n=A[a];l=n,s=e;let r=N(t,Array.from(t.querySelectorAll("[aria-live]"))),i=u.concat(r);k(t,I(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=null!==r&&"false"!==r,o=(e.get(t)||0)+1;e.set(t,o),f.push(t),1===o&&i&&n.add(t),i||t.setAttribute(a,"inert"===a?"":"true")})}return i&&c.forEach(e=>{let t=(M.get(e)||0)+1;M.set(e,t),h.push(e),1===t&&e.setAttribute(R,"")}),O+=1,()=>{s&&f.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!l?.has(e)&&a&&e.removeAttribute(a),l?.delete(e))}),i&&h.forEach(e=>{let t=(M.get(e)||0)-1;M.set(e,t),t||e.removeAttribute(R)}),(O-=1)||(T.inert=new WeakMap,T["aria-hidden"]=new WeakMap,A.inert=new WeakSet,A["aria-hidden"]=new WeakSet,M=new WeakMap)}}(e,a,n,r,{mark:i,markerIgnoreElements:o})}var j=n(43946),L=n(47736),F=n(99089),V=n(39608),B=n(66162);let W=[];function U(){W=W.filter(e=>e.deref()?.isConnected)}function _(){return U(),W[W.length-1]?.deref()}function G(e,t){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;let n=(0,b.nq)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,b.AO)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),r=e.getAttribute("tabindex");t.current.includes("floating")||0===n.length?"0"!==r&&e.setAttribute("tabindex","0"):("-1"!==r||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function K(e){let{context:t,children:n,disabled:i=!1,initialFocus:T=!0,returnFocus:R=!0,restoreFocus:A=!1,modal:M=!0,closeOnFocusOut:O=!0,openInteractionType:N="",nextFocusableElement:I,previousFocusableElement:k,beforeContentFocusGuardRef:K,externalTree:H,getInsideElements:q}=e,X="rootStore"in t?t.rootStore:t,z=X.useState("open"),Y=X.useState("domReferenceElement"),Z=X.useState("floatingElement"),{events:J,dataRef:Q}=X.context,ee=(0,d.K)(()=>Q.current.floatingContext?.nodeId),et=!1===T,en=(0,y.WZ)(Y)&&et,er=r.useRef(["content"]),ei=(0,u.u)(T),eo=(0,u.u)(R),ea=(0,u.u)(N),es=(0,L.cq)(H),el=(0,j.vB)(),eu=r.useRef(!1),ed=r.useRef(!1),ec=r.useRef(!1),ef=r.useRef(null),eh=r.useRef(""),ep=r.useRef(""),em=r.useRef(null),ev=r.useRef(null),eg=(0,l.a)(em,K,el?.beforeInsideRef),ey=(0,l.a)(ev,el?.afterInsideRef),e$=(0,f.Z)(),eb=(0,f.Z)(),ex=(0,p.N)(),ew=null!=el,eC=(0,y.nd)(Z),eS=(0,d.K)((e=eC)=>e?(0,b.Kr)(e):[]),eE=(0,d.K)(()=>q?.().filter(e=>null!=e)??[]);r.useEffect(()=>{if(i||!M)return;let e=(0,m.R)(eC);return(0,a.q)(e,"keydown",function(e){"Tab"===e.key&&(0,g.gR)(eC,(0,g.RS)((0,m.R)(eC)))&&0===eS().length&&!en&&(0,$.jo)(e)})},[i,Y,eC,M,er,en,eS]),r.useEffect(()=>{if(i||!z)return;let e=(0,m.R)(eC);function t(){ec.current=!1}return(0,s.g)((0,a.q)(e,"pointerdown",function(e){let t=(0,g.EW)(e),n=eE();ec.current=!((0,g.gR)(Z,t)||(0,g.gR)(Y,t)||(0,g.gR)(el?.portalNode,t)||n.some(e=>e===t||(0,g.gR)(e,t))),ep.current=e.pointerType||"keyboard",t?.closest(`[${F.Kd}]`)&&(ed.current=!0)},!0),(0,a.q)(e,"pointerup",t,!0),(0,a.q)(e,"pointercancel",t,!0),(0,a.q)(e,"keydown",function(){ep.current="keyboard"},!0))},[i,Z,Y,eC,z,el,eE]),r.useEffect(()=>{if(i||!O)return;let e=(0,m.R)(eC);function t(t){let n=t.relatedTarget,r=t.currentTarget,i=(0,g.EW)(t);queueMicrotask(()=>{let a=ee(),s=X.context.triggerElements,l=eE(),u=n?.hasAttribute((0,E.F)("focus-guard"))&&[em.current,ev.current,el?.beforeInsideRef.current,el?.afterInsideRef.current,el?.beforeOutsideRef.current,el?.afterOutsideRef.current,(0,V.q)(k),(0,V.q)(I)].includes(n),d=!((0,g.gR)(Y,n)||(0,g.gR)(Z,n)||(0,g.gR)(n,Z)||(0,g.gR)(el?.portalNode,n)||l.some(e=>
1e===n||(0,g.gR)(e,n))||null!=n&&s.hasElement(n)||s.hasMatchingElement(e=>(0,g.gR)(e,n))||u||es&&((0,x.CM)(es.nodesRef.current,a).find(e=>(0,g.gR)(e.context?.elements.floating,n)||(0,g.gR)(e.context?.elements.domReference,n))||(0,x.$4)(es.nodesRef.current,a).find(e=>[e.context?.elements.floating,(0,y.nd)(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===Y&&eC&&G(eC,er),A&&r!==Y&&!(0,w.J9)(i)&&(0,g.RS)(e)===e.body){if((0,o.sb)(eC)&&(eC.focus(),"popup"===A))return void ex.request(()=>{eC.focus()});let e=eS(),t=ef.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||eC;(0,o.sb)(n)&&n.focus()}if(Q.current.insideReactTree){Q.current.insideReactTree=!1;return}(en||!M)&&n&&d&&!ed.current&&(en||n!==_())&&(eu.current=!0,X.setOpen(!1,(0,C.d)(S.Xn,t)))})}let n=(0,o.sb)(Y)?Y:null;if(Z||n)return(0,s.g)(n&&(0,a.q)(n,"focusout",t),n&&(0,a.q)(n,"pointerdown",function(){ed.current=!0,eb.start(0,()=>{ed.current=!1})}),Z&&(0,a.q)(Z,"focusin",function(e){let t=(0,g.EW)(e);(0,b.AO)(t)&&(ef.current=t)}),Z&&(0,a.q)(Z,"focusout",t),Z&&el&&(0,a.q)(Z,"focusout",function(){ec.current||(Q.current.insideReactTree=!0,e$.start(0,()=>{Q.current.insideReactTree=!1}))},!0))},[i,Y,Z,eC,M,es,el,X,O,A,eS,en,ee,er,Q,e$,eb,ex,I,k,eE]),r.useEffect(()=>{if(i||!Z||!z)return;let e=Array.from(el?.portalNode?.querySelectorAll(`[${(0,E.F)("portal")}]`)||[]),t=es?(0,x.$4)(es.nodesRef.current,ee()):[],n=t.find(e=>(0,y.WZ)(e.context?.elements.domReference||null))?.context?.elements.domReference,r=D([Z,...e,em.current,ev.current,el?.beforeOutsideRef.current,el?.afterOutsideRef.current,...eE(),n,(0,V.q)(k),(0,V.q)(I),en?Y:null].filter(e=>null!=e),{ariaHidden:M||en,mark:!1}),o=D([Z,...e].filter(e=>null!=e));return()=>{o(),r()}},[z,i,Y,Z,M,er,el,en,es,ee,I,k,eE]),(0,c.g)(()=>{if(!z||i||!(0,o.sb)(eC))return;let e=(0,m.R)(eC),t=(0,g.RS)(e);queueMicrotask(()=>{let e,n=ei.current,r="function"==typeof n?n(ea.current||""):n;if(void 0===r||!1===r||(0,g.gR)(eC,t))return;let i=null,o=()=>(null==i&&(i=eS(eC)),i[0]||eC);e=(e=!0===r||null===r?o():(0,V.q)(r))||o(),(0,P.p)(e,{preventScroll:e===eC})})},[i,z,eC,et,eS,ei,ea]),(0,c.g)(()=>{var e;if(i||!eC)return;let t=(0,m.R)(eC);function n(e){if(e.open||(eh.current=function(e,t){let n=(0,o.zk)((0,g.EW)(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(0===e.detail?"keyboard":"mouse"):""}(e.nativeEvent,ep.current)),e.reason===S.N7&&"mouseleave"===e.nativeEvent.type&&(eu.current=!0),e.reason===S.Np)if(e.nested)eu.current=!1;else if((0,$.YF)(e.nativeEvent)||(0,$.Pg)(e.nativeEvent))eu.current=!1;else{let e=!1;(0,m.R)(eC).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?eu.current=!1:eu.current=!0}}return e=(0,g.RS)(t),U(),e&&"body"!==(0,o.mq)(e)&&(W.push(new WeakRef(e)),W.length>20&&(W=W.slice(-20))),J.on("openchange",n),()=>{J.off("openchange",n);let e=(0,g.RS)(t),r=eE(),i=(0,g.gR)(Z,e)||r.some(t=>t===e||(0,g.gR)(t,e))||es&&(0,x.CM)(es.nodesRef.current,ee(),!1).some(t=>(0,g.gR)(t.context?.elements.floating,e)),a=eo.current,s=function(){let e=eo.current,t="function"==typeof e?e(eh.current):e;if(void 0===t||!1===t)return null;if(null===t&&(t=!0),"boolean"==typeof t){let e=Y||_();return e&&e.isConnected?e:null}let n=Y||_();return(0,V.q)(t)||n||null}();queueMicrotask(()=>{let n=s?(0,b.AO)(s)?s:(0,b.Kr)(s)[0]||s:null;a&&!eu.current&&(0,o.sb)(n)&&("boolean"!=typeof a||n===e||e===t.body||i)&&n.focus({preventScroll:!0}),eu.current=!1})}},[i,Z,eC,eo,Q,J,es,Y,ee,eE]),(0,c.g)(()=>{if(!h.Tc||z||!Z)return;let e=(0,g.RS)((0,m.R)(Z));(0,o.sb)(e)&&(0,y.$u)(e)&&(0,g.gR)(Z,e)&&e.blur()},[z,Z]),(0,c.g)(()=>{if(!i&&el)return el.setFocusManagerState({modal:M,closeOnFocusOut:O,open:z,onOpenChange:X.setOpen,domReference:Y}),()=>{el.setFocusManagerState(null)}},[i,el,M,z,X,O,Y]),(0,c.g)(()=>{if(!i&&eC)return G(eC,er),()=>{queueMicrotask(U)}},[i,eC,er]);let eP=!i&&(!M||!en)&&(ew||M);return(0,B.jsxs)(r.Fragment,{children:[eP&&(0,B.jsx)(v.U,{"data-type":"inside",ref:eg,onFocus:e=>{if(M){let e=eS();(0,P.p)(e[e.length-1])}else if(el?.portalNode)if(eu.current=!1,(0,b.Qp)(e,el.portalNode)){let e=(0,b.vF)(Y);e?.focus()}else(0,V.q)(k??el.beforeOutsideRef)?.focus()}}),n,eP&&(0,B.jsx)(v.U,{"data-type":"inside",ref:ey,onFocus:e=>{if(M)(0,P.p)(eS()[0]);else if(el?.portalNode)if(O&&(eu.current=!0),(0,b.Qp)(e,el.portalNode)){let e=(0,b.XJ)(Y);e?.focus()}else(0,V.q)(I??el.afterOutsideRef)?.focus()}})]})}var H=n(95925),q=n(77268),X=n(90578),z=n(32424),Y=n(40324),Z=n(24656),J=n(3138),Q=n(90881),ee=n(72935);let et={...z.GW,...J.G},en=r.forwardRef(function(e,t){let{render:n,className:o,style:a,initialFocus:s,finalFocus:l,...u}=e,d=(0,q.Ee)(),c=(0,Y.O)(),f=(0,q.ui)(),{filteredItems:h}=(0,q.Dc)(),p=(0,i.P)(d,X.T.mounted),m=(0,i.P)(d,X.T.open),v=(0,i.P)(d,X.T.openMethod),y=(0,i.P)(d,X.T.transitionStatus),$=(0,i.P)(d,X.T.inputInsidePopup),b=(0,i.P)(d,X.T.inputElement),x=(0,i.P)(d,X.T.modal),w=0===h.length;(0,Z.v)({open:m,ref:d.state.popupRef,onComplete(){m&&d.state.onOpenChangeComplete(!0)}});let C={open:m,side:c.side,align:c.align,anchorHidden:c.anchorHidden,transitionStatus:y,empty:w},S=(0,H.o)("div",e,{state:C,ref:[t,d.state.popupRef],props:[{role:$?"dialog":"presentation",tabIndex:-1,onFocus(e){let t=(0,g.EW)(e.nativeEvent);"touch"!==v&&((0,g.gR)(d.state.listElement,t)||t===e.currentTarget)&&d.state.inputRef.current?.focus()}},(0,Q.d)(y),u],stateAttributesMapping:et}),E=!!$&&(e=>"touch"===e?d.state.popupRef.current:b),P=!$||x;return(0,B.jsx)(K,{context:f,disabled:!p,modal:P,openInteractionType:v,initialFocus:void 0===s?E:s,returnFocus:null!=l?l:!!$&&void 0,getInsideElements:()=>[d.state.startDismissRef.current,d.state.endDismissRef.current],children:(0,B.jsxs)(r.Fragment,{children:[S,P&&(0,B.jsx)(ee.p,{ref:d.state.endDismissRef})]})})})}
1,25689:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(44922);let i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},25960:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});let r=e=>"object"==typeof e&&null!==e},26868:(e,t,n)=>{"use strict";function r(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}n.d(t,{I:()=>r})},27106:()=>{},27969:(e,t,n)=>{"use strict";n.d(t,{J:()=>i,d:()=>o});var r=n(50545);let i=(0,r.J)(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),o=(0,r.J)(()=>void 0!==window.ViewTimeline,"viewTimeline")},28556:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(44922);let i=r.createContext(void 0);function o(){let e=r.useContext(i);return e?.direction??"ltr"}},28596:()=>{},29155:(e,t,n)=>{"use strict";n.d(t,{O:()=>s,e:()=>a});var r=n(9308),i=n(14439),o=n(33162);function a(e){return(0,r.N)(e.animate)||o._.some(t=>(0,i.w)(e[t]))}function s(e){return!!(a(e)||e.variants)}},29313:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>o});var r=n(44922),i=n(92886);function o(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:a,register:s}=t,l=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return s(l)},[e]);let u=(0,r.useCallback)(()=>e&&a&&a(l),[l,a,e]);return!n&&a?[!1,u]:[!0]}},29354:()=>{},29864:()=>{},30147:(e,t,n)=>{"use strict";n.d(t,{l:()=>c});var r=n(44922),i=n(38138),o=n(80464),a=n(43351),s=n(15860),l=n(93858),u=n(14933),d=n(77972);function c(e={}){let{id:t,implicit:n=!1,controlRef:f}=e,{controlId:h,registerControlId:p}=(0,d.H)(),m=(0,u.e)(t),v=n?h:void 0,g=(0,a.j)(()=>Symbol("labelable-control")),y=r.useRef(!1),$=r.useRef(null!=t),b=(0,o.K)(()=>{y.current&&p!==l.tE&&(y.current=!1,p(g.current,void 0))});return(0,i.g)(()=>{let e;if(p!==l.tE){if(n){let n=f?.current;e=(0,s.vq)(n)&&null!=n.closest("label")?t??null:v??m}else if(null!=t)$.current=!0,e=t;else{if(!$.current)return void b();e=m}if(void 0===e)return void b();y.current=!0,p(g.current,e)}},[t,f,v,p,n,m,g,b]),r.useEffect(()=>b,[b]),h??m}},30152:()=>{},31142:(e,t,n)=>{"use strict";n.d(t,{KT:()=>f,Tc:()=>s,gm:()=>u,m0:()=>c,nr:()=>d,un:()=>l});let r="undefined"!=typeof navigator,i=function(){if(!r)return{platform:"",maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}(),o=function(){if(!r)return"";let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}(),a=function(){if(!r)return"";let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}(),s="undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter:none"),l="MacIntel"===i.platform&&i.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(i.platform),u=r&&/firefox/i.test(a),d=r&&/apple/i.test(navigator.vendor);r&&/Edg/i.test(a);let c=r&&/android/i.test(o)||/android/i.test(a);r&&o.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;let f=a.includes("jsdom/")},31678:()=>{},31749:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});let r=(e,t,n)=>n>t?t:n<e?e:n},31930:()=>{},31977:(e,t,n)=>{"use strict";n.d(t,{O:()=>u});let r=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var i=n(85584),o=n(59945),a=n(8485);let s={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=o.U.length;function u(e,t,n){let{style:u,vars:d,transformOrigin:c}=e,f=!1,h=!1;for(let e in t){let n=t[e];if(o.f.has(e)){f=!0;continue}if((0,a.j4)(e)){d[e]=n;continue}{let t=r(n,i.W[e]);e.startsWith("origin")?(h=!0,c[e]=t):u[e]=t}}if(!t.transform&&(f||n?u.transform=function(e,t,n){let a="",u=!0;for(let d=0;d<l;d++){let l=o.U[d],c=e[l];if(void 0===c)continue;let f=!0;if("number"==typeof c)f=c===+!!l.startsWith("scale");else{let e=parseFloat(c);f=l.startsWith("scale")?1===e:0===e}if(!f||n){let e=r(c,i.W[l]);if(!f){u=!1;let t=s[l]||l;a+=`${t}(${e}) `}n&&(t[l]=e)}}let d=e.pathRotation;return d&&(u=!1,a+=`rotate(${r(d,i.W.pathRotation)}) `),a=a.trim(),n?a=n(t,u?"":a):u&&(a="none"),a}(t,e.transform,n):u.transform&&(u.transform="none")),h){let{originX:e="50%",originY:t="50%",originZ:n=0}=c;u.transformOrigin=`${e} ${t} ${n}`}}},32375:(e,t,n)=>{"use strict";n.d(t,{zK:()=>o});var r=n(59945),i=n(1020);function o(e,{layout:t,layoutId:n}){return r.f.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!i.H[e]||"opacity"===e)}},32424:(e,t,n)=>{"use strict";n.d(t,{GW:()=>h,jL:()=>f,qV:()=>c});var r=n(3138);let i=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=r.T.startingStyle]="startingStyle",e[e.endingStyle=r.T.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e}({}),o=function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e}({}),a={[o.popupOpen]:""},s={[o.popupOpen]:"",[o.pressed]:""},l={[i.open]:""},u={[i.closed]:""},d={[i.anchorHidden]:""},c={open:e=>e?a:null},f={open:e=>e?s:null},h={open:e=>e?l:u,anchorHidden:e=>e?d:null}},32903:(e,t,n)=>{"use strict";n.d(t,{Wx:()=>d});var r=n(44922),i=Object.defineProperty,o=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=new Map,s=new WeakMap,l=0,u=void 0;function d({threshold:e,delay:t,trackVisibility:n,rootMargin:i,root:o,triggerOnce:c,skip:f,initialInView:h,fallbackInView:p,onChange:m}={}){var v;let[g,y]=r.useState(null),$=r.useRef(m),[b,x]=r.useState({inView:!!h,entry:void 0});$.current=m,r.useEffect(()=>{let r;if(!f&&g)return r=function(e,t,n={},r=u){if(void 0===window.IntersectionObserver&&void 0!==r){let i=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:i,observer:o,elements:d}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?!(n=e.root)?"0":(s.has(n)||(l+=1,s.set(n,l.toString())),s.get(n)):e[t]}`}).toString(),n=a.get(t);if(!n){let r,i=new Map,o=new IntersectionObserver(t=>{t.forEach(t=>{var n;let o=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(n=i.get(t.target))||n.forEac
1h(e=>{e(o,t)})})},e);r=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:i},a.set(t,n)}return n}(n),c=d.get(e)||[];return d.has(e)||d.set(e,c),c.push(t),o.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(d.delete(e),o.unobserve(e)),0===d.size&&(o.disconnect(),a.delete(i))}}(g,(e,t)=>{x({inView:e,entry:t}),$.current&&$.current(e,t),t.isIntersecting&&c&&r&&(r(),r=void 0)},{root:o,rootMargin:i,threshold:e,trackVisibility:n,delay:t},p),()=>{r&&r()}},[Array.isArray(e)?e.toString():e,g,o,i,c,f,n,p,t]);let w=null==(v=b.entry)?void 0:v.target,C=r.useRef(void 0);g||!w||c||f||C.current===w||(C.current=w,x({inView:!!h,entry:void 0}));let S=[y,b.inView,b.entry];return S.ref=S[0],S.inView=S[1],S.entry=S[2],S}r.Component},32965:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});var r=n(89956),i=n(89409),o=n(56876),a=n(43408);let s={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+i.KN.transform((0,o.a)(t))+", "+i.KN.transform((0,o.a)(n))+", "+(0,o.a)(r.X4.transform(a))+")"}},33074:(e,t,n)=>{"use strict";n.d(t,{U:()=>o,a:()=>i});var r=n(43351);function i(e,t,n,i){var o,l,u,d,c;let f=(0,r.j)(a).current;return o=f,l=e,u=t,d=n,c=i,(o.refs[0]!==l||o.refs[1]!==u||o.refs[2]!==d||o.refs[3]!==c)&&s(f,[e,t,n,i]),f.callback}function o(e){var t,n;let i=(0,r.j)(a).current;return t=i,n=e,(t.refs.length!==n.length||t.refs.some((e,t)=>e!==n[t]))&&s(i,e),i.callback}function a(){return{callback:null,cleanup:null,refs:[]}}function s(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(null!=i)switch(typeof i){case"function":{let t=i(n);"function"==typeof t&&(r[e]=t);break}case"object":i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(null!=n)switch(typeof n){case"function":{let t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}},33162:(e,t,n)=>{"use strict";n.d(t,{U:()=>r,_:()=>i});let r=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i=["initial",...r]},33432:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r=n(68441);let i={test:(0,n(43408).$)("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:r.B.transform}},33561:(e,t,n)=>{"use strict";function r(e){return`data-base-ui-${e}`}n.d(t,{F:()=>r})},33599:(e,t,n)=>{"use strict";n.d(t,{M:()=>c});var r=n(8485),i=n(59945),o=n(36097),a=n(41487),s=n(47920),l=n(31977),u=n(99842),d=n(448);class c extends s.b{constructor(){super(...arguments),this.type="html",this.renderInstance=u.e}readValueFromInstance(e,t){if(i.f.has(t))return this.projection?.isProjecting?(0,o.zs)(t):(0,o.Ib)(e,t);{let n=window.getComputedStyle(e),i=((0,r.j4)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return(0,a.m)(e,t)}build(e,t,n){(0,l.O)(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return(0,d.x)(e,t,n)}}},33809:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});let r=e=>t=>1-e(1-t)},33898:(e,t,n)=>{"use strict";function r({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function i({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function o(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}n.d(t,{FY:()=>r,bS:()=>o,pA:()=>i})},34e3:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},34015:(e,t,n)=>{"use strict";function r(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{Ai:()=>i,Kq:()=>r})},34087:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});let r=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary},34621:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var r=n(93858);let i=0;function o(e,t={}){let{preventScroll:n=!1,cancelPrevious:a=!0,sync:s=!1}=t;a&&cancelAnimationFrame(i);let l=()=>e?.focus({preventScroll:n});if(s)return l(),r.tE;let u=requestAnimationFrame(l);return i=u,()=>{i===u&&(cancelAnimationFrame(u),i=0)}}},35046:()=>{}
1,35433:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});class r{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}},35464:(e,t,n)=>{"use strict";function r(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}n.d(t,{q:()=>r})},35623:(e,t,n)=>{"use strict";n.d(t,{E4:()=>s,Hr:()=>c,W9:()=>d});var r=n(36097),i=n(59945),o=n(89956),a=n(89409);let s=e=>e===o.ai||e===a.px,l=new Set(["x","y","z"]),u=i.U.filter(e=>!l.has(e));function d(e){let t=[];return u.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t}let c={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>(0,r.ry)(t,"x"),y:(e,{transform:t})=>(0,r.ry)(t,"y")};c.translateX=c.x,c.translateY=c.y},35994:(e,t,n)=>{"use strict";n.d(t,{j:()=>E});var r=n(97830),i=n(92383),o=n(8485),a=n(24275),s=n(3294),l=n(33432),u=n(32965);function d(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var c=n(68441);function f(e,t){return n=>n>0?t:e}var h=n(13995);let p=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},m=[l.u,c.B,u.V],v=e=>m.find(t=>t.test(e));function g(e){let t=v(e);if((0,i.$)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===u.V&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=d(s,r,e+1/3),o=d(s,r,e),a=d(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let y=(e,t)=>{let n=g(e),r=g(t);if(!n||!r)return f(e,t);let i={...n};return e=>(i.red=p(n.red,r.red,e),i.green=p(n.green,r.green,e),i.blue=p(n.blue,r.blue,e),i.alpha=(0,h.k)(n.alpha,r.alpha,e),c.B.transform(i))},$=new Set(["none","hidden"]);function b(e,t){return n=>(0,h.k)(e,t,n)}function x(e){return"number"==typeof e?b:"string"==typeof e?(0,o.pG)(e)?f:a.y.test(e)?y:S:Array.isArray(e)?w:"object"==typeof e?a.y.test(e)?y:C:f}function w(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>x(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function C(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=x(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let S=(e,t)=>{let n=s.f.createTransformer(t),o=(0,s.V)(e),a=(0,s.V)(t);return o.indexes.var.length===a.indexes.var.length&&o.indexes.color.length===a.indexes.color.length&&o.indexes.number.length>=a.indexes.number.length?$.has(e)&&!a.values.length||$.has(t)&&!o.values.length?function(e,t){return $.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):(0,r.F)(w(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],a=e.indexes[o][r[o]],s=e.values[a]??0;n[i]=s,r[o]++}return n}(o,a),a.values),n):((0,i.$)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),f(e,t))};function E(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?(0,h.k)(e,t,n):x(e)(e,t)}},36097:(e,t,n)=>{"use strict";n.d(t,{Ib:()=>f,ry:()=>c,zs:()=>d});let r=e=>180*e/Math.PI,i=e=>a(r(Math.atan2(e[1],e[0]))),o={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:i,rotateZ:i,skewX:e=>r(Math.atan(e[1])),skewY:e=>r(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},a=e=>((e%=360)<0&&(e+=360),e),s=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),l=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),u={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:s,scaleY:l,scale:e=>(s(e)+l(e))/2,rotateX:e=>a(r(Math.atan2(e[6],e[5]))),rotateY:e=>a(r(Math.atan2(-e[2],e[0]))),rotateZ:i,rotate:i,skewX:e=>r(Math.atan(e[4])),skewY:e=>r(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function d(e){return+!!e.includes("scale")}function c(e,t){let n,r;if(!e||"none"===e)return d(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=u,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=o,r=t}if(!r)return d(t);let a=n[t],s=r[1].split(",").map(h);return"function"==typeof a?a(s):s[a]}let f=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return c(n,t)};function h(e){return parseFloat(e.trim())}},36446:()=>{},37017:()=>{}
1,37054:(e,t,n)=>{"use strict";n.d(t,{N:()=>$});var r=n(66162),i=n(44922),o=n(61862),a=n(55674),s=n(9100),l=n(164),u=n(20648),d=n(79505);function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,u.s)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,u.s)(e)&&e.offsetWidth||0,r=(0,u.s)(e)&&e.offsetHeight||0,i=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(i.height),o.width=parseFloat(i.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left,o.bottom=r-o.height-o.top,o.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:e,isPresent:t,anchorX:n,anchorY:o,root:a,pop:s}){let l=(0,i.useId)(),u=(0,i.useRef)(null),h=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:p}=(0,i.useContext)(d.Q),m=function(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=c(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():c(e[t],null)}}}}(...e),e)}(u,e.props?.ref??e?.ref);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:d,right:c,bottom:f,direction:m}=h.current;if(t||!1===s||!u.current||!e||!r)return;let v="rtl"===m,g="left"===n?v?`right: ${c}`:`left: ${d}`:v?`left: ${d}`:`right: ${c}`,y="bottom"===o?`bottom: ${f}`:`top: ${i}`;u.current.dataset.motionPopId=l;let $=document.createElement("style");p&&($.nonce=p);let b=a??document.head;return b.appendChild($),$.sheet&&$.sheet.insertRule(`
2          [data-motion-pop-id="${l}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${r}px !important;
6            ${g}px !important;
7            ${y}px !important;
8          }
9        `),()=>{u.current?.removeAttribute("data-motion-pop-id"),b.contains($)&&b.removeChild($)}},[t]),(0,r.jsx)(f,{isPresent:t,childRef:u,sizeRef:h,pop:s,children:!1===s?e:i.cloneElement(e,{ref:m})})}let p=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:s,presenceAffectsLayout:u,mode:d,anchorX:c,anchorY:f,root:p})=>{let v=(0,a.M)(m),g=(0,i.useId)(),y=!0,$=(0,i.useMemo)(()=>(y=!1,{id:g,initial:t,isPresent:n,custom:s,onExitComplete:e=>
9{for(let t of(v.set(e,!0),v.values()))if(!t)return;o&&o()},register:e=>(v.set(e,!1),()=>v.delete(e))}),[n,v,o]);return u&&y&&($={...$}),(0,i.useMemo)(()=>{v.forEach((e,t)=>v.set(t,!1))},[n]),i.useEffect(()=>{n||v.size||!o||o()},[n]),e=(0,r.jsx)(h,{pop:"popLayout"===d,isPresent:n,anchorX:c,anchorY:f,root:p,children:e}),(0,r.jsx)(l.t.Provider,{value:$,children:e})};function m(){return new Map}var v=n(82131);let g=e=>e.key||"";function y(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let $=({children:e,custom:t,initial:n=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:d="sync",propagate:c=!1,anchorX:f="left",anchorY:h="top",root:m})=>{let[$,b]=(0,v.xQ)(c),x=(0,i.useMemo)(()=>y(e),[e]),w=c&&!$?[]:x.map(g),C=(0,i.useRef)(!0),S=(0,i.useRef)(x),E=(0,a.M)(()=>new Map),P=(0,i.useRef)(new Set),[T,R]=(0,i.useState)(x),[A,M]=(0,i.useState)(x);(0,s.E)(()=>{C.current=!1,S.current=x;for(let e=0;e<A.length;e++){let t=g(A[e]);w.includes(t)?(E.delete(t),P.current.delete(t)):!0!==E.get(t)&&E.set(t,!1)}},[A,w.length,w.join("-")]);let O=[];if(x!==T){let e=[...x];for(let t=0;t<A.length;t++){let n=A[t],r=g(n);w.includes(r)||(e.splice(t,0,n),O.push(n))}return"wait"===d&&O.length&&(e=O),M(y(e)),R(x),null}let{forceRender:N}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:A.map(e=>{let i=g(e),o=(!c||!!$)&&(x===A||w.includes(i));return(0,r.jsx)(p,{isPresent:o,initial:(!C.current||!!n)&&void 0,custom:t,presenceAffectsLayout:u,mode:d,root:m,onExitComplete:o?void 0:()=>{if(P.current.has(i)||!E.has(i))return;P.current.add(i),E.set(i,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(N?.(),M(S.current),c&&b?.(),l&&l())},anchorX:f,anchorY:h,children:e},i)})})}},37292:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(44922);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},37744:()=>{},38138:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var r=n(44922);let i="undefined"!=typeof document?r.useLayoutEffect:()=>{}},38716:(e,t,n)=>{"use strict";n.d(t,{G:()=>d});var r=n(61992),i=n(57094),o=n(97830),a=n(92383),s=n(85395),l=n(31749),u=n(35994);function d(e,t,{clamp:n=!0,ease:c,mixer:f}={}){let h=e.length;if((0,a.V)(h===t.length,"Both input and output ranges must be the same length","range-length"),1===h)return()=>t[0];if(2===h&&t[0]===t[1])return()=>t[1];let p=e[0]===e[1];e[0]>e[h-1]&&(e=[...e].reverse(),t=[...t].reverse());let m=function(e,t,n){let a=[],s=n||r.W.mix||u.j,l=e.length-1;for(let n=0;n<l;n++){let r=s(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||i.l:t;r=(0,o.F)(e,r)}a.push(r)}return a}(t,c,f),v=m.length,g=n=>{if(p&&n<e[0])return t[0];let r=0;if(v>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=(0,s.q)(e[r],e[r+1],n);return m[r](i)};return n?t=>g((0,l.q)(e[0],e[h-1],t)):g}},38867:()=>{},39e3:()=>{},39134:()=>{},39335:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(85395),i=n(13995);function o(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let o=1;o<=t;o++){let a=(0,r.q)(0,t,o);e.push((0,i.k)(n,1,a))}}(t,e.length-1),t}},39608:(e,t,n)=>{"use strict";function r(e){return null==e?e:"current"in e?e.current:e}n.d(t,{q:()=>r})},40324:(e,t,n)=>{"use strict";n.d(t,{O:()=>a,Z:()=>o});var r=n(5035),i=n(44922);let o=i.createContext(void 0);function a(e){let t=i.useContext(o);if(void 0===t&&!e)throw Error((0,r.A)(21));return t}},40328:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},40377:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},40604:(e,t,n)=>{"use strict";n.d(t,{Q:()=>d});var r=n(44922),i=n(46078),o=n(44466),a=n(24656),s=n(95925),l=n(3138),u=n(66162);let d=r.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=(0,i.b)();return n||r?(0,u.jsx)(c,{...e,ref:t}):null}),c=r.memo(r.forwardRef((e,t)=>{let{render:n,className:u,style:d,keepMounted:c,...f}=e,{selected:h}=(0,i.b)(),p=r.useRef(null),{transitionStatus:m,setMounted:v}=(0,o.$)(h),g=(0,s.o)("span",e,{ref:[t,p],state:{selected:h,transitionStatus:m}
9,props:[{"aria-hidden":!0,children:"✔️"},f],stateAttributesMapping:l.G});return(0,a.v)({open:h,ref:p,onComplete(){h||v(!1)}}),g}))},40644:(e,t,n)=>{"use strict";function r(e){return void 0===e||1===e}function i({scale:e,scaleX:t,scaleY:n}){return!r(e)||!r(t)||!r(n)}function o(e){return i(e)||a(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function a(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}n.d(t,{HD:()=>o,vF:()=>a,vk:()=>i})},40935:()=>{},41161:(e,t,n)=>{"use strict";n.d(t,{Ev:()=>u,Go:()=>l,O_:()=>o,Pg:()=>s,YF:()=>a,jo:()=>i});var r=n(31142);function i(e){e.preventDefault(),e.stopPropagation()}function o(e){return"nativeEvent"in e}function a(e){return""===e.pointerType&&!!e.isTrusted||(r.m0&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function s(e){return!r.KT&&(!r.m0&&0===e.width&&0===e.height||r.m0&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function l(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function u(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t}},41423:()=>{},41487:(e,t,n)=>{"use strict";n.d(t,{L:()=>a,m:()=>o});var r=n(33898),i=n(68261);function o(e,t){return(0,r.FY)((0,r.bS)(e.getBoundingClientRect(),t))}function a(e,t,n){let r=o(e,n),{scroll:a}=t;return a&&((0,i.Ql)(r.x,a.offset.x),(0,i.Ql)(r.y,a.offset.y)),r}},41921:(e,t,n)=>{"use strict";n.d(t,{P:()=>eI});var r=n(58439),i=n(31749),o=n(57094),a=n(48555),s=n(18917),l=n(65728),u=n(76143),d=n(70104),c=n(84332),f=n(2162),h=n(1020);let p={value:null,addProjectionMetrics:null};var m=n(80016),v=n(55575),g=n(13995),y=n(98212),$=n(89409),b=n(12195),x=n(85395);let w=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],C=w.length,S=e=>"string"==typeof e?parseFloat(e):e,E=e=>"number"==typeof e||$.px.test(e);function P(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let T=A(0,.5,b.yT),R=A(.5,.95,o.l);function A(e,t,n){return r=>r<e?0:r>t?1:n((0,x.q)(e,t,r))}function M(e,t){e.min=t.min,e.max=t.max}function O(e,t){M(e.x,t.x),M(e.y,t.y)}function N(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var I=n(68261),k=n(73814);function D(e,t,n,r,i){return e-=t,e=(0,I.hq)(e,1/n,r),void 0!==i&&(e=(0,I.hq)(e,1/i,r)),e}function j(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if($.KN.test(t)&&(t=parseFloat(t),t=(0,g.k)(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=(0,g.k)(o.min,o.max,r);e===o&&(s-=t),e.min=D(e.min,t,n,s,i),e.max=D(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let L=["x","scaleX","originX"],F=["y","scaleY","originY"];function V(e,t,n,r){j(e.x,t,L,n?n.x:void 0,r?r.x:void 0),j(e.y,t,F,n?n.y:void 0,r?r.y:void 0)}var B=n(81316);function W(e){return 0===e.translate&&1===e.scale}function U(e){return W(e.x)&&W(e.y)}function _(e,t){return e.min===t.min&&e.max===t.max}function G(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function K(e,t){return G(e.x,t.x)&&G(e.y,t.y)}function H(e){return(0,k.CQ)(e.x)/(0,k.CQ)(e.y)}function q(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var X=n(34015);class z{constructor(){this.members=[]}add(e){(0,X.Kq)(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||((0,X.Ai)(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if((0,X.Ai)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(void 0===r||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isU
9pdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}var Y=n(3184);let Z=(e,t)=>e.depth-t.depth;class J{constructor(){this.children=[],this.isDirty=!1}add(e){(0,X.Kq)(this.children,e),this.isDirty=!0}remove(e){(0,X.Ai)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Z),this.isDirty=!1,this.children.forEach(e)}}var Q=n(40644),ee=n(22259);let et={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},en=["","X","Y","Z"],er=0;function ei(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function eo({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:b}){return class{constructor(e={},n=t?.()){this.id=er++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,p.value&&(et.nodes=et.calculatedTargetDeltas=et.calculatedProjections=0),this.nodes.forEach(el),this.nodes.forEach(eg),this.nodes.forEach(ey),this.nodes.forEach(eu),p.addProjectionMetrics&&p.addProjectionMetrics(et)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new J)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new r.v),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=(0,v.x)(t)&&(!(0,v.x)(t)||"svg"!==t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;m.Gt.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=f.k.now(),r=({timestamp:i})=>{let o=i-n;o>=250&&((0,m.WG)(r),e(o-t))};return m.Gt.setup(r,!0),()=>(0,m.WG)(r)}(i,250),ee.w.hasAnimatedSinceResize&&(ee.w.hasAnimatedSinceResize=!1,this.nodes.forEach(ev)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||eS,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!K(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...(0,d.r)(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||ev(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,m.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
9h(e$),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=(0,u.P)(n);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",m.Gt,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(ef),this.nodes.forEach(ec);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(eh);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ep),this.nodes.forEach(em),this.nodes.forEach(ea),this.nodes.forEach(es)):this.nodes.forEach(eh),this.clearAllSnapshots();let e=f.k.now();m.uv.delta=(0,i.q)(0,1e3/60,e-m.uv.timestamp),m.uv.timestamp=e,m.uv.isProcessing=!0,m.PP.update.process(m.uv),m.PP.preRender.process(m.uv),m.PP.render.process(m.uv),m.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,c.k.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ed),this.sharedNodes.forEach(eb)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,m.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){m.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,k.CQ)(this.snapshot.measuredBox.x)||(0,k.CQ)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,B.ge)()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=o(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!b)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!U(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||(0,Q.HD)(this.latestValues)||i)&&(b(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),eT((t=r).x),eT(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return(0,B.ge)();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(eA))){let{scroll:e}=this.root;e&&((0,I.Ql)(t.x,e.offset.x),(0,I.Ql)(t.y,e.offset.y))}return t}removeElementScroll(e){let t=(0,B.ge)();if(O(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&O(t,e),(0,I.Ql)(t.x,i.offset.x),(0,I.Ql)(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||(0,B.ge)();O(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&((0,I.Ql)(r.x,-n.scroll.offset.x),(0,I.Ql)(r.y,-n.scroll.offset.y)),(0,Q.HD)(n.latestValues)&&(0,I.Ww)(r,n.latestValues,n.layout?.layoutBox)}return(0,Q.HD)(this.latestValues)&&(0,I.Ww)(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=(0,B.ge)();O(t,e);for(let e=0;e<this.path.length;e++){let n,r=this.path[e];(0,Q.HD)(r.latestValues)&&(r.instance&&((0,Q.vk)(r.latestValues)&&r.updateSnapshot(),O(n=(0,B.ge)(),r.measurePageBox())),V(t,r.latestValues,r.snapshot?.layoutBox,n))}return(0,Q.HD)(this.latestValues)&&V(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==m.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
9isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=m.uv.timestamp;let o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,B.ge)(),this.targetWithTransforms=(0,B.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,k.N)(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):O(this.target,this.layout.layoutBox),(0,I.o4)(this.target,this.targetDelta)):O(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),p.value&&et.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,Q.vk)(this.parent.latestValues)||(0,Q.vF)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,B.ge)(),this.relativeTargetOrigin=(0,B.ge)(),(0,k.jA)(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),O(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===m.uv.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;O(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;(0,I.OU)(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,B.ge)());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(N(this.prevProjectionDelta.x,this.projectionDelta.x),N(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,k.vb)(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&q(this.projectionDelta.x,this.prevProjectionDelta.x)&&q(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s)),p.value&&et.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,B.xU)(),this.projectionDelta=(0,B.xU)(),this.projectionDeltaWithTransform=(0,B.xU)()}setAnimationOrigin(e,t=!1,n){let r,i=this.snapshot,o=i?i.latestValues:{},a={...this.latestValues},s=(0,B.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=(0,B.ge)(),u=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),d=this.getStack(),c=!d||d.members.length<=1,f=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(eC));this.animationProgress=0;let h=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,i=h?.(n);if(i?(s.x.translate=i.x,s.x.scale=(0,g.k)(e.x.scale,1,n),s.x.origin=e.x.origin,s.x.originPoint=e.x.originPoint,s.y.translate=i.y,s.y.scale=(0,g.k)(e.y.scale,1,n),s.y.origin=e.y.origin,s.y.originPoint=e.y.originPoint):(ex(s.x,e.x,n),ex(s.y,e.y,n)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var d,p,m,v,y,b;(0,k.jA)(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,v=this.relativeTargetOrigin,y=l,b=n,ew(m.x,v.x,y.x,b),ew(m.y,v.y,y.y,b),r&&(d=this.relativeTarget,p=r,_(d.x,p.x)&&_(d.y,p.y))&&(this.isProjectionDirty=!1),r||(r=(0,B.ge)()),O(r,this.relativeTarget)}u&&(this.animationValues=a,function(e,t,n,r,i,o){i?(e.opacity=(0,g.k)(0,n.opacity??1,T(r)),e.o
9pacityExit=(0,g.k)(t.opacity??1,0,R(r))):o&&(e.opacity=(0,g.k)(t.opacity??1,n.opacity??1,r));for(let i=0;i<C;i++){let o=w[i],a=P(t,o),s=P(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||E(a)===E(s)?(e[o]=Math.max((0,g.k)(S(a),S(s),r),0),($.KN.test(s)||$.KN.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=(0,g.k)(t.rotate||0,n.rotate||0,r))}(a,o,this.latestValues,n,f,c)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,m.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=m.Gt.update(()=>{ee.w.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=(0,s.OQ)(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,n){let r=(0,l.S)(e)?e:(0,s.OQ)(e);return r.start((0,a.f)("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&eR(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||(0,B.ge)();let t=(0,k.CQ)(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=(0,k.CQ)(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}O(t,n),(0,I.Ww)(t,i),(0,k.vb)(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new z),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ei("z",e,r,this.animationValues);for(let t=0;t<en.length;t++)ei(`rotate${en[t]}`,e,r,this.animationValues),ei(`skew${en[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=(0,y.u)(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,y.u)(t?.pointerEvents)||""),this.hasProjected&&!(0,Q.HD)(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();
9let o=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=n?.z||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:o,rotateY:a,skewX:s,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),o&&(r+=`rotateX(${o}deg) `),a&&(r+=`rotateY(${a}deg) `),s&&(r+=`skewX(${s}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;let{x:a,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,h.H){if(void 0===i[t])continue;let{correct:n,applyTo:a,isCSSVariable:s}=h.H[t],l="none"===o?i[t]:n(i[t],r);if(a){let t=a.length;for(let n=0;n<t;n++)e[a[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?(0,y.u)(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ec),this.root.sharedNodes.clear()}}}function ea(e){e.updateLayout()}function es(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if("size"===i)(0,Y.X)(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=(0,k.CQ)(r);r.min=n[e].min,r.max=r.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";M(o?t.measuredBox[e]:t.layoutBox[e],n[e])}else eR(i,t.layoutBox,n)&&(0,Y.X)(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],a=(0,k.CQ)(n[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=(0,B.xU)();(0,k.vb)(a,n,t.layoutBox);let s=(0,B.xU)();o?(0,k.vb)(s,e.applyTransform(r,!0),t.measuredBox):(0,k.vb)(s,n,t.layoutBox);let l=!U(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=e.options.layoutAnchor||void 0,s=(0,B.ge)();(0,k.jA)(s,t.layoutBox,i.layoutBox,a);let l=(0,B.ge)();(0,k.jA)(l,n,o.layoutBox,a),K(s,l)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function el(e){p.value&&et.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function eu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ed(e){e.clearSnapshot()}function ec(e){e.clearMeasurements()}function ef(e){e.isLayoutDirty=!0,e.updateLayout()}function eh(e){e.isLayoutDirty=!1}function ep(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function em(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ev(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function eg(e){e.resolveTargetDelta()}function ey(e){e.calcProjection()}function e$(e){e.resetSkewAndRotation()}function eb(e){e.removeLeadSnapshot()}function ex(e,t,n){e.translate=(0,g.k)(t.translate,0,n),e.scale=(0,g.k)(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ew(e,t,n,r){e.min=(0,g.k)(t.min,n.min,r),e.max=(0,g.k)(t.max,n.max,r)}function eC(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let eS={duration:.45,ease:[.4,0,.1,1]},eE=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),eP=eE("applewebkit/")&&!eE("chrome/")?Math.round:o.l;function eT(e){e.min=eP(e.min),e.max=eP(e.max)}function eR(e,t,n){return"position"===e||"preserve-aspect"===e&&!(0,k.HQ)(H(t),H(n),.2)}function eA(e){return e!==e.root&&e.scroll?.wasRoot}var eM=n(62028);let eO=eo({attachResizeListener:(e,t)=>
9(0,eM.k)(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),eN={current:void 0},eI=eo({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!eN.current){let e=new eO({});e.mount(window),e.setOptions({layoutScroll:!0}),eN.current=e}return eN.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position})},42691:()=>{},42803:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});let r=e=>t=>t.test(e)},43012:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},43282:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var r=n(38138),i=n(43351);function o(e){let t=(0,i.j)(a,e).current;return t.next=e,(0,r.g)(t.effect),t}function a(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}},43351:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(44922);let i={};function o(e,t){let n=r.useRef(i);return n.current===i&&(n.current=e(t)),n}},43408:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,q:()=>a});var r=n(61869);let i=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,o=(e,t)=>n=>!!("string"==typeof n&&i.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),a=(e,t,n)=>i=>{if("string"!=typeof i)return i;let[o,a,s,l]=i.match(r.S);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}}},43946:(e,t,n)=>{"use strict";n.d(t,{XF:()=>C,vB:()=>x});var r=n(44922),i=n(49715),o=n(15860),a=n(35464),s=n(82422),l=n(67954),u=n(38138),d=n(80464),c=n(93858),f=n(46860),h=n(80368),p=n(4465),m=n(86623),v=n(33561),g=n(95925),y=n(99089),$=n(66162);let b=r.createContext(null),x=()=>r.useContext(b),w=(0,v.F)("portal"),C=r.forwardRef(function(e,t){let{children:n,container:v,className:C,render:S,renderGuards:E,style:P,...T}=e,{portalNode:R,portalSubtree:A}=function(e={}){let{ref:t,container:n,componentProps:a=c.t0,elementProps:s}=e,f=(0,l.B)(),h=x(),p=h?.portalNode,[m,v]=r.useState(null),[y,$]=r.useState(null),b=(0,d.K)(e=>{null!==e&&$(e)}),C=r.useRef(null);(0,u.g)(()=>{if(null===n){C.current&&(C.current=null,$(null),v(null));return}if(null==f)return;let e=(n&&((0,o.Ll)(n)?n:n.current))??p??document.body;if(null==e){C.current&&(C.current=null,$(null),v(null));return}C.current!==e&&(C.current=e,$(null),v(e))},[n,p,f]);let S=(0,g.o)("div",a,{ref:[t,b],props:[{id:f,[w]:""},s]});return{portalNode:y,portalSubtree:m&&S?i.createPortal(S,m):null}}({container:v,ref:t,componentProps:e,elementProps:T}),M=r.useRef(null),O=r.useRef(null),N=r.useRef(null),I=r.useRef(null),[k,D]=r.useState(null),j=r.useRef(!1),L=k?.modal,F=k?.open,V="boolean"==typeof E?E:!!k&&!k.modal&&k.open&&!!R;r.useEffect(()=>{if(R&&!L)return(0,s.g)((0,a.q)(R,"focusin",e,!0),(0,a.q)(R,"focusout",e,!0));function e(e){R&&e.relatedTarget&&(0,h.Qp)(e)&&("focusin"===e.type?j.current&&((0,h.yV)(R),j.current=!1):((0,h.N)(R),j.current=!0))}},[R,L]),r.useEffect(()=>{R&&!1===F&&((0,h.yV)(R),j.current=!1)},[F,R]);let B=r.useMemo(()=>({beforeOutsideRef:M,afterOutsideRef:O,beforeInsideRef:N,afterInsideRef:I,portalNode:R,setFocusManagerState:D}),[R]);return(0,$.jsxs)(r.Fragment,{children:[A,(0,$.jsxs)(b.Provider,{value:B,children:[V&&R&&(0,$.jsx)(f.U,{"data-type":"outside",ref:M,onFocus:e=>{if((0,h.Qp)(e,R))N.current?.focus();else{let e=k?k.domReference:null,t=(0,h.XJ)(e);t?.focus()}}}),V&&R&&(0,$.jsx)("span",{"aria-owns":R.id,style:y.z_}),R&&i.createPortal(n,R),V&&R&&(0,$.jsx)(f.U,{"data-type":"outside",ref:O,onFocus:e=>{if((0,h.Qp)(e,R))I.current?.focus();else{let t=k?k.domReference:null,n=(0,h.vF)(t);n?.focus(),k?.closeOnFocusOut&&k?.onOpenChange(!1,(0,p.d)(m.Xn,e.nativeEvent))}}})]})]})})},44027:()=>{},44323:(e,t,n)=>{"use strict";n.d(t,{i:()=>en});var r=n(44922);function i({controlled:e,default:t,name:n,state:i="value"}){let{current:o}=r.useRef(void 0!==e),[a,s]=r.useState(t),l=r.useCallback(e=>{o||s(e)},[]);return[o?e:a,l]}var o=n(38138),a=n(80464),s=n(33074),l=n(43282),u=n(51414),d=n(43351),c=n(90732),f=n(89243),h=n(93858),p=n(68202),m=n(73809),v=n(15860),g=n(35464),y=n(82422),$=n(56303),b=n(12792),x=n(80321),w=n(95060),C=n(41161),S=n(10396),E=n(47736),P=n(4465),T=n(86623),R=n(33561);let A={intentional:"onClick",sloppy:"onPointerDown"};function M(){return!1}var O=n(10342),N=n(34621),I=n(17724);
9function k(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function D(e,t){return k(t,e===I.il||e===I.Jd,e===I.eR||e===I.RJ)}function j(e,t,n){return k(t,e===I.Jd,n?e===I.eR:e===I.RJ)||"Enter"===e||" "===e||""===e}function L(e,t,n){let r=new Map,i="item"===n,o={};for(let t in"floating"===n&&(o.tabIndex=-1,o[I.Ed]=""),e)i&&e&&(t===I.XA||t===I.WS)||(o[t]=e[t]);for(let a=0;a<t.length;a+=1){let s,l=t[a]?.[n];(s="function"==typeof l?e?l(e):null:l)&&F(o,s,i,r)}return F(o,e,i,r),o}function F(e,t,n,r){for(let i in t){let o=t[i];n&&(i===I.XA||i===I.WS)||(i.startsWith("on")?(r.has(i)||r.set(i,[]),"function"==typeof o&&(r.get(i)?.push(o),e[i]=(...e)=>r.get(i)?.map(t=>t(...e)).find(e=>void 0!==e))):e[i]=o)}}var V=n(77268),B=n(90578),W=n(24656),U=n(95357);let _=r.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:h.tE,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});var G=n(30147),K=n(85862);let H=new Map,q=function(e={}){let t={usage:"search",sensitivity:"base",ignorePunctuation:!0,...e},n=`${function e(t){return Array.isArray(t)?t.map(t=>e(t)).join(","):null==t?"":String(t)}(e.locale)}|${JSON.stringify(t)}`,r=H.get(n);if(r)return r;let i=new Intl.Collator(e.locale,t),o={contains(e,t,n){if(!t)return!0;let r=(0,K.yg)(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(0===i.compare(r.slice(e,e+t.length),t))return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=(0,K.yg)(e,n);return 0===i.compare(r.slice(0,t.length),t)},endsWith(e,t,n){if(!t)return!0;let r=(0,K.yg)(e,n),o=t.length;return r.length>=o&&0===i.compare(r.slice(r.length-o),t)}};return H.set(n,o),o};var X=n(44466),z=n(31142);function Y(e,t){let n=r.useRef(e),i=(0,a.K)(t);(0,o.g)(()=>{n.current!==e&&i(n.current)},[e,i]),(0,o.g)(()=>{n.current=e},[e])}var Z=n(14611);let J=Symbol("none"),Q={value:J,index:-1};var ee=n(66162);function et(e){let t,n,F,{id:H,onOpenChangeComplete:et,defaultSelectedValue:en=null,selectedValue:er,onSelectedValueChange:ei,defaultInputValue:eo,inputValue:ea,open:es,defaultOpen:el=!1,selectionMode:eu="none",onItemHighlighted:ed,name:ec,form:ef,disabled:eh=!1,readOnly:ep=!1,required:em=!1,inputRef:ev,grid:eg=!1,items:ey,filteredItems:e$,filter:eb,openOnInputClick:ex=!0,autoHighlight:ew=!1,keepHighlight:eC=!1,highlightItemOnHover:eS=!0,loopFocus:eE=!0,itemToStringLabel:eP,itemToStringValue:eT,isItemEqualToValue:eR=Z.jd,virtualized:eA=!1,inline:eM=!1,fillInputOnItemPress:eO=!0,modal:eN=!1,limit:eI=-1,autoComplete:ek="list",formAutoComplete:eD,locale:ej,submitOnItemClick:eL=!1}=e,{clearErrors:eF}=r.useContext(_),{setDirty:eV,validityData:eB,shouldValidateOnChange:eW,setFilled:eU,name:e_,disabled:eG,setTouched:eK,setFocused:eH,validationMode:eq,validation:eX}=(0,U.V)(),ez=(0,G.l)({id:H}),eY=q({locale:ej}),[eZ,eJ]=r.useState(!1),[eQ,e0]=r.useState(null),e1=r.useRef([]),e2=r.useRef([]),e3=r.useRef(null),e4=r.useRef(null),e9=r.useRef(null),e8=r.useRef(null),e5=r.useRef(null),e6=r.useRef(!0),e7=r.useRef(!1),te=r.useRef(null),tt=r.useRef(null),tn=r.useRef(null),tr=r.useRef(Q),ti=r.useRef(null),to=r.useRef([]),ta=r.useRef([]),ts=eG||eh,tl=e_??ec,tu="multiple"===eu,td="single"===eu,tc=void 0!==ea||void 0!==eo,tf=void 0!==ey,th=void 0!==e$;t="always"===ew?"always":!!ew&&"input-change";let[tp,tm]=i({controlled:er,default:tu?en??h.Ml:en,name:"Combobox",state:"selectedValue"}),tv=r.useMemo(()=>null===eb?()=>!0:void 0!==eb?eb:td&&!eZ?(e,t)=>{if(null==e)return!1;if(!t)return!0;let n=(0,K.yg)(e,eP),r=null!=tp?(0,K.yg)(tp,eP):"";return!!(r&&eY.contains(r,t))&&r.length===t.length||eY.contains(n,t)}:(e,t)=>{if(null==e)return!1;let n=(0,K.yg)(e,eP);return eY.contains(n,t)},[eb,td,tp,eZ,eY,eP]),tg=(0,d.j)(()=>tc?eo??"":td?(0,K.yg)(tp,eP):"").current,[ty,t$]=i({controlled:ea,default:tg,name:"Combobox",state:"inputValue"}),[tb,tx]=i({controlled:es,default:el,name:"Combobox",state:"open"}),tw=(0,K.Li)(ey),tC=eQ??(""===ty?"":String(ty).trim()),tS=td?(0,K.yg)(tp,eP):"",tE=td&&!eZ&&""!==tC&&""!==tS&&tS.length===tC.length&&eY.contains(tS,tC),tP=tE?"":tC,tT=tf&&th&&tE,tR=r.useMemo(()=>ey?tw?ey.flatMap(e=>e.items):ey:h.Ml,[ey,tw]),tA=r.useMemo(()=>
9{if(e$&&!tT)return e$;if(!ey)return h.Ml;if(tw){let e=[],t=0;for(let n of ey){if(eI>-1&&t>=eI)break;let r=""===tP?n.items:n.items.filter(e=>tv(e,tP,eP));if(0===r.length)continue;let i=eI>-1?eI-t:1/0,o=r.slice(0,i);if(o.length>0){let r={...n,items:o};e.push(r),t+=o.length}}return e}if(""===tP)return eI>-1?tR.slice(0,eI):tR;let e=[];for(let t of tR){if(eI>-1&&e.length>=eI)break;tv(t,tP,eP)&&e.push(t)}return e},[e$,tT,ey,tw,tP,eI,tv,eP,tR]),tM=r.useMemo(()=>tw?tA.flatMap(e=>e.items):tA,[tA,tw]),tO=(0,d.j)(()=>new c.i({id:ez,labelId:void 0,selectedValue:tp,open:tb,filter:tv,query:tC,items:ey,selectionMode:eu,listRef:e1,labelsRef:e2,popupRef:e3,emptyRef:e5,inputRef:e4,startDismissRef:e9,endDismissRef:e8,keyboardActiveRef:e6,chipsContainerRef:te,clearRef:tt,valuesRef:to,allValuesRef:ta,selectionEventRef:tn,name:tl,form:ef,disabled:ts,readOnly:ep,required:em,grid:eg,isGrouped:tw,virtualized:eA,openOnInputClick:ex,itemToStringLabel:eP,isItemEqualToValue:eR,modal:eN,autoHighlight:t,submitOnItemClick:eL,hasInputValue:tc,mounted:!1,forceMounted:!1,transitionStatus:"idle",inline:eM,activeIndex:null,selectedIndex:null,popupProps:{},inputProps:{},triggerProps:{},positionerElement:null,listElement:null,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,onOpenChangeComplete:et||h.tE,setOpen:h.tE,setInputValue:h.tE,setSelectedValue:h.tE,setIndices:h.tE,onItemHighlighted:h.tE,handleSelection:h.tE,getItemProps:()=>h.t0,forceMount:h.tE,requestSubmit:h.tE})).current,tN="none"===eu?ty:tp,tI=r.useMemo(()=>"none"===eu?tN:Array.isArray(tp)?tp.map(e=>(0,K.T)(e,eT)):(0,K.T)(tp,eT),[tN,eT,eu,tp]),tk=(0,a.K)(ed),tD=(0,a.K)(et),tj=(0,f.P)(tO,B.T.activeIndex),tL=(0,f.P)(tO,B.T.selectedIndex),tF=(0,f.P)(tO,B.T.positionerElement),tV=(0,f.P)(tO,B.T.listElement),tB=(0,f.P)(tO,B.T.triggerElement),tW=(0,f.P)(tO,B.T.inputElement),tU=(0,f.P)(tO,B.T.inputGroupElement),t_=(0,f.P)(tO,B.T.inline),tG=(0,f.P)(tO,B.T.inputInsidePopup),tK=(0,l.u)(tB),{mounted:tH,setMounted:tq,transitionStatus:tX}=(0,X.$)(tb),{openMethod:tz,triggerProps:tY}=function(e){let[t,n]=r.useState(null),i=(0,a.K)((t,r)=>{e||n(r||(z.un?"touch":""))});Y(e,t=>{t&&!e&&n(null)});let{onClick:o,onPointerDown:s}=function(e){let t=r.useRef(""),n=r.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:r.useCallback(n=>{if(0===n.detail)return void e(n,"keyboard");"pointerType"in n?e(n,n.pointerType):e(n,t.current),t.current=""},[e]),onPointerDown:n}}(i);return r.useMemo(()=>({openMethod:t,triggerProps:{onClick:o,onPointerDown:s}}),[t,o,s])}(tb);!function(e,t){let{enabled:n=!0,getValue:i,id:a,value:s}=t,{registerFieldControl:l}=(0,U.V)(),u=r.useRef(null);u.current||(u.current=Symbol()),(0,o.g)(()=>{let t=u.current;if(t&&n)return l(t,{controlRef:e,getValue:i,id:a,value:s}),()=>{l(t,void 0)}},[e,n,i,a,l,s])}(tG?tK:e4,{id:ez,value:tN,getValue:(0,a.K)(()=>tI)});let tZ=(0,a.K)(()=>{ey?e2.current=tM.map(e=>(0,K.yg)(e,eP)):tO.set("forceMounted",!0)}),tJ=r.useRef(tp);(0,o.g)(()=>{tp!==tJ.current&&tZ()},[tZ,tp]);let tQ=(0,a.K)(e=>{tO.update(e);let t=e.type||"none";if(void 0!==e.activeIndex)if(null===e.activeIndex)tr.current!==Q&&(tr.current=Q,tk(void 0,(0,P.M)(t,void 0,{index:-1})));else{let n=to.current[e.activeIndex];tr.current={value:n,index:e.activeIndex},tk(n,(0,P.M)(t,void 0,{index:e.activeIndex}))}}),t0=(0,a.K)((n,r)=>{if(e7.current=r.reason===T.qs,e.onInputValueChange?.(n,r),!r.isCanceled){if(r.reason===T.pf){let e=r.event,i=e.inputType;if("compositionend"===e.type||null!=i&&""!==i&&"insertReplacementText"!==i){let e=""!==n.trim();e&&eJ(!0),ti.current={hasQuery:e},e&&t&&null==tO.state.activeIndex&&tO.set("activeIndex",0)}}t$(n)}}),t1=(0,a.K)((t,n)=>{if(tb!==t&&("escape-key"===n.reason&&tf&&0===tM.length&&!tO.state.emptyRef.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(!t&&eZ&&(td?(t_||e0(tC),""===tC&&eJ(!1)):tu&&(t_||tG?tQ({activeIndex:null}):e0(tC),t0("",(0,P.d)(T.qs,n.event)))),tx(t),!t&&tG&&(n.reason===T.Xn||n.reason===T.Np))&&(eK(!0),eH(!1),"onBlur"===eq))){let e="none"===eu?ty:tp;eX.commit(e)}}
9),t2=(0,a.K)((e,t)=>{ei?.(e,t),!t.isCanceled&&(tm(e),("none"===eu&&e3.current&&eO||td&&!tO.state.inputInsidePopup)&&t0((0,K.yg)(e,eP),(0,P.d)(t.reason,t.event)),td&&null!=e&&t.reason!==T.pf&&eZ&&!t_&&e0(tC))}),t3=(0,a.K)((e,t)=>{let n=t;if(void 0===n){if(null===tj)return;n=to.current[tj]}let r=(0,w.EW)(e),i=tn.current??e;tn.current=null;let o=(0,P.d)(T.Bo,i),a=r?.closest("a")?.getAttribute("href");if(a){a.startsWith("#")&&t1(!1,o);return}if(tu){let e=Array.isArray(tp)?tp:[];if(t2((0,Z.kJ)(e,n,tO.state.isItemEqualToValue)?(0,Z.Ai)(e,n,tO.state.isItemEqualToValue):[...e,n],o),!(e4.current&&""!==e4.current.value.trim()))return;tO.state.inputInsidePopup?t0("",(0,P.d)(T.qs,o.event)):t1(!1,o)}else t2(n,o),t1(!1,o)}),t4=(0,a.K)(()=>{if(!tO.state.submitOnItemClick)return;let e=eX.inputRef.current?.form??tO.state.inputElement?.form;e&&"function"==typeof e.requestSubmit&&e.requestSubmit()}),t9=(0,a.K)(()=>{if(tq(!1),tD?.(!1),eJ(!1),e0(null),"none"===eu?tQ({activeIndex:null,selectedIndex:null}):tQ({activeIndex:null}),tu&&e4.current&&""!==e4.current.value&&!e7.current&&t0("",(0,P.d)(T.qs)),td)if(tO.state.inputInsidePopup)e4.current&&""!==e4.current.value&&t0("",(0,P.d)(T.qs));else{let e=(0,K.yg)(tp,eP);if(e4.current&&e4.current.value!==e){let t=""===e?T.qs:T.dv;t0(e,(0,P.d)(t))}}}),t8=r.useMemo(()=>t_&&tF?{current:tF.closest('[role="dialog"]')}:e3,[t_,tF]);(0,W.v)({enabled:!e.actionsRef,open:tb,ref:t8,onComplete(){tb||t9()}}),r.useImperativeHandle(e.actionsRef,()=>({unmount:t9}),[t9]),(0,o.g)(function(){if(tb||"none"===eu)return;let e=ey?tR:ta.current;if(tu){let t=Array.isArray(tp)?tp:[],n=t[t.length-1],r=(0,Z.Vz)(e,n,eR);tQ({selectedIndex:-1===r?null:r})}else{let t=(0,Z.Vz)(e,tp,eR);tQ({selectedIndex:-1===t?null:t})}},[tb,tp,ey,eu,tR,tu,eR,tQ]),(0,o.g)(()=>{ey&&(to.current=tM,e1.current.length=tM.length)},[ey,tM]),(0,o.g)(()=>{let e=ti.current;if(e&&(e.hasQuery?t&&tO.set("activeIndex",0):"always"===t&&tO.set("activeIndex",0),ti.current=null),!tb&&!t_)return;let n=tf||th?tM:to.current,r=tO.state.activeIndex;if(null==r)return"always"===t&&n.length>0?void tO.set("activeIndex",0):void(tr.current!==Q&&(tr.current=Q,tO.state.onItemHighlighted(void 0,(0,P.M)(T.dv,void 0,{index:-1}))));if(r>=n.length){tr.current!==Q&&(tr.current=Q,tO.state.onItemHighlighted(void 0,(0,P.M)(T.dv,void 0,{index:-1}))),tO.set("activeIndex",null);return}let i=n[r],o=tr.current.value,a=o!==J&&(0,Z.tl)(i,o,tO.state.isItemEqualToValue);tr.current.index===r&&a||(tr.current={value:i,index:r},tO.state.onItemHighlighted(i,(0,P.M)(T.dv,void 0,{index:r})))},[tj,t,th,tf,tM,t_,tb,tO]),(0,o.g)(()=>{if("none"===eu)return void eU(""!==String(ty));eU(tu?Array.isArray(tp)&&tp.length>0:null!=tp)},[eU,eu,ty,tp,tu]),r.useEffect(()=>{tf&&t&&0===tM.length&&tQ({activeIndex:null})},[tf,t,tM.length,tQ]),Y(tC,()=>{tb&&""!==tC&&tC!==String(tg)&&eJ(!0)}),Y(tp,()=>{if("none"!==eu&&(eF(tl),eV(tp!==eB.initialValue),eW()?eX.commit(tp):eX.commit(tp,!0),td&&!tc&&!tG)){let e=(0,K.yg)(tp,eP);ty!==e&&t0(e,(0,P.d)(T.dv))}}),Y(ty,()=>{"none"===eu&&(eF(tl),eV(ty!==eB.initialValue),eW()?eX.commit(ty):eX.commit(ty,!0))}),Y(ey,()=>{if(!td||tc||tG||eZ)return;let e=(0,K.yg)(tp,eP);ty!==e&&t0(e,(0,P.d)(T.dv))});let t5=(0,p.P)({open:!!t_||tb,onOpenChange:t1,elements:{reference:tG?tB:tW,floating:tF}});t_||(n=eg?"grid":"listbox",F=tb?"true":"false");let t6=r.useMemo(()=>{let e=tW?.tagName==="INPUT",t=null==tW||e,r=t||tb,i=t?{autoComplete:"off",spellCheck:"false",autoCorrect:"off",autoCapitalize:"none"}:{};return r&&(i.role="combobox",i["aria-expanded"]=F,i["aria-haspopup"]=n,i["aria-controls"]=tb?tV?.id:void 0,i["aria-autocomplete"]=ek),{reference:i,floating:{role:"presentation"}}},[tW,tb,F,n,tV?.id,ek]),t7=(0,m.k)(t5,{enabled:!ep&&!ts&&ex,event:"mousedown-only",toggle:!1,touchOpenDelay:100*!tG,reason:T._J}),{getReferenceProps:ne,getFloatingProps:nt,getItemProps:nn}=function(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),i=e.map(e=>e?.item),o=e.map(e=>e?.trigger),a=r.useCallback(t=>L(t,e,"reference"),t),s=r.useCallback(t=>L(t,e,"floating"),n),l=r.useCallback(t=>L(t,e,"item"),i),u=r.useCallback(t=>L(t,e,"trigger"),o);return r.useMemo(()=>({getReferenceProps:a,getFloatingProps:s,getItemProps:l,getTriggerProps:u}),[a,s,l,u])}([t6,t7,function(e,t={}){let n="rootStore"in e?e.rootStore:e,i=n.useState("open"),o=n.useState("floatingElement"),{dataRef:s}=n.context,{enabled:l=!0,escapeKey:u=!0,outsidePress:d=!0,outsidePressEvent:c="sloppy",referencePress:f=M,referencePressEvent:h="sloppy",bubbles:p,externalTree:m}=t,O=(0,E.cq)(m),N=(0,a.K)("function"==typeof d?d:()=>!1),I="function"==typeof d?N:d,k=!1!==I,D=(0,a.K)(()=>c),j=r.useRef(!1),L=r.useRef(!1),F=r.useRef(!1),{escapeKey:V,outsidePress:B}={escapeKey:"boolean"==typeof p?p:p?.escapeKey??!1,outsidePress:"boolean"==typeof p?p:p?.outsidePress??!0},W=r.useRef(null),U=(0,$.Z)(),_=(0,$.Z)(),G=(0,a.K)(()=>{_.clear(),s.current.insideReactTree=!1}),K=r.useRef(!1),H=r.useRef(""),q=(0,a.K)(f),X=(0,a.K)(e=>{if(!i||!l||!u||"Escape"!==e.key||K.current)return;let t=s.current.floatingContext?.nodeId,r=O?(0,S.CM)(O.nodesRef.current,t):[];if(!V&&r.length>0){let e=!0;if(r.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let o=(0,C.O_)(e)?e.nativeEvent:e,a=(0,P.d)(T.jv,o);n.setOpen(!1,a),V||a.isPropagationAllowed||e.stopPropagation()}),z=(0,a.K)(()=>{s.current.insideReactTree=!0,_.start(0,G)});r.useEffect(()=>{if(!i||!l)return;s.current.__escapeKeyBubbles=V,s.current.__outsidePressBubbles=B;let e=new $.E,t=new $.E;function r(){F.current=!0,t.start(0,()=>{F.current=!1})}function a(){j.current=!1,L.current=!1}function d(){let e=H.current,t=D(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}
9function c(e){let t=s.current.floatingContext?.nodeId,r=O&&(0,S.CM)(O.nodesRef.current,t).some(t=>(0,x.F2)(e,t.context?.elements.floating));return(0,x.F2)(e,n.select("floatingElement"))||(0,x.F2)(e,n.select("domReferenceElement"))||r}function f(e){if(function(e){let t=d();return"intentional"===t&&"click"!==e.type||"sloppy"===t&&"click"===e.type}(e)||s.current.insideReactTree)return void G();let r=(0,w.EW)(e),i=`[${(0,R.F)("inert")}]`,o=(0,v.vq)(r)?r.getRootNode():null,a=Array.from(((0,v.Ng)(o)?o:(0,b.R)(n.select("floatingElement"))).querySelectorAll(i)),l=n.context.triggerElements;if(r&&(l.hasElement(r)||l.hasMatchingElement(e=>(0,w.gR)(e,r))))return;let u=(0,v.vq)(r)?r:null;for(;u&&!(0,v.eu)(u);){let e=(0,v.$4)(u);if((0,v.eu)(e)||!(0,v.vq)(e))break;u=e}if(a.length&&(0,v.vq)(r)&&!(0,x.tZ)(r)&&!(0,w.gR)(r,n.select("floatingElement"))&&a.every(e=>!(0,w.gR)(u,e)))return;if((0,v.sb)(r)&&!("touches"in e)){let t=(0,v.eu)(r),n=(0,v.L9)(r),i=/auto|scroll/,o=t||i.test(n.overflowX),a=t||i.test(n.overflowY),s=o&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,l=a&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,u="rtl"===n.direction,d=l&&(u?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),c=s&&e.offsetY>r.clientHeight;if(d||c)return}if(c(e))return;if("intentional"===d()&&F.current){t.clear(),F.current=!1;return}if("function"==typeof I&&!I(e))return;let f=s.current.floatingContext?.nodeId,h=O?(0,S.CM)(O.nodesRef.current,f):[];if(h.length>0){let e=!0;if(h.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,(0,P.d)(T.Np,e)),G()}function h(e){if("sloppy"!==d()||!n.select("open")||!l||(0,x.F2)(e,n.select("floatingElement"))||(0,x.F2)(e,n.select("domReferenceElement")))return;let t=e.touches[0];t&&(W.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},U.start(1e3,()=>{W.current&&(W.current.dismissOnTouchEnd=!1,W.current.dismissOnMouseDown=!1)}))}function p(e,t){let n=(0,w.EW)(e);if(!n)return;let r=(0,g.q)(n,e.type,()=>{t(e),r()})}function m(e){U.clear(),"pointerdown"===e.type&&(H.current=e.pointerType),("mousedown"!==e.type||!W.current||W.current.dismissOnMouseDown)&&p(e,e=>{if("pointerdown"===e.type)"sloppy"!==d()||"touch"===e.pointerType||!n.select("open")||!l||(0,x.F2)(e,n.select("floatingElement"))||(0,x.F2)(e,n.select("domReferenceElement"))||f(e);else f(e)})}function C(e){if(!j.current)return;let n=L.current;if(a(),"intentional"===d()){if("pointercancel"===e.type){n&&r();return}if(!c(e)){if(n)return void r();("function"!=typeof I||I(e))&&(t.clear(),F.current=!0,G())}}}function E(e){if("sloppy"!==d()||!W.current||(0,x.F2)(e,n.select("floatingElement"))||(0,x.F2)(e,n.select("domReferenceElement")))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-W.current.startX),i=Math.abs(t.clientY-W.current.startY),o=Math.sqrt(r*r+i*i);o>5&&(W.current.dismissOnTouchEnd=!0),o>10&&(f(e),U.clear(),W.current=null)}function A(e){"sloppy"!==d()||!W.current||(0,x.F2)(e,n.select("floatingElement"))||(0,x.F2)(e,n.select("domReferenceElement"))||(W.current.dismissOnTouchEnd&&f(e),U.clear(),W.current=null)}let M=(0,b.R)(o),N=(0,y.g)(u&&(0,y.g)((0,g.q)(M,"keydown",X),(0,g.q)(M,"compositionstart",function(){e.clear(),K.current=!0}),(0,g.q)(M,"compositionend",function(){e.start(5*!!(0,v.Tc)(),()=>{K.current=!1})})),k&&(0,y.g)((0,g.q)(M,"click",m,!0),(0,g.q)(M,"pointerdown",m,!0),(0,g.q)(M,"pointerup",C,!0),(0,g.q)(M,"pointercancel",C,!0),(0,g.q)(M,"mousedown",m,!0),(0,g.q)(M,"mouseup",C,!0),(0,g.q)(M,"touchstart",function(e){H.current="touch",p(e,h)},!0),(0,g.q)(M,"touchmove",function(e){p(e,E)},!0),(0,g.q)(M,"touchend",function(e){p(e,A)},!0)));return()=>{N(),e.clear(),t.clear(),a(),F.current=!1}},[s,o,u,k,I,i,l,V,B,X,G,D,O,n,U]),r.useEffect(G,[I,G]);let Y=r.useMemo(()=>({onKeyDown:X,[A[h]]:e=>{q()&&n.setOpen(!1,(0,P.d)(T.Ui,e.nativeEvent))},..."intentional"!==h&&{onClick(e){q()&&n.setOpen(!1,(0,P.d)(T.Ui,e.nativeEvent))}}}),[X,n,h,q]),Z=(0,a.K)(e=>{if(!i||!l||0!==e.button)return;let t=(0,w.EW)(e.nativeEvent);(0,w.gR)(n.select("floatingElement"),t)&&(j.current||(j.current=!0,L.current=!1))}),J=(0,a.K)(e=>{i&&l&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&j.current&&(L.current=!0)}),Q=r.useMemo(()=>({onKeyDown:X,onPointerDown:J,onMouseDown:J,onClickCapture:z,onMouseDownCapture(e){z(),Z(e)},onPointerDownCapture(e){z(),Z(e)},onMouseUpCapture:z,onTouchEndCapture:z,onTouchMoveCapture:z}),[X,z,Z,J]);return r.useMemo(()=>l?{reference:Y,floating:Q,trigger:Y}:{},[l,Y,Q])}(t5,{enabled:!ep&&!ts&&!t_,outsidePressEvent:{mouse:"sloppy",touch:"intentional"},bubbles:!!t_||void 0,outsidePress(e){let t=(0,w.EW)(e);return!(0,w.gR)(tB,t)&&!(0,w.gR)(tt.current,t)&&!(0,w.gR)(te.current,t)&&!(0,w.gR)(tU,t)}}),function(e,t){let n="rootStore"in e?e.rootStore:e,i=n.useState("open"),s=n.useState("floatingElement"),u=n.useState("domReferenceElement"),d=n.context.dataRef,{listRef:c,activeIndex:f,onNavigate:h=()=>{},enabled:p=!0,selectedIndex:m=null,allowEscape:g=!1,loopFocus:y=!1,nested:$=!1,rtl:S=!1,virtual:R=!1,focusItemOnOpen:A="auto",focusItemOnHover:M=!0,openOnArrowKeyDown:L=!0,disabledIndices:F,orientation:V="vertical",parentOrientation:B,cols:W=1,id:U,resetOnPointerLeave:_=!0,externalTree:G}=t,K=(0,x.nd)(s),H=(0,l.u)(K),q=(0,E.R1)(),X=(0,E.cq)(G);(0,o.g)(()=>{d.current.orientation=V},[d,V]);let z=(0,x.WZ)(u),Y=r.useRef(A),Z=r.useRef(m??-1),J=r.useRef(null),Q=r.useRef(!0),ee=(0,a.K)(e=>{h(-1===Z.current?null:Z.current,e)}),et=r.useRef(ee),en=r.useRef(!!s),er=r.useRef(i),ei=r.useRef(!1),eo=r.useRef(!1),ea=r.useRef(null),es=(0,l.u)(F),el=(0,l.u)(i),eu=(0,l.u)(m),ed=(0,l.u)(_),ec=(0,a.K)(()=>{function e(e){R?X?.events.emit("virtualfocus",e):ea.current=(0,N.p)(e,{sync:ei.current,preventScroll:!0})}let t=c.current[Z.current],n=eo.current;t&&e(t),(ei.current?e=>e():requestAnimationFrame)(()=>{let r=c.current[Z.current]||t;r&&(t||e(r),ep&&(n||!Q.current)&&r.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,o.g)(()=>{p&&(i&&s?(Z.current=m??-1,Y.current&&null!=m&&(eo.current=!0,ee())):en.current&&(Z.current=-1,et.current()))},[p,i,s,m,ee]),(0,o.g)(()=>
9{if(p){if(!i){ei.current=!1;return}if(s)if(null==f){if(ei.current=!1,null!=eu.current)return;if(en.current&&(Z.current=-1,ec()),(!er.current||!en.current)&&Y.current&&(null!=J.current||!0===Y.current&&null==J.current)){let e=0,t=()=>{null==c.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(Z.current=null==J.current||j(J.current,V,S)||$?(0,O.Zb)(c):(0,O.vB)(c),J.current=null,ee())};t()}}else(0,O.du)(c.current,f)||(Z.current=f,ec(),eo.current=!1)}},[p,i,s,f,eu,$,c,V,S,ee,ec,es]),(0,o.g)(()=>{if(!p||s||!X||R||!en.current)return;let e=X.nodesRef.current,t=e.find(e=>e.id===q)?.context?.elements.floating,n=(0,w.RS)((0,b.R)(s)),r=e.some(e=>e.context&&(0,w.gR)(e.context.elements.floating,n));t&&!r&&Q.current&&t.focus({preventScroll:!0})},[p,s,X,q,R]),(0,o.g)(()=>{et.current=ee,er.current=i,en.current=!!s}),(0,o.g)(()=>{i||(J.current=null,Y.current=A)},[i,A]);let ef=null!=f,eh=(0,a.K)(e=>{if(!el.current)return;let t=c.current.indexOf(e.currentTarget);-1!==t&&(Z.current!==t||f!==t)&&(Z.current=t,ee(e))}),ep=r.useMemo(()=>({onFocus(e){ei.current=!0,eh(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){ei.current=!0,eo.current=!1,M&&eh(e)},onPointerLeave(e){if(!el.current||!Q.current||"touch"===e.pointerType)return;ei.current=!0;let t=e.relatedTarget;if(!(!M||c.current.includes(t))&&ed.current&&(ea.current?.(),ea.current=null,Z.current=-1,ee(e),!R)){let e=H.current,t=(0,w.RS)((0,b.R)(e));e&&(0,w.gR)(e,t)&&e.focus({preventScroll:!0})}}}),[eh,el,H,M,c,ee,ed,R]),em=r.useCallback(()=>B??X?.nodesRef.current.find(e=>e.id===q)?.context?.dataRef?.current.orientation,[q,X,B]),ev=(0,a.K)(e=>{if(Q.current=!1,ei.current=!0,229===e.which||!el.current&&e.currentTarget===H.current)return;if($&&function(e,t,n,r){let i=n?e===I.RJ:e===I.eR,o=e===I.il;return"both"===t||"horizontal"===t&&r&&r>1?"Escape"===e:k(t,i,o)}(e.key,V,S,W)){D(e.key,em())||(0,C.jo)(e),n.setOpen(!1,(0,P.d)(T.Dq,e.nativeEvent)),(0,v.sb)(u)&&(R?X?.events.emit("virtualfocus",u):u.focus());return}let t=Z.current,r=(0,O.Zb)(c,F),o=(0,O.vB)(c,F);if(z||("Home"===e.key&&((0,C.jo)(e),Z.current=r,ee(e)),"End"===e.key&&((0,C.jo)(e),Z.current=o,ee(e))),W>1){let t=Array.from({length:c.current.length},()=>({width:1,height:1})),n=(0,O.zf)(t,W,!1),i=n.findIndex(e=>null!=e&&!(0,O.FP)(c.current,e,F)),a=n.reduce((e,t,n)=>null==t||(0,O.FP)(c.current,t,F)?e:n,-1),s=n[(0,O.Kg)(n.map(e=>null!=e?c.current[e]:null),{event:e,orientation:V,loopFocus:y,rtl:S,cols:W,disabledIndices:(0,O.Y3)([...("function"!=typeof F?F:null)||c.current.map((e,t)=>(0,O.FP)(c.current,t,F)?t:void 0),void 0],n),minIndex:i,maxIndex:a,prevIndex:(0,O.fl)(Z.current>o?r:Z.current,t,n,W,e.key===I.Jd?"bl":e.key===(S?I.eR:I.RJ)?"tr":"tl"),stopEvent:!0})];if(null!=s&&(Z.current=s,ee(e)),"both"===V)return}if(D(e.key,V)){if((0,C.jo)(e),i&&!R&&(0,w.RS)(e.currentTarget.ownerDocument)===e.currentTarget){Z.current=j(e.key,V,S)?r:o,ee(e);return}j(e.key,V,S)?y?t>=o?g&&t!==c.current.length?Z.current=-1:(ei.current=!1,Z.current=r):Z.current=(0,O.BF)(c.current,{startingIndex:t,disabledIndices:F}):Z.current=Math.min(o,(0,O.BF)(c.current,{startingIndex:t,disabledIndices:F})):y?t<=r?g&&-1!==t?Z.current=c.current.length:(ei.current=!1,Z.current=o):Z.current=(0,O.BF)(c.current,{startingIndex:t,decrement:!0,disabledIndices:F}):Z.current=Math.max(r,(0,O.BF)(c.current,{startingIndex:t,decrement:!0,disabledIndices:F})),(0,O.du)(c.current,Z.current)&&(Z.current=-1),ee(e)}}),eg=r.useMemo(()=>R&&i&&ef&&{"aria-activedescendant":`${U}-${f}`},[R,i,ef,U,f]),ey=r.useMemo(()=>({"aria-orientation":"both"===V?void 0:V,...!z?eg:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&i&&!R){let t=(0,w.EW)(e.nativeEvent);if(t&&!(0,w.gR)(H.current,t))return;(0,C.jo)(e),n.setOpen(!1,(0,P.d)(T.Xn,e.nativeEvent)),(0,v.sb)(u)&&u.focus();return}ev(e)},onPointerMove(){Q.current=!0}}),[eg,ev,H,V,z,n,i,R,u]),e$=r.useMemo(()=>{function e(e){"auto"===A&&(0,C.YF)(e.nativeEvent)&&(Y.current=!R)}function t(e){Y.current=A,"auto"===A&&(0,C.Pg)(e.nativeEvent)&&(Y.current=!0)}return{onKeyDown(e){var t,r;let i=n.select("open");Q.current=!1;let o=e.key.startsWith("Arrow"),a=(t=e.key,r=em(),k(r,S?t===I.eR:t===I.RJ,t===I.Jd)),s=D(e.key,V),l=($?a:s)||"Enter"===e.key||""===e.key.trim();if(R&&i)return ev(e);if(i||L||!o){if(l){let t=D(e.key,em());J.current=$&&t?null:e.key}if($){a&&((0,C.jo)(e),i?(Z.current=(0,O.Zb)(c,es.current),ee(e)):n.setOpen(!0,(0,P.d)(T.Dq,e.nativeEvent,e.currentTarget)));return}s&&(null!=eu.current&&(Z.current=eu.current),(0,C.jo)(e),!i&&L?n.setOpen(!0,(0,P.d)(T.Dq,e.nativeEvent,e.currentTarget)):ev(e),i&&ee(e))}},onFocus(e){n.select("open")&&!R&&(Z.current=-1,ee(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[ev,es,A,c,$,ee,n,L,V,em,S,eu,R]),eb=r.useMemo(()=>({...eg,...e$}),[eg,e$]);return r.useMemo(()=>p?{reference:eb,floating:ey,item:ep,trigger:e$}:{},[p,eb,ey,e$,ep])}(t5,{enabled:!ep&&!ts,id:ez,listRef:e1,activeIndex:tj,selectedIndex:tL,virtual:!0,loopFocus:eE,allowEscape:eE&&!t,focusItemOnOpen:!eZ&&("none"!==eu||!!t)&&"auto",focusItemOnHover:eS,resetOnPointerLeave:!eC,cols:eg?2:1,orientation:eg?"horizontal":void 0,disabledIndices:h.Ml,onNavigate(e,t){(t||tb)&&"ending"!==tX&&(t?tQ({activeIndex:e,type:e6.current?"keyboard":"pointer"}):tQ({activeIndex:e}))}})]),nr=r.useRef(!0);nr.current&&(nr.current=!1,tO.update({inline:eM,popupProps:nt(),inputProps:ne(),triggerProps:tY,getItemProps:nn,setOpen:t1,setInputValue:t0,setSelectedValue:t2,setIndices:tQ,onItemHighlighted:tk,handleSelection:t3,forceMount:tZ,requestSubmit:t4})),(0,o.g)(()=>{tO.update({id:ez,selectedValue:tp,open:tb,mounted:tH,transitionStatus:tX,items:ey,inline:eM,popupProps:nt(),inputProps:ne(),triggerProps:tY,openMethod:tz,getItemProps:nn,selectionMode:eu,name:tl,form:ef,disabled:ts,readOnly:ep,required:em,grid:eg,isGrouped:tw,virtualized:eA,onOpenChangeComplete:tD,openOnInputClick:ex,itemToStringLabel:eP,modal:eN,autoHighlight:t,isItemEqualToValue:eR,submitOnItemClick:eL,hasInputValue:tc,requestSubmit:t4})},[tO,ez,tp,tb,tH,tX,ey,nt,ne,nn,tz,tY,eu,tl,ts,ep,em,eX,eg,tw,eA,tD,ex,eP,eN,eR,eL,tc,eM,t4,t,ef]);let ni=(0,s.a)(ev,eX.inputRef),no=r.useMemo(()=>({query:tC,hasItems:tf,filteredItems:tA,flatFilteredItems:tM}),[tC,tf,tA,tM]),na=r.useMemo(()=>Array.isArray(tN)?"":(0,K.T)(tN,eT),[tN,eT]),ns=tu&&Array.isArray(tp)&&tp.length>0,nl=tu||"none"===eu?void 0:tl,nu=r.useMemo(()=>tu&&Array.isArray(tp)&&tl?tp.map(e=>{let t=(0,K.T)(e,eT);return(0,ee.jsx)("input",{type:"hidden",form:ef,name:tl,value:t},t)}):null,[tu,tp,ef,tl,eT]),nd=(0,ee.jsxs)(r.Fragment,{children:[e.children,(0,ee.jsx)("input",{...eX.getInputValidationProps({onFocus(){if(tG)return void tB?.focus();
9(e4.current||tB)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,n=(0,P.d)(T.dv,e.nativeEvent);function r(){if(tu)return;if("none"===eu){eV(t!==eB.initialValue),t0(t,n),eW()&&eX.commit(t);return}let e=to.current.find(e=>(0,K.T)(e,eT).toLowerCase()===t.toLowerCase()||(0,K.yg)(e,eP).toLowerCase()===t.toLowerCase());null!=e&&(eV(e!==eB.initialValue),t2?.(e,n),eW()&&eX.commit(e))}ey?r():(tZ(),queueMicrotask(r))}}),id:ez&&null==nl?`${ez}-hidden-input`:void 0,form:ef,name:nl,autoComplete:eD,disabled:ts,required:em&&!ns,readOnly:ep,value:na,ref:ni,style:nl?u.a:u.Q,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),nu]});return(0,ee.jsx)(V.vx.Provider,{value:tO,children:(0,ee.jsx)(V.Hw.Provider,{value:t5,children:(0,ee.jsx)(V.kN.Provider,{value:no,children:(0,ee.jsx)(V.KR.Provider,{value:ty,children:nd})})})})}function en(e){let{multiple:t=!1,defaultValue:n,value:r,onValueChange:i,autoComplete:o,...a}=e;return(0,ee.jsx)(et,{...a,selectionMode:t?"multiple":"single",selectedValue:r,defaultSelectedValue:n,onSelectedValueChange:i,formAutoComplete:o})}},44466:(e,t,n)=>{"use strict";n.d(t,{$:()=>a});var r=n(44922),i=n(38138),o=n(46063);function a(e,t=!1,n=!1){let[s,l]=r.useState(e&&t?"idle":void 0),[u,d]=r.useState(e);return e&&!u&&(d(!0),l("starting")),e||!u||"ending"===s||n||l("ending"),e||u||"ending"!==s||l(void 0),(0,i.g)(()=>{if(!e&&u&&"ending"!==s&&n){let e=o.K.request(()=>{l("ending")});return()=>{o.K.cancel(e)}}},[e,u,s,n]),(0,i.g)(()=>{if(!e||t)return;let n=o.K.request(()=>{l(void 0)});return()=>{o.K.cancel(n)}},[t,e]),(0,i.g)(()=>{if(!e||!t)return;e&&u&&"idle"!==s&&l("starting");let n=o.K.request(()=>{l("idle")});return()=>{o.K.cancel(n)}},[t,e,u,s]),{mounted:u,setMounted:d,transitionStatus:s}}},44810:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(5035);let i=(e,t,n,i,o,a,...s)=>{let l;if(s.length>0)throw Error((0,r.A)(1));if(e&&t&&n&&i&&o&&a)l=(r,s,l,u)=>{let d=e(r,s,l,u),c=t(r,s,l,u),f=n(r,s,l,u);return a(d,c,f,i(r,s,l,u),o(r,s,l,u),s,l,u)};else if(e&&t&&n&&i&&o)l=(r,a,s,l)=>{let u=e(r,a,s,l),d=t(r,a,s,l);return o(u,d,n(r,a,s,l),i(r,a,s,l),a,s,l)};else if(e&&t&&n&&i)l=(r,o,a,s)=>{let l=e(r,o,a,s);return i(l,t(r,o,a,s),n(r,o,a,s),o,a,s)};else if(e&&t&&n)l=(r,i,o,a)=>n(e(r,i,o,a),t(r,i,o,a),i,o,a);else if(e&&t)l=(n,r,i,o)=>t(e(n,r,i,o),r,i,o);else if(e)l=e;else throw Error("Missing arguments");return l}},45100:()=>{},45195:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},46063:(e,t,n)=>{"use strict";n.d(t,{K:()=>s,N:()=>l});var r=n(43351),i=n(59166);globalThis.requestAnimationFrame;class o{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}}let a=new o;class s{static create(){return new s}static request(e){return a.request(e)}static cancel(e){return a.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=a.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(a.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}function l(){let e=(0,r.j)(s.create).current;return(0,i.y)(e.disposeEffect),e}},46078:(e,t,n)=>{"use strict";n.d(t,{b:()=>a,s:()=>o});var r=n(5035),i=n(44922);let o=i.createContext(void 0);function a(){let e=i.useContext(o);if(!e)throw Error((0,r.A)(19));return e}},46399:()=>{},46492:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},46860:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});
9var r=n(44922),i=n(38138),o=n(31142),a=n(51414),s=n(66162);let l=r.forwardRef(function(e,t){let[n,l]=r.useState();return(0,i.g)(()=>{o.nr&&l("button")},[]),(0,s.jsx)("span",{...e,ref:t,style:a.Q,"aria-hidden":!n||void 0,...{tabIndex:0,role:n},"data-base-ui-focus-guard":""})})},47736:(e,t,n)=>{"use strict";n.d(t,{R1:()=>a,cq:()=>s});var r=n(44922);n(66162);let i=r.createContext(null),o=r.createContext(null),a=()=>r.useContext(i)?.id||null,s=e=>{let t=r.useContext(o);return e??t}},47920:(e,t,n)=>{"use strict";n.d(t,{b:()=>y});var r=n(65728),i=n(75748),o=n(21333),a=n(92383),s=n(76129),l=n(8485);let u=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var d=n(52687),c=n(18469),f=n(3294),h=n(51502);let p=new Set(["auto","none","0"]);var m=n(35623);class v extends d.h{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),(0,l.pG)(r))){let i=function e(t,n,r=1){(0,a.V)(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,o]=function(e){let t=u.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let d=window.getComputedStyle(n).getPropertyValue(i);if(d){let e=d.trim();return(0,s.i)(e)?parseFloat(e):e}return(0,l.pG)(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!i.$.has(n)||2!==e.length)return;let[r,d]=e,c=(0,o.n)(r),f=(0,o.n)(d);if((0,l.rm)(r)!==(0,l.rm)(d)&&m.Hr[n]){this.needsMeasurement=!0;return}if(c!==f)if((0,m.E4)(c)&&(0,m.E4)(f))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else m.Hr[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;(null===e[t]||("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||(0,c.$)(r)))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!p.has(t)&&(0,f.V)(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=(0,h.J)(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=m.Hr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=m.Hr[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}var g=n(59060);class y extends g.BX{constructor(){super(...arguments),this.KeyframeResolver=v}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,r.S)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}},48193:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(32424),i=n(54739);let o={...r.jL,...i.dc,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":""}:null}},48355:()=>{},48555:(e,t,n)=>{"use strict";n.d(t,{f:()=>e$});var r=n(24160),i=n(61992),o=n(57094),a=n(2162),s=n(97830),l=n(31749),u=n(35994),d=n(80016);let c=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>d.Gt.update(t,e),stop:()=>(0,d.WG)(t),now:()=>d.uv.isProcessing?d.uv.timestamp:a.k.now()}};var f=n(92383),h=n(11044);function p(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let m={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function v(e,t){return e*Math.sqrt(1-t*t)}let g=["duration","bounce"],y=["stiffness","damping","mass"];function $(e,t){return t.some(t=>void 0!==e[t])}function b(e=m.visualDuration,t=m.bounce){let n,i,o,a,s,u,d="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:c,restDelta:x}=d,w=d.keyframes[0],C=d.keyframes[d.keyframes.length-1],S={done:!1,value:w},{stiffness:E,damping:P,mass:T,duration:R,velocity:A,isResolvedFromDuration:M}=function(e){let t={velocity:m.velocity,stiffness:m.stiffness,damping:m.damping,mass:m.mass,isResolvedFromDuration:!1,...e};if(!$(e,y)&&$(e,g))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*(0,l.q)(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:m.mass,stiffness:r,damping:i}}else{let n=function({duration:e=m.duration,bounce:t=m.bounce,velocity:n=m.velocity,mass:i=m.mass}){let o,a;(0,f.$)(e<=(0,r.f)(m.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=(0,l.q)(m.minDamping,m.maxDamping,s),e=(0,l.q)(m.minDuration,m.maxDuration,(0,r.X)(e)),s<1?(o=t=>{let r=t*s,i=r*e;return .001-(r-n)/v(t,s)*Math.exp(-i)},a=t=>{let r=t*s*e,i=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-r),l=v(Math.pow(t,2),s);return(r*n+n-i)*a*(-o(t)+.001>0?-1:1)/l}):(o=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>e*e*(n-t)*Math.exp(-t*e));let u=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,a,5/e);if(e=(0,r.f)(e),isNaN(u))return{stiffness:m.stiffness,damping:m.damping,duration:e};{let t=Math.pow(u,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:m.mass}).isResolvedFromDuration=!0}return t}({...d,velocity:-(0,r.X)(d.velocity||0)}),O=A||0,N=P/(2*Math.sqrt(E*T)),I=C-w,k=(0,r.X)(Math.sqrt(E/T)),D=5>Math.abs(I);if(c||(c=D?m.restSpeed.granular:m.restSpeed.default),x||(x=D?m.restDelta.granular:m.restDelta.default),N<1)o=v(k,N),a=(O+N*k*I)/o,n=e=>C-Math.exp(-N*k*e)*(a*Math.sin(o*e)+I*Math.cos(o*e)),s=N*k*a+I*o,u=N*k*I-a*o,i=e=>Math.exp(-N*k*e)*(s*Math.sin(o*e)+u*Math.cos(o*e));else if(1===N){n=e=>C-Math.exp(-k*e)*(I+(O+k*I)*e);let e=O+k*I;i=t=>Math.exp(-k*t)*(k*e*t-O)}else{let e=k*Math.sqrt(N*N-1);n=t=>{let n=Math.exp(-N*k*t),r=Math.min(e*t,300);return C-n*((O+N*k*I)*Math.sinh(r)+e*I*Math.cosh(r))/e};let t=(O+N*k*I)/e,r=N*k*t-I*e,o=N*k*I-t*e;i=t=>{let n=Math.exp(-N*k*t),i=Math.min(e*t,300);return n*(r*Math.sinh(i)+o*Math.cosh(i))}}let j={calculatedDuration:M&&R||null,velocity:e=>(0,r.f)(i(e)),next:e=>{if(!M&&N<1){let t=Math.exp(-N*k*e),n=Math.sin(o*e),i=Math.cos(o*e),l=C-t*(a*n+I*i);return S.done=Math.abs((0,r.f)(t*(s*n+u*i)))<=c&&Math.abs(C-l)<=x,S.value=S.done?C:l,S}let t=n(e);return M?S.done=e>=R:S.done=Math.abs((0,r.f)(i(e)))<=c&&Math.abs(C-t)<=x,S.value=S.done?C:t,S},toString:()=>{let e=Math.min(p(j),2e4),t=(0,h.K)(t=>j.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return j}b.applyToOptions=e=>{let t=function(e,t=100,n){let i=n({...e,keyframes:[0,t]}),o=Math.min(p(i),2e4);return{type:"keyframes",ease:e=>i.next(o*e).value/t,duration:(0,r.X)(o)}}(e,100,b);return e.ease=t.ease,e.duration=(0,r.f)(t.duration),e.type="keyframes",e};var x=n(67448);function w(e,t,n){let r=Math.max(t-5,0);return(0,x.f)(n-e(r),t-r)}function C({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:d}){let c,f,h=e[0],p={done:!1,value:h},m=e=>void 0!==s&&e<s||void 0!==l&&e>l,v=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l,g=n*t,y=h+g,$=void 0===a?y:a(y);$!==y&&(g=$-h);let x=e=>-g*Math.exp(-e/r),C=e=>$+x(e),S=e=>{let t=x(e),n=C(e);p.done=Math.abs(t)<=u,p.value=p.done?$:n},E=e=>
9{m(p.value)&&(c=e,f=b({keyframes:[p.value,v(p.value)],velocity:w(C,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==c||(t=!0,S(e),E(e)),void 0!==c&&e>=c)?f.next(e-c):(t||S(e),p)}}}let S=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function E(e,t,n,r){if(e===t&&n===r)return o.l;let i=t=>(function(e,t,n,r,i){let o,a,s=0;do(o=S(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,n);return e=>0===e||1===e?e:S(i(e),t,r)}let P=E(.42,0,1,1),T=E(0,0,.58,1),R=E(.42,0,.58,1),A=e=>Array.isArray(e)&&"number"!=typeof e[0];var M=n(78658),O=n(33809);let N=E(.33,1.53,.69,.99),I=(0,O.G)(N),k=(0,M.V)(I),D=e=>e>=1?1:(e*=2)<1?.5*I(e):.5*(2-Math.pow(2,-10*(e-1)));var j=n(12195),L=n(15422);let F={linear:o.l,easeIn:P,easeInOut:R,easeOut:T,circIn:j.po,circInOut:j.tn,circOut:j.yT,backIn:I,backInOut:k,backOut:N,anticipate:D},V=e=>"string"==typeof e,B=e=>{if((0,L.D)(e)){(0,f.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return E(t,n,r,i)}return V(e)?((0,f.V)(void 0!==F[e],`Invalid easing type '${e}'`,"invalid-easing-type"),F[e]):e};var W=n(38716),U=n(39335);function _({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o=A(r)?r.map(B):B(r),a={done:!1,value:t[0]},s=(i=n&&n.length===t.length?n:(0,U.Z)(t),i.map(t=>t*e)),l=(0,W.G)(s,t,{ease:Array.isArray(o)?o:t.map(()=>o||R).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=l(t),a.done=t>=e,a)}}var G=n(21761);let K={decay:C,inertia:C,tween:_,keyframes:_,spring:b};function H(e){"string"==typeof e.type&&(e.type=K[e.type])}var q=n(35433);let X=e=>e/100;class z extends q.q{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==a.k.now()&&this.tick(a.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;H(e);let{type:t=_,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:a}=e,l=t||_;l!==_&&"number"!=typeof a[0]&&(this.mixKeyframes=(0,s.F)(X,(0,u.j)(a[0],a[1])),a=[0,100]);let d=l({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),null===d.calculatedDuration&&(d.calculatedDuration=p(d));let{calculatedDuration:c}=d;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=d}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:u}=this;if(null===this.startTime)return r.next(0);let{delay:d=0,keyframes:c,repeat:f,repeatType:h,repeatDelay:p,type:m,onUpdate:v,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let y=this.currentTime-d*(this.playbackSpeed>=0?1:-1),$=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let b=this.currentTime,x=r;if(f){let e=Math.min(this.currentTime,i)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,f+1))%2&&("reverse"===h?(n=1-n,p&&(n-=p/s)):"mirror"===h&&(x=a)),b=(0,l.q)(0,1,n)*s}$?(this.delayState.value=c[0],n=this.delayState):n=x.next(b),o&&!$&&(n.value=o(n.value));let{done:w}=n;$||null===u||(w=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&m!==C&&(n.value=(0,G.X)(c,this.options,g,this.speed)),v&&v(n.value),S&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return(0,r.X)(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,r.X)(e)}get time(){return(0,r.X)(this.currentTime)}set time(e){e=(0,r.f)(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return w(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(a.k.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=(0,r.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=c,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(a.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}var Y=n(52687),Z=n(65300),J=n(82778);let Q={anticipate:D,backInOut:k,circInOut:j.tn};class ee extends J.m{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in Q&&(e.ease=Q[e.ease])}(e),H(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let s=new z({...o,autoplay:!1}),u=Math.max(10,a.k.now()-this.startTime),d=(0,l.q)(0,10,u-10),c=s.sample(u).value,{name:f}=this.options;i&&f&&(0,Z.e)(i,f,c),t.setWithVelocity(s.sample(Math.max(0,u-d)).value,c,d),s.stop()}}var et=n(54479),en=n(3294);let er=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(en.f.test(e)||"0"===e)&&!e.startsWith("url("));function ei(e){e.duration=0,e.type="keyframes"}var eo=n(80904),ea=n(96351);let es=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,el=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),eu=(0,eo.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class ed extends q.q{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:
9o="loop",keyframes:s,name:l,motionValue:u,element:d,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=a.k.now();let f={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:l,motionValue:u,element:d,...c},h=d?.KeyframeResolver||Y.h;this.keyframeResolver=new h(s,(e,t,n)=>this.onKeyframesResolved(e,t,f,!n),l,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){let s;this.keyframeResolver=void 0;let{name:l,type:u,velocity:d,delay:c,isHandoff:h,onUpdate:p}=n;this.resolvedAt=a.k.now();let m=!0;!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=er(i,t),s=er(o,t);return(0,f.$)(a===s,`You are trying to animate ${t} from "${i}" to "${o}". "${a?o:i}" is not an animatable value.`,"value-not-animatable"),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||(0,et.W)(n))&&r)}(e,l,u,d)&&(m=!1,(i.W.instantAnimations||!c)&&p?.((0,G.X)(e,n,t)),e[0]=e[e.length-1],ei(n),n.repeat=0);let v={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},g=m&&!h&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return eu()&&n&&(ea.M.has(n)||el.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&es.test(e[t]))return!0;return!1}(s))&&("transform"!==n||!u)&&!l&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}(v),y=v.motionValue?.owner?.current;if(g)try{s=new ee({...v,element:y})}catch{s=new z(v)}else s=new z(v);s.finished.then(()=>{this.notifyFinished()}).catch(o.l),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,Y.q)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var ec=n(70104),ef=n(59945);let eh={type:"spring",stiffness:500,damping:25,restSpeed:10},ep=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),em={type:"keyframes",duration:.8},ev={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eg=(e,{keyframes:t})=>t.length>2?em:ef.f.has(e)?e.startsWith("scale")?ep(t[1]):eh:ev,ey=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),e$=(e,t,n,o={},a,s)=>l=>{let u=(0,ec.r)(o,e)||{},c=u.delay||o.delay||0,{elapsed:f=0}=o;f-=(0,r.f)(c);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:e=>{t.set(e),u.onUpdate&&u.onUpdate(e)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:a};!function(e){for(let t in e)if(!ey.has(t))return!0;return!1}(u)&&Object.assign(h,eg(e,h)),h.duration&&(h.duration=(0,r.f)(h.duration)),h.repeatDelay&&(h.repeatDelay=(0,r.f)(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let p=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(ei(h),0===h.delay&&(p=!0)),(i.W.instantAnimations||i.W.skipAnimations||a?.shouldSkipAnimations||u.skipAnimations)&&(p=!0,ei(h),h.delay=0),h.allowFlatten=!u.type&&!u.ease,p&&!s&&void 0!==t.get()){let e=(0,G.X)(h.keyframes,u);if(void 0!==e)return void d.Gt.update(()=>{h.onUpdate(e),h.onComplete()})}return u.isSync?new z(h):new ed(h)}},50545:(e,t,n)=>{"use strict";n.d(t,{J:()=>
9o});var r=n(80904);let i={};function o(e,t){let n=(0,r.p)(e);return()=>i[t]??n()}},50549:()=>{},51131:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r=n(31977);let i={offset:"stroke-dashoffset",array:"stroke-dasharray"},o={offset:"strokeDashoffset",array:"strokeDasharray"},a=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function s(e,{attrX:t,attrY:n,attrScale:s,pathLength:l,pathSpacing:u=1,pathOffset:d=0,...c},f,h,p){if((0,r.O)(e,c,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:m,style:v}=e;for(let e of(m.transform&&(v.transform=m.transform,delete m.transform),(v.transform||m.transformOrigin)&&(v.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),v.transform&&(v.transformBox=p?.transformBox??"fill-box",delete m.transformBox),a))void 0!==m[e]&&(v[e]=m[e],delete m[e]);void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==s&&(m.scale=s),void 0!==l&&function(e,t,n=1,r=0,a=!0){e.pathLength=1;let s=a?i:o;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}(m,l,u,d,!1)}},51205:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("euro",[["path",{d:"M4 10h12",key:"1y6xl8"}],["path",{d:"M4 14h9",key:"1loblj"}],["path",{d:"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",key:"1j6lzo"}]])},51316:(e,t,n)=>{"use strict";n.d(t,{OK:()=>ee,bL:()=>J,VM:()=>R,lr:()=>V,LM:()=>Q});var r=n(44922);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function a(...e){return r.useCallback(o(...e),e)}n(49715);var s=n(66162),l=Symbol("radix.slottable");function u(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}var d=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var a;let e,s,l=(a=n,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(u.ref=t?o(t,l):l),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...o}=e,a=r.Children.toArray(i),l=a.find(u);if(l){let e=l.props.children,i=a.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,s.jsx)(t,{...o,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(i?n:t,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),c=globalThis?.document?r.useLayoutEffect:()=>{},f=e=>{let{present:t,children:n}=e,i=function(e){var t,n;let[i,o]=r.useState(),a=r.useRef(null),s=r.useRef(e),l=r.useRef("none"),[u,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=h(a.current);l.current="mounted"===u?e:"none"},[u]),c(()=>{let t=a.current,n=s.current;if(n!==e){let r=l.current,i=h(t);e?d("MOUNT"):"none"===i||t?.display==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),s.current=e}},[e,d]),c(()=>
9{if(i){let e,t=i.ownerDocument.defaultView??window,n=n=>{let r=h(a.current).includes(CSS.escape(n.animationName));if(n.target===i&&r&&(d("ANIMATION_END"),!s.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(l.current=h(a.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}d("ANIMATION_END")},[i,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:r.useCallback(e=>{a.current=e?getComputedStyle(e):null,o(e)},[])}}(t),o="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),s=a(i.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof n||i.isPresent?r.cloneElement(o,{ref:s}):null};function h(e){return e?.animationName||"none"}function p(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}f.displayName="Presence";var m=n(81708),v=n(13442),g=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function y(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var $="ScrollArea",[b,x]=function(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=r.createContext(i),a=n.length;n=[...n,i];let l=t=>{let{scope:n,children:i,...l}=t,u=n?.[e]?.[a]||o,d=r.useMemo(()=>l,Object.values(l));return(0,s.jsx)(u.Provider,{value:d,children:i})};return l.displayName=t+"Provider",[l,function(n,s){let l=s?.[e]?.[a]||o,u=r.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}($),[w,C]=b($),S=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:i="hover",dir:o,scrollHideDelay:l=600,...u}=e,[c,f]=r.useState(null),[h,p]=r.useState(null),[v,g]=r.useState(null),[y,$]=r.useState(null),[b,x]=r.useState(null),[C,S]=r.useState(0),[E,P]=r.useState(0),[T,R]=r.useState(!1),[A,M]=r.useState(!1),O=a(t,e=>f(e)),N=(0,m.jH)(o);return(0,s.jsx)(w,{scope:n,type:i,dir:N,scrollHideDelay:l,scrollArea:c,viewport:h,onViewportChange:p,content:v,onContentChange:g,scrollbarX:y,onScrollbarXChange:$,scrollbarXEnabled:T,onScrollbarXEnabledChange:R,scrollbarY:b,onScrollbarYChange:x,scrollbarYEnabled:A,onScrollbarYEnabledChange:M,onCornerWidthChange:S,onCornerHeightChange:P,children:(0,s.jsx)(d.div,{dir:N,...u,ref:O,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})})});S.displayName=$;var E="ScrollAreaViewport",P=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:i,nonce:o,...l}=e,u=C(E,n),c=a(t,r.useRef(null),u.onViewportChange);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,s.jsx)(d.div,{"data-radix-scroll-area-viewport":"",...l,ref:c,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,s.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});P.displayName=E;var T="ScrollAreaScrollbar",R=r.forwardRef((e,t)=>
9{let{forceMount:n,...i}=e,o=C(T,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:l}=o,u="horizontal"===e.orientation;return r.useEffect(()=>(u?a(!0):l(!0),()=>{u?a(!1):l(!1)}),[u,a,l]),"hover"===o.type?(0,s.jsx)(A,{...i,ref:t,forceMount:n}):"scroll"===o.type?(0,s.jsx)(M,{...i,ref:t,forceMount:n}):"auto"===o.type?(0,s.jsx)(O,{...i,ref:t,forceMount:n}):"always"===o.type?(0,s.jsx)(N,{...i,ref:t}):null});R.displayName=T;var A=r.forwardRef((e,t)=>{let{forceMount:n,...i}=e,o=C(T,e.__scopeScrollArea),[a,l]=r.useState(!1);return r.useEffect(()=>{let e=o.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),l(!0)},r=()=>{t=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[o.scrollArea,o.scrollHideDelay]),(0,s.jsx)(f,{present:n||a,children:(0,s.jsx)(O,{"data-state":a?"visible":"hidden",...i,ref:t})})}),M=r.forwardRef((e,t)=>{var n,i;let{forceMount:o,...a}=e,l=C(T,e.__scopeScrollArea),u="horizontal"===e.orientation,d=Y(()=>h("SCROLL_END"),100),[c,h]=(n="hidden",i={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},r.useReducer((e,t)=>i[e][t]??e,n));return r.useEffect(()=>{if("idle"===c){let e=window.setTimeout(()=>h("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,l.scrollHideDelay,h]),r.useEffect(()=>{let e=l.viewport,t=u?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(h("SCROLL"),d()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[l.viewport,u,h,d]),(0,s.jsx)(f,{present:o||"hidden"!==c,children:(0,s.jsx)(N,{"data-state":"hidden"===c?"hidden":"visible",...a,ref:t,onPointerEnter:y(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:y(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),O=r.forwardRef((e,t)=>{let n=C(T,e.__scopeScrollArea),{forceMount:i,...o}=e,[a,l]=r.useState(!1),u="horizontal"===e.orientation,d=Y(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;l(u?e:t)}},10);return Z(n.viewport,d),Z(n.content,d),(0,s.jsx)(f,{present:i||a,children:(0,s.jsx)(N,{"data-state":a?"visible":"hidden",...o,ref:t})})}),N=r.forwardRef((e,t)=>{let{orientation:n="vertical",...i}=e,o=C(T,e.__scopeScrollArea),a=r.useRef(null),l=r.useRef(0),[u,d]=r.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=K(u.viewport,u.content),f={...i,sizes:u,onSizesChange:d,hasThumb:!!(c>0&&c<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:e=>l.current=e};function h(e,t){return function(e,t,n,r="ltr"){let i=H(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport;return X([a,s],"ltr"===r?[0,l]:[-1*l,0])(e)}(e,l.current,u,t)}return"horizontal"===n?(0,s.jsx)(I,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=q(o.viewport.scrollLeft,u,o.dir);a.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=h(e,o.dir))}}):"vertical"===n?(0,s.jsx)(k,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=q(o.viewport.scrollTop,u);a.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=h(e))}}):null}),I=r.forwardRef((e,t)=>{let{sizes:n,onSizesChange:i,...o}=e,l=C(T,e.__scopeScrollArea),[u,d]=r.useState(),c=r.useRef(null),f=a(t,c,l.onScrollbarXChange);return r.useEffect(()=>{c.current&&d(getComputedStyle(c.current))},[c]),(0,s.jsx)(L,{"data-orientation":"horizontal",...o,ref:f,sizes:n,style:{bottom:0,left:"rtl"===l.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===l.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":H(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(l.viewport){let r=l.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),function(e,t){return e>0&&e<t}(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&l.viewport&&u&&i({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:G(u.paddingLeft),paddingEnd:G(u.paddingRight)}})}})}),k=r.forwardRef((e,t)=>
9{let{sizes:n,onSizesChange:i,...o}=e,l=C(T,e.__scopeScrollArea),[u,d]=r.useState(),c=r.useRef(null),f=a(t,c,l.onScrollbarYChange);return r.useEffect(()=>{c.current&&d(getComputedStyle(c.current))},[c]),(0,s.jsx)(L,{"data-orientation":"vertical",...o,ref:f,sizes:n,style:{top:0,right:"ltr"===l.dir?0:void 0,left:"rtl"===l.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":H(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(l.viewport){let r=l.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),function(e,t){return e>0&&e<t}(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&l.viewport&&u&&i({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:G(u.paddingTop),paddingEnd:G(u.paddingBottom)}})}})}),[D,j]=b(T),L=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:i,hasThumb:o,onThumbChange:l,onThumbPointerUp:u,onThumbPointerDown:c,onThumbPositionChange:f,onDragScroll:h,onWheelScroll:m,onResize:v,...g}=e,$=C(T,n),[b,x]=r.useState(null),w=a(t,e=>x(e)),S=r.useRef(null),E=r.useRef(""),P=$.viewport,R=i.content-i.viewport,A=p(m),M=p(f),O=Y(v,10);function N(e){S.current&&h({x:e.clientX-S.current.left,y:e.clientY-S.current.top})}return r.useEffect(()=>{let e=e=>{let t=e.target;b?.contains(t)&&A(e,R)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[P,b,R,A]),r.useEffect(M,[i,M]),Z(b,O),Z($.content,O),(0,s.jsx)(D,{scope:n,scrollbar:b,hasThumb:o,onThumbChange:p(l),onThumbPointerUp:p(u),onThumbPositionChange:M,onThumbPointerDown:p(c),children:(0,s.jsx)(d.div,{...g,ref:w,style:{position:"absolute",...g.style},onPointerDown:y(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),S.current=b.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",$.viewport&&($.viewport.style.scrollBehavior="auto"),N(e))}),onPointerMove:y(e.onPointerMove,N),onPointerUp:y(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=E.current,$.viewport&&($.viewport.style.scrollBehavior=""),S.current=null})})})}),F="ScrollAreaThumb",V=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=j(F,e.__scopeScrollArea);return(0,s.jsx)(f,{present:n||i.hasThumb,children:(0,s.jsx)(B,{ref:t,...r})})}),B=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:i,...o}=e,l=C(F,n),u=j(F,n),{onThumbPositionChange:c}=u,f=a(t,e=>u.onThumbChange(e)),h=r.useRef(void 0),p=Y(()=>{h.current&&(h.current(),h.current=void 0)},100);return r.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{p(),h.current||(h.current=z(e,c),c())};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,p,c]),(0,s.jsx)(d.div,{"data-state":u.hasThumb?"visible":"hidden",...o,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:y(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;u.onThumbPointerDown({x:n,y:r})}),onPointerUp:y(e.onPointerUp,u.onThumbPointerUp)})});V.displayName=F;var W="ScrollAreaCorner",U=r.forwardRef((e,t)=>{let n=C(W,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,s.jsx)(_,{...e,ref:t}):null});U.displayName=W;var _=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,...i}=e,o=C(W,n),[a,l]=r.useState(0),[u,c]=r.useState(0),f=!!(a&&u);return Z(o.scrollbarX,()=>{let e=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(e),c(e)}),Z(o.scrollbarY,()=>{let e=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(e),l(e)}),f?(0,s.jsx)(d.div,{...i,ref:t,style:{width:a,height:u,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0,...e.style}}):null});function G(e){return e?parseInt(e,10):0}function K(e,t){let n=e/t;return isNaN(n)?0:n}function H(e){let t=K(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function q(e,t,n="ltr"){let r=H(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=(0,v.q)(e,"ltr"===n?[0,a]:[-1*a,0]);return X([0,a],[0,o-r])(s)}function X(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var z=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function Y(e,t){let n=p(e),i=r.useRef(0);return r.useEffect(()=>()=>window.clearTimeout(i.current),[]),r.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(n,t)},[n,t])}function Z(e,t){let n=p(t);c(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var J=S,Q=P,ee=U}
9,51414:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i,a:()=>o});let r={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},i={...r,position:"fixed",top:0,left:0},o={...r,position:"absolute"}},51502:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var r=n(3294),i=n(20442),o=n(71416),a=n(9221);let s=new Set([i.p,o.d]);function l(e,t){let n=(0,a.D)(e);return s.has(n)||(n=r.f),n.getAnimatableNone?n.getAnimatableNone(t):void 0}},51542:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});let r="data-"+(0,n(26868).I)("framerAppearId")},52089:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]])},52687:(e,t,n)=>{"use strict";n.d(t,{h:()=>f,q:()=>c});var r=n(35623),i=n(80016);let o=new Set,a=!1,s=!1,l=!1;function u(){if(s){let e=Array.from(o).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=(0,r.W9)(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}s=!1,a=!1,o.forEach(e=>e.complete(l)),o.clear()}function d(){o.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(s=!0)})}function c(){l=!0,d(),u(),l=!1}class f{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(o.add(this),a||(a=!0,i.Gt.read(d),i.Gt.resolveKeyframes(u))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),o.delete(this)}cancel(){"scheduled"===this.state&&(o.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}},52780:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(58710),i=n(75951);function o(e,t,n={}){let[a,s,l]=(0,i.V)(e,n);return a.forEach(e=>{let n,i=!1,o=!1,a=()=>{e.removeEventListener("pointerleave",d)},l=e=>{n&&(n(e),n=void 0),a()},u=e=>{i=!1,window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",u),o&&(o=!1,l(e))},d=e=>{if("touch"!==e.pointerType){if(i){o=!0;return}l(e)}};e.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||(0,r.D)())return;o=!1;let a=t(e,i);"function"==typeof a&&(n=a,e.addEventListener("pointerleave",d,s))},s),e.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",u,s),window.addEventListener("pointercancel",u,s)},s)}),l}},53825:(e,t,n)=>{"use strict";n.d(t,{K:()=>d});var r=n(44922),i=n(89243),o=n(43946),a=n(77268),s=n(19608),l=n(90578),u=n(66162);let d=r.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,d=(0,a.Ee)(),c=(0,i.P)(d,l.T.mounted),f=(0,i.P)(d,l.T.forceMounted);return c||n||f?(0,u.jsx)(s.P.Provider,{value:n,children:(0,u.jsx)(o.XF,{ref:t,...r})}):null})},54479:(e,t,n)=>{"use strict";function r(e){return"function"==typeof e&&"applyToOptions"in e}n.d(t,{W:()=>r})},54668:(e,t,n)=>{"use strict";n.d(t,{G:()=>function e(t,n,o,a){if("function"==typeof t){s.bt.current=[],t();let e=d(s.bt.current,t);return s.bt.current=void 0,e}if(void 0!==o&&!Array.isArray(o)&&"function"!=typeof n){var l=t,u=n,f=o,h=a;let r=(0,i.M)(()=>Object.keys(f)),s=(0,i.M)(()=>({}));for(let t of r)s[t]=e(l,u,f[t],h);return s}let p="function"==typeof n?n:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,i=e[0+n],o=e[1+n],a=e[2+n],s=e[3+n],l=(0,r.G)(o,a,s);return t?l(i):l}(n,o,a),m=Array.isArray(t)?c(t,p):c([t],([e])=>p(e)),v=Array.isArray(t)?void 0:t.accelerate;return v&&!v.isTransformed&&"function"!=typeof n&&Array.isArray(o)&&a?.clamp!==!1&&(m.accelerate={...v,times:n,keyframes:o,isTransformed:!0,...a?.ease?{ease:a.ease}:{}}),m}});var r=n(38716),i=n(55674),o=n(80016),a=n(9100),s=n(18917),l=n(44922),u=n(79505);function d(e,t){let n=function(e){let t=(0,i.M)(()=>(0,s.OQ)(e)),{isStatic:n}=(0,l.useContext)(u.Q);if(n){let[,n]=(0,l.useState)(e);(0,l.useEffect)(()=>t.on("change",n),[])}return t}(t()),r=()=>n.set(t());return r(),(0,a.E)(()=>{let t=()=>o.Gt.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>
9{n.forEach(e=>e()),(0,o.WG)(r)}}),n}function c(e,t){let n=(0,i.M)(()=>[]);return d(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}},54739:(e,t,n)=>{"use strict";n.d(t,{mk:()=>a,HH:()=>o,ZV:()=>i,dc:()=>s});let r=function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e}({}),i={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},o={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},a={disabled:!1,...o},s={valid:e=>null===e?null:e?{[r.valid]:""}:{[r.invalid]:""}}},55575:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var r=n(25960);function i(e){return(0,r.G)(e)&&"ownerSVGElement"in e}},55674:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(44922);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},56303:(e,t,n)=>{"use strict";n.d(t,{E:()=>o,Z:()=>a});var r=n(43351),i=n(59166);class o{static create(){return new o}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}function a(){let e=(0,r.j)(o.create).current;return(0,i.y)(e.disposeEffect),e}},56876:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});let r=e=>Math.round(1e5*e)/1e5},56904:()=>{},57094:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});let r=e=>e},57421:()=>{},58158:()=>{},58439:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var r=n(34015);class i{constructor(){this.subscriptions=[]}add(e){return(0,r.Kq)(this.subscriptions,e),()=>(0,r.Ai)(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},58524:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r={ext:"ext.",country:"Paese del numero di telefono",phone:"Telefono",AC:"Ascension Island",AD:"Andorra",AE:"Emirati Arabi Uniti",AF:"Afghanistan",AG:"Antigua e Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antartide",AR:"Argentina",AS:"Samoa Americane",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Isole \xc5land",AZ:"Azerbaigian",BA:"Bosnia-Erzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgio",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"San Bartolomeo",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia, stato plurinazionale di",BQ:"Bonaire, Sint Eustatius e Saba",BR:"Brasile",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Bielorussia",BZ:"Belize",CA:"Canada",CC:"Isole Cocos (Keeling)",CD:"Congo, Repubblica Democratica del",CF:"Repubblica Centrafricana",CG:"Congo",CH:"Svizzera",CI:"Costa d'Avorio",CK:"Cook Islands",CL:"Cile",CM:"Camerun",CN:"Cina",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Capo Verde",CW:"Cura\xe7ao",CX:"Isola di Natale",CY:"Cipro",CZ:"Repubblica Ceca",DE:"Germania",DJ:"Gibuti",DK:"Danimarca",DM:"Dominica",DO:"Repubblica Dominicana",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egitto",EH:"Sahara Occidentale",ER:"Eritrea",ES:"Spagna",ET:"Etiopia",FI:"Finlandia",FJ:"Fiji",FK:"Isole Falkland (Malvinas)",FM:"Micronesia, Stati Federati di",FO:"Isole Faroe",FR:"Francia",GA:"Gabon",GB:"Regno Unito",GD:"Grenada",GE:"Georgia",GF:"Guiana Francese",GG:"Guernsey",GH:"Ghana",GI:"Gibilterra",GL:"Groenlandia",GM:"Gambia",GN:"Guinea",GP:"Guadalupa",GQ:"Guinea Equatoriale",GR:"Grecia",GS:"Georgia del Sud e le isole Sandwich del Sud",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island e McDonald Islands",HN:"Honduras",HR:"Croazia",HT:"Haiti",HU:"Ungheria",ID:"Indonesia",IE:"Irlanda",IL:"Israele",IM:"Isola di Man",IN:"India",IO:"Territorio Britannico dell'Oceano Indiano",IQ:"Iraq",IR:"Iran, Repubblica Islamica dell'Iran",IS:"Islanda",IT:"Italia",JE:"Maglia",JM:"Giamaica",JO:"Jordan",JP:"Giappone",KE:"Kenya",KG:"Kirghizistan",KH:"
9Cambogia",KI:"Kiribati",KM:"Comore",KN:"Saint Kitts e Nevis",KP:"Corea, Repubblica Democratica Popolare di",KR:"Corea, Repubblica di",KW:"Kuwait",KY:"Isole Cayman",KZ:"Kazakistan",LA:"Repubblica Democratica Popolare del Laos",LB:"Libano",LC:"Santa Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lituania",LU:"Lussemburgo",LV:"Lettonia",LY:"Giamahiriya araba libica",MA:"Marocco",MC:"Monaco",MD:"Moldavia",ME:"Montenegro",MF:"Saint Martin (parte francese)",MG:"Madagascar",MH:"Isole Marshall",MK:"Macedonia, l'ex Repubblica Jugoslava di",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Marianne settentrionali",MQ:"Martinica",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldive",MW:"Malawi",MX:"Messico",MY:"Malesia",MZ:"Mozambico",NA:"Namibia",NC:"Nuova Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Paesi Bassi",NO:"Norvegia",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"Nuova Zelanda",OM:"Oman",PA:"Panama",PE:"Per\xf9",PF:"Polinesia Francese",PG:"Papua Nuova Guinea",PH:"Filippine",PK:"Pakistan",PL:"Polonia",PM:"Saint Pierre e Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Territorio palestinese occupato",PT:"Portogallo",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Riunione",RO:"Romania",RS:"Serbia",RU:"Federazione Russa",RW:"Rwanda",SA:"Arabia Saudita",SB:"Isole Salomone",SC:"Seychelles",SD:"Sudan",SE:"Svezia",SG:"Singapore",SH:"Santa Elena, Ascensione e Tristan Da Cunha",SI:"Slovenia",SJ:"Svalbard e Jan Mayen",SK:"Slovacchia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"Sud Sudan",ST:"Sao Tome e Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Repubblica Araba Siriana",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Isole Turks e Caicos",TD:"Chad",TF:"Territori francesi del sud",TG:"Togo",TH:"Thailandia",TJ:"Tagikistan",TK:"Tokelau",TL:"Timor Est",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turchia",TT:"Trinidad e Tobago",TV:"Tuvalu",TW:"Taiwan, provincia di Cina",TZ:"Tanzania, Repubblica Unita di",UA:"Ucraina",UG:"Uganda",UM:"Isole Minori Esterne degli Stati Uniti",US:"Stati Uniti",UY:"Uruguay",UZ:"Uzbekistan",VA:"Santa Sede (Stato della Citt\xe0 del Vaticano)",VC:"Saint Vincent e le Grenadine",VE:"Venezuela",VG:"Isole Vergini Britanniche",VI:"Isole Vergini Americane",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis e Futuna",WS:"Samoa",XA:"Abkhazia",XK:"Kosovo",XO:"South Ossetia",YE:"Yemen",YT:"Mayotte",ZA:"Sudafrica",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"Internazionale"}},58710:(e,t,n)=>{"use strict";n.d(t,{D:()=>i,I:()=>r});let r={x:!1,y:!1};function i(){return r.x||r.y}},59060:(e,t,n)=>{"use strict";n.d(t,{BX:()=>k,vK:()=>I,lr:()=>N});var r=n(24160),i=n(76129),o=n(18469),a=n(58439),s=n(52687),l=n(82778),u=n(96351),d=n(84332),c=n(2162),f=n(81316),h=n(18917),p=n(3294),m=n(51502),v=n(24275),g=n(21333),y=n(42803);let $=[...g.T,v.y,p.f],b=e=>$.find((0,y.w)(e));var x=n(65728);let w=new WeakMap;var C=n(29155),S=n(59945);let E={current:null},P={current:!1},T="undefined"!=typeof window;var R=n(87717),A=n(80016);let M=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],O={};function N(e){O=e}function I(){return O}class k{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=s.h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=c.k.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,A.Gt.render(this.render,!1,!0))};let{latestValues:u,renderState:d}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=t.initial?{...u}:{},this.renderState=d,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=(0,C.e)(t),this.isVariantNode=(0,C.O)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:f,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in h){let t=h[e];void 0!==u[e]&&(0,x.S)(t)&&t.set(u[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,w.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
9h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(P.current||function(){if(P.current=!0,T)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>E.current=e.matches;e.addEventListener("change",t),t()}else E.current=!1}(),this.shouldReduceMotion=E.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,A.WG)(this.notifyUpdate),(0,A.WG)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&u.M.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:i,times:o,ease:a,duration:s}=t.accelerate,u=new l.m({element:this.current,name:e,keyframes:i,times:o,ease:a,duration:(0,r.f)(s)}),d=n(u);this.valueSubscriptions.set(e,()=>{d(),u.cancel()});return}let i=S.f.has(e);i&&this.onBindTransform&&this.onBindTransform();let o=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&A.Gt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{o(),n&&n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in O){let t=O[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,f.ge)()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<M.length;t++){let n=M[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if((0,x.S)(i))e.addValue(r,i);else if((0,x.S)(o))e.addValue(r,(0,h.OQ)(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,(0,h.OQ)(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=(0,h.OQ)(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&((0,i.i)(n)||(0,o.$)(n))?n=p
9arseFloat(n):!b(n)&&p.f.test(t)&&(n=(0,m.J)(e,t)),this.setBaseTarget(e,(0,x.S)(n)?n.get():n)),(0,x.S)(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=(0,R.a)(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||(0,x.S)(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new a.v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){d.k.render(this.render)}}},59166:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(44922);let i=[];function o(e){r.useEffect(e,i)}},59650:()=>{},59945:(e,t,n)=>{"use strict";n.d(t,{U:()=>r,f:()=>i});let r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set([...r,"pathRotation"])},60829:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},61108:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});let r=(0,n(44922).createContext)({})},61184:()=>{},61862:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});let r=(0,n(44922).createContext)({})},61869:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});let r=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},61992:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});let r={}},62028:(e,t,n)=>{"use strict";function r(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}n.d(t,{k:()=>r})},62457:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=o(t,n));return t}(n)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=(function(){return i}).apply(t,[]))||(e.exports=n)}()},62544:()=>{},63038:()=>{},63932:()=>{},65300:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});let r=e=>e.startsWith("--");function i(e,t,n){r(t)?e.style.setProperty(t,n):e.style[t]=n}},65427:(e,t,n)=>{"use strict";n.d(t,{P:()=>e7});var r=n(95713),i=n(33599),o=n(44922);let a=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function s(e){if("string"!=typeof e||e.includes("-"));else if(a.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var l=n(66162),u=n(61108);let d=(0,o.createContext)({strict:!1});var c=n(1115);let f=(0,o.createContext)({});var h=n(29155),p=n(14439);function m(e){return Array.isArray(e)?e.join(" "):e}var v=n(65728),g=n(32375),y=n(31977);let $=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function b(e,t,n){for(let r in t)(0,v.S)(t[r])||(0,g.zK)(r,n)||(e[r]=t[r])}var x=n(51131),w=n(20889);let C=()=>({...$(),attrs:{}}),S=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function E(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||S.has(e)}let P=e=>!E(e);try{!function(e){"function"==typeof e&&(P=t=>t.startsWith("on")?!E(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}var T=n(448),R=n(98212),A=n(9308),M=n(87717),O=n(92886),N=n(37292);let I=e=>(t,n)=>{let r=(0,o.useContext)(f),i=(0,o.useContext)(O.t),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=(0,R.u)(o[e]);let{initial:a,animate:s}=e,l=(0,h.e)(e),u=(0,h.O)(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let d=!!n&&!1===n.initial,c=(d=d||!1===a)?s:a;if(c&&"boolean"!=typeof c&&!(0,A.N)(c)){let t=Array.isArray(c)?c:[c];for(let n=0;n<t.length;n++){let r=(0,M.a)(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?a():(0,N.M)(a)},k=I({scrapeMotionValuesFromProps:T.x,createRenderState:$}),D=I({scrapeMotionValuesFromProps:n(88341).x,createRenderState:C});var j=n(59060);let L={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},F=!1;function V(){return!function(){if(F)return;let e={};for(let t in L)e[t]={isEnabled:e=>L[t].some(t=>!!e[t])};(0,j.lr)(e),F=!0}(),(0,j.vK)()}let B=Symbol.for("motionComponentSymbol");var W=n(51542);let U=(0,o.createContext)({});function _(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var G=n(25689);function K(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&function(e){let t=V();for(let n in e)t[n]={...t[n],...e[n]};(0,j.lr)(t)}(r);let a=n?"svg"===n:s(e),g=a?D:k;function S(n,r){let S,T={...(0,o.useContext)(c.Q),...n,layoutId:function({layoutId:e}){let t=(0,o.useContext)(u.L).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:R}=T,A=function(e){let{initial:t,animate:n}=function(e,t){if((0,h.e)(e)){let{initial:t,animate:n}=e;return{initial:!1===t||(0,p.w)(t)?t:void 0,animate:(0,p.w)(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(f));return(0,o.useMemo)(()=>({initial:t,animate:n}),[m(t),m(n)])}(n),M=g(n,R);if(!R&&"undefined"!=typeof window){var N,I;N=0,I=0,(0,o.useContext)(d).strict;let t=function(e){let{drag:t,layout:n}=V();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
9(T);S=t.MeasureLayout,A.visualElement=function(e,t,n,r,i,a){let{visualElement:s}=(0,o.useContext)(f),l=(0,o.useContext)(d),u=(0,o.useContext)(O.t),h=(0,o.useContext)(c.Q),p=h.reducedMotion,m=h.skipAnimations,v=(0,o.useRef)(null),g=(0,o.useRef)(!1);r=r||l.renderer,!v.current&&r&&(v.current=r(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:p,skipAnimations:m,isSVG:a}),g.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let y=v.current,$=(0,o.useContext)(U);y&&!y.projection&&i&&("html"===y.type||"svg"===y.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:d,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&_(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:d})}(v.current,n,i,$);let b=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{y&&b.current&&y.update(n,u)});let x=n[W.n],w=(0,o.useRef)(!!x&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return(0,G.E)(()=>{g.current=!0,y&&(b.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),w.current&&y.animationState&&y.animationState.animateChanges())}),(0,o.useEffect)(()=>{y&&(!w.current&&y.animationState&&y.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),w.current=!1),y.enteringChildren=void 0)}),y}(e,M,T,i,t.ProjectionNode,a)}return(0,l.jsxs)(f.Provider,{value:A,children:[S&&A.visualElement?(0,l.jsx)(S,{visualElement:A.visualElement,...T}):null,function(e,t,n,{latestValues:r},i,a=!1,l){let u=(l??s(e)?function(e,t,n,r){let i=(0,o.useMemo)(()=>{let n=C();return(0,x.B)(n,t,(0,w.n)(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};b(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return b(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,o.useMemo)(()=>{let n=$();return(0,y.O)(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(t,r,i,e),d=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&!(0,v.S)(e[i])&&(P(i)||!0===n&&E(i)||!t&&!E(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,a),c=e!==o.Fragment?{...d,...u,ref:n}:{},{children:f}=t,h=(0,o.useMemo)(()=>(0,v.S)(f)?f.get():f,[f]);return(0,o.createElement)(e,{...c,children:h})}(e,n,function(e,t,n){let r=(0,o.useRef)(n);(0,o.useInsertionEffect)(()=>{r.current=n});let i=(0,o.useRef)(null);return(0,o.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let o=r.current;if("function"==typeof o)if(n){let e=o(n);"function"==typeof e&&(i.current=e)}else i.current?(i.current(),i.current=null):o(n);else o&&(o.current=n)},[t])}(M,A.visualElement,r),M,R,t,a)]})}S.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let T=(0,o.forwardRef)(S);return T[B]=e,T}var H=n(77276),q=n(1502);class X extends H.X{constructor(e){super(e),e.animationState||(e.animationState=(0,q.L)(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();(0,A.N)(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}var z=n(84161);let Y=0;class Z extends H.X{constructor(){super(...arguments),this.id=Y++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=(0,z.K)(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
9{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}var J=n(57094),Q=n(81316),ee=n(14258),et=n(3184),en=n(89409),er=n(73814),ei=n(80016),eo=n(13027),ea=n(41487),es=n(33898),el=n(48555),eu=n(13995),ed=n(20235),ec=n(62028),ef=n(71331),eh=n(92383),ep=n(34087);function em(e){return{point:{x:e.pageX,y:e.pageY}}}let ev=e=>t=>(0,ep.M)(t)&&e(t,em(t));function eg(e,t,n,r){return(0,ec.k)(e,t,ev(n),r)}let ey=({current:e})=>e?e.ownerDocument.defaultView:null;var e$=n(97830),eb=n(24160);let ex=(e,t)=>Math.abs(e-t),ew=new Set(["auto","scroll"]);class eC{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=eS(this.lastRawMoveEventInfo,this.transformPagePoint));let e=eP(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(ex(e.x,t.x)**2+ex(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=ei.uv;this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=eS(t,this.transformPagePoint),ei.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=eP("pointercancel"===e.type?this.lastMoveEventInfo:eS(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!(0,ep.M)(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;let s=eS(em(e),this.transformPagePoint),{point:l}=s,{timestamp:u}=ei.uv;this.history=[{...l,timestamp:u}];let{onSessionStart:d}=t;d&&d(e,eP(s,this.history));let c={passive:!0,capture:!0};this.removeListeners=(0,e$.F)(eg(this.contextWindow,"pointermove",this.handlePointerMove,c),eg(this.contextWindow,"pointerup",this.handlePointerUp,c),eg(this.contextWindow,"pointercancel",this.handlePointerUp,c)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ew.has(e.overflowX)||ew.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),ei.Gt.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,ei.WG)(this.updatePoint)}}function eS(e,t){return t?{point:t(e.point)}:e}function eE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eP({point:e},t){return{point:e,delta:eE(e,eT(t)),offset:eE(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=eT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>(0,eb.f)(.1)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>2*(0,eb.f)(t)&&(r=e[1]);let o=(0,eb.X)(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function eT(e){return e[e.length-1]}var eR=n(85395),eA=n(31749);function eM(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function eO(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}
9function eN(e,t,n){return{min:eI(e,t),max:eI(e,n)}}function eI(e,t){return"number"==typeof e?e:e[t]||0}let ek=new WeakMap;class eD{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,Q.ge)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:i}=this.getProps();this.panSession=new eC(e,{onSessionStart:e=>{t&&this.snapToCursor(em(e).point),this.stopAnimation()},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,ee.W)(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),(0,et.X)(e=>{let t=this.getAxisMotionValue(e).get()||0;if(en.KN.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=(0,er.CQ)(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&ei.Gt.update(()=>i(e,t),!1,!0),(0,eo.g)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&ei.Gt.update(()=>o(e,t),!1,!0)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,distanceThreshold:n,contextWindow:ey(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&ei.Gt.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!eL(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?(0,eu.k)(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?(0,eu.k)(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&_(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:eM(e.x,n,i),y:eM(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:eN(e,"left","right"),y:eN(e,"top","bottom")}}(t),r!==this.constraints&&!_(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&(0,et.X)(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_(t))return!1;let r=t.current;(0,eh.V)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let o=(0,ea.L)(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:eO(e.x,o.x),y:eO(e.y,o.y)});if(n){let e=n((0,es.pA)(a));this.hasMutatedConstraints=!!e,e&&(a=(0,es.FY)(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all((0,et.X)(a=>{if(!eL(a,t,this.currentDirection))return;let l=s&&s[a]||{};(!0===o||o===a)&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return(0,eo.g)(this.visualElement,e),n.start((0,el.f)(e,n,0,t,this.visualElement,!1))}stopAnimation(){(0,et.X)(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){(0,et.X)(t=>{let{drag:n}=this.getProps();if(!eL(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t],a=i.get()||0;i.set(e[t]-(0,eu.k)(n,o,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!_(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};(0,et.X)(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=(0,er.CQ)(e),i=(0,er.CQ)(t);return i>r?n=(0,eR.q)(t.min,t.max-r,e.min):r>i&&(n=(0,eR.q)(e.min,e.max-i,t.min)),(0,eA.q)(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),(0,et.X)(t=>{if(!eL(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set((0,eu.k)(i,o,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;ek.set(this.visualElement,this);let t=this.visualElement.current,n=eg(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,o=i!==t&&(0,ed.a)(i);n&&r&&!o&&this.start(e)}),r=()=>{let{dragConstraints:n}=this.getProps();_(n)&&n.current&&(this.constraints=this.resolveRefConstraints(),e||(e=function(e,t,n){let r=(0,ef.X)(e,ej(n)),i=(0,ef.X)(t,ej(n));return()=>{r(),i()}}(t,n.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ei.Gt.read(r);let a=(0,ec.k)(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&((0,et.X)(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),s&&s(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function ej(e){let t=!0;return()=>{if(t){t=!1;return}e()}}
9function eL(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class eF extends H.X{constructor(e){super(e),this.removeGroupControls=J.l,this.removeListeners=J.l,this.controls=new eD(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||J.l}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let eV=e=>(t,n)=>{e&&ei.Gt.update(()=>e(t,n),!1,!0)};class eB extends H.X{constructor(){super(...arguments),this.removePointerDownListener=J.l}onPointerDown(e){this.session=new eC(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ey(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:eV(e),onStart:eV(t),onMove:eV(n),onEnd:(e,t)=>{delete this.session,r&&ei.Gt.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=eg(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var eW=n(22259),eU=n(84332),e_=n(29313);let eG=!1;class eK extends o.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),eG&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),eW.w.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),eG=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||ei.Gt.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),eU.k.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;eG=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function eH(e){let[t,n]=(0,e_.xQ)(),r=(0,o.useContext)(u.L);return(0,l.jsx)(eK,{...e,layoutGroup:r,switchLayoutGroup:(0,o.useContext)(U),isPresent:t,safeToRemove:n})}var eq=n(41921);let eX={pan:{Feature:eB},drag:{Feature:eF,ProjectionNode:eq.P,MeasureLayout:eH}};var ez=n(52780);function eY(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&ei.Gt.postRender(()=>i(t,em(t)))}class eZ extends H.X{mount(){let{current:e}=this.node;e&&(this.unmount=(0,ez.P)(e,(e,t)=>(eY(this.node,t,"Start"),e=>eY(this.node,e,"End"))))}unmount(){}}class eJ extends H.X{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,e$.F)((0,ec.k)(this.node.current,"focus",()=>this.onFocus()),(0,ec.k)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var eQ=n(15413);function e0(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&ei.Gt.postRender(()=>i(t,em(t)))}class e1 extends H.X{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;
9this.unmount=(0,eQ.c)(e,(e,t)=>(e0(this.node,t,"Start"),(e,{success:t})=>e0(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}let e2=new WeakMap,e3=new WeakMap,e4=e=>{let t=e2.get(e.target);t&&t(e)},e9=e=>{e.forEach(e4)},e8={some:0,all:1};class e5 extends H.X{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:e8[r]};this.stopObserver=function(e,t,n){let r=function({root:e,...t}){let n=e||document;e3.has(n)||e3.set(n,{});let r=e3.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(e9,{root:e,...t})),r[i]}(t);return e2.set(e,n),r.observe(e),()=>{e2.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let e6={layout:{ProjectionNode:eq.P,MeasureLayout:eH}},e7=function(e,t){if("undefined"==typeof Proxy)return K;let n=new Map,r=(n,r)=>K(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,K(o,void 0,e,t)),n.get(o))})}({animation:{Feature:X},exit:{Feature:Z},inView:{Feature:e5},tap:{Feature:e1},focus:{Feature:eJ},hover:{Feature:eZ},...eX,...e6},(e,t)=>t.isSVG??s(e)?new r.l(t):new i.M(t,{allowProjection:e!==o.Fragment}))},65484:()=>{},65728:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});let r=e=>!!(e&&e.getVelocity)},65819:(e,t,n)=>{"use strict";function r(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}n.d(t,{K:()=>r})},66680:(e,t,n)=>{"use strict";n.d(t,{L:()=>q});var r=n(18917),i=n(84332),o=n(27969),a=n(92383),s=n(44922),l=n(57094),u=n(80016);function d(e,t){let n,r=()=>{let{currentTime:r}=t,i=(null===r?0:r.value)/100;n!==i&&e(i),n=i};return u.Gt.preUpdate(r,!0),()=>(0,u.WG)(r)}function c(e){return"undefined"!=typeof window&&(e?(0,o.d)():(0,o.J)())}var f=n(71331),h=n(85395),p=n(67448);let m=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),v=()=>({time:0,x:m(),y:m()}),g={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function y(e,t,n,r){let i=n[t],{length:o,position:a}=g[t],s=i.current,l=n.time;i.current=Math.abs(e[`scroll${a}`]),i.scrollLength=e[`scroll${o}`]-e[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=(0,h.q)(0,i.scrollLength,i.current);let u=r-l;i.velocity=u>50?0:(0,p.f)(i.current-s,u)}var $=n(38716),b=n(39335),x=n(31749),w=n(20648);let C={start:0,center:.5,end:1};function S(e,t,n=0){let r=0;if(e in C&&(e=C[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?r=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?r=t/100*document.documentElement.clientWidth:e.endsWith("vh")?r=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(r=t*e),n+r}let E=[0,0],P={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},T={x:0,y:0},R=new WeakMap,A=new WeakMap,M=new WeakMap,O=new WeakMap,N=new WeakMap,I=e=>e===document.scrollingElement?window:e;function k(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return l.l;let i=M.get(t);i||(i=new Set,M.set(t,i));let o=function(e,t,n,r={}){return{measure:t=>{!function(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.c
9ontainerLength=e.clientHeight}(e,r.target,n),y(e,"x",n,t),y(e,"y",n,t),n.time=t,(r.offset||r.target)&&function(e,t,n){let{offset:r=P.All}=n,{target:i=e,axis:o="y"}=n,a="y"===o?"height":"width",s=i!==e?function(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if((0,w.s)(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if("svg"===r.tagName){let e=r.getBoundingClientRect(),t=(r=r.parentElement).getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,o=r.parentNode;for(;!i;)"svg"===o.tagName&&(i=o),o=r.parentNode;r=i}else break;return n}(i,e):T,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in i&&"svg"!==i.tagName?i.getBBox():{width:i.clientWidth,height:i.clientHeight},u={width:e.clientWidth,height:e.clientHeight};t[o].offset.length=0;let d=!t[o].interpolate,c=r.length;for(let e=0;e<c;e++){let n=function(e,t,n,r){let i=Array.isArray(e)?e:E,o=0,a=0;return"number"==typeof e?i=[e,e]:"string"==typeof e&&(i=(e=e.trim()).includes(" ")?e.split(" "):[e,C[e]?e:"0"]),(o=S(i[0],n,r))-S(i[1],t)}(r[e],u[a],l[a],s[o]);d||n===t[o].interpolatorOffsets[e]||(d=!0),t[o].offset[e]=n}d&&(t[o].interpolate=(0,$.G)(t[o].offset,(0,b.Z)(r),{clamp:!1}),t[o].interpolatorOffsets=[...t[o].offset]),t[o].progress=(0,x.q)(0,1,t[o].interpolate(t[o].current))}(e,n,r)},notify:()=>t(n)}}(t,e,v(),r);if(i.add(o),!R.has(t)){let e=()=>{for(let e of i)e.measure(u.uv.timestamp);u.Gt.preUpdate(n)},n=()=>{for(let e of i)e.notify()},r=()=>u.Gt.read(e);R.set(t,r);let o=I(t);window.addEventListener("resize",r),t!==document.documentElement&&A.set(t,(0,f.X)(t,r)),o.addEventListener("scroll",r),r()}if(n&&!N.has(t)){let e=R.get(t),n={width:t.scrollWidth,height:t.scrollHeight};O.set(t,n);let r=u.Gt.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);N.set(t,r)}let a=R.get(t);return u.Gt.read(a,!1,!0),()=>{(0,u.WG)(a);let e=M.get(t);if(!e||(e.delete(o),e.size))return;let n=R.get(t);R.delete(t),n&&(I(t).removeEventListener("scroll",n),A.get(t)?.(),window.removeEventListener("resize",n));let r=N.get(t);r&&((0,u.WG)(r),N.delete(t)),O.delete(t)}}let D=[[P.Enter,"entry"],[P.Exit,"exit"],[P.Any,"cover"],[P.All,"contain"]],j={start:0,end:1};function L(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[t,n]of D)if(function(e,t){let n=function(e){if(2!==e.length)return;let t=[];for(let n of e)if(Array.isArray(n))t.push(n);else{if("string"!=typeof n)return;let e=function(e){let t=e.trim().split(/\s+/);if(2!==t.length)return;let n=j[t[0]],r=j[t[1]];if(void 0!==n&&void 0!==r)return[n,r]}(n);if(!e)return;t.push(e)}return t}(e);if(!n)return!1;for(let e=0;e<2;e++){let r=n[e],i=t[e];if(r[0]!==i[0]||r[1]!==i[1])return!1}return!0}(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}let F=new Map;function V(e){let t={value:0},n=k(n=>{t.value=100*n[e.axis].progress},e);return{currentTime:t,cancel:n}}function B({source:e,container:t,...n}){let{axis:r}=n;e&&(t=e);let i=F.get(t);i||(i=new Map,F.set(t,i));let o=n.target??"self",a=i.get(o);a||(a={},i.set(o,a));let s=r+(n.offset??[]).join(",");return a[s]||(n.target&&c(n.target)?L(n.offset)?a[s]=new ViewTimeline({subject:n.target,axis:r}):a[s]=V({container:t,...n}):c()?a[s]=new ScrollTimeline({source:t,axis:r}):a[s]=V({container:t,...n})),a[s]}function W(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return l.l;let i={axis:t,container:n,...r};return"function"==typeof e?function(e,t){return 2===e.length||t&&(t.target||t.offset)?k(n=>{e(n[t.axis].progress,n)},t):d(e,B(t))}(e,i):function(e,t){let n=B(t),r=t.target?L(t.offset):void 0,i=t.target?c(t.target)&&!!r:c();return e.attachTimeline({timeline:i?n:void 0,...r&&i&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:e=>(e.pause(),d(t=>{e.time=e.iterationDuration*t},n))})}(e,i)}var U=n(55674),_=n(9100);let G=()=>({scrollX:(0,r.OQ)(0),scrollY:(0,r.OQ)(0),scrollXProgress:(0,r.OQ)(0),scrollYProgress:(0,r.OQ)(0)}),K=e=>!!e&&!e.current;function H(e,t,n,r){return{factory:o=>{let a,s=()=>{if(K(n)||K(r))return void i.k.read(s);a=W(o,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return i.k.read(s),()=>{(0,i.c)(s),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function q({container:e,target:t,...n}={}){var r;let l=(0,U.M)(G);r=n.offset,"undefined"!=typeof window&&(t?(0,o.d)()&&!!L(r):(0,o.J)())&&(l.scrollXProgress.accelerate=H("x",n,e,t),l.scrollYProgress.accelerate=H("y",n,e,t));let u=(0,s.useRef)(null),d=(0,s.useRef)(!1),c=(0,s.useCallback)(()=>(u.current=W((e,{x:t,y:n})=>{l.scrollX.set(t.current),l.scrollXProgress.set(t.progress),l.scrollY.set(n.current),l.scrollYProgress.set(n.progress)}
9,{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{u.current?.()}),[e,t,JSON.stringify(n.offset)]);return(0,_.E)(()=>{if(d.current=!1,!(K(e)||K(t)))return c();d.current=!0},[c]),(0,s.useEffect)(()=>{let n;if(!d.current)return;let r=()=>{let r=K(e),i=K(t);(0,a.V)(!r,"Container ref is defined but not hydrated","use-scroll-ref"),(0,a.V)(!i,"Target ref is defined but not hydrated","use-scroll-ref"),r||i||(n=c())};return i.k.read(r),()=>{(0,i.c)(r),n?.()}},[c]),l}},67236:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},67448:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});let r=(e,t)=>t?1e3/t*e:0},67954:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r=n(44922);let i={...n.t(r,2)},o=0,a=i.useId;function s(e,t){if(void 0!==a){let n=a();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){let[n,i]=r.useState(e),a=e||n;return r.useEffect(()=>{null==n&&(o+=1,i(`${t}-${o}`))},[n,t]),a}(e,t)}},68202:(e,t,n)=>{"use strict";n.d(t,{P:()=>$});var r=n(15860),i=n(67954),o=n(43351),a=n(38138),s=n(47736),l=n(44810),u=n(44922),d=n(90732),c=n(89243),f=n(80464),h=n(93858);class p extends d.i{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){u.useDebugValue(e),(0,a.g)(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;(0,a.g)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);(0,a.g)(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){u.useDebugValue(e);let n=void 0!==t;(0,a.g)(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,t,n,r){return u.useDebugValue(e),(0,c.P)(this,this.selectors[e],t,n,r)}useContextCallback(e,t){u.useDebugValue(e);let n=(0,f.K)(t??h.tE);this.context[e]=n}useStateSetter(e){let t=u.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}}var m=n(41161);let v={open:(0,l.M)(e=>e.open),transitionStatus:(0,l.M)(e=>e.transitionStatus),domReferenceElement:(0,l.M)(e=>e.domReferenceElement),referenceElement:(0,l.M)(e=>e.positionReference??e.referenceElement),floatingElement:(0,l.M)(e=>e.floatingElement),floatingId:(0,l.M)(e=>e.floatingId)};class g extends p{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...o}=e;super({...o,positionReference:o.referenceElement,domReferenceElement:o.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:function(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}(),nested:n,triggerElements:i},v),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,m.Ev)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>
9{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{if(this.syncOnly)return void this.context.onOpenChange?.(e,t);this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}class y{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(void 0!==n&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function $(e){let{open:t=!1,onOpenChange:n,elements:l={}}=e,u=(0,i.B)(),d=null!=(0,s.R1)(),c=(0,o.j)(()=>new g({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:l.reference??null,floatingElement:l.floating??null,triggerElements:new y,floatingId:u,syncOnly:!1,nested:d})).current;return(0,a.g)(()=>{let e={open:t,floatingId:u};void 0!==l.reference&&(e.referenceElement=l.reference,e.domReferenceElement=(0,r.vq)(l.reference)?l.reference:null),void 0!==l.floating&&(e.floatingElement=l.floating),c.update(e)},[t,u,l.reference,l.floating,c]),c.context.onOpenChange=n,c.context.nested=d,c}},68261:(e,t,n)=>{"use strict";n.d(t,{OU:()=>u,Ql:()=>d,Ww:()=>h,hq:()=>o,o4:()=>l});var r=n(13995),i=n(40644);function o(e,t,n){return n+t*(e-n)}function a(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function s(e,t=0,n=1,r,i){e.min=a(e.min,t,n,r,i),e.max=a(e.max,t,n,r,i)}function l(e,{x:t,y:n}){s(e.x,t.translate,t.scale,t.originPoint),s(e.y,n.translate,n.scale,n.originPoint)}function u(e,t,n,r=!1){let o,a,s=n.length;if(s){t.x=t.y=1;for(let u=0;u<s;u++){a=(o=n[u]).projectionDelta;let{visualElement:s}=o.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(d(e.x,-o.scroll.offset.x),d(e.y,-o.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,l(e,a)),r&&(0,i.HD)(o.latestValues)&&h(e,o.latestValues,o.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}function d(e,t){e.min+=t,e.max+=t}function c(e,t,n,i,o=.5){let a=(0,r.k)(e.min,e.max,o);s(e,t,n,a,i)}function f(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function h(e,t,n){let r=n??e;c(e.x,f(t.x,r.x),t.scaleX,t.scale,t.originX),c(e.y,f(t.y,r.y),t.scaleY,t.scale,t.originY)}},68441:(e,t,n)=>{"use strict";n.d(t,{B:()=>u});var r=n(31749),i=n(89956),o=n(56876),a=n(43408);let s=e=>(0,r.q)(0,255,e),l={...i.ai,transform:e=>Math.round(s(e))},u={test:(0,a.$)("rgb","red"),parse:(0,a.q)("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+l.transform(e)+", "+l.transform(t)+", "+l.transform(n)+", "+(0,o.a)(i.X4.transform(r))+")"}},68892:(e,t,n)=>{"use strict";n.d(t,{bm:()=>eq,UC:()=>eG,VY:()=>eH,hJ:()=>e_,ZL:()=>eU,bL:()=>eW,hE:()=>eK});var r,i=n(44922),o=n.t(i,2),a=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function s(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var l=n(69319),u=n(66162),d=globalThis?.document?i.useLayoutEffect:()=>{},c=o[" useId ".trim().toString()]||(()=>void 0),f=0;function h(e){let[t,n]=i.useState(c());return d(()=>{e||n(e=>e??String(f++))},[e]),e||(t?`radix-${t}`:"")}var p=o[" useInsertionEffect ".trim().toString()]||d,m=(Symbol("RADIX:SYNC_STATE"),n(49715)),v=n(92814),g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,v.TL)(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(i?n:t,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function y(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var $="dismissableLayer.update",b=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x=i.forwardRef((e,t)=>
9{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:d,onInteractOutside:c,onDismiss:f,...h}=e,p=i.useContext(b),[m,v]=i.useState(null),x=m?.ownerDocument??globalThis?.document,[,S]=i.useState({}),E=(0,l.s)(t,e=>v(e)),P=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),R=P.indexOf(T),A=m?P.indexOf(m):-1,M=p.layersWithOutsidePointerEventsDisabled.size>0,O=A>=R,N=function(e,t=globalThis?.document){let n=y(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){C("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...p.branches].some(e=>e.contains(t));O&&!n&&(a?.(e),c?.(e),e.defaultPrevented||f?.())},x),I=function(e,t=globalThis?.document){let n=y(e),r=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!r.current&&C("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...p.branches].some(e=>e.contains(t))&&(d?.(e),c?.(e),e.defaultPrevented||f?.())},x);return!function(e,t=globalThis?.document){let n=y(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{A===p.layers.size-1&&(o?.(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))},x),i.useEffect(()=>{if(m)return n&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),w(),()=>{n&&1===p.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r)}},[m,x,n,p]),i.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),w())},[m,p]),i.useEffect(()=>{let e=()=>S({});return document.addEventListener($,e),()=>document.removeEventListener($,e)},[]),(0,u.jsx)(g.div,{...h,ref:E,style:{pointerEvents:M?O?"auto":"none":void 0,...e.style},onFocusCapture:s(e.onFocusCapture,I.onFocusCapture),onBlurCapture:s(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:s(e.onPointerDownCapture,N.onPointerDownCapture)})});function w(){let e=new CustomEvent($);document.dispatchEvent(e)}function C(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),r)i&&m.flushSync(()=>i.dispatchEvent(o));else i.dispatchEvent(o)}x.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(b),r=i.useRef(null),o=(0,l.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(g.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var S="focusScope.autoFocusOnMount",E="focusScope.autoFocusOnUnmount",P={bubbles:!1,cancelable:!0},T=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[d,c]=i.useState(null),f=y(o),h=y(a),p=i.useRef(null),m=(0,l.s)(t,e=>c(e)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(v.paused||!d)return;let t=e.target;d.contains(t)?p.current=t:M(p.current,{select:!0})},t=function(e){if(v.paused||!d)return;let t=e.relatedTarget;null!==t&&(d.contains(t)||M(p.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&M(d)});return d&&n.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,d,v.paused]),i.useEffect(()=>{if(d){O.add(v);let e=document.activeElement;if(!d.contains(e)){let t=new CustomEvent(S,P);d.addEventListener(S,f),d.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(M(r,{select:t}),document.activeElement!==n)return}(R(d).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&M(d))}return()=>{d.removeEventListener(S,f),setTimeout(()=>{let t=new CustomEvent(E,P);d.addEventListener(E,h),d.dispatchEvent(t),t.defaultPrevented||M(e??document.body,{select:!0}),d.removeEventListener(E,h),O.remove(v)},0)}}},[d,f,h,v]);let $=i.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=R(e);return[A(t,e),A(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&M(o,{select:!0})):(e.preventDefault(),n&&M(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,v.paused]);return(0,u.jsx)(g.div,{tabIndex:-1,...s,ref:m,onKeyDown:$})});function R(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function A(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function M(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}
9T.displayName="FocusScope";var O=function(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=N(e,t)).unshift(t)},remove(t){e=N(e,t),e[0]?.resume()}}}();function N(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var I=i.forwardRef((e,t)=>{let{container:n,...r}=e,[o,a]=i.useState(!1);d(()=>a(!0),[]);let s=n||o&&globalThis?.document?.body;return s?m.createPortal((0,u.jsx)(g.div,{...r,ref:t}),s):null});I.displayName="Portal";var k=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=i.useState(),a=i.useRef(null),s=i.useRef(e),l=i.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>n[e][t]??e,t));return i.useEffect(()=>{let e=D(a.current);l.current="mounted"===u?e:"none"},[u]),d(()=>{let t=a.current,n=s.current;if(n!==e){let r=l.current,i=D(t);e?c("MOUNT"):"none"===i||t?.display==="none"?c("UNMOUNT"):n&&r!==i?c("ANIMATION_OUT"):c("UNMOUNT"),s.current=e}},[e,c]),d(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let i=D(a.current).includes(CSS.escape(n.animationName));if(n.target===r&&i&&(c("ANIMATION_END"),!s.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},i=e=>{e.target===r&&(l.current=D(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:i.useCallback(e=>{a.current=e?getComputedStyle(e):null,o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),a=(0,l.s)(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?i.cloneElement(o,{ref:a}):null};function D(e){return e?.animationName||"none"}k.displayName="Presence";var j=0;function L(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var F=n(49856),V=n(22442),B=n(43731),W=(0,n(73041).f)(),U=function(){},_=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:U,onWheelCapture:U,onTouchMoveCapture:U}),o=r[0],a=r[1],s=e.forwardProps,l=e.children,u=e.className,d=e.removeScrollBar,c=e.enabled,f=e.shards,h=e.sideCar,p=e.noRelative,m=e.noIsolation,v=e.inert,g=e.allowPinchZoom,y=e.as,$=e.gapMode,b=(0,F.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(0,B.S)([n,t]),w=(0,F.Cl)((0,F.Cl)({},b),o);return i.createElement(i.Fragment,null,c&&i.createElement(h,{sideCar:W,removeScrollBar:d,shards:f,noRelative:p,noIsolation:m,inert:v,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:$}),s?i.cloneElement(i.Children.only(l),(0,F.Cl)((0,F.Cl)({},w),{ref:x})):i.createElement(void 0===y?"div":y,(0,F.Cl)({},w,{className:u,ref:x}),l))});_.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},_.classNames={fullWidth:V.pN,zeroRight:V.Mi};var G=n(92713),K=n(73169),H=n(14508),q=!1;if("undefined"!=typeof window)try{var X=Object.defineProperty({},"passive",{get:function(){return q=!0,!0}});window.addEventListener("test",X,X),window.removeEventListener("test",X,X)}catch(e){q=!1}var z=!!q&&{passive:!1},Y=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},Z=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),J(e,r)){var i=Q(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},J=function(e,t){return"v"===e?Y(t,"overflowY"):Y(t,"overflowX")},Q=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ee=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),d=!1,c=s>0,f=0,h=0;
9do{if(!l)break;var p=Q(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&J(e,l)&&(f+=v,h+=m);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return c&&(i&&1>Math.abs(f)||!i&&s>f)?d=!0:!c&&(i&&1>Math.abs(h)||!i&&-s>h)&&(d=!0),d},et=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},en=function(e){return[e.deltaX,e.deltaY]},er=function(e){return e&&"current"in e?e.current:e},ei=0,eo=[];let ea=(0,G.m)(W,function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(ei++)[0],a=i.useState(H.T0)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,F.fX)([e.lockRef.current],(e.shards||[]).map(er),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,o=et(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],d=e.target,c=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===c&&"range"===d.type)return!1;var f=window.getSelection(),h=f&&f.anchorNode;if(h&&(h===d||h.contains(d)))return!1;var p=Z(c,d);if(!p)return!0;if(p?i=c:(i="v"===c?"h":"v",p=Z(c,d)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var m=r.current||i;return ee(m,t,e,"h"===m?l:u,!0)},[]),u=i.useCallback(function(e){if(eo.length&&eo[eo.length-1]===a){var n="deltaY"in e?en(e):et(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}
9if(!r){var i=(s.current.shards||[]).map(er).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=i.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=i.useCallback(function(e){n.current=et(e),r.current=void 0},[]),f=i.useCallback(function(t){d(t.type,en(t),t.target,l(t,e.lockRef.current))},[]),h=i.useCallback(function(t){d(t.type,et(t),t.target,l(t,e.lockRef.current))},[]);i.useEffect(function(){return eo.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,z),document.addEventListener("touchmove",u,z),document.addEventListener("touchstart",c,z),function(){eo=eo.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,z),document.removeEventListener("touchmove",u,z),document.removeEventListener("touchstart",c,z)}},[]);var p=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?i.createElement(K.jp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)});var es=i.forwardRef(function(e,t){return i.createElement(_,(0,F.Cl)({},e,{ref:t,sideCar:ea}))});es.classNames=_.classNames;var el=n(35199),eu="Dialog",[ed,ec]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r),a=n.length;n=[...n,r];let s=t=>{let{scope:n,children:r,...s}=t,l=n?.[e]?.[a]||o,d=i.useMemo(()=>s,Object.values(s));return(0,u.jsx)(l.Provider,{value:d,children:r})};return s.displayName=t+"Provider",[s,function(n,s){let l=s?.[e]?.[a]||o,u=i.useContext(l);if(u)return u;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(eu),[ef,eh]=ed(eu),ep=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=i.useRef(null),d=i.useRef(null),[c,f]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,a,s]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),a=i.useRef(t);return p(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,r])}return[u,i.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else a(t)},[l,e,a,s])]}({prop:r,defaultProp:o??!1,onChange:a,caller:eu});return(0,u.jsx)(ef,{scope:t,triggerRef:l,contentRef:d,contentId:h(),titleId:h(),descriptionId:h(),open:c,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(e=>!e),[f]),modal:s,children:n})};ep.displayName=eu;var em="DialogTrigger";i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eh(em,n),o=(0,l.s)(t,i.triggerRef);return(0,u.jsx)(g.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":eD(i.open),...r,ref:o,onClick:s(e.onClick,i.onOpenToggle)})}).displayName=em;var ev="DialogPortal",[eg,ey]=ed(ev,{forceMount:void 0}),e$=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=eh(ev,t);return(0,u.jsx)(eg,{scope:t,forceMount:n,children:i.Children.map(r,e=>(0,u.jsx)(k,{present:n||a.open,children:(0,u.jsx)(I,{asChild:!0,container:o,children:e})}))})};e$.displayName=ev;var eb="DialogOverlay",ex=i.forwardRef((e,t)=>
9{let n=ey(eb,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=eh(eb,e.__scopeDialog);return o.modal?(0,u.jsx)(k,{present:r||o.open,children:(0,u.jsx)(eC,{...i,ref:t})}):null});ex.displayName=eb;var ew=(0,v.TL)("DialogOverlay.RemoveScroll"),eC=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eh(eb,n);return(0,u.jsx)(es,{as:ew,allowPinchZoom:!0,shards:[i.contentRef],children:(0,u.jsx)(g.div,{"data-state":eD(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),eS="DialogContent",eE=i.forwardRef((e,t)=>{let n=ey(eS,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=eh(eS,e.__scopeDialog);return(0,u.jsx)(k,{present:r||o.open,children:o.modal?(0,u.jsx)(eP,{...i,ref:t}):(0,u.jsx)(eT,{...i,ref:t})})});eE.displayName=eS;var eP=i.forwardRef((e,t)=>{let n=eh(eS,e.__scopeDialog),r=i.useRef(null),o=(0,l.s)(t,n.contentRef,r);return i.useEffect(()=>{let e=r.current;if(e)return(0,el.Eq)(e)},[]),(0,u.jsx)(eR,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:s(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:s(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:s(e.onFocusOutside,e=>e.preventDefault())})}),eT=i.forwardRef((e,t)=>{let n=eh(eS,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return(0,u.jsx)(eR,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),eR=i.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,d=eh(eS,n),c=i.useRef(null),f=(0,l.s)(t,c);return i.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??L()),document.body.insertAdjacentElement("beforeend",e[1]??L()),j++,()=>{1===j&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),j--}},[]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(T,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,u.jsx)(x,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":eD(d.open),...s,ref:f,onDismiss:()=>d.onOpenChange(!1)})}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(eV,{titleId:d.titleId}),(0,u.jsx)(eB,{contentRef:c,descriptionId:d.descriptionId})]})]})}),eA="DialogTitle",eM=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eh(eA,n);return(0,u.jsx)(g.h2,{id:i.titleId,...r,ref:t})});eM.displayName=eA;var eO="DialogDescription",eN=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eh(eO,n);return(0,u.jsx)(g.p,{id:i.descriptionId,...r,ref:t})});eN.displayName=eO;var eI="DialogClose",ek=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eh(eI,n);return(0,u.jsx)(g.button,{type:"button",...r,ref:t,onClick:s(e.onClick,()=>i.onOpenChange(!1))})});function eD(e){return e?"open":"closed"}ek.displayName=eI;var ej="DialogTitleWarning",[eL,eF]=function(e,t){let n=i.createContext(t),r=e=>{let{children:t,...r}=e,o=i.useMemo(()=>r,Object.values(r));return(0,u.jsx)(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){let o=i.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}(ej,{contentName:eS,titleName:eA,docsSlug:"dialog"}),eV=({titleId:e})=>{let t=eF(ej),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
10
11If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
12
13For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},eB=({contentRef:e,descriptionId:t})=>{let n=eF("DialogDescriptionWarning"),r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return i.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},eW=ep,eU=e$,e_=ex,eG=eE,eK=eM,eH=eN,eq=ek},69096:()=>{}
13,70104:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});var r=n(79604);function i(e,t){let n=e?.[t]??e?.default??e;return n!==e?(0,r.K)(n,e):n}},70320:(e,t,n)=>{"use strict";n.d(t,{M:()=>E});var r=n(44922),i=n(89243),o=n(80464),a=n(56303),s=n(12792),l=n(95925),u=n(7319),d=n(77268),c=n(48193),f=n(90578),h=n(95357),p=n(77972),m=n(95060),v=n(41161),g=n(15860),y=n(4465),$=n(86623),b=n(38138),x=n(10342),w=n(73809),C=n(30147),S=n(2624);let E=r.forwardRef(function(e,t){let{render:n,className:E,nativeButton:P=!0,disabled:T=!1,id:R,style:A,...M}=e,{state:O,disabled:N,setTouched:I,setFocused:k,validationMode:D,validation:j}=(0,h.V)(),{labelId:L}=(0,p.H)(),F=(0,d.Ee)(),{filteredItems:V}=(0,d.Dc)(),B=(0,i.P)(F,f.T.selectionMode),W=(0,i.P)(F,f.T.disabled),U=(0,i.P)(F,f.T.readOnly),_=(0,i.P)(F,f.T.required),G=(0,i.P)(F,f.T.mounted),K=(0,i.P)(F,f.T.popupSide),H=(0,i.P)(F,f.T.positionerElement),q=(0,i.P)(F,f.T.listElement),X=(0,i.P)(F,f.T.triggerProps),z=(0,i.P)(F,f.T.triggerElement),Y=(0,i.P)(F,f.T.inputInsidePopup),Z=(0,i.P)(F,f.T.id),J=(0,i.P)(F,f.T.labelId),Q=(0,i.P)(F,f.T.open),ee=(0,i.P)(F,f.T.selectedValue),et=(0,i.P)(F,f.T.activeIndex),en=(0,i.P)(F,f.T.selectedIndex),er=(0,i.P)(F,f.T.hasSelectedValue),ei=(0,d.ui)(),eo=(0,d.dc)(),ea=(0,a.Z)(),es=N||W||T,el=0===V.length;(0,C.l)({id:Y?R:void 0});let eu=Y?R??Z:R,ed=(0,S._)(L,J),ec=r.useRef("");function ef(e){ec.current=e.pointerType}let eh=ei.useState("domReferenceElement");r.useEffect(()=>{Y&&z&&z!==eh&&ei.set("domReferenceElement",z)},[z,eh,ei,Y]);let{reference:ep}=function(e,t){let n="rootStore"in e?e.rootStore:e,i=n.context.dataRef,s=n.useState("open"),{listRef:l,elementsRef:u,activeIndex:d,onMatch:c,onTypingChange:f,enabled:h=!0,resetMs:p=750,selectedIndex:g=null}=t,y=(0,a.Z)(),$=r.useRef(""),w=r.useRef(g??d??-1),C=r.useRef(null);(0,b.g)(()=>{(s||null===g)&&(y.clear(),C.current=null,""!==$.current&&($.current=""))},[s,g,y]),(0,b.g)(()=>{s&&""===$.current&&(w.current=g??d??-1)},[s,g,d]);let S=(0,o.K)(e=>{e?i.current.typing||(i.current.typing=e,f?.(e)):i.current.typing&&(i.current.typing=e,f?.(e))}),E=(0,o.K)(e=>{function t(e,n,r=0){if(0===e.length)return -1;let i=(r%e.length+e.length)%e.length,o=n.toLocaleLowerCase();for(let t=0;t<e.length;t+=1){let n=(i+t)%e.length,r=e[n];if(r?.toLocaleLowerCase().startsWith(o)&&function(e){let t=u?.current[e];return!t||(0,x.J9)(t)}(n))return n}return -1}let n=l.current;if($.current.length>0&&" "===e.key&&((0,v.jo)(e),S(!0)),$.current.length>0&&" "!==$.current[0]&&-1===t(n,$.current)&&" "!==e.key&&S(!1),null==n||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;s&&" "!==e.key&&((0,v.jo)(e),S(!0));let r=""===$.current;r&&(w.current=g??d??-1),n.every(e=>!e||e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase())&&$.current===e.key&&($.current="",w.current=C.current),$.current+=e.key,y.start(p,()=>{$.current="",w.current=C.current,S(!1)});let i=r?g??d??-1:w.current,o=t(n,$.current,(i??0)+1);-1!==o?(c?.(o),C.current=o):" "!==e.key&&($.current="",S(!1))}),P=(0,o.K)(e=>{let t=e.relatedTarget,r=n.select("domReferenceElement"),i=n.select("floatingElement"),o=(0,m.gR)(r,t),a=(0,m.gR)(i,t);o||a||(y.clear(),$.current="",w.current=C.current,S(!1))}),T=r.useMemo(()=>({onKeyDown:E,onBlur:P}),[E,P]),R=r.useMemo(()=>({onKeyDown:E,onBlur:P}),[E,P]);return r.useMemo(()=>h?{reference:T,floating:R}:{},[h,T,R])}(ei,{enabled:!Q&&!U&&!W&&"single"===B,listRef:F.state.labelsRef,activeIndex:et,selectedIndex:en,onMatch(e){let t=F.state.valuesRef.current[e];void 0!==t&&F.state.setSelectedValue(t,(0,y.d)("none"))}}),{reference:em}=(0,w.k)(ei,{enabled:!U&&!W,event:"mousedown"}),{buttonRef:ev,getButtonProps:eg}=(0,u.s)({native:P,disabled:es}),ey={...O,open:Q,disabled:es,popupSide:G&&H?K:null,listEmpty:el,placeholder:"none"!==B&&!er},e$=(0,o.K)(e=>{F.set("triggerElement",e)});return(0,l.o)("button",e,{ref:[t,ev,e$],state:ey,props:[X,em,ep,{id:eu,tabIndex:Y?0:-1,role:Y?"combobox":void 0,"aria-expanded":Q?"true":"false","aria-haspopup":Y?"dialog":"listbox","aria-controls":Q?q?.id:void 0,"aria-required":Y&&_||void 0,"aria-labelledby":ed,onPointerDown:ef,onPointerEnter:ef,onFocus(){k(!0),es||U||ea.start(0,F.state.forceMount)},onBlur(e){(0,m.gR)(H,e.relatedTarget)||(I(!0),k(!1),"onBlur"===D&&j.commit("none"===B?eo:ee))},onMouseDown(e){if(es||U||(Y||ei.set("domReferenceElement",e.currentTarget),F.state.forceMount(),"touch"!==ec.current&&(F.state.inputRef.current?.focus(),Y||e.preventDefault()),Q))return;let t=(0,s.R)(e.currentTarget);Y&&t.addEventListener("mouseup",function(e){if(!z)return;let t=(0,m.EW)(e),n=F.state.positionerElement,r=F.state.listElement;if((0,m.gR)(z,t)||(0,m.gR)(n,t)||(0,m.gR)(r,t)||t===z)return;let i=function(e){let t=e.getBoundingClientRect(),n=(0,g.zk)(e),r=n.getComputedStyle(e,"::before"),i=n.getComputedStyle(e,"::after");if("none"===r.content&&"none"===i.content)return t;let o=parseFloat(r.width)||0,a=parseFloat(r.height)||0,s=parseFloat(i.width)||0,l=parseFloat(i.height)||0,u=Math.max(t.width,o,s),d=Math.max(t.height,a,l),c=u-t.width,f=d-t.height;return{left:t.left-c/2,right:t.right+c/2,top:t.top-f/2,bottom:t.bottom+f/2}}(z),o=e.clientX>=i.left-2&&e.clientX<=i.right+2,a=e.clientY>
13=i.top-2&&e.clientY<=i.bottom+2;o&&a||F.state.setOpen(!1,(0,y.d)("cancel-open",e))},{once:!0})},onKeyDown(e){es||U||("ArrowDown"===e.key||"ArrowUp"===e.key)&&((0,v.jo)(e),F.state.setOpen(!0,(0,y.d)($.Dq,e.nativeEvent)),F.state.inputRef.current?.focus())}},j?j.getValidationProps(M):M,eg],stateAttributesMapping:c.d})})},71331:(e,t,n)=>{"use strict";let r,i;n.d(t,{X:()=>p});var o=n(55575),a=n(65819);let s=new WeakMap,l=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:(0,o.x)(r)&&"getBBox"in r?r.getBBox()[t]:r[n],u=l("inline","width","offsetWidth"),d=l("block","height","offsetHeight");function c({target:e,borderBoxSize:t}){s.get(e)?.forEach(n=>{n(e,{get width(){return u(e,t)},get height(){return d(e,t)}})})}function f(e){e.forEach(c)}let h=new Set;function p(e,t){return"function"==typeof e?(h.add(e),i||(i=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};h.forEach(t=>t(e))},window.addEventListener("resize",i)),()=>{h.delete(e),h.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):function(e,t){r||"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(f));let n=(0,a.K)(e);return n.forEach(e=>{let n=s.get(e);n||(n=new Set,s.set(e,n)),n.add(t),r?.observe(e)}),()=>{n.forEach(e=>{let n=s.get(e);n?.delete(t),n?.size||r?.unobserve(e)})}}(e,t)}},71416:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(3294);let i={...r.f,getAnimatableNone:e=>{let t=r.f.parse(e);return r.f.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}}},71946:()=>{},72393:()=>{},72624:(e,t,n)=>{e.exports=n(95636)()},72823:(e,t,n)=>{e.exports=n(82387)},72935:(e,t,n)=>{"use strict";n.d(t,{p:()=>f});var r=n(44922),i=n(33074),o=n(80464),a=n(51414),s=n(7319),l=n(4465),u=n(86623),d=n(77268),c=n(66162);let f=r.forwardRef(function(e,t){let n=(0,d.Ee)(),{buttonRef:r,getButtonProps:f}=(0,s.s)({native:!1}),h=(0,i.a)(t,r),p=f({onClick:(0,o.K)(e=>{n.state.setOpen(!1,(0,l.d)(u.SR,e.nativeEvent,e.currentTarget))})});return(0,c.jsx)("span",{ref:h,...p,"aria-label":"Dismiss",tabIndex:void 0,style:a.a})})},73308:(e,t,n)=>{"use strict";n.d(t,{o:()=>S});var r=n(44922),i=n(89243),o=n(80464),a=n(31142),s=n(14933),l=n(95925),u=n(77268),d=n(48193),c=n(90578),f=n(95357),h=n(54739),p=n(77972);let m=r.createContext(void 0);var v=n(41161),g=n(40324),y=n(4465),$=n(86623),b=n(28556),x=n(2624),w=n(72935),C=n(66162);let S=r.forwardRef(function(e,t){let{render:n,className:S,disabled:E=!1,id:P,style:T,...R}=e,{state:A,disabled:M,setTouched:O,setFocused:N,validationMode:I,validation:k}=(0,f.V)(),{labelId:D}=(0,p.H)(),j=r.useContext(m),L=!!(0,g.O)(!0),F=(0,u.Ee)(),{filteredItems:V}=(0,u.Dc)(),B=(0,u.dc)(),W=(0,b.j)(),U=(0,i.P)(F,c.T.required),_=(0,i.P)(F,c.T.disabled),G=(0,i.P)(F,c.T.readOnly),K=(0,i.P)(F,c.T.name),H=(0,i.P)(F,c.T.form),q=(0,i.P)(F,c.T.selectionMode),X=(0,i.P)(F,c.T.autoHighlight),z=(0,i.P)(F,c.T.inputProps),Y=(0,i.P)(F,c.T.triggerProps),Z=(0,i.P)(F,c.T.open),J=(0,i.P)(F,c.T.mounted),Q=(0,i.P)(F,c.T.selectedValue),ee=(0,i.P)(F,c.T.popupSide),et=(0,i.P)(F,c.T.positionerElement),en=(0,i.P)(F,c.T.id),er=(0,i.P)(F,c.T.inline),ei=(0,i.P)(F,c.T.modal),eo=!!X,ea=M||_||E,es=0===V.length,el=L||er,eu=(0,s.e)(P??(el?void 0:en)),ed=(0,x._)(D,void 0),ec=L?h.HH:A,[ef,eh]=r.useState(null),ep=r.useRef(!1),em=r.useRef(null),ev=r.useRef(!1),eg=(0,o.K)(e=>{let t=L||F.state.inline;t&&!F.state.hasInputValue&&F.state.setInputValue("",(0,y.d)($.dv)),F.update({inputElement:e,inputInsidePopup:t})}),ey=L||!k?R:k.getValidationProps(R),e$={...ec,open:Z,disabled:ea,readOnly:G,popupSide:J&&et?ee:null,listEmpty:es},eb=(0,l.o)("input",e,{state:e$,ref:[t,F.state.inputRef,eg],props:[z,Y,{type:"text",value:e.value??ef??B,"aria-readonly":G||void 0,"aria-required":U||void 0,"aria-labelledby":ed,disabled:ea,readOnly:G,required:"none"===q?U:void 0,form:H,..."none"===q&&K&&{name:K},id:eu,onFocus(){if(N(!0),!er||!ev.current)return;ev.current=!1;let e=em.current;null!=e&&Object.hasOwn(F.state.valuesRef.current,e)&&F.state.setIndices({activeIndex:e})},onBlur(){O(!0),N(!1);let e=F.state.activeIndex;if(er&&null!==e&&"always"!==X&&(em.current=e,ev.current=!0,F.state.setIndices({activeIndex:null})),"onBlur"===I){let e="none"===q?B:Q;k.commit(e)}},onCompositionStart(e){a.m0||(ep.current=!0,eh(e.currentTarget.value))},onCompositionEnd(e){ep.current=!1;let t=e.currentTarget.value;eh(null),F.state.setInputValue(t,(0,y.d)($.pf,e.nativeEvent))},onChange(e){let t=e.nativeEvent.inputType,n=ep.current||!(!t||"insertReplacementText"===t);if(ep.current){let t=e.currentTarget.value;
13eh(t),""!==t||F.state.openOnInputClick||F.state.inputInsidePopup||F.state.setOpen(!1,(0,y.d)($.qs,e.nativeEvent));let r=t.trim();!G&&!ea&&r&&n&&(F.state.setOpen(!0,(0,y.d)($.pf,e.nativeEvent)),eo||F.state.setIndices({activeIndex:null,selectedIndex:null,type:F.state.keyboardActiveRef.current?"keyboard":"pointer"})),Z&&null!==F.state.activeIndex&&!(eo&&""!==r)&&F.state.setIndices({activeIndex:null,selectedIndex:null,type:F.state.keyboardActiveRef.current?"keyboard":"pointer"});return}F.state.setInputValue(e.currentTarget.value,(0,y.d)($.pf,e.nativeEvent));let r=""===e.currentTarget.value,i=(0,y.d)($.qs,e.nativeEvent);r&&!F.state.inputInsidePopup&&("single"===q&&F.state.setSelectedValue(null,i),F.state.openOnInputClick||F.state.setOpen(!1,i));let o=e.currentTarget.value.trim();!G&&!ea&&o&&n&&(F.state.setOpen(!0,(0,y.d)($.pf,e.nativeEvent)),eo||F.state.setIndices({activeIndex:null,selectedIndex:null,type:F.state.keyboardActiveRef.current?"keyboard":"pointer"})),Z&&null!==F.state.activeIndex&&!eo&&F.state.setIndices({activeIndex:null,selectedIndex:null,type:F.state.keyboardActiveRef.current?"keyboard":"pointer"})},onKeyDown(e){if(ea||G||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;F.state.keyboardActiveRef.current=!0;let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r="rtl"===W;if("Home"===e.key){(0,v.jo)(e);let n=a.gm&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if("End"===e.key){(0,v.jo)(e);let i=a.gm&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!J&&"Escape"===e.key){let t="multiple"===q&&Array.isArray(Q)?0===Q.length:null===Q,n=(0,y.d)($.jv,e.nativeEvent);F.state.setInputValue("",n),F.state.setSelectedValue("multiple"===q?[]:null,n),t||F.state.inline||n.isPropagationAllowed||e.stopPropagation();return}if(j&&"Backspace"===e.key&&""===t.value&&void 0===j.highlightedChipIndex&&Array.isArray(Q)&&Q.length>0){let t=j.chipsRef.current.length,n=t>0?t-1:Q.length-1,r=Q.filter((e,t)=>t!==n);F.state.setIndices({activeIndex:null,selectedIndex:null,type:F.state.keyboardActiveRef.current?"keyboard":"pointer"}),F.state.setSelectedValue(r,(0,y.d)($.dv,e.nativeEvent));return}let i=j?.highlightedChipIndex!==void 0,o=function(e){let t;if(!j)return;let{highlightedChipIndex:n}=j,r=j.chipsRef.current.length;if(void 0!==n){if("ArrowLeft"===e.key)e.preventDefault(),t=n>0?n-1:void 0;else if("ArrowRight"===e.key)e.preventDefault(),t=n<r-1?n+1:void 0;else if("Backspace"===e.key||"Delete"===e.key){e.preventDefault();let r=n>=Q.length-1?Q.length-2:n;t=r>=0?r:void 0,F.state.setIndices({activeIndex:null,selectedIndex:null,type:"keyboard"})}return t}return"ArrowLeft"===e.key&&(e.currentTarget.selectionStart??0)===0&&Q.length>0?(e.preventDefault(),t=r>0?r-1:void 0):"Backspace"===e.key&&""===e.currentTarget.value&&Q.length>0&&(F.state.setIndices({activeIndex:null,selectedIndex:null,type:"keyboard"}),e.preventDefault()),t}(e);if(j?.setHighlightedChipIndex(o),void 0!==o?j?.chipsRef.current[o]?.focus():i&&F.state.inputRef.current?.focus(),229!==e.which&&"Enter"===e.key&&Z){let t=F.state.activeIndex,n=e.nativeEvent;if(null===t){if(er)return;F.state.setOpen(!1,(0,y.d)($.dv,n));return}(0,v.jo)(e);let r=F.state.listRef.current[t];r&&(F.state.selectionEventRef.current=n,r.click(),F.state.selectionEventRef.current=null)}},onPointerMove(){F.state.keyboardActiveRef.current=!1},onPointerDown(){F.state.keyboardActiveRef.current=!1}},ey],stateAttributesMapping:d.d});return(0,C.jsxs)(r.Fragment,{children:[Z&&(!el||ei)&&(0,C.jsx)(w.p,{ref:F.state.startDismissRef}),eb]})})},73321:()=>{},73657:()=>{},73809:(e,t,n)=>{"use strict";n.d(t,{k:()=>f});var r=n(44922),i=n(46063),o=n(56303),a=n(93858),s=n(95060),l=n(80321),u=n(41161),d=n(4465),c=n(86623);function f(e,t={}){let n="rootStore"in e?e.rootStore:e,h=n.context.dataRef,{enabled:p=!0,event:m="click",toggle:v=!0,ignoreMouse:g=!1,stickIfOpen:y=!0,touchOpenDelay:$=0,reason:b=c.Ui}=t,x=r.useRef(void 0),w=(0,i.N)(),C=(0,o.Z)(),S=r.useMemo(()=>({onPointerDown(e){x.current=e.pointerType},onMouseDown(e){let t=x.current,r=e.nativeEvent,i=n.select("open");if(0!==e.button||"click"===m||(0,u.Go)(t,!0)&&g)return;let o=h.current.openEvent,a=o?.type,c=n.select("domReferenceElement")!==e.currentTarget,f=i&&c||!(i&&v&&(!o||!y||"click"===a||"mousedown"===a)),p=(0,s.EW)(r);if((0,l.$u)(p)){let e=(0,d.d)(b,r,p);f&&"touch"===t&&$>0?C.start($,()=>{n.setOpen(!0,e)}):n.setOpen(f,e);return}let S=e.currentTarget;w.request(()=>{let e=(0,d.d)(b,r,S);f&&"touch"===t&&$>0?C.start($,()=>{n.setOpen(!0,e)}):n.setOpen(f,e)})},onClick(e){if("mousedown-only"===m)return;let t=x.current;if("mousedown"===m&&t){x.current=void 0;return}if((0,u.Go)(t,!0)&&g)return;let r=n.select("open"),i=h.current.openEvent,o=n.select("domReferenceElement")!==e.currentTarget,a=r&&o||!(r&&v&&(!i||!y||(0,u.Ev)(i))),s=(0,d.d)(b,e.nativeEvent,e.currentTarget);a&&"touch"===t&&$>0?C.start($,()=>{n.setOpen(!0,s)}):n.setOpen(a,s)},onKeyDown(){x.current=void 0}}),[h,m,g,n,y,v,w,C,$,b]);return r.useMemo(()=>p?{reference:S}:a.t0,[p,S])}}
13,73814:(e,t,n)=>{"use strict";n.d(t,{CQ:()=>i,HQ:()=>o,N:()=>u,jA:()=>c,vb:()=>s});var r=n(13995);function i(e){return e.max-e.min}function o(e,t,n){return Math.abs(e-t)<=n}function a(e,t,n,o=.5){e.origin=o,e.originPoint=(0,r.k)(t.min,t.max,e.origin),e.scale=i(n)/i(t),e.translate=(0,r.k)(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function s(e,t,n,r){a(e.x,t.x,n.x,r?r.originX:void 0),a(e.y,t.y,n.y,r?r.originY:void 0)}function l(e,t,n,o=0){e.min=(o?(0,r.k)(n.min,n.max,o):n.min)+t.min,e.max=e.min+i(t)}function u(e,t,n,r){l(e.x,t.x,n.x,r?.x),l(e.y,t.y,n.y,r?.y)}function d(e,t,n,o=0){let a=o?(0,r.k)(n.min,n.max,o):n.min;e.min=t.min-a,e.max=e.min+i(t)}function c(e,t,n,r){d(e.x,t.x,n.x,r?.x),d(e.y,t.y,n.y,r?.y)}},74599:()=>{},74676:()=>{},75048:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]])},75060:(e,t,n)=>{"use strict";n.d(t,{UC:()=>V,B8:()=>L,bL:()=>j,l9:()=>F});var r=n(44922),i=n.t(r,2),o=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function a(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var s=n(66162),l=n(31139);function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function d(...e){return t=>{let n=!1,r=e.map(e=>{let r=u(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():u(e[t],null)}}}}var c=globalThis?.document?r.useLayoutEffect:()=>{},f=e=>{let{present:t,children:n}=e,i=function(e){var t,n;let[i,o]=r.useState(),a=r.useRef(null),s=r.useRef(e),l=r.useRef("none"),[u,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=h(a.current);l.current="mounted"===u?e:"none"},[u]),c(()=>{let t=a.current,n=s.current;if(n!==e){let r=l.current,i=h(t);e?d("MOUNT"):"none"===i||t?.display==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),s.current=e}},[e,d]),c(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,n=n=>{let r=h(a.current).includes(CSS.escape(n.animationName));if(n.target===i&&r&&(d("ANIMATION_END"),!s.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(l.current=h(a.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}d("ANIMATION_END")},[i,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:r.useCallback(e=>{a.current=e?getComputedStyle(e):null,o(e)},[])}}(t),o="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),a=function(...e){return r.useCallback(d(...e),e)}(i.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof n||i.isPresent?r.cloneElement(o,{ref:a}):null};function h(e){return e?.animationName||"none"}f.displayName="Presence",n(49715);var p=Symbol("radix.slottable");function m(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}var v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
13{let n=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var o;let e,a,s=(o=n,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(l.ref=t?d(t,s):s),r.cloneElement(n,l)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...o}=e,a=r.Children.toArray(i),l=a.find(m);if(l){let e=l.props.children,i=a.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,s.jsx)(t,{...o,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(i?n:t,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),g=n(81708),y=i[" useInsertionEffect ".trim().toString()]||c,$=(Symbol("RADIX:SYNC_STATE"),i[" useId ".trim().toString()]||(()=>void 0)),b=0,x="Tabs",[w,C]=function(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=r.createContext(i),a=n.length;n=[...n,i];let l=t=>{let{scope:n,children:i,...l}=t,u=n?.[e]?.[a]||o,d=r.useMemo(()=>l,Object.values(l));return(0,s.jsx)(u.Provider,{value:d,children:i})};return l.displayName=t+"Provider",[l,function(n,s){let l=s?.[e]?.[a]||o,u=r.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}(x,[l.RG]),S=(0,l.RG)(),[E,P]=w(x),T=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,onValueChange:o,defaultValue:a,orientation:l="horizontal",dir:u,activationMode:d="automatic",...f}=e,h=(0,g.jH)(u),[p,m]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){let[o,a,s]=function({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),o=r.useRef(n),a=r.useRef(t);return y(()=>{a.current=t},[t]),r.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,i,a]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:o;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,i])}return[u,r.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else a(t)},[l,e,a,s])]}({prop:i,onChange:o,defaultProp:a??"",caller:x});return(0,s.jsx)(E,{scope:n,baseId:function(e){let[t,n]=r.useState($());return c(()=>{n(e=>e??String(b++))},[void 0]),e||(t?`radix-${t}`:"")}(),value:p,onValueChange:m,orientation:l,dir:h,activationMode:d,children:(0,s.jsx)(v.div,{dir:h,"data-orientation":l,...f,ref:t})})});T.displayName=x;var R="TabsList",A=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,o=P(R,n),a=S(n);return(0,s.jsx)(l.bL,{asChild:!0,...a,orientation:o.orientation,dir:o.dir,loop:r,children:(0,s.jsx)(v.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});A.displayName=R;var M="TabsTrigger",O=r.forwardRef((e,t)=>
13{let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,u=P(M,n),d=S(n),c=k(u.baseId,r),f=D(u.baseId,r),h=r===u.value;return(0,s.jsx)(l.q7,{asChild:!0,...d,focusable:!i,active:h,children:(0,s.jsx)(v.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":f,"data-state":h?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...o,ref:t,onMouseDown:a(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(r)}),onKeyDown:a(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(r)}),onFocus:a(e.onFocus,()=>{let e="manual"!==u.activationMode;h||i||!e||u.onValueChange(r)})})})});O.displayName=M;var N="TabsContent",I=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,forceMount:o,children:a,...l}=e,u=P(N,n),d=k(u.baseId,i),c=D(u.baseId,i),h=i===u.value,p=r.useRef(h);return r.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,s.jsx)(f,{present:o||h,children:({present:n})=>(0,s.jsx)(v.div,{"data-state":h?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!n,id:c,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:n&&a})})});function k(e,t){return`${e}-trigger-${t}`}function D(e,t){return`${e}-content-${t}`}I.displayName=N;var j=T,L=A,F=O,V=I},75090:(e,t,n)=>{"use strict";e.exports=n(9192)},75441:()=>{},75748:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});let r=new Set(["width","height","top","left","right","bottom",...n(59945).U])},75951:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(65819);function i(e,t){let n=(0,r.K)(e),i=new AbortController;return[n,{passive:!0,...t,signal:i.signal},()=>i.abort()]}},76129:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});let r=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)},76143:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(51542);function i(e){return e.props[r.n]}},76321:()=>{},76711:(e,t,n)=>{"use strict";n.d(t,{b:()=>d});var r=n(44922);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}n(49715);var o=n(66162),a=Symbol("radix.slottable");function s(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}var l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){var a;let e,s,l=(a=n,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(u.ref=t?function(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}(t,l):l),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...a}=e,l=r.Children.toArray(i),u=l.find(s);if(u){let e=u.props.children,i=l.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,o.jsx)(t,{...a,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),a=r.forwardRef((e,r)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?n:t,{...a,ref:r})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),u=r.forwardRef((e,t)=>(0,o.jsx)(l.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));u.displayName="Label";var d=u},77268:(e,t,n)=>{"use strict";n.d(t,{Dc:()=>c,Ee:()=>u,Hw:()=>a,KR:()=>l,dc:()=>f,kN:()=>s,ui:()=>d,vx:()=>o});var r=n(5035),i=n(44922);let o=i.createContext(void 0),a=i.createContext(void 0),s=i.createContext(void 0),l=i.createContext("");function u(){let e=i.useContext(o);if(!e)throw Error((0,r.A)(22));return e}function d(){let e=i.useContext(a);if(!e)throw Error((0,r.A)(23));return e}function c(){let e=i.useContext(s);if(!e)throw Error((0,r.A)(24));return e}function f(){return i.useContext(l)}},77276:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});
13class r{constructor(e){this.isMounted=!1,this.node=e}update(){}}},77972:(e,t,n)=>{"use strict";n.d(t,{H:()=>a});var r=n(44922),i=n(93858);let o=r.createContext({controlId:void 0,registerControlId:i.tE,labelId:void 0,setLabelId:i.tE,messageIds:[],setMessageIds:i.tE,getDescriptionProps:e=>e});function a(){return r.useContext(o)}},78216:()=>{},78491:(e,t,n)=>{"use strict";n.d(t,{D:()=>i,M:()=>o});var r=n(44922);let i=r.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function o(){return r.useContext(i)}},78658:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});let r=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},79062:(e,t,n)=>{"use strict";n.d(t,{x:()=>g});var r=n(44922),i=n(49715),o=n(89243),a=n(38138),s=n(77268),l=n(78491);let u=function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e}({});var d=n(95925),c=n(46078),f=n(90578),h=n(7319);let p=r.createContext(!1);var m=n(14611),v=n(66162);let g=r.memo(r.forwardRef(function(e,t){let{render:n,className:g,value:y=null,index:$,disabled:b=!1,nativeButton:x=!1,style:w,...C}=e,S=r.useRef(!1),E=r.useRef(null),P=function(e={}){let{label:t,metadata:n,textRef:i,indexGuessBehavior:o,index:s}=e,{register:d,unregister:c,subscribeMapChange:f,elementsRef:h,labelsRef:p,nextIndexRef:m}=(0,l.M)(),v=r.useRef(-1),[g,y]=r.useState(s??(o===u.GuessFromOrder?()=>{if(-1===v.current){let e=m.current;m.current+=1,v.current=e}return v.current}:-1)),$=r.useRef(null),b=r.useCallback(e=>{if($.current=e,-1!==g&&null!==e&&(h.current[g]=e,p)){let n=void 0!==t;p.current[g]=n?t:i?.current?.textContent??e.textContent}},[g,h,p,t,i]);return(0,a.g)(()=>{if(null!=s)return;let e=$.current;if(e)return d(e,n),()=>{c(e)}},[s,d,c,n]),(0,a.g)(()=>{if(null==s)return f(e=>{let t=$.current?e.get($.current)?.index:null;null!=t&&y(t)})},[s,f,y]),r.useMemo(()=>({ref:b,index:g}),[g,b])}({index:$,textRef:E,indexGuessBehavior:u.GuessFromOrder}),T=(0,s.Ee)(),R=r.useContext(p),{flatFilteredItems:A,hasItems:M}=(0,s.Dc)(),O=(0,o.P)(T,f.T.open),N=(0,o.P)(T,f.T.selectionMode),I=(0,o.P)(T,f.T.readOnly),k=(0,o.P)(T,f.T.virtualized),D=(0,o.P)(T,f.T.isItemEqualToValue),j="none"!==N,L=$??(k?(0,m.Vz)(A,y,D):P.index),F=-1!==P.index,V=(0,o.P)(T,f.T.id),B=(0,o.P)(T,f.T.isActive,L),W=(0,o.P)(T,f.T.isSelected,y),U=(0,o.P)(T,f.T.getItemProps),_=r.useRef(null),G=null!=V&&F?`${V}-${L}`:void 0,K=W&&j;(0,a.g)(()=>{if(!(F&&(k||null!=$)))return;let e=T.state.listRef.current;return e[L]=_.current,()=>{delete e[L]}},[F,k,L,$,T]),(0,a.g)(()=>{if(!F||M)return;let e=T.state.valuesRef.current;return e[L]=y,"none"!==N&&T.state.allValuesRef.current.push(y),()=>{delete e[L]}},[F,M,L,y,T,N]),(0,a.g)(()=>{if(!O){S.current=!1;return}if(!F||M)return;let e=T.state.selectedValue,t=Array.isArray(e)?e[e.length-1]:e;(0,m.tl)(y,t,D)&&T.set("selectedIndex",L)},[F,M,O,T,L,y,D]);let H=U({active:B,selected:K});H.id=void 0,H.onFocus=void 0;let{getButtonProps:q,buttonRef:X}=(0,h.s)({disabled:b,focusableWhenDisabled:!0,native:x,composite:!0});function z(e){function t(){T.state.handleSelection(e,y)}T.state.submitOnItemClick?(i.flushSync(t),T.state.requestSubmit()):t()}let Y=(0,d.o)("div",e,{ref:[X,t,P.ref,_],state:{disabled:b,selected:K,highlighted:B},props:[H,{id:G,role:R?"gridcell":"option","aria-selected":j?K:void 0,tabIndex:void 0,onPointerDownCapture(e){S.current=!0,e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){b||I||z(e.nativeEvent)},onMouseUp(e){let t=S.current;S.current=!1,b||I||0!==e.button||t||!B||z(e.nativeEvent)}},C,q]}),Z=r.useMemo(()=>({selected:K,textRef:E}),[K,E]);return(0,v.jsx)(c.s.Provider,{value:Z,children:Y})}))},79505:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});let r=(0,n(44922).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},79604:(e,t,n)=>{"use strict";function r(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}n.d(t,{K:()=>r})},80016:(e,t,n)=>{"use strict";n.d(t,{Gt:()=>i,PP:()=>s,WG:()=>o,uv:()=>a});var r=n(57094);let{schedule:i,cancel:o,state:a,steps:s}=(0,n(80450).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.l,!0)},80105:()=>{},80321:(e,t,n)=>{"use strict";n.d(t,{$u:()=>s,F2:()=>
13o,WZ:()=>l,nd:()=>u,tZ:()=>a});var r=n(15860),i=n(17724);function o(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function a(e){return e.matches("html,body")}function s(e){return(0,r.sb)(e)&&e.matches(i.BT)}function l(e){return!!e&&"combobox"===e.getAttribute("role")&&s(e)}function u(e){return e?e.hasAttribute(i.Ed)?e:e.querySelector(`[${i.Ed}]`)||e:null}},80368:(e,t,n)=>{"use strict";n.d(t,{AO:()=>h,Kr:()=>m,N:()=>b,Qp:()=>$,XJ:()=>y,nq:()=>p,vF:()=>g,yV:()=>x});var r=n(15860),i=n(12792),o=n(95060),a=n(10342);function s(e){for(let t of Array.from(e.children))if("summary"===(0,r.mq)(t))return t;return null}function l(e){let t=e?(0,r.mq)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===(0,r.mq)(e.parentElement)&&s(e.parentElement)===e)&&("details"!==t||null==s(e))&&("input"!==t||"hidden"!==e.type)}function u(e){if(!l(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=function(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return(0,r.Ng)(n)?n.host:null}(t)){let n=t!==e,i="slot"===(0,r.mq)(t);if(t.hasAttribute("inert")||n&&"details"===(0,r.mq)(t)&&!t.open&&!function(e,t){let n=s(t);return!!n&&(e===n||(0,o.gR)(n,e))}(e,t)||t.hasAttribute("hidden")||!i&&!function(e,t){let n=(0,r.L9)(e);return t?"none"!==n.display:(0,a.J9)(e,n)}(t,n))return!1}return!0}function d(e){let t=e.tabIndex;if(t<0){let t=(0,r.mq)(e);if("details"===t||"audio"===t||"video"===t||(0,r.sb)(e)&&e.isContentEditable)return 0}return t}function c(e){return"input"!==(0,r.mq)(e)?null:"radio"===e.type&&""!==e.name?e:null}function f(e){if((0,r.sb)(e)&&"slot"===(0,r.mq)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,r.sb)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function h(e){return u(e)&&d(e)>=0}function p(e){let t=[];return!function e(t,n){f(t).forEach(t=>{l(t)&&n.push(t),e(t,n)})}(e,t),t.filter(u)}function m(e){let t=p(e);return t.filter(e=>d(e)>=0&&function(e,t){let n=c(e);if(!n)return!0;let r=t.find(e=>{let t=c(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=c(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function v(e,t){let n=m(e),r=n.length;if(0===r)return;let a=(0,o.RS)((0,i.R)(e)),s=n.indexOf(a);return n[-1===s?1===t?0:r-1:s+t]}function g(e){return v((0,i.R)(e).body,1)||e}function y(e){return v((0,i.R)(e).body,-1)||e}function $(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,o.gR)(n,r)}function b(e){m(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function x(e){let t=[];!function e(t,n,i){f(t).forEach(t=>{(0,r.sb)(t)&&t.matches(n)&&i.push(t),e(t,n,i)})}(e,"[data-tabindex]",t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}},80450:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(61992);let i=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function o(e,t){let n=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=i.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function s(t){o.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,i=!1,a=!1)=>{let s=a&&r?t:n;return i&&o.add(e),s.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(a=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(s),t.clear(),r=!1,i&&(i=!1,l.process(e))}};return l}(s),e),{}),{setup:u,read:d,resolveKeyframes:c,preUpdate:f,update:h,preRender:p,render:m,postRender:v}=l,g=()=>{let i=r.W.useManualTiming,s=i?a.timestamp:performance.now();n=!1,i||(a.delta=o?1e3/60:Math.max(Math.min(s-a.timestamp,40),1)),a.timestamp=s,a.isProcessing=!0,u.process(a),d.process(a),c.process(a),f.process(a),h.process(a),p.process(a),m.process(a),v.process(a),a.isProcessing=!1,n&&t&&(o=!1,e(g))},y=()=>{n=!0,o=!0,a.isProcessing||e(g)};return{schedule:i.reduce((e,t)=>
13{let r=l[t];return e[t]=(e,t=!1,i=!1)=>(n||y(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<i.length;t++)l[i[t]].cancel(e)},state:a,steps:l}}},80464:(e,t,n)=>{"use strict";n.d(t,{K:()=>l});var r,i=n(44922),o=n(43351);let a=(r||(r=n.t(i,2)))[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],s=a&&a!==i.useLayoutEffect?a:e=>e();function l(e){let t=(0,o.j)(u).current;return t.next=e,s(t.effect),t.trampoline}function u(){let e={next:void 0,callback:d,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function d(){}},80904:(e,t,n)=>{"use strict";function r(e){let t;return()=>(void 0===t&&(t=e()),t)}n.d(t,{p:()=>r})},81278:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(10192).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},81316:(e,t,n)=>{"use strict";n.d(t,{ge:()=>a,xU:()=>i});let r=()=>({translate:0,scale:1,origin:0,originPoint:0}),i=()=>({x:r(),y:r()}),o=()=>({min:0,max:0}),a=()=>({x:o(),y:o()})},82131:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>o});var r=n(44922),i=n(164);function o(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:a,register:s}=t,l=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return s(l)},[e]);let u=(0,r.useCallback)(()=>e&&a&&a(l),[l,a,e]);return!n&&a?[!1,u]:[!0]}},82422:(e,t,n)=>{"use strict";function r(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}n.d(t,{g:()=>r})},82537:(e,t,n)=>{"use strict";n.d(t,{e:()=>x});var r=n(44922),i=n(89243),o=n(80464),a=n(95925),s=n(77268),l=n(40324),u=n(90578),d=n(66162);let c=r.createContext(null);function f(e){let{children:t}=e,{filteredItems:n}=(0,s.Dc)(),i=r.useContext(c),o=i?i.items:n;return o?(0,d.jsx)(r.Fragment,{children:o.map(t)}):null}var h=n(43351),p=n(38138),m=n(78491);function v(e){let{children:t,elementsRef:n,labelsRef:i,onMapChange:a}=e,s=(0,o.K)(a),l=r.useRef(0),u=(0,h.j)(y).current,c=(0,h.j)(g).current,[f,v]=r.useState(0),b=r.useRef(f),x=(0,o.K)((e,t)=>{c.set(e,t??null),b.current+=1,v(b.current)}),w=(0,o.K)(e=>{c.delete(e),b.current+=1,v(b.current)}),C=r.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>e.isConnected).sort($).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,f]);(0,p.g)(()=>{if("function"!=typeof MutationObserver||0===C.size)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),0===t.size&&(b.current+=1,v(b.current))});
13return C.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[C]),(0,p.g)(()=>{b.current===f&&(n.current.length!==C.size&&(n.current.length=C.size),i&&i.current.length!==C.size&&(i.current.length=C.size),l.current=C.size),s(C)},[s,C,n,i,f]),(0,p.g)(()=>()=>{n.current=[]},[n]),(0,p.g)(()=>()=>{i&&(i.current=[])},[i]);let S=(0,o.K)(e=>(u.add(e),()=>{u.delete(e)}));(0,p.g)(()=>{u.forEach(e=>e(C))},[u,C]);let E=r.useMemo(()=>({register:x,unregister:w,subscribeMapChange:S,elementsRef:n,labelsRef:i,nextIndexRef:l}),[x,w,S,n,i,l]);return(0,d.jsx)(m.D.Provider,{value:E,children:t})}function g(){return new Map}function y(){return new Set}function $(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}var b=n(41161);let x=r.forwardRef(function(e,t){var n;let{render:c,className:h,style:p,children:m,...g}=e,y=(0,s.Ee)(),$=(0,s.ui)(),x=!!(0,l.O)(!0),{filteredItems:w,hasItems:C}=(0,s.Dc)(),S=(0,i.P)(y,u.T.selectionMode),E=(0,i.P)(y,u.T.grid),P=(0,i.P)(y,u.T.popupProps),T=(0,i.P)(y,u.T.virtualized),R=0===w.length,A=(0,o.K)(e=>{y.set("positionerElement",e)}),M=(0,o.K)(e=>{y.set("listElement",e)}),O=r.useMemo(()=>"function"==typeof m?n||(n=(0,d.jsx)(f,{children:m})):m,[m]),N=$.useState("floatingId"),I=(0,a.o)("div",e,{state:{empty:R},ref:[t,M,x?null:A],props:[P,{children:O,tabIndex:-1,id:N,role:E?"grid":"listbox","aria-multiselectable":"multiple"===S?"true":void 0,onKeyDown(e){if(!y.state.disabled&&!y.state.readOnly&&"Enter"===e.key){let t=y.state.activeIndex;if(null==t)return;(0,b.jo)(e);let n=e.nativeEvent,r=y.state.listRef.current[t];r&&(y.state.selectionEventRef.current=n,r.click(),y.state.selectionEventRef.current=null)}},onKeyDownCapture(){y.state.keyboardActiveRef.current=!0},onPointerMoveCapture(){y.state.keyboardActiveRef.current=!1}},g]});return T?I:(0,d.jsx)(v,{elementsRef:y.state.listRef,labelsRef:C?void 0:y.state.labelsRef,children:I})})},82778:(e,t,n)=>{"use strict";n.d(t,{m:()=>v});var r=n(92383),i=n(24160),o=n(57094),a=n(65300),s=n(27969),l=n(21761),u=n(35433),d=n(15422);let c=(0,n(50545).J)(()=>{try{document.createElement("div").animate({opacity:0}
13,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing");var f=n(11044);let h=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,p={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:h([0,.65,.55,1]),circOut:h([.55,0,1,.45]),backIn:h([.31,.01,.66,-.59]),backOut:h([.33,1.53,.69,.99])};var m=n(54479);class v extends u.q{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:u,onComplete:v}=e;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=e,(0,r.V)("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let g=function({type:e,...t}){return(0,m.W)(e)&&c()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},u){let m={[t]:n};l&&(m.offset=l);let v=function e(t,n){if(t)return"function"==typeof t?c()?(0,f.K)(t,n):"ease-out":(0,d.D)(t)?h(t):Array.isArray(t)?t.map(t=>e(t,n)||p.easeOut):p[t]}(s,i);Array.isArray(v)&&(m.easing=v);let g={delay:r,duration:i,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};return u&&(g.pseudoElement=u),e.animate(m,g)}(t,n,i,g,o),!1===g.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){let e=(0,l.X)(i,this.options,u,this.speed);this.updateMotionValue&&this.updateMotionValue(e),(0,a.e)(t,n,e),this.animation.cancel()}v?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return(0,i.X)(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,i.X)(e)}get time(){return(0,i.X)(Number(this.animation.currentTime)||0)}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,i.f)(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&(0,s.J)())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),o.l):r(this)}}},84161:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=n(87717);function i(e,t,n){let i=e.getProps();return(0,r.a)(i,t,void 0!==n?n:i.custom,e)}},84332:(e,t,n)=>{"use strict";n.d(t,{c:()=>i,k:()=>r});let{schedule:r,cancel:i}=(0,n(80450).I)(queueMicrotask,!1)},84679:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},85395:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});let r=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1}},85584:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var r=n(89956);let i={...r.ai,transform:Math.round};var o=n(89409);let a={rotate:o.uj,pathRotation:o.uj,rotateX:o.uj,rotateY:o.uj,rotateZ:o.uj,scale:r.hs,scaleX:r.hs,scaleY:r.hs,scaleZ:r.hs,skew:o.uj,skewX:o.uj,skewY:o.uj,distance:o.px,translateX:o.px,translateY:o.px,translateZ:o.px,x:o.px,y:o.px,z:o.px,perspective:o.px,transformPerspective:o.px,opacity:r.X4,originX:o.gQ,originY:o.gQ,originZ:o.px},s={borderWidth:o.px,borderTopWidth:o.px,borderRightWidth:o.px,borderBottomWidth:o.px,borderLeftWidth:o.px,borderRadius:o.px,borderTopLeftRadius:o.px,borderTopRightRadius:o.px,borderBottomRightRadius:o.px,borderBottomLeftRadius:o.px,width:o.px,maxWidth:o.px,height:o.px,maxHeight:o.px,top:o.px,right:o.px,bottom:o.px,left:o.px,inset:o.px,insetBlock:o.px,insetBlockStart:o.px,insetBlockEnd:o.px,insetInline:o.px,insetInlineStart:o.px,insetInlineEnd:o.px,padding:o.px,paddingTop:o.px,paddingRight:o.px,paddingBottom:o.px,paddingLeft:o.px,paddingBlock:o.px,paddingBlockStart:o.px,paddingBlockEnd:o.px,paddingInline:o.px,paddingInlineStart:o.px,paddingInlineEnd:o.px,margin:o.px,marginTop:o.px,marginRight:o.px,marginBottom:o.px,marginLeft:o.px,marginBlock:o.px,marginBlockStart:o.px,marginBlockEnd:o.px,marginInline:o.px,marginInlineStart:o.px,marginInlineEnd:o.px,fontSize:o.px,backgroundPositionX:o.px,backgroundPositionY:o.px,...a,zIndex:i,fillOpacity:r.X4,strokeOpacity:r.X4,numOctaves:i}},85639:()=>{}
13,85862:(e,t,n)=>{"use strict";n.d(t,{Dp:()=>s,Li:()=>a,u:()=>c,Md:()=>d,yg:()=>l,T:()=>u});var r=n(44922);function i(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}var o=n(66162);function a(e){return null!=e&&e.length>0&&"object"==typeof e[0]&&null!=e[0]&&"items"in e[0]}function s(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(a(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1}function l(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return i(e)}function u(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?i(e.value):i(e)}function d(e,t,n){if(n&&null!=e)return n(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return t[e]??l(e,n);if(Array.isArray(t)){let r=a(t)?t.flatMap(e=>e.items):t;if(null==e||"object"!=typeof e){let t=r.find(t=>t.value===e);return t&&null!=t.label?t.label:l(e,n)}if("value"in e){let t=r.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return l(e,n)}function c(e,t,n){return e.reduce((e,i,a)=>(a>0&&e.push(", "),e.push((0,o.jsx)(r.Fragment,{children:d(i,t,n)},a)),e),[])}},86623:(e,t,n)=>{"use strict";n.d(t,{Bo:()=>s,Dq:()=>m,N7:()=>o,Np:()=>a,R0:()=>u,SR:()=>l,Ui:()=>i,Xn:()=>h,_J:()=>f,dv:()=>r,jv:()=>p,pf:()=>d,qs:()=>c});let r="none",i="trigger-press",o="trigger-hover",a="outside-press",s="item-press",l="close-press",u="clear-press",d="input-change",c="input-clear",f="input-press",h="focus-out",p="escape-key",m="list-navigation"},86986:()=>{},87085:()=>{},87717:(e,t,n)=>{"use strict";function r(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function i(e,t,n,i){if("function"==typeof t){let[o,a]=r(i);t=t(void 0!==n?n:e.custom,o,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[o,a]=r(i);t=t(void 0!==n?n:e.custom,o,a)}return t}n.d(t,{a:()=>i})},88201:(e,t,n)=>{"use strict";n.d(t,{UC:()=>eC,Y9:()=>ex,q7:()=>eb,bL:()=>e$,l9:()=>ew});var r=n(44922),i=n.t(r,2),o=n(66162),a=n(78651);function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return t=>{let n=!1,r=e.map(e=>{let r=s(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():s(e[t],null)}}}}var u=!!("undefined"!=typeof window&&window.document&&window.document.createElement),d=globalThis?.document?r.useLayoutEffect:()=>{},c=i[" useInsertionEffect ".trim().toString()]||d;function f({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){let[o,a,s]=function({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),o=r.useRef(n),a=r.useRef(t);return c(()=>{a.current=t},[t]),r.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,i,a]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:o;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,i])}return[u,r.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else a(t)},[l,e,a,s])]}Symbol("RADIX:SYNC_STATE"),n(49715);var h=Symbol("radix.slottable");function p(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}var m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var o;let e,a,s=(o=n,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.
13isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(u.ref=t?l(t,s):s),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...a}=e,s=r.Children.toArray(i),l=s.find(p);if(l){let e=l.props.children,i=s.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,o.jsx)(t,{...a,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?n:t,{...a,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),v=!!("undefined"!=typeof window&&window.document&&window.document.createElement),g=globalThis?.document?r.useLayoutEffect:()=>{},y=i[" useInsertionEffect ".trim().toString()]||g;function $(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function b(...e){return t=>{let n=!1,r=e.map(e=>{let r=$(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():$(e[t],null)}}}}function x(...e){return r.useCallback(b(...e),e)}Symbol("RADIX:SYNC_STATE");var w=Symbol("radix.slottable");function C(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===w}var S=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var o;let e,a,s=(o=n,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(l.ref=t?b(t,s):s),r.cloneElement(n,l)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...a}=e,s=r.Children.toArray(i),l=s.find(C);if(l){let e=l.props.children,i=s.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,o.jsx)(t,{...a,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?n:t,{...a,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),E=e=>{let{present:t,children:n}=e,i=function(e){var t,n;let[i,o]=r.useState(),a=r.useRef(null),s=r.useRef(e),l=r.useRef("none"),[u,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=P(a.current);l.current="mounted"===u?e:"none"},[u]),g(()=>{let t=a.current,n=s.current;if(n!==e){let r=l.current,i=P(t);e?d("MOUNT"):"none"===i||t?.display==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),s.current=e}},[e,d]),g(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,n=n=>{let r=P(a.current).includes(CSS.escape(n.animationName));if(n.target===i&&r&&(d("ANIMATION_END"),!s.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(l.current=P(a.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}d("ANIMATION_END")}
13,[i,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:r.useCallback(e=>{a.current=e?getComputedStyle(e):null,o(e)},[])}}(t),o="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),a=x(i.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof n||i.isPresent?r.cloneElement(o,{ref:a}):null};function P(e){return e?.animationName||"none"}E.displayName="Presence";var T=i[" useId ".trim().toString()]||(()=>void 0),R=0,A="Collapsible",[M,O]=function(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let a=r.createContext(i),s=n.length;n=[...n,i];let l=t=>{let{scope:n,children:i,...l}=t,u=n?.[e]?.[s]||a,d=r.useMemo(()=>l,Object.values(l));return(0,o.jsx)(u.Provider,{value:d,children:i})};return l.displayName=t+"Provider",[l,function(n,o){let l=o?.[e]?.[s]||a,u=r.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}(A),[N,I]=M(A),k=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:i,defaultOpen:a,disabled:s,onOpenChange:l,...u}=e,[d,c]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){let[o,a,s]=function({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),o=r.useRef(n),a=r.useRef(t);return y(()=>{a.current=t},[t]),r.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,i,a]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:o;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,i])}return[u,r.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else a(t)},[l,e,a,s])]}({prop:i,defaultProp:a??!1,onChange:l,caller:A});return(0,o.jsx)(N,{scope:n,disabled:s,contentId:function(e){let[t,n]=r.useState(T());return g(()=>{n(e=>e??String(R++))},[void 0]),e||(t?`radix-${t}`:"")}(),open:d,onOpenToggle:r.useCallback(()=>c(e=>!e),[c]),children:(0,o.jsx)(S.div,{"data-state":B(d),"data-disabled":s?"":void 0,...u,ref:t})})});k.displayName=A;var D="CollapsibleTrigger",j=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=I(D,n);return(0,o.jsx)(S.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":B(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}(e.onClick,i.onOpenToggle)})});j.displayName=D;var L="CollapsibleContent",F=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=I(L,e.__scopeCollapsible);return(0,o.jsx)(E,{present:n||i.open,children:({present:e})=>(0,o.jsx)(V,{...r,ref:t,present:e})})});F.displayName=L;var V=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:i,children:a,...s}=e,l=I(L,n),[u,d]=r.useState(i),c=r.useRef(null),f=x(t,c),h=r.useRef(0),p=h.current,m=r.useRef(0),v=m.current,y=l.open||u,$=r.useRef(y),b=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>$.current=!1);return()=>cancelAnimationFrame(e)},[]),g(()=>{let e=c.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();h.current=t.height,m.current=t.width,$.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),d(i)}},[l.open,i]),(0,o.jsx)(S.div,{"data-state":B(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!y,...s,ref:f,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:y&&a}
13)});function B(e){return e?"open":"closed"}var W=i[" useId ".trim().toString()]||(()=>void 0),U=0,_=n(81708),G="Accordion",K=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[H,q,X]=(0,a.N)(G),[z,Y]=function(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let a=r.createContext(i),s=n.length;n=[...n,i];let l=t=>{let{scope:n,children:i,...l}=t,u=n?.[e]?.[s]||a,d=r.useMemo(()=>l,Object.values(l));return(0,o.jsx)(u.Provider,{value:d,children:i})};return l.displayName=t+"Provider",[l,function(n,o){let l=o?.[e]?.[s]||a,u=r.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}(G,[X,O]),Z=O(),J=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,o.jsx)(H.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,o.jsx)(ei,{...r,ref:t}):(0,o.jsx)(er,{...r,ref:t})})});J.displayName=G;var[Q,ee]=z(G),[et,en]=z(G,{collapsible:!1}),er=r.forwardRef((e,t)=>{let{value:n,defaultValue:i,onValueChange:a=()=>{},collapsible:s=!1,...l}=e,[u,d]=f({prop:n,defaultProp:i??"",onChange:a,caller:G});return(0,o.jsx)(Q,{scope:e.__scopeAccordion,value:r.useMemo(()=>u?[u]:[],[u]),onItemOpen:d,onItemClose:r.useCallback(()=>s&&d(""),[s,d]),children:(0,o.jsx)(et,{scope:e.__scopeAccordion,collapsible:s,children:(0,o.jsx)(es,{...l,ref:t})})})}),ei=r.forwardRef((e,t)=>{let{value:n,defaultValue:i,onValueChange:a=()=>{},...s}=e,[l,u]=f({prop:n,defaultProp:i??[],onChange:a,caller:G}),d=r.useCallback(e=>u((t=[])=>[...t,e]),[u]),c=r.useCallback(e=>u((t=[])=>t.filter(t=>t!==e)),[u]);return(0,o.jsx)(Q,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:c,children:(0,o.jsx)(et,{scope:e.__scopeAccordion,collapsible:!0,children:(0,o.jsx)(es,{...s,ref:t})})})}),[eo,ea]=z(G),es=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:i,dir:a,orientation:s="vertical",...u}=e,d=function(...e){return r.useCallback(l(...e),e)}(r.useRef(null),t),c=q(n),f="ltr"===(0,_.jH)(a),h=function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}(e.onKeyDown,e=>{if(!K.includes(e.key))return;let t=e.target,n=c().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(-1===r)return;e.preventDefault();let o=r,a=i-1,l=()=>{(o=r+1)>a&&(o=0)},u=()=>{(o=r-1)<0&&(o=a)};switch(e.key){case"Home":o=0;break;case"End":o=a;break;case"ArrowRight":"horizontal"===s&&(f?l():u());break;case"ArrowDown":"vertical"===s&&l();break;case"ArrowLeft":"horizontal"===s&&(f?u():l());break;case"ArrowUp":"vertical"===s&&u()}let d=o%i;n[d].ref.current?.focus()});return(0,o.jsx)(eo,{scope:n,disabled:i,direction:a,orientation:s,children:(0,o.jsx)(H.Slot,{scope:n,children:(0,o.jsx)(m.div,{...u,"data-orientation":s,ref:d,onKeyDown:i?void 0:h})})})}),el="AccordionItem",[eu,ed]=z(el),ec=r.forwardRef((e,t)=>{let{__scopeAccordion:n,value:i,...a}=e,s=ea(el,n),l=ee(el,n),u=Z(n),c=function(e){let[t,n]=r.useState(W());return d(()=>{n(e=>e??String(U++))},[void 0]),e||(t?`radix-${t}`:"")}(),f=i&&l.value.includes(i)||!1,h=s.disabled||e.disabled;return(0,o.jsx)(eu,{scope:n,open:f,disabled:h,triggerId:c,children:(0,o.jsx)(k,{"data-orientation":s.orientation,"data-state":ey(f),...u,...a,ref:t,disabled:h,open:f,onOpenChange:e=>{e?l.onItemOpen(i):l.onItemClose(i)}})})});ec.displayName=el;var ef="AccordionHeader",eh=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=ea(G,n),a=ed(ef,n);return(0,o.jsx)(m.h3,{"data-orientation":i.orientation,"data-state":ey(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});eh.displayName=ef;var ep="AccordionTrigger",em=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=ea(G,n),a=ed(ep,n),s=en(ep,n),l=Z(n);return(0,o.jsx)(H.ItemSlot,{scope:n,children:(0,o.jsx)(j,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...l,...r,ref:t})})});em.displayName=ep;var ev="AccordionContent",eg=r.forwardRef((e,t)=>
13{let{__scopeAccordion:n,...r}=e,i=ea(G,n),a=ed(ev,n),s=Z(n);return(0,o.jsx)(F,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function ey(e){return e?"open":"closed"}eg.displayName=ev;var e$=J,eb=ec,ex=eh,ew=em,eC=eg},88341:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var r=n(65728),i=n(59945),o=n(448);function a(e,t,n){let a=(0,o.x)(e,t,n);for(let n in e)((0,r.S)(e[n])||(0,r.S)(t[n]))&&(a[-1!==i.U.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return a}},88517:(e,t,n)=>{"use strict";n.d(t,{N:()=>$});var r=n(66162),i=n(44922),o=n(61108),a=n(37292),s=n(25689),l=n(92886),u=n(20648),d=n(1115);function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,u.s)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,u.s)(e)&&e.offsetWidth||0,r=(0,u.s)(e)&&e.offsetHeight||0,i=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(i.height),o.width=parseFloat(i.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left,o.bottom=r-o.height-o.top,o.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:e,isPresent:t,anchorX:n,anchorY:o,root:a,pop:s}){let l=(0,i.useId)(),u=(0,i.useRef)(null),h=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:p}=(0,i.useContext)(d.Q),m=function(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=c(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():c(e[t],null)}}}}(...e),e)}(u,e.props?.ref??e?.ref);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:d,right:c,bottom:f,direction:m}=h.current;if(t||!1===s||!u.current||!e||!r)return;let v="rtl"===m,g="left"===n?v?`right: ${c}`:`left: ${d}`:v?`left: ${d}`:`right: ${c}`,y="bottom"===o?`bottom: ${f}`:`top: ${i}`;u.current.dataset.motionPopId=l;let $=document.createElement("style");p&&($.nonce=p);let b=a??document.head;return b.appendChild($),$.sheet&&$.sheet.insertRule(`
14          [data-motion-pop-id="${l}"] {
15            position: absolute !important;
16            width: ${e}px !important;
17            height: ${r}px !important;
18            ${g}px !important;
19            ${y}px !important;
20          }
21        `),()=>{u.current?.removeAttribute("data-motion-pop-id"),b.contains($)&&b.removeChild($)}},[t]),(0,r.jsx)(f,{isPresent:t,childRef:u,sizeRef:h,pop:s,children:!1===s?e:i.cloneElement(e,{ref:m})})}let p=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:u,presenceAffectsLayout:d,mode:c,anchorX:f,anchorY:p,root:v})=>{let g=(0,a.M)(m),y=(0,i.useId)(),$=(0,i.useRef)(n),b=(0,i.useRef)(o);(0,s.E)(()=>{$.current=n,b.current=o});let x=!0,w=(0,i.useMemo)(()=>(x=!1,{id:y,initial:t,isPresent:n,custom:u,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;o&&o()},register:e=>(g.set(e,!1),()=>{g.delete(e),$.current||g.size||b.current?.()})}),[n,g,o]);return d&&x&&(w={...w}),(0,i.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[n]),i.useEffect(()=>{n||g.size||!o||o()},[n]),e=(0,r.jsx)(h,{pop:"popLayout"===c,isPresent:n,anchorX:f,anchorY:p,root:v,children:e}),(0,r.jsx)(l.t.Provider,{value:w,children:e})};function m(){return new Map}var v=n(29313);let g=e=>e.key||"";function y(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let $=({children:e,custom:t,initial:n=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:d="sync",propagate:c=!1,anchorX:f="left",anchorY:h="top",root:m})=>{let[$,b]=(0,v.xQ)(c),x=(0,i.useMemo)(()=>y(e),[e]),w=c&&!$?[]:x.map(g),C=(0,i.useRef)(!0),S=(0,i.useRef)(x),E=(0,a.M)(()=>new Map),P=(0,i.useRef)(new Set),[T,R]=(0,i.useState)(x),[A,M]=(0,i.useState)(x);(0,s.E)(()=>{C.current=!1,S.current=x;for(let e=0;e<A.length;e++){let t=g(A[e]);w.includes(t)?(E.delete(t),P.current.delete(t)):!0!==E.get(t)&&E.set(t,!1)}},[A,w.length,w.join("-")]);let O=[];if(x!==T){let e=[...x];for(let t=0;t<A.length;t++){let n=A[t],r=g(n);w.includes(r)||(e.splice(t,0,n),O.push(n))}return"wait"===d&&O.length&&(e=O),M(y(e)),R(x),null}let{forceRender:N}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:A.map(e=>{let i=g(e),o=(!c||!!$)&&(x===A||w.includes(i));return(0,r.jsx)(p,{isPresent:o,initial:(!C.current||!!n)&&void 0,custom:t,presenceAffectsLayout:u,mode:d,root:m,onExitComplete:o?void 0:()=>
21{if(P.current.has(i)||!E.has(i))return;P.current.add(i),E.set(i,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(N?.(),M(S.current),c&&b?.(),l&&l())},anchorX:f,anchorY:h,children:e},i)})})}},88750:()=>{},89243:(e,t,n)=>{"use strict";let r;n.d(t,{P:()=>u});var i=n(44922),o=n(41568),a=n(75090),s=n(2092);let l=(0,s._)(19)?function(e,t,n,a,s){let l;if(!r){let r=i.useCallback(()=>t(e.getSnapshot(),n,a,s),[e,t,n,a,s]);return(0,o.useSyncExternalStore)(e.subscribe,r,r)}let u=r.syncIndex;return r.syncIndex+=1,r.didInitialize?(l=r.syncHooks[u]).store===e&&l.selector===t&&Object.is(l.a1,n)&&Object.is(l.a2,a)&&Object.is(l.a3,s)||(l.store!==e&&(r.didChangeStore=!0),l.store=e,l.selector=t,l.a1=n,l.a2=a,l.a3=s,l.didChange=!0):(l={store:e,selector:t,a1:n,a2:a,a3:s,value:t(e.getSnapshot(),n,a,s),didChange:!1},r.syncHooks.push(l)),l.value}:function(e,t,n,r,i){return(0,a.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))};function u(e,t,n,r,i){return l(e,t,n,r,i)}[].push({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,o.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}})},89409:(e,t,n)=>{"use strict";n.d(t,{KN:()=>o,gQ:()=>u,px:()=>a,uj:()=>i,vh:()=>s,vw:()=>l});let r=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),i=r("deg"),o=r("%"),a=r("px"),s=r("vh"),l=r("vw"),u={...o,parse:e=>o.parse(e)/100,transform:e=>o.transform(100*e)}},89956:(e,t,n)=>{"use strict";n.d(t,{X4:()=>o,ai:()=>i,hs:()=>a});var r=n(31749);let i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...i,transform:e=>(0,r.q)(0,1,e)},a={...i,default:1}},90221:(e,t,n)=>{"use strict";n.d(t,{PT:()=>h,VN:()=>p,lZ:()=>a,v6:()=>o});var r=n(21449);let i={};function o(e,t,n,r,i){if(!n&&!r&&!i&&!e)return s(t);let o=s(e);return t&&(o=l(o,t)),n&&(o=l(o,n)),r&&(o=l(o,r)),i&&(o=l(o,i)),o}function a(e){if(0===e.length)return i;if(1===e.length)return s(e[0]);let t=s(e[0]);for(let n=1;n<e.length;n+=1)t=l(t,e[n]);return t}function s(e){return d(e)?{...c(e,i)}:function(e){let t={...e};for(let e in t){let n=t[e];u(e,n)&&(t[e]=f(n))}return t}(e)}function l(e,t){return d(t)?c(t,e):function(e,t){if(!t)return e;for(let n in t){let i=t[n];switch(n){case"style":e[n]=(0,r.r)(e.style,i);break;case"className":e[n]=p(e.className,i);break;default:u(n,i)?e[n]=function(e,t){return t?e?(...n)=>{let r=n[0];if(m(r)){h(r);let i=t(...n);return r.baseUIHandlerPrevented||e?.(...n),i}let i=t(...n);return e?.(...n),i}:f(t):e}(e[n],i):e[n]=i}}return e}(e,t)}function u(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return 111===n&&110===r&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function d(e){return"function"==typeof e}function c(e,t){return d(e)?e(t):e??i}function f(e){return e?(...t)=>{let n=t[0];return m(n)&&h(n),e(...t)}:e}function h(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function p(e,t){return t?e?t+" "+e:t:e}function m(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},90578:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var r=n(44810),i=n(14611),o=n(85862);let a={id:(0,r.M)(e=>e.id),labelId:(0,r.M)(e=>e.labelId),items:(0,r.M)(e=>e.items),selectedValue:(0,r.M)(e=>e.selectedValue),hasSelectionChips:(0,r.M)(e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0}),hasSelectedValue:(0,r.M)(e=>{let{selectedValue:t,selectionMode:n}=e;return null!=t&&(!("multiple"===n&&Array.isArray(t))||t.length>0)}),hasNullItemLabel:(0,r.M)((e,t)=>!!t&&(0,o.Dp)(e.items)),open:(0,r.M)(e=>e.open),mounted:(0,r.M)(e=>e.mounted),forceMounted:(0,r.M)(e=>e.forceMounted),inline:(0,r.M)(e=>e.inline),activeIndex:(0,r.M)(e=>e.activeIndex),selectedIndex:(0,r.M)(e=>e.selectedIndex),isActive:(0,r.M)((e,t)=>e.activeIndex===t),isSelected:(0,r.M)((e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>(0,i.tl)(t,e,n)):(0,i.tl)(t,r,n)}),transitionStatus:(0,r.M)(e=>e.transitionStatus),popupProps:(0,r.M)(e=>e.popupProps),inputProps:(0,r.M)(e=>e.inputProps),triggerProps:(0,r.M)(e=>e.triggerProps),getItemProps:(0,r.M)(e=>e.getItemProps),positionerElement:(0,r.M)(e=>e.positionerElement),listElement:(0,r.M)(e=>e.listElement),triggerElement:(0,r.M)(e=>e.triggerElement),inputElement:(0,r.M)(e=>e.inputElement),inputGroupElement:(0,r.M)(e=>e.inputGroupElement),popupSide:(0,r.M)(e=>e.popupSide),openMethod:(0,r.M)(e=>e.openMethod),inputInsidePopup:(0,r.M)(e=>e.inputInsidePopup),selectionMode:(0,r.M)(e=>e.selectionMode),name:(0,r.M)(e=>e.name),form:(0,r.M)(e=>e.form),disabled:(0,r.M)(e=>e.disabled),readOnly:(0,r.M)(e=>e.readOnly),required:(0,r.M)(e=>e.required),grid:(0,r.M)(e=>e.grid),virtualized:(0,r.M)(e=>e.virtualized),itemToStringLabel:(0,r.M)(e=>e.itemToStringLabel),isItemEqualToValue:(0,r.M)(e=>e.isItemEqualToValue),modal:(0,r.M)(e=>e.modal),autoHighlight:(0,r.M)(e=>e.autoHighlight),submitOnItemClick:(0,r.M)(e=>e.submitOnItemClick)}}
21,90602:(e,t,n)=>{"use strict";n.d(t,{UC:()=>ty,YJ:()=>tb,In:()=>tv,q7:()=>tx,VF:()=>tC,p4:()=>tw,ZL:()=>tg,bL:()=>th,wn:()=>tE,PP:()=>tS,l9:()=>tp,WT:()=>tm,LM:()=>t$});var r,i=n(44922),o=n.t(i,2),a=n(49715),s=n(13442),l=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function u(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var d=n(78651);function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function f(...e){return t=>{let n=!1,r=e.map(e=>{let r=c(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():c(e[t],null)}}}}function h(...e){return i.useCallback(f(...e),e)}var p=n(66162),m=n(81708);function v(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){var o;let e,a,s=(o=n,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(l.ref=t?f(t,s):s),i.cloneElement(n,l)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=i.forwardRef((e,n)=>{let{children:r,...o}=e,a=i.Children.toArray(r),s=a.find(y);if(s){let e=s.props.children,r=a.map(t=>t!==s?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,p.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,p.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var g=Symbol("radix.slottable");function y(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===g}var $=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(i?n:t,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function b(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var x="dismissableLayer.update",w=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),C=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:d,...c}=e,f=i.useContext(w),[m,v]=i.useState(null),g=m?.ownerDocument??globalThis?.document,[,y]=i.useState({}),C=h(t,e=>v(e)),P=Array.from(f.layers),[T]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),R=P.indexOf(T),A=m?P.indexOf(m):-1,M=f.layersWithOutsidePointerEventsDisabled.size>0,O=A>=R,N=function(e,t=globalThis?.document){let n=b(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){E("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...f.branches].some(e=>e.contains(t));O&&!n&&(a?.(e),l?.(e),e.defaultPrevented||d?.())},g),I=function(e,t=globalThis?.document){let n=b(e),r=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!r.current&&E("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...f.branches].some(e=>e.contains(t))&&(s?.(e),l?.(e),e.defaultPrevented||d?.())},g);return!function(e,t=globalThis?.document){let n=b(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{A===f.layers.size-1&&(o?.(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},g),i.useEffect(()=>{if(m)return n&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(r=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),S(),()=>{n&&1===f.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=r)}},[m,g,n,f]),i.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),S())},[m,f]),i.useEffect(()=>{let e=()=>y({});return document.addEventListener(x,e),()=>document.removeEventListener(x,e)},[]),(0,p.jsx)($.div,{...c,ref:C,style:{pointerEvents:M?O?"auto":"none":void 0,...e.style},onFocusCapture:u(e.onFocusCapture,I.onFocusCapture),onBlurCapture:u(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:u(e.onPointerDownCapture,N.onPointerDownCapture)})});function S(){let e=new CustomEvent(x);document.dispatchEvent(e)}function E(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),r)i&&a.flushSync(()=>i.dispatchEvent(o));else i.dispatchEvent(o)}C.displayName="DismissableLayer",i.forwardRef((e,t)=>
21{let n=i.useContext(w),r=i.useRef(null),o=h(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,p.jsx)($.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var P=0;function T(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var R="focusScope.autoFocusOnMount",A="focusScope.autoFocusOnUnmount",M={bubbles:!1,cancelable:!0},O=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[l,u]=i.useState(null),d=b(o),c=b(a),f=i.useRef(null),m=h(t,e=>u(e)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(v.paused||!l)return;let t=e.target;l.contains(t)?f.current=t:k(f.current,{select:!0})},t=function(e){if(v.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||k(f.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&k(l)});return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,l,v.paused]),i.useEffect(()=>{if(l){D.add(v);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(R,M);l.addEventListener(R,d),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(k(r,{select:t}),document.activeElement!==n)return}(N(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&k(l))}return()=>{l.removeEventListener(R,d),setTimeout(()=>{let t=new CustomEvent(A,M);l.addEventListener(A,c),l.dispatchEvent(t),t.defaultPrevented||k(e??document.body,{select:!0}),l.removeEventListener(A,c),D.remove(v)},0)}}},[l,d,c,v]);let g=i.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=N(e);return[I(t,e),I(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&k(o,{select:!0})):(e.preventDefault(),n&&k(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,v.paused]);return(0,p.jsx)($.div,{tabIndex:-1,...s,ref:m,onKeyDown:g})});function N(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function I(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function k(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}O.displayName="FocusScope";var D=function(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=j(e,t)).unshift(t)},remove(t){e=j(e,t),e[0]?.resume()}}}();function j(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var L=globalThis?.document?i.useLayoutEffect:()=>{},F=o[" useId ".trim().toString()]||(()=>void 0),V=0;function B(e){let[t,n]=i.useState(F());return L(()=>{e||n(e=>e??String(V++))},[e]),e||(t?`radix-${t}`:"")}var W=n(87792),U=i.forwardRef((e,t)=>{let{container:n,...r}=e,[o,s]=i.useState(!1);L(()=>s(!0),[]);let l=n||o&&globalThis?.document?.body;return l?a.createPortal((0,p.jsx)($.div,{...r,ref:t}),l):null});U.displayName="Portal";var _=o[" useInsertionEffect ".trim().toString()]||L;function G({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,a,s]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),a=i.useRef(t);return _(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,r])}return[u,i.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else a(t)},[l,e,a,s])]}Symbol("RADIX:SYNC_STATE");var K=n(23858);function H(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var q=Symbol("radix.slottable");function X(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===q}var z=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
21{let n=function(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){var o;let e,a,s=(o=n,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(l.ref=t?function(...e){return t=>{let n=!1,r=e.map(e=>{let r=H(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():H(e[t],null)}}}}(t,s):s),i.cloneElement(n,l)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=i.forwardRef((e,n)=>{let{children:r,...o}=e,a=i.Children.toArray(r),s=a.find(X);if(s){let e=s.props.children,r=a.map(t=>t!==s?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,p.jsx)(t,{...o,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,p.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(i?n:t,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Y=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});i.forwardRef((e,t)=>(0,p.jsx)(z.span,{...e,ref:t,style:{...Y,...e.style}})).displayName="VisuallyHidden";var Z=n(35199),J=n(49856),Q=n(22442),ee=n(43731),et=(0,n(73041).f)(),en=function(){},er=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:en,onWheelCapture:en,onTouchMoveCapture:en}),o=r[0],a=r[1],s=e.forwardProps,l=e.children,u=e.className,d=e.removeScrollBar,c=e.enabled,f=e.shards,h=e.sideCar,p=e.noRelative,m=e.noIsolation,v=e.inert,g=e.allowPinchZoom,y=e.as,$=e.gapMode,b=(0,J.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(0,ee.S)([n,t]),w=(0,J.Cl)((0,J.Cl)({},b),o);return i.createElement(i.Fragment,null,c&&i.createElement(h,{sideCar:et,removeScrollBar:d,shards:f,noRelative:p,noIsolation:m,inert:v,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:$}),s?i.cloneElement(i.Children.only(l),(0,J.Cl)((0,J.Cl)({},w),{ref:x})):i.createElement(void 0===y?"div":y,(0,J.Cl)({},w,{className:u,ref:x}),l))});er.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},er.classNames={fullWidth:Q.pN,zeroRight:Q.Mi};var ei=n(92713),eo=n(73169),ea=n(14508),es=!1;if("undefined"!=typeof window)try{var el=Object.defineProperty({},"passive",{get:function(){return es=!0,!0}});window.addEventListener("test",el,el),window.removeEventListener("test",el,el)}catch(e){es=!1}var eu=!!es&&{passive:!1},ed=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},ec=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ef(e,r)){var i=eh(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ef=function(e,t){return"v"===e?ed(t,"overflowY"):ed(t,"overflowX")},eh=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ep=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),d=!1,c=s>0,f=0,h=0;do{if(!l)break;var p=eh(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&ef(e,l)&&(f+=v,h+=m);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return c&&(i&&1>Math.abs(f)||!i&&s>f)?d=!0:!c&&(i&&1>Math.abs(h)||!i&&-s>h)&&(d=!0),d},em=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ev=function(e){return[e.deltaX,e.deltaY]},eg=function(e){return e&&"current"in e?e.current:e},ey=0,e$=[];let eb=(0,ei.m)(et,function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(ey++)[0],a=i.useState(ea.T0)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,J.fX)([e.lockRef.current],(e.shards||[]).map(eg),!0).filter(
21Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,o=em(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],d=e.target,c=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===c&&"range"===d.type)return!1;var f=window.getSelection(),h=f&&f.anchorNode;if(h&&(h===d||h.contains(d)))return!1;var p=ec(c,d);if(!p)return!0;if(p?i=c:(i="v"===c?"h":"v",p=ec(c,d)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var m=r.current||i;return ep(m,t,e,"h"===m?l:u,!0)},[]),u=i.useCallback(function(e){if(e$.length&&e$[e$.length-1]===a){var n="deltaY"in e?ev(e):em(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(eg).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=i.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=i.useCallback(function(e){n.current=em(e),r.current=void 0},[]),f=i.useCallback(function(t){d(t.type,ev(t),t.target,l(t,e.lockRef.current))},[]),h=i.useCallback(function(t){d(t.type,em(t),t.target,l(t,e.lockRef.current))},[]);i.useEffect(function(){return e$.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,eu),document.addEventListener("touchmove",u,eu),document.addEventListener("touchstart",c,eu),function(){e$=e$.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,eu),document.removeEventListener("touchmove",u,eu),document.removeEventListener("touchstart",c,eu)}},[]);var p=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?i.createElement(eo.jp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)});var ex=i.forwardRef(function(e,t){return i.createElement(er,(0,J.Cl)({},e,{ref:t,sideCar:eb}))});ex.classNames=er.classNames;var ew=[" ","Enter","ArrowUp","ArrowDown"],eC=[" ","Enter"],eS="Select",[eE,eP,eT]=(0,d.N)(eS),[eR,eA]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r),a=n.length;n=[...n,r];let s=t=>{let{scope:n,children:r,...s}=t,l=n?.[e]?.[a]||o,u=i.useMemo(()=>s,Object.values(s));return(0,p.jsx)(l.Provider,{value:u,children:r})};return s.displayName=t+"Provider",[s,function(n,s){let l=s?.[e]?.[a]||o,u=i.useContext(l);if(u)return u;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(eS,[eT,W.Bk]),eM=(0,W.Bk)(),[eO,eN]=eR(eS),[eI,ek]=eR(eS),eD=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:u,dir:d,name:c,autoComplete:f,disabled:h,required:v,form:g}=e,y=eM(t),[$,b]=i.useState(null),[x,w]=i.useState(null),[C,S]=i.useState(!1),E=(0,m.jH)(d),[P,T]=G({prop:r,defaultProp:o??!1,onChange:a,caller:eS}),[R,A]=G({prop:s,defaultProp:l,onChange:u,caller:eS}),M=i.useRef(null),O=!$||g||!!$.closest("form"),[N,I]=i.useState(new Set),k=Array.from(N).map(e=>e.props.value).join(";");return(0,p.jsx)(W.bL,{...y,children:(0,p.jsxs)(eO,{required:v,scope:t,trigger:$,onTriggerChange:b,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:B(),value:R,onValueChange:A,open:P,onOpenChange:T,dir:E,triggerPointerDownPosRef:M,disabled:h,children:[(0,p.jsx)(eE.Provider,{scope:t,children:(0,p.jsx)(eI,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(e=>{I(t=>new Set(t).add(e))},[]),onNativeOptionRemove:i.useCallback(e=>{I(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),O?(0,p.jsxs)(tu,{"aria-hidden":!0,required:v,tabIndex:-1,name:c,autoComplete:f,value:R,onChange:e=>A(e.target.value),disabled:h,form:g,children:[void 0===R?(0,p.jsx)("option",{value:""}):null,Array.from(N)]},k):null]})})};eD.displayName=eS;var ej="SelectTrigger",eL=i.forwardRef((e,t)=>
21{let{__scopeSelect:n,disabled:r=!1,...o}=e,a=eM(n),s=eN(ej,n),l=s.disabled||r,d=h(t,s.onTriggerChange),c=eP(n),f=i.useRef("touch"),[m,v,g]=tc(e=>{let t=c().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=tf(t,e,n);void 0!==r&&s.onValueChange(r.value)}),y=e=>{l||(s.onOpenChange(!0),g()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,p.jsx)(W.Mz,{asChild:!0,...a,children:(0,p.jsx)($.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":td(s.value)?"":void 0,...o,ref:d,onClick:u(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&y(e)}),onPointerDown:u(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:u(o.onKeyDown,e=>{let t=""!==m.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&ew.includes(e.key)&&(y(),e.preventDefault())})})})});eL.displayName=ej;var eF="SelectValue",eV=i.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:o,placeholder:a="",...s}=e,l=eN(eF,n),{onValueNodeHasChildrenChange:u}=l,d=void 0!==o,c=h(t,l.onValueNodeChange);return L(()=>{u(d)},[u,d]),(0,p.jsx)($.span,{...s,ref:c,style:{pointerEvents:"none"},children:td(l.value)?(0,p.jsx)(p.Fragment,{children:a}):o})});eV.displayName=eF;var eB=i.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,p.jsx)($.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});eB.displayName="SelectIcon";var eW=e=>(0,p.jsx)(U,{asChild:!0,...e});eW.displayName="SelectPortal";var eU="SelectContent",e_=i.forwardRef((e,t)=>{let n=eN(eU,e.__scopeSelect),[r,o]=i.useState();return(L(()=>{o(new DocumentFragment)},[]),n.open)?(0,p.jsx)(eq,{...e,ref:t}):r?a.createPortal((0,p.jsx)(eG,{scope:e.__scopeSelect,children:(0,p.jsx)(eE.Slot,{scope:e.__scopeSelect,children:(0,p.jsx)("div",{children:e.children})})}),r):null});e_.displayName=eU;var[eG,eK]=eR(eU),eH=v("SelectContent.RemoveScroll"),eq=i.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:l,sideOffset:d,align:c,alignOffset:f,arrowPadding:m,collisionBoundary:v,collisionPadding:g,sticky:y,hideWhenDetached:$,avoidCollisions:b,...x}=e,w=eN(eU,n),[S,E]=i.useState(null),[R,A]=i.useState(null),M=h(t,e=>E(e)),[N,I]=i.useState(null),[k,D]=i.useState(null),j=eP(n),[L,F]=i.useState(!1),V=i.useRef(!1);i.useEffect(()=>{if(S)return(0,Z.Eq)(S)},[S]),i.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??T()),document.body.insertAdjacentElement("beforeend",e[1]??T()),P++,()=>{1===P&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),P--}},[]);let B=i.useCallback(e=>{let[t,...n]=j().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:"nearest"}),n===t&&R&&(R.scrollTop=0),n===r&&R&&(R.scrollTop=R.scrollHeight),n?.focus(),document.activeElement!==i))return},[j,R]),W=i.useCallback(()=>B([N,S]),[B,N,S]);i.useEffect(()=>{L&&W()},[L,W]);let{onOpenChange:U,triggerPointerDownPosRef:_}=w;i.useEffect(()=>{if(S){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(_.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(_.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():S.contains(n.target)||U(!1),document.removeEventListener("pointermove",t),_.current=null};return null!==_.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[S,U,_]),i.useEffect(()=>{let e=()=>U(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[U]);let[G,K]=tc(e=>{let t=j().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=tf(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),H=i.useCallback((e,t,n)=>{let r=!V.current&&!n;(void 0!==w.value&&w.value===t||r)&&(I(e),r&&(V.current=!0))},[w.value]),q=i.useCallback(()=>S?.focus(),[S]),X=i.useCallback((e,t,n)=>{let r=!V.current&&!n;(void 0!==w.value&&w.value===t||r)&&D(e)},[w.value]),z="popper"===r?ez:eX,Y=z===ez?{side:l,sideOffset:d,align:c,alignOffset:f,arrowPadding:m,collisionBoundary:v,collisionPadding:g,sticky:y,hideWhenDetached:$,avoidCollisions:b}:{};return(0,p.jsx)(eG,{scope:n,content:S,viewport:R,onViewportChange:A,itemRefCallback:H,selectedItem:N,onItemLeave:q,itemTextRefCallback:X,focusSelectedItem:W,selectedItemText:k,position:r,isPositioned:L,searchRef:G,children:(0,p.jsx)(ex,{as:eH,allowPinchZoom:!0,children:(0,p.jsx)(O,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:u(o,e=>{w.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,p.jsx)(C,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:(0,p.jsx)(z,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:e=>e.preventDefault(),...x,...Y,onPlaced:()=>F(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:u(x.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
21if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||K(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=j().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>B(t)),e.preventDefault()}})})})})})})});eq.displayName="SelectContentImpl";var eX=i.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,a=eN(eU,n),l=eK(eU,n),[u,d]=i.useState(null),[c,f]=i.useState(null),m=h(t,e=>f(e)),v=eP(n),g=i.useRef(!1),y=i.useRef(!0),{viewport:b,selectedItem:x,selectedItemText:w,focusSelectedItem:C}=l,S=i.useCallback(()=>{if(a.trigger&&a.valueNode&&u&&c&&b&&x&&w){let e=a.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=w.getBoundingClientRect();if("rtl"!==a.dir){let r=i.left-t.left,o=n.left-r,a=e.left-o,l=e.width+a,d=Math.max(l,t.width),c=window.innerWidth-10,f=(0,s.q)(o,[10,Math.max(10,c-d)]);u.style.minWidth=l+"px",u.style.left=f+"px"}else{let r=t.right-i.right,o=window.innerWidth-n.right-r,a=window.innerWidth-e.right-o,l=e.width+a,d=Math.max(l,t.width),c=window.innerWidth-10,f=(0,s.q)(o,[10,Math.max(10,c-d)]);u.style.minWidth=l+"px",u.style.right=f+"px"}let o=v(),l=window.innerHeight-20,d=b.scrollHeight,f=window.getComputedStyle(c),h=parseInt(f.borderTopWidth,10),p=parseInt(f.paddingTop,10),m=parseInt(f.borderBottomWidth,10),y=h+p+d+parseInt(f.paddingBottom,10)+m,$=Math.min(5*x.offsetHeight,y),C=window.getComputedStyle(b),S=parseInt(C.paddingTop,10),E=parseInt(C.paddingBottom,10),P=e.top+e.height/2-10,T=x.offsetHeight/2,R=h+p+(x.offsetTop+T);if(R<=P){let e=o.length>0&&x===o[o.length-1].ref.current;u.style.bottom="0px";let t=Math.max(l-P,T+(e?E:0)+(c.clientHeight-b.offsetTop-b.offsetHeight)+m);u.style.height=R+t+"px"}else{let e=o.length>0&&x===o[0].ref.current;u.style.top="0px";let t=Math.max(P,h+b.offsetTop+(e?S:0)+T);u.style.height=t+(y-R)+"px",b.scrollTop=R-P+b.offsetTop}u.style.margin="10px 0",u.style.minHeight=$+"px",u.style.maxHeight=l+"px",r?.(),requestAnimationFrame(()=>g.current=!0)}},[v,a.trigger,a.valueNode,u,c,b,x,w,a.dir,r]);L(()=>S(),[S]);let[E,P]=i.useState();L(()=>{c&&P(window.getComputedStyle(c).zIndex)},[c]);let T=i.useCallback(e=>{e&&!0===y.current&&(S(),C?.(),y.current=!1)},[S,C]);return(0,p.jsx)(eY,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:g,onScrollButtonChange:T,children:(0,p.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:(0,p.jsx)($.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});eX.displayName="SelectItemAlignedPosition";var ez=i.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:i=10,...o}=e,a=eM(n);return(0,p.jsx)(W.UC,{...a,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});
21ez.displayName="SelectPopperPosition";var[eY,eZ]=eR(eU,{}),eJ="SelectViewport",eQ=i.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...o}=e,a=eK(eJ,n),s=eZ(eJ,n),l=h(t,a.onViewportChange),d=i.useRef(0);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,p.jsx)(eE.Slot,{scope:n,children:(0,p.jsx)($.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:u(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,i=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(i<r){let o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});eQ.displayName=eJ;var e0="SelectGroup",[e1,e2]=eR(e0),e3=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=B();return(0,p.jsx)(e1,{scope:n,id:i,children:(0,p.jsx)($.div,{role:"group","aria-labelledby":i,...r,ref:t})})});e3.displayName=e0;var e4="SelectLabel";i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=e2(e4,n);return(0,p.jsx)($.div,{id:i.id,...r,ref:t})}).displayName=e4;var e9="SelectItem",[e8,e5]=eR(e9),e6=i.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,l=eN(e9,n),d=eK(e9,n),c=l.value===r,[f,m]=i.useState(a??""),[v,g]=i.useState(!1),y=h(t,e=>d.itemRefCallback?.(e,r,o)),b=B(),x=i.useRef("touch"),w=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,p.jsx)(e8,{scope:n,value:r,disabled:o,textId:b,isSelected:c,onItemTextChange:i.useCallback(e=>{m(t=>t||(e?.textContent??"").trim())},[]),children:(0,p.jsx)(eE.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:(0,p.jsx)($.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":c&&v,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:y,onFocus:u(s.onFocus,()=>g(!0)),onBlur:u(s.onBlur,()=>g(!1)),onClick:u(s.onClick,()=>{"mouse"!==x.current&&w()}),onPointerUp:u(s.onPointerUp,()=>{"mouse"===x.current&&w()}),onPointerDown:u(s.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:u(s.onPointerMove,e=>{x.current=e.pointerType,o?d.onItemLeave?.():"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:u(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:u(s.onKeyDown,e=>{(d.searchRef?.current===""||" "!==e.key)&&(eC.includes(e.key)&&w()," "===e.key&&e.preventDefault())})})})})});e6.displayName=e9;var e7="SelectItemText",te=i.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,...s}=e,l=eN(e7,n),u=eK(e7,n),d=e5(e7,n),c=ek(e7,n),[f,m]=i.useState(null),v=h(t,e=>m(e),d.onItemTextChange,e=>u.itemTextRefCallback?.(e,d.value,d.disabled)),g=f?.textContent,y=i.useMemo(()=>(0,p.jsx)("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:x}=c;return L(()=>(b(y),()=>x(y)),[b,x,y]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)($.span,{id:d.textId,...s,ref:v}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?a.createPortal(s.children,l.valueNode):null]})});te.displayName=e7;var tt="SelectItemIndicator",tn=i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return e5(tt,n).isSelected?(0,p.jsx)($.span,{"aria-hidden":!0,...r,ref:t}):null});tn.displayName=tt;var tr="SelectScrollUpButton",ti=i.forwardRef((e,t)=>{let n=eK(tr,e.__scopeSelect),r=eZ(tr,e.__scopeSelect),[o,a]=i.useState(!1),s=h(t,r.onScrollButtonChange);return L(()=>
21{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,p.jsx)(ts,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ti.displayName=tr;var to="SelectScrollDownButton",ta=i.forwardRef((e,t)=>{let n=eK(to,e.__scopeSelect),r=eZ(to,e.__scopeSelect),[o,a]=i.useState(!1),s=h(t,r.onScrollButtonChange);return L(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,p.jsx)(ts,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ta.displayName=to;var ts=i.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,a=eK("SelectScrollButton",n),s=i.useRef(null),l=eP(n),d=i.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return i.useEffect(()=>()=>d(),[d]),L(()=>{let e=l().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[l]),(0,p.jsx)($.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:u(o.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(r,50))}),onPointerMove:u(o.onPointerMove,()=>{a.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(r,50))}),onPointerLeave:u(o.onPointerLeave,()=>{d()})})});i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,p.jsx)($.div,{"aria-hidden":!0,...r,ref:t})}).displayName="SelectSeparator";var tl="SelectArrow";i.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=eM(n),o=eN(tl,n),a=eK(tl,n);return o.open&&"popper"===a.position?(0,p.jsx)(W.i3,{...i,...r,ref:t}):null}).displayName=tl;var tu=i.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let o=i.useRef(null),a=h(r,o),s=(0,K.Z)(t);return i.useEffect(()=>{let e=o.current;if(!e)return;let n=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==t&&n){let r=new Event("change",{bubbles:!0});n.call(e,t),e.dispatchEvent(r)}},[s,t]),(0,p.jsx)($.select,{...n,style:{...Y,...n.style},ref:a,defaultValue:t})});function td(e){return""===e||void 0===e}function tc(e){let t=b(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(e=>{let i=n.current+e;t(i),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(i)},[t]),a=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function tf(e,t,n){var r,i;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=n?e.indexOf(n):-1,s=(r=e,i=Math.max(a,0),r.map((e,t)=>r[(i+t)%r.length]));1===o.length&&(s=s.filter(e=>e!==n));let l=s.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}tu.displayName="SelectBubbleInput";var th=eD,tp=eL,tm=eV,tv=eB,tg=eW,ty=e_,t$=eQ,tb=e3,tx=e6,tw=te,tC=tn,tS=ti,tE=ta},90732:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(89243);class i{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,i){return(0,r.P)(this,e,t,n,i)}}},90881:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(93858),i=n(99089);function o(e){return"starting"===e?i.K2:r.t0}},92112:()=>{},92383:(e,t,n)=>{"use strict";n.d(t,{$:()=>r,V:()=>i}),n(79626);let r=()=>{},i=()=>{}},92886:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r=(0,n(44922).createContext)(null)},93858:(e,t,n)=>{"use strict";function r(){}n.d(t,{Ml:()=>i,t0:()=>o,tE:()=>r});let i=Object.freeze([]),o=Object.freeze({})},94501:(e,t,n)=>{"use strict";n.d(t,{p:()=>u});var r=n(44922),i=n(89243),o=n(77268),a=n(85862),s=n(90578),l=n(66162);function u(e){let{children:t,placeholder:n}=e,u=(0,o.Ee)(),d=(0,i.P)(u,s.T.itemToStringLabel),c=(0,i.P)(u,s.T.selectedValue),f=(0,i.P)(u,s.T.items),h="multiple"===(0,i.P)(u,s.T.selectionMode),p=(0,i.P)(u,s.T.hasSelectedValue),m=(0,i.P)(u,s.T.hasNullItemLabel,!p&&null!=n&&null==t),v=null;return v="function"==typeof t?t(c):null!=t?t:p||null==n||m?h&&Array.isArray(c)?(0,a.u)(c,f,d):(0,a.Md)(c,f,d):n,(0,l.jsx)(r.Fragment,{children:v})}},94779:()=>{},95060:(e,t,n)=>{"use strict";n.d(t,{EW:()=>a,RS:()=>i,gR:()=>o});var r=n(15860);function i(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function o(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;
21if(n&&(0,r.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function a(e){return"composedPath"in e?e.composedPath()[0]:e.target}},95357:(e,t,n)=>{"use strict";n.d(t,{V:()=>l});var r=n(5035),i=n(44922),o=n(93858),a=n(54739);let s=i.createContext({invalid:void 0,name:void 0,validityData:{state:a.ZV,errors:[],error:"",value:"",initialValue:null},setValidityData:o.tE,disabled:void 0,touched:a.HH.touched,setTouched:o.tE,dirty:a.HH.dirty,setDirty:o.tE,filled:a.HH.filled,setFilled:o.tE,focused:a.HH.focused,setFocused:o.tE,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:a.mk,markedDirtyRef:{current:!1},registerFieldControl:o.tE,validation:{getValidationProps:(e=o.t0)=>e,getInputValidationProps:(e=o.t0)=>e,inputRef:{current:null},commit:async()=>{}}});function l(e=!0){let t=i.useContext(s);if(t.setValidityData===o.tE&&!e)throw Error((0,r.A)(28));return t}},95636:(e,t,n)=>{"use strict";var r=n(84679);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
21;return n.PropTypes=n,n}},95713:(e,t,n)=>{"use strict";n.d(t,{l:()=>h});var r=n(59945),i=n(9221),o=n(81316),a=n(47920),s=n(26868),l=n(51131);let u=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var d=n(20889),c=n(99842),f=n(88341);class h extends a.b{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=o.ge}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(r.f.has(t)){let e=(0,i.D)(t);return e&&e.default||0}return t=u.has(t)?t:(0,s.I)(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return(0,f.x)(e,t,n)}build(e,t,n){(0,l.B)(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in(0,c.e)(e,t,void 0,r),t.attrs)e.setAttribute(u.has(n)?n:(0,s.I)(n),t.attrs[n])}mount(e){this.isSVGTag=(0,d.n)(e.tagName),super.mount(e)}}},95925:(e,t,n)=>{"use strict";n.d(t,{o:()=>c});var r=n(5035),i=n(44922),o=n(33074),a=n(2092);function s(e){if(!i.isValidElement(e))return null;let t=e.props;return((0,a._)(19)?t?.ref:e.ref)??null}var l=n(21449),u=n(93858),d=n(90221);function c(e,t,n={}){let a=t.render,h=function(e,t={}){var n;let{className:r,style:i,render:a}=e,{state:c=u.t0,ref:f,props:h,stateAttributesMapping:p,enabled:m=!0}=t,v=m?"function"==typeof r?r(c):r:void 0,g=m?"function"==typeof i?i(c):i:void 0,y=m?function(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);null!=e&&Object.assign(n,e);continue}!0===i?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}(c,p):u.t0,$=m&&h?Array.isArray(n=h)?(0,d.lZ)(n):(0,d.v6)(void 0,n):void 0,b=m?(0,l.r)(y,$)??{}:u.t0;return("undefined"!=typeof document&&(m?Array.isArray(f)?b.ref=(0,o.U)([b.ref,s(a),...f]):b.ref=(0,o.a)(b.ref,s(a),f):(0,o.a)(null,null)),m)?(void 0!==v&&(b.className=(0,d.VN)(b.className,v)),void 0!==g&&(b.style=(0,l.r)(b.style,g)),b):u.t0}(t,n);return!1===n.enabled?null:function(e,t,n,o){if(t){if("function"==typeof t)return t(n,o);let e=(0,d.v6)(n,t.props);e.ref=n.ref;let r=t;return r?.$$typeof===f&&(r=i.Children.toArray(t)[0]),i.cloneElement(r,e)}if(e&&"string"==typeof e){var a,s;return a=e,s=n,"button"===a?(0,i.createElement)("button",{type:"button",...s,key:s.key}):"img"===a?(0,i.createElement)("img",{alt:"",...s,key:s.key}):i.createElement(a,s)}throw Error((0,r.A)(8))}(e,a,h,n.state??u.t0)}let f=Symbol.for("react.lazy")},96351:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});let r=new Set(["opacity","clipPath","filter","transform"])},97014:()=>{},97244:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>nV,Ko:()=>nB});let r={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46
vendor: 10,172 bytes, line 21
21])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}
vendor: 15,256 bytes, line 21
21|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-57
21-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])
21))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6
vendor: 18,172 bytes, line 21
21]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-
2179]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4}
21)","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[0-79]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4}
21)","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function i(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var o=Number(n[i]),a=Number(r[i]);if(o>a)return 1;if(a>o)return -1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))return -1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var o={}.constructor;function a(e){return null!=e&&e.constructor===o}var s=/^\d+$/;function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(r.key),r)}}function c(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var f=" ext. ",h=c(function e(t){u(this,e),$(t),this.metadata=t,C.call(this,t)},[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(e){return"001"!==e})}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!this.v1&&!this.v2&&!this.v3)return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){e&&(s.test(e)?r=e:n=e);if(t&&(r=t),n&&"001"!==n){var n,r,i=this.getCountryMetadata(n);if(!i)throw Error("Unknown country: ".concat(n));this.numberingPlan=new p(i,this)}else if(r){if(!this.hasCallingCode(r))throw Error("Unknown calling code: ".concat(r));this.numberingPlan=new p(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&1===r.length&&"001"===r[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),p=c(function e(t,n){u(this,e),this.globalMetadataObject=n,this.metadata=t,C.call(this,n.metadata)},[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[]).map(function(t){return new m(t,e)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&y(this.types(),e))return new g(y(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?f:this.metadata[13]||f}}]),m=c(function e(t,n){u(this,e),this._format=t,this.metadata=n},[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||v.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),v=/^\(?\$1\)?$/,g=c(function e(t,n){u(this,e),this.type=t,this.metadata=n},[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
21ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]);function y(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function $(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!a(e)||!a(e.countries))throw Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(a(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+b(e)+": "+e,"."))}var b=function(e){return l(e)};function x(e,t){var n=new h(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw Error("Unknown country: ".concat(e))}function w(e,t){return t.countries.hasOwnProperty(e)}function C(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===i(t,"1.2.0")?this.v2=!0:-1===i(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}var S=n(44922);let E={ext:"ext.",country:"Phone number country",phone:"Phone",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"\xc5land Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barth\xe9lemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Cura\xe7ao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serb
21ia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XA:"Abkhazia",XK:"Kosovo",XO:"South Ossetia",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var P=n(72624),T=P.shape({country_calling_codes:P.object.isRequired,countries:P.object.isRequired}),R=P.objectOf(P.string),A=n(62457);function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function O(e,t){for(var n,r=0,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return M(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split(""));!(n=i()).done;)n.value===e&&r++;return r}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var I={Backspace:8,Delete:46};function k(e,t){void 0!==t&&(function(){if("undefined"!=typeof navigator)return D.test(navigator.userAgent)}()?setTimeout(function(){return e.setSelectionRange(t,t)},0):e.setSelectionRange(t,t))}var D=/Android/i;function j(e,t,n,r,i){var o=function(e,t,n){for(var r={},i="",o=0,a=0;a<e.length;){var s=n(e[a],i,r);void 0!==s&&(i+=s,void 0!==t&&(t===a?o=i.length-1:t>a&&(o=i.length))),a++}return void 0===t&&(o=i.length),{value:i,caret:o}}(e.value,e.selectionStart,t),a=o.value,s=o.caret;if(r){var l=function(e,t,n){switch(n){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1)}return{value:e,caret:t}}(a,s,r);a=l.value,s=l.caret}var u=function(e,t,n){"string"==typeof n&&(n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!e)return function(e){return{text:e}};var r=O(t,e);return function(i){if(!i)return{text:"",template:e};for(var o,a=0,s="",l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return N(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.split(""));!(o=l()).done;){var u=o.value;if(u!==t){s+=u;continue}if(s+=i[a],++a===i.length&&i.length<r)break}return n&&(s=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" ",i=e.length,o=O("(",e)-O(")",e);o>0&&i<t.length;)e+=t[i].replace(n,r),")"===t[i]&&o--,i++;return e}(s,e)),{text:s,template:e}}}(n));var r=n(e)||{},i=r.text,o=r.template;if(void 0===i&&(i=e),o)if(void 0===t)t=i.length;else{for(var a=0,s=!1,l=-1;a<i.length&&a<o.length;){if(i[a]!==o[a]){if(0===t){s=!0,t=a;break}l=a,t--}a++}s||(t=l+1)}return{text:i,caret:t}}(a,s,n),d=u.text;
21s=u.caret,e.value=d,k(e,s),i&&i(a)}var L=["ref","parse","format","value","defaultValue","controlled","onChange","onKeyDown"];function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var B=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e,t){var n,r,i,o,a,s,l,u,d,c,f,h,p,m,v,g=e.inputComponent,y=e.parse,$=e.format,b=e.value,x=e.defaultValue,w=e.onChange,C=e.controlled,E=e.onKeyDown,P=e.type,T=(r=(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ref:t,parse:y,format:$,value:b,defaultValue:x,onChange:w,controlled:C,onKeyDown:E,type:void 0===P?"text":P},function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,B))).ref,i=n.parse,o=n.format,a=n.value,s=n.defaultValue,l=n.controlled,u=n.onChange,d=n.onKeyDown,c=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,L),f=(0,S.useRef)(),h=(0,S.useCallback)(function(e){f.current=e,r&&("function"==typeof r?r(e):r.current=e)},[r]),p=(0,S.useCallback)(function(e){j(f.current,i,o,void 0,u)},[f,i,o,u]),m=(0,S.useCallback)(function(e){if(d&&d(e),!e.defaultPrevented){var t=f.current;if(!t.hasAttribute("readonly")){var n=function(e){switch(e.keyCode){case I.Backspace:return"Backspace";case I.Delete:return"Delete"}}(e);switch(n){case"Delete":case"Backspace":e.preventDefault();var r,a,s,l=function(e){if(e.selectionStart!==e.selectionEnd)return{start:e.selectionStart,end:e.selectionEnd}}(t);if(l){return r=t,a=l,s=r.value,r.value=s=s.slice(0,a.start)+s.slice(a.end),k(r,a.start),j(t,i,o,void 0,u)}return j(t,i,o,n,u)}}return}},[f,i,o,u,d]),v=V(V({},c),{},{ref:h,onChange:p,onKeyDown:m}),void 0===l||l?V(V({},v),{},{value:o(null==a?"":a).text}):V(V({},v),{},{defaultValue:o(null==s?"":s).text}));return S.createElement(void 0===g?"input":g,T)}(U=S.forwardRef(U)).propTypes={parse:P.func.isRequired,format:P.func.isRequired,inputComponent:P.elementType,type:P.string,value:P.string,defaultValue:P.string,onChange:P.func,controlled:P.bool,onKeyDown:P.func,onCut:P.func,onPaste:P.func};let _=U;function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function K(e,t,n){return function e(t,n,r,i){r&&(i=new h(i.metadata)).selectNumberingPlan(r);
21var o=i.type(n),a=o&&o.possibleLengths()||i.possibleLengths();if(!a)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===n){if(!i.type("FIXED_LINE"))return e(t,"MOBILE",r,i);var s=i.type("MOBILE");s&&(a=function(e,t){for(var n,r=e.slice(),i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return G(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=i()).done;){var o=n.value;0>e.indexOf(o)&&r.push(o)}return r.sort(function(e,t){return e-t})}(a,s.possibleLengths()))}else if(n&&!o)return"INVALID_LENGTH";var l=t.length,u=a[0];return u===l?"IS_POSSIBLE":u>l?"TOO_SHORT":a[a.length-1]<l?"TOO_LONG":a.indexOf(l,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,void 0,t,n)}function H(e,t){return"IS_POSSIBLE"===K(e,void 0,t)}function q(e,t){return e=e||"",RegExp("^(?:"+t+")$").test(e)}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var z=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Y(e,t,n){if(t=t||{},e.country||e.countryCallingCode){var r=new h(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(q(i,r.nationalNumberPattern())){if(Z(i,"FIXED_LINE",r))return r.type("MOBILE")&&""===r.type("MOBILE").pattern()||!r.type("MOBILE")||Z(i,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var o,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return X(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(z);!(o=a()).done;){var s=o.value;if(Z(i,s,r))return s}}}}function Z(e,t,n){var r=n.type(t);return!(!r||!r.pattern()||r.possibleLengths()&&0>r.possibleLengths().indexOf(e.length))&&q(e,r.pattern())}var J=/^[A-Z]{2}$/,Q="0-90-9٠-٩۰-۹",ee="".concat("-‐-―−ー-").concat("//").concat("..").concat(" \xa0\xad​⁠ ").concat("()()[]\\[\\]").concat("~⁓∼~"),et="++",en=RegExp("(["+Q+"])");function er(e,t,n,r){if(t){var i=new h(r);i.selectNumberingPlan(t||n);var o=new RegExp(i.IDDPrefix());if(0===e.search(o)){var a=(e=e.slice(e.match(o)[0].length)).match(en);if(!a||null==a[1]||!(a[1].length>0)||"0"!==a[1])return e}}}function ei(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,o,a,s=r.length-1,l=s>0&&r[s];if(t.nationalPrefixTransformRule()&&l)i=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(o=r[1]);else{var u=r[0];i=e.slice(u.length),l&&(o=r[1])}if(l){var d=e.indexOf(r[1]);e.slice(0,d)===t.numberingPlan.nationalPrefix()&&(a=t.numberingPlan.nationalPrefix())}else a=r[0];return{nationalNumber:i,nationalPrefix:a,carrierCode:o}}}return{nationalNumber:e}}function eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ea(e,t,n){for(var r,i=new h(n),o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return eo(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eo(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=o()).done;){var a=r.value;if(i.selectNumberingPlan(a),i.leadingDigits()){if(e&&0===e.search(i.leadingDigits()))return a}else if(Y({phone:e,country:a},void 0,i.metadata))return a}}function es(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return 1===i.length?i[0]:ea(n,i,r.metadata)}function el(e,t,n){var r,i,o,a=ei(e,n),s=a.carrierCode,l=a.nationalNumber;if(l!==e){if(r=e,i=l,!(!q(r,(o=n).nationalNumberPattern())||q(i,o.nationalNumberPattern()))||n.numberingPlan.possibleLengths()&&(t||(t=es(n.numberingPlan.callingCode(),{nationalNumber:l,metadata:n})),!function(e,t,n){switch(K(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}
21(l,t,n)))return{nationalNumber:e}}return{nationalNumber:l,carrierCode:s}}function eu(e,t,n,r,i){if(!(t||n||r))return{number:e};var o=t||n?x(t||n,i):r;if(0===e.indexOf(o)){var a=new h(i);a.selectNumberingPlan(t||n||r);var s=e.slice(o.length),l=el(s,void 0,a).nationalNumber,u=el(e,void 0,a).nationalNumber;if(!q(u,a.nationalNumberPattern())&&q(l,a.nationalNumberPattern())||"TOO_LONG"===K(u,void 0,a))return{countryCallingCode:o,number:s}}return{number:e}}function ed(e,t,n,r,i){if(!e)return{};if("+"!==e[0]){var o,a=er(e,t||n,r,i);if(a&&a!==e)o=!0,e="+"+a;else{if(t||n||r){var s=eu(e,t,n,r,i),l=s.countryCallingCode,u=s.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:u}}return{number:e}}}if("0"===e[1])return{};for(var d=new h(i),c=2;c-1<=3&&c<=e.length;){var f=e.slice(1,c);if(d.hasCallingCode(f))return d.selectNumberingPlan(f),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:f,number:e.slice(c)};c++}return{}}function ec(e){return e.replace(RegExp("[".concat(ee,"]+"),"g")," ").trim()}var ef=/(\$\d)/;function eh(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var o=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(ef,t.nationalPrefixFormattingRule()):t.format());return r?ec(o):o}var ep=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function em(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ev={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function eg(e,t,n,r,i){var o=function(e,t){for(var n=e,r=function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==t.search(n))return!1}return q(t,e.pattern())},i=0;i<n.length;){if(r(n[i]))return n[i];i++}}(r.formats(),e);return o?eh(e,o,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!i||!1!==i.nationalPrefix,carrierCode:t,metadata:r}):e}function ey(e){return(ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e$(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=ex(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ex(e){var t=function(e,t){if("object"!=ey(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ey(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ey(t)?t:t+""}var ew=function(){var e,t;return e=function e(t,n,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");if(!t)throw TypeError("First argument is required");if("string"!=typeof t)throw TypeError("First argument must be a string");if("+"===t[0]&&!n)throw TypeError("`metadata` argument not passed");if(a(n)&&a(n.countries)){r=n;var i=t;if(!eC.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=ed(i,void 0,void 0,void 0,r),s=o.countryCallingCode;if(n=o.number,t=s,!n)throw Error("Invalid `number` argument passed: too short")}if(!n)throw TypeError("`nationalNumber` argument is required");if("string"!=typeof n)throw TypeError("`nationalNumber` argument must be a string");$(r);var l=function(e,t){var n,r,i=new h(t);return J.test(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=e,{country:n,callingCode:r}}(t,r),u=l.country,d=l.callingCode;this.country=u,this.countryCallingCode=d,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}},t=[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){var e,t,n,r;
21return this.country?[this.country]:(e=this.countryCallingCode,t=this.nationalNumber,(r=new h(n=this.getMetadata()).getCountryCodesForCallingCode(e))?r.filter(function(e){var r,i,o;return r=t,i=e,(o=new h(n)).selectNumberingPlan(i),o.numberingPlan.possibleLengths().indexOf(r.length)>=0}):[])}},{key:"isPossible",value:function(){return function(e,t,n){void 0===t&&(t={});var r=new h(n);if(t.v2){if(!e.countryCallingCode)throw Error("Invalid phone number object passed");r.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return H(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){var e,t,n;return e={v2:!0},t=this.getMetadata(),e=e||{},((n=new h(t)).selectNumberingPlan(this.country||this.countryCallingCode),n.hasTypes())?void 0!==Y(this,e,n.metadata):q(e.v2?this.nationalNumber:this.phone,n.nationalNumberPattern())}},{key:"isNonGeographic",value:function(){return new h(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return Y(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return function(e,t,n,r){n=n?function(){for(var e=1,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}({},ev,n):ev;var i,o=new h(r);if(e.country&&"001"!==e.country){if(!o.hasCountry(e.country))throw Error("Unknown country: ".concat(e.country));o.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";o.selectNumberingPlan(e.countryCallingCode)}var a=o.countryCallingCode(),s=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":if(!s)return"";return c=i=eg(s,e.carrierCode,"NATIONAL",o,n),f=e.ext,p=o,m=n.formatExtension,f?m(c,f,p):c;case"INTERNATIONAL":if(!s)return"+".concat(a);return i=eg(s,null,"INTERNATIONAL",o,n),v=i="+".concat(a," ").concat(i),g=e.ext,y=o,$=n.formatExtension,g?$(v,g,y):v;case"E.164":return"+".concat(a).concat(s);case"RFC3966":var l={number:"+".concat(a).concat(s),ext:e.ext},u=l.number,d=l.ext;if(!u)return"";if("+"!==u[0])throw Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(u).concat(d?";ext="+d:"");case"IDD":if(!n.fromCountry)return;var c,f,p,m,v,g,y,$,b,w,C,S,E=function(e,t,n,r,i){if(x(r,i.metadata)===n){var o,a,s=eg(e,t,"NATIONAL",i);return"1"===n?n+" "+s:s}var l=(o=void 0,((a=new h(i.metadata)).selectNumberingPlan(r||o),a.defaultIDDPrefix())?a.defaultIDDPrefix():ep.test(a.IDDPrefix())?a.IDDPrefix():void 0);if(l)return"".concat(l," ").concat(n," ").concat(eg(e,null,"INTERNATIONAL",i))}(s,e.carrierCode,a,n.fromCountry,o);if(!E)return;return b=E,w=e.ext,C=o,S=n.formatExtension,w?S(b,w,C):b;default:throw Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}(this,e,t?eb(eb({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ex(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(),eC=/^\+\d+$/;function eS(e){return(eS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var eE=function(){var e,t;return e=function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.onCountryChange=n,this.onCallingCodeChange=r},t=[{key:"reset",value:function(e){var t=e.country,n=e.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(t,n)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberIsModified=!1,this.nationalPrefix=void 0,this.carrierCode=void 0,this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix=void 0}},{key:"update",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];this[r]=e[r]}}},{key:"initCountryAndCallingCode",value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:"setCountry",value:function(e){this.country=e,this.onCountryChange(e)}},{key:"setCallingCode",value:function(e){this.callingCode=e,this.onCallingCodeChange(e,this.country)}},{key:"startInternationalNumber",value:function(e,t){this.international=!0,this.initCountryAndCallingCode(e,t)}},{key:"appendDigits",value:function(e){this.digits+=e}},{key:"appendNationalSignificantNumberDigits",value:function(e){this.nationalSignificantNumber+=e}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=eS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eS(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eS(t)?t:t+""}(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}();function eP(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return eT(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eT(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function eT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var eR=/x/;function eA(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function eM(e,t){return")"===e[t]&&t++,function(e){for(var t=[],n=0;n<e.length;)"("===e[n]?t.push(n):")"===e[n]&&t.pop(),n++;var r=0,i="";t.push(e.length);for(var o=0;o<t.length;o++){var a=t[o];i+=e.slice(r,a),r=a+1}return i}(e.slice(0,t))}function eO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var eN={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function eI(e){for(var t,n="",r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return eO(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eO(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.split(""));!(t=r()).done;){var i=eN[t.value];i&&(n+=i)}return n}function ek(e,t,n){var r,i,o=n.metadata,a=n.useNationalPrefixFormattingRule,
21s=n.getSeparatorAfterNationalPrefix,l=eh(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:a,metadata:o});if(!a&&(e.nationalPrefix?l=e.nationalPrefix+s(t)+l:e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(l=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+l)),r=l,i=e,eI(r)===i.getNationalDigits())return l}function eD(e){return(eD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ej=function(){var e,t;return e=function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function")},t=[{key:"parse",value:function(e){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(e),1!==this.context.length)throw Error("Non-finalized contexts left when pattern parse ended");var t=this.context[0],n=t.branches,r=t.instructions;if(n)return{op:"|",args:n.concat([eV(r)])};if(0===r.length)throw Error("Pattern is required");return 1===r.length?r[0]:r}},{key:"startContext",value:function(e){this.context.push(e)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(e){if(!e)throw Error("Pattern is required");var t=e.match(eF);if(!t){if(eL.test(e))throw Error("Illegal characters found in a pattern: ".concat(e));this.getContext().instructions=this.getContext().instructions.concat(e.split(""));return}var n=t[1],r=e.slice(0,t.index),i=e.slice(t.index+n.length);switch(n){case"(?:":r&&this.parsePattern(r),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw Error('")" operator must be preceded by "(?:" operator');if(r&&this.parsePattern(r),0===this.getContext().instructions.length)throw Error('No instructions found after "|" operator in an "or" group');var o=this.getContext().branches;o.push(eV(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:o});break;case"|":if(!this.getContext().or)throw Error('"|" operator can only be used inside "or" groups');if(r&&this.parsePattern(r),!this.getContext().branches)if(1===this.context.length)this.getContext().branches=[];else throw Error('"branches" not found in an "or" group context');this.getContext().branches.push(eV(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":r&&this.parsePattern(r),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:function(e){for(var t=[],n=0;n<e.length;){if("-"===e[n]){if(0===n||n===e.length-1)throw Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,i=e[n+1].charCodeAt(0)-1,o=r;o<=i;)t.push(String.fromCharCode(o)),o++}else t.push(e[n]);n++}return t}(r)});break;default:throw Error("Unknown operator: ".concat(n))}i&&this.parsePattern(i)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=eD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eD(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eD(t)?t:t+""}(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(),eL=/[\(\)\[\]\?\:\|]/,eF=RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function eV(e){return 1===e.length?e[0]:e}function eB(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return eW(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eW(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function eW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eU(e){return(eU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var e_=function(){var e,t;return e=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.matchTree=new ej().parse(t)},t=[{key:"match",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.allowOverflow;
21if(!e)throw Error("String is required");var r=function e(t,n,r){if("string"==typeof n){var i=t.join("");return 0===n.indexOf(i)?t.length===n.length?{match:!0,matchedChars:t}:{partialMatch:!0}:0===i.indexOf(n)?r&&t.length>n.length?{overflow:!0}:{match:!0,matchedChars:t.slice(0,n.length)}:void 0}if(Array.isArray(n)){for(var o=t.slice(),a=0;a<n.length;){var s=e(o,n[a],r&&a===n.length-1);if(!s)return;if(s.overflow)return s;if(s.match){if(0===(o=o.slice(s.matchedChars.length)).length)if(a===n.length-1)return{match:!0,matchedChars:t};else return{partialMatch:!0}}else if(s.partialMatch)return{partialMatch:!0};else throw Error("Unsupported match result:\n".concat(JSON.stringify(s,null,2)));a++}return r?{overflow:!0}:{match:!0,matchedChars:t.slice(0,t.length-o.length)}}switch(n.op){case"|":for(var l,u,d=eB(n.args);!(u=d()).done;){var c=e(t,u.value,r);if(c)if(c.overflow)return c;else if(c.match)return{match:!0,matchedChars:c.matchedChars};else if(c.partialMatch)l=!0;else throw Error("Unsupported match result:\n".concat(JSON.stringify(c,null,2)))}if(l)return{partialMatch:!0};return;case"[]":for(var f,h=eB(n.args);!(f=h()).done;){var p=f.value;if(t[0]===p){if(1===t.length)return{match:!0,matchedChars:t};if(r)return{overflow:!0};return{match:!0,matchedChars:[p]}}}return;default:throw Error("Unsupported instruction tree: ".concat(n))}}(e.split(""),this.matchTree,!0);if(r&&r.match&&delete r.matchedChars,!r||!r.overflow||n)return r}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=eU(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eU(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eU(t)?t:t+""}(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}();function eG(e){return(eG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eK(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return eH(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eH(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function eH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var eq=eA("9",15),eX=/[- ]/,ez=RegExp("["+ee+"]*\\$1["+ee+"]*(\\$\\d["+ee+"]*)*$"),eY=function(){var e,t;return e=function e(t){t.state;var n=t.metadata;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.metadata=n,this.resetFormat()},t=[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(e,t){this.resetFormat(),e?(this.isNANP="1"===e.callingCode(),this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(e,t){var n=this;if("IS_POSSIBLE"===K(t.nationalSignificantNumber,void 0,this.metadata))for(var r,i=eK(this.matchingFormats);!(r=i()).done;){var o=r.value,a=function(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,o=n.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(t.pattern(),")$")).test(e.nationalSignificantNumber))return function(e,t,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,o=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var a=ek(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:o,metadata:r});if(a)return a}return ek(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:o,metadata:r})}(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:o})}(t,o,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return n.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return n.getSeparatorAfterNationalPrefix(e)}});if(a)return this.resetFormat(),this.chosenFormat=o,this.setNationalNumberTemplate(a.replace(/\d/g,"x"),t),this.populatedNationalNumberTemplate=a,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf("x"),a}return this.formatNationalNumberWithNextDigits(e,t)}},{key:"formatNationalNumberWithNextDigits",value:function(e,t){var n=this.chosenFormat,r=this.chooseFormat(t);if(r)if(r===n)return this.formatNextNationalNumberDigits(e);else return this.formatNextNationalNumberDigits(t.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(e){var t=this,n=e.nationalSignificantNumber,r=e.nationalPrefix,i=e.international,o=n.length-3;o<0&&(o=0),this.matchingFormats=this.matchingFormats.filter(function(e){return t.formatSuits(e,i,r)&&t.formatMatches(e,n,o)}),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(e,t,n){return!(n&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!t&&!n&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(e,t,n){var r=e.leadingDigitsPatterns().length;if(0===r)return!0;n=Math.min(n,r-1);var i=e.leadingDigitsPatterns()[n];if(t.length<3)try{return void 0!==new e_(i).match(t,{allowOverflow:!0})}catch(e){return console.error(e),!0}return new RegExp("^(".concat(i,")")).test(t)}},{key:"getFormatFormat",value:function(e,t){return t?e.internationalFormat():e.format()}},{key:"chooseFormat",value:function(e){for(var t,n,r,i=this,o=eK(this.matchingFormats.slice());!(r=o()).done&&0!==(t=r.value,n=i.chosenFormat===t?0:ez.test(i.getFormatFormat(t,e.international))?i.createTemplateForFormat(t,e)?(i.chosenFormat=t,0):(i.matchingFormats=i.matchingFormats.filter(function(e){return e!==t}),1):1);)if(1===n)continue;return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(e,t){if(!(e.pattern().indexOf("|")>=0)){var n=this.getTemplateForFormat(e,t);if(n)return this.setNationalNumberTemplate(n,t),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(e){return this.isNANP||e&&e.nationalPrefixFormattingRule()&&eX.test(e.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(e,t){var n=e.IDDPrefix,r=e.missingPlus;return n?t&&!1===t.spacing?n:n+" ":r?"":"+"}},{key:"getTemplate",value:function(e){if(this.template){for(var t=-1,n=0,r=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):"";n<r.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf("x",t+1),n++;return eM(this.template,t+1)}}},{key:"setNationalNumberTemplate",value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,t.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g,"x")+eA("x",t.callingCode.length)+" "+e:this.template=e}},{key:"getTemplateForFormat",value:function(e,t){var n,r=t.nationalSignificantNumber,i=t.international,o=t.nationalPrefix,a=t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,s=e.pattern();s=s.replace(/\[([^\[\]])*\]/g,"\\d").replace(/\d(?=[^,}][^,}])/g,"\\d");var l=eq.match(s)[0];if(!(r.length>l.length)){var u=RegExp("^"+s+"$"),d=r.replace(/\d/g,"9");u.test(d)&&(l=d);var c=this.getFormatFormat(e,i);if(this.shouldTryNationalPrefixFormattingRule(e,{international:i,nationalPrefix:o})){var f=c.replace(ef,e.nationalPrefixFormattingRule());if(eI(e.nationalPrefixFormattingRule())===(o||"")+eI("$1")&&(c=f,n=!0,o))for(var h=o.length;h>0;)c=c.replace(/\d/,"x"),h--}var p=l.replace(new RegExp(s),c).replace(/9/g,"x");return!n&&(a?p=eA("x",a.length)+" "+p:o&&(p=eA("x",o.length)+this.getSeparatorAfterNationalPrefix(e)+p)),i&&(p=ec(p)),p}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=function(e,t,n){for(var r,i=eP(n.split(""));!(r=i()).done;){var o=r.value;if(0>e.slice(t+1).search(eR))return;t=e.search(eR),e=e.replace(eR,o)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);return t?(this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],eM(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)):void this.resetFormat()}},{key:"shouldTryNationalPrefixFormattingRule",value:function(e,t){var n=t.international,r=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var i=e.usesNationalPrefix();if(i&&r||!i&&!n)return!0}}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=eG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eG(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eG(t)?t:t+""}(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}();function eZ(e){return(eZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eJ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}
21finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eQ(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eQ(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var e0=RegExp("^["+ee+Q+"]+$","i"),e1="(?:["+et+"]["+ee+Q+"]*|["+ee+Q+"]+)",e2=RegExp("[^"+ee+Q+"]+.*$"),e3=/[^\d\[\]]/,e4=function(){var e,t;return e=function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,i=t.metadata,o=t.onNationalSignificantNumberChange;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=o},t=[{key:"input",value:function(e,t){var n,r,i,o,a,s=eJ((i=(r=eJ("+"===(n=function(e){var t,n=e.search(e1);if(!(n<0))return"+"===(e=e.slice(n))[0]&&(t=!0,e=e.slice(1)),e=e.replace(e2,""),t&&(e="+"+e),e}(e)||"")[0]?[n.slice(1),!0]:[n],2))[0],o=r[1],e0.test(i)||(i=""),[i,o]),2),l=s[0],u=s[1],d=eI(l);return u&&!t.digits&&(t.startInternationalNumber(void 0,void 0),d||(a=!0)),d&&this.inputDigits(d,t),{digits:d,justLeadingPlus:a}}},{key:"inputDigits",value:function(e,t){var n=t.digits,r=n.length<3&&n.length+e.length>=3;if(t.appendDigits(e),r&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),function(e){return t.update(e)})}},{key:"isWaitingForCountryCallingCode",value:function(e){var t=e.international,n=e.callingCode;return t&&!n}},{key:"extractCountryCallingCode",value:function(e){var t=ed("+"+e.getDigitsWithoutInternationalPrefix(),e.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),n=t.countryCallingCode,r=t.number;if(n)return e.setCallingCode(n),e.update({nationalSignificantNumber:r}),!0}},{key:"reset",value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&e3.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(e,t){if(this.hasSelectedNumberingPlan){var n=ei(e,this.metadata),r=n.nationalPrefix,i=n.nationalNumber,o=n.carrierCode;if(i!==e)return this.onExtractedNationalNumber(r,o,i,e,t),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(e,t,n){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,n);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var r=ei(e,this.metadata),i=r.nationalPrefix,o=r.nationalNumber,a=r.carrierCode;if(o!==t)return this.onExtractedNationalNumber(i,a,o,e,n),!0}}},{key:"onExtractedNationalNumber",value:function(e,t,n,r,i){var o,a=!1,s=r.lastIndexOf(n);if(s<0||s!==r.length-n.length)a=!0;else{var l=r.slice(0,s);l&&l!==e&&(o=l)}i({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:n,nationalSignificantNumberIsModified:a,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:o}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(e){return!!this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,function(t){return e.update(t)})||(this.extractIddPrefix(e)||this.fixMissingPlus(e)?(this.extractCallingCodeAndNationalSignificantNumber(e),!0):void 0)}},{key:"extractIddPrefix",value:function(e){var t=e.international,n=e.IDDPrefix,r=e.digits;if(e.nationalSignificantNumber,!t&&!n){var i=er(r,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(void 0!==i&&i!==r)return e.update({IDDPrefix:r.slice(0,r.length-i.length)}),this.startInternationalNumber(e,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(e){if(!e.international){var t=eu(e.digits,e.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata).countryCallingCode;if(t)return e.update({missingPlus:!0}),this.startInternationalNumber(e,{country:e.country,callingCode:t}),!0}}},{key:"startInternationalNumber",value:function(e,t){var n=t.country,r
21=t.callingCode;e.startInternationalNumber(n,r),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),function(t){return e.update(t)})}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=eZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eZ(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eZ(t)?t:t+""}(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}();function e9(e){return(e9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var e5=function(){var e,t;return e=function e(t,n){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.metadata=new h(n);var r,i=function(e){if(Array.isArray(e))return e}(r=this.getCountryAndCallingCode(t))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{o=(n=n.call(e)).next,!1;for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(r,2)||function(e,t){if(e){if("string"==typeof e)return e8(e,2);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e8(e,t):void 0}}(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],a=i[1];this.defaultCountry=o,this.defaultCallingCode=a,this.reset()},t=[{key:"getCountryAndCallingCode",value:function(e){var t,n;return e&&(a(e)?(t=e.defaultCountry,n=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),[t,n]}},{key:"input",value:function(e){var t=this.parser.input(e,this.state),n=t.digits;if(t.justLeadingPlus)this.formattedOutput="+";else if(n){if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(r=this.formatter.format(n,this.state)),void 0===r&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var r,i=this.state.getNationalDigits();i&&(r=this.formatter.format(i,this.state))}this.formattedOutput=r?this.getFullNumber(r):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var e=this;return this.state=new eE({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,n){e.metadata.selectNumberingPlan(n||t),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new eY({state:this.state,metadata:this.metadata}),this.parser=new e4({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){if(this.state.digits)return this._getCountry()}},{key:"_getCountry",value:function(){var e=this.state.country;return e}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(e){var t=this;if(this.isInternational()){var n=function(e){return t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state,{spacing:!!e})+e},r=this.state.callingCode;return n(r?e?"".concat(r," ").concat(e):r:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return e}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,r=e.nationalPrefix,i=t,o=n||r;return o&&(i=o+i),i}},{key:"getNonFormattedNumber",value:function(){var e=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(e?this.state.getNationalDigits():this.getNon
21FormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\+\d]/g,"x")}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:"determineTheCountry",value:function(){var e=es(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata});e!==this.state.country&&(this.state.setCountry(e),e&&this.metadata.selectNumberingPlan(e))}},{key:"getNumberValue",value:function(){var e=this.state,t=e.digits,n=e.callingCode,r=e.country,i=e.nationalSignificantNumber;if(t){if(this.isInternational())if(n)return"+"+n+i;else return"+"+t;else if(r||n)return"+"+(r?this.metadata.countryCallingCode():n)+i}}},{key:"getNumber",value:function(){var e=this.state,t=e.nationalSignificantNumber,n=e.carrierCode,r=e.callingCode;if(t){var i=this._getCountry();if(i||r){if(i&&i===this.defaultCountry){var o=function(e,t,n){var r=n.getCountryCodesForCallingCode(e);if(r.length>1)return ea(t,r,n.metadata)}(this.metadata.numberingPlan.callingCode(),t,this.metadata);o&&(i=o)}var a=new ew(i||r,t,this.metadata.metadata);return n&&(a.carrierCode=n),a}}}},{key:"isPossible",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:"isValid",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:"validateLength",value:function(){var e=this.state,t=e.digits,n=e.nationalSignificantNumber;if(!t)return"NOT_A_NUMBER";if(!this.metadata.numberingPlan)return"INVALID_COUNTRY";if(!n)return"TOO_SHORT";var r=K(n,void 0,this.metadata);if("IS_POSSIBLE"!==r)return r}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=e9(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=e9(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==e9(t)?t:t+""}(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}();function e6(e){var t=e.inputFormat,n=e.country,r=e.metadata;return"NATIONAL_PART_OF_INTERNATIONAL"===t?"+".concat(x(n,r)):""}function e7(e,t){return t&&" "===(e=e.slice(t.length))[0]&&(e=e.slice(1)),e}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tt(e){for(var t,n="",r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return te(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.split(""));!(t=r()).done;){var i=t.value;n+=tn(i,n)||""}return n}function tn(e,t,n){if("+"===e){if(t){"function"==typeof n&&n("end");return}return"+"}return eN[e]}function tr(e,t,n){if(!n||!n.ignoreRest)return tn(e,t,function(e){n&&"end"===e&&(n.ignoreRest=!0)})}function ti(e){var t=e.onKeyDown,n=e.inputFormat;return(0,S.useCallback)(function(e){if(e.keyCode===to&&"INTERNATIONAL"===n&&e.target instanceof HTMLInputElement&&e.target.selectionStart===ta.length)return void e.preventDefault();t&&t(e)},[t,n])}var to=8,ta="+",ts=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function tl(){return(tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let tu=function(e){function t(e,t){var n=e.onKeyDown,r=e.country,i=e.inputFormat,o=e.metadata,a=void 0===o?void 0:o,s=(e.international,e.withCountryCallingCode,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,ts)),l=(0,S.useCallback)(function(e){var t=new e5(r,a),n=e6({inputFormat:i,country:r,metadata:a}),o=t.input(n+e),s=t.getTemplate();return n&&(o=e7(o,n),s&&(s=e7(s,n))),{text:o,template:s}},[r,a]),u=ti({onKeyDown:n,inputFormat:i});return S.createElement(_,tl({},s,{ref:t,parse:tr,format:l,onKeyDown:u}))}return(t=S.forwardRef(t)).propTypes={value:P.string.isRequired,onChange:P.func.isRequired,onKeyDown:P.func,country:P.string,inputFormat:P.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:P.object},t}();var td=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function tc(){return(tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let tf=function(e){function t(e,t){var n=e.value,r=e.onChange,i=e.onKeyDown,o=e.country,a=e.inputFormat,s=e.metadata,l=void 0===s?void 0:s,u=e.inputComponent,d=(e.international,e.withCountryCallingCode,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,td)),c=e6({inputFormat:a,country:o,metadata:l}),f=(0,S.useCallback)(function(e){var t=tt(e.target.value);
21t===n&&0===th(c,t,o,l).indexOf(e.target.value)&&(t=t.slice(0,-1)),r(t)},[c,n,r,o,l]),h=ti({onKeyDown:i,inputFormat:a});return S.createElement(void 0===u?"input":u,tc({},d,{ref:t,value:th(c,n,o,l),onChange:f,onKeyDown:h}))}return(t=S.forwardRef(t)).propTypes={value:P.string.isRequired,onChange:P.func.isRequired,onKeyDown:P.func,country:P.string,inputFormat:P.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:P.object,inputComponent:P.elementType},t}();function th(e,t,n,r){var i,o,a;return e7((i=e+t,o=n,(a=r)||(a=o,o=void 0),new e5(o,a).input(i)),e)}function tp(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var tm=["value","onChange","options","disabled","readOnly"],tv=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function tg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ty(){return(ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function t$(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tb(e){var t=e.value,n=e.onChange,r=e.options,i=e.disabled,o=e.readOnly,a=t$(e,tm),s=(0,S.useCallback)(function(e){var t=e.target.value;n("ZZ"===t?void 0:t)},[n]);return(0,S.useMemo)(function(){return tS(r,t)},[r,t]),S.createElement("select",ty({},a,{disabled:i||o,readOnly:o,value:t||"ZZ",onChange:s}),r.map(function(e){var t=e.value,n=e.label,r=e.divider;return S.createElement("option",{key:r?"|":t||"ZZ",value:r?"|":t||"ZZ",disabled:!!r,style:r?tx:void 0},n)}))}tb.propTypes={value:P.string,onChange:P.func.isRequired,options:P.arrayOf(P.shape({value:P.string,label:P.string,divider:P.bool})).isRequired,disabled:P.bool,readOnly:P.bool};var tx={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function tw(e){var t=e.value,n=e.options,r=e.className,i=e.iconComponent,o=(e.getIconAspectRatio,e.arrowComponent),a=e.unicodeFlags,s=t$(e,tv),l=(0,S.useMemo)(function(){return tS(n,t)},[n,t]);return S.createElement("div",{className:"PhoneInputCountry"},S.createElement(tb,ty({},s,{value:t,options:n,className:A("PhoneInputCountrySelect",r)})),l&&(a&&t?S.createElement("div",{className:"PhoneInputCountryIconUnicode"},tp(t[0])+tp(t[1])):S.createElement(i,{"aria-hidden":!0,country:t,label:l.label,aspectRatio:a?1:void 0})),S.createElement(void 0===o?tC:o,null))}function tC(){return S.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function tS(e,t){for(var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return tg(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tg(e,t)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=r()).done;){var i,o,a=n.value;if(!a.divider&&(i=a.value,o=t,null==i?null==o:i===o))return a}}tw.propTypes={iconComponent:P.elementType,arrowComponent:P.elementType,unicodeFlags:P.bool};var tE=["country","countryName","flags","flagUrl"];function tP(){return(tP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function tT(e){var t=e.country,n=e.countryName,r=e.flags,i=e.flagUrl,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,tE);return r&&r[t]?r[t]({title:n}):S.createElement("img",tP({},o,{alt:n,role:n?void 0:"presentation",src:i.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}tT.propTypes={country:P.string.isRequired,countryName:P.string.isRequired,flags:P.objectOf(P.elementType),flagUrl:P.string.isRequired};var tR=["aspectRatio"],tA=["title"],tM=["title"];function tO(){return(tO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function tN(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tI(e){var t=e.aspectRatio,n=tN(e,tR);return 1===t?S.createElement(tD,n):S.createElement(tk,n)}function tk(e){var t=e.title,n=tN(e,tA);return S.createElement("svg",tO({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),S.createElement("title",null,t),S.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},S.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),S.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),S.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),S.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),S.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),S.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),S.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"
21currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}function tD(e){var t=e.title,n=tN(e,tM);return S.createElement("svg",tO({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),S.createElement("title",null,t),S.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},S.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),S.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),S.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),S.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),S.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),S.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),S.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}function tj(e){!function(e){if(e.length<2||"+"!==e[0])return!1;for(var t=1;t<e.length;){var n=e.charCodeAt(t);if(!(n>=48)||!(n<=57))return!1;t++}return!0}(e)&&console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",e)}function tL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tF(e,t){return!!w(e,t)||(console.error("Country not found: ".concat(e)),!1)}function tV(e,t){return e&&0===(e=e.filter(function(e){return tF(e,t)})).length&&(e=void 0),e}function tB(e){return new h(e).getCountries()}tI.propTypes={title:P.string.isRequired,aspectRatio:P.number},tk.propTypes={title:P.string.isRequired},tD.propTypes={title:P.string.isRequired};
21var tW=["country","label","aspectRatio"];function tU(){return(tU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function t_(e){var t=e.flags,n=e.flagUrl,r=e.flagComponent,i=e.internationalIcon;function o(e){var o=e.country,a=e.label,s=e.aspectRatio,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,tW),u=i===tI?s:void 0;return S.createElement("div",tU({},l,{className:A("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":1===u,"PhoneInputCountryIcon--border":o})}),o?S.createElement(r,{country:o,countryName:a,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):S.createElement(i,{title:a,aspectRatio:u,className:"PhoneInputCountryIconImg"}))}return o.propTypes={country:P.string,label:P.string.isRequired,aspectRatio:P.number},o}function tG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}t_({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:tT,internationalIcon:tI});function tK(e){return(tK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tX(e){return(tX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tz(e){var t="function"==typeof Map?new Map:void 0;return(tz=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(tY())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&tZ(i,n.prototype),i}(e,arguments,tJ(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),tZ(n,e)})(e)}function tY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(tY=function(){return!!e})()}function tZ(e,t){return(tZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tJ(e){return(tJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tQ=function(e){function t(e){var n,r,i;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return r=t,i=[e],r=tJ(r),Object.setPrototypeOf(n=function(e,t){if(t&&("object"==tX(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,tY()?Reflect.construct(r,i||[],tJ(this).constructor):r.apply(this,i)),t.prototype),n.name=n.constructor.name,n}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tZ(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(tz(Error)),t0=function(e){return"([".concat(Q,"]{1,").concat(e,"})")};function t1(e){var t="[ \xa0\\t,]*",n="[:\\..]?[ \xa0\\t,-]*",r="[ \xa0\\t]*";return";ext="+t0("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|\xf3))?n?|e?xtn?|доб|anexo)"+n+t0("20"))+"#?|"+(t+"(?:[xx##~~]|int|int)"+n+t0("9"))+"#?|"+("[- ]+"+t0("6"))+"#|"+(r+"(?:,{2}|;)"+n+t0("15"))+"#?|"+(r+"(?:,)+"+n+t0("9"))+"#?"}
21var t2="["+et+"]{0,1}(?:["+ee+"]*["+Q+"]){3,}["+ee+Q+"]*",t3=RegExp("^["+et+"]{0,1}(?:["+ee+"]*["+Q+"]){1,2}$","i"),t4=RegExp("^["+Q+"]{2}$|^"+(t2+"(?:"+t1())+")?$","i"),t9=RegExp("(?:"+t1()+")$","i"),t8="(["+Q+"]|[\\-\\.\\(\\)]?)",t5=RegExp("^\\+"+t8+"*["+Q+"]"+t8+"*$","g"),t6=RegExp("^("+("["+Q+"]+((\\-)*[")+Q+"])*\\.)*[a-zA-Z]+((\\-)*["+Q+"])*\\.?$","g"),t7="tel:",ne=";phone-context=",nt=RegExp("["+et+Q+"]"),nn=RegExp("[^"+Q+"#]+$");function nr(e){return(nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=nr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nr(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nr(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ni(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function na(e){return(na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=na(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=na(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==na(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ns(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nu(e,t){return"+"+x(e,t)}function nd(e,t){return function(){var e,t=function(e){var t,n,r,i,o=function(e){if(Array.isArray(e))return e}(t=Array.prototype.slice.call(e))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{o=(n=n.call(e)).next,!1;for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,4)||function(e,t){if(e){if("string"==typeof e)return tq(e,4);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tq(e,t):void 0}}(t,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=o[0],l=o[1],u=o[2],d=o[3];if("string"==typeof s)n=s;else throw TypeError("A text for parsing must be a string.");if(l&&"string"!=typeof l)if(a(l))u?(r=l,i=u):i=l;else throw Error("Invalid second argument: ".concat(l));else d?(r=u,i=d):(r=void 0,i=u),l&&(r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
21t%2?tH(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=tK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tK(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tK(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({defaultCountry:l},r));return{text:n,options:r,metadata:i}}(arguments),n=t.text,r=t.options,i=t.metadata,o=r;o&&o.defaultCountry&&!w(o.defaultCountry,i)&&(o=nl(nl({},o),{},{defaultCountry:void 0}));try{return e=o,function(e,t,n){t=t||{};var r,i,o,a,s=new h(n);if(t.defaultCountry&&!s.hasCountry(t.defaultCountry)){if(t.v2)throw new tQ("INVALID_COUNTRY");throw Error("Unknown country: ".concat(t.defaultCountry))}var l=function(e,t,n){var r=function(e,t){var n=t.extractFormattedPhoneNumber,r=function(e){var t=e.indexOf(ne);if(t<0)return null;var n=t+ne.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}(e);if(!(null===r||0!==r.length&&(t5.test(r)||t6.test(r))))throw new tQ("NOT_A_NUMBER");if(null===r)i=n(e)||"";else{i="","+"===r.charAt(0)&&(i+=r);var i,o,a=e.indexOf(t7);o=a>=0?a+t7.length:0;var s=e.indexOf(ne);i+=e.substring(o,s)}var l=i.indexOf(";isub=");if(l>0&&(i=i.substring(0,l)),""!==i)return i}(e,{extractFormattedPhoneNumber:function(e){if(e){if(e.length>250){if(t)throw new tQ("TOO_LONG");return}if(!1===n)return e;var r=e.search(nt);return r<0?void 0:e.slice(r).replace(nn,"")}}});if(!r)return{};if(!(r.length>=2&&t4.test(r)))return t3.test(r)?{error:"TOO_SHORT"}:{};var i=function(e){var t=e.search(t9);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(t9),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}(r);return i.ext?i:{number:r}}(e,t.v2,t.extract),u=l.number,d=l.ext,c=l.error;if(!u){if(t.v2){if("TOO_SHORT"===c)throw new tQ("TOO_SHORT");throw new tQ("NOT_A_NUMBER")}return{}}var f=function(e,t,n,r){var i,o=ed(tt(e),void 0,t,n,r.metadata),a=o.countryCallingCodeSource,s=o.countryCallingCode,l=o.number;if(s)r.selectNumberingPlan(s);else{if(!l||!t&&!n)return{};t?(i=t,r.selectNumberingPlan(t),s=r.numberingPlan.callingCode()):(r.selectNumberingPlan(n),s=n)}if(!l)return{countryCallingCodeSource:a,countryCallingCode:s};var u=el(tt(l),void 0,r),d=u.nationalNumber,c=u.carrierCode,f=es(s,{nationalNumber:d,metadata:r});return f&&(i=f,"001"===f||r.selectNumberingPlan(i)),{country:i,countryCallingCode:s,countryCallingCodeSource:a,nationalNumber:d,carrierCode:c}}(u,t.defaultCountry,t.defaultCallingCode,s),p=f.country,m=f.nationalNumber,v=f.countryCallingCode,g=f.countryCallingCodeSource,y=f.carrierCode;if(!s.hasSelectedNumberingPlan()){if(t.v2)throw new tQ("INVALID_COUNTRY");return{}}if(!m||m.length<2){if(t.v2)throw new tQ("TOO_SHORT");return{}}if(m.length>17){if(t.v2)throw new tQ("TOO_LONG");return{}}if(t.v2){var $=new ew(v,m,s.metadata);return p&&($.country=p),y&&($.carrierCode=y),d&&($.ext=d),$.__countryCallingCodeSource=g,$}var b=(t.extended?!!s.hasSelectedNumberingPlan():!!p)&&q(m,s.nationalNumberPattern());return t.extended?{country:p,countryCallingCode:v,carrierCode:y,valid:b,possible:!!b||!!(!0===t.extended&&s.possibleLengths()&&H(m,s)),phone:m,ext:d}:b?(r=p,i=m,o=d,a={country:r,phone:i},o&&(a.ext=o),a):{}}(n,no(no({},e),{},{v2:!0}),i)}catch(e){if(e instanceof tQ);else throw e}}(e||"",t)}function nc(e,t,n){if(e){if("+"===e[0]){if("+"===e)return;var r=new e5(t,n);return r.input(e),r.getNumberValue()}if(t){var i=nm(e,t,n);return"+".concat(x(t,n)).concat(i||"")}}}function nf(e,t){var n,r,i=t.country,o=t.countries,a=t.defaultCountry,s=t.latestCountrySelectedByUser,l=t.required,u=t.metadata;if("+"===e)return i;var d=(n=e,(r=new e5(null,u)).input(n),r.getCountry());if(d)if(!o||o.indexOf(d)>=0)return d;else return;if(i){if(nv(e,i,u)){if(s&&nv(e,s,u))return s;else if(a&&nv(e,a,u))return a;else if(!l)return}else if(!l)return}return i}
21function nh(e,t,n){if(0!==e.indexOf(nu(t,n)))return e.replace(/\D/g,"");var r=new e5(t,n);r.input(e);var i=r.getNumber();return i?i.formatNational().replace(/\D/g,""):""}function np(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):e<t?-1:+(e>t)}function nm(e,t,n){var r=new e5(t,n);r.input(e);var i=r.getNumber();return i&&i.nationalNumber}function nv(e,t,n){for(var r=nu(t,n),i=0;i<e.length&&i<r.length;){if(e[i]!==r[i])return!1;i++}return!0}function ng(e){var t=e.value,n=e.phoneNumber,r=e.defaultCountry,i=e.international,o=e.useNationalFormat,a=e.metadata;return(!1===i||o)&&n&&n.country?n.formatNational().replace(/\D/g,""):!t&&i&&r?nu(r,a):t}function ny(e){return(ny="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?n$(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=ny(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ny(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ny(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nx(e,t){return null===e&&(e=void 0),null===t&&(t=void 0),e===t}var nw=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function nC(e){return(nC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nS(Object(n),!0).forEach(function(t){nO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nP(){return(nP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function nT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nN(r.key),r)}}function nR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nR=function(){return!!e})()}function nA(e){return(nA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nM(e,t){return(nM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nO(e,t,n){return(t=nN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nN(e){var t=function(e,t){if("object"!=nC(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nC(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nC(t)?t:t+""}var nI=function(e){var t,n;function r(e){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");c=r,f=[e],c=nA(c),nO(p=function(e,t){if(t&&("object"===nC(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,nR()?Reflect.construct(c,f||[],nA(this).constructor):c.apply(this,f)),"setInputRef",function(e){!function(e,t){for(var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return tG(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tG(e,t)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=r()).done;){var i,o,a=n.value;a&&(i=a,o=t,"function"==typeof i?i(o):i.current=o)}}([p.props.inputRef,p.inputRef],e)}),nO(p,"isCountrySupportedWithError",function(e){return tF(e,p.props.metadata)}),nO(p,"onCountryChange",function(e){var t=p.props,n=t.international,r=t.metadata,i=t.onChange,o=t.focusInputOnCountrySelection,a=p.state,s=function(e,t){var n=t.prevCountry,r
21=t.newCountry,i=t.metadata,o=t.useNationalFormat;if(n===r)return e;if(!e)if(o)return"";else return r?nu(r,i):"";if(r){if("+"===e[0]){if(o)return 0===e.indexOf("+"+x(r,i))?function(e,t,n){if(t){var r="+"+x(t,n);if(e.length<r.length){if(0===r.indexOf(e))return""}else if(0===e.indexOf(r))return e.slice(r.length)}for(var i=0,o=Object.keys(n.country_calling_codes);i<o.length;i++){var a=o[i];if(1===e.indexOf(a))return e.slice(1+a.length)}return""}(e,r,i):"";if(n){var a=nu(r,i);if(0!==e.indexOf(a))return a}else{var s=nu(r,i);return 0===e.indexOf(s)?e:s}}}else if("+"!==e[0])return nc(e,n,i)||"";return e}(a.phoneDigits,{prevCountry:a.country,newCountry:e,metadata:r,useNationalFormat:!n}),l=nc(s,e,r);o&&p.inputRef.current.focus(),p.setState({country:e,latestCountrySelectedByUser:e,hasUserSelectedACountry:!0,phoneDigits:s,value:l},function(){i(l)})}),nO(p,"onChange",function(e){var t=p.props,n=t.defaultCountry,r=t.onChange,i=t.addInternationalOption,o=t.international,a=t.limitMaxLength,s=t.countryCallingCodeEditable,l=t.metadata,u=p.state,d=u.countries,c=u.phoneDigits,f=u.country,m=u.latestCountrySelectedByUser,v=function(e,t){var n,r=t.prevPhoneDigits,i=t.country,o=t.defaultCountry,a=t.latestCountrySelectedByUser,s=t.countryRequired,l=t.getAnyCountry,u=t.countries,d=t.international,c=t.limitMaxLength,f=t.countryCallingCodeEditable,p=t.metadata;if(d&&!1===f&&i){var m,v=nu(i,p);if(0!==e.indexOf(v))return e&&"+"!==e[0]?m=nc(e=v+e,i,p):e=v,{phoneDigits:e,value:m,country:i}}return!1===d&&i&&e&&"+"===e[0]&&(e=nh(e,i,p)),e&&i&&c&&(e=function(e,t,n){var r=nm(e,t,n);if(r){var i,o,a=r.length-(i=t,(o=new h(o=n)).selectNumberingPlan(i),o.numberingPlan.possibleLengths()[o.numberingPlan.possibleLengths().length-1]);if(a>0)return e.slice(0,e.length-a)}return e}(e,i,p)),e&&"+"!==e[0]&&(!i||d)&&(e="+"+e),!e&&r&&"+"===r[0]&&(i=d?void 0:o),"+"===e&&r&&"+"===r[0]&&r.length>1&&(i=void 0),e&&(n="+"===e[0]&&("+"===e||i&&0===nu(i,p).indexOf(e))?void 0:nc(e,i,p)),n&&(i=nf(n,{country:i,countries:u,defaultCountry:o,latestCountrySelectedByUser:a,required:!1,metadata:p}),!1===d&&i&&e&&"+"===e[0]&&(n=nc(e=nh(e,i,p),i,p))),!i&&s&&(i=o||l()),{phoneDigits:e,country:i,value:n}}(e,{prevPhoneDigits:c,country:f,countryRequired:!i,defaultCountry:n,latestCountrySelectedByUser:m,getAnyCountry:function(){return p.getFirstSupportedCountry({countries:d})},countries:d,international:o,limitMaxLength:a,countryCallingCodeEditable:s,metadata:l}),g=v.phoneDigits,y=v.country,$=v.value,b={phoneDigits:g,value:$,country:y};m&&$&&!nv($,m,l)&&(b.latestCountrySelectedByUser=void 0),!1!==s||$||g!==p.state.phoneDigits||(b.forceRerender={}),p.setState(b,function(){return r($)})}),nO(p,"_onFocus",function(){return p.setState({isFocused:!0})}),nO(p,"_onBlur",function(){return p.setState({isFocused:!1})}),nO(p,"onFocus",function(e){p._onFocus();var t=p.props.onFocus;t&&t(e)}),nO(p,"onBlur",function(e){var t=p.props.onBlur;p._onBlur(),t&&t(e)}),nO(p,"onCountryFocus",function(e){p._onFocus();var t=p.props.countrySelectProps;if(t){var n=t.onFocus;n&&n(e)}}),nO(p,"onCountryBlur",function(e){p._onBlur();var t=p.props.countrySelectProps;if(t){var n=t.onBlur;n&&n(e)}}),p.inputRef=S.createRef();var t,n,i,o,a,s,l,u,d,c,f,p,m=p.props,v=m.value,g=(m.labels,m.international),y=m.addInternationalOption,$=m.displayInitialValueAsLocalNumber,b=m.initialValueFormat,w=m.metadata,C=p.props,E=C.defaultCountry,P=C.countries;E&&!p.isCountrySupportedWithError(E)&&(E=void 0),v&&tj(v),P=tV(P,w);var T=nd(v,w);p.CountryIcon=t_(p.props);var R=(i=(t={value:v,phoneNumber:T,defaultCountry:E,required:!y,countries:P||tB(w),getAnyCountry:function(){return p.getFirstSupportedCountry({countries:P})},metadata:w}).value,o=t.phoneNumber,a=t.defaultCountry,s=t.getAnyCountry,l=t.countries,u=t.required,d=t.metadata,o&&o.country?n=o.country:a&&(!i||nv(i,a,d))&&(n=a),l&&0>l.indexOf(n)&&(n=void 0),!n&&u&&l&&l.length>0&&(n=s()),n);return p.state={props:p.props,country:R,countries:P,phoneDigits:ng({value:v,phoneNumber:T,defaultCountry:E,international:g,useNationalFormat:$||"national"===b,metadata:w}),value:v},p}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&nM(r,e),t=[{key:"componentDidMount",value:function(){var e=this.props.onCountryChange,t=this.props.defaultCountry,n=this.state.country;e&&(t&&!this.isCountrySupportedWithError(t)&&(t=void 0),n!==t&&e(n))}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.onCountryChange,r=this.state.country;n&&r!==t.country&&n(r)}},{key:"getCountrySelectOptions",value:function(e){var t=e.countries,n=this.props,r=n.international,i=n.countryCallingCodeEditable,o=n.countryOptionsOrder,a=n.addInternationalOption,s=n.labels,l=n.locales,u=n.metadata;return this.useMemoCountrySelectOptions(function(){var e,n,d,c,f,h,p;return function(e,t){if(!t)return e;for(var n,r=[],i=[],o=r,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return tL(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tL(e,t)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=a()).done;)!function(){var t=n.value;if("|"===t)o.push({divider:!0});else if("..."===t||"…"===t)o=i;else{var r="\uD83C\uDF10"===t?void 0:t,a=e.indexOf(e.filter(function(e){return e.value===r})[0]),s=e[a];e.splice(a,1),o.push(s)}}();return r.concat(e).concat(i)}((n=(e={countries:t||tB(u),countryNames:s,addInternationalOption:(!r||!1!==i)&&a,compareStringsLocales:l}).countries,d=e.countryNames,c=e.addInternationalOption,f=e.compareStringsLocales,(h=e.compareStrings)||(h=np),(p=n.map(function(e){return{value:e,label:d[e]||e}})).sort(function(e,t){return h(e.label,t.label,f)}),c&&p.unshift({label:d.ZZ}),p),function(e,t){if(e&&(e=e.filter(function(e){switch(e){case"\uD83C\uDF10":case"|":case"...":case"…":return!0;default:return tF(e,t)}})).length>0)return e}(o,u))},[t,o,a,s,u])}},{key:"useMemoCountrySelectOptions",value:function(e,t){return this.countrySelectOptionsMemoDependencies&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;){if(e[n]!==t[n])return!1;n++}return!0}(t,this.countrySelectOptionsMemoDependencies)||(this.countrySelectOptionsMemo=e(),this.countrySelectOptionsMemoDependencies=t),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(e){var t=e.countries;return this.getCountrySelectOptions({countries:t})[0].value}},{key:"render",value:function(){var e=this.props,t=e.name,n=e.disabled,r=e.readOnly,i=e.autoComplete,o=e.style,a=e.className,s=(e.inputRef,e.inputComponent),l=e.numberInputProps,u=e.smartCaret,d=e.countrySelectComponent,c=e.countrySelectProps,f=e.containerComponent,h=e.containerComponentProps,p=(e.defaultCountry,e.countries,e.countryOptionsOrder,e.labels),m=(e.flags,e.flagComponent,e.flagUrl,e.addInternationalOption,e.internationalIcon,e.displayInitialValueAsLocalNumber,e.initialValueFormat,e.onCountryChange,e.limitMaxLength,e.countryCallingCodeEditable,e.focusInputOnCountrySelection,e.reset,e.metadata),v=e.international,g=(e.locales,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,nw)),y=this.state,$=y.country,b=y.countries,x=y.phoneDigits,w=y.isFocused,C=this.getCountrySelectOptions({countries:b});return S.createElement(f,nP({style:o,className:A(a,"PhoneInput",{"PhoneInput--focus":w,"PhoneInput--disabled":n,"PhoneInput--readOnly":r})},h),S.createElement(d,nP({name:t?"".concat(t,"Country"):void 0,"aria-label":p.country},c,{value:$,options:C,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:n||c&&c.disabled,readOnly:r||c&&c.readOnly,iconComponent:this.CountryIcon})),S.createElement(u?tu:tf,nP({ref:this.setInputRef,type:"tel",autoComplete:i},l,g,{inputFormat:!0===v?"INTERNATIONAL":!1===v?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:!!v||void 0,withCountryCallingCode:!!v||void 0,name:t,metadata:m,country:$,value:x||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:n,readOnly:r,inputComponent:s,className:A("PhoneInputInput",l&&l.className,g.className)})))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){return nE({props:e},function(e,t,n){var r=e.metadata,i=e.countries,o=e.defaultCountry,a=e.value,s=e.reset,l=e.international,u=e.displayInitialValueAsLocalNumber,d=e.initialValueFormat,c=t.defaultCountry,f=t.value,h=t.reset;n.country;var p=n.value,m=n.hasUserSelectedACountry,v=n.latestCountrySelectedByUser,g=function(e){return ng(nb(nb({},e),{},{international:l,useNationalFormat:u||"national"===d,metadata:r}))};if(s!==h)return{phoneDigits:g({value:void 0,defaultCountry:o}),value:void 0,country:o,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(o!==c){var y=!o||tF(o,r),$=!p||l&&p===g({value:void 0,defaultCountry:c}),b=!a&&$;if(!m&&y&&b)return{country:o,phoneDigits:g({value:void 0,defaultCountry:o}),value:void 0}}if(!nx(a,f)&&!nx(a,p)){if(a){a&&tj(a);var x,w,C=nd(a,r),S=tV(i,r);C&&C.country?(!S||S.indexOf(C.country)>=0)&&(x=C.country):(x=nf(a,{country:void 0,countries:S,metadata:r}))||!o||0!==a.indexOf(nu(o,r))||(x=o)}return a?v&&((x?v===x:nv(a,v,r))?x||(x=v):w={latestCountrySelectedByUser:void 0}):w={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0},nb(nb({},w),{},{phoneDigits:g({phoneNumber:C,value:a,defaultCountry:o}),value:a,country:a?x:o})}}(e,t.props,t))}}],t&&nT(r.prototype,t),n&&nT(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(S.PureComponent),nk=S.forwardRef(function(e,t){return S.createElement(nI,nP({},function(e){for(var t in e=nE({},e),nD)void 0===e[t]&&(e[t]=nD[t]);return e}(e),{inputRef:t}))});nk.propTypes={value:P.string,onChange:P.func.isRequired,onFocus:P.func,onBlur:P.func,disabled:P.bool,readOnly:P.bool,autoComplete:P.string,initialValueFormat:P.oneOf(["national"]),displayInitialValueAsLocalNumber:P.bool,defaultCountry:P.string,countries:P.arrayOf(P.string),labels:R,locales:P.oneOfType([P.string,P.arrayOf(P.string)]),flagUrl:P.string,flags:P.objectOf(P.elementType),flagComponent:P.elementType,addInternationalOption:P.bool,internationalIcon:P.elementType,countryOptionsOrder:P.arrayOf(P.string),style:P.object,className:P.string,countrySelectComponent:P.elementType,countrySelectProps:P.object,inputComponent:P.elementType,numberInputProps:P.object,containerComponent:P.elementType,containerComponentProps:P.object,smartCaret:P.bool,international:P.bool,limitMaxLength:P.bool,countryCallingCodeEditable:P.bool,metadata:T,onCountryChange:P.func,focusInputOnCountrySelection:P.bool};var nD={autoComplete:"tel",countrySelectComponent:tw,flagComponent:tT,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:tI,inputComponent:"input",containerComponent:"div",reset:P.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0}
21,nj=["metadata","labels"];function nL(){return(nL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function nF(e){var t=S.forwardRef(function(t,n){var r=t.metadata,i=t.labels,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,nj);return S.createElement(nk,nL({},o,{ref:n,metadata:void 0===r?e:r,labels:void 0===i?E:i}))});return t.propTypes={metadata:T,labels:R},t}nF();let nV=nF(r);function nB(){return function(e,t){var n=Array.prototype.slice.call(t);return n.push(r),e.apply(this,n)}(x,arguments)}},97354:()=>{},97830:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});let r=(...e)=>e.reduce((e,t)=>n=>t(e(n)))},97916:(e,t,n)=>{"use strict";n.d(t,{$:()=>l});var r=n(44922),i=n(95925),o=n(77268),a=n(31142),s=n(56303);let l=r.forwardRef(function(e,t){let{render:n,className:l,style:u,children:d,...c}=e,{filteredItems:f}=(0,o.Dc)(),h=(0,o.Ee)(),p=function(){let e=(0,s.Z)(),t=r.useRef(null);return r.useEffect(()=>{if(a.un)return;let n=t.current;if(null==n)return;let r=function(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;""!==e.nodeValue&&(n=e)}return n}(n);if(null==r)return;let i=r.nodeValue??"",o=`${i}\u2060`;return r.nodeValue=o,e.start(200,()=>{r.nodeValue===o&&(r.nodeValue=i)}),()=>{e.clear(),r.nodeValue===o&&(r.nodeValue=i)}},[t,e]),t}(),m=0===f.length?d:null;return(0,i.o)("div",e,{ref:[t,h.state.emptyRef,p],props:[{children:m,role:"status","aria-live":"polite","aria-atomic":!0},c]})})},98212:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r=n(65728);function i(e){return(0,r.S)(e)?e.get():e}},98408:()=>{},99089:(e,t,n)=>{"use strict";n.d(t,{K2:()=>r,Kd:()=>i,uD:()=>o,z_:()=>a});let r={style:{transition:"none"}},i="data-base-ui-click-trigger",o={fallbackAxisSide:"none"},a={clipPath:"inset(50%)",position:"fixed",top:0,left:0}},99257:()=>{},99601:()=>{},99842:(e,t,n)=>{"use strict";function r(e,{style:t,vars:n},r,i){let o,a=e.style;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}n.d(t,{e:()=>r})}}]);
22//# sourceMappingURL=4818-0edf2fae3119e525.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.