!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(e,r,n){var o;return o=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(r,"string"),(r="symbol"==t(o)?o:String(o))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,c,i,u=[],a=!0,l=!1;try{if(c=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;a=!1}else for(;!(a=(n=c.call(r)).done)&&(u.push(n.value),u.length!==e);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy-DF2p3puw.js"],(function(t,e){"use strict";var n;return{setters:[function(t){n=t.r}],execute:function(){var e=function(t){var e,r,c=t.isOpen,i=t.onClosed,u=t.onOpenStart,a=t.onCloseStart,l=n.useRef(null),f=o(n.useState("closed"),2),s=f[0],b=f[1],p=(e=c,r=n.useRef(e),n.useEffect((function(){r.current=e}),[e]),r.current),y=o(n.useState(!1),2),d=y[0],m=y[1];n.useEffect((function(){if("closed"===s&&c){m(!0);var t=setTimeout((function(){var t=l.current;t&&(t.showModal(),u(t),document.body.style.overflow="hidden",b("open"))}),0);return function(){return clearTimeout(t)}}}),[s,c,u,p]);var v=n.useCallback((function(){var t=l.current;if(t){b("closing"),a(t);l.current.addEventListener("transitionend",(function t(){var e=l.current;e&&(document.body.style.overflow="auto",b("closed"),e.close(),i(),e.removeEventListener("transitionend",t),m(!1))}),{once:!0})}}),[a,i]);n.useEffect((function(){"open"===s&&!c&&v()}),[s,c,p,v]);var O=n.useCallback((function(t){t.target===l.current&&v()}),[v]),g=n.useCallback((function(t){t.preventDefault(),v()}),[v]);return{dialogProps:{ref:l,onClick:O,onCancel:g},mountDialog:d}};t("u",(function(t){return r(r({},e(r(r({},t),{},{onOpenStart:function(e){e.classList.add("backdrop:opacity-25"),e.classList.remove("backdrop:opacity-0"),t.onOpenStart(e)},onCloseStart:function(e){e.classList.add("backdrop:opacity-0"),e.classList.remove("backdrop:opacity-25"),t.onCloseStart(e)}}))),{},{dialogClassName:"backdrop:bg-theme-backdrop backdrop:opacity-0 backdrop:transition-opacity backdrop:duration-200"})})),t("c",(function(t){return function(){var e=o(n.useState(!1),2),r=e[0],c=e[1],i=n.useCallback((function(){c(!0)}),[]),u=n.useCallback((function(){c(!1)}),[]),a=n.useMemo((function(){return{close:u,isOpen:r,onClosed:u}}),[u,r]);return[t,a,i,r,u]}}))}}}))}();
