GRAYBYTE WORDPRESS FILE MANAGER8410

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/give/build/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/wp-content/plugins/give/build//adminBlocks.js
(()=>{var e={32485:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)o.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},4146:(e,t,n)=>{"use strict";var o=n(73404),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(g){var r=f(n);r&&r!==g&&e(t,r,o)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v<a.length;++v){var h=a[v];if(!(i[h]||o&&o[h]||m&&m[h]||s&&s[h])){var b=p(n,h);try{u(t,h,b)}catch(e){}}}}return t}},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,h=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case v:case m:case l:return e;default:return t}}case r:return t}}}function I(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return I(e)||E(e)===c},t.isConcurrentMode=I,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===h)},t.typeOf=E},73404:(e,t,n)=>{"use strict";e.exports=n(3072)},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){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:r};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"}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](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 o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React;var t=n.n(e);const o=window.wp.i18n,r=window.wp.blocks;var i=n(5556),a=n.n(i);const s={white:"#fff",grey:"#555d66",give:"#66bb6a"},l=({color:t="give",size:n="24px",...o})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 157.2 157.2",width:n,height:n,...o},(0,e.createElement)("circle",{fill:s[t],cx:"78.6",cy:"78.6",r:"78.6"}),(0,e.createElement)("path",{fill:"#fff",d:"M89.8 84.2c.3.7 1 1.3 1 1.3 13.9 1.7 33.6-.2 48.6-2.2-8.6 18.5-24 30.8-38.1 30.8-26.5 0-46.9-32.1-46.9-32.1 8.2-7.2 21.7-30.8 41.2-30.8s28 10.7 28 10.7l2.2-3.5s-9.1-31.9-34.9-31.9-53.2 42.3-69.2 52c0 0 22 52.2 70.2 52.2 40.4 0 50.6-38.6 52.5-48.2 5.4-.8 9.9-1.6 12.8-2.1 1-2.2 2.1-6.1 1.3-11.3-16.1 6.2-40.5 13.2-69.1 13.2-.1 0 0 1 .4 1.9z"}));l.propTypes={color:a().oneOf(Object.keys(s)),size:a().oneOfType([a().number,a().string])};const u=l,c=window.wp.blockEditor,d=window.wp.serverSideRender;var p=n.n(d);const f=window.wp.data,g=window.wp.components;function m({attributes:t,setAttributes:n,formOptions:r,isResolving:i,isLegacyTemplate:a,isLegacyForm:s}){const{id:l,displayStyle:u,continueButtonTitle:d,showTitle:p,contentDisplay:f,showGoal:m,showContent:v}=t,h=a||!s,b=h&&["newTab","modal","reveal","button"].includes(u);return(0,e.createElement)(c.InspectorControls,null,(0,e.createElement)(g.PanelBody,{title:(0,o.__)("Form Settings","give"),initialOpen:!0},(0,e.createElement)(g.PanelRow,null,!1===i&&0===r.length?(0,e.createElement)("p",null,(0,o.__)("No forms were found using the GiveWP form builder.","give")):(0,e.createElement)(g.SelectControl,{label:(0,o.__)("Choose a donation form","give"),value:null!=l?l:"",options:[{value:"",label:(0,o.__)("Select...","give"),disabled:!0},...r.map((e=>({label:e.label,value:String(e.value)})))],onChange:e=>{n({id:Number(e)})}})),h&&(0,e.createElement)(g.PanelRow,null,(0,e.createElement)(g.SelectControl,{label:(0,o.__)("Form Format","give"),value:u,options:((e,t,n)=>a?e.concat(t):e.concat(n))([{label:(0,o.__)("Full Form","give"),value:"onpage"},{label:(0,o.__)("Modal","give"),value:"modal"}],[{label:(0,o.__)("Reveal","give"),value:"reveal"},{value:"button",label:(0,o.__)("One Button Launch","give")}],[{label:(0,o.__)("New Tab","give"),value:"newTab"}]),onChange:e=>{n({displayStyle:e})}})),b&&(0,e.createElement)(g.PanelRow,null,(0,e.createElement)(g.TextControl,{label:(0,o.__)("Open Form Button","give"),value:d,onChange:e=>{n({continueButtonTitle:e})}})),a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g.PanelRow,null,(0,e.createElement)(g.ToggleControl,{label:(0,o.__)("Title","give"),name:"showTitle",checked:!!p,onChange:e=>{n({showTitle:e})}})),(0,e.createElement)(g.PanelRow,null,(0,e.createElement)(g.ToggleControl,{label:(0,o.__)("Goal","give"),name:"showGoal",checked:!!m,onChange:e=>{n({showGoal:e})}})),(0,e.createElement)(g.PanelRow,null,(0,e.createElement)(g.ToggleControl,{label:(0,o.__)("Content","give"),name:"contentDisplay",checked:!!f,onChange:e=>{n({contentDisplay:e})}})),f&&(0,e.createElement)(g.PanelRow,null,(0,e.createElement)(g.SelectControl,{label:(0,o.__)("Content Position","give"),name:"showContent",value:v,options:[{value:"above",label:(0,o.__)("Above","give")},{value:"below",label:(0,o.__)("Below","give")}],onChange:e=>{n({showContent:e})}}))),l&&(0,e.createElement)(g.PanelRow,null,(0,e.createElement)(g.ExternalLink,{href:s?`/wp-admin/post.php?post=${l}&action=edit`:`/wp-admin/edit.php?post_type=give_forms&page=givewp-form-builder&donationFormID=${l}`},(0,o.__)("Edit donation form","give")))))}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},v.apply(this,arguments)}function h(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var b,y,w=(b=function(e){!function(t){if("undefined"!=typeof window){var n,o=0,r=!1,i=!1,a="[iFrameSizer]",s=null,l=window.requestAnimationFrame,u={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},c={},d=null,p={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}},f={};window.jQuery&&((n=window.jQuery).fn?n.fn.iFrameResize||(n.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){k(n,e)})).end()}):y("","Unable to bind to jQuery, it is not fully loaded.")),e.exports=F(),window.iFrameResize=window.iFrameResize||F()}function g(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function m(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:r}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,o){!0===o&&"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 I(e){function t(){n("Height"),n("Width"),P((function(){O(j),N(R),p("onResized",j)}),j,"init")}function n(e){var t=Number(c[R]["max"+e]),n=Number(c[R]["min"+e]),o=e.toLowerCase(),r=Number(j[o]);b(R,"Checking "+o+" is in range "+n+"-"+t),r<n&&(r=n,b(R,"Set "+o+" to min value")),r>t&&(r=t,b(R,"Set "+o+" to max value")),j[o]=""+r}function o(e){return _.substr(_.indexOf(":")+7+e)}function r(e,t){var n,o;n=function(){var n,o;A("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),o=j.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:o.height,iframeWidth:o.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(o.top-n.top,10),offsetLeft:parseInt(o.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)},f[o=t]||(f[o]=setTimeout((function(){f[o]=null,n()}),32))}function i(e){var t=e.getBoundingClientRect();return S(R),{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(j.iframe):{x:0,y:0},n={x:Number(j.width)+t.x,y:Number(j.height)+t.y};b(R,"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(R,"Unable to scroll to requested position, window.parentIFrame not found"):(s=n,u(),b(R,"--"))}function u(){!1!==p("onScroll",s)?N(R):L()}function d(e){p(e,{iframe:j.iframe,screenX:j.width,screenY:j.height,type:j.type})}function p(e,t){return C(R,e,t)}var g,h,E,I,M,k,_=e.data,j={},R=null;"[iFrameResizerChild]Ready"===_?function(){for(var e in c)A("iFrame requested init",D(e),c[e].iframe,e)}():a===(""+_).substr(0,13)&&_.substr(13).split(":")[0]in c?(I=(E=_.substr(13).split(":"))[1]?parseInt(E[1],10):0,M=c[E[0]]&&c[E[0]].iframe,k=getComputedStyle(M),j={iframe:M,id:E[0],height:I+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(k)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(k),width:E[2],type:E[3]},R=j.id,c[R]&&(c[R].loaded=!0),(h=j.type in{true:1,false:1,undefined:1})&&b(R,"Ignoring init message from meta parent page"),!h&&function(e){var t=!0;return c[e]||(t=!1,w(j.type+" No settings for "+e+". Message was: "+_)),t}(R)&&(b(R,"Received: "+_),g=!0,null===j.iframe&&(w(R,"IFrame ("+j.id+") not found"),g=!1),g&&function(){var t,n=e.origin,o=c[R]&&c[R].checkOrigin;if(o&&""+n!="null"&&!(o.constructor===Array?function(){var e=0,t=!1;for(b(R,"Checking connection is from allowed list of origins: "+o);e<o.length;e++)if(o[e]===n){t=!0;break}return t}():(t=c[R]&&c[R].remoteHost,b(R,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+j.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[R]&&c[R].firstRun&&c[R]&&(c[R].firstRun=!1),j.type){case"close":T(j.iframe);break;case"message":h=o(6),b(R,"onMessage passed: {iframe: "+j.iframe.id+", message: "+h+"}"),p("onMessage",{iframe:j.iframe,message:JSON.parse(h)}),b(R,"--");break;case"mouseenter":d("onMouseEnter");break;case"mouseleave":d("onMouseLeave");break;case"autoResize":c[R].autoResize=JSON.parse(o(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":r(c[R]&&c[R].iframe,R),function(){function e(e,o){function i(){c[n]?r(c[n].iframe,n):t()}["scroll","resize"].forEach((function(t){b(n,e+t+" listener for sendPageInfo"),o(window,t,i)}))}function t(){e("Remove ",v)}var n=R;e("Add ",m),c[n]&&(c[n].stopPageInfo=t)}();break;case"pageInfoStop":c[R]&&c[R].stopPageInfo&&(c[R].stopPageInfo(),delete c[R].stopPageInfo);break;case"inPageLink":e=o(9),a=e.split("#")[1]||"",f=decodeURIComponent(a),(g=document.getElementById(f)||document.getElementsByName(f)[0])?(n=i(g),b(R,"Moving to in page link (#"+a+") at x: "+n.x+" y: "+n.y),s={x:n.x,y:n.y},u(),b(R,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(a):b(R,"In page link #"+a+" not found and window.parentIFrame not found"):b(R,"In page link #"+a+" not found");break;case"reset":x(j);break;case"init":t(),p("onInit",j.iframe);break;default:t()}var e,n,a,f,g,h}())):y(R,"Ignored: "+_)}function C(e,t,n){var o=null,r=null;if(c[e]){if("function"!=typeof(o=c[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");r=o(n)}return r}function M(e){var t=e.id;delete c[t]}function T(e){var t=e.id;if(!1!==C(t,"onClose",t)){b(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){w(e)}C(t,"onClosed",t),b(t,"--"),M(e)}else b(t,"Close iframe cancelled by onClose event")}function S(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 N(e){null!==s&&(window.scrollTo(s.x,s.y),b(e,"Set page position: "+s.x+","+s.y),L())}function L(){s=null}function x(e){b(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),S(e.id),P((function(){O(e),A("reset","reset",e.iframe,e.id)}),e,"reset")}function O(e){function t(t){i||"0"!==e[t]||(i=!0,b(o,"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"))&&A("Visibility change","resize",c[e].iframe,e)}(e)}))}function t(t){b("window","Mutation observed: "+t[0].target+" "+t[0].type),_(e,16)}var n,o=g();o&&(n=document.querySelector("body"),new o(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 ("+o+") "+t+" set to "+e[t]+"px")):b("undefined","messageData id not set")}(n),t(n)}var o=e.iframe.id;c[o]&&(c[o].sizeHeight&&n("height"),c[o].sizeWidth&&n("width"))}function P(e,t,n){n!==t.type&&l&&!window.jasmine?(b(t.id,"Requesting animation frame"),l(e)):e()}function A(e,t,n,o,r){var i,s=!1;o=o||n.id,c[o]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(i=c[o]&&c[o].targetOrigin,b(o,"["+e+"] Sending msg to iframe["+o+"] ("+t+") targetOrigin: "+i),n.contentWindow.postMessage(a+t,i)):w(o,"["+e+"] IFrame("+o+") not found"),r&&c[o]&&c[o].warningTimeout&&(c[o].msgTimeout=setTimeout((function(){!c[o]||c[o].loaded||s||(s=!0,w(o,"IFrame has not responded within "+c[o].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[o].warningTimeout)))}function D(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 k(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||p.id+o++,null!==document.getElementById(i)&&(i+=o++),t=i),r=(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 p)Object.prototype.hasOwnProperty.call(p,t)&&(c[a][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:p[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 o=g();o&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&T(e)}))}))})).observe(e.parentNode,{childList:!0})}(o),m(e,"load",(function(){var o,r;A("iFrame.onload",n,e,t,!0),o=c[a]&&c[a].firstRun,r=c[a]&&c[a].heightCalculationMethod in u,!o&&r&&x({iframe:e,height:0,width:0,type:"init"})})),A("init",n,e,t,!0)}(D(a)),c[a]&&(c[a].iframe.iFrameResizer={close:T.bind(null,c[a].iframe),removeListeners:M.bind(null,c[a].iframe),resize:A.bind(null,"Window resize","resize",c[a].iframe),moveToAnchor:function(e){A("Move to anchor","moveToAnchor:"+e,c[a].iframe,a)},sendMessage:function(e){A("Send Message","message:"+(e=JSON.stringify(e)),c[a].iframe,a)}}))}function _(e,t){null===d&&(d=setTimeout((function(){d=null,e()}),t))}function j(){"hidden"!==document.visibilityState&&(b("document","Trigger event: Visiblity change"),_((function(){R("Tab Visable","resize")}),16))}function R(e,t){Object.keys(c).forEach((function(n){(function(e){return c[e]&&"parent"===c[e].resizeFrom&&c[e].autoResize&&!c[e].firstRun})(n)&&A(e,t,c[n].iframe,n)}))}function F(){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+">")}(),k(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")}(),m(window,"message",I),m(window,"resize",(function(){b("window","Trigger event: resize"),_((function(){R("Window resize","resize")}),16)})),m(document,"visibilitychange",j),m(document,"-webkit-visibilitychange",j),function(o,r){switch(n=[],function(e){e&&e.enablePublicMethods&&w("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(o),typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),e.bind(t,o));break;case"object":e(o,r);break;default:throw new TypeError("Unexpected data type ("+typeof r+")")}return n}}}()},b(y={exports:{}}),y.exports),E=function(){},I=function(n){var o=n.title,r=n.forwardRef,i=h(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,h(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),s=(0,e.useRef)(null),l=function(){return E(!s.current,"[iframeSizerReact]["+(s&&s.current&&s.current.id)+"] Close event ignored, to remove the iframe update your React component"),!s.current};return(0,e.useEffect)((function(){var e=s.current;return w(v({},i,{onClose:l}),e),function(){return e.iFrameResizer&&e.iFrameResizer.removeListeners()}}),[]),(0,e.useImperativeHandle)(r,(function(){return{resize:function(){return s.current.iFrameResizer.resize()},moveToAnchor:function(e){return s.current.iFrameResizer.moveToAnchor(e)},sendMessage:function(e,t){s.current.iFrameResizer.sendMessage(e,t)}}})),t().createElement("iframe",v({title:o},a,{ref:s}))};I.defaultProps={title:"iframe"},I.propTypes={title:a().string};const C=I,M=window.wp.element;function T(t){const n=(0,e.useRef)(null);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 S(...e){return 1===e.length&&e[0]?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}function N(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const L="undefined"!=typeof document?e.useLayoutEffect:()=>{};function x(t){const n=(0,e.useRef)(null);return L((()=>{n.current=t}),[t]),(0,e.useCallback)(((...e)=>{const t=n.current;return null==t?void 0:t(...e)}),[])}const O={prefix:String(Math.round(1e10*Math.random())),current:0},P=e.createContext(O),A=e.createContext(!1);let D=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),k=new WeakMap;const _="function"==typeof e.useId?function(t){let n=e.useId(),[o]=(0,e.useState)(z());return t||`${o?"react-aria":`react-aria${O.prefix}`}-${n}`}:function(t){let n=(0,e.useContext)(P);n!==O||D||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 o=function(t=!1){let n=(0,e.useContext)(P),o=(0,e.useRef)(null);if(null===o.current&&!t){var r,i;let t=null===(i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i||null===(r=i.ReactCurrentOwner)||void 0===r?void 0:r.current;if(t){let e=k.get(t);null==e?k.set(t,{id:n.current,state:t.memoizedState}):t.memoizedState!==e.state&&(n.current=e.id,k.delete(t))}o.current=++n.current}return o.current}(!!t),r=`react-aria${n.prefix}`;return t||`${r}-${o}`};function j(){return!1}function R(){return!0}function F(e){return()=>{}}function z(){return"function"==typeof e.useSyncExternalStore?e.useSyncExternalStore(F,j,R):(0,e.useContext)(A)}let V,B=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),H=new Map;function W(t){let[n,o]=(0,e.useState)(t),r=(0,e.useRef)(null),i=_(n),a=(0,e.useRef)(null);if(V&&V.register(a,i),B){const e=H.get(i);e&&!e.includes(r)?e.push(r):H.set(i,[r])}return L((()=>{let e=i;return()=>{V&&V.unregister(a),H.delete(e)}}),[i]),(0,e.useEffect)((()=>{let e=r.current;return e&&o(e),()=>{e&&(r.current=null)}})),i}function G(e,t){if(e===t)return e;let n=H.get(e);if(n)return n.forEach((e=>e.current=t)),t;let o=H.get(t);return o?(o.forEach((t=>t.current=e)),e):t}function Y(t=[]){let n=W(),[o,r]=function(t){let[n,o]=(0,e.useState)(t),r=(0,e.useRef)(null),i=x((()=>{if(!r.current)return;let e=r.current.next();e.done?r.current=null:n===e.value?i():o(e.value)}));L((()=>{r.current&&i()}));let a=x((e=>{r.current=e(n),i()}));return[n,a]}(n),i=(0,e.useCallback)((()=>{r((function*(){yield n,yield document.getElementById(n)?n:void 0}))}),[n,r]);return L(i,[n,i,...t]),o}function U(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=U(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}"undefined"!=typeof FinalizationRegistry&&(V=new FinalizationRegistry((e=>{H.delete(e)})));const Z=function(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=U(e))&&(o&&(o+=" "),o+=t);return o};function K(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let o=e[n];for(let e in o){let n=t[e],r=o[e];"function"==typeof n&&"function"==typeof r&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=N(n,r):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof r?"id"===e&&n&&r?t.id=G(n,r):t[e]=void 0!==r?r:n:t[e]=Z(n,r)}}return t}const Q=Symbol("default");function $({values:t,children:n}){for(let[o,r]of t)n=e.createElement(o.Provider,{value:r},n);return n}function X(t){let{className:n,style:o,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:s,values:l}=t;return(0,e.useMemo)((()=>{let e,t,u;return e="function"==typeof n?n({...l,defaultClassName:i}):n,t="function"==typeof o?o({...l,defaultStyle:s||{}}):o,u="function"==typeof r?r({...l,defaultChildren:a}):null==r?a:r,{className:null!=e?e:i,style:t||s?{...s,...t}:void 0,children:null!=u?u:a,"data-rac":""}}),[n,o,r,i,a,s,l])}function J(t,n,o){let r=function(t,n){let o=(0,e.useContext)(t);if(null===n)return null;if(o&&"object"==typeof o&&"slots"in o&&o.slots){let e=n||Q;if(!o.slots[e]){let e=(new Intl.ListFormat).format(Object.keys(o.slots).map((e=>`"${e}"`)));throw new Error(`${n?`Invalid slot "${n}".`:"A slot prop is required."} Valid slot names are ${e}.`)}return o.slots[e]}return o}(o,t.slot)||{},{ref:i,...a}=r,s=T((0,e.useMemo)((()=>S(n,i)),[n,i])),l=K(a,t);return"style"in a&&a.style&&"style"in t&&t.style&&("function"==typeof a.style||"function"==typeof t.style?l.style=e=>{let n="function"==typeof a.style?a.style(e):a.style,o={...e.defaultStyle,...n},r="function"==typeof t.style?t.style({...e,defaultStyle:o}):t.style;return{...o,...r}}:l.style={...a.style,...t.style}),[l,s]}const q=(0,e.createContext)(null);let ee=null;class te{isAttached(){var e;return null===(e=this.node)||void 0===e?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){var o,r;if(!this.node)return;let i=document.createElement("div");"object"==typeof e?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,"assertive"===t?null===(o=this.assertiveLog)||void 0===o||o.appendChild(i):null===(r=this.politeLog)||void 0===r||r.appendChild(i),""!==e&&setTimeout((()=>{i.remove()}),n)}clear(e){this.node&&(e&&"assertive"!==e||!this.assertiveLog||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||!this.politeLog||(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"undefined"!=typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{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"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const ne=new Set(["id"]),oe=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),re=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),ie=/^(data-.*)$/;function ae(e,t={}){let{labelable:n,isLink:o,propNames:r}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(ne.has(t)||n&&oe.has(t)||o&&re.has(t)||(null==r?void 0:r.has(t))||ie.test(t))&&(i[t]=e[t]);return i}function se(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function le(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 ue(e){let t=null;return()=>(null==t&&(t=e()),t)}const ce=ue((function(){return le(/^Mac/i)})),de=ue((function(){return le(/^iPhone/i)})),pe=ue((function(){return le(/^iPad/i)||ce()&&navigator.maxTouchPoints>1})),fe=ue((function(){return de()||pe()})),ge=(ue((function(){return ce()||fe()})),ue((function(){return se(/AppleWebKit/i)&&!me()}))),me=ue((function(){return se(/Chrome/i)})),ve=ue((function(){return se(/Android/i)})),he=ue((function(){return se(/Firefox/i)})),be=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},ye=e=>e&&"window"in e&&e.window===e?e:be(e).defaultView||window;let we=new Map,Ee=new Set;function Ie(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let o=we.get(n.target);if(o&&(o.delete(n.propertyName),0===o.size&&(n.target.removeEventListener("transitioncancel",t),we.delete(n.target)),0===we.size)){for(let e of Ee)e();Ee.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let o=we.get(n.target);o||(o=new Set,we.set(n.target,o),n.target.addEventListener("transitioncancel",t,{once:!0})),o.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function Ce(e){requestAnimationFrame((()=>{0===we.size?e():Ee.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?Ie():document.addEventListener("DOMContentLoaded",Ie));let Me="default",Te="",Se=new WeakMap;function Ne(e){if(fe()){if("default"===Me){const t=be(e);Te=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Me="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Se.set(e,e.style[t]),e.style[t]="none"}}function Le(e){if(fe()){if("disabled"!==Me)return;Me="restoring",setTimeout((()=>{Ce((()=>{if("restoring"===Me){const t=be(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=Te||""),Te="",Me="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Se.has(e)){let t=Se.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Se.delete(e)}}const xe=e.createContext({register:()=>{}});xe.displayName="PressResponderContext";const Oe=["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]:not([contenteditable^="false"])'],Pe=Oe.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Oe.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Ae=Oe.join(':not([hidden]):not([tabindex="-1"]),');function De(e){return e.matches(Pe)}function ke(e){return e.matches(Ae)}function _e(e){if(function(){if(null==je){je=!1;try{document.createElement("div").focus({get preventScroll(){return je=!0,!0}})}catch{}}return je}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&n.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:o}of e)t.scrollTop=n,t.scrollLeft=o}(t)}}let je=null;class Re{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 Fe(t){let n=(0,e.useRef)({isFocused:!1,observer:null});L((()=>{const e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let o=x((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,r=e=>{n.current.isFocused=!1,t.disabled&&o(new Re("blur",e)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};t.addEventListener("focusout",r,{once:!0}),n.current.observer=new MutationObserver((()=>{if(n.current.isFocused&&t.disabled){var e;null===(e=n.current.observer)||void 0===e||e.disconnect();let o=t===document.activeElement?null:document.activeElement;t.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}})),n.current.observer.observe(t,{attributes:!0,attributeFilter:["disabled"]})}}),[o])}let ze=!1;function Ve(e){for(;e&&!De(e);)e=e.parentElement;let t=ye(e),n=t.document.activeElement;if(!n||n===e)return;ze=!0;let o=!1,r=e=>{(e.target===n||o)&&e.stopImmediatePropagation()},i=t=>{(t.target===n||o)&&(t.stopImmediatePropagation(),e||o||(o=!0,_e(n),l()))},a=t=>{(t.target===e||o)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||o)&&(t.stopImmediatePropagation(),o||(o=!0,_e(n),l()))};t.addEventListener("blur",r,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",r,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",a,!0),ze=!1,o=!1},u=requestAnimationFrame(l);return l}function Be(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function He(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,Be(e,t,"set"),n),n}function We(e,t){L((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function Ge(){let t=(0,e.useRef)(new Map),n=(0,e.useCallback)(((e,n,o,r)=>{let i=(null==r?void 0:r.once)?(...e)=>{t.current.delete(o),o(...e)}:o;t.current.set(o,{type:n,eventTarget:e,fn:i,options:r}),e.addEventListener(n,i,r)}),[]),o=(0,e.useCallback)(((e,n,o,r)=>{var i;let a=(null===(i=t.current.get(o))||void 0===i?void 0:i.fn)||o;e.removeEventListener(n,a,r),t.current.delete(o)}),[]),r=(0,e.useCallback)((()=>{t.current.forEach(((e,t)=>{o(e.eventTarget,e.type,t,e.options)}))}),[o]);return(0,e.useEffect)((()=>r),[r]),{addGlobalListener:n,removeGlobalListener:o,removeAllGlobalListeners:r}}function Ye(e,t){return!(!t||!e)&&e.contains(t)}const Ue=(e=document)=>e.activeElement;function Ze(e){return e.target}function Ke(e,t,n=!0){var o,r;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;he()&&(null===(r=window.event)||void 0===r||null===(o=r.type)||void 0===o?void 0:o.startsWith("key"))&&"_blank"===e.target&&(ce()?i=!0:a=!0);let u=ge()&&ce()&&!pe()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Ke.isOpening=n,_e(e),e.dispatchEvent(u),Ke.isOpening=!1}function Qe(e){return!(0!==e.mozInputSource||!e.isTrusted)||(ve()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}Ke.isOpening=!1;const $e=window.ReactDOM;var Xe=new WeakMap;class Je{continuePropagation(){He(this,Xe,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(this,Be(this,Xe,"get"))}constructor(e,t,n,o){var r,i,a,s;s={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")}(i=this,a=Xe),a.set(i,s),He(this,Xe,!0);let l=null!==(r=null==o?void 0:o.target)&&void 0!==r?r:n.currentTarget;const u=null==l?void 0:l.getBoundingClientRect();let c,d,p=0,f=null;null!=n.clientX&&null!=n.clientY&&(d=n.clientX,f=n.clientY),u&&(null!=d&&null!=f?(c=d-u.left,p=f-u.top):(c=u.width/2,p=u.height/2)),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,this.x=c,this.y=p}}const qe=Symbol("linkClicked");function et(e){return"A"===e.tagName&&e.hasAttribute("href")}function tt(e,t){const{key:n,code:o}=e,r=t,i=r.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==o||r instanceof ye(r).HTMLInputElement&&!lt(r,n)||r instanceof ye(r).HTMLTextAreaElement||r.isContentEditable||("link"===i||!i&&et(r))&&"Enter"!==n)}function nt(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const o=n[e];if(o.identifier===t)return o}return null}function ot(e,t){let n=0,o=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,o=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:o}}function rt(e,t){let n=t.clientX,o=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:o}}function it(e,t){let n=t.getBoundingClientRect(),o=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return i=o,!((r=n).left>i.right||i.left>r.right||r.top>i.bottom||i.top>r.bottom);var r,i}function at(e,t){return e instanceof HTMLInputElement?!lt(e,t):function(e){return!(e instanceof HTMLInputElement||(e instanceof HTMLButtonElement?"submit"===e.type||"reset"===e.type:et(e)))}(e)}const st=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function lt(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:st.has(e.type)}let ut=null,ct=new Set,dt=new Map,pt=!1,ft=!1;const gt={Tab:!0,Escape:!0};function mt(e,t){for(let n of ct)n(e,t)}function vt(e){pt=!0,function(e){return!(e.metaKey||!ce()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(ut="keyboard",mt("keyboard",e))}function ht(e){ut="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(pt=!0,mt("pointer",e))}function bt(e){Qe(e)&&(pt=!0,ut="virtual")}function yt(e){e.target!==window&&e.target!==document&&!ze&&e.isTrusted&&(pt||ft||(ut="virtual",mt("virtual",e)),pt=!1,ft=!1)}function wt(){ze||(pt=!1,ft=!0)}function Et(e){if("undefined"==typeof window||dt.get(ye(e)))return;const t=ye(e),n=be(e);let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){pt=!0,o.apply(this,arguments)},n.addEventListener("keydown",vt,!0),n.addEventListener("keyup",vt,!0),n.addEventListener("click",bt,!0),t.addEventListener("focus",yt,!0),t.addEventListener("blur",wt,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",ht,!0),n.addEventListener("pointermove",ht,!0),n.addEventListener("pointerup",ht,!0)):(n.addEventListener("mousedown",ht,!0),n.addEventListener("mousemove",ht,!0),n.addEventListener("mouseup",ht,!0)),t.addEventListener("beforeunload",(()=>{It(e)}),{once:!0}),dt.set(t,{focus:o})}const It=(e,t)=>{const n=ye(e),o=be(e);t&&o.removeEventListener("DOMContentLoaded",t),dt.has(n)&&(n.HTMLElement.prototype.focus=dt.get(n).focus,o.removeEventListener("keydown",vt,!0),o.removeEventListener("keyup",vt,!0),o.removeEventListener("click",bt,!0),n.removeEventListener("focus",yt,!0),n.removeEventListener("blur",wt,!1),"undefined"!=typeof PointerEvent?(o.removeEventListener("pointerdown",ht,!0),o.removeEventListener("pointermove",ht,!0),o.removeEventListener("pointerup",ht,!0)):(o.removeEventListener("mousedown",ht,!0),o.removeEventListener("mousemove",ht,!0),o.removeEventListener("mouseup",ht,!0)),dt.delete(n))};function Ct(){return"pointer"!==ut}function Mt(){return ut}"undefined"!=typeof document&&function(e){const t=be(e);let n;"loading"!==t.readyState?Et(e):(n=()=>{Et(e)},t.addEventListener("DOMContentLoaded",n))}();const Tt=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function St(e){const t=be(e),n=Ue(t);if("virtual"===Mt()){let o=n;Ce((()=>{Ue(t)===o&&e.isConnected&&_e(e)}))}else _e(e)}function Nt(t){let{isDisabled:n,onFocus:o,onBlur:r,onFocusChange:i}=t;const a=(0,e.useCallback)((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),s=Fe(a),l=(0,e.useCallback)((e=>{const t=be(e.target),n=t?Ue(t):Ue();e.target===e.currentTarget&&n===Ze(e.nativeEvent)&&(o&&o(e),i&&i(!0),s(e))}),[i,o,s]);return{focusProps:{onFocus:!n&&(o||i||r)?l:void 0,onBlur:n||!r&&!i?void 0:a}}}function Lt(e){if(!e)return;let t=!0;return n=>{let o={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped:()=>t};e(o),t&&n.stopPropagation()}}let xt=e.createContext(null);function Ot(t,n){let{focusProps:o}=Nt(t),{keyboardProps:r}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Lt(e.onKeyDown),onKeyUp:Lt(e.onKeyUp)}}}(t),i=K(o,r),a=function(t){let n=(0,e.useContext)(xt)||{};We(n,t);let{ref:o,...r}=n;return r}(n),s=t.isDisabled?{}:a,l=(0,e.useRef)(t.autoFocus);(0,e.useEffect)((()=>{l.current&&n.current&&St(n.current),l.current=!1}),[n]);let u=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(u=void 0),{focusableProps:K({...i,tabIndex:u},s)}}function Pt(t,n){let o,{elementType:r="button",isDisabled:i,onPress:a,onPressStart:s,onPressEnd:l,onPressUp:u,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:p,onClick:f,href:g,target:m,rel:v,type:h="button"}=t;o="button"===r?{type:h,disabled:i}:{role:"button",href:"a"!==r||i?void 0:g,target:"a"===r?m:void 0,type:"input"===r?h:void 0,disabled:"input"===r?i:void 0,"aria-disabled":i&&"input"!==r?i:void 0,rel:"a"===r?v:void 0};let{pressProps:b,isPressed:y}=function(t){let{onPress:n,onPressChange:o,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:p,...f}=function(t){let n=(0,e.useContext)(xe);if(n){let{register:e,...o}=n;t=K(o,t),e()}return We(n,t.ref),t}(t),[g,m]=(0,e.useState)(!1),v=(0,e.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:h,removeAllGlobalListeners:b}=Ge(),y=x(((e,t)=>{let n=v.current;if(s||n.didFirePressStart)return!1;let i=!0;if(n.isTriggeringEvent=!0,r){let n=new Je("pressstart",t,e);r(n),i=n.shouldStopPropagation}return o&&o(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,m(!0),i})),w=x(((e,t,r=!0)=>{let a=v.current;if(!a.didFirePressStart)return!1;a.didFirePressStart=!1,a.isTriggeringEvent=!0;let l=!0;if(i){let n=new Je("pressend",t,e);i(n),l=n.shouldStopPropagation}if(o&&o(!1),m(!1),n&&r&&!s){let o=new Je("press",t,e);n(o),l&&(l=o.shouldStopPropagation)}return a.isTriggeringEvent=!1,l})),E=x(((e,t)=>{let n=v.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let o=new Je("pressup",t,e);return a(o),n.isTriggeringEvent=!1,o.shouldStopPropagation}return!0})),I=x((e=>{let t=v.current;if(t.isPressed&&t.target){t.didFirePressStart&&null!=t.pointerType&&w(rt(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,b(),d||Le(t.target);for(let e of t.disposables)e();t.disposables=[]}})),C=x((e=>{c&&I(e)})),M=(0,e.useMemo)((()=>{let e=v.current,t={onKeyDown(t){if(tt(t.nativeEvent,t.currentTarget)&&Ye(t.currentTarget,Ze(t.nativeEvent))){var o;at(Ze(t.nativeEvent),t.key)&&t.preventDefault();let r=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",r=y(t,"keyboard");let o=t.currentTarget,i=t=>{tt(t,o)&&!t.repeat&&Ye(o,Ze(t))&&e.target&&E(rt(e.target,t),"keyboard")};h(be(t.currentTarget),"keyup",N(i,n),!0)}r&&t.stopPropagation(),t.metaKey&&ce()&&(null===(o=e.metaKeyEvents)||void 0===o||o.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||Ye(t.currentTarget,Ze(t.nativeEvent)))&&t&&0===t.button&&!e.isTriggeringEvent&&!Ke.isOpening){let n=!0;if(s&&t.preventDefault(),e.ignoreEmulatedMouseEvents||e.isPressed||"virtual"!==e.pointerType&&!Qe(t.nativeEvent)){if(e.isPressed&&"keyboard"!==e.pointerType){let o=e.pointerType||t.nativeEvent.pointerType||"virtual";n=w(rt(t.currentTarget,t),o,!0),e.isOverTarget=!1,I(t)}}else{let e=y(t,"virtual"),o=E(t,"virtual"),r=w(t,"virtual");n=e&&o&&r}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&tt(t,e.target)){var o;at(Ze(t),t.key)&&t.preventDefault();let n=Ze(t);w(rt(e.target,t),"keyboard",Ye(e.target,Ze(t))),b(),"Enter"!==t.key&&et(e.target)&&Ye(e.target,n)&&!t[qe]&&(t[qe]=!0,Ke(e.target,t,!1)),e.isPressed=!1,null===(o=e.metaKeyEvents)||void 0===o||o.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var r;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(r=e.target)||void 0===r||r.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!Ye(t.currentTarget,Ze(t.nativeEvent)))return;if(r=t.nativeEvent,!ve()&&0===r.width&&0===r.height||1===r.width&&1===r.height&&0===r.pressure&&0===r.detail&&"mouse"===r.pointerType)return void(e.pointerType="virtual");var r;e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||Ne(e.target),i=y(t,e.pointerType);let r=Ze(t.nativeEvent);"releasePointerCapture"in r&&r.releasePointerCapture(t.pointerId),h(be(t.currentTarget),"pointerup",n,!1),h(be(t.currentTarget),"pointercancel",o,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(Ye(t.currentTarget,Ze(t.nativeEvent))&&0===t.button){if(u){let n=Ve(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{Ye(t.currentTarget,Ze(t.nativeEvent))&&"virtual"!==e.pointerType&&0===t.button&&E(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,y(rt(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,w(rt(e.target,t),e.pointerType,!1),C(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(Ye(e.target,Ze(t))&&null!=e.pointerType){let n=!1,o=setTimeout((()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?I(t):(_e(e.target),e.target.click()))}),80);h(t.currentTarget,"click",(()=>n=!0),!0),e.disposables.push((()=>clearTimeout(o)))}else I(t);e.isOverTarget=!1}},o=e=>{I(e)};t.onDragStart=e=>{Ye(e.currentTarget,Ze(e.nativeEvent))&&I(e)}}else{t.onMouseDown=t=>{if(0===t.button&&Ye(t.currentTarget,Ze(t.nativeEvent)))if(e.ignoreEmulatedMouseEvents)t.stopPropagation();else{if(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=Qe(t.nativeEvent)?"virtual":"mouse",(0,$e.flushSync)((()=>y(t,e.pointerType)))&&t.stopPropagation(),u){let n=Ve(t.target);n&&e.disposables.push(n)}h(be(t.currentTarget),"mouseup",n,!1)}},t.onMouseEnter=t=>{if(!Ye(t.currentTarget,Ze(t.nativeEvent)))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=y(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!Ye(t.currentTarget,Ze(t.nativeEvent)))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=w(t,e.pointerType,!1),C(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{Ye(t.currentTarget,Ze(t.nativeEvent))&&(e.ignoreEmulatedMouseEvents||0!==t.button||E(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&e.target.contains(t.target)&&null!=e.pointerType||I(t),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!Ye(t.currentTarget,Ze(t.nativeEvent)))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",d||Ne(e.target),y(ot(e.target,t),e.pointerType)&&t.stopPropagation(),h(ye(t.currentTarget),"scroll",o,!0))},t.onTouchMove=t=>{if(!Ye(t.currentTarget,Ze(t.nativeEvent)))return;if(!e.isPressed)return void t.stopPropagation();let n=nt(t.nativeEvent,e.activePointerId),o=!0;n&&it(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,o=y(ot(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,o=w(ot(e.target,t),e.pointerType,!1),C(ot(e.target,t))),o&&t.stopPropagation()},t.onTouchEnd=t=>{if(!Ye(t.currentTarget,Ze(t.nativeEvent)))return;if(!e.isPressed)return void t.stopPropagation();let n=nt(t.nativeEvent,e.activePointerId),o=!0;n&&it(n,t.currentTarget)&&null!=e.pointerType?(E(ot(e.target,t),e.pointerType),o=w(ot(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(o=w(ot(e.target,t),e.pointerType,!1)),o&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!d&&Le(e.target),b()},t.onTouchCancel=t=>{Ye(t.currentTarget,Ze(t.nativeEvent))&&(t.stopPropagation(),e.isPressed&&I(ot(e.target,t)))};let o=t=>{e.isPressed&&Ye(Ze(t),e.target)&&I({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{Ye(e.currentTarget,Ze(e.nativeEvent))&&I(e)}}return t}),[h,s,u,b,d,I,C,w,y,E]);return(0,e.useEffect)((()=>{let e=v.current;return()=>{var t;d||Le(null!==(t=e.target)&&void 0!==t?t:void 0);for(let t of e.disposables)t();e.disposables=[]}}),[d]),{isPressed:l||g,pressProps:K(f,M)}}({onPressStart:s,onPressEnd:l,onPressChange:c,onPress:a,onPressUp:u,isDisabled:i,preventFocusOnPress:d,ref:n}),{focusableProps:w}=Ot(t,n);p&&(w.tabIndex=i?-1:w.tabIndex);let E=K(w,b,ae(t,{labelable:!0}));return{isPressed:y,buttonProps:K(o,E,{"aria-haspopup":t["aria-haspopup"],"aria-expanded":t["aria-expanded"],"aria-controls":t["aria-controls"],"aria-pressed":t["aria-pressed"],"aria-current":t["aria-current"],onClick:e=>{f&&(f(e),console.warn("onClick is deprecated, please use onPress"))}})}}function At(t){let{isDisabled:n,onBlurWithin:o,onFocusWithin:r,onFocusWithinChange:i}=t,a=(0,e.useRef)({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:l}=Ge(),u=(0,e.useCallback)((e=>{e.currentTarget.contains(e.target)&&a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,l(),o&&o(e),i&&i(!1))}),[o,i,a,l]),c=Fe(u),d=(0,e.useCallback)((e=>{if(!e.currentTarget.contains(e.target))return;const t=be(e.target),n=Ue(t);if(!a.current.isFocusWithin&&n===Ze(e.nativeEvent)){r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,c(e);let n=e.currentTarget;s(t,"focus",(e=>{if(a.current.isFocusWithin&&!Ye(n,e.target)){let o=new Re("blur",new t.defaultView.FocusEvent("blur",{relatedTarget:e.target}));o.target=n,o.currentTarget=n,u(o)}}),{capture:!0})}}),[r,i,c,s,u]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}function Dt(t={}){let{autoFocus:n=!1,isTextInput:o,within:r}=t,i=(0,e.useRef)({isFocused:!1,isFocusVisible:n||Ct()}),[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,o){Et(),(0,e.useEffect)((()=>{let e=(e,n)=>{(function(e,t,n){let o=be(null==n?void 0:n.target);const r="undefined"!=typeof window?ye(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?ye(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?ye(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?ye(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||o.activeElement instanceof r&&!Tt.has(o.activeElement.type)||o.activeElement instanceof i||o.activeElement instanceof a&&o.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof s&&!gt[n.key])})(!!(null==o?void 0:o.isTextInput),e,n)&&t(Ct())};return ct.add(e),()=>{ct.delete(e)}}),n)}((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:o});let{focusProps:p}=Nt({isDisabled:r,onFocusChange:d}),{focusWithinProps:f}=At({isDisabled:!r,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:r?f:p}}let kt=!1,_t=0;function jt(){kt=!0,setTimeout((()=>{kt=!1}),50)}function Rt(e){"touch"===e.pointerType&&jt()}function Ft(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Rt):document.addEventListener("touchend",jt),_t++,()=>{_t--,_t>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Rt):document.removeEventListener("touchend",jt))}}if("undefined"!=typeof HTMLTemplateElement){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const zt=(0,e.createContext)(!1),Vt=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Bt=(0,e.createContext)({}),Ht=function(t){let n=(n,o)=>(0,e.useContext)(zt)?null:t(n,o);return n.displayName=t.displayName||t.name,(0,e.forwardRef)(n)}((function(t,n){[t,n]=J(t,n,Bt);let o=t=function(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}(t),{isPending:r}=o,{buttonProps:i,isPressed:a}=Pt(t,n),{focusProps:s,isFocused:l,isFocusVisible:u}=Dt(t),{hoverProps:c,isHovered:d}=function(t){let{onHoverStart:n,onHoverChange:o,onHoverEnd:r,isDisabled:i}=t,[a,s]=(0,e.useState)(!1),l=(0,e.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,e.useEffect)(Ft,[]);let{addGlobalListener:u,removeAllGlobalListeners:c}=Ge(),{hoverProps:d,triggerHoverEnd:p}=(0,e.useMemo)((()=>{let e=(e,r)=>{if(l.pointerType=r,i||"touch"===r||l.isHovered||!e.currentTarget.contains(e.target))return;l.isHovered=!0;let a=e.currentTarget;l.target=a,u(be(e.target),"pointerover",(e=>{l.isHovered&&l.target&&!Ye(l.target,e.target)&&t(e,e.pointerType)}),{capture:!0}),n&&n({type:"hoverstart",target:a,pointerType:r}),o&&o(!0),s(!0)},t=(e,t)=>{let n=l.target;l.pointerType="",l.target=null,"touch"!==t&&l.isHovered&&n&&(l.isHovered=!1,c(),r&&r({type:"hoverend",target:n,pointerType:t}),o&&o(!1),s(!1))},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{kt&&"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||kt||e(t,"mouse"),l.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&t(e,"mouse")}),{hoverProps:a,triggerHoverEnd:t}}),[n,o,r,i,l,u,c]);return(0,e.useEffect)((()=>{i&&p({currentTarget:l.target},l.pointerType)}),[i]),{hoverProps:d,isHovered:a}}({...t,isDisabled:t.isDisabled||r}),p={isHovered:d,isPressed:(o.isPressed||a)&&!r,isFocused:l,isFocusVisible:u,isDisabled:t.isDisabled||!1,isPending:null!=r&&r},f=X({...t,values:p,defaultClassName:"react-aria-Button"}),g=W(i.id),m=W(),v=i["aria-labelledby"];r&&(v?v=`${v} ${m}`:i["aria-label"]&&(v=`${g} ${m}`));let h=(0,e.useRef)(r);return(0,e.useEffect)((()=>{let e={"aria-labelledby":v||g};(!h.current&&l&&r||h.current&&l&&!r)&&function(e,t="assertive",n=7e3){ee?ee.announce(e,t,n):(ee=new te,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?ee.announce(e,t,n):setTimeout((()=>{(null==ee?void 0:ee.isAttached())&&(null==ee||ee.announce(e,t,n))}),100))}(e,"assertive"),h.current=r}),[r,l,v,g]),e.createElement("button",{...ae(t,{propNames:Vt}),...K(i,s,c),...f,type:"submit"===i.type&&r?"button":i.type,id:g,ref:n,"aria-labelledby":v,slot:t.slot||void 0,"aria-disabled":r?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":d||void 0,"data-focused":l||void 0,"data-pending":r||void 0,"data-focus-visible":u||void 0},e.createElement(q.Provider,{value:{id:m}},f.children))}));(0,e.createContext)(null),(0,e.createContext)(null),(0,e.createContext)(null),(0,e.createContext)(null),(0,e.createContext)(null);const Wt=(0,e.createContext)({}),Gt=(0,e.createContext)({});function Yt({children:t}){let n=(0,e.useMemo)((()=>({register:()=>{}})),[]);return e.createElement(xe.Provider,{value:n},t)}function Ut(e,t){return"#comment"!==e.nodeName&&function(e){const t=ye(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:o}=e.style,r="none"!==n&&"hidden"!==o&&"collapse"!==o;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")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||Ut(e.parentElement,e))}const Zt=e.createContext(null),Kt="react-aria-focus-scope-restore";let Qt=null;function $t(t){let{children:n,contain:o,restoreFocus:r,autoFocus:i}=t,a=(0,e.useRef)(null),s=(0,e.useRef)(null),l=(0,e.useRef)([]),{parentNode:u}=(0,e.useContext)(Zt)||{},c=(0,e.useMemo)((()=>new dn({scopeRef:l})),[l]);L((()=>{let e=u||pn.root;if(pn.getTreeNode(e.scopeRef)&&Qt&&!nn(Qt,e.scopeRef)){let t=pn.getTreeNode(Qt);t&&(e=t)}e.addChild(c),pn.addNode(c)}),[c,u]),L((()=>{let e=pn.getTreeNode(l);e&&(e.contain=!!o)}),[o]),L((()=>{var e;let t=null===(e=a.current)||void 0===e?void 0:e.nextSibling,n=[],o=e=>e.stopPropagation();for(;t&&t!==s.current;)n.push(t),t.addEventListener(Kt,o),t=t.nextSibling;return l.current=n,()=>{for(let e of n)e.removeEventListener(Kt,o)}}),[n]),function(e,t,n){L((()=>{if(t||n)return;let o=e.current;const r=be(o?o[0]:void 0);let i=t=>{let n=Ze(t);en(n,e.current)?Qt=e:qt(n)||(Qt=null)};return r.addEventListener("focusin",i,!1),null==o||o.forEach((e=>e.addEventListener("focusin",i,!1))),()=>{r.removeEventListener("focusin",i,!1),null==o||o.forEach((e=>e.removeEventListener("focusin",i,!1)))}}),[e,t,n])}(l,r,o),function(t,n){let o=(0,e.useRef)(void 0),r=(0,e.useRef)(void 0);L((()=>{let e=t.current;if(!n)return void(r.current&&(cancelAnimationFrame(r.current),r.current=void 0));const i=be(e?e[0]:void 0);let a=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!Jt(t)||e.isComposing)return;let n=Ue(i),o=t.current;if(!o||!en(n,o))return;let r=un(Xt(o),{tabbable:!0},o);if(!n)return;r.currentNode=n;let a=e.shiftKey?r.previousNode():r.nextNode();a||(r.currentNode=e.shiftKey?o[o.length-1].nextElementSibling:o[0].previousElementSibling,a=e.shiftKey?r.previousNode():r.nextNode()),e.preventDefault(),a&&on(a,!0)},s=e=>{Qt&&!nn(Qt,t)||!en(Ze(e),t.current)?Jt(t)&&!tn(Ze(e),t)?o.current?o.current.focus():Qt&&Qt.current&&an(Qt.current):Jt(t)&&(o.current=Ze(e)):(Qt=t,o.current=Ze(e))},l=e=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame((()=>{let n=Mt(),r=("virtual"===n||null===n)&&ve()&&me(),a=Ue(i);if(!r&&a&&Jt(t)&&!tn(a,t)){Qt=t;let n=Ze(e);var s;n&&n.isConnected?(o.current=n,null===(s=o.current)||void 0===s||s.focus()):Qt.current&&an(Qt.current)}}))};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),null==e||e.forEach((e=>e.addEventListener("focusin",s,!1))),null==e||e.forEach((e=>e.addEventListener("focusout",l,!1))),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),null==e||e.forEach((e=>e.removeEventListener("focusin",s,!1))),null==e||e.forEach((e=>e.removeEventListener("focusout",l,!1)))}}),[t,n]),L((()=>()=>{r.current&&cancelAnimationFrame(r.current)}),[r])}(l,o),function(t,n,o){const r=(0,e.useRef)("undefined"!=typeof document?Ue(be(t.current?t.current[0]:void 0)):null);L((()=>{let e=t.current;const r=be(e?e[0]:void 0);if(!n||o)return;let i=()=>{Qt&&!nn(Qt,t)||!en(Ue(r),t.current)||(Qt=t)};return r.addEventListener("focusin",i,!1),null==e||e.forEach((e=>e.addEventListener("focusin",i,!1))),()=>{r.removeEventListener("focusin",i,!1),null==e||e.forEach((e=>e.removeEventListener("focusin",i,!1)))}}),[t,o]),L((()=>{const e=be(t.current?t.current[0]:void 0);if(!n)return;let r=n=>{if("Tab"!==n.key||n.altKey||n.ctrlKey||n.metaKey||!Jt(t)||n.isComposing)return;let o=e.activeElement;if(!tn(o,t)||!sn(t))return;let r=pn.getTreeNode(t);if(!r)return;let i=r.nodeToRestore,a=un(e.body,{tabbable:!0});a.currentNode=o;let s=n.shiftKey?a.previousNode():a.nextNode();if(i&&i.isConnected&&i!==e.body||(i=void 0,r.nodeToRestore=void 0),(!s||!tn(s,t))&&i){a.currentNode=i;do{s=n.shiftKey?a.previousNode():a.nextNode()}while(tn(s,t));n.preventDefault(),n.stopPropagation(),s?on(s,!0):qt(i)?on(i,!0):o.blur()}};return o||e.addEventListener("keydown",r,!0),()=>{o||e.removeEventListener("keydown",r,!0)}}),[t,n,o]),L((()=>{const e=be(t.current?t.current[0]:void 0);if(!n)return;let o=pn.getTreeNode(t);var i;return o?(o.nodeToRestore=null!==(i=r.current)&&void 0!==i?i:void 0,()=>{let o=pn.getTreeNode(t);if(!o)return;let r=o.nodeToRestore,i=Ue(e);if(n&&r&&(i&&tn(i,t)||i===e.body&&sn(t))){let n=pn.clone();requestAnimationFrame((()=>{if(e.activeElement===e.body){let e=n.getTreeNode(t);for(;e;){if(e.nodeToRestore&&e.nodeToRestore.isConnected)return void ln(e.nodeToRestore);e=e.parent}for(e=n.getTreeNode(t);e;){if(e.scopeRef&&e.scopeRef.current&&pn.getTreeNode(e.scopeRef))return void ln(rn(e.scopeRef.current,!0));e=e.parent}}}))}}):void 0}),[t,n])}(l,r,o),function(t,n){const o=e.useRef(n);(0,e.useEffect)((()=>{if(o.current){Qt=t;const e=be(t.current?t.current[0]:void 0);!en(Ue(e),Qt.current)&&t.current&&an(t.current)}o.current=!1}),[t])}(l,i),(0,e.useEffect)((()=>{const e=Ue(be(l.current?l.current[0]:void 0));let t=null;if(en(e,l.current)){for(let n of pn.traverse())n.scopeRef&&en(e,n.scopeRef.current)&&(t=n);t===pn.getTreeNode(l)&&(Qt=t.scopeRef)}}),[l]),L((()=>()=>{var e,t,n;let o=null!==(n=null===(t=pn.getTreeNode(l))||void 0===t||null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;l!==Qt&&!nn(l,Qt)||o&&!pn.getTreeNode(o)||(Qt=o),pn.removeTreeNode(l)}),[l]);let d=(0,e.useMemo)((()=>function(e){return{focusNext(t={}){let n=e.current,{from:o,tabbable:r,wrap:i,accept:a}=t;var s;let l=o||Ue(be(null!==(s=n[0])&&void 0!==s?s:void 0)),u=n[0].previousElementSibling,c=un(Xt(n),{tabbable:r,accept:a},n);c.currentNode=en(l,n)?l:u;let d=c.nextNode();return!d&&i&&(c.currentNode=u,d=c.nextNode()),d&&on(d,!0),d},focusPrevious(t={}){let n=e.current,{from:o,tabbable:r,wrap:i,accept:a}=t;var s;let l=o||Ue(be(null!==(s=n[0])&&void 0!==s?s:void 0)),u=n[n.length-1].nextElementSibling,c=un(Xt(n),{tabbable:r,accept:a},n);c.currentNode=en(l,n)?l:u;let d=c.previousNode();return!d&&i&&(c.currentNode=u,d=c.previousNode()),d&&on(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:o,accept:r}=t,i=un(Xt(n),{tabbable:o,accept:r},n);i.currentNode=n[0].previousElementSibling;let a=i.nextNode();return a&&on(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:o,accept:r}=t,i=un(Xt(n),{tabbable:o,accept:r},n);i.currentNode=n[n.length-1].nextElementSibling;let a=i.previousNode();return a&&on(a,!0),a}}}(l)),[]),p=(0,e.useMemo)((()=>({focusManager:d,parentNode:c})),[c,d]);return e.createElement(Zt.Provider,{value:p},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}))}function Xt(e){return e[0].parentElement}function Jt(e){let t=pn.getTreeNode(Qt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function qt(e){return tn(e)}function en(e,t){return!!e&&!!t&&t.some((t=>t.contains(e)))}function tn(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of pn.traverse(pn.getTreeNode(t)))if(n&&en(e,n.current))return!0;return!1}function nn(e,t){var n;let o=null===(n=pn.getTreeNode(t))||void 0===n?void 0:n.parent;for(;o;){if(o.scopeRef===e)return!0;o=o.parent}return!1}function on(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{St(e)}catch{}}function rn(e,t=!0){let n=e[0].previousElementSibling,o=Xt(e),r=un(o,{tabbable:t},e);r.currentNode=n;let i=r.nextNode();return t&&!i&&(o=Xt(e),r=un(o,{tabbable:!1},e),r.currentNode=n,i=r.nextNode()),i}function an(e,t=!0){on(rn(e,t))}function sn(e){let t=pn.getTreeNode(Qt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function ln(e){e.dispatchEvent(new CustomEvent(Kt,{bubbles:!0,cancelable:!0}))&&on(e)}function un(e,t,n){let o=(null==t?void 0:t.tabbable)?ke:De,r=(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=be(r),a=function(e,t,n,o){return e.createTreeWalker(t,n,o)}(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var r;return(null==t||null===(r=t.from)||void 0===r?void 0:r.contains(e))?NodeFilter.FILTER_REJECT:!o(e)||!Ut(e)||n&&!en(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(a.currentNode=t.from),a}class cn{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let o=this.fastMap.get(null!=t?t:null);if(!o)return;let r=new dn({scopeRef:e});o.addChild(r),r.parent=o,this.fastMap.set(e,r),n&&(r.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&en(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let o=t.children;n&&(n.removeChild(t),o.size>0&&o.forEach((e=>n&&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(){var e;let t=new cn;var n;for(let o of this.traverse())t.addTreeNode(o.scopeRef,null!==(n=null===(e=o.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,o.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new dn({scopeRef:null}),this.fastMap.set(null,this.root)}}class dn{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 pn=new cn;const fn=e.createContext(null);function gn(t){let n=z(),{portalContainer:o=(n?null:document.body),isExiting:r}=t,[i,a]=(0,e.useState)(!1),s=(0,e.useMemo)((()=>({contain:i,setContain:a})),[i,a]),{getContainer:l}=null!==(u=(0,e.useContext)(Gt))&&void 0!==u?u:{};var u;if(!t.portalContainer&&l&&(o=l()),!o)return null;let c=t.children;return t.disableFocusManagement||(c=e.createElement($t,{restoreFocus:!0,contain:(t.shouldContainFocus||i)&&!r},c)),c=e.createElement(fn.Provider,{value:s},e.createElement(Yt,null,c)),$e.createPortal(c,o)}function mn(){let t=(0,e.useContext)(fn),n=null==t?void 0:t.setContain;L((()=>{null==n||n(!0)}),[n])}const vn=(0,e.createContext)(null),hn=(0,e.createContext)(null),bn=(0,e.forwardRef)((function(t,n){let o=t["aria-labelledby"];[t,n]=J(t,n,vn);let{dialogProps:r,titleProps:i}=function(t,n){let{role:o="dialog"}=t,r=Y();r=t["aria-label"]?void 0:r;let i=(0,e.useRef)(!1);return(0,e.useEffect)((()=>{if(n.current&&!n.current.contains(document.activeElement)){St(n.current);let e=setTimeout((()=>{document.activeElement===n.current&&(i.current=!0,n.current&&(n.current.blur(),St(n.current)),i.current=!1)}),500);return()=>{clearTimeout(e)}}}),[n]),mn(),{dialogProps:{...ae(t,{labelable:!0}),role:o,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}({...t,"aria-labelledby":o},n),a=(0,e.useContext)(hn);r["aria-label"]||r["aria-labelledby"]||(t["aria-labelledby"]?r["aria-labelledby"]=t["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=X({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(null==a?void 0:a.close)||(()=>{})}});return e.createElement("section",{...ae(t),...r,...s,ref:n,slot:t.slot||void 0},e.createElement($,{values:[[Wt,{slots:{[Q]:{},title:{...i,level:2}}}],[Bt,{slots:{[Q]:{},close:{onPress:()=>null==a?void 0:a.close()}}}]]},s.children))}));let yn=new WeakMap,wn=[];function En(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&&!e.composedPath().includes(t.current)}const In=[];function Cn(t,n){let{onClose:o,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:l}=t;(0,e.useEffect)((()=>{if(i&&!In.includes(n))return In.push(n),()=>{let e=In.indexOf(n);e>=0&&In.splice(e,1)}}),[i,n]);let u=()=>{In[In.length-1]===n&&o&&o()};!function(t){let{ref:n,onInteractOutside:o,isDisabled:r,onInteractOutsideStart:i}=t,a=(0,e.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=x((e=>{o&&En(e,n)&&(i&&i(e),a.current.isPointerDown=!0)})),l=x((e=>{o&&o(e)}));(0,e.useEffect)((()=>{let e=a.current;if(r)return;const t=n.current,o=be(t);if("undefined"!=typeof PointerEvent){let t=t=>{e.isPointerDown&&En(t,n)&&l(t),e.isPointerDown=!1};return o.addEventListener("pointerdown",s,!0),o.addEventListener("pointerup",t,!0),()=>{o.removeEventListener("pointerdown",s,!0),o.removeEventListener("pointerup",t,!0)}}{let t=t=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&En(t,n)&&l(t),e.isPointerDown=!1},r=t=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&En(t,n)&&l(t),e.isPointerDown=!1};return o.addEventListener("mousedown",s,!0),o.addEventListener("mouseup",t,!0),o.addEventListener("touchstart",s,!0),o.addEventListener("touchend",r,!0),()=>{o.removeEventListener("mousedown",s,!0),o.removeEventListener("mouseup",t,!0),o.removeEventListener("touchstart",s,!0),o.removeEventListener("touchend",r,!0)}}}),[n,r,s,l])}({ref:n,onInteractOutside:a&&i?e=>{l&&!l(e.target)||(In[In.length-1]===n&&(e.stopPropagation(),e.preventDefault()),u())}:void 0,onInteractOutsideStart:e=>{l&&!l(e.target)||In[In.length-1]===n&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=At({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&!tn(e.relatedTarget,Qt)&&(l&&!l(e.relatedTarget)||null==o||o())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||s||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),u())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}function Mn(e,t){if(!e)return!1;let n=window.getComputedStyle(e),o=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return o&&t&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}function Tn(e,t){let n=e;for(Mn(n,t)&&(n=n.parentElement);n&&!Mn(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}const Sn="undefined"!=typeof document&&window.visualViewport,Nn=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Ln,xn=0;function On(e,t,n){let o=e.style[t];return e.style[t]=n,()=>{e.style[t]=o}}function Pn(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function An(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=Tn(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>t+n.clientHeight&&(e.scrollTop+=o-t)}n=e.parentElement}}function Dn(t,n,o){let{overlayProps:r,underlayProps:i}=Cn({...t,isOpen:n.isOpen,onClose:n.close},o);return function(e={}){let{isDisabled:t}=e;L((()=>{if(!t)return xn++,1===xn&&(Ln=fe()?function(){let e,t,n=null,o=()=>{if(n)return;let e=window.pageXOffset,t=window.pageYOffset;n=N(Pn(window,"scroll",(()=>{window.scrollTo(0,0)})),On(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),On(document.documentElement,"overflow","hidden"),On(document.body,"marginTop",`-${t}px`),(()=>{window.scrollTo(e,t)})),window.scrollTo(0,0)},r=N(Pn(document,"touchstart",(n=>{e=Tn(n.target,!0),e===document.documentElement&&e===document.body||e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=On(e,"overscrollBehavior","contain"))}),{passive:!1,capture:!0}),Pn(document,"touchmove",(t=>{e&&e!==document.documentElement&&e!==document.body?e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault():t.preventDefault()}),{passive:!1,capture:!0}),Pn(document,"touchend",(()=>{t&&t()}),{passive:!1,capture:!0}),Pn(document,"focus",(e=>{let t=e.target;(function(e){return e instanceof HTMLInputElement&&!Nn.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable})(t)&&(o(),t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",Sn&&(Sn.height<window.innerHeight?requestAnimationFrame((()=>{An(t)})):Sn.addEventListener("resize",(()=>An(t)),{once:!0}))})))}),!0));return()=>{null==t||t(),null==n||n(),r()}}():N(On(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),On(document.documentElement,"overflow","hidden"))),()=>{xn--,0===xn&&Ln()}}),[t])}({isDisabled:!n.isOpen}),mn(),(0,e.useEffect)((()=>{if(n.isOpen&&o.current)return function(e,t=document.body){let n=new Set(e),o=new Set,r=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)||e.parentElement&&o.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},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),a=t(e);if(a===NodeFilter.FILTER_ACCEPT&&i(e),a!==NodeFilter.FILTER_REJECT){let e=r.nextNode();for(;null!=e;)i(e),e=r.nextNode()}},i=e=>{var t;let n=null!==(t=yn.get(e))&&void 0!==t?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),o.add(e),yn.set(e,n+1))};wn.length&&wn[wn.length-1].disconnect(),r(t);let a=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...o].some((e=>e.contains(t.target)))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),o.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&&r(e):n.add(e)}}));a.observe(t,{childList:!0,subtree:!0});let s={visibleNodes:n,hiddenNodes:o,observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return wn.push(s),()=>{a.disconnect();for(let e of o){let t=yn.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),yn.delete(e)):yn.set(e,t-1))}s===wn[wn.length-1]?(wn.pop(),wn.length&&wn[wn.length-1].observe()):wn.splice(wn.indexOf(s),1)}}([o.current])}),[n.isOpen,o]),{modalProps:K(r),underlayProps:i}}var kn;kn={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"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:"關閉"}};const jn=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Rn=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Fn(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return jn.has(t.script)}let t=e.split("-")[0];return Rn.has(t)}const zn=Symbol.for("react-aria.i18n.locale");function Vn(){let e="undefined"!=typeof window&&window[zn]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Fn(e)?"rtl":"ltr"}}let Bn=Vn(),Hn=new Set;function Wn(){Bn=Vn();for(let e of Hn)e(Bn)}const Gn=e.createContext(null);function Yn(){let t=function(){let t=z(),[n,o]=(0,e.useState)(Bn);return(0,e.useEffect)((()=>(0===Hn.size&&window.addEventListener("languagechange",Wn),Hn.add(o),()=>{Hn.delete(o),0===Hn.size&&window.removeEventListener("languagechange",Wn)})),[]),t?{locale:"en-US",direction:"ltr"}:n}();return(0,e.useContext)(Gn)||t}const Un=Symbol.for("react-aria.i18n.locale"),Zn=Symbol.for("react-aria.i18n.strings");let Kn;class Qn{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw new Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){if(t[e])return t[e];let o=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[o])return t[o];for(let e in t)if(e.startsWith(o+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[Un];if(void 0===Kn){let e=window[Zn];if(!e)return null;Kn={};for(let n in e)Kn[n]=new Qn({[t]:e[n]},t)}let n=null==Kn?void 0:Kn[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter((([,e])=>e))),this.defaultLocale=t}}const $n=new Map,Xn=new Map;class Jn{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 o=t["="+e];if(o)return"function"==typeof o?o():o;let r=this.locale+":"+n,i=$n.get(r);return i||(i=new Intl.PluralRules(this.locale,{type:n}),$n.set(r,i)),o=t[i.select(e)]||t.other,"function"==typeof o?o():o}number(e){let t=Xn.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),Xn.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 qn=new WeakMap;function eo(t,n){let{locale:o}=Yn(),r=function(e,t){return t&&Qn.getGlobalDictionaryForPackage(t)||function(e){let t=qn.get(e);return t||(t=new Qn(e),qn.set(e,t)),t}(e)}(t,n);return(0,e.useMemo)((()=>new Jn(o,r)),[o,r])}const to={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 no(t){let{children:n,elementType:o="div",isFocusable:r,style:i,...a}=t,{visuallyHiddenProps:s}=function(t={}){let{style:n,isFocusable:o}=t,[r,i]=(0,e.useState)(!1),{focusWithinProps:a}=At({isDisabled:!o,onFocusWithinChange:e=>i(e)});return{visuallyHiddenProps:{...a,style:(0,e.useMemo)((()=>r?n:n?{...to,...n}:to),[r])}}}(t);return e.createElement(o,K(a,s),n)}function oo(t){let{onDismiss:n,...o}=t;var r;let i=function(e,t){let{id:n,"aria-label":o,"aria-labelledby":r}=e;if(n=W(n),r&&o){let e=new Set([n,...r.trim().split(/\s+/)]);r=[...e].join(" ")}else r&&(r=r.trim().split(/\s+/).join(" "));return o||r||!t||(o=t),{id:n,"aria-label":o,"aria-labelledby":r}}(o,eo((r=kn)&&r.__esModule?r.default:r,"@react-aria/overlays").format("dismiss"));return e.createElement(no,null,e.createElement("button",{...i,tabIndex:-1,onClick:()=>{n&&n()},style:{width:1,height:1}}))}function ro(t,n=!0){let[o,r]=(0,e.useState)(!0),i=o&&n;return L((()=>{if(i&&t.current&&"getAnimations"in t.current)for(let e of t.current.getAnimations())e instanceof CSSTransition&&e.cancel()}),[t,i]),ao(t,i,(0,e.useCallback)((()=>r(!1)),[])),i}function io(t,n){let[o,r]=(0,e.useState)(n?"open":"closed");switch(o){case"open":n||r("exiting");break;case"closed":case"exiting":n&&r("open")}let i="exiting"===o;return ao(t,i,(0,e.useCallback)((()=>{r((e=>"exiting"===e?"closed":e))}),[])),i}function ao(e,t,n){L((()=>{if(t&&e.current){if(!("getAnimations"in e.current))return void n();let t=e.current.getAnimations();if(0===t.length)return void n();let o=!1;return Promise.all(t.map((e=>e.finished))).then((()=>{o||(0,$e.flushSync)((()=>{n()}))})).catch((()=>{})),()=>{o=!0}}}),[e,t,n])}let so="undefined"!=typeof document&&window.visualViewport;function lo(){return{width:so&&(null==so?void 0:so.width)||window.innerWidth,height:so&&(null==so?void 0:so.height)||window.innerHeight}}function uo(t){let[n,o]=function(t,n,o){let[r,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:r,u=(0,e.useCallback)(((e,...t)=>{let n=(e,...t)=>{o&&(Object.is(l,e)||o(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(((o,...r)=>{let i=e(s?l:o,...r);return n(i,...t),s?o:i}))):(s||i(e),n(e,...t))}),[s,l,o]);return[l,u]}(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=(0,e.useCallback)((()=>{o(!0)}),[o]),i=(0,e.useCallback)((()=>{o(!1)}),[o]),a=(0,e.useCallback)((()=>{o(!n)}),[o,n]);return{isOpen:n,setOpen:o,open:r,close:i,toggle:a}}const co=(0,e.createContext)(null),po=(0,e.createContext)(null),fo=(0,e.forwardRef)((function(t,n){if((0,e.useContext)(po))return e.createElement(ho,{...t,modalRef:n},t.children);let{isDismissable:o,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,isEntering:u,isExiting:c,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:p,...f}=t;return e.createElement(mo,{isDismissable:o,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:s,isEntering:u,isExiting:c,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:p},e.createElement(ho,{...f,modalRef:n},l))}));function go(t,n){[t,n]=J(t,n,co);let o=(0,e.useContext)(hn),r=uo(t),i=null==t.isOpen&&null==t.defaultOpen&&o?o:r,a=T(n),s=(0,e.useRef)(null),l=io(a,i.isOpen),u=io(s,i.isOpen),c=l||u||t.isExiting||!1,d=z();return!i.isOpen&&!c||d?null:e.createElement(vo,{...t,state:i,isExiting:c,overlayRef:a,modalRef:s})}const mo=(0,e.forwardRef)(go);function vo({UNSTABLE_portalContainer:t,...n}){let o=n.modalRef,{state:r}=n,{modalProps:i,underlayProps:a}=Dn(n,r,o),s=ro(n.overlayRef)||n.isEntering||!1,l=X({...n,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:s,isExiting:n.isExiting,state:r}}),u=function(){let t=z(),[n,o]=(0,e.useState)((()=>t?{width:0,height:0}:lo()));return(0,e.useEffect)((()=>{let e=()=>{o((e=>{let t=lo();return t.width===e.width&&t.height===e.height?e:t}))};return so?so.addEventListener("resize",e):window.addEventListener("resize",e),()=>{so?so.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),n}(),c={...l.style,"--visual-viewport-height":u.height+"px"};return e.createElement(gn,{isExiting:n.isExiting,portalContainer:t},e.createElement("div",{...K(ae(n),a),...l,style:c,ref:n.overlayRef,"data-entering":s||void 0,"data-exiting":n.isExiting||void 0},e.createElement($,{values:[[po,{modalProps:i,modalRef:o,isExiting:n.isExiting,isDismissable:n.isDismissable}],[hn,r]]},l.children)))}function ho(t){let{modalProps:n,modalRef:o,isExiting:r,isDismissable:i}=(0,e.useContext)(po),a=(0,e.useContext)(hn),s=T((0,e.useMemo)((()=>S(t.modalRef,o)),[t.modalRef,o])),l=ro(s),u=X({...t,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:a}});return e.createElement("div",{...K(ae(t),n),...u,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},i&&e.createElement(oo,{onDismiss:a.close}),u.children)}function bo(){return(0,e.createElement)(g.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)(g.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 yo({dataSrc:t,embedId:n,buttonText:r,isFormRedirect:i,formViewUrl:a}){const[s,l]=(0,M.useState)(t),[u,c]=(0,M.useState)(i),[d,p]=(0,M.useState)(!1),[f,m]=(0,M.useState)(!1);(0,M.useEffect)((()=>{const e=e=>{"Escape"===e.key&&u&&h()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[u]),(0,M.useEffect)((()=>{const e=`link[rel="preload"][href="${s}"][as="document"]`;if(!document.querySelector(e)){const e=document.createElement("link");e.rel="preload",e.href=s,e.as="document",document.head.appendChild(e)}return()=>{const t=document.querySelector(e);t&&document.head.removeChild(t)}}),[s]),(0,M.useEffect)((()=>{f&&!d&&b()}),[f,d]);const v=()=>{!u&&i&&l(a)},h=()=>{c(!1),p(!1),v()},b=()=>{setTimeout((()=>{m(!1)}),2e3)};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ht,{type:"button",className:"givewp-donation-form-modal__open",onPress:()=>{m(!0),c(!0),p(!0),v()},isPending:d,"aria-label":d?(0,o.__)("Loading donation form","give"):(0,o.__)("Open donation form","give")},d&&(0,e.createElement)("span",{className:"givewp-donation-form-modal__open__spinner"},(0,e.createElement)(g.Spinner,{style:{margin:"0 auto",verticalAlign:"middle"},"aria-label":(0,o.__)("In progress","give")})),(0,e.createElement)("span",{style:{margin:"0",visibility:d?"hidden":"visible"},"aria-hidden":d},r)),(0,e.createElement)(mo,{className:"givewp-donation-form-modal__overlay","data-loading":d,isOpen:u,onOpenChange:c,isDismissable:!0,isEntering:f},(0,e.createElement)(fo,{className:"givewp-donation-form-modal","data-loading":d},(0,e.createElement)($t,{contain:!0,restoreFocus:!0,autoFocus:!0},(0,e.createElement)(bn,{className:"givewp-donation-form-modal__dialog","aria-label":(0,o.__)("Donation Form","give"),role:"dialog","aria-modal":"true"},(0,e.createElement)("button",{"aria-label":(0,o.__)("Close donation form","give"),type:"button",className:"givewp-donation-form-modal__close",onClick:h,tabIndex:0},(0,e.createElement)(bo,null)),(0,e.createElement)("div",{className:"givewp-donation-form-modal__dialog__content"},(0,e.createElement)(C,{title:(0,o.__)("Donation Form","give"),id:n,src:s,checkOrigin:!1,heightCalculationMethod:"taggedElement",style:{minWidth:"100%",border:"none"},onInit:e=>{e.iFrameResizer.resize(),p(!1)}})))))))}function wo({clientId:t,formId:n,formFormat:r,openFormButton:i,link:a}){const s=(0,f.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]),l=s?.clientId===t?"auto":"none",u="modal"===r||"reveal"===r;return"newTab"===r?(0,e.createElement)("a",{className:"givewp-donation-form-link",href:a,target:"_blank",rel:"noopener noreferrer"},i):u?(0,e.createElement)(yo,{dataSrc:`/?givewp-route=donation-form-view&form-id=${n}`,embedId:"",buttonText:i,isFormRedirect:!1,formViewUrl:""}):(0,e.createElement)(C,{title:(0,o.__)("Donation Form","give"),src:`/?givewp-route=donation-form-view&form-id=${n}`,checkOrigin:!1,style:{width:"1px",minWidth:"100%",border:"0",pointerEvents:l}})}function Eo(e){return Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eo(e)}function Io(e){var t=function(e){if("object"!=Eo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Eo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Eo(t)?t:t+""}function Co(e,t,n){return(t=Io(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(n),!0).forEach((function(t){Co(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function So(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function No(e,t){if(e){if("string"==typeof e)return So(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?So(e,t):void 0}}function Lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(e,t)||No(e,t)||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 xo(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Oo=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Po(){return Po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Po.apply(null,arguments)}function Ao(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Io(o.key),o)}}function Do(e,t){return Do=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Do(e,t)}function ko(e){return ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ko(e)}function _o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_o=function(){return!!e})()}function jo(e){return function(e){if(Array.isArray(e))return So(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||No(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ro=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Fo=Math.abs,zo=String.fromCharCode,Vo=Object.assign;function Bo(e){return e.trim()}function Ho(e,t,n){return e.replace(t,n)}function Wo(e,t){return e.indexOf(t)}function Go(e,t){return 0|e.charCodeAt(t)}function Yo(e,t,n){return e.slice(t,n)}function Uo(e){return e.length}function Zo(e){return e.length}function Ko(e,t){return t.push(e),e}var Qo=1,$o=1,Xo=0,Jo=0,qo=0,er="";function tr(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Qo,column:$o,length:a,return:""}}function nr(e,t){return Vo(tr("",null,null,"",null,null,0),e,{length:-e.length},t)}function or(){return qo=Jo>0?Go(er,--Jo):0,$o--,10===qo&&($o=1,Qo--),qo}function rr(){return qo=Jo<Xo?Go(er,Jo++):0,$o++,10===qo&&($o=1,Qo++),qo}function ir(){return Go(er,Jo)}function ar(){return Jo}function sr(e,t){return Yo(er,e,t)}function lr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ur(e){return Qo=$o=1,Xo=Uo(er=e),Jo=0,[]}function cr(e){return er="",e}function dr(e){return Bo(sr(Jo-1,gr(91===e?e+2:40===e?e+1:e)))}function pr(e){for(;(qo=ir())&&qo<33;)rr();return lr(e)>2||lr(qo)>3?"":" "}function fr(e,t){for(;--t&&rr()&&!(qo<48||qo>102||qo>57&&qo<65||qo>70&&qo<97););return sr(e,ar()+(t<6&&32==ir()&&32==rr()))}function gr(e){for(;rr();)switch(qo){case e:return Jo;case 34:case 39:34!==e&&39!==e&&gr(qo);break;case 40:41===e&&gr(e);break;case 92:rr()}return Jo}function mr(e,t){for(;rr()&&e+qo!==57&&(e+qo!==84||47!==ir()););return"/*"+sr(t,Jo-1)+"*"+zo(47===e?e:rr())}function vr(e){for(;!lr(ir());)rr();return sr(e,Jo)}var hr="-ms-",br="-moz-",yr="-webkit-",wr="comm",Er="rule",Ir="decl",Cr="@keyframes";function Mr(e,t){for(var n="",o=Zo(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function Tr(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ir:return e.return=e.return||e.value;case wr:return"";case Cr:return e.return=e.value+"{"+Mr(e.children,o)+"}";case Er:e.value=e.props.join(",")}return Uo(n=Mr(e.children,o))?e.return=e.value+"{"+n+"}":""}function Sr(e){return cr(Nr("",null,null,null,[""],e=ur(e),0,[0],e))}function Nr(e,t,n,o,r,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,g=0,m=1,v=1,h=1,b=0,y="",w=r,E=i,I=o,C=y;v;)switch(g=b,b=rr()){case 40:if(108!=g&&58==Go(C,d-1)){-1!=Wo(C+=Ho(dr(b),"&","&\f"),"&\f")&&(h=-1);break}case 34:case 39:case 91:C+=dr(b);break;case 9:case 10:case 13:case 32:C+=pr(g);break;case 92:C+=fr(ar()-1,7);continue;case 47:switch(ir()){case 42:case 47:Ko(xr(mr(rr(),ar()),t,n),l);break;default:C+="/"}break;case 123*m:s[u++]=Uo(C)*h;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+c:-1==h&&(C=Ho(C,/\f/g,"")),f>0&&Uo(C)-d&&Ko(f>32?Or(C+";",o,n,d-1):Or(Ho(C," ","")+";",o,n,d-2),l);break;case 59:C+=";";default:if(Ko(I=Lr(C,t,n,u,c,r,s,y,w=[],E=[],d),i),123===b)if(0===c)Nr(C,t,I,I,w,i,d,s,E);else switch(99===p&&110===Go(C,3)?100:p){case 100:case 108:case 109:case 115:Nr(e,I,I,o&&Ko(Lr(e,I,I,0,0,r,s,y,r,w=[],d),E),r,E,d,s,o?w:E);break;default:Nr(C,I,I,I,[""],E,0,s,E)}}u=c=f=0,m=h=1,y=C="",d=a;break;case 58:d=1+Uo(C),f=g;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==or())continue;switch(C+=zo(b),b*m){case 38:h=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Uo(C)-1)*h,h=1;break;case 64:45===ir()&&(C+=dr(rr())),p=ir(),c=d=Uo(y=C+=vr(ar())),b++;break;case 45:45===g&&2==Uo(C)&&(m=0)}}return i}function Lr(e,t,n,o,r,i,a,s,l,u,c){for(var d=r-1,p=0===r?i:[""],f=Zo(p),g=0,m=0,v=0;g<o;++g)for(var h=0,b=Yo(e,d+1,d=Fo(m=a[g])),y=e;h<f;++h)(y=Bo(m>0?p[h]+" "+b:Ho(b,/&\f/g,p[h])))&&(l[v++]=y);return tr(e,t,n,0===r?Er:s,l,u,c)}function xr(e,t,n){return tr(e,t,n,wr,zo(qo),Yo(e,2,-2),0)}function Or(e,t,n,o){return tr(e,t,n,Ir,Yo(e,0,o),Yo(e,o+1,-1),o)}var Pr=function(e,t,n){for(var o=0,r=0;o=r,r=ir(),38===o&&12===r&&(t[n]=1),!lr(r);)rr();return sr(e,Jo)},Ar=new WeakMap,Dr=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ar.get(n))&&!o){Ar.set(e,!0);for(var r=[],i=function(e,t){return cr(function(e,t){var n=-1,o=44;do{switch(lr(o)){case 0:38===o&&12===ir()&&(t[n]=1),e[n]+=Pr(Jo-1,t,n);break;case 2:e[n]+=dr(o);break;case 4:if(44===o){e[++n]=58===ir()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=zo(o)}}while(o=rr());return e}(ur(e),t))}(t,r),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=r[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},kr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function _r(e,t){switch(function(e,t){return 45^Go(e,0)?(((t<<2^Go(e,0))<<2^Go(e,1))<<2^Go(e,2))<<2^Go(e,3):0}(e,t)){case 5103:return yr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return yr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return yr+e+br+e+hr+e+e;case 6828:case 4268:return yr+e+hr+e+e;case 6165:return yr+e+hr+"flex-"+e+e;case 5187:return yr+e+Ho(e,/(\w+).+(:[^]+)/,yr+"box-$1$2"+hr+"flex-$1$2")+e;case 5443:return yr+e+hr+"flex-item-"+Ho(e,/flex-|-self/,"")+e;case 4675:return yr+e+hr+"flex-line-pack"+Ho(e,/align-content|flex-|-self/,"")+e;case 5548:return yr+e+hr+Ho(e,"shrink","negative")+e;case 5292:return yr+e+hr+Ho(e,"basis","preferred-size")+e;case 6060:return yr+"box-"+Ho(e,"-grow","")+yr+e+hr+Ho(e,"grow","positive")+e;case 4554:return yr+Ho(e,/([^-])(transform)/g,"$1"+yr+"$2")+e;case 6187:return Ho(Ho(Ho(e,/(zoom-|grab)/,yr+"$1"),/(image-set)/,yr+"$1"),e,"")+e;case 5495:case 3959:return Ho(e,/(image-set\([^]*)/,yr+"$1$`$1");case 4968:return Ho(Ho(e,/(.+:)(flex-)?(.*)/,yr+"box-pack:$3"+hr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yr+e+e;case 4095:case 3583:case 4068:case 2532:return Ho(e,/(.+)-inline(.+)/,yr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Uo(e)-1-t>6)switch(Go(e,t+1)){case 109:if(45!==Go(e,t+4))break;case 102:return Ho(e,/(.+:)(.+)-([^]+)/,"$1"+yr+"$2-$3$1"+br+(108==Go(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Wo(e,"stretch")?_r(Ho(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Go(e,t+1))break;case 6444:switch(Go(e,Uo(e)-3-(~Wo(e,"!important")&&10))){case 107:return Ho(e,":",":"+yr)+e;case 101:return Ho(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yr+(45===Go(e,14)?"inline-":"")+"box$3$1"+yr+"$2$3$1"+hr+"$2box$3")+e}break;case 5936:switch(Go(e,t+11)){case 114:return yr+e+hr+Ho(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yr+e+hr+Ho(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yr+e+hr+Ho(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yr+e+hr+e+e}return e}var jr=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case Ir:e.return=_r(e.value,e.length);break;case Cr:return Mr([nr(e,{value:Ho(e.value,"@","@"+yr)})],o);case Er:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Mr([nr(e,{props:[Ho(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return Mr([nr(e,{props:[Ho(t,/:(plac\w+)/,":"+yr+"input-$1")]}),nr(e,{props:[Ho(t,/:(plac\w+)/,":-moz-$1")]}),nr(e,{props:[Ho(t,/:(plac\w+)/,hr+"input-$1")]})],o)}return""}))}}],Rr=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,r,i=e.stylisPlugins||jr,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,u,c,d,p=[Tr,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(u=[Dr,kr].concat(i,p),c=Zo(u),function(e,t,n,o){for(var r="",i=0;i<c;i++)r+=u[i](e,t,n,o)||"";return r});r=function(e,t,n,o){l=n,Mr(Sr(e?e+"{"+t.styles+"}":t.styles),f),o&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new Ro({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:r};return g.sheet.hydrate(s),g},Fr=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},zr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Vr(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Br=/[A-Z]|^ms/g,Hr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wr=function(e){return 45===e.charCodeAt(1)},Gr=function(e){return null!=e&&"boolean"!=typeof e},Yr=Vr((function(e){return Wr(e)?e:e.replace(Br,"-$&").toLowerCase()})),Ur=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Hr,(function(e,t,n){return Kr={name:t,styles:n,next:Kr},t}))}return 1===zr[e]||Wr(e)||"number"!=typeof t||0===t?t:t+"px"};function Zr(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Kr={name:n.name,styles:n.styles,next:Kr},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Kr={name:o.name,styles:o.styles,next:Kr},o=o.next;return n.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Zr(e,t,n[r])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?o+=i+"{"+t[a]+"}":Gr(a)&&(o+=Yr(i)+":"+Ur(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Zr(e,t,a);switch(i){case"animation":case"animationName":o+=Yr(i)+":"+s+";";break;default:o+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Gr(a[l])&&(o+=Yr(i)+":"+Ur(i,a[l])+";")}return o}(e,t,n);case"function":if(void 0!==e){var r=Kr,i=n(e);return Kr=r,Zr(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Kr,Qr=/label:\s*([^\s;\n{]+)\s*(;|$)/g,$r=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";Kr=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,r+=Zr(n,t,i)):r+=i[0];for(var a=1;a<e.length;a++)r+=Zr(n,t,e[a]),o&&(r+=i[a]);Qr.lastIndex=0;for(var s,l="";null!==(s=Qr.exec(r));)l+="-"+s[1];var u=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+l;return{name:u,styles:r,next:Kr}},Xr={}.hasOwnProperty,Jr=(0,e.createContext)("undefined"!=typeof HTMLElement?Rr({key:"css"}):null);Jr.Provider;var qr=function(t){return(0,e.forwardRef)((function(n,o){var r=(0,e.useContext)(Jr);return t(n,r,o)}))},ei=(0,e.createContext)({}),ti=e.useInsertionEffect?e.useInsertionEffect:function(e){e()},ni="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",oi=function(e){var t,n=e.cache,o=e.serialized,r=e.isStringTag;return Fr(n,o,r),t=function(){return function(e,t,n){Fr(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(n,o,r)},ti(t),null},ri=qr((function(t,n,o){var r=t.css;"string"==typeof r&&void 0!==n.registered[r]&&(r=n.registered[r]);var i=t[ni],a=[r],s="";"string"==typeof t.className?s=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}(n.registered,a,t.className):null!=t.className&&(s=t.className+" ");var l=$r(a,void 0,(0,e.useContext)(ei));s+=n.key+"-"+l.name;var u={};for(var c in t)Xr.call(t,c)&&"css"!==c&&c!==ni&&(u[c]=t[c]);return u.ref=o,u.className=s,(0,e.createElement)(e.Fragment,null,(0,e.createElement)(oi,{cache:n,serialized:l,isStringTag:"string"==typeof i}),(0,e.createElement)(i,u))}));n(4146);var ii=function(t,n){var o=arguments;if(null==n||!Xr.call(n,"css"))return e.createElement.apply(void 0,o);var r=o.length,i=new Array(r);i[0]=ri,i[1]=function(e,t){var n={};for(var o in t)Xr.call(t,o)&&(n[o]=t[o]);return n[ni]=e,n}(t,n);for(var a=2;a<r;a++)i[a]=o[a];return e.createElement.apply(null,i)};function ai(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $r(t)}e.useInsertionEffect?e.useInsertionEffect:e.useLayoutEffect;const si=Math.min,li=Math.max,ui=Math.round,ci=Math.floor,di=e=>({x:e,y:e});function pi(e){return mi(e)?(e.nodeName||"").toLowerCase():"#document"}function fi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function gi(e){var t;return null==(t=(mi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function mi(e){return e instanceof Node||e instanceof fi(e).Node}function vi(e){return e instanceof Element||e instanceof fi(e).Element}function hi(e){return e instanceof HTMLElement||e instanceof fi(e).HTMLElement}function bi(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof fi(e).ShadowRoot)}function yi(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=wi(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function wi(e){return fi(e).getComputedStyle(e)}function Ei(e){const t=function(e){if("html"===pi(e))return e;const t=e.assignedSlot||e.parentNode||bi(e)&&e.host||gi(e);return bi(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(pi(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:hi(t)&&yi(t)?t:Ei(t)}function Ii(e,t){var n;void 0===t&&(t=[]);const o=Ei(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=fi(o);return r?t.concat(i,i.visualViewport||[],yi(o)?o:[]):t.concat(o,Ii(o))}function Ci(e){return vi(e)?e:e.contextElement}function Mi(e){const t=Ci(e);if(!hi(t))return di(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=function(e){const t=wi(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=hi(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=ui(n)!==i||ui(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}(t);let a=(i?ui(n.width):n.width)/o,s=(i?ui(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ti=di(0);function Si(e){const t=fi(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ti}function Ni(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=Ci(e);let a=di(1);t&&(o?vi(o)&&(a=Mi(o)):a=Mi(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==fi(e))&&t}(i,n,o)?Si(i):di(0);let l=(r.left+s.x)/a.x,u=(r.top+s.y)/a.y,c=r.width/a.x,d=r.height/a.y;if(i){const e=fi(i),t=o&&vi(o)?fi(o):o;let n=e.frameElement;for(;n&&o&&t!==e;){const e=Mi(n),t=n.getBoundingClientRect(),o=wi(n),r=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=r,u+=i,n=fi(n).frameElement}}return p={width:c,height:d,x:l,y:u},{...p,top:p.y,left:p.x,right:p.x+p.width,bottom:p.y+p.height};var p}const Li=e.useLayoutEffect;var xi=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Oi=function(){};function Pi(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ai(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Pi(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Di=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Eo(e)&&null!==e?[e]:[];var t},ki=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,To({},xo(e,xi))},_i=function(e,t,n){var o=e.cx,r=e.getStyles,i=e.getClassNames,a=e.className;return{css:r(t,e),className:o(null!=n?n:{},i(t,e),a)}};function ji(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ri(e){return ji(e)?window.pageYOffset:e.scrollTop}function Fi(e,t){ji(e)?window.scrollTo(0,t):e.scrollTop=t}function zi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Oi,r=Ri(e),i=t-r,a=0;!function t(){var s,l=i*((s=(s=a+=10)/n-1)*s*s+1)+r;Fi(e,l),a<n?window.requestAnimationFrame(t):o(e)}()}function Vi(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?Fi(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&Fi(e,Math.max(t.offsetTop-r,0))}function Bi(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Hi=!1,Wi={get passive(){return Hi=!0}},Gi="undefined"!=typeof window?window:{};Gi.addEventListener&&Gi.removeEventListener&&(Gi.addEventListener("p",Oi,Wi),Gi.removeEventListener("p",Oi,!1));var Yi=Hi;function Ui(e){return null!=e}function Zi(e,t,n){return e?t:n}var Ki=["children","innerProps"],Qi=["children","innerProps"];var $i,Xi,Ji,qi=function(e){return"auto"===e?"bottom":e},ea=(0,e.createContext)(null),ta=function(t){var n=t.children,o=t.minMenuHeight,r=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=((0,e.useContext)(ea)||{}).setPortalPlacement,c=(0,e.useRef)(null),d=Lo((0,e.useState)(r),2),p=d[0],f=d[1],g=Lo((0,e.useState)(null),2),m=g[0],v=g[1],h=l.spacing.controlHeight;return Li((function(){var e=c.current;if(e){var t="fixed"===a,n=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,g=p.height,m=p.top,v=n.offsetParent.getBoundingClientRect().top,h=a||ji(c=l)?window.innerHeight:c.clientHeight,b=Ri(l),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),E=v-w,I=h-m,C=E+b,M=d-b-m,T=f-h+b+y,S=b+m-w,N=160;switch(r){case"auto":case"bottom":if(I>=g)return{placement:"bottom",maxHeight:t};if(M>=g&&!a)return i&&zi(l,T,N),{placement:"bottom",maxHeight:t};if(!a&&M>=o||a&&I>=o)return i&&zi(l,T,N),{placement:"bottom",maxHeight:a?I-y:M-y};if("auto"===r||a){var L=t,x=a?E:C;return x>=o&&(L=Math.min(x-y-s,t)),{placement:"top",maxHeight:L}}if("bottom"===r)return i&&Fi(l,T),{placement:"bottom",maxHeight:t};break;case"top":if(E>=g)return{placement:"top",maxHeight:t};if(C>=g&&!a)return i&&zi(l,S,N),{placement:"top",maxHeight:t};if(!a&&C>=o||a&&E>=o){var O=t;return(!a&&C>=o||a&&E>=o)&&(O=a?E-w:C-w),i&&zi(l,S,N),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:o,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:h});f(n.maxHeight),v(n.placement),null==u||u(n.placement)}}),[r,i,a,s,o,u,h]),n({ref:c,placerProps:To(To({},t),{},{placement:m||qi(i),maxHeight:p})})},na=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return To({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},oa=na,ra=na,ia=["size"],aa=["innerProps","isRtl","size"],sa={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},la=function(e){var t=e.size,n=xo(e,ia);return ii("svg",Po({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:sa},n))},ua=function(e){return ii(la,Po({size:20},e),ii("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ca=function(e){return ii(la,Po({size:20},e),ii("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},da=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return To({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},pa=da,fa=da,ga=function(){var e=ai.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}($i||(Xi=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],Ji||(Ji=Xi.slice(0)),$i=Object.freeze(Object.defineProperties(Xi,{raw:{value:Object.freeze(Ji)}})))),ma=function(e){var t=e.delay,n=e.offset;return ii("span",{css:ai({animation:"".concat(ga," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},va=["data"],ha=["innerRef","isDisabled","isHidden","inputClassName"],ba={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ya={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":To({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ba)},wa=function(e){return To({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ba)},Ea=function(e){var t=e.children,n=e.innerProps;return ii("div",n,t)},Ia={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ii("div",Po({},_i(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ii(ua,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return ii("div",Po({ref:r},_i(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),i),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return ii("div",Po({},_i(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ii(ca,null))},DownChevron:ca,CrossIcon:ua,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return ii("div",Po({},_i(e,"group",{group:!0}),s),ii(i,Po({},a,{selectProps:c,theme:u,getStyles:o,getClassNames:r,cx:n}),l),ii("div",null,t))},GroupHeading:function(e){var t=ki(e);t.data;var n=xo(t,va);return ii("div",Po({},_i(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ii("div",Po({},_i(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ii("span",Po({},t,_i(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=ki(e),r=o.innerRef,i=o.isDisabled,a=o.isHidden,s=o.inputClassName,l=xo(o,ha);return ii("div",Po({},_i(e,"input",{"input-container":!0}),{"data-value":n||""}),ii("input",Po({className:t({input:!0},s),ref:r,style:wa(a),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,i=xo(e,aa);return ii("div",Po({},_i(To(To({},i),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ii(ma,{delay:0,offset:n}),ii(ma,{delay:160,offset:!0}),ii(ma,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return ii("div",Po({},_i(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return ii("div",Po({},_i(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(t){var n=t.appendTo,o=t.children,r=t.controlElement,i=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=(0,e.useRef)(null),u=(0,e.useRef)(null),c=Lo((0,e.useState)(qi(a)),2),d=c[0],p=c[1],f=(0,e.useMemo)((function(){return{setPortalPlacement:p}}),[]),g=Lo((0,e.useState)(null),2),m=g[0],v=g[1],h=(0,e.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===s?0:window.pageYOffset,n=e[d]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||v({offset:n,rect:e})}}),[r,s,d,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);Li((function(){h()}),[h]);var b=(0,e.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),r&&l.current&&(u.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,u=Ci(e),c=r||i?[...u?Ii(u):[],...Ii(t)]:[];c.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,o=null;const r=gi(e);function i(){clearTimeout(n),o&&o.disconnect(),o=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:u,top:c,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-ci(c)+"px "+-ci(r.clientWidth-(u+d))+"px "+-ci(r.clientHeight-(c+p))+"px "+-ci(u)+"px",threshold:li(0,si(1,l))||1};let g=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!g)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}g=!1}try{o=new IntersectionObserver(m,{...f,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(m,f)}o.observe(e)}(!0),i}(u,n):null;let p,f=-1,g=null;a&&(g=new ResizeObserver((e=>{let[o]=e;o&&o.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{g&&g.observe(t)}))),n()})),u&&!l&&g.observe(u),g.observe(t));let m=l?Ni(e):null;return l&&function t(){const o=Ni(e);!m||o.x===m.x&&o.y===m.y&&o.width===m.width&&o.height===m.height||n(),m=o,p=requestAnimationFrame(t)}(),n(),()=>{c.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(p)}}(r,l.current,h,{elementResize:"ResizeObserver"in window}))}),[r,h]);Li((function(){b()}),[b]);var y=(0,e.useCallback)((function(e){l.current=e,b()}),[b]);if(!n&&"fixed"!==s||!m)return null;var w=ii("div",Po({ref:y},_i(To(To({},t),{},{offset:m.offset,position:s,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),o);return ii(ea.Provider,{value:f},n?(0,$e.createPortal)(w,n):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=xo(e,Qi);return ii("div",Po({},_i(To(To({},r),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,r=xo(e,Ki);return ii("div",Po({},_i(To(To({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return ii(l,{data:o,innerProps:To(To({},_i(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:s},ii(u,{data:o,innerProps:To({},_i(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),ii(c,{data:o,innerProps:To(To({},_i(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:Ea,MultiValueLabel:Ea,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ii("div",Po({role:"button"},n),t||ii(ua,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,a=e.innerProps;return ii("div",Po({},_i(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return ii("div",Po({},_i(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return ii("div",Po({},_i(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return ii("div",Po({},_i(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,r=e.hasValue;return ii("div",Po({},_i(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},Ca=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ma(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||Ca(o)&&Ca(r)))return!1;var o,r;return!0}for(var Ta={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Sa=function(e){return ii("span",Po({css:Ta},e))},Na={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.isDisabled,r=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t){var c=s?" disabled":"",d="".concat(l?"selected":"focused").concat(c);return"option ".concat(i," ").concat(d,", ").concat(u(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},La=function(t){var n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=l.ariaLiveMessages,d=l.getOptionLabel,p=l.inputValue,f=l.isMulti,g=l.isOptionDisabled,m=l.isSearchable,v=l.menuIsOpen,h=l.options,b=l.screenReaderStatus,y=l.tabSelectsValue,w=l["aria-label"],E=l["aria-live"],I=(0,e.useMemo)((function(){return To(To({},Na),c||{})}),[c]),C=(0,e.useMemo)((function(){var e,t="";if(n&&I.onChange){var o=n.option,r=n.options,i=n.removedValue,a=n.removedValues,l=n.value,u=i||o||(e=l,Array.isArray(e)?null:e),c=u?d(u):"",p=r||a||void 0,f=p?p.map(d):[],m=To({isDisabled:u&&g(u,s),label:c,labels:f},n);t=I.onChange(m)}return t}),[n,I,g,s,d]),M=(0,e.useMemo)((function(){var e="",t=o||r,n=!!(o&&s&&s.includes(o));if(t&&I.onFocus){var a={focused:t,label:d(t),isDisabled:g(t,s),isSelected:n,options:i,context:t===o?"menu":"value",selectValue:s};e=I.onFocus(a)}return e}),[o,r,d,g,I,i,s]),T=(0,e.useMemo)((function(){var e="";if(v&&h.length&&I.onFilter){var t=b({count:i.length});e=I.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,v,I,h,b]),S=(0,e.useMemo)((function(){var e="";if(I.guidance){var t=r?"value":v?"menu":"input";e=I.guidance({"aria-label":w,context:t,isDisabled:o&&g(o,s),isMulti:f,isSearchable:m,tabSelectsValue:y})}return e}),[w,o,r,f,g,m,v,I,s,y]),N="".concat(M," ").concat(T," ").concat(S),L=ii(e.Fragment,null,ii("span",{id:"aria-selection"},C),ii("span",{id:"aria-context"},N)),x="initial-input-focus"===(null==n?void 0:n.action);return ii(e.Fragment,null,ii(Sa,{id:u},x&&L),ii(Sa,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text"},a&&!x&&L))},xa=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Oa=new RegExp("["+xa.map((function(e){return e.letters})).join("")+"]","g"),Pa={},Aa=0;Aa<xa.length;Aa++)for(var Da=xa[Aa],ka=0;ka<Da.letters.length;ka++)Pa[Da.letters[ka]]=Da.base;var _a=function(e){return e.replace(Oa,(function(e){return Pa[e]}))},ja=function(e,t){void 0===t&&(t=Ma);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}(_a),Ra=function(e){return e.replace(/^\s+|\s+$/g,"")},Fa=function(e){return"".concat(e.label," ").concat(e.value)},za=["innerRef"];function Va(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=Object.entries(e).filter((function(e){var t=Lo(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=Lo(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})}(xo(e,za),"onExited","in","enter","exit","appear");return ii("input",Po({ref:t},n,{css:ai({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Ba=["boxSizing","height","overflow","paddingRight","position"],Ha={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Wa(e){e.preventDefault()}function Ga(e){e.stopPropagation()}function Ya(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ua(){return"ontouchstart"in window||navigator.maxTouchPoints}var Za=!("undefined"==typeof window||!window.document||!window.document.createElement),Ka=0,Qa={capture:!1,passive:!1},$a=function(){return document.activeElement&&document.activeElement.blur()},Xa={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ja(t){var n=t.children,o=t.lockEnabled,r=t.captureEnabled,i=function(t){var n=t.isEnabled,o=t.onBottomArrive,r=t.onBottomLeave,i=t.onTopArrive,a=t.onTopLeave,s=(0,e.useRef)(!1),l=(0,e.useRef)(!1),u=(0,e.useRef)(0),c=(0,e.useRef)(null),d=(0,e.useCallback)((function(e,t){if(null!==c.current){var n=c.current,u=n.scrollTop,d=n.scrollHeight,p=n.clientHeight,f=c.current,g=t>0,m=d-p-u,v=!1;m>t&&s.current&&(r&&r(e),s.current=!1),g&&l.current&&(a&&a(e),l.current=!1),g&&t>m?(o&&!s.current&&o(e),f.scrollTop=d,v=!0,s.current=!0):!g&&-t>u&&(i&&!l.current&&i(e),f.scrollTop=0,v=!0,l.current=!0),v&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[o,r,i,a]),p=(0,e.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,e.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),g=(0,e.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,e.useCallback)((function(e){if(e){var t=!!Yi&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",g,t)}}),[g,f,p]),v=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",g,!1))}),[g,f,p]);return(0,e.useEffect)((function(){if(n){var e=c.current;return m(e),function(){v(e)}}}),[n,m,v]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var n=t.isEnabled,o=t.accountForScrollbars,r=void 0===o||o,i=(0,e.useRef)({}),a=(0,e.useRef)(null),s=(0,e.useCallback)((function(e){if(Za){var t=document.body,n=t&&t.style;if(r&&Ba.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&Ka<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(Ha).forEach((function(e){var t=Ha[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Ua()&&(t.addEventListener("touchmove",Wa,Qa),e&&(e.addEventListener("touchstart",Ya,Qa),e.addEventListener("touchmove",Ga,Qa))),Ka+=1}}),[r]),l=(0,e.useCallback)((function(e){if(Za){var t=document.body,n=t&&t.style;Ka=Math.max(Ka-1,0),r&&Ka<1&&Ba.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Ua()&&(t.removeEventListener("touchmove",Wa,Qa),e&&(e.removeEventListener("touchstart",Ya,Qa),e.removeEventListener("touchmove",Ga,Qa)))}}),[r]);return(0,e.useEffect)((function(){if(n){var e=a.current;return s(e),function(){l(e)}}}),[n,s,l]),function(e){a.current=e}}({isEnabled:o});return ii(e.Fragment,null,o&&ii("div",{onClick:$a,css:Xa}),n((function(e){i(e),a(e)})))}var qa={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},es=function(e){var t=e.name,n=e.onFocus;return ii("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:qa,value:"",onChange:function(){}})},ts={clearIndicator:fa,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,i=r.colors,a=r.borderRadius;return To({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},dropdownIndicator:pa,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,r=n.spacing;return To({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return To({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,i=r.spacing,a=r.colors;return To(To({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},ya),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,r=e.theme,i=r.colors,a=r.spacing.baseUnit;return To({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:ra,menu:function(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,a=r.spacing,s=r.colors;return To((Co(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),Co(n,"position","absolute"),Co(n,"width","100%"),Co(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return To({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors;return To({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,i=e.cropWithEllipsis;return To({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors,a=e.isFocused;return To({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:oa,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return To({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:r?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return To({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,i=o.colors;return To({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return To({alignItems:"center",display:o&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},ns={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},os={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Bi(),captureMenuScroll:!Bi(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=To({ignoreCase:!0,ignoreAccents:!0,stringify:Fa,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?Ra(t):t,u=a?Ra(i(e)):i(e);return o&&(l=l.toLowerCase(),u=u.toLowerCase()),r&&(l=ja(l),u=_a(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function rs(e,t,n,o){return{type:"option",data:t,isDisabled:cs(e,t,n),isSelected:ds(e,t,n),label:ls(e,t),value:us(e,t),index:o}}function is(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return rs(e,n,t,o)})).filter((function(t){return ss(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=rs(e,n,t,o);return ss(e,i)?i:void 0})).filter(Ui)}function as(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,jo(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function ss(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!fs(e)||!i)&&ps(e,{label:a,value:s,data:r},o)}var ls=function(e,t){return e.getOptionLabel(t)},us=function(e,t){return e.getOptionValue(t)};function cs(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ds(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=us(e,t);return n.some((function(t){return us(e,t)===o}))}function ps(e,t,n){return!e.filterOption||e.filterOption(t,n)}var fs=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},gs=1,ms=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Do(e,t)}(o,t);var n=function(e){var t=_o();return function(){var n,o=ko(e);if(t){var r=ko(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==Eo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(o);function o(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var o=t.props,r=o.onChange,i=o.name;n.name=i,t.ariaOnChange(e,n),r(e,n)},t.setValue=function(e,n,o){var r=t.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:o})},t.selectOption=function(e){var n=t.props,o=n.blurInputOnSelect,r=n.isMulti,i=n.name,a=t.state.selectValue,s=r&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});r?t.setValue([].concat(jo(a),[e]),"select-option",e):t.setValue(e,"select-option")}o&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,o=t.state.selectValue,r=t.getOptionValue(e),i=o.filter((function(e){return t.getOptionValue(e)!==r})),a=Zi(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Zi(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,o=n[n.length-1],r=n.slice(0,n.length-1),i=Zi(e,r,r[0]||null);t.onChange(i,{action:"pop-value",removedValue:o})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Ai.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return ls(t.props,e)},t.getOptionValue=function(e){return us(t.props,e)},t.getStyles=function(e,n){var o=t.props.unstyled,r=ts[e](n,o);r.boxSizing="border-box";var i=t.props.styles[e];return i?i(r,n):r},t.getClassNames=function(e,n){var o,r;return null===(o=(r=t.props.classNames)[e])||void 0===o?void 0:o.call(r,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,To(To({},Ia),e.components);var e},t.buildCategorizedOptions=function(){return is(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return as(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:To({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,o=n.isMulti,r=n.menuIsOpen;t.focusInput(),r?(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ji(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,o=n&&n.item(0);o&&(t.initialTouchX=o.clientX,t.initialTouchY=o.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,o=n&&n.item(0);if(o){var r=Math.abs(o.clientX-t.initialTouchX),i=Math.abs(o.clientY-t.initialTouchY);t.userIsDragging=r>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,o=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(o,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return fs(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,o=n.isMulti,r=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,g=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!o||a)return;t.focusValue("previous");break;case"ArrowRight":if(!o||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!r)return;o?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!g||p&&t.isOptionSelected(g,v))return;t.selectOption(g);break;case"Enter":if(229===e.keyCode)break;if(u){if(!g)return;if(t.isComposing)return;t.selectOption(g);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!g)return;t.selectOption(g);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++gs),t.state.selectValue=Di(e.value),e.menuIsOpen&&t.state.selectValue.length){var r=t.buildFocusableOptions(),i=r.indexOf(t.state.selectValue[0]);t.state.focusedOption=r[i]}return t}return function(e,t,n){t&&Ao(e.prototype,t),n&&Ao(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(o,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Vi(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Vi(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(a=r+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(ns):To(To({},ns),this.props.theme):ns}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return cs(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ds(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ps(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,o=t.isSearchable,r=t.inputId,i=t.inputValue,a=t.tabIndex,s=t.form,l=t.menuIsOpen,u=t.required,c=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,g=this.commonProps,m=r||this.getElementId("input"),v=To(To(To({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox"},l&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?e.createElement(c,Po({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},v)):e.createElement(Va,Po({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Oi,onFocus:this.onInputFocus,disabled:n,tabIndex:a,inputMode:"none",form:s,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),o=n.MultiValue,r=n.MultiValueContainer,i=n.MultiValueLabel,a=n.MultiValueRemove,s=n.SingleValue,l=n.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,g=c.inputValue,m=c.placeholder,v=this.state,h=v.selectValue,b=v.focusedValue,y=v.isFocused;if(!this.hasValue()||!d)return g?null:e.createElement(l,Po({},u,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return h.map((function(n,s){var l=n===b,c="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(o,Po({},u,{components:{Container:r,Label:i,Remove:a},isFocused:l,isDisabled:p,key:c,index:s,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(g)return null;var w=h[0];return e.createElement(s,Po({},u,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,o=this.props,r=o.isDisabled,i=o.isLoading,a=this.state.isFocused;if(!this.isClearable()||!t||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,Po({},n,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,o=this.props,r=o.isDisabled,i=o.isLoading,a=this.state.isFocused;return t&&i?e.createElement(t,Po({},n,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,o=t.IndicatorSeparator;if(!n||!o)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return e.createElement(o,Po({},r,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,o=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,Po({},n,{innerProps:i,isDisabled:o,isFocused:r}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),o=n.Group,r=n.GroupHeading,i=n.Menu,a=n.MenuList,s=n.MenuPortal,l=n.LoadingMessage,u=n.NoOptionsMessage,c=n.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,g=f.captureMenuScroll,m=f.inputValue,v=f.isLoading,h=f.loadingMessage,b=f.minMenuHeight,y=f.maxMenuHeight,w=f.menuIsOpen,E=f.menuPlacement,I=f.menuPosition,C=f.menuPortalTarget,M=f.menuShouldBlockScroll,T=f.menuShouldScrollIntoView,S=f.noOptionsMessage,N=f.onMenuScrollToTop,L=f.onMenuScrollToBottom;if(!w)return null;var x,O=function(n,o){var r=n.type,i=n.data,a=n.isDisabled,s=n.isSelected,l=n.label,u=n.value,f=p===i,g=a?void 0:function(){return t.onOptionHover(i)},m=a?void 0:function(){return t.selectOption(i)},v="".concat(t.getElementId("option"),"-").concat(o),h={id:v,onClick:m,onMouseMove:g,onMouseOver:g,tabIndex:-1};return e.createElement(c,Po({},d,{innerProps:h,data:i,isDisabled:a,isSelected:s,key:v,label:l,type:r,value:u,isFocused:f,innerRef:f?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())x=this.getCategorizedOptions().map((function(n){if("group"===n.type){var i=n.data,a=n.options,s=n.index,l="".concat(t.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return e.createElement(o,Po({},d,{key:l,data:i,options:a,Heading:r,headingProps:{id:u,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return O(e,"".concat(s,"-").concat(e.index))})))}if("option"===n.type)return O(n,"".concat(n.index))}));else if(v){var P=h({inputValue:m});if(null===P)return null;x=e.createElement(l,d,P)}else{var A=S({inputValue:m});if(null===A)return null;x=e.createElement(u,d,A)}var D={minMenuHeight:b,maxMenuHeight:y,menuPlacement:E,menuPosition:I,menuShouldScrollIntoView:T},k=e.createElement(ta,Po({},d,D),(function(n){var o=n.ref,r=n.placerProps,s=r.placement,l=r.maxHeight;return e.createElement(i,Po({},d,D,{innerRef:o,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:v,placement:s}),e.createElement(Ja,{captureEnabled:g,onTopArrive:N,onBottomArrive:L,lockEnabled:M},(function(n){return e.createElement(a,Po({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:v,maxHeight:l,focusedOption:p}),x)})))}));return C||"fixed"===I?e.createElement(s,Po({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:E,menuPosition:I}),k):k}},{key:"renderFormField",value:function(){var t=this,n=this.props,o=n.delimiter,r=n.isDisabled,i=n.isMulti,a=n.name,s=n.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!r)return e.createElement(es,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(i){if(o){var u=l.map((function(e){return t.getOptionValue(e)})).join(o);return e.createElement("input",{name:a,type:"hidden",value:u})}var c=l.length>0?l.map((function(n,o){return e.createElement("input",{key:"i-".concat(o),name:a,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:a,type:"hidden",value:""});return e.createElement("div",null,c)}var d=l[0]?this.getOptionValue(l[0]):"";return e.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,o=n.ariaSelection,r=n.focusedOption,i=n.focusedValue,a=n.isFocused,s=n.selectValue,l=this.getFocusableOptions();return e.createElement(La,Po({},t,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:r,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,o=t.IndicatorsContainer,r=t.SelectContainer,i=t.ValueContainer,a=this.props,s=a.className,l=a.id,u=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return e.createElement(r,Po({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),e.createElement(n,Po({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),e.createElement(i,Po({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(o,Po({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=e.options,u=e.value,c=e.menuIsOpen,d=e.inputValue,p=e.isMulti,f=Di(u),g={};if(n&&(u!==n.value||l!==n.options||c!==n.menuIsOpen||d!==n.inputValue)){var m=c?function(e,t){return as(is(e,t))}(e,f):[],v=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,f):null,h=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);g={selectValue:f,focusedOption:h,focusedValue:v,clearFocusValueOnUpdate:!1}}var b=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},y=i,w=a&&s;return a&&!w&&(y={value:Zi(p,f,f[0]||null),options:f,action:"initial-input-focus"},w=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(y=null),To(To(To({},g),b),{},{prevProps:e,ariaSelection:y,prevWasFocused:w})}}]),o}(e.Component);ms.defaultProps=os;var vs=(0,e.forwardRef)((function(t,n){var o=function(t){var n=t.defaultInputValue,o=void 0===n?"":n,r=t.defaultMenuIsOpen,i=void 0!==r&&r,a=t.defaultValue,s=void 0===a?null:a,l=t.inputValue,u=t.menuIsOpen,c=t.onChange,d=t.onInputChange,p=t.onMenuClose,f=t.onMenuOpen,g=t.value,m=xo(t,Oo),v=Lo((0,e.useState)(void 0!==l?l:o),2),h=v[0],b=v[1],y=Lo((0,e.useState)(void 0!==u?u:i),2),w=y[0],E=y[1],I=Lo((0,e.useState)(void 0!==g?g:s),2),C=I[0],M=I[1],T=(0,e.useCallback)((function(e,t){"function"==typeof c&&c(e,t),M(e)}),[c]),S=(0,e.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),b(void 0!==n?n:e)}),[d]),N=(0,e.useCallback)((function(){"function"==typeof f&&f(),E(!0)}),[f]),L=(0,e.useCallback)((function(){"function"==typeof p&&p(),E(!1)}),[p]),x=void 0!==l?l:h,O=void 0!==u?u:w,P=void 0!==g?g:C;return To(To({},m),{},{inputValue:x,menuIsOpen:O,onChange:T,onInputChange:S,onMenuClose:L,onMenuOpen:N,value:P})}(t);return e.createElement(ms,Po({ref:n},o))})),hs=vs;const bs={input:(e,t)=>({...e,height:"3rem"}),option:(e,t)=>({...e,paddingTop:"0.8rem",paddingBottom:"0.8rem",fontSize:"1rem"}),control:(e,t)=>({...e,fontSize:"1rem"})},ys=e=>({...e,colors:{...e.colors,primary:"#27ae60"}});function ws({id:t,label:n,options:r,isLoading:i,emptyMessage:a,loadingMessage:s,onConfirm:l,buttonText:u=(0,o.__)("Confirm","give"),disabled:c=!1}){const[d,p]=(0,e.useState)(null),g=r.find((e=>e.value===d)),{isSaving:m,isDisabled:v}={isSaving:(0,f.useSelect)((e=>e("core/editor").isSavingPost()),[]),isDisabled:(0,f.useSelect)((e=>!e("core/editor").isEditedPostSaveable()),[])};return(0,e.createElement)("div",{className:"givewp-entity-selector"},(0,e.createElement)("img",{className:"givewp-entity-selector__logo",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ4IiBoZWlnaHQ9IjQ5IiB2aWV3Qm94PSIwIDAgMTQ4IDQ5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNDAuOTQ3IDI0LjcyaC41NDNzNi40MDEuMTExIDYuNTEgOC40OThjMCA4LjA1Ny03LjkyMSAxNC45LTE3LjI1MiAxNC45LTEuNTE5IDAtMTQuMTA2LS40NDItMTUuMDgyLTE1Ljc4Mi0yLjQ5Ni0uMTEtNi43MjgtLjU1Mi0xMC4zMDgtMi4wOTctMy41ODEgOC45MzktOS4xMTUgMTYuMDAyLTEyLjQ3OCAxNi4wMDItMy4zNjQgMC02LjE4NS00LjQxNC04LjQ2NC0xMi45MTJsLS4yMTctLjg4M0M3OS44NiAzOS45NSA3My44OTEgNDYuMTMgNzAuOTYyIDQ2LjEzYy0zLjQ3MiAwLTcuNzA0LTQuMDg0LTcuNzA0LTcuOTQ2IDAtMy44NjMgMS4xOTQtMTMuMTMzIDEuMTk0LTEzLjEzM3MtMy4xNDcuNjYyLTcuNzA0IDEuMzI0QzU1Ljg4IDMwLjc5MSA1MS4xMDYgNDkgMzIuNDQzIDQ5IDEwLjE5OSA0OSAwIDI0LjUgMCAyNC41YzIuNDY4LTEuNTUgNS41MzItNC44MDUgOC45NjItOC40NTFDMTUuNzg3IDguNzk3IDI0LjA2NiAwIDMyLjAxIDBjMTEuOTM1IDAgMTYuMTY3IDE1LjAwOSAxNi4xNjcgMTUuMDA5bC0uOTc3IDEuNjU1cy0zLjkwNi01LjA3Ni0xMi45MTItNS4wNzZjLTYuODc5IDAtMTIuMDg5IDYuMjg3LTE1Ljg2NCAxMC44NDEtMS4yMjYgMS40OC0yLjMwMSAyLjc3Ny0zLjIzMiAzLjYxNiAwIDAgOS40NCAxNS4xMiAyMS43IDE1LjEyIDYuNTEgMCAxMy41NjQtNS43NCAxNy41NzgtMTQuNDU4LTYuOTQ0Ljk5NC0xNi4wNTggMS44NzYtMjIuNDYgMS4xMDQgMCAwLS4zMjYtLjMzMS0uNDM0LS42NjItLjIxNy0uNDQyLS4yMTctLjg4My0uMjE3LS44ODMgMjIuNjc3IDAgMzkuNzEyLTkuNjAyIDQxLjIzMS0xMC41OTUuMTA5LS4xMS4yMTctLjExLjMyNi0uMTEgMS40NjEuMzU5LjcgNS40My0uMTAxIDEwLjc2LS45MjMgNi4xNDYtMS44OTggMTIuNjM2LjQyNyAxMi42MzYgMi4zODcgMCA3LjE2LTcuNTA0IDkuODczLTEyLjAzLS45NC00Ljg1NS0xLjg4LTkuNDE2LTIuNDAzLTExLjk1YTk5Ljc5NCA5OS43OTQgMCAwIDEtLjQxOC0yLjA2NXYtLjMzbC4yMTctLjExMWMuMTA5LS4xMSA0Ljc3NC0xLjk4NyA3LjcwNC0xLjk4NyAyLjE3IDAgMy40NzIgMS4yMTQgMy40NzIgMy4zMTEgMCAxLjMyNC0uNjUgNC4wODMtMS44NDQgNy4zOTQuNzM4IDcuMDM4IDMuMjAxIDEzLjU5NiA0LjM5IDE2Ljc2LjIwOS41NTcuMzc5IDEuMDA5LjQ5MiAxLjM0bC4wMjgtLjAzNGMxLjIyMi0xLjQ2OCA0Ljg3MS01Ljg1NSA3LjAyNS0xMS4wMDMtMi40OTYtMS45ODYtMy42ODktNC43NDUtMy42ODktOC4wNTYgMC01LjUxOCAzLjAzOC04LjM4NyA1Ljk2OC04LjM4NyAyLjA2MSAwIDQuMjMxIDEuNDM0IDQuMjMxIDQuNjM1IDAgMi4zMTctLjMyNSA0Ljg1NS0uOTc2IDcuNjE1IDEuNzM2IDEuNjU1IDQuNTU3IDMuNDIgOC4zNTUgMy41MzEuNzU5LTcuOTQ2IDQuNTU3LTE5LjMxMyAxMi4wNDQtMTkuMzEzIDcuOTIgMCA5LjExNCA2LjczMiA5LjExNCAxMC44MTUgMCA1LjYyOS00Ljk5MSAxMC40ODUtMTIuNjk1IDEyLjM2LjIxNyA2LjQwMiAxLjk1MyAxMi4wMyA2LjYxOSAxMi4wMyAyLjkyOSAwIDUuMzE3LTEuMjE0IDcuMTYxLTMuNTMyIDMuMjU1LTMuOTczIDQuMDE1LTEwLjM3MyAzLjE0Ny0xNC42NzhsLS4xMDktLjU1MXptLTE2LjYwMSAxLjIxNWM1LjY0Mi0yLjUzOSA1Ljc1MS03LjUwNSA1Ljc1MS03LjYxNSAwLTMuMi0xLjMwMi01LjA3Ny0yLjQ5Ni01LjE4Ny0xLjA4NSAwLTIuNzEyIDYuMDctMy4yNTUgMTIuODAyeiIgZmlsbD0iIzY2QkI2QSIvPgogICAgPHBhdGggZD0iTTY0Ljk5NCAxMi4yNWMwIC4yMi4xMDguMzMxLjMyNS40NDEgNC40NDkuNjYzIDcuMzc5LS43NzIgNy4zNzktOC4wNTYgMC02Ljg0Mi02Ljk0NS0xLjQzNC04LjI0Ny0uNDQxLS4xMDguMTEtLjEwOC4yMi0uMTA4LjQ0MSAxLjE5MyAyLjY0OS44NjggNi41MTEuNjUgNy42MTV6IiBmaWxsPSIjNjZCQjZBIi8+CiAgICA8bWFzayBpZD0idnl2ZWp5cm4xYSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTE1IiB5PSIzMSIgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIj4KICAgICAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExOS44OTggMzIuMjI3Yy0yLjE3LjIyLTQuMjMyLjExLTQuMjMyLjExLjMyNiA0LjQxNSAxLjQ1OCA3LjM5MSAzLjA4NiA5LjcwOWw3LjkyLS42NjNjLTEuNjgxLTIuMjM0LTIuMzg1LTUuNTgtMi41NDMtOS45MyAwIDAtMi4xNy41NTMtNC4yMzEuNzc0eiIgZmlsbD0iI2ZmZiIvPgogICAgPC9tYXNrPgogICAgPGcgbWFzaz0idXJsKCN2eXZlanlybjFhKSI+CiAgICAgICAgPHBhdGggZD0ibTEyNy44MTggNDEuOTM3LTEuMzAyLTExLjgwOS0xMi4wNDQgMS40MzUgMS4zMDIgMTEuODA5IDEyLjA0NC0xLjQzNXoiIGZpbGw9InVybCgjZHJvcHkwdmMyYikiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJuZ3FpN2JtNzNjIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIxMTUiIHk9IjE3IiB3aWR0aD0iMTEiIGhlaWdodD0iMTEiPgogICAgICAgIDxwYXRoIGQ9Ik0xMjQuMzQ3IDI1LjkzN2MtMS42NzkgMS4wNS02Ljg5MSAxLjc5Ni04LjY4MSAxLjY1My4yNjMtMi40NzYuNzg3LTUuODk2IDIuMTctOS42MDEgMS4wNTYtLjI1NCA1Ljg2LS4yNjIgNy4zMTYgMS44MzJhNTYuODgxIDU2Ljg4MSAwIDAgMC0uODA1IDYuMTE2eiIgZmlsbD0iI2ZmZiIvPgogICAgPC9tYXNrPgogICAgPGcgbWFzaz0idXJsKCNuZ3FpN2JtNzNjKSI+CiAgICAgICAgPHBhdGggZmlsbD0idXJsKCNveHA5dzBhbzVkKSIgZD0iTTExNS41NTggMTcuODczaDkuNTk0djkuNzM1aC05LjU5NHoiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJueW9nNWZtbWllIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSI3NiIgeT0iMjYiIHdpZHRoPSI5IiBoZWlnaHQ9IjE1Ij4KICAgICAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTc2LjQ0MyAzNi42NDRjLjU0MyAxLjMyNCAxLjEzIDIuODYxIDEuNzggNC4xODYgMS4wNjktMS4yNTUgMi4yNDMtMi42NiAzLjYyOS00LjY5LjgxNy0xLjE5OCAxLjY2OC0yLjU3OCAyLjM0OC0zLjY5NGwtMS4wODEtNS41MjNjLTEuNzM4IDMuMDA0LTQuNjkyIDcuNTctNi42NzYgOS43MnoiIGZpbGw9IiNmZmYiLz4KICAgIDwvbWFzaz4KICAgIDxnIG1hc2s9InVybCgjbnlvZzVmbW1pZSkiPgogICAgICAgIDxwYXRoIGQ9Ik03Ny4xNDcgNDMuMjYxIDg4LjMyMyAzOS40bC00Ljg4My0xNC45LTExLjE3NiAzLjg2NCA0Ljg4MyAxNC44OTh6IiBmaWxsPSJ1cmwoI2RpanZpNDZ6aGYpIi8+CiAgICA8L2c+CiAgICA8bWFzayBpZD0iN21pY25seDg4ZyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iOTYiIHk9IjI4IiB3aWR0aD0iMTAiIGhlaWdodD0iMTMiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTYuNjc4IDM2Ljg1NWMuNzYgMS4xMDQgMi4xNyAyLjU0NCAzLjE0NiAzLjY0N2E0My44OTMgNDMuODkzIDAgMCAwIDIuNDY1LTMuODg4IDU5LjQxNCA1OS40MTQgMCAwIDAgMy4wNjktNi4zNzVzLTEuMDY4LS4zOC0xLjk0MS0uODkzYy0uODczLS41MTQtMS42MzYtMS4wOTEtMS42MzYtMS4wOTEtMS41MzQgMy41NzgtMy41MjcgNi41NC01LjEwMyA4LjZ6IiBmaWxsPSIjZmZmIi8+CiAgICA8L21hc2s+CiAgICA8ZyBtYXNrPSJ1cmwoIzdtaWNubHg4OGcpIj4KICAgICAgICA8cGF0aCBkPSJtMTAzLjI5NiA0NC4yNTUgNy4yNy0xMy4xMzMtMTEuNzE5LTYuNzMyLTcuMjcgMTMuMDIyIDExLjcxOSA2Ljg0M3oiIGZpbGw9InVybCgjcjNlMTJsd2NwaCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSIyemx4Mm1oaTVpIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSI4OCIgeT0iMTMiIHdpZHRoPSI0IiBoZWlnaHQ9IjkiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNODguODY1IDE0LjM0N3MuMTA5IDEuOTg2Ljk3NyA2Ljg0MmMxLjE5My0zLjQyMSAxLjgzNC02LjA0OCAxLjgzNC03LjM3MnYtLjMzMmwtMi44MS44NjJ6IiBmaWxsPSIjZmZmIi8+CiAgICA8L21hc2s+CiAgICA8ZyBtYXNrPSJ1cmwoIzJ6bHgybWhpNWkpIj4KICAgICAgICA8cGF0aCBkPSJtODkuNjI1IDEyLjE0LTQuMjMyIDYuODQyIDUuNTM0IDMuNDIxIDQuMjMxLTYuODQyLTUuNTMzLTMuNDIxeiIgZmlsbD0idXJsKCN6OWJobXhidjVqKSIvPgogICAgPC9nPgogICAgPG1hc2sgaWQ9Imdwdm5pNG5tMmsiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjEwNCIgeT0iMTciIHdpZHRoPSI1IiBoZWlnaHQ9IjgiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTA0LjkyMiAxOC44NzNzLS43NiAyLjMxOCAyLjM4NyA1LjE4N2MuNTQyLTIuMzE3Ljg0Ni00LjUyMi45Ni02LjYxN2wtMy4zNDcgMS40M3oiIGZpbGw9IiNmZmYiLz4KICAgIDwvbWFzaz4KICAgIDxnIG1hc2s9InVybCgjZ3B2bmk0bm0yaykiPgogICAgICAgIDxwYXRoIGQ9Im0xMDQuNDg5IDE2LjIyMy0xLjg0NCA3LjI4NCA1LjQyNSAxLjQzNCAxLjk1My03LjE3My01LjUzNC0xLjU0NXoiIGZpbGw9InVybCgjYzU1emR6a3ZqbCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJkMXRvZ2IwY3NtIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSI0NiIgeT0iMjYiIHdpZHRoPSIxMSIgaGVpZ2h0PSIxNCI+CiAgICAgICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik01NC40NjcgMjYuNzA3Yy0yLjAxNCA0LjM5Ny00LjYxNiA3LjgyLTcuNzYgMTAuNDI0bDQuNjE5IDIuMTNjMi40NDEtMy40ODQgMy42NzktNi43MTcgNC41NTQtOS40NjRsLjQ2NC0xLjY2Ny40MDctMS43Ni0yLjI4NC4zMzd6IiBmaWxsPSIjZmZmIi8+CiAgICA8L21hc2s+CiAgICA8ZyBtYXNrPSJ1cmwoI2QxdG9nYjBjc20pIj4KICAgICAgICA8cGF0aCBkPSJtNDcuNTggMjcuMDE4IDkuNjI5LS44NjMtLjQ3NSAxMy40MTYtMTAuMTg2LS4zOTMgMS4wMzEtMTIuMTZ6IiBmaWxsPSJ1cmwoI3RhcHl2eG5kc24pIi8+CiAgICA8L2c+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImRyb3B5MHZjMmIiIHgxPSIxMjUuNTQ1IiB5MT0iMzkuOTY1IiB4Mj0iMTI0LjY4NSIgeTI9IjMyLjA3NCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJveHA5dzBhbzVkIiB4MT0iMTE2LjQxNSIgeTE9IjIzLjY3OSIgeDI9IjExNi40MTUiIHkyPSIzMS44MzQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzY2QkI2QSIvPgogICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzNzhGNDMiLz4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0iZGlqdmk0NnpoZiIgeDE9Ijc4LjExMyIgeTE9IjM5LjIyMSIgeDI9Ijg1LjUzOSIgeTI9IjM3LjM3NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJyM2UxMmx3Y3BoIiB4MT0iMTAzLjE0OCIgeTE9IjM5LjIzNCIgeDI9IjEwNy42NTYiIHkyPSIzMS44NjciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzY2QkI2QSIvPgogICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzNzhGNDMiLz4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0iejliaG14YnY1aiIgeDE9Ijg5LjcxMSIgeTE9IjE1Ljk5MiIgeDI9Ijg4LjQwNiIgeTI9IjE3LjkwNSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJjNTV6ZHprdmpsIiB4MT0iMTA1LjI0OCIgeTE9IjIwLjAzOCIgeDI9IjEwNC4zMiIgeTI9IjIyLjYwOCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJ0YXB5dnhuZHNuIiB4MT0iNTUuNTUxIiB5MT0iMzYuNjczIiB4Mj0iNTUuNTUxIiB5Mj0iMjYuODExIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM2NkJCNkEiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMzc4RjQzIi8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KPC9zdmc+Cg==",alt:"givewp-logo"}),(0,e.createElement)("div",{className:"givewp-entity-selector__select"},(0,e.createElement)("label",{htmlFor:t,className:"givewp-entity-selector__label"},n),(0,e.createElement)(hs,{name:t,inputId:t,value:g,onChange:e=>p(e?.value),options:r,noOptionsMessage:()=>(0,e.createElement)("p",null,a),loadingMessage:()=>(0,e.createElement)(e.Fragment,null,s),isLoading:i,theme:ys,styles:bs,placeholder:i?s:(0,o.__)("Select...","give")})),(0,e.createElement)("button",{className:"givewp-entity-selector__submit",type:"button",disabled:m||v||!d,onClick:()=>{d&&l(d),dispatch("core/editor").savePost()}},u))}(0,r.registerBlockType)("give/donation-form",{title:(0,o.__)("Donation Form","give"),description:(0,o.__)("The GiveWP Donation Form block inserts an existing donation form into the page. Each donation form's presentation can be customized below.","give"),category:"give",icon:(0,e.createElement)(u,{color:"grey"}),keywords:[(0,o.__)("donation","give")],supports:{html:!1},attributes:{id:{type:"number",default:0},prevId:{type:"number"},displayStyle:{type:"string",default:"onpage"},continueButtonTitle:{type:"string",default:"Donate now"},showTitle:{type:"boolean",default:!0},showGoal:{type:"boolean",default:!0},contentDisplay:{type:"boolean",default:!0},showContent:{type:"string",default:"above"},blockId:{type:"string"}},edit:function({attributes:t,isSelected:n,setAttributes:r,className:i,clientId:a}){const{id:s,blockId:l,displayStyle:u,continueButtonTitle:d}=t,{formOptions:g,isResolving:v}=function(){const e=[],{forms:t,isResolving:n}=(0,f.useSelect)((e=>{const t={per_page:100};return{forms:e("core").getEntityRecords("postType","give_forms",t),isResolving:e("core/data").getIsResolving("core","getEntityRecords",["postType","give_forms",t])}}),[]);return t?.map((({title:t,id:n,formTemplate:r,isLegacyForm:i,link:a})=>{e.push({label:(0,o.__)(t.rendered,"give"),value:n,isLegacyForm:i,isLegacyTemplate:i&&"legacy"===r,link:a})})),{isResolving:n,formOptions:e}}(),[h,b]=(0,e.useState)(!!s);(0,e.useEffect)((()=>{l||r({blockId:a}),y||"reveal"!==u||r({displayStyle:"modal"})}),[]);const[y,w,E]=(()=>{const e=g.find((e=>e.value===s));return[e?.isLegacyForm,e?.isLegacyTemplate,e?.link]})();return!1!==v?(0,e.createElement)("div",{...(0,c.useBlockProps)()},(0,e.createElement)("p",null,(0,o.__)("Loading...","give"))):(0,e.createElement)("div",{...(0,c.useBlockProps)()},s&&h?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(m,{attributes:t,setAttributes:r,formOptions:g,isResolving:v,isLegacyTemplate:w,isLegacyForm:y}),y?(0,e.createElement)("div",{className:n?`${i} isSelected`:i},(0,e.createElement)(p(),{block:"give/donation-form",attributes:t})):(0,e.createElement)(wo,{clientId:a,formId:s,formFormat:u,openFormButton:d,link:E})):(0,e.createElement)(ws,{id:"formId",label:(0,o.__)("Choose a donation form","give"),options:g,isLoading:v,emptyMessage:(0,o.__)("No donation forms were found.","give"),loadingMessage:(0,o.__)("Loading Donation Forms...","give"),buttonText:(0,o.__)("Confirm","give"),onConfirm:e=>{r({id:e}),b(!0)}}))},save:()=>null});const Es={};Es.orderBy=[{value:"date",label:(0,o.__)("Date Created","give")},{value:"title",label:(0,o.__)("Form Name","give")},{value:"amount_donated",label:(0,o.__)("Amount Donated","give")},{value:"number_donations",label:(0,o.__)("Number of Donations","give")},{value:"menu_order",label:(0,o.__)("Menu Order","give")},{value:"post__in",label:(0,o.__)("Provided Form IDs","give")},{value:"closest_to_goal",label:(0,o.__)("Closest To Goal","give")},{value:"random",label:(0,o.__)("Random","give")}],Es.order=[{value:"DESC",label:(0,o.__)("Descending","give")},{value:"ASC",label:(0,o.__)("Ascending","give")}],Es.columns=[{value:"1",label:(0,o.__)("Full Width","give")},{value:"2",label:(0,o.__)("Double","give")},{value:"3",label:(0,o.__)("Triple","give")},{value:"4",label:(0,o.__)("Max (4)","give")}],Es.displayType=[{value:"redirect",label:(0,o.__)("Redirect","give")},{value:"modal_reveal",label:(0,o.__)("Modal","give")}],Es.filter=[{value:"formIDs",label:(0,o.__)("Form ID","give")},{value:"categories",label:(0,o.__)("Categories","give")},{value:"tags",label:(0,o.__)("Tags","give")}],Es.imageHeight=[{value:"auto",label:(0,o.__)("Auto","give")},{value:"custom",label:(0,o.__)("Custom","give")}];const Is=Es;var Cs=n(32485),Ms=n.n(Cs);function Ts({display:t,selected:n}){const o=String(t);return(0,e.createElement)("div",{className:Ms()("give_column_selector_container",{give_column_selector_selected:o===n})},(0,e.createElement)(e.Fragment,null,Array(t).fill(null).map(((t,n)=>(0,e.createElement)("div",{key:n,className:"give_column_selector_box"}," ")))))}function Ss({children:t}){return(0,e.createElement)("div",{className:"give_column_selector_row"},t)}function Ns({label:t,selected:n,help:o}){return(0,e.createElement)("div",{className:"give_column_selector"},t&&(0,e.createElement)("p",null,t),o&&(0,e.createElement)("p",{className:"give_column_selector_help_text"},o),"1"===n?(0,e.createElement)(Ss,null,(0,e.createElement)(Ts,{display:1,selected:n})):"2"===n?(0,e.createElement)(Ss,null,(0,e.createElement)(Ts,{display:2,selected:n})):"3"===n?(0,e.createElement)(Ss,null,(0,e.createElement)(Ts,{display:3,selected:n})):(0,e.createElement)(Ss,null,(0,e.createElement)(Ts,{display:4,selected:n})))}const Ls=({attributes:t,setAttributes:n})=>{const{formsPerPage:r,paged:i,imageSize:a,imageHeight:s,formIDs:l,excludeForms:u,excludedFormIDs:d,orderBy:p,order:m,categories:v,tags:h,columns:b,showTitle:y,showExcerpt:w,excerptLength:E,showGoal:I,showFeaturedImage:C,showDonateButton:M,tagBackgroundColor:T,donateButtonTextColor:S,displayType:N,filterOptions:L,tagTextColor:x,imageHeightOptions:O,progressBarColor:P}=t,A=(e,t)=>{n({[e]:t})},D=e=>Array.isArray(e)?e:l.indexOf(",")?e.split(","):[e];return(0,e.createElement)(c.InspectorControls,{key:"inspector"},(0,e.createElement)(g.Panel,null,(0,e.createElement)(g.PanelBody,{title:(0,o.__)("Layout","give"),initialOpen:!0},(0,e.createElement)(Ns,{label:(0,o.__)("Columns","give"),selected:b,onClick:e=>A("columns",e),help:(0,o.__)('Controls how many columns of the Form Grid appear. "Best Fit" will adjust responsively to the space available.',"give")}),(0,e.createElement)(g.SelectControl,{label:(0,o.__)("Columns","give"),name:"columns",value:b,options:Is.columns,onChange:e=>A("columns",e)}))),(0,e.createElement)(g.Panel,null,(0,e.createElement)(g.PanelBody,{title:(0,o.__)("Display Elements","give"),initialOpen:!0},(0,e.createElement)(g.ToggleControl,{className:"give-form-grid-inspector",name:"showTitle",label:(0,o.__)("Show Title","give"),checked:!!y,onChange:e=>A("showTitle",e)}),(0,e.createElement)(g.ToggleControl,{className:"give-form-grid-inspector",name:"showGoal",label:(0,o.__)("Show Goal","give"),checked:!!I,onChange:e=>A("showGoal",e)}),(0,e.createElement)(g.ToggleControl,{className:"give-form-grid-inspector",name:"showExcerpt",label:(0,o.__)("Show Excerpt","give"),checked:!!w,onChange:e=>A("showExcerpt",e)}),(0,e.createElement)(g.ToggleControl,{className:"give-form-grid-inspector",name:"showDonateButton",label:(0,o.__)("Show Donate Button","give"),checked:!!M,onChange:e=>A("showDonateButton",e)}),(0,e.createElement)(g.ToggleControl,{className:"give-form-grid-inspector",align:"right",name:"showFeaturedImage",label:(0,o.__)("Show Featured Image","give"),checked:!!C,onChange:e=>A("showFeaturedImage",e)}),C&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g.SelectControl,{className:"give-form-grid-inspector",name:"imageSize",label:(0,o.__)("Image Size","give"),value:a,options:(0,f.select)(c.store).getSettings().imageSizes.map((({slug:e,name:t})=>({value:e,label:t}))),onChange:e=>A("imageSize",e)}),(0,e.createElement)(g.SelectControl,{className:"give-form-grid-inspector",name:"imageHeightOptions",label:(0,o.__)("Image Height","give"),value:O,options:Is.imageHeight,onChange:e=>(e=>{A("imageHeightOptions",e),A("imageHeight",e)})(e)}),"custom"===O&&(0,e.createElement)(g.TextControl,{className:"give-form-grid-inspector__filter",name:"imageHeight",value:s,onChange:e=>A("imageHeight",e),help:(0,o.__)('Featured image height. Default "auto". Accepts valid heights in px, em, or rem.',"give")})))),(0,e.createElement)(g.Panel,null,(0,e.createElement)(g.PanelBody,{className:"give-donation-form-grid--grid-settings",title:(0,o.__)("Grid Settings","give"),initialOpen:!0},(0,e.createElement)(g.SelectControl,{className:"give-form-grid-inspector",label:(0,o.__)("Order By","give"),name:"orderBy",value:p,options:Is.orderBy,onChange:e=>A("orderBy",e),help:(0,o.__)("The order forms are displayed in.","give")}),(0,e.createElement)(g.SelectControl,{className:"give-form-grid-inspector",label:(0,o.__)("Order","give"),name:"order",value:m,options:Is.order,onChange:e=>A("order",e),help:(0,o.__)("Whether the order ascends or descends.","give")}),(0,e.createElement)(g.SelectControl,{className:"give-form-grid-inspector",label:(0,o.__)("Filter","give"),name:"filter",value:L,options:Is.filter,onChange:e=>A("filterOptions",e)}),"categories"===L?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g.FormTokenField,{className:"give-form-grid-inspector__filter",name:"categories",value:D(v),onChange:e=>A("categories",e)}),(0,e.createElement)("p",{className:"components-form-token-field__help"},(0,o.__)("Type the name of your category to add it to the list. Only forms within the categories you choose will be displayed in this grid.","give"))):"tags"===L?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g.FormTokenField,{className:"give-form-grid-inspector__filter",name:"tags",value:D(h),onChange:e=>A("tags",e)}),(0,e.createElement)("p",{className:"components-form-token-field__help"},(0,o.__)("Type the name of your tag to add it to the list. Only forms with these tags you choose will be displayed in this grid.","give"))):"formIDs"===L?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g.FormTokenField,{className:"give-form-grid-inspector__filter",name:"formIDs",value:D(l),onChange:e=>A("formIDs",e)}),(0,e.createElement)("p",{className:"components-form-token-field__help"},(0,o.__)("Type the ID of your form to add it to the list. Only forms with these IDs you choose will be displayed in this grid.","give"))):void 0,(0,e.createElement)(g.ToggleControl,{className:"give-form-grid-inspector  exclude__form",name:"excludeForms",label:(0,o.__)("Exclude specific forms?","give"),checked:!!u,onChange:e=>A("excludeForms",e)}),u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g.FormTokenField,{name:"excludedFormIDs",label:(0,o.__)("Excluded Form IDs","give"),value:D(d),onChange:e=>A("excludedFormIDs",e)}),(0,e.createElement)("p",{className:"components-form-token-field__help"},(0,o.__)("Type the ID of your form to exclude it from the list. Forms with these IDs you choose will not be displayed in this grid.","give"))))),(0,e.createElement)(g.Panel,null,(0,e.createElement)(g.PanelBody,{title:(0,o.__)("Grid Interaction","give"),initialOpen:!0},(0,e.createElement)(g.SelectControl,{className:"give-form-grid-inspector",label:(0,o.__)("Display Type","give"),name:"displayType",value:N,options:Is.displayType,onChange:e=>A("displayType",e)}),"redirect"===N?(0,e.createElement)("p",{className:"give-form-grid-inspector__help"},(0,o.__)("Users will be redirected to the donation form page.","give")):(0,e.createElement)("p",{className:"give-form-grid-inspector__help"},(0,o.__)("Modal with the donation form will be displayed on the same page.","give")),(0,e.createElement)(g.TextControl,{className:"give-form-grid-inspector",name:"formsPerPage",label:(0,o.__)("Forms Per Page","give"),value:r,onChange:e=>A("formsPerPage",e),help:(0,o.__)("Sets the number of forms to be displayed on the first page load.","give")}),(0,e.createElement)(g.ToggleControl,{className:"give-form-grid-inspector",name:"paged",label:(0,o.__)("Show Pagination","give"),checked:!!i,onChange:e=>A("paged",e),help:(0,o.__)("Enable form display to multiple pages.","give")}))),(0,e.createElement)(c.PanelColorSettings,{title:(0,o.__)("Color Settings","give"),colorSettings:[{value:T,onChange:e=>A("tagBackgroundColor",e),label:(0,o.__)("Tag Background Color","give")},{value:x,onChange:e=>A("tagTextColor",e),label:(0,o.__)("Tag Text Color","give")},{value:S,onChange:e=>A("donateButtonTextColor",e),label:(0,o.__)("Donate Button Text Color","give")},{value:P,onChange:e=>A("progressBarColor",e),label:(0,o.__)("Progress Bar Color","give")}]}))},xs=(0,f.withSelect)((e=>({forms:e("core").getEntityRecords("postType","give_forms")})))((t=>{const{attributes:n}=t;return(0,e.createElement)(M.Fragment,null,(0,e.createElement)(Ls,{...t}),(0,e.createElement)(p(),{block:"give/donation-form-grid",attributes:n}))})),Os=((0,r.registerBlockType)("give/donation-form-grid",{title:(0,o.__)("Donation Form Grid","give"),description:(0,o.__)("The GiveWP Donation Form Grid block insert an existing donation form into the page. Each form's presentation can be customized below.","give"),category:"give",icon:(0,e.createElement)(u,{color:"grey"}),keywords:[(0,o.__)("donation","give"),(0,o.__)("grid","give")],supports:{html:!1},attributes:{formsPerPage:{type:"string",default:"12"},paged:{type:"boolean",default:!0},formIDs:{type:"array",default:[]},excludedFormIDs:{type:"array",default:[]},excludeForms:{type:"boolean",default:!1},orderBy:{type:"string",default:"date"},order:{type:"string",default:"DESC"},categories:{type:"array",default:[]},tags:{type:"array",default:[]},columns:{type:"string",default:"1"},imageSize:{type:"string",default:"medium"},imageHeight:{type:"string",default:"auto"},imageHeightOptions:{type:"string",default:"auto"},showTitle:{type:"boolean",default:!0},showExcerpt:{type:"boolean",default:!0},showGoal:{type:"boolean",default:!0},showFeaturedImage:{type:"boolean",default:!0},showDonateButton:{type:"boolean",default:!0},tagBackgroundColor:{type:"string",default:"#69b86b"},tagTextColor:{type:"string",default:"#ffffff"},donateButtonTextColor:{type:"string",default:"#69b86b"},displayType:{type:"string",default:"redirect"},excerptLength:{type:"integer",default:16},filterOptions:{type:"string",default:"tags"},progressBarColor:{type:"string",default:"#69b86b"}},edit:xs,save:()=>null}),{donorsPerPage:{type:"string",default:"12"},formID:{type:"array",default:[]},ids:{type:"array",default:[]},categories:{type:"array",default:[]},tags:{type:"string",default:[]},orderBy:{type:"string",default:"post_date"},order:{type:"string",default:"DESC"},paged:{type:"string",default:"1"},columns:{type:"string",default:"3"},showAvatar:{type:"boolean",default:!0},showName:{type:"boolean",default:!0},showCompanyName:{type:"boolean",default:!1},showForm:{type:"boolean",default:!0},showTotal:{type:"boolean",default:!0},showComments:{type:"boolean",default:!0},showTributes:{type:"boolean",default:!0},showAnonymous:{type:"boolean",default:!0},onlyComments:{type:"boolean",default:!1},commentLength:{type:"string",default:"80"},readMoreText:{type:"string",default:(0,o.__)("Read more","give")},loadMoreText:{type:"string",default:(0,o.__)("Load more","give")},avatarSize:{type:"string",default:"75"},toggleOptions:{type:"string",default:"donorInfo"},filterOptions:{type:"string",default:"ids"},color:{type:"string",default:"#219653"},showTimestamp:{type:"boolean",default:!0}}),Ps={};Ps.columns=[{value:"1",label:(0,o.__)("Full width","give")},{value:"2",label:(0,o.__)("Double","give")},{value:"3",label:(0,o.__)("Triple","give")},{value:"4",label:(0,o.__)("Max (4)","give")}],Ps.order=[{value:"DESC",label:(0,o.__)("Descending","give")},{value:"ASC",label:(0,o.__)("Ascending","give")}],Ps.orderBy=[{value:"donation_amount",label:(0,o.__)("Donation Amount","give")},{value:"post_date",label:(0,o.__)("Date Created","give")}],Ps.toggleOptions=[{value:"donorInfo",label:(0,o.__)("Donor Info","give")},{value:"wallAttributes",label:(0,o.__)("Wall Attributes","give")}],Ps.filter=[{value:"ids",label:(0,o.__)("Donor ID","give")},{value:"formID",label:(0,o.__)("Form ID","give")},{value:"categories",label:(0,o.__)("Categories","give")},{value:"tags",label:(0,o.__)("Tags","give")}];const As=Ps;function Ds({options:t,onClick:n,selected:o}){return(0,e.createElement)("div",{className:"give-toggle"},t.map((({value:t,label:r},i)=>(0,e.createElement)("div",{key:i,onClick:()=>n(t),className:"give-toggle__option",style:o===t?{background:"#007cba",color:"white"}:{}},r))))}const ks=({attributes:t,setAttributes:n})=>{const{donorsPerPage:r,ids:i,formID:a,categories:s,tags:l,orderBy:u,order:d,columns:p,avatarSize:f,showAvatar:m,showName:v,showCompanyName:h,onlyComments:b,showForm:y,showTotal:w,showComments:E,showAnonymous:I,commentLength:C,readMoreText:M,loadMoreText:T,toggleOptions:S,filterOptions:N,color:L,showTimestamp:x,showTributes:O}=t,P=(e,t)=>{n({[e]:t})},A=e=>Array.isArray(e)?e:formIDs.indexOf(",")?e.split(","):[e];return(0,e.createElement)(c.InspectorControls,{key:"inspector"},(0,e.createElement)(g.Panel,null,(0,e.createElement)(g.PanelBody,{title:(0,o.__)("Layout","give"),initialOpen:!0},(0,e.createElement)(Ns,{selected:p,onClick:e=>P("columns",e),help:(0,o.__)("Controls how many columns of the Form Grid appear. All sizes will adjust responsively to the space available. The maximum number allowed per row is 4","give")}),(0,e.createElement)(g.SelectControl,{className:"give-donor-wall-inspector",name:"columns",label:(0,o.__)("Columns","give"),value:p,options:As.columns,onChange:e=>P("columns",e)}))),(0,e.createElement)(g.Panel,null,(0,e.createElement)(g.PanelBody,{title:(0,o.__)("Display Elements","give"),initialOpen:!1},(0,e.createElement)(Ds,{options:As.toggleOptions,onClick:e=>P("toggleOptions",e),selected:S}),"donorInfo"===S?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g.ToggleControl,{className:"give-donor-wall-inspector",name:"showName",label:(0,o.__)("Show Name","give"),checked:!!v,onChange:e=>P("showName",e)}),(0,e.createElement)(g.ToggleControl,{className:"give-donor-wall-inspector",name:"showName",label:(0,o.__)("Show Company Name","give"),checked:!!h,onChange:e=>P("showCompanyName",e)}),(0,e.createElement)(g.ToggleControl,{className:"give-donor-wall-inspector",name:"showAnonymous",label:(0,o.__)("Show Anonymous","give"),checked:!!I,onChange:e=>P("showAnonymous",e)}),(0,e.createElement)(g.ToggleControl,{className:"give-donor-wall-inspector",name:"showAvatar",label:(0,o.__)("Show Avatar","give"),checked:!!m,onChange:e=>P("showAvatar",e)}),(0,e.createElement)(g.TextControl,{className:"give-donor-wall-inspector",name:"avatarSize",label:(0,o.__)("Avatar Size","give"),help:(0,o.__)("Avatar size. Default height is 75. Accepts valid heights in px.","give"),value:f,onChange:e=>P("avatarSize",e)})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g.ToggleControl,{className:"give-donor-wall-inspector",name:"showForm",label:(0,o.__)("Show Donation Form","give"),checked:!!y,onChange:e=>P("showForm",e)}),(0,e.createElement)(g.ToggleControl,{className:"give-donor-wall-inspector",name:"showTotal",label:(0,o.__)("Show Total","give"),checked:!!w,onChange:e=>P("showTotal",e)}),(0,e.createElement)(g.ToggleControl,{className:"give-donor-wall-inspector",name:"showTimestamp",label:(0,o.__)("Show Time","give"),checked:!!x,onChange:e=>P("showTimestamp",e)}),!!window.Give_Tribute&&(0,e.createElement)(g.ToggleControl,{className:"give-donor-wall-inspector",name:"showTributes",label:(0,o.__)("Show Tributes","give"),checked:!!O,onChange:e=>P("showTributes",e)}),(0,e.createElement)(g.ToggleControl,{className:"give-donor-wall-inspector",name:"showComments",label:(0,o.__)("Show Comments","give"),checked:!!E,onChange:e=>P("showComments",e)}),(0,e.createElement)(g.ToggleControl,{className:"give-donor-wall-inspector",name:"onlyComments",label:(0,o.__)("Only Comments","give"),checked:!!b,onChange:e=>P("onlyComments",e)}),(0,e.createElement)(g.TextControl,{className:"give-donor-wall-inspector",name:"commentLength",label:(0,o.__)("Comment Length","give"),help:(0,o.__)("Limits the amount of characters to be displayed on donations with comments.","give"),value:C,onChange:e=>P("commentLength",e)}),(0,e.createElement)(g.TextControl,{className:"give-donor-wall-inspector",name:"readMoreText",label:(0,o.__)("Read More Text","give"),value:M,onChange:e=>P("readMoreText",e)})))),(0,e.createElement)(g.Panel,null,(0,e.createElement)(g.PanelBody,{className:"give-wall--wall-settings",title:(0,o.__)("Wall Settings","give"),initialOpen:!1},(0,e.createElement)(g.SelectControl,{className:"give-donor-wall-inspector",label:(0,o.__)("Sort By","give"),name:"orderBy",value:u,options:As.orderBy,onChange:e=>P("orderBy",e)}),(0,e.createElement)(g.SelectControl,{className:"give-donor-wall-inspector",label:(0,o.__)("Order","give"),name:"order",value:d,options:As.order,onChange:e=>P("order",e)}),(0,e.createElement)(g.SelectControl,{className:"give-donor-wall-inspector",label:(0,o.__)("Filter","give"),name:"filter",value:N,options:As.filter,onChange:e=>P("filterOptions",e)}),"categories"===N?(0,e.createElement)(e.Fragment,null," ",(0,e.createElement)(g.FormTokenField,{className:"give-donor-wall-inspector",onChange:e=>P("categories",e),value:A(s)}),(0,e.createElement)("p",{className:"components-form-token-field__help"},(0,o.__)("Type the name of your category to add it to the list. Only forms within the categories you choose will be displayed in this grid.","give"))):"tags"===N?(0,e.createElement)(e.Fragment,null," ",(0,e.createElement)(g.FormTokenField,{className:"give-donor-wall-inspector",name:"tags",value:A(l),onChange:e=>P("tags",e)}),(0,e.createElement)("p",{className:"components-form-token-field__help"},(0,o.__)("Type the name of your tag to add it to the list. Only forms with these tags you choose will be displayed in this grid.","give"))):"ids"===N?(0,e.createElement)(e.Fragment,null," ",(0,e.createElement)(g.FormTokenField,{className:"give-donor-wall-inspector",name:"ids",value:A(i),onChange:e=>P("ids",e)}),(0,e.createElement)("p",{className:"components-form-token-field__help"},(0,o.__)("By default, all donors will display. Use this setting to restrict the donor wall to only display certain donors. Use a comma-separated list of donor IDs.","give"))):"formID"===N?(0,e.createElement)(e.Fragment,null," ",(0,e.createElement)(g.FormTokenField,{className:"give-donor-wall-inspector",help:(0,o.__)("By Default, donations to all forms will display. Use this setting to restrict the donor to display only donations to certains forms. Use a comma-separated list of form IDs.","give"),name:"formID",value:A(a),onChange:e=>P("formID",e)}),(0,e.createElement)("p",{className:"components-form-token-field__help"},(0,o.__)("Type the ID of your form to add it to the list. Only forms with these IDs you choose will be displayed in this grid.","give"))):void 0)),(0,e.createElement)(g.Panel,null,(0,e.createElement)(g.PanelBody,{title:(0,o.__)("Wall Interaction","give"),initialOpen:!0},(0,e.createElement)(g.TextControl,{className:"give-donor-wall-inspector",name:"donorsPerPage",label:(0,o.__)("Donors Per Page","give"),value:r,onChange:e=>P("donorsPerPage",e),help:(0,o.__)("How many donors should show up on the initial page load?","give")}),(0,e.createElement)(g.TextControl,{className:"give-donor-wall-inspector",name:"loadMoreText",label:(0,o.__)("Load More Text","give"),value:T,onChange:e=>P("loadMoreText",e)}))),(0,e.createElement)(g.Panel,null,(0,e.createElement)(g.PanelBody,{title:(0,o.__)("Color","give"),initialOpen:!1},(0,e.createElement)(c.ColorPalette,{value:L,onChange:e=>n({color:e})}))))},{InnerBlocks:_s}=((0,r.registerBlockType)("give/donor-wall",{title:(0,o.__)("Donor Wall","give"),description:(0,o.__)("The GiveWP Donor Wall block displays donations on the front end of the site. The settings below allow you to customize the information displayed","give"),category:"give",icon:(0,e.createElement)(u,{color:"grey"}),keywords:[(0,o.__)("donation","give"),(0,o.__)("wall","give")],supports:{html:!1},attributes:Os,edit:t=>{const{attributes:n}=t;return(0,e.createElement)(M.Fragment,null,(0,e.createElement)(ks,{...t}),(0,e.createElement)(p(),{block:"give/donor-wall",attributes:n}))},save:()=>null}),wp.blockEditor),{useEffect:js}=wp.element,{select:Rs,dispatch:Fs}=wp.data,{InnerBlocks:zs}=wp.blockEditor,{registerBlockType:Vs}=wp.blocks,Bs=(Vs("give/multi-form-goal",{title:(0,o.__)("Multi-Form Goal","give"),description:(0,o.__)("The Multi-Form Goals block displays progress made across donation forms towards a common goal.","give"),category:"give",icon:(0,e.createElement)(u,{color:"grey"}),keywords:[(0,o.__)("donation","give"),(0,o.__)("multi form goals","give")],supports:{align:["wide"]},edit:({isSelected:t,clientId:n})=>{js((()=>{t&&r()}),[]);const r=()=>{const e=Rs("core/editor").getBlocksByClientId(n)[0],t=e.innerBlocks[e.innerBlocks.length-1];t&&Fs("core/block-editor").selectBlock(t.clientId)},i=[["core/media-text",{imageFill:!0},[["core/heading",{placeholder:(0,o.__)("Heading","give")}],["core/paragraph",{placeholder:(0,o.__)("Summary","give")}]]],["give/progress-bar",{}]];return(0,e.createElement)("div",{className:"give-multi-form-goal-block"},(0,e.createElement)(_s,{template:i,templateLock:"all"}))},save:()=>(0,e.createElement)("div",{className:"give-multi-form-goal-block"},(0,e.createElement)(zs.Content,null))}),{ids:{type:"array",default:[]},categories:{type:"array",default:[]},tags:{type:"array",default:[]},goal:{type:"string",default:"1000"},enddate:{type:"string",default:""},color:{type:"string",default:"#66bb6a"}}),{useInstanceId:Hs}=wp.compose,{BaseControl:Ws}=wp.components,Gs=({name:t,label:n=null,help:r,className:i,value:a=null,placeholder:s=`${(0,o.__)("Select","give")}...`,hideLabelFromVision:l,isLoading:u,isDisabled:c,onChange:d=null,options:p=null})=>{const f=`give-multi-select-control-${t}-${Hs(Gs)}`;return p&&p.length<1?null:(0,e.createElement)(Ws,{label:n,hideLabelFromVision:l,id:f,help:r,className:i},(0,e.createElement)(hs,{isLoading:u,inputId:f,value:a,onChange:e=>d(e),options:p,maxMenuHeight:"200px",isDisabled:c,placeholder:s,isMulti:!0,theme:e=>({...e,colors:{...e.colors,primary:"#007cba",primary75:"#31a6e0",primary50:"#5dbae8",primary25:"#9edaf7"}})}))};Gs.propTypes={label:a().string,value:a().any.isRequired,onChange:a().func,options:a().array.isRequired,name:a().string.isRequired,help:a().string,className:a().string,hideLabelFromVision:a().bool,isLoading:a().bool,isDisabled:a().bool,placeholder:a().string};const Ys=Gs,{useInstanceId:Us}=wp.compose,{BaseControl:Zs,ColorPalette:Ks}=wp.components,Qs=({name:t,label:n,help:o,className:r,value:i,hideLabelFromVision:a,onChange:s=null,colors:l})=>{const u=`give-color-control-${t}-${Us(Qs)}`;return(0,e.createElement)(Zs,{label:n,hideLabelFromVision:a,id:u,help:o,className:r},(0,e.createElement)(Ks,{value:i,colors:l,onChange:e=>s(e),clearable:!0}))};Qs.propTypes={label:a().string,value:a().any.isRequired,onChange:a().func,name:a().string.isRequired,help:a().string,className:a().string,hideLabelFromVision:a().bool};const $s=Qs,{useInstanceId:Xs}=wp.compose,{DateTimePicker:Js,BaseControl:qs,Button:el,Dropdown:tl}=wp.components,{__experimentalGetSettings:nl,date:ol}=wp.date,rl=({name:t,label:n,help:r,className:i,value:a,onChange:s=null})=>{const l=`give-date-time-control-${t}-${Xs(rl)}`,u=nl(),c=/a(?!\\)/i.test(u.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,e.createElement)(qs,{label:n,hideLabelFromVision:!0,id:l,help:r,className:i},(0,e.createElement)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},(0,e.createElement)("span",null,n),(0,e.createElement)(tl,{position:"bottom right",renderToggle:({isOpen:t,onToggle:n})=>(0,e.createElement)(el,{isSecondary:!0,onClick:n,"aria-expanded":t},""!==a?ol("F j, Y",a):(0,o.__)("Set date","give")),renderContent:()=>(0,e.createElement)(Js,{currentDate:a,onChange:e=>s(e),is12Hour:c})})))};rl.propTypes={label:a().string,value:a().any.isRequired,onChange:a().func,name:a().string.isRequired,help:a().string,className:a().string};const il=rl,{useSelect:al}=wp.data,{InspectorControls:sl}=wp.blockEditor,{PanelBody:ll,TextControl:ul}=wp.components,cl=giveProgressBarThemeSupport.editorColorPalette,dl=({attributes:t,setAttributes:n})=>{const{ids:r,categories:i,tags:a,goal:s,enddate:l,color:u}=t,c=al((e=>{const t=e("core").getEntityRecords("postType","give_forms");return t?t.map((e=>({label:e.title.raw?e.title.raw:(0,o.__)("(no title)"),value:e.id}))):[]}),[]),d=al((e=>{const t=e("core").getEntityRecords("taxonomy","give_forms_tag",{per_page:100});return t?t.map((e=>({label:e.name?e.name:(0,o.__)("(no title)"),value:e.id}))):[]}),[]),p=al((e=>{const t=e("core").getEntityRecords("taxonomy","give_forms_category",{per_page:100});return t?t.map((e=>({label:e.name?e.name:(0,o.__)("(no title)"),value:e.id}))):[]}),[]),f=(e,t)=>{n({[e]:t})};return(0,e.createElement)(sl,{key:"inspector"},(0,e.createElement)(ll,{title:(0,o.__)("Goal","give"),initialOpen:!0},(0,e.createElement)(ul,{name:"goal",label:(0,o.__)("Goal amount","give"),type:"number",onChange:e=>f("goal",e),value:s}),(0,e.createElement)(il,{name:"enddate",label:(0,o.__)("Goal end date","give"),value:l,onChange:e=>f("enddate",e)}),(0,e.createElement)($s,{colors:cl,name:"color",label:(0,o.__)("Progress bar color","give"),onChange:e=>f("color",e),value:u})),(0,e.createElement)(ll,{title:(0,o.__)("Filters","give"),initialOpen:!1},(0,e.createElement)(Ys,{name:"ids",label:(0,o.__)("Filter by forms","give"),value:c.filter((e=>r.includes(e.value))),placeholder:`${(0,o.__)("All forms","give")}...`,options:c,onChange:e=>f("ids",e?e.map((e=>e.value)):[])}),(0,e.createElement)(Ys,{name:"categories",label:(0,o.__)("Filter by categories","give"),value:p.filter((e=>i.includes(e.value))),placeholder:`${(0,o.__)("All categories","give")}...`,options:p,onChange:e=>f("categories",e?e.map((e=>e.value)):[])}),(0,e.createElement)(Ys,{name:"tags",label:(0,o.__)("Filter by tags","give"),value:d.filter((e=>a.includes(e.value))),placeholder:`${(0,o.__)("All tags","give")}...`,options:d,onChange:e=>f("tags",e?e.map((e=>e.value)):[])})))},pl=window.lodash,{Component:fl,RawHTML:gl,Fragment:ml}=wp.element,vl=wp.apiFetch,{addQueryArgs:hl}=wp.url,{Placeholder:bl}=wp.components,yl=class extends fl{constructor(e){super(e),this.state={response:null,prevResponse:null}}componentDidMount(){this.isStillMounted=!0,this.fetch(this.props),this.fetch=(0,pl.debounce)(this.fetch,500)}componentWillUnmount(){this.isStillMounted=!1}componentDidUpdate(e){(0,pl.isEqual)(e,this.props)||this.fetch(this.props)}fetch(e){if(!this.isStillMounted)return;null!==this.state.response&&this.setState((e=>({response:null,prevResponse:e.response})));const{block:t,attributes:n=null,urlQueryArgs:o={}}=e,r=function(e,t=null,n={}){return hl(`/wp/v2/block-renderer/${e}`,{context:"edit",...null!==t?{attributes:t}:{},...n})}(t,n,o),i=this.currentFetchRequest=vl({path:r}).then((e=>{this.isStillMounted&&i===this.currentFetchRequest&&e&&this.setState({response:e.rendered})})).catch((e=>{this.isStillMounted&&i===this.currentFetchRequest&&this.setState({response:{error:!0,errorMsg:e.message}})}));return i}render(){const{right:t,top:n,unit:r}=this.props.spinnerLocation,i=this.state.response,a=this.state.prevResponse;let s="";null!==a&&(s=`<div style="position:relative;"><div style="position:absolute;right:${t}${r};top:${n}${r};z-index:1"><span class="components-spinner"></span></div>${a}</div>`);const{className:l,EmptyResponsePlaceholder:u=({className:t})=>(0,e.createElement)(bl,{className:t},(0,o.__)("Block rendered as empty.")),ErrorResponsePlaceholder:c=({response:t,className:n})=>{const r=sprintf(
// translators: %s: error message describing the problem
// translators: %s: error message describing the problem
(0,o.__)("Error loading block: %s"),t.errorMsg);return(0,e.createElement)(bl,{className:n},r)}}=this.props;return""===i?(0,e.createElement)(u,{response:i,...this.props}):i?i.error?(0,e.createElement)(c,{response:i,...this.props}):(0,e.createElement)(gl,{key:"html",className:l},i):(0,e.createElement)(ml,null,(0,e.createElement)(gl,{key:"html",className:l},s))}},{Fragment:wl}=wp.element,{registerBlockType:El}=wp.blocks;El("give/progress-bar",{title:(0,o.__)("Progress Bar","give"),description:(0,o.__)("The Progress Bar block displays progress made across donation forms towards a common goal.","give"),category:"give",icon:(0,e.createElement)(u,{color:"grey"}),keywords:[(0,o.__)("donation","give"),(0,o.__)("progress-bar","give")],attributes:Bs,parent:["give/multi-form-goal"],edit:({attributes:t,setAttributes:n})=>(0,e.createElement)(wl,null,(0,e.createElement)(dl,{attributes:t,setAttributes:n}),(0,e.createElement)(yl,{block:"give/progress-bar",attributes:t,spinnerLocation:{right:0,top:-30,unit:"px"}}))})})()})();

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 13 2025 10:53:58
inteuuod / inteuuod
0755
assets
--
July 13 2025 10:53:58
inteuuod / inteuuod
0755
adminBlocks-rtl.css
10.368 KB
May 22 2025 00:18:30
inteuuod / inteuuod
0644
adminBlocks.asset.php
0.219 KB
June 11 2025 22:57:06
inteuuod / inteuuod
0644
adminBlocks.css
10.367 KB
May 22 2025 00:18:30
inteuuod / inteuuod
0644
adminBlocks.js
210.771 KB
June 11 2025 22:57:06
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF