HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/adspray/wp-content/plugins/lazy-blocks/build/editor.js
(()=>{var e={1991:(e,t)=>{var n;!function(){"use strict";var r=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)o(e,t[r])}e.prototype=Object.create(null);var n={}.hasOwnProperty,r=/\s+/;function o(e,o){if(o){var i=typeof o;"string"===i?function(e,t){for(var n=t.split(r),o=n.length,i=0;i<o;++i)e[n[i]]=!0}(e,o):Array.isArray(o)?t(e,o):"object"===i?function(e,t){if(t.toString===Object.prototype.toString||t.toString.toString().includes("[native code]"))for(var r in t)n.call(t,r)&&(e[r]=!!t[r]);else e[t.toString()]=!0}(e,o):"number"===i&&function(e,t){e[t]=!0}(e,o)}}return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=new e;t(i,r);var l=[];for(var a in i)i[a]&&l.push(a);return l.join(" ")}}();e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},9960:(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},102:e=>{e.exports={control:function(e,t){var n=Object.assign(e,{cursor:"pointer",minHeight:30});return n=t.isFocused&&!t.isDisabled?Object.assign(n,{borderColor:"#007cba"}):Object.assign(n,{borderColor:"#7e8993","&:hover":{borderColor:"#7e8993"}}),t.isFocused&&(n=Object.assign(n,{boxShadow:"0 0 0 1px #007cba","&:hover":{borderColor:"#007cba"}})),n},valueContainer:function(e){return Object.assign(e,{padding:"0 8px"})},input:function(e){return Object.assign(e,{margin:0,height:30,paddingTop:0,paddingBottom:0,input:{boxShadow:"none !important"}})},dropdownIndicator:function(e){return Object.assign(e,{padding:5,color:"#555555","&:hover":{color:"#555555"},svg:{width:17,height:17}})},clearIndicator:function(e){return Object.assign(e,{padding:5,svg:{width:15,height:15}})},indicatorSeparator:function(){return!1},multiValue:function(e){return Object.assign(e,{padding:"3px 4px",margin:4,marginLeft:0,borderRadius:15,backgroundColor:"#ddd"})},multiValueLabel:function(e){return Object.assign(e,{padding:0,color:"#32373c",fontSize:"90%"})},multiValueRemove:function(e){return Object.assign(e,{padding:0,marginLeft:5,marginTop:1,width:16,height:16,borderRadius:8,backgroundColor:"#555d66",color:"#ddd",justifyContent:"center",":hover":{backgroundColor:"#e02e2e",color:"#fff"},svg:{width:12,height:12}})},option:function(e,t){var n=Object.assign(e,{display:"flex",alignItems:"center",padding:"4px 10px"});return t.isFocused&&(n=Object.assign(n,{backgroundColor:"#efefef"})),t.isSelected&&(n=Object.assign(n,{backgroundColor:"#007cba"})),n},menu:function(e){return Object.assign(e,{zIndex:2})}}},8679:(e,t,n)=>{"use strict";var r=n(1296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function u(e){return r.isMemo(e)?l:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=l;var s=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var l=c(n);d&&(l=l.concat(d(n)));for(var a=u(t),m=u(n),v=0;v<l.length;++v){var g=l[v];if(!(i[g]||r&&r[g]||m&&m[g]||a&&a[g])){var y=f(n,g);try{s(t,g,y)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,l=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,C=n?Symbol.for("react.scope"):60119;function D(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case a:case l:case p:return e;default:switch(e=e&&e.$$typeof){case s:case f:case v:case m:case u:return e;default:return t}}case o:return t}}}function w(e){return D(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=l,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||D(e)===c},t.isConcurrentMode=w,t.isContextConsumer=function(e){return D(e)===s},t.isContextProvider=function(e){return D(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return D(e)===f},t.isFragment=function(e){return D(e)===i},t.isLazy=function(e){return D(e)===v},t.isMemo=function(e){return D(e)===m},t.isPortal=function(e){return D(e)===o},t.isProfiler=function(e){return D(e)===a},t.isStrictMode=function(e){return D(e)===l},t.isSuspense=function(e){return D(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===l||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===s||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===C||e.$$typeof===g)},t.typeOf=D},1296:(e,t,n)=>{"use strict";e.exports=n(6103)},885:(e,t)=>{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"]},8276:e=>{var t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,l=/<body[^]*>/i,a=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},s="object"==typeof window&&window.DOMParser;if("function"==typeof s){var c=new s;a=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),c.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();a=function(e,t){return t?(d.documentElement.querySelector(t).innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var f,p="object"==typeof document?document.createElement("template"):{};p.content&&(f=function(e){return p.innerHTML=e,p.content.childNodes}),e.exports=function(e){var s,c,d,p,h=e.match(o);switch(h&&h[1]&&(s=h[1].toLowerCase()),s){case t:return c=u(e),i.test(e)||(d=c.querySelector(n))&&d.parentNode.removeChild(d),l.test(e)||(d=c.querySelector(r))&&d.parentNode.removeChild(d),c.querySelectorAll(t);case n:case r:return p=(c=a(e)).querySelectorAll(s),l.test(e)&&i.test(e)?p[0].parentNode.childNodes:p;default:return f?f(e):(d=a(e,r).querySelector(r)).childNodes}}},4152:(e,t,n)=>{var r=n(8276),o=n(1507).formatDOM,i=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(i);return n&&n[1]&&(t=n[1]),o(r(e),null,t)}},1507:(e,t,n)=>{for(var r,o=n(4584),i=n(885).CASE_SENSITIVE_TAG_NAMES,l=o.Comment,a=o.Element,u=o.ProcessingInstruction,s=o.Text,c={},d=0,f=i.length;d<f;d++)r=i[d],c[r.toLowerCase()]=r;function p(e){for(var t,n={},r=0,o=e.length;r<o;r++)n[(t=e[r]).name]=t.value;return n}function h(e){return function(e){return c[e]}(e=e.toLowerCase())||e}t.formatAttributes=p,t.formatDOM=function e(t,n,r){n=n||null;for(var o,i=[],c=0,d=t.length;c<d;c++){var f,m=t[c];switch(m.nodeType){case 1:o=h(m.nodeName),(f=new a(o,p(m.attributes))).children=e("template"===o?m.content.childNodes:m.childNodes,f);break;case 3:f=new s(m.nodeValue);break;case 8:f=new l(m.nodeValue);break;default:continue}var v=i[c-1]||null;v&&(v.next=f),f.parent=n,f.prev=v,f.next=null,i.push(f)}return r&&((f=new u(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=i[0]||null,f.parent=n,i.unshift(f),i[1]&&(i[1].prev=i[0])),i}},4584:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(9960),l=n(1642);o(n(1642),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,n){this.dom=[],this.root=new l.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 l.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,r=new l.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},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 l.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 l.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new l.Text(""),t=new l.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 l.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=u,t.default=u},1642:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var l=n(9960),a=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),w(this,e)},e}();t.Node=a;var u=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(a);t.DataNode=u;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(u);t.Text=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(u);t.Comment=c;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=l.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(u);t.ProcessingInstruction=d;var f=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?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=f;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);t.CDATA=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?l.ElementType.Script:"style"===t?l.ElementType.Style:l.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(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,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(f);function v(e){return(0,l.isTag)(e)}function g(e){return e.type===l.ElementType.CDATA}function y(e){return e.type===l.ElementType.Text}function b(e){return e.type===l.ElementType.Comment}function C(e){return e.type===l.ElementType.Directive}function D(e){return e.type===l.ElementType.Root}function w(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new s(e.data);else if(b(e))n=new c(e.data);else if(v(e)){var r=t?S(e.children):[],o=new m(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(g(e)){r=t?S(e.children):[];var l=new p(r);r.forEach((function(e){return e.parent=l})),n=l}else if(D(e)){r=t?S(e.children):[];var a=new h(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!C(e))throw new Error("Not implemented yet: ".concat(e.type));var u=new d(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),n=u}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){for(var t=e.map((function(e){return w(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=v,t.isCDATA=g,t.isText=y,t.isComment=b,t.isDirective=C,t.isDocument=D,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=w},488:(e,t,n)=>{var r=n(7384),o=n(4152),i=n(484),l=n(3670);o="function"==typeof o.default?o.default:o;var a={lowerCaseAttributeNames:!1};function u(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:l(o(e,(t=t||{}).htmlparser2||a),t)}u.domToReact=l,u.htmlToDOM=o,u.attributesToProps=i,u.Comment=r.Comment,u.Element=r.Element,u.ProcessingInstruction=r.ProcessingInstruction,u.Text=r.Text,e.exports=u,u.default=u},484:(e,t,n)=>{var r=n(5726),o=n(4606),i=["checked","value"],l=["input","select","textarea"],a={reset:!0,submit:!0};function u(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,s,c,d,f,p={},h=(e=e||{}).type&&a[e.type];for(n in e)if(c=e[n],r.isCustomAttribute(n))p[n]=c;else if(d=u(s=n.toLowerCase()))switch(f=r.getPropertyInfo(d),-1===i.indexOf(d)||-1===l.indexOf(t)||h||(d=u("default"+s)),p[d]=c,f&&f.type){case r.BOOLEAN:p[d]=!0;break;case r.OVERLOADED_BOOLEAN:""===c&&(p[d]=!0)}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(p[n]=c);return o.setStyleProp(e.style,p),p}},3670:(e,t,n)=>{var r=n(9196),o=n(484),i=n(4606),l=i.setStyleProp,a=i.canTextBeChildOfNode;function u(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&i.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var i,s,c,d,f,p=(n=n||{}).library||r,h=p.cloneElement,m=p.createElement,v=p.isValidElement,g=[],y="function"==typeof n.replace,b=n.trim,C=0,D=t.length;C<D;C++)if(i=t[C],y&&v(c=n.replace(i)))D>1&&(c=h(c,{key:c.key||C})),g.push(c);else if("text"!==i.type){switch(d=i.attribs,u(i)?l(d.style,d):d&&(d=o(d,i.name)),f=null,i.type){case"script":case"style":i.children[0]&&(d.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?d.defaultValue=i.children[0].data:i.children&&i.children.length&&(f=e(i.children,n));break;default:continue}D>1&&(d.key=C),g.push(m(i.name,d,f))}else{if((s=!i.data.trim().length)&&i.parent&&!a(i.parent))continue;if(b&&s)continue;g.push(i.data)}return 1===g.length?g[0]:g}},4606:(e,t,n)=>{var r=n(9196),o=n(1476).default,i={reactCompat:!0},l=r.version.split(".")[0]>=16,a=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:l,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,o="function"==typeof t,i={},l={};for(n in e)r=e[n],o&&(i=t(n,r))&&2===i.length?l[i[0]]=i[1]:"string"==typeof r&&(l[r]=n);return l},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=o(e,i)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!a.has(e.name)},elementsWithNoTextChildren:a}},7384:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(9960),l=n(5079);o(n(5079),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,n){this.dom=[],this.root=new l.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 l.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,r=new l.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},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 l.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 l.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new l.Text(""),t=new l.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 l.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=u,t.default=u},5079:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var l=n(9960),a=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),w(this,e)},e}();t.Node=a;var u=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(a);t.DataNode=u;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(u);t.Text=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(u);t.Comment=c;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=l.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(u);t.ProcessingInstruction=d;var f=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?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=f;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);t.CDATA=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?l.ElementType.Script:"style"===t?l.ElementType.Style:l.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(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,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(f);function v(e){return(0,l.isTag)(e)}function g(e){return e.type===l.ElementType.CDATA}function y(e){return e.type===l.ElementType.Text}function b(e){return e.type===l.ElementType.Comment}function C(e){return e.type===l.ElementType.Directive}function D(e){return e.type===l.ElementType.Root}function w(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new s(e.data);else if(b(e))n=new c(e.data);else if(v(e)){var r=t?S(e.children):[],o=new m(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(g(e)){r=t?S(e.children):[];var l=new p(r);r.forEach((function(e){return e.parent=l})),n=l}else if(D(e)){r=t?S(e.children):[];var a=new h(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!C(e))throw new Error("Not implemented yet: ".concat(e.type));var u=new d(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),n=u}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){for(var t=e.map((function(e){return w(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=v,t.isCDATA=g,t.isText=y,t.isComment=b,t.isDirective=C,t.isDocument=D,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=w},8139:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,u=/^\s+|\s+$/g,s="";function c(e){return e?e.replace(u,s):s}e.exports=function(e,u){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];u=u||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=u.source}m.prototype.content=e;var v=[];function g(t){var n=new Error(u.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=u.source,n.line=d,n.column=f,n.source=e,!u.silent)throw n;v.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){y(r)}function C(e){var t;for(e=e||[];t=D();)!1!==t&&e.push(t);return e}function D(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;s!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,s===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function w(){var e=h(),n=y(o);if(n){if(D(),!y(i))return g("property missing ':'");var r=y(l),u=e({type:"declaration",property:c(n[0].replace(t,s)),value:r?c(r[0].replace(t,s)):s});return y(a),u}}return b(),function(){var e,t=[];for(C(t);e=w();)!1!==e&&(t.push(e),C(t));return t}()}},1142:function(e){e.exports=function(){"use strict";function e(e,t){return e(t={exports:{}},t.exports),t.exports}var t=e((function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)})),n=e((function(e){var t=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=t)})),r=(n.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),o=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e},i=function(e){try{return!!e()}catch(e){return!0}},l=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),a=t.document,u=r(a)&&r(a.createElement),s=!l&&!i((function(){return 7!=Object.defineProperty((e="div",u?a.createElement(e):{}),"a",{get:function(){return 7}}).a;var e})),c=Object.defineProperty,d={f:l?Object.defineProperty:function(e,t,n){if(o(e),t=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}(t,!0),o(n),s)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},f=l?function(e,t,n){return d.f(e,t,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}(1,n))}:function(e,t,n){return e[t]=n,e},p={}.hasOwnProperty,h=function(e,t){return p.call(e,t)},m=0,v=Math.random(),g=e((function(e){var r="__core-js_shared__",o=t[r]||(t[r]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),y=g("native-function-to-string",Function.toString),b=e((function(e){var r=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++m+v).toString(36))}("src"),o="toString",i=(""+y).split(o);n.inspectSource=function(e){return y.call(e)},(e.exports=function(e,n,o,l){var a="function"==typeof o;a&&(h(o,"name")||f(o,"name",n)),e[n]!==o&&(a&&(h(o,r)||f(o,r,e[n]?""+e[n]:i.join(String(n)))),e===t?e[n]=o:l?e[n]?e[n]=o:f(e,n,o):(delete e[n],f(e,n,o)))})(Function.prototype,o,(function(){return"function"==typeof this&&this[r]||y.call(this)}))})),C=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!")}(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},D="prototype",w=function(e,r,o){var i,l,a,u,s=e&w.F,c=e&w.G,d=e&w.S,p=e&w.P,h=e&w.B,m=c?t:d?t[r]||(t[r]={}):(t[r]||{})[D],v=c?n:n[r]||(n[r]={}),g=v[D]||(v[D]={});for(i in c&&(o=r),o)a=((l=!s&&m&&void 0!==m[i])?m:o)[i],u=h&&l?C(a,t):p&&"function"==typeof a?C(Function.call,a):a,m&&b(m,i,a,e&w.U),v[i]!=a&&f(v,i,u),p&&g[i]!=a&&(g[i]=a)};t.core=n,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128;var S=w,_=Math.ceil,E=Math.floor,x=function(e){return isNaN(e=+e)?0:(e>0?E:_)(e)},A=(!1,function(e,t){var n,r,o=String(function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}(e)),i=x(t),l=o.length;return i<0||i>=l?void 0:(n=o.charCodeAt(i))<55296||n>56319||i+1===l||(r=o.charCodeAt(i+1))<56320||r>57343?n:r-56320+(n-55296<<10)+65536});S(S.P,"String",{codePointAt:function(e){return A(this,e)}}),n.String.codePointAt;var O=Math.max,F=Math.min,k=String.fromCharCode,T=String.fromCodePoint;S(S.S+S.F*(!!T&&1!=T.length),"String",{fromCodePoint:function(e){for(var t,n=arguments,r=[],o=arguments.length,i=0;o>i;){if(t=+n[i++],a=1114111,((l=x(l=t))<0?O(l+a,0):F(l,a))!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?k(t):k(55296+((t-=65536)>>10),t%1024+56320))}var l,a;return r.join("")}}),n.String.fromCodePoint;var I,R,P,M,z,B,L,j,N,H,V,G,W,U,$={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},q={isSpaceSeparator:function(e){return"string"==typeof e&&$.Space_Separator.test(e)},isIdStartChar:function(e){return"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||$.ID_Start.test(e))},isIdContinueChar:function(e){return"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||"‌"===e||"‍"===e||$.ID_Continue.test(e))},isDigit:function(e){return"string"==typeof e&&/[0-9]/.test(e)},isHexDigit:function(e){return"string"==typeof e&&/[0-9A-Fa-f]/.test(e)}};function X(e,t,n){var r=e[t];if(null!=r&&"object"==typeof r)if(Array.isArray(r))for(var o=0;o<r.length;o++){var i=String(o),l=X(r,i,n);void 0===l?delete r[i]:Object.defineProperty(r,i,{value:l,writable:!0,enumerable:!0,configurable:!0})}else for(var a in r){var u=X(r,a,n);void 0===u?delete r[a]:Object.defineProperty(r,a,{value:u,writable:!0,enumerable:!0,configurable:!0})}return n.call(e,t,r)}function Y(){for(H="default",V="",G=!1,W=1;;){U=K();var e=Z[H]();if(e)return e}}function K(){if(I[M])return String.fromCodePoint(I.codePointAt(M))}function J(){var e=K();return"\n"===e?(z++,B=0):e?B+=e.length:B++,e&&(M+=e.length),e}var Z={default:function(){switch(U){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void J();case"/":return J(),void(H="comment");case void 0:return J(),Q("eof")}if(!q.isSpaceSeparator(U))return Z[R]();J()},comment:function(){switch(U){case"*":return J(),void(H="multiLineComment");case"/":return J(),void(H="singleLineComment")}throw ie(J())},multiLineComment:function(){switch(U){case"*":return J(),void(H="multiLineCommentAsterisk");case void 0:throw ie(J())}J()},multiLineCommentAsterisk:function(){switch(U){case"*":return void J();case"/":return J(),void(H="default");case void 0:throw ie(J())}J(),H="multiLineComment"},singleLineComment:function(){switch(U){case"\n":case"\r":case"\u2028":case"\u2029":return J(),void(H="default");case void 0:return J(),Q("eof")}J()},value:function(){switch(U){case"{":case"[":return Q("punctuator",J());case"n":return J(),ee("ull"),Q("null",null);case"t":return J(),ee("rue"),Q("boolean",!0);case"f":return J(),ee("alse"),Q("boolean",!1);case"-":case"+":return"-"===J()&&(W=-1),void(H="sign");case".":return V=J(),void(H="decimalPointLeading");case"0":return V=J(),void(H="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return V=J(),void(H="decimalInteger");case"I":return J(),ee("nfinity"),Q("numeric",1/0);case"N":return J(),ee("aN"),Q("numeric",NaN);case'"':case"'":return G='"'===J(),V="",void(H="string")}throw ie(J())},identifierNameStartEscape:function(){if("u"!==U)throw ie(J());J();var e=te();switch(e){case"$":case"_":break;default:if(!q.isIdStartChar(e))throw ae()}V+=e,H="identifierName"},identifierName:function(){switch(U){case"$":case"_":case"‌":case"‍":return void(V+=J());case"\\":return J(),void(H="identifierNameEscape")}if(!q.isIdContinueChar(U))return Q("identifier",V);V+=J()},identifierNameEscape:function(){if("u"!==U)throw ie(J());J();var e=te();switch(e){case"$":case"_":case"‌":case"‍":break;default:if(!q.isIdContinueChar(e))throw ae()}V+=e,H="identifierName"},sign:function(){switch(U){case".":return V=J(),void(H="decimalPointLeading");case"0":return V=J(),void(H="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return V=J(),void(H="decimalInteger");case"I":return J(),ee("nfinity"),Q("numeric",W*(1/0));case"N":return J(),ee("aN"),Q("numeric",NaN)}throw ie(J())},zero:function(){switch(U){case".":return V+=J(),void(H="decimalPoint");case"e":case"E":return V+=J(),void(H="decimalExponent");case"x":case"X":return V+=J(),void(H="hexadecimal")}return Q("numeric",0*W)},decimalInteger:function(){switch(U){case".":return V+=J(),void(H="decimalPoint");case"e":case"E":return V+=J(),void(H="decimalExponent")}if(!q.isDigit(U))return Q("numeric",W*Number(V));V+=J()},decimalPointLeading:function(){if(q.isDigit(U))return V+=J(),void(H="decimalFraction");throw ie(J())},decimalPoint:function(){switch(U){case"e":case"E":return V+=J(),void(H="decimalExponent")}return q.isDigit(U)?(V+=J(),void(H="decimalFraction")):Q("numeric",W*Number(V))},decimalFraction:function(){switch(U){case"e":case"E":return V+=J(),void(H="decimalExponent")}if(!q.isDigit(U))return Q("numeric",W*Number(V));V+=J()},decimalExponent:function(){switch(U){case"+":case"-":return V+=J(),void(H="decimalExponentSign")}if(q.isDigit(U))return V+=J(),void(H="decimalExponentInteger");throw ie(J())},decimalExponentSign:function(){if(q.isDigit(U))return V+=J(),void(H="decimalExponentInteger");throw ie(J())},decimalExponentInteger:function(){if(!q.isDigit(U))return Q("numeric",W*Number(V));V+=J()},hexadecimal:function(){if(q.isHexDigit(U))return V+=J(),void(H="hexadecimalInteger");throw ie(J())},hexadecimalInteger:function(){if(!q.isHexDigit(U))return Q("numeric",W*Number(V));V+=J()},string:function(){switch(U){case"\\":return J(),void(V+=function(){switch(K()){case"b":return J(),"\b";case"f":return J(),"\f";case"n":return J(),"\n";case"r":return J(),"\r";case"t":return J(),"\t";case"v":return J(),"\v";case"0":if(J(),q.isDigit(K()))throw ie(J());return"\0";case"x":return J(),function(){var e="",t=K();if(!q.isHexDigit(t))throw ie(J());if(e+=J(),t=K(),!q.isHexDigit(t))throw ie(J());return e+=J(),String.fromCodePoint(parseInt(e,16))}();case"u":return J(),te();case"\n":case"\u2028":case"\u2029":return J(),"";case"\r":return J(),"\n"===K()&&J(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw ie(J())}return J()}());case'"':return G?(J(),Q("string",V)):void(V+=J());case"'":return G?void(V+=J()):(J(),Q("string",V));case"\n":case"\r":throw ie(J());case"\u2028":case"\u2029":!function(e){console.warn("JSON5: '"+ue(e)+"' in strings is not valid ECMAScript; consider escaping")}(U);break;case void 0:throw ie(J())}V+=J()},start:function(){switch(U){case"{":case"[":return Q("punctuator",J())}H="value"},beforePropertyName:function(){switch(U){case"$":case"_":return V=J(),void(H="identifierName");case"\\":return J(),void(H="identifierNameStartEscape");case"}":return Q("punctuator",J());case'"':case"'":return G='"'===J(),void(H="string")}if(q.isIdStartChar(U))return V+=J(),void(H="identifierName");throw ie(J())},afterPropertyName:function(){if(":"===U)return Q("punctuator",J());throw ie(J())},beforePropertyValue:function(){H="value"},afterPropertyValue:function(){switch(U){case",":case"}":return Q("punctuator",J())}throw ie(J())},beforeArrayValue:function(){if("]"===U)return Q("punctuator",J());H="value"},afterArrayValue:function(){switch(U){case",":case"]":return Q("punctuator",J())}throw ie(J())},end:function(){throw ie(J())}};function Q(e,t){return{type:e,value:t,line:z,column:B}}function ee(e){for(var t=0,n=e;t<n.length;t+=1){var r=n[t];if(K()!==r)throw ie(J());J()}}function te(){for(var e="",t=4;t-- >0;){var n=K();if(!q.isHexDigit(n))throw ie(J());e+=J()}return String.fromCodePoint(parseInt(e,16))}var ne={start:function(){if("eof"===L.type)throw le();re()},beforePropertyName:function(){switch(L.type){case"identifier":case"string":return j=L.value,void(R="afterPropertyName");case"punctuator":return void oe();case"eof":throw le()}},afterPropertyName:function(){if("eof"===L.type)throw le();R="beforePropertyValue"},beforePropertyValue:function(){if("eof"===L.type)throw le();re()},beforeArrayValue:function(){if("eof"===L.type)throw le();"punctuator"!==L.type||"]"!==L.value?re():oe()},afterPropertyValue:function(){if("eof"===L.type)throw le();switch(L.value){case",":return void(R="beforePropertyName");case"}":oe()}},afterArrayValue:function(){if("eof"===L.type)throw le();switch(L.value){case",":return void(R="beforeArrayValue");case"]":oe()}},end:function(){}};function re(){var e;switch(L.type){case"punctuator":switch(L.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=L.value}if(void 0===N)N=e;else{var t=P[P.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,j,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(null!==e&&"object"==typeof e)P.push(e),R=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{var n=P[P.length-1];R=null==n?"end":Array.isArray(n)?"afterArrayValue":"afterPropertyValue"}}function oe(){P.pop();var e=P[P.length-1];R=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function ie(e){return se(void 0===e?"JSON5: invalid end of input at "+z+":"+B:"JSON5: invalid character '"+ue(e)+"' at "+z+":"+B)}function le(){return se("JSON5: invalid end of input at "+z+":"+B)}function ae(){return se("JSON5: invalid identifier character at "+z+":"+(B-=5))}function ue(e){var t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){var n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function se(e){var t=new SyntaxError(e);return t.lineNumber=z,t.columnNumber=B,t}return{parse:function(e,t){I=String(e),R="start",P=[],M=0,z=1,B=0,L=void 0,j=void 0,N=void 0;do{L=Y(),ne[R]()}while("eof"!==L.type);return"function"==typeof t?X({"":N},"",t):N},stringify:function(e,t,n){var r,o,i,l=[],a="",u="";if(null==t||"object"!=typeof t||Array.isArray(t)||(n=t.space,i=t.quote,t=t.replacer),"function"==typeof t)o=t;else if(Array.isArray(t)){r=[];for(var s=0,c=t;s<c.length;s+=1){var d=c[s],f=void 0;"string"==typeof d?f=d:("number"==typeof d||d instanceof String||d instanceof Number)&&(f=String(d)),void 0!==f&&r.indexOf(f)<0&&r.push(f)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),"number"==typeof n?n>0&&(n=Math.min(10,Math.floor(n)),u="          ".substr(0,n)):"string"==typeof n&&(u=n.substr(0,10)),p("",{"":e});function p(e,t){var n=t[e];switch(null!=n&&("function"==typeof n.toJSON5?n=n.toJSON5(e):"function"==typeof n.toJSON&&(n=n.toJSON(e))),o&&(n=o.call(t,e,n)),n instanceof Number?n=Number(n):n instanceof String?n=String(n):n instanceof Boolean&&(n=n.valueOf()),n){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof n?h(n):"number"==typeof n?String(n):"object"==typeof n?Array.isArray(n)?function(e){if(l.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");l.push(e);var t=a;a+=u;for(var n,r=[],o=0;o<e.length;o++){var i=p(String(o),e);r.push(void 0!==i?i:"null")}if(0===r.length)n="[]";else if(""===u)n="["+r.join(",")+"]";else{var s=",\n"+a,c=r.join(s);n="[\n"+a+c+",\n"+t+"]"}return l.pop(),a=t,n}(n):function(e){if(l.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");l.push(e);var t=a;a+=u;for(var n,o,i=[],s=0,c=r||Object.keys(e);s<c.length;s+=1){var d=c[s],f=p(d,e);if(void 0!==f){var h=m(d)+":";""!==u&&(h+=" "),h+=f,i.push(h)}}if(0===i.length)n="{}";else if(""===u)n="{"+(o=i.join(","))+"}";else{var v=",\n"+a;o=i.join(v),n="{\n"+a+o+",\n"+t+"}"}return l.pop(),a=t,n}(n):void 0}function h(e){for(var t={"'":.1,'"':.2},n={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},r="",o=0;o<e.length;o++){var l=e[o];switch(l){case"'":case'"':t[l]++,r+=l;continue;case"\0":if(q.isDigit(e[o+1])){r+="\\x00";continue}}if(n[l])r+=n[l];else if(l<" "){var a=l.charCodeAt(0).toString(16);r+="\\x"+("00"+a).substring(a.length)}else r+=l}var u=i||Object.keys(t).reduce((function(e,n){return t[e]<t[n]?e:n}));return u+(r=r.replace(new RegExp(u,"g"),n[u]))+u}function m(e){if(0===e.length)return h(e);var t=String.fromCodePoint(e.codePointAt(0));if(!q.isIdStartChar(t))return h(e);for(var n=t.length;n<e.length;n++)if(!q.isIdContinueChar(String.fromCodePoint(e.codePointAt(n))))return h(e);return e}}}}()},5726:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t,n,r,o,i,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}Object.defineProperty(t,"__esModule",{value:!0});var i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){i[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t,n,l=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],_n=!0,l=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);_n=!0);}catch(e){l=!0,o=e}finally{try{_n||null==n.return||n.return()}finally{if(l)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=l[0],u=l[1];i[a]=new o(a,1,!1,u,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){i[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){i[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((function(e){i[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){i[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){i[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){i[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){i[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var l=/[\-\:]([a-z])/g,a=function(e){return 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((function(e){var t=e.replace(l,a);i[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(l,a);i[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(l,a);i[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){i[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)})),i.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){i[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var u=n(8229),s=u.CAMELCASE,c=u.SAME,d=u.possibleStandardNames,f=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]*$")),p=Object.keys(d).reduce((function(e,t){var n=d[t];return n===c?e[t]=t:n===s?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 i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=f,t.possibleStandardNames=p},8229:(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}},9835:(e,t,n)=>{e.exports=n(3419)},3419:(e,t)=>{function n(e){var t=0;if(0==e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}function r(e,t){t=t||62;var n,r=[],o="",i=e<0?"-":"";function l(e){return"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[e]}for(e=Math.abs(e);e>=t;)n=e%t,e=Math.floor(e/t),r.push(l(n));e>0&&r.push(l(e));for(var a=r.length-1;a>=0;a--)o+=r[a];return i+o}t.bitwise=n,t.binaryTransfer=r,t.unique=function(e){return r(n(e),61).replace("-","Z")},t.random=function(e){for(var t="",n=e||8,r=0;r<n;r++){var o=Math.floor(61*Math.random());t+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".substring(o,o+1)}return t}},1476:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=r(n(7848)),i=n(6678);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)})),n):n}},6678:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(l,u):e.replace(i,u)).replace(r,a))}},7848:(e,t,n)=>{var r=n(8139);function o(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var i,l,a=r(e),u="function"==typeof t,s=0,c=a.length;s<c;s++)i=(n=a[s]).property,l=n.value,u?t(i,l,n):l&&(o||(o={}),o[i]=l);return o}e.exports=o,e.exports.default=o},9196:e=>{"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{get:()=>s});var t={};n.r(t),n.d(t,{get:()=>Ku});var r={};n.r(r),n.d(r,{get:()=>rs});const o=window.wp.data;function i(){return"xxxyxx4xxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}var l=(window.lazyblocksConstructorData||window.lazyblocksGutenberg).controls,a=void 0===l?{}:l;function u(e){return e&&a[e]?a[e]:!!a.undefined&&a.undefined}function s(){return{getUID:i,getControlTypeData:u}}var c=(0,o.createReduxStore)("lazy-blocks/utils",{selectors:e,reducer:function(e){return e}});(0,o.register)(c);var d=n(1991),f=n.n(d),p=["label","help","className","children"];function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function m(e){var t=e.label,n=e.help,r=e.className,o=e.children,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,p);return wp.element.createElement("div",h({},i,{className:f()("lazyblocks-component-base-control",r)}),t?wp.element.createElement("div",{className:"lazyblocks-component-base-control__label"},t):null,o,n?wp.element.createElement("div",{className:"lazyblocks-component-base-control__help"},n):null)}const v=window.wp.components;function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e){return wp.element.createElement(v.BaseControl,{id:e.label,label:e.label||""},wp.element.createElement("div",{className:"lazyblocks-component-block-slug"},wp.element.createElement("div",{className:"lazyblocks-component-block-slug-prefix"},"lazyblock/"),wp.element.createElement(v.TextControl,b(b({},e),{label:""}))))}function w(e){var t=e["no-paddings"],n=e.children;return wp.element.createElement("div",{className:f()("lazyblocks-component-box",t?"lazyblocks-component-box-no-paddings":"")},n)}const S=window.wp.i18n;function _(e){var t=e.children;return wp.element.createElement("div",{className:"lazyblocks-component-copied"},t||(0,S.__)("Copied!","lazy-blocks"))}var E="",x="";function A(e){var t=e.children,n=(0,o.useSelect)((function(e){var t=(0,e("lazy-blocks/block-data").getSelectedControlId)();return E||t||(E="block"),x!==t&&(x=t,E=t?"control":"block"),{activeTab:E}}),[]).activeTab,r=(0,o.useDispatch)("lazy-blocks/block-data"),i=r.selectControl,l=r.clearSelectedControl;function a(e){E=e,"block"===e?l():i("NO_CONTROL_ID_JUST_SELECT_TAB")}return wp.element.createElement("div",{className:"lazyblocks-component-document-tabs"},wp.element.createElement("div",{className:"components-panel__header edit-post-sidebar-header edit-post-sidebar__panel-tabs"},wp.element.createElement("ul",null,wp.element.createElement("li",null,wp.element.createElement("button",{onClick:function(){a("block")},className:"components-button edit-post-sidebar__panel-tab ".concat("block"===n?"is-active":""),"aria-label":(0,S.__)("Block","lazy-blocks")},(0,S.__)("Block","lazy-blocks"))),wp.element.createElement("li",null,wp.element.createElement("button",{onClick:function(){a("control")},className:"components-button edit-post-sidebar__panel-tab ".concat("control"===n?"is-active":""),"aria-label":(0,S.__)("Control","lazy-blocks")},(0,S.__)("Control","lazy-blocks"))))),wp.element.createElement("div",{className:"lazyblocks-component-document-tabs-content"},t({name:n})))}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function k(e){var t=function(e,t){if("object"!==F(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==F(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===F(t)?t:String(t)}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}function I(e,t,n){return t&&T(e.prototype,t),n&&T(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return R(e)}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function z(e,t){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},z(e,t)}function B(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&z(e,t)}function L(e,t,n){return(t=k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=n(9196),N=n.n(j);function H(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function V(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function G(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function W(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,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==r?"\n  "+r:"")+(null!==o?"\n  "+o:"")+"\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=H,t.componentWillReceiveProps=V),"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=G;var a=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;a.call(this,e,t,r)}}return e}function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(this,arguments)}function $(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=$(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}H.__suppressDeprecationWarning=!0,V.__suppressDeprecationWarning=!0,G.__suppressDeprecationWarning=!0;const q=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=$(e))&&(r&&(r+=" "),r+=t);return r};function X(e){var t=e.cellCount,n=e.cellSize,r=e.computeMetadataCallback,o=e.computeMetadataCallbackProps,i=e.nextCellsCount,l=e.nextCellSize,a=e.nextScrollToIndex,u=e.scrollToIndex,s=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof l||n===l)||(r(o),u>=0&&u===a&&s())}function Y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var K=function(){function e(t){var n=t.cellCount,r=t.cellSizeGetter,o=t.estimatedCellSize;O(this,e),L(this,"_cellSizeAndPositionData",{}),L(this,"_lastMeasuredIndex",-1),L(this,"_lastBatchedIndex",-1),L(this,"_cellCount",void 0),L(this,"_cellSizeGetter",void 0),L(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=n,this._estimatedCellSize=o}return I(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var o=this._cellSizeGetter({index:r});if(void 0===o||isNaN(o))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(o));null===o?(this._cellSizeAndPositionData[r]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:n,size:o},n+=o,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;if(r<=0)return 0;var l,a=this.getSizeAndPositionOfCell(i),u=a.offset,s=u-r+a.size;switch(n){case"start":l=u;break;case"end":l=s;break;case"center":l=u-(r-a.size)/2;break;default:l=Math.max(s,Math.min(u,o))}var c=this.getTotalSize();return Math.max(0,Math.min(c-r,l))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var r=n+t,o=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(o);n=i.offset+i.size;for(var l=o;n<r&&l<this._cellCount-1;)l++,n+=this.getSizeAndPositionOfCell(l).size;return{start:o,stop:l}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,n){for(;t<=e;){var r=t+Math.floor((e-t)/2),o=this.getSizeAndPositionOfCell(r).offset;if(o===n)return r;o<n?t=r+1:o>n&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=n,n*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),n=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}(),J=function(){function e(t){var n=t.maxScrollSize,r=void 0===n?"undefined"!=typeof window&&window.chrome?16777100:15e5:n,o=Y(t,["maxScrollSize"]);O(this,e),L(this,"_cellSizeAndPositionManager",void 0),L(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new K(o),this._maxScrollSize=r}return I(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(o-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;o=this._safeOffsetToOffset({containerSize:r,offset:o});var l=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:o,targetIndex:i});return this._offsetToSafeOffset({containerSize:r,offset:l})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}}]),e}();function Z(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,o=n.indices,i=Object.keys(o),l=!e||i.every((function(e){var t=o[e];return Array.isArray(t)?t.length>0:t>=0})),a=i.length!==Object.keys(t).length||i.some((function(e){var n=t[e],r=o[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r}));t=o,l&&a&&r(o)}}function Q(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,l=e.previousScrollToIndex,a=e.previousSize,u=e.scrollOffset,s=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,f=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=n.getCellCount(),m=c>=0&&c<h;m&&(d!==a||f||!o||"number"==typeof t&&t!==o||s!==i||c!==l)?p(c):!m&&h>0&&(d<a||h<r)&&u>n.getTotalSize()-d&&p(h-1)}const ee=!("undefined"==typeof window||!window.document||!window.document.createElement);var te,ne;function re(e){if((!te&&0!==te||e)&&ee){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),te=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return te}var oe,ie,le=(ne="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||ne.webkitRequestAnimationFrame||ne.mozRequestAnimationFrame||ne.oRequestAnimationFrame||ne.msRequestAnimationFrame||function(e){return ne.setTimeout(e,1e3/60)},ae=ne.cancelAnimationFrame||ne.webkitCancelAnimationFrame||ne.mozCancelAnimationFrame||ne.oCancelAnimationFrame||ne.msCancelAnimationFrame||function(e){ne.clearTimeout(e)},ue=le,se=ae,ce=function(e){return se(e.id)},de=function(e,t){var n;Promise.resolve().then((function(){n=Date.now()}));var r={id:ue((function o(){Date.now()-n>=t?e.call():r.id=ue(o)}))};return r};function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(n,!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var he="requested",me=(ie=oe=function(e){function t(e){var n;O(this,t),L(R(n=P(this,M(t).call(this,e))),"_onGridRenderedMemoizer",Z()),L(R(n),"_onScrollMemoizer",Z(!1)),L(R(n),"_deferredInvalidateColumnIndex",null),L(R(n),"_deferredInvalidateRowIndex",null),L(R(n),"_recomputeScrollLeftFlag",!1),L(R(n),"_recomputeScrollTopFlag",!1),L(R(n),"_horizontalScrollBarSize",0),L(R(n),"_verticalScrollBarSize",0),L(R(n),"_scrollbarPresenceChanged",!1),L(R(n),"_scrollingContainer",void 0),L(R(n),"_childrenToDisplay",void 0),L(R(n),"_columnStartIndex",void 0),L(R(n),"_columnStopIndex",void 0),L(R(n),"_rowStartIndex",void 0),L(R(n),"_rowStopIndex",void 0),L(R(n),"_renderedColumnStartIndex",0),L(R(n),"_renderedColumnStopIndex",0),L(R(n),"_renderedRowStartIndex",0),L(R(n),"_renderedRowStopIndex",0),L(R(n),"_initialScrollTop",void 0),L(R(n),"_initialScrollLeft",void 0),L(R(n),"_disablePointerEventsTimeoutId",void 0),L(R(n),"_styleCache",{}),L(R(n),"_cellCache",{}),L(R(n),"_debounceScrollEndedCallback",(function(){n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1,needToResetStyleCache:!1})})),L(R(n),"_invokeOnGridRenderedHelper",(function(){var e=n.props.onSectionRendered;n._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:n._columnStartIndex,columnOverscanStopIndex:n._columnStopIndex,columnStartIndex:n._renderedColumnStartIndex,columnStopIndex:n._renderedColumnStopIndex,rowOverscanStartIndex:n._rowStartIndex,rowOverscanStopIndex:n._rowStopIndex,rowStartIndex:n._renderedRowStartIndex,rowStopIndex:n._renderedRowStopIndex}})})),L(R(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),L(R(n),"_onScroll",(function(e){e.target===n._scrollingContainer&&n.handleScrollEvent(e.target)}));var r=new J({cellCount:e.columnCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.columnWidth)(n)},estimatedCellSize:t._getEstimatedColumnSize(e)}),o=new J({cellCount:e.rowCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.rowHeight)(n)},estimatedCellSize:t._getEstimatedRowSize(e)});return n.state={instanceProps:{columnSizeAndPositionManager:r,rowSizeAndPositionManager:o,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return B(t,e),I(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,o=void 0===r?this.props.scrollToColumn:r,i=e.rowIndex,l=void 0===i?this.props.scrollToRow:i,a=pe({},this.props,{scrollToAlignment:n,scrollToColumn:o,scrollToRow:l});return{scrollLeft:this._getCalculatedScrollLeft(a),scrollTop:this._getCalculatedScrollTop(a)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r;if(!(o<0)){this._debounceScrollEnded();var i=this.props,l=i.autoHeight,a=i.autoWidth,u=i.height,s=i.width,c=this.state.instanceProps,d=c.scrollbarSize,f=c.rowSizeAndPositionManager.getTotalSize(),p=c.columnSizeAndPositionManager.getTotalSize(),h=Math.min(Math.max(0,p-s+d),n),m=Math.min(Math.max(0,f-u+d),o);if(this.state.scrollLeft!==h||this.state.scrollTop!==m){var v={isScrolling:!0,scrollDirectionHorizontal:h!==this.state.scrollLeft?h>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};l||(v.scrollTop=m),a||(v.scrollLeft=h),v.needToResetStyleCache=!1,this.setState(v)}this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:f})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,l=i.scrollToColumn,a=i.scrollToRow,u=this.state.instanceProps;u.columnSizeAndPositionManager.resetCell(n),u.rowSizeAndPositionManager.resetCell(o),this._recomputeScrollLeftFlag=l>=0&&(1===this.state.scrollDirectionHorizontal?n<=l:n>=l),this._recomputeScrollTopFlag=a>=0&&(1===this.state.scrollDirectionVertical?o<=a:o>=a),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,o=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(pe({},o,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow(pe({},o,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,r=e.height,o=e.scrollLeft,i=e.scrollToColumn,l=e.scrollTop,a=e.scrollToRow,u=e.width,s=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),s.scrollbarSizeMeasured||this.setState((function(e){var t=pe({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof o&&o>=0||"number"==typeof l&&l>=0){var c=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:l});c&&(c.needToResetStyleCache=!1,this.setState(c))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=r>0&&u>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),a>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:l||0,totalColumnsWidth:s.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:s.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.autoHeight,i=r.autoWidth,l=r.columnCount,a=r.height,u=r.rowCount,s=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,f=r.width,p=this.state,h=p.scrollLeft,m=p.scrollPositionChangeReason,v=p.scrollTop,g=p.instanceProps;this._handleInvalidatedGridSize();var y=l>0&&0===e.columnCount||u>0&&0===e.rowCount;m===he&&(!i&&h>=0&&(h!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=h),!o&&v>=0&&(v!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=v));var b=(0===e.width||0===e.height)&&a>0&&f>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Q({cellSizeAndPositionManager:g.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:s,scrollToIndex:c,size:f,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Q({cellSizeAndPositionManager:g.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:v,scrollToAlignment:s,scrollToIndex:d,size:a,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||v!==t.scrollTop){var C=g.rowSizeAndPositionManager.getTotalSize(),D=g.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:v,totalColumnsWidth:D,totalRowsHeight:C})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&ce(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,o=e.className,i=e.containerProps,l=e.containerRole,a=e.containerStyle,u=e.height,s=e.id,c=e.noContentRenderer,d=e.role,f=e.style,p=e.tabIndex,h=e.width,m=this.state,v=m.instanceProps,g=m.needToResetStyleCache,y=this._isScrolling(),b={boxSizing:"border-box",direction:"ltr",height:n?"auto":u,position:"relative",width:r?"auto":h,WebkitOverflowScrolling:"touch",willChange:"transform"};g&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var C=v.columnSizeAndPositionManager.getTotalSize(),D=v.rowSizeAndPositionManager.getTotalSize(),w=D>u?v.scrollbarSize:0,S=C>h?v.scrollbarSize:0;S===this._horizontalScrollBarSize&&w===this._verticalScrollBarSize||(this._horizontalScrollBarSize=S,this._verticalScrollBarSize=w,this._scrollbarPresenceChanged=!0),b.overflowX=C+w<=h?"hidden":"auto",b.overflowY=D+S<=u?"hidden":"auto";var _=this._childrenToDisplay,E=0===_.length&&u>0&&h>0;return j.createElement("div",U({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:q("ReactVirtualized__Grid",o),id:s,onScroll:this._onScroll,role:d,style:pe({},b,{},f),tabIndex:p}),_.length>0&&j.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:l,style:pe({width:t?"auto":C,height:D,maxWidth:C,maxHeight:D,overflow:"hidden",pointerEvents:y?"none":"",position:"relative"},a)},_),E&&c())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,o=e.columnCount,i=e.deferredMeasurementCache,l=e.height,a=e.overscanColumnCount,u=e.overscanIndicesGetter,s=e.overscanRowCount,c=e.rowCount,d=e.width,f=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.instanceProps,v=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,g=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],l>0&&d>0){var b=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:g}),C=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:l,offset:v}),D=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:g}),w=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:l,offset:v});this._renderedColumnStartIndex=b.start,this._renderedColumnStopIndex=b.stop,this._renderedRowStartIndex=C.start,this._renderedRowStopIndex=C.stop;var S=u({direction:"horizontal",cellCount:o,overscanCellsCount:a,scrollDirection:p,startIndex:"number"==typeof b.start?b.start:0,stopIndex:"number"==typeof b.stop?b.stop:-1}),_=u({direction:"vertical",cellCount:c,overscanCellsCount:s,scrollDirection:h,startIndex:"number"==typeof C.start?C.start:0,stopIndex:"number"==typeof C.stop?C.stop:-1}),E=S.overscanStartIndex,x=S.overscanStopIndex,A=_.overscanStartIndex,O=_.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var F=A;F<=O;F++)if(!i.has(F,0)){E=0,x=o-1;break}if(!i.hasFixedWidth())for(var k=E;k<=x;k++)if(!i.has(0,k)){A=0,O=c-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:E,columnStopIndex:x,deferredMeasurementCache:i,horizontalOffsetAdjustment:D,isScrolling:y,isScrollingOptOut:f,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:A,rowStopIndex:O,scrollLeft:g,scrollTop:v,styleCache:this._styleCache,verticalOffsetAdjustment:w,visibleColumnIndices:b,visibleRowIndices:C}),this._columnStartIndex=E,this._columnStopIndex=x,this._rowStartIndex=A,this._rowStopIndex=O}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&ce(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=de(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,l=t.props,a=l.height;(0,l.onScroll)({clientHeight:a,clientWidth:l.width,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:o})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,r=e.scrollTop,o=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:r});o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var o=this._columnStartIndex;o<=this._columnStopIndex;o++){var i="".concat(r,"-").concat(o);this._styleCache[i]=e[i],n&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Object.assign(r,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var o,i,l=n.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===l.prevColumnWidth&&e.rowHeight===l.prevRowHeight||(r.needToResetStyleCache=!0),l.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),l.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==l.prevColumnCount&&0!==l.prevRowCount||(l.prevColumnCount=0,l.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===l.prevIsScrolling&&Object.assign(r,{isScrolling:!1}),X({cellCount:l.prevColumnCount,cellSize:"number"==typeof l.prevColumnWidth?l.prevColumnWidth:null,computeMetadataCallback:function(){return l.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:l.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){o=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),X({cellCount:l.prevRowCount,cellSize:"number"==typeof l.prevRowHeight?l.prevRowHeight:null,computeMetadataCallback:function(){return l.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:l.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),l.prevColumnCount=e.columnCount,l.prevColumnWidth=e.columnWidth,l.prevIsScrolling=!0===e.isScrolling,l.prevRowCount=e.rowCount,l.prevRowHeight=e.rowHeight,l.prevScrollToColumn=e.scrollToColumn,l.prevScrollToRow=e.scrollToRow,l.scrollbarSize=e.getScrollbarSize(),void 0===l.scrollbarSize?(l.scrollbarSizeMeasured=!1,l.scrollbarSize=0):l.scrollbarSizeMeasured=!0,r.instanceProps=l,pe({},r,{},o,{},i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,o={scrollPositionChangeReason:he};return"number"==typeof n&&n>=0&&(o.scrollDirectionHorizontal=n>t.scrollLeft?1:-1,o.scrollLeft=n),"number"==typeof r&&r>=0&&(o.scrollDirectionVertical=r>t.scrollTop?1:-1,o.scrollTop=r),"number"==typeof n&&n>=0&&n!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop?o:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,o=e.scrollToAlignment,i=e.scrollToColumn,l=e.width,a=t.scrollLeft,u=t.instanceProps;if(n>0){var s=n-1,c=i<0?s:Math.min(s,i),d=u.rowSizeAndPositionManager.getTotalSize(),f=u.scrollbarSizeMeasured&&d>r?u.scrollbarSize:0;return u.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:l-f,currentOffset:a,targetIndex:c})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var r=n.scrollLeft,o=t._getCalculatedScrollLeft(e,n);return"number"==typeof o&&o>=0&&r!==o?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:o,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,o=e.scrollToAlignment,i=e.scrollToRow,l=e.width,a=t.scrollTop,u=t.instanceProps;if(r>0){var s=r-1,c=i<0?s:Math.min(s,i),d=u.columnSizeAndPositionManager.getTotalSize(),f=u.scrollbarSizeMeasured&&d>l?u.scrollbarSize:0;return u.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n-f,currentOffset:a,targetIndex:c})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var r=n.scrollTop,o=t._getCalculatedScrollTop(e,n);return"number"==typeof o&&o>=0&&r!==o?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:o}):{}}}]),t}(j.PureComponent),L(oe,"propTypes",null),ie);L(me,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,l=e.deferredMeasurementCache,a=e.horizontalOffsetAdjustment,u=e.isScrolling,s=e.isScrollingOptOut,c=e.parent,d=e.rowSizeAndPositionManager,f=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,m=e.verticalOffsetAdjustment,v=e.visibleColumnIndices,g=e.visibleRowIndices,y=[],b=r.areOffsetsAdjusted()||d.areOffsetsAdjusted(),C=!u&&!b,D=f;D<=p;D++)for(var w=d.getSizeAndPositionOfCell(D),S=o;S<=i;S++){var _=r.getSizeAndPositionOfCell(S),E=S>=v.start&&S<=v.stop&&D>=g.start&&D<=g.stop,x="".concat(D,"-").concat(S),A=void 0;C&&h[x]?A=h[x]:l&&!l.has(D,S)?A={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(A={height:w.size,left:_.offset+a,position:"absolute",top:w.offset+m,width:_.size},h[x]=A);var O={columnIndex:S,isScrolling:u,isVisible:E,key:x,parent:c,rowIndex:D,style:A},F=void 0;!s&&!u||a||m?F=n(O):(t[x]||(t[x]=n(O)),F=t[x]),null!=F&&!1!==F&&y.push(F)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:re,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,o-n),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),W(me);const ve=me;function ge(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n=Math.max(1,n),1===r?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,o-n),overscanStopIndex:Math.min(t-1,i+1)}}var ye,be;function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var De,we,Se=(be=ye=function(e){function t(){var e,n;O(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return L(R(n=P(this,(e=M(t)).call.apply(e,[this].concat(o)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),L(R(n),"_columnStartIndex",0),L(R(n),"_columnStopIndex",0),L(R(n),"_rowStartIndex",0),L(R(n),"_rowStopIndex",0),L(R(n),"_onKeyDown",(function(e){var t=n.props,r=t.columnCount,o=t.disabled,i=t.mode,l=t.rowCount;if(!o){var a=n._getScrollState(),u=a.scrollToColumn,s=a.scrollToRow,c=n._getScrollState(),d=c.scrollToColumn,f=c.scrollToRow;switch(e.key){case"ArrowDown":f="cells"===i?Math.min(f+1,l-1):Math.min(n._rowStopIndex+1,l-1);break;case"ArrowLeft":d="cells"===i?Math.max(d-1,0):Math.max(n._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===i?Math.min(d+1,r-1):Math.min(n._columnStopIndex+1,r-1);break;case"ArrowUp":f="cells"===i?Math.max(f-1,0):Math.max(n._rowStartIndex-1,0)}d===u&&f===s||(e.preventDefault(),n._updateScrollState({scrollToColumn:d,scrollToRow:f}))}})),L(R(n),"_onSectionRendered",(function(e){var t=e.columnStartIndex,r=e.columnStopIndex,o=e.rowStartIndex,i=e.rowStopIndex;n._columnStartIndex=t,n._columnStopIndex=r,n._rowStartIndex=o,n._rowStopIndex=i})),n}return B(t,e),I(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow;this.setState({scrollToRow:n,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=this._getScrollState(),o=r.scrollToColumn,i=r.scrollToRow;return j.createElement("div",{className:t,onKeyDown:this._onKeyDown},n({onSectionRendered:this._onSectionRendered,scrollToColumn:o,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow,r=this.props,o=r.isControlled,i=r.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:n}),o||this.setState({scrollToColumn:t,scrollToRow:n})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(n,!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(j.PureComponent),L(ye,"propTypes",null),be);function _e(e,t){var r,o=void 0!==(r=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g).document&&r.document.attachEvent;if(!o){var i=function(){var e=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)};return function(t){return e(t)}}(),l=function(){var e=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout;return function(t){return e(t)}}(),a=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},u=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&l(this.__resizeRAF__),this.__resizeRAF__=i((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},s=!1,c="",d="animationstart",f="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=r.document.createElement("fakeelement");if(void 0!==h.style.animationName&&(s=!0),!1===s)for(var m=0;m<f.length;m++)if(void 0!==h.style[f[m]+"AnimationName"]){c="-"+f[m].toLowerCase()+"-",d=p[m],s=!0;break}var v="resizeanim",g="@"+c+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",y=c+"animation: 1ms "+v+"; "}return{addResizeListener:function(t,n){if(o)t.attachEvent("onresize",n);else{if(!t.__resizeTriggers__){var i=t.ownerDocument,l=r.getComputedStyle(t);l&&"static"==l.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var n=(g||"")+".resize-triggers { "+(y||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="detectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),r.appendChild(o)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var s='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var c=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return s}});t.__resizeTriggers__.innerHTML=c.createHTML("")}else t.__resizeTriggers__.innerHTML=s;t.appendChild(t.__resizeTriggers__),a(t),t.addEventListener("scroll",u,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==v&&a(t)},t.__resizeTriggers__.addEventListener(d,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(o)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",u,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(n,!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}L(Se,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),W(Se);var Ae=(we=De=function(e){function t(){var e,n;O(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return L(R(n=P(this,(e=M(t)).call.apply(e,[this].concat(o)))),"state",{height:n.props.defaultHeight||0,width:n.props.defaultWidth||0}),L(R(n),"_parentNode",void 0),L(R(n),"_autoSizer",void 0),L(R(n),"_window",void 0),L(R(n),"_detectElementResize",void 0),L(R(n),"_onResize",(function(){var e=n.props,t=e.disableHeight,r=e.disableWidth,o=e.onResize;if(n._parentNode){var i=n._parentNode.offsetHeight||0,l=n._parentNode.offsetWidth||0,a=(n._window||window).getComputedStyle(n._parentNode)||{},u=parseInt(a.paddingLeft,10)||0,s=parseInt(a.paddingRight,10)||0,c=parseInt(a.paddingTop,10)||0,d=parseInt(a.paddingBottom,10)||0,f=i-c-d,p=l-u-s;(!t&&n.state.height!==f||!r&&n.state.width!==p)&&(n.setState({height:i-c-d,width:l-u-s}),o({height:i,width:l}))}})),L(R(n),"_setRef",(function(e){n._autoSizer=e})),n}return B(t,e),I(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=_e(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,i=e.style,l=this.state,a=l.height,u=l.width,s={overflow:"visible"},c={};return r||(s.height=0,c.height=a),o||(s.width=0,c.width=u),j.createElement("div",{className:n,ref:this._setRef,style:xe({},s,{},i)},t(c))}}]),t}(j.Component),L(De,"propTypes",null),we);L(Ae,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});const Oe=window.ReactDOM;var Fe,ke,Te=(ke=Fe=function(e){function t(){var e,n;O(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return L(R(n=P(this,(e=M(t)).call.apply(e,[this].concat(o)))),"_child",void 0),L(R(n),"_measure",(function(){var e=n.props,t=e.cache,r=e.columnIndex,o=void 0===r?0:r,i=e.parent,l=e.rowIndex,a=void 0===l?n.props.index||0:l,u=n._getCellMeasurements(),s=u.height,c=u.width;s===t.getHeight(a,o)&&c===t.getWidth(a,o)||(t.set(a,o,c,s),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:o,rowIndex:a}))})),L(R(n),"_registerChild",(function(e){!e||e instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),n._child=e,e&&n._maybeMeasureCell()})),n}return B(t,e),I(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||(0,Oe.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var n=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var o=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return n&&(t.style.width=n),r&&(t.style.height=r),{height:o,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,o=e.parent,i=e.rowIndex,l=void 0===i?this.props.index||0:i;if(!t.has(l,r)){var a=this._getCellMeasurements(),u=a.height,s=a.width;t.set(l,r,s,u),o&&"function"==typeof o.invalidateCellSizeAfterRender&&o.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:l})}}}]),t}(j.PureComponent),L(Fe,"propTypes",null),ke);L(Te,"__internalCellMeasurerFlag",!1);var Ie=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};O(this,e),L(this,"_cellHeightCache",{}),L(this,"_cellWidthCache",{}),L(this,"_columnWidthCache",{}),L(this,"_rowHeightCache",{}),L(this,"_defaultHeight",void 0),L(this,"_defaultWidth",void 0),L(this,"_minHeight",void 0),L(this,"_minWidth",void 0),L(this,"_keyMapper",void 0),L(this,"_hasFixedHeight",void 0),L(this,"_hasFixedWidth",void 0),L(this,"_columnCount",0),L(this,"_rowCount",0),L(this,"columnWidth",(function(e){var n=e.index,r=t._keyMapper(0,n);return void 0!==t._columnWidthCache[r]?t._columnWidthCache[r]:t._defaultWidth})),L(this,"rowHeight",(function(e){var n=e.index,r=t._keyMapper(n,0);return void 0!==t._rowHeightCache[r]?t._rowHeightCache[r]:t._defaultHeight}));var r=n.defaultHeight,o=n.defaultWidth,i=n.fixedHeight,l=n.fixedWidth,a=n.keyMapper,u=n.minHeight,s=n.minWidth;this._hasFixedHeight=!0===i,this._hasFixedWidth=!0===l,this._minHeight=u||0,this._minWidth=s||0,this._keyMapper=a||Re,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:30),this._defaultWidth=Math.max(this._minWidth,"number"==typeof o?o:100)}return I(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var n=this._keyMapper(e,t);return void 0!==this._cellWidthCache[n]?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]}},{key:"set",value:function(e,t,n,r){var o=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[o]=r,this._cellWidthCache[o]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var n=0,r=0;r<this._rowCount;r++)n=Math.max(n,this.getWidth(r,t));var o=this._keyMapper(0,t);this._columnWidthCache[o]=n}if(!this._hasFixedHeight){for(var i=0,l=0;l<this._columnCount;l++)i=Math.max(i,this.getHeight(e,l));var a=this._keyMapper(e,0);this._rowHeightCache[a]=i}}},{key:"defaultHeight",get:function(){return this._defaultHeight}},{key:"defaultWidth",get:function(){return this._defaultWidth}}]),e}();function Re(e,t){return"".concat(e,"-").concat(t)}function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(n,!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ze="requested",Be=function(e){function t(){var e,n;O(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return L(R(n=P(this,(e=M(t)).call.apply(e,[this].concat(o)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),L(R(n),"_calculateSizeAndPositionDataOnNextUpdate",!1),L(R(n),"_onSectionRenderedMemoizer",Z()),L(R(n),"_onScrollMemoizer",Z(!1)),L(R(n),"_invokeOnSectionRenderedHelper",(function(){var e=n.props,t=e.cellLayoutManager,r=e.onSectionRendered;n._onSectionRenderedMemoizer({callback:r,indices:{indices:t.getLastRenderedIndices()}})})),L(R(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),L(R(n),"_updateScrollPositionForScrollToCell",(function(){var e=n.props,t=e.cellLayoutManager,r=e.height,o=e.scrollToAlignment,i=e.scrollToCell,l=e.width,a=n.state,u=a.scrollLeft,s=a.scrollTop;if(i>=0){var c=t.getScrollPositionForCell({align:o,cellIndex:i,height:r,scrollLeft:u,scrollTop:s,width:l});c.scrollLeft===u&&c.scrollTop===s||n._setScrollPosition(c)}})),L(R(n),"_onScroll",(function(e){if(e.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var t=n.props,r=t.cellLayoutManager,o=t.height,i=t.isScrollingChange,l=t.width,a=n._scrollbarSize,u=r.getTotalSize(),s=u.height,c=u.width,d=Math.max(0,Math.min(c-l+a,e.target.scrollLeft)),f=Math.max(0,Math.min(s-o+a,e.target.scrollTop));if(n.state.scrollLeft!==d||n.state.scrollTop!==f){var p=e.cancelable?"observed":ze;n.state.isScrolling||i(!0),n.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:f})}n._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:f,totalWidth:c,totalHeight:s})}})),n._scrollbarSize=re(),void 0===n._scrollbarSize?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return B(t,e),I(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,r=e.scrollToCell,o=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=re(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(n>=0||o>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:o}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),l=i.height,a=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:o||0,totalHeight:l,totalWidth:a})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.height,o=n.scrollToAlignment,i=n.scrollToCell,l=n.width,a=this.state,u=a.scrollLeft,s=a.scrollPositionChangeReason,c=a.scrollTop;s===ze&&(u>=0&&u!==t.scrollLeft&&u!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=u),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),r===e.height&&o===e.scrollToAlignment&&i===e.scrollToCell&&l===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,r=e.cellLayoutManager,o=e.className,i=e.height,l=e.horizontalOverscanSize,a=e.id,u=e.noContentRenderer,s=e.style,c=e.verticalOverscanSize,d=e.width,f=this.state,p=f.isScrolling,h=f.scrollLeft,m=f.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var v=r.getTotalSize(),g=v.height,y=v.width,b=Math.max(0,h-l),C=Math.max(0,m-c),D=Math.min(y,h+d+l),w=Math.min(g,m+i+c),S=i>0&&d>0?r.cellRenderers({height:w-C,isScrolling:p,width:D-b,x:b,y:C}):[],_={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:d,willChange:"transform"},E=g>i?this._scrollbarSize:0,x=y>d?this._scrollbarSize:0;return _.overflowX=y+E<=d?"hidden":"auto",_.overflowY=g+x<=i?"hidden":"auto",j.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:q("ReactVirtualized__Collection",o),id:a,onScroll:this._onScroll,role:"grid",style:Me({},_,{},s),tabIndex:0},n>0&&j.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:g,maxHeight:g,maxWidth:y,overflow:"hidden",pointerEvents:p?"none":"",width:y}},S),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,l=t.props,a=l.height;(0,l.onScroll)({clientHeight:a,clientWidth:l.width,scrollHeight:o,scrollLeft:n,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:ze};t>=0&&(r.scrollLeft=t),n>=0&&(r.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:ze}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:ze}}}]),t}(j.PureComponent);L(Be,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),Be.propTypes={},W(Be);const Le=Be;var je=function(){function e(t){var n=t.height,r=t.width,o=t.x,i=t.y;O(this,e),this.height=n,this.width=r,this.x=o,this.y=i,this._indexMap={},this._indices=[]}return I(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),Ne=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;O(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return I(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,r=e.x,o=e.y,i={};return this.getSections({height:t,width:n,x:r,y:o}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,r=e.x,o=e.y,i=Math.floor(r/this._sectionSize),l=Math.floor((r+n-1)/this._sectionSize),a=Math.floor(o/this._sectionSize),u=Math.floor((o+t-1)/this._sectionSize),s=[],c=i;c<=l;c++)for(var d=a;d<=u;d++){var f="".concat(c,".").concat(d);this._sections[f]||(this._sections[f]=new je({height:this._sectionSize,width:this._sectionSize,x:c*this._sectionSize,y:d*this._sectionSize})),s.push(this._sections[f])}return s}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:n})}))}}]),e}();function He(e){var t=e.align,n=void 0===t?"auto":t,r=e.cellOffset,o=e.cellSize,i=e.containerSize,l=e.currentOffset,a=r,u=a-i+o;switch(n){case"start":return a;case"end":return u;case"center":return a-(i-o)/2;default:return Math.max(u,Math.min(a,l))}}var Ve=function(e){function t(e,n){var r;return O(this,t),(r=P(this,M(t).call(this,e,n)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(R(r)),r._setCollectionViewRef=r._setCollectionViewRef.bind(R(r)),r}return B(t,e),I(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=U({},this.props);return j.createElement(Le,U({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,r=[],o=new Ne(e.sectionSize),i=0,l=0,a=0;a<t;a++){var u=n({index:a});if(null==u.height||isNaN(u.height)||null==u.width||isNaN(u.width)||null==u.x||isNaN(u.x)||null==u.y||isNaN(u.y))throw Error("Invalid metadata returned for cell ".concat(a,":\n        x:").concat(u.x,", y:").concat(u.y,", width:").concat(u.width,", height:").concat(u.height));i=Math.max(i,u.y+u.height),l=Math.max(l,u.x+u.width),r[a]=u,o.registerCell({cellMetadatum:u,index:a})}return{cellMetadata:r,height:i,sectionManager:o,width:l}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,n=e.cellIndex,r=e.height,o=e.scrollLeft,i=e.scrollTop,l=e.width,a=this.props.cellCount;if(n>=0&&n<a){var u=this._cellMetadata[n];o=He({align:t,cellOffset:u.x,cellSize:u.width,containerSize:l,currentOffset:o,targetIndex:n}),i=He({align:t,cellOffset:u.y,cellSize:u.height,containerSize:r,currentOffset:i,targetIndex:n})}return{scrollLeft:o,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,n=e.height,r=e.isScrolling,o=e.width,i=e.x,l=e.y,a=this.props,u=a.cellGroupRenderer,s=a.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:n,width:o,x:i,y:l}),u({cellCache:this._cellCache,cellRenderer:s,cellSizeAndPositionGetter:function(e){var n=e.index;return t._sectionManager.getCellMetadata({index:n})},indices:this._lastRenderedCellIndices,isScrolling:r})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(j.PureComponent);function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function We(e,t){if(e){if("string"==typeof e)return Ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ge(e,t):void 0}}function Ue(e){return function(e){if(Array.isArray(e))return Ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||We(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}L(Ve,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,n=e.cellRenderer,r=e.cellSizeAndPositionGetter,o=e.indices,i=e.isScrolling;return o.map((function(e){var o=r({index:e}),l={index:e,isScrolling:i,key:e,style:{height:o.height,left:o.x,position:"absolute",top:o.y,width:o.width}};return i?(e in t||(t[e]=n(l)),t[e]):n(l)})).filter((function(e){return!!e}))}}),Ve.propTypes={},(function(e){function t(e,n){var r;return O(this,t),(r=P(this,M(t).call(this,e,n)))._registerChild=r._registerChild.bind(R(r)),r}return B(t,e),I(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.columnMaxWidth,r=t.columnMinWidth,o=t.columnCount,i=t.width;n===e.columnMaxWidth&&r===e.columnMinWidth&&o===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.columnMaxWidth,r=e.columnMinWidth,o=e.columnCount,i=e.width,l=r||1,a=n?Math.min(n,i):i,u=i/o;return u=Math.max(l,u),u=Math.min(a,u),u=Math.floor(u),t({adjustedWidth:Math.min(i,u*o),columnWidth:u,getColumnWidth:function(){return u},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(j.PureComponent)).propTypes={};var $e=function(e){function t(e,n){var r;return O(this,t),(r=P(this,M(t).call(this,e,n)))._loadMoreRowsMemoizer=Z(),r._onRowsRendered=r._onRowsRendered.bind(R(r)),r._registerChild=r._registerChild.bind(R(r)),r}return B(t,e),I(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=Z(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach((function(e){var r=n(e);r&&r.then((function(){var n;(n={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex}).startIndex>n.lastRenderedStopIndex||n.stopIndex<n.lastRenderedStartIndex||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,r=this,o=this.props,i=o.isRowLoaded,l=o.minimumBatchSize,a=o.rowCount,u=o.threshold,s=function(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,r=e.rowCount,o=e.stopIndex,i=[],l=null,a=null,u=e.startIndex;u<=o;u++)t({index:u})?null!==a&&(i.push({startIndex:l,stopIndex:a}),l=a=null):(a=u,null===l&&(l=u));if(null!==a){for(var s=Math.min(Math.max(a,l+n-1),r-1),c=a+1;c<=s&&!t({index:c});c++)a=c;i.push({startIndex:l,stopIndex:a})}if(i.length)for(var d=i[0];d.stopIndex-d.startIndex+1<n&&d.startIndex>0;){var f=d.startIndex-1;if(t({index:f}))break;d.startIndex=f}return i}({isRowLoaded:i,minimumBatchSize:l,rowCount:a,startIndex:Math.max(0,e-u),stopIndex:Math.min(a-1,t+u)}),c=(n=[]).concat.apply(n,Ue(s.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){r._loadUnloadedRanges(s)},indices:{squashedUnloadedRanges:c}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(j.PureComponent);L($e,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),$e.propTypes={};var qe,Xe,Ye=(Xe=qe=function(e){function t(){var e,n;O(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return L(R(n=P(this,(e=M(t)).call.apply(e,[this].concat(o)))),"Grid",void 0),L(R(n),"_cellRenderer",(function(e){var t=e.parent,r=e.rowIndex,o=e.style,i=e.isScrolling,l=e.isVisible,a=e.key,u=n.props.rowRenderer,s=Object.getOwnPropertyDescriptor(o,"width");return s&&s.writable&&(o.width="100%"),u({index:r,style:o,isScrolling:i,isVisible:l,key:a,parent:t})})),L(R(n),"_setRef",(function(e){n.Grid=e})),L(R(n),"_onScroll",(function(e){var t=e.clientHeight,r=e.scrollHeight,o=e.scrollTop;(0,n.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:o})})),L(R(n),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,o=e.rowStartIndex,i=e.rowStopIndex;(0,n.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:o,stopIndex:i})})),n}return B(t,e),I(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,o=e.width,i=q("ReactVirtualized__List",t);return j.createElement(ve,U({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:o,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(j.PureComponent),L(qe,"propTypes",null),Xe);function Ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,_x,i,l=[],_n=!0,a=!1;try{if(_x=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;_n=!1}else for(;!(_n=(r=_x.call(n)).done)&&(l.push(r.value),l.length!==t);_n=!0);}catch(e){a=!0,o=e}finally{try{if(!_n&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(a)throw o}}return l}}(e,t)||We(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}L(Ye,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:ge,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const Je=function(e,t,n,r,o){return"function"==typeof n?function(e,t,n,r,o){for(var i=n+1;t<=n;){var l=t+n>>>1;o(e[l],r)>=0?(i=l,n=l-1):t=l+1}return i}(e,void 0===r?0:0|r,void 0===o?e.length-1:0|o,t,n):function(e,t,n,r){for(var o=n+1;t<=n;){var i=t+n>>>1;e[i]>=r?(o=i,n=i-1):t=i+1}return o}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)};function Ze(e,t,n,r,o){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=o,this.count=(t?t.count:0)+(n?n.count:0)+r.length}var Qe=Ze.prototype;function et(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function tt(e,t){var n=ct(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function nt(e,t){var n=e.intervals([]);n.push(t),tt(e,n)}function rt(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?0:(n.splice(r,1),tt(e,n),1)}function ot(e,t,n){for(var r=0;r<e.length&&e[r][0]<=t;++r){var o=n(e[r]);if(o)return o}}function it(e,t,n){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var o=n(e[r]);if(o)return o}}function lt(e,t){for(var n=0;n<e.length;++n){var r=t(e[n]);if(r)return r}}function at(e,t){return e-t}function ut(e,t){return e[0]-t[0]||e[1]-t[1]}function st(e,t){return e[1]-t[1]||e[0]-t[0]}function ct(e){if(0===e.length)return null;for(var t=[],n=0;n<e.length;++n)t.push(e[n][0],e[n][1]);t.sort(at);var r=t[t.length>>1],o=[],i=[],l=[];for(n=0;n<e.length;++n){var a=e[n];a[1]<r?o.push(a):r<a[0]?i.push(a):l.push(a)}var u=l,s=l.slice();return u.sort(ut),s.sort(st),new Ze(r,ct(o),ct(i),u,s)}function dt(e){this.root=e}Qe.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},Qe.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?nt(this,e):this.left.insert(e):this.left=ct([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?nt(this,e):this.right.insert(e):this.right=ct([e]);else{var n=Je(this.leftPoints,e,ut),r=Je(this.rightPoints,e,st);this.leftPoints.splice(n,0,e),this.rightPoints.splice(r,0,e)}},Qe.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?rt(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?rt(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,r=this.left;r.right;)n=r,r=r.right;if(n===this)r.right=this.right;else{var o=this.left,i=this.right;n.count-=r.count,n.right=r.left,r.left=o,r.right=i}et(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?et(this,this.left):et(this,this.right);return 1}for(o=Je(this.leftPoints,e,ut);o<this.leftPoints.length&&this.leftPoints[o][0]===e[0];++o)if(this.leftPoints[o]===e)for(this.count-=1,this.leftPoints.splice(o,1),i=Je(this.rightPoints,e,st);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),1;return 0},Qe.queryPoint=function(e,t){return e<this.mid?this.left&&(n=this.left.queryPoint(e,t))?n:ot(this.leftPoints,e,t):e>this.mid?this.right&&(n=this.right.queryPoint(e,t))?n:it(this.rightPoints,e,t):lt(this.leftPoints,t);var n},Qe.queryInterval=function(e,t,n){var r;return e<this.mid&&this.left&&(r=this.left.queryInterval(e,t,n))||t>this.mid&&this.right&&(r=this.right.queryInterval(e,t,n))?r:t<this.mid?ot(this.leftPoints,t,n):e>this.mid?it(this.rightPoints,e,n):lt(this.leftPoints,n)};var ft=dt.prototype;ft.insert=function(e){this.root?this.root.insert(e):this.root=new Ze(e[0],null,null,[e],[e])},ft.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},ft.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},ft.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(ft,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(ft,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var pt,ht,mt=function(){function e(){O(this,e),L(this,"_columnSizeMap",{}),L(this,"_intervalTree",new dt(null)),L(this,"_leftMap",{})}return I(e,[{key:"estimateTotalHeight",value:function(e,t,n){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*n}},{key:"range",value:function(e,t,n){var r=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=Ke(e,3),o=t[0],i=(t[1],t[2]);return n(i,r._leftMap[i],o)}))}},{key:"setPosition",value:function(e,t,n,r){this._intervalTree.insert([n,n+r,e]),this._leftMap[e]=t;var o=this._columnSizeMap,i=o[t];o[t]=void 0===i?n+r:Math.max(i,n+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=Math.max(t,r)}return t}}]),e}();function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(n,!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yt=(ht=pt=function(e){function t(){var e,n;O(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return L(R(n=P(this,(e=M(t)).call.apply(e,[this].concat(o)))),"state",{isScrolling:!1,scrollTop:0}),L(R(n),"_debounceResetIsScrollingId",void 0),L(R(n),"_invalidateOnUpdateStartIndex",null),L(R(n),"_invalidateOnUpdateStopIndex",null),L(R(n),"_positionCache",new mt),L(R(n),"_startIndex",null),L(R(n),"_startIndexMemoized",null),L(R(n),"_stopIndex",null),L(R(n),"_stopIndexMemoized",null),L(R(n),"_debounceResetIsScrollingCallback",(function(){n.setState({isScrolling:!1})})),L(R(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),L(R(n),"_onScroll",(function(e){var t=n.props.height,r=e.currentTarget.scrollTop,o=Math.min(Math.max(0,n._getEstimatedTotalHeight()-t),r);r===o&&(n._debounceResetIsScrolling(),n.state.scrollTop!==o&&n.setState({isScrolling:!0,scrollTop:o}))})),n}return B(t,e),I(t,[{key:"clearCellPositions",value:function(){this._positionCache=new mt,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new mt,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&ce(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.autoHeight,o=n.cellCount,i=n.cellMeasurerCache,l=n.cellRenderer,a=n.className,u=n.height,s=n.id,c=n.keyMapper,d=n.overscanByPixels,f=n.role,p=n.style,h=n.tabIndex,m=n.width,v=n.rowDirection,g=this.state,y=g.isScrolling,b=g.scrollTop,C=[],D=this._getEstimatedTotalHeight(),w=this._positionCache.shortestColumnSize,S=this._positionCache.count,_=0;if(this._positionCache.range(Math.max(0,b-d),u+2*d,(function(n,r,o){var a;void 0===e?(_=n,e=n):(_=Math.min(_,n),e=Math.max(e,n)),C.push(l({index:n,isScrolling:y,key:c(n),parent:t,style:(a={height:i.getHeight(n)},L(a,"ltr"===v?"left":"right",r),L(a,"position","absolute"),L(a,"top",o),L(a,"width",i.getWidth(n)),a)}))})),w<b+u+d&&S<o)for(var E=Math.min(o-S,Math.ceil((b+u+d-w)/i.defaultHeight*m/i.defaultWidth)),x=S;x<S+E;x++)e=x,C.push(l({index:x,isScrolling:y,key:c(x),parent:this,style:{width:i.getWidth(x)}}));return this._startIndex=_,this._stopIndex=e,j.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:q("ReactVirtualized__Masonry",a),id:s,onScroll:this._onScroll,role:f,style:gt({boxSizing:"border-box",direction:"ltr",height:r?"auto":u,overflowX:"hidden",overflowY:D<u?"hidden":"auto",position:"relative",width:m,WebkitOverflowScrolling:"touch",willChange:"transform"},p),tabIndex:h},j.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:D,maxWidth:"100%",maxHeight:D,overflow:"hidden",pointerEvents:y?"none":"",position:"relative"}},C))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&ce(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=de(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,n=e.cellMeasurerCache,r=e.width,o=Math.max(1,Math.floor(r/n.defaultWidth));return this._positionCache.estimateTotalHeight(t,o,n.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,n=e.onScroll,r=this.state.scrollTop;this._onScrollMemoized!==r&&(n({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:r}),this._onScrollMemoized=r)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var n=this.props,r=n.cellMeasurerCache,o=n.cellPositioner,i=e;i<=t;i++){var l=o(i),a=l.left,u=l.top;this._positionCache.setPosition(i,a,u,r.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(j.PureComponent),L(pt,"propTypes",null),ht);function bt(){}L(yt,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:bt,onScroll:bt,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),W(yt);var Ct=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};O(this,e),L(this,"_cellMeasurerCache",void 0),L(this,"_columnIndexOffset",void 0),L(this,"_rowIndexOffset",void 0),L(this,"columnWidth",(function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})})),L(this,"rowHeight",(function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})}));var r=n.cellMeasurerCache,o=n.columnIndexOffset,i=void 0===o?0:o,l=n.rowIndexOffset,a=void 0===l?0:l;this._cellMeasurerCache=r,this._columnIndexOffset=i,this._rowIndexOffset=a}return I(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,n,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(n,!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var St=function(e){function t(e,n){var r;O(this,t),L(R(r=P(this,M(t).call(this,e,n))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),L(R(r),"_deferredInvalidateColumnIndex",null),L(R(r),"_deferredInvalidateRowIndex",null),L(R(r),"_bottomLeftGridRef",(function(e){r._bottomLeftGrid=e})),L(R(r),"_bottomRightGridRef",(function(e){r._bottomRightGrid=e})),L(R(r),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,n=Y(e,["rowIndex"]),o=r.props,i=o.cellRenderer,l=o.fixedRowCount;return t===o.rowCount-l?j.createElement("div",{key:n.key,style:wt({},n.style,{height:20})}):i(wt({},n,{parent:R(r),rowIndex:t+l}))})),L(R(r),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,n=e.rowIndex,o=Y(e,["columnIndex","rowIndex"]),i=r.props,l=i.cellRenderer,a=i.fixedColumnCount,u=i.fixedRowCount;return l(wt({},o,{columnIndex:t+a,parent:R(r),rowIndex:n+u}))})),L(R(r),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,n=Y(e,["columnIndex"]),o=r.props,i=o.cellRenderer,l=o.columnCount,a=o.fixedColumnCount;return t===l-a?j.createElement("div",{key:n.key,style:wt({},n.style,{width:20})}):i(wt({},n,{columnIndex:t+a,parent:R(r)}))})),L(R(r),"_columnWidthRightGrid",(function(e){var t=e.index,n=r.props,o=n.columnCount,i=n.fixedColumnCount,l=n.columnWidth,a=r.state,u=a.scrollbarSize;return a.showHorizontalScrollbar&&t===o-i?u:"function"==typeof l?l({index:t+i}):l})),L(R(r),"_onScroll",(function(e){var t=e.scrollLeft,n=e.scrollTop;r.setState({scrollLeft:t,scrollTop:n});var o=r.props.onScroll;o&&o(e)})),L(R(r),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,n=e.size,o=e.vertical,i=r.state,l=i.showHorizontalScrollbar,a=i.showVerticalScrollbar;if(t!==l||o!==a){r.setState({scrollbarSize:n,showHorizontalScrollbar:t,showVerticalScrollbar:o});var u=r.props.onScrollbarPresenceChange;"function"==typeof u&&u({horizontal:t,size:n,vertical:o})}})),L(R(r),"_onScrollLeft",(function(e){var t=e.scrollLeft;r._onScroll({scrollLeft:t,scrollTop:r.state.scrollTop})})),L(R(r),"_onScrollTop",(function(e){var t=e.scrollTop;r._onScroll({scrollTop:t,scrollLeft:r.state.scrollLeft})})),L(R(r),"_rowHeightBottomGrid",(function(e){var t=e.index,n=r.props,o=n.fixedRowCount,i=n.rowCount,l=n.rowHeight,a=r.state,u=a.scrollbarSize;return a.showVerticalScrollbar&&t===i-o?u:"function"==typeof l?l({index:t+o}):l})),L(R(r),"_topLeftGridRef",(function(e){r._topLeftGrid=e})),L(R(r),"_topRightGridRef",(function(e){r._topRightGrid=e}));var o=e.deferredMeasurementCache,i=e.fixedColumnCount,l=e.fixedRowCount;return r._maybeCalculateCachedStyles(!0),o&&(r._deferredMeasurementCacheBottomLeftGrid=l>0?new Ct({cellMeasurerCache:o,columnIndexOffset:0,rowIndexOffset:l}):o,r._deferredMeasurementCacheBottomRightGrid=i>0||l>0?new Ct({cellMeasurerCache:o,columnIndexOffset:i,rowIndexOffset:l}):o,r._deferredMeasurementCacheTopRightGrid=i>0?new Ct({cellMeasurerCache:o,columnIndexOffset:i,rowIndexOffset:0}):o),r}return B(t,e),I(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,l=i.fixedColumnCount,a=i.fixedRowCount,u=Math.max(0,n-l),s=Math.max(0,o-a);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:s}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:u,rowIndex:s}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:o}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:u,rowIndex:o}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var r={};t>0&&(r.scrollLeft=t),n>0&&(r.scrollTop=n),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,r=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),o=(e.scrollTop,e.scrollToRow),i=Y(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var l=this.state,a=l.scrollLeft,u=l.scrollTop;return j.createElement("div",{style:this._containerOuterStyle},j.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(wt({},i,{onScroll:t,scrollLeft:a}))),j.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(wt({},i,{onScroll:t,scrollTop:u})),this._renderBottomRightGrid(wt({},i,{onScroll:t,onSectionRendered:n,scrollLeft:a,scrollToColumn:r,scrollToRow:o,scrollTop:u}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var r=0,o=0;o<t;o++)r+=n({index:o});this._leftGridWidth=r}else this._leftGridWidth=n*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,n=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof n){for(var r=0,o=0;o<t;o++)r+=n({index:o});this._topGridHeight=r}else this._topGridHeight=n*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,n=t.columnWidth,r=t.enableFixedColumnScroll,o=t.enableFixedRowScroll,i=t.height,l=t.fixedColumnCount,a=t.fixedRowCount,u=t.rowHeight,s=t.style,c=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,f=t.styleTopLeftGrid,p=t.styleTopRightGrid,h=t.width,m=e||i!==this._lastRenderedHeight||h!==this._lastRenderedWidth,v=e||n!==this._lastRenderedColumnWidth||l!==this._lastRenderedFixedColumnCount,g=e||a!==this._lastRenderedFixedRowCount||u!==this._lastRenderedRowHeight;(e||m||s!==this._lastRenderedStyle)&&(this._containerOuterStyle=wt({height:i,overflow:"visible",width:h},s)),(e||m||g)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:h},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:h}),(e||c!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=wt({left:0,overflowX:"hidden",overflowY:r?"auto":"hidden",position:"absolute"},c)),(e||v||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=wt({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||f!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=wt({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},f)),(e||v||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=wt({left:this._getLeftGridWidth(this.props),overflowX:o?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=n,this._lastRenderedFixedColumnCount=l,this._lastRenderedFixedRowCount=a,this._lastRenderedHeight=i,this._lastRenderedRowHeight=u,this._lastRenderedStyle=s,this._lastRenderedStyleBottomLeftGrid=c,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=f,this._lastRenderedStyleTopRightGrid=p,this._lastRenderedWidth=h}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,n=e.fixedColumnCount,r=e.fixedRowCount,o=e.rowCount,i=e.hideBottomLeftGridScrollbar,l=this.state.showVerticalScrollbar;if(!n)return null;var a=l?1:0,u=this._getBottomGridHeight(e),s=this._getLeftGridWidth(e),c=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,d=i?s+c:s,f=j.createElement(ve,U({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:n,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:u,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,o-r)+a,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:d}));return i?j.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:wt({},this._bottomLeftGridStyle,{height:u,width:s,overflowY:"hidden"})},f):f}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,n=e.fixedColumnCount,r=e.fixedRowCount,o=e.rowCount,i=e.scrollToColumn,l=e.scrollToRow;return j.createElement(ve,U({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-n),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,o-r),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-n,scrollToRow:l-r,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,n=e.fixedRowCount;return t&&n?j.createElement(ve,U({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:n,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,n=e.enableFixedRowScroll,r=e.fixedColumnCount,o=e.fixedRowCount,i=e.scrollLeft,l=e.hideTopRightGridScrollbar,a=this.state,u=a.showHorizontalScrollbar,s=a.scrollbarSize;if(!o)return null;var c=u?1:0,d=this._getTopGridHeight(e),f=this._getRightGridWidth(e),p=u?s:0,h=d,m=this._topRightGridStyle;l&&(h=d+p,m=wt({},this._topRightGridStyle,{left:0}));var v=j.createElement(ve,U({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-r)+c,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:h,onScroll:n?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:o,scrollLeft:i,style:m,tabIndex:null,width:f}));return l?j.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:wt({},this._topRightGridStyle,{height:d,width:f,overflowX:"hidden"})},v):v}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(j.PureComponent);function _t(e){var t=e.className,n=e.columns,r=e.style;return j.createElement("div",{className:t,role:"row",style:r},n)}L(St,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),St.propTypes={},W(St),(function(e){function t(e,n){var r;return O(this,t),(r=P(this,M(t).call(this,e,n))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(R(r)),r}return B(t,e),I(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.clientHeight,r=t.clientWidth,o=t.scrollHeight,i=t.scrollLeft,l=t.scrollTop,a=t.scrollWidth;return e({clientHeight:n,clientWidth:r,onScroll:this._onScroll,scrollHeight:o,scrollLeft:i,scrollTop:l,scrollWidth:a})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,r=e.scrollHeight,o=e.scrollLeft,i=e.scrollTop,l=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:r,scrollLeft:o,scrollTop:i,scrollWidth:l})}}]),t}(j.PureComponent)).propTypes={},_t.propTypes=null;const Et={ASC:"ASC",DESC:"DESC"};function xt(e){var t=e.sortDirection,n=q("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Et.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Et.DESC});return j.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===Et.ASC?j.createElement("path",{d:"M7 14l5-5 5 5z"}):j.createElement("path",{d:"M7 10l5 5 5-5z"}),j.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function At(e){var t=e.dataKey,n=e.label,r=e.sortBy,o=e.sortDirection,i=r===t,l=[j.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof n?n:null},n)];return i&&l.push(j.createElement(xt,{key:"SortIndicator",sortDirection:o})),l}function Ot(e){var t=e.className,n=e.columns,r=e.index,o=e.key,i=e.onRowClick,l=e.onRowDoubleClick,a=e.onRowMouseOut,u=e.onRowMouseOver,s=e.onRowRightClick,c=e.rowData,d=e.style,f={"aria-rowindex":r+1};return(i||l||a||u||s)&&(f["aria-label"]="row",f.tabIndex=0,i&&(f.onClick=function(e){return i({event:e,index:r,rowData:c})}),l&&(f.onDoubleClick=function(e){return l({event:e,index:r,rowData:c})}),a&&(f.onMouseOut=function(e){return a({event:e,index:r,rowData:c})}),u&&(f.onMouseOver=function(e){return u({event:e,index:r,rowData:c})}),s&&(f.onContextMenu=function(e){return s({event:e,index:r,rowData:c})})),j.createElement("div",U({},f,{className:t,key:o,role:"row",style:d}),n)}xt.propTypes={},At.propTypes=null,Ot.propTypes=null;var Ft=function(e){function t(){return O(this,t),P(this,M(t).apply(this,arguments))}return B(t,e),t}(j.Component);function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(n,!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}L(Ft,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:Et.ASC,flexGrow:0,flexShrink:1,headerRenderer:At,style:{}}),Ft.propTypes={};var It=function(e){function t(e){var n;return O(this,t),(n=P(this,M(t).call(this,e))).state={scrollbarWidth:0},n._createColumn=n._createColumn.bind(R(n)),n._createRow=n._createRow.bind(R(n)),n._onScroll=n._onScroll.bind(R(n)),n._onSectionRendered=n._onSectionRendered.bind(R(n)),n._setRef=n._setRef.bind(R(n)),n}return B(t,e),I(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,Oe.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,o=t.disableHeader,i=t.gridClassName,l=t.gridStyle,a=t.headerHeight,u=t.headerRowRenderer,s=t.height,c=t.id,d=t.noRowsRenderer,f=t.rowClassName,p=t.rowStyle,h=t.scrollToIndex,m=t.style,v=t.width,g=this.state.scrollbarWidth,y=o?s:s-a,b="function"==typeof f?f({index:-1}):f,C="function"==typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],j.Children.toArray(n).forEach((function(t,n){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=Tt({overflow:"hidden"},r)})),j.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":j.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:q("ReactVirtualized__Table",r),id:c,role:"grid",style:m},!o&&u({className:q("ReactVirtualized__Table__headerRow",b),columns:this._getHeaderColumns(),style:Tt({height:a,overflow:"hidden",paddingRight:g,width:v},C)}),j.createElement(ve,U({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:q("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:y,id:void 0,noContentRenderer:d,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:g,scrollToRow:h,style:Tt({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,r=e.isScrolling,o=e.parent,i=e.rowData,l=e.rowIndex,a=this.props.onColumnClick,u=t.props,s=u.cellDataGetter,c=u.cellRenderer,d=u.className,f=u.columnData,p=u.dataKey,h=u.id,m=c({cellData:s({columnData:f,dataKey:p,rowData:i}),columnData:f,columnIndex:n,dataKey:p,isScrolling:r,parent:o,rowData:i,rowIndex:l}),v=this._cachedColumnStyles[n],g="string"==typeof m?m:null;return j.createElement("div",{"aria-colindex":n+1,"aria-describedby":h,className:q("ReactVirtualized__Table__rowColumn",d),key:"Row"+l+"-Col"+n,onClick:function(e){a&&a({columnData:f,dataKey:p,event:e})},role:"gridcell",style:v,title:g},m)}},{key:"_createHeader",value:function(e){var t,n,r,o,i,l=e.column,a=e.index,u=this.props,s=u.headerClassName,c=u.headerStyle,d=u.onHeaderClick,f=u.sort,p=u.sortBy,h=u.sortDirection,m=l.props,v=m.columnData,g=m.dataKey,y=m.defaultSortDirection,b=m.disableSort,C=m.headerRenderer,D=m.id,w=m.label,S=!b&&f,_=q("ReactVirtualized__Table__headerColumn",s,l.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:S}),E=this._getFlexStyleForColumn(l,Tt({},c,{},l.props.headerStyle)),x=C({columnData:v,dataKey:g,disableSort:b,label:w,sortBy:p,sortDirection:h});if(S||d){var A=p!==g?y:h===Et.DESC?Et.ASC:Et.DESC,O=function(e){S&&f({defaultSortDirection:y,event:e,sortBy:g,sortDirection:A}),d&&d({columnData:v,dataKey:g,event:e})};i=l.props["aria-label"]||w||g,o="none",r=0,t=O,n=function(e){"Enter"!==e.key&&" "!==e.key||O(e)}}return p===g&&(o=h===Et.ASC?"ascending":"descending"),j.createElement("div",{"aria-label":i,"aria-sort":o,className:_,id:D,key:"Header-Col"+a,onClick:t,onKeyDown:n,role:"columnheader",style:E,tabIndex:r},x)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,r=e.isScrolling,o=e.key,i=e.parent,l=e.style,a=this.props,u=a.children,s=a.onRowClick,c=a.onRowDoubleClick,d=a.onRowRightClick,f=a.onRowMouseOver,p=a.onRowMouseOut,h=a.rowClassName,m=a.rowGetter,v=a.rowRenderer,g=a.rowStyle,y=this.state.scrollbarWidth,b="function"==typeof h?h({index:n}):h,C="function"==typeof g?g({index:n}):g,D=m({index:n}),w=j.Children.toArray(u).map((function(e,o){return t._createColumn({column:e,columnIndex:o,isScrolling:r,parent:i,rowData:D,rowIndex:n,scrollbarWidth:y})})),S=q("ReactVirtualized__Table__row",b),_=Tt({},l,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:y},C);return v({className:S,columns:w,index:n,isScrolling:r,key:o,onRowClick:s,onRowDoubleClick:c,onRowRightClick:d,onRowMouseOver:f,onRowMouseOut:p,rowData:D,style:_})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=Tt({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:j.Children.toArray(n)).map((function(t,n){return e._createHeader({column:t,index:n})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,o=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:o})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(j.PureComponent);L(It,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:ge,overscanRowCount:10,rowRenderer:Ot,headerRowRenderer:_t,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),It.propTypes={};var Rt=[],Pt=null,Mt=null;function zt(){Mt&&(Mt=null,document.body&&null!=Pt&&(document.body.style.pointerEvents=Pt),Pt=null)}function Bt(){zt(),Rt.forEach((function(e){return e.__resetIsScrolling()}))}function Lt(e){e.currentTarget===window&&null==Pt&&document.body&&(Pt=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){Mt&&ce(Mt);var e=0;Rt.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),Mt=de(Bt,e)}(),Rt.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function jt(e,t){Rt.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",Lt),Rt.push(e)}function Nt(e,t){(Rt=Rt.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",Lt),Mt&&(ce(Mt),zt()))}var Ht,Vt,Gt=function(e){return e===window},Wt=function(e){return e.getBoundingClientRect()};function Ut(e,t){if(e){if(Gt(e)){var n=window,r=n.innerHeight,o=n.innerWidth;return{height:"number"==typeof r?r:0,width:"number"==typeof o?o:0}}return Wt(e)}return{height:t.serverHeight,width:t.serverWidth}}function $t(e){return Gt(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Xt=function(){return"undefined"!=typeof window?window:void 0},Yt=(Vt=Ht=function(e){function t(){var e,n;O(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return L(R(n=P(this,(e=M(t)).call.apply(e,[this].concat(o)))),"_window",Xt()),L(R(n),"_isMounted",!1),L(R(n),"_positionFromTop",0),L(R(n),"_positionFromLeft",0),L(R(n),"_detectElementResize",void 0),L(R(n),"_child",void 0),L(R(n),"state",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(n,!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Ut(n.props.scrollElement,n.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),L(R(n),"_registerChild",(function(e){!e||e instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),n._child=e,n.updatePosition()})),L(R(n),"_onChildScroll",(function(e){var t=e.scrollTop;if(n.state.scrollTop!==t){var r=n.props.scrollElement;r&&("function"==typeof r.scrollTo?r.scrollTo(0,t+n._positionFromTop):r.scrollTop=t+n._positionFromTop)}})),L(R(n),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",n._onResize,!1):n._detectElementResize.addResizeListener(e,n._onResize)})),L(R(n),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",n._onResize,!1):e&&n._detectElementResize.removeResizeListener(e,n._onResize)})),L(R(n),"_onResize",(function(){n.updatePosition()})),L(R(n),"__handleWindowScrollEvent",(function(){if(n._isMounted){var e=n.props.onScroll,t=n.props.scrollElement;if(t){var r=$t(t),o=Math.max(0,r.left-n._positionFromLeft),i=Math.max(0,r.top-n._positionFromTop);n.setState({isScrolling:!0,scrollLeft:o,scrollTop:i}),e({scrollLeft:o,scrollTop:i})}}})),L(R(n),"__resetIsScrolling",(function(){n.setState({isScrolling:!1})})),n}return B(t,e),I(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,r=n.height,o=n.width,i=this._child||Oe.findDOMNode(this);if(i instanceof Element&&e){var l=function(e,t){if(Gt(t)&&document.documentElement){var n=document.documentElement,r=Wt(e),o=Wt(n);return{top:r.top-o.top,left:r.left-o.left}}var i=$t(t),l=Wt(e),a=Wt(t);return{top:l.top+i.top-a.top,left:l.left+i.left-a.left}}(i,e);this._positionFromTop=l.top,this._positionFromLeft=l.left}var a=Ut(e,this.props);r===a.height&&o===a.width||(this.setState({height:a.height,width:a.width}),t({height:a.height,width:a.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=_e(),this.updatePosition(e),e&&(jt(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,r=e.scrollElement;r!==n&&null!=r&&null!=n&&(this.updatePosition(n),Nt(this,r),jt(this,n),this._unregisterResizeListener(r),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(Nt(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,r=t.scrollTop,o=t.scrollLeft,i=t.height,l=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:n,scrollLeft:o,scrollTop:r,width:l})}}]),t}(j.PureComponent),L(Ht,"propTypes",null),Vt);L(Yt,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:Xt(),serverHeight:0,serverWidth:0});const Kt=window.wp.element;function Jt(e){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(e)}function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach((function(t){en(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function en(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Jt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Jt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,_x,i,l=[],_n=!0,a=!1;try{if(_x=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;_n=!1}else for(;!(_n=(r=_x.call(n)).done)&&(l.push(r.value),l.length!==t);_n=!0);}catch(e){a=!0,o=e}finally{try{if(!_n&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(a)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rn=(window.lazyblocksConstructorData||window.lazyblocksGutenberg).icons;function on(e){var t=e.svg,n=e.onClick,r=e.active;return wp.element.createElement(un.Preview,{className:f()("lazyblocks-component-icon-picker-button",r?"lazyblocks-component-icon-picker-button-active":""),onClick:n,svg:t})}var ln={},an=new Ie({defaultHeight:65,fixedWidth:!0});function un(e){var t=e.value,n=e.onChange,r=e.label;return wp.element.createElement(un.Dropdown,{label:r,className:"lazyblocks-component-icon-picker-wrapper",onChange:n,value:t,renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return wp.element.createElement(v.Tooltip,{text:(0,S.__)("Icon Picker","lazy-blocks")},wp.element.createElement("div",null,wp.element.createElement(un.Preview,{className:"lazyblocks-component-icon-picker-button hover","aria-expanded":n,onClick:r,svg:t,alwaysRender:!0})))}})}function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sn.apply(this,arguments)}function cn(e){var t="lzb-component-modal";return e.position&&(t=f()(t,"lzb-component-modal-position-".concat(e.position))),e.size&&(t=f()(t,"lzb-component-modal-size-".concat(e.size))),t=f()(t,e.className),wp.element.createElement(v.Modal,sn({},e,{className:t}),e.children)}un.Dropdown=function(e){var t=e.onChange,n=e.value,r=e.label,o=e.className,i=e.renderToggle,l=tn((0,Kt.useState)(""),2),a=l[0],u=l[1],s=tn((0,Kt.useState)(ln),2),c=s[0],d=s[1];(0,Kt.useEffect)((function(){an&&an.clearAll()}),[e]);var p=wp.element.createElement(v.Dropdown,{className:o,contentClassName:"lazyblocks-component-icon-picker-content",renderToggle:i,focusOnMount:!1,renderContent:function(){var e=[{key:"form",render:wp.element.createElement(Kt.Fragment,{key:"form"},wp.element.createElement(v.TextControl,{label:(0,S.__)("Search Icon","lazy-blocks"),value:a,onChange:function(e){return u(e)},placeholder:(0,S.__)("Type to Search…","lazy-blocks"),autoComplete:"off"}))}];Object.keys(rn).forEach((function(r){var o=rn[r],i=void 0===c[r]||c[r],l=a.toLowerCase(),u=Object.keys(o).filter((function(e){return!(l&&!(l&&e.indexOf(l.toLowerCase())>-1))})).map((function(e){var i=o[e];return wp.element.createElement(v.Tooltip,{key:r+e,text:e},wp.element.createElement("div",null,wp.element.createElement(on,{active:i===n,svg:i,onClick:function(){t(i)}})))}));if(u.length&&(e.push({key:"title-".concat(r),render:wp.element.createElement("div",{className:f()("components-panel__body lazyblocks-component-icon-picker-list-panel-toggle",i?"is-opened":"")},wp.element.createElement("h2",{className:"components-panel__body-title"},wp.element.createElement(v.Button,{className:"components-panel__body-toggle",onClick:function(){d(Qt(Qt({},c),{},en({},r,!i)))},"aria-expanded":i},wp.element.createElement("span",{"aria-hidden":"true"},i?wp.element.createElement(v.SVG,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(v.G,null,wp.element.createElement(v.Path,{fill:"none",d:"M0,0h24v24H0V0z"})),wp.element.createElement(v.G,null,wp.element.createElement(v.Path,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"}))):wp.element.createElement(v.SVG,{className:"components-panel__arrow",width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement(v.G,null,wp.element.createElement(v.Path,{fill:"none",d:"M0,0h24v24H0V0z"})),wp.element.createElement(v.G,null,wp.element.createElement(v.Path,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})))),r.charAt(0).toUpperCase()+r.slice(1))))}),i)){var s=[];u.forEach((function(t,n){s.push(t),3!==s.length&&u.length!==n+1||(e.push({key:"icons",render:wp.element.createElement("div",{className:"lazyblocks-component-icon-picker-list"},s)}),s=[])}))}})),1===e.length&&e.push({key:"icons",render:(0,S.__)("No icons found.","lazy-blocks")});var r=wp.element.createElement(Ae,null,(function(t){var n=t.width,r=t.height;return wp.element.createElement(Ye,{className:"lazyblocks-component-icon-picker-list-wrap",width:n,height:r,rowCount:e.length,rowHeight:an.rowHeight,rowRenderer:function(t){var n=t.index,r=t.style,o=t.parent,i=t.key;return wp.element.createElement(Te,{cache:an,columnIndex:0,key:i,rowIndex:n,parent:o},(function(){return wp.element.createElement("div",{style:r},e[n].render||"")}))}})}));return wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("div",{className:"lazyblocks-component-icon-picker-sizer"}),wp.element.createElement("div",{className:"lazyblocks-component-icon-picker"},r))}});return r?wp.element.createElement(v.BaseControl,{id:r,label:r,className:o},p):p},un.Preview=function(e){var t=e.onClick,n=e.className,r=e.svg,o=e.alwaysRender,i=void 0!==o&&o,l="";return/^dashicons/.test(r)?l=wp.element.createElement("span",{className:"dashicons ".concat(r)}):r&&(l=wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:r}})),l||i?wp.element.createElement("span",{className:f()(n,"lazyblocks-component-icon-picker-preview",t?"lazyblocks-component-icon-picker-preview-clickable":""),onClick:t,onKeyPress:function(){},role:"button",tabIndex:0},l):""};var dn=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),fn=Math.abs,pn=String.fromCharCode,hn=Object.assign;function mn(e){return e.trim()}function vn(e,t,n){return e.replace(t,n)}function gn(e,t){return e.indexOf(t)}function yn(e,t){return 0|e.charCodeAt(t)}function bn(e,t,n){return e.slice(t,n)}function Cn(e){return e.length}function Dn(e){return e.length}function wn(e,t){return t.push(e),e}var Sn=1,En=1,xn=0,An=0,On=0,Fn="";function kn(e,t,n,r,o,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Sn,column:En,length:l,return:""}}function Tn(e,t){return hn(kn("",null,null,"",null,null,0),e,{length:-e.length},t)}function In(){return On=An>0?yn(Fn,--An):0,En--,10===On&&(En=1,Sn--),On}function Rn(){return On=An<xn?yn(Fn,An++):0,En++,10===On&&(En=1,Sn++),On}function Pn(){return yn(Fn,An)}function Mn(){return An}function zn(e,t){return bn(Fn,e,t)}function Bn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ln(e){return Sn=En=1,xn=Cn(Fn=e),An=0,[]}function jn(e){return Fn="",e}function Nn(e){return mn(zn(An-1,Gn(91===e?e+2:40===e?e+1:e)))}function Hn(e){for(;(On=Pn())&&On<33;)Rn();return Bn(e)>2||Bn(On)>3?"":" "}function Vn(e,t){for(;--t&&Rn()&&!(On<48||On>102||On>57&&On<65||On>70&&On<97););return zn(e,Mn()+(t<6&&32==Pn()&&32==Rn()))}function Gn(e){for(;Rn();)switch(On){case e:return An;case 34:case 39:34!==e&&39!==e&&Gn(On);break;case 40:41===e&&Gn(e);break;case 92:Rn()}return An}function Wn(e,t){for(;Rn()&&e+On!==57&&(e+On!==84||47!==Pn()););return"/*"+zn(t,An-1)+"*"+pn(47===e?e:Rn())}function Un(e){for(;!Bn(Pn());)Rn();return zn(e,An)}var $n="-ms-",qn="-moz-",Xn="-webkit-",Yn="comm",Kn="rule",Jn="decl",Zn="@keyframes";function Qn(e,t){for(var n="",r=Dn(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function er(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Jn:return e.return=e.return||e.value;case Yn:return"";case Zn:return e.return=e.value+"{"+Qn(e.children,r)+"}";case Kn:e.value=e.props.join(",")}return Cn(n=Qn(e.children,r))?e.return=e.value+"{"+n+"}":""}function tr(e){return jn(nr("",null,null,null,[""],e=Ln(e),0,[0],e))}function nr(e,t,n,r,o,i,l,a,u){for(var s=0,c=0,d=l,f=0,p=0,h=0,m=1,v=1,g=1,y=0,b="",C=o,D=i,w=r,S=b;v;)switch(h=y,y=Rn()){case 40:if(108!=h&&58==yn(S,d-1)){-1!=gn(S+=vn(Nn(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=Nn(y);break;case 9:case 10:case 13:case 32:S+=Hn(h);break;case 92:S+=Vn(Mn()-1,7);continue;case 47:switch(Pn()){case 42:case 47:wn(or(Wn(Rn(),Mn()),t,n),u);break;default:S+="/"}break;case 123*m:a[s++]=Cn(S)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==g&&(S=vn(S,/\f/g,"")),p>0&&Cn(S)-d&&wn(p>32?ir(S+";",r,n,d-1):ir(vn(S," ","")+";",r,n,d-2),u);break;case 59:S+=";";default:if(wn(w=rr(S,t,n,s,c,o,a,b,C=[],D=[],d),i),123===y)if(0===c)nr(S,t,w,w,C,i,d,a,D);else switch(99===f&&110===yn(S,3)?100:f){case 100:case 108:case 109:case 115:nr(e,w,w,r&&wn(rr(e,w,w,0,0,o,a,b,o,C=[],d),D),o,D,d,a,r?C:D);break;default:nr(S,w,w,w,[""],D,0,a,D)}}s=c=p=0,m=g=1,b=S="",d=l;break;case 58:d=1+Cn(S),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==In())continue;switch(S+=pn(y),y*m){case 38:g=c>0?1:(S+="\f",-1);break;case 44:a[s++]=(Cn(S)-1)*g,g=1;break;case 64:45===Pn()&&(S+=Nn(Rn())),f=Pn(),c=d=Cn(b=S+=Un(Mn())),y++;break;case 45:45===h&&2==Cn(S)&&(m=0)}}return i}function rr(e,t,n,r,o,i,l,a,u,s,c){for(var d=o-1,f=0===o?i:[""],p=Dn(f),h=0,m=0,v=0;h<r;++h)for(var g=0,y=bn(e,d+1,d=fn(m=l[h])),b=e;g<p;++g)(b=mn(m>0?f[g]+" "+y:vn(y,/&\f/g,f[g])))&&(u[v++]=b);return kn(e,t,n,0===o?Kn:a,u,s,c)}function or(e,t,n){return kn(e,t,n,Yn,pn(On),bn(e,2,-2),0)}function ir(e,t,n,r){return kn(e,t,n,Jn,bn(e,0,r),bn(e,r+1,-1),r)}var lr=function(e,t,n){for(var r=0,o=0;r=o,o=Pn(),38===r&&12===o&&(t[n]=1),!Bn(o);)Rn();return zn(e,An)},ar=new WeakMap,ur=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ar.get(n))&&!r){ar.set(e,!0);for(var o=[],i=function(e,t){return jn(function(e,t){var n=-1,r=44;do{switch(Bn(r)){case 0:38===r&&12===Pn()&&(t[n]=1),e[n]+=lr(An-1,t,n);break;case 2:e[n]+=Nn(r);break;case 4:if(44===r){e[++n]=58===Pn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=pn(r)}}while(r=Rn());return e}(Ln(e),t))}(t,o),l=n.props,a=0,u=0;a<i.length;a++)for(var s=0;s<l.length;s++,u++)e.props[u]=o[a]?i[a].replace(/&\f/g,l[s]):l[s]+" "+i[a]}}},sr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function cr(e,t){switch(function(e,t){return 45^yn(e,0)?(((t<<2^yn(e,0))<<2^yn(e,1))<<2^yn(e,2))<<2^yn(e,3):0}(e,t)){case 5103:return Xn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Xn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xn+e+qn+e+$n+e+e;case 6828:case 4268:return Xn+e+$n+e+e;case 6165:return Xn+e+$n+"flex-"+e+e;case 5187:return Xn+e+vn(e,/(\w+).+(:[^]+)/,Xn+"box-$1$2"+$n+"flex-$1$2")+e;case 5443:return Xn+e+$n+"flex-item-"+vn(e,/flex-|-self/,"")+e;case 4675:return Xn+e+$n+"flex-line-pack"+vn(e,/align-content|flex-|-self/,"")+e;case 5548:return Xn+e+$n+vn(e,"shrink","negative")+e;case 5292:return Xn+e+$n+vn(e,"basis","preferred-size")+e;case 6060:return Xn+"box-"+vn(e,"-grow","")+Xn+e+$n+vn(e,"grow","positive")+e;case 4554:return Xn+vn(e,/([^-])(transform)/g,"$1"+Xn+"$2")+e;case 6187:return vn(vn(vn(e,/(zoom-|grab)/,Xn+"$1"),/(image-set)/,Xn+"$1"),e,"")+e;case 5495:case 3959:return vn(e,/(image-set\([^]*)/,Xn+"$1$`$1");case 4968:return vn(vn(e,/(.+:)(flex-)?(.*)/,Xn+"box-pack:$3"+$n+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xn+e+e;case 4095:case 3583:case 4068:case 2532:return vn(e,/(.+)-inline(.+)/,Xn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Cn(e)-1-t>6)switch(yn(e,t+1)){case 109:if(45!==yn(e,t+4))break;case 102:return vn(e,/(.+:)(.+)-([^]+)/,"$1"+Xn+"$2-$3$1"+qn+(108==yn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~gn(e,"stretch")?cr(vn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==yn(e,t+1))break;case 6444:switch(yn(e,Cn(e)-3-(~gn(e,"!important")&&10))){case 107:return vn(e,":",":"+Xn)+e;case 101:return vn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xn+(45===yn(e,14)?"inline-":"")+"box$3$1"+Xn+"$2$3$1"+$n+"$2box$3")+e}break;case 5936:switch(yn(e,t+11)){case 114:return Xn+e+$n+vn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xn+e+$n+vn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xn+e+$n+vn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Xn+e+$n+e+e}return e}var dr=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Jn:e.return=cr(e.value,e.length);break;case Zn:return Qn([Tn(e,{value:vn(e.value,"@","@"+Xn)})],r);case Kn:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Qn([Tn(e,{props:[vn(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Qn([Tn(e,{props:[vn(t,/:(plac\w+)/,":"+Xn+"input-$1")]}),Tn(e,{props:[vn(t,/:(plac\w+)/,":-moz-$1")]}),Tn(e,{props:[vn(t,/:(plac\w+)/,$n+"input-$1")]})],r)}return""}))}}],fr=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||dr,l={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)l[t[n]]=!0;a.push(e)}));var u,s,c,d,f=[er,(d=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(s=[ur,sr].concat(i,f),c=Dn(s),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=s[i](e,t,n,r)||"";return o});o=function(e,t,n,r){u=n,Qn(tr(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new dn({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:o};return h.sheet.hydrate(a),h},pr=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},hr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function mr(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var vr=/[A-Z]|^ms/g,gr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yr=function(e){return 45===e.charCodeAt(1)},br=function(e){return null!=e&&"boolean"!=typeof e},Cr=mr((function(e){return yr(e)?e:e.replace(vr,"-$&").toLowerCase()})),Dr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(gr,(function(e,t,n){return Sr={name:t,styles:n,next:Sr},t}))}return 1===hr[e]||yr(e)||"number"!=typeof t||0===t?t:t+"px"};function wr(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Sr={name:n.name,styles:n.styles,next:Sr},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Sr={name:r.name,styles:r.styles,next:Sr},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=wr(e,t,n[o])+";";else for(var i in n){var l=n[i];if("object"!=typeof l)null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":br(l)&&(r+=Cr(i)+":"+Dr(i,l)+";");else if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var a=wr(e,t,l);switch(i){case"animation":case"animationName":r+=Cr(i)+":"+a+";";break;default:r+=i+"{"+a+"}"}}else for(var u=0;u<l.length;u++)br(l[u])&&(r+=Cr(i)+":"+Dr(i,l[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Sr,i=n(e);return Sr=o,wr(e,t,i)}}if(null==t)return n;var l=t[n];return void 0!==l?l:n}var Sr,_r=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Er=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Sr=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=wr(n,t,i)):o+=i[0];for(var l=1;l<e.length;l++)o+=wr(n,t,e[l]),r&&(o+=i[l]);_r.lastIndex=0;for(var a,u="";null!==(a=_r.exec(o));)u+="-"+a[1];var s=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+u;return{name:s,styles:o,next:Sr}},xr=!!j.useInsertionEffect&&j.useInsertionEffect,Ar=xr||function(e){return e()},Or=(xr||j.useLayoutEffect,{}.hasOwnProperty),Fr=j.createContext("undefined"!=typeof HTMLElement?fr({key:"css"}):null),kr=Fr.Provider,Tr=function(e){return(0,j.forwardRef)((function(t,n){var r=(0,j.useContext)(Fr);return e(t,r,n)}))},Ir=j.createContext({}),Rr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Pr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return pr(t,n,r),Ar((function(){return function(e,t,n){pr(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},Mr=Tr((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Rr],i=[r],l="";"string"==typeof e.className?l=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(l=e.className+" ");var a=Er(i,void 0,j.useContext(Ir));l+=t.key+"-"+a.name;var u={};for(var s in e)Or.call(e,s)&&"css"!==s&&s!==Rr&&(u[s]=e[s]);return u.ref=n,u.className=l,j.createElement(j.Fragment,null,j.createElement(Pr,{cache:t,serialized:a,isStringTag:"string"==typeof o}),j.createElement(o,u))})),zr=Mr;const Br={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Lr;const jr=new Uint8Array(16);function Nr(){if(!Lr&&(Lr="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Lr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Lr(jr)}const Hr=[];for(let e=0;e<256;++e)Hr.push((e+256).toString(16).slice(1));const Vr=function(e,t,n){if(Br.randomUUID&&!t&&!e)return Br.randomUUID();const r=(e=e||{}).random||(e.rng||Nr)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return Hr[e[t+0]]+Hr[e[t+1]]+Hr[e[t+2]]+Hr[e[t+3]]+"-"+Hr[e[t+4]]+Hr[e[t+5]]+"-"+Hr[e[t+6]]+Hr[e[t+7]]+"-"+Hr[e[t+8]]+Hr[e[t+9]]+"-"+Hr[e[t+10]]+Hr[e[t+11]]+Hr[e[t+12]]+Hr[e[t+13]]+Hr[e[t+14]]+Hr[e[t+15]]}(r)};var Gr=new Set,Wr=new WeakMap,Ur=function(e){if(Wr.has(e))return Wr.get(e);for(var t=Vr().replace(/[0-9]/g,"");Gr.has(t);)t=Vr().replace(/[0-9]/g,"");Gr.add(t);var n=fr({container:e,key:t});return Wr.set(e,n),n};function $r(e){var t=e.children,n=e.document;if(!n)return null;var r=Ur(n.head);return wp.element.createElement(kr,{value:r},t)}function qr(e){var t,n=e.children,r=(0,Kt.useRef)();return wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("link",{ref:r}),wp.element.createElement($r,{document:(null==r||null===(t=r.current)||void 0===t?void 0:t.ownerDocument)||document},n))}function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n(8679);var Kr=function(e,t){var n=arguments;if(null==t||!Or.call(t,"css"))return j.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=zr,o[1]=function(e,t){var n={};for(var r in t)Or.call(t,r)&&(n[r]=t[r]);return n[Rr]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return j.createElement.apply(null,o)};function Jr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Er(t)}Math.min,Math.max;function Zr(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Qr(e){return Zr(e).getComputedStyle(e)}function eo(e){return e instanceof Zr(e).Node}function to(e){return eo(e)?(e.nodeName||"").toLowerCase():""}function no(e){return e instanceof Zr(e).HTMLElement}function ro(e){return e instanceof Zr(e).Element}function oo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Zr(e).ShadowRoot||e instanceof ShadowRoot)}function io(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),Math.min,Math.max;const lo=Math.round;function ao(e){return ro(e)?e:e.contextElement}const uo={x:1,y:1};function so(e){const t=ao(e);if(!no(t))return uo;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:i}=function(e){const t=Qr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=no(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=lo(n)!==i||lo(r)!==l;return a&&(n=i,r=l),{width:n,height:r,fallback:a}}(t);let l=(i?lo(n.width):n.width)/r,a=(i?lo(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const co={x:0,y:0};function fo(e,t,n){var r,o;if(void 0===t&&(t=!0),"undefined"==typeof CSS||!CSS.supports||!CSS.supports("-webkit-backdrop-filter","none"))return co;const i=e?Zr(e):window;return!n||t&&n!==i?co:{x:(null==(r=i.visualViewport)?void 0:r.offsetLeft)||0,y:(null==(o=i.visualViewport)?void 0:o.offsetTop)||0}}function po(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ao(e);let l=uo;t&&(r?ro(r)&&(l=so(r)):l=so(e));const a=fo(i,n,r);let u=(o.left+a.x)/l.x,s=(o.top+a.y)/l.y,c=o.width/l.x,d=o.height/l.y;if(i){const e=Zr(i),t=r&&ro(r)?Zr(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=so(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,u*=e.x,s*=e.y,c*=e.x,d*=e.y,u+=t.x,s+=t.y,n=Zr(n).frameElement}}return f={width:c,height:d,x:u,y:s},{...f,top:f.y,left:f.x,right:f.x+f.width,bottom:f.y+f.height};var f}function ho(e){if("html"===to(e))return e;const t=e.assignedSlot||e.parentNode||oo(e)&&e.host||function(e){return((eo(e)?e.ownerDocument:e.document)||window.document).documentElement}(e);return oo(t)?t.host:t}function mo(e){const t=ho(e);return function(e){return["html","body","#document"].includes(to(e))}(t)?t.ownerDocument.body:no(t)&&io(t)?t:mo(t)}function vo(e,t){var n;void 0===t&&(t=[]);const r=mo(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Zr(r);return o?t.concat(i,i.visualViewport||[],io(r)?r:[]):t.concat(r,vo(r))}const go=j.useLayoutEffect;var yo=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],bo=function(){};function Co(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Do(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var l in t)t.hasOwnProperty(l)&&t[l]&&i.push("".concat(Co(e,l)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var wo=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===F(e)&&null!==e?[e]:[];var t},So=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Yr({},Y(e,yo))},_o=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,l=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),l)}};function Eo(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function xo(e){return Eo(e)?window.pageYOffset:e.scrollTop}function Ao(e,t){Eo(e)?window.scrollTo(0,t):e.scrollTop=t}function Oo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:bo,o=xo(e),i=t-o,l=0;!function t(){var a,u=(a=l+=10,i*((a=a/n-1)*a*a+1)+o);Ao(e,u),l<n?window.requestAnimationFrame(t):r(e)}()}function Fo(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Ao(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Ao(e,Math.max(t.offsetTop-o,0))}function ko(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var To=!1,Io={get passive(){return To=!0}},Ro="undefined"!=typeof window?window:{};Ro.addEventListener&&Ro.removeEventListener&&(Ro.addEventListener("p",bo,Io),Ro.removeEventListener("p",bo,!1));var Po=To;function Mo(e){return null!=e}function zo(e,t,n){return e?t:n}var Bo=["children","innerProps"],Lo=["children","innerProps"];var jo,No,Ho,Vo=function(e){return"auto"===e?"bottom":e},Go=(0,j.createContext)(null),Wo=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,l=e.menuShouldScrollIntoView,a=e.theme,u=((0,j.useContext)(Go)||{}).setPortalPlacement,s=(0,j.useRef)(null),c=Ke((0,j.useState)(r),2),d=c[0],f=c[1],p=Ke((0,j.useState)(null),2),h=p[0],m=p[1],v=a.spacing.controlHeight;return go((function(){var e=s.current;if(e){var t="fixed"===i,a=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,l=e.isFixedPosition,a=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),s={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return s;var c,d=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,v=n.offsetParent.getBoundingClientRect().top,g=l||Eo(c=u)?window.innerHeight:c.clientHeight,y=xo(u),b=parseInt(getComputedStyle(n).marginBottom,10),C=parseInt(getComputedStyle(n).marginTop,10),D=v-C,w=g-m,S=D+y,_=d-y-m,E=p-g+y+b,x=y+m-C,A=160;switch(o){case"auto":case"bottom":if(w>=h)return{placement:"bottom",maxHeight:t};if(_>=h&&!l)return i&&Oo(u,E,A),{placement:"bottom",maxHeight:t};if(!l&&_>=r||l&&w>=r)return i&&Oo(u,E,A),{placement:"bottom",maxHeight:l?w-b:_-b};if("auto"===o||l){var O=t,F=l?D:S;return F>=r&&(O=Math.min(F-b-a,t)),{placement:"top",maxHeight:O}}if("bottom"===o)return i&&Ao(u,E),{placement:"bottom",maxHeight:t};break;case"top":if(D>=h)return{placement:"top",maxHeight:t};if(S>=h&&!l)return i&&Oo(u,x,A),{placement:"top",maxHeight:t};if(!l&&S>=r||l&&D>=r){var k=t;return(!l&&S>=r||l&&D>=r)&&(k=l?D-C:S-C),i&&Oo(u,x,A),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return s}({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:v});f(a.maxHeight),m(a.placement),null==u||u(a.placement)}}),[r,o,i,l,n,u,v]),t({ref:s,placerProps:Yr(Yr({},e),{},{placement:h||Vo(o),maxHeight:d})})},Uo=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Yr({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},$o=Uo,qo=Uo,Xo=["size"],Yo=["innerProps","isRtl","size"],Ko={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Jo=function(e){var t=e.size,n=Y(e,Xo);return Kr("svg",U({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ko},n))},Zo=function(e){return Kr(Jo,U({size:20},e),Kr("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Qo=function(e){return Kr(Jo,U({size:20},e),Kr("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ei=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Yr({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},ti=ei,ni=ei,ri=function(){var e=Jr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(jo||(No=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],Ho||(Ho=No.slice(0)),jo=Object.freeze(Object.defineProperties(No,{raw:{value:Object.freeze(Ho)}})))),oi=function(e){var t=e.delay,n=e.offset;return Kr("span",{css:Jr({animation:"".concat(ri," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ii=["data"],li=["innerRef","isDisabled","isHidden","inputClassName"],ai={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ui={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Yr({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ai)},si=function(e){return Yr({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},ai)},ci=function(e){var t=e.children,n=e.innerProps;return Kr("div",n,t)},di={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Kr("div",U({},_o(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Kr(Zo,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,l=e.menuIsOpen;return Kr("div",U({ref:o},_o(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":l}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Kr("div",U({},_o(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Kr(Qo,null))},DownChevron:Qo,CrossIcon:Zo,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,l=e.headingProps,a=e.innerProps,u=e.label,s=e.theme,c=e.selectProps;return Kr("div",U({},_o(e,"group",{group:!0}),a),Kr(i,U({},l,{selectProps:c,theme:s,getStyles:r,getClassNames:o,cx:n}),u),Kr("div",null,t))},GroupHeading:function(e){var t=So(e);t.data;var n=Y(t,ii);return Kr("div",U({},_o(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Kr("div",U({},_o(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Kr("span",U({},t,_o(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=So(e),o=r.innerRef,i=r.isDisabled,l=r.isHidden,a=r.inputClassName,u=Y(r,li);return Kr("div",U({},_o(e,"input",{"input-container":!0}),{"data-value":n||""}),Kr("input",U({className:t({input:!0},a),ref:o,style:si(l),disabled:i},u)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=Y(e,Yo);return Kr("div",U({},_o(Yr(Yr({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Kr(oi,{delay:0,offset:n}),Kr(oi,{delay:160,offset:!0}),Kr(oi,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Kr("div",U({},_o(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Kr("div",U({},_o(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,l=e.menuPosition,a=(0,j.useRef)(null),u=(0,j.useRef)(null),s=Ke((0,j.useState)(Vo(i)),2),c=s[0],d=s[1],f=(0,j.useMemo)((function(){return{setPortalPlacement:d}}),[]),p=Ke((0,j.useState)(null),2),h=p[0],m=p[1],v=(0,j.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===l?0:window.pageYOffset,n=e[c]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||m({offset:n,rect:e})}}),[r,l,c,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);go((function(){v()}),[v]);var g=(0,j.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),r&&a.current&&(u.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=r,u=o||i?[...ro(e)?vo(e):e.contextElement?vo(e.contextElement):[],...vo(t)]:[];u.forEach((e=>{const t=!ro(e)&&e.toString().includes("V");!o||a&&!t||e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let s,c=null;l&&(c=new ResizeObserver((()=>{n()})),ro(e)&&!a&&c.observe(e),ro(e)||!e.contextElement||a||c.observe(e.contextElement),c.observe(t));let d=a?po(e):null;return a&&function t(){const r=po(e);!d||r.x===d.x&&r.y===d.y&&r.width===d.width&&r.height===d.height||n(),d=r,s=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=c)||e.disconnect(),c=null,a&&cancelAnimationFrame(s)}}(r,a.current,v,{elementResize:"ResizeObserver"in window}))}),[r,v]);go((function(){g()}),[g]);var y=(0,j.useCallback)((function(e){a.current=e,g()}),[g]);if(!t&&"fixed"!==l||!h)return null;var b=Kr("div",U({ref:y},_o(Yr(Yr({},e),{},{offset:h.offset,position:l,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return Kr(Go.Provider,{value:f},t?(0,Oe.createPortal)(b,t):b)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Y(e,Lo);return Kr("div",U({},_o(Yr(Yr({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=Y(e,Bo);return Kr("div",U({},_o(Yr(Yr({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,l=e.removeProps,a=e.selectProps,u=n.Container,s=n.Label,c=n.Remove;return Kr(u,{data:r,innerProps:Yr(Yr({},_o(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:a},Kr(s,{data:r,innerProps:Yr({},_o(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),Kr(c,{data:r,innerProps:Yr(Yr({},_o(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:a}))},MultiValueContainer:ci,MultiValueLabel:ci,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Kr("div",U({role:"button"},n),t||Kr(Zo,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,l=e.innerProps;return Kr("div",U({},_o(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},l),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Kr("div",U({},_o(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Kr("div",U({},_o(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Kr("div",U({},_o(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Kr("div",U({},_o(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},fi=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function pi(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||fi(r)&&fi(o)))return!1;var r,o;return!0}for(var hi={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},mi=function(e){return Kr("span",U({css:hi},e))},vi={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,l=e.selectValue,a=e.isDisabled,u=e.isSelected,s=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&l)return"value ".concat(i," focused, ").concat(c(l,n),".");if("menu"===t&&s){var d=a?" disabled":"",f="".concat(u?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},gi=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,l=e.selectValue,a=e.selectProps,u=e.id,s=e.isAppleDevice,c=a.ariaLiveMessages,d=a.getOptionLabel,f=a.inputValue,p=a.isMulti,h=a.isOptionDisabled,m=a.isSearchable,v=a.menuIsOpen,g=a.options,y=a.screenReaderStatus,b=a.tabSelectsValue,C=a.isLoading,D=a["aria-label"],w=a["aria-live"],S=(0,j.useMemo)((function(){return Yr(Yr({},vi),c||{})}),[c]),_=(0,j.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,i=t.removedValue,a=t.removedValues,u=t.value,s=i||r||(e=u,Array.isArray(e)?null:e),c=s?d(s):"",f=o||a||void 0,p=f?f.map(d):[],m=Yr({isDisabled:s&&h(s,l),label:c,labels:p},t);n=S.onChange(m)}return n}),[t,S,h,l,d]),E=(0,j.useMemo)((function(){var e="",t=n||r,i=!!(n&&l&&l.includes(n));if(t&&S.onFocus){var a={focused:t,label:d(t),isDisabled:h(t,l),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:l,isAppleDevice:s};e=S.onFocus(a)}return e}),[n,r,d,h,S,o,l,s]),x=(0,j.useMemo)((function(){var e="";if(v&&g.length&&!C&&S.onFilter){var t=y({count:o.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,v,S,g,y,C]),A="initial-input-focus"===(null==t?void 0:t.action),O=(0,j.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":v?"menu":"input";e=S.guidance({"aria-label":D,context:t,isDisabled:n&&h(n,l),isMulti:p,isSearchable:m,tabSelectsValue:b,isInitialFocus:A})}return e}),[D,n,r,p,h,m,v,S,l,b,A]),F=Kr(j.Fragment,null,Kr("span",{id:"aria-selection"},_),Kr("span",{id:"aria-focused"},E),Kr("span",{id:"aria-results"},x),Kr("span",{id:"aria-guidance"},O));return Kr(j.Fragment,null,Kr(mi,{id:u},A&&F),Kr(mi,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!A&&F))},yi=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],bi=new RegExp("["+yi.map((function(e){return e.letters})).join("")+"]","g"),Ci={},Di=0;Di<yi.length;Di++)for(var wi=yi[Di],Si=0;Si<wi.letters.length;Si++)Ci[wi.letters[Si]]=wi.base;var _i=function(e){return e.replace(bi,(function(e){return Ci[e]}))},Ei=function(e,t){void 0===t&&(t=pi);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(_i),xi=function(e){return e.replace(/^\s+|\s+$/g,"")},Ai=function(e){return"".concat(e.label," ").concat(e.value)},Oi=["innerRef"];function Fi(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=Ke(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Ke(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Y(e,Oi),"onExited","in","enter","exit","appear");return Kr("input",U({ref:t},n,{css:Jr({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var ki=["boxSizing","height","overflow","paddingRight","position"],Ti={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ii(e){e.preventDefault()}function Ri(e){e.stopPropagation()}function Pi(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Mi(){return"ontouchstart"in window||navigator.maxTouchPoints}var zi=!("undefined"==typeof window||!window.document||!window.document.createElement),Bi=0,Li={capture:!1,passive:!1},ji=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Ni={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Hi(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,l=(0,j.useRef)(!1),a=(0,j.useRef)(!1),u=(0,j.useRef)(0),s=(0,j.useRef)(null),c=(0,j.useCallback)((function(e,t){if(null!==s.current){var u=s.current,c=u.scrollTop,d=u.scrollHeight,f=u.clientHeight,p=s.current,h=t>0,m=d-f-c,v=!1;m>t&&l.current&&(r&&r(e),l.current=!1),h&&a.current&&(i&&i(e),a.current=!1),h&&t>m?(n&&!l.current&&n(e),p.scrollTop=d,v=!0,l.current=!0):!h&&-t>c&&(o&&!a.current&&o(e),p.scrollTop=0,v=!0,a.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),d=(0,j.useCallback)((function(e){c(e,e.deltaY)}),[c]),f=(0,j.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),p=(0,j.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;c(e,t)}),[c]),h=(0,j.useCallback)((function(e){if(e){var t=!!Po&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",p,t)}}),[p,f,d]),m=(0,j.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",p,!1))}),[p,f,d]);return(0,j.useEffect)((function(){if(t){var e=s.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){s.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,j.useRef)({}),i=(0,j.useRef)(null),l=(0,j.useCallback)((function(e){if(zi){var t=document.body,n=t&&t.style;if(r&&ki.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Bi<1){var i=parseInt(o.current.paddingRight,10)||0,l=document.body?document.body.clientWidth:0,a=window.innerWidth-l+i||0;Object.keys(Ti).forEach((function(e){var t=Ti[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&Mi()&&(t.addEventListener("touchmove",Ii,Li),e&&(e.addEventListener("touchstart",Pi,Li),e.addEventListener("touchmove",Ri,Li))),Bi+=1}}),[r]),a=(0,j.useCallback)((function(e){if(zi){var t=document.body,n=t&&t.style;Bi=Math.max(Bi-1,0),r&&Bi<1&&ki.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Mi()&&(t.removeEventListener("touchmove",Ii,Li),e&&(e.removeEventListener("touchstart",Pi,Li),e.removeEventListener("touchmove",Ri,Li)))}}),[r]);return(0,j.useEffect)((function(){if(t){var e=i.current;return l(e),function(){a(e)}}}),[t,l,a]),function(e){i.current=e}}({isEnabled:n});return Kr(j.Fragment,null,n&&Kr("div",{onClick:ji,css:Ni}),t((function(e){o(e),i(e)})))}var Vi={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Gi=function(e){var t=e.name,n=e.onFocus;return Kr("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Vi,value:"",onChange:function(){}})};function Wi(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ui(){return Wi(/^Mac/i)}var $i=function(e){return e.label},qi=function(e){return e.value},Xi={clearIndicator:ni,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,l=o.borderRadius;return Yr({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:ti,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Yr({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Yr({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,l=o.colors;return Yr(Yr({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},ui),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:l.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,l=o.spacing.baseUnit;return Yr({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*l})},loadingMessage:qo,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,l=o.spacing,a=o.colors;return Yr((L(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),L(n,"position","absolute"),L(n,"width","100%"),L(n,"zIndex",1),n),t?{}:{backgroundColor:a.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Yr({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Yr({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return Yr({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,l=e.isFocused;return Yr({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:l?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:$o,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,l=i.spacing,a=i.colors;return Yr({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?a.primary:r?a.primary25:"transparent",color:n?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(2*l.baseUnit,"px ").concat(3*l.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Yr({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return Yr({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Yr({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Yi={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ki={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ko(),captureMenuScroll:!ko(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Yr({ignoreCase:!0,ignoreAccents:!0,stringify:Ai,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,l=n.trim,a=n.matchFrom,u=l?xi(t):t,s=l?xi(i(e)):i(e);return r&&(u=u.toLowerCase(),s=s.toLowerCase()),o&&(u=Ei(u),s=_i(s)),"start"===a?s.substr(0,u.length)===u:s.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:$i,getOptionValue:qi,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ji(e,t,n,r){return{type:"option",data:t,isDisabled:il(e,t,n),isSelected:ll(e,t,n),label:rl(e,t),value:ol(e,t),index:r}}function Zi(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Ji(e,n,t,r)})).filter((function(t){return tl(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Ji(e,n,t,r);return tl(e,i)?i:void 0})).filter(Mo)}function Qi(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Ue(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function el(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Ue(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function tl(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,l=t.label,a=t.value;return(!ul(e)||!i)&&al(e,{label:l,value:a,data:o},r)}var nl=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},rl=function(e,t){return e.getOptionLabel(t)},ol=function(e,t){return e.getOptionValue(t)};function il(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ll(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ol(e,t);return n.some((function(t){return ol(e,t)===r}))}function al(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ul=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},sl=1,cl=function(e){B(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=M(t);if(n){var o=M(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return P(this,e)});function o(e){var t;if(O(this,o),(t=r.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Ui()||Wi(/^iPhone/i)||Wi(/^iPad/i)||Ui()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,l=o.isMulti,a=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:a}),i&&(t.setState({inputIsHiddenAfterUpdate:!l}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,l=t.state.selectValue,a=o&&t.isOptionSelected(e,l),u=t.isOptionDisabled(e,l);if(a){var s=t.getOptionValue(e);t.setValue(l.filter((function(e){return t.getOptionValue(e)!==s})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(Ue(l),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),l=zo(n,i,i[0]||null);t.onChange(l,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(zo(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=zo(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return nl(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return el(Zi(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Do.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return rl(t.props,e)},t.getOptionValue=function(e){return ol(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Xi[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Yr(Yr({},di),e.components);var e},t.buildCategorizedOptions=function(){return Zi(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Qi(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Yr({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Eo(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return ul(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,l=n.inputValue,a=n.isClearable,u=n.isDisabled,s=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,v=p.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||l)return;t.focusValue("previous");break;case"ArrowRight":if(!r||l)return;t.focusValue("next");break;case"Delete":case"Backspace":if(l)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():a&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!s||!d||!h||f&&t.isOptionSelected(h,v))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(s){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":s?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:l}),t.onMenuClose()):a&&i&&t.clearValue();break;case" ":if(l)return;if(!s){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":s?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":s?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!s)return;t.focusOption("pageup");break;case"PageDown":if(!s)return;t.focusOption("pagedown");break;case"Home":if(!s)return;t.focusOption("first");break;case"End":if(!s)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++sl),t.state.selectValue=wo(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),i=t.buildFocusableOptions(),l=i.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=i[l],t.state.focusedOptionId=nl(n,i[l])}return t}return I(o,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Fo(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Fo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),l="first"===e?0:i.length-1;if(!this.props.isMulti){var a=i.indexOf(r[0]);a>-1&&(l=a)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[l],focusedOptionId:this.getFocusedOptionId(i[l])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,l=-1;if(n.length){switch(e){case"previous":l=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(l=o+1)}this.setState({inputIsHidden:-1!==l,focusedValue:n[l]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Yi):Yr(Yr({},Yi),this.props.theme):Yi}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,l=this.setValue,a=this.props,u=a.isMulti,s=a.isRtl,c=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:s,options:c,selectOption:i,selectProps:a,setValue:l,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return il(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ll(this.props,e,t)}},{key:"filterOption",value:function(e,t){return al(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,l=e.form,a=e.menuIsOpen,u=e.required,s=this.getComponents().Input,c=this.state,d=c.inputIsHidden,f=c.ariaSelection,p=this.commonProps,h=r||this.getElementId("input"),m=Yr(Yr(Yr({"aria-autocomplete":"list","aria-expanded":a,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},a&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?j.createElement(s,U({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:l,type:"text",value:o},m)):j.createElement(Fi,U({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:bo,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:l,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,l=t.SingleValue,a=t.Placeholder,u=this.commonProps,s=this.props,c=s.controlShouldRenderValue,d=s.isDisabled,f=s.isMulti,p=s.inputValue,h=s.placeholder,m=this.state,v=m.selectValue,g=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!c)return p?null:j.createElement(a,U({},u,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return v.map((function(t,l){var a=t===g,s="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return j.createElement(n,U({},u,{components:{Container:r,Label:o,Remove:i},isFocused:a,isDisabled:d,key:s,index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(p)return null;var b=v[0];return j.createElement(l,U({},u,{data:b,isDisabled:d}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return j.createElement(e,U({},t,{innerProps:l,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?j.createElement(e,U({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return j.createElement(n,U({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return j.createElement(e,U({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,l=t.MenuPortal,a=t.LoadingMessage,u=t.NoOptionsMessage,s=t.Option,c=this.commonProps,d=this.state.focusedOption,f=this.props,p=f.captureMenuScroll,h=f.inputValue,m=f.isLoading,v=f.loadingMessage,g=f.minMenuHeight,y=f.maxMenuHeight,b=f.menuIsOpen,C=f.menuPlacement,D=f.menuPosition,w=f.menuPortalTarget,S=f.menuShouldBlockScroll,_=f.menuShouldScrollIntoView,E=f.noOptionsMessage,x=f.onMenuScrollToTop,A=f.onMenuScrollToBottom;if(!b)return null;var O,F=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,l=t.isSelected,a=t.label,u=t.value,f=d===o,p=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),v={id:m,onClick:h,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:l};return j.createElement(s,U({},c,{innerProps:v,data:o,isDisabled:i,isSelected:l,key:m,label:a,type:r,value:u,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())O=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,l=t.index,a="".concat(e.getElementId("group"),"-").concat(l),u="".concat(a,"-heading");return j.createElement(n,U({},c,{key:a,data:o,options:i,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return F(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return F(t,"".concat(t.index))}));else if(m){var k=v({inputValue:h});if(null===k)return null;O=j.createElement(a,c,k)}else{var T=E({inputValue:h});if(null===T)return null;O=j.createElement(u,c,T)}var I={minMenuHeight:g,maxMenuHeight:y,menuPlacement:C,menuPosition:D,menuShouldScrollIntoView:_},R=j.createElement(Wo,U({},c,I),(function(t){var n=t.ref,r=t.placerProps,l=r.placement,a=r.maxHeight;return j.createElement(o,U({},c,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:l}),j.createElement(Hi,{captureEnabled:p,onTopArrive:x,onBottomArrive:A,lockEnabled:S},(function(t){return j.createElement(i,U({},c,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":c.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:a,focusedOption:d}),O)})))}));return w||"fixed"===D?j.createElement(l,U({},c,{appendTo:w,controlElement:this.controlRef,menuPlacement:C,menuPosition:D}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,l=t.required,a=this.state.selectValue;if(l&&!this.hasValue()&&!r)return j.createElement(Gi,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var u=a.map((function(t){return e.getOptionValue(t)})).join(n);return j.createElement("input",{name:i,type:"hidden",value:u})}var s=a.length>0?a.map((function(t,n){return j.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):j.createElement("input",{name:i,type:"hidden",value:""});return j.createElement("div",null,s)}var c=a[0]?this.getOptionValue(a[0]):"";return j.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,l=t.selectValue,a=this.getFocusableOptions();return j.createElement(gi,U({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:l,focusableOptions:a,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,l=i.className,a=i.id,u=i.isDisabled,s=i.menuIsOpen,c=this.state.isFocused,d=this.commonProps=this.getCommonProps();return j.createElement(r,U({},d,{className:l,innerProps:{id:a,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:c}),this.renderLiveRegion(),j.createElement(t,U({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:c,menuIsOpen:s}),j.createElement(o,U({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),j.createElement(n,U({},d,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,l=t.isFocused,a=t.prevWasFocused,u=t.instancePrefix,s=e.options,c=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=wo(c),m={};if(n&&(c!==n.value||s!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var v=d?function(e,t){return Qi(Zi(e,t))}(e,h):[],g=d?el(Zi(e,h),"".concat(u,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);m={selectValue:h,focusedOption:b,focusedOptionId:nl(g,b),focusableOptionsWithIds:g,focusedValue:y,clearFocusValueOnUpdate:!1}}var C=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},D=i,w=l&&a;return l&&!w&&(D={value:zo(p,h,h[0]||null),options:h,action:"initial-input-focus"},w=!a),"initial-input-focus"===(null==i?void 0:i.action)&&(D=null),Yr(Yr(Yr({},m),C),{},{prevProps:e,ariaSelection:D,prevWasFocused:w})}}]),o}(j.Component);cl.defaultProps=Ki;var dl=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function fl(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,l=void 0===i?null:i,a=e.inputValue,u=e.menuIsOpen,s=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,h=Y(e,dl),m=Ke((0,j.useState)(void 0!==a?a:n),2),v=m[0],g=m[1],y=Ke((0,j.useState)(void 0!==u?u:o),2),b=y[0],C=y[1],D=Ke((0,j.useState)(void 0!==p?p:l),2),w=D[0],S=D[1],_=(0,j.useCallback)((function(e,t){"function"==typeof s&&s(e,t),S(e)}),[s]),E=(0,j.useCallback)((function(e,t){var n;"function"==typeof c&&(n=c(e,t)),g(void 0!==n?n:e)}),[c]),x=(0,j.useCallback)((function(){"function"==typeof f&&f(),C(!0)}),[f]),A=(0,j.useCallback)((function(){"function"==typeof d&&d(),C(!1)}),[d]),O=void 0!==a?a:v,F=void 0!==u?u:b,k=void 0!==p?p:w;return Yr(Yr({},h),{},{inputValue:O,menuIsOpen:F,onChange:_,onInputChange:E,onMenuClose:A,onMenuOpen:x,value:k})}var pl=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],hl=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),o=String(t.getOptionLabel(e)).toLowerCase();return r===n||o===n},ml={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return hl(e,t,r)}))||n.some((function(t){return hl(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}},vl=(0,j.forwardRef)((function(e,t){var n=function(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,o=void 0===r?"last":r,i=e.formatCreateLabel,l=void 0===i?ml.formatCreateLabel:i,a=e.isValidNewOption,u=void 0===a?ml.isValidNewOption:a,s=e.getNewOptionData,c=void 0===s?ml.getNewOptionData:s,d=e.onCreateOption,f=e.options,p=void 0===f?[]:f,h=e.onChange,m=Y(e,pl),v=m.getOptionValue,g=void 0===v?qi:v,y=m.getOptionLabel,b=void 0===y?$i:y,C=m.inputValue,D=m.isLoading,w=m.isMulti,S=m.value,_=m.name,E=(0,j.useMemo)((function(){return u(C,wo(S),p,{getOptionValue:g,getOptionLabel:b})?c(C,l(C)):void 0}),[l,c,b,g,C,u,p,S]),x=(0,j.useMemo)((function(){return!n&&D||!E?p:"first"===o?[E].concat(Ue(p)):[].concat(Ue(p),[E])}),[n,o,D,E,p]),A=(0,j.useCallback)((function(e,t){if("select-option"!==t.action)return h(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==E)h(e,t);else if(d)d(C);else{var r=c(C,C),o={action:"create-option",name:_,option:r};h(zo(w,[].concat(Ue(wo(S)),[r]),r),o)}}),[c,C,w,_,E,d,h,S]);return Yr(Yr({},m),{},{options:x,onChange:A})}(fl(e));return j.createElement(cl,U({ref:t},n))})),gl=vl,yl=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"],bl=(0,j.forwardRef)((function(e,t){var n=function(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,o=void 0!==r&&r,i=e.loadOptions;e.options;var l=e.isLoading,a=void 0!==l&&l,u=e.onInputChange,s=e.filterOption,c=void 0===s?null:s,d=Y(e,yl),f=d.inputValue,p=(0,j.useRef)(void 0),h=(0,j.useRef)(!1),m=Ke((0,j.useState)(Array.isArray(n)?n:void 0),2),v=m[0],g=m[1],y=Ke((0,j.useState)(void 0!==f?f:""),2),b=y[0],C=y[1],D=Ke((0,j.useState)(!0===n),2),w=D[0],S=D[1],_=Ke((0,j.useState)(void 0),2),E=_[0],x=_[1],A=Ke((0,j.useState)([]),2),O=A[0],F=A[1],k=Ke((0,j.useState)(!1),2),T=k[0],I=k[1],R=Ke((0,j.useState)({}),2),P=R[0],M=R[1],z=Ke((0,j.useState)(void 0),2),B=z[0],N=z[1],H=Ke((0,j.useState)(void 0),2),V=H[0],G=H[1];o!==V&&(M({}),G(o)),n!==B&&(g(Array.isArray(n)?n:void 0),N(n)),(0,j.useEffect)((function(){return h.current=!0,function(){h.current=!1}}),[]);var W=(0,j.useCallback)((function(e,t){if(!i)return t();var n=i(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[i]);(0,j.useEffect)((function(){!0===n&&W(b,(function(e){h.current&&(g(e||[]),S(!!p.current))}))}),[]);var U=(0,j.useCallback)((function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,u);if(!n)return p.current=void 0,C(""),x(""),F([]),S(!1),void I(!1);if(o&&P[n])C(n),x(n),F(P[n]),S(!1),I(!1);else{var r=p.current={};C(n),S(!0),I(!E),W(n,(function(e){h&&r===p.current&&(p.current=void 0,S(!1),x(n),F(e||[]),I(!1),M(e?Yr(Yr({},P),{},L({},n,e)):P))}))}}),[o,W,E,P,u]),$=T?[]:b&&E?O:v||[];return Yr(Yr({},d),{},{options:$,isLoading:w||a,onInputChange:U,filterOption:c})}(e),r=fl(n);return j.createElement(cl,U({ref:t},r))})),Cl=bl,Dl=(0,j.forwardRef)((function(e,t){var n=fl(e);return j.createElement(cl,U({ref:t},n))})),wl=n(102),Sl=n.n(wl);const _l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function El(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function xl(e){return"nodeType"in e}function Al(e){var t,n;return e?El(e)?e:xl(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function Ol(e){const{Document:t}=Al(e);return e instanceof t}function Fl(e){return!El(e)&&e instanceof Al(e).HTMLElement}function kl(e){return e instanceof Al(e).SVGElement}function Tl(e){return e?El(e)?e.document:xl(e)?Ol(e)?e:Fl(e)||kl(e)?e.ownerDocument:document:document:document}const Il=_l?j.useLayoutEffect:j.useEffect;function Rl(e){const t=(0,j.useRef)(e);return Il((()=>{t.current=e})),(0,j.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function Pl(e,t){void 0===t&&(t=[e]);const n=(0,j.useRef)(e);return Il((()=>{n.current!==e&&(n.current=e)}),t),n}function Ml(e,t){const n=(0,j.useRef)();return(0,j.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function zl(e){const t=Rl(e),n=(0,j.useRef)(null),r=(0,j.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,r]}function Bl(e){const t=(0,j.useRef)();return(0,j.useEffect)((()=>{t.current=e}),[e]),t.current}let Ll={};function jl(e,t){return(0,j.useMemo)((()=>{if(t)return t;const n=null==Ll[e]?0:Ll[e]+1;return Ll[e]=n,e+"-"+n}),[e,t])}function Nl(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const Hl=Nl(1),Vl=Nl(-1);function Gl(e){if(!e)return!1;const{KeyboardEvent:t}=Al(e.target);return t&&e instanceof t}function Wl(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Al(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Ul=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Ul.Translate.toString(e),Ul.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),$l="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ql(e){return e.matches($l)?e:e.querySelector($l)}const Xl={display:"none"};function Yl(e){let{id:t,value:n}=e;return N().createElement("div",{id:t,style:Xl},n)}function Kl(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return N().createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const Jl=(0,j.createContext)(null),Zl={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},Ql={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function ea(e){let{announcements:t=Ql,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Zl}=e;const{announce:i,announcement:l}=function(){const[e,t]=(0,j.useState)("");return{announce:(0,j.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),a=jl("DndLiveRegion"),[u,s]=(0,j.useState)(!1);if((0,j.useEffect)((()=>{s(!0)}),[]),function(e){const t=(0,j.useContext)(Jl);(0,j.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,j.useMemo)((()=>({onDragStart(e){let{active:n}=e;i(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&i(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;i(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;i(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;i(t.onDragCancel({active:n,over:r}))}})),[i,t])),!u)return null;const c=N().createElement(N().Fragment,null,N().createElement(Yl,{id:r,value:o.draggable}),N().createElement(Kl,{id:a,announcement:l}));return n?(0,Oe.createPortal)(c,n):c}var ta;function na(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(ta||(ta={}));const ra=Object.freeze({x:0,y:0});function oa(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function ia(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function la(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const aa=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=la(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=(l=la(r),a=o,Math.sqrt(Math.pow(l.x-a.x,2)+Math.pow(l.y-a.y,2)));i.push({id:t,data:{droppableContainer:e,value:n}})}}var l,a;return i.sort(oa)};function ua(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),l=o-r,a=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=l*a;return Number((o/(n+r-o)).toFixed(4))}return 0}const sa=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=ua(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(ia)};function ca(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ra}function da(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const fa=da(1);const pa={ignoreTransform:!1};function ha(e,t){void 0===t&&(t=pa);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=Al(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;const{scaleX:o,scaleY:i,x:l,y:a}=r,u=e.left-l-(1-o)*parseFloat(n),s=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:c,height:d,top:s,right:u+c,bottom:s+d,left:u}}(n,t,r))}const{top:r,left:o,width:i,height:l,bottom:a,right:u}=n;return{top:r,left:o,width:i,height:l,bottom:a,right:u}}function ma(e){return ha(e,{ignoreTransform:!0})}function va(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(Ol(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Fl(o)||kl(o))return n;if(n.includes(o))return n;const i=Al(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=Al(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=Al(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function ga(e){const[t]=va(e,1);return null!=t?t:null}function ya(e){return _l&&e?El(e)?e:xl(e)?Ol(e)||e===Tl(e).scrollingElement?window:Fl(e)?e:null:null:null}function ba(e){return El(e)?e.scrollX:e.scrollLeft}function Ca(e){return El(e)?e.scrollY:e.scrollTop}function Da(e){return{x:ba(e),y:Ca(e)}}var wa;function Sa(e){return!(!_l||!e)&&e===document.scrollingElement}function _a(e){const t={x:0,y:0},n=Sa(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(wa||(wa={}));const Ea={x:.2,y:.2};function xa(e,t,n,r,o){let{top:i,left:l,right:a,bottom:u}=n;void 0===r&&(r=10),void 0===o&&(o=Ea);const{isTop:s,isBottom:c,isLeft:d,isRight:f}=_a(e),p={x:0,y:0},h={x:0,y:0},m=t.height*o.y,v=t.width*o.x;return!s&&i<=t.top+m?(p.y=wa.Backward,h.y=r*Math.abs((t.top+m-i)/m)):!c&&u>=t.bottom-m&&(p.y=wa.Forward,h.y=r*Math.abs((t.bottom-m-u)/m)),!f&&a>=t.right-v?(p.x=wa.Forward,h.x=r*Math.abs((t.right-v-a)/v)):!d&&l<=t.left+v&&(p.x=wa.Backward,h.x=r*Math.abs((t.left+v-l)/v)),{direction:p,speed:h}}function Aa(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Oa(e){return e.reduce(((e,t)=>Hl(e,Da(t))),ra)}const Fa=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+ba(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+Ca(t)),0)}]];class ka{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=va(t),r=Oa(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of Fa)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),l=r[e]-t;return this.rect[i]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ta{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Ia(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var Ra,Pa,Ma;function za(e){e.preventDefault()}function Ba(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Ra||(Ra={})),(Ma=Pa||(Pa={})).Space="Space",Ma.Down="ArrowDown",Ma.Right="ArrowRight",Ma.Left="ArrowLeft",Ma.Up="ArrowUp",Ma.Esc="Escape",Ma.Enter="Enter";const La={start:[Pa.Space,Pa.Enter],cancel:[Pa.Esc],end:[Pa.Space,Pa.Enter]},ja=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Pa.Right:return{...n,x:n.x+25};case Pa.Left:return{...n,x:n.x-25};case Pa.Down:return{...n,y:n.y+25};case Pa.Up:return{...n,y:n.y-25}}};class Na{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Ta(Tl(t)),this.windowListeners=new Ta(Al(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ra.Resize,this.handleCancel),this.windowListeners.add(Ra.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Ra.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=ha),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);ga(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(ra)}handleKeyDown(e){if(Gl(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=La,coordinateGetter:i=ja,scrollBehavior:l="smooth"}=r,{code:a}=e;if(o.end.includes(a))return void this.handleEnd(e);if(o.cancel.includes(a))return void this.handleCancel(e);const{collisionRect:u}=n.current,s=u?{x:u.left,y:u.top}:ra;this.referenceCoordinates||(this.referenceCoordinates=s);const c=i(e,{active:t,context:n.current,currentCoordinates:s});if(c){const t=Vl(c,s),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:a,isLeft:u,isBottom:s,maxScroll:d,minScroll:f}=_a(n),p=Aa(n),h={x:Math.min(o===Pa.Right?p.right-p.width/2:p.right,Math.max(o===Pa.Right?p.left:p.left+p.width/2,c.x)),y:Math.min(o===Pa.Down?p.bottom-p.height/2:p.bottom,Math.max(o===Pa.Down?p.top:p.top+p.height/2,c.y))},m=o===Pa.Right&&!a||o===Pa.Left&&!u,v=o===Pa.Down&&!s||o===Pa.Up&&!i;if(m&&h.x!==c.x){const e=n.scrollLeft+t.x,i=o===Pa.Right&&e<=d.x||o===Pa.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});r.x=i?n.scrollLeft-e:o===Pa.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:l});break}if(v&&h.y!==c.y){const e=n.scrollTop+t.y,i=o===Pa.Down&&e<=d.y||o===Pa.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});r.y=i?n.scrollTop-e:o===Pa.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:l});break}}this.handleMove(e,Hl(Vl(c,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Ha(e){return Boolean(e&&"distance"in e)}function Va(e){return Boolean(e&&"delay"in e)}Na.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=La,onActivation:o}=t,{active:i}=n;const{code:l}=e.nativeEvent;if(r.start.includes(l)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class Ga{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=Al(e);return e instanceof t?e:Tl(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=Tl(i),this.documentListeners=new Ta(this.document),this.listeners=new Ta(n),this.windowListeners=new Ta(Al(i)),this.initialCoordinates=null!=(r=Wl(o))?r:ra,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(Ra.Resize,this.handleCancel),this.windowListeners.add(Ra.DragStart,za),this.windowListeners.add(Ra.VisibilityChange,this.handleCancel),this.windowListeners.add(Ra.ContextMenu,za),this.documentListeners.add(Ra.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Va(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(Ha(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Ra.Click,Ba,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ra.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:l}}=o;if(!r)return;const a=null!=(t=Wl(e))?t:ra,u=Vl(r,a);if(!n&&l){if(Ha(l)){if(null!=l.tolerance&&Ia(u,l.tolerance))return this.handleCancel();if(Ia(u,l.distance))return this.handleStart()}return Va(l)&&Ia(u,l.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(a)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===Pa.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Wa={move:{name:"pointermove"},end:{name:"pointerup"}};class Ua extends Ga{constructor(e){const{event:t}=e,n=Tl(t.target);super(e,Wa,n)}}Ua.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const $a={move:{name:"mousemove"},end:{name:"mouseup"}};var qa;!function(e){e[e.RightClick=2]="RightClick"}(qa||(qa={})),class extends Ga{constructor(e){super(e,$a,Tl(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==qa.RightClick&&(null==r||r({event:n}),!0)}}];const Xa={move:{name:"touchmove"},end:{name:"touchend"}};var Ya,Ka;(class extends Ga{constructor(e){super(e,Xa)}static setup(){return window.addEventListener(Xa.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Xa.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Ya||(Ya={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Ka||(Ka={}));const Ja={x:{[wa.Backward]:!1,[wa.Forward]:!1},y:{[wa.Backward]:!1,[wa.Forward]:!1}};var Za,Qa;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Za||(Za={})),function(e){e.Optimized="optimized"}(Qa||(Qa={}));const eu=new Map;function tu(e,t){return Ml((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function nu(e){let{callback:t,disabled:n}=e;const r=Rl(t),o=(0,j.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)}),[n]);return(0,j.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}function ru(e){return new ka(ha(e),e)}function ou(e,t,n){void 0===t&&(t=ru);const[r,o]=(0,j.useReducer)((function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i}),null),i=function(e){let{callback:t,disabled:n}=e;const r=Rl(t),o=(0,j.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)}),[r,n]);return(0,j.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){o();break}}}}),l=nu({callback:o});return Il((()=>{o(),e?(null==l||l.observe(e),null==i||i.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==i||i.disconnect())}),[e]),r}const iu=[];function lu(e,t){void 0===t&&(t=[]);const n=(0,j.useRef)(null);return(0,j.useEffect)((()=>{n.current=null}),t),(0,j.useEffect)((()=>{const t=e!==ra;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?Vl(e,n.current):ra}function au(e){return(0,j.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const uu=[];const su=[{sensor:Ua,options:{}},{sensor:Na,options:{}}],cu={current:{}},du={draggable:{measure:ma},droppable:{measure:ma,strategy:Za.WhileDragging,frequency:Qa.Optimized},dragOverlay:{measure:ha}};class fu extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const pu={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new fu,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:na},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:du,measureDroppableContainers:na,windowRect:null,measuringScheduled:!1},hu={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:na,draggableNodes:new Map,over:null,measureDroppableContainers:na},mu=(0,j.createContext)(hu),vu=(0,j.createContext)(pu);function gu(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new fu}}}function yu(e,t){switch(t.type){case ta.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ta.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case ta.DragEnd:case ta.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ta.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new fu(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case ta.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const l=new fu(e.droppable.containers);return l.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:l}}}case ta.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new fu(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function bu(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=(0,j.useContext)(mu),i=Bl(r),l=Bl(null==n?void 0:n.id);return(0,j.useEffect)((()=>{if(!t&&!r&&i&&null!=l){if(!Gl(i))return;if(document.activeElement===i.target)return;const e=o.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=ql(e);if(t){t.focus();break}}}))}}),[r,t,o,l,i]),null}const Cu=(0,j.createContext)({...ra,scaleX:1,scaleY:1});var Du;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Du||(Du={}));const wu=(0,j.memo)((function(e){var t,n,r,o;let{id:i,accessibility:l,autoScroll:a=!0,children:u,sensors:s=su,collisionDetection:c=sa,measuring:d,modifiers:f,...p}=e;const h=(0,j.useReducer)(yu,void 0,gu),[m,v]=h,[g,y]=function(){const[e]=(0,j.useState)((()=>new Set)),t=(0,j.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]),n=(0,j.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]);return[n,t]}(),[b,C]=(0,j.useState)(Du.Uninitialized),D=b===Du.Initialized,{draggable:{active:w,nodes:S,translate:_},droppable:{containers:E}}=m,x=w?S.get(w):null,A=(0,j.useRef)({initial:null,translated:null}),O=(0,j.useMemo)((()=>{var e;return null!=w?{id:w,data:null!=(e=null==x?void 0:x.data)?e:cu,rect:A}:null}),[w,x]),F=(0,j.useRef)(null),[k,T]=(0,j.useState)(null),[I,R]=(0,j.useState)(null),P=Pl(p,Object.values(p)),M=jl("DndDescribedBy",i),z=(0,j.useMemo)((()=>E.getEnabled()),[E]),B=function(e){return(0,j.useMemo)((()=>({draggable:{...du.draggable,...null==e?void 0:e.draggable},droppable:{...du.droppable,...null==e?void 0:e.droppable},dragOverlay:{...du.dragOverlay,...null==e?void 0:e.dragOverlay}})),[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay])}(d),{droppableRects:L,measureDroppableContainers:H,measuringScheduled:V}=function(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,l]=(0,j.useState)(null),{frequency:a,measure:u,strategy:s}=o,c=(0,j.useRef)(e),d=function(){switch(s){case Za.Always:return!1;case Za.BeforeDragging:return n;default:return!n}}(),f=Pl(d),p=(0,j.useCallback)((function(e){void 0===e&&(e=[]),f.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[f]),h=(0,j.useRef)(null),m=Ml((t=>{if(d&&!n)return eu;if(!t||t===eu||c.current!==e||null!=i){const t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new ka(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,i,n,d,u]);return(0,j.useEffect)((()=>{c.current=e}),[e]),(0,j.useEffect)((()=>{d||p()}),[n,d]),(0,j.useEffect)((()=>{i&&i.length>0&&l(null)}),[JSON.stringify(i)]),(0,j.useEffect)((()=>{d||"number"!=typeof a||null!==h.current||(h.current=setTimeout((()=>{p(),h.current=null}),a))}),[a,d,p,...r]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:null!=i}}(z,{dragging:D,dependencies:[_.x,_.y],config:B.droppable}),G=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return Ml((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(S,w),W=(0,j.useMemo)((()=>I?Wl(I):null),[I]),U=function(){const e=!1===(null==k?void 0:k.autoScrollEnabled),t="object"==typeof a?!1===a.enabled:!1===a,n=D&&!e&&!t;return"object"==typeof a?{...a,enabled:n}:{enabled:n}}(),$=function(e,t){return tu(e,t)}(G,B.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=(0,j.useRef)(!1),{x:l,y:a}="boolean"==typeof o?{x:o,y:o}:o;Il((()=>{if(!l&&!a||!t)return void(i.current=!1);if(i.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=ca(n(e),r);if(l||(o.x=0),a||(o.y=0),i.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=ga(e);t&&t.scrollBy({top:o.y,left:o.x})}}),[t,l,a,r,n])}({activeNode:w?S.get(w):null,config:U.layoutShiftCompensation,initialRect:$,measure:B.draggable.measure});const q=ou(G,B.draggable.measure,$),X=ou(G?G.parentElement:null),Y=(0,j.useRef)({activatorEvent:null,active:null,activeNode:G,collisionRect:null,collisions:null,droppableRects:L,draggableNodes:S,draggingNode:null,draggingNodeRect:null,droppableContainers:E,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),K=E.getNodeFor(null==(t=Y.current.over)?void 0:t.id),J=function(e){let{measure:t}=e;const[n,r]=(0,j.useState)(null),o=nu({callback:(0,j.useCallback)((e=>{for(const{target:n}of e)if(Fl(n)){r((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),i=(0,j.useCallback)((e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Fl(t)?t:e}(e);null==o||o.disconnect(),n&&(null==o||o.observe(n)),r(n?t(n):null)}),[t,o]),[l,a]=zl(i);return(0,j.useMemo)((()=>({nodeRef:l,rect:n,setRef:a})),[n,l,a])}({measure:B.dragOverlay.measure}),Z=null!=(n=J.nodeRef.current)?n:G,Q=D?null!=(r=J.rect)?r:q:null,ee=Boolean(J.nodeRef.current&&J.rect),te=ca(ne=ee?null:q,tu(ne));var ne;const re=au(Z?Al(Z):null),oe=function(e){const t=(0,j.useRef)(e),n=Ml((n=>e?n&&n!==iu&&e&&t.current&&e.parentNode===t.current.parentNode?n:va(e):iu),[e]);return(0,j.useEffect)((()=>{t.current=e}),[e]),n}(D?null!=K?K:G:null),ie=function(e,t){void 0===t&&(t=ha);const[n]=e,r=au(n?Al(n):null),[o,i]=(0,j.useReducer)((function(){return e.length?e.map((e=>Sa(e)?r:new ka(t(e),e))):uu}),uu),l=nu({callback:i});return e.length>0&&o===uu&&i(),Il((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),i())}),[e]),o}(oe),le=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}(f,{transform:{x:_.x-te.x,y:_.y-te.y,scaleX:1,scaleY:1},activatorEvent:I,active:O,activeNodeRect:q,containerNodeRect:X,draggingNodeRect:Q,over:Y.current.over,overlayNodeRect:J.rect,scrollableAncestors:oe,scrollableAncestorRects:ie,windowRect:re}),ae=W?Hl(W,_):null,ue=function(e){const[t,n]=(0,j.useState)(null),r=(0,j.useRef)(e),o=(0,j.useCallback)((e=>{const t=ya(e.target);t&&n((e=>e?(e.set(t,Da(t)),new Map(e)):null))}),[]);return(0,j.useEffect)((()=>{const t=r.current;if(e!==t){i(t);const l=e.map((e=>{const t=ya(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,Da(t)]):null})).filter((e=>null!=e));n(l.length?new Map(l):null),r.current=e}return()=>{i(e),i(t)};function i(e){e.forEach((e=>{const t=ya(e);null==t||t.removeEventListener("scroll",o)}))}}),[o,e]),(0,j.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>Hl(e,t)),ra):Oa(e):ra),[e,t])}(oe),se=lu(ue),ce=lu(ue,[q]),de=Hl(le,se),fe=Q?fa(Q,le):null,pe=O&&fe?c({active:O,collisionRect:fe,droppableRects:L,droppableContainers:z,pointerCoordinates:ae}):null,he=function(e,t){if(!e||0===e.length)return null;const[n]=e;return n.id}(pe),[me,ve]=(0,j.useState)(null),ge=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ee?le:Hl(le,ce),null!=(o=null==me?void 0:me.rect)?o:null,q),ye=(0,j.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==F.current)return;const o=S.get(F.current);if(!o)return;const i=e.nativeEvent,l=new n({active:F.current,activeNode:o,event:i,options:r,context:Y,onStart(e){const t=F.current;if(null==t)return;const n=S.get(t);if(!n)return;const{onDragStart:r}=P.current,o={active:{id:t,data:n.data,rect:A}};(0,Oe.unstable_batchedUpdates)((()=>{null==r||r(o),C(Du.Initializing),v({type:ta.DragStart,initialCoordinates:e,active:t}),g({type:"onDragStart",event:o})}))},onMove(e){v({type:ta.DragMove,coordinates:e})},onEnd:a(ta.DragEnd),onCancel:a(ta.DragCancel)});function a(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=Y.current;let l=null;if(t&&o){const{cancelDrop:a}=P.current;l={activatorEvent:i,active:t,collisions:n,delta:o,over:r},e===ta.DragEnd&&"function"==typeof a&&await Promise.resolve(a(l))&&(e=ta.DragCancel)}F.current=null,(0,Oe.unstable_batchedUpdates)((()=>{v({type:e}),C(Du.Uninitialized),ve(null),T(null),R(null);const t=e===ta.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=P.current[t];null==e||e(l),g({type:t,event:l})}}))}}(0,Oe.unstable_batchedUpdates)((()=>{T(l),R(e.nativeEvent)}))}),[S]),be=(0,j.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=S.get(r);if(null!==F.current||!i||o.dndKit||o.defaultPrevented)return;const l={active:i};!0===e(n,t.options,l)&&(o.dndKit={capturedBy:t.sensor},F.current=r,ye(n,t))}),[S,ye]),Ce=function(e,t){return(0,j.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(s,be);!function(e){(0,j.useEffect)((()=>{if(!_l)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(s),Il((()=>{q&&b===Du.Initializing&&C(Du.Initialized)}),[q,b]),(0,j.useEffect)((()=>{const{onDragMove:e}=P.current,{active:t,activatorEvent:n,collisions:r,over:o}=Y.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:r,delta:{x:de.x,y:de.y},over:o};(0,Oe.unstable_batchedUpdates)((()=>{null==e||e(i),g({type:"onDragMove",event:i})}))}),[de.x,de.y]),(0,j.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=Y.current;if(!e||null==F.current||!t||!o)return;const{onDragOver:i}=P.current,l=r.get(he),a=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,u={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:a};(0,Oe.unstable_batchedUpdates)((()=>{ve(a),null==i||i(u),g({type:"onDragOver",event:u})}))}),[he]),Il((()=>{Y.current={activatorEvent:I,active:O,activeNode:G,collisionRect:fe,collisions:pe,droppableRects:L,draggableNodes:S,draggingNode:Z,draggingNodeRect:Q,droppableContainers:E,over:me,scrollableAncestors:oe,scrollAdjustedTranslate:de},A.current={initial:Q,translated:fe}}),[O,G,pe,fe,S,Z,Q,L,E,me,oe,de]),function(e){let{acceleration:t,activator:n=Ya.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:l=5,order:a=Ka.TreeOrder,pointerCoordinates:u,scrollableAncestors:s,scrollableAncestorRects:c,delta:d,threshold:f}=e;const p=function(e){let{delta:t,disabled:n}=e;const r=Bl(t);return Ml((e=>{if(n||!r||!e)return Ja;const o=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[wa.Backward]:e.x[wa.Backward]||-1===o,[wa.Forward]:e.x[wa.Forward]||1===o},y:{[wa.Backward]:e.y[wa.Backward]||-1===i,[wa.Forward]:e.y[wa.Forward]||1===i}}}),[n,t,r])}({delta:d,disabled:!i}),[h,m]=function(){const e=(0,j.useRef)(null);return[(0,j.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,j.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),v=(0,j.useRef)({x:0,y:0}),g=(0,j.useRef)({x:0,y:0}),y=(0,j.useMemo)((()=>{switch(n){case Ya.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case Ya.DraggableRect:return o}}),[n,o,u]),b=(0,j.useRef)(null),C=(0,j.useCallback)((()=>{const e=b.current;if(!e)return;const t=v.current.x*g.current.x,n=v.current.y*g.current.y;e.scrollBy(t,n)}),[]),D=(0,j.useMemo)((()=>a===Ka.TreeOrder?[...s].reverse():s),[a,s]);(0,j.useEffect)((()=>{if(i&&s.length&&y){for(const e of D){if(!1===(null==r?void 0:r(e)))continue;const n=s.indexOf(e),o=c[n];if(!o)continue;const{direction:i,speed:a}=xa(e,o,y,t,f);for(const e of["x","y"])p[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return m(),b.current=e,h(C,l),v.current=a,void(g.current=i)}v.current={x:0,y:0},g.current={x:0,y:0},m()}else m()}),[t,C,r,m,i,l,JSON.stringify(y),JSON.stringify(p),h,s,D,c,JSON.stringify(f)])}({...U,delta:_,draggingRect:fe,pointerCoordinates:ae,scrollableAncestors:oe,scrollableAncestorRects:ie});const De=(0,j.useMemo)((()=>({active:O,activeNode:G,activeNodeRect:q,activatorEvent:I,collisions:pe,containerNodeRect:X,dragOverlay:J,draggableNodes:S,droppableContainers:E,droppableRects:L,over:me,measureDroppableContainers:H,scrollableAncestors:oe,scrollableAncestorRects:ie,measuringConfiguration:B,measuringScheduled:V,windowRect:re})),[O,G,q,I,pe,X,J,S,E,L,me,H,oe,ie,B,V,re]),we=(0,j.useMemo)((()=>({activatorEvent:I,activators:Ce,active:O,activeNodeRect:q,ariaDescribedById:{draggable:M},dispatch:v,draggableNodes:S,over:me,measureDroppableContainers:H})),[I,Ce,O,q,v,M,S,me,H]);return N().createElement(Jl.Provider,{value:y},N().createElement(mu.Provider,{value:we},N().createElement(vu.Provider,{value:De},N().createElement(Cu.Provider,{value:ge},u)),N().createElement(bu,{disabled:!1===(null==l?void 0:l.restoreFocus)})),N().createElement(ea,{...l,hiddenTextDescribedById:M}))})),Su=(0,j.createContext)(null),_u="button",Eu="Droppable";const xu="Droppable",Au={timeout:25};const Ou=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:r}=e;return n&&t?function(e,t,n){const r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}(r,n,t):r};function Fu(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function ku(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function Tu(e){return null!==e&&e>=0}const Iu=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=Fu(t,r,n),l=t[o],a=i[o];return a&&l?{x:a.left-l.left,y:a.top-l.top,scaleX:a.width/l.width,scaleY:a.height/l.height}:null},Ru="Sortable",Pu=N().createContext({activeIndex:-1,containerId:Ru,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Iu,disabled:{draggable:!1,droppable:!1}});function Mu(e){let{children:t,id:n,items:r,strategy:o=Iu,disabled:i=!1}=e;const{active:l,dragOverlay:a,droppableRects:u,over:s,measureDroppableContainers:c}=(0,j.useContext)(vu),d=jl(Ru,n),f=Boolean(null!==a.rect),p=(0,j.useMemo)((()=>r.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[r]),h=null!=l,m=l?p.indexOf(l.id):-1,v=s?p.indexOf(s.id):-1,g=(0,j.useRef)(p),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(p,g.current),b=-1!==v&&-1===m||y,C=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(i);Il((()=>{y&&h&&c(p)}),[y,p,h,c]),(0,j.useEffect)((()=>{g.current=p}),[p]);const D=(0,j.useMemo)((()=>({activeIndex:m,containerId:d,disabled:C,disableTransforms:b,items:p,overIndex:v,useDragOverlay:f,sortedRects:ku(p,u),strategy:o})),[m,d,C.draggable,C.droppable,b,p,v,u,f,o]);return N().createElement(Pu.Provider,{value:D},t)}const zu=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Fu(n,r,o).indexOf(t)},Bu=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:l,previousItems:a,previousContainerId:u,transition:s}=e;return!(!s||!r||a!==i&&o===l||!n&&(l===o||t!==u))},Lu={duration:200,easing:"ease"},ju="transform",Nu=Ul.Transition.toString({property:ju,duration:0,easing:"linear"}),Hu={roleDescription:"sortable"};function Vu(e){let{animateLayoutChanges:t=Bu,attributes:n,disabled:r,data:o,getNewIndex:i=zu,id:l,strategy:a,resizeObserverConfig:u,transition:s=Lu}=e;const{items:c,containerId:d,activeIndex:f,disabled:p,disableTransforms:h,sortedRects:m,overIndex:v,useDragOverlay:g,strategy:y}=(0,j.useContext)(Pu),b=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(r,p),C=c.indexOf(l),D=(0,j.useMemo)((()=>({sortable:{containerId:d,index:C,items:c},...o})),[d,o,C,c]),w=(0,j.useMemo)((()=>c.slice(c.indexOf(l))),[c,l]),{rect:S,node:_,isOver:E,setNodeRef:x}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=jl(xu),{active:l,dispatch:a,over:u,measureDroppableContainers:s}=(0,j.useContext)(mu),c=(0,j.useRef)({disabled:n}),d=(0,j.useRef)(!1),f=(0,j.useRef)(null),p=(0,j.useRef)(null),{disabled:h,updateMeasurementsFor:m,timeout:v}={...Au,...o},g=Pl(null!=m?m:r),y=nu({callback:(0,j.useCallback)((()=>{d.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{s(Array.isArray(g.current)?g.current:[g.current]),p.current=null}),v)):d.current=!0}),[v]),disabled:h||!l}),b=(0,j.useCallback)(((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))}),[y]),[C,D]=zl(b),w=Pl(t);return(0,j.useEffect)((()=>{y&&C.current&&(y.disconnect(),d.current=!1,y.observe(C.current))}),[C,y]),Il((()=>(a({type:ta.RegisterDroppable,element:{id:r,key:i,disabled:n,node:C,rect:f,data:w}}),()=>a({type:ta.UnregisterDroppable,key:i,id:r}))),[r]),(0,j.useEffect)((()=>{n!==c.current.disabled&&(a({type:ta.SetDroppableDisabled,id:r,key:i,disabled:n}),c.current.disabled=n)}),[r,i,n,a]),{active:l,rect:f,isOver:(null==u?void 0:u.id)===r,node:C,over:u,setNodeRef:D}}({id:l,data:D,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...u}}),{active:A,activatorEvent:O,activeNodeRect:F,attributes:k,setNodeRef:T,listeners:I,isDragging:R,over:P,setActivatorNodeRef:M,transform:z}=function(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=jl(Eu),{activators:l,activatorEvent:a,active:u,activeNodeRect:s,ariaDescribedById:c,draggableNodes:d,over:f}=(0,j.useContext)(mu),{role:p=_u,roleDescription:h="draggable",tabIndex:m=0}=null!=o?o:{},v=(null==u?void 0:u.id)===t,g=(0,j.useContext)(v?Cu:Su),[y,b]=zl(),[C,D]=zl(),w=function(e,t){return(0,j.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(l,t),S=Pl(n);return Il((()=>(d.set(t,{id:t,key:i,node:y,activatorNode:C,data:S}),()=>{const e=d.get(t);e&&e.key===i&&d.delete(t)})),[d,t]),{active:u,activatorEvent:a,activeNodeRect:s,attributes:(0,j.useMemo)((()=>({role:p,tabIndex:m,"aria-disabled":r,"aria-pressed":!(!v||p!==_u)||void 0,"aria-roledescription":h,"aria-describedby":c.draggable})),[r,p,m,v,h,c.draggable]),isDragging:v,listeners:r?void 0:w,node:y,over:f,setNodeRef:b,setActivatorNodeRef:D,transform:g}}({id:l,data:D,attributes:{...Hu,...n},disabled:b.draggable}),B=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,j.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}(x,T),L=Boolean(A),N=L&&!h&&Tu(f)&&Tu(v),H=!g&&R,V=H&&N?z:null,G=N?null!=V?V:(null!=a?a:y)({rects:m,activeNodeRect:F,activeIndex:f,overIndex:v,index:C}):null,W=Tu(f)&&Tu(v)?i({id:l,items:c,activeIndex:f,overIndex:v}):C,U=null==A?void 0:A.id,$=(0,j.useRef)({activeId:U,items:c,newIndex:W,containerId:d}),q=c!==$.current.items,X=t({active:A,containerId:d,isDragging:R,isSorting:L,id:l,index:C,items:c,newIndex:$.current.newIndex,previousItems:$.current.items,previousContainerId:$.current.containerId,transition:s,wasDragging:null!=$.current.activeId}),Y=function(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,l]=(0,j.useState)(null),a=(0,j.useRef)(n);return Il((()=>{if(!t&&n!==a.current&&r.current){const e=o.current;if(e){const t=ha(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&l(n)}}n!==a.current&&(a.current=n)}),[t,n,r,o]),(0,j.useEffect)((()=>{i&&l(null)}),[i]),i}({disabled:!X,index:C,node:_,rect:S});return(0,j.useEffect)((()=>{L&&$.current.newIndex!==W&&($.current.newIndex=W),d!==$.current.containerId&&($.current.containerId=d),c!==$.current.items&&($.current.items=c)}),[L,W,d,c]),(0,j.useEffect)((()=>{if(U===$.current.activeId)return;if(U&&!$.current.activeId)return void($.current.activeId=U);const e=setTimeout((()=>{$.current.activeId=U}),50);return()=>clearTimeout(e)}),[U]),{active:A,activeIndex:f,attributes:k,data:D,rect:S,index:C,newIndex:W,items:c,isOver:E,isSorting:L,isDragging:R,listeners:I,node:_,overIndex:v,over:P,setNodeRef:B,setActivatorNodeRef:M,setDroppableNodeRef:x,setDraggableNodeRef:T,transform:null!=Y?Y:G,transition:Y||q&&$.current.newIndex===C?Nu:H&&!Gl(O)||!s?void 0:L||X?Ul.Transition.toString({...s,property:ju}):void 0}}function Gu(e){return Gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gu(e)}function Wu(){return Wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wu.apply(this,arguments)}function Uu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uu(Object(n),!0).forEach((function(t){qu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Gu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Gu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Gu(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xu(e){var t=e.value,n=e.onChange,r=Dl;e.isAsync?r=Cl:e.isCreatable&&(r=gl);var o=$u({},e),i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,j.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}(function(e,t){return(0,j.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}(Ua,{activationConstraint:{distance:4}}));return o.isTags&&(o.isMulti=!0,o.components=$u($u({},(null==o?void 0:o.components)||{}),{},{DropdownIndicator:function(){return null},IndicatorSeparator:function(){return null},ClearIndicator:function(){return null},Menu:function(){return null}})),o.isMulti?(o.components=$u($u({},(null==o?void 0:o.components)||{}),{},{MultiValue:function(e){var t=$u($u({},e.innerProps),{},{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}}),n=Vu({id:e.data.value}),r=n.attributes,o=n.listeners,i=n.setNodeRef,l=n.transform,a=n.transition,u={transform:Ul.Translate.toString(l),transition:a};return wp.element.createElement("div",Wu({style:u,ref:i},r,o),wp.element.createElement(di.MultiValue,Wu({},e,{innerProps:t})))}}),wp.element.createElement(wu,{modifiers:[Ou],collisionDetection:aa,sensors:i,onDragEnd:function(e){var r,o,i,l=e.active,a=e.over;if(l.id!==a.id){var u=t.findIndex((function(e){return e.value===l.id})),s=t.findIndex((function(e){return e.value===a.id}));n((r=t,o=u,i=s,function(e,t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(r,0,o)}}(r=[...r],o,i),r))}}},wp.element.createElement(Mu,{items:t&&t.length?t.map((function(e){return e.value})):[]},wp.element.createElement(qr,null,wp.element.createElement(r,Wu({menuPlacement:"auto",className:"lazyblocks-component-select",styles:Sl()},o)))))):wp.element.createElement(qr,null,wp.element.createElement(r,Wu({menuPlacement:"auto",className:"lazyblocks-component-select",styles:Sl()},o)))}function Yu(e){var t=e.tabs,n=e.children;return wp.element.createElement(v.BaseControl,null,wp.element.createElement(v.TabPanel,{tabs:t,className:"lazyblocks-component-tabs"},n))}function Ku(){return{BaseControl:m,BlockSlug:D,Box:w,Copied:_,DocumentTabs:A,IconPicker:un,Modal:cn,Select:Xu,Tabs:Yu}}Pa.Down,Pa.Right,Pa.Up,Pa.Left;var Ju=(0,o.createReduxStore)("lazy-blocks/components",{selectors:t,reducer:function(e){return e}});function Zu(e){return Zu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zu(e)}(0,o.register)(Ju);var Qu=["className"];function es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ts(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Zu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Zu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Zu(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ns(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.className,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Qu),o=u(e.data.type),i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?es(Object(n),!0).forEach((function(t){ts(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({label:!!o.restrictions.label_settings&&e.data.label,help:!!o.restrictions.help_settings&&e.data.help,className:f()("lazyblocks-control lazyblocks-control-".concat(e.data.type),n),"data-lazyblocks-control-name":e.data.name},r);return i}function rs(){return{useBlockControlProps:ns}}var os=(0,o.createReduxStore)("lazy-blocks/hooks",{selectors:r,reducer:function(e){return e}});(0,o.register)(os);const is=window.wp.blocks,ls=window.wp.blockEditor;(0,is.registerBlockType)("lazyblock-core/free",{apiVersion:3,title:(0,S.__)("Free Content","lazy-blocks"),description:(0,S.__)("Block used for adding blocks inside it in cases when template locked from adding blocks.","lazy-blocks"),category:"lazyblocks",supports:{html:!0,customClassName:!1,inserter:window.pagenow&&"lazyblocks_templates"===window.pagenow},edit:function(e){var t=e.clientId,n=(0,o.useSelect)((function(e){return{hasChildBlocks:(0,e("core/block-editor").getBlockOrder)(t).length>0}}),[t]).hasChildBlocks,r=(0,ls.useBlockProps)({className:"lazyblocks-free"}),i=(0,ls.useInnerBlocksProps)(r,{templateLock:null,renderAppender:n?void 0:ls.InnerBlocks.ButtonBlockAppender});return wp.element.createElement("div",i)},save:function(){return ls.useInnerBlocksProps.save().children}});const as=window.wp.coreData,us=window.wp.compose,ss=window.lodash,cs=window.wp.hooks,ds=window.wp.apiFetch;var fs=n.n(ds),ps=n(488),hs=ps.domToReact;ps.htmlToDOM,ps.attributesToProps,ps.Comment,ps.Element,ps.ProcessingInstruction,ps.Text;const ms=ps;var vs=n(1142),gs=n.n(vs);function ys(e){return ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ys(e)}function bs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cs(Object(n),!0).forEach((function(t){ws(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ws(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ys(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ys(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ys(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ss={classname:"className",allowedblocks:"allowedBlocks",templatelock:"templateLock",prioritizedinserterblocks:"prioritizedInserterBlocks"},_s=["allowedBlocks","template","prioritizedInserterBlocks"];function Es(e){var t=e.src,n=void 0===t?"":t,r=e.innerHTML,o=void 0===r?"":r,i=e.blockContentWrapper;(0,Kt.useEffect)((function(){var e,t,r=(null===(e=i.current)||void 0===e?void 0:e.ownerDocument)||document,l=r.createElement("script");return n&&(l.src=n),o&&(l.innerHTML=o),null==r||null===(t=r.body)||void 0===t||t.appendChild(l),function(){var e;null==r||null===(e=r.body)||void 0===e||e.removeChild(l)}}),[i,n,o])}function xs(e){var t,n,r=e.content,i=e.props,l=e.blockContentWrapper,a=(t=(0,Kt.useState)({}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,_x,i,l=[],_n=!0,a=!1;try{if(_x=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;_n=!1}else for(;!(_n=(r=_x.call(n)).done)&&(l.push(r.value),l.length!==t);_n=!0);}catch(e){a=!0,o=e}finally{try{if(!_n&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(a)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return bs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bs(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=a[0],s=a[1],c=(0,o.useSelect)((function(e){var t=e("core/block-editor");return{hasChildBlocks:!!t&&t.getBlockOrder(i.clientId).length>0}}),[i.clientId]).hasChildBlocks,d=(0,ls.useInnerBlocksProps)({className:u.className||"lazyblock-inner-blocks"},Ds(Ds({},u),{},{renderAppender:c?void 0:ls.InnerBlocks.ButtonBlockAppender}));return function(e){var t=!1,n={replace:function(e){if("InnerBlocks"===e.name||"innerblocks"===e.name){if(t)return console.warn((0,S.sprintf)(
// Translators: %s - block slug.
(0,S.__)('Only a single <InnerBlocks /> component can be used per block. Multiple <InnerBlocks /> found inside block "%s".',"lazy-blocks"),i.block)),wp.element.createElement("div",null);t=!0;var r=Ds(Ds({},u),(o=e.attribs,a=Ds({},o),Object.keys(Ss).forEach((function(e){var t=Ss[e];void 0!==a[e]&&delete Object.assign(a,ws({},t,a[e]))[e]})),_s.forEach((function(e){if("string"==typeof a[e]){var t=a[e].charAt(0);if("["===t||"{"===t)try{a[e]=gs().parse(a[e])}catch(t){delete a[e]}else delete a[e]}})),Object.keys(a).forEach((function(e){"false"===a[e]?a[e]=!1:"true"===a[e]&&(a[e]=!0)})),a));return(0,ss.isEqual)(r,u)||s(r),e.children&&e.children.length?wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("div",d),hs(e.children,n)):wp.element.createElement("div",d)}var o,a;if("script"===e.type){var c,f,p={};return null!=e&&null!==(c=e.attribs)&&void 0!==c&&c.src&&(p.src=e.attribs.src),null!=e&&null!==(f=e.children[0])&&void 0!==f&&f.data&&(p.innerHTML=e.children[0].data),void 0!==l&&(p.blockContentWrapper=l),wp.element.createElement(Es,p)}}};return ms(e,n)}(r)}function As(e){return As="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},As(e)}function Os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==As(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==As(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o),"symbol"===As(i)?i:String(i)),r)}var o,i}function Fs(e){return Fs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fs(e)}function ks(e,t){return ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ks(e,t)}const Ts=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Fs(t),function(e,t){if(t&&("object"===As(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}()?Reflect.construct(t,n||[],Fs(e).constructor):t.apply(e,n))}(this,t,[e])).state={hasError:!1},n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ks(e,t)}(t,e),n=t,o=[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}],(r=[{key:"componentDidCatch",value:function(){}},{key:"render",value:function(){return this.state.hasError?wp.element.createElement("div",{style:{margin:"16px"}},(0,S.__)("Error: Could not generate the preview.","lazy-blocks")):this.props.children}}])&&Os(n.prototype,r),o&&Os(n,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(Kt.Component);function Is(e){return Is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Is(e)}function Rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(n),!0).forEach((function(t){Ms(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ms(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Is(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Is(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Is(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,_x,i,l=[],_n=!0,a=!1;try{if(_x=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;_n=!1}else for(;!(_n=(r=_x.call(n)).done)&&(l.push(r.value),l.length!==t);_n=!0);}catch(e){a=!0,o=e}finally{try{if(!_n&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(a)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bs(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ls(e){var t=e.block,n=e.attributes,r=void 0===n?null:n,i=e.urlQueryArgs,l=void 0===i?{}:i,a=e.onBeforeChange,u=void 0===a?function(){}:a,s=e.onChange,c=void 0===s?function(){}:s,d=zs((0,Kt.useState)(null),2),f=d[0],p=d[1],h=zs((0,Kt.useState)(0),2),m=h[0],g=h[1],y=zs((0,Kt.useState)(!1),2),b=y[0],C=y[1],D=zs((0,Kt.useState)(!0),2),w=D[0],_=D[1],E=(0,Kt.useRef)(!0),x=(0,Kt.useRef)(null),A=(0,Kt.useRef)(),O=(0,Kt.useRef)(),F=(0,us.usePrevious)(e),k=(0,o.useSelect)((function(e){var t=(e("core/editor")||{}).getCurrentPostId;return{postId:t?t():0}}),[]).postId;function T(e){p(e),g(m+1)}function I(){if(E.current){C(!0);var n=fs()({path:"lazy-blocks/v1/block-render",method:"POST",data:Ps(Ps({context:"editor",name:t,post_id:k||0},null!==r?{attributes:r}:{}),l)}).then((function(t){E.current&&(n===x.current&&(u(),(0,cs.doAction)("lzb.components.PreviewServerCallback.onBeforeChange",e),(0,cs.doAction)("lazyblocks.components.PreviewServerCallback.onBeforeChange",e),t&&t.success?T(t.response):t&&!t.success&&t.error_code&&("lazy_block_invalid"===t.error_code?T(null):"lazy_block_no_render_callback"===t.error_code&&(T(null),_(!1)))),C(!1))})).catch((function(t){E.current&&(n===x.current&&(u(),(0,cs.doAction)("lzb.components.PreviewServerCallback.onBeforeChange",e),(0,cs.doAction)("lazyblocks.components.PreviewServerCallback.onBeforeChange",e),T({error:!0,response:t})),C(!1))}));x.current=n}}var R=function(){clearTimeout(A.current),A.current=setTimeout((function(){I()}),500)};(0,Kt.useEffect)((function(){return function(){E.current=!1}}),[]),(0,Kt.useEffect)((function(){w&&(0,cs.applyFilters)("lzb.components.PreviewServerCallback.allowFetch",!0,{props:e,prevProps:F,response:f,setResponse:T,isLoading:b,setIsLoading:C,allowRender:w,setAllowRender:_,isMountedRef:E,currentFetchRequest:x,postId:k,fetchData:I,debouncedFetchData:R})&&(void 0===F?I():(0,ss.isEqual)(F.attributes,e.attributes)||R())})),(0,Kt.useEffect)((function(){m&&(c(),(0,cs.doAction)("lzb.components.PreviewServerCallback.onChange",e),(0,cs.doAction)("lazyblocks.components.PreviewServerCallback.onChange",e))}),[c,m,e]);var P="";return P=w?f&&f.error?(0,S.sprintf)(
// Translators: %s - error text.
(0,S.__)("Error loading block preview: %s","lazy-blocks"),f.response.message||f.response.code||f.response):wp.element.createElement(wp.element.Fragment,null,f?wp.element.createElement(xs,{content:f,props:e,blockContentWrapper:O}):null,b?wp.element.createElement(v.Spinner,null):null):"",wp.element.createElement("div",{ref:O,className:"lzb-preview-server"},wp.element.createElement(Ts,{key:f},P))}function js(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=e[r.name];if("true"===r.save_in_meta&&(i=t[r.save_in_meta_name||r.name]),r.child_of&&n.controls[r.child_of]&&o>-1){var l=js(e,t,n,n.controls[r.child_of]);l&&void 0!==l[o]&&void 0!==l[o][r.name]&&(i=l[o][r.name])}return i=(0,cs.applyFilters)("lzb.editor.control.".concat(r.type,".getValue"),i,r,o),void 0===(i=(0,cs.applyFilters)("lzb.editor.control.getValue",i,r,o))&&(i=""),i}function Ns(e,t){var n=!1,r=u(t.type);if(r&&r.restrictions.required_settings&&t.required&&"true"===t.required){var o=""!==e&&void 0!==e,i=(0,cs.applyFilters)("lzb.editor.control.validate",(0,cs.applyFilters)("lzb.editor.control.".concat(t.type,".validate"),{valid:o,message:""},e,t),e,t),l=i.valid,a=i.message;l||(n=a||(0,S.__)("This field is required.","lazy-blocks"))}return n}function Hs(e){return Hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hs(e)}function Vs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vs(Object(n),!0).forEach((function(t){Ws(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ws(e,t,n){return(t=$s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Us(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$s(r.key),r)}}function $s(e){var t=function(e,t){if("object"!==Hs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Hs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Hs(t)?t:String(t)}function qs(e){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qs(e)}function Xs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ys(e,t){return Ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ys(e,t)}var Ks=window.lazyblocksGutenberg;Ks&&Ks.blocks&&Ks.blocks.length||(Ks={post_type:"post",blocks:[],controls:{}});var Js=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=function(e,t,n){return t=qs(t),function(e,t){if(t&&("object"===Hs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xs(e)}(e,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}()?Reflect.construct(t,n||[],qs(e).constructor):t.apply(e,n))}(this,t,[].concat(r))).onControlChange=e.onControlChange.bind(Xs(e)),e.getControls=e.getControls.bind(Xs(e)),e.renderControl=e.renderControl.bind(Xs(e)),e.renderControls=e.renderControls.bind(Xs(e)),e}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ys(e,t)}(t,e),n=t,r=[{key:"onControlChange",value:function(e,t,n){var r=this.props,o=r.lazyBlockData,i=r.attributes,l=r.setAttributes,a=r.meta,u=r.setMeta,s=t.name;if(t.child_of&&o.controls[t.child_of]&&n>-1){var c=js(i,a,o,o.controls[t.child_of]);c&&void 0!==c[n]&&(c[n][t.name]=e,e=c),s=(t=o.controls[t.child_of]).name}e=(0,cs.applyFilters)("lzb.editor.control.".concat(t.type,".updateValue"),e,t,n),e=(0,cs.applyFilters)("lzb.editor.control.updateValue",e,t,n),"true"===t.save_in_meta?u(Gs(Gs({},a),{},Ws({},t.save_in_meta_name||s,e))):l(Ws({},s,e))}},{key:"getControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.lazyBlockData,n={};return Object.keys(t.controls).forEach((function(r){var o=t.controls[r],i=u(o.type);i&&i.attributes&&(o=Gs(Gs({},(0,ss.cloneDeep)(i.attributes)),o)),(!e&&!o.child_of||e&&o.child_of===e)&&(n[r]=o)})),n}},{key:"renderControls",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[],i=this.getControls(n);return Object.keys(i).forEach((function(n){var l=i[n],a=t.renderControl(l,e,n,r);a&&o.push(a)})),"inspector"===e&&o.length&&(o=wp.element.createElement(v.PanelBody,null,o)),o=(0,cs.applyFilters)("lzb.editor.controls.render",o,{placement:e,childOf:n,childIndex:r,getControls:this.getControls,renderControl:this.renderControl})}},{key:"renderControl",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.props,l=i.lazyBlockData,a=i.isLazyBlockSelected,s=i.attributes,c=i.meta,d=!1,f=e.type&&"nowhere"!==e.placement&&("both"===e.placement||e.placement===t),p=e.label,h=u(e.type);if(h&&h.restrictions&&(f&&h.restrictions.placement_settings&&(f=h.restrictions.placement_settings.indexOf(t)>-1),f&&"content"===t&&("content"===e.placement||"both"===e.placement)&&h.restrictions.hide_if_not_selected_settings&&e.hide_if_not_selected&&"true"===e.hide_if_not_selected&&(f=a),h.restrictions.required_settings&&e.required&&"true"===e.required&&(p="".concat(p||"",' <span class="required">*</span>'))),e.child_of||f){var m={data:Gs(Gs({},e),{},{help:!!e.help&&wp.element.createElement(Kt.RawHTML,null,e.help),label:!!p&&wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:p}})}),placement:t,childIndex:o,uniqueId:n,getValue:function(){return js(s,c,l,arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:o)},onChange:function(t){r.onControlChange(t,e,o)},getControls:this.getControls,renderControls:this.renderControls},g=(0,cs.applyFilters)("lzb.editor.control.".concat(e.type,".render"),"",m,this.props);if(g&&(g=(0,cs.applyFilters)("lzb.editor.control.render",g,m,this.props)),g){var y="",b=Ns(m.getValue(),e);b&&(y=wp.element.createElement(v.Notice,{key:"notice-".concat(e.name),status:"warning",isDismissible:!1,className:"lzb-constructor-notice"},b)),d="inspector"===t?wp.element.createElement(Kt.Fragment,{key:"control-".concat(n)},g,y):wp.element.createElement("div",{key:"control-".concat(n),style:{width:e.width?"".concat(e.width,"%"):""}},g,y)}}return d}},{key:"render",value:function(){return this.renderControls(this.props.placement)}}],r&&Us(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Kt.Component);function Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zs.apply(this,arguments)}function Qs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ec=window.lazyblocksGutenberg;function tc(e){var t,n,r=e.lazyBlockData,i=e.clientId,l=e.isSelected,a=e.attributes,u=(0,Kt.useRef)(!0),s=(0,Kt.useRef)(!0),c=(0,o.useSelect)((function(e){var t=e("core/block-editor").hasSelectedInnerBlock,n=(e("core/editor")||{}).getCurrentPostType;return{innerBlockSelected:t(i,!0),postType:n&&n()}}),[i]),d=c.innerBlockSelected,p=c.postType,h=(t=(0,as.useEntityProp)("postType",p,"meta"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,_x,i,l=[],_n=!0,a=!1;try{if(_x=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;_n=!1}else for(;!(_n=(r=_x.call(n)).done)&&(l.push(r.value),l.length!==t);_n=!0);}catch(e){a=!0,o=e}finally{try{if(!_n&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(a)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Qs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qs(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=h[0],g=h[1],y=l||d,b=(0,o.useDispatch)("core/editor")||{},C=b.lockPostSaving,D=b.unlockPostSaving;function w(){D&&D("lazyblock-".concat(i))}function _(){var e=0,t=!1;s.current&&(Object.keys(r.controls).forEach((function(n){var o=r.controls[n];if(o.required&&"true"===o.required)if(t=!0,o.child_of){if(r.controls[o.child_of]){var i=js(a,m,r,r.controls[o.child_of]);i&&i.length&&i.forEach((function(t,n){Ns(js(a,m,r,o,n),o)&&(e+=1)}))}}else Ns(js(a,m,r,o),o)&&(e+=1)})),t&&(e>0?C&&C("lazyblock-".concat(i)):w()))}var E=(0,us.useThrottle)(_,500);(0,Kt.useEffect)((function(){u.current||E()}),[a,E]),(0,Kt.useEffect)((function(){return u.current=!1,_(),function(){s.current=!1,w()}}),[]);var x=a.blockUniqueClass,A=void 0===x?"":x,O=f()("lazyblock",A),F={};Object.keys(r.controls).forEach((function(e){r.controls[e].child_of||(F[r.controls[e].name]=js(a,m,r,r.controls[e]))})),["lazyblock","className","align","anchor","blockId","blockUniqueClass"].forEach((function(e){F[e]=a[e]}));var k=!0;switch(r.code.show_preview){case"selected":k=y;break;case"unselected":k=!y;break;case"never":k=!1}return wp.element.createElement("div",(0,ls.useBlockProps)({className:O}),wp.element.createElement("div",{className:"lzb-content-title"},r.icon&&/^dashicons/.test(r.icon)?wp.element.createElement("span",{className:r.icon}):null,r.icon&&!/^dashicons/.test(r.icon)?wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:r.icon}}):null,wp.element.createElement("h6",null,r.title)),wp.element.createElement(ls.InspectorControls,null,wp.element.createElement("div",{className:"lzb-inspector-controls","data-lazyblocks-block-name":e.name},wp.element.createElement(Js,Zs({placement:"inspector",isLazyBlockSelected:y,meta:m,setMeta:function(){p&&g.apply(void 0,arguments)}},e)))),r.edit_url?wp.element.createElement(ls.BlockControls,{group:"other"},wp.element.createElement(v.ToolbarButton,{icon:wp.element.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2894 4.8356C10.3698 4.35341 10.787 4 11.2758 4H12.5816C13.0704 4 13.4876 4.35341 13.5679 4.8356L13.8083 6.27728C14.6162 6.53233 15.3503 6.95375 15.9703 7.50134L17.3131 6.99826C17.7709 6.82676 18.2856 7.01136 18.53 7.4347L19.1829 8.56551C19.4273 8.98886 19.3298 9.52686 18.9524 9.83755L17.8658 10.7321C17.9537 11.1408 18 11.565 18 12C18 12.4348 17.9537 12.8588 17.8659 13.2674L18.9534 14.1627C19.3308 14.4734 19.4283 15.0114 19.1839 15.4347L18.531 16.5655C18.2866 16.9889 17.7719 17.1735 17.3142 17.002L15.9704 16.4986C15.3503 17.0462 14.6162 17.4677 13.8083 17.7227L13.5679 19.1644C13.4876 19.6466 13.0704 20 12.5816 20H11.2758C10.787 20 10.3698 19.6466 10.2894 19.1644L10.0408 17.6729C9.27409 17.4081 8.57776 16.9923 7.98745 16.461L6.5433 17.002C6.08553 17.1735 5.57087 16.9889 5.32645 16.5655L4.67358 15.4347C4.42916 15.0114 4.52663 14.4734 4.90404 14.1627L6.11343 13.1671C6.03901 12.7896 6 12.3993 6 12C6 11.6005 6.03905 11.2101 6.11353 10.8325L4.90501 9.83755C4.52761 9.52686 4.43014 8.98886 4.67456 8.56551L5.32743 7.4347C5.57185 7.01136 6.08651 6.82676 6.54428 6.99826L7.98755 7.53896C8.57784 7.00768 9.27413 6.59188 10.0408 6.32714L10.2894 4.8356ZM15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6569 9 15 10.3431 15 12Z",fill:"currentColor"})),label:(0,S.__)("Edit Block","@@text_domain"),href:r.edit_url.replace("&amp;","&"),target:"_blank",rel:"noopener noreferrer"})):null,wp.element.createElement("div",{className:"lzb-content-controls","data-lazyblocks-block-name":e.name},wp.element.createElement(Js,Zs({placement:"content",isLazyBlockSelected:y,meta:m,setMeta:function(){p&&g.apply(void 0,arguments)}},e))),k?wp.element.createElement(Ls,{block:r.slug,clientId:i,attributes:F}):null)}function nc(){return ls.useInnerBlocksProps.save().children}function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rc.apply(this,arguments)}ec&&ec.blocks&&ec.blocks.length||(ec={post_type:"post",blocks:[],controls:{}});var oc=window.lazyblocksGutenberg;oc&&oc.blocks&&oc.blocks.length||(oc={blocks:[],controls:{}}),oc.blocks.forEach((function(e){var t;if(e.supports.inserter&&null!=e&&null!==(t=e.condition)&&void 0!==t&&t.length){var n=!1;e.condition.forEach((function(e){window.pagenow&&e===window.pagenow&&(n=!0)})),e.supports.inserter=n}var r="";e.icon&&/^dashicons/.test(e.icon)?r=e.icon.replace(/^dashicons dashicons-/,"")||"marker":e.icon&&(r=wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:e.icon}})),(0,is.registerBlockType)(e.slug,{apiVersion:3,title:e.title||e.slug,description:e.description,icon:r,category:e.category,keywords:e.keywords,supports:e.supports,lazyblock:!0,edit:function(t){return wp.element.createElement(tc,rc({},t,{lazyBlockData:e}))},save:nc})}));var ic=n(9835);function lc(e){return function(e){if(Array.isArray(e))return ac(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ac(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ac(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ac(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var uc=(0,us.createHigherOrderComponent)((function(e){return function(t){return function(e){var t=e.setAttributes,n=e.attributes,r=e.clientId,i=e.name,l=(0,is.getBlockType)(i),a=(0,Kt.useRef)(!1),u=(0,o.useSelect)((function(e){return e("core/block-editor")})).getBlocks,s=(0,Kt.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[];return e||(e=u()),e?(e.forEach((function(e){t.push(e),e.innerBlocks&&e.innerBlocks.length&&(t=[].concat(lc(t),lc(s(e.innerBlocks))))})),t):t}),[u]),c=(0,Kt.useCallback)((function(e){var o=n.blockId;if(!o||e){var l={};if(e&&s().forEach((function(e){e.clientId&&e.attributes&&e.attributes.blockId&&(l[e.attributes.blockId]=e.clientId,e.clientId!==r&&e.attributes.blockId===o&&(o=""))})),r&&!o&&void 0!==o){for(var a=o||"",u=10;!a||void 0!==l[a]&&l[a]!==r&&u>0;)a=ic.unique(r),u-=1;if(a&&void 0===l[a]&&(l[a]=r),a!==o){var c="".concat(i.replace("/","-"),"-").concat(a);t({blockId:a,blockUniqueClass:c})}}}}),[n,r,s,i,t]),d=(0,us.useThrottle)(c,60);(0,Kt.useEffect)((function(){l.lazyblock&&(a.current?d():(a.current=!0,c(!0)))}),[l,n,c,d])}(t),wp.element.createElement(e,t)}}),"withBlockId");(0,cs.addFilter)("editor.BlockEdit","lazyblocks/blockId",uc)})()})();