![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets-rebuild.corals.io/wp-content/plugins/give/build/ |
(()=>{var e={25815:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(68081),i=n(40390),o=n(19735),a=n(24534),s=n(50483),l=n(49503),u=n(73716),c=function(e,t,n){for(var r=0,o=0;r=o,o=(0,i.se)(),38===r&&12===o&&(t[n]=1),!(0,i.Sh)(o);)(0,i.K2)();return(0,i.di)(e,i.G1)},d=new WeakMap,p=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=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)||d.get(n))&&!r){d.set(e,!0);for(var a=[],s=function(e,t){return(0,i.VF)(function(e,t){var n=-1,r=44;do{switch((0,i.Sh)(r)){case 0:38===r&&12===(0,i.se)()&&(t[n]=1),e[n]+=c(i.G1-1,t,n);break;case 2:e[n]+=(0,i.Tb)(r);break;case 4:if(44===r){e[++n]=58===(0,i.se)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=(0,o.HT)(r)}}while(r=(0,i.K2)());return e}((0,i.c4)(e),t))}(t,a),l=n.props,u=0,p=0;u<s.length;u++)for(var f=0;f<l.length;f++,p++)e.props[p]=a[u]?s[u].replace(/&\f/g,l[f]):l[f]+" "+s[u]}}},f=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function g(e,t){switch((0,o.tW)(e,t)){case 5103:return a.j+"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 a.j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a.j+e+a.vd+e+a.MS+e+e;case 6828:case 4268:return a.j+e+a.MS+e+e;case 6165:return a.j+e+a.MS+"flex-"+e+e;case 5187:return a.j+e+(0,o.HC)(e,/(\w+).+(:[^]+)/,a.j+"box-$1$2"+a.MS+"flex-$1$2")+e;case 5443:return a.j+e+a.MS+"flex-item-"+(0,o.HC)(e,/flex-|-self/,"")+e;case 4675:return a.j+e+a.MS+"flex-line-pack"+(0,o.HC)(e,/align-content|flex-|-self/,"")+e;case 5548:return a.j+e+a.MS+(0,o.HC)(e,"shrink","negative")+e;case 5292:return a.j+e+a.MS+(0,o.HC)(e,"basis","preferred-size")+e;case 6060:return a.j+"box-"+(0,o.HC)(e,"-grow","")+a.j+e+a.MS+(0,o.HC)(e,"grow","positive")+e;case 4554:return a.j+(0,o.HC)(e,/([^-])(transform)/g,"$1"+a.j+"$2")+e;case 6187:return(0,o.HC)((0,o.HC)((0,o.HC)(e,/(zoom-|grab)/,a.j+"$1"),/(image-set)/,a.j+"$1"),e,"")+e;case 5495:case 3959:return(0,o.HC)(e,/(image-set\([^]*)/,a.j+"$1$`$1");case 4968:return(0,o.HC)((0,o.HC)(e,/(.+:)(flex-)?(.*)/,a.j+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.j+e+e;case 4095:case 3583:case 4068:case 2532:return(0,o.HC)(e,/(.+)-inline(.+)/,a.j+"$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((0,o.b2)(e)-1-t>6)switch((0,o.wN)(e,t+1)){case 109:if(45!==(0,o.wN)(e,t+4))break;case 102:return(0,o.HC)(e,/(.+:)(.+)-([^]+)/,"$1"+a.j+"$2-$3$1"+a.vd+(108==(0,o.wN)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,o.K5)(e,"stretch")?g((0,o.HC)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,o.wN)(e,t+1))break;case 6444:switch((0,o.wN)(e,(0,o.b2)(e)-3-(~(0,o.K5)(e,"!important")&&10))){case 107:return(0,o.HC)(e,":",":"+a.j)+e;case 101:return(0,o.HC)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.j+(45===(0,o.wN)(e,14)?"inline-":"")+"box$3$1"+a.j+"$2$3$1"+a.MS+"$2box$3")+e}break;case 5936:switch((0,o.wN)(e,t+11)){case 114:return a.j+e+a.MS+(0,o.HC)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a.j+e+a.MS+(0,o.HC)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a.j+e+a.MS+(0,o.HC)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a.j+e+a.MS+e+e}return e}var m=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case a.LU:e.return=g(e.value,e.length);break;case a.Sv:return(0,s.l)([(0,i.C)(e,{value:(0,o.HC)(e.value,"@","@"+a.j)})],r);case a.XZ:if(e.length)return(0,o.kg)(e.props,(function(t){switch((0,o.YW)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,s.l)([(0,i.C)(e,{props:[(0,o.HC)(t,/:(read-\w+)/,":"+a.vd+"$1")]})],r);case"::placeholder":return(0,s.l)([(0,i.C)(e,{props:[(0,o.HC)(t,/:(plac\w+)/,":"+a.j+"input-$1")]}),(0,i.C)(e,{props:[(0,o.HC)(t,/:(plac\w+)/,":"+a.vd+"$1")]}),(0,i.C)(e,{props:[(0,o.HC)(t,/:(plac\w+)/,a.MS+"input-$1")]})],r)}return""}))}}],v=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 i,o,a=e.stylisPlugins||m,c={},d=[];i=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++)c[t[n]]=!0;d.push(e)}));var g,v=[p,f],h=[s.A,(0,l.MY)((function(e){g.insert(e)}))],b=(0,l.r1)(v.concat(a,h));o=function(e,t,n,r){var i;g=n,i=e?e+"{"+t.styles+"}":t.styles,(0,s.l)((0,u.wE)(i),b),r&&(y.inserted[t.name]=!0)};var y={key:t,sheet:new r.v({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:c,registered:{},insert:o};return y.sheet.hydrate(d),y}},35137:(e,t,n)=>{"use strict";function r(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}n.d(t,{A:()=>r})},5441:(e,t,n)=>{"use strict";n.d(t,{E:()=>m,c:()=>f,h:()=>s});var r=n(51609),i=n(25815),o=n(30041),a=n(12323),s={}.hasOwnProperty,l=(0,r.createContext)("undefined"!=typeof HTMLElement?(0,i.A)({key:"css"}):null);l.Provider;var u=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(l);return e(t,i,n)}))},c=(0,r.createContext)({}),d=r.useInsertionEffect?r.useInsertionEffect:function(e){e()},p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f=function(e,t){var n={};for(var r in t)s.call(t,r)&&(n[r]=t[r]);return n[p]=e,n},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,o.SF)(t,n,r),d((function(){return(0,o.sk)(t,n,r)})),null},m=u((function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var l=e[p],u=[i],d="";"string"==typeof e.className?d=(0,o.Rk)(t.registered,u,e.className):null!=e.className&&(d=e.className+" ");var f=(0,a.J)(u,void 0,(0,r.useContext)(c));d+=t.key+"-"+f.name;var m={};for(var v in e)s.call(e,v)&&"css"!==v&&v!==p&&(m[v]=e[v]);return m.ref=n,m.className=d,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(g,{cache:t,serialized:f,isStringTag:"string"==typeof l}),(0,r.createElement)(l,m))}))},17437:(e,t,n)=>{"use strict";n.d(t,{AH:()=>s,Y:()=>a,i7:()=>l});var r=n(51609),i=(n(25815),n(5441)),o=(n(4146),n(12323)),a=function(e,t){var n=arguments;if(null==t||!i.h.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=i.E,a[1]=(0,i.c)(e,t);for(var s=2;s<o;s++)a[s]=n[s];return r.createElement.apply(null,a)};function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.J)(t)}r.useInsertionEffect?r.useInsertionEffect:r.useLayoutEffect;var l=function(){var e=s.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_"}}}},12323:(e,t,n)=>{"use strict";n.d(t,{J:()=>m});var r=n(35137),i=n(69209),o=n(91545),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.A)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===i.A[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function p(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 f={name:n.name,styles:n.styles,next:f},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)f={name:r.name,styles:r.styles,next:f},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=p(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":u(a)&&(r+=c(o)+":"+d(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=p(e,t,a);switch(o){case"animation":case"animationName":r+=c(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)u(a[l])&&(r+=c(o)+":"+d(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=f,o=n(e);return f=i,p(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var f,g=/label:\s*([^\s;\n{]+)\s*(;|$)/g,m=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";f=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=p(n,t,a)):o+=a[0];for(var s=1;s<e.length;s++)o+=p(n,t,e[s]),i&&(o+=a[s]);g.lastIndex=0;for(var l,u="";null!==(l=g.exec(o));)u+="-"+l[1];return{name:(0,r.A)(o)+u,styles:o,next:f}}},91545:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},69209:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r={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}},68081:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var r=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}()},30041:(e,t,n)=>{"use strict";function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}n.d(t,{Rk:()=>r,SF:()=>i,sk:()=>o});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},11905:(e,t,n)=>{"use strict";n.d(t,{A:()=>r}),n(51609);const r="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=="},70669:(e,t,n)=>{"use strict";n.d(t,{A:()=>N});var r=n(51609),i=n.n(r),o=n(27723),a=n(94715),s=n(56427),l=n(47730),u=n(31927),c=n(74848),d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},d.apply(this,arguments)};function p(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||t)}var f,g=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},m={k:1e3,m:1e6,b:1e9},v=function(e){var t=e.value,n=e.groupSeparator,r=void 0===n?",":n,i=e.decimalSeparator,o=void 0===i?".":i,a=e.allowDecimals,s=void 0===a||a,l=e.decimalsLimit,u=void 0===l?2:l,c=e.allowNegativeValue,d=void 0===c||c,f=e.disableAbbreviations,v=void 0!==f&&f,h=e.prefix,b=void 0===h?"":h,y=e.transformRawValue,w=(void 0===y?function(e){return e}:y)(t);if("-"===w)return w;var E=v?[]:["k","m","b"],I=new RegExp("((^|\\D)-\\d)|(-"+g(b)+")").test(w),C=RegExp("(\\d+)-?"+g(b)).exec(t)||[],M=C[0],S=C[1],A=function(e,t){void 0===t&&(t=",");var n=new RegExp(g(t),"g");return e.replace(n,"")}(b?M?w.replace(M,"").concat(S):w.replace(b,""):w,r),T=function(e,t){var n=g(t.join("")),r=new RegExp("[^\\d"+n+"]","gi");return e.replace(r,"")}(A,p([r,o],E)),L=T;if(!v){if(E.some((function(e){return e===T.toLowerCase().replace(o,"")})))return"";var N=function(e,t){void 0===t&&(t=".");var n=new RegExp("(\\d+("+g(t)+"\\d*)?)([kmb])$","i"),r=e.match(n);if(r){var i=r[1],o=r[3],a=m[o.toLowerCase()];return Number(i.replace(t,"."))*a}}(T,o);N&&(L=String(N))}var x=I&&d?"-":"";if(o&&L.includes(o)){var O=T.split(o),D=O[0],P=O[1],k=u&&P?P.slice(0,u):P;return""+x+D+(s?""+o+k:"")}return""+x+L},h=function(e,t){var n=t.groupSeparator,r=void 0===n?",":n,i=t.decimalSeparator,o=void 0===i?".":i,a=new RegExp("\\d([^"+g(r)+g(o)+"0-9]+)"),s=e.match(a);return s?s[1]:void 0},b=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=new RegExp("^\\d?-"+(a?g(a)+"?":"")+"\\d").test(t),c="."!==n?y(t,n,u):t,p={minimumFractionDigits:i||0,maximumFractionDigits:20},f=(r?new Intl.NumberFormat(r.locale,r.currency?d(d({},p),{style:"currency",currency:r.currency}):p):new Intl.NumberFormat(void 0,p)).formatToParts(Number(c)),m=w(f,e),v=h(m,d({},e)),b=t.slice(-1)===n?n:"",E=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===i&&E&&n&&(m=m.includes(n)?m.replace(RegExp("(\\d+)("+g(n)+")(\\d+)","g"),"$1$2"+E):v&&!l?m.replace(v,""+n+E+v):""+m+n+E),l&&b?""+m+b+l:v&&b?m.replace(v,""+b+v):v&&l?m.replace(v,""+b+l):[m,b,l].join("")},y=function(e,t,n){var r=e;return t&&"."!==t&&(r=r.replace(RegExp(g(t),"g"),"."),n&&"-"===t&&(r="-"+r.slice(1))),r},w=function(e,t){var n=t.prefix,r=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce((function(e,t,a){var l=t.type,u=t.value;return 0===a&&n?"minusSign"===l?[u,n]:"currency"===l?p(p([],e),[n]):[n,u]:"currency"===l?n?e:p(p([],e),[u]):"group"===l?s?e:p(p([],e),[void 0!==r?r:u]):"decimal"===l?void 0!==o&&0===o?e:p(p([],e),[void 0!==i?i:u]):p(p([],e),"fraction"===l?[void 0!==o?u.slice(0,o):u]:[u])}),[""]).join("")},E={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},I=function(e){return RegExp(/\d/,"gi").test(e)};function C(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}function M(e){var t=e.title,n=e.description,r=e.href,i=e.anchorText,o=e.children;return(0,c.jsxs)("div",{className:"givewp-block-notice",children:[(0,c.jsx)("span",{className:"givewp-block-notice__title",children:t}),n&&(0,c.jsx)("span",{className:"givewp-block-notice__description",children:n}),o,r&&(0,c.jsx)("a",{className:"givewp-block-notice__anchor",href:r,target:"_blank",rel:"noreferrer noopener",children:i})]})}(0,r.forwardRef)((function(e,t){var n=e.allowDecimals,o=void 0===n||n,a=e.allowNegativeValue,s=void 0===a||a,l=e.id,u=e.name,c=e.className,p=e.customInput,f=e.decimalsLimit,g=e.defaultValue,m=e.disabled,y=void 0!==m&&m,w=e.maxLength,C=e.value,M=e.onValueChange,S=e.fixedDecimalLength,A=e.placeholder,T=e.decimalScale,L=e.prefix,N=e.suffix,x=e.intlConfig,O=e.step,D=e.min,P=e.max,k=e.disableGroupSeparators,j=void 0!==k&&k,R=e.disableAbbreviations,_=void 0!==R&&R,F=e.decimalSeparator,z=e.groupSeparator,V=e.onChange,H=e.onFocus,B=e.onBlur,Y=e.onKeyDown,W=e.onKeyUp,G=e.transformRawValue,U=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(F&&I(F))throw new Error("decimalSeparator cannot be a number");if(z&&I(z))throw new Error("groupSeparator cannot be a number");var Z=(0,r.useMemo)((function(){return function(e){var t=e||{},n=t.locale,r=t.currency;return(n?new Intl.NumberFormat(n,r?{currency:r,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(e,t,n){return"currency"===t.type?d(d({},e),0===n?{currencySymbol:t.value,prefix:t.value}:{currencySymbol:t.value,suffix:t.value}):"group"===t.type?d(d({},e),{groupSeparator:t.value}):"decimal"===t.type?d(d({},e),{decimalSeparator:t.value}):e}),E)}(x)}),[x]),K=F||Z.decimalSeparator||"",Q=z||Z.groupSeparator||"";if(K&&Q&&K===Q&&!1===j)throw new Error("decimalSeparator cannot be the same as groupSeparator");var $={decimalSeparator:K,groupSeparator:Q,disableGroupSeparators:j,intlConfig:x,prefix:L||Z.prefix,suffix:N},X={decimalSeparator:K,groupSeparator:Q,allowDecimals:o,decimalsLimit:f||S||2,allowNegativeValue:s,disableAbbreviations:_,prefix:L||Z.prefix,transformRawValue:G},J=null!=g?b(d(d({},$),{decimalScale:T,value:String(g)})):null!=C?b(d(d({},$),{decimalScale:T,value:String(C)})):"",q=(0,r.useState)(J),ee=q[0],te=q[1],ne=(0,r.useState)(!1),re=ne[0],ie=ne[1],oe=(0,r.useState)(0),ae=oe[0],se=oe[1],le=(0,r.useState)(0),ue=le[0],ce=le[1],de=(0,r.useState)(null),pe=de[0],fe=de[1],ge=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(function(){return ge.current}));var me=function(e,t){ie(!0);var n=function(e){var t=e.selectionStart,n=e.value,r=e.lastKeyStroke,i=e.stateValue,o=e.groupSeparator,a=t,s=n;if(i&&a){var l=n.split("");return"Backspace"===r&&i[a]===o&&(l.splice(a-1,1),a-=1),"Delete"===r&&i[a]===o&&(l.splice(a,1),a+=1),{modifiedValue:s=l.join(""),cursorPosition:a}}return{modifiedValue:s,cursorPosition:t}}({selectionStart:t,value:e,lastKeyStroke:pe,stateValue:ee,groupSeparator:Q}),r=n.modifiedValue,i=n.cursorPosition,o=v(d({value:r},X));if(!(w&&o.replace(/-/g,"").length>w)){if(""===o||"-"===o||o===K)return M&&M(void 0,u,{float:null,formatted:"",value:""}),te(o),void se(1);var a=K?o.replace(K,"."):o,s=parseFloat(a),l=b(d({value:o},$));if(null!=i){var c=i+(l.length-e.length);c=c<=0?L?L.length:0:c,se(c),ce(ue+1)}te(l),M&&M(o,u,{float:s,formatted:l,value:o})}};(0,r.useEffect)((function(){re&&"-"!==ee&&ge.current&&document.activeElement===ge.current&&ge.current.setSelectionRange(ae,ae)}),[ee,ae,ge,re,ue]);var ve=d({type:"text",inputMode:"decimal",id:l,name:u,className:c,onChange:function(e){var t=e.target,n=t.value,r=t.selectionStart;me(n,r),V&&V(e)},onBlur:function(e){var t=e.target.value,n=v(d({value:t},X));if("-"===n||n===K||!n)return te(""),void(B&&B(e));var r=function(e,t,n){if(n&&e.length>1){if(e.includes(t)){var r=e.split(t),i=r[0];if((o=r[1]).length>n)return""+i+t+o.slice(0,n)}var o,a=e.length>n?new RegExp("(\\d+)(\\d{"+n+"})"):new RegExp("(\\d)(\\d+)"),s=e.match(a);if(s)return""+(i=s[1])+t+s[2]}return e}(n,K,S),i=function(e,t,n){if(void 0===t&&(t="."),void 0===n||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var r=e.split(t),i=r[0],o=r[1];if(0===n)return i;var a=o||"";if(a.length<n)for(;a.length<n;)a+="0";else a=a.slice(0,n);return""+i+t+a}(r,K,void 0!==T?T:S),o=parseFloat(i.replace(K,".")),a=b(d(d({},$),{value:i}));M&&M(i,u,{float:o,formatted:a,value:i}),te(a),B&&B(e)},onFocus:function(e){return H&&H(e),ee?ee.length:0},onKeyDown:function(e){var t=e.key;if(fe(t),O&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),se(ee.length);var n=parseFloat(null!=C?String(C).replace(K,"."):v(d({value:ee},X)))||0,r="ArrowUp"===t?n+O:n-O;if(void 0!==D&&r<D)return;if(void 0!==P&&r>P)return;var i=String(O).includes(".")?Number(String(O).split(".")[1].length):void 0;me(String(i?r.toFixed(i):r).replace(".",K))}Y&&Y(e)},onKeyUp:function(e){var t=e.key,n=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==ee){var r=h(ee,{groupSeparator:Q,decimalSeparator:K});if(r&&n&&n>ee.length-r.length&&ge.current){var i=ee.length-r.length;ge.current.setSelectionRange(i,i)}}W&&W(e)},placeholder:A,disabled:y,value:null==C||"-"===ee||K&&ee===K?ee:b(d(d({},$),{decimalScale:re?void 0:T,value:String(C)})),ref:ge},U);if(p){var he=p;return i().createElement(he,d({},ve))}return i().createElement("input",d({},ve))})).displayName="CurrencyInput",window.wp.compose,n(86087),window.wp.keycodes,n(32485),"function"==typeof SuppressedError&&SuppressedError,C(".mce-floatpanel,.mce-inline-toolbar-grp,.mce-notification{z-index:9999999999!important}.components-popover__content .givewp-classic-editor{margin:0!important}.givewp-classic-editor{width:100%}.givewp-classic-editor>label{box-sizing:border-box;display:block;font-size:11px;font-weight:500;line-height:1.4;margin-bottom:.7rem;margin-top:1.5rem;max-width:100%;overflow:hidden;padding-bottom:0;padding-top:0;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;z-index:1}.givewp-classic-editor .wp-editor-tools{z-index:auto}.givewp-classic-editor .wp-editor-tabs{display:none}.givewp-classic-editor .wp-editor-container{border-radius:.125rem;overflow:hidden}.givewp-classic-editor .mce-top-part:before{display:none}.givewp-classic-editor .mce-tinymce,.givewp-classic-editor .wp-editor-container{box-shadow:none}.givewp-classic-editor textarea{width:100%}.givewp-classic-editor .wp-switch-editor{box-sizing:content-box!important}.givewp-classic-editor.show-editor-tabs .wp-editor-tabs{display:block!important}.givewp-classic-editor.show-editor-tabs .quicktags-toolbar input.button.button-small{background:#f6f7f7;border-color:var(--wp-admin-theme-color)!important;color:var(--wp-admin-theme-color);font-size:12px!important;inline-size:auto;line-height:2;min-height:26px;padding:0 8px;vertical-align:top}.givewp-classic-editor.show-editor-tabs .wp-editor-wrap.html-active textarea{border:0}"),window.wp,function(e){e.USD="USD",e.CAD="CAD",e.EUR="EUR",e.AED="AED",e.AFN="AFN",e.ALL="ALL",e.AMD="AMD",e.ARS="ARS",e.AUD="AUD",e.AZN="AZN",e.BAM="BAM",e.BDT="BDT",e.BGN="BGN",e.BHD="BHD",e.BIF="BIF",e.BND="BND",e.BOB="BOB",e.BRL="BRL",e.BWP="BWP",e.BYN="BYN",e.BZD="BZD",e.CDF="CDF",e.CHF="CHF",e.CLP="CLP",e.CNY="CNY",e.COP="COP",e.CRC="CRC",e.CVE="CVE",e.CZK="CZK",e.DJF="DJF",e.DKK="DKK",e.DOP="DOP",e.DZD="DZD",e.EEK="EEK",e.EGP="EGP",e.ERN="ERN",e.ETB="ETB",e.GBP="GBP",e.GEL="GEL",e.GHS="GHS",e.GNF="GNF",e.GTQ="GTQ",e.HKD="HKD",e.HNL="HNL",e.HRK="HRK",e.HUF="HUF",e.IDR="IDR",e.ILS="ILS",e.INR="INR",e.IQD="IQD",e.IRR="IRR",e.ISK="ISK",e.JMD="JMD",e.JOD="JOD",e.JPY="JPY",e.KES="KES",e.KHR="KHR",e.KMF="KMF",e.KRW="KRW",e.KWD="KWD",e.KZT="KZT",e.LBP="LBP",e.LKR="LKR",e.LTL="LTL",e.LVL="LVL",e.LYD="LYD",e.MAD="MAD",e.MDL="MDL",e.MGA="MGA",e.MKD="MKD",e.MMK="MMK",e.MOP="MOP",e.MUR="MUR",e.MXN="MXN",e.MYR="MYR",e.MZN="MZN",e.NAD="NAD",e.NGN="NGN",e.NIO="NIO",e.NOK="NOK",e.NPR="NPR",e.NZD="NZD",e.OMR="OMR",e.PAB="PAB",e.PEN="PEN",e.PHP="PHP",e.PKR="PKR",e.PLN="PLN",e.PYG="PYG",e.QAR="QAR",e.RON="RON",e.RSD="RSD",e.RUB="RUB",e.RWF="RWF",e.SAR="SAR",e.SDG="SDG",e.SEK="SEK",e.SGD="SGD",e.SOS="SOS",e.SYP="SYP",e.THB="THB",e.TND="TND",e.TOP="TOP",e.TRY="TRY",e.TTD="TTD",e.TWD="TWD",e.TZS="TZS",e.UAH="UAH",e.UGX="UGX",e.UYU="UYU",e.UZS="UZS",e.VEF="VEF",e.VND="VND",e.XAF="XAF",e.XOF="XOF",e.YER="YER",e.ZAR="ZAR",e.ZMK="ZMK",e.ZWL="ZWL"}(f||(f={})),C(".givewp-options-header{align-items:center;display:flex;flex-direction:row;gap:.5rem;justify-content:space-between;width:100%}.givewp-options-header--label{margin-bottom:0}.givewp-options-header--button{color:var(--givewp-grey-500);height:fit-content!important;min-width:fit-content!important;padding:0!important}.givewp-options-header--button svg{height:1.25rem;width:1.25rem}.givewp-options-list--item{display:grid;gap:.5rem;grid-template-columns:auto auto 1fr auto;grid-template-rows:2rem;margin-top:.5rem}.givewp-options-list--item>*{align-self:center}.givewp-options-list--item--draggable{color:var(--givewp-grey-500);cursor:grab;display:flex;user-select:none}.givewp-options-list--item--checked{margin:0!important;width:1rem!important}.givewp-options-list--item--inputs{display:flex;flex-direction:column;gap:.25rem}.givewp-options-list--item--inputs .components-base-control{margin-bottom:0!important}.givewp-options-list--item--inputs--open{grid-row:span 2}.givewp-options-list--item--inputs .givewp-options-list__textarea-wrapper{display:grid;gap:2px;width:calc(100% + 20px + .5rem)}.givewp-options-list--item--inputs .givewp-options-list__textarea-wrapper .givewp-options-list__textarea{border:1px solid #8c8c8c;border-radius:2px;height:64px}.givewp-options-list--item--inputs .givewp-options-list__textarea-counter{color:var(--givewp-grey-500);font-size:.625rem;line-height:1.4;text-align:right}.givewp-options-list--item--button{color:var(--givewp-grey-500);height:fit-content!important;min-width:fit-content!important;padding:0!important}"),C(".givewp-form-settings__section{border-bottom:1px solid var(--givewp-grey-50);display:flex;gap:3.5rem;margin-bottom:2.5rem;padding-bottom:2.5rem}@media (max-width:1279px){.givewp-form-settings__section{flex-direction:column;gap:2rem}}.givewp-form-settings__section__header{width:20rem}@media (max-width:1279px){.givewp-form-settings__section__header{padding-left:3.25rem;width:100%}}.givewp-form-settings__section__header h4{color:var(--givewp-grey-900);font-size:1rem;line-height:1.5rem;margin:0 0 var(--givewp-spacing-2)}.givewp-form-settings__section__header p{color:var(--givewp-grey-500);font-size:.75rem;line-height:1.125rem;margin:0}.givewp-form-settings__section__body{flex:1;max-width:33.25rem}.givewp-form-settings__section__body>:not(.no-extra-gap){padding-left:3.25rem}"),C(".givewp-block-notice{background:#fffaf2;border-left:2px solid var(--givewp-orange-400);border-radius:2px;padding:var(--givewp-spacing-3) var(--givewp-spacing-4)}.givewp-block-notice span{display:block;font-size:12px}.givewp-block-notice__title{color:var(--givewp-grey-900);font-size:.75rem;font-stretch:normal;font-style:normal;font-weight:600;line-height:1.33}.givewp-block-notice__description{color:var(--givewp-grey-700);margin:var(--givewp-spacing-2) 0 var(--givewp-spacing-4) 0}.givewp-block-notice__anchor{color:var(--givewp-grey-900);cursor:pointer}");var S=n(29809);const A={title:{fontWeight:600},notice:{position:"relative",display:"flex",flexDirection:"column",gap:8,padding:16,borderRadius:2,color:"#0e0e0e",background:"#f2f2f2",fontSize:12,lineHeight:1.33},close:{position:"absolute",cursor:"pointer",right:16,top:16},link:{color:"#0e0e0e"}},T=()=>(0,r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M11.805 5.138a.667.667 0 1 0-.943-.943L8 7.057 5.138 4.195a.667.667 0 1 0-.943.943L7.057 8l-2.862 2.862a.667.667 0 1 0 .943.943L8 8.943l2.862 2.862a.667.667 0 1 0 .943-.943L8.943 8l2.862-2.862z",fill:"#0E0E0E"}));var L=n(16639);const N={schema:JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":2,"name":"givewp/campaign-block","version":"1.0.0","title":"Campaign Block","category":"give","description":"Insert an existing campaign into the page.","supports":{"align":["wide","full","left","center","right"]},"attributes":{"campaignId":{"type":"number"},"showImage":{"type":"boolean","default":true},"showDescription":{"type":"boolean","default":true},"showGoal":{"type":"boolean","default":true}},"textdomain":"give","viewScript":"file:../../../../build/campaignBlockApp.js","viewStyle":"file:../../../../build/campaignBlockApp.css","render":"file:./render.php"}'),settings:{icon:(0,r.createElement)(L.A,{color:"grey"}),edit:function({attributes:e,setAttributes:t}){const n=(0,a.useBlockProps)(),i=(0,S.DP)(),[c,d]=(0,r.useState)(i.admin.showCampaignInteractionNotice),{campaign:p,hasResolved:f,edit:g,save:m}=(0,S.KG)(e.campaignId);return(0,r.createElement)("div",{...n},f&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.A,{campaignId:e.campaignId,handleSelect:e=>t({campaignId:e}),showInspectorControl:!0,inspectorControls:(0,r.createElement)((()=>e.campaignId?p.pageId?c?(0,r.createElement)("p",{style:A.notice},(0,r.createElement)("span",{style:A.close,onClick:()=>{(0,S.Vd)("givewp_campaign_interaction_notice").then((()=>d(!1)))}},(0,r.createElement)(T,null)),(0,r.createElement)("span",{style:A.title},(0,o.__)("Campaign interaction","give ")),(0,r.createElement)("span",null,(0,o.__)("Users will be redirected to campaign page.","give"))):null:(0,r.createElement)(M,{title:(0,o.__)("There is no Campaign page for this campaign.","give "),description:(0,o.__)("For this campaign block to work properly, create a campaign page.","give")},(0,r.createElement)("a",{href:"#",onClick:async e=>{e.preventDefault();const t=await(0,S.iK)(p.id);t&&(g({...p,pageId:t?.id}),await m())},style:A.link},(0,o.__)("Create campaign page.","give"))):null),null)},(0,r.createElement)(u.A,{campaign:p,showImage:e.showImage,showDescription:e.showDescription,showGoal:e.showGoal})),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:(0,o.__)("Display Elements","give"),initialOpen:!0},(0,r.createElement)(s.ToggleControl,{label:(0,o.__)("Show campaign image","give"),checked:e.showImage,onChange:e=>t({showImage:e})}),(0,r.createElement)(s.ToggleControl,{label:(0,o.__)("Show description","give"),checked:e.showDescription,onChange:e=>t({showDescription:e})}),(0,r.createElement)(s.ToggleControl,{label:(0,o.__)("Show goal","give"),checked:e.showGoal,onChange:e=>t({showGoal:e})})))))}}}},54227:(e,t,n)=>{"use strict";n.d(t,{A:()=>vi});var r=n(51609),i=n.n(r);const o=JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":2,"name":"givewp/campaign-form","version":"1.0.0","title":"Campaign Form","category":"give","description":"The GiveWP Campaign Form block inserts an existing campaign form into the page.","supports":{"align":["wide","full"]},"attributes":{"campaignId":{"type":"number"},"blockId":{"type":"string"},"prevId":{"type":"number"},"id":{"type":"number"},"displayStyle":{"type":"string"},"continueButtonTitle":{"type":"string"},"showTitle":{"type":"boolean"},"contentDisplay":{"type":"string"},"showGoal":{"type":"boolean"},"showContent":{"type":"boolean"},"useDefaultForm":{"type":"boolean","default":true}},"example":{},"textdomain":"give","render":"file:./render.php","viewScript":"file:../../../../build/campaignFormBlockApp.js","editorScript":"file:../../../../build/assets/dist/js/parent-page.js","viewStyle":"file:../../../../build/campaignFormBlockApp.css","editorStyle":"file:../../../../build/assets/dist/css/embed-form.css","style":"file:../../../../build/campaignFormBlock.css"}');var a=n(94715),s=n(27723),l=n(56427),u=n(59292);const c=window.wp.data;var d=n(86087);function p({attributes:e,setAttributes:t,entityOptions:n,isResolving:i,isLegacyTemplate:o,isLegacyForm:p}){const{id:f,displayStyle:g,continueButtonTitle:m=(0,s.__)("Donate now","give"),showTitle:v,contentDisplay:h,showGoal:b,showContent:y,useDefaultForm:w}=e,E=["newTab","modal","reveal","button"].includes(g),{campaigns:I,hasResolved:C}=(0,u.A)({status:["active","draft"]}),M=I?.find((t=>t.id===e?.campaignId))?.defaultFormId;(0,d.useEffect)((()=>{M&&t({id:M,useDefaultForm:!0})}),[e?.campaignId]);const S=(0,c.useSelect)((e=>e("core").getSite()?.url+"/wp-admin/edit.php?post_type=give_forms&page=give-campaigns"),[]);return(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(l.PanelBody,{title:(0,s.__)("Form Settings","give"),initialOpen:!0},(0,r.createElement)(l.PanelRow,null,(0,r.createElement)(l.ToggleControl,{className:"givewp-default-form-toggle",label:(0,s.__)("Use default form","give"),checked:e.useDefaultForm,onChange:e=>{t({useDefaultForm:e}),e&&t({id:M})},help:(0,r.createElement)(r.Fragment,null,(0,s.__)("Uses the campaign’s default form.","give")," ",(0,r.createElement)("a",{href:`${S}&id=${e.campaignId}&tab=forms`,target:"_blank",rel:"noopener noreferrer","aria-label":(0,s.__)("Change campaign default form","give")},(0,s.__)("Change default form","give")))})),!w&&(0,r.createElement)(l.PanelRow,null,(0,r.createElement)(l.SelectControl,{label:(0,s.__)("Choose a donation form","give"),value:null!=f?f:"",options:[...n.map((e=>({label:e.label,value:String(e.value)})))],onChange:e=>{t({id:Number(e)})}})),(0,r.createElement)(l.PanelRow,null,(0,r.createElement)(l.SelectControl,{label:(0,s.__)("Display style","give"),value:g,options:(A=[{label:(0,s.__)("On page","give"),value:"onpage"},{label:(0,s.__)("Modal","give"),value:"modal"}],T=[{label:(0,s.__)("Reveal","give"),value:"reveal"},{value:"button",label:(0,s.__)("One Button Launch","give")}],L=[{label:(0,s.__)("New Tab","give"),value:"newTab"}],o?A.concat(T):p?A:A.concat(L)),onChange:e=>{t({displayStyle:e})}})),E&&(0,r.createElement)(l.PanelRow,null,(0,r.createElement)(l.TextControl,{label:(0,s.__)("Button text","give"),value:m,onChange:e=>{t({continueButtonTitle:e})}})),o&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.PanelRow,null,(0,r.createElement)(l.ToggleControl,{label:(0,s.__)("Title","give"),name:"showTitle",checked:!!v,onChange:e=>{t({showTitle:e})}})),(0,r.createElement)(l.PanelRow,null,(0,r.createElement)(l.ToggleControl,{label:(0,s.__)("Goal","give"),name:"showGoal",checked:!!b,onChange:e=>{t({showGoal:e})}})),(0,r.createElement)(l.PanelRow,null,(0,r.createElement)(l.ToggleControl,{label:(0,s.__)("Content","give"),name:"contentDisplay",checked:!!h,onChange:e=>{t({contentDisplay:e})}})),h&&(0,r.createElement)(l.PanelRow,null,(0,r.createElement)(l.SelectControl,{label:(0,s.__)("Content Position","give"),name:"showContent",value:y,options:[{value:"above",label:(0,s.__)("Above","give")},{value:"below",label:(0,s.__)("Below","give")}],onChange:e=>{t({showContent:e})}}))),f&&(0,r.createElement)(l.PanelRow,null,(0,r.createElement)(l.ExternalLink,{href:p?`/wp-admin/post.php?post=${f}&action=edit`:`/wp-admin/edit.php?post_type=give_forms&page=givewp-form-builder&donationFormID=${f}`},(0,s.__)("Edit donation form","give")))));var A,T,L}var f=n(5556),g=n.n(f);function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function v(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var h,b,y=(h=function(e){!function(t){if("undefined"!=typeof window){var n,r=0,i=!1,o=!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:i}function b(e,t){E("log",e,t,h(e))}function y(e,t){E("info",e,t,h(e))}function w(e,t){E("warn",e,t,!0)}function E(e,t,n,r){!0===r&&"object"==typeof window.console&&console[e](function(e){return a+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}(t),n)}function I(e){function t(){n("Height"),n("Width"),O((function(){x(R),T(_),p("onResized",R)}),R,"init")}function n(e){var t=Number(c[_]["max"+e]),n=Number(c[_]["min"+e]),r=e.toLowerCase(),i=Number(R[r]);b(_,"Checking "+r+" is in range "+n+"-"+t),i<n&&(i=n,b(_,"Set "+r+" to min value")),i>t&&(i=t,b(_,"Set "+r+" to max value")),R[r]=""+i}function r(e){return j.substr(j.indexOf(":")+7+e)}function i(e,t){var n,r;n=function(){var n,r;D("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=R.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-n.top,10),offsetLeft:parseInt(r.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},f[r=t]||(f[r]=setTimeout((function(){f[r]=null,n()}),32))}function o(e){var t=e.getBoundingClientRect();return A(_),{x:Math.floor(Number(t.left)+Number(s.x)),y:Math.floor(Number(t.top)+Number(s.y))}}function l(e){var t=e?o(R.iframe):{x:0,y:0},n={x:Number(R.width)+t.x,y:Number(R.height)+t.y};b(_,"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(_,"Unable to scroll to requested position, window.parentIFrame not found"):(s=n,u(),b(_,"--"))}function u(){!1!==p("onScroll",s)?T(_):L()}function d(e){p(e,{iframe:R.iframe,screenX:R.width,screenY:R.height,type:R.type})}function p(e,t){return C(_,e,t)}var g,h,E,I,M,k,j=e.data,R={},_=null;"[iFrameResizerChild]Ready"===j?function(){for(var e in c)D("iFrame requested init",P(e),c[e].iframe,e)}():a===(""+j).substr(0,13)&&j.substr(13).split(":")[0]in c?(I=(E=j.substr(13).split(":"))[1]?parseInt(E[1],10):0,M=c[E[0]]&&c[E[0]].iframe,k=getComputedStyle(M),R={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.id,c[_]&&(c[_].loaded=!0),(h=R.type in{true:1,false:1,undefined:1})&&b(_,"Ignoring init message from meta parent page"),!h&&function(e){var t=!0;return c[e]||(t=!1,w(R.type+" No settings for "+e+". Message was: "+j)),t}(_)&&(b(_,"Received: "+j),g=!0,null===R.iframe&&(w(_,"IFrame ("+R.id+") not found"),g=!1),g&&function(){var t,n=e.origin,r=c[_]&&c[_].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var e=0,t=!1;for(b(_,"Checking connection is from allowed list of origins: "+r);e<r.length;e++)if(r[e]===n){t=!0;break}return t}():(t=c[_]&&c[_].remoteHost,b(_,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+R.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[_]&&c[_].firstRun&&c[_]&&(c[_].firstRun=!1),R.type){case"close":S(R.iframe);break;case"message":h=r(6),b(_,"onMessage passed: {iframe: "+R.iframe.id+", message: "+h+"}"),p("onMessage",{iframe:R.iframe,message:JSON.parse(h)}),b(_,"--");break;case"mouseenter":d("onMouseEnter");break;case"mouseleave":d("onMouseLeave");break;case"autoResize":c[_].autoResize=JSON.parse(r(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":i(c[_]&&c[_].iframe,_),function(){function e(e,r){function o(){c[n]?i(c[n].iframe,n):t()}["scroll","resize"].forEach((function(t){b(n,e+t+" listener for sendPageInfo"),r(window,t,o)}))}function t(){e("Remove ",v)}var n=_;e("Add ",m),c[n]&&(c[n].stopPageInfo=t)}();break;case"pageInfoStop":c[_]&&c[_].stopPageInfo&&(c[_].stopPageInfo(),delete c[_].stopPageInfo);break;case"inPageLink":e=r(9),a=e.split("#")[1]||"",f=decodeURIComponent(a),(g=document.getElementById(f)||document.getElementsByName(f)[0])?(n=o(g),b(_,"Moving to in page link (#"+a+") at x: "+n.x+" y: "+n.y),s={x:n.x,y:n.y},u(),b(_,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(a):b(_,"In page link #"+a+" not found and window.parentIFrame not found"):b(_,"In page link #"+a+" not found");break;case"reset":N(R);break;case"init":t(),p("onInit",R.iframe);break;default:t()}var e,n,a,f,g,h}())):y(_,"Ignored: "+j)}function C(e,t,n){var r=null,i=null;if(c[e]){if("function"!=typeof(r=c[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");i=r(n)}return i}function M(e){var t=e.id;delete c[t]}function S(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 A(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 T(e){null!==s&&(window.scrollTo(s.x,s.y),b(e,"Set page position: "+s.x+","+s.y),L())}function L(){s=null}function N(e){b(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),A(e.id),O((function(){x(e),D("reset","reset",e.iframe,e.id)}),e,"reset")}function x(e){function t(t){o||"0"!==e[t]||(o=!0,b(r,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(c).forEach((function(e){!function(e){function t(t){return"0px"===(c[e]&&c[e].iframe.style[t])}c[e]&&null!==c[e].iframe.offsetParent&&(t("height")||t("width"))&&D("Visibility change","resize",c[e].iframe,e)}(e)}))}function t(t){b("window","Mutation observed: "+t[0].target+" "+t[0].type),j(e,16)}var n,r=g();r&&(n=document.querySelector("body"),new r(t).observe(n,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",b(e.id,"IFrame ("+r+") "+t+" set to "+e[t]+"px")):b("undefined","messageData id not set")}(n),t(n)}var r=e.iframe.id;c[r]&&(c[r].sizeHeight&&n("height"),c[r].sizeWidth&&n("width"))}function O(e,t,n){n!==t.type&&l&&!window.jasmine?(b(t.id,"Requesting animation frame"),l(e)):e()}function D(e,t,n,r,i){var o,s=!1;r=r||n.id,c[r]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(o=c[r]&&c[r].targetOrigin,b(r,"["+e+"] Sending msg to iframe["+r+"] ("+t+") targetOrigin: "+o),n.contentWindow.postMessage(a+t,o)):w(r,"["+e+"] IFrame("+r+") not found"),i&&c[r]&&c[r].warningTimeout&&(c[r].msgTimeout=setTimeout((function(){!c[r]||c[r].loaded||s||(s=!0,w(r,"IFrame has not responded within "+c[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),c[r].warningTimeout)))}function P(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 o(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 o;return""===t&&(e.id=(o=n&&n.id||p.id+r++,null!==document.getElementById(o)&&(o+=r++),t=o),i=(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(o,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 r=g();r&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&S(e)}))}))})).observe(e.parentNode,{childList:!0})}(r),m(e,"load",(function(){var r,i;D("iFrame.onload",n,e,t,!0),r=c[a]&&c[a].firstRun,i=c[a]&&c[a].heightCalculationMethod in u,!r&&i&&N({iframe:e,height:0,width:0,type:"init"})})),D("init",n,e,t,!0)}(P(a)),c[a]&&(c[a].iframe.iFrameResizer={close:S.bind(null,c[a].iframe),removeListeners:M.bind(null,c[a].iframe),resize:D.bind(null,"Window resize","resize",c[a].iframe),moveToAnchor:function(e){D("Move to anchor","moveToAnchor:"+e,c[a].iframe,a)},sendMessage:function(e){D("Send Message","message:"+(e=JSON.stringify(e)),c[a].iframe,a)}}))}function j(e,t){null===d&&(d=setTimeout((function(){d=null,e()}),t))}function R(){"hidden"!==document.visibilityState&&(b("document","Trigger event: Visiblity change"),j((function(){_("Tab Visable","resize")}),16))}function _(e,t){Object.keys(c).forEach((function(n){(function(e){return c[e]&&"parent"===c[e].resizeFrom&&c[e].autoResize&&!c[e].firstRun})(n)&&D(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"),j((function(){_("Window resize","resize")}),16)})),m(document,"visibilitychange",R),m(document,"-webkit-visibilitychange",R),function(r,i){switch(n=[],function(e){e&&e.enablePublicMethods&&w("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(r),typeof i){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),e.bind(t,r));break;case"object":e(r,i);break;default:throw new TypeError("Unexpected data type ("+typeof i+")")}return n}}}()},h(b={exports:{}}),b.exports),w=function(){},E=function(e){var t=e.title,n=e.forwardRef,o=v(e,["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,v(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"])}(o),s=(0,r.useRef)(null),l=function(){return w(!s.current,"[iframeSizerReact]["+(s&&s.current&&s.current.id)+"] Close event ignored, to remove the iframe update your React component"),!s.current};return(0,r.useEffect)((function(){var e=s.current;return y(m({},o,{onClose:l}),e),function(){return e.iFrameResizer&&e.iFrameResizer.removeListeners()}}),[]),(0,r.useImperativeHandle)(n,(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)}}})),i().createElement("iframe",m({title:t},a,{ref:s}))};E.defaultProps={title:"iframe"},E.propTypes={title:g().string};const I=E,C=window.wp.serverSideRender;var M=n.n(C);function S(e){const t=(0,r.useRef)(null);return(0,r.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}function A(...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 T(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const L="undefined"!=typeof document?r.useLayoutEffect:()=>{};function N(e){const t=(0,r.useRef)(null);return L((()=>{t.current=e}),[e]),(0,r.useCallback)(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}const x={prefix:String(Math.round(1e10*Math.random())),current:0},O=r.createContext(x),D=r.createContext(!1);let P=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),k=new WeakMap;const j="function"==typeof r.useId?function(e){let t=r.useId(),[n]=(0,r.useState)(z());return e||`${n?"react-aria":`react-aria${x.prefix}`}-${t}`}:function(e){let t=(0,r.useContext)(O);t!==x||P||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 n=function(e=!1){let t=(0,r.useContext)(O),n=(0,r.useRef)(null);if(null===n.current&&!e){var i,o;let e=null===(o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===o||null===(i=o.ReactCurrentOwner)||void 0===i?void 0:i.current;if(e){let n=k.get(e);null==n?k.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,k.delete(e))}n.current=++t.current}return n.current}(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`};function R(){return!1}function _(){return!0}function F(e){return()=>{}}function z(){return"function"==typeof r.useSyncExternalStore?r.useSyncExternalStore(F,R,_):(0,r.useContext)(D)}let V,H=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),B=new Map;function Y(e){let[t,n]=(0,r.useState)(e),i=(0,r.useRef)(null),o=j(t),a=(0,r.useRef)(null);if(V&&V.register(a,o),H){const e=B.get(o);e&&!e.includes(i)?e.push(i):B.set(o,[i])}return L((()=>{let e=o;return()=>{V&&V.unregister(a),B.delete(e)}}),[o]),(0,r.useEffect)((()=>{let e=i.current;return e&&n(e),()=>{e&&(i.current=null)}})),o}function W(e,t){if(e===t)return e;let n=B.get(e);if(n)return n.forEach((e=>e.current=t)),t;let r=B.get(t);return r?(r.forEach((t=>t.current=e)),e):t}function G(e=[]){let t=Y(),[n,i]=function(e){let[t,n]=(0,r.useState)(e),i=(0,r.useRef)(null),o=N((()=>{if(!i.current)return;let e=i.current.next();e.done?i.current=null:t===e.value?o():n(e.value)}));L((()=>{i.current&&o()}));let a=N((e=>{i.current=e(t),o()}));return[t,a]}(t),o=(0,r.useCallback)((()=>{i((function*(){yield t,yield document.getElementById(t)?t:void 0}))}),[t,i]);return L(o,[t,o,...e]),n}function U(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=U(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}"undefined"!=typeof FinalizationRegistry&&(V=new FinalizationRegistry((e=>{B.delete(e)})));const Z=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=U(e))&&(r&&(r+=" "),r+=t);return r};function K(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=T(n,i):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof i?"id"===e&&n&&i?t.id=W(n,i):t[e]=void 0!==i?i:n:t[e]=Z(n,i)}}return t}const Q=Symbol("default");function $({values:e,children:t}){for(let[n,i]of e)t=r.createElement(n.Provider,{value:i},t);return t}function X(e){let{className:t,style:n,children:i,defaultClassName:o,defaultChildren:a,defaultStyle:s,values:l}=e;return(0,r.useMemo)((()=>{let e,r,u;return e="function"==typeof t?t({...l,defaultClassName:o}):t,r="function"==typeof n?n({...l,defaultStyle:s||{}}):n,u="function"==typeof i?i({...l,defaultChildren:a}):null==i?a:i,{className:null!=e?e:o,style:r||s?{...s,...r}:void 0,children:null!=u?u:a,"data-rac":""}}),[t,n,i,o,a,s,l])}function J(e,t,n){let i=function(e,t){let n=(0,r.useContext)(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=t||Q;if(!n.slots[e]){let e=(new Intl.ListFormat).format(Object.keys(n.slots).map((e=>`"${e}"`)));throw new Error(`${t?`Invalid slot "${t}".`:"A slot prop is required."} Valid slot names are ${e}.`)}return n.slots[e]}return n}(n,e.slot)||{},{ref:o,...a}=i,s=S((0,r.useMemo)((()=>A(t,o)),[t,o])),l=K(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&("function"==typeof a.style||"function"==typeof e.style?l.style=t=>{let n="function"==typeof a.style?a.style(t):a.style,r={...t.defaultStyle,...n},i="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:l.style={...a.style,...e.style}),[l,s]}const q=(0,r.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 r,i;if(!this.node)return;let o=document.createElement("div");"object"==typeof e?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",e["aria-labelledby"])):o.textContent=e,"assertive"===t?null===(r=this.assertiveLog)||void 0===r||r.appendChild(o):null===(i=this.politeLog)||void 0===i||i.appendChild(o),""!==e&&setTimeout((()=>{o.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"]),re=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ie=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),oe=/^(data-.*)$/;function ae(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(ne.has(t)||n&&re.has(t)||r&&ie.has(t)||(null==i?void 0:i.has(t))||oe.test(t))&&(o[t]=e[t]);return o}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 r=we.get(n.target);if(r&&(r.delete(n.propertyName),0===r.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 r=we.get(n.target);r||(r=new Set,we.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.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",Se="",Ae=new WeakMap;function Te(e){if(fe()){if("default"===Me){const t=be(e);Se=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";Ae.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=Se||""),Se="",Me="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ae.has(e)){let t=Ae.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Ae.delete(e)}}const Ne=r.createContext({register:()=>{}});Ne.displayName="PressResponderContext";const xe=["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"])'],Oe=xe.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";xe.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const De=xe.join(':not([hidden]):not([tabindex="-1"]),');function Pe(e){return e.matches(Oe)}function ke(e){return e.matches(De)}function je(e){if(function(){if(null==Re){Re=!1;try{document.createElement("div").focus({get preventScroll(){return Re=!0,!0}})}catch{}}return Re}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let Re=null;class _e{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(e){let t=(0,r.useRef)({isFocused:!1,observer:null});L((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=N((t=>{null==e||e(t)}));return(0,r.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,i=e=>{t.current.isFocused=!1,r.disabled&&n(new _e("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let ze=!1;function Ve(e){for(;e&&!Pe(e);)e=e.parentElement;let t=ye(e),n=t.document.activeElement;if(!n||n===e)return;ze=!0;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},o=t=>{(t.target===n||r)&&(t.stopImmediatePropagation(),e||r||(r=!0,je(n),l()))},a=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,je(n),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",a,!0),ze=!1,r=!1},u=requestAnimationFrame(l);return l}function He(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Be(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,He(e,t,"set"),n),n}function Ye(e,t){L((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function We(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)(((t,n,r,i)=>{let o=(null==i?void 0:i.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:o,options:i}),t.addEventListener(n,o,i)}),[]),n=(0,r.useCallback)(((t,n,r,i)=>{var o;let a=(null===(o=e.current.get(r))||void 0===o?void 0:o.fn)||r;t.removeEventListener(n,a,i),e.current.delete(r)}),[]),i=(0,r.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,r.useEffect)((()=>i),[i]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}function Ge(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 r,i;let{metaKey:o,ctrlKey:a,altKey:s,shiftKey:l}=t;he()&&(null===(i=window.event)||void 0===i||null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(ce()?o=!0:a=!0);let u=ge()&&ce()&&!pe()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Ke.isOpening=n,je(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;var $e=n(75795),Xe=new WeakMap;class Je{continuePropagation(){Be(this,Xe,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(this,He(this,Xe,"get"))}constructor(e,t,n,r){var i,o,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")}(o=this,a=Xe),a.set(o,s),Be(this,Xe,!0);let l=null!==(i=null==r?void 0:r.target)&&void 0!==i?i: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:r}=e,i=t,o=i.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==r||i instanceof ye(i).HTMLInputElement&&!lt(i,n)||i instanceof ye(i).HTMLTextAreaElement||i.isContentEditable||("link"===o||!o&&et(i))&&"Enter"!==n)}function nt(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function rt(e,t){let n=0,r=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function it(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function ot(e,t){let n=t.getBoundingClientRect(),r=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 o=r,!((i=n).left>o.right||o.left>i.right||i.top>o.bottom||o.top>i.bottom);var i,o}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 r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){pt=!0,r.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:r})}const It=(e,t)=>{const n=ye(e),r=be(e);t&&r.removeEventListener("DOMContentLoaded",t),dt.has(n)&&(n.HTMLElement.prototype.focus=dt.get(n).focus,r.removeEventListener("keydown",vt,!0),r.removeEventListener("keyup",vt,!0),r.removeEventListener("click",bt,!0),n.removeEventListener("focus",yt,!0),n.removeEventListener("blur",wt,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",ht,!0),r.removeEventListener("pointermove",ht,!0),r.removeEventListener("pointerup",ht,!0)):(r.removeEventListener("mousedown",ht,!0),r.removeEventListener("mousemove",ht,!0),r.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 St=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function At(e){const t=be(e),n=Ue(t);if("virtual"===Mt()){let r=n;Ce((()=>{Ue(t)===r&&e.isConnected&&je(e)}))}else je(e)}function Tt(e){let{isDisabled:t,onFocus:n,onBlur:i,onFocusChange:o}=e;const a=(0,r.useCallback)((e=>{if(e.target===e.currentTarget)return i&&i(e),o&&o(!1),!0}),[i,o]),s=Fe(a),l=(0,r.useCallback)((e=>{const t=be(e.target),r=t?Ue(t):Ue();e.target===e.currentTarget&&r===Ze(e.nativeEvent)&&(n&&n(e),o&&o(!0),s(e))}),[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||i)?l:void 0,onBlur:t||!i&&!o?void 0:a}}}function Lt(e){if(!e)return;let t=!0;return n=>{let r={...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(r),t&&n.stopPropagation()}}let Nt=r.createContext(null);function xt(e,t){let{focusProps:n}=Tt(e),{keyboardProps:i}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Lt(e.onKeyDown),onKeyUp:Lt(e.onKeyUp)}}}(e),o=K(n,i),a=function(e){let t=(0,r.useContext)(Nt)||{};Ye(t,e);let{ref:n,...i}=t;return i}(t),s=e.isDisabled?{}:a,l=(0,r.useRef)(e.autoFocus);(0,r.useEffect)((()=>{l.current&&t.current&&At(t.current),l.current=!1}),[t]);let u=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(u=void 0),{focusableProps:K({...o,tabIndex:u},s)}}function Ot(e,t){let n,{elementType:i="button",isDisabled:o,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"}=e;n="button"===i?{type:h,disabled:o}:{role:"button",href:"a"!==i||o?void 0:g,target:"a"===i?m:void 0,type:"input"===i?h:void 0,disabled:"input"===i?o:void 0,"aria-disabled":o&&"input"!==i?o:void 0,rel:"a"===i?v:void 0};let{pressProps:b,isPressed:y}=function(e){let{onPress:t,onPressChange:n,onPressStart:i,onPressEnd:o,onPressUp:a,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:p,...f}=function(e){let t=(0,r.useContext)(Ne);if(t){let{register:n,...r}=t;e=K(r,e),n()}return Ye(t,e.ref),e}(e),[g,m]=(0,r.useState)(!1),v=(0,r.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:h,removeAllGlobalListeners:b}=We(),y=N(((e,t)=>{let r=v.current;if(s||r.didFirePressStart)return!1;let o=!0;if(r.isTriggeringEvent=!0,i){let n=new Je("pressstart",t,e);i(n),o=n.shouldStopPropagation}return n&&n(!0),r.isTriggeringEvent=!1,r.didFirePressStart=!0,m(!0),o})),w=N(((e,r,i=!0)=>{let a=v.current;if(!a.didFirePressStart)return!1;a.didFirePressStart=!1,a.isTriggeringEvent=!0;let l=!0;if(o){let t=new Je("pressend",r,e);o(t),l=t.shouldStopPropagation}if(n&&n(!1),m(!1),t&&i&&!s){let n=new Je("press",r,e);t(n),l&&(l=n.shouldStopPropagation)}return a.isTriggeringEvent=!1,l})),E=N(((e,t)=>{let n=v.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new Je("pressup",t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0})),I=N((e=>{let t=v.current;if(t.isPressed&&t.target){t.didFirePressStart&&null!=t.pointerType&&w(it(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=N((e=>{c&&I(e)})),M=(0,r.useMemo)((()=>{let e=v.current,t={onKeyDown(t){if(tt(t.nativeEvent,t.currentTarget)&&Ge(t.currentTarget,Ze(t.nativeEvent))){var r;at(Ze(t.nativeEvent),t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",i=y(t,"keyboard");let r=t.currentTarget,o=t=>{tt(t,r)&&!t.repeat&&Ge(r,Ze(t))&&e.target&&E(it(e.target,t),"keyboard")};h(be(t.currentTarget),"keyup",T(o,n),!0)}i&&t.stopPropagation(),t.metaKey&&ce()&&(null===(r=e.metaKeyEvents)||void 0===r||r.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||Ge(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 r=e.pointerType||t.nativeEvent.pointerType||"virtual";n=w(it(t.currentTarget,t),r,!0),e.isOverTarget=!1,I(t)}}else{let e=y(t,"virtual"),r=E(t,"virtual"),i=w(t,"virtual");n=e&&r&&i}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&tt(t,e.target)){var r;at(Ze(t),t.key)&&t.preventDefault();let n=Ze(t);w(it(e.target,t),"keyboard",Ge(e.target,Ze(t))),b(),"Enter"!==t.key&&et(e.target)&&Ge(e.target,n)&&!t[qe]&&(t[qe]=!0,Ke(e.target,t,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!Ge(t.currentTarget,Ze(t.nativeEvent)))return;if(i=t.nativeEvent,!ve()&&0===i.width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType)return void(e.pointerType="virtual");var i;e.pointerType=t.pointerType;let o=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||Te(e.target),o=y(t,e.pointerType);let i=Ze(t.nativeEvent);"releasePointerCapture"in i&&i.releasePointerCapture(t.pointerId),h(be(t.currentTarget),"pointerup",n,!1),h(be(t.currentTarget),"pointercancel",r,!1)}o&&t.stopPropagation()},t.onMouseDown=t=>{if(Ge(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=>{Ge(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(it(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,w(it(e.target,t),e.pointerType,!1),C(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(Ge(e.target,Ze(t))&&null!=e.pointerType){let n=!1,r=setTimeout((()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?I(t):(je(e.target),e.target.click()))}),80);h(t.currentTarget,"click",(()=>n=!0),!0),e.disposables.push((()=>clearTimeout(r)))}else I(t);e.isOverTarget=!1}},r=e=>{I(e)};t.onDragStart=e=>{Ge(e.currentTarget,Ze(e.nativeEvent))&&I(e)}}else{t.onMouseDown=t=>{if(0===t.button&&Ge(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(!Ge(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(!Ge(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=>{Ge(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(!Ge(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||Te(e.target),y(rt(e.target,t),e.pointerType)&&t.stopPropagation(),h(ye(t.currentTarget),"scroll",r,!0))},t.onTouchMove=t=>{if(!Ge(t.currentTarget,Ze(t.nativeEvent)))return;if(!e.isPressed)return void t.stopPropagation();let n=nt(t.nativeEvent,e.activePointerId),r=!0;n&&ot(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=y(rt(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=w(rt(e.target,t),e.pointerType,!1),C(rt(e.target,t))),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!Ge(t.currentTarget,Ze(t.nativeEvent)))return;if(!e.isPressed)return void t.stopPropagation();let n=nt(t.nativeEvent,e.activePointerId),r=!0;n&&ot(n,t.currentTarget)&&null!=e.pointerType?(E(rt(e.target,t),e.pointerType),r=w(rt(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=w(rt(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!d&&Le(e.target),b()},t.onTouchCancel=t=>{Ge(t.currentTarget,Ze(t.nativeEvent))&&(t.stopPropagation(),e.isPressed&&I(rt(e.target,t)))};let r=t=>{e.isPressed&&Ge(Ze(t),e.target)&&I({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{Ge(e.currentTarget,Ze(e.nativeEvent))&&I(e)}}return t}),[h,s,u,b,d,I,C,w,y,E]);return(0,r.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:o,preventFocusOnPress:d,ref:t}),{focusableProps:w}=xt(e,t);p&&(w.tabIndex=o?-1:w.tabIndex);let E=K(w,b,ae(e,{labelable:!0}));return{isPressed:y,buttonProps:K(n,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],onClick:e=>{f&&(f(e),console.warn("onClick is deprecated, please use onPress"))}})}}function Dt(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:o}=e,a=(0,r.useRef)({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:l}=We(),u=(0,r.useCallback)((e=>{e.currentTarget.contains(e.target)&&a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,l(),n&&n(e),o&&o(!1))}),[n,o,a,l]),c=Fe(u),d=(0,r.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)){i&&i(e),o&&o(!0),a.current.isFocusWithin=!0,c(e);let n=e.currentTarget;s(t,"focus",(e=>{if(a.current.isFocusWithin&&!Ge(n,e.target)){let r=new _e("blur",new t.defaultView.FocusEvent("blur",{relatedTarget:e.target}));r.target=n,r.currentTarget=n,u(r)}}),{capture:!0})}}),[i,o,c,s,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}function Pt(e={}){let{autoFocus:t=!1,isTextInput:n,within:i}=e,o=(0,r.useRef)({isFocused:!1,isFocusVisible:t||Ct()}),[a,s]=(0,r.useState)(!1),[l,u]=(0,r.useState)((()=>o.current.isFocused&&o.current.isFocusVisible)),c=(0,r.useCallback)((()=>u(o.current.isFocused&&o.current.isFocusVisible)),[]),d=(0,r.useCallback)((e=>{o.current.isFocused=e,s(e),c()}),[c]);!function(e,t,n){Et(),(0,r.useEffect)((()=>{let t=(t,r)=>{(function(e,t,n){let r=be(null==n?void 0:n.target);const i="undefined"!=typeof window?ye(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="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||r.activeElement instanceof i&&!St.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof a&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof s&&!gt[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(Ct())};return ct.add(t),()=>{ct.delete(t)}}),t)}((e=>{o.current.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:p}=Tt({isDisabled:i,onFocusChange:d}),{focusWithinProps:f}=Dt({isDisabled:!i,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:i?f:p}}let kt=!1,jt=0;function Rt(){kt=!0,setTimeout((()=>{kt=!1}),50)}function _t(e){"touch"===e.pointerType&&Rt()}function Ft(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",_t):document.addEventListener("touchend",Rt),jt++,()=>{jt--,jt>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",_t):document.removeEventListener("touchend",Rt))}}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,r.createContext)(!1),Vt=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Ht=(0,r.createContext)({}),Bt=function(e){let t=(t,n)=>(0,r.useContext)(zt)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,r.forwardRef)(t)}((function(e,t){[e,t]=J(e,t,Ht);let n=e=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}(e),{isPending:i}=n,{buttonProps:o,isPressed:a}=Ot(e,t),{focusProps:s,isFocused:l,isFocusVisible:u}=Pt(e),{hoverProps:c,isHovered:d}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:o}=e,[a,s]=(0,r.useState)(!1),l=(0,r.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,r.useEffect)(Ft,[]);let{addGlobalListener:u,removeAllGlobalListeners:c}=We(),{hoverProps:d,triggerHoverEnd:p}=(0,r.useMemo)((()=>{let e=(e,i)=>{if(l.pointerType=i,o||"touch"===i||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&&!Ge(l.target,e.target)&&r(e,e.pointerType)}),{capture:!0}),t&&t({type:"hoverstart",target:a,pointerType:i}),n&&n(!0),s(!0)},r=(e,t)=>{let r=l.target;l.pointerType="",l.target=null,"touch"!==t&&l.isHovered&&r&&(l.isHovered=!1,c(),i&&i({type:"hoverend",target:r,pointerType:t}),n&&n(!1),s(!1))},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{kt&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(a.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{l.ignoreEmulatedMouseEvents||kt||e(t,"mouse"),l.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:a,triggerHoverEnd:r}}),[t,n,i,o,l,u,c]);return(0,r.useEffect)((()=>{o&&p({currentTarget:l.target},l.pointerType)}),[o]),{hoverProps:d,isHovered:a}}({...e,isDisabled:e.isDisabled||i}),p={isHovered:d,isPressed:(n.isPressed||a)&&!i,isFocused:l,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:null!=i&&i},f=X({...e,values:p,defaultClassName:"react-aria-Button"}),g=Y(o.id),m=Y(),v=o["aria-labelledby"];i&&(v?v=`${v} ${m}`:o["aria-label"]&&(v=`${g} ${m}`));let h=(0,r.useRef)(i);return(0,r.useEffect)((()=>{let e={"aria-labelledby":v||g};(!h.current&&l&&i||h.current&&l&&!i)&&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=i}),[i,l,v,g]),r.createElement("button",{...ae(e,{propNames:Vt}),...K(o,s,c),...f,type:"submit"===o.type&&i?"button":o.type,id:g,ref:t,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":d||void 0,"data-focused":l||void 0,"data-pending":i||void 0,"data-focus-visible":u||void 0},r.createElement(q.Provider,{value:{id:m}},f.children))}));(0,r.createContext)(null),(0,r.createContext)(null),(0,r.createContext)(null),(0,r.createContext)(null),(0,r.createContext)(null);const Yt=(0,r.createContext)({}),Wt=(0,r.createContext)({});function Gt({children:e}){let t=(0,r.useMemo)((()=>({register:()=>{}})),[]);return r.createElement(Ne.Provider,{value:t},e)}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:r}=e.style,i="none"!==n&&"hidden"!==r&&"collapse"!==r;if(i){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:r}=t(e);i="none"!==n&&"hidden"!==r&&"collapse"!==r}return i}(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=r.createContext(null),Kt="react-aria-focus-scope-restore";let Qt=null;function $t(e){let{children:t,contain:n,restoreFocus:i,autoFocus:o}=e,a=(0,r.useRef)(null),s=(0,r.useRef)(null),l=(0,r.useRef)([]),{parentNode:u}=(0,r.useContext)(Zt)||{},c=(0,r.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=!!n)}),[n]),L((()=>{var e;let t=null===(e=a.current)||void 0===e?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==s.current;)n.push(t),t.addEventListener(Kt,r),t=t.nextSibling;return l.current=n,()=>{for(let e of n)e.removeEventListener(Kt,r)}}),[t]),function(e,t,n){L((()=>{if(t||n)return;let r=e.current;const i=be(r?r[0]:void 0);let o=t=>{let n=Ze(t);en(n,e.current)?Qt=e:qt(n)||(Qt=null)};return i.addEventListener("focusin",o,!1),null==r||r.forEach((e=>e.addEventListener("focusin",o,!1))),()=>{i.removeEventListener("focusin",o,!1),null==r||r.forEach((e=>e.removeEventListener("focusin",o,!1)))}}),[e,t,n])}(l,i,n),function(e,t){let n=(0,r.useRef)(void 0),i=(0,r.useRef)(void 0);L((()=>{let r=e.current;if(!t)return void(i.current&&(cancelAnimationFrame(i.current),i.current=void 0));const o=be(r?r[0]:void 0);let a=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!Jt(e)||t.isComposing)return;let n=Ue(o),r=e.current;if(!r||!en(n,r))return;let i=un(Xt(r),{tabbable:!0},r);if(!n)return;i.currentNode=n;let a=t.shiftKey?i.previousNode():i.nextNode();a||(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,a=t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),a&&rn(a,!0)},s=t=>{Qt&&!nn(Qt,e)||!en(Ze(t),e.current)?Jt(e)&&!tn(Ze(t),e)?n.current?n.current.focus():Qt&&Qt.current&&an(Qt.current):Jt(e)&&(n.current=Ze(t)):(Qt=e,n.current=Ze(t))},l=t=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{let r=Mt(),i=("virtual"===r||null===r)&&ve()&&me(),a=Ue(o);if(!i&&a&&Jt(e)&&!tn(a,e)){Qt=e;let r=Ze(t);var s;r&&r.isConnected?(n.current=r,null===(s=n.current)||void 0===s||s.focus()):Qt.current&&an(Qt.current)}}))};return o.addEventListener("keydown",a,!1),o.addEventListener("focusin",s,!1),null==r||r.forEach((e=>e.addEventListener("focusin",s,!1))),null==r||r.forEach((e=>e.addEventListener("focusout",l,!1))),()=>{o.removeEventListener("keydown",a,!1),o.removeEventListener("focusin",s,!1),null==r||r.forEach((e=>e.removeEventListener("focusin",s,!1))),null==r||r.forEach((e=>e.removeEventListener("focusout",l,!1)))}}),[e,t]),L((()=>()=>{i.current&&cancelAnimationFrame(i.current)}),[i])}(l,n),function(e,t,n){const i=(0,r.useRef)("undefined"!=typeof document?Ue(be(e.current?e.current[0]:void 0)):null);L((()=>{let r=e.current;const i=be(r?r[0]:void 0);if(!t||n)return;let o=()=>{Qt&&!nn(Qt,e)||!en(Ue(i),e.current)||(Qt=e)};return i.addEventListener("focusin",o,!1),null==r||r.forEach((e=>e.addEventListener("focusin",o,!1))),()=>{i.removeEventListener("focusin",o,!1),null==r||r.forEach((e=>e.removeEventListener("focusin",o,!1)))}}),[e,n]),L((()=>{const r=be(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!Jt(e)||t.isComposing)return;let n=r.activeElement;if(!tn(n,e)||!sn(e))return;let i=pn.getTreeNode(e);if(!i)return;let o=i.nodeToRestore,a=un(r.body,{tabbable:!0});a.currentNode=n;let s=t.shiftKey?a.previousNode():a.nextNode();if(o&&o.isConnected&&o!==r.body||(o=void 0,i.nodeToRestore=void 0),(!s||!tn(s,e))&&o){a.currentNode=o;do{s=t.shiftKey?a.previousNode():a.nextNode()}while(tn(s,e));t.preventDefault(),t.stopPropagation(),s?rn(s,!0):qt(o)?rn(o,!0):n.blur()}};return n||r.addEventListener("keydown",i,!0),()=>{n||r.removeEventListener("keydown",i,!0)}}),[e,t,n]),L((()=>{const n=be(e.current?e.current[0]:void 0);if(!t)return;let r=pn.getTreeNode(e);var o;return r?(r.nodeToRestore=null!==(o=i.current)&&void 0!==o?o:void 0,()=>{let r=pn.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,o=Ue(n);if(t&&i&&(o&&tn(o,e)||o===n.body&&sn(e))){let t=pn.clone();requestAnimationFrame((()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected)return void ln(n.nodeToRestore);n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&pn.getTreeNode(n.scopeRef))return void ln(on(n.scopeRef.current,!0));n=n.parent}}}))}}):void 0}),[e,t])}(l,i,n),function(e,t){const n=r.useRef(t);(0,r.useEffect)((()=>{if(n.current){Qt=e;const t=be(e.current?e.current[0]:void 0);!en(Ue(t),Qt.current)&&e.current&&an(e.current)}n.current=!1}),[e])}(l,o),(0,r.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 r=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)||r&&!pn.getTreeNode(r)||(Qt=r),pn.removeTreeNode(l)}),[l]);let d=(0,r.useMemo)((()=>function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t;var s;let l=r||Ue(be(null!==(s=n[0])&&void 0!==s?s:void 0)),u=n[0].previousElementSibling,c=un(Xt(n),{tabbable:i,accept:a},n);c.currentNode=en(l,n)?l:u;let d=c.nextNode();return!d&&o&&(c.currentNode=u,d=c.nextNode()),d&&rn(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t;var s;let l=r||Ue(be(null!==(s=n[0])&&void 0!==s?s:void 0)),u=n[n.length-1].nextElementSibling,c=un(Xt(n),{tabbable:i,accept:a},n);c.currentNode=en(l,n)?l:u;let d=c.previousNode();return!d&&o&&(c.currentNode=u,d=c.previousNode()),d&&rn(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=un(Xt(n),{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let a=o.nextNode();return a&&rn(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=un(Xt(n),{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let a=o.previousNode();return a&&rn(a,!0),a}}}(l)),[]),p=(0,r.useMemo)((()=>({focusManager:d,parentNode:c})),[c,d]);return r.createElement(Zt.Provider,{value:p},r.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,r.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 r=null===(n=pn.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function rn(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{At(e)}catch{}}function on(e,t=!0){let n=e[0].previousElementSibling,r=Xt(e),i=un(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=Xt(e),i=un(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function an(e,t=!0){rn(on(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}))&&rn(e)}function un(e,t,n){let r=(null==t?void 0:t.tabbable)?ke:Pe,i=(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,o=be(i),a=function(e,t,n,r){return e.createTreeWalker(t,n,r)}(o,e||o,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return(null==t||null===(i=t.from)||void 0===i?void 0:i.contains(e))?NodeFilter.FILTER_REJECT:!r(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 r=this.fastMap.get(null!=t?t:null);if(!r)return;let i=new dn({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.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 r=t.children;n&&(n.removeChild(t),r.size>0&&r.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 r of this.traverse())t.addTreeNode(r.scopeRef,null!==(n=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,r.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=r.createContext(null);function gn(e){let t=z(),{portalContainer:n=(t?null:document.body),isExiting:i}=e,[o,a]=(0,r.useState)(!1),s=(0,r.useMemo)((()=>({contain:o,setContain:a})),[o,a]),{getContainer:l}=null!==(u=(0,r.useContext)(Wt))&&void 0!==u?u:{};var u;if(!e.portalContainer&&l&&(n=l()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=r.createElement($t,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!i},c)),c=r.createElement(fn.Provider,{value:s},r.createElement(Gt,null,c)),$e.createPortal(c,n)}function mn(){let e=(0,r.useContext)(fn),t=null==e?void 0:e.setContain;L((()=>{null==t||t(!0)}),[t])}const vn=(0,r.createContext)(null),hn=(0,r.createContext)(null),bn=(0,r.forwardRef)((function(e,t){let n=e["aria-labelledby"];[e,t]=J(e,t,vn);let{dialogProps:i,titleProps:o}=function(e,t){let{role:n="dialog"}=e,i=G();i=e["aria-label"]?void 0:i;let o=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t.current&&!t.current.contains(document.activeElement)){At(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),At(t.current)),o.current=!1)}),500);return()=>{clearTimeout(e)}}}),[t]),mn(),{dialogProps:{...ae(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||i,onBlur:e=>{o.current&&e.stopPropagation()}},titleProps:{id:i}}}({...e,"aria-labelledby":n},t),a=(0,r.useContext)(hn);i["aria-label"]||i["aria-labelledby"]||(e["aria-labelledby"]?i["aria-labelledby"]=e["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:e.className,style:e.style,children:e.children,values:{close:(null==a?void 0:a.close)||(()=>{})}});return r.createElement("section",{...ae(e),...i,...s,ref:t,slot:e.slot||void 0},r.createElement($,{values:[[Yt,{slots:{[Q]:{},title:{...o,level:2}}}],[Ht,{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(e,t){let{onClose:n,shouldCloseOnBlur:i,isOpen:o,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:l}=e;(0,r.useEffect)((()=>{if(o&&!In.includes(t))return In.push(t),()=>{let e=In.indexOf(t);e>=0&&In.splice(e,1)}}),[o,t]);let u=()=>{In[In.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:i,onInteractOutsideStart:o}=e,a=(0,r.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=N((e=>{n&&En(e,t)&&(o&&o(e),a.current.isPointerDown=!0)})),l=N((e=>{n&&n(e)}));(0,r.useEffect)((()=>{let e=a.current;if(i)return;const n=t.current,r=be(n);if("undefined"!=typeof PointerEvent){let n=n=>{e.isPointerDown&&En(n,t)&&l(n),e.isPointerDown=!1};return r.addEventListener("pointerdown",s,!0),r.addEventListener("pointerup",n,!0),()=>{r.removeEventListener("pointerdown",s,!0),r.removeEventListener("pointerup",n,!0)}}{let n=n=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&En(n,t)&&l(n),e.isPointerDown=!1},i=n=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&En(n,t)&&l(n),e.isPointerDown=!1};return r.addEventListener("mousedown",s,!0),r.addEventListener("mouseup",n,!0),r.addEventListener("touchstart",s,!0),r.addEventListener("touchend",i,!0),()=>{r.removeEventListener("mousedown",s,!0),r.removeEventListener("mouseup",n,!0),r.removeEventListener("touchstart",s,!0),r.removeEventListener("touchend",i,!0)}}}),[t,i,s,l])}({ref:t,onInteractOutside:a&&o?e=>{l&&!l(e.target)||(In[In.length-1]===t&&(e.stopPropagation(),e.preventDefault()),u())}:void 0,onInteractOutsideStart:e=>{l&&!l(e.target)||In[In.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=Dt({isDisabled:!i,onBlurWithin:e=>{e.relatedTarget&&!tn(e.relatedTarget,Qt)&&(l&&!l(e.relatedTarget)||null==n||n())}});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),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Sn(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 An="undefined"!=typeof document&&window.visualViewport,Tn=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Ln,Nn=0;function xn(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function On(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Dn(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=Sn(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect().top,r=n.getBoundingClientRect().top;r>t+n.clientHeight&&(e.scrollTop+=r-t)}n=e.parentElement}}function Pn(e,t,n){let{overlayProps:i,underlayProps:o}=Cn({...e,isOpen:t.isOpen,onClose:t.close},n);return function(e={}){let{isDisabled:t}=e;L((()=>{if(!t)return Nn++,1===Nn&&(Ln=fe()?function(){let e,t,n=null,r=()=>{if(n)return;let e=window.pageXOffset,t=window.pageYOffset;n=T(On(window,"scroll",(()=>{window.scrollTo(0,0)})),xn(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),xn(document.documentElement,"overflow","hidden"),xn(document.body,"marginTop",`-${t}px`),(()=>{window.scrollTo(e,t)})),window.scrollTo(0,0)},i=T(On(document,"touchstart",(n=>{e=Sn(n.target,!0),e===document.documentElement&&e===document.body||e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=xn(e,"overscrollBehavior","contain"))}),{passive:!1,capture:!0}),On(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}),On(document,"touchend",(()=>{t&&t()}),{passive:!1,capture:!0}),On(document,"focus",(e=>{let t=e.target;(function(e){return e instanceof HTMLInputElement&&!Tn.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable})(t)&&(r(),t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",An&&(An.height<window.innerHeight?requestAnimationFrame((()=>{Dn(t)})):An.addEventListener("resize",(()=>Dn(t)),{once:!0}))})))}),!0));return()=>{null==t||t(),null==n||n(),i()}}():T(xn(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),xn(document.documentElement,"overflow","hidden"))),()=>{Nn--,0===Nn&&Ln()}}),[t])}({isDisabled:!t.isOpen}),mn(),(0,r.useEffect)((()=>{if(t.isOpen&&n.current)return function(e,t=document.body){let n=new Set(e),r=new Set,i=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&&r.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),a=t(e);if(a===NodeFilter.FILTER_ACCEPT&&o(e),a!==NodeFilter.FILTER_REJECT){let e=i.nextNode();for(;null!=e;)o(e),e=i.nextNode()}},o=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"),r.add(e),yn.set(e,n+1))};wn.length&&wn[wn.length-1].disconnect(),i(t);let a=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some((e=>e.contains(t.target)))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),r.delete(e));for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&i(e):n.add(e)}}));a.observe(t,{childList:!0,subtree:!0});let s={visibleNodes:n,hiddenNodes:r,observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return wn.push(s),()=>{a.disconnect();for(let e of r){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)}}([n.current])}),[t.isOpen,n]),{modalProps:K(i),underlayProps:o}}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 Hn=Vn(),Bn=new Set;function Yn(){Hn=Vn();for(let e of Bn)e(Hn)}const Wn=r.createContext(null);function Gn(){let e=function(){let e=z(),[t,n]=(0,r.useState)(Hn);return(0,r.useEffect)((()=>(0===Bn.size&&window.addEventListener("languagechange",Yn),Bn.add(n),()=>{Bn.delete(n),0===Bn.size&&window.removeEventListener("languagechange",Yn)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return(0,r.useContext)(Wn)||e}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 r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(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 r=t["="+e];if(r)return"function"==typeof r?r():r;let i=this.locale+":"+n,o=$n.get(i);return o||(o=new Intl.PluralRules(this.locale,{type:n}),$n.set(i,o)),r=t[o.select(e)]||t.other,"function"==typeof r?r():r}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 er(e,t){let{locale:n}=Gn(),i=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)}(e,t);return(0,r.useMemo)((()=>new Jn(n,i)),[n,i])}const tr={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 nr(e){let{children:t,elementType:n="div",isFocusable:i,style:o,...a}=e,{visuallyHiddenProps:s}=function(e={}){let{style:t,isFocusable:n}=e,[i,o]=(0,r.useState)(!1),{focusWithinProps:a}=Dt({isDisabled:!n,onFocusWithinChange:e=>o(e)});return{visuallyHiddenProps:{...a,style:(0,r.useMemo)((()=>i?t:t?{...tr,...t}:tr),[i])}}}(e);return r.createElement(n,K(a,s),t)}function rr(e){let{onDismiss:t,...n}=e;var i;let o=function(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;if(n=Y(n),i&&r){let e=new Set([n,...i.trim().split(/\s+/)]);i=[...e].join(" ")}else i&&(i=i.trim().split(/\s+/).join(" "));return r||i||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}(n,er((i=kn)&&i.__esModule?i.default:i,"@react-aria/overlays").format("dismiss"));return r.createElement(nr,null,r.createElement("button",{...o,tabIndex:-1,onClick:()=>{t&&t()},style:{width:1,height:1}}))}function ir(e,t=!0){let[n,i]=(0,r.useState)(!0),o=n&&t;return L((()=>{if(o&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()}),[e,o]),ar(e,o,(0,r.useCallback)((()=>i(!1)),[])),o}function or(e,t){let[n,i]=(0,r.useState)(t?"open":"closed");switch(n){case"open":t||i("exiting");break;case"closed":case"exiting":t&&i("open")}let o="exiting"===n;return ar(e,o,(0,r.useCallback)((()=>{i((e=>"exiting"===e?"closed":e))}),[])),o}function ar(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 r=!1;return Promise.all(t.map((e=>e.finished))).then((()=>{r||(0,$e.flushSync)((()=>{n()}))})).catch((()=>{})),()=>{r=!0}}}),[e,t,n])}let sr="undefined"!=typeof document&&window.visualViewport;function lr(){return{width:sr&&(null==sr?void 0:sr.width)||window.innerWidth,height:sr&&(null==sr?void 0:sr.height)||window.innerHeight}}function ur(e){let[t,n]=function(e,t,n){let[i,o]=(0,r.useState)(e||t),a=(0,r.useRef)(void 0!==e),s=void 0!==e;(0,r.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?e:i,u=(0,r.useCallback)(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(l,e)||n(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"),o(((n,...i)=>{let o=e(s?l:n,...i);return r(o,...t),s?n:o}))):(s||o(e),r(e,...t))}),[s,l,n]);return[l,u]}(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const i=(0,r.useCallback)((()=>{n(!0)}),[n]),o=(0,r.useCallback)((()=>{n(!1)}),[n]),a=(0,r.useCallback)((()=>{n(!t)}),[n,t]);return{isOpen:t,setOpen:n,open:i,close:o,toggle:a}}const cr=(0,r.createContext)(null),dr=(0,r.createContext)(null),pr=(0,r.forwardRef)((function(e,t){if((0,r.useContext)(dr))return r.createElement(vr,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:i,isOpen:o,defaultOpen:a,onOpenChange:s,children:l,isEntering:u,isExiting:c,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:p,...f}=e;return r.createElement(gr,{isDismissable:n,isKeyboardDismissDisabled:i,isOpen:o,defaultOpen:a,onOpenChange:s,isEntering:u,isExiting:c,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:p},r.createElement(vr,{...f,modalRef:t},l))}));function fr(e,t){[e,t]=J(e,t,cr);let n=(0,r.useContext)(hn),i=ur(e),o=null==e.isOpen&&null==e.defaultOpen&&n?n:i,a=S(t),s=(0,r.useRef)(null),l=or(a,o.isOpen),u=or(s,o.isOpen),c=l||u||e.isExiting||!1,d=z();return!o.isOpen&&!c||d?null:r.createElement(mr,{...e,state:o,isExiting:c,overlayRef:a,modalRef:s})}const gr=(0,r.forwardRef)(fr);function mr({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:i}=t,{modalProps:o,underlayProps:a}=Pn(t,i,n),s=ir(t.overlayRef)||t.isEntering||!1,l=X({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:s,isExiting:t.isExiting,state:i}}),u=function(){let e=z(),[t,n]=(0,r.useState)((()=>e?{width:0,height:0}:lr()));return(0,r.useEffect)((()=>{let e=()=>{n((e=>{let t=lr();return t.width===e.width&&t.height===e.height?e:t}))};return sr?sr.addEventListener("resize",e):window.addEventListener("resize",e),()=>{sr?sr.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),t}(),c={...l.style,"--visual-viewport-height":u.height+"px"};return r.createElement(gn,{isExiting:t.isExiting,portalContainer:e},r.createElement("div",{...K(ae(t),a),...l,style:c,ref:t.overlayRef,"data-entering":s||void 0,"data-exiting":t.isExiting||void 0},r.createElement($,{values:[[dr,{modalProps:o,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[hn,i]]},l.children)))}function vr(e){let{modalProps:t,modalRef:n,isExiting:i,isDismissable:o}=(0,r.useContext)(dr),a=(0,r.useContext)(hn),s=S((0,r.useMemo)((()=>A(e.modalRef,n)),[e.modalRef,n])),l=ir(s),u=X({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:i,state:a}});return r.createElement("div",{...K(ae(e),t),...u,ref:s,"data-entering":l||void 0,"data-exiting":i||void 0},o&&r.createElement(rr,{onDismiss:a.close}),u.children)}function hr(){return(0,r.createElement)(l.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,r.createElement)(l.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 br({dataSrc:e,embedId:t,buttonText:n,isFormRedirect:i,formViewUrl:o}){const[a,u]=(0,d.useState)(e),[c,p]=(0,d.useState)(i),[f,g]=(0,d.useState)(!1),[m,v]=(0,d.useState)(!1);(0,d.useEffect)((()=>{const e=`link[rel="preload"][href="${a}"][as="document"]`;if(!document.querySelector(e)){const e=document.createElement("link");e.rel="preload",e.href=a,e.as="document",document.head.appendChild(e)}return()=>{const t=document.querySelector(e);t&&document.head.removeChild(t)}}),[a]),(0,d.useEffect)((()=>{m&&!f&&b()}),[m,f]);const h=()=>{!c&&i&&u(o)},b=()=>{setTimeout((()=>{v(!1)}),2e3)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Bt,{type:"button",className:"givewp-donation-form-modal__open",onPress:()=>{v(!0),p(!0),g(!0),h()},isPending:f,"aria-label":f?(0,s.__)("Loading donation form","give"):(0,s.__)("Open donation form","give")},f&&(0,r.createElement)("span",{className:"givewp-donation-form-modal__open__spinner"},(0,r.createElement)(l.Spinner,{style:{margin:"0 auto",verticalAlign:"middle"},"aria-label":(0,s.__)("In progress","give")})),(0,r.createElement)("span",{style:{margin:"0",visibility:f?"hidden":"visible"},"aria-hidden":f},n)),(0,r.createElement)(gr,{className:"givewp-donation-form-modal__overlay","data-loading":f,isOpen:c,onOpenChange:p,isDismissable:!0,isEntering:m},(0,r.createElement)("button",{"aria-label":(0,s.__)("Close donation form","give"),"aria-hidden":"false",type:"button",className:"givewp-donation-form-modal__close",onClick:()=>{p(!1),g(!1),h()}},(0,r.createElement)(hr,null)),(0,r.createElement)(pr,{className:"givewp-donation-form-modal"},(0,r.createElement)(bn,{className:"givewp-donation-form-modal__dialog","aria-label":(0,s.__)("Donation Form","give")},(0,r.createElement)("div",{className:"givewp-donation-form-modal__dialog__content"},(0,r.createElement)(I,{title:(0,s.__)("Donation Form","give"),id:t,src:a,checkOrigin:!1,heightCalculationMethod:"taggedElement",style:{minWidth:"100%",border:"none"},onInit:e=>{e.iFrameResizer.resize(),g(!1)}}))))))}function yr({clientId:e,formId:t,displayStyle:n,continueButtonTitle:i,link:o,isLegacyForm:a,attributes:l,isSelected:u,className:d}){const p=(0,c.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]),f=p?.clientId===e?"auto":"none",g="modal"===n||"reveal"===n,m="newTab"===n;return a?(0,r.createElement)("div",{className:`${d}${u?" isSelected":""}`},(0,r.createElement)(M(),{block:"givewp/campaign-form",attributes:l})):m?(0,r.createElement)("a",{className:"givewp-donation-form-link",href:o,target:"_blank",rel:"noopener noreferrer"},i):g?(0,r.createElement)(br,{dataSrc:`/?givewp-route=donation-form-view&form-id=${t}`,embedId:"",buttonText:i,isFormRedirect:!1,formViewUrl:""}):(0,r.createElement)(I,{title:(0,s.__)("Donation Form","give"),src:`/?givewp-route=donation-form-view&form-id=${t}`,checkOrigin:!1,style:{width:"1px",minWidth:"100%",border:"0",pointerEvents:f}})}var wr=n(19888);const Er=()=>{},Ir=Er(),Cr=Object,Mr=e=>e===Ir,Sr=e=>"function"==typeof e,Ar=(e,t)=>({...e,...t}),Tr=new WeakMap;let Lr=0;const Nr=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,o;if(Cr(e)!==e||r||n==RegExp)i=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(i=Tr.get(e),i)return i;if(i=++Lr+"~",Tr.set(e,i),n==Array){for(i="@",o=0;o<e.length;o++)i+=Nr(e[o])+",";Tr.set(e,i)}if(n==Cr){i="#";const t=Cr.keys(e).sort();for(;!Mr(o=t.pop());)Mr(e[o])||(i+=o+":"+Nr(e[o])+",");Tr.set(e,i)}}return i},xr=new WeakMap,Or={},Dr={},Pr="undefined",kr=typeof window!=Pr,jr=typeof document!=Pr,Rr=(e,t)=>{const n=xr.get(e);return[()=>!Mr(t)&&e.get(t)||Or,r=>{if(!Mr(t)){const i=e.get(t);t in Dr||(Dr[t]=i),n[5](t,Ar(i,r),i||Or)}},n[6],()=>!Mr(t)&&t in Dr?Dr[t]:!Mr(t)&&e.get(t)||Or]};let _r=!0;const[Fr,zr]=kr&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Er,Er],Vr={isOnline:()=>_r,isVisible:()=>{const e=jr&&document.visibilityState;return Mr(e)||"hidden"!==e}},Hr={initFocus:e=>(jr&&document.addEventListener("visibilitychange",e),Fr("focus",e),()=>{jr&&document.removeEventListener("visibilitychange",e),zr("focus",e)}),initReconnect:e=>{const t=()=>{_r=!0,e()},n=()=>{_r=!1};return Fr("online",t),Fr("offline",n),()=>{zr("online",t),zr("offline",n)}}},Br=!r.useId,Yr=!kr||"Deno"in window,Wr=Yr?r.useEffect:r.useLayoutEffect,Gr="undefined"!=typeof navigator&&navigator.connection,Ur=!Yr&&Gr&&(["slow-2g","2g"].includes(Gr.effectiveType)||Gr.saveData),Zr=e=>{if(Sr(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Nr(e):"",t]};let Kr=0;const Qr=()=>++Kr;async function $r(...e){const[t,n,r,i]=e,o=Ar({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let a=o.populateCache;const s=o.rollbackOnError;let l=o.optimisticData;const u=!1!==o.revalidate,c=o.throwOnError;if(Sr(n)){const e=n,r=[],i=t.keys();for(const n of i)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(d))}return d(n);async function d(n){const[i]=Zr(n);if(!i)return;const[o,d]=Rr(t,i),[p,f,g,m]=xr.get(t),v=()=>{const e=p[i];return u&&(delete g[i],delete m[i],e&&e[0])?e[0](2).then((()=>o().data)):o().data};if(e.length<3)return v();let h,b=r;const y=Qr();f[i]=[y,0];const w=!Mr(l),E=o(),I=E.data,C=E._c,M=Mr(C)?I:C;if(w&&(l=Sr(l)?l(M,I):l,d({data:l,_c:M})),Sr(b))try{b=b(M)}catch(e){h=e}if(b&&Sr(b.then)){if(b=await b.catch((e=>{h=e})),y!==f[i][0]){if(h)throw h;return b}h&&w&&(e=>"function"==typeof s?s(e):!1!==s)(h)&&(a=!0,d({data:M,_c:Ir}))}if(a&&!h)if(Sr(a)){const e=a(b,M);d({data:e,error:Ir,_c:Ir})}else d({data:b,error:Ir,_c:Ir});if(f[i][1]=Qr(),Promise.resolve(v()).then((()=>{d({_c:Ir})})),!h)return b;if(c)throw h}}const Xr=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Jr=(e,t)=>{if(!xr.has(e)){const n=Ar(Hr,t),r={},i=$r.bind(Ir,e);let o=Er;const a={},s=(e,t)=>{const n=a[e]||[];return a[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);const i=a[t];if(i)for(const e of i)e(n,r)},u=()=>{if(!xr.has(e)&&(xr.set(e,[r,{},{},{},i,l,s]),!Yr)){const t=n.initFocus(setTimeout.bind(Ir,Xr.bind(Ir,r,0))),i=n.initReconnect(setTimeout.bind(Ir,Xr.bind(Ir,r,1)));o=()=>{t&&t(),i&&i(),xr.delete(e)}}};return u(),[e,i,u,o]}return[e,xr.get(e)[4]]},[qr,ei]=Jr(new Map),ti=Ar({onLoadingSlow:Er,onSuccess:Er,onError:Er,onErrorRetry:(e,__,t,n,r)=>{const i=t.errorRetryCount,o=r.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!Mr(i)&&o>i||setTimeout(n,a,r)},onDiscarded:Er,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ur?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Ur?5e3:3e3,compare:(e,t)=>Nr(e)==Nr(t),isPaused:()=>!1,cache:qr,mutate:ei,fallback:{}},Vr),ni=(e,t)=>{const n=Ar(e,t);if(t){const{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=Ar(i,a))}return n},ri=(0,r.createContext)({}),ii=kr&&window.__SWR_DEVTOOLS_USE__,oi=ii?window.__SWR_DEVTOOLS_USE__:[],ai=oi.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=Zr(t),[,,,i]=xr.get(qr);if(r.startsWith("$inf$"))return n(...e);const o=i[r];return Mr(o)?n(...e):(delete i[r],o)}),r)));ii&&(window.__SWR_DEVTOOLS_REACT__=r);const si=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),li={dedupe:!0},ui=(Cr.defineProperty((e=>{const{value:t}=e,n=(0,r.useContext)(ri),i=Sr(t),o=(0,r.useMemo)((()=>i?t(n):t),[i,n,t]),a=(0,r.useMemo)((()=>i?o:ni(n,o)),[i,n,o]),s=o&&o.provider,l=(0,r.useRef)(Ir);s&&!l.current&&(l.current=Jr(s(a.cache||qr),o));const u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),Wr((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,r.createElement)(ri.Provider,Ar(e,{value:a}))}),"defaultValue",{value:ti}),ci=(e,t,n)=>{const{cache:i,compare:o,suspense:a,fallbackData:s,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:d,refreshWhenOffline:p,keepPreviousData:f}=n,[g,m,v,h]=xr.get(i),[b,y]=Zr(e),w=(0,r.useRef)(!1),E=(0,r.useRef)(!1),I=(0,r.useRef)(b),C=(0,r.useRef)(t),M=(0,r.useRef)(n),S=()=>M.current,A=()=>S().isVisible()&&S().isOnline(),[T,L,N,x]=Rr(i,b),O=(0,r.useRef)({}).current,D=Mr(s)?n.fallback[b]:s,P=(e,t)=>{for(const n in O){const r=n;if("data"===r){if(!o(e[r],t[r])){if(!Mr(e[r]))return!1;if(!o(B,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},k=(0,r.useMemo)((()=>{const e=!!b&&!!t&&(Mr(l)?!S().isPaused()&&!a&&(!!Mr(u)||u):l),n=t=>{const n=Ar(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=T(),i=x(),o=n(r),s=r===i?o:n(i);let c=o;return[()=>{const e=n(T());return P(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>s]}),[i,b]),j=(0,wr.useSyncExternalStore)((0,r.useCallback)((e=>N(b,((t,n)=>{P(n,t)||e()}))),[i,b]),k[0],k[1]),R=!w.current,_=g[b]&&g[b].length>0,F=j.data,z=Mr(F)?D:F,V=j.error,H=(0,r.useRef)(z),B=f?Mr(F)?H.current:F:z,Y=!(_&&!Mr(V))&&(R&&!Mr(l)?l:!S().isPaused()&&(a?!Mr(z)&&u:Mr(z)||u)),W=!!(b&&t&&R&&Y),G=Mr(j.isValidating)?W:j.isValidating,U=Mr(j.isLoading)?W:j.isLoading,Z=(0,r.useCallback)((async e=>{const t=C.current;if(!b||!t||E.current||S().isPaused())return!1;let r,i,a=!0;const s=e||{},l=!v[b]||!s.dedupe,u=()=>Br?!E.current&&b===I.current&&w.current:b===I.current,c={isValidating:!1,isLoading:!1},d=()=>{L(c)},p=()=>{const e=v[b];e&&e[1]===i&&delete v[b]},f={isValidating:!0};Mr(T().data)&&(f.isLoading=!0);try{if(l&&(L(f),n.loadingTimeout&&Mr(T().data)&&setTimeout((()=>{a&&u()&&S().onLoadingSlow(b,n)}),n.loadingTimeout),v[b]=[t(y),Qr()]),[r,i]=v[b],r=await r,l&&setTimeout(p,n.dedupingInterval),!v[b]||v[b][1]!==i)return l&&u()&&S().onDiscarded(b),!1;c.error=Ir;const e=m[b];if(!Mr(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return d(),l&&u()&&S().onDiscarded(b),!1;const s=T().data;c.data=o(s,r)?s:r,l&&u()&&S().onSuccess(r,b,n)}catch(e){p();const t=S(),{shouldRetryOnError:n}=t;t.isPaused()||(c.error=e,l&&u()&&(t.onError(e,b,t),(!0===n||Sr(n)&&n(e))&&A()&&t.onErrorRetry(e,b,t,(e=>{const t=g[b];t&&t[0]&&t[0](3,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,d(),!0}),[b,i]),K=(0,r.useCallback)(((...e)=>$r(i,I.current,...e)),[]);if(Wr((()=>{C.current=t,M.current=n,Mr(F)||(H.current=F)})),Wr((()=>{if(!b)return;const e=Z.bind(Ir,li);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(b,g,((n,r={})=>{if(0==n){const n=Date.now();S().revalidateOnFocus&&n>t&&A()&&(t=n+S().focusThrottleInterval,e())}else if(1==n)S().revalidateOnReconnect&&A()&&e();else{if(2==n)return Z();if(3==n)return Z(r)}}));return E.current=!1,I.current=b,w.current=!0,L({_k:y}),Y&&(Mr(z)||Yr?e():(r=e,kr&&typeof window.requestAnimationFrame!=Pr?window.requestAnimationFrame(r):setTimeout(r,1))),()=>{E.current=!0,n()};var r}),[b]),Wr((()=>{let e;function t(){const t=Sr(c)?c(T().data):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){T().error||!d&&!S().isVisible()||!p&&!S().isOnline()?t():Z(li).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,d,p,b]),(0,r.useDebugValue)(B),a&&Mr(z)&&b){if(!Br&&Yr)throw new Error("Fallback data is required when using suspense in SSR.");C.current=t,M.current=n,E.current=!1;const e=h[b];if(!Mr(e)){const t=K(e);si(t)}if(!Mr(V))throw V;{const e=Z(li);Mr(B)||(e.status="fulfilled",e.value=!0),si(e)}}return{mutate:K,get data(){return O.data=!0,B},get error(){return O.error=!0,V},get isValidating(){return O.isValidating=!0,G},get isLoading(){return O.isLoading=!0,U}}},function(...e){const t=Ar(ti,(0,r.useContext)(ri)),[n,i,o]=(e=>Sr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(e),a=ni(t,o);let s=ci;const{use:l}=a,u=(l||[]).concat(ai);for(let e=u.length;e--;)s=u[e](s);return s(n,i||a.fetcher||null,a)});var ci;const di=window.wp.url;var pi=n(1455),fi=n.n(pi),gi=n(47730),mi=n(16639);const vi={schema:o,settings:{icon:(0,r.createElement)(mi.A,{color:"grey"}),edit:function({attributes:e,isSelected:t,setAttributes:n,className:i,clientId:o}){const{id:l,blockId:u,displayStyle:d,continueButtonTitle:f=(0,s.__)("Donate now","give")}=e,{formOptions:g,isResolving:m}=function(e){var t,n;const{forms:r,isResolving:i}=(0,c.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])}}),[]),{data:o,isLoading:a}=ui(e?(0,di.addQueryArgs)("/give-api/v2/admin/forms",{campaignId:e,status:"publish"}):null,(e=>fi()({path:e}))),l=null!==(t=o?.items?.map((e=>e.id)))&&void 0!==t?t:[],u=e&&l.length>0?r?.filter((e=>l.includes(e?.id))):r,d=null!==(n=u?.map((({title:e,id:t,formTemplate:n,isLegacyForm:r,link:i,name:o})=>({label:(0,s.__)(e?.rendered||o||"Untitled Form","give"),value:t,isLegacyForm:r,isLegacyTemplate:r&&"legacy"===n,link:i}))))&&void 0!==n?n:[];return{formOptions:i||a?[{label:(0,s.__)("Loading...","give"),value:0}]:d,isResolving:i||a}}(e?.campaignId);(0,r.useEffect)((()=>{u||n({blockId:o}),v||"reveal"!==d||n({displayStyle:"modal"})}),[]);const[v,h,b]=(()=>{const e=g.find((e=>e.value===l));return[e?.isLegacyForm,e?.isLegacyTemplate,e?.link]})();return(0,r.createElement)("div",{...(0,a.useBlockProps)()},(0,r.createElement)(gi.A,{campaignId:e.campaignId,handleSelect:e=>n({campaignId:Number(e)})},l&&(0,r.createElement)(yr,{clientId:o,formId:l,displayStyle:d,continueButtonTitle:f,link:b,isLegacyForm:v,attributes:e,isSelected:t,className:i}),(0,r.createElement)(p,{attributes:e,setAttributes:n,entityOptions:g,isResolving:m,isLegacyTemplate:h,isLegacyForm:v})))},save:()=>null}}},54726:(e,t,n)=>{"use strict";n.d(t,{O:()=>o,v:()=>a});var r=n(27723),i=n(29809);const o=e=>{switch(e){case"amount":return(0,r.__)("Amount raised","give");case"donations":return(0,r.__)("Number of donations","give");case"donors":return(0,r.__)("Number of donors","give");case"amountFromSubscriptions":return(0,r.__)("Recurring amount raised","give");case"subscriptions":return(0,r.__)("Number of recurring donations","give");case"donorsFromSubscriptions":return(0,r.__)("Number of recurring donors","give")}},a=(e,t)=>{switch(e){case"amount":case"amountFromSubscriptions":const{currency:e}=(0,i.DP)();return(0,i.Vo)(e).format(t);default:return t}}},78444:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(51609),i=n(27723),o=n(94715),a=n(56427);const s=({label:e,options:t,onChange:n,value:i})=>{const o=t.findIndex((e=>i===e.value));return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"give-campaign-components-gridLayout"},(0,r.createElement)("div",{className:"give-campaign-components-gridLayout__columns"},Array(o+1).fill((0,r.createElement)("div",{className:"give-campaign-components-gridLayout__columns-item"})))),(0,r.createElement)(a.SelectControl,{label:e,value:i,onChange:e=>n(e),options:t}))};var l=n(59292),u=n(86087),c=n(32485),d=n.n(c);const p=()=>(0,r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"m7.5 15 5-5-5-5",stroke:"#060C1A",strokeWidth:"1.667",strokeLinecap:"round",strokeLinejoin:"round"})),f=()=>(0,r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0906 4.41205C13.416 4.73748 13.416 5.26512 13.0906 5.59056L8.67981 10.0013L13.0906 14.412C13.416 14.7375 13.416 15.2651 13.0906 15.5906C12.7651 15.916 12.2375 15.916 11.912 15.5906L6.91205 10.5906C6.58661 10.2651 6.58661 9.73748 6.91205 9.41205L11.912 4.41205C12.2375 4.08661 12.7651 4.08661 13.0906 4.41205Z",fill:"#060C1A"})),g=({currentPage:e,totalPages:t,setPage:n})=>{if(1>=t)return null;const o=e+1,a=e-1;return(0,r.createElement)("div",{className:"give-campaign-components-pagination"},(0,r.createElement)("div",{className:"give-campaign-components-pagination__pages"},(0,r.createElement)("div",{className:"give-campaign-components-pagination__pages-links"},a>0?(0,r.createElement)("button",{title:(0,i.__)("Previous page","give"),className:"give-campaign-components-pagination__pages-links-arrow",onClick:e=>{e.preventDefault(),n(a)}},(0,r.createElement)(f,null)):(0,r.createElement)("button",{className:"give-campaign-components-pagination__pages-links-arrow-disabled"},(0,r.createElement)(f,null)),[...Array(t)].map(((t,o)=>{const a=o+1;return(0,r.createElement)("button",{title:(0,i.sprintf)((0,i.__)("Page %d","give"),a),className:d()("give-campaign-components-pagination__pages-links-page",{"give-campaign-components-pagination__pages-links-current":e===a}),onClick:e=>{e.preventDefault(),n(a)}},a)})),o<=t?(0,r.createElement)("button",{title:(0,i.__)("Next page","give"),className:"give-campaign-components-pagination__pages-links-arrow",onClick:e=>{e.preventDefault(),n(o)}},(0,r.createElement)(p,null)):(0,r.createElement)("button",{className:"give-campaign-components-pagination__pages-links-arrow-disabled"},(0,r.createElement)(p,null)))))};var m=n(31927);const v=e=>{switch(e){case"double":return 2;case"triple":return 3;default:return 1}},h=({attributes:e})=>{const[t,n]=(0,u.useState)(1),{campaigns:i,hasResolved:o,totalPages:a}=(0,l.A)({ids:e?.filterBy?.map((e=>Number(e.value))),per_page:e?.perPage,sortBy:e?.sortBy,orderBy:e?.orderBy,page:t});return o?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"givewp-campaign-grid",style:{gridTemplateColumns:`repeat(${v(e.layout)}, 1fr)`}},i?.map((t=>(0,r.createElement)(m.A,{key:t.id,campaign:t,showImage:e.showImage,showDescription:e.showDescription,showGoal:e.showGoal})))),e.showPagination&&a>=t&&(0,r.createElement)("div",{className:"givewp-campaign-grid__pagination"},(0,r.createElement)(g,{currentPage:t,totalPages:a,setPage:e=>n(e)}))):null};var b=n(16639);const y={schema:JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":2,"name":"givewp/campaign-grid","version":"1.0.0","title":"Campaign Grid","category":"give","description":"Insert an existing campaign into the page.","supports":{"align":["wide","full","left","center","right"]},"attributes":{"layout":{"type":"string","default":"full","enum":["full","double","triple"]},"showImage":{"type":"boolean","default":true},"showDescription":{"type":"boolean","default":true},"showGoal":{"type":"boolean","default":true},"sortBy":{"type":"string","default":"date","enum":["date"]},"orderBy":{"type":"string","default":"desc","enum":["asc","desc"]},"filterBy":{"type":"array","default":[]},"perPage":{"type":"number","default":"6"},"showPagination":{"type":"boolean","default":true}},"example":{},"textdomain":"give","viewScript":"file:../../../../build/campaignGridApp.js","viewStyle":"file:../../../../build/campaignGridApp.css","render":"file:./render.php"}'),settings:{icon:(0,r.createElement)(b.A,{color:"grey"}),edit:function({attributes:e,setAttributes:t}){const n=(0,o.useBlockProps)(),{campaigns:u,hasResolved:c}=(0,l.A)(),d=u?.map((e=>e.title));return(0,r.createElement)("div",{...n},c&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h,{attributes:e}),(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(a.PanelBody,{title:(0,i.__)("Layout","give"),initialOpen:!0},(0,r.createElement)(s,{label:(0,i.__)("Grid","give"),value:e.layout,onChange:e=>t({layout:e}),options:[{value:"full",label:(0,i.__)("Full Width","give")},{value:"double",label:(0,i.__)("Double","give")},{value:"triple",label:(0,i.__)("Triple","give")}]})),(0,r.createElement)(a.PanelBody,{title:(0,i.__)("Display Elements","give"),initialOpen:!0},(0,r.createElement)(a.ToggleControl,{label:(0,i.__)("Show campaign image","give"),checked:e.showImage,onChange:e=>t({showImage:e})}),(0,r.createElement)(a.ToggleControl,{label:(0,i.__)("Show description","give"),checked:e.showDescription,onChange:e=>t({showDescription:e})}),(0,r.createElement)(a.ToggleControl,{label:(0,i.__)("Show goal","give"),checked:e.showGoal,onChange:e=>t({showGoal:e})})),(0,r.createElement)(a.PanelBody,{title:(0,i.__)("Grid Settings","give"),initialOpen:!0},(0,r.createElement)(a.SelectControl,{label:(0,i.__)("Order By","give"),onChange:e=>t({sortBy:e}),value:e.sortBy,help:(0,i.__)("The order campaigns are displayed in.","give"),options:[{value:"date",label:(0,i.__)("Date Created","give")},{value:"amount",label:(0,i.__)("Total Amount Raised","give")},{value:"donations",label:(0,i.__)("Number of Donations","give")},{value:"donors",label:(0,i.__)("Number of Donors","give")}]}),(0,r.createElement)(a.SelectControl,{label:(0,i.__)("Order","give"),onChange:e=>t({orderBy:e}),value:e.orderBy,help:(0,i.__)("Choose whether the campaign order ascends or descends.","give"),options:[{value:"desc",label:(0,i.__)("Descending","give")},{value:"asc",label:(0,i.__)("Ascending","give")}]}),(0,r.createElement)(a.FormTokenField,{value:e.filterBy?.map((e=>e.title)),label:(0,i.__)("Filter by Campaign","give"),onChange:e=>{const n=u.filter((t=>e.includes(t.title))).map((e=>({value:String(e.id),title:e.title})));t({filterBy:n})},suggestions:d}),(0,r.createElement)(a.TextControl,{type:"number",min:"1",label:(0,i.__)("Campaigns per page","give"),value:e.perPage,onChange:e=>t({perPage:Number(e)}),help:(0,i.__)("Set the number of campaigns to be displayed on the first page load.","give")}),(0,r.createElement)(a.ToggleControl,{label:(0,i.__)("Show pagination","give"),checked:e.showPagination,onChange:e=>t({showPagination:e}),help:(0,i.__)("All campaigns will be spread across multiple pages.","give")})))))}}}},31927:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(51609),i=n(27723),o=n(54726),a=n(29809);const s=({showImage:e,showGoal:t,showDescription:n,campaign:s})=>{const l=(0,a.DP)();return(0,r.createElement)("div",{className:"give-campaigns-component-campaign",...s.pagePermalink&&!l.isAdmin&&{style:{cursor:"pointer"},onClick:()=>window.location=s.pagePermalink}},e&&s.image&&(0,r.createElement)("div",{style:{backgroundImage:`url(${s.image})`},className:"give-campaigns-component-campaign-image"}),(0,r.createElement)("div",{className:"give-campaigns-component-campaign-title"},s.title),n&&(0,r.createElement)("div",{className:"give-campaigns-component-campaign-description"},s.shortDescription),t&&(0,r.createElement)("div",{className:"give-campaigns-component-campaign__goal"},(0,r.createElement)("div",{className:"give-campaigns-component-campaign__goal-progress"},(0,r.createElement)("div",{className:"give-campaigns-component-campaign__goal-progress-container"},(0,r.createElement)("div",{className:"give-campaigns-component-campaign__goal-progress-bar",style:{width:`${s.goalStats.percentage}%`}}))),(0,r.createElement)("div",{className:"give-campaigns-component-campaign__goal-container"},(0,r.createElement)("div",{className:"give-campaigns-component-campaign__goal-container-item"},(0,r.createElement)("span",null,(0,o.O)(s.goalType)),(0,r.createElement)("strong",null,(0,o.v)(s.goalType,s.goalStats.actual))),(0,r.createElement)("div",{className:"give-campaigns-component-campaign__goal-container-item"},(0,r.createElement)("span",null,(0,i.__)("Our goal","give")),(0,r.createElement)("strong",null,(0,o.v)(s.goalType,s.goal))))))}},66233:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(51609),i=n(27723),o=n(56427),a=n(94715),s=n(29809);function l({campaignId:e,campaigns:t,hasResolved:n,handleSelect:l,inspectorControls:u=null}){const c=(0,s.DP)(),d=(()=>{if(!n)return[{label:(0,i.__)("Loading...","give"),value:""}];if(t.length){const e=t.map((e=>({label:`${e.title} ${"draft"===e.status?`(${(0,i.__)("Draft","give")})`:""}`.trim(),value:e.id.toString()})));return[{label:(0,i.__)("Select...","give"),value:""},...e]}return[{label:(0,i.__)("No campaigns found.","give"),value:""}]})();return(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:(0,i.__)("Campaign","give"),initialOpen:!0},(0,r.createElement)(o.SelectControl,{label:(0,i.__)("Select a Campaign","give"),value:e?.toString(),options:d,onChange:e=>l(parseInt(e)),help:(0,r.createElement)(r.Fragment,null,(0,i.__)("Select a campaign to display.","give")+" ",e&&(0,r.createElement)("a",{href:`${c.campaignsAdminUrl}&id=${e}&tab=settings`,target:"_blank",rel:"noopener noreferrer",className:"givewp-campaign-cover-block__edit-campaign-link","aria-label":(0,i.__)("Edit campaign settings in a new tab","give")},(0,i.__)("Edit campaign","give")))}),u))}},95723:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(51609),i=n(27723),o=n(46005),a=n(55395),s=n(11905);const l=({campaigns:e,hasResolved:t,handleSelect:n})=>{const[l,u]=(0,r.useState)(null),c=(()=>{if(!t)return[{label:(0,i.__)("Loading...","give"),value:""}];if(e.length){const t=e.map((e=>({label:`${e.title} ${"draft"===e.status?`(${(0,i.__)("Draft","give")})`:""}`.trim(),value:e.id})));return[{label:(0,i.__)("Select a campaign","give"),value:""},...t]}return[{label:(0,i.__)("No campaigns found.","give"),value:""}]})(),d=c.find((e=>e.value===l));return(0,r.createElement)("div",{className:"givewp-campaign-selector"},(0,r.createElement)("img",{className:"givewp-campaign-selector__logo",src:s.A,alt:"givewp-logo"}),(0,r.createElement)("div",{className:"givewp-campaign-selector__select"},(0,r.createElement)("label",{htmlFor:"campaignId",className:"givewp-campaign-selector__label"},(0,i.__)("Choose a campaign","give")),(0,r.createElement)(o.Ay,{name:"campaignId",inputId:"campaignId",value:d,onChange:e=>u(e?.value),noOptionsMessage:()=>(0,r.createElement)("p",null,(0,i.__)("No campaigns were found.","give")),options:c,loadingMessage:()=>(0,r.createElement)(r.Fragment,null,(0,i.__)("Loading Campaigns...","give")),isLoading:!t,theme:a.t,styles:a.Y})),(0,r.createElement)("button",{className:"givewp-campaign-selector__submit",type:"button",disabled:!l,onClick:()=>{n(l)}},(0,i.__)("Confirm","give")))}},47730:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(51609),i=n(66233),o=n(59292),a=n(95723),s=n(3582);function l({campaignId:e,handleSelect:t,children:n,inspectorControls:l=null,showInspectorControl:u=!0}){const[c]=(0,s.useEntityProp)("postType","page","campaignId"),{campaigns:d,hasResolved:p}=(0,o.A)({status:["active","draft"]});return(0,r.useEffect)((()=>{c&&e!==c&&t(c)}),[c]),(0,r.createElement)(r.Fragment,null,!e&&(0,r.createElement)(a.A,{handleSelect:e=>t(e),campaigns:d,hasResolved:p}),!c&&u&&(0,r.createElement)(i.A,{campaignId:e,campaigns:d,hasResolved:p,handleSelect:e=>t(e),inspectorControls:l}),e&&n)}},55395:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r,t:()=>i});const r={input:(e,t)=>({...e,height:"3rem"}),option:(e,t)=>({...e,paddingTop:"0.8rem",paddingBottom:"0.8rem",fontSize:"1rem"}),control:(e,t)=>({...e,fontSize:"1rem"})},i=e=>({...e,colors:{...e.colors,primary:"#27ae60"}})},59292:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3582);function i({ids:e=[],page:t=1,per_page:n=30,status:i=["active"],sortBy:o="date",orderBy:a="desc"}={}){const s=(0,r.useEntityRecords)("givewp","campaign",{ids:e,page:t,per_page:n,status:i,sortBy:o,orderBy:a});return{campaigns:s?.records,totalItems:s.totalItems,totalPages:s.totalPages,hasResolved:s?.hasResolved}}},29809:(e,t,n)=>{"use strict";n.d(t,{DP:()=>s,KG:()=>a,Vd:()=>u,Vo:()=>l,iK:()=>c});var r=n(3582),i=n(1455),o=n.n(i);function a(e){const t=new URLSearchParams(window.location.search),{record:n,hasResolved:i,save:o,edit:a}=(0,r.useEntityRecord)("givewp","campaign",null!=e?e:t.get("id"));return{campaign:n,hasResolved:i,save:o,edit:a}}function s(){return window.GiveCampaignOptions}function l(e,t){return new Intl.NumberFormat(navigator.language,{style:"currency",currency:e,...t})}async function u(e){try{const t=await o()({path:"/wp/v2/users/me"}),n=t?.id;return await wp.data.dispatch("core").saveEntityRecord("root","user",{id:n,meta:{[e]:!0}})}catch(e){console.error("Error updating user meta:",e)}}async function c(e){try{return await o()({path:`/givewp/v3/campaigns/${e}/page`,method:"POST"})}catch(e){console.error("Error creating Campaign page:",e)}}},16639:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(51609),i=n(5556),o=n.n(i);const a={white:"#fff",grey:"#555d66",give:"#66bb6a"},s=({color:e="give",size:t="24px",...n})=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 157.2 157.2",width:t,height:t,...n},(0,r.createElement)("circle",{fill:a[e],cx:"78.6",cy:"78.6",r:"78.6"}),(0,r.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"}));s.propTypes={color:o().oneOf(Object.keys(a)),size:o().oneOfType([o().number,o().string])};const l=s},32485:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},4146:(e,t,n)=>{"use strict";var r=n(73404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={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 r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.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,r){if("string"!=typeof n){if(g){var i=f(n);i&&i!==g&&e(t,i,r)}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(!(o[h]||r&&r[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,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=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 r:switch(e=e.type){case c:case d:case o: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 i:return t}}}function I(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,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===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===i},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===o||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 r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};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"},4596:(e,t,n)=>{"use strict";n.d(t,{S:()=>oe});for(var r=n(58168),i=n(89379),o=n(23029),a=n(92901),s=n(85501),l=n(29426),u=n(89394),c=n(51609),d=n(46815),p=n(17437),f=n(76685),g=n(80045),m={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"},v=function(e){return(0,p.Y)("span",(0,r.A)({css:m},e))},h={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", 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,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,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(o," focused, ").concat(u(a,n),".");if("menu"===t){var c=s?" disabled":"",d="".concat(l?"selected":"focused").concat(c);return"option ".concat(o," ").concat(d,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},b=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,u=e.id,d=l.ariaLiveMessages,f=l.getOptionLabel,g=l.inputValue,m=l.isMulti,b=l.isOptionDisabled,y=l.isSearchable,w=l.menuIsOpen,E=l.options,I=l.screenReaderStatus,C=l.tabSelectsValue,M=l["aria-label"],S=l["aria-live"],A=(0,c.useMemo)((function(){return(0,i.A)((0,i.A)({},h),d||{})}),[d]),T=(0,c.useMemo)((function(){var e,n="";if(t&&A.onChange){var r=t.option,o=t.options,a=t.removedValue,l=t.removedValues,u=t.value,c=a||r||(e=u,Array.isArray(e)?null:e),d=c?f(c):"",p=o||l||void 0,g=p?p.map(f):[],m=(0,i.A)({isDisabled:c&&b(c,s),label:d,labels:g},t);n=A.onChange(m)}return n}),[t,A,b,s,f]),L=(0,c.useMemo)((function(){var e="",t=n||r,i=!!(n&&s&&s.includes(n));if(t&&A.onFocus){var a={focused:t,label:f(t),isDisabled:b(t,s),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:s};e=A.onFocus(a)}return e}),[n,r,f,b,A,o,s]),N=(0,c.useMemo)((function(){var e="";if(w&&E.length&&A.onFilter){var t=I({count:o.length});e=A.onFilter({inputValue:g,resultsMessage:t})}return e}),[o,g,w,A,E,I]),x=(0,c.useMemo)((function(){var e="";if(A.guidance){var t=r?"value":w?"menu":"input";e=A.guidance({"aria-label":M,context:t,isDisabled:n&&b(n,s),isMulti:m,isSearchable:y,tabSelectsValue:C})}return e}),[M,n,r,m,b,y,w,A,s,C]),O="".concat(L," ").concat(N," ").concat(x),D=(0,p.Y)(c.Fragment,null,(0,p.Y)("span",{id:"aria-selection"},T),(0,p.Y)("span",{id:"aria-context"},O)),P="initial-input-focus"===(null==t?void 0:t.action);return(0,p.Y)(c.Fragment,null,(0,p.Y)(v,{id:u},P&&D),(0,p.Y)(v,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text"},a&&!P&&D))},y=[{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źẑżžẓẕƶȥɀⱬꝣ"}],w=new RegExp("["+y.map((function(e){return e.letters})).join("")+"]","g"),E={},I=0;I<y.length;I++)for(var C=y[I],M=0;M<C.letters.length;M++)E[C.letters[M]]=C.base;var S=function(e){return e.replace(w,(function(e){return E[e]}))},A=(0,f.A)(S),T=function(e){return e.replace(/^\s+|\s+$/g,"")},L=function(e){return"".concat(e.label," ").concat(e.value)},N=["innerRef"];function x(e){var t=e.innerRef,n=(0,g.A)(e,N),i=(0,d.r)(n,"onExited","in","enter","exit","appear");return(0,p.Y)("input",(0,r.A)({ref:t},i,{css:(0,p.AH)({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 O=["boxSizing","height","overflow","paddingRight","position"],D={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function P(e){e.preventDefault()}function k(e){e.stopPropagation()}function j(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function R(){return"ontouchstart"in window||navigator.maxTouchPoints}var _=!("undefined"==typeof window||!window.document||!window.document.createElement),F=0,z={capture:!1,passive:!1},V=function(){return document.activeElement&&document.activeElement.blur()},H={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function B(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=(0,c.useRef)(!1),s=(0,c.useRef)(!1),l=(0,c.useRef)(0),u=(0,c.useRef)(null),p=(0,c.useCallback)((function(e,t){if(null!==u.current){var l=u.current,c=l.scrollTop,d=l.scrollHeight,p=l.clientHeight,f=u.current,g=t>0,m=d-p-c,v=!1;m>t&&a.current&&(r&&r(e),a.current=!1),g&&s.current&&(o&&o(e),s.current=!1),g&&t>m?(n&&!a.current&&n(e),f.scrollTop=d,v=!0,a.current=!0):!g&&-t>c&&(i&&!s.current&&i(e),f.scrollTop=0,v=!0,s.current=!0),v&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,i,o]),f=(0,c.useCallback)((function(e){p(e,e.deltaY)}),[p]),g=(0,c.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),m=(0,c.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)}),[p]),v=(0,c.useCallback)((function(e){if(e){var t=!!d.s&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",g,t),e.addEventListener("touchmove",m,t)}}),[m,g,f]),h=(0,c.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",g,!1),e.removeEventListener("touchmove",m,!1))}),[m,g,f]);return(0,c.useEffect)((function(){if(t){var e=u.current;return v(e),function(){h(e)}}}),[t,v,h]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,c.useRef)({}),o=(0,c.useRef)(null),a=(0,c.useCallback)((function(e){if(_){var t=document.body,n=t&&t.style;if(r&&O.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&F<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(D).forEach((function(e){var t=D[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&R()&&(t.addEventListener("touchmove",P,z),e&&(e.addEventListener("touchstart",j,z),e.addEventListener("touchmove",k,z))),F+=1}}),[r]),s=(0,c.useCallback)((function(e){if(_){var t=document.body,n=t&&t.style;F=Math.max(F-1,0),r&&F<1&&O.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&R()&&(t.removeEventListener("touchmove",P,z),e&&(e.removeEventListener("touchstart",j,z),e.removeEventListener("touchmove",k,z)))}}),[r]);return(0,c.useEffect)((function(){if(t){var e=o.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){o.current=e}}({isEnabled:n});return(0,p.Y)(c.Fragment,null,n&&(0,p.Y)("div",{onClick:V,css:H}),t((function(e){i(e),o(e)})))}var Y={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},W=function(e){var t=e.name,n=e.onFocus;return(0,p.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Y,value:"",onChange:function(){}})},G={clearIndicator:d.a,container:d.b,control:d.d,dropdownIndicator:d.e,group:d.g,groupHeading:d.f,indicatorsContainer:d.i,indicatorSeparator:d.h,input:d.j,loadingIndicator:d.l,loadingMessage:d.k,menu:d.m,menuList:d.n,menuPortal:d.o,multiValue:d.p,multiValueLabel:d.q,multiValueRemove:d.t,noOptionsMessage:d.u,option:d.v,placeholder:d.w,singleValue:d.x,valueContainer:d.y},U={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}},Z={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,d.z)(),captureMenuScroll:!(0,d.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,i.A)({ignoreCase:!0,ignoreAccents:!0,stringify:L,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,s=n.trim,l=n.matchFrom,u=s?T(t):t,c=s?T(a(e)):a(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),o&&(u=A(u),c=S(c)),"start"===l?c.substr(0,u.length)===u:c.indexOf(u)>-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:!(0,d.A)(),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 K(e,t,n,r){return{type:"option",data:t,isDisabled:ee(e,t,n),isSelected:te(e,t,n),label:J(e,t),value:q(e,t),index:r}}function Q(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return K(e,n,t,r)})).filter((function(t){return X(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=K(e,n,t,r);return X(e,o)?o:void 0})).filter(d.K)}function $(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,(0,u.A)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function X(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!re(e)||!o)&&ne(e,{label:a,value:s,data:i},r)}var J=function(e,t){return e.getOptionLabel(t)},q=function(e,t){return e.getOptionValue(t)};function ee(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function te(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=q(e,t);return n.some((function(t){return q(e,t)===r}))}function ne(e,t,n){return!e.filterOption||e.filterOption(t,n)}var re=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ie=1,oe=function(e){(0,s.A)(n,e);var t=(0,l.A)(n);function n(e){var r;if((0,o.A)(this,n),(r=t.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},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,a=r.state.selectValue,s=i&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue((0,d.B)(a.filter((function(e){return r.getOptionValue(e)!==c}))),"deselect-option",e)}else{if(l)return void r.ariaOnChange((0,d.C)(e),{action:"select-option",option:e,name:o});i?r.setValue((0,d.B)([].concat((0,u.A)(a),[e])),"select-option",e):r.setValue((0,d.C)(e),"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter((function(e){return r.getOptionValue(e)!==i})),a=(0,d.D)(t,o,o[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange((0,d.D)(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),o=(0,d.D)(e,i,i[0]||null);r.onChange(o,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.E.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return J(r.props,e)},r.getOptionValue=function(e){return q(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,i=G[e](t,n);i.boxSizing="border-box";var o=r.props.styles[e];return o?o(i,t):i},r.getClassNames=function(e,t){var n,i;return null===(n=(i=r.props.classNames)[e])||void 0===n?void 0:n.call(i,t)},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return(0,d.F)(r.props)},r.buildCategorizedOptions=function(){return Q(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return $(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:(0,i.A)({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,i=t.menuIsOpen;r.focusInput(),i?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,d.G)(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-r.initialTouchX),o=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=i>5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return re(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,g=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!i)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!d||!g||p&&r.isOptionSelected(g,v))return;r.selectOption(g);break;case"Enter":if(229===e.keyCode)break;if(u){if(!g)return;if(r.isComposing)return;r.selectOption(g);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!g)return;r.selectOption(g);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++ie),r.state.selectValue=(0,d.H)(e.value),e.menuIsOpen&&r.state.selectValue.length){var a=r.buildFocusableOptions(),s=a.indexOf(r.state.selectValue[0]);r.state.focusedOption=a[s]}return r}return(0,a.A)(n,[{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&&(0,d.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,d.I)(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,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+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,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(U):(0,i.A)((0,i.A)({},U),this.props.theme):U}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=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:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:o,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 ee(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return te(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ne(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}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 e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,a=e.inputValue,s=e.tabIndex,l=e.form,u=e.menuIsOpen,p=e.required,f=this.getComponents().Input,g=this.state,m=g.inputIsHidden,v=g.ariaSelection,h=this.commonProps,b=o||this.getElementId("input"),y=(0,i.A)((0,i.A)((0,i.A)({"aria-autocomplete":"list","aria-expanded":u,"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":p,role:"combobox"},u&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==v?void 0:v.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?c.createElement(f,(0,r.A)({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:t,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:a},y)):c.createElement(x,(0,r.A)({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:d.J,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:l,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,d=this.props,p=d.controlShouldRenderValue,f=d.isDisabled,g=d.isMulti,m=d.inputValue,v=d.placeholder,h=this.state,b=h.selectValue,y=h.focusedValue,w=h.isFocused;if(!this.hasValue()||!p)return m?null:c.createElement(l,(0,r.A)({},u,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),v);if(g)return b.map((function(t,s){var l=t===y,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return c.createElement(n,(0,r.A)({},u,{components:{Container:i,Label:o,Remove:a},isFocused:l,isDisabled:f,key:d,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var E=b[0];return c.createElement(s,(0,r.A)({},u,{data:E,isDisabled:f}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,(0,r.A)({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?c.createElement(e,(0,r.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return c.createElement(n,(0,r.A)({},i,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,(0,r.A)({},t,{innerProps:o,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,i=t.GroupHeading,o=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,p=t.Option,f=this.commonProps,g=this.state.focusedOption,m=this.props,v=m.captureMenuScroll,h=m.inputValue,b=m.isLoading,y=m.loadingMessage,w=m.minMenuHeight,E=m.maxMenuHeight,I=m.menuIsOpen,C=m.menuPlacement,M=m.menuPosition,S=m.menuPortalTarget,A=m.menuShouldBlockScroll,T=m.menuShouldScrollIntoView,L=m.noOptionsMessage,N=m.onMenuScrollToTop,x=m.onMenuScrollToBottom;if(!I)return null;var O,D=function(t,n){var i=t.type,o=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,u=t.value,d=g===o,m=a?void 0:function(){return e.onOptionHover(o)},v=a?void 0:function(){return e.selectOption(o)},h="".concat(e.getElementId("option"),"-").concat(n),b={id:h,onClick:v,onMouseMove:m,onMouseOver:m,tabIndex:-1};return c.createElement(p,(0,r.A)({},f,{innerProps:b,data:o,isDisabled:a,isSelected:s,key:h,label:l,type:i,value:u,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())O=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return c.createElement(n,(0,r.A)({},f,{key:l,data:o,options:a,Heading:i,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return D(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return D(t,"".concat(t.index))}));else if(b){var P=y({inputValue:h});if(null===P)return null;O=c.createElement(l,f,P)}else{var k=L({inputValue:h});if(null===k)return null;O=c.createElement(u,f,k)}var j={minMenuHeight:w,maxMenuHeight:E,menuPlacement:C,menuPosition:M,menuShouldScrollIntoView:T},R=c.createElement(d.M,(0,r.A)({},f,j),(function(t){var n=t.ref,i=t.placerProps,s=i.placement,l=i.maxHeight;return c.createElement(o,(0,r.A)({},f,j,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:b,placement:s}),c.createElement(B,{captureEnabled:v,onTopArrive:N,onBottomArrive:x,lockEnabled:A},(function(t){return c.createElement(a,(0,r.A)({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:b,maxHeight:l,focusedOption:g}),O)})))}));return S||"fixed"===M?c.createElement(s,(0,r.A)({},f,{appendTo:S,controlElement:this.controlRef,menuPlacement:C,menuPosition:M}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return c.createElement(W,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return c.createElement("input",{name:o,type:"hidden",value:l})}var u=s.length>0?s.map((function(t,n){return c.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})})):c.createElement("input",{name:o,type:"hidden",value:""});return c.createElement("div",null,u)}var d=s[0]?this.getOptionValue(s[0]):"";return c.createElement("input",{name:o,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,o=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return c.createElement(b,(0,r.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:i,focusedValue:o,isFocused:a,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,o=e.ValueContainer,a=this.props,s=a.className,l=a.id,u=a.isDisabled,d=a.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return c.createElement(i,(0,r.A)({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:p}),this.renderLiveRegion(),c.createElement(t,(0,r.A)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:p,menuIsOpen:d}),c.createElement(o,(0,r.A)({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),c.createElement(n,(0,r.A)({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,u=e.options,c=e.value,p=e.menuIsOpen,f=e.inputValue,g=e.isMulti,m=(0,d.H)(c),v={};if(n&&(c!==n.value||u!==n.options||p!==n.menuIsOpen||f!==n.inputValue)){var h=p?function(e,t){return $(Q(e,t))}(e,m):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,h);v={selectValue:m,focusedOption:y,focusedValue:b,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},E=a,I=s&&l;return s&&!I&&(E={value:(0,d.D)(g,m,m[0]||null),options:m,action:"initial-input-focus"},I=!l),"initial-input-focus"===(null==a?void 0:a.action)&&(E=null),(0,i.A)((0,i.A)((0,i.A)({},v),w),{},{prevProps:e,ariaSelection:E,prevWasFocused:I})}}]),n}(c.Component);oe.defaultProps=Z},46815:(e,t,n)=>{"use strict";n.d(t,{A:()=>L,B:()=>R,C:()=>j,D:()=>k,E:()=>b,F:()=>Ne,G:()=>I,H:()=>y,I:()=>A,J:()=>v,K:()=>P,M:()=>W,a:()=>se,b:()=>$,d:()=>pe,e:()=>ae,f:()=>me,g:()=>ge,h:()=>le,i:()=>J,j:()=>he,k:()=>K,l:()=>ce,m:()=>B,n:()=>G,o:()=>Q,p:()=>Ee,q:()=>Ie,r:()=>_,s:()=>D,t:()=>Ce,u:()=>Z,v:()=>Se,w:()=>Ae,x:()=>Te,y:()=>X,z:()=>T});var r=n(89379),i=n(58168),o=n(17437),a=n(3453),s=n(80045),l=n(82284),u=n(57528),c=n(64467),d=n(51609),p=n(75795),f=n(18491),g=n(27003),m=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],v=function(){};function h(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function b(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(h(e,a)));return o.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var y=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,l.A)(e)&&null!==e?[e]:[];var t},w=function(e){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;var t=(0,s.A)(e,m);return(0,r.A)({},t)},E=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function I(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function C(e){return I(e)?window.pageYOffset:e.scrollTop}function M(e,t){I(e)?window.scrollTo(0,t):e.scrollTop=t}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,i=C(e),o=t-i,a=0;!function t(){var s,l=o*((s=(s=a+=10)/n-1)*s*s+1)+i;M(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function A(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?M(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&M(e,Math.max(t.offsetTop-i,0))}function T(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function L(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var N=!1,x={get passive(){return N=!0}},O="undefined"!=typeof window?window:{};O.addEventListener&&O.removeEventListener&&(O.addEventListener("p",v,x),O.removeEventListener("p",v,!1));var D=N;function P(e){return null!=e}function k(e,t,n){return e?t:n}function j(e){return e}function R(e){return e}var _=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter((function(e){var t=(0,a.A)(e,1)[0];return!n.includes(t)})).reduce((function(e,t){var n=(0,a.A)(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})},F=["children","innerProps"],z=["children","innerProps"];var V,H=function(e){return"auto"===e?"bottom":e},B=function(e,t){var n,i=e.placement,o=e.theme,a=o.borderRadius,s=o.spacing,l=o.colors;return(0,r.A)((n={label:"menu"},(0,c.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(i),"100%"),(0,c.A)(n,"position","absolute"),(0,c.A)(n,"width","100%"),(0,c.A)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},Y=(0,d.createContext)(null),W=function(e){var t=e.children,n=e.minMenuHeight,i=e.maxMenuHeight,o=e.menuPlacement,s=e.menuPosition,l=e.menuShouldScrollIntoView,u=e.theme,c=((0,d.useContext)(Y)||{}).setPortalPlacement,p=(0,d.useRef)(null),f=(0,d.useState)(i),m=(0,a.A)(f,2),v=m[0],h=m[1],b=(0,d.useState)(null),y=(0,a.A)(b,2),w=y[0],E=y[1],A=u.spacing.controlHeight;return(0,g.A)((function(){var e=p.current;if(e){var t="fixed"===s,r=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;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||I(c=l)?window.innerHeight:c.clientHeight,b=C(l),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),E=v-w,A=h-m,T=E+b,L=d-b-m,N=f-h+b+y,x=b+m-w,O=160;switch(i){case"auto":case"bottom":if(A>=g)return{placement:"bottom",maxHeight:t};if(L>=g&&!a)return o&&S(l,N,O),{placement:"bottom",maxHeight:t};if(!a&&L>=r||a&&A>=r)return o&&S(l,N,O),{placement:"bottom",maxHeight:a?A-y:L-y};if("auto"===i||a){var D=t,P=a?E:T;return P>=r&&(D=Math.min(P-y-s,t)),{placement:"top",maxHeight:D}}if("bottom"===i)return o&&M(l,N),{placement:"bottom",maxHeight:t};break;case"top":if(E>=g)return{placement:"top",maxHeight:t};if(T>=g&&!a)return o&&S(l,x,O),{placement:"top",maxHeight:t};if(!a&&T>=r||a&&E>=r){var k=t;return(!a&&T>=r||a&&E>=r)&&(k=a?E-w:T-w),o&&S(l,x,O),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}({maxHeight:i,menuEl:e,minHeight:n,placement:o,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:A});h(r.maxHeight),E(r.placement),null==c||c(r.placement)}}),[i,o,s,l,n,c,A]),t({ref:p,placerProps:(0,r.A)((0,r.A)({},e),{},{placement:w||H(o),maxHeight:v})})},G=function(e,t){var n=e.maxHeight,i=e.theme.spacing.baseUnit;return(0,r.A)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:i,paddingTop:i})},U=function(e,t){var n=e.theme,i=n.spacing.baseUnit,o=n.colors;return(0,r.A)({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*i,"px ").concat(3*i,"px")})},Z=U,K=U,Q=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},$=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},X=function(e,t){var n=e.theme.spacing,i=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,r.A)({alignItems:"center",display:i&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},J=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},q=["size"],ee=["innerProps","isRtl","size"],te={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ne=function(e){var t=e.size,n=(0,s.A)(e,q);return(0,o.Y)("svg",(0,i.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:te},n))},re=function(e){return(0,o.Y)(ne,(0,i.A)({size:20},e),(0,o.Y)("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"}))},ie=function(e){return(0,o.Y)(ne,(0,i.A)({size:20},e),(0,o.Y)("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"}))},oe=function(e,t){var n=e.isFocused,i=e.theme,o=i.spacing.baseUnit,a=i.colors;return(0,r.A)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},ae=oe,se=oe,le=function(e,t){var n=e.isDisabled,i=e.theme,o=i.spacing.baseUnit,a=i.colors;return(0,r.A)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},ue=(0,o.i7)(V||(V=(0,u.A)(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),ce=function(e,t){var n=e.isFocused,i=e.size,o=e.theme,a=o.colors,s=o.spacing.baseUnit;return(0,r.A)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*s})},de=function(e){var t=e.delay,n=e.offset;return(0,o.Y)("span",{css:(0,o.AH)({animation:"".concat(ue," 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"},"","")})},pe=function(e,t){var n=e.isDisabled,i=e.isFocused,o=e.theme,a=o.colors,s=o.borderRadius,l=o.spacing;return(0,r.A)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:i?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},fe=["data"],ge=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},me=function(e,t){var n=e.theme,i=n.colors,o=n.spacing;return(0,r.A)({label:"group",cursor:"default",display:"block"},t?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},ve=["innerRef","isDisabled","isHidden","inputClassName"],he=function(e,t){var n=e.isDisabled,i=e.value,o=e.theme,a=o.spacing,s=o.colors;return(0,r.A)((0,r.A)({visibility:n?"hidden":"visible",transform:i?"translateZ(0)":""},ye),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},be={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ye={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,r.A)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},be)},we=function(e){return(0,r.A)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},be)},Ee=function(e,t){var n=e.theme,i=n.spacing,o=n.borderRadius,a=n.colors;return(0,r.A)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},Ie=function(e,t){var n=e.theme,i=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return(0,r.A)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Ce=function(e,t){var n=e.theme,i=n.spacing,o=n.borderRadius,a=n.colors,s=e.isFocused;return(0,r.A)({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Me=function(e){var t=e.children,n=e.innerProps;return(0,o.Y)("div",n,t)},Se=function(e,t){var n=e.isDisabled,i=e.isFocused,o=e.isSelected,a=e.theme,s=a.spacing,l=a.colors;return(0,r.A)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},Ae=function(e,t){var n=e.theme,i=n.spacing,o=n.colors;return(0,r.A)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Te=function(e,t){var n=e.isDisabled,i=e.theme,o=i.spacing,a=i.colors;return(0,r.A)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Le={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,o.Y)("div",(0,i.A)({},E(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,o.Y)(re,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.innerRef,s=e.innerProps,l=e.menuIsOpen;return(0,o.Y)("div",(0,i.A)({ref:a},E(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":l}),s),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,o.Y)("div",(0,i.A)({},E(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,o.Y)(ie,null))},DownChevron:ie,CrossIcon:re,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.getClassNames,s=e.Heading,l=e.headingProps,u=e.innerProps,c=e.label,d=e.theme,p=e.selectProps;return(0,o.Y)("div",(0,i.A)({},E(e,"group",{group:!0}),u),(0,o.Y)(s,(0,i.A)({},l,{selectProps:p,theme:d,getStyles:r,getClassNames:a,cx:n}),c),(0,o.Y)("div",null,t))},GroupHeading:function(e){var t=w(e);t.data;var n=(0,s.A)(t,fe);return(0,o.Y)("div",(0,i.A)({},E(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,o.Y)("div",(0,i.A)({},E(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,o.Y)("span",(0,i.A)({},t,E(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=w(e),a=r.innerRef,l=r.isDisabled,u=r.isHidden,c=r.inputClassName,d=(0,s.A)(r,ve);return(0,o.Y)("div",(0,i.A)({},E(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,o.Y)("input",(0,i.A)({className:t({input:!0},c),ref:a,style:we(u),disabled:l},d)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,a=e.size,l=void 0===a?4:a,u=(0,s.A)(e,ee);return(0,o.Y)("div",(0,i.A)({},E((0,r.A)((0,r.A)({},u),{},{innerProps:t,isRtl:n,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,o.Y)(de,{delay:0,offset:n}),(0,o.Y)(de,{delay:160,offset:!0}),(0,o.Y)(de,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,o.Y)("div",(0,i.A)({},E(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,a=e.isMulti;return(0,o.Y)("div",(0,i.A)({},E(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,l=e.innerProps,u=e.menuPlacement,c=e.menuPosition,m=(0,d.useRef)(null),v=(0,d.useRef)(null),h=(0,d.useState)(H(u)),b=(0,a.A)(h,2),y=b[0],w=b[1],I=(0,d.useMemo)((function(){return{setPortalPlacement:w}}),[]),C=(0,d.useState)(null),M=(0,a.A)(C,2),S=M[0],A=M[1],T=(0,d.useCallback)((function(){if(s){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}}(s),t="fixed"===c?0:window.pageYOffset,n=e[y]+t;n===(null==S?void 0:S.offset)&&e.left===(null==S?void 0:S.rect.left)&&e.width===(null==S?void 0:S.rect.width)||A({offset:n,rect:e})}}),[s,c,y,null==S?void 0:S.offset,null==S?void 0:S.rect.left,null==S?void 0:S.rect.width]);(0,g.A)((function(){T()}),[T]);var L=(0,d.useCallback)((function(){"function"==typeof v.current&&(v.current(),v.current=null),s&&m.current&&(v.current=(0,f.ll)(s,m.current,T,{elementResize:"ResizeObserver"in window}))}),[s,T]);(0,g.A)((function(){L()}),[L]);var N=(0,d.useCallback)((function(e){m.current=e,L()}),[L]);if(!t&&"fixed"!==c||!S)return null;var x=(0,o.Y)("div",(0,i.A)({ref:N},E((0,r.A)((0,r.A)({},e),{},{offset:S.offset,position:c,rect:S.rect}),"menuPortal",{"menu-portal":!0}),l),n);return(0,o.Y)(Y.Provider,{value:I},t?(0,p.createPortal)(x,t):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,a=e.innerProps,l=(0,s.A)(e,z);return(0,o.Y)("div",(0,i.A)({},E((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,a=e.innerProps,l=(0,s.A)(e,F);return(0,o.Y)("div",(0,i.A)({},E((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),n)},MultiValue:function(e){var t=e.children,n=e.components,i=e.data,a=e.innerProps,s=e.isDisabled,l=e.removeProps,u=e.selectProps,c=n.Container,d=n.Label,p=n.Remove;return(0,o.Y)(c,{data:i,innerProps:(0,r.A)((0,r.A)({},E(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:u},(0,o.Y)(d,{data:i,innerProps:(0,r.A)({},E(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),(0,o.Y)(p,{data:i,innerProps:(0,r.A)((0,r.A)({},E(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:u}))},MultiValueContainer:Me,MultiValueLabel:Me,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,o.Y)("div",(0,i.A)({role:"button"},n),t||(0,o.Y)(re,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.isSelected,s=e.innerRef,l=e.innerProps;return(0,o.Y)("div",(0,i.A)({},E(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":a}),{ref:s,"aria-disabled":n},l),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,o.Y)("div",(0,i.A)({},E(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,a=e.isRtl;return(0,o.Y)("div",(0,i.A)({},E(e,"container",{"--is-disabled":r,"--is-rtl":a}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,o.Y)("div",(0,i.A)({},E(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,a=e.hasValue;return(0,o.Y)("div",(0,i.A)({},E(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":a}),n),t)}},Ne=function(e){return(0,r.A)((0,r.A)({},Le),e.components)}},46005:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(52836),i=n(58168),o=n(51609),a=n(4596),s=(n(25815),n(75795),n(27003),(0,o.forwardRef)((function(e,t){var n=(0,r.u)(e);return o.createElement(a.S,(0,i.A)({ref:t},n))})))},52836:(e,t,n)=>{"use strict";n.d(t,{u:()=>l});var r=n(89379),i=n(3453),o=n(80045),a=n(51609),s=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function l(e){var t=e.defaultInputValue,n=void 0===t?"":t,l=e.defaultMenuIsOpen,u=void 0!==l&&l,c=e.defaultValue,d=void 0===c?null:c,p=e.inputValue,f=e.menuIsOpen,g=e.onChange,m=e.onInputChange,v=e.onMenuClose,h=e.onMenuOpen,b=e.value,y=(0,o.A)(e,s),w=(0,a.useState)(void 0!==p?p:n),E=(0,i.A)(w,2),I=E[0],C=E[1],M=(0,a.useState)(void 0!==f?f:u),S=(0,i.A)(M,2),A=S[0],T=S[1],L=(0,a.useState)(void 0!==b?b:d),N=(0,i.A)(L,2),x=N[0],O=N[1],D=(0,a.useCallback)((function(e,t){"function"==typeof g&&g(e,t),O(e)}),[g]),P=(0,a.useCallback)((function(e,t){var n;"function"==typeof m&&(n=m(e,t)),C(void 0!==n?n:e)}),[m]),k=(0,a.useCallback)((function(){"function"==typeof h&&h(),T(!0)}),[h]),j=(0,a.useCallback)((function(){"function"==typeof v&&v(),T(!1)}),[v]),R=void 0!==p?p:I,_=void 0!==f?f:A,F=void 0!==b?b:x;return(0,r.A)((0,r.A)({},y),{},{inputValue:R,menuIsOpen:_,onChange:D,onInputChange:P,onMenuClose:j,onMenuOpen:k,value:F})}},76685:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((i=e[n])===(o=t[n])||r(i)&&r(o)))return!1;var i,o;return!0}function o(e,t){void 0===t&&(t=i);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}},21020:(e,t,n)=>{"use strict";var r=n(51609),i=Symbol.for("react.element"),o=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,l={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,r)&&!s.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===l[r]&&(l[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:l,_owner:a.current}}t.jsx=l,t.jsxs=l},74848:(e,t,n)=>{"use strict";e.exports=n(21020)},27003:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(51609).useLayoutEffect},1063:(e,t,n)=>{"use strict";var r=n(51609),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s((function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,n,t]),a((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},19888:(e,t,n)=>{"use strict";e.exports=n(1063)},51609:e=>{"use strict";e.exports=window.React},75795:e=>{"use strict";e.exports=window.ReactDOM},1455:e=>{"use strict";e.exports=window.wp.apiFetch},94715:e=>{"use strict";e.exports=window.wp.blockEditor},56427:e=>{"use strict";e.exports=window.wp.components},3582:e=>{"use strict";e.exports=window.wp.coreData},86087:e=>{"use strict";e.exports=window.wp.element},27723:e=>{"use strict";e.exports=window.wp.i18n},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},64243:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(43145);function i(e){if(Array.isArray(e))return(0,r.A)(e)}},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49922);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.A)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(53954),i=n(52176),o=n(56822);function a(e){var t=(0,i.A)();return function(){var n,i=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return(0,o.A)(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(49922);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},53954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(63662);function i(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&&(0,r.A)(e,t)}},52176:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},73893:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},6986:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}n.d(t,{A:()=>r})},76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},60519:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(64467);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(98587);function i(e,t){if(null==e)return{};var n,i,o=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284),i=n(9417);function o(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.A)(e)}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(96369),i=n(6986),o=n(27800),a=n(76562);function s(e,t){return(0,r.A)(e)||(0,i.A)(e,t)||(0,o.A)(e,t)||(0,a.A)()}},57528:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},89394:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(64243),i=n(73893),o=n(27800),a=n(60519);function s(e){return(0,r.A)(e)||(0,i.A)(e)||(0,o.A)(e)||(0,a.A)()}},92327:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284);function i(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284),i=n(92327);function o(e){var t=(0,i.A)(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{A:()=>r})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(43145);function i(e,t){if(e){if("string"==typeof e)return(0,r.A)(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)?(0,r.A)(e,t):void 0}}},18491:(e,t,n)=>{"use strict";n.d(t,{ll:()=>c});var r=n(97193),i=n(42956);function o(e){return(0,i.vq)(e)?e:e.contextElement}function a(e){const t=o(e);if(!(0,i.sb)(t))return(0,r.Jx)(1);const n=t.getBoundingClientRect(),{width:a,height:s,$:l}=function(e){const t=(0,i.L9)(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=(0,i.sb)(e),s=a?e.offsetWidth:n,l=a?e.offsetHeight:o,u=(0,r.LI)(n)!==s||(0,r.LI)(o)!==l;return u&&(n=s,o=l),{width:n,height:o,$:u}}(t);let u=(l?(0,r.LI)(n.width):n.width)/a,c=(l?(0,r.LI)(n.height):n.height)/s;return u&&Number.isFinite(u)||(u=1),c&&Number.isFinite(c)||(c=1),{x:u,y:c}}const s=(0,r.Jx)(0);function l(e){const t=(0,i.zk)(e);return(0,i.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:s}function u(e,t,n,s){void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect(),c=o(e);let d=(0,r.Jx)(1);t&&(s?(0,i.vq)(s)&&(d=a(s)):d=a(e));const p=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,i.zk)(e))&&t}(c,n,s)?l(c):(0,r.Jx)(0);let f=(u.left+p.x)/d.x,g=(u.top+p.y)/d.y,m=u.width/d.x,v=u.height/d.y;if(c){const e=(0,i.zk)(c),t=s&&(0,i.vq)(s)?(0,i.zk)(s):s;let n=e.frameElement;for(;n&&s&&t!==e;){const e=a(n),t=n.getBoundingClientRect(),r=(0,i.L9)(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;f*=e.x,g*=e.y,m*=e.x,v*=e.y,f+=o,g+=s,n=(0,i.zk)(n).frameElement}}return(0,r.B1)({width:m,height:v,x:f,y:g})}function c(e,t,n,a){void 0===a&&(a={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:p=!1}=a,f=o(e),g=s||l?[...f?(0,i.v9)(f):[],...(0,i.v9)(t)]:[];g.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));const m=f&&d?function(e,t){let n,o=null;const a=(0,i.ep)(e);function s(){clearTimeout(n),o&&o.disconnect(),o=null}return function i(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),s();const{left:c,top:d,width:p,height:f}=e.getBoundingClientRect();if(l||t(),!p||!f)return;const g={rootMargin:-(0,r.RI)(d)+"px "+-(0,r.RI)(a.clientWidth-(c+p))+"px "+-(0,r.RI)(a.clientHeight-(d+f))+"px "+-(0,r.RI)(c)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,u))||1};let m=!0;function v(e){const t=e[0].intersectionRatio;if(t!==u){if(!m)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}m=!1}try{o=new IntersectionObserver(v,{...g,root:a.ownerDocument})}catch(e){o=new IntersectionObserver(v,g)}o.observe(e)}(!0),s}(f,n):null;let v,h=-1,b=null;c&&(b=new ResizeObserver((e=>{let[r]=e;r&&r.target===f&&b&&(b.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{b&&b.observe(t)}))),n()})),f&&!p&&b.observe(f),b.observe(t));let y=p?u(e):null;return p&&function t(){const r=u(e);!y||r.x===y.x&&r.y===y.y&&r.width===y.width&&r.height===y.height||n(),y=r,v=requestAnimationFrame(t)}(),n(),()=>{g.forEach((e=>{s&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),m&&m(),b&&b.disconnect(),b=null,p&&cancelAnimationFrame(v)}}i.ep,i.vq},97193:(e,t,n)=>{"use strict";n.d(t,{B1:()=>l,Jx:()=>s,LI:()=>o,RI:()=>a,T9:()=>i,jk:()=>r});const r=Math.min,i=Math.max,o=Math.round,a=Math.floor,s=e=>({x:e,y:e});function l(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},42956:(e,t,n)=>{"use strict";function r(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return e instanceof Node||e instanceof i(e).Node}function s(e){return e instanceof Element||e instanceof i(e).Element}function l(e){return e instanceof HTMLElement||e instanceof i(e).HTMLElement}function u(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function c(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function d(e){return["table","td","th"].includes(r(e))}function p(e){const t=g(),n=v(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function f(e){let t=b(e);for(;l(t)&&!m(t);){if(p(t))return t;t=b(t)}return null}function g(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function m(e){return["html","body","#document"].includes(r(e))}function v(e){return i(e).getComputedStyle(e)}function h(e){return s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function b(e){if("html"===r(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||o(e);return u(t)?t.host:t}function y(e){const t=b(e);return m(t)?e.ownerDocument?e.ownerDocument.body:e.body:l(t)&&c(t)?t:y(t)}function w(e,t){var n;void 0===t&&(t=[]);const r=y(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=i(r);return o?t.concat(a,a.visualViewport||[],c(r)?r:[]):t.concat(r,w(r))}n.d(t,{$4:()=>b,CP:()=>h,L9:()=>v,Lv:()=>d,Tc:()=>g,ZU:()=>c,ep:()=>o,eu:()=>m,gJ:()=>f,mq:()=>r,sQ:()=>p,sb:()=>l,v9:()=>w,vq:()=>s,zk:()=>i})},24534:(e,t,n)=>{"use strict";n.d(t,{IO:()=>d,LU:()=>l,MS:()=>r,Sv:()=>c,XZ:()=>s,YK:()=>a,j:()=>o,vd:()=>i,yE:()=>u});var r="-ms-",i="-moz-",o="-webkit-",a="comm",s="rule",l="decl",u="@import",c="@keyframes",d="@layer"},49503:(e,t,n)=>{"use strict";n.d(t,{MY:()=>o,r1:()=>i});var r=n(19735);function i(e){var t=(0,r.FK)(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function o(e){return function(t){t.root||(t=t.return)&&e(t)}}},73716:(e,t,n)=>{"use strict";n.d(t,{wE:()=>a});var r=n(24534),i=n(19735),o=n(40390);function a(e){return(0,o.VF)(s("",null,null,null,[""],e=(0,o.c4)(e),0,[0],e))}function s(e,t,n,r,a,d,p,f,g){for(var m=0,v=0,h=p,b=0,y=0,w=0,E=1,I=1,C=1,M=0,S="",A=a,T=d,L=r,N=S;I;)switch(w=M,M=(0,o.K2)()){case 40:if(108!=w&&58==(0,i.wN)(N,h-1)){-1!=(0,i.K5)(N+=(0,i.HC)((0,o.Tb)(M),"&","&\f"),"&\f")&&(C=-1);break}case 34:case 39:case 91:N+=(0,o.Tb)(M);break;case 9:case 10:case 13:case 32:N+=(0,o.mw)(w);break;case 92:N+=(0,o.Nc)((0,o.OW)()-1,7);continue;case 47:switch((0,o.se)()){case 42:case 47:(0,i.BC)(u((0,o.nf)((0,o.K2)(),(0,o.OW)()),t,n),g);break;default:N+="/"}break;case 123*E:f[m++]=(0,i.b2)(N)*C;case 125*E:case 59:case 0:switch(M){case 0:case 125:I=0;case 59+v:-1==C&&(N=(0,i.HC)(N,/\f/g,"")),y>0&&(0,i.b2)(N)-h&&(0,i.BC)(y>32?c(N+";",r,n,h-1):c((0,i.HC)(N," ","")+";",r,n,h-2),g);break;case 59:N+=";";default:if((0,i.BC)(L=l(N,t,n,m,v,a,f,S,A=[],T=[],h),d),123===M)if(0===v)s(N,t,L,L,A,d,h,f,T);else switch(99===b&&110===(0,i.wN)(N,3)?100:b){case 100:case 108:case 109:case 115:s(e,L,L,r&&(0,i.BC)(l(e,L,L,0,0,a,f,S,a,A=[],h),T),a,T,h,f,r?A:T);break;default:s(N,L,L,L,[""],T,0,f,T)}}m=v=y=0,E=C=1,S=N="",h=p;break;case 58:h=1+(0,i.b2)(N),y=w;default:if(E<1)if(123==M)--E;else if(125==M&&0==E++&&125==(0,o.YL)())continue;switch(N+=(0,i.HT)(M),M*E){case 38:C=v>0?1:(N+="\f",-1);break;case 44:f[m++]=((0,i.b2)(N)-1)*C,C=1;break;case 64:45===(0,o.se)()&&(N+=(0,o.Tb)((0,o.K2)())),b=(0,o.se)(),v=h=(0,i.b2)(S=N+=(0,o.Cv)((0,o.OW)())),M++;break;case 45:45===w&&2==(0,i.b2)(N)&&(E=0)}}return d}function l(e,t,n,a,s,l,u,c,d,p,f){for(var g=s-1,m=0===s?l:[""],v=(0,i.FK)(m),h=0,b=0,y=0;h<a;++h)for(var w=0,E=(0,i.c1)(e,g+1,g=(0,i.tn)(b=u[h])),I=e;w<v;++w)(I=(0,i.Bq)(b>0?m[w]+" "+E:(0,i.HC)(E,/&\f/g,m[w])))&&(d[y++]=I);return(0,o.rH)(e,t,n,0===s?r.XZ:c,d,p,f)}function u(e,t,n){return(0,o.rH)(e,t,n,r.YK,(0,i.HT)((0,o.Tp)()),(0,i.c1)(e,2,-2),0)}function c(e,t,n,a){return(0,o.rH)(e,t,n,r.LU,(0,i.c1)(e,0,a),(0,i.c1)(e,a+1,-1),a)}},50483:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,l:()=>o});var r=n(24534),i=n(19735);function o(e,t){for(var n="",r=(0,i.FK)(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function a(e,t,n,a){switch(e.type){case r.IO:if(e.children.length)break;case r.yE:case r.LU:return e.return=e.return||e.value;case r.YK:return"";case r.Sv:return e.return=e.value+"{"+o(e.children,a)+"}";case r.XZ:e.value=e.props.join(",")}return(0,i.b2)(n=o(e.children,a))?e.return=e.value+"{"+n+"}":""}},40390:(e,t,n)=>{"use strict";n.d(t,{C:()=>d,Cv:()=>A,G1:()=>s,K2:()=>g,Nc:()=>C,OW:()=>v,Sh:()=>b,Tb:()=>E,Tp:()=>p,VF:()=>w,YL:()=>f,c4:()=>y,di:()=>h,mw:()=>I,nf:()=>S,rH:()=>c,se:()=>m});var r=n(19735),i=1,o=1,a=0,s=0,l=0,u="";function c(e,t,n,r,a,s,l){return{value:e,root:t,parent:n,type:r,props:a,children:s,line:i,column:o,length:l,return:""}}function d(e,t){return(0,r.kp)(c("",null,null,"",null,null,0),e,{length:-e.length},t)}function p(){return l}function f(){return l=s>0?(0,r.wN)(u,--s):0,o--,10===l&&(o=1,i--),l}function g(){return l=s<a?(0,r.wN)(u,s++):0,o++,10===l&&(o=1,i++),l}function m(){return(0,r.wN)(u,s)}function v(){return s}function h(e,t){return(0,r.c1)(u,e,t)}function b(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 y(e){return i=o=1,a=(0,r.b2)(u=e),s=0,[]}function w(e){return u="",e}function E(e){return(0,r.Bq)(h(s-1,M(91===e?e+2:40===e?e+1:e)))}function I(e){for(;(l=m())&&l<33;)g();return b(e)>2||b(l)>3?"":" "}function C(e,t){for(;--t&&g()&&!(l<48||l>102||l>57&&l<65||l>70&&l<97););return h(e,v()+(t<6&&32==m()&&32==g()))}function M(e){for(;g();)switch(l){case e:return s;case 34:case 39:34!==e&&39!==e&&M(l);break;case 40:41===e&&M(e);break;case 92:g()}return s}function S(e,t){for(;g()&&e+l!==57&&(e+l!==84||47!==m()););return"/*"+h(t,s-1)+"*"+(0,r.HT)(47===e?e:g())}function A(e){for(;!b(m());)g();return h(e,s)}},19735:(e,t,n)=>{"use strict";n.d(t,{BC:()=>m,Bq:()=>s,FK:()=>g,HC:()=>u,HT:()=>i,K5:()=>c,YW:()=>l,b2:()=>f,c1:()=>p,kg:()=>v,kp:()=>o,tW:()=>a,tn:()=>r,wN:()=>d});var r=Math.abs,i=String.fromCharCode,o=Object.assign;function a(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}function s(e){return e.trim()}function l(e,t){return(e=t.exec(e))?e[0]:e}function u(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function p(e,t,n){return e.slice(t,n)}function f(e){return e.length}function g(e){return e.length}function m(e,t){return t.push(e),e}function v(e,t){return e.map(t).join("")}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.blocks;var t=n(78444),r=n(70669),i=n(54227);[t.A,r.A,i.A].forEach((t=>{(0,e.getBlockType)(t.schema.name)||(0,e.registerBlockType)(t.schema,t.settings)}))})()})();