Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.137.177.204
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/tacafoundation.org/wp-content/plugins/give/build/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/tacafoundation.org/wp-content/plugins/give/build//adminBlocks.js
(()=>{var e,t={6675:(e,t,n)=>{"use strict";var o=n(9196),r=n.n(o);const i=window.wp.i18n,a=window.wp.blocks;var s=n(5697),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,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=h(o))return o;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=new 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=Object.prototype.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,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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.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)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},S.apply(this,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,t){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(8679);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)&&gt(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)}(l,e);var t,n,r,i,a,s=(t=l,n=O(),function(){var e,o=L(t);if(n){var r=L(this).constructor;e=Reflect.construct(o,arguments,r)}else e=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,e)});function l(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var o=t.props,r=o.onChange,i=o.name;n.name=i,t.ariaOnChange(e,n),r(e,n)},t.setValue=function(e,n,o){var r=t.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:o})},t.selectOption=function(e){var n=t.props,o=n.blurInputOnSelect,r=n.isMulti,i=n.name,a=t.state.selectValue,s=r&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});r?t.setValue([].concat(P(a),[e]),"select-option",e):t.setValue(e,"select-option")}o&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,o=t.state.selectValue,r=t.getOptionValue(e),i=o.filter((function(e){return t.getOptionValue(e)!==r})),a=Wt(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Wt(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,o=n[n.length-1],r=n.slice(0,n.length-1),i=Wt(e,r,r[0]||null);t.onChange(i,{action:"pop-value",removedValue:o})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return xt.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return ao(t.props,e)},t.getOptionValue=function(e){return so(t.props,e)},t.getStyles=function(e,n){var o=t.props.unstyled,r=qn[e](n,o);r.boxSizing="border-box";var i=t.props.styles[e];return i?i(r,n):r},t.getClassNames=function(e,n){var o,r;return null===(o=(r=t.props.classNames)[e])||void 0===o?void 0:o.call(r,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,w(w({},yn),e.components);var e},t.buildCategorizedOptions=function(){return oo(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return ro(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:w({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,o=n.isMulti,r=n.menuIsOpen;t.focusInput(),r?(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&At(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,o=n&&n.item(0);o&&(t.initialTouchX=o.clientX,t.initialTouchY=o.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,o=n&&n.item(0);if(o){var r=Math.abs(o.clientX-t.initialTouchX),i=Math.abs(o.clientY-t.initialTouchY);t.userIsDragging=r>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,o=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(o,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return po(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,o=n.isMulti,r=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,m=f.focusedOption,g=f.focusedValue,h=f.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!o||a)return;t.focusValue("previous");break;case"ArrowRight":if(!o||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)t.removeValue(g);else{if(!r)return;o?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!m||p&&t.isOptionSelected(m,h))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(u){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++fo),t.state.selectValue=Lt(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),o=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[o]}return t}return r=l,i=[{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())}}],a=[{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})}}],i&&N(r.prototype,i),a&&N(r,a),Object.defineProperty(r,"prototype",{writable:!1}),l}(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")))))}function Eo(){return Eo=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},Eo.apply(this,arguments)}function Co(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 Mo,To,So=(Mo=function(e){!function(t){if("undefined"!=typeof window){var n,o=0,r=!1,i=!1,a=7,s="[iFrameSizer]",l=s.length,u=null,c=window.requestAnimationFrame,d={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},p={},f=null,m={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(){E("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},g={};window.jQuery&&((n=window.jQuery).fn?n.fn.iFrameResize||(n.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){j(n,e)})).end()}):I("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof t&&t.amd?t([],V):e.exports=V(),window.iFrameResize=window.iFrameResize||V()}function h(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function v(e,t,n){e.addEventListener(t,n,!1)}function b(e,t,n){e.removeEventListener(t,n,!1)}function y(e){return p[e]?p[e].log:r}function w(e,t){C("log",e,t,y(e))}function I(e,t){C("info",e,t,y(e))}function E(e,t){C("warn",e,t,!0)}function C(e,t,n,o){!0===o&&"object"==typeof window.console&&console[e](function(e){return s+"["+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 M(e){function t(){n("Height"),n("Width"),D((function(){A(F),L(z),m("onResized",F)}),F,"init")}function n(e){var t=Number(p[z]["max"+e]),n=Number(p[z]["min"+e]),o=e.toLowerCase(),r=Number(F[o]);w(z,"Checking "+o+" is in range "+n+"-"+t),r<n&&(r=n,w(z,"Set "+o+" to min value")),r>t&&(r=t,w(z,"Set "+o+" to max value")),F[o]=""+r}function o(e){return R.substr(R.indexOf(":")+a+e)}function r(e,t){var n,o;n=function(){var n,o;k("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),o=F.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)},g[o=t]||(g[o]=setTimeout((function(){g[o]=null,n()}),32))}function i(e){var t=e.getBoundingClientRect();return x(z),{x:Math.floor(Number(t.left)+Number(u.x)),y:Math.floor(Number(t.top)+Number(u.y))}}function c(e){var t=e?i(F.iframe):{x:0,y:0},n={x:Number(F.width)+t.x,y:Number(F.height)+t.y};w(z,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):E(z,"Unable to scroll to requested position, window.parentIFrame not found"):(u=n,d(),w(z,"--"))}function d(){!1!==m("onScroll",u)?L(z):O()}function f(e){m(e,{iframe:F.iframe,screenX:F.width,screenY:F.height,type:F.type})}function m(e,t){return T(z,e,t)}var h,y,C,M,S,j,R=e.data,F={},z=null;"[iFrameResizerChild]Ready"===R?function(){for(var e in p)k("iFrame requested init",_(e),p[e].iframe,e)}():s===(""+R).substr(0,l)&&R.substr(l).split(":")[0]in p?(M=(C=R.substr(l).split(":"))[1]?parseInt(C[1],10):0,S=p[C[0]]&&p[C[0]].iframe,j=getComputedStyle(S),F={iframe:S,id:C[0],height:M+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(j)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(j),width:C[2],type:C[3]},z=F.id,p[z]&&(p[z].loaded=!0),(y=F.type in{true:1,false:1,undefined:1})&&w(z,"Ignoring init message from meta parent page"),!y&&function(e){var t=!0;return p[e]||(t=!1,E(F.type+" No settings for "+e+". Message was: "+R)),t}(z)&&(w(z,"Received: "+R),h=!0,null===F.iframe&&(E(z,"IFrame ("+F.id+") not found"),h=!1),h&&function(){var t,n=e.origin,o=p[z]&&p[z].checkOrigin;if(o&&""+n!="null"&&!(o.constructor===Array?function(){var e=0,t=!1;for(w(z,"Checking connection is from allowed list of origins: "+o);e<o.length;e++)if(o[e]===n){t=!0;break}return t}():(t=p[z]&&p[z].remoteHost,w(z,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+F.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(p[z]&&p[z].firstRun&&p[z]&&(p[z].firstRun=!1),F.type){case"close":N(F.iframe);break;case"message":g=o(6),w(z,"onMessage passed: {iframe: "+F.iframe.id+", message: "+g+"}"),m("onMessage",{iframe:F.iframe,message:JSON.parse(g)}),w(z,"--");break;case"mouseenter":f("onMouseEnter");break;case"mouseleave":f("onMouseLeave");break;case"autoResize":p[z].autoResize=JSON.parse(o(9));break;case"scrollTo":c(!1);break;case"scrollToOffset":c(!0);break;case"pageInfo":r(p[z]&&p[z].iframe,z),function(){function e(e,o){function i(){p[n]?r(p[n].iframe,n):t()}["scroll","resize"].forEach((function(t){w(n,e+t+" listener for sendPageInfo"),o(window,t,i)}))}function t(){e("Remove ",b)}var n=z;e("Add ",v),p[n]&&(p[n].stopPageInfo=t)}();break;case"pageInfoStop":p[z]&&p[z].stopPageInfo&&(p[z].stopPageInfo(),delete p[z].stopPageInfo);break;case"inPageLink":e=o(9),a=e.split("#")[1]||"",s=decodeURIComponent(a),(l=document.getElementById(s)||document.getElementsByName(s)[0])?(n=i(l),w(z,"Moving to in page link (#"+a+") at x: "+n.x+" y: "+n.y),u={x:n.x,y:n.y},d(),w(z,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(a):w(z,"In page link #"+a+" not found and window.parentIFrame not found"):w(z,"In page link #"+a+" not found");break;case"reset":P(F);break;case"init":t(),m("onInit",F.iframe);break;default:t()}var e,n,a,s,l,g}())):I(z,"Ignored: "+R)}function T(e,t,n){var o=null,r=null;if(p[e]){if("function"!=typeof(o=p[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");r=o(n)}return r}function S(e){var t=e.id;delete p[t]}function N(e){var t=e.id;if(!1!==T(t,"onClose",t)){w(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){E(e)}T(t,"onClosed",t),w(t,"--"),S(e)}else w(t,"Close iframe cancelled by onClose event")}function x(e){null===u&&w(e,"Get page position: "+(u={x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}).x+","+u.y)}function L(e){null!==u&&(window.scrollTo(u.x,u.y),w(e,"Set page position: "+u.x+","+u.y),O())}function O(){u=null}function P(e){w(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),x(e.id),D((function(){A(e),k("reset","reset",e.iframe,e.id)}),e,"reset")}function A(e){function t(t){i||"0"!==e[t]||(i=!0,w(o,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(p).forEach((function(e){!function(e){function t(t){return"0px"===(p[e]&&p[e].iframe.style[t])}p[e]&&null!==p[e].iframe.offsetParent&&(t("height")||t("width"))&&k("Visibility change","resize",p[e].iframe,e)}(e)}))}function t(t){w("window","Mutation observed: "+t[0].target+" "+t[0].type),R(e,16)}var n,o=h();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",w(e.id,"IFrame ("+o+") "+t+" set to "+e[t]+"px")):w("undefined","messageData id not set")}(n),t(n)}var o=e.iframe.id;p[o]&&(p[o].sizeHeight&&n("height"),p[o].sizeWidth&&n("width"))}function D(e,t,n){n!==t.type&&c&&!window.jasmine?(w(t.id,"Requesting animation frame"),c(e)):e()}function k(e,t,n,o,r){var i,a=!1;o=o||n.id,p[o]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(i=p[o]&&p[o].targetOrigin,w(o,"["+e+"] Sending msg to iframe["+o+"] ("+t+") targetOrigin: "+i),n.contentWindow.postMessage(s+t,i)):E(o,"["+e+"] IFrame("+o+") not found"),r&&p[o]&&p[o].warningTimeout&&(p[o].msgTimeout=setTimeout((function(){!p[o]||p[o].loaded||a||(a=!0,E(o,"IFrame has not responded within "+p[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."))}),p[o].warningTimeout)))}function _(e){return e+":"+p[e].bodyMarginV1+":"+p[e].sizeWidth+":"+p[e].log+":"+p[e].interval+":"+p[e].enablePublicMethods+":"+p[e].autoResize+":"+p[e].bodyMargin+":"+p[e].heightCalculationMethod+":"+p[e].bodyBackground+":"+p[e].bodyPadding+":"+p[e].tolerance+":"+p[e].inPageLinks+":"+p[e].resizeFrom+":"+p[e].widthCalculationMethod}function j(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],E(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||m.id+o++,null!==document.getElementById(i)&&(i+=o++),t=i),r=(n||{}).log,w(t,"Added missing iframe ID: "+t+" ("+e.src+")")),t}(e.id);a in p&&"iFrameResizer"in e?E(a,"Ignored iFrame, already setup."):(function(t){var n;t=t||{},p[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 m)Object.prototype.hasOwnProperty.call(m,t)&&(p[a][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:m[t])}(t),p[a]&&(p[a].targetOrigin=!0===p[a].checkOrigin?""===(n=p[a].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(n),function(){switch(w(a,"IFrame scrolling "+(p[a]&&p[a].scrolling?"enabled":"disabled")+" for "+a),e.style.overflow=!1===(p[a]&&p[a].scrolling)?"hidden":"auto",p[a]&&p[a].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=p[a]?p[a].scrolling:"no"}}(),function(){function t(t){1/0!==p[a][t]&&0!==p[a][t]&&(e.style[t]=p[a][t]+"px",w(a,"Set "+t+" = "+p[a][t]+"px"))}function n(e){if(p[a]["min"+e]>p[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(p[a]&&p[a].bodyMargin)&&"0"!==(p[a]&&p[a].bodyMargin)||(p[a].bodyMarginV1=p[a].bodyMargin,p[a].bodyMargin=p[a].bodyMargin+"px"),function(n){var o=h();o&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&N(e)}))}))})).observe(e.parentNode,{childList:!0})}(o),v(e,"load",(function(){var o,r;k("iFrame.onload",n,e,t,!0),o=p[a]&&p[a].firstRun,r=p[a]&&p[a].heightCalculationMethod in d,!o&&r&&P({iframe:e,height:0,width:0,type:"init"})})),k("init",n,e,t,!0)}(_(a)),p[a]&&(p[a].iframe.iFrameResizer={close:N.bind(null,p[a].iframe),removeListeners:S.bind(null,p[a].iframe),resize:k.bind(null,"Window resize","resize",p[a].iframe),moveToAnchor:function(e){k("Move to anchor","moveToAnchor:"+e,p[a].iframe,a)},sendMessage:function(e){k("Send Message","message:"+(e=JSON.stringify(e)),p[a].iframe,a)}}))}function R(e,t){null===f&&(f=setTimeout((function(){f=null,e()}),t))}function F(){"hidden"!==document.visibilityState&&(w("document","Trigger event: Visiblity change"),R((function(){z("Tab Visable","resize")}),16))}function z(e,t){Object.keys(p).forEach((function(n){(function(e){return p[e]&&"parent"===p[e].resizeFrom&&p[e].autoResize&&!p[e].firstRun})(n)&&k(e,t,p[n].iframe,n)}))}function V(){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+">")}(),j(t,e),n.push(t))}var n;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!c;e+=1)c=window[t[e]+"RequestAnimationFrame"];c?c=c.bind(window):w("setup","RequestAnimationFrame not supported")}(),v(window,"message",M),v(window,"resize",(function(){w("window","Trigger event: resize"),R((function(){z("Window resize","resize")}),16)})),v(document,"visibilitychange",F),v(document,"-webkit-visibilitychange",F),function(o,r){switch(n=[],function(e){e&&e.enablePublicMethods&&E("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}}}()},Mo(To={exports:{}}),To.exports),No=function(){},xo=function(e){var t=e.title,n=e.forwardRef,i=Co(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,Co(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 No(!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 So(Eo({},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",Eo({title:t},a,{ref:s}))};xo.defaultProps={title:"iframe"},xo.propTypes={title:l().string};const Lo=xo,Oo={prefix:String(Math.round(1e10*Math.random())),current:0,isSSR:!1},Po=o.createContext(Oo);let Ao=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Do=new WeakMap;const ko="function"==typeof o.useId?function(e){let t=o.useId(),[n]=(0,o.useState)(Fo());return e||`${n?"react-aria":`react-aria${Oo.prefix}`}-${t}`}:function(e){let t=(0,o.useContext)(Po);t!==Oo||Ao||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)(Po),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=Do.get(e);null==n?Do.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,Do.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function _o(){return!1}function jo(){return!0}function Ro(e){return()=>{}}function Fo(){return"function"==typeof o.useSyncExternalStore?o.useSyncExternalStore(Ro,_o,jo):(0,o.useContext)(Po).isSSR}function zo(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=zo(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}const Vo=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=zo(e))&&(o&&(o+=" "),o+=t);return o},Bo="undefined"!=typeof document?o.useLayoutEffect:()=>{};let Ho=new Map;function Wo(e){let[t,n]=(0,o.useState)(e),r=(0,o.useRef)(null),i=ko(t),a=(0,o.useCallback)((e=>{r.current=e}),[]);return Ho.set(i,a),Bo((()=>{let e=i;return()=>{Ho.delete(e)}}),[i]),(0,o.useEffect)((()=>{let e=r.current;e&&(r.current=null,n(e))})),i}function Go(e,t){if(e===t)return e;let n=Ho.get(e);if(n)return n(t),t;let o=Ho.get(t);return o?(o(e),e):t}function Yo(e=[]){let t=Wo(),[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]);Bo((()=>{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 Bo(i,[t,i,...e]),n}function Zo(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function Uo(...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]=Zo(n,r):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof r?"id"===e&&n&&r?t.id=Go(n,r):t[e]=void 0!==r?r:n:t[e]=Vo(n,r)}}return t}function Qo(...e){return 1===e.length?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}const $o=new Set(["id"]),Xo=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ko=/^(data-.*)$/;function Jo(e,t={}){let{labelable:n,propNames:o}=t,r={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&($o.has(t)||n&&Xo.has(t)||(null==o?void 0:o.has(t))||Ko.test(t))&&(r[t]=e[t]);return r}function qo(e){if(function(){if(null==er){er=!1;try{document.createElement("div").focus({get preventScroll(){return er=!0,!0}})}catch(e){}}return er}())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 er=null,tr=new Map,nr=new Set;function or(){if("undefined"==typeof window)return;let e=t=>{let n=tr.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),tr.delete(t.target)),0===tr.size)){for(let e of nr)e();nr.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=tr.get(t.target);n||(n=new Set,tr.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function rr(e){requestAnimationFrame((()=>{0===tr.size?e():nr.add(e)}))}function ir(e,t){let{id:n,"aria-label":o,"aria-labelledby":r}=e;if(n=Wo(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 ar(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 sr(e,t){Bo((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function lr(e){for(ur(e)&&(e=e.parentElement);e&&!ur(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function ur(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}"undefined"!=typeof document&&("loading"!==document.readyState?or():document.addEventListener("DOMContentLoaded",or));let cr="undefined"!=typeof document&&window.visualViewport;function dr(){return{width:(null==cr?void 0:cr.width)||window.innerWidth,height:(null==cr?void 0:cr.height)||window.innerHeight}}function pr(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 fr(){return pr(/^Mac/i)}function mr(){return pr(/^iPhone/i)||pr(/^iPad/i)||fr()&&navigator.maxTouchPoints>1}function gr(e){const t=(0,o.useRef)(null);return Bo((()=>{t.current=e}),[e]),(0,o.useCallback)(((...e)=>(0,t.current)(...e)),[])}function hr(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 vr(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function br(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,vr(e,t,"set"),n),n}new Map;let yr="default",wr="",Ir=new WeakMap;function Er(e){mr()?("default"===yr&&(wr=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),yr="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(Ir.set(e,e.style.userSelect),e.style.userSelect="none")}function Cr(e){if(mr()){if("disabled"!==yr)return;yr="restoring",setTimeout((()=>{rr((()=>{"restoring"===yr&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=wr||""),wr="",yr="default")}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ir.has(e)){let t=Ir.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Ir.delete(e)}}const Mr=o.createContext(null);Mr.displayName="PressResponderContext";var Tr=new WeakMap;class Sr{continuePropagation(){br(this,Tr,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(this,vr(this,Tr,"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=Tr),r.set(o,i),br(this,Tr,!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 Nr(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)(Mr);if(t){let{register:n,...o}=t;e=Uo(o,e),n()}return sr(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=gr(((e,t)=>{let o=h.current;if(s||o.didFirePressStart)return;let i=!0;if(r){let n=new Sr("pressstart",t,e);r(n),i=n.shouldStopPropagation}return n&&n(!0),o.didFirePressStart=!0,g(!0),i})),w=gr(((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 Sr("pressend",o,e);i(t),l=t.shouldStopPropagation}if(n&&n(!1),g(!1),t&&r&&!s){let n=new Sr("press",o,e);t(n),l&&(l=n.shouldStopPropagation)}return l})),I=gr(((e,t)=>{if(!s){if(a){let n=new Sr("pressup",t,e);return a(n),n.shouldStopPropagation}return!0}})),E=gr((e=>{let t=h.current;t.isPressed&&(t.isOverTarget&&w(Pr(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,b(),d||Cr(t.target))})),C=gr((e=>{c&&E(e)})),M=(0,o.useMemo)((()=>{let e=h.current,t={onKeyDown(t){if(Lr(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){kr(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&&xr(t.currentTarget)&&t.stopPropagation()},onKeyUp(t){Lr(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target)&&I(Pr(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||hr(t.nativeEvent))){s||u||qo(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&&Lr(t,e.target)){kr(t.target,t.key)&&t.preventDefault(),e.isPressed=!1;let n=t.target,o=w(Pr(e.target,t),"keyboard",e.target.contains(n));b(),o&&t.stopPropagation(),e.target instanceof HTMLElement&&e.target.contains(n)&&(xr(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;Dr(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||qo(t.currentTarget),d||Er(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&&(Dr(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&Ar(t,t.currentTarget)&&I(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(Ar(t,e.target)?e.isOverTarget||(e.isOverTarget=!0,y(Pr(e.target,t),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,w(Pr(e.target,t),e.pointerType,!1),C(t)))},o=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(Ar(t,e.target)?w(Pr(e.target,t),e.pointerType):e.isOverTarget&&w(Pr(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,b(),d||Cr(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)&&(Dr(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents?t.stopPropagation():(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=hr(t.nativeEvent)?"virtual":"mouse",s||u||qo(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:(Ar(t,e.target)?w(Pr(e.target,t),e.pointerType):e.isOverTarget&&w(Pr(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||qo(t.currentTarget),d||Er(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=Or(t.nativeEvent,e.activePointerId),o=!0;n&&Ar(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=Or(t.nativeEvent,e.activePointerId),o=!0;n&&Ar(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||Cr(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||Cr(h.current.target)}),[d]),{isPressed:l||m,pressProps:Uo(f,M)}}function xr(e){return"A"===e.tagName&&e.hasAttribute("href")}function Lr(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&&!jr(r,n)||r instanceof HTMLTextAreaElement||r.isContentEditable||xr(r)&&("button"!==i||"Enter"===n)||"link"===i&&"Enter"!==n)}function Or(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 Pr(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Ar(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 Dr(e){return!(e instanceof HTMLElement&&e.draggable)}function kr(e,t){return e instanceof HTMLInputElement?!jr(e,t):!(e instanceof HTMLButtonElement)||"submit"!==e.type&&"reset"!==e.type}const _r=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function jr(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:_r.has(e.type)}class Rr{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 Fr(e){let t=(0,o.useRef)({isFocused:!1,observer:null});Bo((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=gr((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 Rr("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 zr(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=Fr(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 Vr=null,Br=new Set,Hr=!1,Wr=!1,Gr=!1;const Yr={Tab:!0,Escape:!0};function Zr(e,t){for(let n of Br)n(e,t)}function Ur(e){Wr=!0,function(e){return!(e.metaKey||!fr()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Vr="keyboard",Zr("keyboard",e))}function Qr(e){Vr="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Wr=!0,Zr("pointer",e))}function $r(e){hr(e)&&(Wr=!0,Vr="virtual")}function Xr(e){e.target!==window&&e.target!==document&&(Wr||Gr||(Vr="virtual",Zr("virtual",e)),Wr=!1,Gr=!1)}function Kr(){Wr=!1,Gr=!0}function Jr(){if("undefined"==typeof window||Hr)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Wr=!0,e.apply(this,arguments)},document.addEventListener("keydown",Ur,!0),document.addEventListener("keyup",Ur,!0),document.addEventListener("click",$r,!0),window.addEventListener("focus",Xr,!0),window.addEventListener("blur",Kr,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Qr,!0),document.addEventListener("pointermove",Qr,!0),document.addEventListener("pointerup",Qr,!0)):(document.addEventListener("mousedown",Qr,!0),document.addEventListener("mousemove",Qr,!0),document.addEventListener("mouseup",Qr,!0)),Hr=!0}function qr(){return"pointer"!==Vr}function ei(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=Fr(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?Jr():document.addEventListener("DOMContentLoaded",Jr));let ti=!1,ni=0;function oi(){ti=!0,setTimeout((()=>{ti=!1}),50)}function ri(e){"touch"===e.pointerType&&oi()}function ii(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",ri):document.addEventListener("touchend",oi),ni++,()=>{ni--,ni>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",ri):document.removeEventListener("touchend",oi))}}function ai(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 si(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 li(e){if("virtual"===Vr){let t=document.activeElement;rr((()=>{document.activeElement===t&&document.contains(e)&&qo(e)}))}else qo(e)}function ui(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||ui(e.parentElement,e))}const ci=o.createContext(null);let di=null;function pi(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)(ci)||{},c=(0,o.useMemo)((()=>new Si({scopeRef:l})),[l]);Bo((()=>{let e=u||Ni.root;if(Ni.getTreeNode(e.scopeRef)&&di&&!Ii(di,e.scopeRef)){let t=Ni.getTreeNode(di);t&&(e=t)}e.addChild(c),Ni.addNode(c)}),[c,u]),Bo((()=>{Ni.getTreeNode(l).contain=n}),[n]),Bo((()=>{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){Bo((()=>{if(t||n)return;let o=e.current,r=t=>{let n=t.target;yi(n,e.current)?di=e:bi(n)||(di=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);Bo((()=>{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||!vi(e))return;let n=document.activeElement,o=e.current;if(!yi(n,o))return;let r=Mi(hi(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&&Ei(i,!0)},a=t=>{di&&!Ii(di,e)||!yi(t.target,e.current)?vi(e)&&!wi(t.target,e)?n.current?n.current.focus():di&&Ci(di.current):vi(e)&&(n.current=t.target):(di=e,n.current=t.target)},s=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame((()=>{vi(e)&&!wi(document.activeElement,e)&&(di=e,document.body.contains(t.target)?(n.current=t.target,n.current.focus()):di&&Ci(di.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]),Bo((()=>()=>{r.current&&cancelAnimationFrame(r.current)}),[r])}(l,n),function(e,t,n){const r=(0,o.useRef)("undefined"!=typeof document?document.activeElement:null);Bo((()=>{let o=e.current;if(!t||n)return;let r=()=>{di&&!Ii(di,e)||!yi(document.activeElement,e.current)||(di=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]),Bo((()=>{if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!vi(e))return;let n=document.activeElement;if(!yi(n,e.current))return;let o=Ni.getTreeNode(e).nodeToRestore,r=Mi(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,Ni.getTreeNode(e).nodeToRestore=null),(!i||!yi(i,e.current))&&o){r.currentNode=o;do{i=t.shiftKey?r.previousNode():r.nextNode()}while(yi(i,e.current));t.preventDefault(),t.stopPropagation(),i?Ei(i,!0):bi(o)?Ei(o,!0):n.blur()}};return n||document.addEventListener("keydown",o,!0),()=>{n||document.removeEventListener("keydown",o,!0)}}),[e,t,n]),Bo((()=>{if(t)return Ni.getTreeNode(e).nodeToRestore=r.current,()=>{let n=Ni.getTreeNode(e).nodeToRestore;if(t&&n&&(yi(document.activeElement,e.current)||document.activeElement===document.body&&function(e){let t=Ni.getTreeNode(di);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let t=Ni.clone();requestAnimationFrame((()=>{if(document.activeElement===document.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&document.body.contains(n.nodeToRestore))return void Ei(n.nodeToRestore);n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&Ni.getTreeNode(n.scopeRef))return void Ci(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&&(di=e,yi(document.activeElement,di.current)||Ci(e.current)),n.current=!1}),[e])}(l,i),(0,o.useEffect)((()=>{if(l){let e=document.activeElement,t=null;if(yi(e,l.current)){for(let n of Ni.traverse())yi(e,n.scopeRef.current)&&(t=n);t===Ni.getTreeNode(l)&&(di=t.scopeRef)}return()=>{let e=Ni.getTreeNode(l).parent.scopeRef;l!==di&&!Ii(l,di)||e&&!Ni.getTreeNode(e)||(di=e),Ni.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=Mi(hi(n),{tabbable:r,accept:a},n);u.currentNode=yi(s,n)?s:l;let c=u.nextNode();return!c&&i&&(u.currentNode=l,c=u.nextNode()),c&&Ei(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=Mi(hi(n),{tabbable:r,accept:a},n);u.currentNode=yi(s,n)?s:l;let c=u.previousNode();return!c&&i&&(u.currentNode=l,c=u.previousNode()),c&&Ei(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:o,accept:r}=t,i=Mi(hi(n),{tabbable:o,accept:r},n);i.currentNode=n[0].previousElementSibling;let a=i.nextNode();return a&&Ei(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:o,accept:r}=t,i=Mi(hi(n),{tabbable:o,accept:r},n);i.currentNode=n[n.length-1].nextElementSibling;let a=i.previousNode();return a&&Ei(a,!0),a}}}(l)),[]),p=(0,o.useMemo)((()=>({focusManager:d,parentNode:c})),[c,d]);return o.createElement(ci.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 fi=["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]"],mi=fi.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";fi.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const gi=fi.join(':not([hidden]):not([tabindex="-1"]),');function hi(e){return e[0].parentElement}function vi(e){let t=Ni.getTreeNode(di);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function bi(e){return wi(e)}function yi(e,t){return t.some((t=>t.contains(e)))}function wi(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ni.traverse(Ni.getTreeNode(t)))if(yi(e,n.current))return!0;return!1}function Ii(e,t){var n;let o=null===(n=Ni.getTreeNode(t))||void 0===n?void 0:n.parent;for(;o;){if(o.scopeRef===e)return!0;o=o.parent}return!1}function Ei(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{li(e)}catch(e){}}function Ci(e,t=!0){let n=e[0].previousElementSibling,o=Mi(hi(e),{tabbable:t},e);o.currentNode=n;let r=o.nextNode();t&&!r&&(o=Mi(hi(e),{tabbable:!1},e),o.currentNode=n,r=o.nextNode()),Ei(r)}function Mi(e,t,n){let o=(null==t?void 0:t.tabbable)?gi:mi,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)||!ui(e)||n&&!yi(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 Ti{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 Si({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&&yi(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 Ti;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 Si({scopeRef:null}),this.fastMap.set(null,this.root)}}class Si{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 Ni=new Ti;function xi(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,o.useRef)({isFocused:!1,isFocusVisible:t||qr()}),[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){Jr(),(0,o.useEffect)((()=>{let t=(t,o)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!Yr[n.key])})(null==n?void 0:n.isTextInput,t,o)&&e(qr())};return Br.add(t),()=>{Br.delete(t)}}),t)}((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:p}=zr({isDisabled:r,onFocusChange:d}),{focusWithinProps:f}=ei({isDisabled:!r,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:r?f:p}}let Li=o.createContext(null);function Oi(e,t){let{focusProps:n}=zr(e),{keyboardProps:r}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:si(e.onKeyDown),onKeyUp:si(e.onKeyUp)}}}(e),i=Uo(n,r),a=function(e){let t=(0,o.useContext)(Li)||{};sr(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&&li(t.current),l.current=!1}),[t]),{focusableProps:Uo({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}class Pi{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 Ai=new Map,Di=new Map;class ki{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=Ai.get(r);return i||(i=new Intl.PluralRules(this.locale,{type:n}),Ai.set(r,i)),o=t[i.select(e)]||t.other,"function"==typeof o?o():o}number(e){let t=Di.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),Di.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 _i=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ji=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Ri(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return _i.has(t)}let t=e.split("-")[0];return ji.has(t)}function Fi(){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:Ri(e)?"rtl":"ltr"}}let zi=Fi(),Vi=new Set;function Bi(){zi=Fi();for(let e of Vi)e(zi)}const Hi=o.createContext(null);function Wi(){let e=function(){let e=Fo(),[t,n]=(0,o.useState)(zi);return(0,o.useEffect)((()=>(0===Vi.size&&window.addEventListener("languagechange",Bi),Vi.add(n),()=>{Vi.delete(n),0===Vi.size&&window.removeEventListener("languagechange",Bi)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return(0,o.useContext)(Hi)||e}const Gi=new WeakMap;new Map;const Yi={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 Zi(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}=ei({isDisabled:!n,onFocusWithinChange:e=>i(e)});return{visuallyHiddenProps:{...a,style:(0,o.useMemo)((()=>r?t:t?{...Yi,...t}:Yi),[r])}}}(e);return o.createElement(n,Uo(a,s),t)}function Ui(e){return e&&e.__esModule?e.default:e}"undefined"!=typeof document&&window.visualViewport,new WeakMap,"undefined"!=typeof document&&window.visualViewport;const Qi=[];function $i(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:l}=e;(0,o.useEffect)((()=>(i&&Qi.push(t),()=>{let e=Qi.indexOf(t);e>=0&&Qi.splice(e,1)})),[i,t]);let u=()=>{Qi[Qi.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=gr((e=>{n&&ai(e,t)&&(i&&i(e),a.current.isPointerDown=!0)})),l=gr((e=>{n&&n(e)}));(0,o.useEffect)((()=>{let e=a.current;if(!r){if("undefined"!=typeof PointerEvent){let n=n=>{e.isPointerDown&&ai(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&&ai(n,t)&&l(n),e.isPointerDown=!1},o=n=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&ai(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)||(Qi[Qi.length-1]===t&&(e.stopPropagation(),e.preventDefault()),u())}:null,onInteractOutsideStart:e=>{l&&!l(e.target)||Qi[Qi.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=ei({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&wi(e.relatedTarget,di)||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 Xi="undefined"!=typeof document&&window.visualViewport,Ki=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Ji,qi=0;function ea(e,t,n){let o=e.style[t];return e.style[t]=n,()=>{e.style[t]=o}}function ta(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function na(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=lr(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 oa(e){return e instanceof HTMLInputElement&&!Ki.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var ra={};function ia(e){let{onDismiss:t,...n}=e,r=ir(n,function(e){let{locale:t}=Wi(),n=(0,o.useMemo)((()=>function(e){let t=Gi.get(e);return t||(t=new Pi(e),Gi.set(e,t)),t}(e)),[e]);return(0,o.useMemo)((()=>new ki(t,n)),[t,n])}(Ui(ra)).format("dismiss"));return o.createElement(Zi,null,o.createElement("button",{...r,tabIndex:-1,onClick:()=>{t&&t()}}))}ra={"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 aa=new WeakMap,sa=[];const la=o.createContext(null);function ua(e){let t,n=Fo(),{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(la.Provider,{value:l},e.children):o.createElement(la.Provider,{value:l},o.createElement(pi,{restoreFocus:!0,contain:a&&!i},e.children)),nt.createPortal(t,r)):null}function ca(){let e=(0,o.useContext)(la),t=null==e?void 0:e.setContain;Bo((()=>{null==t||t(!0)}),[t])}function da(e,t,n){let{overlayProps:r,underlayProps:i}=$i({...e,isOpen:t.isOpen,onClose:t.close},n);return function(e={}){let{isDisabled:t}=e;Bo((()=>{if(!t)return qi++,1===qi&&(Ji=mr()?function(){let e,t=0,n=window.pageXOffset,o=window.pageYOffset,r=Zo(ea(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),ea(document.documentElement,"overflow","hidden"),ea(document.body,"marginTop",`-${o}px`));window.scrollTo(0,0);let i=Zo(ta(document,"touchstart",(n=>{e=lr(n.target),e===document.documentElement&&e===document.body||(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),ta(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}),ta(document,"touchend",(e=>{let t=e.target;oa(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),ta(document,"focus",(e=>{let t=e.target;oa(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",Xi&&(Xi.height<window.innerHeight?requestAnimationFrame((()=>{na(t)})):Xi.addEventListener("resize",(()=>na(t)),{once:!0}))})))}),!0),ta(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{r(),i(),window.scrollTo(n,o)}}():Zo(ea(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),ea(document.documentElement,"overflow","hidden"))),()=>{qi--,0===qi&&Ji()}}),[t])}({isDisabled:!t.isOpen}),ca(),(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=aa.get(e))&&void 0!==t?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),o.add(e),aa.set(e,n+1))};sa.length&&sa[sa.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 sa.push(s),()=>{a.disconnect();for(let e of o){let t=aa.get(e);1===t?(e.removeAttribute("aria-hidden"),aa.delete(e)):aa.set(e,t-1)}s===sa[sa.length-1]?(sa.pop(),sa.length&&sa[sa.length-1].observe()):sa.splice(sa.indexOf(s),1)}}([n.current])}),[t.isOpen,n]),{modalProps:Uo(r),underlayProps:i}}function pa(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=Wo(t);let a=Wo(),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:ir({id:t,"aria-label":r,"aria-labelledby":o})}}(e),a=Yo([Boolean(t),Boolean(n),o]),s=Yo([Boolean(t),Boolean(n),o]);return i=Uo(i,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:r,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:s}}}function fa(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}=Oi(e,t),{labelProps:f,fieldProps:m,descriptionProps:g,errorMessageProps:h}=pa(e),v=Jo(e,{labelable:!0});const b={type:l,pattern:e.pattern};var y;return function(e,t,n){let r=(0,o.useRef)(t),i=gr((()=>{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:Uo(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 ma(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(1688),new WeakMap;Symbol.iterator;const ga="row-header-column-"+Math.random().toString(36).slice(2);let ha="row-header-column-"+Math.random().toString(36).slice(2);for(;ga===ha;)ha="row-header-column-"+Math.random().toString(36).slice(2);function va(e){return null}Symbol.iterator,va.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===va){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 ba=Symbol("callback"),ya=Symbol("default");function wa({values:e,children:t}){for(let[n,r]of e)t=o.createElement(n.Provider,{value:r},t);return t}function Ia(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 Ea(e,t,n){let r=(0,o.useContext)(n)||{};if("slots"in r&&r.slots){if(!e.slot&&!r.slots[ya])throw new Error("A slot prop is required");let t=e.slot||ya;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,[ba]:a,...s}=r,l=ar((0,o.useMemo)((()=>Qo(t,i)),[t,i])),u=Uo(s,e);return(0,o.useEffect)((()=>{a&&a(e)}),[a,e]),[u,l]}function Ca(e,t=!0){let[n,r]=(0,o.useState)(!0);return Ta(e,n&&t,(0,o.useCallback)((()=>r(!1)),[])),n&&t}function Ma(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"),Ta(e,n,(0,o.useCallback)((()=>{a("exited"),r(!1)}),[])),n}function Ta(e,t,n){let r=(0,o.useRef)(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),Bo((()=>{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 Sa=(0,o.createContext)({}),Na=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),xa=(0,o.createContext)({});function La(e,t){[e,t]=Ea(e,t,xa);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}=Nr({onPressStart:a,onPressEnd:s,onPressChange:l,onPress:i,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:b}=Oi(e,t);c&&(b.tabIndex=r?-1:b.tabIndex);let y=Uo(b,h,Jo(e,{labelable:!0}));return{isPressed:v,buttonProps:Uo(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}=xi(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)(ii,[]);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=>{ti&&"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||ti||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=Ia({...e,values:{isHovered:c,isPressed:i,isFocused:s,isFocusVisible:l,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return o.createElement("button",{...Jo(e,{propNames:Na}),...Uo(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 Oa=(0,o.forwardRef)(La),Pa=(0,o.createContext)({}),Aa=(0,o.createContext)({}),Da=(0,o.createContext)({}),ka=(0,o.createContext)(null),_a=(0,o.createContext)(null);function ja(e,t){if((0,o.useContext)(_a))return o.createElement(Ba,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,...u}=e;return o.createElement(za,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:s},o.createElement(Ba,{...u,modalRef:t},l))}const Ra=(0,o.forwardRef)(ja);function Fa(e,t){let n=(0,o.useContext)(ka),r=ma(e),i=null==e.isOpen&&null==e.defaultOpen&&(null==n?void 0:n.state)?n.state:r,a=ar(t),s=(0,o.useRef)(null),l=Ma(a,i.isOpen),u=Ma(s,i.isOpen),c=l||u;return i.isOpen||c?o.createElement(Va,{...e,state:i,isExiting:c,overlayRef:a,modalRef:s}):null}const za=(0,o.forwardRef)(Fa);function Va(e){let t=e.modalRef,{state:n}=e,{modalProps:r,underlayProps:i}=da(e,n,t),a=Ca(e.overlayRef),s=Ia({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:e.isExiting,state:n}}),l=function(){let[e,t]=(0,o.useState)((()=>dr()));return(0,o.useEffect)((()=>{let e=()=>{t((e=>{let t=dr();return t.width===e.width&&t.height===e.height?e:t}))};return cr?cr.addEventListener("resize",e):window.addEventListener("resize",e),()=>{cr?cr.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}(),u={...s.style,"--visual-viewport-height":l.height+"px"};return o.createElement(ua,{isExiting:e.isExiting},o.createElement("div",{...Uo(Jo(e),i),...s,style:u,ref:e.overlayRef,"data-entering":a||void 0,"data-exiting":e.isExiting||void 0},o.createElement(_a.Provider,{value:{modalProps:r,modalRef:t,state:n,isExiting:e.isExiting,isDismissable:e.isDismissable}},s.children)))}function Ba(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:i,state:a}=(0,o.useContext)(_a),s=ar((0,o.useMemo)((()=>Qo(e.modalRef,n)),[e.modalRef,n])),l=Ca(s),u=Ia({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:r,state:a}});return o.createElement("div",{...Uo(Jo(e),t),...u,ref:s,"data-entering":l||void 0,"data-exiting":r||void 0},i&&o.createElement(ia,{onDismiss:a.close}),u.children)}const Ha=(0,o.createContext)(null);function Wa(e,t){[e,t]=Ea(e,t,Ha);let{dialogProps:n,titleProps:r}=function(e,t){let{role:n="dialog"}=e,r=Yo();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)){li(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(i.current=!0,t.current.blur(),li(t.current),i.current=!1)}),500);return()=>{clearTimeout(e)}}}),[t]),ca(),{dialogProps:{...Jo(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",{...Jo(e),...n,ref:t,slot:e.slot,style:e.style,className:null!==(a=e.className)&&void 0!==a?a:"react-aria-Dialog"},o.createElement(wa,{values:[[xa,void 0],[Sa,{...r,level:2}]]},i))}const Ga=(0,o.forwardRef)(Wa);Symbol.iterator;const Ya=(0,o.createContext)({}),Za=(0,o.createContext)(null);function Ua(){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 Qa({openFormButton:e,children:t,onChange:n,isOpen:r}){return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Oa,{className:"givewp-donation-form-modal__open",onPress:n},e),(0,o.createElement)(Ra,{className:"givewp-donation-form-modal__overlay",isOpen:r},(0,o.createElement)(Ga,{className:"givewp-donation-form-modal__dialog"},t,(0,o.createElement)(Oa,{className:"givewp-donation-form-modal__close",onPress:n},(0,o.createElement)(Ua,null)))))}(0,o.forwardRef)((function(e,t){[e,t]=Ea(e,t,Za);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 Bo((()=>{n.current||t(!1)}),[]),[r,e]}(),[a,s]=(0,o.useState)("input"),{labelProps:l,inputProps:u,descriptionProps:c,errorMessageProps:d}=fa({...e,inputElementType:a,label:i},n),p=(0,o.useCallback)((e=>{n.current=e,e&&s(e instanceof HTMLTextAreaElement?"textarea":"input")}),[]),f=Ia({...e,values:{isDisabled:e.isDisabled||!1,validationState:e.validationState},defaultClassName:"react-aria-TextField"});return o.createElement("div",{...Jo(e),...f,ref:t,slot:e.slot,"data-disabled":e.isDisabled||void 0,"data-validation-state":e.validationState||void 0},o.createElement(wa,{values:[[Aa,{...l,ref:r}],[Da,{...u,ref:p}],[Ya,{...u,ref:p}],[Pa,{slots:{description:c,errorMessage:d}}]]},f.children))}));const $a=window.wp.element;function Xa({clientId:e,formId:t,formFormat:n,openFormButton:r,link:i}){const a=(0,g.useSelect)((e=>e("core/block-editor").getSelectedBlock()),[]),[s,l]=(0,$a.useState)(!1),u=a?.clientId===e?"auto":"none",c="modal"===n||"reveal"===n;return"newTab"===n?(0,o.createElement)("a",{className:"givewp-donation-form-link",href:i,target:"_blank",rel:"noopener noreferrer"},r):c?(0,o.createElement)(Qa,{openFormButton:r,isOpen:s,onChange:()=>l(!s)},(0,o.createElement)(Lo,{src:`/?givewp-route=donation-form-view&form-id=${t}`,checkOrigin:!1,style:{minWidth:"100%",pointerEvents:u}})):(0,o.createElement)(Lo,{src:`/?givewp-route=donation-form-view&form-id=${t}`,checkOrigin:!1,style:{width:"1px",minWidth:"100%",border:"0",pointerEvents:u}})}(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(4184),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)($a.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)($a.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
(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"}}))})},4184:(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)}()},8679:(e,t,n)=>{"use strict";var o=n(1296),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}},6103:(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},1296:(e,t,n)=>{"use strict";e.exports=n(6103)},2703:(e,t,n)=>{"use strict";var o=n(414);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}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3250:(e,t,n)=>{"use strict";var o=n(9196),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},1688:(e,t,n)=>{"use strict";n(3250)},9196: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={66:0,713: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,[713],(()=>o(6675)));r=o.O(r)})();

Youez - 2016 - github.com/yon3zu
LinuXploit