PluginProbe ʕ •ᴥ•ʔ
GiveWP – Donation Plugin and Fundraising Platform / 3.22.1
GiveWP – Donation Plugin and Fundraising Platform v3.22.1
4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 2.32.0 2.33.0 2.33.1 2.33.2 2.33.3 2.33.4 2.33.5 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.5.0 2.5.1 2.5.10 2.5.11 2.5.12 2.5.13 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.8.0 2.8.1 2.9.0 2.9.1 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.10.0 3.11.0 3.12.0 3.12.1 3.12.2 3.12.3 3.13.0 3.14.0 3.14.1 3.14.2 3.15.0 3.15.1 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.16.5 3.17.0 3.17.1 3.17.2 3.18.0 3.19.0 3.19.1 3.19.2 3.19.3 3.19.4 3.2.0 3.2.1 3.2.2 3.20.0 3.21.0 3.21.1 3.22.0 3.22.1 3.22.2 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 3.6.0 3.6.1 3.6.2 3.7.0 3.8.0 3.9.0 4.0.0 4.1.0 4.1.1 4.10.0 4.10.1 4.11.0 4.12.0 4.13.0 4.13.1 4.13.2 4.14.0 4.14.1 4.14.2 4.14.3 4.14.4 4.14.5 4.14.6 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.1 4.7.0 4.7.1 4.8.0 4.8.1 4.9.0 trunk 1.9.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.10.0 2.10.1 2.10.2 2.10.3 2.10.4 2.11.0 2.11.1 2.11.2 2.11.3 2.12.0 2.12.1 2.12.2 2.12.3 2.13.0 2.13.1 2.13.2 2.13.3 2.13.4 2.14.0 2.15.0 2.16.0 2.16.1 2.17.0 2.17.1 2.17.3 2.18.0 2.18.1 2.19.1 2.19.2 2.19.3 2.19.4 2.19.5 2.19.6 2.19.7 2.19.8 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.20.0 2.20.1 2.20.2 2.21.0 2.21.1 2.21.2 2.21.3 2.21.4 2.22.0 2.22.1 2.22.2 2.22.3 2.23.0 2.23.1 2.23.2 2.24.0 2.24.1 2.24.2 2.25.0 2.25.1 2.25.2 2.25.3 2.26.0 2.27.0 2.27.1 2.27.2 2.27.3 2.28.0 2.29.0 2.29.1 2.29.2
give / build / donationFormBlockApp.js
give / build Last commit date
DonationForms 2 years ago EventTickets 2 years ago fonts 2 years ago images 2 years ago adminBlocks.asset.php 1 year ago adminBlocks.css 2 years ago adminBlocks.js 1 year ago baseFormDesignCss.asset.php 1 year ago baseFormDesignCss.css 1 year ago baseFormDesignCss.js 2 years ago classicFormDesignCss.asset.php 1 year ago classicFormDesignCss.css 1 year ago classicFormDesignCss.js 2 years ago classicFormDesignJs.asset.php 2 years ago classicFormDesignJs.js 2 years ago donationConfirmationReceiptApp.asset.php 1 year ago donationConfirmationReceiptApp.js 1 year ago donationFormApp.asset.php 1 year ago donationFormApp.css 2 years ago donationFormApp.js 1 year ago donationFormBlock.asset.php 1 year ago donationFormBlock.css 2 years ago donationFormBlock.js 1 year ago donationFormBlockApp.asset.php 1 year ago donationFormBlockApp.css 1 year ago donationFormBlockApp.js 1 year ago donationFormEmbed.asset.php 1 year ago donationFormEmbed.js 1 year ago donationFormEmbedInside.asset.php 1 year ago donationFormEmbedInside.js 1 year ago donationFormRegistrars.asset.php 1 year ago donationFormRegistrars.css 1 year ago donationFormRegistrars.js 1 year ago eventTicketsBlock.asset.php 1 year ago eventTicketsBlock.css 1 year ago eventTicketsBlock.js 1 year ago eventTicketsTemplate.asset.php 1 year ago eventTicketsTemplate.css 1 year ago eventTicketsTemplate.js 1 year ago formBuilderApp.asset.php 1 year ago formBuilderApp.css 1 year ago formBuilderApp.js 1 year ago formBuilderRegistrars.asset.php 1 year ago formBuilderRegistrars.css 1 year ago formBuilderRegistrars.js 1 year ago formTaxonomySettings.asset.php 1 year ago formTaxonomySettings.js 1 year ago multiStepFormDesignCss.asset.php 2 years ago multiStepFormDesignCss.css 2 years ago multiStepFormDesignCss.js 2 years ago offlineGateway.asset.php 1 year ago offlineGateway.js 1 year ago offlineGatewayFormBuilder.asset.php 1 year ago offlineGatewayFormBuilder.css 2 years ago offlineGatewayFormBuilder.js 1 year ago payPalCommerceGateway.asset.php 1 year ago payPalCommerceGateway.js 1 year ago payPalStandardGateway.asset.php 2 years ago payPalStandardGateway.js 2 years ago stripePaymentElementFormBuilder.asset.php 2 years ago stripePaymentElementFormBuilder.css 2 years ago stripePaymentElementFormBuilder.js 2 years ago stripePaymentElementGateway.asset.php 1 year ago stripePaymentElementGateway.js 1 year ago style-adminBlocks.css 2 years ago style-formBuilderApp.css 2 years ago style-formTaxonomySettings.css 1 year ago testGateway.asset.php 2 years ago testGateway.js 2 years ago testOffsiteGateway.asset.php 2 years ago testOffsiteGateway.js 2 years ago twoPanelStepsFormLayoutCss.asset.php 1 year ago twoPanelStepsFormLayoutCss.css 1 year ago twoPanelStepsFormLayoutCss.js 2 years ago
donationFormBlockApp.js
2 lines
1 (()=>{var e={2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1063:(e,t,n)=>{"use strict";var r=n(1609),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,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}"undefined"==typeof window||void 0===window.document||window.document.createElement;void 0!==r.useSyncExternalStore&&r.useSyncExternalStore},9888:(e,t,n)=>{"use strict";n(1063)},1609:e=>{"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(1609),t=n.n(e);const r=window.wp.element,o=window.wp.i18n;var i=n(5556),a=n.n(i);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(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 u,c,d=(u=function(e){!function(t){if("undefined"!=typeof window){var n,r=0,o=!1,i=!1,a="[iFrameSizer]",s=null,l=window.requestAnimationFrame,u={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},c={},d=null,f={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){w("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},p={};window.jQuery&&((n=window.jQuery).fn?n.fn.iFrameResize||(n.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){I(n,e)})).end()}):y("","Unable to bind to jQuery, it is not fully loaded.")),e.exports=W(),window.iFrameResize=window.iFrameResize||W()}function m(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function g(e,t,n){e.addEventListener(t,n,!1)}function v(e,t,n){e.removeEventListener(t,n,!1)}function h(e){return c[e]?c[e].log:o}function b(e,t){E("log",e,t,h(e))}function y(e,t){E("info",e,t,h(e))}function w(e,t){E("warn",e,t,!0)}function E(e,t,n,r){!0===r&&"object"==typeof window.console&&console[e](function(e){return a+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}(t),n)}function T(e){function t(){n("Height"),n("Width"),F((function(){k(A),M(z),f("onResized",A)}),A,"init")}function n(e){var t=Number(c[z]["max"+e]),n=Number(c[z]["min"+e]),r=e.toLowerCase(),o=Number(A[r]);b(z,"Checking "+r+" is in range "+n+"-"+t),o<n&&(o=n,b(z,"Set "+r+" to min value")),o>t&&(o=t,b(z,"Set "+r+" to max value")),A[r]=""+o}function r(e){return D.substr(D.indexOf(":")+7+e)}function o(e,t){var n,r;n=function(){var n,r;O("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=A.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-n.top,10),offsetLeft:parseInt(r.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},p[r=t]||(p[r]=setTimeout((function(){p[r]=null,n()}),32))}function i(e){var t=e.getBoundingClientRect();return R(z),{x:Math.floor(Number(t.left)+Number(s.x)),y:Math.floor(Number(t.top)+Number(s.y))}}function l(e){var t=e?i(A.iframe):{x:0,y:0},n={x:Number(A.width)+t.x,y:Number(A.height)+t.y};b(z,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):w(z,"Unable to scroll to requested position, window.parentIFrame not found"):(s=n,u(),b(z,"--"))}function u(){!1!==f("onScroll",s)?M(z):x()}function d(e){f(e,{iframe:A.iframe,screenX:A.width,screenY:A.height,type:A.type})}function f(e,t){return P(z,e,t)}var m,h,E,T,S,I,D=e.data,A={},z=null;"[iFrameResizerChild]Ready"===D?function(){for(var e in c)O("iFrame requested init",N(e),c[e].iframe,e)}():a===(""+D).substr(0,13)&&D.substr(13).split(":")[0]in c?(T=(E=D.substr(13).split(":"))[1]?parseInt(E[1],10):0,S=c[E[0]]&&c[E[0]].iframe,I=getComputedStyle(S),A={iframe:S,id:E[0],height:T+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(I)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(I),width:E[2],type:E[3]},z=A.id,c[z]&&(c[z].loaded=!0),(h=A.type in{true:1,false:1,undefined:1})&&b(z,"Ignoring init message from meta parent page"),!h&&function(e){var t=!0;return c[e]||(t=!1,w(A.type+" No settings for "+e+". Message was: "+D)),t}(z)&&(b(z,"Received: "+D),m=!0,null===A.iframe&&(w(z,"IFrame ("+A.id+") not found"),m=!1),m&&function(){var t,n=e.origin,r=c[z]&&c[z].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var e=0,t=!1;for(b(z,"Checking connection is from allowed list of origins: "+r);e<r.length;e++)if(r[e]===n){t=!0;break}return t}():(t=c[z]&&c[z].remoteHost,b(z,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+A.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(c[z]&&c[z].firstRun&&c[z]&&(c[z].firstRun=!1),A.type){case"close":C(A.iframe);break;case"message":m=r(6),b(z,"onMessage passed: {iframe: "+A.iframe.id+", message: "+m+"}"),f("onMessage",{iframe:A.iframe,message:JSON.parse(m)}),b(z,"--");break;case"mouseenter":d("onMouseEnter");break;case"mouseleave":d("onMouseLeave");break;case"autoResize":c[z].autoResize=JSON.parse(r(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":o(c[z]&&c[z].iframe,z),function(){function e(e,r){function i(){c[n]?o(c[n].iframe,n):t()}["scroll","resize"].forEach((function(t){b(n,e+t+" listener for sendPageInfo"),r(window,t,i)}))}function t(){e("Remove ",v)}var n=z;e("Add ",g),c[n]&&(c[n].stopPageInfo=t)}();break;case"pageInfoStop":c[z]&&c[z].stopPageInfo&&(c[z].stopPageInfo(),delete c[z].stopPageInfo);break;case"inPageLink":n=r(9).split("#")[1]||"",a=decodeURIComponent(n),(p=document.getElementById(a)||document.getElementsByName(a)[0])?(e=i(p),b(z,"Moving to in page link (#"+n+") at x: "+e.x+" y: "+e.y),s={x:e.x,y:e.y},u(),b(z,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):b(z,"In page link #"+n+" not found and window.parentIFrame not found"):b(z,"In page link #"+n+" not found");break;case"reset":L(A);break;case"init":t(),f("onInit",A.iframe);break;default:t()}var e,n,a,p,m}())):y(z,"Ignored: "+D)}function P(e,t,n){var r=null,o=null;if(c[e]){if("function"!=typeof(r=c[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");o=r(n)}return o}function S(e){var t=e.id;delete c[t]}function C(e){var t=e.id;if(!1!==P(t,"onClose",t)){b(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){w(e)}P(t,"onClosed",t),b(t,"--"),S(e)}else b(t,"Close iframe cancelled by onClose event")}function R(e){null===s&&b(e,"Get page position: "+(s={x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}).x+","+s.y)}function M(e){null!==s&&(window.scrollTo(s.x,s.y),b(e,"Set page position: "+s.x+","+s.y),x())}function x(){s=null}function L(e){b(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),R(e.id),F((function(){k(e),O("reset","reset",e.iframe,e.id)}),e,"reset")}function k(e){function t(t){i||"0"!==e[t]||(i=!0,b(r,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(c).forEach((function(e){!function(e){function t(t){return"0px"===(c[e]&&c[e].iframe.style[t])}c[e]&&null!==c[e].iframe.offsetParent&&(t("height")||t("width"))&&O("Visibility change","resize",c[e].iframe,e)}(e)}))}function t(t){b("window","Mutation observed: "+t[0].target+" "+t[0].type),D(e,16)}var n,r=m();r&&(n=document.querySelector("body"),new r(t).observe(n,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",b(e.id,"IFrame ("+r+") "+t+" set to "+e[t]+"px")):b("undefined","messageData id not set")}(n),t(n)}var r=e.iframe.id;c[r]&&(c[r].sizeHeight&&n("height"),c[r].sizeWidth&&n("width"))}function F(e,t,n){n!==t.type&&l&&!window.jasmine?(b(t.id,"Requesting animation frame"),l(e)):e()}function O(e,t,n,r,o){var i,s=!1;r=r||n.id,c[r]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(i=c[r]&&c[r].targetOrigin,b(r,"["+e+"] Sending msg to iframe["+r+"] ("+t+") targetOrigin: "+i),n.contentWindow.postMessage(a+t,i)):w(r,"["+e+"] IFrame("+r+") not found"),o&&c[r]&&c[r].warningTimeout&&(c[r].msgTimeout=setTimeout((function(){!c[r]||c[r].loaded||s||(s=!0,w(r,"IFrame has not responded within "+c[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),c[r].warningTimeout)))}function N(e){return e+":"+c[e].bodyMarginV1+":"+c[e].sizeWidth+":"+c[e].log+":"+c[e].interval+":"+c[e].enablePublicMethods+":"+c[e].autoResize+":"+c[e].bodyMargin+":"+c[e].heightCalculationMethod+":"+c[e].bodyBackground+":"+c[e].bodyPadding+":"+c[e].tolerance+":"+c[e].inPageLinks+":"+c[e].resizeFrom+":"+c[e].widthCalculationMethod}function I(e,n){function i(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],w(a,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var a=function(t){var i;return""===t&&(e.id=(i=n&&n.id||f.id+r++,null!==document.getElementById(i)&&(i+=r++),t=i),o=(n||{}).log,b(t,"Added missing iframe ID: "+t+" ("+e.src+")")),t}(e.id);a in c&&"iFrameResizer"in e?w(a,"Ignored iFrame, already setup."):(function(t){var n;t=t||{},c[a]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(i,t),function(e){for(var t in f)Object.prototype.hasOwnProperty.call(f,t)&&(c[a][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:f[t])}(t),c[a]&&(c[a].targetOrigin=!0===c[a].checkOrigin?""===(n=c[a].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(n),function(){switch(b(a,"IFrame scrolling "+(c[a]&&c[a].scrolling?"enabled":"disabled")+" for "+a),e.style.overflow=!1===(c[a]&&c[a].scrolling)?"hidden":"auto",c[a]&&c[a].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=c[a]?c[a].scrolling:"no"}}(),function(){function t(t){1/0!==c[a][t]&&0!==c[a][t]&&(e.style[t]=c[a][t]+"px",b(a,"Set "+t+" = "+c[a][t]+"px"))}function n(e){if(c[a]["min"+e]>c[a]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(c[a]&&c[a].bodyMargin)&&"0"!==(c[a]&&c[a].bodyMargin)||(c[a].bodyMarginV1=c[a].bodyMargin,c[a].bodyMargin=c[a].bodyMargin+"px"),function(n){var r=m();r&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&C(e)}))}))})).observe(e.parentNode,{childList:!0})}(r),g(e,"load",(function(){var r,o;O("iFrame.onload",n,e,t,!0),r=c[a]&&c[a].firstRun,o=c[a]&&c[a].heightCalculationMethod in u,!r&&o&&L({iframe:e,height:0,width:0,type:"init"})})),O("init",n,e,t,!0)}(N(a)),c[a]&&(c[a].iframe.iFrameResizer={close:C.bind(null,c[a].iframe),removeListeners:S.bind(null,c[a].iframe),resize:O.bind(null,"Window resize","resize",c[a].iframe),moveToAnchor:function(e){O("Move to anchor","moveToAnchor:"+e,c[a].iframe,a)},sendMessage:function(e){O("Send Message","message:"+(e=JSON.stringify(e)),c[a].iframe,a)}}))}function D(e,t){null===d&&(d=setTimeout((function(){d=null,e()}),t))}function A(){"hidden"!==document.visibilityState&&(b("document","Trigger event: Visiblity change"),D((function(){z("Tab Visable","resize")}),16))}function z(e,t){Object.keys(c).forEach((function(n){(function(e){return c[e]&&"parent"===c[e].resizeFrom&&c[e].autoResize&&!c[e].firstRun})(n)&&O(e,t,c[n].iframe,n)}))}function W(){function e(e,t){t&&(function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}(),I(t,e),n.push(t))}var n;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!l;e+=1)l=window[t[e]+"RequestAnimationFrame"];l?l=l.bind(window):b("setup","RequestAnimationFrame not supported")}(),g(window,"message",T),g(window,"resize",(function(){b("window","Trigger event: resize"),D((function(){z("Window resize","resize")}),16)})),g(document,"visibilitychange",A),g(document,"-webkit-visibilitychange",A),function(r,o){switch(n=[],function(e){e&&e.enablePublicMethods&&w("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(r),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),e.bind(t,r));break;case"object":e(r,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return n}}}()},u(c={exports:{}}),c.exports),f=function(){},p=function(n){var r=n.title,o=n.forwardRef,i=l(n,["title","forwardRef"]),a=function(e){return e.autoResize,e.bodyBackground,e.bodyMargin,e.bodyPadding,e.checkOrigin,e.inPageLinks,e.heightCalculationMethod,e.interval,e.log,e.maxHeight,e.maxWidth,e.minHeight,e.minWidth,e.resizeFrom,e.scrolling,e.sizeHeight,e.sizeWidth,e.warningTimeout,e.tolerance,e.widthCalculationMethod,e.onClosed,e.onInit,e.onMessage,e.onMouseEnter,e.onMouseLeave,e.onResized,l(e,["autoResize","bodyBackground","bodyMargin","bodyPadding","checkOrigin","inPageLinks","heightCalculationMethod","interval","log","maxHeight","maxWidth","minHeight","minWidth","resizeFrom","scrolling","sizeHeight","sizeWidth","warningTimeout","tolerance","widthCalculationMethod","onClosed","onInit","onMessage","onMouseEnter","onMouseLeave","onResized"])}(i),u=(0,e.useRef)(null),c=function(){return f(!u.current,"[iframeSizerReact]["+(u&&u.current&&u.current.id)+"] Close event ignored, to remove the iframe update your React component"),!u.current};return(0,e.useEffect)((function(){var e=u.current;return d(s({},i,{onClose:c}),e),function(){return e.iFrameResizer&&e.iFrameResizer.removeListeners()}}),[]),(0,e.useImperativeHandle)(o,(function(){return{resize:function(){return u.current.iFrameResizer.resize()},moveToAnchor:function(e){return u.current.iFrameResizer.moveToAnchor(e)},sendMessage:function(e,t){u.current.iFrameResizer.sendMessage(e,t)}}})),t().createElement("iframe",s({title:r},a,{ref:u}))};p.defaultProps={title:"iframe"},p.propTypes={title:a().string};const m=p,g={prefix:String(Math.round(1e10*Math.random())),current:0,isSSR:!1},v=e.createContext(g);let h=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),b=new WeakMap;const y="function"==typeof e.useId?function(t){let n=e.useId(),[r]=(0,e.useState)(P());return t||`${r?"react-aria":`react-aria${g.prefix}`}-${n}`}:function(t){let n=(0,e.useContext)(v);n!==g||h||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=function(t=!1){let n=(0,e.useContext)(v),r=(0,e.useRef)(null);if(null===r.current&&!t){var o,i;let t=null===(o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===o||null===(i=o.ReactCurrentOwner)||void 0===i?void 0:i.current;if(t){let e=b.get(t);null==e?b.set(t,{id:n.current,state:t.memoizedState}):t.memoizedState!==e.state&&(n.current=e.id,b.delete(t))}r.current=++n.current}return r.current}(!!t),o=`react-aria${n.prefix}`;return t||`${o}-${r}`};function w(){return!1}function E(){return!0}function T(e){return()=>{}}function P(){return"function"==typeof e.useSyncExternalStore?e.useSyncExternalStore(T,w,E):(0,e.useContext)(v).isSSR}function S(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=S(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const C=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=S(e))&&(r&&(r+=" "),r+=t);return r},R="undefined"!=typeof document?e.useLayoutEffect:()=>{};let M=new Map;function x(t){let[n,r]=(0,e.useState)(t),o=(0,e.useRef)(null),i=y(n),a=(0,e.useCallback)((e=>{o.current=e}),[]);return M.set(i,a),R((()=>{let e=i;return()=>{M.delete(e)}}),[i]),(0,e.useEffect)((()=>{let e=o.current;e&&(o.current=null,r(e))})),i}function L(e,t){if(e===t)return e;let n=M.get(e);if(n)return n(t),t;let r=M.get(t);return r?(r(e),e):t}function k(t=[]){let n=x(),[r,o]=function(t){let[n,r]=(0,e.useState)(t),o=(0,e.useRef)(n),i=(0,e.useRef)(null),a=(0,e.useCallback)((()=>{let e=i.current.next();for(;!e.done&&o.current===e.value;)e=i.current.next();e.done?i.current=null:(r(e.value),o.current=e.value)}),[r,o,i]);R((()=>{i.current&&a()}));let s=(0,e.useCallback)((e=>{i.current=e(o.current),a()}),[a,i,o]);return[n,s]}(n),i=(0,e.useCallback)((()=>{o((function*(){yield n,yield document.getElementById(n)?n:void 0}))}),[n,o]);return R(i,[n,i,...t]),r}function F(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function O(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=F(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=L(n,o):t[e]=void 0!==o?o:n:t[e]=C(n,o)}}return t}function N(...e){return 1===e.length?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}const I=new Set(["id"]),D=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),A=/^(data-.*)$/;function z(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(I.has(t)||n&&D.has(t)||(null==r?void 0:r.has(t))||A.test(t))&&(o[t]=e[t]);return o}function W(e){if(function(){if(null==H){H=!1;try{document.createElement("div").focus({get preventScroll(){return H=!0,!0}})}catch(e){}}return H}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let H=null,B=new Map,_=new Set;function K(){if("undefined"==typeof window)return;let e=t=>{let n=B.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),B.delete(t.target)),0===B.size)){for(let e of _)e();_.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=B.get(t.target);n||(n=new Set,B.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function U(e){requestAnimationFrame((()=>{0===B.size?e():_.add(e)}))}function j(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=x(n),o&&r){let e=new Set([n,...o.trim().split(/\s+/)]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return r||o||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function V(t){const n=(0,e.useRef)();return(0,e.useMemo)((()=>({get current(){return n.current},set current(e){n.current=e,"function"==typeof t?t(e):t&&(t.current=e)}})),[t])}function q(e,t){R((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function $(e){for(Y(e)&&(e=e.parentElement);e&&!Y(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Y(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}"undefined"!=typeof document&&("loading"!==document.readyState?K():document.addEventListener("DOMContentLoaded",K));let G="undefined"!=typeof document&&window.visualViewport;function X(){return{width:(null==G?void 0:G.width)||window.innerWidth,height:(null==G?void 0:G.height)||window.innerHeight}}function J(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Q(){return J(/^Mac/i)}function Z(){return J(/^iPhone/i)||J(/^iPad/i)||Q()&&navigator.maxTouchPoints>1}function ee(t){const n=(0,e.useRef)(null);return R((()=>{n.current=t}),[t]),(0,e.useCallback)(((...e)=>(0,n.current)(...e)),[])}function te(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}function ne(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function re(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,ne(e,t,"set"),n),n}new Map;let oe="default",ie="",ae=new WeakMap;function se(e){Z()?("default"===oe&&(ie=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),oe="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(ae.set(e,e.style.userSelect),e.style.userSelect="none")}function le(e){if(Z()){if("disabled"!==oe)return;oe="restoring",setTimeout((()=>{U((()=>{"restoring"===oe&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=ie||""),ie="",oe="default")}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ae.has(e)){let t=ae.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),ae.delete(e)}}const ue=e.createContext(null);ue.displayName="PressResponderContext";var ce=new WeakMap;class de{continuePropagation(){re(this,ce,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(this,ne(this,ce,"get"))}constructor(e,t,n){var r,o,i;i={writable:!0,value:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=this,o=ce),o.set(r,i),re(this,ce,!0),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}function fe(t){let{onPress:n,onPressChange:r,onPressStart:o,onPressEnd:i,onPressUp:a,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=function(t){let n=(0,e.useContext)(ue);if(n){let{register:e,...r}=n;t=O(r,t),e()}return q(n,t.ref),t}(t),[m,g]=(0,e.useState)(!1),v=(0,e.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:h,removeAllGlobalListeners:b}=function(){let t=(0,e.useRef)(new Map),n=(0,e.useCallback)(((e,n,r,o)=>{let i=(null==o?void 0:o.once)?(...e)=>{t.current.delete(r),r(...e)}:r;t.current.set(r,{type:n,eventTarget:e,fn:i,options:o}),e.addEventListener(n,r,o)}),[]),r=(0,e.useCallback)(((e,n,r,o)=>{var i;let a=(null===(i=t.current.get(r))||void 0===i?void 0:i.fn)||r;e.removeEventListener(n,a,o),t.current.delete(r)}),[]),o=(0,e.useCallback)((()=>{t.current.forEach(((e,t)=>{r(e.eventTarget,e.type,t,e.options)}))}),[r]);return(0,e.useEffect)((()=>o),[o]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:o}}(),y=ee(((e,t)=>{let n=v.current;if(s||n.didFirePressStart)return;let i=!0;if(o){let n=new de("pressstart",t,e);o(n),i=n.shouldStopPropagation}return r&&r(!0),n.didFirePressStart=!0,g(!0),i})),w=ee(((e,t,o=!0)=>{let a=v.current;if(!a.didFirePressStart)return;a.ignoreClickAfterPress=!0,a.didFirePressStart=!1;let l=!0;if(i){let n=new de("pressend",t,e);i(n),l=n.shouldStopPropagation}if(r&&r(!1),g(!1),n&&o&&!s){let r=new de("press",t,e);n(r),l&&(l=r.shouldStopPropagation)}return l})),E=ee(((e,t)=>{if(!s){if(a){let n=new de("pressup",t,e);return a(n),n.shouldStopPropagation}return!0}})),T=ee((e=>{let t=v.current;t.isPressed&&(t.isOverTarget&&w(ve(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,b(),d||le(t.target))})),P=ee((e=>{c&&T(e)})),S=(0,e.useMemo)((()=>{let e=v.current,t={onKeyDown(t){if(me(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){ye(t.target,t.key)&&t.preventDefault();let r=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,r=y(t,"keyboard"),h(document,"keyup",n,!1)),r&&t.stopPropagation()}else"Enter"===t.key&&pe(t.currentTarget)&&t.stopPropagation()},onKeyUp(t){me(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target)&&E(ve(e.target,t),"keyboard")},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button){let n=!0;if(s&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&("virtual"===e.pointerType||te(t.nativeEvent))){s||u||W(t.currentTarget);let e=y(t,"virtual"),r=E(t,"virtual"),o=w(t,"virtual");n=e&&r&&o}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&me(t,e.target)){ye(t.target,t.key)&&t.preventDefault(),e.isPressed=!1;let n=t.target,r=w(ve(e.target,t),"keyboard",e.target.contains(n));b(),r&&t.stopPropagation(),e.target instanceof HTMLElement&&e.target.contains(n)&&(pe(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(0===(i=t.nativeEvent).width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType)return void(e.pointerType="virtual");var i;be(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let a=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,s||u||W(t.currentTarget),d||se(e.target),a=y(t,e.pointerType),h(document,"pointermove",n,!1),h(document,"pointerup",r,!1),h(document,"pointercancel",o,!1)),a&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(be(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&he(t,t.currentTarget)&&E(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(he(t,e.target)?e.isOverTarget||(e.isOverTarget=!0,y(ve(e.target,t),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,w(ve(e.target,t),e.pointerType,!1),P(t)))},r=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(he(t,e.target)?w(ve(e.target,t),e.pointerType):e.isOverTarget&&w(ve(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,b(),d||le(e.target))},o=e=>{T(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&T(e)}}else{t.onMouseDown=t=>{0===t.button&&t.currentTarget.contains(t.target)&&(be(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents?t.stopPropagation():(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=te(t.nativeEvent)?"virtual":"mouse",s||u||W(t.currentTarget),y(t,e.pointerType)&&t.stopPropagation(),h(document,"mouseup",n,!1)))},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,n=y(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,n=w(t,e.pointerType,!1),P(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||E(t,e.pointerType))};let n=t=>{0===t.button&&(e.isPressed=!1,b(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(he(t,e.target)?w(ve(e.target,t),e.pointerType):e.isOverTarget&&w(ve(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",s||u||W(t.currentTarget),d||se(e.target),y(t,e.pointerType)&&t.stopPropagation(),h(window,"scroll",r,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=ge(t.nativeEvent,e.activePointerId),r=!0;n&&he(n,t.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,r=y(t,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,r=w(t,e.pointerType,!1),P(t)),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=ge(t.nativeEvent,e.activePointerId),r=!0;n&&he(n,t.currentTarget)?(E(t,e.pointerType),r=w(t,e.pointerType)):e.isOverTarget&&(r=w(t,e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,d||le(e.target),b()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&T(t))};let r=t=>{e.isPressed&&t.target.contains(e.target)&&T({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&T(e)}}return t}),[h,s,u,b,d,T,P,w,y,E]);return(0,e.useEffect)((()=>()=>{d||le(v.current.target)}),[d]),{isPressed:l||m,pressProps:O(p,S)}}function pe(e){return"A"===e.tagName&&e.hasAttribute("href")}function me(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==r||o instanceof HTMLInputElement&&!Ee(o,n)||o instanceof HTMLTextAreaElement||o.isContentEditable||pe(o)&&("button"!==i||"Enter"===n)||"link"===i&&"Enter"!==n)}function ge(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function ve(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function he(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return i=r,!((o=n).left>i.right||i.left>o.right||o.top>i.bottom||i.top>o.bottom);var o,i}function be(e){return!(e instanceof HTMLElement&&e.draggable)}function ye(e,t){return e instanceof HTMLInputElement?!Ee(e,t):!(e instanceof HTMLButtonElement)||"submit"!==e.type&&"reset"!==e.type}const we=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ee(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:we.has(e.type)}class Te{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 Pe(t){let n=(0,e.useRef)({isFocused:!1,observer:null});R((()=>{const e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let r=ee((e=>{null==t||t(e)}));return(0,e.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){n.current.isFocused=!0;let t=e.target,o=e=>{n.current.isFocused=!1,t.disabled&&r(new Te("blur",e)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};t.addEventListener("focusout",o,{once:!0}),n.current.observer=new MutationObserver((()=>{if(n.current.isFocused&&t.disabled){n.current.observer.disconnect();let e=t===document.activeElement?null:document.activeElement;t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}})),n.current.observer.observe(t,{attributes:!0,attributeFilter:["disabled"]})}}),[r])}function Se(t){let{isDisabled:n,onFocus:r,onBlur:o,onFocusChange:i}=t;const a=(0,e.useCallback)((e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0}),[o,i]),s=Pe(a),l=(0,e.useCallback)((e=>{e.target===e.currentTarget&&document.activeElement===e.target&&(r&&r(e),i&&i(!0),s(e))}),[i,r,s]);return{focusProps:{onFocus:!n&&(r||i||o)?l:void 0,onBlur:n||!o&&!i?void 0:a}}}let Ce=null,Re=new Set,Me=!1,xe=!1,Le=!1;const ke={Tab:!0,Escape:!0};function Fe(e,t){for(let n of Re)n(e,t)}function Oe(e){xe=!0,function(e){return!(e.metaKey||!Q()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Ce="keyboard",Fe("keyboard",e))}function Ne(e){Ce="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(xe=!0,Fe("pointer",e))}function Ie(e){te(e)&&(xe=!0,Ce="virtual")}function De(e){e.target!==window&&e.target!==document&&(xe||Le||(Ce="virtual",Fe("virtual",e)),xe=!1,Le=!1)}function Ae(){xe=!1,Le=!0}function ze(){if("undefined"==typeof window||Me)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){xe=!0,e.apply(this,arguments)},document.addEventListener("keydown",Oe,!0),document.addEventListener("keyup",Oe,!0),document.addEventListener("click",Ie,!0),window.addEventListener("focus",De,!0),window.addEventListener("blur",Ae,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Ne,!0),document.addEventListener("pointermove",Ne,!0),document.addEventListener("pointerup",Ne,!0)):(document.addEventListener("mousedown",Ne,!0),document.addEventListener("mousemove",Ne,!0),document.addEventListener("mouseup",Ne,!0)),Me=!0}function We(){return"pointer"!==Ce}function He(t){let{isDisabled:n,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:i}=t,a=(0,e.useRef)({isFocusWithin:!1}),s=(0,e.useCallback)((e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,r&&r(e),i&&i(!1))}),[r,i,a]),l=Pe(s),u=(0,e.useCallback)((e=>{a.current.isFocusWithin||document.activeElement!==e.target||(o&&o(e),i&&i(!0),a.current.isFocusWithin=!0,l(e))}),[o,i,l]);return n?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:u,onBlur:s}}}"undefined"!=typeof document&&("loading"!==document.readyState?ze():document.addEventListener("DOMContentLoaded",ze));let Be=!1,_e=0;function Ke(){Be=!0,setTimeout((()=>{Be=!1}),50)}function Ue(e){"touch"===e.pointerType&&Ke()}function je(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Ue):document.addEventListener("touchend",Ke),_e++,()=>{_e--,_e>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Ue):document.removeEventListener("touchend",Ke))}}function Ve(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1;if(e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function qe(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function $e(e){if("virtual"===Ce){let t=document.activeElement;U((()=>{document.activeElement===t&&document.contains(e)&&W(e)}))}else W(e)}function Ye(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:o}=t(e);r="none"!==n&&"hidden"!==o&&"collapse"!==o}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||Ye(e.parentElement,e))}const Ge=e.createContext(null);let Xe=null;function Je(t){let{children:n,contain:r,restoreFocus:o,autoFocus:i}=t,a=(0,e.useRef)(),s=(0,e.useRef)(),l=(0,e.useRef)([]),{parentNode:u}=(0,e.useContext)(Ge)||{},c=(0,e.useMemo)((()=>new dt({scopeRef:l})),[l]);R((()=>{let e=u||ft.root;if(ft.getTreeNode(e.scopeRef)&&Xe&&!at(Xe,e.scopeRef)){let t=ft.getTreeNode(Xe);t&&(e=t)}e.addChild(c),ft.addNode(c)}),[c,u]),R((()=>{ft.getTreeNode(l).contain=r}),[r]),R((()=>{let e=a.current.nextSibling,t=[];for(;e&&e!==s.current;)t.push(e),e=e.nextSibling;l.current=t}),[n]),function(e,t,n){R((()=>{if(t||n)return;let r=e.current,o=t=>{let n=t.target;ot(n,e.current)?Xe=e:rt(n)||(Xe=null)};return document.addEventListener("focusin",o,!1),r.forEach((e=>e.addEventListener("focusin",o,!1))),()=>{document.removeEventListener("focusin",o,!1),r.forEach((e=>e.removeEventListener("focusin",o,!1)))}}),[e,t,n])}(l,o,r),function(t,n){let r=(0,e.useRef)(),o=(0,e.useRef)(null);R((()=>{let e=t.current;if(!n)return void(o.current&&(cancelAnimationFrame(o.current),o.current=null));let i=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!nt(t))return;let n=document.activeElement,r=t.current;if(!ot(n,r))return;let o=ut(tt(r),{tabbable:!0},r);o.currentNode=n;let i=e.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),i&&st(i,!0)},a=e=>{Xe&&!at(Xe,t)||!ot(e.target,t.current)?nt(t)&&!it(e.target,t)?r.current?r.current.focus():Xe&&lt(Xe.current):nt(t)&&(r.current=e.target):(Xe=t,r.current=e.target)},s=e=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame((()=>{nt(t)&&!it(document.activeElement,t)&&(Xe=t,document.body.contains(e.target)?(r.current=e.target,r.current.focus()):Xe&&lt(Xe.current))}))};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",a,!1),e.forEach((e=>e.addEventListener("focusin",a,!1))),e.forEach((e=>e.addEventListener("focusout",s,!1))),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",a,!1),e.forEach((e=>e.removeEventListener("focusin",a,!1))),e.forEach((e=>e.removeEventListener("focusout",s,!1)))}}),[t,n]),R((()=>()=>{o.current&&cancelAnimationFrame(o.current)}),[o])}(l,r),function(t,n,r){const o=(0,e.useRef)("undefined"!=typeof document?document.activeElement:null);R((()=>{let e=t.current;if(!n||r)return;let o=()=>{Xe&&!at(Xe,t)||!ot(document.activeElement,t.current)||(Xe=t)};return document.addEventListener("focusin",o,!1),e.forEach((e=>e.addEventListener("focusin",o,!1))),()=>{document.removeEventListener("focusin",o,!1),e.forEach((e=>e.removeEventListener("focusin",o,!1)))}}),[t,r]),R((()=>{if(!n)return;let e=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!nt(t))return;let n=document.activeElement;if(!ot(n,t.current))return;let r=ft.getTreeNode(t).nodeToRestore,o=ut(document.body,{tabbable:!0});o.currentNode=n;let i=e.shiftKey?o.previousNode():o.nextNode();if(document.body.contains(r)&&r!==document.body||(r=null,ft.getTreeNode(t).nodeToRestore=null),(!i||!ot(i,t.current))&&r){o.currentNode=r;do{i=e.shiftKey?o.previousNode():o.nextNode()}while(ot(i,t.current));e.preventDefault(),e.stopPropagation(),i?st(i,!0):rt(r)?st(r,!0):n.blur()}};return r||document.addEventListener("keydown",e,!0),()=>{r||document.removeEventListener("keydown",e,!0)}}),[t,n,r]),R((()=>{if(n)return ft.getTreeNode(t).nodeToRestore=o.current,()=>{let e=ft.getTreeNode(t).nodeToRestore;if(n&&e&&(ot(document.activeElement,t.current)||document.activeElement===document.body&&function(e){let t=ft.getTreeNode(Xe);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(t))){let e=ft.clone();requestAnimationFrame((()=>{if(document.activeElement===document.body){let n=e.getTreeNode(t);for(;n;){if(n.nodeToRestore&&document.body.contains(n.nodeToRestore))return void st(n.nodeToRestore);n=n.parent}for(n=e.getTreeNode(t);n;){if(n.scopeRef&&ft.getTreeNode(n.scopeRef))return void lt(n.scopeRef.current,!0);n=n.parent}}}))}}}),[t,n])}(l,o,r),function(t,n){const r=e.useRef(n);(0,e.useEffect)((()=>{r.current&&(Xe=t,ot(document.activeElement,Xe.current)||lt(t.current)),r.current=!1}),[t])}(l,i),(0,e.useEffect)((()=>{if(l){let e=document.activeElement,t=null;if(ot(e,l.current)){for(let n of ft.traverse())ot(e,n.scopeRef.current)&&(t=n);t===ft.getTreeNode(l)&&(Xe=t.scopeRef)}return()=>{let e=ft.getTreeNode(l).parent.scopeRef;l!==Xe&&!at(l,Xe)||e&&!ft.getTreeNode(e)||(Xe=e),ft.removeTreeNode(l)}}}),[l]);let d=(0,e.useMemo)((()=>function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||document.activeElement,l=n[0].previousElementSibling,u=ut(tt(n),{tabbable:o,accept:a},n);u.currentNode=ot(s,n)?s:l;let c=u.nextNode();return!c&&i&&(u.currentNode=l,c=u.nextNode()),c&&st(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||document.activeElement,l=n[n.length-1].nextElementSibling,u=ut(tt(n),{tabbable:o,accept:a},n);u.currentNode=ot(s,n)?s:l;let c=u.previousNode();return!c&&i&&(u.currentNode=l,c=u.previousNode()),c&&st(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=ut(tt(n),{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let a=i.nextNode();return a&&st(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=ut(tt(n),{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let a=i.previousNode();return a&&st(a,!0),a}}}(l)),[]),f=(0,e.useMemo)((()=>({focusManager:d,parentNode:c})),[c,d]);return e.createElement(Ge.Provider,{value:f},e.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),n,e.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}const Qe=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Ze=Qe.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Qe.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const et=Qe.join(':not([hidden]):not([tabindex="-1"]),');function tt(e){return e[0].parentElement}function nt(e){let t=ft.getTreeNode(Xe);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function rt(e){return it(e)}function ot(e,t){return t.some((t=>t.contains(e)))}function it(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ft.traverse(ft.getTreeNode(t)))if(ot(e,n.current))return!0;return!1}function at(e,t){var n;let r=null===(n=ft.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function st(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{$e(e)}catch(e){}}function lt(e,t=!0){let n=e[0].previousElementSibling,r=ut(tt(e),{tabbable:t},e);r.currentNode=n;let o=r.nextNode();t&&!o&&(r=ut(tt(e),{tabbable:!1},e),r.currentNode=n,o=r.nextNode()),st(o)}function ut(e,t,n){let r=(null==t?void 0:t.tabbable)?et:Ze,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;return(null==t||null===(o=t.from)||void 0===o?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(r)||!Ye(e)||n&&!ot(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}class ct{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null),o=new dt({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e),n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef.current&&ot(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n.removeChild(t),r.size>0&&r.forEach((e=>n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new ct;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){this.fastMap=new Map,this.root=new dt({scopeRef:null}),this.fastMap.set(null,this.root)}}class dt{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let ft=new ct;function pt(t={}){let{autoFocus:n=!1,isTextInput:r,within:o}=t,i=(0,e.useRef)({isFocused:!1,isFocusVisible:n||We()}),[a,s]=(0,e.useState)(!1),[l,u]=(0,e.useState)((()=>i.current.isFocused&&i.current.isFocusVisible)),c=(0,e.useCallback)((()=>u(i.current.isFocused&&i.current.isFocusVisible)),[]),d=(0,e.useCallback)((e=>{i.current.isFocused=e,s(e),c()}),[c]);!function(t,n,r){ze(),(0,e.useEffect)((()=>{let e=(e,n)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!ke[n.key])})(null==r?void 0:r.isTextInput,e,n)&&t(We())};return Re.add(e),()=>{Re.delete(e)}}),n)}((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:r});let{focusProps:f}=Se({isDisabled:o,onFocusChange:d}),{focusWithinProps:p}=He({isDisabled:!o,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:o?p:f}}let mt=e.createContext(null);function gt(t,n){let{focusProps:r}=Se(t),{keyboardProps:o}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:qe(e.onKeyDown),onKeyUp:qe(e.onKeyUp)}}}(t),i=O(r,o),a=function(t){let n=(0,e.useContext)(mt)||{};q(n,t);let{ref:r,...o}=n;return o}(n),s=t.isDisabled?{}:a,l=(0,e.useRef)(t.autoFocus);return(0,e.useEffect)((()=>{l.current&&n.current&&$e(n.current),l.current=!1}),[n]),{focusableProps:O({...i,tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0},s)}}class vt{getStringForLocale(e,t){let n=this.strings[t];n||(n=function(e,t,n="en-US"){if(t[e])return t[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(t,this.strings,this.defaultLocale),this.strings[t]=n);let r=n[e];if(!r)throw new Error(`Could not find intl message ${e} in ${t} locale`);return r}constructor(e,t="en-US"){this.strings={...e},this.defaultLocale=t}}const ht=new Map,bt=new Map;class yt{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let o=this.locale+":"+n,i=ht.get(o);return i||(i=new Intl.PluralRules(this.locale,{type:n}),ht.set(o,i)),r=t[i.select(e)]||t.other,"function"==typeof r?r():r}number(e){let t=bt.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),bt.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}const wt=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Et=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Tt(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return wt.has(t)}let t=e.split("-")[0];return Et.has(t)}function Pt(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:Tt(e)?"rtl":"ltr"}}let St=Pt(),Ct=new Set;function Rt(){St=Pt();for(let e of Ct)e(St)}const Mt=e.createContext(null);function xt(){let t=function(){let t=P(),[n,r]=(0,e.useState)(St);return(0,e.useEffect)((()=>(0===Ct.size&&window.addEventListener("languagechange",Rt),Ct.add(r),()=>{Ct.delete(r),0===Ct.size&&window.removeEventListener("languagechange",Rt)})),[]),t?{locale:"en-US",direction:"ltr"}:n}();return(0,e.useContext)(Mt)||t}const Lt=new WeakMap;new Map;const kt=window.ReactDOM,Ft={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Ot(t){let{children:n,elementType:r="div",isFocusable:o,style:i,...a}=t,{visuallyHiddenProps:s}=function(t={}){let{style:n,isFocusable:r}=t,[o,i]=(0,e.useState)(!1),{focusWithinProps:a}=He({isDisabled:!r,onFocusWithinChange:e=>i(e)});return{visuallyHiddenProps:{...a,style:(0,e.useMemo)((()=>o?n:n?{...Ft,...n}:Ft),[o])}}}(t);return e.createElement(r,O(a,s),n)}function Nt(e){return e&&e.__esModule?e.default:e}"undefined"!=typeof document&&window.visualViewport,new WeakMap,"undefined"!=typeof document&&window.visualViewport;const It=[];function Dt(t,n){let{onClose:r,shouldCloseOnBlur:o,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:l}=t;(0,e.useEffect)((()=>(i&&It.push(n),()=>{let e=It.indexOf(n);e>=0&&It.splice(e,1)})),[i,n]);let u=()=>{It[It.length-1]===n&&r&&r()};!function(t){let{ref:n,onInteractOutside:r,isDisabled:o,onInteractOutsideStart:i}=t,a=(0,e.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=ee((e=>{r&&Ve(e,n)&&(i&&i(e),a.current.isPointerDown=!0)})),l=ee((e=>{r&&r(e)}));(0,e.useEffect)((()=>{let e=a.current;if(!o){if("undefined"!=typeof PointerEvent){let t=t=>{e.isPointerDown&&Ve(t,n)&&l(t),e.isPointerDown=!1};return document.addEventListener("pointerdown",s,!0),document.addEventListener("pointerup",t,!0),()=>{document.removeEventListener("pointerdown",s,!0),document.removeEventListener("pointerup",t,!0)}}{let t=t=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&Ve(t,n)&&l(t),e.isPointerDown=!1},r=t=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&Ve(t,n)&&l(t),e.isPointerDown=!1};return document.addEventListener("mousedown",s,!0),document.addEventListener("mouseup",t,!0),document.addEventListener("touchstart",s,!0),document.addEventListener("touchend",r,!0),()=>{document.removeEventListener("mousedown",s,!0),document.removeEventListener("mouseup",t,!0),document.removeEventListener("touchstart",s,!0),document.removeEventListener("touchend",r,!0)}}}}),[n,o,s,l])}({ref:n,onInteractOutside:a?e=>{l&&!l(e.target)||(It[It.length-1]===n&&(e.stopPropagation(),e.preventDefault()),u())}:null,onInteractOutsideStart:e=>{l&&!l(e.target)||It[It.length-1]===n&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=He({isDisabled:!o,onBlurWithin:e=>{e.relatedTarget&&it(e.relatedTarget,Xe)||l&&!l(e.relatedTarget)||r()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||s||(e.stopPropagation(),e.preventDefault(),u())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}const At="undefined"!=typeof document&&window.visualViewport,zt=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Wt,Ht=0;function Bt(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function _t(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Kt(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=$(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;r>n+e.clientHeight&&(t.scrollTop+=r-n)}e=t.parentElement}}function Ut(e){return e instanceof HTMLInputElement&&!zt.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var jt;function Vt(t){let{onDismiss:n,...r}=t,o=j(r,function(t){let{locale:n}=xt(),r=(0,e.useMemo)((()=>function(e){let t=Lt.get(e);return t||(t=new vt(e),Lt.set(e,t)),t}(t)),[t]);return(0,e.useMemo)((()=>new yt(n,r)),[n,r])}(Nt(jt)).format("dismiss"));return e.createElement(Ot,null,e.createElement("button",{...o,tabIndex:-1,onClick:()=>{n&&n()}}))}jt={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"От�
2 върляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schließen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutasítás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};let qt=new WeakMap,$t=[];const Yt=e.createContext(null);function Gt(t){let n,r=P(),{portalContainer:o=(r?null:document.body),isExiting:i}=t,[a,s]=(0,e.useState)(!1),l=(0,e.useMemo)((()=>({contain:a,setContain:s})),[a,s]);return o?(n=t.disableFocusManagement?e.createElement(Yt.Provider,{value:l},t.children):e.createElement(Yt.Provider,{value:l},e.createElement(Je,{restoreFocus:!0,contain:a&&!i},t.children)),kt.createPortal(n,o)):null}function Xt(){let t=(0,e.useContext)(Yt),n=null==t?void 0:t.setContain;R((()=>{null==n||n(!0)}),[n])}function Jt(t,n,r){let{overlayProps:o,underlayProps:i}=Dt({...t,isOpen:n.isOpen,onClose:n.close},r);return function(e={}){let{isDisabled:t}=e;R((()=>{if(!t)return Ht++,1===Ht&&(Wt=Z()?function(){let e,t=0,n=window.pageXOffset,r=window.pageYOffset,o=F(Bt(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),Bt(document.documentElement,"overflow","hidden"),Bt(document.body,"marginTop",`-${r}px`));window.scrollTo(0,0);let i=F(_t(document,"touchstart",(n=>{e=$(n.target),e===document.documentElement&&e===document.body||(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),_t(document,"touchmove",(n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,o=e.scrollTop,i=e.scrollHeight-e.clientHeight;0!==i&&((o<=0&&r>t||o>=i&&r<t)&&n.preventDefault(),t=r)}),{passive:!1,capture:!0}),_t(document,"touchend",(e=>{let t=e.target;Ut(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),_t(document,"focus",(e=>{let t=e.target;Ut(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",At&&(At.height<window.innerHeight?requestAnimationFrame((()=>{Kt(t)})):At.addEventListener("resize",(()=>Kt(t)),{once:!0}))})))}),!0),_t(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{o(),i(),window.scrollTo(n,r)}}():F(Bt(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),Bt(document.documentElement,"overflow","hidden"))),()=>{Ht--,0===Ht&&Wt()}}),[t])}({isDisabled:!n.isOpen}),Xt(),(0,e.useEffect)((()=>{if(n.isOpen)return function(e,t=document.body){let n=new Set(e),r=new Set,o=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(t);let t=e=>{if(n.has(e)||r.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),a=t(e);if(a===NodeFilter.FILTER_ACCEPT&&i(e),a!==NodeFilter.FILTER_REJECT){let e=o.nextNode();for(;null!=e;)i(e),e=o.nextNode()}},i=e=>{var t;let n=null!==(t=qt.get(e))&&void 0!==t?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),qt.set(e,n+1))};$t.length&&$t[$t.length-1].disconnect(),o(t);let a=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some((e=>e.contains(t.target)))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),r.delete(e));for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&o(e):n.add(e)}}));a.observe(t,{childList:!0,subtree:!0});let s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return $t.push(s),()=>{a.disconnect();for(let e of r){let t=qt.get(e);1===t?(e.removeAttribute("aria-hidden"),qt.delete(e)):qt.set(e,t-1)}s===$t[$t.length-1]?($t.pop(),$t.length&&$t[$t.length-1].observe()):$t.splice($t.indexOf(s),1)}}([r.current])}),[n.isOpen,r]),{modalProps:O(o),underlayProps:i}}function Qt(e){let{description:t,errorMessage:n,validationState:r}=e,{labelProps:o,fieldProps:i}=function(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=x(t);let a=x(),s={};return n?(r=r?`${a} ${r}`:a,s={id:a,htmlFor:"label"===i?t:void 0}):r||o||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:s,fieldProps:j({id:t,"aria-label":o,"aria-labelledby":r})}}(e),a=k([Boolean(t),Boolean(n),r]),s=k([Boolean(t),Boolean(n),r]);return i=O(i,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:s}}}function Zt(t,n){let{inputElementType:r="input",isDisabled:o=!1,isRequired:i=!1,isReadOnly:a=!1,validationState:s,type:l="text",value:u,defaultValue:c,onChange:d=()=>{}}=t,{focusableProps:f}=gt(t,n),{labelProps:p,fieldProps:m,descriptionProps:g,errorMessageProps:v}=Qt(t),h=z(t,{labelable:!0});const b={type:l,pattern:t.pattern};var y;return function(t,n,r){let o=(0,e.useRef)(n),i=ee((()=>{r&&r(o.current)}));(0,e.useEffect)((()=>{var e;let n=null==t||null===(e=t.current)||void 0===e?void 0:e.form;return null==n||n.addEventListener("reset",i),()=>{null==n||n.removeEventListener("reset",i)}}),[t,i])}(n,null!==(y=null!=u?u:c)&&void 0!==y?y:"",d),{labelProps:p,inputProps:O(h,"input"===r&&b,{disabled:o,readOnly:a,"aria-required":i||void 0,"aria-invalid":"invalid"===s||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],value:t.value,defaultValue:t.value?void 0:t.defaultValue,onChange:e=>d(e.target.value),autoComplete:t.autoComplete,maxLength:t.maxLength,minLength:t.minLength,name:t.name,placeholder:t.placeholder,inputMode:t.inputMode,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput,...f,...m}),descriptionProps:g,errorMessageProps:v}}function en(t){let[n,r]=function(t,n,r){let[o,i]=(0,e.useState)(t||n),a=(0,e.useRef)(void 0!==t),s=void 0!==t;(0,e.useEffect)((()=>{let e=a.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s}),[s]);let l=s?t:o,u=(0,e.useCallback)(((e,...t)=>{let n=(e,...t)=>{r&&(Object.is(l,e)||r(e,...t)),s||(l=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i(((r,...o)=>{let i=e(s?l:r,...o);return n(i,...t),s?r:i}))):(s||i(e),n(e,...t))}),[s,l,r]);return[l,u]}(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const o=(0,e.useCallback)((()=>{r(!0)}),[r]),i=(0,e.useCallback)((()=>{r(!1)}),[r]),a=(0,e.useCallback)((()=>{r(!n)}),[r,n]);return{isOpen:n,setOpen:r,open:o,close:i,toggle:a}}n(9888),new WeakMap;Symbol.iterator;const tn="row-header-column-"+Math.random().toString(36).slice(2);let nn="row-header-column-"+Math.random().toString(36).slice(2);for(;tn===nn;)nn="row-header-column-"+Math.random().toString(36).slice(2);function rn(e){return null}Symbol.iterator,rn.getCollectionNode=function*(t,n){let{children:r,textValue:o,UNSTABLE_childItems:i}=t;yield{type:"item",props:t,textValue:o,"aria-label":t["aria-label"],hasChildNodes:!0,*childNodes(){if(n.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),n.showSelectionCheckboxes&&"none"!==n.selectionMode&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),"function"==typeof r){for(let e of n.columns)yield{type:"cell",element:r(e.key),key:e.key};if(i)for(let e of i)yield{type:"item",value:e}}else{let t=[],o=[];if(e.Children.forEach(r,(e=>{if(e.type===rn){if(t.length<n.columns.length)throw new Error("All of a Row's child Cells must be positioned before any child Rows.");o.push({type:"item",element:e})}else t.push({type:"cell",element:e})})),t.length!==n.columns.length)throw new Error(`Cell count must match column count. Found ${t.length} cells and ${n.columns.length} columns.`);yield*t,yield*o}},shouldInvalidate:e=>e.columns.length!==n.columns.length||e.columns.some(((e,t)=>e.key!==n.columns[t].key))||e.showSelectionCheckboxes!==n.showSelectionCheckboxes||e.showDragButtons!==n.showDragButtons||e.selectionMode!==n.selectionMode}},Symbol.iterator;Symbol.iterator;const on=Symbol("callback"),an=Symbol("default");function sn({values:t,children:n}){for(let[r,o]of t)n=e.createElement(r.Provider,{value:o},n);return n}function ln(t){let{className:n,style:r,children:o,defaultClassName:i,defaultChildren:a,values:s}=t;return(0,e.useMemo)((()=>{let e,t,l;return e="function"==typeof n?n(s):n,t="function"==typeof r?r(s):r,l="function"==typeof o?o(s):null==o?a:o,{className:null!=e?e:i,style:t,children:l}}),[n,r,o,i,a,s])}function un(t,n,r){let o=(0,e.useContext)(r)||{};if("slots"in o&&o.slots){if(!t.slot&&!o.slots[an])throw new Error("A slot prop is required");let e=t.slot||an;if(!o.slots[e])throw new Error(`Invalid slot "${t.slot}". Valid slot names are `+(new Intl.ListFormat).format(Object.keys(o.slots).map((e=>`"${e}"`)))+".");o=o.slots[e]}let{ref:i,[on]:a,...s}=o,l=V((0,e.useMemo)((()=>N(n,i)),[n,i])),u=O(s,t);return(0,e.useEffect)((()=>{a&&a(t)}),[a,t]),[u,l]}function cn(t,n=!0){let[r,o]=(0,e.useState)(!0);return fn(t,r&&n,(0,e.useCallback)((()=>o(!1)),[])),r&&n}function dn(t,n){let[r,o]=(0,e.useState)(!1),[i,a]=(0,e.useState)("idle");return!n&&t.current&&"idle"===i&&(r=!0,o(!0),a("exiting")),t.current||"exited"!==i||a("idle"),fn(t,r,(0,e.useCallback)((()=>{a("exited"),o(!1)}),[])),r}function fn(t,n,r){let o=(0,e.useRef)(null);n&&t.current&&(o.current=window.getComputedStyle(t.current).animation),R((()=>{if(n&&t.current){let e=window.getComputedStyle(t.current);if("none"!==e.animationName&&e.animation!==o.current){let e=o=>{o.target===t.current&&(n.removeEventListener("animationend",e),kt.flushSync((()=>{r()})))},n=t.current;return n.addEventListener("animationend",e),()=>{n.removeEventListener("animationend",e)}}r()}}),[t,n,r])}const pn=(0,e.createContext)({}),mn=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),gn=(0,e.createContext)({});function vn(t,n){[t,n]=un(t,n,gn);let r=t,{buttonProps:o,isPressed:i}=function(e,t){let n,{elementType:r="button",isDisabled:o,onPress:i,onPressStart:a,onPressEnd:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:p,rel:m,type:g="button"}=e;n="button"===r?{type:g,disabled:o}:{role:"button",tabIndex:o?void 0:0,href:"a"===r&&o?void 0:f,target:"a"===r?p:void 0,type:"input"===r?g:void 0,disabled:"input"===r?o:void 0,"aria-disabled":o&&"input"!==r?o:void 0,rel:"a"===r?m:void 0};let{pressProps:v,isPressed:h}=fe({onPressStart:a,onPressEnd:s,onPressChange:l,onPress:i,isDisabled:o,preventFocusOnPress:u,ref:t}),{focusableProps:b}=gt(e,t);c&&(b.tabIndex=o?-1:b.tabIndex);let y=O(b,v,z(e,{labelable:!0}));return{isPressed:h,buttonProps:O(n,y,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{d&&(d(e),console.warn("onClick is deprecated, please use onPress"))}})}}(t,n),{focusProps:a,isFocused:s,isFocusVisible:l}=pt(t),{hoverProps:u,isHovered:c}=function(t){let{onHoverStart:n,onHoverChange:r,onHoverEnd:o,isDisabled:i}=t,[a,s]=(0,e.useState)(!1),l=(0,e.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,e.useEffect)(je,[]);let{hoverProps:u,triggerHoverEnd:c}=(0,e.useMemo)((()=>{let e=(e,t)=>{if(l.pointerType=t,i||"touch"===t||l.isHovered||!e.currentTarget.contains(e.target))return;l.isHovered=!0;let o=e.currentTarget;l.target=o,n&&n({type:"hoverstart",target:o,pointerType:t}),r&&r(!0),s(!0)},t=(e,t)=>{if(l.pointerType="",l.target=null,"touch"===t||!l.isHovered)return;l.isHovered=!1;let n=e.currentTarget;o&&o({type:"hoverend",target:n,pointerType:t}),r&&r(!1),s(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{Be&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&t(e,e.pointerType)}):(a.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{l.ignoreEmulatedMouseEvents||Be||e(t,"mouse"),l.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&t(e,"mouse")}),{hoverProps:a,triggerHoverEnd:t}}),[n,r,o,i,l]);return(0,e.useEffect)((()=>{i&&c({currentTarget:l.target},l.pointerType)}),[i]),{hoverProps:u,isHovered:a}}(t),d=ln({...t,values:{isHovered:c,isPressed:i,isFocused:s,isFocusVisible:l,isDisabled:t.isDisabled||!1},defaultClassName:"react-aria-Button"});return e.createElement("button",{...z(t,{propNames:mn}),...O(o,a,u),...d,ref:n,slot:t.slot,"data-pressed":r.isPressed||i||void 0,"data-hovered":c||void 0,"data-focused":s||void 0,"data-focus-visible":l||void 0})}const hn=(0,e.forwardRef)(vn),bn=(0,e.createContext)({}),yn=(0,e.createContext)({}),wn=(0,e.createContext)({}),En=(0,e.createContext)(null),Tn=(0,e.createContext)(null);function Pn(t,n){if((0,e.useContext)(Tn))return e.createElement(xn,{...t,modalRef:n},t.children);let{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,...u}=t;return e.createElement(Rn,{isDismissable:r,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s},e.createElement(xn,{...u,modalRef:n},l))}const Sn=(0,e.forwardRef)(Pn);function Cn(t,n){let r=(0,e.useContext)(En),o=en(t),i=null==t.isOpen&&null==t.defaultOpen&&(null==r?void 0:r.state)?r.state:o,a=V(n),s=(0,e.useRef)(null),l=dn(a,i.isOpen),u=dn(s,i.isOpen),c=l||u;return i.isOpen||c?e.createElement(Mn,{...t,state:i,isExiting:c,overlayRef:a,modalRef:s}):null}const Rn=(0,e.forwardRef)(Cn);function Mn(t){let n=t.modalRef,{state:r}=t,{modalProps:o,underlayProps:i}=Jt(t,r,n),a=cn(t.overlayRef),s=ln({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:t.isExiting,state:r}}),l=function(){let[t,n]=(0,e.useState)((()=>X()));return(0,e.useEffect)((()=>{let e=()=>{n((e=>{let t=X();return t.width===e.width&&t.height===e.height?e:t}))};return G?G.addEventListener("resize",e):window.addEventListener("resize",e),()=>{G?G.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),t}(),u={...s.style,"--visual-viewport-height":l.height+"px"};return e.createElement(Gt,{isExiting:t.isExiting},e.createElement("div",{...O(z(t),i),...s,style:u,ref:t.overlayRef,"data-entering":a||void 0,"data-exiting":t.isExiting||void 0},e.createElement(Tn.Provider,{value:{modalProps:o,modalRef:n,state:r,isExiting:t.isExiting,isDismissable:t.isDismissable}},s.children)))}function xn(t){let{modalProps:n,modalRef:r,isExiting:o,isDismissable:i,state:a}=(0,e.useContext)(Tn),s=V((0,e.useMemo)((()=>N(t.modalRef,r)),[t.modalRef,r])),l=cn(s),u=ln({...t,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:o,state:a}});return e.createElement("div",{...O(z(t),n),...u,ref:s,"data-entering":l||void 0,"data-exiting":o||void 0},i&&e.createElement(Vt,{onDismiss:a.close}),u.children)}const Ln=(0,e.createContext)(null);function kn(t,n){[t,n]=un(t,n,Ln);let{dialogProps:r,titleProps:o}=function(t,n){let{role:r="dialog"}=t,o=k();o=t["aria-label"]?void 0:o;let i=(0,e.useRef)(!1);return(0,e.useEffect)((()=>{if(n.current&&!n.current.contains(document.activeElement)){$e(n.current);let e=setTimeout((()=>{document.activeElement===n.current&&(i.current=!0,n.current.blur(),$e(n.current),i.current=!1)}),500);return()=>{clearTimeout(e)}}}),[n]),Xt(),{dialogProps:{...z(t,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||o,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:o}}}(t,n),i=t.children;var a;return"function"==typeof i&&(i=i({close:t.onClose||(()=>{})})),e.createElement("section",{...z(t),...r,ref:n,slot:t.slot,style:t.style,className:null!==(a=t.className)&&void 0!==a?a:"react-aria-Dialog"},e.createElement(sn,{values:[[gn,void 0],[pn,{...o,level:2}]]},i))}const Fn=(0,e.forwardRef)(kn);Symbol.iterator;const On=(0,e.createContext)({}),Nn=(0,e.createContext)(null);(0,e.forwardRef)((function(t,n){[t,n]=un(t,n,Nn);let r=(0,e.useRef)(null),[o,i]=function(){let[t,n]=(0,e.useState)(!0),r=(0,e.useRef)(!1),o=(0,e.useCallback)((e=>{r.current=!0,n(!!e)}),[]);return R((()=>{r.current||n(!1)}),[]),[o,t]}(),[a,s]=(0,e.useState)("input"),{labelProps:l,inputProps:u,descriptionProps:c,errorMessageProps:d}=Zt({...t,inputElementType:a,label:i},r),f=(0,e.useCallback)((e=>{r.current=e,e&&s(e instanceof HTMLTextAreaElement?"textarea":"input")}),[]),p=ln({...t,values:{isDisabled:t.isDisabled||!1,validationState:t.validationState},defaultClassName:"react-aria-TextField"});return e.createElement("div",{...z(t),...p,ref:n,slot:t.slot,"data-disabled":t.isDisabled||void 0,"data-validation-state":t.validationState||void 0},e.createElement(sn,{values:[[yn,{...l,ref:o}],[wn,{...u,ref:f}],[On,{...u,ref:f}],[bn,{slots:{description:c,errorMessage:d}}]]},p.children))}));const In=window.wp.components;function Dn(){return(0,e.createElement)(In.SVG,{className:"givewp-donation-form-modal__close__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,e.createElement)(In.Path,{stroke:"black",strokeWidth:"2",d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}))}function An({openFormButton:t,children:n,onChange:r,isOpen:o}){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(hn,{className:"givewp-donation-form-modal__open",onPress:r},t),(0,e.createElement)(Sn,{className:"givewp-donation-form-modal__overlay",isOpen:o},(0,e.createElement)(Fn,{className:"givewp-donation-form-modal__dialog"},n,(0,e.createElement)(hn,{className:"givewp-donation-form-modal__close",onPress:r},(0,e.createElement)(Dn,null)))))}function zn({dataSrc:t,embedId:n,openFormButton:i,isFormRedirect:a,formViewUrl:s}){const[l,u]=(0,r.useState)(t),[c,d]=(0,r.useState)(a);return(0,e.createElement)(An,{isOpen:c,onChange:()=>{d(!c),!c&&a&&u(s)},openFormButton:i},(0,e.createElement)(m,{title:(0,o.__)("Donation Form","give"),id:n,src:l,checkOrigin:!1,heightCalculationMethod:"taggedElement",style:{minWidth:"100%",border:"none"}}))}const Wn=["donation-confirmation-receipt-view"];function Hn({formFormat:t,dataSrc:n,embedId:r,openFormButton:i,formUrl:a,formViewUrl:s}){const l=(e=>{const t=new URL(e);return n=new URLSearchParams(t.search),r=Wn,n.has("givewp-route")&&r.includes(n.get("givewp-route"));var n,r})(n);return"newTab"===t?(0,e.createElement)("a",{className:"givewp-donation-form-link",href:a,target:"_blank",rel:"noopener noreferrer"},i):"modal"===t||"reveal"===t?(0,e.createElement)(zn,{openFormButton:i,dataSrc:n,embedId:r,isFormRedirect:l,formViewUrl:s}):(0,e.createElement)(m,{title:(0,o.__)("Donation Form","give"),id:r,src:n,checkOrigin:!1,heightCalculationMethod:"taggedElement",style:{width:"1px",minWidth:"100%",border:"0"}})}document.querySelectorAll(".root-data-givewp-embed").forEach((t=>{let n=t.getAttribute("data-src");const o=t.getAttribute("data-form-locale");if(o){const e=new URL(n);e.searchParams.set("locale",o),n=e.toString()}const i=n,a=t.getAttribute("data-givewp-embed-id"),s=t.getAttribute("data-form-format"),l=t.getAttribute("data-open-form-button"),u=t.getAttribute("data-form-url"),c=t.getAttribute("data-form-view-url");(0,r.createRoot)(t).render((0,e.createElement)(Hn,{openFormButton:l,formFormat:s,dataSrc:i,embedId:a,formUrl:u,formViewUrl:c}))}))})()})();