index of
/
home
/
thefkyzp
/
hulmvisaadvisor.com
/
wp-content
/
plugins
/
astra-sites
/
inc
/
lib
/
zipwp-images
/
dist
/
File: /home/thefkyzp/hulmvisaadvisor.com/wp-content/plugins/astra-sites/inc/lib/zipwp-images/dist/main.js
(()=>{"use strict";var e,t,n,r={94:(e,t,n)=>{var r=n(609),o=n.t(r,2),i=n.n(r);const a=window.wp.element,l=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))})),s=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))})),c=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))})),u=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))})),d=window.wp.apiFetch;var f=n.n(d);const p=window.wp.i18n;var m=n(848),h=[640,786,1024,1280,1536],g=(e,t)=>{let n=Object.keys((e=>Array.isArray(e)?(e=>e.reduce(((e,t,n)=>"number"!=typeof t?e:{...e,[h[n]]:t}),{}))(e):e)(e)).map(Number).sort(((e,t)=>e-t)),r=null;for(let e of n)t>e&&(r=e);return null!=r?r:n[0]},v=e=>{let t="object"==typeof e,n=((e=!0)=>{let[t,n]=(0,r.useState)(window.innerWidth),o=(0,r.useCallback)((()=>{n(window.innerWidth)}),[]);return(0,r.useEffect)((()=>(e?window.addEventListener("resize",o):window.removeEventListener("resize",o),()=>{window.removeEventListener("resize",o)})),[e,o]),t})(t);return(0,r.useMemo)((()=>{var r;if(!t)return null!=e?e:3;let o=g(e,n);return null!=(r=e[o])?r:3}),[t,n,e])},b=(0,r.createContext)({column:0,position:0}),y=(0,r.forwardRef)(((e,t)=>{let{gap:n,as:o="div",columnProps:i,columns:a,...l}=e,s=(0,r.useId)(),c=((e,t)=>{let n=v(t);return(0,r.useMemo)((()=>{let t=(e=>Array.from({length:e},(()=>[])))(n);return r.Children.forEach(e,((e,o)=>{(0,r.isValidElement)(e)&&t[o%n].push(e)})),t}),[n,e])})(e.children,a);return(0,m.jsx)(o,{"data-masonry-id":`Masonry-${s}`,...l,style:{display:"flex",gap:n,...l.style},ref:t,children:c.map(((e,t)=>(0,m.jsx)(o,{"data-masonry-column":t+1,...i,style:{display:"flex",flex:1,flexDirection:"column",gap:n,...null==i?void 0:i.style},children:e.map(((e,n)=>(0,m.jsx)(b.Provider,{value:{column:t,position:n},children:e},`Masonry__Column_Child_${s}_${n}`)))},`Masonry__Column_${s}_${t}`)))})})),w=y;function x(){return e=/^Mac/i,"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform);var e,t}function E(e){return!(0!==e.mozInputSource||!e.isTrusted)||(t=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.brands.some((e=>t.test(e.brand))))||t.test(window.navigator.userAgent))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType);var t,n}const k=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},C=e=>e&&"window"in e&&e.window===e?e:k(e).defaultView||window;let O=null,S=new Set,T=new Map,R=!1,P=!1;const L={Tab:!0,Escape:!0};function N(e,t){for(let n of S)n(e,t)}function I(e){R=!0,function(e){return!(e.metaKey||!x()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(O="keyboard",N("keyboard",e))}function M(e){O="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(R=!0,N("pointer",e))}function F(e){E(e)&&(R=!0,O="virtual")}function A(e){e.target!==window&&e.target!==document&&(R||P||(O="virtual",N("virtual",e)),R=!1,P=!1)}function j(){R=!1,P=!0}function D(e){if("undefined"==typeof window||T.get(C(e)))return;const t=C(e),n=k(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){R=!0,r.apply(this,arguments)},n.addEventListener("keydown",I,!0),n.addEventListener("keyup",I,!0),n.addEventListener("click",F,!0),t.addEventListener("focus",A,!0),t.addEventListener("blur",j,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",M,!0),n.addEventListener("pointermove",M,!0),n.addEventListener("pointerup",M,!0)):(n.addEventListener("mousedown",M,!0),n.addEventListener("mousemove",M,!0),n.addEventListener("mouseup",M,!0)),t.addEventListener("beforeunload",(()=>{z(e)}),{once:!0}),T.set(t,{focus:r})}const z=(e,t)=>{const n=C(e),r=k(e);t&&r.removeEventListener("DOMContentLoaded",t),T.has(n)&&(n.HTMLElement.prototype.focus=T.get(n).focus,r.removeEventListener("keydown",I,!0),r.removeEventListener("keyup",I,!0),r.removeEventListener("click",F,!0),n.removeEventListener("focus",A,!0),n.removeEventListener("blur",j,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",M,!0),r.removeEventListener("pointermove",M,!0),r.removeEventListener("pointerup",M,!0)):(r.removeEventListener("mousedown",M,!0),r.removeEventListener("mousemove",M,!0),r.removeEventListener("mouseup",M,!0)),T.delete(n))};function H(){return"pointer"!==O}"undefined"!=typeof document&&function(e){const t=k(e);let n;"loading"!==t.readyState?D(e):(n=()=>{D(e)},t.addEventListener("DOMContentLoaded",n))}();const W=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);const B="undefined"!=typeof document?r.useLayoutEffect:()=>{};class V{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function $(e){let t=(0,r.useRef)({isFocused:!1,observer:null});B((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=(0,r.useRef)(null);return B((()=>{t.current=e}),[e]),(0,r.useCallback)(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return(0,r.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{t.current.isFocused=!1,r.disabled&&n(new V("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}function U(e={}){let{autoFocus:t=!1,isTextInput:n,within:o}=e,i=(0,r.useRef)({isFocused:!1,isFocusVisible:t||H()}),[a,l]=(0,r.useState)(!1),[s,c]=(0,r.useState)((()=>i.current.isFocused&&i.current.isFocusVisible)),u=(0,r.useCallback)((()=>c(i.current.isFocused&&i.current.isFocusVisible)),[]),d=(0,r.useCallback)((e=>{i.current.isFocused=e,l(e),u()}),[u]);var f,p,m;f=e=>{i.current.isFocusVisible=e,u()},p=[],m={isTextInput:n},D(),(0,r.useEffect)((()=>{let e=(e,t)=>{(function(e,t,n){var r;const o="undefined"!=typeof window?C(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?C(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?C(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?C(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof o&&!W.has(null==n||null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof i||(null==n?void 0:n.target)instanceof a&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof l&&!L[n.key])})(!!(null==m?void 0:m.isTextInput),e,t)&&f(H())};return S.add(e),()=>{S.delete(e)}}),p);let{focusProps:h}=function(e){let{isDisabled:t,onFocus:n,onBlur:o,onFocusChange:i}=e;const a=(0,r.useCallback)((e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0}),[o,i]),l=$(a),s=(0,r.useCallback)((e=>{const t=k(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),i&&i(!0),l(e))}),[i,n,l]);return{focusProps:{onFocus:!t&&(n||i||o)?s:void 0,onBlur:t||!o&&!i?void 0:a}}}({isDisabled:o,onFocusChange:d}),{focusWithinProps:g}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:i}=e,a=(0,r.useRef)({isFocusWithin:!1}),l=(0,r.useCallback)((e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,a]),s=$(l),c=(0,r.useCallback)((e=>{a.current.isFocusWithin||document.activeElement!==e.target||(o&&o(e),i&&i(!0),a.current.isFocusWithin=!0,s(e))}),[o,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}({isDisabled:!o,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:s,focusProps:o?g:h}}let q=!1,G=0;function K(){q=!0,setTimeout((()=>{q=!1}),50)}function Y(e){"touch"===e.pointerType&&K()}function X(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Y):document.addEventListener("touchend",K),G++,()=>{G--,G>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Y):document.removeEventListener("touchend",K))}}function Q(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:o,isDisabled:i}=e,[a,l]=(0,r.useState)(!1),s=(0,r.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,r.useEffect)(X,[]);let{hoverProps:c,triggerHoverEnd:u}=(0,r.useMemo)((()=>{let e=(e,r)=>{if(s.pointerType=r,i||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let o=e.currentTarget;s.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),l(!0)},r=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let r=e.currentTarget;o&&o({type:"hoverend",target:r,pointerType:t}),n&&n(!1),l(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{q&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(a.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||q||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:a,triggerHoverEnd:r}}),[t,n,o,i,s]);return(0,r.useEffect)((()=>{i&&u({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:c,isHovered:a}}var Z=Object.defineProperty,J=(e,t,n)=>(((e,t,n)=>{t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let ee=new class{constructor(){J(this,"current",this.detect()),J(this,"handoffState","pending"),J(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}};function te(e){return ee.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function ne(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function re(){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 ne((()=>{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=re();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}function oe(){let[e]=(0,r.useState)(re);return(0,r.useEffect)((()=>()=>e.dispose()),[e]),e}let ie=(e,t)=>{ee.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)};function ae(e){let t=(0,r.useRef)(e);return ie((()=>{t.current=e}),[e]),t}let le=function(e){let t=ae(e);return r.useCallback(((...e)=>t.current(...e)),[t])};function se(e,t=!1){let n=null===e?null:"current"in e?e.current:e,[o,i]=(0,r.useReducer)((()=>({})),{}),a=(0,r.useMemo)((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(n)),[n,o]);return ie((()=>{if(!n)return;let e=new ResizeObserver(i);return e.observe(n),()=>{e.disconnect()}}),[n]),t?{width:`${a.width}px`,height:`${a.height}px`}:a}let ce=new Map,ue=new Map;function de(e){var t;let n=null!=(t=ue.get(e))?t:0;return ue.set(e,n+1),0!==n||(ce.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>function(e){var t;let n=null!=(t=ue.get(e))?t:1;if(1===n?ue.delete(e):ue.set(e,n-1),1!==n)return;let r=ce.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,ce.delete(e))}(e)}function fe({allowed:e,disallowed:t}={},n=!0){ie((()=>{var r,o;if(!n)return;let i=re();for(let e of null!=(r=null==t?void 0:t())?r:[])e&&i.add(de(e));let a=null!=(o=null==e?void 0:e())?o:[];for(let e of a){if(!e)continue;let t=te(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)a.some((t=>e.contains(t)))||i.add(de(e));n=n.parentElement}}return i.dispose}),[n,e,t])}function pe(e,t,n=!0){let o=ae((e=>{let n=e.getBoundingClientRect();0===n.x&&0===n.y&&0===n.width&&0===n.height&&t()}));(0,r.useEffect)((()=>{if(!n)return;let t=null===e?null:e instanceof HTMLElement?e:e.current;if(!t)return;let r=re();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>o.current(t)));e.observe(t),r.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>o.current(t)));e.observe(t),r.add((()=>e.disconnect()))}return()=>r.dispose()}),[e,o,n])}function me(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,me),r}let he=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),ge=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var ve,be,ye=(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))(ye||{}),we=((be=we||{})[be.Error=0]="Error",be[be.Overflow=1]="Overflow",be[be.Success=2]="Success",be[be.Underflow=3]="Underflow",be),xe=((ve=xe||{})[ve.Previous=-1]="Previous",ve[ve.Next=1]="Next",ve);function Ee(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(he)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var ke=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ke||{});function Ce(e,t=0){var n;return e!==(null==(n=te(e))?void 0:n.body)&&me(t,{0:()=>e.matches(he),1(){let t=e;for(;null!==t;){if(t.matches(he))return!0;t=t.parentElement}return!1}})}function Oe(e){let t=te(e);re().nextFrame((()=>{t&&!Ce(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}var Se=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Se||{});"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 Te=["textarea","input"].join(",");function Re(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}))}function Pe(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?Re(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ge)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):Ee(e);o.length>0&&a.length>1&&(a=a.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 l,s=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}l=a[e],null==l||l.focus(u),d+=s}while(l!==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,Te))&&n}(l)&&l.select(),2}function Le(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ne(e,t,n){let o=ae(t);(0,r.useEffect)((()=>{function t(e){o.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function Ie(e,t,n=!0){let o=(0,r.useRef)(!1);function i(n,r){if(!o.current||n.defaultPrevented)return;let i=r(n);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||n.composed&&n.composedPath().includes(t))return}return!Ce(i,ke.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}(0,r.useEffect)((()=>{requestAnimationFrame((()=>{o.current=n}))}),[n]);let a=(0,r.useRef)(null);Ne("pointerdown",(e=>{var t,n;o.current&&(a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Ne("mousedown",(e=>{var t,n;o.current&&(a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Ne("click",(e=>{Le()||/Android/gi.test(window.navigator.userAgent)||a.current&&(i(e,(()=>a.current)),a.current=null)}),!0),Ne("touchend",(e=>i(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),function(e,t,n){let o=ae((e=>i(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))));(0,r.useEffect)((()=>{function t(e){o.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("blur",0,!0)}function Me(...e){return(0,r.useMemo)((()=>te(...e)),[...e])}function Fe(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function Ae(e,t){let[n,o]=(0,r.useState)((()=>Fe(e)));return ie((()=>{o(Fe(e))}),[e.type,e.as]),ie((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")}),[n,t]),n}function je(){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 De(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let _e=function(e,t){let n=new Map,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())))}}}(0,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:re(),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:De(n)},o=[Le()?{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=re();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(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),a=e.querySelector(o);a&&!r(a)&&(i=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)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(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)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)}))}))}}:{},je(),{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)}});_e.subscribe((()=>{let e=_e.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)&&_e.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&_e.dispatch("TEARDOWN",n)}}));let ze=Symbol();function He(...e){let t=(0,r.useRef)(e);(0,r.useEffect)((()=>{t.current=e}),[e]);let n=le((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[ze])))?void 0:n}let We=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Be(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return We.test(a)&&(a=a.replace(We,"")),a}function Ve(e){return[e.screenX,e.screenY]}const $e=Math.min,Ue=Math.max,qe=Math.round,Ge=Math.floor,Ke=e=>({x:e,y:e}),Ye={left:"right",right:"left",bottom:"top",top:"bottom"},Xe={start:"end",end:"start"};function Qe(e,t,n){return Ue(e,$e(t,n))}function Ze(e,t){return"function"==typeof e?e(t):e}function Je(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function tt(e){return"x"===e?"y":"x"}function nt(e){return"y"===e?"height":"width"}function rt(e){return["top","bottom"].includes(Je(e))?"y":"x"}function ot(e){return tt(rt(e))}function it(e){return e.replace(/start|end/g,(e=>Xe[e]))}function at(e){return e.replace(/left|right|bottom|top/g,(e=>Ye[e]))}function lt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function st(e,t,n){let{reference:r,floating:o}=e;const i=rt(t),a=ot(t),l=nt(a),s=Je(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(et(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function ct(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ze(t,e),m=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(p),h=l[f?"floating"===d?"reference":"floating":d],g=lt(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=lt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:s}):v);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}function ut(e){return pt(e)?(e.nodeName||"").toLowerCase():"#document"}function dt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ft(e){var t;return null==(t=(pt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function pt(e){return e instanceof Node||e instanceof dt(e).Node}function mt(e){return e instanceof Element||e instanceof dt(e).Element}function ht(e){return e instanceof HTMLElement||e instanceof dt(e).HTMLElement}function gt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot)}function vt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function bt(e){return["table","td","th"].includes(ut(e))}function yt(e){const t=wt(),n=Et(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function wt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function xt(e){return["html","body","#document"].includes(ut(e))}function Et(e){return dt(e).getComputedStyle(e)}function kt(e){return mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ct(e){if("html"===ut(e))return e;const t=e.assignedSlot||e.parentNode||gt(e)&&e.host||ft(e);return gt(t)?t.host:t}function Ot(e){const t=Ct(e);return xt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ht(t)&&vt(t)?t:Ot(t)}function St(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ot(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=dt(o);return i?t.concat(a,a.visualViewport||[],vt(o)?o:[],a.frameElement&&n?St(a.frameElement):[]):t.concat(o,St(o,[],n))}function Tt(e){const t=Et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ht(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=qe(n)!==i||qe(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Rt(e){return mt(e)?e:e.contextElement}function Pt(e){const t=Rt(e);if(!ht(t))return Ke(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tt(t);let a=(i?qe(n.width):n.width)/r,l=(i?qe(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Lt=Ke(0);function Nt(e){const t=dt(e);return wt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Lt}function It(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Rt(e);let a=Ke(1);t&&(r?mt(r)&&(a=Pt(r)):a=Pt(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==dt(e))&&t}(i,n,r)?Nt(i):Ke(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=dt(i),t=r&&mt(r)?dt(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Pt(o),t=o.getBoundingClientRect(),r=Et(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=dt(o),o=n.frameElement}}return lt({width:u,height:d,x:s,y:c})}const Mt=[":popover-open",":modal"];function Ft(e){return Mt.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function At(e){return It(ft(e)).left+kt(e).scrollLeft}function jt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=dt(e),r=ft(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=wt();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=ft(e),n=kt(e),r=e.ownerDocument.body,o=Ue(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ue(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+At(e);const l=-n.scrollTop;return"rtl"===Et(r).direction&&(a+=Ue(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(ft(e));else if(mt(t))r=function(e,t){const n=It(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ht(e)?Pt(e):Ke(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Nt(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return lt(r)}function Dt(e,t){const n=Ct(e);return!(n===t||!mt(n)||xt(n))&&("fixed"===Et(n).position||Dt(n,t))}function _t(e,t,n){const r=ht(t),o=ft(t),i="fixed"===n,a=It(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Ke(0);if(r||!r&&!i)if(("body"!==ut(t)||vt(o))&&(l=kt(t)),r){const e=It(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=At(o));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function zt(e){return"static"===Et(e).position}function Ht(e,t){return ht(e)&&"fixed"!==Et(e).position?t?t(e):e.offsetParent:null}function Wt(e,t){const n=dt(e);if(Ft(e))return n;if(!ht(e)){let t=Ct(e);for(;t&&!xt(t);){if(mt(t)&&!zt(t))return t;t=Ct(t)}return n}let r=Ht(e,t);for(;r&&bt(r)&&zt(r);)r=Ht(r,t);return r&&xt(r)&&zt(r)&&!yt(r)?n:r||function(e){let t=Ct(e);for(;ht(t)&&!xt(t);){if(yt(t))return t;t=Ct(t)}return null}(e)||n}const Bt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=ft(r),l=!!t&&Ft(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=Ke(1);const u=Ke(0),d=ht(r);if((d||!d&&!i)&&(("body"!==ut(r)||vt(a))&&(s=kt(r)),ht(r))){const e=It(r);c=Pt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:ft,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Ft(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=St(e,[],!1).filter((e=>mt(e)&&"body"!==ut(e))),o=null;const i="fixed"===Et(e).position;let a=i?Ct(e):e;for(;mt(a)&&!xt(a);){const t=Et(a),n=yt(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||vt(a)&&!n&&Dt(e,a))?r=r.filter((e=>e!==a)):o=t,a=Ct(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce(((e,n)=>{const r=jt(t,n,o);return e.top=Ue(r.top,e.top),e.right=$e(r.right,e.right),e.bottom=$e(r.bottom,e.bottom),e.left=Ue(r.left,e.left),e}),jt(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Wt,getElementRects:async function(e){const t=this.getOffsetParent||Wt,n=this.getDimensions,r=await n(e.floating);return{reference:_t(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Tt(e);return{width:t,height:n}},getScale:Pt,isElement:mt,isRTL:function(e){return"rtl"===Et(e).direction}};function Vt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Rt(e),u=o||i?[...c?St(c):[],...St(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const o=ft(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-Ge(u)+"px "+-Ge(o.clientWidth-(c+d))+"px "+-Ge(o.clientHeight-(u+f))+"px "+-Ge(c)+"px",threshold:Ue(0,$e(1,s))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!s&&m.observe(c),m.observe(t));let h=s?It(e):null;return s&&function t(){const r=It(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(f)}}const $t=ct,Ut=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Je(n),l=et(n),s="y"===rt(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,d=Ze(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},qt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=Ze(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Je(o),b=Je(l)===l,y=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=f||(b||!h?[at(l)]:function(e){const t=at(e);return[it(e),t,it(t)]}(l));f||"none"===m||w.push(...function(e,t,n,r){const o=et(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Je(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(it)))),i}(l,h,m,y));const x=[l,...w],E=await ct(t,g),k=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=et(e),o=ot(e),i=nt(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=at(a)),[a,at(a)]}(o,a,y);k.push(E[e[0]],E[e[1]])}if(C=[...C,{placement:o,overflows:k}],!k.every((e=>e<=0))){var O,S;const e=((null==(O=i.flip)?void 0:O.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(S=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},Gt=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...l}=Ze(e,t),s=await ct(t,l),c=Je(n),u=et(n),d="y"===rt(n),{width:f,height:p}=r.floating;let m,h;"top"===c||"bottom"===c?(m=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,m="end"===u?"top":"bottom");const g=p-s[m],v=f-s[h],b=!t.middlewareData.shift;let y=g,w=v;if(d){const e=f-s.left-s.right;w=u||b?$e(v,e):e}else{const e=p-s.top-s.bottom;y=u||b?$e(g,e):e}if(b&&!u){const e=Ue(s.left,0),t=Ue(s.right,0),n=Ue(s.top,0),r=Ue(s.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:Ue(s.left,s.right)):y=p-2*(0!==n||0!==r?n+r:Ue(s.top,s.bottom))}await a({...t,availableWidth:w,availableHeight:y});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}},Kt=(e,t,n)=>{const r=new Map,o={platform:Bt,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=st(c,r,s),f=r,p={},m=0;for(let n=0;n<l.length;n++){const{name:i,fn:h}=l[n],{x:g,y:v,data:b,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[i]:{...p[i],...b}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=st(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},Yt=window.ReactDOM;var Xt="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function Qt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Qt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Qt(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Zt(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jt(e,t){const n=Zt(e);return Math.round(t*n)/n}function en(e){const t=r.useRef(e);return Xt((()=>{t.current=e})),t}const tn={...o},nn=tn.useInsertionEffect||(e=>e());function rn(e){const t=r.useRef((()=>{}));return nn((()=>{t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var on="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;let an=!1,ln=0;const sn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ln++,cn=tn.useId||function(){const[e,t]=r.useState((()=>an?sn():void 0));return on((()=>{null==e&&t(sn())}),[]),r.useEffect((()=>{an=!0}),[]),e};const un=r.createContext(null),dn=r.createContext(null),fn=()=>{var e;return(null==(e=r.useContext(un))?void 0:e.id)||null},pn=()=>r.useContext(dn);function mn(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:o,nodeId:i}=e,[a,l]=r.useState(null),[s,c]=r.useState(null),u=(null==(t=e.elements)?void 0:t.reference)||a;on((()=>{u&&(h.current=u)}),[u]);const d=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=r.useState(o);Qt(p,o)||m(o);const[h,g]=r.useState(null),[v,b]=r.useState(null),y=r.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),w=r.useCallback((e=>{e!==C.current&&(C.current=e,b(e))}),[]),x=a||h,E=l||v,k=r.useRef(null),C=r.useRef(null),O=r.useRef(d),S=null!=c,T=en(c),R=en(i),P=r.useCallback((()=>{if(!k.current||!C.current)return;const e={placement:t,strategy:n,middleware:p};R.current&&(e.platform=R.current),Kt(k.current,C.current,e).then((e=>{const t={...e,isPositioned:!0};L.current&&!Qt(O.current,t)&&(O.current=t,Yt.flushSync((()=>{f(t)})))}))}),[p,t,n,R]);Xt((()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const L=r.useRef(!1);Xt((()=>(L.current=!0,()=>{L.current=!1})),[]),Xt((()=>{if(x&&(k.current=x),E&&(C.current=E),x&&E){if(T.current)return T.current(x,E,P);P()}}),[x,E,P,T,S]);const N=r.useMemo((()=>({reference:k,floating:C,setReference:y,setFloating:w})),[y,w]),I=r.useMemo((()=>({reference:x,floating:E})),[x,E]),M=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!I.floating)return e;const t=Jt(I.floating,d.x),r=Jt(I.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Zt(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,I.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:P,refs:N,elements:I,floatingStyles:M})),[d,P,N,I,M])}({...e,elements:{...e.elements,...s&&{reference:s}}}),f=pn(),p=null!=fn(),m=rn(((e,t,n)=>{g.current.openEvent=e?t:void 0,v.emit("openchange",{open:e,event:t,reason:n,nested:p}),null==o||o(e,t,n)})),h=r.useRef(null),g=r.useRef({}),v=r.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}()))[0],b=cn(),y=r.useCallback((e=>{const t=mt(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),d.refs.setReference(t)}),[d.refs]),w=r.useCallback((e=>{(mt(e)||null===e)&&(h.current=e,l(e)),(mt(d.refs.reference.current)||null===d.refs.reference.current||null!==e&&!mt(e))&&d.refs.setReference(e)}),[d.refs]),x=r.useMemo((()=>({...d.refs,setReference:w,setPositionReference:y,domReference:h})),[d.refs,w,y]),E=r.useMemo((()=>({...d.elements,domReference:u})),[d.elements,u]),k=r.useMemo((()=>({...d,refs:x,elements:E,dataRef:g,nodeId:i,floatingId:b,events:v,open:n,onOpenChange:m})),[d,i,b,v,n,m,x,E]);return on((()=>{const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===i));e&&(e.context=k)})),r.useMemo((()=>({...d,context:k,refs:x,elements:E})),[d,x,E,k])}const hn="active",gn="selected";function vn(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[hn]:t,[gn]:__,...n}=e;i=n}return{..."floating"===n&&{tabIndex:-1},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[hn,gn].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function bn(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let yn=(0,r.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});yn.displayName="FloatingContext";let wn=(0,r.createContext)(null);wn.displayName="PlacementContext";function xn({children:e,enabled:t=!0}){let[n,o]=(0,r.useState)(null),[i,a]=(0,r.useState)(0),l=(0,r.useRef)(null),[s,c]=(0,r.useState)(null);!function(e){ie((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=e.style.maxHeight;parseFloat(t)!==parseInt(t)&&(e.style.maxHeight=`${Math.ceil(parseFloat(t))}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(s);let u=t&&null!==n&&null!==s,{to:d="bottom",gap:f=0,offset:p=0,padding:m=0,inner:h}=function(e,t){var n,r,o;let i=En(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=En(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),l=En(null!=(o=null==e?void 0:e.padding)?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:a,padding:l}}(n,s),[g,v="center"]=d.split(" ");ie((()=>{u&&a(0)}),[u]);let{refs:b,floatingStyles:y,context:w}=mn({open:u,placement:"selection"===g?"center"===v?"bottom":`bottom-${v}`:"center"===v?`${g}`:`${g}-${v}`,strategy:"absolute",transform:!1,middleware:[Ut({mainAxis:"selection"===g?0:f,crossAxis:p}),(C={padding:m},void 0===C&&(C={}),{name:"shift",options:C,async fn(e){const{x:t,y:n,placement:r}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ze(C,e),s={x:t,y:n},c=await ct(e,l),u=rt(Je(r)),d=tt(u);let f=s[d],p=s[u];if(o){const e="y"===d?"bottom":"right";f=Qe(f+c["y"===d?"top":"left"],f,f-c[e])}if(i){const e="y"===u?"bottom":"right";p=Qe(p+c["y"===u?"top":"left"],p,p-c[e])}const m=a.fn({...e,[d]:f,[u]:p});return{...m,data:{x:m.x-t,y:m.y-n}}}}),"selection"!==g&&qt({padding:m}),"selection"===g&&h?(k={...h,padding:m,overflowRef:l,offset:i,minItemsVisible:4,referenceOverflowThreshold:m,onFallbackChange(e){var t,n;if(!e)return;let r=w.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(4,r.childElementCount),l=0,s=0;for(let e of null!=(n=null==(t=w.elements.floating)?void 0:t.childNodes)?n:[])if(e instanceof HTMLElement){let t=e.offsetTop,n=t+e.clientHeight+o,a=r.scrollTop,c=a+r.clientHeight;if(!(t>=a&&n<=c)){s=Math.max(0,Math.min(n,c)-Math.max(t,a)),l=e.clientHeight;break}i--}i>=1&&a((e=>{let t=l*i-s+o;return e>=t?e:t}))}},{name:"inner",options:k,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:o=0,index:i=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:s,...c}=k,{rects:u,elements:{floating:d}}=e,f=t.current[i];if(!f)return{};const p={...e,...await Ut(-f.offsetTop-d.clientTop-u.reference.height/2-f.offsetHeight/2-o).fn(e)},m=(null==s?void 0:s.current)||d,h=await $t(bn(p,m.scrollHeight),c),g=await $t(p,{...c,elementContext:"reference"}),v=Math.max(0,h.top),b=p.y+v,y=Math.max(0,m.scrollHeight-v-Math.max(0,h.bottom));return m.style.maxHeight=y+"px",m.scrollTop=v,r&&(m.offsetHeight<f.offsetHeight*Math.min(a,t.current.length-1)-1||g.top>=-l||g.bottom>=-l?(0,Yt.flushSync)((()=>r(!0))):(0,Yt.flushSync)((()=>r(!1)))),n&&(n.current=await $t(bn({...p,y:b},m.offsetHeight),c)),{y:b}}}):null,Gt({padding:m,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:Vt}),[x=g,E=v]=w.placement.split("-");var k,C;"selection"===g&&(x="selection");let O=(0,r.useMemo)((()=>({anchor:[x,E].filter(Boolean).join(" ")})),[x,E]),S=function(e,t){const{open:n,elements:o}=e,{enabled:i=!0,overflowRef:a,scrollRef:l,onChange:s}=t,c=rn(s),u=r.useRef(!1),d=r.useRef(null),f=r.useRef(null);return r.useEffect((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==a.current)return;const n=e.deltaY,r=a.current.top>=-.5,o=a.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,l=n<0?-1:1,s=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),(0,Yt.flushSync)((()=>{c((e=>e+Math[s](n,i*l)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==l?void 0:l.current)||o.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{d.current=t.scrollTop,null!=a.current&&(f.current={...a.current})})),()=>{d.current=null,f.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,o.floating,a,l,c]),r.useMemo((()=>i?{floating:{onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const e=(null==l?void 0:l.current)||o.floating;if(a.current&&e&&u.current){if(null!==d.current){const t=e.scrollTop-d.current;(a.current.bottom<-.5&&t<-1||a.current.top<-.5&&t>1)&&(0,Yt.flushSync)((()=>c((e=>e+t))))}requestAnimationFrame((()=>{d.current=e.scrollTop}))}}}}:{}),[i,a,o.floating,l,c])}(w,{overflowRef:l,onChange:a}),{getReferenceProps:T,getFloatingProps:R}=function(e){void 0===e&&(e=[]);const t=e,n=r.useCallback((t=>vn(t,e,"reference")),t),o=r.useCallback((t=>vn(t,e,"floating")),t),i=r.useCallback((t=>vn(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return r.useMemo((()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:i})),[n,o,i])}([S]),P=le((e=>{c(e),b.setFloating(e)}));return r.createElement(wn.Provider,{value:o},r.createElement(yn.Provider,{value:{setFloating:P,setReference:b.setReference,styles:y,getReferenceProps:T,getFloatingProps:R,slot:O}},e))}function En(e,t,n=void 0){let o=oe(),i=le(((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let r=Cn(e,t);return[r,n=>{let i=kn(e);{let a=i.map((e=>window.getComputedStyle(t).getPropertyValue(e)));o.requestAnimationFrame((function l(){o.nextFrame(l);let s=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,s=!0;break}}if(!s)return;let c=Cn(e,t);r!==c&&(n(c),r=c)}))}return o.dispose}]}return[n,null]})),a=(0,r.useMemo)((()=>i(e,t)[0]),[e,t]),[l=a,s]=(0,r.useState)();return ie((()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)}),[e,t]),l}function kn(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...kn(r)]:[n]}return[]}function Cn(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let On=(0,r.createContext)(null);On.displayName="OpenClosedContext";var Sn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Sn||{});function Tn(){return(0,r.useContext)(On)}function Rn({value:e,children:t}){return r.createElement(On.Provider,{value:e},t)}function Pn(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}var Ln=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Ln||{});function Nn(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function In(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Mn,Fn=((Mn=Fn||{})[Mn.None=0]="None",Mn[Mn.RenderStrategy=1]="RenderStrategy",Mn[Mn.Static=2]="Static",Mn),An=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(An||{});function jn({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:l}){l=null!=l?l:zn;let s=Hn(t,e);if(i)return Dn(s,n,r,a,l);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=s;if(e)return Dn(t,n,r,a,l)}if(1&c){let{unmount:e=!0,...t}=s;return me(e?0:1,{0:()=>null,1:()=>Dn({...t,hidden:!0,style:{display:"none"}},n,r,a,l)})}return Dn(s,n,r,a,l)}function Dn(e,t={},n,o,i){let{as:a=n,children:l,refName:s="ref",...c}=$n(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},d="function"==typeof l?l(t):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["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(a===r.Fragment&&(Object.keys(Vn(c)).length>0||Object.keys(Vn(f)).length>0)){if((0,r.isValidElement)(d)&&!(Array.isArray(d)&&d.length>1)){let e=d.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>In(t(...e),c.className):In(t,c.className),o=n?{className:n}:{},a=Hn(d.props,Vn($n(c,["ref"])));for(let e in f)e in a&&delete f[e];return(0,r.cloneElement)(d,Object.assign({},a,f,u,{ref:i(d.ref,u.ref)},o))}if(Object.keys(Vn(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Vn(c)).concat(Object.keys(Vn(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,r.createElement)(a,Object.assign({},$n(c,["ref"]),a!==r.Fragment&&u,a!==r.Fragment&&f),d)}function zn(...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 Hn(...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 Wn(...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];for(let e in n)Object.assign(t,{[e](...t){let r=n[e];for(let e of r)null==e||e(...t)}});return t}function Bn(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Vn(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function $n(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let Un=(0,r.createContext)(void 0);function qn(){return(0,r.useContext)(Un)}function Gn({value:e,children:t}){return r.createElement(Un.Provider,{value:e},t)}let Kn=(0,r.createContext)(null);function Yn(){let e=(0,r.useContext)(Kn);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,Yn),e}return e}function Xn(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)((()=>function(e){let n=le((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),o=(0,r.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 r.createElement(Kn.Provider,{value:o},e.children)}),[t])]}Kn.displayName="DescriptionContext";let Qn=Bn((function(e,t){let n=(0,r.useId)(),o=qn(),{id:i=`headlessui-description-${n}`,...a}=e,l=Yn(),s=He(t);ie((()=>l.register(i)),[i,l.register]);let c=o||!1,u=(0,r.useMemo)((()=>({...l.slot,disabled:c})),[l.slot,c]);return jn({ourProps:{ref:s,...l.props,id:i},theirProps:a,slot:u,defaultTag:"p",name:l.name||"Description"})})),Zn=Object.assign(Qn,{});var Jn=(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))(Jn||{});let er=(0,r.createContext)(void 0);function tr(){return(0,r.useContext)(er)}function nr({id:e,children:t}){return r.createElement(er.Provider,{value:e},t)}let rr=(0,r.createContext)(null);function or(){let e=(0,r.useContext)(rr);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,or),e}return e}function ir(e){var t,n,o;let i=null!=(n=null==(t=(0,r.useContext)(rr))?void 0:t.value)?n:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>0?[i,...e].filter(Boolean).join(" "):i}function ar({inherit:e=!1}={}){let t=ir(),[n,o]=(0,r.useState)([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,(0,r.useMemo)((()=>function(e){let t=le((e=>(o((t=>[...t,e])),()=>o((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=(0,r.useMemo)((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return r.createElement(rr.Provider,{value:n},e.children)}),[o])]}rr.displayName="LabelContext";let lr=Bn((function(e,t){var n;let o=(0,r.useId)(),i=or(),a=tr(),l=qn(),{id:s=`headlessui-label-${o}`,htmlFor:c=(null!=a?a:null==(n=i.props)?void 0:n.htmlFor),passive:u=!1,...d}=e,f=He(t);ie((()=>i.register(s)),[s,i.register]);let p=le((e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),m=l||!1,h=(0,r.useMemo)((()=>({...i.slot,disabled:m})),[i.slot,m]),g={ref:f,...i.props,id:s,htmlFor:c,onClick:p};return u&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in d&&delete d.onClick),jn({ourProps:g,theirProps:d,slot:h,defaultTag:c?"label":"div",name:i.name||"Label"})})),sr=Object.assign(lr,{});function cr(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in o&&(e=>e.useSyncExternalStore)(o)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=r.useState(ee.isHandoffComplete);return t&&!1===ee.isHandoffComplete&&n(!1),r.useEffect((()=>{!0!==t&&n(!0)}),[t]),r.useEffect((()=>ee.handoff()),[]),!e&&t}let ur=(0,r.createContext)(!1);let dr=r.Fragment,fr=Bn((function(e,t){let n=e,o=(0,r.useRef)(null),i=He(function(e,t=!0){return Object.assign(e,{[ze]:t})}((e=>{o.current=e})),t),a=Me(o),l=function(e){let t=(0,r.useContext)(ur),n=(0,r.useContext)(mr),o=Me(e),[i,a]=(0,r.useState)((()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(ee.isServer)return null;let r=null==o?void 0:o.getElementById("headlessui-portal-root");if(r)return r;if(null===o)return null;let i=o.createElement("div");return i.setAttribute("id","headlessui-portal-root"),o.body.appendChild(i)}));return(0,r.useEffect)((()=>{null!==i&&(null!=o&&o.body.contains(i)||null==o||o.body.appendChild(i))}),[i,o]),(0,r.useEffect)((()=>{t||null!==n&&a(n.current)}),[n,a,t]),i}(o),[s]=(0,r.useState)((()=>{var e;return ee.isServer?null:null!=(e=null==a?void 0:a.createElement("div"))?e:null})),c=(0,r.useContext)(hr),u=cr();return ie((()=>{!l||!s||l.contains(s)||(s.setAttribute("data-headlessui-portal",""),l.appendChild(s))}),[l,s]),ie((()=>{if(s&&c)return c.register(s)}),[c,s]),function(e){let t=le(e),n=(0,r.useRef)(!1);(0,r.useEffect)((()=>(n.current=!1,()=>{n.current=!0,ne((()=>{n.current&&t()}))})),[t])}((()=>{var e;!l||!s||(s instanceof Node&&l.contains(s)&&l.removeChild(s),l.childNodes.length<=0&&(null==(e=l.parentElement)||e.removeChild(l)))})),u&&l&&s?(0,Yt.createPortal)(jn({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:dr,name:"Portal"}),s):null})),pr=r.Fragment,mr=(0,r.createContext)(null),hr=(0,r.createContext)(null),gr=Bn((function(e,t){let n=He(t),{enabled:o=!0,...i}=e;return o?r.createElement(fr,{...i,ref:n}):jn({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:dr,name:"Portal"})})),vr=Bn((function(e,t){let{target:n,...o}=e,i={ref:He(t)};return r.createElement(mr.Provider,{value:n},jn({ourProps:i,theirProps:o,defaultTag:pr,name:"Popover.Group"}))})),br=Object.assign(gr,{Group:vr});var yr=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(yr||{}),wr=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(wr||{}),xr=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(xr||{});function Er(e,t=(e=>e)){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=Re(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{items:r,activeItemIndex:o}}let kr={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n,r,o,i,a;if(1===e.menuState)return e;let l={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===Ln.Nothing)return{...l,activeItemIndex:null};if(t.focus===Ln.Specific)return{...l,activeItemIndex:e.items.findIndex((e=>e.id===t.id))};if(t.focus===Ln.Previous){let n=e.activeItemIndex;if(null!==n){let i=e.items[n].dataRef.current.domRef,a=Nn(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.items[a].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||null===(null==(o=t.current)?void 0:o.previousElementSibling))return{...l,activeItemIndex:a}}}}else if(t.focus===Ln.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,o=Nn(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.items[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...l,activeItemIndex:o}}}}let s=Er(e),c=Nn(t,{resolveItems:()=>s.items,resolveActiveIndex:()=>s.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...l,...s,activeItemIndex:c}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled})),i=o?e.items.indexOf(o):-1;return-1===i||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=Er(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=Er(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},Cr=(0,r.createContext)(null);function Or(e){let t=(0,r.useContext)(Cr);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Or),t}return t}function Sr(e,t){return me(t.type,kr,e,t)}Cr.displayName="MenuContext";let Tr=r.Fragment,Rr=Fn.RenderStrategy|Fn.Static,Pr=r.Fragment,Lr=Bn((function(e,t){let{__demoMode:n=!1,...o}=e,i=(0,r.useReducer)(Sr,{__demoMode:n,menuState:n?0:1,buttonRef:(0,r.createRef)(),itemsRef:(0,r.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsRef:l,buttonRef:s},c]=i,u=He(t);Ie([s,l],((e,t)=>{var n;c({type:1}),Ce(t,ke.Loose)||(e.preventDefault(),null==(n=s.current)||n.focus())}),0===a);let d=le((()=>{c({type:1})})),f=(0,r.useMemo)((()=>({open:0===a,close:d})),[a,d]),p={ref:u};return r.createElement(xn,null,r.createElement(Cr.Provider,{value:i},r.createElement(Rn,{value:me(a,{0:Sn.Open,1:Sn.Closed})},jn({ourProps:p,theirProps:o,slot:f,defaultTag:Tr,name:"Menu"}))))})),Nr=Bn((function(e,t){var n;let o=(0,r.useId)(),{id:i=`headlessui-menu-button-${o}`,disabled:a=!1,autoFocus:l=!1,...s}=e,[c,u]=Or("Menu.Button"),d=(0,r.useContext)(yn).getReferenceProps,f=He(c.buttonRef,t,(0,r.useContext)(yn).setReference),p=oe(),m=le((e=>{switch(e.key){case Jn.Space:case Jn.Enter:case Jn.ArrowDown:e.preventDefault(),e.stopPropagation(),u({type:0}),p.nextFrame((()=>u({type:2,focus:Ln.First})));break;case Jn.ArrowUp:e.preventDefault(),e.stopPropagation(),u({type:0}),p.nextFrame((()=>u({type:2,focus:Ln.Last})))}})),h=le((e=>{e.key===Jn.Space&&e.preventDefault()})),g=le((e=>{if(Pn(e.currentTarget))return e.preventDefault();a||(0===c.menuState?(u({type:1}),p.nextFrame((()=>{var e;return null==(e=c.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),u({type:0})))})),{isFocusVisible:v,focusProps:b}=U({autoFocus:l}),{isHovered:y,hoverProps:w}=Q({isDisabled:a}),{pressed:x,pressProps:E}=function({disabled:e=!1}={}){let t=(0,r.useRef)(null),[n,o]=(0,r.useState)(!1),i=oe(),a=le((()=>{t.current=null,o(!1),i.dispose()})),l=le((e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,o(!0);{let n=te(e.currentTarget);i.addEventListener(n,"pointerup",a,!1),i.addEventListener(n,"pointermove",(e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);o(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}}),!1),i.addEventListener(n,"pointercancel",a,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:l,onPointerUp:a,onClick:a}}}({disabled:a}),k=(0,r.useMemo)((()=>({open:0===c.menuState,active:x||0===c.menuState,disabled:a,hover:y,focus:v,autofocus:l})),[c,y,v,x,a,l]);return jn({ourProps:Wn(d(),{ref:f,id:i,type:Ae(e,c.buttonRef),"aria-haspopup":"menu","aria-controls":null==(n=c.itemsRef.current)?void 0:n.id,"aria-expanded":0===c.menuState,disabled:a||void 0,autoFocus:l,onKeyDown:m,onKeyUp:h,onClick:g},b,w,E),theirProps:s,slot:k,defaultTag:"button",name:"Menu.Button"})})),Ir=Bn((function(e,t){var n,o;let i=(0,r.useId)(),{id:a=`headlessui-menu-items-${i}`,anchor:l,portal:s=!1,modal:c=!0,...u}=e,d=function(e){return(0,r.useMemo)((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(l),[f,p]=Or("Menu.Items"),[m,h]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,r.useContext)(wn),n=(0,r.useMemo)((()=>e),[JSON.stringify(e,"undefined"!=typeof HTMLElement?(e,t)=>t instanceof HTMLElement?t.outerHTML:t:void 0)]);ie((()=>{null==t||t(null!=n?n:null)}),[t,n]);let o=(0,r.useContext)(yn);return(0,r.useMemo)((()=>[o.setFloating,e?o.styles:{}]),[o.setFloating,e,o.styles])}(d),g=function(){let{getFloatingProps:e,slot:t}=(0,r.useContext)(yn);return(0,r.useCallback)(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}(),v=He(f.itemsRef,t,d?m:null),b=Me(f.itemsRef);d&&(s=!0);let y=oe(),w=Tn(),x=null!==w?(w&Sn.Open)===Sn.Open:0===f.menuState;pe(f.buttonRef,(()=>p({type:1})),x),function(e,t,n=(()=>[document.body])){!function(e,t,n=(()=>({containers:[]}))){let o=function(e){return(0,r.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}(_e),i=e?o.get(e):void 0,a=!!i&&i.count>0;ie((()=>{if(e&&t)return _e.dispatch("PUSH",e,n),()=>_e.dispatch("POP",e,n)}),[t,e])}(e,t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}(b,!f.__demoMode&&c&&0===f.menuState),fe({allowed:le((()=>[f.buttonRef.current,f.itemsRef.current]))},!f.__demoMode&&c&&0===f.menuState);let E=!function(e,t=!0){let n=(0,r.useRef)({left:0,top:0});if(ie((()=>{let t=e.current;if(!t)return;let r=t.getBoundingClientRect();r&&(n.current=r)}),[t]),null==e.current||!t||e.current===document.activeElement)return!1;let o=e.current.getBoundingClientRect();return o.top!==n.current.top||o.left!==n.current.left}(f.buttonRef,0!==f.menuState)&&x;(0,r.useEffect)((()=>{let e=f.itemsRef.current;e&&0===f.menuState&&e!==(null==b?void 0:b.activeElement)&&e.focus({preventScroll:!0})}),[f.menuState,f.itemsRef,b,f.itemsRef.current]),function({container:e,accept:t,walk:n,enabled:o=!0}){let i=(0,r.useRef)(t),a=(0,r.useRef)(n);(0,r.useEffect)((()=>{i.current=t,a.current=n}),[t,n]),ie((()=>{if(!e||!o)return;let t=te(e);if(!t)return;let n=i.current,r=a.current,l=Object.assign((e=>n(e)),{acceptNode:n}),s=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,l,!1);for(;s.nextNode();)r(s.currentNode)}),[e,o,i,a])}({container:f.itemsRef.current,enabled:0===f.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let k=le((e=>{var t,n;switch(y.dispose(),e.key){case Jn.Space:if(""!==f.searchQuery)return e.preventDefault(),e.stopPropagation(),p({type:3,value:e.key});case Jn.Enter:if(e.preventDefault(),e.stopPropagation(),p({type:1}),null!==f.activeItemIndex){let{dataRef:e}=f.items[f.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}Oe(f.buttonRef.current);break;case Jn.ArrowDown:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:Ln.Next});case Jn.ArrowUp:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:Ln.Previous});case Jn.Home:case Jn.PageUp:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:Ln.First});case Jn.End:case Jn.PageDown:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:Ln.Last});case Jn.Escape:e.preventDefault(),e.stopPropagation(),p({type:1}),re().nextFrame((()=>{var e;return null==(e=f.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case Jn.Tab:e.preventDefault(),e.stopPropagation(),p({type:1}),re().microTask((()=>{!function(e,t){Pe(Ee(),t,{relativeTo:e})}(f.buttonRef.current,e.shiftKey?ye.Previous:ye.Next)}));break;default:1===e.key.length&&(p({type:3,value:e.key}),y.setTimeout((()=>p({type:4})),350))}})),C=le((e=>{e.key===Jn.Space&&e.preventDefault()})),O=(0,r.useMemo)((()=>({open:0===f.menuState})),[f]),S=Wn(d?g():{},{"aria-activedescendant":null===f.activeItemIndex||null==(n=f.items[f.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(o=f.buttonRef.current)?void 0:o.id,id:a,onKeyDown:k,onKeyUp:C,role:"menu",tabIndex:0,ref:v,style:{...h,"--button-width":se(f.buttonRef,!0).width}});return r.createElement(br,{enabled:!!s&&(e.static||x)},jn({ourProps:S,theirProps:u,slot:O,defaultTag:"div",features:Rr,visible:E,name:"Menu.Items"}))})),Mr=Bn((function(e,t){let n=(0,r.useId)(),{id:o=`headlessui-menu-item-${n}`,disabled:i=!1,...a}=e,[l,s]=Or("Menu.Item"),c=null!==l.activeItemIndex&&l.items[l.activeItemIndex].id===o,u=(0,r.useRef)(null),d=He(t,u);ie((()=>{if(l.__demoMode||0!==l.menuState||!c||0===l.activationTrigger)return;let e=re();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=u.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[l.__demoMode,u,c,l.menuState,l.activationTrigger,l.activeItemIndex]);let f=function(e){let t=(0,r.useRef)(""),n=(0,r.useRef)("");return le((()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():Be(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return Be(e).trim()}(r).trim().toLowerCase();return t.current=o,n.current=i,i}))}(u),p=(0,r.useRef)({disabled:i,domRef:u,get textValue(){return f()}});ie((()=>{p.current.disabled=i}),[p,i]),ie((()=>(s({type:5,id:o,dataRef:p}),()=>s({type:6,id:o}))),[p,o]);let m=le((()=>{s({type:1})})),h=le((e=>{if(i)return e.preventDefault();s({type:1}),Oe(l.buttonRef.current)})),g=le((()=>{if(i)return s({type:2,focus:Ln.Nothing});s({type:2,focus:Ln.Specific,id:o})})),v=function(){let e=(0,r.useRef)([-1,-1]);return{wasMoved(t){let n=Ve(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Ve(t)}}}(),b=le((e=>{v.update(e),!i&&(c||s({type:2,focus:Ln.Specific,id:o,trigger:0}))})),y=le((e=>{v.wasMoved(e)&&(i||c||s({type:2,focus:Ln.Specific,id:o,trigger:0}))})),w=le((e=>{v.wasMoved(e)&&(i||c&&s({type:2,focus:Ln.Nothing}))})),[x,E]=ar(),[k,C]=Xn(),O=(0,r.useMemo)((()=>({active:c,focus:c,disabled:i,close:m})),[c,i,m]);return r.createElement(E,null,r.createElement(C,null,jn({ourProps:{id:o,ref:d,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":x,"aria-describedby":k,disabled:void 0,onClick:h,onFocus:g,onPointerEnter:b,onMouseEnter:b,onPointerMove:y,onMouseMove:y,onPointerLeave:w,onMouseLeave:w},theirProps:a,slot:O,defaultTag:Pr,name:"Menu.Item"})))})),Fr=Bn((function(e,t){let[n,o]=ar();return r.createElement(o,null,jn({ourProps:{ref:t,"aria-labelledby":n,role:"group"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Section"}))})),Ar=Bn((function(e,t){let n=(0,r.useId)(),{id:o=`headlessui-menu-heading-${n}`,...i}=e,a=or();return ie((()=>a.register(o)),[o,a.register]),jn({ourProps:{id:o,ref:t,role:"presentation",...a.props},theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})})),jr=Bn((function(e,t){return jn({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Separator"})})),Dr=Object.assign(Lr,{Button:Nr,Items:Ir,Item:Mr,Section:Fr,Heading:Ar,Separator:jr});function _r(){let e=(0,r.useRef)(!1);return ie((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function zr(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Hr(e,...t){e&&t.length>0&&e.classList.add(...t)}function Wr(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Br({container:e,direction:t,classes:n,onStart:o,onStop:i}){let a=_r(),l=oe(),s=(0,r.useRef)(!1);ie((()=>{if("idle"===t||!a.current)return;o.current(t);let r=e.current;return r?l.add(function(e,{direction:t,done:n,classes:r,inFlight:o}){let i=re(),a=void 0!==n?zr(n):()=>{};"enter"===t&&(e.removeAttribute("hidden"),e.style.display="");let l=me(t,{enter:()=>r.enter,leave:()=>r.leave}),s=me(t,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),c=me(t,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom});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(){Wr(e,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),Hr(e,...r.base,...l,...c)},inFlight:o}),o&&(o.current=!0),i.nextFrame((()=>{i.add(function(e,t){let n=zr(t),r=re();if(!e)return r.dispose;let{transitionDuration:o,transitionDelay:i}=getComputedStyle(e),[a,l]=[o,i].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),s=a+l;if(0!==s){let t=r.group((r=>{let o=r.setTimeout((()=>{n(),r.dispose()}),s);r.addEventListener(e,"transitionrun",(i=>{i.target===i.currentTarget&&(o(),r.addEventListener(e,"transitioncancel",(e=>{e.target===e.currentTarget&&(n(),t())})))}))}));r.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(n(),r.dispose())}))}else n();return r.dispose}(e,(()=>(Wr(e,...r.base,...l),Hr(e,...r.base,...r.entered,...s),o&&(o.current=!1),a())))),Wr(e,...r.base,...l,...c),Hr(e,...r.base,...l,...s)})),i.dispose}(r,{direction:t,classes:n.current,inFlight:s,done(){i.current(t)}})):i.current(t),l.dispose}),[t])}function Vr(e=""){return e.split(/\s+/).filter((e=>e.length>1))}function $r(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:Xr)!==r.Fragment||1===r.Children.count(e.children)}let Ur=(0,r.createContext)(null);Ur.displayName="TransitionContext";var qr=(e=>(e.Visible="visible",e.Hidden="hidden",e))(qr||{});let Gr=(0,r.createContext)(null);function Kr(e){return"children"in e?Kr(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Yr(e,t){let n=ae(e),o=(0,r.useRef)([]),i=_r(),a=oe(),l=le(((e,t=An.Hidden)=>{let r=o.current.findIndex((({el:t})=>t===e));-1!==r&&(me(t,{[An.Unmount](){o.current.splice(r,1)},[An.Hidden](){o.current[r].state="hidden"}}),a.microTask((()=>{var e;!Kr(o)&&i.current&&(null==(e=n.current)||e.call(n))})))})),s=le((e=>{let t=o.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):o.current.push({el:e,state:"visible"}),()=>l(e,An.Unmount)})),c=(0,r.useRef)([]),u=(0,r.useRef)(Promise.resolve()),d=(0,r.useRef)({enter:[],leave:[],idle:[]}),f=le(((e,n,r)=>{c.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=>{c.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?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=le(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>n(t)))}));return(0,r.useMemo)((()=>({children:o,register:s,unregister:l,onStart:f,onStop:p,wait:u,chains:d})),[s,l,o,f,p,d,u])}Gr.displayName="NestingContext";let Xr=r.Fragment,Qr=Fn.RenderStrategy,Zr=Bn((function(e,t){let{show:n,appear:o=!1,unmount:i=!0,...a}=e,l=(0,r.useRef)(null),s=He(...$r(e)?[l,t]:null===t?[]:[t]);cr();let c=Tn();if(void 0===n&&null!==c&&(n=(c&Sn.Open)===Sn.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,r.useState)(n?"visible":"hidden"),f=Yr((()=>{n||d("hidden")})),[p,m]=(0,r.useState)(!0),h=(0,r.useRef)([n]);ie((()=>{!1!==p&&h.current[h.current.length-1]!==n&&(h.current.push(n),m(!1))}),[h,n]);let g=(0,r.useMemo)((()=>({show:n,appear:o,initial:p})),[n,o,p]);pe(l,(()=>d("hidden"))),ie((()=>{n?d("visible"):!Kr(f)&&null!==l.current&&d("hidden")}),[n,f]);let v={unmount:i},b=le((()=>{var t;p&&m(!1),null==(t=e.beforeEnter)||t.call(e)})),y=le((()=>{var t;p&&m(!1),null==(t=e.beforeLeave)||t.call(e)}));return r.createElement(Gr.Provider,{value:f},r.createElement(Ur.Provider,{value:g},jn({ourProps:{...v,as:r.Fragment,children:r.createElement(Jr,{ref:s,...v,...a,beforeEnter:b,beforeLeave:y})},theirProps:{},defaultTag:r.Fragment,features:Qr,visible:"visible"===u,name:"Transition"})))})),Jr=Bn((function(e,t){var n,o,i;let{beforeEnter:a,afterEnter:l,beforeLeave:s,afterLeave:c,enter:u,enterFrom:d,enterTo:f,entered:p,leave:m,leaveFrom:h,leaveTo:g,...v}=e,b=(0,r.useRef)(null),y=$r(e),w=He(...y?[b,t]:null===t?[]:[t]),x=null==(n=v.unmount)||n?An.Unmount:An.Hidden,{show:E,appear:k,initial:C}=function(){let e=(0,r.useContext)(Ur);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[O,S]=(0,r.useState)(E?"visible":"hidden"),T=function(){let e=(0,r.useContext)(Gr);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:R,unregister:P}=T;ie((()=>R(b)),[R,b]),ie((()=>{if(x===An.Hidden&&b.current)return E&&"visible"!==O?void S("visible"):me(O,{hidden:()=>P(b),visible:()=>R(b)})}),[O,b,R,P,E,x]);let L=ae({base:Vr(v.className),enter:Vr(u),enterFrom:Vr(d),enterTo:Vr(f),entered:Vr(p),leave:Vr(m),leaveFrom:Vr(h),leaveTo:Vr(g)}),N=ae({beforeEnter:a,afterEnter:l,beforeLeave:s,afterLeave:c}),I=cr();ie((()=>{if(y&&I&&"visible"===O&&null===b.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[b,O,I,y]);let M=k&&E&&C,F=M?"enter":!I||C&&!k?"idle":E?"enter":"leave",A=function(e=0){let[t,n]=(0,r.useState)(e),o=_r(),i=(0,r.useCallback)((e=>{o.current&&n((t=>t|e))}),[t,o]),a=(0,r.useCallback)((e=>!!(t&e)),[t]),l=(0,r.useCallback)((e=>{o.current&&n((t=>t&~e))}),[n,o]),s=(0,r.useCallback)((e=>{o.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:l,toggleFlag:s}}(0),j=le((e=>me(e,{enter:()=>{var e,t;A.addFlag(Sn.Opening),null==(t=(e=N.current).beforeEnter)||t.call(e)},leave:()=>{var e,t;A.addFlag(Sn.Closing),null==(t=(e=N.current).beforeLeave)||t.call(e)},idle:()=>{}}))),D=le((e=>me(e,{enter:()=>{var e,t;A.removeFlag(Sn.Opening),null==(t=(e=N.current).afterEnter)||t.call(e)},leave:()=>{var e,t;A.removeFlag(Sn.Closing),null==(t=(e=N.current).afterLeave)||t.call(e)},idle:()=>{}}))),_=(0,r.useRef)(!1),z=Yr((()=>{_.current||(S("hidden"),P(b))}),T);Br({container:b,classes:L,direction:F,onStart:ae((e=>{_.current=!0,z.onStart(b,e,j)})),onStop:ae((e=>{_.current=!1,z.onStop(b,e,D),"leave"===e&&!Kr(z)&&(S("hidden"),P(b))}))});let H=v,W={ref:w};return M?H={...H,className:In(v.className,...L.current.enter,...L.current.enterFrom)}:_.current?(H.className=In(v.className,null==(o=b.current)?void 0:o.className),""===H.className&&delete H.className):(H.className=In(v.className,null==(i=b.current)?void 0:i.className,...me(F,{enter:[...L.current.enterTo,...L.current.entered],leave:L.current.leaveTo,idle:[]})),""===H.className&&delete H.className),r.createElement(Gr.Provider,{value:z},r.createElement(Rn,{value:me(O,{visible:Sn.Open,hidden:Sn.Closed})|A.flags},jn({ourProps:W,theirProps:H,defaultTag:Xr,features:Qr,visible:"visible"===O,name:"Transition.Child"})))})),eo=Bn((function(e,t){let n=null!==(0,r.useContext)(Ur),o=null!==Tn();return r.createElement(r.Fragment,null,!n&&o?r.createElement(Zr,{ref:t,...e}):r.createElement(Jr,{ref:t,...e}))})),to=Object.assign(Zr,{Child:eo,Root:Zr});function no(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ro(e){return e instanceof no(e).Element||e instanceof Element}function oo(e){return e instanceof no(e).HTMLElement||e instanceof HTMLElement}function io(e){return"undefined"!=typeof ShadowRoot&&(e instanceof no(e).ShadowRoot||e instanceof ShadowRoot)}var ao=Math.max,lo=Math.min,so=Math.round;function co(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function uo(){return!/^((?!chrome|android).)*safari/i.test(co())}function fo(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&oo(e)&&(o=e.offsetWidth>0&&so(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&so(r.height)/e.offsetHeight||1);var a=(ro(e)?no(e):window).visualViewport,l=!uo()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function po(e){var t=no(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function mo(e){return e?(e.nodeName||"").toLowerCase():null}function ho(e){return((ro(e)?e.ownerDocument:e.document)||window.document).documentElement}function go(e){return fo(ho(e)).left+po(e).scrollLeft}function vo(e){return no(e).getComputedStyle(e)}function bo(e){var t=vo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function yo(e,t,n){void 0===n&&(n=!1);var r,o,i=oo(t),a=oo(t)&&function(e){var t=e.getBoundingClientRect(),n=so(t.width)/e.offsetWidth||1,r=so(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=ho(t),s=fo(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==mo(t)||bo(l))&&(c=(r=t)!==no(r)&&oo(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:po(r)),oo(t)?((u=fo(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=go(l))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function wo(e){var t=fo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function xo(e){return"html"===mo(e)?e:e.assignedSlot||e.parentNode||(io(e)?e.host:null)||ho(e)}function Eo(e){return["html","body","#document"].indexOf(mo(e))>=0?e.ownerDocument.body:oo(e)&&bo(e)?e:Eo(xo(e))}function ko(e,t){var n;void 0===t&&(t=[]);var r=Eo(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=no(r),a=o?[i].concat(i.visualViewport||[],bo(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(ko(xo(a)))}function Co(e){return["table","td","th"].indexOf(mo(e))>=0}function Oo(e){return oo(e)&&"fixed"!==vo(e).position?e.offsetParent:null}function So(e){for(var t=no(e),n=Oo(e);n&&Co(n)&&"static"===vo(n).position;)n=Oo(n);return n&&("html"===mo(n)||"body"===mo(n)&&"static"===vo(n).position)?t:n||function(e){var t=/firefox/i.test(co());if(/Trident/i.test(co())&&oo(e)&&"fixed"===vo(e).position)return null;var n=xo(e);for(io(n)&&(n=n.host);oo(n)&&["html","body"].indexOf(mo(n))<0;){var r=vo(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var To="top",Ro="bottom",Po="right",Lo="left",No="auto",Io=[To,Ro,Po,Lo],Mo="start",Fo="end",Ao="viewport",jo="popper",Do=Io.reduce((function(e,t){return e.concat([t+"-"+Mo,t+"-"+Fo])}),[]),_o=[].concat(Io,[No]).reduce((function(e,t){return e.concat([t,t+"-"+Mo,t+"-"+Fo])}),[]),zo=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ho(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Wo={placement:"bottom",modifiers:[],strategy:"absolute"};function Bo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Vo(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Wo:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wo,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},i,l.options,o),l.scrollParents={reference:ro(e)?ko(e):e.contextElement?ko(e.contextElement):[],popper:ko(t)};var a,c,f=function(e){var t=Ho(e);return zo.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,l.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=f.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:l,name:t,instance:u,options:r});s.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(Bo(t,n)){l.rects={reference:yo(t,So(n),"fixed"===l.options.strategy),popper:wo(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,d=o.name;"function"==typeof i&&(l=i({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!Bo(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var $o={passive:!0};function Uo(e){return e.split("-")[0]}function qo(e){return e.split("-")[1]}function Go(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ko(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Uo(o):null,a=o?qo(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case To:t={x:l,y:n.y-r.height};break;case Ro:t={x:l,y:n.y+n.height};break;case Po:t={x:n.x+n.width,y:s};break;case Lo:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?Go(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Mo:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Fo:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var Yo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xo(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,h=void 0===m?0:m,g="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Lo,w=To,x=window;if(c){var E=So(n),k="clientHeight",C="clientWidth";E===no(n)&&"static"!==vo(E=ho(n)).position&&"absolute"===l&&(k="scrollHeight",C="scrollWidth"),(o===To||(o===Lo||o===Po)&&i===Fo)&&(w=Ro,h-=(d&&E===x&&x.visualViewport?x.visualViewport.height:E[k])-r.height,h*=s?1:-1),o!==Lo&&(o!==To&&o!==Ro||i!==Fo)||(y=Po,p-=(d&&E===x&&x.visualViewport?x.visualViewport.width:E[C])-r.width,p*=s?1:-1)}var O,S=Object.assign({position:l},c&&Yo),T=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:so(n*o)/o||0,y:so(r*o)/o||0}}({x:p,y:h},no(n)):{x:p,y:h};return p=T.x,h=T.y,s?Object.assign({},S,((O={})[w]=b?"0":"",O[y]=v?"0":"",O.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",O)):Object.assign({},S,((t={})[w]=b?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}const Qo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];oo(o)&&mo(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});oo(r)&&mo(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},Zo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=_o.reduce((function(e,n){return e[n]=function(e,t,n){var r=Uo(e),o=[Lo,To].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Lo,Po].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var Jo={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(e){return e.replace(/left|right|bottom|top/g,(function(e){return Jo[e]}))}var ti={start:"end",end:"start"};function ni(e){return e.replace(/start|end/g,(function(e){return ti[e]}))}function ri(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&io(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function oi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ii(e,t,n){return t===Ao?oi(function(e,t){var n=no(e),r=ho(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=uo();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+go(e),y:s}}(e,n)):ro(t)?function(e,t){var n=fo(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):oi(function(e){var t,n=ho(e),r=po(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ao(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ao(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+go(e),s=-r.scrollTop;return"rtl"===vo(o||n).direction&&(l+=ao(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(ho(e)))}function ai(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function li(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function si(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?"clippingParents":l,c=n.rootBoundary,u=void 0===c?Ao:c,d=n.elementContext,f=void 0===d?jo:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,v=ai("number"!=typeof g?g:li(g,Io)),b=f===jo?"reference":jo,y=e.rects.popper,w=e.elements[m?b:f],x=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=ko(xo(e)),n=["absolute","fixed"].indexOf(vo(e).position)>=0&&oo(e)?So(e):e;return ro(n)?t.filter((function(e){return ro(e)&&ri(e,n)&&"body"!==mo(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=ii(e,n,r);return t.top=ao(o.top,t.top),t.right=lo(o.right,t.right),t.bottom=lo(o.bottom,t.bottom),t.left=ao(o.left,t.left),t}),ii(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(ro(w)?w:w.contextElement||ho(e.elements.popper),s,u,a),E=fo(e.elements.reference),k=Ko({reference:E,element:y,strategy:"absolute",placement:o}),C=oi(Object.assign({},y,k)),O=f===jo?C:E,S={top:x.top-O.top+v.top,bottom:O.bottom-x.bottom+v.bottom,left:x.left-O.left+v.left,right:O.right-x.right+v.right},T=e.modifiersData.offset;if(f===jo&&T){var R=T[o];Object.keys(S).forEach((function(e){var t=[Po,Ro].indexOf(e)>=0?1:-1,n=[To,Ro].indexOf(e)>=0?"y":"x";S[e]+=R[n]*t}))}return S}const ci={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,g=t.options.placement,v=Uo(g),b=s||(v!==g&&m?function(e){if(Uo(e)===No)return[];var t=ei(e);return[ni(e),t,ni(t)]}(g):[ei(g)]),y=[g].concat(b).reduce((function(e,n){return e.concat(Uo(n)===No?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?_o:s,u=qo(r),d=u?l?Do:Do.filter((function(e){return qo(e)===u})):Io,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=si(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Uo(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,x=t.rects.popper,E=new Map,k=!0,C=y[0],O=0;O<y.length;O++){var S=y[O],T=Uo(S),R=qo(S)===Mo,P=[To,Ro].indexOf(T)>=0,L=P?"width":"height",N=si(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),I=P?R?Po:Lo:R?Ro:To;w[L]>x[L]&&(I=ei(I));var M=ei(I),F=[];if(i&&F.push(N[T]<=0),l&&F.push(N[I]<=0,N[M]<=0),F.every((function(e){return e}))){C=S,k=!1;break}E.set(S,F)}if(k)for(var A=function(e){var t=y.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},j=m?3:1;j>0&&"break"!==A(j);j--);t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ui(e,t,n){return ao(e,lo(t,n))}function di(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fi(e){return[To,Po,Ro,Lo].some((function(t){return e[t]>=0}))}var pi=Vo({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=no(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,$o)})),l&&s.addEventListener("resize",n.update,$o),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,$o)})),l&&s.removeEventListener("resize",n.update,$o)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ko({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,c={placement:Uo(t.placement),variation:qo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Xo(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Xo(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Qo,Zo,ci,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=si(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=Uo(t.placement),b=qo(t.placement),y=!b,w=Go(v),x="x"===w?"y":"x",E=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,O="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(E){if(i){var P,L="y"===w?To:Lo,N="y"===w?Ro:Po,I="y"===w?"height":"width",M=E[w],F=M+g[L],A=M-g[N],j=p?-C[I]/2:0,D=b===Mo?k[I]:C[I],_=b===Mo?-C[I]:-k[I],z=t.elements.arrow,H=p&&z?wo(z):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=W[L],V=W[N],$=ui(0,k[I],H[I]),U=y?k[I]/2-j-$-B-S.mainAxis:D-$-B-S.mainAxis,q=y?-k[I]/2+j+$+V+S.mainAxis:_+$+V+S.mainAxis,G=t.elements.arrow&&So(t.elements.arrow),K=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,Y=null!=(P=null==T?void 0:T[w])?P:0,X=M+q-Y,Q=ui(p?lo(F,M+U-Y-K):F,M,p?ao(A,X):A);E[w]=Q,R[w]=Q-M}if(l){var Z,J="x"===w?To:Lo,ee="x"===w?Ro:Po,te=E[x],ne="y"===x?"height":"width",re=te+g[J],oe=te-g[ee],ie=-1!==[To,Lo].indexOf(v),ae=null!=(Z=null==T?void 0:T[x])?Z:0,le=ie?re:te-k[ne]-C[ne]-ae+S.altAxis,se=ie?te+k[ne]+C[ne]-ae-S.altAxis:oe,ce=p&&ie?function(e,t,n){var r=ui(e,t,n);return r>n?n:r}(le,te,se):ui(p?le:re,te,p?se:oe);E[x]=ce,R[x]=ce-te}t.modifiersData[r]=R}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Uo(n.placement),s=Go(l),c=[Lo,Po].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return ai("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:li(e,Io))}(o.padding,n),d=wo(i),f="y"===s?To:Lo,p="y"===s?Ro:Po,m=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],h=a[s]-n.rects.reference[s],g=So(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,y=u[f],w=v-d[c]-u[p],x=v/2-d[c]/2+b,E=ui(y,x,w),k=s;n.modifiersData[r]=((t={})[k]=E,t.centerOffset=E-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ri(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=si(t,{elementContext:"reference"}),l=si(t,{altBoundary:!0}),s=di(a,r),c=di(l,o,i),u=fi(s),d=fi(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function mi(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=mi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const hi="-";function gi(e){const t=function(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]},o=function(e,t){return t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e}(Object.entries(e.classGroups),n);return o.forEach((([e,n])=>{yi(n,r,e,t)})),r}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split(hi);return""===n[0]&&1!==n.length&&n.shift(),vi(n,t)||function(e){if(bi.test(e)){const t=bi.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}}function vi(e,t){if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?vi(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join(hi);return t.validators.find((({validator:e})=>e(i)))?.classGroupId}const bi=/^\[(.+)\]$/;function yi(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void yi(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{yi(o,wi(t,e),n,r)}))}else(""===e?t:wi(t,e)).classGroupId=n}))}function wi(e,t){let n=e;return t.split(hi).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function xi(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(o,i){n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}}const Ei="!";function ki(e){const t=e.separator,n=1===t.length,r=t[0],o=t.length;return function(e){const i=[];let a,l=0,s=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===l){if(u===r&&(n||e.slice(c,c+o)===t)){i.push(e.slice(s,c)),s=c+o;continue}if("/"===u){a=c;continue}}"["===u?l++:"]"===u&&l--}const c=0===i.length?e:e.substring(s),u=c.startsWith(Ei);return{modifiers:i,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>s?a-s:void 0}}}const Ci=/\s+/;function Oi(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Si(e))&&(r&&(r+=" "),r+=t);return r}function Si(e){if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Si(e[r]))&&(n&&(n+=" "),n+=t);return n}function Ti(e,...t){let n,r,o,i=function(l){const s=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:xi(e.cacheSize),splitModifiers:ki(e),...gi(e)}}(s),r=n.cache.get,o=n.cache.set,i=a,a(l)};function a(e){const t=r(e);if(t)return t;const i=function(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(Ci).map((e=>{const{modifiers:t,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a}=n(e);let l=r(a?i.substring(0,a):i),s=Boolean(a);if(!l){if(!a)return{isTailwindClass:!1,originalClassName:e};if(l=r(i),!l)return{isTailwindClass:!1,originalClassName:e};s=!1}const c=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:o?c+Ei:c,classGroupId:l,originalClassName:e,hasPostfixModifier:s}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,a=t+n;return!i.has(a)&&(i.add(a),o(n,r).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return o(e,i),i}return function(){return i(Oi.apply(null,arguments))}}function Ri(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const Pi=/^\[(?:([a-z-]+):)?(.+)\]$/i,Li=/^\d+\/\d+$/,Ni=new Set(["px","full","screen"]),Ii=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Fi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ai=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ji=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Di(e){return zi(e)||Ni.has(e)||Li.test(e)}function _i(e){return Zi(e,"length",Ji)}function zi(e){return Boolean(e)&&!Number.isNaN(Number(e))}function Hi(e){return Zi(e,"number",zi)}function Wi(e){return Boolean(e)&&Number.isInteger(Number(e))}function Bi(e){return e.endsWith("%")&&zi(e.slice(0,-1))}function Vi(e){return Pi.test(e)}function $i(e){return Ii.test(e)}const Ui=new Set(["length","size","percentage"]);function qi(e){return Zi(e,Ui,ea)}function Gi(e){return Zi(e,"position",ea)}const Ki=new Set(["image","url"]);function Yi(e){return Zi(e,Ki,na)}function Xi(e){return Zi(e,"",ta)}function Qi(){return!0}function Zi(e,t,n){const r=Pi.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function Ji(e){return Mi.test(e)&&!Fi.test(e)}function ea(){return!1}function ta(e){return Ai.test(e)}function na(e){return ji.test(e)}function ra(){const e=Ri("colors"),t=Ri("spacing"),n=Ri("blur"),r=Ri("brightness"),o=Ri("borderColor"),i=Ri("borderRadius"),a=Ri("borderSpacing"),l=Ri("borderWidth"),s=Ri("contrast"),c=Ri("grayscale"),u=Ri("hueRotate"),d=Ri("invert"),f=Ri("gap"),p=Ri("gradientColorStops"),m=Ri("gradientColorStopPositions"),h=Ri("inset"),g=Ri("margin"),v=Ri("opacity"),b=Ri("padding"),y=Ri("saturate"),w=Ri("scale"),x=Ri("sepia"),E=Ri("skew"),k=Ri("space"),C=Ri("translate"),O=()=>["auto",Vi,t],S=()=>[Vi,t],T=()=>["",Di,_i],R=()=>["auto",zi,Vi],P=()=>["","0",Vi],L=()=>[zi,Hi],N=()=>[zi,Vi];return{cacheSize:500,separator:":",theme:{colors:[Qi],spacing:[Di,_i],blur:["none","",$i,Vi],brightness:L(),borderColor:[e],borderRadius:["none","","full",$i,Vi],borderSpacing:S(),borderWidth:T(),contrast:L(),grayscale:P(),hueRotate:N(),invert:P(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[Bi,_i],inset:O(),margin:O(),opacity:L(),padding:S(),saturate:L(),scale:L(),sepia:P(),skew:N(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",Vi]}],container:["container"],columns:[{columns:[$i]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Vi]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Wi,Vi]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Vi]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Wi,Vi]}],"grid-cols":[{"grid-cols":[Qi]}],"col-start-end":[{col:["auto",{span:["full",Wi,Vi]},Vi]}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":[Qi]}],"row-start-end":[{row:["auto",{span:[Wi,Vi]},Vi]}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Vi]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Vi]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Vi,t]}],"min-w":[{"min-w":[Vi,t,"min","max","fit"]}],"max-w":[{"max-w":[Vi,t,"none","full","min","max","fit","prose",{screen:[$i]},$i]}],h:[{h:[Vi,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Vi,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Vi,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Vi,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$i,_i]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Hi]}],"font-family":[{font:[Qi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Vi]}],"line-clamp":[{"line-clamp":["none",zi,Hi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Di,Vi]}],"list-image":[{"list-image":["none",Vi]}],"list-style-type":[{list:["none","disc","decimal",Vi]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Di,_i]}],"underline-offset":[{"underline-offset":["auto",Di,Vi]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Vi]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Vi]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Gi]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qi]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Yi]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Di,Vi]}],"outline-w":[{outline:[Di,_i]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Di,_i]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$i,Xi]}],"shadow-color":[{shadow:[Qi]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",$i,Vi]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Vi]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",Vi]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",Vi]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Wi,Vi]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Vi]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Vi]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Vi]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Di,_i,Hi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}Symbol.toStringTag;const oa=Ti(ra),ia=(...e)=>oa(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=mi(e))&&(r&&(r+=" "),r+=t);return r}(e)),aa=(()=>{let e;return Object.seal({get:()=>e,set:t=>{e=t}})})(),la=e=>{try{return new URL(e).pathname.split("/").pop()}catch(e){return""}},sa=async({id:e,description:t,url:n,name:r})=>{const o=aa.get();var i;if(o)try{const a=new FormData;a.append("action","zipwp_images_insert_image"),a.append("id",e),a.append("description",t),a.append("url",n),a.append("name",null!=r?r:la(n)),a.append("_ajax_nonce",zipwpImages._ajax_nonce);const l=await fetch(zipwpImages.ajaxurl,{method:"POST",body:a});if(200!==l?.status)return void console.error(l);i=e,window?.zipwpImages?.saved_images&&window.zipwpImages.saved_images.push(i);const s=await l.json();o.model.frame.content.mode("browse"),o.model.get("selection").add(s.data.attachmentData),o.model.frame.trigger("library:selection:add"),o.model.get("selection"),o.controller.el.querySelector(".media-button-select").click()}catch(e){console.error(e)}},ca=({placement:e="right",width:t="w-48",contentClassName:n="py-1 bg-white",trigger:o,offset:i=[0,0],children:l,disabled:s=!1,mainClassName:c="",isOpen:u,onClose:d})=>{let f="bottom-end";switch(e){case"left":f="bottom-start";break;case"right":default:f="bottom-end";break;case"top-start":f="top-start";break;case"top-end":f="top-end"}const[p,m]=(e=>{const t=(0,a.useRef)(null),n=(0,a.useRef)(null),r=(0,a.useRef)((()=>{})),o=(0,a.useCallback)((()=>{t.current&&n.current&&(r.current&&r.current(),r.current=pi(t.current,n.current,e).destroy)}),[t,n,r,e]);return(0,a.useMemo)((()=>[e=>{t.current=e,o()},e=>{n.current=e,o()}]),[t,n,o])})({placement:f,strategy:"absolute",modifiers:[{name:"offset",options:{offset:i}},{name:"flip",enabled:!1}]});switch(t?.toString()){case"48":t="w-48";break;case"60":t="w-60";break;case"72.5":t="w-[18.25rem]";break;case"80":t="w-80";break;default:t=t||"w-48"}const h=(0,a.useRef)(null);return(0,a.useEffect)((()=>{const e=e=>{h.current&&!h.current.contains(e.target)&&d()};return u&&document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[u,d]),(0,r.createElement)(Dr,{as:"div",className:ia("relative",c),ref:h},(()=>(0,r.createElement)(a.Fragment,null,(0,r.createElement)("div",{ref:p},(0,r.createElement)(Nr,{as:a.Fragment,disabled:s},o)),(0,r.createElement)("div",{ref:m,className:"z-50"},(0,r.createElement)(to,{show:u,as:a.Fragment,enter:"transition ease-out duration-200",enterFrom:f.startsWith("top")?"transform opacity-0 scale-95 translate-y-2":"transform opacity-0 scale-95 -translate-y-2",enterTo:"transform opacity-100 scale-100 translate-y-0",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100 translate-y-0",leaveTo:f.startsWith("top")?"transform opacity-0 scale-95 translate-y-2":"transform opacity-0 scale-95 -translate-y-2"},(0,r.createElement)("div",{className:ia("my-2 rounded-md shadow-lg",t)},(0,r.createElement)(Ir,{className:ia("rounded-md focus:outline-none ring-1 ring-black ring-opacity-5",n)},l)))))))};ca.Item=Mr;const ua=ca;var da="tippy-content",fa="tippy-backdrop",pa="tippy-arrow",ma="tippy-svg-arrow",ha={passive:!0,capture:!0},ga=function(){return document.body};function va(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function ba(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function ya(e,t){return"function"==typeof e?e.apply(void 0,t):e}function wa(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function xa(e){return[].concat(e)}function Ea(e,t){-1===e.indexOf(t)&&e.push(t)}function ka(e){return[].slice.call(e)}function Ca(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Oa(){return document.createElement("div")}function Sa(e){return["Element","Fragment"].some((function(t){return ba(e,t)}))}function Ta(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Ra(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Pa(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function La(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Na={isTouch:!1},Ia=0;function Ma(){Na.isTouch||(Na.isTouch=!0,window.performance&&document.addEventListener("mousemove",Fa))}function Fa(){var e=performance.now();e-Ia<20&&(Na.isTouch=!1,document.removeEventListener("mousemove",Fa)),Ia=e}function Aa(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var ja=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),Da=Object.assign({appendTo:ga,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),_a=Object.keys(Da);function za(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;return o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=Da[o])?r:i),t}),{});return Object.assign({},e,t)}function Ha(e,t){var n=Object.assign({},t,{content:ya(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(za(Object.assign({},Da,{plugins:t}))):_a).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Da.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var Wa=function(){return"innerHTML"};function Ba(e,t){e[Wa()]=t}function Va(e){var t=Oa();return!0===e?t.className=pa:(t.className=ma,Sa(e)?t.appendChild(e):Ba(t,e)),t}function $a(e,t){Sa(t.content)?(Ba(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ba(e,t.content):e.textContent=t.content)}function Ua(e){var t=e.firstElementChild,n=ka(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(da)})),arrow:n.find((function(e){return e.classList.contains(pa)||e.classList.contains(ma)})),backdrop:n.find((function(e){return e.classList.contains(fa)}))}}function qa(e){var t=Oa(),n=Oa();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Oa();function o(n,r){var o=Ua(t),i=o.box,a=o.content,l=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||$a(a,e.props),r.arrow?l?n.arrow!==r.arrow&&(i.removeChild(l),i.appendChild(Va(r.arrow))):i.appendChild(Va(r.arrow)):l&&i.removeChild(l)}return r.className=da,r.setAttribute("data-state","hidden"),$a(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}qa.$$tippy=!0;var Ga=1,Ka=[],Ya=[];function Xa(e,t){var n,r,o,i,a,l,s,c,u=Ha(e,Object.assign({},Da,za(Ca(t)))),d=!1,f=!1,p=!1,m=!1,h=[],g=wa(G,u.interactiveDebounce),v=Ga++,b=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),y={id:v,reference:e,popper:Oa(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){if(!y.state.isDestroyed){M("onBeforeUpdate",[y,t]),U();var n=y.props,r=Ha(e,Object.assign({},n,Ca(t),{ignoreAttributes:!0}));y.props=r,$(),n.interactiveDebounce!==r.interactiveDebounce&&(j(),g=wa(G,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?xa(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),A(),I(),E&&E(n,r),y.popperInstance&&(Q(),J().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),M("onAfterUpdate",[y,t])}},setContent:function(e){y.setProps({content:e})},show:function(){var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=Na.isTouch&&!y.props.touch,o=va(y.props.duration,0,Da.duration);if(!(e||t||n||r||R().hasAttribute("disabled")||(M("onShow",[y],!1),!1===y.props.onShow(y)))){if(y.state.isVisible=!0,T()&&(x.style.visibility="visible"),I(),H(),y.state.isMounted||(x.style.transition="none"),T()){var i=L();Ta([i.box,i.content],0)}var a,s,c;l=function(){var e;if(y.state.isVisible&&!m){if(m=!0,x.offsetHeight,x.style.transition=y.props.moveTransition,T()&&y.props.animation){var t=L(),n=t.box,r=t.content;Ta([n,r],o),Ra([n,r],"visible")}F(),A(),Ea(Ya,y),null==(e=y.popperInstance)||e.forceUpdate(),M("onMount",[y]),y.props.animation&&T()&&function(e,t){B(e,(function(){y.state.isShown=!0,M("onShown",[y])}))}(o)}},s=y.props.appendTo,c=R(),(a=y.props.interactive&&s===ga||"parent"===s?c.parentNode:ya(s,[c])).contains(x)||a.appendChild(x),y.state.isMounted=!0,Q()}},hide:function(){var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=va(y.props.duration,1,Da.duration);if(!(e||t||n)&&(M("onHide",[y],!1),!1!==y.props.onHide(y))){if(y.state.isVisible=!1,y.state.isShown=!1,m=!1,d=!1,T()&&(x.style.visibility="hidden"),j(),W(),I(!0),T()){var o=L(),i=o.box,a=o.content;y.props.animation&&(Ta([i,a],r),Ra([i,a],"hidden"))}F(),A(),y.props.animation?T()&&function(e,t){B(e,(function(){!y.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(r,y.unmount):y.unmount()}},hideWithInteractivity:function(e){P().addEventListener("mousemove",g),Ea(Ka,g),g(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){y.state.isVisible&&y.hide(),y.state.isMounted&&(Z(),J().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x),Ya=Ya.filter((function(e){return e!==y})),y.state.isMounted=!1,M("onHidden",[y]))},destroy:function(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),U(),delete e._tippy,y.state.isDestroyed=!0,M("onDestroy",[y]))}};if(!u.render)return y;var w=u.render(y),x=w.popper,E=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+y.id,y.popper=x,e._tippy=y,x._tippy=y;var k=b.map((function(e){return e.fn(y)})),C=e.hasAttribute("aria-expanded");return $(),A(),I(),M("onCreate",[y]),u.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",g)})),y;function O(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function S(){return"hold"===O()[0]}function T(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function R(){return s||e}function P(){var e,t,n=R().parentNode;return n?null!=(t=xa(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function L(){return Ua(x)}function N(e){return y.state.isMounted&&!y.state.isVisible||Na.isTouch||i&&"focus"===i.type?0:va(y.props.delay,e?0:1,Da.delay)}function I(e){void 0===e&&(e=!1),x.style.pointerEvents=y.props.interactive&&!e?"":"none",x.style.zIndex=""+y.props.zIndex}function M(e,t,n){var r;void 0===n&&(n=!0),k.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(r=y.props)[e].apply(r,t)}function F(){var t=y.props.aria;if(t.content){var n="aria-"+t.content,r=x.id;xa(y.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function A(){!C&&y.props.aria.expanded&&xa(y.props.triggerTarget||e).forEach((function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===R()?"true":"false"):e.removeAttribute("aria-expanded")}))}function j(){P().removeEventListener("mousemove",g),Ka=Ka.filter((function(e){return e!==g}))}function D(t){if(!Na.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!La(x,n)){if(xa(y.props.triggerTarget||e).some((function(e){return La(e,n)}))){if(Na.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),f=!0,setTimeout((function(){f=!1})),y.state.isMounted||W())}}}function _(){p=!0}function z(){p=!1}function H(){var e=P();e.addEventListener("mousedown",D,!0),e.addEventListener("touchend",D,ha),e.addEventListener("touchstart",z,ha),e.addEventListener("touchmove",_,ha)}function W(){var e=P();e.removeEventListener("mousedown",D,!0),e.removeEventListener("touchend",D,ha),e.removeEventListener("touchstart",z,ha),e.removeEventListener("touchmove",_,ha)}function B(e,t){var n=L().box;function r(e){e.target===n&&(Pa(n,"remove",r),t())}if(0===e)return t();Pa(n,"remove",a),Pa(n,"add",r),a=r}function V(t,n,r){void 0===r&&(r=!1),xa(y.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),h.push({node:e,eventType:t,handler:n,options:r})}))}function $(){var e;S()&&(V("touchstart",q,{passive:!0}),V("touchend",K,{passive:!0})),(e=y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(V(e,q),e){case"mouseenter":V("mouseleave",K);break;case"focus":V(ja?"focusout":"blur",Y);break;case"focusin":V("focusout",Y)}}))}function U(){h.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),h=[]}function q(e){var t,n=!1;if(y.state.isEnabled&&!X(e)&&!f){var r="focus"===(null==(t=i)?void 0:t.type);i=e,s=e.currentTarget,A(),!y.state.isVisible&&ba(e,"MouseEvent")&&Ka.forEach((function(t){return t(e)})),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||d)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!r&&te(e)}}function G(e){var t=e.target,n=R().contains(t)||x.contains(t);if("mousemove"!==e.type||!n){var r=J().concat(x).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=o.placement.split("-")[0],l=o.modifiersData.offset;if(!l)return!0;var s="bottom"===a?l.top.y:0,c="top"===a?l.bottom.y:0,u="right"===a?l.left.x:0,d="left"===a?l.right.x:0,f=t.top-r+s>i,p=r-t.bottom-c>i,m=t.left-n+u>i,h=n-t.right-d>i;return f||p||m||h}))})(r,e)&&(j(),te(e))}}function K(e){X(e)||y.props.trigger.indexOf("click")>=0&&d||(y.props.interactive?y.hideWithInteractivity(e):te(e))}function Y(e){y.props.trigger.indexOf("focusin")<0&&e.target!==R()||y.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function X(e){return!!Na.isTouch&&S()!==e.type.indexOf("touch")>=0}function Q(){Z();var t=y.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,s=T()?Ua(x).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||R()}:e,u=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(T()){var n=L().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];T()&&s&&u.push({name:"arrow",options:{element:s,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),y.popperInstance=pi(c,x,Object.assign({},n,{placement:r,onFirstUpdate:l,modifiers:u}))}function Z(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function J(){return ka(x.querySelectorAll("[data-tippy-root]"))}function ee(e){y.clearDelayTimeouts(),e&&M("onTrigger",[y,e]),H();var t=N(!0),r=O(),o=r[0],i=r[1];Na.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){y.show()}),t):y.show()}function te(e){if(y.clearDelayTimeouts(),M("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=N(!1);t?r=setTimeout((function(){y.state.isVisible&&y.hide()}),t):o=requestAnimationFrame((function(){y.hide()}))}}else W()}}function Qa(e,t){void 0===t&&(t={});var n=Da.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ma,ha),window.addEventListener("blur",Aa);var r,o=Object.assign({},t,{plugins:n}),i=(r=e,Sa(r)?[r]:function(e){return ba(e,"NodeList")}(r)?ka(r):Array.isArray(r)?r:ka(document.querySelectorAll(r))).reduce((function(e,t){var n=t&&Xa(t,o);return n&&e.push(n),e}),[]);return Sa(e)?i[0]:i}Qa.defaultProps=Da,Qa.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Da[t]=e[t]}))},Qa.currentInput=Na,Object.assign({},Qo,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Qa.setDefaultProps({render:qa});const Za=Qa;function Ja(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var el="undefined"!=typeof window&&"undefined"!=typeof document;function tl(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function nl(){return el&&document.createElement("div")}function rl(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!rl(e[n],t[n]))return!1}return!0}return!1}function ol(e){var t=[];return e.forEach((function(e){t.find((function(t){return rl(e,t)}))||t.push(e)})),t}var il=el?r.useLayoutEffect:r.useEffect;function al(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var ll={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||al(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&al(t,"remove",e.props.className)},onAfterUpdate:r}}};function sl(e){return function(t){var n,o,a=t.children,l=t.content,s=t.visible,c=t.singleton,u=t.render,d=t.reference,f=t.disabled,p=void 0!==f&&f,m=t.ignoreAttributes,h=void 0===m||m,g=(t.__source,t.__self,Ja(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),v=void 0!==s,b=void 0!==c,y=(0,r.useState)(!1),w=y[0],x=y[1],E=(0,r.useState)({}),k=E[0],C=E[1],O=(0,r.useState)(),S=O[0],T=O[1],R=(n=function(){return{container:nl(),renders:1}},(o=(0,r.useRef)()).current||(o.current="function"==typeof n?n():n),o.current),P=Object.assign({ignoreAttributes:h},g,{content:R.container});v&&(P.trigger="manual",P.hideOnClick=!1),b&&(p=!0);var L=P,N=P.plugins||[];u&&(L=Object.assign({},P,{plugins:b&&null!=c.data?[].concat(N,[{fn:function(){return{onTrigger:function(e,t){var n=c.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,T(n.content)}}}}]):N,render:function(){return{popper:R.container}}}));var I=[d].concat(a?[a.type]:[]);return il((function(){var t=d;d&&d.hasOwnProperty("current")&&(t=d.current);var n=e(t||R.ref||nl(),Object.assign({},L,{plugins:[ll].concat(P.plugins||[])}));return R.instance=n,p&&n.disable(),s&&n.show(),b&&c.hook({instance:n,content:l,props:L,setSingletonContent:T}),x(!0),function(){n.destroy(),null==c||c.cleanup(n)}}),I),il((function(){var e,t,n,r,o;if(1!==R.renders){var i=R.instance;i.setProps((t=i.props,n=L,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:ol([].concat((null==(r=t.popperOptions)?void 0:r.modifiers)||[],(null==(o=n.popperOptions)?void 0:o.modifiers)||[]))})}))),null==(e=i.popperInstance)||e.forceUpdate(),p?i.disable():i.enable(),v&&(s?i.show():i.hide()),b&&c.hook({instance:i,content:l,props:L,setSingletonContent:T})}else R.renders++})),il((function(){var e;if(u){var t=R.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;k.placement===n.placement&&k.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&k.escaped===(null==r?void 0:r.hasPopperEscaped)||C({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[k.placement,k.referenceHidden,k.escaped].concat(I)),i().createElement(i().Fragment,null,a?(0,r.cloneElement)(a,{ref:function(e){R.ref=e,tl(a.ref,e)}}):null,w&&(0,Yt.createPortal)(u?u(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(k),S,R.instance):l,R.container))}}var cl=function(e,t){return(0,r.forwardRef)((function(n,o){var a=n.children,l=Ja(n,["children"]);return i().createElement(e,Object.assign({},t,l),a?(0,r.cloneElement)(a,{ref:function(e){tl(o,e),tl(a.ref,e)}}):null)}))};const ul=cl(sl(Za)),dl=({children:e,content:t,interactive:n=!1,arrow:o=!1,...i})=>t?(0,r.createElement)(ul,{className:"zipwp-images-tooltip",content:t,interactive:n,arrow:o,...i},e):e,fl=(0,a.forwardRef)((({variant:e="",isSmall:t=!1,hasSuffixIcon:n=!1,hasPrefixIcon:o=!1,type:i="button",className:a,onClick:l,children:s,disabled:c=!1,id:u="",...d},f)=>{const p=t?"small":"base",m={base:{default:"px-6 py-3",hasPrefixIcon:"pl-4 pr-6 py-3",hasSuffixIcon:"pl-6 pr-4 py-3"},medium:{default:"px-4 py-3 h-11",hasPrefixIcon:"pl-4 pr-6 py-3",hasSuffixIcon:"pl-6 pr-4 py-3"},small:{default:"px-5 py-2 h-[2.625rem]",hasPrefixIcon:"pl-3 pr-5 py-2 h-[2.625rem]",hasSuffixIcon:"pl-5 pr-3 py-2 h-[2.625rem]"}};return(0,r.createElement)("button",{type:i,className:ia("group flex items-center justify-center gap-2 rounded-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 transition duration-150 ease-in-out cursor-pointer border-0",{primary:"text-white bg-accent focus-visible:ring-accent border border-solid border-accent",white:"text-accent bg-white border border-solid border-accent focus-visible:ring-accent",dark:"text-white border border-white bg-transparent border-solid",link:"underline border-0 bg-transparent",blank:"bg-transparent border-transparent",gray:"bg-transparent border border-solid border-zip-dark-theme-border text-zip-dark-theme-heading","gray-selected":"bg-zip-dark-theme-border text-white",other:"","gradient-border":"bg-transparent text-zip-app-heading zw-base-bold gradient-border-cover gradient-border-cover-button",gradient:"bg-gradient-to-r from-gradient-color-1 via-46.88 via-gradient-color-2 to-gradient-color-3 text-white zw-base-bold","border-secondary":"text-app-secondary bg-app-light-background border border-app-secondary shadow-sm"}[e],!o&&!n&&m[p].default,o&&m[p].hasPrefixIcon,n&&m[p].hasSuffixIcon,{base:"text-base font-medium",small:"text-sm font-medium"}[p],{base:"rounded-md",small:"rounded"}[p],c&&"cursor-not-allowed opacity-70",a),onClick:e=>{l&&"function"==typeof l&&l(e)},ref:f,disabled:c,...u&&{id:u},...d},s)})),pl=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))})),ml=[{name:"red",label:(0,p.__)("Red","astra-sites"),hex:"#F90F0F"},{name:"orange",label:(0,p.__)("Orange","astra-sites"),hex:"#FD6713"},{name:"yellow",label:(0,p.__)("Yellow","astra-sites"),hex:"#FFE03B"},{name:"green",label:(0,p.__)("Green","astra-sites"),hex:"#4CAF50"},{name:"blue",label:(0,p.__)("Blue","astra-sites"),hex:"#2191F3"},{name:"pink",label:(0,p.__)("Pink","astra-sites"),hex:"#FE4483"},{name:"brown",label:(0,p.__)("Brown","astra-sites"),hex:"#795548"},{name:"black",label:(0,p.__)("Black","astra-sites"),hex:"#000000"},{name:"gray",label:(0,p.__)("Gray","astra-sites"),hex:"#9E9E9E"},{name:"white",label:(0,p.__)("White","astra-sites"),hex:"#FFFFFF"},{name:"turquoise",label:(0,p.__)("Turquoise","astra-sites"),hex:"#29D5C4"},{name:"lilac",label:(0,p.__)("Lilac","astra-sites"),hex:"#CBABFF"},{name:"violet",label:(0,p.__)("Violet","astra-sites"),hex:"#9027FA"},{name:"grayscale",label:(0,p.__)("Grayscale","astra-sites"),hex:"",component:(0,r.createElement)("div",{className:"size-6 rounded-full overflow-hidden flex p-0"},(0,r.createElement)("div",{className:"w-1/2 h-full bg-[#9E9E9E]"}),(0,r.createElement)("div",{className:"w-1/2 h-full bg-white"}))},{name:"transparent",label:(0,p.__)("Transparent","astra-sites"),hex:"",component:(0,r.createElement)((({className:e=""})=>(0,r.createElement)("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("g",{clipPath:"url(#clip0_33003_155235)"},(0,r.createElement)("rect",{width:"6",height:"6",transform:"translate(9 9)",fill:"#9E9E9E"}),(0,r.createElement)("rect",{width:"6",height:"6",transform:"translate(9 21)",fill:"#9E9E9E"}),(0,r.createElement)("rect",{width:"6",height:"6",transform:"translate(9 -3)",fill:"#9E9E9E"}),(0,r.createElement)("rect",{width:"6",height:"6",transform:"translate(21 9)",fill:"#9E9E9E"}),(0,r.createElement)("rect",{width:"6",height:"6",transform:"translate(-3 9)",fill:"#9E9E9E"}),(0,r.createElement)("rect",{width:"6",height:"6",transform:"translate(15 15)",fill:"#9E9E9E"}),(0,r.createElement)("rect",{width:"6",height:"6",transform:"translate(15 3)",fill:"#9E9E9E"}),(0,r.createElement)("rect",{width:"6",height:"6",transform:"translate(3 15)",fill:"#9E9E9E"}),(0,r.createElement)("rect",{width:"6",height:"6",transform:"translate(3 3)",fill:"#9E9E9E"})),(0,r.createElement)("path",{d:"M0.5 12C0.5 5.64873 5.64873 0.5 12 0.5C18.3513 0.5 23.5 5.64873 23.5 12C23.5 18.3513 18.3513 23.5 12 23.5C5.64873 23.5 0.5 18.3513 0.5 12Z",stroke:"black",strokeOpacity:"0.08"}),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_33003_155235"},(0,r.createElement)("path",{d:"M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z",fill:"white"}))))),{className:"size-6 rounded-full"})}],hl=({value:e,onChange:t})=>{const n=e=>()=>{"function"==typeof t&&t(e)};return(0,r.createElement)(ua,{contentClassName:"p-3 bg-white space-y-4",trigger:t=>(0,r.createElement)("div",{className:ia("flex items-center justify-between gap-2 min-w-[72px] pl-4 !py-2.5 pr-2 cursor-pointer rounded ring-1 ring-wp-component-border focus:ring-2 focus:ring-accent-wp-primary",t?.open&&"ring-2 ring-accent-wp-primary"),tabIndex:0},e?(0,r.createElement)("span",{className:"text-sm font-normal text-body-text flex items-center gap-2"},!e?.component&&(0,r.createElement)("span",{className:"block size-4 rounded-full",style:{backgroundColor:e?.hex}}),!!e?.component&&e.component,(0,r.createElement)("span",{className:"hover:text-accent"},e?.label)):(0,r.createElement)("span",{className:"text-sm font-normal text-body-text hover:text-accent"},(0,p.__)("Color","astra-sites")),(0,r.createElement)("svg",{stroke:"currentColor",fill:"none",strokeWidth:"0",viewBox:"0 0 24 24",height:"200px",width:"200px",xmlns:"http://www.w3.org/2000/svg",className:"size-[18px] font-semibold text-app-inactive-icon"},(0,r.createElement)("path",{d:"M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z",fill:"currentColor"})))},(0,r.createElement)("div",{className:"grid grid-cols-5 gap-2 auto-rows-auto"},ml.map((t=>(0,r.createElement)(dl,{key:t.name,content:t.label},(0,r.createElement)(ua.Item,{as:"div",className:"relative flex place-items-center size-6 rounded-full cursor-pointer border border-solid border-black/10 [&>*]:shrink-0 hover:scale-125 transition-transform",onClick:n(t),...!!t?.hex&&{style:{backgroundColor:t.hex}}},!!t?.component&&t.component,e?.name===t?.name&&(0,r.createElement)("div",{className:"flex justify-center items-center absolute inset-0 pointer-events-none"},(0,r.createElement)("div",{className:"rounded-full size-4 bg-white flex justify-center items-center"},(0,r.createElement)(pl,{className:"w-3 h-3 text-body-text"})))))))),(0,r.createElement)(ua.Item,{as:fl,variant:"blank",className:ia("w-fit py-1 px-2.5 text-xs font-normal text-body-text border border-solid border-border-primary rounded",!e&&"opacity-50 cursor-not-allowed"),onClick:n(null),disabled:!e},(0,p.__)("Clear","astra-sites")))},gl=({className:e="w-5 h-5 text-white"})=>(0,r.createElement)("svg",{className:ia("animate-spin",e),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.createElement)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),vl=({className:e,name:t,prefixIcon:n,suffixIcon:o,register:i,validations:l,error:s,onChange:c,focusOnLoad:u,...d})=>{const f=(0,a.useRef)(null);return(0,a.useEffect)((()=>{f.current&&u&&f.current.focus()}),[]),(0,r.createElement)("div",{className:"space-y-1"},(0,r.createElement)("div",{className:ia("relative flex items-center justify-start h-10 ring-1 ring-wp-component-border shadow-sm rounded focus-within:border-accent focus-within:ring-2 focus-within:ring-accent",!!s&&"border-alert-error",e)},!!n&&n,(0,r.createElement)("input",{type:"text",className:ia("h-full !py-2 w-full px-3 !rounded-md !outline-none !text-sm placeholder:!text-sm placeholder:!text-zip-app-inactive-icon !bg-transparent disabled:!cursor-not-allowed !border-0 focus:!ring-0 focus:!outline-none"),"aria-invalid":!!s,onChange:e=>c(e.target.value),ref:f,...d}),!!o&&o),!!s&&(0,r.createElement)("p",{className:"m-0 p-0 text-sm text-alert-error"},s.message))},bl={all:{value:"all",label:(0,p.__)("All Orientation","astra-sites")},horizontal:{value:"landscape",label:(0,p.__)("Landscape","astra-sites")},vertical:{value:"portrait",label:(0,p.__)("Portrait","astra-sites")},square:{value:"square",label:(0,p.__)("Square","astra-sites")}},yl=({value:e,onChange:t})=>(0,r.createElement)("select",{className:"block h-auto min-w-fit border-0 py-1 md:!py-2.5 pl-3 pr-10 ring-1 !ring-wp-component-border focus:ring-2 focus:!ring-accent-wp-primary !text-sm hover:text-accent",onChange:e=>{t(e.target.value)},value:e},Object.values(bl).map(((e,t)=>(0,r.createElement)("option",{value:e.value,key:t},e.label)))),wl=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,o,i);return i};var xl=n(242);const{useDebugValue:El}=r,{useSyncExternalStoreWithSelector:kl}=xl;let Cl=!1;const Ol=e=>e,Sl=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?wl(e):wl)(e):e,n=(e,n)=>function(e,t=Ol,n){n&&!Cl&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Cl=!0);const r=kl(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return El(r),r}(t,e,n);return Object.assign(n,t),n},Tl="SET_PREVIEW_IMAGE",Rl=(jl=(e,{type:t,payload:n})=>t===Tl?{...e,imagePreview:n}:e,Dl={imagePreview:null},Al=(e,t,n)=>(n.dispatch=t=>(e((e=>jl(e,t)),!1,t),t),n.dispatchFromDevtools=!0,{dispatch:(...e)=>n.dispatch(...e),...Dl}),Al?Sl(Al):Sl),Pl="idle",Ll="pending",Nl=["original","small","large","medium"],Il=["pexels","pixabay"],Ml=(e=20)=>{const t=["aspect-[1/1]","aspect-[1/2]","aspect-[2/1]","aspect-[2/2]","aspect-[3/3]","aspect-[4/3]","aspect-[3/4]"];let n=0;return Array.from({length:e}).map(((e,o)=>(n=n===t.length?0:n,(0,r.createElement)("div",{key:`skeleton-${o}`,className:ia("relative overflow-hidden rounded-lg","bg-slate-300 rounded-lg relative animate-pulse",t[n++])}))))},Fl=()=>{var e;const{dispatch:t}=Rl(),[n,o]=(0,a.useState)(""),[i,d]=(0,a.useState)(null),[m,h]=(0,a.useState)("all"),[g,v]=(0,a.useState)(!1),[b,y]=(0,a.useState)([]),[x,E]=(0,a.useState)(Pl),[k,C]=(0,a.useState)(1),O=(0,a.useRef)(!0),S=(0,a.useRef)(""),T=(0,a.useRef)(new Set),R=(0,a.useRef)([]),[P,L]=(0,a.useState)(-1),[N,I]=(0,a.useState)({}),M=(0,a.useRef)(null),F=(0,a.useRef)(null),A=()=>{L(-1)},j=async(e=n,t=m,r=i,o="pexels",a=k)=>{try{const n=e.trim();S.current=n;let i=r;if("pexels"===o&&r&&("transparent"===r.name||"grayscale"===r.name))return 0;"pexels"===o&&r&&"lilac"===r.name&&(i=ml.find((e=>"violet"===e.name))),"pixabay"===o&&r&&"violet"===r.name&&(i=ml.find((e=>"lilac"===e.name)));const l=new AbortController;R.current.push(l);const s=await f()({path:"zipwp-images/v1/images",data:{keywords:n,orientation:t,per_page:20..toString(),page:a.toString(),engine:o,...!!i&&{color:i.name}},method:"POST",headers:{"X-WP-Nonce":zipwpImages.rest_api_nonce},signal:l.signal}),c=s.success&&s?.data?s.data?.data:[];return y((e=>[...e,...c])),c.length<20&&T.current.add(o),c?.length}catch(e){throw e}},D=()=>{T.current?.clear()},_=async(e=n,t=m,r=i,o=k)=>{const a=[];R.current.length&&(R.current.forEach((e=>e.abort())),R.current=[]);try{E(Ll);for(const n of Il){if(T.current.has(n))continue;const i=await j(e,t,r,n,o);a.push(i)}T.current.size===Il.length&&(O.current=!1),E("success")}catch(e){if("AbortError"===e.name)return;E("failure"),console.error(e)}},z=((e,t)=>{const[n,r]=(0,a.useState)(e);return(0,a.useEffect)((()=>{const n=setTimeout((()=>{r(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),n})(n,400);(0,a.useEffect)((()=>{H(),D(),C(1),y([]),O.current=!0,_(z,m,i,1)}),[z]);const H=()=>{F.current&&(F.current.scrollTop=0)},W=e=>{A(),t({type:Tl,payload:e})},B=(e,t)=>{if("pexels"===e.engine||"pixabay"===e.engine){const n=e.sizes.find((e=>e.id===t));if(n)return n.url;const r=["original","large2x","large","medium","small"];for(const t of r){const n=e.sizes.find((e=>e.id===t));if(n)return n.url}return e.url}},V=(e,t)=>async()=>{if(!N[e.id]&&!g){v(!0),I((t=>({...t,[e.id]:!0})));try{await sa({id:e.id,description:e?.description,name:la(B(e,t)),url:B(e,t)})}finally{I((t=>({...t,[e.id]:!1}))),v(!1)}}},$=x===Ll?[...b,...Ml()]:b,U=null!==i||"all"!==m,q=null!==(e=zipwpImages?.saved_images)&&void 0!==e?e:[];return(0,r.createElement)("div",{className:"flex flex-col justify-start items-center gap-5 h-full"},(0,r.createElement)("div",{className:"w-full h-fit md:flex-row flex-col flex justify-between gap-3"},(0,r.createElement)("div",{className:"w-full md:max-w-[420px]"},(0,r.createElement)(vl,{className:"w-full",name:"keyword",placeholder:"Search images",suffixIcon:n?(0,r.createElement)("button",{type:"button",className:"inline-flex items-start justify-center pr-3 bg-transparent p-0 m-0 border-0 outline-none focus:outline-none cursor-pointer",onClick:()=>o("")},(0,r.createElement)(s,{className:"w-4 h-4 text-zip-app-inactive-icon transition-all"})):(0,r.createElement)("div",{className:"inline-flex items-start justify-center pr-3 bg-transparent p-0 m-0 border-0"},(0,r.createElement)(l,{className:"w-4 h-4 text-zip-app-inactive-icon transition-all"})),autoComplete:"off",onChange:e=>{o(e),H(),D(),C(1),y([]),O.current=!0},value:n,focusOnLoad:!0})),(0,r.createElement)("div",{className:"flex items-center justify-end gap-3"},U&&(0,r.createElement)("span",{className:"text-sm font-normal text-body-text leading-[150%] cursor-pointer text-nowrap",onClick:()=>{d(null),h(bl.all?.value),y([]),C(1),_(z,bl?.all?.value,null,1),H()},"aria-hidden":"true"},(0,p.__)("Clear filter","astra-sites")),(0,r.createElement)(hl,{value:i,onChange:e=>{D(),d(e),C(1),y([]),H(),_(z,m,e,1)}}),(0,r.createElement)(yl,{value:m,onChange:e=>{D(),h(e),C(1),y([]),_(z,e,i,1),H()}}))),(0,r.createElement)("div",{ref:F,className:"w-full max-h-full overflow-y-auto",onScroll:e=>{if(x===Ll)return;const{target:{scrollHeight:t,scrollTop:n,clientHeight:r}}=e;n+r>=t-250&&O.current&&(C((e=>e+1)),_(z,m,i,k+1))}},!!$.length&&(0,r.createElement)(w,{className:"gap-6 [&>div]:gap-6 pb-5",columns:{default:1,220:1,767:3,1024:3,1280:5,1920:5}},$.map((e=>e?.optimized_url?(0,r.createElement)("div",{ref:M,key:e.id,className:ia("flex relative bg-white rounded-lg shadow-none group/overlay",q.includes(e.id)&&"before:absolute before:top-2 before:left-2 before:content-['Imported'] before:bg-black/70 before:px-2 before:py-1 before:rounded before:text-white before:text-xs before:font-semibold")},(0,r.createElement)("img",{src:e.optimized_url,alt:e.alt,className:"w-full h-fit min-h-[200px] object-cover"}),(0,r.createElement)("div",{className:ia("absolute inset-0 opacity-0 group-hover/overlay:opacity-100 transition-all duration-300 ease-in-out flex items-center justify-center gap-4 cursor-pointer",e.id===P&&"!opacity-100"),role:"button",tabIndex:0,onClick:t=>{t.stopPropagation(),W(e)},onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),W(e))}},(0,r.createElement)("div",{className:"absolute top-0 left-0 right-0 h-10 bg-gradient-to-b from-black/10 to-transparent opacity-0 group-hover/overlay:opacity-100 transition-opacity duration-300"}),(0,r.createElement)("div",{className:"absolute bottom-0 left-0 right-0 h-10 bg-gradient-to-t from-black/10 to-transparent opacity-0 group-hover/overlay:opacity-100 transition-opacity duration-300"}),(0,r.createElement)("div",{className:"absolute bottom-0 left-0 right-0 flex justify-between items-center p-4 z-5"},(0,r.createElement)("div",{className:"w-1/2"},(0,r.createElement)("div",{className:"flex flex-col !text-white/90 text-xs"},(0,r.createElement)("a",{className:"!text-white/90 text-xs !no-underline",href:e.author_url,target:"_blank",onClick:e=>e.stopPropagation(),rel:"noreferrer"},"by"," ",e.author_name),(0,r.createElement)("span",{className:"opacity-70 truncate"},(0,r.createElement)("span",null,"via "),(0,r.createElement)("span",{className:"capitalize"},e.engine)))),(0,r.createElement)("div",{className:"flex-shrink-0 ml-2"},(0,r.createElement)("div",{className:"flex items-center overflow-hidden rounded"},(0,r.createElement)("button",{className:ia("border-none flex cursor-pointer items-center justify-center text-zip-body-text bg-white hover:bg-white/80 transition-colors duration-200 h-[34px] px-2 rounded-l",g&&"opacity-50 cursor-not-allowed hover:bg-white"),onClick:t=>{t.stopPropagation(),g||V(e)()},disabled:g||N[e.id]},(0,r.createElement)("div",{className:"flex items-center justify-center w-[70px]"}," ",N[e.id]?(0,r.createElement)(gl,{className:"w-4 h-4 mr-2"}):(0,r.createElement)(c,{className:"w-4 h-4 mr-2"}),(0,r.createElement)("span",{className:ia(N[e.id]&&"sr-only","text-sm")},"Insert"))),(0,r.createElement)("div",{className:"w-px h-[34px] bg-border-tertiary"}),(0,r.createElement)("button",{className:ia("border-none flex items-center justify-center cursor-pointer h-[34px] bg-white hover:bg-white/80 transition-colors duration-200 px-2 rounded-r",g&&"opacity-50 cursor-not-allowed hover:bg-white"),onClick:t=>{var n;t.stopPropagation(),g||(n=e.id,L(P===n?-1:n))},disabled:g},(0,r.createElement)(u,{className:ia("w-3 h-3 transition-transform duration-300",P===e.id&&"rotate-180")}))),(0,r.createElement)(ua,{placement:"top-end",isOpen:P===e.id,onClose:A,offset:[2,30],contentClassName:"p-1 bg-white",trigger:(0,r.createElement)("div",null)},e.sizes.filter((e=>Nl.includes(e.id))).map(((t,n)=>(0,r.createElement)(ua.Item,{as:"div",key:n},(0,r.createElement)("div",{"aria-hidden":"true",className:ia("mr-2 flex items-center justify-start gap-2 px-2 py-1.5 text-sm font-normal leading-5 text-zip-body-text hover:bg-background-secondary transition duration-150 ease-in-out rounded bg-white border-none cursor-pointer w-full",g&&"opacity-50 cursor-not-allowed hover:bg-white"),onClick:n=>{n.stopPropagation(),g||V(e,t.id)()}},(0,r.createElement)("span",{className:"text-sm font-medium capitalize"},t.id),(0,r.createElement)("span",{className:"text-xs leading-5 text-zip-app-inactive-icon !ml-0"},(e=>e.width&&e.height?`${e.width} x ${e.height}`:e.width?`W: ${e.width}`:e.height?`H: ${e.height}`:"")(t))))))))))):e))),x!==Pl&&x!==Ll&&!b.length&&(0,r.createElement)("div",{className:"grid grid-cols-1 gap-2 mt-12 h-auto text-center"},(0,r.createElement)("h4",{className:"text-xl text-heading-text !mb-0"},(0,p.sprintf)( // translators: %s: search keyword // translators: %s: search keyword (0,p.__)("Sorry, we couldn't find anything for ā%sā.","astra-sites"),S.current)),(0,r.createElement)("p",{className:"text-body-text text-sm !mt-2"},(0,p.__)("Try to refine your search.","astra-sites"))),x!==Ll&&!O.current&&!!b.length&&(0,r.createElement)("div",{className:"text-center text-sm text-border-primary mt-5 pb-5"},(0,p.__)("End of the search results.","astra-sites"))))};var Al,jl,Dl;const _l=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}));function zl(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function Hl(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Bl(n,Wl(t,r),o);return n}function Wl(e,t){return e?e+"["+t+"]":t}function Bl(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Bl(e,Wl(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):Hl(n,t,e)}var Vl=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Vl||{});let $l=Bn((function(e,t){var n;let{features:r=1,...o}=e;return jn({ourProps:{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"}}},theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})})),Ul=(0,r.createContext)(null);function ql(e){let[t,n]=(0,r.useState)(null);return r.createElement(Ul.Provider,{value:{target:t}},e.children,r.createElement($l,{features:Vl.Hidden,ref:n}))}function Gl({children:e}){let t=(0,r.useContext)(Ul);if(!t)return r.createElement(r.Fragment,null,e);let{target:n}=t;return n?(0,Yt.createPortal)(r.createElement(r.Fragment,null,e),n):null}function Kl({data:e,form:t,disabled:n,onReset:o,overrides:i}){let[a,l]=(0,r.useState)(null),s=oe();return(0,r.useEffect)((()=>{if(o&&a)return s.addEventListener(a,"reset",o)}),[a,t,o]),r.createElement(Gl,null,r.createElement(Yl,{setForm:l,formId:t}),Hl(e).map((([e,o])=>r.createElement($l,{features:Vl.Hidden,...Vn({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:o,...i})}))))}function Yl({setForm:e,formId:t}){return(0,r.useEffect)((()=>{if(t){let n=document.getElementById(t);n&&e(n)}}),[e,t]),t?null:r.createElement($l,{features:Vl.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}var Xl=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(Xl||{});let Ql={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:Re(n,(e=>e.element.current))}},1(e,t){let n=e.options.slice(),r=e.options.findIndex((e=>e.id===t.id));return-1===r?e:(n.splice(r,1),{...e,options:n})}},Zl=(0,r.createContext)(null);function Jl(e){let t=(0,r.useContext)(Zl);if(null===t){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Jl),t}return t}Zl.displayName="RadioGroupDataContext";let es=(0,r.createContext)(null);function ts(e){let t=(0,r.useContext)(es);if(null===t){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ts),t}return t}function ns(e,t){return me(t.type,Ql,e,t)}es.displayName="RadioGroupActionsContext";let rs=Bn((function(e,t){let n=(0,r.useId)(),o=qn(),{id:i=`headlessui-radiogroup-${n}`,value:a,defaultValue:l,form:s,name:c,onChange:u,by:d,disabled:f=o||!1,...p}=e,m=function(e=zl){return(0,r.useCallback)(((t,n)=>{if("string"==typeof e){let r=e;return(null==t?void 0:t[r])===(null==n?void 0:n[r])}return e(t,n)}),[e])}(d),[h,g]=(0,r.useReducer)(ns,{options:[]}),v=h.options,[b,y]=ar(),[w,x]=Xn(),E=(0,r.useRef)(null),k=He(E,t),[C,O]=function(e,t,n){let[o,i]=(0,r.useState)(n),a=void 0!==e,l=(0,r.useRef)(a),s=(0,r.useRef)(!1),c=(0,r.useRef)(!1);return!a||l.current||s.current?!a&&l.current&&!c.current&&(c.current=!0,l.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,l.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:o,le((e=>(a||i(e),null==t?void 0:t(e))))]}(a,u,l),S=(0,r.useMemo)((()=>v.find((e=>!e.propsRef.current.disabled))),[v]),T=(0,r.useMemo)((()=>v.some((e=>m(e.propsRef.current.value,C)))),[v,C]),R=le((e=>{var t;if(f||m(e,C))return!1;let n=null==(t=v.find((t=>m(t.propsRef.current.value,e))))?void 0:t.propsRef.current;return!(null!=n&&n.disabled||(null==O||O(e),0))})),P=le((e=>{let t=E.current;if(!t)return;let n=te(t),r=v.filter((e=>!1===e.propsRef.current.disabled)).map((e=>e.element.current));switch(e.key){case Jn.Enter:!function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget);break;case Jn.ArrowLeft:case Jn.ArrowUp:if(e.preventDefault(),e.stopPropagation(),Pe(r,ye.Previous|ye.WrapAround)===we.Success){let e=v.find((e=>e.element.current===(null==n?void 0:n.activeElement)));e&&R(e.propsRef.current.value)}break;case Jn.ArrowRight:case Jn.ArrowDown:if(e.preventDefault(),e.stopPropagation(),Pe(r,ye.Next|ye.WrapAround)===we.Success){let e=v.find((e=>e.element.current===(null==n?void 0:n.activeElement)));e&&R(e.propsRef.current.value)}break;case Jn.Space:{e.preventDefault(),e.stopPropagation();let t=v.find((e=>e.element.current===(null==n?void 0:n.activeElement)));t&&R(t.propsRef.current.value)}}})),L=le((e=>(g({type:0,...e}),()=>g({type:1,id:e.id})))),N=(0,r.useMemo)((()=>({value:C,firstOption:S,containsCheckedOption:T,disabled:f,compare:m,...h})),[C,S,T,f,m,h]),I=(0,r.useMemo)((()=>({registerOption:L,change:R})),[L,R]),M={ref:k,id:i,role:"radiogroup","aria-labelledby":b,"aria-describedby":w,onKeyDown:P},F=(0,r.useMemo)((()=>({value:C})),[C]),A=(0,r.useCallback)((()=>R(l)),[R]);return r.createElement(x,{name:"RadioGroup.Description"},r.createElement(y,{name:"RadioGroup.Label"},r.createElement(es.Provider,{value:I},r.createElement(Zl.Provider,{value:N},null!=c&&r.createElement(Kl,{disabled:f,data:{[c]:C||"on"},overrides:{type:"radio",checked:null!=C},form:s,onReset:A}),jn({ourProps:M,theirProps:p,slot:F,defaultTag:"div",name:"RadioGroup"})))))})),os=Bn((function(e,t){var n;let o=Jl("RadioGroup.Option"),i=ts("RadioGroup.Option"),a=(0,r.useId)(),{id:l=`headlessui-radiogroup-option-${a}`,value:s,disabled:c=o.disabled||!1,autoFocus:u=!1,...d}=e,f=(0,r.useRef)(null),p=He(f,t),[m,h]=ar(),[g,v]=Xn(),b=ae({value:s,disabled:c});ie((()=>i.registerOption({id:l,element:f,propsRef:b})),[l,i,f,b]);let y=le((e=>{var t;if(Pn(e.currentTarget))return e.preventDefault();i.change(s)&&(null==(t=f.current)||t.focus())})),w=(null==(n=o.firstOption)?void 0:n.id)===l,{isFocusVisible:x,focusProps:E}=U({autoFocus:u}),{isHovered:k,hoverProps:C}=Q({isDisabled:c}),O=o.compare(o.value,s),S=Wn({ref:p,id:l,role:"radio","aria-checked":O?"true":"false","aria-labelledby":m,"aria-describedby":g,"aria-disabled":!!c||void 0,tabIndex:c?-1:O||!o.containsCheckedOption&&w?0:-1,onClick:c?void 0:y,autoFocus:u},E,C),T=(0,r.useMemo)((()=>({checked:O,disabled:c,active:x,hover:k,focus:x,autofocus:u})),[O,c,k,x,u]);return r.createElement(v,{name:"RadioGroup.Description"},r.createElement(h,{name:"RadioGroup.Label"},jn({ourProps:S,theirProps:d,slot:T,defaultTag:"div",name:"RadioGroup.Option"})))})),is=Bn((function(e,t){var n;let o=Jl("Radio"),i=ts("Radio"),a=(0,r.useId)(),l=tr(),s=qn(),{id:c=l||`headlessui-radio-${a}`,value:u,disabled:d=o.disabled||s||!1,autoFocus:f=!1,...p}=e,m=(0,r.useRef)(null),h=He(m,t),g=ir(),v=function(){var e,t;return null!=(t=null==(e=(0,r.useContext)(Kn))?void 0:e.value)?t:void 0}(),b=ae({value:u,disabled:d});ie((()=>i.registerOption({id:c,element:m,propsRef:b})),[c,i,m,b]);let y=le((e=>{var t;if(Pn(e.currentTarget))return e.preventDefault();i.change(u)&&(null==(t=m.current)||t.focus())})),{isFocusVisible:w,focusProps:x}=U({autoFocus:f}),{isHovered:E,hoverProps:k}=Q({isDisabled:d}),C=(null==(n=o.firstOption)?void 0:n.id)===c,O=o.compare(o.value,u);return jn({ourProps:Wn({ref:h,id:c,role:"radio","aria-checked":O?"true":"false","aria-labelledby":g,"aria-describedby":v,"aria-disabled":!!d||void 0,tabIndex:d?-1:O||!o.containsCheckedOption&&C?0:-1,autoFocus:f,onClick:d?void 0:y},x,k),theirProps:p,slot:(0,r.useMemo)((()=>({checked:O,disabled:d,hover:E,focus:w,autofocus:f})),[O,d,E,w,f]),defaultTag:"span",name:"Radio"})})),as=sr,ls=Zn,ss=Object.assign(rs,{Option:os,Radio:is,Label:as,Description:ls}),cs=Bn((function(e,t){let n=`headlessui-control-${(0,r.useId)()}`,[o,i]=ar(),[a,l]=Xn(),s=qn(),{disabled:c=s||!1,...u}=e,d=(0,r.useMemo)((()=>({disabled:c})),[c]);return r.createElement(Gn,{value:c},r.createElement(i,{value:o},r.createElement(l,{value:a},r.createElement(nr,{id:n},jn({ourProps:{ref:t,disabled:c||void 0,"aria-disabled":c||void 0},theirProps:{...u,children:r.createElement(ql,null,"function"==typeof u.children?u.children(d):u.children)},slot:d,defaultTag:"div",name:"Field"})))))}));function us({value:e,onChange:t,by:n,children:o}){return(0,r.createElement)(ss,{value:e,onChange:t,...!!n&&{by:n}},o)}us.Button=({value:e,children:t,disabled:n=!1})=>(0,r.createElement)(cs,{className:"flex items-center gap-2",disabled:n},(0,r.createElement)(is,{as:a.Fragment,value:e},(({checked:e,disabled:t})=>(0,r.createElement)("span",{className:ia("group flex size-[14px] items-center justify-center rounded-full border border-solid border-zip-body-text bg-white",t&&"opacity-70 cursor-not-allowed")},e&&(0,r.createElement)("span",{className:"size-2 rounded-full bg-zip-body-text"})))),(0,r.createElement)(sr,{as:a.Fragment},(({disabled:e})=>(0,r.createElement)("label",{className:ia(!!e&&"opacity-70")},t))));const ds=us,fs=()=>{var e;const{imagePreview:t,dispatch:n}=Rl(),o=(0,a.useMemo)((()=>t?t.sizes:[]),[t]),[i,l]=(0,a.useState)(null!==(e=o[0])&&void 0!==e?e:null),[s,u]=(0,a.useState)(!1),d=()=>{n({type:Tl,payload:null})};return(0,a.useEffect)((()=>{t&&l(o[0])}),[t]),!!t&&(0,r.createElement)("div",{className:"absolute inset-0 grid grid-cols-[1fr_380px] grid-rows-1 bg-white"},(0,r.createElement)("div",{className:"flex items-center justify-center p-6"},(0,r.createElement)("img",{className:"w-full h-full max-w-full max-h-full object-contain pointer-events-none",src:t.url,alt:"Preview",draggable:"false"})),(0,r.createElement)("div",{className:"flex flex-col justify-start items-start p-6 bg-wp-background border-l border-r-0 border-y-0 border-wp-border border-solid"},(0,r.createElement)("div",{className:"!space-y-2"},(0,r.createElement)("p",{className:"m-0 text-base font-semibold text-zip-app-heading"},(0,p.__)("Image Details","astra-sites")),!!t?.description&&(0,r.createElement)("p",{className:""},t.description),(0,r.createElement)("a",{href:t.author_url,target:"_blank",rel:"noreferrer"},"by ",t.author_name," via"," ",(0,r.createElement)("span",{className:"capitalize"},t.engine)),(0,r.createElement)("p",null,(0,p.__)("Orientation","astra-sites"),":"," ",(0,r.createElement)("span",{className:"capitalize"},t.orientation))),(0,r.createElement)("hr",{className:"w-full border-t border-b-0 border-solid border-border-tertiary my-6"}),(0,r.createElement)("div",{className:"space-y-2 w-full"},(0,r.createElement)("p",{className:"m-0 text-base font-semibold text-zip-app-heading"},(0,p.__)("Choose a size:","astra-sites")),(0,r.createElement)(ds,{value:i,onChange:l},o.map((e=>(0,r.createElement)(ds.Button,{key:e.id,value:e},(0,r.createElement)("span",{className:"text-zip-body-text text-sm capitalize"},e.id)," ",!!e.width&&(0,r.createElement)("span",{className:"text-zip-app-inactive-icon text-sm"},"W: ",e.width)," ",!!e.height&&(0,r.createElement)("span",{className:"text-zip-app-inactive-icon text-sm"},"H: ",e.height))))),(0,r.createElement)(fl,{className:"w-full !mt-6 shadow-sm hover:bg-hover-wp-default transition-colors duration-200",variant:"primary",onClick:(f={id:t.id,description:t.description,name:la(i?.url),url:i?.url},async()=>{s||(u(!0),await sa(f),u(!1),setTimeout(d,1e3))}),isSmall:!0},s?(0,r.createElement)(gl,{className:"w-4 h-4 text-white"}):(0,r.createElement)(c,{className:"w-4 h-4"}),(0,r.createElement)("span",{className:ia(s&&"sr-only","!leading-[30px] font-normal text-[13px]")},"Insert Image")),(0,r.createElement)(fl,{variant:"blank",className:"w-full !mt-5 text-zip-body-text font-semibold text-sm border border-solid border-border-tertiary bg-white",isSmall:!0,onClick:d},(0,r.createElement)(_l,{className:"w-4 h-4 text-zip-app-inactive-icon"}),(0,r.createElement)("span",{className:"leading-[30px] font-normal text-[13px]"},(0,p.__)("Back to All Images","astra-sites"))))));var f},ps=()=>(0,r.createElement)("div",{className:"px-5 pt-5 h-[calc(100%_-_1.25rem)]"},(0,r.createElement)(Fl,null),(0,r.createElement)(fs,null));!function(){const e=["video","application/json"],t=wp.media&&wp.media.View?wp.media.View.extend({tagName:"div",className:"attachments-browser ast-attachments-browser",images:[],object:[],initialize(){_.defaults(this.options,{filters:!1,search:!0,date:!0,display:!1,sidebar:!0,AttachmentView:wp.media.view.Attachment.Library}),this.createContent()},dynamicElement(e){if(!e)return;const{el:t}=e;return t},createContent(){const e=this.dynamicElement(this);aa.set(this),setTimeout((()=>{var t;(t=e)&&(0,a.createRoot)(t).render((0,r.createElement)(ps,null))}),10)},dispose(){return wp.media.View.prototype.dispose.apply(this,arguments),this}}):null;if(void 0!==wp&&wp.media){const n=wp.media.view.MediaFrame.Post,o=wp.media.view.MediaFrame.Select;function i(t){return!(t?.library&&t.library.type&&e.includes(t.library.type[0]))}wp.media.view.MediaFrame.Post=n.extend({browseRouter(e){n.prototype.browseRouter.apply(this,arguments),i(this.options)&&e.set({zipwpImages:{text:zipwpImages.title,priority:70}})},bindHandlers(){n.prototype.bindHandlers.apply(this,arguments),this.on("content:create:zipwpImages",this.zipWPImagesContent,this)},zipWPImagesContent(e){const n=this.state();this.$el.addClass("hide-toolbar"),e.view=new t({collection:n.get("zipwpImages-images"),selection:n.get("zipwpImages-selection"),controller:this,model:n})}}),wp.media.view.MediaFrame.Select=o.extend({browseRouter(e){o.prototype.browseRouter.apply(this,arguments),i(this.options)&&e.set({zipwpImages:{text:zipwpImages.title,priority:70}})},bindHandlers(){o.prototype.bindHandlers.apply(this,arguments),this.on("content:create:zipwpImages",this.zipWPImagesContent,this)},zipWPImagesContent(e){const n=this.state();n.get("provider")||n.set("provider",""),this.$el.addClass("hide-toolbar"),e.view=new t({collection:n.get("zipwpImages-images"),selection:n.get("zipwpImages-selection"),controller:this,model:n,provider:n.get("provider")})}})}}(jQuery)},20:(e,t,n)=>{var r=n(609),o=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var r,s={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===s[r]&&(s[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:s,_owner:a.current}}},848:(e,t,n)=>{e.exports=n(20)},63:(e,t,n)=>{var r=n(609),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.useState,a=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},940:(e,t,n)=>{var r=n(609),o=n(888),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,l=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!s){if(s=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return l=t}return l=e}if(t=l,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,l=n)}var a,l,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var p=a(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},888:(e,t,n)=>{e.exports=n(63)},242:(e,t,n)=>{e.exports=n(940)},609:e=>{e.exports=window.React}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,i),n.exports}i.m=r,e=[],i.O=(t,n,r,o)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){for(var[n,r,o]=e[u],l=!0,s=0;s<n.length;s++)(!1&o||a>=o)&&Object.keys(i.O).every((e=>i.O[e](n[s])))?n.splice(s--,1):(l=!1,o<a&&(a=o));if(l){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var a={};t=t||[null,n({}),n([]),n(n)];for(var l=2&r&&e;"object"==typeof l&&!~t.indexOf(l);l=n(l))Object.getOwnPropertyNames(l).forEach((t=>a[t]=()=>e[t]));return a.default=()=>e,i.d(o,a),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={792:0,85:0};i.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[a,l,s]=n,c=0;if(a.some((t=>0!==e[t]))){for(r in l)i.o(l,r)&&(i.m[r]=l[r]);if(s)var u=s(i)}for(t&&t(n);c<a.length;c++)o=a[c],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return i.O(u)},n=globalThis.webpackChunkzipwp_images=globalThis.webpackChunkzipwp_images||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var a=i.O(void 0,[85],(()=>i(94)));a=i.O(a)})();