Gallery Custom Links - Version 2.1.1

Version Description

(2022/07/27) = * Fix: Faster UI. * Fix: Increased compatibility.

Download this release

Release Info

Developer TigrouMeow
Plugin Icon 128x128 Gallery Custom Links
Version 2.1.1
Comparing to
See all releases

Code changes from version 2.1.0 to 2.1.1

Files changed (3) hide show
  1. app/index.js +1 -1
  2. app/index.js.map +1 -1
  3. app/vendor.js +4 -4
app/index.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e){function n(n){for(var r,i,l=n[0],c=n[1],u=n[2],d=0,f=[];d<l.length;d++)i=l[d],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&f.push(a[i][0]),a[i]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);for(s&&s(n);f.length;)f.shift()();return o.push.apply(o,u||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],r=!0,l=1;l<t.length;l++){var c=t[l];0!==a[c]&&(r=!1)}r&&(o.splice(n--,1),e=i(i.s=t[0]))}return e}var r={},a={0:0},o=[];function i(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=e,i.c=r,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)i.d(t,r,function(n){return e[n]}.bind(null,r));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="";var l=window.wpJsonMgcl=window.wpJsonMgcl||[],c=l.push.bind(l);l.push=n,l=l.slice();for(var u=0;u<l.length;u++)n(l[u]);var s=c;o.push([99,1]),t()}({0:function(e,n){e.exports=React},9:function(e,n){e.exports=ReactDOM},99:function(e,n,t){"use strict";t.r(n);var r=t(0),a=t.n(r),o=t(9),i=t.n(o),l=t(79),c=t(1),u=t.n(c);function s(){return(s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){p(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function p(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return b(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return b(e,n)}(e,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.")}()}function b(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var g=function(e){var n=e.spinner,t=void 0===n||n,o=e.busy,i=void 0!==o&&o,l=e.overlayStyle,c=m(Object(r.useState)(!0),2),u=c[0],d=c[1];Object(r.useEffect)((function(){var e;return i?d(!0):e=setTimeout((function(){d(!1),e=null}),250),function(){e&&clearTimeout(e)}}),[i]);var p=u?a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"overlay "+(i?"":"overlayHidden"),style:l},Boolean(t)&&a.a.createElement("div",{className:"lds-ellipsis "+(i?"":"spinnerHidden")},a.a.createElement("div",null),a.a.createElement("div",null),a.a.createElement("div",null),a.a.createElement("div",null))),a.a.createElement("style",{jsx:!0},"\n .overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgb(30 124 186 / 85%);\n transition: opacity 1s ease-out;\n z-index: 10;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n }\n\n .overlayHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .spinnerHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .lds-ellipsis {\n position: relative;\n width: 80px;\n height: 80px;\n display: flex;\n justify-items: center;\n align-items: center;\n }\n .lds-ellipsis div {\n position: absolute;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: white;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n .lds-ellipsis div:nth-child(1) {\n left: 8px;\n animation: lds-ellipsis1 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(2) {\n left: 8px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(3) {\n left: 32px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(4) {\n left: 56px;\n animation: lds-ellipsis3 0.6s infinite;\n }\n @keyframes lds-ellipsis1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n }\n @keyframes lds-ellipsis3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n }\n @keyframes lds-ellipsis2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n } \n ")):null,b=f(f({},e),{},{busy:void 0,spinner:void 0});return a.a.createElement("div",s({style:{position:"relative"}},b),p,e.children)};g.propTypes={busy:u.a.bool.isRequired,spinner:u.a.bool,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]).isRequired};var h=g,y=t(2),v=t(4);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){k(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function k(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var E,j={black:"#000000",blackRGB:"0, 0, 0",blue:"#007cba",blueRGB:"0, 124, 186",deepBlue:"#134575",finderBorder:"#DEDEDE",lightBlue:"#EBF3FF",lightGray:"#cacaca",lightGray2:"#F5F5F5",lightPurple:"#D8B1FF",gray:"#E8E8E8",green:"#0EA480",darkGray:"#A0A0A0",disabledForm:"#828282",orange:"#daa827",overlay:"rgba(16, 16, 16, 0.92)",red:"#ba4300",redHighlight:"#de5307",header:"#007cba",proGray:"#7F8EA0",progress:"#8414a8",purple:"#956DBE",tableGray:"#FAFAFA",yellow:"#e4b42b",yellowRGB:"224, 156, 54",white:"#ffffff",whiteRGB:"255, 255, 255"},S={danger:j.red,primary:j.blue,secondary:j.lightBlue,success:j.green},C=O(O(O({},j),S),{},{fontFamily:"Lato",fontSizeH1:"24px",fontSizeH2:"18px",fontSizeText:"13px",fontSizeSmall:"12px",fontSizeSmallButton:"10px",lightShadow:"0px 0px 10px rgba(0,0,0,0.1)"}),P=t(3),N=t(31),A=t.n(N),z=t(32),R=t.n(z),I=t(33),T=t.n(I),_=t(10),D=t.n(_),B=t(11),L=t.n(B),F=t(12),M=t.n(F),U=t(6),G=t.n(U),q=t(5),H=t.n(q),$=t(7),K=t.n($),W=t(13),J=t.n(W),V=t(14),Z=t.n(V),X=t(34),Y=t.n(X),Q=t(35),ee=t.n(Q),ne=t(15),te=t.n(ne),re=t(36),ae=t.n(re),oe=t(37),ie=t.n(oe),le=t(38),ce=t.n(le),ue=t(39),se=t.n(ue),de=(t(82),t(40)),fe=t.n(de),pe=t(41),me=t.n(pe),be=t(42),ge=t.n(be),he=t(43),ye=t.n(he),ve=t(44),xe=t.n(ve),we=t(45),Oe=t.n(we),ke=t(46),Ee=t.n(ke),je=t(47),Se=t.n(je),Ce=t(8),Pe=t.n(Ce),Ne=t(16),Ae=t.n(Ne),ze=t(17),Re=t.n(ze),Ie=t(48),Te=t.n(Ie),_e=t(49),De=t.n(_e),Be=t(50),Le=t.n(Be),Fe=t(51),Me=t.n(Fe),Ue=t(52),Ge=t.n(Ue),qe=t(53),He=t.n(qe),$e=t(54),Ke=t.n($e),We=t(55),Je=t.n(We),Ve=t(56),Ze=t.n(Ve),Xe=t(57),Ye=t.n(Xe),Qe=t(58),en=t.n(Qe),nn=t(59),tn=t.n(nn),rn=t(60),an=t.n(rn),on=t(61),ln=t.n(on),cn=t(62),un=t.n(cn),sn=t(63),dn=t.n(sn),fn=t(64),pn=t.n(fn),mn=t(65),bn=t.n(mn),gn=t(66),hn=t.n(gn),yn=t(67),vn=t.n(yn),xn=t(68),wn=t.n(xn),On={lock:A.a,"lock-open":R.a,"file-undo":T.a,"chevron-double-left":D.a,"chevron-double-right":L.a,"chevron-left":M.a,"chevron-right":G.a,"chevron-down":H.a,"chevron-up":K.a,pause:J.a,play:Z.a,replay:Y.a,check:ee.a,stop:te.a,delete:ae.a,undo:ie.a,alert:ce.a,database:se.a,tools:fe.a,cog:me.a,close:ge.a,cat:ye.a,upload:en.a,trash:xe.a,pencil:Oe.a,dashboard:Ee.a,search:Se.a,folder:Pe.a,"folder-open":Ae.a,"image-multiple-outline":Re.a,plus:Te.a,"folder-plus":De.a,"image-plus":Le.a,"view-grid":Me.a,"format-list-bulleted":Ge.a,twitter:He.a,instagram:Ke.a,facebook:Je.a,star:Ze.a,"timer-outline":Ye.a,link:tn.a,linkedin:an.a,pinterest:ln.a,"zoom-in":un.a,"info-outline":dn.a,"arrow-up":pn.a,"arrow-down":bn.a,sort:hn.a,eye:vn.a,"rocket-launch":wn.a},kn=["type"];function En(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var jn,Sn,Cn=y.a.div(E||(jn=["\n width: ",";\n padding-top: ",";\n position: relative;\n margin: 0 auto;\n\n .double-bounce1, .double-bounce2 {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: ",";\n opacity: 0.6;\n position: absolute;\n top: 0;\n left: 0;\n\n -webkit-animation: sk-bounce 2.0s infinite ease-in-out;\n animation: sk-bounce 2.0s infinite ease-in-out;\n }\n\n .double-bounce2 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s;\n }\n\n @-webkit-keyframes sk-bounce {\n 0%, 100% { -webkit-transform: scale(0.0) }\n 50% { -webkit-transform: scale(1.0) }\n }\n\n @keyframes sk-bounce {\n 0%, 100% {\n transform: scale(0.0);\n -webkit-transform: scale(0.0);\n } 50% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n }\n"],Sn||(Sn=jn.slice(0)),E=Object.freeze(Object.defineProperties(jn,{raw:{value:Object.freeze(Sn)}}))),(function(e){return e.size||"50%"}),(function(e){return e.size||"50%"}),(function(e){return e.color||"#333"})),Pn=function(e){return a.a.createElement(Cn,e,a.a.createElement("div",{className:"double-bounce1"}),a.a.createElement("div",{className:"double-bounce2"}))},Nn=function(e){var n=e.type,t=void 0===n?"circle":n,r=En(e,kn);switch(t){case"circle":return a.a.createElement(Pn,r);default:return null}},An=function(e){return a.a.createElement(Nn,e)};An.propTypes={type:u.a.string},An.defaultProps={type:"circle"};var zn,Rn=["className","icon","onClick","disabled","color","small","isBusy","children","rounded","busyText"];function In(){return(In=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Tn(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var _n=Object(y.a)((function(e){var n=e.className,t=e.icon,r=void 0===t?null:t,o=e.onClick,i=e.disabled,l=void 0!==i&&i,c=e.color,u=void 0===c?null:c,s=e.small,d=e.isBusy,f=void 0!==d&&d,p=e.children,m=e.rounded,b=e.busyText,g=Tn(e,Rn),h=!!r,y="nui-button ".concat(n||"").concat(h?" has-icon":"").concat(u?" custom-color":"").concat(s?" small":"").concat(m?" rounded":"");return a.a.createElement("button",In({type:"button",className:y,onClick:o,disabled:l},g),f&&a.a.createElement(An,{type:"circle",color:"#fff",size:m?"82%":"35%"}),f&&!!b&&a.a.createElement("span",{style:{marginLeft:"4px",marginRight:"2xp"}},b),!f&&h&&a.a.createElement(P.Icon,{icon:"string"==typeof r?On[r]||null:r,width:m?20:24,height:m?20:24}),!!p&&!f&&a.a.createElement("span",{style:{marginLeft:h?"4px":0,marginRight:h?"2xp":0}},p))}))(zn||(zn=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: inline-block;\n box-sizing: border-box;\n height: 30px;\n min-height: 30px;\n min-width: 6em;\n border: none;\n border-radius: 4px;\n text-align: center;\n font-family: ",";\n font-size: ",";\n padding: 0 15px;\n\n background-color: ",";\n color: white;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.has-icon {\n align-items: center;\n display: inline-flex;\n padding: 2.5px 8px;\n }\n\n &.secondary {\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n &.danger {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n &.success {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n & + button {\n margin-left: .25rem;\n }\n\n &.small {\n font-size: ",";\n height: 24px;\n }\n\n &.header {\n background-color: ",";\n border-color: ",";\n height: 40px;\n padding: 0 20px;\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n &.rounded {\n border-radius: 100%;\n min-width: 30px;\n height: 30px;\n width: 30px;\n padding: 3px;\n }\n\n ","\n"])),C.fontFamily,C.fontSizeText,C.blue,Object(v.a)(.1,C.blue),C.lightBlue,C.blue,C.blue,Object(v.a)(.1,C.lightBlue),C.red,C.red,Object(v.a)(.1,C.red),C.green,C.green,Object(v.a)(.1,C.green),C.fontSizeSmallButton,C.deepBlue,C.deepBlue,Object(v.a)(.1,C.deepBlue),(function(e){return Dn(e.color)})),Dn=function(e){if(e)return"\n &.custom-color {\n background-color: ".concat(e,";\n border: 1px solid ").concat(e,";\n\n &:hover {\n background-color: ").concat(Object(v.a)(.1,e),";\n }\n }\n ")},Bn=function(e){return a.a.createElement(_n,e)};Bn.propTypes={className:u.a.oneOf(["primary","secondary","danger","success","header"]),disabled:u.a.bool,icon:u.a.oneOfType([u.a.instanceOf(P.IconifyIcon),u.a.oneOf(["setting","edit","trash"])]),color:u.a.string,onClick:u.a.func.isRequired,rounded:u.a.bool,isBusy:u.a.bool,busyText:u.a.string},Bn.defaultProps={className:"primary",disabled:!1,icon:null,color:null,onClick:function(){},rounded:void 0,isBusy:!1,busyText:void 0};var Ln,Fn=["show","className"];function Mn(){return(Mn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Un(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Gn=y.a.a(Ln||(Ln=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n background-color: ",";\n position: relative;\n border-radius: 10px;\n color: ",";\n font-family: ",";\n font-size: 9px;\n line-height: 10px;\n padding: 5px 8px;\n text-transform: uppercase;\n text-decoration: none;\n\n &:hover {\n color: ",";\n background-color: #f78c1f;\n }\n\n &.inline {\n display: inline;\n margin-left: 5px;\n vertical-align: middle;\n }\n"])),C.yellow,C.white,C.fontFamily,C.white),qn=function(e){var n=e.show,t=void 0===n||n,r=e.className,o=Un(e,Fn);return t?a.a.createElement(Gn,Mn({href:"https://store.meowapps.com",target:"_blank",className:"".concat(r||"")},o),"Pro Only"):null},Hn=function(e){return a.a.createElement(qn,e)};Hn.propTypes={show:u.a.bool,className:u.a.string},Hn.defaultProps={show:!0,className:void 0};var $n=t(23),Kn=t.n($n);function Wn(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||Jn(e,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.")}()}function Jn(e,n){if(e){if("string"==typeof e)return Vn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Vn(e,n):void 0}}function Vn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Zn,Xn,Yn,Qn,et=function(){var e=Object(r.useRef)(),n=Wn(Object(r.useState)({}),2),t=n[0],a=n[1];return Object(r.useEffect)((function(){if(e&&e.current){var n=new ResizeObserver((function(e){var n=e[0];n.contentRect&&a({width:n.contentRect.left+n.contentRect.right,height:n.contentRect.top+n.contentRect.bottom})}));return n.observe(e.current),function(){n.unobserve(e.current)}}}),[]),{ref:e,width:t.width?t.width:0,height:t.height?t.height:0}},nt=function(e){var n=Object(r.useRef)(),t=function(t){e&&!n.current.contains(t.target)&&e()};return Object(r.useEffect)((function(){return document.addEventListener("mousedown",t),function(){document.removeEventListener("mousedown",t)}})),n};new Kn.a({concurrency:1,autoStart:!1});function tt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return rt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return rt(e,n)}(e,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.")}()}function rt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function at(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var ot,it=y.a.div(Zn||(Zn=at(["\n display: inline-block;\n"]))),lt=y.a.button(Xn||(Xn=at(["\n align-items: center;\n background-color: ",";\n border: none;\n border-radius: 4px;\n box-sizing: border-box;\n color: white;\n display: inline-flex;\n justify-content: space-between;\n font-family: ",";\n font-size: ",";\n height: 30px;\n min-width: 6em;\n padding: 0px 10px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n & + button {\n margin-left: .25rem;\n }\n"])),C.blue,C.fontFamily,C.fontSizeText,Object(v.a)(.1,C.blue)),ct=y.a.div(Yn||(Yn=at(["\n position: relative;\n display: block;\n margin-top: 18px;\n background-color: ",";\n position: absolute;\n z-index: 10;\n box-shadow: ",';\n\n &:before {\n content: "";\n position: absolute;\n top: -18px;\n left: 50%;\n margin-left: -8px;\n border: 8px solid transparent;\n border-bottom: 10px solid ',";\n }\n"])),C.blue,C.lightShadow,C.blue),ut=function(e){var n=e.title,t=e.disabled,r=void 0!==t&&t,o=e.isPro,i=void 0!==o&&o,l=e.style,c=void 0===l?{}:l,u=tt(a.a.useState(!1),2),s=u[0],d=u[1],f=nt((function(){d(!1)})),p=et(),m=p.ref,b=p.width,g=function(){d(!s)},h=a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{isPro:i,disabled:e.props.disabled||r,onClick:function(){e.props.onClick&&e.props.onClick(),g()}})}));return a.a.createElement(it,{ref:f},a.a.createElement(lt,{ref:m,type:"button",disabled:r,onClick:g,style:c},a.a.createElement("span",null,n),a.a.createElement(P.Icon,{icon:H.a,width:"24",height:"24",style:{marginLeft:"4px"}})),s&&a.a.createElement(ct,{style:{transform:"translateX(calc(-50% + ".concat(b/2,"px))")}},h))},st=y.a.button(Qn||(Qn=at(["\n align-items: center;\n background-color: ",";\n border: none;\n box-sizing: border-box;\n color: white;\n display: flex;\n font-family: ",";\n font-size: ",";\n width: 100%;\n padding: 8px 15px 8px 15px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled:not(.is-pro) {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.is-pro {\n background-color: ",";\n justify-content: space-between;\n }\n"])),C.blue,C.fontFamily,C.fontSizeText,Object(v.a)(.1,C.blue),C.proGray),dt=function(e){var n=e.onClick,t=e.children,r=e.isPro,o=e.requirePro,i=void 0!==o&&o,l=e.disabled,c=i&&!r;return a.a.createElement(st,{type:"button",className:c?"is-pro":"",onClick:n,disabled:l||c},a.a.createElement("span",null,t),c&&!r&&a.a.createElement(Hn,null))},ft=function(e){return a.a.createElement(ut,e)},pt=function(e){return a.a.createElement(dt,e)};function mt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||bt(e,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.")}()}function bt(e,n){if(e){if("string"==typeof e)return gt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?gt(e,n):void 0}}function gt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}ft.propTypes={title:u.a.string,disabled:u.a.bool,isPro:u.a.bool},ft.defaultProps={title:void 0,disabled:!1,isPro:!1},pt.propTypes={onClick:u.a.func.isRequired,requirePro:u.a.bool},pt.defaultProps={onClick:function(){},requirePro:!1};var ht=y.a.div(ot||(ot=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n position: relative;\n background: #f1f1f1;\n margin-left: -20px;\n background-color: rgb(30 124 186 / 10%);\n padding-bottom: 50px;\n margin-bottom: -26px;\n\n .neko-rest-error {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: #1e232deb;\n z-index: 100;\n\n .container {\n color: white;\n padding: 5px 20px 15px 20px;\n min-width: 480px;\n max-width: 600px;\n border-radius: 20px;\n background: #883131;\n margin-left: 50%;\n transform: translateX(-50%);\n margin-top: 100px;\n\n h3 {\n color: white;\n }\n\n .neko-debug {\n padding: 5px 10px;\n background: #692426;\n border-radius: 10px;\n\n * {\n margin: 0px;\n padding: 0px;\n } \n }\n }\n }\n"]))),yt=function(e){var n=e.className,t=e.children,o=e.nekoErrors,i=void 0===o?[]:o,l=e.style,c=void 0===l?{}:l,u=mt(Object(r.useState)(!1),2),s=u[0],d=u[1],f=mt(Object(r.useState)(!1),2),p=f[0],m=f[1];if(i&&!s){var b,g=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=bt(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw o}}}}(i);try{for(g.s();!(b=g.n()).done;){var h=b.value;if(h){d(h);break}}}catch(e){g.e(e)}finally{g.f()}}return a.a.createElement(ht,{className:n||"",style:c},s&&a.a.createElement("div",{className:"neko-rest-error"},a.a.createElement("div",{className:"container"},!p&&a.a.createElement(a.a.Fragment,null,a.a.createElement("h3",null,"The Rest API is disabled or broken 😢"),a.a.createElement("p",null,"The Rest API is required for this plugin to work. It is enabled in WordPress by default since December 2016 and used by the Gutenberg Editor since 2019. In short, it allows more robustness and a much cleaner infrastructure. Soon, Wordpress will entirely depends on it, so it is important to keep it enabled."),a.a.createElement("p",null,a.a.createElement("i",null,"Last but not least: check your PHP Error Logs and your Debugging Console.")),a.a.createElement("p",{className:"neko-debug"},a.a.createElement("small",null,"URL: ",s.url,a.a.createElement("br",null),"CODE: ",s.code,a.a.createElement("br",null),"MESSAGE: ",s.message,a.a.createElement("br",null)))),s.body&&p&&a.a.createElement("p",{className:"neko-debug"},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:s.body}})),s.body&&a.a.createElement(Bn,{color:"#a94242",onClick:function(){return m(!p)}},p?"Hide":"Display"," response from server"),a.a.createElement(Bn,{color:"#a94242",onClick:function(){window.open("https://meowapps.com/fix-wordpress-rest-api/","_blank")}},"Learn about WordPress Debugging"))),t)},vt=function(e){return a.a.createElement(yt,e)};vt.propTypes={className:u.a.string,style:u.a.object,nekoErrors:u.a.bool},vt.defaultProps={className:void 0,style:{},nekoErrors:!1};var xt,wt,Ot,kt,Et,jt=["children"];function St(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function Ct(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Pt,Nt=y.a.h1(xt||(xt=Ct(["\n font-family: ",";\n font-weight: normal;\n font-size: ",";\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"])),C.fontFamily,C.fontSizeH1),At=y.a.h2(wt||(wt=Ct(["\n font-family: ",";\n font-size: ",";\n font-weight: normal;\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"])),C.fontFamily,C.fontSizeH2),zt=y.a.p(Ot||(Ot=Ct(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 16px 0 24px;\n padding: 0;\n"])),C.fontFamily,C.fontSizeText),Rt=y.a.span(kt||(kt=Ct(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"])),C.fontFamily,C.fontSizeText),It=y.a.label(Et||(Et=Ct(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"])),C.fontFamily,C.fontSizeText),Tt=function(e){var n=e.children,t=St(e,jt);return e.h1?a.a.createElement(Nt,t,n):e.h2?a.a.createElement(At,t,n):e.p?a.a.createElement(zt,t,n):e.label?a.a.createElement(It,t,n):a.a.createElement(Rt,t,n)},_t=function(e){return a.a.createElement(Tt,e)};_t.propTypes={h1:u.a.any,h2:u.a.any,p:u.a.any},_t.defaultProps={h1:void 0,h2:void 0,p:void 0};var Dt,Bt,Lt=y.a.div(Pt||(Pt=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-size: ",";\n margin-bottom: 15px;\n\n .nui-block-header {\n display: flex;\n justify-content: space-between;\n }\n\n .nui-block-title {\n color: ",";\n padding: 5px 10px;\n margin-bottom: 5px;\n }\n\n .nui-block-content {\n background-color: #f1f1f1;\n padding: 26px;\n box-shadow: 0px 2px 5px 0px #0000004a;\n border-radius: 10px;\n\n p:first-child {\n margin-top: 0;\n }\n\n p:last-child {\n margin-bottom: 0;\n }\n }\n\n &.primary {\n padding: 8px;\n background-color: ",";\n\n .nui-block-title {\n color: ",";\n }\n\n .nui-block-content {\n background-color: ",";\n }\n }\n"])),C.fontSizeText,C.blue,C.blue,C.white,C.white),Ft=function(e){var n=e.title,t=e.children,r=e.className,o=e.busy,i=void 0!==o&&o,l=e.style,c=void 0===l?{}:l,u=e.action;return a.a.createElement(Lt,{className:"nui-block "+(r||""),style:c},a.a.createElement(h,{busy:i},a.a.createElement("div",{className:"nui-block-header"},a.a.createElement(_t,{h2:!0,className:"nui-block-title"},n),!!u&&u),a.a.createElement("div",{className:"nui-block-content"},t)))},Mt=function(e){return a.a.createElement(Ft,e)};function Ut(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Mt.propTypes={title:u.a.string,className:u.a.oneOf(["","primary"]),style:u.a.object,action:u.a.element},Mt.defaultProps={title:void 0,className:"",style:{},action:void 0};var Gt,qt=y.a.div(Dt||(Dt=Ut(["\n font-size: ",";\n font-family: ",";\n background-color: ",";\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);\n margin-bottom: 25px;\n\n &.primary {\n background-color: ",";\n }\n\n p:first-child {\n margin-top: 0px;\n }\n\n p:last-child {\n margin-bottom: 0px;\n }\n\n .content {\n padding: 20px 20px;\n }\n"])),C.fontSizeText,C.fontFamily,C.white,C.blue),Ht=y.a.div(Bt||(Bt=Ut(["\n justify-content: flex-start;\n background-color: ",";\n display: flex;\n align-items: center;\n padding: 8px 10px;\n\n &.align-right {\n justify-content: flex-end;\n }\n"])),C.lightGray2),$t=function(e){var n=e.children,t=e.header,r=e.headerAlign,o=void 0===r?"left":r,i=e.footer,l=e.footerAlign,c=void 0===l?"right":l,u=e.className,s=e.style,d=void 0===s?{}:s;return a.a.createElement(qt,{className:u||"",style:d},t&&a.a.createElement(Ht,{className:"align-".concat(o)},t),a.a.createElement("div",{className:"content"},n),i&&a.a.createElement(Ht,{className:"align-".concat(c)},i))},Kt=function(e){return a.a.createElement($t,e)};Kt.propTypes={header:u.a.element,headerAlign:u.a.oneOf(["left","right"]),footer:u.a.element,footerAlign:u.a.oneOf(["left","right"]),className:u.a.string,style:u.a.object},Kt.defaultProps={header:void 0,headerAlign:"left",footer:void 0,footerAlign:"right",className:void 0,style:{}};var Wt,Jt,Vt=Object(y.a)((function(e){var n=e.title,t=void 0===n?"":n,r=e.contentAlign,o=void 0===r?"left":r;return a.a.createElement("div",{className:e.className||""},t?a.a.createElement("div",{className:"nui-settings-head"},t):null,a.a.createElement("div",{className:"nui-settings-content nui-settings-content-align-".concat(o)},e.children))}))(Gt||(Gt=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: flex;\n font-family: ",";\n\n > .nui-settings-head {\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n width: 120px;\n margin-right: 16px;\n }\n\n /* Select, Checkbox, Input need to be a bit higher to be in front of the settings title */\n\n .nui-settings-content > .nui-select:first-child {\n position: relative;\n margin-top: -5px;\n }\n \n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-button:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > div:first-child > .neko-input {\n position: relative;\n margin-top: -5px;\n }\n\n > .nui-settings-content {\n flex: 1;\n\n &.nui-settings-content-align-right {\n flex: none;\n margin-left: auto;\n }\n\n input[type=text] {\n width: 100%;\n }\n\n\n }\n\n & + div {\n margin-top: 15px;\n }\n"])),C.fontFamily,C.fontFamily),Zt=function(e){return a.a.createElement(Vt,e)};function Xt(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Zt.propTypes={title:u.a.string,className:u.a.string,contentAlign:u.a.string},Zt.defaultProps={title:"",className:void 0,contentAlign:"left"};var Yt=y.a.div(Wt||(Wt=Xt(["\n margin: 20px;\n padding: 14px;\n background-color: white;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n\n > * + * {\n /* Base margin between child elements */\n margin-top: 14px;\n }\n"]))),Qt=Object(y.a)((function(e){return e.children?a.a.createElement("div",{className:e.className},e.children):null}))(Jt||(Jt=Xt(["\n background-color: ",";\n color: white;\n"])),C.blue),er=function(e){return a.a.createElement(Yt,{className:"window"},a.a.createElement(Qt,null,e.title),e.children)},nr=function(e){return a.a.createElement(er,e)};nr.propTypes={title:u.a.string},nr.defaultProps={title:void 0};var tr,rr,ar=["full","minimal"];function or(){return(or=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ir(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function lr(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var cr=y.a.div(tr||(tr=lr(["\n display: flex;\n flex-wrap: wrap;\n"]))),ur=y.a.div(rr||(rr=lr(["\n flex: 1;\n padding: 32px 30px;\n\n .nui-block:not(:first-child) {\n margin-top: -20px;\n }\n\n .nui-block:last-child {\n margin-bottom: 0px;\n }\n\n &.minimal {\n padding: 0;\n }\n\n &.full {\n flex-basis: 100%;\n padding-bottom: 0;\n }\n\n & + .full {\n padding-bottom: 32px;\n padding-top: 0;\n }\n\n &:not(.full) + div:not(.full) {\n padding-left: 0;\n }\n"]))),sr=function(e){return a.a.createElement(cr,null,e.children)},dr=function(e){var n=e.full,t=e.minimal,r=ir(e,ar),o=n?"full":"";return o+=t?" minimal":"",a.a.createElement(ur,or({className:o},r),e.children)},fr=function(e){return a.a.createElement(sr,e)},pr=function(e){return a.a.createElement(dr,e)};fr.propTypes={},fr.defaultProps={},pr.propTypes={full:u.a.any},pr.defaultProps={full:void 0};var mr,br=t(19),gr=t.n(br),hr=t(20),yr=t.n(hr);var vr,xr=Object(y.a)((function(e){var n=e.id,t=e.name,r=e.checked,o=void 0!==r&&r,i=e.onChange,l=e.label,c=e.description,u=e.isPro,s=e.disabled,d=e.requirePro,f=void 0!==d&&d&&!u,p=s||f,m=p?"disabled":"";return a.a.createElement("div",{className:["nui-checkbox",e.className,m].join(" ")},a.a.createElement("input",{id:n,name:t,type:"checkbox",defaultChecked:!1,onClick:function(){i?i(!o,n):console.log("The onChange handler it not set for this checkbox.",e)},disabled:p}),a.a.createElement("label",{htmlFor:n},a.a.createElement("div",{className:"nui-checkbox-check-container"},a.a.createElement(P.Icon,{icon:o?yr.a:gr.a,width:"30px",height:"30px",color:p?C.disabledForm:C.blue})),a.a.createElement("div",{className:"nui-checkbox-inner-container"},a.a.createElement("span",{className:"label"},l,a.a.createElement(Hn,{className:"inline",show:f})),c?a.a.createElement("small",{className:"description"},c):null)))}))(mr||(mr=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-family: ",";\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n .nui-checkbox-check-container {\n flex-basis: 30px;\n }\n .nui-checkbox-inner-container {\n margin-top: 1.5px;\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n \n .description {\n display: block;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n }\n }\n"])),C.fontFamily,C.disabledForm),wr=function(e){return a.a.createElement(xr,e)};wr.propTypes={id:u.a.string,name:u.a.string,checked:u.a.bool,label:u.a.string,description:u.a.string,isPro:u.a.bool,requirePro:u.a.bool},wr.defaultProps={id:void 0,name:void 0,checked:!1,label:void 0,description:void 0,isPro:!1,requirePro:!1};var Or=Object(y.a)((function(e){var n=e.name,t=(e.max,e.isPro),r=void 0!==t&&t;return a.a.Children.map(e.children,(function(e){return e.props.name?e:a.a.cloneElement(e,{name:n,isPro:r})}))}))(vr||(vr=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n"]))),kr=function(e){return a.a.createElement(Or,e)};kr.propTypes={name:u.a.string,mas:u.a.number,isPro:u.a.bool},kr.defaultProps={name:void 0,mas:-1,isPro:!1};var Er,jr=["id","name","value","description","placeholder","onEnter","readOnly","type","step","min","max","maxLength","className","style","natural","inputStyle","onChange","onBlur"];function Sr(){return(Sr=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Cr(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Pr(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Pr(e,n)}(e,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.")}()}function Pr(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Nr(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Ar=Object(y.a)((function(e){var n=e.id,t=e.name,o=e.value,i=void 0===o?"":o,l=e.description,c=e.placeholder,u=void 0===c?"":c,s=e.onEnter,d=void 0===s?null:s,f=e.readOnly,p=void 0!==f&&f,m=e.type,b=void 0===m?"text":m,g=e.step,h=void 0===g?1:g,y=e.min,v=void 0===y?1:y,x=e.max,w=void 0===x?999:x,O=e.maxLength,k=void 0===O?void 0:O,E=e.className,j=e.style,S=e.natural,C=void 0!==S&&S,P=e.inputStyle,N=e.onChange,A=e.onBlur,z=Nr(e,jr),R=Cr(Object(r.useState)(i),2),I=R[0],T=R[1],_=!!N,D=k||("number"===b?3:void 0);Object(r.useEffect)((function(){_||T(i)}),[i]);var B=function(e){_?N(e.target.value,n):T(e.target.value,n)},L=function(e){d&&"Enter"===event.key&&(e.preventDefault(),d(e.target.value,n))},F=function(e){A&&i!==e.target.value&&A(e.target.value,n)},M="neko-input ".concat(C?" natural":"");return a.a.createElement("div",{className:[E].join(" "),style:j},"number"===b?a.a.createElement("input",Sr({className:[M].join(" "),id:n,name:t,value:_?i:I,type:b,step:h,min:v,max:w,maxLength:D,autoComplete:"off",placeholder:u,style:P,onChange:B,onKeyPress:L,onBlur:F,readOnly:p},z)):a.a.createElement("input",Sr({className:[M].join(" ")},z,{id:n,name:t,value:_?i:I,type:b,spellCheck:"false",autoComplete:"off",placeholder:u,style:P,maxLength:D,onChange:B,onKeyPress:L,onBlur:F,readOnly:p},z)),l&&a.a.createElement("p",{className:"neko-input-description"},l))}))(Er||(Er=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .neko-input {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n height: 30px;\n background: rgb(0 124 186 / 10%);\n padding: 0 10px;\n width: 100%;\n\n &.natural {\n border-color: gray;\n border-width: 1px;\n }\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"])),C.fontFamily,C.fontSizeText,C.blue,C.gray,C.fontFamily,C.fontSizeSmall),zr=function(e){return a.a.createElement(Ar,e)};zr.propTypes={id:u.a.string,type:u.a.oneOf(["number","text"]),name:u.a.string,value:u.a.string,description:u.a.string,placeholder:u.a.string,onChange:u.a.func,onEnter:u.a.func,onBlur:u.a.func,readOnly:u.a.bool,step:u.a.number,min:u.a.number,max:u.a.number,maxLength:u.a.number,natural:u.a.bool},zr.defaultProps={id:void 0,type:"text",name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1,step:1,min:1,max:999,maxLength:void 0,natural:!1};var Rr,Ir=["id","name","value","description","placeholder","avoidOnEnterWithShift","onEnter","readOnly","maxLength","className","style","textAreaStyle","countable"];function Tr(){return(Tr=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function _r(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Dr(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Dr(e,n)}(e,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.")}()}function Dr(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Br(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Lr=Object(y.a)((function(e){var n=e.id,t=e.name,o=e.value,i=void 0===o?"":o,l=e.description,c=e.placeholder,u=void 0===c?"":c,s=e.avoidOnEnterWithShift,d=void 0!==s&&s,f=e.onEnter,p=void 0===f?null:f,m=e.readOnly,b=void 0!==m&&m,g=e.maxLength,h=void 0===g?null:g,y=e.className,v=e.style,x=e.textAreaStyle,w=void 0===x?{}:x,O=e.countable,k=void 0!==O&&O,E=Br(e,Ir),j=_r(Object(r.useState)(i),2),S=j[0],C=j[1],P=_r(Object(r.useState)(0),2),N=P[0],A=P[1],z=_r(Object(r.useState)(!1),2),R=z[0],I=z[1],T=!!e.onChange,_=Object(r.useCallback)((function(e){I(e.shiftKey)}),[]),D=Object(r.useCallback)((function(){I(!1)}),[]);Object(r.useEffect)((function(){return document.addEventListener("keydown",_,!1),document.addEventListener("keyup",D,!1),function(){document.removeEventListener("keydown",_,!1),document.removeEventListener("keyup",D,!1)}}),[]),Object(r.useEffect)((function(){T||C(i),k&&A(i.length)}),[i,k]);var B=Object(r.useCallback)((function(t){var r=h?t.target.value.substr(0,h):t.target.value;T?e.onChange(r,n):C(r,n)}),[h]);return a.a.createElement("div",{className:[y].join(" "),style:v},a.a.createElement("div",{className:"neko-textarea-container"},a.a.createElement("textarea",Tr({className:"neko-textarea",rows:6},E,{id:n,name:t,spellCheck:"false",placeholder:u,onChange:B,onKeyPress:function(t){if(p&&!t.shiftKey&&"Enter"===t.key){if(d&&R)return;t.preventDefault(),e.onEnter(t.target.value,n)}},onBlur:function(t){e.onBlur&&i!==t.target.value&&e.onBlur(t.target.value,n)},readOnly:b,style:w,value:T?i:S})),k&&a.a.createElement("p",{className:"neko-textarea-count"},N," / ",h," characters")),l&&a.a.createElement("p",{className:"neko-input-description"},l))}))(Rr||(Rr=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .neko-textarea-container {\n position: relative;\n }\n .neko-textarea {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n background: rgb(0 124 186 / 10%);\n padding: 5px 10px;\n width: 100%;\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n .neko-textarea-count {\n color: rgba(",", 0.4);\n font-size: 11px;\n margin: 0;\n position: absolute;\n right: 13px;\n bottom: 10px;\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"])),C.fontFamily,C.fontSizeText,C.blue,C.gray,C.blackRGB,C.fontFamily,C.fontSizeSmall),Fr=function(e){return a.a.createElement(Lr,e)};Fr.propTypes={id:u.a.string,name:u.a.string,value:u.a.string,description:u.a.string,placeholder:u.a.string,onChange:u.a.func,onEnter:u.a.func,onBlur:u.a.func,readOnly:u.a.bool,avoidOnEnterWithShift:u.a.bool},Fr.defaultProps={id:void 0,name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1,avoidOnEnterWithShift:!1};var Mr,Ur,Gr=t(72),qr=t.n(Gr),Hr=t(73),$r=t.n(Hr);function Kr(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Wr(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Wr(e,n)}(e,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.")}()}function Wr(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Jr(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Vr=y.a.div(Mr||(Mr=Jr(["\n\tdisplay: flex;\n"]))),Zr=y.a.div(Ur||(Ur=Jr(["\n\tbackground-color: rgba(",", 0.8);\n\tborder-radius: 4px;\n\tcolor: ",";\n\tfont-family: ",";\n\tfont-weight: normal;\n\tmin-width: 180px;\n\tmax-width: 280px;\n\tfont-size: ",";\n\tpadding: 8px 12px;\n\tposition: absolute;\n \tmax-width: 280px;\n\tword-break: break-word;\n\tdisplay: ",';\n\tz-index: 100;\n\n\t&:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\tborder: 4px solid transparent;\n\t}\n\n\t&.top {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\tborder-top: 4px solid rgba(',", 0.8);\n\t\t}\n\t}\n\n\t&.left {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tright: -8px;\n\t\t\tborder-left: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.right {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tleft: -8px;\n\t\t\tborder-right: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.bottom {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: -8px;\n\t\t\tleft: 50%;\n\t\t\tborder-bottom: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t","\n"])),C.blackRGB,C.white,C.fontFamily,C.fontSizeText,(function(e){return e.visible?"inline-block":"none"}),C.blackRGB,C.blackRGB,C.blackRGB,C.blackRGB,(function(e){return e.style})),Xr=function(e){var n=e.text,t=void 0===n?"Hello world!":n,o=e.position,i=void 0===o?"top":o,l=Kr(Object(r.useState)(!1),2),c=l[0],u=l[1],s=et(),d=s.ref,f=s.width,p=s.height,m=et(),b=m.ref,g=m.width,h=m.height,y=Object(r.useMemo)((function(){var e=0,n=0;if("top"===i)e=-1*p-5,n=f/2*-1+g/2;else if("bottom"===i)e=h+5,n=f/2*-1+g/2;else if("left"===i){e=(p-h)/2*-1,n=-1*f-5}else if("right"===i){e=(p-h)/2*-1,n=g+5}return{transform:"translateX(".concat(n,"px) translateY(").concat(e,"px)")}}),[i,f,p,g,h]);return a.a.createElement(Vr,null,a.a.createElement(Zr,{ref:d,visible:c,className:i,style:y},t),a.a.createElement("div",{ref:b,onMouseEnter:function(){return t&&u(!0)},onMouseLeave:function(){return u(!1)}},e.children))},Yr=function(e){return a.a.createElement(Xr,e)};Yr.propTypes={text:u.a.string,position:u.a.oneOf(["top","right","bottom","left"])},Yr.defaultProps={text:"Hello world!",position:"top"};var Qr,ea,na=["icon","spinning","className","title","tooltip","containerStyle","color","hoverColor","disabled","raw"];function ta(){return(ta=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ra(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function aa(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var oa=y.a.div(Qr||(Qr=aa(["\n display: flex;\n align-items: center;\n"]))),ia=Object(y.a)(P.Icon)(ea||(ea=aa(["\n\n path {\n fill: ",";\n }\n\n ","\n\n &.nui-clickable {\n cursor: pointer;\n }\n\n &.spin {\n animation-name: spin;\n animation-duration: 700ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n\n @keyframes spin {\n 0% {\n transform: rotate(360deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n }\n }\n\n &.disabled {\n pointer-events: none;\n opacity: 0.35;\n cursor: default;\n }\n"])),(function(e){return e.color}),(function(e){return n=e.color,(t=e.hoverColor)?"\n &:hover {\n path {\n fill: ".concat(t,";\n }\n }\n "):n?"\n &:hover {\n path {\n fill: ".concat(Object(v.a)(.1,n),";\n }\n }\n "):void 0;var n,t})),la=function(e){var n=e.icon,t=e.spinning,r=void 0!==t&&t,o=e.className,i=void 0===o?"":o,l=e.title,c=e.tooltip,u=e.containerStyle,s=e.color,d=e.hoverColor,f=e.disabled,p=void 0!==f&&f,m=e.raw,b=ra(e,na);b.width||b.height||(b.width=b.height=30);var g=function(){return"string"==typeof n?On[n]||null:n},h="nui-icon ".concat(i).concat(b.onClick?" nui-clickable":"").concat(r?" spin":"").concat(p?" disabled":"");return c?a.a.createElement(Yr,{text:c.text,position:c.position||"top"},a.a.createElement(oa,{style:u},a.a.createElement(ia,ta({icon:g(),className:h,color:s,hoverColor:d},b)))):m?a.a.createElement(ia,ta({icon:g(),className:h,color:s,hoverColor:d},b)):a.a.createElement(oa,{style:u,title:l},a.a.createElement(ia,ta({icon:g(),className:h,color:s,hoverColor:d},b)),c?a.a.createElement(Yr,null,c):null)},ca=function(e){return a.a.createElement(la,e)};ca.propTypes={icon:u.a.oneOfType([u.a.instanceOf(P.IconifyIcon),u.a.oneOf(["lock","lock-open","file-undo","chevron-double-left","chevron-double-right","chevron-left","chevron-right","chevron-down","chevron-up","pause","play","replay","check","stop","delete","undo","alert","database","pencil","tools","cog","close","cat","upload"])]),color:u.a.string,spinning:u.a.bool,className:u.a.string,tooltip:u.a.string,raw:u.a.bool},ca.defaultProps={icon:void 0,color:void 0,spinning:!1,className:"",tooltip:void 0,raw:void 0};var ua,sa,da,fa,pa,ma,ba,ga=["id","name","value","scrolldown","isPro","onChange","className","disabled"];function ha(){return(ha=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ya(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return va(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return va(e,n)}(e,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.")}()}function va(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function xa(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function wa(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Oa=y.a.div(ua||(ua=wa(["\n border-radius: 8px;\n position: relative;\n user-select: none;\n cursor: pointer;\n\n &.show-options {\n background-color: ",";\n border-radius: 8px 8px 0 0;\n }\n\n &[data-is-disabled=true] {\n cursor: none;\n pointer-events: none;\n }\n"])),C.blue),ka=y.a.div(sa||(sa=wa(["\n align-items: center;\n background-color: ",";\n border: 2px solid ",";\n border-radius: 8px;\n display: flex;\n font-family: ",";\n font-size: 14px;\n padding: 0 5px 0 10px;\n box-sizing: border-box;\n height: 30px;\n\n .rightContent {\n align-items: center;\n display: flex;\n margin-left: auto;\n }\n"])),C.white,C.blue,C.fontFamily),Ea=y.a.div(da||(da=wa(["\n display: block;\n margin-top: 5px;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n"]))),ja=y.a.div(fa||(fa=wa(["\n border-radius: 8px;\n overflow: hidden;\n padding-top: 28px;\n position: absolute;\n top: 0;\n z-index: 10;\n width: 100%;\n transition: all 0.2s ease-in;\n\n &.hidden {\n opacity: 0;\n }\n"]))),Sa=y.a.div(pa||(pa=wa(["\n background-color: ",";\n"])),C.white),Ca=function(e){var n,t=e.id,o=e.name,i=e.value,l=e.scrolldown,c=void 0!==l&&l,u=e.isPro,s=void 0!==u&&u,d=e.onChange,f=e.className,p=e.disabled,m=xa(e,ga),b=null===(n=a.a.Children.toArray(e.children).find((function(e){return e.props.value===i||e.props.checked})))||void 0===n?void 0:n.props,g=(null==b?void 0:b.label)||"Select",h=(null==b?void 0:b.description)||e.description,y=(null==b?void 0:b.requirePro)||!1,v=null==b?void 0:b.icon,x=ya(Object(r.useState)(!1),2),w=x[0],O=x[1],k=c?nt((function(){O(!1)})):null,E=y&&!s,j=function(n){if(n!==i){if(!d)return void console.log("The onChange handler it not set for this checkbox.",e);d(n,t)}c&&O(!1)},S=a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{name:e.props.name||o,checked:e.props.value===i||e.props.checked,onClick:j,scrolldown:c,isPro:s,disabled:p})}));return c?a.a.createElement(Oa,ha({id:t,ref:k},m,{onClick:function(){return O(!w)},className:["nui-select",f,w?"show-options":""],childrenLength:S.length,"data-is-disabled":p}),a.a.createElement(ka,null,v&&a.a.createElement(ca,{icon:v,width:20,height:20,style:{marginRight:"9px"}}),g,a.a.createElement("div",{className:"rightContent"},E&&a.a.createElement(Hn,null),!p&&a.a.createElement(P.Icon,{icon:w?K.a:H.a,width:"24"}))),h&&a.a.createElement(Ea,null,h),w&&a.a.createElement(ja,{className:"nui-option ".concat(w?"":"hidden")},a.a.createElement(Sa,null,[S]))):S},Pa=y.a.div(ma||(ma=wa(["\n font-family: ",";\n margin-bottom: 6px;\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n\n .inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n .description {\n display: block;\n font-size: 12px;\n }\n }\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n"])),C.fontFamily,C.disabledForm),Na=y.a.div(ba||(ba=wa(["\n background-color: ",";\n cursor: pointer;\n font-family: ",";\n\n &:hover {\n filter: brightness(80%);\n }\n\n input {\n display: none;\n }\n\n .option {\n align-items: center;\n color: ",";\n display: flex;\n justify-content: space-between;\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n padding: 8px 12px;\n\n .option-group {\n align-items: center;\n display: flex;\n }\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n pointer-events: none;\n\n .option {\n color: rgb(255 255 255 / 35%);\n }\n }\n"])),C.blue,C.fontFamily,C.white,C.fontFamily),Aa=function(e){var n=e.id,t=e.name,r=e.value,o=e.checked,i=e.icon,l=e.label,c=e.description,u=e.onClick,s=e.scrolldown,d=e.isPro,f=void 0!==d&&d,p=e.requirePro,m=void 0!==p&&p,b=e.disabled,g=m&&!f,h=g||b?"disabled":"",y=a.a.createElement(Pa,{className:"nui-select ".concat(e.className||""," ").concat(h)},a.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:o,onClick:function(e){return u(e.target.value)},disabled:g||b}),a.a.createElement("label",{htmlFor:n},a.a.createElement(P.Icon,{icon:o?$r.a:qr.a,width:"24px",color:g?C.disabledForm:C.blue}),a.a.createElement("div",{className:"inner-container"},a.a.createElement("span",{className:"label"},l,a.a.createElement(Hn,{className:"inline",style:{top:-1},show:g})),c?a.a.createElement("small",{className:"description"},c):null))),v=a.a.createElement(Na,{className:"nui-select ".concat(e.className||""," ").concat(h)},a.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:o,disabled:g||b}),a.a.createElement("div",{className:"option",onClick:function(){return u(r)}},a.a.createElement("div",{className:"option-group"},i&&a.a.createElement(ca,{icon:i,width:20,height:20,style:{marginRight:"9px"}}),l),a.a.createElement(Hn,{show:g})));return s?v:y},za=function(e){return a.a.createElement(Ca,e)};za.propTypes={id:u.a.string,name:u.a.string,description:u.a.string,scrolldown:u.a.bool,isPro:u.a.bool,onChange:u.a.func},za.propTypes={id:void 0,name:void 0,description:void 0,scrolldown:!1,isPro:!1,onChange:void 0};var Ra,Ia=function(e){return a.a.createElement(Aa,e)};Ia.propTypes={id:u.a.string,name:u.a.string,value:u.a.string,checked:u.a.bool,label:u.a.string,description:u.a.string,onClick:u.a.func,scrolldown:u.a.bool,isPro:u.a.bool,requirePro:u.a.bool,icon:u.a.string},Ia.defaultProps={id:void 0,name:void 0,value:void 0,checked:!1,label:void 0,description:void 0,onClick:void 0,scrolldown:!1,isPro:!1,requirePro:!1,icon:void 0};var Ta=y.a.div(Ra||(Ra=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n label {\n display: block;\n margin-bottom: 3px;\n }\n\n .neko-input, .neko-textarea {\n margin-bottom: 5px;\n }\n"]))),_a=function(e){return a.a.createElement(Ta,null,e.children||null)},Da=function(e){return a.a.createElement(_a,e)};Da.propTypes={},Da.defaultProps={};var Ba,La=["width","height","fontSize","onValue","offValue","checked","onBackgroundColor","offBackgroundColor","onLabel","offLabel","onChange","disabled"];function Fa(){return(Fa=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Ma(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Ua=Object(y.a)((function(e){e.width,e.height,e.fontSize;var n=e.onValue,t=e.offValue,o=e.checked,i=void 0!==o&&o,l=(e.onBackgroundColor,e.offBackgroundColor,e.onLabel,e.offLabel,e.onChange),c=e.disabled,u=Ma(e,La),s=Object(r.useCallback)((function(e){l(e.target.checked?n:t)}),[l,n,t]);return a.a.createElement("label",Fa({},u,{"data-is-disabled":c?"disabled":""}),a.a.createElement("input",{type:"checkbox",onChange:s,checked:i,disabled:c}),a.a.createElement("span",{className:"nui-switch-slider"}))}))(Ba||(Ba=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n color: ",";\n font-family: ",";\n font-size: ",";\n position: relative;\n display: inline-block;\n width: ",";\n height: ",";\n\n &[data-is-disabled=disabled] {\n opacity: 0.4;\n\n .nui-switch-slider {\n cursor: auto;\n }\n }\n\n input {\n opacity: 0;\n width: 0;\n height: 0;\n border: 0;\n }\n\n .nui-switch-slider {\n background-color: ",";\n border-radius: ",';\n align-items: center;\n cursor: pointer;\n display: inline-flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transition: .4s;\n }\n\n .nui-switch-slider:before {\n border-radius: 50%;\n position: absolute;\n content: "";\n height: ',";\n width: ",';\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: .3s;\n }\n\n .nui-switch-slider:after {\n content: "','";\n margin-left: auto;\n margin-right: ',";\n }\n\n input:checked + .nui-switch-slider {\n background-color: ",";\n }\n\n input:checked + .nui-switch-slider:before {\n transform: translateX(",');\n }\n\n input:checked + .nui-switch-slider:after {\n content: "','";\n margin-left: ',";\n margin-right: auto;\n }\n"])),C.white,C.fontFamily,(function(e){return e.fontSize}),(function(e){return e.width}),(function(e){return e.height}),(function(e){return e.offBackgroundColor}),(function(e){return e.height}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return e.offLabel}),(function(e){return"calc(".concat(e.height," / 2)")}),(function(e){return e.onBackgroundColor}),(function(e){return"calc(".concat(e.width," - ").concat(e.height,")")}),(function(e){return e.onLabel}),(function(e){return"calc(".concat(e.height," / 2)")})),Ga=function(e){return a.a.createElement(Ua,e)};Ga.propTypes={width:u.a.string,height:u.a.string,fontSize:u.a.string,onValue:u.a.string,offValue:u.a.string,checked:u.a.bool,onBackgroundColor:u.a.string,offBackgroundColor:u.a.string,onLabel:u.a.string,offLabel:u.a.string},Ga.defaultProps={width:"100%",height:"20px",fontSize:"12px",checked:!1};var qa,Ha,$a,Ka,Wa,Ja,Va=t(74),Za=t.n(Va);function Xa(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Ya(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ya(e,n)}(e,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.")}()}function Ya(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Qa(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var eo=function(e){var n=e.chevron,t=void 0===n||n;return a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{chevron:t})}))},no=y.a.div(qa||(qa=Qa(["\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n font-family: Lato;\n"]))),to=y.a.div(Ha||(Ha=Qa(["\n align-items: center;\n display: flex;\n\n &.can-expand {\n cursor: pointer;\n }\n\n &.selected {\n color: #956DBE;\n }\n\n span {\n font-weight: normal;\n font-size: 13px;\n margin: 0 0 0 8px;\n }\n"]))),ro=y.a.div($a||($a=Qa(["\n height: 24px;\n width: 24px;\n"]))),ao=y.a.div(Ka||(Ka=Qa(["\n position: relative;\n width: 24px;\n height: 24px;\n"]))),oo=y.a.div(Wa||(Wa=Qa(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 100;\n"]))),io=y.a.div(Ja||(Ja=Qa(["\n border-left: 1px solid ",";\n margin-left: 12px;\n padding-left: 6px;\n\n &.no-line {\n border-left: 0;\n padding-left: 12px;\n }\n\n &.no-chevron {\n border-left: 0;\n margin-left: 0;\n padding-left: 0;\n }\n"])),C.finderBorder),lo=function(e){var n={gallery:Re.a,tag:Za.a},t=e.title,o=e.chevron,i=e.rightElement,l=void 0===i?null:i,c=e.rightElementStyle,u=void 0===c?{marginLeft:"5px"}:c,s=e.showRightElement,d=void 0!==s&&s,f=e.selected,p=void 0!==f&&f,m=e.draggable,b=void 0!==m&&m,g=e.onDragStart,h=e.onDragOver,y=e.onDragEnd,v=e.onDrop,x=e.isExpanded,w=void 0!==x&&x,O=e.dragging,k=void 0!==O&&O,E=e.rightAction,j=void 0===E?null:E,S=e.rightActionOnHover,N=void 0===S?null:S,A=e.onDragLeave,z=(e.preventClose,!!e.icon),R=!!e.children,I=Xa(Object(r.useState)(w),2),T=I[0],_=I[1],D=Xa(Object(r.useState)((function(){return"string"==typeof e.icon&&Object.keys(n).includes(e.icon)?n[e.icon]:e.icon?e.icon:Pe.a})),2),B=D[0],L=D[1],F=Boolean(B),M=Xa(Object(r.useState)(!1),2),U=M[0],q=M[1];Object(r.useEffect)((function(){_(w),z||L(w?Pe.a:Ae.a)}),[w]);var $=a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{chevron:o})})),K=k||p?C.purple:p?C.black:C.blue;return a.a.createElement("div",null,a.a.createElement(no,{onMouseEnter:function(){return q(!0)},onMouseLeave:function(){return q(!1)}},a.a.createElement(to,{onClick:function(){e.onClick&&e.onClick()},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,draggable:b,onDragStart:g,onDragOver:h,onDrop:v,className:"".concat(F||$||e.onClick?"can-expand":""," ").concat(p?"selected":""),onDragLeave:A,onDragEnd:y},o?F&&R?a.a.createElement(P.Icon,{icon:T?H.a:G.a,width:"24",height:"24",onClick:function(e){e.stopPropagation(),_(!T)}}):a.a.createElement(ro,null):null,a.a.createElement(ao,null,a.a.createElement(oo,null),a.a.createElement(P.Icon,{icon:B,color:K,width:"24",height:"24"})),a.a.createElement("span",null,t),d&&a.a.createElement("div",{style:u},l)),U&&N||j),T&&a.a.createElement(io,{className:"".concat(F?"":"no-line"," ").concat(o?"":"no-chevron")},$))},co=function(e){return a.a.createElement(eo,e)};co.propTypes={chevron:u.a.bool},co.defaultProps={chevron:!0};var uo,so=function(e){return a.a.createElement(lo,e)};so.propTypes={icon:u.a.oneOfType([u.a.instanceOf(P.IconifyIcon),u.a.oneOf(["gallery"])]),title:u.a.string,isExpanded:u.a.bool},so.defaultProps={icon:Pe.a,title:void 0,isExpanded:!1};var fo,po,mo=y.a.div(uo||(uo=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: flex;\n width: 100%;\n height: 100%;\n max-width: 128px;\n max-height: 128px;\n\n & > * {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n"]))),bo=function(){return a.a.createElement(mo,null,a.a.createElement("svg",{width:"54",height:"38",viewBox:"0 0 54 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.9038 19.1156 23.9038 19.1156C23.9038 19.1156 13.4345 22.0656 11.3663 9.40518Z",fill:"#724024",stroke:"black",strokeWidth:"2.1869"}),a.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",stroke:"black"}),a.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",stroke:"black"}),a.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",stroke:"black"}),a.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.658 19.4843 23.658 19.4843C23.658 19.4843 13.4345 22.0656 11.3663 9.40518Z",stroke:"black",strokeWidth:"2.1869"}),a.a.createElement("path",{d:"M25.3788 9.89685C25.3788 9.89685 21.3225 35.0947 21.9371 35.7093C22.5517 36.3239 27.4684 36.3239 28.083 35.7093C28.6975 35.0947 29.6523 22.5858 30.2955 21.9427C30.9386 21.2995 35.7226 33.1281 36.81 33.1281C37.8975 33.1281 43.2303 21.3567 43.8163 21.9427C44.4023 22.5287 45.2913 35.0947 45.9059 35.7093C46.5204 36.3239 51.3142 36.3239 51.9288 35.7093C52.5434 35.0947 48.9788 9.89685 48.9788 9.89685H42.9559C42.9559 9.89685 37.7934 21.9427 36.81 21.9427C35.8267 21.9427 31.4017 9.89685 31.4017 9.89685H25.3788Z",fill:"white",stroke:"black",strokeWidth:"2.1869"})))},go=function(e){return a.a.createElement(bo,e)};function ho(e){return(ho="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})(e)}function yo(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}go.propTypes={},go.defaultProps={};var vo=Object(y.a)((function(e){var n=e.value,t=void 0===n?0:n,r=e.max,o=void 0===r?100:r,i=e.busy,l=void 0!==i&&i,c=e.status;t=Math.min(t,o);var u=parseFloat(t)/parseFloat(o);return a.a.createElement("div",{className:e.className},a.a.createElement(xo,{ratio:u,busy:e.busy,status:c}),a.a.createElement("div",{className:"nui-progress-buttons"},l&&e.onPauseClick&&a.a.createElement("div",{className:"nui-progress-button pause",onClick:e.onPauseClick},e.paused?a.a.createElement(P.InlineIcon,{icon:Z.a}):a.a.createElement(P.InlineIcon,{icon:J.a})),l&&e.onStopClick&&a.a.createElement("div",{className:"nui-progress-button stop",onClick:e.onStopClick},a.a.createElement(P.InlineIcon,{icon:te.a}))))}))(fo||(fo=yo(["\n position: relative;\n box-sizing: border-box;\n height: 30px;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.06) 0%,\n rgba(0, 0, 0, 0.02) 50%,\n rgba(0, 0, 0, 0.10) 100%\n );\n border-radius: 12px;\n\n .nui-progress-buttons {\n position: absolute;\n height: 100%;\n right: 0px;\n display: flex;\n align-items: center;\n padding-right: 5px;\n\n .nui-progress-button {\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 2px;\n border-radius: 100%;\n color: white;\n padding: 2px;\n width: 18px;\n height: 18px;\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &.stop {\n background: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n }\n }\n"])),C.blue,Object(v.a)(.1,C.blue),C.red,Object(v.a)(.1,C.red)),xo=Object(y.a)((function(e){var n,t,r,o=isNaN(e.ratio)?0:parseInt(Math.round(100*e.ratio)),i=ho(e.status),l="undefined"!==i?"string"===i?e.status:e.status(o):"".concat(o,"%");return a.a.createElement("div",{className:e.className,style:(n={minWidth:28},t="minWidth",r=o+"%",t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n)},a.a.createElement("div",null,l))}))(po||(po=yo(["\n position: absolute;\n overflow: hidden;\n top: 0; left: 0;\n height: 100%;\n background-color: ",";\n border-radius: 12px;\n text-align: center;\n padding: 0 10px;\n vertical-align: middle;\n color: white;\n font-family: ",";\n font-size: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: min-width .2s ease-out;\n\n background-size: 30px 30px;\n background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%,\n transparent 25%,\n transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,\n transparent 75%, transparent);\n animation: ",";\n\n @keyframes animate-stripes {\n 0% { background-position: 0 0; }\n 100% { background-position: 60px 0; }\n }\n"])),C.progress,C.fontFamily,(function(e){return e.busy?"animate-stripes 1.6s linear infinite":"none"})),wo=function(e){return a.a.createElement(vo,e)};wo.propTypes={value:u.a.number,max:u.a.number,busy:u.a.bool,paused:u.a.bool,onPauseClick:u.a.func,onStopClick:u.a.func,status:u.a.oneOf([u.a.string,u.a.func])},wo.defaultProps={value:0,max:100,busy:!1,paused:!1,onPauseClick:void 0,onStopClick:void 0,status:void 0};var Oo,ko=t(75),Eo=t.n(ko);var jo,So=y.a.div(Oo||(Oo=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n position: relative;\n color: white;\n font-family: ",";\n font-size: ",";\n display: flex;\n height: 61px;\n overflow: hidden;\n align-items: center;\n padding: 15px 20px;\n background-color: ",";\n display: flex;\n\n .nui-header-logo-container {\n width: 102px;\n height: 102px;\n padding: 20px;\n margin-right: 25px;\n background: rgba(",", 0.1);\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(-29.83deg);\n }\n\n .nui-header-title-container {\n flex-direction: column;\n display: flex;\n\n .nui-header-title {\n color: white;\n font-family: ",";\n font-size: 23px;\n line-height: normal;\n margin: 0;\n }\n\n .nui-header-subtitle {\n color: white;\n font-family: ",";\n line-height: normal;\n font-size: ",";\n }\n }\n\n .nui-header-extra-content {\n flex: 1;\n margin: 0 20px;\n }\n"])),C.fontFamily,C.fontSizeText,C.header,C.blackRGB,C.fontFamily,C.fontFamily,C.fontSizeText),Co=function(e){var n=e.title,t=void 0===n?"NekoUI":n,r=e.subtitle,o=void 0===r?"By Jordy Meow":r,i=e.children,l=e.saving,c=void 0!==l&&l;return a.a.createElement(So,null,a.a.createElement("div",{className:"nui-header-logo-container"},a.a.createElement(go,null)),a.a.createElement("div",{className:"nui-header-title-container"},a.a.createElement("h1",{className:"nui-header-title"},t),a.a.createElement("small",{className:"nui-header-subtitle"},a.a.createElement("a",{target:"_blank",href:"https://meowapps.com",style:{color:"white",textDecoration:"none"}},o))),a.a.createElement("div",{className:"nui-header-extra-content"},i),c&&a.a.createElement(ca,{icon:Eo.a,width:"36",height:"36"}))},Po=function(e){return a.a.createElement(Co,e)};function No(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Ao(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ao(e,n)}(e,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.")}()}function Ao(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}Po.propTypes={title:u.a.string,subtitle:u.a.string,saving:u.a.bool},Po.defaultProps={title:"NekoUI",subtitle:"By Jordy Meow",saving:!1};var zo,Ro,Io=y.a.div(jo||(jo=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n align-items: center;\n display: flex;\n\n .neko-paging-text {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 14px;\n }\n\n .neko-paging-controller {\n box-sizing: border-box;\n height: 30px;\n align-items: center;\n background-color: rgba(",", 0.8);\n border-radius: 15px;\n display: flex;\n margin-left: 15px;\n padding: 3px 5px;\n\n .nako-paging-controller-icon {\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n margin-right: 2px;\n height: 22px;\n width: 22px;\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n transition: transform 0.1s ease-in;\n box-sizing: border-box;\n\n :last-child {\n margin-right: 0;\n }\n\n &.disabled {\n color: ",";\n cursor: default;\n pointer-events: none;\n }\n\n &:hover {\n transform: scale(1.2) !important;\n z-index: 10;\n position: relative;\n }\n }\n\n .nako-paging-controller-text {\n color: ",";\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n margin: 0 40px;\n user-select: none;\n }\n\n span.neko-paging-current-page {\n cursor: pointer;\n text-decoration: underline;\n }\n input.neko-paging-current-page {\n width: 1.5rem;\n }\n }\n\n &.neko-paging-full {\n flex-grow: 1;\n\n .neko-paging-controller {\n flex-grow: 1;\n }\n .nako-paging-controller-text {\n margin: 0 auto;\n }\n }\n"])),C.fontFamily,C.blueRGB,C.white,C.darkGray,C.white,C.fontFamily),To=function(e){var n=e.currentPage,t=e.limit,o=e.onClick,i=e.total,l=e.onCurrentPageChanged,c=e.full,u=!!l,s=Math.ceil(0===i?1:t>0?i/t:1),d="nako-paging-controller-icon ".concat(1===n?"disabled":""),f="nako-paging-controller-icon ".concat(n===s?"disabled":""),p=No(Object(r.useState)(!1),2),m=p[0],b=p[1],g=c?"neko-paging-full":"",h=function(e){b(!1),o(e)},y=function(e){var n=Number(e);return n>s?s:n<1?1:n},v=function(e){var n=e.target.value;isNaN(n)||l(y(n)),b(!1)},x=function(e){if("Enter"===event.key){e.preventDefault();var n=e.target.value;isNaN(n)||l(y(n)),b(!1)}},w=Object(r.useMemo)((function(){if(!m){return a.a.createElement("span",{className:u?"neko-paging-current-page":"",onClick:function(){u&&b(!0)}},n)}return a.a.createElement("input",{autoFocus:!0,type:"text",className:u?"neko-paging-current-page":"",defaultValue:n,onBlur:v,onKeyPress:x})}),[n,m,l]),O=function(e){m&&e.target===e.currentTarget&&b(!1)};return a.a.createElement(Io,{className:g},a.a.createElement("span",{className:"neko-paging-text"},i," result",i>0?"s":""),a.a.createElement("div",{className:"neko-paging-controller",onClick:O},a.a.createElement(P.Icon,{icon:D.a,className:d,onClick:function(){return h(1)}}),a.a.createElement(P.Icon,{icon:M.a,className:d,onClick:function(){return h(n-1)}}),a.a.createElement("p",{className:"nako-paging-controller-text",onClick:O},"Page ",w," of ",s),a.a.createElement(P.Icon,{icon:G.a,className:f,onClick:function(){return h(n+1)}}),a.a.createElement(P.Icon,{icon:L.a,className:f,onClick:function(){return h(s)}})))},_o=function(e){return a.a.createElement(To,e)};function Do(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}_o.propTypes={currentPage:u.a.number,limit:u.a.number,total:u.a.number,onClick:u.a.func},_o.defaultProps={currentPage:void 0,limit:void 0,total:void 0,onClick:void 0};var Bo=y.a.div(zo||(zo=Do(["\n display: flex;\n align-items: center;\n"]))),Lo=y.a.span(Ro||(Ro=Do(["\n color: ",";\n cursor: pointer;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 17px;\n\n &.is-active {\n cursor: default;\n color: ",';\n font-weight: bold;\n }\n\n &::after {\n content: "|";\n color: ',";\n padding: 0 4px;\n }\n\n &:last-child::after {\n content: none;\n }\n\n span {\n color: ",";\n font-weight: normal;\n margin-left: 4px;\n }\n"])),(function(e){return e.variant||C.blue}),C.fontFamily,C.black,C.darkGray,C.darkGray),Fo=function(e){var n=e.id,t=e.value,r=e.onChange,o=e.busy,i=void 0!==o&&o,l=e.className,c=a.a.Children.map(e.children,(function(e,o){return a.a.cloneElement(e,{busy:i,isActive:e.props.value===t,onClick:function(e){e!==t&&r(e,n)}})}));return a.a.createElement(Bo,{className:l},c)},Mo=function(e){var n=e.title,t=e.value,o=void 0===t?0:t,i=e.count,l=e.onClick,c=e.busy,u=e.isActive,s=e.className,d=e.variant,f=Object(r.useMemo)((function(){if(d)return Object.keys(C).includes(d)?C[d]:d}),[d]);return a.a.createElement(Lo,{onClick:function(){return l(o)},className:"".concat(u?"is-active":""," ").concat(s),variant:f},n,null===i?null:a.a.createElement("span",null,"(",c?a.a.createElement(ca,{icon:"replay",spinning:!0,width:12,containerStyle:{display:"inline"}}):i,")"))},Uo=function(e){return a.a.createElement(Fo,e)};Uo.propTypes={id:u.a.string,value:u.a.string,onChange:u.a.func},Uo.defaultProps={id:void 0,value:void 0,onChange:void 0};var Go,qo=function(e){return a.a.createElement(Mo,e)};qo.propTypes={title:u.a.string,value:u.a.string,count:u.a.number,onClick:u.a.func,isActive:u.a.bool,variant:u.a.string},qo.defaultProps={title:void 0,value:"default",count:0,onClick:void 0,isActive:!1,variant:void 0};var Ho,$o,Ko=y.a.section(Go||(Go=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .mask {\n position: absolute;\n overflow: hidden;\n display: block;\n width: ","px;\n height: ","px;\n }\n\n .semi-circle {\n position: relative;\n display: block;\n width: ","px;\n height: ",'px;\n background: linear-gradient(to right, #27b775 0%, #f3f32c 50%, #f71b1b 100%);\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n\n &::before {\n content: "";\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 2;\n display: block;\n width: 140px;\n height: 70px;\n margin-left: -70px;\n background: ',";\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .semi-circle--mask {\n position: absolute;\n top: 0;\n left: 0;\n width: ","px;\n height: ",'px;\n background: transparent;\n transform-origin: center center;\n backface-visibility: hidden;\n transition: all .3s ease-in-out;\n\n &::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0%;\n z-index: 2;\n display: block;\n width: ',"px;\n height: ","px;\n margin-top: -1px;\n margin-left: -1px;\n background: #5396c1d6;\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .gauge { \n width: ","px;\n height: ","px;\n \n .semi-circle--mask {\n transform: rotate(","deg) translate3d(0,0,0);\n }\n }\n\n .child-container {\n position: absolute;\n font-size: 16px;\n display: flex;\n width: ","px;\n height: ","px;\n z-index: 10;\n\n .spacing {\n flex: auto;\n }\n\n .child {\n color: white;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n }\n"])),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.backgroundColor}),(function(e){return e.width}),(function(e){return e.width}),(function(e){return e.width+2}),(function(e){return e.width/2+2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.degrees}),(function(e){return e.width+2}),(function(e){return e.width/2})),Wo=function(e){var n=e.value,t=void 0===n?1e3:n,r=(e.min,e.max),o=void 0===r?2500:r,i=e.width,l=void 0===i?200:i,c=e.background,u=void 0===c?"#007cba":c,s=e.children,d=180*(t<=o?t:o)/o;return a.a.createElement(Ko,{backgroundColor:u,degrees:d,width:l},a.a.createElement("div",{class:"gauge"},a.a.createElement("div",{class:"mask"},a.a.createElement("div",{class:"semi-circle"}),a.a.createElement("div",{class:"semi-circle--mask"})),a.a.createElement("div",{class:"child-container"},a.a.createElement("div",{class:"child"},a.a.createElement("div",{class:"spacing"}),s))))};function Jo(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Wo.propTypes={value:u.a.number,min:u.a.number,max:u.a.number,width:u.a.number,background:u.a.string},Wo.defaultProps={value:1e3,min:0,max:2500,width:200,background:"#007cba"};y.a.p(Ho||(Ho=Jo(["\n background: #ba341e;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n\n a {\n color: white;\n font-weight: bold;\n }\n"]))),y.a.p($o||($o=Jo(["\n background: #1eba96;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n text-align: center;\n\n a {\n color: white;\n font-weight: bold;\n }\n"])));var Vo,Zo=["multiple","width","height","iconSize","iconColor","onSuccess","onFailure","style","apiUrl","apiConfig","onClick","disabled"];function Xo(){return(Xo=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Yo(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Qo(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Yo(Object(t),!0).forEach((function(n){ei(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Yo(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ei(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ni(e){return function(e){if(Array.isArray(e))return ii(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oi(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 ti(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function ri(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){ti(o,r,a,i,l,"next",e)}function l(e){ti(o,r,a,i,l,"throw",e)}i(void 0)}))}}function ai(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||oi(e,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.")}()}function oi(e,n){if(e){if("string"==typeof e)return ii(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ii(e,n):void 0}}function ii(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function li(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var ci=y.a.div(Vo||(Vo=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n box-sizing: border-box;\n background: #C4C4C4;\n color: rgb(0 0 0 / 60%);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n transition: all 0.25s ease;\n\n &[data-is-disabled=true] {\n svg {\n opacity: 0.7;\n }\n }\n\n div {\n transition: all 0.5s ease;\n transform: scale(1.5);\n pointer-events: none;\n max-width: 100%;\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.dropping {\n background: #a4d5ff;\n\n div {\n transform: scale(2);\n }\n }\n"]))),ui=function(e){var n=e.multiple,t=e.width,o=void 0===t?"100%":t,i=e.height,l=void 0===i?"100%":i,c=e.iconSize,u=void 0===c?48:c,s=e.iconColor,d=void 0===s?"#A9A9A9":s,f=e.onSuccess,p=void 0===f?function(){}:f,m=e.onFailure,b=void 0===m?function(){}:m,g=e.style,h=void 0===g?{}:g,y=e.apiUrl,v=e.apiConfig,x=e.onClick,w=e.disabled,O=li(e,Zo),k=ai(Object(r.useState)(!1),2),E=k[0],j=k[1],S=ai(Object(r.useState)(Math.floor(1e8*Math.random())),2),C=S[0],P=(S[1],Object(r.useRef)(null)),N=Object(r.useRef)(null),A=ai(Object(r.useState)(!1),2),z=A[0],R=A[1];Object(r.useEffect)((function(){N&&(N.current.style.pointerEvents=z?"none":"auto")}),[N,z]);var I=function(){var e=ri(regeneratorRuntime.mark((function e(t){var r,a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(!0),r=function(){var e=ri(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v.file=n,e.next=3,Ql(y,v);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.next=4,Promise.all(t.map(function(){var e=ri(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:a=e.sent,o=a.filter((function(e){return e.success})),i=a.filter((function(e){return!e.success})),o.length&&p(n?o:o[0]),i.length&&b(n?i:i[0]),R(!1);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),T=function(e){e.preventDefault(),e.stopPropagation()},_=function(e){e.preventDefault(),e.stopPropagation(),j(!0)},D=function(e,n){n.preventDefault(),n.stopPropagation(),j(!1),console.log(e),I(e)};return a.a.createElement("div",{ref:N},a.a.createElement("input",{type:"file",id:C,accept:"image/*",ref:P,onChange:function(e){var n=ni(e.target.files);D(n,e)},style:{display:"none"},disabled:w,multiple:n}),a.a.createElement(ci,Xo({onClick:function(){x?x():P.current.click()},style:Qo(Qo({},h),{},{width:o,height:l}),className:E?"dropping":"",onDragOver:T,onDragEnter:_,onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),j(!1)},onDrop:function(e){var n=ni(e.dataTransfer.files);D(n,e)},"data-is-disabled":w},O),a.a.createElement(ca,{width:u,height:u,icon:"upload",spinning:z,color:d,onDragOver:T,onDragEnter:_})))};ui.propTypes={width:u.a.string,height:u.a.string,onSuccess:u.a.func,onFailure:u.a.func,style:u.a.object,apiUrl:u.a.string,apiConfig:u.a.object},ui.defaultProps={width:"100%",height:"100%",onSuccess:function(){},onFailure:function(){},style:{}};var si,di=["onSuccess","onFailure","apiUrl","apiConfig","className","disabled","children","multiple"];function fi(){return(fi=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function pi(e){return function(e){if(Array.isArray(e))return yi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hi(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 mi(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function bi(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){mi(o,r,a,i,l,"next",e)}function l(e){mi(o,r,a,i,l,"throw",e)}i(void 0)}))}}function gi(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||hi(e,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.")}()}function hi(e,n){if(e){if("string"==typeof e)return yi(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?yi(e,n):void 0}}function yi(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function vi(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var xi=y.a.div(si||(si=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n &.dropping {\n background: #a4d5ff;\n }\n"]))),wi=Object(r.forwardRef)((function(e,n){var t=e.onSuccess,o=void 0===t?function(){}:t,i=e.onFailure,l=void 0===i?function(){}:i,c=e.apiUrl,u=e.apiConfig,s=e.className,d=e.disabled,f=void 0!==d&&d,p=e.children,m=e.multiple,b=vi(e,di),g=gi(Object(r.useState)(!1),2),y=g[0],v=g[1],x=gi(Object(r.useState)(!1),2),w=x[0],O=x[1],k=function(){var e=bi(regeneratorRuntime.mark((function e(n){var t,r,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O(!0),t=function(){var e=bi(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u.file=n,e.next=3,Ql(c,u);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.next=4,Promise.all(n.map(function(){var e=bi(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:r=e.sent,a=r.filter((function(e){return e.success})),i=r.filter((function(e){return!e.success})),a.length&&o(m?a:a[0]),i.length&&l(m?i:i[0]),O(!1);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),E=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation()}),[f]),j=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),f||v(!0)}),[f]),S=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),f||v(!1)}),[f]),C=Object(r.useCallback)((function(e){if(!f){var n=pi(e.dataTransfer.files);P(n,e)}}),[f]),P=function(e,n){n.preventDefault(),n.stopPropagation(),v(!1),k(e)};return a.a.createElement(h,{busy:w},a.a.createElement("input",{type:"file",accept:"image/*",ref:n,onChange:function(e){var n=pi(e.target.files);P(n,e)},style:{display:"none"},multiple:m}),a.a.createElement(xi,fi({className:"".concat(s||""," ").concat(y?"dropping":""),onDragOver:E,onDragEnter:j,onDragLeave:S,onDrop:C},b),p))}));wi.propTypes={ref:u.a.ref,onSuccess:u.a.func,onFailure:u.a.func,apiUrl:u.a.string,apiConfig:u.a.object,disabled:u.a.bool},wi.defaultProps={onSuccess:function(){},onFailure:function(){},disabled:!1};var Oi,ki,Ei=t(76),ji=t.n(Ei),Si=["id","isOpen","children","className","style","ok","cancel","customButtons","customButtonsPosition","title","content","onOkClick","onCancelClick","okOnEnter","thumbnail"];function Ci(){return(Ci=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Pi(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function Ni(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Ai=y.a.div(Oi||(Oi=Ni(["\n\n .ReactModal__Overlay {\n z-index: 100;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n background: "," !important;\n }\n .ReactModal__Overlay {\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n .ReactModal__Overlay .neko-modal {\n opacity: 0;\n transform: scale(0.85);\n transition: all 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open .neko-modal {\n transform: scale(1);\n opacity: 1;\n }\n .ReactModal__Overlay--before-close .neko-modal {\n transform: scale(0.85);\n opacity: 0;\n }\n .neko-modal {\n background: ",";\n position: relative;\n box-shadow: 2px 2px 15px 2px rgba(0, 0, 0, 0.8);\n outline: none;\n padding: 15px;\n max-width: 820px;\n }\n"])),C.overlay,C.white),zi=y.a.div(ki||(ki=Ni(["\n width: 518px;\n\n p {\n margin: 0;\n }\n .title {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n }\n .content-container {\n display: flex;\n margin-top: 15px;\n\n .thumbnail {\n margin-right: 15px;\n width: 240px;\n overflow: hidden;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n .content {\n flex: auto;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 14px;\n width: 100%;\n }\n }\n .button-group {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n margin-top: 15px;\n }\n"])),C.fontFamily,C.fontFamily),Ri=function(e){var n=e.id,t=void 0===n?"neko-modal-parent":n,o=e.isOpen,i=e.children,l=e.className,c=e.style,u=e.ok,s=void 0===u?"OK":u,d=e.cancel,f=void 0===d?"Cancel":d,p=e.customButtons,m=void 0===p?null:p,b=e.customButtonsPosition,g=void 0===b?"right":b,h=e.title,y=void 0===h?"":h,v=e.content,x=void 0===v?"":v,w=e.onOkClick,O=e.onCancelClick,k=e.okOnEnter,E=void 0!==k&&k,j=e.thumbnail,S=Pi(e,Si),C=c?"custom-modal":"",P=null!==m,N=Object(r.useCallback)((function(e){"Enter"===e.key&&w()}),[w]);Object(r.useEffect)((function(){if(E&&o)return window.addEventListener("keyup",N),function(){window.removeEventListener("keyup",N)}}),[o,N]);var A=i||a.a.createElement(zi,null,y&&a.a.createElement("p",{className:"title"},y),a.a.createElement("div",{className:"content-container"},j&&a.a.createElement("div",{className:"thumbnail"},j),x&&a.a.createElement("p",{className:"content"},x)),a.a.createElement("div",{className:"button-group"},P&&"left"===g&&m,O&&a.a.createElement(Bn,{className:"danger",onClick:O},f),w&&a.a.createElement(Bn,{onClick:w},s),P&&"right"===g&&m));return a.a.createElement(a.a.Fragment,null,a.a.createElement(Ai,{id:t}),a.a.createElement(ji.a,Ci({ariaHideApp:!1,parentSelector:function(){return document.getElementById(t)},closeTimeoutMS:200,className:"neko-modal ".concat(l||""," ").concat(C),isOpen:o},S),A))},Ii=function(e){return a.a.createElement(Ri,e)};Ii.propTypes={className:u.a.string,style:u.a.object,ok:u.a.string,cancel:u.a.string,title:u.a.string,content:u.a.string,onOkClick:u.a.func,onCancelClick:u.a.func,customButtons:u.a.object,okOnEnter:u.a.bool,thumbnail:u.a.element},Ii.defaultProps={className:void 0,style:void 0,ok:"OK",cancel:"Cancel",title:"",content:"",onOkClick:void 0,onCancelClick:void 0,customButtons:null,okOnEnter:!1,thumbnail:void 0};var Ti,_i=t(77),Di=t.n(_i),Bi=["checked","intermediate","onSelect","onUnselect"];function Li(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Fi(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Li(Object(t),!0).forEach((function(n){Mi(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Li(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Mi(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ui(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Gi=y.a.table(Ti||(Ti=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-family: ",";\n border-spacing: 0;\n width: 100%;\n word-break: break-all;\n\n th, td {\n margin: 0;\n padding: 5px;\n border-bottom: 1px solid rgba(",", 0.1);\n border-right: 1px solid rgba(",", 0.1);\n\n a {\n text-decoration: none;\n }\n\n :last-child {\n border-right: 0;\n }\n }\n\n &.nekotable-raw {\n th, td {\n border: 0;\n }\n }\n\n th, tfoot td {\n height: 30px;\n background-color: ",";\n color: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n text-align: left;\n\n div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n &.sortable {\n cursor: pointer;\n }\n }\n }\n\n thead tr th:first-child {\n border-top-left-radius: 10px;\n }\n\n thead tr th:last-child {\n border-top-right-radius: 10px;\n }\n\n tfoot tr th:first-child {\n border-bottom-left-radius: 10px;\n }\n\n tfoot tr th:last-child {\n border-bottom-right-radius: 10px;\n }\n\n &.nekotable-raw {\n th {\n font-weight: bold;\n }\n th, tfoot td {\n background-color: ",";\n color: ",";\n }\n }\n\n tbody {\n background-color: ",";\n \n tr {\n :nth-child(even) {\n background-color: ",";\n }\n &.selected {\n background-color: rgba(",", 0.8);\n color: ",";\n\n a {\n color: #81e8ff;\n }\n }\n }\n img {\n vertical-align: bottom;\n }\n }\n\n &.nekotable-raw {\n tbody {\n tr {\n :nth-child(even) {\n background-color: ",";\n }\n &.selected {\n background-color: ",";\n color: ",";\n }\n }\n }\n }\n\n tfoot tr:last-child {\n td {\n border-bottom: 0;\n }\n }\n\n .table-checkbox-cell {\n width: 35px;\n text-align: center;\n\n svg {\n padding: 5px;\n cursor: pointer;\n }\n }\n"])),C.fontFamily,C.blackRGB,C.blackRGB,C.blue,C.white,C.white,C.black,C.white,C.tableGray,C.blueRGB,C.white,C.white,C.white,C.black),qi=function(e){var n=e.checked,t=e.intermediate,r=void 0!==t&&t,o=e.onSelect,i=void 0===o?function(){}:o,l=e.onUnselect,c=void 0===l?function(){}:l;Ui(e,Bi);return a.a.createElement(P.Icon,{icon:r?Di.a:n?yr.a:gr.a,width:"24px",height:"24px",onClick:function(e){n?c(e):i(e)}})},Hi={left:"start",center:"center",right:"end"},$i=function(e){var n=e.columns,t=e.data,r=e.busy,o=void 0!==r&&r,i=e.onSelect,l=e.onUnselect,c=e.selectedItems,u=e.sort,s=e.onSortChange,d=e.variant,f=void 0===d?"default":d,p=n.length+(i?1:0),m=function(e){var n={};return e.align&&(n={textAlign:e.align,justifyContent:Hi[e.align]}),e.width&&(n=Fi(Fi({},n),{},{width:e.width})),e.style&&(n=Fi(Fi({},n),e.style)),n},b=t.map((function(e){var t=n.map((function(n){return{value:e[n.accessor],style:m(n)}}));return{id:e.id,cells:t}})),g=b.map((function(e){return e.id})),y=g.filter((function(e){return c.includes(e)})).length===g.length,v=!y&&c.length>0,x=n.reduce((function(e,n,t){return!1===n.visible&&e.push(t),e}),[]),w=a.a.createElement("tr",null,i&&a.a.createElement("th",{className:"table-checkbox-cell"},a.a.createElement(qi,{checked:y,intermediate:v,onSelect:function(e){return i(g,e)},onUnselect:function(e){l(v?c:g,e)}})),n.filter((function(e,n){return!x.includes(n)})).map((function(e){var n=u&&u.accessor===e.accessor,t=u&&"asc"===u.by,r=m(e);return a.a.createElement("th",{style:r,key:e.accessor},a.a.createElement("div",{className:e.sortable?"sortable":"",style:r,onClick:e.sortable?function(r){s(e.accessor,n&&t?"desc":"asc",r)}:void 0},a.a.createElement("div",null,e.title),a.a.createElement("div",null,e.sortable&&a.a.createElement(P.Icon,{icon:n?t?H.a:K.a:H.a,color:n?C.white:"rgba(".concat(C.blackRGB,", 0.1)"),width:"26px",height:"26px"}))))})));return a.a.createElement(h,{busy:o,overlayStyle:{top:"36px",height:"calc(100% - 76px)"}},a.a.createElement(Gi,{className:"nekotable-".concat(f)},a.a.createElement("thead",null,w),a.a.createElement("tbody",null,!b.length&&a.a.createElement("tr",null,a.a.createElement("td",{colspan:p,style:{textAlign:"center",height:40,color:"gray"}},"Empty.")),b.map((function(e){return a.a.createElement("tr",{className:c.includes(e.id)?"selected":""},i&&a.a.createElement("td",{className:"table-checkbox-cell"},a.a.createElement(qi,{checked:c.includes(e.id),onSelect:function(n){return i([e.id],n)},onUnselect:function(n){return l([e.id],n)}})),e.cells.filter((function(e,n){return!x.includes(n)})).map((function(e){return a.a.createElement("td",{style:e.style},e.value)})))}))),"default"===f&&a.a.createElement("tfoot",null,w)))},Ki=function(e){return a.a.createElement($i,e)};Ki.propTypes={columns:u.a.arrayOf(u.a.any),data:u.a.arrayOf(u.a.any),busy:u.a.arrayOf(u.a.bool),onSelect:u.a.func,onUnselect:u.a.func,selectedItems:u.a.arrayOf(u.a.object),onSortChange:u.a.func,variant:u.a.string},Ki.defaultProps={columns:void 0,data:void 0,busy:!1,onSelect:void 0,onUnselect:void 0,selectedItems:void 0,onSortChange:void 0,variant:"default"};var Wi,Ji=["images","onNextPage","onPreviousPage","onRefresh","onClick","onRemoveClick","onZoomClick","onSearch","searchValue","busy","currentPage","limit","total","onPageChange","selected","multiSelect","showUploader","uploader","onSelectedOrderChanged","onUploadSuccess","onUploadFailure","uploadApiUrl","uploadApiConfig","uploadMultiple","onClose","onCancel","onSave"];function Vi(){return(Vi=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Zi(e){return function(e){if(Array.isArray(e))return Qi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Yi(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 Xi(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||Yi(e,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.")}()}function Yi(e,n){if(e){if("string"==typeof e)return Qi(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Qi(e,n):void 0}}function Qi(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function el(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var nl,tl,rl,al,ol=Object(y.a)(Ii)(Wi||(Wi=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n width: 633px;\n\n &.custom-modal {\n padding: 0;\n }\n\n .neko-modal-wrapper {\n padding: 15px;\n }\n\n .neko-media-library-modal-content-header {\n align-items: center;\n display: flex;\n justify-content: space-between;\n\n h1 {\n font-size: 21px;\n font-weight: bold;\n margin: 0;\n }\n\n input {\n background-color: ",";\n border: 1px solid ",";\n border-radius: 3px;\n }\n }\n .neko-media-library-modal-content-body {\n margin-top: 33px;\n margin-bottom: 36px;\n\n .neko-media-library-modal-content-body-list {\n max-height: 406px;\n overflow-y: scroll;\n margin-bottom: 10px;\n width: 100%;\n }\n .neko-media-library-modal-content-body-gallery {\n display: grid;\n gap: 10px;\n grid-template-columns: repeat(6, 1fr);\n margin-bottom: 10px;\n\n .neko-media-library-modal-content-media-container {\n cursor: pointer;\n position: relative;\n\n img {\n box-sizing: border-box;\n }\n\n &.selected {\n img {\n border: 5px solid ",";\n }\n }\n\n &:hover {\n .zoom-button {\n display: block;\n }\n }\n\n .zoom-button {\n background-color: rgba(",", 0.4);\n border: 0;\n border-radius: 30px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 2px;\n left: 2px;\n width: 30px;\n height: 30px;\n }\n }\n }\n\n .neko-media-library-modal-content-body-selected-gallery {\n display: flex;\n\n .neko-media-library-modal-content-selected-media-container {\n overflow: hidden;\n position: relative;\n height: 50px;\n width: 50px;\n padding-right: 5px;\n\n &.dummy {\n width: 50px;\n\n &.drag-over {\n width: 50px;\n }\n }\n\n &.drag-over {\n width: 105px;\n\n .zoom-button {\n left: 56px;\n }\n }\n\n &.drag-over::before {\n content: '';\n display: inline-block;\n width: 50px;\n height: 50px;\n background-color: ",";\n }\n\n img {\n box-sizing: border-box;\n width: 100%;\n max-width: 50px;\n }\n\n &.drag-over {\n img {\n margin-left: 5px;\n }\n }\n\n &:hover {\n .remove-button,\n .zoom-button {\n display: block;\n }\n }\n\n .remove-button {\n background-color: rgba(",", 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n right: 1px;\n width: 20px;\n height: 20px;\n }\n\n .zoom-button {\n background-color: rgba(",", 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n left: 1px;\n width: 20px;\n height: 20px;\n }\n }\n }\n }\n .neko-media-library-modal-content-footer {\n display: flex;\n justify-content: space-between;\n }\n .neko-media-library-modal-search {\n position: relative;\n }\n"])),C.white,C.black,C.blue,C.blackRGB,C.blue,C.blackRGB,C.blackRGB),il=function(e){Array.prototype.forEach.call(document.getElementsByClassName(e),(function(n){n.classList.remove(e)}))},ll="grid",cl="list",ul=[{accessor:"thumbnail_url",title:"Thumb",style:{width:"42px"}},{accessor:"title",title:"Title"},{accessor:"size",title:"Size",style:{width:"70px"}},{accessor:"filename",title:"Filename"}],sl=function(e){var n=e.images,t=(e.onNextPage,e.onPreviousPage,e.onRefresh),o=e.onClick,i=e.onRemoveClick,l=e.onZoomClick,c=e.onSearch,u=e.searchValue,s=e.busy,d=e.currentPage,f=e.limit,p=e.total,m=e.onPageChange,b=e.selected,g=e.multiSelect,y=void 0!==g&&g,v=e.showUploader,x=void 0!==v&&v,w=e.uploader,O=e.onSelectedOrderChanged,k=e.onUploadSuccess,E=void 0===k?function(){}:k,j=e.onUploadFailure,S=void 0===j?function(){}:j,P=e.uploadApiUrl,N=e.uploadApiConfig,A=e.uploadMultiple,z=e.onClose,R=e.onCancel,I=e.onSave,T=el(e,Ji),_=Xi(Object(r.useState)(u),2),D=_[0],B=_[1],L=Xi(Object(r.useState)(null),2),F=L[0],M=L[1],U=Xi(Object(r.useState)(ll),2),G=U[0],q=U[1],H=Object(r.useRef)(null),$=function(e,n){if(e.preventDefault(),null!==F){var t=e.currentTarget.getBoundingClientRect(),r=t.width,a=t.left,o=t.right,i=n;F<n&&(n>0&&n<b.length?i+1===F&&e.clientX>=o-25?i-=1:(i-1===F&&e.clientX>=a-25||55!==r&&e.clientX>=o-25)&&(i+=1):55!==r&&e.clientX>=o-25&&(i+=1)),il("drag-over"),F!==i&&F+1!==i&&document.getElementById("".concat("nmlm-selected-").concat(i)).classList.add("drag-over")}},K=function(e){e.preventDefault(),M(null),il("drag-over")},W=function(e,n){e.preventDefault(),null!==F&&F!==n&&F+1!==n&&O({currentIndex:F,afterIndex:F>n?n:n-1})},J=Object(r.useMemo)((function(){if(!y)return[];var e=a.a.createElement("div",{id:"nmlm-selected-".concat(b.length),className:"neko-media-library-modal-content-selected-media-container dummy",draggable:!1,onDragEnd:function(e){return K(e)},onDragOver:function(e){return $(e,b.length)},onDrop:function(e){return W(e,b.length)},onDragLeave:function(){return il("drag-over")}}),n=b.map((function(e,n){return a.a.createElement("div",{id:"nmlm-selected-".concat(n),key:e.id,className:"neko-media-library-modal-content-selected-media-container",draggable:!0,onDragStart:function(){return M(n)},onDragEnd:K,onDragOver:function(e){return $(e,n)},onDrop:function(e){return W(e,n)}},a.a.createElement("img",{src:e.src,className:"neko-media-library-modal-content-media"}),a.a.createElement("button",{className:"remove-button",onClick:function(){return i({id:e.id,src:e.src})}},a.a.createElement(ca,{icon:"close",color:C.white,width:19,height:19})),a.a.createElement("button",{className:"zoom-button",onClick:function(){return l({id:e.id,src:e.zoom_src})}},a.a.createElement(ca,{icon:"zoom-in",color:C.white,width:19,height:19})))}));return[].concat(Zi(n),[e])}),[b,F]),V=Object(r.useMemo)((function(){return n.map((function(e){return a.a.createElement("div",{key:e.id,className:"neko-media-library-modal-content-media-container ".concat(b.some((function(n){return n.id===e.id}))?"selected":""),onClick:function(){o({id:e.id,src:e.src,zoom_src:e.zoom_src})}},a.a.createElement("img",{src:e.src,className:"neko-media-library-modal-content-media",width:"90",height:"90"}),a.a.createElement("button",{className:"zoom-button",onClick:function(n){n.stopPropagation(),l({id:e.id,src:e.zoom_src})}},a.a.createElement(ca,{icon:"zoom-in",color:C.white,width:29,height:29})))}))}),[n,b]),Z=Object(r.useMemo)((function(){return n.map((function(e){return{id:e.id,thumbnail_url:a.a.createElement("img",{src:e.src,style:{width:40,height:40,objectFit:"cover"}}),title:e.title,size:e.size,filename:e.filename}}))}),[n]),X=Object(r.useMemo)((function(){var e=function(e,t){var r=n.find((function(n){return e.includes(n.id)}));o({id:r.id,src:r.src,zoom_src:r.zoom_src})};return a.a.createElement(Ki,{data:Z,columns:ul,onSelect:e,onUnselect:e,selectedItems:b.map((function(e){return e.id}))})}),[n,Z,b,o]);return a.a.createElement(ol,Vi({style:!0},T),a.a.createElement("div",{className:"neko-modal-wrapper",draggable:!0,onDragOver:function(){return il("drag-over")}},a.a.createElement(wi,{ref:H,onSuccess:E,onFailure:S,apiUrl:P,apiConfig:N,disabled:!x||null!==F,multiple:A},a.a.createElement("div",{className:"neko-media-library-modal-content"},a.a.createElement("div",{className:"neko-media-library-modal-content-header"},a.a.createElement(_t,{h1:!0},"Media Library"),a.a.createElement("div",{style:{display:"flex"}},a.a.createElement("div",{className:"neko-media-library-modal-search"},a.a.createElement(zr,{value:D,disabled:s,onEnter:c,onChange:function(e){return B(e)},placeholder:"Search..."}),""!==D&&a.a.createElement(ca,{icon:"close",containerStyle:{width:"20px",position:"absolute",right:"5px",top:"5px",cursor:"pointer"},width:20,height:20,color:C.darkGray,onClick:function(){B(""),t()}})),a.a.createElement(Bn,{onClick:function(){return c(D)},style:{marginLeft:"4px",marginRight:"4px"}},"Search"),a.a.createElement(ca,{color:G===ll?C.black:C.blue,icon:"view-grid",onClick:function(){return q(ll)},width:"20",height:"20"}),a.a.createElement(ca,{color:G===cl?C.black:C.blue,icon:"format-list-bulleted",onClick:function(){return q(cl)},width:"20",height:"20"}))),a.a.createElement("div",null,a.a.createElement("div",{className:"neko-media-library-modal-content-body"},a.a.createElement(h,{busy:s},a.a.createElement("div",{className:"".concat(G===ll?"neko-media-library-modal-content-body-gallery":"neko-media-library-modal-content-body-list")},G===ll&&x&&w,G===ll?V:X)),a.a.createElement("div",{className:"neko-media-library-modal-content-body-selected-gallery"},J))),a.a.createElement("div",{className:"neko-media-library-modal-content-footer"},a.a.createElement(_o,{limit:f,currentPage:d,total:p,onClick:m}),a.a.createElement("div",{style:{display:"flex"}},!!z&&a.a.createElement(Bn,{onClick:function(){return z()}},"Close"),!!R&&a.a.createElement(Bn,{className:"danger",onClick:function(){return R()}},"Cansel"),!!I&&a.a.createElement(Bn,{onClick:function(){return I()}},"Save")))))))},dl=function(e){return a.a.createElement(sl,e)};function fl(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return pl(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return pl(e,n)}(e,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.")}()}function pl(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ml(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}dl.propTypes={images:u.a.array,onNextPage:u.a.func,onPreviousPage:u.a.func,onRefresh:u.a.func,onClick:u.a.func,onSearch:u.a.func,searchValue:u.a.string,busy:u.a.bool,currentPage:u.a.number,limit:u.a.number,total:u.a.number,onPageChange:u.a.func,multiSelect:u.a.bool,selected:u.a.array,onClose:u.a.func,onCancel:u.a.func,onSave:u.a.func},dl.defaultProps={multiSelect:!1};var bl=y.a.div(nl||(nl=ml(["\n"]))),gl=y.a.div(tl||(tl=ml(["\n display: flex;\n"]))),hl=y.a.button(rl||(rl=ml(["\n font-family: ",";\n font-size: ",";\n border-radius: 8px 8px 0px 0px;\n border: 0;\n background-color: #459ad2;\n color: rgb(255 255 255 / 65%);\n display: flex;\n align-items: center;\n\n cursor: pointer;\n line-height: 17px;\n margin-right: 5px;\n text-align: left;\n padding: 10px 15px 10px 15px;\n\n &:focus {\n outline: none;\n }\n\n &.active {\n background-color: ",";\n color: ",";\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n cursor: default;\n display: inline-flex;\n padding-bottom: 7px;\n }\n\n &.hidden {\n display: none;\n }\n"])),C.fontFamily,C.fontSizeText,C.blue,C.white),yl=y.a.div(al||(al=ml(["\n background-color: ",";\n display: none;\n padding: 10px;\n\n &.active {\n display: block;\n }\n"])),C.blue),vl=function(e){var n=fl(a.a.useState(0),2),t=n[0],r=n[1],o=e.children?e.children.length?e.children.filter((function(e){return!!e})):[e.children]:[];a.a.useEffect((function(){if(e.keepTabOnReload){var n=new URL(window.location.href).searchParams.get("nekoTab");if(!n)return void r(0);var t=decodeURIComponent(n),i=a.a.Children.toArray(o).map((function(e){return e.props.title.replaceAll(" ","")})).indexOf(t);return-1===i?void r(0):void r(i)}r(0)}),[]);var i=a.a.Children.map(o,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1),hidden:n.props.hidden||!1,icon:n.props.icon||!1}})),l=a.a.Children.map(o,(function(e,n){return a.a.cloneElement(e,{isActive:n===t})})),c=function(n,t,a){t.requirePro||(r(n),e.onChange&&e.onChange(n,t,a),e.keepTabOnReload&&function(e){if(history.pushState&&e){var n=new URLSearchParams(window.location.search),t=encodeURIComponent(e.replaceAll(" ",""));n.set("nekoTab",t);var r=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+n.toString();window.history.replaceState({path:r},"",r)}}(t.title))};return a.a.createElement(bl,null,a.a.createElement(gl,null,i.map((function(e,n){return a.a.createElement(hl,{key:e.key,className:"neko-tab-title ".concat(n===t?"active":""," ").concat(e.requirePro?"disabled":""," ").concat(e.hidden?"hidden":""),onClick:function(t){c(n,e,t)}},e.icon&&a.a.createElement(ca,{icon:e.icon,width:15,height:15,style:{marginRight:"2px"},raw:!0}),e.title,a.a.createElement(Hn,{className:"inline",style:{marginLeft:10,marginRight:-5,top:-1},show:e.requirePro}))}))),l)},xl=function(e){var n=e.children,t=e.isActive;return a.a.createElement(yl,{className:"".concat(t?"active":"")},!!t&&n)},wl=function(e){return a.a.createElement(vl,e)};wl.propTypes={isPro:u.a.bool,onChange:u.a.func},wl.defaultProps={isPro:!1,onChange:void 0};var Ol,kl,El,jl=function(e){return a.a.createElement(xl,e)};function Sl(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Cl(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Cl(e,n)}(e,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.")}()}function Cl(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Pl(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}jl.propTypes={isActive:u.a.bool,requirePro:u.a.bool,title:u.a.string,icon:u.a.string},jl.defaultProps={isActive:!1,requirePro:!1,title:void 0,icon:void 0};var Nl=y.a.div(Ol||(Ol=Pl(["\n"]))),Al=y.a.div(kl||(kl=Pl(["\n align-items: center;\n background-color: ",";\n border: 0;\n cursor: pointer;\n display: flex;\n padding: 2px 3px 2px 19px;\n\n &.disabled {\n background-color: rgba(",", 0.25);\n cursor: default;\n }\n\n p {\n color: ",";\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n margin: 0;\n }\n\n .neko-side-tab-icon {\n color: ",";\n margin-left: auto;\n height: 36px;\n width: 36px;\n }\n"])),C.blue,C.yellowRGB,C.white,C.fontFamily,C.white),zl=y.a.div(El||(El=Pl(["\n background-color: ",";\n display: none;\n\n &.active {\n display: block;\n }\n"])),C.white),Rl=function(e){var n=Sl(a.a.useState(e.activeTabIndex),2),t=n[0],r=n[1],o=a.a.Children.map(e.children,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1),onDragOver:n.props.onDragOver,onDrop:n.props.onDrop,rightActions:n.props.rightActions||null}})),i=a.a.Children.map(e.children,(function(e,n){return a.a.cloneElement(e,{isActive:n===t})}));return a.a.createElement(Nl,null,o.map((function(n,o){return a.a.createElement(a.a.Fragment,null,a.a.createElement(Al,{key:n.key,className:"".concat(o===t?"active":""," ").concat(n.requirePro?"disabled":""),onClick:function(a){!function(n,a,o){if(!a.requirePro){var i=n===t?null:n;r(i),e.onChange&&e.onChange(i,a,o)}}(o,n,a)},onDragOver:n.onDragOver,onDrop:n.onDrop},a.a.createElement("p",null,a.a.createElement("span",{style:{fontSize:15}},n.title),a.a.createElement(Hn,{className:"inline",show:n.requirePro})),null===n.rightActions?a.a.createElement(P.Icon,{icon:o===t?H.a:G.a,className:"neko-side-tab-icon"}):o===t?a.a.createElement("div",{style:{marginLeft:"auto"}},n.rightActions):a.a.createElement(P.Icon,{icon:G.a,className:"neko-side-tab-icon"})),i[o])})))},Il=function(e){var n=e.children,t=e.isActive;return a.a.createElement(zl,{className:"".concat(t?"active":"")},n)},Tl=function(e){return a.a.createElement(Rl,e)};Tl.propTypes={isPro:u.a.bool,onChange:u.a.func,activeTabIndex:u.a.number},Tl.defaultProps={isPro:!1,onChange:void 0,activeTabIndex:null};var _l=function(e){return a.a.createElement(Il,e)};_l.propTypes={isActive:u.a.bool,requirePro:u.a.bool,title:u.a.string,onDragOver:u.a.func,onDrop:u.a.func,rightActions:u.a.element},_l.defaultProps={isActive:!1,requirePro:!1,title:void 0,onDragOver:void 0,onDrop:void 0,rightActions:void 0};var Dl,Bl=["align"];function Ll(){return(Ll=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Fl(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Ml=y.a.div(Dl||(Dl=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n box-sizing: border-box;\n display: flex;\n width: 100%;\n padding: 10px 10px;\n background: ",";\n border-radius: 10px;\n box-shadow: 0px 0px 10px rgba(",", 0.1);\n\n &.neko-align-left {\n justify-content: flex-start;\n }\n\n &.neko-align-right {\n justify-content: flex-end;\n }\n\n > *:not(:last-child) {\n margin-right: 5px;\n }\n"])),C.white,C.blackRGB),Ul=function(e){var n=e.align,t=void 0===n?"left":n,r=Fl(e,Bl);return a.a.createElement(Ml,Ll({className:"neko-align-".concat(t)},r),r.children)},Gl=function(e){return a.a.createElement(Ul,e)};Gl.propTypes={align:u.a.oneOf(["left","right"])},Gl.defaultProps={align:"left"};t(24);function ql(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}var Hl=function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};ql(this,e),this.url=r,this.message=n,this.code=t,this.body=a,this.debug=o};function $l(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||Vl(e,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.")}()}function Kl(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function Wl(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){Kl(o,r,a,i,l,"next",e)}function l(e){Kl(o,r,a,i,l,"throw",e)}i(void 0)}))}}function Jl(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Vl(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw o}}}}function Vl(e,n){if(e){if("string"==typeof e)return Zl(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Zl(e,n):void 0}}function Zl(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Xl=function(e){if(!e.data)return e;if(e.data.length>0&&e.data[0].meta){var n,t=Jl(e.data);try{for(t.s();!(n=t.n()).done;){var r=n.value;try{r.meta=JSON.parse(r.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",r.meta)}}}catch(e){t.e(e)}finally{t.f()}}else if(e.data.meta)try{e.data.meta=JSON.parse(e.data.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",x.meta)}return e},Yl=function(){var e=Wl(regeneratorRuntime.mark((function e(n){var t,r,a,o,i,l,c,u,s,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>1&&void 0!==d[1]?d[1]:{},r=null,a={},o=null,i=null,e.prev=5,(t=t||{}).headers=t.headers?t.headers:{},t.headers.Pragma="no-cache",t.headers["Cache-Control"]="no-cache",e.next=12,fetch("".concat(n),t);case 12:return i=e.sent,e.next=15,i.text();case 15:r=e.sent,(a=JSON.parse(r)).success||(l=!1===a.success?"NOT-SUCCESS":"N/A",c=a.message?a.message:"Unknown error. Check your Console Logs.","rest_no_route"===a.code?(c="The API can't be accessed. Is Rest API enabled?",l="NO-ROUTE"):"internal_server_error"===a.code&&(c="Server error. Please check your PHP Error Logs.",l="SERVER-ERROR"),o=new Hl(c,l,n,r||i)),e.next=26;break;case 20:e.prev=20,e.t0=e.catch(5),u="BROKEN-REPLY",s="The reply sent by the server is broken.",i&&i.status&&408===i.status&&(u="REQUEST-TIMEOUT",s="The request generated a timeout."),o=new Hl(s,u,n,r||i,e.t0);case 26:return o&&(console.error("[NekoError] JsonFetcher",o.url,{code:o.code,error:o.error,body:o.body}),a.success=!1,a.error=o),e.abrupt("return",Xl(a));case 28:case"end":return e.stop()}}),e,null,[[5,20]])})));return function(n){return e.apply(this,arguments)}}(),Ql=function(){var e=Wl(regeneratorRuntime.mark((function e(n){var t,r,a,o,i,l,c,u,s,d,f,p,m,b=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=b.length>1&&void 0!==b[1]?b[1]:{},r=t.json,a=void 0===r?{}:r,o=t.signal,i=t.file,l=t.nonce,c=i?new FormData:null,i)for(c.append("file",i),u=0,s=Object.entries(a);u<s.length;u++)d=$l(s[u],2),f=d[0],p=d[1],c.append(f,p);return m=l?{"X-WP-Nonce":l}:{},c||(m["Content-Type"]="application/json"),e.abrupt("return",Yl(n,{method:"POST",headers:m,body:c||JSON.stringify(a),signal:o}));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ec=(mgcl_gallery_custom_links.prefix,mgcl_gallery_custom_links.domain,mgcl_gallery_custom_links.rest_url.replace(/\/+$/,""),mgcl_gallery_custom_links.api_url.replace(/\/+$/,"")),nc=(mgcl_gallery_custom_links.plugin_url.replace(/\/+$/,""),"1"===mgcl_gallery_custom_links.is_pro&&mgcl_gallery_custom_links.is_registered,mgcl_gallery_custom_links.rest_nonce);function tc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function rc(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?tc(Object(t),!0).forEach((function(n){ac(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tc(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ac(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function oc(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function ic(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return lc(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return lc(e,n)}(e,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.")}()}function lc(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var cc=wp.element,uc=cc.useState,sc=cc.useMemo,dc=function(){var e=sc((function(){return["".concat(ec,"/all_settings/"),{headers:{"X-WP-Nonce":nc}}]}),[ec,nc]),n=Object(l.a)(e,Yl),t=n.data,a=n.mutate,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object(r.useState)(n),o=Wn(a,2),i=o[0],l=o[1],c=Object(r.useState)(null),u=Wn(c,2),s=u[0],d=u[1],f=Object(r.useState)(t),p=Wn(f,2),m=p[0],b=p[1],g=Object(r.useState)(0),h=Wn(g,2),y=h[0],v=h[1];return Object(r.useEffect)((function(){void 0!==e&&(e.success?(d(null),l(e.data),v(e.total?e.total:0)):d(e.error)),b(void 0===e)}),[e]),{busy:m,data:i,total:y,error:s}}(t,{},!0),i=o.busy,c=o.data,u=o.error,s=ic(uc(!1),2),d=s[0],f=s[1],p=i||d,m=null==c?void 0:c.mgcl_obmode,b=null==c?void 0:c.mgcl_parsing_engine,g=null==c?void 0:c.mgcl_log,h=null==c?void 0:c.mgcl_button_enabled,y=null==c?void 0:c.mgcl_button_label,v=function(){var e,n=(e=regeneratorRuntime.mark((function e(n,r){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=rc({},t.data))[r]=n,a(rc(rc({},t),{},{data:o}),!1),f(!0),e.prev=4,e.next=7,Ql("".concat(ec,"/update_option"),{json:{name:r,value:n},nonce:nc});case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),alert(e.t0.message);case 12:return e.prev=12,f(!1),a(),e.finish(12);case 16:case"end":return e.stop()}}),e,null,[[4,9,12,16]])})),function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){oc(o,r,a,i,l,"next",e)}function l(e){oc(o,r,a,i,l,"throw",e)}i(void 0)}))});return function(e,t){return n.apply(this,arguments)}}(),x=React.createElement(Zt,{title:"OB Mode"},React.createElement(kr,{max:"1"},React.createElement(wr,{id:"mgcl_obmode",label:"Enabled",value:"1",checked:m,onChange:v,description:"If the linked images are outside of the main content (header, sidebar, etc), OB Mode is needed. This slows down the processing (cache recommended)."}))),w=React.createElement(Zt,{title:"Parsing Engine",description:"Hello"},React.createElement(za,{id:"mgcl_parsing_engine",onChange:v},[{id:"none",value:"None",label:"None (Not Supported Yet)"},{id:"htmldomparser",value:"HtmlDomParser",label:"HtmlDomParser"},{id:"didom",value:"DiDom",label:"DiDom"}].map((function(e){return React.createElement(Ia,{id:"mgcl_parsing_engine_".concat(e.id),value:e.value,label:e.label,checked:b===e.value})})))),O=React.createElement(Zt,{title:"Logs"},React.createElement(kr,{max:"1"},React.createElement(wr,{id:"mgcl_log",label:"Logs",value:"1",checked:g,onChange:v,description:"Simple logging, written directly in the PHP Error Logs."}))),k=React.createElement(Zt,{title:"Use Buttons"},React.createElement(kr,{max:"1"},React.createElement(wr,{id:"mgcl_button_enabled",label:"Enabled",value:"1",description:"A call-to-action button will be used of a clickable image.",checked:h,onChange:v}))),E=React.createElement(Zt,{title:"Label"},React.createElement(zr,{id:"mgcl_button_label",name:"mgcl_button_label",value:y,description:"A call-to-action button will be used of a clickable image.",onBlur:v}));return React.createElement(vt,{nekoErrors:[u]},React.createElement(Po,{title:"Gallery Custom Links | Settings",subtitle:"By Jordy Meow"}),React.createElement(fr,null,React.createElement(pr,{full:!0},React.createElement(Kt,null,React.createElement(_t,{p:!0},"This plugin works out of the box, the default settings are the best for most installs. Don't hesitate to take a look at the ",React.createElement("a",{href:"https://meowapps.com/plugin/gallery-custom-links/"},"official page"),".")),React.createElement(wl,null,React.createElement(jl,{title:"Settings"},React.createElement(fr,null,React.createElement(pr,{minimal:!0},React.createElement(Mt,{busy:p,title:"Settings",className:"primary"},w,x,O)),React.createElement(pr,{minimal:!0},React.createElement(Mt,{busy:p,title:"CTA Buttons",className:"primary"},React.createElement(_t,{p:!0},React.createElement("b",null,"Currently works with the ",React.createElement("a",{href:"https://wordpress.org/plugins/meow-gallery/"},"Meow Gallery")," and Gutenberg Galleries.")," In a future Pro version, support for additional galleries might be added (please contact ",React.createElement("a",{href:"https://meowapps.com/contact/"},"Meow Apps")," for this)."),k,h?E:null))))))))},fc=wp.i18n.__,pc={};pc.PENDING=fc("Pending","gallery-custom-links"),pc.RENAME=fc("Rename","gallery-custom-links"),pc.TITLE=fc("Title","gallery-custom-links"),pc.SAME_PAGE=fc("Same page","gallery-custom-links"),pc.NEW_PAGE=fc("New page","gallery-custom-links"),pc.LINK_URL=fc("Link URL","gallery-custom-links"),pc.LINK_TARGET=fc("Link Target","gallery-custom-links"),pc.LINK_REL=fc("Link Rel","gallery-custom-links"),pc.ARIAL_LABEL=fc("Arial Label","gallery-custom-links");var mc,bc=pc;function gc(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function hc(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return yc(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return yc(e,n)}(e,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.")}()}function yc(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var vc=wp.element,xc=vc.useState,wc=vc.useCallback,Oc=[{label:bc.SAME_PAGE,value:"_self"},{label:bc.NEW_PAGE,value:"_blank"}],kc=y.a.div(mc||(mc=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n\talign-items: center;\n\tdisplay: flex;\n\tmargin-bottom: 10px;\n\n\tp {\n\t\tmargin: 0 !important;\n\t\twidth: 20%;\n\t}\n\n\t> div {\n\t\tflex-grow: 1;\n\t}\n"]))),Ec=function(e){var n=hc(xc(!1),2),t=n[0],r=n[1],a=t,o=e.postId,i=hc(xc(e.url),2),l=i[0],c=i[1],u=hc(xc(e.target?e.target:"_self"),2),s=u[0],d=u[1],f=hc(xc(e.rel),2),p=f[0],m=f[1],b=hc(xc(e.aria),2),g=b[0],h=b[1],y=hc(xc(!1),2),v=y[0],x=y[1],w=function(){var e,n=(e=regeneratorRuntime.mark((function e(n,t,a,o,i){var l,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),l=!0,e.prev=2,e.next=5,Ql("".concat(ec,"/update_meta"),{json:{post_id:n,_gallery_link_url:t,_gallery_link_target:a,_gallery_link_rel:o,_gallery_link_aria:i},nonce:nc});case 5:(c=e.sent).success||(l=!1,alert(c.message)),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),l=!1,alert(e.t0.message);case 13:return e.prev=13,l&&O(),r(!1),e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[2,9,13,17]])})),function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){gc(o,r,a,i,l,"next",e)}function l(e){gc(o,r,a,i,l,"throw",e)}i(void 0)}))});return function(e,t,r,a,o){return n.apply(this,arguments)}}(),O=function(){return x(!1)},k=wc((function(){w(o,l,s,p,g)}),[o,l,s,p,g,w,O]),E=wc((function(e){"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),k())}),[k]);return React.createElement(React.Fragment,null,React.createElement("span",{onClick:function(){return x(!0)},style:{cursor:"pointer"}},React.createElement(ca,{icon:"link",disabled:!l})),React.createElement(Ii,{isOpen:v,onRequestClose:O,title:"Edit the custom link",content:React.createElement("div",null,React.createElement(kc,null,React.createElement(_t,{p:!0},bc.LINK_URL),React.createElement(zr,{disabled:a,onInput:function(e){return c(e.target.value)},onKeyDown:E,value:l,autoFocus:!0})),React.createElement(kc,null,React.createElement(_t,{p:!0},bc.LINK_TARGET),React.createElement(za,{scrolldown:!0,value:s,onChange:function(e){return d(e)},disabled:a},Oc.map((function(e){return React.createElement(Ia,{value:e.value,label:e.label})})))),React.createElement(kc,null,React.createElement(_t,{p:!0},bc.LINK_REL),React.createElement(zr,{disabled:a,onInput:function(e){return m(e.target.value)},value:p})),React.createElement(kc,null,React.createElement(_t,{p:!0},bc.ARIAL_LABEL),React.createElement(zr,{disabled:a,onInput:function(e){return h(e.target.value)},value:g}))),onOkClick:k,onCancelClick:O}))},jc=null;document.addEventListener("DOMContentLoaded",(function(e){var n;(jc=document.getElementsByClassName("upload-php")[0],(n=document.getElementById("mgcl-admin-settings"))&&(i.a.render(a.a.createElement(dc,null),n),1)||!jc)||Array.from(document.getElementsByClassName("mgcl-edit-link-field")).forEach((function(e){var n=e.getAttribute("data-post-id"),t=e.getAttribute("data-url"),r=e.getAttribute("data-target"),o=e.getAttribute("data-rel"),l=e.getAttribute("data-aria");i.a.render(a.a.createElement(Ec,{postId:n,url:t,target:r,rel:o,aria:l}),e)}))}))}});
2
  //# sourceMappingURL=index.js.map
1
+ !function(e){function n(n){for(var r,i,l=n[0],c=n[1],u=n[2],d=0,f=[];d<l.length;d++)i=l[d],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&f.push(a[i][0]),a[i]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);for(s&&s(n);f.length;)f.shift()();return o.push.apply(o,u||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],r=!0,l=1;l<t.length;l++){var c=t[l];0!==a[c]&&(r=!1)}r&&(o.splice(n--,1),e=i(i.s=t[0]))}return e}var r={},a={0:0},o=[];function i(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=e,i.c=r,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)i.d(t,r,function(n){return e[n]}.bind(null,r));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="";var l=window.wpJsonMgcl=window.wpJsonMgcl||[],c=l.push.bind(l);l.push=n,l=l.slice();for(var u=0;u<l.length;u++)n(l[u]);var s=c;o.push([100,1]),t()}({0:function(e,n){e.exports=React},10:function(e,n){e.exports=ReactDOM},100:function(e,n,t){"use strict";t.r(n);var r=t(0),a=t.n(r),o=t(10),i=t.n(o),l=t(80),c=t(1),u=t.n(c);function s(){return(s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){p(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function p(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return b(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return b(e,n)}(e,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.")}()}function b(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var g=function(e){var n=e.spinner,t=void 0===n||n,o=e.busy,i=void 0!==o&&o,l=e.overlayStyle,c=m(Object(r.useState)(!0),2),u=c[0],d=c[1];Object(r.useEffect)((function(){var e;return i?d(!0):e=setTimeout((function(){d(!1),e=null}),250),function(){e&&clearTimeout(e)}}),[i]);var p=u?a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"overlay "+(i?"":"overlayHidden"),style:l},Boolean(t)&&a.a.createElement("div",{className:"lds-ellipsis "+(i?"":"spinnerHidden")},a.a.createElement("div",null),a.a.createElement("div",null),a.a.createElement("div",null),a.a.createElement("div",null))),a.a.createElement("style",{jsx:!0},"\n .overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgb(30 124 186 / 85%);\n transition: opacity 1s ease-out;\n z-index: 10;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n }\n\n .overlayHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .spinnerHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .lds-ellipsis {\n position: relative;\n width: 80px;\n height: 80px;\n display: flex;\n justify-items: center;\n align-items: center;\n }\n .lds-ellipsis div {\n position: absolute;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: white;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n .lds-ellipsis div:nth-child(1) {\n left: 8px;\n animation: lds-ellipsis1 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(2) {\n left: 8px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(3) {\n left: 32px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(4) {\n left: 56px;\n animation: lds-ellipsis3 0.6s infinite;\n }\n @keyframes lds-ellipsis1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n }\n @keyframes lds-ellipsis3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n }\n @keyframes lds-ellipsis2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n } \n ")):null,b=f(f({},e),{},{busy:void 0,spinner:void 0});return a.a.createElement("div",s({style:{position:"relative"}},b),p,e.children)};g.propTypes={busy:u.a.bool.isRequired,spinner:u.a.bool,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]).isRequired};var h=g,y=t(2),v=t(4);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){k(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function k(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var E,j={black:"#000000",blackRGB:"0, 0, 0",blue:"#007cba",blueRGB:"0, 124, 186",deepBlue:"#134575",finderBorder:"#DEDEDE",lightBlue:"#EBF3FF",lightGray:"#cacaca",lightGray2:"#F5F5F5",lightPurple:"#D8B1FF",gray:"#E8E8E8",green:"#0EA480",darkGray:"#A0A0A0",disabledForm:"#828282",orange:"#daa827",overlay:"rgba(16, 16, 16, 0.92)",red:"#ba4300",redHighlight:"#de5307",header:"#007cba",proGray:"#7F8EA0",progress:"#8414a8",purple:"#956DBE",tableGray:"#FAFAFA",yellow:"#e4b42b",yellowRGB:"224, 156, 54",white:"#ffffff",whiteRGB:"255, 255, 255"},S={danger:j.red,primary:j.blue,secondary:j.lightBlue,success:j.green},C=O(O(O({},j),S),{},{fontFamily:'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',fontSizeH1:"24px",fontSizeH2:"18px",fontSizeText:"13px",fontSizeSmall:"12px",fontSizeSmallButton:"10px",lightShadow:"0px 0px 10px rgba(0,0,0,0.1)"}),P=t(3),A=["type"];function z(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var N,R,I=y.a.div(E||(N=["\n width: ",";\n padding-top: ",";\n position: relative;\n margin: 0 auto;\n\n .double-bounce1, .double-bounce2 {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: ",";\n opacity: 0.6;\n position: absolute;\n top: 0;\n left: 0;\n\n -webkit-animation: sk-bounce 2.0s infinite ease-in-out;\n animation: sk-bounce 2.0s infinite ease-in-out;\n }\n\n .double-bounce2 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s;\n }\n\n @-webkit-keyframes sk-bounce {\n 0%, 100% { -webkit-transform: scale(0.0) }\n 50% { -webkit-transform: scale(1.0) }\n }\n\n @keyframes sk-bounce {\n 0%, 100% {\n transform: scale(0.0);\n -webkit-transform: scale(0.0);\n } 50% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n }\n"],R||(R=N.slice(0)),E=Object.freeze(Object.defineProperties(N,{raw:{value:Object.freeze(R)}}))),(function(e){return e.size||"50%"}),(function(e){return e.size||"50%"}),(function(e){return e.color||"#333"})),D=function(e){return a.a.createElement(I,e,a.a.createElement("div",{className:"double-bounce1"}),a.a.createElement("div",{className:"double-bounce2"}))},T=function(e){var n=e.type,t=void 0===n?"circle":n,r=z(e,A);switch(t){case"circle":return a.a.createElement(D,r);default:return null}},_=function(e){return a.a.createElement(T,e)};_.propTypes={type:u.a.string},_.defaultProps={type:"circle"};var B=t(34),M=t.n(B),F=t(35),L=t.n(F),U=t(36),G=t.n(U),q=t(12),H=t.n(q),$=t(13),W=t.n($),K=t(14),J=t.n(K),V=t(6),Y=t.n(V),Z=t(5),X=t.n(Z),Q=t(7),ee=t.n(Q),ne=t(15),te=t.n(ne),re=t(16),ae=t.n(re),oe=t(37),ie=t.n(oe),le=t(38),ce=t.n(le),ue=t(17),se=t.n(ue),de=t(39),fe=t.n(de),pe=t(40),me=t.n(pe),be=t(41),ge=t.n(be),he=t(42),ye=t.n(he),ve=(t(85),t(43)),xe=t.n(ve),we=t(44),Oe=t.n(we),ke=t(45),Ee=t.n(ke),je=t(46),Se=t.n(je),Ce=t(47),Pe=t.n(Ce),Ae=t(48),ze=t.n(Ae),Ne=t(49),Re=t.n(Ne),Ie=t(50),De=t.n(Ie),Te=t(8),_e=t.n(Te),Be=t(18),Me=t.n(Be),Fe=t(19),Le=t.n(Fe),Ue=t(51),Ge=t.n(Ue),qe=t(52),He=t.n(qe),$e=t(53),We=t.n($e),Ke=t(54),Je=t.n(Ke),Ve=t(55),Ye=t.n(Ve),Ze=t(56),Xe=t.n(Ze),Qe=t(57),en=t.n(Qe),nn=t(58),tn=t.n(nn),rn=t(59),an=t.n(rn),on=t(60),ln=t.n(on),cn=t(61),un=t.n(cn),sn=t(62),dn=t.n(sn),fn=t(63),pn=t.n(fn),mn=t(64),bn=t.n(mn),gn=t(65),hn=t.n(gn),yn=t(66),vn=t.n(yn),xn=t(67),wn=t.n(xn),On=t(68),kn=t.n(On),En=t(69),jn=t.n(En),Sn=t(70),Cn=t.n(Sn),Pn=t(71),An=t.n(Pn),zn=t(72),Nn=t.n(zn),Rn={lock:M.a,"lock-open":L.a,"file-undo":G.a,"chevron-double-left":H.a,"chevron-double-right":W.a,"chevron-left":J.a,"chevron-right":Y.a,"chevron-down":X.a,"chevron-up":ee.a,pause:te.a,play:ae.a,replay:ie.a,check:ce.a,stop:se.a,delete:fe.a,undo:me.a,alert:ge.a,database:ye.a,tools:xe.a,cog:Oe.a,close:Ee.a,cat:Se.a,upload:un.a,trash:Pe.a,pencil:ze.a,dashboard:Re.a,search:De.a,folder:_e.a,"folder-open":Me.a,"image-multiple-outline":Le.a,plus:Ge.a,"folder-plus":He.a,"image-plus":We.a,"view-grid":Je.a,"format-list-bulleted":Ye.a,twitter:Xe.a,instagram:en.a,facebook:tn.a,star:an.a,"timer-outline":ln.a,link:dn.a,linkedin:pn.a,pinterest:bn.a,"zoom-in":hn.a,"info-outline":vn.a,"arrow-up":wn.a,"arrow-down":kn.a,sort:jn.a,eye:Cn.a,"rocket-launch":An.a,"calendar-month":Nn.a},In=t(23),Dn=t.n(In);function Tn(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||_n(e,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.")}()}function _n(e,n){if(e){if("string"==typeof e)return Bn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Bn(e,n):void 0}}function Bn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Mn,Fn,Ln=function(){var e=Object(r.useRef)(),n=Tn(Object(r.useState)({}),2),t=n[0],a=n[1];return Object(r.useEffect)((function(){if(e&&e.current){var n=new ResizeObserver((function(e){var n=e[0];n.contentRect&&a({width:n.contentRect.left+n.contentRect.right,height:n.contentRect.top+n.contentRect.bottom})}));return n.observe(e.current),function(){n.unobserve(e.current)}}}),[]),{ref:e,width:t.width?t.width:0,height:t.height?t.height:0}},Un=function(e){var n=Object(r.useRef)(),t=function(t){e&&!n.current.contains(t.target)&&e()};return Object(r.useEffect)((function(){return document.addEventListener("mousedown",t),function(){document.removeEventListener("mousedown",t)}})),n};new Dn.a({concurrency:1,autoStart:!1});function Gn(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return qn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return qn(e,n)}(e,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.")}()}function qn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Hn(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var $n=y.a.div(Mn||(Mn=Hn(["\n\tdisplay: flex;\n"]))),Wn=y.a.div(Fn||(Fn=Hn(["\n\tbackground-color: rgba(",", 0.8);\n\tborder-radius: 4px;\n\tcolor: ",";\n\tfont-family: ",";\n\tfont-weight: normal;\n\tmin-width: 180px;\n\tmax-width: 280px;\n\tfont-size: ",";\n\tpadding: 8px 12px;\n\tposition: absolute;\n \tmax-width: 280px;\n\tword-break: break-word;\n\tdisplay: ",';\n\tz-index: 100;\n\n\t&:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\tborder: 4px solid transparent;\n\t}\n\n\t&.top {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\tborder-top: 4px solid rgba(',", 0.8);\n\t\t}\n\t}\n\n\t&.left {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tright: -8px;\n\t\t\tborder-left: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.right {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tleft: -8px;\n\t\t\tborder-right: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.bottom {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: -8px;\n\t\t\tleft: 50%;\n\t\t\tborder-bottom: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t","\n"])),C.blackRGB,C.white,C.fontFamily,C.fontSizeText,(function(e){return e.visible?"inline-block":"none"}),C.blackRGB,C.blackRGB,C.blackRGB,C.blackRGB,(function(e){return e.style})),Kn=function(e){var n=e.text,t=void 0===n?"Hello world!":n,o=e.position,i=void 0===o?"top":o,l=Gn(Object(r.useState)(!1),2),c=l[0],u=l[1],s=Ln(),d=s.ref,f=s.width,p=s.height,m=Ln(),b=m.ref,g=m.width,h=m.height,y=Object(r.useMemo)((function(){var e=0,n=0;if("top"===i)e=-1*p-5,n=f/2*-1+g/2;else if("bottom"===i)e=h+5,n=f/2*-1+g/2;else if("left"===i){e=(p-h)/2*-1,n=-1*f-5}else if("right"===i){e=(p-h)/2*-1,n=g+5}return{transform:"translateX(".concat(n,"px) translateY(").concat(e,"px)")}}),[i,f,p,g,h]);return a.a.createElement($n,null,a.a.createElement(Wn,{ref:d,visible:c,className:i,style:y},t),a.a.createElement("div",{ref:b,onMouseEnter:function(){return t&&u(!0)},onMouseLeave:function(){return u(!1)}},e.children))},Jn=function(e){return a.a.createElement(Kn,e)};Jn.propTypes={text:u.a.string,position:u.a.oneOf(["top","right","bottom","left"])},Jn.defaultProps={text:"Hello world!",position:"top"};var Vn,Yn,Zn=["icon","spinning","className","title","tooltip","containerStyle","color","hoverColor","disabled","raw","isBusy"];function Xn(){return(Xn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Qn(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function et(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var nt=y.a.div(Vn||(Vn=et(["\n display: flex;\n align-items: center;\n"]))),tt=Object(y.a)(P.Icon)(Yn||(Yn=et(["\n\n path {\n fill: ",";\n }\n\n ","\n\n &.nui-clickable {\n cursor: pointer;\n }\n\n &.spin {\n animation-name: spin;\n animation-duration: 700ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n\n @keyframes spin {\n 0% {\n transform: rotate(360deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n }\n }\n\n &.busy {\n animation: crescendo 0.4s alternate infinite;\n @keyframes crescendo {\n 0% {transform: scale(.65);}\n 100% {transform: scale(1);}\n }\n }\n\n &.disabled {\n pointer-events: none;\n opacity: 0.35;\n cursor: default;\n }\n"])),(function(e){return e.color}),(function(e){return n=e.color,(t=e.hoverColor)?"\n &:hover {\n path {\n fill: ".concat(t,";\n }\n }\n "):n?"\n &:hover {\n path {\n fill: ".concat(Object(v.a)(.1,n),";\n }\n }\n "):void 0;var n,t})),rt=function(e){var n=e.icon,t=e.spinning,r=void 0!==t&&t,o=e.className,i=void 0===o?"":o,l=e.title,c=e.tooltip,u=e.containerStyle,s=e.color,d=e.hoverColor,f=e.disabled,p=void 0!==f&&f,m=e.raw,b=e.isBusy,g=void 0!==b&&b,h=Qn(e,Zn);h.width||h.height||(h.width=h.height=30);var y=function(){return"string"==typeof n?Rn[n]||null:n},v="nui-icon ".concat(i).concat(h.onClick?" nui-clickable":"").concat(r?" spin":"").concat(p?" disabled":"").concat(g?" busy":"");return c?a.a.createElement(Jn,{text:c.text,position:c.position||"top"},a.a.createElement(nt,{style:u},a.a.createElement(tt,Xn({icon:y(),className:v,color:s,hoverColor:d},h)))):m?a.a.createElement(tt,Xn({icon:y(),className:v,color:s,hoverColor:d},h)):a.a.createElement(nt,{style:u,title:l},a.a.createElement(tt,Xn({icon:y(),className:v,color:s,hoverColor:d},h)),c?a.a.createElement(Jn,null,c):null)},at=function(e){return a.a.createElement(rt,e)};at.propTypes={icon:u.a.oneOfType([u.a.instanceOf(P.IconifyIcon),u.a.oneOf(["lock","lock-open","file-undo","chevron-double-left","chevron-double-right","chevron-left","chevron-right","chevron-down","chevron-up","pause","play","replay","check","stop","delete","undo","alert","database","pencil","tools","cog","close","cat","upload"])]),color:u.a.string,spinning:u.a.bool,className:u.a.string,tooltip:u.a.string,raw:u.a.bool,isBusy:u.a.bool},at.defaultProps={icon:void 0,color:void 0,spinning:!1,className:"",tooltip:void 0,raw:void 0,isBusy:!1};var ot,it=["className","icon","onClick","disabled","color","small","isBusy","width","height","children","rounded","busyText","spinning","hideBusyIcon"];function lt(){return(lt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ct(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var ut=Object(y.a)((function(e){var n=e.className,t=e.icon,o=void 0===t?null:t,i=e.onClick,l=e.disabled,c=void 0!==l&&l,u=e.color,s=void 0===u?null:u,d=e.small,f=e.isBusy,p=void 0!==f&&f,m=e.width,b=(e.height,e.children),g=e.rounded,h=e.busyText,y=e.spinning,v=void 0!==y&&y,x=e.hideBusyIcon,w=void 0!==x&&x,O=ct(e,it),k=!!o,E=Object(r.useMemo)((function(){var e=null!=m?m:30;return g?e-10:e-6}),[m,g]),j="nui-button ".concat(n||"").concat(k?" has-icon":"").concat(s?" custom-color":"").concat(d?" small":"").concat(g?" rounded":"").concat(p?" busy":"");return a.a.createElement("button",lt({type:"button",className:j,onClick:i,disabled:c},O),p&&!w&&!k&&a.a.createElement(_,{type:"circle",color:"#fff",size:g?"82%":"35%"}),p&&!!h&&a.a.createElement("span",{style:{marginLeft:w?0:"4px",marginRight:"2xp"}},h),k&&a.a.createElement(at,{icon:o,width:E,height:E,spinning:v,raw:!0,style:g?{margin:"0 auto"}:{}}),!!b&&!p&&a.a.createElement("span",{style:{marginLeft:k?"4px":0,marginRight:k?"2xp":0}},b))}))(ot||(ot=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: inline-block;\n box-sizing: border-box;\n height: 30px;\n min-height: 30px;\n min-width: 6em;\n border: none;\n border-radius: 4px;\n text-align: center;\n font-family: ",";\n font-size: ",";\n padding: 0 15px;\n\n background-color: ",";\n color: white;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.has-icon {\n align-items: center;\n display: inline-flex;\n padding: 2.5px 8px;\n }\n\n &.secondary {\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n &.danger {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n &.success {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n & + button {\n margin-left: .25rem;\n }\n\n &.small {\n font-size: ",";\n height: 24px;\n }\n\n &.header {\n background-color: ",";\n border-color: ",";\n height: 40px;\n padding: 0 20px;\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n &.rounded {\n border-radius: 100%;\n min-width: 30px;\n height: ","px;\n width: ","px;\n padding: 3px;\n }\n\n &.busy {\n pointer-events: none;\n }\n\n ","\n"])),C.fontFamily,C.fontSizeText,C.blue,Object(v.a)(.1,C.blue),C.lightBlue,C.blue,C.blue,Object(v.a)(.1,C.lightBlue),C.red,C.red,Object(v.a)(.1,C.red),C.green,C.green,Object(v.a)(.1,C.green),C.fontSizeSmallButton,C.deepBlue,C.deepBlue,Object(v.a)(.1,C.deepBlue),(function(e){var n,t;return null!==(n=e.height)&&void 0!==n?n:null!==(t=e.width)&&void 0!==t?t:30}),(function(e){var n;return null!==(n=e.width)&&void 0!==n?n:30}),(function(e){return st(e.color)})),st=function(e){if(e)return"\n &.custom-color {\n background-color: ".concat(e,";\n border: 1px solid ").concat(e,";\n\n &:hover {\n background-color: ").concat(Object(v.a)(.1,e),";\n }\n }\n ")},dt=function(e){return a.a.createElement(ut,e)};dt.propTypes={className:u.a.oneOf(["primary","secondary","danger","success","header"]),disabled:u.a.bool,icon:u.a.oneOfType([u.a.instanceOf(P.IconifyIcon),u.a.oneOf(["setting","edit","trash"])]),color:u.a.string,onClick:u.a.func.isRequired,rounded:u.a.bool,isBusy:u.a.bool,spinning:u.a.bool,busyText:u.a.string,hideBusyIcon:u.a.bool},dt.defaultProps={className:"primary",disabled:!1,icon:null,color:null,onClick:function(){},rounded:void 0,isBusy:!1,spinning:!1,busyText:void 0,hideBusyIcon:!1};var ft,pt=["show","className"];function mt(){return(mt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function bt(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var gt,ht,yt,vt,xt=y.a.a(ft||(ft=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n background-color: ",";\n position: relative;\n border-radius: 10px;\n color: ",";\n font-family: ",";\n font-size: 9px;\n line-height: 10px;\n padding: 5px 8px;\n text-transform: uppercase;\n text-decoration: none;\n\n &:hover {\n color: ",";\n background-color: #f78c1f;\n }\n\n &.inline {\n display: inline;\n margin-left: 5px;\n vertical-align: middle;\n }\n"])),C.yellow,C.white,C.fontFamily,C.white),wt=function(e){var n=e.show,t=void 0===n||n,r=e.className,o=bt(e,pt);return t?a.a.createElement(xt,mt({href:"https://store.meowapps.com",target:"_blank",className:"".concat(r||"")},o),"Pro Only"):null},Ot=function(e){return a.a.createElement(wt,e)};function kt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Et(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Et(e,n)}(e,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.")}()}function Et(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function jt(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Ot.propTypes={show:u.a.bool,className:u.a.string},Ot.defaultProps={show:!0,className:void 0};var St,Ct=y.a.div(gt||(gt=jt(["\n display: inline-block;\n"]))),Pt=y.a.button(ht||(ht=jt(["\n align-items: center;\n background-color: ",";\n border: none;\n border-radius: 4px;\n box-sizing: border-box;\n color: white;\n display: inline-flex;\n justify-content: space-between;\n font-family: ",";\n font-size: ",";\n height: 30px;\n min-width: 6em;\n padding: 0px 10px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n & + button {\n margin-left: .25rem;\n }\n"])),C.blue,C.fontFamily,C.fontSizeText,Object(v.a)(.1,C.blue)),At=y.a.div(yt||(yt=jt(["\n position: relative;\n display: block;\n margin-top: 18px;\n background-color: ",";\n position: absolute;\n z-index: 10;\n box-shadow: ",';\n\n &:before {\n content: "";\n position: absolute;\n top: -18px;\n left: 50%;\n margin-left: -8px;\n border: 8px solid transparent;\n border-bottom: 10px solid ',";\n }\n"])),C.blue,C.lightShadow,C.blue),zt=function(e){var n=e.title,t=e.disabled,r=void 0!==t&&t,o=e.isPro,i=void 0!==o&&o,l=e.style,c=void 0===l?{}:l,u=e.hideChevron,s=e.titleStyle,d=void 0===s?{}:s,f=kt(a.a.useState(!1),2),p=f[0],m=f[1],b=Un((function(){m(!1)})),g=Ln(),h=g.ref,y=g.width,v=function(){m(!p)},x=a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{isPro:i,disabled:e.props.disabled||r,onClick:function(){e.props.onClick&&e.props.onClick(),v()}})}));return a.a.createElement(Ct,{ref:b},a.a.createElement(Pt,{ref:h,type:"button",disabled:r,onClick:v,style:c},a.a.createElement("span",{style:d},n),!u&&a.a.createElement(P.Icon,{icon:X.a,width:"24",height:"24",style:{marginLeft:"4px"}})),p&&a.a.createElement(At,{style:{transform:"translateX(calc(-50% + ".concat(y/2,"px))")}},x))},Nt=y.a.button(vt||(vt=jt(["\n align-items: center;\n background-color: ",";\n border: none;\n box-sizing: border-box;\n color: white;\n display: flex;\n font-family: ",";\n font-size: ",";\n width: 100%;\n padding: 8px 15px 8px 15px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled:not(.is-pro) {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.is-pro {\n background-color: ",";\n justify-content: space-between;\n }\n\n &.separator {\n border-top: 1px solid ",";\n font-size: 10px;\n padding: 5px;\n }\n"])),C.blue,C.fontFamily,C.fontSizeText,Object(v.a)(.1,C.blue),C.proGray,C.white),Rt=function(e){var n=e.onClick,t=e.children,r=e.isPro,o=e.requirePro,i=void 0!==o&&o,l=e.disabled,c=e.separator,u=i&&!r;return a.a.createElement(Nt,{type:"button",className:"".concat(u?"is-pro":""," ").concat(c?"separator":""),onClick:n,disabled:l||u},a.a.createElement("span",null,t),u&&!r&&a.a.createElement(Ot,null))},It=function(e){return a.a.createElement(zt,e)},Dt=function(e){return a.a.createElement(Rt,e)};function Tt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||_t(e,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.")}()}function _t(e,n){if(e){if("string"==typeof e)return Bt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Bt(e,n):void 0}}function Bt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}It.propTypes={title:u.a.string,disabled:u.a.bool,isPro:u.a.bool,hideChevron:u.a.bool,style:u.a.object,titleStyle:u.a.object},It.defaultProps={title:void 0,disabled:!1,isPro:!1,hideChevron:void 0,style:{},titleStyle:{}},Dt.propTypes={onClick:u.a.func.isRequired,requirePro:u.a.bool,separator:u.a.bool},Dt.defaultProps={onClick:function(){},requirePro:!1,separator:void 0};var Mt=y.a.div(St||(St=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n position: relative;\n background: #f1f1f1;\n margin-left: -20px;\n background-color: rgb(30 124 186 / 10%);\n padding-bottom: 50px;\n margin-bottom: -26px;\n\n .neko-rest-error {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: #1e232deb;\n z-index: 100;\n\n .container {\n color: white;\n padding: 5px 20px 15px 20px;\n min-width: 480px;\n max-width: 600px;\n border-radius: 20px;\n background: #883131;\n margin-left: 50%;\n transform: translateX(-50%);\n margin-top: 100px;\n\n h3 {\n color: white;\n }\n\n .neko-debug {\n padding: 5px 10px;\n background: #692426;\n border-radius: 10px;\n\n * {\n margin: 0px;\n padding: 0px;\n } \n }\n }\n }\n"]))),Ft=function(e){var n=e.className,t=e.children,o=e.nekoErrors,i=void 0===o?[]:o,l=e.style,c=void 0===l?{}:l,u=Tt(Object(r.useState)(!1),2),s=u[0],d=u[1],f=Tt(Object(r.useState)(!1),2),p=f[0],m=f[1];if(i&&!s){var b,g=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_t(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw o}}}}(i);try{for(g.s();!(b=g.n()).done;){var h=b.value;if(h){d(h);break}}}catch(e){g.e(e)}finally{g.f()}}return a.a.createElement(Mt,{className:n||"",style:c},s&&a.a.createElement("div",{className:"neko-rest-error"},a.a.createElement("div",{className:"container"},!p&&a.a.createElement(a.a.Fragment,null,a.a.createElement("h3",null,"The Rest API is disabled or broken 😢"),a.a.createElement("p",null,"The Rest API is required for this plugin to work. It is enabled in WordPress by default since December 2016 and used by the Gutenberg Editor since 2019. In short, it allows more robustness and a much cleaner infrastructure. Soon, Wordpress will entirely depends on it, so it is important to keep it enabled."),a.a.createElement("p",null,a.a.createElement("i",null,"Last but not least: check your PHP Error Logs and your Debugging Console.")),a.a.createElement("p",{className:"neko-debug"},a.a.createElement("small",null,"URL: ",s.url,a.a.createElement("br",null),"CODE: ",s.code,a.a.createElement("br",null),"MESSAGE: ",s.message,a.a.createElement("br",null)))),s.body&&p&&a.a.createElement("p",{className:"neko-debug"},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:s.body}})),s.body&&a.a.createElement(dt,{color:"#a94242",onClick:function(){return m(!p)}},p?"Hide":"Display"," response from server"),a.a.createElement(dt,{color:"#a94242",onClick:function(){window.open("https://meowapps.com/fix-wordpress-rest-api/","_blank")}},"Learn about WordPress Debugging"))),t)},Lt=function(e){return a.a.createElement(Ft,e)};Lt.propTypes={className:u.a.string,style:u.a.object,nekoErrors:u.a.bool},Lt.defaultProps={className:void 0,style:{},nekoErrors:!1};var Ut,Gt,qt,Ht,$t,Wt=["children"];function Kt(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function Jt(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Vt,Yt=y.a.h1(Ut||(Ut=Jt(["\n font-family: ",";\n font-weight: normal;\n font-size: ",";\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"])),C.fontFamily,C.fontSizeH1),Zt=y.a.h2(Gt||(Gt=Jt(["\n font-family: ",";\n font-size: ",";\n font-weight: normal;\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"])),C.fontFamily,C.fontSizeH2),Xt=y.a.p(qt||(qt=Jt(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 16px 0 24px;\n padding: 0;\n"])),C.fontFamily,C.fontSizeText),Qt=y.a.span(Ht||(Ht=Jt(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"])),C.fontFamily,C.fontSizeText),er=y.a.label($t||($t=Jt(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"])),C.fontFamily,C.fontSizeText),nr=function(e){var n=e.children,t=Kt(e,Wt);return e.h1?a.a.createElement(Yt,t,n):e.h2?a.a.createElement(Zt,t,n):e.p?a.a.createElement(Xt,t,n):e.label?a.a.createElement(er,t,n):a.a.createElement(Qt,t,n)},tr=function(e){return a.a.createElement(nr,e)};tr.propTypes={h1:u.a.any,h2:u.a.any,p:u.a.any},tr.defaultProps={h1:void 0,h2:void 0,p:void 0};var rr,ar,or=y.a.div(Vt||(Vt=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-size: ",";\n margin-bottom: 15px;\n\n .nui-block-header {\n display: flex;\n justify-content: space-between;\n }\n\n .nui-block-title {\n color: ",";\n padding: 5px 10px;\n margin-bottom: 5px;\n }\n\n .nui-block-content {\n background-color: #f1f1f1;\n padding: 26px;\n box-shadow: 0px 2px 5px 0px #0000004a;\n border-radius: 10px;\n\n p:first-child {\n margin-top: 0;\n }\n\n p:last-child {\n margin-bottom: 0;\n }\n }\n\n &.primary {\n padding: 8px;\n background-color: ",";\n\n .nui-block-title {\n color: ",";\n }\n\n .nui-block-content {\n background-color: ",";\n }\n }\n"])),C.fontSizeText,C.blue,C.blue,C.white,C.white),ir=function(e){var n=e.title,t=e.children,r=e.className,o=e.busy,i=void 0!==o&&o,l=e.style,c=void 0===l?{}:l,u=e.action;return a.a.createElement(or,{className:"nui-block "+(r||""),style:c},a.a.createElement(h,{busy:i},a.a.createElement("div",{className:"nui-block-header"},a.a.createElement(tr,{h2:!0,className:"nui-block-title"},n),!!u&&u),a.a.createElement("div",{className:"nui-block-content"},t)))},lr=function(e){return a.a.createElement(ir,e)};function cr(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}lr.propTypes={title:u.a.string,className:u.a.oneOf(["","primary"]),style:u.a.object,action:u.a.element},lr.defaultProps={title:void 0,className:"",style:{},action:void 0};var ur,sr=y.a.div(rr||(rr=cr(["\n font-size: ",";\n font-family: ",";\n background-color: ",";\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);\n margin-bottom: 25px;\n\n &.primary {\n background-color: ",";\n }\n\n p:first-child {\n margin-top: 0px;\n }\n\n p:last-child {\n margin-bottom: 0px;\n }\n\n .content {\n padding: 20px 20px;\n }\n"])),C.fontSizeText,C.fontFamily,C.white,C.blue),dr=y.a.div(ar||(ar=cr(["\n justify-content: flex-start;\n background-color: ",";\n display: flex;\n align-items: center;\n padding: 8px 10px;\n\n &.align-right {\n justify-content: flex-end;\n }\n"])),C.lightGray2),fr=function(e){var n=e.children,t=e.header,r=e.headerAlign,o=void 0===r?"left":r,i=e.footer,l=e.footerAlign,c=void 0===l?"right":l,u=e.className,s=e.style,d=void 0===s?{}:s;return a.a.createElement(sr,{className:u||"",style:d},t&&a.a.createElement(dr,{className:"align-".concat(o)},t),a.a.createElement("div",{className:"content"},n),i&&a.a.createElement(dr,{className:"align-".concat(c)},i))},pr=function(e){return a.a.createElement(fr,e)};pr.propTypes={header:u.a.element,headerAlign:u.a.oneOf(["left","right"]),footer:u.a.element,footerAlign:u.a.oneOf(["left","right"]),className:u.a.string,style:u.a.object},pr.defaultProps={header:void 0,headerAlign:"left",footer:void 0,footerAlign:"right",className:void 0,style:{}};var mr,br,gr=Object(y.a)((function(e){var n=e.title,t=void 0===n?"":n,r=e.contentAlign,o=void 0===r?"left":r;return a.a.createElement("div",{className:e.className||""},t?a.a.createElement("div",{className:"nui-settings-head"},t):null,a.a.createElement("div",{className:"nui-settings-content nui-settings-content-align-".concat(o)},e.children))}))(ur||(ur=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: flex;\n font-family: ",";\n\n > .nui-settings-head {\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n width: 120px;\n margin-right: 16px;\n }\n\n /* Select, Checkbox, Input need to be a bit higher to be in front of the settings title */\n\n .nui-settings-content > .nui-select:first-child {\n position: relative;\n margin-top: -5px;\n }\n \n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-button:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > div:first-child > .neko-input {\n position: relative;\n margin-top: -5px;\n }\n\n > .nui-settings-content {\n flex: 1;\n\n &.nui-settings-content-align-right {\n flex: none;\n margin-left: auto;\n }\n\n input[type=text] {\n width: 100%;\n }\n\n\n }\n\n & + div {\n margin-top: 15px;\n }\n"])),C.fontFamily,C.fontFamily),hr=function(e){return a.a.createElement(gr,e)};function yr(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}hr.propTypes={title:u.a.string,className:u.a.string,contentAlign:u.a.string},hr.defaultProps={title:"",className:void 0,contentAlign:"left"};var vr=y.a.div(mr||(mr=yr(["\n margin: 20px;\n padding: 14px;\n background-color: white;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n\n > * + * {\n /* Base margin between child elements */\n margin-top: 14px;\n }\n"]))),xr=Object(y.a)((function(e){return e.children?a.a.createElement("div",{className:e.className},e.children):null}))(br||(br=yr(["\n background-color: ",";\n color: white;\n"])),C.blue),wr=function(e){return a.a.createElement(vr,{className:"window"},a.a.createElement(xr,null,e.title),e.children)},Or=function(e){return a.a.createElement(wr,e)};Or.propTypes={title:u.a.string},Or.defaultProps={title:void 0};var kr,Er,jr=["full","minimal"];function Sr(){return(Sr=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Cr(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function Pr(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Ar=y.a.div(kr||(kr=Pr(["\n display: flex;\n flex-wrap: wrap;\n"]))),zr=y.a.div(Er||(Er=Pr(["\n flex: 1;\n padding: 32px 30px;\n\n .nui-block:not(:first-child) {\n margin-top: -20px;\n }\n\n .nui-block:last-child {\n margin-bottom: 0px;\n }\n\n &.minimal {\n padding: 0;\n }\n\n &.full {\n flex-basis: 100%;\n padding-bottom: 0;\n }\n\n & + .full {\n padding-bottom: 32px;\n padding-top: 0;\n }\n\n &:not(.full) + div:not(.full) {\n padding-left: 0;\n }\n"]))),Nr=function(e){return a.a.createElement(Ar,null,e.children)},Rr=function(e){var n=e.full,t=e.minimal,r=Cr(e,jr),o=n?"full":"";return o+=t?" minimal":"",a.a.createElement(zr,Sr({className:o},r),e.children)},Ir=function(e){return a.a.createElement(Nr,e)},Dr=function(e){return a.a.createElement(Rr,e)};Ir.propTypes={},Ir.defaultProps={},Dr.propTypes={full:u.a.any},Dr.defaultProps={full:void 0};var Tr,_r=t(9),Br=t.n(_r),Mr=t(20),Fr=t.n(Mr);var Lr,Ur=Object(y.a)((function(e){var n=e.id,t=e.name,r=e.checked,o=void 0!==r&&r,i=e.onChange,l=e.label,c=e.description,u=e.isPro,s=e.disabled,d=e.requirePro,f=void 0!==d&&d,p=e.isBusy,m=void 0!==p&&p,b=f&&!u,g=s||b,h=g?"disabled":"";return a.a.createElement("div",{className:["nui-checkbox",e.className,h].join(" "),onClick:function(e){return e.stopPropagation()}},a.a.createElement("input",{id:n,name:t,type:"checkbox",defaultChecked:!1,disabled:g||m}),a.a.createElement("label",{htmlFor:n,onClick:function(){i?i(!o,n):console.log("The onChange handler it not set for this checkbox.",e)}},a.a.createElement("div",{className:"nui-checkbox-check-container"},m?a.a.createElement("div",{className:"nui-checkbox-busy-container"},a.a.createElement(P.Icon,{icon:Br.a,width:"30px",height:"30px",color:C.blue}),a.a.createElement(_,{type:"circle",size:"16px",style:{position:"absolute",top:"7px",left:"7px"}})):a.a.createElement(P.Icon,{icon:o?Fr.a:Br.a,width:"30px",height:"30px",color:g?C.disabledForm:C.blue})),a.a.createElement("div",{className:"nui-checkbox-inner-container"},a.a.createElement("span",{className:"label"},l,a.a.createElement(Ot,{className:"inline",show:b})),c?a.a.createElement("small",{className:"description"},c):null)))}))(Tr||(Tr=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-family: ",";\n user-select: none;\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n align-items: center;\n }\n .nui-checkbox-check-container {\n display: flex;\n align-content: center;\n flex-basis: 30px;\n\n .nui-checkbox-busy-container {\n position: relative\n }\n }\n .nui-checkbox-inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n }\n \n .description {\n display: block;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n }\n }\n"])),C.fontFamily,C.disabledForm),Gr=function(e){return a.a.createElement(Ur,e)};Gr.propTypes={id:u.a.string,name:u.a.string,checked:u.a.bool,label:u.a.string,description:u.a.string,isPro:u.a.bool,requirePro:u.a.bool,isBusy:u.a.bool},Gr.defaultProps={id:void 0,name:void 0,checked:!1,label:void 0,description:void 0,isPro:!1,requirePro:!1,isBusy:!1};var qr=Object(y.a)((function(e){var n=e.name,t=(e.max,e.isPro),r=void 0!==t&&t;return a.a.Children.map(e.children,(function(e){return e.props.name?e:a.a.cloneElement(e,{name:n,isPro:r})}))}))(Lr||(Lr=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n"]))),Hr=function(e){return a.a.createElement(qr,e)};Hr.propTypes={name:u.a.string,mas:u.a.number,isPro:u.a.bool},Hr.defaultProps={name:void 0,mas:-1,isPro:!1};var $r,Wr=["id","name","value","description","placeholder","onEnter","readOnly","type","step","min","max","maxLength","className","style","natural","inputStyle","onChange","onBlur","onReset"];function Kr(){return(Kr=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Jr(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Vr(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Vr(e,n)}(e,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.")}()}function Vr(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Yr(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Zr=Object(y.a)((function(e){var n=e.id,t=e.name,o=e.value,i=void 0===o?"":o,l=e.description,c=e.placeholder,u=void 0===c?"":c,s=e.onEnter,d=void 0===s?null:s,f=e.readOnly,p=void 0!==f&&f,m=e.type,b=void 0===m?"text":m,g=e.step,h=void 0===g?1:g,y=e.min,v=void 0===y?1:y,x=e.max,w=void 0===x?999:x,O=e.maxLength,k=void 0===O?void 0:O,E=e.className,j=e.style,S=e.natural,P=void 0!==S&&S,A=e.inputStyle,z=e.onChange,N=e.onBlur,R=e.onReset,I=Yr(e,Wr),D=Jr(Object(r.useState)(i),2),T=D[0],_=D[1],B=!!z,M=k||("number"===b?3:void 0);Object(r.useEffect)((function(){B||_(i)}),[i]);var F=function(e){B?z(e.target.value,n):_(e.target.value,n)},L=function(e){d&&"Enter"===event.key&&(e.preventDefault(),d(e.target.value,n))},U=function(e){N&&i!==e.target.value&&N(e.target.value,n)},G="neko-input ".concat(P?" natural":"");return a.a.createElement("div",{className:[E].join(" "),style:j},a.a.createElement("div",{style:{position:"relative"}},"number"===b?a.a.createElement("input",Kr({className:[G].join(" "),id:n,name:t,value:B?i:T,type:b,step:h,min:v,max:w,maxLength:M,autoComplete:"off",placeholder:u,style:A,onChange:F,onKeyPress:L,onBlur:U,readOnly:p},I)):a.a.createElement("input",Kr({className:[G].join(" ")},I,{id:n,name:t,value:B?i:T,type:b,spellCheck:"false",autoComplete:"off",placeholder:u,style:A,maxLength:M,onChange:F,onKeyPress:L,onBlur:U,readOnly:p},I)),!!i&&!!R&&a.a.createElement(at,{icon:"close",width:24,style:{position:"absolute",top:"3px",right:"3px"},color:C.blue,onClick:R})),l&&a.a.createElement("p",{className:"neko-input-description"},l))}))($r||($r=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .neko-input {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n height: 30px;\n background: rgb(0 124 186 / 10%);\n padding: 0 10px;\n width: 100%;\n\n &.natural {\n border-color: gray;\n border-width: 1px;\n }\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"])),C.fontFamily,C.fontSizeText,C.blue,C.gray,C.fontFamily,C.fontSizeSmall),Xr=function(e){return a.a.createElement(Zr,e)};Xr.propTypes={id:u.a.string,type:u.a.oneOf(["number","text"]),name:u.a.string,value:u.a.string,description:u.a.string,placeholder:u.a.string,onChange:u.a.func,onEnter:u.a.func,onBlur:u.a.func,readOnly:u.a.bool,step:u.a.number,min:u.a.number,max:u.a.number,maxLength:u.a.number,natural:u.a.bool,onReset:u.a.func},Xr.defaultProps={id:void 0,type:"text",name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1,step:1,min:1,max:999,maxLength:void 0,natural:!1,onReset:void 0};var Qr,ea=["id","name","value","description","placeholder","avoidOnEnterWithShift","onEnter","readOnly","maxLength","className","style","textAreaStyle","countable"];function na(){return(na=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ta(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return ra(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ra(e,n)}(e,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.")}()}function ra(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function aa(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var oa=Object(y.a)((function(e){var n=e.id,t=e.name,o=e.value,i=void 0===o?"":o,l=e.description,c=e.placeholder,u=void 0===c?"":c,s=e.avoidOnEnterWithShift,d=void 0!==s&&s,f=e.onEnter,p=void 0===f?null:f,m=e.readOnly,b=void 0!==m&&m,g=e.maxLength,h=void 0===g?null:g,y=e.className,v=e.style,x=e.textAreaStyle,w=void 0===x?{}:x,O=e.countable,k=void 0!==O&&O,E=aa(e,ea),j=ta(Object(r.useState)(i),2),S=j[0],C=j[1],P=ta(Object(r.useState)(0),2),A=P[0],z=P[1],N=ta(Object(r.useState)(!1),2),R=N[0],I=N[1],D=!!e.onChange,T=Object(r.useCallback)((function(e){I(e.shiftKey)}),[]),_=Object(r.useCallback)((function(){I(!1)}),[]);Object(r.useEffect)((function(){return document.addEventListener("keydown",T,!1),document.addEventListener("keyup",_,!1),function(){document.removeEventListener("keydown",T,!1),document.removeEventListener("keyup",_,!1)}}),[]),Object(r.useEffect)((function(){D||C(i),k&&z(i.length)}),[i,k]);var B=Object(r.useCallback)((function(t){var r=h?t.target.value.substr(0,h):t.target.value;D?e.onChange(r,n):C(r,n)}),[h,e.onChange]);return a.a.createElement("div",{className:[y].join(" "),style:v},a.a.createElement("div",{className:"neko-textarea-container"},a.a.createElement("textarea",na({className:"neko-textarea",rows:6},E,{id:n,name:t,spellCheck:"false",placeholder:u,onChange:B,onKeyPress:function(t){if(p&&!t.shiftKey&&"Enter"===t.key){if(d&&R)return;t.preventDefault(),e.onEnter(t.target.value,n)}},onBlur:function(t){e.onBlur&&i!==t.target.value&&e.onBlur(t.target.value,n)},readOnly:b,style:w,value:D?i:S})),k&&a.a.createElement("p",{className:"neko-textarea-count"},A," / ",h," characters")),l&&a.a.createElement("p",{className:"neko-input-description"},l))}))(Qr||(Qr=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .neko-textarea-container {\n position: relative;\n }\n .neko-textarea {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n background: rgb(0 124 186 / 10%);\n padding: 5px 10px;\n width: 100%;\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n .neko-textarea-count {\n color: rgba(",", 0.4);\n font-size: 11px;\n margin: 0;\n position: absolute;\n right: 13px;\n bottom: 10px;\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"])),C.fontFamily,C.fontSizeText,C.blue,C.gray,C.blackRGB,C.fontFamily,C.fontSizeSmall),ia=function(e){return a.a.createElement(oa,e)};ia.propTypes={id:u.a.string,name:u.a.string,value:u.a.string,description:u.a.string,placeholder:u.a.string,onChange:u.a.func,onEnter:u.a.func,onBlur:u.a.func,readOnly:u.a.bool,avoidOnEnterWithShift:u.a.bool},ia.defaultProps={id:void 0,name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1,avoidOnEnterWithShift:!1};var la,ca,ua,sa,da,fa,pa,ma=t(73),ba=t.n(ma),ga=t(74),ha=t.n(ga),ya=["id","name","value","scrolldown","isPro","onChange","className","disabled","isBusy","chevronIconSize"];function va(){return(va=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function xa(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return wa(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return wa(e,n)}(e,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.")}()}function wa(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Oa(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function ka(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Ea=y.a.div(la||(la=ka(["\n border-radius: 8px;\n position: relative;\n user-select: none;\n cursor: pointer;\n\n &.show-options {\n background-color: ",";\n border-radius: 8px 8px 0 0;\n }\n\n &[data-is-disabled=true] {\n cursor: none;\n pointer-events: none;\n\n .nui-select-option {\n background: ",";\n padding-right: 10px;\n }\n }\n"])),C.blue,C.gray),ja=y.a.div(ca||(ca=ka(["\n align-items: center;\n background-color: ",";\n border: 2px solid ",";\n border-radius: 8px;\n display: flex;\n font-family: ",";\n font-size: 14px;\n padding: 0 5px 0 10px;\n box-sizing: border-box;\n height: 30px;\n\n &.isBusy {\n padding-left: 5px;\n }\n\n .rightContent {\n align-items: center;\n display: flex;\n margin-left: auto;\n }\n"])),C.white,C.blue,C.fontFamily),Sa=y.a.div(ua||(ua=ka(["\n display: block;\n margin-top: 5px;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n"]))),Ca=y.a.div(sa||(sa=ka(["\n border-radius: 8px;\n overflow: hidden;\n padding-top: 28px;\n position: absolute;\n top: 0;\n z-index: 10;\n width: 100%;\n transition: all 0.2s ease-in;\n\n &.hidden {\n opacity: 0;\n }\n"]))),Pa=y.a.div(da||(da=ka(["\n background-color: ",";\n overflow-y: auto;\n max-height: 300px;\n"])),C.white),Aa=function(e){var n,t=e.id,o=e.name,i=e.value,l=e.scrolldown,c=void 0!==l&&l,u=e.isPro,s=void 0!==u&&u,d=e.onChange,f=e.className,p=e.disabled,m=e.isBusy,b=void 0!==m&&m,g=e.chevronIconSize,h=void 0===g?24:g,y=Oa(e,ya),v=null===(n=a.a.Children.toArray(e.children).find((function(e){return e.props.value===i||e.props.checked})))||void 0===n?void 0:n.props,x=(null==v?void 0:v.label)||"Select",w=(null==v?void 0:v.description)||e.description,O=(null==v?void 0:v.requirePro)||!1,k=null==v?void 0:v.icon,E=null==v?void 0:v.iconSize,j=xa(Object(r.useState)(!1),2),S=j[0],C=j[1],A=c?Un((function(){C(!1)})):null,z=O&&!s,N=function(n){if(n!==i){if(!d)return void console.log("The onChange handler it not set for this checkbox.",e);d(n,t)}c&&C(!1)},R=a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{name:e.props.name||o,checked:e.props.value===i||e.props.checked,onClick:N,scrolldown:c,isPro:s,disabled:p})}));return c?a.a.createElement(Ea,va({id:t,ref:A},y,{onClick:function(){return C(!S)},className:["nui-select",f,S?"show-options":""],childrenLength:R.length,"data-is-disabled":p||b}),a.a.createElement(ja,{className:"nui-select-option ".concat(b?"isBusy":"")},b?a.a.createElement(a.a.Fragment,null,a.a.createElement(_,{type:"circle",size:"20px"})):a.a.createElement(a.a.Fragment,null,k&&a.a.createElement(at,{icon:k,width:E,height:E,style:{marginRight:"".concat(Math.max(E-15,4),"px")}}),a.a.createElement("span",{className:"nui-select-option-label"},x),a.a.createElement("div",{className:"rightContent"},z&&a.a.createElement(Ot,null),!p&&a.a.createElement(P.Icon,{icon:S?ee.a:X.a,width:h})))),w&&a.a.createElement(Sa,null,w),S&&a.a.createElement(Ca,{className:"nui-option ".concat(S?"":"hidden")},a.a.createElement(Pa,null,[R]))):R},za=y.a.div(fa||(fa=ka(["\n font-family: ",";\n margin-bottom: 6px;\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n\n .inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n .description {\n display: block;\n font-size: 12px;\n }\n }\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n"])),C.fontFamily,C.disabledForm),Na=y.a.div(pa||(pa=ka(["\n background-color: ",";\n cursor: pointer;\n font-family: ",";\n\n &:hover {\n filter: brightness(80%);\n }\n\n input {\n display: none;\n }\n\n .option {\n align-items: center;\n color: ",";\n display: flex;\n justify-content: space-between;\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n padding: 8px 12px;\n\n .option-group {\n align-items: center;\n display: flex;\n }\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n pointer-events: none;\n\n .option {\n color: rgb(255 255 255 / 35%);\n }\n }\n"])),C.blue,C.fontFamily,C.white,C.fontFamily),Ra=function(e){var n=e.id,t=e.name,r=e.value,o=e.checked,i=e.icon,l=e.label,c=e.description,u=e.onClick,s=e.scrolldown,d=e.isPro,f=void 0!==d&&d,p=e.requirePro,m=void 0!==p&&p,b=e.disabled,g=e.iconSize,h=void 0===g?20:g,y=m&&!f,v=y||b?"disabled":"",x=a.a.createElement(za,{className:"nui-select ".concat(e.className||""," ").concat(v)},a.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:o,onClick:function(e){return u(e.target.value)},disabled:y||b}),a.a.createElement("label",{htmlFor:n},a.a.createElement(P.Icon,{icon:o?ha.a:ba.a,width:"24px",color:y?C.disabledForm:C.blue}),a.a.createElement("div",{className:"inner-container"},a.a.createElement("span",{className:"label"},l,a.a.createElement(Ot,{className:"inline",style:{top:-1},show:y})),c?a.a.createElement("small",{className:"description"},c):null))),w=a.a.createElement(Na,{className:"nui-select ".concat(e.className||""," ").concat(v)},a.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:o,disabled:y||b}),a.a.createElement("div",{className:"option",onClick:function(){return u(r)}},a.a.createElement("div",{className:"option-group"},i&&a.a.createElement(at,{icon:i,width:h,height:h,style:{marginRight:"".concat(Math.max(h-11,4),"px")}}),l),a.a.createElement(Ot,{show:y})));return s?w:x},Ia=function(e){return a.a.createElement(Aa,e)};Ia.propTypes={id:u.a.string,name:u.a.string,description:u.a.string,scrolldown:u.a.bool,isPro:u.a.bool,onChange:u.a.func,isBusy:u.a.bool,chevronIconSize:u.a.number},Ia.propTypes={id:void 0,name:void 0,description:void 0,scrolldown:!1,isPro:!1,onChange:void 0,isBusy:!1,chevronIconSize:24};var Da,Ta=function(e){return a.a.createElement(Ra,e)};Ta.propTypes={id:u.a.string,name:u.a.string,value:u.a.string,checked:u.a.bool,label:u.a.string,description:u.a.string,onClick:u.a.func,scrolldown:u.a.bool,isPro:u.a.bool,requirePro:u.a.bool,icon:u.a.string,iconSize:u.a.number},Ta.defaultProps={id:void 0,name:void 0,value:void 0,checked:!1,label:void 0,description:void 0,onClick:void 0,scrolldown:!1,isPro:!1,requirePro:!1,icon:void 0,iconSize:20};var _a=y.a.div(Da||(Da=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n label {\n display: block;\n margin-bottom: 3px;\n }\n\n .neko-input, .neko-textarea {\n margin-bottom: 5px;\n }\n"]))),Ba=function(e){return a.a.createElement(_a,null,e.children||null)},Ma=function(e){return a.a.createElement(Ba,e)};Ma.propTypes={},Ma.defaultProps={};var Fa,La=["width","height","fontSize","onValue","offValue","checked","onBackgroundColor","offBackgroundColor","onLabel","offLabel","onChange","disabled"];function Ua(){return(Ua=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Ga(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var qa=Object(y.a)((function(e){e.width,e.height,e.fontSize;var n=e.onValue,t=e.offValue,o=e.checked,i=void 0!==o&&o,l=(e.onBackgroundColor,e.offBackgroundColor,e.onLabel,e.offLabel,e.onChange),c=e.disabled,u=Ga(e,La),s=Object(r.useCallback)((function(e){l(e.target.checked?n:t)}),[l,n,t]);return a.a.createElement("label",Ua({},u,{"data-is-disabled":c?"disabled":""}),a.a.createElement("input",{type:"checkbox",onChange:s,checked:i,disabled:c}),a.a.createElement("span",{className:"nui-switch-slider"}))}))(Fa||(Fa=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n color: ",";\n font-family: ",";\n font-size: ",";\n position: relative;\n display: inline-block;\n width: ",";\n height: ",";\n\n &[data-is-disabled=disabled] {\n opacity: 0.4;\n\n .nui-switch-slider {\n cursor: auto;\n }\n }\n\n input {\n opacity: 0;\n width: 0;\n height: 0;\n border: 0;\n }\n\n .nui-switch-slider {\n background-color: ",";\n border-radius: ",';\n align-items: center;\n cursor: pointer;\n display: inline-flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transition: .4s;\n }\n\n .nui-switch-slider:before {\n border-radius: 50%;\n position: absolute;\n content: "";\n height: ',";\n width: ",';\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: .3s;\n }\n\n .nui-switch-slider:after {\n content: "','";\n margin-left: auto;\n margin-right: ',";\n }\n\n input:checked + .nui-switch-slider {\n background-color: ",";\n }\n\n input:checked + .nui-switch-slider:before {\n transform: translateX(",');\n }\n\n input:checked + .nui-switch-slider:after {\n content: "','";\n margin-left: ',";\n margin-right: auto;\n }\n"])),C.white,C.fontFamily,(function(e){return e.fontSize}),(function(e){return e.width}),(function(e){return e.height}),(function(e){return e.offBackgroundColor}),(function(e){return e.height}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return e.offLabel}),(function(e){return"calc(".concat(e.height," / 2)")}),(function(e){return e.onBackgroundColor}),(function(e){return"calc(".concat(e.width," - ").concat(e.height,")")}),(function(e){return e.onLabel}),(function(e){return"calc(".concat(e.height," / 2)")})),Ha=function(e){return a.a.createElement(qa,e)};Ha.propTypes={width:u.a.string,height:u.a.string,fontSize:u.a.string,onValue:u.a.string,offValue:u.a.string,checked:u.a.bool,onBackgroundColor:u.a.string,offBackgroundColor:u.a.string,onLabel:u.a.string,offLabel:u.a.string},Ha.defaultProps={width:"100%",height:"20px",fontSize:"12px",checked:!1};var $a,Wa,Ka,Ja,Va,Ya,Za=t(75),Xa=t.n(Za);function Qa(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return eo(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return eo(e,n)}(e,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.")}()}function eo(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function no(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var to=function(e){var n=e.chevron,t=void 0===n||n;return a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{chevron:t})}))},ro=y.a.div($a||($a=no(["\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n font-family: ",";\n"])),C.fontFamily),ao=y.a.div(Wa||(Wa=no(["\n align-items: center;\n display: flex;\n\n &.can-expand {\n cursor: pointer;\n }\n\n &.selected {\n color: #956DBE;\n }\n\n span {\n font-weight: normal;\n font-size: 13px;\n margin: 0 0 0 8px;\n }\n"]))),oo=y.a.div(Ka||(Ka=no(["\n height: 24px;\n width: 24px;\n"]))),io=y.a.div(Ja||(Ja=no(["\n position: relative;\n width: 24px;\n height: 24px;\n"]))),lo=y.a.div(Va||(Va=no(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 100;\n"]))),co=y.a.div(Ya||(Ya=no(["\n border-left: 1px solid ",";\n margin-left: 12px;\n padding-left: 6px;\n\n &.no-line {\n border-left: 0;\n padding-left: 12px;\n }\n\n &.no-chevron {\n border-left: 0;\n margin-left: 0;\n padding-left: 0;\n }\n"])),C.finderBorder),uo=function(e){var n={gallery:Le.a,tag:Xa.a},t=e.title,o=e.chevron,i=e.rightElement,l=void 0===i?null:i,c=e.rightElementStyle,u=void 0===c?{marginLeft:"5px"}:c,s=e.showRightElement,d=void 0!==s&&s,f=e.selected,p=void 0!==f&&f,m=e.draggable,b=void 0!==m&&m,g=e.onDragStart,h=e.onDragOver,y=e.onDragEnd,v=e.onDrop,x=e.isExpanded,w=void 0!==x&&x,O=e.dragging,k=void 0!==O&&O,E=e.rightAction,j=void 0===E?null:E,S=e.rightActionOnHover,A=void 0===S?null:S,z=e.onDragLeave,N=(e.preventClose,!!e.icon),R=!!e.children,I=Qa(Object(r.useState)(w),2),D=I[0],T=I[1],_=Qa(Object(r.useState)((function(){return"string"==typeof e.icon&&Object.keys(n).includes(e.icon)?n[e.icon]:e.icon?e.icon:_e.a})),2),B=_[0],M=_[1],F=Boolean(B),L=Qa(Object(r.useState)(!1),2),U=L[0],G=L[1];Object(r.useEffect)((function(){T(w),N||M(w?_e.a:Me.a)}),[w]);var q=a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{chevron:o})})),H=k||p?C.purple:p?C.black:C.blue;return a.a.createElement("div",null,a.a.createElement(ro,{onMouseEnter:function(){return G(!0)},onMouseLeave:function(){return G(!1)}},a.a.createElement(ao,{onClick:function(){e.onClick&&e.onClick()},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,draggable:b,onDragStart:g,onDragOver:h,onDrop:v,className:"".concat(F||q||e.onClick?"can-expand":""," ").concat(p?"selected":""),onDragLeave:z,onDragEnd:y},o?F&&R?a.a.createElement(P.Icon,{icon:D?X.a:Y.a,width:"24",height:"24",onClick:function(e){e.stopPropagation(),T(!D)}}):a.a.createElement(oo,null):null,a.a.createElement(io,null,a.a.createElement(lo,null),a.a.createElement(P.Icon,{icon:B,color:H,width:"24",height:"24"})),a.a.createElement("span",null,t),d&&a.a.createElement("div",{style:u},l)),U&&A||j),D&&a.a.createElement(co,{className:"".concat(F?"":"no-line"," ").concat(o?"":"no-chevron")},q))},so=function(e){return a.a.createElement(to,e)};so.propTypes={chevron:u.a.bool},so.defaultProps={chevron:!0};var fo,po=function(e){return a.a.createElement(uo,e)};po.propTypes={icon:u.a.oneOfType([u.a.instanceOf(P.IconifyIcon),u.a.oneOf(["gallery"])]),title:u.a.string,isExpanded:u.a.bool},po.defaultProps={icon:_e.a,title:void 0,isExpanded:!1};var mo,bo,go=y.a.div(fo||(fo=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: flex;\n width: 100%;\n height: 100%;\n max-width: 128px;\n max-height: 128px;\n\n & > * {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n"]))),ho=function(){return a.a.createElement(go,null,a.a.createElement("svg",{width:"54",height:"38",viewBox:"0 0 54 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.9038 19.1156 23.9038 19.1156C23.9038 19.1156 13.4345 22.0656 11.3663 9.40518Z",fill:"#724024",stroke:"black",strokeWidth:"2.1869"}),a.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",stroke:"black"}),a.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",stroke:"black"}),a.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",stroke:"black"}),a.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.658 19.4843 23.658 19.4843C23.658 19.4843 13.4345 22.0656 11.3663 9.40518Z",stroke:"black",strokeWidth:"2.1869"}),a.a.createElement("path",{d:"M25.3788 9.89685C25.3788 9.89685 21.3225 35.0947 21.9371 35.7093C22.5517 36.3239 27.4684 36.3239 28.083 35.7093C28.6975 35.0947 29.6523 22.5858 30.2955 21.9427C30.9386 21.2995 35.7226 33.1281 36.81 33.1281C37.8975 33.1281 43.2303 21.3567 43.8163 21.9427C44.4023 22.5287 45.2913 35.0947 45.9059 35.7093C46.5204 36.3239 51.3142 36.3239 51.9288 35.7093C52.5434 35.0947 48.9788 9.89685 48.9788 9.89685H42.9559C42.9559 9.89685 37.7934 21.9427 36.81 21.9427C35.8267 21.9427 31.4017 9.89685 31.4017 9.89685H25.3788Z",fill:"white",stroke:"black",strokeWidth:"2.1869"})))},yo=function(e){return a.a.createElement(ho,e)};function vo(e){return(vo="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})(e)}function xo(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}yo.propTypes={},yo.defaultProps={};var wo=Object(y.a)((function(e){var n=e.value,t=void 0===n?0:n,r=e.max,o=void 0===r?100:r,i=e.busy,l=void 0!==i&&i,c=e.status;t=Math.min(t,o);var u=parseFloat(t)/parseFloat(o);return a.a.createElement("div",{className:e.className},a.a.createElement(Oo,{ratio:u,busy:e.busy,status:c}),a.a.createElement("div",{className:"nui-progress-buttons"},l&&e.onPauseClick&&a.a.createElement("div",{className:"nui-progress-button pause",onClick:e.onPauseClick},e.paused?a.a.createElement(P.InlineIcon,{icon:ae.a}):a.a.createElement(P.InlineIcon,{icon:te.a})),l&&e.onStopClick&&a.a.createElement("div",{className:"nui-progress-button stop",onClick:e.onStopClick},a.a.createElement(P.InlineIcon,{icon:se.a}))))}))(mo||(mo=xo(["\n position: relative;\n box-sizing: border-box;\n height: 30px;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.06) 0%,\n rgba(0, 0, 0, 0.02) 50%,\n rgba(0, 0, 0, 0.10) 100%\n );\n border-radius: 12px;\n\n .nui-progress-buttons {\n position: absolute;\n height: 100%;\n right: 0px;\n display: flex;\n align-items: center;\n padding-right: 5px;\n\n .nui-progress-button {\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 2px;\n border-radius: 100%;\n color: white;\n padding: 2px;\n width: 18px;\n height: 18px;\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &.stop {\n background: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n }\n }\n"])),C.blue,Object(v.a)(.1,C.blue),C.red,Object(v.a)(.1,C.red)),Oo=Object(y.a)((function(e){var n,t,r,o=isNaN(e.ratio)?0:parseInt(Math.round(100*e.ratio)),i=vo(e.status),l="undefined"!==i?"string"===i?e.status:e.status(o):"".concat(o,"%");return a.a.createElement("div",{className:e.className,style:(n={minWidth:28},t="minWidth",r=o+"%",t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n)},a.a.createElement("div",null,l))}))(bo||(bo=xo(["\n position: absolute;\n overflow: hidden;\n top: 0; left: 0;\n height: 100%;\n background-color: ",";\n border-radius: 12px;\n text-align: center;\n padding: 0 10px;\n vertical-align: middle;\n color: white;\n font-family: ",";\n font-size: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: min-width .2s ease-out;\n\n background-size: 30px 30px;\n background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%,\n transparent 25%,\n transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,\n transparent 75%, transparent);\n animation: ",";\n\n @keyframes animate-stripes {\n 0% { background-position: 0 0; }\n 100% { background-position: 60px 0; }\n }\n"])),C.progress,C.fontFamily,(function(e){return e.busy?"animate-stripes 1.6s linear infinite":"none"})),ko=function(e){return a.a.createElement(wo,e)};ko.propTypes={value:u.a.number,max:u.a.number,busy:u.a.bool,paused:u.a.bool,onPauseClick:u.a.func,onStopClick:u.a.func,status:u.a.oneOf([u.a.string,u.a.func])},ko.defaultProps={value:0,max:100,busy:!1,paused:!1,onPauseClick:void 0,onStopClick:void 0,status:void 0};var Eo,jo=t(76),So=t.n(jo);var Co,Po=y.a.div(Eo||(Eo=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n position: relative;\n color: white;\n font-family: ",";\n font-size: ",";\n display: flex;\n height: 61px;\n overflow: hidden;\n align-items: center;\n padding: 15px 20px;\n background-color: ",";\n display: flex;\n\n .nui-header-logo-container {\n width: 102px;\n height: 102px;\n padding: 20px;\n margin-right: 25px;\n background: rgba(",", 0.1);\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(-29.83deg);\n }\n\n .nui-header-title-container {\n flex-direction: column;\n display: flex;\n\n .nui-header-title {\n color: white;\n font-family: ",";\n font-size: 23px;\n line-height: normal;\n margin: 0;\n }\n\n .nui-header-subtitle {\n color: white;\n font-family: ",";\n line-height: normal;\n font-size: ",";\n }\n }\n\n .nui-header-extra-content {\n flex: 1;\n margin: 0 20px;\n }\n"])),C.fontFamily,C.fontSizeText,C.header,C.blackRGB,C.fontFamily,C.fontFamily,C.fontSizeText),Ao=function(e){var n=e.title,t=void 0===n?"NekoUI":n,r=e.subtitle,o=void 0===r?"By Jordy Meow":r,i=e.children,l=e.saving,c=void 0!==l&&l;return a.a.createElement(Po,null,a.a.createElement("div",{className:"nui-header-logo-container"},a.a.createElement(yo,null)),a.a.createElement("div",{className:"nui-header-title-container"},a.a.createElement("h1",{className:"nui-header-title"},t),a.a.createElement("small",{className:"nui-header-subtitle"},a.a.createElement("a",{target:"_blank",href:"https://meowapps.com",style:{color:"white",textDecoration:"none"}},o))),a.a.createElement("div",{className:"nui-header-extra-content"},i),c&&a.a.createElement(at,{icon:So.a,width:"36",height:"36"}))},zo=function(e){return a.a.createElement(Ao,e)};function No(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Ro(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ro(e,n)}(e,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.")}()}function Ro(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}zo.propTypes={title:u.a.string,subtitle:u.a.string,saving:u.a.bool},zo.defaultProps={title:"NekoUI",subtitle:"By Jordy Meow",saving:!1};var Io,Do,To=y.a.div(Co||(Co=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n align-items: center;\n display: flex;\n user-select: none;\n\n .neko-paging-text {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 14px;\n margin-right: 15px;\n }\n\n .neko-paging-controller {\n box-sizing: border-box;\n height: 30px;\n align-items: center;\n background-color: rgba(",", 0.8);\n border-radius: 15px;\n display: flex;\n padding: 3px 5px;\n\n .nako-paging-controller-icon {\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n margin-right: 2px;\n height: 22px;\n width: 22px;\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n transition: transform 0.1s ease-in;\n box-sizing: border-box;\n\n :last-child {\n margin-right: 0;\n }\n\n &.disabled {\n color: ",";\n cursor: default;\n pointer-events: none;\n }\n\n &:hover {\n transform: scale(1.2) !important;\n z-index: 10;\n position: relative;\n }\n }\n\n .nako-paging-controller-text {\n color: ",";\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n margin: 0 40px;\n user-select: none;\n }\n\n span.neko-paging-current-page {\n cursor: pointer;\n text-decoration: underline;\n }\n\n input.neko-paging-current-page {\n width: 1.5rem;\n }\n }\n"])),C.fontFamily,C.blueRGB,C.white,C.darkGray,C.white,C.fontFamily),_o=function(e){var n=e.currentPage,t=e.limit,o=void 0===t?0:t,i=e.onClick,l=e.total,c=void 0===l?0:l,u=e.onCurrentPageChanged,s=(e.full,e.infinite),d=void 0!==s&&s,f=e.controllerText,p=!!u,m=Object(r.useMemo)((function(){return d?0:Math.ceil(0===c?1:o>0?c/o:1)}),[d,o,c]),b="nako-paging-controller-icon ".concat(d||1!==n?"":"disabled"),g="nako-paging-controller-icon ".concat(d||n!==m?"":"disabled"),h=No(Object(r.useState)(!1),2),y=h[0],v=h[1],x=function(e){v(!1),i(e)},w=function(e){if(d)return e;var n=Number(e);return n>m?m:n<1?1:n},O=function(e){var n=e.target.value;isNaN(n)||u(w(n)),v(!1)},k=function(e){if("Enter"===event.key){e.preventDefault();var n=e.target.value;isNaN(n)||u(w(n)),v(!1)}},E=Object(r.useMemo)((function(){if(!y){return a.a.createElement("span",{className:p?"neko-paging-current-page":"",onClick:function(){p&&v(!0)}},n)}return a.a.createElement("input",{autoFocus:!0,type:"text",className:p?"neko-paging-current-page":"",defaultValue:n,onBlur:O,onKeyPress:k})}),[n,y,u]),j=function(e){y&&e.target===e.currentTarget&&v(!1)};return a.a.createElement(To,null,!!c&&a.a.createElement("span",{className:"neko-paging-text"},c," result",c>0?"s":""),a.a.createElement("div",{className:"neko-paging-controller",onClick:j},!d&&a.a.createElement(P.Icon,{icon:H.a,className:b,onClick:function(){return x(1)}}),a.a.createElement(P.Icon,{icon:J.a,className:b,onClick:function(){return x(n-1)}}),a.a.createElement("p",{className:"nako-paging-controller-text",onClick:j},f||a.a.createElement(a.a.Fragment,null,"Page ",E," of ",m)),a.a.createElement(P.Icon,{icon:Y.a,className:g,onClick:function(){return x(n+1)}}),!d&&a.a.createElement(P.Icon,{icon:W.a,className:g,onClick:function(){return x(m)}})))},Bo=function(e){return a.a.createElement(_o,e)};function Mo(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Bo.propTypes={currentPage:u.a.number,limit:u.a.number,total:u.a.number,onClick:u.a.func,lastPage:u.a.number,infinite:u.a.bool,controllerText:u.a.object},Bo.defaultProps={currentPage:void 0,limit:0,total:0,onClick:void 0,lastPage:void 0,infinite:!1,controllerText:void 0};var Fo=y.a.div(Io||(Io=Mo(["\n display: flex;\n align-items: center;\n"]))),Lo=y.a.span(Do||(Do=Mo(["\n color: ",";\n cursor: pointer;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 17px;\n\n &.is-active {\n cursor: default;\n color: ",';\n font-weight: bold;\n }\n\n &::after {\n content: "|";\n color: ',";\n padding: 0 4px;\n }\n\n &:last-child::after {\n content: none;\n }\n\n span {\n color: ",";\n font-weight: normal;\n margin-left: 4px;\n }\n"])),(function(e){return e.variant||C.blue}),C.fontFamily,C.black,C.darkGray,C.darkGray),Uo=function(e){var n=e.id,t=e.value,r=e.onChange,o=e.busy,i=void 0!==o&&o,l=e.className,c=a.a.Children.map(e.children,(function(e,o){return a.a.cloneElement(e,{busy:i,isActive:e.props.value===t,onClick:function(e){e!==t&&r(e,n)}})}));return a.a.createElement(Fo,{className:l},c)},Go=function(e){var n=e.title,t=e.value,o=void 0===t?0:t,i=e.count,l=e.onClick,c=e.busy,u=e.isActive,s=e.className,d=e.variant,f=Object(r.useMemo)((function(){if(d)return Object.keys(C).includes(d)?C[d]:d}),[d]);return a.a.createElement(Lo,{onClick:function(){return l(o)},className:"".concat(u?"is-active":""," ").concat(s),variant:f},n,null===i?null:a.a.createElement("span",null,"(",c?a.a.createElement(at,{icon:"replay",spinning:!0,width:12,containerStyle:{display:"inline"}}):i,")"))},qo=function(e){return a.a.createElement(Uo,e)};qo.propTypes={id:u.a.string,value:u.a.string,onChange:u.a.func},qo.defaultProps={id:void 0,value:void 0,onChange:void 0};var Ho,$o=function(e){return a.a.createElement(Go,e)};$o.propTypes={title:u.a.string,value:u.a.string,count:u.a.number,onClick:u.a.func,isActive:u.a.bool,variant:u.a.string},$o.defaultProps={title:void 0,value:"default",count:0,onClick:void 0,isActive:!1,variant:void 0};var Wo,Ko,Jo=y.a.section(Ho||(Ho=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .mask {\n position: absolute;\n overflow: hidden;\n display: block;\n width: ","px;\n height: ","px;\n }\n\n .semi-circle {\n position: relative;\n display: block;\n width: ","px;\n height: ",'px;\n background: linear-gradient(to right, #27b775 0%, #f3f32c 50%, #f71b1b 100%);\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n\n &::before {\n content: "";\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 2;\n display: block;\n width: 140px;\n height: 70px;\n margin-left: -70px;\n background: ',";\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .semi-circle--mask {\n position: absolute;\n top: 0;\n left: 0;\n width: ","px;\n height: ",'px;\n background: transparent;\n transform-origin: center center;\n backface-visibility: hidden;\n transition: all .3s ease-in-out;\n\n &::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0%;\n z-index: 2;\n display: block;\n width: ',"px;\n height: ","px;\n margin-top: -1px;\n margin-left: -1px;\n background: #5396c1d6;\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .gauge { \n width: ","px;\n height: ","px;\n \n .semi-circle--mask {\n transform: rotate(","deg) translate3d(0,0,0);\n }\n }\n\n .child-container {\n position: absolute;\n font-size: 16px;\n display: flex;\n width: ","px;\n height: ","px;\n z-index: 10;\n\n .spacing {\n flex: auto;\n }\n\n .child {\n color: white;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n }\n"])),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.backgroundColor}),(function(e){return e.width}),(function(e){return e.width}),(function(e){return e.width+2}),(function(e){return e.width/2+2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.degrees}),(function(e){return e.width+2}),(function(e){return e.width/2})),Vo=function(e){var n=e.value,t=void 0===n?1e3:n,r=(e.min,e.max),o=void 0===r?2500:r,i=e.width,l=void 0===i?200:i,c=e.background,u=void 0===c?"#007cba":c,s=e.children,d=180*(t<=o?t:o)/o;return a.a.createElement(Jo,{backgroundColor:u,degrees:d,width:l},a.a.createElement("div",{class:"gauge"},a.a.createElement("div",{class:"mask"},a.a.createElement("div",{class:"semi-circle"}),a.a.createElement("div",{class:"semi-circle--mask"})),a.a.createElement("div",{class:"child-container"},a.a.createElement("div",{class:"child"},a.a.createElement("div",{class:"spacing"}),s))))};function Yo(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Vo.propTypes={value:u.a.number,min:u.a.number,max:u.a.number,width:u.a.number,background:u.a.string},Vo.defaultProps={value:1e3,min:0,max:2500,width:200,background:"#007cba"};y.a.p(Wo||(Wo=Yo(["\n background: #ba341e;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n\n a {\n color: white;\n font-weight: bold;\n }\n"]))),y.a.p(Ko||(Ko=Yo(["\n background: #1eba96;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n text-align: center;\n\n a {\n color: white;\n font-weight: bold;\n }\n"])));var Zo,Xo=["multiple","width","height","iconSize","iconColor","onSuccess","onFailure","style","apiUrl","apiConfig","onClick","disabled"];function Qo(){return(Qo=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ei(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ni(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ei(Object(t),!0).forEach((function(n){ti(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ei(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ti(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ri(e){return function(e){if(Array.isArray(e))return ci(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||li(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 ai(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function oi(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){ai(o,r,a,i,l,"next",e)}function l(e){ai(o,r,a,i,l,"throw",e)}i(void 0)}))}}function ii(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||li(e,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.")}()}function li(e,n){if(e){if("string"==typeof e)return ci(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ci(e,n):void 0}}function ci(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ui(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var si=y.a.div(Zo||(Zo=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n box-sizing: border-box;\n background: #C4C4C4;\n color: rgb(0 0 0 / 60%);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n transition: all 0.25s ease;\n\n &[data-is-disabled=true] {\n svg {\n opacity: 0.7;\n }\n }\n\n div {\n transition: all 0.5s ease;\n transform: scale(1.5);\n pointer-events: none;\n max-width: 100%;\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.dropping {\n background: #a4d5ff;\n\n div {\n transform: scale(2);\n }\n }\n"]))),di=function(e){var n=e.multiple,t=e.width,o=void 0===t?"100%":t,i=e.height,l=void 0===i?"100%":i,c=e.iconSize,u=void 0===c?48:c,s=e.iconColor,d=void 0===s?"#A9A9A9":s,f=e.onSuccess,p=void 0===f?function(){}:f,m=e.onFailure,b=void 0===m?function(){}:m,g=e.style,h=void 0===g?{}:g,y=e.apiUrl,v=e.apiConfig,x=e.onClick,w=e.disabled,O=ui(e,Xo),k=ii(Object(r.useState)(!1),2),E=k[0],j=k[1],S=ii(Object(r.useState)(Math.floor(1e8*Math.random())),2),C=S[0],P=(S[1],Object(r.useRef)(null)),A=Object(r.useRef)(null),z=ii(Object(r.useState)(!1),2),N=z[0],R=z[1];Object(r.useEffect)((function(){A&&(A.current.style.pointerEvents=N?"none":"auto")}),[A,N]);var I=function(){var e=oi(regeneratorRuntime.mark((function e(t){var r,a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(!0),r=function(){var e=oi(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v.file=n,e.next=3,xc(y,v);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.next=4,Promise.all(t.map(function(){var e=oi(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:a=e.sent,o=a.filter((function(e){return e.success})),i=a.filter((function(e){return!e.success})),o.length&&p(n?o:o[0]),i.length&&b(n?i:i[0]),R(!1);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),D=function(e){e.preventDefault(),e.stopPropagation()},T=function(e){e.preventDefault(),e.stopPropagation(),j(!0)},_=function(e,n){n.preventDefault(),n.stopPropagation(),j(!1),console.log(e),I(e)};return a.a.createElement("div",{ref:A},a.a.createElement("input",{type:"file",id:C,accept:"image/*",ref:P,onChange:function(e){var n=ri(e.target.files);_(n,e)},style:{display:"none"},disabled:w,multiple:n}),a.a.createElement(si,Qo({onClick:function(){x?x():P.current.click()},style:ni(ni({},h),{},{width:o,height:l}),className:E?"dropping":"",onDragOver:D,onDragEnter:T,onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),j(!1)},onDrop:function(e){var n=ri(e.dataTransfer.files);_(n,e)},"data-is-disabled":w},O),a.a.createElement(at,{width:u,height:u,icon:"upload",spinning:N,color:d,onDragOver:D,onDragEnter:T})))};di.propTypes={width:u.a.string,height:u.a.string,onSuccess:u.a.func,onFailure:u.a.func,style:u.a.object,apiUrl:u.a.string,apiConfig:u.a.object},di.defaultProps={width:"100%",height:"100%",onSuccess:function(){},onFailure:function(){},style:{}};var fi,pi=["onSuccess","onFailure","apiUrl","apiConfig","className","disabled","children","multiple"];function mi(){return(mi=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function bi(e){return function(e){if(Array.isArray(e))return xi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vi(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 gi(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function hi(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){gi(o,r,a,i,l,"next",e)}function l(e){gi(o,r,a,i,l,"throw",e)}i(void 0)}))}}function yi(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||vi(e,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.")}()}function vi(e,n){if(e){if("string"==typeof e)return xi(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?xi(e,n):void 0}}function xi(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function wi(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Oi=y.a.div(fi||(fi=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n &.dropping {\n background: #a4d5ff;\n }\n"]))),ki=Object(r.forwardRef)((function(e,n){var t=e.onSuccess,o=void 0===t?function(){}:t,i=e.onFailure,l=void 0===i?function(){}:i,c=e.apiUrl,u=e.apiConfig,s=e.className,d=e.disabled,f=void 0!==d&&d,p=e.children,m=e.multiple,b=wi(e,pi),g=yi(Object(r.useState)(!1),2),y=g[0],v=g[1],x=yi(Object(r.useState)(!1),2),w=x[0],O=x[1],k=Object(r.useCallback)(function(){var e=hi(regeneratorRuntime.mark((function e(n){var t,r,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O(!0),t=function(){var e=hi(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u.file=n,e.next=3,xc(c,u);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.next=4,Promise.all(n.map(function(){var e=hi(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:r=e.sent,a=r.filter((function(e){return e.success})),i=r.filter((function(e){return!e.success})),a.length&&o(m?a:a[0]),i.length&&l(m?i:i[0]),O(!1);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),[u,o,l]),E=Object(r.useCallback)((function(e,n){n.preventDefault(),n.stopPropagation(),v(!1),k(e)}),[k]),j=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation()}),[]),S=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),f||v(!0)}),[f]),C=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),f||v(!1)}),[f]),P=Object(r.useCallback)((function(e){if(!f){var n=bi(e.dataTransfer.files);E(n,e)}}),[f,E]),A=Object(r.useCallback)((function(e){var n=bi(e.target.files);E(n,e)}),[E]);return a.a.createElement(h,{busy:w},a.a.createElement("input",{type:"file",accept:"image/*",ref:n,onChange:A,style:{display:"none"},multiple:m}),a.a.createElement(Oi,mi({className:"".concat(s||""," ").concat(y?"dropping":""),onDragOver:j,onDragEnter:S,onDragLeave:C,onDrop:P},b),p))}));ki.propTypes={ref:u.a.ref,onSuccess:u.a.func,onFailure:u.a.func,apiUrl:u.a.string,apiConfig:u.a.object,disabled:u.a.bool},ki.defaultProps={onSuccess:function(){},onFailure:function(){},disabled:!1};var Ei,ji,Si,Ci,Pi,Ai=["month","year","onEventClicked","onEventMoved","eventBuilder","events"];function zi(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ni(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ri(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Ii(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ii(e,n)}(e,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.")}()}function Ii(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Di(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function Ti(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var _i={Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6,Sunday:7},Bi=y.a.div(Ei||(Ei=Ti(["\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n font-family: ",";\n font-size: 12px;\n"])),C.fontFamily),Mi=y.a.div(ji||(ji=Ti(["\n display: flex;\n width: 100%;\n padding: 10px 0px;\n color: white;\n background: ",";\n border-radius: 5px 5px 0px 0px;\n\n div {\n width: calc(100% / 7);\n text-align: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])),C.primary),Fi=y.a.div(Si||(Si=Ti(["\n display: flex;\n flex-direction: column;\n"]))),Li=y.a.div(Ci||(Ci=Ti(["\n display: flex;\n"]))),Ui=y.a.div(Pi||(Pi=Ti(["\n background: purple;\n width: calc(100% / 7);\n background: ",";;\n padding: 3px;\n border-bottom: 1px solid ",";\n border-right: 1px solid ",";\n position: relative;\n transition: background-color 150ms linear;\n box-sizing: border-box;\n\n &:first-child {\n border-left: 1px solid ",";\n }\n\n &:last-child {\n border-right: 1px solid ",";\n }\n\n .day {\n text-align: right;\n color: ",";\n margin-bottom: 5px;\n }\n\n &.highlighted {\n background: #ffe8bc;\n }\n\n &.today .day {\n font-weight: bold;\n text-decoration: underline;\n }\n\n .gray-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: ",";\n opacity: 0.8;\n }\n\n .event {\n margin-bottom: 2px;\n }\n\n .event:last-child {\n margin-bottom: 0px;\n }\n"])),C.white,C.lightGray,C.lightGray,C.lightGray,C.lightGray,C.black,C.lightGray);var Gi=function(e){var n=e.month,t=void 0===n?(new Date).getMonth():n,a=e.year,o=void 0===a?(new Date).getFullYear():a,i=e.onEventClicked,l=void 0===i?function(){console.log("[NekoCalendar] onEventClicked not handled.")}:i,c=e.onEventMoved,u=void 0===c?function(){console.log("[NekoCalendar] onEventMoved not handled.")}:c,s=e.eventBuilder,d=void 0===s?function(){return"YOOO"}:s,f=e.events,p=Di(e,Ai),m=Ri(Object(r.useState)(),2),b=m[0],g=m[1],h=Ri(Object(r.useState)(),2),y=h[0],v=h[1],x=e.disableDaysBefore,w=void 0===x?null:x;w=w||new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate());var O=Object(r.useMemo)((function(){for(var e=[],n=function(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_i.Monday,r=new Date(n,e);r.getDay()!==t;)r.setDate(r.getDate()-1);return r}(t,o,_i.Monday),r=function(e,n){for(var t=new Date(e),r=new Date(n),a=0;t<=r;)a++,t.setDate(t.getDate()+1);return a-1}(n,new Date(o,t,1))<5?34:41,a=new Date(n).setDate(n.getDate()+r);n<=a;)e.push(new Date(n)),n.setDate(n.getDate()+1);return function(e,n){for(var t=[],r=0;r<e.length;)t.push(e.slice(r,r+=n));return t}(e,7)}),[t,o]);return React.createElement(Bi,p,React.createElement(Mi,null,Object.keys(_i).map((function(e){return React.createElement("div",{key:e},e)}))),React.createElement(Fi,null,O.map((function(e){return React.createElement(Li,{key:e},e.map((function(e){var n,r,a=e.getMonth()==t,o=!a||e<w,i=(o?"disabled ":"")+(n=e,r=new Date,n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()?"today":"")+(e===y?"highlighted":""),c=f.filter((function(n){return a&&n.date.getDate()===e.getDate()}));return React.createElement(Ui,{className:i,key:e.getTime(),onDragOver:function(n){return!o&&(t=e,r=b.date,t.getFullYear()!==r.getFullYear()||t.getMonth()!==r.getMonth()||t.getDate()!==r.getDate())&&(n.preventDefault(),v(e),!0);var t,r},onDragLeave:function(){return v(null)},onDrop:function(){u(e,b),v(null)}},React.createElement("div",{className:"day"},e.getDate()),c.map((function(e){return React.createElement("div",{className:"event",key:e.key,draggable:e.draggable,onClick:function(){return l(e)},onDragStart:function(n){return g(e)}},d(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?zi(Object(t),!0).forEach((function(n){Ni(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):zi(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e)))})),o&&React.createElement("div",{className:"gray-overlay"}))})))}))))};Gi.propTypes={month:u.a.number,year:u.a.number,disableDaysBefore:u.a.instanceOf(Date),disableDaysAfter:u.a.instanceOf(Date),eventBuilder:u.a.func,events:u.a.array,onEventClicked:u.a.func,onEventMoved:u.a.func},Gi.defaultProps={month:(new Date).getMonth(),year:(new Date).getFullYear(),disableDaysBefore:null,disableDaysAfter:null,eventBuilder:function(){return"UI for this event"},events:[{key:"A1",date:new Date},{key:"A2",date:new Date}],onEventClicked:function(e){console.log("An event was clicked",e)},onEventMoved:function(e,n){console.log("An event was moved to another day",n,e)}};var qi,Hi,$i=t(77),Wi=t.n($i),Ki=["id","isOpen","children","className","style","ok","cancel","customButtons","customButtonsPosition","title","content","contentWidth","onOkClick","onCancelClick","okOnEnter","thumbnail"];function Ji(){return(Ji=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Vi(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function Yi(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Zi=y.a.div(qi||(qi=Yi(["\n\n .ReactModal__Overlay {\n z-index: 100;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n background: "," !important;\n }\n .ReactModal__Overlay {\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n .ReactModal__Overlay .neko-modal {\n opacity: 0;\n transform: scale(0.85);\n transition: all 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open .neko-modal {\n transform: scale(1);\n opacity: 1;\n }\n .ReactModal__Overlay--before-close .neko-modal {\n transform: scale(0.85);\n opacity: 0;\n }\n .neko-modal {\n background: ",";\n position: relative;\n box-shadow: 2px 2px 15px 2px rgba(0, 0, 0, 0.8);\n outline: none;\n padding: 15px;\n max-width: 820px;\n }\n"])),C.overlay,C.white),Xi=y.a.div(Hi||(Hi=Yi(["\n width: ",";\n\n p {\n margin: 0;\n }\n .title {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n }\n .content-container {\n display: flex;\n margin-top: 15px;\n\n .thumbnail {\n margin-right: 15px;\n width: 240px;\n overflow: hidden;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n .content {\n flex: auto;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 14px;\n width: 100%;\n }\n }\n .button-group {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n margin-top: 15px;\n }\n"])),(function(e){var n;return null!==(n=e.width)&&void 0!==n?n:"518px"}),C.fontFamily,C.fontFamily),Qi=function(e){var n=e.id,t=void 0===n?"neko-modal-parent":n,o=e.isOpen,i=e.children,l=e.className,c=e.style,u=e.ok,s=void 0===u?"OK":u,d=e.cancel,f=void 0===d?"Cancel":d,p=e.customButtons,m=void 0===p?null:p,b=e.customButtonsPosition,g=void 0===b?"right":b,h=e.title,y=void 0===h?"":h,v=e.content,x=void 0===v?"":v,w=e.contentWidth,O=e.onOkClick,k=e.onCancelClick,E=e.okOnEnter,j=void 0!==E&&E,S=e.thumbnail,C=Vi(e,Ki),P=c?"custom-modal":"",A=null!==m,z=Object(r.useCallback)((function(e){"Enter"===e.key&&O()}),[O]);Object(r.useEffect)((function(){if(j&&o)return window.addEventListener("keyup",z),function(){window.removeEventListener("keyup",z)}}),[o,z]);var N=i||a.a.createElement(Xi,{width:w},y&&a.a.createElement("p",{className:"title"},y),a.a.createElement("div",{className:"content-container"},S&&a.a.createElement("div",{className:"thumbnail"},S),x&&a.a.createElement("p",{className:"content"},x)),a.a.createElement("div",{className:"button-group"},A&&"left"===g&&m,k&&a.a.createElement(dt,{className:"danger",onClick:k},f),O&&a.a.createElement(dt,{onClick:O},s),A&&"right"===g&&m));return a.a.createElement(a.a.Fragment,null,a.a.createElement(Zi,{id:t}),a.a.createElement(Wi.a,Ji({ariaHideApp:!1,parentSelector:function(){return document.getElementById(t)},closeTimeoutMS:200,className:"neko-modal ".concat(l||""," ").concat(P),isOpen:o},C),N))},el=function(e){return a.a.createElement(Qi,e)};el.propTypes={className:u.a.string,style:u.a.object,ok:u.a.string,cancel:u.a.string,title:u.a.string,content:u.a.string,contentWidth:u.a.string,onOkClick:u.a.func,onCancelClick:u.a.func,customButtons:u.a.object,okOnEnter:u.a.bool,thumbnail:u.a.element},el.defaultProps={className:void 0,style:void 0,ok:"OK",cancel:"Cancel",title:"",content:"",contentWidth:void 0,onOkClick:void 0,onCancelClick:void 0,customButtons:null,okOnEnter:!1,thumbnail:void 0};var nl,tl=t(78),rl=t.n(tl),al=["checked","intermediate","onSelect","onUnselect"];function ol(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function il(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ol(Object(t),!0).forEach((function(n){ll(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ol(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ll(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function cl(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var ul=y.a.table(nl||(nl=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-family: ",";\n border-spacing: 0;\n width: 100%;\n word-break: break-all;\n\n th, td {\n margin: 0;\n padding: 5px;\n border-bottom: 1px solid rgba(",", 0.1);\n border-right: 1px solid rgba(",", 0.1);\n\n a {\n text-decoration: none;\n }\n\n :last-child {\n border-right: 0;\n }\n }\n\n &.nekotable-raw {\n th, td {\n border: 0;\n }\n }\n\n th, tfoot td {\n height: 30px;\n background-color: ",";\n color: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n text-align: left;\n\n div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n &.sortable {\n cursor: pointer;\n }\n }\n }\n\n thead tr th:first-child {\n border-top-left-radius: 10px;\n }\n\n thead tr th:last-child {\n border-top-right-radius: 10px;\n }\n\n tfoot tr th:first-child {\n border-bottom-left-radius: 10px;\n }\n\n tfoot tr th:last-child {\n border-bottom-right-radius: 10px;\n }\n\n &.nekotable-raw {\n th {\n font-weight: bold;\n }\n th, tfoot td {\n background-color: ",";\n color: ",";\n\n div {\n justify-content: normal;\n }\n }\n }\n\n tbody {\n background-color: ",";\n \n tr {\n :nth-child(even) {\n background-color: ",";\n }\n &.selected {\n background-color: rgba(",", 0.8);\n color: ",";\n\n a {\n color: #81e8ff;\n }\n }\n }\n img {\n vertical-align: bottom;\n }\n }\n\n &.nekotable-raw {\n tbody {\n tr {\n :nth-child(even) {\n background-color: ",";\n }\n &.selected {\n background-color: ",";\n color: ",";\n }\n }\n }\n }\n\n tfoot tr:last-child {\n td {\n border-bottom: 0;\n }\n }\n\n .table-checkbox-cell {\n width: 35px;\n text-align: center;\n\n svg {\n padding: 5px;\n cursor: pointer;\n }\n }\n"])),C.fontFamily,C.blackRGB,C.blackRGB,C.blue,C.white,C.white,C.black,C.white,C.tableGray,C.blueRGB,C.white,C.white,C.white,C.black),sl=function(e){var n=e.checked,t=e.intermediate,r=void 0!==t&&t,o=e.onSelect,i=void 0===o?function(){}:o,l=e.onUnselect,c=void 0===l?function(){}:l;cl(e,al);return a.a.createElement(P.Icon,{icon:r?rl.a:n?Fr.a:Br.a,width:"24px",height:"24px",onClick:function(e){n?c(e):i(e)}})},dl={left:"start",center:"center",right:"end"},fl=function(e){var n=e.columns,t=e.data,r=e.busy,o=void 0!==r&&r,i=e.onSelect,l=e.onUnselect,c=e.selectedItems,u=e.sort,s=e.onSortChange,d=e.variant,f=void 0===d?"default":d,p=e.sortIconColor,m=void 0===p?void 0:p,b=e.emptyMessage,g=void 0===b?"Empty.":b,y=n.length+(i?1:0),v=function(e){var n={};return e.align&&(n={textAlign:e.align,justifyContent:dl[e.align]}),e.width&&(n=il(il({},n),{},{width:e.width})),e.style&&(n=il(il({},n),e.style)),n},x=t.map((function(e){var t=n.map((function(n){return{value:e[n.accessor],style:v(n)}}));return{id:e.id,cells:t}})),w=x.map((function(e){return e.id})),O=w.filter((function(e){return c.includes(e)})).length===w.length,k=!O&&c.length>0,E=n.reduce((function(e,n,t){return!1===n.visible&&e.push(t),e}),[]),j=a.a.createElement("tr",null,i&&a.a.createElement("th",{className:"table-checkbox-cell"},a.a.createElement(sl,{checked:O,intermediate:k,onSelect:function(e){return i(w,e)},onUnselect:function(e){l(k?c:w,e)}})),n.filter((function(e,n){return!E.includes(n)})).map((function(e){var n=u&&u.accessor===e.accessor,t=u&&"asc"===u.by,r=n?C.white:"rgba(".concat(C.blackRGB,", 0.1)");m&&(r=n?m:C.gray);var o=v(e);return a.a.createElement("th",{style:o,key:e.accessor},a.a.createElement("div",{className:e.sortable?"sortable":"",style:o,onClick:e.sortable?function(r){s(e.accessor,n&&t?"desc":"asc",r)}:void 0},a.a.createElement("div",null,e.title),a.a.createElement("div",{style:{flex:"auto"}}),a.a.createElement("div",null,e.sortable&&a.a.createElement(P.Icon,{icon:n?t?X.a:ee.a:X.a,color:r,width:"26px",height:"26px"}))))})));return a.a.createElement(h,{busy:o,overlayStyle:{top:"36px",height:"calc(100% - 76px)"}},a.a.createElement(ul,{className:"nekotable-".concat(f)},a.a.createElement("thead",null,j),a.a.createElement("tbody",null,!x.length&&a.a.createElement("tr",null,a.a.createElement("td",{colspan:y,style:{textAlign:"center",height:40,color:"gray"}},g)),x.map((function(e){return a.a.createElement("tr",{className:c.includes(e.id)?"selected":""},i&&a.a.createElement("td",{className:"table-checkbox-cell"},a.a.createElement(sl,{checked:c.includes(e.id),onSelect:function(n){return i([e.id],n)},onUnselect:function(n){return l([e.id],n)}})),e.cells.filter((function(e,n){return!E.includes(n)})).map((function(e){return a.a.createElement("td",{style:e.style},e.value)})))}))),"default"===f&&a.a.createElement("tfoot",null,j)))},pl=function(e){return a.a.createElement(fl,e)};pl.propTypes={columns:u.a.arrayOf(u.a.any),data:u.a.arrayOf(u.a.any),busy:u.a.arrayOf(u.a.bool),onSelect:u.a.func,onUnselect:u.a.func,selectedItems:u.a.arrayOf(u.a.object),onSortChange:u.a.func,variant:u.a.string,sortIconColor:u.a.string},pl.defaultProps={columns:void 0,data:void 0,busy:!1,onSelect:void 0,onUnselect:void 0,selectedItems:void 0,onSortChange:void 0,variant:"default",sortIconColor:void 0};var ml,bl=["images","onNextPage","onPreviousPage","onRefresh","onClick","onRemoveClick","onZoomClick","onSearch","searchValue","busy","currentPage","limit","total","onPageChange","selected","multiSelect","showUploader","uploader","onSelectedOrderChanged","onUploadSuccess","onUploadFailure","uploadApiUrl","uploadApiConfig","uploadMultiple","onClose","onCancel","onSave"];function gl(){return(gl=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function hl(e){return function(e){if(Array.isArray(e))return xl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vl(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 yl(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||vl(e,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.")}()}function vl(e,n){if(e){if("string"==typeof e)return xl(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?xl(e,n):void 0}}function xl(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function wl(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Ol,kl,El,jl,Sl=Object(y.a)(el)(ml||(ml=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n width: 633px;\n\n &.custom-modal {\n padding: 0;\n }\n\n .neko-modal-wrapper {\n padding: 15px;\n }\n\n .neko-media-library-modal-content-header {\n align-items: center;\n display: flex;\n justify-content: space-between;\n\n h1 {\n font-size: 21px;\n font-weight: bold;\n margin: 0;\n }\n\n input {\n background-color: ",";\n border: 1px solid ",";\n border-radius: 3px;\n }\n }\n .neko-media-library-modal-content-body {\n margin-top: 33px;\n margin-bottom: 36px;\n\n .neko-media-library-modal-content-body-list {\n max-height: 406px;\n overflow-y: scroll;\n margin-bottom: 10px;\n width: 100%;\n }\n .neko-media-library-modal-content-body-gallery {\n display: grid;\n gap: 10px;\n grid-template-columns: repeat(6, 1fr);\n margin-bottom: 10px;\n\n .neko-media-library-modal-content-media-container {\n cursor: pointer;\n position: relative;\n\n img {\n box-sizing: border-box;\n }\n\n &.selected {\n img {\n border: 5px solid ",";\n }\n }\n\n &:hover {\n .zoom-button {\n display: block;\n }\n }\n\n .zoom-button {\n background-color: rgba(",", 0.4);\n border: 0;\n border-radius: 30px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 2px;\n left: 2px;\n width: 30px;\n height: 30px;\n }\n }\n }\n\n .neko-media-library-modal-content-body-selected-gallery {\n display: flex;\n\n .neko-media-library-modal-content-selected-media-container {\n overflow: hidden;\n position: relative;\n height: 50px;\n width: 50px;\n padding-right: 5px;\n\n &.dummy {\n width: 50px;\n\n &.drag-over {\n width: 50px;\n }\n }\n\n &.drag-over {\n width: 105px;\n\n .zoom-button {\n left: 56px;\n }\n }\n\n &.drag-over::before {\n content: '';\n display: inline-block;\n width: 50px;\n height: 50px;\n background-color: ",";\n }\n\n img {\n box-sizing: border-box;\n width: 100%;\n max-width: 50px;\n }\n\n &.drag-over {\n img {\n margin-left: 5px;\n }\n }\n\n &:hover {\n .remove-button,\n .zoom-button {\n display: block;\n }\n }\n\n .remove-button {\n background-color: rgba(",", 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n right: 1px;\n width: 20px;\n height: 20px;\n }\n\n .zoom-button {\n background-color: rgba(",", 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n left: 1px;\n width: 20px;\n height: 20px;\n }\n }\n }\n }\n .neko-media-library-modal-content-footer {\n display: flex;\n justify-content: space-between;\n }\n .neko-media-library-modal-search {\n position: relative;\n }\n"])),C.white,C.black,C.blue,C.blackRGB,C.blue,C.blackRGB,C.blackRGB),Cl=function(e){Array.prototype.forEach.call(document.getElementsByClassName(e),(function(n){n.classList.remove(e)}))},Pl="grid",Al="list",zl=[{accessor:"thumbnail_url",title:"Thumb",style:{width:"42px"}},{accessor:"title",title:"Title"},{accessor:"size",title:"Size",style:{width:"70px"}},{accessor:"filename",title:"Filename"}],Nl=function(e){var n=e.images,t=(e.onNextPage,e.onPreviousPage,e.onRefresh),o=e.onClick,i=e.onRemoveClick,l=e.onZoomClick,c=e.onSearch,u=e.searchValue,s=e.busy,d=e.currentPage,f=e.limit,p=e.total,m=e.onPageChange,b=e.selected,g=e.multiSelect,y=void 0!==g&&g,v=e.showUploader,x=void 0!==v&&v,w=e.uploader,O=e.onSelectedOrderChanged,k=e.onUploadSuccess,E=void 0===k?function(){}:k,j=e.onUploadFailure,S=void 0===j?function(){}:j,P=e.uploadApiUrl,A=e.uploadApiConfig,z=e.uploadMultiple,N=e.onClose,R=e.onCancel,I=e.onSave,D=wl(e,bl),T=yl(Object(r.useState)(u),2),_=T[0],B=T[1],M=yl(Object(r.useState)(null),2),F=M[0],L=M[1],U=yl(Object(r.useState)(Pl),2),G=U[0],q=U[1],H=Object(r.useRef)(null),$=function(e,n){if(e.preventDefault(),null!==F){var t=e.currentTarget.getBoundingClientRect(),r=t.width,a=t.left,o=t.right,i=n;F<n&&(n>0&&n<b.length?i+1===F&&e.clientX>=o-25?i-=1:(i-1===F&&e.clientX>=a-25||55!==r&&e.clientX>=o-25)&&(i+=1):55!==r&&e.clientX>=o-25&&(i+=1)),Cl("drag-over"),F!==i&&F+1!==i&&document.getElementById("".concat("nmlm-selected-").concat(i)).classList.add("drag-over")}},W=function(e){e.preventDefault(),L(null),Cl("drag-over")},K=function(e,n){e.preventDefault(),null!==F&&F!==n&&F+1!==n&&O({currentIndex:F,afterIndex:F>n?n:n-1})},J=Object(r.useMemo)((function(){if(!y)return[];var e=a.a.createElement("div",{id:"nmlm-selected-".concat(b.length),className:"neko-media-library-modal-content-selected-media-container dummy",draggable:!1,onDragEnd:function(e){return W(e)},onDragOver:function(e){return $(e,b.length)},onDrop:function(e){return K(e,b.length)},onDragLeave:function(){return Cl("drag-over")}}),n=b.map((function(e,n){return a.a.createElement("div",{id:"nmlm-selected-".concat(n),key:e.id,className:"neko-media-library-modal-content-selected-media-container",draggable:!0,onDragStart:function(){return L(n)},onDragEnd:W,onDragOver:function(e){return $(e,n)},onDrop:function(e){return K(e,n)}},a.a.createElement("img",{src:e.src,className:"neko-media-library-modal-content-media"}),a.a.createElement("button",{className:"remove-button",onClick:function(){return i({id:e.id,src:e.src})}},a.a.createElement(at,{icon:"close",color:C.white,width:19,height:19})),a.a.createElement("button",{className:"zoom-button",onClick:function(){return l({id:e.id,src:e.zoom_src})}},a.a.createElement(at,{icon:"zoom-in",color:C.white,width:19,height:19})))}));return[].concat(hl(n),[e])}),[b,y,i,l,$,W,K]),V=Object(r.useMemo)((function(){return n.map((function(e){return a.a.createElement("div",{key:e.id,className:"neko-media-library-modal-content-media-container ".concat(b.some((function(n){return n.id===e.id}))?"selected":""),onClick:function(){o({id:e.id,src:e.src,zoom_src:e.zoom_src})}},a.a.createElement("img",{src:e.src,className:"neko-media-library-modal-content-media",width:"90",height:"90"}),a.a.createElement("button",{className:"zoom-button",onClick:function(n){n.stopPropagation(),l({id:e.id,src:e.zoom_src})}},a.a.createElement(at,{icon:"zoom-in",color:C.white,width:29,height:29})))}))}),[n,b,l,o]),Y=Object(r.useMemo)((function(){return n.map((function(e){return{id:e.id,thumbnail_url:a.a.createElement("img",{src:e.src,style:{width:40,height:40,objectFit:"cover"}}),title:e.title,size:e.size,filename:e.filename}}))}),[n]),Z=Object(r.useCallback)((function(){B(""),t()}),[t]),X=Object(r.useMemo)((function(){var e=function(e,t){var r=n.find((function(n){return e.includes(n.id)}));o({id:r.id,src:r.src,zoom_src:r.zoom_src})};return a.a.createElement(pl,{data:Y,columns:zl,onSelect:e,onUnselect:e,selectedItems:b.map((function(e){return e.id}))})}),[n,Y,b,o]);return a.a.createElement(Sl,gl({style:!0},D),a.a.createElement("div",{className:"neko-modal-wrapper",draggable:!0,onDragOver:function(){return Cl("drag-over")}},a.a.createElement(ki,{ref:H,onSuccess:E,onFailure:S,apiUrl:P,apiConfig:A,disabled:!x||null!==F,multiple:z},a.a.createElement("div",{className:"neko-media-library-modal-content"},a.a.createElement("div",{className:"neko-media-library-modal-content-header"},a.a.createElement(tr,{h1:!0},"Media Library"),a.a.createElement("div",{style:{display:"flex"}},a.a.createElement("div",{className:"neko-media-library-modal-search"},a.a.createElement(Xr,{value:_,disabled:s,onEnter:c,onChange:function(e){return B(e)},placeholder:"Search..."}),""!==_&&a.a.createElement(at,{icon:"close",containerStyle:{width:"20px",position:"absolute",right:"5px",top:"5px",cursor:"pointer"},width:20,height:20,color:C.darkGray,onClick:Z})),a.a.createElement(dt,{onClick:function(){return c(_)},style:{marginLeft:"4px",marginRight:"4px"}},"Search"),a.a.createElement(at,{color:G===Pl?C.black:C.blue,icon:"view-grid",onClick:function(){return q(Pl)},width:"20",height:"20"}),a.a.createElement(at,{color:G===Al?C.black:C.blue,icon:"format-list-bulleted",onClick:function(){return q(Al)},width:"20",height:"20"}))),a.a.createElement("div",null,a.a.createElement("div",{className:"neko-media-library-modal-content-body"},a.a.createElement(h,{busy:s},a.a.createElement("div",{className:"".concat(G===Pl?"neko-media-library-modal-content-body-gallery":"neko-media-library-modal-content-body-list")},G===Pl&&x&&w,G===Pl?V:X)),a.a.createElement("div",{className:"neko-media-library-modal-content-body-selected-gallery"},J))),a.a.createElement("div",{className:"neko-media-library-modal-content-footer"},a.a.createElement(Bo,{limit:f,currentPage:d,total:p,onClick:m}),a.a.createElement("div",{style:{display:"flex"}},!!N&&a.a.createElement(dt,{onClick:function(){return N()}},"Close"),!!R&&a.a.createElement(dt,{className:"danger",onClick:function(){return R()}},"Cancel"),!!I&&a.a.createElement(dt,{onClick:function(){return I()}},"Save")))))))},Rl=function(e){return a.a.createElement(Nl,e)};function Il(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Dl(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Dl(e,n)}(e,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.")}()}function Dl(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Tl(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Rl.propTypes={images:u.a.array,onNextPage:u.a.func,onPreviousPage:u.a.func,onRefresh:u.a.func,onClick:u.a.func,onSearch:u.a.func,searchValue:u.a.string,busy:u.a.bool,currentPage:u.a.number,limit:u.a.number,total:u.a.number,onPageChange:u.a.func,multiSelect:u.a.bool,selected:u.a.array,onClose:u.a.func,onCancel:u.a.func,onSave:u.a.func},Rl.defaultProps={multiSelect:!1};var _l=y.a.div(Ol||(Ol=Tl(["\n"]))),Bl=y.a.div(kl||(kl=Tl(["\n display: flex;\n"]))),Ml=y.a.button(El||(El=Tl(["\n font-family: ",";\n font-size: ",";\n border-radius: 8px 8px 0px 0px;\n border: 0;\n background-color: #459ad2;\n color: rgb(255 255 255 / 65%);\n display: flex;\n align-items: center;\n\n cursor: pointer;\n line-height: 17px;\n margin-right: 5px;\n text-align: left;\n padding: 10px 15px 10px 15px;\n\n &:focus {\n outline: none;\n }\n\n &.active {\n background-color: ",";\n color: ",";\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n cursor: default;\n display: inline-flex;\n padding-bottom: 7px;\n }\n\n &.hidden {\n display: none;\n }\n"])),C.fontFamily,C.fontSizeText,C.blue,C.white),Fl=y.a.div(jl||(jl=Tl(["\n background-color: ",";\n display: none;\n padding: 10px;\n\n &.active {\n display: block;\n }\n"])),C.blue),Ll=function(e){var n=Il(a.a.useState(0),2),t=n[0],r=n[1],o=e.children?e.children.length?e.children.filter((function(e){return!!e})):[e.children]:[];a.a.useEffect((function(){if(e.keepTabOnReload){var n=new URL(window.location.href).searchParams.get("nekoTab");if(!n)return r(0),void(e.callOnTabChangeFirst&&c(0,i[0]));var t=decodeURIComponent(n),l=a.a.Children.toArray(o).map((function(e){return e.props.title.replaceAll(" ","")})).indexOf(t);return-1===l?(r(0),void(e.callOnTabChangeFirst&&c(0,i[0]))):(r(l),void(e.callOnTabChangeFirst&&c(l,i[l])))}r(0),e.callOnTabChangeFirst&&c(0,i[0])}),[]);var i=a.a.Children.map(o,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1),hidden:n.props.hidden||!1,icon:n.props.icon||!1}})),l=a.a.Children.map(o,(function(e,n){return a.a.cloneElement(e,{isActive:n===t})})),c=function(n,t,a){t.requirePro||(r(n),e.onChange&&e.onChange(n,t,a),e.keepTabOnReload&&function(e){if(history.pushState&&"string"==typeof e){var n=new URLSearchParams(window.location.search),t=encodeURIComponent(e.replaceAll(" ",""));n.set("nekoTab",t);var r=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+n.toString();window.history.replaceState({path:r},"",r)}}(t.title))};return a.a.createElement(_l,null,a.a.createElement(Bl,null,i.map((function(e,n){return a.a.createElement(Ml,{key:e.key,className:"neko-tab-title ".concat(n===t?"active":""," ").concat(e.requirePro?"disabled":""," ").concat(e.hidden?"hidden":""),onClick:function(t){c(n,e,t)}},e.icon&&a.a.createElement(at,{icon:e.icon,width:15,height:15,style:{marginRight:"2px"},raw:!0}),e.title,a.a.createElement(Ot,{className:"inline",style:{marginLeft:10,marginRight:-5,top:-1},show:e.requirePro}))}))),l)},Ul=function(e){var n=e.children,t=e.isActive;return a.a.createElement(Fl,{className:"".concat(t?"active":"")},!!t&&n)},Gl=function(e){return a.a.createElement(Ll,e)};Gl.propTypes={isPro:u.a.bool,onChange:u.a.func},Gl.defaultProps={isPro:!1,onChange:void 0};var ql,Hl,$l,Wl=function(e){return a.a.createElement(Ul,e)};function Kl(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Jl(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Jl(e,n)}(e,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.")}()}function Jl(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Vl(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Wl.propTypes={isActive:u.a.bool,requirePro:u.a.bool,title:u.a.string,icon:u.a.string},Wl.defaultProps={isActive:!1,requirePro:!1,title:void 0,icon:void 0};var Yl=y.a.div(ql||(ql=Vl(["\n"]))),Zl=y.a.div(Hl||(Hl=Vl(["\n align-items: center;\n background-color: ",";\n border: 0;\n cursor: pointer;\n display: flex;\n padding: 2px 3px 2px 19px;\n\n &.disabled {\n background-color: rgba(",", 0.25);\n cursor: default;\n }\n\n p {\n color: ",";\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n margin: 0;\n }\n\n .neko-side-tab-icon {\n color: ",";\n margin-left: auto;\n height: 36px;\n width: 36px;\n }\n"])),C.blue,C.yellowRGB,C.white,C.fontFamily,C.white),Xl=y.a.div($l||($l=Vl(["\n background-color: ",";\n display: none;\n\n &.active {\n display: block;\n }\n"])),C.white),Ql=function(e){var n=Kl(a.a.useState(e.activeTabIndex),2),t=n[0],r=n[1],o=a.a.Children.map(e.children,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1),onDragOver:n.props.onDragOver,onDrop:n.props.onDrop,rightActions:n.props.rightActions||null}})),i=a.a.Children.map(e.children,(function(e,n){return a.a.cloneElement(e,{isActive:n===t})}));return a.a.createElement(Yl,null,o.map((function(n,o){return a.a.createElement(a.a.Fragment,null,a.a.createElement(Zl,{key:n.key,className:"".concat(o===t?"active":""," ").concat(n.requirePro?"disabled":""),onClick:function(a){!function(n,a,o){if(!a.requirePro){var i=n===t?null:n;r(i),e.onChange&&e.onChange(i,a,o)}}(o,n,a)},onDragOver:n.onDragOver,onDrop:n.onDrop},a.a.createElement("p",null,a.a.createElement("span",{style:{fontSize:15}},n.title),a.a.createElement(Ot,{className:"inline",show:n.requirePro})),null===n.rightActions?a.a.createElement(P.Icon,{icon:o===t?X.a:Y.a,className:"neko-side-tab-icon"}):o===t?a.a.createElement("div",{style:{marginLeft:"auto"}},n.rightActions):a.a.createElement(P.Icon,{icon:Y.a,className:"neko-side-tab-icon"})),i[o])})))},ec=function(e){var n=e.children,t=e.isActive;return a.a.createElement(Xl,{className:"".concat(t?"active":"")},n)},nc=function(e){return a.a.createElement(Ql,e)};nc.propTypes={isPro:u.a.bool,onChange:u.a.func,activeTabIndex:u.a.number},nc.defaultProps={isPro:!1,onChange:void 0,activeTabIndex:null};var tc=function(e){return a.a.createElement(ec,e)};tc.propTypes={isActive:u.a.bool,requirePro:u.a.bool,title:u.a.string,onDragOver:u.a.func,onDrop:u.a.func,rightActions:u.a.element},tc.defaultProps={isActive:!1,requirePro:!1,title:void 0,onDragOver:void 0,onDrop:void 0,rightActions:void 0};var rc,ac=["align"];function oc(){return(oc=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ic(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var lc=y.a.div(rc||(rc=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n box-sizing: border-box;\n display: flex;\n width: 100%;\n padding: 10px 10px;\n background: ",";\n border-radius: 10px;\n box-shadow: 0px 0px 10px rgba(",", 0.1);\n\n &.neko-align-left {\n justify-content: flex-start;\n }\n\n &.neko-align-right {\n justify-content: flex-end;\n }\n\n > *:not(:last-child) {\n margin-right: 5px;\n }\n"])),C.white,C.blackRGB),cc=function(e){var n=e.align,t=void 0===n?"left":n,r=ic(e,ac);return a.a.createElement(lc,oc({className:"neko-align-".concat(t)},r),r.children)},uc=function(e){return a.a.createElement(cc,e)};uc.propTypes={align:u.a.oneOf(["left","right"])},uc.defaultProps={align:"left"};t(24);function sc(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}var dc=function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};sc(this,e),this.url=r,this.message=n,this.code=t,this.body=a,this.debug=o};function fc(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||gc(e,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.")}()}function pc(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function mc(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){pc(o,r,a,i,l,"next",e)}function l(e){pc(o,r,a,i,l,"throw",e)}i(void 0)}))}}function bc(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=gc(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw o}}}}function gc(e,n){if(e){if("string"==typeof e)return hc(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?hc(e,n):void 0}}function hc(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var yc=function(e){if(!e.data)return e;if(e.data.length>0&&e.data[0].meta){var n,t=bc(e.data);try{for(t.s();!(n=t.n()).done;){var r=n.value;try{r.meta=JSON.parse(r.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",r.meta)}}}catch(e){t.e(e)}finally{t.f()}}else if(e.data.meta)try{e.data.meta=JSON.parse(e.data.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",x.meta)}return e},vc=function(){var e=mc(regeneratorRuntime.mark((function e(n){var t,r,a,o,i,l,c,u,s,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>1&&void 0!==d[1]?d[1]:{},r=null,a={},o=null,i=null,e.prev=5,(t=t||{}).headers=t.headers?t.headers:{},t.headers.Pragma="no-cache",t.headers["Cache-Control"]="no-cache",e.next=12,fetch("".concat(n),t);case 12:return i=e.sent,e.next=15,i.text();case 15:r=e.sent,(a=JSON.parse(r)).success||(l=!1===a.success?"NOT-SUCCESS":"N/A",c=a.message?a.message:"Unknown error. Check your Console Logs.","rest_no_route"===a.code?(c="The API can't be accessed. Is Rest API enabled?",l="NO-ROUTE"):"internal_server_error"===a.code&&(c="Server error. Please check your PHP Error Logs.",l="SERVER-ERROR"),o=new dc(c,l,n,r||i)),e.next=26;break;case 20:e.prev=20,e.t0=e.catch(5),u="BROKEN-REPLY",s="The reply sent by the server is broken.",i&&i.status&&408===i.status&&(u="REQUEST-TIMEOUT",s="The request generated a timeout."),o=new dc(s,u,n,r||i,e.t0);case 26:return o&&(console.error("[NekoError] JsonFetcher",o.url,{code:o.code,error:o.error,body:o.body}),a.success=!1,a.error=o),e.abrupt("return",yc(a));case 28:case"end":return e.stop()}}),e,null,[[5,20]])})));return function(n){return e.apply(this,arguments)}}(),xc=function(){var e=mc(regeneratorRuntime.mark((function e(n){var t,r,a,o,i,l,c,u,s,d,f,p,m,b=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=b.length>1&&void 0!==b[1]?b[1]:{},r=t.json,a=void 0===r?{}:r,o=t.signal,i=t.file,l=t.nonce,c=i?new FormData:null,i)for(c.append("file",i),u=0,s=Object.entries(a);u<s.length;u++)d=fc(s[u],2),f=d[0],p=d[1],c.append(f,p);return m=l?{"X-WP-Nonce":l}:{},c||(m["Content-Type"]="application/json"),e.abrupt("return",vc(n,{method:"POST",headers:m,body:c||JSON.stringify(a),signal:o}));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),wc=(mgcl_gallery_custom_links.prefix,mgcl_gallery_custom_links.domain,mgcl_gallery_custom_links.rest_url.replace(/\/+$/,""),mgcl_gallery_custom_links.api_url.replace(/\/+$/,"")),Oc=(mgcl_gallery_custom_links.plugin_url.replace(/\/+$/,""),"1"===mgcl_gallery_custom_links.is_pro&&mgcl_gallery_custom_links.is_registered,mgcl_gallery_custom_links.rest_nonce);function kc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ec(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?kc(Object(t),!0).forEach((function(n){jc(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):kc(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function jc(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Sc(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function Cc(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Pc(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Pc(e,n)}(e,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.")}()}function Pc(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Ac=wp.element,zc=Ac.useState,Nc=Ac.useMemo,Rc=function(){var e=Nc((function(){return["".concat(wc,"/all_settings/"),{headers:{"X-WP-Nonce":Oc}}]}),[wc,Oc]),n=Object(l.a)(e,vc),t=n.data,a=n.mutate,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object(r.useState)(n),o=Tn(a,2),i=o[0],l=o[1],c=Object(r.useState)(null),u=Tn(c,2),s=u[0],d=u[1],f=Object(r.useState)(t),p=Tn(f,2),m=p[0],b=p[1],g=Object(r.useState)(0),h=Tn(g,2),y=h[0],v=h[1];return Object(r.useEffect)((function(){void 0!==e&&(e.success?(d(null),l(e.data),v(e.total?e.total:0)):d(e.error)),b(void 0===e)}),[e]),{busy:m,data:i,total:y,error:s}}(t,{},!0),i=o.busy,c=o.data,u=o.error,s=Cc(zc(!1),2),d=s[0],f=s[1],p=i||d,m=null==c?void 0:c.mgcl_obmode,b=null==c?void 0:c.mgcl_parsing_engine,g=null==c?void 0:c.mgcl_log,h=null==c?void 0:c.mgcl_button_enabled,y=null==c?void 0:c.mgcl_button_label,v=function(){var e,n=(e=regeneratorRuntime.mark((function e(n,r){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=Ec({},t.data))[r]=n,a(Ec(Ec({},t),{},{data:o}),!1),f(!0),e.prev=4,e.next=7,xc("".concat(wc,"/update_option"),{json:{name:r,value:n},nonce:Oc});case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),alert(e.t0.message);case 12:return e.prev=12,f(!1),a(),e.finish(12);case 16:case"end":return e.stop()}}),e,null,[[4,9,12,16]])})),function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){Sc(o,r,a,i,l,"next",e)}function l(e){Sc(o,r,a,i,l,"throw",e)}i(void 0)}))});return function(e,t){return n.apply(this,arguments)}}(),x=React.createElement(hr,{title:"OB Mode"},React.createElement(Hr,{max:"1"},React.createElement(Gr,{id:"mgcl_obmode",label:"Enabled",value:"1",checked:m,onChange:v,description:"If the linked images are outside of the main content (header, sidebar, etc), OB Mode is needed. This slows down the processing (cache recommended)."}))),w=React.createElement(hr,{title:"Parsing Engine",description:"Hello"},React.createElement(Ia,{id:"mgcl_parsing_engine",onChange:v},[{id:"none",value:"None",label:"None (Not Supported Yet)"},{id:"htmldomparser",value:"HtmlDomParser",label:"HtmlDomParser"},{id:"didom",value:"DiDom",label:"DiDom"}].map((function(e){return React.createElement(Ta,{id:"mgcl_parsing_engine_".concat(e.id),value:e.value,label:e.label,checked:b===e.value})})))),O=React.createElement(hr,{title:"Logs"},React.createElement(Hr,{max:"1"},React.createElement(Gr,{id:"mgcl_log",label:"Logs",value:"1",checked:g,onChange:v,description:"Simple logging, written directly in the PHP Error Logs."}))),k=React.createElement(hr,{title:"Use Buttons"},React.createElement(Hr,{max:"1"},React.createElement(Gr,{id:"mgcl_button_enabled",label:"Enabled",value:"1",description:"A call-to-action button will be used of a clickable image.",checked:h,onChange:v}))),E=React.createElement(hr,{title:"Label"},React.createElement(Xr,{id:"mgcl_button_label",name:"mgcl_button_label",value:y,description:"A call-to-action button will be used of a clickable image.",onBlur:v}));return React.createElement(Lt,{nekoErrors:[u]},React.createElement(zo,{title:"Gallery Custom Links | Settings",subtitle:"By Jordy Meow"}),React.createElement(Ir,null,React.createElement(Dr,{full:!0},React.createElement(pr,null,React.createElement(tr,{p:!0},"This plugin works out of the box, the default settings are the best for most installs. Don't hesitate to take a look at the ",React.createElement("a",{href:"https://meowapps.com/plugin/gallery-custom-links/"},"official page"),".")),React.createElement(Gl,null,React.createElement(Wl,{title:"Settings"},React.createElement(Ir,null,React.createElement(Dr,{minimal:!0},React.createElement(lr,{busy:p,title:"Settings",className:"primary"},w,x,O)),React.createElement(Dr,{minimal:!0},React.createElement(lr,{busy:p,title:"CTA Buttons",className:"primary"},React.createElement(tr,{p:!0},React.createElement("b",null,"Currently works with the ",React.createElement("a",{href:"https://wordpress.org/plugins/meow-gallery/"},"Meow Gallery")," and Gutenberg Galleries.")," In a future Pro version, support for additional galleries might be added (please contact ",React.createElement("a",{href:"https://meowapps.com/contact/"},"Meow Apps")," for this)."),k,h?E:null))))))))},Ic=wp.i18n.__,Dc={};Dc.PENDING=Ic("Pending","gallery-custom-links"),Dc.RENAME=Ic("Rename","gallery-custom-links"),Dc.TITLE=Ic("Title","gallery-custom-links"),Dc.SAME_PAGE=Ic("Same page","gallery-custom-links"),Dc.NEW_PAGE=Ic("New page","gallery-custom-links"),Dc.LINK_URL=Ic("Link URL","gallery-custom-links"),Dc.LINK_TARGET=Ic("Link Target","gallery-custom-links"),Dc.LINK_REL=Ic("Link Rel","gallery-custom-links"),Dc.ARIAL_LABEL=Ic("Arial Label","gallery-custom-links");var Tc,_c=Dc;function Bc(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function Mc(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Fc(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Fc(e,n)}(e,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.")}()}function Fc(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Lc=wp.element,Uc=Lc.useState,Gc=Lc.useCallback,qc=[{label:_c.SAME_PAGE,value:"_self"},{label:_c.NEW_PAGE,value:"_blank"}],Hc=y.a.div(Tc||(Tc=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n\talign-items: center;\n\tdisplay: flex;\n\tmargin-bottom: 10px;\n\n\tp {\n\t\tmargin: 0 !important;\n\t\twidth: 20%;\n\t}\n\n\t> div {\n\t\tflex-grow: 1;\n\t}\n"]))),$c=function(e){var n=Mc(Uc(!1),2),t=n[0],r=n[1],a=t,o=e.postId,i=Mc(Uc(e.url),2),l=i[0],c=i[1],u=Mc(Uc(e.target?e.target:"_self"),2),s=u[0],d=u[1],f=Mc(Uc(e.rel),2),p=f[0],m=f[1],b=Mc(Uc(e.aria),2),g=b[0],h=b[1],y=Mc(Uc(!1),2),v=y[0],x=y[1],w=function(){var e,n=(e=regeneratorRuntime.mark((function e(n,t,a,o,i){var l,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),l=!0,e.prev=2,e.next=5,xc("".concat(wc,"/update_meta"),{json:{post_id:n,_gallery_link_url:t,_gallery_link_target:a,_gallery_link_rel:o,_gallery_link_aria:i},nonce:Oc});case 5:(c=e.sent).success||(l=!1,alert(c.message)),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),l=!1,alert(e.t0.message);case 13:return e.prev=13,l&&O(),r(!1),e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[2,9,13,17]])})),function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){Bc(o,r,a,i,l,"next",e)}function l(e){Bc(o,r,a,i,l,"throw",e)}i(void 0)}))});return function(e,t,r,a,o){return n.apply(this,arguments)}}(),O=function(){return x(!1)},k=Gc((function(){w(o,l,s,p,g)}),[o,l,s,p,g,w,O]),E=Gc((function(e){"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),k())}),[k]);return React.createElement(React.Fragment,null,React.createElement("span",{onClick:function(){return x(!0)},style:{cursor:"pointer"}},React.createElement(at,{icon:"link",disabled:!l})),React.createElement(el,{isOpen:v,onRequestClose:O,title:"Edit the custom link",content:React.createElement("div",null,React.createElement(Hc,null,React.createElement(tr,{p:!0},_c.LINK_URL),React.createElement(Xr,{disabled:a,onInput:function(e){return c(e.target.value)},onKeyDown:E,value:l,autoFocus:!0})),React.createElement(Hc,null,React.createElement(tr,{p:!0},_c.LINK_TARGET),React.createElement(Ia,{scrolldown:!0,value:s,onChange:function(e){return d(e)},disabled:a},qc.map((function(e){return React.createElement(Ta,{value:e.value,label:e.label})})))),React.createElement(Hc,null,React.createElement(tr,{p:!0},_c.LINK_REL),React.createElement(Xr,{disabled:a,onInput:function(e){return m(e.target.value)},value:p})),React.createElement(Hc,null,React.createElement(tr,{p:!0},_c.ARIAL_LABEL),React.createElement(Xr,{disabled:a,onInput:function(e){return h(e.target.value)},value:g}))),onOkClick:k,onCancelClick:O}))},Wc=null;document.addEventListener("DOMContentLoaded",(function(e){var n;(Wc=document.getElementsByClassName("upload-php")[0],(n=document.getElementById("mgcl-admin-settings"))&&(i.a.render(a.a.createElement(Rc,null),n),1)||!Wc)||Array.from(document.getElementsByClassName("mgcl-edit-link-field")).forEach((function(e){var n=e.getAttribute("data-post-id"),t=e.getAttribute("data-url"),r=e.getAttribute("data-target"),o=e.getAttribute("data-rel"),l=e.getAttribute("data-aria");i.a.render(a.a.createElement($c,{postId:n,url:t,target:r,rel:o,aria:l}),e)}))}))}});
2
  //# sourceMappingURL=index.js.map
app/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"React\"","webpack:///external \"ReactDOM\"","webpack:///../neko-ui/src/common/NekoBusyOverlay.js","webpack:///../neko-ui/src/common/NekoTheme.js","webpack:///../neko-ui/src/common/PresetIcons.js","webpack:///../neko-ui/src/misc/Spinner.js","webpack:///../neko-ui/src/button/Button.js","webpack:///../neko-ui/src/label/ProOnly.js","webpack:///../neko-ui/src/hooks.js","webpack:///../neko-ui/src/button/MenuButton.js","webpack:///../neko-ui/src/container/Page.js","webpack:///../neko-ui/src/misc/Typography.js","webpack:///../neko-ui/src/container/Block.js","webpack:///../neko-ui/src/container/Container.js","webpack:///../neko-ui/src/container/Settings.js","webpack:///../neko-ui/src/container/Window.js","webpack:///../neko-ui/src/container/Wrapper.js","webpack:///../neko-ui/src/form/Checkbox.js","webpack:///../neko-ui/src/form/CheckboxGroup.js","webpack:///../neko-ui/src/form/Input.js","webpack:///../neko-ui/src/form/TextArea.js","webpack:///../neko-ui/src/misc/Tooltip.js","webpack:///../neko-ui/src/misc/Icon.js","webpack:///../neko-ui/src/form/Select.js","webpack:///../neko-ui/src/form/Form.js","webpack:///../neko-ui/src/form/Switch.js","webpack:///../neko-ui/src/misc/Finder.js","webpack:///../neko-ui/src/misc/Logo.js","webpack:///../neko-ui/src/misc/Progress.js","webpack:///../neko-ui/src/misc/Header.js","webpack:///../neko-ui/src/misc/Paging.js","webpack:///../neko-ui/src/misc/Links.js","webpack:///../neko-ui/src/misc/Gauge.js","webpack:///../neko-ui/src/misc/Message.js","webpack:///../neko-ui/src/misc/Upload.js","webpack:///../neko-ui/src/misc/UploadDropArea.js","webpack:///../neko-ui/src/modal/Modal.js","webpack:///../neko-ui/src/table/Table.js","webpack:///../neko-ui/src/modal/MediaLibraryModal.js","webpack:///../neko-ui/src/tabs/Tabs.js","webpack:///../neko-ui/src/tabs/SideTabs.js","webpack:///../neko-ui/src/toolbar/Toolbar.js","webpack:///../neko-ui/src/errors.js","webpack:///../neko-ui/src/helpers.js","webpack:///./app/js/settings.js","webpack:///./app/js/components/Settings.js","webpack:///./app/js/i18n.js","webpack:///./app/js/components/EditLinkField.js","webpack:///./app/js/index.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","0","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","React","ReactDOM","NekoBusyOverlay","props","spinner","busy","overlayStyle","useState","showLoader","setShowLoader","useEffect","timeout","setTimeout","clearTimeout","loader","Fragment","className","style","Boolean","jsx","propsForElement","undefined","position","children","propTypes","PropTypes","bool","isRequired","oneOfType","arrayOf","node","NekoColors","black","blackRGB","blue","blueRGB","deepBlue","finderBorder","lightBlue","lightGray","lightGray2","lightPurple","gray","green","darkGray","disabledForm","orange","overlay","red","redHighlight","header","proGray","progress","purple","tableGray","yellow","yellowRGB","white","whiteRGB","NekoColorTheme","danger","primary","secondary","success","NekoTheme","fontFamily","fontSizeH1","fontSizeH2","fontSizeText","fontSizeSmall","fontSizeSmallButton","lightShadow","presetIcons","lockCheck","lockOpenVariant","fileUndo","chevronDoubleLeft","chevronDoubleRight","chevronLeft","chevronRight","chevronDown","chevronUp","pauseIcon","playIcon","replayIcon","checkIcon","stopIcon","deleteIcon","undoIcon","alertCircle","databaseIcon","toolsIcon","cogIcon","closeIcon","catIcon","arrowUpBoldCircleOutline","trashCan","leadPencil","viewDashboard","databaseSearch","folderIcon","folderOpen","imageMultipleOutline","plusIcon","folderPlus","imagePlus","viewGrid","formatListBulleted","twitterIcon","instagramIcon","facebookIcon","starIcon","timerOutline","linkVariant","linkedin","pinterest","zoomIn","infoOutline","arrowUp","arrowDown","sort","eye","rocketLaunch","StyledCircleSpinner","Styled","div","size","color","CircleSpinner","StyledNekoSpinner","type","rest","NekoSpinner","string","defaultProps","StyledButton","icon","onClick","disabled","small","isBusy","rounded","busyText","hasIcon","classNames","marginLeft","marginRight","PresetIcons","width","height","Theme","lighten","additionalColor","NekoButton","oneOf","instanceOf","IconifyIcon","func","Tag","a","Colors","StyledProOnly","show","href","target","ProOnly","useComponentSize","ref","useRef","setSize","current","observer","ResizeObserver","entries","element","contentRect","left","right","top","bottom","observe","unobserve","useOutsideClick","onOutsideClick","componentRef","handleOutsideClick","e","contains","document","addEventListener","removeEventListener","PQueue","concurrency","autoStart","MenuButtonWrapper","MenuButton","button","MenuItemContainer","StyledMenuButton","title","isPro","isOpen","setIsOpen","wrapperRef","buttonRef","buttonWidth","Children","map","child","cloneElement","transform","MenuItem","StyledNekoMenuItem","requirePro","needsProUser","NekoMenuButton","NekoMenuItem","Page","StyledNekoPage","nekoErrors","fatalError","setFatalError","showBody","setShowBody","error","url","code","message","body","dangerouslySetInnerHTML","__html","open","NekoPage","NekoH1","h1","NekoH2","h2","NekoP","NekoSpan","span","NekoLabel","label","StyledNekoTypo","NekoTypo","any","Block","StyledNekoBlock","action","NekoBlock","Container","Bar","StyledNekoContainer","headerAlign","footer","footerAlign","NekoContainer","StyledNekoSettings","contentAlign","NekoSettings","WindowBase","TitleBar","StyledNekoWindow","NekoWindow","Wrapper","Column","StyledNekoWrapper","StyledNekoColumn","full","minimal","NekoWrapper","NekoColumn","StyledNekoCheckbox","id","checked","onChange","description","showUpProOnly","isDisabled","disabledClass","join","defaultChecked","console","log","htmlFor","checkboxMarked","checkboxBlankOutline","NekoCheckbox","StyledNekoCheckboxGroup","max","NekoCheckboxGroup","mas","number","StyledNekoInput","placeholder","onEnter","readOnly","step","min","maxLength","defaultMaxLength","natural","inputStyle","onCustomChange","onCustomBlur","onBlur","newValue","setNewValue","isControlled","onKeyPress","event","preventDefault","autoComplete","spellCheck","NekoInput","StyledNekoTextArea","avoidOnEnterWithShift","textAreaStyle","countable","count","setCount","pressShift","setPressShift","keydownFunction","useCallback","shiftKey","keyupFunction","substr","rows","NekoTextArea","TooltipContainer","Tooltip","prop","visible","StyledNekoTooltip","text","setShow","tooltipRef","tooltipWidth","tooltipHeight","childRef","childWidth","childHeight","transformStyle","useMemo","transY","transX","onMouseEnter","onMouseLeave","NekoTooltip","StyledIconContainer","StyledIcon","Icon","hoverColor","StyledNekoIcon","spinning","tooltip","containerStyle","raw","getIcon","iconClassName","NekoIcon","Select","SelectedOption","Description","Options","OptionsContainer","StyledNekoSelect","scrolldown","currentOption","toArray","find","showOptions","toggleOptions","onOptionClick","childrenLength","data-is-disabled","RadioOption","SelectOption","StyledNekoOption","radioOption","recordCircle","checkboxBlankCircleOutline","selectOption","NekoSelect","NekoOption","Form","StyledNekoForm","NekoForm","StyledNekoSwitch","fontSize","onValue","offValue","onBackgroundColor","offBackgroundColor","onLabel","offLabel","onToggle","v","NekoSwitch","StyledNekoFinder","chevron","FinderTitleContainer","FinderTitle","ChevronSpace","FinderTitleIconDropZone","FinderTitleIconDroppableArea","ItemContainer","StyledNekoFinderItem","defaultIcons","gallery","tag","tagIcon","rightElement","rightElementStyle","showRightElement","selected","draggable","onDragStart","onDragOver","onDragEnd","onDrop","isExpanded","dragging","rightAction","rightActionOnHover","onDragLeave","isCustomizedIcon","preventClose","hasChild","expanded","setExpanded","keys","includes","setIcon","isFolder","showRightAction","setShowRightAction","iconColor","stopPropagation","NekoFinder","NekoFinderItem","Logo","StyledNekoLogo","viewBox","fill","xmlns","stroke","strokeWidth","NekoLogo","StyledNekoProgress","status","Math","ratio","parseFloat","ProgressCurrent","onPauseClick","paused","onStopClick","percent","isNaN","parseInt","round","typeOfStatus","minWidth","NekoProgress","HeaderBase","StyledNekoHeader","subtitle","saving","textDecoration","contentSave","NekoHeader","PagingContainer","StyledNekoPaging","currentPage","limit","total","onCurrentPageChanged","isEditable","maxPage","ceil","prevIconClassName","nextIconClassName","showCurrentPageInput","setShowCurrentPageInput","fullClassName","onClickHandle","page","getValidPage","numberPage","Number","currentPageJsx","autoFocus","defaultValue","onControllerClick","currentTarget","NekoPaging","LinkContainer","Link","variant","StyledNekoQuickLinks","isActive","StyledNekoLink","variantValue","display","NekoQuickLinks","NekoLink","StyledSection","section","backgroundColor","degrees","NekoGauge","background","class","StyledUpload","NekoUpload","multiple","iconSize","onSuccess","onFailure","apiUrl","apiConfig","inDropZone","setInDropZone","floor","random","inputId","inputEl","divEl","setBusy","pointerEvents","uploadFile","files","upload","file","postFetch","Promise","all","response","successResponses","filter","failerResponses","onDragEnter","uploadFiles","accept","click","dataTransfer","StyledUploadDropArea","NekoUploadDropArea","forwardRef","NekoModalParent","NekoModalContent","StyledNekoModal","ok","cancel","customButtons","customButtonsPosition","content","onOkClick","onCancelClick","okOnEnter","thumbnail","customClassName","showCustomButtons","keyUpHandler","modalContent","ariaHideApp","parentSelector","getElementById","closeTimeoutMS","NekoModal","Table","table","TableCheckBox","intermediate","onSelect","onUnselect","checkboxMultipleMarked","alignToJustifyContent","center","StyledNekoTable","columns","selectedItems","onSortChange","columnsCount","getColumnStyle","column","align","textAlign","justifyContent","cells","accessor","currentRowsIds","x","areAllRowsSelected","isIntermediate","hiddenColumnIndexes","reduce","headersFooters","beingSorted","beingSortedAsc","by","columnStyle","sortable","colspan","row","cell","NekoTable","removeClass","Array","forEach","getElementsByClassName","ele","classList","remove","displayModes","StyledNekoMediaLibraryModal","images","onRefresh","onNextPage","onPreviousPage","onRemoveClick","onZoomClick","onSearch","searchValue","onPageChange","multiSelect","showUploader","uploader","onSelectedOrderChanged","onUploadSuccess","onUploadFailure","uploadApiUrl","uploadApiConfig","uploadMultiple","onClose","onCancel","onSave","search","setSerch","dragImageIndex","setDragImageIndex","displayMode","setDisplayMode","getBoundingClientRect","clientX","add","currentIndex","afterIndex","selectedMediaJsx","dummyElementForDrop","selectedElement","image","src","zoom_src","mediaGridJsx","some","mediaRows","thumbnail_url","objectFit","filename","mediaListJsx","ids","cursor","NekoMediaLibraryModal","array","TabContainer","TabGroup","Tab","TabContent","StyledNekoTabs","isActiveTabIndex","setIsActiveTabIndex","childrenProp","keepTabOnReload","URL","location","searchParams","searchTitle","decodeURIComponent","index","replaceAll","indexOf","tabAttributes","toLowerCase","hidden","onTabClick","tabIndex","tabAttr","ev","history","pushState","URLSearchParams","encodeURIComponent","set","newUrl","protocol","host","pathname","toString","replaceState","path","keepTab","attr","StyledNekoTab","NekoTabs","NekoTab","StyledNekoSideTabs","activeTabIndex","rightActions","newTabIndex","StyledNekoSideTab","NekoSideTabs","NekoSideTab","ToolbarBase","StyledNekoToolbar","NekoToolbar","NekoError","debug","this","consolidateJsonResult","json","meta","JSON","parse","err","jsonFetcher","options","nekoError","rawBody","headers","fetch","config","signal","nonce","formData","FormData","append","method","stringify","mgcl_gallery_custom_links","prefix","domain","rest_url","replace","api_url","restNonce","plugin_url","is_pro","is_registered","rest_nonce","wp","Settings","swrAllSettingsKey","useSWR","swrSettings","mutateSwrSettings","mutate","swrData","defaultData","defaultBusy","setData","setError","setTotal","useHandleSWR","busySettings","settings","swrError","busyAction","setBusyAction","obmode","mgcl_obmode","parsingEngine","mgcl_parsing_engine","mgcl_log","buttonEnabled","mgcl_button_enabled","buttonLabel","mgcl_button_label","updateOption","newSettingsData","alert","jsxOBMode","jsxParsingEngine","option","jsxLog","jsxUseButtons","jsxButtonLabel","__","i18n","PENDING","RENAME","TITLE","SAME_PAGE","NEW_PAGE","LINK_URL","LINK_TARGET","LINK_REL","ARIAL_LABEL","targets","GroupContainer","EditLinkField","postId","setUrl","setTarget","rel","setRel","aria","setAria","openModal","setOpenModal","post_id","_gallery_link_url","_gallery_link_target","_gallery_link_rel","_gallery_link_aria","res","onCloseModal","onKeyDown","keyCode","onRequestClose","onInput","isMediaLibrary","container","render","from","field","getAttribute"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB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,EACXC,cAAekQ,MC1GfK,GAAiB,KAgBrB1nB,SAASC,iBAAiB,oBAAoB,SAASwH,GATvD,IACOkgB,GALND,GAAiB1nB,SAASua,uBAAuB,cAAc,IAKzDoN,EAAY3nB,SAAS4X,eAAe,0BAEzCvjB,IAASuzB,OAAQ,kBAAC,GAAD,MAAeD,GACzB,KAScD,KAKPrN,MAAMwN,KAAK7nB,SAASua,uBAAuB,yBACnDD,SAAQ,SAAAwN,GACd,IAAMxB,EAASwB,EAAMC,aAAa,gBAC5B1lB,EAAMylB,EAAMC,aAAa,YACzBvpB,EAASspB,EAAMC,aAAa,eAC5BtB,EAAMqB,EAAMC,aAAa,YACzBpB,EAAOmB,EAAMC,aAAa,aAChC1zB,IAASuzB,OAAQ,kBAAC,GAAD,CAAetB,OAAQA,EAAQjkB,IAAKA,EAAK7D,OAAQA,EAAQioB,IAAKA,EAAKE,KAAMA,IAAWmB","file":"index.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t0: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"wpJsonMgcl\"] = window[\"wpJsonMgcl\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([99,1]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","module.exports = React;","module.exports = ReactDOM;","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\n\nconst NekoBusyOverlay = (props) => {\n const { spinner = true, busy = false, overlayStyle } = props;\n const [ showLoader, setShowLoader ] = useState(true);\n\n useEffect(() => {\n let timeout;\n\n // Show the loader\n if (!busy) { \n timeout = setTimeout(() => { \n setShowLoader(false); \n timeout = null; \n }, 250);\n }\n else { \n setShowLoader(true);\n }\n\n // Cleanup\n return (() => {\n if (timeout) {\n clearTimeout(timeout);\n }\n });\n }, [busy]);\n\n const loader = !showLoader ? null : (\n <React.Fragment>\n <div className={'overlay' + ' ' + (!busy ? 'overlayHidden' : '')} style={overlayStyle}>\n {Boolean(spinner) && \n <div className={'lds-ellipsis ' + (!busy ? 'spinnerHidden' : '')}>\n <div></div><div></div><div></div><div></div>\n </div>\n }\n </div>\n <style jsx>{`\n .overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgb(30 124 186 / 85%);\n transition: opacity 1s ease-out;\n z-index: 10;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n }\n\n .overlayHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .spinnerHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .lds-ellipsis {\n position: relative;\n width: 80px;\n height: 80px;\n display: flex;\n justify-items: center;\n align-items: center;\n }\n .lds-ellipsis div {\n position: absolute;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: white;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n .lds-ellipsis div:nth-child(1) {\n left: 8px;\n animation: lds-ellipsis1 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(2) {\n left: 8px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(3) {\n left: 32px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(4) {\n left: 56px;\n animation: lds-ellipsis3 0.6s infinite;\n }\n @keyframes lds-ellipsis1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n }\n @keyframes lds-ellipsis3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n }\n @keyframes lds-ellipsis2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n } \n `}</style>\n </React.Fragment>\n );\n\n // I am removing the busy because I like it as a boolean...\n // ... but React doesn't like pure boolean value here.\n const propsForElement = { ...props, busy: undefined, spinner: undefined };\n return (\n <div style={{ position: 'relative' }} {...propsForElement}> \n {loader}\n {props.children}\n </div>\n );\n};\n\nNekoBusyOverlay.propTypes = {\n busy: PropTypes.bool.isRequired,\n spinner: PropTypes.bool,\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node\n ]).isRequired\n};\n\nexport default NekoBusyOverlay;","export const NekoColors = {\n black: '#000000',\n blackRGB: '0, 0, 0',\n blue: '#007cba',\n blueRGB: '0, 124, 186',\n deepBlue: '#134575',\n finderBorder: '#DEDEDE',\n lightBlue: '#EBF3FF',\n lightGray: '#cacaca',\n lightGray2: '#F5F5F5',\n lightPurple: '#D8B1FF',\n gray: '#E8E8E8',\n green: '#0EA480',\n darkGray: '#A0A0A0',\n disabledForm: '#828282',\n orange: '#daa827',\n overlay: 'rgba(16, 16, 16, 0.92)',\n red: '#ba4300',\n redHighlight: '#de5307',\n header: '#007cba',\n proGray: '#7F8EA0',\n progress: '#8414a8',\n purple: '#956DBE',\n tableGray: '#FAFAFA',\n yellow: '#e4b42b',\n yellowRGB: '224, 156, 54',\n white: '#ffffff',\n whiteRGB: '255, 255, 255',\n}\n\nexport const NekoColorTheme = {\n danger: NekoColors.red,\n primary: NekoColors.blue,\n secondary: NekoColors.lightBlue,\n success: NekoColors.green,\n}\n\nconst NekoTheme = {\n\n // COLORS\n ...NekoColors,\n ...NekoColorTheme,\n\n // FONT\n\n fontFamily: 'Lato',\n fontSizeH1: '24px',\n fontSizeH2: '18px',\n fontSizeText: '13px',\n fontSizeSmall: '12px',\n fontSizeSmallButton: '10px',\n\n // SHADOW\n\n lightShadow: '0px 0px 10px rgba(0,0,0,0.1)',\n};\n\nexport default NekoTheme;\n","import lockCheck from '@iconify/icons-mdi/lock-check';\nimport lockOpenVariant from '@iconify/icons-mdi/lock-open-variant';\nimport fileUndo from '@iconify/icons-mdi/file-undo';\nimport chevronDoubleLeft from '@iconify/icons-mdi/chevron-double-left';\nimport chevronDoubleRight from '@iconify/icons-mdi/chevron-double-right';\nimport chevronLeft from '@iconify/icons-mdi/chevron-left';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronUp from '@iconify/icons-mdi/chevron-up';\nimport pauseIcon from '@iconify/icons-mdi/pause';\nimport playIcon from '@iconify/icons-mdi/play';\nimport replayIcon from '@iconify/icons-mdi/replay';\nimport checkIcon from '@iconify/icons-mdi/check';\nimport stopIcon from '@iconify/icons-mdi/stop';\nimport deleteIcon from '@iconify/icons-mdi/delete';\nimport undoIcon from '@iconify/icons-mdi/undo';\n//import alertIcon from '@iconify/icons-mdi/alert';\nimport alertCircle from '@iconify/icons-mdi/alert-circle';\nimport databaseIcon from '@iconify/icons-mdi/database';\nimport pencilIcon from '@iconify/icons-mdi/pencil';\nimport toolsIcon from '@iconify/icons-mdi/tools';\nimport cogIcon from '@iconify/icons-mdi/cog';\nimport closeIcon from '@iconify/icons-mdi/close';\nimport catIcon from '@iconify/icons-mdi/cat';\nimport trashCan from '@iconify/icons-mdi/trash-can';\nimport leadPencil from '@iconify/icons-mdi/lead-pencil';\nimport viewDashboard from '@iconify/icons-mdi/view-dashboard';\nimport databaseSearch from '@iconify/icons-mdi/database-search';\nimport folderIcon from '@iconify/icons-mdi/folder';\nimport folderOpen from '@iconify/icons-mdi/folder-open';\nimport imageMultipleOutline from '@iconify/icons-mdi/image-multiple-outline';\nimport plusIcon from '@iconify/icons-mdi/plus';\nimport folderPlus from '@iconify/icons-mdi/folder-plus';\nimport imagePlus from '@iconify/icons-mdi/image-plus';\nimport viewGrid from '@iconify/icons-mdi/view-grid';\nimport formatListBulleted from '@iconify/icons-mdi/format-list-bulleted';\nimport twitterIcon from '@iconify/icons-mdi/twitter';\nimport instagramIcon from '@iconify/icons-mdi/instagram';\nimport facebookIcon from '@iconify/icons-mdi/facebook';\nimport starIcon from '@iconify/icons-mdi/star';\nimport timerOutline from '@iconify/icons-mdi/timer-outline';\nimport arrowUpBoldCircleOutline from '@iconify/icons-mdi/arrow-up-bold-circle-outline';\nimport linkVariant from '@iconify/icons-mdi/link-variant';\nimport linkedin from '@iconify/icons-mdi/linkedin';\nimport pinterest from '@iconify/icons-mdi/pinterest';\nimport zoomIn from '@iconify/icons-mdi/zoom-in'\nimport infoOutline from '@iconify/icons-mdi/info-outline'\nimport arrowUp from '@iconify/icons-mdi/arrow-up'\nimport arrowDown from '@iconify/icons-mdi/arrow-down'\nimport sort from '@iconify/icons-mdi/sort'\nimport eye from '@iconify/icons-mdi/eye'\nimport rocketLaunch from '@iconify/icons-mdi/rocket-launch'\n\nconst presetIcons = {\n 'lock': lockCheck,\n 'lock-open': lockOpenVariant,\n 'file-undo': fileUndo,\n 'chevron-double-left': chevronDoubleLeft,\n 'chevron-double-right': chevronDoubleRight,\n 'chevron-left': chevronLeft,\n 'chevron-right': chevronRight,\n 'chevron-down': chevronDown,\n 'chevron-up': chevronUp,\n 'pause': pauseIcon,\n 'play': playIcon,\n 'replay': replayIcon,\n 'check': checkIcon,\n 'stop': stopIcon,\n 'delete': deleteIcon,\n 'undo': undoIcon,\n 'alert': alertCircle,\n 'database': databaseIcon,\n 'tools': toolsIcon,\n 'cog': cogIcon,\n 'close': closeIcon,\n 'cat': catIcon,\n 'upload': arrowUpBoldCircleOutline,\n 'trash': trashCan,\n 'pencil': leadPencil,\n 'dashboard': viewDashboard,\n 'search': databaseSearch,\n 'folder': folderIcon,\n 'folder-open': folderOpen,\n 'image-multiple-outline': imageMultipleOutline,\n 'plus': plusIcon,\n 'folder-plus': folderPlus,\n 'image-plus': imagePlus,\n 'view-grid': viewGrid,\n 'format-list-bulleted': formatListBulleted,\n 'twitter': twitterIcon,\n 'instagram': instagramIcon,\n 'facebook': facebookIcon,\n 'star': starIcon,\n 'timer-outline': timerOutline,\n 'link': linkVariant,\n 'linkedin': linkedin,\n 'pinterest': pinterest,\n 'zoom-in': zoomIn,\n 'info-outline': infoOutline,\n 'arrow-up': arrowUp,\n 'arrow-down': arrowDown,\n 'sort': sort,\n 'eye': eye,\n 'rocket-launch': rocketLaunch,\n};\n\nexport default presetIcons;","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport Styled from \"styled-components\";\n\nconst StyledCircleSpinner = Styled.div`\n width: ${props => props.size || '50%'};\n padding-top: ${props => props.size || '50%'};\n position: relative;\n margin: 0 auto;\n\n .double-bounce1, .double-bounce2 {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: ${props => props.color || '#333'};\n opacity: 0.6;\n position: absolute;\n top: 0;\n left: 0;\n\n -webkit-animation: sk-bounce 2.0s infinite ease-in-out;\n animation: sk-bounce 2.0s infinite ease-in-out;\n }\n\n .double-bounce2 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s;\n }\n\n @-webkit-keyframes sk-bounce {\n 0%, 100% { -webkit-transform: scale(0.0) }\n 50% { -webkit-transform: scale(1.0) }\n }\n\n @keyframes sk-bounce {\n 0%, 100% {\n transform: scale(0.0);\n -webkit-transform: scale(0.0);\n } 50% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n }\n`;\n\nconst CircleSpinner = (props) => {\n return (\n <StyledCircleSpinner {...props}>\n <div className=\"double-bounce1\"></div>\n <div className=\"double-bounce2\"></div>\n </StyledCircleSpinner>\n );\n};\n\n/**\n * @param {string} (variant) Tag Name\n */\nconst StyledNekoSpinner = (props) => {\n const { type = 'circle', ...rest } = props;\n\n switch (type) {\n case 'circle':\n return <CircleSpinner {...rest} />\n\n default:\n return null;\n }\n};\n\nconst NekoSpinner = (props) => {\n return <StyledNekoSpinner {...props} />;\n};\n\nNekoSpinner.propTypes = {\n type: PropTypes.string,\n};\n\nNekoSpinner.defaultProps = {\n type: 'circle',\n};\n\nexport { NekoSpinner };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport Theme from '../common/NekoTheme';\nimport { Icon, IconifyIcon } from '@iconify/react';\nimport PresetIcons from '../common/PresetIcons';\nimport { NekoSpinner } from '../misc/Spinner';\n\nconst StyledButton = Styled(props => {\n\n const { className, icon = null, onClick, disabled = false, color = null, small, isBusy = false, children, rounded, busyText, ...rest } = props;\n const hasIcon = !!icon;\n\n const getIcon = () => {\n if (typeof icon === 'string') {\n return PresetIcons[icon] || null;\n }\n return icon;\n };\n\n const classNames = `nui-button ${className || ''}${hasIcon ? ' has-icon' : ''}${color ? ' custom-color' : ''}${small ? ' small' : ''}${rounded ? ' rounded' : ''}`;\n\n return (\n <button type=\"button\" className={classNames} onClick={onClick} disabled={disabled} {...rest}>\n {isBusy && <NekoSpinner type=\"circle\" color=\"#fff\" size={rounded ? '82%' : '35%'} />}\n {isBusy && !!busyText && <span style={{ marginLeft: '4px', marginRight: '2xp' }}>{busyText}</span>}\n {!isBusy && hasIcon && <Icon icon={getIcon()} width={rounded ? 20 : 24} height={rounded ? 20 : 24} />}\n {!!children && !isBusy && <span style={{ marginLeft: hasIcon ? '4px' : 0, marginRight: hasIcon ? '2xp' : 0 }}>{children}</span>}\n </button>\n );\n})`\n display: inline-block;\n box-sizing: border-box;\n height: 30px;\n min-height: 30px;\n min-width: 6em;\n border: none;\n border-radius: 4px;\n text-align: center;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n padding: 0 15px;\n\n background-color: ${Theme.blue};\n color: white;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.has-icon {\n align-items: center;\n display: inline-flex;\n padding: 2.5px 8px;\n }\n\n &.secondary {\n background-color: ${Theme.lightBlue};\n border: 1px solid ${Theme.blue};\n color: ${Theme.blue};\n\n &:hover {\n background-color: ${lighten(0.1, Theme.lightBlue)};\n }\n }\n\n &.danger {\n background-color: ${Theme.red};\n border-color: ${Theme.red};\n\n\t &:hover {\n\t\t background-color: ${lighten(0.1, Theme.red)};\n\t }\n }\n\n &.success {\n background-color: ${Theme.green};\n border-color: ${Theme.green};\n\n\t &:hover {\n\t\t background-color: ${lighten(0.1, Theme.green)};\n\t }\n }\n\n & + button {\n margin-left: .25rem;\n }\n\n &.small {\n font-size: ${Theme.fontSizeSmallButton};\n height: 24px;\n }\n\n &.header {\n background-color: ${Theme.deepBlue};\n border-color: ${Theme.deepBlue};\n height: 40px;\n padding: 0 20px;\n\n\t &:hover {\n\t\t background-color: ${lighten(0.1, Theme.deepBlue)};\n\t }\n }\n\n &.rounded {\n border-radius: 100%;\n min-width: 30px;\n height: 30px;\n width: 30px;\n padding: 3px;\n }\n\n ${props => additionalColor(props.color)}\n`;\n\nconst additionalColor = (color) => {\n if (color) {\n return `\n &.custom-color {\n background-color: ${color};\n border: 1px solid ${color};\n\n &:hover {\n background-color: ${lighten(0.1, color)};\n }\n }\n `;\n }\n};\n\n/**\n * The NekoButton works out of the box without specific attributes.\n */\nconst NekoButton = (props) => {\n return (<StyledButton {...props} />);\n};\n\nNekoButton.propTypes = {\n className: PropTypes.oneOf(['primary', 'secondary', 'danger', 'success', 'header']),\n disabled: PropTypes.bool,\n icon: PropTypes.oneOfType([PropTypes.instanceOf(IconifyIcon), PropTypes.oneOf(['setting', 'edit', 'trash'])]),\n color: PropTypes.string,\n onClick: PropTypes.func.isRequired,\n rounded: PropTypes.bool,\n isBusy: PropTypes.bool,\n busyText: PropTypes.string\n};\n\nNekoButton.defaultProps = {\n className: 'primary',\n disabled: false,\n icon: null,\n color: null,\n onClick: () => {},\n rounded: undefined,\n isBusy: false,\n busyText: undefined\n};\n\nexport { NekoButton };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Colors from '../common/NekoTheme';\nimport Theme from '../common/NekoTheme';\n\nconst Tag = Styled.a`\n background-color: ${Colors.yellow};\n position: relative;\n border-radius: 10px;\n color: ${Colors.white};\n font-family: ${Theme.fontFamily};\n font-size: 9px;\n line-height: 10px;\n padding: 5px 8px;\n text-transform: uppercase;\n text-decoration: none;\n\n &:hover {\n color: ${Colors.white};\n background-color: #f78c1f;\n }\n\n &.inline {\n display: inline;\n margin-left: 5px;\n vertical-align: middle;\n }\n`;\n\n/**\n * @param {string} className\n * @param {string|object} icon\n * @param {bool} disabled\n * @param {function} onClick\n */\nconst StyledProOnly = (props) => {\n\n const { show = true, className, ...rest } = props;\n\n if (!show) {\n return null;\n }\n\n return (\n <Tag href='https://store.meowapps.com' target='_blank' className={`${className || ''}`} {...rest}>\n Pro Only\n </Tag>\n );\n};\n\nconst ProOnly = (props) => {\n return (<StyledProOnly {...props} />);\n}\n\nProOnly.propTypes = {\n show: PropTypes.bool,\n className: PropTypes.string\n};\n\nProOnly.defaultProps = {\n show: true,\n className: undefined\n};\n\nexport { ProOnly };\n","import React, { useState, useRef, useEffect, useCallback } from 'react';\nimport PQueue from 'p-queue';\n\nconst useHandleSWR = (swrData = undefined, defaultData = null, defaultBusy = false) => {\n const [ data, setData ] = useState(defaultData);\n const [ error, setError ] = useState(null);\n const [ busy, setBusy ] = useState(defaultBusy);\n const [ total, setTotal ] = useState(0);\n\n useEffect(() => {\n if (swrData !== undefined) { \n if (swrData.success) {\n setError(null);\n setData(swrData.data);\n setTotal(swrData.total ? swrData.total : 0);\n }\n else {\n setError(swrData.error);\n }\n }\n setBusy(swrData === undefined);\n }, [ swrData ]);\n\n return { busy, data, total, error };\n}\n\n// Sometimes, we need to align or place elements depending on other dynamic elements.\n// This hook returns a ref (which should be assign to a component), and the size of\n// this element every time it changes.\n\nconst useComponentSize = () => {\n const ref = useRef();\n const [ size, setSize ] = useState({});\n\n useEffect(() => {\n if (ref && ref.current) {\n const observer = new ResizeObserver(entries => {\n let element = entries[0];\n if (element.contentRect) {\n setSize({ \n width: element.contentRect.left + element.contentRect.right, \n height: element.contentRect.top + element.contentRect.bottom \n });\n }\n });\n observer.observe(ref.current);\n return () => { observer.unobserve(ref.current); };\n }\n }, []);\n return { ref, width: size.width ? size.width : 0, height: size.height ? size.height : 0 };\n};\n\n// If a click is made outside the component, then the function onOutsideClick is called.\n// This function returns a ref which needs to be assigned to the component.\n\nconst useOutsideClick = (onOutsideClick) => {\n const componentRef = useRef();\n const handleOutsideClick = (e) => {\n if (!onOutsideClick || componentRef.current.contains(e.target)) {\n return;\n }\n onOutsideClick();\n };\n useEffect(() => {\n document.addEventListener(\"mousedown\", handleOutsideClick);\n return () => { document.removeEventListener(\"mousedown\", handleOutsideClick); };\n });\n return componentRef;\n};\n\n\n// This hook allows calling many requests without having too many of them\n// running concurrently.\n\nlet GlobalQueue = null;\n\nconst useNekoGlobalQueue = (params = {}) => {\n\n if (!GlobalQueue) {\n let { concurrency = 2 } = params;\n GlobalQueue = new PQueue({ concurrency, autoStart: true });\n }\n\n const runTask = async (func) => {\n return await GlobalQueue.add(func);\n }\n\n return { runTask };\n};\n\n// This hook handles batch of asynchronous requests, and provide everything\n// the NekoProgress might need.\n\nconst isDebug = false;\nconst UploadQueue = new PQueue({ concurrency: 1, autoStart: false });\n\nconst useNekoTasks = () => {\n\n // We should be able to kill fetch requests using this\n // Interesting article: https://davidwalsh.name/cancel-fetch\n const [ controller, setController ] = useState(new AbortController());\n const refSkip = useRef(false);\n const refErrors = useRef(0);\n const [ busy, setBusy ] = useState(null);\n const [ paused, setPaused ] = useState(false);\n const [ max, setMax ] = useState(0);\n const [ error, setError ] = useState(false);\n const [ success, setSuccess ] = useState(false);\n const [ value, setValue ] = useState(0);\n\n const reset = async () => {\n let newController = new AbortController();\n setController(newController);\n setError(false);\n refErrors.current = 0;\n refSkip.current = false;\n setPaused(false);\n setSuccess(false);\n setValue(0);\n setMax(0);\n };\n\n const start = async (tasks) => {\n const runnerPromise = new Promise((resolve, reject) => {\n setError(false);\n refErrors.current = 0;\n refSkip.current = false;\n setPaused(false);\n setSuccess(false);\n setTasks(tasks);\n setBusy(true);\n if (isDebug) { console.log('Started process.'); }\n UploadQueue.start();\n UploadQueue.onIdle().then(() => {\n onIdle();\n resolve();\n }); \n });\n return runnerPromise;\n };\n\n const pause = async () => {\n if (isDebug) { console.log('Paused process.'); }\n UploadQueue.pause();\n setPaused(true);\n };\n\n const resume = async () => {\n if (isDebug) { console.log('Resume process.'); }\n setError(false);\n setPaused(false);\n UploadQueue.start();\n };\n\n const stop = async () => {\n if (isDebug) { console.log('Cancelled process.'); }\n UploadQueue.pause();\n controller.abort();\n setBusy(false);\n setError(false);\n setSuccess(false);\n };\n\n const onIdle = async () => {\n if (isDebug) { console.log('onIdle.'); }\n setSuccess(true);\n setBusy(false);\n };\n\n const addTask = async (task) => {\n UploadQueue.add(async () => {\n try {\n let res = await task(controller.signal);\n if (!res || !res.success) {\n console.error('[useNekoTasks] Task returned nothing.', res);\n }\n if (!res.success) {\n refErrors.current++;\n if (!refSkip.current) {\n setError(res.error);\n pause();\n }\n }\n }\n catch (err) {\n if (err.name === 'AbortError') {\n console.log('Aborted');\n return;\n }\n else {\n refErrors.current++;\n if (!refSkip.current) {\n setError(\"An error was caught (more information in the console).\");\n pause();\n }\n }\n }\n finally {\n setValue(value => value + 1);\n }\n });\n setMax(max => max + 1);\n }\n\n const setTasks = async (tasks) => {\n UploadQueue.clear();\n for (let task of tasks) {\n addTask(task);\n }\n setValue(0);\n };\n\n const setAlwaysSkip = useCallback((value = true) => {\n refSkip.current = true;\n }, []);\n\n const getErrorCount = useCallback(() => {\n return refErrors.current;\n }, []);\n\n return { start, stop, pause, resume, reset, \n addTask, setAlwaysSkip, getErrorCount,\n error, success, busy, paused, value, max };\n};\n\nexport { useHandleSWR, useOutsideClick, useNekoGlobalQueue, useNekoTasks, useComponentSize };","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { Icon } from '@iconify/react';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport { useOutsideClick, useComponentSize } from '../hooks';\n\nconst MenuButtonWrapper = Styled.div`\n display: inline-block;\n`;\n\nconst MenuButton = Styled.button`\n align-items: center;\n background-color: ${Theme.blue};\n border: none;\n border-radius: 4px;\n box-sizing: border-box;\n color: white;\n display: inline-flex;\n justify-content: space-between;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n height: 30px;\n min-width: 6em;\n padding: 0px 10px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n & + button {\n margin-left: .25rem;\n }\n`;\n\nconst MenuItemContainer = Styled.div`\n position: relative;\n display: block;\n margin-top: 18px;\n background-color: ${Theme.blue};\n position: absolute;\n z-index: 10;\n box-shadow: ${Theme.lightShadow};\n\n &:before {\n content: \"\";\n position: absolute;\n top: -18px;\n left: 50%;\n margin-left: -8px;\n border: 8px solid transparent;\n border-bottom: 10px solid ${Theme.blue};\n }\n`;\n\nconst StyledMenuButton = props => {\n\n const { title, disabled = false, isPro = false, style = {} } = props;\n const [ isOpen, setIsOpen ] = React.useState(false);\n const wrapperRef = useOutsideClick(() => { setIsOpen(false) });\n const { ref: buttonRef, width: buttonWidth } = useComponentSize();\n\n const onClick = () => {\n setIsOpen(!isOpen);\n }\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n isPro,\n disabled: child.props.disabled || disabled,\n onClick: () => {\n if (child.props.onClick) {\n child.props.onClick();\n }\n onClick();\n }\n });\n });\n\n return (\n <MenuButtonWrapper ref={wrapperRef}>\n <MenuButton ref={buttonRef} type=\"button\" disabled={disabled} onClick={onClick} style={style}>\n <span>{title}</span>\n <Icon icon={chevronDown} width=\"24\" height=\"24\" style={{ marginLeft: '4px' }} />\n </MenuButton>\n {isOpen &&\n <MenuItemContainer style={{ transform: `translateX(calc(-50% + ${buttonWidth / 2}px))` }}>\n {children}\n </MenuItemContainer>\n }\n </MenuButtonWrapper>\n );\n};\n\nconst MenuItem = Styled.button`\n align-items: center;\n background-color: ${Theme.blue};\n border: none;\n box-sizing: border-box;\n color: white;\n display: flex;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n width: 100%;\n padding: 8px 15px 8px 15px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n :disabled:not(.is-pro) {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.is-pro {\n background-color: ${Theme.proGray};\n justify-content: space-between;\n }\n`;\n\nconst StyledNekoMenuItem = props => {\n\n const { onClick, children, isPro, requirePro = false, disabled } = props;\n const needsProUser = requirePro && !isPro;\n\n return (\n <MenuItem type=\"button\" className={needsProUser? 'is-pro' : ''} onClick={onClick} disabled={disabled || needsProUser}>\n <span>{children}</span>\n {needsProUser && !isPro && <ProOnly />}\n </MenuItem>\n );\n};\n\n/**\n * The NekoMenuButton works out of the box without specific attributes.\n */\nconst NekoMenuButton = (props) => {\n return (<StyledMenuButton {...props} />);\n}\nconst NekoMenuItem = (props) => {\n return (<StyledNekoMenuItem {...props} />);\n}\n\nNekoMenuButton.propTypes = {\n title: PropTypes.string,\n disabled: PropTypes.bool,\n isPro: PropTypes.bool\n};\n\nNekoMenuButton.defaultProps = {\n title: undefined,\n disabled: false,\n isPro: false\n};\n\nNekoMenuItem.propTypes = {\n onClick: PropTypes.func.isRequired,\n requirePro: PropTypes.bool\n};\n\nNekoMenuItem.defaultProps = {\n onClick: () => {},\n requirePro: false\n};\n\nexport { NekoMenuButton, NekoMenuItem };\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoButton } from '../button/Button';\n\nconst Page = Styled.div`\n position: relative;\n background: #f1f1f1;\n margin-left: -20px;\n background-color: rgb(30 124 186 / 10%);\n padding-bottom: 50px;\n margin-bottom: -26px;\n\n .neko-rest-error {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: #1e232deb;\n z-index: 100;\n\n .container {\n color: white;\n padding: 5px 20px 15px 20px;\n min-width: 480px;\n max-width: 600px;\n border-radius: 20px;\n background: #883131;\n margin-left: 50%;\n transform: translateX(-50%);\n margin-top: 100px;\n\n h3 {\n color: white;\n }\n\n .neko-debug {\n padding: 5px 10px;\n background: #692426;\n border-radius: 10px;\n\n * {\n margin: 0px;\n padding: 0px;\n } \n }\n }\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoPage = props => {\n\n const { className, children, nekoErrors = [], style = {} } = props;\n const [ fatalError, setFatalError ] = useState(false);\n const [ showBody, setShowBody ] = useState(false);\n\n if (nekoErrors && !fatalError) {\n for (let error of nekoErrors) {\n if (error) {\n setFatalError(error);\n break\n }\n }\n }\n\n return (\n <Page className={className || ''} style={style}>\n {fatalError && \n <div className='neko-rest-error'>\n <div className='container'>\n {!showBody &&\n <>\n <h3>The Rest API is disabled or broken 😢</h3>\n <p>The Rest API is required for this plugin to work. It is enabled in WordPress by default since December 2016 and used by the Gutenberg Editor since 2019. In short, it allows more robustness and a much cleaner infrastructure. Soon, Wordpress will entirely depends on it, so it is important to keep it enabled.</p>\n <p><i>Last but not least: check your PHP Error Logs and your Debugging Console.</i></p>\n <p className='neko-debug'>\n <small>\n URL: {fatalError.url}<br />\n CODE: {fatalError.code}<br />\n MESSAGE: {fatalError.message}<br />\n </small>\n </p>\n </>\n }\n {fatalError.body && showBody &&\n <p className='neko-debug'>\n <div dangerouslySetInnerHTML={{ __html: fatalError.body }}></div>\n </p>\n }\n {fatalError.body &&\n <NekoButton color=\"#a94242\" onClick={() => setShowBody(!showBody)}>\n {showBody ? 'Hide' : 'Display'} response from server\n </NekoButton>\n }\n <NekoButton color=\"#a94242\" onClick={() => { window.open('https://meowapps.com/fix-wordpress-rest-api/', '_blank') }}>\n Learn about WordPress Debugging\n </NekoButton>\n </div>\n </div>}\n {children}\n </Page>\n );\n};\n\nconst NekoPage = (props) => {\n return (<StyledNekoPage {...props} />);\n};\n\nNekoPage.propTypes = {\n className: PropTypes.string,\n style: PropTypes.object,\n nekoErrors: PropTypes.bool\n};\n\nNekoPage.defaultProps = {\n className: undefined,\n style: {},\n nekoErrors: false\n};\n\nexport { NekoPage };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nimport Theme from '../common/NekoTheme';\n\nconst NekoH1 = Styled.h1`\n font-family: ${Theme.fontFamily};\n font-weight: normal;\n font-size: ${Theme.fontSizeH1};\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n`;\n\nconst NekoH2 = Styled.h2`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeH2};\n font-weight: normal;\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n`;\n\nconst NekoP = Styled.p`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n line-height: normal;\n margin: 16px 0 24px;\n padding: 0;\n`;\n\nconst NekoSpan = Styled.span`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n line-height: normal;\n margin: 0;\n padding: 0;\n`;\n\nconst NekoLabel = Styled.label`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n line-height: normal;\n margin: 0;\n padding: 0;\n`;\n\n/**\n * @param {string} (variant) Tag Name\n */\nconst StyledNekoTypo = props => {\n const { children, ...rest } = props;\n\n return (\n props.h1 ? <NekoH1 {...rest}>{children}</NekoH1>\n : props.h2 ? <NekoH2 {...rest}>{children}</NekoH2>\n : props.p ? <NekoP {...rest}>{children}</NekoP>\n : props.label ? <NekoLabel {...rest}>{children}</NekoLabel>\n : <NekoSpan {...rest}>{children}</NekoSpan>\n );\n};\n\nconst NekoTypo = (props) => {\n return (<StyledNekoTypo {...props} />);\n}\n\nNekoTypo.propTypes = {\n h1: PropTypes.any,\n h2: PropTypes.any,\n p: PropTypes.any\n};\n\nNekoTypo.defaultProps = {\n h1: undefined,\n h2: undefined,\n p: undefined\n};\n\nexport { NekoTypo };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoTypo } from '../misc/Typography';\nimport NekoBusyOverlay from '../common/NekoBusyOverlay';\n\nconst Block = Styled.div`\n font-size: ${Theme.fontSizeText};\n margin-bottom: 15px;\n\n .nui-block-header {\n display: flex;\n justify-content: space-between;\n }\n\n .nui-block-title {\n color: ${Theme.blue};\n padding: 5px 10px;\n margin-bottom: 5px;\n }\n\n .nui-block-content {\n background-color: #f1f1f1;\n padding: 26px;\n box-shadow: 0px 2px 5px 0px #0000004a;\n border-radius: 10px;\n\n p:first-child {\n margin-top: 0;\n }\n\n p:last-child {\n margin-bottom: 0;\n }\n }\n\n &.primary {\n padding: 8px;\n background-color: ${Theme.blue};\n\n .nui-block-title {\n color: ${Theme.white};\n }\n\n .nui-block-content {\n background-color: ${Theme.white};\n }\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoBlock = props => {\n\n const { title, children, className, busy = false, style = {}, action } = props;\n\n return (\n <Block className={'nui-block ' + (className || '')} style={style}>\n <NekoBusyOverlay busy={busy}>\n <div className=\"nui-block-header\">\n <NekoTypo h2 className=\"nui-block-title\">{title}</NekoTypo>\n {!!action && action}\n </div>\n <div className=\"nui-block-content\">\n {children}\n </div>\n </NekoBusyOverlay>\n </Block>\n );\n};\n\nconst NekoBlock = (props) => {\n return (<StyledNekoBlock {...props} />);\n}\n\nNekoBlock.propTypes = {\n title: PropTypes.string,\n className: PropTypes.oneOf(['', 'primary']),\n style: PropTypes.object,\n action: PropTypes.element,\n};\n\nNekoBlock.defaultProps = {\n title: undefined,\n className: '',\n style: {},\n action: undefined,\n};\n\nexport { NekoBlock };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\nconst Container = Styled.div`\n font-size: ${Theme.fontSizeText};\n font-family: ${Theme.fontFamily};\n background-color: ${Theme.white};\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);\n margin-bottom: 25px;\n\n &.primary {\n background-color: ${Theme.blue};\n }\n\n p:first-child {\n margin-top: 0px;\n }\n\n p:last-child {\n margin-bottom: 0px;\n }\n\n .content {\n padding: 20px 20px;\n }\n`;\n\nconst Bar = Styled.div`\n justify-content: flex-start;\n background-color: ${Theme.lightGray2};\n display: flex;\n align-items: center;\n padding: 8px 10px;\n\n &.align-right {\n justify-content: flex-end;\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoContainer = props => {\n\n const { children, header, headerAlign = 'left', footer, footerAlign = 'right', className, style = {} } = props;\n\n return (\n <Container className={className || ''} style={style}>\n {header && <Bar className={`align-${headerAlign}`}>{ header }</Bar>}\n <div className=\"content\">\n { children }\n </div>\n {footer && <Bar className={`align-${footerAlign}`}>{ footer }</Bar>}\n </Container>\n );\n};\n\nconst NekoContainer = (props) => {\n return (<StyledNekoContainer {...props} />);\n}\n\nNekoContainer.propTypes = {\n header: PropTypes.element,\n headerAlign: PropTypes.oneOf(['left', 'right']),\n footer: PropTypes.element,\n footerAlign: PropTypes.oneOf(['left', 'right']),\n className: PropTypes.string,\n style: PropTypes.object\n};\nNekoContainer.defaultProps = {\n header: undefined,\n headerAlign: 'left',\n footer: undefined,\n footerAlign: 'right',\n className: undefined,\n style: {}\n};\n\nexport { NekoContainer };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {string} title=''\n */\nconst StyledNekoSettings = Styled(props => {\n const { title = '', contentAlign = 'left' } = props;\n return (\n <div className={props.className || ''}>\n {title ? <div className=\"nui-settings-head\">{title}</div> : null}\n <div className={`nui-settings-content nui-settings-content-align-${contentAlign}`}>\n {props.children}\n </div>\n </div>\n );\n})`\n display: flex;\n font-family: ${Theme.fontFamily};\n\n > .nui-settings-head {\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n line-height: 17px;\n width: 120px;\n margin-right: 16px;\n }\n\n /* Select, Checkbox, Input need to be a bit higher to be in front of the settings title */\n\n .nui-settings-content > .nui-select:first-child {\n position: relative;\n margin-top: -5px;\n }\n \n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-button:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > div:first-child > .neko-input {\n position: relative;\n margin-top: -5px;\n }\n\n > .nui-settings-content {\n flex: 1;\n\n &.nui-settings-content-align-right {\n flex: none;\n margin-left: auto;\n }\n\n input[type=text] {\n width: 100%;\n }\n\n\n }\n\n & + div {\n margin-top: 15px;\n }\n`;\n\nconst NekoSettings = (props) => {\n return (<StyledNekoSettings {...props} />);\n}\n\nNekoSettings.propTypes = {\n title: PropTypes.string,\n className: PropTypes.string,\n contentAlign: PropTypes.string\n};\n\nNekoSettings.defaultProps = {\n title: '',\n className: undefined,\n contentAlign: 'left'\n};\n\nexport { NekoSettings };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\nconst WindowBase = Styled.div`\n margin: 20px;\n padding: 14px;\n background-color: white;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n\n > * + * {\n /* Base margin between child elements */\n margin-top: 14px;\n }\n`;\n\nconst TitleBar = Styled(props => (\n props.children ? (\n <div className={props.className}>\n {props.children}\n </div>\n ) : null\n))`\n background-color: ${Theme.blue};\n color: white;\n`;\n\nconst StyledNekoWindow = props => (\n <WindowBase className='window'>\n <TitleBar>{props.title}</TitleBar>\n {props.children}\n </WindowBase>\n);\n\nconst NekoWindow = (props) => {\n return (<StyledNekoWindow {...props} />);\n}\n\nNekoWindow.propTypes = {\n title: PropTypes.string\n};\nNekoWindow.defaultProps = {\n title: undefined\n};\n\nexport { NekoWindow };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nconst Wrapper = Styled.div`\n display: flex;\n flex-wrap: wrap;\n`;\n\nconst Column = Styled.div`\n flex: 1;\n padding: 32px 30px;\n\n .nui-block:not(:first-child) {\n margin-top: -20px;\n }\n\n .nui-block:last-child {\n margin-bottom: 0px;\n }\n\n &.minimal {\n padding: 0;\n }\n\n &.full {\n flex-basis: 100%;\n padding-bottom: 0;\n }\n\n & + .full {\n padding-bottom: 32px;\n padding-top: 0;\n }\n\n &:not(.full) + div:not(.full) {\n padding-left: 0;\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoWrapper = props => {\n return (\n <Wrapper>\n { props.children }\n </Wrapper>\n );\n};\n\nconst StyledNekoColumn = props => {\n const { full, minimal, ...rest } = props;\n let className = full ? 'full' : '';\n className += minimal ? ' minimal' : '';\n return (\n <Column className={className} {...rest}>{props.children}</Column>\n );\n};\n\nconst NekoWrapper = (props) => {\n return (<StyledNekoWrapper {...props} />);\n};\n\nconst NekoColumn = (props) => {\n return (<StyledNekoColumn {...props} />);\n};\n\nNekoWrapper.propTypes = {\n};\nNekoWrapper.defaultProps = {\n};\n\nNekoColumn.propTypes = {\n full: PropTypes.any\n};\nNekoColumn.defaultProps = {\n full: undefined\n};\n\nexport { NekoWrapper, NekoColumn };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\n\nimport { Icon } from '@iconify/react';\nimport checkboxBlankOutline from '@iconify/icons-mdi/checkbox-blank-outline';\nimport checkboxMarked from '@iconify/icons-mdi/checkbox-marked';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {bool} checked\n * @param {string} label\n * @param {string} description\n */\nconst StyledNekoCheckbox = Styled(props => {\n const { id, name, checked = false, onChange, label, description, isPro, disabled, requirePro = false } = props;\n\n const showUpProOnly = requirePro && !isPro;\n const isDisabled = disabled || showUpProOnly;\n const disabledClass = isDisabled ? 'disabled' : '';\n\n const onClick = () => {\n if (!onChange) {\n console.log(`The onChange handler it not set for this checkbox.`, props);\n return;\n }\n onChange(!checked, id);\n };\n\n return (\n <div className={['nui-checkbox', props.className, disabledClass].join(' ')}>\n <input id={id} name={name} type=\"checkbox\" defaultChecked={false} onClick={onClick} disabled={isDisabled} />\n <label htmlFor={id}>\n <div className=\"nui-checkbox-check-container\">\n <Icon icon={checked ? checkboxMarked : checkboxBlankOutline} width=\"30px\" height=\"30px\" \n color={isDisabled ? Theme.disabledForm : Theme.blue} />\n </div>\n <div className=\"nui-checkbox-inner-container\">\n <span className=\"label\">{label}<ProOnly className=\"inline\" show={showUpProOnly} /></span>\n {description ? <small className=\"description\">{description}</small> : null}\n </div>\n </label>\n </div>\n );\n})`\n font-family: ${Theme.fontFamily};\n\n &.disabled {\n color: ${Theme.disabledForm};\n\n label {\n cursor: default;\n }\n }\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n .nui-checkbox-check-container {\n flex-basis: 30px;\n }\n .nui-checkbox-inner-container {\n margin-top: 1.5px;\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n \n .description {\n display: block;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n }\n }\n`;\n\nconst NekoCheckbox = (props) => {\n return (<StyledNekoCheckbox {...props} />);\n};\n\nNekoCheckbox.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n checked: PropTypes.bool,\n label: PropTypes.string,\n description: PropTypes.string,\n isPro: PropTypes.bool,\n requirePro: PropTypes.bool\n};\n\nNekoCheckbox.defaultProps = {\n id: undefined,\n name: undefined,\n checked: false,\n label: undefined,\n description: undefined,\n isPro: false,\n requirePro: false\n};\n\nexport { NekoCheckbox };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\n/**\n * @param {string} name\n * @param {int} max=-1 Max number of checkboxes to be checked. Negative number means unlimited\n */\nconst StyledNekoCheckboxGroup = Styled(props => {\n const { name, max = -1, isPro = false } = props;\n\n // React.Children.toArray(props.children)\n\n // Modify child components (Checkboxes)\n const children = React.Children.map(props.children, child => {\n if (child.props.name) return child; // Do not modify if the child has its own name\n return React.cloneElement(child, {\n name: name, // Apply the group's name\n isPro\n });\n });\n\n return children;\n})`\n`;\n\nconst NekoCheckboxGroup = (props) => {\n return (<StyledNekoCheckboxGroup {...props} />);\n}\n\nNekoCheckboxGroup.propTypes = {\n name: PropTypes.string,\n mas: PropTypes.number,\n isPro: PropTypes.bool\n};\n\nNekoCheckboxGroup.defaultProps = {\n name: undefined,\n mas: -1,\n isPro: false\n}\n\nexport { NekoCheckboxGroup };\n","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {string} description\n * @param {string} placeholder\n */\nconst StyledNekoInput = Styled(props => {\n const { id, name, value = '', description, placeholder = '', onEnter = null,\n readOnly = false, type = 'text', step = 1, min = 1, max = 999, maxLength : defaultMaxLength = undefined,\n className, style, natural = false, inputStyle, onChange: onCustomChange, onBlur: onCustomBlur, ...rest } = props;\n\n const [ newValue, setNewValue ] = useState(value);\n const isControlled = !!onCustomChange;\n const maxLength = defaultMaxLength ? defaultMaxLength : (type === 'number' ? 3 : undefined);\n\n useEffect(() => {\n if (!isControlled) {\n setNewValue(value);\n }\n }, [ value ]);\n\n const onChange = (e) => {\n if (isControlled) { \n onCustomChange(e.target.value, id);\n }\n else {\n setNewValue(e.target.value, id);\n }\n };\n\n const onKeyPress = (e) => {\n if (onEnter && event.key === 'Enter') {\n e.preventDefault();\n onEnter(e.target.value, id);\n }\n };\n\n const onBlur = (e) => {\n if (onCustomBlur && value !== e.target.value) {\n onCustomBlur(e.target.value, id);\n }\n };\n\n const classNames = `neko-input ${natural ? ' natural' : ''}`;\n\n return (\n <div className={[className].join(' ')} style={style}>\n {type === 'number'\n ? <input className={[classNames].join(' ')} id={id} name={name} value={isControlled ? value : newValue} type={type} \n step={step} min={min} max={max} maxLength={maxLength}\n autoComplete=\"off\"\n placeholder={placeholder} style={inputStyle}\n onChange={onChange} onKeyPress={onKeyPress} onBlur={onBlur} readOnly={readOnly} {...rest} />\n : <input className={[classNames].join(' ')} {...rest} id={id} name={name} value={isControlled ? value : newValue} type={type} \n spellCheck=\"false\"\n autoComplete=\"off\"\n placeholder={placeholder} style={inputStyle} maxLength={maxLength}\n onChange={onChange} onKeyPress={onKeyPress} onBlur={onBlur} readOnly={readOnly} {...rest} />\n }\n {description && <p className=\"neko-input-description\">{description}</p>}\n </div>\n );\n})`\n .neko-input {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n border: 2px solid ${Theme.blue};\n box-sizing: border-box;\n height: 30px;\n background: rgb(0 124 186 / 10%);\n padding: 0 10px;\n width: 100%;\n\n &.natural {\n border-color: gray;\n border-width: 1px;\n }\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ${Theme.gray};\n }\n }\n\n .neko-input-description {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeSmall};\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n`;\n\nconst NekoInput = (props) => {\n return (<StyledNekoInput {...props} />);\n};\n\nNekoInput.propTypes = {\n id: PropTypes.string,\n type: PropTypes.oneOf(['number', 'text']),\n name: PropTypes.string,\n value: PropTypes.string,\n description: PropTypes.string,\n placeholder: PropTypes.string,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onBlur: PropTypes.func,\n readOnly: PropTypes.bool,\n step: PropTypes.number,\n min: PropTypes.number,\n max: PropTypes.number,\n maxLength: PropTypes.number,\n natural: PropTypes.bool\n};\n\nNekoInput.defaultProps = {\n id: undefined,\n type: 'text',\n name: undefined,\n value: '',\n description: undefined,\n placeholder: '',\n onChange: undefined,\n onEnter: undefined,\n onBlur: undefined,\n readOnly: false,\n step: 1,\n min: 1,\n max: 999,\n maxLength: undefined,\n natural: false\n};\n\nexport { NekoInput };\n","import React, { useState, useEffect, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {string} description\n * @param {string} placeholder\n */\nconst StyledNekoTextArea = Styled(props => {\n const { id, name, value = '', description, placeholder = '', avoidOnEnterWithShift = false, onEnter = null, readOnly = false, \n maxLength = null, className, style, textAreaStyle = {}, countable = false, ...rest } = props;\n\n const [ newValue, setNewValue ] = useState(value);\n const [ count, setCount ] = useState(0);\n const [ pressShift, setPressShift ] = useState(false);\n const isControlled = !!props.onChange;\n\n const keydownFunction = useCallback((e) => {\n setPressShift(e.shiftKey);\n }, []);\n const keyupFunction = useCallback(() => {\n setPressShift(false);\n }, []);\n\n useEffect(() => {\n document.addEventListener(\"keydown\", keydownFunction, false);\n document.addEventListener(\"keyup\", keyupFunction, false);\n\n return () => {\n document.removeEventListener(\"keydown\", keydownFunction, false);\n document.removeEventListener(\"keyup\", keyupFunction, false);\n }\n }, []);\n\n useEffect(() => {\n if (!isControlled) {\n setNewValue(value);\n }\n if (countable) {\n setCount(value.length);\n }\n }, [ value, countable ]);\n\n const onChange = useCallback((e) => {\n const newValue = maxLength ? e.target.value.substr(0, maxLength): e.target.value;\n if (isControlled) { \n props.onChange(newValue, id);\n }\n else {\n setNewValue(newValue, id);\n }\n }, [maxLength]);\n\n const onKeyPress = (e) => {\n if (onEnter && !e.shiftKey && e.key === 'Enter') {\n if (avoidOnEnterWithShift && pressShift) return;\n\n e.preventDefault();\n props.onEnter(e.target.value, id);\n }\n };\n\n const onBlur = (e) => {\n if (props.onBlur && value !== e.target.value) {\n props.onBlur(e.target.value, id);\n }\n };\n\n return (\n <div className={[className].join(' ')} style={style}>\n <div className=\"neko-textarea-container\">\n <textarea className=\"neko-textarea\" rows={6} {...rest} id={id} name={name} spellCheck=\"false\" placeholder={placeholder} \n onChange={onChange} onKeyPress={onKeyPress} onBlur={onBlur} readOnly={readOnly} style={textAreaStyle}\n value={isControlled ? value : newValue} />\n {countable && <p className=\"neko-textarea-count\">{count} / {maxLength} characters</p>}\n </div>\n {description && <p className=\"neko-input-description\">{description}</p>}\n </div>\n );\n})`\n .neko-textarea-container {\n position: relative;\n }\n .neko-textarea {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n border: 2px solid ${Theme.blue};\n box-sizing: border-box;\n background: rgb(0 124 186 / 10%);\n padding: 5px 10px;\n width: 100%;\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ${Theme.gray};\n }\n }\n .neko-textarea-count {\n color: rgba(${Theme.blackRGB}, 0.4);\n font-size: 11px;\n margin: 0;\n position: absolute;\n right: 13px;\n bottom: 10px;\n }\n\n .neko-input-description {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeSmall};\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n`;\n\nconst NekoTextArea = (props) => {\n return (<StyledNekoTextArea {...props} />);\n};\n\nNekoTextArea.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n value: PropTypes.string,\n description: PropTypes.string,\n placeholder: PropTypes.string,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onBlur: PropTypes.func,\n readOnly: PropTypes.bool,\n avoidOnEnterWithShift: PropTypes.bool\n};\n\nNekoTextArea.defaultProps = {\n id: undefined,\n name: undefined,\n value: '',\n description: undefined,\n placeholder: '',\n onChange: undefined,\n onEnter: undefined,\n onBlur: undefined,\n readOnly: false,\n avoidOnEnterWithShift: false\n};\n\nexport { NekoTextArea };\n","import React, { useState, useCallback, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nimport { useComponentSize } from '../hooks';\nimport Theme from '../common/NekoTheme';\n\nconst TooltipContainer = Styled.div`\n\tdisplay: flex;\n`;\n\nconst Tooltip = Styled.div`\n\tbackground-color: rgba(${Theme.blackRGB}, 0.8);\n\tborder-radius: 4px;\n\tcolor: ${Theme.white};\n\tfont-family: ${Theme.fontFamily};\n\tfont-weight: normal;\n\tmin-width: 180px;\n\tmax-width: 280px;\n\tfont-size: ${Theme.fontSizeText};\n\tpadding: 8px 12px;\n\tposition: absolute;\n \tmax-width: 280px;\n\tword-break: break-word;\n\tdisplay: ${prop => prop.visible ? 'inline-block' : 'none'};\n\tz-index: 100;\n\n\t&:before {\n\t\tcontent: \"\";\n\t\tposition: absolute;\n\t\tborder: 4px solid transparent;\n\t}\n\n\t&.top {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\tborder-top: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t&.left {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tright: -8px;\n\t\t\tborder-left: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t&.right {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tleft: -8px;\n\t\t\tborder-right: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t&.bottom {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: -8px;\n\t\t\tleft: 50%;\n\t\t\tborder-bottom: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t${prop => prop.style}\n`;\n\n/**\n * @param {string} (variant) Tag Name\n */\nconst StyledNekoTooltip = props => {\n\tconst { text = 'Hello world!', position = 'top' } = props;\n\tconst [ show, setShow ] = useState(false);\n\tconst { ref: tooltipRef, width: tooltipWidth, height: tooltipHeight } = useComponentSize();\n\tconst { ref: childRef, width: childWidth, height: childHeight } = useComponentSize();\n\n\tconst transformStyle = useMemo(() => {\n\t\tconst pointerSize = 5;\n\t\tlet transY = 0;\n\t\tlet transX = 0;\n\n\t\tif (position === 'top') {\n\t\t\ttransY = -1 * tooltipHeight - pointerSize;\n\t\t\ttransX = -1 * (tooltipWidth / 2) + (childWidth / 2);\n\t\t}\n\t\telse if (position === 'bottom') {\n\t\t\ttransY = childHeight + pointerSize;\n\t\t\ttransX = -1 * (tooltipWidth / 2) + (childWidth / 2);\n\t\t}\n\t\telse if (position === 'left') {\n\t\t\tconst diff = tooltipHeight - childHeight;\n\t\t\ttransY = -1 * (diff / 2);\n\t\t\ttransX = -1 * tooltipWidth - pointerSize;\n\t\t}\n\t\telse if (position === 'right') {\n\t\t\tconst diff = tooltipHeight - childHeight;\n\t\t\ttransY = -1 * (diff / 2);\n\t\t\ttransX = childWidth + pointerSize;\n\t\t}\n\t\t\n\t\treturn { \n\t\t\ttransform: `translateX(${transX}px) translateY(${transY}px)`\n\t\t};\n\n\t}, [position, tooltipWidth, tooltipHeight, childWidth, childHeight])\n\n\treturn (\n\t\t<TooltipContainer>\n\t\t\t<Tooltip ref={tooltipRef} visible={show} className={position} style={transformStyle}>\n\t\t\t\t{text}\n\t\t\t</Tooltip>\n\t\t\t<div ref={childRef} onMouseEnter={() => text && setShow(true)} onMouseLeave={() => setShow(false)}>\n\t\t\t\t{props.children}\n\t\t\t</div>\n\t\t</TooltipContainer>\n\t);\n};\n\nconst NekoTooltip = (props) => {\n return (<StyledNekoTooltip {...props} />);\n}\n\nNekoTooltip.propTypes = {\n\ttext: PropTypes.string,\n\tposition: PropTypes.oneOf(['top', 'right', 'bottom', 'left'])\n};\n\nNekoTooltip.defaultProps = {\n\ttext: 'Hello world!',\n\tposition: 'top'\n};\n\nexport { NekoTooltip };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport { Icon, IconifyIcon } from '@iconify/react';\n\nimport PresetIcons from '../common/PresetIcons';\nimport { NekoTooltip } from './Tooltip';\n\nconst StyledIconContainer = Styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst hoverColor = (color, hoverColor) => {\n if (hoverColor) {\n return `\n &:hover {\n path {\n fill: ${hoverColor};\n }\n }\n `;\n }\n if (color) {\n return `\n &:hover {\n path {\n fill: ${lighten(0.1, color)};\n }\n }\n `;\n }\n};\n\nconst StyledIcon = Styled(Icon)`\n\n path {\n fill: ${props => props.color};\n }\n\n ${props => hoverColor(props.color, props.hoverColor)}\n\n &.nui-clickable {\n cursor: pointer;\n }\n\n &.spin {\n animation-name: spin;\n animation-duration: 700ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n\n @keyframes spin {\n 0% {\n transform: rotate(360deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n }\n }\n\n &.disabled {\n pointer-events: none;\n opacity: 0.35;\n cursor: default;\n }\n`;\n\nconst StyledNekoIcon = props => {\n\n let { icon, spinning = false, className = '', title, tooltip, containerStyle, color, hoverColor, disabled = false, raw, ...rest } = props;\n\n if (!rest.width && !rest.height) {\n rest.width = rest.height = 30;\n }\n\n const getIcon = () => {\n if (typeof icon === 'string') {\n return PresetIcons[icon] || null;\n }\n return icon;\n };\n\n const iconClassName = `nui-icon ${className}${rest.onClick ? ' nui-clickable' : ''}${spinning ? ' spin' : ''}${disabled ? ' disabled' : ''}`;\n\n if (tooltip) {\n return (\n <NekoTooltip text={tooltip.text} position={tooltip.position || 'top'}>\n <StyledIconContainer style={containerStyle}>\n <StyledIcon icon={getIcon()} className={iconClassName} color={color} hoverColor={hoverColor} {...rest}/>\n </StyledIconContainer>\n </NekoTooltip>\n );\n }\n\n if (raw) {\n return <StyledIcon icon={getIcon()} className={iconClassName} color={color} hoverColor={hoverColor} {...rest} />\n }\n\n return (\n <StyledIconContainer style={containerStyle} title={title}>\n <StyledIcon icon={getIcon()} className={iconClassName} color={color} hoverColor={hoverColor} {...rest} />\n {!tooltip ? null : <NekoTooltip>{tooltip}</NekoTooltip>}\n </StyledIconContainer>\n );\n};\n\nconst NekoIcon = (props) => {\n return (<StyledNekoIcon {...props} />);\n};\n\nNekoIcon.propTypes = {\n icon: PropTypes.oneOfType([PropTypes.instanceOf(IconifyIcon), PropTypes.oneOf(['lock' ,'lock-open' ,'file-undo' ,'chevron-double-left' ,'chevron-double-right' ,'chevron-left' ,'chevron-right' ,'chevron-down' ,'chevron-up' ,'pause' ,'play' ,'replay' ,'check' ,'stop' ,'delete' ,'undo' ,'alert' ,'database' ,'pencil' ,'tools' ,'cog' ,'close' ,'cat' ,'upload'])]),\n color: PropTypes.string,\n spinning: PropTypes.bool,\n className: PropTypes.string,\n tooltip: PropTypes.string,\n raw: PropTypes.bool,\n};\n\nNekoIcon.defaultProps = {\n icon: undefined,\n color: undefined,\n spinning: false,\n className: '',\n tooltip: undefined,\n raw: undefined,\n};\n\nexport { NekoIcon };\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { useOutsideClick } from '../hooks';\n\nimport { Icon } from '@iconify/react';\nimport checkboxBlankCircleOutline from '@iconify/icons-mdi/checkbox-blank-circle-outline';\nimport recordCircle from '@iconify/icons-mdi/record-circle';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronUp from '@iconify/icons-mdi/chevron-up';\nimport { NekoIcon } from '../misc/Icon';\n\nconst Select = Styled.div`\n border-radius: 8px;\n position: relative;\n user-select: none;\n cursor: pointer;\n\n &.show-options {\n background-color: ${Theme.blue};\n border-radius: 8px 8px 0 0;\n }\n\n &[data-is-disabled=true] {\n cursor: none;\n pointer-events: none;\n }\n`;\n\nconst SelectedOption = Styled.div`\n align-items: center;\n background-color: ${Theme.white};\n border: 2px solid ${Theme.blue};\n border-radius: 8px;\n display: flex;\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n padding: 0 5px 0 10px;\n box-sizing: border-box;\n height: 30px;\n\n .rightContent {\n align-items: center;\n display: flex;\n margin-left: auto;\n }\n`;\n\nconst Description = Styled.div`\n display: block;\n margin-top: 5px;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n`;\n\nconst Options = Styled.div`\n border-radius: 8px;\n overflow: hidden;\n padding-top: 28px;\n position: absolute;\n top: 0;\n z-index: 10;\n width: 100%;\n transition: all 0.2s ease-in;\n\n &.hidden {\n opacity: 0;\n }\n`;\n\nconst OptionsContainer = Styled.div`\n background-color: ${Theme.white};\n`;\n\n/**\n * @param {string} name\n */\nconst StyledNekoSelect = props => {\n const { id, name, value, scrolldown = false, isPro = false, onChange, className, disabled, ...rest } = props;\n\n const currentOption = React.Children.toArray(props.children)\n .find(child => child.props.value === value || child.props.checked)?.props;\n\n const label = currentOption?.label || 'Select';\n const description = currentOption?.description || props.description;\n const requirePro = currentOption?.requirePro || false;\n const icon = currentOption?.icon;\n //const id = scrolldown ? props.id : currentOption?.id;\n\n const [ showOptions, toggleOptions ] = useState(false);\n const componentRef = scrolldown ? useOutsideClick(() => { toggleOptions(false) }) : null;\n const showUpProOnly = requirePro && !isPro;\n\n const onOptionClick = (newValue) => {\n if (newValue !== value) {\n if (!onChange) {\n console.log(`The onChange handler it not set for this checkbox.`, props);\n return;\n }\n onChange(newValue, id);\n }\n if (scrolldown) {\n toggleOptions(false);\n }\n }\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n name: child.props.name || name,\n checked: child.props.value === value || child.props.checked,\n onClick: onOptionClick,\n scrolldown,\n isPro,\n disabled\n });\n });\n\n return scrolldown\n ? <Select id={id} ref={componentRef} {...rest}\n onClick={() => toggleOptions(!showOptions)}\n className={[ 'nui-select', className, showOptions ? 'show-options' : '']}\n childrenLength={children.length} data-is-disabled={disabled}\n >\n <SelectedOption>\n {icon && <NekoIcon icon={icon} width={20} height={20} style={{ marginRight: '9px' }} />}\n {label}\n <div className=\"rightContent\">\n {showUpProOnly && <ProOnly />}\n {!disabled && <Icon icon={showOptions ? chevronUp : chevronDown} width=\"24\" />}\n </div>\n </SelectedOption>\n {description && <Description>{description}</Description>}\n \n {showOptions &&\n <Options className={`nui-option ${showOptions ? '' : 'hidden'}`}>\n <OptionsContainer>{[children]}</OptionsContainer>\n </Options>\n }\n </Select>\n : children;\n};\n\nconst RadioOption = Styled.div`\n font-family: ${Theme.fontFamily};\n margin-bottom: 6px;\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n\n .inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n .description {\n display: block;\n font-size: 12px;\n }\n }\n\n &.disabled {\n color: ${Theme.disabledForm};\n\n label {\n cursor: default;\n }\n }\n`;\n\nconst SelectOption = Styled.div`\n background-color: ${Theme.blue};\n cursor: pointer;\n font-family: ${Theme.fontFamily};\n\n &:hover {\n filter: brightness(80%);\n }\n\n input {\n display: none;\n }\n\n .option {\n align-items: center;\n color: ${Theme.white};\n display: flex;\n justify-content: space-between;\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n line-height: 17px;\n padding: 8px 12px;\n\n .option-group {\n align-items: center;\n display: flex;\n }\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n pointer-events: none;\n\n .option {\n color: rgb(255 255 255 / 35%);\n }\n }\n`;\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {bool} checked\n * @param {string} label\n * @param {string} description\n * @param {function} onClick\n */\nconst StyledNekoOption = props => {\n const { id, name, value, checked, icon, label, description, onClick, scrolldown, isPro = false, requirePro = false, disabled } = props;\n\n const showUpProOnly = requirePro && !isPro;\n const disabledClass = showUpProOnly || disabled ? 'disabled' : '';\n\n const radioOption = (\n <RadioOption className={`nui-select ${props.className || ''} ${disabledClass}`}>\n <input id={id} name={name} type=\"radio\" value={value} defaultChecked={checked} onClick={(e) => onClick(e.target.value)} disabled={showUpProOnly || disabled} />\n <label htmlFor={id}>\n <Icon icon={checked ? recordCircle : checkboxBlankCircleOutline} width=\"24px\" color={showUpProOnly ? Theme.disabledForm : Theme.blue}/>\n <div className=\"inner-container\">\n <span className=\"label\">{label}<ProOnly className=\"inline\" style={{ top: -1 }} show={showUpProOnly} /></span>\n {description ? <small className=\"description\">{description}</small> : null}\n </div>\n </label>\n </RadioOption>\n );\n\n const selectOption = (\n <SelectOption className={`nui-select ${props.className || ''} ${disabledClass}`}>\n <input id={id} name={name} type=\"radio\" value={value} defaultChecked={checked} disabled={showUpProOnly || disabled} />\n <div className=\"option\" onClick={() => onClick(value)}>\n <div className=\"option-group\">\n {icon && <NekoIcon icon={icon} width={20} height={20} style={{ marginRight: '9px' }} />}\n {label}\n </div>\n <ProOnly show={showUpProOnly} />\n </div>\n </SelectOption>\n );\n\n return scrolldown ? selectOption : radioOption;\n};\n\n/**\n * The NekoSelect has 2 types, radio (default) or select.\n */\nconst NekoSelect = (props) => {\n return (<StyledNekoSelect {...props} />);\n}\n\nNekoSelect.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n description: PropTypes.string,\n scrolldown: PropTypes.bool,\n isPro: PropTypes.bool,\n onChange: PropTypes.func\n};\n\nNekoSelect.propTypes = {\n id: undefined,\n name: undefined,\n description: undefined,\n scrolldown: false,\n isPro: false,\n onChange: undefined\n};\n\nconst NekoOption = (props) => {\n return (<StyledNekoOption {...props} />);\n}\n\nNekoOption.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n value: PropTypes.string,\n checked: PropTypes.bool,\n label: PropTypes.string,\n description: PropTypes.string,\n onClick: PropTypes.func,\n scrolldown: PropTypes.bool,\n isPro: PropTypes.bool,\n requirePro: PropTypes.bool,\n icon: PropTypes.string\n};\n\nNekoOption.defaultProps = {\n id: undefined,\n name: undefined,\n value: undefined,\n checked: false,\n label: undefined,\n description: undefined,\n onClick: undefined,\n scrolldown: false,\n isPro: false,\n requirePro: false,\n icon: undefined\n};\n\nexport { NekoSelect, NekoOption };\n","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\nconst Form = Styled.div`\n label {\n display: block;\n margin-bottom: 3px;\n }\n\n .neko-input, .neko-textarea {\n margin-bottom: 5px;\n }\n`;\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {string} description\n * @param {string} placeholder\n */\nconst StyledNekoForm = (props) => {\n return (\n <Form>\n {props.children || null}\n </Form>\n );\n};\n\nconst NekoForm = (props) => {\n return (<StyledNekoForm {...props} />);\n};\n\nNekoForm.propTypes = {\n};\n\nNekoForm.defaultProps = {\n};\n\nexport { NekoForm };\n","import React, { useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {bool} checked\n * @param {string} label\n * @param {string} description\n */\nconst StyledNekoSwitch = Styled(props => {\n const { width = '100%', height = '20px', fontSize = '12px', onValue, offValue, checked = false,\n onBackgroundColor, offBackgroundColor, onLabel, offLabel, onChange, disabled, ...rest } = props;\n\n const onToggle = useCallback((v) => {\n onChange(v.target.checked ? onValue : offValue);\n }, [onChange, onValue, offValue]);\n\n return (\n <label {...rest} data-is-disabled={disabled ? 'disabled' : ''}>\n <input type=\"checkbox\" onChange={onToggle} checked={checked} disabled={disabled} />\n <span className=\"nui-switch-slider\"></span>\n </label>\n );\n})`\n color: ${Theme.white};\n font-family: ${Theme.fontFamily};\n font-size: ${props => props.fontSize};\n position: relative;\n display: inline-block;\n width: ${props => props.width};\n height: ${props => props.height};\n\n &[data-is-disabled=disabled] {\n opacity: 0.4;\n\n .nui-switch-slider {\n cursor: auto;\n }\n }\n\n input {\n opacity: 0;\n width: 0;\n height: 0;\n border: 0;\n }\n\n .nui-switch-slider {\n background-color: ${props => props.offBackgroundColor};\n border-radius: ${props => props.height};\n align-items: center;\n cursor: pointer;\n display: inline-flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transition: .4s;\n }\n\n .nui-switch-slider:before {\n border-radius: 50%;\n position: absolute;\n content: \"\";\n height: ${props => `calc(${props.height} - 8px)`};\n width: ${props => `calc(${props.height} - 8px)`};\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: .3s;\n }\n\n .nui-switch-slider:after {\n content: \"${props => props.offLabel}\";\n margin-left: auto;\n margin-right: ${props => `calc(${props.height} / 2)`};\n }\n\n input:checked + .nui-switch-slider {\n background-color: ${props => props.onBackgroundColor};\n }\n\n input:checked + .nui-switch-slider:before {\n transform: translateX(${props => `calc(${props.width} - ${props.height})` });\n }\n\n input:checked + .nui-switch-slider:after {\n content: \"${props => props.onLabel}\";\n margin-left: ${props => `calc(${props.height} / 2)`};\n margin-right: auto;\n }\n`;\n\nconst NekoSwitch = (props) => {\n return (<StyledNekoSwitch {...props} />);\n};\n\nNekoSwitch.propTypes = {\n width: PropTypes.string,\n height: PropTypes.string,\n fontSize : PropTypes.string,\n onValue: PropTypes.string,\n offValue: PropTypes.string,\n checked: PropTypes.bool,\n onBackgroundColor: PropTypes.string,\n offBackgroundColor: PropTypes.string,\n onLabel: PropTypes.string,\n offLabel: PropTypes.string\n};\n\nNekoSwitch.defaultProps = {\n width: '100%',\n height: '20px',\n fontSize: '12px',\n checked: false\n};\n\nexport { NekoSwitch };\n","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Colors from '../common/NekoTheme';\nimport { Icon, InlineIcon, IconifyIcon } from '@iconify/react';\nimport folderIcon from '@iconify/icons-mdi/folder';\nimport folderOpen from '@iconify/icons-mdi/folder-open';\nimport imageMultipleOutline from '@iconify/icons-mdi/image-multiple-outline';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport tagIcon from '@iconify/icons-mdi/tag';\n\nconst StyledNekoFinder = props => {\n\n const { chevron = true } = props;\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n chevron\n });\n });\n\n return (\n children\n );\n};\n\nconst FinderTitleContainer = Styled.div`\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n font-family: Lato;\n`;\n\nconst FinderTitle = Styled.div`\n align-items: center;\n display: flex;\n\n &.can-expand {\n cursor: pointer;\n }\n\n &.selected {\n color: #956DBE;\n }\n\n span {\n font-weight: normal;\n font-size: 13px;\n margin: 0 0 0 8px;\n }\n`;\n\nconst ChevronSpace = Styled.div`\n height: 24px;\n width: 24px;\n`;\n\nconst FinderTitleIconDropZone = Styled.div`\n position: relative;\n width: 24px;\n height: 24px;\n`;\n\nconst FinderTitleIconDroppableArea = Styled.div`\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 100;\n`;\n\nconst ItemContainer = Styled.div`\n border-left: 1px solid ${Colors.finderBorder};\n margin-left: 12px;\n padding-left: 6px;\n\n &.no-line {\n border-left: 0;\n padding-left: 12px;\n }\n\n &.no-chevron {\n border-left: 0;\n margin-left: 0;\n padding-left: 0;\n }\n`;\n\nconst StyledNekoFinderItem = props => {\n\n const defaultIcons = {\n gallery: imageMultipleOutline,\n tag: tagIcon\n }\n\n const { title, chevron, rightElement = null, rightElementStyle = { marginLeft: '5px' }, showRightElement = false, selected = false,\n draggable = false, onDragStart, onDragOver, onDragEnd, onDrop, isExpanded = false, dragging = false, rightAction = null,\n rightActionOnHover = null, onDragLeave, preventClose = false } = props;\n const isCustomizedIcon = !!props.icon;\n const hasChild = !!props.children;\n const [ expanded, setExpanded ] = useState(isExpanded);\n const [ icon, setIcon ] = useState(() => {\n if (typeof props.icon === 'string' && Object.keys(defaultIcons).includes(props.icon)) {\n return defaultIcons[props.icon];\n } else if (props.icon) {\n return props.icon;\n }\n return folderIcon\n });\n const isFolder = Boolean(icon);\n const [ showRightAction, setShowRightAction ] = useState(false);\n\n useEffect(() => {\n setExpanded(isExpanded);\n if (!isCustomizedIcon) {\n setIcon(isExpanded ? folderIcon : folderOpen);\n }\n }, [isExpanded]);\n\n const onClick = () => {\n if (props.onClick) {\n props.onClick();\n }\n }\n\n const onChevronClick = (e) => {\n e.stopPropagation();\n setExpanded(!expanded);\n }\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n chevron\n });\n });\n\n const iconColor = dragging || selected ? Colors.purple : (selected ? Colors.black : Colors.blue);\n\n return (\n <div>\n <FinderTitleContainer onMouseEnter={() => setShowRightAction(true)} onMouseLeave={() => setShowRightAction(false)}>\n <FinderTitle onClick={onClick} onMouseEnter={props.onMouseEnter} onMouseLeave={props.onMouseLeave} draggable={draggable} onDragStart={onDragStart} onDragOver={onDragOver} onDrop={onDrop} className={`${isFolder || children || props.onClick ? 'can-expand' : ''} ${selected ? 'selected' : ''}`} onDragLeave={onDragLeave} onDragEnd={onDragEnd}>\n {chevron\n ? (isFolder && hasChild)\n ? <Icon icon={expanded ? chevronDown : chevronRight} width=\"24\" height=\"24\" onClick={onChevronClick} />\n : <ChevronSpace></ChevronSpace>\n : null\n }\n <FinderTitleIconDropZone>\n <FinderTitleIconDroppableArea />\n <Icon icon={icon} color={iconColor} width=\"24\" height=\"24\" />\n </FinderTitleIconDropZone>\n <span>{title}</span>\n {showRightElement &&\n <div style={rightElementStyle}>{rightElement}</div>\n }\n </FinderTitle>\n {showRightAction ? (rightActionOnHover || rightAction) : rightAction}\n </FinderTitleContainer>\n {expanded && <ItemContainer className={`${isFolder ? '' : 'no-line'} ${chevron ? '' : 'no-chevron'}`}>{children}</ItemContainer>}\n </div>\n )\n}\n\nconst NekoFinder = (props) => {\n return (<StyledNekoFinder {...props} />);\n}\n\nNekoFinder.propTypes = {\n chevron: PropTypes.bool\n};\n\nNekoFinder.defaultProps = {\n chevron: true\n};\n\nconst NekoFinderItem = (props) => {\n return (<StyledNekoFinderItem {...props} />);\n}\n\nNekoFinderItem.propTypes = {\n icon: PropTypes.oneOfType([PropTypes.instanceOf(IconifyIcon), PropTypes.oneOf(['gallery'])]),\n title: PropTypes.string,\n isExpanded: PropTypes.bool\n};\n\nNekoFinderItem.defaultProps = {\n icon: folderIcon,\n title: undefined,\n isExpanded: false\n};\n\nexport { NekoFinder, NekoFinderItem };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nconst Logo = Styled.div`\n display: flex;\n width: 100%;\n height: 100%;\n max-width: 128px;\n max-height: 128px;\n\n & > * {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n`;\n\nconst StyledNekoLogo = () => {\n return (\n <Logo>\n <svg width=\"54\" height=\"38\" viewBox=\"0 0 54 38\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.9038 19.1156 23.9038 19.1156C23.9038 19.1156 13.4345 22.0656 11.3663 9.40518Z\" fill=\"#724024\" stroke=\"black\" strokeWidth=\"2.1869\"/>\n <path d=\"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z\" fill=\"#B7782E\"/>\n <path d=\"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z\" fill=\"#B7782E\"/>\n <path d=\"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z\" fill=\"#B7782E\"/>\n <path d=\"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z\" stroke=\"black\"/>\n <path d=\"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z\" stroke=\"black\"/>\n <path d=\"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z\" stroke=\"black\"/>\n <path d=\"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.658 19.4843 23.658 19.4843C23.658 19.4843 13.4345 22.0656 11.3663 9.40518Z\" stroke=\"black\" strokeWidth=\"2.1869\"/>\n <path d=\"M25.3788 9.89685C25.3788 9.89685 21.3225 35.0947 21.9371 35.7093C22.5517 36.3239 27.4684 36.3239 28.083 35.7093C28.6975 35.0947 29.6523 22.5858 30.2955 21.9427C30.9386 21.2995 35.7226 33.1281 36.81 33.1281C37.8975 33.1281 43.2303 21.3567 43.8163 21.9427C44.4023 22.5287 45.2913 35.0947 45.9059 35.7093C46.5204 36.3239 51.3142 36.3239 51.9288 35.7093C52.5434 35.0947 48.9788 9.89685 48.9788 9.89685H42.9559C42.9559 9.89685 37.7934 21.9427 36.81 21.9427C35.8267 21.9427 31.4017 9.89685 31.4017 9.89685H25.3788Z\" fill=\"white\" stroke=\"black\" strokeWidth=\"2.1869\"/>\n </svg>\n </Logo>\n );\n}\n\nconst NekoLogo = (props) => {\n return (<StyledNekoLogo {...props} />);\n}\n\nNekoLogo.propTypes = {\n};\n\nNekoLogo.defaultProps = {\n};\n\nexport { NekoLogo };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport { Icon, InlineIcon } from '@iconify/react';\nimport pauseIcon from '@iconify/icons-mdi/pause';\nimport stopIcon from '@iconify/icons-mdi/stop';\nimport playIcon from '@iconify/icons-mdi/play';\n\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {number} value Current progress\n * @param {number} max Max progress\n */\nconst StyledNekoProgress = Styled(props => {\n let { value = 0, max = 100, busy = false, status } = props;\n value = Math.min(value, max);\n let ratio = parseFloat(value) / parseFloat(max);\n\n return (\n <div className={props.className}>\n <ProgressCurrent ratio={ratio} busy={props.busy} status={status} />\n <div className=\"nui-progress-buttons\">\n {busy && props.onPauseClick && \n <div className='nui-progress-button pause' onClick={props.onPauseClick}>\n {props.paused ? <InlineIcon icon={playIcon} /> : <InlineIcon icon={pauseIcon} />}\n </div>\n }\n {busy && props.onStopClick && \n <div className='nui-progress-button stop' onClick={props.onStopClick}>\n <InlineIcon icon={stopIcon} />\n </div>\n }\n </div>\n </div>\n );\n})`\n position: relative;\n box-sizing: border-box;\n height: 30px;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.06) 0%,\n rgba(0, 0, 0, 0.02) 50%,\n rgba(0, 0, 0, 0.10) 100%\n );\n border-radius: 12px;\n\n .nui-progress-buttons {\n position: absolute;\n height: 100%;\n right: 0px;\n display: flex;\n align-items: center;\n padding-right: 5px;\n\n .nui-progress-button {\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 2px;\n border-radius: 100%;\n color: white;\n padding: 2px;\n width: 18px;\n height: 18px;\n background-color: ${Theme.blue};\n\n &:hover {\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n &.stop {\n background: ${Theme.red};\n\n &:hover {\n background-color: ${lighten(0.1, Theme.red)};\n }\n }\n }\n }\n`;\n\n/**\n * @param {float} ratio Progress ratio (0.0 to 1.0)\n */\nconst ProgressCurrent = Styled(props => {\n const percent = !isNaN(props.ratio) ? parseInt(Math.round(props.ratio * 100)) : 0;\n const typeOfStatus = typeof props.status;\n let status = typeOfStatus !== 'undefined'\n ? (typeOfStatus === 'string') ? props.status : props.status(percent)\n : `${percent}%`;\n\n return (\n <div className={props.className} style={{ minWidth: 28, minWidth: percent + '%' }}>\n <div>{status}</div>\n </div>\n );\n})`\n position: absolute;\n overflow: hidden;\n top: 0; left: 0;\n height: 100%;\n background-color: ${Theme.progress};\n border-radius: 12px;\n text-align: center;\n padding: 0 10px;\n vertical-align: middle;\n color: white;\n font-family: ${Theme.fontFamily};\n font-size: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: min-width .2s ease-out;\n\n background-size: 30px 30px;\n background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%,\n transparent 25%,\n transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,\n transparent 75%, transparent);\n animation: ${props => props.busy ? 'animate-stripes 1.6s linear infinite' : 'none'};\n\n @keyframes animate-stripes {\n 0% { background-position: 0 0; }\n 100% { background-position: 60px 0; }\n }\n`;\n\nconst NekoProgress = (props) => {\n return (<StyledNekoProgress {...props} />);\n}\n\nNekoProgress.propTypes = {\n value: PropTypes.number,\n max: PropTypes.number,\n busy: PropTypes.bool,\n paused: PropTypes.bool,\n onPauseClick: PropTypes.func,\n onStopClick: PropTypes.func,\n status: PropTypes.oneOf([PropTypes.string, PropTypes.func])\n};\n\nNekoProgress.defaultProps = {\n value: 0,\n max: 100,\n busy: false,\n paused: false,\n onPauseClick: undefined,\n onStopClick: undefined,\n status: undefined\n};\n\nexport { NekoProgress };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoLogo } from './Logo';\nimport { NekoIcon } from './Icon';\nimport Theme from '../common/NekoTheme';\nimport contentSave from '@iconify/icons-mdi/content-save';\n\nconst HeaderBase = Styled.div`\n position: relative;\n color: white;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n display: flex;\n height: 61px;\n overflow: hidden;\n align-items: center;\n padding: 15px 20px;\n background-color: ${Theme.header};\n display: flex;\n\n .nui-header-logo-container {\n width: 102px;\n height: 102px;\n padding: 20px;\n margin-right: 25px;\n background: rgba(${Theme.blackRGB}, 0.1);\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(-29.83deg);\n }\n\n .nui-header-title-container {\n flex-direction: column;\n display: flex;\n\n .nui-header-title {\n color: white;\n font-family: ${Theme.fontFamily};\n font-size: 23px;\n line-height: normal;\n margin: 0;\n }\n\n .nui-header-subtitle {\n color: white;\n font-family: ${Theme.fontFamily};\n line-height: normal;\n font-size: ${Theme.fontSizeText};\n }\n }\n\n .nui-header-extra-content {\n flex: 1;\n margin: 0 20px;\n }\n`;\n\nconst StyledNekoHeader = props => {\n\n const { title = 'NekoUI', subtitle = 'By Jordy Meow', children, saving = false } = props;\n\n return (\n <HeaderBase>\n <div className='nui-header-logo-container'>\n <NekoLogo />\n </div>\n <div className=\"nui-header-title-container\">\n <h1 className=\"nui-header-title\">{title}</h1>\n <small className=\"nui-header-subtitle\"><a target='_blank' href='https://meowapps.com' \n style={{ color: 'white', textDecoration: 'none' }}>{subtitle}</a></small>\n </div>\n <div className=\"nui-header-extra-content\">{children}</div>\n {saving && <NekoIcon icon={contentSave} width=\"36\" height=\"36\" />}\n </HeaderBase>\n );\n};\n\nconst NekoHeader = (props) => {\n return (<StyledNekoHeader {...props} />);\n}\n\nNekoHeader.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n saving: PropTypes.bool\n};\n\nNekoHeader.defaultProps = {\n title: 'NekoUI',\n subtitle: 'By Jordy Meow',\n saving: false\n};\n\nexport { NekoHeader };\n","import React, { useState, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { Icon } from '@iconify/react';\nimport chevronDoubleLeft from '@iconify/icons-mdi/chevron-double-left';\nimport chevronLeft from '@iconify/icons-mdi/chevron-left';\nimport chevronDoubleRight from '@iconify/icons-mdi/chevron-double-right';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\nimport Theme from '../common/NekoTheme';\n\nconst PagingContainer = Styled.div`\n align-items: center;\n display: flex;\n\n .neko-paging-text {\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 14px;\n }\n\n .neko-paging-controller {\n box-sizing: border-box;\n height: 30px;\n align-items: center;\n background-color: rgba(${Theme.blueRGB}, 0.8);\n border-radius: 15px;\n display: flex;\n margin-left: 15px;\n padding: 3px 5px;\n\n .nako-paging-controller-icon {\n background-color: ${Theme.white};\n border-radius: 100%;\n cursor: pointer;\n margin-right: 2px;\n height: 22px;\n width: 22px;\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n transition: transform 0.1s ease-in;\n box-sizing: border-box;\n\n :last-child {\n margin-right: 0;\n }\n\n &.disabled {\n color: ${Theme.darkGray};\n cursor: default;\n pointer-events: none;\n }\n\n &:hover {\n transform: scale(1.2) !important;\n z-index: 10;\n position: relative;\n }\n }\n\n .nako-paging-controller-text {\n color: ${Theme.white};\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n margin: 0 40px;\n user-select: none;\n }\n\n span.neko-paging-current-page {\n cursor: pointer;\n text-decoration: underline;\n }\n input.neko-paging-current-page {\n width: 1.5rem;\n }\n }\n\n &.neko-paging-full {\n flex-grow: 1;\n\n .neko-paging-controller {\n flex-grow: 1;\n }\n .nako-paging-controller-text {\n margin: 0 auto;\n }\n }\n`;\n\n/**\n * @param {number} currentPage Current page\n * @param {number} limit Items per page\n */\nconst StyledNekoPaging = props => {\n const { currentPage, limit, onClick, total, onCurrentPageChanged, full } = props;\n const isEditable = !!onCurrentPageChanged;\n const maxPage = Math.ceil(total === 0 ? 1 : (limit > 0 ? (total / limit) : 1));\n const prevIconClassName = `nako-paging-controller-icon ${currentPage === 1 ? 'disabled' : ''}`;\n const nextIconClassName = `nako-paging-controller-icon ${currentPage === maxPage ? 'disabled' : ''}`;\n const [ showCurrentPageInput, setShowCurrentPageInput ] = useState(false);\n const fullClassName = full ? 'neko-paging-full' : '';\n\n const onClickHandle = (page) => {\n setShowCurrentPageInput(false);\n onClick(page);\n };\n\n const getValidPage = (page) => {\n const numberPage = Number(page);\n return numberPage > maxPage ? maxPage : (numberPage < 1 ? 1 : numberPage);\n }\n\n const onBlur = (e) => {\n const page = e.target.value;\n\n if (!isNaN(page)) {\n onCurrentPageChanged(getValidPage(page));\n }\n setShowCurrentPageInput(false);\n }\n\n const onKeyPress = (e) => {\n if (event.key === 'Enter') {\n e.preventDefault();\n const page = e.target.value;\n if (!isNaN(page)) {\n onCurrentPageChanged(getValidPage(page));\n }\n setShowCurrentPageInput(false);\n }\n };\n\n const currentPageJsx = useMemo(() => {\n if (!showCurrentPageInput) {\n const onClick = () => {\n if (!isEditable) {\n return;\n }\n setShowCurrentPageInput(true);\n }\n return <span className={isEditable ? 'neko-paging-current-page' : ''} onClick={onClick}>{currentPage}</span>;\n }\n return <input autoFocus type=\"text\" className={isEditable ? 'neko-paging-current-page' : ''} \n defaultValue={currentPage} onBlur={onBlur} onKeyPress={onKeyPress} />;\n }, [currentPage, showCurrentPageInput, onCurrentPageChanged]);\n\n const onControllerClick = (e) => {\n if (!showCurrentPageInput || e.target !== e.currentTarget) return;\n\n setShowCurrentPageInput(false);\n }\n\n return (\n <PagingContainer className={fullClassName}>\n\n <span className=\"neko-paging-text\">{total} result{total > 0 ? 's' : ''}</span>\n\n <div className=\"neko-paging-controller\" onClick={onControllerClick}>\n <Icon icon={chevronDoubleLeft}\n className={prevIconClassName}\n onClick={() => onClickHandle(1)}\n />\n <Icon icon={chevronLeft}\n className={prevIconClassName}\n onClick={() => onClickHandle(currentPage - 1)}\n />\n <p className=\"nako-paging-controller-text\" onClick={onControllerClick}>\n Page {currentPageJsx} of {maxPage}\n </p>\n <Icon icon={chevronRight}\n className={nextIconClassName}\n onClick={() => onClickHandle(currentPage + 1)}\n />\n <Icon icon={chevronDoubleRight}\n className={nextIconClassName}\n onClick={() => onClickHandle(maxPage)}\n />\n </div>\n </PagingContainer>\n );\n};\n\nconst NekoPaging = (props) => {\n return (<StyledNekoPaging {...props} />);\n};\n\nNekoPaging.propTypes = {\n currentPage: PropTypes.number,\n limit: PropTypes.number,\n total: PropTypes.number,\n onClick: PropTypes.func\n};\n\nNekoPaging.defaultProps = {\n currentPage: undefined,\n limit: undefined,\n total: undefined,\n onClick: undefined\n};\n\nexport { NekoPaging };\n","import React, { useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoIcon } from '../misc/Icon';\n\nconst LinkContainer = Styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst Link = Styled.span`\n color: ${props => props.variant || Theme.blue};\n cursor: pointer;\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 17px;\n\n &.is-active {\n cursor: default;\n color: ${Theme.black};\n font-weight: bold;\n }\n\n &::after {\n content: \"|\";\n color: ${Theme.darkGray};\n padding: 0 4px;\n }\n\n &:last-child::after {\n content: none;\n }\n\n span {\n color: ${Theme.darkGray};\n font-weight: normal;\n margin-left: 4px;\n }\n`;\n\nconst StyledNekoQuickLinks = props => {\n const { id, value, onChange, busy = false, className } = props;\n\n const children = React.Children.map(props.children, (child, i) => {\n return React.cloneElement(child, {\n busy: busy,\n isActive: child.props.value === value,\n onClick: (newValue) => {\n if (newValue !== value) {\n onChange(newValue, id);\n }\n }\n });\n });\n\n return (\n <LinkContainer className={className}>{children}</LinkContainer>\n );\n};\n\nconst StyledNekoLink = props => {\n\n const { title, value = 0, count, onClick, busy, isActive, className, variant } = props;\n\n const variantValue = useMemo(() => {\n if (!variant) return undefined\n return Object.keys(Theme).includes(variant) ? Theme[variant] : variant\n }, [variant])\n\n return (\n <Link onClick={() => onClick(value)} className={`${isActive ? 'is-active' : ''} ${className}`} variant={variantValue}>\n {title}\n {count === null ? null :\n <span>(\n {busy ? \n <NekoIcon icon=\"replay\" spinning={true} width={12} containerStyle={{ display: 'inline' }} /> : \n count\n })\n </span>\n }\n </Link>\n );\n};\n\nconst NekoQuickLinks = (props) => {\n return (<StyledNekoQuickLinks {...props} />);\n};\n\nNekoQuickLinks.propTypes = {\n id: PropTypes.string,\n value: PropTypes.string,\n onChange: PropTypes.func\n};\n\nNekoQuickLinks.defaultProps = {\n id: undefined,\n value: undefined,\n onChange: undefined\n};\n\nconst NekoLink = (props) => {\n return (<StyledNekoLink {...props} />);\n};\n\nNekoLink.propTypes = {\n title: PropTypes.string,\n value: PropTypes.string,\n count: PropTypes.number,\n onClick: PropTypes.func,\n isActive: PropTypes.bool,\n variant: PropTypes.string,\n};\n\nNekoLink.defaultProps = {\n title: undefined,\n value: 'default',\n count: 0,\n onClick: undefined,\n isActive: false,\n variant: undefined,\n};\n\nexport { NekoQuickLinks, NekoLink };\n","import React, { useState, useCallback, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nconst StyledSection = Styled.section`\n .mask {\n position: absolute;\n overflow: hidden;\n display: block;\n width: ${props => props.width}px;\n height: ${props => props.width / 2}px;\n }\n\n .semi-circle {\n position: relative;\n display: block;\n width: ${props => props.width}px;\n height: ${props => props.width / 2}px;\n background: linear-gradient(to right, #27b775 0%, #f3f32c 50%, #f71b1b 100%);\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n\n &::before {\n content: \"\";\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 2;\n display: block;\n width: 140px;\n height: 70px;\n margin-left: -70px;\n background: ${props => props.backgroundColor};\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .semi-circle--mask {\n position: absolute;\n top: 0;\n left: 0;\n width: ${props => props.width}px;\n height: ${props => props.width}px;\n background: transparent;\n transform-origin: center center;\n backface-visibility: hidden;\n transition: all .3s ease-in-out;\n\n &::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0%;\n z-index: 2;\n display: block;\n width: ${props => props.width + 2}px;\n height: ${props => props.width / 2 + 2}px;\n margin-top: -1px;\n margin-left: -1px;\n background: #5396c1d6;\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .gauge { \n width: ${props => props.width}px;\n height: ${props => props.width / 2}px;\n \n .semi-circle--mask {\n transform: rotate(${props => props.degrees}deg) translate3d(0,0,0);\n }\n }\n\n .child-container {\n position: absolute;\n font-size: 16px;\n display: flex;\n width: ${props => props.width + 2}px;\n height: ${props => props.width / 2}px;\n z-index: 10;\n\n .spacing {\n flex: auto;\n }\n\n .child {\n color: white;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n }\n`;\n\nconst NekoGauge = ({ value = 1000, min = 0, max = 2500, width = 200, background = '#007cba', children }) => {\n const degrees = 180 * (value <= max ? value : max) / max;\n return (\n <StyledSection backgroundColor={background} degrees={degrees} width={width}>\n <div class=\"gauge\">\n <div class=\"mask\">\n <div class=\"semi-circle\"></div>\n <div class=\"semi-circle--mask\"></div>\n </div>\n <div class=\"child-container\">\n <div class=\"child\">\n <div class=\"spacing\" />\n {children}\n </div>\n </div>\n </div>\n </StyledSection>\n )\n};\n\nNekoGauge.propTypes = {\n value : PropTypes.number,\n min : PropTypes.number,\n max : PropTypes.number,\n width : PropTypes.number,\n background : PropTypes.string,\n};\n\nNekoGauge.defaultProps = {\n value : 1000,\n min : 0,\n max : 2500,\n width : 200,\n background : '#007cba',\n};\n\nexport { NekoGauge };\n","import Styled from 'styled-components';\n\nconst NekoMessageDanger = Styled.p`\n background: #ba341e;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n\n a {\n color: white;\n font-weight: bold;\n }\n`;\n\nconst NekoMessageSuccess = Styled.p`\n background: #1eba96;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n text-align: center;\n\n a {\n color: white;\n font-weight: bold;\n }\n`;\n\nexport { NekoMessageDanger, NekoMessageSuccess };","import React, { useState, useRef, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoIcon, postFetch } from '../../index';\n\nconst StyledUpload = Styled.div`\n box-sizing: border-box;\n background: #C4C4C4;\n color: rgb(0 0 0 / 60%);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n transition: all 0.25s ease;\n\n &[data-is-disabled=true] {\n svg {\n opacity: 0.7;\n }\n }\n\n div {\n transition: all 0.5s ease;\n transform: scale(1.5);\n pointer-events: none;\n max-width: 100%;\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.dropping {\n background: #a4d5ff;\n\n div {\n transform: scale(2);\n }\n }\n`;\n\nconst NekoUpload = (props) => {\n\n const { multiple, width = '100%', height = '100%', iconSize = 48, iconColor = '#A9A9A9', onSuccess = () => {}, \n onFailure = () => {}, style = {}, apiUrl, apiConfig, onClick, disabled, ...rest } = props;\n const [ inDropZone, setInDropZone ] = useState(false);\n const [ inputId, setInputId ] = useState(Math.floor(Math.random() * 100000000));\n const inputEl = useRef(null);\n const divEl = useRef(null);\n const [ busy, setBusy ] = useState(false);\n\n useEffect(() => {\n if (!divEl) return;\n\n divEl.current.style.pointerEvents = busy ? 'none' : 'auto';\n }, [divEl, busy])\n\n const uploadFile = async (files) => {\n setBusy(true);\n const upload = async (file) => {\n apiConfig.file = file;\n return await postFetch(apiUrl, apiConfig);\n }\n const response = await Promise.all(files.map(async (file) => {\n return await upload(file);\n }))\n const successResponses = response.filter(v => v.success);\n const failerResponses = response.filter(v => !v.success);\n if (successResponses.length) {\n onSuccess(multiple ? successResponses : successResponses[0]);\n }\n if (failerResponses.length) {\n onFailure(multiple ? failerResponses : failerResponses[0]);\n }\n setBusy(false);\n }\n\n const onDragOver = (e) => {\n e.preventDefault();\n e.stopPropagation();\n }\n\n const onDragEnter = (e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(true);\n }\n\n const onDragLeave = (e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(false);\n }\n\n const onDrop = (e) => {\n const files = [...e.dataTransfer.files];\n uploadFiles(files, e);\n }\n\n const onUploaderClick = () => {\n if (onClick) {\n onClick();\n return;\n }\n inputEl.current.click();\n }\n\n const onInputUpload = (e) => {\n const files = [...e.target.files];\n uploadFiles(files, e);\n }\n\n const uploadFiles = (files, e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(false);\n console.log(files);\n uploadFile(files);\n }\n\n return (\n <div ref={divEl}>\n <input type=\"file\" id={inputId} accept=\"image/*\" ref={inputEl} onChange={onInputUpload} style={{ display: 'none' }} disabled={disabled} multiple={multiple} />\n <StyledUpload onClick={onUploaderClick} style={{ ...style, width, height }} className={inDropZone ? 'dropping' : ''} \n onDragOver={onDragOver} onDragEnter={onDragEnter} onDragLeave={onDragLeave} onDrop={onDrop} data-is-disabled={disabled} {...rest}>\n <NekoIcon width={iconSize} height={iconSize} icon='upload' spinning={busy} color={iconColor}\n onDragOver={onDragOver} onDragEnter={onDragEnter} />\n </StyledUpload>\n </div>\n );\n}\n\nNekoUpload.propTypes = {\n width : PropTypes.string,\n height : PropTypes.string,\n onSuccess : PropTypes.func,\n onFailure : PropTypes.func,\n style : PropTypes.object,\n apiUrl : PropTypes.string,\n apiConfig : PropTypes.object\n};\n\nNekoUpload.defaultProps = {\n width : '100%',\n height : '100%',\n onSuccess : () => {},\n onFailure : () => {},\n style : {}\n};\n\nexport { NekoUpload };\n","import React, { useState, forwardRef, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoBusyOverlay, postFetch } from '../../index';\n\nconst StyledUploadDropArea = Styled.div`\n &.dropping {\n background: #a4d5ff;\n }\n`;\n\nconst NekoUploadDropArea = forwardRef((props, ref) => {\n\n const { onSuccess = () => {}, onFailure = () => {}, apiUrl, apiConfig, className, disabled = false, children, multiple, ...rest } = props;\n const [ inDropZone, setInDropZone ] = useState(false);\n const [ busy, setBusy ] = useState(false);\n\n const uploadFile = async (files) => {\n setBusy(true);\n const upload = async (file) => {\n apiConfig.file = file;\n return await postFetch(apiUrl, apiConfig);\n }\n const response = await Promise.all(files.map(async (file) => {\n return await upload(file);\n }))\n const successResponses = response.filter(v => v.success);\n const failerResponses = response.filter(v => !v.success);\n if (successResponses.length) {\n onSuccess(multiple ? successResponses : successResponses[0]);\n }\n if (failerResponses.length) {\n onFailure(multiple ? failerResponses : failerResponses[0]);\n }\n setBusy(false);\n }\n\n const onDragOver = useCallback((e) => {\n e.preventDefault();\n e.stopPropagation();\n }, [disabled]);\n\n const onDragEnter = useCallback((e) => {\n e.preventDefault();\n e.stopPropagation();\n if (disabled) return;\n setInDropZone(true);\n }, [disabled]);\n\n const onDragLeave = useCallback((e) => {\n e.preventDefault();\n e.stopPropagation();\n if (disabled) return;\n setInDropZone(false);\n }, [disabled]);\n\n const onDrop = useCallback((e) => {\n if (disabled) return;\n const files = [...e.dataTransfer.files];\n uploadFiles(files, e);\n }, [disabled]);\n\n const onInputUpload = (e) => {\n const files = [...e.target.files];\n uploadFiles(files, e);\n }\n\n const uploadFiles = (files, e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(false);\n // console.log(files);\n uploadFile(files);\n }\n\n return (\n <NekoBusyOverlay busy={busy}>\n <input type=\"file\" accept=\"image/*\" ref={ref} onChange={onInputUpload} style={{ display: 'none' }} multiple={multiple} />\n <StyledUploadDropArea className={`${className ? className : ''} ${inDropZone ? 'dropping' : ''}`}\n onDragOver={onDragOver} onDragEnter={onDragEnter} onDragLeave={onDragLeave} onDrop={onDrop} {...rest}>\n {children}\n </StyledUploadDropArea>\n </NekoBusyOverlay>\n );\n});\n\nNekoUploadDropArea.propTypes = {\n ref: PropTypes.ref,\n onSuccess : PropTypes.func,\n onFailure : PropTypes.func,\n apiUrl : PropTypes.string,\n apiConfig : PropTypes.object,\n disabled: PropTypes.bool\n};\n\nNekoUploadDropArea.defaultProps = {\n onSuccess : () => {},\n onFailure : () => {},\n disabled : false\n};\n\nexport { NekoUploadDropArea };\n","import React, { useEffect, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Modal from 'react-modal';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoButton } from '../button/Button';\n\nconst NekoModalParent = Styled.div`\n\n .ReactModal__Overlay {\n z-index: 100;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n background: ${Theme.overlay} !important;\n }\n .ReactModal__Overlay {\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n .ReactModal__Overlay .neko-modal {\n opacity: 0;\n transform: scale(0.85);\n transition: all 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open .neko-modal {\n transform: scale(1);\n opacity: 1;\n }\n .ReactModal__Overlay--before-close .neko-modal {\n transform: scale(0.85);\n opacity: 0;\n }\n .neko-modal {\n background: ${Theme.white};\n position: relative;\n box-shadow: 2px 2px 15px 2px rgba(0, 0, 0, 0.8);\n outline: none;\n padding: 15px;\n max-width: 820px;\n }\n`;\n\nconst NekoModalContent = Styled.div`\n width: 518px;\n\n p {\n margin: 0;\n }\n .title {\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n }\n .content-container {\n display: flex;\n margin-top: 15px;\n\n .thumbnail {\n margin-right: 15px;\n width: 240px;\n overflow: hidden;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n .content {\n flex: auto;\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 14px;\n width: 100%;\n }\n }\n .button-group {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n margin-top: 15px;\n }\n`;\n\nconst StyledNekoModal = (props) => {\n\n const {\n id = 'neko-modal-parent',\n isOpen,\n children,\n className,\n style,\n ok = 'OK',\n cancel = 'Cancel',\n customButtons = null,\n customButtonsPosition = 'right',\n title = '',\n content = '',\n onOkClick,\n onCancelClick,\n okOnEnter = false,\n thumbnail,\n ...rest\n } = props;\n const customClassName = style ? 'custom-modal' : '';\n const showCustomButtons = customButtons !== null;\n\n const keyUpHandler = useCallback(({ key }) => {\n if (key === 'Enter') {\n onOkClick();\n }\n }, [onOkClick]);\n\n useEffect(() => {\n if (!okOnEnter || !isOpen) return;\n\n window.addEventListener(\"keyup\", keyUpHandler);\n return () => {\n window.removeEventListener(\"keyup\", keyUpHandler);\n };\n }, [isOpen, keyUpHandler]);\n\n const modalContent = children\n ? children\n : <NekoModalContent>\n {title && <p className=\"title\">{title}</p>}\n <div className=\"content-container\">\n {thumbnail && <div className=\"thumbnail\">{thumbnail}</div>}\n {content && <p className=\"content\">{content}</p>}\n </div>\n <div className=\"button-group\">\n {showCustomButtons && customButtonsPosition === 'left' && customButtons}\n {onCancelClick && <NekoButton className=\"danger\" onClick={onCancelClick}>{cancel}</NekoButton>}\n {onOkClick && <NekoButton onClick={onOkClick}>{ok}</NekoButton>}\n {showCustomButtons && customButtonsPosition === 'right' && customButtons}\n </div>\n </NekoModalContent>;\n\n return (\n <React.Fragment>\n <NekoModalParent id={id} />\n <Modal ariaHideApp={false}\n parentSelector={() => document.getElementById(id)}\n closeTimeoutMS={200}\n className={`neko-modal ${className || ''} ${customClassName}`}\n isOpen={isOpen}\n {...rest}\n >\n {modalContent}\n </Modal>\n </React.Fragment>\n );\n};\n\nconst NekoModal = (props) => {\n return (<StyledNekoModal {...props} />);\n};\n\nNekoModal.propTypes = {\n className: PropTypes.string,\n style: PropTypes.object,\n ok: PropTypes.string,\n cancel: PropTypes.string,\n title: PropTypes.string,\n content: PropTypes.string,\n onOkClick: PropTypes.func,\n onCancelClick: PropTypes.func,\n customButtons: PropTypes.object,\n okOnEnter: PropTypes.bool,\n thumbnail: PropTypes.element\n};\n\nNekoModal.defaultProps = {\n className: undefined,\n style: undefined,\n ok: 'OK',\n cancel: 'Cancel',\n title: '',\n content: '',\n onOkClick: undefined,\n onCancelClick: undefined,\n customButtons: null,\n okOnEnter: false,\n thumbnail: undefined\n};\n\nexport { NekoModal };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { Icon } from '@iconify/react';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronUp from '@iconify/icons-mdi/chevron-up';\nimport checkboxBlankOutline from '@iconify/icons-mdi/checkbox-blank-outline';\nimport checkboxMarked from '@iconify/icons-mdi/checkbox-marked';\nimport checkboxMultipleMarked from '@iconify/icons-mdi/checkbox-multiple-marked';\n\nimport Theme from '../common/NekoTheme';\nimport NekoBusyOverlay from '../common/NekoBusyOverlay';\n\nconst Table = Styled.table`\n font-family: ${Theme.fontFamily};\n border-spacing: 0;\n width: 100%;\n word-break: break-all;\n\n th, td {\n margin: 0;\n padding: 5px;\n border-bottom: 1px solid rgba(${Theme.blackRGB}, 0.1);\n border-right: 1px solid rgba(${Theme.blackRGB}, 0.1);\n\n a {\n text-decoration: none;\n }\n\n :last-child {\n border-right: 0;\n }\n }\n\n &.nekotable-raw {\n th, td {\n border: 0;\n }\n }\n\n th, tfoot td {\n height: 30px;\n background-color: ${Theme.blue};\n color: ${Theme.white};\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n text-align: left;\n\n div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n &.sortable {\n cursor: pointer;\n }\n }\n }\n\n thead tr th:first-child {\n border-top-left-radius: 10px;\n }\n\n thead tr th:last-child {\n border-top-right-radius: 10px;\n }\n\n tfoot tr th:first-child {\n border-bottom-left-radius: 10px;\n }\n\n tfoot tr th:last-child {\n border-bottom-right-radius: 10px;\n }\n\n &.nekotable-raw {\n th {\n font-weight: bold;\n }\n th, tfoot td {\n background-color: ${Theme.white};\n color: ${Theme.black};\n }\n }\n\n tbody {\n background-color: ${Theme.white};\n \n tr {\n :nth-child(even) {\n background-color: ${Theme.tableGray};\n }\n &.selected {\n background-color: rgba(${Theme.blueRGB}, 0.8);\n color: ${Theme.white};\n\n a {\n color: #81e8ff;\n }\n }\n }\n img {\n vertical-align: bottom;\n }\n }\n\n &.nekotable-raw {\n tbody {\n tr {\n :nth-child(even) {\n background-color: ${Theme.white};\n }\n &.selected {\n background-color: ${Theme.white};\n color: ${Theme.black};\n }\n }\n }\n }\n\n tfoot tr:last-child {\n td {\n border-bottom: 0;\n }\n }\n\n .table-checkbox-cell {\n width: 35px;\n text-align: center;\n\n svg {\n padding: 5px;\n cursor: pointer;\n }\n }\n`;\n\nconst TableCheckBox = (props) => {\n const { checked, intermediate = false, onSelect = () => {}, onUnselect = () => {}, ...rest } = props;\n\n const onClick = (e) => { \n checked ? onUnselect(e) : onSelect(e);\n };\n\n return (\n <Icon icon={intermediate ? checkboxMultipleMarked : (checked ? checkboxMarked : checkboxBlankOutline)}\n width=\"24px\" height=\"24px\" onClick={onClick} />\n );\n};\n\nconst alignToJustifyContent = {\n left: 'start',\n center: 'center',\n right: 'end',\n};\n\n/**\n * @param {string} className\n * @param {string|object} icon\n * @param {bool} disabled\n * @param {function} onClick\n */\nconst StyledNekoTable = (props) => {\n const { columns, data, busy = false, onSelect, onUnselect, selectedItems, sort, onSortChange, variant = 'default' } = props;\n const columnsCount = columns.length + (onSelect ? 1 : 0);\n\n const getColumnStyle = (column) => {\n let style = {};\n if (column.align) {\n style = { textAlign: column.align, justifyContent: alignToJustifyContent[column.align] };\n }\n if (column.width) {\n style = { ...style, width: column.width };\n }\n if (column.style) {\n style = { ...style, ...column.style };\n }\n return style;\n }\n\n const rows = data.map(v => {\n const cells = columns.map(c => {\n return { value: v[c.accessor], style: getColumnStyle(c) }\n });\n return { id: v.id, cells };\n });\n\n const currentRowsIds = rows.map(x => x.id);\n const currentSelectedRows = currentRowsIds.filter(x => selectedItems.includes(x));\n const areAllRowsSelected = currentSelectedRows.length === currentRowsIds.length;\n const isIntermediate = !areAllRowsSelected && selectedItems.length > 0;\n\n const hiddenColumnIndexes = columns.reduce(function(a, e, i) {\n if (e.visible === false)\n a.push(i);\n return a;\n }, []);\n\n const headersFooters = <tr>\n {onSelect && \n <th className='table-checkbox-cell'>\n <TableCheckBox checked={areAllRowsSelected} intermediate={isIntermediate}\n onSelect={(e) => onSelect(currentRowsIds, e) } \n onUnselect={(e) => { \n // The unselect on selectedItems never happens, but I keep it here in case\n // we find an elegant UI solution to unselect all the invisible selected rows as well.\n isIntermediate ? onUnselect(selectedItems, e) : onUnselect(currentRowsIds, e);\n }}\n />\n </th>\n }\n {columns.filter((x, i) => !hiddenColumnIndexes.includes(i)).map(column => {\n let beingSorted = sort && sort.accessor === column.accessor;\n let beingSortedAsc = sort && sort.by === 'asc';\n const columnStyle = getColumnStyle(column);\n return (<th style={columnStyle} key={column.accessor}>\n <div className={column.sortable ? 'sortable' : ''} style={columnStyle}\n onClick={column.sortable ? (e) => { \n onSortChange(column.accessor, beingSorted && beingSortedAsc ? 'desc' : 'asc', e)\n } : undefined}>\n <div>{column.title}</div>\n <div>{column.sortable && \n <Icon icon={!beingSorted ? chevronDown : (beingSortedAsc ? chevronDown : chevronUp)} \n color={beingSorted ? Theme.white : `rgba(${Theme.blackRGB}, 0.1)`} \n width=\"26px\" height=\"26px\" />}\n </div>\n </div>\n </th>)\n })}\n </tr>;\n\n return (\n <NekoBusyOverlay busy={busy} overlayStyle={{ top: '36px', height: 'calc(100% - 76px)' }}>\n <Table className={`nekotable-${variant}`}>\n <thead>{headersFooters}</thead>\n <tbody>\n {!rows.length && \n <tr><td colspan={columnsCount} style={{ textAlign: 'center', height: 40, color: 'gray' }}>\n Empty.\n </td></tr>\n }\n {rows.map(row => {\n return (\n <tr className={selectedItems.includes(row.id) ? 'selected' : ''}>\n {onSelect && \n <td className='table-checkbox-cell'>\n <TableCheckBox \n checked={selectedItems.includes(row.id)}\n onSelect={(e) => onSelect([ row.id ], e)}\n onUnselect={(e) => onUnselect([ row.id ], e)} \n />\n </td>\n }\n {row.cells.filter((x, i) => !hiddenColumnIndexes.includes(i)).map(cell => {\n return <td style={cell.style}>{cell.value}</td>;\n })}\n </tr>\n );\n })}\n </tbody>\n {variant === 'default' && <tfoot>{headersFooters}</tfoot>}\n </Table>\n </NekoBusyOverlay>\n );\n};\n\nconst NekoTable = (props) => {\n return (<StyledNekoTable {...props} />);\n};\n\nNekoTable.propTypes = {\n columns: PropTypes.arrayOf(PropTypes.any),\n data: PropTypes.arrayOf(PropTypes.any),\n busy: PropTypes.arrayOf(PropTypes.bool),\n onSelect: PropTypes.func,\n onUnselect: PropTypes.func,\n selectedItems: PropTypes.arrayOf(PropTypes.object),\n onSortChange: PropTypes.func,\n variant: PropTypes.string,\n};\n\nNekoTable.defaultProps = {\n columns: undefined,\n data: undefined,\n busy: false,\n onSelect: undefined,\n onUnselect: undefined,\n selectedItems: undefined,\n onSortChange: undefined,\n variant: 'default',\n};\n\nexport { NekoTable };\n","import React, { useMemo, useState, useRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport Styled from \"styled-components\";\nimport Theme from '../common/NekoTheme';\nimport { NekoModal } from \"./Modal\";\nimport { NekoTypo } from \"./../misc/Typography\";\nimport { NekoInput } from \"./../form/Input\";\nimport { NekoButton } from \"../button/Button\";\nimport { NekoPaging } from \"../misc/Paging\";\nimport NekoBusyOverlay from \"../common/NekoBusyOverlay\";\nimport { NekoIcon } from \"../misc/Icon\";\nimport { NekoUploadDropArea } from \"../misc/UploadDropArea\";\nimport { NekoTable } from \"../table/Table\";\n\nconst StyledNekoModal = Styled(NekoModal)`\n width: 633px;\n\n &.custom-modal {\n padding: 0;\n }\n\n .neko-modal-wrapper {\n padding: 15px;\n }\n\n .neko-media-library-modal-content-header {\n align-items: center;\n display: flex;\n justify-content: space-between;\n\n h1 {\n font-size: 21px;\n font-weight: bold;\n margin: 0;\n }\n\n input {\n background-color: ${Theme.white};\n border: 1px solid ${Theme.black};\n border-radius: 3px;\n }\n }\n .neko-media-library-modal-content-body {\n margin-top: 33px;\n margin-bottom: 36px;\n\n .neko-media-library-modal-content-body-list {\n max-height: 406px;\n overflow-y: scroll;\n margin-bottom: 10px;\n width: 100%;\n }\n .neko-media-library-modal-content-body-gallery {\n display: grid;\n gap: 10px;\n grid-template-columns: repeat(6, 1fr);\n margin-bottom: 10px;\n\n .neko-media-library-modal-content-media-container {\n cursor: pointer;\n position: relative;\n\n img {\n box-sizing: border-box;\n }\n\n &.selected {\n img {\n border: 5px solid ${Theme.blue};\n }\n }\n\n &:hover {\n .zoom-button {\n display: block;\n }\n }\n\n .zoom-button {\n background-color: rgba(${Theme.blackRGB}, 0.4);\n border: 0;\n border-radius: 30px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 2px;\n left: 2px;\n width: 30px;\n height: 30px;\n }\n }\n }\n\n .neko-media-library-modal-content-body-selected-gallery {\n display: flex;\n\n .neko-media-library-modal-content-selected-media-container {\n overflow: hidden;\n position: relative;\n height: 50px;\n width: 50px;\n padding-right: 5px;\n\n &.dummy {\n width: 50px;\n\n &.drag-over {\n width: 50px;\n }\n }\n\n &.drag-over {\n width: 105px;\n\n .zoom-button {\n left: 56px;\n }\n }\n\n &.drag-over::before {\n content: '';\n display: inline-block;\n width: 50px;\n height: 50px;\n background-color: ${Theme.blue};\n }\n\n img {\n box-sizing: border-box;\n width: 100%;\n max-width: 50px;\n }\n\n &.drag-over {\n img {\n margin-left: 5px;\n }\n }\n\n &:hover {\n .remove-button,\n .zoom-button {\n display: block;\n }\n }\n\n .remove-button {\n background-color: rgba(${Theme.blackRGB}, 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n right: 1px;\n width: 20px;\n height: 20px;\n }\n\n .zoom-button {\n background-color: rgba(${Theme.blackRGB}, 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n left: 1px;\n width: 20px;\n height: 20px;\n }\n }\n }\n }\n .neko-media-library-modal-content-footer {\n display: flex;\n justify-content: space-between;\n }\n .neko-media-library-modal-search {\n position: relative;\n }\n`;\n\nconst selectedImageBaseWidth = 55;\nconst nextItemRange = 25;\nconst selectedImageIdPrefix = 'nmlm-selected-';\nconst dragOverClassName = 'drag-over';\nconst removeClass = (className) => {\n Array.prototype.forEach.call(document.getElementsByClassName(className), (ele) => {\n ele.classList.remove(className);\n });\n}\nconst displayModes = {\n grid: 'grid',\n list: 'list'\n};\nconst columns = [\n { accessor: 'thumbnail_url', title: 'Thumb', style: { width: '42px' } },\n { accessor: 'title', title: 'Title' },\n { accessor: 'size', title: 'Size', style: { width: '70px' } },\n { accessor: 'filename', title: 'Filename' },\n];\n\nconst StyledNekoMediaLibraryModal = (props) => {\n const { images, onNextPage, onPreviousPage, onRefresh, onClick, onRemoveClick, onZoomClick, onSearch, searchValue, busy,\n currentPage, limit, total, onPageChange, selected, multiSelect = false, showUploader = false, uploader, onSelectedOrderChanged,\n onUploadSuccess = () => {}, onUploadFailure = () => {}, uploadApiUrl, uploadApiConfig, uploadMultiple, onClose, onCancel, onSave, ...rest } = props;\n const [ search, setSerch ] = useState(searchValue);\n const [ dragImageIndex, setDragImageIndex ] = useState(null);\n const [ displayMode, setDisplayMode ] = useState(displayModes.grid);\n const ref = useRef(null);\n\n const onDragOver = (e, i) => {\n e.preventDefault();\n if (dragImageIndex === null) return;\n const { width, left, right } = e.currentTarget.getBoundingClientRect();\n let target = i;\n // Only tweak the index if the element dragged over is the right on the image dragged.\n if (dragImageIndex < i) {\n if (i > 0 && i < selected.length) {\n if (target + 1 === dragImageIndex && e.clientX >= right - nextItemRange) {\n target -= 1\n } else if (target - 1 === dragImageIndex && e.clientX >= left - nextItemRange) {\n target += 1;\n } else if (width !== selectedImageBaseWidth && e.clientX >= right - nextItemRange) {\n target += 1;\n }\n } else if (width !== selectedImageBaseWidth && e.clientX >= right - nextItemRange) {\n target += 1;\n }\n }\n removeClass(dragOverClassName);\n if (dragImageIndex === target || (dragImageIndex + 1) === target) return;\n document.getElementById(`${selectedImageIdPrefix}${target}`).classList.add(dragOverClassName);\n }\n\n const onDragEnd = (e) => {\n e.preventDefault();\n setDragImageIndex(null);\n removeClass(dragOverClassName);\n }\n\n const onDrop = (e, i) => {\n e.preventDefault();\n if (dragImageIndex === null || dragImageIndex === i || (dragImageIndex + 1) === i) return;\n onSelectedOrderChanged({ currentIndex: dragImageIndex, afterIndex: dragImageIndex > i ? i : i - 1});\n }\n\n const selectedMediaJsx = useMemo( () => {\n if ( !multiSelect ) return [];\n const dummyElementForDrop = <div id={`nmlm-selected-${selected.length}`} className=\"neko-media-library-modal-content-selected-media-container dummy\" draggable={false} onDragEnd={(e) => onDragEnd(e)} onDragOver={(e) => onDragOver(e, selected.length)} onDrop={(e) => onDrop(e, selected.length)} onDragLeave={() => removeClass(dragOverClassName)}></div>\n const selectedElement = selected.map( (image, i) => {\n return (\n <div id={`nmlm-selected-${i}`} key={image.id} className=\"neko-media-library-modal-content-selected-media-container\" draggable={true} onDragStart={() => setDragImageIndex(i)} onDragEnd={onDragEnd} onDragOver={(e) => onDragOver(e, i)} onDrop={(e) => onDrop(e, i)}>\n <img src={image.src} className=\"neko-media-library-modal-content-media\" />\n <button className=\"remove-button\" onClick={() => onRemoveClick({ id: image.id, src: image.src })}>\n <NekoIcon icon=\"close\" color={Theme.white} width={19} height={19} />\n </button>\n <button className=\"zoom-button\" onClick={() => onZoomClick({ id: image.id, src: image.zoom_src })}>\n <NekoIcon icon=\"zoom-in\" color={Theme.white} width={19} height={19} />\n </button>\n </div>\n );\n } );\n\n return [...selectedElement, dummyElementForDrop];\n\n }, [ selected, dragImageIndex ] );\n\n const mediaGridJsx = useMemo(() => {\n return images.map((image) => {\n return (\n <div key={image.id} className={`neko-media-library-modal-content-media-container ${selected.some(v => v.id === image.id) ? 'selected' : ''}`}\n onClick={() => {\n onClick({ id: image.id, src: image.src, zoom_src: image.zoom_src })\n }}>\n <img src={image.src} className=\"neko-media-library-modal-content-media\" width=\"90\" height=\"90\" />\n <button className=\"zoom-button\" onClick={(e) => { e.stopPropagation(); onZoomClick({ id: image.id, src: image.zoom_src }); }}>\n <NekoIcon icon=\"zoom-in\" color={Theme.white} width={29} height={29} />\n </button>\n </div>\n );\n });\n }, [images, selected]);\n\n const mediaRows = useMemo(() => {\n return images.map(x => ({\n id: x.id,\n thumbnail_url: <img src={x.src} style={{ width: 40, height: 40, objectFit: 'cover' }} />,\n title: x.title,\n size: x.size,\n filename: x.filename\n }));\n }, [images]);\n\n const onReset = () => {\n setSerch(\"\");\n onRefresh();\n }\n\n const mediaListJsx = useMemo(() => {\n const onSelect = (ids, e) => {\n const image = images.find(v => ids.includes(v.id));\n onClick({ id: image.id, src: image.src, zoom_src: image.zoom_src });\n }\n return <NekoTable\n data={mediaRows}\n columns={columns}\n onSelect={onSelect}\n onUnselect={onSelect}\n selectedItems={selected.map(v => v.id)}\n />\n }, [images, mediaRows, selected, onClick]);\n\n return (\n <StyledNekoModal style={true} {...rest}>\n <div className=\"neko-modal-wrapper\" draggable={true} onDragOver={() => removeClass(dragOverClassName)}>\n <NekoUploadDropArea ref={ref} onSuccess={onUploadSuccess} onFailure={onUploadFailure} apiUrl={uploadApiUrl} apiConfig={uploadApiConfig} disabled={!showUploader || dragImageIndex !== null} multiple={uploadMultiple}>\n <div className=\"neko-media-library-modal-content\">\n <div className=\"neko-media-library-modal-content-header\">\n <NekoTypo h1>Media Library</NekoTypo>\n <div style={{ display: 'flex' }}>\n <div className=\"neko-media-library-modal-search\">\n <NekoInput value={search} disabled={busy} onEnter={onSearch} onChange={(v) => setSerch(v)} placeholder=\"Search...\" />\n {search !== \"\" && <NekoIcon icon=\"close\" containerStyle={{ width: '20px', position: 'absolute', right: '5px', top: '5px', cursor: 'pointer' }} width={20} height={20} color={Theme.darkGray} onClick={onReset} />}\n </div>\n <NekoButton onClick={() => onSearch(search)} style={{ marginLeft: '4px', marginRight: '4px' }}>Search</NekoButton>\n <NekoIcon color={displayMode === displayModes.grid ? Theme.black : Theme.blue} icon='view-grid' onClick={() => setDisplayMode(displayModes.grid)} width=\"20\" height=\"20\" />\n <NekoIcon color={displayMode === displayModes.list ? Theme.black : Theme.blue} icon='format-list-bulleted' onClick={() => setDisplayMode(displayModes.list)} width=\"20\" height=\"20\" />\n </div>\n </div>\n <div>\n <div className=\"neko-media-library-modal-content-body\">\n <NekoBusyOverlay busy={busy}>\n <div className={`${displayMode === displayModes.grid ? 'neko-media-library-modal-content-body-gallery' : 'neko-media-library-modal-content-body-list'}`}>\n {displayMode === displayModes.grid && showUploader && uploader}\n {displayMode === displayModes.grid ? mediaGridJsx : mediaListJsx}\n </div>\n </NekoBusyOverlay>\n <div className=\"neko-media-library-modal-content-body-selected-gallery\">\n {selectedMediaJsx}\n </div>\n </div>\n </div>\n <div className=\"neko-media-library-modal-content-footer\">\n <NekoPaging limit={limit} currentPage={currentPage} total={total} onClick={onPageChange} />\n <div style={{ display: 'flex' }}>\n {!!onClose && <NekoButton onClick={() => onClose()}>\n Close\n </NekoButton>}\n {!!onCancel && <NekoButton className=\"danger\" onClick={() => onCancel()}>\n Cansel\n </NekoButton>}\n {!!onSave && <NekoButton onClick={() => onSave()}>\n Save\n </NekoButton>}\n </div>\n </div>\n </div>\n </NekoUploadDropArea>\n </div>\n </StyledNekoModal>\n );\n};\n\nconst NekoMediaLibraryModal = (props) => {\n return <StyledNekoMediaLibraryModal {...props} />;\n};\n\nNekoMediaLibraryModal.propTypes = {\n images: PropTypes.array,\n onNextPage: PropTypes.func,\n onPreviousPage: PropTypes.func,\n onRefresh: PropTypes.func,\n onClick: PropTypes.func,\n onSearch: PropTypes.func,\n searchValue: PropTypes.string,\n busy: PropTypes.bool,\n currentPage: PropTypes.number,\n limit: PropTypes.number,\n total: PropTypes.number,\n onPageChange: PropTypes.func,\n multiSelect: PropTypes.bool,\n selected: PropTypes.array,\n onClose: PropTypes.func,\n onCancel: PropTypes.func,\n onSave: PropTypes.func,\n};\n\nNekoMediaLibraryModal.defaultProps = {\n multiSelect: false\n};\n\nexport { NekoMediaLibraryModal };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { NekoIcon } from '../misc/Icon';\n\nconst TabContainer = Styled.div`\n`;\n\nconst TabGroup = Styled.div`\n display: flex;\n`;\n\nconst Tab = Styled.button`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n border-radius: 8px 8px 0px 0px;\n border: 0;\n background-color: #459ad2;\n color: rgb(255 255 255 / 65%);\n display: flex;\n align-items: center;\n\n cursor: pointer;\n line-height: 17px;\n margin-right: 5px;\n text-align: left;\n padding: 10px 15px 10px 15px;\n\n &:focus {\n outline: none;\n }\n\n &.active {\n background-color: ${Theme.blue};\n color: ${Theme.white};\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n cursor: default;\n display: inline-flex;\n padding-bottom: 7px;\n }\n\n &.hidden {\n display: none;\n }\n`;\n\nconst TabContent = Styled.div`\n background-color: ${Theme.blue};\n display: none;\n padding: 10px;\n\n &.active {\n display: block;\n }\n`;\n\n/**\n * Need to use with NecoTab\n */\nconst StyledNekoTabs = props => {\n const [isActiveTabIndex, setIsActiveTabIndex] = React.useState(0);\n const childrenProp = props.children\n ? (\n props.children.length\n ? props.children.filter(x => !!x)\n : [props.children]\n )\n : [];\n\n React.useEffect(() => {\n if (props.keepTabOnReload) {\n const url = new URL(window.location.href);\n const title = url.searchParams.get('nekoTab');\n if (!title) {\n setIsActiveTabIndex(0);\n return;\n }\n const searchTitle = decodeURIComponent(title);\n const index = React.Children.toArray(childrenProp).map(c => c.props.title.replaceAll(' ', '')).indexOf(searchTitle);\n if (index === -1) {\n setIsActiveTabIndex(0);\n return;\n }\n setIsActiveTabIndex(index);\n return;\n }\n setIsActiveTabIndex(0);\n }, [])\n\n const tabAttributes = React.Children.map(childrenProp, (child, i) => {\n const title = child.props.title || (\"Untitled Tab \" + (i + 1));\n const key = child.props.key || 'neko-tab-' + title.toLowerCase();\n const onClick = child.props.onClick ? child.props.onClick : null;\n const requirePro = !props.isPro && (child.props.requirePro || false);\n const hidden = child.props.hidden || false;\n const icon = child.props.icon || false;\n return { key, title, onClick, requirePro, hidden, icon };\n });\n\n const children = React.Children.map(childrenProp, (child, i) => {\n return React.cloneElement(child, {\n isActive: i === isActiveTabIndex\n });\n });\n\n const keepTab = (title) => {\n if (history.pushState && title) {\n let searchParams = new URLSearchParams(window.location.search);\n const value = encodeURIComponent(title.replaceAll(' ', ''));\n searchParams.set('nekoTab', value);\n let newUrl = window.location.protocol + \"//\" + window.location.host + window.location.pathname + '?' + searchParams.toString();\n window.history.replaceState({ path: newUrl }, '', newUrl);\n }\n }\n\n const onTabClick = (tabIndex, tabAttr, ev) => {\n if (tabAttr.requirePro) return;\n setIsActiveTabIndex(tabIndex);\n if (props.onChange) {\n props.onChange(tabIndex, tabAttr, ev);\n }\n if (props.keepTabOnReload) {\n keepTab(tabAttr.title);\n }\n };\n\n return (\n <TabContainer>\n <TabGroup>\n {tabAttributes.map((attr, i) =>\n <Tab \n key={attr.key} \n className={`neko-tab-title ${i === isActiveTabIndex ? 'active' : ''} ${attr.requirePro ? 'disabled' : ''} ${attr.hidden ? `hidden` : ''}`} \n onClick={(ev) => { onTabClick(i, attr, ev) }}\n >\n {attr.icon && <NekoIcon icon={attr.icon} width={15} height={15} style={{ marginRight: '2px' }} raw />}\n {attr.title}<ProOnly className=\"inline\" style={{ marginLeft: 10, marginRight: -5, top: -1 }} show={attr.requirePro} />\n </Tab>\n )}\n </TabGroup>\n {children}\n </TabContainer>\n );\n};\n\n\n/**\n * @oaram {string} title\n * @param {bool} isActive\n */\nconst StyledNekoTab = props => {\n\n const { children, isActive } = props;\n\n return (\n <TabContent className={`${isActive ? 'active' : ''}`}>\n {!!isActive && children}\n </TabContent>\n );\n};\n\nconst NekoTabs = (props) => {\n return (<StyledNekoTabs {...props} />);\n};\n\nNekoTabs.propTypes = {\n isPro: PropTypes.bool,\n onChange: PropTypes.func\n};\n\nNekoTabs.defaultProps = {\n isPro: false,\n onChange: undefined\n};\n\nconst NekoTab = (props) => {\n return (<StyledNekoTab {...props} />);\n};\n\nNekoTab.propTypes = {\n isActive: PropTypes.bool,\n requirePro: PropTypes.bool,\n title: PropTypes.string,\n icon: PropTypes.string,\n};\n\nNekoTab.defaultProps = {\n isActive: false,\n requirePro: false,\n title: undefined,\n icon: undefined,\n};\n\nexport { NekoTab, NekoTabs };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { Icon, InlineIcon } from '@iconify/react';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\n\nconst TabContainer = Styled.div`\n`;\n\nconst Tab = Styled.div`\n align-items: center;\n background-color: ${Theme.blue};\n border: 0;\n cursor: pointer;\n display: flex;\n padding: 2px 3px 2px 19px;\n\n &.disabled {\n background-color: rgba(${Theme.yellowRGB}, 0.25);\n cursor: default;\n }\n\n p {\n color: ${Theme.white};\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n line-height: 17px;\n margin: 0;\n }\n\n .neko-side-tab-icon {\n color: ${Theme.white};\n margin-left: auto;\n height: 36px;\n width: 36px;\n }\n`;\n\nconst TabContent = Styled.div`\n background-color: ${Theme.white};\n display: none;\n\n &.active {\n display: block;\n }\n`;\n\n/**\n * Need to use with NecoTab\n */\nconst StyledNekoSideTabs = props => {\n\n const [activeTabIndex, setIsActiveTabIndex] = React.useState(props.activeTabIndex);\n\n const tabAttributes = React.Children.map(props.children, (child, i) => {\n const title = child.props.title || (\"Untitled Tab \" + (i + 1));\n const key = child.props.key || 'neko-tab-' + title.toLowerCase();\n const onClick = child.props.onClick ? child.props.onClick : null;\n const requirePro = !props.isPro && (child.props.requirePro || false);\n const onDragOver = child.props.onDragOver;\n const onDrop = child.props.onDrop;\n const rightActions = child.props.rightActions || null;\n return { key, title, onClick, requirePro, onDragOver, onDrop, rightActions };\n });\n\n const children = React.Children.map(props.children, (child, i) => {\n return React.cloneElement(child, {\n isActive: i === activeTabIndex\n });\n });\n\n const onTabClick = (tabIndex, tabAttr, ev) => {\n if (tabAttr.requirePro) return;\n const newTabIndex = tabIndex === activeTabIndex ? null : tabIndex;\n setIsActiveTabIndex(newTabIndex);\n if (props.onChange) {\n props.onChange(newTabIndex, tabAttr, ev);\n }\n };\n\n return (\n <TabContainer>\n {tabAttributes.map((attr, i) =>\n <React.Fragment>\n <Tab\n key={attr.key}\n className={`${i === activeTabIndex ? 'active' : ''} ${attr.requirePro ? 'disabled' : ''}`}\n onClick={(ev) => { onTabClick(i, attr, ev); }}\n onDragOver={attr.onDragOver}\n onDrop={attr.onDrop}\n >\n <p>\n <span style={{ fontSize: 15 }}>{attr.title}</span>\n <ProOnly className=\"inline\" show={attr.requirePro} />\n </p>\n {attr.rightActions === null\n ? <Icon icon={i === activeTabIndex ? chevronDown : chevronRight } className=\"neko-side-tab-icon\" />\n : (\n i === activeTabIndex\n ? <div style={{ marginLeft: 'auto' }}>{attr.rightActions}</div>\n : <Icon icon={chevronRight} className=\"neko-side-tab-icon\" />\n )\n }\n </Tab>\n { children[i] }\n </React.Fragment>\n )}\n </TabContainer>\n );\n};\n\n\n/**\n * @oaram {string} title\n * @param {bool} isActive\n */\nconst StyledNekoSideTab = props => {\n\n const { children, isActive } = props;\n\n return (\n <TabContent className={`${isActive ? 'active' : ''}`}>\n { children }\n </TabContent>\n );\n};\n\nconst NekoSideTabs = (props) => {\n return (<StyledNekoSideTabs {...props} />);\n};\n\nNekoSideTabs.propTypes = {\n isPro: PropTypes.bool,\n onChange: PropTypes.func,\n activeTabIndex: PropTypes.number\n};\n\nNekoSideTabs.defaultProps = {\n isPro: false,\n onChange: undefined,\n activeTabIndex: null\n};\n\nconst NekoSideTab = (props) => {\n return (<StyledNekoSideTab {...props} />);\n};\n\nNekoSideTab.propTypes = {\n isActive: PropTypes.bool,\n requirePro: PropTypes.bool,\n title: PropTypes.string,\n onDragOver: PropTypes.func,\n onDrop: PropTypes.func,\n rightActions: PropTypes.element\n};\n\nNekoSideTab.defaultProps = {\n isActive: false,\n requirePro: false,\n title: undefined,\n onDragOver: undefined,\n onDrop: undefined,\n rightActions: undefined\n};\n\nexport { NekoSideTab, NekoSideTabs };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Colors from '../common/NekoTheme';\n\nconst ToolbarBase = Styled.div`\n box-sizing: border-box;\n display: flex;\n width: 100%;\n padding: 10px 10px;\n background: ${Colors.white};\n border-radius: 10px;\n box-shadow: 0px 0px 10px rgba(${Colors.blackRGB}, 0.1);\n\n &.neko-align-left {\n justify-content: flex-start;\n }\n\n &.neko-align-right {\n justify-content: flex-end;\n }\n\n > *:not(:last-child) {\n margin-right: 5px;\n }\n`;\n\nconst StyledNekoToolbar = ({ align = 'left', ...props }) => {\n return (\n <ToolbarBase className={`neko-align-${align}`} {...props}>\n {props.children}\n </ToolbarBase>\n );\n};\n\nconst NekoToolbar = (props) => {\n return (<StyledNekoToolbar {...props} />);\n};\n\nNekoToolbar.propTypes = {\n align: PropTypes.oneOf(['left', 'right'])\n};\n\nNekoToolbar.defaultProps = {\n align: 'left'\n};\n\nexport { NekoToolbar };","class NekoError {\n\n constructor(message, code = '', url = null, body = null, debug = {}, ) {\n this.url = url;\n this.message = message;\n this.code = code;\n this.body = body;\n this.debug = debug;\n }\n}\n\nexport { NekoError };","import { cache, mutate } from 'swr';\nimport { NekoError } from './errors';\n\n// This function allows to invalidate a SWR key which might\n// have been use for paging, for example: swrInvalidateMany('/api/items')\n// will reset everything which happens around this key.\n\nfunction swrInvalidateMany(select) {\n const keys = cache.keys();\n const mutations = [];\n let regexp = new RegExp(`(.*)${select}(.*)`);\n for (let key of keys) {\n if (regexp.test(key)) {\n mutations.push(mutate(key, null, true));\n }\n }\n return Promise.all(mutations);\n}\n\nfunction chunkArrayInGroups(arr, size) {\n let result = [];\n for (let i = 0; i < arr.length; i += size)\n result.push(arr.slice(i, i + size));\n return result;\n}\n\nconst consolidateJsonResult = (json) => {\n if (!json.data) {\n return json;\n }\n if (json.data.length > 0 && json.data[0].meta) {\n for (let x of json.data) {\n try { x.meta = JSON.parse(x.meta); }\n catch (err) { console.error('[JsonFetcher]', 'Could not decode meta.', x.meta); }\n }\n }\n else if (json.data.meta) {\n try { json.data.meta = JSON.parse(json.data.meta); }\n catch (err) { console.error('[JsonFetcher]', 'Could not decode meta.', x.meta); }\n }\n return json;\n}\n\nconst jsonFetcher = async (url, options = {}) => {\n let body = null;\n let json = {};\n let nekoError = null;\n let rawBody = null;\n\n try {\n options = options ? options : {};\n options.headers = options.headers ? options.headers : {};\n options.headers['Pragma'] = 'no-cache';\n options.headers['Cache-Control'] = 'no-cache';\n rawBody = await fetch(`${url}`, options);\n body = await rawBody.text();\n json = JSON.parse(body);\n if (!json.success) {\n let code = json.success === false ? 'NOT-SUCCESS' : 'N/A';\n let message = json.message ? json.message : 'Unknown error. Check your Console Logs.';\n if (json.code === 'rest_no_route') {\n message = \"The API can't be accessed. Is Rest API enabled?\";\n code = 'NO-ROUTE';\n }\n else if (json.code === 'internal_server_error') {\n message = \"Server error. Please check your PHP Error Logs.\";\n code = 'SERVER-ERROR';\n }\n nekoError = new NekoError(message, code, url, body ? body : rawBody);\n }\n }\n catch (error) {\n let code = 'BROKEN-REPLY';\n let message = \"The reply sent by the server is broken.\";\n if (rawBody && rawBody.status) {\n if (rawBody.status === 408) {\n code = \"REQUEST-TIMEOUT\";\n message = \"The request generated a timeout.\";\n }\n }\n nekoError = new NekoError(message, code, url, body ? body : rawBody, error);\n }\n\n // Rewrite the Json if there is an error\n if (nekoError) {\n console.error('[NekoError] JsonFetcher', nekoError.url, { code: nekoError.code, \n error: nekoError.error, body: nekoError.body });\n json.success = false;\n json.error = nekoError;\n }\n return consolidateJsonResult(json);\n}\n\nconst getFetch = async (url, json, signal, nonce) => {\n const nonceHeader = nonce ? { 'X-WP-Nonce': nonce } : {};\n return jsonFetcher(url, { \n method: 'GET', \n headers: { 'Content-Type': 'application/json', ...nonceHeader },\n signal: signal\n });\n}\n\nconst postFetch = async (url, config = {}) => {\n const { json = {}, signal, file, nonce } = config;\n let formData = file ? new FormData() : null;\n if (file) {\n formData.append('file', file);\n for (const [key, value] of Object.entries(json)) {\n formData.append(key, value);\n }\n }\n\n const headers = nonce ? { 'X-WP-Nonce': nonce } : {};\n if (!formData) {\n headers['Content-Type'] = 'application/json';\n }\n\n return jsonFetcher(url, { \n method: 'POST',\n headers: headers,\n body: formData ? formData :JSON.stringify(json) ,\n signal: signal\n });\n}\n\nconst buildUrlWithParams = (apiUrl, params) => {\n const isPlainPermalink = apiUrl.includes('index.php?rest_route');\n const urlParams = new URLSearchParams(params);\n const finalUrl = apiUrl + (isPlainPermalink ? '&' : '?') + urlParams.toString();\n return finalUrl;\n}\n\nconst formatBytes = (bytes, decimals = 2) => {\n //if (bytes === 0) return '0 Bytes';\n const k = 1024;\n const dm = decimals < 0 ? 0 : decimals;\n const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n let i = bytes > 0 ? Math.floor(Math.log(bytes) / Math.log(k)) : 0;\n if ( sizes[i] === 'Bytes' ) {\n bytes *= 100;\n i = 1;\n }\n bytes = parseFloat((bytes / Math.pow(k, i)).toFixed(dm));\n var str = bytes.toFixed(Math.max(dm, (bytes.toString().split('.')[1] || []).length));\n return str + ' ' + sizes[i];\n \n}\n\nexport { getFetch, postFetch, jsonFetcher, swrInvalidateMany, chunkArrayInGroups, buildUrlWithParams, formatBytes };","const prefix = mgcl_gallery_custom_links.prefix;\nconst domain = mgcl_gallery_custom_links.domain;\nconst restUrl = mgcl_gallery_custom_links.rest_url.replace(/\\/+$/, \"\");\nconst apiUrl = mgcl_gallery_custom_links.api_url.replace(/\\/+$/, \"\");\nconst pluginUrl = mgcl_gallery_custom_links.plugin_url.replace(/\\/+$/, \"\");\nconst isPro = mgcl_gallery_custom_links.is_pro === '1';\nconst isRegistered = isPro && mgcl_gallery_custom_links.is_registered === '1';\nconst restNonce = mgcl_gallery_custom_links.rest_nonce;\n\nexport { prefix, domain, apiUrl, restUrl, pluginUrl, isPro, isRegistered, restNonce };\n","// React & Vendor Libs\nconst { useState, useMemo } = wp.element;\nimport useSWR from 'swr';\n\n// NekoUI\nimport { NekoInput, NekoTypo, NekoPage, NekoBlock, NekoHeader, NekoContainer, NekoSettings,\n NekoTabs, NekoTab, NekoCheckboxGroup, NekoCheckbox, NekoWrapper, NekoSelect, NekoOption,\n NekoColumn } from '@neko-ui';\nimport { jsonFetcher, postFetch, useHandleSWR } from '@neko-ui';\n\nimport { apiUrl, restNonce } from '@app/settings';\n\nconst Settings = () => {\n\n const swrAllSettingsKey = useMemo(() => {\n return [`${apiUrl}/all_settings/`, { headers: { 'X-WP-Nonce': restNonce } }];\n }, [apiUrl, restNonce]);\n const { data: swrSettings, mutate: mutateSwrSettings } = useSWR(swrAllSettingsKey, jsonFetcher);\n const { busy: busySettings, data: settings, error: swrError } = useHandleSWR(swrSettings, {}, true);\n const [ busyAction, setBusyAction ] = useState(false);\n const busy = busySettings || busyAction;\n\n const obmode = settings?.mgcl_obmode;\n const parsingEngine = settings?.mgcl_parsing_engine;\n const log = settings?.mgcl_log;\n const buttonEnabled = settings?.mgcl_button_enabled;\n const buttonLabel = settings?.mgcl_button_label;\n\n const parsingEngineOptions = [\n { id: \"none\", value: \"None\", label: \"None (Not Supported Yet)\"},\n { id: \"htmldomparser\", value: \"HtmlDomParser\", label: \"HtmlDomParser\" },\n { id: \"didom\", value: \"DiDom\", label: \"DiDom\" }\n ]\n\n const updateOption = async (value, id) => {\n let newSettingsData = { ...swrSettings.data };\n newSettingsData[id] = value;\n mutateSwrSettings({ ...swrSettings, data: newSettingsData }, false);\n setBusyAction(true);\n try {\n await postFetch(`${apiUrl}/update_option`, { json: { name: id, value }, nonce: restNonce });\n }\n catch (err) {\n alert(err.message);\n }\n finally {\n setBusyAction(false);\n mutateSwrSettings();\n }\n }\n\n /**\n * Settings\n */\n\n const jsxOBMode =\n <NekoSettings title=\"OB Mode\">\n <NekoCheckboxGroup max=\"1\">\n <NekoCheckbox id=\"mgcl_obmode\" label=\"Enabled\" value=\"1\" checked={obmode} onChange={updateOption} description=\"If the linked images are outside of the main content (header, sidebar, etc), OB Mode is needed. This slows down the processing (cache recommended).\" />\n </NekoCheckboxGroup>\n </NekoSettings>;\n\n const jsxParsingEngine =\n <NekoSettings title=\"Parsing Engine\" description=\"Hello\">\n <NekoSelect id=\"mgcl_parsing_engine\" onChange={updateOption}>\n {parsingEngineOptions.map(option => <NekoOption id={`mgcl_parsing_engine_${option.id}`} value={option.value} label={option.label} checked={parsingEngine === option.value} /> )}\n </NekoSelect>\n </NekoSettings>;\n\n const jsxLog =\n <NekoSettings title=\"Logs\">\n <NekoCheckboxGroup max=\"1\">\n <NekoCheckbox id=\"mgcl_log\" label=\"Logs\" value=\"1\" checked={log} onChange={updateOption} description=\"Simple logging, written directly in the PHP Error Logs.\" />\n </NekoCheckboxGroup>\n </NekoSettings>;\n\n /**\n * CTA Buttons\n */\n const jsxUseButtons =\n <NekoSettings title=\"Use Buttons\">\n <NekoCheckboxGroup max=\"1\">\n <NekoCheckbox id=\"mgcl_button_enabled\" label=\"Enabled\" value=\"1\" description=\"A call-to-action button will be used of a clickable image.\" checked={buttonEnabled} onChange={updateOption} />\n </NekoCheckboxGroup>\n </NekoSettings>;\n\n const jsxButtonLabel =\n <NekoSettings title=\"Label\">\n <NekoInput id=\"mgcl_button_label\" name=\"mgcl_button_label\" value={buttonLabel} description=\"A call-to-action button will be used of a clickable image.\" onBlur={updateOption} />\n </NekoSettings>;\n\n return (\n <NekoPage nekoErrors={[ swrError ]}>\n\n <NekoHeader title='Gallery Custom Links | Settings' subtitle='By Jordy Meow' />\n\n <NekoWrapper>\n\n <NekoColumn full>\n <NekoContainer>\n <NekoTypo p>This plugin works out of the box, the default settings are the best for most installs. Don't hesitate to take a look at the <a href=\"https://meowapps.com/plugin/gallery-custom-links/\">official page</a>.</NekoTypo>\n </NekoContainer>\n\n <NekoTabs>\n\n <NekoTab title='Settings'>\n <NekoWrapper>\n\n <NekoColumn minimal>\n <NekoBlock busy={busy} title=\"Settings\" className=\"primary\">\n {jsxParsingEngine}\n {jsxOBMode}\n {jsxLog}\n </NekoBlock>\n </NekoColumn>\n\n <NekoColumn minimal>\n <NekoBlock busy={busy} title=\"CTA Buttons\" className=\"primary\">\n <NekoTypo p><b>Currently works with the <a href=\"https://wordpress.org/plugins/meow-gallery/\">Meow Gallery</a> and Gutenberg Galleries.</b> In a future Pro version, support for additional galleries might be added (please contact <a href=\"https://meowapps.com/contact/\">Meow Apps</a> for this).</NekoTypo>\n {jsxUseButtons}\n {!buttonEnabled ? null : jsxButtonLabel}\n </NekoBlock>\n </NekoColumn>\n\n </NekoWrapper>\n </NekoTab>\n\n </NekoTabs>\n\n </NekoColumn>\n\n </NekoWrapper>\n\n </NekoPage>\n );\n};\n\nexport default Settings;","const { __ } = wp.i18n;\n\nconst i18n = {};\n\ni18n.PENDING = __( 'Pending', 'gallery-custom-links' );\ni18n.RENAME = __( 'Rename', 'gallery-custom-links' );\ni18n.TITLE = __( 'Title', 'gallery-custom-links' );\ni18n.SAME_PAGE = __( 'Same page', 'gallery-custom-links' );\ni18n.NEW_PAGE = __( 'New page', 'gallery-custom-links' );\ni18n.LINK_URL = __( 'Link URL', 'gallery-custom-links' );\ni18n.LINK_TARGET = __( 'Link Target', 'gallery-custom-links' );\ni18n.LINK_REL = __( 'Link Rel', 'gallery-custom-links' );\ni18n.ARIAL_LABEL = __( 'Arial Label', 'gallery-custom-links' );\n\nexport default i18n;\n\n","// React & Vendor Libs\nconst { useState, useCallback } = wp.element;\nimport Styled from \"styled-components\";\n\n// Libs\nimport i18n from '@app/i18n';\nimport { apiUrl, restNonce } from '@app/settings';\n\n// NekoUI\nimport { NekoTypo, NekoIcon, NekoModal, NekoInput, NekoSelect, NekoOption } from '@neko-ui';\nimport { postFetch } from '@neko-ui';\n\nconst targets = [\n\t{ label: i18n.SAME_PAGE, value: '_self' },\n\t{ label: i18n.NEW_PAGE, value: '_blank' }\n];\n\nconst GroupContainer = Styled.div`\n\talign-items: center;\n\tdisplay: flex;\n\tmargin-bottom: 10px;\n\n\tp {\n\t\tmargin: 0 !important;\n\t\twidth: 20%;\n\t}\n\n\t> div {\n\t\tflex-grow: 1;\n\t}\n`;\n\nconst EditLinkField = ( props ) => {\n\n\tconst [ busyAction, setBusyAction ] = useState(false);\n\tconst busy = busyAction;\n\n\tconst { postId } = props;\n\tconst [ url, setUrl ] = useState( props.url );\n\tconst [ target, setTarget ] = useState( props.target ? props.target : '_self' );\n\tconst [ rel, setRel ] = useState( props.rel );\n\tconst [ aria, setAria ] = useState( props.aria );\n\tconst [ openModal, setOpenModal ] = useState( false );\n\n\tconst updateOption = async (postId, url, target, rel, aria) => {\n\t\tsetBusyAction( true );\n\t\tlet result = true;\n\t\ttry {\n\t\t\tconst res = await postFetch( `${apiUrl}/update_meta`, { json: {\n\t\t\t\tpost_id: postId,\n\t\t\t\t_gallery_link_url: url,\n\t\t\t\t_gallery_link_target: target,\n\t\t\t\t_gallery_link_rel: rel,\n\t\t\t\t_gallery_link_aria: aria,\n\t\t\t}, nonce: restNonce } );\n\t\t\tif ( !res.success ) {\n\t\t\t\tresult = false;\n\t\t\t\talert(res.message);\n\t\t\t}\n\t\t} catch ( err ) {\n\t\t\tresult = false;\n\t\t\talert( err.message );\n\t\t} finally {\n\t\t\tif ( result ) onCloseModal();\n\t\t\tsetBusyAction( false );\n\t\t}\n\t};\n\n\tconst onCloseModal = () => setOpenModal( false )\n\n\tconst onOkClick = useCallback(() => {\n\t\tupdateOption( postId, url, target, rel, aria );\n\t}, [postId, url, target, rel, aria, updateOption, onCloseModal]);\n\n const onKeyDown = useCallback((e) => {\n if (e.key === 'Enter' || e.keyCode === 13) {\n e.preventDefault();\n onOkClick();\n }\n }, [onOkClick]);\n\n\treturn (\n\t\t<>\n\t\t\t<span onClick={() => setOpenModal( true )} style={{ cursor: 'pointer' }}>\n\t\t\t\t<NekoIcon icon=\"link\" disabled={!url} />\n\t\t\t</span>\n\t\t\t<NekoModal\n\t\t\t\tisOpen={openModal}\n\t\t\t\tonRequestClose={onCloseModal}\n\t\t\t\ttitle=\"Edit the custom link\"\n\t\t\t\tcontent={\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.LINK_URL}</NekoTypo>\n\t\t\t\t\t\t\t<NekoInput disabled={busy} onInput={(e) => setUrl(e.target.value)}\n onKeyDown={onKeyDown} value={url} autoFocus />\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.LINK_TARGET}</NekoTypo>\n\t\t\t\t\t\t\t<NekoSelect scrolldown={true} value={target} onChange={(v) => setTarget(v)} disabled={busy}>\n\t\t\t\t\t\t\t\t{targets.map(target => <NekoOption value={target.value} label={target.label} />)}\n\t\t\t\t\t\t\t</NekoSelect>\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.LINK_REL}</NekoTypo>\n\t\t\t\t\t\t\t<NekoInput disabled={busy} onInput={(e) => setRel(e.target.value)} value={rel} />\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.ARIAL_LABEL}</NekoTypo>\n\t\t\t\t\t\t\t<NekoInput disabled={busy} onInput={(e) => setAria(e.target.value)} value={aria} />\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\tonOkClick={onOkClick}\n\t\t\t\tonCancelClick={onCloseModal}\n\t\t\t/>\n\t\t</>\n\t);\n};\n\nexport default EditLinkField;","// React & Vendor Libs\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\n// Gallery Custom Links\nimport Settings from '@app/components/Settings';\nimport EditLinkField from '@app/components/EditLinkField';\n\nlet isMediaLibrary = null;\n\nfunction init() {\n\tisMediaLibrary = document.getElementsByClassName('upload-php')[0];\n}\n\n// Gallery Custom Links Settings\nfunction addSettings() {\n\tconst container = document.getElementById('mgcl-admin-settings');\n\tif (container) {\n\t\tReactDOM.render((<Settings />), container);\n\t\treturn true;\n\t}\n\treturn false;\n}\n\ndocument.addEventListener('DOMContentLoaded', function(event) {\n\n\tinit();\n\n\tif (addSettings() || !isMediaLibrary) {\n\t\treturn;\n\t}\n\n\t// Edit Link Fields need to be added in the Media Library\n\tconst fields = Array.from(document.getElementsByClassName('mgcl-edit-link-field'));\n\tfields.forEach(field => {\n\t\tconst postId = field.getAttribute('data-post-id');\n\t\tconst url = field.getAttribute('data-url');\n\t\tconst target = field.getAttribute('data-target');\n\t\tconst rel = field.getAttribute('data-rel');\n\t\tconst aria = field.getAttribute('data-aria');\n\t\tReactDOM.render((<EditLinkField postId={postId} url={url} target={target} rel={rel} aria={aria} />), field);\n\t});\n\n});\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"React\"","webpack:///external \"ReactDOM\"","webpack:///../neko-ui/src/common/NekoBusyOverlay.js","webpack:///../neko-ui/src/common/NekoTheme.js","webpack:///../neko-ui/src/misc/Spinner.js","webpack:///../neko-ui/src/common/PresetIcons.js","webpack:///../neko-ui/src/hooks.js","webpack:///../neko-ui/src/misc/Tooltip.js","webpack:///../neko-ui/src/misc/Icon.js","webpack:///../neko-ui/src/button/Button.js","webpack:///../neko-ui/src/label/ProOnly.js","webpack:///../neko-ui/src/button/MenuButton.js","webpack:///../neko-ui/src/container/Page.js","webpack:///../neko-ui/src/misc/Typography.js","webpack:///../neko-ui/src/container/Block.js","webpack:///../neko-ui/src/container/Container.js","webpack:///../neko-ui/src/container/Settings.js","webpack:///../neko-ui/src/container/Window.js","webpack:///../neko-ui/src/container/Wrapper.js","webpack:///../neko-ui/src/form/Checkbox.js","webpack:///../neko-ui/src/form/CheckboxGroup.js","webpack:///../neko-ui/src/form/Input.js","webpack:///../neko-ui/src/form/TextArea.js","webpack:///../neko-ui/src/form/Select.js","webpack:///../neko-ui/src/form/Form.js","webpack:///../neko-ui/src/form/Switch.js","webpack:///../neko-ui/src/misc/Finder.js","webpack:///../neko-ui/src/misc/Logo.js","webpack:///../neko-ui/src/misc/Progress.js","webpack:///../neko-ui/src/misc/Header.js","webpack:///../neko-ui/src/misc/Paging.js","webpack:///../neko-ui/src/misc/Links.js","webpack:///../neko-ui/src/misc/Gauge.js","webpack:///../neko-ui/src/misc/Message.js","webpack:///../neko-ui/src/misc/Upload.js","webpack:///../neko-ui/src/misc/UploadDropArea.js","webpack:///../neko-ui/src/misc/Calendar.js","webpack:///../neko-ui/src/modal/Modal.js","webpack:///../neko-ui/src/table/Table.js","webpack:///../neko-ui/src/modal/MediaLibraryModal.js","webpack:///../neko-ui/src/tabs/Tabs.js","webpack:///../neko-ui/src/tabs/SideTabs.js","webpack:///../neko-ui/src/toolbar/Toolbar.js","webpack:///../neko-ui/src/errors.js","webpack:///../neko-ui/src/helpers.js","webpack:///./app/js/settings.js","webpack:///./app/js/components/Settings.js","webpack:///./app/js/i18n.js","webpack:///./app/js/components/EditLinkField.js","webpack:///./app/js/index.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","0","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","React","ReactDOM","NekoBusyOverlay","props","spinner","busy","overlayStyle","useState","showLoader","setShowLoader","useEffect","timeout","setTimeout","clearTimeout","loader","Fragment","className","style","Boolean","jsx","propsForElement","undefined","position","children","propTypes","PropTypes","bool","isRequired","oneOfType","arrayOf","node","NekoColors","black","blackRGB","blue","blueRGB","deepBlue","finderBorder","lightBlue","lightGray","lightGray2","lightPurple","gray","green","darkGray","disabledForm","orange","overlay","red","redHighlight","header","proGray","progress","purple","tableGray","yellow","yellowRGB","white","whiteRGB","NekoColorTheme","danger","primary","secondary","success","NekoTheme","fontFamily","fontSizeH1","fontSizeH2","fontSizeText","fontSizeSmall","fontSizeSmallButton","lightShadow","StyledCircleSpinner","Styled","div","size","color","CircleSpinner","StyledNekoSpinner","type","rest","NekoSpinner","string","defaultProps","presetIcons","lockCheck","lockOpenVariant","fileUndo","chevronDoubleLeft","chevronDoubleRight","chevronLeft","chevronRight","chevronDown","chevronUp","pauseIcon","playIcon","replayIcon","checkIcon","stopIcon","deleteIcon","undoIcon","alertCircle","databaseIcon","toolsIcon","cogIcon","closeIcon","catIcon","arrowUpBoldCircleOutline","trashCan","leadPencil","viewDashboard","databaseSearch","folderIcon","folderOpen","imageMultipleOutline","plusIcon","folderPlus","imagePlus","viewGrid","formatListBulleted","twitterIcon","instagramIcon","facebookIcon","starIcon","timerOutline","linkVariant","linkedin","pinterest","zoomIn","infoOutline","arrowUp","arrowDown","sort","eye","rocketLaunch","calendarMonth","useComponentSize","ref","useRef","setSize","current","observer","ResizeObserver","entries","element","contentRect","width","left","right","height","top","bottom","observe","unobserve","useOutsideClick","onOutsideClick","componentRef","handleOutsideClick","e","contains","target","document","addEventListener","removeEventListener","PQueue","concurrency","autoStart","TooltipContainer","Tooltip","Theme","prop","visible","StyledNekoTooltip","text","show","setShow","tooltipRef","tooltipWidth","tooltipHeight","childRef","childWidth","childHeight","transformStyle","useMemo","transY","transX","transform","onMouseEnter","onMouseLeave","NekoTooltip","oneOf","StyledIconContainer","StyledIcon","Icon","hoverColor","lighten","StyledNekoIcon","icon","spinning","title","tooltip","containerStyle","disabled","raw","isBusy","getIcon","PresetIcons","iconClassName","onClick","NekoIcon","instanceOf","IconifyIcon","StyledButton","small","rounded","busyText","hideBusyIcon","hasIcon","iconWidth","base","classNames","marginLeft","marginRight","margin","additionalColor","NekoButton","func","Tag","a","Colors","StyledProOnly","href","ProOnly","MenuButtonWrapper","MenuButton","button","MenuItemContainer","StyledMenuButton","isPro","hideChevron","titleStyle","isOpen","setIsOpen","wrapperRef","buttonRef","buttonWidth","Children","map","child","cloneElement","MenuItem","StyledNekoMenuItem","requirePro","separator","needsProUser","NekoMenuButton","NekoMenuItem","Page","StyledNekoPage","nekoErrors","fatalError","setFatalError","showBody","setShowBody","error","url","code","message","body","dangerouslySetInnerHTML","__html","open","NekoPage","NekoH1","h1","NekoH2","h2","NekoP","NekoSpan","span","NekoLabel","label","StyledNekoTypo","NekoTypo","any","Block","StyledNekoBlock","action","NekoBlock","Container","Bar","StyledNekoContainer","headerAlign","footer","footerAlign","NekoContainer","StyledNekoSettings","contentAlign","NekoSettings","WindowBase","TitleBar","StyledNekoWindow","NekoWindow","Wrapper","Column","StyledNekoWrapper","StyledNekoColumn","full","minimal","NekoWrapper","NekoColumn","StyledNekoCheckbox","id","checked","onChange","description","showUpProOnly","isDisabled","disabledClass","join","stopPropagation","defaultChecked","htmlFor","console","log","checkboxBlankOutline","checkboxMarked","NekoCheckbox","StyledNekoCheckboxGroup","max","NekoCheckboxGroup","mas","number","StyledNekoInput","placeholder","onEnter","readOnly","step","min","maxLength","defaultMaxLength","natural","inputStyle","onCustomChange","onCustomBlur","onBlur","onReset","newValue","setNewValue","isControlled","onKeyPress","event","preventDefault","autoComplete","spellCheck","NekoInput","StyledNekoTextArea","avoidOnEnterWithShift","textAreaStyle","countable","count","setCount","pressShift","setPressShift","keydownFunction","useCallback","shiftKey","keyupFunction","substr","rows","NekoTextArea","Select","SelectedOption","Description","Options","OptionsContainer","StyledNekoSelect","scrolldown","chevronIconSize","currentOption","toArray","find","iconSize","showOptions","toggleOptions","onOptionClick","childrenLength","data-is-disabled","Math","RadioOption","SelectOption","StyledNekoOption","radioOption","recordCircle","checkboxBlankCircleOutline","selectOption","NekoSelect","NekoOption","Form","StyledNekoForm","NekoForm","StyledNekoSwitch","fontSize","onValue","offValue","onBackgroundColor","offBackgroundColor","onLabel","offLabel","onToggle","v","NekoSwitch","StyledNekoFinder","chevron","FinderTitleContainer","FinderTitle","ChevronSpace","FinderTitleIconDropZone","FinderTitleIconDroppableArea","ItemContainer","StyledNekoFinderItem","defaultIcons","gallery","tag","tagIcon","rightElement","rightElementStyle","showRightElement","selected","draggable","onDragStart","onDragOver","onDragEnd","onDrop","isExpanded","dragging","rightAction","rightActionOnHover","onDragLeave","isCustomizedIcon","preventClose","hasChild","expanded","setExpanded","keys","includes","setIcon","isFolder","showRightAction","setShowRightAction","iconColor","NekoFinder","NekoFinderItem","Logo","StyledNekoLogo","viewBox","fill","xmlns","stroke","strokeWidth","NekoLogo","StyledNekoProgress","status","ratio","parseFloat","ProgressCurrent","onPauseClick","paused","onStopClick","percent","isNaN","parseInt","round","typeOfStatus","minWidth","NekoProgress","HeaderBase","StyledNekoHeader","subtitle","saving","textDecoration","contentSave","NekoHeader","PagingContainer","StyledNekoPaging","currentPage","limit","total","onCurrentPageChanged","infinite","controllerText","isEditable","maxPage","ceil","prevIconClassName","nextIconClassName","showCurrentPageInput","setShowCurrentPageInput","onClickHandle","page","getValidPage","numberPage","Number","currentPageJsx","autoFocus","defaultValue","onControllerClick","currentTarget","NekoPaging","lastPage","LinkContainer","Link","variant","StyledNekoQuickLinks","isActive","StyledNekoLink","variantValue","display","NekoQuickLinks","NekoLink","StyledSection","section","backgroundColor","degrees","NekoGauge","background","class","StyledUpload","NekoUpload","multiple","onSuccess","onFailure","apiUrl","apiConfig","inDropZone","setInDropZone","floor","random","inputId","inputEl","divEl","setBusy","pointerEvents","uploadFile","files","upload","file","postFetch","Promise","all","response","successResponses","filter","failerResponses","onDragEnter","uploadFiles","accept","click","dataTransfer","StyledUploadDropArea","NekoUploadDropArea","forwardRef","onInputUpload","Days","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday","StyledNekoCalendar","CalendarHeaders","CalendarContent","WeekContainer","DayContainer","NekoCalendar","month","Date","getMonth","year","getFullYear","onEventClicked","onEventMoved","eventBuilder","events","draggedEvent","setDraggedEvent","highlightedDay","setHighlightedDay","disableDaysBefore","getDate","weeks","days","currentDate","weekDay","date","getDay","setDate","getFirstWeekDayForMonth","totalCalendarDays","startDate","endDate","start","end","numberOfDaysBetween","lastDate","array","chunkSize","chunks","splitArrayInChunks","day","week","today","isCurrentMonth","filterEvents","getTime","date1","date2","disableDaysAfter","NekoModalParent","NekoModalContent","StyledNekoModal","ok","cancel","customButtons","customButtonsPosition","content","contentWidth","onOkClick","onCancelClick","okOnEnter","thumbnail","customClassName","showCustomButtons","keyUpHandler","modalContent","ariaHideApp","parentSelector","getElementById","closeTimeoutMS","NekoModal","Table","table","TableCheckBox","intermediate","onSelect","onUnselect","checkboxMultipleMarked","alignToJustifyContent","center","StyledNekoTable","columns","selectedItems","onSortChange","sortIconColor","emptyMessage","columnsCount","getColumnStyle","column","align","textAlign","justifyContent","cells","accessor","currentRowsIds","x","areAllRowsSelected","isIntermediate","hiddenColumnIndexes","reduce","headersFooters","beingSorted","beingSortedAsc","by","columnStyle","sortable","flex","colspan","row","cell","NekoTable","removeClass","Array","forEach","getElementsByClassName","ele","classList","remove","displayModes","StyledNekoMediaLibraryModal","images","onRefresh","onNextPage","onPreviousPage","onRemoveClick","onZoomClick","onSearch","searchValue","onPageChange","multiSelect","showUploader","uploader","onSelectedOrderChanged","onUploadSuccess","onUploadFailure","uploadApiUrl","uploadApiConfig","uploadMultiple","onClose","onCancel","onSave","search","setSerch","dragImageIndex","setDragImageIndex","displayMode","setDisplayMode","getBoundingClientRect","clientX","add","currentIndex","afterIndex","selectedMediaJsx","dummyElementForDrop","selectedElement","image","src","zoom_src","mediaGridJsx","some","mediaRows","thumbnail_url","objectFit","filename","mediaListJsx","ids","cursor","NekoMediaLibraryModal","TabContainer","TabGroup","Tab","TabContent","StyledNekoTabs","isActiveTabIndex","setIsActiveTabIndex","childrenProp","keepTabOnReload","URL","location","searchParams","callOnTabChangeFirst","onTabClick","tabAttributes","searchTitle","decodeURIComponent","index","replaceAll","indexOf","toLowerCase","hidden","tabIndex","tabAttr","ev","history","pushState","URLSearchParams","encodeURIComponent","set","newUrl","protocol","host","pathname","toString","replaceState","path","keepTab","attr","StyledNekoTab","NekoTabs","NekoTab","StyledNekoSideTabs","activeTabIndex","rightActions","newTabIndex","StyledNekoSideTab","NekoSideTabs","NekoSideTab","ToolbarBase","StyledNekoToolbar","NekoToolbar","NekoError","debug","this","consolidateJsonResult","json","meta","JSON","parse","err","jsonFetcher","options","nekoError","rawBody","headers","fetch","config","signal","nonce","formData","FormData","append","method","stringify","mgcl_gallery_custom_links","prefix","domain","rest_url","replace","api_url","restNonce","plugin_url","is_pro","is_registered","rest_nonce","wp","Settings","swrAllSettingsKey","useSWR","swrSettings","mutateSwrSettings","mutate","swrData","defaultData","defaultBusy","setData","setError","setTotal","useHandleSWR","busySettings","settings","swrError","busyAction","setBusyAction","obmode","mgcl_obmode","parsingEngine","mgcl_parsing_engine","mgcl_log","buttonEnabled","mgcl_button_enabled","buttonLabel","mgcl_button_label","updateOption","newSettingsData","alert","jsxOBMode","jsxParsingEngine","option","jsxLog","jsxUseButtons","jsxButtonLabel","__","i18n","PENDING","RENAME","TITLE","SAME_PAGE","NEW_PAGE","LINK_URL","LINK_TARGET","LINK_REL","ARIAL_LABEL","targets","GroupContainer","EditLinkField","postId","setUrl","setTarget","rel","setRel","aria","setAria","openModal","setOpenModal","post_id","_gallery_link_url","_gallery_link_target","_gallery_link_rel","_gallery_link_aria","res","onCloseModal","onKeyDown","keyCode","onRequestClose","onInput","isMediaLibrary","container","render","from","field","getAttribute"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,E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B,IAAKA,EAAKE,KAAMA,IAAWmB","file":"index.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t0: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"wpJsonMgcl\"] = window[\"wpJsonMgcl\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([100,1]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","module.exports = React;","module.exports = ReactDOM;","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\n\nconst NekoBusyOverlay = (props) => {\n const { spinner = true, busy = false, overlayStyle } = props;\n const [ showLoader, setShowLoader ] = useState(true);\n\n useEffect(() => {\n let timeout;\n\n // Show the loader\n if (!busy) { \n timeout = setTimeout(() => { \n setShowLoader(false); \n timeout = null; \n }, 250);\n }\n else { \n setShowLoader(true);\n }\n\n // Cleanup\n return (() => {\n if (timeout) {\n clearTimeout(timeout);\n }\n });\n }, [busy]);\n\n const loader = !showLoader ? null : (\n <React.Fragment>\n <div className={'overlay' + ' ' + (!busy ? 'overlayHidden' : '')} style={overlayStyle}>\n {Boolean(spinner) && \n <div className={'lds-ellipsis ' + (!busy ? 'spinnerHidden' : '')}>\n <div></div><div></div><div></div><div></div>\n </div>\n }\n </div>\n <style jsx>{`\n .overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgb(30 124 186 / 85%);\n transition: opacity 1s ease-out;\n z-index: 10;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n }\n\n .overlayHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .spinnerHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .lds-ellipsis {\n position: relative;\n width: 80px;\n height: 80px;\n display: flex;\n justify-items: center;\n align-items: center;\n }\n .lds-ellipsis div {\n position: absolute;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: white;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n .lds-ellipsis div:nth-child(1) {\n left: 8px;\n animation: lds-ellipsis1 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(2) {\n left: 8px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(3) {\n left: 32px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(4) {\n left: 56px;\n animation: lds-ellipsis3 0.6s infinite;\n }\n @keyframes lds-ellipsis1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n }\n @keyframes lds-ellipsis3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n }\n @keyframes lds-ellipsis2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n } \n `}</style>\n </React.Fragment>\n );\n\n // I am removing the busy because I like it as a boolean...\n // ... but React doesn't like pure boolean value here.\n const propsForElement = { ...props, busy: undefined, spinner: undefined };\n return (\n <div style={{ position: 'relative' }} {...propsForElement}> \n {loader}\n {props.children}\n </div>\n );\n};\n\nNekoBusyOverlay.propTypes = {\n busy: PropTypes.bool.isRequired,\n spinner: PropTypes.bool,\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node\n ]).isRequired\n};\n\nexport default NekoBusyOverlay;","export const NekoColors = {\n black: '#000000',\n blackRGB: '0, 0, 0',\n blue: '#007cba',\n blueRGB: '0, 124, 186',\n deepBlue: '#134575',\n finderBorder: '#DEDEDE',\n lightBlue: '#EBF3FF',\n lightGray: '#cacaca',\n lightGray2: '#F5F5F5',\n lightPurple: '#D8B1FF',\n gray: '#E8E8E8',\n green: '#0EA480',\n darkGray: '#A0A0A0',\n disabledForm: '#828282',\n orange: '#daa827',\n overlay: 'rgba(16, 16, 16, 0.92)',\n red: '#ba4300',\n redHighlight: '#de5307',\n header: '#007cba',\n proGray: '#7F8EA0',\n progress: '#8414a8',\n purple: '#956DBE',\n tableGray: '#FAFAFA',\n yellow: '#e4b42b',\n yellowRGB: '224, 156, 54',\n white: '#ffffff',\n whiteRGB: '255, 255, 255',\n}\n\nexport const NekoColorTheme = {\n danger: NekoColors.red,\n primary: NekoColors.blue,\n secondary: NekoColors.lightBlue,\n success: NekoColors.green,\n}\n\nconst NekoTheme = {\n\n // COLORS\n ...NekoColors,\n ...NekoColorTheme,\n\n // FONT\n\n fontFamily: '-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif',\n fontSizeH1: '24px',\n fontSizeH2: '18px',\n fontSizeText: '13px',\n fontSizeSmall: '12px',\n fontSizeSmallButton: '10px',\n\n // SHADOW\n\n lightShadow: '0px 0px 10px rgba(0,0,0,0.1)',\n};\n\nexport default NekoTheme;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport Styled from \"styled-components\";\n\nconst StyledCircleSpinner = Styled.div`\n width: ${props => props.size || '50%'};\n padding-top: ${props => props.size || '50%'};\n position: relative;\n margin: 0 auto;\n\n .double-bounce1, .double-bounce2 {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: ${props => props.color || '#333'};\n opacity: 0.6;\n position: absolute;\n top: 0;\n left: 0;\n\n -webkit-animation: sk-bounce 2.0s infinite ease-in-out;\n animation: sk-bounce 2.0s infinite ease-in-out;\n }\n\n .double-bounce2 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s;\n }\n\n @-webkit-keyframes sk-bounce {\n 0%, 100% { -webkit-transform: scale(0.0) }\n 50% { -webkit-transform: scale(1.0) }\n }\n\n @keyframes sk-bounce {\n 0%, 100% {\n transform: scale(0.0);\n -webkit-transform: scale(0.0);\n } 50% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n }\n`;\n\nconst CircleSpinner = (props) => {\n return (\n <StyledCircleSpinner {...props}>\n <div className=\"double-bounce1\"></div>\n <div className=\"double-bounce2\"></div>\n </StyledCircleSpinner>\n );\n};\n\n/**\n * @param {string} (variant) Tag Name\n */\nconst StyledNekoSpinner = (props) => {\n const { type = 'circle', ...rest } = props;\n\n switch (type) {\n case 'circle':\n return <CircleSpinner {...rest} />\n\n default:\n return null;\n }\n};\n\nconst NekoSpinner = (props) => {\n return <StyledNekoSpinner {...props} />;\n};\n\nNekoSpinner.propTypes = {\n type: PropTypes.string,\n};\n\nNekoSpinner.defaultProps = {\n type: 'circle',\n};\n\nexport { NekoSpinner };\n","import lockCheck from '@iconify/icons-mdi/lock-check';\nimport lockOpenVariant from '@iconify/icons-mdi/lock-open-variant';\nimport fileUndo from '@iconify/icons-mdi/file-undo';\nimport chevronDoubleLeft from '@iconify/icons-mdi/chevron-double-left';\nimport chevronDoubleRight from '@iconify/icons-mdi/chevron-double-right';\nimport chevronLeft from '@iconify/icons-mdi/chevron-left';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronUp from '@iconify/icons-mdi/chevron-up';\nimport pauseIcon from '@iconify/icons-mdi/pause';\nimport playIcon from '@iconify/icons-mdi/play';\nimport replayIcon from '@iconify/icons-mdi/replay';\nimport checkIcon from '@iconify/icons-mdi/check';\nimport stopIcon from '@iconify/icons-mdi/stop';\nimport deleteIcon from '@iconify/icons-mdi/delete';\nimport undoIcon from '@iconify/icons-mdi/undo';\n//import alertIcon from '@iconify/icons-mdi/alert';\nimport alertCircle from '@iconify/icons-mdi/alert-circle';\nimport databaseIcon from '@iconify/icons-mdi/database';\nimport pencilIcon from '@iconify/icons-mdi/pencil';\nimport toolsIcon from '@iconify/icons-mdi/tools';\nimport cogIcon from '@iconify/icons-mdi/cog';\nimport closeIcon from '@iconify/icons-mdi/close';\nimport catIcon from '@iconify/icons-mdi/cat';\nimport trashCan from '@iconify/icons-mdi/trash-can';\nimport leadPencil from '@iconify/icons-mdi/lead-pencil';\nimport viewDashboard from '@iconify/icons-mdi/view-dashboard';\nimport databaseSearch from '@iconify/icons-mdi/database-search';\nimport folderIcon from '@iconify/icons-mdi/folder';\nimport folderOpen from '@iconify/icons-mdi/folder-open';\nimport imageMultipleOutline from '@iconify/icons-mdi/image-multiple-outline';\nimport plusIcon from '@iconify/icons-mdi/plus';\nimport folderPlus from '@iconify/icons-mdi/folder-plus';\nimport imagePlus from '@iconify/icons-mdi/image-plus';\nimport viewGrid from '@iconify/icons-mdi/view-grid';\nimport formatListBulleted from '@iconify/icons-mdi/format-list-bulleted';\nimport twitterIcon from '@iconify/icons-mdi/twitter';\nimport instagramIcon from '@iconify/icons-mdi/instagram';\nimport facebookIcon from '@iconify/icons-mdi/facebook';\nimport starIcon from '@iconify/icons-mdi/star';\nimport timerOutline from '@iconify/icons-mdi/timer-outline';\nimport arrowUpBoldCircleOutline from '@iconify/icons-mdi/arrow-up-bold-circle-outline';\nimport linkVariant from '@iconify/icons-mdi/link-variant';\nimport linkedin from '@iconify/icons-mdi/linkedin';\nimport pinterest from '@iconify/icons-mdi/pinterest';\nimport zoomIn from '@iconify/icons-mdi/zoom-in'\nimport infoOutline from '@iconify/icons-mdi/info-outline'\nimport arrowUp from '@iconify/icons-mdi/arrow-up'\nimport arrowDown from '@iconify/icons-mdi/arrow-down'\nimport sort from '@iconify/icons-mdi/sort'\nimport eye from '@iconify/icons-mdi/eye'\nimport rocketLaunch from '@iconify/icons-mdi/rocket-launch'\nimport calendarMonth from '@iconify/icons-mdi/calendar-month'\n\nconst presetIcons = {\n 'lock': lockCheck,\n 'lock-open': lockOpenVariant,\n 'file-undo': fileUndo,\n 'chevron-double-left': chevronDoubleLeft,\n 'chevron-double-right': chevronDoubleRight,\n 'chevron-left': chevronLeft,\n 'chevron-right': chevronRight,\n 'chevron-down': chevronDown,\n 'chevron-up': chevronUp,\n 'pause': pauseIcon,\n 'play': playIcon,\n 'replay': replayIcon,\n 'check': checkIcon,\n 'stop': stopIcon,\n 'delete': deleteIcon,\n 'undo': undoIcon,\n 'alert': alertCircle,\n 'database': databaseIcon,\n 'tools': toolsIcon,\n 'cog': cogIcon,\n 'close': closeIcon,\n 'cat': catIcon,\n 'upload': arrowUpBoldCircleOutline,\n 'trash': trashCan,\n 'pencil': leadPencil,\n 'dashboard': viewDashboard,\n 'search': databaseSearch,\n 'folder': folderIcon,\n 'folder-open': folderOpen,\n 'image-multiple-outline': imageMultipleOutline,\n 'plus': plusIcon,\n 'folder-plus': folderPlus,\n 'image-plus': imagePlus,\n 'view-grid': viewGrid,\n 'format-list-bulleted': formatListBulleted,\n 'twitter': twitterIcon,\n 'instagram': instagramIcon,\n 'facebook': facebookIcon,\n 'star': starIcon,\n 'timer-outline': timerOutline,\n 'link': linkVariant,\n 'linkedin': linkedin,\n 'pinterest': pinterest,\n 'zoom-in': zoomIn,\n 'info-outline': infoOutline,\n 'arrow-up': arrowUp,\n 'arrow-down': arrowDown,\n 'sort': sort,\n 'eye': eye,\n 'rocket-launch': rocketLaunch,\n 'calendar-month': calendarMonth,\n};\n\nexport default presetIcons;","import React, { useState, useRef, useEffect, useCallback } from 'react';\nimport PQueue from 'p-queue';\n\nconst useHandleSWR = (swrData = undefined, defaultData = null, defaultBusy = false) => {\n const [ data, setData ] = useState(defaultData);\n const [ error, setError ] = useState(null);\n const [ busy, setBusy ] = useState(defaultBusy);\n const [ total, setTotal ] = useState(0);\n\n useEffect(() => {\n if (swrData !== undefined) { \n if (swrData.success) {\n setError(null);\n setData(swrData.data);\n setTotal(swrData.total ? swrData.total : 0);\n }\n else {\n setError(swrData.error);\n }\n }\n setBusy(swrData === undefined);\n }, [ swrData ]);\n\n return { busy, data, total, error };\n}\n\n// Sometimes, we need to align or place elements depending on other dynamic elements.\n// This hook returns a ref (which should be assign to a component), and the size of\n// this element every time it changes.\n\nconst useComponentSize = () => {\n const ref = useRef();\n const [ size, setSize ] = useState({});\n\n useEffect(() => {\n if (ref && ref.current) {\n const observer = new ResizeObserver(entries => {\n let element = entries[0];\n if (element.contentRect) {\n setSize({ \n width: element.contentRect.left + element.contentRect.right, \n height: element.contentRect.top + element.contentRect.bottom \n });\n }\n });\n observer.observe(ref.current);\n return () => { observer.unobserve(ref.current); };\n }\n }, []);\n return { ref, width: size.width ? size.width : 0, height: size.height ? size.height : 0 };\n};\n\n// If a click is made outside the component, then the function onOutsideClick is called.\n// This function returns a ref which needs to be assigned to the component.\n\nconst useOutsideClick = (onOutsideClick) => {\n const componentRef = useRef();\n const handleOutsideClick = (e) => {\n if (!onOutsideClick || componentRef.current.contains(e.target)) {\n return;\n }\n onOutsideClick();\n };\n useEffect(() => {\n document.addEventListener(\"mousedown\", handleOutsideClick);\n return () => { document.removeEventListener(\"mousedown\", handleOutsideClick); };\n });\n return componentRef;\n};\n\n\n// This hook allows calling many requests without having too many of them\n// running concurrently.\n\nlet GlobalQueue = null;\n\nconst useNekoGlobalQueue = (params = {}) => {\n\n if (!GlobalQueue) {\n let { concurrency = 2 } = params;\n GlobalQueue = new PQueue({ concurrency, autoStart: true });\n }\n\n const runTask = async (func) => {\n return await GlobalQueue.add(func);\n }\n\n return { runTask };\n};\n\n// This hook handles batch of asynchronous requests, and provide everything\n// the NekoProgress might need.\n\nconst isDebug = true;\nconst UploadQueue = new PQueue({ concurrency: 1, autoStart: false });\n\nconst useNekoTasks = () => {\n\n // We should be able to kill fetch requests using this\n // Interesting article: https://davidwalsh.name/cancel-fetch\n const [ controller, setController ] = useState(new AbortController());\n const refSkip = useRef(false);\n const refErrors = useRef(0);\n const refCurrentTask = useRef(null);\n const [ busy, setBusy ] = useState(null);\n const [ paused, setPaused ] = useState(false);\n const [ max, setMax ] = useState(0);\n const [ error, setError ] = useState(false);\n const [ success, setSuccess ] = useState(false);\n const [ value, setValue ] = useState(0);\n\n const reset = async () => {\n let newController = new AbortController();\n setController(newController);\n setError(false);\n refErrors.current = 0;\n refSkip.current = false;\n setPaused(false);\n setSuccess(false);\n setValue(0);\n setMax(0);\n };\n\n const start = async (tasks) => {\n const runnerPromise = new Promise((resolve, reject) => {\n setError(false);\n refErrors.current = 0;\n refSkip.current = false;\n setPaused(false);\n setSuccess(false);\n setTasks(tasks);\n setBusy(true);\n if (isDebug) { console.log('[useNekoTasks] Start.'); }\n UploadQueue.start();\n UploadQueue.onIdle().then(() => {\n onIdle();\n resolve();\n }); \n });\n return runnerPromise;\n };\n\n const pause = async () => {\n if (isDebug) { console.log('[useNekoTasks] Pause.'); }\n UploadQueue.pause();\n setPaused(true);\n };\n\n const resume = async () => {\n if (isDebug) { console.log('[useNekoTasks] Resume.'); }\n setError(false);\n setPaused(false);\n UploadQueue.start();\n };\n\n const retry = async () => {\n if (isDebug) { console.log('[useNekoTasks] Retrying.'); }\n setError(false);\n setPaused(false);\n if (refCurrentTask.current) {\n await executeTask(refCurrentTask.current, true);\n }\n //UploadQueue.start();\n };\n\n const stop = async () => {\n if (isDebug) { console.log('[useNekoTasks] Cancel.'); }\n UploadQueue.pause();\n controller.abort();\n setBusy(false);\n setError(false);\n setSuccess(false);\n };\n\n const onIdle = async () => {\n if (isDebug) { console.log('[useNekoTasks] onIdle.'); }\n setSuccess(true);\n setBusy(false);\n };\n\n const executeTask = async(task, isRetry = false) => {\n try {\n if (isRetry) {\n refErrors.current--;\n setValue(value => value - 1);\n }\n refCurrentTask.current = task;\n let res = await task(controller.signal);\n if (!res || !res.success) {\n console.error('[useNekoTasks] The function for that task did not return anything.', res);\n }\n if (!res.success) {\n refErrors.current++;\n if (!refSkip.current) {\n setError(res.error);\n pause();\n }\n }\n // If we are retrying a task and it is successful, we should restart PQueue\n else if (isRetry) {\n UploadQueue.start();\n }\n }\n catch (err) {\n if (err.name === 'AbortError') {\n console.log('[useNekoTasks] Aborted');\n return;\n }\n else {\n refErrors.current++;\n if (!refSkip.current) {\n setError(\"[useNekoTasks] An error was caught (more information in the console).\");\n pause();\n }\n }\n }\n finally {\n setValue(value => value + 1);\n }\n }\n\n const addTask = async (task) => {\n UploadQueue.add(async () => executeTask(task));\n setMax(max => max + 1);\n }\n\n const setTasks = async (tasks) => {\n UploadQueue.clear();\n for (let task of tasks) {\n addTask(task);\n }\n setValue(0);\n };\n\n const setAlwaysSkip = useCallback((value = true) => {\n refSkip.current = true;\n }, []);\n\n const getErrorCount = useCallback(() => {\n return refErrors.current;\n }, []);\n\n return { start, stop, pause, resume, reset, retry,\n addTask, setAlwaysSkip, getErrorCount,\n error, success, busy, paused, value, max };\n};\n\nconst useKeyboardEvent = () => {\n\tconst [ pressShift, setPressShift ] = useState(false);\n const [ pressControl, setPressControl ] = useState(false);\n\n\tconst keydownFunction = useCallback((e) => {\n\t\tsetPressShift(e.shiftKey);\n setPressControl(e.ctrlKey || e.metaKey);\n\t}, []);\n\tconst keyupFunction = useCallback(() => {\n\t\tsetPressShift(false);\n setPressControl(false);\n\t}, []);\n\n\tuseEffect(() => {\n\t\tdocument.addEventListener(\"keydown\", keydownFunction, false);\n\t\tdocument.addEventListener(\"keyup\", keyupFunction, false);\n\n\t\treturn () => {\n\t\tdocument.removeEventListener(\"keydown\", keydownFunction, false);\n\t\tdocument.removeEventListener(\"keyup\", keyupFunction, false);\n\t\t}\n\t}, []);\n\n\treturn { pressShift, pressControl };\n}\n\nexport { useHandleSWR, useOutsideClick, useNekoGlobalQueue, useNekoTasks, useComponentSize, useKeyboardEvent };","import React, { useState, useCallback, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nimport { useComponentSize } from '../hooks';\nimport Theme from '../common/NekoTheme';\n\nconst TooltipContainer = Styled.div`\n\tdisplay: flex;\n`;\n\nconst Tooltip = Styled.div`\n\tbackground-color: rgba(${Theme.blackRGB}, 0.8);\n\tborder-radius: 4px;\n\tcolor: ${Theme.white};\n\tfont-family: ${Theme.fontFamily};\n\tfont-weight: normal;\n\tmin-width: 180px;\n\tmax-width: 280px;\n\tfont-size: ${Theme.fontSizeText};\n\tpadding: 8px 12px;\n\tposition: absolute;\n \tmax-width: 280px;\n\tword-break: break-word;\n\tdisplay: ${prop => prop.visible ? 'inline-block' : 'none'};\n\tz-index: 100;\n\n\t&:before {\n\t\tcontent: \"\";\n\t\tposition: absolute;\n\t\tborder: 4px solid transparent;\n\t}\n\n\t&.top {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\tborder-top: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t&.left {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tright: -8px;\n\t\t\tborder-left: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t&.right {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tleft: -8px;\n\t\t\tborder-right: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t&.bottom {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: -8px;\n\t\t\tleft: 50%;\n\t\t\tborder-bottom: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t${prop => prop.style}\n`;\n\n/**\n * @param {string} (variant) Tag Name\n */\nconst StyledNekoTooltip = props => {\n\tconst { text = 'Hello world!', position = 'top' } = props;\n\tconst [ show, setShow ] = useState(false);\n\tconst { ref: tooltipRef, width: tooltipWidth, height: tooltipHeight } = useComponentSize();\n\tconst { ref: childRef, width: childWidth, height: childHeight } = useComponentSize();\n\n\tconst transformStyle = useMemo(() => {\n\t\tconst pointerSize = 5;\n\t\tlet transY = 0;\n\t\tlet transX = 0;\n\n\t\tif (position === 'top') {\n\t\t\ttransY = -1 * tooltipHeight - pointerSize;\n\t\t\ttransX = -1 * (tooltipWidth / 2) + (childWidth / 2);\n\t\t}\n\t\telse if (position === 'bottom') {\n\t\t\ttransY = childHeight + pointerSize;\n\t\t\ttransX = -1 * (tooltipWidth / 2) + (childWidth / 2);\n\t\t}\n\t\telse if (position === 'left') {\n\t\t\tconst diff = tooltipHeight - childHeight;\n\t\t\ttransY = -1 * (diff / 2);\n\t\t\ttransX = -1 * tooltipWidth - pointerSize;\n\t\t}\n\t\telse if (position === 'right') {\n\t\t\tconst diff = tooltipHeight - childHeight;\n\t\t\ttransY = -1 * (diff / 2);\n\t\t\ttransX = childWidth + pointerSize;\n\t\t}\n\t\t\n\t\treturn { \n\t\t\ttransform: `translateX(${transX}px) translateY(${transY}px)`\n\t\t};\n\n\t}, [position, tooltipWidth, tooltipHeight, childWidth, childHeight])\n\n\treturn (\n\t\t<TooltipContainer>\n\t\t\t<Tooltip ref={tooltipRef} visible={show} className={position} style={transformStyle}>\n\t\t\t\t{text}\n\t\t\t</Tooltip>\n\t\t\t<div ref={childRef} onMouseEnter={() => text && setShow(true)} onMouseLeave={() => setShow(false)}>\n\t\t\t\t{props.children}\n\t\t\t</div>\n\t\t</TooltipContainer>\n\t);\n};\n\nconst NekoTooltip = (props) => {\n return (<StyledNekoTooltip {...props} />);\n}\n\nNekoTooltip.propTypes = {\n\ttext: PropTypes.string,\n\tposition: PropTypes.oneOf(['top', 'right', 'bottom', 'left'])\n};\n\nNekoTooltip.defaultProps = {\n\ttext: 'Hello world!',\n\tposition: 'top'\n};\n\nexport { NekoTooltip };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport { Icon, IconifyIcon } from '@iconify/react';\n\nimport PresetIcons from '../common/PresetIcons';\nimport { NekoTooltip } from './Tooltip';\n\nconst StyledIconContainer = Styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst hoverColor = (color, hoverColor) => {\n if (hoverColor) {\n return `\n &:hover {\n path {\n fill: ${hoverColor};\n }\n }\n `;\n }\n if (color) {\n return `\n &:hover {\n path {\n fill: ${lighten(0.1, color)};\n }\n }\n `;\n }\n};\n\nconst StyledIcon = Styled(Icon)`\n\n path {\n fill: ${props => props.color};\n }\n\n ${props => hoverColor(props.color, props.hoverColor)}\n\n &.nui-clickable {\n cursor: pointer;\n }\n\n &.spin {\n animation-name: spin;\n animation-duration: 700ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n\n @keyframes spin {\n 0% {\n transform: rotate(360deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n }\n }\n\n &.busy {\n animation: crescendo 0.4s alternate infinite;\n @keyframes crescendo {\n 0% {transform: scale(.65);}\n 100% {transform: scale(1);}\n }\n }\n\n &.disabled {\n pointer-events: none;\n opacity: 0.35;\n cursor: default;\n }\n`;\n\nconst StyledNekoIcon = props => {\n\n let { icon, spinning = false, className = '', title, tooltip, containerStyle, color, hoverColor,\n disabled = false, raw, isBusy = false, ...rest } = props;\n\n if (!rest.width && !rest.height) {\n rest.width = rest.height = 30;\n }\n\n const getIcon = () => {\n if (typeof icon === 'string') {\n return PresetIcons[icon] || null;\n }\n return icon;\n };\n\n const iconClassName = `nui-icon ${className}${rest.onClick ? ' nui-clickable' : ''}${spinning ? ' spin' : ''}${disabled ? ' disabled' : ''}${isBusy ? ' busy' : ''}`;\n\n if (tooltip) {\n return (\n <NekoTooltip text={tooltip.text} position={tooltip.position || 'top'}>\n <StyledIconContainer style={containerStyle}>\n <StyledIcon icon={getIcon()} className={iconClassName} color={color} hoverColor={hoverColor} {...rest}/>\n </StyledIconContainer>\n </NekoTooltip>\n );\n }\n\n if (raw) {\n return <StyledIcon icon={getIcon()} className={iconClassName} color={color} hoverColor={hoverColor} {...rest} />\n }\n\n return (\n <StyledIconContainer style={containerStyle} title={title}>\n <StyledIcon icon={getIcon()} className={iconClassName} color={color} hoverColor={hoverColor} {...rest} />\n {!tooltip ? null : <NekoTooltip>{tooltip}</NekoTooltip>}\n </StyledIconContainer>\n );\n};\n\nconst NekoIcon = (props) => {\n return (<StyledNekoIcon {...props} />);\n};\n\nNekoIcon.propTypes = {\n icon: PropTypes.oneOfType([PropTypes.instanceOf(IconifyIcon), PropTypes.oneOf(['lock' ,'lock-open' ,'file-undo' ,'chevron-double-left' ,'chevron-double-right' ,'chevron-left' ,'chevron-right' ,'chevron-down' ,'chevron-up' ,'pause' ,'play' ,'replay' ,'check' ,'stop' ,'delete' ,'undo' ,'alert' ,'database' ,'pencil' ,'tools' ,'cog' ,'close' ,'cat' ,'upload'])]),\n color: PropTypes.string,\n spinning: PropTypes.bool,\n className: PropTypes.string,\n tooltip: PropTypes.string,\n raw: PropTypes.bool,\n isBusy: PropTypes.bool,\n};\n\nNekoIcon.defaultProps = {\n icon: undefined,\n color: undefined,\n spinning: false,\n className: '',\n tooltip: undefined,\n raw: undefined,\n isBusy: false,\n};\n\nexport { NekoIcon };\n","import React, { useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport Theme from '../common/NekoTheme';\nimport { IconifyIcon } from '@iconify/react';\nimport { NekoSpinner } from '../misc/Spinner';\nimport { NekoIcon } from '../misc/Icon';\n\nconst StyledButton = Styled(props => {\n\n const { className, icon = null, onClick, disabled = false, color = null, small, isBusy = false, width, height,\n children, rounded, busyText, spinning = false, hideBusyIcon = false, ...rest } = props;\n const hasIcon = !!icon;\n const iconWidth = useMemo(() => {\n const base = width ?? 30;\n return rounded ? base - 10 : base - 6;\n }, [width, rounded]);\n\n const classNames = `nui-button ${className || ''}${hasIcon ? ' has-icon' : ''}${color ? ' custom-color' : ''}${small ? ' small' : ''}${rounded ? ' rounded' : ''}${isBusy ? ' busy' : ''}`;\n\n return (\n <button type=\"button\" className={classNames} onClick={onClick} disabled={disabled} {...rest}>\n {isBusy && !hideBusyIcon && !hasIcon && <NekoSpinner type=\"circle\" color=\"#fff\" size={rounded ? '82%' : '35%'} />}\n {isBusy && !!busyText && <span style={{ marginLeft: hideBusyIcon ? 0 : '4px', marginRight: '2xp' }}>{busyText}</span>}\n {hasIcon && <NekoIcon icon={icon} width={iconWidth} height={iconWidth} spinning={spinning} raw style={ rounded ? { margin: '0 auto' } : {}} />}\n {!!children && !isBusy && <span style={{ marginLeft: hasIcon ? '4px' : 0, marginRight: hasIcon ? '2xp' : 0 }}>{children}</span>}\n </button>\n );\n})`\n display: inline-block;\n box-sizing: border-box;\n height: 30px;\n min-height: 30px;\n min-width: 6em;\n border: none;\n border-radius: 4px;\n text-align: center;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n padding: 0 15px;\n\n background-color: ${Theme.blue};\n color: white;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.has-icon {\n align-items: center;\n display: inline-flex;\n padding: 2.5px 8px;\n }\n\n &.secondary {\n background-color: ${Theme.lightBlue};\n border: 1px solid ${Theme.blue};\n color: ${Theme.blue};\n\n &:hover {\n background-color: ${lighten(0.1, Theme.lightBlue)};\n }\n }\n\n &.danger {\n background-color: ${Theme.red};\n border-color: ${Theme.red};\n\n\t &:hover {\n\t\t background-color: ${lighten(0.1, Theme.red)};\n\t }\n }\n\n &.success {\n background-color: ${Theme.green};\n border-color: ${Theme.green};\n\n\t &:hover {\n\t\t background-color: ${lighten(0.1, Theme.green)};\n\t }\n }\n\n & + button {\n margin-left: .25rem;\n }\n\n &.small {\n font-size: ${Theme.fontSizeSmallButton};\n height: 24px;\n }\n\n &.header {\n background-color: ${Theme.deepBlue};\n border-color: ${Theme.deepBlue};\n height: 40px;\n padding: 0 20px;\n\n\t &:hover {\n\t\t background-color: ${lighten(0.1, Theme.deepBlue)};\n\t }\n }\n\n &.rounded {\n border-radius: 100%;\n min-width: 30px;\n height: ${props => props.height ?? (props.width ?? 30)}px;\n width: ${props => props.width ?? 30}px;\n padding: 3px;\n }\n\n &.busy {\n pointer-events: none;\n }\n\n ${props => additionalColor(props.color)}\n`;\n\nconst additionalColor = (color) => {\n if (color) {\n return `\n &.custom-color {\n background-color: ${color};\n border: 1px solid ${color};\n\n &:hover {\n background-color: ${lighten(0.1, color)};\n }\n }\n `;\n }\n};\n\n/**\n * The NekoButton works out of the box without specific attributes.\n */\nconst NekoButton = (props) => {\n return (<StyledButton {...props} />);\n};\n\nNekoButton.propTypes = {\n className: PropTypes.oneOf(['primary', 'secondary', 'danger', 'success', 'header']),\n disabled: PropTypes.bool,\n icon: PropTypes.oneOfType([PropTypes.instanceOf(IconifyIcon), PropTypes.oneOf(['setting', 'edit', 'trash'])]),\n color: PropTypes.string,\n onClick: PropTypes.func.isRequired,\n rounded: PropTypes.bool,\n isBusy: PropTypes.bool,\n spinning: PropTypes.bool,\n busyText: PropTypes.string,\n hideBusyIcon: PropTypes.bool,\n};\n\nNekoButton.defaultProps = {\n className: 'primary',\n disabled: false,\n icon: null,\n color: null,\n onClick: () => {},\n rounded: undefined,\n isBusy: false,\n spinning: false,\n busyText: undefined,\n hideBusyIcon: false,\n};\n\nexport { NekoButton };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Colors from '../common/NekoTheme';\nimport Theme from '../common/NekoTheme';\n\nconst Tag = Styled.a`\n background-color: ${Colors.yellow};\n position: relative;\n border-radius: 10px;\n color: ${Colors.white};\n font-family: ${Theme.fontFamily};\n font-size: 9px;\n line-height: 10px;\n padding: 5px 8px;\n text-transform: uppercase;\n text-decoration: none;\n\n &:hover {\n color: ${Colors.white};\n background-color: #f78c1f;\n }\n\n &.inline {\n display: inline;\n margin-left: 5px;\n vertical-align: middle;\n }\n`;\n\n/**\n * @param {string} className\n * @param {string|object} icon\n * @param {bool} disabled\n * @param {function} onClick\n */\nconst StyledProOnly = (props) => {\n\n const { show = true, className, ...rest } = props;\n\n if (!show) {\n return null;\n }\n\n return (\n <Tag href='https://store.meowapps.com' target='_blank' className={`${className || ''}`} {...rest}>\n Pro Only\n </Tag>\n );\n};\n\nconst ProOnly = (props) => {\n return (<StyledProOnly {...props} />);\n}\n\nProOnly.propTypes = {\n show: PropTypes.bool,\n className: PropTypes.string\n};\n\nProOnly.defaultProps = {\n show: true,\n className: undefined\n};\n\nexport { ProOnly };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { Icon } from '@iconify/react';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport { useOutsideClick, useComponentSize } from '../hooks';\n\nconst MenuButtonWrapper = Styled.div`\n display: inline-block;\n`;\n\nconst MenuButton = Styled.button`\n align-items: center;\n background-color: ${Theme.blue};\n border: none;\n border-radius: 4px;\n box-sizing: border-box;\n color: white;\n display: inline-flex;\n justify-content: space-between;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n height: 30px;\n min-width: 6em;\n padding: 0px 10px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n & + button {\n margin-left: .25rem;\n }\n`;\n\nconst MenuItemContainer = Styled.div`\n position: relative;\n display: block;\n margin-top: 18px;\n background-color: ${Theme.blue};\n position: absolute;\n z-index: 10;\n box-shadow: ${Theme.lightShadow};\n\n &:before {\n content: \"\";\n position: absolute;\n top: -18px;\n left: 50%;\n margin-left: -8px;\n border: 8px solid transparent;\n border-bottom: 10px solid ${Theme.blue};\n }\n`;\n\nconst StyledMenuButton = props => {\n\n const { title, disabled = false, isPro = false, style = {}, hideChevron, titleStyle = {} } = props;\n const [ isOpen, setIsOpen ] = React.useState(false);\n const wrapperRef = useOutsideClick(() => { setIsOpen(false) });\n const { ref: buttonRef, width: buttonWidth } = useComponentSize();\n\n const onClick = () => {\n setIsOpen(!isOpen);\n }\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n isPro,\n disabled: child.props.disabled || disabled,\n onClick: () => {\n if (child.props.onClick) {\n child.props.onClick();\n }\n onClick();\n }\n });\n });\n\n return (\n <MenuButtonWrapper ref={wrapperRef}>\n <MenuButton ref={buttonRef} type=\"button\" disabled={disabled} onClick={onClick} style={style}>\n <span style={titleStyle}>{title}</span>\n {!hideChevron && <Icon icon={chevronDown} width=\"24\" height=\"24\" style={{ marginLeft: '4px' }} />}\n </MenuButton>\n {isOpen &&\n <MenuItemContainer style={{ transform: `translateX(calc(-50% + ${buttonWidth / 2}px))` }}>\n {children}\n </MenuItemContainer>\n }\n </MenuButtonWrapper>\n );\n};\n\nconst MenuItem = Styled.button`\n align-items: center;\n background-color: ${Theme.blue};\n border: none;\n box-sizing: border-box;\n color: white;\n display: flex;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n width: 100%;\n padding: 8px 15px 8px 15px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n :disabled:not(.is-pro) {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.is-pro {\n background-color: ${Theme.proGray};\n justify-content: space-between;\n }\n\n &.separator {\n border-top: 1px solid ${Theme.white};\n font-size: 10px;\n padding: 5px;\n }\n`;\n\nconst StyledNekoMenuItem = props => {\n\n const { onClick, children, isPro, requirePro = false, disabled, separator } = props;\n const needsProUser = requirePro && !isPro;\n\n return (\n <MenuItem type=\"button\" className={`${needsProUser? 'is-pro' : ''} ${separator ? 'separator' : ''}`} onClick={onClick} disabled={disabled || needsProUser}>\n <span>{children}</span>\n {needsProUser && !isPro && <ProOnly />}\n </MenuItem>\n );\n};\n\n/**\n * The NekoMenuButton works out of the box without specific attributes.\n */\nconst NekoMenuButton = (props) => {\n return (<StyledMenuButton {...props} />);\n}\nconst NekoMenuItem = (props) => {\n return (<StyledNekoMenuItem {...props} />);\n}\n\nNekoMenuButton.propTypes = {\n title: PropTypes.string,\n disabled: PropTypes.bool,\n isPro: PropTypes.bool,\n hideChevron: PropTypes.bool,\n style: PropTypes.object,\n titleStyle: PropTypes.object,\n};\n\nNekoMenuButton.defaultProps = {\n title: undefined,\n disabled: false,\n isPro: false,\n hideChevron: undefined,\n style: {},\n titleStyle: {},\n};\n\nNekoMenuItem.propTypes = {\n onClick: PropTypes.func.isRequired,\n requirePro: PropTypes.bool,\n separator: PropTypes.bool,\n};\n\nNekoMenuItem.defaultProps = {\n onClick: () => {},\n requirePro: false,\n separator: undefined,\n};\n\nexport { NekoMenuButton, NekoMenuItem };\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoButton } from '../button/Button';\n\nconst Page = Styled.div`\n position: relative;\n background: #f1f1f1;\n margin-left: -20px;\n background-color: rgb(30 124 186 / 10%);\n padding-bottom: 50px;\n margin-bottom: -26px;\n\n .neko-rest-error {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: #1e232deb;\n z-index: 100;\n\n .container {\n color: white;\n padding: 5px 20px 15px 20px;\n min-width: 480px;\n max-width: 600px;\n border-radius: 20px;\n background: #883131;\n margin-left: 50%;\n transform: translateX(-50%);\n margin-top: 100px;\n\n h3 {\n color: white;\n }\n\n .neko-debug {\n padding: 5px 10px;\n background: #692426;\n border-radius: 10px;\n\n * {\n margin: 0px;\n padding: 0px;\n } \n }\n }\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoPage = props => {\n\n const { className, children, nekoErrors = [], style = {} } = props;\n const [ fatalError, setFatalError ] = useState(false);\n const [ showBody, setShowBody ] = useState(false);\n\n if (nekoErrors && !fatalError) {\n for (let error of nekoErrors) {\n if (error) {\n setFatalError(error);\n break\n }\n }\n }\n\n return (\n <Page className={className || ''} style={style}>\n {fatalError && \n <div className='neko-rest-error'>\n <div className='container'>\n {!showBody &&\n <>\n <h3>The Rest API is disabled or broken 😢</h3>\n <p>The Rest API is required for this plugin to work. It is enabled in WordPress by default since December 2016 and used by the Gutenberg Editor since 2019. In short, it allows more robustness and a much cleaner infrastructure. Soon, Wordpress will entirely depends on it, so it is important to keep it enabled.</p>\n <p><i>Last but not least: check your PHP Error Logs and your Debugging Console.</i></p>\n <p className='neko-debug'>\n <small>\n URL: {fatalError.url}<br />\n CODE: {fatalError.code}<br />\n MESSAGE: {fatalError.message}<br />\n </small>\n </p>\n </>\n }\n {fatalError.body && showBody &&\n <p className='neko-debug'>\n <div dangerouslySetInnerHTML={{ __html: fatalError.body }}></div>\n </p>\n }\n {fatalError.body &&\n <NekoButton color=\"#a94242\" onClick={() => setShowBody(!showBody)}>\n {showBody ? 'Hide' : 'Display'} response from server\n </NekoButton>\n }\n <NekoButton color=\"#a94242\" onClick={() => { window.open('https://meowapps.com/fix-wordpress-rest-api/', '_blank') }}>\n Learn about WordPress Debugging\n </NekoButton>\n </div>\n </div>}\n {children}\n </Page>\n );\n};\n\nconst NekoPage = (props) => {\n return (<StyledNekoPage {...props} />);\n};\n\nNekoPage.propTypes = {\n className: PropTypes.string,\n style: PropTypes.object,\n nekoErrors: PropTypes.bool\n};\n\nNekoPage.defaultProps = {\n className: undefined,\n style: {},\n nekoErrors: false\n};\n\nexport { NekoPage };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nimport Theme from '../common/NekoTheme';\n\nconst NekoH1 = Styled.h1`\n font-family: ${Theme.fontFamily};\n font-weight: normal;\n font-size: ${Theme.fontSizeH1};\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n`;\n\nconst NekoH2 = Styled.h2`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeH2};\n font-weight: normal;\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n`;\n\nconst NekoP = Styled.p`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n line-height: normal;\n margin: 16px 0 24px;\n padding: 0;\n`;\n\nconst NekoSpan = Styled.span`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n line-height: normal;\n margin: 0;\n padding: 0;\n`;\n\nconst NekoLabel = Styled.label`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n line-height: normal;\n margin: 0;\n padding: 0;\n`;\n\n/**\n * @param {string} (variant) Tag Name\n */\nconst StyledNekoTypo = props => {\n const { children, ...rest } = props;\n\n return (\n props.h1 ? <NekoH1 {...rest}>{children}</NekoH1>\n : props.h2 ? <NekoH2 {...rest}>{children}</NekoH2>\n : props.p ? <NekoP {...rest}>{children}</NekoP>\n : props.label ? <NekoLabel {...rest}>{children}</NekoLabel>\n : <NekoSpan {...rest}>{children}</NekoSpan>\n );\n};\n\nconst NekoTypo = (props) => {\n return (<StyledNekoTypo {...props} />);\n}\n\nNekoTypo.propTypes = {\n h1: PropTypes.any,\n h2: PropTypes.any,\n p: PropTypes.any\n};\n\nNekoTypo.defaultProps = {\n h1: undefined,\n h2: undefined,\n p: undefined\n};\n\nexport { NekoTypo };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoTypo } from '../misc/Typography';\nimport NekoBusyOverlay from '../common/NekoBusyOverlay';\n\nconst Block = Styled.div`\n font-size: ${Theme.fontSizeText};\n margin-bottom: 15px;\n\n .nui-block-header {\n display: flex;\n justify-content: space-between;\n }\n\n .nui-block-title {\n color: ${Theme.blue};\n padding: 5px 10px;\n margin-bottom: 5px;\n }\n\n .nui-block-content {\n background-color: #f1f1f1;\n padding: 26px;\n box-shadow: 0px 2px 5px 0px #0000004a;\n border-radius: 10px;\n\n p:first-child {\n margin-top: 0;\n }\n\n p:last-child {\n margin-bottom: 0;\n }\n }\n\n &.primary {\n padding: 8px;\n background-color: ${Theme.blue};\n\n .nui-block-title {\n color: ${Theme.white};\n }\n\n .nui-block-content {\n background-color: ${Theme.white};\n }\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoBlock = props => {\n\n const { title, children, className, busy = false, style = {}, action } = props;\n\n return (\n <Block className={'nui-block ' + (className || '')} style={style}>\n <NekoBusyOverlay busy={busy}>\n <div className=\"nui-block-header\">\n <NekoTypo h2 className=\"nui-block-title\">{title}</NekoTypo>\n {!!action && action}\n </div>\n <div className=\"nui-block-content\">\n {children}\n </div>\n </NekoBusyOverlay>\n </Block>\n );\n};\n\nconst NekoBlock = (props) => {\n return (<StyledNekoBlock {...props} />);\n}\n\nNekoBlock.propTypes = {\n title: PropTypes.string,\n className: PropTypes.oneOf(['', 'primary']),\n style: PropTypes.object,\n action: PropTypes.element,\n};\n\nNekoBlock.defaultProps = {\n title: undefined,\n className: '',\n style: {},\n action: undefined,\n};\n\nexport { NekoBlock };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\nconst Container = Styled.div`\n font-size: ${Theme.fontSizeText};\n font-family: ${Theme.fontFamily};\n background-color: ${Theme.white};\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);\n margin-bottom: 25px;\n\n &.primary {\n background-color: ${Theme.blue};\n }\n\n p:first-child {\n margin-top: 0px;\n }\n\n p:last-child {\n margin-bottom: 0px;\n }\n\n .content {\n padding: 20px 20px;\n }\n`;\n\nconst Bar = Styled.div`\n justify-content: flex-start;\n background-color: ${Theme.lightGray2};\n display: flex;\n align-items: center;\n padding: 8px 10px;\n\n &.align-right {\n justify-content: flex-end;\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoContainer = props => {\n\n const { children, header, headerAlign = 'left', footer, footerAlign = 'right', className, style = {} } = props;\n\n return (\n <Container className={className || ''} style={style}>\n {header && <Bar className={`align-${headerAlign}`}>{ header }</Bar>}\n <div className=\"content\">\n { children }\n </div>\n {footer && <Bar className={`align-${footerAlign}`}>{ footer }</Bar>}\n </Container>\n );\n};\n\nconst NekoContainer = (props) => {\n return (<StyledNekoContainer {...props} />);\n}\n\nNekoContainer.propTypes = {\n header: PropTypes.element,\n headerAlign: PropTypes.oneOf(['left', 'right']),\n footer: PropTypes.element,\n footerAlign: PropTypes.oneOf(['left', 'right']),\n className: PropTypes.string,\n style: PropTypes.object\n};\nNekoContainer.defaultProps = {\n header: undefined,\n headerAlign: 'left',\n footer: undefined,\n footerAlign: 'right',\n className: undefined,\n style: {}\n};\n\nexport { NekoContainer };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {string} title=''\n */\nconst StyledNekoSettings = Styled(props => {\n const { title = '', contentAlign = 'left' } = props;\n return (\n <div className={props.className || ''}>\n {title ? <div className=\"nui-settings-head\">{title}</div> : null}\n <div className={`nui-settings-content nui-settings-content-align-${contentAlign}`}>\n {props.children}\n </div>\n </div>\n );\n})`\n display: flex;\n font-family: ${Theme.fontFamily};\n\n > .nui-settings-head {\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n line-height: 17px;\n width: 120px;\n margin-right: 16px;\n }\n\n /* Select, Checkbox, Input need to be a bit higher to be in front of the settings title */\n\n .nui-settings-content > .nui-select:first-child {\n position: relative;\n margin-top: -5px;\n }\n \n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-button:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > div:first-child > .neko-input {\n position: relative;\n margin-top: -5px;\n }\n\n > .nui-settings-content {\n flex: 1;\n\n &.nui-settings-content-align-right {\n flex: none;\n margin-left: auto;\n }\n\n input[type=text] {\n width: 100%;\n }\n\n\n }\n\n & + div {\n margin-top: 15px;\n }\n`;\n\nconst NekoSettings = (props) => {\n return (<StyledNekoSettings {...props} />);\n}\n\nNekoSettings.propTypes = {\n title: PropTypes.string,\n className: PropTypes.string,\n contentAlign: PropTypes.string\n};\n\nNekoSettings.defaultProps = {\n title: '',\n className: undefined,\n contentAlign: 'left'\n};\n\nexport { NekoSettings };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\nconst WindowBase = Styled.div`\n margin: 20px;\n padding: 14px;\n background-color: white;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n\n > * + * {\n /* Base margin between child elements */\n margin-top: 14px;\n }\n`;\n\nconst TitleBar = Styled(props => (\n props.children ? (\n <div className={props.className}>\n {props.children}\n </div>\n ) : null\n))`\n background-color: ${Theme.blue};\n color: white;\n`;\n\nconst StyledNekoWindow = props => (\n <WindowBase className='window'>\n <TitleBar>{props.title}</TitleBar>\n {props.children}\n </WindowBase>\n);\n\nconst NekoWindow = (props) => {\n return (<StyledNekoWindow {...props} />);\n}\n\nNekoWindow.propTypes = {\n title: PropTypes.string\n};\nNekoWindow.defaultProps = {\n title: undefined\n};\n\nexport { NekoWindow };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nconst Wrapper = Styled.div`\n display: flex;\n flex-wrap: wrap;\n`;\n\nconst Column = Styled.div`\n flex: 1;\n padding: 32px 30px;\n\n .nui-block:not(:first-child) {\n margin-top: -20px;\n }\n\n .nui-block:last-child {\n margin-bottom: 0px;\n }\n\n &.minimal {\n padding: 0;\n }\n\n &.full {\n flex-basis: 100%;\n padding-bottom: 0;\n }\n\n & + .full {\n padding-bottom: 32px;\n padding-top: 0;\n }\n\n &:not(.full) + div:not(.full) {\n padding-left: 0;\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoWrapper = props => {\n return (\n <Wrapper>\n { props.children }\n </Wrapper>\n );\n};\n\nconst StyledNekoColumn = props => {\n const { full, minimal, ...rest } = props;\n let className = full ? 'full' : '';\n className += minimal ? ' minimal' : '';\n return (\n <Column className={className} {...rest}>{props.children}</Column>\n );\n};\n\nconst NekoWrapper = (props) => {\n return (<StyledNekoWrapper {...props} />);\n};\n\nconst NekoColumn = (props) => {\n return (<StyledNekoColumn {...props} />);\n};\n\nNekoWrapper.propTypes = {\n};\nNekoWrapper.defaultProps = {\n};\n\nNekoColumn.propTypes = {\n full: PropTypes.any\n};\nNekoColumn.defaultProps = {\n full: undefined\n};\n\nexport { NekoWrapper, NekoColumn };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { NekoSpinner } from '../misc/Spinner';\n\nimport { Icon } from '@iconify/react';\nimport checkboxBlankOutline from '@iconify/icons-mdi/checkbox-blank-outline';\nimport checkboxMarked from '@iconify/icons-mdi/checkbox-marked';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {bool} checked\n * @param {string} label\n * @param {string} description\n */\nconst StyledNekoCheckbox = Styled(props => {\n const { id, name, checked = false, onChange, label, description, isPro, disabled, requirePro = false, isBusy = false } = props;\n\n const showUpProOnly = requirePro && !isPro;\n const isDisabled = disabled || showUpProOnly;\n const disabledClass = isDisabled ? 'disabled' : '';\n\n const onClick = () => {\n if (!onChange) {\n console.log(`The onChange handler it not set for this checkbox.`, props);\n return;\n }\n onChange(!checked, id);\n };\n\n return (\n <div className={['nui-checkbox', props.className, disabledClass].join(' ')} onClick={(e) => e.stopPropagation() }>\n <input id={id} name={name} type=\"checkbox\" defaultChecked={false} disabled={isDisabled || isBusy} />\n <label htmlFor={id} onClick={onClick}>\n <div className=\"nui-checkbox-check-container\">\n {isBusy\n ? <div className='nui-checkbox-busy-container'><Icon icon={checkboxBlankOutline} width=\"30px\" height=\"30px\" \n color={Theme.blue} /><NekoSpinner type=\"circle\" size=\"16px\" style={{ position: 'absolute', top: '7px', left: '7px' }} /></div>\n : <Icon icon={checked ? checkboxMarked : checkboxBlankOutline} width=\"30px\" height=\"30px\" \n color={isDisabled ? Theme.disabledForm : Theme.blue} />\n }\n </div>\n <div className=\"nui-checkbox-inner-container\">\n <span className=\"label\">{label}<ProOnly className=\"inline\" show={showUpProOnly} /></span>\n {description ? <small className=\"description\">{description}</small> : null}\n </div>\n </label>\n </div>\n );\n})`\n font-family: ${Theme.fontFamily};\n user-select: none;\n\n &.disabled {\n color: ${Theme.disabledForm};\n\n label {\n cursor: default;\n }\n }\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n align-items: center;\n }\n .nui-checkbox-check-container {\n display: flex;\n align-content: center;\n flex-basis: 30px;\n\n .nui-checkbox-busy-container {\n position: relative\n }\n }\n .nui-checkbox-inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n }\n \n .description {\n display: block;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n }\n }\n`;\n\nconst NekoCheckbox = (props) => {\n return (<StyledNekoCheckbox {...props} />);\n};\n\nNekoCheckbox.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n checked: PropTypes.bool,\n label: PropTypes.string,\n description: PropTypes.string,\n isPro: PropTypes.bool,\n requirePro: PropTypes.bool,\n isBusy: PropTypes.bool,\n};\n\nNekoCheckbox.defaultProps = {\n id: undefined,\n name: undefined,\n checked: false,\n label: undefined,\n description: undefined,\n isPro: false,\n requirePro: false,\n isBusy: false,\n};\n\nexport { NekoCheckbox };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\n/**\n * @param {string} name\n * @param {int} max=-1 Max number of checkboxes to be checked. Negative number means unlimited\n */\nconst StyledNekoCheckboxGroup = Styled(props => {\n const { name, max = -1, isPro = false } = props;\n\n // React.Children.toArray(props.children)\n\n // Modify child components (Checkboxes)\n const children = React.Children.map(props.children, child => {\n if (child.props.name) return child; // Do not modify if the child has its own name\n return React.cloneElement(child, {\n name: name, // Apply the group's name\n isPro\n });\n });\n\n return children;\n})`\n`;\n\nconst NekoCheckboxGroup = (props) => {\n return (<StyledNekoCheckboxGroup {...props} />);\n}\n\nNekoCheckboxGroup.propTypes = {\n name: PropTypes.string,\n mas: PropTypes.number,\n isPro: PropTypes.bool\n};\n\nNekoCheckboxGroup.defaultProps = {\n name: undefined,\n mas: -1,\n isPro: false\n}\n\nexport { NekoCheckboxGroup };\n","import React, { useState, useEffect, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoIcon } from '../misc/Icon';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {string} description\n * @param {string} placeholder\n */\nconst StyledNekoInput = Styled(props => {\n const { id, name, value = '', description, placeholder = '', onEnter = null,\n readOnly = false, type = 'text', step = 1, min = 1, max = 999, maxLength : defaultMaxLength = undefined,\n className, style, natural = false, inputStyle, onChange: onCustomChange, onBlur: onCustomBlur, onReset, ...rest } = props;\n\n const [ newValue, setNewValue ] = useState(value);\n const isControlled = !!onCustomChange;\n const maxLength = defaultMaxLength ? defaultMaxLength : (type === 'number' ? 3 : undefined);\n\n useEffect(() => {\n if (!isControlled) {\n setNewValue(value);\n }\n }, [ value ]);\n\n const onChange = (e) => {\n if (isControlled) { \n onCustomChange(e.target.value, id);\n }\n else {\n setNewValue(e.target.value, id);\n }\n };\n\n const onKeyPress = (e) => {\n if (onEnter && event.key === 'Enter') {\n e.preventDefault();\n onEnter(e.target.value, id);\n }\n };\n\n const onBlur = (e) => {\n if (onCustomBlur && value !== e.target.value) {\n onCustomBlur(e.target.value, id);\n }\n };\n\n const classNames = `neko-input ${natural ? ' natural' : ''}`;\n\n return (\n <div className={[className].join(' ')} style={style}>\n <div style={{ position: 'relative' }}>\n {type === 'number'\n ? <input className={[classNames].join(' ')} id={id} name={name} value={isControlled ? value : newValue} type={type} \n step={step} min={min} max={max} maxLength={maxLength}\n autoComplete=\"off\"\n placeholder={placeholder} style={inputStyle}\n onChange={onChange} onKeyPress={onKeyPress} onBlur={onBlur} readOnly={readOnly} {...rest} />\n : <input className={[classNames].join(' ')} {...rest} id={id} name={name} value={isControlled ? value : newValue} type={type} \n spellCheck=\"false\"\n autoComplete=\"off\"\n placeholder={placeholder} style={inputStyle} maxLength={maxLength}\n onChange={onChange} onKeyPress={onKeyPress} onBlur={onBlur} readOnly={readOnly} {...rest} />\n }\n {!!value && !!onReset && <NekoIcon icon='close' width={24} style={{ position: 'absolute', top: '3px', right: '3px' }} color={Theme.blue} onClick={onReset} />}\n </div>\n {description && <p className=\"neko-input-description\">{description}</p>}\n </div>\n );\n})`\n .neko-input {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n border: 2px solid ${Theme.blue};\n box-sizing: border-box;\n height: 30px;\n background: rgb(0 124 186 / 10%);\n padding: 0 10px;\n width: 100%;\n\n &.natural {\n border-color: gray;\n border-width: 1px;\n }\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ${Theme.gray};\n }\n }\n\n .neko-input-description {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeSmall};\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n`;\n\nconst NekoInput = (props) => {\n return (<StyledNekoInput {...props} />);\n};\n\nNekoInput.propTypes = {\n id: PropTypes.string,\n type: PropTypes.oneOf(['number', 'text']),\n name: PropTypes.string,\n value: PropTypes.string,\n description: PropTypes.string,\n placeholder: PropTypes.string,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onBlur: PropTypes.func,\n readOnly: PropTypes.bool,\n step: PropTypes.number,\n min: PropTypes.number,\n max: PropTypes.number,\n maxLength: PropTypes.number,\n natural: PropTypes.bool,\n onReset: PropTypes.func,\n};\n\nNekoInput.defaultProps = {\n id: undefined,\n type: 'text',\n name: undefined,\n value: '',\n description: undefined,\n placeholder: '',\n onChange: undefined,\n onEnter: undefined,\n onBlur: undefined,\n readOnly: false,\n step: 1,\n min: 1,\n max: 999,\n maxLength: undefined,\n natural: false,\n onReset: undefined,\n};\n\nexport { NekoInput };\n","import React, { useState, useEffect, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {string} description\n * @param {string} placeholder\n */\nconst StyledNekoTextArea = Styled(props => {\n const { id, name, value = '', description, placeholder = '', avoidOnEnterWithShift = false, onEnter = null, readOnly = false, \n maxLength = null, className, style, textAreaStyle = {}, countable = false, ...rest } = props;\n\n const [ newValue, setNewValue ] = useState(value);\n const [ count, setCount ] = useState(0);\n const [ pressShift, setPressShift ] = useState(false);\n const isControlled = !!props.onChange;\n\n const keydownFunction = useCallback((e) => {\n setPressShift(e.shiftKey);\n }, []);\n const keyupFunction = useCallback(() => {\n setPressShift(false);\n }, []);\n\n useEffect(() => {\n document.addEventListener(\"keydown\", keydownFunction, false);\n document.addEventListener(\"keyup\", keyupFunction, false);\n\n return () => {\n document.removeEventListener(\"keydown\", keydownFunction, false);\n document.removeEventListener(\"keyup\", keyupFunction, false);\n }\n }, []);\n\n useEffect(() => {\n if (!isControlled) {\n setNewValue(value);\n }\n if (countable) {\n setCount(value.length);\n }\n }, [ value, countable ]);\n\n const onChange = useCallback((e) => {\n const newValue = maxLength ? e.target.value.substr(0, maxLength): e.target.value;\n if (isControlled) { \n props.onChange(newValue, id);\n }\n else {\n setNewValue(newValue, id);\n }\n }, [maxLength, props.onChange]);\n\n const onKeyPress = (e) => {\n if (onEnter && !e.shiftKey && e.key === 'Enter') {\n if (avoidOnEnterWithShift && pressShift) return;\n\n e.preventDefault();\n props.onEnter(e.target.value, id);\n }\n };\n\n const onBlur = (e) => {\n if (props.onBlur && value !== e.target.value) {\n props.onBlur(e.target.value, id);\n }\n };\n\n return (\n <div className={[className].join(' ')} style={style}>\n <div className=\"neko-textarea-container\">\n <textarea className=\"neko-textarea\" rows={6} {...rest} id={id} name={name} spellCheck=\"false\" placeholder={placeholder} \n onChange={onChange} onKeyPress={onKeyPress} onBlur={onBlur} readOnly={readOnly} style={textAreaStyle}\n value={isControlled ? value : newValue} />\n {countable && <p className=\"neko-textarea-count\">{count} / {maxLength} characters</p>}\n </div>\n {description && <p className=\"neko-input-description\">{description}</p>}\n </div>\n );\n})`\n .neko-textarea-container {\n position: relative;\n }\n .neko-textarea {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n border: 2px solid ${Theme.blue};\n box-sizing: border-box;\n background: rgb(0 124 186 / 10%);\n padding: 5px 10px;\n width: 100%;\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ${Theme.gray};\n }\n }\n .neko-textarea-count {\n color: rgba(${Theme.blackRGB}, 0.4);\n font-size: 11px;\n margin: 0;\n position: absolute;\n right: 13px;\n bottom: 10px;\n }\n\n .neko-input-description {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeSmall};\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n`;\n\nconst NekoTextArea = (props) => {\n return (<StyledNekoTextArea {...props} />);\n};\n\nNekoTextArea.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n value: PropTypes.string,\n description: PropTypes.string,\n placeholder: PropTypes.string,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onBlur: PropTypes.func,\n readOnly: PropTypes.bool,\n avoidOnEnterWithShift: PropTypes.bool\n};\n\nNekoTextArea.defaultProps = {\n id: undefined,\n name: undefined,\n value: '',\n description: undefined,\n placeholder: '',\n onChange: undefined,\n onEnter: undefined,\n onBlur: undefined,\n readOnly: false,\n avoidOnEnterWithShift: false\n};\n\nexport { NekoTextArea };\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { useOutsideClick } from '../hooks';\nimport { NekoSpinner } from '../misc/Spinner';\n\nimport { Icon } from '@iconify/react';\nimport checkboxBlankCircleOutline from '@iconify/icons-mdi/checkbox-blank-circle-outline';\nimport recordCircle from '@iconify/icons-mdi/record-circle';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronUp from '@iconify/icons-mdi/chevron-up';\nimport { NekoIcon } from '../misc/Icon';\n\nconst Select = Styled.div`\n border-radius: 8px;\n position: relative;\n user-select: none;\n cursor: pointer;\n\n &.show-options {\n background-color: ${Theme.blue};\n border-radius: 8px 8px 0 0;\n }\n\n &[data-is-disabled=true] {\n cursor: none;\n pointer-events: none;\n\n .nui-select-option {\n background: ${Theme.gray};\n padding-right: 10px;\n }\n }\n`;\n\nconst SelectedOption = Styled.div`\n align-items: center;\n background-color: ${Theme.white};\n border: 2px solid ${Theme.blue};\n border-radius: 8px;\n display: flex;\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n padding: 0 5px 0 10px;\n box-sizing: border-box;\n height: 30px;\n\n &.isBusy {\n padding-left: 5px;\n }\n\n .rightContent {\n align-items: center;\n display: flex;\n margin-left: auto;\n }\n`;\n\nconst Description = Styled.div`\n display: block;\n margin-top: 5px;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n`;\n\nconst Options = Styled.div`\n border-radius: 8px;\n overflow: hidden;\n padding-top: 28px;\n position: absolute;\n top: 0;\n z-index: 10;\n width: 100%;\n transition: all 0.2s ease-in;\n\n &.hidden {\n opacity: 0;\n }\n`;\n\nconst OptionsContainer = Styled.div`\n background-color: ${Theme.white};\n overflow-y: auto;\n max-height: 300px;\n`;\n\n/**\n * @param {string} name\n */\nconst StyledNekoSelect = props => {\n const { id, name, value, scrolldown = false, isPro = false, onChange, className, disabled, isBusy = false,\n chevronIconSize = 24, ...rest } = props;\n\n const currentOption = React.Children.toArray(props.children)\n .find(child => child.props.value === value || child.props.checked)?.props;\n\n const label = currentOption?.label || 'Select';\n const description = currentOption?.description || props.description;\n const requirePro = currentOption?.requirePro || false;\n const icon = currentOption?.icon;\n const iconSize = currentOption?.iconSize;\n //const id = scrolldown ? props.id : currentOption?.id;\n\n const [ showOptions, toggleOptions ] = useState(false);\n const componentRef = scrolldown ? useOutsideClick(() => { toggleOptions(false) }) : null;\n const showUpProOnly = requirePro && !isPro;\n\n const onOptionClick = (newValue) => {\n if (newValue !== value) {\n if (!onChange) {\n console.log(`The onChange handler it not set for this checkbox.`, props);\n return;\n }\n onChange(newValue, id);\n }\n if (scrolldown) {\n toggleOptions(false);\n }\n }\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n name: child.props.name || name,\n checked: child.props.value === value || child.props.checked,\n onClick: onOptionClick,\n scrolldown,\n isPro,\n disabled\n });\n });\n\n return scrolldown\n ? <Select id={id} ref={componentRef} {...rest}\n onClick={() => toggleOptions(!showOptions)}\n className={[ 'nui-select', className, showOptions ? 'show-options' : '']}\n childrenLength={children.length} data-is-disabled={disabled || isBusy}\n >\n <SelectedOption className={`nui-select-option ${isBusy ? 'isBusy' : ''}`}>\n {isBusy\n ? <>\n <NekoSpinner type=\"circle\" size=\"20px\" />\n </>\n : <>\n {icon && <NekoIcon icon={icon} width={iconSize} height={iconSize} style={{ marginRight: `${Math.max(iconSize - 15, 4)}px` }} />}\n <span className='nui-select-option-label'>{label}</span>\n <div className=\"rightContent\">\n {showUpProOnly && <ProOnly />}\n {!disabled && <Icon icon={showOptions ? chevronUp : chevronDown} width={chevronIconSize} />}\n </div>\n </>}\n </SelectedOption>\n {description && <Description>{description}</Description>}\n {showOptions &&\n <Options className={`nui-option ${showOptions ? '' : 'hidden'}`}>\n <OptionsContainer>{[children]}</OptionsContainer>\n </Options>\n }\n </Select>\n : children;\n};\n\nconst RadioOption = Styled.div`\n font-family: ${Theme.fontFamily};\n margin-bottom: 6px;\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n\n .inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n .description {\n display: block;\n font-size: 12px;\n }\n }\n\n &.disabled {\n color: ${Theme.disabledForm};\n\n label {\n cursor: default;\n }\n }\n`;\n\nconst SelectOption = Styled.div`\n background-color: ${Theme.blue};\n cursor: pointer;\n font-family: ${Theme.fontFamily};\n\n &:hover {\n filter: brightness(80%);\n }\n\n input {\n display: none;\n }\n\n .option {\n align-items: center;\n color: ${Theme.white};\n display: flex;\n justify-content: space-between;\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n line-height: 17px;\n padding: 8px 12px;\n\n .option-group {\n align-items: center;\n display: flex;\n }\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n pointer-events: none;\n\n .option {\n color: rgb(255 255 255 / 35%);\n }\n }\n`;\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {bool} checked\n * @param {string} label\n * @param {string} description\n * @param {function} onClick\n */\nconst StyledNekoOption = props => {\n const { id, name, value, checked, icon, label, description, onClick, scrolldown, isPro = false,\n requirePro = false, disabled, iconSize = 20 } = props;\n\n const showUpProOnly = requirePro && !isPro;\n const disabledClass = showUpProOnly || disabled ? 'disabled' : '';\n\n const radioOption = (\n <RadioOption className={`nui-select ${props.className || ''} ${disabledClass}`}>\n <input id={id} name={name} type=\"radio\" value={value} defaultChecked={checked} onClick={(e) => onClick(e.target.value)} disabled={showUpProOnly || disabled} />\n <label htmlFor={id}>\n <Icon icon={checked ? recordCircle : checkboxBlankCircleOutline} width=\"24px\" color={showUpProOnly ? Theme.disabledForm : Theme.blue}/>\n <div className=\"inner-container\">\n <span className=\"label\">{label}<ProOnly className=\"inline\" style={{ top: -1 }} show={showUpProOnly} /></span>\n {description ? <small className=\"description\">{description}</small> : null}\n </div>\n </label>\n </RadioOption>\n );\n\n const selectOption = (\n <SelectOption className={`nui-select ${props.className || ''} ${disabledClass}`}>\n <input id={id} name={name} type=\"radio\" value={value} defaultChecked={checked} disabled={showUpProOnly || disabled} />\n <div className=\"option\" onClick={() => onClick(value)}>\n <div className=\"option-group\">\n {icon && <NekoIcon icon={icon} width={iconSize} height={iconSize} style={{ marginRight: `${Math.max(iconSize - 11, 4)}px` }} />}\n {label}\n </div>\n <ProOnly show={showUpProOnly} />\n </div>\n </SelectOption>\n );\n\n return scrolldown ? selectOption : radioOption;\n};\n\n/**\n * The NekoSelect has 2 types, radio (default) or select.\n */\nconst NekoSelect = (props) => {\n return (<StyledNekoSelect {...props} />);\n}\n\nNekoSelect.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n description: PropTypes.string,\n scrolldown: PropTypes.bool,\n isPro: PropTypes.bool,\n onChange: PropTypes.func,\n isBusy: PropTypes.bool,\n chevronIconSize: PropTypes.number,\n};\n\nNekoSelect.propTypes = {\n id: undefined,\n name: undefined,\n description: undefined,\n scrolldown: false,\n isPro: false,\n onChange: undefined,\n isBusy: false,\n chevronIconSize: 24,\n};\n\nconst NekoOption = (props) => {\n return (<StyledNekoOption {...props} />);\n}\n\nNekoOption.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n value: PropTypes.string,\n checked: PropTypes.bool,\n label: PropTypes.string,\n description: PropTypes.string,\n onClick: PropTypes.func,\n scrolldown: PropTypes.bool,\n isPro: PropTypes.bool,\n requirePro: PropTypes.bool,\n icon: PropTypes.string,\n iconSize: PropTypes.number,\n};\n\nNekoOption.defaultProps = {\n id: undefined,\n name: undefined,\n value: undefined,\n checked: false,\n label: undefined,\n description: undefined,\n onClick: undefined,\n scrolldown: false,\n isPro: false,\n requirePro: false,\n icon: undefined,\n iconSize: 20,\n};\n\nexport { NekoSelect, NekoOption };\n","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\nconst Form = Styled.div`\n label {\n display: block;\n margin-bottom: 3px;\n }\n\n .neko-input, .neko-textarea {\n margin-bottom: 5px;\n }\n`;\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {string} description\n * @param {string} placeholder\n */\nconst StyledNekoForm = (props) => {\n return (\n <Form>\n {props.children || null}\n </Form>\n );\n};\n\nconst NekoForm = (props) => {\n return (<StyledNekoForm {...props} />);\n};\n\nNekoForm.propTypes = {\n};\n\nNekoForm.defaultProps = {\n};\n\nexport { NekoForm };\n","import React, { useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {bool} checked\n * @param {string} label\n * @param {string} description\n */\nconst StyledNekoSwitch = Styled(props => {\n const { width = '100%', height = '20px', fontSize = '12px', onValue, offValue, checked = false,\n onBackgroundColor, offBackgroundColor, onLabel, offLabel, onChange, disabled, ...rest } = props;\n\n const onToggle = useCallback((v) => {\n onChange(v.target.checked ? onValue : offValue);\n }, [onChange, onValue, offValue]);\n\n return (\n <label {...rest} data-is-disabled={disabled ? 'disabled' : ''}>\n <input type=\"checkbox\" onChange={onToggle} checked={checked} disabled={disabled} />\n <span className=\"nui-switch-slider\"></span>\n </label>\n );\n})`\n color: ${Theme.white};\n font-family: ${Theme.fontFamily};\n font-size: ${props => props.fontSize};\n position: relative;\n display: inline-block;\n width: ${props => props.width};\n height: ${props => props.height};\n\n &[data-is-disabled=disabled] {\n opacity: 0.4;\n\n .nui-switch-slider {\n cursor: auto;\n }\n }\n\n input {\n opacity: 0;\n width: 0;\n height: 0;\n border: 0;\n }\n\n .nui-switch-slider {\n background-color: ${props => props.offBackgroundColor};\n border-radius: ${props => props.height};\n align-items: center;\n cursor: pointer;\n display: inline-flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transition: .4s;\n }\n\n .nui-switch-slider:before {\n border-radius: 50%;\n position: absolute;\n content: \"\";\n height: ${props => `calc(${props.height} - 8px)`};\n width: ${props => `calc(${props.height} - 8px)`};\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: .3s;\n }\n\n .nui-switch-slider:after {\n content: \"${props => props.offLabel}\";\n margin-left: auto;\n margin-right: ${props => `calc(${props.height} / 2)`};\n }\n\n input:checked + .nui-switch-slider {\n background-color: ${props => props.onBackgroundColor};\n }\n\n input:checked + .nui-switch-slider:before {\n transform: translateX(${props => `calc(${props.width} - ${props.height})` });\n }\n\n input:checked + .nui-switch-slider:after {\n content: \"${props => props.onLabel}\";\n margin-left: ${props => `calc(${props.height} / 2)`};\n margin-right: auto;\n }\n`;\n\nconst NekoSwitch = (props) => {\n return (<StyledNekoSwitch {...props} />);\n};\n\nNekoSwitch.propTypes = {\n width: PropTypes.string,\n height: PropTypes.string,\n fontSize : PropTypes.string,\n onValue: PropTypes.string,\n offValue: PropTypes.string,\n checked: PropTypes.bool,\n onBackgroundColor: PropTypes.string,\n offBackgroundColor: PropTypes.string,\n onLabel: PropTypes.string,\n offLabel: PropTypes.string\n};\n\nNekoSwitch.defaultProps = {\n width: '100%',\n height: '20px',\n fontSize: '12px',\n checked: false\n};\n\nexport { NekoSwitch };\n","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Colors from '../common/NekoTheme';\nimport { Icon, InlineIcon, IconifyIcon } from '@iconify/react';\nimport folderIcon from '@iconify/icons-mdi/folder';\nimport folderOpen from '@iconify/icons-mdi/folder-open';\nimport imageMultipleOutline from '@iconify/icons-mdi/image-multiple-outline';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport tagIcon from '@iconify/icons-mdi/tag';\n\nconst StyledNekoFinder = props => {\n\n const { chevron = true } = props;\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n chevron\n });\n });\n\n return (\n children\n );\n};\n\nconst FinderTitleContainer = Styled.div`\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n font-family: ${Colors.fontFamily};\n`;\n\nconst FinderTitle = Styled.div`\n align-items: center;\n display: flex;\n\n &.can-expand {\n cursor: pointer;\n }\n\n &.selected {\n color: #956DBE;\n }\n\n span {\n font-weight: normal;\n font-size: 13px;\n margin: 0 0 0 8px;\n }\n`;\n\nconst ChevronSpace = Styled.div`\n height: 24px;\n width: 24px;\n`;\n\nconst FinderTitleIconDropZone = Styled.div`\n position: relative;\n width: 24px;\n height: 24px;\n`;\n\nconst FinderTitleIconDroppableArea = Styled.div`\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 100;\n`;\n\nconst ItemContainer = Styled.div`\n border-left: 1px solid ${Colors.finderBorder};\n margin-left: 12px;\n padding-left: 6px;\n\n &.no-line {\n border-left: 0;\n padding-left: 12px;\n }\n\n &.no-chevron {\n border-left: 0;\n margin-left: 0;\n padding-left: 0;\n }\n`;\n\nconst StyledNekoFinderItem = props => {\n\n const defaultIcons = {\n gallery: imageMultipleOutline,\n tag: tagIcon\n }\n\n const { title, chevron, rightElement = null, rightElementStyle = { marginLeft: '5px' }, showRightElement = false, selected = false,\n draggable = false, onDragStart, onDragOver, onDragEnd, onDrop, isExpanded = false, dragging = false, rightAction = null,\n rightActionOnHover = null, onDragLeave, preventClose = false } = props;\n const isCustomizedIcon = !!props.icon;\n const hasChild = !!props.children;\n const [ expanded, setExpanded ] = useState(isExpanded);\n const [ icon, setIcon ] = useState(() => {\n if (typeof props.icon === 'string' && Object.keys(defaultIcons).includes(props.icon)) {\n return defaultIcons[props.icon];\n } else if (props.icon) {\n return props.icon;\n }\n return folderIcon\n });\n const isFolder = Boolean(icon);\n const [ showRightAction, setShowRightAction ] = useState(false);\n\n useEffect(() => {\n setExpanded(isExpanded);\n if (!isCustomizedIcon) {\n setIcon(isExpanded ? folderIcon : folderOpen);\n }\n }, [isExpanded]);\n\n const onClick = () => {\n if (props.onClick) {\n props.onClick();\n }\n }\n\n const onChevronClick = (e) => {\n e.stopPropagation();\n setExpanded(!expanded);\n }\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n chevron\n });\n });\n\n const iconColor = dragging || selected ? Colors.purple : (selected ? Colors.black : Colors.blue);\n\n return (\n <div>\n <FinderTitleContainer onMouseEnter={() => setShowRightAction(true)} onMouseLeave={() => setShowRightAction(false)}>\n <FinderTitle onClick={onClick} onMouseEnter={props.onMouseEnter} onMouseLeave={props.onMouseLeave} draggable={draggable} onDragStart={onDragStart} onDragOver={onDragOver} onDrop={onDrop} className={`${isFolder || children || props.onClick ? 'can-expand' : ''} ${selected ? 'selected' : ''}`} onDragLeave={onDragLeave} onDragEnd={onDragEnd}>\n {chevron\n ? (isFolder && hasChild)\n ? <Icon icon={expanded ? chevronDown : chevronRight} width=\"24\" height=\"24\" onClick={onChevronClick} />\n : <ChevronSpace></ChevronSpace>\n : null\n }\n <FinderTitleIconDropZone>\n <FinderTitleIconDroppableArea />\n <Icon icon={icon} color={iconColor} width=\"24\" height=\"24\" />\n </FinderTitleIconDropZone>\n <span>{title}</span>\n {showRightElement &&\n <div style={rightElementStyle}>{rightElement}</div>\n }\n </FinderTitle>\n {showRightAction ? (rightActionOnHover || rightAction) : rightAction}\n </FinderTitleContainer>\n {expanded && <ItemContainer className={`${isFolder ? '' : 'no-line'} ${chevron ? '' : 'no-chevron'}`}>{children}</ItemContainer>}\n </div>\n )\n}\n\nconst NekoFinder = (props) => {\n return (<StyledNekoFinder {...props} />);\n}\n\nNekoFinder.propTypes = {\n chevron: PropTypes.bool\n};\n\nNekoFinder.defaultProps = {\n chevron: true\n};\n\nconst NekoFinderItem = (props) => {\n return (<StyledNekoFinderItem {...props} />);\n}\n\nNekoFinderItem.propTypes = {\n icon: PropTypes.oneOfType([PropTypes.instanceOf(IconifyIcon), PropTypes.oneOf(['gallery'])]),\n title: PropTypes.string,\n isExpanded: PropTypes.bool\n};\n\nNekoFinderItem.defaultProps = {\n icon: folderIcon,\n title: undefined,\n isExpanded: false\n};\n\nexport { NekoFinder, NekoFinderItem };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nconst Logo = Styled.div`\n display: flex;\n width: 100%;\n height: 100%;\n max-width: 128px;\n max-height: 128px;\n\n & > * {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n`;\n\nconst StyledNekoLogo = () => {\n return (\n <Logo>\n <svg width=\"54\" height=\"38\" viewBox=\"0 0 54 38\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.9038 19.1156 23.9038 19.1156C23.9038 19.1156 13.4345 22.0656 11.3663 9.40518Z\" fill=\"#724024\" stroke=\"black\" strokeWidth=\"2.1869\"/>\n <path d=\"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z\" fill=\"#B7782E\"/>\n <path d=\"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z\" fill=\"#B7782E\"/>\n <path d=\"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z\" fill=\"#B7782E\"/>\n <path d=\"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z\" stroke=\"black\"/>\n <path d=\"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z\" stroke=\"black\"/>\n <path d=\"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z\" stroke=\"black\"/>\n <path d=\"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.658 19.4843 23.658 19.4843C23.658 19.4843 13.4345 22.0656 11.3663 9.40518Z\" stroke=\"black\" strokeWidth=\"2.1869\"/>\n <path d=\"M25.3788 9.89685C25.3788 9.89685 21.3225 35.0947 21.9371 35.7093C22.5517 36.3239 27.4684 36.3239 28.083 35.7093C28.6975 35.0947 29.6523 22.5858 30.2955 21.9427C30.9386 21.2995 35.7226 33.1281 36.81 33.1281C37.8975 33.1281 43.2303 21.3567 43.8163 21.9427C44.4023 22.5287 45.2913 35.0947 45.9059 35.7093C46.5204 36.3239 51.3142 36.3239 51.9288 35.7093C52.5434 35.0947 48.9788 9.89685 48.9788 9.89685H42.9559C42.9559 9.89685 37.7934 21.9427 36.81 21.9427C35.8267 21.9427 31.4017 9.89685 31.4017 9.89685H25.3788Z\" fill=\"white\" stroke=\"black\" strokeWidth=\"2.1869\"/>\n </svg>\n </Logo>\n );\n}\n\nconst NekoLogo = (props) => {\n return (<StyledNekoLogo {...props} />);\n}\n\nNekoLogo.propTypes = {\n};\n\nNekoLogo.defaultProps = {\n};\n\nexport { NekoLogo };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport { Icon, InlineIcon } from '@iconify/react';\nimport pauseIcon from '@iconify/icons-mdi/pause';\nimport stopIcon from '@iconify/icons-mdi/stop';\nimport playIcon from '@iconify/icons-mdi/play';\n\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {number} value Current progress\n * @param {number} max Max progress\n */\nconst StyledNekoProgress = Styled(props => {\n let { value = 0, max = 100, busy = false, status } = props;\n value = Math.min(value, max);\n let ratio = parseFloat(value) / parseFloat(max);\n\n return (\n <div className={props.className}>\n <ProgressCurrent ratio={ratio} busy={props.busy} status={status} />\n <div className=\"nui-progress-buttons\">\n {busy && props.onPauseClick && \n <div className='nui-progress-button pause' onClick={props.onPauseClick}>\n {props.paused ? <InlineIcon icon={playIcon} /> : <InlineIcon icon={pauseIcon} />}\n </div>\n }\n {busy && props.onStopClick && \n <div className='nui-progress-button stop' onClick={props.onStopClick}>\n <InlineIcon icon={stopIcon} />\n </div>\n }\n </div>\n </div>\n );\n})`\n position: relative;\n box-sizing: border-box;\n height: 30px;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.06) 0%,\n rgba(0, 0, 0, 0.02) 50%,\n rgba(0, 0, 0, 0.10) 100%\n );\n border-radius: 12px;\n\n .nui-progress-buttons {\n position: absolute;\n height: 100%;\n right: 0px;\n display: flex;\n align-items: center;\n padding-right: 5px;\n\n .nui-progress-button {\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 2px;\n border-radius: 100%;\n color: white;\n padding: 2px;\n width: 18px;\n height: 18px;\n background-color: ${Theme.blue};\n\n &:hover {\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n &.stop {\n background: ${Theme.red};\n\n &:hover {\n background-color: ${lighten(0.1, Theme.red)};\n }\n }\n }\n }\n`;\n\n/**\n * @param {float} ratio Progress ratio (0.0 to 1.0)\n */\nconst ProgressCurrent = Styled(props => {\n const percent = !isNaN(props.ratio) ? parseInt(Math.round(props.ratio * 100)) : 0;\n const typeOfStatus = typeof props.status;\n let status = typeOfStatus !== 'undefined'\n ? (typeOfStatus === 'string') ? props.status : props.status(percent)\n : `${percent}%`;\n\n return (\n <div className={props.className} style={{ minWidth: 28, minWidth: percent + '%' }}>\n <div>{status}</div>\n </div>\n );\n})`\n position: absolute;\n overflow: hidden;\n top: 0; left: 0;\n height: 100%;\n background-color: ${Theme.progress};\n border-radius: 12px;\n text-align: center;\n padding: 0 10px;\n vertical-align: middle;\n color: white;\n font-family: ${Theme.fontFamily};\n font-size: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: min-width .2s ease-out;\n\n background-size: 30px 30px;\n background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%,\n transparent 25%,\n transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,\n transparent 75%, transparent);\n animation: ${props => props.busy ? 'animate-stripes 1.6s linear infinite' : 'none'};\n\n @keyframes animate-stripes {\n 0% { background-position: 0 0; }\n 100% { background-position: 60px 0; }\n }\n`;\n\nconst NekoProgress = (props) => {\n return (<StyledNekoProgress {...props} />);\n}\n\nNekoProgress.propTypes = {\n value: PropTypes.number,\n max: PropTypes.number,\n busy: PropTypes.bool,\n paused: PropTypes.bool,\n onPauseClick: PropTypes.func,\n onStopClick: PropTypes.func,\n status: PropTypes.oneOf([PropTypes.string, PropTypes.func])\n};\n\nNekoProgress.defaultProps = {\n value: 0,\n max: 100,\n busy: false,\n paused: false,\n onPauseClick: undefined,\n onStopClick: undefined,\n status: undefined\n};\n\nexport { NekoProgress };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoLogo } from './Logo';\nimport { NekoIcon } from './Icon';\nimport Theme from '../common/NekoTheme';\nimport contentSave from '@iconify/icons-mdi/content-save';\n\nconst HeaderBase = Styled.div`\n position: relative;\n color: white;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n display: flex;\n height: 61px;\n overflow: hidden;\n align-items: center;\n padding: 15px 20px;\n background-color: ${Theme.header};\n display: flex;\n\n .nui-header-logo-container {\n width: 102px;\n height: 102px;\n padding: 20px;\n margin-right: 25px;\n background: rgba(${Theme.blackRGB}, 0.1);\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(-29.83deg);\n }\n\n .nui-header-title-container {\n flex-direction: column;\n display: flex;\n\n .nui-header-title {\n color: white;\n font-family: ${Theme.fontFamily};\n font-size: 23px;\n line-height: normal;\n margin: 0;\n }\n\n .nui-header-subtitle {\n color: white;\n font-family: ${Theme.fontFamily};\n line-height: normal;\n font-size: ${Theme.fontSizeText};\n }\n }\n\n .nui-header-extra-content {\n flex: 1;\n margin: 0 20px;\n }\n`;\n\nconst StyledNekoHeader = props => {\n\n const { title = 'NekoUI', subtitle = 'By Jordy Meow', children, saving = false } = props;\n\n return (\n <HeaderBase>\n <div className='nui-header-logo-container'>\n <NekoLogo />\n </div>\n <div className=\"nui-header-title-container\">\n <h1 className=\"nui-header-title\">{title}</h1>\n <small className=\"nui-header-subtitle\"><a target='_blank' href='https://meowapps.com' \n style={{ color: 'white', textDecoration: 'none' }}>{subtitle}</a></small>\n </div>\n <div className=\"nui-header-extra-content\">{children}</div>\n {saving && <NekoIcon icon={contentSave} width=\"36\" height=\"36\" />}\n </HeaderBase>\n );\n};\n\nconst NekoHeader = (props) => {\n return (<StyledNekoHeader {...props} />);\n}\n\nNekoHeader.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n saving: PropTypes.bool\n};\n\nNekoHeader.defaultProps = {\n title: 'NekoUI',\n subtitle: 'By Jordy Meow',\n saving: false\n};\n\nexport { NekoHeader };\n","import React, { useState, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { Icon } from '@iconify/react';\nimport chevronDoubleLeft from '@iconify/icons-mdi/chevron-double-left';\nimport chevronLeft from '@iconify/icons-mdi/chevron-left';\nimport chevronDoubleRight from '@iconify/icons-mdi/chevron-double-right';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\nimport Theme from '../common/NekoTheme';\n\nconst PagingContainer = Styled.div`\n align-items: center;\n display: flex;\n user-select: none;\n\n .neko-paging-text {\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 14px;\n margin-right: 15px;\n }\n\n .neko-paging-controller {\n box-sizing: border-box;\n height: 30px;\n align-items: center;\n background-color: rgba(${Theme.blueRGB}, 0.8);\n border-radius: 15px;\n display: flex;\n padding: 3px 5px;\n\n .nako-paging-controller-icon {\n background-color: ${Theme.white};\n border-radius: 100%;\n cursor: pointer;\n margin-right: 2px;\n height: 22px;\n width: 22px;\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n transition: transform 0.1s ease-in;\n box-sizing: border-box;\n\n :last-child {\n margin-right: 0;\n }\n\n &.disabled {\n color: ${Theme.darkGray};\n cursor: default;\n pointer-events: none;\n }\n\n &:hover {\n transform: scale(1.2) !important;\n z-index: 10;\n position: relative;\n }\n }\n\n .nako-paging-controller-text {\n color: ${Theme.white};\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n margin: 0 40px;\n user-select: none;\n }\n\n span.neko-paging-current-page {\n cursor: pointer;\n text-decoration: underline;\n }\n\n input.neko-paging-current-page {\n width: 1.5rem;\n }\n }\n`;\n\n/**\n * @param {number} currentPage Current page\n * @param {number} limit Items per page\n */\nconst StyledNekoPaging = props => {\n const { currentPage, limit = 0, onClick, total = 0, onCurrentPageChanged, full, infinite = false, controllerText } = props;\n const isEditable = !!onCurrentPageChanged;\n const maxPage = useMemo(() => {\n if (infinite) return 0;\n return Math.ceil(total === 0 ? 1 : (limit > 0 ? (total / limit) : 1));\n }, [infinite, limit, total]);\n const prevIconClassName = `nako-paging-controller-icon ${!infinite && currentPage === 1 ? 'disabled' : ''}`;\n const nextIconClassName = `nako-paging-controller-icon ${!infinite && currentPage === maxPage ? 'disabled' : ''}`;\n const [ showCurrentPageInput, setShowCurrentPageInput ] = useState(false);\n\n const onClickHandle = (page) => {\n setShowCurrentPageInput(false);\n onClick(page);\n };\n\n const getValidPage = (page) => {\n if (infinite) return page;\n const numberPage = Number(page);\n return numberPage > maxPage ? maxPage : (numberPage < 1 ? 1 : numberPage);\n }\n\n const onBlur = (e) => {\n const page = e.target.value;\n\n if (!isNaN(page)) {\n onCurrentPageChanged(getValidPage(page));\n }\n setShowCurrentPageInput(false);\n }\n\n const onKeyPress = (e) => {\n if (event.key === 'Enter') {\n e.preventDefault();\n const page = e.target.value;\n if (!isNaN(page)) {\n onCurrentPageChanged(getValidPage(page));\n }\n setShowCurrentPageInput(false);\n }\n };\n\n const currentPageJsx = useMemo(() => {\n if (!showCurrentPageInput) {\n const onClick = () => {\n if (!isEditable) {\n return;\n }\n setShowCurrentPageInput(true);\n }\n return <span className={isEditable ? 'neko-paging-current-page' : ''} onClick={onClick}>{currentPage}</span>;\n }\n return <input autoFocus type=\"text\" className={isEditable ? 'neko-paging-current-page' : ''} \n defaultValue={currentPage} onBlur={onBlur} onKeyPress={onKeyPress} />;\n }, [currentPage, showCurrentPageInput, onCurrentPageChanged]);\n\n const onControllerClick = (e) => {\n if (!showCurrentPageInput || e.target !== e.currentTarget) return;\n\n setShowCurrentPageInput(false);\n }\n\n return (\n <PagingContainer>\n\n {!!total && <span className=\"neko-paging-text\">{total} result{total > 0 ? 's' : ''}</span>}\n\n <div className=\"neko-paging-controller\" onClick={onControllerClick}>\n {!infinite && <Icon icon={chevronDoubleLeft}\n className={prevIconClassName}\n onClick={() => onClickHandle(1)}\n />}\n <Icon icon={chevronLeft}\n className={prevIconClassName}\n onClick={() => onClickHandle(currentPage - 1)}\n />\n <p className=\"nako-paging-controller-text\" onClick={onControllerClick}>\n {!!controllerText\n ? controllerText\n : <>Page {currentPageJsx} of {maxPage}</>\n }\n </p>\n <Icon icon={chevronRight}\n className={nextIconClassName}\n onClick={() => onClickHandle(currentPage + 1)}\n />\n {!infinite && <Icon icon={chevronDoubleRight}\n className={nextIconClassName}\n onClick={() => onClickHandle(maxPage)}\n />}\n </div>\n\n </PagingContainer>\n );\n};\n\nconst NekoPaging = (props) => {\n return (<StyledNekoPaging {...props} />);\n};\n\nNekoPaging.propTypes = {\n currentPage: PropTypes.number,\n limit: PropTypes.number,\n total: PropTypes.number,\n onClick: PropTypes.func,\n lastPage: PropTypes.number,\n infinite: PropTypes.bool,\n controllerText: PropTypes.object\n};\n\nNekoPaging.defaultProps = {\n currentPage: undefined,\n limit: 0,\n total: 0,\n onClick: undefined,\n lastPage: undefined,\n infinite: false,\n controllerText: undefined\n};\n\nexport { NekoPaging };\n","import React, { useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoIcon } from '../misc/Icon';\n\nconst LinkContainer = Styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst Link = Styled.span`\n color: ${props => props.variant || Theme.blue};\n cursor: pointer;\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 17px;\n\n &.is-active {\n cursor: default;\n color: ${Theme.black};\n font-weight: bold;\n }\n\n &::after {\n content: \"|\";\n color: ${Theme.darkGray};\n padding: 0 4px;\n }\n\n &:last-child::after {\n content: none;\n }\n\n span {\n color: ${Theme.darkGray};\n font-weight: normal;\n margin-left: 4px;\n }\n`;\n\nconst StyledNekoQuickLinks = props => {\n const { id, value, onChange, busy = false, className } = props;\n\n const children = React.Children.map(props.children, (child, i) => {\n return React.cloneElement(child, {\n busy: busy,\n isActive: child.props.value === value,\n onClick: (newValue) => {\n if (newValue !== value) {\n onChange(newValue, id);\n }\n }\n });\n });\n\n return (\n <LinkContainer className={className}>{children}</LinkContainer>\n );\n};\n\nconst StyledNekoLink = props => {\n\n const { title, value = 0, count, onClick, busy, isActive, className, variant } = props;\n\n const variantValue = useMemo(() => {\n if (!variant) return undefined\n return Object.keys(Theme).includes(variant) ? Theme[variant] : variant\n }, [variant])\n\n return (\n <Link onClick={() => onClick(value)} className={`${isActive ? 'is-active' : ''} ${className}`} variant={variantValue}>\n {title}\n {count === null ? null :\n <span>(\n {busy ? \n <NekoIcon icon=\"replay\" spinning={true} width={12} containerStyle={{ display: 'inline' }} /> : \n count\n })\n </span>\n }\n </Link>\n );\n};\n\nconst NekoQuickLinks = (props) => {\n return (<StyledNekoQuickLinks {...props} />);\n};\n\nNekoQuickLinks.propTypes = {\n id: PropTypes.string,\n value: PropTypes.string,\n onChange: PropTypes.func\n};\n\nNekoQuickLinks.defaultProps = {\n id: undefined,\n value: undefined,\n onChange: undefined\n};\n\nconst NekoLink = (props) => {\n return (<StyledNekoLink {...props} />);\n};\n\nNekoLink.propTypes = {\n title: PropTypes.string,\n value: PropTypes.string,\n count: PropTypes.number,\n onClick: PropTypes.func,\n isActive: PropTypes.bool,\n variant: PropTypes.string,\n};\n\nNekoLink.defaultProps = {\n title: undefined,\n value: 'default',\n count: 0,\n onClick: undefined,\n isActive: false,\n variant: undefined,\n};\n\nexport { NekoQuickLinks, NekoLink };\n","import React, { useState, useCallback, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nconst StyledSection = Styled.section`\n .mask {\n position: absolute;\n overflow: hidden;\n display: block;\n width: ${props => props.width}px;\n height: ${props => props.width / 2}px;\n }\n\n .semi-circle {\n position: relative;\n display: block;\n width: ${props => props.width}px;\n height: ${props => props.width / 2}px;\n background: linear-gradient(to right, #27b775 0%, #f3f32c 50%, #f71b1b 100%);\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n\n &::before {\n content: \"\";\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 2;\n display: block;\n width: 140px;\n height: 70px;\n margin-left: -70px;\n background: ${props => props.backgroundColor};\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .semi-circle--mask {\n position: absolute;\n top: 0;\n left: 0;\n width: ${props => props.width}px;\n height: ${props => props.width}px;\n background: transparent;\n transform-origin: center center;\n backface-visibility: hidden;\n transition: all .3s ease-in-out;\n\n &::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0%;\n z-index: 2;\n display: block;\n width: ${props => props.width + 2}px;\n height: ${props => props.width / 2 + 2}px;\n margin-top: -1px;\n margin-left: -1px;\n background: #5396c1d6;\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .gauge { \n width: ${props => props.width}px;\n height: ${props => props.width / 2}px;\n \n .semi-circle--mask {\n transform: rotate(${props => props.degrees}deg) translate3d(0,0,0);\n }\n }\n\n .child-container {\n position: absolute;\n font-size: 16px;\n display: flex;\n width: ${props => props.width + 2}px;\n height: ${props => props.width / 2}px;\n z-index: 10;\n\n .spacing {\n flex: auto;\n }\n\n .child {\n color: white;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n }\n`;\n\nconst NekoGauge = ({ value = 1000, min = 0, max = 2500, width = 200, background = '#007cba', children }) => {\n const degrees = 180 * (value <= max ? value : max) / max;\n return (\n <StyledSection backgroundColor={background} degrees={degrees} width={width}>\n <div class=\"gauge\">\n <div class=\"mask\">\n <div class=\"semi-circle\"></div>\n <div class=\"semi-circle--mask\"></div>\n </div>\n <div class=\"child-container\">\n <div class=\"child\">\n <div class=\"spacing\" />\n {children}\n </div>\n </div>\n </div>\n </StyledSection>\n )\n};\n\nNekoGauge.propTypes = {\n value : PropTypes.number,\n min : PropTypes.number,\n max : PropTypes.number,\n width : PropTypes.number,\n background : PropTypes.string,\n};\n\nNekoGauge.defaultProps = {\n value : 1000,\n min : 0,\n max : 2500,\n width : 200,\n background : '#007cba',\n};\n\nexport { NekoGauge };\n","import Styled from 'styled-components';\n\nconst NekoMessageDanger = Styled.p`\n background: #ba341e;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n\n a {\n color: white;\n font-weight: bold;\n }\n`;\n\nconst NekoMessageSuccess = Styled.p`\n background: #1eba96;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n text-align: center;\n\n a {\n color: white;\n font-weight: bold;\n }\n`;\n\nexport { NekoMessageDanger, NekoMessageSuccess };","import React, { useState, useRef, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoIcon, postFetch } from '../../index';\n\nconst StyledUpload = Styled.div`\n box-sizing: border-box;\n background: #C4C4C4;\n color: rgb(0 0 0 / 60%);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n transition: all 0.25s ease;\n\n &[data-is-disabled=true] {\n svg {\n opacity: 0.7;\n }\n }\n\n div {\n transition: all 0.5s ease;\n transform: scale(1.5);\n pointer-events: none;\n max-width: 100%;\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.dropping {\n background: #a4d5ff;\n\n div {\n transform: scale(2);\n }\n }\n`;\n\nconst NekoUpload = (props) => {\n\n const { multiple, width = '100%', height = '100%', iconSize = 48, iconColor = '#A9A9A9', onSuccess = () => {}, \n onFailure = () => {}, style = {}, apiUrl, apiConfig, onClick, disabled, ...rest } = props;\n const [ inDropZone, setInDropZone ] = useState(false);\n const [ inputId, setInputId ] = useState(Math.floor(Math.random() * 100000000));\n const inputEl = useRef(null);\n const divEl = useRef(null);\n const [ busy, setBusy ] = useState(false);\n\n useEffect(() => {\n if (!divEl) return;\n\n divEl.current.style.pointerEvents = busy ? 'none' : 'auto';\n }, [divEl, busy])\n\n const uploadFile = async (files) => {\n setBusy(true);\n const upload = async (file) => {\n apiConfig.file = file;\n return await postFetch(apiUrl, apiConfig);\n }\n const response = await Promise.all(files.map(async (file) => {\n return await upload(file);\n }))\n const successResponses = response.filter(v => v.success);\n const failerResponses = response.filter(v => !v.success);\n if (successResponses.length) {\n onSuccess(multiple ? successResponses : successResponses[0]);\n }\n if (failerResponses.length) {\n onFailure(multiple ? failerResponses : failerResponses[0]);\n }\n setBusy(false);\n }\n\n const onDragOver = (e) => {\n e.preventDefault();\n e.stopPropagation();\n }\n\n const onDragEnter = (e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(true);\n }\n\n const onDragLeave = (e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(false);\n }\n\n const onDrop = (e) => {\n const files = [...e.dataTransfer.files];\n uploadFiles(files, e);\n }\n\n const onUploaderClick = () => {\n if (onClick) {\n onClick();\n return;\n }\n inputEl.current.click();\n }\n\n const onInputUpload = (e) => {\n const files = [...e.target.files];\n uploadFiles(files, e);\n }\n\n const uploadFiles = (files, e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(false);\n console.log(files);\n uploadFile(files);\n }\n\n return (\n <div ref={divEl}>\n <input type=\"file\" id={inputId} accept=\"image/*\" ref={inputEl} onChange={onInputUpload} style={{ display: 'none' }} disabled={disabled} multiple={multiple} />\n <StyledUpload onClick={onUploaderClick} style={{ ...style, width, height }} className={inDropZone ? 'dropping' : ''} \n onDragOver={onDragOver} onDragEnter={onDragEnter} onDragLeave={onDragLeave} onDrop={onDrop} data-is-disabled={disabled} {...rest}>\n <NekoIcon width={iconSize} height={iconSize} icon='upload' spinning={busy} color={iconColor}\n onDragOver={onDragOver} onDragEnter={onDragEnter} />\n </StyledUpload>\n </div>\n );\n}\n\nNekoUpload.propTypes = {\n width : PropTypes.string,\n height : PropTypes.string,\n onSuccess : PropTypes.func,\n onFailure : PropTypes.func,\n style : PropTypes.object,\n apiUrl : PropTypes.string,\n apiConfig : PropTypes.object\n};\n\nNekoUpload.defaultProps = {\n width : '100%',\n height : '100%',\n onSuccess : () => {},\n onFailure : () => {},\n style : {}\n};\n\nexport { NekoUpload };\n","import React, { useState, forwardRef, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoBusyOverlay, postFetch } from '../../index';\n\nconst StyledUploadDropArea = Styled.div`\n &.dropping {\n background: #a4d5ff;\n }\n`;\n\nconst NekoUploadDropArea = forwardRef((props, ref) => {\n\n const { onSuccess = () => {}, onFailure = () => {}, apiUrl, apiConfig, className, disabled = false, children, multiple, ...rest } = props;\n const [ inDropZone, setInDropZone ] = useState(false);\n const [ busy, setBusy ] = useState(false);\n\n const uploadFile = useCallback(async (files) => {\n setBusy(true);\n const upload = async (file) => {\n apiConfig.file = file;\n return await postFetch(apiUrl, apiConfig);\n }\n const response = await Promise.all(files.map(async (file) => {\n return await upload(file);\n }))\n const successResponses = response.filter(v => v.success);\n const failerResponses = response.filter(v => !v.success);\n if (successResponses.length) {\n onSuccess(multiple ? successResponses : successResponses[0]);\n }\n if (failerResponses.length) {\n onFailure(multiple ? failerResponses : failerResponses[0]);\n }\n setBusy(false);\n }, [apiConfig, onSuccess, onFailure]);\n\n const uploadFiles = useCallback((files, e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(false);\n // console.log(files);\n uploadFile(files);\n }, [uploadFile]);\n\n const onDragOver = useCallback((e) => {\n e.preventDefault();\n e.stopPropagation();\n }, []);\n\n const onDragEnter = useCallback((e) => {\n e.preventDefault();\n e.stopPropagation();\n if (disabled) return;\n setInDropZone(true);\n }, [disabled]);\n\n const onDragLeave = useCallback((e) => {\n e.preventDefault();\n e.stopPropagation();\n if (disabled) return;\n setInDropZone(false);\n }, [disabled]);\n\n const onDrop = useCallback((e) => {\n if (disabled) return;\n const files = [...e.dataTransfer.files];\n uploadFiles(files, e);\n }, [disabled, uploadFiles]);\n\n const onInputUpload = useCallback((e) => {\n const files = [...e.target.files];\n uploadFiles(files, e);\n }, [uploadFiles]);\n\n return (\n <NekoBusyOverlay busy={busy}>\n <input type=\"file\" accept=\"image/*\" ref={ref} onChange={onInputUpload} style={{ display: 'none' }} multiple={multiple} />\n <StyledUploadDropArea className={`${className ? className : ''} ${inDropZone ? 'dropping' : ''}`}\n onDragOver={onDragOver} onDragEnter={onDragEnter} onDragLeave={onDragLeave} onDrop={onDrop} {...rest}>\n {children}\n </StyledUploadDropArea>\n </NekoBusyOverlay>\n );\n});\n\nNekoUploadDropArea.propTypes = {\n ref: PropTypes.ref,\n onSuccess : PropTypes.func,\n onFailure : PropTypes.func,\n apiUrl : PropTypes.string,\n apiConfig : PropTypes.object,\n disabled: PropTypes.bool\n};\n\nNekoUploadDropArea.defaultProps = {\n onSuccess : () => {},\n onFailure : () => {},\n disabled : false\n};\n\nexport { NekoUploadDropArea };\n","import { useState, useEffect, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport NekoTheme from '../common/NekoTheme';\n//import { Icon, InlineIcon, IconifyIcon } from '@iconify/react';\n//import folderIcon from '@iconify/icons-mdi/folder';\n\nconst Days = {\n Monday: 1,\n Tuesday: 2,\n Wednesday: 3,\n Thursday: 4,\n Friday: 5,\n Saturday: 6,\n Sunday: 7\n}\n\nconst StyledNekoCalendar = Styled.div`\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n font-family: ${NekoTheme.fontFamily};\n font-size: 12px;\n`;\n\nconst CalendarHeaders = Styled.div`\n display: flex;\n width: 100%;\n padding: 10px 0px;\n color: white;\n background: ${NekoTheme.primary};\n border-radius: 5px 5px 0px 0px;\n\n div {\n width: calc(100% / 7);\n text-align: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n`;\n\nconst CalendarContent = Styled.div`\n display: flex;\n flex-direction: column;\n`;\n\nconst WeekContainer = Styled.div`\n display: flex;\n`;\n\nconst DayContainer = Styled.div`\n background: purple;\n width: calc(100% / 7);\n background: ${NekoTheme.white};;\n padding: 3px;\n border-bottom: 1px solid ${NekoTheme.lightGray};\n border-right: 1px solid ${NekoTheme.lightGray};\n position: relative;\n transition: background-color 150ms linear;\n box-sizing: border-box;\n\n &:first-child {\n border-left: 1px solid ${NekoTheme.lightGray};\n }\n\n &:last-child {\n border-right: 1px solid ${NekoTheme.lightGray};\n }\n\n .day {\n text-align: right;\n color: ${NekoTheme.black};\n margin-bottom: 5px;\n }\n\n &.highlighted {\n background: #ffe8bc;\n }\n\n &.today .day {\n font-weight: bold;\n text-decoration: underline;\n }\n\n .gray-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: ${NekoTheme.lightGray};\n opacity: 0.8;\n }\n\n .event {\n margin-bottom: 2px;\n }\n\n .event:last-child {\n margin-bottom: 0px;\n }\n`;\n\nfunction getFirstWeekDayForMonth(month, year, weekDay = Days.Monday) {\n const date = new Date(year, month);\n while (date.getDay() !== weekDay) {\n date.setDate(date.getDate() - 1);\n }\n return date;\n}\n\nfunction numberOfDaysBetween(startDate, endDate) {\n const start = new Date(startDate);\n const end = new Date(endDate);\n let count = 0;\n while (start <= end) {\n count++;\n start.setDate(start.getDate() + 1);\n }\n return count - 1;\n}\n\nfunction splitArrayInChunks(array, chunkSize) {\n const chunks = [];\n let i = 0;\n while (i < array.length) {\n chunks.push(array.slice(i, i += chunkSize));\n }\n return chunks;\n}\n\nconst NekoCalendar = (props) => {\n const { month = new Date().getMonth(), year = new Date().getFullYear(),\n onEventClicked = () => { console.log(\"[NekoCalendar] onEventClicked not handled.\"); },\n onEventMoved = () => { console.log(\"[NekoCalendar] onEventMoved not handled.\"); },\n eventBuilder = () => \"YOOO\", events, ...rest } = props;\n const [draggedEvent, setDraggedEvent] = useState();\n const [highlightedDay, setHighlightedDay] = useState();\n\n let { disableDaysBefore = null } = props;\n disableDaysBefore = disableDaysBefore ? disableDaysBefore :\n new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate());\n\n const weeks = useMemo(() => {\n const days = [];\n const currentDate = getFirstWeekDayForMonth(month, year, Days.Monday);\n const totalCalendarDays = numberOfDaysBetween(currentDate, new Date(year, month, 1)) < 5 ? 34 : 41;\n const lastDate = new Date(currentDate).setDate(currentDate.getDate() + totalCalendarDays)\n while (currentDate <= lastDate) {\n days.push(new Date(currentDate));\n currentDate.setDate(currentDate.getDate() + 1);\n }\n return splitArrayInChunks(days, 7);\n }, [month, year]);\n\n const isDayToday = (date) => {\n const today = new Date();\n return date.getFullYear() === today.getFullYear() &&\n date.getMonth() === today.getMonth() &&\n date.getDate() === today.getDate();\n }\n\n const isSameDay = (date1, date2) => {\n return date1.getFullYear() === date2.getFullYear() &&\n date1.getMonth() === date2.getMonth() &&\n date1.getDate() === date2.getDate();\n }\n\n return (\n <StyledNekoCalendar {...rest}>\n\n <CalendarHeaders>\n {Object.keys(Days).map(day => (\n <div key={day}>{day}</div>\n ))}\n </CalendarHeaders>\n\n <CalendarContent>\n {weeks.map(week => \n <WeekContainer key={week}>\n {week.map(day => {\n const isCurrentMonth = day.getMonth() == month;\n const isDisabled = !isCurrentMonth || day < disableDaysBefore;\n const className = (isDisabled ? 'disabled ' : '') + (isDayToday(day) ? 'today' : '')\n + (day === highlightedDay ? 'highlighted' : '');\n const filterEvents = events.filter(event => isCurrentMonth && event.date.getDate() === day.getDate());\n return (\n <DayContainer className={className} key={day.getTime()}\n onDragOver={(e) => { \n if ( isDisabled || isSameDay(day, draggedEvent.date) ) { \n return false;\n };\n e.preventDefault();\n setHighlightedDay(day);\n return true;\n }}\n onDragLeave={() => setHighlightedDay(null)}\n onDrop={() => { onEventMoved(day, draggedEvent); setHighlightedDay(null) }}>\n <div className=\"day\">{day.getDate()}</div>\n {filterEvents.map(event => \n <div className=\"event\" key={event.key} draggable={event.draggable} \n onClick={() => onEventClicked(event)}\n onDragStart={(e) => setDraggedEvent(event)}>\n {eventBuilder({ ...event })}\n </div>)\n }\n {isDisabled && <div className=\"gray-overlay\" />}\n </DayContainer>\n );\n })}\n </WeekContainer>\n )}\n </CalendarContent>\n\n </StyledNekoCalendar>\n );\n}\n\nNekoCalendar.propTypes = {\n month: PropTypes.number,\n year: PropTypes.number,\n disableDaysBefore: PropTypes.instanceOf(Date),\n disableDaysAfter: PropTypes.instanceOf(Date),\n eventBuilder: PropTypes.func,\n events: PropTypes.array,\n onEventClicked: PropTypes.func,\n onEventMoved: PropTypes.func,\n};\n\nNekoCalendar.defaultProps = {\n month: (new Date).getMonth(),\n year: (new Date).getFullYear(),\n disableDaysBefore: null,\n disableDaysAfter: null,\n eventBuilder: () => \"UI for this event\",\n events: [{ key: 'A1', date: new Date() }, { key: 'A2', date: new Date() }],\n onEventClicked: (event) => { console.log(\"An event was clicked\", event); },\n onEventMoved: (day, event) => { console.log(\"An event was moved to another day\", event, day); },\n};\n\nexport { NekoCalendar };","import React, { useEffect, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Modal from 'react-modal';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoButton } from '../button/Button';\n\nconst NekoModalParent = Styled.div`\n\n .ReactModal__Overlay {\n z-index: 100;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n background: ${Theme.overlay} !important;\n }\n .ReactModal__Overlay {\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n .ReactModal__Overlay .neko-modal {\n opacity: 0;\n transform: scale(0.85);\n transition: all 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open .neko-modal {\n transform: scale(1);\n opacity: 1;\n }\n .ReactModal__Overlay--before-close .neko-modal {\n transform: scale(0.85);\n opacity: 0;\n }\n .neko-modal {\n background: ${Theme.white};\n position: relative;\n box-shadow: 2px 2px 15px 2px rgba(0, 0, 0, 0.8);\n outline: none;\n padding: 15px;\n max-width: 820px;\n }\n`;\n\nconst NekoModalContent = Styled.div`\n width: ${props => props.width ?? '518px'};\n\n p {\n margin: 0;\n }\n .title {\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n }\n .content-container {\n display: flex;\n margin-top: 15px;\n\n .thumbnail {\n margin-right: 15px;\n width: 240px;\n overflow: hidden;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n .content {\n flex: auto;\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 14px;\n width: 100%;\n }\n }\n .button-group {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n margin-top: 15px;\n }\n`;\n\nconst StyledNekoModal = (props) => {\n\n const {\n id = 'neko-modal-parent',\n isOpen,\n children,\n className,\n style,\n ok = 'OK',\n cancel = 'Cancel',\n customButtons = null,\n customButtonsPosition = 'right',\n title = '',\n content = '',\n contentWidth,\n onOkClick,\n onCancelClick,\n okOnEnter = false,\n thumbnail,\n ...rest\n } = props;\n const customClassName = style ? 'custom-modal' : '';\n const showCustomButtons = customButtons !== null;\n\n const keyUpHandler = useCallback(({ key }) => {\n if (key === 'Enter') {\n onOkClick();\n }\n }, [onOkClick]);\n\n useEffect(() => {\n if (!okOnEnter || !isOpen) return;\n\n window.addEventListener(\"keyup\", keyUpHandler);\n return () => {\n window.removeEventListener(\"keyup\", keyUpHandler);\n };\n }, [isOpen, keyUpHandler]);\n\n const modalContent = children\n ? children\n : <NekoModalContent width={contentWidth}>\n {title && <p className=\"title\">{title}</p>}\n <div className=\"content-container\">\n {thumbnail && <div className=\"thumbnail\">{thumbnail}</div>}\n {content && <p className=\"content\">{content}</p>}\n </div>\n <div className=\"button-group\">\n {showCustomButtons && customButtonsPosition === 'left' && customButtons}\n {onCancelClick && <NekoButton className=\"danger\" onClick={onCancelClick}>{cancel}</NekoButton>}\n {onOkClick && <NekoButton onClick={onOkClick}>{ok}</NekoButton>}\n {showCustomButtons && customButtonsPosition === 'right' && customButtons}\n </div>\n </NekoModalContent>;\n\n return (\n <React.Fragment>\n <NekoModalParent id={id} />\n <Modal ariaHideApp={false}\n parentSelector={() => document.getElementById(id)}\n closeTimeoutMS={200}\n className={`neko-modal ${className || ''} ${customClassName}`}\n isOpen={isOpen}\n {...rest}\n >\n {modalContent}\n </Modal>\n </React.Fragment>\n );\n};\n\nconst NekoModal = (props) => {\n return (<StyledNekoModal {...props} />);\n};\n\nNekoModal.propTypes = {\n className: PropTypes.string,\n style: PropTypes.object,\n ok: PropTypes.string,\n cancel: PropTypes.string,\n title: PropTypes.string,\n content: PropTypes.string,\n contentWidth: PropTypes.string,\n onOkClick: PropTypes.func,\n onCancelClick: PropTypes.func,\n customButtons: PropTypes.object,\n okOnEnter: PropTypes.bool,\n thumbnail: PropTypes.element\n};\n\nNekoModal.defaultProps = {\n className: undefined,\n style: undefined,\n ok: 'OK',\n cancel: 'Cancel',\n title: '',\n content: '',\n contentWidth: undefined,\n onOkClick: undefined,\n onCancelClick: undefined,\n customButtons: null,\n okOnEnter: false,\n thumbnail: undefined\n};\n\nexport { NekoModal };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { Icon } from '@iconify/react';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronUp from '@iconify/icons-mdi/chevron-up';\nimport checkboxBlankOutline from '@iconify/icons-mdi/checkbox-blank-outline';\nimport checkboxMarked from '@iconify/icons-mdi/checkbox-marked';\nimport checkboxMultipleMarked from '@iconify/icons-mdi/checkbox-multiple-marked';\n\nimport Theme from '../common/NekoTheme';\nimport NekoBusyOverlay from '../common/NekoBusyOverlay';\n\nconst Table = Styled.table`\n font-family: ${Theme.fontFamily};\n border-spacing: 0;\n width: 100%;\n word-break: break-all;\n\n th, td {\n margin: 0;\n padding: 5px;\n border-bottom: 1px solid rgba(${Theme.blackRGB}, 0.1);\n border-right: 1px solid rgba(${Theme.blackRGB}, 0.1);\n\n a {\n text-decoration: none;\n }\n\n :last-child {\n border-right: 0;\n }\n }\n\n &.nekotable-raw {\n th, td {\n border: 0;\n }\n }\n\n th, tfoot td {\n height: 30px;\n background-color: ${Theme.blue};\n color: ${Theme.white};\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n text-align: left;\n\n div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n &.sortable {\n cursor: pointer;\n }\n }\n }\n\n thead tr th:first-child {\n border-top-left-radius: 10px;\n }\n\n thead tr th:last-child {\n border-top-right-radius: 10px;\n }\n\n tfoot tr th:first-child {\n border-bottom-left-radius: 10px;\n }\n\n tfoot tr th:last-child {\n border-bottom-right-radius: 10px;\n }\n\n &.nekotable-raw {\n th {\n font-weight: bold;\n }\n th, tfoot td {\n background-color: ${Theme.white};\n color: ${Theme.black};\n\n div {\n justify-content: normal;\n }\n }\n }\n\n tbody {\n background-color: ${Theme.white};\n \n tr {\n :nth-child(even) {\n background-color: ${Theme.tableGray};\n }\n &.selected {\n background-color: rgba(${Theme.blueRGB}, 0.8);\n color: ${Theme.white};\n\n a {\n color: #81e8ff;\n }\n }\n }\n img {\n vertical-align: bottom;\n }\n }\n\n &.nekotable-raw {\n tbody {\n tr {\n :nth-child(even) {\n background-color: ${Theme.white};\n }\n &.selected {\n background-color: ${Theme.white};\n color: ${Theme.black};\n }\n }\n }\n }\n\n tfoot tr:last-child {\n td {\n border-bottom: 0;\n }\n }\n\n .table-checkbox-cell {\n width: 35px;\n text-align: center;\n\n svg {\n padding: 5px;\n cursor: pointer;\n }\n }\n`;\n\nconst TableCheckBox = (props) => {\n const { checked, intermediate = false, onSelect = () => {}, onUnselect = () => {}, ...rest } = props;\n\n const onClick = (e) => { \n checked ? onUnselect(e) : onSelect(e);\n };\n\n return (\n <Icon icon={intermediate ? checkboxMultipleMarked : (checked ? checkboxMarked : checkboxBlankOutline)}\n width=\"24px\" height=\"24px\" onClick={onClick} />\n );\n};\n\nconst alignToJustifyContent = {\n left: 'start',\n center: 'center',\n right: 'end',\n};\n\n/**\n * @param {string} className\n * @param {string|object} icon\n * @param {bool} disabled\n * @param {function} onClick\n */\nconst StyledNekoTable = (props) => {\n const { columns, data, busy = false, onSelect, onUnselect, selectedItems, sort, onSortChange, variant = 'default', sortIconColor = undefined, emptyMessage = \"Empty.\" } = props;\n const columnsCount = columns.length + (onSelect ? 1 : 0);\n\n const getColumnStyle = (column) => {\n let style = {};\n if (column.align) {\n style = { textAlign: column.align, justifyContent: alignToJustifyContent[column.align] };\n }\n if (column.width) {\n style = { ...style, width: column.width };\n }\n if (column.style) {\n style = { ...style, ...column.style };\n }\n return style;\n }\n\n const rows = data.map(v => {\n const cells = columns.map(c => {\n return { value: v[c.accessor], style: getColumnStyle(c) }\n });\n return { id: v.id, cells };\n });\n\n const currentRowsIds = rows.map(x => x.id);\n const currentSelectedRows = currentRowsIds.filter(x => selectedItems.includes(x));\n const areAllRowsSelected = currentSelectedRows.length === currentRowsIds.length;\n const isIntermediate = !areAllRowsSelected && selectedItems.length > 0;\n\n const hiddenColumnIndexes = columns.reduce(function(a, e, i) {\n if (e.visible === false)\n a.push(i);\n return a;\n }, []);\n\n const headersFooters = <tr>\n {onSelect && \n <th className='table-checkbox-cell'>\n <TableCheckBox checked={areAllRowsSelected} intermediate={isIntermediate}\n onSelect={(e) => onSelect(currentRowsIds, e) } \n onUnselect={(e) => { \n // The unselect on selectedItems never happens, but I keep it here in case\n // we find an elegant UI solution to unselect all the invisible selected rows as well.\n isIntermediate ? onUnselect(selectedItems, e) : onUnselect(currentRowsIds, e);\n }}\n />\n </th>\n }\n {columns.filter((x, i) => !hiddenColumnIndexes.includes(i)).map(column => {\n let beingSorted = sort && sort.accessor === column.accessor;\n let beingSortedAsc = sort && sort.by === 'asc';\n let color = beingSorted ? Theme.white : `rgba(${Theme.blackRGB}, 0.1)`;\n if (sortIconColor) {\n color = beingSorted ? sortIconColor : Theme.gray;\n }\n const columnStyle = getColumnStyle(column);\n return (<th style={columnStyle} key={column.accessor}>\n <div className={column.sortable ? 'sortable' : ''} style={columnStyle}\n onClick={column.sortable ? (e) => { \n onSortChange(column.accessor, beingSorted && beingSortedAsc ? 'desc' : 'asc', e)\n } : undefined}>\n <div>{column.title}</div>\n <div style={{ flex: 'auto' }} />\n <div>{column.sortable && \n <Icon icon={!beingSorted ? chevronDown : (beingSortedAsc ? chevronDown : chevronUp)} \n color={color} width=\"26px\" height=\"26px\" />}\n </div>\n </div>\n </th>)\n })}\n </tr>;\n\n return (\n <NekoBusyOverlay busy={busy} overlayStyle={{ top: '36px', height: 'calc(100% - 76px)' }}>\n <Table className={`nekotable-${variant}`}>\n <thead>{headersFooters}</thead>\n <tbody>\n {!rows.length && \n <tr><td colspan={columnsCount} style={{ textAlign: 'center', height: 40, color: 'gray' }}>\n {emptyMessage}\n </td></tr>\n }\n {rows.map(row => {\n return (\n <tr className={selectedItems.includes(row.id) ? 'selected' : ''}>\n {onSelect && \n <td className='table-checkbox-cell'>\n <TableCheckBox \n checked={selectedItems.includes(row.id)}\n onSelect={(e) => onSelect([ row.id ], e)}\n onUnselect={(e) => onUnselect([ row.id ], e)} \n />\n </td>\n }\n {row.cells.filter((x, i) => !hiddenColumnIndexes.includes(i)).map(cell => {\n return <td style={cell.style}>{cell.value}</td>;\n })}\n </tr>\n );\n })}\n </tbody>\n {variant === 'default' && <tfoot>{headersFooters}</tfoot>}\n </Table>\n </NekoBusyOverlay>\n );\n};\n\nconst NekoTable = (props) => {\n return (<StyledNekoTable {...props} />);\n};\n\nNekoTable.propTypes = {\n columns: PropTypes.arrayOf(PropTypes.any),\n data: PropTypes.arrayOf(PropTypes.any),\n busy: PropTypes.arrayOf(PropTypes.bool),\n onSelect: PropTypes.func,\n onUnselect: PropTypes.func,\n selectedItems: PropTypes.arrayOf(PropTypes.object),\n onSortChange: PropTypes.func,\n variant: PropTypes.string,\n sortIconColor: PropTypes.string,\n};\n\nNekoTable.defaultProps = {\n columns: undefined,\n data: undefined,\n busy: false,\n onSelect: undefined,\n onUnselect: undefined,\n selectedItems: undefined,\n onSortChange: undefined,\n variant: 'default',\n sortIconColor: undefined,\n};\n\nexport { NekoTable };\n","import React, { useMemo, useState, useRef, useCallback } from \"react\";\nimport PropTypes from \"prop-types\";\nimport Styled from \"styled-components\";\nimport Theme from '../common/NekoTheme';\nimport { NekoModal } from \"./Modal\";\nimport { NekoTypo } from \"./../misc/Typography\";\nimport { NekoInput } from \"./../form/Input\";\nimport { NekoButton } from \"../button/Button\";\nimport { NekoPaging } from \"../misc/Paging\";\nimport NekoBusyOverlay from \"../common/NekoBusyOverlay\";\nimport { NekoIcon } from \"../misc/Icon\";\nimport { NekoUploadDropArea } from \"../misc/UploadDropArea\";\nimport { NekoTable } from \"../table/Table\";\n\nconst StyledNekoModal = Styled(NekoModal)`\n width: 633px;\n\n &.custom-modal {\n padding: 0;\n }\n\n .neko-modal-wrapper {\n padding: 15px;\n }\n\n .neko-media-library-modal-content-header {\n align-items: center;\n display: flex;\n justify-content: space-between;\n\n h1 {\n font-size: 21px;\n font-weight: bold;\n margin: 0;\n }\n\n input {\n background-color: ${Theme.white};\n border: 1px solid ${Theme.black};\n border-radius: 3px;\n }\n }\n .neko-media-library-modal-content-body {\n margin-top: 33px;\n margin-bottom: 36px;\n\n .neko-media-library-modal-content-body-list {\n max-height: 406px;\n overflow-y: scroll;\n margin-bottom: 10px;\n width: 100%;\n }\n .neko-media-library-modal-content-body-gallery {\n display: grid;\n gap: 10px;\n grid-template-columns: repeat(6, 1fr);\n margin-bottom: 10px;\n\n .neko-media-library-modal-content-media-container {\n cursor: pointer;\n position: relative;\n\n img {\n box-sizing: border-box;\n }\n\n &.selected {\n img {\n border: 5px solid ${Theme.blue};\n }\n }\n\n &:hover {\n .zoom-button {\n display: block;\n }\n }\n\n .zoom-button {\n background-color: rgba(${Theme.blackRGB}, 0.4);\n border: 0;\n border-radius: 30px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 2px;\n left: 2px;\n width: 30px;\n height: 30px;\n }\n }\n }\n\n .neko-media-library-modal-content-body-selected-gallery {\n display: flex;\n\n .neko-media-library-modal-content-selected-media-container {\n overflow: hidden;\n position: relative;\n height: 50px;\n width: 50px;\n padding-right: 5px;\n\n &.dummy {\n width: 50px;\n\n &.drag-over {\n width: 50px;\n }\n }\n\n &.drag-over {\n width: 105px;\n\n .zoom-button {\n left: 56px;\n }\n }\n\n &.drag-over::before {\n content: '';\n display: inline-block;\n width: 50px;\n height: 50px;\n background-color: ${Theme.blue};\n }\n\n img {\n box-sizing: border-box;\n width: 100%;\n max-width: 50px;\n }\n\n &.drag-over {\n img {\n margin-left: 5px;\n }\n }\n\n &:hover {\n .remove-button,\n .zoom-button {\n display: block;\n }\n }\n\n .remove-button {\n background-color: rgba(${Theme.blackRGB}, 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n right: 1px;\n width: 20px;\n height: 20px;\n }\n\n .zoom-button {\n background-color: rgba(${Theme.blackRGB}, 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n left: 1px;\n width: 20px;\n height: 20px;\n }\n }\n }\n }\n .neko-media-library-modal-content-footer {\n display: flex;\n justify-content: space-between;\n }\n .neko-media-library-modal-search {\n position: relative;\n }\n`;\n\nconst selectedImageBaseWidth = 55;\nconst nextItemRange = 25;\nconst selectedImageIdPrefix = 'nmlm-selected-';\nconst dragOverClassName = 'drag-over';\nconst removeClass = (className) => {\n Array.prototype.forEach.call(document.getElementsByClassName(className), (ele) => {\n ele.classList.remove(className);\n });\n}\nconst displayModes = {\n grid: 'grid',\n list: 'list'\n};\nconst columns = [\n { accessor: 'thumbnail_url', title: 'Thumb', style: { width: '42px' } },\n { accessor: 'title', title: 'Title' },\n { accessor: 'size', title: 'Size', style: { width: '70px' } },\n { accessor: 'filename', title: 'Filename' },\n];\n\nconst StyledNekoMediaLibraryModal = (props) => {\n const { images, onNextPage, onPreviousPage, onRefresh, onClick, onRemoveClick, onZoomClick, onSearch, searchValue, busy,\n currentPage, limit, total, onPageChange, selected, multiSelect = false, showUploader = false, uploader, onSelectedOrderChanged,\n onUploadSuccess = () => {}, onUploadFailure = () => {}, uploadApiUrl, uploadApiConfig, uploadMultiple, onClose, onCancel, onSave, ...rest } = props;\n const [ search, setSerch ] = useState(searchValue);\n const [ dragImageIndex, setDragImageIndex ] = useState(null);\n const [ displayMode, setDisplayMode ] = useState(displayModes.grid);\n const ref = useRef(null);\n\n const onDragOver = (e, i) => {\n e.preventDefault();\n if (dragImageIndex === null) return;\n const { width, left, right } = e.currentTarget.getBoundingClientRect();\n let target = i;\n // Only tweak the index if the element dragged over is the right on the image dragged.\n if (dragImageIndex < i) {\n if (i > 0 && i < selected.length) {\n if (target + 1 === dragImageIndex && e.clientX >= right - nextItemRange) {\n target -= 1\n } else if (target - 1 === dragImageIndex && e.clientX >= left - nextItemRange) {\n target += 1;\n } else if (width !== selectedImageBaseWidth && e.clientX >= right - nextItemRange) {\n target += 1;\n }\n } else if (width !== selectedImageBaseWidth && e.clientX >= right - nextItemRange) {\n target += 1;\n }\n }\n removeClass(dragOverClassName);\n if (dragImageIndex === target || (dragImageIndex + 1) === target) return;\n document.getElementById(`${selectedImageIdPrefix}${target}`).classList.add(dragOverClassName);\n }\n\n const onDragEnd = (e) => {\n e.preventDefault();\n setDragImageIndex(null);\n removeClass(dragOverClassName);\n }\n\n const onDrop = (e, i) => {\n e.preventDefault();\n if (dragImageIndex === null || dragImageIndex === i || (dragImageIndex + 1) === i) return;\n onSelectedOrderChanged({ currentIndex: dragImageIndex, afterIndex: dragImageIndex > i ? i : i - 1});\n }\n\n const selectedMediaJsx = useMemo(() => {\n if ( !multiSelect ) return [];\n const dummyElementForDrop = <div id={`nmlm-selected-${selected.length}`} className=\"neko-media-library-modal-content-selected-media-container dummy\" draggable={false} onDragEnd={(e) => onDragEnd(e)} onDragOver={(e) => onDragOver(e, selected.length)} onDrop={(e) => onDrop(e, selected.length)} onDragLeave={() => removeClass(dragOverClassName)}></div>\n const selectedElement = selected.map( (image, i) => {\n return (\n <div id={`nmlm-selected-${i}`} key={image.id} className=\"neko-media-library-modal-content-selected-media-container\" draggable={true} onDragStart={() => setDragImageIndex(i)} onDragEnd={onDragEnd} onDragOver={(e) => onDragOver(e, i)} onDrop={(e) => onDrop(e, i)}>\n <img src={image.src} className=\"neko-media-library-modal-content-media\" />\n <button className=\"remove-button\" onClick={() => onRemoveClick({ id: image.id, src: image.src })}>\n <NekoIcon icon=\"close\" color={Theme.white} width={19} height={19} />\n </button>\n <button className=\"zoom-button\" onClick={() => onZoomClick({ id: image.id, src: image.zoom_src })}>\n <NekoIcon icon=\"zoom-in\" color={Theme.white} width={19} height={19} />\n </button>\n </div>\n );\n } );\n return [...selectedElement, dummyElementForDrop];\n }, [ selected, multiSelect, onRemoveClick, onZoomClick, onDragOver, onDragEnd, onDrop ] );\n\n const mediaGridJsx = useMemo(() => {\n return images.map((image) => {\n return (\n <div key={image.id} className={`neko-media-library-modal-content-media-container ${selected.some(v => v.id === image.id) ? 'selected' : ''}`}\n onClick={() => {\n onClick({ id: image.id, src: image.src, zoom_src: image.zoom_src })\n }}>\n <img src={image.src} className=\"neko-media-library-modal-content-media\" width=\"90\" height=\"90\" />\n <button className=\"zoom-button\" onClick={(e) => { e.stopPropagation(); onZoomClick({ id: image.id, src: image.zoom_src }); }}>\n <NekoIcon icon=\"zoom-in\" color={Theme.white} width={29} height={29} />\n </button>\n </div>\n );\n });\n }, [images, selected, onZoomClick, onClick]);\n\n const mediaRows = useMemo(() => {\n return images.map(x => ({\n id: x.id,\n thumbnail_url: <img src={x.src} style={{ width: 40, height: 40, objectFit: 'cover' }} />,\n title: x.title,\n size: x.size,\n filename: x.filename\n }));\n }, [images]);\n\n const onReset = useCallback(() => {\n setSerch(\"\");\n onRefresh();\n }, [onRefresh]);\n\n const mediaListJsx = useMemo(() => {\n const onSelect = (ids, e) => {\n const image = images.find(v => ids.includes(v.id));\n onClick({ id: image.id, src: image.src, zoom_src: image.zoom_src });\n }\n return <NekoTable\n data={mediaRows}\n columns={columns}\n onSelect={onSelect}\n onUnselect={onSelect}\n selectedItems={selected.map(v => v.id)}\n />\n }, [images, mediaRows, selected, onClick]);\n\n return (\n <StyledNekoModal style={true} {...rest}>\n <div className=\"neko-modal-wrapper\" draggable={true} onDragOver={() => removeClass(dragOverClassName)}>\n <NekoUploadDropArea ref={ref} onSuccess={onUploadSuccess} onFailure={onUploadFailure} apiUrl={uploadApiUrl} apiConfig={uploadApiConfig} disabled={!showUploader || dragImageIndex !== null} multiple={uploadMultiple}>\n <div className=\"neko-media-library-modal-content\">\n <div className=\"neko-media-library-modal-content-header\">\n <NekoTypo h1>Media Library</NekoTypo>\n <div style={{ display: 'flex' }}>\n <div className=\"neko-media-library-modal-search\">\n <NekoInput value={search} disabled={busy} onEnter={onSearch} onChange={(v) => setSerch(v)} placeholder=\"Search...\" />\n {search !== \"\" && <NekoIcon icon=\"close\" containerStyle={{ width: '20px', position: 'absolute', right: '5px', top: '5px', cursor: 'pointer' }} width={20} height={20} color={Theme.darkGray} onClick={onReset} />}\n </div>\n <NekoButton onClick={() => onSearch(search)} style={{ marginLeft: '4px', marginRight: '4px' }}>Search</NekoButton>\n <NekoIcon color={displayMode === displayModes.grid ? Theme.black : Theme.blue} icon='view-grid' onClick={() => setDisplayMode(displayModes.grid)} width=\"20\" height=\"20\" />\n <NekoIcon color={displayMode === displayModes.list ? Theme.black : Theme.blue} icon='format-list-bulleted' onClick={() => setDisplayMode(displayModes.list)} width=\"20\" height=\"20\" />\n </div>\n </div>\n <div>\n <div className=\"neko-media-library-modal-content-body\">\n <NekoBusyOverlay busy={busy}>\n <div className={`${displayMode === displayModes.grid ? 'neko-media-library-modal-content-body-gallery' : 'neko-media-library-modal-content-body-list'}`}>\n {displayMode === displayModes.grid && showUploader && uploader}\n {displayMode === displayModes.grid ? mediaGridJsx : mediaListJsx}\n </div>\n </NekoBusyOverlay>\n <div className=\"neko-media-library-modal-content-body-selected-gallery\">\n {selectedMediaJsx}\n </div>\n </div>\n </div>\n <div className=\"neko-media-library-modal-content-footer\">\n <NekoPaging limit={limit} currentPage={currentPage} total={total} onClick={onPageChange} />\n <div style={{ display: 'flex' }}>\n {!!onClose && <NekoButton onClick={() => onClose()}>\n Close\n </NekoButton>}\n {!!onCancel && <NekoButton className=\"danger\" onClick={() => onCancel()}>\n Cancel\n </NekoButton>}\n {!!onSave && <NekoButton onClick={() => onSave()}>\n Save\n </NekoButton>}\n </div>\n </div>\n </div>\n </NekoUploadDropArea>\n </div>\n </StyledNekoModal>\n );\n};\n\nconst NekoMediaLibraryModal = (props) => {\n return <StyledNekoMediaLibraryModal {...props} />;\n};\n\nNekoMediaLibraryModal.propTypes = {\n images: PropTypes.array,\n onNextPage: PropTypes.func,\n onPreviousPage: PropTypes.func,\n onRefresh: PropTypes.func,\n onClick: PropTypes.func,\n onSearch: PropTypes.func,\n searchValue: PropTypes.string,\n busy: PropTypes.bool,\n currentPage: PropTypes.number,\n limit: PropTypes.number,\n total: PropTypes.number,\n onPageChange: PropTypes.func,\n multiSelect: PropTypes.bool,\n selected: PropTypes.array,\n onClose: PropTypes.func,\n onCancel: PropTypes.func,\n onSave: PropTypes.func,\n};\n\nNekoMediaLibraryModal.defaultProps = {\n multiSelect: false\n};\n\nexport { NekoMediaLibraryModal };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { NekoIcon } from '../misc/Icon';\n\nconst TabContainer = Styled.div`\n`;\n\nconst TabGroup = Styled.div`\n display: flex;\n`;\n\nconst Tab = Styled.button`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n border-radius: 8px 8px 0px 0px;\n border: 0;\n background-color: #459ad2;\n color: rgb(255 255 255 / 65%);\n display: flex;\n align-items: center;\n\n cursor: pointer;\n line-height: 17px;\n margin-right: 5px;\n text-align: left;\n padding: 10px 15px 10px 15px;\n\n &:focus {\n outline: none;\n }\n\n &.active {\n background-color: ${Theme.blue};\n color: ${Theme.white};\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n cursor: default;\n display: inline-flex;\n padding-bottom: 7px;\n }\n\n &.hidden {\n display: none;\n }\n`;\n\nconst TabContent = Styled.div`\n background-color: ${Theme.blue};\n display: none;\n padding: 10px;\n\n &.active {\n display: block;\n }\n`;\n\n/**\n * Need to use with NecoTab\n */\nconst StyledNekoTabs = props => {\n const [isActiveTabIndex, setIsActiveTabIndex] = React.useState(0);\n const childrenProp = props.children\n ? (\n props.children.length\n ? props.children.filter(x => !!x)\n : [props.children]\n )\n : [];\n\n React.useEffect(() => {\n if (props.keepTabOnReload) {\n const url = new URL(window.location.href);\n const title = url.searchParams.get('nekoTab');\n if (!title) {\n setIsActiveTabIndex(0);\n if (props.callOnTabChangeFirst) {\n onTabClick(0, tabAttributes[0]);\n }\n return;\n }\n const searchTitle = decodeURIComponent(title);\n const index = React.Children.toArray(childrenProp).map(c => c.props.title.replaceAll(' ', '')).indexOf(searchTitle);\n if (index === -1) {\n setIsActiveTabIndex(0);\n if (props.callOnTabChangeFirst) {\n onTabClick(0, tabAttributes[0]);\n }\n return;\n }\n setIsActiveTabIndex(index);\n if (props.callOnTabChangeFirst) {\n onTabClick(index, tabAttributes[index]);\n }\n return;\n }\n setIsActiveTabIndex(0);\n if (props.callOnTabChangeFirst) {\n onTabClick(0, tabAttributes[0]);\n }\n }, [])\n\n const tabAttributes = React.Children.map(childrenProp, (child, i) => {\n const title = child.props.title || (\"Untitled Tab \" + (i + 1));\n const key = child.props.key || 'neko-tab-' + title.toLowerCase();\n const onClick = child.props.onClick ? child.props.onClick : null;\n const requirePro = !props.isPro && (child.props.requirePro || false);\n const hidden = child.props.hidden || false;\n const icon = child.props.icon || false;\n return { key, title, onClick, requirePro, hidden, icon };\n });\n\n const children = React.Children.map(childrenProp, (child, i) => {\n return React.cloneElement(child, {\n isActive: i === isActiveTabIndex\n });\n });\n\n const keepTab = (title) => {\n if (history.pushState && typeof title === 'string' ) {\n let searchParams = new URLSearchParams(window.location.search);\n const value = encodeURIComponent(title.replaceAll(' ', ''));\n searchParams.set('nekoTab', value);\n let newUrl = window.location.protocol + \"//\" + window.location.host + window.location.pathname + '?' + searchParams.toString();\n window.history.replaceState({ path: newUrl }, '', newUrl);\n }\n }\n\n const onTabClick = (tabIndex, tabAttr, ev) => {\n if (tabAttr.requirePro) return;\n setIsActiveTabIndex(tabIndex);\n if (props.onChange) {\n props.onChange(tabIndex, tabAttr, ev);\n }\n if (props.keepTabOnReload) {\n keepTab(tabAttr.title);\n }\n };\n\n return (\n <TabContainer>\n <TabGroup>\n {tabAttributes.map((attr, i) =>\n <Tab \n key={attr.key} \n className={`neko-tab-title ${i === isActiveTabIndex ? 'active' : ''} ${attr.requirePro ? 'disabled' : ''} ${attr.hidden ? `hidden` : ''}`} \n onClick={(ev) => { onTabClick(i, attr, ev) }}\n >\n {attr.icon && <NekoIcon icon={attr.icon} width={15} height={15} style={{ marginRight: '2px' }} raw />}\n {attr.title}<ProOnly className=\"inline\" style={{ marginLeft: 10, marginRight: -5, top: -1 }} show={attr.requirePro} />\n </Tab>\n )}\n </TabGroup>\n {children}\n </TabContainer>\n );\n};\n\n\n/**\n * @oaram {string} title\n * @param {bool} isActive\n */\nconst StyledNekoTab = props => {\n\n const { children, isActive } = props;\n\n return (\n <TabContent className={`${isActive ? 'active' : ''}`}>\n {!!isActive && children}\n </TabContent>\n );\n};\n\nconst NekoTabs = (props) => {\n return (<StyledNekoTabs {...props} />);\n};\n\nNekoTabs.propTypes = {\n isPro: PropTypes.bool,\n onChange: PropTypes.func\n};\n\nNekoTabs.defaultProps = {\n isPro: false,\n onChange: undefined\n};\n\nconst NekoTab = (props) => {\n return (<StyledNekoTab {...props} />);\n};\n\nNekoTab.propTypes = {\n isActive: PropTypes.bool,\n requirePro: PropTypes.bool,\n title: PropTypes.string,\n icon: PropTypes.string,\n};\n\nNekoTab.defaultProps = {\n isActive: false,\n requirePro: false,\n title: undefined,\n icon: undefined,\n};\n\nexport { NekoTab, NekoTabs };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { Icon, InlineIcon } from '@iconify/react';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\n\nconst TabContainer = Styled.div`\n`;\n\nconst Tab = Styled.div`\n align-items: center;\n background-color: ${Theme.blue};\n border: 0;\n cursor: pointer;\n display: flex;\n padding: 2px 3px 2px 19px;\n\n &.disabled {\n background-color: rgba(${Theme.yellowRGB}, 0.25);\n cursor: default;\n }\n\n p {\n color: ${Theme.white};\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n line-height: 17px;\n margin: 0;\n }\n\n .neko-side-tab-icon {\n color: ${Theme.white};\n margin-left: auto;\n height: 36px;\n width: 36px;\n }\n`;\n\nconst TabContent = Styled.div`\n background-color: ${Theme.white};\n display: none;\n\n &.active {\n display: block;\n }\n`;\n\n/**\n * Need to use with NecoTab\n */\nconst StyledNekoSideTabs = props => {\n\n const [activeTabIndex, setIsActiveTabIndex] = React.useState(props.activeTabIndex);\n\n const tabAttributes = React.Children.map(props.children, (child, i) => {\n const title = child.props.title || (\"Untitled Tab \" + (i + 1));\n const key = child.props.key || 'neko-tab-' + title.toLowerCase();\n const onClick = child.props.onClick ? child.props.onClick : null;\n const requirePro = !props.isPro && (child.props.requirePro || false);\n const onDragOver = child.props.onDragOver;\n const onDrop = child.props.onDrop;\n const rightActions = child.props.rightActions || null;\n return { key, title, onClick, requirePro, onDragOver, onDrop, rightActions };\n });\n\n const children = React.Children.map(props.children, (child, i) => {\n return React.cloneElement(child, {\n isActive: i === activeTabIndex\n });\n });\n\n const onTabClick = (tabIndex, tabAttr, ev) => {\n if (tabAttr.requirePro) return;\n const newTabIndex = tabIndex === activeTabIndex ? null : tabIndex;\n setIsActiveTabIndex(newTabIndex);\n if (props.onChange) {\n props.onChange(newTabIndex, tabAttr, ev);\n }\n };\n\n return (\n <TabContainer>\n {tabAttributes.map((attr, i) =>\n <React.Fragment>\n <Tab\n key={attr.key}\n className={`${i === activeTabIndex ? 'active' : ''} ${attr.requirePro ? 'disabled' : ''}`}\n onClick={(ev) => { onTabClick(i, attr, ev); }}\n onDragOver={attr.onDragOver}\n onDrop={attr.onDrop}\n >\n <p>\n <span style={{ fontSize: 15 }}>{attr.title}</span>\n <ProOnly className=\"inline\" show={attr.requirePro} />\n </p>\n {attr.rightActions === null\n ? <Icon icon={i === activeTabIndex ? chevronDown : chevronRight } className=\"neko-side-tab-icon\" />\n : (\n i === activeTabIndex\n ? <div style={{ marginLeft: 'auto' }}>{attr.rightActions}</div>\n : <Icon icon={chevronRight} className=\"neko-side-tab-icon\" />\n )\n }\n </Tab>\n { children[i] }\n </React.Fragment>\n )}\n </TabContainer>\n );\n};\n\n\n/**\n * @oaram {string} title\n * @param {bool} isActive\n */\nconst StyledNekoSideTab = props => {\n\n const { children, isActive } = props;\n\n return (\n <TabContent className={`${isActive ? 'active' : ''}`}>\n { children }\n </TabContent>\n );\n};\n\nconst NekoSideTabs = (props) => {\n return (<StyledNekoSideTabs {...props} />);\n};\n\nNekoSideTabs.propTypes = {\n isPro: PropTypes.bool,\n onChange: PropTypes.func,\n activeTabIndex: PropTypes.number\n};\n\nNekoSideTabs.defaultProps = {\n isPro: false,\n onChange: undefined,\n activeTabIndex: null\n};\n\nconst NekoSideTab = (props) => {\n return (<StyledNekoSideTab {...props} />);\n};\n\nNekoSideTab.propTypes = {\n isActive: PropTypes.bool,\n requirePro: PropTypes.bool,\n title: PropTypes.string,\n onDragOver: PropTypes.func,\n onDrop: PropTypes.func,\n rightActions: PropTypes.element\n};\n\nNekoSideTab.defaultProps = {\n isActive: false,\n requirePro: false,\n title: undefined,\n onDragOver: undefined,\n onDrop: undefined,\n rightActions: undefined\n};\n\nexport { NekoSideTab, NekoSideTabs };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Colors from '../common/NekoTheme';\n\nconst ToolbarBase = Styled.div`\n box-sizing: border-box;\n display: flex;\n width: 100%;\n padding: 10px 10px;\n background: ${Colors.white};\n border-radius: 10px;\n box-shadow: 0px 0px 10px rgba(${Colors.blackRGB}, 0.1);\n\n &.neko-align-left {\n justify-content: flex-start;\n }\n\n &.neko-align-right {\n justify-content: flex-end;\n }\n\n > *:not(:last-child) {\n margin-right: 5px;\n }\n`;\n\nconst StyledNekoToolbar = ({ align = 'left', ...props }) => {\n return (\n <ToolbarBase className={`neko-align-${align}`} {...props}>\n {props.children}\n </ToolbarBase>\n );\n};\n\nconst NekoToolbar = (props) => {\n return (<StyledNekoToolbar {...props} />);\n};\n\nNekoToolbar.propTypes = {\n align: PropTypes.oneOf(['left', 'right'])\n};\n\nNekoToolbar.defaultProps = {\n align: 'left'\n};\n\nexport { NekoToolbar };","class NekoError {\n\n constructor(message, code = '', url = null, body = null, debug = {}, ) {\n this.url = url;\n this.message = message;\n this.code = code;\n this.body = body;\n this.debug = debug;\n }\n}\n\nexport { NekoError };","import { cache, mutate } from 'swr';\nimport { NekoError } from './errors';\n\n// This function allows to invalidate a SWR key which might\n// have been use for paging, for example: swrInvalidateMany('/api/items')\n// will reset everything which happens around this key.\n\nfunction swrInvalidateMany(select) {\n const keys = cache.keys();\n const mutations = [];\n let regexp = new RegExp(`(.*)${select}(.*)`);\n for (let key of keys) {\n if (regexp.test(key)) {\n mutations.push(mutate(key, null, true));\n }\n }\n return Promise.all(mutations);\n}\n\nfunction chunkArrayInGroups(arr, size) {\n let result = [];\n for (let i = 0; i < arr.length; i += size)\n result.push(arr.slice(i, i + size));\n return result;\n}\n\nconst consolidateJsonResult = (json) => {\n if (!json.data) {\n return json;\n }\n if (json.data.length > 0 && json.data[0].meta) {\n for (let x of json.data) {\n try { x.meta = JSON.parse(x.meta); }\n catch (err) { console.error('[JsonFetcher]', 'Could not decode meta.', x.meta); }\n }\n }\n else if (json.data.meta) {\n try { json.data.meta = JSON.parse(json.data.meta); }\n catch (err) { console.error('[JsonFetcher]', 'Could not decode meta.', x.meta); }\n }\n return json;\n}\n\nconst jsonFetcher = async (url, options = {}) => {\n let body = null;\n let json = {};\n let nekoError = null;\n let rawBody = null;\n\n try {\n options = options ? options : {};\n options.headers = options.headers ? options.headers : {};\n options.headers['Pragma'] = 'no-cache';\n options.headers['Cache-Control'] = 'no-cache';\n rawBody = await fetch(`${url}`, options);\n body = await rawBody.text();\n json = JSON.parse(body);\n if (!json.success) {\n let code = json.success === false ? 'NOT-SUCCESS' : 'N/A';\n let message = json.message ? json.message : 'Unknown error. Check your Console Logs.';\n if (json.code === 'rest_no_route') {\n message = \"The API can't be accessed. Is Rest API enabled?\";\n code = 'NO-ROUTE';\n }\n else if (json.code === 'internal_server_error') {\n message = \"Server error. Please check your PHP Error Logs.\";\n code = 'SERVER-ERROR';\n }\n nekoError = new NekoError(message, code, url, body ? body : rawBody);\n }\n }\n catch (error) {\n let code = 'BROKEN-REPLY';\n let message = \"The reply sent by the server is broken.\";\n if (rawBody && rawBody.status) {\n if (rawBody.status === 408) {\n code = \"REQUEST-TIMEOUT\";\n message = \"The request generated a timeout.\";\n }\n }\n nekoError = new NekoError(message, code, url, body ? body : rawBody, error);\n }\n\n // Rewrite the Json if there is an error\n if (nekoError) {\n console.error('[NekoError] JsonFetcher', nekoError.url, { code: nekoError.code, \n error: nekoError.error, body: nekoError.body });\n json.success = false;\n json.error = nekoError;\n }\n return consolidateJsonResult(json);\n}\n\nconst getFetch = async (url, json, signal, nonce) => {\n const nonceHeader = nonce ? { 'X-WP-Nonce': nonce } : {};\n return jsonFetcher(url, { \n method: 'GET', \n headers: { 'Content-Type': 'application/json', ...nonceHeader },\n signal: signal\n });\n}\n\nconst postFetch = async (url, config = {}) => {\n const { json = {}, signal, file, nonce } = config;\n let formData = file ? new FormData() : null;\n if (file) {\n formData.append('file', file);\n for (const [key, value] of Object.entries(json)) {\n formData.append(key, value);\n }\n }\n\n const headers = nonce ? { 'X-WP-Nonce': nonce } : {};\n if (!formData) {\n headers['Content-Type'] = 'application/json';\n }\n\n return jsonFetcher(url, { \n method: 'POST',\n headers: headers,\n body: formData ? formData :JSON.stringify(json) ,\n signal: signal\n });\n}\n\nconst buildUrlWithParams = (apiUrl, params) => {\n const isPlainPermalink = apiUrl.includes('index.php?rest_route');\n const urlParams = new URLSearchParams(params);\n const finalUrl = apiUrl + (isPlainPermalink ? '&' : '?') + urlParams.toString();\n return finalUrl;\n}\n\nconst formatBytes = (bytes, decimals = 2) => {\n //if (bytes === 0) return '0 Bytes';\n const k = 1024;\n const dm = decimals < 0 ? 0 : decimals;\n const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n let i = bytes > 0 ? Math.floor(Math.log(bytes) / Math.log(k)) : 0;\n if ( sizes[i] === 'Bytes' ) {\n i = 1;\n }\n bytes = parseFloat((bytes / Math.pow(k, i)).toFixed(dm));\n var str = bytes.toFixed(Math.max(dm, (bytes.toString().split('.')[1] || []).length));\n return str + ' ' + sizes[i];\n \n}\n\nexport { getFetch, postFetch, jsonFetcher, swrInvalidateMany, chunkArrayInGroups, buildUrlWithParams, formatBytes };","const prefix = mgcl_gallery_custom_links.prefix;\nconst domain = mgcl_gallery_custom_links.domain;\nconst restUrl = mgcl_gallery_custom_links.rest_url.replace(/\\/+$/, \"\");\nconst apiUrl = mgcl_gallery_custom_links.api_url.replace(/\\/+$/, \"\");\nconst pluginUrl = mgcl_gallery_custom_links.plugin_url.replace(/\\/+$/, \"\");\nconst isPro = mgcl_gallery_custom_links.is_pro === '1';\nconst isRegistered = isPro && mgcl_gallery_custom_links.is_registered === '1';\nconst restNonce = mgcl_gallery_custom_links.rest_nonce;\n\nexport { prefix, domain, apiUrl, restUrl, pluginUrl, isPro, isRegistered, restNonce };\n","// React & Vendor Libs\nconst { useState, useMemo } = wp.element;\nimport useSWR from 'swr';\n\n// NekoUI\nimport { NekoInput, NekoTypo, NekoPage, NekoBlock, NekoHeader, NekoContainer, NekoSettings,\n NekoTabs, NekoTab, NekoCheckboxGroup, NekoCheckbox, NekoWrapper, NekoSelect, NekoOption,\n NekoColumn } from '@neko-ui';\nimport { jsonFetcher, postFetch, useHandleSWR } from '@neko-ui';\n\nimport { apiUrl, restNonce } from '@app/settings';\n\nconst Settings = () => {\n\n const swrAllSettingsKey = useMemo(() => {\n return [`${apiUrl}/all_settings/`, { headers: { 'X-WP-Nonce': restNonce } }];\n }, [apiUrl, restNonce]);\n const { data: swrSettings, mutate: mutateSwrSettings } = useSWR(swrAllSettingsKey, jsonFetcher);\n const { busy: busySettings, data: settings, error: swrError } = useHandleSWR(swrSettings, {}, true);\n const [ busyAction, setBusyAction ] = useState(false);\n const busy = busySettings || busyAction;\n\n const obmode = settings?.mgcl_obmode;\n const parsingEngine = settings?.mgcl_parsing_engine;\n const log = settings?.mgcl_log;\n const buttonEnabled = settings?.mgcl_button_enabled;\n const buttonLabel = settings?.mgcl_button_label;\n\n const parsingEngineOptions = [\n { id: \"none\", value: \"None\", label: \"None (Not Supported Yet)\"},\n { id: \"htmldomparser\", value: \"HtmlDomParser\", label: \"HtmlDomParser\" },\n { id: \"didom\", value: \"DiDom\", label: \"DiDom\" }\n ]\n\n const updateOption = async (value, id) => {\n let newSettingsData = { ...swrSettings.data };\n newSettingsData[id] = value;\n mutateSwrSettings({ ...swrSettings, data: newSettingsData }, false);\n setBusyAction(true);\n try {\n await postFetch(`${apiUrl}/update_option`, { json: { name: id, value }, nonce: restNonce });\n }\n catch (err) {\n alert(err.message);\n }\n finally {\n setBusyAction(false);\n mutateSwrSettings();\n }\n }\n\n /**\n * Settings\n */\n\n const jsxOBMode =\n <NekoSettings title=\"OB Mode\">\n <NekoCheckboxGroup max=\"1\">\n <NekoCheckbox id=\"mgcl_obmode\" label=\"Enabled\" value=\"1\" checked={obmode} onChange={updateOption} description=\"If the linked images are outside of the main content (header, sidebar, etc), OB Mode is needed. This slows down the processing (cache recommended).\" />\n </NekoCheckboxGroup>\n </NekoSettings>;\n\n const jsxParsingEngine =\n <NekoSettings title=\"Parsing Engine\" description=\"Hello\">\n <NekoSelect id=\"mgcl_parsing_engine\" onChange={updateOption}>\n {parsingEngineOptions.map(option => <NekoOption id={`mgcl_parsing_engine_${option.id}`} value={option.value} label={option.label} checked={parsingEngine === option.value} /> )}\n </NekoSelect>\n </NekoSettings>;\n\n const jsxLog =\n <NekoSettings title=\"Logs\">\n <NekoCheckboxGroup max=\"1\">\n <NekoCheckbox id=\"mgcl_log\" label=\"Logs\" value=\"1\" checked={log} onChange={updateOption} description=\"Simple logging, written directly in the PHP Error Logs.\" />\n </NekoCheckboxGroup>\n </NekoSettings>;\n\n /**\n * CTA Buttons\n */\n const jsxUseButtons =\n <NekoSettings title=\"Use Buttons\">\n <NekoCheckboxGroup max=\"1\">\n <NekoCheckbox id=\"mgcl_button_enabled\" label=\"Enabled\" value=\"1\" description=\"A call-to-action button will be used of a clickable image.\" checked={buttonEnabled} onChange={updateOption} />\n </NekoCheckboxGroup>\n </NekoSettings>;\n\n const jsxButtonLabel =\n <NekoSettings title=\"Label\">\n <NekoInput id=\"mgcl_button_label\" name=\"mgcl_button_label\" value={buttonLabel} description=\"A call-to-action button will be used of a clickable image.\" onBlur={updateOption} />\n </NekoSettings>;\n\n return (\n <NekoPage nekoErrors={[ swrError ]}>\n\n <NekoHeader title='Gallery Custom Links | Settings' subtitle='By Jordy Meow' />\n\n <NekoWrapper>\n\n <NekoColumn full>\n <NekoContainer>\n <NekoTypo p>This plugin works out of the box, the default settings are the best for most installs. Don't hesitate to take a look at the <a href=\"https://meowapps.com/plugin/gallery-custom-links/\">official page</a>.</NekoTypo>\n </NekoContainer>\n\n <NekoTabs>\n\n <NekoTab title='Settings'>\n <NekoWrapper>\n\n <NekoColumn minimal>\n <NekoBlock busy={busy} title=\"Settings\" className=\"primary\">\n {jsxParsingEngine}\n {jsxOBMode}\n {jsxLog}\n </NekoBlock>\n </NekoColumn>\n\n <NekoColumn minimal>\n <NekoBlock busy={busy} title=\"CTA Buttons\" className=\"primary\">\n <NekoTypo p><b>Currently works with the <a href=\"https://wordpress.org/plugins/meow-gallery/\">Meow Gallery</a> and Gutenberg Galleries.</b> In a future Pro version, support for additional galleries might be added (please contact <a href=\"https://meowapps.com/contact/\">Meow Apps</a> for this).</NekoTypo>\n {jsxUseButtons}\n {!buttonEnabled ? null : jsxButtonLabel}\n </NekoBlock>\n </NekoColumn>\n\n </NekoWrapper>\n </NekoTab>\n\n </NekoTabs>\n\n </NekoColumn>\n\n </NekoWrapper>\n\n </NekoPage>\n );\n};\n\nexport default Settings;","const { __ } = wp.i18n;\n\nconst i18n = {};\n\ni18n.PENDING = __( 'Pending', 'gallery-custom-links' );\ni18n.RENAME = __( 'Rename', 'gallery-custom-links' );\ni18n.TITLE = __( 'Title', 'gallery-custom-links' );\ni18n.SAME_PAGE = __( 'Same page', 'gallery-custom-links' );\ni18n.NEW_PAGE = __( 'New page', 'gallery-custom-links' );\ni18n.LINK_URL = __( 'Link URL', 'gallery-custom-links' );\ni18n.LINK_TARGET = __( 'Link Target', 'gallery-custom-links' );\ni18n.LINK_REL = __( 'Link Rel', 'gallery-custom-links' );\ni18n.ARIAL_LABEL = __( 'Arial Label', 'gallery-custom-links' );\n\nexport default i18n;\n\n","// React & Vendor Libs\nconst { useState, useCallback } = wp.element;\nimport Styled from \"styled-components\";\n\n// Libs\nimport i18n from '@app/i18n';\nimport { apiUrl, restNonce } from '@app/settings';\n\n// NekoUI\nimport { NekoTypo, NekoIcon, NekoModal, NekoInput, NekoSelect, NekoOption } from '@neko-ui';\nimport { postFetch } from '@neko-ui';\n\nconst targets = [\n\t{ label: i18n.SAME_PAGE, value: '_self' },\n\t{ label: i18n.NEW_PAGE, value: '_blank' }\n];\n\nconst GroupContainer = Styled.div`\n\talign-items: center;\n\tdisplay: flex;\n\tmargin-bottom: 10px;\n\n\tp {\n\t\tmargin: 0 !important;\n\t\twidth: 20%;\n\t}\n\n\t> div {\n\t\tflex-grow: 1;\n\t}\n`;\n\nconst EditLinkField = ( props ) => {\n\n\tconst [ busyAction, setBusyAction ] = useState(false);\n\tconst busy = busyAction;\n\n\tconst { postId } = props;\n\tconst [ url, setUrl ] = useState( props.url );\n\tconst [ target, setTarget ] = useState( props.target ? props.target : '_self' );\n\tconst [ rel, setRel ] = useState( props.rel );\n\tconst [ aria, setAria ] = useState( props.aria );\n\tconst [ openModal, setOpenModal ] = useState( false );\n\n\tconst updateOption = async (postId, url, target, rel, aria) => {\n\t\tsetBusyAction( true );\n\t\tlet result = true;\n\t\ttry {\n\t\t\tconst res = await postFetch( `${apiUrl}/update_meta`, { json: {\n\t\t\t\tpost_id: postId,\n\t\t\t\t_gallery_link_url: url,\n\t\t\t\t_gallery_link_target: target,\n\t\t\t\t_gallery_link_rel: rel,\n\t\t\t\t_gallery_link_aria: aria,\n\t\t\t}, nonce: restNonce } );\n\t\t\tif ( !res.success ) {\n\t\t\t\tresult = false;\n\t\t\t\talert(res.message);\n\t\t\t}\n\t\t} catch ( err ) {\n\t\t\tresult = false;\n\t\t\talert( err.message );\n\t\t} finally {\n\t\t\tif ( result ) onCloseModal();\n\t\t\tsetBusyAction( false );\n\t\t}\n\t};\n\n\tconst onCloseModal = () => setOpenModal( false )\n\n\tconst onOkClick = useCallback(() => {\n\t\tupdateOption( postId, url, target, rel, aria );\n\t}, [postId, url, target, rel, aria, updateOption, onCloseModal]);\n\n const onKeyDown = useCallback((e) => {\n if (e.key === 'Enter' || e.keyCode === 13) {\n e.preventDefault();\n onOkClick();\n }\n }, [onOkClick]);\n\n\treturn (\n\t\t<>\n\t\t\t<span onClick={() => setOpenModal( true )} style={{ cursor: 'pointer' }}>\n\t\t\t\t<NekoIcon icon=\"link\" disabled={!url} />\n\t\t\t</span>\n\t\t\t<NekoModal\n\t\t\t\tisOpen={openModal}\n\t\t\t\tonRequestClose={onCloseModal}\n\t\t\t\ttitle=\"Edit the custom link\"\n\t\t\t\tcontent={\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.LINK_URL}</NekoTypo>\n\t\t\t\t\t\t\t<NekoInput disabled={busy} onInput={(e) => setUrl(e.target.value)}\n onKeyDown={onKeyDown} value={url} autoFocus />\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.LINK_TARGET}</NekoTypo>\n\t\t\t\t\t\t\t<NekoSelect scrolldown={true} value={target} onChange={(v) => setTarget(v)} disabled={busy}>\n\t\t\t\t\t\t\t\t{targets.map(target => <NekoOption value={target.value} label={target.label} />)}\n\t\t\t\t\t\t\t</NekoSelect>\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.LINK_REL}</NekoTypo>\n\t\t\t\t\t\t\t<NekoInput disabled={busy} onInput={(e) => setRel(e.target.value)} value={rel} />\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.ARIAL_LABEL}</NekoTypo>\n\t\t\t\t\t\t\t<NekoInput disabled={busy} onInput={(e) => setAria(e.target.value)} value={aria} />\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\tonOkClick={onOkClick}\n\t\t\t\tonCancelClick={onCloseModal}\n\t\t\t/>\n\t\t</>\n\t);\n};\n\nexport default EditLinkField;","// React & Vendor Libs\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\n// Gallery Custom Links\nimport Settings from '@app/components/Settings';\nimport EditLinkField from '@app/components/EditLinkField';\n\nlet isMediaLibrary = null;\n\nfunction init() {\n\tisMediaLibrary = document.getElementsByClassName('upload-php')[0];\n}\n\n// Gallery Custom Links Settings\nfunction addSettings() {\n\tconst container = document.getElementById('mgcl-admin-settings');\n\tif (container) {\n\t\tReactDOM.render((<Settings />), container);\n\t\treturn true;\n\t}\n\treturn false;\n}\n\ndocument.addEventListener('DOMContentLoaded', function(event) {\n\n\tinit();\n\n\tif (addSettings() || !isMediaLibrary) {\n\t\treturn;\n\t}\n\n\t// Edit Link Fields need to be added in the Media Library\n\tconst fields = Array.from(document.getElementsByClassName('mgcl-edit-link-field'));\n\tfields.forEach(field => {\n\t\tconst postId = field.getAttribute('data-post-id');\n\t\tconst url = field.getAttribute('data-url');\n\t\tconst target = field.getAttribute('data-target');\n\t\tconst rel = field.getAttribute('data-rel');\n\t\tconst aria = field.getAttribute('data-aria');\n\t\tReactDOM.render((<EditLinkField postId={postId} url={url} target={target} rel={rel} aria={aria} />), field);\n\t});\n\n});\n"],"sourceRoot":""}
app/vendor.js CHANGED
@@ -1,4 +1,4 @@
1
- (window.wpJsonMgcl=window.wpJsonMgcl||[]).push([[1],[,function(e,t,n){e.exports=n(80)()},function(e,t,n){"use strict";(function(e){var r=n(18),o=n(0),i=n.n(o),a=n(69),u=n.n(a),l=n(70),s=n(71),c=n(25),f=n(22),d=n.n(f);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},v=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},y=Object.freeze([]),b=Object.freeze({});function m(e){return"function"==typeof e}function g(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var _=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,O=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY));function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var k=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&S(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),u=0,l=t.length;u<l;u++)this.tag.insertRule(a,t[u])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),M=new Map,A=new Map,x=1,E=function(e){if(M.has(e))return M.get(e);for(;A.has(x);)x++;var t=x++;return M.set(e,t),A.set(t,e),t},P=function(e){return A.get(e)},j=function(e,t){t>=x&&(x=t+1),M.set(e,t),A.set(t,e)},I="style["+_+'][data-styled-version="5.3.1"]',R=new RegExp("^"+_+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),T=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},L=function(e,t){for(var n=(t.innerHTML||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var u=a.match(R);if(u){var l=0|parseInt(u[1],10),s=u[2];0!==l&&(j(s,l),T(e,s,u[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},z=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},F=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(_))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(_,"active"),r.setAttribute("data-styled-version","5.3.1");var a=z();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},D=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}S(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),N=function(){function e(e){var t=this.element=F(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),H=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),V=C,q={isServer:!C,useCSSOMInjection:!O},$=function(){function e(e,t,n){void 0===e&&(e=b),void 0===t&&(t={}),this.options=h({},q,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&V&&(V=!1,function(e){for(var t=document.querySelectorAll(I),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(_)&&(L(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return E(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new H(o):r?new D(o):new N(o),new k(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(E(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(E(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(E(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=P(o);if(void 0!==i){var a=e.names.get(i),u=t.getGroup(o);if(a&&u&&a.size){var l=_+".g"+o+'[id="'+i+'"]',s="";void 0!==a&&a.forEach((function(e){e.length>0&&(s+=e+",")})),r+=""+u+l+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},e}(),W=/(a)(d)/gi,U=function(e){return String.fromCharCode(e+(e>25?39:97))};function B(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=U(t%52)+n;return(U(t%52)+n).replace(W,"$1-$2")}var G=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},K=function(e){return G(5381,e)};function Y(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(m(n)&&!w(n))return!1}return!0}var X=K("5.3.1"),Q=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Y(e),this.componentId=t,this.baseHash=G(X,t),this.baseStyle=n,$.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ve(this.rules,e,t,n).join(""),a=B(G(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var u=n(i,"."+a,void 0,r);t.insertRules(r,a,u)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,s=G(this.baseHash,n.hash),c="",f=0;f<l;f++){var d=this.rules[f];if("string"==typeof d)c+=d;else if(d){var h=ve(d,e,t,n),p=Array.isArray(h)?h.join(""):h;s=G(s,p+f),c+=p}}if(c){var v=B(s>>>0);if(!t.hasNameForId(r,v)){var y=n(c,"."+v,void 0,r);t.insertRules(r,v,y)}o.push(v)}}return o.join(" ")},e}(),J=/^\s*\/\/.*$/gm,Z=[":","[",".","#"];function ee(e){var t,n,r,o,i=void 0===e?b:e,a=i.options,u=void 0===a?b:a,s=i.plugins,c=void 0===s?y:s,f=new l.a(u),d=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,u,l,s,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,i){return 0===r&&-1!==Z.indexOf(i[n.length])||i.match(o)?e:"."+t};function v(e,i,a,u){void 0===u&&(u="&");var l=e.replace(J,""),s=i&&a?a+" "+i+" { "+l+" }":l;return t=u,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(a||!i?"":i,s)}return f.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},h,function(e){if(-2===e){var t=d;return d=[],t}}])),v.hash=c.length?c.reduce((function(e,t){return t.name||S(15),G(e,t.name)}),5381).toString():"",v}var te=i.a.createContext(),ne=(te.Consumer,i.a.createContext()),re=(ne.Consumer,new $),oe=ee();function ie(){return Object(o.useContext)(te)||re}function ae(){return Object(o.useContext)(ne)||oe}function ue(e){var t=Object(o.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ie(),l=Object(o.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),s=Object(o.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(o.useEffect)((function(){u()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.a.createElement(te.Provider,{value:l},i.a.createElement(ne.Provider,{value:s},e.children))}var le=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=oe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return S(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),se=/([A-Z])/,ce=/([A-Z])/g,fe=/^ms-/,de=function(e){return"-"+e.toLowerCase()};function he(e){return se.test(e)?e.replace(ce,de).replace(fe,"-ms-"):e}var pe=function(e){return null==e||!1===e||""===e};function ve(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,u=e.length;a<u;a+=1)""!==(o=ve(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return pe(e)?"":w(e)?"."+e.styledComponentId:m(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ve(e(t),t,n,r):e instanceof le?n?(e.inject(n,r),e.getName(r)):e:v(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!pe(t[a])&&(Array.isArray(t[a])&&t[a].isCss||m(t[a])?i.push(he(a)+":",t[a],";"):v(t[a])?i.push.apply(i,e(t[a],a)):i.push(he(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in s.a?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var ye=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return m(e)||v(e)?ye(ve(p(y,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ye(ve(p(e,n)))}new Set;var me=function(e,t,n){return void 0===n&&(n=b),e.theme!==n.theme&&e.theme||t||n.theme},ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function _e(e){return e.replace(ge,"-").replace(we,"")}var Ce=function(e){return B(K(e)>>>0)};function Oe(e){return"string"==typeof e&&!0}var Se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ke=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Me(e,t,n){var r=e[n];Se(t)&&Se(r)?Ae(r,t):e[n]=t}function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Se(a))for(var u in a)ke(u)&&Me(e,a[u],u)}return e}var xe=i.a.createContext();xe.Consumer;var Ee={};function Pe(e,t,n){var r=w(e),a=!Oe(e),u=t.attrs,l=void 0===u?y:u,s=t.componentId,f=void 0===s?function(e,t){var n="string"!=typeof e?"sc":_e(e);Ee[n]=(Ee[n]||0)+1;var r=n+"-"+Ce("5.3.1"+n+Ee[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):s,p=t.displayName,v=void 0===p?function(e){return Oe(e)?"styled."+e:"Styled("+g(e)+")"}(e):p,_=t.displayName&&t.componentId?_e(t.displayName)+"-"+t.componentId:t.componentId||f,C=r&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,O=t.shouldForwardProp;r&&e.shouldForwardProp&&(O=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var S,k=new Q(n,_,r?e.componentStyle:void 0),M=k.isStatic&&0===l.length,A=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,u=e.defaultProps,l=e.foldedComponentIds,s=e.shouldForwardProp,f=e.styledComponentId,d=e.target,p=function(e,t,n){void 0===e&&(e=b);var r=h({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in m(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(me(t,Object(o.useContext)(xe),u)||b,t,i),v=p[0],y=p[1],g=function(e,t,n,r){var o=ie(),i=ae();return t?e.generateAndInjectStyles(b,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,v),w=n,_=y.$as||t.$as||y.as||t.as||d,C=Oe(_),O=y!==t?h({},t,{},y):t,S={};for(var k in O)"$"!==k[0]&&"as"!==k&&("forwardedAs"===k?S.as=O[k]:(s?s(k,c.a,_):!C||Object(c.a)(k))&&(S[k]=O[k]));return t.style&&y.style!==t.style&&(S.style=h({},t.style,{},y.style)),S.className=Array.prototype.concat(l,f,g!==f?g:null,t.className,y.className).filter(Boolean).join(" "),S.ref=w,Object(o.createElement)(_,S)}(S,e,t,M)};return A.displayName=v,(S=i.a.forwardRef(A)).attrs=C,S.componentStyle=k,S.displayName=v,S.shouldForwardProp=O,S.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):y,S.styledComponentId=_,S.target=r?e.target:e,S.withComponent=function(e){var r=t.componentId,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}(t,["componentId"]),i=r&&r+"-"+(Oe(e)?e:_e(g(e)));return Pe(e,h({},o,{attrs:C,componentId:i}),n)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Ae({},e.defaultProps,t):t}}),S.toString=function(){return"."+S.styledComponentId},a&&d()(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var je=function(e){return function e(t,n,o){if(void 0===o&&(o=b),!Object(r.isValidElementType)(n))return S(1,String(n));var i=function(){return t(n,o,be.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,h({},o,{},r))},i.attrs=function(r){return e(t,n,h({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Pe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){je[e]=je(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Y(e),$.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var o=r(ve(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&$.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=z();return"<style "+[n&&'nonce="'+n+'"',_+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?S(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return S(2);var n=((t={})[_]="",t["data-styled-version"]="5.3.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=z();return r&&(n.nonce=r),[i.a.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new $({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?S(2):i.a.createElement(ue,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return S(3)}}();t.a=je}).call(this,n(83))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.InlineIcon=t.Icon=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};function i(e){return(i="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})(e)}function a(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,r.key,r)}}var u=0,l=/(-?[0-9.]*[0-9]+[0-9.]*)/g,s=/^-?[0-9.]*[0-9]+[0-9.]*$/g,c=["width","height","inline","hFlip","vFlip","flip","rotate","align","color","box"],f={left:0,top:0,width:16,height:16,rotate:0,hFlip:!1,vFlip:!1};var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=t}var t,n,r;return t=e,r=[{key:"splitAttributes",value:function(e){var t={icon:Object.create(null),node:Object.create(null)};return Object.keys(e).forEach((function(n){t[-1===c.indexOf(n)?"node":"icon"][n]=e[n]})),t}},{key:"calculateDimension",value:function(e,t,n){if(1===t)return e;if(n=void 0===n?100:n,"number"==typeof e)return Math.ceil(e*t*n)/n;var r=e.split(l);if(null===r||!r.length)return null;for(var o,i=[],a=r.shift(),u=s.test(a);;){if(u?(o=parseFloat(a),isNaN(o)?i.push(a):i.push(Math.ceil(o*t*n)/n)):i.push(a),void 0===(a=r.shift()))return i.join("");u=!u}}},{key:"replaceIDs",value:function(e){var t,n,r=/\sid="(\S+)"/g,o=[];function i(e,t,n){for(var r=0;-1!==(r=n.indexOf(e,r));)n=n.slice(0,r)+t+n.slice(r+e.length),r+=t.length;return n}for(;t=r.exec(e);)o.push(t[1]);return o.length?(n="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o.forEach((function(t){var r=n+u;u++,e=i('="'+t+'"','="'+r+'"',e),e=i('="#'+t+'"','="#'+r+'"',e),e=i("(#"+t+")","(#"+r+")",e)})),e):e}}],(n=[{key:"getAttributes",value:function(t){var n=this._item;"object"!==i(t)&&(t=Object.create(null));var r={horizontal:"center",vertical:"middle",slice:!1},o={rotate:n.rotate,hFlip:n.hFlip,vFlip:n.vFlip},a=Object.create(null),u=Object.create(null),l=!0===t.inline||"true"===t.inline||"1"===t.inline,s={left:n.left,top:l?n.inlineTop:n.top,width:n.width,height:l?n.inlineHeight:n.height};if(["hFlip","vFlip"].forEach((function(e){void 0===t[e]||!0!==t[e]&&"true"!==t[e]&&"1"!==t[e]||(o[e]=!o[e])})),void 0!==t.flip&&t.flip.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"horizontal":o.hFlip=!o.hFlip;break;case"vertical":o.vFlip=!o.vFlip}})),void 0!==t.rotate){var c=t.rotate;if("number"==typeof c)o.rotate+=c;else if("string"==typeof c){var f=c.replace(/^-?[0-9.]*/,"");if(""===f)c=parseInt(c),isNaN(c)||(o.rotate+=c);else if(f!==c){var d=!1;switch(f){case"%":d=25;break;case"deg":d=90}d&&(c=parseInt(c.slice(0,c.length-f.length)),isNaN(c)||(o.rotate+=Math.round(c/d)))}}}var h,p=[];switch(o.hFlip?o.vFlip?o.rotate+=2:(p.push("translate("+(s.width+s.left)+" "+(0-s.top)+")"),p.push("scale(-1 1)"),s.top=s.left=0):o.vFlip&&(p.push("translate("+(0-s.left)+" "+(s.height+s.top)+")"),p.push("scale(1 -1)"),s.top=s.left=0),o.rotate%4){case 1:h=s.height/2+s.top,p.unshift("rotate(90 "+h+" "+h+")"),0===s.left&&0===s.top||(h=s.left,s.left=s.top,s.top=h),s.width!==s.height&&(h=s.width,s.width=s.height,s.height=h);break;case 2:p.unshift("rotate(180 "+(s.width/2+s.left)+" "+(s.height/2+s.top)+")");break;case 3:h=s.width/2+s.left,p.unshift("rotate(-90 "+h+" "+h+")"),0===s.left&&0===s.top||(h=s.left,s.left=s.top,s.top=h),s.width!==s.height&&(h=s.width,s.width=s.height,s.height=h)}var v,y,b=t.width?t.width:null,m=t.height?t.height:null;null===b&&null===m&&(m="1em"),null!==b&&null!==m?(v=b,y=m):null!==b?(v=b,y=e.calculateDimension(v,s.height/s.width)):(y=m,v=e.calculateDimension(y,s.width/s.height)),!1!==v&&(u.width="auto"===v?s.width:v),!1!==y&&(u.height="auto"===y?s.height:y),l&&0!==n.verticalAlign&&(a["vertical-align"]=n.verticalAlign+"em"),void 0!==t.align&&t.align.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"left":case"right":case"center":r.horizontal=e;break;case"top":case"bottom":case"middle":r.vertical=e;break;case"crop":r.slice=!0;break;case"meet":r.slice=!1}})),u.preserveAspectRatio=function(e){var t;switch(e.horizontal){case"left":t="xMin";break;case"right":t="xMax";break;default:t="xMid"}switch(e.vertical){case"top":t+="YMin";break;case"bottom":t+="YMax";break;default:t+="YMid"}return t+=e.slice?" slice":" meet"}(r),u.viewBox=s.left+" "+s.top+" "+s.width+" "+s.height;var g=e.replaceIDs(n.body);return void 0!==t.color&&(g=g.replace(/currentColor/g,t.color)),p.length&&(g='<g transform="'+p.join(" ")+'">'+g+"</g>"),!0!==t.box&&"true"!==t.box&&"1"!==t.box||(g+='<rect x="'+s.left+'" y="'+s.top+'" width="'+s.width+'" height="'+s.height+'" fill="rgba(0, 0, 0, 0)" />'),{attributes:u,body:g,style:a}}},{key:"getSVG",value:function(t,n){var r=e.splitAttributes(t),o=this.getAttributes(r.icon),i='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"';return n&&Object.keys(r.node).forEach((function(e){i+=" "+e+'="'+r.node[e]+'"'})),Object.keys(o.attributes).forEach((function(e){i+=" "+e+'="'+o.attributes[e]+'"'})),i+=' style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);',Object.keys(o.style).forEach((function(e){i+=" "+e+": "+o.style[e]+";"})),t&&void 0!==t.style&&(i+=t.style),i+='">',i+=o.body+"</svg>"}}])&&a(t.prototype,n),r&&a(t,r),e}();function h(e,t){if("object"!==i(e.icon))return null;var n=d.splitAttributes(e),r=n.icon,a=n.node;delete a.icon,void 0===r.inline&&(r.inline=t);var u=new d(function(e){var t,n=Object.create(null);for(t in f)n[t]=f[t];for(t in e)n[t]=e[t];return void 0===n.inlineTop&&(n.inlineTop=n.top),void 0===n.inlineHeight&&(n.inlineHeight=n.height),void 0===n.verticalAlign&&(n.verticalAlign=n.height%7==0&&n.height%8!=0?-.143:-.125),n}(e.icon)).getAttributes(r),l={transform:"rotate(360deg)"};if(void 0!==u.style["vertical-align"]&&(l.verticalAlign=u.style["vertical-align"]),void 0!==e.style)for(var s in e.style)l[s]=e.style[s];var c,h={xmlns:"http://www.w3.org/2000/svg",focusable:!1,style:l};for(c in a)h[c]=a[c];for(c in u.attributes)h[c]=u.attributes[c];return h.dangerouslySetInnerHTML={__html:u.body},o.default.createElement("svg",h,null)}var p=function(e){return h(e,!1)};t.Icon=p;t.InlineIcon=function(e){return h(e,!0)};var v=p;t.default=v},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function u(e,t,n){return(u=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o}).apply(null,arguments)}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,o(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i(r,e)})(e)}function s(e){return(s="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})(e)}n.d(t,"a",(function(){return D}));var c=function(e){var t,n;function r(t){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(l(Error));function f(e){return Math.round(255*e)}function d(e,t,n){return f(e)+","+f(t)+","+f(n)}function h(e,t,n,r){if(void 0===r&&(r=d),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),u=0,l=0,s=0;o>=0&&o<1?(u=i,l=a):o>=1&&o<2?(u=a,l=i):o>=2&&o<3?(l=i,s=a):o>=3&&o<4?(l=a,s=i):o>=4&&o<5?(u=a,s=i):o>=5&&o<6&&(u=i,s=a);var c=n-i/2;return r(u+c,l+c,s+c)}var p={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var v=/^#[a-fA-F0-9]{6}$/,y=/^#[a-fA-F0-9]{8}$/,b=/^#[a-fA-F0-9]{3}$/,m=/^#[a-fA-F0-9]{4}$/,g=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,_=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,C=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function O(e){if("string"!=typeof e)throw new c(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return p[t]?"#"+p[t]:e}(e);if(t.match(v))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(y)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(b))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(m)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=g.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=w.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=_.exec(t);if(a){var u="rgb("+h(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",l=g.exec(u);if(!l)throw new c(4,t,u);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var s=C.exec(t);if(s){var f="rgb("+h(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",d=g.exec(f);if(!d)throw new c(4,t,f);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+s[4])}}throw new c(5)}function S(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),u=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var l=i-a,s=u>.5?l/(2-i-a):l/(i+a);switch(i){case n:t=(r-o)/l+(r<o?6:0);break;case r:t=(o-n)/l+2;break;default:t=(n-r)/l+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:s,lightness:u,alpha:e.alpha}:{hue:t,saturation:s,lightness:u}}(O(e))}var k=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function M(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function A(e){return M(Math.round(255*e))}function x(e,t,n){return k("#"+A(e)+A(t)+A(n))}function E(e,t,n){return h(e,t,n,x)}function P(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return E(e,t,n);if("object"===s(e)&&void 0===t&&void 0===n)return E(e.hue,e.saturation,e.lightness);throw new c(1)}function j(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?E(e,t,n):"rgba("+h(e,t,n)+","+r+")";if("object"===s(e)&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?E(e.hue,e.saturation,e.lightness):"rgba("+h(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new c(2)}function I(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return k("#"+M(e)+M(t)+M(n));if("object"===s(e)&&void 0===t&&void 0===n)return k("#"+M(e.red)+M(e.green)+M(e.blue));throw new c(6)}function R(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=O(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?I(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"===s(e)&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?I(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new c(7)}function T(e){if("object"!==s(e))throw new c(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return R(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return I(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return j(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return P(e);throw new c(8)}function L(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function z(e,t,n){return Math.max(e,Math.min(t,n))}function F(e,t){if("transparent"===t)return t;var n=S(t);return T(r({},n,{lightness:z(0,1,n.lightness+parseFloat(e))}))}var D=L(F)},function(e,t){t.__esModule=!0,t.default={body:'<path d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M10 4H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2z" fill="currentColor"/>',width:24,height:24}},,function(e,t){t.__esModule=!0,t.default={body:'<path d="M18.41 7.41L17 6l-6 6l6 6l1.41-1.41L13.83 12l4.58-4.59m-6 0L11 6l-6 6l6 6l1.41-1.41L7.83 12l4.58-4.59z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M5.59 7.41L7 6l6 6l-6 6l-1.41-1.41L10.17 12L5.59 7.41m6 0L13 6l6 6l-6 6l-1.41-1.41L16.17 12l-4.58-4.59z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6l6 6l1.41-1.42z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M14 19h4V5h-4M6 19h4V5H6v14z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M8 5.14v14l11-7l-11-7z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M18 18H6V6h12v12z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M19 20H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6l2 2h7a2 2 0 0 1 2 2H4v10l2.14-8h17.07l-2.28 8.5c-.23.87-1.01 1.5-1.93 1.5z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M21 17H7V3h14m0-2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2M3 5H1v16a2 2 0 0 0 2 2h16v-2H3m12.96-10.71l-2.75 3.54l-1.96-2.36L8.5 15h11l-3.54-4.71z" fill="currentColor"/>',width:24,height:24}},function(e,t,n){"use strict";e.exports=n(84)},function(e,t){t.__esModule=!0,t.default={body:'<path d="M19 3H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 2v14H5V5h14z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M10 17l-5-5l1.41-1.42L10 14.17l7.59-7.59L19 8m0-5H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2z" fill="currentColor"/>',width:24,height:24}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var r,o=n(95);var i=((r=o)&&r.__esModule?r:{default:r}).default,a=i.canUseDOM?window.HTMLElement:{};t.canUseDOM=i.canUseDOM;t.default=a},function(e,t,n){"use strict";var r=n(18),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},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function l(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var u=l(t),v=l(n),y=0;y<a.length;++y){var b=a[y];if(!(i[b]||r&&r[b]||v&&v[b]||u&&u[b])){var m=d(n,b);try{s(t,b,m)}catch(e){}}}}return t}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,l,"next",e)}function l(e){r(a,o,i,u,l,"throw",e)}u(void 0)}))}}function i(e){return(i="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})(e)}function a(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,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=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}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0});var d=n(85),h=n(86),p=n(88),v=function(){},y=new h.TimeoutError,b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(g,e);var t,n,r,s,f,d,b,m=l(g);function g(e){var t,n,r,o,a;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),t=m.call(this),Object.defineProperty(c(t),"_carryoverConcurrencyCount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(t),"_isIntervalIgnored",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(t),"_intervalCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(t),"_intervalCap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(t),"_interval",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(t),"_intervalEnd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(t),"_intervalId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(t),"_timeoutId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(t),"_queue",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(t),"_queueClass",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(t),"_pendingCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(c(t),"_concurrency",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(t),"_isPaused",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(t),"_resolveEmpty",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(c(t),"_resolveIdle",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(c(t),"_timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(c(t),"_throwOnTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!("number"==typeof(e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:p.default},e)).intervalCap&&e.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(r=null===(n=e.intervalCap)||void 0===n?void 0:n.toString())&&void 0!==r?r:"","` (").concat(i(e.intervalCap),")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(a=null===(o=e.interval)||void 0===o?void 0:o.toString())&&void 0!==a?a:"","` (").concat(i(e.interval),")"));return t._carryoverConcurrencyCount=e.carryoverConcurrencyCount,t._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,t._intervalCap=e.intervalCap,t._interval=e.interval,t._queue=new e.queueClass,t._queueClass=e.queueClass,t.concurrency=e.concurrency,t._timeout=e.timeout,t._throwOnTimeout=!0===e.throwOnTimeout,t._isPaused=!1===e.autoStart,t}return t=g,(n=[{key:"_doesIntervalAllowAnother",get:function(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}},{key:"_doesConcurrentAllowAnother",get:function(){return this._pendingCount<this._concurrency}},{key:"_next",value:function(){this._pendingCount--,this._tryToStartAnother()}},{key:"_resolvePromises",value:function(){this._resolveEmpty(),this._resolveEmpty=v,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=v,this.emit("idle"))}},{key:"_onResumeInterval",value:function(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}},{key:"_isIntervalPaused",value:function(){var e=this,t=Date.now();if(void 0===this._intervalId){var n=this._intervalEnd-t;if(!(n<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((function(){e._onResumeInterval()}),n)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}},{key:"_tryToStartAnother",value:function(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){var e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother)return this.emit("active"),this._queue.dequeue()(),e&&this._initializeIntervalIfNeeded(),!0}return!1}},{key:"_initializeIntervalIfNeeded",value:function(){var e=this;this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((function(){e._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}},{key:"_onInterval",value:function(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}},{key:"_processQueue",value:function(){for(;this._tryToStartAnother(););}},{key:"concurrency",get:function(){return this._concurrency},set:function(e){if(!("number"==typeof e&&e>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(i(e),")"));this._concurrency=e,this._processQueue()}},{key:"add",value:(b=o(regeneratorRuntime.mark((function e(t){var n,r=this,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},e.abrupt("return",new Promise((function(e,i){var a=function(){var a=o(regeneratorRuntime.mark((function o(){var a;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r._pendingCount++,r._intervalCount++,o.prev=2,a=void 0===r._timeout&&void 0===n.timeout?t():h.default(Promise.resolve(t()),void 0===n.timeout?r._timeout:n.timeout,(function(){(void 0===n.throwOnTimeout?r._throwOnTimeout:n.throwOnTimeout)&&i(y)})),o.t0=e,o.next=7,a;case 7:o.t1=o.sent,(0,o.t0)(o.t1),o.next=14;break;case 11:o.prev=11,o.t2=o.catch(2),i(o.t2);case 14:r._next();case 15:case"end":return o.stop()}}),o,null,[[2,11]])})));return function(){return a.apply(this,arguments)}}();r._queue.enqueue(a,n),r._tryToStartAnother()})));case 2:case"end":return e.stop()}}),e)}))),function(e){return b.apply(this,arguments)})},{key:"addAll",value:(d=o(regeneratorRuntime.mark((function e(t,n){var r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t.map(function(){var e=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.add(t,n));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return d.apply(this,arguments)})},{key:"start",value:function(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}},{key:"pause",value:function(){this._isPaused=!0}},{key:"clear",value:function(){this._queue=new this._queueClass}},{key:"onEmpty",value:(f=o(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var n=t._resolveEmpty;t._resolveEmpty=function(){n(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"onIdle",value:(s=o(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._pendingCount||0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var n=t._resolveIdle;t._resolveIdle=function(){n(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"size",get:function(){return this._queue.size}},{key:"sizeBy",value:function(e){return this._queue.filter(e).length}},{key:"pending",get:function(){return this._pendingCount}},{key:"isPaused",get:function(){return this._isPaused}},{key:"timeout",get:function(){return this._timeout},set:function(e){this._timeout=e}}])&&a(t.prototype,n),r&&a(t,r),g}(d);t.default=b},function(e,t,n){"use strict";n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return f}));var r=n(0),o=n(78),i=n.n(o);function a(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function u(){return void 0===navigator.onLine||navigator.onLine}function l(e){return(l="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})(e)}var s=new WeakMap,c=0;var f=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.__cache.get(t)},e.prototype.set=function(e,t,n){void 0===n&&(n=!0);var r=this.serializeKey(e)[0];this.__cache.set(r,t),n&&k(e,t,!1),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.__cache.has(t)},e.prototype.clear=function(e){void 0===e&&(e=!0),e&&this.__cache.forEach((function(e){return k(e,null,!1)})),this.__cache.clear(),this.notify()},e.prototype.delete=function(e,t){void 0===t&&(t=!0);var n=this.serializeKey(e)[0];t&&k(e,null,!1),this.__cache.delete(n),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"==typeof e)try{e=e()}catch(t){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",n=0;n<e.length;++n){var r=void 0;null===e[n]||"object"!==l(e[n])?r="string"==typeof e[n]?'"'+e[n]+'"':String(e[n]):s.has(e[n])?r=s.get(e[n]):(r=c,s.set(e[n],c++)),t+="@"+r}return t}(e)):e=String(e||""),[e,t,e?"err@"+e:""]},e.prototype.subscribe=function(e){var t=this;if("function"!=typeof e)throw new Error("Expected the listener to be a function.");var n=!0;return this.__listeners.push(e),function(){if(n){n=!1;var r=t.__listeners.indexOf(e);r>-1&&(t.__listeners[r]=t.__listeners[t.__listeners.length-1],t.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.__listeners;e<t.length;e++){(0,t[e])()}},e}()),d={},h={},p={},v={};var y="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),b=(i.a,!1);if("undefined"!=typeof window&&window.addEventListener&&!b){var m=function(){if(a()&&u())for(var e in h)h[e][0]&&h[e][0]()};window.addEventListener("visibilitychange",m,!1),window.addEventListener("focus",m,!1),b=!0}var g=Object(r.createContext)({});g.displayName="SWRConfigContext";var w=g;var _=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function u(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))},C=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},O="undefined"==typeof window,S=(O?r.useEffect:r.useLayoutEffect,function(e,t){void 0===t&&(t=!0);var n=f.serializeKey(e),r=n[0],o=n[2];if(!r)return Promise.resolve();var i=p[r];if(r&&i){for(var a=f.get(r),u=f.get(o),l=[],s=0;s<i.length;++s)l.push(i[s](t,a,u,s>0));return Promise.all(l).then((function(){return f.get(r)}))}return Promise.resolve(f.get(r))}),k=function(e,t,n){return void 0===n&&(n=!0),_(void 0,void 0,void 0,(function(){var r,o,i,a,u,l,s,c,h,y;return C(this,(function(b){switch(b.label){case 0:if(!(r=f.serializeKey(e)[0]))return[2];if(void 0===t)return[2,S(e,n)];if(v[r]=Date.now()-1,a=v[r],u=d[r],!t||"function"!=typeof t)return[3,5];b.label=1;case 1:return b.trys.push([1,3,,4]),[4,t(f.get(r))];case 2:return o=b.sent(),[3,4];case 3:return l=b.sent(),i=l,[3,4];case 4:return[3,11];case 5:if(!t||"function"!=typeof t.then)return[3,10];b.label=6;case 6:return b.trys.push([6,8,,9]),[4,t];case 7:return o=b.sent(),[3,9];case 8:return s=b.sent(),i=s,[3,9];case 9:return[3,11];case 10:o=t,b.label=11;case 11:if(a!==v[r]||u!==d[r]){if(i)throw i;return[2,o]}if(void 0!==o&&f.set(r,o,!1),c=p[r]){for(h=[],y=0;y<c.length;++y)h.push(c[y](!!n,o,i,y>0));return[2,Promise.all(h).then((function(){return f.get(r)}))]}if(i)throw i;return[2,o]}}))}))};w.Provider,new Map},function(e,t,n){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(a)};
2
  /*!
3
  * Adapted from jQuery UI core
4
  *
@@ -10,7 +10,7 @@
10
  *
11
  * http://api.jqueryui.com/category/ui-core/
12
  */
13
- var r=/input|select|textarea|button|object/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}function i(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(o(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&i(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t="length"in n?n[0]:n}return u=t||u},t.validateElement=s,t.hide=function(e){s(e)&&(e||u).setAttribute("aria-hidden","true")},t.show=function(e){s(e)&&(e||u).removeAttribute("aria-hidden")},t.documentNotReadyOrSSRTesting=function(){u=null},t.resetForTesting=function(){u=null};var r,o=n(94),i=(r=o)&&r.__esModule?r:{default:r},a=n(21);var u=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){return!(!e&&!u)||((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=new function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]};t.default=r,e.exports=t.default},function(e,t,n){"use strict";var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty;e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var a,u,l,s=r(t),c=r(n);if(s&&c){if((u=t.length)!=n.length)return!1;for(a=u;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(s!=c)return!1;var f=t instanceof Date,d=n instanceof Date;if(f!=d)return!1;if(f&&d)return t.getTime()==n.getTime();var h=t instanceof RegExp,p=n instanceof RegExp;if(h!=p)return!1;if(h&&p)return t.toString()==n.toString();var v=o(t);if((u=v.length)!==o(n).length)return!1;for(a=u;0!=a--;)if(!i.call(n,v[a]))return!1;for(a=u;0!=a--;)if(!e(t[l=v[a]],n[l]))return!1;return!0}return t!=t&&n!=n}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M18 8a2 2 0 0 1 2 2v10c0 1.1-.9 2-2 2H6a2 2 0 0 1-2-2V10c0-1.11.89-2 2-2h1V6C7 3.24 9.24.998 12 .998S17 3.24 17 6v2h1m-6-5c-1.66 0-3 1.34-3 3v2h6V6c0-1.66-1.34-3-3-3m-1 16l6.25-6.24l-1.41-1.41L11 16.18L8.41 13.6L7 15l4 4z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M18 1c-2.76 0-5 2.24-5 5v2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12c1.11 0 2-.89 2-2V10a2 2 0 0 0-2-2h-1V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2h2V6c0-2.76-2.24-5-5-5m-8 12a2 2 0 0 1 2 2c0 1.11-.89 2-2 2a2 2 0 1 1 0-4z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M13 9h5.5L13 3.5V9M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m6.16 12.31c-1.56 0-2.97.58-4.05 1.52L6 13.72V19h5.28l-2.13-2.12c.82-.68 1.85-1.1 3.01-1.1c2.07 0 3.84 1.35 4.45 3.22l1.39-.46c-.81-2.45-3.12-4.23-5.84-4.23z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M12 5V1L7 6l5 5V7a6 6 0 0 1 6 6a6 6 0 0 1-6 6a6 6 0 0 1-6-6H4a8 8 0 0 0 8 8a8 8 0 0 0 8-8a8 8 0 0 0-8-8z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6v12z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88c3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M12 3C7.58 3 4 4.79 4 7s3.58 4 8 4s8-1.79 8-4s-3.58-4-8-4M4 9v3c0 2.21 3.58 4 8 4s8-1.79 8-4V9c0 2.21-3.58 4-8 4s-8-1.79-8-4m0 5v3c0 2.21 3.58 4 8 4s8-1.79 8-4v-3c0 2.21-3.58 4-8 4s-8-1.79-8-4z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M21.71 20.29l-1.42 1.42a1 1 0 0 1-1.41 0L7 9.85A3.81 3.81 0 0 1 6 10a4 4 0 0 1-3.78-5.3l2.54 2.54l.53-.53l1.42-1.42l.53-.53L4.7 2.22A4 4 0 0 1 10 6a3.81 3.81 0 0 1-.15 1l11.86 11.88a1 1 0 0 1 0 1.41M2.29 18.88a1 1 0 0 0 0 1.41l1.42 1.42a1 1 0 0 0 1.41 0l5.47-5.46l-2.83-2.83M20 2l-4 2v2l-2.17 2.17l2 2L18 8h2l2-4z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M12 15.5A3.5 3.5 0 0 1 8.5 12A3.5 3.5 0 0 1 12 8.5a3.5 3.5 0 0 1 3.5 3.5a3.5 3.5 0 0 1-3.5 3.5m7.43-2.53c.04-.32.07-.64.07-.97c0-.33-.03-.66-.07-1l2.11-1.63c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.31-.61-.22l-2.49 1c-.52-.39-1.06-.73-1.69-.98l-.37-2.65A.506.506 0 0 0 14 2h-4c-.25 0-.46.18-.5.42l-.37 2.65c-.63.25-1.17.59-1.69.98l-2.49-1c-.22-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64L4.57 11c-.04.34-.07.67-.07 1c0 .33.03.65.07.97l-2.11 1.66c-.19.15-.25.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1.01c.52.4 1.06.74 1.69.99l.37 2.65c.04.24.25.42.5.42h4c.25 0 .46-.18.5-.42l.37-2.65c.63-.26 1.17-.59 1.69-.99l2.49 1.01c.22.08.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.66z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M12 8l-1.33.09C9.81 7.07 7.4 4.5 5 4.5c0 0-1.97 2.96-.04 6.91c-.55.83-.89 1.26-.96 2.25l-1.93.29l.21.98l1.76-.26l.14.71l-1.57.94l.47.89l1.45-.89C5.68 18.76 8.59 20 12 20s6.32-1.24 7.47-3.68l1.45.89l.47-.89l-1.57-.94l.14-.71l1.76.26l.21-.98l-1.93-.29c-.07-.99-.41-1.42-.96-2.25C20.97 7.46 19 4.5 19 4.5c-2.4 0-4.81 2.57-5.67 3.59L12 8m-3 3a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m6 0a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m-4 3h2l-.7 1.39c.2.64.76 1.11 1.45 1.11a1.5 1.5 0 0 0 1.5-1.5h.5a2 2 0 0 1-2 2c-.75 0-1.4-.41-1.75-1c-.35.59-1 1-1.75 1a2 2 0 0 1-2-2h.5a1.5 1.5 0 0 0 1.5 1.5c.69 0 1.25-.47 1.45-1.11L11 14z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9m0 5h2v9H9V8m4 0h2v9h-2V8z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M16.84 2.73c-.39 0-.77.15-1.07.44l-2.12 2.12l5.3 5.31l2.12-2.1c.6-.61.6-1.56 0-2.14L17.9 3.17c-.3-.29-.68-.44-1.06-.44M12.94 6l-8.1 8.11l2.56.28l.18 2.29l2.28.17l.29 2.56l8.1-8.11m-14 3.74L2.5 21.73l6.7-1.79l-.24-2.16l-2.31-.17l-.18-2.32" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M13 3v6h8V3m-8 18h8V11h-8M3 21h8v-6H3m0-2h8V3H3v10z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M18.68 12.32a4.49 4.49 0 0 0-6.36.01a4.49 4.49 0 0 0 0 6.36a4.508 4.508 0 0 0 5.57.63L21 22.39L22.39 21l-3.09-3.11c1.13-1.77.87-4.09-.62-5.57m-1.41 4.95c-.98.98-2.56.97-3.54 0c-.97-.98-.97-2.56.01-3.54c.97-.97 2.55-.97 3.53 0c.97.98.97 2.56 0 3.54M10.9 20.1a6.527 6.527 0 0 1-1.48-2.32C6.27 17.25 4 15.76 4 14v3c0 2.21 3.58 4 8 4c-.4-.26-.77-.56-1.1-.9M4 9v3c0 1.68 2.07 3.12 5 3.7v-.2c0-.93.2-1.85.58-2.69C6.34 12.3 4 10.79 4 9m8-6C7.58 3 4 4.79 4 7c0 2 3 3.68 6.85 4h.05c1.2-1.26 2.86-2 4.6-2c.91 0 1.81.19 2.64.56A3.215 3.215 0 0 0 20 7c0-2.21-3.58-4-8-4z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M10 4l2 2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6m5 5v3h-3v2h3v3h2v-3h3v-2h-3V9h-2z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h9.09c-.06-.33-.09-.66-.09-1c0-.68.12-1.36.35-2H5l3.5-4.5l2.5 3l3.5-4.5l2.23 2.97c.97-.63 2.11-.97 3.27-.97c.34 0 .67.03 1 .09V5a2 2 0 0 0-2-2H5m14 13v3h-3v2h3v3h2v-3h3v-2h-3v-3h-2z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M3 11h8V3H3m0 18h8v-8H3m10 8h8v-8h-8m0-10v8h8V3" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M7 5h14v2H7V5m0 8v-2h14v2H7M4 4.5A1.5 1.5 0 0 1 5.5 6A1.5 1.5 0 0 1 4 7.5A1.5 1.5 0 0 1 2.5 6A1.5 1.5 0 0 1 4 4.5m0 6A1.5 1.5 0 0 1 5.5 12A1.5 1.5 0 0 1 4 13.5A1.5 1.5 0 0 1 2.5 12A1.5 1.5 0 0 1 4 10.5M7 19v-2h14v2H7m-3-2.5A1.5 1.5 0 0 1 5.5 18A1.5 1.5 0 0 1 4 19.5A1.5 1.5 0 0 1 2.5 18A1.5 1.5 0 0 1 4 16.5z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8A1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5a5 5 0 0 1-5 5a5 5 0 0 1-5-5a5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M12 2.04c-5.5 0-10 4.49-10 10.02c0 5 3.66 9.15 8.44 9.9v-7H7.9v-2.9h2.54V9.85c0-2.51 1.49-3.89 3.78-3.89c1.09 0 2.23.19 2.23.19v2.47h-1.26c-1.24 0-1.63.77-1.63 1.56v1.88h2.78l-.45 2.9h-2.33v7a10 10 0 0 0 8.44-9.9c0-5.53-4.5-10.02-10-10.02z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2L9.19 8.62L2 9.24l5.45 4.73L5.82 21L12 17.27z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M12 20a7 7 0 0 1-7-7a7 7 0 0 1 7-7a7 7 0 0 1 7 7a7 7 0 0 1-7 7m7.03-12.61l1.42-1.42c-.45-.51-.9-.97-1.41-1.41L17.62 6c-1.55-1.26-3.5-2-5.62-2a9 9 0 0 0-9 9a9 9 0 0 0 9 9c5 0 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M11 14h2V8h-2m4-7H9v2h6V1z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M12 7l5 5h-3v4h-4v-4H7l5-5m0 15A10 10 0 0 1 2 12A10 10 0 0 1 12 2a10 10 0 0 1 10 10a10 10 0 0 1-10 10m0-2a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M10.59 13.41c.41.39.41 1.03 0 1.42c-.39.39-1.03.39-1.42 0a5.003 5.003 0 0 1 0-7.07l3.54-3.54a5.003 5.003 0 0 1 7.07 0a5.003 5.003 0 0 1 0 7.07l-1.49 1.49c.01-.82-.12-1.64-.4-2.42l.47-.48a2.982 2.982 0 0 0 0-4.24a2.982 2.982 0 0 0-4.24 0l-3.53 3.53a2.982 2.982 0 0 0 0 4.24m2.82-4.24c.39-.39 1.03-.39 1.42 0a5.003 5.003 0 0 1 0 7.07l-3.54 3.54a5.003 5.003 0 0 1-7.07 0a5.003 5.003 0 0 1 0-7.07l1.49-1.49c-.01.82.12 1.64.4 2.43l-.47.47a2.982 2.982 0 0 0 0 4.24a2.982 2.982 0 0 0 4.24 0l3.53-3.53a2.982 2.982 0 0 0 0-4.24a.973.973 0 0 1 0-1.42z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2A10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34c-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41c.86 0 1.26.63 1.26 1.44c0 .86-.57 2.09-.86 3.27c-.17.98.52 1.84 1.52 1.84c1.78 0 3.16-1.9 3.16-4.58c0-2.4-1.72-4.04-4.19-4.04c-2.82 0-4.48 2.1-4.48 4.31c0 .86.28 1.73.74 2.3c.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11c-1.28-.56-2.02-2.38-2.02-3.85c0-3.16 2.24-6.03 6.56-6.03c3.44 0 6.12 2.47 6.12 5.75c0 3.44-2.13 6.2-5.18 6.2c-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M9 2a7 7 0 0 1 7 7c0 1.57-.5 3-1.39 4.19l.8.81H16l6 6l-2 2l-6-6v-.59l-.81-.8A6.916 6.916 0 0 1 9 16a7 7 0 0 1-7-7a7 7 0 0 1 7-7M8 5v3H5v2h3v3h2v-3h3V8h-3V5H8z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2v6z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M13 20h-2V8l-5.5 5.5l-1.42-1.42L12 4.16l7.92 7.92l-1.42 1.42L13 8v12z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M11 4h2v12l5.5-5.5l1.42 1.42L12 19.84l-7.92-7.92L5.5 10.5L11 16V4z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M18 21l-4-4h3V7h-3l4-4l4 4h-3v10h3M2 19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M12 9a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3m0 8a5 5 0 0 1-5-5a5 5 0 0 1 5-5a5 5 0 0 1 5 5a5 5 0 0 1-5 5m0-12.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M13.13 22.19l-1.63-3.83c1.57-.58 3.04-1.36 4.4-2.27l-2.77 6.1M5.64 12.5l-3.83-1.63l6.1-2.77C7 9.46 6.22 10.93 5.64 12.5M21.61 2.39S16.66.269 11 5.93c-2.19 2.19-3.5 4.6-4.35 6.71c-.28.75-.09 1.57.46 2.13l2.13 2.12c.55.56 1.37.74 2.12.46A19.1 19.1 0 0 0 18.07 13c5.66-5.66 3.54-10.61 3.54-10.61m-7.07 7.07c-.78-.78-.78-2.05 0-2.83s2.05-.78 2.83 0c.77.78.78 2.05 0 2.83c-.78.78-2.05.78-2.83 0m-5.66 7.07l-1.41-1.41l1.41 1.41M6.24 22l3.64-3.64c-.34-.09-.67-.24-.97-.45L4.83 22h1.41M2 22h1.41l4.77-4.76l-1.42-1.41L2 20.59V22m0-2.83l4.09-4.08c-.21-.3-.36-.62-.45-.97L2 17.76v1.41z" fill="currentColor"/>',width:24,height:24}},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var s=i[l];if(!u(s))return!1;var c=e[s],f=t[s];if(!1===(o=n?n.call(r,c,f,s):void 0)||void 0===o&&c!==f)return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){function t(e,t,r){var o=t.trim().split(p);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var u=0;for(e=0===a?"":e[0]+" ";u<i;++u)t[u]=n(e,t[u],r).trim();break;default:var l=u=0;for(t=[];u<i;++u)for(var s=0;s<a;++s)t[l++]=n(e[s]+" ",o[u],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",u=2*t+3*n+4*i;if(944===u){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===E||2===E&&o(l,1)?"-webkit-"+l+l:l}if(0===E||2===E&&!o(a,1))return a;switch(u){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return d.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(g,"tb");break;case 232:l=a.replace(g,"tb-rl");break;case 220:l=a.replace(g,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,u=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<u?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),R(2!==t?r:r.replace(O,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,u,s,c){for(var f,d=0,h=t;d<I;++d)switch(f=j[d].call(l,e,h,n,r,o,i,a,u,s,c)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function u(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?E=1:(E=2,R=e):E=0),u}function l(e,n){var u=e;if(33>u.charCodeAt(0)&&(u=u.trim()),u=[u],0<I){var l=a(-1,n,u,u,A,M,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var f=function e(n,u,l,f,d){for(var h,p,v,g,_,C=0,O=0,S=0,k=0,j=0,R=0,L=v=h=0,z=0,F=0,D=0,N=0,H=l.length,V=H-1,q="",$="",W="",U="";z<H;){if(p=l.charCodeAt(z),z===V&&0!==O+k+S+C&&(0!==O&&(p=47===O?10:47),k=S=C=0,H++,V++),0===O+k+S+C){if(z===V&&(0<F&&(q=q.replace(c,"")),0<q.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:q+=l.charAt(z)}p=59}switch(p){case 123:for(h=(q=q.trim()).charCodeAt(0),v=1,N=++z;z<H;){switch(p=l.charCodeAt(z)){case 123:v++;break;case 125:v--;break;case 47:switch(p=l.charCodeAt(z+1)){case 42:case 47:e:{for(L=z+1;L<V;++L)switch(l.charCodeAt(L)){case 47:if(42===p&&42===l.charCodeAt(L-1)&&z+2!==L){z=L+1;break e}break;case 10:if(47===p){z=L+1;break e}}z=L}}break;case 91:p++;case 40:p++;case 34:case 39:for(;z++<V&&l.charCodeAt(z)!==p;);}if(0===v)break;z++}switch(v=l.substring(N,z),0===h&&(h=(q=q.replace(s,"").trim()).charCodeAt(0)),h){case 64:switch(0<F&&(q=q.replace(c,"")),p=q.charCodeAt(1)){case 100:case 109:case 115:case 45:F=u;break;default:F=P}if(N=(v=e(u,F,v,p,d+1)).length,0<I&&(_=a(3,v,F=t(P,q,D),u,A,M,N,p,d,f),q=F.join(""),void 0!==_&&0===(N=(v=_.trim()).length)&&(p=0,v="")),0<N)switch(p){case 115:q=q.replace(w,i);case 100:case 109:case 45:v=q+"{"+v+"}";break;case 107:v=(q=q.replace(y,"$1 $2"))+"{"+v+"}",v=1===E||2===E&&o("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=q+v,112===f&&($+=v,v="")}else v="";break;default:v=e(u,t(u,q,D),v,f,d+1)}W+=v,v=D=F=L=h=0,q="",p=l.charCodeAt(++z);break;case 125:case 59:if(1<(N=(q=(0<F?q.replace(c,""):q).trim()).length))switch(0===L&&(h=q.charCodeAt(0),45===h||96<h&&123>h)&&(N=(q=q.replace(" ",":")).length),0<I&&void 0!==(_=a(1,q,u,n,A,M,$.length,f,d,f))&&0===(N=(q=_.trim()).length)&&(q="\0\0"),h=q.charCodeAt(0),p=q.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){U+=q+l.charAt(z);break}default:58!==q.charCodeAt(N-1)&&($+=r(q,h,p,q.charCodeAt(2)))}D=F=L=h=0,q="",p=l.charCodeAt(++z)}}switch(p){case 13:case 10:47===O?O=0:0===1+h&&107!==f&&0<q.length&&(F=1,q+="\0"),0<I*T&&a(0,q,u,n,A,M,$.length,f,d,f),M=1,A++;break;case 59:case 125:if(0===O+k+S+C){M++;break}default:switch(M++,g=l.charAt(z),p){case 9:case 32:if(0===k+C+O)switch(j){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===k+O+C&&(F=D=1,g="\f"+g);break;case 108:if(0===k+O+C+x&&0<L)switch(z-L){case 2:112===j&&58===l.charCodeAt(z-3)&&(x=j);case 8:111===R&&(x=R)}break;case 58:0===k+O+C&&(L=z);break;case 44:0===O+S+k+C&&(F=1,g+="\r");break;case 34:case 39:0===O&&(k=k===p?0:0===k?p:k);break;case 91:0===k+O+S&&C++;break;case 93:0===k+O+S&&C--;break;case 41:0===k+O+C&&S--;break;case 40:if(0===k+O+C){if(0===h)switch(2*j+3*R){case 533:break;default:h=1}S++}break;case 64:0===O+S+k+C+L+v&&(v=1);break;case 42:case 47:if(!(0<k+C+S))switch(O){case 0:switch(2*p+3*l.charCodeAt(z+1)){case 235:O=47;break;case 220:N=z,O=42}break;case 42:47===p&&42===j&&N+2!==z&&(33===l.charCodeAt(N+2)&&($+=l.substring(N,z+1)),g="",O=0)}}0===O&&(q+=g)}R=j,j=p,z++}if(0<(N=$.length)){if(F=u,0<I&&(void 0!==(_=a(2,$,F,n,A,M,N,f,d,f))&&0===($=_).length))return U+$+W;if($=F.join(",")+"{"+$+"}",0!=E*x){switch(2!==E||o($,2)||(x=0),x){case 111:$=$.replace(m,":-moz-$1")+$;break;case 112:$=$.replace(b,"::-webkit-input-$1")+$.replace(b,"::-moz-$1")+$.replace(b,":-ms-input-$1")+$}x=0}}return U+$+W}(P,u,n,0,0);return 0<I&&(void 0!==(l=a(-2,f,u,u,A,M,f.length,0,0,0))&&(f=l)),"",x=0,M=A=1,f}var s=/^\0+/g,c=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,h=/([,: ])(transform)/g,p=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,m=/:(read-only)/g,g=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,C=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,M=1,A=1,x=0,E=1,P=[],j=[],I=0,R=null,T=0;return l.use=function e(t){switch(t){case void 0:case null:I=j.length=0;break;default:if("function"==typeof t)j[I++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else T=0|!!t}return e},l.set=u,void 0!==e&&u(e),l}},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M12 20a8 8 0 0 1-8-8a8 8 0 0 1 8-8a8 8 0 0 1 8 8a8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 7a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M5.5 7A1.5 1.5 0 0 1 4 5.5A1.5 1.5 0 0 1 5.5 4A1.5 1.5 0 0 1 7 5.5A1.5 1.5 0 0 1 5.5 7m15.91 4.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.11 0-2 .89-2 2v7c0 .55.22 1.05.59 1.41l8.99 9c.37.36.87.59 1.42.59c.55 0 1.05-.23 1.41-.59l7-7c.37-.36.59-.86.59-1.41c0-.56-.23-1.06-.59-1.42z" fill="currentColor"/>',width:24,height:24}},function(e,t){t.__esModule=!0,t.default={body:'<path d="M15 9H5V5h10m-3 14a3 3 0 0 1-3-3a3 3 0 0 1 3-3a3 3 0 0 1 3 3a3 3 0 0 1-3 3m5-16H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7l-4-4z" fill="currentColor"/>',width:24,height:24}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(90),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},function(e,t){t.__esModule=!0,t.default={body:'<path d="M22 16a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2h12a2 2 0 0 1 2 2v12m-6 4v2H4a2 2 0 0 1-2-2V7h2v13h12m-3-6l7-7l-1.41-1.41L13 11.17L9.91 8.09L8.5 9.5L13 14z" fill="currentColor"/>',width:24,height:24}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=Array.isArray,i=Object.keys,a=Object.prototype.hasOwnProperty;e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==r(t)&&"object"==r(n)){var u,l,s,c=o(t),f=o(n);if(c&&f){if((l=t.length)!=n.length)return!1;for(u=l;0!=u--;)if(!e(t[u],n[u]))return!1;return!0}if(c!=f)return!1;var d=t instanceof Date,h=n instanceof Date;if(d!=h)return!1;if(d&&h)return t.getTime()==n.getTime();var p=t instanceof RegExp,v=n instanceof RegExp;if(p!=v)return!1;if(p&&v)return t.toString()==n.toString();var y=i(t);if((l=y.length)!==i(n).length)return!1;for(u=l;0!=u--;)if(!a.call(n,y[u]))return!1;for(u=l;0!=u--;)if(!e(t[s=y[u]],n[s]))return!1;return!0}return t!=t&&n!=n}},function(e,t,n){"use strict";var r=n(0),o=n(30),i=n.n(o);function a(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function u(){return void 0===navigator.onLine||navigator.onLine}var l=new WeakMap,s=0;var c=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.__cache.get(t)},e.prototype.set=function(e,t,n){void 0===n&&(n=!0);var r=this.serializeKey(e)[0];this.__cache.set(r,t),n&&P(e,t,!1),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.__cache.has(t)},e.prototype.clear=function(e){void 0===e&&(e=!0),e&&this.__cache.forEach((function(e){return P(e,null,!1)})),this.__cache.clear(),this.notify()},e.prototype.delete=function(e,t){void 0===t&&(t=!0);var n=this.serializeKey(e)[0];t&&P(e,null,!1),this.__cache.delete(n),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"==typeof e)try{e=e()}catch(t){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",n=0;n<e.length;++n){var r=void 0;null===e[n]||"object"!=typeof e[n]?r="string"==typeof e[n]?'"'+e[n]+'"':String(e[n]):l.has(e[n])?r=l.get(e[n]):(r=s,l.set(e[n],s++)),t+="@"+r}return t}(e)):e=String(e||""),[e,t,e?"err@"+e:""]},e.prototype.subscribe=function(e){var t=this;if("function"!=typeof e)throw new Error("Expected the listener to be a function.");var n=!0;return this.__listeners.push(e),function(){if(n){n=!1;var r=t.__listeners.indexOf(e);r>-1&&(t.__listeners[r]=t.__listeners[t.__listeners.length-1],t.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.__listeners;e<t.length;e++){(0,t[e])()}},e}()),f={},d={},h={},p={},v={};var y="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),b={onLoadingSlow:function(){},onSuccess:function(){},onError:function(){},onErrorRetry:function(e,t,n,r,o){if(a()&&!(n.errorRetryCount&&o.retryCount>n.errorRetryCount)){var i=Math.min(o.retryCount||0,8),u=~~((Math.random()+.5)*(1<<i))*n.errorRetryInterval;setTimeout(r,u,o)}},errorRetryInterval:1e3*(y?10:5),focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:1e3*(y?5:3),refreshInterval:0,revalidateOnFocus:!0,revalidateOnReconnect:!0,refreshWhenHidden:!1,refreshWhenOffline:!1,shouldRetryOnError:!0,suspense:!1,compare:i.a},m=!1;if("undefined"!=typeof window&&window.addEventListener&&!m){var g=function(){if(a()&&u())for(var e in h)h[e][0]&&h[e][0]()};window.addEventListener("visibilitychange",g,!1),window.addEventListener("focus",g,!1),m=!0}var w=b;function _(e,t){var n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n||(n=!0,e.apply(void 0,r),setTimeout((function(){return n=!1}),t))}}var C=Object(r.createContext)({});C.displayName="SWRConfigContext";var O=C,S=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function u(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}l((r=r.apply(e,t||[])).next())}))},k=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},M="undefined"==typeof window,A=M?r.useEffect:r.useLayoutEffect,x=function(e,t){void 0===t&&(t=!0);var n=c.serializeKey(e),r=n[0],o=n[2];if(!r)return Promise.resolve();var i=p[r];if(r&&i){for(var a=c.get(r),u=c.get(o),l=[],s=0;s<i.length;++s)l.push(i[s](t,a,u,s>0));return Promise.all(l).then((function(){return c.get(r)}))}return Promise.resolve(c.get(r))},E=function(e,t,n){var r=p[e];if(e&&r)for(var o=0;o<r.length;++o)r[o](!1,t,n)},P=function(e,t,n){return void 0===n&&(n=!0),S(void 0,void 0,void 0,(function(){var r,o,i,a,u,l,s,f,h,y;return k(this,(function(b){switch(b.label){case 0:if(!(r=c.serializeKey(e)[0]))return[2];if(void 0===t)return[2,x(e,n)];if(v[r]=Date.now()-1,a=v[r],u=d[r],!t||"function"!=typeof t)return[3,5];b.label=1;case 1:return b.trys.push([1,3,,4]),[4,t(c.get(r))];case 2:return o=b.sent(),[3,4];case 3:return l=b.sent(),i=l,[3,4];case 4:return[3,11];case 5:if(!t||"function"!=typeof t.then)return[3,10];b.label=6;case 6:return b.trys.push([6,8,,9]),[4,t];case 7:return o=b.sent(),[3,9];case 8:return s=b.sent(),i=s,[3,9];case 9:return[3,11];case 10:o=t,b.label=11;case 11:if(a!==v[r]||u!==d[r]){if(i)throw i;return[2,o]}if(void 0!==o&&c.set(r,o,!1),f=p[r]){for(h=[],y=0;y<f.length;++y)h.push(f[y](!!n,o,i,y>0));return[2,Promise.all(h).then((function(){return c.get(r)}))]}if(i)throw i;return[2,o]}}))}))};O.Provider;var j=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o,i,l={};t.length>=1&&(o=t[0]),t.length>2?(i=t[1],l=t[2]):"function"==typeof t[1]?i=t[1]:"object"==typeof t[1]&&(l=t[1]);var s=c.serializeKey(o),y=s[0],b=s[1],m=s[2];l=Object.assign({},w,Object(r.useContext)(O),l),void 0===i&&(i=l.fetcher);var g=c.get(y)||l.initialData,C=c.get(m),x=Object(r.useRef)({data:!1,error:!1,isValidating:!1}),j=Object(r.useRef)({data:g,error:C,isValidating:!1}),I=Object(r.useState)(null)[1],R=Object(r.useCallback)((function(e){var t=!1;for(var n in e)j.current[n]=e[n],x.current[n]&&(t=!0);(t||l.suspense)&&I({})}),[]),T=Object(r.useRef)(!1),L=Object(r.useRef)(y),z=Object(r.useRef)({emit:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];T.current||l[e].apply(l,t)}}),F=Object(r.useCallback)((function(e,t){return P(y,e,t)}),[y]),D=Object(r.useCallback)((function(t){return void 0===t&&(t={}),S(e,void 0,void 0,(function(){var e,n,r,o,a,u,s;return k(this,(function(h){switch(h.label){case 0:if(!y||!i)return[2,!1];if(T.current)return[2,!1];t=Object.assign({dedupe:!1},t),e=!0,n=void 0!==f[y]&&t.dedupe,h.label=1;case 1:return h.trys.push([1,6,,7]),R({isValidating:!0}),r=void 0,o=void 0,n?(o=d[y],[4,f[y]]):[3,3];case 2:return r=h.sent(),[3,5];case 3:return f[y]&&(v[y]=Date.now()-1),l.loadingTimeout&&!c.get(y)&&setTimeout((function(){e&&z.current.emit("onLoadingSlow",y,l)}),l.loadingTimeout),f[y]=null!==b?i.apply(void 0,b):i(y),d[y]=o=Date.now(),[4,f[y]];case 4:r=h.sent(),setTimeout((function(){delete f[y],delete d[y]}),l.dedupingInterval),z.current.emit("onSuccess",r,y,l),h.label=5;case 5:return v[y]&&o<=v[y]?(R({isValidating:!1}),[2,!1]):(c.set(y,r,!1),c.set(m,void 0,!1),a={isValidating:!1},void 0!==j.current.error&&(a.error=void 0),l.compare(j.current.data,r)||(a.data=r),R(a),n||E(y,r,void 0),[3,7]);case 6:return u=h.sent(),delete f[y],delete d[y],c.set(m,u,!1),j.current.error!==u&&(R({isValidating:!1,error:u}),n||E(y,void 0,u)),z.current.emit("onError",u,y,l),l.shouldRetryOnError&&(s=(t.retryCount||0)+1,z.current.emit("onErrorRetry",u,y,l,D,Object.assign({dedupe:!0},t,{retryCount:s}))),[3,7];case 7:return e=!1,[2,!0]}}))}))}),[y]);if(A((function(){if(y){T.current=!1;var e=j.current.data,t=c.get(y)||l.initialData;L.current===y&&l.compare(e,t)||(R({data:t}),L.current=y);var n,r=function(){return D({dedupe:!0})};(l.revalidateOnMount||!l.initialData&&void 0===l.revalidateOnMount)&&(void 0!==t&&!M&&window.requestIdleCallback?window.requestIdleCallback(r):r()),l.revalidateOnFocus&&(n=_(r,l.focusThrottleInterval),h[y]?h[y].push(n):h[y]=[n]);var o=function(e,t,n,o){void 0===e&&(e=!0),void 0===o&&(o=!0);var i={},a=!1;return void 0===t||l.compare(j.current.data,t)||(i.data=t,a=!0),j.current.error!==n&&(i.error=n,a=!0),a&&R(i),!!e&&(o?r():D())};p[y]?p[y].push(o):p[y]=[o];var i=null;return!M&&window.addEventListener&&l.revalidateOnReconnect&&window.addEventListener("online",i=r),function(){var e,t;(R=function(){return null},T.current=!0,n&&h[y])&&((t=(e=h[y]).indexOf(n))>=0&&(e[t]=e[e.length-1],e.pop()));p[y]&&((t=(e=p[y]).indexOf(o))>=0&&(e[t]=e[e.length-1],e.pop()));!M&&window.removeEventListener&&null!==i&&window.removeEventListener("online",i)}}}),[y,D]),A((function(){var t=null,n=function(){return S(e,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return j.current.error||!l.refreshWhenHidden&&!a()||!l.refreshWhenOffline&&!u()?[3,2]:[4,D({dedupe:!0})];case 1:e.sent(),e.label=2;case 2:return l.refreshInterval&&(t=setTimeout(n,l.refreshInterval)),[2]}}))}))};return l.refreshInterval&&(t=setTimeout(n,l.refreshInterval)),function(){t&&clearTimeout(t)}}),[l.refreshInterval,l.refreshWhenHidden,l.refreshWhenOffline,D]),l.suspense){var N=c.get(y)||g,H=c.get(m)||C;if(void 0===N&&void 0===H){if(f[y]||D(),f[y]&&"function"==typeof f[y].then)throw f[y];N=f[y]}if(void 0===N&&H)throw H;return{error:H,data:N,revalidate:D,mutate:F,isValidating:j.current.isValidating}}return Object(r.useMemo)((function(){var e={revalidate:D,mutate:F};return Object.defineProperties(e,{error:{get:function(){return x.current.error=!0,L.current===y?j.current.error:C},enumerable:!0},data:{get:function(){return x.current.data=!0,L.current===y?j.current.data:g},enumerable:!0},isValidating:{get:function(){return x.current.isValidating=!0,j.current.isValidating},enumerable:!0}}),e}),[D])};new Map;t.a=j},function(e,t,n){"use strict";var r=n(81);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){t.__esModule=!0,t.default={body:'<path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83l3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z" fill="currentColor"/>',width:24,height:24}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,s=[],c=!1,f=-1;function d(){c&&l&&(c=!1,l.length?s=l.concat(s):f=-1,s.length&&h())}function h(){if(!c){var e=u(d);c=!0;for(var t=s.length;t;){for(l=s,s=[];++f<t;)l&&l[f].run();f=-1,t=s.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||c||u(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";
14
  /** @license React v16.13.1
15
  * react-is.production.min.js
16
  *
@@ -18,10 +18,10 @@ var r=/input|select|textarea|button|object/;function o(e){var t=e.offsetWidth<=0
18
  *
19
  * This source code is licensed under the MIT license found in the
20
  * LICENSE file in the root directory of this source tree.
21
- */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case a:case l:case u:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case b:case y:case s:return e;default:return t}}case i:return t}}}function O(e){return C(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=o,t.ForwardRef=h,t.Fragment=a,t.Lazy=b,t.Memo=y,t.Portal=i,t.Profiler=l,t.StrictMode=u,t.Suspense=p,t.isAsyncMode=function(e){return O(e)||C(e)===f},t.isConcurrentMode=O,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return C(e)===h},t.isFragment=function(e){return C(e)===a},t.isLazy=function(e){return C(e)===b},t.isMemo=function(e){return C(e)===y},t.isPortal=function(e){return C(e)===i},t.isProfiler=function(e){return C(e)===l},t.isStrictMode=function(e){return C(e)===u},t.isSuspense=function(e){return C(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===u||e===p||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===y||e.$$typeof===s||e.$$typeof===c||e.$$typeof===h||e.$$typeof===g||e.$$typeof===w||e.$$typeof===_||e.$$typeof===m)},t.typeOf=C},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o="~";function i(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function u(e,t,n,r,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");var u=new a(n,r||e,i),l=o?o+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],u]:e._events[l].push(u):(e._events[l]=u,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(o=!1)),s.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e){var t=o?o+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,a=new Array(i);r<i;r++)a[r]=n[r].fn;return a},s.prototype.listenerCount=function(e){var t=o?o+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,r,i,a){var u=o?o+e:e;if(!this._events[u])return!1;var l,s,c=this._events[u],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,a),!0}for(s=1,l=new Array(f-1);s<f;s++)l[s-1]=arguments[s];c.fn.apply(c.context,l)}else{var d,h=c.length;for(s=0;s<h;s++)switch(c[s].once&&this.removeListener(e,c[s].fn,void 0,!0),f){case 1:c[s].fn.call(c[s].context);break;case 2:c[s].fn.call(c[s].context,t);break;case 3:c[s].fn.call(c[s].context,t,n);break;case 4:c[s].fn.call(c[s].context,t,n,r);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];c[s].fn.apply(c[s].context,l)}}return!0},s.prototype.on=function(e,t,n){return u(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return u(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,n,r){var i=o?o+e:e;if(!this._events[i])return this;if(!t)return l(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||l(this,i);else{for(var u=0,s=[],c=a.length;u<c;u++)(a[u].fn!==t||r&&!a[u].once||n&&a[u].context!==n)&&s.push(a[u]);s.length?this._events[i]=1===s.length?s[0]:s:l(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&l(this,t)):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=o,s.EventEmitter=s,e.exports=s},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(t&&("object"===r(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)}function i(e){var t="function"==typeof Map?new Map:void 0;return(i=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return a(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)})(e)}function a(e,t,n){return(a=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(o,n.prototype),o}).apply(null,arguments)}function u(){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 l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=n(87),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(i,e);var t,n,r=(t=i,n=u(),function(){var e,r=s(t);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=r.call(this,e)).name="TimeoutError",t}return i}(i(Error)),d=function(e,t,n){return new Promise((function(r,o){if("number"!=typeof t||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(t!==1/0){var i=setTimeout((function(){if("function"!=typeof n){var i="string"==typeof n?n:"Promise timed out after ".concat(t," milliseconds"),a=n instanceof Error?n:new f(i);"function"==typeof e.cancel&&e.cancel(),o(a)}else try{r(n())}catch(e){o(e)}}),t);c(e.then(r,o),(function(){clearTimeout(i)}))}else r(e)}))};e.exports=d,e.exports.default=d,e.exports.TimeoutError=f},function(e,t,n){"use strict";e.exports=function(e,t){return t=t||function(){},e.then((function(e){return new Promise((function(e){e(t())})).then((function(){return e}))}),(function(e){return new Promise((function(e){e(t())})).then((function(){throw e}))}))}},function(e,t,n){"use strict";function r(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,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(89),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Object.defineProperty(this,"_queue",{enumerable:!0,configurable:!0,writable:!0,value:[]})}var t,n,i;return t=e,(n=[{key:"enqueue",value:function(e,t){var n={priority:(t=Object.assign({priority:0},t)).priority,run:e};if(this.size&&this._queue[this.size-1].priority>=t.priority)this._queue.push(n);else{var r=o.default(this._queue,n,(function(e,t){return t.priority-e.priority}));this._queue.splice(r,0,n)}}},{key:"dequeue",value:function(){var e=this._queue.shift();return null==e?void 0:e.run}},{key:"filter",value:function(e){return this._queue.filter((function(t){return t.priority===e.priority})).map((function(e){return e.run}))}},{key:"size",get:function(){return this._queue.length}}])&&r(t.prototype,n),i&&r(t,i),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){for(var r=0,o=e.length;o>0;){var i=o/2|0,a=r+i;n(e[a],t)<=0?(r=++a,o-=i+1):o=i}return r}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),u=v(a),l=v(n(9)),s=v(n(1)),c=v(n(91)),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(27)),d=n(21),h=v(d),p=n(98);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}var m=t.portalClassName="ReactModalPortal",g=t.bodyOpenClassName="ReactModal__Body--open",w=void 0!==l.default.createPortal,_=function(){return w?l.default.createPortal:l.default.unstable_renderSubtreeIntoContainer};function C(e){return e()}var O=function(e){function t(){var e,n,r;y(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=b(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.removePortal=function(){!w&&l.default.unmountComponentAtNode(r.node);var e=C(r.props.parentSelector);e?e.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var n=_()(r,u.default.createElement(c.default,o({defaultStyles:t.defaultStyles},e)),r.node);r.portalRef(n)},b(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(w||(this.node=document.createElement("div")),this.node.className=this.props.portalClassName,C(this.props.parentSelector).appendChild(this.node),!w&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:C(e.parentSelector),nextParent:C(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,o=r.isOpen,i=r.portalClassName;e.portalClassName!==i&&(this.node.className=i);var a=n.prevParent,u=n.nextParent;u!==a&&(a.removeChild(this.node),u.appendChild(this.node)),(e.isOpen||o)&&!w&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&w?(!this.node&&w&&(this.node=document.createElement("div")),_()(u.default.createElement(c.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){f.setElement(e)}}]),t}(a.Component);O.propTypes={isOpen:s.default.bool.isRequired,style:s.default.shape({content:s.default.object,overlay:s.default.object}),portalClassName:s.default.string,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,className:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),overlayClassName:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),appElement:s.default.instanceOf(h.default),onAfterOpen:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,ariaHideApp:s.default.bool,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,parentSelector:s.default.func,aria:s.default.object,data:s.default.object,role:s.default.string,contentLabel:s.default.string,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func},O.defaultProps={isOpen:!1,portalClassName:m,bodyOpenClassName:g,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,parentSelector:function(){return document.body}},O.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(O),t.default=O},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},a=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),l=b(u),s=b(n(1)),c=y(n(92)),f=b(n(93)),d=y(n(27)),h=y(n(96)),p=b(n(21)),v=b(n(29));function y(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function b(e){return e&&e.__esModule?e:{default:e}}n(97);var m={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},g=0,w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&h.remove(document.body,i),o&&h.remove(document.getElementsByTagName("html")[0],o),r&&g>0&&0===(g-=1)&&d.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(c.returnFocus(),c.teardownScopedFocus()):c.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),v.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(c.setupScopedFocus(n.node),c.markForFocusLater()),n.setState({isOpen:!0},(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus()},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,f.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":i(t))?t:{base:m[e],afterOpen:m[e]+"--after-open",beforeClose:m[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&h.add(document.body,o),r&&h.add(document.getElementsByTagName("html")[0],r),n&&(g+=1,d.hide(t)),v.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,a=n?{}:i.content,u=r?{}:i.overlay;return this.shouldBeClosed()?null:l.default.createElement("div",{ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},l.default.createElement("div",o({id:t,ref:this.setContentRef,style:o({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",this.props.aria||{}),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),this.props.children))}}]),t}(u.Component);w.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},w.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.instanceOf(p.default),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,testId:s.default.string},t.default=w,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleBlur=s,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return void(0!==a.length&&(e=a.pop()).focus())}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){u=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){u=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",c))};var r,o=n(26),i=(r=o)&&r.__esModule?r:{default:r};var a=[],u=null,l=!1;function s(){l=!0}function c(){if(l){if(l=!1,!u)return;setTimeout((function(){u.contains(document.activeElement)||((0,i.default)(u)[0]||u).focus()}),0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,o=t.shiftKey,a=n[0],u=n[n.length-1];if(e===document.activeElement){if(!o)return;r=u}u!==document.activeElement||o||(r=a);a===document.activeElement&&o&&(r=u);if(r)return t.preventDefault(),void r.focus();var l=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==l||"Chrome"==l[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var s=n.indexOf(document.activeElement);s>-1&&(s+=o?-1:1);if(void 0===(r=n[s]))return t.preventDefault(),void(r=o?u:a).focus();t.preventDefault(),r.focus()};var r,o=n(26),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){var r;function o(e){return(o="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})(e)}
22
  /*!
23
  Copyright (c) 2015 Jed Watson.
24
  Based on code that is Copyright 2013-2015, Facebook, Inc.
25
  All rights reserved.
26
- */!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};"object"===o(n(28))&&n(28)?void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r):e.exports?e.exports=a:window.ExecutionEnvironment=a}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dumpClassLists=function(){0};var r={},o={};t.add=function(e,t){return n=e.classList,i="html"==e.nodeName.toLowerCase()?r:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),n.add(e)}));var n,i},t.remove=function(e,t){return n=e.classList,i="html"==e.nodeName.toLowerCase()?r:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&n.remove(e)}));var n,i}},function(e,t,n){"use strict";var r,o=n(29),i=(r=o)&&r.__esModule?r:{default:r};var a=void 0,u=void 0,l=[];function s(){0!==l.length&&l[l.length-1].focusContent()}i.default.subscribe((function(e,t){a&&u||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",s),(u=a.cloneNode()).addEventListener("focus",s)),(l=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==u&&document.body.appendChild(u)):(a.parentElement&&a.parentElement.removeChild(a),u.parentElement&&u.parentElement.removeChild(u))}))},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,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 a(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,a=null,u=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?u="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==u){var l=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==u?"\n "+u:"")+"\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=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0}]]);
1
+ (window.wpJsonMgcl=window.wpJsonMgcl||[]).push([[1],[,function(e,t,n){e.exports=n(81)()},function(e,t,n){"use strict";(function(e){var r=n(11),o=n(0),i=n.n(o),a=n(31),l=n.n(a),u=n(32),s=n(33),c=n(25),f=n(22),d=n.n(f);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},v=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},y=Object.freeze([]),m=Object.freeze({});function b(e){return"function"==typeof e}function g(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var _=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,O=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY));function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var k=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&S(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=0,u=t.length;l<u;l++)this.tag.insertRule(a,t[l])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),M=new Map,A=new Map,x=1,E=function(e){if(M.has(e))return M.get(e);for(;A.has(x);)x++;var t=x++;return M.set(e,t),A.set(t,e),t},P=function(e){return A.get(e)},I=function(e,t){t>=x&&(x=t+1),M.set(e,t),A.set(t,e)},j="style["+_+'][data-styled-version="5.3.1"]',R=new RegExp("^"+_+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),T=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},L=function(e,t){for(var n=(t.innerHTML||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var l=a.match(R);if(l){var u=0|parseInt(l[1],10),s=l[2];0!==u&&(I(s,u),T(e,s,l[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},N=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},F=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(_))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(_,"active"),r.setAttribute("data-styled-version","5.3.1");var a=N();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},D=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}S(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),H=function(){function e(e){var t=this.element=F(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),V=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),z=C,q={isServer:!C,useCSSOMInjection:!O},$=function(){function e(e,t,n){void 0===e&&(e=m),void 0===t&&(t={}),this.options=h({},q,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&z&&(z=!1,function(e){for(var t=document.querySelectorAll(j),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(_)&&(L(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return E(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new V(o):r?new D(o):new H(o),new k(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(E(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(E(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(E(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=P(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var u=_+".g"+o+'[id="'+i+'"]',s="";void 0!==a&&a.forEach((function(e){e.length>0&&(s+=e+",")})),r+=""+l+u+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},e}(),U=/(a)(d)/gi,W=function(e){return String.fromCharCode(e+(e>25?39:97))};function Z(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=W(t%52)+n;return(W(t%52)+n).replace(U,"$1-$2")}var B=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},G=function(e){return B(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(b(n)&&!w(n))return!1}return!0}var Y=G("5.3.1"),X=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&K(e),this.componentId=t,this.baseHash=B(Y,t),this.baseStyle=n,$.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ve(this.rules,e,t,n).join(""),a=Z(B(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var l=n(i,"."+a,void 0,r);t.insertRules(r,a,l)}o.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,s=B(this.baseHash,n.hash),c="",f=0;f<u;f++){var d=this.rules[f];if("string"==typeof d)c+=d;else if(d){var h=ve(d,e,t,n),p=Array.isArray(h)?h.join(""):h;s=B(s,p+f),c+=p}}if(c){var v=Z(s>>>0);if(!t.hasNameForId(r,v)){var y=n(c,"."+v,void 0,r);t.insertRules(r,v,y)}o.push(v)}}return o.join(" ")},e}(),Q=/^\s*\/\/.*$/gm,J=[":","[",".","#"];function ee(e){var t,n,r,o,i=void 0===e?m:e,a=i.options,l=void 0===a?m:a,s=i.plugins,c=void 0===s?y:s,f=new u.a(l),d=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,l,u,s,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,i){return 0===r&&-1!==J.indexOf(i[n.length])||i.match(o)?e:"."+t};function v(e,i,a,l){void 0===l&&(l="&");var u=e.replace(Q,""),s=i&&a?a+" "+i+" { "+u+" }":u;return t=l,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(a||!i?"":i,s)}return f.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},h,function(e){if(-2===e){var t=d;return d=[],t}}])),v.hash=c.length?c.reduce((function(e,t){return t.name||S(15),B(e,t.name)}),5381).toString():"",v}var te=i.a.createContext(),ne=(te.Consumer,i.a.createContext()),re=(ne.Consumer,new $),oe=ee();function ie(){return Object(o.useContext)(te)||re}function ae(){return Object(o.useContext)(ne)||oe}function le(e){var t=Object(o.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ie(),u=Object(o.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),s=Object(o.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(o.useEffect)((function(){l()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.a.createElement(te.Provider,{value:u},i.a.createElement(ne.Provider,{value:s},e.children))}var ue=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=oe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return S(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),se=/([A-Z])/,ce=/([A-Z])/g,fe=/^ms-/,de=function(e){return"-"+e.toLowerCase()};function he(e){return se.test(e)?e.replace(ce,de).replace(fe,"-ms-"):e}var pe=function(e){return null==e||!1===e||""===e};function ve(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=ve(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return pe(e)?"":w(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:ve(e(t),t,n,r):e instanceof ue?n?(e.inject(n,r),e.getName(r)):e:v(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!pe(t[a])&&(Array.isArray(t[a])&&t[a].isCss||b(t[a])?i.push(he(a)+":",t[a],";"):v(t[a])?i.push.apply(i,e(t[a],a)):i.push(he(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in s.a?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var u}var ye=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return b(e)||v(e)?ye(ve(p(y,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ye(ve(p(e,n)))}new Set;var be=function(e,t,n){return void 0===n&&(n=m),e.theme!==n.theme&&e.theme||t||n.theme},ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function _e(e){return e.replace(ge,"-").replace(we,"")}var Ce=function(e){return Z(G(e)>>>0)};function Oe(e){return"string"==typeof e&&!0}var Se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ke=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Me(e,t,n){var r=e[n];Se(t)&&Se(r)?Ae(r,t):e[n]=t}function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Se(a))for(var l in a)ke(l)&&Me(e,a[l],l)}return e}var xe=i.a.createContext();xe.Consumer;var Ee={};function Pe(e,t,n){var r=w(e),a=!Oe(e),l=t.attrs,u=void 0===l?y:l,s=t.componentId,f=void 0===s?function(e,t){var n="string"!=typeof e?"sc":_e(e);Ee[n]=(Ee[n]||0)+1;var r=n+"-"+Ce("5.3.1"+n+Ee[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):s,p=t.displayName,v=void 0===p?function(e){return Oe(e)?"styled."+e:"Styled("+g(e)+")"}(e):p,_=t.displayName&&t.componentId?_e(t.displayName)+"-"+t.componentId:t.componentId||f,C=r&&e.attrs?Array.prototype.concat(e.attrs,u).filter(Boolean):u,O=t.shouldForwardProp;r&&e.shouldForwardProp&&(O=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var S,k=new X(n,_,r?e.componentStyle:void 0),M=k.isStatic&&0===u.length,A=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,s=e.shouldForwardProp,f=e.styledComponentId,d=e.target,p=function(e,t,n){void 0===e&&(e=m);var r=h({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in b(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(be(t,Object(o.useContext)(xe),l)||m,t,i),v=p[0],y=p[1],g=function(e,t,n,r){var o=ie(),i=ae();return t?e.generateAndInjectStyles(m,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,v),w=n,_=y.$as||t.$as||y.as||t.as||d,C=Oe(_),O=y!==t?h({},t,{},y):t,S={};for(var k in O)"$"!==k[0]&&"as"!==k&&("forwardedAs"===k?S.as=O[k]:(s?s(k,c.a,_):!C||Object(c.a)(k))&&(S[k]=O[k]));return t.style&&y.style!==t.style&&(S.style=h({},t.style,{},y.style)),S.className=Array.prototype.concat(u,f,g!==f?g:null,t.className,y.className).filter(Boolean).join(" "),S.ref=w,Object(o.createElement)(_,S)}(S,e,t,M)};return A.displayName=v,(S=i.a.forwardRef(A)).attrs=C,S.componentStyle=k,S.displayName=v,S.shouldForwardProp=O,S.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):y,S.styledComponentId=_,S.target=r?e.target:e,S.withComponent=function(e){var r=t.componentId,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}(t,["componentId"]),i=r&&r+"-"+(Oe(e)?e:_e(g(e)));return Pe(e,h({},o,{attrs:C,componentId:i}),n)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Ae({},e.defaultProps,t):t}}),S.toString=function(){return"."+S.styledComponentId},a&&d()(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var Ie=function(e){return function e(t,n,o){if(void 0===o&&(o=m),!Object(r.isValidElementType)(n))return S(1,String(n));var i=function(){return t(n,o,me.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,h({},o,{},r))},i.attrs=function(r){return e(t,n,h({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Pe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ie[e]=Ie(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),$.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var o=r(ve(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&$.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=N();return"<style "+[n&&'nonce="'+n+'"',_+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?S(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return S(2);var n=((t={})[_]="",t["data-styled-version"]="5.3.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=N();return r&&(n.nonce=r),[i.a.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new $({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?S(2):i.a.createElement(le,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return S(3)}}();t.a=Ie}).call(this,n(83))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.InlineIcon=t.Icon=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};function i(e){return(i="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})(e)}function a(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,r.key,r)}}var l=0,u=/(-?[0-9.]*[0-9]+[0-9.]*)/g,s=/^-?[0-9.]*[0-9]+[0-9.]*$/g,c=["width","height","inline","hFlip","vFlip","flip","rotate","align","color","box"],f={left:0,top:0,width:16,height:16,rotate:0,hFlip:!1,vFlip:!1};var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=t}var t,n,r;return t=e,r=[{key:"splitAttributes",value:function(e){var t={icon:Object.create(null),node:Object.create(null)};return Object.keys(e).forEach((function(n){t[-1===c.indexOf(n)?"node":"icon"][n]=e[n]})),t}},{key:"calculateDimension",value:function(e,t,n){if(1===t)return e;if(n=void 0===n?100:n,"number"==typeof e)return Math.ceil(e*t*n)/n;var r=e.split(u);if(null===r||!r.length)return null;for(var o,i=[],a=r.shift(),l=s.test(a);;){if(l?(o=parseFloat(a),isNaN(o)?i.push(a):i.push(Math.ceil(o*t*n)/n)):i.push(a),void 0===(a=r.shift()))return i.join("");l=!l}}},{key:"replaceIDs",value:function(e){var t,n,r=/\sid="(\S+)"/g,o=[];function i(e,t,n){for(var r=0;-1!==(r=n.indexOf(e,r));)n=n.slice(0,r)+t+n.slice(r+e.length),r+=t.length;return n}for(;t=r.exec(e);)o.push(t[1]);return o.length?(n="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o.forEach((function(t){var r=n+l;l++,e=i('="'+t+'"','="'+r+'"',e),e=i('="#'+t+'"','="#'+r+'"',e),e=i("(#"+t+")","(#"+r+")",e)})),e):e}}],(n=[{key:"getAttributes",value:function(t){var n=this._item;"object"!==i(t)&&(t=Object.create(null));var r={horizontal:"center",vertical:"middle",slice:!1},o={rotate:n.rotate,hFlip:n.hFlip,vFlip:n.vFlip},a=Object.create(null),l=Object.create(null),u=!0===t.inline||"true"===t.inline||"1"===t.inline,s={left:n.left,top:u?n.inlineTop:n.top,width:n.width,height:u?n.inlineHeight:n.height};if(["hFlip","vFlip"].forEach((function(e){void 0===t[e]||!0!==t[e]&&"true"!==t[e]&&"1"!==t[e]||(o[e]=!o[e])})),void 0!==t.flip&&t.flip.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"horizontal":o.hFlip=!o.hFlip;break;case"vertical":o.vFlip=!o.vFlip}})),void 0!==t.rotate){var c=t.rotate;if("number"==typeof c)o.rotate+=c;else if("string"==typeof c){var f=c.replace(/^-?[0-9.]*/,"");if(""===f)c=parseInt(c),isNaN(c)||(o.rotate+=c);else if(f!==c){var d=!1;switch(f){case"%":d=25;break;case"deg":d=90}d&&(c=parseInt(c.slice(0,c.length-f.length)),isNaN(c)||(o.rotate+=Math.round(c/d)))}}}var h,p=[];switch(o.hFlip?o.vFlip?o.rotate+=2:(p.push("translate("+(s.width+s.left)+" "+(0-s.top)+")"),p.push("scale(-1 1)"),s.top=s.left=0):o.vFlip&&(p.push("translate("+(0-s.left)+" "+(s.height+s.top)+")"),p.push("scale(1 -1)"),s.top=s.left=0),o.rotate%4){case 1:h=s.height/2+s.top,p.unshift("rotate(90 "+h+" "+h+")"),0===s.left&&0===s.top||(h=s.left,s.left=s.top,s.top=h),s.width!==s.height&&(h=s.width,s.width=s.height,s.height=h);break;case 2:p.unshift("rotate(180 "+(s.width/2+s.left)+" "+(s.height/2+s.top)+")");break;case 3:h=s.width/2+s.left,p.unshift("rotate(-90 "+h+" "+h+")"),0===s.left&&0===s.top||(h=s.left,s.left=s.top,s.top=h),s.width!==s.height&&(h=s.width,s.width=s.height,s.height=h)}var v,y,m=t.width?t.width:null,b=t.height?t.height:null;null===m&&null===b&&(b="1em"),null!==m&&null!==b?(v=m,y=b):null!==m?(v=m,y=e.calculateDimension(v,s.height/s.width)):(y=b,v=e.calculateDimension(y,s.width/s.height)),!1!==v&&(l.width="auto"===v?s.width:v),!1!==y&&(l.height="auto"===y?s.height:y),u&&0!==n.verticalAlign&&(a["vertical-align"]=n.verticalAlign+"em"),void 0!==t.align&&t.align.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"left":case"right":case"center":r.horizontal=e;break;case"top":case"bottom":case"middle":r.vertical=e;break;case"crop":r.slice=!0;break;case"meet":r.slice=!1}})),l.preserveAspectRatio=function(e){var t;switch(e.horizontal){case"left":t="xMin";break;case"right":t="xMax";break;default:t="xMid"}switch(e.vertical){case"top":t+="YMin";break;case"bottom":t+="YMax";break;default:t+="YMid"}return t+=e.slice?" slice":" meet"}(r),l.viewBox=s.left+" "+s.top+" "+s.width+" "+s.height;var g=e.replaceIDs(n.body);return void 0!==t.color&&(g=g.replace(/currentColor/g,t.color)),p.length&&(g='<g transform="'+p.join(" ")+'">'+g+"</g>"),!0!==t.box&&"true"!==t.box&&"1"!==t.box||(g+='<rect x="'+s.left+'" y="'+s.top+'" width="'+s.width+'" height="'+s.height+'" fill="rgba(0, 0, 0, 0)" />'),{attributes:l,body:g,style:a}}},{key:"getSVG",value:function(t,n){var r=e.splitAttributes(t),o=this.getAttributes(r.icon),i='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"';return n&&Object.keys(r.node).forEach((function(e){i+=" "+e+'="'+r.node[e]+'"'})),Object.keys(o.attributes).forEach((function(e){i+=" "+e+'="'+o.attributes[e]+'"'})),i+=' style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);',Object.keys(o.style).forEach((function(e){i+=" "+e+": "+o.style[e]+";"})),t&&void 0!==t.style&&(i+=t.style),i+='">',i+=o.body+"</svg>"}}])&&a(t.prototype,n),r&&a(t,r),e}();function h(e,t){if("object"!==i(e.icon))return null;var n=d.splitAttributes(e),r=n.icon,a=n.node;delete a.icon,void 0===r.inline&&(r.inline=t);var l=new d(function(e){var t,n=Object.create(null);for(t in f)n[t]=f[t];for(t in e)n[t]=e[t];return void 0===n.inlineTop&&(n.inlineTop=n.top),void 0===n.inlineHeight&&(n.inlineHeight=n.height),void 0===n.verticalAlign&&(n.verticalAlign=n.height%7==0&&n.height%8!=0?-.143:-.125),n}(e.icon)).getAttributes(r),u={transform:"rotate(360deg)"};if(void 0!==l.style["vertical-align"]&&(u.verticalAlign=l.style["vertical-align"]),void 0!==e.style)for(var s in e.style)u[s]=e.style[s];var c,h={xmlns:"http://www.w3.org/2000/svg",focusable:!1,style:u};for(c in a)h[c]=a[c];for(c in l.attributes)h[c]=l.attributes[c];return h.dangerouslySetInnerHTML={__html:l.body},o.default.createElement("svg",h,null)}var p=function(e){return h(e,!1)};t.Icon=p;t.InlineIcon=function(e){return h(e,!0)};var v=p;t.default=v},function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(){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 l(e,t,n){return(l=a()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&o(i,n.prototype),i}).apply(null,arguments)}function u(e){var t="function"==typeof Map?new Map:void 0;return(u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,i(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,e)})(e)}function s(e){return(s="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})(e)}n.d(t,"a",(function(){return D}));var c=function(e){var t,n;function r(t){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n),r}(u(Error));function f(e){return Math.round(255*e)}function d(e,t,n){return f(e)+","+f(t)+","+f(n)}function h(e,t,n,r){if(void 0===r&&(r=d),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),l=0,u=0,s=0;o>=0&&o<1?(l=i,u=a):o>=1&&o<2?(l=a,u=i):o>=2&&o<3?(u=i,s=a):o>=3&&o<4?(u=a,s=i):o>=4&&o<5?(l=a,s=i):o>=5&&o<6&&(l=i,s=a);var c=n-i/2;return r(l+c,u+c,s+c)}var p={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var v=/^#[a-fA-F0-9]{6}$/,y=/^#[a-fA-F0-9]{8}$/,m=/^#[a-fA-F0-9]{3}$/,b=/^#[a-fA-F0-9]{4}$/,g=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,_=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,C=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function O(e){if("string"!=typeof e)throw new c(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return p[t]?"#"+p[t]:e}(e);if(t.match(v))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(y)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(m))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(b)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=g.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=w.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=_.exec(t);if(a){var l="rgb("+h(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=g.exec(l);if(!u)throw new c(4,t,l);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var s=C.exec(t.substring(0,50));if(s){var f="rgb("+h(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",d=g.exec(f);if(!d)throw new c(4,t,f);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+s[4])}}throw new c(5)}function S(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),l=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var u=i-a,s=l>.5?u/(2-i-a):u/(i+a);switch(i){case n:t=(r-o)/u+(r<o?6:0);break;case r:t=(o-n)/u+2;break;default:t=(n-r)/u+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:s,lightness:l,alpha:e.alpha}:{hue:t,saturation:s,lightness:l}}(O(e))}var k=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function M(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function A(e){return M(Math.round(255*e))}function x(e,t,n){return k("#"+A(e)+A(t)+A(n))}function E(e,t,n){return h(e,t,n,x)}function P(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return E(e,t,n);if("object"===s(e)&&void 0===t&&void 0===n)return E(e.hue,e.saturation,e.lightness);throw new c(1)}function I(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?E(e,t,n):"rgba("+h(e,t,n)+","+r+")";if("object"===s(e)&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?E(e.hue,e.saturation,e.lightness):"rgba("+h(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new c(2)}function j(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return k("#"+M(e)+M(t)+M(n));if("object"===s(e)&&void 0===t&&void 0===n)return k("#"+M(e.red)+M(e.green)+M(e.blue));throw new c(6)}function R(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=O(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?j(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"===s(e)&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?j(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new c(7)}function T(e){if("object"!==s(e))throw new c(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return R(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return j(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return I(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return P(e);throw new c(8)}function L(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function N(e,t,n){return Math.max(e,Math.min(t,n))}function F(e,t){if("transparent"===t)return t;var n=S(t);return T(r({},n,{lightness:N(0,1,n.lightness+parseFloat(e))}))}var D=L(F)},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M10 4H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 3H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 2v14H5V5h14Z"/>'}},,function(e,t,n){"use strict";e.exports=n(84)},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M18.41 7.41L17 6l-6 6l6 6l1.41-1.41L13.83 12l4.58-4.59m-6 0L11 6l-6 6l6 6l1.41-1.41L7.83 12l4.58-4.59Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M5.59 7.41L7 6l6 6l-6 6l-1.41-1.41L10.17 12L5.59 7.41m6 0L13 6l6 6l-6 6l-1.41-1.41L16.17 12l-4.58-4.59Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6l6 6l1.41-1.42Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M14 19h4V5h-4M6 19h4V5H6v14Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M8 5.14v14l11-7l-11-7Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M18 18H6V6h12v12Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 20H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6l2 2h7a2 2 0 0 1 2 2H4v10l2.14-8h17.07l-2.28 8.5c-.23.87-1.01 1.5-1.93 1.5Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M21 17H7V3h14m0-2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2M3 5H1v16a2 2 0 0 0 2 2h16v-2H3m12.96-10.71l-2.75 3.54l-1.96-2.36L8.5 15h11l-3.54-4.71Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="m10 17l-5-5l1.41-1.42L10 14.17l7.59-7.59L19 8m0-5H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z"/>'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=n(96);var i=((r=o)&&r.__esModule?r:{default:r}).default,a=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=a},function(e,t,n){"use strict";var r=n(11),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},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var l=u(t),v=u(n),y=0;y<a.length;++y){var m=a[y];if(!(i[m]||r&&r[m]||v&&v[m]||l&&l[m])){var b=d(n,m);try{s(t,m,b)}catch(e){}}}}return t}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function l(e){r(a,o,i,l,u,"next",e)}function u(e){r(a,o,i,l,u,"throw",e)}l(void 0)}))}}function i(e){return(i="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})(e)}function a(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,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=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}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===i(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)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0});var f=n(86),d=n(87),h=n(89),p=function(){},v=new d.TimeoutError,y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(b,e);var t,n,r,s,c,f,y,m=u(b);function b(e){var t,n,r,o,a;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),(t=m.call(this))._intervalCount=0,t._intervalEnd=0,t._pendingCount=0,t._resolveEmpty=p,t._resolveIdle=p,!("number"==typeof(e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:h.default},e)).intervalCap&&e.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(r=null===(n=e.intervalCap)||void 0===n?void 0:n.toString())&&void 0!==r?r:"","` (").concat(i(e.intervalCap),")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(a=null===(o=e.interval)||void 0===o?void 0:o.toString())&&void 0!==a?a:"","` (").concat(i(e.interval),")"));return t._carryoverConcurrencyCount=e.carryoverConcurrencyCount,t._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,t._intervalCap=e.intervalCap,t._interval=e.interval,t._queue=new e.queueClass,t._queueClass=e.queueClass,t.concurrency=e.concurrency,t._timeout=e.timeout,t._throwOnTimeout=!0===e.throwOnTimeout,t._isPaused=!1===e.autoStart,t}return t=b,(n=[{key:"_doesIntervalAllowAnother",get:function(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}},{key:"_doesConcurrentAllowAnother",get:function(){return this._pendingCount<this._concurrency}},{key:"_next",value:function(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}},{key:"_resolvePromises",value:function(){this._resolveEmpty(),this._resolveEmpty=p,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=p,this.emit("idle"))}},{key:"_onResumeInterval",value:function(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}},{key:"_isIntervalPaused",value:function(){var e=this,t=Date.now();if(void 0===this._intervalId){var n=this._intervalEnd-t;if(!(n<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((function(){e._onResumeInterval()}),n)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}},{key:"_tryToStartAnother",value:function(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){var e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){var t=this._queue.dequeue();return!!t&&(this.emit("active"),t(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}},{key:"_initializeIntervalIfNeeded",value:function(){var e=this;this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((function(){e._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}},{key:"_onInterval",value:function(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}},{key:"_processQueue",value:function(){for(;this._tryToStartAnother(););}},{key:"concurrency",get:function(){return this._concurrency},set:function(e){if(!("number"==typeof e&&e>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(i(e),")"));this._concurrency=e,this._processQueue()}},{key:"add",value:(y=o(regeneratorRuntime.mark((function e(t){var n,r=this,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},e.abrupt("return",new Promise((function(e,i){var a=function(){var a=o(regeneratorRuntime.mark((function o(){var a;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r._pendingCount++,r._intervalCount++,o.prev=2,a=void 0===r._timeout&&void 0===n.timeout?t():d.default(Promise.resolve(t()),void 0===n.timeout?r._timeout:n.timeout,(function(){(void 0===n.throwOnTimeout?r._throwOnTimeout:n.throwOnTimeout)&&i(v)})),o.t0=e,o.next=7,a;case 7:o.t1=o.sent,(0,o.t0)(o.t1),o.next=14;break;case 11:o.prev=11,o.t2=o.catch(2),i(o.t2);case 14:r._next();case 15:case"end":return o.stop()}}),o,null,[[2,11]])})));return function(){return a.apply(this,arguments)}}();r._queue.enqueue(a,n),r._tryToStartAnother(),r.emit("add")})));case 2:case"end":return e.stop()}}),e)}))),function(e){return y.apply(this,arguments)})},{key:"addAll",value:(f=o(regeneratorRuntime.mark((function e(t,n){var r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t.map(function(){var e=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.add(t,n));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return f.apply(this,arguments)})},{key:"start",value:function(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}},{key:"pause",value:function(){this._isPaused=!0}},{key:"clear",value:function(){this._queue=new this._queueClass}},{key:"onEmpty",value:(c=o(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var n=t._resolveEmpty;t._resolveEmpty=function(){n(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"onIdle",value:(s=o(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._pendingCount||0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var n=t._resolveIdle;t._resolveIdle=function(){n(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"size",get:function(){return this._queue.size}},{key:"sizeBy",value:function(e){return this._queue.filter(e).length}},{key:"pending",get:function(){return this._pendingCount}},{key:"isPaused",get:function(){return this._isPaused}},{key:"timeout",get:function(){return this._timeout},set:function(e){this._timeout=e}}])&&a(t.prototype,n),r&&a(t,r),b}(f);t.default=y},function(e,t,n){"use strict";n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return f}));var r=n(0),o=n(79),i=n.n(o);function a(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function l(){return void 0===navigator.onLine||navigator.onLine}function u(e){return(u="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})(e)}var s=new WeakMap,c=0;var f=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.__cache.get(t)},e.prototype.set=function(e,t,n){void 0===n&&(n=!0);var r=this.serializeKey(e)[0];this.__cache.set(r,t),n&&k(e,t,!1),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.__cache.has(t)},e.prototype.clear=function(e){void 0===e&&(e=!0),e&&this.__cache.forEach((function(e){return k(e,null,!1)})),this.__cache.clear(),this.notify()},e.prototype.delete=function(e,t){void 0===t&&(t=!0);var n=this.serializeKey(e)[0];t&&k(e,null,!1),this.__cache.delete(n),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"==typeof e)try{e=e()}catch(t){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",n=0;n<e.length;++n){var r=void 0;null===e[n]||"object"!==u(e[n])?r="string"==typeof e[n]?'"'+e[n]+'"':String(e[n]):s.has(e[n])?r=s.get(e[n]):(r=c,s.set(e[n],c++)),t+="@"+r}return t}(e)):e=String(e||""),[e,t,e?"err@"+e:""]},e.prototype.subscribe=function(e){var t=this;if("function"!=typeof e)throw new Error("Expected the listener to be a function.");var n=!0;return this.__listeners.push(e),function(){if(n){n=!1;var r=t.__listeners.indexOf(e);r>-1&&(t.__listeners[r]=t.__listeners[t.__listeners.length-1],t.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.__listeners;e<t.length;e++){(0,t[e])()}},e}()),d={},h={},p={},v={};var y="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),m=(i.a,!1);if("undefined"!=typeof window&&window.addEventListener&&!m){var b=function(){if(a()&&l())for(var e in h)h[e][0]&&h[e][0]()};window.addEventListener("visibilitychange",b,!1),window.addEventListener("focus",b,!1),m=!0}var g=Object(r.createContext)({});g.displayName="SWRConfigContext";var w=g;var _=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},C=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},O="undefined"==typeof window,S=(O?r.useEffect:r.useLayoutEffect,function(e,t){void 0===t&&(t=!0);var n=f.serializeKey(e),r=n[0],o=n[2];if(!r)return Promise.resolve();var i=p[r];if(r&&i){for(var a=f.get(r),l=f.get(o),u=[],s=0;s<i.length;++s)u.push(i[s](t,a,l,s>0));return Promise.all(u).then((function(){return f.get(r)}))}return Promise.resolve(f.get(r))}),k=function(e,t,n){return void 0===n&&(n=!0),_(void 0,void 0,void 0,(function(){var r,o,i,a,l,u,s,c,h,y;return C(this,(function(m){switch(m.label){case 0:if(!(r=f.serializeKey(e)[0]))return[2];if(void 0===t)return[2,S(e,n)];if(v[r]=Date.now()-1,a=v[r],l=d[r],!t||"function"!=typeof t)return[3,5];m.label=1;case 1:return m.trys.push([1,3,,4]),[4,t(f.get(r))];case 2:return o=m.sent(),[3,4];case 3:return u=m.sent(),i=u,[3,4];case 4:return[3,11];case 5:if(!t||"function"!=typeof t.then)return[3,10];m.label=6;case 6:return m.trys.push([6,8,,9]),[4,t];case 7:return o=m.sent(),[3,9];case 8:return s=m.sent(),i=s,[3,9];case 9:return[3,11];case 10:o=t,m.label=11;case 11:if(a!==v[r]||l!==d[r]){if(i)throw i;return[2,o]}if(void 0!==o&&f.set(r,o,!1),c=p[r]){for(h=[],y=0;y<c.length;++y)h.push(c[y](!!n,o,i,y>0));return[2,Promise.all(h).then((function(){return f.get(r)}))]}if(i)throw i;return[2,o]}}))}))};w.Provider,new Map},function(e,t,n){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(a)};
2
  /*!
3
  * Adapted from jQuery UI core
4
  *
10
  *
11
  * http://api.jqueryui.com/category/ui-core/
12
  */
13
+ var r=/input|select|textarea|button|object|iframe/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(e){return console.warn("Failed to inspect element style"),!1}}function i(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),o(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&i(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){l&&(l.removeAttribute?l.removeAttribute("aria-hidden"):null!=l.length?l.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(l).forEach((function(e){return e.removeAttribute("aria-hidden")})));l=null},t.log=function(){0},t.assertNodeList=u,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);u(n,t),t=n}return l=t||l},t.validateElement=s,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=s(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=s(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){l=null};var r,o=n(95),i=(r=o)&&r.__esModule?r:{default:r},a=n(21);var l=null;function u(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||l;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new r};var r=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new r;t.default=o},function(e,t,n){"use strict";var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty;e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var a,l,u,s=r(t),c=r(n);if(s&&c){if((l=t.length)!=n.length)return!1;for(a=l;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(s!=c)return!1;var f=t instanceof Date,d=n instanceof Date;if(f!=d)return!1;if(f&&d)return t.getTime()==n.getTime();var h=t instanceof RegExp,p=n instanceof RegExp;if(h!=p)return!1;if(h&&p)return t.toString()==n.toString();var v=o(t);if((l=v.length)!==o(n).length)return!1;for(a=l;0!=a--;)if(!i.call(n,v[a]))return!1;for(a=l;0!=a--;)if(!e(t[u=v[a]],n[u]))return!1;return!0}return t!=t&&n!=n}},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var s=i[u];if(!l(s))return!1;var c=e[s],f=t[s];if(!1===(o=n?n.call(r,c,f,s):void 0)||void 0===o&&c!==f)return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){function t(e,t,r){var o=t.trim().split(p);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=n(e,t[l],r).trim();break;default:var u=l=0;for(t=[];l<i;++l)for(var s=0;s<a;++s)t[u++]=n(e[s]+" ",o[l],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",l=2*t+3*n+4*i;if(944===l){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===E||2===E&&o(u,1)?"-webkit-"+u+u:u}if(0===E||2===E&&!o(a,1))return a;switch(l){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return d.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(g,"tb");break;case 232:u=a.replace(g,"tb-rl");break;case 220:u=a.replace(g,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),R(2!==t?r:r.replace(O,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,l,s,c){for(var f,d=0,h=t;d<j;++d)switch(f=I[d].call(u,e,h,n,r,o,i,a,l,s,c)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?E=1:(E=2,R=e):E=0),l}function u(e,n){var l=e;if(33>l.charCodeAt(0)&&(l=l.trim()),l=[l],0<j){var u=a(-1,n,l,l,A,M,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var f=function e(n,l,u,f,d){for(var h,p,v,g,_,C=0,O=0,S=0,k=0,I=0,R=0,L=v=h=0,N=0,F=0,D=0,H=0,V=u.length,z=V-1,q="",$="",U="",W="";N<V;){if(p=u.charCodeAt(N),N===z&&0!==O+k+S+C&&(0!==O&&(p=47===O?10:47),k=S=C=0,V++,z++),0===O+k+S+C){if(N===z&&(0<F&&(q=q.replace(c,"")),0<q.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:q+=u.charAt(N)}p=59}switch(p){case 123:for(h=(q=q.trim()).charCodeAt(0),v=1,H=++N;N<V;){switch(p=u.charCodeAt(N)){case 123:v++;break;case 125:v--;break;case 47:switch(p=u.charCodeAt(N+1)){case 42:case 47:e:{for(L=N+1;L<z;++L)switch(u.charCodeAt(L)){case 47:if(42===p&&42===u.charCodeAt(L-1)&&N+2!==L){N=L+1;break e}break;case 10:if(47===p){N=L+1;break e}}N=L}}break;case 91:p++;case 40:p++;case 34:case 39:for(;N++<z&&u.charCodeAt(N)!==p;);}if(0===v)break;N++}switch(v=u.substring(H,N),0===h&&(h=(q=q.replace(s,"").trim()).charCodeAt(0)),h){case 64:switch(0<F&&(q=q.replace(c,"")),p=q.charCodeAt(1)){case 100:case 109:case 115:case 45:F=l;break;default:F=P}if(H=(v=e(l,F,v,p,d+1)).length,0<j&&(_=a(3,v,F=t(P,q,D),l,A,M,H,p,d,f),q=F.join(""),void 0!==_&&0===(H=(v=_.trim()).length)&&(p=0,v="")),0<H)switch(p){case 115:q=q.replace(w,i);case 100:case 109:case 45:v=q+"{"+v+"}";break;case 107:v=(q=q.replace(y,"$1 $2"))+"{"+v+"}",v=1===E||2===E&&o("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=q+v,112===f&&($+=v,v="")}else v="";break;default:v=e(l,t(l,q,D),v,f,d+1)}U+=v,v=D=F=L=h=0,q="",p=u.charCodeAt(++N);break;case 125:case 59:if(1<(H=(q=(0<F?q.replace(c,""):q).trim()).length))switch(0===L&&(h=q.charCodeAt(0),45===h||96<h&&123>h)&&(H=(q=q.replace(" ",":")).length),0<j&&void 0!==(_=a(1,q,l,n,A,M,$.length,f,d,f))&&0===(H=(q=_.trim()).length)&&(q="\0\0"),h=q.charCodeAt(0),p=q.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){W+=q+u.charAt(N);break}default:58!==q.charCodeAt(H-1)&&($+=r(q,h,p,q.charCodeAt(2)))}D=F=L=h=0,q="",p=u.charCodeAt(++N)}}switch(p){case 13:case 10:47===O?O=0:0===1+h&&107!==f&&0<q.length&&(F=1,q+="\0"),0<j*T&&a(0,q,l,n,A,M,$.length,f,d,f),M=1,A++;break;case 59:case 125:if(0===O+k+S+C){M++;break}default:switch(M++,g=u.charAt(N),p){case 9:case 32:if(0===k+C+O)switch(I){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===k+O+C&&(F=D=1,g="\f"+g);break;case 108:if(0===k+O+C+x&&0<L)switch(N-L){case 2:112===I&&58===u.charCodeAt(N-3)&&(x=I);case 8:111===R&&(x=R)}break;case 58:0===k+O+C&&(L=N);break;case 44:0===O+S+k+C&&(F=1,g+="\r");break;case 34:case 39:0===O&&(k=k===p?0:0===k?p:k);break;case 91:0===k+O+S&&C++;break;case 93:0===k+O+S&&C--;break;case 41:0===k+O+C&&S--;break;case 40:if(0===k+O+C){if(0===h)switch(2*I+3*R){case 533:break;default:h=1}S++}break;case 64:0===O+S+k+C+L+v&&(v=1);break;case 42:case 47:if(!(0<k+C+S))switch(O){case 0:switch(2*p+3*u.charCodeAt(N+1)){case 235:O=47;break;case 220:H=N,O=42}break;case 42:47===p&&42===I&&H+2!==N&&(33===u.charCodeAt(H+2)&&($+=u.substring(H,N+1)),g="",O=0)}}0===O&&(q+=g)}R=I,I=p,N++}if(0<(H=$.length)){if(F=l,0<j&&(void 0!==(_=a(2,$,F,n,A,M,H,f,d,f))&&0===($=_).length))return W+$+U;if($=F.join(",")+"{"+$+"}",0!=E*x){switch(2!==E||o($,2)||(x=0),x){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(m,"::-webkit-input-$1")+$.replace(m,"::-moz-$1")+$.replace(m,":-ms-input-$1")+$}x=0}}return W+$+U}(P,l,n,0,0);return 0<j&&(void 0!==(u=a(-2,f,l,l,A,M,f.length,0,0,0))&&(f=u)),"",x=0,M=A=1,f}var s=/^\0+/g,c=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,h=/([,: ])(transform)/g,p=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,b=/:(read-only)/g,g=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,C=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,M=1,A=1,x=0,E=1,P=[],I=[],j=0,R=null,T=0;return u.use=function e(t){switch(t){case void 0:case null:j=I.length=0;break;default:if("function"==typeof t)I[j++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else T=0|!!t}return e},u.set=l,void 0!==e&&l(e),u}},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 13c.34 0 .67.04 1 .09V10a2 2 0 0 0-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6a2 2 0 0 0-2 2v10c0 1.11.89 2 2 2h7.81c-.51-.88-.81-1.9-.81-3c0-3.31 2.69-6 6-6M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6m3 11a2 2 0 1 1 2-2c0 1.11-.89 2-2 2m10.5.25L17.75 22L15 19l1.16-1.16l1.59 1.59l3.59-3.59l1.16 1.41Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M18 1c-2.76 0-5 2.24-5 5v2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12c1.11 0 2-.89 2-2V10a2 2 0 0 0-2-2h-1V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2h2V6c0-2.76-2.24-5-5-5m-8 12a2 2 0 0 1 2 2c0 1.11-.89 2-2 2a2 2 0 1 1 0-4Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M13 9h5.5L13 3.5V9M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m6.16 12.31c-1.56 0-2.97.58-4.05 1.52L6 13.72V19h5.28l-2.13-2.12c.82-.68 1.85-1.1 3.01-1.1c2.07 0 3.84 1.35 4.45 3.22l1.39-.46c-.81-2.45-3.12-4.23-5.84-4.23Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 5V1L7 6l5 5V7a6 6 0 0 1 6 6a6 6 0 0 1-6 6a6 6 0 0 1-6-6H4a8 8 0 0 0 8 8a8 8 0 0 0 8-8a8 8 0 0 0-8-8Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6v12Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88c3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 3C7.58 3 4 4.79 4 7s3.58 4 8 4s8-1.79 8-4s-3.58-4-8-4M4 9v3c0 2.21 3.58 4 8 4s8-1.79 8-4V9c0 2.21-3.58 4-8 4s-8-1.79-8-4m0 5v3c0 2.21 3.58 4 8 4s8-1.79 8-4v-3c0 2.21-3.58 4-8 4s-8-1.79-8-4Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="m21.71 20.29l-1.42 1.42a1 1 0 0 1-1.41 0L7 9.85A3.81 3.81 0 0 1 6 10a4 4 0 0 1-3.78-5.3l2.54 2.54l.53-.53l1.42-1.42l.53-.53L4.7 2.22A4 4 0 0 1 10 6a3.81 3.81 0 0 1-.15 1l11.86 11.88a1 1 0 0 1 0 1.41M2.29 18.88a1 1 0 0 0 0 1.41l1.42 1.42a1 1 0 0 0 1.41 0l5.47-5.46l-2.83-2.83M20 2l-4 2v2l-2.17 2.17l2 2L18 8h2l2-4Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 15.5A3.5 3.5 0 0 1 8.5 12A3.5 3.5 0 0 1 12 8.5a3.5 3.5 0 0 1 3.5 3.5a3.5 3.5 0 0 1-3.5 3.5m7.43-2.53c.04-.32.07-.64.07-.97c0-.33-.03-.66-.07-1l2.11-1.63c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.31-.61-.22l-2.49 1c-.52-.39-1.06-.73-1.69-.98l-.37-2.65A.506.506 0 0 0 14 2h-4c-.25 0-.46.18-.5.42l-.37 2.65c-.63.25-1.17.59-1.69.98l-2.49-1c-.22-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64L4.57 11c-.04.34-.07.67-.07 1c0 .33.03.65.07.97l-2.11 1.66c-.19.15-.25.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1.01c.52.4 1.06.74 1.69.99l.37 2.65c.04.24.25.42.5.42h4c.25 0 .46-.18.5-.42l.37-2.65c.63-.26 1.17-.59 1.69-.99l2.49 1.01c.22.08.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.66Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="m12 8l-1.33.09C9.81 7.07 7.4 4.5 5 4.5c0 0-1.97 2.96-.04 6.91c-.55.83-.89 1.26-.96 2.25l-1.93.29l.21.98l1.76-.26l.14.71l-1.57.94l.47.89l1.45-.89C5.68 18.76 8.59 20 12 20s6.32-1.24 7.47-3.68l1.45.89l.47-.89l-1.57-.94l.14-.71l1.76.26l.21-.98l-1.93-.29c-.07-.99-.41-1.42-.96-2.25C20.97 7.46 19 4.5 19 4.5c-2.4 0-4.81 2.57-5.67 3.59L12 8m-3 3a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m6 0a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m-4 3h2l-.7 1.39c.2.64.76 1.11 1.45 1.11a1.5 1.5 0 0 0 1.5-1.5h.5a2 2 0 0 1-2 2c-.75 0-1.4-.41-1.75-1c-.35.59-1 1-1.75 1a2 2 0 0 1-2-2h.5a1.5 1.5 0 0 0 1.5 1.5c.69 0 1.25-.47 1.45-1.11L11 14Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9m0 5h2v9H9V8m4 0h2v9h-2V8Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M16.84 2.73c-.39 0-.77.15-1.07.44l-2.12 2.12l5.3 5.31l2.12-2.1c.6-.61.6-1.56 0-2.14L17.9 3.17c-.3-.29-.68-.44-1.06-.44M12.94 6l-8.1 8.11l2.56.28l.18 2.29l2.28.17l.29 2.56l8.1-8.11m-14 3.74L2.5 21.73l6.7-1.79l-.24-2.16l-2.31-.17l-.18-2.32"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M13 3v6h8V3m-8 18h8V11h-8M3 21h8v-6H3m0-2h8V3H3v10Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M18.68 12.32a4.49 4.49 0 0 0-6.36.01a4.49 4.49 0 0 0 0 6.36a4.508 4.508 0 0 0 5.57.63L21 22.39L22.39 21l-3.09-3.11c1.13-1.77.87-4.09-.62-5.57m-1.41 4.95c-.98.98-2.56.97-3.54 0c-.97-.98-.97-2.56.01-3.54c.97-.97 2.55-.97 3.53 0c.97.98.97 2.56 0 3.54M10.9 20.1a6.527 6.527 0 0 1-1.48-2.32C6.27 17.25 4 15.76 4 14v3c0 2.21 3.58 4 8 4c-.4-.26-.77-.56-1.1-.9M4 9v3c0 1.68 2.07 3.12 5 3.7v-.2c0-.93.2-1.85.58-2.69C6.34 12.3 4 10.79 4 9m8-6C7.58 3 4 4.79 4 7c0 2 3 3.68 6.85 4h.05c1.2-1.26 2.86-2 4.6-2c.91 0 1.81.19 2.64.56A3.215 3.215 0 0 0 20 7c0-2.21-3.58-4-8-4Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M13 19c0 .34.04.67.09 1H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6l2 2h8a2 2 0 0 1 2 2v5.81c-.88-.51-1.9-.81-3-.81c-3.31 0-6 2.69-6 6m7-1v-3h-2v3h-3v2h3v3h2v-3h3v-2h-3Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M18 15v3h-3v2h3v3h2v-3h3v-2h-3v-3h-2m-4.7 6H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v8.3c-.6-.2-1.3-.3-2-.3c-1.1 0-2.2.3-3.1.9L14.5 12L11 16.5l-2.5-3L5 18h8.1c-.1.3-.1.7-.1 1c0 .7.1 1.4.3 2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M3 11h8V3H3m0 18h8v-8H3m10 8h8v-8h-8m0-10v8h8V3"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M7 5h14v2H7V5m0 8v-2h14v2H7M4 4.5A1.5 1.5 0 0 1 5.5 6A1.5 1.5 0 0 1 4 7.5A1.5 1.5 0 0 1 2.5 6A1.5 1.5 0 0 1 4 4.5m0 6A1.5 1.5 0 0 1 5.5 12A1.5 1.5 0 0 1 4 13.5A1.5 1.5 0 0 1 2.5 12A1.5 1.5 0 0 1 4 10.5M7 19v-2h14v2H7m-3-2.5A1.5 1.5 0 0 1 5.5 18A1.5 1.5 0 0 1 4 19.5A1.5 1.5 0 0 1 2.5 18A1.5 1.5 0 0 1 4 16.5Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8A1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5a5 5 0 0 1-5 5a5 5 0 0 1-5-5a5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 2.04c-5.5 0-10 4.49-10 10.02c0 5 3.66 9.15 8.44 9.9v-7H7.9v-2.9h2.54V9.85c0-2.51 1.49-3.89 3.78-3.89c1.09 0 2.23.19 2.23.19v2.47h-1.26c-1.24 0-1.63.77-1.63 1.56v1.88h2.78l-.45 2.9h-2.33v7a10 10 0 0 0 8.44-9.9c0-5.53-4.5-10.02-10-10.02Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2L9.19 8.62L2 9.24l5.45 4.73L5.82 21L12 17.27Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 20a7 7 0 0 1-7-7a7 7 0 0 1 7-7a7 7 0 0 1 7 7a7 7 0 0 1-7 7m7.03-12.61l1.42-1.42c-.45-.51-.9-.97-1.41-1.41L17.62 6c-1.55-1.26-3.5-2-5.62-2a9 9 0 0 0-9 9a9 9 0 0 0 9 9c5 0 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M11 14h2V8h-2m4-7H9v2h6V1Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="m12 7l5 5h-3v4h-4v-4H7l5-5m0 15A10 10 0 0 1 2 12A10 10 0 0 1 12 2a10 10 0 0 1 10 10a10 10 0 0 1-10 10m0-2a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M10.59 13.41c.41.39.41 1.03 0 1.42c-.39.39-1.03.39-1.42 0a5.003 5.003 0 0 1 0-7.07l3.54-3.54a5.003 5.003 0 0 1 7.07 0a5.003 5.003 0 0 1 0 7.07l-1.49 1.49c.01-.82-.12-1.64-.4-2.42l.47-.48a2.982 2.982 0 0 0 0-4.24a2.982 2.982 0 0 0-4.24 0l-3.53 3.53a2.982 2.982 0 0 0 0 4.24m2.82-4.24c.39-.39 1.03-.39 1.42 0a5.003 5.003 0 0 1 0 7.07l-3.54 3.54a5.003 5.003 0 0 1-7.07 0a5.003 5.003 0 0 1 0-7.07l1.49-1.49c-.01.82.12 1.64.4 2.43l-.47.47a2.982 2.982 0 0 0 0 4.24a2.982 2.982 0 0 0 4.24 0l3.53-3.53a2.982 2.982 0 0 0 0-4.24a.973.973 0 0 1 0-1.42Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2A10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34c-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41c.86 0 1.26.63 1.26 1.44c0 .86-.57 2.09-.86 3.27c-.17.98.52 1.84 1.52 1.84c1.78 0 3.16-1.9 3.16-4.58c0-2.4-1.72-4.04-4.19-4.04c-2.82 0-4.48 2.1-4.48 4.31c0 .86.28 1.73.74 2.3c.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11c-1.28-.56-2.02-2.38-2.02-3.85c0-3.16 2.24-6.03 6.56-6.03c3.44 0 6.12 2.47 6.12 5.75c0 3.44-2.13 6.2-5.18 6.2c-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M9 2a7 7 0 0 1 7 7c0 1.57-.5 3-1.39 4.19l.8.81H16l6 6l-2 2l-6-6v-.59l-.81-.8A6.916 6.916 0 0 1 9 16a7 7 0 0 1-7-7a7 7 0 0 1 7-7M8 5v3H5v2h3v3h2v-3h3V8h-3V5H8Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2v6Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M13 20h-2V8l-5.5 5.5l-1.42-1.42L12 4.16l7.92 7.92l-1.42 1.42L13 8v12Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M11 4h2v12l5.5-5.5l1.42 1.42L12 19.84l-7.92-7.92L5.5 10.5L11 16V4Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="m18 21l-4-4h3V7h-3l4-4l4 4h-3v10h3M2 19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 9a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3m0 8a5 5 0 0 1-5-5a5 5 0 0 1 5-5a5 5 0 0 1 5 5a5 5 0 0 1-5 5m0-12.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="m13.13 22.19l-1.63-3.83c1.57-.58 3.04-1.36 4.4-2.27l-2.77 6.1M5.64 12.5l-3.83-1.63l6.1-2.77C7 9.46 6.22 10.93 5.64 12.5M21.61 2.39S16.66.269 11 5.93c-2.19 2.19-3.5 4.6-4.35 6.71c-.28.75-.09 1.57.46 2.13l2.13 2.12c.55.56 1.37.74 2.12.46A19.1 19.1 0 0 0 18.07 13c5.66-5.66 3.54-10.61 3.54-10.61m-7.07 7.07c-.78-.78-.78-2.05 0-2.83s2.05-.78 2.83 0c.77.78.78 2.05 0 2.83c-.78.78-2.05.78-2.83 0m-5.66 7.07l-1.41-1.41l1.41 1.41M6.24 22l3.64-3.64c-.34-.09-.67-.24-.97-.45L4.83 22h1.41M2 22h1.41l4.77-4.76l-1.42-1.41L2 20.59V22m0-2.83l4.09-4.08c-.21-.3-.36-.62-.45-.97L2 17.76v1.41Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M9 10v2H7v-2h2m4 0v2h-2v-2h2m4 0v2h-2v-2h2m2-7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h1V1h2v2h8V1h2v2h1m0 16V8H5v11h14M9 14v2H7v-2h2m4 0v2h-2v-2h2m4 0v2h-2v-2h2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 20a8 8 0 0 1-8-8a8 8 0 0 1 8-8a8 8 0 0 1 8 8a8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 7a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M5.5 7A1.5 1.5 0 0 1 4 5.5A1.5 1.5 0 0 1 5.5 4A1.5 1.5 0 0 1 7 5.5A1.5 1.5 0 0 1 5.5 7m15.91 4.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.11 0-2 .89-2 2v7c0 .55.22 1.05.59 1.41l8.99 9c.37.36.87.59 1.42.59c.55 0 1.05-.23 1.41-.59l7-7c.37-.36.59-.86.59-1.41c0-.56-.23-1.06-.59-1.42Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M15 9H5V5h10m-3 14a3 3 0 0 1-3-3a3 3 0 0 1 3-3a3 3 0 0 1 3 3a3 3 0 0 1-3 3m5-16H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7l-4-4Z"/>'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(91),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M22 16a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2h12a2 2 0 0 1 2 2v12m-6 4v2H4a2 2 0 0 1-2-2V7h2v13h12m-3-6l7-7l-1.41-1.41L13 11.17L9.91 8.09L8.5 9.5L13 14Z"/>'}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=Array.isArray,i=Object.keys,a=Object.prototype.hasOwnProperty;e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==r(t)&&"object"==r(n)){var l,u,s,c=o(t),f=o(n);if(c&&f){if((u=t.length)!=n.length)return!1;for(l=u;0!=l--;)if(!e(t[l],n[l]))return!1;return!0}if(c!=f)return!1;var d=t instanceof Date,h=n instanceof Date;if(d!=h)return!1;if(d&&h)return t.getTime()==n.getTime();var p=t instanceof RegExp,v=n instanceof RegExp;if(p!=v)return!1;if(p&&v)return t.toString()==n.toString();var y=i(t);if((u=y.length)!==i(n).length)return!1;for(l=u;0!=l--;)if(!a.call(n,y[l]))return!1;for(l=u;0!=l--;)if(!e(t[s=y[l]],n[s]))return!1;return!0}return t!=t&&n!=n}},function(e,t,n){"use strict";var r=n(0),o=n(30),i=n.n(o);function a(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function l(){return void 0===navigator.onLine||navigator.onLine}var u=new WeakMap,s=0;var c=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.__cache.get(t)},e.prototype.set=function(e,t,n){void 0===n&&(n=!0);var r=this.serializeKey(e)[0];this.__cache.set(r,t),n&&P(e,t,!1),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.__cache.has(t)},e.prototype.clear=function(e){void 0===e&&(e=!0),e&&this.__cache.forEach((function(e){return P(e,null,!1)})),this.__cache.clear(),this.notify()},e.prototype.delete=function(e,t){void 0===t&&(t=!0);var n=this.serializeKey(e)[0];t&&P(e,null,!1),this.__cache.delete(n),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"==typeof e)try{e=e()}catch(t){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",n=0;n<e.length;++n){var r=void 0;null===e[n]||"object"!=typeof e[n]?r="string"==typeof e[n]?'"'+e[n]+'"':String(e[n]):u.has(e[n])?r=u.get(e[n]):(r=s,u.set(e[n],s++)),t+="@"+r}return t}(e)):e=String(e||""),[e,t,e?"err@"+e:""]},e.prototype.subscribe=function(e){var t=this;if("function"!=typeof e)throw new Error("Expected the listener to be a function.");var n=!0;return this.__listeners.push(e),function(){if(n){n=!1;var r=t.__listeners.indexOf(e);r>-1&&(t.__listeners[r]=t.__listeners[t.__listeners.length-1],t.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.__listeners;e<t.length;e++){(0,t[e])()}},e}()),f={},d={},h={},p={},v={};var y="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),m={onLoadingSlow:function(){},onSuccess:function(){},onError:function(){},onErrorRetry:function(e,t,n,r,o){if(a()&&!(n.errorRetryCount&&o.retryCount>n.errorRetryCount)){var i=Math.min(o.retryCount||0,8),l=~~((Math.random()+.5)*(1<<i))*n.errorRetryInterval;setTimeout(r,l,o)}},errorRetryInterval:1e3*(y?10:5),focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:1e3*(y?5:3),refreshInterval:0,revalidateOnFocus:!0,revalidateOnReconnect:!0,refreshWhenHidden:!1,refreshWhenOffline:!1,shouldRetryOnError:!0,suspense:!1,compare:i.a},b=!1;if("undefined"!=typeof window&&window.addEventListener&&!b){var g=function(){if(a()&&l())for(var e in h)h[e][0]&&h[e][0]()};window.addEventListener("visibilitychange",g,!1),window.addEventListener("focus",g,!1),b=!0}var w=m;function _(e,t){var n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n||(n=!0,e.apply(void 0,r),setTimeout((function(){return n=!1}),t))}}var C=Object(r.createContext)({});C.displayName="SWRConfigContext";var O=C,S=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},k=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},M="undefined"==typeof window,A=M?r.useEffect:r.useLayoutEffect,x=function(e,t){void 0===t&&(t=!0);var n=c.serializeKey(e),r=n[0],o=n[2];if(!r)return Promise.resolve();var i=p[r];if(r&&i){for(var a=c.get(r),l=c.get(o),u=[],s=0;s<i.length;++s)u.push(i[s](t,a,l,s>0));return Promise.all(u).then((function(){return c.get(r)}))}return Promise.resolve(c.get(r))},E=function(e,t,n){var r=p[e];if(e&&r)for(var o=0;o<r.length;++o)r[o](!1,t,n)},P=function(e,t,n){return void 0===n&&(n=!0),S(void 0,void 0,void 0,(function(){var r,o,i,a,l,u,s,f,h,y;return k(this,(function(m){switch(m.label){case 0:if(!(r=c.serializeKey(e)[0]))return[2];if(void 0===t)return[2,x(e,n)];if(v[r]=Date.now()-1,a=v[r],l=d[r],!t||"function"!=typeof t)return[3,5];m.label=1;case 1:return m.trys.push([1,3,,4]),[4,t(c.get(r))];case 2:return o=m.sent(),[3,4];case 3:return u=m.sent(),i=u,[3,4];case 4:return[3,11];case 5:if(!t||"function"!=typeof t.then)return[3,10];m.label=6;case 6:return m.trys.push([6,8,,9]),[4,t];case 7:return o=m.sent(),[3,9];case 8:return s=m.sent(),i=s,[3,9];case 9:return[3,11];case 10:o=t,m.label=11;case 11:if(a!==v[r]||l!==d[r]){if(i)throw i;return[2,o]}if(void 0!==o&&c.set(r,o,!1),f=p[r]){for(h=[],y=0;y<f.length;++y)h.push(f[y](!!n,o,i,y>0));return[2,Promise.all(h).then((function(){return c.get(r)}))]}if(i)throw i;return[2,o]}}))}))};O.Provider;var I=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o,i,u={};t.length>=1&&(o=t[0]),t.length>2?(i=t[1],u=t[2]):"function"==typeof t[1]?i=t[1]:"object"==typeof t[1]&&(u=t[1]);var s=c.serializeKey(o),y=s[0],m=s[1],b=s[2];u=Object.assign({},w,Object(r.useContext)(O),u),void 0===i&&(i=u.fetcher);var g=c.get(y)||u.initialData,C=c.get(b),x=Object(r.useRef)({data:!1,error:!1,isValidating:!1}),I=Object(r.useRef)({data:g,error:C,isValidating:!1}),j=Object(r.useState)(null)[1],R=Object(r.useCallback)((function(e){var t=!1;for(var n in e)I.current[n]=e[n],x.current[n]&&(t=!0);(t||u.suspense)&&j({})}),[]),T=Object(r.useRef)(!1),L=Object(r.useRef)(y),N=Object(r.useRef)({emit:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];T.current||u[e].apply(u,t)}}),F=Object(r.useCallback)((function(e,t){return P(y,e,t)}),[y]),D=Object(r.useCallback)((function(t){return void 0===t&&(t={}),S(e,void 0,void 0,(function(){var e,n,r,o,a,l,s;return k(this,(function(h){switch(h.label){case 0:if(!y||!i)return[2,!1];if(T.current)return[2,!1];t=Object.assign({dedupe:!1},t),e=!0,n=void 0!==f[y]&&t.dedupe,h.label=1;case 1:return h.trys.push([1,6,,7]),R({isValidating:!0}),r=void 0,o=void 0,n?(o=d[y],[4,f[y]]):[3,3];case 2:return r=h.sent(),[3,5];case 3:return f[y]&&(v[y]=Date.now()-1),u.loadingTimeout&&!c.get(y)&&setTimeout((function(){e&&N.current.emit("onLoadingSlow",y,u)}),u.loadingTimeout),f[y]=null!==m?i.apply(void 0,m):i(y),d[y]=o=Date.now(),[4,f[y]];case 4:r=h.sent(),setTimeout((function(){delete f[y],delete d[y]}),u.dedupingInterval),N.current.emit("onSuccess",r,y,u),h.label=5;case 5:return v[y]&&o<=v[y]?(R({isValidating:!1}),[2,!1]):(c.set(y,r,!1),c.set(b,void 0,!1),a={isValidating:!1},void 0!==I.current.error&&(a.error=void 0),u.compare(I.current.data,r)||(a.data=r),R(a),n||E(y,r,void 0),[3,7]);case 6:return l=h.sent(),delete f[y],delete d[y],c.set(b,l,!1),I.current.error!==l&&(R({isValidating:!1,error:l}),n||E(y,void 0,l)),N.current.emit("onError",l,y,u),u.shouldRetryOnError&&(s=(t.retryCount||0)+1,N.current.emit("onErrorRetry",l,y,u,D,Object.assign({dedupe:!0},t,{retryCount:s}))),[3,7];case 7:return e=!1,[2,!0]}}))}))}),[y]);if(A((function(){if(y){T.current=!1;var e=I.current.data,t=c.get(y)||u.initialData;L.current===y&&u.compare(e,t)||(R({data:t}),L.current=y);var n,r=function(){return D({dedupe:!0})};(u.revalidateOnMount||!u.initialData&&void 0===u.revalidateOnMount)&&(void 0!==t&&!M&&window.requestIdleCallback?window.requestIdleCallback(r):r()),u.revalidateOnFocus&&(n=_(r,u.focusThrottleInterval),h[y]?h[y].push(n):h[y]=[n]);var o=function(e,t,n,o){void 0===e&&(e=!0),void 0===o&&(o=!0);var i={},a=!1;return void 0===t||u.compare(I.current.data,t)||(i.data=t,a=!0),I.current.error!==n&&(i.error=n,a=!0),a&&R(i),!!e&&(o?r():D())};p[y]?p[y].push(o):p[y]=[o];var i=null;return!M&&window.addEventListener&&u.revalidateOnReconnect&&window.addEventListener("online",i=r),function(){var e,t;(R=function(){return null},T.current=!0,n&&h[y])&&((t=(e=h[y]).indexOf(n))>=0&&(e[t]=e[e.length-1],e.pop()));p[y]&&((t=(e=p[y]).indexOf(o))>=0&&(e[t]=e[e.length-1],e.pop()));!M&&window.removeEventListener&&null!==i&&window.removeEventListener("online",i)}}}),[y,D]),A((function(){var t=null,n=function(){return S(e,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return I.current.error||!u.refreshWhenHidden&&!a()||!u.refreshWhenOffline&&!l()?[3,2]:[4,D({dedupe:!0})];case 1:e.sent(),e.label=2;case 2:return u.refreshInterval&&(t=setTimeout(n,u.refreshInterval)),[2]}}))}))};return u.refreshInterval&&(t=setTimeout(n,u.refreshInterval)),function(){t&&clearTimeout(t)}}),[u.refreshInterval,u.refreshWhenHidden,u.refreshWhenOffline,D]),u.suspense){var H=c.get(y)||g,V=c.get(b)||C;if(void 0===H&&void 0===V){if(f[y]||D(),f[y]&&"function"==typeof f[y].then)throw f[y];H=f[y]}if(void 0===H&&V)throw V;return{error:V,data:H,revalidate:D,mutate:F,isValidating:I.current.isValidating}}return Object(r.useMemo)((function(){var e={revalidate:D,mutate:F};return Object.defineProperties(e,{error:{get:function(){return x.current.error=!0,L.current===y?I.current.error:C},enumerable:!0},data:{get:function(){return x.current.data=!0,L.current===y?I.current.data:g},enumerable:!0},isValidating:{get:function(){return x.current.isValidating=!0,I.current.isValidating},enumerable:!0}}),e}),[D])};new Map;t.a=I},function(e,t,n){"use strict";var r=n(82);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?s=u.concat(s):f=-1,s.length&&h())}function h(){if(!c){var e=l(d);c=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||c||l(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";
14
  /** @license React v16.13.1
15
  * react-is.production.min.js
16
  *
18
  *
19
  * This source code is licensed under the MIT license found in the
20
  * LICENSE file in the root directory of this source tree.
21
+ */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case a:case u:case l:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case m:case y:case s:return e;default:return t}}case i:return t}}}function O(e){return C(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=o,t.ForwardRef=h,t.Fragment=a,t.Lazy=m,t.Memo=y,t.Portal=i,t.Profiler=u,t.StrictMode=l,t.Suspense=p,t.isAsyncMode=function(e){return O(e)||C(e)===f},t.isConcurrentMode=O,t.isContextConsumer=function(e){return C(e)===c},t.isContextProvider=function(e){return C(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return C(e)===h},t.isFragment=function(e){return C(e)===a},t.isLazy=function(e){return C(e)===m},t.isMemo=function(e){return C(e)===y},t.isPortal=function(e){return C(e)===i},t.isProfiler=function(e){return C(e)===u},t.isStrictMode=function(e){return C(e)===l},t.isSuspense=function(e){return C(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===u||e===l||e===p||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===s||e.$$typeof===c||e.$$typeof===h||e.$$typeof===g||e.$$typeof===w||e.$$typeof===_||e.$$typeof===b)},t.typeOf=C},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83l3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25Z"/>'}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o="~";function i(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function l(e,t,n,r,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");var l=new a(n,r||e,i),u=o?o+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],l]:e._events[u].push(l):(e._events[u]=l,e._eventsCount++),e}function u(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(o=!1)),s.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e){var t=o?o+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,a=new Array(i);r<i;r++)a[r]=n[r].fn;return a},s.prototype.listenerCount=function(e){var t=o?o+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,r,i,a){var l=o?o+e:e;if(!this._events[l])return!1;var u,s,c=this._events[l],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,a),!0}for(s=1,u=new Array(f-1);s<f;s++)u[s-1]=arguments[s];c.fn.apply(c.context,u)}else{var d,h=c.length;for(s=0;s<h;s++)switch(c[s].once&&this.removeListener(e,c[s].fn,void 0,!0),f){case 1:c[s].fn.call(c[s].context);break;case 2:c[s].fn.call(c[s].context,t);break;case 3:c[s].fn.call(c[s].context,t,n);break;case 4:c[s].fn.call(c[s].context,t,n,r);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];c[s].fn.apply(c[s].context,u)}}return!0},s.prototype.on=function(e,t,n){return l(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return l(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,n,r){var i=o?o+e:e;if(!this._events[i])return this;if(!t)return u(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||u(this,i);else{for(var l=0,s=[],c=a.length;l<c;l++)(a[l].fn!==t||r&&!a[l].once||n&&a[l].context!==n)&&s.push(a[l]);s.length?this._events[i]=1===s.length?s[0]:s:u(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&u(this,t)):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=o,s.EventEmitter=s,e.exports=s},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(t&&("object"===r(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)}function i(e){var t="function"==typeof Map?new Map:void 0;return(i=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return a(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,e)})(e)}function a(e,t,n){return(a=l()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&u(o,n.prototype),o}).apply(null,arguments)}function l(){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 u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=n(88),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(i,e);var t,n,r=(t=i,n=l(),function(){var e,r=s(t);if(n){var i=s(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return o(this,e)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=r.call(this,e)).name="TimeoutError",t}return i}(i(Error)),d=function(e,t,n){return new Promise((function(r,o){if("number"!=typeof t||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(t!==1/0){var i=setTimeout((function(){if("function"!=typeof n){var i="string"==typeof n?n:"Promise timed out after ".concat(t," milliseconds"),a=n instanceof Error?n:new f(i);"function"==typeof e.cancel&&e.cancel(),o(a)}else try{r(n())}catch(e){o(e)}}),t);c(e.then(r,o),(function(){clearTimeout(i)}))}else r(e)}))};e.exports=d,e.exports.default=d,e.exports.TimeoutError=f},function(e,t,n){"use strict";e.exports=function(e,t){return t=t||function(){},e.then((function(e){return new Promise((function(e){e(t())})).then((function(){return e}))}),(function(e){return new Promise((function(e){e(t())})).then((function(){throw e}))}))}},function(e,t,n){"use strict";function r(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,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(90),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._queue=[]}var t,n,i;return t=e,(n=[{key:"enqueue",value:function(e,t){var n={priority:(t=Object.assign({priority:0},t)).priority,run:e};if(this.size&&this._queue[this.size-1].priority>=t.priority)this._queue.push(n);else{var r=o.default(this._queue,n,(function(e,t){return t.priority-e.priority}));this._queue.splice(r,0,n)}}},{key:"dequeue",value:function(){var e=this._queue.shift();return null==e?void 0:e.run}},{key:"filter",value:function(e){return this._queue.filter((function(t){return t.priority===e.priority})).map((function(e){return e.run}))}},{key:"size",get:function(){return this._queue.length}}])&&r(t.prototype,n),i&&r(t,i),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){for(var r=0,o=e.length;o>0;){var i=o/2|0,a=r+i;n(e[a],t)<=0?(r=++a,o-=i+1):o=i}return r}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),l=v(a),u=v(n(10)),s=v(n(1)),c=v(n(92)),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(27)),d=n(21),h=v(d),p=n(99);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}var b=t.portalClassName="ReactModalPortal",g=t.bodyOpenClassName="ReactModal__Body--open",w=d.canUseDOM&&void 0!==u.default.createPortal,_=function(e){return document.createElement(e)},C=function(){return w?u.default.createPortal:u.default.unstable_renderSubtreeIntoContainer};function O(e){return e()}var S=function(e){function t(){var e,n,r;y(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.removePortal=function(){!w&&u.default.unmountComponentAtNode(r.node);var e=O(r.props.parentSelector);e&&e.contains(r.node)?e.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var n=C()(r,l.default.createElement(c.default,o({defaultStyles:t.defaultStyles},e)),r.node);r.portalRef(n)},m(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(w||(this.node=_("div")),this.node.className=this.props.portalClassName,O(this.props.parentSelector).appendChild(this.node),!w&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:O(e.parentSelector),nextParent:O(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var r=this.props,o=r.isOpen,i=r.portalClassName;e.portalClassName!==i&&(this.node.className=i);var a=n.prevParent,l=n.nextParent;l!==a&&(a.removeChild(this.node),l.appendChild(this.node)),(e.isOpen||o)&&!w&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&w?(!this.node&&w&&(this.node=_("div")),C()(l.default.createElement(c.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){f.setElement(e)}}]),t}(a.Component);S.propTypes={isOpen:s.default.bool.isRequired,style:s.default.shape({content:s.default.object,overlay:s.default.object}),portalClassName:s.default.string,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,className:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),overlayClassName:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),appElement:s.default.oneOfType([s.default.instanceOf(h.default),s.default.instanceOf(d.SafeHTMLCollection),s.default.instanceOf(d.SafeNodeList),s.default.arrayOf(s.default.instanceOf(h.default))]),onAfterOpen:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,ariaHideApp:s.default.bool,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,parentSelector:s.default.func,aria:s.default.object,data:s.default.object,role:s.default.string,contentLabel:s.default.string,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func},S.defaultProps={isOpen:!1,portalClassName:b,bodyOpenClassName:g,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return l.default.createElement("div",e,t)},contentElement:function(e,t){return l.default.createElement("div",e,t)}},S.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(S),t.default=S},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},a=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),u=m(n(1)),s=y(n(93)),c=m(n(94)),f=y(n(27)),d=y(n(97)),h=n(21),p=m(h),v=m(n(29));function y(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function m(e){return e&&e.__esModule?e:{default:e}}n(98);var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},g=0,w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&d.remove(document.body,i),o&&d.remove(document.getElementsByTagName("html")[0],o),r&&g>0&&0===(g-=1)&&f.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(s.returnFocus(n.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),v.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(s.setupScopedFocus(n.node),s.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":i(t))?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&d.add(document.body,o),r&&d.add(document.getElementsByTagName("html")[0],r),n&&(g+=1,f.hide(t)),v.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,a=e.children,l=n?{}:i.content,u=r?{}:i.overlay;if(this.shouldBeClosed())return null;var s={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=o({id:t,ref:this.setContentRef,style:o({},l,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(c,a);return this.props.overlayElement(s,f)}}]),t}(l.Component);w.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},w.propTypes={isOpen:u.default.bool.isRequired,defaultStyles:u.default.shape({content:u.default.object,overlay:u.default.object}),style:u.default.shape({content:u.default.object,overlay:u.default.object}),className:u.default.oneOfType([u.default.string,u.default.object]),overlayClassName:u.default.oneOfType([u.default.string,u.default.object]),bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,ariaHideApp:u.default.bool,appElement:u.default.oneOfType([u.default.instanceOf(p.default),u.default.instanceOf(h.SafeHTMLCollection),u.default.instanceOf(h.SafeNodeList),u.default.arrayOf(u.default.instanceOf(p.default))]),onAfterOpen:u.default.func,onAfterClose:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,preventScroll:u.default.bool,role:u.default.string,contentLabel:u.default.string,aria:u.default.object,data:u.default.object,children:u.default.node,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,overlayElement:u.default.func,contentElement:u.default.func,testId:u.default.string},t.default=w,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){0},t.handleBlur=s,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){l=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){l=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",c))};var r,o=n(26),i=(r=o)&&r.__esModule?r:{default:r};var a=[],l=null,u=!1;function s(){u=!0}function c(){if(u){if(u=!1,!l)return;setTimeout((function(){l.contains(document.activeElement)||((0,i.default)(l)[0]||l).focus()}),0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,o=t.shiftKey,a=n[0],l=n[n.length-1],u=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===u){if(!o)return;r=l}l!==u||o||(r=a);a===u&&o&&(r=l);if(r)return t.preventDefault(),void r.focus();var s=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==s||"Chrome"==s[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var c=n.indexOf(u);c>-1&&(c+=o?-1:1);if(void 0===(r=n[c]))return t.preventDefault(),void(r=o?l:a).focus();t.preventDefault(),r.focus()};var r,o=n(26),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){var r;function o(e){return(o="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})(e)}
22
  /*!
23
  Copyright (c) 2015 Jed Watson.
24
  Based on code that is Copyright 2013-2015, Facebook, Inc.
25
  All rights reserved.
26
+ */!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};"object"===o(n(28))&&n(28)?void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r):e.exports?e.exports=a:window.ExecutionEnvironment=a}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in r)i(e,r[t]);var n=document.body;for(var a in o)i(n,o[a]);r={},o={}},t.log=function(){0};var r={},o={};function i(e,t){e.classList.remove(t)}t.add=function(e,t){return n=e.classList,i="html"==e.nodeName.toLowerCase()?r:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),n.add(e)}));var n,i},t.remove=function(e,t){return n=e.classList,i="html"==e.nodeName.toLowerCase()?r:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&n.remove(e)}));var n,i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,l],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}a=l=null,u=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(u.length);for(var e=[a,l],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=n(29),i=(r=o)&&r.__esModule?r:{default:r};var a=void 0,l=void 0,u=[];function s(){0!==u.length&&u[u.length-1].focusContent()}i.default.subscribe((function(e,t){a||l||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",s),(l=a.cloneNode()).addEventListener("focus",s)),(u=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==l&&document.body.appendChild(l)):(a.parentElement&&a.parentElement.removeChild(a),l.parentElement&&l.parentElement.removeChild(l))}))},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.p