OwlCyberSecurity - MANAGER
Edit File: adminBlocks.js
(()=>{var e,t={2507:(e,t,n)=>{"use strict";var o=n(1609),r=n.n(o);const i=window.wp.i18n,a=window.wp.blocks;var s=n(5556),l=n.n(s);const u={white:"#fff",grey:"#555d66",give:"#66bb6a"},c=({color:e="give",size:t="24px",...n})=>(0,o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 157.2 157.2",width:t,height:t,...n},(0,o.createElement)("circle",{fill:u[e],cx:"78.6",cy:"78.6",r:"78.6"}),(0,o.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"}));c.propTypes={color:l().oneOf(Object.keys(u)),size:l().oneOfType([l().number,l().string])};const d=c,p=window.wp.blockEditor,f=window.wp.serverSideRender;var m=n.n(f);const g=window.wp.data;function h(e){return h="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},h(e)}function v(e){var t=function(e){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}function b(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function E(e,t){if(e){if("string"==typeof e)return I(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)?I(e,t):void 0}}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var T=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},S.apply(null,arguments)}function N(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,v(o.key),o)}}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O=function(){return!!e})()}function P(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var A=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}(),D=Math.abs,k=String.fromCharCode,_=Object.assign;function j(e){return e.trim()}function R(e,t,n){return e.replace(t,n)}function F(e,t){return e.indexOf(t)}function z(e,t){return 0|e.charCodeAt(t)}function V(e,t,n){return e.slice(t,n)}function B(e){return e.length}function H(e){return e.length}function W(e,t){return t.push(e),e}var G=1,Y=1,Z=0,U=0,Q=0,$="";function X(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:G,column:Y,length:a,return:""}}function K(e,t){return _(X("",null,null,"",null,null,0),e,{length:-e.length},t)}function J(){return Q=U>0?z($,--U):0,Y--,10===Q&&(Y=1,G--),Q}function q(){return Q=U<Z?z($,U++):0,Y++,10===Q&&(Y=1,G++),Q}function ee(){return z($,U)}function te(){return U}function ne(e,t){return V($,e,t)}function oe(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 re(e){return G=Y=1,Z=B($=e),U=0,[]}function ie(e){return $="",e}function ae(e){return j(ne(U-1,ue(91===e?e+2:40===e?e+1:e)))}function se(e){for(;(Q=ee())&&Q<33;)q();return oe(e)>2||oe(Q)>3?"":" "}function le(e,t){for(;--t&&q()&&!(Q<48||Q>102||Q>57&&Q<65||Q>70&&Q<97););return ne(e,te()+(t<6&&32==ee()&&32==q()))}function ue(e){for(;q();)switch(Q){case e:return U;case 34:case 39:34!==e&&39!==e&&ue(Q);break;case 40:41===e&&ue(e);break;case 92:q()}return U}function ce(e,t){for(;q()&&e+Q!==57&&(e+Q!==84||47!==ee()););return"/*"+ne(t,U-1)+"*"+k(47===e?e:q())}function de(e){for(;!oe(ee());)q();return ne(e,U)}var pe="-ms-",fe="-moz-",me="-webkit-",ge="comm",he="rule",ve="decl",be="@keyframes";function ye(e,t){for(var n="",o=H(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function we(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ve:return e.return=e.return||e.value;case ge:return"";case be:return e.return=e.value+"{"+ye(e.children,o)+"}";case he:e.value=e.props.join(",")}return B(n=ye(e.children,o))?e.return=e.value+"{"+n+"}":""}function Ie(e){return ie(Ee("",null,null,null,[""],e=re(e),0,[0],e))}function Ee(e,t,n,o,r,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,m=0,g=1,h=1,v=1,b=0,y="",w=r,I=i,E=o,C=y;h;)switch(m=b,b=q()){case 40:if(108!=m&&58==z(C,d-1)){-1!=F(C+=R(ae(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=ae(b);break;case 9:case 10:case 13:case 32:C+=se(m);break;case 92:C+=le(te()-1,7);continue;case 47:switch(ee()){case 42:case 47:W(Me(ce(q(),te()),t,n),l);break;default:C+="/"}break;case 123*g:s[u++]=B(C)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+c:-1==v&&(C=R(C,/\f/g,"")),f>0&&B(C)-d&&W(f>32?Te(C+";",o,n,d-1):Te(R(C," ","")+";",o,n,d-2),l);break;case 59:C+=";";default:if(W(E=Ce(C,t,n,u,c,r,s,y,w=[],I=[],d),i),123===b)if(0===c)Ee(C,t,E,E,w,i,d,s,I);else switch(99===p&&110===z(C,3)?100:p){case 100:case 108:case 109:case 115:Ee(e,E,E,o&&W(Ce(e,E,E,0,0,r,s,y,r,w=[],d),I),r,I,d,s,o?w:I);break;default:Ee(C,E,E,E,[""],I,0,s,I)}}u=c=f=0,g=v=1,y=C="",d=a;break;case 58:d=1+B(C),f=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==J())continue;switch(C+=k(b),b*g){case 38:v=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(B(C)-1)*v,v=1;break;case 64:45===ee()&&(C+=ae(q())),p=ee(),c=d=B(y=C+=de(te())),b++;break;case 45:45===m&&2==B(C)&&(g=0)}}return i}function Ce(e,t,n,o,r,i,a,s,l,u,c){for(var d=r-1,p=0===r?i:[""],f=H(p),m=0,g=0,h=0;m<o;++m)for(var v=0,b=V(e,d+1,d=D(g=a[m])),y=e;v<f;++v)(y=j(g>0?p[v]+" "+b:R(b,/&\f/g,p[v])))&&(l[h++]=y);return X(e,t,n,0===r?he:s,l,u,c)}function Me(e,t,n){return X(e,t,n,ge,k(Q),V(e,2,-2),0)}function Te(e,t,n,o){return X(e,t,n,ve,V(e,0,o),V(e,o+1,-1),o)}var Se=function(e,t,n){for(var o=0,r=0;o=r,r=ee(),38===o&&12===r&&(t[n]=1),!oe(r);)q();return ne(e,U)},Ne=new WeakMap,xe=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ne.get(n))&&!o){Ne.set(e,!0);for(var r=[],i=function(e,t){return ie(function(e,t){var n=-1,o=44;do{switch(oe(o)){case 0:38===o&&12===ee()&&(t[n]=1),e[n]+=Se(U-1,t,n);break;case 2:e[n]+=ae(o);break;case 4:if(44===o){e[++n]=58===ee()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=k(o)}}while(o=q());return e}(re(e),t))}(t,r),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=r[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},Le=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Oe(e,t){switch(function(e,t){return 45^z(e,0)?(((t<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3):0}(e,t)){case 5103:return me+"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 me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return me+e+fe+e+pe+e+e;case 6828:case 4268:return me+e+pe+e+e;case 6165:return me+e+pe+"flex-"+e+e;case 5187:return me+e+R(e,/(\w+).+(:[^]+)/,me+"box-$1$2"+pe+"flex-$1$2")+e;case 5443:return me+e+pe+"flex-item-"+R(e,/flex-|-self/,"")+e;case 4675:return me+e+pe+"flex-line-pack"+R(e,/align-content|flex-|-self/,"")+e;case 5548:return me+e+pe+R(e,"shrink","negative")+e;case 5292:return me+e+pe+R(e,"basis","preferred-size")+e;case 6060:return me+"box-"+R(e,"-grow","")+me+e+pe+R(e,"grow","positive")+e;case 4554:return me+R(e,/([^-])(transform)/g,"$1"+me+"$2")+e;case 6187:return R(R(R(e,/(zoom-|grab)/,me+"$1"),/(image-set)/,me+"$1"),e,"")+e;case 5495:case 3959:return R(e,/(image-set\([^]*)/,me+"$1$`$1");case 4968:return R(R(e,/(.+:)(flex-)?(.*)/,me+"box-pack:$3"+pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+me+e+e;case 4095:case 3583:case 4068:case 2532:return R(e,/(.+)-inline(.+)/,me+"$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(B(e)-1-t>6)switch(z(e,t+1)){case 109:if(45!==z(e,t+4))break;case 102:return R(e,/(.+:)(.+)-([^]+)/,"$1"+me+"$2-$3$1"+fe+(108==z(e,t+3)?"$3":"$2-$3"))+e;case 115:return~F(e,"stretch")?Oe(R(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==z(e,t+1))break;case 6444:switch(z(e,B(e)-3-(~F(e,"!important")&&10))){case 107:return R(e,":",":"+me)+e;case 101:return R(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+me+(45===z(e,14)?"inline-":"")+"box$3$1"+me+"$2$3$1"+pe+"$2box$3")+e}break;case 5936:switch(z(e,t+11)){case 114:return me+e+pe+R(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return me+e+pe+R(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return me+e+pe+R(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return me+e+pe+e+e}return e}var Pe=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case ve:e.return=Oe(e.value,e.length);break;case be:return ye([K(e,{value:R(e.value,"@","@"+me)})],o);case he:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ye([K(e,{props:[R(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return ye([K(e,{props:[R(t,/:(plac\w+)/,":"+me+"input-$1")]}),K(e,{props:[R(t,/:(plac\w+)/,":-moz-$1")]}),K(e,{props:[R(t,/:(plac\w+)/,pe+"input-$1")]})],o)}return""}))}}],Ae=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,r,i=e.stylisPlugins||Pe,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,u,c,d,p=[we,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(u=[xe,Le].concat(i,p),c=H(u),function(e,t,n,o){for(var r="",i=0;i<c;i++)r+=u[i](e,t,n,o)||"";return r});r=function(e,t,n,o){l=n,ye(Ie(e?e+"{"+t.styles+"}":t.styles),f),o&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new A({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:r};return m.sheet.hydrate(s),m},De=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},ke={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function _e(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var je=/[A-Z]|^ms/g,Re=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fe=function(e){return 45===e.charCodeAt(1)},ze=function(e){return null!=e&&"boolean"!=typeof e},Ve=_e((function(e){return Fe(e)?e:e.replace(je,"-$&").toLowerCase()})),Be=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Re,(function(e,t,n){return We={name:t,styles:n,next:We},t}))}return 1===ke[e]||Fe(e)||"number"!=typeof t||0===t?t:t+"px"};function He(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 We={name:n.name,styles:n.styles,next:We},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)We={name:o.name,styles:o.styles,next:We},o=o.next;return n.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=He(e,t,n[r])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?o+=i+"{"+t[a]+"}":ze(a)&&(o+=Ve(i)+":"+Be(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=He(e,t,a);switch(i){case"animation":case"animationName":o+=Ve(i)+":"+s+";";break;default:o+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)ze(a[l])&&(o+=Ve(i)+":"+Be(i,a[l])+";")}return o}(e,t,n);case"function":if(void 0!==e){var r=We,i=n(e);return We=r,He(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var We,Ge=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ye=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";We=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,r+=He(n,t,i)):r+=i[0];for(var a=1;a<e.length;a++)r+=He(n,t,e[a]),o&&(r+=i[a]);Ge.lastIndex=0;for(var s,l="";null!==(s=Ge.exec(r));)l+="-"+s[1];var u=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+l;return{name:u,styles:r,next:We}},Ze={}.hasOwnProperty,Ue=(0,o.createContext)("undefined"!=typeof HTMLElement?Ae({key:"css"}):null);Ue.Provider;var Qe=function(e){return(0,o.forwardRef)((function(t,n){var r=(0,o.useContext)(Ue);return e(t,r,n)}))},$e=(0,o.createContext)({}),Xe=o.useInsertionEffect?o.useInsertionEffect:function(e){e()},Ke="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Je=function(e){var t,n=e.cache,o=e.serialized,r=e.isStringTag;return De(n,o,r),t=function(){return function(e,t,n){De(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(n,o,r)},Xe(t),null},qe=Qe((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Ke],a=[r],s="";"string"==typeof e.className?s=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=Ye(a,void 0,(0,o.useContext)($e));s+=t.key+"-"+l.name;var u={};for(var c in e)Ze.call(e,c)&&"css"!==c&&c!==Ke&&(u[c]=e[c]);return u.ref=n,u.className=s,(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Je,{cache:t,serialized:l,isStringTag:"string"==typeof i}),(0,o.createElement)(i,u))}));n(4146);var et=function(e,t){var n=arguments;if(null==t||!Ze.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=qe,i[1]=function(e,t){var n={};for(var o in t)Ze.call(t,o)&&(n[o]=t[o]);return n[Ke]=e,n}(e,t);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)};function tt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ye(t)}o.useInsertionEffect?o.useInsertionEffect:o.useLayoutEffect;const nt=window.ReactDOM,ot=Math.min,rt=Math.max,it=Math.round,at=Math.floor,st=e=>({x:e,y:e});function lt(e){return dt(e)?(e.nodeName||"").toLowerCase():"#document"}function ut(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ct(e){var t;return null==(t=(dt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function dt(e){return e instanceof Node||e instanceof ut(e).Node}function pt(e){return e instanceof Element||e instanceof ut(e).Element}function ft(e){return e instanceof HTMLElement||e instanceof ut(e).HTMLElement}function mt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ut(e).ShadowRoot)}function gt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function ht(e){return ut(e).getComputedStyle(e)}function vt(e){const t=function(e){if("html"===lt(e))return e;const t=e.assignedSlot||e.parentNode||mt(e)&&e.host||ct(e);return mt(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(lt(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:ft(t)&>(t)?t:vt(t)}function bt(e,t){var n;void 0===t&&(t=[]);const o=vt(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=ut(o);return r?t.concat(i,i.visualViewport||[],gt(o)?o:[]):t.concat(o,bt(o))}function yt(e){return pt(e)?e:e.contextElement}function wt(e){const t=yt(e);if(!ft(t))return st(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=function(e){const t=ht(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ft(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=it(n)!==i||it(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}(t);let a=(i?it(n.width):n.width)/o,s=(i?it(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const It=st(0);function Et(e){const t=ut(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:It}function Ct(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=yt(e);let a=st(1);t&&(o?pt(o)&&(a=wt(o)):a=wt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ut(e))&&t}(i,n,o)?Et(i):st(0);let l=(r.left+s.x)/a.x,u=(r.top+s.y)/a.y,c=r.width/a.x,d=r.height/a.y;if(i){const e=ut(i),t=o&&pt(o)?ut(o):o;let n=e.frameElement;for(;n&&o&&t!==e;){const e=wt(n),t=n.getBoundingClientRect(),o=ht(n),r=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=r,u+=i,n=ut(n).frameElement}}return p={width:c,height:d,x:l,y:u},{...p,top:p.y,left:p.x,right:p.x+p.width,bottom:p.y+p.height};var p}const Mt=o.useLayoutEffect;var Tt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],St=function(){};function Nt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function xt(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Nt(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Lt=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===h(e)&&null!==e?[e]:[];var t},Ot=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,w({},M(e,Tt))},Pt=function(e,t,n){var o=e.cx,r=e.getStyles,i=e.getClassNames,a=e.className;return{css:r(t,e),className:o(null!=n?n:{},i(t,e),a)}};function At(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Dt(e){return At(e)?window.pageYOffset:e.scrollTop}function kt(e,t){At(e)?window.scrollTo(0,t):e.scrollTop=t}function _t(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:St,r=Dt(e),i=t-r,a=0;!function t(){var s,l=i*((s=(s=a+=10)/n-1)*s*s+1)+r;kt(e,l),a<n?window.requestAnimationFrame(t):o(e)}()}function jt(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?kt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&kt(e,Math.max(t.offsetTop-r,0))}function Rt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Ft=!1,zt={get passive(){return Ft=!0}},Vt="undefined"!=typeof window?window:{};Vt.addEventListener&&Vt.removeEventListener&&(Vt.addEventListener("p",St,zt),Vt.removeEventListener("p",St,!1));var Bt=Ft;function Ht(e){return null!=e}function Wt(e,t,n){return e?t:n}var Gt=["children","innerProps"],Yt=["children","innerProps"];var Zt,Ut,Qt,$t=function(e){return"auto"===e?"bottom":e},Xt=(0,o.createContext)(null),Kt=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,u=((0,o.useContext)(Xt)||{}).setPortalPlacement,c=(0,o.useRef)(null),d=C((0,o.useState)(r),2),p=d[0],f=d[1],m=C((0,o.useState)(null),2),g=m[0],h=m[1],v=l.spacing.controlHeight;return Mt((function(){var e=c.current;if(e){var t="fixed"===a,o=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,m=p.height,g=p.top,h=n.offsetParent.getBoundingClientRect().top,v=a||At(c=l)?window.innerHeight:c.clientHeight,b=Dt(l),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),I=h-w,E=v-g,C=I+b,M=d-b-g,T=f-v+b+y,S=b+g-w,N=160;switch(r){case"auto":case"bottom":if(E>=m)return{placement:"bottom",maxHeight:t};if(M>=m&&!a)return i&&_t(l,T,N),{placement:"bottom",maxHeight:t};if(!a&&M>=o||a&&E>=o)return i&&_t(l,T,N),{placement:"bottom",maxHeight:a?E-y:M-y};if("auto"===r||a){var x=t,L=a?I:C;return L>=o&&(x=Math.min(L-y-s,t)),{placement:"top",maxHeight:x}}if("bottom"===r)return i&&kt(l,T),{placement:"bottom",maxHeight:t};break;case"top":if(I>=m)return{placement:"top",maxHeight:t};if(C>=m&&!a)return i&&_t(l,S,N),{placement:"top",maxHeight:t};if(!a&&C>=o||a&&I>=o){var O=t;return(!a&&C>=o||a&&I>=o)&&(O=a?I-w:C-w),i&&_t(l,S,N),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:v});f(o.maxHeight),h(o.placement),null==u||u(o.placement)}}),[r,i,a,s,n,u,v]),t({ref:c,placerProps:w(w({},e),{},{placement:g||$t(i),maxHeight:p})})},Jt=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return w({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},qt=Jt,en=Jt,tn=["size"],nn=["innerProps","isRtl","size"],on={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},rn=function(e){var t=e.size,n=M(e,tn);return et("svg",S({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:on},n))},an=function(e){return et(rn,S({size:20},e),et("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"}))},sn=function(e){return et(rn,S({size:20},e),et("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"}))},ln=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return w({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},un=ln,cn=ln,dn=function(){var e=tt.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_"}}}(Zt||(Ut=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Qt||(Qt=Ut.slice(0)),Zt=Object.freeze(Object.defineProperties(Ut,{raw:{value:Object.freeze(Qt)}})))),pn=function(e){var t=e.delay,n=e.offset;return et("span",{css:tt({animation:"".concat(dn," 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"},"","")})},fn=["data"],mn=["innerRef","isDisabled","isHidden","inputClassName"],gn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},hn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":w({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},gn)},vn=function(e){return w({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},gn)},bn=function(e){var t=e.children,n=e.innerProps;return et("div",n,t)},yn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return et("div",S({},Pt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||et(an,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return et("div",S({ref:r},Pt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),i),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return et("div",S({},Pt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||et(sn,null))},DownChevron:sn,CrossIcon:an,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return et("div",S({},Pt(e,"group",{group:!0}),s),et(i,S({},a,{selectProps:c,theme:u,getStyles:o,getClassNames:r,cx:n}),l),et("div",null,t))},GroupHeading:function(e){var t=Ot(e);t.data;var n=M(t,fn);return et("div",S({},Pt(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return et("div",S({},Pt(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return et("span",S({},t,Pt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=Ot(e),r=o.innerRef,i=o.isDisabled,a=o.isHidden,s=o.inputClassName,l=M(o,mn);return et("div",S({},Pt(e,"input",{"input-container":!0}),{"data-value":n||""}),et("input",S({className:t({input:!0},s),ref:r,style:vn(a),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,i=M(e,nn);return et("div",S({},Pt(w(w({},i),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),et(pn,{delay:0,offset:n}),et(pn,{delay:160,offset:!0}),et(pn,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return et("div",S({},Pt(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return et("div",S({},Pt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,s=e.menuPosition,l=(0,o.useRef)(null),u=(0,o.useRef)(null),c=C((0,o.useState)($t(a)),2),d=c[0],p=c[1],f=(0,o.useMemo)((function(){return{setPortalPlacement:p}}),[]),m=C((0,o.useState)(null),2),g=m[0],h=m[1],v=(0,o.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===s?0:window.pageYOffset,n=e[d]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||h({offset:n,rect:e})}}),[r,s,d,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);Mt((function(){v()}),[v]);var b=(0,o.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),r&&l.current&&(u.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,u=yt(e),c=r||i?[...u?bt(u):[],...bt(t)]:[];c.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,o=null;const r=ct(e);function i(){clearTimeout(n),o&&o.disconnect(),o=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:u,top:c,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-at(c)+"px "+-at(r.clientWidth-(u+d))+"px "+-at(r.clientHeight-(c+p))+"px "+-at(u)+"px",threshold:rt(0,ot(1,l))||1};let m=!0;function g(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}m=!1}try{o=new IntersectionObserver(g,{...f,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(g,f)}o.observe(e)}(!0),i}(u,n):null;let p,f=-1,m=null;a&&(m=new ResizeObserver((e=>{let[o]=e;o&&o.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{m&&m.observe(t)}))),n()})),u&&!l&&m.observe(u),m.observe(t));let g=l?Ct(e):null;return l&&function t(){const o=Ct(e);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n(),g=o,p=requestAnimationFrame(t)}(),n(),()=>{c.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(p)}}(r,l.current,v,{elementResize:"ResizeObserver"in window}))}),[r,v]);Mt((function(){b()}),[b]);var y=(0,o.useCallback)((function(e){l.current=e,b()}),[b]);if(!t&&"fixed"!==s||!g)return null;var I=et("div",S({ref:y},Pt(w(w({},e),{},{offset:g.offset,position:s,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),n);return et(Xt.Provider,{value:f},t?(0,nt.createPortal)(I,t):I)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=M(e,Yt);return et("div",S({},Pt(w(w({},r),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,r=M(e,Gt);return et("div",S({},Pt(w(w({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return et(l,{data:o,innerProps:w(w({},Pt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:s},et(u,{data:o,innerProps:w({},Pt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),et(c,{data:o,innerProps:w(w({},Pt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:bn,MultiValueLabel:bn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return et("div",S({role:"button"},n),t||et(an,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,a=e.innerProps;return et("div",S({},Pt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return et("div",S({},Pt(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return et("div",S({},Pt(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return et("div",S({},Pt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,r=e.hasValue;return et("div",S({},Pt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},wn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function In(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||wn(o)&&wn(r)))return!1;var o,r;return!0}for(var En={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"},Cn=function(e){return et("span",S({css:En},e))},Mn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.isDisabled,r=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t){var c=s?" disabled":"",d="".concat(l?"selected":"focused").concat(c);return"option ".concat(i," ").concat(d,", ").concat(u(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Tn=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,u=e.id,c=l.ariaLiveMessages,d=l.getOptionLabel,p=l.inputValue,f=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,h=l.menuIsOpen,v=l.options,b=l.screenReaderStatus,y=l.tabSelectsValue,I=l["aria-label"],E=l["aria-live"],C=(0,o.useMemo)((function(){return w(w({},Mn),c||{})}),[c]),M=(0,o.useMemo)((function(){var e,n="";if(t&&C.onChange){var o=t.option,r=t.options,i=t.removedValue,a=t.removedValues,l=t.value,u=i||o||(e=l,Array.isArray(e)?null:e),c=u?d(u):"",p=r||a||void 0,f=p?p.map(d):[],g=w({isDisabled:u&&m(u,s),label:c,labels:f},t);n=C.onChange(g)}return n}),[t,C,m,s,d]),T=(0,o.useMemo)((function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&C.onFocus){var a={focused:t,label:d(t),isDisabled:m(t,s),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:s};e=C.onFocus(a)}return e}),[n,r,d,m,C,i,s]),S=(0,o.useMemo)((function(){var e="";if(h&&v.length&&C.onFilter){var t=b({count:i.length});e=C.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,h,C,v,b]),N=(0,o.useMemo)((function(){var e="";if(C.guidance){var t=r?"value":h?"menu":"input";e=C.guidance({"aria-label":I,context:t,isDisabled:n&&m(n,s),isMulti:f,isSearchable:g,tabSelectsValue:y})}return e}),[I,n,r,f,m,g,h,C,s,y]),x="".concat(T," ").concat(S," ").concat(N),L=et(o.Fragment,null,et("span",{id:"aria-selection"},M),et("span",{id:"aria-context"},x)),O="initial-input-focus"===(null==t?void 0:t.action);return et(o.Fragment,null,et(Cn,{id:u},O&&L),et(Cn,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text"},a&&!O&&L))},Sn=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Nn=new RegExp("["+Sn.map((function(e){return e.letters})).join("")+"]","g"),xn={},Ln=0;Ln<Sn.length;Ln++)for(var On=Sn[Ln],Pn=0;Pn<On.letters.length;Pn++)xn[On.letters[Pn]]=On.base;var An=function(e){return e.replace(Nn,(function(e){return xn[e]}))},Dn=function(e,t){void 0===t&&(t=In);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}(An),kn=function(e){return e.replace(/^\s+|\s+$/g,"")},jn=function(e){return"".concat(e.label," ").concat(e.value)},Rn=["innerRef"];function Fn(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=Object.entries(e).filter((function(e){var t=C(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=C(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})}(M(e,Rn),"onExited","in","enter","exit","appear");return et("input",S({ref:t},n,{css:tt({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 zn=["boxSizing","height","overflow","paddingRight","position"],Vn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Bn(e){e.preventDefault()}function Hn(e){e.stopPropagation()}function Wn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Gn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Yn=!("undefined"==typeof window||!window.document||!window.document.createElement),Zn=0,Un={capture:!1,passive:!1},Qn=function(){return document.activeElement&&document.activeElement.blur()},$n={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Xn(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,a=e.onTopLeave,s=(0,o.useRef)(!1),l=(0,o.useRef)(!1),u=(0,o.useRef)(0),c=(0,o.useRef)(null),d=(0,o.useCallback)((function(e,t){if(null!==c.current){var o=c.current,u=o.scrollTop,d=o.scrollHeight,p=o.clientHeight,f=c.current,m=t>0,g=d-p-u,h=!1;g>t&&s.current&&(r&&r(e),s.current=!1),m&&l.current&&(a&&a(e),l.current=!1),m&&t>g?(n&&!s.current&&n(e),f.scrollTop=d,h=!0,s.current=!0):!m&&-t>u&&(i&&!l.current&&i(e),f.scrollTop=0,h=!0,l.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,i,a]),p=(0,o.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,o.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),m=(0,o.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;d(e,t)}),[d]),g=(0,o.useCallback)((function(e){if(e){var t=!!Bt&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",m,t)}}),[m,f,p]),h=(0,o.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",m,!1))}),[m,f,p]);return(0,o.useEffect)((function(){if(t){var e=c.current;return g(e),function(){h(e)}}}),[t,g,h]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,o.useRef)({}),a=(0,o.useRef)(null),s=(0,o.useCallback)((function(e){if(Yn){var t=document.body,n=t&&t.style;if(r&&zn.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&Zn<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(Vn).forEach((function(e){var t=Vn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Gn()&&(t.addEventListener("touchmove",Bn,Un),e&&(e.addEventListener("touchstart",Wn,Un),e.addEventListener("touchmove",Hn,Un))),Zn+=1}}),[r]),l=(0,o.useCallback)((function(e){if(Yn){var t=document.body,n=t&&t.style;Zn=Math.max(Zn-1,0),r&&Zn<1&&zn.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Gn()&&(t.removeEventListener("touchmove",Bn,Un),e&&(e.removeEventListener("touchstart",Wn,Un),e.removeEventListener("touchmove",Hn,Un)))}}),[r]);return(0,o.useEffect)((function(){if(t){var e=a.current;return s(e),function(){l(e)}}}),[t,s,l]),function(e){a.current=e}}({isEnabled:n});return et(o.Fragment,null,n&&et("div",{onClick:Qn,css:$n}),t((function(e){i(e),a(e)})))}var Kn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Jn=function(e){var t=e.name,n=e.onFocus;return et("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Kn,value:"",onChange:function(){}})},qn={clearIndicator:cn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,i=r.colors,a=r.borderRadius;return w({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},dropdownIndicator:un,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,r=n.spacing;return w({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return w({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,i=r.spacing,a=r.colors;return w(w({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},hn),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,r=e.theme,i=r.colors,a=r.spacing.baseUnit;return w({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:en,menu:function(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,a=r.spacing,s=r.colors;return w((b(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),b(n,"position","absolute"),b(n,"width","100%"),b(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return w({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors;return w({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,i=e.cropWithEllipsis;return w({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors,a=e.isFocused;return w({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:qt,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return w({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:r?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return w({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,i=o.colors;return w({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return w({alignItems:"center",display:o&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},eo={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}},to={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Rt(),captureMenuScroll:!Rt(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=w({ignoreCase:!0,ignoreAccents:!0,stringify:jn,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?kn(t):t,u=a?kn(i(e)):i(e);return o&&(l=l.toLowerCase(),u=u.toLowerCase()),r&&(l=Dn(l),u=An(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function no(e,t,n,o){return{type:"option",data:t,isDisabled:lo(e,t,n),isSelected:uo(e,t,n),label:ao(e,t),value:so(e,t),index:o}}function oo(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return no(e,n,t,o)})).filter((function(t){return io(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=no(e,n,t,o);return io(e,i)?i:void 0})).filter(Ht)}function ro(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,P(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function io(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!po(e)||!i)&&co(e,{label:a,value:s,data:r},o)}var ao=function(e,t){return e.getOptionLabel(t)},so=function(e,t){return e.getOptionValue(t)};function lo(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function uo(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=so(e,t);return n.some((function(t){return so(e,t)===o}))}function co(e,t,n){return!e.filterOption||e.filterOption(t,n)}var po=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},fo=1,mo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(n,e);var t=function(e){var t=O();return function(){var n,o=L(e);if(t){var r=L(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var o;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(o=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},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.instancePrefix="",o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,r=n.onChange,i=n.name;t.name=i,o.ariaOnChange(e,t),r(e,t)},o.setValue=function(e,t,n){var r=o.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,r=t.isMulti,i=t.name,a=o.state.selectValue,s=r&&o.isOptionSelected(e,a),l=o.isOptionDisabled(e,a);if(s){var u=o.getOptionValue(e);o.setValue(a.filter((function(e){return o.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void o.ariaOnChange(e,{action:"select-option",option:e,name:i});r?o.setValue([].concat(P(a),[e]),"select-option",e):o.setValue(e,"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,r=o.getOptionValue(e),i=n.filter((function(e){return o.getOptionValue(e)!==r})),a=Wt(t,i,i[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(Wt(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),i=Wt(e,r,r[0]||null);o.onChange(i,{action:"pop-value",removedValue:n})},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xt.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return ao(o.props,e)},o.getOptionValue=function(e){return so(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,r=qn[e](t,n);r.boxSizing="border-box";var i=o.props.styles[e];return i?i(r,t):r},o.getClassNames=function(e,t){var n,r;return null===(n=(r=o.props.classNames)[e])||void 0===n?void 0:n.call(r,t)},o.getElementId=function(e){return"".concat(o.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,w(w({},yn),e.components);var e},o.buildCategorizedOptions=function(){return oo(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return ro(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:w({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,r=t.menuIsOpen;o.focusInput(),r?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout((function(){return o.focusInput()})))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&At(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var r=Math.abs(n.clientX-o.initialTouchX),i=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=r>5||i>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){o.blockOptionHover||o.state.focusedOption===e||o.setState({focusedOption:e})},o.shouldHideSelectedOptions=function(){return po(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,r=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=o.state,m=f.focusedOption,g=f.focusedValue,h=f.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)o.removeValue(g);else{if(!r)return;n?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!u||!d||!m||p&&o.isOptionSelected(m,h))return;o.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(u){if(!m)return;if(o.isComposing)return;o.selectOption(m);break}return;case"Escape":u?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&i&&o.clearValue();break;case" ":if(a)return;if(!u){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":u?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":u?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!u)return;o.focusOption("pageup");break;case"PageDown":if(!u)return;o.focusOption("pagedown");break;case"Home":if(!u)return;o.focusOption("first");break;case"End":if(!u)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.instancePrefix="react-select-"+(o.props.instanceId||++fo),o.state.selectValue=Lt(e.value),e.menuIsOpen&&o.state.selectValue.length){var r=o.buildFocusableOptions(),i=r.indexOf(o.state.selectValue[0]);o.state.focusedOption=r[i]}return o}return function(e,t,n){t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(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&&jt(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(jt(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(a=r+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(eo):w(w({},eo),this.props.theme):eo}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return lo(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return uo(this.props,e,t)}},{key:"filterOption",value:function(e,t){return co(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,u=e.required,c=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,m=this.commonProps,g=r||this.getElementId("input"),h=w(w(w({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox"},l&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(c,S({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},h)):o.createElement(Fn,S({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:St,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,m=c.inputValue,g=c.placeholder,h=this.state,v=h.selectValue,b=h.focusedValue,y=h.isFocused;if(!this.hasValue()||!d)return m?null:o.createElement(l,S({},u,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),g);if(f)return v.map((function(t,s){var l=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,S({},u,{components:{Container:r,Label:i,Remove:a},isFocused:l,isDisabled:p,key:c,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 w=v[0];return o.createElement(s,S({},u,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,S({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?o.createElement(e,S({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o.createElement(n,S({},r,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,S({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,g=f.inputValue,h=f.isLoading,v=f.loadingMessage,b=f.minMenuHeight,y=f.maxMenuHeight,w=f.menuIsOpen,I=f.menuPlacement,E=f.menuPosition,C=f.menuPortalTarget,M=f.menuShouldBlockScroll,T=f.menuShouldScrollIntoView,N=f.noOptionsMessage,x=f.onMenuScrollToTop,L=f.onMenuScrollToBottom;if(!w)return null;var O,P=function(t,n){var r=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,u=t.value,f=p===i,m=a?void 0:function(){return e.onOptionHover(i)},g=a?void 0:function(){return e.selectOption(i)},h="".concat(e.getElementId("option"),"-").concat(n),v={id:h,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return o.createElement(c,S({},d,{innerProps:v,data:i,isDisabled:a,isSelected:s,key:h,label:l,type:r,value:u,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())O=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return o.createElement(n,S({},d,{key:l,data:i,options:a,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return P(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return P(t,"".concat(t.index))}));else if(h){var A=v({inputValue:g});if(null===A)return null;O=o.createElement(l,d,A)}else{var D=N({inputValue:g});if(null===D)return null;O=o.createElement(u,d,D)}var k={minMenuHeight:b,maxMenuHeight:y,menuPlacement:I,menuPosition:E,menuShouldScrollIntoView:T},_=o.createElement(Kt,S({},d,k),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,l=r.maxHeight;return o.createElement(i,S({},d,k,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:h,placement:s}),o.createElement(Xn,{captureEnabled:m,onTopArrive:x,onBottomArrive:L,lockEnabled:M},(function(t){return o.createElement(a,S({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:h,maxHeight:l,focusedOption:p}),O)})))}));return C||"fixed"===E?o.createElement(s,S({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:I,menuPosition:E}),_):_}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!r)return o.createElement(Jn,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(i){if(n){var u=l.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:a,type:"hidden",value:u})}var c=l.length>0?l.map((function(t,n){return o.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:a,type:"hidden",value:""});return o.createElement("div",null,c)}var d=l[0]?this.getOptionValue(l[0]):"";return o.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return o.createElement(Tn,S({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,u=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return o.createElement(r,S({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),o.createElement(t,S({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),o.createElement(i,S({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,S({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=e.options,u=e.value,c=e.menuIsOpen,d=e.inputValue,p=e.isMulti,f=Lt(u),m={};if(n&&(u!==n.value||l!==n.options||c!==n.menuIsOpen||d!==n.inputValue)){var g=c?function(e,t){return ro(oo(e,t))}(e,f):[],h=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,f):null,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:f,focusedOption:v,focusedValue:h,clearFocusValueOnUpdate:!1}}var b=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},y=i,I=a&&s;return a&&!I&&(y={value:Wt(p,f,f[0]||null),options:f,action:"initial-input-focus"},I=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(y=null),w(w(w({},m),b),{},{prevProps:e,ariaSelection:y,prevWasFocused:I})}}]),n}(o.Component);mo.defaultProps=to;var go=(0,o.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,a=e.defaultValue,s=void 0===a?null:a,l=e.inputValue,u=e.menuIsOpen,c=e.onChange,d=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,m=e.value,g=M(e,T),h=C((0,o.useState)(void 0!==l?l:n),2),v=h[0],b=h[1],y=C((0,o.useState)(void 0!==u?u:i),2),I=y[0],E=y[1],S=C((0,o.useState)(void 0!==m?m:s),2),N=S[0],x=S[1],L=(0,o.useCallback)((function(e,t){"function"==typeof c&&c(e,t),x(e)}),[c]),O=(0,o.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),b(void 0!==n?n:e)}),[d]),P=(0,o.useCallback)((function(){"function"==typeof f&&f(),E(!0)}),[f]),A=(0,o.useCallback)((function(){"function"==typeof p&&p(),E(!1)}),[p]),D=void 0!==l?l:v,k=void 0!==u?u:I,_=void 0!==m?m:N;return w(w({},g),{},{inputValue:D,menuIsOpen:k,onChange:L,onInputChange:O,onMenuClose:A,onMenuOpen:P,value:_})}(e);return o.createElement(mo,S({ref:t},n))})),ho=go;const vo={input:(e,t)=>({...e,height:"3rem"}),option:(e,t)=>({...e,paddingTop:"0.8rem",paddingBottom:"0.8rem",fontSize:"1rem"}),control:(e,t)=>({...e,fontSize:"1rem"})},bo=e=>({...e,colors:{...e.colors,primary:"#27ae60"}});function yo({formOptions:e,isResolving:t,handleSelect:n}){const[r,a]=(0,o.useState)(null),s=e.find((e=>e.value===r)),{isSaving:l,isDisabled:u}={isSaving:(0,g.useSelect)((e=>e("core/editor").isSavingPost()),[]),isDisabled:(0,g.useSelect)((e=>!e("core/editor").isEditedPostSaveable()),[])};return(0,o.createElement)("div",{className:"givewp-donation-form-selector"},(0,o.createElement)("img",{className:"givewp-donation-form-selector__logo",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ4IiBoZWlnaHQ9IjQ5IiB2aWV3Qm94PSIwIDAgMTQ4IDQ5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNDAuOTQ3IDI0LjcyaC41NDNzNi40MDEuMTExIDYuNTEgOC40OThjMCA4LjA1Ny03LjkyMSAxNC45LTE3LjI1MiAxNC45LTEuNTE5IDAtMTQuMTA2LS40NDItMTUuMDgyLTE1Ljc4Mi0yLjQ5Ni0uMTEtNi43MjgtLjU1Mi0xMC4zMDgtMi4wOTctMy41ODEgOC45MzktOS4xMTUgMTYuMDAyLTEyLjQ3OCAxNi4wMDItMy4zNjQgMC02LjE4NS00LjQxNC04LjQ2NC0xMi45MTJsLS4yMTctLjg4M0M3OS44NiAzOS45NSA3My44OTEgNDYuMTMgNzAuOTYyIDQ2LjEzYy0zLjQ3MiAwLTcuNzA0LTQuMDg0LTcuNzA0LTcuOTQ2IDAtMy44NjMgMS4xOTQtMTMuMTMzIDEuMTk0LTEzLjEzM3MtMy4xNDcuNjYyLTcuNzA0IDEuMzI0QzU1Ljg4IDMwLjc5MSA1MS4xMDYgNDkgMzIuNDQzIDQ5IDEwLjE5OSA0OSAwIDI0LjUgMCAyNC41YzIuNDY4LTEuNTUgNS41MzItNC44MDUgOC45NjItOC40NTFDMTUuNzg3IDguNzk3IDI0LjA2NiAwIDMyLjAxIDBjMTEuOTM1IDAgMTYuMTY3IDE1LjAwOSAxNi4xNjcgMTUuMDA5bC0uOTc3IDEuNjU1cy0zLjkwNi01LjA3Ni0xMi45MTItNS4wNzZjLTYuODc5IDAtMTIuMDg5IDYuMjg3LTE1Ljg2NCAxMC44NDEtMS4yMjYgMS40OC0yLjMwMSAyLjc3Ny0zLjIzMiAzLjYxNiAwIDAgOS40NCAxNS4xMiAyMS43IDE1LjEyIDYuNTEgMCAxMy41NjQtNS43NCAxNy41NzgtMTQuNDU4LTYuOTQ0Ljk5NC0xNi4wNTggMS44NzYtMjIuNDYgMS4xMDQgMCAwLS4zMjYtLjMzMS0uNDM0LS42NjItLjIxNy0uNDQyLS4yMTctLjg4My0uMjE3LS44ODMgMjIuNjc3IDAgMzkuNzEyLTkuNjAyIDQxLjIzMS0xMC41OTUuMTA5LS4xMS4yMTctLjExLjMyNi0uMTEgMS40NjEuMzU5LjcgNS40My0uMTAxIDEwLjc2LS45MjMgNi4xNDYtMS44OTggMTIuNjM2LjQyNyAxMi42MzYgMi4zODcgMCA3LjE2LTcuNTA0IDkuODczLTEyLjAzLS45NC00Ljg1NS0xLjg4LTkuNDE2LTIuNDAzLTExLjk1YTk5Ljc5NCA5OS43OTQgMCAwIDEtLjQxOC0yLjA2NXYtLjMzbC4yMTctLjExMWMuMTA5LS4xMSA0Ljc3NC0xLjk4NyA3LjcwNC0xLjk4NyAyLjE3IDAgMy40NzIgMS4yMTQgMy40NzIgMy4zMTEgMCAxLjMyNC0uNjUgNC4wODMtMS44NDQgNy4zOTQuNzM4IDcuMDM4IDMuMjAxIDEzLjU5NiA0LjM5IDE2Ljc2LjIwOS41NTcuMzc5IDEuMDA5LjQ5MiAxLjM0bC4wMjgtLjAzNGMxLjIyMi0xLjQ2OCA0Ljg3MS01Ljg1NSA3LjAyNS0xMS4wMDMtMi40OTYtMS45ODYtMy42ODktNC43NDUtMy42ODktOC4wNTYgMC01LjUxOCAzLjAzOC04LjM4NyA1Ljk2OC04LjM4NyAyLjA2MSAwIDQuMjMxIDEuNDM0IDQuMjMxIDQuNjM1IDAgMi4zMTctLjMyNSA0Ljg1NS0uOTc2IDcuNjE1IDEuNzM2IDEuNjU1IDQuNTU3IDMuNDIgOC4zNTUgMy41MzEuNzU5LTcuOTQ2IDQuNTU3LTE5LjMxMyAxMi4wNDQtMTkuMzEzIDcuOTIgMCA5LjExNCA2LjczMiA5LjExNCAxMC44MTUgMCA1LjYyOS00Ljk5MSAxMC40ODUtMTIuNjk1IDEyLjM2LjIxNyA2LjQwMiAxLjk1MyAxMi4wMyA2LjYxOSAxMi4wMyAyLjkyOSAwIDUuMzE3LTEuMjE0IDcuMTYxLTMuNTMyIDMuMjU1LTMuOTczIDQuMDE1LTEwLjM3MyAzLjE0Ny0xNC42NzhsLS4xMDktLjU1MXptLTE2LjYwMSAxLjIxNWM1LjY0Mi0yLjUzOSA1Ljc1MS03LjUwNSA1Ljc1MS03LjYxNSAwLTMuMi0xLjMwMi01LjA3Ny0yLjQ5Ni01LjE4Ny0xLjA4NSAwLTIuNzEyIDYuMDctMy4yNTUgMTIuODAyeiIgZmlsbD0iIzY2QkI2QSIvPgogICAgPHBhdGggZD0iTTY0Ljk5NCAxMi4yNWMwIC4yMi4xMDguMzMxLjMyNS40NDEgNC40NDkuNjYzIDcuMzc5LS43NzIgNy4zNzktOC4wNTYgMC02Ljg0Mi02Ljk0NS0xLjQzNC04LjI0Ny0uNDQxLS4xMDguMTEtLjEwOC4yMi0uMTA4LjQ0MSAxLjE5MyAyLjY0OS44NjggNi41MTEuNjUgNy42MTV6IiBmaWxsPSIjNjZCQjZBIi8+CiAgICA8bWFzayBpZD0idnl2ZWp5cm4xYSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTE1IiB5PSIzMSIgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIj4KICAgICAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExOS44OTggMzIuMjI3Yy0yLjE3LjIyLTQuMjMyLjExLTQuMjMyLjExLjMyNiA0LjQxNSAxLjQ1OCA3LjM5MSAzLjA4NiA5LjcwOWw3LjkyLS42NjNjLTEuNjgxLTIuMjM0LTIuMzg1LTUuNTgtMi41NDMtOS45MyAwIDAtMi4xNy41NTMtNC4yMzEuNzc0eiIgZmlsbD0iI2ZmZiIvPgogICAgPC9tYXNrPgogICAgPGcgbWFzaz0idXJsKCN2eXZlanlybjFhKSI+CiAgICAgICAgPHBhdGggZD0ibTEyNy44MTggNDEuOTM3LTEuMzAyLTExLjgwOS0xMi4wNDQgMS40MzUgMS4zMDIgMTEuODA5IDEyLjA0NC0xLjQzNXoiIGZpbGw9InVybCgjZHJvcHkwdmMyYikiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJuZ3FpN2JtNzNjIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIxMTUiIHk9IjE3IiB3aWR0aD0iMTEiIGhlaWdodD0iMTEiPgogICAgICAgIDxwYXRoIGQ9Ik0xMjQuMzQ3IDI1LjkzN2MtMS42NzkgMS4wNS02Ljg5MSAxLjc5Ni04LjY4MSAxLjY1My4yNjMtMi40NzYuNzg3LTUuODk2IDIuMTctOS42MDEgMS4wNTYtLjI1NCA1Ljg2LS4yNjIgNy4zMTYgMS44MzJhNTYuODgxIDU2Ljg4MSAwIDAgMC0uODA1IDYuMTE2eiIgZmlsbD0iI2ZmZiIvPgogICAgPC9tYXNrPgogICAgPGcgbWFzaz0idXJsKCNuZ3FpN2JtNzNjKSI+CiAgICAgICAgPHBhdGggZmlsbD0idXJsKCNveHA5dzBhbzVkKSIgZD0iTTExNS41NTggMTcuODczaDkuNTk0djkuNzM1aC05LjU5NHoiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJueW9nNWZtbWllIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSI3NiIgeT0iMjYiIHdpZHRoPSI5IiBoZWlnaHQ9IjE1Ij4KICAgICAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTc2LjQ0MyAzNi42NDRjLjU0MyAxLjMyNCAxLjEzIDIuODYxIDEuNzggNC4xODYgMS4wNjktMS4yNTUgMi4yNDMtMi42NiAzLjYyOS00LjY5LjgxNy0xLjE5OCAxLjY2OC0yLjU3OCAyLjM0OC0zLjY5NGwtMS4wODEtNS41MjNjLTEuNzM4IDMuMDA0LTQuNjkyIDcuNTctNi42NzYgOS43MnoiIGZpbGw9IiNmZmYiLz4KICAgIDwvbWFzaz4KICAgIDxnIG1hc2s9InVybCgjbnlvZzVmbW1pZSkiPgogICAgICAgIDxwYXRoIGQ9Ik03Ny4xNDcgNDMuMjYxIDg4LjMyMyAzOS40bC00Ljg4My0xNC45LTExLjE3NiAzLjg2NCA0Ljg4MyAxNC44OTh6IiBmaWxsPSJ1cmwoI2RpanZpNDZ6aGYpIi8+CiAgICA8L2c+CiAgICA8bWFzayBpZD0iN21pY25seDg4ZyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iOTYiIHk9IjI4IiB3aWR0aD0iMTAiIGhlaWdodD0iMTMiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTYuNjc4IDM2Ljg1NWMuNzYgMS4xMDQgMi4xNyAyLjU0NCAzLjE0NiAzLjY0N2E0My44OTMgNDMuODkzIDAgMCAwIDIuNDY1LTMuODg4IDU5LjQxNCA1OS40MTQgMCAwIDAgMy4wNjktNi4zNzVzLTEuMDY4LS4zOC0xLjk0MS0uODkzYy0uODczLS41MTQtMS42MzYtMS4wOTEtMS42MzYtMS4wOTEtMS41MzQgMy41NzgtMy41MjcgNi41NC01LjEwMyA4LjZ6IiBmaWxsPSIjZmZmIi8+CiAgICA8L21hc2s+CiAgICA8ZyBtYXNrPSJ1cmwoIzdtaWNubHg4OGcpIj4KICAgICAgICA8cGF0aCBkPSJtMTAzLjI5NiA0NC4yNTUgNy4yNy0xMy4xMzMtMTEuNzE5LTYuNzMyLTcuMjcgMTMuMDIyIDExLjcxOSA2Ljg0M3oiIGZpbGw9InVybCgjcjNlMTJsd2NwaCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSIyemx4Mm1oaTVpIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSI4OCIgeT0iMTMiIHdpZHRoPSI0IiBoZWlnaHQ9IjkiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNODguODY1IDE0LjM0N3MuMTA5IDEuOTg2Ljk3NyA2Ljg0MmMxLjE5My0zLjQyMSAxLjgzNC02LjA0OCAxLjgzNC03LjM3MnYtLjMzMmwtMi44MS44NjJ6IiBmaWxsPSIjZmZmIi8+CiAgICA8L21hc2s+CiAgICA8ZyBtYXNrPSJ1cmwoIzJ6bHgybWhpNWkpIj4KICAgICAgICA8cGF0aCBkPSJtODkuNjI1IDEyLjE0LTQuMjMyIDYuODQyIDUuNTM0IDMuNDIxIDQuMjMxLTYuODQyLTUuNTMzLTMuNDIxeiIgZmlsbD0idXJsKCN6OWJobXhidjVqKSIvPgogICAgPC9nPgogICAgPG1hc2sgaWQ9Imdwdm5pNG5tMmsiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjEwNCIgeT0iMTciIHdpZHRoPSI1IiBoZWlnaHQ9IjgiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTA0LjkyMiAxOC44NzNzLS43NiAyLjMxOCAyLjM4NyA1LjE4N2MuNTQyLTIuMzE3Ljg0Ni00LjUyMi45Ni02LjYxN2wtMy4zNDcgMS40M3oiIGZpbGw9IiNmZmYiLz4KICAgIDwvbWFzaz4KICAgIDxnIG1hc2s9InVybCgjZ3B2bmk0bm0yaykiPgogICAgICAgIDxwYXRoIGQ9Im0xMDQuNDg5IDE2LjIyMy0xLjg0NCA3LjI4NCA1LjQyNSAxLjQzNCAxLjk1My03LjE3My01LjUzNC0xLjU0NXoiIGZpbGw9InVybCgjYzU1emR6a3ZqbCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJkMXRvZ2IwY3NtIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSI0NiIgeT0iMjYiIHdpZHRoPSIxMSIgaGVpZ2h0PSIxNCI+CiAgICAgICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik01NC40NjcgMjYuNzA3Yy0yLjAxNCA0LjM5Ny00LjYxNiA3LjgyLTcuNzYgMTAuNDI0bDQuNjE5IDIuMTNjMi40NDEtMy40ODQgMy42NzktNi43MTcgNC41NTQtOS40NjRsLjQ2NC0xLjY2Ny40MDctMS43Ni0yLjI4NC4zMzd6IiBmaWxsPSIjZmZmIi8+CiAgICA8L21hc2s+CiAgICA8ZyBtYXNrPSJ1cmwoI2QxdG9nYjBjc20pIj4KICAgICAgICA8cGF0aCBkPSJtNDcuNTggMjcuMDE4IDkuNjI5LS44NjMtLjQ3NSAxMy40MTYtMTAuMTg2LS4zOTMgMS4wMzEtMTIuMTZ6IiBmaWxsPSJ1cmwoI3RhcHl2eG5kc24pIi8+CiAgICA8L2c+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImRyb3B5MHZjMmIiIHgxPSIxMjUuNTQ1IiB5MT0iMzkuOTY1IiB4Mj0iMTI0LjY4NSIgeTI9IjMyLjA3NCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJveHA5dzBhbzVkIiB4MT0iMTE2LjQxNSIgeTE9IjIzLjY3OSIgeDI9IjExNi40MTUiIHkyPSIzMS44MzQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzY2QkI2QSIvPgogICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzNzhGNDMiLz4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0iZGlqdmk0NnpoZiIgeDE9Ijc4LjExMyIgeTE9IjM5LjIyMSIgeDI9Ijg1LjUzOSIgeTI9IjM3LjM3NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJyM2UxMmx3Y3BoIiB4MT0iMTAzLjE0OCIgeTE9IjM5LjIzNCIgeDI9IjEwNy42NTYiIHkyPSIzMS44NjciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzY2QkI2QSIvPgogICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzNzhGNDMiLz4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0iejliaG14YnY1aiIgeDE9Ijg5LjcxMSIgeTE9IjE1Ljk5MiIgeDI9Ijg4LjQwNiIgeTI9IjE3LjkwNSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJjNTV6ZHprdmpsIiB4MT0iMTA1LjI0OCIgeTE9IjIwLjAzOCIgeDI9IjEwNC4zMiIgeTI9IjIyLjYwOCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJ0YXB5dnhuZHNuIiB4MT0iNTUuNTUxIiB5MT0iMzYuNjczIiB4Mj0iNTUuNTUxIiB5Mj0iMjYuODExIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM2NkJCNkEiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMzc4RjQzIi8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KPC9zdmc+Cg==",alt:"givewp-logo"}),(0,o.createElement)("div",{className:"givewp-donation-form-selector__select"},(0,o.createElement)("label",{htmlFor:"formId",className:"givewp-donation-form-selector__label"},(0,i.__)("Choose a donation form","give")),(0,o.createElement)(ho,{name:"formId",inputId:"formId",value:s,placeholder:t?(0,i.__)("Loading Donation Forms...","give"):(0,i.__)("Select...","give"),onChange:e=>{e&&a(e.value)},noOptionsMessage:()=>(0,o.createElement)("p",null,(0,i.__)("No forms were found using the GiveWP form builder.","give")),options:e,loadingMessage:()=>(0,o.createElement)(o.Fragment,null,(0,i.__)("Loading Donation Forms...","give")),isLoading:t,theme:bo,styles:vo})),(0,o.createElement)("button",{className:"givewp-donation-form-selector__submit",type:"button",disabled:l||u||!r,onClick:()=>{n(r),(0,g.dispatch)("core/editor").savePost()}},(0,i.__)("Confirm","give")))}const wo=window.wp.components;function Io({attributes:e,setAttributes:t,formOptions:n,isResolving:r,isLegacyTemplate:a,isLegacyForm:s}){const{id:l,displayStyle:u,continueButtonTitle:c,showTitle:d,contentDisplay:f,showGoal:m,showContent:g}=e,h=a||!s,v=h&&["newTab","modal","reveal","button"].includes(u);return(0,o.createElement)(p.InspectorControls,null,(0,o.createElement)(wo.PanelBody,{title:(0,i.__)("Form Settings","give"),initialOpen:!0},(0,o.createElement)(wo.PanelRow,null,!1===r&&0===n.length?(0,o.createElement)("p",null,(0,i.__)("No forms were found using the GiveWP form builder.","give")):(0,o.createElement)(wo.SelectControl,{label:(0,i.__)("Choose a donation form","give"),value:null!=l?l:"",options:[{value:"",label:(0,i.__)("Select...","give"),disabled:!0},...n.map((e=>({label:e.label,value:String(e.value)})))],onChange:e=>{t({id:Number(e)})}})),h&&(0,o.createElement)(wo.PanelRow,null,(0,o.createElement)(wo.SelectControl,{label:(0,i.__)("Form Format","give"),value:u,options:((e,t,n)=>a?e.concat(t):e.concat(n))([{label:(0,i.__)("Full Form","give"),value:"onpage"},{label:(0,i.__)("Modal","give"),value:"modal"}],[{label:(0,i.__)("Reveal","give"),value:"reveal"},{value:"button",label:(0,i.__)("One Button Launch","give")}],[{label:(0,i.__)("New Tab","give"),value:"newTab"}]),onChange:e=>{t({displayStyle:e})}})),v&&(0,o.createElement)(wo.PanelRow,null,(0,o.createElement)(wo.TextControl,{label:(0,i.__)("Open Form Button","give"),value:c,onChange:e=>{t({continueButtonTitle:e})}})),a&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(wo.PanelRow,null,(0,o.createElement)(wo.ToggleControl,{label:(0,i.__)("Title","give"),name:"showTitle",checked:!!d,onChange:e=>{t({showTitle:e})}})),(0,o.createElement)(wo.PanelRow,null,(0,o.createElement)(wo.ToggleControl,{label:(0,i.__)("Goal","give"),name:"showGoal",checked:!!m,onChange:e=>{t({showGoal:e})}})),(0,o.createElement)(wo.PanelRow,null,(0,o.createElement)(wo.ToggleControl,{label:(0,i.__)("Content","give"),name:"contentDisplay",checked:!!f,onChange:e=>{t({contentDisplay:e})}})),f&&(0,o.createElement)(wo.PanelRow,null,(0,o.createElement)(wo.SelectControl,{label:(0,i.__)("Content Position","give"),name:"showContent",value:g,options:[{value:"above",label:(0,i.__)("Above","give")},{value:"below",label:(0,i.__)("Below","give")}],onChange:e=>{t({showContent:e})}}))),l&&(0,o.createElement)(wo.PanelRow,null,(0,o.createElement)(wo.ExternalLink,{href:s?`/wp-admin/post.php?post=${l}&action=edit`:`/wp-admin/edit.php?post_type=give_forms&page=givewp-form-builder&donationFormID=${l}`},(0,i.__)("Edit donation form","give")))))}const Eo=window.wp.element;function Co(){return Co=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Co.apply(this,arguments)}function Mo(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var To,So,No=(To=function(e){!function(t){if("undefined"!=typeof window){var n,o=0,r=!1,i=!1,a="[iFrameSizer]",s=null,l=window.requestAnimationFrame,u={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},c={},d=null,p={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){w("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},f={};window.jQuery&&((n=window.jQuery).fn?n.fn.iFrameResize||(n.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){k(n,e)})).end()}):y("","Unable to bind to jQuery, it is not fully loaded.")),e.exports=F(),window.iFrameResize=window.iFrameResize||F()}function m(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function g(e,t,n){e.addEventListener(t,n,!1)}function h(e,t,n){e.removeEventListener(t,n,!1)}function v(e){return c[e]?c[e].log:r}function b(e,t){I("log",e,t,v(e))}function y(e,t){I("info",e,t,v(e))}function w(e,t){I("warn",e,t,!0)}function I(e,t,n,o){!0===o&&"object"==typeof window.console&&console[e](function(e){return a+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}(t),n)}function E(e){function t(){n("Height"),n("Width"),P((function(){O(j),N(R),p("onResized",j)}),j,"init")}function n(e){var t=Number(c[R]["max"+e]),n=Number(c[R]["min"+e]),o=e.toLowerCase(),r=Number(j[o]);b(R,"Checking "+o+" is in range "+n+"-"+t),r<n&&(r=n,b(R,"Set "+o+" to min value")),r>t&&(r=t,b(R,"Set "+o+" to max value")),j[o]=""+r}function o(e){return _.substr(_.indexOf(":")+7+e)}function r(e,t){var n,o;n=function(){var n,o;A("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),o=j.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:o.height,iframeWidth:o.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(o.top-n.top,10),offsetLeft:parseInt(o.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},f[o=t]||(f[o]=setTimeout((function(){f[o]=null,n()}),32))}function i(e){var t=e.getBoundingClientRect();return S(R),{x:Math.floor(Number(t.left)+Number(s.x)),y:Math.floor(Number(t.top)+Number(s.y))}}function l(e){var t=e?i(j.iframe):{x:0,y:0},n={x:Number(j.width)+t.x,y:Number(j.height)+t.y};b(R,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):w(R,"Unable to scroll to requested position, window.parentIFrame not found"):(s=n,u(),b(R,"--"))}function u(){!1!==p("onScroll",s)?N(R):x()}function d(e){p(e,{iframe:j.iframe,screenX:j.width,screenY:j.height,type:j.type})}function p(e,t){return C(R,e,t)}var m,v,I,E,M,k,_=e.data,j={},R=null;"[iFrameResizerChild]Ready"===_?function(){for(var e in c)A("iFrame requested init",D(e),c[e].iframe,e)}():a===(""+_).substr(0,13)&&_.substr(13).split(":")[0]in c?(E=(I=_.substr(13).split(":"))[1]?parseInt(I[1],10):0,M=c[I[0]]&&c[I[0]].iframe,k=getComputedStyle(M),j={iframe:M,id:I[0],height:E+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:I[2],type:I[3]},R=j.id,c[R]&&(c[R].loaded=!0),(v=j.type in{true:1,false:1,undefined:1})&&b(R,"Ignoring init message from meta parent page"),!v&&function(e){var t=!0;return c[e]||(t=!1,w(j.type+" No settings for "+e+". Message was: "+_)),t}(R)&&(b(R,"Received: "+_),m=!0,null===j.iframe&&(w(R,"IFrame ("+j.id+") not found"),m=!1),m&&function(){var t,n=e.origin,o=c[R]&&c[R].checkOrigin;if(o&&""+n!="null"&&!(o.constructor===Array?function(){var e=0,t=!1;for(b(R,"Checking connection is from allowed list of origins: "+o);e<o.length;e++)if(o[e]===n){t=!0;break}return t}():(t=c[R]&&c[R].remoteHost,b(R,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+j.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(c[R]&&c[R].firstRun&&c[R]&&(c[R].firstRun=!1),j.type){case"close":T(j.iframe);break;case"message":v=o(6),b(R,"onMessage passed: {iframe: "+j.iframe.id+", message: "+v+"}"),p("onMessage",{iframe:j.iframe,message:JSON.parse(v)}),b(R,"--");break;case"mouseenter":d("onMouseEnter");break;case"mouseleave":d("onMouseLeave");break;case"autoResize":c[R].autoResize=JSON.parse(o(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":r(c[R]&&c[R].iframe,R),function(){function e(e,o){function i(){c[n]?r(c[n].iframe,n):t()}["scroll","resize"].forEach((function(t){b(n,e+t+" listener for sendPageInfo"),o(window,t,i)}))}function t(){e("Remove ",h)}var n=R;e("Add ",g),c[n]&&(c[n].stopPageInfo=t)}();break;case"pageInfoStop":c[R]&&c[R].stopPageInfo&&(c[R].stopPageInfo(),delete c[R].stopPageInfo);break;case"inPageLink":e=o(9),a=e.split("#")[1]||"",f=decodeURIComponent(a),(m=document.getElementById(f)||document.getElementsByName(f)[0])?(n=i(m),b(R,"Moving to in page link (#"+a+") at x: "+n.x+" y: "+n.y),s={x:n.x,y:n.y},u(),b(R,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(a):b(R,"In page link #"+a+" not found and window.parentIFrame not found"):b(R,"In page link #"+a+" not found");break;case"reset":L(j);break;case"init":t(),p("onInit",j.iframe);break;default:t()}var e,n,a,f,m,v}())):y(R,"Ignored: "+_)}function C(e,t,n){var o=null,r=null;if(c[e]){if("function"!=typeof(o=c[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");r=o(n)}return r}function M(e){var t=e.id;delete c[t]}function T(e){var t=e.id;if(!1!==C(t,"onClose",t)){b(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){w(e)}C(t,"onClosed",t),b(t,"--"),M(e)}else b(t,"Close iframe cancelled by onClose event")}function S(e){null===s&&b(e,"Get page position: "+(s={x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}).x+","+s.y)}function N(e){null!==s&&(window.scrollTo(s.x,s.y),b(e,"Set page position: "+s.x+","+s.y),x())}function x(){s=null}function L(e){b(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),S(e.id),P((function(){O(e),A("reset","reset",e.iframe,e.id)}),e,"reset")}function O(e){function t(t){i||"0"!==e[t]||(i=!0,b(o,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(c).forEach((function(e){!function(e){function t(t){return"0px"===(c[e]&&c[e].iframe.style[t])}c[e]&&null!==c[e].iframe.offsetParent&&(t("height")||t("width"))&&A("Visibility change","resize",c[e].iframe,e)}(e)}))}function t(t){b("window","Mutation observed: "+t[0].target+" "+t[0].type),_(e,16)}var n,o=m();o&&(n=document.querySelector("body"),new o(t).observe(n,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",b(e.id,"IFrame ("+o+") "+t+" set to "+e[t]+"px")):b("undefined","messageData id not set")}(n),t(n)}var o=e.iframe.id;c[o]&&(c[o].sizeHeight&&n("height"),c[o].sizeWidth&&n("width"))}function P(e,t,n){n!==t.type&&l&&!window.jasmine?(b(t.id,"Requesting animation frame"),l(e)):e()}function A(e,t,n,o,r){var i,s=!1;o=o||n.id,c[o]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(i=c[o]&&c[o].targetOrigin,b(o,"["+e+"] Sending msg to iframe["+o+"] ("+t+") targetOrigin: "+i),n.contentWindow.postMessage(a+t,i)):w(o,"["+e+"] IFrame("+o+") not found"),r&&c[o]&&c[o].warningTimeout&&(c[o].msgTimeout=setTimeout((function(){!c[o]||c[o].loaded||s||(s=!0,w(o,"IFrame has not responded within "+c[o].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),c[o].warningTimeout)))}function D(e){return e+":"+c[e].bodyMarginV1+":"+c[e].sizeWidth+":"+c[e].log+":"+c[e].interval+":"+c[e].enablePublicMethods+":"+c[e].autoResize+":"+c[e].bodyMargin+":"+c[e].heightCalculationMethod+":"+c[e].bodyBackground+":"+c[e].bodyPadding+":"+c[e].tolerance+":"+c[e].inPageLinks+":"+c[e].resizeFrom+":"+c[e].widthCalculationMethod}function k(e,n){function i(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],w(a,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var a=function(t){var i;return""===t&&(e.id=(i=n&&n.id||p.id+o++,null!==document.getElementById(i)&&(i+=o++),t=i),r=(n||{}).log,b(t,"Added missing iframe ID: "+t+" ("+e.src+")")),t}(e.id);a in c&&"iFrameResizer"in e?w(a,"Ignored iFrame, already setup."):(function(t){var n;t=t||{},c[a]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(i,t),function(e){for(var t in p)Object.prototype.hasOwnProperty.call(p,t)&&(c[a][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:p[t])}(t),c[a]&&(c[a].targetOrigin=!0===c[a].checkOrigin?""===(n=c[a].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(n),function(){switch(b(a,"IFrame scrolling "+(c[a]&&c[a].scrolling?"enabled":"disabled")+" for "+a),e.style.overflow=!1===(c[a]&&c[a].scrolling)?"hidden":"auto",c[a]&&c[a].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=c[a]?c[a].scrolling:"no"}}(),function(){function t(t){1/0!==c[a][t]&&0!==c[a][t]&&(e.style[t]=c[a][t]+"px",b(a,"Set "+t+" = "+c[a][t]+"px"))}function n(e){if(c[a]["min"+e]>c[a]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(c[a]&&c[a].bodyMargin)&&"0"!==(c[a]&&c[a].bodyMargin)||(c[a].bodyMarginV1=c[a].bodyMargin,c[a].bodyMargin=c[a].bodyMargin+"px"),function(n){var o=m();o&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&T(e)}))}))})).observe(e.parentNode,{childList:!0})}(o),g(e,"load",(function(){var o,r;A("iFrame.onload",n,e,t,!0),o=c[a]&&c[a].firstRun,r=c[a]&&c[a].heightCalculationMethod in u,!o&&r&&L({iframe:e,height:0,width:0,type:"init"})})),A("init",n,e,t,!0)}(D(a)),c[a]&&(c[a].iframe.iFrameResizer={close:T.bind(null,c[a].iframe),removeListeners:M.bind(null,c[a].iframe),resize:A.bind(null,"Window resize","resize",c[a].iframe),moveToAnchor:function(e){A("Move to anchor","moveToAnchor:"+e,c[a].iframe,a)},sendMessage:function(e){A("Send Message","message:"+(e=JSON.stringify(e)),c[a].iframe,a)}}))}function _(e,t){null===d&&(d=setTimeout((function(){d=null,e()}),t))}function j(){"hidden"!==document.visibilityState&&(b("document","Trigger event: Visiblity change"),_((function(){R("Tab Visable","resize")}),16))}function R(e,t){Object.keys(c).forEach((function(n){(function(e){return c[e]&&"parent"===c[e].resizeFrom&&c[e].autoResize&&!c[e].firstRun})(n)&&A(e,t,c[n].iframe,n)}))}function F(){function e(e,t){t&&(function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}(),k(t,e),n.push(t))}var n;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!l;e+=1)l=window[t[e]+"RequestAnimationFrame"];l?l=l.bind(window):b("setup","RequestAnimationFrame not supported")}(),g(window,"message",E),g(window,"resize",(function(){b("window","Trigger event: resize"),_((function(){R("Window resize","resize")}),16)})),g(document,"visibilitychange",j),g(document,"-webkit-visibilitychange",j),function(o,r){switch(n=[],function(e){e&&e.enablePublicMethods&&w("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(o),typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),e.bind(t,o));break;case"object":e(o,r);break;default:throw new TypeError("Unexpected data type ("+typeof r+")")}return n}}}()},To(So={exports:{}}),So.exports),xo=function(){},Lo=function(e){var t=e.title,n=e.forwardRef,i=Mo(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,Mo(e,["autoResize","bodyBackground","bodyMargin","bodyPadding","checkOrigin","inPageLinks","heightCalculationMethod","interval","log","maxHeight","maxWidth","minHeight","minWidth","resizeFrom","scrolling","sizeHeight","sizeWidth","warningTimeout","tolerance","widthCalculationMethod","onClosed","onInit","onMessage","onMouseEnter","onMouseLeave","onResized"])}(i),s=(0,o.useRef)(null),l=function(){return xo(!s.current,"[iframeSizerReact]["+(s&&s.current&&s.current.id)+"] Close event ignored, to remove the iframe update your React component"),!s.current};return(0,o.useEffect)((function(){var e=s.current;return No(Co({},i,{onClose:l}),e),function(){return e.iFrameResizer&&e.iFrameResizer.removeListeners()}}),[]),(0,o.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)}}})),r().createElement("iframe",Co({title:t},a,{ref:s}))};Lo.defaultProps={title:"iframe"},Lo.propTypes={title:l().string};const Oo=Lo,Po={prefix:String(Math.round(1e10*Math.random())),current:0,isSSR:!1},Ao=o.createContext(Po);let Do=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),ko=new WeakMap;const _o="function"==typeof o.useId?function(e){let t=o.useId(),[n]=(0,o.useState)(zo());return e||`${n?"react-aria":`react-aria${Po.prefix}`}-${t}`}:function(e){let t=(0,o.useContext)(Ao);t!==Po||Do||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,o.useContext)(Ao),n=(0,o.useRef)(null);if(null===n.current&&!e){var r,i;let e=null===(r=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===r||null===(i=r.ReactCurrentOwner)||void 0===i?void 0:i.current;if(e){let n=ko.get(e);null==n?ko.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,ko.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function jo(){return!1}function Ro(){return!0}function Fo(e){return()=>{}}function zo(){return"function"==typeof o.useSyncExternalStore?o.useSyncExternalStore(Fo,jo,Ro):(0,o.useContext)(Ao).isSSR}function Vo(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Vo(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}const Bo=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=Vo(e))&&(o&&(o+=" "),o+=t);return o},Ho="undefined"!=typeof document?o.useLayoutEffect:()=>{};let Wo=new Map;function Go(e){let[t,n]=(0,o.useState)(e),r=(0,o.useRef)(null),i=_o(t),a=(0,o.useCallback)((e=>{r.current=e}),[]);return Wo.set(i,a),Ho((()=>{let e=i;return()=>{Wo.delete(e)}}),[i]),(0,o.useEffect)((()=>{let e=r.current;e&&(r.current=null,n(e))})),i}function Yo(e,t){if(e===t)return e;let n=Wo.get(e);if(n)return n(t),t;let o=Wo.get(t);return o?(o(e),e):t}function Zo(e=[]){let t=Go(),[n,r]=function(e){let[t,n]=(0,o.useState)(e),r=(0,o.useRef)(t),i=(0,o.useRef)(null),a=(0,o.useCallback)((()=>{let e=i.current.next();for(;!e.done&&r.current===e.value;)e=i.current.next();e.done?i.current=null:(n(e.value),r.current=e.value)}),[n,r,i]);Ho((()=>{i.current&&a()}));let s=(0,o.useCallback)((e=>{i.current=e(r.current),a()}),[a,i,r]);return[t,s]}(t),i=(0,o.useCallback)((()=>{r((function*(){yield t,yield document.getElementById(t)?t:void 0}))}),[t,r]);return Ho(i,[t,i,...e]),n}function Uo(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function Qo(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let o=e[n];for(let e in o){let n=t[e],r=o[e];"function"==typeof n&&"function"==typeof r&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Uo(n,r):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof r?"id"===e&&n&&r?t.id=Yo(n,r):t[e]=void 0!==r?r:n:t[e]=Bo(n,r)}}return t}function $o(...e){return 1===e.length?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}const Xo=new Set(["id"]),Ko=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Jo=/^(data-.*)$/;function qo(e,t={}){let{labelable:n,propNames:o}=t,r={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Xo.has(t)||n&&Ko.has(t)||(null==o?void 0:o.has(t))||Jo.test(t))&&(r[t]=e[t]);return r}function er(e){if(function(){if(null==tr){tr=!1;try{document.createElement("div").focus({get preventScroll(){return tr=!0,!0}})}catch(e){}}return tr}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,n=[],o=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&n.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:o}of e)t.scrollTop=n,t.scrollLeft=o}(t)}}let tr=null,nr=new Map,or=new Set;function rr(){if("undefined"==typeof window)return;let e=t=>{let n=nr.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),nr.delete(t.target)),0===nr.size)){for(let e of or)e();or.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=nr.get(t.target);n||(n=new Set,nr.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function ir(e){requestAnimationFrame((()=>{0===nr.size?e():or.add(e)}))}function ar(e,t){let{id:n,"aria-label":o,"aria-labelledby":r}=e;if(n=Go(n),r&&o){let e=new Set([n,...r.trim().split(/\s+/)]);r=[...e].join(" ")}else r&&(r=r.trim().split(/\s+/).join(" "));return o||r||!t||(o=t),{id:n,"aria-label":o,"aria-labelledby":r}}function sr(e){const t=(0,o.useRef)();return(0,o.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}function lr(e,t){Ho((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function ur(e){for(cr(e)&&(e=e.parentElement);e&&!cr(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function cr(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}"undefined"!=typeof document&&("loading"!==document.readyState?rr():document.addEventListener("DOMContentLoaded",rr));let dr="undefined"!=typeof document&&window.visualViewport;function pr(){return{width:(null==dr?void 0:dr.width)||window.innerWidth,height:(null==dr?void 0:dr.height)||window.innerHeight}}function fr(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 mr(){return fr(/^Mac/i)}function gr(){return fr(/^iPhone/i)||fr(/^iPad/i)||mr()&&navigator.maxTouchPoints>1}function hr(e){const t=(0,o.useRef)(null);return Ho((()=>{t.current=e}),[e]),(0,o.useCallback)(((...e)=>(0,t.current)(...e)),[])}function vr(e){return!(0!==e.mozInputSource||!e.isTrusted)||(t=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.brands.some((e=>t.test(e.brand))))||t.test(window.navigator.userAgent))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType);var t,n}function br(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function yr(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,br(e,t,"set"),n),n}new Map;let wr="default",Ir="",Er=new WeakMap;function Cr(e){gr()?("default"===wr&&(Ir=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),wr="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(Er.set(e,e.style.userSelect),e.style.userSelect="none")}function Mr(e){if(gr()){if("disabled"!==wr)return;wr="restoring",setTimeout((()=>{ir((()=>{"restoring"===wr&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=Ir||""),Ir="",wr="default")}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Er.has(e)){let t=Er.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Er.delete(e)}}const Tr=o.createContext(null);Tr.displayName="PressResponderContext";var Sr=new WeakMap;class Nr{continuePropagation(){yr(this,Sr,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(this,br(this,Sr,"get"))}constructor(e,t,n){var o,r,i;i={writable:!0,value:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,r=Sr),r.set(o,i),yr(this,Sr,!0),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}function xr(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:p,...f}=function(e){let t=(0,o.useContext)(Tr);if(t){let{register:n,...o}=t;e=Qo(o,e),n()}return lr(t,e.ref),e}(e),[m,g]=(0,o.useState)(!1),h=(0,o.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:v,removeAllGlobalListeners:b}=function(){let e=(0,o.useRef)(new Map),t=(0,o.useCallback)(((t,n,o,r)=>{let i=(null==r?void 0:r.once)?(...t)=>{e.current.delete(o),o(...t)}:o;e.current.set(o,{type:n,eventTarget:t,fn:i,options:r}),t.addEventListener(n,o,r)}),[]),n=(0,o.useCallback)(((t,n,o,r)=>{var i;let a=(null===(i=e.current.get(o))||void 0===i?void 0:i.fn)||o;t.removeEventListener(n,a,r),e.current.delete(o)}),[]),r=(0,o.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,o.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}(),y=hr(((e,t)=>{let o=h.current;if(s||o.didFirePressStart)return;let i=!0;if(r){let n=new Nr("pressstart",t,e);r(n),i=n.shouldStopPropagation}return n&&n(!0),o.didFirePressStart=!0,g(!0),i})),w=hr(((e,o,r=!0)=>{let a=h.current;if(!a.didFirePressStart)return;a.ignoreClickAfterPress=!0,a.didFirePressStart=!1;let l=!0;if(i){let t=new Nr("pressend",o,e);i(t),l=t.shouldStopPropagation}if(n&&n(!1),g(!1),t&&r&&!s){let n=new Nr("press",o,e);t(n),l&&(l=n.shouldStopPropagation)}return l})),I=hr(((e,t)=>{if(!s){if(a){let n=new Nr("pressup",t,e);return a(n),n.shouldStopPropagation}return!0}})),E=hr((e=>{let t=h.current;t.isPressed&&(t.isOverTarget&&w(Ar(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,b(),d||Mr(t.target))})),C=hr((e=>{c&&E(e)})),M=(0,o.useMemo)((()=>{let e=h.current,t={onKeyDown(t){if(Or(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){_r(t.target,t.key)&&t.preventDefault();let o=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,o=y(t,"keyboard"),v(document,"keyup",n,!1)),o&&t.stopPropagation()}else"Enter"===t.key&&Lr(t.currentTarget)&&t.stopPropagation()},onKeyUp(t){Or(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target)&&I(Ar(e.target,t),"keyboard")},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button){let n=!0;if(s&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&("virtual"===e.pointerType||vr(t.nativeEvent))){s||u||er(t.currentTarget);let e=y(t,"virtual"),o=I(t,"virtual"),r=w(t,"virtual");n=e&&o&&r}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&Or(t,e.target)){_r(t.target,t.key)&&t.preventDefault(),e.isPressed=!1;let n=t.target,o=w(Ar(e.target,t),"keyboard",e.target.contains(n));b(),o&&t.stopPropagation(),e.target instanceof HTMLElement&&e.target.contains(n)&&(Lr(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(0===(i=t.nativeEvent).width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType)return void(e.pointerType="virtual");var i;kr(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let a=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,s||u||er(t.currentTarget),d||Cr(e.target),a=y(t,e.pointerType),v(document,"pointermove",n,!1),v(document,"pointerup",o,!1),v(document,"pointercancel",r,!1)),a&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(kr(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&Dr(t,t.currentTarget)&&I(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(Dr(t,e.target)?e.isOverTarget||(e.isOverTarget=!0,y(Ar(e.target,t),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,w(Ar(e.target,t),e.pointerType,!1),C(t)))},o=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(Dr(t,e.target)?w(Ar(e.target,t),e.pointerType):e.isOverTarget&&w(Ar(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,b(),d||Mr(e.target))},r=e=>{E(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&E(e)}}else{t.onMouseDown=t=>{0===t.button&&t.currentTarget.contains(t.target)&&(kr(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents?t.stopPropagation():(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=vr(t.nativeEvent)?"virtual":"mouse",s||u||er(t.currentTarget),y(t,e.pointerType)&&t.stopPropagation(),v(document,"mouseup",n,!1)))},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,n=y(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,n=w(t,e.pointerType,!1),C(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||I(t,e.pointerType))};let n=t=>{0===t.button&&(e.isPressed=!1,b(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(Dr(t,e.target)?w(Ar(e.target,t),e.pointerType):e.isOverTarget&&w(Ar(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",s||u||er(t.currentTarget),d||Cr(e.target),y(t,e.pointerType)&&t.stopPropagation(),v(window,"scroll",o,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=Pr(t.nativeEvent,e.activePointerId),o=!0;n&&Dr(n,t.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,o=y(t,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,o=w(t,e.pointerType,!1),C(t)),o&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=Pr(t.nativeEvent,e.activePointerId),o=!0;n&&Dr(n,t.currentTarget)?(I(t,e.pointerType),o=w(t,e.pointerType)):e.isOverTarget&&(o=w(t,e.pointerType,!1)),o&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,d||Mr(e.target),b()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&E(t))};let o=t=>{e.isPressed&&t.target.contains(e.target)&&E({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&E(e)}}return t}),[v,s,u,b,d,E,C,w,y,I]);return(0,o.useEffect)((()=>()=>{d||Mr(h.current.target)}),[d]),{isPressed:l||m,pressProps:Qo(f,M)}}function Lr(e){return"A"===e.tagName&&e.hasAttribute("href")}function Or(e,t){const{key:n,code:o}=e,r=t,i=r.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==o||r instanceof HTMLInputElement&&!Rr(r,n)||r instanceof HTMLTextAreaElement||r.isContentEditable||Lr(r)&&("button"!==i||"Enter"===n)||"link"===i&&"Enter"!==n)}function Pr(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const o=n[e];if(o.identifier===t)return o}return null}function Ar(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Dr(e,t){let n=t.getBoundingClientRect(),o=function(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return i=o,!((r=n).left>i.right||i.left>r.right||r.top>i.bottom||i.top>r.bottom);var r,i}function kr(e){return!(e instanceof HTMLElement&&e.draggable)}function _r(e,t){return e instanceof HTMLInputElement?!Rr(e,t):!(e instanceof HTMLButtonElement)||"submit"!==e.type&&"reset"!==e.type}const jr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Rr(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:jr.has(e.type)}class Fr{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 zr(e){let t=(0,o.useRef)({isFocused:!1,observer:null});Ho((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=hr((t=>{null==e||e(t)}));return(0,o.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=e.target,r=e=>{t.current.isFocused=!1,o.disabled&&n(new Fr("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",r,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&o.disabled){t.current.observer.disconnect();let e=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}})),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}function Vr(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=(0,o.useCallback)((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),s=zr(a),l=(0,o.useCallback)((e=>{e.target===e.currentTarget&&document.activeElement===e.target&&(n&&n(e),i&&i(!0),s(e))}),[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?l:void 0,onBlur:t||!r&&!i?void 0:a}}}let Br=null,Hr=new Set,Wr=!1,Gr=!1,Yr=!1;const Zr={Tab:!0,Escape:!0};function Ur(e,t){for(let n of Hr)n(e,t)}function Qr(e){Gr=!0,function(e){return!(e.metaKey||!mr()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Br="keyboard",Ur("keyboard",e))}function $r(e){Br="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Gr=!0,Ur("pointer",e))}function Xr(e){vr(e)&&(Gr=!0,Br="virtual")}function Kr(e){e.target!==window&&e.target!==document&&(Gr||Yr||(Br="virtual",Ur("virtual",e)),Gr=!1,Yr=!1)}function Jr(){Gr=!1,Yr=!0}function qr(){if("undefined"==typeof window||Wr)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Gr=!0,e.apply(this,arguments)},document.addEventListener("keydown",Qr,!0),document.addEventListener("keyup",Qr,!0),document.addEventListener("click",Xr,!0),window.addEventListener("focus",Kr,!0),window.addEventListener("blur",Jr,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",$r,!0),document.addEventListener("pointermove",$r,!0),document.addEventListener("pointerup",$r,!0)):(document.addEventListener("mousedown",$r,!0),document.addEventListener("mousemove",$r,!0),document.addEventListener("mouseup",$r,!0)),Wr=!0}function ei(){return"pointer"!==Br}function ti(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,o.useRef)({isFocusWithin:!1}),s=(0,o.useCallback)((e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,a]),l=zr(s),u=(0,o.useCallback)((e=>{a.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,l(e))}),[r,i,l]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:u,onBlur:s}}}"undefined"!=typeof document&&("loading"!==document.readyState?qr():document.addEventListener("DOMContentLoaded",qr));let ni=!1,oi=0;function ri(){ni=!0,setTimeout((()=>{ni=!1}),50)}function ii(e){"touch"===e.pointerType&&ri()}function ai(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",ii):document.addEventListener("touchend",ri),oi++,()=>{oi--,oi>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",ii):document.removeEventListener("touchend",ri))}}function si(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1;if(e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function li(e){if(!e)return;let t=!0;return n=>{let o={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(o),t&&n.stopPropagation()}}function ui(e){if("virtual"===Br){let t=document.activeElement;ir((()=>{document.activeElement===t&&document.contains(e)&&er(e)}))}else er(e)}function ci(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,o="none"!==t&&"hidden"!==n&&"collapse"!==n;if(o){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:r}=t(e);o="none"!==n&&"hidden"!==r&&"collapse"!==r}return o}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||ci(e.parentElement,e))}const di=o.createContext(null);let pi=null;function fi(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=(0,o.useRef)(),s=(0,o.useRef)(),l=(0,o.useRef)([]),{parentNode:u}=(0,o.useContext)(di)||{},c=(0,o.useMemo)((()=>new Ni({scopeRef:l})),[l]);Ho((()=>{let e=u||xi.root;if(xi.getTreeNode(e.scopeRef)&&pi&&!Ei(pi,e.scopeRef)){let t=xi.getTreeNode(pi);t&&(e=t)}e.addChild(c),xi.addNode(c)}),[c,u]),Ho((()=>{xi.getTreeNode(l).contain=n}),[n]),Ho((()=>{let e=a.current.nextSibling,t=[];for(;e&&e!==s.current;)t.push(e),e=e.nextSibling;l.current=t}),[t]),function(e,t,n){Ho((()=>{if(t||n)return;let o=e.current,r=t=>{let n=t.target;wi(n,e.current)?pi=e:yi(n)||(pi=null)};return document.addEventListener("focusin",r,!1),o.forEach((e=>e.addEventListener("focusin",r,!1))),()=>{document.removeEventListener("focusin",r,!1),o.forEach((e=>e.removeEventListener("focusin",r,!1)))}}),[e,t,n])}(l,r,n),function(e,t){let n=(0,o.useRef)(),r=(0,o.useRef)(null);Ho((()=>{let o=e.current;if(!t)return void(r.current&&(cancelAnimationFrame(r.current),r.current=null));let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!bi(e))return;let n=document.activeElement,o=e.current;if(!wi(n,o))return;let r=Ti(vi(o),{tabbable:!0},o);r.currentNode=n;let i=t.shiftKey?r.previousNode():r.nextNode();i||(r.currentNode=t.shiftKey?o[o.length-1].nextElementSibling:o[0].previousElementSibling,i=t.shiftKey?r.previousNode():r.nextNode()),t.preventDefault(),i&&Ci(i,!0)},a=t=>{pi&&!Ei(pi,e)||!wi(t.target,e.current)?bi(e)&&!Ii(t.target,e)?n.current?n.current.focus():pi&&Mi(pi.current):bi(e)&&(n.current=t.target):(pi=e,n.current=t.target)},s=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame((()=>{bi(e)&&!Ii(document.activeElement,e)&&(pi=e,document.body.contains(t.target)?(n.current=t.target,n.current.focus()):pi&&Mi(pi.current))}))};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",a,!1),o.forEach((e=>e.addEventListener("focusin",a,!1))),o.forEach((e=>e.addEventListener("focusout",s,!1))),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",a,!1),o.forEach((e=>e.removeEventListener("focusin",a,!1))),o.forEach((e=>e.removeEventListener("focusout",s,!1)))}}),[e,t]),Ho((()=>()=>{r.current&&cancelAnimationFrame(r.current)}),[r])}(l,n),function(e,t,n){const r=(0,o.useRef)("undefined"!=typeof document?document.activeElement:null);Ho((()=>{let o=e.current;if(!t||n)return;let r=()=>{pi&&!Ei(pi,e)||!wi(document.activeElement,e.current)||(pi=e)};return document.addEventListener("focusin",r,!1),o.forEach((e=>e.addEventListener("focusin",r,!1))),()=>{document.removeEventListener("focusin",r,!1),o.forEach((e=>e.removeEventListener("focusin",r,!1)))}}),[e,n]),Ho((()=>{if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!bi(e))return;let n=document.activeElement;if(!wi(n,e.current))return;let o=xi.getTreeNode(e).nodeToRestore,r=Ti(document.body,{tabbable:!0});r.currentNode=n;let i=t.shiftKey?r.previousNode():r.nextNode();if(document.body.contains(o)&&o!==document.body||(o=null,xi.getTreeNode(e).nodeToRestore=null),(!i||!wi(i,e.current))&&o){r.currentNode=o;do{i=t.shiftKey?r.previousNode():r.nextNode()}while(wi(i,e.current));t.preventDefault(),t.stopPropagation(),i?Ci(i,!0):yi(o)?Ci(o,!0):n.blur()}};return n||document.addEventListener("keydown",o,!0),()=>{n||document.removeEventListener("keydown",o,!0)}}),[e,t,n]),Ho((()=>{if(t)return xi.getTreeNode(e).nodeToRestore=r.current,()=>{let n=xi.getTreeNode(e).nodeToRestore;if(t&&n&&(wi(document.activeElement,e.current)||document.activeElement===document.body&&function(e){let t=xi.getTreeNode(pi);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let t=xi.clone();requestAnimationFrame((()=>{if(document.activeElement===document.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&document.body.contains(n.nodeToRestore))return void Ci(n.nodeToRestore);n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&xi.getTreeNode(n.scopeRef))return void Mi(n.scopeRef.current,!0);n=n.parent}}}))}}}),[e,t])}(l,r,n),function(e,t){const n=o.useRef(t);(0,o.useEffect)((()=>{n.current&&(pi=e,wi(document.activeElement,pi.current)||Mi(e.current)),n.current=!1}),[e])}(l,i),(0,o.useEffect)((()=>{if(l){let e=document.activeElement,t=null;if(wi(e,l.current)){for(let n of xi.traverse())wi(e,n.scopeRef.current)&&(t=n);t===xi.getTreeNode(l)&&(pi=t.scopeRef)}return()=>{let e=xi.getTreeNode(l).parent.scopeRef;l!==pi&&!Ei(l,pi)||e&&!xi.getTreeNode(e)||(pi=e),xi.removeTreeNode(l)}}}),[l]);let d=(0,o.useMemo)((()=>function(e){return{focusNext(t={}){let n=e.current,{from:o,tabbable:r,wrap:i,accept:a}=t,s=o||document.activeElement,l=n[0].previousElementSibling,u=Ti(vi(n),{tabbable:r,accept:a},n);u.currentNode=wi(s,n)?s:l;let c=u.nextNode();return!c&&i&&(u.currentNode=l,c=u.nextNode()),c&&Ci(c,!0),c},focusPrevious(t={}){let n=e.current,{from:o,tabbable:r,wrap:i,accept:a}=t,s=o||document.activeElement,l=n[n.length-1].nextElementSibling,u=Ti(vi(n),{tabbable:r,accept:a},n);u.currentNode=wi(s,n)?s:l;let c=u.previousNode();return!c&&i&&(u.currentNode=l,c=u.previousNode()),c&&Ci(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:o,accept:r}=t,i=Ti(vi(n),{tabbable:o,accept:r},n);i.currentNode=n[0].previousElementSibling;let a=i.nextNode();return a&&Ci(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:o,accept:r}=t,i=Ti(vi(n),{tabbable:o,accept:r},n);i.currentNode=n[n.length-1].nextElementSibling;let a=i.previousNode();return a&&Ci(a,!0),a}}}(l)),[]),p=(0,o.useMemo)((()=>({focusManager:d,parentNode:c})),[c,d]);return o.createElement(di.Provider,{value:p},o.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,o.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}const mi=["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]"],gi=mi.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";mi.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const hi=mi.join(':not([hidden]):not([tabindex="-1"]),');function vi(e){return e[0].parentElement}function bi(e){let t=xi.getTreeNode(pi);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function yi(e){return Ii(e)}function wi(e,t){return t.some((t=>t.contains(e)))}function Ii(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of xi.traverse(xi.getTreeNode(t)))if(wi(e,n.current))return!0;return!1}function Ei(e,t){var n;let o=null===(n=xi.getTreeNode(t))||void 0===n?void 0:n.parent;for(;o;){if(o.scopeRef===e)return!0;o=o.parent}return!1}function Ci(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{ui(e)}catch(e){}}function Mi(e,t=!0){let n=e[0].previousElementSibling,o=Ti(vi(e),{tabbable:t},e);o.currentNode=n;let r=o.nextNode();t&&!r&&(o=Ti(vi(e),{tabbable:!1},e),o.currentNode=n,r=o.nextNode()),Ci(r)}function Ti(e,t,n){let o=(null==t?void 0:t.tabbable)?hi:gi,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var r;return(null==t||null===(r=t.from)||void 0===r?void 0:r.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(o)||!ci(e)||n&&!wi(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(r.currentNode=t.from),r}class Si{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let o=this.fastMap.get(null!=t?t:null),r=new Ni({scopeRef:e});o.addChild(r),r.parent=o,this.fastMap.set(e,r),n&&(r.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e),n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef.current&&wi(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let o=t.children;n.removeChild(t),o.size>0&&o.forEach((e=>n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new Si;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){this.fastMap=new Map,this.root=new Ni({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ni{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 xi=new Si;function Li(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,o.useRef)({isFocused:!1,isFocusVisible:t||ei()}),[a,s]=(0,o.useState)(!1),[l,u]=(0,o.useState)((()=>i.current.isFocused&&i.current.isFocusVisible)),c=(0,o.useCallback)((()=>u(i.current.isFocused&&i.current.isFocusVisible)),[]),d=(0,o.useCallback)((e=>{i.current.isFocused=e,s(e),c()}),[c]);!function(e,t,n){qr(),(0,o.useEffect)((()=>{let t=(t,o)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!Zr[n.key])})(null==n?void 0:n.isTextInput,t,o)&&e(ei())};return Hr.add(t),()=>{Hr.delete(t)}}),t)}((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:p}=Vr({isDisabled:r,onFocusChange:d}),{focusWithinProps:f}=ti({isDisabled:!r,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:r?f:p}}let Oi=o.createContext(null);function Pi(e,t){let{focusProps:n}=Vr(e),{keyboardProps:r}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:li(e.onKeyDown),onKeyUp:li(e.onKeyUp)}}}(e),i=Qo(n,r),a=function(e){let t=(0,o.useContext)(Oi)||{};lr(t,e);let{ref:n,...r}=t;return r}(t),s=e.isDisabled?{}:a,l=(0,o.useRef)(e.autoFocus);return(0,o.useEffect)((()=>{l.current&&t.current&&ui(t.current),l.current=!1}),[t]),{focusableProps:Qo({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}class Ai{getStringForLocale(e,t){let n=this.strings[t];n||(n=function(e,t,n="en-US"){if(t[e])return t[e];let o=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[o])return t[o];for(let e in t)if(e.startsWith(o+"-"))return t[e];return t[n]}(t,this.strings,this.defaultLocale),this.strings[t]=n);let o=n[e];if(!o)throw new Error(`Could not find intl message ${e} in ${t} locale`);return o}constructor(e,t="en-US"){this.strings={...e},this.defaultLocale=t}}const Di=new Map,ki=new Map;class _i{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let o=t["="+e];if(o)return"function"==typeof o?o():o;let r=this.locale+":"+n,i=Di.get(r);return i||(i=new Intl.PluralRules(this.locale,{type:n}),Di.set(r,i)),o=t[i.select(e)]||t.other,"function"==typeof o?o():o}number(e){let t=ki.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),ki.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 ji=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ri=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Fi(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return ji.has(t)}let t=e.split("-")[0];return Ri.has(t)}function zi(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:Fi(e)?"rtl":"ltr"}}let Vi=zi(),Bi=new Set;function Hi(){Vi=zi();for(let e of Bi)e(Vi)}const Wi=o.createContext(null);function Gi(){let e=function(){let e=zo(),[t,n]=(0,o.useState)(Vi);return(0,o.useEffect)((()=>(0===Bi.size&&window.addEventListener("languagechange",Hi),Bi.add(n),()=>{Bi.delete(n),0===Bi.size&&window.removeEventListener("languagechange",Hi)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return(0,o.useContext)(Wi)||e}const Yi=new WeakMap;new Map;const Zi={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 Ui(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:s}=function(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,o.useState)(!1),{focusWithinProps:a}=ti({isDisabled:!n,onFocusWithinChange:e=>i(e)});return{visuallyHiddenProps:{...a,style:(0,o.useMemo)((()=>r?t:t?{...Zi,...t}:Zi),[r])}}}(e);return o.createElement(n,Qo(a,s),t)}function Qi(e){return e&&e.__esModule?e.default:e}"undefined"!=typeof document&&window.visualViewport,new WeakMap,"undefined"!=typeof document&&window.visualViewport;const $i=[];function Xi(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:l}=e;(0,o.useEffect)((()=>(i&&$i.push(t),()=>{let e=$i.indexOf(t);e>=0&&$i.splice(e,1)})),[i,t]);let u=()=>{$i[$i.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=(0,o.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=hr((e=>{n&&si(e,t)&&(i&&i(e),a.current.isPointerDown=!0)})),l=hr((e=>{n&&n(e)}));(0,o.useEffect)((()=>{let e=a.current;if(!r){if("undefined"!=typeof PointerEvent){let n=n=>{e.isPointerDown&&si(n,t)&&l(n),e.isPointerDown=!1};return document.addEventListener("pointerdown",s,!0),document.addEventListener("pointerup",n,!0),()=>{document.removeEventListener("pointerdown",s,!0),document.removeEventListener("pointerup",n,!0)}}{let n=n=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&si(n,t)&&l(n),e.isPointerDown=!1},o=n=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&si(n,t)&&l(n),e.isPointerDown=!1};return document.addEventListener("mousedown",s,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("touchstart",s,!0),document.addEventListener("touchend",o,!0),()=>{document.removeEventListener("mousedown",s,!0),document.removeEventListener("mouseup",n,!0),document.removeEventListener("touchstart",s,!0),document.removeEventListener("touchend",o,!0)}}}}),[t,r,s,l])}({ref:t,onInteractOutside:a?e=>{l&&!l(e.target)||($i[$i.length-1]===t&&(e.stopPropagation(),e.preventDefault()),u())}:null,onInteractOutsideStart:e=>{l&&!l(e.target)||$i[$i.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=ti({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&Ii(e.relatedTarget,pi)||l&&!l(e.relatedTarget)||n()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||s||(e.stopPropagation(),e.preventDefault(),u())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}const Ki="undefined"!=typeof document&&window.visualViewport,Ji=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let qi,ea=0;function ta(e,t,n){let o=e.style[t];return e.style[t]=n,()=>{e.style[t]=o}}function na(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function oa(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=ur(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>n+e.clientHeight&&(t.scrollTop+=o-n)}e=t.parentElement}}function ra(e){return e instanceof HTMLInputElement&&!Ji.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var ia;function aa(e){let{onDismiss:t,...n}=e,r=ar(n,function(e){let{locale:t}=Gi(),n=(0,o.useMemo)((()=>function(e){let t=Yi.get(e);return t||(t=new Ai(e),Yi.set(e,t)),t}(e)),[e]);return(0,o.useMemo)((()=>new _i(t,n)),[t,n])}(Qi(ia)).format("dismiss"));return o.createElement(Ui,null,o.createElement("button",{...r,tabIndex:-1,onClick:()=>{t&&t()}}))}ia={"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:"關閉"}};let sa=new WeakMap,la=[];const ua=o.createContext(null);function ca(e){let t,n=zo(),{portalContainer:r=(n?null:document.body),isExiting:i}=e,[a,s]=(0,o.useState)(!1),l=(0,o.useMemo)((()=>({contain:a,setContain:s})),[a,s]);return r?(t=e.disableFocusManagement?o.createElement(ua.Provider,{value:l},e.children):o.createElement(ua.Provider,{value:l},o.createElement(fi,{restoreFocus:!0,contain:a&&!i},e.children)),nt.createPortal(t,r)):null}function da(){let e=(0,o.useContext)(ua),t=null==e?void 0:e.setContain;Ho((()=>{null==t||t(!0)}),[t])}function pa(e,t,n){let{overlayProps:r,underlayProps:i}=Xi({...e,isOpen:t.isOpen,onClose:t.close},n);return function(e={}){let{isDisabled:t}=e;Ho((()=>{if(!t)return ea++,1===ea&&(qi=gr()?function(){let e,t=0,n=window.pageXOffset,o=window.pageYOffset,r=Uo(ta(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),ta(document.documentElement,"overflow","hidden"),ta(document.body,"marginTop",`-${o}px`));window.scrollTo(0,0);let i=Uo(na(document,"touchstart",(n=>{e=ur(n.target),e===document.documentElement&&e===document.body||(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),na(document,"touchmove",(n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let o=n.changedTouches[0].pageY,r=e.scrollTop,i=e.scrollHeight-e.clientHeight;0!==i&&((r<=0&&o>t||r>=i&&o<t)&&n.preventDefault(),t=o)}),{passive:!1,capture:!0}),na(document,"touchend",(e=>{let t=e.target;ra(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),na(document,"focus",(e=>{let t=e.target;ra(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",Ki&&(Ki.height<window.innerHeight?requestAnimationFrame((()=>{oa(t)})):Ki.addEventListener("resize",(()=>oa(t)),{once:!0}))})))}),!0),na(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{r(),i(),window.scrollTo(n,o)}}():Uo(ta(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),ta(document.documentElement,"overflow","hidden"))),()=>{ea--,0===ea&&qi()}}),[t])}({isDisabled:!t.isOpen}),da(),(0,o.useEffect)((()=>{if(t.isOpen)return function(e,t=document.body){let n=new Set(e),o=new Set,r=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(t);let t=e=>{if(n.has(e)||o.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),a=t(e);if(a===NodeFilter.FILTER_ACCEPT&&i(e),a!==NodeFilter.FILTER_REJECT){let e=r.nextNode();for(;null!=e;)i(e),e=r.nextNode()}},i=e=>{var t;let n=null!==(t=sa.get(e))&&void 0!==t?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),o.add(e),sa.set(e,n+1))};la.length&&la[la.length-1].disconnect(),r(t);let a=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...o].some((e=>e.contains(t.target)))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),o.delete(e));for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&r(e):n.add(e)}}));a.observe(t,{childList:!0,subtree:!0});let s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return la.push(s),()=>{a.disconnect();for(let e of o){let t=sa.get(e);1===t?(e.removeAttribute("aria-hidden"),sa.delete(e)):sa.set(e,t-1)}s===la[la.length-1]?(la.pop(),la.length&&la[la.length-1].observe()):la.splice(la.indexOf(s),1)}}([n.current])}),[t.isOpen,n]),{modalProps:Qo(r),underlayProps:i}}function fa(e){let{description:t,errorMessage:n,validationState:o}=e,{labelProps:r,fieldProps:i}=function(e){let{id:t,label:n,"aria-labelledby":o,"aria-label":r,labelElementType:i="label"}=e;t=Go(t);let a=Go(),s={};return n?(o=o?`${a} ${o}`:a,s={id:a,htmlFor:"label"===i?t:void 0}):o||r||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:s,fieldProps:ar({id:t,"aria-label":r,"aria-labelledby":o})}}(e),a=Zo([Boolean(t),Boolean(n),o]),s=Zo([Boolean(t),Boolean(n),o]);return i=Qo(i,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:r,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:s}}}function ma(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,validationState:s,type:l="text",value:u,defaultValue:c,onChange:d=()=>{}}=e,{focusableProps:p}=Pi(e,t),{labelProps:f,fieldProps:m,descriptionProps:g,errorMessageProps:h}=fa(e),v=qo(e,{labelable:!0});const b={type:l,pattern:e.pattern};var y;return function(e,t,n){let r=(0,o.useRef)(t),i=hr((()=>{n&&n(r.current)}));(0,o.useEffect)((()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",i),()=>{null==n||n.removeEventListener("reset",i)}}),[e,i])}(t,null!==(y=null!=u?u:c)&&void 0!==y?y:"",d),{labelProps:f,inputProps:Qo(v,"input"===n&&b,{disabled:r,readOnly:a,"aria-required":i||void 0,"aria-invalid":"invalid"===s||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:e=>d(e.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...p,...m}),descriptionProps:g,errorMessageProps:h}}function ga(e){let[t,n]=function(e,t,n){let[r,i]=(0,o.useState)(e||t),a=(0,o.useRef)(void 0!==e),s=void 0!==e;(0,o.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:r,u=(0,o.useCallback)(((e,...t)=>{let o=(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"),i(((n,...r)=>{let i=e(s?l:n,...r);return o(i,...t),s?n:i}))):(s||i(e),o(e,...t))}),[s,l,n]);return[l,u]}(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=(0,o.useCallback)((()=>{n(!0)}),[n]),i=(0,o.useCallback)((()=>{n(!1)}),[n]),a=(0,o.useCallback)((()=>{n(!t)}),[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}n(9888),new WeakMap;Symbol.iterator;const ha="row-header-column-"+Math.random().toString(36).slice(2);let va="row-header-column-"+Math.random().toString(36).slice(2);for(;ha===va;)va="row-header-column-"+Math.random().toString(36).slice(2);function ba(e){return null}Symbol.iterator,ba.getCollectionNode=function*(e,t){let{children:n,textValue:r,UNSTABLE_childItems:i}=e;yield{type:"item",props:e,textValue:r,"aria-label":e["aria-label"],hasChildNodes:!0,*childNodes(){if(t.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),t.showSelectionCheckboxes&&"none"!==t.selectionMode&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),"function"==typeof n){for(let e of t.columns)yield{type:"cell",element:n(e.key),key:e.key};if(i)for(let e of i)yield{type:"item",value:e}}else{let e=[],r=[];if(o.Children.forEach(n,(n=>{if(n.type===ba){if(e.length<t.columns.length)throw new Error("All of a Row's child Cells must be positioned before any child Rows.");r.push({type:"item",element:n})}else e.push({type:"cell",element:n})})),e.length!==t.columns.length)throw new Error(`Cell count must match column count. Found ${e.length} cells and ${t.columns.length} columns.`);yield*e,yield*r}},shouldInvalidate:e=>e.columns.length!==t.columns.length||e.columns.some(((e,n)=>e.key!==t.columns[n].key))||e.showSelectionCheckboxes!==t.showSelectionCheckboxes||e.showDragButtons!==t.showDragButtons||e.selectionMode!==t.selectionMode}},Symbol.iterator;Symbol.iterator;const ya=Symbol("callback"),wa=Symbol("default");function Ia({values:e,children:t}){for(let[n,r]of e)t=o.createElement(n.Provider,{value:r},t);return t}function Ea(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,values:s}=e;return(0,o.useMemo)((()=>{let e,o,l;return e="function"==typeof t?t(s):t,o="function"==typeof n?n(s):n,l="function"==typeof r?r(s):null==r?a:r,{className:null!=e?e:i,style:o,children:l}}),[t,n,r,i,a,s])}function Ca(e,t,n){let r=(0,o.useContext)(n)||{};if("slots"in r&&r.slots){if(!e.slot&&!r.slots[wa])throw new Error("A slot prop is required");let t=e.slot||wa;if(!r.slots[t])throw new Error(`Invalid slot "${e.slot}". Valid slot names are `+(new Intl.ListFormat).format(Object.keys(r.slots).map((e=>`"${e}"`)))+".");r=r.slots[t]}let{ref:i,[ya]:a,...s}=r,l=sr((0,o.useMemo)((()=>$o(t,i)),[t,i])),u=Qo(s,e);return(0,o.useEffect)((()=>{a&&a(e)}),[a,e]),[u,l]}function Ma(e,t=!0){let[n,r]=(0,o.useState)(!0);return Sa(e,n&&t,(0,o.useCallback)((()=>r(!1)),[])),n&&t}function Ta(e,t){let[n,r]=(0,o.useState)(!1),[i,a]=(0,o.useState)("idle");return!t&&e.current&&"idle"===i&&(n=!0,r(!0),a("exiting")),e.current||"exited"!==i||a("idle"),Sa(e,n,(0,o.useCallback)((()=>{a("exited"),r(!1)}),[])),n}function Sa(e,t,n){let r=(0,o.useRef)(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),Ho((()=>{if(t&&e.current){let t=window.getComputedStyle(e.current);if("none"!==t.animationName&&t.animation!==r.current){let t=r=>{r.target===e.current&&(o.removeEventListener("animationend",t),nt.flushSync((()=>{n()})))},o=e.current;return o.addEventListener("animationend",t),()=>{o.removeEventListener("animationend",t)}}n()}}),[e,t,n])}const Na=(0,o.createContext)({}),xa=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),La=(0,o.createContext)({});function Oa(e,t){[e,t]=Ca(e,t,La);let n=e,{buttonProps:r,isPressed:i}=function(e,t){let n,{elementType:o="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:s,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:p,target:f,rel:m,type:g="button"}=e;n="button"===o?{type:g,disabled:r}:{role:"button",tabIndex:r?void 0:0,href:"a"===o&&r?void 0:p,target:"a"===o?f:void 0,type:"input"===o?g:void 0,disabled:"input"===o?r:void 0,"aria-disabled":r&&"input"!==o?r:void 0,rel:"a"===o?m:void 0};let{pressProps:h,isPressed:v}=xr({onPressStart:a,onPressEnd:s,onPressChange:l,onPress:i,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:b}=Pi(e,t);c&&(b.tabIndex=r?-1:b.tabIndex);let y=Qo(b,h,qo(e,{labelable:!0}));return{isPressed:v,buttonProps:Qo(n,y,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{d&&(d(e),console.warn("onClick is deprecated, please use onPress"))}})}}(e,t),{focusProps:a,isFocused:s,isFocusVisible:l}=Li(e),{hoverProps:u,isHovered:c}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,s]=(0,o.useState)(!1),l=(0,o.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,o.useEffect)(ai,[]);let{hoverProps:u,triggerHoverEnd:c}=(0,o.useMemo)((()=>{let e=(e,o)=>{if(l.pointerType=o,i||"touch"===o||l.isHovered||!e.currentTarget.contains(e.target))return;l.isHovered=!0;let r=e.currentTarget;l.target=r,t&&t({type:"hoverstart",target:r,pointerType:o}),n&&n(!0),s(!0)},o=(e,t)=>{if(l.pointerType="",l.target=null,"touch"===t||!l.isHovered)return;l.isHovered=!1;let o=e.currentTarget;r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),s(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{ni&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):(a.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{l.ignoreEmulatedMouseEvents||ni||e(t,"mouse"),l.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:a,triggerHoverEnd:o}}),[t,n,r,i,l]);return(0,o.useEffect)((()=>{i&&c({currentTarget:l.target},l.pointerType)}),[i]),{hoverProps:u,isHovered:a}}(e),d=Ea({...e,values:{isHovered:c,isPressed:i,isFocused:s,isFocusVisible:l,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return o.createElement("button",{...qo(e,{propNames:xa}),...Qo(r,a,u),...d,ref:t,slot:e.slot,"data-pressed":n.isPressed||i||void 0,"data-hovered":c||void 0,"data-focused":s||void 0,"data-focus-visible":l||void 0})}const Pa=(0,o.forwardRef)(Oa),Aa=(0,o.createContext)({}),Da=(0,o.createContext)({}),ka=(0,o.createContext)({}),_a=(0,o.createContext)(null),ja=(0,o.createContext)(null);function Ra(e,t){if((0,o.useContext)(ja))return o.createElement(Ha,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,...u}=e;return o.createElement(Va,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:s},o.createElement(Ha,{...u,modalRef:t},l))}const Fa=(0,o.forwardRef)(Ra);function za(e,t){let n=(0,o.useContext)(_a),r=ga(e),i=null==e.isOpen&&null==e.defaultOpen&&(null==n?void 0:n.state)?n.state:r,a=sr(t),s=(0,o.useRef)(null),l=Ta(a,i.isOpen),u=Ta(s,i.isOpen),c=l||u;return i.isOpen||c?o.createElement(Ba,{...e,state:i,isExiting:c,overlayRef:a,modalRef:s}):null}const Va=(0,o.forwardRef)(za);function Ba(e){let t=e.modalRef,{state:n}=e,{modalProps:r,underlayProps:i}=pa(e,n,t),a=Ma(e.overlayRef),s=Ea({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:e.isExiting,state:n}}),l=function(){let[e,t]=(0,o.useState)((()=>pr()));return(0,o.useEffect)((()=>{let e=()=>{t((e=>{let t=pr();return t.width===e.width&&t.height===e.height?e:t}))};return dr?dr.addEventListener("resize",e):window.addEventListener("resize",e),()=>{dr?dr.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}(),u={...s.style,"--visual-viewport-height":l.height+"px"};return o.createElement(ca,{isExiting:e.isExiting},o.createElement("div",{...Qo(qo(e),i),...s,style:u,ref:e.overlayRef,"data-entering":a||void 0,"data-exiting":e.isExiting||void 0},o.createElement(ja.Provider,{value:{modalProps:r,modalRef:t,state:n,isExiting:e.isExiting,isDismissable:e.isDismissable}},s.children)))}function Ha(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:i,state:a}=(0,o.useContext)(ja),s=sr((0,o.useMemo)((()=>$o(e.modalRef,n)),[e.modalRef,n])),l=Ma(s),u=Ea({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:a}});return o.createElement("div",{...Qo(qo(e),t),...u,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},i&&o.createElement(aa,{onDismiss:a.close}),u.children)}const Wa=(0,o.createContext)(null);function Ga(e,t){[e,t]=Ca(e,t,Wa);let{dialogProps:n,titleProps:r}=function(e,t){let{role:n="dialog"}=e,r=Zo();r=e["aria-label"]?void 0:r;let i=(0,o.useRef)(!1);return(0,o.useEffect)((()=>{if(t.current&&!t.current.contains(document.activeElement)){ui(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(i.current=!0,t.current.blur(),ui(t.current),i.current=!1)}),500);return()=>{clearTimeout(e)}}}),[t]),da(),{dialogProps:{...qo(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}(e,t),i=e.children;var a;return"function"==typeof i&&(i=i({close:e.onClose||(()=>{})})),o.createElement("section",{...qo(e),...n,ref:t,slot:e.slot,style:e.style,className:null!==(a=e.className)&&void 0!==a?a:"react-aria-Dialog"},o.createElement(Ia,{values:[[La,void 0],[Na,{...r,level:2}]]},i))}const Ya=(0,o.forwardRef)(Ga);Symbol.iterator;const Za=(0,o.createContext)({}),Ua=(0,o.createContext)(null);function Qa(){return(0,o.createElement)(wo.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,o.createElement)(wo.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 $a({openFormButton:e,children:t,onChange:n,isOpen:r}){return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Pa,{className:"givewp-donation-form-modal__open",onPress:n},e),(0,o.createElement)(Fa,{className:"givewp-donation-form-modal__overlay",isOpen:r},(0,o.createElement)(Ya,{className:"givewp-donation-form-modal__dialog"},t,(0,o.createElement)(Pa,{className:"givewp-donation-form-modal__close",onPress:n},(0,o.createElement)(Qa,null)))))}function Xa({clientId:e,formId:t,formFormat:n,openFormButton:r,link:a}){const s=(0,g.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]),[l,u]=(0,Eo.useState)(!1),c=s?.clientId===e?"auto":"none",d="modal"===n||"reveal"===n;return"newTab"===n?(0,o.createElement)("a",{className:"givewp-donation-form-link",href:a,target:"_blank",rel:"noopener noreferrer"},r):d?(0,o.createElement)($a,{openFormButton:r,isOpen:l,onChange:()=>u(!l)},(0,o.createElement)(Oo,{title:(0,i.__)("Donation Form","give"),src:`/?givewp-route=donation-form-view&form-id=${t}`,checkOrigin:!1,style:{minWidth:"100%",pointerEvents:c}})):(0,o.createElement)(Oo,{title:(0,i.__)("Donation Form","give"),src:`/?givewp-route=donation-form-view&form-id=${t}`,checkOrigin:!1,style:{width:"1px",minWidth:"100%",border:"0",pointerEvents:c}})}(0,o.forwardRef)((function(e,t){[e,t]=Ca(e,t,Ua);let n=(0,o.useRef)(null),[r,i]=function(){let[e,t]=(0,o.useState)(!0),n=(0,o.useRef)(!1),r=(0,o.useCallback)((e=>{n.current=!0,t(!!e)}),[]);return Ho((()=>{n.current||t(!1)}),[]),[r,e]}(),[a,s]=(0,o.useState)("input"),{labelProps:l,inputProps:u,descriptionProps:c,errorMessageProps:d}=ma({...e,inputElementType:a,label:i},n),p=(0,o.useCallback)((e=>{n.current=e,e&&s(e instanceof HTMLTextAreaElement?"textarea":"input")}),[]),f=Ea({...e,values:{isDisabled:e.isDisabled||!1,validationState:e.validationState},defaultClassName:"react-aria-TextField"});return o.createElement("div",{...qo(e),...f,ref:t,slot:e.slot,"data-disabled":e.isDisabled||void 0,"data-validation-state":e.validationState||void 0},o.createElement(Ia,{values:[[Da,{...l,ref:r}],[ka,{...u,ref:p}],[Za,{...u,ref:p}],[Aa,{slots:{description:c,errorMessage:d}}]]},f.children))})),(0,a.registerBlockType)("give/donation-form",{title:(0,i.__)("Donation Form","give"),description:(0,i.__)("The GiveWP Donation Form block inserts an existing donation form into the page. Each donation form's presentation can be customized below.","give"),category:"give",icon:(0,o.createElement)(d,{color:"grey"}),keywords:[(0,i.__)("donation","give")],supports:{html:!1},attributes:{id:{type:"number",default:0},prevId:{type:"number"},displayStyle:{type:"string",default:"onpage"},continueButtonTitle:{type:"string",default:"Donate now"},showTitle:{type:"boolean",default:!0},showGoal:{type:"boolean",default:!0},contentDisplay:{type:"boolean",default:!0},showContent:{type:"string",default:"above"},blockId:{type:"string"}},edit:function({attributes:e,isSelected:t,setAttributes:n,className:r,clientId:a}){const{id:s,blockId:l,displayStyle:u,continueButtonTitle:c}=e,{formOptions:d,isResolving:f}=function(){const e=[],{forms:t,isResolving:n}=(0,g.useSelect)((e=>{const t={per_page:100};return{forms:e("core").getEntityRecords("postType","give_forms",t),isResolving:e("core/data").getIsResolving("core","getEntityRecords",["postType","give_forms",t])}}),[]);return t?.map((({title:t,id:n,formTemplate:o,isLegacyForm:r,link:a})=>{e.push({label:(0,i.__)(t.rendered,"give"),value:n,isLegacyForm:r,isLegacyTemplate:r&&"legacy"===o,link:a})})),{isResolving:n,formOptions:e}}(),[h,v]=(0,o.useState)(!!s);(0,o.useEffect)((()=>{l||n({blockId:a}),b||"reveal"!==u||n({displayStyle:"modal"})}),[]);const[b,y,w]=(()=>{const e=d.find((e=>e.value===s));return[e?.isLegacyForm,e?.isLegacyTemplate,e?.link]})();return!1!==f?(0,o.createElement)("div",{...(0,p.useBlockProps)()},(0,o.createElement)("p",null,(0,i.__)("Loading...","give"))):(0,o.createElement)("div",{...(0,p.useBlockProps)()},s&&h?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Io,{attributes:e,setAttributes:n,formOptions:d,isResolving:f,isLegacyTemplate:y,isLegacyForm:b}),b?(0,o.createElement)("div",{className:t?`${r} isSelected`:r},(0,o.createElement)(m(),{block:"give/donation-form",attributes:e})):(0,o.createElement)(Xa,{clientId:a,formId:s,formFormat:u,openFormButton:c,link:w})):(0,o.createElement)(yo,{formOptions:d,isResolving:f,handleSelect:e=>{n({id:e}),v(!0)}}))},save:()=>null});const Ka={};Ka.orderBy=[{value:"date",label:(0,i.__)("Date Created","give")},{value:"title",label:(0,i.__)("Form Name","give")},{value:"amount_donated",label:(0,i.__)("Amount Donated","give")},{value:"number_donations",label:(0,i.__)("Number of Donations","give")},{value:"menu_order",label:(0,i.__)("Menu Order","give")},{value:"post__in",label:(0,i.__)("Provided Form IDs","give")},{value:"closest_to_goal",label:(0,i.__)("Closest To Goal","give")},{value:"random",label:(0,i.__)("Random","give")}],Ka.order=[{value:"DESC",label:(0,i.__)("Descending","give")},{value:"ASC",label:(0,i.__)("Ascending","give")}],Ka.columns=[{value:"1",label:(0,i.__)("Full Width","give")},{value:"2",label:(0,i.__)("Double","give")},{value:"3",label:(0,i.__)("Triple","give")},{value:"4",label:(0,i.__)("Max (4)","give")}],Ka.displayType=[{value:"redirect",label:(0,i.__)("Redirect","give")},{value:"modal_reveal",label:(0,i.__)("Modal","give")}],Ka.filter=[{value:"formIDs",label:(0,i.__)("Form ID","give")},{value:"categories",label:(0,i.__)("Categories","give")},{value:"tags",label:(0,i.__)("Tags","give")}],Ka.imageHeight=[{value:"auto",label:(0,i.__)("Auto","give")},{value:"custom",label:(0,i.__)("Custom","give")}];const Ja=Ka;var qa=n(2485),es=n.n(qa);function ts({display:e,selected:t}){const n=String(e);return(0,o.createElement)("div",{className:es()("give_column_selector_container",{give_column_selector_selected:n===t})},(0,o.createElement)(o.Fragment,null,Array(e).fill(null).map(((e,t)=>(0,o.createElement)("div",{key:t,className:"give_column_selector_box"}," ")))))}function ns({children:e}){return(0,o.createElement)("div",{className:"give_column_selector_row"},e)}function os({label:e,selected:t,help:n}){return(0,o.createElement)("div",{className:"give_column_selector"},e&&(0,o.createElement)("p",null,e),n&&(0,o.createElement)("p",{className:"give_column_selector_help_text"},n),"1"===t?(0,o.createElement)(ns,null,(0,o.createElement)(ts,{display:1,selected:t})):"2"===t?(0,o.createElement)(ns,null,(0,o.createElement)(ts,{display:2,selected:t})):"3"===t?(0,o.createElement)(ns,null,(0,o.createElement)(ts,{display:3,selected:t})):(0,o.createElement)(ns,null,(0,o.createElement)(ts,{display:4,selected:t})))}const rs=({attributes:e,setAttributes:t})=>{const{formsPerPage:n,paged:r,imageSize:a,imageHeight:s,formIDs:l,excludeForms:u,excludedFormIDs:c,orderBy:d,order:f,categories:m,tags:h,columns:v,showTitle:b,showExcerpt:y,excerptLength:w,showGoal:I,showFeaturedImage:E,showDonateButton:C,tagBackgroundColor:M,donateButtonTextColor:T,displayType:S,filterOptions:N,tagTextColor:x,imageHeightOptions:L,progressBarColor:O}=e,P=(e,n)=>{t({[e]:n})},A=e=>Array.isArray(e)?e:l.indexOf(",")?e.split(","):[e];return(0,o.createElement)(p.InspectorControls,{key:"inspector"},(0,o.createElement)(wo.Panel,null,(0,o.createElement)(wo.PanelBody,{title:(0,i.__)("Layout","give"),initialOpen:!0},(0,o.createElement)(os,{label:(0,i.__)("Columns","give"),selected:v,onClick:e=>P("columns",e),help:(0,i.__)('Controls how many columns of the Form Grid appear. "Best Fit" will adjust responsively to the space available.',"give")}),(0,o.createElement)(wo.SelectControl,{label:(0,i.__)("Columns","give"),name:"columns",value:v,options:Ja.columns,onChange:e=>P("columns",e)}))),(0,o.createElement)(wo.Panel,null,(0,o.createElement)(wo.PanelBody,{title:(0,i.__)("Display Elements","give"),initialOpen:!0},(0,o.createElement)(wo.ToggleControl,{className:"give-form-grid-inspector",name:"showTitle",label:(0,i.__)("Show Title","give"),checked:!!b,onChange:e=>P("showTitle",e)}),(0,o.createElement)(wo.ToggleControl,{className:"give-form-grid-inspector",name:"showGoal",label:(0,i.__)("Show Goal","give"),checked:!!I,onChange:e=>P("showGoal",e)}),(0,o.createElement)(wo.ToggleControl,{className:"give-form-grid-inspector",name:"showExcerpt",label:(0,i.__)("Show Excerpt","give"),checked:!!y,onChange:e=>P("showExcerpt",e)}),(0,o.createElement)(wo.ToggleControl,{className:"give-form-grid-inspector",name:"showDonateButton",label:(0,i.__)("Show Donate Button","give"),checked:!!C,onChange:e=>P("showDonateButton",e)}),(0,o.createElement)(wo.ToggleControl,{className:"give-form-grid-inspector",align:"right",name:"showFeaturedImage",label:(0,i.__)("Show Featured Image","give"),checked:!!E,onChange:e=>P("showFeaturedImage",e)}),E&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(wo.SelectControl,{className:"give-form-grid-inspector",name:"imageSize",label:(0,i.__)("Image Size","give"),value:a,options:(0,g.select)(p.store).getSettings().imageSizes.map((({slug:e,name:t})=>({value:e,label:t}))),onChange:e=>P("imageSize",e)}),(0,o.createElement)(wo.SelectControl,{className:"give-form-grid-inspector",name:"imageHeightOptions",label:(0,i.__)("Image Height","give"),value:L,options:Ja.imageHeight,onChange:e=>(e=>{P("imageHeightOptions",e),P("imageHeight",e)})(e)}),"custom"===L&&(0,o.createElement)(wo.TextControl,{className:"give-form-grid-inspector__filter",name:"imageHeight",value:s,onChange:e=>P("imageHeight",e),help:(0,i.__)('Featured image height. Default "auto". Accepts valid heights in px, em, or rem.',"give")})))),(0,o.createElement)(wo.Panel,null,(0,o.createElement)(wo.PanelBody,{className:"give-donation-form-grid--grid-settings",title:(0,i.__)("Grid Settings","give"),initialOpen:!0},(0,o.createElement)(wo.SelectControl,{className:"give-form-grid-inspector",label:(0,i.__)("Order By","give"),name:"orderBy",value:d,options:Ja.orderBy,onChange:e=>P("orderBy",e),help:(0,i.__)("The order forms are displayed in.","give")}),(0,o.createElement)(wo.SelectControl,{className:"give-form-grid-inspector",label:(0,i.__)("Order","give"),name:"order",value:f,options:Ja.order,onChange:e=>P("order",e),help:(0,i.__)("Whether the order ascends or descends.","give")}),(0,o.createElement)(wo.SelectControl,{className:"give-form-grid-inspector",label:(0,i.__)("Filter","give"),name:"filter",value:N,options:Ja.filter,onChange:e=>P("filterOptions",e)}),"categories"===N?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(wo.FormTokenField,{className:"give-form-grid-inspector__filter",name:"categories",value:A(m),onChange:e=>P("categories",e)}),(0,o.createElement)("p",{className:"components-form-token-field__help"},(0,i.__)("Type the name of your category to add it to the list. Only forms within the categories you choose will be displayed in this grid.","give"))):"tags"===N?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(wo.FormTokenField,{className:"give-form-grid-inspector__filter",name:"tags",value:A(h),onChange:e=>P("tags",e)}),(0,o.createElement)("p",{className:"components-form-token-field__help"},(0,i.__)("Type the name of your tag to add it to the list. Only forms with these tags you choose will be displayed in this grid.","give"))):"formIDs"===N?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(wo.FormTokenField,{className:"give-form-grid-inspector__filter",name:"formIDs",value:A(l),onChange:e=>P("formIDs",e)}),(0,o.createElement)("p",{className:"components-form-token-field__help"},(0,i.__)("Type the ID of your form to add it to the list. Only forms with these IDs you choose will be displayed in this grid.","give"))):void 0,(0,o.createElement)(wo.ToggleControl,{className:"give-form-grid-inspector exclude__form",name:"excludeForms",label:(0,i.__)("Exclude specific forms?","give"),checked:!!u,onChange:e=>P("excludeForms",e)}),u&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(wo.FormTokenField,{name:"excludedFormIDs",label:(0,i.__)("Excluded Form IDs","give"),value:A(c),onChange:e=>P("excludedFormIDs",e)}),(0,o.createElement)("p",{className:"components-form-token-field__help"},(0,i.__)("Type the ID of your form to exclude it from the list. Forms with these IDs you choose will not be displayed in this grid.","give"))))),(0,o.createElement)(wo.Panel,null,(0,o.createElement)(wo.PanelBody,{title:(0,i.__)("Grid Interaction","give"),initialOpen:!0},(0,o.createElement)(wo.SelectControl,{className:"give-form-grid-inspector",label:(0,i.__)("Display Type","give"),name:"displayType",value:S,options:Ja.displayType,onChange:e=>P("displayType",e)}),"redirect"===S?(0,o.createElement)("p",{className:"give-form-grid-inspector__help"},(0,i.__)("Users will be redirected to the donation form page.","give")):(0,o.createElement)("p",{className:"give-form-grid-inspector__help"},(0,i.__)("Modal with the donation form will be displayed on the same page.","give")),(0,o.createElement)(wo.TextControl,{className:"give-form-grid-inspector",name:"formsPerPage",label:(0,i.__)("Forms Per Page","give"),value:n,onChange:e=>P("formsPerPage",e),help:(0,i.__)("Sets the number of forms to be displayed on the first page load.","give")}),(0,o.createElement)(wo.ToggleControl,{className:"give-form-grid-inspector",name:"paged",label:(0,i.__)("Show Pagination","give"),checked:!!r,onChange:e=>P("paged",e),help:(0,i.__)("Enable form display to multiple pages.","give")}))),(0,o.createElement)(p.PanelColorSettings,{title:(0,i.__)("Color Settings","give"),colorSettings:[{value:M,onChange:e=>P("tagBackgroundColor",e),label:(0,i.__)("Tag Background Color","give")},{value:x,onChange:e=>P("tagTextColor",e),label:(0,i.__)("Tag Text Color","give")},{value:T,onChange:e=>P("donateButtonTextColor",e),label:(0,i.__)("Donate Button Text Color","give")},{value:O,onChange:e=>P("progressBarColor",e),label:(0,i.__)("Progress Bar Color","give")}]}))},is=(0,g.withSelect)((e=>({forms:e("core").getEntityRecords("postType","give_forms")})))((e=>{const{attributes:t}=e;return(0,o.createElement)(Eo.Fragment,null,(0,o.createElement)(rs,{...e}),(0,o.createElement)(m(),{block:"give/donation-form-grid",attributes:t}))})),as=((0,a.registerBlockType)("give/donation-form-grid",{title:(0,i.__)("Donation Form Grid","give"),description:(0,i.__)("The GiveWP Donation Form Grid block insert an existing donation form into the page. Each form's presentation can be customized below.","give"),category:"give",icon:(0,o.createElement)(d,{color:"grey"}),keywords:[(0,i.__)("donation","give"),(0,i.__)("grid","give")],supports:{html:!1},attributes:{formsPerPage:{type:"string",default:"12"},paged:{type:"boolean",default:!0},formIDs:{type:"array",default:[]},excludedFormIDs:{type:"array",default:[]},excludeForms:{type:"boolean",default:!1},orderBy:{type:"string",default:"date"},order:{type:"string",default:"DESC"},categories:{type:"array",default:[]},tags:{type:"array",default:[]},columns:{type:"string",default:"1"},imageSize:{type:"string",default:"medium"},imageHeight:{type:"string",default:"auto"},imageHeightOptions:{type:"string",default:"auto"},showTitle:{type:"boolean",default:!0},showExcerpt:{type:"boolean",default:!0},showGoal:{type:"boolean",default:!0},showFeaturedImage:{type:"boolean",default:!0},showDonateButton:{type:"boolean",default:!0},tagBackgroundColor:{type:"string",default:"#69b86b"},tagTextColor:{type:"string",default:"#ffffff"},donateButtonTextColor:{type:"string",default:"#69b86b"},displayType:{type:"string",default:"redirect"},excerptLength:{type:"integer",default:16},filterOptions:{type:"string",default:"tags"},progressBarColor:{type:"string",default:"#69b86b"}},edit:is,save:()=>null}),{donorsPerPage:{type:"string",default:"12"},formID:{type:"array",default:[]},ids:{type:"array",default:[]},categories:{type:"array",default:[]},tags:{type:"string",default:[]},orderBy:{type:"string",default:"post_date"},order:{type:"string",default:"DESC"},paged:{type:"string",default:"1"},columns:{type:"string",default:"3"},showAvatar:{type:"boolean",default:!0},showName:{type:"boolean",default:!0},showCompanyName:{type:"boolean",default:!1},showForm:{type:"boolean",default:!0},showTotal:{type:"boolean",default:!0},showComments:{type:"boolean",default:!0},showTributes:{type:"boolean",default:!0},showAnonymous:{type:"boolean",default:!0},onlyComments:{type:"boolean",default:!1},commentLength:{type:"string",default:"80"},readMoreText:{type:"string",default:(0,i.__)("Read more","give")},loadMoreText:{type:"string",default:(0,i.__)("Load more","give")},avatarSize:{type:"string",default:"75"},toggleOptions:{type:"string",default:"donorInfo"},filterOptions:{type:"string",default:"ids"},color:{type:"string",default:"#219653"},showTimestamp:{type:"boolean",default:!0}}),ss={};ss.columns=[{value:"1",label:(0,i.__)("Full width","give")},{value:"2",label:(0,i.__)("Double","give")},{value:"3",label:(0,i.__)("Triple","give")},{value:"4",label:(0,i.__)("Max (4)","give")}],ss.order=[{value:"DESC",label:(0,i.__)("Descending","give")},{value:"ASC",label:(0,i.__)("Ascending","give")}],ss.orderBy=[{value:"donation_amount",label:(0,i.__)("Donation Amount","give")},{value:"post_date",label:(0,i.__)("Date Created","give")}],ss.toggleOptions=[{value:"donorInfo",label:(0,i.__)("Donor Info","give")},{value:"wallAttributes",label:(0,i.__)("Wall Attributes","give")}],ss.filter=[{value:"ids",label:(0,i.__)("Donor ID","give")},{value:"formID",label:(0,i.__)("Form ID","give")},{value:"categories",label:(0,i.__)("Categories","give")},{value:"tags",label:(0,i.__)("Tags","give")}];const ls=ss;function us({options:e,onClick:t,selected:n}){return(0,o.createElement)("div",{className:"give-toggle"},e.map((({value:e,label:r},i)=>(0,o.createElement)("div",{key:i,onClick:()=>t(e),className:"give-toggle__option",style:n===e?{background:"#007cba",color:"white"}:{}},r))))}const cs=({attributes:e,setAttributes:t})=>{const{donorsPerPage:n,ids:r,formID:a,categories:s,tags:l,orderBy:u,order:c,columns:d,avatarSize:f,showAvatar:m,showName:g,showCompanyName:h,onlyComments:v,showForm:b,showTotal:y,showComments:w,showAnonymous:I,commentLength:E,readMoreText:C,loadMoreText:M,toggleOptions:T,filterOptions:S,color:N,showTimestamp:x,showTributes:L}=e,O=(e,n)=>{t({[e]:n})},P=e=>Array.isArray(e)?e:formIDs.indexOf(",")?e.split(","):[e];return(0,o.createElement)(p.InspectorControls,{key:"inspector"},(0,o.createElement)(wo.Panel,null,(0,o.createElement)(wo.PanelBody,{title:(0,i.__)("Layout","give"),initialOpen:!0},(0,o.createElement)(os,{selected:d,onClick:e=>O("columns",e),help:(0,i.__)("Controls how many columns of the Form Grid appear. All sizes will adjust responsively to the space available. The maximum number allowed per row is 4","give")}),(0,o.createElement)(wo.SelectControl,{className:"give-donor-wall-inspector",name:"columns",label:(0,i.__)("Columns","give"),value:d,options:ls.columns,onChange:e=>O("columns",e)}))),(0,o.createElement)(wo.Panel,null,(0,o.createElement)(wo.PanelBody,{title:(0,i.__)("Display Elements","give"),initialOpen:!1},(0,o.createElement)(us,{options:ls.toggleOptions,onClick:e=>O("toggleOptions",e),selected:T}),"donorInfo"===T?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(wo.ToggleControl,{className:"give-donor-wall-inspector",name:"showName",label:(0,i.__)("Show Name","give"),checked:!!g,onChange:e=>O("showName",e)}),(0,o.createElement)(wo.ToggleControl,{className:"give-donor-wall-inspector",name:"showName",label:(0,i.__)("Show Company Name","give"),checked:!!h,onChange:e=>O("showCompanyName",e)}),(0,o.createElement)(wo.ToggleControl,{className:"give-donor-wall-inspector",name:"showAnonymous",label:(0,i.__)("Show Anonymous","give"),checked:!!I,onChange:e=>O("showAnonymous",e)}),(0,o.createElement)(wo.ToggleControl,{className:"give-donor-wall-inspector",name:"showAvatar",label:(0,i.__)("Show Avatar","give"),checked:!!m,onChange:e=>O("showAvatar",e)}),(0,o.createElement)(wo.TextControl,{className:"give-donor-wall-inspector",name:"avatarSize",label:(0,i.__)("Avatar Size","give"),help:(0,i.__)("Avatar size. Default height is 75. Accepts valid heights in px.","give"),value:f,onChange:e=>O("avatarSize",e)})):(0,o.createElement)(o.Fragment,null,(0,o.createElement)(wo.ToggleControl,{className:"give-donor-wall-inspector",name:"showForm",label:(0,i.__)("Show Donation Form","give"),checked:!!b,onChange:e=>O("showForm",e)}),(0,o.createElement)(wo.ToggleControl,{className:"give-donor-wall-inspector",name:"showTotal",label:(0,i.__)("Show Total","give"),checked:!!y,onChange:e=>O("showTotal",e)}),(0,o.createElement)(wo.ToggleControl,{className:"give-donor-wall-inspector",name:"showTimestamp",label:(0,i.__)("Show Time","give"),checked:!!x,onChange:e=>O("showTimestamp",e)}),!!window.Give_Tribute&&(0,o.createElement)(wo.ToggleControl,{className:"give-donor-wall-inspector",name:"showTributes",label:(0,i.__)("Show Tributes","give"),checked:!!L,onChange:e=>O("showTributes",e)}),(0,o.createElement)(wo.ToggleControl,{className:"give-donor-wall-inspector",name:"showComments",label:(0,i.__)("Show Comments","give"),checked:!!w,onChange:e=>O("showComments",e)}),(0,o.createElement)(wo.ToggleControl,{className:"give-donor-wall-inspector",name:"onlyComments",label:(0,i.__)("Only Comments","give"),checked:!!v,onChange:e=>O("onlyComments",e)}),(0,o.createElement)(wo.TextControl,{className:"give-donor-wall-inspector",name:"commentLength",label:(0,i.__)("Comment Length","give"),help:(0,i.__)("Limits the amount of characters to be displayed on donations with comments.","give"),value:E,onChange:e=>O("commentLength",e)}),(0,o.createElement)(wo.TextControl,{className:"give-donor-wall-inspector",name:"readMoreText",label:(0,i.__)("Read More Text","give"),value:C,onChange:e=>O("readMoreText",e)})))),(0,o.createElement)(wo.Panel,null,(0,o.createElement)(wo.PanelBody,{className:"give-wall--wall-settings",title:(0,i.__)("Wall Settings","give"),initialOpen:!1},(0,o.createElement)(wo.SelectControl,{className:"give-donor-wall-inspector",label:(0,i.__)("Sort By","give"),name:"orderBy",value:u,options:ls.orderBy,onChange:e=>O("orderBy",e)}),(0,o.createElement)(wo.SelectControl,{className:"give-donor-wall-inspector",label:(0,i.__)("Order","give"),name:"order",value:c,options:ls.order,onChange:e=>O("order",e)}),(0,o.createElement)(wo.SelectControl,{className:"give-donor-wall-inspector",label:(0,i.__)("Filter","give"),name:"filter",value:S,options:ls.filter,onChange:e=>O("filterOptions",e)}),"categories"===S?(0,o.createElement)(o.Fragment,null," ",(0,o.createElement)(wo.FormTokenField,{className:"give-donor-wall-inspector",onChange:e=>O("categories",e),value:P(s)}),(0,o.createElement)("p",{className:"components-form-token-field__help"},(0,i.__)("Type the name of your category to add it to the list. Only forms within the categories you choose will be displayed in this grid.","give"))):"tags"===S?(0,o.createElement)(o.Fragment,null," ",(0,o.createElement)(wo.FormTokenField,{className:"give-donor-wall-inspector",name:"tags",value:P(l),onChange:e=>O("tags",e)}),(0,o.createElement)("p",{className:"components-form-token-field__help"},(0,i.__)("Type the name of your tag to add it to the list. Only forms with these tags you choose will be displayed in this grid.","give"))):"ids"===S?(0,o.createElement)(o.Fragment,null," ",(0,o.createElement)(wo.FormTokenField,{className:"give-donor-wall-inspector",name:"ids",value:P(r),onChange:e=>O("ids",e)}),(0,o.createElement)("p",{className:"components-form-token-field__help"},(0,i.__)("By default, all donors will display. Use this setting to restrict the donor wall to only display certain donors. Use a comma-separated list of donor IDs.","give"))):"formID"===S?(0,o.createElement)(o.Fragment,null," ",(0,o.createElement)(wo.FormTokenField,{className:"give-donor-wall-inspector",help:(0,i.__)("By Default, donations to all forms will display. Use this setting to restrict the donor to display only donations to certains forms. Use a comma-separated list of form IDs.","give"),name:"formID",value:P(a),onChange:e=>O("formID",e)}),(0,o.createElement)("p",{className:"components-form-token-field__help"},(0,i.__)("Type the ID of your form to add it to the list. Only forms with these IDs you choose will be displayed in this grid.","give"))):void 0)),(0,o.createElement)(wo.Panel,null,(0,o.createElement)(wo.PanelBody,{title:(0,i.__)("Wall Interaction","give"),initialOpen:!0},(0,o.createElement)(wo.TextControl,{className:"give-donor-wall-inspector",name:"donorsPerPage",label:(0,i.__)("Donors Per Page","give"),value:n,onChange:e=>O("donorsPerPage",e),help:(0,i.__)("How many donors should show up on the initial page load?","give")}),(0,o.createElement)(wo.TextControl,{className:"give-donor-wall-inspector",name:"loadMoreText",label:(0,i.__)("Load More Text","give"),value:M,onChange:e=>O("loadMoreText",e)}))),(0,o.createElement)(wo.Panel,null,(0,o.createElement)(wo.PanelBody,{title:(0,i.__)("Color","give"),initialOpen:!1},(0,o.createElement)(p.ColorPalette,{value:N,onChange:e=>t({color:e})}))))},{InnerBlocks:ds}=((0,a.registerBlockType)("give/donor-wall",{title:(0,i.__)("Donor Wall","give"),description:(0,i.__)("The GiveWP Donor Wall block displays donations on the front end of the site. The settings below allow you to customize the information displayed","give"),category:"give",icon:(0,o.createElement)(d,{color:"grey"}),keywords:[(0,i.__)("donation","give"),(0,i.__)("wall","give")],supports:{html:!1},attributes:as,edit:e=>{const{attributes:t}=e;return(0,o.createElement)(Eo.Fragment,null,(0,o.createElement)(cs,{...e}),(0,o.createElement)(m(),{block:"give/donor-wall",attributes:t}))},save:()=>null}),wp.blockEditor),{useEffect:ps}=wp.element,{select:fs,dispatch:ms}=wp.data,{InnerBlocks:gs}=wp.blockEditor,{registerBlockType:hs}=wp.blocks,vs=(hs("give/multi-form-goal",{title:(0,i.__)("Multi-Form Goal","give"),description:(0,i.__)("The Multi-Form Goals block displays progress made across donation forms towards a common goal.","give"),category:"give",icon:(0,o.createElement)(d,{color:"grey"}),keywords:[(0,i.__)("donation","give"),(0,i.__)("multi form goals","give")],supports:{align:["wide"]},edit:({isSelected:e,clientId:t})=>{ps((()=>{e&&n()}),[]);const n=()=>{const e=fs("core/editor").getBlocksByClientId(t)[0],n=e.innerBlocks[e.innerBlocks.length-1];n&&ms("core/block-editor").selectBlock(n.clientId)},r=[["core/media-text",{imageFill:!0},[["core/heading",{placeholder:(0,i.__)("Heading","give")}],["core/paragraph",{placeholder:(0,i.__)("Summary","give")}]]],["give/progress-bar",{}]];return(0,o.createElement)("div",{className:"give-multi-form-goal-block"},(0,o.createElement)(ds,{template:r,templateLock:"all"}))},save:()=>(0,o.createElement)("div",{className:"give-multi-form-goal-block"},(0,o.createElement)(gs.Content,null))}),{ids:{type:"array",default:[]},categories:{type:"array",default:[]},tags:{type:"array",default:[]},goal:{type:"string",default:"1000"},enddate:{type:"string",default:""},color:{type:"string",default:"#66bb6a"}}),{useInstanceId:bs}=wp.compose,{BaseControl:ys}=wp.components,ws=({name:e,label:t=null,help:n,className:r,value:a=null,placeholder:s=`${(0,i.__)("Select","give")}...`,hideLabelFromVision:l,isLoading:u,isDisabled:c,onChange:d=null,options:p=null})=>{const f=`give-multi-select-control-${e}-${bs(ws)}`;return p&&p.length<1?null:(0,o.createElement)(ys,{label:t,hideLabelFromVision:l,id:f,help:n,className:r},(0,o.createElement)(ho,{isLoading:u,inputId:f,value:a,onChange:e=>d(e),options:p,maxMenuHeight:"200px",isDisabled:c,placeholder:s,isMulti:!0,theme:e=>({...e,colors:{...e.colors,primary:"#007cba",primary75:"#31a6e0",primary50:"#5dbae8",primary25:"#9edaf7"}})}))};ws.propTypes={label:l().string,value:l().any.isRequired,onChange:l().func,options:l().array.isRequired,name:l().string.isRequired,help:l().string,className:l().string,hideLabelFromVision:l().bool,isLoading:l().bool,isDisabled:l().bool,placeholder:l().string};const Is=ws,{useInstanceId:Es}=wp.compose,{BaseControl:Cs,ColorPalette:Ms}=wp.components,Ts=({name:e,label:t,help:n,className:r,value:i,hideLabelFromVision:a,onChange:s=null,colors:l})=>{const u=`give-color-control-${e}-${Es(Ts)}`;return(0,o.createElement)(Cs,{label:t,hideLabelFromVision:a,id:u,help:n,className:r},(0,o.createElement)(Ms,{value:i,colors:l,onChange:e=>s(e),clearable:!0}))};Ts.propTypes={label:l().string,value:l().any.isRequired,onChange:l().func,name:l().string.isRequired,help:l().string,className:l().string,hideLabelFromVision:l().bool};const Ss=Ts,{useInstanceId:Ns}=wp.compose,{DateTimePicker:xs,BaseControl:Ls,Button:Os,Dropdown:Ps}=wp.components,{__experimentalGetSettings:As,date:Ds}=wp.date,ks=({name:e,label:t,help:n,className:r,value:a,onChange:s=null})=>{const l=`give-date-time-control-${e}-${Ns(ks)}`,u=As(),c=/a(?!\\)/i.test(u.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,o.createElement)(Ls,{label:t,hideLabelFromVision:!0,id:l,help:n,className:r},(0,o.createElement)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},(0,o.createElement)("span",null,t),(0,o.createElement)(Ps,{position:"bottom right",renderToggle:({isOpen:e,onToggle:t})=>(0,o.createElement)(Os,{isSecondary:!0,onClick:t,"aria-expanded":e},""!==a?Ds("F j, Y",a):(0,i.__)("Set date","give")),renderContent:()=>(0,o.createElement)(xs,{currentDate:a,onChange:e=>s(e),is12Hour:c})})))};ks.propTypes={label:l().string,value:l().any.isRequired,onChange:l().func,name:l().string.isRequired,help:l().string,className:l().string};const _s=ks,{useSelect:js}=wp.data,{InspectorControls:Rs}=wp.blockEditor,{PanelBody:Fs,TextControl:zs}=wp.components,Vs=giveProgressBarThemeSupport.editorColorPalette,Bs=({attributes:e,setAttributes:t})=>{const{ids:n,categories:r,tags:a,goal:s,enddate:l,color:u}=e,c=js((e=>{const t=e("core").getEntityRecords("postType","give_forms");return t?t.map((e=>({label:e.title.raw?e.title.raw:(0,i.__)("(no title)"),value:e.id}))):[]}),[]),d=js((e=>{const t=e("core").getEntityRecords("taxonomy","give_forms_tag",{per_page:100});return t?t.map((e=>({label:e.name?e.name:(0,i.__)("(no title)"),value:e.id}))):[]}),[]),p=js((e=>{const t=e("core").getEntityRecords("taxonomy","give_forms_category",{per_page:100});return t?t.map((e=>({label:e.name?e.name:(0,i.__)("(no title)"),value:e.id}))):[]}),[]),f=(e,n)=>{t({[e]:n})};return(0,o.createElement)(Rs,{key:"inspector"},(0,o.createElement)(Fs,{title:(0,i.__)("Goal","give"),initialOpen:!0},(0,o.createElement)(zs,{name:"goal",label:(0,i.__)("Goal amount","give"),type:"number",onChange:e=>f("goal",e),value:s}),(0,o.createElement)(_s,{name:"enddate",label:(0,i.__)("Goal end date","give"),value:l,onChange:e=>f("enddate",e)}),(0,o.createElement)(Ss,{colors:Vs,name:"color",label:(0,i.__)("Progress bar color","give"),onChange:e=>f("color",e),value:u})),(0,o.createElement)(Fs,{title:(0,i.__)("Filters","give"),initialOpen:!1},(0,o.createElement)(Is,{name:"ids",label:(0,i.__)("Filter by forms","give"),value:c.filter((e=>n.includes(e.value))),placeholder:`${(0,i.__)("All forms","give")}...`,options:c,onChange:e=>f("ids",e?e.map((e=>e.value)):[])}),(0,o.createElement)(Is,{name:"categories",label:(0,i.__)("Filter by categories","give"),value:p.filter((e=>r.includes(e.value))),placeholder:`${(0,i.__)("All categories","give")}...`,options:p,onChange:e=>f("categories",e?e.map((e=>e.value)):[])}),(0,o.createElement)(Is,{name:"tags",label:(0,i.__)("Filter by tags","give"),value:d.filter((e=>a.includes(e.value))),placeholder:`${(0,i.__)("All tags","give")}...`,options:d,onChange:e=>f("tags",e?e.map((e=>e.value)):[])})))},Hs=window.lodash,{Component:Ws,RawHTML:Gs,Fragment:Ys}=wp.element,Zs=wp.apiFetch,{addQueryArgs:Us}=wp.url,{Placeholder:Qs}=wp.components,$s=class extends Ws{constructor(e){super(e),this.state={response:null,prevResponse:null}}componentDidMount(){this.isStillMounted=!0,this.fetch(this.props),this.fetch=(0,Hs.debounce)(this.fetch,500)}componentWillUnmount(){this.isStillMounted=!1}componentDidUpdate(e){(0,Hs.isEqual)(e,this.props)||this.fetch(this.props)}fetch(e){if(!this.isStillMounted)return;null!==this.state.response&&this.setState((e=>({response:null,prevResponse:e.response})));const{block:t,attributes:n=null,urlQueryArgs:o={}}=e,r=function(e,t=null,n={}){return Us(`/wp/v2/block-renderer/${e}`,{context:"edit",...null!==t?{attributes:t}:{},...n})}(t,n,o),i=this.currentFetchRequest=Zs({path:r}).then((e=>{this.isStillMounted&&i===this.currentFetchRequest&&e&&this.setState({response:e.rendered})})).catch((e=>{this.isStillMounted&&i===this.currentFetchRequest&&this.setState({response:{error:!0,errorMsg:e.message}})}));return i}render(){const{right:e,top:t,unit:n}=this.props.spinnerLocation,r=this.state.response,a=this.state.prevResponse;let s="";null!==a&&(s=`<div style="position:relative;"><div style="position:absolute;right:${e}${n};top:${t}${n};z-index:1"><span class="components-spinner"></span></div>${a}</div>`);const{className:l,EmptyResponsePlaceholder:u=({className:e})=>(0,o.createElement)(Qs,{className:e},(0,i.__)("Block rendered as empty.")),ErrorResponsePlaceholder:c=({response:e,className:t})=>{const n=sprintf( // translators: %s: error message describing the problem // translators: %s: error message describing the problem (0,i.__)("Error loading block: %s"),e.errorMsg);return(0,o.createElement)(Qs,{className:t},n)}}=this.props;return""===r?(0,o.createElement)(u,{response:r,...this.props}):r?r.error?(0,o.createElement)(c,{response:r,...this.props}):(0,o.createElement)(Gs,{key:"html",className:l},r):(0,o.createElement)(Ys,null,(0,o.createElement)(Gs,{key:"html",className:l},s))}},{Fragment:Xs}=wp.element,{registerBlockType:Ks}=wp.blocks;Ks("give/progress-bar",{title:(0,i.__)("Progress Bar","give"),description:(0,i.__)("The Progress Bar block displays progress made across donation forms towards a common goal.","give"),category:"give",icon:(0,o.createElement)(d,{color:"grey"}),keywords:[(0,i.__)("donation","give"),(0,i.__)("progress-bar","give")],attributes:vs,parent:["give/multi-form-goal"],edit:({attributes:e,setAttributes:t})=>(0,o.createElement)(Xs,null,(0,o.createElement)(Bs,{attributes:e,setAttributes:t}),(0,o.createElement)($s,{block:"give/progress-bar",attributes:e,spinnerLocation:{right:0,top:-30,unit:"px"}}))})},2485:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)o.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},4146:(e,t,n)=>{"use strict";var o=n(3404),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var r=f(n);r&&r!==m&&e(t,r,o)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),h=0;h<a.length;++h){var v=a[h];if(!(i[v]||o&&o[v]||g&&g[v]||s&&s[v])){var b=p(n,v);try{u(t,v,b)}catch(e){}}}}return t}},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,v=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 I(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case h:case g:case l:return e;default:return t}}case r:return t}}}function E(e){return I(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=i,t.Lazy=h,t.Memo=g,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||I(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return I(e)===u},t.isContextProvider=function(e){return I(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return I(e)===p},t.isFragment=function(e){return I(e)===i},t.isLazy=function(e){return I(e)===h},t.isMemo=function(e){return I(e)===g},t.isPortal=function(e){return I(e)===r},t.isProfiler=function(e){return I(e)===s},t.isStrictMode=function(e){return I(e)===a},t.isSuspense=function(e){return I(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=I},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1063:(e,t,n)=>{"use strict";var o=n(1609),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useState,a=o.useEffect,s=o.useLayoutEffect,l=o.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}"undefined"==typeof window||void 0===window.document||window.document.createElement;void 0!==o.useSyncExternalStore&&o.useSyncExternalStore},9888:(e,t,n)=>{"use strict";n(1063)},1609:e=>{"use strict";e.exports=window.React}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.m=t,e=[],o.O=(t,n,r,i)=>{if(!n){var a=1/0;for(c=0;c<e.length;c++){for(var[n,r,i]=e[c],s=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(s=!1,i<a&&(a=i));if(s){e.splice(c--,1);var u=r();void 0!==u&&(t=u)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[n,r,i]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={894:0,865:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[a,s,l]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(l)var c=l(o)}for(t&&t(n);u<a.length;u++)i=a[u],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(c)},n=globalThis.webpackChunkgive=globalThis.webpackChunkgive||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[865],(()=>o(2507)));r=o.O(r)})();