(()=>{var e,t={308:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){void 0===n&&(n={});for(var o=[],r="function"==typeof n.replace,c=n.transform||s.returnFirstArg,u=n.library||a,d=u.cloneElement,p=u.createElement,f=u.isValidElement,h=t.length,m=0;m1&&(g=d(g,{key:g.key||m})),o.push(c(g,v,m));continue}}if("text"!==v.type){var y=v,b={};l(y)?((0,s.setStyleProp)(y.attribs.style,y.attribs),b=y.attribs):y.attribs&&(b=(0,i.default)(y.attribs,y.name));var w=void 0;switch(v.type){case"script":case"style":v.children[0]&&(b.dangerouslySetInnerHTML={__html:v.children[0].data});break;case"tag":"textarea"===v.name&&v.children[0]?b.defaultValue=v.children[0].data:v.children&&v.children.length&&(w=e(v.children,n));break;default:continue}h>1&&(b.key=m),o.push(c(p(v.name,b,w),v,m))}else{var _=!v.data.trim().length;if(_&&v.parent&&!(0,s.canTextBeChildOfNode)(v.parent))continue;if(n.trim&&_)continue;o.push(c(v.data,v,m))}}return 1===o.length?o[0]:o};var r=n(1609),i=o(n(840)),s=n(4958),a={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function l(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,s.isCustomComponent)(e.name,e.attribs)}},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=(o=n(1720))&&o.__esModule?o:{default:o};t.default=r.default,e.exports=t.default},411:(e,t,n)=>{var o;!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},442:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,s.default)((0,r.default)(e,(null==t?void 0:t.htmlparser2)||l),t):[]};var r=o(n(2471));t.htmlToDOM=r.default;var i=o(n(840));t.attributesToProps=i.default;var s=o(n(308));t.domToReact=s.default;var a=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var l={lowerCaseAttributeNames:!1}},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=((o=n(411))&&o.__esModule?o:{default:o}).default,i=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=i},840:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,o.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=l(p);if(f){var h=(0,o.getPropertyInfo)(f);switch(i.includes(f)&&s.includes(t)&&!c&&(f=l("default"+p)),n[f]=d,h&&h.type){case o.BOOLEAN:n[f]=!0;break;case o.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else r.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,r.setStyleProp)(e.style,n),n};var o=n(4210),r=n(4958),i=["checked","value"],s=["input","select","textarea"],a={reset:!0,submit:!0};function l(e){return o.possibleStandardNames[e]}},1133:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var o=(0,r.default)(e),i="function"==typeof t;return o.forEach(function(e){if("declaration"===e.type){var o=e.property,r=e.value;i?t(o,r,e):r&&((n=n||{})[o]=r)}}),n};var r=o(n(9788))},1141:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),s=n(6957);r(n(6957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,o=new s.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},1345:(e,t,n)=>{"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==a){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>s}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},1609:e=>{"use strict";e.exports=window.React},1720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]).filter(s)};var n="none",o="contents",r=/^(input|select|textarea|button|object|iframe)$/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),i=r.getPropertyValue("display");return t?i!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,r):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},2471:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(s),n=t?t[1]:void 0;return(0,i.formatDOM)((0,r.default)(e),null,n)};var r=o(n(5496)),i=n(7731),s=/<(![a-zA-Z\s]+)>/},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,s){if(s!==o){var a=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 a.name="Invariant Violation",a}}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}},4210:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}const r={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{r[e]=new o(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{r[e]=new o(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{r[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{r[e]=new o(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{r[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{r[e]=new o(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{r[e]=new o(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{r[e]=new o(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{r[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)});const i=/[\-\:]([a-z])/g,s=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(i,s);r[t]=new o(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(i,s);r[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(i,s);r[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)}),r.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:a,SAME:l,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce((e,t)=>{const n=c[t];return n===l?e[t]=t:n===a?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return r.hasOwnProperty(e)?r[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},4838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)r(e,n[t]);var i=document.body;for(var s in o)r(i,o[s]);n={},o={}},t.log=function(){};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)});var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)});var r,i}},4958:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!s.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,a)}catch(e){t.style={}}else t.style={}};var r=n(1609),i=o(n(5229)),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),a={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},5229:function(e,t,n){"use strict";var o=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),r=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,function(e,o){e&&o&&(n[(0,r.camelCase)(e,t)]=o)}),n):n}i.default=i,e.exports=i},5270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},5496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,p=(e=(0,o.escapeSpecialCharacters)(e)).match(a),f=p&&p[1]?p[1].toLowerCase():"";switch(f){case r:var h=d(e);return l.test(e)||null===(t=null==(g=h.querySelector(i))?void 0:g.parentNode)||void 0===t||t.removeChild(g),c.test(e)||null===(n=null==(g=h.querySelector(s))?void 0:g.parentNode)||void 0===n||n.removeChild(g),h.querySelectorAll(r);case i:case s:var v=u(e).querySelectorAll(f);return c.test(e)&&l.test(e)?v[0].parentNode.childNodes:v;default:return m?m(e):(g=u(e,s).querySelector(s)).childNodes;var g}};var o=n(7731),r="html",i="head",s="body",a=/<([a-zA-Z]+[0-9]?)/,l=//i,c=//i,u=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},p="object"==typeof window&&window.DOMParser;if("function"==typeof p){var f=new p;u=d=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),f.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var h=document.implementation.createHTMLDocument();u=function(e,t){if(t){var n=h.documentElement.querySelector(t);return n&&(n.innerHTML=e),h}return h.documentElement.innerHTML=e,h}}var m,v="object"==typeof document&&document.createElement("template");v&&v.content&&(m=function(e){return v.innerHTML=e,v.content.childNodes})},5556:(e,t,n)=>{e.exports=n(2694)()},5795:e=>{"use strict";e.exports=window.ReactDOM},6462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(s).forEach(function(e){return e.removeAttribute("aria-hidden")})),s=null},t.log=function(){},t.assertNodeList=a,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);a(n,t),t=n}return s=t||s},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=l(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=l(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){s=null};var o,r=(o=n(9771))&&o.__esModule?o:{default:o},i=n(834),s=null;function a(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var m=function(e){function t(t,n,o,r){void 0===o&&(o=[]),void 0===r&&(r="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var i=e.call(this,o)||this;return i.name=t,i.attribs=n,i.type=r,i}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}})},enumerable:!1,configurable:!0}),t}(p);function v(e){return(0,s.isTag)(e)}function g(e){return e.type===s.ElementType.CDATA}function y(e){return e.type===s.ElementType.Text}function b(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function _(e){return e.type===s.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(v(e)){var o=t?E(e.children):[],r=new m(e.name,i({},e.attribs),o);o.forEach(function(e){return e.parent=r}),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=r}else if(g(e)){o=t?E(e.children):[];var s=new f(o);o.forEach(function(e){return e.parent=s}),n=s}else if(_(e)){o=t?E(e.children):[];var a=new h(o);o.forEach(function(e){return e.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function E(e){for(var t=e.map(function(e){return x(e,!0)}),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(n.length){var o=void 0,s=t.shiftKey,a=n[0],l=n[n.length-1],c=i();if(e===c){if(!s)return;o=l}if(l!==c||s||(o=a),a===c&&s&&(o=l),o)return t.preventDefault(),void o.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=s?-1:1),void 0===(o=n[d]))return t.preventDefault(),void(o=s?l:a).focus();t.preventDefault(),o.focus()}}else t.preventDefault()};var o,r=(o=n(2411))&&o.__esModule?o:{default:o};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},7727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,s],t=0;t0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(i.parentElement&&i.parentElement.removeChild(i),s.parentElement&&s.parentElement.removeChild(s))})},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.escapeSpecialCharacters=function(e){return e.replace(r.CARRIAGE_RETURN_REGEX,r.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=a,t.formatDOM=function e(t,n,r){void 0===n&&(n=null);for(var l,c=[],u=0,d=t.length;u{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var o,r=(o=n(2411))&&o.__esModule?o:{default:o},i=[],s=null,a=!1;function l(){a=!0}function c(){if(a){if(a=!1,!s)return;setTimeout(function(){s.contains(document.activeElement)||((0,r.default)(s)[0]||s).focus()},0)}}},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,o=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(i,l)).replace(o,a))}},8937:(e,t,n)=>{"use strict";const o=window.wp.blocks,r=window.lodash;var i=n(442);const s=i.default||i,a=window.wp.i18n,l=window.wp.blockEditor,c=window.wp.components,u=window.wp.coreData,d=window.wp.data,p=window.wp.element;var f=n(312),h=n.n(f),m=n(1609);const v=Math.min,g=Math.max,y=Math.round,b=Math.floor,w=e=>({x:e,y:e}),_={left:"right",right:"left",bottom:"top",top:"bottom"},x={start:"end",end:"start"};function E(e,t,n){return g(e,v(t,n))}function S(e,t){return"function"==typeof e?e(t):e}function O(e){return e.split("-")[0]}function C(e){return e.split("-")[1]}function R(e){return"x"===e?"y":"x"}function T(e){return"y"===e?"height":"width"}function k(e){return["top","bottom"].includes(O(e))?"y":"x"}function A(e){return R(k(e))}function N(e){return e.replace(/start|end/g,e=>x[e])}function j(e){return e.replace(/left|right|bottom|top/g,e=>_[e])}function P(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function L(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function D(e,t,n){let{reference:o,floating:r}=e;const i=k(t),s=A(t),a=T(s),l=O(t),c="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[a]/2-r[a]/2;let f;switch(l){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(C(t)){case"start":f[s]-=p*(n&&c?-1:1);break;case"end":f[s]+=p*(n&&c?-1:1)}return f}async function M(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=S(t,e),h=P(f),m=a[p?"floating"===d?"reference":"floating":d],v=L(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),g="floating"===d?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=L(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:l}):g);return{top:(v.top-w.top+h.top)/b.y,bottom:(w.bottom-v.bottom+h.bottom)/b.y,left:(v.left-w.left+h.left)/b.x,right:(w.right-v.right+h.right)/b.x}}function I(){return"undefined"!=typeof window}function F(e){return B(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function U(e){var t;return null==(t=(B(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function B(e){return!!I()&&(e instanceof Node||e instanceof H(e).Node)}function V(e){return!!I()&&(e instanceof Element||e instanceof H(e).Element)}function z(e){return!!I()&&(e instanceof HTMLElement||e instanceof H(e).HTMLElement)}function W(e){return!(!I()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof H(e).ShadowRoot)}function $(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function q(e){return["table","td","th"].includes(F(e))}function G(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function X(e){const t=Y(),n=V(e)?Z(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function Y(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function K(e){return["html","body","#document"].includes(F(e))}function Z(e){return H(e).getComputedStyle(e)}function J(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if("html"===F(e))return e;const t=e.assignedSlot||e.parentNode||W(e)&&e.host||U(e);return W(t)?t.host:t}function ee(e){const t=Q(e);return K(t)?e.ownerDocument?e.ownerDocument.body:e.body:z(t)&&$(t)?t:ee(t)}function te(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=ee(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),s=H(r);if(i){const e=ne(s);return t.concat(s,s.visualViewport||[],$(r)?r:[],e&&n?te(e):[])}return t.concat(r,te(r,[],n))}function ne(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oe(e){const t=Z(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=z(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=y(n)!==i||y(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function re(e){return V(e)?e:e.contextElement}function ie(e){const t=re(e);if(!z(t))return w(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=oe(t);let s=(i?y(n.width):n.width)/o,a=(i?y(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const se=w(0);function ae(e){const t=H(e);return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:se}function le(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=re(e);let s=w(1);t&&(o?V(o)&&(s=ie(o)):s=ie(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==H(e))&&t}(i,n,o)?ae(i):w(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const e=H(i),t=o&&V(o)?H(o):o;let n=e,r=ne(n);for(;r&&o&&t!==n;){const e=ie(r),t=r.getBoundingClientRect(),o=Z(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,n=H(r),r=ne(n)}}return L({width:u,height:d,x:l,y:c})}function ce(e,t){const n=J(e).scrollLeft;return t?t.left+n:le(U(e)).left+n}function ue(e,t,n){void 0===n&&(n=!1);const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-(n?0:ce(e,o)),y:o.top+t.scrollTop}}function de(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=H(e),o=U(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;const e=Y();(!e||e&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)o=function(e){const t=U(e),n=J(e),o=e.ownerDocument.body,r=g(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=g(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ce(e);const a=-n.scrollTop;return"rtl"===Z(o).direction&&(s+=g(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}(U(e));else if(V(t))o=function(e,t){const n=le(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=z(e)?ie(e):w(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=ae(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return L(o)}function pe(e,t){const n=Q(e);return!(n===t||!V(n)||K(n))&&("fixed"===Z(n).position||pe(n,t))}function fe(e,t,n){const o=z(t),r=U(t),i="fixed"===n,s=le(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=w(0);function c(){l.x=ce(r)}if(o||!o&&!i)if(("body"!==F(t)||$(r))&&(a=J(t)),o){const e=le(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&c();i&&!o&&r&&c();const u=!r||o||i?w(0):ue(r,a);return{x:s.left+a.scrollLeft-l.x-u.x,y:s.top+a.scrollTop-l.y-u.y,width:s.width,height:s.height}}function he(e){return"static"===Z(e).position}function me(e,t){if(!z(e)||"fixed"===Z(e).position)return null;if(t)return t(e);let n=e.offsetParent;return U(e)===n&&(n=n.ownerDocument.body),n}function ve(e,t){const n=H(e);if(G(e))return n;if(!z(e)){let t=Q(e);for(;t&&!K(t);){if(V(t)&&!he(t))return t;t=Q(t)}return n}let o=me(e,t);for(;o&&q(o)&&he(o);)o=me(o,t);return o&&K(o)&&he(o)&&!X(o)?n:o||function(e){let t=Q(e);for(;z(t)&&!K(t);){if(X(t))return t;if(G(t))return null;t=Q(t)}return null}(e)||n}const ge={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,s=U(o),a=!!t&&G(t.floating);if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=w(1);const u=w(0),d=z(o);if((d||!d&&!i)&&(("body"!==F(o)||$(s))&&(l=J(o)),z(o))){const e=le(o);c=ie(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}const p=!s||d||i?w(0):ue(s,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:U,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?G(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=te(e,[],!1).filter(e=>V(e)&&"body"!==F(e)),r=null;const i="fixed"===Z(e).position;let s=i?Q(e):e;for(;V(s)&&!K(s);){const t=Z(s),n=X(s);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||$(s)&&!n&&pe(e,s))?o=o.filter(e=>e!==s):r=t,s=Q(s)}return t.set(e,o),o}(t,this._c):[].concat(n),o],s=i[0],a=i.reduce((e,n)=>{const o=de(t,n,r);return e.top=g(o.top,e.top),e.right=v(o.right,e.right),e.bottom=v(o.bottom,e.bottom),e.left=g(o.left,e.left),e},de(t,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ve,getElementRects:async function(e){const t=this.getOffsetParent||ve,n=this.getDimensions,o=await n(e.floating);return{reference:fe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=oe(e);return{width:t,height:n}},getScale:ie,isElement:V,isRTL:function(e){return"rtl"===Z(e).direction}};function ye(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const be=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=O(n),a=C(n),l="y"===k(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=S(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(f="end"===a?-1*h:h),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},we=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=S(e,t),c={x:n,y:o},u=await M(t,l),d=k(O(r)),p=R(d);let f=c[p],h=c[d];if(i){const e="y"===p?"bottom":"right";f=E(f+u["y"===p?"top":"left"],f,f-u[e])}if(s){const e="y"===d?"bottom":"right";h=E(h+u["y"===d?"top":"left"],h,h-u[e])}const m=a.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[p]:i,[d]:s}}}}}},_e=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=S(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=O(r),y=k(a),b=O(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),_=p||(b||!m?[j(a)]:function(e){const t=j(e);return[N(e),t,N(t)]}(a)),x="none"!==h;!p&&x&&_.push(...function(e,t,n,o){const r=C(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}(O(e),"start"===n,o);return r&&(i=i.map(e=>e+"-"+r),t&&(i=i.concat(i.map(N)))),i}(a,m,h,w));const E=[a,..._],R=await M(t,v),P=[];let L=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&P.push(R[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=C(e),r=A(e),i=T(r);let s="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=j(s)),[s,j(s)]}(r,s,w);P.push(R[e[0]],R[e[1]])}if(L=[...L,{placement:r,overflows:P}],!P.every(e=>e<=0)){var D,I;const e=((null==(D=i.flip)?void 0:D.index)||0)+1,t=E[e];if(t&&("alignment"!==d||y===k(t)||L.every(e=>e.overflows[0]>0&&k(e.placement)===y)))return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(I=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:I.placement;if(!n)switch(f){case"bestFit":{var F;const e=null==(F=L.filter(e=>{if(x){const t=k(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:F[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},xe=(e,t,n)=>{const o=new Map,r={platform:ge,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=D(c,o,l),p=o,f={},h=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const c=s;return n?(c.push({name:"arrow",options:u={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:r,platform:i,elements:s,middlewareData:a}=e,{element:l,padding:c=0}=S(u,e)||{};if(null==l)return{};const d=P(c),p={x:t,y:n},f=A(o),h=T(f),m=await i.getDimensions(l),g="y"===f,y=g?"top":"left",b=g?"bottom":"right",w=g?"clientHeight":"clientWidth",_=r.reference[h]+r.reference[f]-p[f]-r.floating[h],x=p[f]-r.reference[f],O=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let R=O?O[w]:0;R&&await(null==i.isElement?void 0:i.isElement(O))||(R=s.floating[w]||r.floating[h]);const k=_/2-x/2,N=R/2-m[h]/2-1,j=v(d[y],N),L=v(d[b],N),D=j,M=R-m[h]-L,I=R/2-m[h]/2+k,F=E(D,I,M),H=!a.arrow&&null!=C(o)&&I!==F&&r.reference[h]/2-(I{var r,i;const s={left:`${e}px`,top:`${t}px`,border:a},{x:c,y:u}=null!==(r=o.arrow)&&void 0!==r?r:{x:0,y:0},d=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",p=a&&{borderBottom:a,borderRight:a};let f=0;if(a){const e=`${a}`.match(/(\d+)px/);f=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=c?`${c}px`:"",top:null!=u?`${u}px`:"",right:"",bottom:"",...p,[d]:`-${l/2+f}px`},place:n}})):xe(e,t,{placement:"bottom",strategy:i,middleware:c}).then(({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n}));var u},Re=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),Te=(e,t,n)=>{let o=null;const r=function(...r){const i=()=>{o=null,n||e.apply(this,r)};n&&!o&&(e.apply(this,r),o=setTimeout(i,t)),n||(o&&clearTimeout(o),o=setTimeout(i,t))};return r.cancel=()=>{o&&(clearTimeout(o),o=null)},r},ke=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,Ae=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>Ae(e,t[n]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!ke(e)||!ke(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>Ae(e[n],t[n]))},Ne=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n})},je=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Ne(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Pe="undefined"!=typeof window?m.useLayoutEffect:m.useEffect,Le=e=>{e.current&&(clearTimeout(e.current),e.current=null)},De={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Me=(0,m.createContext)({getTooltipData:()=>De});function Ie(e="DEFAULT_TOOLTIP_ID"){return(0,m.useContext)(Me).getTooltipData(e)}var Fe={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},He={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Ue=({forwardRef:e,id:t,className:n,classNameArrow:o,variant:r="dark",anchorId:i,anchorSelect:s,place:a="top",offset:l=10,events:c=["hover"],openOnClick:u=!1,positionStrategy:d="absolute",middlewares:p,wrapper:f,delayShow:h=0,delayHide:y=0,float:w=!1,hidden:_=!1,noArrow:x=!1,clickable:E=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:R,closeEvents:T,globalCloseEvents:k,imperativeModeOnly:A,style:N,position:j,afterShow:P,afterHide:L,disableTooltip:D,content:M,contentWrapperRef:I,isOpen:F,defaultIsOpen:H=!1,setIsOpen:B,activeAnchor:V,setActiveAnchor:z,border:W,opacity:$,arrowColor:q,arrowSize:G=8,role:X="tooltip"})=>{var Y;const K=(0,m.useRef)(null),Z=(0,m.useRef)(null),J=(0,m.useRef)(null),Q=(0,m.useRef)(null),ee=(0,m.useRef)(null),[ne,oe]=(0,m.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:a}),[ie,se]=(0,m.useState)(!1),[ae,ce]=(0,m.useState)(!1),[ue,de]=(0,m.useState)(null),pe=(0,m.useRef)(!1),fe=(0,m.useRef)(null),{anchorRefs:he,setActiveAnchor:me}=Ie(t),ve=(0,m.useRef)(!1),[ge,be]=(0,m.useState)([]),we=(0,m.useRef)(!1),_e=u||c.includes("click"),xe=_e||(null==R?void 0:R.click)||(null==R?void 0:R.dblclick)||(null==R?void 0:R.mousedown),Se=R?{...R}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!R&&_e&&Object.assign(Se,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Oe=T?{...T}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!T&&_e&&Object.assign(Oe,{mouseleave:!1,blur:!1,mouseout:!1});const Re=k?{...k}:{escape:S||!1,scroll:O||!1,resize:C||!1,clickOutsideAnchor:xe||!1};A&&(Object.assign(Se,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Oe,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Re,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Pe(()=>(we.current=!0,()=>{we.current=!1}),[]);const ke=e=>{we.current&&(e&&ce(!0),setTimeout(()=>{we.current&&(null==B||B(e),void 0===F&&se(e))},10))};(0,m.useEffect)(()=>{if(void 0===F)return()=>null;F&&ce(!0);const e=setTimeout(()=>{se(F)},10);return()=>{clearTimeout(e)}},[F]),(0,m.useEffect)(()=>{if(ie!==pe.current)if(Le(ee),pe.current=ie,ie)null==P||P();else{const e=(()=>{const e=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!e)return 0;const[,t,n]=e;return Number(t)*("ms"===n?1:1e3)})();ee.current=setTimeout(()=>{ce(!1),de(null),null==L||L()},e+25)}},[ie]);const Ne=e=>{oe(t=>Ae(t,e)?t:e)},De=(e=h)=>{Le(J),ae?ke(!0):J.current=setTimeout(()=>{ke(!0)},e)},Me=(e=y)=>{Le(Q),Q.current=setTimeout(()=>{ve.current||ke(!1)},e)},Ue=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return z(null),void me({current:null});h?De():ke(!0),z(n),me({current:n}),Le(Q)},Be=()=>{E?Me(y||100):y?Me():ke(!1),Le(J)},Ve=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};Ce({place:null!==(n=null==ue?void 0:ue.place)&&void 0!==n?n:a,offset:l,elementReference:o,tooltipReference:K.current,tooltipArrowReference:Z.current,strategy:d,middlewares:p,border:W,arrowSize:G}).then(e=>{Ne(e)})},ze=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Ve(n),fe.current=n},We=e=>{var t;if(!ie)return;const n=e.target;n.isConnected&&((null===(t=K.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${i}']`),...ge].some(e=>null==e?void 0:e.contains(n))||(ke(!1),Le(J)))},$e=Te(Ue,50,!0),qe=Te(Be,50,!0),Ge=e=>{qe.cancel(),$e(e)},Xe=()=>{$e.cancel(),qe()},Ye=(0,m.useCallback)(()=>{var e,t;const n=null!==(e=null==ue?void 0:ue.position)&&void 0!==e?e:j;n?Ve(n):w?fe.current&&Ve(fe.current):(null==V?void 0:V.isConnected)&&Ce({place:null!==(t=null==ue?void 0:ue.place)&&void 0!==t?t:a,offset:l,elementReference:V,tooltipReference:K.current,tooltipArrowReference:Z.current,strategy:d,middlewares:p,border:W,arrowSize:G}).then(e=>{we.current&&Ne(e)})},[ie,V,M,N,a,null==ue?void 0:ue.place,l,d,j,null==ue?void 0:ue.position,w,G]);(0,m.useEffect)(()=>{var e,t;const n=new Set(he);ge.forEach(e=>{(null==D?void 0:D(e))||n.add({current:e})});const o=document.querySelector(`[id='${i}']`);o&&!(null==D?void 0:D(o))&&n.add({current:o});const r=()=>{ke(!1)},s=je(V),a=je(K.current);Re.scroll&&(window.addEventListener("scroll",r),null==s||s.addEventListener("scroll",r),null==a||a.addEventListener("scroll",r));let l=null;Re.resize?window.addEventListener("resize",r):V&&K.current&&(l=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=re(e),u=r||i?[...c?te(c):[],...te(t)]:[];u.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&a?function(e,t){let n,o=null;const r=U(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(a||t(),!p||!f)return;const h={rootMargin:-b(d)+"px "+-b(r.clientWidth-(u+p))+"px "+-b(r.clientHeight-(d+f))+"px "+-b(u)+"px",threshold:g(0,v(1,l))||1};let m=!0;function y(t){const o=t[0].intersectionRatio;if(o!==l){if(!m)return s();o?s(!1,o):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==o||ye(c,e.getBoundingClientRect())||s(),m=!1}try{o=new IntersectionObserver(y,{...h,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(y,h)}o.observe(e)}(!0),i}(c,n):null;let p,f=-1,h=null;s&&(h=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let m=l?le(e):null;return l&&function t(){const o=le(e);m&&!ye(m,o)&&n(),m=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}(V,K.current,Ye,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&ke(!1)};Re.escape&&window.addEventListener("keydown",c),Re.clickOutsideAnchor&&window.addEventListener("click",We);const u=[],d=e=>Boolean((null==e?void 0:e.target)&&(null==V?void 0:V.contains(e.target))),p=e=>{ie&&d(e)||Ue(e)},f=e=>{ie&&d(e)&&Be()},h=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],m=["click","dblclick","mousedown","mouseup"];Object.entries(Se).forEach(([e,t])=>{t&&(h.includes(e)?u.push({event:e,listener:Ge}):m.includes(e)&&u.push({event:e,listener:p}))}),Object.entries(Oe).forEach(([e,t])=>{t&&(h.includes(e)?u.push({event:e,listener:Xe}):m.includes(e)&&u.push({event:e,listener:f}))}),w&&u.push({event:"pointermove",listener:ze});const y=()=>{ve.current=!0},_=()=>{ve.current=!1,Be()},x=E&&(Oe.mouseout||Oe.mouseleave);return x&&(null===(e=K.current)||void 0===e||e.addEventListener("mouseover",y),null===(t=K.current)||void 0===t||t.addEventListener("mouseout",_)),u.forEach(({event:e,listener:t})=>{n.forEach(n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)})}),()=>{var e,t;Re.scroll&&(window.removeEventListener("scroll",r),null==s||s.removeEventListener("scroll",r),null==a||a.removeEventListener("scroll",r)),Re.resize?window.removeEventListener("resize",r):null==l||l(),Re.clickOutsideAnchor&&window.removeEventListener("click",We),Re.escape&&window.removeEventListener("keydown",c),x&&(null===(e=K.current)||void 0===e||e.removeEventListener("mouseover",y),null===(t=K.current)||void 0===t||t.removeEventListener("mouseout",_)),u.forEach(({event:e,listener:t})=>{n.forEach(n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)})})}},[V,Ye,ae,he,ge,R,T,k,_e,h,y]),(0,m.useEffect)(()=>{var e,n;let o=null!==(n=null!==(e=null==ue?void 0:ue.anchorSelect)&&void 0!==e?e:s)&&void 0!==n?n:"";!o&&t&&(o=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const r=new MutationObserver(e=>{const n=[],r=[];e.forEach(e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&r.push(e.target)),"childList"===e.type){if(V){const t=[...e.removedNodes].filter(e=>1===e.nodeType);if(o)try{r.push(...t.filter(e=>e.matches(o))),r.push(...t.flatMap(e=>[...e.querySelectorAll(o)]))}catch(e){}t.some(e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,V))&&(ce(!1),ke(!1),z(null),Le(J),Le(Q),!0)})}if(o)try{const t=[...e.addedNodes].filter(e=>1===e.nodeType);n.push(...t.filter(e=>e.matches(o))),n.push(...t.flatMap(e=>[...e.querySelectorAll(o)]))}catch(e){}}}),(n.length||r.length)&&be(e=>[...e.filter(e=>!r.includes(e)),...n])});return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}},[t,s,null==ue?void 0:ue.anchorSelect,V]),(0,m.useEffect)(()=>{Ye()},[Ye]),(0,m.useEffect)(()=>{if(!(null==I?void 0:I.current))return()=>null;const e=new ResizeObserver(()=>{setTimeout(()=>Ye())});return e.observe(I.current),()=>{e.disconnect()}},[M,null==I?void 0:I.current]),(0,m.useEffect)(()=>{var e;const t=document.querySelector(`[id='${i}']`),n=[...ge,t];V&&n.includes(V)||z(null!==(e=ge[0])&&void 0!==e?e:t)},[i,ge,V]),(0,m.useEffect)(()=>(H&&ke(!0),()=>{Le(J),Le(Q)}),[]),(0,m.useEffect)(()=>{var e;let n=null!==(e=null==ue?void 0:ue.anchorSelect)&&void 0!==e?e:s;if(!n&&t&&(n=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),n)try{const e=Array.from(document.querySelectorAll(n));be(e)}catch(e){be([])}},[t,s,null==ue?void 0:ue.anchorSelect]),(0,m.useEffect)(()=>{J.current&&(Le(J),De(h))},[h]);const Ke=null!==(Y=null==ue?void 0:ue.content)&&void 0!==Y?Y:M,Ze=ie&&Object.keys(ne.tooltipStyles).length>0;return(0,m.useImperativeHandle)(e,()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}de(null!=e?e:null),(null==e?void 0:e.delay)?De(e.delay):ke(!0)},close:e=>{(null==e?void 0:e.delay)?Me(e.delay):ke(!1)},activeAnchor:V,place:ne.place,isOpen:Boolean(ae&&!_&&Ke&&Ze)})),ae&&!_&&Ke?m.createElement(f,{id:t,role:X,className:Ee("react-tooltip",Fe.tooltip,He.tooltip,He[r],n,`react-tooltip__place-${ne.place}`,Fe[Ze?"show":"closing"],Ze?"react-tooltip__show":"react-tooltip__closing","fixed"===d&&Fe.fixed,E&&Fe.clickable),onTransitionEnd:e=>{Le(ee),ie||"opacity"!==e.propertyName||(ce(!1),de(null),null==L||L())},style:{...N,...ne.tooltipStyles,opacity:void 0!==$&&Ze?$:void 0},ref:K},Ke,m.createElement(f,{className:Ee("react-tooltip-arrow",Fe.arrow,He.arrow,o,x&&Fe.noArrow),style:{...ne.tooltipArrowStyles,background:q?`linear-gradient(to right bottom, transparent 50%, ${q} 50%)`:void 0,"--rt-arrow-size":`${G}px`},ref:Z})):null},Be=({content:e})=>m.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Ve=m.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:o,html:r,render:i,className:s,classNameArrow:a,variant:l="dark",place:c="top",offset:u=10,wrapper:d="div",children:p=null,events:f=["hover"],openOnClick:h=!1,positionStrategy:v="absolute",middlewares:g,delayShow:y=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:x=!1,clickable:E=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:R,closeEvents:T,globalCloseEvents:k,imperativeModeOnly:A=!1,style:N,position:j,isOpen:P,defaultIsOpen:L=!1,disableStyleInjection:D=!1,border:M,opacity:I,arrowColor:F,arrowSize:H,setIsOpen:U,afterShow:B,afterHide:V,disableTooltip:z,role:W="tooltip"},$)=>{const[q,G]=(0,m.useState)(o),[X,Y]=(0,m.useState)(r),[K,Z]=(0,m.useState)(c),[J,Q]=(0,m.useState)(l),[ee,te]=(0,m.useState)(u),[ne,oe]=(0,m.useState)(y),[re,ie]=(0,m.useState)(b),[se,ae]=(0,m.useState)(w),[le,ce]=(0,m.useState)(_),[ue,de]=(0,m.useState)(d),[pe,fe]=(0,m.useState)(f),[he,me]=(0,m.useState)(v),[ve,ge]=(0,m.useState)(null),[ye,be]=(0,m.useState)(null),we=(0,m.useRef)(D),{anchorRefs:_e,activeAnchor:xe}=Ie(e),Se=e=>null==e?void 0:e.getAttributeNames().reduce((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t},{}),Oe=e=>{const t={place:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:c)},content:e=>{G(null!=e?e:o)},html:e=>{Y(null!=e?e:r)},variant:e=>{var t;Q(null!==(t=e)&&void 0!==t?t:l)},offset:e=>{te(null===e?u:Number(e))},wrapper:e=>{var t;de(null!==(t=e)&&void 0!==t?t:d)},events:e=>{const t=null==e?void 0:e.split(" ");fe(null!=t?t:f)},"position-strategy":e=>{var t;me(null!==(t=e)&&void 0!==t?t:v)},"delay-show":e=>{oe(null===e?y:Number(e))},"delay-hide":e=>{ie(null===e?b:Number(e))},float:e=>{ae(null===e?w:"true"===e)},hidden:e=>{ce(null===e?_:"true"===e)},"class-name":e=>{ge(e)}};Object.values(t).forEach(e=>e(null)),Object.entries(e).forEach(([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)})};(0,m.useEffect)(()=>{G(o)},[o]),(0,m.useEffect)(()=>{Y(r)},[r]),(0,m.useEffect)(()=>{Z(c)},[c]),(0,m.useEffect)(()=>{Q(l)},[l]),(0,m.useEffect)(()=>{te(u)},[u]),(0,m.useEffect)(()=>{oe(y)},[y]),(0,m.useEffect)(()=>{ie(b)},[b]),(0,m.useEffect)(()=>{ae(w)},[w]),(0,m.useEffect)(()=>{ce(_)},[_]),(0,m.useEffect)(()=>{me(v)},[v]),(0,m.useEffect)(()=>{we.current!==D&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[D]),(0,m.useEffect)(()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===D,disableBase:D}}))},[]),(0,m.useEffect)(()=>{var o;const r=new Set(_e);let i=n;if(!i&&e&&(i=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),i)try{document.querySelectorAll(i).forEach(e=>{r.add({current:e})})}catch(o){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const s=document.querySelector(`[id='${t}']`);if(s&&r.add({current:s}),!r.size)return()=>null;const a=null!==(o=null!=ye?ye:s)&&void 0!==o?o:xe.current,l=new MutationObserver(e=>{e.forEach(e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=Se(a);Oe(n)})}),c={attributes:!0,childList:!1,subtree:!1};if(a){const e=Se(a);Oe(e),l.observe(a,c)}return()=>{l.disconnect()}},[_e,xe,ye,t,n]),(0,m.useEffect)(()=>{(null==N?void 0:N.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),M&&!Re("border",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`border\`.`),(null==N?void 0:N.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),I&&!Re("opacity",`${I}`)&&console.warn(`[react-tooltip] "${I}" is not a valid \`opacity\`.`)},[]);let Ce=p;const Te=(0,m.useRef)(null);if(i){const e=i({content:(null==ye?void 0:ye.getAttribute("data-tooltip-content"))||q||null,activeAnchor:ye});Ce=e?m.createElement("div",{ref:Te,className:"react-tooltip-content-wrapper"},e):null}else q&&(Ce=q);X&&(Ce=m.createElement(Be,{content:X}));const ke={forwardRef:$,id:e,anchorId:t,anchorSelect:n,className:Ee(s,ve),classNameArrow:a,content:Ce,contentWrapperRef:Te,place:K,variant:J,offset:ee,wrapper:ue,events:pe,openOnClick:h,positionStrategy:he,middlewares:g,delayShow:ne,delayHide:re,float:se,hidden:le,noArrow:x,clickable:E,closeOnEsc:S,closeOnScroll:O,closeOnResize:C,openEvents:R,closeEvents:T,globalCloseEvents:k,imperativeModeOnly:A,style:N,position:j,isOpen:P,defaultIsOpen:L,border:M,opacity:I,arrowColor:F,arrowSize:H,setIsOpen:U,afterShow:B,afterHide:V,disableTooltip:z,activeAnchor:ye,setActiveAnchor:e=>be(e),role:W};return m.createElement(Ue,{...ke})});"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||Oe({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||Oe({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})});const ze=window.wp.apiFetch;var We=n.n(ze);const $e=window.ReactJSXRuntime,qe=({type:e="upcoming",status:t="no_status"})=>{const n={upcoming:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,a._x)("Attending","RSVP status label for upcoming events","gatherpress")},waiting_list:{icon:"dashicons dashicons-editor-help",text:(0,a._x)("Waiting List","RSVP status label for upcoming events","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,a._x)("Not Attending","RSVP status label for upcoming events","gatherpress")},no_status:{icon:"",text:""}},past:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,a._x)("Went","RSVP status label for past events","gatherpress")},waiting_list:{icon:"dashicons dashicons-dismiss",text:(0,a._x)("Didn't Go","RSVP status label for past events","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,a._x)("Didn't Go","RSVP status label for past events","gatherpress")},no_status:{icon:"dashicons dashicons-dismiss",text:(0,a._x)("Didn't Go","RSVP status label for past events","gatherpress")}}};return(0,$e.jsxs)("div",{className:"gatherpress-status__response",children:[(0,$e.jsx)("span",{className:n[e][t].icon}),(0,$e.jsx)("strong",{children:n[e][t].text})]})};function Ge(e){if("object"==typeof GatherPress)return e.split(".").reduce((e,t)=>e?.[t],GatherPress)}const Xe=({postId:e,currentUser:t="",type:n,enableAnonymousRsvp:o,maxGuestLimit:r})=>{const[i,l]=(0,p.useState)(t.status),[u,d]=(0,p.useState)(Number(t.anonymous)),[f,m]=(0,p.useState)(t.guests),[v,g]=(0,p.useState)("hidden"),[y,b]=(0,p.useState)("false"),[w,_]=(0,p.useState)(!1);if("past"===n)return"";"undefined"==typeof adminpage&&h().setAppElement(".gatherpress-enabled");const x=e=>{e.preventDefault(),_(!1)},E=async(t,n,o,r=0,i=!0)=>{t.preventDefault(),"attending"!==n&&(r=0),We()({path:Ge("urls.eventApiPath")+"/rsvp",method:"POST",data:{post_id:e,status:n,guests:r,anonymous:o,_wpnonce:Ge("misc.nonce")}}).then(e=>{if(e.success){l(e.status),m(e.guests);const n={all:0,attending:0,not_attending:0,waiting_list:0};for(const[t,o]of Object.entries(e.responses))n[t]=o.count;((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:o});dispatchEvent(r)}})({setRsvpStatus:e.status,setRsvpResponse:e.responses,setRsvpCount:n,setRsvpSeeAllLink:8{switch(e){case"attending":return(0,a.__)("You're attending","gatherpress");case"waiting_list":return(0,a.__)("You're wait listed","gatherpress");case"not_attending":return(0,a.__)("You're not attending","gatherpress")}return(0,a.__)("RSVP to this event","gatherpress")},O=()=>(0,$e.jsxs)("div",{className:"gatherpress-modal gatherpress-modal__rsvp",children:[(0,$e.jsx)("div",{className:"gatherpress-modal__header",children:(0,a.__)("Login Required","gatherpress")}),(0,$e.jsxs)("div",{className:"gatherpress-modal__content",children:[(0,$e.jsx)("div",{className:"gatherpress-modal__text",children:s((0,a.sprintf)(/* translators: %s: 'Login' (hyperlinked) */ /* translators: %s: 'Login' (hyperlinked) */ (0,a.__)("You must %s to RSVP to events.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t${(0,a._x)("Login","Link text for user authentication","gatherpress")}\n\t\t\t\t\t\t\t\t`))}),""!==Ge("urls.registrationUrl")&&(0,$e.jsx)("div",{className:"gatherpress-modal__text",children:s((0,a.sprintf)(/* translators: %s: 'Register' (hyperlinked) */ /* translators: %s: 'Register' (hyperlinked) */ (0,a.__)("%s if you do not have an account.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t\t${(0,a._x)("Register","Link text for new account creation","gatherpress")}\n\t\t\t\t\t\t\t\t\t`))})]}),(0,$e.jsx)("div",{className:"gatherpress-buttons wp-block-buttons",children:(0,$e.jsx)("div",{className:"gatherpress-buttons__container wp-block-button",children:(0,$e.jsx)("a",{href:"#",onClick:x,className:"gatherpress-buttons__button wp-block-button__link",children:(0,a._x)("Close","Button label for closing modal dialog","gatherpress")})})})]}),C=({status:e})=>{let t="",n="";return"not_attending"===e||"no_status"===e?(t="attending",n=(0,a._x)("Attend","RSVP button label for confirming event","gatherpress")):(t="not_attending",n=(0,a._x)("Not Attending","RSVP button label for declining event","gatherpress")),(0,$e.jsxs)("div",{className:"gatherpress-modal gatherpress-modal__rsvp",children:[(0,$e.jsx)("div",{className:"gatherpress-modal__header",children:S(i)?S(i):(0,$e.jsx)(c.Spinner,{})}),(0,$e.jsxs)("div",{className:"gatherpress-modal__content",children:[(0,$e.jsx)("div",{className:"gatherpress-modal__text",children:s((0,a.sprintf)(/* translators: %s: button label. */ /* translators: %s: button label. */ (0,a.__)("To set or change your attending status, simply click the %s button below.","gatherpress"),""+n+""))}),0{const t=Number(e.target.value);m(t),E(e,i,u,t,!1)},defaultValue:f})]}),o&&(0,$e.jsxs)("div",{className:"gatherpress-modal__anonymous",children:[(0,$e.jsx)("input",{id:"gatherpress-anonymous",type:"checkbox",onChange:e=>{const t=Number(e.target.checked);d(t),E(e,i,t,0,!1)},checked:u}),(0,$e.jsx)("label",{htmlFor:"gatherpress-anonymous",tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-anonymous-tooltip","data-tooltip-content":(0,a.__)("Only admins will see your identity.","gatherpress"),children:(0,a.__)("List me as anonymous.","gatherpress")}),(0,$e.jsx)(Ve,{id:"gatherpress-anonymous-tooltip"})]})]}),(0,$e.jsxs)("div",{className:"gatherpress-buttons wp-block-buttons",children:[(0,$e.jsx)("div",{className:"gatherpress-buttons__container wp-block-button is-style-outline",children:(0,$e.jsx)("a",{href:"#",onClick:e=>E(e,t,u,"not_attending"===t?0:f,"not_attending"===t),className:"gatherpress-buttons__button wp-block-button__link",children:n})}),(0,$e.jsx)("div",{className:"gatherpress-buttons__container wp-block-button",children:(0,$e.jsx)("a",{href:"#",onClick:x,className:"gatherpress-buttons__button wp-block-button__link",children:(0,a._x)("Close","Button label for closing modal dialog","gatherpress")})})]})]})};return(0,$e.jsxs)("div",{className:"gatherpress-rsvp",children:[(0,$e.jsxs)("div",{className:"gatherpress-buttons wp-block-buttons",children:[(0,$e.jsx)("div",{className:"gatherpress-buttons__container wp-block-button",children:(0,$e.jsx)("a",{href:"#",className:"gatherpress-buttons__button wp-block-button__link wp-element-button","aria-expanded":y,tabIndex:"0",onKeyDown:e=>{13===e.keyCode&&(g("hidden"===v?"show":"hidden"),b("false"===y?"true":"false"))},onClick:e=>(e=>{e.preventDefault(),_(!0)})(e),children:(e=>{switch(e){case"attending":case"waiting_list":case"not_attending":return(0,a.__)("Edit RSVP","gatherpress")}return(0,a.__)("RSVP","gatherpress")})(i)})}),(0,$e.jsxs)(h(),{isOpen:w,onRequestClose:x,style:{overlay:{zIndex:999999999},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}},contentLabel:(0,a.__)("Edit RSVP","gatherpress"),children:[0===t.length&&(0,$e.jsx)(O,{}),0!==t.length&&(0,$e.jsx)(C,{status:i})]})]}),"no_status"!==i&&(0,$e.jsxs)("div",{className:"gatherpress-status",children:[(0,$e.jsx)(qe,{type:n,status:i}),0{const[r,i]=(0,p.useState)(o);((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,e=>{o(e.detail)},!1)}})({setRsvpResponse:i},e);let s="";return"object"==typeof r&&void 0!==r[t]&&(o=[...r[t].records],n&&(o=o.splice(0,n)),s=o.map((e,t)=>{const{name:n,photo:o}=e;return(0,$e.jsx)("figure",{className:"gatherpress-rsvp-response__member-avatar",children:(0,$e.jsx)("img",{alt:n,title:n,src:o})},t)})),(0,$e.jsx)($e.Fragment,{children:s})},Ke=e=>{const{type:t,event:n,eventOptions:o}=e,r="default"===o.imageSize?"featured_image":"featured_image_"+o.imageSize,i=s(n[r]),a="gatherpress-events-list";let l="location";const c=n.venue?.is_online_event;return c&&(l="video-alt2"),(0,$e.jsxs)("div",{className:`${a}`,children:[(0,$e.jsx)("div",{className:`${a}__header`,children:(0,$e.jsxs)("div",{className:`${a}__info`,children:[o.showFeaturedImage&&(0,$e.jsx)("figure",{className:`${a}__image`,children:(0,$e.jsx)("a",{href:n.permalink,children:i})}),(0,$e.jsx)("div",{className:`${a}__datetime`,children:(0,$e.jsx)("strong",{children:n.datetime_start})}),(0,$e.jsx)("div",{className:`${a}__title`,children:(0,$e.jsx)("a",{href:n.permalink,children:s(n.title)})}),n.venue&&o.showVenue&&(0,$e.jsxs)("div",{className:`${a}__venue`,children:[(0,$e.jsx)("span",{className:`dashicons dashicons-${l}`}),!c&&(0,$e.jsx)("a",{href:n.venue.permalink,children:s(n.venue.name)}),c&&(0,$e.jsx)("span",{children:s(n.venue.name)})]}),o.showDescription&&(0,$e.jsx)("div",{className:`${a}__content`,children:(0,$e.jsx)("div",{className:`${a}__excerpt`,children:s((u=n.excerpt,u.split(" ").splice(0,parseInt(o.descriptionLimit)).join(" ")+"[…]"))})})]})}),(0,$e.jsxs)("div",{className:`${a}__footer`,children:[o.showRsvpResponse&&(0,$e.jsx)("div",{className:"gatherpress-rsvp-response__items",children:(0,$e.jsx)(Ye,{postId:n.ID,value:"attending",responses:n.responses,limit:"3"})}),"upcoming"===t&&o.showRsvp&&(0,$e.jsx)(Xe,{postId:n.ID,currentUser:n.current_user,type:t,enableAnonymousRsvp:n.gatherpress_enable_anonymous_rsvp}),"past"===t&&o.showRsvp&&""!==n.current_user&&(0,$e.jsx)(qe,{type:t,status:n.current_user?.status})]})]});var u},Ze=e=>{const{eventOptions:t,maxNumberOfEvents:n,datetimeFormat:o,type:r,topics:i,venues:s}=e,[l,u]=(0,p.useState)([]),[d,f]=(0,p.useState)(!1),h=l.map(e=>(0,$e.jsx)(Ke,{eventOptions:t,type:r,event:e},e.ID));return(0,p.useEffect)(()=>{let e="",t="";"object"==typeof i&&(e=i.map(e=>e.slug)?.join(",")),"object"==typeof s&&(t=s.map(e=>e.slug)?.join(",")),Ge("misc.isUserLoggedIn")?We()({path:Ge("urls.eventApiPath")+`/events-list?event_list_type=${r}&max_number=${n}&datetime_format=${o}&topics=${e}&venues=${t}`}).then(e=>{f(!0),u(e)}):fetch(Ge("urls.eventApiUrl")+`/events-list?event_list_type=${r}&max_number=${n}&datetime_format=${o}&topics=${e}&venues=${t}`).then(e=>e.json()).then(e=>{f(!0),u(e)})},[u,n,o,r,i,s]),(0,$e.jsxs)("div",{className:`gatherpress-${r}-events-list`,children:[!d&&(0,$e.jsx)(c.Spinner,{}),d&&0===l.length&&(()=>{const e="upcoming"===r?(0,a.__)("There are no upcoming events.","gatherpress"):(0,a.__)("There are no past events.","gatherpress");return(0,$e.jsx)("div",{className:`gatherpress-${r}-events__no_events_message`,children:e})})(),d&&h]})},Je=e=>{const{isSelected:t}=e,n=t?"none":"block";return(0,$e.jsxs)("div",{style:{position:"relative",zIndex:"0"},children:[e.children,(0,$e.jsx)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}})]})},Qe=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/events-list","version":"1.0.1","title":"Events List","category":"gatherpress","icon":"list-view","example":{},"description":"Displays events that are either upcoming or have occurred in the past.","attributes":{"eventOptions":{"type":"object","default":{"descriptionLimit":55,"imageSize":"default","showRsvpResponse":true,"showFeaturedImage":true,"showDescription":true,"showRsvp":true,"showVenue":true}},"datetimeFormat":{"type":"string","default":"D, M j, Y, g:i a T"},"maxNumberOfEvents":{"type":"integer","default":5},"topics":{"type":"array","items":{"type":"object"}},"venues":{"type":"array","items":{"type":"object"}},"type":{"type":"string","default":"upcoming"}},"supports":{"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","style":"file:./style-index.css","viewScript":"file:./events-list.js","render":"file:./render.php"}');(0,o.registerBlockType)(Qe,{edit:e=>{var t,n,o;const{attributes:i,setAttributes:p}=e,f=(0,l.useBlockProps)(),{topics:h,venues:m}=i,{topicsList:v}=(0,d.useSelect)(e=>{const{getEntityRecords:t}=e(u.store);return{topicsList:t("taxonomy","gatherpress_topic",{per_page:-1,context:"view"})}},[]),{venueList:g}=(0,d.useSelect)(e=>{const{getEntityRecords:t}=e(u.store);return{venueList:t("taxonomy","_gatherpress_venue",{per_page:-1,context:"view"})}},[]),y=null!==(t=v?.reduce((e,t)=>({...e,[t.name]:t}),{}))&&void 0!==t?t:{},b=null!==(n=g?.reduce((e,t)=>({...e,[t.name]:t}),{}))&&void 0!==n?n:{};return(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsxs)(l.InspectorControls,{children:[(0,$e.jsx)(c.PanelBody,{children:(0,$e.jsxs)(c.__experimentalToggleGroupControl,{label:(0,a.__)("Event List type","gatherpress"),value:i.type,onChange:e=>{p({type:e})},isBlock:!0,children:[(0,$e.jsx)(c.__experimentalToggleGroupControlOption,{value:"upcoming",label:(0,a.__)("Upcoming","gatherpress")}),(0,$e.jsx)(c.__experimentalToggleGroupControlOption,{value:"past",label:(0,a.__)("Past","gatherpress")})]})}),(0,$e.jsxs)(c.PanelBody,{children:[(0,$e.jsx)(c.TextControl,{label:(0,a.__)("Date & time format","gatherpress"),value:i.datetimeFormat,help:s((0,a.__)('For more information read the Documentation on date and time formatting.',"gatherpress")),onChange:e=>p({datetimeFormat:e})}),(0,$e.jsx)(c.RangeControl,{label:(0,a.__)("Maximum number of events to display","gatherpress"),min:1,max:10,value:parseInt(i.maxNumberOfEvents,10),onChange:e=>p({maxNumberOfEvents:e})}),(0,$e.jsx)(c.FormTokenField,{label:(0,a.__)("Topics","gatherpress"),value:h?.map(e=>({id:e.id,slug:e.slug,value:e.name||e.value})),suggestions:Object.keys(y),onChange:e=>{if(e.some(e=>"string"==typeof e&&!y[e]))return;const t=e.map(e=>"string"==typeof e?y[e]:e);if((0,r.includes)(t,null))return!1;p({topics:t})},maxSuggestions:20},"query-controls-topics-select"),(0,$e.jsx)(c.FormTokenField,{label:(0,a.__)("Venues","gatherpress"),value:m?.map(e=>({id:e.id,slug:e.slug,value:e.name||e.value})),suggestions:Object.keys(b),onChange:e=>{if(e.some(e=>"string"==typeof e&&!b[e]))return;const t=e.map(e=>"string"==typeof e?b[e]:e);if((0,r.includes)(t,null))return!1;p({venues:t})},maxSuggestions:20},"query-controls-venues-select")]}),(0,$e.jsxs)(c.PanelBody,{children:[(0,$e.jsx)(c.ToggleControl,{label:(0,a.__)("Show/Hide All RSVP Responses","gatherpress"),help:i.eventOptions.showRsvpResponse?(0,a.__)("Show All RSVP Responses","gatherpress"):(0,a.__)("Hide All RSVP Responses","gatherpress"),checked:null===(o=i.eventOptions.showRsvpResponse)||void 0===o||o,onChange:e=>{p({eventOptions:{...i.eventOptions,showRsvpResponse:e}})}}),(0,$e.jsx)(c.ToggleControl,{label:(0,a.__)("Show/Hide My RSVP Response","gatherpress"),help:i.eventOptions.showRsvp?(0,a.__)("Show My RSVP Response","gatherpress"):(0,a.__)("Hide My RSVP Response","gatherpress"),checked:i.eventOptions.showRsvp,onChange:e=>{p({eventOptions:{...i.eventOptions,showRsvp:e}})}}),(0,$e.jsx)(c.SelectControl,{label:(0,a.__)("Image Size Options","gatherpress"),value:i.eventOptions.imageSize,options:[{label:"Default",value:"default"},{label:"Thumbnail",value:"thumbnail"},{label:"Large",value:"large"}],onChange:e=>p({eventOptions:{...i.eventOptions,imageSize:e}})}),(0,$e.jsx)(c.ToggleControl,{label:(0,a.__)("Show/Hide Featured Image","gatherpress"),help:i.eventOptions.showFeaturedImage?(0,a.__)("Show Featured Image","gatherpress"):(0,a.__)("Hide Featured Image","gatherpress"),checked:i.eventOptions.showFeaturedImage,onChange:e=>{p({eventOptions:{...i.eventOptions,showFeaturedImage:e}})}}),(0,$e.jsx)(c.ToggleControl,{label:(0,a.__)("Show/Hide Description","gatherpress"),help:i.eventOptions.showDescription?(0,a.__)("Show Description","gatherpress"):(0,a.__)("Hide Description","gatherpress"),checked:i.eventOptions.showDescription,onChange:e=>{p({eventOptions:{...i.eventOptions,showDescription:e}})}}),(0,$e.jsx)(c.TextControl,{label:(0,a.__)("Description Limit","gatherpress"),help:(0,a.__)("Limit the amount of words that display underneath the title of the event","gatherpress"),value:parseInt(i.eventOptions.descriptionLimit),onChange:e=>p({eventOptions:{...i.eventOptions,descriptionLimit:e}}),min:0,max:55,type:"number"}),(0,$e.jsx)(c.ToggleControl,{label:(0,a.__)("Show/Event Venue","gatherpress"),help:i.eventOptions.showVenue?(0,a.__)("Show Event Venue","gatherpress"):(0,a.__)("Hide Event Venue","gatherpress"),checked:i.eventOptions.showVenue,onChange:e=>{p({eventOptions:{...i.eventOptions,showVenue:e}})}})]})]}),(0,$e.jsx)("div",{...f,children:(0,$e.jsx)(Je,{children:(0,$e.jsx)(Ze,{eventOptions:i.eventOptions,maxNumberOfEvents:i.maxNumberOfEvents,datetimeFormat:i.datetimeFormat,type:i.type,topics:i.topics,venues:i.venues})})})]})},save:()=>null})},9090:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&0==(y-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:g[e],afterOpen:g[e]+"--after-open",beforeClose:g[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,o){return n[e+"-"+o]=t[o],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName,i=e.parentSelector,s=i&&i().ownerDocument||document;r&&d.add(s.body,r),o&&d.add(s.getElementsByTagName("html")[0],o),n&&(y+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,s=e.children,a=n?{}:i.content,l=r?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:t,ref:this.setContentRef,style:o({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,s);return this.props.overlayElement(c,d)}}]),t}(s.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(f.default),a.default.instanceOf(p.SafeHTMLCollection),a.default.instanceOf(p.SafeNodeList),a.default.arrayOf(a.default.instanceOf(f.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=b,e.exports=t.default},9628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},9771:e=>{"use strict";e.exports=function(){}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var o=e.lastIndexOf("\n");p=~o?e.length-o:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var v=[];function g(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;v.push(n)}function y(t){var n=t.exec(e);if(n){var o=n[0];return f(o),e=e.slice(o.length),n}}function b(){y(o)}function w(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return g("End of comment missing");var o=e.slice(2,n-2);return p+=2,f(o),e=e.slice(n),p+=2,t({type:"comment",comment:o})}}function x(){var e=h(),n=y(r);if(n){if(_(),!y(i))return g("property missing ':'");var o=y(s),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:o?u(o[0].replace(t,c)):c});return y(a),l}}return b(),function(){var e,t=[];for(w(t);e=x();)!1!==e&&(t.push(e),w(t));return t}()}}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}o.m=t,e=[],o.O=(t,n,r,i)=>{if(!n){var s=1/0;for(u=0;u=i)&&Object.keys(o.O).every(e=>o.O[e](n[l]))?n.splice(l--,1):(a=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[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),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={3105:0,6149:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[s,a,l]=n,c=0;if(s.some(t=>0!==e[t])){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);if(l)var u=l(o)}for(t&&t(n);co(8937));r=o.O(r)})();