airport-one-embeddable-widgets 0.48.0 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -40,7 +40,7 @@ Error generating stack: `+i.message+`
|
|
|
40
40
|
`+i.stack}return{value:e,source:t,stack:a,digest:null}}function cc(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function fc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var p1=typeof WeakMap=="function"?WeakMap:Map;function Nh(e,t,n){n=hn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ss||(ss=!0,Ec=r),fc(e,t)},n}function Rh(e,t,n){n=hn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){fc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){fc(e,t),typeof r!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ih(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new p1;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=O1.bind(null,e,t,n),t.then(e,e))}function Ah(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Mh(e,t,n,r,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=hn(-1,1),t.tag=2,zn(n,t,1))),n.lanes|=1),e)}var h1=ln.ReactCurrentOwner,dt=!1;function at(e,t,n,r){t.child=e===null?sh(t,null,n,r):ua(t,e.child,n,r)}function Dh(e,t,n,r,a){n=n.render;var i=t.ref;return la(t,a),r=ac(e,t,n,r,i,a),n=ic(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,mn(e,t,a)):(Se&&n&&ju(t),t.flags|=1,at(e,t,r,a),t.child)}function Lh(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!Ac(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Fh(e,t,i,r,a)):(e=ps(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:ai,n(o,r)&&e.ref===t.ref)return mn(e,t,a)}return t.flags|=1,e=Bn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Fh(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(ai(i,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=i,(e.lanes&a)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,mn(e,t,a)}return dc(e,t,n,r,a)}function $h(e,t,n){var r=t.pendingProps,a=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},he(pa,bt),bt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,he(pa,bt),bt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,he(pa,bt),bt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,he(pa,bt),bt|=r;return at(e,t,a,n),t.child}function jh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function dc(e,t,n,r,a){var i=ft(n)?dr:qe.current;return i=ra(t,i),la(t,a),n=ac(e,t,n,r,i,a),r=ic(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,mn(e,t,a)):(Se&&r&&ju(t),t.flags|=1,at(e,t,n,a),t.child)}function zh(e,t,n,r,a){if(ft(n)){var i=!0;$o(t)}else i=!1;if(la(t,a),t.stateNode===null)ns(e,t),rh(t,n,r),Gu(t,n,r,a),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Tt(u):(u=ft(n)?dr:qe.current,u=ra(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||l!==u)&&ah(t,o,r,u),jn=!1;var f=t.memoizedState;o.state=f,Bo(t,r,o,a),l=t.memoizedState,s!==r||f!==l||ct.current||jn?(typeof c=="function"&&(Ku(t,n,c,r),l=t.memoizedState),(s=jn||nh(t,n,s,r,f,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Xp(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ft(t.type,s),o.props=u,d=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Tt(l):(l=ft(n)?dr:qe.current,l=ra(t,l));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||f!==l)&&ah(t,o,r,l),jn=!1,f=t.memoizedState,o.state=f,Bo(t,r,o,a);var v=t.memoizedState;s!==d||f!==v||ct.current||jn?(typeof m=="function"&&(Ku(t,n,m,r),v=t.memoizedState),(u=jn||nh(t,n,u,r,f,v,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return pc(e,t,n,r,i,a)}function pc(e,t,n,r,a,i){jh(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return a&&Hp(t,n,!1),mn(e,t,i);r=t.stateNode,h1.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=ua(t,e.child,null,i),t.child=ua(t,null,s,i)):at(e,t,s,i),t.memoizedState=r.state,a&&Hp(t,n,!0),t.child}function Uh(e){var t=e.stateNode;t.pendingContext?Wp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Wp(e,t.context,!1),Xu(e,t.containerInfo)}function Wh(e,t,n,r,a){return oa(),Qu(a),t.flags|=256,at(e,t,n,r),t.child}var hc={dehydrated:null,treeContext:null,retryLane:0};function mc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qh(e,t,n){var r=t.pendingProps,a=Ce.current,i=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(a&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),he(Ce,a&1),e===null)return Wu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=hs(o,r,0,null),e=kr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=mc(n),t.memoizedState=hc,e):vc(t,o));if(a=e.memoizedState,a!==null&&(s=a.dehydrated,s!==null))return m1(e,t,o,r,s,a,n);if(i){i=r.fallback,o=t.mode,a=e.child,s=a.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Bn(a,l),r.subtreeFlags=a.subtreeFlags&14680064),s!==null?i=Bn(s,i):(i=kr(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?mc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=hc,r}return i=e.child,e=i.sibling,r=Bn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function vc(e,t){return t=hs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ts(e,t,n,r){return r!==null&&Qu(r),ua(t,e.child,null,n),e=vc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function m1(e,t,n,r,a,i,o){if(n)return t.flags&256?(t.flags&=-257,r=cc(Error(T(422))),ts(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=hs({mode:"visible",children:r.children},a,0,null),i=kr(i,a,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&ua(t,e.child,null,o),t.child.memoizedState=mc(o),t.memoizedState=hc,i);if(!(t.mode&1))return ts(e,t,o,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(T(419)),r=cc(i,r,void 0),ts(e,t,o,r)}if(s=(o&e.childLanes)!==0,dt||s){if(r=ze,r!==null){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(r.suspendedLanes|o)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,pn(e,a),zt(r,e,a,-1))}return Ic(),r=cc(Error(T(421))),ts(e,t,o,r)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=T1.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,wt=Dn(a.nextSibling),gt=t,Se=!0,Lt=null,e!==null&&(Et[Ot++]=fn,Et[Ot++]=dn,Et[Ot++]=pr,fn=e.id,dn=e.overflow,pr=t),t=vc(t,r.children),t.flags|=4096,t)}function Hh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yu(e.return,t,n)}function yc(e,t,n,r,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function Vh(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(at(e,t,r.children,n),r=Ce.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hh(e,n,t);else if(e.tag===19)Hh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(he(Ce,r),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&qo(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),yc(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&qo(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}yc(t,!0,n,null,i);break;case"together":yc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ns(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),gr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=Bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function v1(e,t,n){switch(t.tag){case 3:Uh(t),oa();break;case 5:lh(t);break;case 1:ft(t.type)&&$o(t);break;case 4:Xu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;he(Qo,r._currentValue),r._currentValue=a;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(he(Ce,Ce.current&1),t.flags|=128,null):n&t.child.childLanes?Qh(e,t,n):(he(Ce,Ce.current&1),e=mn(e,t,n),e!==null?e.sibling:null);he(Ce,Ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Vh(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),he(Ce,Ce.current),r)break;return null;case 22:case 23:return t.lanes=0,$h(e,t,n)}return mn(e,t,n)}var Bh,gc,Yh,Zh;Bh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},gc=function(){},Yh=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,vr(qt.current);var i=null;switch(n){case"input":a=Yl(e,a),r=Yl(e,r),i=[];break;case"select":a=_e({},a,{value:void 0}),r=_e({},r,{value:void 0}),i=[];break;case"textarea":a=Kl(e,a),r=Kl(e,r),i=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Do)}Xl(n,r);var o;n=null;for(u in a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var s=a[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Fa.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(s=a!=null?a[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Fa.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ge("scroll",e),i||s===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Zh=function(e,t,n,r){n!==r&&(t.flags|=4)};function wi(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function y1(e,t,n){var r=t.pendingProps;switch(zu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return ft(t.type)&&Fo(),Ge(t),null;case 3:return r=t.stateNode,ca(),we(ct),we(qe),tc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Wo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Lt!==null&&(Pc(Lt),Lt=null))),gc(e,t),Ge(t),null;case 5:Ju(t);var a=vr(hi.current);if(n=t.type,e!==null&&t.stateNode!=null)Yh(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return Ge(t),null}if(e=vr(qt.current),Wo(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Zt]=t,r[ui]=i,e=(t.mode&1)!==0,n){case"dialog":ge("cancel",r),ge("close",r);break;case"iframe":case"object":case"embed":ge("load",r);break;case"video":case"audio":for(a=0;a<oi.length;a++)ge(oi[a],r);break;case"source":ge("error",r);break;case"img":case"image":case"link":ge("error",r),ge("load",r);break;case"details":ge("toggle",r);break;case"input":Od(r,i),ge("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ge("invalid",r);break;case"textarea":Nd(r,i),ge("invalid",r)}Xl(n,i),a=null;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];o==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&Mo(r.textContent,s,e),a=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Mo(r.textContent,s,e),a=["children",""+s]):Fa.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&ge("scroll",r)}switch(n){case"input":co(r),Pd(r,i,!0);break;case"textarea":co(r),Id(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Do)}r=a,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ad(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Zt]=t,e[ui]=r,Bh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Jl(n,r),n){case"dialog":ge("cancel",e),ge("close",e),a=r;break;case"iframe":case"object":case"embed":ge("load",e),a=r;break;case"video":case"audio":for(a=0;a<oi.length;a++)ge(oi[a],e);a=r;break;case"source":ge("error",e),a=r;break;case"img":case"image":case"link":ge("error",e),ge("load",e),a=r;break;case"details":ge("toggle",e),a=r;break;case"input":Od(e,r),a=Yl(e,r),ge("invalid",e);break;case"option":a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=_e({},r,{value:void 0}),ge("invalid",e);break;case"textarea":Nd(e,r),a=Kl(e,r),ge("invalid",e);break;default:a=r}Xl(n,a),s=a;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?Ld(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Md(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ua(e,l):typeof l=="number"&&Ua(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Fa.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ge("scroll",e):l!=null&&Ll(e,i,l,o))}switch(n){case"input":co(e),Pd(e,r,!1);break;case"textarea":co(e),Id(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Tn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Vr(e,!!r.multiple,i,!1):r.defaultValue!=null&&Vr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Do)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ge(t),null;case 6:if(e&&t.stateNode!=null)Zh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=vr(hi.current),vr(qt.current),Wo(t)){if(r=t.stateNode,n=t.memoizedProps,r[Zt]=t,(i=r.nodeValue!==n)&&(e=gt,e!==null))switch(e.tag){case 3:Mo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Mo(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Zt]=t,t.stateNode=r}return Ge(t),null;case 13:if(we(Ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Se&&wt!==null&&t.mode&1&&!(t.flags&128))Kp(),oa(),t.flags|=98560,i=!1;else if(i=Wo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(T(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(T(317));i[Zt]=t}else oa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ge(t),i=!1}else Lt!==null&&(Pc(Lt),Lt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ce.current&1?Fe===0&&(Fe=3):Ic())),t.updateQueue!==null&&(t.flags|=4),Ge(t),null);case 4:return ca(),gc(e,t),e===null&&si(t.stateNode.containerInfo),Ge(t),null;case 10:return Bu(t.type._context),Ge(t),null;case 17:return ft(t.type)&&Fo(),Ge(t),null;case 19:if(we(Ce),i=t.memoizedState,i===null)return Ge(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)wi(i,!1);else{if(Fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=qo(e),o!==null){for(t.flags|=128,wi(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return he(Ce,Ce.current&1|2),t.child}e=e.sibling}i.tail!==null&&Me()>ha&&(t.flags|=128,r=!0,wi(i,!1),t.lanes=4194304)}else{if(!r)if(e=qo(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Se)return Ge(t),null}else 2*Me()-i.renderingStartTime>ha&&n!==1073741824&&(t.flags|=128,r=!0,wi(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Me(),t.sibling=null,n=Ce.current,he(Ce,r?n&1|2:n&1),t):(Ge(t),null);case 22:case 23:return Rc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?bt&1073741824&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function g1(e,t){switch(zu(t),t.tag){case 1:return ft(t.type)&&Fo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ca(),we(ct),we(qe),tc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ju(t),null;case 13:if(we(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Ce),null;case 4:return ca(),null;case 10:return Bu(t.type._context),null;case 22:case 23:return Rc(),null;case 24:return null;default:return null}}var rs=!1,Xe=!1,w1=typeof WeakSet=="function"?WeakSet:Set,L=null;function da(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function wc(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var qh=!1;function b1(e,t){if(Ru=So,e=Ep(),Su(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(x){n=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var m;d!==n||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Iu={focusedElem:e,selectionRange:n},So=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,b=v.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ft(t.type,g),b);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(x){Pe(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return v=qh,qh=!1,v}function bi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&wc(t,n,i)}a=a.next}while(a!==r)}}function as(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function bc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Kh(e){var t=e.alternate;t!==null&&(e.alternate=null,Kh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zt],delete t[ui],delete t[Lu],delete t[n1],delete t[r1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gh(e){return e.tag===5||e.tag===3||e.tag===4}function Xh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Do));else if(r!==4&&(e=e.child,e!==null))for(xc(e,t,n),e=e.sibling;e!==null;)xc(e,t,n),e=e.sibling}function kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(kc(e,t,n),e=e.sibling;e!==null;)kc(e,t,n),e=e.sibling}var He=null,$t=!1;function Un(e,t,n){for(n=n.child;n!==null;)Jh(e,t,n),n=n.sibling}function Jh(e,t,n){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(yo,n)}catch(s){}switch(n.tag){case 5:Xe||da(n,t);case 6:var r=He,a=$t;He=null,Un(e,t,n),He=r,$t=a,He!==null&&($t?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&($t?(e=He,n=n.stateNode,e.nodeType===8?Du(e.parentNode,n):e.nodeType===1&&Du(e,n),Xa(e)):Du(He,n.stateNode));break;case 4:r=He,a=$t,He=n.stateNode.containerInfo,$t=!0,Un(e,t,n),He=r,$t=a;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&wc(n,t,o),a=a.next}while(a!==r)}Un(e,t,n);break;case 1:if(!Xe&&(da(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Pe(n,t,s)}Un(e,t,n);break;case 21:Un(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,Un(e,t,n),Xe=r):Un(e,t,n);break;default:Un(e,t,n)}}function em(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new w1),t.forEach(function(r){var a=P1.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function jt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r];try{var i=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:He=s.stateNode,$t=!1;break e;case 3:He=s.stateNode.containerInfo,$t=!0;break e;case 4:He=s.stateNode.containerInfo,$t=!0;break e}s=s.return}if(He===null)throw Error(T(160));Jh(i,o,a),He=null,$t=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(u){Pe(a,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)tm(t,e),t=t.sibling}function tm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(jt(t,e),Gt(e),r&4){try{bi(3,e,e.return),as(3,e)}catch(g){Pe(e,e.return,g)}try{bi(5,e,e.return)}catch(g){Pe(e,e.return,g)}}break;case 1:jt(t,e),Gt(e),r&512&&n!==null&&da(n,n.return);break;case 5:if(jt(t,e),Gt(e),r&512&&n!==null&&da(n,n.return),e.flags&32){var a=e.stateNode;try{Ua(a,"")}catch(g){Pe(e,e.return,g)}}if(r&4&&(a=e.stateNode,a!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&Td(a,i),Jl(s,o);var u=Jl(s,i);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?Ld(a,d):c==="dangerouslySetInnerHTML"?Md(a,d):c==="children"?Ua(a,d):Ll(a,c,d,u)}switch(s){case"input":Zl(a,i);break;case"textarea":Rd(a,i);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Vr(a,!!i.multiple,m,!1):f!==!!i.multiple&&(i.defaultValue!=null?Vr(a,!!i.multiple,i.defaultValue,!0):Vr(a,!!i.multiple,i.multiple?[]:"",!1))}a[ui]=i}catch(g){Pe(e,e.return,g)}}break;case 6:if(jt(t,e),Gt(e),r&4){if(e.stateNode===null)throw Error(T(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(g){Pe(e,e.return,g)}}break;case 3:if(jt(t,e),Gt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Xa(t.containerInfo)}catch(g){Pe(e,e.return,g)}break;case 4:jt(t,e),Gt(e);break;case 13:jt(t,e),Gt(e),a=e.child,a.flags&8192&&(i=a.memoizedState!==null,a.stateNode.isHidden=i,!i||a.alternate!==null&&a.alternate.memoizedState!==null||(Cc=Me())),r&4&&em(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Xe=(u=Xe)||c,jt(t,e),Xe=u):jt(t,e),Gt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(L=e,c=e.child;c!==null;){for(d=L=c;L!==null;){switch(f=L,m=f.child,f.tag){case 0:case 11:case 14:case 15:bi(4,f,f.return);break;case 1:da(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(g){Pe(r,n,g)}}break;case 5:da(f,f.return);break;case 22:if(f.memoizedState!==null){am(d);continue}}m!==null?(m.return=f,L=m):am(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{a=d.stateNode,u?(i=a.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=Dd("display",o))}catch(g){Pe(e,e.return,g)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){Pe(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:jt(t,e),Gt(e),r&4&&em(e);break;case 21:break;default:jt(t,e),Gt(e)}}function Gt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Gh(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var a=r.stateNode;r.flags&32&&(Ua(a,""),r.flags&=-33);var i=Xh(e);kc(e,i,a);break;case 3:case 4:var o=r.stateNode.containerInfo,s=Xh(e);xc(e,s,o);break;default:throw Error(T(161))}}catch(l){Pe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function x1(e,t,n){L=e,nm(e)}function nm(e,t,n){for(var r=(e.mode&1)!==0;L!==null;){var a=L,i=a.child;if(a.tag===22&&r){var o=a.memoizedState!==null||rs;if(!o){var s=a.alternate,l=s!==null&&s.memoizedState!==null||Xe;s=rs;var u=Xe;if(rs=o,(Xe=l)&&!u)for(L=a;L!==null;)o=L,l=o.child,o.tag===22&&o.memoizedState!==null?im(a):l!==null?(l.return=o,L=l):im(a);for(;i!==null;)L=i,nm(i),i=i.sibling;L=a,rs=s,Xe=u}rm(e)}else a.subtreeFlags&8772&&i!==null?(i.return=a,L=i):rm(e)}}function rm(e){for(;L!==null;){var t=L;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Xe||as(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xe)if(n===null)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Ft(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&eh(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}eh(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Xa(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}Xe||t.flags&512&&bc(t)}catch(f){Pe(t,t.return,f)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function am(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function im(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{as(4,t)}catch(l){Pe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var a=t.return;try{r.componentDidMount()}catch(l){Pe(t,a,l)}}var i=t.return;try{bc(t)}catch(l){Pe(t,i,l)}break;case 5:var o=t.return;try{bc(t)}catch(l){Pe(t,o,l)}}}catch(l){Pe(t,t.return,l)}if(t===e){L=null;break}var s=t.sibling;if(s!==null){s.return=t.return,L=s;break}L=t.return}}var k1=Math.ceil,is=ln.ReactCurrentDispatcher,Sc=ln.ReactCurrentOwner,Nt=ln.ReactCurrentBatchConfig,oe=0,ze=null,De=null,Ve=0,bt=0,pa=Ln(0),Fe=0,xi=null,gr=0,os=0,_c=0,ki=null,pt=null,Cc=0,ha=1/0,vn=null,ss=!1,Ec=null,Wn=null,ls=!1,Qn=null,us=0,Si=0,Oc=null,cs=-1,fs=0;function it(){return oe&6?Me():cs!==-1?cs:cs=Me()}function Hn(e){return e.mode&1?oe&2&&Ve!==0?Ve&-Ve:i1.transition!==null?(fs===0&&(fs=Gd()),fs):(e=fe,e!==0||(e=window.event,e=e===void 0?16:op(e.type)),e):1}function zt(e,t,n,r){if(50<Si)throw Si=0,Oc=null,Error(T(185));Ya(e,n,r),(!(oe&2)||e!==ze)&&(e===ze&&(!(oe&2)&&(os|=n),Fe===4&&Vn(e,Ve)),ht(e,r),n===1&&oe===0&&!(t.mode&1)&&(ha=Me()+500,jo&&$n()))}function ht(e,t){var n=e.callbackNode;i0(e,t);var r=bo(e,e===ze?Ve:0);if(r===0)n!==null&&Zd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Zd(n),t===1)e.tag===0?a1(sm.bind(null,e)):Vp(sm.bind(null,e)),e1(function(){!(oe&6)&&$n()}),n=null;else{switch(Xd(r)){case 1:n=ou;break;case 4:n=qd;break;case 16:n=vo;break;case 536870912:n=Kd;break;default:n=vo}n=mm(n,om.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function om(e,t){if(cs=-1,fs=0,oe&6)throw Error(T(327));var n=e.callbackNode;if(ma()&&e.callbackNode!==n)return null;var r=bo(e,e===ze?Ve:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ds(e,r);else{t=r;var a=oe;oe|=2;var i=um();(ze!==e||Ve!==t)&&(vn=null,ha=Me()+500,br(e,t));do try{C1();break}catch(s){lm(e,s)}while(1);Vu(),is.current=i,oe=a,De!==null?t=0:(ze=null,Ve=0,t=Fe)}if(t!==0){if(t===2&&(a=su(e),a!==0&&(r=a,t=Tc(e,a))),t===1)throw n=xi,br(e,0),Vn(e,r),ht(e,Me()),n;if(t===6)Vn(e,r);else{if(a=e.current.alternate,!(r&30)&&!S1(a)&&(t=ds(e,r),t===2&&(i=su(e),i!==0&&(r=i,t=Tc(e,i))),t===1))throw n=xi,br(e,0),Vn(e,r),ht(e,Me()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:xr(e,pt,vn);break;case 3:if(Vn(e,r),(r&130023424)===r&&(t=Cc+500-Me(),10<t)){if(bo(e,0)!==0)break;if(a=e.suspendedLanes,(a&r)!==r){it(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Mu(xr.bind(null,e,pt,vn),t);break}xr(e,pt,vn);break;case 4:if(Vn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,a=-1;0<r;){var o=31-Mt(r);i=1<<o,o=t[o],o>a&&(a=o),r&=~i}if(r=a,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*k1(r/1960))-r,10<r){e.timeoutHandle=Mu(xr.bind(null,e,pt,vn),r);break}xr(e,pt,vn);break;case 5:xr(e,pt,vn);break;default:throw Error(T(329))}}}return ht(e,Me()),e.callbackNode===n?om.bind(null,e):null}function Tc(e,t){var n=ki;return e.current.memoizedState.isDehydrated&&(br(e,t).flags|=256),e=ds(e,t),e!==2&&(t=pt,pt=n,t!==null&&Pc(t)),e}function Pc(e){pt===null?pt=e:pt.push.apply(pt,e)}function S1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!Dt(i(),a))return!1}catch(o){return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vn(e,t){for(t&=~_c,t&=~os,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mt(t),r=1<<n;e[n]=-1,t&=~r}}function sm(e){if(oe&6)throw Error(T(327));ma();var t=bo(e,0);if(!(t&1))return ht(e,Me()),null;var n=ds(e,t);if(e.tag!==0&&n===2){var r=su(e);r!==0&&(t=r,n=Tc(e,r))}if(n===1)throw n=xi,br(e,0),Vn(e,t),ht(e,Me()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xr(e,pt,vn),ht(e,Me()),null}function Nc(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(ha=Me()+500,jo&&$n())}}function wr(e){Qn!==null&&Qn.tag===0&&!(oe&6)&&ma();var t=oe;oe|=1;var n=Nt.transition,r=fe;try{if(Nt.transition=null,fe=1,e)return e()}finally{fe=r,Nt.transition=n,oe=t,!(oe&6)&&$n()}}function Rc(){bt=pa.current,we(pa)}function br(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,J0(n)),De!==null)for(n=De.return;n!==null;){var r=n;switch(zu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Fo();break;case 3:ca(),we(ct),we(qe),tc();break;case 5:Ju(r);break;case 4:ca();break;case 13:we(Ce);break;case 19:we(Ce);break;case 10:Bu(r.type._context);break;case 22:case 23:Rc()}n=n.return}if(ze=e,De=e=Bn(e.current,null),Ve=bt=t,Fe=0,xi=null,_c=os=gr=0,pt=ki=null,mr!==null){for(t=0;t<mr.length;t++)if(n=mr[t],r=n.interleaved,r!==null){n.interleaved=null;var a=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=a,r.next=o}n.pending=r}mr=null}return e}function lm(e,t){do{var n=De;try{if(Vu(),Ko.current=es,Go){for(var r=Ee.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Go=!1}if(yr=0,je=Le=Ee=null,mi=!1,vi=0,Sc.current=null,n===null||n.return===null){Fe=1,xi=t,De=null;break}e:{var i=e,o=n.return,s=n,l=t;if(t=Ve,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=s,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=Ah(o);if(m!==null){m.flags&=-257,Mh(m,o,s,i,t),m.mode&1&&Ih(i,u,t),t=m,l=u;var v=t.updateQueue;if(v===null){var g=new Set;g.add(l),t.updateQueue=g}else v.add(l);break e}else{if(!(t&1)){Ih(i,u,t),Ic();break e}l=Error(T(426))}}else if(Se&&s.mode&1){var b=Ah(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Mh(b,o,s,i,t),Qu(fa(l,s));break e}}i=l=fa(l,s),Fe!==4&&(Fe=2),ki===null?ki=[i]:ki.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var h=Nh(i,l,t);Jp(i,h);break e;case 1:s=l;var p=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Wn===null||!Wn.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var x=Rh(i,s,t);Jp(i,x);break e}}i=i.return}while(i!==null)}fm(n)}catch(S){t=S,De===n&&n!==null&&(De=n=n.return);continue}break}while(1)}function um(){var e=is.current;return is.current=es,e===null?es:e}function Ic(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),ze===null||!(gr&268435455)&&!(os&268435455)||Vn(ze,Ve)}function ds(e,t){var n=oe;oe|=2;var r=um();(ze!==e||Ve!==t)&&(vn=null,br(e,t));do try{_1();break}catch(a){lm(e,a)}while(1);if(Vu(),oe=n,is.current=r,De!==null)throw Error(T(261));return ze=null,Ve=0,Fe}function _1(){for(;De!==null;)cm(De)}function C1(){for(;De!==null&&!Kg();)cm(De)}function cm(e){var t=hm(e.alternate,e,bt);e.memoizedProps=e.pendingProps,t===null?fm(e):De=t,Sc.current=null}function fm(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=g1(n,t),n!==null){n.flags&=32767,De=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,De=null;return}}else if(n=y1(n,t,bt),n!==null){De=n;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Fe===0&&(Fe=5)}function xr(e,t,n){var r=fe,a=Nt.transition;try{Nt.transition=null,fe=1,E1(e,t,n,r)}finally{Nt.transition=a,fe=r}return null}function E1(e,t,n,r){do ma();while(Qn!==null);if(oe&6)throw Error(T(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(o0(e,i),e===ze&&(De=ze=null,Ve=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ls||(ls=!0,mm(vo,function(){return ma(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Nt.transition,Nt.transition=null;var o=fe;fe=1;var s=oe;oe|=4,Sc.current=null,b1(e,n),tm(n,e),B0(Iu),So=!!Ru,Iu=Ru=null,e.current=n,x1(n),Gg(),oe=s,fe=o,Nt.transition=i}else e.current=n;if(ls&&(ls=!1,Qn=e,us=a),i=e.pendingLanes,i===0&&(Wn=null),e0(n.stateNode),ht(e,Me()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(ss)throw ss=!1,e=Ec,Ec=null,e;return us&1&&e.tag!==0&&ma(),i=e.pendingLanes,i&1?e===Oc?Si++:(Si=0,Oc=e):Si=0,$n(),null}function ma(){if(Qn!==null){var e=Xd(us),t=Nt.transition,n=fe;try{if(Nt.transition=null,fe=16>e?16:e,Qn===null)var r=!1;else{if(e=Qn,Qn=null,us=0,oe&6)throw Error(T(331));var a=oe;for(oe|=4,L=e.current;L!==null;){var i=L,o=i.child;if(L.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(L=u;L!==null;){var c=L;switch(c.tag){case 0:case 11:case 15:bi(8,c,i)}var d=c.child;if(d!==null)d.return=c,L=d;else for(;L!==null;){c=L;var f=c.sibling,m=c.return;if(Kh(c),c===u){L=null;break}if(f!==null){f.return=m,L=f;break}L=m}}}var v=i.alternate;if(v!==null){var g=v.child;if(g!==null){v.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}L=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,L=o;else e:for(;L!==null;){if(i=L,i.flags&2048)switch(i.tag){case 0:case 11:case 15:bi(9,i,i.return)}var h=i.sibling;if(h!==null){h.return=i.return,L=h;break e}L=i.return}}var p=e.current;for(L=p;L!==null;){o=L;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,L=y;else e:for(o=p;L!==null;){if(s=L,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:as(9,s)}}catch(S){Pe(s,s.return,S)}if(s===o){L=null;break e}var x=s.sibling;if(x!==null){x.return=s.return,L=x;break e}L=s.return}}if(oe=a,$n(),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(yo,e)}catch(S){}r=!0}return r}finally{fe=n,Nt.transition=t}}return!1}function dm(e,t,n){t=fa(n,t),t=Nh(e,t,1),e=zn(e,t,1),t=it(),e!==null&&(Ya(e,1,t),ht(e,t))}function Pe(e,t,n){if(e.tag===3)dm(e,e,n);else for(;t!==null;){if(t.tag===3){dm(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wn===null||!Wn.has(r))){e=fa(n,e),e=Rh(t,e,1),t=zn(t,e,1),e=it(),t!==null&&(Ya(t,1,e),ht(t,e));break}}t=t.return}}function O1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=it(),e.pingedLanes|=e.suspendedLanes&n,ze===e&&(Ve&n)===n&&(Fe===4||Fe===3&&(Ve&130023424)===Ve&&500>Me()-Cc?br(e,0):_c|=n),ht(e,t)}function pm(e,t){t===0&&(e.mode&1?(t=wo,wo<<=1,!(wo&130023424)&&(wo=4194304)):t=1);var n=it();e=pn(e,t),e!==null&&(Ya(e,t,n),ht(e,n))}function T1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pm(e,n)}function P1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),pm(e,n)}var hm;hm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,v1(e,t,n);dt=!!(e.flags&131072)}else dt=!1,Se&&t.flags&1048576&&Bp(t,Uo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ns(e,t),e=t.pendingProps;var a=ra(t,qe.current);la(t,n),a=ac(null,t,r,e,a,n);var i=ic();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(i=!0,$o(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,qu(t),a.updater=Yo,t.stateNode=a,a._reactInternals=t,Gu(t,r,e,n),t=pc(null,t,r,!0,i,n)):(t.tag=0,Se&&i&&ju(t),at(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ns(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=R1(r),e=Ft(r,e),a){case 0:t=dc(null,t,r,e,n);break e;case 1:t=zh(null,t,r,e,n);break e;case 11:t=Dh(null,t,r,e,n);break e;case 14:t=Lh(null,t,r,Ft(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ft(r,a),dc(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ft(r,a),zh(e,t,r,a,n);case 3:e:{if(Uh(t),e===null)throw Error(T(387));r=t.pendingProps,i=t.memoizedState,a=i.element,Xp(e,t),Bo(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=fa(Error(T(423)),t),t=Wh(e,t,r,n,a);break e}else if(r!==a){a=fa(Error(T(424)),t),t=Wh(e,t,r,n,a);break e}else for(wt=Dn(t.stateNode.containerInfo.firstChild),gt=t,Se=!0,Lt=null,n=sh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(oa(),r===a){t=mn(e,t,n);break e}at(e,t,r,n)}t=t.child}return t;case 5:return lh(t),e===null&&Wu(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,Au(r,a)?o=null:i!==null&&Au(r,i)&&(t.flags|=32),jh(e,t),at(e,t,o,n),t.child;case 6:return e===null&&Wu(t),null;case 13:return Qh(e,t,n);case 4:return Xu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ua(t,null,r,n):at(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ft(r,a),Dh(e,t,r,a,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,he(Qo,r._currentValue),r._currentValue=o,i!==null)if(Dt(i.value,o)){if(i.children===a.children&&!ct.current){t=mn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=hn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Yu(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(T(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Yu(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}at(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,la(t,n),a=Tt(a),r=r(a),t.flags|=1,at(e,t,r,n),t.child;case 14:return r=t.type,a=Ft(r,t.pendingProps),a=Ft(r.type,a),Lh(e,t,r,a,n);case 15:return Fh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ft(r,a),ns(e,t),t.tag=1,ft(r)?(e=!0,$o(t)):e=!1,la(t,n),rh(t,r,a),Gu(t,r,a,n),pc(null,t,r,!0,e,n);case 19:return Vh(e,t,n);case 22:return $h(e,t,n)}throw Error(T(156,t.tag))};function mm(e,t){return Yd(e,t)}function N1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,n,r){return new N1(e,t,n,r)}function Ac(e){return e=e.prototype,!(!e||!e.isReactComponent)}function R1(e){if(typeof e=="function")return Ac(e)?1:0;if(e!=null){if(e=e.$$typeof,e===jl)return 11;if(e===Wl)return 14}return 2}function Bn(e,t){var n=e.alternate;return n===null?(n=Rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ps(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")Ac(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Hr:return kr(n.children,a,i,t);case Fl:o=8,a|=8;break;case $l:return e=Rt(12,n,t,a|2),e.elementType=$l,e.lanes=i,e;case zl:return e=Rt(13,n,t,a),e.elementType=zl,e.lanes=i,e;case Ul:return e=Rt(19,n,t,a),e.elementType=Ul,e.lanes=i,e;case Sd:return hs(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xd:o=10;break e;case kd:o=9;break e;case jl:o=11;break e;case Wl:o=14;break e;case On:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=Rt(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function kr(e,t,n,r){return e=Rt(7,e,r,t),e.lanes=n,e}function hs(e,t,n,r){return e=Rt(22,e,r,t),e.elementType=Sd,e.lanes=n,e.stateNode={isHidden:!1},e}function Mc(e,t,n){return e=Rt(6,e,null,t),e.lanes=n,e}function Dc(e,t,n){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function I1(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=lu(0),this.expirationTimes=lu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lu(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Lc(e,t,n,r,a,i,o,s,l){return e=new I1(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qu(i),e}function A1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Qr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function vm(e){if(!e)return Fn;e=e._reactInternals;e:{if(cr(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(ft(n))return Qp(e,n,t)}return t}function ym(e,t,n,r,a,i,o,s,l){return e=Lc(n,r,!0,e,a,i,o,s,l),e.context=vm(null),n=e.current,r=it(),a=Hn(n),i=hn(r,a),i.callback=t!=null?t:null,zn(n,i,a),e.current.lanes=a,Ya(e,a,r),ht(e,r),e}function ms(e,t,n,r){var a=t.current,i=it(),o=Hn(a);return n=vm(n),t.context===null?t.context=n:t.pendingContext=n,t=hn(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=zn(a,t,o),e!==null&&(zt(e,a,o,i),Vo(e,a,o)),o}function vs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function gm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Fc(e,t){gm(e,t),(e=e.alternate)&&gm(e,t)}function M1(){return null}var wm=typeof reportError=="function"?reportError:function(e){console.error(e)};function $c(e){this._internalRoot=e}ys.prototype.render=$c.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));ms(e,t,null,null)},ys.prototype.unmount=$c.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wr(function(){ms(null,e,null,null)}),t[un]=null}};function ys(e){this._internalRoot=e}ys.prototype.unstable_scheduleHydration=function(e){if(e){var t=tp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<In.length&&t!==0&&t<In[n].priority;n++);In.splice(n,0,e),n===0&&ap(e)}};function jc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function gs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bm(){}function D1(e,t,n,r,a){if(a){if(typeof r=="function"){var i=r;r=function(){var u=vs(o);i.call(u)}}var o=ym(t,r,e,0,null,!1,!1,"",bm);return e._reactRootContainer=o,e[un]=o.current,si(e.nodeType===8?e.parentNode:e),wr(),o}for(;a=e.lastChild;)e.removeChild(a);if(typeof r=="function"){var s=r;r=function(){var u=vs(l);s.call(u)}}var l=Lc(e,0,!1,null,null,!1,!1,"",bm);return e._reactRootContainer=l,e[un]=l.current,si(e.nodeType===8?e.parentNode:e),wr(function(){ms(t,l,n,r)}),l}function ws(e,t,n,r,a){var i=n._reactRootContainer;if(i){var o=i;if(typeof a=="function"){var s=a;a=function(){var l=vs(o);s.call(l)}}ms(t,o,e,a)}else o=D1(n,t,e,a,r);return vs(o)}Jd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ba(t.pendingLanes);n!==0&&(uu(t,n|1),ht(t,Me()),!(oe&6)&&(ha=Me()+500,$n()))}break;case 13:wr(function(){var r=pn(e,1);if(r!==null){var a=it();zt(r,e,1,a)}}),Fc(e,1)}},cu=function(e){if(e.tag===13){var t=pn(e,134217728);if(t!==null){var n=it();zt(t,e,134217728,n)}Fc(e,134217728)}},ep=function(e){if(e.tag===13){var t=Hn(e),n=pn(e,t);if(n!==null){var r=it();zt(n,e,t,r)}Fc(e,t)}},tp=function(){return fe},np=function(e,t){var n=fe;try{return fe=e,t()}finally{fe=n}},nu=function(e,t,n){switch(t){case"input":if(Zl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Lo(r);if(!a)throw Error(T(90));Ed(r),Zl(r,a)}}}break;case"textarea":Rd(e,n);break;case"select":t=n.value,t!=null&&Vr(e,!!n.multiple,t,!1)}},zd=Nc,Ud=wr;var L1={usingClientEntryPoint:!1,Events:[ci,ta,Lo,$d,jd,Nc]},_i={findFiberByHostInstance:fr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},F1={bundleType:_i.bundleType,version:_i.version,rendererPackageName:_i.rendererPackageName,rendererConfig:_i.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ln.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Vd(e),e===null?null:e.stateNode},findFiberByHostInstance:_i.findFiberByHostInstance||M1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var bs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bs.isDisabled&&bs.supportsFiber)try{yo=bs.inject(F1),Yt=bs}catch(e){}}mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L1,mt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jc(t))throw Error(T(200));return A1(e,t,null,n)},mt.createRoot=function(e,t){if(!jc(e))throw Error(T(299));var n=!1,r="",a=wm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Lc(e,1,!1,null,null,n,!1,r,a),e[un]=t.current,si(e.nodeType===8?e.parentNode:e),new $c(t)},mt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=Vd(t),e=e===null?null:e.stateNode,e},mt.flushSync=function(e){return wr(e)},mt.hydrate=function(e,t,n){if(!gs(t))throw Error(T(200));return ws(null,e,t,!0,n)},mt.hydrateRoot=function(e,t,n){if(!jc(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,a=!1,i="",o=wm;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=ym(t,null,e,1,n!=null?n:null,a,!1,i,o),e[un]=t.current,si(e),r)for(e=0;e<r.length;e++)n=r[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new ys(t)},mt.render=function(e,t,n){if(!gs(t))throw Error(T(200));return ws(null,e,t,!1,n)},mt.unmountComponentAtNode=function(e){if(!gs(e))throw Error(T(40));return e._reactRootContainer?(wr(function(){ws(null,null,e,!1,function(){e._reactRootContainer=null,e[un]=null})}),!0):!1},mt.unstable_batchedUpdates=Nc,mt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!gs(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return ws(e,t,n,!1,r)},mt.version="18.2.0-next-9e3b772b8-20220608";function xm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xm)}catch(e){console.error(e)}}xm(),hd.exports=mt;var km=hd.exports;const $1=Ae(km);var Sm=km;Il.createRoot=Sm.createRoot,Il.hydrateRoot=Sm.hydrateRoot;var j1=Object.defineProperty,z1=(e,t,n)=>t in e?j1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zc=(e,t,n)=>(z1(e,typeof t!="symbol"?t+"":t,n),n);let U1=class{constructor(){zc(this,"current",this.detect()),zc(this,"handoffState","pending"),zc(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window=="undefined"||typeof document=="undefined"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Sr=new U1,Je=(e,t)=>{Sr.isServer?k.useEffect(e,t):k.useLayoutEffect(e,t)};function yn(e){let t=k.useRef(e);return Je(()=>{t.current=e},[e]),t}function Uc(e,t){let[n,r]=k.useState(e),a=yn(e);return Je(()=>r(a.current),[a,r,...t]),n}function W1(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function _r(){let e=[],t={addEventListener(n,r,a,i){return n.addEventListener(r,a,i),t.add(()=>n.removeEventListener(r,a,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return W1(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,a){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:a}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=_r();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let a of e.splice(r,1))a()}},dispose(){for(let n of e.splice(0))n()}};return t}function Ci(){let[e]=k.useState(_r);return k.useEffect(()=>()=>e.dispose(),[e]),e}let se=function(e){let t=yn(e);return ie.useCallback((...n)=>t.current(...n),[t])};function Wc(){let[e,t]=k.useState(Sr.isHandoffComplete);return e&&Sr.isHandoffComplete===!1&&t(!1),k.useEffect(()=>{e!==!0&&t(!0)},[e]),k.useEffect(()=>Sr.handoff(),[]),e}var _m;let Ei=(_m=ie.useId)!=null?_m:function(){let e=Wc(),[t,n]=ie.useState(e?()=>Sr.nextId():null);return Je(()=>{t===null&&n(Sr.nextId())},[t]),t!=null?""+t:void 0};function Be(e,t,...n){if(e in t){let a=t[e];return typeof a=="function"?a(...n):a}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Be),r}function Cm(e){return Sr.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Em=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Q1=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Q1||{}),H1=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(H1||{}),V1=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(V1||{}),Om=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Om||{});function B1(e,t=0){var n;return e===((n=Cm(e))==null?void 0:n.body)?!1:Be(t,{[0](){return e.matches(Em)},[1](){let r=e;for(;r!==null;){if(r.matches(Em))return!0;r=r.parentElement}return!1}})}var Y1=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Y1||{});typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Z1(e,t=n=>n){return e.slice().sort((n,r)=>{let a=t(n),i=t(r);if(a===null||i===null)return 0;let o=a.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Qc(e,t,n){let r=yn(t);k.useEffect(()=>{function a(i){r.current(i)}return document.addEventListener(e,a,n),()=>document.removeEventListener(e,a,n)},[e,n])}function q1(e,t,n=!0){let r=k.useRef(!1);k.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function a(o,s){if(!r.current||o.defaultPrevented)return;let l=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e),u=s(o);if(u!==null&&u.getRootNode().contains(u)){for(let c of l){if(c===null)continue;let d=c instanceof HTMLElement?c:c.current;if(d!=null&&d.contains(u)||o.composed&&o.composedPath().includes(d))return}return!B1(u,Om.Loose)&&u.tabIndex!==-1&&o.preventDefault(),t(o,u)}}let i=k.useRef(null);Qc("mousedown",o=>{var s,l;r.current&&(i.current=((l=(s=o.composedPath)==null?void 0:s.call(o))==null?void 0:l[0])||o.target)},!0),Qc("click",o=>{i.current&&(a(o,()=>i.current),i.current=null)},!0),Qc("blur",o=>a(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Tm(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function K1(e,t){let[n,r]=k.useState(()=>Tm(e));return Je(()=>{r(Tm(e))},[e.type,e.as]),Je(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let G1=Symbol();function Cr(...e){let t=k.useRef(e);k.useEffect(()=>{t.current=e},[e]);let n=se(r=>{for(let a of t.current)a!=null&&(typeof a=="function"?a(r):a.current=r)});return e.every(r=>r==null||(r==null?void 0:r[G1]))?void 0:n}function X1({container:e,accept:t,walk:n,enabled:r=!0}){let a=k.useRef(t),i=k.useRef(n);k.useEffect(()=>{a.current=t,i.current=n},[t,n]),Je(()=>{if(!e||!r)return;let o=Cm(e);if(!o)return;let s=a.current,l=i.current,u=Object.assign(d=>s(d),{acceptNode:s}),c=o.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,u,!1);for(;c.nextNode();)l(c.currentNode)},[e,r,a,i])}function J1(e){throw new Error("Unexpected object: "+e)}var Ye=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Ye||{});function ew(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),a=r!=null?r:-1,i=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((s,l,u)=>a!==-1&&u.length-l-1>=a?!1:!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,s)=>s<=a?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:J1(e)}})();return i===-1?r:i}function Hc(...e){return e.filter(Boolean).join(" ")}var xs=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(xs||{}),gn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(gn||{});function wn({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:a,visible:i=!0,name:o}){let s=Pm(t,e);if(i)return ks(s,n,r,o);let l=a!=null?a:0;if(l&2){let u=s,{static:d=!1}=u,f=Ct(u,["static"]);if(d)return ks(f,n,r,o)}if(l&1){let c=s,{unmount:d=!0}=c,f=Ct(c,["unmount"]);return Be(d?0:1,{[0](){return null},[1](){return ks(E(w({},f),{hidden:!0,style:{display:"none"}}),n,r,o)}})}return ks(s,n,r,o)}function ks(e,t={},n,r){let d=Bc(e,["unmount","static"]),{as:a=n,children:i,refName:o="ref"}=d,s=Ct(d,["as","children","refName"]),l=e.ref!==void 0?{[o]:e.ref}:{},u=typeof i=="function"?i(t):i;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t));let c={};if(t){let f=!1,m=[];for(let[v,g]of Object.entries(t))typeof g=="boolean"&&(f=!0),g===!0&&m.push(v);f&&(c["data-headlessui-state"]=m.join(" "))}if(a===k.Fragment&&Object.keys(Vc(s)).length>0){if(!k.isValidElement(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(g=>` - ${g}`).join(`
|
|
41
41
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(`
|
|
42
42
|
`)].join(`
|
|
43
|
-
`));let f=u.props,m=typeof(f==null?void 0:f.className)=="function"?(...g)=>Hc(f==null?void 0:f.className(...g),s.className):Hc(f==null?void 0:f.className,s.className),v=m?{className:m}:{};return k.cloneElement(u,Object.assign({},Pm(u.props,Vc(Bc(s,["ref"]))),c,l,tw(u.ref,l.ref),v))}return k.createElement(a,Object.assign({},Bc(s,["ref"]),a!==k.Fragment&&l,a!==k.Fragment&&c),u)}function tw(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function Pm(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let a in r)a.startsWith("on")&&typeof r[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(r[a])):t[a]=r[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](a,...i){let o=n[r];for(let s of o){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;s(a,...i)}}});return t}function Xt(e){var t;return Object.assign(k.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Vc(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Bc(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function nw(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&rw(n)?!1:r}function rw(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function Nm(e={},t=null,n=[]){for(let[r,a]of Object.entries(e))Im(n,Rm(t,r),a);return n}function Rm(e,t){return e?e+"["+t+"]":t}function Im(e,t,n){if(Array.isArray(n))for(let[r,a]of n.entries())Im(e,Rm(t,r.toString()),a);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Nm(n,t,e)}let aw="div";var Am=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Am||{});function iw(e,t){let i=e,{features:n=1}=i,r=Ct(i,["features"]),a={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:w({position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},(n&4)===4&&(n&2)!==2&&{display:"none"})};return wn({ourProps:a,theirProps:r,slot:{},defaultTag:aw,name:"Hidden"})}let ow=Xt(iw),Yc=k.createContext(null);Yc.displayName="OpenClosedContext";var xt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(xt||{});function Zc(){return k.useContext(Yc)}function Mm({value:e,children:t}){return ie.createElement(Yc.Provider,{value:e},t)}var ot=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ot||{});function sw(e,t,n){let[r,a]=k.useState(n),i=e!==void 0,o=k.useRef(i),s=k.useRef(!1),l=k.useRef(!1);return i&&!o.current&&!s.current?(s.current=!0,o.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&o.current&&!l.current&&(l.current=!0,o.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,se(u=>(i||a(u),t==null?void 0:t(u)))]}function Dm(e,t){let n=k.useRef([]),r=se(e);k.useEffect(()=>{let a=[...n.current];for(let[i,o]of t.entries())if(n.current[i]!==o){let s=r(t,a);return n.current=t,s}},[r,...t])}function Lm(e){return[e.screenX,e.screenY]}function lw(){let e=k.useRef([-1,-1]);return{wasMoved(t){let n=Lm(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Lm(t)}}}function uw(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function cw(){return/Android/gi.test(window.navigator.userAgent)}function fw(){return uw()||cw()}var dw=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(dw||{}),pw=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(pw||{}),hw=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(hw||{}),mw=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(mw||{});function qc(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Z1(t(e.options.slice()),i=>i.dataRef.current.domRef.current),a=n?r.indexOf(n):null;return a===-1&&(a=null),{options:r,activeOptionIndex:a}}let vw={[1](e){var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:E(w({},e),{activeOptionIndex:null,comboboxState:1})},[0](e){var t;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;let n=e.activeOptionIndex;if(e.dataRef.current){let{isSelected:r}=e.dataRef.current,a=e.options.findIndex(i=>r(i.dataRef.current.value));a!==-1&&(n=a)}return E(w({},e),{comboboxState:0,activeOptionIndex:n})},[2](e,t){var n,r,a,i;if((n=e.dataRef.current)!=null&&n.disabled||(r=e.dataRef.current)!=null&&r.optionsRef.current&&!((a=e.dataRef.current)!=null&&a.optionsPropsRef.current.static)&&e.comboboxState===1)return e;let o=qc(e);if(o.activeOptionIndex===null){let l=o.options.findIndex(u=>!u.dataRef.current.disabled);l!==-1&&(o.activeOptionIndex=l)}let s=ew(t,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:l=>l.id,resolveDisabled:l=>l.dataRef.current.disabled});return E(w(w({},e),o),{activeOptionIndex:s,activationTrigger:(i=t.trigger)!=null?i:1})},[3]:(e,t)=>{var n,r;let a={id:t.id,dataRef:t.dataRef},i=qc(e,s=>[...s,a]);e.activeOptionIndex===null&&(n=e.dataRef.current)!=null&&n.isSelected(t.dataRef.current.value)&&(i.activeOptionIndex=i.options.indexOf(a));let o=E(w(w({},e),i),{activationTrigger:1});return(r=e.dataRef.current)!=null&&r.__demoMode&&e.dataRef.current.value===void 0&&(o.activeOptionIndex=0),o},[4]:(e,t)=>{let n=qc(e,r=>{let a=r.findIndex(i=>i.id===t.id);return a!==-1&&r.splice(a,1),r});return E(w(w({},e),n),{activationTrigger:1})},[5]:(e,t)=>E(w({},e),{labelId:t.id})},Kc=k.createContext(null);Kc.displayName="ComboboxActionsContext";function Oi(e){let t=k.useContext(Kc);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Oi),n}return t}let Gc=k.createContext(null);Gc.displayName="ComboboxDataContext";function va(e){let t=k.useContext(Gc);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,va),n}return t}function yw(e,t){return Be(t.type,vw,e,t)}let gw=k.Fragment;function ww(e,t){let _t=e,{value:n,defaultValue:r,onChange:a,form:i,name:o,by:s=(K,ae)=>K===ae,disabled:l=!1,__demoMode:u=!1,nullable:c=!1,multiple:d=!1}=_t,f=Ct(_t,["value","defaultValue","onChange","form","name","by","disabled","__demoMode","nullable","multiple"]),[m=d?[]:void 0,v]=sw(n,a,r),[g,b]=k.useReducer(yw,{dataRef:k.createRef(),comboboxState:u?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),h=k.useRef(!1),p=k.useRef({static:!1,hold:!1}),y=k.useRef(null),x=k.useRef(null),S=k.useRef(null),_=k.useRef(null),C=se(typeof s=="string"?(K,ae)=>{let Ie=s;return(K==null?void 0:K[Ie])===(ae==null?void 0:ae[Ie])}:s),O=k.useCallback(K=>Be(N.mode,{[1]:()=>m.some(ae=>C(ae,K)),[0]:()=>C(m,K)}),[m]),N=k.useMemo(()=>E(w({},g),{optionsPropsRef:p,labelRef:y,inputRef:x,buttonRef:S,optionsRef:_,value:m,defaultValue:r,disabled:l,mode:d?1:0,get activeOptionIndex(){if(h.current&&g.activeOptionIndex===null&&g.options.length>0){let K=g.options.findIndex(ae=>!ae.dataRef.current.disabled);if(K!==-1)return K}return g.activeOptionIndex},compare:C,isSelected:O,nullable:c,__demoMode:u}),[m,r,l,d,c,u,g]),R=k.useRef(N.activeOptionIndex!==null?N.options[N.activeOptionIndex]:null);k.useEffect(()=>{let K=N.activeOptionIndex!==null?N.options[N.activeOptionIndex]:null;R.current!==K&&(R.current=K)}),Je(()=>{g.dataRef.current=N},[N]),q1([N.buttonRef,N.inputRef,N.optionsRef],()=>Q.closeCombobox(),N.comboboxState===0);let Z=k.useMemo(()=>({open:N.comboboxState===0,disabled:l,activeIndex:N.activeOptionIndex,activeOption:N.activeOptionIndex===null?null:N.options[N.activeOptionIndex].dataRef.current.value,value:m}),[N,l,m]),F=se(K=>{let ae=N.options.find(Ie=>Ie.id===K);ae&&j(ae.dataRef.current.value)}),B=se(()=>{if(N.activeOptionIndex!==null){let{dataRef:K,id:ae}=N.options[N.activeOptionIndex];j(K.current.value),Q.goToOption(Ye.Specific,ae)}}),ee=se(()=>{b({type:0}),h.current=!0}),J=se(()=>{b({type:1}),h.current=!1}),te=se((K,ae,Ie)=>(h.current=!1,K===Ye.Specific?b({type:2,focus:Ye.Specific,id:ae,trigger:Ie}):b({type:2,focus:K,trigger:Ie}))),pe=se((K,ae)=>(b({type:3,id:K,dataRef:ae}),()=>{var Ie;((Ie=R.current)==null?void 0:Ie.id)===K&&(h.current=!0),b({type:4,id:K})})),I=se(K=>(b({type:5,id:K}),()=>b({type:5,id:null}))),j=se(K=>Be(N.mode,{[0](){return v==null?void 0:v(K)},[1](){let ae=N.value.slice(),Ie=ae.findIndex(sr=>C(sr,K));return Ie===-1?ae.push(K):ae.splice(Ie,1),v==null?void 0:v(ae)}})),Q=k.useMemo(()=>({onChange:j,registerOption:pe,registerLabel:I,goToOption:te,closeCombobox:J,openCombobox:ee,selectActiveOption:B,selectOption:F}),[]),ue=t===null?{}:{ref:t},ne=k.useRef(null),or=Ci();return k.useEffect(()=>{ne.current&&r!==void 0&&or.addEventListener(ne.current,"reset",()=>{j(r)})},[ne,j]),ie.createElement(Kc.Provider,{value:Q},ie.createElement(Gc.Provider,{value:N},ie.createElement(Mm,{value:Be(N.comboboxState,{[0]:xt.Open,[1]:xt.Closed})},o!=null&&m!=null&&Nm({[o]:m}).map(([K,ae],Ie)=>ie.createElement(ow,w({features:Am.Hidden,ref:Ie===0?sr=>{var io;ne.current=(io=sr==null?void 0:sr.closest("form"))!=null?io:null}:void 0},Vc({key:K,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:K,value:ae})))),wn({ourProps:ue,theirProps:f,slot:Z,defaultTag:gw,name:"Combobox"}))))}let bw="input";function xw(e,t){var n,r,a,i;let o=Ei(),Z=e,{id:s=`headlessui-combobox-input-${o}`,onChange:l,displayValue:u,type:c="text"}=Z,d=Ct(Z,["id","onChange","displayValue","type"]),f=va("Combobox.Input"),m=Oi("Combobox.Input"),v=Cr(f.inputRef,t),g=k.useRef(!1),b=Ci(),h=function(){var F;return typeof u=="function"&&f.value!==void 0?(F=u(f.value))!=null?F:"":typeof f.value=="string"?f.value:""}();Dm(([F,B],[ee,J])=>{g.current||f.inputRef.current&&(J===0&&B===1||F!==ee)&&(f.inputRef.current.value=F)},[h,f.comboboxState]),Dm(([F],[B])=>{if(F===0&&B===1){let ee=f.inputRef.current;if(!ee)return;let J=ee.value,{selectionStart:te,selectionEnd:pe,selectionDirection:I}=ee;ee.value="",ee.value=J,I!==null?ee.setSelectionRange(te,pe,I):ee.setSelectionRange(te,pe)}},[f.comboboxState]);let p=k.useRef(!1),y=se(()=>{p.current=!0}),x=se(()=>{setTimeout(()=>{p.current=!1})}),S=se(F=>{switch(g.current=!0,F.key){case ot.Backspace:case ot.Delete:if(f.mode!==0||!f.nullable)return;let B=F.currentTarget;b.requestAnimationFrame(()=>{B.value===""&&(m.onChange(null),f.optionsRef.current&&(f.optionsRef.current.scrollTop=0),m.goToOption(Ye.Nothing))});break;case ot.Enter:if(g.current=!1,f.comboboxState!==0||p.current)return;if(F.preventDefault(),F.stopPropagation(),f.activeOptionIndex===null){m.closeCombobox();return}m.selectActiveOption(),f.mode===0&&m.closeCombobox();break;case ot.ArrowDown:return g.current=!1,F.preventDefault(),F.stopPropagation(),Be(f.comboboxState,{[0]:()=>{m.goToOption(Ye.Next)},[1]:()=>{m.openCombobox()}});case ot.ArrowUp:return g.current=!1,F.preventDefault(),F.stopPropagation(),Be(f.comboboxState,{[0]:()=>{m.goToOption(Ye.Previous)},[1]:()=>{m.openCombobox(),b.nextFrame(()=>{f.value||m.goToOption(Ye.Last)})}});case ot.Home:if(F.shiftKey)break;return g.current=!1,F.preventDefault(),F.stopPropagation(),m.goToOption(Ye.First);case ot.PageUp:return g.current=!1,F.preventDefault(),F.stopPropagation(),m.goToOption(Ye.First);case ot.End:if(F.shiftKey)break;return g.current=!1,F.preventDefault(),F.stopPropagation(),m.goToOption(Ye.Last);case ot.PageDown:return g.current=!1,F.preventDefault(),F.stopPropagation(),m.goToOption(Ye.Last);case ot.Escape:return g.current=!1,f.comboboxState!==0?void 0:(F.preventDefault(),f.optionsRef.current&&!f.optionsPropsRef.current.static&&F.stopPropagation(),m.closeCombobox());case ot.Tab:if(g.current=!1,f.comboboxState!==0)return;f.mode===0&&m.selectActiveOption(),m.closeCombobox();break}}),_=se(F=>{m.openCombobox(),l==null||l(F)}),C=se(()=>{g.current=!1}),O=Uc(()=>{if(f.labelId)return[f.labelId].join(" ")},[f.labelId]),N=k.useMemo(()=>({open:f.comboboxState===0,disabled:f.disabled}),[f]),R={ref:v,id:s,role:"combobox",type:c,"aria-controls":(n=f.optionsRef.current)==null?void 0:n.id,"aria-expanded":f.disabled?void 0:f.comboboxState===0,"aria-activedescendant":f.activeOptionIndex===null||(r=f.options[f.activeOptionIndex])==null?void 0:r.id,"aria-labelledby":O,"aria-autocomplete":"list",defaultValue:(i=(a=e.defaultValue)!=null?a:f.defaultValue!==void 0?u==null?void 0:u(f.defaultValue):null)!=null?i:f.defaultValue,disabled:f.disabled,onCompositionStart:y,onCompositionEnd:x,onKeyDown:S,onChange:_,onBlur:C};return wn({ourProps:R,theirProps:d,slot:N,defaultTag:bw,name:"Combobox.Input"})}let kw="button";function Sw(e,t){var n;let r=va("Combobox.Button"),a=Oi("Combobox.Button"),i=Cr(r.buttonRef,t),o=Ei(),g=e,{id:s=`headlessui-combobox-button-${o}`}=g,l=Ct(g,["id"]),u=Ci(),c=se(b=>{switch(b.key){case ot.ArrowDown:return b.preventDefault(),b.stopPropagation(),r.comboboxState===1&&a.openCombobox(),u.nextFrame(()=>{var h;return(h=r.inputRef.current)==null?void 0:h.focus({preventScroll:!0})});case ot.ArrowUp:return b.preventDefault(),b.stopPropagation(),r.comboboxState===1&&(a.openCombobox(),u.nextFrame(()=>{r.value||a.goToOption(Ye.Last)})),u.nextFrame(()=>{var h;return(h=r.inputRef.current)==null?void 0:h.focus({preventScroll:!0})});case ot.Escape:return r.comboboxState!==0?void 0:(b.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&b.stopPropagation(),a.closeCombobox(),u.nextFrame(()=>{var h;return(h=r.inputRef.current)==null?void 0:h.focus({preventScroll:!0})}));default:return}}),d=se(b=>{if(nw(b.currentTarget))return b.preventDefault();r.comboboxState===0?a.closeCombobox():(b.preventDefault(),a.openCombobox()),u.nextFrame(()=>{var h;return(h=r.inputRef.current)==null?void 0:h.focus({preventScroll:!0})})}),f=Uc(()=>{if(r.labelId)return[r.labelId,s].join(" ")},[r.labelId,s]),m=k.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),v={ref:i,id:s,type:K1(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(n=r.optionsRef.current)==null?void 0:n.id,"aria-expanded":r.disabled?void 0:r.comboboxState===0,"aria-labelledby":f,disabled:r.disabled,onClick:d,onKeyDown:c};return wn({ourProps:v,theirProps:l,slot:m,defaultTag:kw,name:"Combobox.Button"})}let _w="label";function Cw(e,t){let n=Ei(),c=e,{id:r=`headlessui-combobox-label-${n}`}=c,a=Ct(c,["id"]),i=va("Combobox.Label"),o=Oi("Combobox.Label"),s=Cr(i.labelRef,t);Je(()=>o.registerLabel(r),[r]);let l=se(()=>{var d;return(d=i.inputRef.current)==null?void 0:d.focus({preventScroll:!0})}),u=k.useMemo(()=>({open:i.comboboxState===0,disabled:i.disabled}),[i]);return wn({ourProps:{ref:s,id:r,onClick:l},theirProps:a,slot:u,defaultTag:_w,name:"Combobox.Label"})}let Ew="ul",Ow=xs.RenderStrategy|xs.Static;function Tw(e,t){let n=Ei(),m=e,{id:r=`headlessui-combobox-options-${n}`,hold:a=!1}=m,i=Ct(m,["id","hold"]),o=va("Combobox.Options"),s=Cr(o.optionsRef,t),l=Zc(),u=(()=>l!==null?(l&xt.Open)===xt.Open:o.comboboxState===0)();Je(()=>{var v;o.optionsPropsRef.current.static=(v=e.static)!=null?v:!1},[o.optionsPropsRef,e.static]),Je(()=>{o.optionsPropsRef.current.hold=a},[o.optionsPropsRef,a]),X1({container:o.optionsRef.current,enabled:o.comboboxState===0,accept(v){return v.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:v.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(v){v.setAttribute("role","none")}});let c=Uc(()=>{var v,g;return(g=o.labelId)!=null?g:(v=o.buttonRef.current)==null?void 0:v.id},[o.labelId,o.buttonRef.current]),d=k.useMemo(()=>({open:o.comboboxState===0}),[o]),f={"aria-labelledby":c,role:"listbox","aria-multiselectable":o.mode===1?!0:void 0,id:r,ref:s};return wn({ourProps:f,theirProps:i,slot:d,defaultTag:Ew,features:Ow,visible:u,name:"Combobox.Options"})}let Pw="li";function Nw(e,t){var n,r;let a=Ei(),N=e,{id:i=`headlessui-combobox-option-${a}`,disabled:o=!1,value:s}=N,l=Ct(N,["id","disabled","value"]),u=va("Combobox.Option"),c=Oi("Combobox.Option"),d=u.activeOptionIndex!==null?u.options[u.activeOptionIndex].id===i:!1,f=u.isSelected(s),m=k.useRef(null),v=yn({disabled:o,value:s,domRef:m,textValue:(r=(n=m.current)==null?void 0:n.textContent)==null?void 0:r.toLowerCase()}),g=Cr(t,m),b=se(()=>c.selectOption(i));Je(()=>c.registerOption(i,v),[v,i]);let h=k.useRef(!u.__demoMode);Je(()=>{if(!u.__demoMode)return;let R=_r();return R.requestAnimationFrame(()=>{h.current=!0}),R.dispose},[]),Je(()=>{if(u.comboboxState!==0||!d||!h.current||u.activationTrigger===0)return;let R=_r();return R.requestAnimationFrame(()=>{var Z,F;(F=(Z=m.current)==null?void 0:Z.scrollIntoView)==null||F.call(Z,{block:"nearest"})}),R.dispose},[m,d,u.comboboxState,u.activationTrigger,u.activeOptionIndex]);let p=se(R=>{if(o)return R.preventDefault();b(),u.mode===0&&c.closeCombobox(),fw()||requestAnimationFrame(()=>{var Z;return(Z=u.inputRef.current)==null?void 0:Z.focus()})}),y=se(()=>{if(o)return c.goToOption(Ye.Nothing);c.goToOption(Ye.Specific,i)}),x=lw(),S=se(R=>x.update(R)),_=se(R=>{x.wasMoved(R)&&(o||d||c.goToOption(Ye.Specific,i,0))}),C=se(R=>{x.wasMoved(R)&&(o||d&&(u.optionsPropsRef.current.hold||c.goToOption(Ye.Nothing)))}),O=k.useMemo(()=>({active:d,selected:f,disabled:o}),[d,f,o]);return wn({ourProps:{id:i,ref:g,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":f,disabled:void 0,onClick:p,onFocus:y,onPointerEnter:S,onMouseEnter:S,onPointerMove:_,onMouseMove:_,onPointerLeave:C,onMouseLeave:C},theirProps:l,slot:O,defaultTag:Pw,name:"Combobox.Option"})}let Rw=Xt(ww),Iw=Xt(Sw),Aw=Xt(xw),Mw=Xt(Cw),Dw=Xt(Tw),Lw=Xt(Nw),Ss=Object.assign(Rw,{Input:Aw,Button:Iw,Label:Mw,Options:Dw,Option:Lw});function Xc(){let e=k.useRef(!1);return Je(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Fw(e=0){let[t,n]=k.useState(e),r=Xc(),a=k.useCallback(l=>{r.current&&n(u=>u|l)},[t,r]),i=k.useCallback(l=>!!(t&l),[t]),o=k.useCallback(l=>{r.current&&n(u=>u&~l)},[n,r]),s=k.useCallback(l=>{r.current&&n(u=>u^l)},[n]);return{flags:t,addFlag:a,hasFlag:i,removeFlag:o,toggleFlag:s}}function $w(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Jc(e,...t){e&&t.length>0&&e.classList.add(...t)}function ef(e,...t){e&&t.length>0&&e.classList.remove(...t)}function jw(e,t){let n=_r();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:a}=getComputedStyle(e),[i,o]=[r,a].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,d)=>d-c);return u}),s=i+o;if(s!==0){n.group(u=>{u.setTimeout(()=>{t(),u.dispose()},s),u.addEventListener(e,"transitionrun",c=>{c.target===c.currentTarget&&u.dispose()})});let l=n.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function zw(e,t,n,r){let a=n?"enter":"leave",i=_r(),o=r!==void 0?$w(r):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Be(a,{enter:()=>t.enter,leave:()=>t.leave}),l=Be(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=Be(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ef(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Jc(e,...s,...u),i.nextFrame(()=>{ef(e,...u),Jc(e,...l),jw(e,()=>(ef(e,...s),Jc(e,...t.entered),o()))}),i.dispose}function Uw({container:e,direction:t,classes:n,onStart:r,onStop:a}){let i=Xc(),o=Ci(),s=yn(t);Je(()=>{let l=_r();o.add(l.dispose);let u=e.current;if(u&&s.current!=="idle"&&i.current)return l.dispose(),r.current(s.current),l.add(zw(u,n.current,s.current==="enter",()=>{l.dispose(),a.current(s.current)})),l.dispose},[t])}function Er(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let _s=k.createContext(null);_s.displayName="TransitionContext";var Ww=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ww||{});function Qw(){let e=k.useContext(_s);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Hw(){let e=k.useContext(Cs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Cs=k.createContext(null);Cs.displayName="NestingContext";function Es(e){return"children"in e?Es(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Fm(e,t){let n=yn(e),r=k.useRef([]),a=Xc(),i=Ci(),o=se((m,v=gn.Hidden)=>{let g=r.current.findIndex(({el:b})=>b===m);g!==-1&&(Be(v,{[gn.Unmount](){r.current.splice(g,1)},[gn.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var b;!Es(r)&&a.current&&((b=n.current)==null||b.call(n))}))}),s=se(m=>{let v=r.current.find(({el:g})=>g===m);return v?v.state!=="visible"&&(v.state="visible"):r.current.push({el:m,state:"visible"}),()=>o(m,gn.Unmount)}),l=k.useRef([]),u=k.useRef(Promise.resolve()),c=k.useRef({enter:[],leave:[],idle:[]}),d=se((m,v,g)=>{l.current.splice(0),t&&(t.chains.current[v]=t.chains.current[v].filter(([b])=>b!==m)),t==null||t.chains.current[v].push([m,new Promise(b=>{l.current.push(b)})]),t==null||t.chains.current[v].push([m,new Promise(b=>{Promise.all(c.current[v].map(([h,p])=>p)).then(()=>b())})]),v==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(v)):g(v)}),f=se((m,v,g)=>{Promise.all(c.current[v].splice(0).map(([b,h])=>h)).then(()=>{var b;(b=l.current.shift())==null||b()}).then(()=>g(v))});return k.useMemo(()=>({children:r,register:s,unregister:o,onStart:d,onStop:f,wait:u,chains:c}),[s,o,r,d,f,c,u])}function Vw(){}let Bw=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function $m(e){var t;let n={};for(let r of Bw)n[r]=(t=e[r])!=null?t:Vw;return n}function Yw(e){let t=k.useRef($m(e));return k.useEffect(()=>{t.current=$m(e)},[e]),t}let Zw="div",jm=xs.RenderStrategy;function qw(e,t){let ue=e,{beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i,enter:o,enterFrom:s,enterTo:l,entered:u,leave:c,leaveFrom:d,leaveTo:f}=ue,m=Ct(ue,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),v=k.useRef(null),g=Cr(v,t),b=m.unmount?gn.Unmount:gn.Hidden,{show:h,appear:p,initial:y}=Qw(),[x,S]=k.useState(h?"visible":"hidden"),_=Hw(),{register:C,unregister:O}=_,N=k.useRef(null);k.useEffect(()=>C(v),[C,v]),k.useEffect(()=>{if(b===gn.Hidden&&v.current){if(h&&x!=="visible"){S("visible");return}return Be(x,{hidden:()=>O(v),visible:()=>C(v)})}},[x,v,C,O,h,b]);let R=yn({enter:Er(o),enterFrom:Er(s),enterTo:Er(l),entered:Er(u),leave:Er(c),leaveFrom:Er(d),leaveTo:Er(f)}),Z=Yw({beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i}),F=Wc();k.useEffect(()=>{if(F&&x==="visible"&&v.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[v,x,F]);let B=y&&!p,ee=(()=>!F||B||N.current===h?"idle":h?"enter":"leave")(),J=Fw(0),te=se(ne=>Be(ne,{enter:()=>{J.addFlag(xt.Opening),Z.current.beforeEnter()},leave:()=>{J.addFlag(xt.Closing),Z.current.beforeLeave()},idle:()=>{}})),pe=se(ne=>Be(ne,{enter:()=>{J.removeFlag(xt.Opening),Z.current.afterEnter()},leave:()=>{J.removeFlag(xt.Closing),Z.current.afterLeave()},idle:()=>{}})),I=Fm(()=>{S("hidden"),O(v)},_);Uw({container:v,classes:R,direction:ee,onStart:yn(ne=>{I.onStart(v,ne,te)}),onStop:yn(ne=>{I.onStop(v,ne,pe),ne==="leave"&&!Es(I)&&(S("hidden"),O(v))})}),k.useEffect(()=>{B&&(b===gn.Hidden?N.current=null:N.current=h)},[h,B,x]);let j=m,Q={ref:g};return p&&h&&(j=E(w({},j),{className:Hc(m.className,...R.current.enter,...R.current.enterFrom)})),ie.createElement(Cs.Provider,{value:I},ie.createElement(Mm,{value:Be(x,{visible:xt.Open,hidden:xt.Closed})|J.flags},wn({ourProps:Q,theirProps:j,defaultTag:Zw,features:jm,visible:x==="visible",name:"Transition.Child"})))}function Kw(e,t){let h=e,{show:n,appear:r=!1,unmount:a}=h,i=Ct(h,["show","appear","unmount"]),o=k.useRef(null),s=Cr(o,t);Wc();let l=Zc();if(n===void 0&&l!==null&&(n=(l&xt.Open)===xt.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=k.useState(n?"visible":"hidden"),d=Fm(()=>{c("hidden")}),[f,m]=k.useState(!0),v=k.useRef([n]);Je(()=>{f!==!1&&v.current[v.current.length-1]!==n&&(v.current.push(n),m(!1))},[v,n]);let g=k.useMemo(()=>({show:n,appear:r,initial:f}),[n,r,f]);k.useEffect(()=>{if(n)c("visible");else if(!Es(d))c("hidden");else{let p=o.current;if(!p)return;let y=p.getBoundingClientRect();y.x===0&&y.y===0&&y.width===0&&y.height===0&&c("hidden")}},[n,d]);let b={unmount:a};return ie.createElement(Cs.Provider,{value:d},ie.createElement(_s.Provider,{value:g},wn({ourProps:E(w({},b),{as:k.Fragment,children:ie.createElement(zm,w(w({ref:s},b),i))}),theirProps:{},defaultTag:k.Fragment,features:jm,visible:u==="visible",name:"Transition"})))}function Gw(e,t){let n=k.useContext(_s)!==null,r=Zc()!==null;return ie.createElement(ie.Fragment,null,!n&&r?ie.createElement(tf,w({ref:t},e)):ie.createElement(zm,w({ref:t},e)))}let tf=Xt(Kw),zm=Xt(qw),Xw=Xt(Gw),Um=Object.assign(tf,{Child:Xw,Root:tf});function Jw(){return $("div",{"aria-label":"Loading...",role:"status",children:ut("svg",{className:"a1-h-6 a1-w-6 a1-animate-spin",viewBox:"3 3 18 18",children:[$("path",{className:"a1-fill-indigo-200",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),$("path",{className:"a1-fill-indigo-800",d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"})]})})}const nf="flight-search-widget-";function It(e,t=nf){return{part:`${t}${e}`}}const eb=(e,t,n,r)=>$("li",{className:`${n}`,children:r}),Os=e=>It(e,`${nf}autocomplete-`);function Wm({label:e,name:t,items:n,value:r=null,primaryColor:a,secondaryColor:i,status:o=null,onChange:s,getKey:l,getValue:u,filter:c,children:d=eb,disabled:f=!1,icon:m}){const[v,g]=k.useState(null),[b,h]=k.useState(""),[p,y]=k.useState(!1);k.useEffect(()=>{typeof s=="function"&&s(b)},[b]),k.useEffect(()=>{p||h(v||"")},[p,v]),k.useEffect(()=>{b!==v&&g(null)},[b,v]);const x=b===""?n:n==null?void 0:n.filter(B=>c(b,B)),S="a1-z-100 a1-absolute a1-max-h-56 a1-max-w-full lg:a1-max-w-[none] a1-rounded-lg a1-border a1-border-gray-200 a1-bg-white a1-shadow-lg a1-mt-2 a1-overflow-x-hidden",_="a1-border-b a1-border-gray-200 a1-text-left a1-border-l-0 a1-border-r-0 a1-px-4 a1-py-2 a1-cursor-pointer a1-overflow-hidden",C="a1-bg-secondary",O="a1-bg-primary a1-text-white",N="a1-text-gray-900 a1-bg-white a1-rounded-lg focus:a1-border-primary",R="a1-ring-2 a1-ring-primary";let Z={};a&&(Z["--color-primary"]=a),i&&(Z["--color-secondary"]=i);let F=null;return m&&(F=$("span",E(w({},Os("icon")),{className:"a1-p-3",children:m}))),o==="loading"&&(F=$("span",E(w({},Os("icon")),{className:"a1-p-3",children:$(Jw,{})}))),$("div",{style:Z,children:$(Ss,{disabled:f,name:t,value:r,onChange:B=>{g(B),B&&h(B)},children:({open:B})=>$(Mg,{children:ut("div",{className:"a1-relative",children:[ut("div",{className:`a1-flex a1-flex-row a1-items-center a1-gap-1 ${N} ${p?R:"a1-ring-2 a1-ring-gray-200"} ${f?"a1-opacity-60":""}`,children:[F,$(Ss.Input,E(w({},Os("input")),{autoComplete:"off",className:"focus:a1-outline-none a1-w-full",onChange:ee=>h(ee.target.value),onFocus:()=>y(!0),onBlur:()=>setTimeout(()=>y(!1),200),placeholder:e}))]}),$(Um,{show:B||p&&b==="",className:"a1-relative a1-z-10",enter:"a1-transition a1-duration-100 a1-ease-out",enterFrom:"a1-transform a1-scale-95 a1-opacity-0",enterTo:"a1-transform a1-scale-100 a1-opacity-100",leave:"a1-transition a1-duration-75 a1-ease-out",leaveFrom:"a1-transform a1-scale-100 a1-opacity-100",leaveTo:"a1-transform a1-scale-95 a1-opacity-0",children:$(Ss.Options,{className:`${S}`,children:x==null?void 0:x.slice(0,25).map((ee,J)=>$(Ss.Option,{value:u(ee),as:k.Fragment,children:({active:te,selected:pe})=>d(te,pe,`${_} ${te?C:""} ${pe?O:"a1-text-gray-900"} ${!te&&!pe?"a1-bg-white":""}`,ee,Os)},`${l(ee)}-${J}`))})})]})})})})}function ya(e){return ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ya(e)}function me(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ve(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Ue(e){ve(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ya(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ts(e,t){ve(2,arguments);var n=Ue(e),r=me(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Qm(e,t){ve(2,arguments);var n=Ue(e),r=me(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),a),n)}function tb(e,t){if(ve(2,arguments),!t||ya(t)!=="object")return new Date(NaN);var n=t.years?me(t.years):0,r=t.months?me(t.months):0,a=t.weeks?me(t.weeks):0,i=t.days?me(t.days):0,o=t.hours?me(t.hours):0,s=t.minutes?me(t.minutes):0,l=t.seconds?me(t.seconds):0,u=Ue(e),c=r||n?Qm(u,r+n*12):u,d=i||a?Ts(c,i+a*7):c,f=s+o*60,m=l+f*60,v=m*1e3,g=new Date(d.getTime()+v);return g}function nb(e,t){ve(2,arguments);var n=Ue(e).getTime(),r=me(t);return new Date(n+r)}var rb={};function Ti(){return rb}function ab(e,t){var n,r,a,i,o,s,l,u;ve(1,arguments);var c=Ti(),d=me((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Ue(e),m=f.getDay(),v=(m<d?7:0)+m-d;return f.setDate(f.getDate()-v),f.setHours(0,0,0,0),f}function ib(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Hm(e){ve(1,arguments);var t=Ue(e);return t.setHours(0,0,0,0),t}function Ps(e,t){ve(2,arguments);var n=Hm(e),r=Hm(t);return n.getTime()===r.getTime()}function ob(e){return ve(1,arguments),e instanceof Date||ya(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function sb(e){if(ve(1,arguments),!ob(e)&&typeof e!="number")return!1;var t=Ue(e);return!isNaN(Number(t))}function lb(e){ve(1,arguments);var t=Ue(e);return t.setDate(1),t.setHours(0,0,0,0),t}function ub(e,t){ve(2,arguments);var n=me(t);return nb(e,-n)}var cb=864e5;function fb(e){ve(1,arguments);var t=Ue(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),a=n-r;return Math.floor(a/cb)+1}function Ns(e){ve(1,arguments);var t=1,n=Ue(e),r=n.getUTCDay(),a=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}function Vm(e){ve(1,arguments);var t=Ue(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var a=Ns(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var o=Ns(i);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function db(e){ve(1,arguments);var t=Vm(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ns(n);return r}var pb=6048e5;function hb(e){ve(1,arguments);var t=Ue(e),n=Ns(t).getTime()-db(t).getTime();return Math.round(n/pb)+1}function Rs(e,t){var n,r,a,i,o,s,l,u;ve(1,arguments);var c=Ti(),d=me((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Ue(e),m=f.getUTCDay(),v=(m<d?7:0)+m-d;return f.setUTCDate(f.getUTCDate()-v),f.setUTCHours(0,0,0,0),f}function Bm(e,t){var n,r,a,i,o,s,l,u;ve(1,arguments);var c=Ue(e),d=c.getUTCFullYear(),f=Ti(),m=me((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(d+1,0,m),v.setUTCHours(0,0,0,0);var g=Rs(v,t),b=new Date(0);b.setUTCFullYear(d,0,m),b.setUTCHours(0,0,0,0);var h=Rs(b,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=h.getTime()?d:d-1}function mb(e,t){var n,r,a,i,o,s,l,u;ve(1,arguments);var c=Ti(),d=me((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=Bm(e,t),m=new Date(0);m.setUTCFullYear(f,0,d),m.setUTCHours(0,0,0,0);var v=Rs(m,t);return v}var vb=6048e5;function yb(e,t){ve(1,arguments);var n=Ue(e),r=Rs(n,t).getTime()-mb(n,t).getTime();return Math.round(r/vb)+1}function de(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var gb={y:function(t,n){var r=t.getUTCFullYear(),a=r>0?r:1-r;return de(n==="yy"?a%100:a,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):de(r+1,2)},d:function(t,n){return de(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return de(t.getUTCHours()%12||12,n.length)},H:function(t,n){return de(t.getUTCHours(),n.length)},m:function(t,n){return de(t.getUTCMinutes(),n.length)},s:function(t,n){return de(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,a=t.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return de(i,n.length)}};const Yn=gb;var ga={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wb={G:function(t,n,r){var a=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var a=t.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return Yn.y(t,n)},Y:function(t,n,r,a){var i=Bm(t,a),o=i>0?i:1-i;if(n==="YY"){var s=o%100;return de(s,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):de(o,n.length)},R:function(t,n){var r=Vm(t);return de(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return de(r,n.length)},Q:function(t,n,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(a);case"QQ":return de(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,n,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(a);case"qq":return de(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,n,r){var a=t.getUTCMonth();switch(n){case"M":case"MM":return Yn.M(t,n);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(t,n,r){var a=t.getUTCMonth();switch(n){case"L":return String(a+1);case"LL":return de(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(t,n,r,a){var i=yb(t,a);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):de(i,n.length)},I:function(t,n,r){var a=hb(t);return n==="Io"?r.ordinalNumber(a,{unit:"week"}):de(a,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Yn.d(t,n)},D:function(t,n,r){var a=fb(t);return n==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):de(a,n.length)},E:function(t,n,r){var a=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(t,n,r,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return de(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return de(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var a=t.getUTCDay(),i=a===0?7:a;switch(n){case"i":return String(i);case"ii":return de(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(t,n,r){var a=t.getUTCHours(),i=a/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var a=t.getUTCHours(),i;switch(a===12?i=ga.noon:a===0?i=ga.midnight:i=a/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var a=t.getUTCHours(),i;switch(a>=17?i=ga.evening:a>=12?i=ga.afternoon:a>=4?i=ga.morning:i=ga.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return Yn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Yn.H(t,n)},K:function(t,n,r){var a=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(a,{unit:"hour"}):de(a,n.length)},k:function(t,n,r){var a=t.getUTCHours();return a===0&&(a=24),n==="ko"?r.ordinalNumber(a,{unit:"hour"}):de(a,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Yn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Yn.s(t,n)},S:function(t,n){return Yn.S(t,n)},X:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return Zm(o);case"XXXX":case"XX":return Or(o);case"XXXXX":case"XXX":default:return Or(o,":")}},x:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"x":return Zm(o);case"xxxx":case"xx":return Or(o);case"xxxxx":case"xxx":default:return Or(o,":")}},O:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Ym(o,":");case"OOOO":default:return"GMT"+Or(o,":")}},z:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Ym(o,":");case"zzzz":default:return"GMT"+Or(o,":")}},t:function(t,n,r,a){var i=a._originalDate||t,o=Math.floor(i.getTime()/1e3);return de(o,n.length)},T:function(t,n,r,a){var i=a._originalDate||t,o=i.getTime();return de(o,n.length)}};function Ym(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;if(i===0)return n+String(a);var o=t||"";return n+String(a)+o+de(i,2)}function Zm(e,t){if(e%60===0){var n=e>0?"-":"+";return n+de(Math.abs(e)/60,2)}return Or(e,t)}function Or(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e),i=de(Math.floor(a/60),2),o=de(a%60,2);return r+i+n+o}const bb=wb;var qm=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Km=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},xb=function(t,n){var r=t.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return qm(t,n);var o;switch(a){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",qm(a,n)).replace("{{time}}",Km(i,n))},kb={p:Km,P:xb};const Sb=kb;var _b=["D","DD"],Cb=["YY","YYYY"];function Eb(e){return _b.indexOf(e)!==-1}function Ob(e){return Cb.indexOf(e)!==-1}function Gm(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Tb={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Pb=function(t,n,r){var a,i=Tb[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const Nb=Pb;function rf(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Rb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ib={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ab={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Mb={date:rf({formats:Rb,defaultWidth:"full"}),time:rf({formats:Ib,defaultWidth:"full"}),dateTime:rf({formats:Ab,defaultWidth:"full"})};const Db=Mb;var Lb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fb=function(t,n,r,a){return Lb[t]};const $b=Fb;function Pi(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",a;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return a[u]}}var jb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ub={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Wb={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Qb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Hb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Vb=function(t,n){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Bb={ordinalNumber:Vb,era:Pi({values:jb,defaultWidth:"wide"}),quarter:Pi({values:zb,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Pi({values:Ub,defaultWidth:"wide"}),day:Pi({values:Wb,defaultWidth:"wide"}),dayPeriod:Pi({values:Qb,defaultWidth:"wide",formattingValues:Hb,defaultFormattingWidth:"wide"})};const Yb=Bb;function Ni(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?qb(s,function(d){return d.test(o)}):Zb(s,function(d){return d.test(o)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(o.length);return{value:u,rest:c}}}function Zb(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function qb(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Kb(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(a.length);return{value:o,rest:s}}}var Gb=/^(\d+)(th|st|nd|rd)?/i,Xb=/\d+/i,Jb={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ex={any:[/^b/i,/^(a|c)/i]},tx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nx={any:[/1/i,/2/i,/3/i,/4/i]},rx={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ax={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ix={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ox={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},sx={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lx={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ux={ordinalNumber:Kb({matchPattern:Gb,parsePattern:Xb,valueCallback:function(t){return parseInt(t,10)}}),era:Ni({matchPatterns:Jb,defaultMatchWidth:"wide",parsePatterns:ex,defaultParseWidth:"any"}),quarter:Ni({matchPatterns:tx,defaultMatchWidth:"wide",parsePatterns:nx,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ni({matchPatterns:rx,defaultMatchWidth:"wide",parsePatterns:ax,defaultParseWidth:"any"}),day:Ni({matchPatterns:ix,defaultMatchWidth:"wide",parsePatterns:ox,defaultParseWidth:"any"}),dayPeriod:Ni({matchPatterns:sx,defaultMatchWidth:"any",parsePatterns:lx,defaultParseWidth:"any"})},cx={code:"en-US",formatDistance:Nb,formatLong:Db,formatRelative:$b,localize:Yb,match:ux,options:{weekStartsOn:0,firstWeekContainsDate:1}};const fx=cx;var dx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,px=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hx=/^'([^]*?)'?$/,mx=/''/g,vx=/[a-zA-Z]/;function yx(e,t,n){var r,a,i,o,s,l,u,c,d,f,m,v,g,b,h,p,y,x;ve(2,arguments);var S=String(t),_=Ti(),C=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:_.locale)!==null&&r!==void 0?r:fx,O=me((i=(o=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(u=n.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:_.firstWeekContainsDate)!==null&&o!==void 0?o:(d=_.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=me((m=(v=(g=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(h=n.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&g!==void 0?g:_.weekStartsOn)!==null&&v!==void 0?v:(y=_.locale)===null||y===void 0||(x=y.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&m!==void 0?m:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var R=Ue(e);if(!sb(R))throw new RangeError("Invalid time value");var Z=ib(R),F=ub(R,Z),B={firstWeekContainsDate:O,weekStartsOn:N,locale:C,_originalDate:R},ee=S.match(px).map(function(J){var te=J[0];if(te==="p"||te==="P"){var pe=Sb[te];return pe(J,C.formatLong)}return J}).join("").match(dx).map(function(J){if(J==="''")return"'";var te=J[0];if(te==="'")return gx(J);var pe=bb[te];if(pe)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Ob(J)&&Gm(J,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Eb(J)&&Gm(J,t,String(e)),pe(F,J,C.localize,B);if(te.match(vx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");return J}).join("");return ee}function gx(e){var t=e.match(hx);return t?t[1].replace(mx,"'"):e}function Xm(e,t){ve(2,arguments);var n=Ue(e),r=Ue(t);return n.getTime()<r.getTime()}function af(e,t){return af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},af(e,t)}function wx(e,t){ve(2,arguments);var n=me(t);return Ts(e,-n)}function bx(e,t){ve(2,arguments);var n=me(t);return Qm(e,-n)}function xx(e,t){if(ve(2,arguments),!t||ya(t)!=="object")return new Date(NaN);var n=t.years?me(t.years):0,r=t.months?me(t.months):0,a=t.weeks?me(t.weeks):0,i=t.days?me(t.days):0,o=t.hours?me(t.hours):0,s=t.minutes?me(t.minutes):0,l=t.seconds?me(t.seconds):0,u=bx(e,r+n*12),c=wx(u,i+a*7),d=s+o*60,f=l+d*60,m=f*1e3,v=new Date(c.getTime()-m);return v}var of=function(e,t){return of=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},of(e,t)};function Zn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");of(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function kx(e,t,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function Jm(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(n=0)),n;)try{if(r=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],a=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Tr(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function Pr(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function wa(e){return this instanceof wa?(this.v=e,this):new wa(e)}function Sx(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),a,i=[];return a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a;function o(f){r[f]&&(a[f]=function(m){return new Promise(function(v,g){i.push([f,m,v,g])>1||s(f,m)})})}function s(f,m){try{l(r[f](m))}catch(v){d(i[0][3],v)}}function l(f){f.value instanceof wa?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}function u(f){s("next",f)}function c(f){s("throw",f)}function d(f,m){f(m),i.shift(),i.length&&s(i[0][0],i[0][1])}}function _x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Tr=="function"?Tr(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(o){return new Promise(function(s,l){o=e[i](o),a(s,l,o.done,o.value)})}}function a(i,o,s,l){Promise.resolve(l).then(function(u){i({value:u,done:s})},o)}}function ye(e){return typeof e=="function"}function ev(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var sf=ev(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
43
|
+
`));let f=u.props,m=typeof(f==null?void 0:f.className)=="function"?(...g)=>Hc(f==null?void 0:f.className(...g),s.className):Hc(f==null?void 0:f.className,s.className),v=m?{className:m}:{};return k.cloneElement(u,Object.assign({},Pm(u.props,Vc(Bc(s,["ref"]))),c,l,tw(u.ref,l.ref),v))}return k.createElement(a,Object.assign({},Bc(s,["ref"]),a!==k.Fragment&&l,a!==k.Fragment&&c),u)}function tw(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function Pm(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let a in r)a.startsWith("on")&&typeof r[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(r[a])):t[a]=r[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](a,...i){let o=n[r];for(let s of o){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;s(a,...i)}}});return t}function Xt(e){var t;return Object.assign(k.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Vc(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Bc(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function nw(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&rw(n)?!1:r}function rw(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function Nm(e={},t=null,n=[]){for(let[r,a]of Object.entries(e))Im(n,Rm(t,r),a);return n}function Rm(e,t){return e?e+"["+t+"]":t}function Im(e,t,n){if(Array.isArray(n))for(let[r,a]of n.entries())Im(e,Rm(t,r.toString()),a);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Nm(n,t,e)}let aw="div";var Am=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Am||{});function iw(e,t){let i=e,{features:n=1}=i,r=Ct(i,["features"]),a={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:w({position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},(n&4)===4&&(n&2)!==2&&{display:"none"})};return wn({ourProps:a,theirProps:r,slot:{},defaultTag:aw,name:"Hidden"})}let ow=Xt(iw),Yc=k.createContext(null);Yc.displayName="OpenClosedContext";var xt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(xt||{});function Zc(){return k.useContext(Yc)}function Mm({value:e,children:t}){return ie.createElement(Yc.Provider,{value:e},t)}var ot=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ot||{});function sw(e,t,n){let[r,a]=k.useState(n),i=e!==void 0,o=k.useRef(i),s=k.useRef(!1),l=k.useRef(!1);return i&&!o.current&&!s.current?(s.current=!0,o.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&o.current&&!l.current&&(l.current=!0,o.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,se(u=>(i||a(u),t==null?void 0:t(u)))]}function Dm(e,t){let n=k.useRef([]),r=se(e);k.useEffect(()=>{let a=[...n.current];for(let[i,o]of t.entries())if(n.current[i]!==o){let s=r(t,a);return n.current=t,s}},[r,...t])}function Lm(e){return[e.screenX,e.screenY]}function lw(){let e=k.useRef([-1,-1]);return{wasMoved(t){let n=Lm(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Lm(t)}}}function uw(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function cw(){return/Android/gi.test(window.navigator.userAgent)}function fw(){return uw()||cw()}var dw=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(dw||{}),pw=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(pw||{}),hw=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(hw||{}),mw=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(mw||{});function qc(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Z1(t(e.options.slice()),i=>i.dataRef.current.domRef.current),a=n?r.indexOf(n):null;return a===-1&&(a=null),{options:r,activeOptionIndex:a}}let vw={[1](e){var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:E(w({},e),{activeOptionIndex:null,comboboxState:1})},[0](e){var t;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;let n=e.activeOptionIndex;if(e.dataRef.current){let{isSelected:r}=e.dataRef.current,a=e.options.findIndex(i=>r(i.dataRef.current.value));a!==-1&&(n=a)}return E(w({},e),{comboboxState:0,activeOptionIndex:n})},[2](e,t){var n,r,a,i;if((n=e.dataRef.current)!=null&&n.disabled||(r=e.dataRef.current)!=null&&r.optionsRef.current&&!((a=e.dataRef.current)!=null&&a.optionsPropsRef.current.static)&&e.comboboxState===1)return e;let o=qc(e);if(o.activeOptionIndex===null){let l=o.options.findIndex(u=>!u.dataRef.current.disabled);l!==-1&&(o.activeOptionIndex=l)}let s=ew(t,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:l=>l.id,resolveDisabled:l=>l.dataRef.current.disabled});return E(w(w({},e),o),{activeOptionIndex:s,activationTrigger:(i=t.trigger)!=null?i:1})},[3]:(e,t)=>{var n,r;let a={id:t.id,dataRef:t.dataRef},i=qc(e,s=>[...s,a]);e.activeOptionIndex===null&&(n=e.dataRef.current)!=null&&n.isSelected(t.dataRef.current.value)&&(i.activeOptionIndex=i.options.indexOf(a));let o=E(w(w({},e),i),{activationTrigger:1});return(r=e.dataRef.current)!=null&&r.__demoMode&&e.dataRef.current.value===void 0&&(o.activeOptionIndex=0),o},[4]:(e,t)=>{let n=qc(e,r=>{let a=r.findIndex(i=>i.id===t.id);return a!==-1&&r.splice(a,1),r});return E(w(w({},e),n),{activationTrigger:1})},[5]:(e,t)=>E(w({},e),{labelId:t.id})},Kc=k.createContext(null);Kc.displayName="ComboboxActionsContext";function Oi(e){let t=k.useContext(Kc);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Oi),n}return t}let Gc=k.createContext(null);Gc.displayName="ComboboxDataContext";function va(e){let t=k.useContext(Gc);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,va),n}return t}function yw(e,t){return Be(t.type,vw,e,t)}let gw=k.Fragment;function ww(e,t){let _t=e,{value:n,defaultValue:r,onChange:a,form:i,name:o,by:s=(K,ae)=>K===ae,disabled:l=!1,__demoMode:u=!1,nullable:c=!1,multiple:d=!1}=_t,f=Ct(_t,["value","defaultValue","onChange","form","name","by","disabled","__demoMode","nullable","multiple"]),[m=d?[]:void 0,v]=sw(n,a,r),[g,b]=k.useReducer(yw,{dataRef:k.createRef(),comboboxState:u?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),h=k.useRef(!1),p=k.useRef({static:!1,hold:!1}),y=k.useRef(null),x=k.useRef(null),S=k.useRef(null),_=k.useRef(null),C=se(typeof s=="string"?(K,ae)=>{let Ie=s;return(K==null?void 0:K[Ie])===(ae==null?void 0:ae[Ie])}:s),O=k.useCallback(K=>Be(N.mode,{[1]:()=>m.some(ae=>C(ae,K)),[0]:()=>C(m,K)}),[m]),N=k.useMemo(()=>E(w({},g),{optionsPropsRef:p,labelRef:y,inputRef:x,buttonRef:S,optionsRef:_,value:m,defaultValue:r,disabled:l,mode:d?1:0,get activeOptionIndex(){if(h.current&&g.activeOptionIndex===null&&g.options.length>0){let K=g.options.findIndex(ae=>!ae.dataRef.current.disabled);if(K!==-1)return K}return g.activeOptionIndex},compare:C,isSelected:O,nullable:c,__demoMode:u}),[m,r,l,d,c,u,g]),R=k.useRef(N.activeOptionIndex!==null?N.options[N.activeOptionIndex]:null);k.useEffect(()=>{let K=N.activeOptionIndex!==null?N.options[N.activeOptionIndex]:null;R.current!==K&&(R.current=K)}),Je(()=>{g.dataRef.current=N},[N]),q1([N.buttonRef,N.inputRef,N.optionsRef],()=>Q.closeCombobox(),N.comboboxState===0);let Z=k.useMemo(()=>({open:N.comboboxState===0,disabled:l,activeIndex:N.activeOptionIndex,activeOption:N.activeOptionIndex===null?null:N.options[N.activeOptionIndex].dataRef.current.value,value:m}),[N,l,m]),F=se(K=>{let ae=N.options.find(Ie=>Ie.id===K);ae&&j(ae.dataRef.current.value)}),B=se(()=>{if(N.activeOptionIndex!==null){let{dataRef:K,id:ae}=N.options[N.activeOptionIndex];j(K.current.value),Q.goToOption(Ye.Specific,ae)}}),ee=se(()=>{b({type:0}),h.current=!0}),J=se(()=>{b({type:1}),h.current=!1}),te=se((K,ae,Ie)=>(h.current=!1,K===Ye.Specific?b({type:2,focus:Ye.Specific,id:ae,trigger:Ie}):b({type:2,focus:K,trigger:Ie}))),pe=se((K,ae)=>(b({type:3,id:K,dataRef:ae}),()=>{var Ie;((Ie=R.current)==null?void 0:Ie.id)===K&&(h.current=!0),b({type:4,id:K})})),I=se(K=>(b({type:5,id:K}),()=>b({type:5,id:null}))),j=se(K=>Be(N.mode,{[0](){return v==null?void 0:v(K)},[1](){let ae=N.value.slice(),Ie=ae.findIndex(sr=>C(sr,K));return Ie===-1?ae.push(K):ae.splice(Ie,1),v==null?void 0:v(ae)}})),Q=k.useMemo(()=>({onChange:j,registerOption:pe,registerLabel:I,goToOption:te,closeCombobox:J,openCombobox:ee,selectActiveOption:B,selectOption:F}),[]),ue=t===null?{}:{ref:t},ne=k.useRef(null),or=Ci();return k.useEffect(()=>{ne.current&&r!==void 0&&or.addEventListener(ne.current,"reset",()=>{j(r)})},[ne,j]),ie.createElement(Kc.Provider,{value:Q},ie.createElement(Gc.Provider,{value:N},ie.createElement(Mm,{value:Be(N.comboboxState,{[0]:xt.Open,[1]:xt.Closed})},o!=null&&m!=null&&Nm({[o]:m}).map(([K,ae],Ie)=>ie.createElement(ow,w({features:Am.Hidden,ref:Ie===0?sr=>{var io;ne.current=(io=sr==null?void 0:sr.closest("form"))!=null?io:null}:void 0},Vc({key:K,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:K,value:ae})))),wn({ourProps:ue,theirProps:f,slot:Z,defaultTag:gw,name:"Combobox"}))))}let bw="input";function xw(e,t){var n,r,a,i;let o=Ei(),Z=e,{id:s=`headlessui-combobox-input-${o}`,onChange:l,displayValue:u,type:c="text"}=Z,d=Ct(Z,["id","onChange","displayValue","type"]),f=va("Combobox.Input"),m=Oi("Combobox.Input"),v=Cr(f.inputRef,t),g=k.useRef(!1),b=Ci(),h=function(){var F;return typeof u=="function"&&f.value!==void 0?(F=u(f.value))!=null?F:"":typeof f.value=="string"?f.value:""}();Dm(([F,B],[ee,J])=>{g.current||f.inputRef.current&&(J===0&&B===1||F!==ee)&&(f.inputRef.current.value=F)},[h,f.comboboxState]),Dm(([F],[B])=>{if(F===0&&B===1){let ee=f.inputRef.current;if(!ee)return;let J=ee.value,{selectionStart:te,selectionEnd:pe,selectionDirection:I}=ee;ee.value="",ee.value=J,I!==null?ee.setSelectionRange(te,pe,I):ee.setSelectionRange(te,pe)}},[f.comboboxState]);let p=k.useRef(!1),y=se(()=>{p.current=!0}),x=se(()=>{setTimeout(()=>{p.current=!1})}),S=se(F=>{switch(g.current=!0,F.key){case ot.Backspace:case ot.Delete:if(f.mode!==0||!f.nullable)return;let B=F.currentTarget;b.requestAnimationFrame(()=>{B.value===""&&(m.onChange(null),f.optionsRef.current&&(f.optionsRef.current.scrollTop=0),m.goToOption(Ye.Nothing))});break;case ot.Enter:if(g.current=!1,f.comboboxState!==0||p.current)return;if(F.preventDefault(),F.stopPropagation(),f.activeOptionIndex===null){m.closeCombobox();return}m.selectActiveOption(),f.mode===0&&m.closeCombobox();break;case ot.ArrowDown:return g.current=!1,F.preventDefault(),F.stopPropagation(),Be(f.comboboxState,{[0]:()=>{m.goToOption(Ye.Next)},[1]:()=>{m.openCombobox()}});case ot.ArrowUp:return g.current=!1,F.preventDefault(),F.stopPropagation(),Be(f.comboboxState,{[0]:()=>{m.goToOption(Ye.Previous)},[1]:()=>{m.openCombobox(),b.nextFrame(()=>{f.value||m.goToOption(Ye.Last)})}});case ot.Home:if(F.shiftKey)break;return g.current=!1,F.preventDefault(),F.stopPropagation(),m.goToOption(Ye.First);case ot.PageUp:return g.current=!1,F.preventDefault(),F.stopPropagation(),m.goToOption(Ye.First);case ot.End:if(F.shiftKey)break;return g.current=!1,F.preventDefault(),F.stopPropagation(),m.goToOption(Ye.Last);case ot.PageDown:return g.current=!1,F.preventDefault(),F.stopPropagation(),m.goToOption(Ye.Last);case ot.Escape:return g.current=!1,f.comboboxState!==0?void 0:(F.preventDefault(),f.optionsRef.current&&!f.optionsPropsRef.current.static&&F.stopPropagation(),m.closeCombobox());case ot.Tab:if(g.current=!1,f.comboboxState!==0)return;f.mode===0&&m.selectActiveOption(),m.closeCombobox();break}}),_=se(F=>{m.openCombobox(),l==null||l(F)}),C=se(()=>{g.current=!1}),O=Uc(()=>{if(f.labelId)return[f.labelId].join(" ")},[f.labelId]),N=k.useMemo(()=>({open:f.comboboxState===0,disabled:f.disabled}),[f]),R={ref:v,id:s,role:"combobox",type:c,"aria-controls":(n=f.optionsRef.current)==null?void 0:n.id,"aria-expanded":f.disabled?void 0:f.comboboxState===0,"aria-activedescendant":f.activeOptionIndex===null||(r=f.options[f.activeOptionIndex])==null?void 0:r.id,"aria-labelledby":O,"aria-autocomplete":"list",defaultValue:(i=(a=e.defaultValue)!=null?a:f.defaultValue!==void 0?u==null?void 0:u(f.defaultValue):null)!=null?i:f.defaultValue,disabled:f.disabled,onCompositionStart:y,onCompositionEnd:x,onKeyDown:S,onChange:_,onBlur:C};return wn({ourProps:R,theirProps:d,slot:N,defaultTag:bw,name:"Combobox.Input"})}let kw="button";function Sw(e,t){var n;let r=va("Combobox.Button"),a=Oi("Combobox.Button"),i=Cr(r.buttonRef,t),o=Ei(),g=e,{id:s=`headlessui-combobox-button-${o}`}=g,l=Ct(g,["id"]),u=Ci(),c=se(b=>{switch(b.key){case ot.ArrowDown:return b.preventDefault(),b.stopPropagation(),r.comboboxState===1&&a.openCombobox(),u.nextFrame(()=>{var h;return(h=r.inputRef.current)==null?void 0:h.focus({preventScroll:!0})});case ot.ArrowUp:return b.preventDefault(),b.stopPropagation(),r.comboboxState===1&&(a.openCombobox(),u.nextFrame(()=>{r.value||a.goToOption(Ye.Last)})),u.nextFrame(()=>{var h;return(h=r.inputRef.current)==null?void 0:h.focus({preventScroll:!0})});case ot.Escape:return r.comboboxState!==0?void 0:(b.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&b.stopPropagation(),a.closeCombobox(),u.nextFrame(()=>{var h;return(h=r.inputRef.current)==null?void 0:h.focus({preventScroll:!0})}));default:return}}),d=se(b=>{if(nw(b.currentTarget))return b.preventDefault();r.comboboxState===0?a.closeCombobox():(b.preventDefault(),a.openCombobox()),u.nextFrame(()=>{var h;return(h=r.inputRef.current)==null?void 0:h.focus({preventScroll:!0})})}),f=Uc(()=>{if(r.labelId)return[r.labelId,s].join(" ")},[r.labelId,s]),m=k.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),v={ref:i,id:s,type:K1(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(n=r.optionsRef.current)==null?void 0:n.id,"aria-expanded":r.disabled?void 0:r.comboboxState===0,"aria-labelledby":f,disabled:r.disabled,onClick:d,onKeyDown:c};return wn({ourProps:v,theirProps:l,slot:m,defaultTag:kw,name:"Combobox.Button"})}let _w="label";function Cw(e,t){let n=Ei(),c=e,{id:r=`headlessui-combobox-label-${n}`}=c,a=Ct(c,["id"]),i=va("Combobox.Label"),o=Oi("Combobox.Label"),s=Cr(i.labelRef,t);Je(()=>o.registerLabel(r),[r]);let l=se(()=>{var d;return(d=i.inputRef.current)==null?void 0:d.focus({preventScroll:!0})}),u=k.useMemo(()=>({open:i.comboboxState===0,disabled:i.disabled}),[i]);return wn({ourProps:{ref:s,id:r,onClick:l},theirProps:a,slot:u,defaultTag:_w,name:"Combobox.Label"})}let Ew="ul",Ow=xs.RenderStrategy|xs.Static;function Tw(e,t){let n=Ei(),m=e,{id:r=`headlessui-combobox-options-${n}`,hold:a=!1}=m,i=Ct(m,["id","hold"]),o=va("Combobox.Options"),s=Cr(o.optionsRef,t),l=Zc(),u=(()=>l!==null?(l&xt.Open)===xt.Open:o.comboboxState===0)();Je(()=>{var v;o.optionsPropsRef.current.static=(v=e.static)!=null?v:!1},[o.optionsPropsRef,e.static]),Je(()=>{o.optionsPropsRef.current.hold=a},[o.optionsPropsRef,a]),X1({container:o.optionsRef.current,enabled:o.comboboxState===0,accept(v){return v.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:v.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(v){v.setAttribute("role","none")}});let c=Uc(()=>{var v,g;return(g=o.labelId)!=null?g:(v=o.buttonRef.current)==null?void 0:v.id},[o.labelId,o.buttonRef.current]),d=k.useMemo(()=>({open:o.comboboxState===0}),[o]),f={"aria-labelledby":c,role:"listbox","aria-multiselectable":o.mode===1?!0:void 0,id:r,ref:s};return wn({ourProps:f,theirProps:i,slot:d,defaultTag:Ew,features:Ow,visible:u,name:"Combobox.Options"})}let Pw="li";function Nw(e,t){var n,r;let a=Ei(),N=e,{id:i=`headlessui-combobox-option-${a}`,disabled:o=!1,value:s}=N,l=Ct(N,["id","disabled","value"]),u=va("Combobox.Option"),c=Oi("Combobox.Option"),d=u.activeOptionIndex!==null?u.options[u.activeOptionIndex].id===i:!1,f=u.isSelected(s),m=k.useRef(null),v=yn({disabled:o,value:s,domRef:m,textValue:(r=(n=m.current)==null?void 0:n.textContent)==null?void 0:r.toLowerCase()}),g=Cr(t,m),b=se(()=>c.selectOption(i));Je(()=>c.registerOption(i,v),[v,i]);let h=k.useRef(!u.__demoMode);Je(()=>{if(!u.__demoMode)return;let R=_r();return R.requestAnimationFrame(()=>{h.current=!0}),R.dispose},[]),Je(()=>{if(u.comboboxState!==0||!d||!h.current||u.activationTrigger===0)return;let R=_r();return R.requestAnimationFrame(()=>{var Z,F;(F=(Z=m.current)==null?void 0:Z.scrollIntoView)==null||F.call(Z,{block:"nearest"})}),R.dispose},[m,d,u.comboboxState,u.activationTrigger,u.activeOptionIndex]);let p=se(R=>{if(o)return R.preventDefault();b(),u.mode===0&&c.closeCombobox(),fw()||requestAnimationFrame(()=>{var Z;return(Z=u.inputRef.current)==null?void 0:Z.focus()})}),y=se(()=>{if(o)return c.goToOption(Ye.Nothing);c.goToOption(Ye.Specific,i)}),x=lw(),S=se(R=>x.update(R)),_=se(R=>{x.wasMoved(R)&&(o||d||c.goToOption(Ye.Specific,i,0))}),C=se(R=>{x.wasMoved(R)&&(o||d&&(u.optionsPropsRef.current.hold||c.goToOption(Ye.Nothing)))}),O=k.useMemo(()=>({active:d,selected:f,disabled:o}),[d,f,o]);return wn({ourProps:{id:i,ref:g,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":f,disabled:void 0,onClick:p,onFocus:y,onPointerEnter:S,onMouseEnter:S,onPointerMove:_,onMouseMove:_,onPointerLeave:C,onMouseLeave:C},theirProps:l,slot:O,defaultTag:Pw,name:"Combobox.Option"})}let Rw=Xt(ww),Iw=Xt(Sw),Aw=Xt(xw),Mw=Xt(Cw),Dw=Xt(Tw),Lw=Xt(Nw),Ss=Object.assign(Rw,{Input:Aw,Button:Iw,Label:Mw,Options:Dw,Option:Lw});function Xc(){let e=k.useRef(!1);return Je(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Fw(e=0){let[t,n]=k.useState(e),r=Xc(),a=k.useCallback(l=>{r.current&&n(u=>u|l)},[t,r]),i=k.useCallback(l=>!!(t&l),[t]),o=k.useCallback(l=>{r.current&&n(u=>u&~l)},[n,r]),s=k.useCallback(l=>{r.current&&n(u=>u^l)},[n]);return{flags:t,addFlag:a,hasFlag:i,removeFlag:o,toggleFlag:s}}function $w(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Jc(e,...t){e&&t.length>0&&e.classList.add(...t)}function ef(e,...t){e&&t.length>0&&e.classList.remove(...t)}function jw(e,t){let n=_r();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:a}=getComputedStyle(e),[i,o]=[r,a].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,d)=>d-c);return u}),s=i+o;if(s!==0){n.group(u=>{u.setTimeout(()=>{t(),u.dispose()},s),u.addEventListener(e,"transitionrun",c=>{c.target===c.currentTarget&&u.dispose()})});let l=n.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function zw(e,t,n,r){let a=n?"enter":"leave",i=_r(),o=r!==void 0?$w(r):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Be(a,{enter:()=>t.enter,leave:()=>t.leave}),l=Be(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=Be(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ef(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Jc(e,...s,...u),i.nextFrame(()=>{ef(e,...u),Jc(e,...l),jw(e,()=>(ef(e,...s),Jc(e,...t.entered),o()))}),i.dispose}function Uw({container:e,direction:t,classes:n,onStart:r,onStop:a}){let i=Xc(),o=Ci(),s=yn(t);Je(()=>{let l=_r();o.add(l.dispose);let u=e.current;if(u&&s.current!=="idle"&&i.current)return l.dispose(),r.current(s.current),l.add(zw(u,n.current,s.current==="enter",()=>{l.dispose(),a.current(s.current)})),l.dispose},[t])}function Er(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let _s=k.createContext(null);_s.displayName="TransitionContext";var Ww=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ww||{});function Qw(){let e=k.useContext(_s);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Hw(){let e=k.useContext(Cs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Cs=k.createContext(null);Cs.displayName="NestingContext";function Es(e){return"children"in e?Es(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Fm(e,t){let n=yn(e),r=k.useRef([]),a=Xc(),i=Ci(),o=se((m,v=gn.Hidden)=>{let g=r.current.findIndex(({el:b})=>b===m);g!==-1&&(Be(v,{[gn.Unmount](){r.current.splice(g,1)},[gn.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var b;!Es(r)&&a.current&&((b=n.current)==null||b.call(n))}))}),s=se(m=>{let v=r.current.find(({el:g})=>g===m);return v?v.state!=="visible"&&(v.state="visible"):r.current.push({el:m,state:"visible"}),()=>o(m,gn.Unmount)}),l=k.useRef([]),u=k.useRef(Promise.resolve()),c=k.useRef({enter:[],leave:[],idle:[]}),d=se((m,v,g)=>{l.current.splice(0),t&&(t.chains.current[v]=t.chains.current[v].filter(([b])=>b!==m)),t==null||t.chains.current[v].push([m,new Promise(b=>{l.current.push(b)})]),t==null||t.chains.current[v].push([m,new Promise(b=>{Promise.all(c.current[v].map(([h,p])=>p)).then(()=>b())})]),v==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(v)):g(v)}),f=se((m,v,g)=>{Promise.all(c.current[v].splice(0).map(([b,h])=>h)).then(()=>{var b;(b=l.current.shift())==null||b()}).then(()=>g(v))});return k.useMemo(()=>({children:r,register:s,unregister:o,onStart:d,onStop:f,wait:u,chains:c}),[s,o,r,d,f,c,u])}function Vw(){}let Bw=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function $m(e){var t;let n={};for(let r of Bw)n[r]=(t=e[r])!=null?t:Vw;return n}function Yw(e){let t=k.useRef($m(e));return k.useEffect(()=>{t.current=$m(e)},[e]),t}let Zw="div",jm=xs.RenderStrategy;function qw(e,t){let ue=e,{beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i,enter:o,enterFrom:s,enterTo:l,entered:u,leave:c,leaveFrom:d,leaveTo:f}=ue,m=Ct(ue,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),v=k.useRef(null),g=Cr(v,t),b=m.unmount?gn.Unmount:gn.Hidden,{show:h,appear:p,initial:y}=Qw(),[x,S]=k.useState(h?"visible":"hidden"),_=Hw(),{register:C,unregister:O}=_,N=k.useRef(null);k.useEffect(()=>C(v),[C,v]),k.useEffect(()=>{if(b===gn.Hidden&&v.current){if(h&&x!=="visible"){S("visible");return}return Be(x,{hidden:()=>O(v),visible:()=>C(v)})}},[x,v,C,O,h,b]);let R=yn({enter:Er(o),enterFrom:Er(s),enterTo:Er(l),entered:Er(u),leave:Er(c),leaveFrom:Er(d),leaveTo:Er(f)}),Z=Yw({beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i}),F=Wc();k.useEffect(()=>{if(F&&x==="visible"&&v.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[v,x,F]);let B=y&&!p,ee=(()=>!F||B||N.current===h?"idle":h?"enter":"leave")(),J=Fw(0),te=se(ne=>Be(ne,{enter:()=>{J.addFlag(xt.Opening),Z.current.beforeEnter()},leave:()=>{J.addFlag(xt.Closing),Z.current.beforeLeave()},idle:()=>{}})),pe=se(ne=>Be(ne,{enter:()=>{J.removeFlag(xt.Opening),Z.current.afterEnter()},leave:()=>{J.removeFlag(xt.Closing),Z.current.afterLeave()},idle:()=>{}})),I=Fm(()=>{S("hidden"),O(v)},_);Uw({container:v,classes:R,direction:ee,onStart:yn(ne=>{I.onStart(v,ne,te)}),onStop:yn(ne=>{I.onStop(v,ne,pe),ne==="leave"&&!Es(I)&&(S("hidden"),O(v))})}),k.useEffect(()=>{B&&(b===gn.Hidden?N.current=null:N.current=h)},[h,B,x]);let j=m,Q={ref:g};return p&&h&&(j=E(w({},j),{className:Hc(m.className,...R.current.enter,...R.current.enterFrom)})),ie.createElement(Cs.Provider,{value:I},ie.createElement(Mm,{value:Be(x,{visible:xt.Open,hidden:xt.Closed})|J.flags},wn({ourProps:Q,theirProps:j,defaultTag:Zw,features:jm,visible:x==="visible",name:"Transition.Child"})))}function Kw(e,t){let h=e,{show:n,appear:r=!1,unmount:a}=h,i=Ct(h,["show","appear","unmount"]),o=k.useRef(null),s=Cr(o,t);Wc();let l=Zc();if(n===void 0&&l!==null&&(n=(l&xt.Open)===xt.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=k.useState(n?"visible":"hidden"),d=Fm(()=>{c("hidden")}),[f,m]=k.useState(!0),v=k.useRef([n]);Je(()=>{f!==!1&&v.current[v.current.length-1]!==n&&(v.current.push(n),m(!1))},[v,n]);let g=k.useMemo(()=>({show:n,appear:r,initial:f}),[n,r,f]);k.useEffect(()=>{if(n)c("visible");else if(!Es(d))c("hidden");else{let p=o.current;if(!p)return;let y=p.getBoundingClientRect();y.x===0&&y.y===0&&y.width===0&&y.height===0&&c("hidden")}},[n,d]);let b={unmount:a};return ie.createElement(Cs.Provider,{value:d},ie.createElement(_s.Provider,{value:g},wn({ourProps:E(w({},b),{as:k.Fragment,children:ie.createElement(zm,w(w({ref:s},b),i))}),theirProps:{},defaultTag:k.Fragment,features:jm,visible:u==="visible",name:"Transition"})))}function Gw(e,t){let n=k.useContext(_s)!==null,r=Zc()!==null;return ie.createElement(ie.Fragment,null,!n&&r?ie.createElement(tf,w({ref:t},e)):ie.createElement(zm,w({ref:t},e)))}let tf=Xt(Kw),zm=Xt(qw),Xw=Xt(Gw),Um=Object.assign(tf,{Child:Xw,Root:tf});function Jw(){return $("div",{"aria-label":"Loading...",role:"status",children:ut("svg",{className:"a1-h-6 a1-w-6 a1-animate-spin",viewBox:"3 3 18 18",children:[$("path",{className:"a1-fill-indigo-200",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),$("path",{className:"a1-fill-indigo-800",d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"})]})})}const nf="flight-search-widget-";function It(e,t=nf){return{part:`${t}${e}`}}const eb=(e,t,n,r)=>$("li",{className:`${n}`,children:r}),Os=e=>It(e,`${nf}autocomplete-`);function Wm({label:e,name:t,items:n,value:r=null,primaryColor:a,secondaryColor:i,status:o=null,onChange:s,getKey:l,getValue:u,filter:c,children:d=eb,disabled:f=!1,icon:m}){const[v,g]=k.useState(null),[b,h]=k.useState(""),[p,y]=k.useState(!1);k.useEffect(()=>{typeof s=="function"&&s(b)},[b]),k.useEffect(()=>{p||h(v||"")},[p,v]),k.useEffect(()=>{b!==v&&g(null)},[b,v]);const x=b===""?n:n==null?void 0:n.filter(B=>c(b,B)),S="a1-z-100 a1-absolute a1-max-h-56 a1-max-w-full lg:a1-max-w-[none] a1-rounded-lg a1-border a1-border-gray-200 a1-bg-white a1-shadow-lg a1-mt-2 a1-overflow-x-hidden",_="a1-border-b a1-border-gray-200 a1-text-left a1-border-l-0 a1-border-r-0 a1-px-4 a1-py-2 a1-cursor-pointer a1-overflow-hidden",C="a1-bg-secondary",O="a1-bg-primary a1-text-white",N="a1-text-gray-900 a1-bg-white a1-rounded-lg focus:a1-border-primary",R="a1-ring-2 a1-ring-primary";let Z={};a&&(Z["--color-primary"]=a),i&&(Z["--color-secondary"]=i);let F=null;return m&&(F=$("span",E(w({},Os("icon")),{className:"a1-w-6 a1-h-6 a1-mr-2",children:m}))),o==="loading"&&(F=$("span",E(w({},Os("icon")),{className:"a1-w-6 a1-h-6 a1-mr-2",children:$(Jw,{})}))),$("div",{style:Z,children:$(Ss,{disabled:f,name:t,value:r,onChange:B=>{g(B),B&&h(B)},children:({open:B})=>$(Mg,{children:ut("div",{className:"a1-relative",children:[ut("div",{className:`a1-flex a1-flex-row a1-items-center a1-gap-1 a1-p-3 ${N} ${p?R:"a1-ring-2 a1-ring-gray-200"} ${f?"a1-opacity-60":""}`,children:[F,$(Ss.Input,E(w({},Os("input")),{autoComplete:"off",className:"focus:a1-outline-none a1-w-full",onChange:ee=>h(ee.target.value),onFocus:()=>y(!0),onBlur:()=>setTimeout(()=>y(!1),200),placeholder:e}))]}),$(Um,{show:B||p&&b==="",className:"a1-relative a1-z-10",enter:"a1-transition a1-duration-100 a1-ease-out",enterFrom:"a1-transform a1-scale-95 a1-opacity-0",enterTo:"a1-transform a1-scale-100 a1-opacity-100",leave:"a1-transition a1-duration-75 a1-ease-out",leaveFrom:"a1-transform a1-scale-100 a1-opacity-100",leaveTo:"a1-transform a1-scale-95 a1-opacity-0",children:$(Ss.Options,{className:`${S}`,children:x==null?void 0:x.slice(0,25).map((ee,J)=>$(Ss.Option,{value:u(ee),as:k.Fragment,children:({active:te,selected:pe})=>d(te,pe,`${_} ${te?C:""} ${pe?O:"a1-text-gray-900"} ${!te&&!pe?"a1-bg-white":""}`,ee,Os)},`${l(ee)}-${J}`))})})]})})})})}function ya(e){return ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ya(e)}function me(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ve(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Ue(e){ve(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ya(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ts(e,t){ve(2,arguments);var n=Ue(e),r=me(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Qm(e,t){ve(2,arguments);var n=Ue(e),r=me(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),a),n)}function tb(e,t){if(ve(2,arguments),!t||ya(t)!=="object")return new Date(NaN);var n=t.years?me(t.years):0,r=t.months?me(t.months):0,a=t.weeks?me(t.weeks):0,i=t.days?me(t.days):0,o=t.hours?me(t.hours):0,s=t.minutes?me(t.minutes):0,l=t.seconds?me(t.seconds):0,u=Ue(e),c=r||n?Qm(u,r+n*12):u,d=i||a?Ts(c,i+a*7):c,f=s+o*60,m=l+f*60,v=m*1e3,g=new Date(d.getTime()+v);return g}function nb(e,t){ve(2,arguments);var n=Ue(e).getTime(),r=me(t);return new Date(n+r)}var rb={};function Ti(){return rb}function ab(e,t){var n,r,a,i,o,s,l,u;ve(1,arguments);var c=Ti(),d=me((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Ue(e),m=f.getDay(),v=(m<d?7:0)+m-d;return f.setDate(f.getDate()-v),f.setHours(0,0,0,0),f}function ib(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Hm(e){ve(1,arguments);var t=Ue(e);return t.setHours(0,0,0,0),t}function Ps(e,t){ve(2,arguments);var n=Hm(e),r=Hm(t);return n.getTime()===r.getTime()}function ob(e){return ve(1,arguments),e instanceof Date||ya(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function sb(e){if(ve(1,arguments),!ob(e)&&typeof e!="number")return!1;var t=Ue(e);return!isNaN(Number(t))}function lb(e){ve(1,arguments);var t=Ue(e);return t.setDate(1),t.setHours(0,0,0,0),t}function ub(e,t){ve(2,arguments);var n=me(t);return nb(e,-n)}var cb=864e5;function fb(e){ve(1,arguments);var t=Ue(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),a=n-r;return Math.floor(a/cb)+1}function Ns(e){ve(1,arguments);var t=1,n=Ue(e),r=n.getUTCDay(),a=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}function Vm(e){ve(1,arguments);var t=Ue(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var a=Ns(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var o=Ns(i);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function db(e){ve(1,arguments);var t=Vm(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ns(n);return r}var pb=6048e5;function hb(e){ve(1,arguments);var t=Ue(e),n=Ns(t).getTime()-db(t).getTime();return Math.round(n/pb)+1}function Rs(e,t){var n,r,a,i,o,s,l,u;ve(1,arguments);var c=Ti(),d=me((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Ue(e),m=f.getUTCDay(),v=(m<d?7:0)+m-d;return f.setUTCDate(f.getUTCDate()-v),f.setUTCHours(0,0,0,0),f}function Bm(e,t){var n,r,a,i,o,s,l,u;ve(1,arguments);var c=Ue(e),d=c.getUTCFullYear(),f=Ti(),m=me((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(d+1,0,m),v.setUTCHours(0,0,0,0);var g=Rs(v,t),b=new Date(0);b.setUTCFullYear(d,0,m),b.setUTCHours(0,0,0,0);var h=Rs(b,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=h.getTime()?d:d-1}function mb(e,t){var n,r,a,i,o,s,l,u;ve(1,arguments);var c=Ti(),d=me((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=Bm(e,t),m=new Date(0);m.setUTCFullYear(f,0,d),m.setUTCHours(0,0,0,0);var v=Rs(m,t);return v}var vb=6048e5;function yb(e,t){ve(1,arguments);var n=Ue(e),r=Rs(n,t).getTime()-mb(n,t).getTime();return Math.round(r/vb)+1}function de(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var gb={y:function(t,n){var r=t.getUTCFullYear(),a=r>0?r:1-r;return de(n==="yy"?a%100:a,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):de(r+1,2)},d:function(t,n){return de(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return de(t.getUTCHours()%12||12,n.length)},H:function(t,n){return de(t.getUTCHours(),n.length)},m:function(t,n){return de(t.getUTCMinutes(),n.length)},s:function(t,n){return de(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,a=t.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return de(i,n.length)}};const Yn=gb;var ga={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wb={G:function(t,n,r){var a=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var a=t.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return Yn.y(t,n)},Y:function(t,n,r,a){var i=Bm(t,a),o=i>0?i:1-i;if(n==="YY"){var s=o%100;return de(s,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):de(o,n.length)},R:function(t,n){var r=Vm(t);return de(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return de(r,n.length)},Q:function(t,n,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(a);case"QQ":return de(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,n,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(a);case"qq":return de(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,n,r){var a=t.getUTCMonth();switch(n){case"M":case"MM":return Yn.M(t,n);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(t,n,r){var a=t.getUTCMonth();switch(n){case"L":return String(a+1);case"LL":return de(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(t,n,r,a){var i=yb(t,a);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):de(i,n.length)},I:function(t,n,r){var a=hb(t);return n==="Io"?r.ordinalNumber(a,{unit:"week"}):de(a,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Yn.d(t,n)},D:function(t,n,r){var a=fb(t);return n==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):de(a,n.length)},E:function(t,n,r){var a=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(t,n,r,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return de(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return de(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var a=t.getUTCDay(),i=a===0?7:a;switch(n){case"i":return String(i);case"ii":return de(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(t,n,r){var a=t.getUTCHours(),i=a/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var a=t.getUTCHours(),i;switch(a===12?i=ga.noon:a===0?i=ga.midnight:i=a/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var a=t.getUTCHours(),i;switch(a>=17?i=ga.evening:a>=12?i=ga.afternoon:a>=4?i=ga.morning:i=ga.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return Yn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Yn.H(t,n)},K:function(t,n,r){var a=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(a,{unit:"hour"}):de(a,n.length)},k:function(t,n,r){var a=t.getUTCHours();return a===0&&(a=24),n==="ko"?r.ordinalNumber(a,{unit:"hour"}):de(a,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Yn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Yn.s(t,n)},S:function(t,n){return Yn.S(t,n)},X:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return Zm(o);case"XXXX":case"XX":return Or(o);case"XXXXX":case"XXX":default:return Or(o,":")}},x:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"x":return Zm(o);case"xxxx":case"xx":return Or(o);case"xxxxx":case"xxx":default:return Or(o,":")}},O:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Ym(o,":");case"OOOO":default:return"GMT"+Or(o,":")}},z:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Ym(o,":");case"zzzz":default:return"GMT"+Or(o,":")}},t:function(t,n,r,a){var i=a._originalDate||t,o=Math.floor(i.getTime()/1e3);return de(o,n.length)},T:function(t,n,r,a){var i=a._originalDate||t,o=i.getTime();return de(o,n.length)}};function Ym(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;if(i===0)return n+String(a);var o=t||"";return n+String(a)+o+de(i,2)}function Zm(e,t){if(e%60===0){var n=e>0?"-":"+";return n+de(Math.abs(e)/60,2)}return Or(e,t)}function Or(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e),i=de(Math.floor(a/60),2),o=de(a%60,2);return r+i+n+o}const bb=wb;var qm=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Km=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},xb=function(t,n){var r=t.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return qm(t,n);var o;switch(a){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",qm(a,n)).replace("{{time}}",Km(i,n))},kb={p:Km,P:xb};const Sb=kb;var _b=["D","DD"],Cb=["YY","YYYY"];function Eb(e){return _b.indexOf(e)!==-1}function Ob(e){return Cb.indexOf(e)!==-1}function Gm(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Tb={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Pb=function(t,n,r){var a,i=Tb[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const Nb=Pb;function rf(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Rb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ib={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ab={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Mb={date:rf({formats:Rb,defaultWidth:"full"}),time:rf({formats:Ib,defaultWidth:"full"}),dateTime:rf({formats:Ab,defaultWidth:"full"})};const Db=Mb;var Lb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fb=function(t,n,r,a){return Lb[t]};const $b=Fb;function Pi(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",a;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return a[u]}}var jb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ub={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Wb={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Qb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Hb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Vb=function(t,n){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Bb={ordinalNumber:Vb,era:Pi({values:jb,defaultWidth:"wide"}),quarter:Pi({values:zb,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Pi({values:Ub,defaultWidth:"wide"}),day:Pi({values:Wb,defaultWidth:"wide"}),dayPeriod:Pi({values:Qb,defaultWidth:"wide",formattingValues:Hb,defaultFormattingWidth:"wide"})};const Yb=Bb;function Ni(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?qb(s,function(d){return d.test(o)}):Zb(s,function(d){return d.test(o)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(o.length);return{value:u,rest:c}}}function Zb(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function qb(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Kb(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var s=t.slice(a.length);return{value:o,rest:s}}}var Gb=/^(\d+)(th|st|nd|rd)?/i,Xb=/\d+/i,Jb={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ex={any:[/^b/i,/^(a|c)/i]},tx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nx={any:[/1/i,/2/i,/3/i,/4/i]},rx={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ax={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ix={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ox={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},sx={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lx={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ux={ordinalNumber:Kb({matchPattern:Gb,parsePattern:Xb,valueCallback:function(t){return parseInt(t,10)}}),era:Ni({matchPatterns:Jb,defaultMatchWidth:"wide",parsePatterns:ex,defaultParseWidth:"any"}),quarter:Ni({matchPatterns:tx,defaultMatchWidth:"wide",parsePatterns:nx,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ni({matchPatterns:rx,defaultMatchWidth:"wide",parsePatterns:ax,defaultParseWidth:"any"}),day:Ni({matchPatterns:ix,defaultMatchWidth:"wide",parsePatterns:ox,defaultParseWidth:"any"}),dayPeriod:Ni({matchPatterns:sx,defaultMatchWidth:"any",parsePatterns:lx,defaultParseWidth:"any"})},cx={code:"en-US",formatDistance:Nb,formatLong:Db,formatRelative:$b,localize:Yb,match:ux,options:{weekStartsOn:0,firstWeekContainsDate:1}};const fx=cx;var dx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,px=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hx=/^'([^]*?)'?$/,mx=/''/g,vx=/[a-zA-Z]/;function yx(e,t,n){var r,a,i,o,s,l,u,c,d,f,m,v,g,b,h,p,y,x;ve(2,arguments);var S=String(t),_=Ti(),C=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:_.locale)!==null&&r!==void 0?r:fx,O=me((i=(o=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(u=n.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:_.firstWeekContainsDate)!==null&&o!==void 0?o:(d=_.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=me((m=(v=(g=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(h=n.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&g!==void 0?g:_.weekStartsOn)!==null&&v!==void 0?v:(y=_.locale)===null||y===void 0||(x=y.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&m!==void 0?m:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var R=Ue(e);if(!sb(R))throw new RangeError("Invalid time value");var Z=ib(R),F=ub(R,Z),B={firstWeekContainsDate:O,weekStartsOn:N,locale:C,_originalDate:R},ee=S.match(px).map(function(J){var te=J[0];if(te==="p"||te==="P"){var pe=Sb[te];return pe(J,C.formatLong)}return J}).join("").match(dx).map(function(J){if(J==="''")return"'";var te=J[0];if(te==="'")return gx(J);var pe=bb[te];if(pe)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Ob(J)&&Gm(J,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Eb(J)&&Gm(J,t,String(e)),pe(F,J,C.localize,B);if(te.match(vx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");return J}).join("");return ee}function gx(e){var t=e.match(hx);return t?t[1].replace(mx,"'"):e}function Xm(e,t){ve(2,arguments);var n=Ue(e),r=Ue(t);return n.getTime()<r.getTime()}function af(e,t){return af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},af(e,t)}function wx(e,t){ve(2,arguments);var n=me(t);return Ts(e,-n)}function bx(e,t){ve(2,arguments);var n=me(t);return Qm(e,-n)}function xx(e,t){if(ve(2,arguments),!t||ya(t)!=="object")return new Date(NaN);var n=t.years?me(t.years):0,r=t.months?me(t.months):0,a=t.weeks?me(t.weeks):0,i=t.days?me(t.days):0,o=t.hours?me(t.hours):0,s=t.minutes?me(t.minutes):0,l=t.seconds?me(t.seconds):0,u=bx(e,r+n*12),c=wx(u,i+a*7),d=s+o*60,f=l+d*60,m=f*1e3,v=new Date(c.getTime()-m);return v}var of=function(e,t){return of=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},of(e,t)};function Zn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");of(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function kx(e,t,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function Jm(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(n=0)),n;)try{if(r=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],a=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Tr(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function Pr(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function wa(e){return this instanceof wa?(this.v=e,this):new wa(e)}function Sx(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),a,i=[];return a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a;function o(f){r[f]&&(a[f]=function(m){return new Promise(function(v,g){i.push([f,m,v,g])>1||s(f,m)})})}function s(f,m){try{l(r[f](m))}catch(v){d(i[0][3],v)}}function l(f){f.value instanceof wa?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}function u(f){s("next",f)}function c(f){s("throw",f)}function d(f,m){f(m),i.shift(),i.length&&s(i[0][0],i[0][1])}}function _x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Tr=="function"?Tr(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(o){return new Promise(function(s,l){o=e[i](o),a(s,l,o.done,o.value)})}}function a(i,o,s,l){Promise.resolve(l).then(function(u){i({value:u,done:s})},o)}}function ye(e){return typeof e=="function"}function ev(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var sf=ev(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
44
44
|
`+n.map(function(r,a){return a+1+") "+r.toString()}).join(`
|
|
45
45
|
`):"",this.name="UnsubscriptionError",this.errors=n}});function Ri(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ba=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,a,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Tr(o),l=s.next();!l.done;l=s.next()){var u=l.value;u.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(ye(c))try{c()}catch(g){i=g instanceof sf?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=Tr(d),m=f.next();!m.done;m=f.next()){var v=m.value;try{rv(v)}catch(g){i=i!=null?i:[],g instanceof sf?i=Pr(Pr([],qn(i)),qn(g.errors)):i.push(g)}}}catch(g){r={error:g}}finally{try{m&&!m.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}}if(i)throw new sf(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)rv(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Ri(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Ri(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),tv=ba.EMPTY;function nv(e){return e instanceof ba||e&&"closed"in e&&ye(e.remove)&&ye(e.add)&&ye(e.unsubscribe)}function rv(e){ye(e)?e():e.unsubscribe()}var av={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},lf={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=lf.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,Pr([e,t],qn(n))):setTimeout.apply(void 0,Pr([e,t],qn(n)))},clearTimeout:function(e){var t=lf.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function iv(e){lf.setTimeout(function(){throw e})}function ov(){}function Is(e){e()}var uf=function(e){Zn(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,nv(n)&&n.add(r)):r.destination=Tx,r}return t.create=function(n,r,a){return new ff(n,r,a)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(ba),Cx=Function.prototype.bind;function cf(e,t){return Cx.call(e,t)}var Ex=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){As(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){As(r)}else As(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){As(n)}},e}(),ff=function(e){Zn(t,e);function t(n,r,a){var i=e.call(this)||this,o;if(ye(n)||!n)o={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:a!=null?a:void 0};else{var s;i&&av.useDeprecatedNextContext?(s=Object.create(n),s.unsubscribe=function(){return i.unsubscribe()},o={next:n.next&&cf(n.next,s),error:n.error&&cf(n.error,s),complete:n.complete&&cf(n.complete,s)}):o=n}return i.destination=new Ex(o),i}return t}(uf);function As(e){iv(e)}function Ox(e){throw e}var Tx={closed:!0,next:ov,error:Ox,complete:ov},df=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function sv(e){return e}function Px(e){return e.length===0?sv:e.length===1?e[0]:function(n){return e.reduce(function(r,a){return a(r)},n)}}var kt=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var a=this,i=Rx(t)?t:new ff(t,n,r);return Is(function(){var o=a,s=o.operator,l=o.source;i.add(s?s.call(i,l):l?a._subscribe(i):a._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=lv(n),new n(function(a,i){var o=new ff({next:function(s){try{t(s)}catch(l){i(l),o.unsubscribe()}},error:i,complete:a});r.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[df]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Px(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=lv(t),new t(function(r,a){var i;n.subscribe(function(o){return i=o},function(o){return a(o)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function lv(e){var t;return(t=e!=null?e:av.Promise)!==null&&t!==void 0?t:Promise}function Nx(e){return e&&ye(e.next)&&ye(e.error)&&ye(e.complete)}function Rx(e){return e&&e instanceof uf||Nx(e)&&nv(e)}function Ix(e){return ye(e==null?void 0:e.lift)}function xa(e){return function(t){if(Ix(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function ka(e,t,n,r,a){return new Ax(e,t,n,r,a)}var Ax=function(e){Zn(t,e);function t(n,r,a,i,o,s){var l=e.call(this,n)||this;return l.onFinalize=o,l.shouldUnsubscribe=s,l._next=r?function(u){try{r(u)}catch(c){n.error(c)}}:e.prototype._next,l._error=i?function(u){try{i(u)}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=a?function(){try{a()}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(uf),Mx=ev(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),uv=function(e){Zn(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new cv(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Mx},t.prototype.next=function(n){var r=this;Is(function(){var a,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=Tr(r.currentObservers),s=o.next();!s.done;s=o.next()){var l=s.value;l.next(n)}}catch(u){a={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(a)throw a.error}}}})},t.prototype.error=function(n){var r=this;Is(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var a=r.observers;a.length;)a.shift().error(n)}})},t.prototype.complete=function(){var n=this;Is(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,a=this,i=a.hasError,o=a.isStopped,s=a.observers;return i||o?tv:(this.currentObservers=null,s.push(n),new ba(function(){r.currentObservers=null,Ri(s,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,a=r.hasError,i=r.thrownError,o=r.isStopped;a?n.error(i):o&&n.complete()},t.prototype.asObservable=function(){var n=new kt;return n.source=this,n},t.create=function(n,r){return new cv(n,r)},t}(kt),cv=function(e){Zn(t,e);function t(n,r){var a=e.call(this)||this;return a.destination=n,a.source=r,a}return t.prototype.next=function(n){var r,a;(a=(r=this.destination)===null||r===void 0?void 0:r.next)===null||a===void 0||a.call(r,n)},t.prototype.error=function(n){var r,a;(a=(r=this.destination)===null||r===void 0?void 0:r.error)===null||a===void 0||a.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,a;return(a=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&a!==void 0?a:tv},t}(uv),fv={now:function(){return(fv.delegate||Date).now()},delegate:void 0},Dx=function(e){Zn(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return this},t}(ba),Ms={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=Ms.delegate;return a!=null&&a.setInterval?a.setInterval.apply(a,Pr([e,t],qn(n))):setInterval.apply(void 0,Pr([e,t],qn(n)))},clearInterval:function(e){var t=Ms.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},Lx=function(e){Zn(t,e);function t(n,r){var a=e.call(this,n,r)||this;return a.scheduler=n,a.work=r,a.pending=!1,a}return t.prototype.schedule=function(n,r){var a;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=(a=this.id)!==null&&a!==void 0?a:this.requestAsyncId(o,this.id,r),this},t.prototype.requestAsyncId=function(n,r,a){return a===void 0&&(a=0),Ms.setInterval(n.flush.bind(n,this),a)},t.prototype.recycleAsyncId=function(n,r,a){if(a===void 0&&(a=0),a!=null&&this.delay===a&&this.pending===!1)return r;r!=null&&Ms.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(n,r);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var a=!1,i;try{this.work(n)}catch(o){a=!0,i=o||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,a=n.scheduler,i=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ri(i,this),r!=null&&(this.id=this.recycleAsyncId(a,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Dx),dv=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=fv.now,e}(),Fx=function(e){Zn(t,e);function t(n,r){r===void 0&&(r=dv.now);var a=e.call(this,n,r)||this;return a.actions=[],a._active=!1,a}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var a;this._active=!0;do if(a=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,a){for(;n=r.shift();)n.unsubscribe();throw a}},t}(dv),$x=new Fx(Lx),jx=new kt(function(e){return e.complete()});function zx(e){return e&&ye(e.schedule)}function pv(e){return e[e.length-1]}function hv(e){return zx(pv(e))?e.pop():void 0}function Ux(e,t){return typeof pv(e)=="number"?e.pop():t}var pf=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function mv(e){return ye(e==null?void 0:e.then)}function vv(e){return ye(e[df])}function yv(e){return Symbol.asyncIterator&&ye(e==null?void 0:e[Symbol.asyncIterator])}function gv(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Wx(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var wv=Wx();function bv(e){return ye(e==null?void 0:e[wv])}function xv(e){return Sx(this,arguments,function(){var n,r,a,i;return Jm(this,function(o){switch(o.label){case 0:n=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,wa(n.read())];case 3:return r=o.sent(),a=r.value,i=r.done,i?[4,wa(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,wa(a)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function kv(e){return ye(e==null?void 0:e.getReader)}function Nr(e){if(e instanceof kt)return e;if(e!=null){if(vv(e))return Qx(e);if(pf(e))return Hx(e);if(mv(e))return Vx(e);if(yv(e))return Sv(e);if(bv(e))return Bx(e);if(kv(e))return Yx(e)}throw gv(e)}function Qx(e){return new kt(function(t){var n=e[df]();if(ye(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Hx(e){return new kt(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Vx(e){return new kt(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,iv)})}function Bx(e){return new kt(function(t){var n,r;try{for(var a=Tr(e),i=a.next();!i.done;i=a.next()){var o=i.value;if(t.next(o),t.closed)return}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}t.complete()})}function Sv(e){return new kt(function(t){Zx(e,t).catch(function(n){return t.error(n)})})}function Yx(e){return Sv(xv(e))}function Zx(e,t){var n,r,a,i;return kx(this,void 0,void 0,function(){var o,s;return Jm(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=_x(e),l.label=1;case 1:return[4,n.next()];case 2:if(r=l.sent(),!!r.done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=l.sent(),a={error:s},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Jt(e,t,n,r,a){r===void 0&&(r=0),a===void 0&&(a=!1);var i=t.schedule(function(){n(),a?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!a)return i}function _v(e,t){return t===void 0&&(t=0),xa(function(n,r){n.subscribe(ka(r,function(a){return Jt(r,e,function(){return r.next(a)},t)},function(){return Jt(r,e,function(){return r.complete()},t)},function(a){return Jt(r,e,function(){return r.error(a)},t)}))})}function Cv(e,t){return t===void 0&&(t=0),xa(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function qx(e,t){return Nr(e).pipe(Cv(t),_v(t))}function Kx(e,t){return Nr(e).pipe(Cv(t),_v(t))}function Gx(e,t){return new kt(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Xx(e,t){return new kt(function(n){var r;return Jt(n,t,function(){r=e[wv](),Jt(n,t,function(){var a,i,o;try{a=r.next(),i=a.value,o=a.done}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),function(){return ye(r==null?void 0:r.return)&&r.return()}})}function Ev(e,t){if(!e)throw new Error("Iterable cannot be null");return new kt(function(n){Jt(n,t,function(){var r=e[Symbol.asyncIterator]();Jt(n,t,function(){r.next().then(function(a){a.done?n.complete():n.next(a.value)})},0,!0)})})}function Jx(e,t){return Ev(xv(e),t)}function e2(e,t){if(e!=null){if(vv(e))return qx(e,t);if(pf(e))return Gx(e,t);if(mv(e))return Kx(e,t);if(yv(e))return Ev(e,t);if(bv(e))return Xx(e,t);if(kv(e))return Jx(e,t)}throw gv(e)}function t2(e,t){return t?e2(e,t):Nr(e)}function Ii(e,t){return xa(function(n,r){var a=0;n.subscribe(ka(r,function(i){r.next(e.call(t,i,a++))}))})}var n2=Array.isArray;function r2(e,t){return n2(t)?e.apply(void 0,Pr([],qn(t))):e(t)}function a2(e){return Ii(function(t){return r2(e,t)})}function i2(e,t,n,r,a,i,o,s){var l=[],u=0,c=0,d=!1,f=function(){d&&!l.length&&!u&&t.complete()},m=function(g){return u<r?v(g):l.push(g)},v=function(g){i&&t.next(g),u++;var b=!1;Nr(n(g,c++)).subscribe(ka(t,function(h){a==null||a(h),i?m(h):t.next(h)},function(){b=!0},void 0,function(){if(b)try{u--;for(var h=function(){var p=l.shift();o?Jt(t,o,function(){return v(p)}):v(p)};l.length&&u<r;)h();f()}catch(p){t.error(p)}}))};return e.subscribe(ka(t,m,function(){d=!0,f()})),function(){s==null||s()}}function hf(e,t,n){return n===void 0&&(n=1/0),ye(t)?hf(function(r,a){return Ii(function(i,o){return t(r,i,a,o)})(Nr(e(r,a)))},n):(typeof t=="number"&&(n=t),xa(function(r,a){return i2(r,a,e,n)}))}function o2(e){return e===void 0&&(e=1/0),hf(sv,e)}var s2=["addListener","removeListener"],l2=["addEventListener","removeEventListener"],u2=["on","off"];function Ds(e,t,n,r){if(ye(n)&&(r=n,n=void 0),r)return Ds(e,t,n).pipe(a2(r));var a=qn(d2(e)?l2.map(function(s){return function(l){return e[s](t,l,n)}}):c2(e)?s2.map(Ov(e,t)):f2(e)?u2.map(Ov(e,t)):[],2),i=a[0],o=a[1];if(!i&&pf(e))return hf(function(s){return Ds(s,t,n)})(Nr(e));if(!i)throw new TypeError("Invalid event target");return new kt(function(s){var l=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return s.next(1<u.length?u:u[0])};return i(l),function(){return o(l)}})}function Ov(e,t){return function(n){return function(r){return e[n](t,r)}}}function c2(e){return ye(e.addListener)&&ye(e.removeListener)}function f2(e){return ye(e.on)&&ye(e.off)}function d2(e){return ye(e.addEventListener)&&ye(e.removeEventListener)}function p2(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=hv(e),r=Ux(e,1/0),a=e;return a.length?a.length===1?Nr(a[0]):o2(r)(t2(a,n)):jx}function h2(e,t){return xa(function(n,r){var a=0;n.subscribe(ka(r,function(i){return e.call(t,i,a++)&&r.next(i)}))})}function m2(e){for(var t,n,r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];var i=(t=hv(r))!==null&&t!==void 0?t:$x,o=(n=r[0])!==null&&n!==void 0?n:null,s=r[1]||1/0;return xa(function(l,u){var c=[],d=!1,f=function(g){var b=g.buffer,h=g.subs;h.unsubscribe(),Ri(c,g),u.next(b),d&&m()},m=function(){if(c){var g=new ba;u.add(g);var b=[],h={buffer:b,subs:g};c.push(h),Jt(g,i,function(){return f(h)},e)}};o!==null&&o>=0?Jt(u,i,m,o,!0):d=!0,m();var v=ka(u,function(g){var b,h,p=c.slice();try{for(var y=Tr(p),x=y.next();!x.done;x=y.next()){var S=x.value,_=S.buffer;_.push(g),s<=_.length&&f(S)}}catch(C){b={error:C}}finally{try{x&&!x.done&&(h=y.return)&&h.call(y)}finally{if(b)throw b.error}}},function(){for(;c!=null&&c.length;)u.next(c.shift().buffer);v==null||v.unsubscribe(),u.complete(),u.unsubscribe()},void 0,function(){return c=null});l.subscribe(v)})}const We=e=>It(e,`${nf}date-range-`);function v2({date:e,startDate:t,endDate:n,onChange:r,onHover:a}){const i=t?Ps(e,t):!1;let o=t&&n?e>t&&e<n:!1,s=n?Ps(e,n):!1,l=e<new Date;const u="after:a1-absolute after:a1-bg-primary after:a1-top-0 after:a1-bottom-0 after:a1-left-0 after:a1-right-0 after:a1-rounded-full",d=`a1-relative ${n?"before:a1-absolute before:a1-left-1/2 before:a1-right-0 before:a1-top-0 before:a1-bottom-0 before:a1-bg-gray-200":""} ${u}`,f="a1-rounded-none",v=`a1-relative ${u} before:a1-absolute before:a1-left-0 before:a1-right-1/2 before:a1-top-0 before:a1-bottom-0 before:a1-bg-gray-200`,g=i||s?"a1-text-white":o?"a1-bg-gray-200":"a1-text-gray-700",b=i?d:o?f:s?v:"",h=l?"a1-opacity-50 a1-cursor-not-allowed":"a1-relative hover:after:a1-z-10 hover:after:a1-left-0 hover:after:a1-right-0 hover:after:a1-absolute hover:after:a1-w-full hover:after:a1-h-full hover:after:a1-rounded-full hover:after:a1-ring-2 hover:before:a1-ring-primary";return $("div",E(w({},We("date-wrapper")),{className:`a1-w-10 a1-h-10 a1-flex a1-items-center a1-justify-center a1-cursor-pointer ${g} ${b} ${h}`,onClick:()=>{l||r(new Date(e))},onMouseOver:()=>{l||a(new Date(e))},children:$("span",E(w({},We("date")),{className:"a1-relative a1-z-20",children:e.getDate()}))}))}function y2({initialDate:e,startDate:t,endDate:n,onChange:r,onReset:a}){const[i,o]=k.useState(lb(e)),s=yx(i,"MMMM yyyy"),l=ab(i),[u,c]=k.useState(null),[d,f]=k.useState(null);k.useEffect(()=>{f(t&&!n?u:n)},[u,t,n]);const m=["S","M","T","W","T","F","S"],v=new Array(6*7).fill(0).map((g,b)=>Ts(l,b));return ut("div",E(w({},We("calendar")),{className:"a1-w-max",children:[ut("div",{className:"a1-px-4 a1-py-2 a1-flex a1-gap-4",children:[$("button",E(w({},We("calendar-reset")),{type:"button",onClick:()=>a(),className:"a1-text-white a1-tracking-wide a1-text-sm a1-bold a1-capitalize a1-bg-primary a1-rounded-lg a1-px-2 a1-py-0.5",children:"Reset"})),ut("div",{className:"a1-flex a1-flex-grow a1-justify-between a1-items-center a1-text-gray-700",children:[$("button",E(w({},We("calendar-prev")),{type:"button",className:"a1-w-8 a1-h-8 a1-bg-white a1-rounded-full a1-flex a1-items-center a1-justify-center a1-text-gray-700 a1-p-0",onClick:()=>o(xx(i,{months:1})),children:$("svg",E(w({},We("calendar-prev-svg")),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:$("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})}))})),$("div",E(w({},We("calendar-current-month")),{className:"mx-2",children:s})),$("button",E(w({},We("calendar-next")),{type:"button",className:"a1-w-8 a1-h-8 a1-bg-white a1-rounded-full a1-flex a1-items-center a1-justify-center a1-text-gray-700 a1-p-0",onClick:()=>o(tb(i,{months:1})),children:$("svg",E(w({},We("calendar-next-svg")),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:$("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})}))}))]})]}),$("div",E(w({},We("calendar-weekday-wrapper")),{className:"a1-grid a1-grid-cols-7",children:m.map((g,b)=>k.createElement("div",E(w({},We("calendar-weekday")),{key:`${g}-${b}`,className:"a1-w-10 a1-h-10 a1-rounded-full a1-flex a1-items-center a1-justify-center"}),g))})),$("div",E(w({},We("calendar-date-grid")),{className:"a1-grid a1-grid-cols-7 a1-grid-rows-6",children:v.map(g=>$(v2,{date:g,startDate:t,endDate:d,onChange:r,onHover:()=>c(g)},g.toISOString()))}))]}))}function g2({onChange:e,className:t,primaryColor:n,secondaryColor:r,startDateLabel:a="Start Date",endDateLabel:i="End Date"}){const[o,s]=k.useState(null),[l,u]=k.useState(null),[c,d]=k.useState(!1),[f,m]=k.useState(new Date),v=k.useRef(null),[g,b]=k.useState(new uv),h=O=>{const N=O.getTime()<((o==null?void 0:o.getTime())||0);o?!l&&N?s(O):l?o&&l&&(Ps(O,o)&&Ps(O,l)?(s(O),u(null)):Xm(O,l)&&Xm(O,Ts(o,3))?s(O):u(O)):u(O):s(O)},p=()=>{s(null),u(null)};k.useEffect(()=>{let O=null;if(v!=null&&v.current){const N=Ds(document,"click"),R=Ds(v.current,"click");O=p2(N.pipe(Ii(()=>!1)),g.pipe(Ii(()=>!0)),R.pipe(Ii(()=>!0))).pipe(m2(50),h2(F=>F.length>0)).subscribe(F=>{let B=F.some(ee=>ee===!0);d(B)})}return()=>{O==null||O.unsubscribe()}},[v]),k.useEffect(()=>{e(o,l)},[o,l]);const y="a1-bg-white a1-border a1-border-gray-300 a1-rounded-lg a1-shadow-md",x="a1-absolute a1-left-2 a1-right-2 a1-top-1/2 md:a1-top-2 md:a1-bottom-2 md:a1-left-1/2 a1-rounded-lg a1-h-[2px] md:a1-h-[initial] md:a1-w-[2px] a1-bg-gray-200",_=`a1-relative a1-h-full a1-flex a1-flex-col md:a1-flex-row md:a1-items-center a1-gap-4 a1-p-3 a1-rounded-lg a1-bg-white ${c?"a1-ring-2 a1-ring-primary":"a1-ring-2 a1-ring-gray-200"}`;let C={};return n&&(C["--color-primary"]=n),r&&(C["--color-secondary"]=r),$("div",E(w({},We("container")),{id:"A1-DateRangePicker",className:t,style:C,children:ut("div",{ref:v,className:_,children:[ut("div",{className:"a1-flex a1-grow a1-gap-2",children:[$("span",{children:$("svg",E(w({},We("icon")),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:$("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5m-9-6h.008v.008H12v-.008zM12 15h.008v.008H12V15zm0 2.25h.008v.008H12v-.008zM9.75 15h.008v.008H9.75V15zm0 2.25h.008v.008H9.75v-.008zM7.5 15h.008v.008H7.5V15zm0 2.25h.008v.008H7.5v-.008zm6.75-4.5h.008v.008h-.008v-.008zm0 2.25h.008v.008h-.008V15zm0 2.25h.008v.008h-.008v-.008zm2.25-4.5h.008v.008H16.5v-.008zm0 2.25h.008v.008H16.5V15z"})}))}),$("input",E(w({},We("start-date-input")),{type:"text",name:"start-date",value:(o==null?void 0:o.toLocaleDateString())||"",placeholder:a,autoComplete:"off",className:"a1-all-initial focus:a1-outline-none disabled:a1-bg-white",readOnly:!0}))]}),$("div",E(w({},We("vertical-line-separator")),{className:x})),$("div",{className:"a1-grow",children:$("input",E(w({},We("end-date-input")),{type:"text",name:"end-date",value:(l==null?void 0:l.toLocaleDateString())||"",placeholder:i,autoComplete:"off",className:"focus:a1-outline-none disabled:a1-bg-white",readOnly:!0}))}),$(Um,{show:c,className:"a1-absolute a1-z-10 a1-top-full a1-left-1/2 a1--translate-x-1/2",enter:"a1-transition a1-duration-100 a1-ease-out",enterFrom:"a1-transform a1-scale-95 a1-opacity-0",enterTo:"a1-transform a1-scale-100 a1-opacity-100",leave:"a1-transition a1-duration-75 a1-ease-out",leaveFrom:"a1-transform a1-scale-100 a1-opacity-100",leaveTo:"a1-transform a1-scale-95 a1-opacity-0",children:$("div",E(w({},We("calendar-container")),{id:"Calendar",className:`a1-mt-2 ${y}`,onClick:O=>g.next(!0),children:$(y2,{initialDate:f,startDate:o,endDate:l,onChange:h,onReset:p},f.toISOString())}))})]})}))}var Tv={exports:{}},w2="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",b2=w2,x2=b2;function Pv(){}function Nv(){}Nv.resetWarningCache=Pv;var k2=function(){function e(r,a,i,o,s,l){if(l!==x2){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return 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:Nv,resetWarningCache:Pv};return n.PropTypes=n,n};Tv.exports=k2();var S2=Tv.exports;const U=Ae(S2);function Ai(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,af(e,t)}var Mi=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var a=this,i=r||function(){};return this.listeners.push(i),this.onSubscribe(),function(){a.listeners=a.listeners.filter(function(o){return o!==i}),a.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function ce(){return ce=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},ce.apply(this,arguments)}var Ls=typeof window=="undefined";function et(){}function _2(e,t){return typeof e=="function"?e(t):e}function mf(e){return typeof e=="number"&&e>=0&&e!==1/0}function Fs(e){return Array.isArray(e)?e:[e]}function Rv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function $s(e,t,n){return Us(e)?typeof t=="function"?ce({},n,{queryKey:e,queryFn:t}):ce({},t,{queryKey:e}):e}function Kn(e,t,n){return Us(e)?[ce({},t,{queryKey:e}),n]:[e||{},t]}function C2(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e!=null?e:!t;return n?"active":"inactive"}function Iv(e,t){var n=e.active,r=e.exact,a=e.fetching,i=e.inactive,o=e.predicate,s=e.queryKey,l=e.stale;if(Us(s)){if(r){if(t.queryHash!==vf(s,t.options))return!1}else if(!js(t.queryKey,s))return!1}var u=C2(n,i);if(u==="none")return!1;if(u!=="all"){var c=t.isActive();if(u==="active"&&!c||u==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof a=="boolean"&&t.isFetching()!==a||o&&!o(t))}function Av(e,t){var n=e.exact,r=e.fetching,a=e.predicate,i=e.mutationKey;if(Us(i)){if(!t.options.mutationKey)return!1;if(n){if(Rr(t.options.mutationKey)!==Rr(i))return!1}else if(!js(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||a&&!a(t))}function vf(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||Rr;return n(e)}function Rr(e){var t=Fs(e);return E2(t)}function E2(e){return JSON.stringify(e,function(t,n){return yf(n)?Object.keys(n).sort().reduce(function(r,a){return r[a]=n[a],r},{}):n})}function js(e,t){return Mv(Fs(e),Fs(t))}function Mv(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!Mv(e[n],t[n])}):!1}function zs(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||yf(e)&&yf(t)){for(var r=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),i=a.length,o=n?[]:{},s=0,l=0;l<i;l++){var u=n?l:a[l];o[u]=zs(e[u],t[u]),o[u]===e[u]&&s++}return r===i&&s===r?e:o}return t}function O2(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function yf(e){if(!Dv(e))return!1;var t=e.constructor;if(typeof t=="undefined")return!0;var n=t.prototype;return!(!Dv(n)||!n.hasOwnProperty("isPrototypeOf"))}function Dv(e){return Object.prototype.toString.call(e)==="[object Object]"}function Us(e){return typeof e=="string"||Array.isArray(e)}function T2(e){return new Promise(function(t){setTimeout(t,e)})}function Lv(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function Fv(){if(typeof AbortController=="function")return new AbortController}var P2=function(e){Ai(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var i;if(!Ls&&((i=window)!=null&&i.addEventListener)){var o=function(){return a()};return window.addEventListener("visibilitychange",o,!1),window.addEventListener("focus",o,!1),function(){window.removeEventListener("visibilitychange",o),window.removeEventListener("focus",o)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var i,o=this;this.setup=a,(i=this.cleanup)==null||i.call(this),this.cleanup=a(function(s){typeof s=="boolean"?o.setFocused(s):o.onFocus()})},n.setFocused=function(a){this.focused=a,a&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(a){a()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(Mi),Di=new P2,N2=function(e){Ai(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var i;if(!Ls&&((i=window)!=null&&i.addEventListener)){var o=function(){return a()};return window.addEventListener("online",o,!1),window.addEventListener("offline",o,!1),function(){window.removeEventListener("online",o),window.removeEventListener("offline",o)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var i,o=this;this.setup=a,(i=this.cleanup)==null||i.call(this),this.cleanup=a(function(s){typeof s=="boolean"?o.setOnline(s):o.onOnline()})},n.setOnline=function(a){this.online=a,a&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(a){a()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine},t}(Mi),Ws=new N2;function R2(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Qs(e){return typeof(e==null?void 0:e.cancel)=="function"}var $v=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Hs(e){return e instanceof $v}var jv=function(t){var n=this,r=!1,a,i,o,s;this.abort=t.abort,this.cancel=function(f){return a==null?void 0:a(f)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return i==null?void 0:i()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(f,m){o=f,s=m});var l=function(m){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(m),i==null||i(),o(m))},u=function(m){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(m),i==null||i(),s(m))},c=function(){return new Promise(function(m){i=m,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){i=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},d=function f(){if(!n.isResolved){var m;try{m=t.fn()}catch(v){m=Promise.reject(v)}a=function(g){if(!n.isResolved&&(u(new $v(g)),n.abort==null||n.abort(),Qs(m)))try{m.cancel()}catch(b){}},n.isTransportCancelable=Qs(m),Promise.resolve(m).then(l).catch(function(v){var g,b;if(!n.isResolved){var h=(g=t.retry)!=null?g:3,p=(b=t.retryDelay)!=null?b:R2,y=typeof p=="function"?p(n.failureCount,v):p,x=h===!0||typeof h=="number"&&n.failureCount<h||typeof h=="function"&&h(n.failureCount,v);if(r||!x){u(v);return}n.failureCount++,t.onFail==null||t.onFail(n.failureCount,v),T2(y).then(function(){if(!Di.isFocused()||!Ws.isOnline())return c()}).then(function(){r?u(v):f()})}})}};d()},I2=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(n){n()},this.batchNotifyFn=function(n){n()}}var t=e.prototype;return t.batch=function(r){var a;this.transactions++;try{a=r()}finally{this.transactions--,this.transactions||this.flush()}return a},t.schedule=function(r){var a=this;this.transactions?this.queue.push(r):Lv(function(){a.notifyFn(r)})},t.batchCalls=function(r){var a=this;return function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];a.schedule(function(){r.apply(void 0,o)})}},t.flush=function(){var r=this,a=this.queue;this.queue=[],a.length&&Lv(function(){r.batchNotifyFn(function(){a.forEach(function(i){r.notifyFn(i)})})})},t.setNotifyFunction=function(r){this.notifyFn=r},t.setBatchNotifyFunction=function(r){this.batchNotifyFn=r},e}(),Ne=new I2,zv=console;function Vs(){return zv}function A2(e){zv=e}var M2=function(){function e(n){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.cache=n.cache,this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.initialState=n.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=n.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(r){var a;this.options=ce({},this.defaultOptions,r),this.meta=r==null?void 0:r.meta,this.cacheTime=Math.max(this.cacheTime||0,(a=this.options.cacheTime)!=null?a:5*60*1e3)},t.setDefaultOptions=function(r){this.defaultOptions=r},t.scheduleGc=function(){var r=this;this.clearGcTimeout(),mf(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){r.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(r,a){var i,o,s=this.state.data,l=_2(r,s);return(i=(o=this.options).isDataEqual)!=null&&i.call(o,s,l)?l=s:this.options.structuralSharing!==!1&&(l=zs(s,l)),this.dispatch({data:l,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt}),l},t.setState=function(r,a){this.dispatch({type:"setState",state:r,setStateOptions:a})},t.cancel=function(r){var a,i=this.promise;return(a=this.retryer)==null||a.cancel(r),i?i.then(et).catch(et):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(r){return r.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(r){return r.getCurrentResult().isStale})},t.isStaleByTime=function(r){return r===void 0&&(r=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Rv(this.state.dataUpdatedAt,r)},t.onFocus=function(){var r,a=this.observers.find(function(i){return i.shouldFetchOnWindowFocus()});a&&a.refetch(),(r=this.retryer)==null||r.continue()},t.onOnline=function(){var r,a=this.observers.find(function(i){return i.shouldFetchOnReconnect()});a&&a.refetch(),(r=this.retryer)==null||r.continue()},t.addObserver=function(r){this.observers.indexOf(r)===-1&&(this.observers.push(r),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:r}))},t.removeObserver=function(r){this.observers.indexOf(r)!==-1&&(this.observers=this.observers.filter(function(a){return a!==r}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:r}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(r,a){var i=this,o,s,l;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var u;return(u=this.retryer)==null||u.continueRetry(),this.promise}}if(r&&this.setOptions(r),!this.options.queryFn){var c=this.observers.find(function(p){return p.options.queryFn});c&&this.setOptions(c.options)}var d=Fs(this.queryKey),f=Fv(),m={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(m,"signal",{enumerable:!0,get:function(){if(f)return i.abortSignalConsumed=!0,f.signal}});var v=function(){return i.options.queryFn?(i.abortSignalConsumed=!1,i.options.queryFn(m)):Promise.reject("Missing queryFn")},g={fetchOptions:a,options:this.options,queryKey:d,state:this.state,fetchFn:v,meta:this.meta};if((o=this.options.behavior)!=null&&o.onFetch){var b;(b=this.options.behavior)==null||b.onFetch(g)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((s=g.fetchOptions)==null?void 0:s.meta)){var h;this.dispatch({type:"fetch",meta:(h=g.fetchOptions)==null?void 0:h.meta})}return this.retryer=new jv({fn:g.fetchFn,abort:f==null||(l=f.abort)==null?void 0:l.bind(f),onSuccess:function(y){i.setData(y),i.cache.config.onSuccess==null||i.cache.config.onSuccess(y,i),i.cacheTime===0&&i.optionalRemove()},onError:function(y){Hs(y)&&y.silent||i.dispatch({type:"error",error:y}),Hs(y)||(i.cache.config.onError==null||i.cache.config.onError(y,i),Vs().error(y)),i.cacheTime===0&&i.optionalRemove()},onFail:function(){i.dispatch({type:"failed"})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(r){var a=this;this.state=this.reducer(this.state,r),Ne.batch(function(){a.observers.forEach(function(i){i.onQueryUpdate(r)}),a.cache.notify({query:a,type:"queryUpdated",action:r})})},t.getDefaultState=function(r){var a=typeof r.initialData=="function"?r.initialData():r.initialData,i=typeof r.initialData!="undefined",o=i?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0,s=typeof a!="undefined";return{data:a,dataUpdateCount:0,dataUpdatedAt:s?o!=null?o:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:s?"success":"idle"}},t.reducer=function(r,a){var i,o;switch(a.type){case"failed":return ce({},r,{fetchFailureCount:r.fetchFailureCount+1});case"pause":return ce({},r,{isPaused:!0});case"continue":return ce({},r,{isPaused:!1});case"fetch":return ce({},r,{fetchFailureCount:0,fetchMeta:(i=a.meta)!=null?i:null,isFetching:!0,isPaused:!1},!r.dataUpdatedAt&&{error:null,status:"loading"});case"success":return ce({},r,{data:a.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(o=a.dataUpdatedAt)!=null?o:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var s=a.error;return Hs(s)&&s.revert&&this.revertState?ce({},this.revertState):ce({},r,{error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return ce({},r,{isInvalidated:!0});case"setState":return ce({},r,a.state);default:return r}},e}(),D2=function(e){Ai(t,e);function t(r){var a;return a=e.call(this)||this,a.config=r||{},a.queries=[],a.queriesMap={},a}var n=t.prototype;return n.build=function(a,i,o){var s,l=i.queryKey,u=(s=i.queryHash)!=null?s:vf(l,i),c=this.get(u);return c||(c=new M2({cache:this,queryKey:l,queryHash:u,options:a.defaultQueryOptions(i),state:o,defaultOptions:a.getQueryDefaults(l),meta:i.meta}),this.add(c)),c},n.add=function(a){this.queriesMap[a.queryHash]||(this.queriesMap[a.queryHash]=a,this.queries.push(a),this.notify({type:"queryAdded",query:a}))},n.remove=function(a){var i=this.queriesMap[a.queryHash];i&&(a.destroy(),this.queries=this.queries.filter(function(o){return o!==a}),i===a&&delete this.queriesMap[a.queryHash],this.notify({type:"queryRemoved",query:a}))},n.clear=function(){var a=this;Ne.batch(function(){a.queries.forEach(function(i){a.remove(i)})})},n.get=function(a){return this.queriesMap[a]},n.getAll=function(){return this.queries},n.find=function(a,i){var o=Kn(a,i),s=o[0];return typeof s.exact=="undefined"&&(s.exact=!0),this.queries.find(function(l){return Iv(s,l)})},n.findAll=function(a,i){var o=Kn(a,i),s=o[0];return Object.keys(s).length>0?this.queries.filter(function(l){return Iv(s,l)}):this.queries},n.notify=function(a){var i=this;Ne.batch(function(){i.listeners.forEach(function(o){o(a)})})},n.onFocus=function(){var a=this;Ne.batch(function(){a.queries.forEach(function(i){i.onFocus()})})},n.onOnline=function(){var a=this;Ne.batch(function(){a.queries.forEach(function(i){i.onOnline()})})},t}(Mi),L2=function(){function e(n){this.options=ce({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||F2(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(a){return a!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(et).catch(et)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,a,i=this.state.status==="loading",o=Promise.resolve();return i||(this.dispatch({type:"loading",variables:this.options.variables}),o=o.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(s){s!==r.state.context&&r.dispatch({type:"loading",context:s,variables:r.state.variables})})),o.then(function(){return r.executeMutation()}).then(function(s){a=s,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(a,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(a,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(a,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:a}),a}).catch(function(s){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(s,r.state.variables,r.state.context,r),Vs().error(s),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(s,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,s,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var r=this,a;return this.retryer=new jv({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var a=this;this.state=$2(this.state,r),Ne.batch(function(){a.observers.forEach(function(i){i.onMutationUpdate(r)}),a.mutationCache.notify(a)})},e}();function F2(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function $2(e,t){switch(t.type){case"failed":return ce({},e,{failureCount:e.failureCount+1});case"pause":return ce({},e,{isPaused:!0});case"continue":return ce({},e,{isPaused:!1});case"loading":return ce({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return ce({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return ce({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return ce({},e,t.state);default:return e}}var j2=function(e){Ai(t,e);function t(r){var a;return a=e.call(this)||this,a.config=r||{},a.mutations=[],a.mutationId=0,a}var n=t.prototype;return n.build=function(a,i,o){var s=new L2({mutationCache:this,mutationId:++this.mutationId,options:a.defaultMutationOptions(i),state:o,defaultOptions:i.mutationKey?a.getMutationDefaults(i.mutationKey):void 0,meta:i.meta});return this.add(s),s},n.add=function(a){this.mutations.push(a),this.notify(a)},n.remove=function(a){this.mutations=this.mutations.filter(function(i){return i!==a}),a.cancel(),this.notify(a)},n.clear=function(){var a=this;Ne.batch(function(){a.mutations.forEach(function(i){a.remove(i)})})},n.getAll=function(){return this.mutations},n.find=function(a){return typeof a.exact=="undefined"&&(a.exact=!0),this.mutations.find(function(i){return Av(a,i)})},n.findAll=function(a){return this.mutations.filter(function(i){return Av(a,i)})},n.notify=function(a){var i=this;Ne.batch(function(){i.listeners.forEach(function(o){o(a)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var a=this.mutations.filter(function(i){return i.state.isPaused});return Ne.batch(function(){return a.reduce(function(i,o){return i.then(function(){return o.continue().catch(et)})},Promise.resolve())})},t}(Mi);function z2(){return{onFetch:function(t){t.fetchFn=function(){var n,r,a,i,o,s,l=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,u=(a=t.fetchOptions)==null||(i=a.meta)==null?void 0:i.fetchMore,c=u==null?void 0:u.pageParam,d=(u==null?void 0:u.direction)==="forward",f=(u==null?void 0:u.direction)==="backward",m=((o=t.state.data)==null?void 0:o.pages)||[],v=((s=t.state.data)==null?void 0:s.pageParams)||[],g=Fv(),b=g==null?void 0:g.signal,h=v,p=!1,y=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},x=function(ee,J,te,pe){return h=pe?[J].concat(h):[].concat(h,[J]),pe?[te].concat(ee):[].concat(ee,[te])},S=function(ee,J,te,pe){if(p)return Promise.reject("Cancelled");if(typeof te=="undefined"&&!J&&ee.length)return Promise.resolve(ee);var I={queryKey:t.queryKey,signal:b,pageParam:te,meta:t.meta},j=y(I),Q=Promise.resolve(j).then(function(ne){return x(ee,te,ne,pe)});if(Qs(j)){var ue=Q;ue.cancel=j.cancel}return Q},_;if(!m.length)_=S([]);else if(d){var C=typeof c!="undefined",O=C?c:Uv(t.options,m);_=S(m,C,O)}else if(f){var N=typeof c!="undefined",R=N?c:U2(t.options,m);_=S(m,N,R,!0)}else(function(){h=[];var B=typeof t.options.getNextPageParam=="undefined",ee=l&&m[0]?l(m[0],0,m):!0;_=ee?S([],B,v[0]):Promise.resolve(x([],v[0],m[0]));for(var J=function(I){_=_.then(function(j){var Q=l&&m[I]?l(m[I],I,m):!0;if(Q){var ue=B?v[I]:Uv(t.options,j);return S(j,B,ue)}return Promise.resolve(x(j,v[I],m[I]))})},te=1;te<m.length;te++)J(te)})();var Z=_.then(function(B){return{pages:B,pageParams:h}}),F=Z;return F.cancel=function(){p=!0,g==null||g.abort(),Qs(_)&&_.cancel()},Z}}}}function Uv(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function U2(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var Wv=function(){function e(n){n===void 0&&(n={}),this.queryCache=n.queryCache||new D2,this.mutationCache=n.mutationCache||new j2,this.defaultOptions=n.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var r=this;this.unsubscribeFocus=Di.subscribe(function(){Di.isFocused()&&Ws.isOnline()&&(r.mutationCache.onFocus(),r.queryCache.onFocus())}),this.unsubscribeOnline=Ws.subscribe(function(){Di.isFocused()&&Ws.isOnline()&&(r.mutationCache.onOnline(),r.queryCache.onOnline())})},t.unmount=function(){var r,a;(r=this.unsubscribeFocus)==null||r.call(this),(a=this.unsubscribeOnline)==null||a.call(this)},t.isFetching=function(r,a){var i=Kn(r,a),o=i[0];return o.fetching=!0,this.queryCache.findAll(o).length},t.isMutating=function(r){return this.mutationCache.findAll(ce({},r,{fetching:!0})).length},t.getQueryData=function(r,a){var i;return(i=this.queryCache.find(r,a))==null?void 0:i.state.data},t.getQueriesData=function(r){return this.getQueryCache().findAll(r).map(function(a){var i=a.queryKey,o=a.state,s=o.data;return[i,s]})},t.setQueryData=function(r,a,i){var o=$s(r),s=this.defaultQueryOptions(o);return this.queryCache.build(this,s).setData(a,i)},t.setQueriesData=function(r,a,i){var o=this;return Ne.batch(function(){return o.getQueryCache().findAll(r).map(function(s){var l=s.queryKey;return[l,o.setQueryData(l,a,i)]})})},t.getQueryState=function(r,a){var i;return(i=this.queryCache.find(r,a))==null?void 0:i.state},t.removeQueries=function(r,a){var i=Kn(r,a),o=i[0],s=this.queryCache;Ne.batch(function(){s.findAll(o).forEach(function(l){s.remove(l)})})},t.resetQueries=function(r,a,i){var o=this,s=Kn(r,a,i),l=s[0],u=s[1],c=this.queryCache,d=ce({},l,{active:!0});return Ne.batch(function(){return c.findAll(l).forEach(function(f){f.reset()}),o.refetchQueries(d,u)})},t.cancelQueries=function(r,a,i){var o=this,s=Kn(r,a,i),l=s[0],u=s[1],c=u===void 0?{}:u;typeof c.revert=="undefined"&&(c.revert=!0);var d=Ne.batch(function(){return o.queryCache.findAll(l).map(function(f){return f.cancel(c)})});return Promise.all(d).then(et).catch(et)},t.invalidateQueries=function(r,a,i){var o,s,l,u=this,c=Kn(r,a,i),d=c[0],f=c[1],m=ce({},d,{active:(o=(s=d.refetchActive)!=null?s:d.active)!=null?o:!0,inactive:(l=d.refetchInactive)!=null?l:!1});return Ne.batch(function(){return u.queryCache.findAll(d).forEach(function(v){v.invalidate()}),u.refetchQueries(m,f)})},t.refetchQueries=function(r,a,i){var o=this,s=Kn(r,a,i),l=s[0],u=s[1],c=Ne.batch(function(){return o.queryCache.findAll(l).map(function(f){return f.fetch(void 0,ce({},u,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),d=Promise.all(c).then(et);return u!=null&&u.throwOnError||(d=d.catch(et)),d},t.fetchQuery=function(r,a,i){var o=$s(r,a,i),s=this.defaultQueryOptions(o);typeof s.retry=="undefined"&&(s.retry=!1);var l=this.queryCache.build(this,s);return l.isStaleByTime(s.staleTime)?l.fetch(s):Promise.resolve(l.state.data)},t.prefetchQuery=function(r,a,i){return this.fetchQuery(r,a,i).then(et).catch(et)},t.fetchInfiniteQuery=function(r,a,i){var o=$s(r,a,i);return o.behavior=z2(),this.fetchQuery(o)},t.prefetchInfiniteQuery=function(r,a,i){return this.fetchInfiniteQuery(r,a,i).then(et).catch(et)},t.cancelMutations=function(){var r=this,a=Ne.batch(function(){return r.mutationCache.getAll().map(function(i){return i.cancel()})});return Promise.all(a).then(et).catch(et)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,a){var i=this.queryDefaults.find(function(o){return Rr(r)===Rr(o.queryKey)});i?i.defaultOptions=a:this.queryDefaults.push({queryKey:r,defaultOptions:a})},t.getQueryDefaults=function(r){var a;return r?(a=this.queryDefaults.find(function(i){return js(r,i.queryKey)}))==null?void 0:a.defaultOptions:void 0},t.setMutationDefaults=function(r,a){var i=this.mutationDefaults.find(function(o){return Rr(r)===Rr(o.mutationKey)});i?i.defaultOptions=a:this.mutationDefaults.push({mutationKey:r,defaultOptions:a})},t.getMutationDefaults=function(r){var a;return r?(a=this.mutationDefaults.find(function(i){return js(r,i.mutationKey)}))==null?void 0:a.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var a=ce({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!a.queryHash&&a.queryKey&&(a.queryHash=vf(a.queryKey,a)),a},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:ce({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),W2=function(e){Ai(t,e);function t(r,a){var i;return i=e.call(this)||this,i.client=r,i.options=a,i.trackedProps=[],i.selectError=null,i.bindMethods(),i.setOptions(a),i}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),Qv(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return gf(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return gf(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(a,i){var o=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(a),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();var l=this.hasListeners();l&&Hv(this.currentQuery,s,this.options,o)&&this.executeFetch(),this.updateResult(i),l&&(this.currentQuery!==s||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();var u=this.computeRefetchInterval();l&&(this.currentQuery!==s||this.options.enabled!==o.enabled||u!==this.currentRefetchInterval)&&this.updateRefetchInterval(u)},n.getOptimisticResult=function(a){var i=this.client.defaultQueryObserverOptions(a),o=this.client.getQueryCache().build(this.client,i);return this.createResult(o,i)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(a,i){var o=this,s={},l=function(c){o.trackedProps.includes(c)||o.trackedProps.push(c)};return Object.keys(a).forEach(function(u){Object.defineProperty(s,u,{configurable:!1,enumerable:!0,get:function(){return l(u),a[u]}})}),(i.useErrorBoundary||i.suspense)&&l("error"),s},n.getNextResult=function(a){var i=this;return new Promise(function(o,s){var l=i.subscribe(function(u){u.isFetching||(l(),u.isError&&(a!=null&&a.throwOnError)?s(u.error):o(u))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(a){return this.fetch(ce({},a,{meta:{refetchPage:a==null?void 0:a.refetchPage}}))},n.fetchOptimistic=function(a){var i=this,o=this.client.defaultQueryObserverOptions(a),s=this.client.getQueryCache().build(this.client,o);return s.fetch().then(function(){return i.createResult(s,o)})},n.fetch=function(a){var i=this;return this.executeFetch(a).then(function(){return i.updateResult(),i.currentResult})},n.executeFetch=function(a){this.updateQuery();var i=this.currentQuery.fetch(this.options,a);return a!=null&&a.throwOnError||(i=i.catch(et)),i},n.updateStaleTimeout=function(){var a=this;if(this.clearStaleTimeout(),!(Ls||this.currentResult.isStale||!mf(this.options.staleTime))){var i=Rv(this.currentResult.dataUpdatedAt,this.options.staleTime),o=i+1;this.staleTimeoutId=setTimeout(function(){a.currentResult.isStale||a.updateResult()},o)}},n.computeRefetchInterval=function(){var a;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(a=this.options.refetchInterval)!=null?a:!1},n.updateRefetchInterval=function(a){var i=this;this.clearRefetchInterval(),this.currentRefetchInterval=a,!(Ls||this.options.enabled===!1||!mf(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(i.options.refetchIntervalInBackground||Di.isFocused())&&i.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(a,i){var o=this.currentQuery,s=this.options,l=this.currentResult,u=this.currentResultState,c=this.currentResultOptions,d=a!==o,f=d?a.state:this.currentQueryInitialState,m=d?this.currentResult:this.previousQueryResult,v=a.state,g=v.dataUpdatedAt,b=v.error,h=v.errorUpdatedAt,p=v.isFetching,y=v.status,x=!1,S=!1,_;if(i.optimisticResults){var C=this.hasListeners(),O=!C&&Qv(a,i),N=C&&Hv(a,o,i,s);(O||N)&&(p=!0,g||(y="loading"))}if(i.keepPreviousData&&!v.dataUpdateCount&&(m!=null&&m.isSuccess)&&y!=="error")_=m.data,g=m.dataUpdatedAt,y=m.status,x=!0;else if(i.select&&typeof v.data!="undefined")if(l&&v.data===(u==null?void 0:u.data)&&i.select===this.selectFn)_=this.selectResult;else try{this.selectFn=i.select,_=i.select(v.data),i.structuralSharing!==!1&&(_=zs(l==null?void 0:l.data,_)),this.selectResult=_,this.selectError=null}catch(F){Vs().error(F),this.selectError=F}else _=v.data;if(typeof i.placeholderData!="undefined"&&typeof _=="undefined"&&(y==="loading"||y==="idle")){var R;if(l!=null&&l.isPlaceholderData&&i.placeholderData===(c==null?void 0:c.placeholderData))R=l.data;else if(R=typeof i.placeholderData=="function"?i.placeholderData():i.placeholderData,i.select&&typeof R!="undefined")try{R=i.select(R),i.structuralSharing!==!1&&(R=zs(l==null?void 0:l.data,R)),this.selectError=null}catch(F){Vs().error(F),this.selectError=F}typeof R!="undefined"&&(y="success",_=R,S=!0)}this.selectError&&(b=this.selectError,_=this.selectResult,h=Date.now(),y="error");var Z={status:y,isLoading:y==="loading",isSuccess:y==="success",isError:y==="error",isIdle:y==="idle",data:_,dataUpdatedAt:g,error:b,errorUpdatedAt:h,failureCount:v.fetchFailureCount,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>f.dataUpdateCount||v.errorUpdateCount>f.errorUpdateCount,isFetching:p,isRefetching:p&&y!=="loading",isLoadingError:y==="error"&&v.dataUpdatedAt===0,isPlaceholderData:S,isPreviousData:x,isRefetchError:y==="error"&&v.dataUpdatedAt!==0,isStale:wf(a,i),refetch:this.refetch,remove:this.remove};return Z},n.shouldNotifyListeners=function(a,i){if(!i)return!0;var o=this.options,s=o.notifyOnChangeProps,l=o.notifyOnChangePropsExclusions;if(!s&&!l||s==="tracked"&&!this.trackedProps.length)return!0;var u=s==="tracked"?this.trackedProps:s;return Object.keys(a).some(function(c){var d=c,f=a[d]!==i[d],m=u==null?void 0:u.some(function(g){return g===c}),v=l==null?void 0:l.some(function(g){return g===c});return f&&!v&&(!u||m)})},n.updateResult=function(a){var i=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!O2(this.currentResult,i)){var o={cache:!0};(a==null?void 0:a.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,i)&&(o.listeners=!0),this.notify(ce({},o,a))}},n.updateQuery=function(){var a=this.client.getQueryCache().build(this.client,this.options);if(a!==this.currentQuery){var i=this.currentQuery;this.currentQuery=a,this.currentQueryInitialState=a.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(i==null||i.removeObserver(this),a.addObserver(this))}},n.onQueryUpdate=function(a){var i={};a.type==="success"?i.onSuccess=!0:a.type==="error"&&!Hs(a.error)&&(i.onError=!0),this.updateResult(i),this.hasListeners()&&this.updateTimers()},n.notify=function(a){var i=this;Ne.batch(function(){a.onSuccess?(i.options.onSuccess==null||i.options.onSuccess(i.currentResult.data),i.options.onSettled==null||i.options.onSettled(i.currentResult.data,null)):a.onError&&(i.options.onError==null||i.options.onError(i.currentResult.error),i.options.onSettled==null||i.options.onSettled(void 0,i.currentResult.error)),a.listeners&&i.listeners.forEach(function(o){o(i.currentResult)}),a.cache&&i.client.getQueryCache().notify({query:i.currentQuery,type:"observerResultsUpdated"})})},t}(Mi);function Q2(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Qv(e,t){return Q2(e,t)||e.state.dataUpdatedAt>0&&gf(e,t,t.refetchOnMount)}function gf(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&wf(e,t)}return!1}function Hv(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&wf(e,n)}function wf(e,t){return e.isStaleByTime(t.staleTime)}var H2=$1.unstable_batchedUpdates;Ne.setBatchNotifyFunction(H2);var V2=console;A2(V2);var Vv=ie.createContext(void 0),Bv=ie.createContext(!1);function Yv(e){return e&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Vv),window.ReactQueryClientContext):Vv}var B2=function(){var t=ie.useContext(Yv(ie.useContext(Bv)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Zv=function(t){var n=t.client,r=t.contextSharing,a=r===void 0?!1:r,i=t.children;ie.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var o=Yv(a);return ie.createElement(Bv.Provider,{value:a},ie.createElement(o.Provider,{value:n},i))};function Y2(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var Z2=ie.createContext(Y2()),q2=function(){return ie.useContext(Z2)};function K2(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function G2(e,t){var n=ie.useRef(!1),r=ie.useState(0),a=r[1],i=B2(),o=q2(),s=i.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=Ne.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Ne.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Ne.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(o.isReset()||(s.retryOnMount=!1));var l=ie.useState(function(){return new t(i,s)}),u=l[0],c=u.getOptimisticResult(s);if(ie.useEffect(function(){n.current=!0,o.clearReset();var d=u.subscribe(Ne.batchCalls(function(){n.current&&a(function(f){return f+1})}));return u.updateResult(),function(){n.current=!1,d()}},[o,u]),ie.useEffect(function(){u.setOptions(s,{listeners:!1})},[s,u]),s.suspense&&c.isLoading)throw u.fetchOptimistic(s).then(function(d){var f=d.data;s.onSuccess==null||s.onSuccess(f),s.onSettled==null||s.onSettled(f,null)}).catch(function(d){o.clearReset(),s.onError==null||s.onError(d),s.onSettled==null||s.onSettled(void 0,d)});if(c.isError&&!o.isReset()&&!c.isFetching&&K2(s.suspense,s.useErrorBoundary,[c.error,u.getCurrentQuery()]))throw c.error;return s.notifyOnChangeProps==="tracked"&&(c=u.trackResult(c,s)),c}function qv(e,t,n){var r=$s(e,t,n);return G2(r,W2)}const X2=["MIA,FLL","TPA,PIE","PHX,AZA","RSW,PGD","MCO,SFB"];function J2(e){return e&&X2.find(t=>t.includes(e))||null}var le;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(s=>typeof a[a[s]]!="number"),o={};for(const s of i)o[s]=a[s];return e.objectValues(o)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},e.find=(a,i)=>{for(const o of a)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(le||(le={}));var bf;(function(e){e.mergeShapes=(t,n)=>w(w({},t),n)})(bf||(bf={}));const A=le.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Gn=e=>{switch(typeof e){case"undefined":return A.undefined;case"string":return A.string;case"number":return isNaN(e)?A.nan:A.number;case"boolean":return A.boolean;case"function":return A.function;case"bigint":return A.bigint;case"symbol":return A.symbol;case"object":return Array.isArray(e)?A.array:e===null?A.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?A.promise:typeof Map!="undefined"&&e instanceof Map?A.map:typeof Set!="undefined"&&e instanceof Set?A.set:typeof Date!="undefined"&&e instanceof Date?A.date:A.object;default:return A.unknown}},P=le.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),ek=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ut extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,l=0;for(;l<o.path.length;){const u=o.path[l];l===o.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(o))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return a(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,le.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Ut.create=e=>new Ut(e);const Li=(e,t)=>{let n;switch(e.code){case P.invalid_type:e.received===A.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case P.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,le.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:n=`Unrecognized key(s) in object: ${le.joinValues(e.keys,", ")}`;break;case P.invalid_union:n="Invalid input";break;case P.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${le.joinValues(e.options)}`;break;case P.invalid_enum_value:n=`Invalid enum value. Expected ${le.joinValues(e.options)}, received '${e.received}'`;break;case P.invalid_arguments:n="Invalid function arguments";break;case P.invalid_return_type:n="Invalid function return type";break;case P.invalid_date:n="Invalid date";break;case P.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:le.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case P.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case P.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case P.custom:n="Invalid input";break;case P.invalid_intersection_types:n="Intersection results could not be merged";break;case P.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case P.not_finite:n="Number must be finite";break;default:n=t.defaultError,le.assertNever(e)}return{message:n}};let Kv=Li;function tk(e){Kv=e}function Bs(){return Kv}const Ys=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],o=E(w({},a),{path:i});let s="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)s=u(o,{data:t,defaultError:s}).message;return E(w({},a),{path:i,message:a.message||s})},nk=[];function M(e,t){const n=Ys({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Bs(),Li].filter(r=>!!r)});e.common.issues.push(n)}class tt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return Y;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static mergeObjectAsync(t,n){return an(this,null,function*(){const r=[];for(const a of n)r.push({key:yield a.key,value:yield a.value});return tt.mergeObjectSync(t,r)})}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return Y;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),(typeof o.value!="undefined"||a.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const Y=Object.freeze({status:"aborted"}),Gv=e=>({status:"dirty",value:e}),st=e=>({status:"valid",value:e}),xf=e=>e.status==="aborted",kf=e=>e.status==="dirty",Zs=e=>e.status==="valid",qs=e=>typeof Promise!="undefined"&&e instanceof Promise;var W;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(W||(W={}));class en{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Xv=(e,t)=>{if(Zs(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Ut(e.common.issues);return this._error=n,this._error}}};function q(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(o,s)=>o.code!=="invalid_type"?{message:s.defaultError}:typeof s.data=="undefined"?{message:r!=null?r:s.defaultError}:{message:n!=null?n:s.defaultError},description:a}}class G{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Gn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Gn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new tt,ctx:{common:t.parent.common,data:t.data,parsedType:Gn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(qs(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const a={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Gn(t)},i=this._parseSync({data:t,path:a.path,parent:a});return Xv(a,i)}parseAsync(t,n){return an(this,null,function*(){const r=yield this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error})}safeParseAsync(t,n){return an(this,null,function*(){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Gn(t)},a=this._parse({data:t,path:r.path,parent:r}),i=yield qs(a)?a:Promise.resolve(a);return Xv(r,i)})}refine(t,n){const r=a=>typeof n=="string"||typeof n=="undefined"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const o=t(a),s=()=>i.addIssue(w({code:P.custom},r(a)));return typeof Promise!="undefined"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Ht({schema:this,typeName:V.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return xn.create(this,this._def)}nullable(){return Dr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Qt.create(this,this._def)}promise(){return Ea.create(this,this._def)}or(t){return zi.create([this,t],this._def)}and(t){return Ui.create(this,t,this._def)}transform(t){return new Ht(E(w({},q(this._def)),{schema:this,typeName:V.ZodEffects,effect:{type:"transform",transform:t}}))}default(t){const n=typeof t=="function"?t:()=>t;return new Bi(E(w({},q(this._def)),{innerType:this,defaultValue:n,typeName:V.ZodDefault}))}brand(){return new ey(w({typeName:V.ZodBranded,type:this},q(this._def)))}catch(t){const n=typeof t=="function"?t:()=>t;return new tl(E(w({},q(this._def)),{innerType:this,catchValue:n,typeName:V.ZodCatch}))}describe(t){const n=this.constructor;return new n(E(w({},this._def),{description:t}))}pipe(t){return Yi.create(this,t)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const rk=/^c[^\s-]{8,}$/i,ak=/^[a-z][a-z0-9]*$/,ik=/[0-9A-HJKMNP-TV-Z]{26}/,ok=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,sk=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,lk=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u"),uk=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,ck=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,fk=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function dk(e,t){return!!((t==="v4"||!t)&&uk.test(e)||(t==="v6"||!t)&&ck.test(e))}class Wt extends G{constructor(){super(...arguments),this._regex=(t,n,r)=>this.refinement(a=>t.test(a),w({validation:n,code:P.invalid_string},W.errToObj(r))),this.nonempty=t=>this.min(1,W.errToObj(t)),this.trim=()=>new Wt(E(w({},this._def),{checks:[...this._def.checks,{kind:"trim"}]})),this.toLowerCase=()=>new Wt(E(w({},this._def),{checks:[...this._def.checks,{kind:"toLowerCase"}]})),this.toUpperCase=()=>new Wt(E(w({},this._def),{checks:[...this._def.checks,{kind:"toUpperCase"}]}))}_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==A.string){const i=this._getOrReturnCtx(t);return M(i,{code:P.invalid_type,expected:A.string,received:i.parsedType}),Y}const r=new tt;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),M(a,{code:P.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),M(a,{code:P.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,s=t.data.length<i.value;(o||s)&&(a=this._getOrReturnCtx(t,a),o?M(a,{code:P.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&M(a,{code:P.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")sk.test(t.data)||(a=this._getOrReturnCtx(t,a),M(a,{validation:"email",code:P.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")lk.test(t.data)||(a=this._getOrReturnCtx(t,a),M(a,{validation:"emoji",code:P.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")ok.test(t.data)||(a=this._getOrReturnCtx(t,a),M(a,{validation:"uuid",code:P.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")rk.test(t.data)||(a=this._getOrReturnCtx(t,a),M(a,{validation:"cuid",code:P.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")ak.test(t.data)||(a=this._getOrReturnCtx(t,a),M(a,{validation:"cuid2",code:P.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")ik.test(t.data)||(a=this._getOrReturnCtx(t,a),M(a,{validation:"ulid",code:P.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch(o){a=this._getOrReturnCtx(t,a),M(a,{validation:"url",code:P.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),M(a,{validation:"regex",code:P.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),M(a,{code:P.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),M(a,{code:P.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),M(a,{code:P.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?fk(i).test(t.data)||(a=this._getOrReturnCtx(t,a),M(a,{code:P.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="ip"?dk(t.data,i.version)||(a=this._getOrReturnCtx(t,a),M(a,{validation:"ip",code:P.invalid_string,message:i.message}),r.dirty()):le.assertNever(i);return{status:r.value,value:t.data}}_addCheck(t){return new Wt(E(w({},this._def),{checks:[...this._def.checks,t]}))}email(t){return this._addCheck(w({kind:"email"},W.errToObj(t)))}url(t){return this._addCheck(w({kind:"url"},W.errToObj(t)))}emoji(t){return this._addCheck(w({kind:"emoji"},W.errToObj(t)))}uuid(t){return this._addCheck(w({kind:"uuid"},W.errToObj(t)))}cuid(t){return this._addCheck(w({kind:"cuid"},W.errToObj(t)))}cuid2(t){return this._addCheck(w({kind:"cuid2"},W.errToObj(t)))}ulid(t){return this._addCheck(w({kind:"ulid"},W.errToObj(t)))}ip(t){return this._addCheck(w({kind:"ip"},W.errToObj(t)))}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck(w({kind:"datetime",precision:typeof(t==null?void 0:t.precision)=="undefined"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1},W.errToObj(t==null?void 0:t.message)))}regex(t,n){return this._addCheck(w({kind:"regex",regex:t},W.errToObj(n)))}includes(t,n){return this._addCheck(w({kind:"includes",value:t,position:n==null?void 0:n.position},W.errToObj(n==null?void 0:n.message)))}startsWith(t,n){return this._addCheck(w({kind:"startsWith",value:t},W.errToObj(n)))}endsWith(t,n){return this._addCheck(w({kind:"endsWith",value:t},W.errToObj(n)))}min(t,n){return this._addCheck(w({kind:"min",value:t},W.errToObj(n)))}max(t,n){return this._addCheck(w({kind:"max",value:t},W.errToObj(n)))}length(t,n){return this._addCheck(w({kind:"length",value:t},W.errToObj(n)))}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Wt.create=e=>{var t;return new Wt(w({checks:[],typeName:V.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1},q(e)))};function pk(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=parseInt(e.toFixed(a).replace(".","")),o=parseInt(t.toFixed(a).replace(".",""));return i%o/Math.pow(10,a)}class Xn extends G{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==A.number){const i=this._getOrReturnCtx(t);return M(i,{code:P.invalid_type,expected:A.number,received:i.parsedType}),Y}let r;const a=new tt;for(const i of this._def.checks)i.kind==="int"?le.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{code:P.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),M(r,{code:P.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),M(r,{code:P.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?pk(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),M(r,{code:P.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),M(r,{code:P.not_finite,message:i.message}),a.dirty()):le.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,W.toString(n))}gt(t,n){return this.setLimit("min",t,!1,W.toString(n))}lte(t,n){return this.setLimit("max",t,!0,W.toString(n))}lt(t,n){return this.setLimit("max",t,!1,W.toString(n))}setLimit(t,n,r,a){return new Xn(E(w({},this._def),{checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:W.toString(a)}]}))}_addCheck(t){return new Xn(E(w({},this._def),{checks:[...this._def.checks,t]}))}int(t){return this._addCheck({kind:"int",message:W.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:W.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:W.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:W.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:W.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:W.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:W.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:W.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:W.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&le.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Xn.create=e=>new Xn(w({checks:[],typeName:V.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1},q(e)));class Jn extends G{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==A.bigint){const i=this._getOrReturnCtx(t);return M(i,{code:P.invalid_type,expected:A.bigint,received:i.parsedType}),Y}let r;const a=new tt;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),M(r,{code:P.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),M(r,{code:P.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),M(r,{code:P.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):le.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,W.toString(n))}gt(t,n){return this.setLimit("min",t,!1,W.toString(n))}lte(t,n){return this.setLimit("max",t,!0,W.toString(n))}lt(t,n){return this.setLimit("max",t,!1,W.toString(n))}setLimit(t,n,r,a){return new Jn(E(w({},this._def),{checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:W.toString(a)}]}))}_addCheck(t){return new Jn(E(w({},this._def),{checks:[...this._def.checks,t]}))}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:W.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:W.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:W.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:W.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:W.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Jn.create=e=>{var t;return new Jn(w({checks:[],typeName:V.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1},q(e)))};class Fi extends G{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==A.boolean){const r=this._getOrReturnCtx(t);return M(r,{code:P.invalid_type,expected:A.boolean,received:r.parsedType}),Y}return st(t.data)}}Fi.create=e=>new Fi(w({typeName:V.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1},q(e)));class Ir extends G{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==A.date){const i=this._getOrReturnCtx(t);return M(i,{code:P.invalid_type,expected:A.date,received:i.parsedType}),Y}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return M(i,{code:P.invalid_date}),Y}const r=new tt;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),M(a,{code:P.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),M(a,{code:P.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):le.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ir(E(w({},this._def),{checks:[...this._def.checks,t]}))}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:W.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:W.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Ir.create=e=>new Ir(w({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:V.ZodDate},q(e)));class Ks extends G{_parse(t){if(this._getType(t)!==A.symbol){const r=this._getOrReturnCtx(t);return M(r,{code:P.invalid_type,expected:A.symbol,received:r.parsedType}),Y}return st(t.data)}}Ks.create=e=>new Ks(w({typeName:V.ZodSymbol},q(e)));class $i extends G{_parse(t){if(this._getType(t)!==A.undefined){const r=this._getOrReturnCtx(t);return M(r,{code:P.invalid_type,expected:A.undefined,received:r.parsedType}),Y}return st(t.data)}}$i.create=e=>new $i(w({typeName:V.ZodUndefined},q(e)));class ji extends G{_parse(t){if(this._getType(t)!==A.null){const r=this._getOrReturnCtx(t);return M(r,{code:P.invalid_type,expected:A.null,received:r.parsedType}),Y}return st(t.data)}}ji.create=e=>new ji(w({typeName:V.ZodNull},q(e)));class Sa extends G{constructor(){super(...arguments),this._any=!0}_parse(t){return st(t.data)}}Sa.create=e=>new Sa(w({typeName:V.ZodAny},q(e)));class Ar extends G{constructor(){super(...arguments),this._unknown=!0}_parse(t){return st(t.data)}}Ar.create=e=>new Ar(w({typeName:V.ZodUnknown},q(e)));class bn extends G{_parse(t){const n=this._getOrReturnCtx(t);return M(n,{code:P.invalid_type,expected:A.never,received:n.parsedType}),Y}}bn.create=e=>new bn(w({typeName:V.ZodNever},q(e)));class Gs extends G{_parse(t){if(this._getType(t)!==A.undefined){const r=this._getOrReturnCtx(t);return M(r,{code:P.invalid_type,expected:A.void,received:r.parsedType}),Y}return st(t.data)}}Gs.create=e=>new Gs(w({typeName:V.ZodVoid},q(e)));class Qt extends G{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==A.array)return M(n,{code:P.invalid_type,expected:A.array,received:n.parsedType}),Y;if(a.exactLength!==null){const o=n.data.length>a.exactLength.value,s=n.data.length<a.exactLength.value;(o||s)&&(M(n,{code:o?P.too_big:P.too_small,minimum:s?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(M(n,{code:P.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(M(n,{code:P.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>a.type._parseAsync(new en(n,o,n.path,s)))).then(o=>tt.mergeArray(r,o));const i=[...n.data].map((o,s)=>a.type._parseSync(new en(n,o,n.path,s)));return tt.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Qt(E(w({},this._def),{minLength:{value:t,message:W.toString(n)}}))}max(t,n){return new Qt(E(w({},this._def),{maxLength:{value:t,message:W.toString(n)}}))}length(t,n){return new Qt(E(w({},this._def),{exactLength:{value:t,message:W.toString(n)}}))}nonempty(t){return this.min(1,t)}}Qt.create=(e,t)=>new Qt(w({type:e,minLength:null,maxLength:null,exactLength:null,typeName:V.ZodArray},q(t)));function _a(e){if(e instanceof Oe){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=xn.create(_a(r))}return new Oe(E(w({},e._def),{shape:()=>t}))}else return e instanceof Qt?new Qt(E(w({},e._def),{type:_a(e.element)})):e instanceof xn?xn.create(_a(e.unwrap())):e instanceof Dr?Dr.create(_a(e.unwrap())):e instanceof tn?tn.create(e.items.map(t=>_a(t))):e}class Oe extends G{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=le.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==A.object){const u=this._getOrReturnCtx(t);return M(u,{code:P.invalid_type,expected:A.object,received:u.parsedType}),Y}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof bn&&this._def.unknownKeys==="strip"))for(const u in a.data)o.includes(u)||s.push(u);const l=[];for(const u of o){const c=i[u],d=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new en(a,d,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof bn){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of s)l.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(u==="strict")s.length>0&&(M(a,{code:P.unrecognized_keys,keys:s}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of s){const d=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new en(a,d,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(()=>an(this,null,function*(){const u=[];for(const c of l){const d=yield c.key;u.push({key:d,value:yield c.value,alwaysSet:c.alwaysSet})}return u})).then(u=>tt.mergeObjectSync(r,u)):tt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return W.errToObj,new Oe(w(E(w({},this._def),{unknownKeys:"strict"}),t!==void 0?{errorMap:(n,r)=>{var a,i,o,s;const l=(o=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=W.errToObj(t).message)!==null&&s!==void 0?s:l}:{message:l}}}:{}))}strip(){return new Oe(E(w({},this._def),{unknownKeys:"strip"}))}passthrough(){return new Oe(E(w({},this._def),{unknownKeys:"passthrough"}))}extend(t){return new Oe(E(w({},this._def),{shape:()=>w(w({},this._def.shape()),t)}))}merge(t){return new Oe({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>w(w({},this._def.shape()),t._def.shape()),typeName:V.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Oe(E(w({},this._def),{catchall:t}))}pick(t){const n={};return le.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Oe(E(w({},this._def),{shape:()=>n}))}omit(t){const n={};return le.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Oe(E(w({},this._def),{shape:()=>n}))}deepPartial(){return _a(this)}partial(t){const n={};return le.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new Oe(E(w({},this._def),{shape:()=>n}))}required(t){const n={};return le.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof xn;)i=i._def.innerType;n[r]=i}}),new Oe(E(w({},this._def),{shape:()=>n}))}keyof(){return Jv(le.objectKeys(this.shape))}}Oe.create=(e,t)=>new Oe(w({shape:()=>e,unknownKeys:"strip",catchall:bn.create(),typeName:V.ZodObject},q(t))),Oe.strictCreate=(e,t)=>new Oe(w({shape:()=>e,unknownKeys:"strict",catchall:bn.create(),typeName:V.ZodObject},q(t))),Oe.lazycreate=(e,t)=>new Oe(w({shape:e,unknownKeys:"strip",catchall:bn.create(),typeName:V.ZodObject},q(t)));class zi extends G{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const s of i)if(s.result.status==="valid")return s.result;for(const s of i)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=i.map(s=>new Ut(s.ctx.common.issues));return M(n,{code:P.invalid_union,unionErrors:o}),Y}if(n.common.async)return Promise.all(r.map(i=>an(this,null,function*(){const o=E(w({},n),{common:E(w({},n.common),{issues:[]}),parent:null});return{result:yield i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}}))).then(a);{let i;const o=[];for(const l of r){const u=E(w({},n),{common:E(w({},n.common),{issues:[]}),parent:null}),c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const s=o.map(l=>new Ut(l));return M(n,{code:P.invalid_union,unionErrors:s}),Y}}get options(){return this._def.options}}zi.create=(e,t)=>new zi(w({options:e,typeName:V.ZodUnion},q(t)));const Xs=e=>e instanceof Qi?Xs(e.schema):e instanceof Ht?Xs(e.innerType()):e instanceof Hi?[e.value]:e instanceof er?e.options:e instanceof Vi?Object.keys(e.enum):e instanceof Bi?Xs(e._def.innerType):e instanceof $i?[void 0]:e instanceof ji?[null]:null;class Js extends G{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==A.object)return M(n,{code:P.invalid_type,expected:A.object,received:n.parsedType}),Y;const r=this.discriminator,a=n.data[r],i=this.optionsMap.get(a);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(M(n,{code:P.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Y)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const i of n){const o=Xs(i.shape[t]);if(!o)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(a.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);a.set(s,i)}}return new Js(w({typeName:V.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a},q(r)))}}function Sf(e,t){const n=Gn(e),r=Gn(t);if(e===t)return{valid:!0,data:e};if(n===A.object&&r===A.object){const a=le.objectKeys(t),i=le.objectKeys(e).filter(s=>a.indexOf(s)!==-1),o=w(w({},e),t);for(const s of i){const l=Sf(e[s],t[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(n===A.array&&r===A.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const o=e[i],s=t[i],l=Sf(o,s);if(!l.valid)return{valid:!1};a.push(l.data)}return{valid:!0,data:a}}else return n===A.date&&r===A.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ui extends G{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,o)=>{if(xf(i)||xf(o))return Y;const s=Sf(i.value,o.value);return s.valid?((kf(i)||kf(o))&&n.dirty(),{status:n.value,value:s.data}):(M(r,{code:P.invalid_intersection_types}),Y)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ui.create=(e,t,n)=>new Ui(w({left:e,right:t,typeName:V.ZodIntersection},q(n)));class tn extends G{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==A.array)return M(r,{code:P.invalid_type,expected:A.array,received:r.parsedType}),Y;if(r.data.length<this._def.items.length)return M(r,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Y;!this._def.rest&&r.data.length>this._def.items.length&&(M(r,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new en(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>tt.mergeArray(n,o)):tt.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new tn(E(w({},this._def),{rest:t}))}}tn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new tn(w({items:e,typeName:V.ZodTuple,rest:null},q(t)))};class Wi extends G{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==A.object)return M(r,{code:P.invalid_type,expected:A.object,received:r.parsedType}),Y;const a=[],i=this._def.keyType,o=this._def.valueType;for(const s in r.data)a.push({key:i._parse(new en(r,s,r.path,s)),value:o._parse(new en(r,r.data[s],r.path,s))});return r.common.async?tt.mergeObjectAsync(n,a):tt.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof G?new Wi(w({keyType:t,valueType:n,typeName:V.ZodRecord},q(r))):new Wi(w({keyType:Wt.create(),valueType:t,typeName:V.ZodRecord},q(n)))}}class el extends G{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==A.map)return M(r,{code:P.invalid_type,expected:A.map,received:r.parsedType}),Y;const a=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([s,l],u)=>({key:a._parse(new en(r,s,r.path,[u,"key"])),value:i._parse(new en(r,l,r.path,[u,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(()=>an(this,null,function*(){for(const l of o){const u=yield l.key,c=yield l.value;if(u.status==="aborted"||c.status==="aborted")return Y;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),s.set(u.value,c.value)}return{status:n.value,value:s}}))}else{const s=new Map;for(const l of o){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return Y;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),s.set(u.value,c.value)}return{status:n.value,value:s}}}}el.create=(e,t,n)=>new el(w({valueType:t,keyType:e,typeName:V.ZodMap},q(n)));class Mr extends G{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==A.set)return M(r,{code:P.invalid_type,expected:A.set,received:r.parsedType}),Y;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(M(r,{code:P.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(M(r,{code:P.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function o(l){const u=new Set;for(const c of l){if(c.status==="aborted")return Y;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const s=[...r.data.values()].map((l,u)=>i._parse(new en(r,l,r.path,u)));return r.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(t,n){return new Mr(E(w({},this._def),{minSize:{value:t,message:W.toString(n)}}))}max(t,n){return new Mr(E(w({},this._def),{maxSize:{value:t,message:W.toString(n)}}))}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Mr.create=(e,t)=>new Mr(w({valueType:e,minSize:null,maxSize:null,typeName:V.ZodSet},q(t)));class Ca extends G{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==A.function)return M(n,{code:P.invalid_type,expected:A.function,received:n.parsedType}),Y;function r(s,l){return Ys({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Bs(),Li].filter(u=>!!u),issueData:{code:P.invalid_arguments,argumentsError:l}})}function a(s,l){return Ys({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Bs(),Li].filter(u=>!!u),issueData:{code:P.invalid_return_type,returnTypeError:l}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;return this._def.returns instanceof Ea?st((...s)=>an(this,null,function*(){const l=new Ut([]),u=yield this._def.args.parseAsync(s,i).catch(f=>{throw l.addIssue(r(s,f)),l}),c=yield o(...u);return yield this._def.returns._def.type.parseAsync(c,i).catch(f=>{throw l.addIssue(a(c,f)),l})})):st((...s)=>{const l=this._def.args.safeParse(s,i);if(!l.success)throw new Ut([r(s,l.error)]);const u=o(...l.data),c=this._def.returns.safeParse(u,i);if(!c.success)throw new Ut([a(u,c.error)]);return c.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ca(E(w({},this._def),{args:tn.create(t).rest(Ar.create())}))}returns(t){return new Ca(E(w({},this._def),{returns:t}))}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ca(w({args:t||tn.create([]).rest(Ar.create()),returns:n||Ar.create(),typeName:V.ZodFunction},q(r)))}}class Qi extends G{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Qi.create=(e,t)=>new Qi(w({getter:e,typeName:V.ZodLazy},q(t)));class Hi extends G{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return M(n,{received:n.data,code:P.invalid_literal,expected:this._def.value}),Y}return{status:"valid",value:t.data}}get value(){return this._def.value}}Hi.create=(e,t)=>new Hi(w({value:e,typeName:V.ZodLiteral},q(t)));function Jv(e,t){return new er(w({values:e,typeName:V.ZodEnum},q(t)))}class er extends G{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return M(n,{expected:le.joinValues(r),received:n.parsedType,code:P.invalid_type}),Y}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return M(n,{received:n.data,code:P.invalid_enum_value,options:r}),Y}return st(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return er.create(t)}exclude(t){return er.create(this.options.filter(n=>!t.includes(n)))}}er.create=Jv;class Vi extends G{_parse(t){const n=le.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==A.string&&r.parsedType!==A.number){const a=le.objectValues(n);return M(r,{expected:le.joinValues(a),received:r.parsedType,code:P.invalid_type}),Y}if(n.indexOf(t.data)===-1){const a=le.objectValues(n);return M(r,{received:r.data,code:P.invalid_enum_value,options:a}),Y}return st(t.data)}get enum(){return this._def.values}}Vi.create=(e,t)=>new Vi(w({values:e,typeName:V.ZodNativeEnum},q(t)));class Ea extends G{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==A.promise&&n.common.async===!1)return M(n,{code:P.invalid_type,expected:A.promise,received:n.parsedType}),Y;const r=n.parsedType===A.promise?n.data:Promise.resolve(n.data);return st(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ea.create=(e,t)=>new Ea(w({type:e,typeName:V.ZodPromise},q(t)));class Ht extends G{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===V.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null;if(a.type==="preprocess"){const o=a.transform(r.data);return r.common.async?Promise.resolve(o).then(s=>this._def.schema._parseAsync({data:s,path:r.path,parent:r})):this._def.schema._parseSync({data:o,path:r.path,parent:r})}const i={addIssue:o=>{M(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="refinement"){const o=s=>{const l=a.refinement(s,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Y:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?Y:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(a.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Zs(o))return o;const s=a.transform(o.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>Zs(o)?Promise.resolve(a.transform(o.value,i)).then(s=>({status:n.value,value:s})):o);le.assertNever(a)}}Ht.create=(e,t,n)=>new Ht(w({schema:e,typeName:V.ZodEffects,effect:t},q(n))),Ht.createWithPreprocess=(e,t,n)=>new Ht(w({schema:t,effect:{type:"preprocess",transform:e},typeName:V.ZodEffects},q(n)));class xn extends G{_parse(t){return this._getType(t)===A.undefined?st(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}xn.create=(e,t)=>new xn(w({innerType:e,typeName:V.ZodOptional},q(t)));class Dr extends G{_parse(t){return this._getType(t)===A.null?st(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Dr.create=(e,t)=>new Dr(w({innerType:e,typeName:V.ZodNullable},q(t)));class Bi extends G{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===A.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Bi.create=(e,t)=>new Bi(w({innerType:e,typeName:V.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default},q(t)));class tl extends G{_parse(t){const{ctx:n}=this._processInputParams(t),r=E(w({},n),{common:E(w({},n.common),{issues:[]})}),a=this._def.innerType._parse({data:r.data,path:r.path,parent:w({},r)});return qs(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ut(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Ut(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}tl.create=(e,t)=>new tl(w({innerType:e,typeName:V.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch},q(t)));class nl extends G{_parse(t){if(this._getType(t)!==A.nan){const r=this._getOrReturnCtx(t);return M(r,{code:P.invalid_type,expected:A.nan,received:r.parsedType}),Y}return{status:"valid",value:t.data}}}nl.create=e=>new nl(w({typeName:V.ZodNaN},q(e)));const hk=Symbol("zod_brand");class ey extends G{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Yi extends G{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(()=>an(this,null,function*(){const i=yield this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Y:i.status==="dirty"?(n.dirty(),Gv(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})}))();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Y:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new Yi({in:t,out:n,typeName:V.ZodPipeline})}}const ty=(e,t={},n)=>e?Sa.create().superRefine((r,a)=>{var i,o;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(o=(i=s.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,u=typeof s=="string"?{message:s}:s;a.addIssue(E(w({code:"custom"},u),{fatal:l}))}}):Sa.create(),mk={object:Oe.lazycreate};var V;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline"})(V||(V={}));const vk=(e,t={message:`Input not instance of ${e.name}`})=>ty(n=>n instanceof e,t),ny=Wt.create,ry=Xn.create,yk=nl.create,gk=Jn.create,ay=Fi.create,wk=Ir.create,bk=Ks.create,xk=$i.create,kk=ji.create,Sk=Sa.create,_k=Ar.create,Ck=bn.create,Ek=Gs.create,Ok=Qt.create,Tk=Oe.create,Pk=Oe.strictCreate,Nk=zi.create,Rk=Js.create,Ik=Ui.create,Ak=tn.create,Mk=Wi.create,Dk=el.create,Lk=Mr.create,Fk=Ca.create,$k=Qi.create,jk=Hi.create,zk=er.create,Uk=Vi.create,Wk=Ea.create,iy=Ht.create,Qk=xn.create,Hk=Dr.create,Vk=Ht.createWithPreprocess,Bk=Yi.create;var re=Object.freeze({__proto__:null,defaultErrorMap:Li,setErrorMap:tk,getErrorMap:Bs,makeIssue:Ys,EMPTY_PATH:nk,addIssueToContext:M,ParseStatus:tt,INVALID:Y,DIRTY:Gv,OK:st,isAborted:xf,isDirty:kf,isValid:Zs,isAsync:qs,get util(){return le},get objectUtil(){return bf},ZodParsedType:A,getParsedType:Gn,ZodType:G,ZodString:Wt,ZodNumber:Xn,ZodBigInt:Jn,ZodBoolean:Fi,ZodDate:Ir,ZodSymbol:Ks,ZodUndefined:$i,ZodNull:ji,ZodAny:Sa,ZodUnknown:Ar,ZodNever:bn,ZodVoid:Gs,ZodArray:Qt,ZodObject:Oe,ZodUnion:zi,ZodDiscriminatedUnion:Js,ZodIntersection:Ui,ZodTuple:tn,ZodRecord:Wi,ZodMap:el,ZodSet:Mr,ZodFunction:Ca,ZodLazy:Qi,ZodLiteral:Hi,ZodEnum:er,ZodNativeEnum:Vi,ZodPromise:Ea,ZodEffects:Ht,ZodTransformer:Ht,ZodOptional:xn,ZodNullable:Dr,ZodDefault:Bi,ZodCatch:tl,ZodNaN:nl,BRAND:hk,ZodBranded:ey,ZodPipeline:Yi,custom:ty,Schema:G,ZodSchema:G,late:mk,get ZodFirstPartyTypeKind(){return V},coerce:{string:e=>Wt.create(E(w({},e),{coerce:!0})),number:e=>Xn.create(E(w({},e),{coerce:!0})),boolean:e=>Fi.create(E(w({},e),{coerce:!0})),bigint:e=>Jn.create(E(w({},e),{coerce:!0})),date:e=>Ir.create(E(w({},e),{coerce:!0}))},any:Sk,array:Ok,bigint:gk,boolean:ay,date:wk,discriminatedUnion:Rk,effect:iy,enum:zk,function:Fk,instanceof:vk,intersection:Ik,lazy:$k,literal:jk,map:Dk,nan:yk,nativeEnum:Uk,never:Ck,null:kk,nullable:Hk,number:ry,object:Tk,oboolean:()=>ay().optional(),onumber:()=>ry().optional(),optional:Qk,ostring:()=>ny().optional(),pipeline:Bk,preprocess:Vk,promise:Wk,record:Mk,set:Lk,strictObject:Pk,string:ny,symbol:bk,transformer:iy,tuple:Ak,undefined:xk,union:Nk,unknown:_k,void:Ek,NEVER:Y,ZodIssueCode:P,quotelessJson:ek,ZodError:Ut});const Yk=re.object({Code:re.string(),Name:re.string(),"Logo URL":re.string().url()});re.object({"Menu Bar & Button Color":re.string(),"Button Hover Color":re.string(),"Preferred Airport Naming Convention":re.string(),"Airport Website URL":re.string(),"Mapping Address (from Mapping Address)":re.string(),"Hosted Logo Url":re.string().url("Must be a valid URL"),"Hosted Logo Url White":re.string().url("Must be a valid URL").optional(),"Kayak Car Rental Code":re.string(),Airlines:re.array(re.union([re.string(),Yk])),Facebook:re.string().url().optional(),Instagram:re.string().url().optional(),LinkedIn:re.string().url().optional(),Twitter:re.string().url().optional(),IATA_blacklist:re.string().optional()});const Zk=re.object({url:re.string().url(),width:re.number(),height:re.number()});re.object({Photo:re.array(Zk),Name:re.string(),Destination:re.string(),"Start Date":re.string(),"End Date":re.string()}),re.object({Name:re.string(),URL:re.string().url()});var qk={prefix:"fal",iconName:"plane-departure",icon:[640,512,[128747],"f5b0","M158.7 105.4c11.5-5.2 24.5-5.7 36.4-1.4L375 170c4.2 1.5 8.8 1.3 12.8-.8l88-45c15.8-8.1 33.3-12.3 51-12.3h61c12.7 0 21.1 13.1 15.8 24.6c-15.4 33.4-41.7 60.5-74.6 77L255.6 350.3c-2.2 1.1-4.7 1.7-7.2 1.7H109.3c-4.2 0-8.3-1.7-11.3-4.7L34.1 283.5l23.7-13.6c4.4-2.5 9.8-2.8 14.4-.7l57.2 25.4c4.4 2 9.5 1.8 13.8-.4l115-58.8c5.1-2.6 8.5-7.8 8.7-13.6s-2.6-11.2-7.5-14.3L121.9 122.2l-6.6-14.6 6.6 14.6 36.9-16.8zM206.1 74c-19.7-7.2-41.5-6.4-60.6 2.3L108.6 93.1c-23.3 10.6-25.4 42.8-3.6 56.3l113.5 70.5-83 42.4L85.3 240l-6.1 13.7L85.3 240c-14-6.2-30-5.4-43.3 2.2L18.2 255.7c-18.3 10.5-21.7 35.5-6.8 50.4l63.8 63.8c9 9 21.2 14.1 33.9 14.1H248.4c7.5 0 14.8-1.7 21.5-5.1L543.3 242.2c39.4-19.7 70.9-52.2 89.3-92.2c15.1-32.7-8.8-70-44.8-70h-61c-22.8 0-45.2 5.4-65.5 15.8l-81.8 41.8L206.1 74zM16 480c-8.8 0-16 7.2-16 16s7.2 16 16 16H624c8.8 0 16-7.2 16-16s-7.2-16-16-16H16z"]},Kk={prefix:"fal",iconName:"plane-arrival",icon:[640,512,[128748],"f5af","M253.3 32c5.8 0 11.1 3.1 13.9 8.2L388.5 255.7c2.1 3.7 5.6 6.4 9.7 7.6l91.5 25.4c15.9 4.4 30.7 12.3 43.2 23.2l26.7 23.1c11.5 9.9 6.7 28.7-8.1 32c-27.1 6-55.3 5.1-82-2.5L170.5 279.5c-1.8-.5-3.5-1.3-5-2.4L70.9 208.7c-4.2-3-6.6-7.8-6.6-12.9L64 100l34.2 7.6c5.7 1.3 10.2 5.5 11.9 11l18.6 62c1.6 5.3 5.7 9.3 11 10.8l101.8 28.3c5.6 1.6 11.6 0 15.6-4.1s5.6-10.1 4-15.7L213.2 32l40.1 0zm41.8-7.5C286.6 9.4 270.6 0 253.3 0H213.2C192 0 176.6 20.3 182.4 40.8l40.1 140.4-65.8-18.3-16.1-53.6c-5-16.6-18.6-29.3-35.6-33.1L71 68.7C51 64.3 32 79.5 32 100l.2 95.8c0 15.4 7.4 29.8 19.9 38.8L146.8 303c4.5 3.3 9.6 5.7 15 7.3l4.4-15.4-4.4 15.4 298.8 84.9c31.8 9 65.4 10 97.7 2.9c40.6-8.9 53.6-60.3 22.1-87.5l-26.7-23.1c-16.1-13.9-35.1-24.1-55.6-29.8l-85.1-23.7L295.1 24.5zM16 480c-8.8 0-16 7.2-16 16s7.2 16 16 16H624c8.8 0 16-7.2 16-16s-7.2-16-16-16H16zM176 368a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zm72 56a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]};function oy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oy(Object(n),!0).forEach(function(r){$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rl(e){return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}function Gk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xk(e,t,n){return t&&sy(e.prototype,t),n&&sy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _f(e,t){return eS(e)||nS(e,t)||ly(e,t)||aS()}function Zi(e){return Jk(e)||tS(e)||ly(e)||rS()}function Jk(e){if(Array.isArray(e))return Cf(e)}function eS(e){if(Array.isArray(e))return e}function tS(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nS(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,o,s;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));a=!0);}catch(l){i=!0,s=l}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function ly(e,t){if(e){if(typeof e=="string")return Cf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cf(e,t)}}function Cf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
46
46
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -803,5 +803,5 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
803
803
|
}`;function Cy(){var e=yy,t=gy,n=z.cssPrefix,r=z.replacementClass,a=CS;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return a}var Ey=!1;function Mf(){z.autoAddCss&&!Ey&&(bS(Cy()),Ey=!0)}var ES={mixout:function(){return{dom:{css:Cy,insertCss:Mf}}},hooks:function(){return{beforeDOMElementCreation:function(){Mf()},beforeI2svg:function(){Mf()}}}},_n=tr||{};_n[Sn]||(_n[Sn]={}),_n[Sn].styles||(_n[Sn].styles={}),_n[Sn].hooks||(_n[Sn].hooks={}),_n[Sn].shims||(_n[Sn].shims=[]);var Vt=_n[Sn],Oy=[],OS=function e(){be.removeEventListener("DOMContentLoaded",e),fl=1,Oy.map(function(t){return t()})},fl=!1;kn&&(fl=(be.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(be.readyState),fl||be.addEventListener("DOMContentLoaded",OS));function TS(e){kn&&(fl?setTimeout(e,0):Oy.push(e))}function ro(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?_y(e):"<".concat(t," ").concat(kS(r),">").concat(i.map(ro).join(""),"</").concat(t,">")}function Ty(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var PS=function(t,n){return function(r,a,i,o){return t.call(n,r,a,i,o)}},Df=function(t,n,r,a){var i=Object.keys(t),o=i.length,s=a!==void 0?PS(n,a):n,l,u,c;for(r===void 0?(l=1,c=t[i[0]]):(l=0,c=r);l<o;l++)u=i[l],c=s(c,t[u],u,t);return c};function NS(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var i=e.charCodeAt(n++);(i&64512)==56320?t.push(((a&1023)<<10)+(i&1023)+65536):(t.push(a),n--)}else t.push(a)}return t}function Lf(e){var t=NS(e);return t.length===1?t[0].toString(16):null}function RS(e,t){var n=e.length,r=e.charCodeAt(t),a;return r>=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function Py(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function Ff(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,i=Py(t);typeof Vt.hooks.addPack=="function"&&!a?Vt.hooks.addPack(e,Py(t)):Vt.styles[e]=D(D({},Vt.styles[e]||{}),i),e==="fas"&&Ff("fa",t)}var dl,pl,hl,Pa=Vt.styles,IS=Vt.shims,AS=(dl={},$e(dl,xe,Object.values(Xi[xe])),$e(dl,Re,Object.values(Xi[Re])),dl),$f=null,Ny={},Ry={},Iy={},Ay={},My={},MS=(pl={},$e(pl,xe,Object.keys(Ki[xe])),$e(pl,Re,Object.keys(Ki[Re])),pl);function DS(e){return~mS.indexOf(e)}function LS(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!DS(a)?a:null}var Dy=function(){var t=function(i){return Df(Pa,function(o,s,l){return o[l]=Df(s,i,{}),o},{})};Ny=t(function(a,i,o){if(i[3]&&(a[i[3]]=o),i[2]){var s=i[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){a[l.toString(16)]=o})}return a}),Ry=t(function(a,i,o){if(a[o]=o,i[2]){var s=i[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){a[l]=o})}return a}),My=t(function(a,i,o){var s=i[2];return a[o]=o,s.forEach(function(l){a[l]=o}),a});var n="far"in Pa||z.autoFetchSvg,r=Df(IS,function(a,i){var o=i[0],s=i[1],l=i[2];return s==="far"&&!n&&(s="fas"),typeof o=="string"&&(a.names[o]={prefix:s,iconName:l}),typeof o=="number"&&(a.unicodes[o.toString(16)]={prefix:s,iconName:l}),a},{names:{},unicodes:{}});Iy=r.names,Ay=r.unicodes,$f=ml(z.styleDefault,{family:z.familyDefault})};wS(function(e){$f=ml(e.styleDefault,{family:z.familyDefault})}),Dy();function jf(e,t){return(Ny[e]||{})[t]}function FS(e,t){return(Ry[e]||{})[t]}function $r(e,t){return(My[e]||{})[t]}function Ly(e){return Iy[e]||{prefix:null,iconName:null}}function $S(e){var t=Ay[e],n=jf("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function rr(){return $f}var zf=function(){return{prefix:null,iconName:null,rest:[]}};function ml(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?xe:n,a=Ki[r][e],i=Gi[r][e]||Gi[r][a],o=e in Vt.styles?e:null;return i||o||null}var Fy=(hl={},$e(hl,xe,Object.keys(Xi[xe])),$e(hl,Re,Object.keys(Xi[Re])),hl);function vl(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,i=(t={},$e(t,xe,"".concat(z.cssPrefix,"-").concat(xe)),$e(t,Re,"".concat(z.cssPrefix,"-").concat(Re)),t),o=null,s=xe;(e.includes(i[xe])||e.some(function(u){return Fy[xe].includes(u)}))&&(s=xe),(e.includes(i[Re])||e.some(function(u){return Fy[Re].includes(u)}))&&(s=Re);var l=e.reduce(function(u,c){var d=LS(z.cssPrefix,c);if(Pa[c]?(c=AS[s].includes(c)?uS[s][c]:c,o=c,u.prefix=c):MS[s].indexOf(c)>-1?(o=c,u.prefix=ml(c,{family:s})):d?u.iconName=d:c!==z.replacementClass&&c!==i[xe]&&c!==i[Re]&&u.rest.push(c),!a&&u.prefix&&u.iconName){var f=o==="fa"?Ly(u.iconName):{},m=$r(u.prefix,u.iconName);f.prefix&&(o=null),u.iconName=f.iconName||m||u.iconName,u.prefix=f.prefix||u.prefix,u.prefix==="far"&&!Pa.far&&Pa.fas&&!z.autoFetchSvg&&(u.prefix="fas")}return u},zf());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===Re&&(Pa.fass||z.autoFetchSvg)&&(l.prefix="fass",l.iconName=$r(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||o==="fa")&&(l.prefix=rr()||"fas"),l}var jS=function(){function e(){Gk(this,e),this.definitions={}}return Xk(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var o=a.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(s){n.definitions[s]=D(D({},n.definitions[s]||{}),o[s]),Ff(s,o[s]);var l=Xi[xe][s];l&&Ff(l,o[s]),Dy()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var a=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(a).map(function(i){var o=a[i],s=o.prefix,l=o.iconName,u=o.icon,c=u[2];n[s]||(n[s]={}),c.length>0&&c.forEach(function(d){typeof d=="string"&&(n[s][d]=u)}),n[s][l]=u}),n}}]),e}(),$y=[],Na={},Ra={},zS=Object.keys(Ra);function US(e,t){var n=t.mixoutsTo;return $y=e,Na={},Object.keys(Ra).forEach(function(r){zS.indexOf(r)===-1&&delete Ra[r]}),$y.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(o){typeof a[o]=="function"&&(n[o]=a[o]),rl(a[o])==="object"&&Object.keys(a[o]).forEach(function(s){n[o]||(n[o]={}),n[o][s]=a[o][s]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(o){Na[o]||(Na[o]=[]),Na[o].push(i[o])})}r.provides&&r.provides(Ra)}),n}function Uf(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i=Na[e]||[];return i.forEach(function(o){t=o.apply(null,[t].concat(r))}),t}function jr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=Na[e]||[];a.forEach(function(i){i.apply(null,n)})}function Cn(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ra[e]?Ra[e].apply(null,t):void 0}function Wf(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||rr();if(t)return t=$r(n,t)||t,Ty(jy.definitions,n,t)||Ty(Vt.styles,n,t)}var jy=new jS,WS=function(){z.autoReplaceSvg=!1,z.observeMutations=!1,jr("noAuto")},QS={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return kn?(jr("beforeI2svg",t),Cn("pseudoElements2svg",t),Cn("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;z.autoReplaceSvg===!1&&(z.autoReplaceSvg=!0),z.observeMutations=!0,TS(function(){VS({autoReplaceSvgRoot:n}),jr("watch",t)})}},HS={icon:function(t){if(t===null)return null;if(rl(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:$r(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=ml(t[0]);return{prefix:r,iconName:$r(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(z.cssPrefix,"-"))>-1||t.match(cS))){var a=vl(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||rr(),iconName:$r(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=rr();return{prefix:i,iconName:$r(i,t)||t}}}},St={noAuto:WS,config:z,dom:QS,parse:HS,library:jy,findIconDefinition:Wf,toHtml:ro},VS=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?be:n;(Object.keys(Vt.styles).length>0||z.autoFetchSvg)&&kn&&z.autoReplaceSvg&&St.dom.i2svg({node:r})};function yl(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ro(r)})}}),Object.defineProperty(e,"node",{get:function(){if(kn){var r=be.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function BS(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(Af(o)&&n.found&&!r.found){var s=n.width,l=n.height,u={x:s/l/2,y:.5};a.style=cl(D(D({},i),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function YS(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(z.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:D(D({},a),{},{id:o}),children:r}]}]}function Qf(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,o=e.transform,s=e.symbol,l=e.title,u=e.maskId,c=e.titleId,d=e.extra,f=e.watchable,m=f===void 0?!1:f,v=r.found?r:n,g=v.width,b=v.height,h=a==="fak",p=[z.replacementClass,i?"".concat(z.cssPrefix,"-").concat(i):""].filter(function(N){return d.classes.indexOf(N)===-1}).filter(function(N){return N!==""||!!N}).concat(d.classes).join(" "),y={children:[],attributes:D(D({},d.attributes),{},{"data-prefix":a,"data-icon":i,class:p,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(b)})},x=h&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/b*16*.0625,"em")}:{};m&&(y.attributes[Lr]=""),l&&(y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(c||no())},children:[l]}),delete y.attributes.title);var S=D(D({},y),{},{prefix:a,iconName:i,main:n,mask:r,maskId:u,transform:o,symbol:s,styles:D(D({},x),d.styles)}),_=r.found&&n.found?Cn("generateAbstractMask",S)||{children:[],attributes:{}}:Cn("generateAbstractIcon",S)||{children:[],attributes:{}},C=_.children,O=_.attributes;return S.children=C,S.attributes=O,s?YS(S):BS(S)}function zy(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,o=e.extra,s=e.watchable,l=s===void 0?!1:s,u=D(D(D({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});l&&(u[Lr]="");var c=D({},o.styles);Af(a)&&(c.transform=_S({transform:a,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);var d=cl(c);d.length>0&&(u.style=d);var f=[];return f.push({tag:"span",attributes:u,children:[t]}),i&&f.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),f}function ZS(e){var t=e.content,n=e.title,r=e.extra,a=D(D(D({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=cl(r.styles);i.length>0&&(a.style=i);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var Hf=Vt.styles;function Vf(e){var t=e[0],n=e[1],r=e.slice(4),a=_f(r,1),i=a[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(z.cssPrefix,"-").concat(Fr.GROUP)},children:[{tag:"path",attributes:{class:"".concat(z.cssPrefix,"-").concat(Fr.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(z.cssPrefix,"-").concat(Fr.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:o}}var qS={found:!1,width:512,height:512};function KS(e,t){!by&&!z.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Bf(e,t){var n=t;return t==="fa"&&z.styleDefault!==null&&(t=rr()),new Promise(function(r,a){if(Cn("missingIconAbstract"),n==="fa"){var i=Ly(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Hf[t]&&Hf[t][e]){var o=Hf[t][e];return r(Vf(o))}KS(e,t),r(D(D({},qS),{},{icon:z.showMissingIcons&&e?Cn("missingIconAbstract")||{}:{}}))})}var Uy=function(){},Yf=z.measurePerformance&&al&&al.mark&&al.measure?al:{mark:Uy,measure:Uy},ao='FA "6.4.0"',GS=function(t){return Yf.mark("".concat(ao," ").concat(t," begins")),function(){return Wy(t)}},Wy=function(t){Yf.mark("".concat(ao," ").concat(t," ends")),Yf.measure("".concat(ao," ").concat(t),"".concat(ao," ").concat(t," begins"),"".concat(ao," ").concat(t," ends"))},Zf={begin:GS,end:Wy},gl=function(){};function Qy(e){var t=e.getAttribute?e.getAttribute(Lr):null;return typeof t=="string"}function XS(e){var t=e.getAttribute?e.getAttribute(Pf):null,n=e.getAttribute?e.getAttribute(Nf):null;return t&&n}function JS(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(z.replacementClass)}function e_(){if(z.autoReplaceSvg===!0)return wl.replace;var e=wl[z.autoReplaceSvg];return e||wl.replace}function t_(e){return be.createElementNS("http://www.w3.org/2000/svg",e)}function n_(e){return be.createElement(e)}function Hy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?t_:n_:n;if(typeof e=="string")return be.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){a.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){a.appendChild(Hy(o,{ceFn:r}))}),a}function r_(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var wl={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(Hy(a),n)}),n.getAttribute(Lr)===null&&z.keepOriginalSource){var r=be.createComment(r_(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~If(n).indexOf(z.replacementClass))return wl.replace(t);var a=new RegExp("".concat(z.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(s,l){return l===z.replacementClass||l.match(a)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(s){return ro(s)}).join(`
|
|
804
804
|
`);n.setAttribute(Lr,""),n.innerHTML=o}};function Vy(e){e()}function By(e,t){var n=typeof t=="function"?t:gl;if(e.length===0)n();else{var r=Vy;z.mutateApproach===sS&&(r=tr.requestAnimationFrame||Vy),r(function(){var a=e_(),i=Zf.begin("mutate");e.map(a),i(),n()})}}var qf=!1;function Yy(){qf=!0}function Kf(){qf=!1}var bl=null;function Zy(e){if(my&&z.observeMutations){var t=e.treeCallback,n=t===void 0?gl:t,r=e.nodeCallback,a=r===void 0?gl:r,i=e.pseudoElementsCallback,o=i===void 0?gl:i,s=e.observeMutationsRoot,l=s===void 0?be:s;bl=new my(function(u){if(!qf){var c=rr();Ta(u).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!Qy(d.addedNodes[0])&&(z.searchPseudoElements&&o(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&z.searchPseudoElements&&o(d.target.parentNode),d.type==="attributes"&&Qy(d.target)&&~hS.indexOf(d.attributeName))if(d.attributeName==="class"&&XS(d.target)){var f=vl(If(d.target)),m=f.prefix,v=f.iconName;d.target.setAttribute(Pf,m||c),v&&d.target.setAttribute(Nf,v)}else JS(d.target)&&a(d.target)})}}),kn&&bl.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function a_(){bl&&bl.disconnect()}function i_(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var i=a.split(":"),o=i[0],s=i.slice(1);return o&&s.length>0&&(r[o]=s.join(":").trim()),r},{})),n}function o_(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=vl(If(e));return a.prefix||(a.prefix=rr()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=FS(a.prefix,e.innerText)||jf(a.prefix,Lf(e.innerText))),!a.iconName&&z.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function s_(e){var t=Ta(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return z.autoA11y&&(n?t["aria-labelledby"]="".concat(z.replacementClass,"-title-").concat(r||no()):(t["aria-hidden"]="true",t.focusable="false")),t}function l_(){return{iconName:null,title:null,titleId:null,prefix:null,transform:nn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function qy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=o_(e),r=n.iconName,a=n.prefix,i=n.rest,o=s_(e),s=Uf("parseNodeAttributes",{},e),l=t.styleParser?i_(e):[];return D({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:nn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:o}},s)}var u_=Vt.styles;function Ky(e){var t=z.autoReplaceSvg==="nest"?qy(e,{styleParser:!1}):qy(e);return~t.extra.classes.indexOf(xy)?Cn("generateLayersText",e,t):Cn("generateSvgReplacementMutation",e,t)}var ar=new Set;Rf.map(function(e){ar.add("fa-".concat(e))}),Object.keys(Ki[xe]).map(ar.add.bind(ar)),Object.keys(Ki[Re]).map(ar.add.bind(ar)),ar=Zi(ar);function Gy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!kn)return Promise.resolve();var n=be.documentElement.classList,r=function(d){return n.add("".concat(wy,"-").concat(d))},a=function(d){return n.remove("".concat(wy,"-").concat(d))},i=z.autoFetchSvg?ar:Rf.map(function(c){return"fa-".concat(c)}).concat(Object.keys(u_));i.includes("fa")||i.push("fa");var o=[".".concat(xy,":not([").concat(Lr,"])")].concat(i.map(function(c){return".".concat(c,":not([").concat(Lr,"])")})).join(", ");if(o.length===0)return Promise.resolve();var s=[];try{s=Ta(e.querySelectorAll(o))}catch(c){}if(s.length>0)r("pending"),a("complete");else return Promise.resolve();var l=Zf.begin("onTree"),u=s.reduce(function(c,d){try{var f=Ky(d);f&&c.push(f)}catch(m){by||m.name==="MissingIcon"&&console.error(m)}return c},[]);return new Promise(function(c,d){Promise.all(u).then(function(f){By(f,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),l(),c()})}).catch(function(f){l(),d(f)})})}function c_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ky(e).then(function(n){n&&By([n],t)})}function f_(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Wf(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:Wf(a||{})),e(r,D(D({},n),{},{mask:a}))}}var d_=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?nn:r,i=n.symbol,o=i===void 0?!1:i,s=n.mask,l=s===void 0?null:s,u=n.maskId,c=u===void 0?null:u,d=n.title,f=d===void 0?null:d,m=n.titleId,v=m===void 0?null:m,g=n.classes,b=g===void 0?[]:g,h=n.attributes,p=h===void 0?{}:h,y=n.styles,x=y===void 0?{}:y;if(t){var S=t.prefix,_=t.iconName,C=t.icon;return yl(D({type:"icon"},t),function(){return jr("beforeDOMElementCreation",{iconDefinition:t,params:n}),z.autoA11y&&(f?p["aria-labelledby"]="".concat(z.replacementClass,"-title-").concat(v||no()):(p["aria-hidden"]="true",p.focusable="false")),Qf({icons:{main:Vf(C),mask:l?Vf(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:S,iconName:_,transform:D(D({},nn),a),symbol:o,title:f,maskId:c,titleId:v,extra:{attributes:p,styles:x,classes:b}})})}},p_={mixout:function(){return{icon:f_(d_)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Gy,n.nodeCallback=c_,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?be:r,i=n.callback,o=i===void 0?function(){}:i;return Gy(a,o)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,i=r.title,o=r.titleId,s=r.prefix,l=r.transform,u=r.symbol,c=r.mask,d=r.maskId,f=r.extra;return new Promise(function(m,v){Promise.all([Bf(a,s),c.iconName?Bf(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(g){var b=_f(g,2),h=b[0],p=b[1];m([n,Qf({icons:{main:h,mask:p},prefix:s,iconName:a,transform:l,symbol:u,maskId:d,title:i,titleId:o,extra:f,watchable:!0})])}).catch(v)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.transform,s=n.styles,l=cl(s);l.length>0&&(a.style=l);var u;return Af(o)&&(u=Cn("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:a}}}},h_={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,i=a===void 0?[]:a;return yl({type:"layer"},function(){jr("beforeDOMElementCreation",{assembler:n,params:r});var o=[];return n(function(s){Array.isArray(s)?s.map(function(l){o=o.concat(l.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(z.cssPrefix,"-layers")].concat(Zi(i)).join(" ")},children:o}]})}}}},m_={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,i=a===void 0?null:a,o=r.classes,s=o===void 0?[]:o,l=r.attributes,u=l===void 0?{}:l,c=r.styles,d=c===void 0?{}:c;return yl({type:"counter",content:n},function(){return jr("beforeDOMElementCreation",{content:n,params:r}),ZS({content:n.toString(),title:i,extra:{attributes:u,styles:d,classes:["".concat(z.cssPrefix,"-layers-counter")].concat(Zi(s))}})})}}}},v_={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,i=a===void 0?nn:a,o=r.title,s=o===void 0?null:o,l=r.classes,u=l===void 0?[]:l,c=r.attributes,d=c===void 0?{}:c,f=r.styles,m=f===void 0?{}:f;return yl({type:"text",content:n},function(){return jr("beforeDOMElementCreation",{content:n,params:r}),zy({content:n,transform:D(D({},nn),i),title:s,extra:{attributes:d,styles:m,classes:["".concat(z.cssPrefix,"-layers-text")].concat(Zi(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,i=r.transform,o=r.extra,s=null,l=null;if(vy){var u=parseInt(getComputedStyle(n).fontSize,10),c=n.getBoundingClientRect();s=c.width/u,l=c.height/u}return z.autoA11y&&!a&&(o.attributes["aria-hidden"]="true"),Promise.resolve([n,zy({content:n.innerHTML,width:s,height:l,transform:i,title:a,extra:o,watchable:!0})])}}},y_=new RegExp('"',"ug"),Xy=[1105920,1112319];function g_(e){var t=e.replace(y_,""),n=RS(t,0),r=n>=Xy[0]&&n<=Xy[1],a=t.length===2?t[0]===t[1]:!1;return{value:Lf(a?t[0]:t),isSecondary:r||a}}function Jy(e,t){var n="".concat(oS).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var i=Ta(e.children),o=i.filter(function(C){return C.getAttribute(Tf)===t})[0],s=tr.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(fS),u=s.getPropertyValue("font-weight"),c=s.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&c!=="none"&&c!==""){var d=s.getPropertyValue("content"),f=~["Sharp"].indexOf(l[2])?Re:xe,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Gi[f][l[2].toLowerCase()]:dS[f][u],v=g_(d),g=v.value,b=v.isSecondary,h=l[0].startsWith("FontAwesome"),p=jf(m,g),y=p;if(h){var x=$S(g);x.iconName&&x.prefix&&(p=x.iconName,m=x.prefix)}if(p&&!b&&(!o||o.getAttribute(Pf)!==m||o.getAttribute(Nf)!==y)){e.setAttribute(n,y),o&&e.removeChild(o);var S=l_(),_=S.extra;_.attributes[Tf]=t,Bf(p,m).then(function(C){var O=Qf(D(D({},S),{},{icons:{main:C,mask:zf()},prefix:m,iconName:y,extra:_,watchable:!0})),N=be.createElement("svg");t==="::before"?e.insertBefore(N,e.firstChild):e.appendChild(N),N.outerHTML=O.map(function(R){return ro(R)}).join(`
|
|
805
805
|
`),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function w_(e){return Promise.all([Jy(e,"::before"),Jy(e,"::after")])}function b_(e){return e.parentNode!==document.head&&!~lS.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Tf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function eg(e){if(kn)return new Promise(function(t,n){var r=Ta(e.querySelectorAll("*")).filter(b_).map(w_),a=Zf.begin("searchPseudoElements");Yy(),Promise.all(r).then(function(){a(),Kf(),t()}).catch(function(){a(),Kf(),n()})})}var x_={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=eg,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?be:r;z.searchPseudoElements&&eg(a)}}},tg=!1,k_={mixout:function(){return{dom:{unwatch:function(){Yy(),tg=!0}}}},hooks:function(){return{bootstrap:function(){Zy(Uf("mutationObserverCallbacks",{}))},noAuto:function(){a_()},watch:function(n){var r=n.observeMutationsRoot;tg?Kf():Zy(Uf("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},ng=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),o=i[0],s=i.slice(1).join("-");if(o&&s==="h")return r.flipX=!0,r;if(o&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(o){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},S_={mixout:function(){return{parse:{transform:function(n){return ng(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=ng(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,o=n.iconWidth,s={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(a.x*32,", ").concat(a.y*32,") "),u="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),c="rotate(".concat(a.rotate," 0 0)"),d={transform:"".concat(l," ").concat(u," ").concat(c)},f={transform:"translate(".concat(o/2*-1," -256)")},m={outer:s,inner:d,path:f};return{tag:"g",attributes:D({},m.outer),children:[{tag:"g",attributes:D({},m.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:D(D({},r.icon.attributes),m.path)}]}]}}}},Gf={x:0,y:0,width:"100%",height:"100%"};function rg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function __(e){return e.tag==="g"?e.children:[e]}var C_={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?vl(a.split(" ").map(function(o){return o.trim()})):zf();return i.prefix||(i.prefix=rr()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,o=n.mask,s=n.maskId,l=n.transform,u=i.width,c=i.icon,d=o.width,f=o.icon,m=SS({transform:l,containerWidth:d,iconWidth:u}),v={tag:"rect",attributes:D(D({},Gf),{},{fill:"white"})},g=c.children?{children:c.children.map(rg)}:{},b={tag:"g",attributes:D({},m.inner),children:[rg(D({tag:c.tag,attributes:D(D({},c.attributes),m.path)},g))]},h={tag:"g",attributes:D({},m.outer),children:[b]},p="mask-".concat(s||no()),y="clip-".concat(s||no()),x={tag:"mask",attributes:D(D({},Gf),{},{id:p,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,h]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:__(f)},x]};return r.push(S,{tag:"rect",attributes:D({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(p,")")},Gf)}),{children:r,attributes:a}}}},E_={provides:function(t){var n=!1;tr.matchMedia&&(n=tr.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:D(D({},a),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=D(D({},i),{},{attributeName:"opacity"}),s={tag:"circle",attributes:D(D({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:D(D({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:D(D({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:D(D({},a),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:D(D({},o),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:D(D({},a),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:D(D({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},O_={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},T_=[ES,p_,h_,m_,v_,x_,k_,S_,C_,E_,O_];US(T_,{mixoutsTo:St}),St.noAuto,St.config,St.library,St.dom;var Xf=St.parse;St.findIconDefinition,St.toHtml;var P_=St.icon;St.layer,St.text,St.counter;function ag(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ag(Object(n),!0).forEach(function(r){Ia(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ag(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xl(e){return xl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xl(e)}function Ia(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N_(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function R_(e,t){if(e==null)return{};var n=N_(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jf(e){return I_(e)||A_(e)||M_(e)||D_()}function I_(e){if(Array.isArray(e))return ed(e)}function A_(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function M_(e,t){if(e){if(typeof e=="string")return ed(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ed(e,t)}}function ed(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
806
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L_(e){var t,n=e.beat,r=e.fade,a=e.beatFade,i=e.bounce,o=e.shake,s=e.flash,l=e.spin,u=e.spinPulse,c=e.spinReverse,d=e.pulse,f=e.fixedWidth,m=e.inverse,v=e.border,g=e.listItem,b=e.flip,h=e.size,p=e.rotation,y=e.pull,x=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":a,"fa-bounce":i,"fa-shake":o,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":c,"fa-spin-pulse":u,"fa-pulse":d,"fa-fw":f,"fa-inverse":m,"fa-border":v,"fa-li":g,"fa-flip":b===!0,"fa-flip-horizontal":b==="horizontal"||b==="both","fa-flip-vertical":b==="vertical"||b==="both"},Ia(t,"fa-".concat(h),typeof h!="undefined"&&h!==null),Ia(t,"fa-rotate-".concat(p),typeof p!="undefined"&&p!==null&&p!==0),Ia(t,"fa-pull-".concat(y),typeof y!="undefined"&&y!==null),Ia(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(x).map(function(S){return x[S]?S:null}).filter(function(S){return S})}function F_(e){return e=e-0,e===e}function ig(e){return F_(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var $_=["style"];function j_(e){return e.charAt(0).toUpperCase()+e.slice(1)}function z_(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),a=ig(n.slice(0,r)),i=n.slice(r+1).trim();return a.startsWith("webkit")?t[j_(a)]=i:t[a]=i,t},{})}function og(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return og(e,l)}),a=Object.keys(t.attributes||{}).reduce(function(l,u){var c=t.attributes[u];switch(u){case"class":l.attrs.className=c,delete t.attributes.class;break;case"style":l.attrs.style=z_(c);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=c:l.attrs[ig(u)]=c}return l},{attrs:{}}),i=n.style,o=i===void 0?{}:i,s=R_(n,$_);return a.attrs.style=ir(ir({},a.attrs.style),o),e.apply(void 0,[t.tag,ir(ir({},a.attrs),s)].concat(Jf(r)))}var sg=!1;try{sg=!0}catch(e){}function U_(){if(!sg&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function lg(e){if(e&&xl(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Xf.icon)return Xf.icon(e);if(e===null)return null;if(e&&xl(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function td(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ia({},e,t):{}}var Aa=ie.forwardRef(function(e,t){var n=e.icon,r=e.mask,a=e.symbol,i=e.className,o=e.title,s=e.titleId,l=e.maskId,u=lg(n),c=td("classes",[].concat(Jf(L_(e)),Jf(i.split(" ")))),d=td("transform",typeof e.transform=="string"?Xf.transform(e.transform):e.transform),f=td("mask",lg(r)),m=P_(u,ir(ir(ir(ir({},c),d),f),{},{symbol:a,title:o,titleId:s,maskId:l}));if(!m)return U_("Could not find icon",u),null;var v=m.abstract,g={ref:t};return Object.keys(e).forEach(function(b){Aa.defaultProps.hasOwnProperty(b)||(g[b]=e[b])}),W_(v[0],g)});Aa.displayName="FontAwesomeIcon",Aa.propTypes={beat:U.bool,border:U.bool,beatFade:U.bool,bounce:U.bool,className:U.string,fade:U.bool,flash:U.bool,mask:U.oneOfType([U.object,U.array,U.string]),maskId:U.string,fixedWidth:U.bool,inverse:U.bool,flip:U.oneOf([!0,!1,"horizontal","vertical","both"]),icon:U.oneOfType([U.object,U.array,U.string]),listItem:U.bool,pull:U.oneOf(["right","left"]),pulse:U.bool,rotation:U.oneOf([0,90,180,270]),shake:U.bool,size:U.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:U.bool,spinPulse:U.bool,spinReverse:U.bool,symbol:U.oneOfType([U.bool,U.string]),title:U.string,titleId:U.string,transform:U.oneOfType([U.string,U.object]),swapOpacity:U.bool},Aa.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var W_=og.bind(null,ie.createElement);const ug={apiDomain:U.string.isRequired,origin:U.string,destination:U.string,airlines:U.string,providers:U.string,destinations:U.string,primaryColor:U.string,secondaryColor:U.string,locationId:U.string,experimentId:U.string,clickId:U.string,arrivalAirportLabel:U.string,departureAirportLabel:U.string,departureDateLabel:U.string,returnDateLabel:U.string,workerUrl:U.string},Q_=new Wv;function cg(e,t){return an(this,null,function*(){return(yield(yield fetch(`${e}/api/search?q=${t}`)).json()).data})}function fg({apiDomain:e,origin:t,destination:n,airlines:r,providers:a,destinations:i,primaryColor:o,secondaryColor:s,locationId:l,experimentId:u,clickId:c,arrivalAirportLabel:d="Arrival Airport",departureAirportLabel:f="Departure Airport",departureDateLabel:m="Departure Date",returnDateLabel:v="Return Date",workerUrl:g="https://worker.flymyairport.com"}){var io;const[b,h]=k.useState({origin:t||null,destination:n||null,startDate:null,endDate:null});if(l&&l.length>50)throw new Error("locationId must be less than 50 characters");if(u&&u!=="0"&&u!=="1")throw new Error("experimentId must be 0 or 1");if(c&&!/^[a-zA-Z0-9_]{1,50}$/.test(c))throw new Error("clickId must be 1-50 characters and can only use letters, numbers and _");t=t==null?void 0:t.toLocaleUpperCase(),n=n==null?void 0:n.toLocaleUpperCase();const p=r==null?void 0:r.split(",").map(H=>H.toLocaleUpperCase().trim()).filter(H=>H!==""),y=a==null?void 0:a.split(",").map(H=>H.toLocaleUpperCase().trim()).filter(H=>H!==""),x=i==null?void 0:i.split(",").map(H=>H.toLocaleUpperCase().trim()).filter(H=>H!==""),[S,_]=k.useState(!1),[C,O]=k.useState(!!t),[N,R]=k.useState(!!n),{data:Z,status:F}=qv(["airports",b.origin],()=>cg(e,b.origin||"")),{data:B,status:ee}=qv(["airports",b.destination],()=>cg(e,b.destination||"")),J=()=>{const{origin:H,destination:lt,startDate:En,endDate:Bt}=b;_(!!(H&<&&En&&Bt))};k.useEffect(()=>{h(E(w({},b),{origin:t||null,destination:n||null})),O(!!t),R(!!n)},[t,n]),k.useEffect(()=>{J()},[b.origin,b.destination,b.startDate,b.endDate]);const te=x!=null&&x.length&&((io=B==null?void 0:B.airports)!=null&&io.length)?B.airports.filter(H=>x==null?void 0:x.find(lt=>lt===H.iata_code)):(B==null?void 0:B.airports)||[],pe=H=>{h(E(w({},b),{origin:H}))},I=H=>{h(E(w({},b),{destination:H}))},j=(H,lt)=>{h(E(w({},b),{startDate:H,endDate:lt}))},Q=()=>{const{origin:H,destination:lt}=b;O(N),R(C),h(E(w({},b),{origin:lt,destination:H}))},ue=H=>{H.preventDefault();const lt=new FormData(H.currentTarget),En=Object.fromEntries(lt.entries()),{origin:Bt,destination:rn}=En;let Sl=En["start-date"]||"",_l=En["end-date"]||"";if(!Bt||!rn||!Sl||!_l)throw new Error("All fields must be filled out");Sl=new Date(Sl).toISOString().split("T")[0],_l=new Date(_l).toISOString().split("T")[0];let At=`/fma/${Bt}/${Bt}-${rn}/${Sl}/${_l}/v1`;if(l){const zr=!At.includes("?")?"?":"&";At+=`${zr}enc_lid=${l}`}if(u){const zr=!At.includes("?")?"?":"&";At+=`${zr}enc_eid=${u}`}if(c){const zr=!At.includes("?")?"?":"&";At+=`${zr}enc_cid=${c}`}if(p!=null&&p.length||y!=null&&y.length){const zr=!At.includes("?")?"?":"&";At+=`${zr}fs=`,p!=null&&p.length&&(At+=`airlines=${p.join(",")}`,y!=null&&y.length&&(At+=";")),y!=null&&y.length&&(At+=`providers=${y.join(",")}`)}const B_=`${g}${At}`;window.open(B_,"_blank")},ne={filter:(H,lt)=>(H.toLocaleLowerCase(),!!lt.iata_code),getKey:H=>H==null?void 0:H.iata_code,getValue:H=>H==null?void 0:H.iata_code,items:(Z==null?void 0:Z.airports)||[],status:F,label:f,name:"origin",onChange:pe,value:b.origin,disabled:C,icon:$("div",{children:$(Aa,{className:"a1-w-6 a1-h-6",icon:qk})})},or={filter:(H,lt)=>(H.toLocaleLowerCase(),!!lt.iata_code),getKey:H=>H==null?void 0:H.iata_code,getValue:H=>H.iata_group||(H==null?void 0:H.iata_code),items:te,status:ee,label:d,name:"destination",value:J2(b.destination)||b.destination,disabled:N,onChange:I,icon:$("div",{children:$(Aa,{className:"a1-w-6 a1-h-6",icon:Kk})})},_t="a1-truncate a1-block",K="a1-opacity-80",ae="a1-h-full a1-grow-0 a1-rounded-lg a1-flex a1-align-center a1-items-center a1-gap-1 a1-bg-primary a1-text-white a1-px-4 a1-py-2 hover:a1-bg-secondary disabled:a1-bg-gray-400",Ie="a1-h-full a1-w-6 a1-flex a1-justify-center a1-items-center a1-text-gray-500 a1-rotate-90 lg:a1-rotate-0",sr={};return o&&o!=""&&o!=null&&(sr["--color-primary"]=o),s&&s!=""&&s!=null&&(sr["--color-secondary"]=s),$(Zv,{client:Q_,contextSharing:!0,children:$("div",E(w({},It("container")),{style:sr,children:ut("form",E(w({},It("form")),{className:"a1-flex a1-flex-col lg:a1-flex-row lg:a1-h-[48px] a1-gap-6",onSubmit:ue,children:[ut("div",E(w({},It("autocomplete-container")),{className:"a1-flex a1-flex-col lg:a1-flex-row a1-items-center a1-gap-2",children:[$("div",E(w({},It("autocomplete-wrapper")),{className:"a1-w-full",children:$(Wm,E(w({},ne),{children:(H,lt,En,Bt,rn)=>ut("li",E(w({},rn("item")),{className:`${En}`,children:[$("span",E(w({},rn("item-airport-name")),{className:_t,children:Bt.name})),$("span",E(w({},rn("item-iata-code")),{className:K,children:Bt.iata_code}))]}))}))})),$("button",E(w({},It("switch")),{type:"button",className:Ie,onClick:Q,children:$("svg",E(w({},It("switch-svg")),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:$("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21L3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})}))})),$("div",E(w({},It("autocomplete-wrapper")),{className:"a1-w-full",children:$(Wm,E(w({},or),{children:(H,lt,En,Bt,rn)=>ut("li",E(w({},rn("item")),{className:`${En}`,children:[$("span",E(w({},rn("item-airport-name")),{className:_t,children:Bt.name})),$("span",E(w({},rn("item-iata-code")),{className:K,children:Bt.iata_code}))]}))}))}))]})),$(g2,{startDateLabel:m,endDateLabel:v,onChange:j}),$("div",E(w({},It("search-button-container")),{className:"a1-flex a1-items-center a1-justify-center",children:ut("button",E(w({},It("search-button")),{disabled:!S,type:"submit",className:ae,children:[$("svg",E(w({},It("search-button-svg")),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:$("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})})),$("span",{className:"lg:a1-hidden",children:"Search"})]}))}))]}))}))})}fg.propTypes=ug;const H_=`/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}flight-search-form{--color-primary:#1d4ed8;--color-secondary:#bfdbfe}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.a1-absolute{position:absolute}.a1-relative{position:relative}.a1-left-1\\/2{left:50%}.a1-left-2{left:.5rem}.a1-right-2{right:.5rem}.a1-top-1\\/2{top:50%}.a1-top-full{top:100%}.a1-z-10{z-index:10}.a1-z-20{z-index:20}.a1-mt-2{margin-top:8px}.a1-block{display:block}.a1-flex{display:flex}.a1-grid{display:grid}.a1-h-10{height:40px}.a1-h-6{height:24px}.a1-h-8{height:32px}.a1-h-\\[2px\\]{height:2px}.a1-h-full{height:100%}.a1-max-h-56{max-height:224px}.a1-w-10{width:40px}.a1-w-6{width:24px}.a1-w-8{width:32px}.a1-w-full{width:100%}.a1-w-max{width:-moz-max-content;width:max-content}.a1-max-w-full{max-width:100%}.a1-flex-grow,.a1-grow{flex-grow:1}.a1-grow-0{flex-grow:0}.a1--translate-x-1\\/2{--tw-translate-x:-50%}.a1--translate-x-1\\/2,.a1-rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-rotate-90{--tw-rotate:90deg}.a1-scale-100{--tw-scale-x:1;--tw-scale-y:1}.a1-scale-100,.a1-scale-95{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.a1-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes a1-spin{to{transform:rotate(1turn)}}.a1-animate-spin{animation:a1-spin 1s linear infinite}.a1-cursor-not-allowed{cursor:not-allowed}.a1-cursor-pointer{cursor:pointer}.a1-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.a1-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.a1-flex-row{flex-direction:row}.a1-flex-col{flex-direction:column}.a1-items-center{align-items:center}.a1-justify-center{justify-content:center}.a1-justify-between{justify-content:space-between}.a1-gap-1{gap:4px}.a1-gap-2{gap:8px}.a1-gap-4{gap:16px}.a1-gap-6{gap:24px}.a1-overflow-hidden{overflow:hidden}.a1-overflow-x-hidden{overflow-x:hidden}.a1-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.a1-rounded-full{border-radius:9999px}.a1-rounded-lg{border-radius:8px}.a1-rounded-none{border-radius:0}.a1-border{border-width:1px}.a1-border-b{border-bottom-width:1px}.a1-border-l-0{border-left-width:0}.a1-border-r-0{border-right-width:0}.a1-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.a1-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.a1-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.a1-bg-primary{background-color:var(--color-primary)}.a1-bg-secondary{background-color:var(--color-secondary)}.a1-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.a1-fill-indigo-200{fill:#c7d2fe}.a1-fill-indigo-800{fill:#3730a3}.a1-p-0{padding:0}.a1-p-3{padding:12px}.a1-px-2{padding-left:8px;padding-right:8px}.a1-px-4{padding-left:16px;padding-right:16px}.a1-py-0{padding-bottom:0;padding-top:0}.a1-py-0\\.5{padding-bottom:2px;padding-top:2px}.a1-py-2{padding-bottom:8px;padding-top:8px}.a1-text-left{text-align:left}.a1-text-sm{font-size:14px}.a1-capitalize{text-transform:capitalize}.a1-tracking-wide{letter-spacing:.025em}.a1-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.a1-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.a1-text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.a1-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.a1-opacity-0{opacity:0}.a1-opacity-100{opacity:1}.a1-opacity-50{opacity:.5}.a1-opacity-60{opacity:.6}.a1-opacity-80{opacity:.8}.a1-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.a1-shadow-lg,.a1-shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.a1-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.a1-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.a1-ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))}.a1-ring-primary{--tw-ring-color:var(--color-primary)}.a1-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-duration-100{transition-duration:.1s}.a1-duration-75{transition-duration:75ms}.a1-ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.before\\:a1-absolute:before{content:var(--tw-content);position:absolute}.before\\:a1-bottom-0:before{bottom:0;content:var(--tw-content)}.before\\:a1-left-0:before{content:var(--tw-content);left:0}.before\\:a1-left-1\\/2:before{content:var(--tw-content);left:50%}.before\\:a1-right-0:before{content:var(--tw-content);right:0}.before\\:a1-right-1\\/2:before{content:var(--tw-content);right:50%}.before\\:a1-top-0:before{content:var(--tw-content);top:0}.before\\:a1-bg-gray-200:before{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));content:var(--tw-content)}.after\\:a1-absolute:after{content:var(--tw-content);position:absolute}.after\\:a1-bottom-0:after{bottom:0;content:var(--tw-content)}.after\\:a1-left-0:after{content:var(--tw-content);left:0}.after\\:a1-right-0:after{content:var(--tw-content);right:0}.after\\:a1-top-0:after{content:var(--tw-content);top:0}.after\\:a1-rounded-full:after{border-radius:9999px;content:var(--tw-content)}.after\\:a1-bg-primary:after{background-color:var(--color-primary);content:var(--tw-content)}.hover\\:a1-bg-secondary:hover{background-color:var(--color-secondary)}.hover\\:before\\:a1-ring-primary:hover:before{--tw-ring-color:var(--color-primary);content:var(--tw-content)}.hover\\:after\\:a1-absolute:hover:after{content:var(--tw-content);position:absolute}.hover\\:after\\:a1-left-0:hover:after{content:var(--tw-content);left:0}.hover\\:after\\:a1-right-0:hover:after{content:var(--tw-content);right:0}.hover\\:after\\:a1-z-10:hover:after{content:var(--tw-content);z-index:10}.hover\\:after\\:a1-h-full:hover:after{content:var(--tw-content);height:100%}.hover\\:after\\:a1-w-full:hover:after{content:var(--tw-content);width:100%}.hover\\:after\\:a1-rounded-full:hover:after{border-radius:9999px;content:var(--tw-content)}.hover\\:after\\:a1-ring-2:hover:after{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);content:var(--tw-content)}.focus\\:a1-border-primary:focus{border-color:var(--color-primary)}.focus\\:a1-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\\:a1-bg-gray-400:disabled{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}.disabled\\:a1-bg-white:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}@media (min-width:768px){.md\\:a1-bottom-2{bottom:.5rem}.md\\:a1-left-1\\/2{left:50%}.md\\:a1-top-2{top:.5rem}.md\\:a1-h-\\[initial\\]{height:auto}.md\\:a1-w-\\[2px\\]{width:2px}.md\\:a1-flex-row{flex-direction:row}.md\\:a1-items-center{align-items:center}}@media (min-width:1024px){.lg\\:a1-hidden{display:none}.lg\\:a1-h-\\[48px\\]{height:48px}.lg\\:a1-max-w-\\[none\\]{max-width:none}.lg\\:a1-rotate-0{--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:a1-flex-row{flex-direction:row}}
|
|
806
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L_(e){var t,n=e.beat,r=e.fade,a=e.beatFade,i=e.bounce,o=e.shake,s=e.flash,l=e.spin,u=e.spinPulse,c=e.spinReverse,d=e.pulse,f=e.fixedWidth,m=e.inverse,v=e.border,g=e.listItem,b=e.flip,h=e.size,p=e.rotation,y=e.pull,x=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":a,"fa-bounce":i,"fa-shake":o,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":c,"fa-spin-pulse":u,"fa-pulse":d,"fa-fw":f,"fa-inverse":m,"fa-border":v,"fa-li":g,"fa-flip":b===!0,"fa-flip-horizontal":b==="horizontal"||b==="both","fa-flip-vertical":b==="vertical"||b==="both"},Ia(t,"fa-".concat(h),typeof h!="undefined"&&h!==null),Ia(t,"fa-rotate-".concat(p),typeof p!="undefined"&&p!==null&&p!==0),Ia(t,"fa-pull-".concat(y),typeof y!="undefined"&&y!==null),Ia(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(x).map(function(S){return x[S]?S:null}).filter(function(S){return S})}function F_(e){return e=e-0,e===e}function ig(e){return F_(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var $_=["style"];function j_(e){return e.charAt(0).toUpperCase()+e.slice(1)}function z_(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),a=ig(n.slice(0,r)),i=n.slice(r+1).trim();return a.startsWith("webkit")?t[j_(a)]=i:t[a]=i,t},{})}function og(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return og(e,l)}),a=Object.keys(t.attributes||{}).reduce(function(l,u){var c=t.attributes[u];switch(u){case"class":l.attrs.className=c,delete t.attributes.class;break;case"style":l.attrs.style=z_(c);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=c:l.attrs[ig(u)]=c}return l},{attrs:{}}),i=n.style,o=i===void 0?{}:i,s=R_(n,$_);return a.attrs.style=ir(ir({},a.attrs.style),o),e.apply(void 0,[t.tag,ir(ir({},a.attrs),s)].concat(Jf(r)))}var sg=!1;try{sg=!0}catch(e){}function U_(){if(!sg&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function lg(e){if(e&&xl(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Xf.icon)return Xf.icon(e);if(e===null)return null;if(e&&xl(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function td(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ia({},e,t):{}}var Aa=ie.forwardRef(function(e,t){var n=e.icon,r=e.mask,a=e.symbol,i=e.className,o=e.title,s=e.titleId,l=e.maskId,u=lg(n),c=td("classes",[].concat(Jf(L_(e)),Jf(i.split(" ")))),d=td("transform",typeof e.transform=="string"?Xf.transform(e.transform):e.transform),f=td("mask",lg(r)),m=P_(u,ir(ir(ir(ir({},c),d),f),{},{symbol:a,title:o,titleId:s,maskId:l}));if(!m)return U_("Could not find icon",u),null;var v=m.abstract,g={ref:t};return Object.keys(e).forEach(function(b){Aa.defaultProps.hasOwnProperty(b)||(g[b]=e[b])}),W_(v[0],g)});Aa.displayName="FontAwesomeIcon",Aa.propTypes={beat:U.bool,border:U.bool,beatFade:U.bool,bounce:U.bool,className:U.string,fade:U.bool,flash:U.bool,mask:U.oneOfType([U.object,U.array,U.string]),maskId:U.string,fixedWidth:U.bool,inverse:U.bool,flip:U.oneOf([!0,!1,"horizontal","vertical","both"]),icon:U.oneOfType([U.object,U.array,U.string]),listItem:U.bool,pull:U.oneOf(["right","left"]),pulse:U.bool,rotation:U.oneOf([0,90,180,270]),shake:U.bool,size:U.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:U.bool,spinPulse:U.bool,spinReverse:U.bool,symbol:U.oneOfType([U.bool,U.string]),title:U.string,titleId:U.string,transform:U.oneOfType([U.string,U.object]),swapOpacity:U.bool},Aa.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var W_=og.bind(null,ie.createElement);const ug={apiDomain:U.string.isRequired,origin:U.string,destination:U.string,airlines:U.string,providers:U.string,destinations:U.string,primaryColor:U.string,secondaryColor:U.string,locationId:U.string,experimentId:U.string,clickId:U.string,arrivalAirportLabel:U.string,departureAirportLabel:U.string,departureDateLabel:U.string,returnDateLabel:U.string,workerUrl:U.string},Q_=new Wv;function cg(e,t){return an(this,null,function*(){return(yield(yield fetch(`${e}/api/search?q=${t}`)).json()).data})}function fg({apiDomain:e,origin:t,destination:n,airlines:r,providers:a,destinations:i,primaryColor:o,secondaryColor:s,locationId:l,experimentId:u,clickId:c,arrivalAirportLabel:d="Arrival Airport",departureAirportLabel:f="Departure Airport",departureDateLabel:m="Departure Date",returnDateLabel:v="Return Date",workerUrl:g="https://worker.flymyairport.com"}){var io;const[b,h]=k.useState({origin:t||null,destination:n||null,startDate:null,endDate:null});if(l&&l.length>50)throw new Error("locationId must be less than 50 characters");if(u&&u!=="0"&&u!=="1")throw new Error("experimentId must be 0 or 1");if(c&&!/^[a-zA-Z0-9_]{1,50}$/.test(c))throw new Error("clickId must be 1-50 characters and can only use letters, numbers and _");t=t==null?void 0:t.toLocaleUpperCase(),n=n==null?void 0:n.toLocaleUpperCase();const p=r==null?void 0:r.split(",").map(H=>H.toLocaleUpperCase().trim()).filter(H=>H!==""),y=a==null?void 0:a.split(",").map(H=>H.toLocaleUpperCase().trim()).filter(H=>H!==""),x=i==null?void 0:i.split(",").map(H=>H.toLocaleUpperCase().trim()).filter(H=>H!==""),[S,_]=k.useState(!1),[C,O]=k.useState(!!t),[N,R]=k.useState(!!n),{data:Z,status:F}=qv(["airports",b.origin],()=>cg(e,b.origin||"")),{data:B,status:ee}=qv(["airports",b.destination],()=>cg(e,b.destination||"")),J=()=>{const{origin:H,destination:lt,startDate:En,endDate:Bt}=b;_(!!(H&<&&En&&Bt))};k.useEffect(()=>{h(E(w({},b),{origin:t||null,destination:n||null})),O(!!t),R(!!n)},[t,n]),k.useEffect(()=>{J()},[b.origin,b.destination,b.startDate,b.endDate]);const te=x!=null&&x.length&&((io=B==null?void 0:B.airports)!=null&&io.length)?B.airports.filter(H=>x==null?void 0:x.find(lt=>lt===H.iata_code)):(B==null?void 0:B.airports)||[],pe=H=>{h(E(w({},b),{origin:H}))},I=H=>{h(E(w({},b),{destination:H}))},j=(H,lt)=>{h(E(w({},b),{startDate:H,endDate:lt}))},Q=()=>{const{origin:H,destination:lt}=b;O(N),R(C),h(E(w({},b),{origin:lt,destination:H}))},ue=H=>{H.preventDefault();const lt=new FormData(H.currentTarget),En=Object.fromEntries(lt.entries()),{origin:Bt,destination:rn}=En;let Sl=En["start-date"]||"",_l=En["end-date"]||"";if(!Bt||!rn||!Sl||!_l)throw new Error("All fields must be filled out");Sl=new Date(Sl).toISOString().split("T")[0],_l=new Date(_l).toISOString().split("T")[0];let At=`/fma/${Bt}/${Bt}-${rn}/${Sl}/${_l}/v1`;if(l){const zr=!At.includes("?")?"?":"&";At+=`${zr}enc_lid=${l}`}if(u){const zr=!At.includes("?")?"?":"&";At+=`${zr}enc_eid=${u}`}if(c){const zr=!At.includes("?")?"?":"&";At+=`${zr}enc_cid=${c}`}if(p!=null&&p.length||y!=null&&y.length){const zr=!At.includes("?")?"?":"&";At+=`${zr}fs=`,p!=null&&p.length&&(At+=`airlines=${p.join(",")}`,y!=null&&y.length&&(At+=";")),y!=null&&y.length&&(At+=`providers=${y.join(",")}`)}const B_=`${g}${At}`;window.open(B_,"_blank")},ne={filter:(H,lt)=>(H.toLocaleLowerCase(),!!lt.iata_code),getKey:H=>H==null?void 0:H.iata_code,getValue:H=>H==null?void 0:H.iata_code,items:(Z==null?void 0:Z.airports)||[],status:F,label:f,name:"origin",onChange:pe,value:b.origin,disabled:C,icon:$(Aa,{className:"a1-w-6 a1-h-6",icon:qk})},or={filter:(H,lt)=>(H.toLocaleLowerCase(),!!lt.iata_code),getKey:H=>H==null?void 0:H.iata_code,getValue:H=>H.iata_group||(H==null?void 0:H.iata_code),items:te,status:ee,label:d,name:"destination",value:J2(b.destination)||b.destination,disabled:N,onChange:I,icon:$(Aa,{className:"a1-w-6 a1-h-6",icon:Kk})},_t="a1-truncate a1-block",K="a1-opacity-80",ae="a1-h-full a1-grow-0 a1-rounded-lg a1-flex a1-align-center a1-items-center a1-gap-1 a1-bg-primary a1-text-white a1-px-4 a1-py-2 hover:a1-bg-secondary disabled:a1-bg-gray-400",Ie="a1-h-full a1-w-6 a1-flex a1-justify-center a1-items-center a1-text-gray-500 a1-rotate-90 lg:a1-rotate-0",sr={};return o&&o!=""&&o!=null&&(sr["--color-primary"]=o),s&&s!=""&&s!=null&&(sr["--color-secondary"]=s),$(Zv,{client:Q_,contextSharing:!0,children:$("div",E(w({},It("container")),{style:sr,children:ut("form",E(w({},It("form")),{className:"a1-flex a1-flex-col lg:a1-flex-row lg:a1-h-[48px] a1-gap-6",onSubmit:ue,children:[ut("div",E(w({},It("autocomplete-container")),{className:"a1-flex a1-flex-col lg:a1-flex-row a1-items-center a1-gap-2",children:[$("div",E(w({},It("autocomplete-wrapper")),{className:"a1-w-full",children:$(Wm,E(w({},ne),{children:(H,lt,En,Bt,rn)=>ut("li",E(w({},rn("item")),{className:`${En}`,children:[$("span",E(w({},rn("item-airport-name")),{className:_t,children:Bt.name})),$("span",E(w({},rn("item-iata-code")),{className:K,children:Bt.iata_code}))]}))}))})),$("button",E(w({},It("switch")),{type:"button",className:Ie,onClick:Q,children:$("svg",E(w({},It("switch-svg")),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:$("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21L3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})}))})),$("div",E(w({},It("autocomplete-wrapper")),{className:"a1-w-full",children:$(Wm,E(w({},or),{children:(H,lt,En,Bt,rn)=>ut("li",E(w({},rn("item")),{className:`${En}`,children:[$("span",E(w({},rn("item-airport-name")),{className:_t,children:Bt.name})),$("span",E(w({},rn("item-iata-code")),{className:K,children:Bt.iata_code}))]}))}))}))]})),$(g2,{startDateLabel:m,endDateLabel:v,onChange:j}),$("div",E(w({},It("search-button-container")),{className:"a1-flex a1-items-center a1-justify-center",children:ut("button",E(w({},It("search-button")),{disabled:!S,type:"submit",className:ae,children:[$("svg",E(w({},It("search-button-svg")),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"a1-w-6 a1-h-6",children:$("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})})),$("span",{className:"lg:a1-hidden",children:"Search"})]}))}))]}))}))})}fg.propTypes=ug;const H_=`/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}flight-search-form{--color-primary:#1d4ed8;--color-secondary:#bfdbfe}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.a1-absolute{position:absolute}.a1-relative{position:relative}.a1-left-1\\/2{left:50%}.a1-left-2{left:.5rem}.a1-right-2{right:.5rem}.a1-top-1\\/2{top:50%}.a1-top-full{top:100%}.a1-z-10{z-index:10}.a1-z-20{z-index:20}.a1-mr-2{margin-right:8px}.a1-mt-2{margin-top:8px}.a1-block{display:block}.a1-flex{display:flex}.a1-grid{display:grid}.a1-h-10{height:40px}.a1-h-6{height:24px}.a1-h-8{height:32px}.a1-h-\\[2px\\]{height:2px}.a1-h-full{height:100%}.a1-max-h-56{max-height:224px}.a1-w-10{width:40px}.a1-w-6{width:24px}.a1-w-8{width:32px}.a1-w-full{width:100%}.a1-w-max{width:-moz-max-content;width:max-content}.a1-max-w-full{max-width:100%}.a1-flex-grow,.a1-grow{flex-grow:1}.a1-grow-0{flex-grow:0}.a1--translate-x-1\\/2{--tw-translate-x:-50%}.a1--translate-x-1\\/2,.a1-rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-rotate-90{--tw-rotate:90deg}.a1-scale-100{--tw-scale-x:1;--tw-scale-y:1}.a1-scale-100,.a1-scale-95{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.a1-scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.a1-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes a1-spin{to{transform:rotate(1turn)}}.a1-animate-spin{animation:a1-spin 1s linear infinite}.a1-cursor-not-allowed{cursor:not-allowed}.a1-cursor-pointer{cursor:pointer}.a1-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.a1-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.a1-flex-row{flex-direction:row}.a1-flex-col{flex-direction:column}.a1-items-center{align-items:center}.a1-justify-center{justify-content:center}.a1-justify-between{justify-content:space-between}.a1-gap-1{gap:4px}.a1-gap-2{gap:8px}.a1-gap-4{gap:16px}.a1-gap-6{gap:24px}.a1-overflow-hidden{overflow:hidden}.a1-overflow-x-hidden{overflow-x:hidden}.a1-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.a1-rounded-full{border-radius:9999px}.a1-rounded-lg{border-radius:8px}.a1-rounded-none{border-radius:0}.a1-border{border-width:1px}.a1-border-b{border-bottom-width:1px}.a1-border-l-0{border-left-width:0}.a1-border-r-0{border-right-width:0}.a1-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.a1-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.a1-bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.a1-bg-primary{background-color:var(--color-primary)}.a1-bg-secondary{background-color:var(--color-secondary)}.a1-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.a1-fill-indigo-200{fill:#c7d2fe}.a1-fill-indigo-800{fill:#3730a3}.a1-p-0{padding:0}.a1-p-3{padding:12px}.a1-px-2{padding-left:8px;padding-right:8px}.a1-px-4{padding-left:16px;padding-right:16px}.a1-py-0{padding-bottom:0;padding-top:0}.a1-py-0\\.5{padding-bottom:2px;padding-top:2px}.a1-py-2{padding-bottom:8px;padding-top:8px}.a1-text-left{text-align:left}.a1-text-sm{font-size:14px}.a1-capitalize{text-transform:capitalize}.a1-tracking-wide{letter-spacing:.025em}.a1-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.a1-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.a1-text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.a1-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.a1-opacity-0{opacity:0}.a1-opacity-100{opacity:1}.a1-opacity-50{opacity:.5}.a1-opacity-60{opacity:.6}.a1-opacity-80{opacity:.8}.a1-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.a1-shadow-lg,.a1-shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.a1-shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.a1-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.a1-ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))}.a1-ring-primary{--tw-ring-color:var(--color-primary)}.a1-transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.a1-duration-100{transition-duration:.1s}.a1-duration-75{transition-duration:75ms}.a1-ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.before\\:a1-absolute:before{content:var(--tw-content);position:absolute}.before\\:a1-bottom-0:before{bottom:0;content:var(--tw-content)}.before\\:a1-left-0:before{content:var(--tw-content);left:0}.before\\:a1-left-1\\/2:before{content:var(--tw-content);left:50%}.before\\:a1-right-0:before{content:var(--tw-content);right:0}.before\\:a1-right-1\\/2:before{content:var(--tw-content);right:50%}.before\\:a1-top-0:before{content:var(--tw-content);top:0}.before\\:a1-bg-gray-200:before{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity));content:var(--tw-content)}.after\\:a1-absolute:after{content:var(--tw-content);position:absolute}.after\\:a1-bottom-0:after{bottom:0;content:var(--tw-content)}.after\\:a1-left-0:after{content:var(--tw-content);left:0}.after\\:a1-right-0:after{content:var(--tw-content);right:0}.after\\:a1-top-0:after{content:var(--tw-content);top:0}.after\\:a1-rounded-full:after{border-radius:9999px;content:var(--tw-content)}.after\\:a1-bg-primary:after{background-color:var(--color-primary);content:var(--tw-content)}.hover\\:a1-bg-secondary:hover{background-color:var(--color-secondary)}.hover\\:before\\:a1-ring-primary:hover:before{--tw-ring-color:var(--color-primary);content:var(--tw-content)}.hover\\:after\\:a1-absolute:hover:after{content:var(--tw-content);position:absolute}.hover\\:after\\:a1-left-0:hover:after{content:var(--tw-content);left:0}.hover\\:after\\:a1-right-0:hover:after{content:var(--tw-content);right:0}.hover\\:after\\:a1-z-10:hover:after{content:var(--tw-content);z-index:10}.hover\\:after\\:a1-h-full:hover:after{content:var(--tw-content);height:100%}.hover\\:after\\:a1-w-full:hover:after{content:var(--tw-content);width:100%}.hover\\:after\\:a1-rounded-full:hover:after{border-radius:9999px;content:var(--tw-content)}.hover\\:after\\:a1-ring-2:hover:after{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);content:var(--tw-content)}.focus\\:a1-border-primary:focus{border-color:var(--color-primary)}.focus\\:a1-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\\:a1-bg-gray-400:disabled{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}.disabled\\:a1-bg-white:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}@media (min-width:768px){.md\\:a1-bottom-2{bottom:.5rem}.md\\:a1-left-1\\/2{left:50%}.md\\:a1-top-2{top:.5rem}.md\\:a1-h-\\[initial\\]{height:auto}.md\\:a1-w-\\[2px\\]{width:2px}.md\\:a1-flex-row{flex-direction:row}.md\\:a1-items-center{align-items:center}}@media (min-width:1024px){.lg\\:a1-hidden{display:none}.lg\\:a1-h-\\[48px\\]{height:48px}.lg\\:a1-max-w-\\[none\\]{max-width:none}.lg\\:a1-rotate-0{--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:a1-flex-row{flex-direction:row}}
|
|
807
807
|
`,V_=new Wv;function kl(e){return ut(Zv,{client:V_,contextSharing:!0,children:[$("style",{children:H_}),$(fg,w({},e))]})}kl.propTypes=ug;class dg extends HTMLElement{connectedCallback(){const t=document.createElement("span");this.attachShadow({mode:"open"}).appendChild(t);const n=Object.keys(kl.propTypes).reduce((a,i)=>{const o=this.getAttribute(i.toLocaleLowerCase());return o!=null&&(a[i]=o),a},{});Il.createRoot(t).render($(kl,w({apiDomain:"https://flymyairport.vercel.app"},n)))}}return customElements.define("flight-search-form",dg),ke.FlightSearchForm=dg,ke.default=kl,Object.defineProperties(ke,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),ke}({});
|