"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[56],{177:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.314.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(1319).Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},1586:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.314.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(1319).Z)("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",key:"1xcu5"}],["circle",{cx:"17.5",cy:"10.5",r:".5",key:"736e4u"}],["circle",{cx:"8.5",cy:"7.5",r:".5",key:"clrty"}],["circle",{cx:"6.5",cy:"12.5",r:".5",key:"1s4xz9"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]])},5847:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.314.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(1319).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},5209:function(e,t,n){var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(8354)},8354:function(e){!function(){var t={229:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u=[],s=!1,c=-1;function d(){s&&r&&(s=!1,r.length?u=r.concat(u):c=-1,u.length&&f())}function f(){if(!s){var e=l(d);s=!0;for(var t=u.length;t;){for(r=u,u=[];++c<t;)r&&r[c].run();c=-1,t=u.length}r=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||s||l(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,r),a=!1}finally{a&&delete n[e]}return i.exports}r.ab="//";var o=r(229);e.exports=o}()},9677:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},5044:function(e,t,n){let r=n(3086);e.exports=(r.__esModule?r:{default:r}).default},3086:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let o=(r=n(7555))&&r.__esModule?r:{default:r};function i(e){let{version:t,from:n,to:r}=e;o.default.warn("".concat(n,"-color-renamed"),["As of Tailwind CSS ".concat(t,", `").concat(n,"` has been renamed to `").concat(r,"`."),"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return i({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return i({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return i({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return i({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return i({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},7555:function(e,t,n){var r,o=n(5209);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{dim:function(){return u},default:function(){return s}});let i=(r=n(9677))&&r.__esModule?r:{default:r},a=new Set;function l(e,t,n){(void 0===o||!o.env.JEST_WORKER_ID)&&(n&&a.has(n)||(n&&a.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function u(e){return i.default.dim(e)}let s={info(e,t){l(i.default.bold(i.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){l(i.default.bold(i.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){l(i.default.bold(i.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},783:function(e,t,n){let r;n.d(t,{Z:function(){return l}});var o={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i=new Uint8Array(16),a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));var l=function(e,t,n){if(o.randomUUID&&!t&&!e)return o.randomUUID();let l=(e=e||{}).random||(e.rng||function(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)})();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=l[e];return t}return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]}(l)}},5804:function(e,t,n){let r,o;n.d(t,{V:function(){return eF}});var i,a,l,u,s,c,d,f,h,p,v,m,g,b,y=n(8803),w=n.t(y,2),E=n(477),T=n(7530),_=n(3481);function M(e,t,n,r){let o=(0,_.E)(n);(0,y.useEffect)(()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)},[e,t,r])}var k=n(7662),S=n(6246);function P(e){let t=(0,T.z)(e),n=(0,y.useRef)(!1);(0,y.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,S.Y)(()=>{n.current&&t()})}),[t])}var L=n(4930);function x(e){return L.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function C(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,y.useMemo)(()=>x(...t),[...t])}var O=n(149),A=n(6730);function R(e,t,n){let r=(0,_.E)(t);(0,y.useEffect)(()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}var D=((i=D||{})[i.Forwards=0]="Forwards",i[i.Backwards=1]="Backwards",i);function F(e,t){let n=(0,y.useRef)([]),r=(0,T.z)(e);(0,y.useEffect)(()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}},[r,...t])}var N=n(6904),I=((a=I||{})[a.None=1]="None",a[a.Focusable=2]="Focusable",a[a.Hidden=4]="Hidden",a);let H=(0,N.yV)(function(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(2&r)==2||(null!=(n=o["aria-hidden"])?n: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)==4&&(2&r)!=2&&{display:"none"}}};return(0,N.sY)({ourProps:i,theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})}),U=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&U[0]!==e.target&&(U.unshift(e.target),(U=U.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var W=n(6435);let V=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var G=((l=G||{})[l.First=1]="First",l[l.Previous=2]="Previous",l[l.Next=4]="Next",l[l.Last=8]="Last",l[l.WrapAround=16]="WrapAround",l[l.NoScroll=32]="NoScroll",l),Y=((u=Y||{})[u.Error=0]="Error",u[u.Overflow=1]="Overflow",u[u.Success=2]="Success",u[u.Underflow=3]="Underflow",u),z=((s=z||{})[s.Previous=-1]="Previous",s[s.Next=1]="Next",s),B=((c=B||{})[c.Strict=0]="Strict",c[c.Loose=1]="Loose",c),j=((d=j||{})[d.Keyboard=0]="Keyboard",d[d.Mouse=1]="Mouse",d);function K(e){null==e||e.focus({preventScroll:!0})}function Z(e,t){var n,r,o;let{sorted:i=!0,relativeTo:a=null,skipElements:l=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?i?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(e):e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(V)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);l.length>0&&s.length>1&&(s=s.filter(e=>!l.includes(e))),a=null!=a?a:u.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(a))-1;if(4&t)return Math.max(0,s.indexOf(a))+1;if(8&t)return s.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},h=0,p=s.length,v;do{if(h>=p||h+p<=0)return 0;let e=d+h;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}null==(v=s[e])||v.focus(f),h+=c}while(v!==u.activeElement);return 6&t&&null!=(o=null==(r=null==(n=v)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&v.select(),2}function q(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}"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));var J=((f=J||{})[f.None=1]="None",f[f.InitialFocus=2]="InitialFocus",f[f.TabLock=4]="TabLock",f[f.FocusLock=8]="FocusLock",f[f.RestoreFocus=16]="RestoreFocus",f[f.All=30]="All",f);let X=Object.assign((0,N.yV)(function(e,t){let n,r=(0,y.useRef)(null),o=(0,A.T)(r,t),{initialFocus:i,containers:a,features:l=30,...u}=e;(0,O.H)()||(l=1);let s=C(r);!function(e,t){let{ownerDocument:n}=e,r=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,y.useRef)(U.slice());return F((e,n)=>{let[r]=e,[o]=n;!0===o&&!1===r&&(0,S.Y)(()=>{t.current.splice(0)}),!1===o&&!0===r&&(t.current=U.slice())},[e,U,t]),(0,T.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);F(()=>{t||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&K(r())},[t]),P(()=>{t&&K(r())})}({ownerDocument:s},!!(16&l));let c=function(e,t){let{ownerDocument:n,container:r,initialFocus:o}=e,i=(0,y.useRef)(null),a=(0,k.t)();return F(()=>{if(!t)return;let e=r.current;e&&(0,S.Y)(()=>{if(!a.current)return;let t=null==n?void 0:n.activeElement;if(null!=o&&o.current){if((null==o?void 0:o.current)===t){i.current=t;return}}else if(e.contains(t)){i.current=t;return}null!=o&&o.current?K(o.current):Z(e,G.First)===Y.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=null==n?void 0:n.activeElement})},[t]),i}({ownerDocument:s,container:r,initialFocus:i},!!(2&l));!function(e,t){let{ownerDocument:n,container:r,containers:o,previousActiveElement:i}=e,a=(0,k.t)();M(null==n?void 0:n.defaultView,"focus",e=>{if(!t||!a.current)return;let n=q(o);r.current instanceof HTMLElement&&n.add(r.current);let l=i.current;if(!l)return;let u=e.target;u&&u instanceof HTMLElement?Q(n,u)?(i.current=u,K(u)):(e.preventDefault(),e.stopPropagation(),K(l)):K(i.current)},!0)}({ownerDocument:s,container:r,containers:a,previousActiveElement:c},!!(8&l));let d=(n=(0,y.useRef)(0),R("keydown",e=>{"Tab"===e.key&&(n.current=e.shiftKey?1:0)},!0),n),f=(0,T.z)(e=>{let t=r.current;t&&(0,W.E)(d.current,{[D.Forwards]:()=>{Z(t,G.First,{skipElements:[e.relatedTarget]})},[D.Backwards]:()=>{Z(t,G.Last,{skipElements:[e.relatedTarget]})}})}),h=(0,E.G)(),p=(0,y.useRef)(!1);return y.createElement(y.Fragment,null,!!(4&l)&&y.createElement(H,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:I.Focusable}),(0,N.sY)({ourProps:{ref:o,onKeyDown(e){"Tab"==e.key&&(p.current=!0,h.requestAnimationFrame(()=>{p.current=!1}))},onBlur(e){let t=q(a);r.current instanceof HTMLElement&&t.add(r.current);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(Q(t,n)||(p.current?Z(r.current,(0,W.E)(d.current,{[D.Forwards]:()=>G.Next,[D.Backwards]:()=>G.Previous})|G.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&K(e.target)))}},theirProps:u,defaultTag:"div",name:"FocusTrap"}),!!(4&l)&&y.createElement(H,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:I.Focusable}))}),{features:J});function Q(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var $=n(9805),ee=n(1763);let et=(0,y.createContext)(!1);function en(e){return y.createElement(et.Provider,{value:e.force},e.children)}let er=y.Fragment,eo=y.Fragment,ei=(0,y.createContext)(null),ea=(0,y.createContext)(null),el=Object.assign((0,N.yV)(function(e,t){let n=(0,y.useRef)(null),r=(0,A.T)((0,A.h)(e=>{n.current=e}),t),o=C(n),i=function(e){let t=(0,y.useContext)(et),n=(0,y.useContext)(ei),r=C(e),[o,i]=(0,y.useState)(()=>{if(!t&&null!==n||L.O.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)});return(0,y.useEffect)(()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))},[o,r]),(0,y.useEffect)(()=>{t||null!==n&&i(n.current)},[n,i,t]),o}(n),[a]=(0,y.useState)(()=>{var e;return L.O.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null}),l=(0,y.useContext)(ea),u=(0,O.H)();return(0,ee.e)(()=>{!i||!a||i.contains(a)||(a.setAttribute("data-headlessui-portal",""),i.appendChild(a))},[i,a]),(0,ee.e)(()=>{if(a&&l)return l.register(a)},[l,a]),P(()=>{var e;i&&a&&(a instanceof Node&&i.contains(a)&&i.removeChild(a),i.childNodes.length<=0&&(null==(e=i.parentElement)||e.removeChild(i)))}),u&&i&&a?(0,$.createPortal)((0,N.sY)({ourProps:{ref:r},theirProps:e,defaultTag:er,name:"Portal"}),a):null}),{Group:(0,N.yV)(function(e,t){let{target:n,...r}=e,o={ref:(0,A.T)(t)};return y.createElement(ei.Provider,{value:n},(0,N.sY)({ourProps:o,theirProps:r,defaultTag:eo,name:"Popover.Group"}))})}),{useState:eu,useEffect:es,useLayoutEffect:ec,useDebugValue:ed}=w;void 0!==window.document&&window.document.createElement;let ef=w.useSyncExternalStore;var eh=n(1185);function ep(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}let ev=(h={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,eh.k)(),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(e){let t,{doc:n,d:r,meta:o}=e,i={doc:n,d:r,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(o)},a=[ep()?{before(e){let{doc:t,d:n,meta:r}=e;function o(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,eh.k)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,i=null;n.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),a=t.querySelector(r);a&&!o(a)&&(i=a)}catch(e){}},!0),n.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement){if(o(e.target)){let t=e.target;for(;t.parentElement&&o(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")}}),n.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement){if(o(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}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{},{before(e){var n;let{doc:r}=e,o=r.documentElement;t=(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth},after(e){let{doc:n,d:r}=e,o=n.documentElement,i=o.clientWidth-o.offsetWidth,a=t-i;r.style(o,"paddingRight","".concat(a,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];a.forEach(e=>{let{before:t}=e;return null==t?void 0:t(i)}),a.forEach(e=>{let{after:t}=e;return null==t?void 0:t(i)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}},r=new Map,o=new Set,{getSnapshot:()=>r,subscribe:e=>(o.add(e),()=>o.delete(e)),dispatch(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let a=h[e].call(r,...n);a&&(r=a,o.forEach(e=>e()))}});ev.subscribe(()=>{let e=ev.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)&&ev.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&ev.dispatch("TEARDOWN",n)}});let em=null!=(b=y.useId)?b:function(){let e=(0,O.H)(),[t,n]=y.useState(e?()=>L.O.nextId():null);return(0,ee.e)(()=>{null===t&&n(L.O.nextId())},[t]),null!=t?""+t:void 0},eg=new Map,eb=new Map;function ey(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,ee.e)(()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=eb.get(r))?n:0;return eb.set(r,o+1),0!==o||(eg.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=eb.get(r))?e:1;if(1===t?eb.delete(r):eb.set(r,t-1),1!==t)return;let n=eg.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,eg.delete(r))}},[e,t])}function ew(e,t,n){let r=(0,_.E)(t);(0,y.useEffect)(()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}var eE=n(3570);let eT=(0,y.createContext)(()=>{});eT.displayName="StackContext";var e_=((p=e_||{})[p.Add=0]="Add",p[p.Remove=1]="Remove",p);function eM(e){let{children:t,onUpdate:n,type:r,element:o,enabled:i}=e,a=(0,y.useContext)(eT),l=(0,T.z)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];null==n||n(...t),a(...t)});return(0,ee.e)(()=>{let e=void 0===i||!0===i;return e&&l(0,r,o),()=>{e&&l(1,r,o)}},[l,r,o,i]),y.createElement(eT.Provider,{value:l},t)}let ek=(0,y.createContext)(null),eS=Object.assign((0,N.yV)(function(e,t){let n=em(),{id:r="headlessui-description-".concat(n),...o}=e,i=function e(){let t=(0,y.useContext)(ek);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),a=(0,A.T)(t);(0,ee.e)(()=>i.register(r),[r,i.register]);let l={ref:a,...i.props,id:r};return(0,N.sY)({ourProps:l,theirProps:o,slot:i.slot||{},defaultTag:"p",name:i.name||"Description"})}),{});var eP=((v=eP||{}).Space=" ",v.Enter="Enter",v.Escape="Escape",v.Backspace="Backspace",v.Delete="Delete",v.ArrowLeft="ArrowLeft",v.ArrowUp="ArrowUp",v.ArrowRight="ArrowRight",v.ArrowDown="ArrowDown",v.Home="Home",v.End="End",v.PageUp="PageUp",v.PageDown="PageDown",v.Tab="Tab",v),eL=((m=eL||{})[m.Open=0]="Open",m[m.Closed=1]="Closed",m),ex=((g=ex||{})[g.SetTitleId=0]="SetTitleId",g);let eC={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},eO=(0,y.createContext)(null);function eA(e){let t=(0,y.useContext)(eO);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Dialog /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eA),t}return t}function eR(e,t){return(0,W.E)(t.type,eC,e,t)}eO.displayName="DialogContext";let eD=N.AN.RenderStrategy|N.AN.Static,eF=Object.assign((0,N.yV)(function(e,t){let n,r,o,i,a,l=em(),{id:u="headlessui-dialog-".concat(l),open:s,onClose:c,initialFocus:d,role:f="dialog",__demoMode:h=!1,...p}=e,[v,m]=(0,y.useState)(0),g=(0,y.useRef)(!1);f="dialog"===f||"alertdialog"===f?f:(g.current||(g.current=!0,console.warn("Invalid role [".concat(f,"] passed to <Dialog />. Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let b=(0,eE.oJ)();void 0===s&&null!==b&&(s=(b&eE.ZM.Open)===eE.ZM.Open);let w=(0,y.useRef)(null),E=(0,A.T)(w,t),_=C(w),k=e.hasOwnProperty("open")||null!==b,S=e.hasOwnProperty("onClose");if(!k&&!S)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!k)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!S)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof s)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(s));if("function"!=typeof c)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(c));let P=s?0:1,[L,D]=(0,y.useReducer)(eR,{titleId:null,descriptionId:null,panelRef:(0,y.createRef)()}),F=(0,T.z)(()=>c(!1)),U=(0,T.z)(e=>D({type:0,id:e})),G=!!(0,O.H)()&&!h&&0===P,Y=v>1,z=null!==(0,y.useContext)(eO),[j,K]=(n=(0,y.useContext)(ea),r=(0,y.useRef)([]),o=(0,T.z)(e=>(r.current.push(e),n&&n.register(e),()=>i(e))),i=(0,T.z)(e=>{let t=r.current.indexOf(e);-1!==t&&r.current.splice(t,1),n&&n.unregister(e)}),a=(0,y.useMemo)(()=>({register:o,unregister:i,portals:r}),[o,i,r]),[r,(0,y.useMemo)(()=>function(e){let{children:t}=e;return y.createElement(ea.Provider,{value:a},t)},[a])]),{resolveContainers:Z,mainTreeNodeRef:q,MainTreeNode:J}=function(){var e;let{defaultContainers:t=[],portals:n,mainTreeNodeRef:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(0,y.useRef)(null!=(e=null==r?void 0:r.current)?e:null),i=C(o),a=(0,T.z)(()=>{var e,r,a;let l=[];for(let e of t)null!==e&&(e instanceof HTMLElement?l.push(e):"current"in e&&e.current instanceof HTMLElement&&l.push(e.current));if(null!=n&&n.current)for(let e of n.current)l.push(e);for(let t of null!=(e=null==i?void 0:i.querySelectorAll("html > *, body > *"))?e:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(t.contains(o.current)||t.contains(null==(a=null==(r=o.current)?void 0:r.getRootNode())?void 0:a.host)||l.some(e=>t.contains(e))||l.push(t));return l});return{resolveContainers:a,contains:(0,T.z)(e=>a().some(t=>t.contains(e))),mainTreeNodeRef:o,MainTreeNode:(0,y.useMemo)(()=>function(){return null!=r?null:y.createElement(H,{features:I.Hidden,ref:o})},[o,r])}}({portals:j,defaultContainers:[{get current(){var Q;return null!=(Q=L.panelRef.current)?Q:w.current}}]}),$=null!==b&&(b&eE.ZM.Closing)===eE.ZM.Closing,et=!z&&!$&&G;ey((0,y.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==_?void 0:_.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(q.current)&&e instanceof HTMLElement))?t:null},[q]),et);let er=!!Y||G;ey((0,y.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==_?void 0:_.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(q.current)&&e instanceof HTMLElement))?t:null},[q]),er),function(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=(0,y.useRef)(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=o(n);if(null!==i&&i.getRootNode().contains(i)&&i.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(i)||n.composed&&n.composedPath().includes(e))return}return!function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=x(e))?void 0:t.body)&&(0,W.E)(n,{0:()=>e.matches(V),1(){let t=e;for(;null!==t;){if(t.matches(V))return!0;t=t.parentElement}return!1}})}(i,B.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}}(0,y.useEffect)(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);let i=(0,y.useRef)(null);ew("pointerdown",e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),ew("mousedown",e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),ew("click",e=>{ep()||/Android/gi.test(window.navigator.userAgent)||i.current&&(o(e,()=>i.current),i.current=null)},!0),ew("touchend",e=>o(e,()=>e.target instanceof HTMLElement?e.target:null),!0),R("blur",e=>o(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}(Z,F,!(!G||Y));let eo=!(Y||0!==P);M(null==_?void 0:_.defaultView,"keydown",e=>{eo&&(e.defaultPrevented||e.key===eP.Escape&&(e.preventDefault(),e.stopPropagation(),F()))}),function(e,t){var n;let r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];n=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],i]}},r=ef(ev.subscribe,ev.getSnapshot,ev.getSnapshot),(o=e?r.get(e):void 0)&&o.count,(0,ee.e)(()=>{if(!(!e||!t))return ev.dispatch("PUSH",e,n),()=>ev.dispatch("POP",e,n)},[t,e])}(_,!($||0!==P||z),Z),(0,y.useEffect)(()=>{if(0!==P||!w.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&F()}});return e.observe(w.current),()=>e.disconnect()},[P,w,F]);let[ei,eu]=function(){let[e,t]=(0,y.useState)([]);return[e.length>0?e.join(" "):void 0,(0,y.useMemo)(()=>function(e){let n=(0,T.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,y.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return y.createElement(ek.Provider,{value:r},e.children)},[t])]}(),es=(0,y.useMemo)(()=>[{dialogState:P,close:F,setTitleId:U},L],[P,L,F,U]),ec=(0,y.useMemo)(()=>({open:0===P}),[P]),ed={ref:E,id:u,role:f,"aria-modal":0===P||void 0,"aria-labelledby":L.titleId,"aria-describedby":ei};return y.createElement(eM,{type:"Dialog",enabled:0===P,element:w,onUpdate:(0,T.z)((e,t)=>{"Dialog"===t&&(0,W.E)(e,{[e_.Add]:()=>m(e=>e+1),[e_.Remove]:()=>m(e=>e-1)})})},y.createElement(en,{force:!0},y.createElement(el,null,y.createElement(eO.Provider,{value:es},y.createElement(el.Group,{target:w},y.createElement(en,{force:!1},y.createElement(eu,{slot:ec,name:"Dialog.Description"},y.createElement(X,{initialFocus:d,containers:Z,features:G?(0,W.E)(Y?"parent":"leaf",{parent:X.features.RestoreFocus,leaf:X.features.All&~X.features.FocusLock}):X.features.None},y.createElement(K,null,(0,N.sY)({ourProps:ed,theirProps:p,slot:ec,defaultTag:"div",features:eD,visible:0===P,name:"Dialog"}))))))))),y.createElement(J,null))}),{Backdrop:(0,N.yV)(function(e,t){let n=em(),{id:r="headlessui-dialog-backdrop-".concat(n),...o}=e,[{dialogState:i},a]=eA("Dialog.Backdrop"),l=(0,A.T)(t);(0,y.useEffect)(()=>{if(null===a.panelRef.current)throw Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[a.panelRef]);let u=(0,y.useMemo)(()=>({open:0===i}),[i]);return y.createElement(en,{force:!0},y.createElement(el,null,(0,N.sY)({ourProps:{ref:l,id:r,"aria-hidden":!0},theirProps:o,slot:u,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,N.yV)(function(e,t){let n=em(),{id:r="headlessui-dialog-panel-".concat(n),...o}=e,[{dialogState:i},a]=eA("Dialog.Panel"),l=(0,A.T)(t,a.panelRef),u=(0,y.useMemo)(()=>({open:0===i}),[i]),s=(0,T.z)(e=>{e.stopPropagation()});return(0,N.sY)({ourProps:{ref:l,id:r,onClick:s},theirProps:o,slot:u,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,N.yV)(function(e,t){let n=em(),{id:r="headlessui-dialog-overlay-".concat(n),...o}=e,[{dialogState:i,close:a}]=eA("Dialog.Overlay"),l=(0,A.T)(t),u=(0,T.z)(e=>{if(e.target===e.currentTarget){if(function(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}(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),a()}}),s=(0,y.useMemo)(()=>({open:0===i}),[i]);return(0,N.sY)({ourProps:{ref:l,id:r,"aria-hidden":!0,onClick:u},theirProps:o,slot:s,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,N.yV)(function(e,t){let n=em(),{id:r="headlessui-dialog-title-".concat(n),...o}=e,[{dialogState:i,setTitleId:a}]=eA("Dialog.Title"),l=(0,A.T)(t);(0,y.useEffect)(()=>(a(r),()=>a(null)),[r,a]);let u=(0,y.useMemo)(()=>({open:0===i}),[i]);return(0,N.sY)({ourProps:{ref:l,id:r},theirProps:o,slot:u,defaultTag:"h2",name:"Dialog.Title"})}),Description:eS})},902:function(e,t,n){var r=n(8803);let o=r.forwardRef(function(e,t){let{title:n,titleId:o,...i}=e;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:t,"aria-labelledby":o},i),n?r.createElement("title",{id:o},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});t.Z=o},7532:function(e,t,n){n.d(t,{R:function(){return g},m:function(){return m}});var r,o,i,a,l,u=n(9952),s=n(3076),c=n(5568),d=n(6276),f=n(565),h=n(7191),p=n(6482),v=n(8015),m=(r=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,l=new WeakSet,class extends p.F{setOptions(e){this.options={...(0,u._)(this,o),...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){(0,u._)(this,r).includes(e)||((0,u._)(this,r).push(e),this.clearGcTimeout(),(0,u._)(this,i).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){(0,c._)(this,r,(0,u._)(this,r).filter(t=>t!==e)),this.scheduleGc(),(0,u._)(this,i).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){(0,u._)(this,r).length||("pending"===this.state.status?this.scheduleGc():(0,u._)(this,i).remove(this))}continue(){var e,t;return null!==(t=null===(e=(0,u._)(this,a))||void 0===e?void 0:e.continue())&&void 0!==t?t:this.execute(this.state.variables)}async execute(e){var t,n,r,o,s,f,h,p,m,g,y,w,E,T,_,M,k,S,P,L;let x="pending"===this.state.status;try{if(!x){(0,d._)(this,l,b).call(this,{type:"pending",variables:e}),await (null===(m=(g=(0,u._)(this,i).config).onMutate)||void 0===m?void 0:m.call(g,e,this));let t=await (null===(y=(w=this.options).onMutate)||void 0===y?void 0:y.call(w,e));t!==this.state.context&&(0,d._)(this,l,b).call(this,{type:"pending",context:t,variables:e})}let E=await (()=>{var t;return(0,c._)(this,a,(0,v.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{(0,d._)(this,l,b).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{(0,d._)(this,l,b).call(this,{type:"pause"})},onContinue:()=>{(0,d._)(this,l,b).call(this,{type:"continue"})},retry:null!==(t=this.options.retry)&&void 0!==t?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),(0,u._)(this,a).promise})();return await (null===(t=(n=(0,u._)(this,i).config).onSuccess)||void 0===t?void 0:t.call(n,E,e,this.state.context,this)),await (null===(r=(o=this.options).onSuccess)||void 0===r?void 0:r.call(o,E,e,this.state.context)),await (null===(s=(f=(0,u._)(this,i).config).onSettled)||void 0===s?void 0:s.call(f,E,null,this.state.variables,this.state.context,this)),await (null===(h=(p=this.options).onSettled)||void 0===h?void 0:h.call(p,E,null,e,this.state.context)),(0,d._)(this,l,b).call(this,{type:"success",data:E}),E}catch(t){try{throw await (null===(E=(T=(0,u._)(this,i).config).onError)||void 0===E?void 0:E.call(T,t,e,this.state.context,this)),await (null===(_=(M=this.options).onError)||void 0===_?void 0:_.call(M,t,e,this.state.context)),await (null===(k=(S=(0,u._)(this,i).config).onSettled)||void 0===k?void 0:k.call(S,void 0,t,this.state.variables,this.state.context,this)),await (null===(P=(L=this.options).onSettled)||void 0===P?void 0:P.call(L,void 0,t,e,this.state.context)),t}finally{(0,d._)(this,l,b).call(this,{type:"error",error:t})}}}constructor(e){super(),(0,f._)(this,l),(0,s._)(this,r,{writable:!0,value:void 0}),(0,s._)(this,o,{writable:!0,value:void 0}),(0,s._)(this,i,{writable:!0,value:void 0}),(0,s._)(this,a,{writable:!0,value:void 0}),this.mutationId=e.mutationId,(0,c._)(this,o,e.defaultOptions),(0,c._)(this,i,e.mutationCache),(0,c._)(this,r,[]),this.state=e.state||g(),this.setOptions(e.options),this.scheduleGc()}});function g(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}function b(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,v.Kw)(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),h.V.batch(()=>{(0,u._)(this,r).forEach(t=>{t.onMutationUpdate(e)}),(0,u._)(this,i).notify({mutation:this,type:"updated",action:e})})}},6482:function(e,t,n){n.d(t,{F:function(){return u}});var r,o=n(9952),i=n(3076),a=n(5568),l=n(3295),u=(r=new WeakMap,class{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,l.PN)(this.gcTime)&&(0,a._)(this,r,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,null!=e?e:l.sk?1/0:3e5)}clearGcTimeout(){(0,o._)(this,r)&&(clearTimeout((0,o._)(this,r)),(0,a._)(this,r,void 0))}constructor(){(0,i._)(this,r,{writable:!0,value:void 0})}})},2514:function(e,t,n){n.d(t,{D:function(){return M}});var r,o,i,a,l,u,s=n(8803),c=n(9952),d=n(3076),f=n(5568),h=n(6276),p=n(565),v=n(7532),m=n(7191),g=n(5798),b=n(3295),y=(r=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,l=new WeakSet,u=new WeakSet,class extends g.l{bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let n=this.options;this.options=(0,c._)(this,r).defaultMutationOptions(e),(0,b.VS)(n,this.options)||(0,c._)(this,r).getMutationCache().notify({type:"observerOptionsUpdated",mutation:(0,c._)(this,i),observer:this}),null===(t=(0,c._)(this,i))||void 0===t||t.setOptions(this.options),(null==n?void 0:n.mutationKey)&&this.options.mutationKey&&(0,b.Ym)(n.mutationKey)!==(0,b.Ym)(this.options.mutationKey)&&this.reset()}onUnsubscribe(){if(!this.hasListeners()){var e;null===(e=(0,c._)(this,i))||void 0===e||e.removeObserver(this)}}onMutationUpdate(e){(0,h._)(this,l,w).call(this),(0,h._)(this,u,E).call(this,e)}getCurrentResult(){return(0,c._)(this,o)}reset(){var e;null===(e=(0,c._)(this,i))||void 0===e||e.removeObserver(this),(0,f._)(this,i,void 0),(0,h._)(this,l,w).call(this),(0,h._)(this,u,E).call(this)}mutate(e,t){var n;return(0,f._)(this,a,t),null===(n=(0,c._)(this,i))||void 0===n||n.removeObserver(this),(0,f._)(this,i,(0,c._)(this,r).getMutationCache().build((0,c._)(this,r),this.options)),(0,c._)(this,i).addObserver(this),(0,c._)(this,i).execute(e)}constructor(e,t){super(),(0,p._)(this,l),(0,p._)(this,u),(0,d._)(this,r,{writable:!0,value:void 0}),(0,d._)(this,o,{writable:!0,value:void 0}),(0,d._)(this,i,{writable:!0,value:void 0}),(0,d._)(this,a,{writable:!0,value:void 0}),(0,f._)(this,o,void 0),(0,f._)(this,r,e),this.setOptions(t),this.bindMethods(),(0,h._)(this,l,w).call(this)}});function w(){var e,t;let n=null!==(t=null===(e=(0,c._)(this,i))||void 0===e?void 0:e.state)&&void 0!==t?t:(0,v.R)();(0,f._)(this,o,{...n,isPending:"pending"===n.status,isSuccess:"success"===n.status,isError:"error"===n.status,isIdle:"idle"===n.status,mutate:this.mutate,reset:this.reset})}function E(e){m.V.batch(()=>{if((0,c._)(this,a)&&this.hasListeners()){var t,n,r,i,l,u,s,d;let f=(0,c._)(this,o).variables,h=(0,c._)(this,o).context;(null==e?void 0:e.type)==="success"?(null===(t=(n=(0,c._)(this,a)).onSuccess)||void 0===t||t.call(n,e.data,f,h),null===(r=(i=(0,c._)(this,a)).onSettled)||void 0===r||r.call(i,e.data,null,f,h)):(null==e?void 0:e.type)==="error"&&(null===(l=(u=(0,c._)(this,a)).onError)||void 0===l||l.call(u,e.error,f,h),null===(s=(d=(0,c._)(this,a)).onSettled)||void 0===s||s.call(d,void 0,e.error,f,h))}this.listeners.forEach(e=>{e((0,c._)(this,o))})})}var T=n(5982),_=n(1728);function M(e,t){let n=(0,T.NL)(t),[r]=s.useState(()=>new y(n,e));s.useEffect(()=>{r.setOptions(e)},[r,e]);let o=s.useSyncExternalStore(s.useCallback(e=>r.subscribe(m.V.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=s.useCallback((e,t)=>{r.mutate(e,t).catch(k)},[r]);if(o.error&&(0,_.L)(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function k(){}}}]);