1/*! For license information please see raffle-search-dialog.island.umd.js.LICENSE.txt */ 2!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,()=>(()=>{"use strict";var e,t,n={8653(e,t,n){n.r(t),n.d(t,{Children:()=>Y,Component:()=>a.uA,Fragment:()=>a.FK,PureComponent:()=>K,StrictMode:()=>a.FK,Suspense:()=>ne,SuspenseList:()=>ie,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Se,cloneElement:()=>Fe,createContext:()=>a.q6,createElement:()=>a.n,createFactory:()=>Oe,createPortal:()=>le,createRef:()=>a._3,default:()=>De,findDOMNode:()=>Ae,flushSync:()=>Ie,forwardRef:()=>z,hydrate:()=>ve,isElement:()=>Ne,isFragment:()=>Pe,isMemo:()=>ke,isValidElement:()=>Re,lazy:()=>oe,memo:()=>B,render:()=>_e,startTransition:()=>Q,unmountComponentAtNode:()=>Te,unstable_batchedUpdates:()=>Me,useCallback:()=>x,useContext:()=>O,useDebugValue:()=>R,useDeferredValue:()=>H,useEffect:()=>b,useErrorBoundary:()=>P,useId:()=>k,useImperativeHandle:()=>C,useInsertionEffect:()=>W,useLayoutEffect:()=>w,useMemo:()=>S,useReducer:()=>g,useRef:()=>E,useState:()=>y,useSyncExternalStore:()=>L,useTransition:()=>$,version:()=>xe});var r,o,i,s,a=n(23),u=0,l=[],c=a.fF,d=c.__b,f=c.__r,h=c.diffed,p=c.__c,m=c.unmount,_=c.__;function v(e,t){c.__h&&c.__h(o,e,u||t),u=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function y(e){return u=1,g(D,e)}function g(e,t,n){var i=v(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):D(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.__f)){var s=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter(function(e){return e.__c});if(r.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=i.__c.props!==e;return r.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),a&&a.call(this,e,t,n)||o};o.__f=!0;var a=o.shouldComponentUpdate,u=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,s(e,t,n),a=r}u&&u.call(this,e,t,n)},o.shouldComponentUpdate=s}return i.__N||i.__}function b(e,t){var n=v(r++,3);!c.__s&&N(n.__H,t)&&(n.__=e,n.u=t,o.__H.__h.push(n))}function w(e,t){var n=v(r++,4);!c.__s&&N(n.__H,t)&&(n.__=e,n.u=t,o.__h.push(n))}function E(e){return u=5,S(function(){return{current:e}},[])}function C(e,t,n){u=6,w(function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}},null==n?n:n.concat(e))}function S(e,t){var n=v(r++,7);return N(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function x(e,t){return u=8,S(function(){return e},t)}function O(e){var t=o.context[e.__c],n=v(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function R(e,t){c.useDebugValue&&c.useDebugValue(t?t(e):e)}function P(e){var t=v(r++,10),n=y();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function k(){var e=v(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function F(){for(var e;e=l.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(M),t.__h.some(I),t.__h=[]}catch(n){t.__h=[],c.__e(n,e.__v)}}}c.__b=function(e){o=null,d&&d(e)},c.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_&&_(e,t)},c.__r=function(e){f&&f(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(M),t.__h.some(I),t.__h=[],r=0)),i=o},c.diffed=function(e){h&&h(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&s===c.requestAnimationFrame||((s=c.requestAnimationFrame)||A)(F)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),i=o=null},c.__c=function(e,t){t.some(function(e){try{e.__h.some(M),e.__h=e.__h.filter(function(e){return!e.__||I(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],c.__e(n,e.__v)}}),p&&p(e,t)},c.unmount=function(e){m&&m(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{M(e)}catch(e){t=e}}),n.__H=void 0,t&&c.__e(t,n.__v))};var T="function"==typeof requestAnimationFrame;function A(e){var t,n=function(){clearTimeout(r),T&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);T&&(t=requestAnimationFrame(n))}function M(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function I(e){var t=o;e.__c=e.__(),o=t}function N(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function D(e,t){return"function"==typeof t?t(e):t}function q(e,t){for(var n in t)e[n]=t[n];return e}function j(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function L(e,t){var n=t(),r=y({t:{__:n,u:t}}),o=r[0].t,i=r[1];return w(function(){o.__=n,o.u=t,U(o)&&i({t:o})},[e,n,t]),b(function(){return U(o)&&i({t:o}),e(function(){U(o)&&i({t:o})})},[e]),n}function U(e){try{return!((t=e.__)===(n=e.u())&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}var t,n}function Q(e){e()}function H(e){return e}function $(){return[!1,Q]}var W=w;function K(e,t){this.props=e,this.context=t}function B(e,t){function n(e){var n=this.props.ref;return n!=e.ref&&n&&("function"==typeof n?n(null):n.current=null),t?!t(this.props,e)||n!=e.ref:j(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,a.n)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.__f=r.prototype.isReactComponent=!0,r.type=e,r}(K.prototype=new a.uA).isPureReactComponent=!0,K.prototype.shouldComponentUpdate=function(e,t){return j(this.props,e)||j(this.state,t)};var V=a.fF.__b;a.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),V&&V(e)};var X="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function z(e){function t(t){var n=q({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=X,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var G=function(e,t){return null==e?null:(0,a.v2)((0,a.v2)(e).map(t))},Y={map:G,forEach:G,count:function(e){return e?(0,a.v2)(e).length:0},only:function(e){var t=(0,a.v2)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:a.v2},Z=a.fF.__e;a.fF.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Z(e,t,n,r)};var J=a.fF.unmount;function ee(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=q({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return ee(e,t,n)})),e}function te(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return te(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function ne(){this.__u=0,this.o=null,this.__b=null}function re(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function oe(e){var t,n,r,o=null;function i(i){if(t||(t=e()).then(function(e){e&&(o=e.default||e),r=!0},function(e){n=e,r=!0}),n)throw n;if(!r)throw t;return o?(0,a.n)(o,i):null}return i.displayName="Lazy",i.__f=!0,i}function ie(){this.i=null,this.l=null}a.fF.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),J&&J(e)},(ne.prototype=new a.uA).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=re(r.__v),i=!1,s=function(){i||r.__z||(i=!0,n.__R=null,o?o(u):u())};n.__R=s;var a=n.__P;n.__P=null;var u=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=te(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.__P=a,t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},ne.prototype.componentWillUnmount=function(){this.o=[]},ne.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ee(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&(0,a.n)(a.FK,null,e.fallback);return o&&(o.__u&=-33),[(0,a.n)(a.FK,null,t.__a?null:e.children),o]};var se=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function ae(e){return this.getChildContext=function(){return e.context},e.children}function ue(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){(0,a.XX)(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;null!==r&&!r.__m&&null!==r.__;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}(0,a.XX)((0,a.n)(ae,{context:t.context},e.__v),t.v)}function le(e,t){var n=(0,a.n)(ue,{__v:e,h:t});return n.containerInfo=t,n}(ie.prototype=new a.uA).__a=function(e){var t=this,n=re(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),se(t,e,r)):o()};n?n(i):i()}},ie.prototype.render=function(e){this.i=null,this.l=new Map;var t=(0,a.v2)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},ie.prototype.componentDidUpdate=ie.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){se(e,n,t)})};var ce="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,de=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,fe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,he=/[A-Z0-9]/g,pe="undefined"!=typeof document,me=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};
2function _e(e,t,n){return null==t.__k&&(t.textContent=""),(0,a.XX)(e,t),"function"==typeof n&&n(),e?e.__c:null}function ve(e,t,n){return(0,a.Qv)(e,t),"function"==typeof n&&n(),e?e.__c:null}a.uA.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(a.uA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ye=a.fF.event;a.fF.event=function(e){return ye&&(e=ye(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var ge,be={configurable:!0,get:function(){return this.class}},we=a.fF.vnode;a.fF.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1==n.indexOf("-");for(var i in t){var s=t[i];if(!("value"===i&&"defaultValue"in t&&null==s||pe&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var u=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===s?s="":"translate"===u&&"no"===s?s=!1:"o"===u[0]&&"n"===u[1]?"ondoubleclick"===u?i="ondblclick":"onchange"!==u||"input"!==n&&"textarea"!==n||me(t.type)?"onfocus"===u?i="onfocusin":"onblur"===u?i="onfocusout":fe.test(i)&&(i=u):u=i="oninput":o&&de.test(i)?i=i.replace(he,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===u&&r[i=u]&&(i="oninputCapture"),r[i]=s}}"select"==n&&(r.multiple&&Array.isArray(r.value)&&(r.value=(0,a.v2)(t.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),null!=r.defaultValue&&(r.value=(0,a.v2)(t.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",be)):t.className&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=ce,we&&we(e)};var Ee=a.fF.__r;a.fF.__r=function(e){Ee&&Ee(e),ge=e.__c};
2var Ce=a.fF.diffed;a.fF.diffed=function(e){Ce&&Ce(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),ge=null};var Se={ReactCurrentDispatcher:{current:{readContext:function(e){return ge.__n[e.__c].props.value},useCallback:x,useContext:O,useDebugValue:R,useDeferredValue:H,useEffect:b,useId:k,useImperativeHandle:C,useInsertionEffect:W,useLayoutEffect:w,useMemo:S,useReducer:g,useRef:E,useState:y,useSyncExternalStore:L,useTransition:$}}},xe="18.3.1";function Oe(e){return a.n.bind(null,e)}function Re(e){return!!e&&e.$$typeof===ce}function Pe(e){return Re(e)&&e.type===a.FK}function ke(e){return!!e&&"string"==typeof e.displayName&&0==e.displayName.indexOf("Memo(")}function Fe(e){return Re(e)?a.Ob.apply(null,arguments):e}function Te(e){return!!e.__k&&((0,a.XX)(null,e),!0)}function Ae(e){return e&&(e.base||1===e.nodeType&&e)||null}var Me=function(e,t){return e(t)},Ie=function(e,t){var n=a.fF.debounceRendering;a.fF.debounceRendering=function(e){return e()};var r=e(t);return a.fF.debounceRendering=n,r},Ne=Re,De={useState:y,useId:k,useReducer:g,useEffect:b,useLayoutEffect:w,useInsertionEffect:W,useTransition:$,useDeferredValue:H,useSyncExternalStore:L,startTransition:Q,useRef:E,useImperativeHandle:C,useMemo:S,useCallback:x,useContext:O,useDebugValue:R,version:"18.3.1",Children:Y,render:_e,hydrate:ve,unmountComponentAtNode:Te,createPortal:le,createElement:a.n,createContext:a.q6,createFactory:Oe,cloneElement:Fe,createRef:a._3,Fragment:a.FK,isValidElement:Re,isElement:Ne,isFragment:Pe,isMemo:ke,findDOMNode:Ae,Component:a.uA,PureComponent:K,memo:B,forwardRef:z,flushSync:Ie,unstable_batchedUpdates:Me,StrictMode:a.FK,Suspense:ne,SuspenseList:ie,lazy:oe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Se}},23(e,t,n){n.d(t,{FK:()=>R,Ob:()=>Z,Qv:()=>Y,XX:()=>G,_3:()=>O,fF:()=>o,h:()=>S,n:()=>S,q6:()=>J,uA:()=>P,v2:()=>q});var r,o,i,s,a,u,l,c,d,f,h,p,m,_,v,y={},g=[],b=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w=Array.isArray;function E(e,t){for(var n in t)e[n]=t[n];return e}function C(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function S(e,t,n){var o,i,s,a={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return x(e,a,o,i,null)}function x(e,t,n,r,s){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==s?++i:s,__i:-1,__u:0};return null==s&&null!=o.vnode&&o.vnode(a),a}function O(){return{current:null}}function R(e){return e.children}function P(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?k(e):null}function F(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],i=[],s=E({},t);s.__v=t.__v+1,o.vnode&&o.vnode(s),H(e.__P,s,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,null==n?k(t):n,!!(32&t.__u),i),s.__v=t.__v,s.__.__k[s.__i]=s,W(r,s,i),t.__e=t.__=null,s.__e!=n&&T(s)}}function T(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),T(e)}function A(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!M.__r++||a!=o.debounceRendering)&&((a=o.debounceRendering)||u)(M)}function M(){try{for(var e,t=1;s.length;)s.length>t&&s.sort(l),e=s.shift(),t=s.length,F(e)}finally{s.length=M.__r=0}}function I(e,t,n,r,o,i,s,a,u,l,c){var d,f,h,p,m,_,v,b=r&&r.__k||g,w=t.length;for(u=N(n,t,b,u,w),d=0;d<w;d++)null!=(h=n.__k[d])&&(f=-1!=h.__i&&b[h.__i]||y,h.__i=d,_=H(e,h,f,o,i,s,a,u,l,c),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&V(f.ref,null,h),c.push(h.ref,h.__c||p,h)),null==m&&null!=p&&(m=p),(v=!!(4&h.__u))||f.__k===h.__k?(u=D(h,u,e,v),v&&f.__e&&(f.__e=null)):"function"==typeof h.type&&void 0!==_?u=_:p&&(u=p.nextSibling),h.__u&=-7);return n.__e=m,u}function N(e,t,n,r,o){var i,s,a,u,l,c=n.length,d=c,f=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(s=t[i])&&"boolean"!=typeof s&&"function"!=typeof s?("string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?s=e.__k[i]=x(null,s,null,null,null):w(s)?s=e.__k[i]=x(R,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?s=e.__k[i]=x(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[i]=s,u=i+f,s.__=e,s.__b=e.__b+1,a=null,-1!=(l=s.__i=j(s,n,u,d))&&(d--,(a=n[l])&&(a.__u|=2)),null==a||null==a.__v?(-1==l&&(o>c?f--:o<c&&f++),"function"!=typeof s.type&&(s.__u|=4)):l!=u&&(l==u-1?f--:l==u+1?f++:(l>u?f--:f++,s.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<c;i++)null!=(a=n[i])&&!(2&a.__u)&&(a.__e==r&&(r=k(a)),X(a,a));return r}function D(e,t,n,r){var o,i;if("function"==typeof e.type){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=D(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=k(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function q(e,t){return t=t||[],null==e||"boolean"==typeof e||(w(e)?e.some(function(e){q(e,t)}):t.push(e)),t}function j(e,t,n,r){var o,i,s,a=e.key,u=e.type,l=t[n],c=null!=l&&!(2&l.__u);
vendor: 5,443 bytes, line 2
2if(null===l&&null==a||c&&a==l.key&&u==l.type)return n;if(r>(c?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;)if(null!=(l=t[s=o>=0?o--:i++])&&!(2&l.__u)&&a==l.key&&u==l.type)return s;return-1}function L(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||b.test(t)?n:n+"px"}function U(e,t,n,r,o){var i,s;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||L(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||L(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(h,"$1")),s=t.toLowerCase(),t=s in e||"onFocusOut"==t||"onFocusIn"==t?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n[f]=r[f]:(n[f]=p,e.addEventListener(t,i?_:m,i)):e.removeEventListener(t,i?_:m,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function Q(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t[d])t[d]=p++;else if(t[d]<n[f])return;return n(o.event?o.event(t):t)}}}function H(e,t,n,r,i,s,a,u,l,c){var d,f,h,p,m,_,v,y,b,S,x,O,k,F,T,A=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),s=[u=t.__e=n.__e]),(d=o.__b)&&d(t);e:if("function"==typeof A)try{if(y=t.props,b=A.prototype&&A.prototype.render,S=(d=A.contextType)&&r[d.__c],x=d?S?S.props.value:d.__:r,n.__c?v=(f=t.__c=n.__c).__=f.__E:(b?t.__c=f=new A(y,x):(t.__c=f=new P(y,x),f.constructor=A,f.render=z),S&&S.sub(f),f.state||(f.state={}),f.__n=r,h=f.__d=!0,f.__h=[],f._sb=[]),b&&null==f.__s&&(f.__s=f.state),b&&null!=A.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=E({},f.__s)),E(f.__s,A.getDerivedStateFromProps(y,f.__s))),p=f.props,m=f.state,f.__v=t,h)b&&null==A.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),b&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(b&&null==A.getDerivedStateFromProps&&y!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(y,x),t.__v==n.__v||!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(y,f.__s,x)){t.__v!=n.__v&&(f.props=y,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),g.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(y,f.__s,x),b&&null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(p,m,_)})}if(f.context=x,f.props=y,f.__P=e,f.__e=!1,O=o.__r,k=0,b)f.state=f.__s,f.__d=!1,O&&O(t),d=f.render(f.props,f.state,f.context),g.push.apply(f.__h,f._sb),f._sb=[];else do{f.__d=!1,O&&O(t),d=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++k<25);f.state=f.__s,null!=f.getChildContext&&(r=E(E({},r),f.getChildContext())),b&&!h&&null!=f.getSnapshotBeforeUpdate&&(_=f.getSnapshotBeforeUpdate(p,m)),F=null!=d&&d.type===R&&null==d.key?K(d.props.children):d,u=I(e,w(F)?F:[F],t,n,r,i,s,a,u,l,c),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),v&&(f.__E=f.__=null)}catch(e){if(t.__v=null,l||null!=s)if(e.then){for(t.__u|=l?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;s[s.indexOf(u)]=null,t.__e=u}else{for(T=s.length;T--;)C(s[T]);$(t)}else t.__e=n.__e,t.__k=n.__k,e.then||$(t);o.__e(e,t,n)}else null==s&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):u=t.__e=B(n.__e,t,n,r,i,s,a,l,c);return(d=o.diffed)&&d(t),128&t.__u?void 0:u}function $(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some($))}function W(e,t,n){for(var r=0;r<n.length;r++)V(n[r],n[++r],n[++r]);o.__c&&o.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){o.__e(e,t.__v)}})}function K(e){return"object"!=typeof e||null==e||e.__b>0?e:w(e)?e.map(K):void 0!==e.constructor?null:E({},e)}function B(e,t,n,i,s,a,u,l,c){var d,f,h,p,m,_,v,g=n.props||y,b=t.props,E=t.type;if("svg"==E?s="http://www.w3.org/2000/svg":"math"==E?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),null!=a)for(d=0;d<a.length;d++)if((m=a[d])&&"setAttribute"in m==!!E&&(E?m.localName==E:3==m.nodeType)){e=m,a[d]=null;break}if(null==e){if(null==E)return document.createTextNode(b);e=document.createElementNS(s,E,b.is&&b),l&&(o.__m&&o.__m(t,a),l=!1),a=null}if(null==E)g===b||l&&e.data==b||(e.data=b);else{if(a="textarea"==E&&null!=b.defaultValue?null:a&&r.call(e.childNodes),!l&&null!=a)for(g={},d=0;d<e.attributes.length;d++)g[(m=e.attributes[d]).name]=m.value;for(d in g)m=g[d],"dangerouslySetInnerHTML"==d?h=m:"children"==d||d in b||"value"==d&&"defaultValue"in b||"checked"==d&&"defaultChecked"in b||U(e,d,null,m,s);for(d in b)m=b[d],"children"==d?p=m:"dangerouslySetInnerHTML"==d?f=m:"value"==d?_=m:"checked"==d?v=m:l&&"function"!=typeof m||g[d]===m||U(e,d,m,g[d],s);if(f)l||h&&(f.__html==h.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(h&&(e.innerHTML=""),I("template"==t.type?e.content:e,w(p)?p:[p],t,n,i,"foreignObject"==E?"http://www.w3.org/1999/xhtml":s,a,u,a?a[0]:n.__k&&k(n,0),l,c),null!=a)for(d=a.length;d--;)C(a[d]);l&&"textarea"!=E||(d="value","progress"==E&&null==_?e.removeAttribute("value"):null!=_&&(_!==e[d]||"progress"==E&&!_||"option"==E&&_!=g[d])&&U(e,d,_,g[d],s),d="checked",null!=v&&v!=e[d]&&U(e,d,v,g[d],s))}return e}
vendor: 2,389 bytes, line 2
2function V(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){o.__e(e,n)}}function X(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||V(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&X(r[i],t,n||"function"!=typeof e.type);n||C(e.__e),e.__c=e.__=e.__e=void 0}function z(e,t,n){return this.constructor(e,n)}function G(e,t,n){var i,s,a,u;t==document&&(t=document.documentElement),o.__&&o.__(e,t),s=(i="function"==typeof n)?null:n&&n.__k||t.__k,a=[],u=[],H(t,e=(!i&&n||t).__k=S(R,null,[e]),s||y,y,t.namespaceURI,!i&&n?[n]:s?null:t.firstChild?r.call(t.childNodes):null,a,!i&&n?n:s?s.__e:t.firstChild,i,u),W(a,e,u)}function Y(e,t){G(e,t,Y)}function Z(e,t,n){var o,i,s,a,u=E({},e.props);for(s in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==s?o=t[s]:"ref"==s?i=t[s]:u[s]=void 0===t[s]&&null!=a?a[s]:t[s];return arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),x(e.type,u,o||e.key,i||e.ref,null)}function J(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,A(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+v++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}r=g.slice,o={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},i=0,P.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=E({},this.state),"function"==typeof e&&(e=e(E({},n),this.props)),e&&E(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),A(this))},P.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},P.prototype.render=R,s=[],u="function"==typeof Promise?Promise.prototype.then.bind(Prom
2ise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},M.__r=0,c=Math.random().toString(8),d="__d"+c,f="__a"+c,h=/(PointerCapture)$|Capture$/i,p=0,m=Q(!1),_=Q(!0),v=0},1165(e,t,n){var r=n(8653);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,s=r.useRef,a=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=u(function(){function e(e){if(!a){if(a=!0,i=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return s=t}return s=e}if(t=s,o(i,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(i=e,t):(i=e,s=n)}var i,s,a=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,c]);var h=i(e,d[0],d[1]);return a(function(){f.hasValue=!0,f.value=h},[h]),l(h),h}},4445(e,t,n){e.exports=n(1165)},4008(e,t,n){n.d(t,{n:()=>r});const r="data-"+(0,n(3338).I)("framerAppearId")},6598(e,t,n){function r(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{N:()=>r})},5380(e,t,n){n.d(t,{B:()=>o});const r={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},o={};for(const e in r)o[e]={isEnabled:t=>r[e].some(e=>!!t[e])}},9141(e,t,n){n.d(t,{z:()=>i});var r=n(5090);const o={};function i(e,{layout:t,layoutId:n}){return r.f.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!o[e]||"opacity"===e)}},3338(e,t,n){n.d(t,{I:()=>r});const r=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},2143(e,t,n){n.d(t,{Q:()=>o});const r=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function o(e){return"string"==typeof e&&!e.includes("-")&&!!(r.indexOf(e)>-1||/[A-Z]/u.test(e))}},476(e,t,n){n.d(t,{O:()=>l});var r=n(5090),o=n(2650);const i=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var s=n(1931);const a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},u=r.U.length;function l(e,t,n){const{style:l,vars:c,transformOrigin:d}=e;let f=!1,h=!1;for(const e in t){const n=t[e];if(r.f.has(e))f=!0;else if((0,o.j)(e))c[e]=n;else{const t=i(n,s.W[e]);e.startsWith("origin")?(h=!0,d[e]=t):l[e]=t}}if(t.transform||(f||n?l.transform=function(e,t,n){let o="",l=!0;for(let c=0;c<u;c++){const u=r.U[c],d=e[u];if(void 0===d)continue;let f=!0;if(f="number"==typeof d?d===(u.startsWith("scale")?1:0):0===parseFloat(d),!f||n){const e=i(d,s.W[u]);f||(l=!1,o+=`${a[u]||u}(${e}) `),n&&(t[u]=e)}}return o=o.trim(),n?o=n(t,l?"":o):l&&(o="none"),o}(t,e.transform,n):l.transform&&(l.transform="none")),h){const{originX:e="50%",originY:t="50%",originZ:n=0}=d;l.transformOrigin=`${e} ${t} ${n}`}}},9146(e,t,n){n.d(t,{x:()=>i});var r=n(3005),o=n(9141);function i(e,t,n){const{style:i}=e,s={};for(const a in i)((0,r.S)(i[a])||t.style&&(0,r.S)(t.style[a])||(0,o.z)(a,e)||void 0!==n?.getValue(a)?.liveStyle)&&(s[a]=i[a]);return s}},8186(e,t,n){n.d(t,{B:()=>a});var r=n(476),o=n(2862);const i={offset:"stroke-dashoffset",array:"stroke-dasharray"},s={offset:"strokeDashoffset",array:"strokeDasharray"};function a(e,{attrX:t,attrY:n,attrScale:a,pathLength:u,pathSpacing:l=1,pathOffset:c=0,...d},f,h,p){if((0,r.O)(e,d,h),f)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:m,style:_}=e;m.transform&&(_.transform=m.transform,delete m.transform),(_.transform||m.transformOrigin)&&(_.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),_.transform&&(_.transformBox=p?.transformBox??"fill-box",delete m.transformBox),void 0!==t&&(m.x=t),void 0!==n&&(m.y=n),void 0!==a&&(m.scale=a),void 0!==u&&function(e,t,n=1,r=0,a=!0){e.pathLength=1;const u=a?i:s;e[u.offset]=o.px.transform(-r);const l=o.px.transform(t),c=o.px.transform(n);e[u.array]=`${l} ${c}`}(m,u,l,c,!1)}},51(e,t,n){n.d(t,{n:()=>r});const r=e=>"string"==typeof e&&"svg"===e.toLowerCase()}
2,5075(e,t,n){n.d(t,{x:()=>s});var r=n(5090),o=n(3005),i=n(9146);function s(e,t,n){const s=(0,i.x)(e,t,n);for(const n in e)if((0,o.S)(e[n])||(0,o.S)(t[n])){s[-1!==r.U.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return s}},3255(e,t,n){n.d(t,{O:()=>a,e:()=>s});var r=n(6598),o=n(4333),i=n(6204);function s(e){return(0,r.N)(e.animate)||i._.some(t=>(0,o.w)(e[t]))}function a(e){return Boolean(s(e)||e.variants)}},4333(e,t,n){function r(e){return"string"==typeof e||Array.isArray(e)}n.d(t,{w:()=>r})},6759(e,t,n){function r(e){const t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function o(e,t,n,o){if("function"==typeof t){const[i,s]=r(o);t=t(void 0!==n?n:e.custom,i,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[i,s]=r(o);t=t(void 0!==n?n:e.custom,i,s)}return t}n.d(t,{a:()=>o})},6204(e,t,n){n.d(t,{U:()=>r,_:()=>o});const r=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],o=["initial",...r]},6480(e,t,n){n.d(t,{B:()=>r});const r="undefined"!=typeof window},2650(e,t,n){n.d(t,{j:()=>o,p:()=>s});const r=e=>t=>"string"==typeof t&&t.startsWith(e),o=r("--"),i=r("var(--"),s=e=>!!i(e)&&a.test(e.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},5090(e,t,n){n.d(t,{U:()=>r,f:()=>o});const r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=(()=>new Set(r))()},5656(e,t,n){function r(e){return"object"==typeof(t=e)&&null!==t&&"offsetHeight"in e;var t}n.d(t,{s:()=>r})},1931(e,t,n){n.d(t,{W:()=>a});var r=n(1709);const o={...r.ai,transform:Math.round};var i=n(2862);const s={rotate:i.uj,rotateX:i.uj,rotateY:i.uj,rotateZ:i.uj,scale:r.hs,scaleX:r.hs,scaleY:r.hs,scaleZ:r.hs,skew:i.uj,skewX:i.uj,skewY:i.uj,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:r.X4,originX:i.gQ,originY:i.gQ,originZ:i.px},a={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,backgroundPositionX:i.px,backgroundPositionY:i.px,...s,zIndex:o,fillOpacity:r.X4,strokeOpacity:r.X4,numOctaves:o}},1709(e,t,n){n.d(t,{X4:()=>i,ai:()=>o,hs:()=>s});var r=n(8658);const o={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},i={...o,transform:e=>(0,r.q)(0,1,e)},s={...o,default:1}},2862(e,t,n){n.d(t,{KN:()=>i,gQ:()=>l,px:()=>s,uj:()=>o,vh:()=>a,vw:()=>u});const r=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),o=r("deg"),i=r("%"),s=r("px"),a=r("vh"),u=r("vw"),l=(()=>({...i,parse:e=>i.parse(e)/100,transform:e=>i.transform(100*e)}))()},3005(e,t,n){n.d(t,{S:()=>r});const r=e=>Boolean(e&&e.getVelocity)},8658(e,t,n){n.d(t,{q:()=>r});const r=(e,t,n)=>n>t?t:n<e?e:n},2563(e,t,n){n.d(t,{b:()=>o});var r=n(4844);const o=e=>(e*=2)<1?.5*(0,r.dg)(e):.5*(2-Math.pow(2,-10*(e-1)))},4844(e,t,n){n.d(t,{Sz:()=>s,ZZ:()=>u,dg:()=>a});var r=n(6117),o=n(4215),i=n(9130);const s=(0,r.A)(.33,1.53,.69,.99),a=(0,i.G)(s),u=(0,o.V)(a)},7912(e,t,n){n.d(t,{po:()=>i,tn:()=>a,yT:()=>s});var r=n(4215),o=n(9130);const i=e=>1-Math.sin(Math.acos(e)),s=(0,o.G)(i),a=(0,r.V)(i)},6117(e,t,n){n.d(t,{A:()=>i});var r=n(703);const o=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function i(e,t,n,i){if(e===t&&n===i)return r.l;const s=t=>function(e,t,n,r,i){let s,a,u=0;do{a=t+(n-t)/2,s=o(a,r,i)-e,s>0?n=a:t=a}while(Math.abs(s)>1e-7&&++u<12);return a}(t,0,1,e,n);return e=>0===e||1===e?e:o(s(e),t,i)}},2389(e,t,n){n.d(t,{a6:()=>o,am:()=>s,vT:()=>i});var r=n(6117);const o=(0,r.A)(.42,0,1,1),i=(0,r.A)(0,0,.58,1),s=(0,r.A)(.42,0,.58,1)}
2,4215(e,t,n){n.d(t,{V:()=>r});const r=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},9130(e,t,n){n.d(t,{G:()=>r});const r=e=>t=>1-e(1-t)},4599(e,t,n){n.d(t,{D:()=>r});const r=e=>Array.isArray(e)&&"number"==typeof e[0]},3769(e,t,n){n.d(t,{K:()=>f});var r=n(664),o=n(703),i=n(2563),s=n(4844),a=n(7912),u=n(6117),l=n(2389),c=n(4599);const d={linear:o.l,easeIn:l.a6,easeInOut:l.am,easeOut:l.vT,circIn:a.po,circInOut:a.tn,circOut:a.yT,backIn:s.dg,backInOut:s.ZZ,backOut:s.Sz,anticipate:i.b},f=e=>{if((0,c.D)(e)){(0,r.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,i]=e;return(0,u.A)(t,n,o,i)}return"string"==typeof e?((0,r.V)(void 0!==d[e],`Invalid easing type '${e}'`,"invalid-easing-type"),d[e]):e}},664(e,t,n){n.d(t,{$:()=>r,V:()=>o});let r=()=>{},o=()=>{}},703(e,t,n){n.d(t,{l:()=>r});const r=e=>e}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.m=n,o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((t,n)=>(o.f[n](e,t),t),[])),o.u=e=>e+".island.umd.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="bupl-preact-island:",o.l=(n,r,i,s)=>{if(e[n])e[n].push(r);else{var a,u;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+i){a=d;break}}a||(u=!0,(a=document.createElement("script")).charset="utf-8",o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",t+i),a.src=n),e[n]=[r];var f=(t,r)=>{a.onerror=a.onload=null,clearTimeout(h);var o=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(e=>e(r)),t)return t(r)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),u&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={139:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,o)=>r=e[t]=[n,o]);n.push(r[2]=i);var s=o.p+o.u(t),a=new Error;o.l(s,n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,r[1](a)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[s,a,u]=n,l=0;if(s.some(t=>0!==e[t])){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);if(u)u(o)}for(t&&t(n);l<s.length;l++)i=s[l],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkbupl_preact_island=self.webpackChunkbupl_preact_island||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i=o(23),s=o(8653);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const u=e=>e instanceof ShadowRoot,l=e=>{const t=e.getRootNode()instanceof ShadowRoot?e.getRootNode().host:e,{dataset:n}=t,r={};for(var o in n){if(!1===n.hasOwnProperty(o))return;const e=`${(i=o.split(/(props?)/).pop()||"").charAt(0).toLowerCase()}${i.slice(1)}`;e&&(r[e]=n[o])}var i;return r},c=e=>["text/props","application/json"].includes(e.getAttribute("type")||""),d=e=>u(e)?[]:Array.from(e.getElementsByTagName("script")).filter(c),f=e=>Array.from(document.querySelectorAll(e)).filter(c),h=e=>{let t={};
2return e.forEach(e=>{try{t=a({},t,JSON.parse(e.innerHTML))}catch(e){}}),t},p=(e,t,n={},r)=>{const o=l(t),i=e._executedScript?l(e._executedScript):{},s=h(d(t));return a({},n,o,i,r?h(f(r)):{},s)};function m(e,t){var n=(t=[].concat(t))[t.length-1].nextSibling;function r(t,r){e.insertBefore(t,r||n)}return e.__k={nodeType:1,parentNode:e,firstChild:t[0],childNodes:t,insertBefore:r,appendChild:r,removeChild:function(t){e.removeChild(t)}}}const _=({island:e,widget:t,rootFragment:n,props:r})=>{e.props=r,(0,i.XX)((0,i.h)(t,r),n)},v=e=>{const t={_rootsToObservers:new WeakMap,_roots:[],_executedScript:document.currentScript,props:{},render:({selector:n,clean:r=!1,replace:o=!1,inline:i=!1,initialProps:s={},propsSelector:l,elementName:c})=>{let h=!1;const v=()=>{if(!0===h)return;const v=(({selector:e,inline:t,elementName:n})=>{const r=document.currentScript;if(t&&null!=r&&r.parentNode)return[r.parentNode];const o=null==r?void 0:r.dataset.mountIn;return o?Array.from(document.querySelectorAll(o)).map(e=>{if(null!=n){const t=document.createElement(n),r=e.appendChild(t);return null!=r.shadowRoot?r.shadowRoot:r}return e}):e?Array.from(document.querySelectorAll(e)).map(e=>null!=e.shadowRoot?e.shadowRoot:e):[]})({selector:n,inline:i,elementName:c});if(0===v.length)return;const{rootFragments:y}=(({island:e,widget:t,hostElements:n,clean:r,replace:o,initialProps:i,propsSelector:s})=>{const l=[];return n.forEach(n=>{const c=p(e,n,i,s);let h;if(r&&n.replaceChildren(),o)h=m(n.parentElement||document.body,n);else{const e=document.createElement("div");n.appendChild(e),h=m(n,e)}l.push(h),_({island:e,widget:t,rootFragment:h,props:c});const v=(({island:e,hostElement:t,initialProps:n,onNewProps:r,propsSelector:o})=>{const i=new MutationObserver(function(i){i.forEach(function(){r(p(e,t,n,o))})}),s={attributes:!0,childList:!0,characterData:!0};return e._executedScript&&i.observe(e._executedScript,s),d(t).forEach(e=>{i.observe(e,a({},s,{subtree:!0}))}),o&&f(o).forEach(e=>{i.observe(e,a({},s,{subtree:!0}))}),i.observe(u(t)?t.host:t,s),i})({island:e,hostElement:n,initialProps:i,onNewProps:n=>{_({island:e,widget:t,rootFragment:h,props:n})},propsSelector:s});e._rootsToObservers.set(h,v)}),{rootFragments:l}})({island:t,widget:e,clean:r,hostElements:v,replace:o,initialProps:s,propsSelector:l});t._roots=t._roots.concat(y),h=!0};v(),document.addEventListener("DOMContentLoaded",v),document.addEventListener("load",v)},rerender:n=>{t._roots.forEach(r=>{_({island:t,widget:e,rootFragment:r,props:a({},t.props,n)})})},destroy:()=>{t._roots.forEach(e=>{var n;null==(n=t._rootsToObservers.get(e))||n.disconnect(),(0,i.XX)(null,e)})}};return t};var y=0;Array.isArray;function g(e,t,n,r,o,s){t||(t={});var a,u,l=t;if("ref"in l)for(u in l={},t)"ref"==u?a=t[u]:l[u]=t[u];var c={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--y,__i:-1,__u:0,__source:o,__self:s};if("function"==typeof e&&(a=e.defaultProps))for(u in a)void 0===l[u]&&(l[u]=a[u]);return i.fF.vnode&&i.fF.vnode(c),c}const b=(0,s.createContext)({strict:!1});var w=o(5380);function E(e){for(const t in e)w.B[t]={...w.B[t],...e[t]}}function C({children:e,features:t,strict:n=!1}){const[,r]=(0,s.useState)(!S(t)),o=(0,s.useRef)(void 0);if(!S(t)){const{renderer:e,...n}=t;o.current=e,E(n)}return(0,s.useEffect)(()=>{S(t)&&t().then(({renderer:e,...t})=>{E(t),o.current=e,r(!0)})},[]),g(b.Provider,{value:{renderer:o.current,strict:n},children:e})}function S(e){return"function"==typeof e}var x={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},O=new class{#e=x;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};var R="undefined"==typeof window||"Deno"in globalThis;function P(){}function k(e){return"number"==typeof e&&e>=0&&e!==1/0}function F(e,t){return Math.max(e+(t||0)-Date.now(),0)}function T(e,t){return"function"==typeof e?e(t):e}function A(e,t){return"function"==typeof e?e(t):e}function M(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s)if(r){if(t.queryHash!==N(s,t.options))return!1}else if(!q(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function I(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(D(t.options.mutationKey)!==D(i))return!1}else if(!q(t.options.mutationKey,i))return!1}return(!r||t.state.status===r)&&!(o&&!o(t))}function N(e,t){return(t?.queryKeyHashFn||D)(e)}function D(e){return JSON.stringify(e,(e,t)=>H(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function q(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>q(e[n],t[n])))}var j=Object.prototype.hasOwnProperty;function L(e,t){if(e===t)return e;const n=Q(e)&&Q(t);if(!(n||H(e)&&H(t)))return t;const r=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),i=o.length,s=n?new Array(i):{};let a=0;for(let u=0;u<i;u++){const i=n?u:o[u],l=e[i],c=t[i];if(l===c){s[i]=l,(n?u<r:j.call(e,i))&&a++;continue}if(null===l||null===c||"object"!=typeof l||"object"!=typeof c){s[i]=c;continue}const d=L(l,c);s[i]=d,d===l&&a++}return r===i&&a===r?e:s}function U(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Q(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function H(e){if(!$(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!$(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function $(e){return"[object Object]"===Object.prototype.toString.call(e)}function W(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?L(e,t):t}function K(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function B(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var V=Symbol();function X(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==V?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function z(e,t){return"function"==typeof e?e(...t):!!e}var G=function(e){setTimeout(e,0)};var Y=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=G;const i=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>
2{t.forEach(e=>{n(e)})})})})()}return s},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),Z=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},J=new class extends Z{#n;#r;#o;constructor(){super(),this.#o=e=>{if(!R&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#r||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#o=e,this.#r?.(),this.#r=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#n!==e&&(this.#n=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#n?this.#n:"hidden"!==globalThis.document?.visibilityState}},ee=new class extends Z{#i=!0;#r;#o;constructor(){super(),this.#o=e=>{if(!R&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#r||this.setEventListener(this.#o)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#o=e,this.#r?.(),this.#r=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};function te(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function ne(e){return Math.min(1e3*2**e,3e4)}function re(e){return"online"!==(e??"online")||ee.isOnline()}var oe=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ie(e){let t,n=!1,r=0;const o=te(),i=()=>"pending"!==o.status,s=()=>J.isFocused()&&("always"===e.networkMode||ee.isOnline())&&e.canRun(),a=()=>re(e.networkMode)&&e.canRun(),u=e=>{i()||(t?.(),o.resolve(e))},l=e=>{i()||(t?.(),o.reject(e))},c=()=>new Promise(n=>{t=e=>{(i()||s())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,i()||e.onContinue?.()}),d=()=>{if(i())return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{if(i())return;const o=e.retry??(R?0:3),a=e.retryDelay??ne,u="function"==typeof a?a(r,t):a,f=!0===o||"number"==typeof o&&r<o||"function"==typeof o&&o(r,t);var h;!n&&f?(r++,e.onFail?.(r,t),(h=u,new Promise(e=>{O.setTimeout(e,h)})).then(()=>s()?void 0:c()).then(()=>{n?l(t):d()})):l(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!i()){const n=new oe(t);l(n),e.onCancel?.(n)}},continue:()=>(t?.(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:a,start:()=>(a()?d():c().then(d),o)}}var se=class{#s;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),k(this.gcTime)&&(this.#s=O.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(R?1/0:3e5))}clearGcTimeout(){this.#s&&(O.clearTimeout(this.#s),this.#s=void 0)}},ae=class extends se{#a;#u;#l;#c;#d;#f;#h;constructor(e){super(),this.#h=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#c=e.client,this.#l=this.#c.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=le(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#f,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=le(this.options);void 0!==e.data&&(this.setData(e.data,{updatedAt:e.dataUpdatedAt,manual:!0}),this.#a=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#l.remove(this)}setData(e,t){const n=W(this.state.data,e,this.options);return this.#p({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#p({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#d?.promise;
2return this.#d?.cancel(e),t?t.then(P).catch(P):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#a)}isActive(){return this.observers.some(e=>!1!==A(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===V||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===T(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!F(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#d&&(this.#h?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#d?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#h=!0,n.signal)})},o=()=>{const e=X(this.options,t),n=(()=>{const e={client:this.#c,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#h=!1,this.options.persister?this.options.persister(e,n,this):e(n)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#c,state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(i,this),this.#u=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#p({type:"fetch",meta:i.fetchOptions?.meta}),this.#d=ie({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof oe&&e.revert&&this.setState({...this.#u,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const e=await this.#d.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#l.config.onSuccess?.(e,this),this.#l.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof oe){if(e.silent)return this.#d.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#p({type:"error",error:e}),this.#l.config.onError?.(e,this),this.#l.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#p(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...ue(t.data,this.options),fetchMeta:e.meta??null};case"success":const n={...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#u=e.manual?n:void 0,n;case"error":const r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};
2case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Y.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:e})})}};function ue(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:re(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function le(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ce=class extends Z{constructor(e={}){super(),this.config=e,this.#m=new Map}#m;build(e,t,n){const r=t.queryKey,o=t.queryHash??N(r,t);let i=this.get(o);return i||(i=new ae({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#m.has(e.queryHash)||(this.#m.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#m.get(e.queryHash);t&&(e.destroy(),t===e&&this.#m.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Y.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#m.get(e)}getAll(){return[...this.#m.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>M(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>M(e,t)):t}notify(e){Y.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Y.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Y.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},de=class extends se{#c;#_;#v;#d;constructor(e){super(),this.#c=e.client,this.mutationId=e.mutationId,this.#v=e.mutationCache,this.#_=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#_.includes(e)||(this.#_.push(e),this.clearGcTimeout(),this.#v.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#_=this.#_.filter(t=>t!==e),this.scheduleGc(),this.#v.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#_.length||("pending"===this.state.status?this.scheduleGc():this.#v.remove(this))}continue(){return this.#d?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#p({type:"continue"})},n={client:this.#c,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#d=ie({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#v.canRun(this)});const r="pending"===this.state.status,o=!this.#d.canStart();try{if(r)t();else{this.#p({type:"pending",variables:e,isPaused:o}),await(this.#v.config.onMutate?.(e,this,n));const t=await(this.options.onMutate?.(e,n));t!==this.state.context&&this.#p({type:"pending",context:t,variables:e,isPaused:o})}const i=await this.#d.start();return await(this.#v.config.onSuccess?.(i,e,this.state.context,this,n)),await(this.options.onSuccess?.(i,e,this.state.context,n)),await(this.#v.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(i,null,e,this.state.context,n)),this.#p({type:"success",data:i}),i}catch(t){try{throw await(this.#v.config.onError?.(t,e,this.state.context,this,n)),await(this.options.onError?.(t,e,this.state.context,n)),await(this.#v.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(void 0,t,e,this.state.context,n)),t}finally{this.#p({type:"error",error:t})}}finally{this.#v.runNext(this)}}#p(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
2case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Y.batch(()=>{this.#_.forEach(t=>{t.onMutationUpdate(e)}),this.#v.notify({mutation:this,type:"updated",action:e})})}};var fe=class extends Z{constructor(e={}){super(),this.config=e,this.#y=new Set,this.#g=new Map,this.#b=0}#y;#g;#b;build(e,t,n){const r=new de({client:e,mutationCache:this,mutationId:++this.#b,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#y.add(e);const t=he(e);if("string"==typeof t){const n=this.#g.get(t);n?n.push(e):this.#g.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#y.delete(e)){const t=he(e);if("string"==typeof t){const n=this.#g.get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#g.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=he(e);if("string"==typeof t){const n=this.#g.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){const t=he(e);if("string"==typeof t){const n=this.#g.get(t)?.find(t=>
2t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}return Promise.resolve()}clear(){Y.batch(()=>{this.#y.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#y.clear(),this.#g.clear()})}getAll(){return Array.from(this.#y)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>I(t,e))}findAll(e={}){return this.getAll().filter(t=>I(e,t))}notify(e){Y.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return Y.batch(()=>Promise.all(e.map(e=>e.continue().catch(P))))}};function he(e){return e.options.scope?.id}function pe(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},u=0;const l=async()=>{let n=!1;const l=X(t.options,t.fetchOptions),c=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};var i;return i=e,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)}),e})(),s=await l(i),{maxPages:a}=t.options,u=o?B:K;return{pages:u(e.pages,s,a),pageParams:u(e.pageParams,r,a)}};if(o&&i.length){const e="backward"===o,t={pages:i,pageParams:s},n=(e?_e:me)(r,t);a=await c(t,n,e)}else{const t=e??i.length;do{const e=0===u?s[0]??r.initialPageParam:me(r,a);if(u>0&&null==e)break;a=await c(a,e),u++}while(u<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function me(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function _e(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function ve(e,t){return!!t&&null!=me(e,t)}function ye(e,t){return!(!t||!e.getPreviousPageParam)&&null!=_e(e,t)}var ge=s.createContext(void 0),be=e=>{const t=s.useContext(ge);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},we=({client:e,children:t})=>(s.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g(ge.Provider,{value:e,children:t})),Ee=(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))(Ee||{}),Ce=Object.defineProperty,Se=(e,t,n)=>(((e,t,n)=>{t in e?Ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let xe=new class{constructor(){Se(this,"current",this.detect()),Se(this,"handoffState","pending"),Se(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Oe=(e,t)=>{xe.isServer?(0,s.useEffect)(e,t):(0,s.useLayoutEffect)(e,t)};function Re(e){let t=(0,s.useRef)(e);return Oe(()=>{t.current=e},[e]),t}function Pe(e,t,n,r){let o=Re(n);(0,s.useEffect)(()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)},[e,t,r])}class ke extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}function Fe(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function Te(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add(()=>e.removeEventListener(n,r,o))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return Fe(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=Te();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}var Ae,Me,Ie,Ne=Object.defineProperty,De=(e,t,n)=>(((e,t,n)=>{t in e?Ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}
2)(e,"symbol"!=typeof t?t+"":t,n),n),qe=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},je=(e,t,n)=>(qe(e,t,"read from private field"),n?n.call(e):t.get(e)),Le=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ue=(e,t,n,r)=>(qe(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class Qe{constructor(e){Le(this,Ae,{}),Le(this,Me,new ke(()=>new Set)),Le(this,Ie,new Set),De(this,"disposables",Te()),Ue(this,Ae,e),xe.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return je(this,Ae)}subscribe(e,t){if(xe.isServer)return()=>{};let n={selector:e,callback:t,current:e(je(this,Ae))};return je(this,Ie).add(n),this.disposables.add(()=>{je(this,Ie).delete(n)})}on(e,t){return xe.isServer?()=>{}:(je(this,Me).get(e).add(t),this.disposables.add(()=>{je(this,Me).get(e).delete(t)}))}send(e){let t=this.reduce(je(this,Ae),e);if(t!==je(this,Ae)){Ue(this,Ae,t);for(let e of je(this,Ie)){let t=e.selector(je(this,Ae));He(e.current,t)||(e.current=t,e.callback(t))}for(let t of je(this,Me).get(e.type))t(je(this,Ae),e)}}}function He(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&$e(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&$e(e.entries(),t.entries()):!(!We(e)||!We(t))&&$e(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function $e(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function We(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function Ke(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Ke),r}Ae=new WeakMap,Me=new WeakMap,Ie=new WeakMap;var Be=Object.defineProperty,Ve=(e,t,n)=>(((e,t,n)=>{t in e?Be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),Xe=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(Xe||{});let ze={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}};class Ge extends Qe{constructor(){super(...arguments),Ve(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),Ve(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new Ge({stack:[]})}reduce(e,t){return Ke(t.type,ze,e,t)}}const Ye=new ke(()=>Ge.new());var Ze=o(4445);let Je=function(e){let t=Re(e);return s.default.useCallback((...e)=>t.current(...e),[t])};function et(e,t,n=He){return(0,Ze.useSyncExternalStoreWithSelector)(Je(t=>e.subscribe(tt,t)),Je(()=>e.state),Je(()=>e.state),Je(t),n)}function tt(e){return e}function nt(e,t){let n=(0,s.useId)(),r=Ye.get(t),[o,i]=et(r,(0,s.useCallback)(e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)],[r,n]));return Oe(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),!!e&&(!i||o)}function rt(e,t=("undefined"!=typeof document?document.defaultView:null),n){let r=nt(e,"escape");Pe(t,"keydown",e=>{r&&(e.defaultPrevented||e.key===Ee.Escape&&n(e))})}function ot(e){var t,n;return xe.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?null!=(n=null==(t=e.current)?void 0:t.ownerDocument)?n:document:null:document}let it=new Map,st=new Map;function at(e){var t;let n=null!=(t=st.get(e))?t:0;return st.set(e,n+1),0!==n||(it.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>ut(e)}function ut(e){var t;let n=null!=(t=st.get(e))?t:1;if(1===n?st.delete(e):st.set(e,n-1),1!==n)return;let r=it.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,it.delete(e))}function lt(e,{allowed:t,disallowed:n}={}
2){let r=nt(e,"inert-others");Oe(()=>{var e,o;if(!r)return;let i=Te();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(at(t));let s=null!=(o=null==t?void 0:t())?o:[];for(let e of s){if(!e)continue;let t=ot(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)s.some(t=>e.contains(t))||i.add(at(e));n=n.parentElement}}return i.dispose},[r,t,n])}function ct(e){return function(e){return"object"==typeof e&&null!==e&&"nodeType"in e}(e)&&"tagName"in e}function dt(e){return ct(e)&&"accessKey"in e}function ft(e){return ct(e)&&"tabIndex"in e}let ht=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),pt=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var mt=(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[e.AutoFocus=64]="AutoFocus",e))(mt||{}),_t=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(_t||{}),vt=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(vt||{});function yt(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ht)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var gt=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(gt||{});function bt(e,t=0){var n;return e!==(null==(n=ot(e))?void 0:n.body)&&Ke(t,{0:()=>e.matches(ht),1(){let t=e;for(;null!==t;){if(t.matches(ht))return!0;t=t.parentElement}return!1}})}var wt=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(wt||{});function Et(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let Ct=["textarea","input"].join(",");function St(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?function(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(pt)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):yt(e);o.length>0&&s.length>1&&(s=s.filter(e=>!o.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),r=null!=r?r:i.activeElement;let a,u=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(r))-1;if(4&t)return Math.max(0,s.indexOf(r))+1;if(8&t)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=32&t?{preventScroll:!0}:{},d=0,f=s.length;do{if(d>=f||d+f<=0)return 0;let e=l+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}a=s[e],null==a||a.focus(c),d+=u}while(a!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Ct))&&n}(a)&&a.select(),2}function xt(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ot(){return xt()||/Android/gi.test(window.navigator.userAgent)}function Rt(e,t,n,r){let o=Re(n);(0,s.useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}function Pt(e,t,n,r){let o=Re(n);(0,s.useEffect)(()=>
2{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}function kt(e,t,n){let r=Re(n),o=(0,s.useCallback)(function(e,n){if(e.defaultPrevented)return;let o=n(e);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of i)if(null!==t&&(t.contains(o)||e.composed&&e.composedPath().includes(t)))return;return!bt(o,gt.Loose)&&-1!==o.tabIndex&&e.preventDefault(),r.current(e,o)},[r,t]),i=(0,s.useRef)(null);Rt(e,"pointerdown",e=>{var t,n;Ot()||(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),Rt(e,"pointerup",e=>{if(Ot()||!i.current)return;let t=i.current;return i.current=null,o(e,()=>t)},!0);let a=(0,s.useRef)({x:0,y:0});Rt(e,"touchstart",e=>{a.current.x=e.touches[0].clientX,a.current.y=e.touches[0].clientY},!0),Rt(e,"touchend",e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-a.current.x)>=30||Math.abs(n-a.current.y)>=30))return o(e,()=>ft(e.target)?e.target:null)},!0),Pt(e,"blur",e=>o(e,()=>function(e){return dt(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null),!0)}function Ft(...e){return(0,s.useMemo)(()=>ot(...e),[...e])}function Tt(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}var At=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(At||{}),Mt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Mt||{});function It(){let e=function(){let e=(0,s.useRef)([]),t=(0,s.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]);return(...n)=>{if(!n.every(e=>null==e))return e.current=n,t}}();return(0,s.useCallback)(t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=null!=a?a:Dt;let u=qt(t,e);if(i)return Nt(u,n,r,s,a);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=u;if(e)return Nt(t,n,r,s,a)}if(1&l){let{unmount:e=!0,...t}=u;return Ke(e?0:1,{0:()=>null,1:()=>Nt({...t,hidden:!0,style:{display:"none"}},n,r,s,a)})}return Nt(u,n,r,s,a)}({mergeRefs:e,...t}),[e])}function Nt(e,t={},n,r,o){let{as:i=n,children:a,refName:u="ref",...l}=Ut(e,["unmount","static"]),c=void 0!==e.ref?{[u]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let f={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e){f["data-headlessui-state"]=n.join(" ");for(let e of n)f[`data-${e}`]=""}}if(Ht(i)&&(Object.keys(Lt(l)).length>0||Object.keys(Lt(f)).length>0)){if(!(!(0,s.isValidElement)(d)||Array.isArray(d)&&d.length>1||function(e){return Ht(e.type)}(d))){let e=d.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>Tt(t(...e),l.className):Tt(t,l.className),r=n?{className:n}:{},i=qt(d.props,Lt(Ut(l,["ref"])));for(let e in f)e in i&&delete f[e];return(0,s.cloneElement)(d,Object.assign({},i,f,c,{ref:o(Qt(d),c.ref)},r))}if(Object.keys(Lt(l)).length>0)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(Lt(l)).concat(Object.keys(Lt(f))).map(e=>` - ${e}`).join("\n"),"","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(e=>` - ${e}`).join("\n")].join("\n"))}return(0,s.createElement)(i,Object.assign({},Ut(l,["ref"]),!Ht(i)&&c,!Ht(i)&&f),d)}function Dt(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function qt(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function jt(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Lt(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Ut(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function Qt(e){return s.default.version.split(".")[0]>="19"?e.props.ref:e.ref}function Ht(e){return e===s.Fragment||e===Symbol.for("react.fragment")}var $t=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))($t||{});let Wt=jt(function(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":!(2&~r)||(null!=(n=o["aria-hidden"])?n:void 0),hidden:!(4&~r)||void 0,style:{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",...!(4&~r)&&!!(2&~r)&&{display:"none"}}};return It()({ourProps:i,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})});let Kt=(0,s.createContext)(null);function Bt({children:e,node:t}
2){let[n,r]=(0,s.useState)(null),o=Vt(null!=t?t:n);return s.default.createElement(Kt.Provider,{value:o},e,null===o&&s.default.createElement(Wt,{features:$t.Hidden,ref:e=>{var t,n;if(e)for(let o of null!=(n=null==(t=ot(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(o!==document.body&&o!==document.head&&ct(o)&&null!=o&&o.contains(e)){r(o);break}}}))}function Vt(e=null){var t;return null!=(t=(0,s.useContext)(Kt))?t:e}function Xt(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=null!=(n=t.defaultView)?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function zt(){return xt()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap(e=>e()).some(t=>t.contains(e))}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=Te();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,i=null;t.addEventListener(e,"click",t=>{if(ft(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),s=e.querySelector(o);ft(s)&&!r(s)&&(i=s)}catch{}},!0),t.addEventListener(e,"touchstart",e=>{if(ft(e.target)&&function(e){return ct(e)&&"style"in e}(e.target))if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")}),t.addEventListener(e,"touchmove",e=>{if(ft(e.target)){if(function(e){return dt(e)&&"INPUT"===e.nodeName}(e.target))return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),t.add(()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;o!==t&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function Gt(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Yt=function(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach(e=>e()))}}}(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:Te(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Gt(n)},o=[zt(),Xt(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];o.forEach(({before:e})=>null==e?void 0:e(r)),o.forEach(({after:e})=>null==e?void 0:e(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Zt(e,t,n=()=>({containers:[]})){let r=function(e){return(0,s.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}(Yt),o=t?r.get(t):void 0,i=!!o&&o.count>0;return Oe(()=>{if(t&&e)return Yt.dispatch("PUSH",t,n),()=>Yt.dispatch("POP",t,n)},[e,t]),i}function Jt(e,t,n=()=>[document.body]){Zt(nt(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}function en(){let e=function(){let e="undefined"==typeof document;return(e=>e.useSyncExternalStore)(s)(()=>()=>{},()=>!1,()=>!e)}(),[t,n]=s.useState(xe.isHandoffComplete);return t&&!1===xe.isHandoffComplete&&n(!1),s.useEffect(()=>{!0!==t&&n(!0)},[t]),s.useEffect(()=>xe.handoff(),[]),!e&&t}function tn(e){return(0,s.useMemo)(()=>e,Object.values(e))}Yt.subscribe(()=>{let e=Yt.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&Yt.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Yt.dispatch("TEARDOWN",n)}});let nn=Symbol();function rn(...e){let t=(0,s.useRef)(e);(0,s.useEffect)(()=>{t.current=e},[e]);let n=Je(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[nn]))?void 0:n}let on=(0,s.createContext)(()=>{});function sn({value:e,children:t}){return s.default.createElement(on.Provider,{value:e},t)}let an=(0,s.createContext)(null);an.displayName="OpenClosedContext";var un=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(un||{});function ln(){return(0,s.useContext)(an)}function cn({value:e,children:t}){return s.default.createElement(an.Provider,{value:e},t)}function dn({children:e}){return s.default.createElement(an.Provider,{value:null},e)}let fn=(0,s.createContext)(!1);function hn(e){return s.default.createElement(fn.Provider,{value:e.force},e.children)}let pn=(0,s.createContext)(void 0);let mn=(0,s.createContext)(null);function _n(){let e=(0,s.useContext)(mn);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,_n),e}return e}mn.displayName="DescriptionContext";let vn=jt(function(e,t){let n=(0,s.useId)(),r=(0,s.useContext)(pn),{id:o=`headlessui-description-${n}`,...i}=e,a=_n(),u=rn(t);Oe(()=>a.register(o),[o,a.register]);let l=tn({...a.slot,disabled:r||!1}),c={ref:u,...a.props,id:o};return It()({ourProps:c,theirProps:i,slot:l,defaultTag:"p",name:a.name||"Description"})}),yn=Object.assign(vn,{});
2function gn(){let[e]=(0,s.useState)(Te);return(0,s.useEffect)(()=>()=>e.dispose(),[e]),e}function bn(){let e=(0,s.useRef)(!1);return Oe(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function wn(e){let t=Je(e),n=(0,s.useRef)(!1);(0,s.useEffect)(()=>(n.current=!1,()=>{n.current=!0,Fe(()=>{n.current&&t()})}),[t])}var En=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(En||{});function Cn(e,t){let n=(0,s.useRef)([]),r=Je(e);(0,s.useEffect)(()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}},[r,...t])}let Sn=[];function xn(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)ct(n.current)&&t.add(n.current);return t}!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){if(!ft(e.target)||e.target===document.body||Sn[0]===e.target)return;let t=e.target;t=t.closest(ht),Sn.unshift(null!=t?t:e.target),Sn=Sn.filter(e=>null!=e&&e.isConnected),Sn.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var On=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(On||{});let Rn=jt(function(e,t){let n=(0,s.useRef)(null),r=rn(n,t),{initialFocus:o,initialFocusFallback:i,containers:a,features:u=15,...l}=e;en()||(u=0);let c=Ft(n);!function(e,{ownerDocument:t}){let n=!!(8&e),r=function(e=!0){let t=(0,s.useRef)(Sn.slice());return Cn(([e],[n])=>{!0===n&&!1===e&&Fe(()=>{t.current.splice(0)}),!1===n&&!0===e&&(t.current=Sn.slice())},[e,Sn,t]),Je(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(n);Cn(()=>{n||(null==t?void 0:t.activeElement)===(null==t?void 0:t.body)&&Et(r())},[n]),wn(()=>{n&&Et(r())})}(u,{ownerDocument:c});let d=function(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}){let i=(0,s.useRef)(null),a=nt(!!(1&e),"focus-trap#initial-focus"),u=bn();return Cn(()=>{if(0===e)return;if(!a)return void(null!=o&&o.current&&Et(o.current));let s=n.current;s&&Fe(()=>{if(!u.current)return;let n=null==t?void 0:t.activeElement;if(null!=r&&r.current){if((null==r?void 0:r.current)===n)return void(i.current=n)}else if(s.contains(n))return void(i.current=n);if(null!=r&&r.current)Et(r.current);else{if(16&e){if(St(s,mt.First|mt.AutoFocus)!==_t.Error)return}else if(St(s,mt.First)!==_t.Error)return;if(null!=o&&o.current&&(Et(o.current),(null==t?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=null==t?void 0:t.activeElement})},[o,a,e]),i}(u,{ownerDocument:c,container:n,initialFocus:o,initialFocusFallback:i});!function(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let i=bn(),s=!!(4&e);Pe(null==t?void 0:t.defaultView,"focus",e=>{if(!s||!i.current)return;let t=xn(r);dt(n.current)&&t.add(n.current);let a=o.current;if(!a)return;let u=e.target;dt(u)?kn(t,u)?(o.current=u,Et(u)):(e.preventDefault(),e.stopPropagation(),Et(a)):Et(o.current)},!0)}(u,{ownerDocument:c,container:n,containers:a,previousActiveElement:d});let f=function(){let e=(0,s.useRef)(0);return Pt(!0,"keydown",t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)},!0),e}(),h=Je(e=>{if(!dt(n.current))return;let t=n.current;Ke(f.current,{[En.Forwards]:()=>{St(t,mt.First,{skipElements:[e.relatedTarget,i]})},[En.Backwards]:()=>{St(t,mt.Last,{skipElements:[e.relatedTarget,i]})}})}),p=nt(!!(2&u),"focus-trap#tab-lock"),m=gn(),_=(0,s.useRef)(!1),v={ref:r,onKeyDown(e){"Tab"==e.key&&(_.current=!0,m.requestAnimationFrame(()=>{_.current=!1}))},onBlur(e){if(!(4&u))return;let t=xn(a);dt(n.current)&&t.add(n.current);let r=e.relatedTarget;ft(r)&&"true"!==r.dataset.headlessuiFocusGuard&&(kn(t,r)||(_.current?St(n.current,Ke(f.current,{[En.Forwards]:()=>mt.Next,[En.Backwards]:()=>mt.Previous})|mt.WrapAround,{relativeTo:e.target}):ft(e.target)&&Et(e.target)))}},y=It();return s.default.createElement(s.default.Fragment,null,p&&s.default.createElement(Wt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:$t.Focusable}),y({ourProps:v,theirProps:l,defaultTag:"div",name:"FocusTrap"}),p&&s.default.createElement(Wt,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:$t.Focusable}))}),Pn=Object.assign(Rn,{features:On});function kn(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Fn(e){let t=(0,s.useContext)(fn),n=(0,s.useContext)(In),[r,o]=(0,s.use
2State)(()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(xe.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)});return(0,s.useEffect)(()=>{null!==r&&(null!=e&&e.body.contains(r)||null==e||e.body.appendChild(r))},[r,e]),(0,s.useEffect)(()=>{t||null!==n&&o(n.current)},[n,o,t]),r}let Tn=s.Fragment,An=jt(function(e,t){let{ownerDocument:n=null,...r}=e,o=(0,s.useRef)(null),i=rn(function(e,t=!0){return Object.assign(e,{[nn]:t})}(e=>{o.current=e}),t),a=Ft(o),u=Fn(null!=n?n:a),l=(0,s.useContext)(Nn),c=gn(),d=It();return wn(()=>{var e;u&&u.childNodes.length<=0&&(null==(e=u.parentElement)||e.removeChild(u))}),u?(0,s.createPortal)(s.default.createElement("div",{"data-headlessui-portal":"",ref:e=>{c.dispose(),l&&e&&c.add(l.register(e))}},d({ourProps:{ref:i},theirProps:r,slot:{},defaultTag:Tn,name:"Portal"})),u):null});let Mn=s.Fragment,In=(0,s.createContext)(null);let Nn=(0,s.createContext)(null);let Dn=jt(function(e,t){let n=rn(t),{enabled:r=!0,ownerDocument:o,...i}=e,a=It();return r?s.default.createElement(An,{...i,ownerDocument:o,ref:n}):a({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Tn,name:"Portal"})}),qn=jt(function(e,t){let{target:n,...r}=e,o={ref:rn(t)},i=It();return s.default.createElement(In.Provider,{value:n},i({ourProps:o,theirProps:r,defaultTag:Mn,name:"Popover.Group"}))}),jn=Object.assign(Dn,{Group:qn});var Ln,Un;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(Ln=null==process?void 0:"MISSING_ENV_VAR")?void 0:Ln.NODE_ENV)&&void 0===(null==(Un=null==Element?void 0:Element.prototype)?void 0:Un.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var Qn=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Qn||{});function Hn(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function $n(e,t,n,r){let[o,i]=(0,s.useState)(n),{hasFlag:a,addFlag:u,removeFlag:l}=function(e=0){let[t,n]=(0,s.useState)(e),r=(0,s.useCallback)(e=>n(e),[]),o=(0,s.useCallback)(e=>n(t=>t|e),[]),i=(0,s.useCallback)(e=>(t&e)===e,[t]),a=(0,s.useCallback)(e=>n(t=>t&~e),[]),u=(0,s.useCallback)(e=>n(t=>t^e),[]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:u}}(e&&o?3:0),c=(0,s.useRef)(!1),d=(0,s.useRef)(!1),f=gn();return Oe(()=>{var o;if(e)return n&&i(!0),t?(null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:o}){let i=Te();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(function(e,t){var n,r;let o=Te();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let s=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===s.length?(t(),o.dispose):(Promise.allSettled(s.map(e=>e.finished)).then(()=>{i||t()}),o.dispose)}(e,r))})}),i.dispose}(t,{inFlight:c,prepare(){d.current?d.current=!1:d.current=c.current,c.current=!0,!d.current&&(n?(u(3),l(4)):(u(4),l(2)))},run(){d.current?n?(l(3),u(4)):(l(4),u(3)):n?l(1):u(1)},done(){var e;d.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(c.current=!1,l(7),n||i(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):void(n&&u(3))},[e,n,t,f]),e?[o,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Wn(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!Ht(null!=(t=e.as)?t:Gn)||1===s.default.Children.count(e.children)}let Kn=(0,s.createContext)(null);Kn.displayName="TransitionContext";var Bn=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Bn||{});let Vn=(0,s.createContext)(null);function Xn(e){return"children"in e?Xn(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function zn(e,t){let n=Re(e),r=(0,s.useRef)([]),o=bn(),i=gn(),a=Je((e,t=Mt.Hidden)=>{let s=r.current.findIndex(({el:t})=>t===e);-1!==s&&(Ke(t,{[Mt.Unmount](){r.current.splice(s,1)},[Mt.Hidden](){r.current[s].state="hidden"}}),i.microTask(()=>{var e;!Xn(r)&&o.current&&(null==(e=n.current)||e.call(n))}))}),u=Je(e=>{let t=r.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,Mt.Unmount)}),l=(0,s.useRef)([]),c=(0,s.useRef)(Promise.resolve()),d=(0,s.useRef)({enter:[],leave:[]}
2),f=Je((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),null==t||t.chains.current[n].push([e,new Promise(e=>{l.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(d.current[n].map(([e,t])=>t)).then(()=>e())})]),"enter"===n?c.current=c.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),h=Je((e,t,n)=>{Promise.all(d.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=l.current.shift())||e()}).then(()=>n(t))});return(0,s.useMemo)(()=>({children:r,register:u,unregister:a,onStart:f,onStop:h,wait:c,chains:d}),[u,a,r,f,h,d,c])}Vn.displayName="NestingContext";let Gn=s.Fragment,Yn=At.RenderStrategy;let Zn=jt(function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=(0,s.useRef)(null),u=rn(...Wn(e)?[a,t]:null===t?[]:[t]);en();let l=ln();if(void 0===n&&null!==l&&(n=(l&un.Open)===un.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,d]=(0,s.useState)(n?"visible":"hidden"),f=zn(()=>{n||d("hidden")}
2),[h,p]=(0,s.useState)(!0),m=(0,s.useRef)([n]);Oe(()=>{!1!==h&&m.current[m.current.length-1]!==n&&(m.current.push(n),p(!1))},[m,n]);let _=(0,s.useMemo)(()=>({show:n,appear:r,initial:h}),[n,r,h]);Oe(()=>{n?d("visible"):!Xn(f)&&null!==a.current&&d("hidden")},[n,f]);let v={unmount:o},y=Je(()=>{var t;h&&p(!1),null==(t=e.beforeEnter)||t.call(e)}),g=Je(()=>{var t;h&&p(!1),null==(t=e.beforeLeave)||t.call(e)}),b=It();return s.default.createElement(Vn.Provider,{value:f},s.default.createElement(Kn.Provider,{value:_},b({ourProps:{...v,as:s.Fragment,children:s.default.createElement(Jn,{ref:u,...v,...i,beforeEnter:y,beforeLeave:g})},theirProps:{},defaultTag:s.Fragment,features:Yn,visible:"visible"===c,name:"Transition"})))}),Jn=jt(function(e,t){var n,r;let{transition:o=!0,beforeEnter:i,afterEnter:a,beforeLeave:u,afterLeave:l,enter:c,enterFrom:d,enterTo:f,entered:h,leave:p,leaveFrom:m,leaveTo:_,...v}=e,[y,g]=(0,s.useState)(null),b=(0,s.useRef)(null),w=Wn(e),E=rn(...w?[b,t,g]:null===t?[]:[t]),C=null==(n=v.unmount)||n?Mt.Unmount:Mt.Hidden,{show:S,appear:x,initial:O}=function(){let e=(0,s.useContext)(Kn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[R,P]=(0,s.useState)(S?"visible":"hidden"),k=function(){let e=(0,s.useContext)(Vn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:F,unregister:T}=k;Oe(()=>F(b),[F,b]),Oe(()=>{if(C===Mt.Hidden&&b.current)return S&&"visible"!==R?void P("visible"):Ke(R,{hidden:()=>T(b),visible:()=>F(b)})},[R,b,F,T,S,C]);let A=en();Oe(()=>{if(w&&A&&"visible"===R&&null===b.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,R,A,w]);let M=O&&!x,I=x&&S&&O,N=(0,s.useRef)(!1),D=zn(()=>{N.current||(P("hidden"),T(b))},k),q=Je(e=>{N.current=!0;let t=e?"enter":"leave";D.onStart(b,t,e=>{"enter"===e?null==i||i():"leave"===e&&(null==u||u())})}),j=Je(e=>{let t=e?"enter":"leave";N.current=!1,D.onStop(b,t,e=>{"enter"===e?null==a||a():"leave"===e&&(null==l||l())}),"leave"===t&&!Xn(D)&&(P("hidden"),T(b))});(0,s.useEffect)(()=>{w&&o||(q(S),j(S))},[S,w,o]);let L=!(!o||!w||!A||M),[,U]=$n(L,y,S,{start:q,end:j}),Q=Lt({ref:E,className:(null==(r=Tt(v.className,I&&c,I&&d,U.enter&&c,U.enter&&U.closed&&d,U.enter&&!U.closed&&f,U.leave&&p,U.leave&&!U.closed&&m,U.leave&&U.closed&&_,!U.transition&&S&&h))?void 0:r.trim())||void 0,...Hn(U)}),H=0;"visible"===R&&(H|=un.Open),"hidden"===R&&(H|=un.Closed),S&&"hidden"===R&&(H|=un.Opening),!S&&"visible"===R&&(H|=un.Closing);let $=It();return s.default.createElement(Vn.Provider,{value:D},s.default.createElement(cn,{value:H},$({ourProps:Q,theirProps:v,defaultTag:Gn,features:Yn,visible:"visible"===R,name:"Transition.Child"})))}),er=jt(function(e,t){let n=null!==(0,s.useContext)(Kn),r=null!==ln();return s.default.createElement(s.default.Fragment,null,!n&&r?s.default.createElement(Zn,{ref:t,...e}):s.default.createElement(Jn,{ref:t,...e}))}),tr=Object.assign(Zn,{Child:er,Root:Zn});var nr=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(nr||{}),rr=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(rr||{});let or={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},ir=(0,s.createContext)(null);function sr(e){let t=(0,s.useContext)(ir);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,sr),t}return t}function ar(e,t){return Ke(t.type,or,e,t)}ir.displayName="DialogContext";let ur=jt(function(e,t){let n=(0,s.useId)(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:a,role:u="dialog",autoFocus:l=!0,__demoMode:c=!1,unmount:d=!1,...f}=e,h=(0,s.useRef)(!1);u="dialog"===u||"alertdialog"===u?u:(h.current||(h.current=!0,console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let p=ln();void 0===o&&null!==p&&(o=(p&un.Open)===un.Open);let m=(0,s.useRef)(null),_=rn(m,t),v=Ft(m),y=o?0:1,[g,b]=(0,s.useReducer)(ar,{titleId:null,descriptionId:null,panelRef:(0,s.createRef)()}),w=Je(()=>i(!1)),E=Je(e=>b({type:0,id:e})),C=!!en()&&0===y,[S,x]=function(){let e=(0,s.useContext)(Nn),t=(0,s.useRef)([]),n=Je(n=>(t.current.push(n),e&&e.register(n),()=>r(n))),r=Je(n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)}),o=(0,s.useMemo)(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,(0,s.useMemo)(()=>function({children:e}){return s.default.createElement(Nn.Provider,{value:o},e)},[o])]}(),O={get current(){var e;return null!=(e=g.panelRef.current)?e:m.current}},R=Vt(),{resolveContainers:P}=function({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Ft(n),o=Je(()=>{var o,i;let s=[];for(let t of e)null!==t&&(ct(t)?s.push(t):"current"in t&&ct(t.current)&&s.push(t.current));if(null!=t&&t.current)for(let e of t.current)s.push(e);for(let e of null!=(o=null==r?void 0:r.querySelectorAll("html > *, body > *"))?o:[])e!==document.body&&e!==document.head&&ct(e)&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(i=null==n?void 0:n.getRootNode())?void 0:i.host))||s.some(t=>e.contains(t))||s.push(e));return s});
2return{resolveContainers:o,contains:Je(e=>o().some(t=>t.contains(e)))}}({mainTreeNode:R,portals:S,defaultContainers:[O]}),k=null!==p&&(p&un.Closing)===un.Closing;lt(!c&&!k&&C,{allowed:Je(()=>{var e,t;return[null!=(t=null==(e=m.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:Je(()=>{var e;return[null!=(e=null==R?void 0:R.closest("body > *:not(#headlessui-portal-root)"))?e:null]})});let F=Ye.get(null);Oe(()=>{if(C)return F.actions.push(r),()=>F.actions.pop(r)},[F,r,C]);let T=et(F,(0,s.useCallback)(e=>F.selectors.isTop(e,r),[F,r]));kt(T,P,e=>{e.preventDefault(),w()}),rt(T,null==v?void 0:v.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),w()}),Jt(!c&&!k&&C,v,P),function(e,t,n){let r=Re(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,s.useEffect)(()=>{if(!e)return;let n=null===t?null:dt(t)?t:t.current;if(!n)return;let o=Te();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>r.current(n));e.observe(n),o.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>r.current(n));e.observe(n),o.add(()=>e.disconnect())}return()=>o.dispose()},[t,r,e])}(C,m,w);let[A,M]=function(){let[e,t]=(0,s.useState)([]);return[e.length>0?e.join(" "):void 0,(0,s.useMemo)(()=>function(e){let n=Je(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))),r=(0,s.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return s.default.createElement(mn.Provider,{value:r},e.children)},[t])]}(),I=(0,s.useMemo)(()=>[{dialogState:y,close:w,setTitleId:E,unmount:d},g],[y,w,E,d,g]),N=tn({open:0===y}),D={ref:_,id:r,role:u,tabIndex:-1,"aria-modal":c?void 0:0===y||void 0,"aria-labelledby":g.titleId,"aria-describedby":A,unmount:d},q=!function(){var e;let[t]=(0,s.useState)(()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,r]=(0,s.useState)(null!=(e=null==t?void 0:t.matches)&&e);return Oe(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){r(e.matches)}},[t]),n}(),j=On.None;C&&!c&&(j|=On.RestoreFocus,j|=On.TabLock,l&&(j|=On.AutoFocus),q&&(j|=On.InitialFocus));let L=It();return s.default.createElement(dn,null,s.default.createElement(hn,{force:!0},s.default.createElement(jn,null,s.default.createElement(ir.Provider,{value:I},s.default.createElement(qn,{target:m},s.default.createElement(hn,{force:!1},s.default.createElement(M,{slot:N},s.default.createElement(x,null,s.default.createElement(Pn,{initialFocus:a,initialFocusFallback:m,containers:P,features:j},s.default.createElement(sn,{value:w},L({ourProps:D,theirProps:f,slot:N,defaultTag:lr,features:cr,visible:0===y,name:"Dialog"})))))))))))}),lr="div",cr=At.RenderStrategy|At.Static;let dr=jt(function(e,t){let{transition:n=!1,open:r,...o}=e,i=ln(),a=e.hasOwnProperty("open")||null!==i,u=e.hasOwnProperty("onClose");if(!a&&!u)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!u)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&"boolean"!=typeof e.open)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return void 0===r&&!n||o.static?s.default.createElement(Bt,null,s.default.createElement(ur,{ref:t,open:r,...o})):s.default.createElement(Bt,null,s.default.createElement(tr,{show:r,transition:n,unmount:o.unmount},s.default.createElement(ur,{ref:t,...o})))}),fr=jt(function(e,t){let n=(0,s.useId)(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...i}=e,[{dialogState:a,unmount:u},l]=sr("Dialog.Panel"),c=rn(t,l.panelRef),d=tn({open:0===a}),f=Je(e=>{e.stopPropagation()}),h={ref:c,id:r,onClick:f},p=o?er:s.Fragment,m=o?{unmount:u}:{},_=It();return s.default.createElement(p,{...m},_({ourProps:h,theirProps:i,slot:d,defaultTag:"div",name:"Dialog.Panel"}))}),hr=(jt(function(e,t){let{transition:n=!1,...r}=e,[{dialogState:o,unmount:i}]=sr("Dialog.Backdrop"),a=tn({open:0===o}),u={ref:t,"aria-hidden":!0},l=n?er:s.Fragment,c=n?{unmount:i}:{},d=It();return s.default.createElement(l,{...c},d({ourProps:u,theirProps:r,slot:a,defaultTag:"div",name:"Dialog.Backdrop"}))}),jt(function(e,t){let n=(0,s.useId)(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:a}]=sr("Dialog.Title"),u=rn(t);(0,s.useEffect)(()=>(a(r),()=>a(null)),[r,a]);let l=tn({open:0===i}),c={ref:u,id:r};return It()({ourProps:c,theirProps:o,slot:l,defaultTag:"h2",name:"Dialog.Title"})})),pr=Object.assign(dr,{Panel:fr,Title:hr,Description:yn});var mr;function _r(){return _r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_r.apply(null,arguments)}const vr=function(e){return s.createElement("svg",_r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),mr||(mr=s.createElement("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})))};var yr;function gr(){return gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gr.apply(null,arguments)}const br=function(e){return s.createElement("svg",gr({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),yr||(yr=s.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"})))},wr=(0,s.forwardRef)(({submitButtonText:e="Søg",placeholder:t="Hvad søger du?",id:n="q",name:r="q",value:o="",onSubmit:i,...s},a)=>g("div",{className:"raffle-search-input",children:[g("input",{ref:a,type:"text",placeholder:t,id:n,name:r,value:o,...s}),g("button",{type:"submit",className:"raffle-search-input__submit",children:[g("span",{className:"raffle-search-input__submit-text",children:e}),g(vr,{"aria-hidden":!0})]})]}));wr.displayName="RaffleSearchInput";const Er=(0,s.createContext)({}),Cr=(0,s.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Sr=(0,s.createContext)({});var xr=o(3255),Or=o(4333);function Rr(e){const{initial:t,animate:n}=function(e,t){if((0,xr.e)(e)){const{initial:t,animate:n}=e;return{initial:!1===t||(0,Or.w)(t)?t:void 0,animate:(0,Or.w)(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(Sr));return(0,s.useMemo)(()=>({initial:t,animate:n}),[Pr(t),Pr(n)])}function Pr(e){return Array.isArray(e)?e.join(" "):e}var kr=o(3005),Fr=o(9141),Tr=o(476);const Ar=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Mr(e,t,n){for(const r in t)(0,kr.S)(t[r])||(0,Fr.z)(r,n)||(e[r]=t[r])}function Ir(e,t){const n={};return Mr(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,s.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return(0,Tr.O)(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),n}function Nr(e,t){const n={},r=Ir(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTa
2p||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Dr=o(8186);const qr=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}});var jr=o(51);function Lr(e,t,n,r){const o=(0,s.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return(0,Dr.B)(n,t,(0,jr.n)(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};Mr(t,e.style,e),o.style={...t,...o.style}}return o}const Ur=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Qr(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ur.has(e)}let Hr=e=>!Qr(e);try{"function"==typeof($r=require("@emotion/is-prop-valid").default)&&(Hr=e=>e.startsWith("on")?!Qr(e):$r(e))}catch{}var $r;var Wr=o(2143);function Kr(e,t,n,{latestValues:r},o,i=!1){const a=((0,Wr.Q)(e)?Lr:Nr)(t,r,o,e),u=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Hr(o)||!0===n&&Qr(o)||!t&&!Qr(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(t,"string"==typeof e,i),l=e!==s.Fragment?{...u,...a,ref:n}:{},{children:c}=t,d=(0,s.useMemo)(()=>(0,kr.S)(c)?c.get():c,[c]);return(0,s.createElement)(e,{...l,children:d})}var Br=o(6598);const Vr=(0,s.createContext)(null);var Xr=o(6759);function zr(e){const t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}function Gr(e){return(0,kr.S)(e)?e.get():e}function Yr(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Gr(i[e]);let{initial:s,animate:a}=e;const u=(0,xr.e)(e),l=(0,xr.O)(e);t&&l&&!u&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let c=!!n&&!1===n.initial;c=c||!1===s;const d=c?a:s;if(d&&"boolean"!=typeof d&&!(0,Br.N)(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=(0,Xr.a)(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];if(Array.isArray(t)){t=t[c?t.length-1:0]}null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const Zr=e=>(t,n)=>{const r=(0,s.useContext)(Sr),o=(0,s.useContext)(Vr),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Yr(n,r,o,e),renderState:t()}}(e,t,r,o);return n?i():zr(i)};const Jr=Zr({scrapeMotionValuesFromProps:o(9146).x,createRenderState:Ar});const eo=Zr({scrapeMotionValuesFromProps:o(5075).x,createRenderState:qr});var to=o(6480);const no=Symbol.for("motionComponentSymbol");function ro(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function oo(e,t,n){return(0,s.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):ro(n)&&(n.current=r))},[t])}var io=o(4008);const so=(0,s.createContext)({}),ao=to.B?s.useLayoutEffect:s.useEffect;function uo(e,t,n,r,o){const{visualElement:i}=(0,s.useContext)(Sr),a=(0,s.useContext)(b),u=(0,s.useContext)(Vr),l=(0,s.useContext)(Cr).reducedMotion,c=(0,s.useRef)(null);r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:l}));const d=c.current,f=(0,s.useContext)(so);!d||d.projection||!o||"html"!==d.type&&"svg"!==d.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:lo(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||a&&ro(a),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:u,layoutRoot:l})}(c.current,n,o,f);const h=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{d&&h.current&&d.update(n,u)});const p=n[io.n],m=(0,s.useRef)(Boolean(p)&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return ao(()=>{d&&(h.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),m.current&&d.animationState&&d.animationState.animateChanges())}),(0,s.useEffect)(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1),d.enteringChildren=void 0)}),d}function lo(e){if(e)return!1!==e.options.allowProjection?e.projection:lo(e.parent)}function co(e,{forwardMotionProps:t=!1}={},n,r){n&&E(n);const o=(0,Wr.Q)(e)?eo:Jr;function i(n,i){let a;const u={...(0,s.useContext)(Cr),...n,layoutId:fo(n)},{isStatic:l}=u,c=Rr(n),d=o(n,l);if(!l&&to.B){!function(){(0,s.useContext)(b).strict;0}();const t=function(e){const{drag:t,layout:n}=w.B;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
2(u);a=t.MeasureLayout,c.visualElement=uo(e,d,u,r,t.ProjectionNode)}return g(Sr.Provider,{value:c,children:[a&&c.visualElement?g(a,{visualElement:c.visualElement,...u}):null,Kr(e,n,oo(d,c.visualElement,i),d,l,t)]})}i.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;const a=(0,s.forwardRef)(i);return a[no]=e,a}function fo({layoutId:e}){const t=(0,s.useContext)(Er).id;return t&&void 0!==e?t+"-"+e:e}function ho(e,t){return co(e,t)}const po=ho("div"),mo=ho("li"),_o=ho("ul");var vo=o(5656);function yo(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function go(...e){return s.useCallback(function(...e){return t=>{let n=!1;const r=e.map(e=>{const r=yo(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():yo(e[t],null)}}}}(...e),e)}class bo extends s.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=t.offsetParent,n=(0,vo.s)(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function wo({children:e,isPresent:t,anchorX:n,root:r}){const o=(0,s.useId)(),i=(0,s.useRef)(null),a=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,s.useContext)(Cr),l=go(i,e?.ref);return(0,s.useInsertionEffect)(()=>{const{width:e,height:s,top:l,left:c,right:d}=a.current;if(t||!i.current||!e||!s)return;const f="left"===n?`left: ${c}`:`right: ${d}`;i.current.dataset.motionPopId=o;const h=document.createElement("style");u&&(h.nonce=u);const p=r??document.head;return p.appendChild(h),h.sheet&&h.sheet.insertRule(`\n [data-motion-pop-id="${o}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${s}px !important;\n ${f}px !important;\n top: ${l}px !important;\n }\n `),()=>{p.contains(h)&&p.removeChild(h)}},[t]),g(bo,{isPresent:t,childRef:i,sizeRef:a,children:s.cloneElement(e,{ref:l})})}const Eo=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a,anchorX:u,root:l})=>{const c=zr(Co),d=(0,s.useId)();let f=!0,h=(0,s.useMemo)(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:e=>{c.set(e,!0);for(const e of c.values())if(!e)return;r&&r()},register:e=>(c.set(e,!1),()=>c.delete(e))}),[n,c,r]);return i&&f&&(h={...h}),(0,s.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[n]),s.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),"popLayout"===a&&(e=g(wo,{isPresent:n,anchorX:u,root:l,children:e})),g(Vr.Provider,{value:h,children:e})};function Co(){return new Map}const So=e=>e.key||"";function xo(e){const t=[];return s.Children.forEach(e,e=>{(0,s.isValidElement)(e)&&t.push(e)}),t}const Oo=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:a="sync",propagate:u=!1,anchorX:l="left",root:c})=>{const[d,f]=function(e=!0){const t=(0,s.useContext)(Vr);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=(0,s.useId)();(0,s.useEffect)(()=>{if(e)return o(i)},[e]);const a=(0,s.useCallback)(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}(u),h=(0,s.useMemo)(()=>xo(e),[e]),p=u&&!d?[]:h.map(So),m=(0,s.useRef)(!0),_=(0,s.useRef)(h),v=zr(()=>new Map),[y,b]=(0,s.useState)(h),[w,E]=(0,s.useState)(h);ao(()=>{m.current=!1,_.current=h;for(let e=0;e<w.length;e++){const t=So(w[e]);p.includes(t)?v.delete(t):!0!==v.get(t)&&v.set(t,!1)}},[w,p.length,p.join("-")]);const C=[];if(h!==y){let e=[...h];for(let t=0;t<w.length;t++){const n=w[t],r=So(n);p.includes(r)||(e.splice(t,0,n),C.push(n))}return"wait"===a&&C.length&&(e=C),E(xo(e)),b(h),null}const{forceRender:S}=(0,s.useContext)(Er);return g(i.FK,{children:w.map(e=>{const i=So(e),s=!(u&&!d)&&(h===w||p.includes(i));return g(Eo,{isPresent:s,initial:!(m.current&&!n)&&void 0,custom:t,presenceAffectsLayout:o,mode:a,root:c,onExitComplete:s?void 0:()=>{if(!v.has(i))return;v.set(i,!0);let e=!0;v.forEach(t=>{t||(e=!1)}
2),e&&(S?.(),E(_.current),u&&f?.(),r&&r())},anchorX:l,children:e},i)})})};var Ro=o(3769);function Po(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(o,i)=>{const s="number"==typeof n?n:function(e,t){if("first"===e)return 0;{const n=t-1;return"last"===e?n:n/2}}(n,i),a=Math.abs(s-o);let u=e*a;if(r){const t=i*e;u=(0,Ro.K)(r)(u/t)*t}return t+u}}const ko=/\{[^{}]+\}/g;function Fo(e){let{baseUrl:t="",Request:n=globalThis.Request,fetch:r=globalThis.fetch,querySerializer:o,bodySerializer:i,headers:s,requestInitExt:a,...u}={...e};a="object"==typeof process&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici?a:void 0,t=qo(t);const l=[];async function c(e,c){const{baseUrl:d,fetch:f=r,Request:h=n,headers:p,params:m={},parseAs:_="json",querySerializer:v,bodySerializer:y=i??No,body:g,...b}=c||{};let w=t;d&&(w=qo(d)??t);let E="function"==typeof o?o:Io(o);v&&(E="function"==typeof v?v:Io({..."object"==typeof o?o:{},...v}));const C=void 0===g?void 0:y(g,Do(s,p,m.header)),S=Do(void 0===C||C instanceof FormData?{}:{"Content-Type":"application/json"},s,p,m.header),x={redirect:"follow",...u,...b,body:C,headers:S};let O,R,P,k=new n(function(e,t){let n=`${t.baseUrl}${e}`;t.params?.path&&(n=function(e,t){let n=e;for(const r of e.match(ko)??[]){let e=r.substring(1,r.length-1),o=!1,i="simple";if(e.endsWith("*")&&(o=!0,e=e.substring(0,e.length-1)),e.startsWith(".")?(i="label",e=e.substring(1)):e.startsWith(";")&&(i="matrix",e=e.substring(1)),!t||void 0===t[e]||null===t[e])continue;const s=t[e];Array.isArray(s)?n=n.replace(r,Mo(e,s,{style:i,explode:o})):n="object"!=typeof s?"matrix"!==i?n.replace(r,"label"===i?`.${encodeURIComponent(s)}`:encodeURIComponent(s)):n.replace(r,`;${To(e,s)}`):n.replace(r,Ao(e,s,{style:i,explode:o}))}return n}(n,t.params.path));let r=t.querySerializer(t.params.query??{});r.startsWith("?")&&(r=r.substring(1));r&&(n+=`?${r}`);return n}(e,{baseUrl:w,params:m,querySerializer:E}),x);for(const e in b)e in k||(k[e]=b[e]);if(l.length){O=Math.random().toString(36).slice(2,11),R=Object.freeze({baseUrl:w,fetch:f,parseAs:_,querySerializer:E,bodySerializer:y});for(const t of l)if(t&&"object"==typeof t&&"function"==typeof t.onRequest){const r=await t.onRequest({request:k,schemaPath:e,params:m,options:R,id:O});if(r){if(!(r instanceof n)){if(r instanceof Response){P=r;break}throw new Error("onRequest: must return new Request() or Response() when modifying the request")}k=r}}}if(!P){try{P=await f(k,a)}catch(t){let n=t;if(l.length)for(let t=l.length-1;t>=0;t--){const r=l[t];if(r&&"object"==typeof r&&"function"==typeof r.onError){const t=await r.onError({request:k,error:n,schemaPath:e,params:m,options:R,id:O});if(t){if(t instanceof Response){n=void 0,P=t;break}if(t instanceof Error){n=t;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(n)throw n}if(l.length)for(let t=l.length-1;t>=0;t--){const n=l[t];if(n&&"object"==typeof n&&"function"==typeof n.onResponse){const t=await n.onResponse({request:k,response:P,schemaPath:e,params:m,options:R,id:O});if(t){if(!(t instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");P=t}}}}if(204===P.status||"HEAD"===k.method||"0"===P.headers.get("Content-Length"))return P.ok?{data:void 0,response:P}:{error:void 0,response:P};if(P.ok)return"stream"===_?{data:P.body,response:P}:{data:await P[_](),response:P};let F=await P.text();try{F=JSON.parse(F)}catch{}return{error:F,response:P}}return{request:(e,t,n)=>c(t,{...n,method:e.toUpperCase()}),GET:(e,t)=>c(e,{...t,method:"GET"}),PUT:(e,t)=>c(e,{...t,method:"PUT"}),POST:(e,t)=>c(e,{...t,method:"POST"}),DELETE:(e,t)=>c(e,{...t,method:"DELETE"}),OPTIONS:(e,t)=>c(e,{...t,method:"OPTIONS"}),HEAD:(e,t)=>c(e,{...t,method:"HEAD"}),PATCH:(e,t)=>c(e,{...t,method:"PATCH"}),TRACE:(e,t)=>c(e,{...t,method:"TRACE"}),use(...e){for(const t of e)if(t){if("object"!=typeof t||!("onRequest"in t||"onResponse"in t||"onError"in t))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");l.push(t)}},eject(...e){for(const t of e){const e=l.indexOf(t);-1!==e&&l.splice(e,1)}}}}function To(e,t,n){if(null==t)return"";if("object"==typeof t)throw new Error("Deeply-nested arrays/objects arenât supported. Provide your own `querySerializer()` to handle these.");return`${e}=${!0===n?.allowReserved?t:encodeURIComponent(t)}`}function Ao(e,t,n){if(!t||"object"!=typeof t)return"";const r=[],o={simple:",",label:".",matrix:";"}[n.style]||"&";if("deepObject"!==n.style&&!1===n.explode){for(const e in t)r.push(e,!0===n.allowReserved?t[e]:encodeURIComponent(t[e]));const o=r.join(",");switch(n.style){case"form":return`${e}=${o}`;case"label":return`.${o}`;case"matrix":return`;${e}=${o}`;default:return o}}for(const o in t){const i="deepObject"===n.style?`${e}[${o}
2]`:o;r.push(To(i,t[o],n))}const i=r.join(o);return"label"===n.style||"matrix"===n.style?`${o}${i}`:i}function Mo(e,t,n){if(!Array.isArray(t))return"";if(!1===n.explode){const r={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[n.style]||",",o=(!0===n.allowReserved?t:t.map(e=>encodeURIComponent(e))).join(r);switch(n.style){case"simple":return o;case"label":return`.${o}`;case"matrix":return`;${e}=${o}`;default:return`${e}=${o}`}}const r={simple:",",label:".",matrix:";"}[n.style]||"&",o=[];for(const r of t)"simple"===n.style||"label"===n.style?o.push(!0===n.allowReserved?r:encodeURIComponent(r)):o.push(To(e,r,n));return"label"===n.style||"matrix"===n.style?`${r}${o.join(r)}`:o.join(r)}function Io(e){return function(t){const n=[];if(t&&"object"==typeof t)for(const r in t){const o=t[r];if(null!=o)if(Array.isArray(o)){if(0===o.length)continue;n.push(Mo(r,o,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}))}else"object"!=typeof o?n.push(To(r,o,e)):n.push(Ao(r,o,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}))}return n.join("&")}}function No(e,t){if(e instanceof FormData)return e;if(t){if("application/x-www-form-urlencoded"===(t.get instanceof Function?t.get("Content-Type")??t.get("content-type"):t["Content-Type"]??t["content-type"]))return new URLSearchParams(e).toString()}return JSON.stringify(e)}function Do(...e){const t=new Headers;for(const n of e){if(!n||"object"!=typeof n)continue;const e=n instanceof Headers?n.entries():Object.entries(n);for(const[n,r]of e)if(null===r)t.delete(n);else if(Array.isArray(r))for(const e of r)t.append(n,e);else void 0!==r&&t.set(n,r)}return t}function qo(e){return e.endsWith("/")?e.substring(0,e.length-1):e}var jo=class extends Z{constructor(e,t){super(),this.options=t,this.#c=e,this.#w=null,this.#E=te(),this.bindMethods(),this.setOptions(t)}#c;#C=void 0;#S=void 0;#x=void 0;#O;#R;#E;#w;#P;#k;#F;#T;#A;#M;#I=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#C.addObserver(this),Lo(this.#C,this.options)?this.#N():this.updateResult(),this.#D())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Uo(this.#C,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Uo(this.#C,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#q(),this.#j(),this.#C.removeObserver(this)}setOptions(e){const t=this.options,n=this.#C;if(this.options=this.#c.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof A(this.options.enabled,this.#C))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#L(),this.#C.setOptions(this.options),t._defaulted&&!U(this.options,t)&&this.#c.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#C,observer:this});const r=this.hasListeners();r&&Qo(this.#C,n,this.options,t)&&this.#N(),this.updateResult(),!r||this.#C===n&&A(this.options.enabled,this.#C)===A(t.enabled,this.#C)&&T(this.options.staleTime,this.#C)===T(t.staleTime,this.#C)||this.#U();const o=this.#Q();!r||this.#C===n&&A(this.options.enabled,this.#C)===A(t.enabled,this.#C)&&o===this.#M||this.#H(o)}getOptimisticResult(e){const t=this.#c.getQueryCache().build(this.#c,e),n=this.createResult(t,e);return function(e,t){if(!U(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(this.#x=n,this.#R=this.options,this.#O=this.#C.state),n}getCurrentResult(){return this.#x}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),"promise"!==n||this.options.experimental_prefetchInRender||"pending"!==this.#E.status||this.#E.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(e,n))})}trackProp(e){this.#I.add(e)}getCurrentQuery(){return this.#C}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#c.defaultQueryOptions(e),n=this.#c.getQueryCache().build(this.#c,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#N({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#x))}#N(e){this.#L();let t=this.#C.fetch(this.options,e);return e?.throwOnError||(t=t.catch(P)),t}#U(){this.#q();const e=T(this.options.staleTime,this.#C);if(R||this.#x.isStale||!k(e))return;const t=F(this.#x.dataUpdatedAt,e)+1;this.#T=O.setTimeout(()=>{this.#x.isStale||this.updateResult()},t)}#Q(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#C):this.options.refetchInterval)??!1}#H(e){this.#j(),this.#M=e,!R&&!1!==A(this.options.enabled,this.#C)&&k(this.#M)&&0!==this.#M&&(this.#A=O.setInterval(()=>
2{(this.options.refetchIntervalInBackground||J.isFocused())&&this.#N()},this.#M))}#D(){this.#U(),this.#H(this.#Q())}#q(){this.#T&&(O.clearTimeout(this.#T),this.#T=void 0)}#j(){this.#A&&(O.clearInterval(this.#A),this.#A=void 0)}createResult(e,t){const n=this.#C,r=this.options,o=this.#x,i=this.#O,s=this.#R,a=e!==n?e.state:this.#S,{state:u}=e;let l,c={...u},d=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&Lo(e,t),s=o&&Qo(e,n,t,r);(i||s)&&(c={...c,...ue(u.data,e.options)}),"isRestoring"===t._optimisticResults&&(c.fetchStatus="idle")}let{error:f,errorUpdatedAt:h,status:p}=c;l=c.data;let m=!1;if(void 0!==t.placeholderData&&void 0===l&&"pending"===p){let e;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#F?.state.data,this.#F):t.placeholderData,void 0!==e&&(p="success",l=W(o?.data,e,t),d=!0)}if(t.select&&void 0!==l&&!m)if(o&&l===i?.data&&t.select===this.#P)l=this.#k;else try{this.#P=t.select,l=t.select(l),l=W(o?.data,l,t),this.#k=l,this.#w=null}catch(e){this.#w=e}this.#w&&(f=this.#w,l=this.#k,h=Date.now(),p="error");const _="fetching"===c.fetchStatus,v="pending"===p,y="error"===p,g=v&&_,b=void 0!==l,w={status:p,fetchStatus:c.fetchStatus,isPending:v,isSuccess:"success"===p,isError:y,isInitialLoading:g,isLoading:g,data:l,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>a.dataUpdateCount||c.errorUpdateCount>a.errorUpdateCount,isFetching:_,isRefetching:_&&!v,isLoadingError:y&&!b,isPaused:"paused"===c.fetchStatus,isPlaceholderData:d,isRefetchError:y&&b,isStale:Ho(e,t),refetch:this.refetch,promise:this.#E,isEnabled:!1!==A(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===w.status?e.reject(w.error):void 0!==w.data&&e.resolve(w.data)},r=()=>{const e=this.#E=w.promise=te();t(e)},o=this.#E;switch(o.status){case"pending":e.queryHash===n.queryHash&&t(o);break;case"fulfilled":"error"!==w.status&&w.data===o.value||r();break;case"rejected":"error"===w.status&&w.error===o.reason||r()}}return w}updateResult(){const e=this.#x,t=this.createResult(this.#C,this.options);if(this.#O=this.#C.state,this.#R=this.options,void 0!==this.#O.data&&(this.#F=this.#C),U(t,e))return;this.#x=t;this.#$({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#I.size)return!0;const r=new Set(n??this.#I);return this.options.throwOnError&&r.add("error"),Object.keys(this.#x).some(t=>{const n=t;return this.#x[n]!==e[n]&&r.has(n)})})()})}#L(){const e=this.#c.getQueryCache().build(this.#c,this.options);if(e===this.#C)return;const t=this.#C;this.#C=e,this.#S=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#D()}#$(e){Y.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#x)}),this.#c.getQueryCache().notify({query:this.#C,type:"observerResultsUpdated"})})}};function Lo(e,t){return function(e,t){return!1!==A(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Uo(e,t,t.refetchOnMount)}function Uo(e,t,n){if(!1!==A(t.enabled,e)&&"static"!==T(t.staleTime,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&Ho(e,t)}return!1}function Qo(e,t,n,r){return(e!==t||!1===A(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&Ho(e,n)}function Ho(e,t){return!1!==A(t.enabled,e)&&e.isStaleByTime(T(t.staleTime,e))}function $o(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Wo=s.createContext($o()),Ko=s.createContext(!1),Bo=(Ko.Provider,(e,t)=>void 0===t.state.data),Vo=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Xo(e,t,n){const r=s.useContext(Ko),o=s.useContext(Wo),i=be(n),a=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=r?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,n=e=>"static"===e?e:Math.max(e??t,t),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>n(r(...e)):n(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(a),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOn
2Mount=!1))})(a,o),(e=>{s.useEffect(()=>{e.clearReset()},[e])})(o);const u=!i.getQueryCache().get(a.queryHash),[l]=s.useState(()=>new t(i,a)),c=l.getOptimisticResult(a),d=!r&&!1!==e.subscribed;if(s.useSyncExternalStore(s.useCallback(e=>{const t=d?l.subscribe(Y.batchCalls(e)):P;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),s.useEffect(()=>{l.setOptions(a)},[a,l]),((e,t)=>e?.suspense&&t.isPending)(a,c))throw Vo(a,l,o);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&void 0===e.data||z(n,[e.error,r])))({result:c,errorResetBoundary:o,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw c.error;if(i.getDefaultOptions().queries?._experimental_afterQuery?.(a,c),a.experimental_prefetchInRender&&!R&&((e,t)=>e.isLoading&&e.isFetching&&!t)(c,r)){const e=u?Vo(a,l,o):i.getQueryCache().get(a.queryHash)?.promise;e?.catch(P).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?c:l.trackResult(c)}var zo=class extends jo{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:pe()})}getOptimisticResult(e){return e.behavior=pe(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:i,isError:s,isRefetchError:a}=r,u=n.fetchMeta?.fetchMore?.direction,l=s&&"forward"===u,c=o&&"forward"===u,d=s&&"backward"===u,f=o&&"backward"===u;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:ve(t,n.data),hasPreviousPage:ye(t,n.data),isFetchNextPageError:l,isFetchingNextPage:c,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:a&&!l&&!d,isRefetching:i&&!c&&!f}}};var Go=class extends Z{#c;#x=void 0;#W;#K;constructor(e,t){super(),this.#c=e,this.setOptions(t),this.bindMethods(),this.#B()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#c.defaultMutationOptions(e),U(this.options,t)||this.#c.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#W,observer:this}),t?.mutationKey&&this.options.mutationKey&&D(t.mutationKey)!==D(this.options.mutationKey)?this.reset():"pending"===this.#W?.state.status&&this.#W.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#W?.removeObserver(this)}onMutationUpdate(e){this.#B(),this.#$(e)}getCurrentResult(){return this.#x}reset(){this.#W?.removeObserver(this),this.#W=void 0,this.#B(),this.#$()}mutate(e,t){return this.#K=t,this.#W?.removeObserver(this),this.#W=this.#c.getMutationCache().build(this.#c,this.options),this.#W.addObserver(this),this.#W.execute(e)}#B(){const e=this.#W?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#x={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#$(e){Y.batch(()=>{if(this.#K&&this.hasListeners()){const t=this.#x.variables,n=this.#x.context,r={client:this.#c,meta:this.options.meta,mutationKey:this.options.mutationKey};"success"===e?.type?(this.#K.onSuccess?.(e.data,t,n,r),this.#K.onSettled?.(e.data,null,t,n,r)):"error"===e?.type&&(this.#K.onError?.(e.error,t,n,r),this.#K.onSettled?.(void 0,e.error,t,n,r))}this.listeners.forEach(e=>{e(this.#x)})})}};const Yo=function(e){const t=async({queryKey:[t,n,r],signal:o})=>{const i=t.toUpperCase(),s=e[i],{data:a,error:u,response:l}=await s(n,{signal:o,...r});if(u)throw u;return 204===l.status||"0"===l.headers.get("Content-Length")?a??null:a},n=(e,n,...[r,o])=>({queryKey:void 0===r?[e,n]:[e,n,r],queryFn:t,...o});return{queryOptions:n,useQuery:(e,t,...[r,o,i])=>function(e,t){return Xo(e,jo,t)}
2(n(e,t,r,o),i),useSuspenseQuery:(e,t,...[r,o,i])=>function(e,t){return Xo({...e,enabled:!0,suspense:!0,throwOnError:Bo,placeholderData:void 0},jo,t)}(n(e,t,r,o),i),useInfiniteQuery:(t,r,o,i,s)=>{const{pageParamName:a="cursor",...u}=i,{queryKey:l}=n(t,r,o);return function(e,t){return Xo(e,zo,t)}({queryKey:l,queryFn:async({queryKey:[t,n,r],pageParam:o=0,signal:i})=>{const s=t.toUpperCase(),u=e[s],l={...r,signal:i,params:{...r?.params||{},query:{...r?.params?.query,[a]:o}}},{data:c,error:d}=await u(n,l);if(d)throw d;return c},...u},s)},useMutation:(t,n,r,o)=>function(e,t){const n=be(t),[r]=s.useState(()=>new Go(n,e));s.useEffect(()=>{r.setOptions(e)},[r,e]);const o=s.useSyncExternalStore(s.useCallback(e=>r.subscribe(Y.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=s.useCallback((e,t)=>{r.mutate(e,t).catch(P)},[r]);if(o.error&&z(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}({mutationKey:[t,n],mutationFn:async r=>{const o=t.toUpperCase(),i=e[o],{data:s,error:a}=await i(n,r);if(a)throw a;return s},...r},o)}}(Fo({baseUrl:"https://api.raffle.ai/"})),Zo=({raffleSearchUid:e,searchPageUrl:t})=>{const{data:n,isLoading:r}=Yo.useQuery("get","/v2/top_questions",{params:{query:{uid:e}}}),o=e=>{const n=new URL(t,window.location.origin);return n.searchParams.set("q",e.trim()),n.toString()},i={initial:"hidden",animate:"visible",transition:{delayChildren:Po(.12,{startDelay:.58})}},s={variants:{hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{opacity:{duration:.2},scale:{duration:.3,type:"spring",bounce:.5}}}}},a={initial:{opacity:0}
2,animate:{opacity:1}};return g("section",{"aria-busy":r,"aria-labelledby":"raffle-top-questions-title",children:[g("h3",{id:"raffle-top-questions-title",className:"raffle-top-questions__title",children:"Populære spørgsmål:"}),g(Oo,{children:[(null==n?void 0:n.questions)&&g(_o,{className:"raffle-top-questions__list typo__dark-text",...i,children:n.questions.map(({question:e},t)=>e&&g(mo,{...s,whileHover:{scale:1.02},children:g("a",{className:"raffle-top-questions__list-item",href:o(e),children:e})},t))}),r&&g("div",{className:"raffle-top-questions__list","aria-hidden":!0,children:Array.from({length:5},(e,t)=>g(po,{className:"skeleton w-40 h-heading",...a},t))})]})]})},Jo=({searchPageUrl:e,raffleSearchUid:t})=>{const n="Find svar",[r,o]=(0,s.useState)(!1);return g(i.FK,{children:[g("button",{onClick:()=>o(!0),className:"raffle-search-dialog__trigger typo__bordeaux-color header__tool-link header__tool-link--low-priority",children:[g(vr,{"aria-hidden":!0}),"Søg"]}),g(Oo,{children:r&&g(pr,{static:!0,open:r,onClose:()=>o(!1),children:g(po,{className:"raffle-search-dialog typo__light-text",initial:{opacity:0}
2,animate:{opacity:1,transition:{duration:.4,ease:"easeInOut"}},exit:{opacity:0,transition:{duration:.3,ease:"easeInOut"}},children:g(fr,{className:"raffle-search-dialog__panel",children:g(po,{transition:{type:"spring",duration:.5,bounce:.45,delay:.4},initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9,transition:{delay:0}},children:[g("div",{className:"layout__unit raffle-search-dialog__top-panel",children:[g("h2",{className:"raffle-search-dialog__title raffle-search-dialog__title--mobile",children:n}),g("button",{className:"raffle-search-dialog__close",onClick:()=>o(!1),"aria-label":"Luk",children:g(br,{"aria-hidden":!0})})]}),g("div",{className:"raffle-search-dialog__content layout__unit layout__unit--max-width-wide",children:[g("div",{children:[g("h2",{className:"raffle-search-dialog__title raffle-search-dialog__title--desktop",children:n}),g("form",{action:e,class:"typo__margin-top--small typo__no-margin--bottom",children:g(wr,{"data-autofocus":!0})})]}),g(Zo,{raffleSearchUid:t,searchPageUrl:e}),g("h3",{className:"sr-only",children:"Kontaktinformation"}),g("p",{className:"raffle-search-dialog__info",children:[g("strong",{children:"Har du brug for at tale med os?"}),g("br",{}),g("a",{href:"tel:+4535465000",children:"Ring 35 46 50 00"})]})]})]})})})})})]})},ei=new class{#V;#v;#f;#X;#z;#G;#Y;#Z;constructor(e={}){this.#V=e.queryCache||new ce,this.#v=e.mutationCache||new fe,this.#f=e.defaultOptions||{},this.#X=new Map,this.#z=new Map,this.#G=0}mount(){this.#G++,1===this.#G&&(this.#Y=J.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#V.onFocus())}),this.#Z=ee.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#V.onOnline())}))}unmount(){this.#G--,0===this.#G&&(this.#Y?.(),this.#Y=void 0,this.#Z?.(),this.#Z=void 0)}isFetching(e){return this.#V.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#v.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#V.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#V.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(T(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#V.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#V.get(r.queryHash),i=o?.state.data,s=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==s)return this.#V.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Y.batch(()=>this.#V.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#V.get(t.queryHash)?.state}removeQueries(e){const t=this.#V;Y.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=this.#V;return Y.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Y.batch(()=>this.#V.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(P).catch(P)}invalidateQueries(e,t={}){return Y.batch(()=>(this.#V.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Y.batch(()=>this.#V.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(P)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(P)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#V.build(this,t);return n.isStaleByTime(T(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(P).catch(P)}fetchInfiniteQuery(e){return e.behavior=pe(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(P).catch(P)}ensureInfiniteQueryData(e){return e.behavior=pe(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ee.isOnline()?this.#v.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#V}getMutationCache(){return this.#v}getDefaultOptions(){return this.#f}setDefaultOptions(e){this.#f=e}setQueryDefaults(e,t){this.#X.set(D(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#X.values()],n={};return t.forEach(t=>{q(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#z.set(D(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#z.values()],n={};return t.forEach(t=>{q(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#f.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=N(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===V&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#f.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#V.clear(),this.#v.clear()}};return v(({searchPageUrl:e,raffleSearchUid:t})=>g(we,{client:ei,children:g(C,{features:()=>o.e(482).then(o.bind(o,6482)).then(e=>e.domAnimation),children:g(Jo,{searchPageUrl:e,raffleSearchUid:t})})})).render({selector:'[data-island="raffle-search-dialog"]',initialProps:{raffleSearchUid:"MISSING_ENV_VAR".RAFFLE_SEARCH_UID,searchPageUrl:"/"}}),{}})());
3//# sourceMappingURL=raffle-search-dialog.island.umd.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.